@a2simcode/ui 0.0.260 → 0.0.261
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
CHANGED
|
@@ -842,8 +842,8 @@ var ah = /* @__PURE__ */ pn(((e, t) => {
|
|
|
842
842
|
var w = b + x, m = g[w];
|
|
843
843
|
g[w] = (m << 8 | m >>> 24) & 16711935 | (m << 24 | m >>> 8) & 4278255360;
|
|
844
844
|
}
|
|
845
|
-
var y = this._hash.words, C = g[b + 0], v = g[b + 1], _ = g[b + 2], S = g[b + 3], R = g[b + 4], j = g[b + 5], T = g[b + 6], H = g[b + 7], B = g[b + 8], M = g[b + 9], A = g[b + 10], E = g[b + 11],
|
|
846
|
-
q = f(q, Q, U,
|
|
845
|
+
var y = this._hash.words, C = g[b + 0], v = g[b + 1], _ = g[b + 2], S = g[b + 3], R = g[b + 4], j = g[b + 5], T = g[b + 6], H = g[b + 7], B = g[b + 8], M = g[b + 9], A = g[b + 10], E = g[b + 11], I = g[b + 12], K = g[b + 13], ae = g[b + 14], _e = g[b + 15], q = y[0], Q = y[1], U = y[2], z = y[3];
|
|
846
|
+
q = f(q, Q, U, z, C, 7, s[0]), z = f(z, q, Q, U, v, 12, s[1]), U = f(U, z, q, Q, _, 17, s[2]), Q = f(Q, U, z, q, S, 22, s[3]), q = f(q, Q, U, z, R, 7, s[4]), z = f(z, q, Q, U, j, 12, s[5]), U = f(U, z, q, Q, T, 17, s[6]), Q = f(Q, U, z, q, H, 22, s[7]), q = f(q, Q, U, z, B, 7, s[8]), z = f(z, q, Q, U, M, 12, s[9]), U = f(U, z, q, Q, A, 17, s[10]), Q = f(Q, U, z, q, E, 22, s[11]), q = f(q, Q, U, z, I, 7, s[12]), z = f(z, q, Q, U, K, 12, s[13]), U = f(U, z, q, Q, ae, 17, s[14]), Q = f(Q, U, z, q, _e, 22, s[15]), q = u(q, Q, U, z, v, 5, s[16]), z = u(z, q, Q, U, T, 9, s[17]), U = u(U, z, q, Q, E, 14, s[18]), Q = u(Q, U, z, q, C, 20, s[19]), q = u(q, Q, U, z, j, 5, s[20]), z = u(z, q, Q, U, A, 9, s[21]), U = u(U, z, q, Q, _e, 14, s[22]), Q = u(Q, U, z, q, R, 20, s[23]), q = u(q, Q, U, z, M, 5, s[24]), z = u(z, q, Q, U, ae, 9, s[25]), U = u(U, z, q, Q, S, 14, s[26]), Q = u(Q, U, z, q, B, 20, s[27]), q = u(q, Q, U, z, K, 5, s[28]), z = u(z, q, Q, U, _, 9, s[29]), U = u(U, z, q, Q, H, 14, s[30]), Q = u(Q, U, z, q, I, 20, s[31]), q = h(q, Q, U, z, j, 4, s[32]), z = h(z, q, Q, U, B, 11, s[33]), U = h(U, z, q, Q, E, 16, s[34]), Q = h(Q, U, z, q, ae, 23, s[35]), q = h(q, Q, U, z, v, 4, s[36]), z = h(z, q, Q, U, R, 11, s[37]), U = h(U, z, q, Q, H, 16, s[38]), Q = h(Q, U, z, q, A, 23, s[39]), q = h(q, Q, U, z, K, 4, s[40]), z = h(z, q, Q, U, C, 11, s[41]), U = h(U, z, q, Q, S, 16, s[42]), Q = h(Q, U, z, q, T, 23, s[43]), q = h(q, Q, U, z, M, 4, s[44]), z = h(z, q, Q, U, I, 11, s[45]), U = h(U, z, q, Q, _e, 16, s[46]), Q = h(Q, U, z, q, _, 23, s[47]), q = p(q, Q, U, z, C, 6, s[48]), z = p(z, q, Q, U, H, 10, s[49]), U = p(U, z, q, Q, ae, 15, s[50]), Q = p(Q, U, z, q, j, 21, s[51]), q = p(q, Q, U, z, I, 6, s[52]), z = p(z, q, Q, U, S, 10, s[53]), U = p(U, z, q, Q, A, 15, s[54]), Q = p(Q, U, z, q, v, 21, s[55]), q = p(q, Q, U, z, B, 6, s[56]), z = p(z, q, Q, U, _e, 10, s[57]), U = p(U, z, q, Q, T, 15, s[58]), Q = p(Q, U, z, q, K, 21, s[59]), q = p(q, Q, U, z, R, 6, s[60]), z = p(z, q, Q, U, E, 10, s[61]), U = p(U, z, q, Q, _, 15, s[62]), Q = p(Q, U, z, q, M, 21, s[63]), y[0] = y[0] + q | 0, y[1] = y[1] + Q | 0, y[2] = y[2] + U | 0, y[3] = y[3] + z | 0;
|
|
847
847
|
},
|
|
848
848
|
_doFinalize: function() {
|
|
849
849
|
var g = this._data, b = g.words, x = this._nDataBytes * 8, w = g.sigBytes * 8;
|
|
@@ -1219,11 +1219,11 @@ var ah = /* @__PURE__ */ pn(((e, t) => {
|
|
|
1219
1219
|
},
|
|
1220
1220
|
_doCryptBlock: function(w, m, y, C, v, _, S, R) {
|
|
1221
1221
|
for (var j = this._nRounds, T = w[m] ^ y[0], H = w[m + 1] ^ y[1], B = w[m + 2] ^ y[2], M = w[m + 3] ^ y[3], A = 4, E = 1; E < j; E++) {
|
|
1222
|
-
var
|
|
1223
|
-
T =
|
|
1222
|
+
var I = C[T >>> 24] ^ v[H >>> 16 & 255] ^ _[B >>> 8 & 255] ^ S[M & 255] ^ y[A++], K = C[H >>> 24] ^ v[B >>> 16 & 255] ^ _[M >>> 8 & 255] ^ S[T & 255] ^ y[A++], ae = C[B >>> 24] ^ v[M >>> 16 & 255] ^ _[T >>> 8 & 255] ^ S[H & 255] ^ y[A++], _e = C[M >>> 24] ^ v[T >>> 16 & 255] ^ _[H >>> 8 & 255] ^ S[B & 255] ^ y[A++];
|
|
1223
|
+
T = I, H = K, B = ae, M = _e;
|
|
1224
1224
|
}
|
|
1225
|
-
var
|
|
1226
|
-
w[m] =
|
|
1225
|
+
var I = (R[T >>> 24] << 24 | R[H >>> 16 & 255] << 16 | R[B >>> 8 & 255] << 8 | R[M & 255]) ^ y[A++], K = (R[H >>> 24] << 24 | R[B >>> 16 & 255] << 16 | R[M >>> 8 & 255] << 8 | R[T & 255]) ^ y[A++], ae = (R[B >>> 24] << 24 | R[M >>> 16 & 255] << 16 | R[T >>> 8 & 255] << 8 | R[H & 255]) ^ y[A++], _e = (R[M >>> 24] << 24 | R[T >>> 16 & 255] << 16 | R[H >>> 8 & 255] << 8 | R[B & 255]) ^ y[A++];
|
|
1226
|
+
w[m] = I, w[m + 1] = K, w[m + 2] = ae, w[m + 3] = _e;
|
|
1227
1227
|
},
|
|
1228
1228
|
keySize: 256 / 32
|
|
1229
1229
|
});
|
|
@@ -1270,8 +1270,8 @@ var ah = /* @__PURE__ */ pn(((e, t) => {
|
|
|
1270
1270
|
var R = f[S - 15], j = (R << 25 | R >>> 7) ^ (R << 14 | R >>> 18) ^ R >>> 3, T = f[S - 2], H = (T << 15 | T >>> 17) ^ (T << 13 | T >>> 19) ^ T >>> 10;
|
|
1271
1271
|
f[S] = j + f[S - 7] + H + f[S - 16];
|
|
1272
1272
|
}
|
|
1273
|
-
var B = y & C ^ ~y & v, M = b & x ^ b & w ^ x & w, A = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), E = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25),
|
|
1274
|
-
_ = v, v = C, C = y, y = m +
|
|
1273
|
+
var B = y & C ^ ~y & v, M = b & x ^ b & w ^ x & w, A = (b << 30 | b >>> 2) ^ (b << 19 | b >>> 13) ^ (b << 10 | b >>> 22), E = (y << 26 | y >>> 6) ^ (y << 21 | y >>> 11) ^ (y << 7 | y >>> 25), I = _ + E + B + d[S] + f[S], K = A + M;
|
|
1274
|
+
_ = v, v = C, C = y, y = m + I | 0, m = w, w = x, x = b, b = I + K | 0;
|
|
1275
1275
|
}
|
|
1276
1276
|
g[0] = g[0] + b | 0, g[1] = g[1] + x | 0, g[2] = g[2] + w | 0, g[3] = g[3] + m | 0, g[4] = g[4] + y | 0, g[5] = g[5] + C | 0, g[6] = g[6] + v | 0, g[7] = g[7] + _ | 0;
|
|
1277
1277
|
},
|
|
@@ -1421,7 +1421,7 @@ var ah = /* @__PURE__ */ pn(((e, t) => {
|
|
|
1421
1421
|
]);
|
|
1422
1422
|
},
|
|
1423
1423
|
_doProcessBlock: function(h, p) {
|
|
1424
|
-
for (var g = this._hash.words, b = g[0], x = g[1], w = g[2], m = g[3], y = g[4], C = g[5], v = g[6], _ = g[7], S = b.high, R = b.low, j = x.high, T = x.low, H = w.high, B = w.low, M = m.high, A = m.low, E = y.high,
|
|
1424
|
+
for (var g = this._hash.words, b = g[0], x = g[1], w = g[2], m = g[3], y = g[4], C = g[5], v = g[6], _ = g[7], S = b.high, R = b.low, j = x.high, T = x.low, H = w.high, B = w.low, M = m.high, A = m.low, E = y.high, I = y.low, K = C.high, ae = C.low, _e = v.high, q = v.low, Q = _.high, U = _.low, z = S, Re = R, Ve = j, xe = T, Ne = H, et = B, xt = M, ie = A, Se = E, Ie = I, Y = K, ke = ae, ve = _e, Be = q, ot = Q, Fe = U, Ue = 0; Ue < 80; Ue++) {
|
|
1425
1425
|
var gt, zt, Jt = f[Ue];
|
|
1426
1426
|
if (Ue < 16)
|
|
1427
1427
|
zt = Jt.high = h[p + Ue * 2] | 0, gt = Jt.low = h[p + Ue * 2 + 1] | 0;
|
|
@@ -1429,10 +1429,10 @@ var ah = /* @__PURE__ */ pn(((e, t) => {
|
|
|
1429
1429
|
var _n = f[Ue - 15], dt = _n.high, Ut = _n.low, Rt = (dt >>> 1 | Ut << 31) ^ (dt >>> 8 | Ut << 24) ^ dt >>> 7, Et = (Ut >>> 1 | dt << 31) ^ (Ut >>> 8 | dt << 24) ^ (Ut >>> 7 | dt << 25), on = f[Ue - 2], Bt = on.high, Pt = on.low, gn = (Bt >>> 19 | Pt << 13) ^ (Bt << 3 | Pt >>> 29) ^ Bt >>> 6, X = (Pt >>> 19 | Bt << 13) ^ (Pt << 3 | Bt >>> 29) ^ (Pt >>> 6 | Bt << 26), me = f[Ue - 7], re = me.high, le = me.low, Ce = f[Ue - 16], He = Ce.high, We = Ce.low;
|
|
1430
1430
|
gt = Et + le, zt = Rt + re + (gt >>> 0 < Et >>> 0 ? 1 : 0), gt = gt + X, zt = zt + gn + (gt >>> 0 < X >>> 0 ? 1 : 0), gt = gt + We, zt = zt + He + (gt >>> 0 < We >>> 0 ? 1 : 0), Jt.high = zt, Jt.low = gt;
|
|
1431
1431
|
}
|
|
1432
|
-
var ft = Se & Y ^ ~Se & ve, Tt = Ie & ke ^ ~Ie & Be, wt =
|
|
1433
|
-
ot = ve, Fe = Be, ve = Y, Be = ke, Y = Se, ke = Ie, Ie = ie + Qt | 0, Se = xt + he + (Ie >>> 0 < ie >>> 0 ? 1 : 0) | 0, xt = Ne, ie = et, Ne = Ve, et = xe, Ve =
|
|
1432
|
+
var ft = Se & Y ^ ~Se & ve, Tt = Ie & ke ^ ~Ie & Be, wt = z & Ve ^ z & Ne ^ Ve & Ne, Hn = Re & xe ^ Re & et ^ xe & et, Ta = (z >>> 28 | Re << 4) ^ (z << 30 | Re >>> 2) ^ (z << 25 | Re >>> 7), no = (Re >>> 28 | z << 4) ^ (Re << 30 | z >>> 2) ^ (Re << 25 | z >>> 7), ao = (Se >>> 14 | Ie << 18) ^ (Se >>> 18 | Ie << 14) ^ (Se << 23 | Ie >>> 9), vn = (Ie >>> 14 | Se << 18) ^ (Ie >>> 18 | Se << 14) ^ (Ie << 23 | Se >>> 9), ia = d[Ue], ja = ia.high, ra = ia.low, Qt = Fe + vn, he = ot + ao + (Qt >>> 0 < Fe >>> 0 ? 1 : 0), Qt = Qt + Tt, he = he + ft + (Qt >>> 0 < Tt >>> 0 ? 1 : 0), Qt = Qt + ra, he = he + ja + (Qt >>> 0 < ra >>> 0 ? 1 : 0), Qt = Qt + gt, he = he + zt + (Qt >>> 0 < gt >>> 0 ? 1 : 0), de = no + Hn, $e = Ta + wt + (de >>> 0 < no >>> 0 ? 1 : 0);
|
|
1433
|
+
ot = ve, Fe = Be, ve = Y, Be = ke, Y = Se, ke = Ie, Ie = ie + Qt | 0, Se = xt + he + (Ie >>> 0 < ie >>> 0 ? 1 : 0) | 0, xt = Ne, ie = et, Ne = Ve, et = xe, Ve = z, xe = Re, Re = Qt + de | 0, z = he + $e + (Re >>> 0 < Qt >>> 0 ? 1 : 0) | 0;
|
|
1434
1434
|
}
|
|
1435
|
-
R = b.low = R + Re, b.high = S +
|
|
1435
|
+
R = b.low = R + Re, b.high = S + z + (R >>> 0 < Re >>> 0 ? 1 : 0), T = x.low = T + xe, x.high = j + Ve + (T >>> 0 < xe >>> 0 ? 1 : 0), B = w.low = B + et, w.high = H + Ne + (B >>> 0 < et >>> 0 ? 1 : 0), A = m.low = A + ie, m.high = M + xt + (A >>> 0 < ie >>> 0 ? 1 : 0), I = y.low = I + Ie, y.high = E + Se + (I >>> 0 < Ie >>> 0 ? 1 : 0), ae = C.low = ae + ke, C.high = K + Y + (ae >>> 0 < ke >>> 0 ? 1 : 0), q = v.low = q + Be, v.high = _e + ve + (q >>> 0 < Be >>> 0 ? 1 : 0), U = _.low = U + Fe, _.high = Q + ot + (U >>> 0 < Fe >>> 0 ? 1 : 0);
|
|
1436
1436
|
},
|
|
1437
1437
|
_doFinalize: function() {
|
|
1438
1438
|
var h = this._data, p = h.words, g = this._nDataBytes * 8, b = h.sigBytes * 8;
|
|
@@ -3442,7 +3442,7 @@ var Ih = Te(Nc), zh = /* @__PURE__ */ we({
|
|
|
3442
3442
|
minHeight: t.midMinHeight + "px"
|
|
3443
3443
|
})), R = (M, A) => {
|
|
3444
3444
|
f.type = M, f.isMove = !0, f.pageX = A.pageX, f.pageY = A.pageY, f.h = o.value.clientHeight, f.w = o.value.clientWidth;
|
|
3445
|
-
const E = a.value.clientWidth,
|
|
3445
|
+
const E = a.value.clientWidth, I = a.value.clientHeight;
|
|
3446
3446
|
switch (M) {
|
|
3447
3447
|
case "left": {
|
|
3448
3448
|
const K = u.value;
|
|
@@ -3456,12 +3456,12 @@ var Ih = Te(Nc), zh = /* @__PURE__ */ we({
|
|
|
3456
3456
|
}
|
|
3457
3457
|
case "top": {
|
|
3458
3458
|
const K = p.value;
|
|
3459
|
-
f.size = typeof K == "string" && K.includes("%") ? parseFloat(K) / 100 *
|
|
3459
|
+
f.size = typeof K == "string" && K.includes("%") ? parseFloat(K) / 100 * I : Number(K);
|
|
3460
3460
|
break;
|
|
3461
3461
|
}
|
|
3462
3462
|
case "bottom": {
|
|
3463
3463
|
const K = g.value;
|
|
3464
|
-
f.size = typeof K == "string" && K.includes("%") ? parseFloat(K) / 100 *
|
|
3464
|
+
f.size = typeof K == "string" && K.includes("%") ? parseFloat(K) / 100 * I : Number(K);
|
|
3465
3465
|
break;
|
|
3466
3466
|
}
|
|
3467
3467
|
}
|
|
@@ -5261,6 +5261,10 @@ var $p = class {
|
|
|
5261
5261
|
plabelWidth: {
|
|
5262
5262
|
type: String,
|
|
5263
5263
|
default: ""
|
|
5264
|
+
},
|
|
5265
|
+
pspan: {
|
|
5266
|
+
type: Number,
|
|
5267
|
+
default: void 0
|
|
5264
5268
|
}
|
|
5265
5269
|
},
|
|
5266
5270
|
setup(e) {
|
|
@@ -5302,7 +5306,7 @@ var $p = class {
|
|
|
5302
5306
|
const _ = F("j-comp"), S = F("el-form-item"), R = F("el-col");
|
|
5303
5307
|
return p.value && !e.isNotCol ? (k(), N(R, {
|
|
5304
5308
|
key: 0,
|
|
5305
|
-
span: h.value.span || G(i),
|
|
5309
|
+
span: h.value.span || e.pspan || G(i),
|
|
5306
5310
|
style: ce({ ...h.value.colStyle || {} }),
|
|
5307
5311
|
class: Ze(h.value.colClass || {})
|
|
5308
5312
|
}, {
|
|
@@ -5398,20 +5402,20 @@ var $p = class {
|
|
|
5398
5402
|
rowChange: y,
|
|
5399
5403
|
pRowData: C
|
|
5400
5404
|
});
|
|
5401
|
-
const _ = {}, S = P(() => s || _), R = P(() => al(
|
|
5405
|
+
const _ = {}, S = P(() => s || _), R = P(() => al(I.value) && !M.value?.notInput || M.value?.isInput || I.value === "j-tabs" || I.value === "j-collapse" || I.value === "j-table" || I.value === "j-table-panel"), j = P(() => [
|
|
5402
5406
|
"j-select",
|
|
5403
5407
|
"j-tree-select",
|
|
5404
5408
|
"j-checkbox"
|
|
5405
|
-
].includes(
|
|
5409
|
+
].includes(I.value) ? !(I.value === "j-select" && !M.value?.multiple || I.value === "j-tree-select" && !M.value?.multiple) : !1), T = P(() => M.value.valueIdKey || n.id), H = P({
|
|
5406
5410
|
get() {
|
|
5407
5411
|
let Y;
|
|
5408
5412
|
const ke = T.value;
|
|
5409
|
-
if (v ? Y = v[ke] : s ? Y = s[ke] : Y = n.modelValue, Y === void 0 &&
|
|
5413
|
+
if (v ? Y = v[ke] : s ? Y = s[ke] : Y = n.modelValue, Y === void 0 && I.value === "j-tabs") {
|
|
5410
5414
|
if (M.value?.defaultValue) return M.value.defaultValue;
|
|
5411
5415
|
const ve = n.children.findIndex((Be) => Be.config?.active);
|
|
5412
5416
|
return ve > -1 ? "_tab" + ve : "_tab0";
|
|
5413
5417
|
}
|
|
5414
|
-
if (Y === void 0 &&
|
|
5418
|
+
if (Y === void 0 && I.value === "j-collapse") {
|
|
5415
5419
|
if (M.value?.defaultValue) return M.value.defaultValue;
|
|
5416
5420
|
const ve = n.children.map((Be, ot) => ({
|
|
5417
5421
|
item: Be,
|
|
@@ -5443,15 +5447,15 @@ var $p = class {
|
|
|
5443
5447
|
getTableData: w,
|
|
5444
5448
|
pRowData: C
|
|
5445
5449
|
}) || "")), E = P(() => {
|
|
5446
|
-
if (
|
|
5450
|
+
if (I.value !== "j-tree")
|
|
5447
5451
|
return r ? r({
|
|
5448
|
-
type:
|
|
5452
|
+
type: I.value,
|
|
5449
5453
|
config: M.value,
|
|
5450
5454
|
formData: S.value,
|
|
5451
5455
|
row: v,
|
|
5452
5456
|
getTableData: w
|
|
5453
5457
|
}) || [] : M.value.options || [];
|
|
5454
|
-
}),
|
|
5458
|
+
}), I = P(() => n.isTableCell && (A.value === "j-radio" || A.value === "j-checkbox") ? "j-select" : A.value === "j-textarea" ? "j-input" : ((A.value == null || A.value === "") && console.warn("组件类型不能为空"), A.value)), K = (Y) => l({
|
|
5455
5459
|
value: Y,
|
|
5456
5460
|
config: U.value || {},
|
|
5457
5461
|
formData: S.value,
|
|
@@ -5482,7 +5486,7 @@ var $p = class {
|
|
|
5482
5486
|
...ke
|
|
5483
5487
|
};
|
|
5484
5488
|
let ot = await i({
|
|
5485
|
-
type:
|
|
5489
|
+
type: I.value,
|
|
5486
5490
|
config: {
|
|
5487
5491
|
...U.value,
|
|
5488
5492
|
dataType: Be
|
|
@@ -5515,13 +5519,13 @@ var $p = class {
|
|
|
5515
5519
|
};
|
|
5516
5520
|
}, U = P(() => {
|
|
5517
5521
|
const Y = { ...M.value };
|
|
5518
|
-
return
|
|
5522
|
+
return I.value === "j-layer-form" && Y.schema === void 0 && (Y.schema = n.children), I.value === "el-collapse-item" && Y.label && (Y.title = Y.label, delete Y.label), [
|
|
5519
5523
|
"j-input-cards",
|
|
5520
5524
|
"j-input-rows",
|
|
5521
5525
|
"j-table",
|
|
5522
5526
|
"j-table-panel"
|
|
5523
|
-
].includes(A.value) && Y.columns === void 0 && (Y.columns = n.children.map(Q)), n.isTableCell && (A.value === "j-checkbox" && (Y.multiple = !0), A.value === "j-select" && Y.multiple && (Y.collapseTags = !0, Y.collapseTagsTooltip = !0), A.value === "j-switch" && (Y.size = "small"), A.value === "j-textarea" && (Y.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(A.value) && (Y.loadLayerData = Y.loadLayerData || q, Y.getText = Y.getText || K, Y.columns =
|
|
5524
|
-
}),
|
|
5527
|
+
].includes(A.value) && Y.columns === void 0 && (Y.columns = n.children.map(Q)), n.isTableCell && (A.value === "j-checkbox" && (Y.multiple = !0), A.value === "j-select" && Y.multiple && (Y.collapseTags = !0, Y.collapseTagsTooltip = !0), A.value === "j-switch" && (Y.size = "small"), A.value === "j-textarea" && (Y.type = "textarea")), ["j-button-layer", "j-input-layer"].includes(A.value) && (Y.loadLayerData = Y.loadLayerData || q, Y.getText = Y.getText || K, Y.columns = z(Array.isArray(Y.columns) ? Y.columns : [], Y.dataType === "dataItem" && Y.isKeyword), Y.dataType === "dataView" && (Y.searchList = Re(Array.isArray(Y.searchList) ? Y.searchList : []))), Y.dataType && (Y.options = E.value), Y;
|
|
5528
|
+
}), z = (Y, ke) => Y.filter((ve) => ve && ve.id).filter((ve) => ve?.config?.hide ? !1 : typeof ve?.show == "boolean" ? ve.show : !ve.hide).map((ve) => {
|
|
5525
5529
|
if (ve.config) {
|
|
5526
5530
|
const on = { ...ve.config || {} };
|
|
5527
5531
|
return on.frozen === "none" && delete on.frozen, ke && (on.filter = { isSearchKeyword: !0 }), {
|
|
@@ -5559,18 +5563,18 @@ var $p = class {
|
|
|
5559
5563
|
...Et
|
|
5560
5564
|
}, Rt;
|
|
5561
5565
|
}).filter((ke) => ke.id), Ve = P(() => {
|
|
5562
|
-
if (
|
|
5566
|
+
if (I.value === "j-layer-form" || I.value === "j-input-rows" || I.value === "j-input-cards") return {};
|
|
5563
5567
|
const Y = {};
|
|
5564
5568
|
return n.children.forEach((ke, ve) => {
|
|
5565
5569
|
let Be = ke;
|
|
5566
|
-
|
|
5570
|
+
I.value === "j-tabs" && (Be = {
|
|
5567
5571
|
...ke,
|
|
5568
5572
|
type: "el-tab-pane",
|
|
5569
5573
|
config: {
|
|
5570
5574
|
...ke.config || {},
|
|
5571
5575
|
name: "_tab" + ve
|
|
5572
5576
|
}
|
|
5573
|
-
}, c == "form" && (Be.config.needRow = Be.config.needRow !== !1, Be.config.needFormItem = Be.config.needFormItem !== !1)),
|
|
5577
|
+
}, c == "form" && (Be.config.needRow = Be.config.needRow !== !1, Be.config.needFormItem = Be.config.needFormItem !== !1)), I.value === "j-collapse" && (Be = {
|
|
5574
5578
|
...ke,
|
|
5575
5579
|
type: "el-collapse-item",
|
|
5576
5580
|
config: {
|
|
@@ -5580,7 +5584,7 @@ var $p = class {
|
|
|
5580
5584
|
}, c == "form" && (Be.config.needRow = Be.config.needRow !== !1, Be.config.needFormItem = Be.config.needFormItem !== !1)), Be.slot ? (Y[Be.slot] = Y[Be.slot] || [], Y[Be.slot].push(Be)) : (Y.default = Y.default || [], Y.default.push(Be));
|
|
5581
5585
|
}), Y;
|
|
5582
5586
|
}), xe = ({ data: Y, row: ke, config: ve }) => {
|
|
5583
|
-
if (Y && ["j-input-layer", "j-button-layer"].includes(
|
|
5587
|
+
if (Y && ["j-input-layer", "j-button-layer"].includes(I.value)) {
|
|
5584
5588
|
const Be = ve.parentTableId && ke ? ke : s, ot = U.value?.isMultiSelect;
|
|
5585
5589
|
U.value.columns.forEach((Fe) => {
|
|
5586
5590
|
const Ue = Fe.config?.valueKey;
|
|
@@ -5616,7 +5620,7 @@ var $p = class {
|
|
|
5616
5620
|
Se();
|
|
5617
5621
|
}), (Y, ke) => {
|
|
5618
5622
|
const ve = F("JComp"), Be = F("el-row");
|
|
5619
|
-
return U.value.display != !1 && R.value ? (k(), N(Na(
|
|
5623
|
+
return U.value.display != !1 && R.value ? (k(), N(Na(I.value), Qe({
|
|
5620
5624
|
key: 0,
|
|
5621
5625
|
ref_key: "compRef",
|
|
5622
5626
|
ref: et
|
|
@@ -5628,7 +5632,7 @@ var $p = class {
|
|
|
5628
5632
|
}), Xn({ _: 2 }, [De(Ve.value, (ot, Fe) => ({
|
|
5629
5633
|
name: Fe,
|
|
5630
5634
|
fn: Z(() => [(k(!0), L(je, null, De(ot, (Ue) => (k(), N(ve, Qe({ key: Ue.id }, { ref_for: !0 }, Ue), null, 16))), 128))])
|
|
5631
|
-
}))]), 1040, ["modelValue", "run-flow"])) : U.value.display != !1 ? (k(), N(Na(
|
|
5635
|
+
}))]), 1040, ["modelValue", "run-flow"])) : U.value.display != !1 ? (k(), N(Na(I.value), Qe({
|
|
5632
5636
|
key: 1,
|
|
5633
5637
|
ref_key: "compRef",
|
|
5634
5638
|
ref: et
|
|
@@ -5641,7 +5645,10 @@ var $p = class {
|
|
|
5641
5645
|
key: 0,
|
|
5642
5646
|
gutter: p.value
|
|
5643
5647
|
}, {
|
|
5644
|
-
default: Z(() => [U.value.needFormItem === !0 || U.value.needFormItem?.[Fe] === !0 ? (k(!0), L(je, { key: 0 }, De(ot, (Ue) => (k(), N(Uc, Qe({ key: Ue.id }, { ref_for: !0 }, Ue, {
|
|
5648
|
+
default: Z(() => [U.value.needFormItem === !0 || U.value.needFormItem?.[Fe] === !0 ? (k(!0), L(je, { key: 0 }, De(ot, (Ue) => (k(), N(Uc, Qe({ key: Ue.id }, { ref_for: !0 }, Ue, {
|
|
5649
|
+
plabelWidth: I.value === "el-tab-pane" ? U.value.labelWidth : "",
|
|
5650
|
+
pspan: I.value === "el-tab-pane" ? U.value.span : void 0
|
|
5651
|
+
}), null, 16, ["plabelWidth", "pspan"]))), 128)) : (k(!0), L(je, { key: 1 }, De(ot, (Ue) => (k(), N(ve, Qe({ key: Ue.id }, { ref_for: !0 }, Ue), null, 16))), 128))]),
|
|
5645
5652
|
_: 2
|
|
5646
5653
|
}, 1032, ["gutter"])) : (k(!0), L(je, { key: 1 }, De(ot, (Ue) => (k(), N(ve, Qe({ key: Ue.id }, { ref_for: !0 }, Ue), null, 16))), 128))])
|
|
5647
5654
|
}))]), 1040, ["run-flow"])) : te("", !0);
|
|
@@ -6018,7 +6025,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6018
6025
|
const R = D(0);
|
|
6019
6026
|
let j = o.records.length, T = 45;
|
|
6020
6027
|
const H = D(!1), B = D({}), M = D([]), A = D(null), E = D(0);
|
|
6021
|
-
let
|
|
6028
|
+
let I = null, K = !1, ae = !1;
|
|
6022
6029
|
const _e = ($, V, J, oe, W) => {
|
|
6023
6030
|
M.value = $, A.value = V, E.value = J, B.value = {
|
|
6024
6031
|
left: `${oe}px`,
|
|
@@ -6027,12 +6034,12 @@ var Kp = /* @__PURE__ */ we({
|
|
|
6027
6034
|
}, q = () => {
|
|
6028
6035
|
H.value = !1, K = !1, ae = !1, U(), document.removeEventListener("wheel", Ve);
|
|
6029
6036
|
}, Q = () => {
|
|
6030
|
-
U(),
|
|
6037
|
+
U(), I = setTimeout(() => {
|
|
6031
6038
|
!K && !ae && q();
|
|
6032
6039
|
}, 100);
|
|
6033
6040
|
}, U = () => {
|
|
6034
|
-
|
|
6035
|
-
},
|
|
6041
|
+
I && (clearTimeout(I), I = null);
|
|
6042
|
+
}, z = () => {
|
|
6036
6043
|
K = !0, U();
|
|
6037
6044
|
}, Re = () => {
|
|
6038
6045
|
K = !1, Q();
|
|
@@ -7255,7 +7262,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7255
7262
|
key: 0,
|
|
7256
7263
|
class: "j-table-dropdown",
|
|
7257
7264
|
style: ce(B.value),
|
|
7258
|
-
onMouseenter:
|
|
7265
|
+
onMouseenter: z,
|
|
7259
7266
|
onMouseleave: Re
|
|
7260
7267
|
}, [(k(!0), L(je, null, De(M.value, (ne) => (k(), L("div", {
|
|
7261
7268
|
key: ne.id,
|
|
@@ -7382,25 +7389,25 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7382
7389
|
_left: 0,
|
|
7383
7390
|
_top: 0
|
|
7384
7391
|
}), g = D(0), b = D(), x = D(48), w = D(0), m = D(0);
|
|
7385
|
-
st(() => a.visible, (
|
|
7386
|
-
g.value = 1, g.value = 0, r.value =
|
|
7392
|
+
st(() => a.visible, (z) => {
|
|
7393
|
+
g.value = 1, g.value = 0, r.value = z, z === !0 && a.zoomControls && Lt(() => {
|
|
7387
7394
|
typeof document < "u" && (b.value = document.querySelector(".j-dialog"), b.value && (b.value.onmousemove = Q));
|
|
7388
7395
|
});
|
|
7389
7396
|
}, { immediate: !0 });
|
|
7390
7397
|
const y = P(() => {
|
|
7391
|
-
let
|
|
7392
|
-
return typeof window < "u" &&
|
|
7398
|
+
let z = a.height + g.value;
|
|
7399
|
+
return typeof window < "u" && z + 40 > window.innerHeight && (z = window.innerHeight - 32 - 40), z;
|
|
7393
7400
|
}), C = P(() => {
|
|
7394
|
-
let
|
|
7395
|
-
return typeof document < "u" && document.body && (
|
|
7401
|
+
let z = 0 + g.value;
|
|
7402
|
+
return typeof document < "u" && document.body && (z = (document.body.clientWidth - _.value) / 2), z;
|
|
7396
7403
|
}), v = P(() => {
|
|
7397
|
-
let
|
|
7398
|
-
return typeof window < "u" && (
|
|
7404
|
+
let z = 0 + g.value;
|
|
7405
|
+
return typeof window < "u" && (z = (window.innerHeight - y.value - 40) / 2), z;
|
|
7399
7406
|
}), _ = P(() => {
|
|
7400
|
-
let
|
|
7401
|
-
return
|
|
7402
|
-
}), S = (
|
|
7403
|
-
c.value =
|
|
7407
|
+
let z = 0 + g.value;
|
|
7408
|
+
return z = a.width, typeof document < "u" && document.body && z > document.body.clientWidth && (z = document.body.clientWidth - 32), z;
|
|
7409
|
+
}), S = (z) => {
|
|
7410
|
+
c.value = z || "保存数据中...", l.value = !0;
|
|
7404
7411
|
}, R = () => {
|
|
7405
7412
|
l.value = !1;
|
|
7406
7413
|
}, j = () => {
|
|
@@ -7409,30 +7416,30 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7409
7416
|
o("ok", S, R);
|
|
7410
7417
|
}, H = () => {
|
|
7411
7418
|
p.left = 0, p.top = 0, m.value = 0, w.value = 0, a.isStep && (B.value = 0, Lt(() => {
|
|
7412
|
-
|
|
7419
|
+
I();
|
|
7413
7420
|
})), o("closed");
|
|
7414
7421
|
}, B = P({
|
|
7415
7422
|
get() {
|
|
7416
7423
|
return h.value !== -1 ? h.value : a.stepActive;
|
|
7417
7424
|
},
|
|
7418
|
-
set(
|
|
7419
|
-
h.value =
|
|
7425
|
+
set(z) {
|
|
7426
|
+
h.value = z, o("update:stepActive", z);
|
|
7420
7427
|
}
|
|
7421
7428
|
}), M = () => {
|
|
7422
7429
|
B.value > 0 && B.value--, Lt(() => {
|
|
7423
|
-
|
|
7430
|
+
I();
|
|
7424
7431
|
});
|
|
7425
7432
|
}, A = async () => {
|
|
7426
7433
|
await E() && (B.value < a.steps.length - 1 && (B.value += 1), Lt(() => {
|
|
7427
|
-
|
|
7434
|
+
I();
|
|
7428
7435
|
}));
|
|
7429
7436
|
}, E = async () => {
|
|
7430
7437
|
if (s.value = !0, a.validateSteps) {
|
|
7431
|
-
const
|
|
7432
|
-
return s.value = !1,
|
|
7438
|
+
const z = await a.validateSteps(a.stepActive, S, R);
|
|
7439
|
+
return s.value = !1, z;
|
|
7433
7440
|
}
|
|
7434
7441
|
return s.value = !1, !0;
|
|
7435
|
-
},
|
|
7442
|
+
}, I = () => {
|
|
7436
7443
|
switch (u.value = !0, f.value = !0, d.value = !0, B.value) {
|
|
7437
7444
|
case 0:
|
|
7438
7445
|
f.value = !1;
|
|
@@ -7444,25 +7451,25 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7444
7451
|
d.value = !1, f.value = !1;
|
|
7445
7452
|
break;
|
|
7446
7453
|
}
|
|
7447
|
-
}, K = P(() => a.steps.map((
|
|
7448
|
-
title:
|
|
7454
|
+
}, K = P(() => a.steps.map((z) => ({
|
|
7455
|
+
title: z,
|
|
7449
7456
|
disabled: !0
|
|
7450
|
-
}))), ae = function(
|
|
7451
|
-
a.autoHeight || (p.pageX =
|
|
7457
|
+
}))), ae = function(z) {
|
|
7458
|
+
a.autoHeight || (p.pageX = z.pageX, p.pageY = z.pageY, p._left = p.left, p._top = p.top, p.isMove = !0, typeof document < "u" && (document.onmouseup = _e, document.onmousemove = q));
|
|
7452
7459
|
}, _e = () => {
|
|
7453
7460
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
7454
|
-
}, q = (
|
|
7461
|
+
}, q = (z) => {
|
|
7455
7462
|
if (p.isMove) {
|
|
7456
|
-
const Re =
|
|
7463
|
+
const Re = z.pageX - p.pageX, Ve = z.pageY - p.pageY;
|
|
7457
7464
|
let xe = p._left + Re, Ne = p._top + Ve;
|
|
7458
7465
|
xe + C.value < 0 && (xe = -C.value), typeof document < "u" && document.body && (w.value ? xe + w.value + C.value > document.body.clientWidth && (xe = document.body.clientWidth - w.value - C.value) : xe + _.value + C.value > document.body.clientWidth && (xe = document.body.clientWidth - _.value - C.value)), Ne + v.value < 0 && (Ne = -v.value), typeof window < "u" && (m.value ? Ne + m.value + v.value + 40 > window.innerHeight && (Ne = window.innerHeight - m.value - v.value - 40) : Ne + y.value + v.value + 40 > window.innerHeight && (Ne = window.innerHeight - y.value - v.value - 40)), p.left = xe, p.top = Ne;
|
|
7459
7466
|
}
|
|
7460
|
-
}, Q = (
|
|
7467
|
+
}, Q = (z) => {
|
|
7461
7468
|
const Re = b.value.offsetLeft, Ve = b.value.offsetTop, xe = b.value.clientWidth, Ne = b.value.clientHeight, et = Ne - x.value, xt = b.value.scrollTop;
|
|
7462
|
-
if (
|
|
7463
|
-
else if (Re + 10 >
|
|
7464
|
-
else if (
|
|
7465
|
-
else if (xt +
|
|
7469
|
+
if (z.clientX > Re + xe - 10 && xt + z.clientY > Ve + Ne - 10 || xt + z.clientY < Ve + 5 && Re + 10 > z.clientX) b.value.style.cursor = "se-resize";
|
|
7470
|
+
else if (Re + 10 > z.clientX && xt + z.clientY > Ve + Ne - 10 || z.clientX > Re + xe - 10 && xt + z.clientY < Ve + 5) b.value.style.cursor = "sw-resize";
|
|
7471
|
+
else if (z.clientX > Re + xe - 10 || Re + 10 > z.clientX) b.value.style.cursor = "w-resize";
|
|
7472
|
+
else if (xt + z.clientY > Ve + Ne - 10 || xt + z.clientY < Ve + 5) b.value.style.cursor = "s-resize";
|
|
7466
7473
|
else {
|
|
7467
7474
|
b.value.style.cursor = "default", b.value.onmousedown = null;
|
|
7468
7475
|
return;
|
|
@@ -7475,13 +7482,13 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7475
7482
|
typeof document < "u" && (document.onmousemove = null, document.onmouseup = null);
|
|
7476
7483
|
}));
|
|
7477
7484
|
};
|
|
7478
|
-
}, U = async (
|
|
7479
|
-
|
|
7485
|
+
}, U = async (z) => {
|
|
7486
|
+
z.click && await z.click();
|
|
7480
7487
|
};
|
|
7481
7488
|
return t({
|
|
7482
7489
|
showLoading: S,
|
|
7483
7490
|
hideLoading: R
|
|
7484
|
-
}), (
|
|
7491
|
+
}), (z, Re) => {
|
|
7485
7492
|
const Ve = F("j-button"), xe = F("el-space"), Ne = F("el-step"), et = F("el-steps"), xt = F("el-dialog");
|
|
7486
7493
|
return k(), N(xt, {
|
|
7487
7494
|
modelValue: r.value,
|
|
@@ -7543,7 +7550,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7543
7550
|
}, null, 8, ["title"]))), 128))]),
|
|
7544
7551
|
_: 1
|
|
7545
7552
|
}, 8, ["active"])], 4)])) : te("", !0),
|
|
7546
|
-
O("div", ig, [rt(
|
|
7553
|
+
O("div", ig, [rt(z.$slots, "default")]),
|
|
7547
7554
|
e.hasBtns ? (k(), L("div", rg, [ee(xe, { size: 8 }, {
|
|
7548
7555
|
default: Z(() => [
|
|
7549
7556
|
e.isStep ? (k(), N(Ve, {
|
|
@@ -7735,7 +7742,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7735
7742
|
showLoading: m,
|
|
7736
7743
|
hideLoading: y
|
|
7737
7744
|
}), (T, H) => {
|
|
7738
|
-
const B = F("el-step"), M = F("el-steps"), A = F("j-button"), E = F("el-space"),
|
|
7745
|
+
const B = F("el-step"), M = F("el-steps"), A = F("j-button"), E = F("el-space"), I = F("el-divider"), K = F("el-dialog"), ae = go("loading");
|
|
7739
7746
|
return k(), N(K, {
|
|
7740
7747
|
modelValue: l.value,
|
|
7741
7748
|
"onUpdate:modelValue": H[0] || (H[0] = (_e) => l.value = _e),
|
|
@@ -7818,7 +7825,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
7818
7825
|
]),
|
|
7819
7826
|
_: 1
|
|
7820
7827
|
})) : te("", !0),
|
|
7821
|
-
e.showCloseBtn && e.hasBtns ? (k(), N(
|
|
7828
|
+
e.showCloseBtn && e.hasBtns ? (k(), N(I, {
|
|
7822
7829
|
key: 1,
|
|
7823
7830
|
type: "vertical",
|
|
7824
7831
|
style: { margin: "0 8px" }
|
|
@@ -8004,7 +8011,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8004
8011
|
showLoading: d,
|
|
8005
8012
|
hideLoading: f
|
|
8006
8013
|
}), (T, H) => {
|
|
8007
|
-
const B = F("el-input"), M = F("j-button"), A = F("el-space"), E = F("el-step"),
|
|
8014
|
+
const B = F("el-input"), M = F("j-button"), A = F("el-space"), E = F("el-step"), I = F("el-steps"), K = F("el-drawer"), ae = go("loading");
|
|
8008
8015
|
return k(), N(K, {
|
|
8009
8016
|
modelValue: s.value,
|
|
8010
8017
|
"onUpdate:modelValue": H[0] || (H[0] = (_e) => s.value = _e),
|
|
@@ -8084,7 +8091,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8084
8091
|
e.isStep ? (k(), L("div", Tg, [O("div", { style: ce({
|
|
8085
8092
|
maxWidth: `${200 * j.value.length}px`,
|
|
8086
8093
|
width: "100%"
|
|
8087
|
-
}) }, [ee(
|
|
8094
|
+
}) }, [ee(I, {
|
|
8088
8095
|
simple: "",
|
|
8089
8096
|
active: C.value,
|
|
8090
8097
|
space: 160,
|
|
@@ -8934,7 +8941,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8934
8941
|
return i && i("上传文件超出大小了"), !1;
|
|
8935
8942
|
}, E = (ie) => {
|
|
8936
8943
|
R(ie.file), M(ie.file);
|
|
8937
|
-
},
|
|
8944
|
+
}, I = (ie) => new Promise((Se) => {
|
|
8938
8945
|
r ? r({
|
|
8939
8946
|
title: "提示",
|
|
8940
8947
|
iconType: "warning",
|
|
@@ -8956,8 +8963,8 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8956
8963
|
list: m.value
|
|
8957
8964
|
});
|
|
8958
8965
|
}, ae = async (ie) => {
|
|
8959
|
-
await
|
|
8960
|
-
}, _e = D(!1), q = D(""), Q = D(""), U = D(!1),
|
|
8966
|
+
await I(ie) && K(ie);
|
|
8967
|
+
}, _e = D(!1), q = D(""), Q = D(""), U = D(!1), z = D(!1);
|
|
8961
8968
|
let Re = null;
|
|
8962
8969
|
const Ve = D(yi(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), xe = (ie) => {
|
|
8963
8970
|
if (ie.isPreview === !1 && !n.isUploadImg) {
|
|
@@ -8972,7 +8979,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8972
8979
|
case "bmp":
|
|
8973
8980
|
case "jpeg":
|
|
8974
8981
|
case "svg":
|
|
8975
|
-
_e.value = !0, Q.value = ie.url,
|
|
8982
|
+
_e.value = !0, Q.value = ie.url, z.value = !1, U.value = !0;
|
|
8976
8983
|
break;
|
|
8977
8984
|
default:
|
|
8978
8985
|
if (n.isNotApi) {
|
|
@@ -8987,7 +8994,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
8987
8994
|
o && o("当前文件不支持预览!");
|
|
8988
8995
|
return;
|
|
8989
8996
|
}
|
|
8990
|
-
|
|
8997
|
+
z.value = !0, U.value = !0;
|
|
8991
8998
|
break;
|
|
8992
8999
|
}
|
|
8993
9000
|
Ve.value = yi(/* @__PURE__ */ new Date(), "YYYY-MM-DD HH:mm:ss");
|
|
@@ -9017,7 +9024,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
9017
9024
|
"before-upload": A,
|
|
9018
9025
|
"http-request": E,
|
|
9019
9026
|
"file-list": m.value,
|
|
9020
|
-
"before-remove":
|
|
9027
|
+
"before-remove": I,
|
|
9021
9028
|
"on-remove": K,
|
|
9022
9029
|
"on-preview": xe,
|
|
9023
9030
|
"on-exceed": xt
|
|
@@ -9103,8 +9110,8 @@ var Kp = /* @__PURE__ */ we({
|
|
|
9103
9110
|
height: "100%"
|
|
9104
9111
|
},
|
|
9105
9112
|
frameborder: "0",
|
|
9106
|
-
onLoad: Se[0] || (Se[0] = (Ue) =>
|
|
9107
|
-
}, null, 40, nv)])), [[Fe,
|
|
9113
|
+
onLoad: Se[0] || (Se[0] = (Ue) => z.value = !1)
|
|
9114
|
+
}, null, 40, nv)])), [[Fe, z.value]]) : te("", !0)]),
|
|
9108
9115
|
_: 1
|
|
9109
9116
|
}, 8, [
|
|
9110
9117
|
"visible",
|
|
@@ -12585,9 +12592,9 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12585
12592
|
}), ze.push(ct);
|
|
12586
12593
|
}
|
|
12587
12594
|
}), ze;
|
|
12588
|
-
}, j = P(() => R(i.columns, ke.value)), T = P(() => qf(i.columns, (he) => he.config.label)), H = D(""), B = P(() => T.value.some((he) => he.config?.filter?.isSearchKeyword)), M = D(), A = D(!0), E = D([]),
|
|
12595
|
+
}, j = P(() => R(i.columns, ke.value)), T = P(() => qf(i.columns, (he) => he.config.label)), H = D(""), B = P(() => T.value.some((he) => he.config?.filter?.isSearchKeyword)), M = D(), A = D(!0), E = D([]), I = P(() => A.value ? "搜索全部" : `搜索范围:${T.value.filter((he) => E.value.includes(he.id)).map((he) => he.config?.label).join("、")}`), K = () => {
|
|
12589
12596
|
M.value.init();
|
|
12590
|
-
}, ae = D(), _e = D(!1), q = D(!1), Q = D(!1), U = D([]),
|
|
12597
|
+
}, ae = D(), _e = D(!1), q = D(!1), Q = D(!1), U = D([]), z = D("and"), Re = D(), Ve = D(!1), xe = D([]), Ne = D(), et = (he) => {
|
|
12591
12598
|
const de = new Map(T.value.map(($e) => [$e.id, $e.config?.label || $e.id]));
|
|
12592
12599
|
return he.split(",").map(($e) => $e.trim()).filter(Boolean).map(($e) => {
|
|
12593
12600
|
const [ze, pe] = $e.split(/\s+/), ct = (pe || "ASC").toUpperCase() === "DESC" ? "DESC" : "ASC";
|
|
@@ -12728,7 +12735,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12728
12735
|
he && (Bt = he), Bt && (de.query = Bt);
|
|
12729
12736
|
try {
|
|
12730
12737
|
const $e = {};
|
|
12731
|
-
$e.rel =
|
|
12738
|
+
$e.rel = z.value, $e.cond = (ae.value?.getSearchFields?.() || U.value).filter((pe) => pe.value !== void 0 && pe.value !== null && pe.value !== "" || ["empty", "not_empty"].includes(pe.method)).map((pe) => ({
|
|
12732
12739
|
field: pe.field,
|
|
12733
12740
|
method: pe.method,
|
|
12734
12741
|
value: pe.value,
|
|
@@ -12912,7 +12919,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12912
12919
|
prefix: Z(() => [ee(ze, { icon: "mdi:search" })]),
|
|
12913
12920
|
suffix: Z(() => [ee(ct, {
|
|
12914
12921
|
placement: "bottom",
|
|
12915
|
-
content:
|
|
12922
|
+
content: I.value
|
|
12916
12923
|
}, {
|
|
12917
12924
|
default: Z(() => [O("div", null, [ee(pe, {
|
|
12918
12925
|
placement: "bottom-end",
|
|
@@ -12968,8 +12975,8 @@ var Kp = /* @__PURE__ */ we({
|
|
|
12968
12975
|
ref: ae,
|
|
12969
12976
|
"is-pin": _e.value,
|
|
12970
12977
|
"onUpdate:isPin": de[3] || (de[3] = (Ke) => _e.value = Ke),
|
|
12971
|
-
relation:
|
|
12972
|
-
"onUpdate:relation": de[4] || (de[4] = (Ke) =>
|
|
12978
|
+
relation: z.value,
|
|
12979
|
+
"onUpdate:relation": de[4] || (de[4] = (Ke) => z.value = Ke),
|
|
12973
12980
|
"search-list": e.searchList,
|
|
12974
12981
|
"search-field-list": U.value,
|
|
12975
12982
|
columns: T.value,
|
|
@@ -13213,8 +13220,8 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13213
13220
|
ref: ae,
|
|
13214
13221
|
"is-pin": _e.value,
|
|
13215
13222
|
"onUpdate:isPin": de[14] || (de[14] = (Ke) => _e.value = Ke),
|
|
13216
|
-
relation:
|
|
13217
|
-
"onUpdate:relation": de[15] || (de[15] = (Ke) =>
|
|
13223
|
+
relation: z.value,
|
|
13224
|
+
"onUpdate:relation": de[15] || (de[15] = (Ke) => z.value = Ke),
|
|
13218
13225
|
"search-list": e.searchList,
|
|
13219
13226
|
"search-field-list": U.value,
|
|
13220
13227
|
columns: T.value,
|
|
@@ -13413,21 +13420,21 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13413
13420
|
s.value?.setCurrentKey(M, A);
|
|
13414
13421
|
}, w = () => s.value?.getCurrentKey(), m = (M, A = !1) => {
|
|
13415
13422
|
s.value?.setCheckedKeys(M, A);
|
|
13416
|
-
}, y = (M = !1) => s.value?.getCheckedKeys(M), C = async (M, A, E,
|
|
13423
|
+
}, y = (M = !1) => s.value?.getCheckedKeys(M), C = async (M, A, E, I) => {
|
|
13417
13424
|
if (f.value = M.value, a.nodeClickFlow && a.runFlow) {
|
|
13418
13425
|
const K = JSON.parse(a.nodeClickFlow);
|
|
13419
13426
|
await a.runFlow(K, { value: M.value });
|
|
13420
13427
|
}
|
|
13421
|
-
a.click && a.click(M.value, M,
|
|
13422
|
-
}, v = (M, { checkedKeys: A, checkedNodes: E, halfCheckedKeys:
|
|
13428
|
+
a.click && a.click(M.value, M, I);
|
|
13429
|
+
}, v = (M, { checkedKeys: A, checkedNodes: E, halfCheckedKeys: I, halfCheckedNodes: K }) => {
|
|
13423
13430
|
a.check && a.check(A, {
|
|
13424
13431
|
node: M,
|
|
13425
13432
|
checkedNodes: E,
|
|
13426
|
-
halfCheckedKeys:
|
|
13433
|
+
halfCheckedKeys: I,
|
|
13427
13434
|
halfCheckedNodes: K
|
|
13428
13435
|
});
|
|
13429
|
-
}, _ = (M, A, E,
|
|
13430
|
-
o("node-drop", M, A, E,
|
|
13436
|
+
}, _ = (M, A, E, I) => {
|
|
13437
|
+
o("node-drop", M, A, E, I);
|
|
13431
13438
|
}, S = (M) => {
|
|
13432
13439
|
const A = qt(a.treeButtons);
|
|
13433
13440
|
return M && a.filterButton ? a.filterButton({
|
|
@@ -13453,7 +13460,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13453
13460
|
setCheck: m,
|
|
13454
13461
|
getCheck: y
|
|
13455
13462
|
}), (M, A) => {
|
|
13456
|
-
const E = F("j-icon"),
|
|
13463
|
+
const E = F("j-icon"), I = F("j-button"), K = F("el-dropdown-item"), ae = F("el-dropdown-menu"), _e = F("el-dropdown"), q = F("el-tree"), Q = F("el-empty"), U = go("loading");
|
|
13457
13464
|
return Qn((k(), L("div", {
|
|
13458
13465
|
class: Ze([
|
|
13459
13466
|
"j-block",
|
|
@@ -13484,33 +13491,33 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13484
13491
|
onCheck: v,
|
|
13485
13492
|
onNodeDrop: _
|
|
13486
13493
|
}, {
|
|
13487
|
-
default: Z(({ node:
|
|
13488
|
-
|
|
13494
|
+
default: Z(({ node: z }) => [O("div", { class: Ze(["j-tree-item-wraper", { "is-focus": T.value === z.data.value }]) }, [
|
|
13495
|
+
z.data.openIcon ? (k(), N(E, {
|
|
13489
13496
|
key: 0,
|
|
13490
13497
|
class: "j-tree-item-open-icon",
|
|
13491
13498
|
size: 18,
|
|
13492
|
-
icon:
|
|
13493
|
-
color:
|
|
13499
|
+
icon: z.data.openIcon,
|
|
13500
|
+
color: z.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
13494
13501
|
}, null, 8, ["icon", "color"])) : te("", !0),
|
|
13495
|
-
|
|
13502
|
+
z.data[e.iconKey] || e.defaultIcon ? (k(), N(E, {
|
|
13496
13503
|
key: 1,
|
|
13497
13504
|
class: "j-tree-item-default-icon",
|
|
13498
13505
|
size: 18,
|
|
13499
|
-
icon:
|
|
13500
|
-
color:
|
|
13506
|
+
icon: z.data[e.iconKey] || e.defaultIcon || "",
|
|
13507
|
+
color: z.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
13501
13508
|
}, null, 8, ["icon", "color"])) : te("", !0),
|
|
13502
|
-
O("div", hb, Ee(
|
|
13503
|
-
S(
|
|
13509
|
+
O("div", hb, Ee(z.label), 1),
|
|
13510
|
+
S(z.data).length ? (k(), L("div", pb, [(k(!0), L(je, null, De(S(z.data), (Re, Ve) => (k(), N(_e, {
|
|
13504
13511
|
key: Ve,
|
|
13505
13512
|
trigger: "click",
|
|
13506
|
-
onVisibleChange: (xe) => H(xe,
|
|
13513
|
+
onVisibleChange: (xe) => H(xe, z.data)
|
|
13507
13514
|
}, {
|
|
13508
13515
|
dropdown: Z(() => [ee(ae, null, {
|
|
13509
13516
|
default: Z(() => [(k(!0), L(je, null, De(Re.children, (xe, Ne) => (k(), N(K, {
|
|
13510
13517
|
key: Ne,
|
|
13511
13518
|
disabled: xe.disabled,
|
|
13512
13519
|
divided: xe.divided,
|
|
13513
|
-
onClick: Xt((et) => j(xe,
|
|
13520
|
+
onClick: Xt((et) => j(xe, z.data), ["stop"])
|
|
13514
13521
|
}, {
|
|
13515
13522
|
default: Z(() => [O("div", {
|
|
13516
13523
|
class: "j-flex-item",
|
|
@@ -13527,7 +13534,7 @@ var Kp = /* @__PURE__ */ we({
|
|
|
13527
13534
|
]))), 128))]),
|
|
13528
13535
|
_: 2
|
|
13529
13536
|
}, 1024)]),
|
|
13530
|
-
default: Z(() => [ee(
|
|
13537
|
+
default: Z(() => [ee(I, {
|
|
13531
13538
|
icon: Re.icon,
|
|
13532
13539
|
type: "text"
|
|
13533
13540
|
}, null, 8, ["icon"])]),
|
|
@@ -13744,7 +13751,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13744
13751
|
const g = (X) => {
|
|
13745
13752
|
f && f(X);
|
|
13746
13753
|
}, b = D(!1), x = P(() => a.config?.gutter || 16), w = P(() => a.config?.span || 24), m = P(() => a.config?.labelWidth), y = P(() => a.config?.labelPosition || "right"), C = P(() => S.length === 1 && (S[0].type === "j-tabs" || S[0].type === "j-layout" || S[0].config?.isAutoWindow)), v = Zn({}), _ = D({}), S = Zn([]), R = {};
|
|
13747
|
-
let j = {}, T = {}, H = [], B = {}, M = {}, A = !1, E = 0,
|
|
13754
|
+
let j = {}, T = {}, H = [], B = {}, M = {}, A = !1, E = 0, I;
|
|
13748
13755
|
const K = () => new Promise((X) => {
|
|
13749
13756
|
const me = globalThis.requestAnimationFrame;
|
|
13750
13757
|
typeof me == "function" ? me(() => X()) : setTimeout(() => X(), 0);
|
|
@@ -13760,7 +13767,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13760
13767
|
A || (B = qt(M), A = !0);
|
|
13761
13768
|
}, Q = async (X) => {
|
|
13762
13769
|
b.value && Re && (X.getTableData || Yl(Re, X.config.valueIdKey || X.id, X.formData[X.config.valueIdKey || X.id])), o("change", X), R[X.id]?.config?.codeChange && await Pt(JSON.parse(R[X.id]?.config?.codeChange), { param: X }), a.config?.codeChange && await Pt(JSON.parse(a.config?.codeChange), { param: X });
|
|
13763
|
-
}, U = (X) => al(R[X]?.type || "") && !R[X]?.config?.notInput || R[X]?.config?.isInput,
|
|
13770
|
+
}, U = (X) => al(R[X]?.type || "") && !R[X]?.config?.notInput || R[X]?.config?.isInput, z = (X) => [
|
|
13764
13771
|
"j-table",
|
|
13765
13772
|
"j-table-panel",
|
|
13766
13773
|
"j-input-rows",
|
|
@@ -13796,7 +13803,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13796
13803
|
if (U(Ce.id))
|
|
13797
13804
|
!re && ft === !1 && (wt?.defaultValue === 0 ? v[Ce.id] = wt?.defaultValue : v[Ce.id] = wt?.defaultValue || void 0), wt.table && wt.field ? j[`${wt.table}_${wt.field}`.toLowerCase()] = Ce.id : wt.field && (ft ? j[`${Tt}_${wt.field}`.toLowerCase()] = Ce.id : j[`${wt.field}`.toLowerCase()] = Ce.id);
|
|
13798
13805
|
else if (ft && wt.field) j[`${Tt}_${wt.field}`.toLowerCase()] = Ce.id;
|
|
13799
|
-
else if (
|
|
13806
|
+
else if (z(Ce.id))
|
|
13800
13807
|
!re && !wt.isSubTable && (v[Ce.id] = []), wt.table && (j[wt.table.toLowerCase() || ""] = Ce.id), wt.isSubTable || H.push(He);
|
|
13801
13808
|
else if (wt?.defaultValue) v[Ce.id] = wt?.defaultValue;
|
|
13802
13809
|
else if (Ce.type === "collapse" && wt?.isExpand) {
|
|
@@ -13805,7 +13812,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13805
13812
|
Hn.push(Ta.i);
|
|
13806
13813
|
}), v[Ce.id] = Hn;
|
|
13807
13814
|
}
|
|
13808
|
-
We && We.length > 0 && Ne(We, He.children, re,
|
|
13815
|
+
We && We.length > 0 && Ne(We, He.children, re, z(He.id) ? He.id : le);
|
|
13809
13816
|
});
|
|
13810
13817
|
}, et = async (X, me) => {
|
|
13811
13818
|
const re = ++E, le = b.value;
|
|
@@ -13816,7 +13823,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13816
13823
|
}), await Lt(), b.value = !0, await Lt(), await K(), a.config?.codeInit) {
|
|
13817
13824
|
const He = a.config.codeInit;
|
|
13818
13825
|
let We;
|
|
13819
|
-
|
|
13826
|
+
I?.raw === He ? We = I.obj : (We = JSON.parse(He), I = {
|
|
13820
13827
|
raw: He,
|
|
13821
13828
|
obj: We
|
|
13822
13829
|
}), await Pt(We, { param: {} });
|
|
@@ -13847,7 +13854,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13847
13854
|
re !== "main" && (We = `${re}_${He}`), T[We] = re, v[j[We.toLowerCase()] || He] = le[He];
|
|
13848
13855
|
}
|
|
13849
13856
|
}) : v[re] = le);
|
|
13850
|
-
else if (
|
|
13857
|
+
else if (z(Ce.id || "")) {
|
|
13851
13858
|
if (!Array.isArray(le)) {
|
|
13852
13859
|
console.warn("表格数据不是数组:" + re);
|
|
13853
13860
|
return;
|
|
@@ -13870,7 +13877,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13870
13877
|
if (Ce) {
|
|
13871
13878
|
const He = Ce.config?.table, We = Ce.config?.field;
|
|
13872
13879
|
if (me) We ? re[We] = X[le] : re[le] = X[le];
|
|
13873
|
-
else if (
|
|
13880
|
+
else if (z(le)) {
|
|
13874
13881
|
const ft = [];
|
|
13875
13882
|
X[le].forEach((Tt) => {
|
|
13876
13883
|
ft.push(Ie(Tt, !0));
|
|
@@ -13915,7 +13922,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13915
13922
|
throw h(ft.message) || h("数据值重复");
|
|
13916
13923
|
}), {
|
|
13917
13924
|
rules: He,
|
|
13918
|
-
myGridtableId:
|
|
13925
|
+
myGridtableId: z(Ce._componentId) ? Ce._componentId : ""
|
|
13919
13926
|
};
|
|
13920
13927
|
}
|
|
13921
13928
|
return {
|
|
@@ -13951,7 +13958,7 @@ var Gc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13951
13958
|
He.push(We[Ce || ""]);
|
|
13952
13959
|
}), He;
|
|
13953
13960
|
}
|
|
13954
|
-
if (
|
|
13961
|
+
if (z(re.id || "")) {
|
|
13955
13962
|
const le = [];
|
|
13956
13963
|
return v[re.id || ""].forEach((Ce) => {
|
|
13957
13964
|
le.push(Ie(Ce, !0));
|
|
@@ -16752,7 +16759,7 @@ function pu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16752
16759
|
]);
|
|
16753
16760
|
}
|
|
16754
16761
|
R = S - _;
|
|
16755
|
-
var B = $t.cos(_), M = $t.sin(_), A = $t.cos(S), E = $t.sin(S),
|
|
16762
|
+
var B = $t.cos(_), M = $t.sin(_), A = $t.cos(S), E = $t.sin(S), I = $t.tan(R / 4), K = 4 / 3 * n * I, ae = 4 / 3 * a * I, _e = [e, t], q = [e + K * M, t - ae * B], Q = [l + K * E, c - ae * A], U = [l, c];
|
|
16756
16763
|
if (q[0] = 2 * _e[0] - q[0], q[1] = 2 * _e[1] - q[1], s) return [
|
|
16757
16764
|
q,
|
|
16758
16765
|
Q,
|
|
@@ -16763,8 +16770,8 @@ function pu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16763
16770
|
Q,
|
|
16764
16771
|
U
|
|
16765
16772
|
].concat(u).join().split(",");
|
|
16766
|
-
for (var
|
|
16767
|
-
return
|
|
16773
|
+
for (var z = [], Re = 0, Ve = u.length; Re < Ve; Re++) z[Re] = Re % 2 ? p(u[Re - 1], u[Re], f).y : p(u[Re], u[Re + 1], f).x;
|
|
16774
|
+
return z;
|
|
16768
16775
|
}
|
|
16769
16776
|
function mw(e, t, n, a, o, i, r, l) {
|
|
16770
16777
|
for (var c = [], s = [[], []], d, f, u, h, p, g, b, x, w = 0; w < 2; ++w) {
|
|
@@ -19270,28 +19277,28 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19270
19277
|
fill: "white"
|
|
19271
19278
|
});
|
|
19272
19279
|
}
|
|
19273
|
-
function p(A, E,
|
|
19274
|
-
|
|
19275
|
-
const ae = rl(E,
|
|
19280
|
+
function p(A, E, I, K) {
|
|
19281
|
+
I = u(I);
|
|
19282
|
+
const ae = rl(E, I, K);
|
|
19276
19283
|
return lt(A, ae), ae;
|
|
19277
19284
|
}
|
|
19278
|
-
function g(A, E,
|
|
19279
|
-
return p(A, E,
|
|
19285
|
+
function g(A, E, I) {
|
|
19286
|
+
return p(A, E, I, 5);
|
|
19280
19287
|
}
|
|
19281
|
-
function b(A, E,
|
|
19288
|
+
function b(A, E, I, K, ae) {
|
|
19282
19289
|
Ds(K) && (ae = K, K = 0), K = K || 0, ae = d(ae, {
|
|
19283
19290
|
stroke: c,
|
|
19284
19291
|
strokeWidth: 2,
|
|
19285
19292
|
fill: l
|
|
19286
19293
|
}), ae.fill === "none" && delete ae.fillOpacity;
|
|
19287
|
-
const _e = E / 2, q =
|
|
19294
|
+
const _e = E / 2, q = I / 2, Q = it("circle");
|
|
19288
19295
|
return Je(Q, {
|
|
19289
19296
|
cx: _e,
|
|
19290
19297
|
cy: q,
|
|
19291
|
-
r: Math.round((E +
|
|
19298
|
+
r: Math.round((E + I) / 4 - K)
|
|
19292
19299
|
}), Je(Q, ae), lt(A, Q), Q;
|
|
19293
19300
|
}
|
|
19294
|
-
function x(A, E,
|
|
19301
|
+
function x(A, E, I, K, ae, _e) {
|
|
19295
19302
|
Ds(ae) && (_e = ae, ae = 0), ae = ae || 0, _e = d(_e, {
|
|
19296
19303
|
stroke: c,
|
|
19297
19304
|
strokeWidth: 2,
|
|
@@ -19302,21 +19309,21 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19302
19309
|
x: ae,
|
|
19303
19310
|
y: ae,
|
|
19304
19311
|
width: E - ae * 2,
|
|
19305
|
-
height:
|
|
19312
|
+
height: I - ae * 2,
|
|
19306
19313
|
rx: K,
|
|
19307
19314
|
ry: K
|
|
19308
19315
|
}), Je(q, _e), lt(A, q), q;
|
|
19309
19316
|
}
|
|
19310
|
-
function w(A, E,
|
|
19311
|
-
|
|
19317
|
+
function w(A, E, I) {
|
|
19318
|
+
I = d(I, ["no-fill"], {
|
|
19312
19319
|
strokeWidth: 2,
|
|
19313
19320
|
stroke: c
|
|
19314
19321
|
});
|
|
19315
19322
|
const K = it("path");
|
|
19316
|
-
return Je(K, { d: E }), Je(K,
|
|
19323
|
+
return Je(K, { d: E }), Je(K, I), lt(A, K), K;
|
|
19317
19324
|
}
|
|
19318
|
-
function m(A, E,
|
|
19319
|
-
const ae = E / 2, _e =
|
|
19325
|
+
function m(A, E, I, K) {
|
|
19326
|
+
const ae = E / 2, _e = I / 2, q = [
|
|
19320
19327
|
{
|
|
19321
19328
|
x: ae,
|
|
19322
19329
|
y: 0
|
|
@@ -19327,7 +19334,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19327
19334
|
},
|
|
19328
19335
|
{
|
|
19329
19336
|
x: ae,
|
|
19330
|
-
y:
|
|
19337
|
+
y: I
|
|
19331
19338
|
},
|
|
19332
19339
|
{
|
|
19333
19340
|
x: 0,
|
|
@@ -19342,37 +19349,37 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19342
19349
|
const Q = it("polygon");
|
|
19343
19350
|
return Je(Q, { points: q }), Je(Q, K), lt(A, Q), Q;
|
|
19344
19351
|
}
|
|
19345
|
-
function y(A, E,
|
|
19346
|
-
return w(E,
|
|
19352
|
+
function y(A, E, I, K) {
|
|
19353
|
+
return w(E, I, Mt({ "data-marker": A }, K));
|
|
19347
19354
|
}
|
|
19348
|
-
function C(A, E,
|
|
19349
|
-
|
|
19350
|
-
const K = o.createText(E || "",
|
|
19355
|
+
function C(A, E, I) {
|
|
19356
|
+
I = Mt({ size: { width: 100 } }, I);
|
|
19357
|
+
const K = o.createText(E || "", I);
|
|
19351
19358
|
return _t(K).add("djs-label"), lt(A, K), K;
|
|
19352
19359
|
}
|
|
19353
|
-
function v(A, E,
|
|
19360
|
+
function v(A, E, I) {
|
|
19354
19361
|
return C(A, T_(E).name, {
|
|
19355
19362
|
box: E,
|
|
19356
|
-
align:
|
|
19363
|
+
align: I,
|
|
19357
19364
|
padding: 5,
|
|
19358
19365
|
style: { fill: Ot(E, c) }
|
|
19359
19366
|
});
|
|
19360
19367
|
}
|
|
19361
19368
|
function _(A, E) {
|
|
19362
|
-
const
|
|
19369
|
+
const I = {
|
|
19363
19370
|
width: 90,
|
|
19364
19371
|
height: 30,
|
|
19365
19372
|
x: E.width / 2 + E.x,
|
|
19366
19373
|
y: E.height / 2 + E.y
|
|
19367
19374
|
};
|
|
19368
19375
|
return C(A, Vi(E), {
|
|
19369
|
-
box:
|
|
19376
|
+
box: I,
|
|
19370
19377
|
fitBox: !0,
|
|
19371
19378
|
style: Mt({}, o.getExternalStyle(), { fill: Ot(E, c) })
|
|
19372
19379
|
});
|
|
19373
19380
|
}
|
|
19374
|
-
function S(A, E,
|
|
19375
|
-
const K =
|
|
19381
|
+
function S(A, E, I) {
|
|
19382
|
+
const K = I && I.indexOf("SubProcessMarker") !== -1;
|
|
19376
19383
|
let ae;
|
|
19377
19384
|
K ? ae = {
|
|
19378
19385
|
seq: -21,
|
|
@@ -19386,7 +19393,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19386
19393
|
compensation: -27,
|
|
19387
19394
|
loop: 0,
|
|
19388
19395
|
adhoc: 10
|
|
19389
|
-
}, n_(
|
|
19396
|
+
}, n_(I, (_e) => {
|
|
19390
19397
|
f(_e)(A, E, ae);
|
|
19391
19398
|
});
|
|
19392
19399
|
}
|
|
@@ -19394,14 +19401,14 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19394
19401
|
return A.replace(/[^0-9a-zA-z]+/g, "_");
|
|
19395
19402
|
}
|
|
19396
19403
|
function j(A, E) {
|
|
19397
|
-
const { ref:
|
|
19404
|
+
const { ref: I = {
|
|
19398
19405
|
x: 0,
|
|
19399
19406
|
y: 0
|
|
19400
19407
|
}, scale: K = 1, element: ae, parentGfx: _e = a._svg } = E, q = it("marker", {
|
|
19401
19408
|
id: A,
|
|
19402
19409
|
viewBox: "0 0 20 20",
|
|
19403
|
-
refX:
|
|
19404
|
-
refY:
|
|
19410
|
+
refX: I.x,
|
|
19411
|
+
refY: I.y,
|
|
19405
19412
|
markerWidth: 20 * K,
|
|
19406
19413
|
markerHeight: 20 * K,
|
|
19407
19414
|
orient: "auto"
|
|
@@ -19410,12 +19417,12 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19410
19417
|
let Q = ln(":scope > defs", _e);
|
|
19411
19418
|
Q || (Q = it("defs"), lt(_e, Q)), lt(Q, q);
|
|
19412
19419
|
}
|
|
19413
|
-
function T(A, E,
|
|
19414
|
-
const ae = E + "-" + R(
|
|
19415
|
-
return H(A, ae, E,
|
|
19420
|
+
function T(A, E, I, K) {
|
|
19421
|
+
const ae = E + "-" + R(I) + "-" + R(K) + "-" + Cu();
|
|
19422
|
+
return H(A, ae, E, I, K), "url(#" + ae + ")";
|
|
19416
19423
|
}
|
|
19417
|
-
function H(A, E,
|
|
19418
|
-
|
|
19424
|
+
function H(A, E, I, K, ae) {
|
|
19425
|
+
I === "sequenceflow-end" && j(E, {
|
|
19419
19426
|
element: it("path", {
|
|
19420
19427
|
d: "M 1 5 L 11 10 L 1 15 Z",
|
|
19421
19428
|
...h({
|
|
@@ -19430,7 +19437,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19430
19437
|
},
|
|
19431
19438
|
scale: 0.5,
|
|
19432
19439
|
parentGfx: A
|
|
19433
|
-
}),
|
|
19440
|
+
}), I === "messageflow-start" && j(E, {
|
|
19434
19441
|
element: it("circle", {
|
|
19435
19442
|
cx: 6,
|
|
19436
19443
|
cy: 6,
|
|
@@ -19447,7 +19454,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19447
19454
|
y: 6
|
|
19448
19455
|
},
|
|
19449
19456
|
parentGfx: A
|
|
19450
|
-
}),
|
|
19457
|
+
}), I === "messageflow-end" && j(E, {
|
|
19451
19458
|
element: it("path", {
|
|
19452
19459
|
d: "m 1 5 l 0 -3 l 7 3 l -7 3 z",
|
|
19453
19460
|
...h({
|
|
@@ -19462,7 +19469,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19462
19469
|
y: 5
|
|
19463
19470
|
},
|
|
19464
19471
|
parentGfx: A
|
|
19465
|
-
}),
|
|
19472
|
+
}), I === "association-start" && j(E, {
|
|
19466
19473
|
element: it("path", {
|
|
19467
19474
|
d: "M 11 5 L 1 10 L 11 15",
|
|
19468
19475
|
...u({
|
|
@@ -19478,7 +19485,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19478
19485
|
},
|
|
19479
19486
|
scale: 0.5,
|
|
19480
19487
|
parentGfx: A
|
|
19481
|
-
}),
|
|
19488
|
+
}), I === "association-end" && j(E, {
|
|
19482
19489
|
element: it("path", {
|
|
19483
19490
|
d: "M 1 5 L 11 10 L 1 15",
|
|
19484
19491
|
...u({
|
|
@@ -19494,7 +19501,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19494
19501
|
},
|
|
19495
19502
|
scale: 0.5,
|
|
19496
19503
|
parentGfx: A
|
|
19497
|
-
}),
|
|
19504
|
+
}), I === "conditional-flow-marker" && j(E, {
|
|
19498
19505
|
element: it("path", {
|
|
19499
19506
|
d: "M 0 10 L 8 6 L 16 10 L 8 14 Z",
|
|
19500
19507
|
...h({
|
|
@@ -19508,7 +19515,7 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19508
19515
|
},
|
|
19509
19516
|
scale: 0.5,
|
|
19510
19517
|
parentGfx: A
|
|
19511
|
-
}),
|
|
19518
|
+
}), I === "conditional-default-flow-marker" && j(E, {
|
|
19512
19519
|
element: it("path", {
|
|
19513
19520
|
d: "M 6 4 L 10 16",
|
|
19514
19521
|
...h({
|
|
@@ -19524,10 +19531,10 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19524
19531
|
parentGfx: A
|
|
19525
19532
|
});
|
|
19526
19533
|
}
|
|
19527
|
-
function B(A, E,
|
|
19534
|
+
function B(A, E, I, K) {
|
|
19528
19535
|
const ae = s[E.type]?.icon || E.icon;
|
|
19529
19536
|
ae && w(A, n.getScaledPath(ae, { abspos: {
|
|
19530
|
-
x:
|
|
19537
|
+
x: I,
|
|
19531
19538
|
y: K
|
|
19532
19539
|
} }), {
|
|
19533
19540
|
strokeWidth: 0,
|
|
@@ -19535,36 +19542,36 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19535
19542
|
});
|
|
19536
19543
|
}
|
|
19537
19544
|
const M = {
|
|
19538
|
-
event(A, E,
|
|
19539
|
-
return "fillOpacity" in
|
|
19545
|
+
event(A, E, I) {
|
|
19546
|
+
return "fillOpacity" in I || (I.fillOpacity = mr), b(A, E.width, E.height, I);
|
|
19540
19547
|
},
|
|
19541
19548
|
startEvent(A, E) {
|
|
19542
|
-
const
|
|
19549
|
+
const I = {
|
|
19543
19550
|
fill: An(E, s.startEvent?.fill || E.fill),
|
|
19544
19551
|
stroke: Ot(E, s.startEvent?.stroke || E.stroke),
|
|
19545
19552
|
strokeWidth: ki(E, s.startEvent?.strokeWidth || E.strokeWidth)
|
|
19546
|
-
}, K = f("event")(A, E,
|
|
19553
|
+
}, K = f("event")(A, E, I);
|
|
19547
19554
|
return B(A, E, 18, 18), K;
|
|
19548
19555
|
},
|
|
19549
19556
|
endEvent(A, E) {
|
|
19550
|
-
const
|
|
19557
|
+
const I = f("event")(A, E, {
|
|
19551
19558
|
strokeWidth: ki(E, s.endEvent?.strokeWidth || E.strokeWidth || 4),
|
|
19552
19559
|
fill: An(E, s.endEvent?.fill || E.fill),
|
|
19553
19560
|
stroke: Ot(E, s.endEvent?.stroke || E.stroke)
|
|
19554
19561
|
});
|
|
19555
|
-
return B(A, E, 18, 18),
|
|
19562
|
+
return B(A, E, 18, 18), I;
|
|
19556
19563
|
},
|
|
19557
19564
|
gateway(A, E) {
|
|
19558
|
-
const
|
|
19565
|
+
const I = {
|
|
19559
19566
|
fillOpacity: mr,
|
|
19560
19567
|
strokeWidth: ki(E, s[E.type]?.strokeWidth || E.strokeWidth || 4),
|
|
19561
19568
|
fill: An(E, s[E.type]?.fill || E.fill),
|
|
19562
19569
|
stroke: Ot(E, s[E.type]?.stroke || E.stroke)
|
|
19563
19570
|
};
|
|
19564
|
-
return m(A, E.width, E.height,
|
|
19571
|
+
return m(A, E.width, E.height, I);
|
|
19565
19572
|
},
|
|
19566
19573
|
gatewayAnd(A, E) {
|
|
19567
|
-
const
|
|
19574
|
+
const I = f("gateway")(A, E);
|
|
19568
19575
|
return w(A, n.getScaledPath("GATEWAY_PARALLEL", {
|
|
19569
19576
|
xScaleFactor: 0.4,
|
|
19570
19577
|
yScaleFactor: 0.4,
|
|
@@ -19578,10 +19585,10 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19578
19585
|
strokeWidth: 1,
|
|
19579
19586
|
fill: Ot(E, s[E.type]?.iconFill || E.iconFill),
|
|
19580
19587
|
stroke: Ot(E, s[E.type]?.iconFill || E.iconFill)
|
|
19581
|
-
}),
|
|
19588
|
+
}), I;
|
|
19582
19589
|
},
|
|
19583
19590
|
gatewayXor(A, E) {
|
|
19584
|
-
const
|
|
19591
|
+
const I = f("gateway")(A, E);
|
|
19585
19592
|
return w(A, n.getScaledPath("GATEWAY_EXCLUSIVE", {
|
|
19586
19593
|
xScaleFactor: 0.4,
|
|
19587
19594
|
yScaleFactor: 0.4,
|
|
@@ -19595,28 +19602,28 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19595
19602
|
strokeWidth: 1,
|
|
19596
19603
|
fill: Ot(E, s[E.type]?.iconFill || E.iconFill),
|
|
19597
19604
|
stroke: Ot(E, s[E.type]?.iconFill || E.iconFill)
|
|
19598
|
-
}),
|
|
19605
|
+
}), I;
|
|
19599
19606
|
},
|
|
19600
19607
|
gatewayInclusive(A, E) {
|
|
19601
|
-
const
|
|
19608
|
+
const I = f("gateway")(A, E);
|
|
19602
19609
|
return b(A, E.width, E.height, E.height * 0.24, {
|
|
19603
19610
|
strokeWidth: 2.5,
|
|
19604
19611
|
fill: Ot(E, l),
|
|
19605
19612
|
stroke: Ot(E, s[E.type]?.iconFill || E.iconFill)
|
|
19606
|
-
}),
|
|
19613
|
+
}), I;
|
|
19607
19614
|
},
|
|
19608
|
-
activity(A, E,
|
|
19609
|
-
return
|
|
19615
|
+
activity(A, E, I) {
|
|
19616
|
+
return I = I || {}, "fillOpacity" in I || (I.fillOpacity = mr), x(A, E.width, E.height, Fr, I);
|
|
19610
19617
|
},
|
|
19611
19618
|
task(A, E) {
|
|
19612
|
-
const
|
|
19619
|
+
const I = {
|
|
19613
19620
|
fill: An(E, l),
|
|
19614
19621
|
stroke: Ot(E, c)
|
|
19615
|
-
}, K = f("activity")(A, E,
|
|
19622
|
+
}, K = f("activity")(A, E, I);
|
|
19616
19623
|
return v(A, E, "center-middle"), S(A, E), K;
|
|
19617
19624
|
},
|
|
19618
19625
|
userTask(A, E) {
|
|
19619
|
-
const
|
|
19626
|
+
const I = f("task")(A, E), K = 15, ae = 12;
|
|
19620
19627
|
return w(A, n.getScaledPath("TASK_TYPE_USER_1", { abspos: {
|
|
19621
19628
|
x: K,
|
|
19622
19629
|
y: ae
|
|
@@ -19638,17 +19645,17 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19638
19645
|
strokeWidth: 0.5,
|
|
19639
19646
|
fill: Ot(E, c),
|
|
19640
19647
|
stroke: Ot(E, c)
|
|
19641
|
-
}),
|
|
19648
|
+
}), I;
|
|
19642
19649
|
},
|
|
19643
19650
|
scriptTask(A, E) {
|
|
19644
|
-
const
|
|
19651
|
+
const I = f("task")(A, E);
|
|
19645
19652
|
return w(A, n.getScaledPath("TASK_TYPE_SCRIPT", { abspos: {
|
|
19646
19653
|
x: 15,
|
|
19647
19654
|
y: 20
|
|
19648
19655
|
} }), {
|
|
19649
19656
|
strokeWidth: 1,
|
|
19650
19657
|
stroke: Ot(E, c)
|
|
19651
|
-
}),
|
|
19658
|
+
}), I;
|
|
19652
19659
|
},
|
|
19653
19660
|
SubProcessMarker(A, E) {
|
|
19654
19661
|
Un(x(A, 14, 14, 0, {
|
|
@@ -19669,30 +19676,30 @@ function Qa(e, t, n, a, o, i, r) {
|
|
|
19669
19676
|
stroke: Ot(E, c)
|
|
19670
19677
|
});
|
|
19671
19678
|
},
|
|
19672
|
-
subprocess(A, E,
|
|
19673
|
-
|
|
19679
|
+
subprocess(A, E, I) {
|
|
19680
|
+
I = Mt({
|
|
19674
19681
|
fill: An(E, l),
|
|
19675
19682
|
stroke: Ot(E, c)
|
|
19676
|
-
},
|
|
19677
|
-
const K = f("activity")(A, E,
|
|
19683
|
+
}, I);
|
|
19684
|
+
const K = f("activity")(A, E, I);
|
|
19678
19685
|
return v(A, E, "center-middle"), S(A, E, ["SubProcessMarker"]), K;
|
|
19679
19686
|
},
|
|
19680
19687
|
label(A, E) {
|
|
19681
19688
|
return _(A, E);
|
|
19682
19689
|
},
|
|
19683
19690
|
myline(A, E) {
|
|
19684
|
-
const
|
|
19691
|
+
const I = An(E, i.lineStroke || l), K = Ot(E, i.lineStroke || c);
|
|
19685
19692
|
return g(A, E.waypoints, {
|
|
19686
|
-
markerEnd: T(A, "sequenceflow-end",
|
|
19693
|
+
markerEnd: T(A, "sequenceflow-end", I, K),
|
|
19687
19694
|
stroke: K
|
|
19688
19695
|
});
|
|
19689
19696
|
},
|
|
19690
19697
|
default(A, E) {
|
|
19691
|
-
const
|
|
19698
|
+
const I = {
|
|
19692
19699
|
strokeWidth: ki(E, s[E.type]?.strokeWidth || E.strokeWidth || 1),
|
|
19693
19700
|
fill: An(E, s[E.type]?.fill || E.fill),
|
|
19694
19701
|
stroke: Ot(E, s[E.type]?.stroke || E.stroke)
|
|
19695
|
-
}, K = x(A, E.width, E.height, E.radius || Fr,
|
|
19702
|
+
}, K = x(A, E.width, E.height, E.radius || Fr, I);
|
|
19696
19703
|
return v(A, E, "center-middle"), S(A, E), B(A, E, E.iconX, E.iconY), K;
|
|
19697
19704
|
}
|
|
19698
19705
|
};
|
|
@@ -23497,10 +23504,10 @@ var c1 = {
|
|
|
23497
23504
|
if (m(M, T).display !== !1 && M.rule && M.rule.length > 0) {
|
|
23498
23505
|
const A = M.rule.length;
|
|
23499
23506
|
for (let E = 0; E < A; E++) {
|
|
23500
|
-
const
|
|
23501
|
-
if (
|
|
23502
|
-
return _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(M.label)}:${i(
|
|
23503
|
-
if (
|
|
23507
|
+
const I = M.rule[E];
|
|
23508
|
+
if (I.pattern = I.pattern ? I.pattern + "" : "", I.pattern && !nn(H[M.prop || ""]) && !new RegExp(I.pattern.substring(1, I.pattern.length - 1)).test(H[M.prop || ""]))
|
|
23509
|
+
return _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(M.label)}:${i(I.message)}`, _.isOk = !1, _;
|
|
23510
|
+
if (I.required && nn(H[M.prop || ""]))
|
|
23504
23511
|
return _.isOk = !1, _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(M.label)}:${i("不能为空")}`, _;
|
|
23505
23512
|
}
|
|
23506
23513
|
}
|
|
@@ -23657,8 +23664,8 @@ var c1 = {
|
|
|
23657
23664
|
return E == null ? "" : String(E);
|
|
23658
23665
|
}
|
|
23659
23666
|
return A.map((E) => {
|
|
23660
|
-
const
|
|
23661
|
-
return
|
|
23667
|
+
const I = B[E];
|
|
23668
|
+
return I == null ? "" : String(I);
|
|
23662
23669
|
}).join("::");
|
|
23663
23670
|
}, h = (B, M) => u(B) || String(M), p = D([]), g = P({
|
|
23664
23671
|
get() {
|
|
@@ -23684,11 +23691,11 @@ var c1 = {
|
|
|
23684
23691
|
});
|
|
23685
23692
|
return;
|
|
23686
23693
|
}
|
|
23687
|
-
M ? B.forEach((
|
|
23688
|
-
const K = u(
|
|
23694
|
+
M ? B.forEach((I) => {
|
|
23695
|
+
const K = u(I);
|
|
23689
23696
|
K && !p.value.includes(K) && p.value.push(K);
|
|
23690
|
-
}) : B.forEach((
|
|
23691
|
-
const K = u(
|
|
23697
|
+
}) : B.forEach((I) => {
|
|
23698
|
+
const K = u(I);
|
|
23692
23699
|
K && (p.value = p.value.filter((ae) => ae !== K));
|
|
23693
23700
|
}), o("selectionChange", {
|
|
23694
23701
|
selections: p.value,
|
|
@@ -23707,8 +23714,8 @@ var c1 = {
|
|
|
23707
23714
|
buttons: A,
|
|
23708
23715
|
row: B
|
|
23709
23716
|
}), A = A.filter((ae) => ae?.config?.display !== !1));
|
|
23710
|
-
let E = A.length,
|
|
23711
|
-
a.maxBtns && E > a.maxBtns && (E = a.maxBtns,
|
|
23717
|
+
let E = A.length, I = !1;
|
|
23718
|
+
a.maxBtns && E > a.maxBtns && (E = a.maxBtns, I = !0);
|
|
23712
23719
|
const K = {
|
|
23713
23720
|
id: Wn(),
|
|
23714
23721
|
label: "",
|
|
@@ -23721,9 +23728,9 @@ var c1 = {
|
|
|
23721
23728
|
};
|
|
23722
23729
|
for (let ae = 0; ae < E; ae++) {
|
|
23723
23730
|
let _e = A[ae];
|
|
23724
|
-
|
|
23731
|
+
I && ae === E - 1 && (_e = K), M.push(_e);
|
|
23725
23732
|
}
|
|
23726
|
-
if (
|
|
23733
|
+
if (I && a.maxBtns) for (let ae = a.maxBtns - 1; ae < A.length; ae++) {
|
|
23727
23734
|
const _e = A[ae];
|
|
23728
23735
|
K.children?.push(_e), _e.children && (K.children?.push(..._e.children), delete _e.children);
|
|
23729
23736
|
}
|
|
@@ -23763,7 +23770,7 @@ var c1 = {
|
|
|
23763
23770
|
getSelections: () => w(),
|
|
23764
23771
|
selections: p
|
|
23765
23772
|
}), (B, M) => {
|
|
23766
|
-
const A = F("el-image"), E = F("j-button"),
|
|
23773
|
+
const A = F("el-image"), E = F("j-button"), I = F("el-dropdown-item"), K = F("el-dropdown-menu"), ae = F("el-dropdown"), _e = F("el-tooltip"), q = F("el-radio"), Q = F("el-checkbox"), U = F("el-pagination"), z = go("loading");
|
|
23767
23774
|
return k(), L("div", {
|
|
23768
23775
|
class: "j-card-list",
|
|
23769
23776
|
style: ce({
|
|
@@ -23811,7 +23818,7 @@ var c1 = {
|
|
|
23811
23818
|
trigger: "click"
|
|
23812
23819
|
}, {
|
|
23813
23820
|
dropdown: Z(() => [ee(K, null, {
|
|
23814
|
-
default: Z(() => [(k(!0), L(je, null, De(xe.children, (Ne) => (k(), N(
|
|
23821
|
+
default: Z(() => [(k(!0), L(je, null, De(xe.children, (Ne) => (k(), N(I, {
|
|
23815
23822
|
key: Ne.id,
|
|
23816
23823
|
disabled: Ne.config?.disabled,
|
|
23817
23824
|
onClick: (et) => C(Ne, Re, Ve)
|
|
@@ -23867,7 +23874,7 @@ var c1 = {
|
|
|
23867
23874
|
"model-value": b(Re),
|
|
23868
23875
|
onChange: (xe) => x([Re], !!xe)
|
|
23869
23876
|
}, null, 8, ["model-value", "onChange"])])) : te("", !0)
|
|
23870
|
-
], 4)], 4))), 128))])), [[
|
|
23877
|
+
], 4)], 4))), 128))])), [[z, e.loading]]), e.isPage ? (k(), L("div", k1, [ee(U, {
|
|
23871
23878
|
"current-page": _.value,
|
|
23872
23879
|
"onUpdate:currentPage": M[3] || (M[3] = (Re) => _.value = Re),
|
|
23873
23880
|
"page-size": v.value,
|