@a2simcode/ui 0.0.324 → 0.0.325
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/simcode-ui.es.js +397 -397
- package/dist/simcode-ui.umd.js +2 -2
- package/dist/stats.html +1 -1
- package/package.json +1 -1
package/dist/simcode-ui.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fragment as He, computed as H, createBlock as K, createCommentVNode as oe, createElementBlock as L, createElementVNode as I, createSlots as Qn, createTextVNode as Wn, createVNode as Q, defineComponent as xe, getCurrentInstance as nr, guardReactiveProps as ei, h as Fi, inject as Vd, mergeModels as Xo, mergeProps as et, nextTick as
|
|
1
|
+
import { Fragment as He, computed as H, createBlock as K, createCommentVNode as oe, createElementBlock as L, createElementVNode as I, createSlots as Qn, createTextVNode as Wn, createVNode as Q, defineComponent as xe, getCurrentInstance as nr, guardReactiveProps as ei, h as Fi, inject as Vd, mergeModels as Xo, mergeProps as et, nextTick as Ht, normalizeClass as Qe, normalizeProps as Ka, normalizeStyle as ce, onBeforeUnmount as ti, onMounted as Ot, onUnmounted as ni, openBlock as k, provide as Nd, reactive as ea, ref as D, render as Vi, renderList as Fe, renderSlot as rt, resolveComponent as V, resolveDirective as xo, resolveDynamicComponent as Ja, shallowRef as ai, toDisplayString as Ee, unref as q, useModel as Zo, useSlots as Wd, useTemplateRef as Wa, vShow as Pl, watch as st, watchEffect as Bc, withCtx as X, withDirectives as ta, withKeys as Hl, withModifiers as nn } from "vue";
|
|
2
2
|
import { Icon as Zr, getIcon as Na } from "@iconify/vue";
|
|
3
3
|
import mo from "dayjs";
|
|
4
4
|
import Ud from "sortablejs";
|
|
@@ -59,7 +59,7 @@ function Kf(e, t) {
|
|
|
59
59
|
function _S(e) {
|
|
60
60
|
return e !== null && Kf(e, "Object");
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var Pt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), Yf = /* @__PURE__ */ xe({
|
|
63
63
|
name: "JIcon",
|
|
64
64
|
inheritAttrs: !1,
|
|
65
65
|
__name: "icon",
|
|
@@ -164,7 +164,7 @@ var zt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
164
164
|
}, s = H(() => a.notLabel || !a.label), d = D(!1);
|
|
165
165
|
st(() => a.loading, (u) => {
|
|
166
166
|
if (typeof u == "boolean") d.value = u;
|
|
167
|
-
else if (
|
|
167
|
+
else if (Pt(u?.delay))
|
|
168
168
|
d.value = !1;
|
|
169
169
|
else {
|
|
170
170
|
const h = setTimeout(() => {
|
|
@@ -1433,8 +1433,8 @@ var ph = /* @__PURE__ */ bn(((e, t) => {
|
|
|
1433
1433
|
if (Ke < 16)
|
|
1434
1434
|
Ye = dt.high = h[p + Ke * 2] | 0, Le = dt.low = h[p + Ke * 2 + 1] | 0;
|
|
1435
1435
|
else {
|
|
1436
|
-
var Jt = f[Ke - 15],
|
|
1437
|
-
Le = Et + G, Ye = pn + Xn + (Le >>> 0 < Et >>> 0 ? 1 : 0), Le = Le + wn, Ye = Ye + on + (Le >>> 0 < wn >>> 0 ? 1 : 0), Le = Le + he, Ye = Ye +
|
|
1436
|
+
var Jt = f[Ke - 15], It = Jt.high, un = Jt.low, pn = (It >>> 1 | un << 31) ^ (It >>> 8 | un << 24) ^ It >>> 7, Et = (un >>> 1 | It << 31) ^ (un >>> 8 | It << 24) ^ (un >>> 7 | It << 25), Mt = f[Ke - 2], wt = Mt.high, Ut = Mt.low, on = (wt >>> 19 | Ut << 13) ^ (wt << 3 | Ut >>> 29) ^ wt >>> 6, wn = (Ut >>> 19 | wt << 13) ^ (Ut << 3 | wt >>> 29) ^ (Ut >>> 6 | wt << 26), dn = f[Ke - 7], Xn = dn.high, G = dn.low, pe = f[Ke - 16], re = pe.high, he = pe.low;
|
|
1437
|
+
Le = Et + G, Ye = pn + Xn + (Le >>> 0 < Et >>> 0 ? 1 : 0), Le = Le + wn, Ye = Ye + on + (Le >>> 0 < wn >>> 0 ? 1 : 0), Le = Le + he, Ye = Ye + re + (Le >>> 0 < he >>> 0 ? 1 : 0), dt.high = Ye, dt.low = Le;
|
|
1438
1438
|
}
|
|
1439
1439
|
var _e = ne & ct ^ ~ne & N, Be = Ce & _t ^ ~Ce & ke, Ne = z & $e ^ z & We ^ $e & We, pt = ue & Se ^ ue & lt ^ Se & lt, Kt = (z >>> 28 | ue << 4) ^ (z << 30 | ue >>> 2) ^ (z << 25 | ue >>> 7), St = (ue >>> 28 | z << 4) ^ (ue << 30 | z >>> 2) ^ (ue << 25 | z >>> 7), zn = (ne >>> 14 | Ce << 18) ^ (ne >>> 18 | Ce << 14) ^ (ne << 23 | Ce >>> 9), ra = (Ce >>> 14 | ne << 18) ^ (Ce >>> 18 | ne << 14) ^ (Ce << 23 | ne >>> 9), sa = d[Ke], ro = sa.high, ca = sa.low, Yt = Oe + ra, gn = Ae + zn + (Yt >>> 0 < Oe >>> 0 ? 1 : 0), Yt = Yt + Be, gn = gn + _e + (Yt >>> 0 < Be >>> 0 ? 1 : 0), Yt = Yt + ca, gn = gn + ro + (Yt >>> 0 < ca >>> 0 ? 1 : 0), Yt = Yt + Le, gn = gn + Ye + (Yt >>> 0 < Le >>> 0 ? 1 : 0), ua = St + pt, Ho = Kt + Ne + (ua >>> 0 < St >>> 0 ? 1 : 0);
|
|
1440
1440
|
Ae = N, Oe = ke, N = ct, ke = _t, ct = ne, _t = Ce, Ce = Ze + Yt | 0, ne = xt + gn + (Ce >>> 0 < Ze >>> 0 ? 1 : 0) | 0, xt = We, Ze = lt, We = $e, lt = Se, $e = z, Se = ue, ue = Yt + ua | 0, z = gn + Ho + (ue >>> 0 < Yt >>> 0 ? 1 : 0) | 0;
|
|
@@ -1542,7 +1542,7 @@ var ph = /* @__PURE__ */ bn(((e, t) => {
|
|
|
1542
1542
|
}, AS = (e, t) => Yc(e, t).toString(Ki);
|
|
1543
1543
|
function Oh(e, t) {
|
|
1544
1544
|
function n() {
|
|
1545
|
-
|
|
1545
|
+
Ht(() => {
|
|
1546
1546
|
e = q(e), e && Ud.create(e, {
|
|
1547
1547
|
animation: 100,
|
|
1548
1548
|
delay: 400,
|
|
@@ -1739,7 +1739,7 @@ var Kh = /* @__PURE__ */ xe({
|
|
|
1739
1739
|
}, 100);
|
|
1740
1740
|
}
|
|
1741
1741
|
}, R = (A) => {
|
|
1742
|
-
u.value = A?.name, a.value = A?.width || 600, o.value = A?.height || 400, i.value = A?.hasBtns !== !1, l.value = A?.hasSaveBtn !== !1, r.value = A?.hasHeader !== !1, A?.destroyOnClose !== !1 && (d.value = !0), h.value = A?.config || {}, c.value = A?.btnText || "保存", v = A?.afterOk || null, C = A?.afterClose || null, y = A?.afterCancel || null, n.value.open(A.title, A.type, A.subtitle),
|
|
1742
|
+
u.value = A?.name, a.value = A?.width || 600, o.value = A?.height || 400, i.value = A?.hasBtns !== !1, l.value = A?.hasSaveBtn !== !1, r.value = A?.hasHeader !== !1, A?.destroyOnClose !== !1 && (d.value = !0), h.value = A?.config || {}, c.value = A?.btnText || "保存", v = A?.afterOk || null, C = A?.afterClose || null, y = A?.afterCancel || null, n.value.open(A.title, A.type, A.subtitle), Ht(async () => {
|
|
1743
1743
|
n.value.showLoading("加载中"), await S(A.param || {});
|
|
1744
1744
|
});
|
|
1745
1745
|
}, T = async () => {
|
|
@@ -2016,7 +2016,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2016
2016
|
}, d = (f) => {
|
|
2017
2017
|
a("change", f);
|
|
2018
2018
|
};
|
|
2019
|
-
return
|
|
2019
|
+
return Ot(() => {
|
|
2020
2020
|
n.autoFocus && !n.readonly && o.value.focus();
|
|
2021
2021
|
}), (f, u) => {
|
|
2022
2022
|
const h = V("j-icon"), p = V("el-input");
|
|
@@ -2231,7 +2231,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2231
2231
|
}, p = (g) => {
|
|
2232
2232
|
o("visible-change", g);
|
|
2233
2233
|
};
|
|
2234
|
-
return
|
|
2234
|
+
return Ot(() => {
|
|
2235
2235
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
2236
2236
|
i.value.focus();
|
|
2237
2237
|
}, 50);
|
|
@@ -2378,7 +2378,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2378
2378
|
}, h = () => {
|
|
2379
2379
|
i.value?.handleClose();
|
|
2380
2380
|
};
|
|
2381
|
-
return
|
|
2381
|
+
return Ot(() => {
|
|
2382
2382
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
2383
2383
|
i.value.focus();
|
|
2384
2384
|
}, 50);
|
|
@@ -2453,7 +2453,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2453
2453
|
a("update:modelValue", l), a("change", { value: l });
|
|
2454
2454
|
};
|
|
2455
2455
|
return st(() => n.modelValue, (l) => {
|
|
2456
|
-
if ((
|
|
2456
|
+
if ((Pt(l) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
|
|
2457
2457
|
o.value = pr(/* @__PURE__ */ new Date()), i(o.value);
|
|
2458
2458
|
return;
|
|
2459
2459
|
}
|
|
@@ -2505,7 +2505,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2505
2505
|
const n = e, a = t, o = H({
|
|
2506
2506
|
get() {
|
|
2507
2507
|
let l = n.options;
|
|
2508
|
-
if (!
|
|
2508
|
+
if (!Pt(n.modelValue) && l && l.length > 0) {
|
|
2509
2509
|
let r = n.modelValue + "", c = n.options.find((s) => s.value + "" === r);
|
|
2510
2510
|
if (c) return c.value;
|
|
2511
2511
|
}
|
|
@@ -2514,7 +2514,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2514
2514
|
set(l) {
|
|
2515
2515
|
a("update:modelValue", l);
|
|
2516
2516
|
}
|
|
2517
|
-
}), i = H(() => n.isColor && n.colors && n.colors.length > 0 ? n.colors.filter((l) => !
|
|
2517
|
+
}), i = H(() => n.isColor && n.colors && n.colors.length > 0 ? n.colors.filter((l) => !Pt(typeof l == "string" ? l : l?.color)).map((l) => typeof l == "string" ? l : l.color) : []);
|
|
2518
2518
|
return (l, r) => {
|
|
2519
2519
|
const c = V("el-radio-button"), s = V("el-tag"), d = V("el-radio"), f = V("el-radio-group");
|
|
2520
2520
|
return k(), K(f, {
|
|
@@ -2672,8 +2672,8 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2672
2672
|
backgroundColor: _,
|
|
2673
2673
|
color: m.textColor || l(_)
|
|
2674
2674
|
};
|
|
2675
|
-
}, c = H(() => !
|
|
2676
|
-
if (!
|
|
2675
|
+
}, c = H(() => !Pt(i.value) && !n.multiple && n.options.filter((m) => i.value == m.value).map((m) => m.label).join(",") || ""), s = H(() => !Pt(i.value) && !n.multiple ? n.options.find((m) => m.value === i.value)?.icon : ""), d = H(() => {
|
|
2676
|
+
if (!Pt(i.value) && !n.multiple) return n.options.find((m) => m.value === i.value);
|
|
2677
2677
|
}), f = H(() => !!(d.value?.color || d.value?.textColor)), u = H(() => r(d.value || {})), h = H(() => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []), p = H(() => {
|
|
2678
2678
|
let m = [];
|
|
2679
2679
|
if (n.isSelectOnlyone ? m = n.options.map((_) => ({
|
|
@@ -2728,7 +2728,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2728
2728
|
});
|
|
2729
2729
|
}
|
|
2730
2730
|
};
|
|
2731
|
-
return
|
|
2731
|
+
return Ot(() => {
|
|
2732
2732
|
n.autoFocus && !n.readonly && setTimeout(() => {
|
|
2733
2733
|
o.value.toggleMenu();
|
|
2734
2734
|
}, 50);
|
|
@@ -2914,14 +2914,14 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2914
2914
|
});
|
|
2915
2915
|
const c = H({
|
|
2916
2916
|
get() {
|
|
2917
|
-
return
|
|
2917
|
+
return Pt(a.modelValue) ? [] : a.modelValue?.split(",") || [];
|
|
2918
2918
|
},
|
|
2919
2919
|
set(f) {
|
|
2920
|
-
i("update:modelValue",
|
|
2920
|
+
i("update:modelValue", Pt(f) ? "" : f.join(","));
|
|
2921
2921
|
}
|
|
2922
2922
|
}), s = (f, u) => {
|
|
2923
2923
|
c.value = f, i("change", {
|
|
2924
|
-
value:
|
|
2924
|
+
value: Pt(f) ? "" : f.join(","),
|
|
2925
2925
|
data: u
|
|
2926
2926
|
});
|
|
2927
2927
|
}, d = H(() => ({
|
|
@@ -2941,7 +2941,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
2941
2941
|
disabled: "disabled",
|
|
2942
2942
|
leaf: "leaf"
|
|
2943
2943
|
}));
|
|
2944
|
-
return
|
|
2944
|
+
return Ot(() => {
|
|
2945
2945
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
2946
2946
|
o.value.togglePopperVisible();
|
|
2947
2947
|
}, 50);
|
|
@@ -3151,7 +3151,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3151
3151
|
focus: () => {
|
|
3152
3152
|
o.value?.focus();
|
|
3153
3153
|
}
|
|
3154
|
-
}),
|
|
3154
|
+
}), Ot(() => {
|
|
3155
3155
|
a.autoFocus && !a.readonly && o.value?.focus();
|
|
3156
3156
|
}), (u, h) => {
|
|
3157
3157
|
const p = V("j-icon"), g = V("el-input-number");
|
|
@@ -3326,7 +3326,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3326
3326
|
blur: () => {
|
|
3327
3327
|
o.value?.blur();
|
|
3328
3328
|
}
|
|
3329
|
-
}),
|
|
3329
|
+
}), Ot(() => {
|
|
3330
3330
|
a.autoFocus && !a.readonly && setTimeout(() => {
|
|
3331
3331
|
o.value.focus();
|
|
3332
3332
|
}, 50);
|
|
@@ -3591,7 +3591,7 @@ var Jh = Pe(Xc), Gh = /* @__PURE__ */ xe({
|
|
|
3591
3591
|
d.value = s.value - B - M < t.midMinWidth;
|
|
3592
3592
|
};
|
|
3593
3593
|
let A = null;
|
|
3594
|
-
return
|
|
3594
|
+
return Ot(() => {
|
|
3595
3595
|
t.hideMidWhenNarrow && a.value && typeof window < "u" && window.ResizeObserver && (P(), A = new ResizeObserver(() => {
|
|
3596
3596
|
P();
|
|
3597
3597
|
}), A.observe(a.value));
|
|
@@ -5554,7 +5554,7 @@ var Xp = class {
|
|
|
5554
5554
|
if (!i) return [];
|
|
5555
5555
|
let ke = {};
|
|
5556
5556
|
ue.value.paramList && ue.value.paramList.length > 0 && ue.value.paramList.forEach((Le) => {
|
|
5557
|
-
!
|
|
5557
|
+
!Pt(Le.upId) && !Pt(Le.upKey) && (ke[Le.upKey] = J(Le.upId));
|
|
5558
5558
|
});
|
|
5559
5559
|
const Ae = N.fixedFilter || {};
|
|
5560
5560
|
Object.keys(Ae).forEach((Le) => {
|
|
@@ -5632,15 +5632,15 @@ var Xp = class {
|
|
|
5632
5632
|
config: Ut
|
|
5633
5633
|
};
|
|
5634
5634
|
}
|
|
5635
|
-
const { id: Oe, name: Ke, label: Le, valueKey: Ye, width: dt, align: Jt, frozen:
|
|
5636
|
-
Mt.dataType !== "options" && pn !== "j-tag" && delete Mt.options, Mt.label = Le ?? Ke ?? Oe, Ye != null && (Mt.valueKey = Ye), dt != null && (Mt.width = dt), Jt && (Mt.align = Jt),
|
|
5635
|
+
const { id: Oe, name: Ke, label: Le, valueKey: Ye, width: dt, align: Jt, frozen: It, hide: un, type: pn, ...Et } = Ae, Mt = { ...Et };
|
|
5636
|
+
Mt.dataType !== "options" && pn !== "j-tag" && delete Mt.options, Mt.label = Le ?? Ke ?? Oe, Ye != null && (Mt.valueKey = Ye), dt != null && (Mt.width = dt), Jt && (Mt.align = Jt), It && It !== "none" && (Mt.frozen = It), Mt.readonly = !0, ke && (Mt.filter = { isSearchKeyword: !0 });
|
|
5637
5637
|
const wt = {
|
|
5638
5638
|
id: Oe,
|
|
5639
5639
|
config: Mt
|
|
5640
5640
|
};
|
|
5641
5641
|
return pn && pn !== "text" && (wt.type = pn), wt;
|
|
5642
5642
|
}).filter((Ae) => Ae.config?.label), Se = (N) => N.map((ke) => {
|
|
5643
|
-
const { id: Ae, type: Oe, label: Ke, dateType: Le, dateFormat: Ye, dataType: dt, options: Jt, dataCode:
|
|
5643
|
+
const { id: Ae, type: Oe, label: Ke, dateType: Le, dateFormat: Ye, dataType: dt, options: Jt, dataCode: It, labelKey: un, valueKey: pn, paramsSetting: Et } = ke;
|
|
5644
5644
|
let Mt = {
|
|
5645
5645
|
id: Ae,
|
|
5646
5646
|
type: Oe || "j-input"
|
|
@@ -5649,8 +5649,8 @@ var Xp = class {
|
|
|
5649
5649
|
wt.type = Le, wt.format = Ye;
|
|
5650
5650
|
else if (ke.type === "j-select") {
|
|
5651
5651
|
if (wt.dataType = dt, dt === "options") wt.options = Jt;
|
|
5652
|
-
else if (["dataItem", "dataView"].includes(dt) && (wt.labelKey = un, wt.valueKey = pn, wt.dataCode =
|
|
5653
|
-
wt.dataCode =
|
|
5652
|
+
else if (["dataItem", "dataView"].includes(dt) && (wt.labelKey = un, wt.valueKey = pn, wt.dataCode = It, dt === "dataView")) {
|
|
5653
|
+
wt.dataCode = It;
|
|
5654
5654
|
let Ut = {};
|
|
5655
5655
|
Et && Et.length > 0 && (Et.forEach((on) => {
|
|
5656
5656
|
Ut[on.paramId] = on.dValue;
|
|
@@ -5713,7 +5713,7 @@ var Xp = class {
|
|
|
5713
5713
|
};
|
|
5714
5714
|
return st([() => n.id, () => Ze.value], () => {
|
|
5715
5715
|
_t();
|
|
5716
|
-
}, { immediate: !0 }),
|
|
5716
|
+
}, { immediate: !0 }), Ot(() => {
|
|
5717
5717
|
n.id && h && h(n.id), n.id && _ && _(n.id);
|
|
5718
5718
|
}), ti(() => {
|
|
5719
5719
|
ct();
|
|
@@ -6151,7 +6151,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6151
6151
|
const R = D(0);
|
|
6152
6152
|
let T = o.records.length, j = 45, P = !1;
|
|
6153
6153
|
const A = (O) => {
|
|
6154
|
-
P = !0, i("update:modelValue", O),
|
|
6154
|
+
P = !0, i("update:modelValue", O), Ht(() => {
|
|
6155
6155
|
P = !1;
|
|
6156
6156
|
});
|
|
6157
6157
|
}, B = (O) => {
|
|
@@ -6211,16 +6211,16 @@ var og = /* @__PURE__ */ xe({
|
|
|
6211
6211
|
disabled: !0
|
|
6212
6212
|
}
|
|
6213
6213
|
} : O, Ce = (O) => {
|
|
6214
|
-
const { Group: $, Text: U } = nt.CustomLayout, te = o.actionsMaxCount, Y = O.filter((
|
|
6215
|
-
let
|
|
6216
|
-
if (
|
|
6217
|
-
const Te = On(
|
|
6218
|
-
|
|
6214
|
+
const { Group: $, Text: U } = nt.CustomLayout, te = o.actionsMaxCount, Y = O.filter((ve) => ve.config?.display !== !1), ae = Y.length > te, le = ae ? Y.slice(0, te - 1) : Y;
|
|
6215
|
+
let ge = 0;
|
|
6216
|
+
if (le.forEach((ve, fe) => {
|
|
6217
|
+
const Te = On(ve.config?.label || ve.label || "") || 0;
|
|
6218
|
+
ge += Te + (fe === 0 ? 24 : 12);
|
|
6219
6219
|
}), ae) {
|
|
6220
|
-
const
|
|
6221
|
-
|
|
6220
|
+
const ve = (On("更多") || 0) + 12;
|
|
6221
|
+
ge += ve;
|
|
6222
6222
|
}
|
|
6223
|
-
const se = Math.max(80,
|
|
6223
|
+
const se = Math.max(80, ge) + "px";
|
|
6224
6224
|
return {
|
|
6225
6225
|
field: "__actions__",
|
|
6226
6226
|
title: o.actionsLabel,
|
|
@@ -6229,8 +6229,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
6229
6229
|
minWidth: se,
|
|
6230
6230
|
disableColumnResize: !0,
|
|
6231
6231
|
disableSelect: !0,
|
|
6232
|
-
customLayout: (
|
|
6233
|
-
const { table: fe, row: Te, col: je } =
|
|
6232
|
+
customLayout: (ve) => {
|
|
6233
|
+
const { table: fe, row: Te, col: je } = ve, Me = fe.getCellOriginRecord(je, Te), tt = fe.getRecordIndexByCell(je, Te), Je = Y.map((Ue) => {
|
|
6234
6234
|
const ht = Ze({
|
|
6235
6235
|
action: Ue,
|
|
6236
6236
|
record: Me,
|
|
@@ -6302,20 +6302,20 @@ var og = /* @__PURE__ */ xe({
|
|
|
6302
6302
|
}
|
|
6303
6303
|
};
|
|
6304
6304
|
}, ct = (O, $) => {
|
|
6305
|
-
const { dataValue: U, table: te, col: Y, row: ae, value:
|
|
6305
|
+
const { dataValue: U, table: te, col: Y, row: ae, value: le } = O, ge = O.rect ?? te?.getCellRect?.(Y, ae) ?? {
|
|
6306
6306
|
width: 0,
|
|
6307
6307
|
height: 0
|
|
6308
|
-
}, se = te?.getBodyField?.(Y, ae),
|
|
6309
|
-
let Me =
|
|
6308
|
+
}, se = te?.getBodyField?.(Y, ae), ve = te?.options?.columns || [], fe = (se ? Et(ve, se) : null)?.style?.textAlign || "left", Te = 8, je = Math.max(0, ge.width - Te * 2);
|
|
6309
|
+
let Me = Pt(le) ? U : le;
|
|
6310
6310
|
Me == null && (Me = "");
|
|
6311
6311
|
const tt = Oe(typeof Me == "object" ? JSON.stringify(Me) : String(Me), je);
|
|
6312
6312
|
let Je = Te, De = "left";
|
|
6313
|
-
return fe === "center" ? (Je =
|
|
6313
|
+
return fe === "center" ? (Je = ge.width / 2, De = "center") : fe === "right" && (Je = Math.max(Te, ge.width - Te), De = "right"), {
|
|
6314
6314
|
elements: [{
|
|
6315
6315
|
type: "text",
|
|
6316
6316
|
text: tt,
|
|
6317
6317
|
x: Je,
|
|
6318
|
-
y:
|
|
6318
|
+
y: ge.height / 2,
|
|
6319
6319
|
fontSize: 14,
|
|
6320
6320
|
fill: "#1d2129",
|
|
6321
6321
|
textAlign: De,
|
|
@@ -6324,12 +6324,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6324
6324
|
expectedHeight: Pn
|
|
6325
6325
|
};
|
|
6326
6326
|
}, _t = (O, $) => {
|
|
6327
|
-
const { dataValue: U, rect: te, table: Y, col: ae, row:
|
|
6327
|
+
const { dataValue: U, rect: te, table: Y, col: ae, row: le } = O, ge = Y?.options?.columns || [], se = Y?.getBodyField?.(ae, le), ve = se ? Et(ge, se) : null, fe = $ || ve?._compConfig || {};
|
|
6328
6328
|
let Te = "mdi:toggle-switch", je = "#165dff";
|
|
6329
6329
|
(Object.prototype.hasOwnProperty.call(fe, "inactiveValue") && fe.inactiveValue !== void 0 ? String(U) === String(fe.inactiveValue) : !U) && (Te = "mdi:toggle-switch-off", je = "#e5e6eb");
|
|
6330
6330
|
const Me = Na(Te), tt = Me?.body?.replace(/currentColor/g, je), Je = [], De = 8, Ve = 40;
|
|
6331
6331
|
let ot = De;
|
|
6332
|
-
return
|
|
6332
|
+
return ve?.style?.textAlign === "center" ? ot = Math.max(De, (te.width - Ve) / 2) : ve?.style?.textAlign === "right" && (ot = Math.max(De, te.width - Ve - De)), Je.push({
|
|
6333
6333
|
type: "icon",
|
|
6334
6334
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Ve}" height="${Ve}" viewBox="0 0 ${Me?.width} ${Me?.height}" >${tt}</svg>`,
|
|
6335
6335
|
x: ot,
|
|
@@ -6341,38 +6341,38 @@ var og = /* @__PURE__ */ xe({
|
|
|
6341
6341
|
expectedHeight: Pn
|
|
6342
6342
|
};
|
|
6343
6343
|
}, N = (O, $) => {
|
|
6344
|
-
const { dataValue: U, rect: te } = O, Y = Number(U) || 0, ae = 5,
|
|
6344
|
+
const { dataValue: U, rect: te } = O, Y = Number(U) || 0, ae = 5, le = 20, ge = 4, se = 8, ve = (te.height - le) / 2, fe = [], Te = Na("mdi:star"), je = Na("mdi:star-half-full"), Me = Na("mdi:star-outline"), tt = "#f7ba2a", Je = "#e5e6eb";
|
|
6345
6345
|
for (let De = 0; De < ae; De++) {
|
|
6346
|
-
const Ve = se + De * (
|
|
6346
|
+
const Ve = se + De * (le + ge), ot = ve;
|
|
6347
6347
|
if (Y >= De + 1) {
|
|
6348
6348
|
const gt = Te?.body?.replace(/currentColor/g, tt);
|
|
6349
6349
|
fe.push({
|
|
6350
6350
|
type: "icon",
|
|
6351
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6351
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${le}" height="${le}" viewBox="0 0 ${Te?.width} ${Te?.height}">${gt}</svg>`,
|
|
6352
6352
|
x: Ve,
|
|
6353
6353
|
y: ot,
|
|
6354
|
-
width:
|
|
6355
|
-
height:
|
|
6354
|
+
width: le,
|
|
6355
|
+
height: le
|
|
6356
6356
|
});
|
|
6357
6357
|
} else if (Y > De && Y < De + 1) {
|
|
6358
6358
|
const gt = je?.body?.replace(/currentColor/g, tt);
|
|
6359
6359
|
fe.push({
|
|
6360
6360
|
type: "icon",
|
|
6361
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6361
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${le}" height="${le}" viewBox="0 0 ${je?.width} ${je?.height}">${gt}</svg>`,
|
|
6362
6362
|
x: Ve,
|
|
6363
6363
|
y: ot,
|
|
6364
|
-
width:
|
|
6365
|
-
height:
|
|
6364
|
+
width: le,
|
|
6365
|
+
height: le
|
|
6366
6366
|
});
|
|
6367
6367
|
} else {
|
|
6368
6368
|
const gt = Me?.body?.replace(/currentColor/g, Je);
|
|
6369
6369
|
fe.push({
|
|
6370
6370
|
type: "icon",
|
|
6371
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6371
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${le}" height="${le}" viewBox="0 0 ${Me?.width} ${Me?.height}">${gt}</svg>`,
|
|
6372
6372
|
x: Ve,
|
|
6373
6373
|
y: ot,
|
|
6374
|
-
width:
|
|
6375
|
-
height:
|
|
6374
|
+
width: le,
|
|
6375
|
+
height: le
|
|
6376
6376
|
});
|
|
6377
6377
|
}
|
|
6378
6378
|
}
|
|
@@ -6381,16 +6381,16 @@ var og = /* @__PURE__ */ xe({
|
|
|
6381
6381
|
expectedHeight: Pn
|
|
6382
6382
|
};
|
|
6383
6383
|
}, ke = (O, $) => {
|
|
6384
|
-
const { dataValue: U, rect: te, table: Y, col: ae, row:
|
|
6384
|
+
const { dataValue: U, rect: te, table: Y, col: ae, row: le } = O, ge = Y.getBodyField(ae, le), se = Et(Y.options?.columns || [], ge), ve = Y.getCellOriginRecord?.(ae, le) || Y.getRecordByCell?.(ae, le) || {}, fe = $ || kn({
|
|
6385
6385
|
config: se?._compConfig,
|
|
6386
6386
|
getCompConfig: se?._getCompConfig,
|
|
6387
6387
|
formData: l || {},
|
|
6388
6388
|
getTableData: Dn,
|
|
6389
|
-
row:
|
|
6389
|
+
row: ve
|
|
6390
6390
|
}) || {}, Te = Number(fe.min) || 0, je = Number(fe.max) || 100, Me = Number(U) || 0, tt = je - Te, Je = tt === 0 ? 0 : Math.max(0, Math.min(100, (Me - Te) / tt * 100)), De = 4, Ve = 8, ot = 8, gt = (te.height - De) / 2, kt = String(Me), Ue = On(kt) || 0, ht = Ve, Ge = gt, jt = te.width - Ve * 2 - Ue - ot, fn = jt * Je / 100, xn = [], Oa = (tn, sn, co) => {
|
|
6391
6391
|
const ft = Math.min(co, sn / 2, tn / 2);
|
|
6392
6392
|
return `M ${ft} 0 L ${tn - ft} 0 Q ${tn} 0 ${tn} ${ft} L ${tn} ${sn - ft} Q ${tn} ${sn} ${tn - ft} ${sn} L ${ft} ${sn} Q 0 ${sn} 0 ${sn - ft} L 0 ${ft} Q 0 0 ${ft} 0 Z`;
|
|
6393
|
-
},
|
|
6393
|
+
}, Lt = (tn, sn, co) => {
|
|
6394
6394
|
const ft = Math.min(co, sn / 2, tn / 2);
|
|
6395
6395
|
return tn <= ft * 2 ? Oa(tn, sn, co) : `M ${ft} 0 L ${tn} 0 L ${tn} ${sn} L ${ft} ${sn} Q 0 ${sn} 0 ${sn - ft} L 0 ${ft} Q 0 0 ${ft} 0 Z`;
|
|
6396
6396
|
}, _n = Oa(jt, De, De / 2);
|
|
@@ -6402,7 +6402,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6402
6402
|
width: jt,
|
|
6403
6403
|
height: De
|
|
6404
6404
|
}), fn > 0) {
|
|
6405
|
-
const tn =
|
|
6405
|
+
const tn = Lt(fn, De, De / 2);
|
|
6406
6406
|
xn.push({
|
|
6407
6407
|
type: "icon",
|
|
6408
6408
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${fn}" height="${De}" viewBox="0 0 ${fn} ${De}"><path d="${tn}" fill="#165dff"/></svg>`,
|
|
@@ -6433,22 +6433,22 @@ var og = /* @__PURE__ */ xe({
|
|
|
6433
6433
|
if (te >= $) return "";
|
|
6434
6434
|
let Y = 0, ae = O.length;
|
|
6435
6435
|
for (; Y < ae; ) {
|
|
6436
|
-
const
|
|
6437
|
-
(On(O.slice(0,
|
|
6436
|
+
const le = Math.ceil((Y + ae) / 2);
|
|
6437
|
+
(On(O.slice(0, le)) || 0) + te <= $ ? Y = le : ae = le - 1;
|
|
6438
6438
|
}
|
|
6439
6439
|
return O.slice(0, Y) + U;
|
|
6440
6440
|
}, Ke = (O, $) => {
|
|
6441
|
-
const { value: U, rect: te, table: Y, col: ae, row:
|
|
6441
|
+
const { value: U, rect: te, table: Y, col: ae, row: le } = O;
|
|
6442
6442
|
if (!U) return {
|
|
6443
6443
|
elements: [],
|
|
6444
6444
|
expectedHeight: Pn
|
|
6445
6445
|
};
|
|
6446
|
-
const
|
|
6446
|
+
const ge = Y.getBodyField(ae, le), se = Et(Y.options?.columns || [], ge), ve = Y.getCellOriginRecord?.(ae, le) || Y.getRecordByCell?.(ae, le) || {}, fe = $ || kn({
|
|
6447
6447
|
config: se?._compConfig,
|
|
6448
6448
|
getCompConfig: se?._getCompConfig,
|
|
6449
6449
|
formData: l || {},
|
|
6450
6450
|
getTableData: Dn,
|
|
6451
|
-
row:
|
|
6451
|
+
row: ve
|
|
6452
6452
|
}) || {}, Te = Number(fe.size) || 16, je = fe.color, Me = (te.width - Te) / 2, tt = (te.height - Te) / 2;
|
|
6453
6453
|
let Je = String(U).trim();
|
|
6454
6454
|
if (!Je) return {
|
|
@@ -6485,13 +6485,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
6485
6485
|
expectedHeight: Math.max(Pn, Te)
|
|
6486
6486
|
};
|
|
6487
6487
|
}, Le = (O, $) => {
|
|
6488
|
-
const { dataValue: U, rect: te, table: Y, col: ae, row:
|
|
6489
|
-
config:
|
|
6490
|
-
getCompConfig:
|
|
6488
|
+
const { dataValue: U, rect: te, table: Y, col: ae, row: le, value: ge } = O, se = Y.getBodyField(ae, le), ve = Et(Y.options?.columns || [], se), fe = Y.getCellOriginRecord?.(ae, le) || Y.getRecordByCell?.(ae, le) || {}, Te = $ || kn({
|
|
6489
|
+
config: ve?._compConfig,
|
|
6490
|
+
getCompConfig: ve?._getCompConfig,
|
|
6491
6491
|
formData: l || {},
|
|
6492
6492
|
getTableData: Dn,
|
|
6493
6493
|
row: fe
|
|
6494
|
-
}) || {}, je =
|
|
6494
|
+
}) || {}, je = ve?.style?.textAlign || "left", Me = Pt(ve._fieldFormat) ? U : ge, tt = Pt(Me) ? "" : Me + "", Je = u({
|
|
6495
6495
|
config: Te,
|
|
6496
6496
|
row: fe,
|
|
6497
6497
|
value: tt
|
|
@@ -6520,11 +6520,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
6520
6520
|
width: uo,
|
|
6521
6521
|
height: Ve
|
|
6522
6522
|
}), { tagWidth: uo };
|
|
6523
|
-
},
|
|
6523
|
+
}, Lt = () => {
|
|
6524
6524
|
const ft = [];
|
|
6525
6525
|
let ln = [], $n = 0;
|
|
6526
6526
|
for (let Fn = 0; Fn < Je.length; Fn++) {
|
|
6527
|
-
const Bn = Je[Fn], La =
|
|
6527
|
+
const Bn = Je[Fn], La = Pt(Bn.label) ? "" : Bn.label + "", za = xn(La), _i = {
|
|
6528
6528
|
label: La,
|
|
6529
6529
|
bg: Bn.color || "#f2f3f5",
|
|
6530
6530
|
text: Bn.textColor || Ye(Bn.color || "#f2f3f5"),
|
|
@@ -6543,8 +6543,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
6543
6543
|
needsWrap: ft.length > 1
|
|
6544
6544
|
};
|
|
6545
6545
|
};
|
|
6546
|
-
let { lines: _n, needsWrap: fa } =
|
|
6547
|
-
ht !== 0 && fa && (ht = 0, Ge = Math.max(0, te.width - ht * 2), jt = Math.max(0, Ge - gt * 2), { lines: _n, needsWrap: fa } =
|
|
6546
|
+
let { lines: _n, needsWrap: fa } = Lt();
|
|
6547
|
+
ht !== 0 && fa && (ht = 0, Ge = Math.max(0, te.width - ht * 2), jt = Math.max(0, Ge - gt * 2), { lines: _n, needsWrap: fa } = Lt());
|
|
6548
6548
|
const Ia = _n.length * Ve + (_n.length > 1 ? (_n.length - 1) * Ue : 0);
|
|
6549
6549
|
let tn = Math.max(0, (te.height - Ia) / 2);
|
|
6550
6550
|
const sn = fa;
|
|
@@ -6568,43 +6568,43 @@ var og = /* @__PURE__ */ xe({
|
|
|
6568
6568
|
O = O.replace("#", ""), O.length === 3 && (O = O.split("").map((Y) => Y + Y).join(""));
|
|
6569
6569
|
const $ = parseInt(O.substring(0, 2), 16), U = parseInt(O.substring(2, 4), 16), te = parseInt(O.substring(4, 6), 16);
|
|
6570
6570
|
if (($ * 299 + U * 587 + te * 114) / 1e3 >= 128) {
|
|
6571
|
-
const Y = $ / 255, ae = U / 255,
|
|
6572
|
-
let
|
|
6573
|
-
const Te = (
|
|
6574
|
-
if (
|
|
6575
|
-
const ot =
|
|
6576
|
-
switch (fe = Te > 0.5 ? ot / (2 -
|
|
6571
|
+
const Y = $ / 255, ae = U / 255, le = te / 255, ge = Math.max(Y, ae, le), se = Math.min(Y, ae, le);
|
|
6572
|
+
let ve = 0, fe = 0;
|
|
6573
|
+
const Te = (ge + se) / 2;
|
|
6574
|
+
if (ge !== se) {
|
|
6575
|
+
const ot = ge - se;
|
|
6576
|
+
switch (fe = Te > 0.5 ? ot / (2 - ge - se) : ot / (ge + se), ge) {
|
|
6577
6577
|
case Y:
|
|
6578
|
-
|
|
6578
|
+
ve = (ae - le) / ot + (ae < le ? 6 : 0);
|
|
6579
6579
|
break;
|
|
6580
6580
|
case ae:
|
|
6581
|
-
|
|
6581
|
+
ve = (le - Y) / ot + 2;
|
|
6582
6582
|
break;
|
|
6583
|
-
case
|
|
6584
|
-
|
|
6583
|
+
case le:
|
|
6584
|
+
ve = (Y - ae) / ot + 4;
|
|
6585
6585
|
break;
|
|
6586
6586
|
}
|
|
6587
|
-
|
|
6587
|
+
ve /= 6;
|
|
6588
6588
|
}
|
|
6589
6589
|
const je = 0.3, Me = fe;
|
|
6590
6590
|
let tt, Je, De;
|
|
6591
6591
|
if (Me === 0) tt = Je = De = je;
|
|
6592
6592
|
else {
|
|
6593
6593
|
const ot = (Ue, ht, Ge) => (Ge < 0 && (Ge += 1), Ge > 1 && (Ge -= 1), Ge < 0.16666666666666666 ? Ue + (ht - Ue) * 6 * Ge : Ge < 0.5 ? ht : Ge < 0.6666666666666666 ? Ue + (ht - Ue) * (0.6666666666666666 - Ge) * 6 : Ue), gt = je < 0.5 ? je * (1 + Me) : je + Me - je * Me, kt = 2 * je - gt;
|
|
6594
|
-
tt = ot(kt, gt,
|
|
6594
|
+
tt = ot(kt, gt, ve + 1 / 3), Je = ot(kt, gt, ve), De = ot(kt, gt, ve - 1 / 3);
|
|
6595
6595
|
}
|
|
6596
6596
|
const Ve = (ot) => Math.round(ot * 255).toString(16).padStart(2, "0");
|
|
6597
6597
|
return `#${Ve(tt)}${Ve(Je)}${Ve(De)}`;
|
|
6598
6598
|
}
|
|
6599
6599
|
return "#ffffff";
|
|
6600
6600
|
}, dt = (O) => {
|
|
6601
|
-
const { table: $, row: U, col: te, rect: Y, value: ae } = O, { Group:
|
|
6601
|
+
const { table: $, row: U, col: te, rect: Y, value: ae } = O, { Group: le, Text: ge } = nt.CustomLayout, se = $.getBodyField(te, U), ve = Et($.options?.columns || [], se), fe = ve?._compConfig || {}, Te = new le({
|
|
6602
6602
|
height: Y.height,
|
|
6603
6603
|
width: Y.width,
|
|
6604
6604
|
display: "flex",
|
|
6605
6605
|
alignItems: "center",
|
|
6606
|
-
justifyContent:
|
|
6607
|
-
}), je = "#165dff", Me = new
|
|
6606
|
+
justifyContent: ve.style?.textAlign === "center" ? "center" : ve.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
6607
|
+
}), je = "#165dff", Me = new ge({
|
|
6608
6608
|
text: String(ae ?? ""),
|
|
6609
6609
|
fontSize: 14,
|
|
6610
6610
|
fill: je,
|
|
@@ -6621,7 +6621,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6621
6621
|
const tt = $.getCellOriginRecord(te, U);
|
|
6622
6622
|
fe.click({
|
|
6623
6623
|
row: tt,
|
|
6624
|
-
column:
|
|
6624
|
+
column: ve,
|
|
6625
6625
|
openLayer: h
|
|
6626
6626
|
});
|
|
6627
6627
|
}
|
|
@@ -6633,20 +6633,20 @@ var og = /* @__PURE__ */ xe({
|
|
|
6633
6633
|
rootContainer: Te,
|
|
6634
6634
|
renderDefault: !1
|
|
6635
6635
|
};
|
|
6636
|
-
}, Jt = (O, $) => $ ? "#c9cdd4" : O === "danger" ? "#f53f3f" : O === "warning" ? "#ff7d00" : O === "success" ? "#00b42a" : "#165dff",
|
|
6637
|
-
const { table: $, row: U, col: te, rect: Y } = O, { Group: ae, Text:
|
|
6636
|
+
}, Jt = (O, $) => $ ? "#c9cdd4" : O === "danger" ? "#f53f3f" : O === "warning" ? "#ff7d00" : O === "success" ? "#00b42a" : "#165dff", It = (O) => {
|
|
6637
|
+
const { table: $, row: U, col: te, rect: Y } = O, { Group: ae, Text: le } = nt.CustomLayout, ge = $.getBodyField(te, U), se = Et($.options?.columns || [], ge), ve = $.getCellOriginRecord?.(te, U) || $.getRecordByCell?.(te, U) || {}, fe = kn({
|
|
6638
6638
|
config: se?._compConfig,
|
|
6639
6639
|
getCompConfig: se?._getCompConfig,
|
|
6640
6640
|
formData: l || {},
|
|
6641
6641
|
getTableData: Dn,
|
|
6642
|
-
row:
|
|
6642
|
+
row: ve
|
|
6643
6643
|
}) || {}, Te = Array.isArray(fe.schema) ? fe.schema : [], je = String(fe.buttonLabel || fe.layerLabel || se?.title || "设置"), Me = fe.disabled === !0 || Te.length === 0, tt = Jt(fe.status, Me), Je = new ae({
|
|
6644
6644
|
height: Y.height,
|
|
6645
6645
|
width: Y.width,
|
|
6646
6646
|
display: "flex",
|
|
6647
6647
|
alignItems: "center",
|
|
6648
6648
|
justifyContent: se?.style?.textAlign === "center" ? "center" : se?.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
6649
|
-
}), De = new
|
|
6649
|
+
}), De = new le({
|
|
6650
6650
|
text: je,
|
|
6651
6651
|
fontSize: 14,
|
|
6652
6652
|
fill: tt,
|
|
@@ -6671,7 +6671,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6671
6671
|
config: {
|
|
6672
6672
|
schema: Te,
|
|
6673
6673
|
formConfig: fe.formConfig || {},
|
|
6674
|
-
rowData:
|
|
6674
|
+
rowData: ve
|
|
6675
6675
|
}
|
|
6676
6676
|
});
|
|
6677
6677
|
}), De.addEventListener("mouseenter", (Ve) => {
|
|
@@ -6683,29 +6683,29 @@ var og = /* @__PURE__ */ xe({
|
|
|
6683
6683
|
renderDefault: !1
|
|
6684
6684
|
};
|
|
6685
6685
|
}, un = (O) => {
|
|
6686
|
-
const { table: $, row: U, col: te, rect: Y } = O, { height: ae, width:
|
|
6687
|
-
const ht = Te?.[
|
|
6688
|
-
Te[
|
|
6686
|
+
const { table: $, row: U, col: te, rect: Y } = O, { height: ae, width: le } = Y ?? $.getCellRect(te, U), { Group: ge, CheckBox: se } = nt.CustomLayout, ve = $.getBodyField(te, U), fe = Et($.options?.columns || [], ve), Te = $.getCellOriginRecord(te, U) || {}, je = fe?.style?.textAlign === "right" ? "flex-end" : fe?.style?.textAlign === "center" ? "center" : "flex-start", Me = fe?.style?.textAlign === "right" ? "flex-end" : fe?.style?.textAlign === "center" ? "center" : "flex-start", tt = (kt, Ue) => {
|
|
6687
|
+
const ht = Te?.[ve];
|
|
6688
|
+
Te[ve] = (Array.isArray(ht) ? ht : []).map((Ge, jt) => jt !== kt ? Ge : Ge && typeof Ge == "object" ? {
|
|
6689
6689
|
...Ge,
|
|
6690
6690
|
...Ue
|
|
6691
6691
|
} : { ...Ue });
|
|
6692
6692
|
}, Je = () => {
|
|
6693
6693
|
$.renderWithRecreateCells();
|
|
6694
|
-
}, De = new
|
|
6695
|
-
width:
|
|
6694
|
+
}, De = new ge({
|
|
6695
|
+
width: le,
|
|
6696
6696
|
height: Math.max(ae || 0, 40),
|
|
6697
6697
|
display: "flex",
|
|
6698
6698
|
flexDirection: "column",
|
|
6699
6699
|
alignItems: je,
|
|
6700
6700
|
justifyContent: "center",
|
|
6701
6701
|
flexWrap: "nowrap"
|
|
6702
|
-
}), Ve = Te?.[
|
|
6702
|
+
}), Ve = Te?.[ve];
|
|
6703
6703
|
if (!Array.isArray(Ve)) return {
|
|
6704
6704
|
rootContainer: De,
|
|
6705
6705
|
renderDefault: !1
|
|
6706
6706
|
};
|
|
6707
|
-
const ot = Ve, gt = new
|
|
6708
|
-
width:
|
|
6707
|
+
const ot = Ve, gt = new ge({
|
|
6708
|
+
width: le,
|
|
6709
6709
|
display: "flex",
|
|
6710
6710
|
flexDirection: "row",
|
|
6711
6711
|
flexWrap: "wrap",
|
|
@@ -6745,10 +6745,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
6745
6745
|
renderDefault: !1
|
|
6746
6746
|
};
|
|
6747
6747
|
}, pn = (O) => {
|
|
6748
|
-
const { table: $, row: U, col: te } = O, Y = $.getBodyField(te, U), ae = Et($.options?.columns || [], Y),
|
|
6748
|
+
const { table: $, row: U, col: te } = O, Y = $.getBodyField(te, U), ae = Et($.options?.columns || [], Y), le = ae?._compConfig || {};
|
|
6749
6749
|
if (ae?._customLayout) return ae._customLayout({
|
|
6750
6750
|
...O,
|
|
6751
|
-
config:
|
|
6751
|
+
config: le,
|
|
6752
6752
|
customLayout: nt.CustomLayout
|
|
6753
6753
|
});
|
|
6754
6754
|
}, Et = (O, $) => {
|
|
@@ -6766,22 +6766,22 @@ var og = /* @__PURE__ */ xe({
|
|
|
6766
6766
|
elements: [],
|
|
6767
6767
|
expectedHeight: Pn
|
|
6768
6768
|
};
|
|
6769
|
-
const
|
|
6769
|
+
const le = $.getCellOriginRecord?.(U, te) || $.getRecordByCell?.(U, te) || {}, ge = kn({
|
|
6770
6770
|
config: ae._compConfig,
|
|
6771
6771
|
getCompConfig: ae._getCompConfig,
|
|
6772
6772
|
formData: l || {},
|
|
6773
6773
|
getTableData: Dn,
|
|
6774
|
-
row:
|
|
6774
|
+
row: le
|
|
6775
6775
|
}), se = hr({
|
|
6776
6776
|
type: ae._compType,
|
|
6777
6777
|
getCompType: ae._getCompType,
|
|
6778
|
-
config:
|
|
6778
|
+
config: ge,
|
|
6779
6779
|
formData: l || {},
|
|
6780
6780
|
getTableData: Dn,
|
|
6781
|
-
row:
|
|
6781
|
+
row: le
|
|
6782
6782
|
});
|
|
6783
|
-
|
|
6784
|
-
const
|
|
6783
|
+
le._compTypeByRender = le._compTypeByRender || {}, le._compTypeByRender[Y] = se;
|
|
6784
|
+
const ve = {
|
|
6785
6785
|
text: ct,
|
|
6786
6786
|
"j-switch": _t,
|
|
6787
6787
|
"j-rate": N,
|
|
@@ -6790,7 +6790,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
6790
6790
|
"j-input-tag": Le,
|
|
6791
6791
|
"j-icon": Ke
|
|
6792
6792
|
}[se] || ct;
|
|
6793
|
-
return
|
|
6793
|
+
return ve ? ve(O, ge) : {
|
|
6794
6794
|
elements: [],
|
|
6795
6795
|
expectedHeight: Pn
|
|
6796
6796
|
};
|
|
@@ -6798,10 +6798,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
6798
6798
|
const Y = te.getBodyField($, U), ae = Et(te.options?.columns || [], Y);
|
|
6799
6799
|
if (ae._fieldFormat) return ae._fieldFormat(O, $, U, te);
|
|
6800
6800
|
if (ae._compType === "dateTime") {
|
|
6801
|
-
const
|
|
6802
|
-
return pr(O[Y],
|
|
6801
|
+
const ve = ae._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6802
|
+
return pr(O[Y], ve);
|
|
6803
6803
|
}
|
|
6804
|
-
const
|
|
6804
|
+
const le = ch(O[Y], s, {
|
|
6805
6805
|
type: ae._compType,
|
|
6806
6806
|
getCompType: ae._getCompType,
|
|
6807
6807
|
getCompConfig: ae._getCompConfig,
|
|
@@ -6809,12 +6809,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6809
6809
|
formData: l,
|
|
6810
6810
|
getTableData: Dn,
|
|
6811
6811
|
row: O
|
|
6812
|
-
});
|
|
6813
|
-
if (
|
|
6814
|
-
var
|
|
6815
|
-
g[
|
|
6812
|
+
}), ge = le.config?.valueIdKey && O[le.config.valueIdKey] != null ? O[le.config.valueIdKey] : O[Y];
|
|
6813
|
+
if (!Pt(ge) && (le.label == O[Y] || le.label == ge) && le.config.dataType && le.config.dataType != "options" && !le.config.options && le.type != "j-autocomplete" && s && d) {
|
|
6814
|
+
var se = d(le.config.dataType, le.config.dataCode, { value: ge });
|
|
6815
|
+
g[se] = !0;
|
|
6816
6816
|
}
|
|
6817
|
-
return
|
|
6817
|
+
return le.label;
|
|
6818
6818
|
}, Ut = () => {
|
|
6819
6819
|
if (!f?.value) return 0;
|
|
6820
6820
|
const O = Object.keys(g);
|
|
@@ -6832,12 +6832,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
6832
6832
|
O > 0 && O !== $ && dn();
|
|
6833
6833
|
});
|
|
6834
6834
|
const Xn = (O) => {
|
|
6835
|
-
const $ = new Set(o.columnFilter || []), U = (Y, ae,
|
|
6836
|
-
const
|
|
6835
|
+
const $ = new Set(o.columnFilter || []), U = (Y, ae, le) => !(Y.config?.display === !1 || $.has(Y.id)), te = (Y, ae, le = 0) => {
|
|
6836
|
+
const ge = [];
|
|
6837
6837
|
return Y.forEach((se) => {
|
|
6838
|
-
if (!U(se, ae,
|
|
6839
|
-
const { id:
|
|
6840
|
-
field:
|
|
6838
|
+
if (!U(se, ae, le)) return;
|
|
6839
|
+
const { id: ve, type: fe, config: Te, getCompConfig: je, getCompType: Me, children: tt, customLayout: Je } = se, { label: De, width: Ve, minWidth: ot, maxWidth: gt, align: kt, headerAlign: Ue, fieldFormat: ht, editor: Ge, frozen: jt, mergeCell: fn, ...xn } = Te || {}, Oa = Ue ?? kt, Lt = {
|
|
6840
|
+
field: ve,
|
|
6841
6841
|
title: De,
|
|
6842
6842
|
width: Ve,
|
|
6843
6843
|
minWidth: ot,
|
|
@@ -6853,13 +6853,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
6853
6853
|
frozen: jt,
|
|
6854
6854
|
mergeCell: fn
|
|
6855
6855
|
}, _n = typeof Me == "function", fa = tu(fe);
|
|
6856
|
-
if ((fa || _n) && (
|
|
6857
|
-
const Ia = te(tt, se,
|
|
6856
|
+
if ((fa || _n) && (Lt.editor = fa || "j-comp-editor", S = !0), _n ? Lt.customRender = Mt : (fe === "j-switch" && (Lt.customRender = _t), fe === "j-rate" && (Lt.customRender = N), fe === "j-slider" && (Lt.customRender = ke), (fe === "j-tag" || fe === "j-input-tag" || xn.showTag) && (Lt.customRender = Le), fe === "j-icon" && (Lt.customRender = Ke)), fe === "link" && (Lt.customLayout = dt), (fe === "j-layerform" || fe === "j-layer-form") && (Lt.customLayout = It), fe === "checkbox" && (Lt.customLayout = un), fe === "j-switch" && (Lt.minWidth = Lt.minWidth || Ve, Lt.maxWidth = Lt.maxWidth || Ve), Je && (Lt.customLayout = pn), Lt.fieldFormat = wt, tt && tt.length > 0) {
|
|
6857
|
+
const Ia = te(tt, se, le + 1);
|
|
6858
6858
|
if (Ia.length === 0) return;
|
|
6859
|
-
|
|
6859
|
+
Lt.columns = Ia;
|
|
6860
6860
|
}
|
|
6861
|
-
|
|
6862
|
-
}), o.isTree &&
|
|
6861
|
+
ge.push(Lt);
|
|
6862
|
+
}), o.isTree && ge.length > 0 && (ge[0].tree = !0), ge;
|
|
6863
6863
|
};
|
|
6864
6864
|
return te(O);
|
|
6865
6865
|
}, G = (O) => String(O || "").split(",").map(($) => $.trim()).filter(Boolean), pe = (O, $, U) => ({
|
|
@@ -6869,28 +6869,28 @@ var og = /* @__PURE__ */ xe({
|
|
|
6869
6869
|
columns: U,
|
|
6870
6870
|
_getCompConfig: void 0,
|
|
6871
6871
|
_getCompType: void 0
|
|
6872
|
-
}),
|
|
6872
|
+
}), re = (O, $ = []) => {
|
|
6873
6873
|
if (!Array.isArray($) || $.length === 0) return O;
|
|
6874
6874
|
const U = [...O];
|
|
6875
6875
|
return $.forEach((te, Y) => {
|
|
6876
6876
|
const ae = G(te.value);
|
|
6877
6877
|
if (ae.length === 0) return;
|
|
6878
|
-
const
|
|
6878
|
+
const le = /* @__PURE__ */ new Set(), ge = [];
|
|
6879
6879
|
let se = U.length;
|
|
6880
6880
|
if (ae.forEach((fe) => {
|
|
6881
|
-
if (
|
|
6882
|
-
|
|
6881
|
+
if (le.has(fe)) return;
|
|
6882
|
+
le.add(fe);
|
|
6883
6883
|
const Te = U.findIndex((Me) => Me.field === fe);
|
|
6884
6884
|
if (Te === -1) return;
|
|
6885
6885
|
const [je] = U.splice(Te, 1);
|
|
6886
|
-
je && (
|
|
6887
|
-
}),
|
|
6888
|
-
const
|
|
6889
|
-
U.splice(Math.min(se, U.length), 0,
|
|
6886
|
+
je && (ge.push(je), se = Math.min(se, Te));
|
|
6887
|
+
}), ge.length === 0) return;
|
|
6888
|
+
const ve = pe(te, Y, ge);
|
|
6889
|
+
U.splice(Math.min(se, U.length), 0, ve);
|
|
6890
6890
|
}), U;
|
|
6891
6891
|
}, he = (O, $) => {
|
|
6892
|
-
const U = O.replace("#", ""), te = parseInt(U, 16), Y = Math.min(255, Math.max(0, (te >> 16) + $)), ae = Math.min(255, Math.max(0, (te >> 8 & 255) + $)),
|
|
6893
|
-
return `#${(Y << 16 | ae << 8 |
|
|
6892
|
+
const U = O.replace("#", ""), te = parseInt(U, 16), Y = Math.min(255, Math.max(0, (te >> 16) + $)), ae = Math.min(255, Math.max(0, (te >> 8 & 255) + $)), le = Math.min(255, Math.max(0, (te & 255) + $));
|
|
6893
|
+
return `#${(Y << 16 | ae << 8 | le).toString(16).padStart(6, "0")}`;
|
|
6894
6894
|
}, _e = () => {
|
|
6895
6895
|
let O = T;
|
|
6896
6896
|
o.isPage && (O = Ie.value + T);
|
|
@@ -6898,8 +6898,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
6898
6898
|
return o.subColumns && o.subColumns.length > 0 && ($ = $ + 32), Math.max(45, $ + 18);
|
|
6899
6899
|
}, Be = (O) => {
|
|
6900
6900
|
let $ = (U, te, Y, ae) => {
|
|
6901
|
-
const
|
|
6902
|
-
return o.isPage && !O ? Ie.value +
|
|
6901
|
+
const le = ae.getRecordIndexByCell(te, Y);
|
|
6902
|
+
return o.isPage && !O ? Ie.value + le + 1 : le + 1;
|
|
6903
6903
|
};
|
|
6904
6904
|
return O && ($ = (U, te, Y, ae) => ae.getRecordIndexByCell(te, Y) + 1), {
|
|
6905
6905
|
field: "__sequence__",
|
|
@@ -6986,20 +6986,20 @@ var og = /* @__PURE__ */ xe({
|
|
|
6986
6986
|
$.push(U);
|
|
6987
6987
|
return;
|
|
6988
6988
|
}
|
|
6989
|
-
const te = ra(U.columns), Y = [], ae = [],
|
|
6990
|
-
if (te.forEach((
|
|
6991
|
-
const se = zn(
|
|
6992
|
-
se === "left" ? Y.push(
|
|
6993
|
-
}), (Y.length > 0 ? 1 : 0) + (ae.length > 0 ? 1 : 0) + (
|
|
6989
|
+
const te = ra(U.columns), Y = [], ae = [], le = [];
|
|
6990
|
+
if (te.forEach((ge) => {
|
|
6991
|
+
const se = zn(ge);
|
|
6992
|
+
se === "left" ? Y.push(ge) : se === "right" ? ae.push(ge) : le.push(ge);
|
|
6993
|
+
}), (Y.length > 0 ? 1 : 0) + (ae.length > 0 ? 1 : 0) + (le.length > 0 ? 1 : 0) <= 1) {
|
|
6994
6994
|
U.columns = te, $.push(U);
|
|
6995
6995
|
return;
|
|
6996
6996
|
}
|
|
6997
6997
|
Y.length && $.push({
|
|
6998
6998
|
...U,
|
|
6999
6999
|
columns: Y
|
|
7000
|
-
}),
|
|
7000
|
+
}), le.length && $.push({
|
|
7001
7001
|
...U,
|
|
7002
|
-
columns:
|
|
7002
|
+
columns: le
|
|
7003
7003
|
}), ae.length && $.push({
|
|
7004
7004
|
...U,
|
|
7005
7005
|
columns: ae
|
|
@@ -7020,17 +7020,17 @@ var og = /* @__PURE__ */ xe({
|
|
|
7020
7020
|
y = 0, x = 0, S = !1;
|
|
7021
7021
|
const Y = {};
|
|
7022
7022
|
let ae = Xn(O);
|
|
7023
|
-
te || (ae =
|
|
7024
|
-
const
|
|
7023
|
+
te || (ae = re(ae, o.mergeHeader)), ae.length === 0 && (ae = [St()]), ae = ra(ae);
|
|
7024
|
+
const le = [], ge = [], se = [];
|
|
7025
7025
|
ae.forEach((je) => {
|
|
7026
7026
|
const Me = zn(je);
|
|
7027
|
-
Me === "left" ?
|
|
7027
|
+
Me === "left" ? le.push(je) : Me === "right" ? ge.push(je) : se.push(je);
|
|
7028
7028
|
});
|
|
7029
|
-
const
|
|
7030
|
-
x +=
|
|
7031
|
-
...
|
|
7029
|
+
const ve = sa(le), fe = sa(ge);
|
|
7030
|
+
x += ve.left, y += fe.right, ae = [
|
|
7031
|
+
...le,
|
|
7032
7032
|
...se,
|
|
7033
|
-
...
|
|
7033
|
+
...ge
|
|
7034
7034
|
], $ && (ae.unshift(Be(te)), x++), U.length > 0 && (ae.push(Ce(U)), y++), S && (Y.editCellTrigger = "click", Y.keyboardOptions = {
|
|
7035
7035
|
copySelected: !0,
|
|
7036
7036
|
cutSelected: !0,
|
|
@@ -7105,23 +7105,23 @@ var og = /* @__PURE__ */ xe({
|
|
|
7105
7105
|
}
|
|
7106
7106
|
}
|
|
7107
7107
|
}), v.on("click_cell", (Y) => {
|
|
7108
|
-
const { col: ae, row:
|
|
7108
|
+
const { col: ae, row: le, cellType: ge, originData: se } = Y, ve = se || { children: v.records };
|
|
7109
7109
|
if (en.value) {
|
|
7110
|
-
if (
|
|
7111
|
-
if (
|
|
7110
|
+
if (ge === "checkbox" && ae == 0) {
|
|
7111
|
+
if (ve.__checkState = Y.target.attribute.checked, le === 0 && ve.__checkState === !1) {
|
|
7112
7112
|
const Te = (je) => {
|
|
7113
7113
|
!Array.isArray(je) || je.length === 0 || je.forEach((Me) => {
|
|
7114
7114
|
Me && (Me.__checkState = !1, Array.isArray(Me.children) && Me.children.length > 0 && Te(Me.children));
|
|
7115
7115
|
});
|
|
7116
7116
|
};
|
|
7117
|
-
Te(
|
|
7117
|
+
Te(ve.children);
|
|
7118
7118
|
}
|
|
7119
7119
|
const fe = Re();
|
|
7120
7120
|
fe.length == 0 && v.setCellCheckboxState(0, 0, !1), R.value = fe.length, i("selectionChanged", {
|
|
7121
7121
|
isMultiple: !0,
|
|
7122
7122
|
selections: fe,
|
|
7123
|
-
record:
|
|
7124
|
-
checked:
|
|
7123
|
+
record: ve,
|
|
7124
|
+
checked: ve.__checkState,
|
|
7125
7125
|
isInit: !1
|
|
7126
7126
|
}), v.renderWithRecreateCells();
|
|
7127
7127
|
}
|
|
@@ -7130,7 +7130,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7130
7130
|
R.value = fe.length, i("selectionChanged", {
|
|
7131
7131
|
isMultiple: !1,
|
|
7132
7132
|
selections: fe,
|
|
7133
|
-
record:
|
|
7133
|
+
record: ve,
|
|
7134
7134
|
checked: !0,
|
|
7135
7135
|
isInit: !1
|
|
7136
7136
|
});
|
|
@@ -7182,7 +7182,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7182
7182
|
o.heightMode === "auto" && (_.value = v.getAllRowsHeight());
|
|
7183
7183
|
}
|
|
7184
7184
|
}, Dn = () => v ? v.records : [];
|
|
7185
|
-
|
|
7185
|
+
Ot(() => {
|
|
7186
7186
|
gn();
|
|
7187
7187
|
}), ti(() => {
|
|
7188
7188
|
ua(), $e(), wn(), document.removeEventListener("wheel", lt);
|
|
@@ -7194,12 +7194,12 @@ var og = /* @__PURE__ */ xe({
|
|
|
7194
7194
|
set(O) {
|
|
7195
7195
|
i("update:tablePage", O);
|
|
7196
7196
|
}
|
|
7197
|
-
}),
|
|
7197
|
+
}), ye = D(0), ze = H({
|
|
7198
7198
|
get() {
|
|
7199
|
-
return
|
|
7199
|
+
return ye.value !== 0 ? ye.value : o.pageSize;
|
|
7200
7200
|
},
|
|
7201
7201
|
set(O) {
|
|
7202
|
-
|
|
7202
|
+
ye.value = O, i("update:pageSize", O);
|
|
7203
7203
|
}
|
|
7204
7204
|
}), Ie = H(() => (de.value - 1) * ze.value), be = (O, $) => {
|
|
7205
7205
|
i("loadPageData", {
|
|
@@ -7217,29 +7217,29 @@ var og = /* @__PURE__ */ xe({
|
|
|
7217
7217
|
return [];
|
|
7218
7218
|
}
|
|
7219
7219
|
if (v.stateManager && v.stateManager.checkedState) {
|
|
7220
|
-
const O = [], $ = /* @__PURE__ */ new Set(), U = (
|
|
7221
|
-
if (!
|
|
7222
|
-
const se = Gt(
|
|
7220
|
+
const O = [], $ = /* @__PURE__ */ new Set(), U = (ge) => {
|
|
7221
|
+
if (!ge || qt(ge)) return;
|
|
7222
|
+
const se = Gt(ge);
|
|
7223
7223
|
if (se) {
|
|
7224
7224
|
if ($.has(se)) return;
|
|
7225
7225
|
$.add(se);
|
|
7226
|
-
const
|
|
7227
|
-
|
|
7226
|
+
const ve = {};
|
|
7227
|
+
ge.__checkState = !0, Ui(ve, ge, ["children"]), O.push(ve);
|
|
7228
7228
|
} else console.warn("key is empty");
|
|
7229
|
-
}, te = (
|
|
7230
|
-
const se =
|
|
7231
|
-
!Array.isArray(se) || se.length === 0 || se.forEach((
|
|
7232
|
-
U(
|
|
7229
|
+
}, te = (ge) => {
|
|
7230
|
+
const se = ge?.children;
|
|
7231
|
+
!Array.isArray(se) || se.length === 0 || se.forEach((ve) => {
|
|
7232
|
+
U(ve), te(ve);
|
|
7233
7233
|
});
|
|
7234
|
-
}, Y = v.stateManager.checkedState, ae = v.records,
|
|
7235
|
-
const fe =
|
|
7236
|
-
return
|
|
7234
|
+
}, Y = v.stateManager.checkedState, ae = v.records, le = (ge, se, ve) => {
|
|
7235
|
+
const fe = ve[se[ge]];
|
|
7236
|
+
return ge < se.length - 1 && fe?.children && fe.children.length > 0 ? le(ge + 1, se, fe.children || []) : fe;
|
|
7237
7237
|
};
|
|
7238
|
-
return Y.forEach((
|
|
7239
|
-
const
|
|
7240
|
-
if (
|
|
7241
|
-
const fe =
|
|
7242
|
-
U(fe),
|
|
7238
|
+
return Y.forEach((ge, se) => {
|
|
7239
|
+
const ve = ge?._checkState;
|
|
7240
|
+
if (ve === "indeterminate" || ve === !0) {
|
|
7241
|
+
const fe = le(0, (se + "").split(",").map(Number), ae);
|
|
7242
|
+
U(fe), ve === !0 && !(o.isTree && o.checkStrictly) && te(fe);
|
|
7243
7243
|
}
|
|
7244
7244
|
}), O;
|
|
7245
7245
|
}
|
|
@@ -7249,52 +7249,52 @@ var og = /* @__PURE__ */ xe({
|
|
|
7249
7249
|
if (en.value || v.clearSelected(), o.rowKey) {
|
|
7250
7250
|
const $ = new Set(O.map(Gt)), U = "__checkState";
|
|
7251
7251
|
if (!en.value) {
|
|
7252
|
-
const
|
|
7253
|
-
for (let se = 0; se <
|
|
7254
|
-
const
|
|
7255
|
-
if (!$.has(Gt(
|
|
7252
|
+
const ge = v.records;
|
|
7253
|
+
for (let se = 0; se < ge.length; se++) {
|
|
7254
|
+
const ve = ge[se];
|
|
7255
|
+
if (!$.has(Gt(ve))) continue;
|
|
7256
7256
|
const fe = v.getTableIndexByRecordIndex(se);
|
|
7257
7257
|
v.selectRow(fe);
|
|
7258
7258
|
break;
|
|
7259
7259
|
}
|
|
7260
7260
|
return;
|
|
7261
7261
|
}
|
|
7262
|
-
const te = (
|
|
7263
|
-
|
|
7262
|
+
const te = (ge) => {
|
|
7263
|
+
ge.forEach((se) => {
|
|
7264
7264
|
if (Array.isArray(se?.children) && se.children.length > 0) {
|
|
7265
7265
|
if (te(se.children), o.checkStrictly) {
|
|
7266
7266
|
const je = $.has(Gt(se));
|
|
7267
7267
|
se[U] = !!(!qt(se) && je);
|
|
7268
7268
|
return;
|
|
7269
7269
|
}
|
|
7270
|
-
const
|
|
7271
|
-
|
|
7270
|
+
const ve = se.children.filter((je) => !qt(je)), fe = ve.filter((je) => je?.[U] === !0), Te = ve.filter((je) => je?.[U] === !1);
|
|
7271
|
+
ve.length === 0 ? se[U] = !1 : fe.length == ve.length ? se[U] = !0 : Te.length == ve.length ? se[U] = !1 : se[U] = "indeterminate", se[U] === "indeterminate" && (se.hierarchyState = "expand");
|
|
7272
7272
|
} else {
|
|
7273
|
-
const
|
|
7274
|
-
se[U] = !!(!qt(se) &&
|
|
7273
|
+
const ve = $.has(Gt(se));
|
|
7274
|
+
se[U] = !!(!qt(se) && ve);
|
|
7275
7275
|
}
|
|
7276
7276
|
});
|
|
7277
7277
|
}, Y = v.records;
|
|
7278
|
-
o.isTree ? te(Y) : Y.forEach((
|
|
7279
|
-
|
|
7278
|
+
o.isTree ? te(Y) : Y.forEach((ge) => {
|
|
7279
|
+
ge[U] = !qt(ge) && $.has(Gt(ge));
|
|
7280
7280
|
});
|
|
7281
7281
|
const ae = ca();
|
|
7282
7282
|
if (ae.records = Y, v.updateOption(ae, {
|
|
7283
7283
|
clearColWidthCache: !1,
|
|
7284
7284
|
clearRowHeightCache: !1
|
|
7285
7285
|
}), o.heightMode === "auto" && (_.value = v.getAllRowsHeight()), v.stateManager?.checkedState) {
|
|
7286
|
-
const
|
|
7287
|
-
for (let Te = 0; Te <
|
|
7288
|
-
const je =
|
|
7286
|
+
const ge = "_checkState", se = (ve, fe) => {
|
|
7287
|
+
for (let Te = 0; Te < ve.length; Te++) {
|
|
7288
|
+
const je = ve[Te];
|
|
7289
7289
|
if (!je) continue;
|
|
7290
7290
|
const Me = fe ? `${fe},${Te}` : `${Te}`, tt = je[U];
|
|
7291
|
-
v.stateManager.checkedState.set(Me, { [
|
|
7291
|
+
v.stateManager.checkedState.set(Me, { [ge]: tt === "indeterminate" ? "indeterminate" : tt === !0 }), Array.isArray(je.children) && je.children.length > 0 && se(je.children, Me);
|
|
7292
7292
|
}
|
|
7293
7293
|
};
|
|
7294
7294
|
se(Y, "");
|
|
7295
7295
|
}
|
|
7296
|
-
const
|
|
7297
|
-
for (let
|
|
7296
|
+
const le = v.getAllBodyCells(1);
|
|
7297
|
+
for (let ge = 0; ge < le.length; ge++) le[ge][0].originData[U] == !0 && v.setCellCheckboxState(0, ge + 1, !0);
|
|
7298
7298
|
v.renderWithRecreateCells();
|
|
7299
7299
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
7300
7300
|
}, da = (O) => {
|
|
@@ -7489,7 +7489,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7489
7489
|
cursor: ae.config?.disabled ? "not-allowed" : "pointer",
|
|
7490
7490
|
opacity: ae.config?.disabled ? 0.7 : 1
|
|
7491
7491
|
}),
|
|
7492
|
-
onClick: (
|
|
7492
|
+
onClick: (le) => xt(ae)
|
|
7493
7493
|
}, Ee(ae.label), 13, ug))), 128))], 36)) : oe("", !0)
|
|
7494
7494
|
], 6);
|
|
7495
7495
|
};
|
|
@@ -7607,7 +7607,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7607
7607
|
_top: 0
|
|
7608
7608
|
}), g = D(0), m = D(), _ = D(48), w = D(0), b = D(0);
|
|
7609
7609
|
st(() => a.visible, (z) => {
|
|
7610
|
-
g.value = 1, g.value = 0, l.value = z, z === !0 && a.zoomControls &&
|
|
7610
|
+
g.value = 1, g.value = 0, l.value = z, z === !0 && a.zoomControls && Ht(() => {
|
|
7611
7611
|
typeof document < "u" && (m.value = document.querySelector(".j-dialog"), m.value && (m.value.onmousemove = ee));
|
|
7612
7612
|
});
|
|
7613
7613
|
}, { immediate: !0 });
|
|
@@ -7632,7 +7632,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7632
7632
|
}, j = () => {
|
|
7633
7633
|
o("ok", S, R);
|
|
7634
7634
|
}, P = () => {
|
|
7635
|
-
p.left = 0, p.top = 0, b.value = 0, w.value = 0, a.isStep && (A.value = 0,
|
|
7635
|
+
p.left = 0, p.top = 0, b.value = 0, w.value = 0, a.isStep && (A.value = 0, Ht(() => {
|
|
7636
7636
|
W();
|
|
7637
7637
|
})), o("closed");
|
|
7638
7638
|
}, A = H({
|
|
@@ -7643,11 +7643,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
7643
7643
|
h.value = z, o("update:stepActive", z);
|
|
7644
7644
|
}
|
|
7645
7645
|
}), B = () => {
|
|
7646
|
-
A.value > 0 && A.value--,
|
|
7646
|
+
A.value > 0 && A.value--, Ht(() => {
|
|
7647
7647
|
W();
|
|
7648
7648
|
});
|
|
7649
7649
|
}, M = async () => {
|
|
7650
|
-
await E() && (A.value < a.steps.length - 1 && (A.value += 1),
|
|
7650
|
+
await E() && (A.value < a.steps.length - 1 && (A.value += 1), Ht(() => {
|
|
7651
7651
|
W();
|
|
7652
7652
|
}));
|
|
7653
7653
|
}, E = async () => {
|
|
@@ -7916,7 +7916,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
7916
7916
|
}, _ = () => {
|
|
7917
7917
|
o("ok", b, v);
|
|
7918
7918
|
}, w = () => {
|
|
7919
|
-
a.isStep && (g.value = 0,
|
|
7919
|
+
a.isStep && (g.value = 0, Ht(() => {
|
|
7920
7920
|
S();
|
|
7921
7921
|
})), o("closed");
|
|
7922
7922
|
}, b = (j) => {
|
|
@@ -7924,11 +7924,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
7924
7924
|
}, v = () => {
|
|
7925
7925
|
c.value = !1;
|
|
7926
7926
|
}, C = () => {
|
|
7927
|
-
g.value > 0 && g.value--,
|
|
7927
|
+
g.value > 0 && g.value--, Ht(() => {
|
|
7928
7928
|
S();
|
|
7929
7929
|
});
|
|
7930
7930
|
}, y = async () => {
|
|
7931
|
-
await x() && (g.value < a.steps.length - 1 && (g.value += 1),
|
|
7931
|
+
await x() && (g.value < a.steps.length - 1 && (g.value += 1), Ht(() => {
|
|
7932
7932
|
S();
|
|
7933
7933
|
}));
|
|
7934
7934
|
}, x = async () => {
|
|
@@ -8178,7 +8178,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8178
8178
|
}, f = () => {
|
|
8179
8179
|
l.value = !1;
|
|
8180
8180
|
}, u = () => {
|
|
8181
|
-
a.isStep && (C.value = 0,
|
|
8181
|
+
a.isStep && (C.value = 0, Ht(() => {
|
|
8182
8182
|
R();
|
|
8183
8183
|
})), i("closed");
|
|
8184
8184
|
}, h = () => {
|
|
@@ -8195,11 +8195,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
8195
8195
|
v.value = j, i("update:stepActive", j);
|
|
8196
8196
|
}
|
|
8197
8197
|
}), y = () => {
|
|
8198
|
-
C.value > 0 && C.value--,
|
|
8198
|
+
C.value > 0 && C.value--, Ht(() => {
|
|
8199
8199
|
R();
|
|
8200
8200
|
});
|
|
8201
8201
|
}, x = async () => {
|
|
8202
|
-
await S() && (C.value < a.steps.length - 1 && (C.value += 1),
|
|
8202
|
+
await S() && (C.value < a.steps.length - 1 && (C.value += 1), Ht(() => {
|
|
8203
8203
|
R();
|
|
8204
8204
|
}));
|
|
8205
8205
|
}, S = async () => {
|
|
@@ -8562,7 +8562,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
8562
8562
|
"search"
|
|
8563
8563
|
],
|
|
8564
8564
|
setup(e, { emit: t }) {
|
|
8565
|
-
const n = e, a = t, o = D(), i = H(() =>
|
|
8565
|
+
const n = e, a = t, o = D(), i = H(() => Pt(n.modelValue) ? [] : n.modelValue?.split(",") || []), l = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
|
|
8566
8566
|
let h = n.colors[u % n.colors.length] || {};
|
|
8567
8567
|
return h = {
|
|
8568
8568
|
...h,
|
|
@@ -9397,7 +9397,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
9397
9397
|
};
|
|
9398
9398
|
return st(() => a.option, (p) => {
|
|
9399
9399
|
d(p);
|
|
9400
|
-
}, { deep: !0 }),
|
|
9400
|
+
}, { deep: !0 }), Ot(() => {
|
|
9401
9401
|
s();
|
|
9402
9402
|
}), ni(() => {
|
|
9403
9403
|
c && clearTimeout(c), r && i.value && (r.unobserve(i.value), r.disconnect(), r = null), l.value && (l.value.dispose(), l.value = void 0);
|
|
@@ -10410,7 +10410,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
10410
10410
|
},
|
|
10411
10411
|
setup(e, { expose: t }) {
|
|
10412
10412
|
const n = e, a = H(() => ({ ...n })), o = D(), i = D(null), l = H(() => n.options);
|
|
10413
|
-
|
|
10413
|
+
Ot(() => {
|
|
10414
10414
|
n.animation && r();
|
|
10415
10415
|
}), st(() => n.decimals, () => {
|
|
10416
10416
|
i.value && i.value.update && (i.value.options.decimalPlaces = n.decimals, i.value.reset(), i.value.update(n.endValue));
|
|
@@ -11282,8 +11282,8 @@ var og = /* @__PURE__ */ xe({
|
|
|
11282
11282
|
}));
|
|
11283
11283
|
}), st(() => a.mode, () => {
|
|
11284
11284
|
r && f();
|
|
11285
|
-
}),
|
|
11286
|
-
await
|
|
11285
|
+
}), Ot(async () => {
|
|
11286
|
+
await Ht(), await d(), typeof window < "u" && window.ResizeObserver && i.value && (p = new ResizeObserver(() => {
|
|
11287
11287
|
r && r.dispatch({ scrollIntoView: !0 });
|
|
11288
11288
|
}), p.observe(i.value));
|
|
11289
11289
|
}), ni(() => {
|
|
@@ -11753,7 +11753,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
11753
11753
|
setup(e, { emit: t }) {
|
|
11754
11754
|
const n = e, a = t, { activeMenu: o, theme: i } = li(), l = D(), r = D(0);
|
|
11755
11755
|
let c = null;
|
|
11756
|
-
|
|
11756
|
+
Ot(() => {
|
|
11757
11757
|
typeof window < "u" && window.ResizeObserver && l.value && (c = new ResizeObserver(() => {
|
|
11758
11758
|
l.value && (r.value = l.value.offsetWidth);
|
|
11759
11759
|
}), c.observe(l.value));
|
|
@@ -12356,7 +12356,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
12356
12356
|
}
|
|
12357
12357
|
}
|
|
12358
12358
|
];
|
|
12359
|
-
|
|
12359
|
+
Ot(() => {
|
|
12360
12360
|
c.value = o.searchFieldList, r.value = o.searchList;
|
|
12361
12361
|
});
|
|
12362
12362
|
const f = H(() => o.columns.filter((C) => !C.children?.length && !C.config?.isNotFilter).map((C) => ({
|
|
@@ -12873,21 +12873,21 @@ var og = /* @__PURE__ */ xe({
|
|
|
12873
12873
|
i.isMultiple && !i.rowKey && console.warn("rowKey is required when isMultiple is true");
|
|
12874
12874
|
const r = D(), c = D(), s = D([]), d = D(0), f = D(1), u = D(i.pageSize || 100), h = D(0), p = H(() => h.value > 0), g = D([]), m = D([]), _ = D(!1), w = H(() => i.batchButtons && i.batchButtons.length > 0), b = H(() => i.isMultiple && i.rowKey ? g.value.length : m.value.length), v = H(() => b.value > 0), C = H(() => w.value && v.value && i.isMultiple || _.value), y = H(() => !!i.loadData), x = H(() => !!i.loadData && i.isPage && !C.value), S = H(() => i.viewMode === "card"), R = H(() => _.value ? m.value : s.value);
|
|
12875
12875
|
w.value && !i.isMultiple && console.warn("batchButtons is only valid when isMultiple is true");
|
|
12876
|
-
const T = (de) => i.rowKey ? i.rowKey.split(",").map((
|
|
12877
|
-
const
|
|
12876
|
+
const T = (de) => i.rowKey ? i.rowKey.split(",").map((ye) => de[ye.trim()]).join("::") : "", j = (de) => {
|
|
12877
|
+
const ye = new Map(de.map((be) => [T(be), be])), ze = new Set(g.value), Ie = new Map(m.value.map((be) => [T(be), be]));
|
|
12878
12878
|
s.value.forEach((be) => {
|
|
12879
12879
|
const Re = T(be);
|
|
12880
|
-
Re && (
|
|
12880
|
+
Re && (ye.has(Re) ? (ze.add(Re), Ie.set(Re, ye.get(Re))) : (ze.delete(Re), Ie.delete(Re)));
|
|
12881
12881
|
}), g.value = Array.from(ze), m.value = Array.from(Ie.values());
|
|
12882
12882
|
}, P = (de) => {
|
|
12883
12883
|
m.value = de, g.value = i.rowKey ? de.map(T).filter(Boolean) : [];
|
|
12884
|
-
}, A = (de,
|
|
12885
|
-
if (!
|
|
12884
|
+
}, A = (de, ye) => {
|
|
12885
|
+
if (!ye || ye.length === 0) return de.filter((be) => be.config?.display !== !1).map((be) => be.children && be.children.length > 0 ? {
|
|
12886
12886
|
...be,
|
|
12887
12887
|
children: A(be.children)
|
|
12888
12888
|
} : be);
|
|
12889
12889
|
const ze = new Map(de.map((be) => [be.id, be])), Ie = [];
|
|
12890
|
-
return
|
|
12890
|
+
return ye.forEach((be) => {
|
|
12891
12891
|
const Re = ze.get(be.id);
|
|
12892
12892
|
if (Re) {
|
|
12893
12893
|
if (be.display) {
|
|
@@ -12911,21 +12911,21 @@ var og = /* @__PURE__ */ xe({
|
|
|
12911
12911
|
}, B = H(() => A(i.columns, Oe.value)), M = H(() => rh(i.columns, (de) => de.config.label)), E = D(""), W = H(() => M.value.some((de) => de.config?.filter?.isSearchKeyword)), F = D(), ie = D(!0), me = D([]), J = H(() => ie.value ? "搜索全部" : `搜索范围:${M.value.filter((de) => me.value.includes(de.id)).map((de) => de.config?.label).join("、")}`), ee = () => {
|
|
12912
12912
|
F.value.init();
|
|
12913
12913
|
}, Z = D(), z = D(!1), ue = D(!1), $e = D(!1), Se = D([]), We = D("and"), lt = D(), xt = D(!1), Ze = D([]), ne = D(), Ce = (de) => {
|
|
12914
|
-
const
|
|
12914
|
+
const ye = new Map(M.value.map((ze) => [ze.id, ze.config?.label || ze.id]));
|
|
12915
12915
|
return de.split(",").map((ze) => ze.trim()).filter(Boolean).map((ze) => {
|
|
12916
12916
|
const [Ie, be] = ze.split(/\s+/), Re = (be || "ASC").toUpperCase() === "DESC" ? "DESC" : "ASC";
|
|
12917
12917
|
return {
|
|
12918
|
-
label:
|
|
12918
|
+
label: ye.get(Ie) || Ie,
|
|
12919
12919
|
value: Ie,
|
|
12920
12920
|
sord: Re
|
|
12921
12921
|
};
|
|
12922
12922
|
}).filter((ze) => ze.value);
|
|
12923
12923
|
};
|
|
12924
12924
|
st([() => i.sort, () => M.value], ([de]) => {
|
|
12925
|
-
const
|
|
12926
|
-
if (
|
|
12927
|
-
if (
|
|
12928
|
-
Ze.value = Ce(
|
|
12925
|
+
const ye = (de || "").trim();
|
|
12926
|
+
if (ye) {
|
|
12927
|
+
if (ye !== ne.value) {
|
|
12928
|
+
Ze.value = Ce(ye), ne.value = ye;
|
|
12929
12929
|
return;
|
|
12930
12930
|
}
|
|
12931
12931
|
const ze = new Map(M.value.map((Ie) => [Ie.id, Ie.config?.label || Ie.id]));
|
|
@@ -12949,7 +12949,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
12949
12949
|
Oe.value = de, Ae.value = !1;
|
|
12950
12950
|
}, dt = D(!1), Jt = () => {
|
|
12951
12951
|
dt.value = !dt.value;
|
|
12952
|
-
},
|
|
12952
|
+
}, It = () => {
|
|
12953
12953
|
g.value = [], m.value = [], r.value && (r.value.setSelection?.([]), _.value && (_.value = !1, r.value.setRecords(s.value, { skipSelectState: !0 }))), c.value?.clearSelection?.(), l("select", {
|
|
12954
12954
|
selections: [],
|
|
12955
12955
|
keys: [],
|
|
@@ -13001,9 +13001,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13001
13001
|
id: "clear_selection",
|
|
13002
13002
|
label: "清空选中",
|
|
13003
13003
|
config: { type: "text" },
|
|
13004
|
-
click:
|
|
13004
|
+
click: It
|
|
13005
13005
|
}
|
|
13006
|
-
],
|
|
13006
|
+
], ye = i.batchButtons.map((ze) => ({
|
|
13007
13007
|
...ze,
|
|
13008
13008
|
click: () => {
|
|
13009
13009
|
ze.click && ze.click({
|
|
@@ -13012,30 +13012,30 @@ var og = /* @__PURE__ */ xe({
|
|
|
13012
13012
|
});
|
|
13013
13013
|
}
|
|
13014
13014
|
}));
|
|
13015
|
-
return [...de, ...
|
|
13015
|
+
return [...de, ...ye];
|
|
13016
13016
|
}
|
|
13017
13017
|
return i.buttons;
|
|
13018
13018
|
}), Mt = H(() => Et.value.filter((de) => de.config?.display !== !1)), wt = D(null), Ut = D(0), on = () => {
|
|
13019
13019
|
Ut.value = wt.value?.clientWidth || 0;
|
|
13020
13020
|
};
|
|
13021
13021
|
let wn;
|
|
13022
|
-
|
|
13023
|
-
|
|
13022
|
+
Ot(() => {
|
|
13023
|
+
Ht(on), wn = new ResizeObserver(() => {
|
|
13024
13024
|
on();
|
|
13025
13025
|
}), wt.value && wn.observe(wt.value);
|
|
13026
13026
|
}), ti(() => {
|
|
13027
13027
|
wn?.disconnect();
|
|
13028
13028
|
}), st(() => Mt.value, () => {
|
|
13029
|
-
|
|
13029
|
+
Ht(on);
|
|
13030
13030
|
}, { deep: !0 }), st(dt, () => {
|
|
13031
|
-
|
|
13031
|
+
Ht(on);
|
|
13032
13032
|
});
|
|
13033
13033
|
const dn = H(() => {
|
|
13034
13034
|
const de = Mt.value;
|
|
13035
13035
|
if (de.length === 0) return [];
|
|
13036
|
-
const
|
|
13037
|
-
if (
|
|
13038
|
-
const ze = Math.max(0,
|
|
13036
|
+
const ye = Ut.value;
|
|
13037
|
+
if (ye <= 0) return de;
|
|
13038
|
+
const ze = Math.max(0, ye - 4), Ie = (Nt, vn) => Nt.groupId || `__auto_${vn}`, be = (Nt) => {
|
|
13039
13039
|
if (Nt.config?.notLabel === !0 || !Nt.label) return 28;
|
|
13040
13040
|
const vn = 24, en = On(Nt.label || "") || 0, qt = Nt.config?.icon ? 18 : 0;
|
|
13041
13041
|
return Math.ceil(en + vn + qt + 2);
|
|
@@ -13075,7 +13075,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13075
13075
|
return da.length === 0 ? [at] : [...da, at];
|
|
13076
13076
|
});
|
|
13077
13077
|
let Xn;
|
|
13078
|
-
const G = async (de,
|
|
13078
|
+
const G = async (de, ye) => {
|
|
13079
13079
|
h.value++;
|
|
13080
13080
|
const ze = {};
|
|
13081
13081
|
de && (Xn = de), Xn && (ze.query = Xn);
|
|
@@ -13098,10 +13098,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
13098
13098
|
page: f.value,
|
|
13099
13099
|
sort: be || i.sort || i.rowKey
|
|
13100
13100
|
};
|
|
13101
|
-
const Re = await i.loadData(ze,
|
|
13101
|
+
const Re = await i.loadData(ze, ye) || {};
|
|
13102
13102
|
s.value = Re.rows || [], d.value = Re.records || 0;
|
|
13103
13103
|
} else
|
|
13104
|
-
ze.sort = be, s.value = await i.loadData(ze,
|
|
13104
|
+
ze.sort = be, s.value = await i.loadData(ze, ye) || [], d.value = s.value.length;
|
|
13105
13105
|
r.value?.setRecords(R.value), w.value ? (g.value = [], m.value = [], _.value = !1, c.value?.clearSelection?.()) : i.rowKey && m.value.length > 0 && (r.value?.setSelection?.(m.value), c.value?.selections && (c.value.selections.value = m.value.map((Re) => T(Re)).filter(Boolean)));
|
|
13106
13106
|
} else
|
|
13107
13107
|
s.value = i.modelValue || [], d.value = s.value.length, r.value?.setRecords(R.value);
|
|
@@ -13112,23 +13112,23 @@ var og = /* @__PURE__ */ xe({
|
|
|
13112
13112
|
st(() => i.modelValue, async () => {
|
|
13113
13113
|
await G();
|
|
13114
13114
|
}), st(() => S.value, async (de) => {
|
|
13115
|
-
if (await
|
|
13115
|
+
if (await Ht(), !de) {
|
|
13116
13116
|
r.value?.setSelection?.(m.value);
|
|
13117
13117
|
return;
|
|
13118
13118
|
}
|
|
13119
|
-
c.value?.selections && (c.value.selections.value = m.value.map((
|
|
13119
|
+
c.value?.selections && (c.value.selections.value = m.value.map((ye) => T(ye)).filter(Boolean));
|
|
13120
13120
|
});
|
|
13121
13121
|
const pe = async () => {
|
|
13122
13122
|
i.loadData && (f.value = 1, await G());
|
|
13123
|
-
},
|
|
13124
|
-
u.value = de, f.value =
|
|
13123
|
+
}, re = ({ rows: de, page: ye }) => {
|
|
13124
|
+
u.value = de, f.value = ye, G();
|
|
13125
13125
|
}, he = (de) => {
|
|
13126
|
-
|
|
13126
|
+
re({
|
|
13127
13127
|
rows: q(u),
|
|
13128
13128
|
page: de
|
|
13129
13129
|
});
|
|
13130
13130
|
}, _e = (de) => {
|
|
13131
|
-
|
|
13131
|
+
re({
|
|
13132
13132
|
rows: de,
|
|
13133
13133
|
page: 1
|
|
13134
13134
|
});
|
|
@@ -13140,13 +13140,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
13140
13140
|
await Be(!0);
|
|
13141
13141
|
}, Kt = (de) => {
|
|
13142
13142
|
l("ready", de);
|
|
13143
|
-
}, St = ({ selections: de, record:
|
|
13143
|
+
}, St = ({ selections: de, record: ye, checked: ze, isMultiple: Ie, isInit: be }) => {
|
|
13144
13144
|
let Re = [];
|
|
13145
13145
|
if (!i.isMultiple) {
|
|
13146
13146
|
P(de), l("select", {
|
|
13147
13147
|
selections: de,
|
|
13148
13148
|
keys: g.value,
|
|
13149
|
-
record:
|
|
13149
|
+
record: ye,
|
|
13150
13150
|
checked: ze,
|
|
13151
13151
|
isMultiple: Ie,
|
|
13152
13152
|
isInit: be
|
|
@@ -13156,7 +13156,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13156
13156
|
w.value ? (Re = de, P(de)) : i.rowKey ? (j(de), Re = m.value) : (Re = de, P(de)), l("select", {
|
|
13157
13157
|
selections: Re,
|
|
13158
13158
|
keys: g.value,
|
|
13159
|
-
record:
|
|
13159
|
+
record: ye,
|
|
13160
13160
|
checked: ze,
|
|
13161
13161
|
isMultiple: Ie,
|
|
13162
13162
|
isInit: be
|
|
@@ -13173,27 +13173,27 @@ var og = /* @__PURE__ */ xe({
|
|
|
13173
13173
|
isInit: !1
|
|
13174
13174
|
});
|
|
13175
13175
|
}, sa = () => {
|
|
13176
|
-
const de = m.value || [],
|
|
13177
|
-
if (
|
|
13178
|
-
if (!i.rowKey || de.length === 0) return
|
|
13179
|
-
const ze = new Map(
|
|
13176
|
+
const de = m.value || [], ye = !S.value && r.value?.getSelection?.() || [];
|
|
13177
|
+
if (ye.length === 0) return de;
|
|
13178
|
+
if (!i.rowKey || de.length === 0) return ye;
|
|
13179
|
+
const ze = new Map(ye.map((be) => [T(be), be])), Ie = de.map((be) => ze.get(T(be)) || be);
|
|
13180
13180
|
return m.value = Ie, Ie;
|
|
13181
13181
|
}, ro = (de) => {
|
|
13182
13182
|
if (P(de || []), S.value) {
|
|
13183
|
-
c.value?.selections && (c.value.selections.value = (de || []).map((
|
|
13183
|
+
c.value?.selections && (c.value.selections.value = (de || []).map((ye) => T(ye)).filter(Boolean));
|
|
13184
13184
|
return;
|
|
13185
13185
|
}
|
|
13186
13186
|
r.value?.setSelection?.(de);
|
|
13187
13187
|
}, ca = (de) => {
|
|
13188
13188
|
if (!i.rowKey) return;
|
|
13189
|
-
const
|
|
13190
|
-
g.value =
|
|
13189
|
+
const ye = (de || []).map((be) => String(be)), ze = new Set(ye);
|
|
13190
|
+
g.value = ye;
|
|
13191
13191
|
const Ie = new Map(m.value.filter((be) => ze.has(T(be))).map((be) => [T(be), be]));
|
|
13192
13192
|
if (s.value.forEach((be) => {
|
|
13193
13193
|
const Re = T(be);
|
|
13194
13194
|
ze.has(Re) && Ie.set(Re, be);
|
|
13195
13195
|
}), m.value = Array.from(Ie.values()), S.value) {
|
|
13196
|
-
c.value?.selections && (c.value.selections.value =
|
|
13196
|
+
c.value?.selections && (c.value.selections.value = ye);
|
|
13197
13197
|
return;
|
|
13198
13198
|
}
|
|
13199
13199
|
r.value?.setSelection?.(m.value);
|
|
@@ -13202,13 +13202,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
13202
13202
|
200,
|
|
13203
13203
|
500,
|
|
13204
13204
|
1e3
|
|
13205
|
-
]), ua = H(() => !!i.rowKey && !i.isMultiple), Ho = H(() => !!i.rowKey && i.isMultiple), bl = ({ buttons: de, row:
|
|
13205
|
+
]), ua = H(() => !!i.rowKey && !i.isMultiple), Ho = H(() => !!i.rowKey && i.isMultiple), bl = ({ buttons: de, row: ye }) => {
|
|
13206
13206
|
if (!i.actionFilter) return;
|
|
13207
|
-
const ze = s.value.findIndex((Ie) => T(Ie) === T(
|
|
13207
|
+
const ze = s.value.findIndex((Ie) => T(Ie) === T(ye));
|
|
13208
13208
|
de.forEach((Ie) => {
|
|
13209
13209
|
const be = i.actionFilter?.({
|
|
13210
13210
|
action: Ie,
|
|
13211
|
-
record:
|
|
13211
|
+
record: ye,
|
|
13212
13212
|
recordIndex: ze,
|
|
13213
13213
|
col: -1,
|
|
13214
13214
|
row: ze,
|
|
@@ -13220,9 +13220,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13220
13220
|
}
|
|
13221
13221
|
be && typeof be == "object" && (be.display !== void 0 && (Ie.config = Ie.config || {}, Ie.config.display = be.display), be.disabled !== void 0 && (Ie.config = Ie.config || {}, Ie.config.disabled = be.disabled));
|
|
13222
13222
|
});
|
|
13223
|
-
}, xi = ({ selections: de, rows:
|
|
13223
|
+
}, xi = ({ selections: de, rows: ye }) => {
|
|
13224
13224
|
if (!i.isMultiple) {
|
|
13225
|
-
const Ie =
|
|
13225
|
+
const Ie = ye[0], be = Ie ? [Ie] : [];
|
|
13226
13226
|
P(be), l("select", {
|
|
13227
13227
|
selections: be,
|
|
13228
13228
|
keys: g.value,
|
|
@@ -13235,7 +13235,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13235
13235
|
}
|
|
13236
13236
|
let ze = [];
|
|
13237
13237
|
if (w.value || !i.rowKey)
|
|
13238
|
-
ze =
|
|
13238
|
+
ze = ye, P(ye);
|
|
13239
13239
|
else {
|
|
13240
13240
|
const Ie = new Set(de), be = new Set(g.value), Re = new Map(m.value.map((Gt) => [T(Gt), Gt]));
|
|
13241
13241
|
s.value.forEach((Gt) => {
|
|
@@ -13246,13 +13246,13 @@ var og = /* @__PURE__ */ xe({
|
|
|
13246
13246
|
l("select", {
|
|
13247
13247
|
selections: ze,
|
|
13248
13248
|
keys: g.value,
|
|
13249
|
-
record:
|
|
13249
|
+
record: ye[0] || {},
|
|
13250
13250
|
checked: ze.length > 0,
|
|
13251
13251
|
isMultiple: !0,
|
|
13252
13252
|
isInit: !1
|
|
13253
13253
|
}), _.value && ze.length === 0 && (_.value = !1);
|
|
13254
13254
|
};
|
|
13255
|
-
return
|
|
13255
|
+
return Ot(async () => {
|
|
13256
13256
|
i.immediate && await Ne();
|
|
13257
13257
|
}), t({
|
|
13258
13258
|
refreshData: Ne,
|
|
@@ -13261,10 +13261,10 @@ var og = /* @__PURE__ */ xe({
|
|
|
13261
13261
|
setSelection: ro,
|
|
13262
13262
|
setSelectionById: ca,
|
|
13263
13263
|
clearSelection: () => {
|
|
13264
|
-
|
|
13264
|
+
It();
|
|
13265
13265
|
},
|
|
13266
13266
|
getTableRef: Yt
|
|
13267
|
-
}), (de,
|
|
13267
|
+
}), (de, ye) => {
|
|
13268
13268
|
const ze = V("j-buttons"), Ie = V("j-icon"), be = V("el-popover"), Re = V("el-tooltip"), Gt = V("el-input"), Qt = V("j-button"), da = V("el-pagination"), Sn = V("j-card-list"), Pa = V("j-table"), Ha = xo("loading");
|
|
13269
13269
|
return k(), L("div", { class: Qe(["j-table-panel-wrapper", {
|
|
13270
13270
|
fullscreen: dt.value,
|
|
@@ -13276,7 +13276,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13276
13276
|
}, [Q(ze, { list: dn.value }, null, 8, ["list"])], 512), I("div", cb, [
|
|
13277
13277
|
y.value && W.value && !C.value ? (k(), L("div", ub, [Q(Gt, {
|
|
13278
13278
|
modelValue: E.value,
|
|
13279
|
-
"onUpdate:modelValue":
|
|
13279
|
+
"onUpdate:modelValue": ye[2] || (ye[2] = (at) => E.value = at),
|
|
13280
13280
|
modelModifiers: { trim: !0 },
|
|
13281
13281
|
placeholder: q(a)("搜索数据"),
|
|
13282
13282
|
clearable: "",
|
|
@@ -13306,9 +13306,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13306
13306
|
ref_key: "keywordPanelRef",
|
|
13307
13307
|
ref: F,
|
|
13308
13308
|
"check-all": ie.value,
|
|
13309
|
-
"onUpdate:checkAll":
|
|
13309
|
+
"onUpdate:checkAll": ye[0] || (ye[0] = (at) => ie.value = at),
|
|
13310
13310
|
"check-fields": me.value,
|
|
13311
|
-
"onUpdate:checkFields":
|
|
13311
|
+
"onUpdate:checkFields": ye[1] || (ye[1] = (at) => me.value = at),
|
|
13312
13312
|
columns: M.value
|
|
13313
13313
|
}, null, 8, [
|
|
13314
13314
|
"check-all",
|
|
@@ -13324,7 +13324,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13324
13324
|
y.value && e.showFilterButton && !z.value && !C.value ? (k(), K(be, {
|
|
13325
13325
|
key: 1,
|
|
13326
13326
|
visible: ue.value,
|
|
13327
|
-
"onUpdate:visible":
|
|
13327
|
+
"onUpdate:visible": ye[6] || (ye[6] = (at) => ue.value = at),
|
|
13328
13328
|
placement: "bottom",
|
|
13329
13329
|
"popper-style": "padding: 0",
|
|
13330
13330
|
width: 664,
|
|
@@ -13342,14 +13342,14 @@ var og = /* @__PURE__ */ xe({
|
|
|
13342
13342
|
ref_key: "filterPanelRef",
|
|
13343
13343
|
ref: Z,
|
|
13344
13344
|
"is-pin": z.value,
|
|
13345
|
-
"onUpdate:isPin":
|
|
13345
|
+
"onUpdate:isPin": ye[3] || (ye[3] = (at) => z.value = at),
|
|
13346
13346
|
relation: We.value,
|
|
13347
|
-
"onUpdate:relation":
|
|
13347
|
+
"onUpdate:relation": ye[4] || (ye[4] = (at) => We.value = at),
|
|
13348
13348
|
"search-list": e.searchList,
|
|
13349
13349
|
"search-field-list": Se.value,
|
|
13350
13350
|
columns: M.value,
|
|
13351
13351
|
onFilter: pe,
|
|
13352
|
-
onClose:
|
|
13352
|
+
onClose: ye[5] || (ye[5] = (at) => ue.value = !1)
|
|
13353
13353
|
}, null, 8, [
|
|
13354
13354
|
"is-pin",
|
|
13355
13355
|
"relation",
|
|
@@ -13366,7 +13366,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13366
13366
|
}, {
|
|
13367
13367
|
default: X(() => [I("div", null, [Q(be, {
|
|
13368
13368
|
visible: xt.value,
|
|
13369
|
-
"onUpdate:visible":
|
|
13369
|
+
"onUpdate:visible": ye[7] || (ye[7] = (at) => xt.value = at),
|
|
13370
13370
|
placement: "bottom",
|
|
13371
13371
|
"popper-style": "padding: 0",
|
|
13372
13372
|
width: 380,
|
|
@@ -13396,7 +13396,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13396
13396
|
}, {
|
|
13397
13397
|
default: X(() => [I("div", null, [Q(be, {
|
|
13398
13398
|
visible: Ae.value,
|
|
13399
|
-
"onUpdate:visible":
|
|
13399
|
+
"onUpdate:visible": ye[8] || (ye[8] = (at) => Ae.value = at),
|
|
13400
13400
|
placement: "bottom",
|
|
13401
13401
|
"popper-style": "padding: 0",
|
|
13402
13402
|
width: 400,
|
|
@@ -13453,11 +13453,11 @@ var og = /* @__PURE__ */ xe({
|
|
|
13453
13453
|
}, [I("div", fb, [(k(!0), L(He, null, Fe(R.value, (at, Nt) => (k(), K(Ja(e.renderVNode(at)), {
|
|
13454
13454
|
key: T(at) || Nt,
|
|
13455
13455
|
onClick: (vn) => ra(at)
|
|
13456
|
-
}, null, 8, ["onClick"]))), 128))]), x.value ? (k(), L("div", hb, [
|
|
13456
|
+
}, null, 8, ["onClick"]))), 128))]), x.value ? (k(), L("div", hb, [ye[16] || (ye[16] = I("div", null, null, -1)), Q(da, {
|
|
13457
13457
|
"current-page": f.value,
|
|
13458
|
-
"onUpdate:currentPage":
|
|
13458
|
+
"onUpdate:currentPage": ye[9] || (ye[9] = (at) => f.value = at),
|
|
13459
13459
|
"page-size": u.value,
|
|
13460
|
-
"onUpdate:pageSize":
|
|
13460
|
+
"onUpdate:pageSize": ye[10] || (ye[10] = (at) => u.value = at),
|
|
13461
13461
|
"page-sizes": e.pageSizes || [
|
|
13462
13462
|
100,
|
|
13463
13463
|
200,
|
|
@@ -13486,9 +13486,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13486
13486
|
"page-sizes": gn.value,
|
|
13487
13487
|
"page-total": d.value,
|
|
13488
13488
|
"table-page": f.value,
|
|
13489
|
-
"onUpdate:tablePage":
|
|
13489
|
+
"onUpdate:tablePage": ye[11] || (ye[11] = (at) => f.value = at),
|
|
13490
13490
|
"page-size": u.value,
|
|
13491
|
-
"onUpdate:pageSize":
|
|
13491
|
+
"onUpdate:pageSize": ye[12] || (ye[12] = (at) => u.value = at),
|
|
13492
13492
|
"max-btns": e.actionsMaxCount,
|
|
13493
13493
|
"row-key": e.rowKey,
|
|
13494
13494
|
"is-radio": ua.value,
|
|
@@ -13499,7 +13499,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13499
13499
|
"card-height": e.cardHeight,
|
|
13500
13500
|
"image-fit": e.cardImageFit,
|
|
13501
13501
|
"set-button": bl,
|
|
13502
|
-
onLoadPageData:
|
|
13502
|
+
onLoadPageData: re,
|
|
13503
13503
|
onSelectionChange: xi
|
|
13504
13504
|
}, null, 8, [
|
|
13505
13505
|
"data-source",
|
|
@@ -13526,7 +13526,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13526
13526
|
ref_key: "tableRef",
|
|
13527
13527
|
ref: r,
|
|
13528
13528
|
"table-page": f.value,
|
|
13529
|
-
"onUpdate:tablePage":
|
|
13529
|
+
"onUpdate:tablePage": ye[13] || (ye[13] = (at) => f.value = at),
|
|
13530
13530
|
columns: B.value,
|
|
13531
13531
|
"column-filter": e.columnFilter,
|
|
13532
13532
|
"sub-columns": e.subColumns,
|
|
@@ -13553,7 +13553,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13553
13553
|
"highlight-mode": e.highlightMode,
|
|
13554
13554
|
"load-children": e.loadChildren,
|
|
13555
13555
|
"row-drag": e.rowDrag,
|
|
13556
|
-
onLoadPageData:
|
|
13556
|
+
onLoadPageData: re,
|
|
13557
13557
|
onReady: Kt,
|
|
13558
13558
|
onSelectionChanged: St,
|
|
13559
13559
|
onSelectRecordsChanged: zn
|
|
@@ -13589,9 +13589,9 @@ var og = /* @__PURE__ */ xe({
|
|
|
13589
13589
|
ref_key: "filterPanelRef",
|
|
13590
13590
|
ref: Z,
|
|
13591
13591
|
"is-pin": z.value,
|
|
13592
|
-
"onUpdate:isPin":
|
|
13592
|
+
"onUpdate:isPin": ye[14] || (ye[14] = (at) => z.value = at),
|
|
13593
13593
|
relation: We.value,
|
|
13594
|
-
"onUpdate:relation":
|
|
13594
|
+
"onUpdate:relation": ye[15] || (ye[15] = (at) => We.value = at),
|
|
13595
13595
|
"search-list": e.searchList,
|
|
13596
13596
|
"search-field-list": Se.value,
|
|
13597
13597
|
columns: M.value,
|
|
@@ -13784,7 +13784,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13784
13784
|
label: "label",
|
|
13785
13785
|
disabled: "disabled"
|
|
13786
13786
|
}, p = H(() => r ? r({ config: a }) || [] : []), g = H(() => a.dataCode || a.dataType ? p.value : a.list ? q(a.list) : u.value), m = async () => {
|
|
13787
|
-
d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({ config: a }, !1), d.value = !1,
|
|
13787
|
+
d.value = !0, a.loadData && (u.value = await a.loadData() || []), c && await c({ config: a }, !1), d.value = !1, Ht(() => {
|
|
13788
13788
|
a.afterLoadData && a.afterLoadData(g.value || []);
|
|
13789
13789
|
});
|
|
13790
13790
|
}, _ = (B, M = !0) => {
|
|
@@ -13820,7 +13820,7 @@ var og = /* @__PURE__ */ xe({
|
|
|
13820
13820
|
}, j = D(""), P = (B, M) => {
|
|
13821
13821
|
j.value = B ? M.value : "";
|
|
13822
13822
|
}, A = (B, M, E) => a.allowDrop ? a.allowDrop(B, M, E) : !(E == "inner" && !M.data.canInner);
|
|
13823
|
-
return
|
|
13823
|
+
return Ot(async () => {
|
|
13824
13824
|
(a.immediate && a.loadData || a.dataType || a.dataCode) && await m();
|
|
13825
13825
|
}), st(() => a.dataCode || a.dataType, () => {
|
|
13826
13826
|
m();
|
|
@@ -14156,14 +14156,14 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14156
14156
|
].includes(T[G]?.type || "");
|
|
14157
14157
|
let $e;
|
|
14158
14158
|
const Se = (G, pe) => {
|
|
14159
|
-
Object.keys(G).forEach((
|
|
14160
|
-
const he = G[
|
|
14161
|
-
pe && (
|
|
14159
|
+
Object.keys(G).forEach((re) => {
|
|
14160
|
+
const he = G[re];
|
|
14161
|
+
pe && (re = pe + "." + re), he != null && typeof he == "object" && !Dl(he) && Se(he, re), x[re] = he;
|
|
14162
14162
|
});
|
|
14163
14163
|
}, We = (G, pe) => {
|
|
14164
|
-
let
|
|
14165
|
-
return
|
|
14166
|
-
}, lt = (G, pe,
|
|
14164
|
+
let re = G.id;
|
|
14165
|
+
return re || (G.config?.table && G.config?.field ? re = `${G.config.table}.${G.config.field}` : G.config?.table ? re = G.config?.table : G.config?.field && (re = G.config?.field), pe && (re = `${pe}.${re}`)), re || dr("j");
|
|
14166
|
+
}, lt = (G, pe, re, he = "") => {
|
|
14167
14167
|
G.forEach((_e) => {
|
|
14168
14168
|
_e.id = We(_e, he);
|
|
14169
14169
|
const Be = {
|
|
@@ -14192,10 +14192,10 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14192
14192
|
he !== "" && (pt = !0, Be.config.parentTableId = he, Kt = T[he]?.config?.table);
|
|
14193
14193
|
const St = Be.config || {};
|
|
14194
14194
|
if (z(_e.id))
|
|
14195
|
-
!
|
|
14195
|
+
!re && pt === !1 && (St?.defaultValue === 0 ? x[_e.id] = St?.defaultValue : x[_e.id] = St?.defaultValue || void 0), St.table && St.field ? j[`${St.table}_${St.field}`.toLowerCase()] = _e.id : St.field && (pt ? j[`${Kt}_${St.field}`.toLowerCase()] = _e.id : j[`${St.field}`.toLowerCase()] = _e.id);
|
|
14196
14196
|
else if (pt && St.field) j[`${Kt}_${St.field}`.toLowerCase()] = _e.id;
|
|
14197
14197
|
else if (ue(_e.id))
|
|
14198
|
-
!
|
|
14198
|
+
!re && !St.isSubTable && (x[_e.id] = []), St.table && (j[St.table.toLowerCase() || ""] = _e.id), St.isSubTable || A.push(Be);
|
|
14199
14199
|
else if (St?.defaultValue) x[_e.id] = St?.defaultValue;
|
|
14200
14200
|
else if (_e.type === "collapse" && St?.isExpand) {
|
|
14201
14201
|
const zn = [];
|
|
@@ -14203,15 +14203,15 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14203
14203
|
zn.push(ra.i);
|
|
14204
14204
|
}), x[_e.id] = zn;
|
|
14205
14205
|
}
|
|
14206
|
-
Ne && Ne.length > 0 && lt(Ne, Be.children,
|
|
14206
|
+
Ne && Ne.length > 0 && lt(Ne, Be.children, re, ue(Be.id) ? Be.id : he);
|
|
14207
14207
|
});
|
|
14208
14208
|
}, xt = async (G, pe) => {
|
|
14209
|
-
const
|
|
14210
|
-
_.value = !1, he && await
|
|
14209
|
+
const re = ++W, he = _.value;
|
|
14210
|
+
_.value = !1, he && await Ht();
|
|
14211
14211
|
const _e = !!pe;
|
|
14212
14212
|
if (R.length = 0, j = /* @__PURE__ */ Object.create(null), P = /* @__PURE__ */ Object.create(null), A = [], $e = pe, Yo(x), Yo(T), _e && Se(pe, ""), lt(G, R, _e), M = J(), E = !1, B = M, me(() => {
|
|
14213
|
-
|
|
14214
|
-
}), await
|
|
14213
|
+
re === W && (B = Xt(M), E = !0);
|
|
14214
|
+
}), await Ht(), _.value = !0, await Ht(), await ie(), a.config?.codeInit) {
|
|
14215
14215
|
const Be = a.config.codeInit;
|
|
14216
14216
|
let Ne;
|
|
14217
14217
|
F?.raw === Be ? Ne = F.obj : (Ne = JSON.parse(Be), F = {
|
|
@@ -14219,14 +14219,14 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14219
14219
|
obj: Ne
|
|
14220
14220
|
}), await dn(Ne, { param: {} });
|
|
14221
14221
|
}
|
|
14222
|
-
}, Ze = (G, pe,
|
|
14222
|
+
}, Ze = (G, pe, re) => {
|
|
14223
14223
|
const he = [];
|
|
14224
14224
|
return pe.forEach((_e) => {
|
|
14225
14225
|
const Be = {};
|
|
14226
14226
|
Object.keys(_e).forEach((Ne) => {
|
|
14227
|
-
if (!
|
|
14227
|
+
if (!re || re(Ne, _e[Ne], G)) {
|
|
14228
14228
|
const pt = Le(Ne);
|
|
14229
|
-
if (pt?.type === "j-table" || pt?.type === "j-table-panel") Be[pt?.id || ""] = Ze(Ne, _e[Ne],
|
|
14229
|
+
if (pt?.type === "j-table" || pt?.type === "j-table-panel") Be[pt?.id || ""] = Ze(Ne, _e[Ne], re);
|
|
14230
14230
|
else {
|
|
14231
14231
|
let Kt = j[`${G}_${Ne}`.toLowerCase()] || Ne;
|
|
14232
14232
|
Kt = Kt.indexOf(".") !== -1 ? Kt.split(".")[1] : Kt, Be[Kt] = _e[Ne];
|
|
@@ -14235,45 +14235,45 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14235
14235
|
}), he.push(Be);
|
|
14236
14236
|
}), he;
|
|
14237
14237
|
}, ne = (G, pe) => {
|
|
14238
|
-
Object.keys(G || {}).forEach((
|
|
14239
|
-
let he = G[
|
|
14240
|
-
const _e = Le(
|
|
14238
|
+
Object.keys(G || {}).forEach((re) => {
|
|
14239
|
+
let he = G[re];
|
|
14240
|
+
const _e = Le(re);
|
|
14241
14241
|
if (_e === void 0)
|
|
14242
14242
|
he && (Dl(he) && (he = he[0] || {}), typeof he == "object" ? Object.keys(he).forEach((Be) => {
|
|
14243
|
-
if (!pe || pe(
|
|
14243
|
+
if (!pe || pe(re, he[Be], re)) {
|
|
14244
14244
|
let Ne = Be;
|
|
14245
|
-
|
|
14245
|
+
re !== "main" && (Ne = `${re}_${Be}`), P[Ne] = re, x[j[Ne.toLowerCase()] || Be] = he[Be];
|
|
14246
14246
|
}
|
|
14247
|
-
}) : x[
|
|
14247
|
+
}) : x[re] = he);
|
|
14248
14248
|
else if (ue(_e.id || "")) {
|
|
14249
14249
|
if (!Array.isArray(he)) {
|
|
14250
|
-
console.warn("表格数据不是数组:" +
|
|
14250
|
+
console.warn("表格数据不是数组:" + re);
|
|
14251
14251
|
return;
|
|
14252
14252
|
}
|
|
14253
|
-
he?.length > 0 ? x[j[
|
|
14254
|
-
} else (!pe || pe(
|
|
14253
|
+
he?.length > 0 ? x[j[re.toLowerCase()] || re] = Ze(re, he, pe) : x[j[re.toLowerCase()] || re] = [];
|
|
14254
|
+
} else (!pe || pe(re, he, re)) && (x[j[re.toLowerCase()] || re] = he);
|
|
14255
14255
|
}), dt();
|
|
14256
14256
|
}, Ce = /* @__PURE__ */ new Set([
|
|
14257
14257
|
"parentRow",
|
|
14258
14258
|
"_i",
|
|
14259
14259
|
"_compTypeByRender"
|
|
14260
14260
|
]), ct = (G, pe = !1) => {
|
|
14261
|
-
const
|
|
14261
|
+
const re = {};
|
|
14262
14262
|
return Object.keys(G).forEach((he) => {
|
|
14263
14263
|
if (Ce.has(he)) return;
|
|
14264
14264
|
const _e = T[he];
|
|
14265
14265
|
if (_e) {
|
|
14266
14266
|
const Be = _e.config?.table, Ne = _e.config?.field;
|
|
14267
|
-
if (pe) Ne ?
|
|
14267
|
+
if (pe) Ne ? re[Ne] = G[he] : re[he] = G[he];
|
|
14268
14268
|
else if (ue(he)) {
|
|
14269
14269
|
const pt = [];
|
|
14270
14270
|
G[he].forEach((Kt) => {
|
|
14271
14271
|
pt.push(ct(Kt, !0));
|
|
14272
|
-
}),
|
|
14273
|
-
} else Be && Ne ? (
|
|
14274
|
-
} else pe ? he !== "_X_ROW_KEY" && he !== "_isHover" && (
|
|
14275
|
-
}),
|
|
14276
|
-
}, _t = (G = !0) => G ? ct(x) : x, N = (G, pe,
|
|
14272
|
+
}), re[Be || he] = pt;
|
|
14273
|
+
} else Be && Ne ? (re[Be] = re[Be] || {}, re[Be][Ne] = G[he]) : Ne && (re[Ne] = G[he]);
|
|
14274
|
+
} else pe ? he !== "_X_ROW_KEY" && he !== "_isHover" && (re[he] = G[he]) : P[he] ? (re[P[he]] = re[P[he]] || {}, re[P[he]][he.replace(`${P[he]}_`, "")] = G[he]) : re[he] = G[he];
|
|
14275
|
+
}), re;
|
|
14276
|
+
}, _t = (G = !0) => G ? ct(x) : x, N = (G, pe, re, he) => {
|
|
14277
14277
|
let _e = T[G];
|
|
14278
14278
|
if (_e == null) {
|
|
14279
14279
|
const Ne = G.split(".");
|
|
@@ -14284,13 +14284,13 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14284
14284
|
config: _e.config || {},
|
|
14285
14285
|
getCompConfig: _e.getCompConfig,
|
|
14286
14286
|
formData: x,
|
|
14287
|
-
getTableData:
|
|
14287
|
+
getTableData: re,
|
|
14288
14288
|
row: pe,
|
|
14289
14289
|
pRowData: he
|
|
14290
14290
|
});
|
|
14291
14291
|
return Be._componentId = _e?.id, Be;
|
|
14292
|
-
}, ke = (G, pe,
|
|
14293
|
-
const _e = N(G, pe,
|
|
14292
|
+
}, ke = (G, pe, re, he) => {
|
|
14293
|
+
const _e = N(G, pe, re, he);
|
|
14294
14294
|
if (_e.isNotRule !== !0 && _e.display !== !1) {
|
|
14295
14295
|
const Be = _e.rule || [], Ne = Be.find((pt) => pt.type === "only");
|
|
14296
14296
|
return Ne && (Ne.validator = async (pt, Kt) => {
|
|
@@ -14330,47 +14330,47 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14330
14330
|
return pe === void 0 && j[G.toLowerCase()] && (pe = T[j[G.toLowerCase()]]), pe;
|
|
14331
14331
|
}, Ye = ["j-tabs", "j-collapse"], dt = (G) => {
|
|
14332
14332
|
$e && (G || Object.keys(x)).forEach((pe) => {
|
|
14333
|
-
const
|
|
14334
|
-
(
|
|
14333
|
+
const re = Le(pe);
|
|
14334
|
+
(re === void 0 || !Ye.includes(re.type || "")) && ts($e, pe, x[pe]);
|
|
14335
14335
|
});
|
|
14336
|
-
}, Jt = ({ id: G, i: pe, value:
|
|
14336
|
+
}, Jt = ({ id: G, i: pe, value: re, type: he }) => {
|
|
14337
14337
|
let _e = G;
|
|
14338
|
-
if (he === "add") x[G].push(
|
|
14338
|
+
if (he === "add") x[G].push(re);
|
|
14339
14339
|
else if (he === "delete") x[G].splice(pe, 1);
|
|
14340
14340
|
else {
|
|
14341
14341
|
const Be = Le(G);
|
|
14342
14342
|
if (!Be) return;
|
|
14343
14343
|
const Ne = Be.config?.parentTableId;
|
|
14344
|
-
Ne ? (x[Ne][pe][G] =
|
|
14344
|
+
Ne ? (x[Ne][pe][G] = re, _e = Ne) : x[G] = re;
|
|
14345
14345
|
}
|
|
14346
14346
|
dt([_e]);
|
|
14347
|
-
},
|
|
14348
|
-
const
|
|
14349
|
-
if (
|
|
14350
|
-
if (
|
|
14351
|
-
const he = x[
|
|
14347
|
+
}, It = ({ id: G, i: pe }) => {
|
|
14348
|
+
const re = Le(G);
|
|
14349
|
+
if (re) {
|
|
14350
|
+
if (re.config.parentTableId) {
|
|
14351
|
+
const he = x[re.config.parentTableId], _e = re.id ? re.id.replace(`${re.config.parentTableId}.`, "") : "";
|
|
14352
14352
|
if (pe != null) return (he[pe] || {})[_e || ""];
|
|
14353
14353
|
const Be = [];
|
|
14354
14354
|
return he && he.forEach((Ne) => {
|
|
14355
14355
|
Be.push(Ne[_e || ""]);
|
|
14356
14356
|
}), Be;
|
|
14357
14357
|
}
|
|
14358
|
-
if (ue(
|
|
14358
|
+
if (ue(re.id || "")) {
|
|
14359
14359
|
const he = [];
|
|
14360
|
-
return x[
|
|
14360
|
+
return x[re.id || ""].forEach((_e) => {
|
|
14361
14361
|
he.push(ct(_e, !0));
|
|
14362
14362
|
}), he;
|
|
14363
14363
|
}
|
|
14364
|
-
return x[
|
|
14364
|
+
return x[re.id || ""];
|
|
14365
14365
|
}
|
|
14366
14366
|
if (x[G]) return x[G];
|
|
14367
14367
|
}, un = async ({ id: G, i: pe }) => {
|
|
14368
|
-
const
|
|
14368
|
+
const re = It({
|
|
14369
14369
|
id: G,
|
|
14370
14370
|
i: pe
|
|
14371
14371
|
}), he = Le(G);
|
|
14372
14372
|
if (he && g?.getLabelByValue) if (pe !== void 0) {
|
|
14373
|
-
const _e =
|
|
14373
|
+
const _e = re[pe], Be = x[he.config.parentTableId || ""][pe], Ne = kn({
|
|
14374
14374
|
config: he.config,
|
|
14375
14375
|
getCompConfig: he.getCompConfig,
|
|
14376
14376
|
formData: x,
|
|
@@ -14391,12 +14391,12 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14391
14391
|
formData: x
|
|
14392
14392
|
});
|
|
14393
14393
|
return await g?.getLabelByValue({
|
|
14394
|
-
value:
|
|
14394
|
+
value: re,
|
|
14395
14395
|
config: _e,
|
|
14396
14396
|
formData: x
|
|
14397
14397
|
});
|
|
14398
14398
|
}
|
|
14399
|
-
return
|
|
14399
|
+
return re;
|
|
14400
14400
|
}, pn = async (G, pe) => g?.loadDataByComp ? await g.loadDataByComp({
|
|
14401
14401
|
config: {
|
|
14402
14402
|
dataType: "dataView",
|
|
@@ -14404,14 +14404,14 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14404
14404
|
},
|
|
14405
14405
|
formData: x,
|
|
14406
14406
|
params: pe
|
|
14407
|
-
}, !1) : [], Et = (G) => (G.set = Jt, G.get =
|
|
14407
|
+
}, !1) : [], Et = (G) => (G.set = Jt, G.get = It, G.setFormData = ne, G.getFormData = _t, G.getLabel = un, G.getViewData = pn, G.getDateNow = (pe) => pr(/* @__PURE__ */ new Date(), pe || "YYYY-MM-DD HH:mm:ss"), G.httpGet = r || (() => {
|
|
14408
14408
|
console.log("当前状态不支持");
|
|
14409
14409
|
}), G.httpPost = c || (() => {
|
|
14410
14410
|
console.log("当前状态不支持");
|
|
14411
14411
|
}), G.loading = (pe) => {
|
|
14412
14412
|
Ua(pe);
|
|
14413
|
-
}, G.showMsg = ({ text: pe, type:
|
|
14414
|
-
switch (
|
|
14413
|
+
}, G.showMsg = ({ text: pe, type: re }) => {
|
|
14414
|
+
switch (re) {
|
|
14415
14415
|
case "success":
|
|
14416
14416
|
s && s(pe);
|
|
14417
14417
|
break;
|
|
@@ -14431,8 +14431,8 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14431
14431
|
}, G), Mt = async (G, pe) => {
|
|
14432
14432
|
if (G && G.trim()) {
|
|
14433
14433
|
G = `async (jcode) => {${G}}`;
|
|
14434
|
-
const { res:
|
|
14435
|
-
|
|
14434
|
+
const { res: re, fn: he } = zc(G);
|
|
14435
|
+
re && await he(Et(pe));
|
|
14436
14436
|
}
|
|
14437
14437
|
}, wt = async () => {
|
|
14438
14438
|
a.config?.codeAfterSetData && await dn(JSON.parse(a.config?.codeAfterSetData), { param: {} });
|
|
@@ -14443,7 +14443,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14443
14443
|
};
|
|
14444
14444
|
a.schema && xt(a.schema);
|
|
14445
14445
|
const wn = {}, dn = async (G, pe) => {
|
|
14446
|
-
const { run:
|
|
14446
|
+
const { run: re } = au({
|
|
14447
14447
|
data: G,
|
|
14448
14448
|
actions: a.actions,
|
|
14449
14449
|
utils: {
|
|
@@ -14453,7 +14453,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14453
14453
|
inputParams: pe,
|
|
14454
14454
|
notRunActions: wn
|
|
14455
14455
|
});
|
|
14456
|
-
await
|
|
14456
|
+
await re();
|
|
14457
14457
|
};
|
|
14458
14458
|
return Gc({
|
|
14459
14459
|
formData: x,
|
|
@@ -14464,7 +14464,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14464
14464
|
span: b,
|
|
14465
14465
|
labelWidth: v,
|
|
14466
14466
|
labelPosition: C,
|
|
14467
|
-
getValue:
|
|
14467
|
+
getValue: It,
|
|
14468
14468
|
formChange: Z,
|
|
14469
14469
|
runFlow: dn,
|
|
14470
14470
|
runFlowByNotRunActions: async (G) => {
|
|
@@ -14476,7 +14476,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14476
14476
|
reset: Ke,
|
|
14477
14477
|
validate: Oe,
|
|
14478
14478
|
setValue: Jt,
|
|
14479
|
-
getValue:
|
|
14479
|
+
getValue: It,
|
|
14480
14480
|
getLabel: un,
|
|
14481
14481
|
setFormData: ne,
|
|
14482
14482
|
getFormData: _t,
|
|
@@ -14484,7 +14484,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14484
14484
|
beforeSave: Ut,
|
|
14485
14485
|
afterSave: on
|
|
14486
14486
|
}), (G, pe) => {
|
|
14487
|
-
const
|
|
14487
|
+
const re = V("j-form-item"), he = V("el-row"), _e = V("el-form");
|
|
14488
14488
|
return _.value ? (k(), K(_e, {
|
|
14489
14489
|
key: 0,
|
|
14490
14490
|
class: Qe([
|
|
@@ -14498,11 +14498,11 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14498
14498
|
onSubmit: pe[0] || (pe[0] = nn(() => {
|
|
14499
14499
|
}, ["prevent"]))
|
|
14500
14500
|
}, {
|
|
14501
|
-
default: X(() => [y.value ? (k(), K(
|
|
14501
|
+
default: X(() => [y.value ? (k(), K(re, et({ key: 0 }, R[0], { "is-not-col": "" }), null, 16)) : (k(), K(he, {
|
|
14502
14502
|
key: 1,
|
|
14503
14503
|
gutter: w.value
|
|
14504
14504
|
}, {
|
|
14505
|
-
default: X(() => [(k(!0), L(He, null, Fe(R, (Be) => (k(), K(
|
|
14505
|
+
default: X(() => [(k(!0), L(He, null, Fe(R, (Be) => (k(), K(re, et({ key: Be.id }, { ref_for: !0 }, Be), null, 16))), 128))]),
|
|
14506
14506
|
_: 1
|
|
14507
14507
|
}, 8, ["gutter"]))]),
|
|
14508
14508
|
_: 1
|
|
@@ -14545,7 +14545,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14545
14545
|
i[v.id] = C, C.config = [], Ui(C.config, v.config || {}, ["defaultValue"]), v?.config?.defaultValue !== void 0 && (l[v.id] = v.config.defaultValue), b.push(C), y && y.length > 0 && (C.children = [], r(y, C.children));
|
|
14546
14546
|
});
|
|
14547
14547
|
}, c = (w) => {
|
|
14548
|
-
a.value = !1, o.splice(0, o.length), Yo(i), Yo(l), r(w, o),
|
|
14548
|
+
a.value = !1, o.splice(0, o.length), Yo(i), Yo(l), r(w, o), Ht(() => {
|
|
14549
14549
|
a.value = !0;
|
|
14550
14550
|
});
|
|
14551
14551
|
};
|
|
@@ -14823,7 +14823,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14823
14823
|
}, v = (y) => {
|
|
14824
14824
|
o("rowChange", y);
|
|
14825
14825
|
};
|
|
14826
|
-
|
|
14826
|
+
Ot(() => {
|
|
14827
14827
|
if (!f.value || !h.value) return;
|
|
14828
14828
|
const y = h.value, { initSortable: x } = Oh(y, {
|
|
14829
14829
|
handle: ".j-input-rows-drag",
|
|
@@ -14985,7 +14985,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14985
14985
|
data: void 0
|
|
14986
14986
|
});
|
|
14987
14987
|
}, p = async ({ checked: w }) => {
|
|
14988
|
-
s.value && w && (await
|
|
14988
|
+
s.value && w && (await Ht(), await g());
|
|
14989
14989
|
}, g = async () => {
|
|
14990
14990
|
if (!r.value) return;
|
|
14991
14991
|
const w = r.value.getSelection();
|
|
@@ -15297,7 +15297,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15297
15297
|
}), c = (s) => {
|
|
15298
15298
|
a("change", s);
|
|
15299
15299
|
};
|
|
15300
|
-
return
|
|
15300
|
+
return Ot(() => {
|
|
15301
15301
|
n.autoFocus && !n.readonly && setTimeout(() => {
|
|
15302
15302
|
const s = r.value === i.value ? l.value : i.value;
|
|
15303
15303
|
r.value = s, c(s);
|
|
@@ -15541,7 +15541,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15541
15541
|
}
|
|
15542
15542
|
return u;
|
|
15543
15543
|
};
|
|
15544
|
-
return
|
|
15544
|
+
return Ot(() => {
|
|
15545
15545
|
const f = {
|
|
15546
15546
|
placeholder: n.placeholder || "请输入内容...",
|
|
15547
15547
|
readOnly: n.readonly,
|
|
@@ -15669,7 +15669,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15669
15669
|
_(b);
|
|
15670
15670
|
} })), p.search(m));
|
|
15671
15671
|
}
|
|
15672
|
-
}),
|
|
15672
|
+
}), Ot(() => {
|
|
15673
15673
|
f();
|
|
15674
15674
|
}), (m, _) => (k(), L("div", {
|
|
15675
15675
|
class: "j-map",
|
|
@@ -15707,7 +15707,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15707
15707
|
setup(e, { emit: t }) {
|
|
15708
15708
|
const n = e, a = t, { t: o } = Rt(), i = D(), l = D(), r = D(), c = D(""), s = D(0), d = D(0), f = D(""), u = H(() => {
|
|
15709
15709
|
let v = n.modelValue || "";
|
|
15710
|
-
if (n.modelValue === null && (v = q(f)),
|
|
15710
|
+
if (n.modelValue === null && (v = q(f)), Pt(v)) return {
|
|
15711
15711
|
address: "",
|
|
15712
15712
|
lng: 0,
|
|
15713
15713
|
lat: 0
|
|
@@ -15786,7 +15786,7 @@ var au = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15786
15786
|
}
|
|
15787
15787
|
}]
|
|
15788
15788
|
}], w = () => {
|
|
15789
|
-
!
|
|
15789
|
+
!Pt(c.value) && !Pt(s.value) && !Pt(d.value) ? (f.value = `${c.value},${s.value},${d.value}`, a("update:modelValue", f.value), a("change", f.value)) : (a("update:modelValue", void 0), a("change", void 0)), i.value.close();
|
|
15790
15790
|
}, b = () => {
|
|
15791
15791
|
};
|
|
15792
15792
|
return (v, C) => {
|
|
@@ -19490,7 +19490,7 @@ function Bi(e, t) {
|
|
|
19490
19490
|
function Hn(e, t) {
|
|
19491
19491
|
return e.businessObject.fillColor || t || "var(--j-color-bg-container)";
|
|
19492
19492
|
}
|
|
19493
|
-
function
|
|
19493
|
+
function zt(e, t) {
|
|
19494
19494
|
return e.businessObject.strokeColor || t || "var(--j-color-text)";
|
|
19495
19495
|
}
|
|
19496
19496
|
function Fx(e) {
|
|
@@ -19766,7 +19766,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19766
19766
|
box: E,
|
|
19767
19767
|
align: W,
|
|
19768
19768
|
padding: 5,
|
|
19769
|
-
style: { fill:
|
|
19769
|
+
style: { fill: zt(E, c) }
|
|
19770
19770
|
});
|
|
19771
19771
|
}
|
|
19772
19772
|
function x(M, E) {
|
|
@@ -19779,7 +19779,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19779
19779
|
return C(M, Gi(E), {
|
|
19780
19780
|
box: W,
|
|
19781
19781
|
fitBox: !0,
|
|
19782
|
-
style: Bt({}, o.getExternalStyle(), { fill:
|
|
19782
|
+
style: Bt({}, o.getExternalStyle(), { fill: zt(E, c) })
|
|
19783
19783
|
});
|
|
19784
19784
|
}
|
|
19785
19785
|
function S(M, E, W) {
|
|
@@ -19942,7 +19942,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19942
19942
|
y: F
|
|
19943
19943
|
} }), {
|
|
19944
19944
|
strokeWidth: 0,
|
|
19945
|
-
fill:
|
|
19945
|
+
fill: zt(E, s[E.type]?.iconFill || E.iconFill)
|
|
19946
19946
|
});
|
|
19947
19947
|
}
|
|
19948
19948
|
const B = {
|
|
@@ -19952,7 +19952,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19952
19952
|
startEvent(M, E) {
|
|
19953
19953
|
const W = {
|
|
19954
19954
|
fill: Hn(E, s.startEvent?.fill || E.fill),
|
|
19955
|
-
stroke:
|
|
19955
|
+
stroke: zt(E, s.startEvent?.stroke || E.stroke),
|
|
19956
19956
|
strokeWidth: Bi(E, s.startEvent?.strokeWidth || E.strokeWidth)
|
|
19957
19957
|
}, F = f("event")(M, E, W);
|
|
19958
19958
|
return A(M, E, 18, 18), F;
|
|
@@ -19961,7 +19961,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19961
19961
|
const W = f("event")(M, E, {
|
|
19962
19962
|
strokeWidth: Bi(E, s.endEvent?.strokeWidth || E.strokeWidth || 4),
|
|
19963
19963
|
fill: Hn(E, s.endEvent?.fill || E.fill),
|
|
19964
|
-
stroke:
|
|
19964
|
+
stroke: zt(E, s.endEvent?.stroke || E.stroke)
|
|
19965
19965
|
});
|
|
19966
19966
|
return A(M, E, 18, 18), W;
|
|
19967
19967
|
},
|
|
@@ -19970,7 +19970,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19970
19970
|
fillOpacity: Rl,
|
|
19971
19971
|
strokeWidth: Bi(E, s[E.type]?.strokeWidth || E.strokeWidth || 4),
|
|
19972
19972
|
fill: Hn(E, s[E.type]?.fill || E.fill),
|
|
19973
|
-
stroke:
|
|
19973
|
+
stroke: zt(E, s[E.type]?.stroke || E.stroke)
|
|
19974
19974
|
};
|
|
19975
19975
|
return b(M, E.width, E.height, W);
|
|
19976
19976
|
},
|
|
@@ -19987,8 +19987,8 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
19987
19987
|
}
|
|
19988
19988
|
}), {
|
|
19989
19989
|
strokeWidth: 1,
|
|
19990
|
-
fill:
|
|
19991
|
-
stroke:
|
|
19990
|
+
fill: zt(E, s[E.type]?.iconFill || E.iconFill),
|
|
19991
|
+
stroke: zt(E, s[E.type]?.iconFill || E.iconFill)
|
|
19992
19992
|
}), W;
|
|
19993
19993
|
},
|
|
19994
19994
|
gatewayXor(M, E) {
|
|
@@ -20004,16 +20004,16 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20004
20004
|
}
|
|
20005
20005
|
}), {
|
|
20006
20006
|
strokeWidth: 1,
|
|
20007
|
-
fill:
|
|
20008
|
-
stroke:
|
|
20007
|
+
fill: zt(E, s[E.type]?.iconFill || E.iconFill),
|
|
20008
|
+
stroke: zt(E, s[E.type]?.iconFill || E.iconFill)
|
|
20009
20009
|
}), W;
|
|
20010
20010
|
},
|
|
20011
20011
|
gatewayInclusive(M, E) {
|
|
20012
20012
|
const W = f("gateway")(M, E);
|
|
20013
20013
|
return m(M, E.width, E.height, E.height * 0.24, {
|
|
20014
20014
|
strokeWidth: 2.5,
|
|
20015
|
-
fill:
|
|
20016
|
-
stroke:
|
|
20015
|
+
fill: zt(E, r),
|
|
20016
|
+
stroke: zt(E, s[E.type]?.iconFill || E.iconFill)
|
|
20017
20017
|
}), W;
|
|
20018
20018
|
},
|
|
20019
20019
|
activity(M, E, W) {
|
|
@@ -20022,7 +20022,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20022
20022
|
task(M, E) {
|
|
20023
20023
|
const W = {
|
|
20024
20024
|
fill: Hn(E, r),
|
|
20025
|
-
stroke:
|
|
20025
|
+
stroke: zt(E, c)
|
|
20026
20026
|
}, F = f("activity")(M, E, W);
|
|
20027
20027
|
return y(M, E, "center-middle"), S(M, E), F;
|
|
20028
20028
|
},
|
|
@@ -20034,21 +20034,21 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20034
20034
|
} }), {
|
|
20035
20035
|
strokeWidth: 0.5,
|
|
20036
20036
|
fill: Hn(E, r),
|
|
20037
|
-
stroke:
|
|
20037
|
+
stroke: zt(E, c)
|
|
20038
20038
|
}), w(M, n.getScaledPath("TASK_TYPE_USER_2", { abspos: {
|
|
20039
20039
|
x: F,
|
|
20040
20040
|
y: ie
|
|
20041
20041
|
} }), {
|
|
20042
20042
|
strokeWidth: 0.5,
|
|
20043
20043
|
fill: Hn(E, r),
|
|
20044
|
-
stroke:
|
|
20044
|
+
stroke: zt(E, c)
|
|
20045
20045
|
}), w(M, n.getScaledPath("TASK_TYPE_USER_3", { abspos: {
|
|
20046
20046
|
x: F,
|
|
20047
20047
|
y: ie
|
|
20048
20048
|
} }), {
|
|
20049
20049
|
strokeWidth: 0.5,
|
|
20050
|
-
fill:
|
|
20051
|
-
stroke:
|
|
20050
|
+
fill: zt(E, c),
|
|
20051
|
+
stroke: zt(E, c)
|
|
20052
20052
|
}), W;
|
|
20053
20053
|
},
|
|
20054
20054
|
scriptTask(M, E) {
|
|
@@ -20058,14 +20058,14 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20058
20058
|
y: 20
|
|
20059
20059
|
} }), {
|
|
20060
20060
|
strokeWidth: 1,
|
|
20061
|
-
stroke:
|
|
20061
|
+
stroke: zt(E, c)
|
|
20062
20062
|
}), W;
|
|
20063
20063
|
},
|
|
20064
20064
|
SubProcessMarker(M, E) {
|
|
20065
20065
|
Yn(_(M, 14, 14, 0, {
|
|
20066
20066
|
strokeWidth: 1,
|
|
20067
20067
|
fill: Hn(E, r),
|
|
20068
|
-
stroke:
|
|
20068
|
+
stroke: zt(E, c)
|
|
20069
20069
|
}), E.width / 2 - 7.5, E.height - 20), v("sub-process", M, n.getScaledPath("MARKER_SUB_PROCESS", {
|
|
20070
20070
|
xScaleFactor: 1.5,
|
|
20071
20071
|
yScaleFactor: 1.5,
|
|
@@ -20077,13 +20077,13 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20077
20077
|
}
|
|
20078
20078
|
}), {
|
|
20079
20079
|
fill: Hn(E, r),
|
|
20080
|
-
stroke:
|
|
20080
|
+
stroke: zt(E, c)
|
|
20081
20081
|
});
|
|
20082
20082
|
},
|
|
20083
20083
|
subprocess(M, E, W) {
|
|
20084
20084
|
W = Bt({
|
|
20085
20085
|
fill: Hn(E, r),
|
|
20086
|
-
stroke:
|
|
20086
|
+
stroke: zt(E, c)
|
|
20087
20087
|
}, W);
|
|
20088
20088
|
const F = f("activity")(M, E, W);
|
|
20089
20089
|
return y(M, E, "center-middle"), S(M, E, ["SubProcessMarker"]), F;
|
|
@@ -20092,7 +20092,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20092
20092
|
return x(M, E);
|
|
20093
20093
|
},
|
|
20094
20094
|
myline(M, E) {
|
|
20095
|
-
const W = Hn(E, i.lineStroke || r), F =
|
|
20095
|
+
const W = Hn(E, i.lineStroke || r), F = zt(E, i.lineStroke || c);
|
|
20096
20096
|
return g(M, E.waypoints, {
|
|
20097
20097
|
markerEnd: j(M, "sequenceflow-end", W, F),
|
|
20098
20098
|
stroke: F
|
|
@@ -20102,7 +20102,7 @@ function oo(e, t, n, a, o, i, l) {
|
|
|
20102
20102
|
const W = {
|
|
20103
20103
|
strokeWidth: Bi(E, s[E.type]?.strokeWidth || E.strokeWidth || 1),
|
|
20104
20104
|
fill: Hn(E, s[E.type]?.fill || E.fill),
|
|
20105
|
-
stroke:
|
|
20105
|
+
stroke: zt(E, s[E.type]?.stroke || E.stroke)
|
|
20106
20106
|
}, F = _(M, E.width, E.height, E.radius || Gl, W);
|
|
20107
20107
|
return y(M, E, "center-middle"), S(M, E), A(M, E, E.iconX, E.iconY), F;
|
|
20108
20108
|
}
|
|
@@ -20628,7 +20628,7 @@ var id = { myImporter: ["type", Ta] }, ld = (e) => {
|
|
|
20628
20628
|
const R = S.createRoot();
|
|
20629
20629
|
x.setRootElement(R), d();
|
|
20630
20630
|
};
|
|
20631
|
-
|
|
20631
|
+
Ot(() => {
|
|
20632
20632
|
u();
|
|
20633
20633
|
});
|
|
20634
20634
|
const h = (y) => {
|
|
@@ -23790,7 +23790,7 @@ var x1 = {
|
|
|
23790
23790
|
const A = P.createRoot();
|
|
23791
23791
|
j.setRootElement(A), d();
|
|
23792
23792
|
};
|
|
23793
|
-
|
|
23793
|
+
Ot(() => {
|
|
23794
23794
|
u();
|
|
23795
23795
|
});
|
|
23796
23796
|
const h = (T) => {
|
|
@@ -23909,9 +23909,9 @@ var x1 = {
|
|
|
23909
23909
|
const M = B.rule.length;
|
|
23910
23910
|
for (let E = 0; E < M; E++) {
|
|
23911
23911
|
const W = B.rule[E];
|
|
23912
|
-
if (W.pattern = W.pattern ? W.pattern + "" : "", W.pattern && !
|
|
23912
|
+
if (W.pattern = W.pattern ? W.pattern + "" : "", W.pattern && !Pt(P[B.prop || ""]) && !new RegExp(W.pattern.substring(1, W.pattern.length - 1)).test(P[B.prop || ""]))
|
|
23913
23913
|
return x.info = `${i("第")}${j + 1}${i("行")},${i("第")}${A + 1}${i("列")},${i(B.label)}:${i(W.message)}`, x.isOk = !1, x;
|
|
23914
|
-
if (W.required &&
|
|
23914
|
+
if (W.required && Pt(P[B.prop || ""]))
|
|
23915
23915
|
return x.isOk = !1, x.info = `${i("第")}${j + 1}${i("行")},${i("第")}${A + 1}${i("列")},${i(B.label)}:${i("不能为空")}`, x;
|
|
23916
23916
|
}
|
|
23917
23917
|
}
|
|
@@ -24467,7 +24467,7 @@ export {
|
|
|
24467
24467
|
On as getTextWidth,
|
|
24468
24468
|
Kf as is,
|
|
24469
24469
|
Dl as isArray,
|
|
24470
|
-
|
|
24470
|
+
Pt as isNullOrEmpty,
|
|
24471
24471
|
_S as isObject,
|
|
24472
24472
|
Ih as loadBMap,
|
|
24473
24473
|
kS as lowerFirst,
|