@a2simcode/ui 0.0.199 → 0.0.200
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 +560 -558
- 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 ke, computed as H, createBlock as F, createCommentVNode as ee, createElementBlock as O, createElementVNode as B, createSlots as Vn, createTextVNode as on, createVNode as X, defineComponent as
|
|
1
|
+
import { Fragment as ke, computed as H, createBlock as F, createCommentVNode as ee, createElementBlock as O, createElementVNode as B, createSlots as Vn, createTextVNode as on, createVNode as X, defineComponent as ge, getCurrentInstance as dc, guardReactiveProps as Mo, h as bi, inject as xd, mergeModels as Eo, mergeProps as We, nextTick as zt, normalizeClass as Ne, normalizeProps as na, normalizeStyle as le, onBeforeUnmount as jo, onMounted as Mt, onUnmounted as Po, openBlock as S, provide as Cd, reactive as aa, ref as z, render as _i, renderList as Oe, renderSlot as Ke, resolveComponent as $, resolveDirective as Bo, resolveDynamicComponent as Ta, shallowRef as Oi, toDisplayString as we, unref as Y, useModel as To, useSlots as Sd, useTemplateRef as ka, vShow as wi, watch as nt, watchEffect as fc, withCtx as J, withDirectives as $n, withKeys as pr, withModifiers as Ft } from "vue";
|
|
2
2
|
import { Icon as Pl, getIcon as Sa } from "@iconify/vue";
|
|
3
3
|
import hc from "dayjs";
|
|
4
4
|
import kd from "sortablejs";
|
|
@@ -29,8 +29,8 @@ import rf from "async-validator";
|
|
|
29
29
|
import { createEditor as lf, createToolbar as sf } from "@wangeditor/editor";
|
|
30
30
|
import pc from "diagram-js";
|
|
31
31
|
import { assignStyle as Ii, attr as _n, classes as nn, clear as gc, closest as zr, delegate as Qn, domify as rn, event as rt, matches as cf, query as Zt, queryAll as gr, remove as vr } from "min-dom";
|
|
32
|
-
import { assign as
|
|
33
|
-
import { append as qe, attr as
|
|
32
|
+
import { assign as Ve, bind as Lr, debounce as uf, every as Dr, filter as un, find as Pn, flatten as df, forEach as de, groupBy as $r, has as vc, isArray as st, isDefined as wn, isFunction as Bn, isNil as Hl, isNumber as It, isObject as dn, isString as yr, isUndefined as ff, map as Ho, matchPattern as xi, omit as hf, pick as Ci, reduce as mr, size as pf, some as gf, sortBy as Ao, uniqueBy as vf, values as Fr, without as yf } from "min-dash";
|
|
33
|
+
import { append as qe, attr as Fe, classes as ht, clear as Vr, clone as yc, create as Ge, createTransform as xo, remove as cn, transform as Nr } from "tiny-svg";
|
|
34
34
|
import Aa from "inherits";
|
|
35
35
|
import mf from "diagram-js-direct-editing";
|
|
36
36
|
var bf = Object.create, mc = Object.defineProperty, wf = Object.getOwnPropertyDescriptor, _f = Object.getOwnPropertyNames, xf = Object.getPrototypeOf, Cf = Object.prototype.hasOwnProperty, an = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), Sf = (e, t, n, a) => {
|
|
@@ -59,7 +59,7 @@ function Rf(e, t) {
|
|
|
59
59
|
function F1(e) {
|
|
60
60
|
return e !== null && Rf(e, "Object");
|
|
61
61
|
}
|
|
62
|
-
var Qt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), Ef = /* @__PURE__ */
|
|
62
|
+
var Qt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), Ef = /* @__PURE__ */ ge({
|
|
63
63
|
name: "JIcon",
|
|
64
64
|
inheritAttrs: !1,
|
|
65
65
|
__name: "icon",
|
|
@@ -108,7 +108,7 @@ var Qt = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
108
108
|
"style"
|
|
109
109
|
])], 16));
|
|
110
110
|
}
|
|
111
|
-
}), Ea = Ef, Tf = ["disabled"], Af = { key: 2 }, Mf = /* @__PURE__ */
|
|
111
|
+
}), Ea = Ef, Tf = ["disabled"], Af = { key: 2 }, Mf = /* @__PURE__ */ ge({
|
|
112
112
|
name: "JButton",
|
|
113
113
|
__name: "button",
|
|
114
114
|
props: {
|
|
@@ -825,8 +825,8 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
|
|
|
825
825
|
var m = b + x, v = g[m];
|
|
826
826
|
g[m] = (v << 8 | v >>> 24) & 16711935 | (v << 24 | v >>> 8) & 4278255360;
|
|
827
827
|
}
|
|
828
|
-
var w = this._hash.words, C = g[b + 0], y = g[b + 1], _ = g[b + 2], k = g[b + 3], R = g[b + 4], T = g[b + 5], A = g[b + 6], P = g[b + 7], L = g[b + 8], I = g[b + 9], j = g[b + 10], E = g[b + 11], V = g[b + 12], q = g[b + 13], se = g[b + 14],
|
|
829
|
-
W = f(W, G, Q, M, C, 7, s[0]), M = f(M, W, G, Q, y, 12, s[1]), Q = f(Q, M, W, G, _, 17, s[2]), G = f(G, Q, M, W, k, 22, s[3]), W = f(W, G, Q, M, R, 7, s[4]), M = f(M, W, G, Q, T, 12, s[5]), Q = f(Q, M, W, G, A, 17, s[6]), G = f(G, Q, M, W, P, 22, s[7]), W = f(W, G, Q, M, L, 7, s[8]), M = f(M, W, G, Q, I, 12, s[9]), Q = f(Q, M, W, G, j, 17, s[10]), G = f(G, Q, M, W, E, 22, s[11]), W = f(W, G, Q, M, V, 7, s[12]), M = f(M, W, G, Q, q, 12, s[13]), Q = f(Q, M, W, G, se, 17, s[14]), G = f(G, Q, M, W,
|
|
828
|
+
var w = this._hash.words, C = g[b + 0], y = g[b + 1], _ = g[b + 2], k = g[b + 3], R = g[b + 4], T = g[b + 5], A = g[b + 6], P = g[b + 7], L = g[b + 8], I = g[b + 9], j = g[b + 10], E = g[b + 11], V = g[b + 12], q = g[b + 13], se = g[b + 14], ye = g[b + 15], W = w[0], G = w[1], Q = w[2], M = w[3];
|
|
829
|
+
W = f(W, G, Q, M, C, 7, s[0]), M = f(M, W, G, Q, y, 12, s[1]), Q = f(Q, M, W, G, _, 17, s[2]), G = f(G, Q, M, W, k, 22, s[3]), W = f(W, G, Q, M, R, 7, s[4]), M = f(M, W, G, Q, T, 12, s[5]), Q = f(Q, M, W, G, A, 17, s[6]), G = f(G, Q, M, W, P, 22, s[7]), W = f(W, G, Q, M, L, 7, s[8]), M = f(M, W, G, Q, I, 12, s[9]), Q = f(Q, M, W, G, j, 17, s[10]), G = f(G, Q, M, W, E, 22, s[11]), W = f(W, G, Q, M, V, 7, s[12]), M = f(M, W, G, Q, q, 12, s[13]), Q = f(Q, M, W, G, se, 17, s[14]), G = f(G, Q, M, W, ye, 22, s[15]), W = u(W, G, Q, M, y, 5, s[16]), M = u(M, W, G, Q, A, 9, s[17]), Q = u(Q, M, W, G, E, 14, s[18]), G = u(G, Q, M, W, C, 20, s[19]), W = u(W, G, Q, M, T, 5, s[20]), M = u(M, W, G, Q, j, 9, s[21]), Q = u(Q, M, W, G, ye, 14, s[22]), G = u(G, Q, M, W, R, 20, s[23]), W = u(W, G, Q, M, I, 5, s[24]), M = u(M, W, G, Q, se, 9, s[25]), Q = u(Q, M, W, G, k, 14, s[26]), G = u(G, Q, M, W, L, 20, s[27]), W = u(W, G, Q, M, q, 5, s[28]), M = u(M, W, G, Q, _, 9, s[29]), Q = u(Q, M, W, G, P, 14, s[30]), G = u(G, Q, M, W, V, 20, s[31]), W = h(W, G, Q, M, T, 4, s[32]), M = h(M, W, G, Q, L, 11, s[33]), Q = h(Q, M, W, G, E, 16, s[34]), G = h(G, Q, M, W, se, 23, s[35]), W = h(W, G, Q, M, y, 4, s[36]), M = h(M, W, G, Q, R, 11, s[37]), Q = h(Q, M, W, G, P, 16, s[38]), G = h(G, Q, M, W, j, 23, s[39]), W = h(W, G, Q, M, q, 4, s[40]), M = h(M, W, G, Q, C, 11, s[41]), Q = h(Q, M, W, G, k, 16, s[42]), G = h(G, Q, M, W, A, 23, s[43]), W = h(W, G, Q, M, I, 4, s[44]), M = h(M, W, G, Q, V, 11, s[45]), Q = h(Q, M, W, G, ye, 16, s[46]), G = h(G, Q, M, W, _, 23, s[47]), W = p(W, G, Q, M, C, 6, s[48]), M = p(M, W, G, Q, P, 10, s[49]), Q = p(Q, M, W, G, se, 15, s[50]), G = p(G, Q, M, W, T, 21, s[51]), W = p(W, G, Q, M, V, 6, s[52]), M = p(M, W, G, Q, k, 10, s[53]), Q = p(Q, M, W, G, j, 15, s[54]), G = p(G, Q, M, W, y, 21, s[55]), W = p(W, G, Q, M, L, 6, s[56]), M = p(M, W, G, Q, ye, 10, s[57]), Q = p(Q, M, W, G, A, 15, s[58]), G = p(G, Q, M, W, q, 21, s[59]), W = p(W, G, Q, M, R, 6, s[60]), M = p(M, W, G, Q, E, 10, s[61]), Q = p(Q, M, W, G, _, 15, s[62]), G = p(G, Q, M, W, I, 21, s[63]), w[0] = w[0] + W | 0, w[1] = w[1] + G | 0, w[2] = w[2] + Q | 0, w[3] = w[3] + M | 0;
|
|
830
830
|
},
|
|
831
831
|
_doFinalize: function() {
|
|
832
832
|
var g = this._data, b = g.words, x = this._nDataBytes * 8, m = g.sigBytes * 8;
|
|
@@ -1202,11 +1202,11 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1202
1202
|
},
|
|
1203
1203
|
_doCryptBlock: function(m, v, w, C, y, _, k, R) {
|
|
1204
1204
|
for (var T = this._nRounds, A = m[v] ^ w[0], P = m[v + 1] ^ w[1], L = m[v + 2] ^ w[2], I = m[v + 3] ^ w[3], j = 4, E = 1; E < T; E++) {
|
|
1205
|
-
var V = C[A >>> 24] ^ y[P >>> 16 & 255] ^ _[L >>> 8 & 255] ^ k[I & 255] ^ w[j++], q = C[P >>> 24] ^ y[L >>> 16 & 255] ^ _[I >>> 8 & 255] ^ k[A & 255] ^ w[j++], se = C[L >>> 24] ^ y[I >>> 16 & 255] ^ _[A >>> 8 & 255] ^ k[P & 255] ^ w[j++],
|
|
1206
|
-
A = V, P = q, L = se, I =
|
|
1205
|
+
var V = C[A >>> 24] ^ y[P >>> 16 & 255] ^ _[L >>> 8 & 255] ^ k[I & 255] ^ w[j++], q = C[P >>> 24] ^ y[L >>> 16 & 255] ^ _[I >>> 8 & 255] ^ k[A & 255] ^ w[j++], se = C[L >>> 24] ^ y[I >>> 16 & 255] ^ _[A >>> 8 & 255] ^ k[P & 255] ^ w[j++], ye = C[I >>> 24] ^ y[A >>> 16 & 255] ^ _[P >>> 8 & 255] ^ k[L & 255] ^ w[j++];
|
|
1206
|
+
A = V, P = q, L = se, I = ye;
|
|
1207
1207
|
}
|
|
1208
|
-
var V = (R[A >>> 24] << 24 | R[P >>> 16 & 255] << 16 | R[L >>> 8 & 255] << 8 | R[I & 255]) ^ w[j++], q = (R[P >>> 24] << 24 | R[L >>> 16 & 255] << 16 | R[I >>> 8 & 255] << 8 | R[A & 255]) ^ w[j++], se = (R[L >>> 24] << 24 | R[I >>> 16 & 255] << 16 | R[A >>> 8 & 255] << 8 | R[P & 255]) ^ w[j++],
|
|
1209
|
-
m[v] = V, m[v + 1] = q, m[v + 2] = se, m[v + 3] =
|
|
1208
|
+
var V = (R[A >>> 24] << 24 | R[P >>> 16 & 255] << 16 | R[L >>> 8 & 255] << 8 | R[I & 255]) ^ w[j++], q = (R[P >>> 24] << 24 | R[L >>> 16 & 255] << 16 | R[I >>> 8 & 255] << 8 | R[A & 255]) ^ w[j++], se = (R[L >>> 24] << 24 | R[I >>> 16 & 255] << 16 | R[A >>> 8 & 255] << 8 | R[P & 255]) ^ w[j++], ye = (R[I >>> 24] << 24 | R[A >>> 16 & 255] << 16 | R[P >>> 8 & 255] << 8 | R[L & 255]) ^ w[j++];
|
|
1209
|
+
m[v] = V, m[v + 1] = q, m[v + 2] = se, m[v + 3] = ye;
|
|
1210
1210
|
},
|
|
1211
1211
|
keySize: 256 / 32
|
|
1212
1212
|
});
|
|
@@ -1404,18 +1404,18 @@ var Yf = /* @__PURE__ */ an(((e, t) => {
|
|
|
1404
1404
|
]);
|
|
1405
1405
|
},
|
|
1406
1406
|
_doProcessBlock: function(h, p) {
|
|
1407
|
-
for (var g = this._hash.words, b = g[0], x = g[1], m = g[2], v = g[3], w = g[4], C = g[5], y = g[6], _ = g[7], k = b.high, R = b.low, T = x.high, A = x.low, P = m.high, L = m.low, I = v.high, j = v.low, E = w.high, V = w.low, q = C.high, se = C.low,
|
|
1407
|
+
for (var g = this._hash.words, b = g[0], x = g[1], m = g[2], v = g[3], w = g[4], C = g[5], y = g[6], _ = g[7], k = b.high, R = b.low, T = x.high, A = x.low, P = m.high, L = m.low, I = v.high, j = v.low, E = w.high, V = w.low, q = C.high, se = C.low, ye = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R, Me = T, fe = A, Le = P, Ye = L, ne = I, Ee = j, Be = E, Ie = V, Et = q, bt = se, Xe = ye, Kt = W, ln = G, qt = Q, Bt = 0; Bt < 80; Bt++) {
|
|
1408
1408
|
var Ht, ut, Nt = f[Bt];
|
|
1409
1409
|
if (Bt < 16)
|
|
1410
1410
|
ut = Nt.high = h[p + Bt * 2] | 0, Ht = Nt.low = h[p + Bt * 2 + 1] | 0;
|
|
1411
1411
|
else {
|
|
1412
|
-
var Cn = f[Bt - 15], K = Cn.high, ce = Cn.low, ae = (K >>> 1 | ce << 31) ^ (K >>> 8 | ce << 24) ^ K >>> 7, ie = (ce >>> 1 | K << 31) ^ (ce >>> 8 | K << 24) ^ (ce >>> 7 | K << 25),
|
|
1412
|
+
var Cn = f[Bt - 15], K = Cn.high, ce = Cn.low, ae = (K >>> 1 | ce << 31) ^ (K >>> 8 | ce << 24) ^ K >>> 7, ie = (ce >>> 1 | K << 31) ^ (ce >>> 8 | K << 24) ^ (ce >>> 7 | K << 25), me = f[Bt - 2], Te = me.high, ze = me.low, at = (Te >>> 19 | ze << 13) ^ (Te << 3 | ze >>> 29) ^ Te >>> 6, Ct = (ze >>> 19 | Te << 13) ^ (ze << 3 | Te >>> 29) ^ (ze >>> 6 | Te << 26), dt = f[Bt - 7], Sn = dt.high, kn = dt.low, Gn = f[Bt - 16], ya = Gn.high, $a = Gn.low;
|
|
1413
1413
|
Ht = ie + kn, ut = ae + Sn + (Ht >>> 0 < ie >>> 0 ? 1 : 0), Ht = Ht + Ct, ut = ut + at + (Ht >>> 0 < Ct >>> 0 ? 1 : 0), Ht = Ht + $a, ut = ut + ya + (Ht >>> 0 < $a >>> 0 ? 1 : 0), Nt.high = ut, Nt.low = Ht;
|
|
1414
1414
|
}
|
|
1415
|
-
var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & Kt, Re = M &
|
|
1416
|
-
ln = Xe, qt = Kt, Xe = Et, Kt = bt, Et = Be, bt = Ie, Ie = Ee + vt | 0, Be = ne +
|
|
1415
|
+
var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & Kt, Re = M & Me ^ M & Le ^ Me & Le, gt = ue & fe ^ ue & Ye ^ fe & Ye, Ot = (M >>> 28 | ue << 4) ^ (M << 30 | ue >>> 2) ^ (M << 25 | ue >>> 7), xe = (ue >>> 28 | M << 4) ^ (ue << 30 | M >>> 2) ^ (ue << 25 | M >>> 7), St = (Be >>> 14 | Ie << 18) ^ (Be >>> 18 | Ie << 14) ^ (Be << 23 | Ie >>> 9), Wt = (Ie >>> 14 | Be << 18) ^ (Ie >>> 18 | Be << 14) ^ (Ie << 23 | Be >>> 9), wt = d[Bt], Yt = wt.high, Ln = wt.low, vt = qt + Wt, De = ln + St + (vt >>> 0 < qt >>> 0 ? 1 : 0), vt = vt + be, De = De + co + (vt >>> 0 < be >>> 0 ? 1 : 0), vt = vt + Ln, De = De + Yt + (vt >>> 0 < Ln >>> 0 ? 1 : 0), vt = vt + Ht, De = De + ut + (vt >>> 0 < Ht >>> 0 ? 1 : 0), Rn = xe + gt, Dt = Ot + Re + (Rn >>> 0 < xe >>> 0 ? 1 : 0);
|
|
1416
|
+
ln = Xe, qt = Kt, Xe = Et, Kt = bt, Et = Be, bt = Ie, Ie = Ee + vt | 0, Be = ne + De + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Le, Ee = Ye, Le = Me, Ye = fe, Me = M, fe = ue, ue = vt + Rn | 0, M = De + Dt + (ue >>> 0 < vt >>> 0 ? 1 : 0) | 0;
|
|
1417
1417
|
}
|
|
1418
|
-
R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A +
|
|
1418
|
+
R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A + fe, x.high = T + Me + (A >>> 0 < fe >>> 0 ? 1 : 0), L = m.low = L + Ye, m.high = P + Le + (L >>> 0 < Ye >>> 0 ? 1 : 0), j = v.low = j + Ee, v.high = I + ne + (j >>> 0 < Ee >>> 0 ? 1 : 0), V = w.low = V + Ie, w.high = E + Be + (V >>> 0 < Ie >>> 0 ? 1 : 0), se = C.low = se + bt, C.high = q + Et + (se >>> 0 < bt >>> 0 ? 1 : 0), W = y.low = W + Kt, y.high = ye + Xe + (W >>> 0 < Kt >>> 0 ? 1 : 0), Q = _.low = Q + qt, _.high = G + ln + (Q >>> 0 < qt >>> 0 ? 1 : 0);
|
|
1419
1419
|
},
|
|
1420
1420
|
_doFinalize: function() {
|
|
1421
1421
|
var h = this._data, p = h.words, g = this._nDataBytes * 8, b = h.sigBytes * 8;
|
|
@@ -1666,7 +1666,7 @@ function xh() {
|
|
|
1666
1666
|
function Ch(e) {
|
|
1667
1667
|
Wn(Ut.PAGE_PROVIDE, e);
|
|
1668
1668
|
}
|
|
1669
|
-
var Sh = /* @__PURE__ */
|
|
1669
|
+
var Sh = /* @__PURE__ */ ge({
|
|
1670
1670
|
name: "JDynamicLayer",
|
|
1671
1671
|
__name: "dynamic-layer",
|
|
1672
1672
|
setup(e, { expose: t }) {
|
|
@@ -1779,7 +1779,7 @@ function Xa() {
|
|
|
1779
1779
|
kh(o, t, n);
|
|
1780
1780
|
} };
|
|
1781
1781
|
}
|
|
1782
|
-
var Rh = Ce(Pc), Eh = /* @__PURE__ */
|
|
1782
|
+
var Rh = Ce(Pc), Eh = /* @__PURE__ */ ge({
|
|
1783
1783
|
name: "JButtons",
|
|
1784
1784
|
__name: "index",
|
|
1785
1785
|
props: {
|
|
@@ -1887,7 +1887,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
1887
1887
|
}, 8, ["size"]);
|
|
1888
1888
|
};
|
|
1889
1889
|
}
|
|
1890
|
-
}), Th = Eh, Ah = Ce(Th), Mh = /* @__PURE__ */
|
|
1890
|
+
}), Th = Eh, Ah = Ce(Th), Mh = /* @__PURE__ */ ge({
|
|
1891
1891
|
name: "JInput",
|
|
1892
1892
|
__name: "input",
|
|
1893
1893
|
props: {
|
|
@@ -2085,7 +2085,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2085
2085
|
]);
|
|
2086
2086
|
};
|
|
2087
2087
|
}
|
|
2088
|
-
}), jh = Mh, Ph = Ce(jh), Bh = /* @__PURE__ */
|
|
2088
|
+
}), jh = Mh, Ph = Ce(jh), Bh = /* @__PURE__ */ ge({
|
|
2089
2089
|
name: "JDate",
|
|
2090
2090
|
__name: "date",
|
|
2091
2091
|
props: {
|
|
@@ -2255,7 +2255,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2255
2255
|
]);
|
|
2256
2256
|
};
|
|
2257
2257
|
}
|
|
2258
|
-
}), Hh = Bh, Oh = Ce(Hh), Ih = /* @__PURE__ */
|
|
2258
|
+
}), Hh = Bh, Oh = Ce(Hh), Ih = /* @__PURE__ */ ge({
|
|
2259
2259
|
name: "JTime",
|
|
2260
2260
|
__name: "time",
|
|
2261
2261
|
props: {
|
|
@@ -2387,7 +2387,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2387
2387
|
]);
|
|
2388
2388
|
};
|
|
2389
2389
|
}
|
|
2390
|
-
}), zh = Ih, Lh = Ce(zh), Dh = /* @__PURE__ */
|
|
2390
|
+
}), zh = Ih, Lh = Ce(zh), Dh = /* @__PURE__ */ ge({
|
|
2391
2391
|
name: "JNowTime",
|
|
2392
2392
|
__name: "now-time",
|
|
2393
2393
|
props: {
|
|
@@ -2426,7 +2426,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2426
2426
|
}, 8, ["size", "value"]);
|
|
2427
2427
|
};
|
|
2428
2428
|
}
|
|
2429
|
-
}), $h = Dh, Fh = Ce($h), Vh = Ce(Ea), Nh = { key: 1 }, Wh = /* @__PURE__ */
|
|
2429
|
+
}), $h = Dh, Fh = Ce($h), Vh = Ce(Ea), Nh = { key: 1 }, Wh = /* @__PURE__ */ ge({
|
|
2430
2430
|
name: "JRadio",
|
|
2431
2431
|
__name: "radio",
|
|
2432
2432
|
props: {
|
|
@@ -2507,7 +2507,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2507
2507
|
}, 8, ["modelValue", "disabled"]);
|
|
2508
2508
|
};
|
|
2509
2509
|
}
|
|
2510
|
-
}), Uh = Wh, Yh = Ce(Uh), Jh = { class: "j-select-input-label-wrapper" }, Gh = { class: "j-select-option-wrapper" }, Kh = { class: "j-select-option-wrapper" }, qh = /* @__PURE__ */
|
|
2510
|
+
}), Uh = Wh, Yh = Ce(Uh), Jh = { class: "j-select-input-label-wrapper" }, Gh = { class: "j-select-option-wrapper" }, Kh = { class: "j-select-option-wrapper" }, qh = /* @__PURE__ */ ge({
|
|
2511
2511
|
name: "JSelect",
|
|
2512
2512
|
inheritAttrs: !1,
|
|
2513
2513
|
__name: "select",
|
|
@@ -2721,7 +2721,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2721
2721
|
]);
|
|
2722
2722
|
};
|
|
2723
2723
|
}
|
|
2724
|
-
}), Xh = qh, Zh = Ce(Xh), Qh = /* @__PURE__ */
|
|
2724
|
+
}), Xh = qh, Zh = Ce(Xh), Qh = /* @__PURE__ */ ge({
|
|
2725
2725
|
name: "JCascaderSelect",
|
|
2726
2726
|
__name: "cascader-select",
|
|
2727
2727
|
props: {
|
|
@@ -2874,7 +2874,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2874
2874
|
]);
|
|
2875
2875
|
};
|
|
2876
2876
|
}
|
|
2877
|
-
}), ep = Qh, tp = Ce(ep), np = /* @__PURE__ */
|
|
2877
|
+
}), ep = Qh, tp = Ce(ep), np = /* @__PURE__ */ ge({
|
|
2878
2878
|
name: "JCheckbox",
|
|
2879
2879
|
__name: "checkbox",
|
|
2880
2880
|
props: {
|
|
@@ -2971,7 +2971,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
2971
2971
|
]);
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
|
-
}), ap = np, op = Ce(ap), ip = /* @__PURE__ */
|
|
2974
|
+
}), ap = np, op = Ce(ap), ip = /* @__PURE__ */ ge({
|
|
2975
2975
|
name: "JNumber",
|
|
2976
2976
|
__name: "number",
|
|
2977
2977
|
props: {
|
|
@@ -3114,7 +3114,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
3114
3114
|
]);
|
|
3115
3115
|
};
|
|
3116
3116
|
}
|
|
3117
|
-
}), rp = ip, lp = Ce(rp), sp = /* @__PURE__ */
|
|
3117
|
+
}), rp = ip, lp = Ce(rp), sp = /* @__PURE__ */ ge({
|
|
3118
3118
|
name: "JAutocomplete",
|
|
3119
3119
|
__name: "autocomplete",
|
|
3120
3120
|
props: {
|
|
@@ -3317,7 +3317,7 @@ var Rh = Ce(Pc), Eh = /* @__PURE__ */ pe({
|
|
|
3317
3317
|
}), cp = sp, up = Ce(cp), dp = { class: "j-block" }, fp = {
|
|
3318
3318
|
key: 1,
|
|
3319
3319
|
class: "j-layout--container"
|
|
3320
|
-
}, hp = { class: "j-block" }, pp = { class: "j-block" }, gp = { class: "j-block" }, vp = /* @__PURE__ */
|
|
3320
|
+
}, hp = { class: "j-block" }, pp = { class: "j-block" }, gp = { class: "j-block" }, vp = /* @__PURE__ */ ge({
|
|
3321
3321
|
name: "JLayout",
|
|
3322
3322
|
__name: "layout",
|
|
3323
3323
|
props: {
|
|
@@ -5196,7 +5196,7 @@ var Ap = class {
|
|
|
5196
5196
|
visible: "always",
|
|
5197
5197
|
hoverOn: !1
|
|
5198
5198
|
}
|
|
5199
|
-
}, Mp = /* @__PURE__ */
|
|
5199
|
+
}, Mp = /* @__PURE__ */ ge({
|
|
5200
5200
|
name: "JFormItem",
|
|
5201
5201
|
__name: "form-item",
|
|
5202
5202
|
props: {
|
|
@@ -5299,7 +5299,7 @@ var Ap = class {
|
|
|
5299
5299
|
])) : p.value ? (S(), F(_, na(We({ key: 1 }, g.value)), null, 16)) : ee("", !0);
|
|
5300
5300
|
};
|
|
5301
5301
|
}
|
|
5302
|
-
}), Hc = Mp, jp = /* @__PURE__ */
|
|
5302
|
+
}), Hc = Mp, jp = /* @__PURE__ */ ge({
|
|
5303
5303
|
name: "JComp",
|
|
5304
5304
|
__name: "comp",
|
|
5305
5305
|
props: {
|
|
@@ -5377,23 +5377,25 @@ var Ap = class {
|
|
|
5377
5377
|
}), R = H({
|
|
5378
5378
|
get() {
|
|
5379
5379
|
let M;
|
|
5380
|
-
|
|
5380
|
+
const ue = A.value.valueIdKey || n.id;
|
|
5381
|
+
if (y ? M = y[ue] : s ? M = s[ue] : M = n.modelValue, M === void 0 && I.value === "j-tabs") {
|
|
5381
5382
|
if (A.value?.defaultValue) return A.value.defaultValue;
|
|
5382
|
-
const
|
|
5383
|
-
return
|
|
5383
|
+
const Me = n.children.findIndex((fe) => fe.config?.active);
|
|
5384
|
+
return Me > -1 ? "_tab" + Me : "_tab0";
|
|
5384
5385
|
}
|
|
5385
5386
|
if (M === void 0 && I.value === "j-collapse") {
|
|
5386
5387
|
if (A.value?.defaultValue) return A.value.defaultValue;
|
|
5387
|
-
const
|
|
5388
|
-
item:
|
|
5389
|
-
index:
|
|
5390
|
-
})).filter(({ item:
|
|
5391
|
-
return A.value?.accordion ?
|
|
5388
|
+
const Me = n.children.map((fe, Le) => ({
|
|
5389
|
+
item: fe,
|
|
5390
|
+
index: Le
|
|
5391
|
+
})).filter(({ item: fe }) => fe.config?.active);
|
|
5392
|
+
return A.value?.accordion ? Me.length > 0 ? "_collapse" + Me[0].index : "" : Me.map(({ index: fe }) => "_collapse" + fe);
|
|
5392
5393
|
}
|
|
5393
5394
|
return k.value ? M ? M.split(",") : [] : M;
|
|
5394
5395
|
},
|
|
5395
5396
|
set(M) {
|
|
5396
|
-
|
|
5397
|
+
const ue = A.value.valueIdKey || n.id;
|
|
5398
|
+
M && k.value && (M = String(M || [])), y ? y[ue] = M : s && (s[ue] = M), a("update:modelValue", M);
|
|
5397
5399
|
}
|
|
5398
5400
|
}), T = z(0);
|
|
5399
5401
|
nt([() => s, () => y], () => T.value++, { deep: !0 });
|
|
@@ -5441,32 +5443,32 @@ var Ap = class {
|
|
|
5441
5443
|
"j-input-rows",
|
|
5442
5444
|
"j-table"
|
|
5443
5445
|
].includes(P.value) && (M.columns = n.children.map((ue) => {
|
|
5444
|
-
const
|
|
5445
|
-
return
|
|
5446
|
+
const Me = ue.config?.parentTableId;
|
|
5447
|
+
return Me && ue.id && ue.id.startsWith(Me + ".") ? {
|
|
5446
5448
|
...ue,
|
|
5447
|
-
id: ue.id.slice(
|
|
5449
|
+
id: ue.id.slice(Me.length + 1)
|
|
5448
5450
|
} : ue;
|
|
5449
5451
|
})), n.isTableCell && (P.value === "j-checkbox" && (M.multiple = !0), P.value === "j-select" && M.multiple && (M.collapseTags = !0, M.collapseTagsTooltip = !0), P.value === "j-switch" && (M.size = "small"), P.value === "j-textarea" && (M.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(n.type) && (M.loadLayerData = E, M.getText = j), M.dataType && (M.options = L.value), M;
|
|
5450
5452
|
}), q = H(() => {
|
|
5451
5453
|
if (I.value === "j-layer-form" || I.value === "j-input-rows" || I.value === "j-input-cards") return {};
|
|
5452
5454
|
const M = {};
|
|
5453
|
-
return n.children.forEach((ue,
|
|
5454
|
-
let
|
|
5455
|
-
I.value === "j-tabs" && (
|
|
5455
|
+
return n.children.forEach((ue, Me) => {
|
|
5456
|
+
let fe = ue;
|
|
5457
|
+
I.value === "j-tabs" && (fe = {
|
|
5456
5458
|
...ue,
|
|
5457
5459
|
type: "el-tab-pane",
|
|
5458
5460
|
config: {
|
|
5459
5461
|
...ue.config || {},
|
|
5460
|
-
name: "_tab" +
|
|
5462
|
+
name: "_tab" + Me
|
|
5461
5463
|
}
|
|
5462
|
-
}, c == "form" && (
|
|
5464
|
+
}, c == "form" && (fe.config.needRow = fe.config.needRow !== !1, fe.config.needFormItem = fe.config.needFormItem !== !1)), I.value === "j-collapse" && (fe = {
|
|
5463
5465
|
...ue,
|
|
5464
5466
|
type: "el-collapse-item",
|
|
5465
5467
|
config: {
|
|
5466
5468
|
...ue.config || {},
|
|
5467
|
-
name: "_collapse" +
|
|
5469
|
+
name: "_collapse" + Me
|
|
5468
5470
|
}
|
|
5469
|
-
}, c == "form" && (
|
|
5471
|
+
}, c == "form" && (fe.config.needRow = fe.config.needRow !== !1, fe.config.needFormItem = fe.config.needFormItem !== !1)), fe.slot ? (M[fe.slot] = M[fe.slot] || [], M[fe.slot].push(fe)) : (M.default = M.default || [], M.default.push(fe));
|
|
5470
5472
|
}), M;
|
|
5471
5473
|
}), se = (M) => {
|
|
5472
5474
|
const ue = {
|
|
@@ -5481,50 +5483,50 @@ var Ap = class {
|
|
|
5481
5483
|
rowNum: n.rowNum
|
|
5482
5484
|
};
|
|
5483
5485
|
A.value?.change && A.value?.change(ue), w && w(ue), d && d(ue), a("change", ue);
|
|
5484
|
-
},
|
|
5485
|
-
if (
|
|
5486
|
+
}, ye = z(), W = z([]), G = (M, ...ue) => {
|
|
5487
|
+
if (ye.value && typeof ye.value[M] == "function") return ye.value[M](...ue);
|
|
5486
5488
|
console.warn(`方法 ${M} 不存在或不是函数`);
|
|
5487
5489
|
}, Q = () => {
|
|
5488
5490
|
if (W.value.forEach((ue) => ue()), W.value = [], !g) return;
|
|
5489
5491
|
const M = g(n.id, G);
|
|
5490
5492
|
W.value.push(M);
|
|
5491
5493
|
};
|
|
5492
|
-
return nt(() =>
|
|
5494
|
+
return nt(() => ye.value, () => {
|
|
5493
5495
|
Q();
|
|
5494
5496
|
}), Mt(() => {
|
|
5495
5497
|
Q(), n.id && h && h(n.id), n.id && x && x(n.id);
|
|
5496
5498
|
}), jo(() => {
|
|
5497
5499
|
W.value.forEach((M) => M()), W.value = [];
|
|
5498
5500
|
}), (M, ue) => {
|
|
5499
|
-
const
|
|
5501
|
+
const Me = $("JComp"), fe = $("el-row");
|
|
5500
5502
|
return V.value.display != !1 && _.value ? (S(), F(Ta(I.value), We({
|
|
5501
5503
|
key: 0,
|
|
5502
5504
|
ref_key: "compRef",
|
|
5503
|
-
ref:
|
|
5505
|
+
ref: ye
|
|
5504
5506
|
}, V.value, {
|
|
5505
5507
|
modelValue: R.value,
|
|
5506
|
-
"onUpdate:modelValue": ue[0] || (ue[0] = (
|
|
5508
|
+
"onUpdate:modelValue": ue[0] || (ue[0] = (Le) => R.value = Le),
|
|
5507
5509
|
"run-flow": Y(u),
|
|
5508
5510
|
onChange: se
|
|
5509
|
-
}), Vn({ _: 2 }, [Oe(q.value, (
|
|
5511
|
+
}), Vn({ _: 2 }, [Oe(q.value, (Le, Ye) => ({
|
|
5510
5512
|
name: Ye,
|
|
5511
|
-
fn: J(() => [(S(!0), O(ke, null, Oe(
|
|
5513
|
+
fn: J(() => [(S(!0), O(ke, null, Oe(Le, (ne) => (S(), F(Me, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))])
|
|
5512
5514
|
}))]), 1040, ["modelValue", "run-flow"])) : V.value.display != !1 ? (S(), F(Ta(I.value), We({
|
|
5513
5515
|
key: 1,
|
|
5514
5516
|
ref_key: "compRef",
|
|
5515
|
-
ref:
|
|
5517
|
+
ref: ye
|
|
5516
5518
|
}, V.value, {
|
|
5517
5519
|
"run-flow": Y(u) || Y(b),
|
|
5518
5520
|
onChange: se
|
|
5519
|
-
}), Vn({ _: 2 }, [Oe(q.value, (
|
|
5521
|
+
}), Vn({ _: 2 }, [Oe(q.value, (Le, Ye) => ({
|
|
5520
5522
|
name: Ye,
|
|
5521
|
-
fn: J(() => [V.value.needRow === !0 || V.value.needRow?.[Ye] === !0 ? (S(), F(
|
|
5523
|
+
fn: J(() => [V.value.needRow === !0 || V.value.needRow?.[Ye] === !0 ? (S(), F(fe, {
|
|
5522
5524
|
key: 0,
|
|
5523
5525
|
gutter: p.value
|
|
5524
5526
|
}, {
|
|
5525
|
-
default: J(() => [V.value.needFormItem === !0 || V.value.needFormItem?.[Ye] === !0 ? (S(!0), O(ke, { key: 0 }, Oe(
|
|
5527
|
+
default: J(() => [V.value.needFormItem === !0 || V.value.needFormItem?.[Ye] === !0 ? (S(!0), O(ke, { key: 0 }, Oe(Le, (ne) => (S(), F(Hc, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128)) : (S(!0), O(ke, { key: 1 }, Oe(Le, (ne) => (S(), F(Me, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))]),
|
|
5526
5528
|
_: 2
|
|
5527
|
-
}, 1032, ["gutter"])) : (S(!0), O(ke, { key: 1 }, Oe(
|
|
5529
|
+
}, 1032, ["gutter"])) : (S(!0), O(ke, { key: 1 }, Oe(Le, (ne) => (S(), F(Me, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))])
|
|
5528
5530
|
}))]), 1040, ["run-flow"])) : ee("", !0);
|
|
5529
5531
|
};
|
|
5530
5532
|
}
|
|
@@ -5644,7 +5646,7 @@ function Op() {
|
|
|
5644
5646
|
var Ip = { class: "j-table-footer" }, zp = {
|
|
5645
5647
|
key: 0,
|
|
5646
5648
|
class: "j-table-pagination"
|
|
5647
|
-
}, Lp = ["onClick"], yn = 40, Dp = /* @__PURE__ */
|
|
5649
|
+
}, Lp = ["onClick"], yn = 40, Dp = /* @__PURE__ */ ge({
|
|
5648
5650
|
name: "JTable",
|
|
5649
5651
|
__name: "table",
|
|
5650
5652
|
props: {
|
|
@@ -5801,11 +5803,11 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5801
5803
|
left: `${oe}px`,
|
|
5802
5804
|
top: `${U}px`
|
|
5803
5805
|
}, A.value = !0, V = !1, document.addEventListener("wheel", ue, { passive: !1 });
|
|
5804
|
-
},
|
|
5806
|
+
}, ye = () => {
|
|
5805
5807
|
A.value = !1, V = !1, q = !1, G(), document.removeEventListener("wheel", ue);
|
|
5806
5808
|
}, W = () => {
|
|
5807
5809
|
G(), E = setTimeout(() => {
|
|
5808
|
-
!V && !q &&
|
|
5810
|
+
!V && !q && ye();
|
|
5809
5811
|
}, 100);
|
|
5810
5812
|
}, G = () => {
|
|
5811
5813
|
E && (clearTimeout(E), E = null);
|
|
@@ -5815,12 +5817,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5815
5817
|
V = !1, W();
|
|
5816
5818
|
}, ue = (D) => {
|
|
5817
5819
|
D.preventDefault();
|
|
5818
|
-
},
|
|
5820
|
+
}, Me = (D) => {
|
|
5819
5821
|
D.config?.disabled || (I.value && D.click && D.click({
|
|
5820
5822
|
data: I.value,
|
|
5821
5823
|
openLayer: u
|
|
5822
|
-
}),
|
|
5823
|
-
},
|
|
5824
|
+
}), ye());
|
|
5825
|
+
}, fe = (D) => {
|
|
5824
5826
|
let N = D.action.config?.display !== !1, Z = D.action.config?.disabled === !0;
|
|
5825
5827
|
const oe = o.actionFilter;
|
|
5826
5828
|
if (oe) try {
|
|
@@ -5833,46 +5835,46 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5833
5835
|
display: N,
|
|
5834
5836
|
disabled: Z
|
|
5835
5837
|
};
|
|
5836
|
-
},
|
|
5838
|
+
}, Le = (D, N) => N.disabled ? {
|
|
5837
5839
|
...D,
|
|
5838
5840
|
config: {
|
|
5839
5841
|
...D.config || {},
|
|
5840
5842
|
disabled: !0
|
|
5841
5843
|
}
|
|
5842
5844
|
} : D, Ye = (D) => {
|
|
5843
|
-
const { Group: N, Text: Z } = Je.CustomLayout, oe = o.actionsMaxCount, U = D.filter((
|
|
5844
|
-
let
|
|
5845
|
-
if (re.forEach((
|
|
5846
|
-
const
|
|
5847
|
-
|
|
5845
|
+
const { Group: N, Text: Z } = Je.CustomLayout, oe = o.actionsMaxCount, U = D.filter((pe) => pe.config?.display !== !1), te = U.length > oe, re = te ? U.slice(0, oe - 1) : U;
|
|
5846
|
+
let ve = 0;
|
|
5847
|
+
if (re.forEach((pe, Se) => {
|
|
5848
|
+
const Ae = bn(pe.config?.label || pe.label || "") || 0;
|
|
5849
|
+
ve += Ae + (Se === 0 ? 24 : 12);
|
|
5848
5850
|
}), te) {
|
|
5849
|
-
const
|
|
5850
|
-
|
|
5851
|
+
const pe = (bn("更多") || 0) + 12;
|
|
5852
|
+
ve += pe;
|
|
5851
5853
|
}
|
|
5852
|
-
const
|
|
5854
|
+
const he = Math.max(80, ve) + "px";
|
|
5853
5855
|
return {
|
|
5854
5856
|
field: "__actions__",
|
|
5855
5857
|
title: o.actionsLabel,
|
|
5856
|
-
width:
|
|
5857
|
-
maxWidth:
|
|
5858
|
-
minWidth:
|
|
5858
|
+
width: he,
|
|
5859
|
+
maxWidth: he,
|
|
5860
|
+
minWidth: he,
|
|
5859
5861
|
disableColumnResize: !0,
|
|
5860
5862
|
disableSelect: !0,
|
|
5861
|
-
customLayout: (
|
|
5862
|
-
const { table: Se, row:
|
|
5863
|
-
const ft =
|
|
5863
|
+
customLayout: (pe) => {
|
|
5864
|
+
const { table: Se, row: Ae, col: He } = pe, je = Se.getCellOriginRecord(He, Ae), Ze = Se.getRecordIndexByCell(He, Ae), $e = U.map((_e) => {
|
|
5865
|
+
const ft = fe({
|
|
5864
5866
|
action: _e,
|
|
5865
5867
|
record: je,
|
|
5866
5868
|
recordIndex: Ze,
|
|
5867
5869
|
col: He,
|
|
5868
|
-
row:
|
|
5870
|
+
row: Ae,
|
|
5869
5871
|
table: Se
|
|
5870
5872
|
});
|
|
5871
5873
|
return {
|
|
5872
|
-
action:
|
|
5874
|
+
action: Le(_e, { disabled: ft.disabled }),
|
|
5873
5875
|
display: ft.display
|
|
5874
5876
|
};
|
|
5875
|
-
}).filter((_e) => _e.display).map((_e) => _e.action), Pe = o.actionsMaxCount, Qe =
|
|
5877
|
+
}).filter((_e) => _e.display).map((_e) => _e.action), Pe = o.actionsMaxCount, Qe = $e.length > Pe, et = Qe ? $e.slice(0, Pe - 1) : $e, ct = Qe ? $e.slice(Pe - 1) : [], tt = new N({
|
|
5876
5878
|
height: 40,
|
|
5877
5879
|
display: "flex",
|
|
5878
5880
|
flexDirection: "row",
|
|
@@ -5931,20 +5933,20 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5931
5933
|
}
|
|
5932
5934
|
};
|
|
5933
5935
|
}, ne = (D, N) => {
|
|
5934
|
-
const { dataValue: Z, table: oe, col: U, row: te, value: re } = D,
|
|
5936
|
+
const { dataValue: Z, table: oe, col: U, row: te, value: re } = D, ve = D.rect ?? oe?.getCellRect?.(U, te) ?? {
|
|
5935
5937
|
width: 0,
|
|
5936
5938
|
height: 0
|
|
5937
|
-
},
|
|
5939
|
+
}, he = oe?.getBodyField?.(U, te), pe = oe?.options?.columns || [], Se = (he ? ut(pe, he) : null)?.style?.textAlign || "left", Ae = 8, He = Math.max(0, ve.width - Ae * 2);
|
|
5938
5940
|
let je = re ?? Z;
|
|
5939
5941
|
je == null && (je = "");
|
|
5940
5942
|
const Ze = bt(typeof je == "object" ? JSON.stringify(je) : String(je), He);
|
|
5941
|
-
let
|
|
5942
|
-
return Se === "center" ? (
|
|
5943
|
+
let $e = Ae, Pe = "left";
|
|
5944
|
+
return Se === "center" ? ($e = ve.width / 2, Pe = "center") : Se === "right" && ($e = Math.max(Ae, ve.width - Ae), Pe = "right"), {
|
|
5943
5945
|
elements: [{
|
|
5944
5946
|
type: "text",
|
|
5945
5947
|
text: Ze,
|
|
5946
|
-
x:
|
|
5947
|
-
y:
|
|
5948
|
+
x: $e,
|
|
5949
|
+
y: ve.height / 2,
|
|
5948
5950
|
fontSize: 14,
|
|
5949
5951
|
fill: "#1d2129",
|
|
5950
5952
|
textAlign: Pe,
|
|
@@ -5954,30 +5956,30 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5954
5956
|
};
|
|
5955
5957
|
}, Ee = (D, N) => {
|
|
5956
5958
|
const { dataValue: Z, rect: oe, table: U, col: te, row: re } = D;
|
|
5957
|
-
let
|
|
5958
|
-
Z || (
|
|
5959
|
-
const
|
|
5960
|
-
let Qe =
|
|
5961
|
-
return Ze?.style?.textAlign === "center" ? Qe = Math.max(
|
|
5959
|
+
let ve = "mdi:toggle-switch", he = "#165dff";
|
|
5960
|
+
Z || (ve = "mdi:toggle-switch-off", he = "#e5e6eb");
|
|
5961
|
+
const pe = Sa(ve), Se = pe?.body?.replace(/currentColor/g, he), Ae = [], He = U?.getBodyField?.(te, re), je = U?.options?.columns || [], Ze = He ? ut(je, He) : null, $e = 8, Pe = 40;
|
|
5962
|
+
let Qe = $e;
|
|
5963
|
+
return Ze?.style?.textAlign === "center" ? Qe = Math.max($e, (oe.width - Pe) / 2) : Ze?.style?.textAlign === "right" && (Qe = Math.max($e, oe.width - Pe - $e)), Ae.push({
|
|
5962
5964
|
type: "icon",
|
|
5963
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Pe}" height="${Pe}" viewBox="0 0 ${
|
|
5965
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Pe}" height="${Pe}" viewBox="0 0 ${pe?.width} ${pe?.height}" >${Se}</svg>`,
|
|
5964
5966
|
x: Qe,
|
|
5965
5967
|
y: (oe.height - Pe) / 2,
|
|
5966
5968
|
width: Pe,
|
|
5967
5969
|
height: Pe
|
|
5968
5970
|
}), {
|
|
5969
|
-
elements:
|
|
5971
|
+
elements: Ae,
|
|
5970
5972
|
expectedHeight: yn
|
|
5971
5973
|
};
|
|
5972
5974
|
}, Be = (D, N) => {
|
|
5973
|
-
const { dataValue: Z, rect: oe } = D, U = Number(Z) || 0, te = 5, re = 20,
|
|
5975
|
+
const { dataValue: Z, rect: oe } = D, U = Number(Z) || 0, te = 5, re = 20, ve = 4, he = 8, pe = (oe.height - re) / 2, Se = [], Ae = Sa("mdi:star"), He = Sa("mdi:star-half-full"), je = Sa("mdi:star-outline"), Ze = "#f7ba2a", $e = "#e5e6eb";
|
|
5974
5976
|
for (let Pe = 0; Pe < te; Pe++) {
|
|
5975
|
-
const Qe =
|
|
5977
|
+
const Qe = he + Pe * (re + ve), et = pe;
|
|
5976
5978
|
if (U >= Pe + 1) {
|
|
5977
|
-
const ct =
|
|
5979
|
+
const ct = Ae?.body?.replace(/currentColor/g, Ze);
|
|
5978
5980
|
Se.push({
|
|
5979
5981
|
type: "icon",
|
|
5980
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${re}" height="${re}" viewBox="0 0 ${
|
|
5982
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${re}" height="${re}" viewBox="0 0 ${Ae?.width} ${Ae?.height}">${ct}</svg>`,
|
|
5981
5983
|
x: Qe,
|
|
5982
5984
|
y: et,
|
|
5983
5985
|
width: re,
|
|
@@ -5994,7 +5996,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5994
5996
|
height: re
|
|
5995
5997
|
});
|
|
5996
5998
|
} else {
|
|
5997
|
-
const ct = je?.body?.replace(/currentColor/g,
|
|
5999
|
+
const ct = je?.body?.replace(/currentColor/g, $e);
|
|
5998
6000
|
Se.push({
|
|
5999
6001
|
type: "icon",
|
|
6000
6002
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${re}" height="${re}" viewBox="0 0 ${je?.width} ${je?.height}">${ct}</svg>`,
|
|
@@ -6010,13 +6012,13 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6010
6012
|
expectedHeight: yn
|
|
6011
6013
|
};
|
|
6012
6014
|
}, Ie = (D, N) => {
|
|
6013
|
-
const { dataValue: Z, rect: oe, table: U, col: te, row: re } = D,
|
|
6014
|
-
config:
|
|
6015
|
-
getCompConfig:
|
|
6015
|
+
const { dataValue: Z, rect: oe, table: U, col: te, row: re } = D, ve = U.getBodyField(te, re), he = ut(U.options?.columns || [], ve), pe = U.getCellOriginRecord?.(te, re) || U.getRecordByCell?.(te, re) || {}, Se = N || xn({
|
|
6016
|
+
config: he?._compConfig,
|
|
6017
|
+
getCompConfig: he?._getCompConfig,
|
|
6016
6018
|
formData: r || {},
|
|
6017
6019
|
getTableData: be,
|
|
6018
|
-
row:
|
|
6019
|
-
}) || {},
|
|
6020
|
+
row: pe
|
|
6021
|
+
}) || {}, Ae = Number(Se.min) || 0, He = Number(Se.max) || 100, je = Number(Z) || 0, Ze = He - Ae, $e = Ze === 0 ? 0 : Math.max(0, Math.min(100, (je - Ae) / Ze * 100)), Pe = 4, Qe = 8, et = 8, ct = (oe.height - Pe) / 2, tt = String(je), _e = bn(tt) || 0, ft = Qe, Ue = ct, Lt = oe.width - Qe * 2 - _e - et, sn = Lt * $e / 100, gn = [], vn = (Jt, it, Tt) => {
|
|
6020
6022
|
const pt = Math.min(Tt, it / 2, Jt / 2);
|
|
6021
6023
|
return `M ${pt} 0 L ${Jt - pt} 0 Q ${Jt} 0 ${Jt} ${pt} L ${Jt} ${it - pt} Q ${Jt} ${it} ${Jt - pt} ${it} L ${pt} ${it} Q 0 ${it} 0 ${it - pt} L 0 ${pt} Q 0 0 ${pt} 0 Z`;
|
|
6022
6024
|
}, uo = (Jt, it, Tt) => {
|
|
@@ -6072,20 +6074,20 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6072
6074
|
elements: [],
|
|
6073
6075
|
expectedHeight: yn
|
|
6074
6076
|
};
|
|
6075
|
-
const
|
|
6076
|
-
config:
|
|
6077
|
-
getCompConfig:
|
|
6077
|
+
const ve = U.getBodyField(te, re), he = ut(U.options?.columns || [], ve), pe = U.getCellOriginRecord?.(te, re) || U.getRecordByCell?.(te, re) || {}, Se = N || xn({
|
|
6078
|
+
config: he?._compConfig,
|
|
6079
|
+
getCompConfig: he?._getCompConfig,
|
|
6078
6080
|
formData: r || {},
|
|
6079
6081
|
getTableData: be,
|
|
6080
|
-
row:
|
|
6081
|
-
}) || {},
|
|
6082
|
-
let
|
|
6083
|
-
if (
|
|
6082
|
+
row: pe
|
|
6083
|
+
}) || {}, Ae = Number(Se.size) || 16, He = Se.color, je = (oe.width - Ae) / 2, Ze = (oe.height - Ae) / 2;
|
|
6084
|
+
let $e = String(Z).trim();
|
|
6085
|
+
if (!$e) return {
|
|
6084
6086
|
elements: [],
|
|
6085
6087
|
expectedHeight: yn
|
|
6086
6088
|
};
|
|
6087
|
-
if (
|
|
6088
|
-
const Pe =
|
|
6089
|
+
if ($e.startsWith("<svg")) {
|
|
6090
|
+
const Pe = $e.match(/<svg\b([^>]*)>([\s\S]*?)<\/svg>/i);
|
|
6089
6091
|
if (Pe) {
|
|
6090
6092
|
const Qe = Pe[1] || "", et = Pe[2] || "";
|
|
6091
6093
|
let ct = Qe.match(/\bviewBox\s*=\s*["']([^"']+)["']/i)?.[1];
|
|
@@ -6093,56 +6095,56 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6093
6095
|
const tt = Qe.match(/\bwidth\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1], _e = Qe.match(/\bheight\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1];
|
|
6094
6096
|
ct = tt && _e ? `0 0 ${tt} ${_e}` : "0 0 24 24";
|
|
6095
6097
|
}
|
|
6096
|
-
|
|
6097
|
-
} else
|
|
6098
|
+
$e = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ae}" height="${Ae}" viewBox="${ct}">${et}</svg>`;
|
|
6099
|
+
} else $e = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ae}" height="${Ae}" viewBox="0 0 24 24"></svg>`;
|
|
6098
6100
|
} else {
|
|
6099
|
-
const Pe = Sa(
|
|
6101
|
+
const Pe = Sa($e);
|
|
6100
6102
|
if (Pe) {
|
|
6101
6103
|
const { body: Qe, width: et, height: ct } = Pe;
|
|
6102
|
-
|
|
6104
|
+
$e = `<svg xmlns="http://www.w3.org/2000/svg" width="${Ae}" height="${Ae}" viewBox="0 0 ${et} ${ct}">${Qe}</svg>`;
|
|
6103
6105
|
}
|
|
6104
6106
|
}
|
|
6105
|
-
return He && (
|
|
6107
|
+
return He && ($e = $e.replace(/currentColor/g, He)), {
|
|
6106
6108
|
elements: [{
|
|
6107
6109
|
type: "icon",
|
|
6108
|
-
svg:
|
|
6110
|
+
svg: $e,
|
|
6109
6111
|
x: je,
|
|
6110
6112
|
y: Ze,
|
|
6111
|
-
width:
|
|
6112
|
-
height:
|
|
6113
|
+
width: Ae,
|
|
6114
|
+
height: Ae
|
|
6113
6115
|
}],
|
|
6114
|
-
expectedHeight: Math.max(yn,
|
|
6116
|
+
expectedHeight: Math.max(yn, Ae)
|
|
6115
6117
|
};
|
|
6116
6118
|
}, Kt = (D, N) => {
|
|
6117
|
-
const { dataValue: Z, rect: oe, table: U, col: te, row: re, value:
|
|
6118
|
-
config:
|
|
6119
|
-
getCompConfig:
|
|
6119
|
+
const { dataValue: Z, rect: oe, table: U, col: te, row: re, value: ve } = D, he = U.getBodyField(te, re), pe = ut(U.options?.columns || [], he), Se = U.getCellOriginRecord?.(te, re) || U.getRecordByCell?.(te, re) || {}, Ae = N || xn({
|
|
6120
|
+
config: pe?._compConfig,
|
|
6121
|
+
getCompConfig: pe?._getCompConfig,
|
|
6120
6122
|
formData: r || {},
|
|
6121
6123
|
getTableData: be,
|
|
6122
6124
|
row: Se
|
|
6123
|
-
}) || {}, He =
|
|
6124
|
-
config:
|
|
6125
|
+
}) || {}, He = pe?.style?.textAlign || "left", je = f({
|
|
6126
|
+
config: Ae,
|
|
6125
6127
|
row: Se,
|
|
6126
|
-
value:
|
|
6128
|
+
value: pe._fieldFormat ? ve : Z
|
|
6127
6129
|
});
|
|
6128
6130
|
if (je.length === 0) return {
|
|
6129
6131
|
elements: [],
|
|
6130
6132
|
expectedHeight: yn
|
|
6131
6133
|
};
|
|
6132
|
-
const Ze = 14,
|
|
6134
|
+
const Ze = 14, $e = 28, Pe = 2, Qe = 12, et = 8, ct = 6;
|
|
6133
6135
|
let tt = 8, _e = Math.max(0, oe.width - tt * 2), ft = Math.max(0, _e - Qe * 2);
|
|
6134
6136
|
const Ue = [], Lt = (it) => {
|
|
6135
6137
|
const Tt = bn(bt(it, ft)) || 0;
|
|
6136
6138
|
return Math.min(_e, Tt + Qe * 2);
|
|
6137
6139
|
}, sn = (it, Tt, pt, Tn, An) => {
|
|
6138
|
-
const ma = bt(pt, ft), ba = Et(ma), Qo = bn(ma) || 0, Va = Math.min(_e, Qo + Qe * 2), md = Tn || "#f2f3f5", bd = An || "#1d2129", wd =
|
|
6140
|
+
const ma = bt(pt, ft), ba = Et(ma), Qo = bn(ma) || 0, Va = Math.min(_e, Qo + Qe * 2), md = Tn || "#f2f3f5", bd = An || "#1d2129", wd = $e / 2 + Ze * 0.35, _d = `<svg xmlns="http://www.w3.org/2000/svg" width="${Va}" height="${$e}" viewBox="0 0 ${Va} ${$e}"><rect x="0" y="0" width="${Va}" height="${$e}" rx="${Pe}" ry="${Pe}" fill="${md}"/><text x="${Va / 2}" y="${wd}" text-anchor="middle" font-size="${Ze}" fill="${bd}">${ba}</text></svg>`;
|
|
6139
6141
|
return Ue.push({
|
|
6140
6142
|
type: "icon",
|
|
6141
6143
|
svg: _d,
|
|
6142
6144
|
x: it,
|
|
6143
6145
|
y: Tt,
|
|
6144
6146
|
width: Va,
|
|
6145
|
-
height:
|
|
6147
|
+
height: $e
|
|
6146
6148
|
}), { tagWidth: Va };
|
|
6147
6149
|
}, gn = () => {
|
|
6148
6150
|
const it = [];
|
|
@@ -6169,7 +6171,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6169
6171
|
};
|
|
6170
6172
|
let { lines: vn, needsWrap: uo } = gn();
|
|
6171
6173
|
tt !== 0 && uo && (tt = 0, _e = Math.max(0, oe.width - tt * 2), ft = Math.max(0, _e - Qe * 2), { lines: vn, needsWrap: uo } = gn());
|
|
6172
|
-
const Xo = vn.length *
|
|
6174
|
+
const Xo = vn.length * $e + (vn.length > 1 ? (vn.length - 1) * ct : 0);
|
|
6173
6175
|
let Zo = Math.max(0, (oe.height - Xo) / 2);
|
|
6174
6176
|
const er = uo;
|
|
6175
6177
|
for (let it = 0; it < vn.length; it++) {
|
|
@@ -6179,7 +6181,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6179
6181
|
const An = Tt.items[Tn], { tagWidth: ma } = sn(pt, Zo, An.label, An.bg, An.text);
|
|
6180
6182
|
pt += ma + (Tn < Tt.items.length - 1 ? et : 0);
|
|
6181
6183
|
}
|
|
6182
|
-
Zo +=
|
|
6184
|
+
Zo += $e + (it < vn.length - 1 ? ct : 0);
|
|
6183
6185
|
}
|
|
6184
6186
|
const Jt = Math.min(oe.width, Math.max(0, ...vn.map((it) => it.lineWidth)) + tt * 2);
|
|
6185
6187
|
return {
|
|
@@ -6192,43 +6194,43 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6192
6194
|
D = D.replace("#", ""), D.length === 3 && (D = D.split("").map((U) => U + U).join(""));
|
|
6193
6195
|
const N = parseInt(D.substring(0, 2), 16), Z = parseInt(D.substring(2, 4), 16), oe = parseInt(D.substring(4, 6), 16);
|
|
6194
6196
|
if ((N * 299 + Z * 587 + oe * 114) / 1e3 >= 128) {
|
|
6195
|
-
const U = N / 255, te = Z / 255, re = oe / 255,
|
|
6196
|
-
let
|
|
6197
|
-
const
|
|
6198
|
-
if (
|
|
6199
|
-
const et =
|
|
6200
|
-
switch (Se =
|
|
6197
|
+
const U = N / 255, te = Z / 255, re = oe / 255, ve = Math.max(U, te, re), he = Math.min(U, te, re);
|
|
6198
|
+
let pe = 0, Se = 0;
|
|
6199
|
+
const Ae = (ve + he) / 2;
|
|
6200
|
+
if (ve !== he) {
|
|
6201
|
+
const et = ve - he;
|
|
6202
|
+
switch (Se = Ae > 0.5 ? et / (2 - ve - he) : et / (ve + he), ve) {
|
|
6201
6203
|
case U:
|
|
6202
|
-
|
|
6204
|
+
pe = (te - re) / et + (te < re ? 6 : 0);
|
|
6203
6205
|
break;
|
|
6204
6206
|
case te:
|
|
6205
|
-
|
|
6207
|
+
pe = (re - U) / et + 2;
|
|
6206
6208
|
break;
|
|
6207
6209
|
case re:
|
|
6208
|
-
|
|
6210
|
+
pe = (U - te) / et + 4;
|
|
6209
6211
|
break;
|
|
6210
6212
|
}
|
|
6211
|
-
|
|
6213
|
+
pe /= 6;
|
|
6212
6214
|
}
|
|
6213
6215
|
const He = 0.3, je = Se;
|
|
6214
|
-
let Ze,
|
|
6215
|
-
if (je === 0) Ze =
|
|
6216
|
+
let Ze, $e, Pe;
|
|
6217
|
+
if (je === 0) Ze = $e = Pe = He;
|
|
6216
6218
|
else {
|
|
6217
6219
|
const et = (_e, ft, Ue) => (Ue < 0 && (Ue += 1), Ue > 1 && (Ue -= 1), Ue < 0.16666666666666666 ? _e + (ft - _e) * 6 * Ue : Ue < 0.5 ? ft : Ue < 0.6666666666666666 ? _e + (ft - _e) * (0.6666666666666666 - Ue) * 6 : _e), ct = He < 0.5 ? He * (1 + je) : He + je - He * je, tt = 2 * He - ct;
|
|
6218
|
-
Ze = et(tt, ct,
|
|
6220
|
+
Ze = et(tt, ct, pe + 1 / 3), $e = et(tt, ct, pe), Pe = et(tt, ct, pe - 1 / 3);
|
|
6219
6221
|
}
|
|
6220
6222
|
const Qe = (et) => Math.round(et * 255).toString(16).padStart(2, "0");
|
|
6221
|
-
return `#${Qe(Ze)}${Qe(
|
|
6223
|
+
return `#${Qe(Ze)}${Qe($e)}${Qe(Pe)}`;
|
|
6222
6224
|
}
|
|
6223
6225
|
return "#ffffff";
|
|
6224
6226
|
}, qt = (D) => {
|
|
6225
|
-
const { table: N, row: Z, col: oe, rect: U, value: te } = D, { Group: re, Text:
|
|
6227
|
+
const { table: N, row: Z, col: oe, rect: U, value: te } = D, { Group: re, Text: ve } = Je.CustomLayout, he = N.getBodyField(oe, Z), pe = ut(N.options?.columns || [], he), Se = pe?._compConfig || {}, Ae = new re({
|
|
6226
6228
|
height: U.height,
|
|
6227
6229
|
width: U.width,
|
|
6228
6230
|
display: "flex",
|
|
6229
6231
|
alignItems: "center",
|
|
6230
|
-
justifyContent:
|
|
6231
|
-
}), He = "#165dff", je = new
|
|
6232
|
+
justifyContent: pe.style?.textAlign === "center" ? "center" : pe.style?.textAlign === "right" ? "flex-end" : "flex-start"
|
|
6233
|
+
}), He = "#165dff", je = new ve({
|
|
6232
6234
|
text: String(te ?? ""),
|
|
6233
6235
|
fontSize: 14,
|
|
6234
6236
|
fill: He,
|
|
@@ -6245,7 +6247,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6245
6247
|
const Ze = N.getCellOriginRecord(oe, Z);
|
|
6246
6248
|
Se.click({
|
|
6247
6249
|
row: Ze,
|
|
6248
|
-
column:
|
|
6250
|
+
column: pe,
|
|
6249
6251
|
openLayer: u
|
|
6250
6252
|
});
|
|
6251
6253
|
}
|
|
@@ -6253,20 +6255,20 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6253
6255
|
Ze.target.setAttribute("fill", ae(He, -20)), N.scenegraph.stage.renderNextFrame();
|
|
6254
6256
|
}), je.addEventListener("mouseleave", (Ze) => {
|
|
6255
6257
|
Ze.target.setAttribute("fill", He), N.scenegraph.stage.renderNextFrame();
|
|
6256
|
-
}),
|
|
6257
|
-
rootContainer:
|
|
6258
|
+
}), Ae.add(je), {
|
|
6259
|
+
rootContainer: Ae,
|
|
6258
6260
|
renderDefault: !1
|
|
6259
6261
|
};
|
|
6260
6262
|
}, Bt = (D) => {
|
|
6261
|
-
const { table: N, row: Z, col: oe, rect: U } = D, { height: te, width: re } = U ?? N.getCellRect(oe, Z), { Group:
|
|
6262
|
-
const ft =
|
|
6263
|
-
|
|
6263
|
+
const { table: N, row: Z, col: oe, rect: U } = D, { height: te, width: re } = U ?? N.getCellRect(oe, Z), { Group: ve, CheckBox: he } = Je.CustomLayout, pe = N.getBodyField(oe, Z), Se = ut(N.options?.columns || [], pe), Ae = N.getCellOriginRecord(oe, Z) || {}, He = Se?.style?.textAlign === "right" ? "flex-end" : Se?.style?.textAlign === "center" ? "center" : "flex-start", je = Se?.style?.textAlign === "right" ? "flex-end" : Se?.style?.textAlign === "center" ? "center" : "flex-start", Ze = (tt, _e) => {
|
|
6264
|
+
const ft = Ae?.[pe];
|
|
6265
|
+
Ae[pe] = (Array.isArray(ft) ? ft : []).map((Ue, Lt) => Lt !== tt ? Ue : Ue && typeof Ue == "object" ? {
|
|
6264
6266
|
...Ue,
|
|
6265
6267
|
..._e
|
|
6266
6268
|
} : { ..._e });
|
|
6267
|
-
},
|
|
6269
|
+
}, $e = () => {
|
|
6268
6270
|
N.renderWithRecreateCells();
|
|
6269
|
-
}, Pe = new
|
|
6271
|
+
}, Pe = new ve({
|
|
6270
6272
|
width: re,
|
|
6271
6273
|
height: Math.max(te || 0, 40),
|
|
6272
6274
|
display: "flex",
|
|
@@ -6274,12 +6276,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6274
6276
|
alignItems: He,
|
|
6275
6277
|
justifyContent: "center",
|
|
6276
6278
|
flexWrap: "nowrap"
|
|
6277
|
-
}), Qe =
|
|
6279
|
+
}), Qe = Ae?.[pe];
|
|
6278
6280
|
if (!Array.isArray(Qe)) return {
|
|
6279
6281
|
rootContainer: Pe,
|
|
6280
6282
|
renderDefault: !1
|
|
6281
6283
|
};
|
|
6282
|
-
const et = Qe, ct = new
|
|
6284
|
+
const et = Qe, ct = new ve({
|
|
6283
6285
|
width: re,
|
|
6284
6286
|
display: "flex",
|
|
6285
6287
|
flexDirection: "row",
|
|
@@ -6295,7 +6297,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6295
6297
|
});
|
|
6296
6298
|
Pe.add(ct);
|
|
6297
6299
|
for (let tt = 0; tt < et.length; tt++) {
|
|
6298
|
-
const _e = et[tt], ft = _e && typeof _e == "object" ? _e.label ?? _e.value ?? "" : _e ?? "", Ue = new
|
|
6300
|
+
const _e = et[tt], ft = _e && typeof _e == "object" ? _e.label ?? _e.value ?? "" : _e ?? "", Ue = new he({
|
|
6299
6301
|
text: {
|
|
6300
6302
|
text: String(ft),
|
|
6301
6303
|
fontSize: 12
|
|
@@ -6312,7 +6314,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6312
6314
|
});
|
|
6313
6315
|
Ue.render?.(), ct.add(Ue), Ue.addEventListener("checkbox_state_change", () => {
|
|
6314
6316
|
const Lt = !!Ue.attribute?.checked;
|
|
6315
|
-
Ze(tt, { checked: Lt }),
|
|
6317
|
+
Ze(tt, { checked: Lt }), $e();
|
|
6316
6318
|
});
|
|
6317
6319
|
}
|
|
6318
6320
|
return {
|
|
@@ -6341,22 +6343,22 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6341
6343
|
elements: [],
|
|
6342
6344
|
expectedHeight: yn
|
|
6343
6345
|
};
|
|
6344
|
-
const re = N.getCellOriginRecord?.(Z, oe) || N.getRecordByCell?.(Z, oe) || {},
|
|
6346
|
+
const re = N.getCellOriginRecord?.(Z, oe) || N.getRecordByCell?.(Z, oe) || {}, ve = xn({
|
|
6345
6347
|
config: te._compConfig,
|
|
6346
6348
|
getCompConfig: te._getCompConfig,
|
|
6347
6349
|
formData: r || {},
|
|
6348
6350
|
getTableData: be,
|
|
6349
6351
|
row: re
|
|
6350
|
-
}),
|
|
6352
|
+
}), he = Yr({
|
|
6351
6353
|
type: te._compType,
|
|
6352
6354
|
getCompType: te._getCompType,
|
|
6353
|
-
config:
|
|
6355
|
+
config: ve,
|
|
6354
6356
|
formData: r || {},
|
|
6355
6357
|
getTableData: be,
|
|
6356
6358
|
row: re
|
|
6357
6359
|
});
|
|
6358
|
-
re._compTypeByRender = re._compTypeByRender || {}, re._compTypeByRender[U] =
|
|
6359
|
-
const
|
|
6360
|
+
re._compTypeByRender = re._compTypeByRender || {}, re._compTypeByRender[U] = he;
|
|
6361
|
+
const pe = {
|
|
6360
6362
|
text: ne,
|
|
6361
6363
|
"j-switch": Ee,
|
|
6362
6364
|
"j-rate": Be,
|
|
@@ -6364,8 +6366,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6364
6366
|
"j-tag": Kt,
|
|
6365
6367
|
"j-input-tag": Kt,
|
|
6366
6368
|
"j-icon": Xe
|
|
6367
|
-
}[
|
|
6368
|
-
return
|
|
6369
|
+
}[he] || ne;
|
|
6370
|
+
return pe ? pe(D, ve) : {
|
|
6369
6371
|
elements: [],
|
|
6370
6372
|
expectedHeight: yn
|
|
6371
6373
|
};
|
|
@@ -6373,8 +6375,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6373
6375
|
const U = oe.getBodyField(N, Z), te = ut(oe.options?.columns || [], U);
|
|
6374
6376
|
if (te._fieldFormat) return te._fieldFormat(D, N, Z, oe);
|
|
6375
6377
|
if (te._compType === "dateTime") {
|
|
6376
|
-
const
|
|
6377
|
-
return Jr(D[U],
|
|
6378
|
+
const he = te._compConfig?.format || "YYYY-MM-DD HH:mm:ss";
|
|
6379
|
+
return Jr(D[U], he);
|
|
6378
6380
|
}
|
|
6379
6381
|
const re = Vf(D[U], c, {
|
|
6380
6382
|
type: te._compType,
|
|
@@ -6386,8 +6388,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6386
6388
|
row: D
|
|
6387
6389
|
});
|
|
6388
6390
|
if (D[U] && D[U] == re.label && re.config.dataType && re.config.dataType != "options" && !re.config.options && re.type != "j-autocomplete" && c && s) {
|
|
6389
|
-
var
|
|
6390
|
-
p[
|
|
6391
|
+
var ve = s(re.config.dataType, re.config.dataCode, { value: D[U] });
|
|
6392
|
+
p[ve] = !0;
|
|
6391
6393
|
}
|
|
6392
6394
|
return re.label;
|
|
6393
6395
|
}, K = () => {
|
|
@@ -6400,23 +6402,23 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6400
6402
|
});
|
|
6401
6403
|
const ce = (D) => {
|
|
6402
6404
|
const N = D.filter((Z) => Z.config?.display !== !1).map((Z) => {
|
|
6403
|
-
const { id: oe, type: U, config: te, getCompConfig: re, getCompType:
|
|
6405
|
+
const { id: oe, type: U, config: te, getCompConfig: re, getCompType: ve, children: he, customLayout: pe } = Z, { label: Se, width: Ae, minWidth: He, maxWidth: je, align: Ze, headerAlign: $e, fieldFormat: Pe, editor: Qe, frozen: et, ...ct } = te || {}, tt = $e ?? Ze, _e = {
|
|
6404
6406
|
field: oe,
|
|
6405
6407
|
title: Se,
|
|
6406
|
-
width:
|
|
6408
|
+
width: Ae,
|
|
6407
6409
|
minWidth: He,
|
|
6408
6410
|
maxWidth: je,
|
|
6409
6411
|
...tt ? { headerStyle: { textAlign: tt } } : {},
|
|
6410
6412
|
style: { textAlign: Ze },
|
|
6411
|
-
_customLayout:
|
|
6413
|
+
_customLayout: pe,
|
|
6412
6414
|
_fieldFormat: Pe,
|
|
6413
6415
|
_compType: U,
|
|
6414
6416
|
_compConfig: { ...ct },
|
|
6415
6417
|
_getCompConfig: re,
|
|
6416
|
-
_getCompType:
|
|
6418
|
+
_getCompType: ve,
|
|
6417
6419
|
frozen: et
|
|
6418
|
-
}, ft = typeof
|
|
6419
|
-
return (Ue || ft) && (_e.editor = Ue || "j-comp-editor", _ = !0), ft ? _e.customRender = Nt : (U === "j-switch" && (_e.customRender = Ee), U === "j-rate" && (_e.customRender = Be), U === "j-slider" && (_e.customRender = Ie), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = Kt), U === "j-icon" && (_e.customRender = Xe)), U === "link" && (_e.customLayout = qt), U === "checkbox" && (_e.customLayout = Bt), U === "j-switch" && (_e.minWidth = _e.minWidth ||
|
|
6420
|
+
}, ft = typeof ve == "function", Ue = Ic(U);
|
|
6421
|
+
return (Ue || ft) && (_e.editor = Ue || "j-comp-editor", _ = !0), ft ? _e.customRender = Nt : (U === "j-switch" && (_e.customRender = Ee), U === "j-rate" && (_e.customRender = Be), U === "j-slider" && (_e.customRender = Ie), (U === "j-tag" || U === "j-input-tag") && (_e.customRender = Kt), U === "j-icon" && (_e.customRender = Xe)), U === "link" && (_e.customLayout = qt), U === "checkbox" && (_e.customLayout = Bt), U === "j-switch" && (_e.minWidth = _e.minWidth || Ae, _e.maxWidth = _e.maxWidth || Ae), pe && (_e.customLayout = Ht), _e.fieldFormat = Cn, he && he.length > 0 && (_e.columns = ce(he)), _e;
|
|
6420
6422
|
});
|
|
6421
6423
|
return o.isTree && N.length > 0 && (N[0].tree = !0), N;
|
|
6422
6424
|
}, ae = (D, N) => {
|
|
@@ -6427,7 +6429,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6427
6429
|
o.isPage && (D = xe.value + R);
|
|
6428
6430
|
let N = bn(String(D)) || 0;
|
|
6429
6431
|
return o.subColumns && o.subColumns.length > 0 && (N = N + 32), Math.max(45, N + 18);
|
|
6430
|
-
},
|
|
6432
|
+
}, me = (D) => {
|
|
6431
6433
|
let N = (Z, oe, U, te) => {
|
|
6432
6434
|
const re = te.getRecordIndexByCell(oe, U);
|
|
6433
6435
|
return o.isPage && !D ? xe.value + re + 1 : re + 1;
|
|
@@ -6474,9 +6476,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6474
6476
|
return;
|
|
6475
6477
|
}
|
|
6476
6478
|
const oe = at(Z.columns), U = [], te = [], re = [];
|
|
6477
|
-
if (oe.forEach((
|
|
6478
|
-
const
|
|
6479
|
-
|
|
6479
|
+
if (oe.forEach((ve) => {
|
|
6480
|
+
const he = ze(ve);
|
|
6481
|
+
he === "left" ? U.push(ve) : he === "right" ? te.push(ve) : re.push(ve);
|
|
6480
6482
|
}), (U.length > 0 ? 1 : 0) + (te.length > 0 ? 1 : 0) + (re.length > 0 ? 1 : 0) <= 1) {
|
|
6481
6483
|
Z.columns = oe, N.push(Z);
|
|
6482
6484
|
return;
|
|
@@ -6508,28 +6510,28 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6508
6510
|
const U = {};
|
|
6509
6511
|
let te = ce(D);
|
|
6510
6512
|
te.length === 0 && (te = [Te()]), te = at(te);
|
|
6511
|
-
const re = [],
|
|
6513
|
+
const re = [], ve = [], he = [];
|
|
6512
6514
|
te.forEach((He) => {
|
|
6513
6515
|
const je = ze(He);
|
|
6514
|
-
je === "left" ? re.push(He) : je === "right" ?
|
|
6516
|
+
je === "left" ? re.push(He) : je === "right" ? ve.push(He) : he.push(He);
|
|
6515
6517
|
});
|
|
6516
|
-
const
|
|
6517
|
-
y +=
|
|
6518
|
+
const pe = Ct(re), Se = Ct(ve);
|
|
6519
|
+
y += pe.left, C += Se.right, te = [
|
|
6518
6520
|
...re,
|
|
6519
|
-
...
|
|
6520
|
-
...
|
|
6521
|
-
], N && (te.unshift(
|
|
6521
|
+
...he,
|
|
6522
|
+
...ve
|
|
6523
|
+
], N && (te.unshift(me(oe)), y++), Z.length > 0 && (te.push(Ye(Z)), C++), _ && (U.editCellTrigger = "click", U.keyboardOptions = {
|
|
6522
6524
|
copySelected: !0,
|
|
6523
6525
|
cutSelected: !0,
|
|
6524
6526
|
pasteValueToCell: !0,
|
|
6525
6527
|
selectAllOnCtrlA: !0
|
|
6526
6528
|
});
|
|
6527
|
-
const
|
|
6529
|
+
const Ae = (He) => {
|
|
6528
6530
|
for (const je of He)
|
|
6529
|
-
if (je?._compType === "checkbox" || je?.customRender === Nt || je?.customRender === Kt || Array.isArray(je?.columns) &&
|
|
6531
|
+
if (je?._compType === "checkbox" || je?.customRender === Nt || je?.customRender === Kt || Array.isArray(je?.columns) && Ae(je.columns)) return !0;
|
|
6530
6532
|
return !1;
|
|
6531
6533
|
};
|
|
6532
|
-
return
|
|
6534
|
+
return Ae(te) && !(o.subColumns && o.subColumns.length > 0) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
|
|
6533
6535
|
columns: te,
|
|
6534
6536
|
option: U
|
|
6535
6537
|
};
|
|
@@ -6603,23 +6605,23 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6603
6605
|
}
|
|
6604
6606
|
}
|
|
6605
6607
|
}), v.on("click_cell", (U) => {
|
|
6606
|
-
const { col: te, row: re, cellType:
|
|
6608
|
+
const { col: te, row: re, cellType: ve, originData: he } = U, pe = he || { children: v.records };
|
|
6607
6609
|
if ($t.value) {
|
|
6608
|
-
if (
|
|
6609
|
-
if (
|
|
6610
|
-
const
|
|
6610
|
+
if (ve === "checkbox" && te == 0) {
|
|
6611
|
+
if (pe.__checkState = U.target.attribute.checked, re === 0 && pe.__checkState === !1) {
|
|
6612
|
+
const Ae = (He) => {
|
|
6611
6613
|
!Array.isArray(He) || He.length === 0 || He.forEach((je) => {
|
|
6612
|
-
je && (je.__checkState = !1, Array.isArray(je.children) && je.children.length > 0 &&
|
|
6614
|
+
je && (je.__checkState = !1, Array.isArray(je.children) && je.children.length > 0 && Ae(je.children));
|
|
6613
6615
|
});
|
|
6614
6616
|
};
|
|
6615
|
-
|
|
6617
|
+
Ae(pe.children);
|
|
6616
6618
|
}
|
|
6617
6619
|
const Se = Wt();
|
|
6618
6620
|
Se.length == 0 && v.setCellCheckboxState(0, 0, !1), k.value = Se.length, i("selectionChanged", {
|
|
6619
6621
|
isMultiple: !0,
|
|
6620
6622
|
selections: Se,
|
|
6621
|
-
record:
|
|
6622
|
-
checked:
|
|
6623
|
+
record: pe,
|
|
6624
|
+
checked: pe.__checkState
|
|
6623
6625
|
}), v.renderWithRecreateCells();
|
|
6624
6626
|
}
|
|
6625
6627
|
} else setTimeout(() => {
|
|
@@ -6627,7 +6629,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6627
6629
|
k.value = Se.length, i("selectionChanged", {
|
|
6628
6630
|
isMultiple: !1,
|
|
6629
6631
|
selections: Se,
|
|
6630
|
-
record:
|
|
6632
|
+
record: pe,
|
|
6631
6633
|
checked: !0
|
|
6632
6634
|
});
|
|
6633
6635
|
}, 0);
|
|
@@ -6691,29 +6693,29 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6691
6693
|
return [];
|
|
6692
6694
|
}
|
|
6693
6695
|
if (v.stateManager && v.stateManager.checkedState) {
|
|
6694
|
-
const D = [], N = /* @__PURE__ */ new Set(), Z = (
|
|
6695
|
-
if (!
|
|
6696
|
-
const
|
|
6697
|
-
if (
|
|
6698
|
-
if (N.has(
|
|
6699
|
-
N.add(
|
|
6700
|
-
const
|
|
6701
|
-
|
|
6696
|
+
const D = [], N = /* @__PURE__ */ new Set(), Z = (ve) => {
|
|
6697
|
+
if (!ve) return;
|
|
6698
|
+
const he = wt(ve);
|
|
6699
|
+
if (he) {
|
|
6700
|
+
if (N.has(he)) return;
|
|
6701
|
+
N.add(he);
|
|
6702
|
+
const pe = {};
|
|
6703
|
+
ve.__checkState = !0, Si(pe, ve, ["children"]), D.push(pe);
|
|
6702
6704
|
} else console.warn("key is empty");
|
|
6703
|
-
}, oe = (
|
|
6704
|
-
const
|
|
6705
|
-
!Array.isArray(
|
|
6706
|
-
Z(
|
|
6705
|
+
}, oe = (ve) => {
|
|
6706
|
+
const he = ve?.children;
|
|
6707
|
+
!Array.isArray(he) || he.length === 0 || he.forEach((pe) => {
|
|
6708
|
+
Z(pe), oe(pe);
|
|
6707
6709
|
});
|
|
6708
|
-
}, U = v.stateManager.checkedState, te = v.records, re = (
|
|
6709
|
-
const Se = he[
|
|
6710
|
-
return
|
|
6710
|
+
}, U = v.stateManager.checkedState, te = v.records, re = (ve, he, pe) => {
|
|
6711
|
+
const Se = pe[he[ve]];
|
|
6712
|
+
return ve < he.length - 1 && Se?.children && Se.children.length > 0 ? re(ve + 1, he, Se.children || []) : Se;
|
|
6711
6713
|
};
|
|
6712
|
-
return U.forEach((
|
|
6713
|
-
const
|
|
6714
|
-
if (
|
|
6715
|
-
const Se = re(0, (
|
|
6716
|
-
Z(Se),
|
|
6714
|
+
return U.forEach((ve, he) => {
|
|
6715
|
+
const pe = ve?._checkState;
|
|
6716
|
+
if (pe === "indeterminate" || pe === !0) {
|
|
6717
|
+
const Se = re(0, (he + "").split(",").map(Number), te);
|
|
6718
|
+
Z(Se), pe === !0 && oe(Se);
|
|
6717
6719
|
}
|
|
6718
6720
|
}), D;
|
|
6719
6721
|
}
|
|
@@ -6723,27 +6725,27 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6723
6725
|
if ($t.value || v.clearSelected(), o.rowKey) {
|
|
6724
6726
|
const N = new Set(D.map(wt)), Z = "__checkState";
|
|
6725
6727
|
if (!$t.value) {
|
|
6726
|
-
const
|
|
6727
|
-
for (let
|
|
6728
|
-
const
|
|
6729
|
-
if (!N.has(wt(
|
|
6730
|
-
const Se = v.getTableIndexByRecordIndex(
|
|
6728
|
+
const ve = v.records;
|
|
6729
|
+
for (let he = 0; he < ve.length; he++) {
|
|
6730
|
+
const pe = ve[he];
|
|
6731
|
+
if (!N.has(wt(pe))) continue;
|
|
6732
|
+
const Se = v.getTableIndexByRecordIndex(he);
|
|
6731
6733
|
v.selectRow(Se);
|
|
6732
6734
|
break;
|
|
6733
6735
|
}
|
|
6734
6736
|
return;
|
|
6735
6737
|
}
|
|
6736
|
-
const oe = (
|
|
6737
|
-
|
|
6738
|
-
if (Array.isArray(
|
|
6739
|
-
oe(
|
|
6740
|
-
const
|
|
6741
|
-
Se.length ==
|
|
6742
|
-
} else
|
|
6738
|
+
const oe = (ve) => {
|
|
6739
|
+
ve.forEach((he) => {
|
|
6740
|
+
if (Array.isArray(he?.children) && he.children.length > 0) {
|
|
6741
|
+
oe(he.children);
|
|
6742
|
+
const pe = he.children, Se = pe.filter((He) => He?.[Z] === !0), Ae = pe.filter((He) => He?.[Z] === !1);
|
|
6743
|
+
Se.length == pe.length ? he[Z] = !0 : Ae.length == pe.length ? he[Z] = !1 : he[Z] = "indeterminate", he[Z] === "indeterminate" && (he.hierarchyState = "expand");
|
|
6744
|
+
} else he[Z] = !!N.has(wt(he));
|
|
6743
6745
|
});
|
|
6744
6746
|
}, U = v.records;
|
|
6745
|
-
o.isTree ? oe(U) : U.forEach((
|
|
6746
|
-
|
|
6747
|
+
o.isTree ? oe(U) : U.forEach((ve) => {
|
|
6748
|
+
ve[Z] = N.has(wt(ve));
|
|
6747
6749
|
});
|
|
6748
6750
|
const te = Sn();
|
|
6749
6751
|
te.records = U, v.updateOption(te, {
|
|
@@ -6751,7 +6753,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6751
6753
|
clearRowHeightCache: !1
|
|
6752
6754
|
}), o.heightMode === "auto" && (b.value = v.getAllRowsHeight());
|
|
6753
6755
|
const re = v.getAllBodyCells(1);
|
|
6754
|
-
for (let
|
|
6756
|
+
for (let ve = 0; ve < re.length; ve++) re[ve][0].originData[Z] == !0 && v.setCellCheckboxState(0, ve + 1, !0);
|
|
6755
6757
|
v.renderWithRecreateCells();
|
|
6756
6758
|
} else console.warn("Warning: rowKey is not defined. Please set rowKey to enable row selection.");
|
|
6757
6759
|
}, Ln = (D) => {
|
|
@@ -6768,7 +6770,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6768
6770
|
clearColWidthCache: !1,
|
|
6769
6771
|
clearRowHeightCache: !1
|
|
6770
6772
|
}), o.heightMode === "auto" && (b.value = v.getAllRowsHeight()), k.value = 0;
|
|
6771
|
-
},
|
|
6773
|
+
}, De = () => {
|
|
6772
6774
|
v.renderWithRecreateCells();
|
|
6773
6775
|
}, Rn = H(() => o.editConfig.isAddBtn), Dt = H(() => o.editConfig.addBtnText || "添加"), Xt = H(() => o.editConfig.isRemoveBtn), En = H(() => o.editConfig.readonly), $t = H(() => o.isMultiple || Xt.value), Fa = () => {
|
|
6774
6776
|
const D = o.modelValue || [];
|
|
@@ -6857,7 +6859,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6857
6859
|
getRecords: be,
|
|
6858
6860
|
getSelection: Wt,
|
|
6859
6861
|
setSelection: Yt,
|
|
6860
|
-
renderTable:
|
|
6862
|
+
renderTable: De
|
|
6861
6863
|
}), (D, N) => {
|
|
6862
6864
|
const Z = $("j-button"), oe = $("el-space"), U = $("el-pagination");
|
|
6863
6865
|
return S(), O("div", {
|
|
@@ -6928,7 +6930,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6928
6930
|
cursor: te.config?.disabled ? "not-allowed" : "pointer",
|
|
6929
6931
|
opacity: te.config?.disabled ? 0.7 : 1
|
|
6930
6932
|
}),
|
|
6931
|
-
onClick: (re) =>
|
|
6933
|
+
onClick: (re) => Me(te)
|
|
6932
6934
|
}, we(te.label), 13, Lp))), 128))], 36)) : ee("", !0)
|
|
6933
6935
|
], 6);
|
|
6934
6936
|
};
|
|
@@ -6942,7 +6944,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6942
6944
|
}, Up = { class: "j-block j-overflow-y" }, Yp = {
|
|
6943
6945
|
key: 1,
|
|
6944
6946
|
class: "j-dialog-btns"
|
|
6945
|
-
}, Jp = /* @__PURE__ */
|
|
6947
|
+
}, Jp = /* @__PURE__ */ ge({
|
|
6946
6948
|
name: "JDialog",
|
|
6947
6949
|
__name: "index",
|
|
6948
6950
|
props: {
|
|
@@ -7111,29 +7113,29 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7111
7113
|
title: M,
|
|
7112
7114
|
disabled: !0
|
|
7113
7115
|
}))), se = function(M) {
|
|
7114
|
-
a.autoHeight || (p.pageX = M.pageX, p.pageY = M.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup =
|
|
7115
|
-
},
|
|
7116
|
+
a.autoHeight || (p.pageX = M.pageX, p.pageY = M.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = ye, document.onmousemove = W));
|
|
7117
|
+
}, ye = () => {
|
|
7116
7118
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
7117
7119
|
}, W = (M) => {
|
|
7118
7120
|
if (p.isMove) {
|
|
7119
|
-
const ue = M.pageX - p.pageX,
|
|
7120
|
-
let
|
|
7121
|
-
|
|
7121
|
+
const ue = M.pageX - p.pageX, Me = M.pageY - p.pageY;
|
|
7122
|
+
let fe = p._left + ue, Le = p._top + Me;
|
|
7123
|
+
fe + C.value < 0 && (fe = -C.value), typeof document < "u" && document.body && (m.value ? fe + m.value + C.value > document.body.clientWidth && (fe = document.body.clientWidth - m.value - C.value) : fe + _.value + C.value > document.body.clientWidth && (fe = document.body.clientWidth - _.value - C.value)), Le + y.value < 0 && (Le = -y.value), typeof window < "u" && (v.value ? Le + v.value + y.value + 40 > window.innerHeight && (Le = window.innerHeight - v.value - y.value - 40) : Le + w.value + y.value + 40 > window.innerHeight && (Le = window.innerHeight - w.value - y.value - 40)), p.left = fe, p.top = Le;
|
|
7122
7124
|
}
|
|
7123
7125
|
}, G = (M) => {
|
|
7124
|
-
const ue = b.value.offsetLeft,
|
|
7125
|
-
if (M.clientX > ue +
|
|
7126
|
-
else if (ue + 10 > M.clientX && ne + M.clientY >
|
|
7127
|
-
else if (M.clientX > ue +
|
|
7128
|
-
else if (ne + M.clientY >
|
|
7126
|
+
const ue = b.value.offsetLeft, Me = b.value.offsetTop, fe = b.value.clientWidth, Le = b.value.clientHeight, Ye = Le - x.value, ne = b.value.scrollTop;
|
|
7127
|
+
if (M.clientX > ue + fe - 10 && ne + M.clientY > Me + Le - 10 || ne + M.clientY < Me + 5 && ue + 10 > M.clientX) b.value.style.cursor = "se-resize";
|
|
7128
|
+
else if (ue + 10 > M.clientX && ne + M.clientY > Me + Le - 10 || M.clientX > ue + fe - 10 && ne + M.clientY < Me + 5) b.value.style.cursor = "sw-resize";
|
|
7129
|
+
else if (M.clientX > ue + fe - 10 || ue + 10 > M.clientX) b.value.style.cursor = "w-resize";
|
|
7130
|
+
else if (ne + M.clientY > Me + Le - 10 || ne + M.clientY < Me + 5) b.value.style.cursor = "s-resize";
|
|
7129
7131
|
else {
|
|
7130
7132
|
b.value.style.cursor = "default", b.value.onmousedown = null;
|
|
7131
7133
|
return;
|
|
7132
7134
|
}
|
|
7133
7135
|
b.value.onmousedown = (Ee) => {
|
|
7134
7136
|
const { clientX: Be } = Ee, { clientY: Ie } = Ee, Et = p.left + C.value, bt = p.top + y.value;
|
|
7135
|
-
p._left = p.left, p._top = p.top, v.value || (v.value = Ye), m.value || (m.value =
|
|
7136
|
-
Xe.preventDefault(), Be > Et && Be < Et + 10 && (Be > Xe.clientX && (m.value =
|
|
7137
|
+
p._left = p.left, p._top = p.top, v.value || (v.value = Ye), m.value || (m.value = fe), Be > Et + 10 && Be < Et + fe - 10 && Ie > bt + 5 && Ie < bt + 47 || (typeof document < "u" && (document.onmousemove = function(Xe) {
|
|
7138
|
+
Xe.preventDefault(), Be > Et && Be < Et + 10 && (Be > Xe.clientX && (m.value = fe + (Be - Xe.clientX), p.left = p._left - (Be - Xe.clientX)), Be < Xe.clientX && m.value > a.minWidth && (m.value = fe - (Xe.clientX - Be), p.left = p._left + Xe.clientX - Be)), Be > Et + fe - 10 && Be < Et + fe && (Be > Xe.clientX && m.value > a.minWidth && (m.value = fe - (Be - Xe.clientX)), Be < Xe.clientX && typeof document < "u" && document.body && C.value + p.left + m.value < document.body.clientWidth && (m.value = fe + (Xe.clientX - Be))), Ie > bt && Ie < bt + 5 && (Ie > Xe.clientY && (v.value = Ye + Ie - Xe.clientY, p.top = p._top - (Ie - Xe.clientY)), Ie < Xe.clientY && v.value > a.minHeight && (v.value = Ye - (Xe.clientY - Ie), p.top = p._top + Xe.clientY - Ie)), ne + Ie > bt + Ye + 38 && ne + Ie < bt + Ye + 48 && (Ie > Xe.clientY && v.value > a.minHeight && (v.value = Ye - (Ie - Xe.clientY)), Ie < Xe.clientY && typeof window < "u" && y.value + p.top + v.value + 48 < window.innerHeight && (v.value = Ye + Xe.clientY - Ie));
|
|
7137
7139
|
}), typeof document < "u" && (document.onmouseup = function() {
|
|
7138
7140
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
7139
7141
|
}));
|
|
@@ -7145,7 +7147,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7145
7147
|
showLoading: k,
|
|
7146
7148
|
hideLoading: R
|
|
7147
7149
|
}), (M, ue) => {
|
|
7148
|
-
const
|
|
7150
|
+
const Me = $("j-button"), fe = $("el-space"), Le = $("el-step"), Ye = $("el-steps"), ne = $("el-dialog");
|
|
7149
7151
|
return S(), F(ne, {
|
|
7150
7152
|
modelValue: r.value,
|
|
7151
7153
|
"onUpdate:modelValue": ue[0] || (ue[0] = (Ee) => r.value = Ee),
|
|
@@ -7173,11 +7175,11 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7173
7175
|
class: "j-dialog-header-left",
|
|
7174
7176
|
title: Y(i)(e.title || ""),
|
|
7175
7177
|
style: le({ cursor: e.autoHeight ? "" : "move" })
|
|
7176
|
-
}, [B("span", null, we(Y(i)(e.title || "")), 1), e.subtitle ? (S(), O("span", Np, [(S(), F(Ta(e.subtitle())))])) : ee("", !0)], 12, Vp), e.showCloseBtn ? (S(), F(
|
|
7178
|
+
}, [B("span", null, we(Y(i)(e.title || "")), 1), e.subtitle ? (S(), O("span", Np, [(S(), F(Ta(e.subtitle())))])) : ee("", !0)], 12, Vp), e.showCloseBtn ? (S(), F(fe, {
|
|
7177
7179
|
key: 0,
|
|
7178
7180
|
size: 0
|
|
7179
7181
|
}, {
|
|
7180
|
-
default: J(() => [X(
|
|
7182
|
+
default: J(() => [X(Me, {
|
|
7181
7183
|
type: "text",
|
|
7182
7184
|
icon: "mdi:close",
|
|
7183
7185
|
onClick: T
|
|
@@ -7200,23 +7202,23 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7200
7202
|
space: 160,
|
|
7201
7203
|
"finish-status": "success"
|
|
7202
7204
|
}, {
|
|
7203
|
-
default: J(() => [(S(!0), O(ke, null, Oe(q.value, (Ee, Be) => (S(), F(
|
|
7205
|
+
default: J(() => [(S(!0), O(ke, null, Oe(q.value, (Ee, Be) => (S(), F(Le, {
|
|
7204
7206
|
key: Be,
|
|
7205
7207
|
title: Y(i)(Ee.title)
|
|
7206
7208
|
}, null, 8, ["title"]))), 128))]),
|
|
7207
7209
|
_: 1
|
|
7208
7210
|
}, 8, ["active"])], 4)])) : ee("", !0),
|
|
7209
7211
|
B("div", Up, [Ke(M.$slots, "default")]),
|
|
7210
|
-
e.hasBtns ? (S(), O("div", Yp, [X(
|
|
7212
|
+
e.hasBtns ? (S(), O("div", Yp, [X(fe, { size: 8 }, {
|
|
7211
7213
|
default: J(() => [
|
|
7212
|
-
e.isStep ? (S(), F(
|
|
7214
|
+
e.isStep ? (S(), F(Me, {
|
|
7213
7215
|
key: 0,
|
|
7214
7216
|
size: "mini",
|
|
7215
7217
|
disabled: d.value,
|
|
7216
7218
|
label: Y(i)("上一步"),
|
|
7217
7219
|
onClick: I
|
|
7218
7220
|
}, null, 8, ["disabled", "label"])) : ee("", !0),
|
|
7219
|
-
e.isStep ? (S(), F(
|
|
7221
|
+
e.isStep ? (S(), F(Me, {
|
|
7220
7222
|
key: 1,
|
|
7221
7223
|
size: "mini",
|
|
7222
7224
|
disabled: f.value,
|
|
@@ -7228,18 +7230,18 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7228
7230
|
"loading",
|
|
7229
7231
|
"label"
|
|
7230
7232
|
])) : ee("", !0),
|
|
7231
|
-
!e.isStep && e.showCloseBtn ? (S(), F(
|
|
7233
|
+
!e.isStep && e.showCloseBtn ? (S(), F(Me, {
|
|
7232
7234
|
key: 2,
|
|
7233
7235
|
size: "mini",
|
|
7234
7236
|
label: Y(i)("取消"),
|
|
7235
7237
|
onClick: T
|
|
7236
7238
|
}, null, 8, ["label"])) : ee("", !0),
|
|
7237
|
-
(S(!0), O(ke, null, Oe(e.buttons, (Ee) => (S(), F(
|
|
7239
|
+
(S(!0), O(ke, null, Oe(e.buttons, (Ee) => (S(), F(Me, We({ ref_for: !0 }, Ee.config, {
|
|
7238
7240
|
key: Ee.id,
|
|
7239
7241
|
label: Ee.label,
|
|
7240
7242
|
onClick: (Be) => Q(Ee)
|
|
7241
7243
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
7242
|
-
e.hasSaveBtn ? (S(), F(
|
|
7244
|
+
e.hasSaveBtn ? (S(), F(Me, {
|
|
7243
7245
|
key: 3,
|
|
7244
7246
|
size: "mini",
|
|
7245
7247
|
type: "primary",
|
|
@@ -7269,7 +7271,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7269
7271
|
height: "28px",
|
|
7270
7272
|
"line-height": "32px",
|
|
7271
7273
|
"margin-left": "8px"
|
|
7272
|
-
} }, ng = { class: "j-dialog-full-header-right" }, ag = { class: "j-dialog-full-body" }, og = /* @__PURE__ */
|
|
7274
|
+
} }, ng = { class: "j-dialog-full-header-right" }, ag = { class: "j-dialog-full-body" }, og = /* @__PURE__ */ ge({
|
|
7273
7275
|
name: "JDialogFull",
|
|
7274
7276
|
__name: "index",
|
|
7275
7277
|
props: {
|
|
@@ -7401,7 +7403,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7401
7403
|
const L = $("el-step"), I = $("el-steps"), j = $("j-button"), E = $("el-space"), V = $("el-divider"), q = $("el-dialog"), se = Bo("loading");
|
|
7402
7404
|
return S(), F(q, {
|
|
7403
7405
|
modelValue: l.value,
|
|
7404
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
7406
|
+
"onUpdate:modelValue": P[0] || (P[0] = (ye) => l.value = ye),
|
|
7405
7407
|
class: "j-dialog-full",
|
|
7406
7408
|
width: "100%",
|
|
7407
7409
|
"append-to-body": !0,
|
|
@@ -7434,9 +7436,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7434
7436
|
space: 160,
|
|
7435
7437
|
"finish-status": "success"
|
|
7436
7438
|
}, {
|
|
7437
|
-
default: J(() => [(S(!0), O(ke, null, Oe(R.value, (
|
|
7439
|
+
default: J(() => [(S(!0), O(ke, null, Oe(R.value, (ye, W) => (S(), F(L, {
|
|
7438
7440
|
key: W,
|
|
7439
|
-
title: Y(r)(
|
|
7441
|
+
title: Y(r)(ye.title)
|
|
7440
7442
|
}, null, 8, ["title"]))), 128))]),
|
|
7441
7443
|
_: 1
|
|
7442
7444
|
}, 8, ["active"])) : ee("", !0)], 4),
|
|
@@ -7463,12 +7465,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7463
7465
|
"loading",
|
|
7464
7466
|
"label"
|
|
7465
7467
|
])) : ee("", !0),
|
|
7466
|
-
(S(!0), O(ke, null, Oe(e.buttons, (
|
|
7468
|
+
(S(!0), O(ke, null, Oe(e.buttons, (ye) => (S(), O(ke, { key: ye.id }, [ye.config?.display !== !1 ? (S(), F(j, We({
|
|
7467
7469
|
key: 0,
|
|
7468
7470
|
ref_for: !0
|
|
7469
|
-
},
|
|
7470
|
-
label:
|
|
7471
|
-
onClick: (W) => T(
|
|
7471
|
+
}, ye.config, {
|
|
7472
|
+
label: ye.label,
|
|
7473
|
+
onClick: (W) => T(ye)
|
|
7472
7474
|
}), null, 16, ["label", "onClick"])) : ee("", !0)], 64))), 128)),
|
|
7473
7475
|
e.hasSaveBtn ? (S(), F(j, {
|
|
7474
7476
|
key: 2,
|
|
@@ -7520,7 +7522,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7520
7522
|
}, pg = {
|
|
7521
7523
|
key: 0,
|
|
7522
7524
|
class: "j-drawer-steps"
|
|
7523
|
-
}, gg = /* @__PURE__ */
|
|
7525
|
+
}, gg = /* @__PURE__ */ ge({
|
|
7524
7526
|
name: "JDrawer",
|
|
7525
7527
|
__name: "drawer",
|
|
7526
7528
|
props: {
|
|
@@ -7670,7 +7672,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7670
7672
|
const L = $("el-input"), I = $("j-button"), j = $("el-space"), E = $("el-step"), V = $("el-steps"), q = $("el-drawer"), se = Bo("loading");
|
|
7671
7673
|
return S(), F(q, {
|
|
7672
7674
|
modelValue: s.value,
|
|
7673
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
7675
|
+
"onUpdate:modelValue": P[0] || (P[0] = (ye) => s.value = ye),
|
|
7674
7676
|
class: "j-drawer",
|
|
7675
7677
|
"append-to-body": !0,
|
|
7676
7678
|
direction: e.direction,
|
|
@@ -7723,9 +7725,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7723
7725
|
label: Y(o)("取消"),
|
|
7724
7726
|
onClick: p
|
|
7725
7727
|
}, null, 8, ["label"])) : ee("", !0),
|
|
7726
|
-
(S(!0), O(ke, null, Oe(e.buttons, (
|
|
7727
|
-
label:
|
|
7728
|
-
onClick: (W) => g(
|
|
7728
|
+
(S(!0), O(ke, null, Oe(e.buttons, (ye) => (S(), F(I, We({ key: ye.id }, { ref_for: !0 }, ye.config, {
|
|
7729
|
+
label: ye.label,
|
|
7730
|
+
onClick: (W) => g(ye)
|
|
7729
7731
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
7730
7732
|
e.hasSaveBtn ? (S(), F(I, {
|
|
7731
7733
|
key: 3,
|
|
@@ -7753,9 +7755,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7753
7755
|
space: 160,
|
|
7754
7756
|
"finish-status": "success"
|
|
7755
7757
|
}, {
|
|
7756
|
-
default: J(() => [(S(!0), O(ke, null, Oe(T.value, (
|
|
7758
|
+
default: J(() => [(S(!0), O(ke, null, Oe(T.value, (ye, W) => (S(), F(E, {
|
|
7757
7759
|
key: W,
|
|
7758
|
-
title: Y(o)(
|
|
7760
|
+
title: Y(o)(ye.title)
|
|
7759
7761
|
}, null, 8, ["title"]))), 128))]),
|
|
7760
7762
|
_: 1
|
|
7761
7763
|
}, 8, ["active"])], 4)])) : ee("", !0)
|
|
@@ -7771,7 +7773,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7771
7773
|
]);
|
|
7772
7774
|
};
|
|
7773
7775
|
}
|
|
7774
|
-
}), vg = gg, yg = Ce(vg), mg = /* @__PURE__ */
|
|
7776
|
+
}), vg = gg, yg = Ce(vg), mg = /* @__PURE__ */ ge({
|
|
7775
7777
|
name: "JLayer",
|
|
7776
7778
|
__name: "layer",
|
|
7777
7779
|
props: {
|
|
@@ -7976,7 +7978,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7976
7978
|
]));
|
|
7977
7979
|
};
|
|
7978
7980
|
}
|
|
7979
|
-
}), bg = mg, wg = Ce(bg), _g = /* @__PURE__ */
|
|
7981
|
+
}), bg = mg, wg = Ce(bg), _g = /* @__PURE__ */ ge({
|
|
7980
7982
|
name: "JInputTag",
|
|
7981
7983
|
__name: "input-tag",
|
|
7982
7984
|
props: {
|
|
@@ -8066,7 +8068,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8066
8068
|
]);
|
|
8067
8069
|
};
|
|
8068
8070
|
}
|
|
8069
|
-
}), xg = _g, Cg = Ce(xg), Sg = /* @__PURE__ */
|
|
8071
|
+
}), xg = _g, Cg = Ce(xg), Sg = /* @__PURE__ */ ge({
|
|
8070
8072
|
name: "JRate",
|
|
8071
8073
|
__name: "rate",
|
|
8072
8074
|
props: {
|
|
@@ -8134,7 +8136,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8134
8136
|
]);
|
|
8135
8137
|
};
|
|
8136
8138
|
}
|
|
8137
|
-
}), kg = Sg, Rg = Ce(kg), Eg = /* @__PURE__ */
|
|
8139
|
+
}), kg = Sg, Rg = Ce(kg), Eg = /* @__PURE__ */ ge({
|
|
8138
8140
|
name: "JSlider",
|
|
8139
8141
|
__name: "slider",
|
|
8140
8142
|
props: {
|
|
@@ -8266,7 +8268,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8266
8268
|
height: "72px",
|
|
8267
8269
|
overflow: "hidden"
|
|
8268
8270
|
}
|
|
8269
|
-
}, Pg = ["src"], Bg = { class: "j-upload-dragItem-content" }, Hg = { class: "j-upload-dragItem-mask" }, Og = ["src"], Ig = { class: "j-upload-imgItem-mask" }, zg = { class: "j-upload-item-content" }, Lg = /* @__PURE__ */
|
|
8271
|
+
}, Pg = ["src"], Bg = { class: "j-upload-dragItem-content" }, Hg = { class: "j-upload-dragItem-mask" }, Og = ["src"], Ig = { class: "j-upload-imgItem-mask" }, zg = { class: "j-upload-item-content" }, Lg = /* @__PURE__ */ ge({
|
|
8270
8272
|
__name: "list",
|
|
8271
8273
|
props: {
|
|
8272
8274
|
isUploadImg: {
|
|
@@ -8454,7 +8456,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8454
8456
|
}, Wg = ["src"], Ug = {
|
|
8455
8457
|
key: 1,
|
|
8456
8458
|
class: "j-block"
|
|
8457
|
-
}, Yg = ["src"], Jg = /* @__PURE__ */
|
|
8459
|
+
}, Yg = ["src"], Jg = /* @__PURE__ */ ge({
|
|
8458
8460
|
name: "JUpload",
|
|
8459
8461
|
__name: "upload",
|
|
8460
8462
|
props: {
|
|
@@ -8675,15 +8677,15 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8675
8677
|
});
|
|
8676
8678
|
}, q = async (ne) => {
|
|
8677
8679
|
await E(ne) && V(ne);
|
|
8678
|
-
}, se = z(!1),
|
|
8680
|
+
}, se = z(!1), ye = z(""), W = z(""), G = z(!1), Q = z(!1);
|
|
8679
8681
|
let M = null;
|
|
8680
|
-
const ue = z(ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD")),
|
|
8682
|
+
const ue = z(ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Me = (ne) => {
|
|
8681
8683
|
if (ne.isPreview === !1 && !n.isUploadImg) {
|
|
8682
8684
|
o && o("无权限预览!");
|
|
8683
8685
|
return;
|
|
8684
8686
|
}
|
|
8685
8687
|
const Ee = ne.name.split(".")[ne.name.split(".").length - 1];
|
|
8686
|
-
switch (M = ne, se.value = !1,
|
|
8688
|
+
switch (M = ne, se.value = !1, ye.value = ne.name, Ee.toLowerCase()) {
|
|
8687
8689
|
case "jpg":
|
|
8688
8690
|
case "gif":
|
|
8689
8691
|
case "png":
|
|
@@ -8701,7 +8703,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8701
8703
|
o && o("当前文件还没上传成功,不支持预览!");
|
|
8702
8704
|
return;
|
|
8703
8705
|
}
|
|
8704
|
-
if (W.value =
|
|
8706
|
+
if (W.value = fe(ne), W.value === "") {
|
|
8705
8707
|
o && o("当前文件不支持预览!");
|
|
8706
8708
|
return;
|
|
8707
8709
|
}
|
|
@@ -8709,12 +8711,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8709
8711
|
break;
|
|
8710
8712
|
}
|
|
8711
8713
|
ue.value = ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
8712
|
-
},
|
|
8714
|
+
}, fe = (ne) => {
|
|
8713
8715
|
const Ee = ne.response?.fileId || ne.id;
|
|
8714
8716
|
if (!c) return "";
|
|
8715
8717
|
const Be = ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss") + "|" + Ee;
|
|
8716
8718
|
return `${c}/system/annexesfile/preview/${fh.createAesEncryption({ key: "jianda" }).encrypt(Be).replace(/\//g, "|")}?token=${s?.value}`;
|
|
8717
|
-
},
|
|
8719
|
+
}, Le = () => {
|
|
8718
8720
|
M.isDown === !1 && o && o("无权限下载!"), Mg(`${c}/system/annexesfile/${M.response?.fileId || M.id}?token=${s?.value}`);
|
|
8719
8721
|
}, Ye = () => {
|
|
8720
8722
|
if (n.limit !== -1 && n.limit <= m.value.length)
|
|
@@ -8737,7 +8739,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8737
8739
|
"file-list": m.value,
|
|
8738
8740
|
"before-remove": E,
|
|
8739
8741
|
"on-remove": V,
|
|
8740
|
-
"on-preview":
|
|
8742
|
+
"on-preview": Me,
|
|
8741
8743
|
"on-exceed": Ye
|
|
8742
8744
|
}, {
|
|
8743
8745
|
default: J(() => [e.isUploadImg && !e.isLayer && !e.readonly ? (S(), O("div", $g, [X(Be, { icon: "mdi:add" }), B("div", Fg, we(Y(l)(e.placeholder)), 1)])) : e.isLayer && e.showFileList && m.value.length > 0 && !G.value ? (S(), F(Et, {
|
|
@@ -8748,7 +8750,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8748
8750
|
content: J(() => [X(Nl, {
|
|
8749
8751
|
style: le({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
8750
8752
|
list: m.value,
|
|
8751
|
-
"preview-file":
|
|
8753
|
+
"preview-file": Me,
|
|
8752
8754
|
"delete-file": q,
|
|
8753
8755
|
"is-upload-img": e.isUploadImg,
|
|
8754
8756
|
readonly: e.readonly
|
|
@@ -8796,7 +8798,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8796
8798
|
key: 1,
|
|
8797
8799
|
style: { "margin-top": "4px" },
|
|
8798
8800
|
list: m.value,
|
|
8799
|
-
"preview-file":
|
|
8801
|
+
"preview-file": Me,
|
|
8800
8802
|
"delete-file": q,
|
|
8801
8803
|
readonly: e.readonly,
|
|
8802
8804
|
"is-show-success-icon": e.isShowSuccessIcon
|
|
@@ -8809,10 +8811,10 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8809
8811
|
visible: G.value,
|
|
8810
8812
|
"onUpdate:visible": Ee[1] || (Ee[1] = (Bt) => G.value = Bt),
|
|
8811
8813
|
"btn-text": "下载",
|
|
8812
|
-
title: `${Y(l)("文件预览")}【${
|
|
8814
|
+
title: `${Y(l)("文件预览")}【${ye.value}】`,
|
|
8813
8815
|
"destroy-on-close": !0,
|
|
8814
8816
|
"has-btns": !!Y(c),
|
|
8815
|
-
onOk:
|
|
8817
|
+
onOk: Le
|
|
8816
8818
|
}, {
|
|
8817
8819
|
default: J(() => [se.value && W.value ? (S(), O("div", Ng, [B("img", {
|
|
8818
8820
|
width: "100%",
|
|
@@ -8838,7 +8840,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8838
8840
|
]);
|
|
8839
8841
|
};
|
|
8840
8842
|
}
|
|
8841
|
-
}), Gg = Jg, Kg = Ce(Gg), qg = /* @__PURE__ */
|
|
8843
|
+
}), Gg = Jg, Kg = Ce(Gg), qg = /* @__PURE__ */ ge({
|
|
8842
8844
|
name: "JEcharts",
|
|
8843
8845
|
__name: "echarts",
|
|
8844
8846
|
props: {
|
|
@@ -8905,7 +8907,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8905
8907
|
}, Zg = /* @__PURE__ */ Xg(qg, [["__scopeId", "data-v-37f9a80b"]]), Qg = Ce(Zg), ev = ["innerHTML"], tv = {
|
|
8906
8908
|
key: 1,
|
|
8907
8909
|
class: "j-barcode-error"
|
|
8908
|
-
}, nv = /* @__PURE__ */
|
|
8910
|
+
}, nv = /* @__PURE__ */ ge({
|
|
8909
8911
|
name: "JBarcode",
|
|
8910
8912
|
inheritAttrs: !1,
|
|
8911
8913
|
__name: "barcode",
|
|
@@ -9213,7 +9215,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9213
9215
|
innerHTML: n.value
|
|
9214
9216
|
}, null, 8, ev)) : ee("", !0), a.value ? (S(), O("div", tv, we(a.value), 1)) : ee("", !0)], 64));
|
|
9215
9217
|
}
|
|
9216
|
-
}), av = nv, ov = Ce(av), iv = /* @__PURE__ */
|
|
9218
|
+
}), av = nv, ov = Ce(av), iv = /* @__PURE__ */ ge({
|
|
9217
9219
|
name: "JCount",
|
|
9218
9220
|
__name: "count",
|
|
9219
9221
|
props: {
|
|
@@ -9413,7 +9415,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9413
9415
|
} }, Sv = { class: "j-input-count-funs-content" }, kv = { class: "j-input-count-fundes" }, Rv = { style: {
|
|
9414
9416
|
"font-size": "14px",
|
|
9415
9417
|
"font-weight": "300"
|
|
9416
|
-
} }, Ev = /* @__PURE__ */
|
|
9418
|
+
} }, Ev = /* @__PURE__ */ ge({
|
|
9417
9419
|
name: "JInputCount",
|
|
9418
9420
|
__name: "input-count",
|
|
9419
9421
|
props: {
|
|
@@ -9873,7 +9875,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9873
9875
|
}, 8, ["visible", "title"])]);
|
|
9874
9876
|
};
|
|
9875
9877
|
}
|
|
9876
|
-
}), Tv = Ev, Av = Ce(Tv), Mv = { key: 0 }, jv = /* @__PURE__ */
|
|
9878
|
+
}), Tv = Ev, Av = Ce(Tv), Mv = { key: 0 }, jv = /* @__PURE__ */ ge({
|
|
9877
9879
|
name: "JCountUp",
|
|
9878
9880
|
__name: "count-up",
|
|
9879
9881
|
props: {
|
|
@@ -9939,14 +9941,14 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9939
9941
|
color: "var(--j-color-text)",
|
|
9940
9942
|
"font-size": "14px",
|
|
9941
9943
|
"font-weight": "bold"
|
|
9942
|
-
} }, zv = { class: "j-data-panel-header-right" }, Lv = { class: "j-data-panel-body" }, Dv = /* @__PURE__ */
|
|
9944
|
+
} }, zv = { class: "j-data-panel-header-right" }, Lv = { class: "j-data-panel-body" }, Dv = /* @__PURE__ */ ge({
|
|
9943
9945
|
name: "JDataPanel",
|
|
9944
9946
|
__name: "data-panel",
|
|
9945
9947
|
props: { title: { default: void 0 } },
|
|
9946
9948
|
setup(e) {
|
|
9947
9949
|
return (t, n) => (S(), O("div", Hv, [e.title ? (S(), O("div", Ov, [B("div", Iv, we(e.title), 1), B("div", zv, [Ke(t.$slots, "titleRight")])])) : ee("", !0), B("div", Lv, [Ke(t.$slots, "default")])]));
|
|
9948
9950
|
}
|
|
9949
|
-
}), $v = Dv, Fv = Ce($v), Vv = { class: "j-divider-content" }, Nv = /* @__PURE__ */
|
|
9951
|
+
}), $v = Dv, Fv = Ce($v), Vv = { class: "j-divider-content" }, Nv = /* @__PURE__ */ ge({
|
|
9950
9952
|
name: "JDivider",
|
|
9951
9953
|
__name: "divider",
|
|
9952
9954
|
props: {
|
|
@@ -9976,7 +9978,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9976
9978
|
}, null, 4)
|
|
9977
9979
|
], 6));
|
|
9978
9980
|
}
|
|
9979
|
-
}), Wv = Nv, Uv = Ce(Wv), Yv = { class: "j-hpanel" }, Jv = { class: "j-hpanel-main" }, Gv = /* @__PURE__ */
|
|
9981
|
+
}), Wv = Nv, Uv = Ce(Wv), Yv = { class: "j-hpanel" }, Jv = { class: "j-hpanel-main" }, Gv = /* @__PURE__ */ ge({
|
|
9980
9982
|
name: "JHpanel",
|
|
9981
9983
|
__name: "hpanel",
|
|
9982
9984
|
setup(e) {
|
|
@@ -9986,7 +9988,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9986
9988
|
Ke(t.$slots, "right")
|
|
9987
9989
|
]));
|
|
9988
9990
|
}
|
|
9989
|
-
}), Kv = Gv, qv = Ce(Kv), Xv = { class: "j-vpanel" }, Zv = { class: "j-vpanel-main" }, Qv = /* @__PURE__ */
|
|
9991
|
+
}), Kv = Gv, qv = Ce(Kv), Xv = { class: "j-vpanel" }, Zv = { class: "j-vpanel-main" }, Qv = /* @__PURE__ */ ge({
|
|
9990
9992
|
name: "JVpanel",
|
|
9991
9993
|
__name: "vpanel",
|
|
9992
9994
|
setup(e) {
|
|
@@ -9996,7 +9998,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
9996
9998
|
Ke(t.$slots, "bottom")
|
|
9997
9999
|
]));
|
|
9998
10000
|
}
|
|
9999
|
-
}), ey = Qv, ty = Ce(ey), ny = /* @__PURE__ */
|
|
10001
|
+
}), ey = Qv, ty = Ce(ey), ny = /* @__PURE__ */ ge({
|
|
10000
10002
|
name: "JInputButton",
|
|
10001
10003
|
__name: "input-button",
|
|
10002
10004
|
props: {
|
|
@@ -10061,7 +10063,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10061
10063
|
])], 64);
|
|
10062
10064
|
};
|
|
10063
10065
|
}
|
|
10064
|
-
}), ay = ny, oy = Ce(ay), iy = /* @__PURE__ */
|
|
10066
|
+
}), ay = ny, oy = Ce(ay), iy = /* @__PURE__ */ ge({
|
|
10065
10067
|
name: "JInputCode",
|
|
10066
10068
|
__name: "input-code",
|
|
10067
10069
|
props: {
|
|
@@ -10147,7 +10149,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10147
10149
|
]);
|
|
10148
10150
|
};
|
|
10149
10151
|
}
|
|
10150
|
-
}), ry = iy, ly = Ce(ry), sy = /* @__PURE__ */
|
|
10152
|
+
}), ry = iy, ly = Ce(ry), sy = /* @__PURE__ */ ge({
|
|
10151
10153
|
name: "JInputColor",
|
|
10152
10154
|
__name: "input-color",
|
|
10153
10155
|
props: {
|
|
@@ -10307,7 +10309,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10307
10309
|
])], 2);
|
|
10308
10310
|
};
|
|
10309
10311
|
}
|
|
10310
|
-
}), cy = sy, uy = Ce(cy), dy = /* @__PURE__ */
|
|
10312
|
+
}), cy = sy, uy = Ce(cy), dy = /* @__PURE__ */ ge({
|
|
10311
10313
|
name: "JTitle",
|
|
10312
10314
|
__name: "title",
|
|
10313
10315
|
props: {
|
|
@@ -10341,7 +10343,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10341
10343
|
}, Cy = { class: "wrapper4" }, Sy = { class: "wrapper4-center" }, ky = {
|
|
10342
10344
|
key: 6,
|
|
10343
10345
|
class: "j-decorated-title-wrapper5"
|
|
10344
|
-
}, Ry = { class: "wrapper5" }, Ey = { class: "wrapper5-left" }, Ty = { class: "wrapper5-right" }, Ay = /* @__PURE__ */
|
|
10346
|
+
}, Ry = { class: "wrapper5" }, Ey = { class: "wrapper5-left" }, Ty = { class: "wrapper5-right" }, Ay = /* @__PURE__ */ ge({
|
|
10345
10347
|
name: "JDecoratedTitle",
|
|
10346
10348
|
__name: "decorated-title",
|
|
10347
10349
|
props: {
|
|
@@ -10495,7 +10497,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10495
10497
|
}, we(Y(t)(e.title || "")), 5))], 6);
|
|
10496
10498
|
};
|
|
10497
10499
|
}
|
|
10498
|
-
}), My = Ay, jy = Ce(My), Py = { class: "j-block" }, By = { class: "j-input-decorated-title-wrapper mb-0px" }, Hy = /* @__PURE__ */
|
|
10500
|
+
}), My = Ay, jy = Ce(My), Py = { class: "j-block" }, By = { class: "j-input-decorated-title-wrapper mb-0px" }, Hy = /* @__PURE__ */ ge({
|
|
10499
10501
|
name: "JInputDecoratedTitle",
|
|
10500
10502
|
__name: "input-decorated-title",
|
|
10501
10503
|
props: {
|
|
@@ -10577,7 +10579,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10577
10579
|
}, 512)]);
|
|
10578
10580
|
};
|
|
10579
10581
|
}
|
|
10580
|
-
}), Oy = Hy, Iy = Ce(Oy), zy = /* @__PURE__ */
|
|
10582
|
+
}), Oy = Hy, Iy = Ce(Oy), zy = /* @__PURE__ */ ge({
|
|
10581
10583
|
name: "JCodeMirror",
|
|
10582
10584
|
__name: "code-mirror",
|
|
10583
10585
|
props: {
|
|
@@ -10772,7 +10774,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10772
10774
|
style: le({ height: e.height ? `${e.height}px` : "" })
|
|
10773
10775
|
}, null, 4));
|
|
10774
10776
|
}
|
|
10775
|
-
}), Ly = zy, Dy = Ce(Ly), $y = /* @__PURE__ */
|
|
10777
|
+
}), Ly = zy, Dy = Ce(Ly), $y = /* @__PURE__ */ ge({
|
|
10776
10778
|
__name: "slider-captcha-action",
|
|
10777
10779
|
props: {
|
|
10778
10780
|
actionStyle: {},
|
|
@@ -10817,7 +10819,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10817
10819
|
}))], 4);
|
|
10818
10820
|
};
|
|
10819
10821
|
}
|
|
10820
|
-
}), Fy = $y, Vy = /* @__PURE__ */
|
|
10822
|
+
}), Fy = $y, Vy = /* @__PURE__ */ ge({
|
|
10821
10823
|
__name: "slider-captcha-bar",
|
|
10822
10824
|
props: {
|
|
10823
10825
|
barStyle: {},
|
|
@@ -10846,7 +10848,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10846
10848
|
style: le(i.value)
|
|
10847
10849
|
}, null, 4));
|
|
10848
10850
|
}
|
|
10849
|
-
}), Ny = Vy, Wy = /* @__PURE__ */
|
|
10851
|
+
}), Ny = Vy, Wy = /* @__PURE__ */ ge({
|
|
10850
10852
|
__name: "slider-captcha-content",
|
|
10851
10853
|
props: {
|
|
10852
10854
|
contentStyle: {
|
|
@@ -10886,7 +10888,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
10886
10888
|
class: "j-spine-text"
|
|
10887
10889
|
}, we(e.isPassing ? "验证成功" : "请按住滑块拖动"), 5)], 6));
|
|
10888
10890
|
}
|
|
10889
|
-
}), Uy = Wy, Yy = /* @__PURE__ */
|
|
10891
|
+
}), Uy = Wy, Yy = /* @__PURE__ */ ge({
|
|
10890
10892
|
name: "JSliderCaptcha",
|
|
10891
10893
|
__name: "slider-captcha",
|
|
10892
10894
|
props: /* @__PURE__ */ Eo({
|
|
@@ -11015,7 +11017,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11015
11017
|
])
|
|
11016
11018
|
], 38));
|
|
11017
11019
|
}
|
|
11018
|
-
}), Jy = Yy, Gy = Ce(Jy), Ky = /* @__PURE__ */
|
|
11020
|
+
}), Jy = Yy, Gy = Ce(Jy), Ky = /* @__PURE__ */ ge({
|
|
11019
11021
|
name: "JSubMenu",
|
|
11020
11022
|
__name: "index",
|
|
11021
11023
|
props: { pId: { type: String } },
|
|
@@ -11044,7 +11046,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11044
11046
|
}), qy = Ky, Xy = { class: "j-menu-item-label" }, Zy = { class: "j-menu-item-label" }, Qy = {
|
|
11045
11047
|
key: 1,
|
|
11046
11048
|
class: /* @__PURE__ */ Ne(["j-menu-item-arrow", "sub"])
|
|
11047
|
-
}, em = { class: "j-menu-item-label" }, tm = /* @__PURE__ */
|
|
11049
|
+
}, em = { class: "j-menu-item-label" }, tm = /* @__PURE__ */ ge({
|
|
11048
11050
|
name: "JMenuItem",
|
|
11049
11051
|
__name: "index",
|
|
11050
11052
|
props: {
|
|
@@ -11160,7 +11162,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11160
11162
|
], 6)], 2));
|
|
11161
11163
|
};
|
|
11162
11164
|
}
|
|
11163
|
-
}), Li = tm, nm = /* @__PURE__ */
|
|
11165
|
+
}), Li = tm, nm = /* @__PURE__ */ ge({
|
|
11164
11166
|
name: "JIMenu",
|
|
11165
11167
|
__name: "index",
|
|
11166
11168
|
props: {
|
|
@@ -11195,7 +11197,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11195
11197
|
"class"
|
|
11196
11198
|
]))), 128))], 16)], 16));
|
|
11197
11199
|
}
|
|
11198
|
-
}), am = nm, om = /* @__PURE__ */
|
|
11200
|
+
}), am = nm, om = /* @__PURE__ */ ge({
|
|
11199
11201
|
name: "JHMenu",
|
|
11200
11202
|
__name: "index",
|
|
11201
11203
|
props: { menuList: {
|
|
@@ -11255,7 +11257,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11255
11257
|
onClick: u
|
|
11256
11258
|
}, null, 8, ["parent-actives", "item"]))), 128))], 2));
|
|
11257
11259
|
}
|
|
11258
|
-
}), im = om, rm = /* @__PURE__ */
|
|
11260
|
+
}), im = om, rm = /* @__PURE__ */ ge({
|
|
11259
11261
|
name: "JVMenu",
|
|
11260
11262
|
__name: "index",
|
|
11261
11263
|
props: { menuList: {
|
|
@@ -11284,7 +11286,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11284
11286
|
onClick: s
|
|
11285
11287
|
}, null, 8, ["parent-actives", "item"]))), 128))], 16)], 16));
|
|
11286
11288
|
}
|
|
11287
|
-
}), lm = rm, sm = /* @__PURE__ */
|
|
11289
|
+
}), lm = rm, sm = /* @__PURE__ */ ge({
|
|
11288
11290
|
name: "JMenu",
|
|
11289
11291
|
__name: "menu",
|
|
11290
11292
|
props: {
|
|
@@ -11407,7 +11409,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11407
11409
|
}), cm = sm, um = Ce(cm), dm = { class: "j-keyword-panel" }, fm = { key: 0 }, hm = {
|
|
11408
11410
|
key: 1,
|
|
11409
11411
|
class: "columns-wrapper"
|
|
11410
|
-
}, pm = /* @__PURE__ */
|
|
11412
|
+
}, pm = /* @__PURE__ */ ge({
|
|
11411
11413
|
name: "JKeywordPanel",
|
|
11412
11414
|
__name: "keyword-panel",
|
|
11413
11415
|
props: /* @__PURE__ */ Eo({ columns: {
|
|
@@ -11472,7 +11474,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11472
11474
|
}), gm = pm, vm = {
|
|
11473
11475
|
key: 0,
|
|
11474
11476
|
class: "title"
|
|
11475
|
-
}, ym = { class: "content" }, mm = { class: "relation" }, bm = { style: { width: "72px" } }, wm = { class: "btn-wrapper" }, _m = { class: "field-wrapper" }, xm = { class: "buttons" }, Cm = /* @__PURE__ */
|
|
11477
|
+
}, ym = { class: "content" }, mm = { class: "relation" }, bm = { style: { width: "72px" } }, wm = { class: "btn-wrapper" }, _m = { class: "field-wrapper" }, xm = { class: "buttons" }, Cm = /* @__PURE__ */ ge({
|
|
11476
11478
|
name: "JFilterPanel",
|
|
11477
11479
|
__name: "filter-panel",
|
|
11478
11480
|
props: /* @__PURE__ */ Eo({
|
|
@@ -11858,7 +11860,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11858
11860
|
], 2);
|
|
11859
11861
|
};
|
|
11860
11862
|
}
|
|
11861
|
-
}), Wl = Cm, Sm = { class: "j-order-panel" }, km = { class: "content" }, Rm = { class: "btn-wrapper" }, Em = { class: "field-wrapper" }, Tm = { class: "buttons" }, Am = /* @__PURE__ */
|
|
11863
|
+
}), Wl = Cm, Sm = { class: "j-order-panel" }, km = { class: "content" }, Rm = { class: "btn-wrapper" }, Em = { class: "field-wrapper" }, Tm = { class: "buttons" }, Am = /* @__PURE__ */ ge({
|
|
11862
11864
|
name: "JOrderPanel",
|
|
11863
11865
|
__name: "order-panel",
|
|
11864
11866
|
props: { columns: {
|
|
@@ -11930,7 +11932,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
11930
11932
|
}, null, 8, ["label"])) : ee("", !0)])]);
|
|
11931
11933
|
};
|
|
11932
11934
|
}
|
|
11933
|
-
}), Mm = Am, jm = { class: "j-column-panel" }, Pm = { class: "content" }, Bm = { class: "search-wrapper" }, Hm = { class: "tree-wrapper" }, Om = { class: "buttons" }, Im = /* @__PURE__ */
|
|
11935
|
+
}), Mm = Am, jm = { class: "j-column-panel" }, Pm = { class: "content" }, Bm = { class: "search-wrapper" }, Hm = { class: "tree-wrapper" }, Om = { class: "buttons" }, Im = /* @__PURE__ */ ge({
|
|
11934
11936
|
name: "JColumnPanel",
|
|
11935
11937
|
__name: "column-panel",
|
|
11936
11938
|
props: {
|
|
@@ -12075,7 +12077,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12075
12077
|
}, Um = {
|
|
12076
12078
|
key: 0,
|
|
12077
12079
|
class: "j-table-panel-filter-panel"
|
|
12078
|
-
}, Ym = /* @__PURE__ */
|
|
12080
|
+
}, Ym = /* @__PURE__ */ ge({
|
|
12079
12081
|
name: "JTablePanel",
|
|
12080
12082
|
__name: "table-panel",
|
|
12081
12083
|
props: {
|
|
@@ -12232,16 +12234,16 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12232
12234
|
}), Ot;
|
|
12233
12235
|
}, y = H(() => C(i.columns, Ye.value)), _ = H(() => $f(i.columns, (be) => be.config.label)), k = z(""), R = H(() => _.value.some((be) => be.config?.filter?.isSearchKeyword)), T = z(), A = z(!0), P = z([]), L = H(() => A.value ? "搜索全部" : `搜索范围:${_.value.filter((be) => P.value.includes(be.id)).map((be) => be.config?.label).join("、")}`), I = () => {
|
|
12234
12236
|
T.value.init();
|
|
12235
|
-
}, j = z(), E = z(!1), V = z(!1), q = z(!1), se = z([]),
|
|
12237
|
+
}, j = z(), E = z(!1), V = z(!1), q = z(!1), se = z([]), ye = z("and"), W = z(), G = z(!1), Q = z([]), M = () => {
|
|
12236
12238
|
W.value.init(Q.value);
|
|
12237
12239
|
}, ue = (be) => {
|
|
12238
12240
|
Q.value = be, G.value = !1, ce();
|
|
12239
|
-
},
|
|
12241
|
+
}, Me = () => {
|
|
12240
12242
|
Q.value = [], ce();
|
|
12241
|
-
},
|
|
12242
|
-
|
|
12243
|
+
}, fe = z(), Le = z(!1), Ye = z(), ne = H(() => Ye.value != null), Ee = () => {
|
|
12244
|
+
fe.value?.init();
|
|
12243
12245
|
}, Be = (be) => {
|
|
12244
|
-
Ye.value = be,
|
|
12246
|
+
Ye.value = be, Le.value = !1;
|
|
12245
12247
|
}, Ie = z(!1), Et = () => {
|
|
12246
12248
|
Ie.value = !Ie.value;
|
|
12247
12249
|
}, bt = () => {
|
|
@@ -12331,11 +12333,11 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12331
12333
|
Yt.push(Xt), Ln = $t, vt = En;
|
|
12332
12334
|
else break;
|
|
12333
12335
|
}
|
|
12334
|
-
const
|
|
12335
|
-
if (
|
|
12336
|
+
const De = be.slice(Yt.length);
|
|
12337
|
+
if (De.length === 0) return be;
|
|
12336
12338
|
const Rn = {
|
|
12337
12339
|
...Wt,
|
|
12338
|
-
children:
|
|
12340
|
+
children: De
|
|
12339
12341
|
};
|
|
12340
12342
|
return Yt.length === 0 ? [Rn] : [...Yt, Rn];
|
|
12341
12343
|
});
|
|
@@ -12346,7 +12348,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12346
12348
|
be && (Cn = be), Cn && (Re.query = Cn);
|
|
12347
12349
|
try {
|
|
12348
12350
|
const gt = {};
|
|
12349
|
-
gt.rel =
|
|
12351
|
+
gt.rel = ye.value, gt.cond = (j.value?.getSearchFields?.() || se.value).filter((xe) => xe.value !== void 0 && xe.value !== null && xe.value !== "" || ["empty", "not_empty"].includes(xe.method)).map((xe) => ({
|
|
12350
12352
|
field: xe.field,
|
|
12351
12353
|
method: xe.method,
|
|
12352
12354
|
value: xe.value,
|
|
@@ -12381,7 +12383,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12381
12383
|
rows: Y(f),
|
|
12382
12384
|
page: be
|
|
12383
12385
|
});
|
|
12384
|
-
},
|
|
12386
|
+
}, me = (be) => {
|
|
12385
12387
|
ae({
|
|
12386
12388
|
rows: be,
|
|
12387
12389
|
page: 1
|
|
@@ -12455,7 +12457,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12455
12457
|
}, [X(gt, { list: Nt.value }, null, 8, ["list"])], 512), B("div", $m, [
|
|
12456
12458
|
R.value && !m.value ? (S(), O("div", Fm, [X(Wt, {
|
|
12457
12459
|
modelValue: k.value,
|
|
12458
|
-
"onUpdate:modelValue": Re[2] || (Re[2] = (
|
|
12460
|
+
"onUpdate:modelValue": Re[2] || (Re[2] = (De) => k.value = De),
|
|
12459
12461
|
modelModifiers: { trim: !0 },
|
|
12460
12462
|
placeholder: Y(a)("搜索数据"),
|
|
12461
12463
|
clearable: "",
|
|
@@ -12485,9 +12487,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12485
12487
|
ref_key: "keywordPanelRef",
|
|
12486
12488
|
ref: T,
|
|
12487
12489
|
"check-all": A.value,
|
|
12488
|
-
"onUpdate:checkAll": Re[0] || (Re[0] = (
|
|
12490
|
+
"onUpdate:checkAll": Re[0] || (Re[0] = (De) => A.value = De),
|
|
12489
12491
|
"check-fields": P.value,
|
|
12490
|
-
"onUpdate:checkFields": Re[1] || (Re[1] = (
|
|
12492
|
+
"onUpdate:checkFields": Re[1] || (Re[1] = (De) => P.value = De),
|
|
12491
12493
|
columns: _.value
|
|
12492
12494
|
}, null, 8, [
|
|
12493
12495
|
"check-all",
|
|
@@ -12503,7 +12505,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12503
12505
|
e.showFilterButton && !E.value && !m.value ? (S(), F(xe, {
|
|
12504
12506
|
key: 1,
|
|
12505
12507
|
visible: V.value,
|
|
12506
|
-
"onUpdate:visible": Re[6] || (Re[6] = (
|
|
12508
|
+
"onUpdate:visible": Re[6] || (Re[6] = (De) => V.value = De),
|
|
12507
12509
|
placement: "bottom",
|
|
12508
12510
|
"popper-style": "padding: 0",
|
|
12509
12511
|
width: 664,
|
|
@@ -12521,13 +12523,13 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12521
12523
|
ref_key: "filterPanelRef",
|
|
12522
12524
|
ref: j,
|
|
12523
12525
|
"is-pin": E.value,
|
|
12524
|
-
"onUpdate:isPin": Re[3] || (Re[3] = (
|
|
12525
|
-
relation:
|
|
12526
|
-
"onUpdate:relation": Re[4] || (Re[4] = (
|
|
12526
|
+
"onUpdate:isPin": Re[3] || (Re[3] = (De) => E.value = De),
|
|
12527
|
+
relation: ye.value,
|
|
12528
|
+
"onUpdate:relation": Re[4] || (Re[4] = (De) => ye.value = De),
|
|
12527
12529
|
"search-field-list": se.value,
|
|
12528
12530
|
columns: _.value,
|
|
12529
12531
|
onFilter: ce,
|
|
12530
|
-
onClose: Re[5] || (Re[5] = (
|
|
12532
|
+
onClose: Re[5] || (Re[5] = (De) => V.value = !1)
|
|
12531
12533
|
}, null, 8, [
|
|
12532
12534
|
"is-pin",
|
|
12533
12535
|
"relation",
|
|
@@ -12543,7 +12545,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12543
12545
|
}, {
|
|
12544
12546
|
default: J(() => [B("div", null, [X(xe, {
|
|
12545
12547
|
visible: G.value,
|
|
12546
|
-
"onUpdate:visible": Re[7] || (Re[7] = (
|
|
12548
|
+
"onUpdate:visible": Re[7] || (Re[7] = (De) => G.value = De),
|
|
12547
12549
|
placement: "bottom",
|
|
12548
12550
|
"popper-style": "padding: 0",
|
|
12549
12551
|
width: 380,
|
|
@@ -12560,7 +12562,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12560
12562
|
ref: W,
|
|
12561
12563
|
columns: _.value,
|
|
12562
12564
|
onSave: ue,
|
|
12563
|
-
onClear:
|
|
12565
|
+
onClear: Me
|
|
12564
12566
|
}, null, 8, ["columns"])]),
|
|
12565
12567
|
_: 1
|
|
12566
12568
|
}, 8, ["visible"])])]),
|
|
@@ -12572,8 +12574,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12572
12574
|
content: Y(a)("显示字段")
|
|
12573
12575
|
}, {
|
|
12574
12576
|
default: J(() => [B("div", null, [X(xe, {
|
|
12575
|
-
visible:
|
|
12576
|
-
"onUpdate:visible": Re[8] || (Re[8] = (
|
|
12577
|
+
visible: Le.value,
|
|
12578
|
+
"onUpdate:visible": Re[8] || (Re[8] = (De) => Le.value = De),
|
|
12577
12579
|
placement: "bottom",
|
|
12578
12580
|
"popper-style": "padding: 0",
|
|
12579
12581
|
width: 400,
|
|
@@ -12587,7 +12589,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12587
12589
|
}, null, 8, ["class"])]),
|
|
12588
12590
|
default: J(() => [X(zm, {
|
|
12589
12591
|
ref_key: "columnPanelRef",
|
|
12590
|
-
ref:
|
|
12592
|
+
ref: fe,
|
|
12591
12593
|
columns: e.columns,
|
|
12592
12594
|
"column-config": Ye.value,
|
|
12593
12595
|
onSave: Be
|
|
@@ -12627,14 +12629,14 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12627
12629
|
"j-table-panel-vnode",
|
|
12628
12630
|
e.renderVNodeClass
|
|
12629
12631
|
])
|
|
12630
|
-
}, [B("div", Nm, [(S(!0), O(ke, null, Oe(Y(c), (
|
|
12631
|
-
key: w(
|
|
12632
|
-
onClick: (Dt) => kn(
|
|
12632
|
+
}, [B("div", Nm, [(S(!0), O(ke, null, Oe(Y(c), (De, Rn) => (S(), F(Ta(e.renderVNode(De)), {
|
|
12633
|
+
key: w(De) || Rn,
|
|
12634
|
+
onClick: (Dt) => kn(De)
|
|
12633
12635
|
}, null, 8, ["onClick"]))), 128))]), e.isPage ? (S(), O("div", Wm, [Re[14] || (Re[14] = B("div", null, null, -1)), X(Yt, {
|
|
12634
12636
|
"current-page": d.value,
|
|
12635
|
-
"onUpdate:currentPage": Re[9] || (Re[9] = (
|
|
12637
|
+
"onUpdate:currentPage": Re[9] || (Re[9] = (De) => d.value = De),
|
|
12636
12638
|
"page-size": f.value,
|
|
12637
|
-
"onUpdate:pageSize": Re[10] || (Re[10] = (
|
|
12639
|
+
"onUpdate:pageSize": Re[10] || (Re[10] = (De) => f.value = De),
|
|
12638
12640
|
"page-sizes": e.pageSizes || [
|
|
12639
12641
|
100,
|
|
12640
12642
|
200,
|
|
@@ -12644,7 +12646,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12644
12646
|
total: s.value,
|
|
12645
12647
|
layout: "total, prev, pager, next, sizes",
|
|
12646
12648
|
onCurrentChange: ie,
|
|
12647
|
-
onSizeChange:
|
|
12649
|
+
onSizeChange: me
|
|
12648
12650
|
}, null, 8, [
|
|
12649
12651
|
"current-page",
|
|
12650
12652
|
"page-size",
|
|
@@ -12655,7 +12657,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12655
12657
|
ref_key: "tableRef",
|
|
12656
12658
|
ref: l,
|
|
12657
12659
|
"table-page": d.value,
|
|
12658
|
-
"onUpdate:tablePage": Re[11] || (Re[11] = (
|
|
12660
|
+
"onUpdate:tablePage": Re[11] || (Re[11] = (De) => d.value = De),
|
|
12659
12661
|
columns: y.value,
|
|
12660
12662
|
"sub-columns": e.subColumns,
|
|
12661
12663
|
records: Y(c),
|
|
@@ -12710,9 +12712,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12710
12712
|
ref_key: "filterPanelRef",
|
|
12711
12713
|
ref: j,
|
|
12712
12714
|
"is-pin": E.value,
|
|
12713
|
-
"onUpdate:isPin": Re[12] || (Re[12] = (
|
|
12714
|
-
relation:
|
|
12715
|
-
"onUpdate:relation": Re[13] || (Re[13] = (
|
|
12715
|
+
"onUpdate:isPin": Re[12] || (Re[12] = (De) => E.value = De),
|
|
12716
|
+
relation: ye.value,
|
|
12717
|
+
"onUpdate:relation": Re[13] || (Re[13] = (De) => ye.value = De),
|
|
12716
12718
|
"search-field-list": se.value,
|
|
12717
12719
|
columns: _.value,
|
|
12718
12720
|
onFilter: ce
|
|
@@ -12724,7 +12726,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12724
12726
|
])])) : ee("", !0)], 2)], 2);
|
|
12725
12727
|
};
|
|
12726
12728
|
}
|
|
12727
|
-
}), Jm = Ym, Gm = Ce(Jm), Km = { class: "j-button-select" }, qm = { class: "search-wraper" }, Xm = { class: "options-wraper" }, Zm = ["onClick"], Qm = /* @__PURE__ */
|
|
12729
|
+
}), Jm = Ym, Gm = Ce(Jm), Km = { class: "j-button-select" }, qm = { class: "search-wraper" }, Xm = { class: "options-wraper" }, Zm = ["onClick"], Qm = /* @__PURE__ */ ge({
|
|
12728
12730
|
name: "JButtonSelect",
|
|
12729
12731
|
__name: "button-select",
|
|
12730
12732
|
props: {
|
|
@@ -12798,7 +12800,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12798
12800
|
"align-items": "center",
|
|
12799
12801
|
"justify-content": "center"
|
|
12800
12802
|
}
|
|
12801
|
-
}, ib = /* @__PURE__ */
|
|
12803
|
+
}, ib = /* @__PURE__ */ ge({
|
|
12802
12804
|
name: "JTree",
|
|
12803
12805
|
__name: "tree",
|
|
12804
12806
|
props: {
|
|
@@ -12949,7 +12951,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12949
12951
|
setCheck: v,
|
|
12950
12952
|
getCheck: w
|
|
12951
12953
|
}), (I, j) => {
|
|
12952
|
-
const E = $("j-icon"), V = $("j-button"), q = $("el-dropdown-item"), se = $("el-dropdown-menu"),
|
|
12954
|
+
const E = $("j-icon"), V = $("j-button"), q = $("el-dropdown-item"), se = $("el-dropdown-menu"), ye = $("el-dropdown"), W = $("el-tree"), G = $("el-empty"), Q = Bo("loading");
|
|
12953
12955
|
return $n((S(), O("div", {
|
|
12954
12956
|
class: Ne([
|
|
12955
12957
|
"j-block",
|
|
@@ -12996,25 +12998,25 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12996
12998
|
color: M.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
12997
12999
|
}, null, 8, ["icon", "color"])) : ee("", !0),
|
|
12998
13000
|
B("div", nb, we(M.label), 1),
|
|
12999
|
-
k(M.data).length ? (S(), O("div", ab, [(S(!0), O(ke, null, Oe(k(M.data), (ue,
|
|
13000
|
-
key:
|
|
13001
|
+
k(M.data).length ? (S(), O("div", ab, [(S(!0), O(ke, null, Oe(k(M.data), (ue, Me) => (S(), F(ye, {
|
|
13002
|
+
key: Me,
|
|
13001
13003
|
trigger: "click",
|
|
13002
|
-
onVisibleChange: (
|
|
13004
|
+
onVisibleChange: (fe) => P(fe, M.data)
|
|
13003
13005
|
}, {
|
|
13004
13006
|
dropdown: J(() => [X(se, null, {
|
|
13005
|
-
default: J(() => [(S(!0), O(ke, null, Oe(ue.children, (
|
|
13006
|
-
key:
|
|
13007
|
-
disabled:
|
|
13008
|
-
divided:
|
|
13009
|
-
onClick: Ft((Ye) => T(
|
|
13007
|
+
default: J(() => [(S(!0), O(ke, null, Oe(ue.children, (fe, Le) => (S(), F(q, {
|
|
13008
|
+
key: Le,
|
|
13009
|
+
disabled: fe.disabled,
|
|
13010
|
+
divided: fe.divided,
|
|
13011
|
+
onClick: Ft((Ye) => T(fe, M.data), ["stop"])
|
|
13010
13012
|
}, {
|
|
13011
13013
|
default: J(() => [B("div", {
|
|
13012
13014
|
class: "j-flex-item",
|
|
13013
|
-
style: le({ color:
|
|
13014
|
-
}, [
|
|
13015
|
+
style: le({ color: fe.danger ? "var(--j-color-danger)" : fe.color || e.buttonIconColor || "var(--j-color-text-2)" })
|
|
13016
|
+
}, [fe.icon || e.buttonDefaultIcon ? (S(), F(E, {
|
|
13015
13017
|
key: 0,
|
|
13016
|
-
icon:
|
|
13017
|
-
}, null, 8, ["icon"])) : ee("", !0), B("div", null, we(Y(r)(
|
|
13018
|
+
icon: fe.icon || e.buttonDefaultIcon
|
|
13019
|
+
}, null, 8, ["icon"])) : ee("", !0), B("div", null, we(Y(r)(fe.label)), 1)], 4)]),
|
|
13018
13020
|
_: 2
|
|
13019
13021
|
}, 1032, [
|
|
13020
13022
|
"disabled",
|
|
@@ -13047,7 +13049,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
13047
13049
|
])) : (S(), O("div", ob, [X(G, { description: Y(r)(e.emptyDes) }, null, 8, ["description"])]))], 2)), [[Q, d.value]]);
|
|
13048
13050
|
};
|
|
13049
13051
|
}
|
|
13050
|
-
}), rb = ib, lb = Ce(rb), sb = /* @__PURE__ */
|
|
13052
|
+
}), rb = ib, lb = Ce(rb), sb = /* @__PURE__ */ ge({
|
|
13051
13053
|
name: "JTreeSelect",
|
|
13052
13054
|
__name: "tree-select",
|
|
13053
13055
|
props: {
|
|
@@ -13207,7 +13209,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13207
13209
|
}
|
|
13208
13210
|
};
|
|
13209
13211
|
return { run: r };
|
|
13210
|
-
}, vb = /* @__PURE__ */
|
|
13212
|
+
}, vb = /* @__PURE__ */ ge({
|
|
13211
13213
|
name: "JForm",
|
|
13212
13214
|
__name: "form",
|
|
13213
13215
|
props: {
|
|
@@ -13257,53 +13259,53 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13257
13259
|
}, se = (K, ce) => {
|
|
13258
13260
|
let ae = K.id;
|
|
13259
13261
|
return ae || (K.config?.table && K.config?.field ? ae = `${K.config.table}.${K.config.field}` : K.config?.table ? ae = K.config?.table : K.config?.field && (ae = K.config?.field), ce && E(ce) && (ae = `${ce}.${ae}`)), ae || Wr("j");
|
|
13260
|
-
},
|
|
13261
|
-
K.forEach((
|
|
13262
|
-
|
|
13262
|
+
}, ye = (K, ce, ae, ie = "") => {
|
|
13263
|
+
K.forEach((me) => {
|
|
13264
|
+
me.id = se(me, ie);
|
|
13263
13265
|
const Te = {
|
|
13264
|
-
id:
|
|
13265
|
-
slot:
|
|
13266
|
-
type:
|
|
13267
|
-
getCompType:
|
|
13268
|
-
getCompConfig:
|
|
13266
|
+
id: me.id,
|
|
13267
|
+
slot: me.slot,
|
|
13268
|
+
type: me.type || "",
|
|
13269
|
+
getCompType: me.getCompType,
|
|
13270
|
+
getCompConfig: me.getCompConfig,
|
|
13269
13271
|
config: {},
|
|
13270
13272
|
children: []
|
|
13271
13273
|
};
|
|
13272
13274
|
ce.push(Te);
|
|
13273
|
-
const { children: ze } =
|
|
13274
|
-
Si(Te,
|
|
13275
|
+
const { children: ze } = me;
|
|
13276
|
+
Si(Te, me, ["children", "config"]), Si(Te.config, me.config || {}, []), a.config.size && Te.config.size === void 0 && (Te.config.size = a.config.size), R[me.id] && console.warn("有重复的组件id:" + me.id), R[me.id] = Te, a.readonly === !0 && (Te.config.readonly = !0);
|
|
13275
13277
|
let at = !1, Ct;
|
|
13276
|
-
ie !== "" && E(ie) && (at = !0, Te.config =
|
|
13278
|
+
ie !== "" && E(ie) && (at = !0, Te.config = me.config || {}, Te.config.parentTableId = ie, Ct = R[ie]?.config?.table);
|
|
13277
13279
|
const dt = Te.config || {};
|
|
13278
|
-
if (j(
|
|
13279
|
-
!ae && at === !1 && (dt?.defaultValue === 0 ? y[
|
|
13280
|
-
else if (at && dt.field) T[`${Ct}_${dt.field}`.toLowerCase()] =
|
|
13281
|
-
else if (E(
|
|
13282
|
-
!ae && !dt.isSubTable && (y[
|
|
13283
|
-
else if (dt?.defaultValue) y[
|
|
13284
|
-
else if (
|
|
13280
|
+
if (j(me.id))
|
|
13281
|
+
!ae && at === !1 && (dt?.defaultValue === 0 ? y[me.id] = dt?.defaultValue : y[me.id] = dt?.defaultValue || void 0), dt.table && dt.field ? T[`${dt.table}_${dt.field}`.toLowerCase()] = me.id : dt.field && (at ? T[`${Ct}_${dt.field}`.toLowerCase()] = me.id : T[`${dt.field}`.toLowerCase()] = me.id);
|
|
13282
|
+
else if (at && dt.field) T[`${Ct}_${dt.field}`.toLowerCase()] = me.id;
|
|
13283
|
+
else if (E(me.id))
|
|
13284
|
+
!ae && !dt.isSubTable && (y[me.id] = []), dt.table && (T[dt.table.toLowerCase() || ""] = me.id), dt.isSubTable || P.push(Te);
|
|
13285
|
+
else if (dt?.defaultValue) y[me.id] = dt?.defaultValue;
|
|
13286
|
+
else if (me.type === "collapse" && dt?.isExpand) {
|
|
13285
13287
|
const Sn = [];
|
|
13286
13288
|
(dt?.groups || []).forEach((kn) => {
|
|
13287
13289
|
Sn.push(kn.i);
|
|
13288
|
-
}), y[
|
|
13290
|
+
}), y[me.id] = Sn;
|
|
13289
13291
|
}
|
|
13290
|
-
ze && ze.length > 0 &&
|
|
13292
|
+
ze && ze.length > 0 && ye(ze, Te.children, ae, Te.id);
|
|
13291
13293
|
});
|
|
13292
13294
|
}, W = async (K, ce) => {
|
|
13293
13295
|
b.value = !1;
|
|
13294
13296
|
const ae = !!ce;
|
|
13295
|
-
k.splice(0, k.length), T = {}, A = {}, P = [], V = ce, Co(y), Co(R), ae && q(ce, ""),
|
|
13297
|
+
k.splice(0, k.length), T = {}, A = {}, P = [], V = ce, Co(y), Co(R), ae && q(ce, ""), ye(K, k, ae), L = fn(y), await zt(), b.value = !0, await zt(), a.config?.codeInit && await Nt(JSON.parse(a.config?.codeInit), { param: {} });
|
|
13296
13298
|
}, G = (K, ce, ae) => {
|
|
13297
13299
|
const ie = [];
|
|
13298
|
-
return ce.forEach((
|
|
13300
|
+
return ce.forEach((me) => {
|
|
13299
13301
|
const Te = {};
|
|
13300
|
-
Object.keys(
|
|
13301
|
-
if (!ae || ae(ze,
|
|
13302
|
+
Object.keys(me).forEach((ze) => {
|
|
13303
|
+
if (!ae || ae(ze, me[ze], K)) {
|
|
13302
13304
|
const at = Be(ze);
|
|
13303
|
-
if (at?.type === "j-table") Te[at?.id || ""] = G(ze,
|
|
13305
|
+
if (at?.type === "j-table") Te[at?.id || ""] = G(ze, me[ze], ae);
|
|
13304
13306
|
else {
|
|
13305
13307
|
let Ct = T[`${K}_${ze}`.toLowerCase()] || ze;
|
|
13306
|
-
Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct, Te[Ct] =
|
|
13308
|
+
Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct, Te[Ct] = me[ze];
|
|
13307
13309
|
}
|
|
13308
13310
|
}
|
|
13309
13311
|
}), ie.push(Te);
|
|
@@ -13311,15 +13313,15 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13311
13313
|
}, Q = (K, ce) => {
|
|
13312
13314
|
Object.keys(K || {}).forEach((ae) => {
|
|
13313
13315
|
let ie = K[ae];
|
|
13314
|
-
const
|
|
13315
|
-
if (
|
|
13316
|
+
const me = Be(ae);
|
|
13317
|
+
if (me === void 0)
|
|
13316
13318
|
ie && (br(ie) && (ie = ie[0] || {}), typeof ie == "object" ? Object.keys(ie).forEach((Te) => {
|
|
13317
13319
|
if (!ce || ce(ae, ie[Te], ae)) {
|
|
13318
13320
|
let ze = Te;
|
|
13319
13321
|
ae !== "main" && (ze = `${ae}_${Te}`), A[ze] = ae, y[T[ze.toLowerCase()] || Te] = ie[Te];
|
|
13320
13322
|
}
|
|
13321
13323
|
}) : y[ae] = ie);
|
|
13322
|
-
else if (E(
|
|
13324
|
+
else if (E(me.id || "")) {
|
|
13323
13325
|
if (!Array.isArray(ie)) {
|
|
13324
13326
|
console.warn("表格数据不是数组:" + ae);
|
|
13325
13327
|
return;
|
|
@@ -13338,9 +13340,9 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13338
13340
|
const ae = {};
|
|
13339
13341
|
return Object.keys(K).forEach((ie) => {
|
|
13340
13342
|
if (M.has(ie)) return;
|
|
13341
|
-
const
|
|
13342
|
-
if (
|
|
13343
|
-
const Te =
|
|
13343
|
+
const me = R[ie];
|
|
13344
|
+
if (me) {
|
|
13345
|
+
const Te = me.config?.table, ze = me.config?.field;
|
|
13344
13346
|
if (ce) ze ? ae[ze] = K[ie] : ae[ie] = K[ie];
|
|
13345
13347
|
else if (E(ie)) {
|
|
13346
13348
|
const at = [];
|
|
@@ -13350,26 +13352,26 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13350
13352
|
} else Te && ze ? (ae[Te] = ae[Te] || {}, ae[Te][ze] = K[ie]) : ze && (ae[ze] = K[ie]);
|
|
13351
13353
|
} else ce ? ie !== "_X_ROW_KEY" && ie !== "_isHover" && (ae[ie] = K[ie]) : A[ie] ? (ae[A[ie]] = ae[A[ie]] || {}, ae[A[ie]][ie.replace(`${A[ie]}_`, "")] = K[ie]) : ae[ie] = K[ie];
|
|
13352
13354
|
}), ae;
|
|
13353
|
-
},
|
|
13354
|
-
let
|
|
13355
|
-
if (
|
|
13355
|
+
}, Me = (K = !0) => K ? ue(y) : y, fe = (K, ce, ae, ie) => {
|
|
13356
|
+
let me = R[K];
|
|
13357
|
+
if (me == null) {
|
|
13356
13358
|
const ze = K.split(".");
|
|
13357
|
-
|
|
13359
|
+
me = R[ze[ze.length - 1]] || {};
|
|
13358
13360
|
}
|
|
13359
|
-
if (!
|
|
13361
|
+
if (!me) return {};
|
|
13360
13362
|
const Te = xn({
|
|
13361
|
-
config:
|
|
13362
|
-
getCompConfig:
|
|
13363
|
+
config: me.config || {},
|
|
13364
|
+
getCompConfig: me.getCompConfig,
|
|
13363
13365
|
formData: y,
|
|
13364
13366
|
getTableData: ae,
|
|
13365
13367
|
row: ce,
|
|
13366
13368
|
pRowData: ie
|
|
13367
13369
|
});
|
|
13368
|
-
return Te._componentId =
|
|
13369
|
-
},
|
|
13370
|
-
const
|
|
13371
|
-
if (
|
|
13372
|
-
const Te =
|
|
13370
|
+
return Te._componentId = me?.id, Te;
|
|
13371
|
+
}, Le = (K, ce, ae, ie) => {
|
|
13372
|
+
const me = fe(K, ce, ae, ie);
|
|
13373
|
+
if (me.isNotRule !== !0 && me.display !== !1) {
|
|
13374
|
+
const Te = me.rule || [], ze = Te.find((at) => at.type === "only");
|
|
13373
13375
|
return ze && (ze.validator = async (at, Ct) => {
|
|
13374
13376
|
if (Ct && !await r({
|
|
13375
13377
|
table: at.table,
|
|
@@ -13387,14 +13389,14 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13387
13389
|
throw h(at.message) || h("数据值重复");
|
|
13388
13390
|
}), {
|
|
13389
13391
|
rules: Te,
|
|
13390
|
-
myGridtableId: E(
|
|
13392
|
+
myGridtableId: E(me._componentId) ? me._componentId : ""
|
|
13391
13393
|
};
|
|
13392
13394
|
}
|
|
13393
13395
|
return {
|
|
13394
13396
|
rules: [],
|
|
13395
13397
|
myGridtableId: ""
|
|
13396
13398
|
};
|
|
13397
|
-
}, { validateForm: Ye } = gb(y,
|
|
13399
|
+
}, { validateForm: Ye } = gb(y, Le), ne = async () => {
|
|
13398
13400
|
_.value = {};
|
|
13399
13401
|
const K = await Ye();
|
|
13400
13402
|
return Object.keys(K).length > 0 ? (_.value = K, g(`${h(R[Object.keys(K)[0]]?.config?.label)}:${h(K[Object.keys(K)[0]].msg)}`), !1) : !0;
|
|
@@ -13409,24 +13411,24 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13409
13411
|
if (ie === "add") y[K].push(ae);
|
|
13410
13412
|
else if (ie === "delete") y[K].splice(ce, 1);
|
|
13411
13413
|
else {
|
|
13412
|
-
const
|
|
13413
|
-
|
|
13414
|
+
const me = Be(K);
|
|
13415
|
+
me && (me.config.parentTableId ? y[me.config.parentTableId][ce][K] = ae : y[K] = ae);
|
|
13414
13416
|
}
|
|
13415
13417
|
}, Et = ({ id: K, i: ce }) => {
|
|
13416
13418
|
const ae = Be(K);
|
|
13417
13419
|
if (ae) {
|
|
13418
13420
|
if (ae.config.parentTableId) {
|
|
13419
|
-
const ie = y[ae.config.parentTableId],
|
|
13420
|
-
if (ce != null) return (ie[ce] || {})[
|
|
13421
|
+
const ie = y[ae.config.parentTableId], me = ae.id ? ae.id.replace(`${ae.config.parentTableId}.`, "") : "";
|
|
13422
|
+
if (ce != null) return (ie[ce] || {})[me || ""];
|
|
13421
13423
|
const Te = [];
|
|
13422
13424
|
return ie && ie.forEach((ze) => {
|
|
13423
|
-
Te.push(ze[
|
|
13425
|
+
Te.push(ze[me || ""]);
|
|
13424
13426
|
}), Te;
|
|
13425
13427
|
}
|
|
13426
13428
|
if (E(ae.id || "")) {
|
|
13427
13429
|
const ie = [];
|
|
13428
|
-
return y[ae.id || ""].forEach((
|
|
13429
|
-
ie.push(ue(
|
|
13430
|
+
return y[ae.id || ""].forEach((me) => {
|
|
13431
|
+
ie.push(ue(me, !0));
|
|
13430
13432
|
}), ie;
|
|
13431
13433
|
}
|
|
13432
13434
|
return y[ae.id || ""];
|
|
@@ -13438,7 +13440,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13438
13440
|
i: ce
|
|
13439
13441
|
}), ie = Be(K);
|
|
13440
13442
|
if (ie && p?.getLabel) if (ce !== void 0) {
|
|
13441
|
-
const
|
|
13443
|
+
const me = ae[ce], Te = y[ie.config.parentTableId || ""][ce], ze = xn({
|
|
13442
13444
|
config: ie.config,
|
|
13443
13445
|
getCompConfig: ie.getCompConfig,
|
|
13444
13446
|
formData: y,
|
|
@@ -13446,26 +13448,26 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13446
13448
|
row: Te
|
|
13447
13449
|
});
|
|
13448
13450
|
return await p?.getLabel({
|
|
13449
|
-
value:
|
|
13451
|
+
value: me,
|
|
13450
13452
|
config: ze,
|
|
13451
13453
|
formData: y,
|
|
13452
13454
|
tableData: y[ie.config.parentTableId || ""],
|
|
13453
13455
|
row: Te
|
|
13454
13456
|
});
|
|
13455
13457
|
} else {
|
|
13456
|
-
const
|
|
13458
|
+
const me = xn({
|
|
13457
13459
|
config: ie.config,
|
|
13458
13460
|
getCompConfig: ie.getCompConfig,
|
|
13459
13461
|
formData: y
|
|
13460
13462
|
});
|
|
13461
13463
|
return await p?.getLabel({
|
|
13462
13464
|
value: ae,
|
|
13463
|
-
config:
|
|
13465
|
+
config: me,
|
|
13464
13466
|
formData: y
|
|
13465
13467
|
});
|
|
13466
13468
|
}
|
|
13467
13469
|
return ae;
|
|
13468
|
-
}, Xe = async (K, ce) => p?.loadViewDataList ? await p?.loadViewDataList(K, ce, !1) : [], Kt = (K) => (K.set = Ie, K.get = Et, K.setFormData = Q, K.getFormData =
|
|
13470
|
+
}, Xe = async (K, ce) => p?.loadViewDataList ? await p?.loadViewDataList(K, ce, !1) : [], Kt = (K) => (K.set = Ie, K.get = Et, K.setFormData = Q, K.getFormData = Me, K.getLabel = bt, K.getViewData = Xe, K.getDateNow = (ce) => Jr(/* @__PURE__ */ new Date(), ce || "YYYY-MM-DD HH:mm:ss"), K.httpGet = l || (() => {
|
|
13469
13471
|
console.log("当前状态不支持");
|
|
13470
13472
|
}), K.httpPost = c || (() => {
|
|
13471
13473
|
console.log("当前状态不支持");
|
|
@@ -13541,13 +13543,13 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13541
13543
|
getValue: Et,
|
|
13542
13544
|
getLabel: bt,
|
|
13543
13545
|
setFormData: Q,
|
|
13544
|
-
getFormData:
|
|
13546
|
+
getFormData: Me,
|
|
13545
13547
|
afterSetData: qt,
|
|
13546
13548
|
beforeSave: Bt,
|
|
13547
13549
|
afterSave: Ht
|
|
13548
13550
|
}), (K, ce) => {
|
|
13549
|
-
const ae = $("j-form-item"), ie = $("el-row"),
|
|
13550
|
-
return b.value ? (S(), F(
|
|
13551
|
+
const ae = $("j-form-item"), ie = $("el-row"), me = $("el-form");
|
|
13552
|
+
return b.value ? (S(), F(me, {
|
|
13551
13553
|
key: 0,
|
|
13552
13554
|
class: Ne([
|
|
13553
13555
|
"j-form",
|
|
@@ -13576,7 +13578,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13576
13578
|
])) : ee("", !0);
|
|
13577
13579
|
};
|
|
13578
13580
|
}
|
|
13579
|
-
}), yb = vb, mb = Ce(yb), bb = Ce(Hc), wb = { class: "j-page" }, _b = /* @__PURE__ */
|
|
13581
|
+
}), yb = vb, mb = Ce(yb), bb = Ce(Hc), wb = { class: "j-page" }, _b = /* @__PURE__ */ ge({
|
|
13580
13582
|
name: "JPage",
|
|
13581
13583
|
__name: "page",
|
|
13582
13584
|
props: {
|
|
@@ -13670,7 +13672,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13670
13672
|
]))), 128))]);
|
|
13671
13673
|
};
|
|
13672
13674
|
}
|
|
13673
|
-
}), xb = _b, Cb = Ce(xb), Sb = /* @__PURE__ */
|
|
13675
|
+
}), xb = _b, Cb = Ce(xb), Sb = /* @__PURE__ */ ge({
|
|
13674
13676
|
name: "JGuid",
|
|
13675
13677
|
__name: "guid",
|
|
13676
13678
|
props: {
|
|
@@ -13701,7 +13703,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13701
13703
|
} }, Mb = { key: 1 }, jb = {
|
|
13702
13704
|
key: 1,
|
|
13703
13705
|
class: "j-panel-bottom"
|
|
13704
|
-
}, Pb = /* @__PURE__ */
|
|
13706
|
+
}, Pb = /* @__PURE__ */ ge({
|
|
13705
13707
|
name: "JPanel",
|
|
13706
13708
|
__name: "panel",
|
|
13707
13709
|
props: {
|
|
@@ -13774,7 +13776,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13774
13776
|
}, zb = {
|
|
13775
13777
|
key: 1,
|
|
13776
13778
|
class: "j-input-rows-char"
|
|
13777
|
-
}, Lb = /* @__PURE__ */
|
|
13779
|
+
}, Lb = /* @__PURE__ */ ge({
|
|
13778
13780
|
name: "JInputRows",
|
|
13779
13781
|
__name: "input-rows",
|
|
13780
13782
|
props: {
|
|
@@ -13957,7 +13959,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13957
13959
|
}, null, 8, ["list"])) : ee("", !0)], 4)) : ee("", !0)]);
|
|
13958
13960
|
};
|
|
13959
13961
|
}
|
|
13960
|
-
}), Db = Lb, $b = Ce(Db), Fb = { class: "j-input-layer" }, Vb = /* @__PURE__ */
|
|
13962
|
+
}), Db = Lb, $b = Ce(Db), Fb = { class: "j-input-layer" }, Vb = /* @__PURE__ */ ge({
|
|
13961
13963
|
name: "JInputLayer",
|
|
13962
13964
|
__name: "input-layer",
|
|
13963
13965
|
props: {
|
|
@@ -14162,7 +14164,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14162
14164
|
])]);
|
|
14163
14165
|
};
|
|
14164
14166
|
}
|
|
14165
|
-
}), Nb = Vb, Wb = Ce(Nb), Ub = /* @__PURE__ */
|
|
14167
|
+
}), Nb = Vb, Wb = Ce(Nb), Ub = /* @__PURE__ */ ge({
|
|
14166
14168
|
name: "JLayerForm",
|
|
14167
14169
|
__name: "layer-form",
|
|
14168
14170
|
props: {
|
|
@@ -14261,7 +14263,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14261
14263
|
])]);
|
|
14262
14264
|
};
|
|
14263
14265
|
}
|
|
14264
|
-
}), Yb = Ub, Jb = Ce(Yb), Gb = /* @__PURE__ */
|
|
14266
|
+
}), Yb = Ub, Jb = Ce(Yb), Gb = /* @__PURE__ */ ge({
|
|
14265
14267
|
name: "JSwitch",
|
|
14266
14268
|
inheritAttrs: !1,
|
|
14267
14269
|
__name: "switch",
|
|
@@ -14415,7 +14417,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14415
14417
|
]);
|
|
14416
14418
|
};
|
|
14417
14419
|
}
|
|
14418
|
-
}), Kb = Gb, qb = Ce(Kb), Xb = /* @__PURE__ */
|
|
14420
|
+
}), Kb = Gb, qb = Ce(Kb), Xb = /* @__PURE__ */ ge({
|
|
14419
14421
|
name: "JTabs",
|
|
14420
14422
|
__name: "tabs",
|
|
14421
14423
|
props: {
|
|
@@ -14497,7 +14499,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14497
14499
|
]);
|
|
14498
14500
|
};
|
|
14499
14501
|
}
|
|
14500
|
-
}), Zb = Xb, Qb = Ce(Zb), e0 = /* @__PURE__ */
|
|
14502
|
+
}), Zb = Xb, Qb = Ce(Zb), e0 = /* @__PURE__ */ ge({
|
|
14501
14503
|
name: "JCollapse",
|
|
14502
14504
|
__name: "collapse",
|
|
14503
14505
|
props: {
|
|
@@ -14527,7 +14529,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14527
14529
|
}, 16, ["model-value", "accordion"]);
|
|
14528
14530
|
};
|
|
14529
14531
|
}
|
|
14530
|
-
}), t0 = e0, n0 = Ce(t0), a0 = { class: "j-editor" }, o0 = /* @__PURE__ */
|
|
14532
|
+
}), t0 = e0, n0 = Ce(t0), a0 = { class: "j-editor" }, o0 = /* @__PURE__ */ ge({
|
|
14531
14533
|
name: "JEditor",
|
|
14532
14534
|
__name: "editor",
|
|
14533
14535
|
props: {
|
|
@@ -14633,7 +14635,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14633
14635
|
}), i0 = o0, r0 = Ce(i0), l0 = {
|
|
14634
14636
|
key: 0,
|
|
14635
14637
|
class: "j-map-loading"
|
|
14636
|
-
}, s0 = /* @__PURE__ */
|
|
14638
|
+
}, s0 = /* @__PURE__ */ ge({
|
|
14637
14639
|
name: "JMap",
|
|
14638
14640
|
__name: "map",
|
|
14639
14641
|
props: {
|
|
@@ -14727,7 +14729,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14727
14729
|
class: "j-map-container"
|
|
14728
14730
|
}, null, 512)], 4));
|
|
14729
14731
|
}
|
|
14730
|
-
}), c0 = s0, u0 = Ce(c0), d0 = /* @__PURE__ */
|
|
14732
|
+
}), c0 = s0, u0 = Ce(c0), d0 = /* @__PURE__ */ ge({
|
|
14731
14733
|
name: "JInputMap",
|
|
14732
14734
|
__name: "input-map",
|
|
14733
14735
|
props: {
|
|
@@ -15028,7 +15030,7 @@ function Kr(e, t, n) {
|
|
|
15028
15030
|
return It(n) && (a.dataset.cornerRadius = String(n)), Fc(a, e);
|
|
15029
15031
|
}
|
|
15030
15032
|
function Fc(e, t) {
|
|
15031
|
-
return
|
|
15033
|
+
return Fe(e, { d: Io(b0(t, parseInt(e.dataset.cornerRadius, 10) || 0)) }), e;
|
|
15032
15034
|
}
|
|
15033
15035
|
function w0(e) {
|
|
15034
15036
|
return !0;
|
|
@@ -15128,7 +15130,7 @@ function Vc(e, t, n) {
|
|
|
15128
15130
|
"no-move": v("djs-hit djs-hit-no-move")
|
|
15129
15131
|
};
|
|
15130
15132
|
function v(y, _) {
|
|
15131
|
-
return _ =
|
|
15133
|
+
return _ = Ve({
|
|
15132
15134
|
stroke: "white",
|
|
15133
15135
|
strokeWidth: 15
|
|
15134
15136
|
}, _ || {}), n.cls(y, ["no-fill", "no-border"], _);
|
|
@@ -15136,7 +15138,7 @@ function Vc(e, t, n) {
|
|
|
15136
15138
|
function w(y, _) {
|
|
15137
15139
|
var k = m[_];
|
|
15138
15140
|
if (!k) throw new Error("invalid hit type <" + _ + ">");
|
|
15139
|
-
return
|
|
15141
|
+
return Fe(y, k), y;
|
|
15140
15142
|
}
|
|
15141
15143
|
function C(y, _) {
|
|
15142
15144
|
qe(y, _);
|
|
@@ -15153,16 +15155,16 @@ function Vc(e, t, n) {
|
|
|
15153
15155
|
var k = Kr(_);
|
|
15154
15156
|
return w(k, "stroke"), C(y, k), k;
|
|
15155
15157
|
}, this.createBoxHit = function(y, _, k) {
|
|
15156
|
-
k =
|
|
15158
|
+
k = Ve({
|
|
15157
15159
|
x: 0,
|
|
15158
15160
|
y: 0
|
|
15159
15161
|
}, k);
|
|
15160
15162
|
var R = Ge("rect");
|
|
15161
|
-
return w(R, _),
|
|
15163
|
+
return w(R, _), Fe(R, k), C(y, R), R;
|
|
15162
15164
|
}, this.updateDefaultHit = function(y, _) {
|
|
15163
15165
|
var k = Zt(".djs-hit", _);
|
|
15164
15166
|
if (k)
|
|
15165
|
-
return y.waypoints ? Fc(k, y.waypoints) :
|
|
15167
|
+
return y.waypoints ? Fc(k, y.waypoints) : Fe(k, {
|
|
15166
15168
|
width: y.width,
|
|
15167
15169
|
height: y.height
|
|
15168
15170
|
}), k;
|
|
@@ -15346,7 +15348,7 @@ function Kc(e, t, n, a) {
|
|
|
15346
15348
|
}
|
|
15347
15349
|
function l(v, w) {
|
|
15348
15350
|
w = w || i;
|
|
15349
|
-
var C = e.createEvent(
|
|
15351
|
+
var C = e.createEvent(Ve({}, w.payload, w.data, { isTouch: w.isTouch }));
|
|
15350
15352
|
return e.fire("drag." + v, C) === !1 ? !1 : e.fire(w.prefix + "." + v, C);
|
|
15351
15353
|
}
|
|
15352
15354
|
function c(v) {
|
|
@@ -15358,7 +15360,7 @@ function Kc(e, t, n, a) {
|
|
|
15358
15360
|
function s(v, w) {
|
|
15359
15361
|
var C = i.payload, y = i.displacement, _ = i.globalStart, k = Ka(v), R = Ya(k, _), T = i.localStart, A = r(k), P = Ya(A, T);
|
|
15360
15362
|
if (!i.active && (w || k0(R) > i.threshold)) {
|
|
15361
|
-
if (
|
|
15363
|
+
if (Ve(C, {
|
|
15362
15364
|
x: Wa(T.x + y.x),
|
|
15363
15365
|
y: Wa(T.y + y.y),
|
|
15364
15366
|
dx: 0,
|
|
@@ -15366,7 +15368,7 @@ function Kc(e, t, n, a) {
|
|
|
15366
15368
|
}, { originalEvent: v }), l("start") === !1) return b();
|
|
15367
15369
|
i.active = !0, i.keepSelection || (C.previousSelection = n.get(), n.select(null)), i.cursor && Xr(i.cursor), t.addMarker(t.getRootElement(), Zl);
|
|
15368
15370
|
}
|
|
15369
|
-
ir(v), i.active && (
|
|
15371
|
+
ir(v), i.active && (Ve(C, {
|
|
15370
15372
|
x: Wa(A.x + y.x),
|
|
15371
15373
|
y: Wa(A.y + y.y),
|
|
15372
15374
|
dx: Wa(P.x),
|
|
@@ -15410,12 +15412,12 @@ function Kc(e, t, n, a) {
|
|
|
15410
15412
|
return v !== !1 && y && !n.get().length && c(y), w = i, i = null, w;
|
|
15411
15413
|
}
|
|
15412
15414
|
function m(v, w, C, y) {
|
|
15413
|
-
i && b(!1), typeof w == "string" && (y = C, C = w, w = null), y =
|
|
15415
|
+
i && b(!1), typeof w == "string" && (y = C, C = w, w = null), y = Ve({}, o, y || {});
|
|
15414
15416
|
var _ = y.data || {}, k, R, T, A, P;
|
|
15415
15417
|
y.trapClick ? A = u : A = d, v ? (k = Za(v) || v, R = Ka(v), ir(v), k.type === "dragstart" && wa(k)) : (k = null, R = {
|
|
15416
15418
|
x: 0,
|
|
15417
15419
|
y: 0
|
|
15418
|
-
}), T = r(R), w || (w = T), P = S0(k), i =
|
|
15420
|
+
}), T = r(R), w || (w = T), P = S0(k), i = Ve({
|
|
15419
15421
|
prefix: C,
|
|
15420
15422
|
data: _,
|
|
15421
15423
|
payload: {},
|
|
@@ -15428,7 +15430,7 @@ function Kc(e, t, n, a) {
|
|
|
15428
15430
|
e.on("diagram.destroy", b), this.init = m, this.move = s, this.hover = p, this.out = g, this.end = d, this.cancel = b, this.context = function() {
|
|
15429
15431
|
return i;
|
|
15430
15432
|
}, this.setOptions = function(v) {
|
|
15431
|
-
|
|
15433
|
+
Ve(o, v);
|
|
15432
15434
|
};
|
|
15433
15435
|
}
|
|
15434
15436
|
Kc.$inject = [
|
|
@@ -15482,10 +15484,10 @@ ra.prototype.getGfx = function(e) {
|
|
|
15482
15484
|
ra.prototype.addDragger = function(e, t, n, a = "djs-dragger") {
|
|
15483
15485
|
n = n || this.getGfx(e);
|
|
15484
15486
|
var o = yc(n), i = n.getBoundingClientRect();
|
|
15485
|
-
return this._cloneMarkers(Cr(o), a),
|
|
15487
|
+
return this._cloneMarkers(Cr(o), a), Fe(o, this._styles.cls(a, [], {
|
|
15486
15488
|
x: i.top,
|
|
15487
15489
|
y: i.left
|
|
15488
|
-
})), qe(t, o),
|
|
15490
|
+
})), qe(t, o), Fe(o, "data-preview-support-element-id", e.id), o;
|
|
15489
15491
|
};
|
|
15490
15492
|
ra.prototype.addFrame = function(e, t) {
|
|
15491
15493
|
var n = Ge("rect", {
|
|
@@ -15495,14 +15497,14 @@ ra.prototype.addFrame = function(e, t) {
|
|
|
15495
15497
|
x: e.x,
|
|
15496
15498
|
y: e.y
|
|
15497
15499
|
});
|
|
15498
|
-
return qe(t, n),
|
|
15500
|
+
return qe(t, n), Fe(n, "data-preview-support-element-id", e.id), n;
|
|
15499
15501
|
};
|
|
15500
15502
|
ra.prototype._cloneMarkers = function(e, t = "djs-dragger", n = e) {
|
|
15501
15503
|
var a = this;
|
|
15502
15504
|
e.childNodes && e.childNodes.forEach((o) => {
|
|
15503
15505
|
a._cloneMarkers(o, t, n);
|
|
15504
15506
|
}), P0(e) && E0.forEach(function(o) {
|
|
15505
|
-
if (
|
|
15507
|
+
if (Fe(e, o)) {
|
|
15506
15508
|
var i = A0(e, o, a._canvas.getContainer());
|
|
15507
15509
|
i && a._cloneMarker(n, e, i, o, t);
|
|
15508
15510
|
}
|
|
@@ -15518,10 +15520,10 @@ ra.prototype._cloneMarker = function(e, t, n, a, o = "djs-dragger") {
|
|
|
15518
15520
|
var l = r || yc(n);
|
|
15519
15521
|
l.id = i, ht(l).add(o);
|
|
15520
15522
|
var c = Zt(":scope > defs", e);
|
|
15521
|
-
c || (c = Ge("defs"), qe(e, c)), qe(c, l),
|
|
15523
|
+
c || (c = Ge("defs"), qe(e, c)), qe(c, l), Fe(t, a, j0(l.id));
|
|
15522
15524
|
};
|
|
15523
15525
|
function A0(e, t, n) {
|
|
15524
|
-
return Zt("marker#" + M0(
|
|
15526
|
+
return Zt("marker#" + M0(Fe(e, t)), n || document);
|
|
15525
15527
|
}
|
|
15526
15528
|
function M0(e) {
|
|
15527
15529
|
return e.match(/url\(['"]?#([^'"]*)['"]?\)/)[1];
|
|
@@ -15634,7 +15636,7 @@ function L0(e) {
|
|
|
15634
15636
|
return !!(e && e.isFrame);
|
|
15635
15637
|
}
|
|
15636
15638
|
function fo(e, t) {
|
|
15637
|
-
return
|
|
15639
|
+
return Ve({}, e || {}, t || {});
|
|
15638
15640
|
}
|
|
15639
15641
|
function en(e) {
|
|
15640
15642
|
return dn(e) && vc(e, "waypoints");
|
|
@@ -15721,12 +15723,12 @@ function Zc(e, t, n, a, o) {
|
|
|
15721
15723
|
attach: g,
|
|
15722
15724
|
connection: b === !0 ? {} : b,
|
|
15723
15725
|
connectionTarget: x.connectionTarget
|
|
15724
|
-
}) : (u = a.createElements(u, m, h,
|
|
15726
|
+
}) : (u = a.createElements(u, m, h, Ve({}, x, { attach: g })), f = Pn(u, function(v) {
|
|
15725
15727
|
return !en(v);
|
|
15726
|
-
})),
|
|
15728
|
+
})), Ve(s, {
|
|
15727
15729
|
elements: u,
|
|
15728
15730
|
shape: f
|
|
15729
|
-
}),
|
|
15731
|
+
}), Ve(c, {
|
|
15730
15732
|
elements: u,
|
|
15731
15733
|
shape: f
|
|
15732
15734
|
});
|
|
@@ -15745,7 +15747,7 @@ function Zc(e, t, n, a, o) {
|
|
|
15745
15747
|
return !en(h);
|
|
15746
15748
|
});
|
|
15747
15749
|
if (f) {
|
|
15748
|
-
d =
|
|
15750
|
+
d = Ve({
|
|
15749
15751
|
elements: s,
|
|
15750
15752
|
hints: {},
|
|
15751
15753
|
shape: f
|
|
@@ -15761,7 +15763,7 @@ function Zc(e, t, n, a, o) {
|
|
|
15761
15763
|
x: p.x - u.x - u.width / 2,
|
|
15762
15764
|
y: p.y - u.y - u.height / 2
|
|
15763
15765
|
};
|
|
15764
|
-
})),
|
|
15766
|
+
})), Ve(h, {
|
|
15765
15767
|
x: h.x - u.x - u.width / 2,
|
|
15766
15768
|
y: h.y - u.y - u.height / 2
|
|
15767
15769
|
});
|
|
@@ -15815,7 +15817,7 @@ var N0 = 750;
|
|
|
15815
15817
|
function Qc(e, t, n, a, o) {
|
|
15816
15818
|
function i(r) {
|
|
15817
15819
|
var l = Ge("g");
|
|
15818
|
-
|
|
15820
|
+
Fe(l, o.cls("djs-drag-group", ["no-events"]));
|
|
15819
15821
|
var c = Ge("g");
|
|
15820
15822
|
return r.forEach(function(s) {
|
|
15821
15823
|
var d;
|
|
@@ -16180,10 +16182,10 @@ function gs(e, t, n, a, o, i) {
|
|
|
16180
16182
|
];
|
|
16181
16183
|
}
|
|
16182
16184
|
function nu(e, t, n, a, o, i, r, l, c, s) {
|
|
16183
|
-
var d = Kn * 120 / 180, f = Kn / 180 * (+o || 0), u = [], h, p = X0(function(
|
|
16185
|
+
var d = Kn * 120 / 180, f = Kn / 180 * (+o || 0), u = [], h, p = X0(function(fe, Le, Ye) {
|
|
16184
16186
|
return {
|
|
16185
|
-
x:
|
|
16186
|
-
y:
|
|
16187
|
+
x: fe * At.cos(Ye) - Le * At.sin(Ye),
|
|
16188
|
+
y: fe * At.sin(Ye) + Le * At.cos(Ye)
|
|
16187
16189
|
};
|
|
16188
16190
|
});
|
|
16189
16191
|
if (s)
|
|
@@ -16206,8 +16208,8 @@ function nu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16206
16208
|
]);
|
|
16207
16209
|
}
|
|
16208
16210
|
R = k - _;
|
|
16209
|
-
var L = At.cos(_), I = At.sin(_), j = At.cos(k), E = At.sin(k), V = At.tan(R / 4), q = 4 / 3 * n * V, se = 4 / 3 * a * V,
|
|
16210
|
-
if (W[0] = 2 *
|
|
16211
|
+
var L = At.cos(_), I = At.sin(_), j = At.cos(k), E = At.sin(k), V = At.tan(R / 4), q = 4 / 3 * n * V, se = 4 / 3 * a * V, ye = [e, t], W = [e + q * I, t - se * L], G = [l + q * E, c - se * j], Q = [l, c];
|
|
16212
|
+
if (W[0] = 2 * ye[0] - W[0], W[1] = 2 * ye[1] - W[1], s) return [
|
|
16211
16213
|
W,
|
|
16212
16214
|
G,
|
|
16213
16215
|
Q
|
|
@@ -16217,7 +16219,7 @@ function nu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16217
16219
|
G,
|
|
16218
16220
|
Q
|
|
16219
16221
|
].concat(u).join().split(",");
|
|
16220
|
-
for (var M = [], ue = 0,
|
|
16222
|
+
for (var M = [], ue = 0, Me = u.length; ue < Me; ue++) M[ue] = ue % 2 ? p(u[ue - 1], u[ue], f).y : p(u[ue], u[ue + 1], f).x;
|
|
16221
16223
|
return M;
|
|
16222
16224
|
}
|
|
16223
16225
|
function lw(e, t, n, a, o, i, r, l) {
|
|
@@ -17016,7 +17018,7 @@ var jw = {
|
|
|
17016
17018
|
function Pw(e, t) {
|
|
17017
17019
|
var n = jw[e];
|
|
17018
17020
|
if (!n) throw new Error("unknown type: <" + e + ">");
|
|
17019
|
-
return
|
|
17021
|
+
return Ve(new n(), t);
|
|
17020
17022
|
}
|
|
17021
17023
|
function Bw(e) {
|
|
17022
17024
|
return e instanceof no;
|
|
@@ -17037,7 +17039,7 @@ sa.prototype.createConnection = function(e) {
|
|
|
17037
17039
|
return this.create("connection", e);
|
|
17038
17040
|
};
|
|
17039
17041
|
sa.prototype.create = function(e, t) {
|
|
17040
|
-
return t =
|
|
17042
|
+
return t = Ve({}, t || {}), t.id || (t.id = e + "_" + this._uid++), Pw(e, t);
|
|
17041
17043
|
};
|
|
17042
17044
|
var Hw = {
|
|
17043
17045
|
width: 90,
|
|
@@ -17164,7 +17166,7 @@ sl.prototype.preExecute = function(e) {
|
|
|
17164
17166
|
x: li(f.x - l.x - l.width / 2 + o.x),
|
|
17165
17167
|
y: li(f.y - l.y - l.height / 2 + o.y)
|
|
17166
17168
|
};
|
|
17167
|
-
})),
|
|
17169
|
+
})), Ve(d, {
|
|
17168
17170
|
x: li(d.x - l.x - l.width / 2 + o.x),
|
|
17169
17171
|
y: li(d.y - l.y - l.height / 2 + o.y)
|
|
17170
17172
|
});
|
|
@@ -17175,7 +17177,7 @@ sl.prototype.preExecute = function(e) {
|
|
|
17175
17177
|
s[d.id] = It(a) ? r.createConnection(s[d.source.id], s[d.target.id], a, d, d.parent || n, i) : r.createConnection(s[d.source.id], s[d.target.id], d, d.parent || n, i);
|
|
17176
17178
|
return;
|
|
17177
17179
|
}
|
|
17178
|
-
var f =
|
|
17180
|
+
var f = Ve({}, i);
|
|
17179
17181
|
c.indexOf(d) === -1 && (f.autoResize = !1), qa(d) && (f = hf(f, ["attach"])), s[d.id] = It(a) ? r.createShape(d, Ci(d, [
|
|
17180
17182
|
"x",
|
|
17181
17183
|
"y",
|
|
@@ -17198,7 +17200,7 @@ ca.prototype.execute = function(e) {
|
|
|
17198
17200
|
var t = e.shape, n = e.position, a = e.parent, o = e.parentIndex;
|
|
17199
17201
|
if (!a) throw new Error("parent required");
|
|
17200
17202
|
if (!n) throw new Error("position required");
|
|
17201
|
-
return n.width !== void 0 ?
|
|
17203
|
+
return n.width !== void 0 ? Ve(t, n) : Ve(t, {
|
|
17202
17204
|
x: n.x - xs(t.width / 2),
|
|
17203
17205
|
y: n.y - xs(t.height / 2)
|
|
17204
17206
|
}), this._canvas.addShape(t, a, o), t;
|
|
@@ -17336,7 +17338,7 @@ function Ui(e, t) {
|
|
|
17336
17338
|
Ui.$inject = ["layouter", "canvas"];
|
|
17337
17339
|
Ui.prototype.execute = function(e) {
|
|
17338
17340
|
var t = e.connection, n = t.waypoints;
|
|
17339
|
-
return
|
|
17341
|
+
return Ve(e, { oldWaypoints: n }), t.waypoints = this._layouter.layoutConnection(t, e.hints), t;
|
|
17340
17342
|
};
|
|
17341
17343
|
Ui.prototype.revert = function(e) {
|
|
17342
17344
|
var t = e.connection;
|
|
@@ -17414,7 +17416,7 @@ gl.prototype.add = function(e, t) {
|
|
|
17414
17416
|
};
|
|
17415
17417
|
gl.prototype.addAll = function(e, t) {
|
|
17416
17418
|
var n = I0(e, !!t, this);
|
|
17417
|
-
return
|
|
17419
|
+
return Ve(this, n), this;
|
|
17418
17420
|
};
|
|
17419
17421
|
function Vo(e) {
|
|
17420
17422
|
this._modeling = e;
|
|
@@ -17462,7 +17464,7 @@ Oa.prototype.execute = function(e) {
|
|
|
17462
17464
|
"y",
|
|
17463
17465
|
"width",
|
|
17464
17466
|
"height"
|
|
17465
|
-
]), e.oldParent = i, e.oldParentIndex = $i(i.children, t), la(a.children, t, o),
|
|
17467
|
+
]), e.oldParent = i, e.oldParentIndex = $i(i.children, t), la(a.children, t, o), Ve(t, {
|
|
17466
17468
|
parent: a,
|
|
17467
17469
|
x: t.x + n.x,
|
|
17468
17470
|
y: t.y + n.y
|
|
@@ -17478,7 +17480,7 @@ Oa.prototype.postExecute = function(e) {
|
|
|
17478
17480
|
};
|
|
17479
17481
|
Oa.prototype.revert = function(e) {
|
|
17480
17482
|
var t = e.shape, n = e.oldParent, a = e.oldParentIndex, o = e.delta;
|
|
17481
|
-
return la(n.children, t, a),
|
|
17483
|
+
return la(n.children, t, a), Ve(t, {
|
|
17482
17484
|
parent: n,
|
|
17483
17485
|
x: t.x - o.x,
|
|
17484
17486
|
y: t.y - o.y
|
|
@@ -17579,7 +17581,7 @@ Wo.prototype.execute = function(e) {
|
|
|
17579
17581
|
height: t.height,
|
|
17580
17582
|
x: t.x,
|
|
17581
17583
|
y: t.y
|
|
17582
|
-
},
|
|
17584
|
+
}, Ve(t, {
|
|
17583
17585
|
width: n.width,
|
|
17584
17586
|
height: n.height,
|
|
17585
17587
|
x: n.x,
|
|
@@ -17596,7 +17598,7 @@ Wo.prototype.postExecute = function(e) {
|
|
|
17596
17598
|
};
|
|
17597
17599
|
Wo.prototype.revert = function(e) {
|
|
17598
17600
|
var t = e.shape, n = e.oldBounds;
|
|
17599
|
-
return
|
|
17601
|
+
return Ve(t, {
|
|
17600
17602
|
width: n.width,
|
|
17601
17603
|
height: n.height,
|
|
17602
17604
|
x: n.x,
|
|
@@ -17696,7 +17698,7 @@ ua.prototype.updateConnectionWaypoints = function(e, t, n, a, o, i, r) {
|
|
|
17696
17698
|
});
|
|
17697
17699
|
};
|
|
17698
17700
|
function ks(e) {
|
|
17699
|
-
return
|
|
17701
|
+
return Ve({}, e);
|
|
17700
17702
|
}
|
|
17701
17703
|
function Nw(e) {
|
|
17702
17704
|
return Ho(e.waypoints, function(t) {
|
|
@@ -17748,7 +17750,7 @@ Ki.prototype.revert = function(e) {
|
|
|
17748
17750
|
function Cu(e) {
|
|
17749
17751
|
var t = {};
|
|
17750
17752
|
return de(e, function(n) {
|
|
17751
|
-
t[n.id] = n.hidden, n.children && (t =
|
|
17753
|
+
t[n.id] = n.hidden, n.children && (t = Ve({}, t, Cu(n.children)));
|
|
17752
17754
|
}), t;
|
|
17753
17755
|
}
|
|
17754
17756
|
function Su(e, t) {
|
|
@@ -18024,10 +18026,10 @@ ot.prototype.reconnect = function(e, t, n, a, o) {
|
|
|
18024
18026
|
this._commandStack.execute("connection.reconnect", i);
|
|
18025
18027
|
};
|
|
18026
18028
|
ot.prototype.reconnectStart = function(e, t, n, a) {
|
|
18027
|
-
a || (a = {}), this.reconnect(e, t, e.target, n,
|
|
18029
|
+
a || (a = {}), this.reconnect(e, t, e.target, n, Ve(a, { docking: "source" }));
|
|
18028
18030
|
};
|
|
18029
18031
|
ot.prototype.reconnectEnd = function(e, t, n, a) {
|
|
18030
|
-
a || (a = {}), this.reconnect(e, e.source, t, n,
|
|
18032
|
+
a || (a = {}), this.reconnect(e, e.source, t, n, Ve(a, { docking: "target" }));
|
|
18031
18033
|
};
|
|
18032
18034
|
ot.prototype.connect = function(e, t, n, a) {
|
|
18033
18035
|
return this.createConnection(e, t, n || {}, e.parent, a);
|
|
@@ -18303,7 +18305,7 @@ function r_(e, t, n, a, o) {
|
|
|
18303
18305
|
return i_(Ps(n, e, c[0], p_(r)), Ps(a, t, c[1], r), l);
|
|
18304
18306
|
}
|
|
18305
18307
|
function l_(e, t, n, a, o, i) {
|
|
18306
|
-
st(n) && (o = n, i = a, n = Rt(e), a = Rt(t)), i =
|
|
18308
|
+
st(n) && (o = n, i = a, n = Rt(e), a = Rt(t)), i = Ve({ preferredLayouts: [] }, i), o = o || [];
|
|
18307
18309
|
var r = i.preferredLayouts.indexOf("straight") !== -1 && c_(e, t, n, a, i);
|
|
18308
18310
|
return r || (r = i.connectionEnd && d_(t, e, a, o), r) || (r = i.connectionStart && u_(e, t, n, o), r) ? r : !i.connectionStart && !i.connectionEnd && o && o.length ? o : r_(e, t, n, a, i);
|
|
18309
18311
|
}
|
|
@@ -18461,7 +18463,7 @@ function g_(e, t) {
|
|
|
18461
18463
|
return a === "top" ? ["t:r"] : a === "right" ? ["r:b"] : a === "left" ? ["l:t"] : ["b:l"];
|
|
18462
18464
|
}
|
|
18463
18465
|
function Bs(e) {
|
|
18464
|
-
return
|
|
18466
|
+
return Ve({ original: e.point.original || e.point }, e.actual);
|
|
18465
18467
|
}
|
|
18466
18468
|
function da(e, t) {
|
|
18467
18469
|
this._elementRegistry = e, this._graphicsFactory = t;
|
|
@@ -18738,28 +18740,28 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18738
18740
|
strokeWidth: 2,
|
|
18739
18741
|
fill: l
|
|
18740
18742
|
}), se.fill === "none" && delete se.fillOpacity;
|
|
18741
|
-
const
|
|
18742
|
-
return
|
|
18743
|
-
cx:
|
|
18743
|
+
const ye = E / 2, W = V / 2, G = Ge("circle");
|
|
18744
|
+
return Fe(G, {
|
|
18745
|
+
cx: ye,
|
|
18744
18746
|
cy: W,
|
|
18745
18747
|
r: Math.round((E + V) / 4 - q)
|
|
18746
|
-
}),
|
|
18748
|
+
}), Fe(G, se), qe(j, G), G;
|
|
18747
18749
|
}
|
|
18748
|
-
function x(j, E, V, q, se,
|
|
18749
|
-
Es(se) && (
|
|
18750
|
+
function x(j, E, V, q, se, ye) {
|
|
18751
|
+
Es(se) && (ye = se, se = 0), se = se || 0, ye = d(ye, {
|
|
18750
18752
|
stroke: c,
|
|
18751
18753
|
strokeWidth: 2,
|
|
18752
18754
|
fill: l
|
|
18753
18755
|
});
|
|
18754
18756
|
const W = Ge("rect");
|
|
18755
|
-
return
|
|
18757
|
+
return Fe(W, {
|
|
18756
18758
|
x: se,
|
|
18757
18759
|
y: se,
|
|
18758
18760
|
width: E - se * 2,
|
|
18759
18761
|
height: V - se * 2,
|
|
18760
18762
|
rx: q,
|
|
18761
18763
|
ry: q
|
|
18762
|
-
}),
|
|
18764
|
+
}), Fe(W, ye), qe(j, W), W;
|
|
18763
18765
|
}
|
|
18764
18766
|
function m(j, E, V) {
|
|
18765
18767
|
V = d(V, ["no-fill"], {
|
|
@@ -18767,17 +18769,17 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18767
18769
|
stroke: c
|
|
18768
18770
|
});
|
|
18769
18771
|
const q = Ge("path");
|
|
18770
|
-
return
|
|
18772
|
+
return Fe(q, { d: E }), Fe(q, V), qe(j, q), q;
|
|
18771
18773
|
}
|
|
18772
18774
|
function v(j, E, V, q) {
|
|
18773
|
-
const se = E / 2,
|
|
18775
|
+
const se = E / 2, ye = V / 2, W = [
|
|
18774
18776
|
{
|
|
18775
18777
|
x: se,
|
|
18776
18778
|
y: 0
|
|
18777
18779
|
},
|
|
18778
18780
|
{
|
|
18779
18781
|
x: E,
|
|
18780
|
-
y:
|
|
18782
|
+
y: ye
|
|
18781
18783
|
},
|
|
18782
18784
|
{
|
|
18783
18785
|
x: se,
|
|
@@ -18785,7 +18787,7 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18785
18787
|
},
|
|
18786
18788
|
{
|
|
18787
18789
|
x: 0,
|
|
18788
|
-
y:
|
|
18790
|
+
y: ye
|
|
18789
18791
|
}
|
|
18790
18792
|
].map((Q) => Q.x + "," + Q.y).join(" ");
|
|
18791
18793
|
q = d(q, {
|
|
@@ -18794,7 +18796,7 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18794
18796
|
fill: l
|
|
18795
18797
|
});
|
|
18796
18798
|
const G = Ge("polygon");
|
|
18797
|
-
return
|
|
18799
|
+
return Fe(G, { points: W }), Fe(G, q), qe(j, G), G;
|
|
18798
18800
|
}
|
|
18799
18801
|
function w(j, E, V, q) {
|
|
18800
18802
|
return m(E, V, xt({ "data-marker": j }, q));
|
|
@@ -18840,8 +18842,8 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18840
18842
|
compensation: -27,
|
|
18841
18843
|
loop: 0,
|
|
18842
18844
|
adhoc: 10
|
|
18843
|
-
}, Uw(V, (
|
|
18844
|
-
f(
|
|
18845
|
+
}, Uw(V, (ye) => {
|
|
18846
|
+
f(ye)(j, E, se);
|
|
18845
18847
|
});
|
|
18846
18848
|
}
|
|
18847
18849
|
function R(j) {
|
|
@@ -18851,7 +18853,7 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18851
18853
|
const { ref: V = {
|
|
18852
18854
|
x: 0,
|
|
18853
18855
|
y: 0
|
|
18854
|
-
}, scale: q = 1, element: se, parentGfx:
|
|
18856
|
+
}, scale: q = 1, element: se, parentGfx: ye = a._svg } = E, W = Ge("marker", {
|
|
18855
18857
|
id: j,
|
|
18856
18858
|
viewBox: "0 0 20 20",
|
|
18857
18859
|
refX: V.x,
|
|
@@ -18861,8 +18863,8 @@ function za(e, t, n, a, o, i, r) {
|
|
|
18861
18863
|
orient: "auto"
|
|
18862
18864
|
});
|
|
18863
18865
|
qe(W, se);
|
|
18864
|
-
let G = Zt(":scope > defs",
|
|
18865
|
-
G || (G = Ge("defs"), qe(
|
|
18866
|
+
let G = Zt(":scope > defs", ye);
|
|
18867
|
+
G || (G = Ge("defs"), qe(ye, G)), qe(G, W);
|
|
18866
18868
|
}
|
|
18867
18869
|
function A(j, E, V, q) {
|
|
18868
18870
|
const se = E + "-" + R(V) + "-" + R(q) + "-" + du();
|
|
@@ -19187,7 +19189,7 @@ function S_(e) {
|
|
|
19187
19189
|
};
|
|
19188
19190
|
}
|
|
19189
19191
|
function k_(e) {
|
|
19190
|
-
return dn(e) ?
|
|
19192
|
+
return dn(e) ? Ve({
|
|
19191
19193
|
top: 0,
|
|
19192
19194
|
left: 0,
|
|
19193
19195
|
right: 0,
|
|
@@ -19258,7 +19260,7 @@ function P_(e, t, n) {
|
|
|
19258
19260
|
return o || (o = e.slice(0, Math.max(Math.round(a - 1), 1))), o;
|
|
19259
19261
|
}
|
|
19260
19262
|
function Xi(e) {
|
|
19261
|
-
this._config =
|
|
19263
|
+
this._config = Ve({}, {
|
|
19262
19264
|
size: C_,
|
|
19263
19265
|
padding: x_,
|
|
19264
19266
|
style: {},
|
|
@@ -19272,7 +19274,7 @@ Xi.prototype.getDimensions = function(e, t) {
|
|
|
19272
19274
|
return this.layoutText(e, t).dimensions;
|
|
19273
19275
|
};
|
|
19274
19276
|
Xi.prototype.layoutText = function(e, t) {
|
|
19275
|
-
for (var n =
|
|
19277
|
+
for (var n = Ve({}, this._config.size, t.box), a = Ve({}, this._config.style, t.style), o = S_(t.align || this._config.align), i = k_(t.padding !== void 0 ? t.padding : this._config.padding), r = t.fitBox || !1, l = B_(a), c = e.split(/\u00AD?\r?\n/), s = [], d = n.width - i.left - i.right; c.length; ) s.push(A_(c, d, a));
|
|
19276
19278
|
o.vertical === "middle" && (i.top = i.bottom = 0);
|
|
19277
19279
|
var f = mr(s, function(g, b, x) {
|
|
19278
19280
|
return g + (l || b.height);
|
|
@@ -19281,7 +19283,7 @@ Xi.prototype.layoutText = function(e, t) {
|
|
|
19281
19283
|
}, 0), h = i.top;
|
|
19282
19284
|
o.vertical === "middle" && (h += (n.height - f) / 2), h -= (l || s[0].height) / 4;
|
|
19283
19285
|
var p = Ge("text");
|
|
19284
|
-
return
|
|
19286
|
+
return Fe(p, a), de(s, function(g) {
|
|
19285
19287
|
var b;
|
|
19286
19288
|
switch (h += l || g.height, o.horizontal) {
|
|
19287
19289
|
case "left":
|
|
@@ -19294,7 +19296,7 @@ Xi.prototype.layoutText = function(e, t) {
|
|
|
19294
19296
|
b = Math.max(((r ? u : d) - g.width) / 2 + i.left, 0);
|
|
19295
19297
|
}
|
|
19296
19298
|
var x = Ge("tspan");
|
|
19297
|
-
|
|
19299
|
+
Fe(x, {
|
|
19298
19300
|
x: b,
|
|
19299
19301
|
y: h
|
|
19300
19302
|
}), x.textContent = g.text, qe(p, x);
|
|
@@ -19574,7 +19576,7 @@ var Du = { myImporter: ["type", fa] }, $u = (e) => {
|
|
|
19574
19576
|
}), o.forEach((i) => {
|
|
19575
19577
|
n.add(i);
|
|
19576
19578
|
});
|
|
19577
|
-
}, N_ = /* @__PURE__ */
|
|
19579
|
+
}, N_ = /* @__PURE__ */ ge({
|
|
19578
19580
|
name: "JWorkflowViewer",
|
|
19579
19581
|
__name: "workflow-viewer",
|
|
19580
19582
|
props: {
|
|
@@ -19906,13 +19908,13 @@ function jr(e, t) {
|
|
|
19906
19908
|
var n = Ge("g");
|
|
19907
19909
|
ht(n).add(Wu), qe(e, n);
|
|
19908
19910
|
var a = Ge("circle");
|
|
19909
|
-
|
|
19911
|
+
Fe(a, {
|
|
19910
19912
|
cx: 0,
|
|
19911
19913
|
cy: 0,
|
|
19912
19914
|
r: 4
|
|
19913
19915
|
}), ht(a).add("djs-visual"), qe(n, a);
|
|
19914
19916
|
var o = Ge("circle");
|
|
19915
|
-
return
|
|
19917
|
+
return Fe(o, {
|
|
19916
19918
|
cx: 0,
|
|
19917
19919
|
cy: 0,
|
|
19918
19920
|
r: 10
|
|
@@ -19922,14 +19924,14 @@ function ax(e, t, n, a) {
|
|
|
19922
19924
|
var o = Ge("g");
|
|
19923
19925
|
qe(e, o);
|
|
19924
19926
|
var i = 18, r = 6, l = 11, c = ix(t, n, a), s = r + l, d = Ge("rect");
|
|
19925
|
-
|
|
19927
|
+
Fe(d, {
|
|
19926
19928
|
x: -i / 2,
|
|
19927
19929
|
y: -r / 2,
|
|
19928
19930
|
width: i,
|
|
19929
19931
|
height: r
|
|
19930
19932
|
}), ht(d).add("djs-visual"), qe(o, d);
|
|
19931
19933
|
var f = Ge("rect");
|
|
19932
|
-
return
|
|
19934
|
+
return Fe(f, {
|
|
19933
19935
|
x: -c / 2,
|
|
19934
19936
|
y: -s / 2,
|
|
19935
19937
|
width: c,
|
|
@@ -19984,7 +19986,7 @@ function Ju(e, t, n, a, o) {
|
|
|
19984
19986
|
}
|
|
19985
19987
|
function s(v, w) {
|
|
19986
19988
|
var C = t.getLayer("overlays"), y = Zt('.djs-bendpoints[data-element-id="' + Cl(v.id) + '"]', C);
|
|
19987
|
-
return !y && w && (y = Ge("g"),
|
|
19989
|
+
return !y && w && (y = Ge("g"), Fe(y, { "data-element-id": v.id }), ht(y).add("djs-bendpoints"), qe(C, y), c(y, "mousedown", v), c(y, "click", v), c(y, "dblclick", v)), y;
|
|
19988
19990
|
}
|
|
19989
19991
|
function d(v, w) {
|
|
19990
19992
|
return Zt('.djs-segment-dragger[data-segment-idx="' + v + '"]', w);
|
|
@@ -19997,7 +19999,7 @@ function Ju(e, t, n, a, o) {
|
|
|
19997
19999
|
}
|
|
19998
20000
|
function u(v, w) {
|
|
19999
20001
|
for (var C = w.waypoints, y, _, k, R = 1; R < C.length; R++)
|
|
20000
|
-
y = C[R - 1], _ = C[R], ea(y, _) && (k = Yu(v, y, _),
|
|
20002
|
+
y = C[R - 1], _ = C[R], ea(y, _) && (k = Yu(v, y, _), Fe(k, { "data-segment-idx": R }), c(k, "mousemove", w));
|
|
20001
20003
|
}
|
|
20002
20004
|
function h(v) {
|
|
20003
20005
|
de(gr("." + Wu, v), function(w) {
|
|
@@ -20063,7 +20065,7 @@ function Ju(e, t, n, a, o) {
|
|
|
20063
20065
|
var w = v.element, C = v.newId;
|
|
20064
20066
|
if (w.waypoints) {
|
|
20065
20067
|
var y = s(w);
|
|
20066
|
-
y &&
|
|
20068
|
+
y && Fe(y, { "data-element-id": C });
|
|
20067
20069
|
}
|
|
20068
20070
|
}), this.addHandles = g, this.updateHandles = b, this.getBendpointsContainer = s, this.getSegmentDragger = d;
|
|
20069
20071
|
}
|
|
@@ -20382,7 +20384,7 @@ function Zu(e) {
|
|
|
20382
20384
|
if (r) {
|
|
20383
20385
|
s = t(r.vertical, l), d = t(r.horizontal, c);
|
|
20384
20386
|
var f = l - s, u = c - d;
|
|
20385
|
-
|
|
20387
|
+
Ve(i, {
|
|
20386
20388
|
dx: i.dx - f,
|
|
20387
20389
|
dy: i.dy - u,
|
|
20388
20390
|
x: s,
|
|
@@ -20413,7 +20415,7 @@ function Zu(e) {
|
|
|
20413
20415
|
if (l) {
|
|
20414
20416
|
u = t(s ? l.vertical.concat([s.x]) : l.vertical, d), h = t(s ? l.horizontal.concat([s.y]) : l.horizontal, f);
|
|
20415
20417
|
var p = d - u, g = f - h;
|
|
20416
|
-
|
|
20418
|
+
Ve(i, {
|
|
20417
20419
|
dx: i.dx - p,
|
|
20418
20420
|
dy: i.dy - g,
|
|
20419
20421
|
x: i.x - p,
|
|
@@ -20479,7 +20481,7 @@ Jn.prototype.getConnection = function(e) {
|
|
|
20479
20481
|
};
|
|
20480
20482
|
Jn.prototype.createConnectionPreviewGfx = function() {
|
|
20481
20483
|
var e = Ge("g");
|
|
20482
|
-
return
|
|
20484
|
+
return Fe(e, { pointerEvents: "none" }), ht(e).add(yx), qe(this._canvas.getActiveLayer(), e), e;
|
|
20483
20485
|
};
|
|
20484
20486
|
Jn.prototype.createNoopConnection = function(e, t) {
|
|
20485
20487
|
return Kr([e, t], {
|
|
@@ -20504,7 +20506,7 @@ var wx = {
|
|
|
20504
20506
|
connectionPreview: ["type", Jn]
|
|
20505
20507
|
}, _x = new Di("ov"), xx = 500;
|
|
20506
20508
|
function Vt(e, t, n, a) {
|
|
20507
|
-
this._eventBus = t, this._canvas = n, this._elementRegistry = a, this._ids = _x, this._overlayDefaults =
|
|
20509
|
+
this._eventBus = t, this._canvas = n, this._elementRegistry = a, this._ids = _x, this._overlayDefaults = Ve({
|
|
20508
20510
|
show: null,
|
|
20509
20511
|
scale: !0
|
|
20510
20512
|
}, e && e.defaults), this._overlays = {}, this._overlayContainers = [], this._overlayRoot = Cx(n.getContainer()), this._init();
|
|
@@ -20526,7 +20528,7 @@ Vt.prototype.add = function(e, t, n) {
|
|
|
20526
20528
|
if (!n.html) throw new Error("must specifiy overlay html");
|
|
20527
20529
|
if (!e) throw new Error("invalid element specified");
|
|
20528
20530
|
var a = this._ids.next();
|
|
20529
|
-
return n =
|
|
20531
|
+
return n = Ve({}, this._overlayDefaults, n, {
|
|
20530
20532
|
id: a,
|
|
20531
20533
|
type: t,
|
|
20532
20534
|
element: e,
|
|
@@ -21106,7 +21108,7 @@ function ha(e, t, n, a, o, i, r) {
|
|
|
21106
21108
|
var l = this, c = {
|
|
21107
21109
|
create: function(f) {
|
|
21108
21110
|
var u = t.getActiveLayer(), h = f.frame = Ge("rect");
|
|
21109
|
-
|
|
21111
|
+
Fe(h, {
|
|
21110
21112
|
class: "djs-lasso-overlay",
|
|
21111
21113
|
width: 1,
|
|
21112
21114
|
height: 1,
|
|
@@ -21116,7 +21118,7 @@ function ha(e, t, n, a, o, i, r) {
|
|
|
21116
21118
|
},
|
|
21117
21119
|
update: function(f) {
|
|
21118
21120
|
var u = f.frame, h = f.bbox;
|
|
21119
|
-
u && h &&
|
|
21121
|
+
u && h && Fe(u, {
|
|
21120
21122
|
x: h.x,
|
|
21121
21123
|
y: h.y,
|
|
21122
21124
|
width: h.width,
|
|
@@ -21313,7 +21315,7 @@ function Da(e, t) {
|
|
|
21313
21315
|
var n = t.cls("djs-outline", ["no-fill"]), a = this;
|
|
21314
21316
|
function o(i) {
|
|
21315
21317
|
var r = Ge("rect");
|
|
21316
|
-
return
|
|
21318
|
+
return Fe(r, Ve({
|
|
21317
21319
|
x: 0,
|
|
21318
21320
|
y: 0,
|
|
21319
21321
|
rx: 4,
|
|
@@ -21333,7 +21335,7 @@ Da.prototype.updateShapeOutline = function(e, t) {
|
|
|
21333
21335
|
var n = !1, a = this._getProviders();
|
|
21334
21336
|
a.length && de(a, function(o) {
|
|
21335
21337
|
n = n || o.updateOutline(t, e);
|
|
21336
|
-
}), n ||
|
|
21338
|
+
}), n || Fe(e, {
|
|
21337
21339
|
x: -this.offset,
|
|
21338
21340
|
y: -this.offset,
|
|
21339
21341
|
width: t.width + this.offset * 2,
|
|
@@ -21342,7 +21344,7 @@ Da.prototype.updateShapeOutline = function(e, t) {
|
|
|
21342
21344
|
};
|
|
21343
21345
|
Da.prototype.updateConnectionOutline = function(e, t) {
|
|
21344
21346
|
var n = On(t);
|
|
21345
|
-
|
|
21347
|
+
Fe(e, {
|
|
21346
21348
|
x: n.x - this.offset,
|
|
21347
21349
|
y: n.y - this.offset,
|
|
21348
21350
|
width: n.width + this.offset * 2,
|
|
@@ -21389,7 +21391,7 @@ Al.prototype._updateMultiSelectionOutline = function(e) {
|
|
|
21389
21391
|
var n = e.length > 1;
|
|
21390
21392
|
if (ht(this._canvas.getContainer())[n ? "add" : "remove"]("djs-multi-select"), !!n) {
|
|
21391
21393
|
var a = Wx(On(e)), o = Ge("rect");
|
|
21392
|
-
|
|
21394
|
+
Fe(o, Ve({ rx: 3 }, a)), ht(o).add("djs-selection-outline"), qe(t, o);
|
|
21393
21395
|
}
|
|
21394
21396
|
};
|
|
21395
21397
|
Al.$inject = [
|
|
@@ -21428,7 +21430,7 @@ function od(e, t, n, a, o) {
|
|
|
21428
21430
|
}
|
|
21429
21431
|
e.on("shape.move.start", Jx, function(l) {
|
|
21430
21432
|
var c = l.context, s = l.shape, d = a.get().slice();
|
|
21431
|
-
d.indexOf(s) === -1 && (d = [s]), d = Kx(d),
|
|
21433
|
+
d.indexOf(s) === -1 && (d = [s]), d = Kx(d), Ve(c, {
|
|
21432
21434
|
shapes: d,
|
|
21433
21435
|
validatedShapes: d,
|
|
21434
21436
|
shape: s
|
|
@@ -21518,7 +21520,7 @@ function id(e, t, n, a) {
|
|
|
21518
21520
|
var s = c.context, d = s.shapes, f = s.allDraggedElements, u = o(d);
|
|
21519
21521
|
if (!s.dragGroup) {
|
|
21520
21522
|
var h = Ge("g");
|
|
21521
|
-
|
|
21523
|
+
Fe(h, n.cls("djs-drag-group", ["no-events"])), qe(t.getActiveLayer(), h), s.dragGroup = h;
|
|
21522
21524
|
}
|
|
21523
21525
|
u.forEach(function(p) {
|
|
21524
21526
|
a.addDragger(p, s.dragGroup);
|
|
@@ -21823,7 +21825,7 @@ Yo.prototype.canResize = function(e) {
|
|
|
21823
21825
|
};
|
|
21824
21826
|
Yo.prototype.activate = function(e, t, n) {
|
|
21825
21827
|
var a = this._dragging, o, i;
|
|
21826
|
-
if (typeof n == "string" && (n = { direction: n }), o =
|
|
21828
|
+
if (typeof n == "string" && (n = { direction: n }), o = Ve({ shape: t }, n), i = o.direction, !i) throw new Error("must provide a direction (n|w|s|e|nw|se|ne|sw)");
|
|
21827
21829
|
a.init(e, cd(t, i), "resize", {
|
|
21828
21830
|
autoActivate: !0,
|
|
21829
21831
|
cursor: pC(i),
|
|
@@ -21864,10 +21866,10 @@ var cc = "djs-resizing", uc = "resize-not-ok", gC = 500;
|
|
|
21864
21866
|
function ud(e, t, n) {
|
|
21865
21867
|
function a(i) {
|
|
21866
21868
|
var r = i.shape, l = i.newBounds, c = i.frame;
|
|
21867
|
-
c || (c = i.frame = n.addFrame(r, t.getActiveLayer()), t.addMarker(r, cc)), l.width > 5 &&
|
|
21869
|
+
c || (c = i.frame = n.addFrame(r, t.getActiveLayer()), t.addMarker(r, cc)), l.width > 5 && Fe(c, {
|
|
21868
21870
|
x: l.x,
|
|
21869
21871
|
width: l.width
|
|
21870
|
-
}), l.height > 5 &&
|
|
21872
|
+
}), l.height > 5 && Fe(c, {
|
|
21871
21873
|
y: l.y,
|
|
21872
21874
|
height: l.height
|
|
21873
21875
|
}), i.canExecute ? ht(c).remove(uc) : ht(c).add(uc);
|
|
@@ -21919,14 +21921,14 @@ pa.prototype._createResizer = function(e, t, n, a) {
|
|
|
21919
21921
|
var o = this._getResizersParent(), i = yC(a), r = Ge("g");
|
|
21920
21922
|
ht(r).add(yo), ht(r).add(yo + "-" + e.id), ht(r).add(yo + "-" + a), qe(o, r);
|
|
21921
21923
|
var l = Ge("rect");
|
|
21922
|
-
|
|
21924
|
+
Fe(l, {
|
|
21923
21925
|
x: -yi / 2 + i.x,
|
|
21924
21926
|
y: -yi / 2 + i.y,
|
|
21925
21927
|
width: yi,
|
|
21926
21928
|
height: yi
|
|
21927
21929
|
}), ht(l).add(yo + "-visual"), qe(r, l);
|
|
21928
21930
|
var c = Ge("rect");
|
|
21929
|
-
return
|
|
21931
|
+
return Fe(c, {
|
|
21930
21932
|
x: -mi / 2 + i.x,
|
|
21931
21933
|
y: -mi / 2 + i.y,
|
|
21932
21934
|
width: mi,
|
|
@@ -22320,14 +22322,14 @@ va.prototype.snap = function(e, t) {
|
|
|
22320
22322
|
};
|
|
22321
22323
|
va.prototype._createLine = function(e) {
|
|
22322
22324
|
var t = this._canvas.getLayer("snap"), n = Ge("path");
|
|
22323
|
-
return
|
|
22324
|
-
It(a) ? e === "horizontal" ?
|
|
22325
|
+
return Fe(n, { d: "M0,0 L0,0" }), ht(n).add("djs-snap-line"), qe(t, n), { update: function(a) {
|
|
22326
|
+
It(a) ? e === "horizontal" ? Fe(n, {
|
|
22325
22327
|
d: "M-100000," + a + " L+100000," + a,
|
|
22326
22328
|
display: ""
|
|
22327
|
-
}) :
|
|
22329
|
+
}) : Fe(n, {
|
|
22328
22330
|
d: "M " + a + ",-100000 L " + a + ", +100000",
|
|
22329
22331
|
display: ""
|
|
22330
|
-
}) :
|
|
22332
|
+
}) : Fe(n, { display: "none" });
|
|
22331
22333
|
} };
|
|
22332
22334
|
};
|
|
22333
22335
|
va.prototype._createSnapLines = function() {
|
|
@@ -22712,7 +22714,7 @@ jl.prototype.getContextPadEntries = function(e) {
|
|
|
22712
22714
|
var ZC = {
|
|
22713
22715
|
__init__: ["ContextPadProvider"],
|
|
22714
22716
|
ContextPadProvider: ["type", jl]
|
|
22715
|
-
}, QC = /* @__PURE__ */
|
|
22717
|
+
}, QC = /* @__PURE__ */ ge({
|
|
22716
22718
|
name: "JWorkflow",
|
|
22717
22719
|
__name: "workflow",
|
|
22718
22720
|
props: {
|
|
@@ -22874,7 +22876,7 @@ var ZC = {
|
|
|
22874
22876
|
class: "j-work-flow"
|
|
22875
22877
|
}, null, 512));
|
|
22876
22878
|
}
|
|
22877
|
-
}), e1 = QC, t1 = Ce(W_), n1 = Ce(e1), a1 = /* @__PURE__ */
|
|
22879
|
+
}), e1 = QC, t1 = Ce(W_), n1 = Ce(e1), a1 = /* @__PURE__ */ ge({
|
|
22878
22880
|
name: "JInputCards",
|
|
22879
22881
|
__name: "input-cards",
|
|
22880
22882
|
props: {
|