@a2simcode/ui 0.0.272 → 0.0.273
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 +78 -78
- 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
|
@@ -59,7 +59,7 @@ function Df(e, t) {
|
|
|
59
59
|
function gS(e) {
|
|
60
60
|
return e !== null && Df(e, "Object");
|
|
61
61
|
}
|
|
62
|
-
var
|
|
62
|
+
var tn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0 || typeof e == "object" && Object.keys(e).length === 0), $f = /* @__PURE__ */ xe({
|
|
63
63
|
name: "JIcon",
|
|
64
64
|
inheritAttrs: !1,
|
|
65
65
|
__name: "icon",
|
|
@@ -164,7 +164,7 @@ var rn = (e) => !!(e == null || typeof e == "string" && e.trim() === "" || Array
|
|
|
164
164
|
}, s = H(() => a.notLabel || !a.label), d = D(!1);
|
|
165
165
|
rt(() => a.loading, (u) => {
|
|
166
166
|
if (typeof u == "boolean") d.value = u;
|
|
167
|
-
else if (
|
|
167
|
+
else if (tn(u?.delay))
|
|
168
168
|
d.value = !1;
|
|
169
169
|
else {
|
|
170
170
|
const h = setTimeout(() => {
|
|
@@ -1426,8 +1426,8 @@ var lh = /* @__PURE__ */ vn(((e, t) => {
|
|
|
1426
1426
|
if (Oe < 16)
|
|
1427
1427
|
ut = Ut.high = h[p + Oe * 2] | 0, Fe = Ut.low = h[p + Oe * 2 + 1] | 0;
|
|
1428
1428
|
else {
|
|
1429
|
-
var sn = f[Oe - 15], Zt = sn.high, vt = sn.low,
|
|
1430
|
-
Fe = At + se, ut =
|
|
1429
|
+
var sn = f[Oe - 15], Zt = sn.high, vt = sn.low, an = (Zt >>> 1 | vt << 31) ^ (Zt >>> 8 | vt << 24) ^ Zt >>> 7, At = (vt >>> 1 | Zt << 31) ^ (vt >>> 8 | Zt << 24) ^ (vt >>> 7 | Zt << 25), zt = f[Oe - 2], Et = zt.high, Tt = zt.low, yn = (Et >>> 19 | Tt << 13) ^ (Et << 3 | Tt >>> 29) ^ Et >>> 6, G = (Tt >>> 19 | Et << 13) ^ (Tt << 3 | Et >>> 29) ^ (Tt >>> 6 | Et << 26), me = f[Oe - 7], re = me.high, se = me.low, Ce = f[Oe - 16], Le = Ce.high, Ue = Ce.low;
|
|
1430
|
+
Fe = At + se, ut = an + re + (Fe >>> 0 < At >>> 0 ? 1 : 0), Fe = Fe + G, ut = ut + yn + (Fe >>> 0 < G >>> 0 ? 1 : 0), Fe = Fe + Ue, ut = ut + Le + (Fe >>> 0 < Ue >>> 0 ? 1 : 0), Ut.high = ut, Ut.low = Fe;
|
|
1431
1431
|
}
|
|
1432
1432
|
var dt = Se & Rt ^ ~Se & de, Dt = De & Y ^ ~De & Ee, xt = P & Ke ^ P & We ^ Ke & We, Yn = ke & we ^ ke & st ^ we & st, Kn = (P >>> 28 | ke << 4) ^ (P << 30 | ke >>> 2) ^ (P << 25 | ke >>> 7), Jn = (ke >>> 28 | P << 4) ^ (ke << 30 | P >>> 2) ^ (ke << 25 | P >>> 7), Ra = (Se >>> 14 | De << 18) ^ (Se >>> 18 | De << 14) ^ (Se << 23 | De >>> 9), Ea = (De >>> 14 | Se << 18) ^ (De >>> 18 | Se << 14) ^ (De << 23 | Se >>> 9), ao = d[Oe], Mo = ao.high, Ta = ao.low, jt = Ne + Ea, he = Be + Ra + (jt >>> 0 < Ne >>> 0 ? 1 : 0), jt = jt + Dt, he = he + dt + (jt >>> 0 < Dt >>> 0 ? 1 : 0), jt = jt + Ta, he = he + Mo + (jt >>> 0 < Ta >>> 0 ? 1 : 0), jt = jt + Fe, he = he + ut + (jt >>> 0 < Fe >>> 0 ? 1 : 0), pe = Jn + Yn, Ve = Kn + xt + (pe >>> 0 < Jn >>> 0 ? 1 : 0);
|
|
1433
1433
|
Be = de, Ne = Ee, de = Rt, Ee = Y, Rt = Se, Y = De, De = ie + jt | 0, Se = pt + he + (De >>> 0 < ie >>> 0 ? 1 : 0) | 0, pt = We, ie = st, We = Ke, st = we, Ke = P, we = ke, ke = jt + pe | 0, P = he + Ve + (ke >>> 0 < jt >>> 0 ? 1 : 0) | 0;
|
|
@@ -1582,7 +1582,7 @@ var Mh = async (e) => new Promise((t, n) => {
|
|
|
1582
1582
|
clear() {
|
|
1583
1583
|
this.events.clear();
|
|
1584
1584
|
}
|
|
1585
|
-
}, kS = new Fc(),
|
|
1585
|
+
}, kS = new Fc(), nn = {
|
|
1586
1586
|
APP_PROVIDE: "jcode_app_provide",
|
|
1587
1587
|
FORM_PROVIDE: "jcode_form_provide",
|
|
1588
1588
|
TABLE_PROVIDE: "jcode_table_provide",
|
|
@@ -1600,7 +1600,7 @@ function ea(e, t) {
|
|
|
1600
1600
|
Ld(e, t);
|
|
1601
1601
|
}
|
|
1602
1602
|
function kt() {
|
|
1603
|
-
return Qn(
|
|
1603
|
+
return Qn(nn.APP_PROVIDE, {
|
|
1604
1604
|
t: (e, ...t) => {
|
|
1605
1605
|
if (!e) return "";
|
|
1606
1606
|
if (typeof e != "string") return e;
|
|
@@ -1633,55 +1633,55 @@ function kt() {
|
|
|
1633
1633
|
});
|
|
1634
1634
|
}
|
|
1635
1635
|
function RS(e) {
|
|
1636
|
-
ea(
|
|
1636
|
+
ea(nn.APP_PROVIDE, e);
|
|
1637
1637
|
}
|
|
1638
1638
|
function Ka() {
|
|
1639
|
-
return Qn(
|
|
1639
|
+
return Qn(nn.FORM_PROVIDE, {});
|
|
1640
1640
|
}
|
|
1641
1641
|
function Vc(e) {
|
|
1642
|
-
ea(
|
|
1642
|
+
ea(nn.FORM_PROVIDE, e);
|
|
1643
1643
|
}
|
|
1644
1644
|
function ei() {
|
|
1645
|
-
return Qn(
|
|
1645
|
+
return Qn(nn.TABLE_PROVIDE, {});
|
|
1646
1646
|
}
|
|
1647
1647
|
function yo(e) {
|
|
1648
|
-
ea(
|
|
1648
|
+
ea(nn.TABLE_PROVIDE, e);
|
|
1649
1649
|
}
|
|
1650
1650
|
function Ah() {
|
|
1651
|
-
return Qn(
|
|
1651
|
+
return Qn(nn.COMP_PROVIDE, {});
|
|
1652
1652
|
}
|
|
1653
1653
|
function Nc(e) {
|
|
1654
|
-
ea(
|
|
1654
|
+
ea(nn.COMP_PROVIDE, e);
|
|
1655
1655
|
}
|
|
1656
1656
|
function ti() {
|
|
1657
|
-
return Qn(
|
|
1657
|
+
return Qn(nn.MENU_PROVIDE, {});
|
|
1658
1658
|
}
|
|
1659
1659
|
function jh(e) {
|
|
1660
|
-
ea(
|
|
1660
|
+
ea(nn.MENU_PROVIDE, e);
|
|
1661
1661
|
}
|
|
1662
1662
|
function Bh() {
|
|
1663
|
-
return Qn(
|
|
1663
|
+
return Qn(nn.H_MENU_PROVIDE, {});
|
|
1664
1664
|
}
|
|
1665
1665
|
function Ph(e) {
|
|
1666
|
-
ea(
|
|
1666
|
+
ea(nn.H_MENU_PROVIDE, e);
|
|
1667
1667
|
}
|
|
1668
1668
|
function Hh() {
|
|
1669
|
-
return Qn(
|
|
1669
|
+
return Qn(nn.AUTH_PAGE_PROVIDE, { getPageName: () => "" });
|
|
1670
1670
|
}
|
|
1671
1671
|
function Oh(e) {
|
|
1672
|
-
ea(
|
|
1672
|
+
ea(nn.AUTH_PAGE_PROVIDE, e);
|
|
1673
1673
|
}
|
|
1674
1674
|
function ES() {
|
|
1675
|
-
return Qn(
|
|
1675
|
+
return Qn(nn.LAYER_PROVIDE, {});
|
|
1676
1676
|
}
|
|
1677
1677
|
function Lh(e) {
|
|
1678
|
-
ea(
|
|
1678
|
+
ea(nn.LAYER_PROVIDE, e);
|
|
1679
1679
|
}
|
|
1680
1680
|
function Ih() {
|
|
1681
|
-
return Qn(
|
|
1681
|
+
return Qn(nn.PAGE_PROVIDE, {});
|
|
1682
1682
|
}
|
|
1683
1683
|
function zh(e) {
|
|
1684
|
-
ea(
|
|
1684
|
+
ea(nn.PAGE_PROVIDE, e);
|
|
1685
1685
|
}
|
|
1686
1686
|
var Dh = /* @__PURE__ */ xe({
|
|
1687
1687
|
name: "JDynamicLayer",
|
|
@@ -2426,7 +2426,7 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
|
|
|
2426
2426
|
a("update:modelValue", r), a("change", { value: r });
|
|
2427
2427
|
};
|
|
2428
2428
|
return rt(() => n.modelValue, (r) => {
|
|
2429
|
-
if ((
|
|
2429
|
+
if ((tn(r) || n.mode === "modify") && !n.readonly && (n.mode === "create" && !n.isEditState || n.mode === "modify")) {
|
|
2430
2430
|
o.value = rl(/* @__PURE__ */ new Date()), i(o.value);
|
|
2431
2431
|
return;
|
|
2432
2432
|
}
|
|
@@ -2478,7 +2478,7 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
|
|
|
2478
2478
|
const n = e, a = t, o = H({
|
|
2479
2479
|
get() {
|
|
2480
2480
|
let r = n.options;
|
|
2481
|
-
if (!
|
|
2481
|
+
if (!tn(n.modelValue) && r && r.length > 0) {
|
|
2482
2482
|
let l = n.modelValue + "", c = n.options.find((s) => s.value + "" === l);
|
|
2483
2483
|
if (c) return c.value;
|
|
2484
2484
|
}
|
|
@@ -2601,7 +2601,7 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
|
|
|
2601
2601
|
set(f) {
|
|
2602
2602
|
n.multiple && Array.isArray(f) && (f = f?.join(",") || []), a("update:modelValue", f);
|
|
2603
2603
|
}
|
|
2604
|
-
}), r = H(() => !
|
|
2604
|
+
}), r = H(() => !tn(i.value) && !n.multiple && n.options.filter((f) => i.value == f.value).map((f) => f.label).join(",") || ""), l = H(() => !tn(i.value) && !n.multiple ? n.options.find((f) => f.value === i.value)?.icon : ""), c = H(() => typeof n.selectData == "string" ? n.selectData?.split(",") || [] : []), s = H(() => {
|
|
2605
2605
|
let f = [];
|
|
2606
2606
|
if (n.isSelectOnlyone ? f = n.options.map((u) => ({
|
|
2607
2607
|
...u,
|
|
@@ -2836,14 +2836,14 @@ var Fh = Te(Wc), Vh = /* @__PURE__ */ xe({
|
|
|
2836
2836
|
});
|
|
2837
2837
|
const c = H({
|
|
2838
2838
|
get() {
|
|
2839
|
-
return
|
|
2839
|
+
return tn(a.modelValue) ? [] : a.modelValue?.split(",") || [];
|
|
2840
2840
|
},
|
|
2841
2841
|
set(f) {
|
|
2842
|
-
i("update:modelValue",
|
|
2842
|
+
i("update:modelValue", tn(f) ? "" : f.join(","));
|
|
2843
2843
|
}
|
|
2844
2844
|
}), s = (f, u) => {
|
|
2845
2845
|
c.value = f, i("change", {
|
|
2846
|
-
value:
|
|
2846
|
+
value: tn(f) ? "" : f.join(","),
|
|
2847
2847
|
data: u
|
|
2848
2848
|
});
|
|
2849
2849
|
}, d = H(() => ({
|
|
@@ -5474,7 +5474,7 @@ var Wp = class {
|
|
|
5474
5474
|
if (!i) return [];
|
|
5475
5475
|
let de = {};
|
|
5476
5476
|
P.value.paramList && P.value.paramList.length > 0 && P.value.paramList.forEach((Oe) => {
|
|
5477
|
-
!
|
|
5477
|
+
!tn(Oe.upId) && !tn(Oe.upKey) && (de[Oe.upKey] = be(Oe.upId));
|
|
5478
5478
|
});
|
|
5479
5479
|
const Ee = Y.fixedFilter || {};
|
|
5480
5480
|
Object.keys(Ee).forEach((Oe) => {
|
|
@@ -5548,7 +5548,7 @@ var Wp = class {
|
|
|
5548
5548
|
config: Et
|
|
5549
5549
|
};
|
|
5550
5550
|
}
|
|
5551
|
-
const { id: Be, name: Ne, label: Oe, valueKey: Fe, width: ut, align: Ut, frozen: sn, hide: Zt, type: vt, ...
|
|
5551
|
+
const { id: Be, name: Ne, label: Oe, valueKey: Fe, width: ut, align: Ut, frozen: sn, hide: Zt, type: vt, ...an } = Ee, At = { ...an };
|
|
5552
5552
|
At.dataType !== "options" && vt !== "j-tag" && delete At.options, At.label = Oe ?? Ne ?? Be, Fe != null && (At.valueKey = Fe), ut != null && (At.width = ut), Ut && (At.align = Ut), sn && sn !== "none" && (At.frozen = sn), At.readonly = !0, de && (At.filter = { isSearchKeyword: !0 });
|
|
5553
5553
|
const zt = {
|
|
5554
5554
|
id: Be,
|
|
@@ -5556,7 +5556,7 @@ var Wp = class {
|
|
|
5556
5556
|
};
|
|
5557
5557
|
return vt && vt !== "text" && (zt.type = vt), zt;
|
|
5558
5558
|
}).filter((Ee) => Ee.config?.label), Ke = (Y) => Y.map((de) => {
|
|
5559
|
-
const { id: Ee, type: Be, label: Ne, dateType: Oe, dateFormat: Fe, dataType: ut, options: Ut, dataCode: sn, labelKey: Zt, valueKey: vt, paramsSetting:
|
|
5559
|
+
const { id: Ee, type: Be, label: Ne, dateType: Oe, dateFormat: Fe, dataType: ut, options: Ut, dataCode: sn, labelKey: Zt, valueKey: vt, paramsSetting: an } = de;
|
|
5560
5560
|
let At = {
|
|
5561
5561
|
id: Ee,
|
|
5562
5562
|
type: Be || "j-input"
|
|
@@ -5568,7 +5568,7 @@ var Wp = class {
|
|
|
5568
5568
|
else if (["dataItem", "dataView"].includes(ut) && (zt.labelKey = Zt, zt.valueKey = vt, zt.dataCode = sn, ut === "dataView")) {
|
|
5569
5569
|
zt.dataCode = sn;
|
|
5570
5570
|
let Et = {};
|
|
5571
|
-
|
|
5571
|
+
an && an.length > 0 && (an.forEach((Tt) => {
|
|
5572
5572
|
Et[Tt.paramId] = Tt.dValue;
|
|
5573
5573
|
}), zt.params = Et);
|
|
5574
5574
|
}
|
|
@@ -6214,7 +6214,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6214
6214
|
width: 0,
|
|
6215
6215
|
height: 0
|
|
6216
6216
|
}, fe = ee?.getBodyField?.(U, ne), ye = ee?.options?.columns || [], ue = (fe ? vt(ye, fe) : null)?.style?.textAlign || "left", je = 8, He = Math.max(0, ve.width - je * 2);
|
|
6217
|
-
let Me = le
|
|
6217
|
+
let Me = tn(le) ? W : le;
|
|
6218
6218
|
Me == null && (Me = "");
|
|
6219
6219
|
const et = Ee(typeof Me == "object" ? JSON.stringify(Me) : String(Me), He);
|
|
6220
6220
|
let qe = je, Pe = "left";
|
|
@@ -6295,12 +6295,12 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6295
6295
|
formData: r || {},
|
|
6296
6296
|
getTableData: jt,
|
|
6297
6297
|
row: ye
|
|
6298
|
-
}) || {}, je = Number(ue.min) || 0, He = Number(ue.max) || 100, Me = Number(W) || 0, et = He - je, qe = et === 0 ? 0 : Math.max(0, Math.min(100, (Me - je) / et * 100)), Pe = 4, Ye = 8, Xe = 8, yt = (ee.height - Pe) / 2, St = String(Me), ze = jn(St) || 0, ht = Ye, at = yt, Ht = ee.width - Ye * 2 - ze - Xe, hn = Ht * qe / 100, _n = [], oa = (
|
|
6299
|
-
const ct = Math.min($t, cn / 2,
|
|
6300
|
-
return `M ${ct} 0 L ${
|
|
6301
|
-
}, _t = (
|
|
6302
|
-
const ct = Math.min($t, cn / 2,
|
|
6303
|
-
return
|
|
6298
|
+
}) || {}, je = Number(ue.min) || 0, He = Number(ue.max) || 100, Me = Number(W) || 0, et = He - je, qe = et === 0 ? 0 : Math.max(0, Math.min(100, (Me - je) / et * 100)), Pe = 4, Ye = 8, Xe = 8, yt = (ee.height - Pe) / 2, St = String(Me), ze = jn(St) || 0, ht = Ye, at = yt, Ht = ee.width - Ye * 2 - ze - Xe, hn = Ht * qe / 100, _n = [], oa = (rn, cn, $t) => {
|
|
6299
|
+
const ct = Math.min($t, cn / 2, rn / 2);
|
|
6300
|
+
return `M ${ct} 0 L ${rn - ct} 0 Q ${rn} 0 ${rn} ${ct} L ${rn} ${cn - ct} Q ${rn} ${cn} ${rn - ct} ${cn} L ${ct} ${cn} Q 0 ${cn} 0 ${cn - ct} L 0 ${ct} Q 0 0 ${ct} 0 Z`;
|
|
6301
|
+
}, _t = (rn, cn, $t) => {
|
|
6302
|
+
const ct = Math.min($t, cn / 2, rn / 2);
|
|
6303
|
+
return rn <= ct * 2 ? oa(rn, cn, $t) : `M ${ct} 0 L ${rn} 0 L ${rn} ${cn} L ${ct} ${cn} Q 0 ${cn} 0 ${cn - ct} L 0 ${ct} Q 0 0 ${ct} 0 Z`;
|
|
6304
6304
|
}, ia = oa(Ht, Pe, Pe / 2);
|
|
6305
6305
|
if (_n.push({
|
|
6306
6306
|
type: "icon",
|
|
@@ -6310,10 +6310,10 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6310
6310
|
width: Ht,
|
|
6311
6311
|
height: Pe
|
|
6312
6312
|
}), hn > 0) {
|
|
6313
|
-
const
|
|
6313
|
+
const rn = _t(hn, Pe, Pe / 2);
|
|
6314
6314
|
_n.push({
|
|
6315
6315
|
type: "icon",
|
|
6316
|
-
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${hn}" height="${Pe}" viewBox="0 0 ${hn} ${Pe}"><path d="${
|
|
6316
|
+
svg: `<svg xmlns="http://www.w3.org/2000/svg" width="${hn}" height="${Pe}" viewBox="0 0 ${hn} ${Pe}"><path d="${rn}" fill="#165dff"/></svg>`,
|
|
6317
6317
|
x: ht,
|
|
6318
6318
|
y: at,
|
|
6319
6319
|
width: hn,
|
|
@@ -6455,10 +6455,10 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6455
6455
|
ze !== 0 && ia && (ze = 0, ht = Math.max(0, ee.width - ze * 2), at = Math.max(0, ht - Xe * 2), { lines: _t, needsWrap: ia } = oa());
|
|
6456
6456
|
const ja = _t.length * Pe + (_t.length > 1 ? (_t.length - 1) * St : 0);
|
|
6457
6457
|
let Ba = Math.max(0, (ee.height - ja) / 2);
|
|
6458
|
-
const
|
|
6458
|
+
const rn = ia;
|
|
6459
6459
|
for (let $t = 0; $t < _t.length; $t++) {
|
|
6460
6460
|
const ct = _t[$t];
|
|
6461
|
-
let Hn =
|
|
6461
|
+
let Hn = rn ? ze : He === "center" ? ze + Math.max(0, (ht - ct.lineWidth) / 2) : He === "right" ? ze + Math.max(0, ht - ct.lineWidth) : ze;
|
|
6462
6462
|
for (let On = 0; On < ct.items.length; On++) {
|
|
6463
6463
|
const Ln = ct.items[On], { tagWidth: Pa } = _n(Hn, Ba, Ln.label, Ln.bg, Ln.text);
|
|
6464
6464
|
Hn += Pa + (On < ct.items.length - 1 ? yt : 0);
|
|
@@ -6668,7 +6668,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6668
6668
|
}
|
|
6669
6669
|
}
|
|
6670
6670
|
return null;
|
|
6671
|
-
},
|
|
6671
|
+
}, an = (L) => {
|
|
6672
6672
|
const { table: F, col: W, row: ee } = L, U = F.getBodyField(W, ee), ne = vt(F.options?.columns || [], U);
|
|
6673
6673
|
if (!ne) return {
|
|
6674
6674
|
elements: [],
|
|
@@ -6753,7 +6753,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6753
6753
|
frozen: Ht,
|
|
6754
6754
|
mergeCell: hn
|
|
6755
6755
|
}, ia = typeof Me == "function", ja = Jc(ue);
|
|
6756
|
-
if ((ja || ia) && (_t.editor = ja || "j-comp-editor", S = !0), ia ? _t.customRender =
|
|
6756
|
+
if ((ja || ia) && (_t.editor = ja || "j-comp-editor", S = !0), ia ? _t.customRender = an : (ue === "j-switch" && (_t.customRender = De), ue === "j-rate" && (_t.customRender = Rt), ue === "j-slider" && (_t.customRender = Y), (ue === "j-tag" || ue === "j-input-tag") && (_t.customRender = Ne), ue === "j-icon" && (_t.customRender = Be)), ue === "link" && (_t.customLayout = Fe), (ue === "j-layerform" || ue === "j-layer-form") && (_t.customLayout = Ut), ue === "checkbox" && (_t.customLayout = sn), ue === "j-switch" && (_t.minWidth = _t.minWidth || Ye, _t.maxWidth = _t.maxWidth || Ye), qe && (_t.customLayout = Zt), _t.fieldFormat = At, et && et.length > 0) {
|
|
6757
6757
|
const Ba = ee(et, fe, le + 1);
|
|
6758
6758
|
if (Ba.length === 0) return;
|
|
6759
6759
|
_t.columns = Ba;
|
|
@@ -6837,7 +6837,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6837
6837
|
disable: ({ col: F, row: W, table: ee }) => {
|
|
6838
6838
|
if (W === 0) return !1;
|
|
6839
6839
|
const U = ee?.getCellOriginRecord?.(F, W);
|
|
6840
|
-
return
|
|
6840
|
+
return on(U);
|
|
6841
6841
|
},
|
|
6842
6842
|
headerStyle: { textAlign: "center" },
|
|
6843
6843
|
style: { textAlign: "center" }
|
|
@@ -6922,7 +6922,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
6922
6922
|
});
|
|
6923
6923
|
const je = (He) => {
|
|
6924
6924
|
for (const Me of He)
|
|
6925
|
-
if (Me?._compType === "checkbox" || Me?.customRender ===
|
|
6925
|
+
if (Me?._compType === "checkbox" || Me?.customRender === an || Me?.customRender === Ne || Array.isArray(Me?.columns) && je(Me.columns)) return !0;
|
|
6926
6926
|
return !1;
|
|
6927
6927
|
};
|
|
6928
6928
|
return je(ne) && !(o.subColumns && o.subColumns.length > 0) && (U.defaultRowHeight = "auto", U.defaultHeaderRowHeight = 40), {
|
|
@@ -7051,7 +7051,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
7051
7051
|
W !== T ? (T = W, o.subColumns && o.subColumns.length > 0 ? (Ea(), Ra(F)) : wn(F)) : m.setRecords(F);
|
|
7052
7052
|
}
|
|
7053
7053
|
if (o.selectStateKey && o.isMultiple) {
|
|
7054
|
-
const W = L.filter((ee) => ee[o.selectStateKey] && !
|
|
7054
|
+
const W = L.filter((ee) => ee[o.selectStateKey] && !on(ee));
|
|
7055
7055
|
Gt(W), R.value = W.length, i("selectRecordsChanged", W), i("selectionChanged", {
|
|
7056
7056
|
isMultiple: !0,
|
|
7057
7057
|
selections: W,
|
|
@@ -7098,7 +7098,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
7098
7098
|
}
|
|
7099
7099
|
if (m.stateManager && m.stateManager.checkedState) {
|
|
7100
7100
|
const L = [], F = /* @__PURE__ */ new Set(), W = (ve) => {
|
|
7101
|
-
if (!ve ||
|
|
7101
|
+
if (!ve || on(ve)) return;
|
|
7102
7102
|
const fe = Yt(ve);
|
|
7103
7103
|
if (fe) {
|
|
7104
7104
|
if (F.has(fe)) return;
|
|
@@ -7143,16 +7143,16 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
7143
7143
|
ve.forEach((fe) => {
|
|
7144
7144
|
if (Array.isArray(fe?.children) && fe.children.length > 0) {
|
|
7145
7145
|
ee(fe.children);
|
|
7146
|
-
const ye = fe.children.filter((He) => !
|
|
7146
|
+
const ye = fe.children.filter((He) => !on(He)), ue = ye.filter((He) => He?.[W] === !0), je = ye.filter((He) => He?.[W] === !1);
|
|
7147
7147
|
ye.length === 0 ? fe[W] = !1 : ue.length == ye.length ? fe[W] = !0 : je.length == ye.length ? fe[W] = !1 : fe[W] = "indeterminate", fe[W] === "indeterminate" && (fe.hierarchyState = "expand");
|
|
7148
7148
|
} else {
|
|
7149
7149
|
const ye = F.has(Yt(fe));
|
|
7150
|
-
fe[W] = !!(!
|
|
7150
|
+
fe[W] = !!(!on(fe) && ye);
|
|
7151
7151
|
}
|
|
7152
7152
|
});
|
|
7153
7153
|
}, U = m.records;
|
|
7154
7154
|
o.isTree ? ee(U) : U.forEach((ve) => {
|
|
7155
|
-
ve[W] = !
|
|
7155
|
+
ve[W] = !on(ve) && F.has(Yt(ve));
|
|
7156
7156
|
});
|
|
7157
7157
|
const ne = Kn();
|
|
7158
7158
|
ne.records = U, m.updateOption(ne, {
|
|
@@ -7179,7 +7179,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
7179
7179
|
}), o.heightMode === "auto" && (x.value = m.getAllRowsHeight()), R.value = 0;
|
|
7180
7180
|
}, Ma = () => {
|
|
7181
7181
|
m.renderWithRecreateCells();
|
|
7182
|
-
}, Aa = H(() => o.editConfig.isAddBtn && !o.isRowFixed), nt = H(() => o.editConfig.addBtnText || "添加"), Kt = H(() => o.editConfig.isRemoveBtn && !o.isRowFixed), fn = H(() => o.editConfig.readonly), Qt = H(() => o.isMultiple || Kt.value),
|
|
7182
|
+
}, Aa = H(() => o.editConfig.isAddBtn && !o.isRowFixed), nt = H(() => o.editConfig.addBtnText || "添加"), Kt = H(() => o.editConfig.isRemoveBtn && !o.isRowFixed), fn = H(() => o.editConfig.readonly), Qt = H(() => o.isMultiple || Kt.value), on = (L) => {
|
|
7183
7183
|
if (!Qt.value || !L || !o.multipleDisabled) return !1;
|
|
7184
7184
|
try {
|
|
7185
7185
|
return o.multipleDisabled(L) === !0;
|
|
@@ -8422,7 +8422,7 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
8422
8422
|
"search"
|
|
8423
8423
|
],
|
|
8424
8424
|
setup(e, { emit: t }) {
|
|
8425
|
-
const n = e, a = t, o = D(), i = H(() =>
|
|
8425
|
+
const n = e, a = t, o = D(), i = H(() => tn(n.modelValue) ? [] : n.modelValue?.split(",") || []), r = H(() => n.isStyleLoop ? i.value?.map((f, u) => {
|
|
8426
8426
|
let h = n.colors[u % n.colors.length] || {};
|
|
8427
8427
|
return h = {
|
|
8428
8428
|
...h,
|
|
@@ -12755,20 +12755,20 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
12755
12755
|
return [...he, ...pe];
|
|
12756
12756
|
}
|
|
12757
12757
|
return i.buttons;
|
|
12758
|
-
}), sn = H(() => Ut.value.filter((he) => he.config?.display !== !1)), Zt = D(null), vt = D(0),
|
|
12758
|
+
}), sn = H(() => Ut.value.filter((he) => he.config?.display !== !1)), Zt = D(null), vt = D(0), an = () => {
|
|
12759
12759
|
vt.value = Zt.value?.clientWidth || 0;
|
|
12760
12760
|
};
|
|
12761
12761
|
let At;
|
|
12762
12762
|
Vt(() => {
|
|
12763
|
-
Lt(
|
|
12764
|
-
|
|
12763
|
+
Lt(an), At = new ResizeObserver(() => {
|
|
12764
|
+
an();
|
|
12765
12765
|
}), Zt.value && At.observe(Zt.value);
|
|
12766
12766
|
}), qo(() => {
|
|
12767
12767
|
At?.disconnect();
|
|
12768
12768
|
}), rt(() => sn.value, () => {
|
|
12769
|
-
Lt(
|
|
12769
|
+
Lt(an);
|
|
12770
12770
|
}, { deep: !0 }), rt(Ne, () => {
|
|
12771
|
-
Lt(
|
|
12771
|
+
Lt(an);
|
|
12772
12772
|
});
|
|
12773
12773
|
const zt = H(() => {
|
|
12774
12774
|
const he = sn.value;
|
|
@@ -12777,14 +12777,14 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
12777
12777
|
if (pe <= 0) return he;
|
|
12778
12778
|
const Ve = Math.max(0, pe - 4), Ie = (Kt, fn) => Kt.groupId || `__auto_${fn}`, ge = (Kt) => {
|
|
12779
12779
|
if (Kt.config?.notLabel === !0 || !Kt.label) return 28;
|
|
12780
|
-
const fn = 24, Qt = jn(Kt.label || "") || 0,
|
|
12781
|
-
return Math.ceil(Qt + fn +
|
|
12780
|
+
const fn = 24, Qt = jn(Kt.label || "") || 0, on = Kt.config?.icon ? 18 : 0;
|
|
12781
|
+
return Math.ceil(Qt + fn + on + 2);
|
|
12782
12782
|
};
|
|
12783
12783
|
if (((Kt) => {
|
|
12784
12784
|
let fn = 0, Qt = null;
|
|
12785
|
-
return Kt.forEach((
|
|
12786
|
-
const Ao = Ie(
|
|
12787
|
-
Qt !== null && (fn += Ao === Qt ? -1 : 8), fn += ge(
|
|
12785
|
+
return Kt.forEach((on, oo) => {
|
|
12786
|
+
const Ao = Ie(on, oo);
|
|
12787
|
+
Qt !== null && (fn += Ao === Qt ? -1 : 8), fn += ge(on), Qt = Ao;
|
|
12788
12788
|
}), fn;
|
|
12789
12789
|
})(he) <= Ve) return he;
|
|
12790
12790
|
const Yt = {
|
|
@@ -12799,11 +12799,11 @@ var Xp = /* @__PURE__ */ xe({
|
|
|
12799
12799
|
let wn = 0, Ma = null;
|
|
12800
12800
|
for (let Kt = 0; Kt < he.length; Kt++) {
|
|
12801
12801
|
const fn = he[Kt], Qt = Ie(fn, Kt);
|
|
12802
|
-
let
|
|
12803
|
-
Ma !== null && (
|
|
12804
|
-
const oo = he.length - (Kt + 1) > 0 ? (
|
|
12805
|
-
if (
|
|
12806
|
-
mn.push(fn), wn =
|
|
12802
|
+
let on = wn;
|
|
12803
|
+
Ma !== null && (on += Qt === Ma ? -1 : 8), on += ge(fn);
|
|
12804
|
+
const oo = he.length - (Kt + 1) > 0 ? (on > 0 ? 8 : 0) + Gt : 0;
|
|
12805
|
+
if (on + oo <= Ve)
|
|
12806
|
+
mn.push(fn), wn = on, Ma = Qt;
|
|
12807
12807
|
else break;
|
|
12808
12808
|
}
|
|
12809
12809
|
const Aa = he.slice(mn.length);
|
|
@@ -14128,7 +14128,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14128
14128
|
const { res: re, fn: se } = jc(G);
|
|
14129
14129
|
re && await se(Zt(me));
|
|
14130
14130
|
}
|
|
14131
|
-
},
|
|
14131
|
+
}, an = async () => {
|
|
14132
14132
|
a.config?.codeAfterSetData && await Tt(JSON.parse(a.config?.codeAfterSetData), { param: {} });
|
|
14133
14133
|
}, At = async () => {
|
|
14134
14134
|
a.config?.codeBeforeSave && await Tt(JSON.parse(a.config?.codeBeforeSave), { param: {} });
|
|
@@ -14174,7 +14174,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
14174
14174
|
getLabel: Ut,
|
|
14175
14175
|
setFormData: ie,
|
|
14176
14176
|
getFormData: Rt,
|
|
14177
|
-
afterSetData:
|
|
14177
|
+
afterSetData: an,
|
|
14178
14178
|
beforeSave: At,
|
|
14179
14179
|
afterSave: zt
|
|
14180
14180
|
}), (G, me) => {
|
|
@@ -15401,7 +15401,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15401
15401
|
setup(e, { emit: t }) {
|
|
15402
15402
|
const n = e, a = t, { t: o } = kt(), i = D(), r = D(), l = D(), c = D(""), s = D(0), d = D(0), f = D(""), u = H(() => {
|
|
15403
15403
|
let m = n.modelValue || "";
|
|
15404
|
-
if (n.modelValue === null && (m = J(f)),
|
|
15404
|
+
if (n.modelValue === null && (m = J(f)), tn(m)) return {
|
|
15405
15405
|
address: "",
|
|
15406
15406
|
lng: 0,
|
|
15407
15407
|
lat: 0
|
|
@@ -15480,7 +15480,7 @@ var qc = ({ data: e, actions: t, utils: n, inputParams: a, notRunActions: o }) =
|
|
|
15480
15480
|
}
|
|
15481
15481
|
}]
|
|
15482
15482
|
}], w = () => {
|
|
15483
|
-
!
|
|
15483
|
+
!tn(c.value) && !tn(s.value) && !tn(d.value) ? (f.value = `${c.value},${s.value},${d.value}`, a("update:modelValue", f.value), a("change", f.value)) : (a("update:modelValue", void 0), a("change", void 0)), i.value.close();
|
|
15484
15484
|
}, y = () => {
|
|
15485
15485
|
};
|
|
15486
15486
|
return (m, C) => {
|
|
@@ -23603,9 +23603,9 @@ var p1 = {
|
|
|
23603
23603
|
const A = j.rule.length;
|
|
23604
23604
|
for (let E = 0; E < A; E++) {
|
|
23605
23605
|
const $ = j.rule[E];
|
|
23606
|
-
if ($.pattern = $.pattern ? $.pattern + "" : "", $.pattern && !
|
|
23606
|
+
if ($.pattern = $.pattern ? $.pattern + "" : "", $.pattern && !tn(O[j.prop || ""]) && !new RegExp($.pattern.substring(1, $.pattern.length - 1)).test(O[j.prop || ""]))
|
|
23607
23607
|
return _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(j.label)}:${i($.message)}`, _.isOk = !1, _;
|
|
23608
|
-
if ($.required &&
|
|
23608
|
+
if ($.required && tn(O[j.prop || ""]))
|
|
23609
23609
|
return _.isOk = !1, _.info = `${i("第")}${T + 1}${i("行")},${i("第")}${B + 1}${i("列")},${i(j.label)}:${i("不能为空")}`, _;
|
|
23610
23610
|
}
|
|
23611
23611
|
}
|
|
@@ -24070,7 +24070,7 @@ export {
|
|
|
24070
24070
|
Eh as EncryptionFactory,
|
|
24071
24071
|
Fc as EventBus,
|
|
24072
24072
|
CS as HashingFactory,
|
|
24073
|
-
|
|
24073
|
+
nn as INJECT_KEYS,
|
|
24074
24074
|
kp as JAutoComplete,
|
|
24075
24075
|
bv as JBarcode,
|
|
24076
24076
|
Uf as JButton,
|
|
@@ -24161,7 +24161,7 @@ export {
|
|
|
24161
24161
|
jn as getTextWidth,
|
|
24162
24162
|
Df as is,
|
|
24163
24163
|
Br as isArray,
|
|
24164
|
-
|
|
24164
|
+
tn as isNullOrEmpty,
|
|
24165
24165
|
gS as isObject,
|
|
24166
24166
|
Mh as loadBMap,
|
|
24167
24167
|
mS as lowerFirst,
|