@a2simcode/ui 0.0.195 → 0.0.197
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 +124 -124
- 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
|
@@ -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, ve = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R,
|
|
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, ve = y.high, W = y.low, G = _.high, Q = _.low, M = k, ue = R, Ae = T, me = A, Ve = P, Ye = L, ne = I, Ee = j, Be = E, Ie = V, Et = q, bt = se, Xe = ve, 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), ye = f[Bt - 2],
|
|
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), ye = f[Bt - 2], Te = ye.high, ze = ye.low, nt = (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, Jn = f[Bt - 16], ya = Jn.high, $a = Jn.low;
|
|
1413
1413
|
Ht = ie + kn, ut = ae + Sn + (Ht >>> 0 < ie >>> 0 ? 1 : 0), Ht = Ht + Ct, ut = ut + nt + (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 + Le + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Ve, Ee = Ye, Ve =
|
|
1415
|
+
var co = Be & Et ^ ~Be & Xe, be = Ie & bt ^ ~Ie & Kt, Re = M & Ae ^ M & Ve ^ Ae & Ve, gt = ue & me ^ ue & Ye ^ me & 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, Le = ln + St + (vt >>> 0 < qt >>> 0 ? 1 : 0), vt = vt + be, Le = Le + co + (vt >>> 0 < be >>> 0 ? 1 : 0), vt = vt + Ln, Le = Le + Yt + (vt >>> 0 < Ln >>> 0 ? 1 : 0), vt = vt + Ht, Le = Le + 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 + Le + (Ie >>> 0 < Ee >>> 0 ? 1 : 0) | 0, ne = Ve, Ee = Ye, Ve = Ae, Ye = me, Ae = M, me = ue, ue = vt + Rn | 0, M = Le + 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 + me, x.high = T +
|
|
1418
|
+
R = b.low = R + ue, b.high = k + M + (R >>> 0 < ue >>> 0 ? 1 : 0), A = x.low = A + me, x.high = T + Ae + (A >>> 0 < me >>> 0 ? 1 : 0), L = m.low = L + Ye, m.high = P + Ve + (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 = ve + 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;
|
|
@@ -5379,16 +5379,16 @@ var Ap = class {
|
|
|
5379
5379
|
let M;
|
|
5380
5380
|
if (y ? M = y[n.id] : s ? M = s[n.id] : M = n.modelValue, M === void 0 && I.value === "j-tabs") {
|
|
5381
5381
|
if (A.value?.defaultValue) return A.value.defaultValue;
|
|
5382
|
-
const ue = n.children.findIndex((
|
|
5382
|
+
const ue = n.children.findIndex((Ae) => Ae.config?.active);
|
|
5383
5383
|
return ue > -1 ? "_tab" + ue : "_tab0";
|
|
5384
5384
|
}
|
|
5385
5385
|
if (M === void 0 && I.value === "j-collapse") {
|
|
5386
5386
|
if (A.value?.defaultValue) return A.value.defaultValue;
|
|
5387
|
-
const ue = n.children.map((
|
|
5388
|
-
item:
|
|
5387
|
+
const ue = n.children.map((Ae, me) => ({
|
|
5388
|
+
item: Ae,
|
|
5389
5389
|
index: me
|
|
5390
|
-
})).filter(({ item:
|
|
5391
|
-
return A.value?.accordion ? ue.length > 0 ? "_collapse" + ue[0].index : "" : ue.map(({ index:
|
|
5390
|
+
})).filter(({ item: Ae }) => Ae.config?.active);
|
|
5391
|
+
return A.value?.accordion ? ue.length > 0 ? "_collapse" + ue[0].index : "" : ue.map(({ index: Ae }) => "_collapse" + Ae);
|
|
5392
5392
|
}
|
|
5393
5393
|
return k.value ? M ? M.split(",") : [] : M;
|
|
5394
5394
|
},
|
|
@@ -5441,30 +5441,30 @@ var Ap = class {
|
|
|
5441
5441
|
"j-input-rows",
|
|
5442
5442
|
"j-table"
|
|
5443
5443
|
].includes(P.value) && (M.columns = n.children.map((ue) => {
|
|
5444
|
-
const
|
|
5445
|
-
return
|
|
5444
|
+
const Ae = ue.config?.parentTableId;
|
|
5445
|
+
return Ae && ue.id && ue.id.startsWith(Ae + ".") ? {
|
|
5446
5446
|
...ue,
|
|
5447
|
-
id: ue.id.slice(
|
|
5447
|
+
id: ue.id.slice(Ae.length + 1)
|
|
5448
5448
|
} : ue;
|
|
5449
5449
|
})), 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
5450
|
}), q = H(() => {
|
|
5451
5451
|
if (I.value === "j-layer-form" || I.value === "j-input-rows" || I.value === "j-input-cards") return {};
|
|
5452
5452
|
const M = {};
|
|
5453
|
-
return n.children.forEach((ue,
|
|
5453
|
+
return n.children.forEach((ue, Ae) => {
|
|
5454
5454
|
let me = ue;
|
|
5455
5455
|
I.value === "j-tabs" && (me = {
|
|
5456
5456
|
...ue,
|
|
5457
5457
|
type: "el-tab-pane",
|
|
5458
5458
|
config: {
|
|
5459
5459
|
...ue.config || {},
|
|
5460
|
-
name: "_tab" +
|
|
5460
|
+
name: "_tab" + Ae
|
|
5461
5461
|
}
|
|
5462
5462
|
}, c == "form" && (me.config.needRow = me.config.needRow !== !1, me.config.needFormItem = me.config.needFormItem !== !1)), I.value === "j-collapse" && (me = {
|
|
5463
5463
|
...ue,
|
|
5464
5464
|
type: "el-collapse-item",
|
|
5465
5465
|
config: {
|
|
5466
5466
|
...ue.config || {},
|
|
5467
|
-
name: "_collapse" +
|
|
5467
|
+
name: "_collapse" + Ae
|
|
5468
5468
|
}
|
|
5469
5469
|
}, c == "form" && (me.config.needRow = me.config.needRow !== !1, me.config.needFormItem = me.config.needFormItem !== !1)), me.slot ? (M[me.slot] = M[me.slot] || [], M[me.slot].push(me)) : (M.default = M.default || [], M.default.push(me));
|
|
5470
5470
|
}), M;
|
|
@@ -5496,7 +5496,7 @@ var Ap = class {
|
|
|
5496
5496
|
}), jo(() => {
|
|
5497
5497
|
W.value.forEach((M) => M()), W.value = [];
|
|
5498
5498
|
}), (M, ue) => {
|
|
5499
|
-
const
|
|
5499
|
+
const Ae = $("JComp"), me = $("el-row");
|
|
5500
5500
|
return V.value.display != !1 && _.value ? (S(), F(Ta(I.value), We({
|
|
5501
5501
|
key: 0,
|
|
5502
5502
|
ref_key: "compRef",
|
|
@@ -5508,7 +5508,7 @@ var Ap = class {
|
|
|
5508
5508
|
onChange: se
|
|
5509
5509
|
}), Fn({ _: 2 }, [Oe(q.value, (Ve, Ye) => ({
|
|
5510
5510
|
name: Ye,
|
|
5511
|
-
fn: J(() => [(S(!0), O(ke, null, Oe(Ve, (ne) => (S(), F(
|
|
5511
|
+
fn: J(() => [(S(!0), O(ke, null, Oe(Ve, (ne) => (S(), F(Ae, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))])
|
|
5512
5512
|
}))]), 1040, ["modelValue", "run-flow"])) : V.value.display != !1 ? (S(), F(Ta(I.value), We({
|
|
5513
5513
|
key: 1,
|
|
5514
5514
|
ref_key: "compRef",
|
|
@@ -5522,9 +5522,9 @@ var Ap = class {
|
|
|
5522
5522
|
key: 0,
|
|
5523
5523
|
gutter: p.value
|
|
5524
5524
|
}, {
|
|
5525
|
-
default: J(() => [V.value.needFormItem === !0 || V.value.needFormItem?.[Ye] === !0 ? (S(!0), O(ke, { key: 0 }, Oe(Ve, (ne) => (S(), F(Hc, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128)) : (S(!0), O(ke, { key: 1 }, Oe(Ve, (ne) => (S(), F(
|
|
5525
|
+
default: J(() => [V.value.needFormItem === !0 || V.value.needFormItem?.[Ye] === !0 ? (S(!0), O(ke, { key: 0 }, Oe(Ve, (ne) => (S(), F(Hc, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128)) : (S(!0), O(ke, { key: 1 }, Oe(Ve, (ne) => (S(), F(Ae, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))]),
|
|
5526
5526
|
_: 2
|
|
5527
|
-
}, 1032, ["gutter"])) : (S(!0), O(ke, { key: 1 }, Oe(Ve, (ne) => (S(), F(
|
|
5527
|
+
}, 1032, ["gutter"])) : (S(!0), O(ke, { key: 1 }, Oe(Ve, (ne) => (S(), F(Ae, We({ key: ne.id }, { ref_for: !0 }, ne), null, 16))), 128))])
|
|
5528
5528
|
}))]), 1040, ["run-flow"])) : ee("", !0);
|
|
5529
5529
|
};
|
|
5530
5530
|
}
|
|
@@ -5815,7 +5815,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5815
5815
|
V = !1, W();
|
|
5816
5816
|
}, ue = (D) => {
|
|
5817
5817
|
D.preventDefault();
|
|
5818
|
-
},
|
|
5818
|
+
}, Ae = (D) => {
|
|
5819
5819
|
D.config?.disabled || (I.value && D.click && D.click({
|
|
5820
5820
|
data: I.value,
|
|
5821
5821
|
openLayer: u
|
|
@@ -5843,8 +5843,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5843
5843
|
const { Group: N, Text: Z } = Je.CustomLayout, oe = o.actionsMaxCount, U = D.filter((he) => he.config?.display !== !1), te = U.length > oe, re = te ? U.slice(0, oe - 1) : U;
|
|
5844
5844
|
let ge = 0;
|
|
5845
5845
|
if (re.forEach((he, Se) => {
|
|
5846
|
-
const
|
|
5847
|
-
ge +=
|
|
5846
|
+
const Me = bn(he.config?.label || he.label || "") || 0;
|
|
5847
|
+
ge += Me + (Se === 0 ? 24 : 12);
|
|
5848
5848
|
}), te) {
|
|
5849
5849
|
const he = (bn("更多") || 0) + 12;
|
|
5850
5850
|
ge += he;
|
|
@@ -5859,13 +5859,13 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5859
5859
|
disableColumnResize: !0,
|
|
5860
5860
|
disableSelect: !0,
|
|
5861
5861
|
customLayout: (he) => {
|
|
5862
|
-
const { table: Se, row:
|
|
5862
|
+
const { table: Se, row: Me, col: He } = he, je = Se.getCellOriginRecord(He, Me), Ze = Se.getRecordIndexByCell(He, Me), De = U.map((_e) => {
|
|
5863
5863
|
const ft = me({
|
|
5864
5864
|
action: _e,
|
|
5865
5865
|
record: je,
|
|
5866
5866
|
recordIndex: Ze,
|
|
5867
5867
|
col: He,
|
|
5868
|
-
row:
|
|
5868
|
+
row: Me,
|
|
5869
5869
|
table: Se
|
|
5870
5870
|
});
|
|
5871
5871
|
return {
|
|
@@ -5934,12 +5934,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5934
5934
|
const { dataValue: Z, table: oe, col: U, row: te, value: re } = D, ge = D.rect ?? oe?.getCellRect?.(U, te) ?? {
|
|
5935
5935
|
width: 0,
|
|
5936
5936
|
height: 0
|
|
5937
|
-
}, fe = oe?.getBodyField?.(U, te), he = oe?.options?.columns || [], Se = (fe ? ut(he, fe) : null)?.style?.textAlign || "left",
|
|
5937
|
+
}, fe = oe?.getBodyField?.(U, te), he = oe?.options?.columns || [], Se = (fe ? ut(he, fe) : null)?.style?.textAlign || "left", Me = 8, He = Math.max(0, ge.width - Me * 2);
|
|
5938
5938
|
let je = re ?? Z;
|
|
5939
5939
|
je == null && (je = "");
|
|
5940
5940
|
const Ze = bt(typeof je == "object" ? JSON.stringify(je) : String(je), He);
|
|
5941
|
-
let De =
|
|
5942
|
-
return Se === "center" ? (De = ge.width / 2, Pe = "center") : Se === "right" && (De = Math.max(
|
|
5941
|
+
let De = Me, Pe = "left";
|
|
5942
|
+
return Se === "center" ? (De = ge.width / 2, Pe = "center") : Se === "right" && (De = Math.max(Me, ge.width - Me), Pe = "right"), {
|
|
5943
5943
|
elements: [{
|
|
5944
5944
|
type: "text",
|
|
5945
5945
|
text: Ze,
|
|
@@ -5956,9 +5956,9 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5956
5956
|
const { dataValue: Z, rect: oe, table: U, col: te, row: re } = D;
|
|
5957
5957
|
let ge = "mdi:toggle-switch", fe = "#165dff";
|
|
5958
5958
|
Z || (ge = "mdi:toggle-switch-off", fe = "#e5e6eb");
|
|
5959
|
-
const he = Sa(ge), Se = he?.body?.replace(/currentColor/g, fe),
|
|
5959
|
+
const he = Sa(ge), Se = he?.body?.replace(/currentColor/g, fe), Me = [], He = U?.getBodyField?.(te, re), je = U?.options?.columns || [], Ze = He ? ut(je, He) : null, De = 8, Pe = 40;
|
|
5960
5960
|
let Qe = De;
|
|
5961
|
-
return Ze?.style?.textAlign === "center" ? Qe = Math.max(De, (oe.width - Pe) / 2) : Ze?.style?.textAlign === "right" && (Qe = Math.max(De, oe.width - Pe - De)),
|
|
5961
|
+
return Ze?.style?.textAlign === "center" ? Qe = Math.max(De, (oe.width - Pe) / 2) : Ze?.style?.textAlign === "right" && (Qe = Math.max(De, oe.width - Pe - De)), Me.push({
|
|
5962
5962
|
type: "icon",
|
|
5963
5963
|
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${Pe}" height="${Pe}" viewBox="0 0 ${he?.width} ${he?.height}" >${Se}</svg>`,
|
|
5964
5964
|
x: Qe,
|
|
@@ -5966,18 +5966,18 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
5966
5966
|
width: Pe,
|
|
5967
5967
|
height: Pe
|
|
5968
5968
|
}), {
|
|
5969
|
-
elements:
|
|
5969
|
+
elements: Me,
|
|
5970
5970
|
expectedHeight: yn
|
|
5971
5971
|
};
|
|
5972
5972
|
}, Be = (D, N) => {
|
|
5973
|
-
const { dataValue: Z, rect: oe } = D, U = Number(Z) || 0, te = 5, re = 20, ge = 4, fe = 8, he = (oe.height - re) / 2, Se = [],
|
|
5973
|
+
const { dataValue: Z, rect: oe } = D, U = Number(Z) || 0, te = 5, re = 20, ge = 4, fe = 8, he = (oe.height - re) / 2, Se = [], Me = Sa("mdi:star"), He = Sa("mdi:star-half-full"), je = Sa("mdi:star-outline"), Ze = "#f7ba2a", De = "#e5e6eb";
|
|
5974
5974
|
for (let Pe = 0; Pe < te; Pe++) {
|
|
5975
5975
|
const Qe = fe + Pe * (re + ge), et = he;
|
|
5976
5976
|
if (U >= Pe + 1) {
|
|
5977
|
-
const ct =
|
|
5977
|
+
const ct = Me?.body?.replace(/currentColor/g, Ze);
|
|
5978
5978
|
Se.push({
|
|
5979
5979
|
type: "icon",
|
|
5980
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${re}" height="${re}" viewBox="0 0 ${
|
|
5980
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${re}" height="${re}" viewBox="0 0 ${Me?.width} ${Me?.height}">${ct}</svg>`,
|
|
5981
5981
|
x: Qe,
|
|
5982
5982
|
y: et,
|
|
5983
5983
|
width: re,
|
|
@@ -6016,7 +6016,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6016
6016
|
formData: r || {},
|
|
6017
6017
|
getTableData: be,
|
|
6018
6018
|
row: he
|
|
6019
|
-
}) || {},
|
|
6019
|
+
}) || {}, Me = Number(Se.min) || 0, He = Number(Se.max) || 100, je = Number(Z) || 0, Ze = He - Me, De = Ze === 0 ? 0 : Math.max(0, Math.min(100, (je - Me) / 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 * De / 100, gn = [], vn = (Jt, it, Tt) => {
|
|
6020
6020
|
const pt = Math.min(Tt, it / 2, Jt / 2);
|
|
6021
6021
|
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
6022
|
}, uo = (Jt, it, Tt) => {
|
|
@@ -6078,7 +6078,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6078
6078
|
formData: r || {},
|
|
6079
6079
|
getTableData: be,
|
|
6080
6080
|
row: he
|
|
6081
|
-
}) || {},
|
|
6081
|
+
}) || {}, Me = Number(Se.size) || 16, He = Se.color, je = (oe.width - Me) / 2, Ze = (oe.height - Me) / 2;
|
|
6082
6082
|
let De = String(Z).trim();
|
|
6083
6083
|
if (!De) return {
|
|
6084
6084
|
elements: [],
|
|
@@ -6093,13 +6093,13 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6093
6093
|
const tt = Qe.match(/\bwidth\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1], _e = Qe.match(/\bheight\s*=\s*["']?([0-9.]+)[^"']*["']?/i)?.[1];
|
|
6094
6094
|
ct = tt && _e ? `0 0 ${tt} ${_e}` : "0 0 24 24";
|
|
6095
6095
|
}
|
|
6096
|
-
De = `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6097
|
-
} else De = `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6096
|
+
De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="${ct}">${et}</svg>`;
|
|
6097
|
+
} else De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 24 24"></svg>`;
|
|
6098
6098
|
} else {
|
|
6099
6099
|
const Pe = Sa(De);
|
|
6100
6100
|
if (Pe) {
|
|
6101
6101
|
const { body: Qe, width: et, height: ct } = Pe;
|
|
6102
|
-
De = `<svg xmlns="http://www.w3.org/2000/svg" width="${
|
|
6102
|
+
De = `<svg xmlns="http://www.w3.org/2000/svg" width="${Me}" height="${Me}" viewBox="0 0 ${et} ${ct}">${Qe}</svg>`;
|
|
6103
6103
|
}
|
|
6104
6104
|
}
|
|
6105
6105
|
return He && (De = De.replace(/currentColor/g, He)), {
|
|
@@ -6108,20 +6108,20 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6108
6108
|
svg: De,
|
|
6109
6109
|
x: je,
|
|
6110
6110
|
y: Ze,
|
|
6111
|
-
width:
|
|
6112
|
-
height:
|
|
6111
|
+
width: Me,
|
|
6112
|
+
height: Me
|
|
6113
6113
|
}],
|
|
6114
|
-
expectedHeight: Math.max(yn,
|
|
6114
|
+
expectedHeight: Math.max(yn, Me)
|
|
6115
6115
|
};
|
|
6116
6116
|
}, Kt = (D, N) => {
|
|
6117
|
-
const { dataValue: Z, rect: oe, table: U, col: te, row: re, value: ge } = D, fe = U.getBodyField(te, re), he = ut(U.options?.columns || [], fe), Se = U.getCellOriginRecord?.(te, re) || U.getRecordByCell?.(te, re) || {},
|
|
6117
|
+
const { dataValue: Z, rect: oe, table: U, col: te, row: re, value: ge } = D, fe = U.getBodyField(te, re), he = ut(U.options?.columns || [], fe), Se = U.getCellOriginRecord?.(te, re) || U.getRecordByCell?.(te, re) || {}, Me = N || xn({
|
|
6118
6118
|
config: he?._compConfig,
|
|
6119
6119
|
getCompConfig: he?._getCompConfig,
|
|
6120
6120
|
formData: r || {},
|
|
6121
6121
|
getTableData: be,
|
|
6122
6122
|
row: Se
|
|
6123
6123
|
}) || {}, He = he?.style?.textAlign || "left", je = f({
|
|
6124
|
-
config:
|
|
6124
|
+
config: Me,
|
|
6125
6125
|
row: Se,
|
|
6126
6126
|
value: he._fieldFormat ? ge : Z
|
|
6127
6127
|
});
|
|
@@ -6194,10 +6194,10 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6194
6194
|
if ((N * 299 + Z * 587 + oe * 114) / 1e3 >= 128) {
|
|
6195
6195
|
const U = N / 255, te = Z / 255, re = oe / 255, ge = Math.max(U, te, re), fe = Math.min(U, te, re);
|
|
6196
6196
|
let he = 0, Se = 0;
|
|
6197
|
-
const
|
|
6197
|
+
const Me = (ge + fe) / 2;
|
|
6198
6198
|
if (ge !== fe) {
|
|
6199
6199
|
const et = ge - fe;
|
|
6200
|
-
switch (Se =
|
|
6200
|
+
switch (Se = Me > 0.5 ? et / (2 - ge - fe) : et / (ge + fe), ge) {
|
|
6201
6201
|
case U:
|
|
6202
6202
|
he = (te - re) / et + (te < re ? 6 : 0);
|
|
6203
6203
|
break;
|
|
@@ -6222,7 +6222,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6222
6222
|
}
|
|
6223
6223
|
return "#ffffff";
|
|
6224
6224
|
}, qt = (D) => {
|
|
6225
|
-
const { table: N, row: Z, col: oe, rect: U, value: te } = D, { Group: re, Text: ge } = Je.CustomLayout, fe = N.getBodyField(oe, Z), he = ut(N.options?.columns || [], fe), Se = he?._compConfig || {},
|
|
6225
|
+
const { table: N, row: Z, col: oe, rect: U, value: te } = D, { Group: re, Text: ge } = Je.CustomLayout, fe = N.getBodyField(oe, Z), he = ut(N.options?.columns || [], fe), Se = he?._compConfig || {}, Me = new re({
|
|
6226
6226
|
height: U.height,
|
|
6227
6227
|
width: U.width,
|
|
6228
6228
|
display: "flex",
|
|
@@ -6253,14 +6253,14 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6253
6253
|
Ze.target.setAttribute("fill", ae(He, -20)), N.scenegraph.stage.renderNextFrame();
|
|
6254
6254
|
}), je.addEventListener("mouseleave", (Ze) => {
|
|
6255
6255
|
Ze.target.setAttribute("fill", He), N.scenegraph.stage.renderNextFrame();
|
|
6256
|
-
}),
|
|
6257
|
-
rootContainer:
|
|
6256
|
+
}), Me.add(je), {
|
|
6257
|
+
rootContainer: Me,
|
|
6258
6258
|
renderDefault: !1
|
|
6259
6259
|
};
|
|
6260
6260
|
}, Bt = (D) => {
|
|
6261
|
-
const { table: N, row: Z, col: oe, rect: U } = D, { height: te, width: re } = U ?? N.getCellRect(oe, Z), { Group: ge, CheckBox: fe } = Je.CustomLayout, he = N.getBodyField(oe, Z), Se = ut(N.options?.columns || [], he),
|
|
6262
|
-
const ft =
|
|
6263
|
-
|
|
6261
|
+
const { table: N, row: Z, col: oe, rect: U } = D, { height: te, width: re } = U ?? N.getCellRect(oe, Z), { Group: ge, CheckBox: fe } = Je.CustomLayout, he = N.getBodyField(oe, Z), Se = ut(N.options?.columns || [], he), Me = 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) => {
|
|
6262
|
+
const ft = Me?.[he];
|
|
6263
|
+
Me[he] = (Array.isArray(ft) ? ft : []).map((Ue, Lt) => Lt !== tt ? Ue : Ue && typeof Ue == "object" ? {
|
|
6264
6264
|
...Ue,
|
|
6265
6265
|
..._e
|
|
6266
6266
|
} : { ..._e });
|
|
@@ -6274,7 +6274,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6274
6274
|
alignItems: He,
|
|
6275
6275
|
justifyContent: "center",
|
|
6276
6276
|
flexWrap: "nowrap"
|
|
6277
|
-
}), Qe =
|
|
6277
|
+
}), Qe = Me?.[he];
|
|
6278
6278
|
if (!Array.isArray(Qe)) return {
|
|
6279
6279
|
rootContainer: Pe,
|
|
6280
6280
|
renderDefault: !1
|
|
@@ -6400,10 +6400,10 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6400
6400
|
});
|
|
6401
6401
|
const ce = (D) => {
|
|
6402
6402
|
const N = D.filter((Z) => Z.config?.display !== !1).map((Z) => {
|
|
6403
|
-
const { id: oe, type: U, config: te, getCompConfig: re, getCompType: ge, children: fe, customLayout: he } = Z, { label: Se, width:
|
|
6403
|
+
const { id: oe, type: U, config: te, getCompConfig: re, getCompType: ge, children: fe, customLayout: he } = Z, { label: Se, width: Me, minWidth: He, maxWidth: je, align: Ze, headerAlign: De, fieldFormat: Pe, editor: Qe, frozen: et, ...ct } = te || {}, tt = De ?? Ze, _e = {
|
|
6404
6404
|
field: oe,
|
|
6405
6405
|
title: Se,
|
|
6406
|
-
width:
|
|
6406
|
+
width: Me,
|
|
6407
6407
|
minWidth: He,
|
|
6408
6408
|
maxWidth: je,
|
|
6409
6409
|
...tt ? { headerStyle: { textAlign: tt } } : {},
|
|
@@ -6416,7 +6416,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6416
6416
|
_getCompType: ge,
|
|
6417
6417
|
frozen: et
|
|
6418
6418
|
}, ft = typeof ge == "function", Ue = Ic(U);
|
|
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 ||
|
|
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 || Me, _e.maxWidth = _e.maxWidth || Me), he && (_e.customLayout = Ht), _e.fieldFormat = Cn, fe && fe.length > 0 && (_e.columns = ce(fe)), _e;
|
|
6420
6420
|
});
|
|
6421
6421
|
return o.isTree && N.length > 0 && (N[0].tree = !0), N;
|
|
6422
6422
|
}, ae = (D, N) => {
|
|
@@ -6445,7 +6445,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6445
6445
|
_getCompConfig: void 0,
|
|
6446
6446
|
_getCompType: void 0
|
|
6447
6447
|
};
|
|
6448
|
-
},
|
|
6448
|
+
}, Te = () => ({
|
|
6449
6449
|
field: "__placeholder__",
|
|
6450
6450
|
title: "",
|
|
6451
6451
|
width: "auto",
|
|
@@ -6507,7 +6507,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6507
6507
|
C = 0, y = 0, _ = !1;
|
|
6508
6508
|
const U = {};
|
|
6509
6509
|
let te = ce(D);
|
|
6510
|
-
te.length === 0 && (te = [
|
|
6510
|
+
te.length === 0 && (te = [Te()]), te = nt(te);
|
|
6511
6511
|
const re = [], ge = [], fe = [];
|
|
6512
6512
|
te.forEach((He) => {
|
|
6513
6513
|
const je = ze(He);
|
|
@@ -6524,12 +6524,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6524
6524
|
pasteValueToCell: !0,
|
|
6525
6525
|
selectAllOnCtrlA: !0
|
|
6526
6526
|
});
|
|
6527
|
-
const
|
|
6527
|
+
const Me = (He) => {
|
|
6528
6528
|
for (const je of He)
|
|
6529
|
-
if (je?._compType === "checkbox" || je?.customRender === Nt || je?.customRender === Kt || Array.isArray(je?.columns) &&
|
|
6529
|
+
if (je?._compType === "checkbox" || je?.customRender === Nt || je?.customRender === Kt || Array.isArray(je?.columns) && Me(je.columns)) return !0;
|
|
6530
6530
|
return !1;
|
|
6531
6531
|
};
|
|
6532
|
-
return
|
|
6532
|
+
return Me(te) && !(o.subColumns && o.subColumns.length > 0) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
|
|
6533
6533
|
columns: te,
|
|
6534
6534
|
option: U
|
|
6535
6535
|
};
|
|
@@ -6607,12 +6607,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6607
6607
|
if ($t.value) {
|
|
6608
6608
|
if (ge === "checkbox" && te == 0) {
|
|
6609
6609
|
if (he.__checkState = U.target.attribute.checked, re === 0 && he.__checkState === !1) {
|
|
6610
|
-
const
|
|
6610
|
+
const Me = (He) => {
|
|
6611
6611
|
!Array.isArray(He) || He.length === 0 || He.forEach((je) => {
|
|
6612
|
-
je && (je.__checkState = !1, Array.isArray(je.children) && je.children.length > 0 &&
|
|
6612
|
+
je && (je.__checkState = !1, Array.isArray(je.children) && je.children.length > 0 && Me(je.children));
|
|
6613
6613
|
});
|
|
6614
6614
|
};
|
|
6615
|
-
|
|
6615
|
+
Me(he.children);
|
|
6616
6616
|
}
|
|
6617
6617
|
const Se = Wt();
|
|
6618
6618
|
Se.length == 0 && v.setCellCheckboxState(0, 0, !1), k.value = Se.length, i("selectionChanged", {
|
|
@@ -6737,8 +6737,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6737
6737
|
ge.forEach((fe) => {
|
|
6738
6738
|
if (Array.isArray(fe?.children) && fe.children.length > 0) {
|
|
6739
6739
|
oe(fe.children);
|
|
6740
|
-
const he = fe.children, Se = he.filter((He) => He?.[Z] === !0),
|
|
6741
|
-
Se.length == he.length ? fe[Z] = !0 :
|
|
6740
|
+
const he = fe.children, Se = he.filter((He) => He?.[Z] === !0), Me = he.filter((He) => He?.[Z] === !1);
|
|
6741
|
+
Se.length == he.length ? fe[Z] = !0 : Me.length == he.length ? fe[Z] = !1 : fe[Z] = "indeterminate", fe[Z] === "indeterminate" && (fe.hierarchyState = "expand");
|
|
6742
6742
|
} else fe[Z] = !!N.has(wt(fe));
|
|
6743
6743
|
});
|
|
6744
6744
|
}, U = v.records;
|
|
@@ -6928,7 +6928,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
6928
6928
|
cursor: te.config?.disabled ? "not-allowed" : "pointer",
|
|
6929
6929
|
opacity: te.config?.disabled ? 0.7 : 1
|
|
6930
6930
|
}),
|
|
6931
|
-
onClick: (re) =>
|
|
6931
|
+
onClick: (re) => Ae(te)
|
|
6932
6932
|
}, we(te.label), 13, Lp))), 128))], 36)) : ee("", !0)
|
|
6933
6933
|
], 6);
|
|
6934
6934
|
};
|
|
@@ -7116,16 +7116,16 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7116
7116
|
p.isMove = !1, typeof document < "u" && (document.onmouseup = null, document.onmousemove = null);
|
|
7117
7117
|
}, W = (M) => {
|
|
7118
7118
|
if (p.isMove) {
|
|
7119
|
-
const ue = M.pageX - p.pageX,
|
|
7120
|
-
let me = p._left + ue, Ve = p._top +
|
|
7119
|
+
const ue = M.pageX - p.pageX, Ae = M.pageY - p.pageY;
|
|
7120
|
+
let me = p._left + ue, Ve = p._top + Ae;
|
|
7121
7121
|
me + C.value < 0 && (me = -C.value), typeof document < "u" && document.body && (m.value ? me + m.value + C.value > document.body.clientWidth && (me = document.body.clientWidth - m.value - C.value) : me + _.value + C.value > document.body.clientWidth && (me = document.body.clientWidth - _.value - C.value)), Ve + y.value < 0 && (Ve = -y.value), typeof window < "u" && (v.value ? Ve + v.value + y.value + 40 > window.innerHeight && (Ve = window.innerHeight - v.value - y.value - 40) : Ve + w.value + y.value + 40 > window.innerHeight && (Ve = window.innerHeight - w.value - y.value - 40)), p.left = me, p.top = Ve;
|
|
7122
7122
|
}
|
|
7123
7123
|
}, G = (M) => {
|
|
7124
|
-
const ue = b.value.offsetLeft,
|
|
7125
|
-
if (M.clientX > ue + me - 10 && ne + M.clientY >
|
|
7126
|
-
else if (ue + 10 > M.clientX && ne + M.clientY >
|
|
7124
|
+
const ue = b.value.offsetLeft, Ae = b.value.offsetTop, me = b.value.clientWidth, Ve = b.value.clientHeight, Ye = Ve - x.value, ne = b.value.scrollTop;
|
|
7125
|
+
if (M.clientX > ue + me - 10 && ne + M.clientY > Ae + Ve - 10 || ne + M.clientY < Ae + 5 && ue + 10 > M.clientX) b.value.style.cursor = "se-resize";
|
|
7126
|
+
else if (ue + 10 > M.clientX && ne + M.clientY > Ae + Ve - 10 || M.clientX > ue + me - 10 && ne + M.clientY < Ae + 5) b.value.style.cursor = "sw-resize";
|
|
7127
7127
|
else if (M.clientX > ue + me - 10 || ue + 10 > M.clientX) b.value.style.cursor = "w-resize";
|
|
7128
|
-
else if (ne + M.clientY >
|
|
7128
|
+
else if (ne + M.clientY > Ae + Ve - 10 || ne + M.clientY < Ae + 5) b.value.style.cursor = "s-resize";
|
|
7129
7129
|
else {
|
|
7130
7130
|
b.value.style.cursor = "default", b.value.onmousedown = null;
|
|
7131
7131
|
return;
|
|
@@ -7145,7 +7145,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7145
7145
|
showLoading: k,
|
|
7146
7146
|
hideLoading: R
|
|
7147
7147
|
}), (M, ue) => {
|
|
7148
|
-
const
|
|
7148
|
+
const Ae = $("j-button"), me = $("el-space"), Ve = $("el-step"), Ye = $("el-steps"), ne = $("el-dialog");
|
|
7149
7149
|
return S(), F(ne, {
|
|
7150
7150
|
modelValue: r.value,
|
|
7151
7151
|
"onUpdate:modelValue": ue[0] || (ue[0] = (Ee) => r.value = Ee),
|
|
@@ -7177,7 +7177,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7177
7177
|
key: 0,
|
|
7178
7178
|
size: 0
|
|
7179
7179
|
}, {
|
|
7180
|
-
default: J(() => [X(
|
|
7180
|
+
default: J(() => [X(Ae, {
|
|
7181
7181
|
type: "text",
|
|
7182
7182
|
icon: "mdi:close",
|
|
7183
7183
|
onClick: T
|
|
@@ -7209,14 +7209,14 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7209
7209
|
B("div", Up, [Ke(M.$slots, "default")]),
|
|
7210
7210
|
e.hasBtns ? (S(), O("div", Yp, [X(me, { size: 8 }, {
|
|
7211
7211
|
default: J(() => [
|
|
7212
|
-
e.isStep ? (S(), F(
|
|
7212
|
+
e.isStep ? (S(), F(Ae, {
|
|
7213
7213
|
key: 0,
|
|
7214
7214
|
size: "mini",
|
|
7215
7215
|
disabled: d.value,
|
|
7216
7216
|
label: Y(i)("上一步"),
|
|
7217
7217
|
onClick: I
|
|
7218
7218
|
}, null, 8, ["disabled", "label"])) : ee("", !0),
|
|
7219
|
-
e.isStep ? (S(), F(
|
|
7219
|
+
e.isStep ? (S(), F(Ae, {
|
|
7220
7220
|
key: 1,
|
|
7221
7221
|
size: "mini",
|
|
7222
7222
|
disabled: f.value,
|
|
@@ -7228,18 +7228,18 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
7228
7228
|
"loading",
|
|
7229
7229
|
"label"
|
|
7230
7230
|
])) : ee("", !0),
|
|
7231
|
-
!e.isStep && e.showCloseBtn ? (S(), F(
|
|
7231
|
+
!e.isStep && e.showCloseBtn ? (S(), F(Ae, {
|
|
7232
7232
|
key: 2,
|
|
7233
7233
|
size: "mini",
|
|
7234
7234
|
label: Y(i)("取消"),
|
|
7235
7235
|
onClick: T
|
|
7236
7236
|
}, null, 8, ["label"])) : ee("", !0),
|
|
7237
|
-
(S(!0), O(ke, null, Oe(e.buttons, (Ee) => (S(), F(
|
|
7237
|
+
(S(!0), O(ke, null, Oe(e.buttons, (Ee) => (S(), F(Ae, We({ ref_for: !0 }, Ee.config, {
|
|
7238
7238
|
key: Ee.id,
|
|
7239
7239
|
label: Ee.label,
|
|
7240
7240
|
onClick: (Be) => Q(Ee)
|
|
7241
7241
|
}), null, 16, ["label", "onClick"]))), 128)),
|
|
7242
|
-
e.hasSaveBtn ? (S(), F(
|
|
7242
|
+
e.hasSaveBtn ? (S(), F(Ae, {
|
|
7243
7243
|
key: 3,
|
|
7244
7244
|
size: "mini",
|
|
7245
7245
|
type: "primary",
|
|
@@ -8677,7 +8677,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8677
8677
|
await E(ne) && V(ne);
|
|
8678
8678
|
}, se = z(!1), ve = z(""), W = z(""), G = z(!1), Q = z(!1);
|
|
8679
8679
|
let M = null;
|
|
8680
|
-
const ue = z(ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD")),
|
|
8680
|
+
const ue = z(ti(/* @__PURE__ */ new Date(), "YYYY-MM-DD")), Ae = (ne) => {
|
|
8681
8681
|
if (ne.isPreview === !1 && !n.isUploadImg) {
|
|
8682
8682
|
o && o("无权限预览!");
|
|
8683
8683
|
return;
|
|
@@ -8737,7 +8737,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8737
8737
|
"file-list": m.value,
|
|
8738
8738
|
"before-remove": E,
|
|
8739
8739
|
"on-remove": V,
|
|
8740
|
-
"on-preview":
|
|
8740
|
+
"on-preview": Ae,
|
|
8741
8741
|
"on-exceed": Ye
|
|
8742
8742
|
}, {
|
|
8743
8743
|
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 +8748,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8748
8748
|
content: J(() => [X(Nl, {
|
|
8749
8749
|
style: le({ width: e.isUploadImg ? void 0 : "400px" }),
|
|
8750
8750
|
list: m.value,
|
|
8751
|
-
"preview-file":
|
|
8751
|
+
"preview-file": Ae,
|
|
8752
8752
|
"delete-file": q,
|
|
8753
8753
|
"is-upload-img": e.isUploadImg,
|
|
8754
8754
|
readonly: e.readonly
|
|
@@ -8796,7 +8796,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
8796
8796
|
key: 1,
|
|
8797
8797
|
style: { "margin-top": "4px" },
|
|
8798
8798
|
list: m.value,
|
|
8799
|
-
"preview-file":
|
|
8799
|
+
"preview-file": Ae,
|
|
8800
8800
|
"delete-file": q,
|
|
8801
8801
|
readonly: e.readonly,
|
|
8802
8802
|
"is-show-success-icon": e.isShowSuccessIcon
|
|
@@ -12236,7 +12236,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12236
12236
|
W.value.init(Q.value);
|
|
12237
12237
|
}, ue = (be) => {
|
|
12238
12238
|
Q.value = be, G.value = !1, ce();
|
|
12239
|
-
},
|
|
12239
|
+
}, Ae = () => {
|
|
12240
12240
|
Q.value = [], ce();
|
|
12241
12241
|
}, me = z(), Ve = z(!1), Ye = z(), ne = H(() => Ye.value != null), Ee = () => {
|
|
12242
12242
|
me.value?.init();
|
|
@@ -12386,12 +12386,12 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12386
12386
|
rows: be,
|
|
12387
12387
|
page: 1
|
|
12388
12388
|
});
|
|
12389
|
-
},
|
|
12389
|
+
}, Te = async () => {
|
|
12390
12390
|
p.value = [], g.value = !1, d.value = 1, Cn = void 0, await K();
|
|
12391
12391
|
}, ze = async (be) => {
|
|
12392
12392
|
p.value = [], g.value = !1, await K(be);
|
|
12393
12393
|
}, nt = async () => {
|
|
12394
|
-
await
|
|
12394
|
+
await Te();
|
|
12395
12395
|
}, Ct = (be) => {
|
|
12396
12396
|
r("ready", be);
|
|
12397
12397
|
}, dt = ({ selections: be, record: Re, checked: gt, isMultiple: Ot }) => {
|
|
@@ -12436,7 +12436,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12436
12436
|
i.immediate && await ze();
|
|
12437
12437
|
}), t({
|
|
12438
12438
|
refreshData: ze,
|
|
12439
|
-
resetData:
|
|
12439
|
+
resetData: Te,
|
|
12440
12440
|
getSelection: Jn,
|
|
12441
12441
|
setSelection: ya,
|
|
12442
12442
|
clearSelection: () => {
|
|
@@ -12560,7 +12560,7 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12560
12560
|
ref: W,
|
|
12561
12561
|
columns: _.value,
|
|
12562
12562
|
onSave: ue,
|
|
12563
|
-
onClear:
|
|
12563
|
+
onClear: Ae
|
|
12564
12564
|
}, null, 8, ["columns"])]),
|
|
12565
12565
|
_: 1
|
|
12566
12566
|
}, 8, ["visible"])])]),
|
|
@@ -12996,8 +12996,8 @@ var Ip = { class: "j-table-footer" }, zp = {
|
|
|
12996
12996
|
color: M.data[e.iconColorKey] || e.defaultIconColor || ""
|
|
12997
12997
|
}, null, 8, ["icon", "color"])) : ee("", !0),
|
|
12998
12998
|
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:
|
|
12999
|
+
k(M.data).length ? (S(), O("div", ab, [(S(!0), O(ke, null, Oe(k(M.data), (ue, Ae) => (S(), F(ve, {
|
|
13000
|
+
key: Ae,
|
|
13001
13001
|
trigger: "click",
|
|
13002
13002
|
onVisibleChange: (me) => P(me, M.data)
|
|
13003
13003
|
}, {
|
|
@@ -13260,7 +13260,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13260
13260
|
}, ve = (K, ce, ae, ie = "") => {
|
|
13261
13261
|
K.forEach((ye) => {
|
|
13262
13262
|
ye.id = se(ye, ie);
|
|
13263
|
-
const
|
|
13263
|
+
const Te = {
|
|
13264
13264
|
id: ye.id,
|
|
13265
13265
|
slot: ye.slot,
|
|
13266
13266
|
type: ye.type || "",
|
|
@@ -13269,17 +13269,17 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13269
13269
|
config: {},
|
|
13270
13270
|
children: []
|
|
13271
13271
|
};
|
|
13272
|
-
ce.push(
|
|
13272
|
+
ce.push(Te);
|
|
13273
13273
|
const { children: ze } = ye;
|
|
13274
|
-
Si(
|
|
13274
|
+
Si(Te, ye, ["children", "config"]), Si(Te.config, ye.config || {}, []), a.config.size && Te.config.size === void 0 && (Te.config.size = a.config.size), console.log("runtimeItem.config", Te.config), R[ye.id] && console.warn("有重复的组件id:" + ye.id), R[ye.id] = Te, a.readonly === !0 && (Te.config.readonly = !0);
|
|
13275
13275
|
let nt = !1, Ct;
|
|
13276
|
-
ie !== "" && E(ie) && (nt = !0,
|
|
13277
|
-
const dt =
|
|
13276
|
+
ie !== "" && E(ie) && (nt = !0, Te.config = ye.config || {}, Te.config.parentTableId = ie, Ct = R[ie]?.config?.table);
|
|
13277
|
+
const dt = Te.config || {};
|
|
13278
13278
|
if (j(ye.id))
|
|
13279
13279
|
!ae && nt === !1 && (dt?.defaultValue === 0 ? y[ye.id] = dt?.defaultValue : y[ye.id] = dt?.defaultValue || void 0), dt.table && dt.field ? T[`${dt.table}_${dt.field}`.toLowerCase()] = ye.id : dt.field && (nt ? T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id : T[`${dt.field}`.toLowerCase()] = ye.id);
|
|
13280
13280
|
else if (nt && dt.field) T[`${Ct}_${dt.field}`.toLowerCase()] = ye.id;
|
|
13281
13281
|
else if (E(ye.id))
|
|
13282
|
-
!ae && !dt.isSubTable && (y[ye.id] = []), dt.table && (T[dt.table.toLowerCase() || ""] = ye.id), dt.isSubTable || P.push(
|
|
13282
|
+
!ae && !dt.isSubTable && (y[ye.id] = []), dt.table && (T[dt.table.toLowerCase() || ""] = ye.id), dt.isSubTable || P.push(Te);
|
|
13283
13283
|
else if (dt?.defaultValue) y[ye.id] = dt?.defaultValue;
|
|
13284
13284
|
else if (ye.type === "collapse" && dt?.isExpand) {
|
|
13285
13285
|
const Sn = [];
|
|
@@ -13287,7 +13287,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13287
13287
|
Sn.push(kn.i);
|
|
13288
13288
|
}), y[ye.id] = Sn;
|
|
13289
13289
|
}
|
|
13290
|
-
ze && ze.length > 0 && ve(ze,
|
|
13290
|
+
ze && ze.length > 0 && ve(ze, Te.children, ae, Te.id);
|
|
13291
13291
|
});
|
|
13292
13292
|
}, W = async (K, ce) => {
|
|
13293
13293
|
b.value = !1;
|
|
@@ -13296,27 +13296,27 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13296
13296
|
}, G = (K, ce, ae) => {
|
|
13297
13297
|
const ie = [];
|
|
13298
13298
|
return ce.forEach((ye) => {
|
|
13299
|
-
const
|
|
13299
|
+
const Te = {};
|
|
13300
13300
|
Object.keys(ye).forEach((ze) => {
|
|
13301
13301
|
if (!ae || ae(ze, ye[ze], K)) {
|
|
13302
13302
|
const nt = Be(ze);
|
|
13303
|
-
if (nt?.type === "j-table")
|
|
13303
|
+
if (nt?.type === "j-table") Te[nt?.id || ""] = G(ze, ye[ze], ae);
|
|
13304
13304
|
else {
|
|
13305
13305
|
let Ct = T[`${K}_${ze}`.toLowerCase()] || ze;
|
|
13306
|
-
Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct,
|
|
13306
|
+
Ct = Ct.indexOf(".") !== -1 ? Ct.split(".")[1] : Ct, Te[Ct] = ye[ze];
|
|
13307
13307
|
}
|
|
13308
13308
|
}
|
|
13309
|
-
}), ie.push(
|
|
13309
|
+
}), ie.push(Te);
|
|
13310
13310
|
}), ie;
|
|
13311
13311
|
}, Q = (K, ce) => {
|
|
13312
13312
|
Object.keys(K || {}).forEach((ae) => {
|
|
13313
13313
|
let ie = K[ae];
|
|
13314
13314
|
const ye = Be(ae);
|
|
13315
13315
|
if (ye === void 0)
|
|
13316
|
-
ie && (br(ie) && (ie = ie[0] || {}), typeof ie == "object" ? Object.keys(ie).forEach((
|
|
13317
|
-
if (!ce || ce(ae, ie[
|
|
13318
|
-
let ze =
|
|
13319
|
-
ae !== "main" && (ze = `${ae}_${
|
|
13316
|
+
ie && (br(ie) && (ie = ie[0] || {}), typeof ie == "object" ? Object.keys(ie).forEach((Te) => {
|
|
13317
|
+
if (!ce || ce(ae, ie[Te], ae)) {
|
|
13318
|
+
let ze = Te;
|
|
13319
|
+
ae !== "main" && (ze = `${ae}_${Te}`), A[ze] = ae, y[T[ze.toLowerCase()] || Te] = ie[Te];
|
|
13320
13320
|
}
|
|
13321
13321
|
}) : y[ae] = ie);
|
|
13322
13322
|
else if (E(ye.id || "")) {
|
|
@@ -13340,24 +13340,24 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13340
13340
|
if (M.has(ie)) return;
|
|
13341
13341
|
const ye = R[ie];
|
|
13342
13342
|
if (ye) {
|
|
13343
|
-
const
|
|
13343
|
+
const Te = ye.config?.table, ze = ye.config?.field;
|
|
13344
13344
|
if (ce) ze ? ae[ze] = K[ie] : ae[ie] = K[ie];
|
|
13345
13345
|
else if (E(ie)) {
|
|
13346
13346
|
const nt = [];
|
|
13347
13347
|
K[ie].forEach((Ct) => {
|
|
13348
13348
|
nt.push(ue(Ct, !0));
|
|
13349
|
-
}), ae[
|
|
13350
|
-
} else
|
|
13349
|
+
}), ae[Te || ie] = nt;
|
|
13350
|
+
} else Te && ze ? (ae[Te] = ae[Te] || {}, ae[Te][ze] = K[ie]) : ze && (ae[ze] = K[ie]);
|
|
13351
13351
|
} 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
13352
|
}), ae;
|
|
13353
|
-
},
|
|
13353
|
+
}, Ae = (K = !0) => K ? ue(y) : y, me = (K, ce, ae, ie) => {
|
|
13354
13354
|
let ye = R[K];
|
|
13355
13355
|
if (ye == null) {
|
|
13356
13356
|
const ze = K.split(".");
|
|
13357
13357
|
ye = R[ze[ze.length - 1]] || {};
|
|
13358
13358
|
}
|
|
13359
13359
|
if (!ye) return {};
|
|
13360
|
-
const
|
|
13360
|
+
const Te = xn({
|
|
13361
13361
|
config: ye.config || {},
|
|
13362
13362
|
getCompConfig: ye.getCompConfig,
|
|
13363
13363
|
formData: y,
|
|
@@ -13365,11 +13365,11 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13365
13365
|
row: ce,
|
|
13366
13366
|
pRowData: ie
|
|
13367
13367
|
});
|
|
13368
|
-
return
|
|
13368
|
+
return Te._componentId = ye?.id, Te;
|
|
13369
13369
|
}, Ve = (K, ce, ae, ie) => {
|
|
13370
13370
|
const ye = me(K, ce, ae, ie);
|
|
13371
13371
|
if (ye.isNotRule !== !0 && ye.display !== !1) {
|
|
13372
|
-
const
|
|
13372
|
+
const Te = ye.rule || [], ze = Te.find((nt) => nt.type === "only");
|
|
13373
13373
|
return ze && (ze.validator = async (nt, Ct) => {
|
|
13374
13374
|
if (Ct && !await r({
|
|
13375
13375
|
table: nt.table,
|
|
@@ -13386,7 +13386,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13386
13386
|
}))
|
|
13387
13387
|
throw h(nt.message) || h("数据值重复");
|
|
13388
13388
|
}), {
|
|
13389
|
-
rules:
|
|
13389
|
+
rules: Te,
|
|
13390
13390
|
myGridtableId: E(ye._componentId) ? ye._componentId : ""
|
|
13391
13391
|
};
|
|
13392
13392
|
}
|
|
@@ -13418,10 +13418,10 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13418
13418
|
if (ae.config.parentTableId) {
|
|
13419
13419
|
const ie = y[ae.config.parentTableId], ye = ae.id ? ae.id.replace(`${ae.config.parentTableId}.`, "") : "";
|
|
13420
13420
|
if (ce != null) return (ie[ce] || {})[ye || ""];
|
|
13421
|
-
const
|
|
13421
|
+
const Te = [];
|
|
13422
13422
|
return ie && ie.forEach((ze) => {
|
|
13423
|
-
|
|
13424
|
-
}),
|
|
13423
|
+
Te.push(ze[ye || ""]);
|
|
13424
|
+
}), Te;
|
|
13425
13425
|
}
|
|
13426
13426
|
if (E(ae.id || "")) {
|
|
13427
13427
|
const ie = [];
|
|
@@ -13438,19 +13438,19 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13438
13438
|
i: ce
|
|
13439
13439
|
}), ie = Be(K);
|
|
13440
13440
|
if (ie && p?.getLabel) if (ce !== void 0) {
|
|
13441
|
-
const ye = ae[ce],
|
|
13441
|
+
const ye = ae[ce], Te = y[ie.config.parentTableId || ""][ce], ze = xn({
|
|
13442
13442
|
config: ie.config,
|
|
13443
13443
|
getCompConfig: ie.getCompConfig,
|
|
13444
13444
|
formData: y,
|
|
13445
13445
|
tableData: y[ie.config.parentTableId || ""],
|
|
13446
|
-
row:
|
|
13446
|
+
row: Te
|
|
13447
13447
|
});
|
|
13448
13448
|
return await p?.getLabel({
|
|
13449
13449
|
value: ye,
|
|
13450
13450
|
config: ze,
|
|
13451
13451
|
formData: y,
|
|
13452
13452
|
tableData: y[ie.config.parentTableId || ""],
|
|
13453
|
-
row:
|
|
13453
|
+
row: Te
|
|
13454
13454
|
});
|
|
13455
13455
|
} else {
|
|
13456
13456
|
const ye = xn({
|
|
@@ -13465,7 +13465,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13465
13465
|
});
|
|
13466
13466
|
}
|
|
13467
13467
|
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 =
|
|
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 = Ae, K.getLabel = bt, K.getViewData = Xe, K.getDateNow = (ce) => Jr(/* @__PURE__ */ new Date(), ce || "YYYY-MM-DD HH:mm:ss"), K.httpGet = l || (() => {
|
|
13469
13469
|
console.log("当前状态不支持");
|
|
13470
13470
|
}), K.httpPost = c || (() => {
|
|
13471
13471
|
console.log("当前状态不支持");
|
|
@@ -13541,7 +13541,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13541
13541
|
getValue: Et,
|
|
13542
13542
|
getLabel: bt,
|
|
13543
13543
|
setFormData: Q,
|
|
13544
|
-
getFormData:
|
|
13544
|
+
getFormData: Ae,
|
|
13545
13545
|
afterSetData: qt,
|
|
13546
13546
|
beforeSave: Bt,
|
|
13547
13547
|
afterSave: Ht
|
|
@@ -13564,7 +13564,7 @@ var zc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
13564
13564
|
key: 1,
|
|
13565
13565
|
gutter: x.value
|
|
13566
13566
|
}, {
|
|
13567
|
-
default: J(() => [(S(), O(ke, null, Oe(k, (
|
|
13567
|
+
default: J(() => [(S(), O(ke, null, Oe(k, (Te) => X(ae, We({ key: Te.id }, { ref_for: !0 }, Te), null, 16)), 64))]),
|
|
13568
13568
|
_: 1
|
|
13569
13569
|
}, 8, ["gutter"]))]),
|
|
13570
13570
|
_: 1
|
|
@@ -16217,7 +16217,7 @@ function nu(e, t, n, a, o, i, r, l, c, s) {
|
|
|
16217
16217
|
G,
|
|
16218
16218
|
Q
|
|
16219
16219
|
].concat(u).join().split(",");
|
|
16220
|
-
for (var M = [], ue = 0,
|
|
16220
|
+
for (var M = [], ue = 0, Ae = u.length; ue < Ae; ue++) M[ue] = ue % 2 ? p(u[ue - 1], u[ue], f).y : p(u[ue], u[ue + 1], f).x;
|
|
16221
16221
|
return M;
|
|
16222
16222
|
}
|
|
16223
16223
|
function lw(e, t, n, a, o, i, r, l) {
|