@nuwatop/code-canvas-core 0.5.97 → 0.5.98
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/components/AndTable/renderers.d.ts.map +1 -1
- package/dist/index.esm.js +830 -827
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -54,12 +54,12 @@ const Ii = () => {
|
|
|
54
54
|
}
|
|
55
55
|
const s = Ur(t);
|
|
56
56
|
Ht.set(t, s);
|
|
57
|
-
const c = window.__ANTD_CSSINJS_CONTAINER__, f = window.__ANTD_IFRAME_DOC__, m = !r && c && f && f.defaultView !== null, p = m ? c : window.document.head, h = m ? f : window.document,
|
|
57
|
+
const c = window.__ANTD_CSSINJS_CONTAINER__, f = window.__ANTD_IFRAME_DOC__, m = !r && c && f && f.defaultView !== null, p = m ? c : window.document.head, h = m ? f : window.document, w = Gi(h), d = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? mt.darkAlgorithm : mt.defaultAlgorithm, l = (A) => /* @__PURE__ */ g(wi, { cache: w, container: p, hashPriority: "high", children: /* @__PURE__ */ g(
|
|
58
58
|
Ie,
|
|
59
59
|
{
|
|
60
60
|
locale: Ai,
|
|
61
61
|
theme: {
|
|
62
|
-
algorithm:
|
|
62
|
+
algorithm: d,
|
|
63
63
|
cssVar: {
|
|
64
64
|
key: "antd-canvas"
|
|
65
65
|
// 唯一标识符
|
|
@@ -166,8 +166,8 @@ function Rn(t, e, n, i) {
|
|
|
166
166
|
const f = t.dataSets[r];
|
|
167
167
|
let m = f.value;
|
|
168
168
|
Array.isArray(m) || (m = []);
|
|
169
|
-
const p = m[o], h = n.length === 0 ? p : Bt(p ?? {}, n),
|
|
170
|
-
|
|
169
|
+
const p = m[o], h = n.length === 0 ? p : Bt(p ?? {}, n), w = i(h), v = n.length === 0 ? w : Ji(p ?? {}, n, w), u = [...m];
|
|
170
|
+
u[o] = v, t.dataSets[r] = { ...f, value: u };
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
if (n.length === 0) {
|
|
@@ -563,24 +563,24 @@ var Ln = /* @__PURE__ */ function(t) {
|
|
|
563
563
|
}(/* @__PURE__ */ pn(Error));
|
|
564
564
|
function ao(t, e, n, i, r) {
|
|
565
565
|
if (e.first) {
|
|
566
|
-
var o = new Promise(function(h,
|
|
566
|
+
var o = new Promise(function(h, w) {
|
|
567
567
|
var v = function(l) {
|
|
568
|
-
return i(l), l.length ?
|
|
569
|
-
},
|
|
570
|
-
jn(
|
|
568
|
+
return i(l), l.length ? w(new Ln(l, vn(l))) : h(r);
|
|
569
|
+
}, u = oo(t);
|
|
570
|
+
jn(u, n, v);
|
|
571
571
|
});
|
|
572
572
|
return o.catch(function(h) {
|
|
573
573
|
return h;
|
|
574
574
|
}), o;
|
|
575
575
|
}
|
|
576
|
-
var a = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], s = Object.keys(t), c = s.length, f = 0, m = [], p = new Promise(function(h,
|
|
577
|
-
var v = function(
|
|
578
|
-
if (m.push.apply(m,
|
|
579
|
-
return i(m), m.length ?
|
|
576
|
+
var a = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], s = Object.keys(t), c = s.length, f = 0, m = [], p = new Promise(function(h, w) {
|
|
577
|
+
var v = function(d) {
|
|
578
|
+
if (m.push.apply(m, d), f++, f === c)
|
|
579
|
+
return i(m), m.length ? w(new Ln(m, vn(m))) : h(r);
|
|
580
580
|
};
|
|
581
|
-
s.length || (i(m), h(r)), s.forEach(function(
|
|
582
|
-
var
|
|
583
|
-
a.indexOf(
|
|
581
|
+
s.length || (i(m), h(r)), s.forEach(function(u) {
|
|
582
|
+
var d = t[u];
|
|
583
|
+
a.indexOf(u) !== -1 ? jn(d, n, v) : io(d, n, v);
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
return p.catch(function(h) {
|
|
@@ -646,7 +646,7 @@ var Nr = function(e, n, i, r, o, a) {
|
|
|
646
646
|
}, c.v6 = function(b) {
|
|
647
647
|
return b && b.exact ? s : new RegExp("" + e(b) + r + e(b), "g");
|
|
648
648
|
};
|
|
649
|
-
var f = "(?:(?:[a-z]+:)?//)", m = "(?:\\S+(?::\\S*)?@)?", p = c.v4().source, h = c.v6().source,
|
|
649
|
+
var f = "(?:(?:[a-z]+:)?//)", m = "(?:\\S+(?::\\S*)?@)?", p = c.v4().source, h = c.v6().source, w = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", v = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", u = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", d = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', S = "(?:" + f + "|www\\.)" + m + "(?:localhost|" + p + "|" + h + "|" + w + v + u + ")" + d + l;
|
|
650
650
|
return Ut = new RegExp("(?:^" + S + "$)", "i"), Ut;
|
|
651
651
|
}, Fn = {
|
|
652
652
|
// http://emailregex.com/
|
|
@@ -704,10 +704,10 @@ var Nr = function(e, n, i, r, o, a) {
|
|
|
704
704
|
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = e.type;
|
|
705
705
|
a.indexOf(s) > -1 ? jt[s](n) || r.push(et(o.messages.types[s], e.fullField, e.type)) : s && typeof n !== e.type && r.push(et(o.messages.types[s], e.fullField, e.type));
|
|
706
706
|
}, mo = function(e, n, i, r, o) {
|
|
707
|
-
var a = typeof e.len == "number", s = typeof e.min == "number", c = typeof e.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, m = n, p = null, h = typeof n == "number",
|
|
708
|
-
if (h ? p = "number" :
|
|
707
|
+
var a = typeof e.len == "number", s = typeof e.min == "number", c = typeof e.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, m = n, p = null, h = typeof n == "number", w = typeof n == "string", v = Array.isArray(n);
|
|
708
|
+
if (h ? p = "number" : w ? p = "string" : v && (p = "array"), !p)
|
|
709
709
|
return !1;
|
|
710
|
-
v && (m = n.length),
|
|
710
|
+
v && (m = n.length), w && (m = n.replace(f, "_").length), a ? m !== e.len && r.push(et(o.messages[p].len, e.fullField, e.len)) : s && !c && m < e.min ? r.push(et(o.messages[p].min, e.fullField, e.min)) : c && !s && m > e.max ? r.push(et(o.messages[p].max, e.fullField, e.max)) : s && c && (m < e.min || m > e.max) && r.push(et(o.messages[p].range, e.fullField, e.min, e.max));
|
|
711
711
|
}, Ct = "enum", yo = function(e, n, i, r, o) {
|
|
712
712
|
e[Ct] = Array.isArray(e[Ct]) ? e[Ct] : [], e[Ct].indexOf(n) === -1 && r.push(et(o.messages[Ct], e.fullField, e[Ct].join(", ")));
|
|
713
713
|
}, ho = function(e, n, i, r, o) {
|
|
@@ -940,97 +940,97 @@ var Sn = bn(), zt = /* @__PURE__ */ function() {
|
|
|
940
940
|
var s = i, c = r, f = o;
|
|
941
941
|
if (typeof c == "function" && (f = c, c = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
942
942
|
return f && f(null, s), Promise.resolve(s);
|
|
943
|
-
function m(
|
|
944
|
-
var
|
|
943
|
+
function m(u) {
|
|
944
|
+
var d = [], l = {};
|
|
945
945
|
function S(C) {
|
|
946
946
|
if (Array.isArray(C)) {
|
|
947
947
|
var A;
|
|
948
|
-
|
|
948
|
+
d = (A = d).concat.apply(A, C);
|
|
949
949
|
} else
|
|
950
|
-
|
|
950
|
+
d.push(C);
|
|
951
951
|
}
|
|
952
|
-
for (var b = 0; b <
|
|
953
|
-
S(
|
|
954
|
-
|
|
952
|
+
for (var b = 0; b < u.length; b++)
|
|
953
|
+
S(u[b]);
|
|
954
|
+
d.length ? (l = vn(d), f(d, l)) : f(null, s);
|
|
955
955
|
}
|
|
956
956
|
if (c.messages) {
|
|
957
957
|
var p = this.messages();
|
|
958
958
|
p === Sn && (p = bn()), Bn(p, c.messages), c.messages = p;
|
|
959
959
|
} else
|
|
960
960
|
c.messages = this.messages();
|
|
961
|
-
var h = {},
|
|
962
|
-
|
|
963
|
-
var
|
|
964
|
-
|
|
961
|
+
var h = {}, w = c.keys || Object.keys(this.rules);
|
|
962
|
+
w.forEach(function(u) {
|
|
963
|
+
var d = a.rules[u], l = s[u];
|
|
964
|
+
d.forEach(function(S) {
|
|
965
965
|
var b = S;
|
|
966
|
-
typeof b.transform == "function" && (s === i && (s = pt({}, s)), l = s[
|
|
966
|
+
typeof b.transform == "function" && (s === i && (s = pt({}, s)), l = s[u] = b.transform(l)), typeof b == "function" ? b = {
|
|
967
967
|
validator: b
|
|
968
|
-
} : b = pt({}, b), b.validator = a.getValidationMethod(b), b.validator && (b.field =
|
|
968
|
+
} : b = pt({}, b), b.validator = a.getValidationMethod(b), b.validator && (b.field = u, b.fullField = b.fullField || u, b.type = a.getType(b), h[u] = h[u] || [], h[u].push({
|
|
969
969
|
rule: b,
|
|
970
970
|
value: l,
|
|
971
971
|
source: s,
|
|
972
|
-
field:
|
|
972
|
+
field: u
|
|
973
973
|
}));
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
var v = {};
|
|
977
|
-
return ao(h, c, function(
|
|
978
|
-
var l =
|
|
979
|
-
S = S && (l.required || !l.required &&
|
|
980
|
-
function b(
|
|
977
|
+
return ao(h, c, function(u, d) {
|
|
978
|
+
var l = u.rule, S = (l.type === "object" || l.type === "array") && (typeof l.fields == "object" || typeof l.defaultField == "object");
|
|
979
|
+
S = S && (l.required || !l.required && u.value), l.field = u.field;
|
|
980
|
+
function b(x, D) {
|
|
981
981
|
return pt({}, D, {
|
|
982
|
-
fullField: l.fullField + "." +
|
|
983
|
-
fullFields: l.fullFields ? [].concat(l.fullFields, [
|
|
982
|
+
fullField: l.fullField + "." + x,
|
|
983
|
+
fullFields: l.fullFields ? [].concat(l.fullFields, [x]) : [x]
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
|
-
function C(
|
|
987
|
-
|
|
988
|
-
var D = Array.isArray(
|
|
986
|
+
function C(x) {
|
|
987
|
+
x === void 0 && (x = []);
|
|
988
|
+
var D = Array.isArray(x) ? x : [x];
|
|
989
989
|
!c.suppressWarning && D.length && t.warning("async-validator:", D), D.length && l.message !== void 0 && (D = [].concat(l.message));
|
|
990
990
|
var T = D.map(Vn(l, s));
|
|
991
991
|
if (c.first && T.length)
|
|
992
|
-
return v[l.field] = 1,
|
|
992
|
+
return v[l.field] = 1, d(T);
|
|
993
993
|
if (!S)
|
|
994
|
-
|
|
994
|
+
d(T);
|
|
995
995
|
else {
|
|
996
|
-
if (l.required && !
|
|
997
|
-
return l.message !== void 0 ? T = [].concat(l.message).map(Vn(l, s)) : c.error && (T = [c.error(l, et(c.messages.required, l.field))]),
|
|
996
|
+
if (l.required && !u.value)
|
|
997
|
+
return l.message !== void 0 ? T = [].concat(l.message).map(Vn(l, s)) : c.error && (T = [c.error(l, et(c.messages.required, l.field))]), d(T);
|
|
998
998
|
var j = {};
|
|
999
|
-
l.defaultField && Object.keys(
|
|
999
|
+
l.defaultField && Object.keys(u.value).map(function(M) {
|
|
1000
1000
|
j[M] = l.defaultField;
|
|
1001
|
-
}), j = pt({}, j,
|
|
1001
|
+
}), j = pt({}, j, u.rule.fields);
|
|
1002
1002
|
var k = {};
|
|
1003
1003
|
Object.keys(j).forEach(function(M) {
|
|
1004
1004
|
var E = j[M], _ = Array.isArray(E) ? E : [E];
|
|
1005
1005
|
k[M] = _.map(b.bind(null, M));
|
|
1006
1006
|
});
|
|
1007
1007
|
var N = new t(k);
|
|
1008
|
-
N.messages(c.messages),
|
|
1008
|
+
N.messages(c.messages), u.rule.options && (u.rule.options.messages = c.messages, u.rule.options.error = c.error), N.validate(u.value, u.rule.options || c, function(M) {
|
|
1009
1009
|
var E = [];
|
|
1010
|
-
T && T.length && E.push.apply(E, T), M && M.length && E.push.apply(E, M),
|
|
1010
|
+
T && T.length && E.push.apply(E, T), M && M.length && E.push.apply(E, M), d(E.length ? E : null);
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
var A;
|
|
1015
1015
|
if (l.asyncValidator)
|
|
1016
|
-
A = l.asyncValidator(l,
|
|
1016
|
+
A = l.asyncValidator(l, u.value, C, u.source, c);
|
|
1017
1017
|
else if (l.validator) {
|
|
1018
1018
|
try {
|
|
1019
|
-
A = l.validator(l,
|
|
1020
|
-
} catch (
|
|
1021
|
-
console.error == null || console.error(
|
|
1022
|
-
throw
|
|
1023
|
-
}, 0), C(
|
|
1019
|
+
A = l.validator(l, u.value, C, u.source, c);
|
|
1020
|
+
} catch (x) {
|
|
1021
|
+
console.error == null || console.error(x), c.suppressValidatorError || setTimeout(function() {
|
|
1022
|
+
throw x;
|
|
1023
|
+
}, 0), C(x.message);
|
|
1024
1024
|
}
|
|
1025
1025
|
A === !0 ? C() : A === !1 ? C(typeof l.message == "function" ? l.message(l.fullField || l.field) : l.message || (l.fullField || l.field) + " fails") : A instanceof Array ? C(A) : A instanceof Error && C(A.message);
|
|
1026
1026
|
}
|
|
1027
1027
|
A && A.then && A.then(function() {
|
|
1028
1028
|
return C();
|
|
1029
|
-
}, function(
|
|
1030
|
-
return C(
|
|
1029
|
+
}, function(x) {
|
|
1030
|
+
return C(x);
|
|
1031
1031
|
});
|
|
1032
|
-
}, function(
|
|
1033
|
-
m(
|
|
1032
|
+
}, function(u) {
|
|
1033
|
+
m(u);
|
|
1034
1034
|
}, s);
|
|
1035
1035
|
}, e.getType = function(i) {
|
|
1036
1036
|
if (i.type === void 0 && i.pattern instanceof RegExp && (i.type = "pattern"), typeof i.validator != "function" && i.type && !Vt.hasOwnProperty(i.type))
|
|
@@ -1089,39 +1089,39 @@ function Qe(t) {
|
|
|
1089
1089
|
[r, n]
|
|
1090
1090
|
), p = R(
|
|
1091
1091
|
(A) => {
|
|
1092
|
-
var
|
|
1093
|
-
return m && i ? ((
|
|
1092
|
+
var x;
|
|
1093
|
+
return m && i ? ((x = A.validateStore[m]) == null ? void 0 : x[i]) ?? "" : "";
|
|
1094
1094
|
}
|
|
1095
1095
|
), h = R(
|
|
1096
1096
|
(A) => {
|
|
1097
|
-
var
|
|
1098
|
-
return r && o ? ((
|
|
1097
|
+
var x;
|
|
1098
|
+
return r && o ? ((x = A.propsStore[`${r}_props`]) == null ? void 0 : x[o]) ?? null : null;
|
|
1099
1099
|
}
|
|
1100
|
-
),
|
|
1100
|
+
), w = R((A) => A.getDataSet), v = y(
|
|
1101
1101
|
() => ye(r, n),
|
|
1102
1102
|
[r, n]
|
|
1103
|
-
),
|
|
1103
|
+
), u = y(
|
|
1104
1104
|
() => n ? ye(r, `${n}_validateAction`) : void 0,
|
|
1105
1105
|
[r, n]
|
|
1106
|
-
),
|
|
1106
|
+
), d = R(
|
|
1107
1107
|
(A) => {
|
|
1108
|
-
var
|
|
1109
|
-
return
|
|
1108
|
+
var x;
|
|
1109
|
+
return u ? (x = A.dataSets[u]) == null ? void 0 : x.validate : void 0;
|
|
1110
1110
|
}
|
|
1111
1111
|
), l = K(
|
|
1112
1112
|
(A) => {
|
|
1113
|
-
const
|
|
1114
|
-
if (r && n && i && s(r, n, i,
|
|
1113
|
+
const x = A ?? "";
|
|
1114
|
+
if (r && n && i && s(r, n, i, x), r && o) {
|
|
1115
1115
|
const D = c(r, o) || {};
|
|
1116
|
-
f(r, o, { ...D, validateStatus:
|
|
1116
|
+
f(r, o, { ...D, validateStatus: x ? "error" : void 0, help: x });
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
1119
|
[r, n, i, o, s, c, f]
|
|
1120
1120
|
), S = K(
|
|
1121
1121
|
(A) => {
|
|
1122
|
-
const
|
|
1122
|
+
const x = Tr(e || []);
|
|
1123
1123
|
kr(
|
|
1124
|
-
|
|
1124
|
+
x,
|
|
1125
1125
|
A,
|
|
1126
1126
|
() => l(""),
|
|
1127
1127
|
(D) => {
|
|
@@ -1133,10 +1133,10 @@ function Qe(t) {
|
|
|
1133
1133
|
[e, l]
|
|
1134
1134
|
), b = a ? void 0 : r && n && i ? p : (h == null ? void 0 : h.help) ?? "", C = !a && b ? "error" : void 0;
|
|
1135
1135
|
return $e(() => {
|
|
1136
|
-
if (
|
|
1137
|
-
const A =
|
|
1136
|
+
if (d == null || !v || !i) return;
|
|
1137
|
+
const A = w(v, i);
|
|
1138
1138
|
S(A);
|
|
1139
|
-
}, [
|
|
1139
|
+
}, [d, v, i, w, S]), { validate: S, help: b, validateStatus: C };
|
|
1140
1140
|
}
|
|
1141
1141
|
function Mr(t) {
|
|
1142
1142
|
if (!t) return [];
|
|
@@ -1362,37 +1362,37 @@ function Nn(t, e) {
|
|
|
1362
1362
|
valueKey: f = "value",
|
|
1363
1363
|
immediate: m = !0,
|
|
1364
1364
|
field: p
|
|
1365
|
-
} = e || {}, h = JSON.stringify((e == null ? void 0 : e.params) ?? null),
|
|
1365
|
+
} = e || {}, h = JSON.stringify((e == null ? void 0 : e.params) ?? null), w = y(
|
|
1366
1366
|
() => (e == null ? void 0 : e.params) != null ? JSON.parse(h) : void 0,
|
|
1367
1367
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1368
1368
|
[h]
|
|
1369
1369
|
), v = K(
|
|
1370
|
-
(
|
|
1370
|
+
(d) => Array.isArray(d) ? d.map((l) => ({
|
|
1371
1371
|
label: l[c],
|
|
1372
1372
|
value: l[f]
|
|
1373
1373
|
})) : [],
|
|
1374
1374
|
[c, f]
|
|
1375
|
-
),
|
|
1375
|
+
), u = K(async () => {
|
|
1376
1376
|
if (t) {
|
|
1377
1377
|
o(!0), s(null);
|
|
1378
1378
|
try {
|
|
1379
|
-
const
|
|
1379
|
+
const d = await vt({
|
|
1380
1380
|
url: t,
|
|
1381
1381
|
method: "GET",
|
|
1382
|
-
...
|
|
1383
|
-
}), l = (
|
|
1382
|
+
...w != null && Object.keys(w).length > 0 ? { params: w } : {}
|
|
1383
|
+
}), l = (d == null ? void 0 : d.data) != null ? d.data : d;
|
|
1384
1384
|
let S = [];
|
|
1385
1385
|
p != null && p !== "" ? S = Array.isArray(l == null ? void 0 : l[p]) ? l[p] : [] : Array.isArray(l) ? S = l : l != null && typeof l == "object" && (S = (l == null ? void 0 : l.list) ?? (l == null ? void 0 : l.records) ?? []), i(v(S));
|
|
1386
|
-
} catch (
|
|
1387
|
-
s(
|
|
1386
|
+
} catch (d) {
|
|
1387
|
+
s(d), console.error(`Failed to load remote options: ${t}`, d);
|
|
1388
1388
|
} finally {
|
|
1389
1389
|
o(!1);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
|
-
}, [t,
|
|
1392
|
+
}, [t, w, v, p]);
|
|
1393
1393
|
return $e(() => {
|
|
1394
|
-
m && t &&
|
|
1395
|
-
}, [m, t,
|
|
1394
|
+
m && t && u();
|
|
1395
|
+
}, [m, t, u]), { options: n, loading: r, error: a, reload: u };
|
|
1396
1396
|
}
|
|
1397
1397
|
const Et = (t) => {
|
|
1398
1398
|
if (t == null || t === "") return 0;
|
|
@@ -1739,19 +1739,19 @@ const kc = ({
|
|
|
1739
1739
|
dataSet: m,
|
|
1740
1740
|
dataSetField: p,
|
|
1741
1741
|
token: h,
|
|
1742
|
-
...
|
|
1742
|
+
...w
|
|
1743
1743
|
}) => {
|
|
1744
|
-
const v = R((F) => F.addCommand),
|
|
1744
|
+
const v = R((F) => F.addCommand), u = rt(Je), d = f ?? (u == null ? void 0 : u.index), l = u == null ? void 0 : u.parentIndex, S = R(
|
|
1745
1745
|
(F) => {
|
|
1746
1746
|
var O;
|
|
1747
1747
|
return o && t ? (O = F.propsStore[`${o}_props`]) == null ? void 0 : O[t] : null;
|
|
1748
1748
|
}
|
|
1749
1749
|
), b = y(() => {
|
|
1750
|
-
const F = { ...
|
|
1750
|
+
const F = { ...w };
|
|
1751
1751
|
return S && typeof S == "object" && Object.keys(S).forEach((O) => {
|
|
1752
1752
|
S[O] !== void 0 && S[O] !== null && (F[O] = S[O]);
|
|
1753
1753
|
}), a && (F.disabled = !1), F;
|
|
1754
|
-
}, [
|
|
1754
|
+
}, [w, S, a]), C = y(() => {
|
|
1755
1755
|
const F = (S == null ? void 0 : S.iconName) || i;
|
|
1756
1756
|
return F && at[F] ? at[F] : null;
|
|
1757
1757
|
}, [i, S == null ? void 0 : S.iconName]), A = K(
|
|
@@ -1763,7 +1763,7 @@ const kc = ({
|
|
|
1763
1763
|
if (r && o) {
|
|
1764
1764
|
const { actionName: O, arg: B } = Dr(r, {
|
|
1765
1765
|
id: t,
|
|
1766
|
-
index:
|
|
1766
|
+
index: d,
|
|
1767
1767
|
parentIndex: l,
|
|
1768
1768
|
dataSet: m,
|
|
1769
1769
|
dataSetField: p,
|
|
@@ -1776,7 +1776,7 @@ const kc = ({
|
|
|
1776
1776
|
r,
|
|
1777
1777
|
o,
|
|
1778
1778
|
t,
|
|
1779
|
-
|
|
1779
|
+
d,
|
|
1780
1780
|
m,
|
|
1781
1781
|
p,
|
|
1782
1782
|
l,
|
|
@@ -1784,7 +1784,7 @@ const kc = ({
|
|
|
1784
1784
|
v,
|
|
1785
1785
|
s
|
|
1786
1786
|
]
|
|
1787
|
-
),
|
|
1787
|
+
), x = (S == null ? void 0 : S.text) || e, D = (S == null ? void 0 : S.tooltip) ?? n, T = y(() => {
|
|
1788
1788
|
const F = S == null ? void 0 : S.token, O = { ...h, ...F };
|
|
1789
1789
|
if (!O || Object.keys(O).length === 0) return;
|
|
1790
1790
|
const B = {};
|
|
@@ -1808,7 +1808,7 @@ const kc = ({
|
|
|
1808
1808
|
iconPlacement: L,
|
|
1809
1809
|
icon: C ? /* @__PURE__ */ g(C, {}) : void 0,
|
|
1810
1810
|
onClick: A,
|
|
1811
|
-
children:
|
|
1811
|
+
children: x || c
|
|
1812
1812
|
}
|
|
1813
1813
|
), Y = D ? /* @__PURE__ */ g(Qt, { title: D, children: /* @__PURE__ */ g("span", { style: { display: V ? "block" : "inline-block", width: V ? "100%" : void 0 }, children: $ }) }) : $;
|
|
1814
1814
|
return j ? /* @__PURE__ */ g(Ie, { theme: j, children: Y }) : Y;
|
|
@@ -1870,17 +1870,17 @@ const $r = (t) => {
|
|
|
1870
1870
|
styles: m,
|
|
1871
1871
|
token: p,
|
|
1872
1872
|
rules: h,
|
|
1873
|
-
validateOnChange:
|
|
1873
|
+
validateOnChange: w,
|
|
1874
1874
|
validateOnBlur: v,
|
|
1875
|
-
focusAction:
|
|
1876
|
-
blurAction:
|
|
1875
|
+
focusAction: u,
|
|
1876
|
+
blurAction: d,
|
|
1877
1877
|
pressEnterAction: l,
|
|
1878
1878
|
clearAction: S,
|
|
1879
1879
|
bordered: b,
|
|
1880
1880
|
...C
|
|
1881
|
-
} = t, A = dt(r, o, n),
|
|
1882
|
-
() => ye(T,
|
|
1883
|
-
[T,
|
|
1881
|
+
} = t, A = dt(r, o, n), x = A.dataSet, D = A.dataSetField, T = A.sessionId, j = rt(Je), k = a ?? (j == null ? void 0 : j.index), N = j == null ? void 0 : j.parentIndex, M = Ke(""), E = Ke(null), _ = R((re) => re.addCommand), z = R((re) => re.getDataSet), L = R((re) => re.setDataSet), V = R((re) => re.getProps), $ = R((re) => re.setProps), Y = R((re) => re.setValidateResult), F = y(
|
|
1882
|
+
() => ye(T, x),
|
|
1883
|
+
[T, x]
|
|
1884
1884
|
), O = y(
|
|
1885
1885
|
() => T ? bt(e, j, a) : null,
|
|
1886
1886
|
[T, e, j == null ? void 0 : j.parentIndex, j == null ? void 0 : j.index, a]
|
|
@@ -1890,8 +1890,8 @@ const $r = (t) => {
|
|
|
1890
1890
|
return O ? ((le = re.propsStore[`${T}_props`]) == null ? void 0 : le[O]) ?? null : null;
|
|
1891
1891
|
}
|
|
1892
1892
|
), q = y(
|
|
1893
|
-
() => Lt(T,
|
|
1894
|
-
[T,
|
|
1893
|
+
() => Lt(T, x),
|
|
1894
|
+
[T, x]
|
|
1895
1895
|
), P = R(
|
|
1896
1896
|
(re) => {
|
|
1897
1897
|
var le;
|
|
@@ -1900,8 +1900,8 @@ const $r = (t) => {
|
|
|
1900
1900
|
), G = R(
|
|
1901
1901
|
(re) => F && D ? re.getDataSet(F, D) : void 0
|
|
1902
1902
|
), oe = y(
|
|
1903
|
-
() =>
|
|
1904
|
-
[T,
|
|
1903
|
+
() => x ? ye(T, `${x}_validateAction`) : void 0,
|
|
1904
|
+
[T, x]
|
|
1905
1905
|
), pe = R(
|
|
1906
1906
|
(re) => {
|
|
1907
1907
|
var le;
|
|
@@ -1940,9 +1940,9 @@ const $r = (t) => {
|
|
|
1940
1940
|
}, [ue]), me = K(
|
|
1941
1941
|
(re) => {
|
|
1942
1942
|
const le = re ?? "";
|
|
1943
|
-
if (T &&
|
|
1943
|
+
if (T && x && D && Y(
|
|
1944
1944
|
T,
|
|
1945
|
-
|
|
1945
|
+
x,
|
|
1946
1946
|
D,
|
|
1947
1947
|
le
|
|
1948
1948
|
), T && O) {
|
|
@@ -1956,7 +1956,7 @@ const $r = (t) => {
|
|
|
1956
1956
|
},
|
|
1957
1957
|
[
|
|
1958
1958
|
T,
|
|
1959
|
-
|
|
1959
|
+
x,
|
|
1960
1960
|
D,
|
|
1961
1961
|
O,
|
|
1962
1962
|
Y,
|
|
@@ -1987,7 +1987,7 @@ const $r = (t) => {
|
|
|
1987
1987
|
if (F && D && L(F, D, le), s && T) {
|
|
1988
1988
|
const { actionName: H, arg: se } = je(s, le, {
|
|
1989
1989
|
id: e,
|
|
1990
|
-
dataSet:
|
|
1990
|
+
dataSet: x,
|
|
1991
1991
|
dataSetField: D,
|
|
1992
1992
|
index: k,
|
|
1993
1993
|
parentIndex: N,
|
|
@@ -1995,7 +1995,7 @@ const $r = (t) => {
|
|
|
1995
1995
|
});
|
|
1996
1996
|
_(T, ae(H, se));
|
|
1997
1997
|
}
|
|
1998
|
-
|
|
1998
|
+
w && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
1999
1999
|
E.current = null, Q(le);
|
|
2000
2000
|
}, ca));
|
|
2001
2001
|
},
|
|
@@ -2007,13 +2007,13 @@ const $r = (t) => {
|
|
|
2007
2007
|
s,
|
|
2008
2008
|
T,
|
|
2009
2009
|
e,
|
|
2010
|
-
|
|
2010
|
+
x,
|
|
2011
2011
|
D,
|
|
2012
2012
|
k,
|
|
2013
2013
|
N,
|
|
2014
2014
|
te,
|
|
2015
2015
|
_,
|
|
2016
|
-
|
|
2016
|
+
w,
|
|
2017
2017
|
Q
|
|
2018
2018
|
]
|
|
2019
2019
|
), we = K(() => {
|
|
@@ -2036,7 +2036,7 @@ const $r = (t) => {
|
|
|
2036
2036
|
if (l && T) {
|
|
2037
2037
|
const { actionName: se, arg: U } = je(l, ne, {
|
|
2038
2038
|
id: e,
|
|
2039
|
-
dataSet:
|
|
2039
|
+
dataSet: x,
|
|
2040
2040
|
dataSetField: D,
|
|
2041
2041
|
index: k,
|
|
2042
2042
|
parentIndex: N,
|
|
@@ -2051,7 +2051,7 @@ const $r = (t) => {
|
|
|
2051
2051
|
T,
|
|
2052
2052
|
ne,
|
|
2053
2053
|
e,
|
|
2054
|
-
|
|
2054
|
+
x,
|
|
2055
2055
|
D,
|
|
2056
2056
|
k,
|
|
2057
2057
|
N,
|
|
@@ -2066,7 +2066,7 @@ const $r = (t) => {
|
|
|
2066
2066
|
if (S && T) {
|
|
2067
2067
|
const { actionName: H, arg: se } = je(S, "", {
|
|
2068
2068
|
id: e,
|
|
2069
|
-
dataSet:
|
|
2069
|
+
dataSet: x,
|
|
2070
2070
|
dataSetField: D,
|
|
2071
2071
|
index: k,
|
|
2072
2072
|
parentIndex: N,
|
|
@@ -2079,7 +2079,7 @@ const $r = (t) => {
|
|
|
2079
2079
|
S,
|
|
2080
2080
|
T,
|
|
2081
2081
|
e,
|
|
2082
|
-
|
|
2082
|
+
x,
|
|
2083
2083
|
D,
|
|
2084
2084
|
k,
|
|
2085
2085
|
N,
|
|
@@ -2099,7 +2099,7 @@ const $r = (t) => {
|
|
|
2099
2099
|
const Le = y(() => la(p), [p]), Re = y(
|
|
2100
2100
|
() => Le ? { components: { Input: Le } } : void 0,
|
|
2101
2101
|
[Le]
|
|
2102
|
-
), xe = i ? void 0 : T &&
|
|
2102
|
+
), xe = i ? void 0 : T && x && D ? P : (B == null ? void 0 : B.help) ?? "", He = !i && xe ? "error" : void 0, Z = /* @__PURE__ */ ve(Mt, { children: [
|
|
2103
2103
|
/* @__PURE__ */ ve(Oe.Compact, { style: { width: "100%" }, children: [
|
|
2104
2104
|
ee ? /* @__PURE__ */ g(Oe.Addon, { style: lt, children: ee }) : null,
|
|
2105
2105
|
/* @__PURE__ */ g(
|
|
@@ -2138,12 +2138,12 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2138
2138
|
clearAction: m,
|
|
2139
2139
|
allowClear: p,
|
|
2140
2140
|
stepAction: h,
|
|
2141
|
-
onChange:
|
|
2141
|
+
onChange: w,
|
|
2142
2142
|
defaultValue: v,
|
|
2143
|
-
value:
|
|
2144
|
-
...
|
|
2143
|
+
value: u,
|
|
2144
|
+
...d
|
|
2145
2145
|
}) => {
|
|
2146
|
-
const l = dt(i, r, e), S = l.dataSet, b = l.dataSetField, C = l.sessionId, A = R((te) => te.addCommand),
|
|
2146
|
+
const l = dt(i, r, e), S = l.dataSet, b = l.dataSetField, C = l.sessionId, A = R((te) => te.addCommand), x = R((te) => te.setDataSet), D = Ke(null), T = y(
|
|
2147
2147
|
() => ye(C, S),
|
|
2148
2148
|
[C, S]
|
|
2149
2149
|
), j = R(
|
|
@@ -2160,26 +2160,26 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2160
2160
|
sessionId: C,
|
|
2161
2161
|
id: t,
|
|
2162
2162
|
develop: n
|
|
2163
|
-
}), E = y(() => k !== void 0 ? k : (j == null ? void 0 : j.value) !== void 0 ? j.value :
|
|
2163
|
+
}), E = y(() => k !== void 0 ? k : (j == null ? void 0 : j.value) !== void 0 ? j.value : u, [k, j == null ? void 0 : j.value, u]), _ = K(
|
|
2164
2164
|
(te, me, Q) => {
|
|
2165
2165
|
te && e && A(e, ae(te, { type: me, value: Q }));
|
|
2166
2166
|
},
|
|
2167
2167
|
[e, A]
|
|
2168
2168
|
), z = K(
|
|
2169
2169
|
(te) => {
|
|
2170
|
-
if (
|
|
2171
|
-
|
|
2170
|
+
if (w) {
|
|
2171
|
+
w(te);
|
|
2172
2172
|
return;
|
|
2173
2173
|
}
|
|
2174
|
-
T && b &&
|
|
2174
|
+
T && b && x(T, b, te), s && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2175
2175
|
D.current = null, N(te);
|
|
2176
2176
|
}, Pn)), _(c, "change", te);
|
|
2177
2177
|
},
|
|
2178
2178
|
[
|
|
2179
|
-
|
|
2179
|
+
w,
|
|
2180
2180
|
T,
|
|
2181
2181
|
b,
|
|
2182
|
-
|
|
2182
|
+
x,
|
|
2183
2183
|
s,
|
|
2184
2184
|
N,
|
|
2185
2185
|
c,
|
|
@@ -2189,8 +2189,8 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2189
2189
|
a && N(E);
|
|
2190
2190
|
}, [a, N, E]), V = K(
|
|
2191
2191
|
(te) => {
|
|
2192
|
-
if (
|
|
2193
|
-
|
|
2192
|
+
if (d.onPressEnter) {
|
|
2193
|
+
d.onPressEnter(te);
|
|
2194
2194
|
return;
|
|
2195
2195
|
}
|
|
2196
2196
|
if (f && C) {
|
|
@@ -2203,7 +2203,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2203
2203
|
}
|
|
2204
2204
|
},
|
|
2205
2205
|
[
|
|
2206
|
-
|
|
2206
|
+
d.onPressEnter,
|
|
2207
2207
|
f,
|
|
2208
2208
|
C,
|
|
2209
2209
|
E,
|
|
@@ -2213,11 +2213,11 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2213
2213
|
A
|
|
2214
2214
|
]
|
|
2215
2215
|
), $ = K(() => {
|
|
2216
|
-
if (
|
|
2217
|
-
|
|
2216
|
+
if (w) {
|
|
2217
|
+
w(null);
|
|
2218
2218
|
return;
|
|
2219
2219
|
}
|
|
2220
|
-
if (T && b &&
|
|
2220
|
+
if (T && b && x(T, b, null), s && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2221
2221
|
D.current = null, N(null);
|
|
2222
2222
|
}, Pn)), _(c, "change", null), m && C) {
|
|
2223
2223
|
const { actionName: te, arg: me } = je(m, null, {
|
|
@@ -2228,10 +2228,10 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2228
2228
|
A(C, ae(te, me));
|
|
2229
2229
|
}
|
|
2230
2230
|
}, [
|
|
2231
|
-
|
|
2231
|
+
w,
|
|
2232
2232
|
T,
|
|
2233
2233
|
b,
|
|
2234
|
-
|
|
2234
|
+
x,
|
|
2235
2235
|
s,
|
|
2236
2236
|
N,
|
|
2237
2237
|
_,
|
|
@@ -2254,11 +2254,11 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2254
2254
|
},
|
|
2255
2255
|
[]
|
|
2256
2256
|
), $e(() => {
|
|
2257
|
-
v !== void 0 && E === void 0 && T && b &&
|
|
2258
|
-
}, [v, E, T, b,
|
|
2257
|
+
v !== void 0 && E === void 0 && T && b && x(T, b, v);
|
|
2258
|
+
}, [v, E, T, b, x]);
|
|
2259
2259
|
const F = y(
|
|
2260
|
-
() => Ze(
|
|
2261
|
-
[
|
|
2260
|
+
() => Ze(d, j ?? void 0),
|
|
2261
|
+
[d, j]
|
|
2262
2262
|
), {
|
|
2263
2263
|
prefix: O,
|
|
2264
2264
|
suffix: B,
|
|
@@ -2339,11 +2339,11 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2339
2339
|
clearAction: m,
|
|
2340
2340
|
onChange: p,
|
|
2341
2341
|
value: h,
|
|
2342
|
-
defaultValue:
|
|
2342
|
+
defaultValue: w,
|
|
2343
2343
|
index: v,
|
|
2344
|
-
...
|
|
2344
|
+
...u
|
|
2345
2345
|
}) => {
|
|
2346
|
-
const
|
|
2346
|
+
const d = dt(i, r, e), l = d.dataSet, S = d.dataSetField, b = d.sessionId, C = R((ne) => ne.addCommand), A = R((ne) => ne.setDataSet), x = Ke(null), D = rt(Je), T = v ?? (D == null ? void 0 : D.index), j = D == null ? void 0 : D.parentIndex, k = y(
|
|
2347
2347
|
() => ye(b, l),
|
|
2348
2348
|
[b, l]
|
|
2349
2349
|
), N = y(
|
|
@@ -2363,9 +2363,9 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2363
2363
|
sessionId: b,
|
|
2364
2364
|
id: t,
|
|
2365
2365
|
develop: n
|
|
2366
|
-
}), L = y(() => E !== void 0 ? E : (M == null ? void 0 : M.value) !== void 0 ? M.value : h ??
|
|
2367
|
-
() => Ze(
|
|
2368
|
-
[
|
|
2366
|
+
}), L = y(() => E !== void 0 ? E : (M == null ? void 0 : M.value) !== void 0 ? M.value : h ?? w, [E, M == null ? void 0 : M.value, h, w]), V = y(
|
|
2367
|
+
() => Ze(u, M ?? void 0),
|
|
2368
|
+
[u, M]
|
|
2369
2369
|
), { leftAddonNode: $, rightAddonNode: Y, inputRest: F } = y(() => {
|
|
2370
2370
|
const ne = V, {
|
|
2371
2371
|
prefix: ue,
|
|
@@ -2402,8 +2402,8 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2402
2402
|
});
|
|
2403
2403
|
C(b, ae(de, fe));
|
|
2404
2404
|
}
|
|
2405
|
-
s && (
|
|
2406
|
-
|
|
2405
|
+
s && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
2406
|
+
x.current = null, _(ue);
|
|
2407
2407
|
}, ma));
|
|
2408
2408
|
},
|
|
2409
2409
|
[
|
|
@@ -2481,7 +2481,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2481
2481
|
]);
|
|
2482
2482
|
$e(
|
|
2483
2483
|
() => () => {
|
|
2484
|
-
|
|
2484
|
+
x.current && clearTimeout(x.current);
|
|
2485
2485
|
},
|
|
2486
2486
|
[]
|
|
2487
2487
|
);
|
|
@@ -2521,10 +2521,10 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2521
2521
|
clearAction: m,
|
|
2522
2522
|
onChange: p,
|
|
2523
2523
|
value: h,
|
|
2524
|
-
defaultValue:
|
|
2524
|
+
defaultValue: w,
|
|
2525
2525
|
...v
|
|
2526
2526
|
}) => {
|
|
2527
|
-
const
|
|
2527
|
+
const u = R(($) => $.addCommand), d = R(($) => $.setDataSet), l = Ke(null), S = y(
|
|
2528
2528
|
() => ye(e, i),
|
|
2529
2529
|
[e, i]
|
|
2530
2530
|
), b = R(
|
|
@@ -2534,14 +2534,14 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2534
2534
|
}
|
|
2535
2535
|
), C = R(
|
|
2536
2536
|
($) => S && r ? $.getDataSet(S, r) : void 0
|
|
2537
|
-
), { validate: A, help:
|
|
2537
|
+
), { validate: A, help: x } = Qe({
|
|
2538
2538
|
rules: o,
|
|
2539
2539
|
dataSet: i,
|
|
2540
2540
|
dataSetField: r,
|
|
2541
2541
|
sessionId: e,
|
|
2542
2542
|
id: t,
|
|
2543
2543
|
develop: n
|
|
2544
|
-
}), D = y(() => C !== void 0 ? C : (b == null ? void 0 : b.value) !== void 0 ? b.value : h ??
|
|
2544
|
+
}), D = y(() => C !== void 0 ? C : (b == null ? void 0 : b.value) !== void 0 ? b.value : h ?? w, [C, b == null ? void 0 : b.value, h, w]), T = y(
|
|
2545
2545
|
() => Ze(v, b ?? void 0),
|
|
2546
2546
|
[v, b]
|
|
2547
2547
|
), { prefixIconNode: j, suffixIconNode: k, prefixAddonText: N, suffixAddonText: M, inputRest: E } = y(() => {
|
|
@@ -2572,13 +2572,13 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2572
2572
|
p(Y, $);
|
|
2573
2573
|
return;
|
|
2574
2574
|
}
|
|
2575
|
-
if (S && r &&
|
|
2575
|
+
if (S && r && d(S, r, Y), c && e) {
|
|
2576
2576
|
const { actionName: F, arg: O } = je(c, Y, {
|
|
2577
2577
|
id: t,
|
|
2578
2578
|
dataSet: i,
|
|
2579
2579
|
dataSetField: r
|
|
2580
2580
|
});
|
|
2581
|
-
|
|
2581
|
+
u(e, ae(F, O));
|
|
2582
2582
|
}
|
|
2583
2583
|
s && (l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
2584
2584
|
l.current = null, A(Y);
|
|
@@ -2588,11 +2588,11 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2588
2588
|
p,
|
|
2589
2589
|
S,
|
|
2590
2590
|
r,
|
|
2591
|
-
|
|
2591
|
+
d,
|
|
2592
2592
|
c,
|
|
2593
2593
|
e,
|
|
2594
2594
|
t,
|
|
2595
|
-
|
|
2595
|
+
u,
|
|
2596
2596
|
s,
|
|
2597
2597
|
A
|
|
2598
2598
|
]
|
|
@@ -2611,7 +2611,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2611
2611
|
dataSet: i,
|
|
2612
2612
|
dataSetField: r
|
|
2613
2613
|
});
|
|
2614
|
-
|
|
2614
|
+
u(e, ae(F, O));
|
|
2615
2615
|
}
|
|
2616
2616
|
},
|
|
2617
2617
|
[
|
|
@@ -2622,7 +2622,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2622
2622
|
t,
|
|
2623
2623
|
i,
|
|
2624
2624
|
r,
|
|
2625
|
-
|
|
2625
|
+
u
|
|
2626
2626
|
]
|
|
2627
2627
|
), V = K(() => {
|
|
2628
2628
|
const $ = E.onClear;
|
|
@@ -2636,9 +2636,9 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2636
2636
|
dataSet: i,
|
|
2637
2637
|
dataSetField: r
|
|
2638
2638
|
});
|
|
2639
|
-
|
|
2639
|
+
u(e, ae(Y, F));
|
|
2640
2640
|
}
|
|
2641
|
-
}, [E, m, e, t, i, r,
|
|
2641
|
+
}, [E, m, e, t, i, r, u]);
|
|
2642
2642
|
return $e(
|
|
2643
2643
|
() => () => {
|
|
2644
2644
|
l.current && clearTimeout(l.current);
|
|
@@ -2659,12 +2659,12 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2659
2659
|
onBlur: z,
|
|
2660
2660
|
onPressEnter: L,
|
|
2661
2661
|
onClear: V,
|
|
2662
|
-
status:
|
|
2662
|
+
status: x ? "error" : void 0
|
|
2663
2663
|
}
|
|
2664
2664
|
),
|
|
2665
2665
|
M ? /* @__PURE__ */ g(Oe.Addon, { style: lt, children: M }) : null
|
|
2666
2666
|
] }),
|
|
2667
|
-
|
|
2667
|
+
x && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
|
|
2668
2668
|
] });
|
|
2669
2669
|
}, { Search: ga } = en, Ec = ({
|
|
2670
2670
|
id: t,
|
|
@@ -2680,20 +2680,20 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2680
2680
|
defaultValue: m,
|
|
2681
2681
|
...p
|
|
2682
2682
|
}) => {
|
|
2683
|
-
const h = R((N) => N.addCommand),
|
|
2683
|
+
const h = R((N) => N.addCommand), w = R((N) => N.getDataSet), v = R((N) => N.setDataSet), u = R(
|
|
2684
2684
|
(N) => {
|
|
2685
2685
|
var M;
|
|
2686
2686
|
return e && t ? ((M = N.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
|
|
2687
2687
|
}
|
|
2688
|
-
),
|
|
2688
|
+
), d = y(
|
|
2689
2689
|
() => ye(e, i),
|
|
2690
2690
|
[e, i]
|
|
2691
2691
|
), l = y(() => {
|
|
2692
|
-
if (
|
|
2693
|
-
}, [
|
|
2694
|
-
() => Ze(p,
|
|
2695
|
-
[p,
|
|
2696
|
-
), { prefixIconNode: C, suffixIconNode: A, prefixAddonText:
|
|
2692
|
+
if (d && r) return w(d, r);
|
|
2693
|
+
}, [d, r, w]), S = y(() => l ?? f ?? m, [l, f, m]), b = y(
|
|
2694
|
+
() => Ze(p, u ?? void 0),
|
|
2695
|
+
[p, u]
|
|
2696
|
+
), { prefixIconNode: C, suffixIconNode: A, prefixAddonText: x, suffixAddonText: D, inputProps: T } = y(() => {
|
|
2697
2697
|
const N = b, {
|
|
2698
2698
|
prefix: M,
|
|
2699
2699
|
suffix: E,
|
|
@@ -2721,7 +2721,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2721
2721
|
s(M);
|
|
2722
2722
|
return;
|
|
2723
2723
|
}
|
|
2724
|
-
if (
|
|
2724
|
+
if (d && r && v(d, r, M), o && e) {
|
|
2725
2725
|
const { actionName: E, arg: _ } = je(o, M, {
|
|
2726
2726
|
id: t,
|
|
2727
2727
|
dataSet: i,
|
|
@@ -2730,7 +2730,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2730
2730
|
h(e, ae(E, _));
|
|
2731
2731
|
}
|
|
2732
2732
|
},
|
|
2733
|
-
[s,
|
|
2733
|
+
[s, d, r, v, o, e, t, h]
|
|
2734
2734
|
), k = K(
|
|
2735
2735
|
(N) => {
|
|
2736
2736
|
if (c) {
|
|
@@ -2742,7 +2742,7 @@ const da = Ge.memo($r), Pn = 200, fa = ({
|
|
|
2742
2742
|
[c, a, e, h]
|
|
2743
2743
|
);
|
|
2744
2744
|
return /* @__PURE__ */ ve(Oe.Compact, { style: { width: "100%" }, children: [
|
|
2745
|
-
|
|
2745
|
+
x ? /* @__PURE__ */ g(Oe.Addon, { style: lt, children: x }) : null,
|
|
2746
2746
|
/* @__PURE__ */ g(
|
|
2747
2747
|
ga,
|
|
2748
2748
|
{
|
|
@@ -2782,8 +2782,8 @@ function Yn(t, e, n, i, r) {
|
|
|
2782
2782
|
if (t == null || t === "")
|
|
2783
2783
|
return null;
|
|
2784
2784
|
if (i && t && typeof t == "object" && !Array.isArray(t) && "value" in t) {
|
|
2785
|
-
const
|
|
2786
|
-
return { key:
|
|
2785
|
+
const w = t;
|
|
2786
|
+
return { key: w.value, label: Nt(w.label) };
|
|
2787
2787
|
}
|
|
2788
2788
|
const m = e && !Array.isArray(e) ? e : st(n, t), p = (m == null ? void 0 : m.label) ?? (m == null ? void 0 : m.children), h = Nt(
|
|
2789
2789
|
p ?? ((f = st(n, t)) == null ? void 0 : f.label) ?? String(t)
|
|
@@ -2800,8 +2800,8 @@ function Yn(t, e, n, i, r) {
|
|
|
2800
2800
|
}
|
|
2801
2801
|
const a = Array.isArray(e) ? e : [], s = t, c = s.map((m, p) => {
|
|
2802
2802
|
var v;
|
|
2803
|
-
const h = a[p],
|
|
2804
|
-
return
|
|
2803
|
+
const h = a[p], w = (h == null ? void 0 : h.label) ?? (h == null ? void 0 : h.children);
|
|
2804
|
+
return w != null ? Nt(w) : Nt(((v = st(n, m)) == null ? void 0 : v.label) ?? String(m));
|
|
2805
2805
|
});
|
|
2806
2806
|
return { key: s, label: c };
|
|
2807
2807
|
}
|
|
@@ -2819,16 +2819,16 @@ const Sa = ({
|
|
|
2819
2819
|
validateOnChange: m,
|
|
2820
2820
|
changeAction: p,
|
|
2821
2821
|
onChange: h,
|
|
2822
|
-
autoSelectFirst:
|
|
2822
|
+
autoSelectFirst: w = !1,
|
|
2823
2823
|
options: v,
|
|
2824
|
-
defaultValue:
|
|
2825
|
-
value:
|
|
2824
|
+
defaultValue: u,
|
|
2825
|
+
value: d,
|
|
2826
2826
|
index: l,
|
|
2827
2827
|
showArrow: S,
|
|
2828
2828
|
remoteUrl: b,
|
|
2829
2829
|
searchAction: C,
|
|
2830
2830
|
selectAction: A,
|
|
2831
|
-
deselectAction:
|
|
2831
|
+
deselectAction: x,
|
|
2832
2832
|
dictCode: D,
|
|
2833
2833
|
dropdownMatchSelectWidth: T,
|
|
2834
2834
|
...j
|
|
@@ -2868,7 +2868,7 @@ const Sa = ({
|
|
|
2868
2868
|
sessionId: E,
|
|
2869
2869
|
id: t,
|
|
2870
2870
|
develop: n
|
|
2871
|
-
}), ee = y(() => q != null && q !== "" ? q : (B == null ? void 0 : B.value) !== void 0 ? B.value :
|
|
2871
|
+
}), ee = y(() => q != null && q !== "" ? q : (B == null ? void 0 : B.value) !== void 0 ? B.value : d ?? u, [q, B == null ? void 0 : B.value, d, u]), W = y(
|
|
2872
2872
|
() => Ze(j, B ?? void 0),
|
|
2873
2873
|
[j, B]
|
|
2874
2874
|
), te = y(() => B != null && B.options && Array.isArray(B.options) ? B.options : P != null && P.url && pe.length > 0 ? pe : (D || o && a) && G.length > 0 ? G : v || [], [B == null ? void 0 : B.options, P == null ? void 0 : P.url, pe, D, o, a, G, v]), me = y(() => {
|
|
@@ -2954,7 +2954,7 @@ const Sa = ({
|
|
|
2954
2954
|
]);
|
|
2955
2955
|
const Ee = K(() => {
|
|
2956
2956
|
f && de(me);
|
|
2957
|
-
}, [f, de, me]), Fe = (B == null ? void 0 : B.autoSelectFirst) ??
|
|
2957
|
+
}, [f, de, me]), Fe = (B == null ? void 0 : B.autoSelectFirst) ?? w, Le = y(() => {
|
|
2958
2958
|
if (Array.isArray(ee)) return ee.length === 0;
|
|
2959
2959
|
if (ee == null || ee === "") return !0;
|
|
2960
2960
|
if (W.labelInValue && ee && typeof ee == "object" && !Array.isArray(ee) && "value" in ee) {
|
|
@@ -3035,16 +3035,16 @@ const Sa = ({
|
|
|
3035
3035
|
defaultChecked: p,
|
|
3036
3036
|
...h
|
|
3037
3037
|
}) => {
|
|
3038
|
-
const
|
|
3038
|
+
const w = R((D) => D.addCommand), v = R((D) => D.setDataSet), u = y(
|
|
3039
3039
|
() => ye(e, i),
|
|
3040
3040
|
[e, i]
|
|
3041
|
-
),
|
|
3041
|
+
), d = R(
|
|
3042
3042
|
(D) => {
|
|
3043
3043
|
var T;
|
|
3044
3044
|
return e && t ? ((T = D.propsStore[`${e}_props`]) == null ? void 0 : T[t]) ?? null : null;
|
|
3045
3045
|
}
|
|
3046
3046
|
), l = R(
|
|
3047
|
-
(D) =>
|
|
3047
|
+
(D) => u && r ? D.getDataSet(u, r) : void 0
|
|
3048
3048
|
), { validate: S, help: b } = Qe({
|
|
3049
3049
|
rules: o,
|
|
3050
3050
|
dataSet: i,
|
|
@@ -3052,24 +3052,24 @@ const Sa = ({
|
|
|
3052
3052
|
sessionId: e,
|
|
3053
3053
|
id: t,
|
|
3054
3054
|
develop: n
|
|
3055
|
-
}), C = y(() => l !== void 0 ? !!l : (
|
|
3055
|
+
}), C = y(() => l !== void 0 ? !!l : (d == null ? void 0 : d.checked) !== void 0 ? d.checked : m ?? p, [l, d == null ? void 0 : d.checked, m, p]), A = K(
|
|
3056
3056
|
(D) => {
|
|
3057
3057
|
if (f) {
|
|
3058
3058
|
f(D);
|
|
3059
3059
|
return;
|
|
3060
3060
|
}
|
|
3061
|
-
if (
|
|
3061
|
+
if (u && r && v(u, r, D), s && S(D), c && e) {
|
|
3062
3062
|
const { actionName: T, arg: j } = je(c, D, {
|
|
3063
3063
|
id: t,
|
|
3064
3064
|
dataSet: i,
|
|
3065
3065
|
dataSetField: r
|
|
3066
3066
|
});
|
|
3067
|
-
|
|
3067
|
+
w(e, ae(T, j));
|
|
3068
3068
|
}
|
|
3069
3069
|
},
|
|
3070
3070
|
[
|
|
3071
3071
|
f,
|
|
3072
|
-
|
|
3072
|
+
u,
|
|
3073
3073
|
r,
|
|
3074
3074
|
v,
|
|
3075
3075
|
s,
|
|
@@ -3077,12 +3077,12 @@ const Sa = ({
|
|
|
3077
3077
|
c,
|
|
3078
3078
|
e,
|
|
3079
3079
|
t,
|
|
3080
|
-
|
|
3080
|
+
w
|
|
3081
3081
|
]
|
|
3082
|
-
),
|
|
3082
|
+
), x = K(() => {
|
|
3083
3083
|
a && S(C);
|
|
3084
3084
|
}, [a, S, C]);
|
|
3085
|
-
return /* @__PURE__ */ ve("div", { style: { display: "inline-block" }, onBlur:
|
|
3085
|
+
return /* @__PURE__ */ ve("div", { style: { display: "inline-block" }, onBlur: x, children: [
|
|
3086
3086
|
/* @__PURE__ */ g(
|
|
3087
3087
|
Ir,
|
|
3088
3088
|
{
|
|
@@ -3104,69 +3104,69 @@ var Or = { exports: {} };
|
|
|
3104
3104
|
(function(n, i) {
|
|
3105
3105
|
t.exports = i();
|
|
3106
3106
|
})(wa, function() {
|
|
3107
|
-
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, o = /\d\d/, a = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, c = {}, f = function(
|
|
3108
|
-
return (
|
|
3109
|
-
}, m = function(
|
|
3107
|
+
var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, i = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, o = /\d\d/, a = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, c = {}, f = function(d) {
|
|
3108
|
+
return (d = +d) + (d > 68 ? 1900 : 2e3);
|
|
3109
|
+
}, m = function(d) {
|
|
3110
3110
|
return function(l) {
|
|
3111
|
-
this[
|
|
3111
|
+
this[d] = +l;
|
|
3112
3112
|
};
|
|
3113
|
-
}, p = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
3113
|
+
}, p = [/[+-]\d\d:?(\d\d)?|Z/, function(d) {
|
|
3114
3114
|
(this.zone || (this.zone = {})).offset = function(l) {
|
|
3115
3115
|
if (!l || l === "Z") return 0;
|
|
3116
3116
|
var S = l.match(/([+-]|\d\d)/g), b = 60 * S[1] + (+S[2] || 0);
|
|
3117
3117
|
return b === 0 ? 0 : S[0] === "+" ? -b : b;
|
|
3118
|
-
}(
|
|
3119
|
-
}], h = function(
|
|
3120
|
-
var l = c[
|
|
3118
|
+
}(d);
|
|
3119
|
+
}], h = function(d) {
|
|
3120
|
+
var l = c[d];
|
|
3121
3121
|
return l && (l.indexOf ? l : l.s.concat(l.f));
|
|
3122
|
-
},
|
|
3122
|
+
}, w = function(d, l) {
|
|
3123
3123
|
var S, b = c.meridiem;
|
|
3124
3124
|
if (b) {
|
|
3125
|
-
for (var C = 1; C <= 24; C += 1) if (
|
|
3125
|
+
for (var C = 1; C <= 24; C += 1) if (d.indexOf(b(C, 0, l)) > -1) {
|
|
3126
3126
|
S = C > 12;
|
|
3127
3127
|
break;
|
|
3128
3128
|
}
|
|
3129
|
-
} else S =
|
|
3129
|
+
} else S = d === (l ? "pm" : "PM");
|
|
3130
3130
|
return S;
|
|
3131
|
-
}, v = { A: [s, function(
|
|
3132
|
-
this.afternoon =
|
|
3133
|
-
}], a: [s, function(
|
|
3134
|
-
this.afternoon =
|
|
3135
|
-
}], Q: [r, function(
|
|
3136
|
-
this.month = 3 * (
|
|
3137
|
-
}], S: [r, function(
|
|
3138
|
-
this.milliseconds = 100 * +
|
|
3139
|
-
}], SS: [o, function(
|
|
3140
|
-
this.milliseconds = 10 * +
|
|
3141
|
-
}], SSS: [/\d{3}/, function(
|
|
3142
|
-
this.milliseconds = +
|
|
3143
|
-
}], s: [a, m("seconds")], ss: [a, m("seconds")], m: [a, m("minutes")], mm: [a, m("minutes")], H: [a, m("hours")], h: [a, m("hours")], HH: [a, m("hours")], hh: [a, m("hours")], D: [a, m("day")], DD: [o, m("day")], Do: [s, function(
|
|
3144
|
-
var l = c.ordinal, S =
|
|
3145
|
-
if (this.day = S[0], l) for (var b = 1; b <= 31; b += 1) l(b).replace(/\[|\]/g, "") ===
|
|
3146
|
-
}], w: [a, m("week")], ww: [o, m("week")], M: [a, m("month")], MM: [o, m("month")], MMM: [s, function(
|
|
3131
|
+
}, v = { A: [s, function(d) {
|
|
3132
|
+
this.afternoon = w(d, !1);
|
|
3133
|
+
}], a: [s, function(d) {
|
|
3134
|
+
this.afternoon = w(d, !0);
|
|
3135
|
+
}], Q: [r, function(d) {
|
|
3136
|
+
this.month = 3 * (d - 1) + 1;
|
|
3137
|
+
}], S: [r, function(d) {
|
|
3138
|
+
this.milliseconds = 100 * +d;
|
|
3139
|
+
}], SS: [o, function(d) {
|
|
3140
|
+
this.milliseconds = 10 * +d;
|
|
3141
|
+
}], SSS: [/\d{3}/, function(d) {
|
|
3142
|
+
this.milliseconds = +d;
|
|
3143
|
+
}], s: [a, m("seconds")], ss: [a, m("seconds")], m: [a, m("minutes")], mm: [a, m("minutes")], H: [a, m("hours")], h: [a, m("hours")], HH: [a, m("hours")], hh: [a, m("hours")], D: [a, m("day")], DD: [o, m("day")], Do: [s, function(d) {
|
|
3144
|
+
var l = c.ordinal, S = d.match(/\d+/);
|
|
3145
|
+
if (this.day = S[0], l) for (var b = 1; b <= 31; b += 1) l(b).replace(/\[|\]/g, "") === d && (this.day = b);
|
|
3146
|
+
}], w: [a, m("week")], ww: [o, m("week")], M: [a, m("month")], MM: [o, m("month")], MMM: [s, function(d) {
|
|
3147
3147
|
var l = h("months"), S = (h("monthsShort") || l.map(function(b) {
|
|
3148
3148
|
return b.slice(0, 3);
|
|
3149
|
-
})).indexOf(
|
|
3149
|
+
})).indexOf(d) + 1;
|
|
3150
3150
|
if (S < 1) throw new Error();
|
|
3151
3151
|
this.month = S % 12 || S;
|
|
3152
|
-
}], MMMM: [s, function(
|
|
3153
|
-
var l = h("months").indexOf(
|
|
3152
|
+
}], MMMM: [s, function(d) {
|
|
3153
|
+
var l = h("months").indexOf(d) + 1;
|
|
3154
3154
|
if (l < 1) throw new Error();
|
|
3155
3155
|
this.month = l % 12 || l;
|
|
3156
|
-
}], Y: [/[+-]?\d+/, m("year")], YY: [o, function(
|
|
3157
|
-
this.year = f(
|
|
3156
|
+
}], Y: [/[+-]?\d+/, m("year")], YY: [o, function(d) {
|
|
3157
|
+
this.year = f(d);
|
|
3158
3158
|
}], YYYY: [/\d{4}/, m("year")], Z: p, ZZ: p };
|
|
3159
|
-
function d
|
|
3159
|
+
function u(d) {
|
|
3160
3160
|
var l, S;
|
|
3161
|
-
l =
|
|
3162
|
-
for (var b = (
|
|
3161
|
+
l = d, S = c && c.formats;
|
|
3162
|
+
for (var b = (d = l.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(k, N, M) {
|
|
3163
3163
|
var E = M && M.toUpperCase();
|
|
3164
3164
|
return N || S[M] || n[M] || S[E].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(_, z, L) {
|
|
3165
3165
|
return z || L.slice(1);
|
|
3166
3166
|
});
|
|
3167
3167
|
})).match(i), C = b.length, A = 0; A < C; A += 1) {
|
|
3168
|
-
var
|
|
3169
|
-
b[A] = j ? { regex: T, parser: j } :
|
|
3168
|
+
var x = b[A], D = v[x], T = D && D[0], j = D && D[1];
|
|
3169
|
+
b[A] = j ? { regex: T, parser: j } : x.replace(/^\[|\]$/g, "");
|
|
3170
3170
|
}
|
|
3171
3171
|
return function(k) {
|
|
3172
3172
|
for (var N = {}, M = 0, E = 0; M < C; M += 1) {
|
|
@@ -3186,11 +3186,11 @@ var Or = { exports: {} };
|
|
|
3186
3186
|
}(N), N;
|
|
3187
3187
|
};
|
|
3188
3188
|
}
|
|
3189
|
-
return function(
|
|
3190
|
-
S.p.customParseFormat = !0,
|
|
3189
|
+
return function(d, l, S) {
|
|
3190
|
+
S.p.customParseFormat = !0, d && d.parseTwoDigitYear && (f = d.parseTwoDigitYear);
|
|
3191
3191
|
var b = l.prototype, C = b.parse;
|
|
3192
3192
|
b.parse = function(A) {
|
|
3193
|
-
var
|
|
3193
|
+
var x = A.date, D = A.utc, T = A.args;
|
|
3194
3194
|
this.$u = D;
|
|
3195
3195
|
var j = T[1];
|
|
3196
3196
|
if (typeof j == "string") {
|
|
@@ -3198,14 +3198,14 @@ var Or = { exports: {} };
|
|
|
3198
3198
|
N && (E = T[2]), c = this.$locale(), !k && E && (c = S.Ls[E]), this.$d = function(V, $, Y, F) {
|
|
3199
3199
|
try {
|
|
3200
3200
|
if (["x", "X"].indexOf($) > -1) return new Date(($ === "X" ? 1e3 : 1) * V);
|
|
3201
|
-
var O =
|
|
3201
|
+
var O = u($)(V), B = O.year, q = O.month, P = O.day, G = O.hours, oe = O.minutes, pe = O.seconds, ne = O.milliseconds, ue = O.zone, de = O.week, fe = /* @__PURE__ */ new Date(), ee = P || (B || q ? 1 : fe.getDate()), W = B || fe.getFullYear(), te = 0;
|
|
3202
3202
|
B && !q || (te = q > 0 ? q - 1 : fe.getMonth());
|
|
3203
3203
|
var me, Q = G || 0, ie = oe || 0, we = pe || 0, Ee = ne || 0;
|
|
3204
3204
|
return ue ? new Date(Date.UTC(W, te, ee, Q, ie, we, Ee + 60 * ue.offset * 1e3)) : Y ? new Date(Date.UTC(W, te, ee, Q, ie, we, Ee)) : (me = new Date(W, te, ee, Q, ie, we, Ee), de && (me = F(me).week(de).toDate()), me);
|
|
3205
3205
|
} catch {
|
|
3206
3206
|
return /* @__PURE__ */ new Date("");
|
|
3207
3207
|
}
|
|
3208
|
-
}(
|
|
3208
|
+
}(x, j, D, S), this.init(), E && E !== !0 && (this.$L = this.locale(E).$L), M && x != this.format(j) && (this.$d = /* @__PURE__ */ new Date("")), c = {};
|
|
3209
3209
|
} else if (j instanceof Array) for (var _ = j.length, z = 1; z <= _; z += 1) {
|
|
3210
3210
|
T[1] = j[z - 1];
|
|
3211
3211
|
var L = S.apply(this, T);
|
|
@@ -3237,9 +3237,9 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3237
3237
|
onChange: m,
|
|
3238
3238
|
value: p,
|
|
3239
3239
|
defaultValue: h,
|
|
3240
|
-
...
|
|
3240
|
+
...w
|
|
3241
3241
|
}) => {
|
|
3242
|
-
const v = R((N) => N.addCommand),
|
|
3242
|
+
const v = R((N) => N.addCommand), u = R((N) => N.setDataSet), d = y(
|
|
3243
3243
|
() => ye(e, i),
|
|
3244
3244
|
[e, i]
|
|
3245
3245
|
), l = R(
|
|
@@ -3248,7 +3248,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3248
3248
|
return e && t ? ((M = N.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
|
|
3249
3249
|
}
|
|
3250
3250
|
), S = R(
|
|
3251
|
-
(N) =>
|
|
3251
|
+
(N) => d && r ? N.getDataSet(d, r) : void 0
|
|
3252
3252
|
), { validate: b, help: C } = Qe({
|
|
3253
3253
|
rules: s,
|
|
3254
3254
|
dataSet: i,
|
|
@@ -3257,14 +3257,14 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3257
3257
|
id: t,
|
|
3258
3258
|
develop: n
|
|
3259
3259
|
}), A = y(
|
|
3260
|
-
() => Ze(
|
|
3261
|
-
[
|
|
3262
|
-
),
|
|
3260
|
+
() => Ze(w, l ?? void 0),
|
|
3261
|
+
[w, l]
|
|
3262
|
+
), x = typeof A.format == "string" ? A.format : void 0, D = K(
|
|
3263
3263
|
(N) => {
|
|
3264
3264
|
if (N == null || N === "") return null;
|
|
3265
3265
|
if (Ue.isDayjs(N)) return N.isValid() ? N : null;
|
|
3266
3266
|
if (typeof N != "string") return null;
|
|
3267
|
-
const M = [a, Hn,
|
|
3267
|
+
const M = [a, Hn, x].filter(
|
|
3268
3268
|
(_) => !!_
|
|
3269
3269
|
);
|
|
3270
3270
|
for (const _ of M) {
|
|
@@ -3274,7 +3274,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3274
3274
|
const E = Ue(N);
|
|
3275
3275
|
return E.isValid() ? E : null;
|
|
3276
3276
|
},
|
|
3277
|
-
[a,
|
|
3277
|
+
[a, x]
|
|
3278
3278
|
), T = y(() => {
|
|
3279
3279
|
const N = S ?? (l == null ? void 0 : l.value) ?? p ?? h;
|
|
3280
3280
|
return D(N);
|
|
@@ -3285,7 +3285,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3285
3285
|
return;
|
|
3286
3286
|
}
|
|
3287
3287
|
const E = N != null && N.isValid() ? N.format(a) : "";
|
|
3288
|
-
if (
|
|
3288
|
+
if (d && r && u(d, r, E), f && b(E || null), o && e) {
|
|
3289
3289
|
const { actionName: _, arg: z } = je(o, E, {
|
|
3290
3290
|
id: t,
|
|
3291
3291
|
dataSet: i,
|
|
@@ -3296,9 +3296,9 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3296
3296
|
},
|
|
3297
3297
|
[
|
|
3298
3298
|
m,
|
|
3299
|
-
u,
|
|
3300
|
-
r,
|
|
3301
3299
|
d,
|
|
3300
|
+
r,
|
|
3301
|
+
u,
|
|
3302
3302
|
f,
|
|
3303
3303
|
b,
|
|
3304
3304
|
o,
|
|
@@ -3311,11 +3311,11 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3311
3311
|
]
|
|
3312
3312
|
);
|
|
3313
3313
|
$e(() => {
|
|
3314
|
-
if (h && T === null &&
|
|
3314
|
+
if (h && T === null && d && r) {
|
|
3315
3315
|
const N = Ue(h).format(a);
|
|
3316
|
-
d
|
|
3316
|
+
u(d, r, N);
|
|
3317
3317
|
}
|
|
3318
|
-
}, [h, T,
|
|
3318
|
+
}, [h, T, d, r, u, a]);
|
|
3319
3319
|
const k = K(() => {
|
|
3320
3320
|
if (c) {
|
|
3321
3321
|
const N = T ? T.format(a) : null;
|
|
@@ -3350,14 +3350,14 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3350
3350
|
rules: m,
|
|
3351
3351
|
validateOnChange: p,
|
|
3352
3352
|
validateOnBlur: h,
|
|
3353
|
-
...
|
|
3353
|
+
...w
|
|
3354
3354
|
}) => {
|
|
3355
|
-
const v = R((k) => k.addCommand),
|
|
3355
|
+
const v = R((k) => k.addCommand), u = R((k) => k.getDataSet), d = R((k) => k.setDataSet), l = y(
|
|
3356
3356
|
() => ye(e, i),
|
|
3357
3357
|
[e, i]
|
|
3358
3358
|
), S = y(() => {
|
|
3359
|
-
if (l && r) return
|
|
3360
|
-
}, [l, r,
|
|
3359
|
+
if (l && r) return u(l, r);
|
|
3360
|
+
}, [l, r, u]), { validate: b, help: C } = Qe({
|
|
3361
3361
|
rules: m,
|
|
3362
3362
|
dataSet: i,
|
|
3363
3363
|
dataSetField: r,
|
|
@@ -3372,30 +3372,30 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3372
3372
|
return N.isValid() ? N : null;
|
|
3373
3373
|
}
|
|
3374
3374
|
return null;
|
|
3375
|
-
}, [a]),
|
|
3375
|
+
}, [a]), x = y(() => A(S ?? c ?? f), [S, c, f, A]), D = K((k, N) => {
|
|
3376
3376
|
if (s) {
|
|
3377
3377
|
s(k, N);
|
|
3378
3378
|
return;
|
|
3379
3379
|
}
|
|
3380
3380
|
const M = N || "";
|
|
3381
|
-
if (l && r &&
|
|
3381
|
+
if (l && r && d(l, r, M), p && b(M), o && e) {
|
|
3382
3382
|
const { actionName: E, arg: _ } = je(o, M, { id: t, dataSet: i, dataSetField: r });
|
|
3383
3383
|
v(e, ae(E, _));
|
|
3384
3384
|
}
|
|
3385
|
-
}, [s, l, r,
|
|
3386
|
-
h && b(
|
|
3387
|
-
}, [h, b,
|
|
3385
|
+
}, [s, l, r, d, p, b, o, e, t, v]), T = K(() => {
|
|
3386
|
+
h && b(x ? x.format(a) : "");
|
|
3387
|
+
}, [h, b, x, a]), j = C ? "error" : void 0;
|
|
3388
3388
|
return /* @__PURE__ */ ve(Mt, { children: [
|
|
3389
3389
|
/* @__PURE__ */ g(
|
|
3390
3390
|
cr,
|
|
3391
3391
|
{
|
|
3392
|
-
...
|
|
3393
|
-
disabled: n ? !1 :
|
|
3392
|
+
...w,
|
|
3393
|
+
disabled: n ? !1 : w.disabled,
|
|
3394
3394
|
open: n ? !1 : void 0,
|
|
3395
|
-
value:
|
|
3395
|
+
value: x,
|
|
3396
3396
|
onChange: D,
|
|
3397
3397
|
onBlur: T,
|
|
3398
|
-
style: { width: "100%", ...
|
|
3398
|
+
style: { width: "100%", ...w.style },
|
|
3399
3399
|
status: j
|
|
3400
3400
|
}
|
|
3401
3401
|
),
|
|
@@ -3415,9 +3415,9 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3415
3415
|
onChange: m,
|
|
3416
3416
|
value: p,
|
|
3417
3417
|
defaultValue: h,
|
|
3418
|
-
...
|
|
3418
|
+
...w
|
|
3419
3419
|
}) => {
|
|
3420
|
-
const v = R((k) => k.addCommand),
|
|
3420
|
+
const v = R((k) => k.addCommand), u = R((k) => k.setDataSet), d = y(
|
|
3421
3421
|
() => ye(e, i),
|
|
3422
3422
|
[e, i]
|
|
3423
3423
|
), l = R(
|
|
@@ -3426,7 +3426,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3426
3426
|
return e && t ? ((N = k.propsStore[`${e}_props`]) == null ? void 0 : N[t]) ?? null : null;
|
|
3427
3427
|
}
|
|
3428
3428
|
), S = R(
|
|
3429
|
-
(k) =>
|
|
3429
|
+
(k) => d && r ? k.getDataSet(d, r) : void 0
|
|
3430
3430
|
), { validate: b, help: C } = Qe({
|
|
3431
3431
|
rules: s,
|
|
3432
3432
|
dataSet: i,
|
|
@@ -3438,19 +3438,19 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3438
3438
|
if (!k || !Array.isArray(k) || k.length !== 2) return null;
|
|
3439
3439
|
const [N, M] = k, E = Ue.isDayjs(N) ? N : Ue(N, a), _ = Ue.isDayjs(M) ? M : Ue(M, a);
|
|
3440
3440
|
return E.isValid() && _.isValid() ? [E, _] : null;
|
|
3441
|
-
}, [a]),
|
|
3441
|
+
}, [a]), x = y(() => {
|
|
3442
3442
|
const k = S ?? (l == null ? void 0 : l.value) ?? p ?? h;
|
|
3443
3443
|
return A(k);
|
|
3444
3444
|
}, [S, l == null ? void 0 : l.value, p, h, A]), D = y(
|
|
3445
|
-
() => Ze(
|
|
3446
|
-
[
|
|
3445
|
+
() => Ze(w, l ?? void 0),
|
|
3446
|
+
[w, l]
|
|
3447
3447
|
), T = K(
|
|
3448
3448
|
(k, N) => {
|
|
3449
3449
|
if (m) {
|
|
3450
3450
|
m(k, N);
|
|
3451
3451
|
return;
|
|
3452
3452
|
}
|
|
3453
|
-
if (
|
|
3453
|
+
if (d && r && u(d, r, N), f && b(N), o && e) {
|
|
3454
3454
|
const { actionName: M, arg: E } = je(o, N, {
|
|
3455
3455
|
id: t,
|
|
3456
3456
|
dataSet: i,
|
|
@@ -3459,11 +3459,11 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3459
3459
|
v(e, ae(M, E));
|
|
3460
3460
|
}
|
|
3461
3461
|
},
|
|
3462
|
-
[m,
|
|
3462
|
+
[m, d, r, u, f, b, o, e, t, v]
|
|
3463
3463
|
), j = K(() => {
|
|
3464
3464
|
var k, N;
|
|
3465
|
-
c && b(
|
|
3466
|
-
}, [c, b,
|
|
3465
|
+
c && b(x ? [(k = x[0]) == null ? void 0 : k.format(a), (N = x[1]) == null ? void 0 : N.format(a)] : null);
|
|
3466
|
+
}, [c, b, x, a]);
|
|
3467
3467
|
return /* @__PURE__ */ ve("div", { onBlur: j, children: [
|
|
3468
3468
|
/* @__PURE__ */ g(
|
|
3469
3469
|
Ca,
|
|
@@ -3471,7 +3471,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3471
3471
|
...D,
|
|
3472
3472
|
disabled: n ? !1 : D.disabled,
|
|
3473
3473
|
open: n ? !1 : void 0,
|
|
3474
|
-
value:
|
|
3474
|
+
value: x,
|
|
3475
3475
|
onChange: T,
|
|
3476
3476
|
style: { width: "100%", ...D.style }
|
|
3477
3477
|
}
|
|
@@ -3492,18 +3492,18 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3492
3492
|
rules: m,
|
|
3493
3493
|
validateOnBlur: p,
|
|
3494
3494
|
validateOnChange: h,
|
|
3495
|
-
onChange:
|
|
3495
|
+
onChange: w,
|
|
3496
3496
|
value: v,
|
|
3497
|
-
defaultValue:
|
|
3498
|
-
dictCode:
|
|
3497
|
+
defaultValue: u,
|
|
3498
|
+
dictCode: d,
|
|
3499
3499
|
index: l,
|
|
3500
3500
|
direction: S,
|
|
3501
3501
|
remoteUrl: b,
|
|
3502
3502
|
...C
|
|
3503
3503
|
}) => {
|
|
3504
|
-
const A = dt(i, r, e),
|
|
3505
|
-
() => ye(T,
|
|
3506
|
-
[T,
|
|
3504
|
+
const A = dt(i, r, e), x = A.dataSet, D = A.dataSetField, T = A.sessionId, j = R((ne) => ne.addCommand), k = R((ne) => ne.setDataSet), N = rt(Je), M = l ?? (N == null ? void 0 : N.index), E = N == null ? void 0 : N.parentIndex, _ = y(
|
|
3505
|
+
() => ye(T, x),
|
|
3506
|
+
[T, x]
|
|
3507
3507
|
), z = y(
|
|
3508
3508
|
() => T ? bt(t, N, l) : null,
|
|
3509
3509
|
[T, t, N == null ? void 0 : N.parentIndex, N == null ? void 0 : N.index, l]
|
|
@@ -3516,19 +3516,19 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3516
3516
|
(ne) => _ && D ? ne.getDataSet(_, D) : void 0
|
|
3517
3517
|
), { validate: $, help: Y } = Qe({
|
|
3518
3518
|
rules: m,
|
|
3519
|
-
dataSet:
|
|
3519
|
+
dataSet: x,
|
|
3520
3520
|
dataSetField: D,
|
|
3521
3521
|
sessionId: T,
|
|
3522
3522
|
id: t,
|
|
3523
3523
|
develop: n
|
|
3524
|
-
}), F = y(() => V !== void 0 ? V : (L == null ? void 0 : L.value) !== void 0 ? L.value : v ??
|
|
3524
|
+
}), F = y(() => V !== void 0 ? V : (L == null ? void 0 : L.value) !== void 0 ? L.value : v ?? u, [V, L == null ? void 0 : L.value, v, u]), { options: O } = Kt(d), { options: B } = Nn(
|
|
3525
3525
|
a == null ? void 0 : a.url,
|
|
3526
3526
|
{
|
|
3527
3527
|
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
3528
3528
|
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
3529
3529
|
immediate: !!(a != null && a.url)
|
|
3530
3530
|
}
|
|
3531
|
-
), q = y(() => L != null && L.options ? L.options : a != null && a.url && B.length > 0 ? B :
|
|
3531
|
+
), q = y(() => L != null && L.options ? L.options : a != null && a.url && B.length > 0 ? B : d && O.length > 0 ? O : o, [L == null ? void 0 : L.options, a == null ? void 0 : a.url, B, d, O, o]), P = y(() => {
|
|
3532
3532
|
if (q.length === 0) return F;
|
|
3533
3533
|
const ne = st(q, F);
|
|
3534
3534
|
return (ne == null ? void 0 : ne.value) ?? F;
|
|
@@ -3538,14 +3538,14 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3538
3538
|
), oe = K(
|
|
3539
3539
|
(ne) => {
|
|
3540
3540
|
const ue = ne.target.value;
|
|
3541
|
-
if (
|
|
3542
|
-
|
|
3541
|
+
if (w) {
|
|
3542
|
+
w(ue);
|
|
3543
3543
|
return;
|
|
3544
3544
|
}
|
|
3545
3545
|
if (_ && D && k(_, D, ue), h && $(ue), s && T) {
|
|
3546
3546
|
const { actionName: de, arg: fe } = je(s, ue, {
|
|
3547
3547
|
id: t,
|
|
3548
|
-
dataSet:
|
|
3548
|
+
dataSet: x,
|
|
3549
3549
|
dataSetField: D,
|
|
3550
3550
|
index: M,
|
|
3551
3551
|
parentIndex: E
|
|
@@ -3554,7 +3554,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3554
3554
|
}
|
|
3555
3555
|
},
|
|
3556
3556
|
[
|
|
3557
|
-
|
|
3557
|
+
w,
|
|
3558
3558
|
_,
|
|
3559
3559
|
D,
|
|
3560
3560
|
k,
|
|
@@ -3563,7 +3563,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3563
3563
|
s,
|
|
3564
3564
|
T,
|
|
3565
3565
|
t,
|
|
3566
|
-
|
|
3566
|
+
x,
|
|
3567
3567
|
D,
|
|
3568
3568
|
M,
|
|
3569
3569
|
E,
|
|
@@ -3608,17 +3608,17 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3608
3608
|
validateOnBlur: m,
|
|
3609
3609
|
validateOnChange: p,
|
|
3610
3610
|
onChange: h,
|
|
3611
|
-
onChangeMultiple:
|
|
3611
|
+
onChangeMultiple: w,
|
|
3612
3612
|
checked: v,
|
|
3613
|
-
values:
|
|
3614
|
-
defaultChecked:
|
|
3613
|
+
values: u,
|
|
3614
|
+
defaultChecked: d,
|
|
3615
3615
|
children: l,
|
|
3616
3616
|
dictCode: S,
|
|
3617
3617
|
index: b,
|
|
3618
3618
|
direction: C = "horizontal",
|
|
3619
3619
|
// 解构自定义属性防止传递到 DOM
|
|
3620
3620
|
remoteUrl: A,
|
|
3621
|
-
...
|
|
3621
|
+
...x
|
|
3622
3622
|
}) => {
|
|
3623
3623
|
const D = dt(i, r, e), T = D.dataSet, j = D.dataSetField, k = D.sessionId, N = R((W) => W.addCommand), M = R((W) => W.setDataSet), E = rt(Je), _ = b ?? (E == null ? void 0 : E.index), z = E == null ? void 0 : E.parentIndex, L = y(
|
|
3624
3624
|
() => ye(k, T),
|
|
@@ -3649,17 +3649,17 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3649
3649
|
}
|
|
3650
3650
|
), P = y(() => {
|
|
3651
3651
|
if (!s)
|
|
3652
|
-
return Y !== void 0 ? !!Y : ($ == null ? void 0 : $.checked) !== void 0 ? $.checked : v ??
|
|
3653
|
-
}, [s, Y, $ == null ? void 0 : $.checked, v,
|
|
3652
|
+
return Y !== void 0 ? !!Y : ($ == null ? void 0 : $.checked) !== void 0 ? $.checked : v ?? d;
|
|
3653
|
+
}, [s, Y, $ == null ? void 0 : $.checked, v, d]), G = y(() => $ != null && $.options ? $.options : a != null && a.url && q.length > 0 ? q : S && B.length > 0 ? B : o, [$ == null ? void 0 : $.options, a == null ? void 0 : a.url, q, S, B, o]), oe = y(() => {
|
|
3654
3654
|
if (!s) return [];
|
|
3655
3655
|
let W = [];
|
|
3656
|
-
return Array.isArray(Y) ? W = Y : Array.isArray($ == null ? void 0 : $.values) ? W = $.values : W =
|
|
3656
|
+
return Array.isArray(Y) ? W = Y : Array.isArray($ == null ? void 0 : $.values) ? W = $.values : W = u || [], G.length === 0 ? W : W.map((te) => {
|
|
3657
3657
|
var me;
|
|
3658
3658
|
return ((me = st(G, te)) == null ? void 0 : me.value) ?? te;
|
|
3659
3659
|
});
|
|
3660
|
-
}, [s, Y, $ == null ? void 0 : $.values,
|
|
3661
|
-
() => Ze(
|
|
3662
|
-
[
|
|
3660
|
+
}, [s, Y, $ == null ? void 0 : $.values, u, G]), pe = y(
|
|
3661
|
+
() => Ze(x, $ ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3662
|
+
[x, $]
|
|
3663
3663
|
), ue = (pe.direction ?? C) === "vertical" ? "vertical" : "horizontal", de = K((W) => {
|
|
3664
3664
|
const te = W.target.checked;
|
|
3665
3665
|
if (h) {
|
|
@@ -3689,8 +3689,8 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3689
3689
|
z,
|
|
3690
3690
|
T
|
|
3691
3691
|
]), fe = K((W) => {
|
|
3692
|
-
if (
|
|
3693
|
-
|
|
3692
|
+
if (w) {
|
|
3693
|
+
w(W);
|
|
3694
3694
|
return;
|
|
3695
3695
|
}
|
|
3696
3696
|
if (L && j && M(L, j, W), p && F(W), c && k) {
|
|
@@ -3702,7 +3702,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3702
3702
|
N(k, ae(te, Q));
|
|
3703
3703
|
}
|
|
3704
3704
|
}, [
|
|
3705
|
-
|
|
3705
|
+
w,
|
|
3706
3706
|
L,
|
|
3707
3707
|
j,
|
|
3708
3708
|
M,
|
|
@@ -3760,16 +3760,16 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3760
3760
|
defaultValue: p,
|
|
3761
3761
|
...h
|
|
3762
3762
|
}) => {
|
|
3763
|
-
const
|
|
3763
|
+
const w = R((T) => T.addCommand), v = R((T) => T.setDataSet), u = y(
|
|
3764
3764
|
() => ye(e, i),
|
|
3765
3765
|
[e, i]
|
|
3766
|
-
),
|
|
3766
|
+
), d = R(
|
|
3767
3767
|
(T) => {
|
|
3768
3768
|
var j;
|
|
3769
3769
|
return e && t ? ((j = T.propsStore[`${e}_props`]) == null ? void 0 : j[t]) ?? null : null;
|
|
3770
3770
|
}
|
|
3771
3771
|
), l = R(
|
|
3772
|
-
(T) =>
|
|
3772
|
+
(T) => u && r ? T.getDataSet(u, r) : void 0
|
|
3773
3773
|
), { validate: S, help: b } = Qe({
|
|
3774
3774
|
rules: a,
|
|
3775
3775
|
dataSet: i,
|
|
@@ -3777,29 +3777,29 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3777
3777
|
sessionId: e,
|
|
3778
3778
|
id: t,
|
|
3779
3779
|
develop: n
|
|
3780
|
-
}), C = y(() => l !== void 0 ? l : (
|
|
3780
|
+
}), C = y(() => l !== void 0 ? l : (d == null ? void 0 : d.value) !== void 0 ? d.value : m ?? p, [l, d == null ? void 0 : d.value, m, p]), A = K(
|
|
3781
3781
|
(T) => {
|
|
3782
3782
|
if (f) {
|
|
3783
3783
|
f(T);
|
|
3784
3784
|
return;
|
|
3785
3785
|
}
|
|
3786
|
-
if (
|
|
3786
|
+
if (u && r && v(u, r, T), c && S(T), o && e) {
|
|
3787
3787
|
const { actionName: j, arg: k } = je(o, T, {
|
|
3788
3788
|
id: t,
|
|
3789
3789
|
dataSet: i,
|
|
3790
3790
|
dataSetField: r
|
|
3791
3791
|
});
|
|
3792
|
-
|
|
3792
|
+
w(e, ae(j, k));
|
|
3793
3793
|
}
|
|
3794
3794
|
},
|
|
3795
|
-
[f,
|
|
3796
|
-
),
|
|
3795
|
+
[f, u, r, v, c, S, o, e, t, w]
|
|
3796
|
+
), x = K(() => {
|
|
3797
3797
|
s && S(C);
|
|
3798
3798
|
}, [s, S, C]), D = y(
|
|
3799
|
-
() => Ze(h,
|
|
3800
|
-
[h,
|
|
3799
|
+
() => Ze(h, d ?? void 0),
|
|
3800
|
+
[h, d]
|
|
3801
3801
|
);
|
|
3802
|
-
return /* @__PURE__ */ ve("div", { onBlur:
|
|
3802
|
+
return /* @__PURE__ */ ve("div", { onBlur: x, children: [
|
|
3803
3803
|
/* @__PURE__ */ g(
|
|
3804
3804
|
Gr,
|
|
3805
3805
|
{
|
|
@@ -3823,22 +3823,22 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3823
3823
|
defaultValue: c,
|
|
3824
3824
|
...f
|
|
3825
3825
|
}) => {
|
|
3826
|
-
const m = R((l) => l.addCommand), p = R((l) => l.getDataSet), h = R((l) => l.setDataSet),
|
|
3826
|
+
const m = R((l) => l.addCommand), p = R((l) => l.getDataSet), h = R((l) => l.setDataSet), w = y(
|
|
3827
3827
|
() => ye(e, i),
|
|
3828
3828
|
[e, i]
|
|
3829
3829
|
), v = y(() => {
|
|
3830
|
-
if (
|
|
3831
|
-
}, [
|
|
3830
|
+
if (w && r) return p(w, r);
|
|
3831
|
+
}, [w, r, p]), u = y(() => v ?? s ?? c, [v, s, c]), d = K((l) => {
|
|
3832
3832
|
if (a) {
|
|
3833
3833
|
a(l);
|
|
3834
3834
|
return;
|
|
3835
3835
|
}
|
|
3836
|
-
if (
|
|
3836
|
+
if (w && r && h(w, r, l), o && e) {
|
|
3837
3837
|
const { actionName: S, arg: b } = je(o, l, { id: t, dataSet: i, dataSetField: r });
|
|
3838
3838
|
m(e, ae(S, b));
|
|
3839
3839
|
}
|
|
3840
|
-
}, [a,
|
|
3841
|
-
return /* @__PURE__ */ g(Jr, { ...f, disabled: n ? !1 : f.disabled, value:
|
|
3840
|
+
}, [a, w, r, h, o, e, t, m]);
|
|
3841
|
+
return /* @__PURE__ */ g(Jr, { ...f, disabled: n ? !1 : f.disabled, value: u, onChange: d });
|
|
3842
3842
|
}, Na = 200, Rr = (t, e, n = 1) => {
|
|
3843
3843
|
if (!Array.isArray(t)) return [];
|
|
3844
3844
|
const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = e;
|
|
@@ -3877,11 +3877,11 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3877
3877
|
onChange: m,
|
|
3878
3878
|
options: p,
|
|
3879
3879
|
defaultValue: h,
|
|
3880
|
-
value:
|
|
3880
|
+
value: w,
|
|
3881
3881
|
remoteUrl: v,
|
|
3882
|
-
...
|
|
3882
|
+
...u
|
|
3883
3883
|
}) => {
|
|
3884
|
-
const
|
|
3884
|
+
const d = R((V) => V.addCommand), l = R((V) => V.setDataSet), S = Ke(null), [b, C] = Ce([]), [A, x] = Ce(!1), D = y(
|
|
3885
3885
|
() => ye(e, i),
|
|
3886
3886
|
[e, i]
|
|
3887
3887
|
), T = R(
|
|
@@ -3894,13 +3894,13 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3894
3894
|
id: t,
|
|
3895
3895
|
develop: n
|
|
3896
3896
|
}), M = y(() => (o == null ? void 0 : o.url) && b.length > 0, [o == null ? void 0 : o.url, b.length]), E = y(() => {
|
|
3897
|
-
let V = T ??
|
|
3897
|
+
let V = T ?? w ?? h ?? [];
|
|
3898
3898
|
return typeof V == "string" ? M ? Un(V).map((Y) => Ta(Y, b)).filter((Y) => Array.isArray(Y) && Y.length > 0) : [V] : In(V) && M ? V.map((Y) => Un(Y)).filter((Y) => Array.isArray(Y) && Y.length > 0) : Gn(V) && M ? V.filter(($) => Array.isArray($) && $.length > 0) : V;
|
|
3899
|
-
}, [T,
|
|
3899
|
+
}, [T, w, h, M, b]), _ = y(() => o != null && o.url && b.length > 0 ? b : p || [], [o == null ? void 0 : o.url, b, p]);
|
|
3900
3900
|
$e(() => {
|
|
3901
3901
|
(async () => {
|
|
3902
3902
|
if (o != null && o.url) {
|
|
3903
|
-
|
|
3903
|
+
x(!0);
|
|
3904
3904
|
try {
|
|
3905
3905
|
const $ = await vt({ url: o.url, method: "GET" }), Y = Array.isArray($) ? $ : $ != null && $.data ? Array.isArray($.data) ? $.data : $.data.list || $.data.records || [] : [], F = o.codeKey || "value", O = o.labelKey || "label", B = o.childrenKey || "children", q = o.maxLevel || 5, P = Rr(Y, {
|
|
3906
3906
|
codeKey: F,
|
|
@@ -3912,7 +3912,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3912
3912
|
} catch ($) {
|
|
3913
3913
|
console.error("Failed to load remote options:", $), C([]);
|
|
3914
3914
|
} finally {
|
|
3915
|
-
|
|
3915
|
+
x(!1);
|
|
3916
3916
|
}
|
|
3917
3917
|
}
|
|
3918
3918
|
})();
|
|
@@ -3932,7 +3932,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3932
3932
|
dataSet: i,
|
|
3933
3933
|
dataSetField: r
|
|
3934
3934
|
});
|
|
3935
|
-
|
|
3935
|
+
d(e, ae(F, O));
|
|
3936
3936
|
}
|
|
3937
3937
|
},
|
|
3938
3938
|
[
|
|
@@ -3945,7 +3945,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3945
3945
|
f,
|
|
3946
3946
|
e,
|
|
3947
3947
|
t,
|
|
3948
|
-
|
|
3948
|
+
d,
|
|
3949
3949
|
M
|
|
3950
3950
|
]
|
|
3951
3951
|
), L = K(() => {
|
|
@@ -3960,8 +3960,8 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3960
3960
|
/* @__PURE__ */ g(
|
|
3961
3961
|
Qr,
|
|
3962
3962
|
{
|
|
3963
|
-
...
|
|
3964
|
-
disabled: n ? !1 :
|
|
3963
|
+
...u,
|
|
3964
|
+
disabled: n ? !1 : u.disabled,
|
|
3965
3965
|
open: n ? !1 : void 0,
|
|
3966
3966
|
value: E,
|
|
3967
3967
|
options: _,
|
|
@@ -3969,7 +3969,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3969
3969
|
onBlur: L,
|
|
3970
3970
|
loading: A,
|
|
3971
3971
|
status: N,
|
|
3972
|
-
style: { width: "100%", ...
|
|
3972
|
+
style: { width: "100%", ...u.style }
|
|
3973
3973
|
}
|
|
3974
3974
|
),
|
|
3975
3975
|
k && /* @__PURE__ */ g("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
@@ -3988,17 +3988,17 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
3988
3988
|
remoteUrl: m,
|
|
3989
3989
|
selectAction: p,
|
|
3990
3990
|
styles: h,
|
|
3991
|
-
classNames:
|
|
3991
|
+
classNames: w,
|
|
3992
3992
|
token: v,
|
|
3993
|
-
rules:
|
|
3994
|
-
validateOnChange:
|
|
3993
|
+
rules: u,
|
|
3994
|
+
validateOnChange: d,
|
|
3995
3995
|
validateOnBlur: l,
|
|
3996
3996
|
...S
|
|
3997
3997
|
}) => {
|
|
3998
3998
|
const b = R(($) => $.addCommand), C = R(($) => $.setDataSet), A = y(
|
|
3999
3999
|
() => ye(e, i),
|
|
4000
4000
|
[e, i]
|
|
4001
|
-
),
|
|
4001
|
+
), x = R(
|
|
4002
4002
|
($) => {
|
|
4003
4003
|
var Y;
|
|
4004
4004
|
return e && t ? ((Y = $.propsStore[`${e}_props`]) == null ? void 0 : Y[t]) ?? null : null;
|
|
@@ -4006,25 +4006,25 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4006
4006
|
), D = R(
|
|
4007
4007
|
($) => A && r ? $.getDataSet(A, r) : void 0
|
|
4008
4008
|
), { validate: T, help: j } = Qe({
|
|
4009
|
-
rules:
|
|
4009
|
+
rules: u,
|
|
4010
4010
|
dataSet: i,
|
|
4011
4011
|
dataSetField: r,
|
|
4012
4012
|
sessionId: e,
|
|
4013
4013
|
id: t,
|
|
4014
4014
|
develop: n
|
|
4015
4015
|
}), k = y(
|
|
4016
|
-
() => D ?? (
|
|
4017
|
-
[D,
|
|
4016
|
+
() => D ?? (x == null ? void 0 : x.value) ?? s ?? c,
|
|
4017
|
+
[D, x == null ? void 0 : x.value, s, c]
|
|
4018
4018
|
), N = y(
|
|
4019
|
-
() => Ze(S,
|
|
4020
|
-
[S,
|
|
4019
|
+
() => Ze(S, x ?? void 0),
|
|
4020
|
+
[S, x]
|
|
4021
4021
|
), M = K(
|
|
4022
4022
|
($, Y, F) => {
|
|
4023
4023
|
if (a) {
|
|
4024
4024
|
a($, Y, F);
|
|
4025
4025
|
return;
|
|
4026
4026
|
}
|
|
4027
|
-
if (A && r && C(A, r, $),
|
|
4027
|
+
if (A && r && C(A, r, $), d && T($), o && e) {
|
|
4028
4028
|
const { actionName: O, arg: B } = je(o, $, {
|
|
4029
4029
|
id: t,
|
|
4030
4030
|
dataSet: i,
|
|
@@ -4033,7 +4033,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4033
4033
|
b(e, ae(O, B));
|
|
4034
4034
|
}
|
|
4035
4035
|
},
|
|
4036
|
-
[a, A, r, C,
|
|
4036
|
+
[a, A, r, C, d, T, o, e, t, b]
|
|
4037
4037
|
), E = K(() => {
|
|
4038
4038
|
l && T(k);
|
|
4039
4039
|
}, [l, T, k]), _ = y(() => {
|
|
@@ -4061,7 +4061,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4061
4061
|
onChange: M,
|
|
4062
4062
|
style: { width: "100%", ...N.style },
|
|
4063
4063
|
styles: h,
|
|
4064
|
-
classNames:
|
|
4064
|
+
classNames: w,
|
|
4065
4065
|
status: L
|
|
4066
4066
|
}
|
|
4067
4067
|
),
|
|
@@ -4082,20 +4082,20 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4082
4082
|
onChange: m,
|
|
4083
4083
|
fileList: p,
|
|
4084
4084
|
children: h,
|
|
4085
|
-
uploadUrl:
|
|
4085
|
+
uploadUrl: w,
|
|
4086
4086
|
maxSize: v = 10,
|
|
4087
|
-
uploadParams:
|
|
4088
|
-
listDisplayText:
|
|
4087
|
+
uploadParams: u,
|
|
4088
|
+
listDisplayText: d,
|
|
4089
4089
|
action: l,
|
|
4090
4090
|
...S
|
|
4091
4091
|
}) => {
|
|
4092
|
-
const b = dt(i, r, e), C = b.dataSet, A = b.dataSetField,
|
|
4093
|
-
() => ye(
|
|
4094
|
-
[
|
|
4092
|
+
const b = dt(i, r, e), C = b.dataSet, A = b.dataSetField, x = b.sessionId, D = R((U) => U.addCommand), T = R((U) => U.setDataSet), j = y(
|
|
4093
|
+
() => ye(x, C),
|
|
4094
|
+
[x, C]
|
|
4095
4095
|
), k = R(
|
|
4096
4096
|
(U) => {
|
|
4097
4097
|
var X;
|
|
4098
|
-
return
|
|
4098
|
+
return x && t ? ((X = U.propsStore[`${x}_props`]) == null ? void 0 : X[t]) ?? null : null;
|
|
4099
4099
|
}
|
|
4100
4100
|
), N = R(
|
|
4101
4101
|
(U) => j && A ? U.getDataSet(j, A) : void 0
|
|
@@ -4103,7 +4103,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4103
4103
|
rules: s,
|
|
4104
4104
|
dataSet: C,
|
|
4105
4105
|
dataSetField: A,
|
|
4106
|
-
sessionId:
|
|
4106
|
+
sessionId: x,
|
|
4107
4107
|
id: t,
|
|
4108
4108
|
develop: n
|
|
4109
4109
|
}), _ = K((U) => U.map((X) => {
|
|
@@ -4165,12 +4165,12 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4165
4165
|
try {
|
|
4166
4166
|
J == null || J({ percent: 30 });
|
|
4167
4167
|
const Se = await Dn(X, {
|
|
4168
|
-
url:
|
|
4168
|
+
url: w,
|
|
4169
4169
|
headers: {
|
|
4170
4170
|
Authorization: Xt() ? `Bearer ${Xt()}` : ""
|
|
4171
4171
|
},
|
|
4172
|
-
form:
|
|
4173
|
-
query:
|
|
4172
|
+
form: u == null ? void 0 : u.form,
|
|
4173
|
+
query: u == null ? void 0 : u.query
|
|
4174
4174
|
});
|
|
4175
4175
|
J == null || J({ percent: 100 }), be == null || be(Se, X);
|
|
4176
4176
|
} catch (Se) {
|
|
@@ -4178,7 +4178,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4178
4178
|
}
|
|
4179
4179
|
else
|
|
4180
4180
|
ce == null || ce(new Error("Upload handler not configured")), ht.warning("上传功能未配置");
|
|
4181
|
-
}, [
|
|
4181
|
+
}, [w, u]), ee = K(
|
|
4182
4182
|
(U) => {
|
|
4183
4183
|
if (m) {
|
|
4184
4184
|
m(U);
|
|
@@ -4188,8 +4188,8 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4188
4188
|
const be = Array.isArray(X) && X.some((he) => (he == null ? void 0 : he.status) === "uploading");
|
|
4189
4189
|
P && typeof q == "number" && Array.isArray(X) && X.length > q && !be && (X = L([...X.slice(0, q - 1), X[X.length - 1]]));
|
|
4190
4190
|
const ce = Array.isArray(X) ? _(X) : [];
|
|
4191
|
-
j && A && (ce.length > 0 || !Array.isArray(X) || X.length === 0) ? (T(j, A, ce), $(null)) : be ? $(X) : X.length === 0 && $(null), f && M(X), o &&
|
|
4192
|
-
|
|
4191
|
+
j && A && (ce.length > 0 || !Array.isArray(X) || X.length === 0) ? (T(j, A, ce), $(null)) : be ? $(X) : X.length === 0 && $(null), f && M(X), o && x && D(
|
|
4192
|
+
x,
|
|
4193
4193
|
ae(o, {
|
|
4194
4194
|
file: U.file,
|
|
4195
4195
|
fileList: X,
|
|
@@ -4205,7 +4205,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4205
4205
|
f,
|
|
4206
4206
|
M,
|
|
4207
4207
|
o,
|
|
4208
|
-
|
|
4208
|
+
x,
|
|
4209
4209
|
D,
|
|
4210
4210
|
L,
|
|
4211
4211
|
_,
|
|
@@ -4237,7 +4237,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4237
4237
|
const be = F.filter((he) => me(he)), ce = be.map((he) => te(he)).filter(Boolean), J = be.findIndex((he) => (he.uid || he.url) === (U.uid || U.url));
|
|
4238
4238
|
ie({ url: X, name: U.name, urls: ce, current: J >= 0 ? J : 0, open: !0 });
|
|
4239
4239
|
} else me(U) || window.open(X, "_blank");
|
|
4240
|
-
}, [te, me, F]), Fe = !!tt().upload && !l, Le = B.buttonText ?? a, Re = B.listType ?? S.listType, xe = String((k == null ? void 0 : k.listDisplayText) ??
|
|
4240
|
+
}, [te, me, F]), Fe = !!tt().upload && !l, Le = B.buttonText ?? a, Re = B.listType ?? S.listType, xe = String((k == null ? void 0 : k.listDisplayText) ?? d ?? "").trim(), He = y(() => {
|
|
4241
4241
|
const U = B.showUploadList;
|
|
4242
4242
|
return Re !== "text" || U === !1 || !xe || !(F != null && F.length) ? F : F.map((X) => ({ ...X, name: xe }));
|
|
4243
4243
|
}, [F, Re, B.showUploadList, xe]), Z = (F == null ? void 0 : F.length) ?? 0, re = typeof q == "number" && Z >= q, le = K(
|
|
@@ -4254,7 +4254,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4254
4254
|
onPreview: we,
|
|
4255
4255
|
beforeUpload: le,
|
|
4256
4256
|
customRequest: Fe ? fe : void 0,
|
|
4257
|
-
action: Fe ? void 0 : l ||
|
|
4257
|
+
action: Fe ? void 0 : l || w,
|
|
4258
4258
|
openFileDialogOnClick: !n,
|
|
4259
4259
|
children: H && (h || (Re === "picture-card" || Re === "picture-circle" ? /* @__PURE__ */ ve(
|
|
4260
4260
|
"button",
|
|
@@ -4320,17 +4320,17 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4320
4320
|
options: p,
|
|
4321
4321
|
// 解构自定义属性,防止传递到 DOM
|
|
4322
4322
|
remoteUrl: h,
|
|
4323
|
-
remoteOptions:
|
|
4323
|
+
remoteOptions: w,
|
|
4324
4324
|
searchAction: v,
|
|
4325
|
-
...
|
|
4325
|
+
...u
|
|
4326
4326
|
}) => {
|
|
4327
|
-
const
|
|
4327
|
+
const d = R((_) => _.addCommand), l = R((_) => _.getDataSet), S = R((_) => _.setDataSet), b = y(
|
|
4328
4328
|
() => ye(e, i),
|
|
4329
4329
|
[e, i]
|
|
4330
|
-
), [C, A] = Ce(p || []), [,
|
|
4330
|
+
), [C, A] = Ce(p || []), [, x] = Ce(!1), D = Ge.useRef(void 0), { get: T } = Lo(), j = y(() => {
|
|
4331
4331
|
if (b && r) return l(b, r);
|
|
4332
4332
|
}, [b, r, l]), k = y(() => j ?? f ?? m, [j, f, m]), N = K((_) => {
|
|
4333
|
-
if (!(
|
|
4333
|
+
if (!(w != null && w.queryApi)) {
|
|
4334
4334
|
p && A(
|
|
4335
4335
|
p.filter(
|
|
4336
4336
|
(z) => {
|
|
@@ -4342,10 +4342,10 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4342
4342
|
return;
|
|
4343
4343
|
}
|
|
4344
4344
|
D.current && clearTimeout(D.current), D.current = setTimeout(async () => {
|
|
4345
|
-
if (
|
|
4346
|
-
|
|
4345
|
+
if (w != null && w.queryApi) {
|
|
4346
|
+
x(!0);
|
|
4347
4347
|
try {
|
|
4348
|
-
const { queryApi: z, keyWordParamName: L = "keyword", valueKey: V = "value", labelKey: $ = "label", fixedParams: Y = [] } =
|
|
4348
|
+
const { queryApi: z, keyWordParamName: L = "keyword", valueKey: V = "value", labelKey: $ = "label", fixedParams: Y = [] } = w, F = {};
|
|
4349
4349
|
L && (F[L] = _), Array.isArray(Y) && Y.forEach((P) => {
|
|
4350
4350
|
P.key && (F[P.key] = P.value);
|
|
4351
4351
|
});
|
|
@@ -4361,14 +4361,14 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4361
4361
|
} catch (z) {
|
|
4362
4362
|
console.error("Failed to fetch remote options:", z), A([]);
|
|
4363
4363
|
} finally {
|
|
4364
|
-
|
|
4364
|
+
x(!1);
|
|
4365
4365
|
}
|
|
4366
4366
|
}
|
|
4367
4367
|
}, 500);
|
|
4368
|
-
}, [
|
|
4368
|
+
}, [w, p, T]);
|
|
4369
4369
|
Ge.useEffect(() => {
|
|
4370
|
-
!(
|
|
4371
|
-
}, [p,
|
|
4370
|
+
!(w != null && w.queryApi) && p && A(p);
|
|
4371
|
+
}, [p, w == null ? void 0 : w.queryApi]);
|
|
4372
4372
|
const M = K((_) => {
|
|
4373
4373
|
if (s) {
|
|
4374
4374
|
s(_);
|
|
@@ -4376,27 +4376,27 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4376
4376
|
}
|
|
4377
4377
|
if (b && r && S(b, r, _), o && e) {
|
|
4378
4378
|
const { actionName: z, arg: L } = je(o, _, { id: t, dataSet: i, dataSetField: r });
|
|
4379
|
-
|
|
4379
|
+
d(e, ae(z, L));
|
|
4380
4380
|
}
|
|
4381
|
-
}, [s, b, r, S, o, e, t,
|
|
4381
|
+
}, [s, b, r, S, o, e, t, d]), E = K((_, z) => {
|
|
4382
4382
|
if (c) {
|
|
4383
4383
|
c(_, z);
|
|
4384
4384
|
return;
|
|
4385
4385
|
}
|
|
4386
|
-
a && e &&
|
|
4387
|
-
}, [c, a, e,
|
|
4386
|
+
a && e && d(e, ae(a, { value: _, option: z }));
|
|
4387
|
+
}, [c, a, e, d]);
|
|
4388
4388
|
return /* @__PURE__ */ g(
|
|
4389
4389
|
Xr,
|
|
4390
4390
|
{
|
|
4391
|
-
...
|
|
4392
|
-
disabled: n ? !1 :
|
|
4391
|
+
...u,
|
|
4392
|
+
disabled: n ? !1 : u.disabled,
|
|
4393
4393
|
open: n ? !1 : void 0,
|
|
4394
4394
|
options: C,
|
|
4395
4395
|
value: k,
|
|
4396
4396
|
onChange: M,
|
|
4397
4397
|
onSelect: E,
|
|
4398
4398
|
onSearch: N,
|
|
4399
|
-
style: { width: "100%", ...
|
|
4399
|
+
style: { width: "100%", ...u.style }
|
|
4400
4400
|
}
|
|
4401
4401
|
);
|
|
4402
4402
|
}, Wc = ({
|
|
@@ -4413,10 +4413,10 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4413
4413
|
resetText: m = "重置",
|
|
4414
4414
|
onFinish: p,
|
|
4415
4415
|
onReset: h,
|
|
4416
|
-
children:
|
|
4416
|
+
children: w,
|
|
4417
4417
|
...v
|
|
4418
4418
|
}) => {
|
|
4419
|
-
const [
|
|
4419
|
+
const [u] = Gt.useForm(), d = R((A) => A.addCommand), l = R((A) => A.setDataSet), S = y(
|
|
4420
4420
|
() => ye(e, i),
|
|
4421
4421
|
[e, i]
|
|
4422
4422
|
), b = (A) => {
|
|
@@ -4424,16 +4424,16 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4424
4424
|
p(A);
|
|
4425
4425
|
return;
|
|
4426
4426
|
}
|
|
4427
|
-
S && r && l(S, r, A), o && e &&
|
|
4427
|
+
S && r && l(S, r, A), o && e && d(e, ae(o, A));
|
|
4428
4428
|
}, C = () => {
|
|
4429
|
-
if (
|
|
4429
|
+
if (u.resetFields(), h) {
|
|
4430
4430
|
h();
|
|
4431
4431
|
return;
|
|
4432
4432
|
}
|
|
4433
|
-
a && e &&
|
|
4433
|
+
a && e && d(e, ae(a, null));
|
|
4434
4434
|
};
|
|
4435
|
-
return /* @__PURE__ */ ve(Gt, { ...v, form:
|
|
4436
|
-
|
|
4435
|
+
return /* @__PURE__ */ ve(Gt, { ...v, form: u, onFinish: b, children: [
|
|
4436
|
+
w,
|
|
4437
4437
|
(s || c) && /* @__PURE__ */ g(Gt.Item, { children: /* @__PURE__ */ ve(Oe, { children: [
|
|
4438
4438
|
s && /* @__PURE__ */ g(ct, { type: "primary", htmlType: "submit", children: f }),
|
|
4439
4439
|
c && /* @__PURE__ */ g(ct, { onClick: C, children: m })
|
|
@@ -4468,16 +4468,16 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4468
4468
|
showSelectAll: m,
|
|
4469
4469
|
oneWay: p,
|
|
4470
4470
|
pagination: h,
|
|
4471
|
-
status:
|
|
4471
|
+
status: w,
|
|
4472
4472
|
titles: v,
|
|
4473
|
-
actions:
|
|
4474
|
-
locale:
|
|
4473
|
+
actions: u,
|
|
4474
|
+
locale: d,
|
|
4475
4475
|
changeAction: l,
|
|
4476
4476
|
selectChangeAction: S,
|
|
4477
4477
|
searchAction: b,
|
|
4478
4478
|
scrollAction: C,
|
|
4479
4479
|
onChange: A,
|
|
4480
|
-
onSelectChange:
|
|
4480
|
+
onSelectChange: x,
|
|
4481
4481
|
onSearch: D,
|
|
4482
4482
|
onScroll: T,
|
|
4483
4483
|
styles: j,
|
|
@@ -4487,7 +4487,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4487
4487
|
const M = R((ee) => ee.addCommand), E = R((ee) => ee.getDataSet), _ = R((ee) => ee.setDataSet), z = y(
|
|
4488
4488
|
() => ye(e, i),
|
|
4489
4489
|
[e, i]
|
|
4490
|
-
), L = y(() => it(j, {}), [j]), V = y(() => it(k, {}), [k]), $ = y(() => it(v, ["源列表", "目标列表"]), [v]), Y = y(() => it(
|
|
4490
|
+
), L = y(() => it(j, {}), [j]), V = y(() => it(k, {}), [k]), $ = y(() => it(v, ["源列表", "目标列表"]), [v]), Y = y(() => it(u, [">", "<"]), [u]), F = y(() => it(d, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [d]), O = y(() => it(h, !1), [h]), B = y(() => {
|
|
4491
4491
|
if (z && r) {
|
|
4492
4492
|
const ee = E(z, r);
|
|
4493
4493
|
if (Array.isArray(ee)) return ee;
|
|
@@ -4504,12 +4504,12 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4504
4504
|
}
|
|
4505
4505
|
z && r && _(z, r, ee), l && e && M(e, ae(l, { targetKeys: ee, direction: W, moveKeys: te }));
|
|
4506
4506
|
}, [A, z, r, _, l, e, M]), ne = K((ee, W) => {
|
|
4507
|
-
if (
|
|
4508
|
-
|
|
4507
|
+
if (x) {
|
|
4508
|
+
x(ee, W);
|
|
4509
4509
|
return;
|
|
4510
4510
|
}
|
|
4511
4511
|
S && e && M(e, ae(S, { sourceSelectedKeys: ee, targetSelectedKeys: W }));
|
|
4512
|
-
}, [
|
|
4512
|
+
}, [x, S, e, M]), ue = K((ee, W) => {
|
|
4513
4513
|
if (D) {
|
|
4514
4514
|
D(ee, W);
|
|
4515
4515
|
return;
|
|
@@ -4532,7 +4532,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4532
4532
|
showSelectAll: m,
|
|
4533
4533
|
oneWay: p,
|
|
4534
4534
|
pagination: O,
|
|
4535
|
-
status:
|
|
4535
|
+
status: w || void 0,
|
|
4536
4536
|
titles: $,
|
|
4537
4537
|
actions: Y,
|
|
4538
4538
|
locale: F,
|
|
@@ -4581,17 +4581,17 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4581
4581
|
size: m,
|
|
4582
4582
|
vertical: p,
|
|
4583
4583
|
shape: h,
|
|
4584
|
-
changeAction:
|
|
4584
|
+
changeAction: w,
|
|
4585
4585
|
onChange: v,
|
|
4586
4586
|
// 样式
|
|
4587
|
-
styles:
|
|
4588
|
-
token:
|
|
4587
|
+
styles: u,
|
|
4588
|
+
token: d,
|
|
4589
4589
|
...l
|
|
4590
4590
|
}) => {
|
|
4591
4591
|
const S = R((E) => E.addCommand), b = R((E) => E.getDataSet), C = R((E) => E.setDataSet), A = y(
|
|
4592
4592
|
() => ye(e, i),
|
|
4593
4593
|
[e, i]
|
|
4594
|
-
),
|
|
4594
|
+
), x = y(() => wn(u, {}), [u]), D = y(() => wn(d, {}), [d]), T = y(() => Ma(o), [o]), k = y(() => {
|
|
4595
4595
|
if (A && r) {
|
|
4596
4596
|
const E = b(A, r);
|
|
4597
4597
|
if (typeof E == "string") return E;
|
|
@@ -4602,8 +4602,8 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4602
4602
|
v(_);
|
|
4603
4603
|
return;
|
|
4604
4604
|
}
|
|
4605
|
-
A && r && C(A, r, _),
|
|
4606
|
-
}, [v, A, r, C,
|
|
4605
|
+
A && r && C(A, r, _), w && e && S(e, ae(w, { value: _ }));
|
|
4606
|
+
}, [v, A, r, C, w, e, S]), M = /* @__PURE__ */ g(
|
|
4607
4607
|
ti,
|
|
4608
4608
|
{
|
|
4609
4609
|
...l,
|
|
@@ -4616,7 +4616,7 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4616
4616
|
vertical: p,
|
|
4617
4617
|
shape: h,
|
|
4618
4618
|
onChange: N,
|
|
4619
|
-
styles:
|
|
4619
|
+
styles: x
|
|
4620
4620
|
}
|
|
4621
4621
|
);
|
|
4622
4622
|
return D && Object.keys(D).length > 0 ? /* @__PURE__ */ g(Ie, { theme: { components: { Segmented: D } }, children: M }) : M;
|
|
@@ -4631,27 +4631,27 @@ const Hn = "YYYY-MM-DD", Oc = ({
|
|
|
4631
4631
|
a.current && cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => {
|
|
4632
4632
|
const h = s.clientHeight;
|
|
4633
4633
|
if (h === 0) return;
|
|
4634
|
-
let
|
|
4634
|
+
let w = 0;
|
|
4635
4635
|
const v = s.querySelector('[data-table-slot="title"]');
|
|
4636
|
-
v && (
|
|
4637
|
-
const
|
|
4638
|
-
|
|
4639
|
-
const
|
|
4640
|
-
|
|
4636
|
+
v && (w += v.offsetHeight);
|
|
4637
|
+
const u = s.querySelector('[data-table-slot="footer"]');
|
|
4638
|
+
u && (w += u.offsetHeight);
|
|
4639
|
+
const d = s.querySelector(".ant-table-title");
|
|
4640
|
+
d && (w += d.offsetHeight);
|
|
4641
4641
|
const l = s.querySelector(".ant-table-thead");
|
|
4642
|
-
if (l && (
|
|
4642
|
+
if (l && (w += l.offsetHeight), n) {
|
|
4643
4643
|
const A = s.querySelector(".ant-pagination");
|
|
4644
4644
|
if (A) {
|
|
4645
|
-
const
|
|
4646
|
-
|
|
4645
|
+
const x = A, D = window.getComputedStyle(x), T = parseFloat(D.marginTop) || 0, j = parseFloat(D.marginBottom) || 0;
|
|
4646
|
+
w += x.offsetHeight + T + j;
|
|
4647
4647
|
}
|
|
4648
4648
|
}
|
|
4649
4649
|
const S = s.querySelector(".ant-table-wrapper");
|
|
4650
4650
|
if (S) {
|
|
4651
|
-
const A = window.getComputedStyle(S),
|
|
4652
|
-
|
|
4651
|
+
const A = window.getComputedStyle(S), x = parseFloat(A.marginTop) || 0, D = parseFloat(A.marginBottom) || 0;
|
|
4652
|
+
w += x + D;
|
|
4653
4653
|
}
|
|
4654
|
-
const b = h -
|
|
4654
|
+
const b = h - w - 2, C = Math.max(Math.floor(b), 50);
|
|
4655
4655
|
r(C);
|
|
4656
4656
|
});
|
|
4657
4657
|
};
|
|
@@ -4896,28 +4896,28 @@ function Ga(t) {
|
|
|
4896
4896
|
}).filter((e) => typeof e == "string" && e) : typeof t == "string" ? [t] : [];
|
|
4897
4897
|
}
|
|
4898
4898
|
const Ja = (t, e, n, i) => {
|
|
4899
|
-
const r = qt(e), o = Ga(t), a = Math.max(1, Number(e.uploadMaxCount) || 1), s = Math.max(1, Number(e.uploadMaxSize) || 10), c = (e.uploadPreviewAction || "").trim(), f = e.uploadButtonText || "上传", m = o.length >= a, p = (
|
|
4900
|
-
const { file:
|
|
4899
|
+
const r = qt(e), o = Ga(t), a = Math.max(1, Number(e.uploadMaxCount) || 1), s = Math.max(1, Number(e.uploadMaxSize) || 10), c = (e.uploadPreviewAction || "").trim(), f = e.uploadButtonText || "上传", m = o.length >= a, p = (l) => l.size / 1024 / 1024 >= s ? (ht.error(`文件大小不能超过 ${s}MB`), !1) : !0, h = async (l) => {
|
|
4900
|
+
const { file: S, onSuccess: b, onError: C, onProgress: A } = l;
|
|
4901
4901
|
if (!tt().upload) {
|
|
4902
|
-
|
|
4902
|
+
C == null || C(new Error("Upload handler not configured")), ht.warning("上传功能未配置");
|
|
4903
4903
|
return;
|
|
4904
4904
|
}
|
|
4905
4905
|
try {
|
|
4906
|
-
|
|
4907
|
-
const
|
|
4908
|
-
headers:
|
|
4906
|
+
A == null || A({ percent: 30 });
|
|
4907
|
+
const D = Xt(), T = await Dn(S, {
|
|
4908
|
+
headers: D ? { Authorization: `Bearer ${D}` } : void 0
|
|
4909
4909
|
});
|
|
4910
|
-
|
|
4911
|
-
} catch (
|
|
4912
|
-
|
|
4913
|
-
}
|
|
4914
|
-
},
|
|
4915
|
-
var
|
|
4916
|
-
if (!(
|
|
4917
|
-
const
|
|
4918
|
-
if (typeof
|
|
4919
|
-
const
|
|
4920
|
-
i.onCellValueChange(n, r,
|
|
4910
|
+
A == null || A({ percent: 100 }), b == null || b(T, S);
|
|
4911
|
+
} catch (D) {
|
|
4912
|
+
C == null || C(D), ht.error("上传失败");
|
|
4913
|
+
}
|
|
4914
|
+
}, w = (l) => {
|
|
4915
|
+
var C;
|
|
4916
|
+
if (!(l != null && l.file) || l.file.status !== "done" || !r || !(i != null && i.onCellValueChange)) return;
|
|
4917
|
+
const S = (C = l.file.response) == null ? void 0 : C.src;
|
|
4918
|
+
if (typeof S != "string" || !S) return;
|
|
4919
|
+
const b = [...o, S].slice(0, a);
|
|
4920
|
+
i.onCellValueChange(n, r, b);
|
|
4921
4921
|
}, v = () => {
|
|
4922
4922
|
!c || !(i != null && i.runAction) || o.length === 0 || i.runAction(c, {
|
|
4923
4923
|
record: { ...n },
|
|
@@ -4925,9 +4925,12 @@ const Ja = (t, e, n, i) => {
|
|
|
4925
4925
|
src: o[0],
|
|
4926
4926
|
dataIndex: r
|
|
4927
4927
|
});
|
|
4928
|
+
}, u = () => {
|
|
4929
|
+
!r || !(i != null && i.onCellValueChange) || i.onCellValueChange(n, r, []);
|
|
4928
4930
|
}, d = o.length > 1 ? `预览(${o.length})` : "预览";
|
|
4929
4931
|
return /* @__PURE__ */ ve(Oe, { size: 4, children: [
|
|
4930
4932
|
c && o.length > 0 && /* @__PURE__ */ g("a", { onClick: v, children: d }),
|
|
4933
|
+
o.length > 0 && /* @__PURE__ */ g("a", { onClick: u, style: { color: "#ff4d4f" }, children: "删除" }),
|
|
4931
4934
|
!m && /* @__PURE__ */ g(
|
|
4932
4935
|
lr,
|
|
4933
4936
|
{
|
|
@@ -4935,7 +4938,7 @@ const Ja = (t, e, n, i) => {
|
|
|
4935
4938
|
accept: e.uploadAccept || void 0,
|
|
4936
4939
|
beforeUpload: p,
|
|
4937
4940
|
customRequest: h,
|
|
4938
|
-
onChange:
|
|
4941
|
+
onChange: w,
|
|
4939
4942
|
children: /* @__PURE__ */ g(ct, { size: "small", icon: /* @__PURE__ */ g(br, {}), children: f })
|
|
4940
4943
|
}
|
|
4941
4944
|
)
|
|
@@ -5138,78 +5141,78 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5138
5141
|
onSave: m,
|
|
5139
5142
|
onClose: p
|
|
5140
5143
|
}) => {
|
|
5141
|
-
const [h,
|
|
5144
|
+
const [h, w] = Ce(n), [v, u] = Ce(i), [d, l] = Ce(a), [S, b] = Ce(c), [C, A] = Ce(null);
|
|
5142
5145
|
$e(() => {
|
|
5143
|
-
t && (
|
|
5146
|
+
t && (w(n), u([...i]), l(a), b(c));
|
|
5144
5147
|
}, [t, n, i, a, c]);
|
|
5145
|
-
const
|
|
5148
|
+
const x = K(
|
|
5146
5149
|
(O) => {
|
|
5147
5150
|
queueMicrotask(() => m(O));
|
|
5148
5151
|
},
|
|
5149
5152
|
[m]
|
|
5150
5153
|
), D = K(
|
|
5151
|
-
(O, B, q, P) => Zn(O, B, q ??
|
|
5152
|
-
[
|
|
5154
|
+
(O, B, q, P) => Zn(O, B, q ?? d, P ?? S),
|
|
5155
|
+
[d, S]
|
|
5153
5156
|
), T = K(() => {
|
|
5154
|
-
|
|
5157
|
+
w(r);
|
|
5155
5158
|
const O = o.map((B) => ({ ...B }));
|
|
5156
|
-
|
|
5157
|
-
}, [r, o, s, f,
|
|
5159
|
+
u(O), l(s), b(f), x(Zn(r, O, s, f));
|
|
5160
|
+
}, [r, o, s, f, x]), j = K(
|
|
5158
5161
|
(O) => {
|
|
5159
|
-
|
|
5162
|
+
u((B) => {
|
|
5160
5163
|
const q = B.map((P) => P.key === O ? { ...P, visible: !P.visible } : P);
|
|
5161
|
-
return
|
|
5164
|
+
return x(D(h, q)), q;
|
|
5162
5165
|
});
|
|
5163
5166
|
},
|
|
5164
|
-
[h, D,
|
|
5167
|
+
[h, D, x]
|
|
5165
5168
|
), k = K(
|
|
5166
5169
|
(O, B) => {
|
|
5167
|
-
|
|
5170
|
+
u((q) => {
|
|
5168
5171
|
const P = q.map((G) => G.key === O ? { ...G, fixed: B } : G);
|
|
5169
|
-
return
|
|
5172
|
+
return x(D(h, P)), P;
|
|
5170
5173
|
});
|
|
5171
5174
|
},
|
|
5172
|
-
[h, D,
|
|
5175
|
+
[h, D, x]
|
|
5173
5176
|
), N = K(
|
|
5174
5177
|
(O, B) => {
|
|
5175
|
-
|
|
5178
|
+
u((q) => {
|
|
5176
5179
|
const P = q.map((G) => G.key === O ? { ...G, width: B } : G);
|
|
5177
|
-
return
|
|
5180
|
+
return x(D(h, P)), P;
|
|
5178
5181
|
});
|
|
5179
5182
|
},
|
|
5180
|
-
[h, D,
|
|
5183
|
+
[h, D, x]
|
|
5181
5184
|
), M = K(
|
|
5182
5185
|
(O, B) => {
|
|
5183
|
-
|
|
5186
|
+
u((q) => {
|
|
5184
5187
|
const P = q.find((ne) => ne.key === O);
|
|
5185
5188
|
if (!P) return q;
|
|
5186
5189
|
const G = typeof P.width == "number" ? P.width : 80, oe = Math.max(cn, G + B), pe = q.map((ne) => ne.key === O ? { ...ne, width: oe } : ne);
|
|
5187
|
-
return
|
|
5190
|
+
return x(D(h, pe)), pe;
|
|
5188
5191
|
});
|
|
5189
5192
|
},
|
|
5190
|
-
[h, D,
|
|
5193
|
+
[h, D, x]
|
|
5191
5194
|
), E = K(
|
|
5192
5195
|
(O, B) => {
|
|
5193
5196
|
if (B < 0 || B >= v.length) return;
|
|
5194
5197
|
const q = [...v], [P] = q.splice(O, 1);
|
|
5195
|
-
q.splice(B, 0, P),
|
|
5198
|
+
q.splice(B, 0, P), u(q), x(D(h, q));
|
|
5196
5199
|
},
|
|
5197
|
-
[v, h, D,
|
|
5200
|
+
[v, h, D, x]
|
|
5198
5201
|
), _ = K(
|
|
5199
5202
|
(O) => {
|
|
5200
|
-
|
|
5203
|
+
w(O), x(D(O, v));
|
|
5201
5204
|
},
|
|
5202
|
-
[v, D,
|
|
5205
|
+
[v, D, x]
|
|
5203
5206
|
), z = K(
|
|
5204
5207
|
(O) => {
|
|
5205
|
-
l(O),
|
|
5208
|
+
l(O), x(D(h, v, O, S));
|
|
5206
5209
|
},
|
|
5207
|
-
[h, v, S, D,
|
|
5210
|
+
[h, v, S, D, x]
|
|
5208
5211
|
), L = K(
|
|
5209
5212
|
(O) => {
|
|
5210
|
-
b(O),
|
|
5213
|
+
b(O), x(D(h, v, d, O));
|
|
5211
5214
|
},
|
|
5212
|
-
[h, v,
|
|
5215
|
+
[h, v, d, D, x]
|
|
5213
5216
|
), V = (O) => (B) => {
|
|
5214
5217
|
A(O), B.dataTransfer.effectAllowed = "move", B.dataTransfer.setData("text/plain", String(O));
|
|
5215
5218
|
}, $ = (O) => (B) => {
|
|
@@ -5241,7 +5244,7 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5241
5244
|
children: "序号列"
|
|
5242
5245
|
}
|
|
5243
5246
|
),
|
|
5244
|
-
/* @__PURE__ */ g(kt, { checked:
|
|
5247
|
+
/* @__PURE__ */ g(kt, { checked: d, onChange: (O) => z(O.target.checked), children: "自动滚动" }),
|
|
5245
5248
|
/* @__PURE__ */ ve(Oe, { align: "center", children: [
|
|
5246
5249
|
/* @__PURE__ */ g("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
5247
5250
|
/* @__PURE__ */ g(
|
|
@@ -5399,16 +5402,16 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5399
5402
|
sampleData: m,
|
|
5400
5403
|
operationColumnVisible: p = !0,
|
|
5401
5404
|
operationColumnSettings: h,
|
|
5402
|
-
selectRowEnable:
|
|
5405
|
+
selectRowEnable: w,
|
|
5403
5406
|
singleSelectMode: v,
|
|
5404
|
-
selectAction:
|
|
5405
|
-
rowKeyField:
|
|
5407
|
+
selectAction: u,
|
|
5408
|
+
rowKeyField: d = "id",
|
|
5406
5409
|
displayRowIndex: l,
|
|
5407
5410
|
queryAction: S,
|
|
5408
5411
|
pagination: b,
|
|
5409
5412
|
emptyText: C,
|
|
5410
5413
|
bordered: A,
|
|
5411
|
-
size:
|
|
5414
|
+
size: x,
|
|
5412
5415
|
sticky: D,
|
|
5413
5416
|
scroll: T,
|
|
5414
5417
|
autoFillHeight: j,
|
|
@@ -5534,10 +5537,10 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5534
5537
|
), J = K(
|
|
5535
5538
|
(I, ge, _e) => {
|
|
5536
5539
|
if (!W.dataSet) return;
|
|
5537
|
-
const De = s && String(s).trim() !== "" ? s : "", Ae = I == null ? void 0 : I[
|
|
5540
|
+
const De = s && String(s).trim() !== "" ? s : "", Ae = I == null ? void 0 : I[d], Te = Re.map((ke) => (Ae != null ? (ke == null ? void 0 : ke[d]) === Ae : ke === I) ? ue(ke ?? {}, ge, _e) : ke);
|
|
5538
5541
|
q(W.dataSet, De, Te, !1);
|
|
5539
5542
|
},
|
|
5540
|
-
[W.dataSet, s,
|
|
5543
|
+
[W.dataSet, s, d, Re, q, ue]
|
|
5541
5544
|
), he = y(() => fe.map((I) => {
|
|
5542
5545
|
let ge = !1;
|
|
5543
5546
|
I.fixed === !0 || I.fixed === "left" ? ge = "left" : I.fixed === "right" && (ge = "right");
|
|
@@ -5549,7 +5552,7 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5549
5552
|
fixed: ge,
|
|
5550
5553
|
width: typeof _e == "number" ? _e : "auto"
|
|
5551
5554
|
};
|
|
5552
|
-
}).filter((I) => I.key), [fe]), Se = l === !0, Me = !1, Ve =
|
|
5555
|
+
}).filter((I) => I.key), [fe]), Se = l === !0, Me = !1, Ve = x === "small" || x === "large" ? x : "middle", { rowIndexVisible: Xe, items: St, scrollX: wt, size: Tn } = y(() => rs(
|
|
5553
5556
|
Fe,
|
|
5554
5557
|
he,
|
|
5555
5558
|
Se,
|
|
@@ -5632,22 +5635,22 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5632
5635
|
},
|
|
5633
5636
|
[W.columnSettings, q]
|
|
5634
5637
|
), zr = y(() => {
|
|
5635
|
-
if (!v &&
|
|
5638
|
+
if (!v && w)
|
|
5636
5639
|
return {
|
|
5637
5640
|
selectedRowKeys: P,
|
|
5638
5641
|
onChange: (I, ge, _e) => {
|
|
5639
|
-
G(I), W.selected && q(W.selected, "", I),
|
|
5642
|
+
G(I), W.selected && q(W.selected, "", I), u != null && u.trim() && n && O(n, ae(u.trim(), {
|
|
5640
5643
|
selectedRowKeys: I,
|
|
5641
5644
|
selectedRows: ge,
|
|
5642
5645
|
info: _e
|
|
5643
5646
|
}));
|
|
5644
5647
|
}
|
|
5645
5648
|
};
|
|
5646
|
-
}, [
|
|
5649
|
+
}, [w, v, P, W.selected, q, u, n, O]), Mn = K((I) => {
|
|
5647
5650
|
if (!v) return;
|
|
5648
|
-
const _e = [I[
|
|
5649
|
-
G(_e), W.selected && q(W.selected, "", _e),
|
|
5650
|
-
}, [v,
|
|
5651
|
+
const _e = [I[d]];
|
|
5652
|
+
G(_e), W.selected && q(W.selected, "", _e), u != null && u.trim() && n && O(n, ae(u.trim(), { record: I, selectedRowKeys: _e }));
|
|
5653
|
+
}, [v, u, n, d, W.selected, q, O]), Kr = K((I) => v && P.includes(I[d]) ? "ant-table-row-selected" : "", [v, d, P]), qr = K((I) => v ? { onClick: () => Mn(I), style: { cursor: "pointer" } } : {}, [v, Mn]), Pr = y(() => {
|
|
5651
5654
|
if (!ie && !xt) return;
|
|
5652
5655
|
const I = kn, ge = (ie == null ? void 0 : ie.y) === "100%" ? se : ie == null ? void 0 : ie.y;
|
|
5653
5656
|
return I !== void 0 || ge !== void 0 ? { x: I, y: ge } : ie ? ie.y === "100%" ? { x: ie.x, y: se } : ie : void 0;
|
|
@@ -5679,13 +5682,13 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5679
5682
|
...Q,
|
|
5680
5683
|
columns: Pt,
|
|
5681
5684
|
dataSource: Re,
|
|
5682
|
-
rowKey:
|
|
5685
|
+
rowKey: d,
|
|
5683
5686
|
rowSelection: zr,
|
|
5684
5687
|
rowClassName: Kr,
|
|
5685
5688
|
pagination: U,
|
|
5686
5689
|
locale: { emptyText: C },
|
|
5687
5690
|
bordered: A,
|
|
5688
|
-
size: xt ? Tn :
|
|
5691
|
+
size: xt ? Tn : x,
|
|
5689
5692
|
sticky: D,
|
|
5690
5693
|
scroll: Pr,
|
|
5691
5694
|
title: Yr,
|
|
@@ -5757,15 +5760,15 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5757
5760
|
formatType: m,
|
|
5758
5761
|
formatValue: p,
|
|
5759
5762
|
fallbackDisplay: h = !1,
|
|
5760
|
-
styles:
|
|
5763
|
+
styles: w,
|
|
5761
5764
|
token: v,
|
|
5762
5765
|
// Filter out custom props that shouldn't be passed to DOM
|
|
5763
|
-
clickAction:
|
|
5764
|
-
stopClickPropagation:
|
|
5766
|
+
clickAction: u,
|
|
5767
|
+
stopClickPropagation: d,
|
|
5765
5768
|
index: l,
|
|
5766
5769
|
...S
|
|
5767
5770
|
}) => {
|
|
5768
|
-
const b = R((Q) => Q.addCommand), C = rt(Je), A = l ?? (C == null ? void 0 : C.index),
|
|
5771
|
+
const b = R((Q) => Q.addCommand), C = rt(Je), A = l ?? (C == null ? void 0 : C.index), x = C == null ? void 0 : C.parentIndex, D = typeof o == "string" && o.trim() !== "", T = typeof a == "string" && a.trim() !== "", j = D || T || f === "selectedCount", k = dt(
|
|
5769
5772
|
j ? o : void 0,
|
|
5770
5773
|
j ? a : void 0,
|
|
5771
5774
|
e
|
|
@@ -5829,16 +5832,16 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5829
5832
|
!["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(ie) && _[ie] !== void 0 && _[ie] !== null && (Q[ie] = _[ie]);
|
|
5830
5833
|
}), Q;
|
|
5831
5834
|
}, [S, _]), ne = y(
|
|
5832
|
-
() => (_ == null ? void 0 : _.clickAction) ??
|
|
5833
|
-
[_ == null ? void 0 : _.clickAction,
|
|
5835
|
+
() => (_ == null ? void 0 : _.clickAction) ?? u,
|
|
5836
|
+
[_ == null ? void 0 : _.clickAction, u]
|
|
5834
5837
|
), ue = (_ == null ? void 0 : _.develop) ?? n, de = y(() => {
|
|
5835
5838
|
if (ue) return !1;
|
|
5836
|
-
const Q = (_ == null ? void 0 : _.stopClickPropagation) ??
|
|
5839
|
+
const Q = (_ == null ? void 0 : _.stopClickPropagation) ?? d;
|
|
5837
5840
|
return Q !== void 0 ? Q : !!ne;
|
|
5838
5841
|
}, [
|
|
5839
5842
|
ue,
|
|
5840
5843
|
_ == null ? void 0 : _.stopClickPropagation,
|
|
5841
|
-
|
|
5844
|
+
d,
|
|
5842
5845
|
ne
|
|
5843
5846
|
]), fe = (_ == null ? void 0 : _.color) ?? c, ee = rn(fe), W = y(() => {
|
|
5844
5847
|
if (!v) return;
|
|
@@ -5865,13 +5868,13 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5865
5868
|
us,
|
|
5866
5869
|
{
|
|
5867
5870
|
...pe,
|
|
5868
|
-
style: { ...te, ...
|
|
5871
|
+
style: { ...te, ...w, ...pe.style },
|
|
5869
5872
|
onClick: (Q) => {
|
|
5870
5873
|
if (typeof pe.onClick == "function" && pe.onClick(Q), ne && N) {
|
|
5871
5874
|
const { actionName: ie, arg: we } = Dr(ne, {
|
|
5872
5875
|
id: t,
|
|
5873
5876
|
index: A,
|
|
5874
|
-
parentIndex:
|
|
5877
|
+
parentIndex: x,
|
|
5875
5878
|
dataSet: z,
|
|
5876
5879
|
dataSetField: L,
|
|
5877
5880
|
...pe
|
|
@@ -5897,22 +5900,22 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5897
5900
|
styles: f,
|
|
5898
5901
|
...m
|
|
5899
5902
|
}) => {
|
|
5900
|
-
const p = R((A) => A.getDataSet), h = R((A) => A.getProps),
|
|
5903
|
+
const p = R((A) => A.getDataSet), h = R((A) => A.getProps), w = y(
|
|
5901
5904
|
() => ye(e, o),
|
|
5902
5905
|
[e, o]
|
|
5903
|
-
), v = y(() => e && t ? h(e, t) : null, [e, t, h]),
|
|
5904
|
-
if (
|
|
5905
|
-
return p(
|
|
5906
|
-
}, [
|
|
5906
|
+
), v = y(() => e && t ? h(e, t) : null, [e, t, h]), u = y(() => {
|
|
5907
|
+
if (w && a)
|
|
5908
|
+
return p(w, a);
|
|
5909
|
+
}, [w, a, p]), d = y(() => n ? i : u != null && u !== "" ? String(u) : (v == null ? void 0 : v.content) !== void 0 ? v.content : i, [n, u, v == null ? void 0 : v.content, i]), l = (v == null ? void 0 : v.color) ?? c, S = rn(l), b = y(() => {
|
|
5907
5910
|
const A = {};
|
|
5908
5911
|
return S && (A.color = S), A;
|
|
5909
5912
|
}, [S]), C = y(() => {
|
|
5910
5913
|
const A = { ...m };
|
|
5911
|
-
return v && typeof v == "object" && Object.keys(v).forEach((
|
|
5912
|
-
|
|
5914
|
+
return v && typeof v == "object" && Object.keys(v).forEach((x) => {
|
|
5915
|
+
x !== "content" && v[x] !== void 0 && v[x] !== null && (A[x] = v[x]);
|
|
5913
5916
|
}), A;
|
|
5914
5917
|
}, [m, v]);
|
|
5915
|
-
return /* @__PURE__ */ g(ds, { level: s, ...C, style: { ...b, ...f, ...C.style }, children:
|
|
5918
|
+
return /* @__PURE__ */ g(ds, { level: s, ...C, style: { ...b, ...f, ...C.style }, children: d || r });
|
|
5916
5919
|
}, { Paragraph: fs } = An, Qc = ({
|
|
5917
5920
|
id: t,
|
|
5918
5921
|
sessionId: e,
|
|
@@ -5928,19 +5931,19 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5928
5931
|
const m = R((C) => C.getDataSet), p = R((C) => C.getProps), h = y(
|
|
5929
5932
|
() => ye(e, o),
|
|
5930
5933
|
[e, o]
|
|
5931
|
-
),
|
|
5934
|
+
), w = y(() => e && t ? p(e, t) : null, [e, t, p]), v = y(() => {
|
|
5932
5935
|
if (h && a)
|
|
5933
5936
|
return m(h, a);
|
|
5934
|
-
}, [h, a, m]),
|
|
5937
|
+
}, [h, a, m]), u = y(() => n ? i : v != null && v !== "" ? String(v) : (w == null ? void 0 : w.content) !== void 0 ? w.content : i, [n, v, w == null ? void 0 : w.content, i]), d = (w == null ? void 0 : w.color) ?? s, l = rn(d), S = y(() => {
|
|
5935
5938
|
const C = {};
|
|
5936
5939
|
return l && (C.color = l), C;
|
|
5937
5940
|
}, [l]), b = y(() => {
|
|
5938
5941
|
const C = { ...f };
|
|
5939
|
-
return
|
|
5940
|
-
A !== "content" &&
|
|
5942
|
+
return w && typeof w == "object" && Object.keys(w).forEach((A) => {
|
|
5943
|
+
A !== "content" && w[A] !== void 0 && w[A] !== null && (C[A] = w[A]);
|
|
5941
5944
|
}), C;
|
|
5942
|
-
}, [f,
|
|
5943
|
-
return /* @__PURE__ */ g(fs, { ...b, style: { ...S, ...c, ...b.style }, children:
|
|
5945
|
+
}, [f, w]);
|
|
5946
|
+
return /* @__PURE__ */ g(fs, { ...b, style: { ...S, ...c, ...b.style }, children: u || r });
|
|
5944
5947
|
}, ms = (t) => {
|
|
5945
5948
|
if (!t) return [];
|
|
5946
5949
|
if (typeof t == "string")
|
|
@@ -5964,9 +5967,9 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5964
5967
|
defaultActiveKey: m,
|
|
5965
5968
|
renderTabContent: p,
|
|
5966
5969
|
children: h,
|
|
5967
|
-
...
|
|
5970
|
+
...w
|
|
5968
5971
|
}) => {
|
|
5969
|
-
const v = R((j) => j.addCommand),
|
|
5972
|
+
const v = R((j) => j.addCommand), u = R((j) => j.getDataSet), d = R((j) => j.setDataSet), l = y(
|
|
5970
5973
|
() => ye(e, i),
|
|
5971
5974
|
[e, i]
|
|
5972
5975
|
), S = y(() => ms(o), [o]), b = y(() => a && a.length > 0 ? n ? a.map((j) => ({ ...j, forceRender: !0 })) : a : S.length > 0 ? S.map((j, k) => ({
|
|
@@ -5977,31 +5980,31 @@ const ln = 420, Xn = 440, is = ({
|
|
|
5977
5980
|
forceRender: n ? !0 : void 0,
|
|
5978
5981
|
children: p ? p(j.key, k) : null
|
|
5979
5982
|
})) : [], [a, S, p, n]), C = y(() => {
|
|
5980
|
-
if (l && r) return
|
|
5981
|
-
}, [l, r,
|
|
5983
|
+
if (l && r) return u(l, r);
|
|
5984
|
+
}, [l, r, u]), [A, x] = Ge.useState(void 0), D = y(() => {
|
|
5982
5985
|
if (n && A)
|
|
5983
5986
|
return A;
|
|
5984
5987
|
const j = C ?? f ?? m;
|
|
5985
5988
|
return !j && b.length > 0 ? b[0].key : j;
|
|
5986
5989
|
}, [n, A, C, f, m, b]), T = K((j) => {
|
|
5987
5990
|
if (n) {
|
|
5988
|
-
|
|
5991
|
+
x(j);
|
|
5989
5992
|
return;
|
|
5990
5993
|
}
|
|
5991
5994
|
if (c) {
|
|
5992
5995
|
c(j);
|
|
5993
5996
|
return;
|
|
5994
5997
|
}
|
|
5995
|
-
l && r &&
|
|
5996
|
-
}, [n, c, l, r,
|
|
5998
|
+
l && r && d(l, r, j), s && e && v(e, ae(s, j));
|
|
5999
|
+
}, [n, c, l, r, d, s, e, v]);
|
|
5997
6000
|
return /* @__PURE__ */ g(
|
|
5998
6001
|
ri,
|
|
5999
6002
|
{
|
|
6000
|
-
...
|
|
6003
|
+
...w,
|
|
6001
6004
|
activeKey: D,
|
|
6002
6005
|
items: b,
|
|
6003
6006
|
onChange: T,
|
|
6004
|
-
animated: n ? !1 :
|
|
6007
|
+
animated: n ? !1 : w.animated,
|
|
6005
6008
|
children: h
|
|
6006
6009
|
}
|
|
6007
6010
|
);
|
|
@@ -6019,16 +6022,16 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6019
6022
|
dragLeaveAction: m,
|
|
6020
6023
|
dragOverAction: p,
|
|
6021
6024
|
dragStartAction: h,
|
|
6022
|
-
dropAction:
|
|
6025
|
+
dropAction: w,
|
|
6023
6026
|
rightClickAction: v,
|
|
6024
|
-
loadAction:
|
|
6025
|
-
onSelect:
|
|
6027
|
+
loadAction: u,
|
|
6028
|
+
onSelect: d,
|
|
6026
6029
|
onCheck: l,
|
|
6027
6030
|
onExpand: S,
|
|
6028
6031
|
onDragEnd: b,
|
|
6029
6032
|
onDragEnter: C,
|
|
6030
6033
|
onDragLeave: A,
|
|
6031
|
-
onDragOver:
|
|
6034
|
+
onDragOver: x,
|
|
6032
6035
|
onDragStart: D,
|
|
6033
6036
|
onDrop: T,
|
|
6034
6037
|
onRightClick: j,
|
|
@@ -6068,13 +6071,13 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6068
6071
|
(Z) => O ? Z.getDataSet(O, "") : void 0
|
|
6069
6072
|
), oe = y(() => n ? B ?? N ?? [] : $ ? B ?? [] : N ?? [], [n, $, B, N]), pe = q, ne = P, ue = G, de = K(
|
|
6070
6073
|
(Z, re) => {
|
|
6071
|
-
if (
|
|
6072
|
-
|
|
6074
|
+
if (d) {
|
|
6075
|
+
d(Z, re);
|
|
6073
6076
|
return;
|
|
6074
6077
|
}
|
|
6075
6078
|
Y && V(Y, "", Z), o && e && L(e, ae(o, { selectedKeys: Z }));
|
|
6076
6079
|
},
|
|
6077
|
-
[
|
|
6080
|
+
[d, Y, e, V, o, L]
|
|
6078
6081
|
), fe = K(
|
|
6079
6082
|
(Z, re) => {
|
|
6080
6083
|
if (l) {
|
|
@@ -6122,13 +6125,13 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6122
6125
|
[A, m, e, L]
|
|
6123
6126
|
), Q = K(
|
|
6124
6127
|
(Z) => {
|
|
6125
|
-
if (
|
|
6126
|
-
|
|
6128
|
+
if (x) {
|
|
6129
|
+
x(Z);
|
|
6127
6130
|
return;
|
|
6128
6131
|
}
|
|
6129
6132
|
p && e && L(e, ae(p, Z));
|
|
6130
6133
|
},
|
|
6131
|
-
[
|
|
6134
|
+
[x, p, e, L]
|
|
6132
6135
|
), ie = K(
|
|
6133
6136
|
(Z) => {
|
|
6134
6137
|
if (D) {
|
|
@@ -6144,9 +6147,9 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6144
6147
|
T(Z);
|
|
6145
6148
|
return;
|
|
6146
6149
|
}
|
|
6147
|
-
|
|
6150
|
+
w && e && L(e, ae(w, Z));
|
|
6148
6151
|
},
|
|
6149
|
-
[T,
|
|
6152
|
+
[T, w, e, L]
|
|
6150
6153
|
), Ee = K(
|
|
6151
6154
|
(Z) => {
|
|
6152
6155
|
if (j) {
|
|
@@ -6162,9 +6165,9 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6162
6165
|
k(Z, re);
|
|
6163
6166
|
return;
|
|
6164
6167
|
}
|
|
6165
|
-
|
|
6168
|
+
u && e && L(e, ae(u, { loadedKeys: Z, ...re }));
|
|
6166
6169
|
},
|
|
6167
|
-
[k,
|
|
6170
|
+
[k, u, e, L]
|
|
6168
6171
|
), Le = y(() => {
|
|
6169
6172
|
if (!_) return;
|
|
6170
6173
|
const Z = {};
|
|
@@ -6215,9 +6218,9 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6215
6218
|
const m = R((S) => S.getDataSet), p = R((S) => S.getProps), h = y(
|
|
6216
6219
|
() => ye(e, o),
|
|
6217
6220
|
[e, o]
|
|
6218
|
-
),
|
|
6221
|
+
), w = y(() => e && t ? p(e, t) : null, [e, t, p]), v = y(() => {
|
|
6219
6222
|
if (h && a) return m(h, a);
|
|
6220
|
-
}, [h, a, m]),
|
|
6223
|
+
}, [h, a, m]), u = y(() => {
|
|
6221
6224
|
let S;
|
|
6222
6225
|
const b = v != null ? Array.isArray(v) ? v : typeof v == "string" ? (() => {
|
|
6223
6226
|
try {
|
|
@@ -6225,23 +6228,23 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6225
6228
|
} catch {
|
|
6226
6229
|
return;
|
|
6227
6230
|
}
|
|
6228
|
-
})() : void 0 :
|
|
6231
|
+
})() : void 0 : w == null ? void 0 : w.items;
|
|
6229
6232
|
return n ? S = b ?? i : h ? S = b ?? [] : S = i, Array.isArray(S) ? S.map((C) => {
|
|
6230
6233
|
const A = { ...C };
|
|
6231
6234
|
return A.label && !A.title && (A.title = A.label, delete A.label), A.children && !A.content && (A.content = A.children, delete A.children), A;
|
|
6232
6235
|
}) : S;
|
|
6233
|
-
}, [n, h, v,
|
|
6236
|
+
}, [n, h, v, w == null ? void 0 : w.items, i]), d = y(() => {
|
|
6234
6237
|
const S = { ...f };
|
|
6235
|
-
return
|
|
6236
|
-
b !== "items" &&
|
|
6238
|
+
return w && typeof w == "object" && Object.keys(w).forEach((b) => {
|
|
6239
|
+
b !== "items" && w[b] !== void 0 && w[b] !== null && (S[b] = w[b]);
|
|
6237
6240
|
}), S;
|
|
6238
|
-
}, [f,
|
|
6241
|
+
}, [f, w]), l = y(() => c === "left" ? "start" : c === "right" ? "end" : c, [c]);
|
|
6239
6242
|
return /* @__PURE__ */ g(
|
|
6240
6243
|
oi,
|
|
6241
6244
|
{
|
|
6242
|
-
...
|
|
6245
|
+
...d,
|
|
6243
6246
|
mode: l,
|
|
6244
|
-
items:
|
|
6247
|
+
items: u,
|
|
6245
6248
|
children: r
|
|
6246
6249
|
}
|
|
6247
6250
|
);
|
|
@@ -6268,29 +6271,29 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6268
6271
|
orientation: m,
|
|
6269
6272
|
labelPlacement: p,
|
|
6270
6273
|
titlePlacement: h,
|
|
6271
|
-
styles:
|
|
6274
|
+
styles: w,
|
|
6272
6275
|
token: v,
|
|
6273
|
-
...
|
|
6276
|
+
...u
|
|
6274
6277
|
}) => {
|
|
6275
|
-
const
|
|
6278
|
+
const d = R((_) => _.addCommand), l = R((_) => _.getDataSet), S = R((_) => _.setDataSet), b = y(
|
|
6276
6279
|
() => ye(e, i),
|
|
6277
6280
|
[e, i]
|
|
6278
6281
|
), C = y(() => {
|
|
6279
6282
|
if (b && r) return l(b, r);
|
|
6280
|
-
}, [b, r, l]), A = y(() => C ?? s ?? 0, [C, s]),
|
|
6283
|
+
}, [b, r, l]), A = y(() => C ?? s ?? 0, [C, s]), x = y(() => m ?? f, [m, f]), D = y(() => h ?? p, [h, p]), T = y(() => un(c, []), [c]), j = y(() => un(w, {}), [w]), k = y(() => un(v, {}), [v]), N = K((_) => {
|
|
6281
6284
|
if (a) {
|
|
6282
6285
|
a(_);
|
|
6283
6286
|
return;
|
|
6284
6287
|
}
|
|
6285
|
-
b && r && S(b, r, _), o && e &&
|
|
6286
|
-
}, [a, b, r, S, o, e,
|
|
6288
|
+
b && r && S(b, r, _), o && e && d(e, ae(o, _));
|
|
6289
|
+
}, [a, b, r, S, o, e, d]), M = Object.keys(k).length > 0, E = /* @__PURE__ */ g(
|
|
6287
6290
|
ai,
|
|
6288
6291
|
{
|
|
6289
|
-
...
|
|
6292
|
+
...u,
|
|
6290
6293
|
current: A,
|
|
6291
6294
|
items: T,
|
|
6292
6295
|
styles: j,
|
|
6293
|
-
orientation:
|
|
6296
|
+
orientation: x,
|
|
6294
6297
|
titlePlacement: D,
|
|
6295
6298
|
onChange: N
|
|
6296
6299
|
}
|
|
@@ -6341,10 +6344,10 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6341
6344
|
children: p,
|
|
6342
6345
|
...h
|
|
6343
6346
|
}) => {
|
|
6344
|
-
const
|
|
6347
|
+
const w = R((C) => C.addCommand), v = R((C) => C.setDataSet), u = y(
|
|
6345
6348
|
() => ye(e, i),
|
|
6346
6349
|
[e, i]
|
|
6347
|
-
),
|
|
6350
|
+
), d = y(() => {
|
|
6348
6351
|
if (a) return a;
|
|
6349
6352
|
if (o)
|
|
6350
6353
|
return ys[o] || o;
|
|
@@ -6353,10 +6356,10 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6353
6356
|
f(C);
|
|
6354
6357
|
return;
|
|
6355
6358
|
}
|
|
6356
|
-
|
|
6357
|
-
}, [f,
|
|
6358
|
-
const
|
|
6359
|
-
return /* @__PURE__ */ g("div", { "data-slide-key": C.key, children:
|
|
6359
|
+
u && r && v(u, r, C), c && e && w(e, ae(c, C));
|
|
6360
|
+
}, [f, u, r, v, c, e, w]), b = y(() => p || (l.length > 0 ? l.map((C, A) => {
|
|
6361
|
+
const x = m ? m(C.key, A) : null;
|
|
6362
|
+
return /* @__PURE__ */ g("div", { "data-slide-key": C.key, children: x || /* @__PURE__ */ g("div", { style: {
|
|
6360
6363
|
minHeight: "100px",
|
|
6361
6364
|
display: "flex",
|
|
6362
6365
|
alignItems: "center",
|
|
@@ -6369,7 +6372,7 @@ const ln = 420, Xn = 440, is = ({
|
|
|
6369
6372
|
si,
|
|
6370
6373
|
{
|
|
6371
6374
|
...h,
|
|
6372
|
-
dotPlacement:
|
|
6375
|
+
dotPlacement: d,
|
|
6373
6376
|
afterChange: S,
|
|
6374
6377
|
children: b
|
|
6375
6378
|
}
|
|
@@ -6404,22 +6407,22 @@ const ol = ({
|
|
|
6404
6407
|
src: s,
|
|
6405
6408
|
...c
|
|
6406
6409
|
}) => {
|
|
6407
|
-
const f = R((
|
|
6410
|
+
const f = R((d) => d.getProps), m = y(
|
|
6408
6411
|
() => ye(e, i),
|
|
6409
6412
|
[e, i]
|
|
6410
6413
|
), p = R(
|
|
6411
|
-
(
|
|
6412
|
-
), h = y(() => e && t ? f(e, t) : null, [e, t, f]),
|
|
6413
|
-
let
|
|
6414
|
-
return p != null && p !== "" ?
|
|
6414
|
+
(d) => m && r ? vs(d.dataSets, m, r) : void 0
|
|
6415
|
+
), h = y(() => e && t ? f(e, t) : null, [e, t, f]), w = y(() => {
|
|
6416
|
+
let d;
|
|
6417
|
+
return p != null && p !== "" ? d = String(p) : (h == null ? void 0 : h.src) !== void 0 ? d = h.src : d = s, gs(d);
|
|
6415
6418
|
}, [p, h == null ? void 0 : h.src, s]), v = y(() => {
|
|
6416
|
-
const
|
|
6419
|
+
const d = { ...c };
|
|
6417
6420
|
return h && typeof h == "object" && Object.keys(h).forEach((l) => {
|
|
6418
|
-
l !== "src" && h[l] !== void 0 && h[l] !== null && (
|
|
6419
|
-
}),
|
|
6420
|
-
}, [c, h]),
|
|
6421
|
+
l !== "src" && h[l] !== void 0 && h[l] !== null && (d[l] = h[l]);
|
|
6422
|
+
}), d;
|
|
6423
|
+
}, [c, h]), u = {
|
|
6421
6424
|
...v,
|
|
6422
|
-
src:
|
|
6425
|
+
src: w || void 0,
|
|
6423
6426
|
fallback: v.fallback || ps,
|
|
6424
6427
|
// Disable preview in designer mode to prevent GrapesJS selection interference
|
|
6425
6428
|
preview: n ? !1 : v.preview,
|
|
@@ -6429,7 +6432,7 @@ const ol = ({
|
|
|
6429
6432
|
image: { width: "100%", height: "100%", objectFit: a }
|
|
6430
6433
|
}
|
|
6431
6434
|
};
|
|
6432
|
-
return /* @__PURE__ */ g("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ g(ft, { ...
|
|
6435
|
+
return /* @__PURE__ */ g("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ g(ft, { ...u }) });
|
|
6433
6436
|
}, { PreviewGroup: bs } = ft;
|
|
6434
6437
|
function Ss(t) {
|
|
6435
6438
|
if (!t || typeof t != "string" || /^(data:|blob:|https?:\/\/)/i.test(t)) return t;
|
|
@@ -6446,30 +6449,30 @@ const al = ({
|
|
|
6446
6449
|
items: a,
|
|
6447
6450
|
...s
|
|
6448
6451
|
}) => {
|
|
6449
|
-
const c = R((
|
|
6452
|
+
const c = R((d) => d.getDataSet), f = R((d) => d.getProps), m = y(
|
|
6450
6453
|
() => ye(e, r),
|
|
6451
6454
|
[e, r]
|
|
6452
6455
|
), p = y(() => e && t ? f(e, t) : null, [e, t, f]), h = y(() => {
|
|
6453
6456
|
if (m && o) return c(m, o);
|
|
6454
|
-
}, [m, o, c]),
|
|
6455
|
-
const
|
|
6457
|
+
}, [m, o, c]), w = y(() => {
|
|
6458
|
+
const d = h != null ? Array.isArray(h) ? h : typeof h == "string" ? (() => {
|
|
6456
6459
|
try {
|
|
6457
6460
|
return JSON.parse(h);
|
|
6458
6461
|
} catch {
|
|
6459
6462
|
return;
|
|
6460
6463
|
}
|
|
6461
6464
|
})() : void 0 : p == null ? void 0 : p.items;
|
|
6462
|
-
return n ?
|
|
6463
|
-
}, [n, m, h, p == null ? void 0 : p.items, a]), v = y(() =>
|
|
6464
|
-
const l = typeof
|
|
6465
|
+
return n ? d ?? a ?? [] : m ? Array.isArray(d) ? d : [] : a ?? [];
|
|
6466
|
+
}, [n, m, h, p == null ? void 0 : p.items, a]), v = y(() => w.map((d) => {
|
|
6467
|
+
const l = typeof d == "string" ? d : d && typeof d == "object" ? d.url ?? d.src : void 0;
|
|
6465
6468
|
return Ss(l);
|
|
6466
|
-
}).filter((
|
|
6467
|
-
const
|
|
6469
|
+
}).filter((d) => !!d), [w]), u = y(() => {
|
|
6470
|
+
const d = { ...s };
|
|
6468
6471
|
return p && typeof p == "object" && Object.keys(p).forEach((l) => {
|
|
6469
|
-
l !== "items" && p[l] !== void 0 && p[l] !== null && (
|
|
6470
|
-
}),
|
|
6472
|
+
l !== "items" && p[l] !== void 0 && p[l] !== null && (d[l] = p[l]);
|
|
6473
|
+
}), d;
|
|
6471
6474
|
}, [s, p]);
|
|
6472
|
-
return /* @__PURE__ */ g(bs, { ...
|
|
6475
|
+
return /* @__PURE__ */ g(bs, { ...u, items: v, children: i });
|
|
6473
6476
|
}, sl = ({
|
|
6474
6477
|
id: t,
|
|
6475
6478
|
sessionId: e,
|
|
@@ -6483,29 +6486,29 @@ const al = ({
|
|
|
6483
6486
|
token: f,
|
|
6484
6487
|
...m
|
|
6485
6488
|
}) => {
|
|
6486
|
-
const p = R((
|
|
6489
|
+
const p = R((x) => x.getDataSet), h = R((x) => x.getProps), w = y(
|
|
6487
6490
|
() => ye(e, r),
|
|
6488
6491
|
[e, r]
|
|
6489
|
-
), v = y(() => e && t ? h(e, t) : null, [e, t, h]),
|
|
6490
|
-
if (
|
|
6491
|
-
}, [
|
|
6492
|
-
let
|
|
6493
|
-
if (n || (
|
|
6494
|
-
return
|
|
6495
|
-
}, [n,
|
|
6496
|
-
let
|
|
6497
|
-
if (!n && (v != null && v.icon) && (
|
|
6498
|
-
const D = at[
|
|
6492
|
+
), v = y(() => e && t ? h(e, t) : null, [e, t, h]), u = y(() => {
|
|
6493
|
+
if (w && o) return p(w, o);
|
|
6494
|
+
}, [w, o, p]), d = y(() => {
|
|
6495
|
+
let x = a;
|
|
6496
|
+
if (n || (u != null && u !== "" ? x = String(u) : (v == null ? void 0 : v.src) !== void 0 && (x = v.src)), !(typeof x == "string" && x.trim() === ""))
|
|
6497
|
+
return x;
|
|
6498
|
+
}, [n, u, v == null ? void 0 : v.src, a]), l = y(() => {
|
|
6499
|
+
let x = c;
|
|
6500
|
+
if (!n && (v != null && v.icon) && (x = v.icon), typeof x == "string" && x) {
|
|
6501
|
+
const D = at[x];
|
|
6499
6502
|
if (D) return /* @__PURE__ */ g(D, {});
|
|
6500
6503
|
}
|
|
6501
|
-
return
|
|
6504
|
+
return x;
|
|
6502
6505
|
}, [c, v == null ? void 0 : v.icon, n]), S = y(() => {
|
|
6503
|
-
const
|
|
6506
|
+
const x = { ...m };
|
|
6504
6507
|
return v && typeof v == "object" && Object.keys(v).forEach((D) => {
|
|
6505
|
-
!["src", "icon", "token"].includes(D) && v[D] !== void 0 && v[D] !== null && (
|
|
6506
|
-
}),
|
|
6508
|
+
!["src", "icon", "token"].includes(D) && v[D] !== void 0 && v[D] !== null && (x[D] = v[D]);
|
|
6509
|
+
}), x;
|
|
6507
6510
|
}, [m, v]), b = y(() => {
|
|
6508
|
-
const
|
|
6511
|
+
const x = v == null ? void 0 : v.token, D = { ...f, ...x };
|
|
6509
6512
|
if (!D || Object.keys(D).length === 0) return;
|
|
6510
6513
|
const T = {};
|
|
6511
6514
|
return Object.entries(D).forEach(([j, k]) => {
|
|
@@ -6531,7 +6534,7 @@ const al = ({
|
|
|
6531
6534
|
ci,
|
|
6532
6535
|
{
|
|
6533
6536
|
...S,
|
|
6534
|
-
src:
|
|
6537
|
+
src: d,
|
|
6535
6538
|
icon: l,
|
|
6536
6539
|
children: i
|
|
6537
6540
|
}
|
|
@@ -6561,11 +6564,11 @@ const al = ({
|
|
|
6561
6564
|
// Filter out custom props that shouldn't be passed to DOM
|
|
6562
6565
|
closeAction: p,
|
|
6563
6566
|
clickAction: h,
|
|
6564
|
-
...
|
|
6567
|
+
...w
|
|
6565
6568
|
}) => {
|
|
6566
|
-
const v = dt(o, a, e),
|
|
6567
|
-
() => ye(l,
|
|
6568
|
-
[l,
|
|
6569
|
+
const v = dt(o, a, e), u = v.dataSet, d = v.dataSetField, l = v.sessionId, S = y(
|
|
6570
|
+
() => ye(l, u),
|
|
6571
|
+
[l, u]
|
|
6569
6572
|
), { options: b } = Kt(s), C = y(() => {
|
|
6570
6573
|
if (f) {
|
|
6571
6574
|
if (typeof f == "string")
|
|
@@ -6581,9 +6584,9 @@ const al = ({
|
|
|
6581
6584
|
var L;
|
|
6582
6585
|
return l && t ? ((L = z.propsStore[`${l}_props`]) == null ? void 0 : L[t]) ?? null : null;
|
|
6583
6586
|
}
|
|
6584
|
-
),
|
|
6585
|
-
(z) => S &&
|
|
6586
|
-
), D = y(() => n ? r :
|
|
6587
|
+
), x = R(
|
|
6588
|
+
(z) => S && d ? z.getDataSet(S, d) : void 0
|
|
6589
|
+
), D = y(() => n ? r : x != null && x !== "" ? String(x) : (A == null ? void 0 : A.content) !== void 0 ? A.content : r, [n, x, A == null ? void 0 : A.content, r]), T = y(() => {
|
|
6587
6590
|
if (s && b.length > 0 && D !== void 0 && D !== null) {
|
|
6588
6591
|
const z = st(b, D);
|
|
6589
6592
|
return (z == null ? void 0 : z.label) ?? D;
|
|
@@ -6594,11 +6597,11 @@ const al = ({
|
|
|
6594
6597
|
const z = String(D).toLowerCase();
|
|
6595
6598
|
return C && C[z] ? C[z] : ws[z];
|
|
6596
6599
|
}, [c, D, C]), k = y(() => {
|
|
6597
|
-
const z = { ...
|
|
6600
|
+
const z = { ...w };
|
|
6598
6601
|
return A && typeof A == "object" && Object.keys(A).forEach((L) => {
|
|
6599
6602
|
!["content", "color"].includes(L) && A[L] !== void 0 && A[L] !== null && (z[L] = A[L]);
|
|
6600
6603
|
}), z;
|
|
6601
|
-
}, [
|
|
6604
|
+
}, [w, A]), N = y(() => {
|
|
6602
6605
|
const { bordered: z, ...L } = k;
|
|
6603
6606
|
return L;
|
|
6604
6607
|
}, [k]), M = (A == null ? void 0 : A.color) ?? m, _ = rn(M) || j;
|
|
@@ -6622,22 +6625,22 @@ const ll = ({
|
|
|
6622
6625
|
pageSize: m,
|
|
6623
6626
|
total: p,
|
|
6624
6627
|
defaultPageSize: h,
|
|
6625
|
-
...
|
|
6628
|
+
...w
|
|
6626
6629
|
}) => {
|
|
6627
|
-
const v = R((k) => k.addCommand),
|
|
6630
|
+
const v = R((k) => k.addCommand), u = R((k) => k.setDataSet), d = y(
|
|
6628
6631
|
() => ye(e, i),
|
|
6629
6632
|
[e, i]
|
|
6630
|
-
), l = r ?? (
|
|
6631
|
-
if (!
|
|
6632
|
-
const N = k.getDataSet(
|
|
6633
|
+
), l = r ?? (d ? "" : void 0), S = y(() => ({}), []), b = R((k) => {
|
|
6634
|
+
if (!d) return S;
|
|
6635
|
+
const N = k.getDataSet(d, l ?? "");
|
|
6633
6636
|
return N != null && typeof N == "object" ? N : S;
|
|
6634
|
-
}), C = tr(m, h), A = b.current ?? f ?? 1,
|
|
6637
|
+
}), C = tr(m, h), A = b.current ?? f ?? 1, x = b.pageSize ?? C, D = b.total ?? p ?? 0;
|
|
6635
6638
|
$e(() => {
|
|
6636
|
-
if (!
|
|
6637
|
-
const k = l ?? "", { getDataSet: N, setDataSet: M } = R.getState(), E = N(
|
|
6639
|
+
if (!d || l === void 0) return;
|
|
6640
|
+
const k = l ?? "", { getDataSet: N, setDataSet: M } = R.getState(), E = N(d, k), _ = tr(m, h);
|
|
6638
6641
|
if (E == null || typeof E != "object" || Array.isArray(E)) {
|
|
6639
6642
|
M(
|
|
6640
|
-
|
|
6643
|
+
d,
|
|
6641
6644
|
k,
|
|
6642
6645
|
{
|
|
6643
6646
|
current: f ?? 1,
|
|
@@ -6650,7 +6653,7 @@ const ll = ({
|
|
|
6650
6653
|
}
|
|
6651
6654
|
const z = Number(E.pageSize);
|
|
6652
6655
|
Number.isFinite(z) && z > 0 || M(
|
|
6653
|
-
|
|
6656
|
+
d,
|
|
6654
6657
|
k,
|
|
6655
6658
|
{
|
|
6656
6659
|
...E,
|
|
@@ -6661,7 +6664,7 @@ const ll = ({
|
|
|
6661
6664
|
!1
|
|
6662
6665
|
);
|
|
6663
6666
|
}, [
|
|
6664
|
-
|
|
6667
|
+
d,
|
|
6665
6668
|
l,
|
|
6666
6669
|
f,
|
|
6667
6670
|
m,
|
|
@@ -6673,27 +6676,27 @@ const ll = ({
|
|
|
6673
6676
|
s(k, N);
|
|
6674
6677
|
return;
|
|
6675
6678
|
}
|
|
6676
|
-
|
|
6677
|
-
}, [s,
|
|
6679
|
+
d && u(d, l ?? "", { current: k, pageSize: N, total: D }), o && e && v(e, ae(o, { page: k, pageSize: N }));
|
|
6680
|
+
}, [s, d, l, u, D, o, e, v]), j = K((k, N) => {
|
|
6678
6681
|
if (c) {
|
|
6679
6682
|
c(k, N);
|
|
6680
6683
|
return;
|
|
6681
6684
|
}
|
|
6682
|
-
|
|
6683
|
-
}, [c,
|
|
6685
|
+
d && u(d, l ?? "", { current: k, pageSize: N, total: D }), a && e && v(e, ae(a, { current: k, pageSize: N }));
|
|
6686
|
+
}, [c, d, l, u, D, a, e, v]);
|
|
6684
6687
|
return /* @__PURE__ */ g(
|
|
6685
6688
|
mr,
|
|
6686
6689
|
{
|
|
6687
|
-
...
|
|
6690
|
+
...w,
|
|
6688
6691
|
current: A,
|
|
6689
|
-
pageSize:
|
|
6692
|
+
pageSize: x,
|
|
6690
6693
|
total: D,
|
|
6691
6694
|
onChange: T,
|
|
6692
6695
|
onShowSizeChange: j,
|
|
6693
6696
|
showTotal: y(() => {
|
|
6694
|
-
const k =
|
|
6697
|
+
const k = w.showTotal;
|
|
6695
6698
|
return typeof k == "string" ? (N, M) => k.replace("${total}", String(N)).replace("${range[0]}", String(M[0])).replace("${range[1]}", String(M[1])).replace("${range}", `${M[0]}-${M[1]}`) : k;
|
|
6696
|
-
}, [
|
|
6699
|
+
}, [w.showTotal])
|
|
6697
6700
|
}
|
|
6698
6701
|
);
|
|
6699
6702
|
}, ul = ({
|
|
@@ -6704,33 +6707,33 @@ const ll = ({
|
|
|
6704
6707
|
children: r,
|
|
6705
6708
|
...o
|
|
6706
6709
|
}) => /* @__PURE__ */ g(li, { ...o, items: i, children: r }), It = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), xs = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
6707
|
-
const o = Ke(null), a = Ke(null), [s, c] = Ce(0), [f, m] = Ce(!1), [p, h] = Ce(0), [
|
|
6710
|
+
const o = Ke(null), a = Ke(null), [s, c] = Ce(0), [f, m] = Ce(!1), [p, h] = Ce(0), [w, v] = Ce(0), u = t === "horizontal";
|
|
6708
6711
|
$e(() => {
|
|
6709
|
-
const
|
|
6712
|
+
const x = () => {
|
|
6710
6713
|
if (!o.current || !a.current) return;
|
|
6711
6714
|
const T = o.current, j = a.current;
|
|
6712
6715
|
let k = 0, N = 0, M = !1;
|
|
6713
|
-
|
|
6714
|
-
}, D = new ResizeObserver(
|
|
6715
|
-
return o.current && D.observe(o.current), a.current && D.observe(a.current),
|
|
6716
|
-
}, [
|
|
6717
|
-
const
|
|
6716
|
+
u ? (k = T.clientWidth, N = j.scrollWidth, M = N > k) : (k = T.clientHeight, N = j.scrollHeight, M = N > k), v(k), h(N), m(M), M || c(0);
|
|
6717
|
+
}, D = new ResizeObserver(x);
|
|
6718
|
+
return o.current && D.observe(o.current), a.current && D.observe(a.current), x(), () => D.disconnect();
|
|
6719
|
+
}, [u]);
|
|
6720
|
+
const d = s <= 0, l = !f || s >= p - w, S = K(() => {
|
|
6718
6721
|
var D, T;
|
|
6719
|
-
if (
|
|
6720
|
-
const
|
|
6721
|
-
c((j) => Math.max(0, j -
|
|
6722
|
-
}, [
|
|
6722
|
+
if (d) return;
|
|
6723
|
+
const x = u ? ((D = o.current) == null ? void 0 : D.clientWidth) ?? 200 : ((T = o.current) == null ? void 0 : T.clientHeight) ?? 200;
|
|
6724
|
+
c((j) => Math.max(0, j - x));
|
|
6725
|
+
}, [u, d]), b = K(() => {
|
|
6723
6726
|
var T, j, k, N, M, E;
|
|
6724
6727
|
if (l) return;
|
|
6725
|
-
const
|
|
6726
|
-
c((_) => Math.min(D, _ +
|
|
6727
|
-
}, [
|
|
6728
|
+
const x = u ? ((T = o.current) == null ? void 0 : T.clientWidth) ?? 200 : ((j = o.current) == null ? void 0 : j.clientHeight) ?? 200, D = u ? (((k = a.current) == null ? void 0 : k.scrollWidth) ?? 0) - (((N = o.current) == null ? void 0 : N.clientWidth) ?? 0) : (((M = a.current) == null ? void 0 : M.scrollHeight) ?? 0) - (((E = o.current) == null ? void 0 : E.clientHeight) ?? 0);
|
|
6729
|
+
c((_) => Math.min(D, _ + x));
|
|
6730
|
+
}, [u, l]), C = n || (u ? /* @__PURE__ */ g(Sr, {}) : /* @__PURE__ */ g(Oi, {})), A = i || (u ? /* @__PURE__ */ g(wr, {}) : /* @__PURE__ */ g(xr, {}));
|
|
6728
6731
|
return /* @__PURE__ */ ve(
|
|
6729
6732
|
"div",
|
|
6730
6733
|
{
|
|
6731
6734
|
style: {
|
|
6732
6735
|
display: "flex",
|
|
6733
|
-
flexDirection:
|
|
6736
|
+
flexDirection: u ? "row" : "column",
|
|
6734
6737
|
alignItems: "center",
|
|
6735
6738
|
width: "100%",
|
|
6736
6739
|
height: "100%"
|
|
@@ -6743,12 +6746,12 @@ const ll = ({
|
|
|
6743
6746
|
size: "middle",
|
|
6744
6747
|
icon: C,
|
|
6745
6748
|
shape: "circle",
|
|
6746
|
-
disabled:
|
|
6749
|
+
disabled: d,
|
|
6747
6750
|
onClick: S,
|
|
6748
6751
|
style: {
|
|
6749
6752
|
flexShrink: 0,
|
|
6750
6753
|
alignSelf: "center",
|
|
6751
|
-
margin:
|
|
6754
|
+
margin: u ? "0 4px" : "4px 0",
|
|
6752
6755
|
...e,
|
|
6753
6756
|
borderRadius: "50%"
|
|
6754
6757
|
// 确保圆形,覆盖arrowStyle中的borderRadius
|
|
@@ -6764,17 +6767,17 @@ const ll = ({
|
|
|
6764
6767
|
overflow: "hidden",
|
|
6765
6768
|
position: "relative",
|
|
6766
6769
|
display: "flex",
|
|
6767
|
-
justifyContent:
|
|
6770
|
+
justifyContent: u && !f ? "center" : "flex-start"
|
|
6768
6771
|
},
|
|
6769
6772
|
children: /* @__PURE__ */ g(
|
|
6770
6773
|
"div",
|
|
6771
6774
|
{
|
|
6772
6775
|
ref: a,
|
|
6773
6776
|
style: {
|
|
6774
|
-
transform:
|
|
6777
|
+
transform: u ? `translateX(-${s}px)` : `translateY(-${s}px)`,
|
|
6775
6778
|
transition: "transform 0.3s ease-out",
|
|
6776
|
-
display:
|
|
6777
|
-
whiteSpace:
|
|
6779
|
+
display: u ? "inline-flex" : "block",
|
|
6780
|
+
whiteSpace: u ? "nowrap" : "normal"
|
|
6778
6781
|
},
|
|
6779
6782
|
children: r
|
|
6780
6783
|
}
|
|
@@ -6793,7 +6796,7 @@ const ll = ({
|
|
|
6793
6796
|
style: {
|
|
6794
6797
|
flexShrink: 0,
|
|
6795
6798
|
alignSelf: "center",
|
|
6796
|
-
margin:
|
|
6799
|
+
margin: u ? "0 4px" : "4px 0",
|
|
6797
6800
|
...e,
|
|
6798
6801
|
borderRadius: "50%"
|
|
6799
6802
|
// 确保圆形,覆盖arrowStyle中的borderRadius
|
|
@@ -6829,16 +6832,16 @@ const ll = ({
|
|
|
6829
6832
|
onClick: m,
|
|
6830
6833
|
onSelect: p,
|
|
6831
6834
|
onOpenChange: h,
|
|
6832
|
-
onDeselect:
|
|
6835
|
+
onDeselect: w,
|
|
6833
6836
|
items: v,
|
|
6834
|
-
selectedKeys:
|
|
6835
|
-
openKeys:
|
|
6837
|
+
selectedKeys: u,
|
|
6838
|
+
openKeys: d,
|
|
6836
6839
|
defaultOpenKeys: l,
|
|
6837
6840
|
styles: S,
|
|
6838
6841
|
classNames: b,
|
|
6839
6842
|
token: C,
|
|
6840
6843
|
expandIcon: A,
|
|
6841
|
-
overflowedIndicator:
|
|
6844
|
+
overflowedIndicator: x,
|
|
6842
6845
|
openKeysDataSet: D,
|
|
6843
6846
|
openKeysDataSetField: T,
|
|
6844
6847
|
mode: j,
|
|
@@ -6878,16 +6881,16 @@ const ll = ({
|
|
|
6878
6881
|
() => (oe == null ? void 0 : oe.items) ?? (Array.isArray(oe) ? oe : void 0) ?? (Array.isArray(oe == null ? void 0 : oe.value) ? oe.value : void 0),
|
|
6879
6882
|
[oe]
|
|
6880
6883
|
), ne = y(() => n ? pe ?? v ?? [] : q ? pe ?? [] : v ?? [], [n, q, pe, v]), ue = y(
|
|
6881
|
-
() => (F == null ? void 0 : F.selectedKeys) ?? oe.selectedKeys ??
|
|
6882
|
-
[F == null ? void 0 : F.selectedKeys, oe.selectedKeys,
|
|
6884
|
+
() => (F == null ? void 0 : F.selectedKeys) ?? oe.selectedKeys ?? u,
|
|
6885
|
+
[F == null ? void 0 : F.selectedKeys, oe.selectedKeys, u]
|
|
6883
6886
|
), de = y(
|
|
6884
|
-
() => (F == null ? void 0 : F.openKeys) ?? oe.openKeys ?? (D && T ? void 0 :
|
|
6887
|
+
() => (F == null ? void 0 : F.openKeys) ?? oe.openKeys ?? (D && T ? void 0 : d),
|
|
6885
6888
|
[
|
|
6886
6889
|
F == null ? void 0 : F.openKeys,
|
|
6887
6890
|
oe.openKeys,
|
|
6888
6891
|
D,
|
|
6889
6892
|
T,
|
|
6890
|
-
|
|
6893
|
+
d
|
|
6891
6894
|
]
|
|
6892
6895
|
), fe = y(
|
|
6893
6896
|
() => ye(e, D),
|
|
@@ -6980,8 +6983,8 @@ const ll = ({
|
|
|
6980
6983
|
]
|
|
6981
6984
|
), Ee = K(
|
|
6982
6985
|
(J) => {
|
|
6983
|
-
if (
|
|
6984
|
-
|
|
6986
|
+
if (w) {
|
|
6987
|
+
w(J);
|
|
6985
6988
|
return;
|
|
6986
6989
|
}
|
|
6987
6990
|
f && e && O(
|
|
@@ -6992,7 +6995,7 @@ const ll = ({
|
|
|
6992
6995
|
})
|
|
6993
6996
|
);
|
|
6994
6997
|
},
|
|
6995
|
-
[
|
|
6998
|
+
[w, f, e, O]
|
|
6996
6999
|
), Fe = j === "inline" && k !== void 0 ? { inlineCollapsed: k } : {}, Le = y(() => {
|
|
6997
7000
|
if (!C) return;
|
|
6998
7001
|
const J = {};
|
|
@@ -7026,7 +7029,7 @@ const ll = ({
|
|
|
7026
7029
|
if (J) return /* @__PURE__ */ g(J, {});
|
|
7027
7030
|
}
|
|
7028
7031
|
return z;
|
|
7029
|
-
}, [z]), re = y(() => M === "pagination" || M === "scroll" ? null :
|
|
7032
|
+
}, [z]), re = y(() => M === "pagination" || M === "scroll" ? null : x, [M, x]), le = ki(), H = t || le.replace(/:/g, "-"), se = y(() => {
|
|
7030
7033
|
var Me;
|
|
7031
7034
|
if (!S || typeof S == "function") return "";
|
|
7032
7035
|
const J = (Me = S.subMenu) == null ? void 0 : Me.root;
|
|
@@ -7110,24 +7113,24 @@ const ll = ({
|
|
|
7110
7113
|
size: m,
|
|
7111
7114
|
status: p,
|
|
7112
7115
|
text: h,
|
|
7113
|
-
color:
|
|
7116
|
+
color: w,
|
|
7114
7117
|
title: v,
|
|
7115
|
-
children:
|
|
7116
|
-
...
|
|
7118
|
+
children: u,
|
|
7119
|
+
...d
|
|
7117
7120
|
}) => {
|
|
7118
7121
|
const l = R((T) => T.getDataSet), S = y(
|
|
7119
7122
|
() => ye(e, i),
|
|
7120
7123
|
[e, i]
|
|
7121
7124
|
), b = y(() => {
|
|
7122
7125
|
if (S && r) return l(S, r);
|
|
7123
|
-
}, [S, r, l]), C = y(() => b ?? o, [b, o]),
|
|
7124
|
-
if (!(!
|
|
7125
|
-
return
|
|
7126
|
-
}, [
|
|
7126
|
+
}, [S, r, l]), C = y(() => b ?? o, [b, o]), x = (mt.useToken ? mt.useToken() : { token: void 0 }).token, D = y(() => {
|
|
7127
|
+
if (!(!w || typeof w != "string"))
|
|
7128
|
+
return x && w in x ? x[w] : w;
|
|
7129
|
+
}, [w, x]);
|
|
7127
7130
|
return /* @__PURE__ */ g(
|
|
7128
7131
|
yr,
|
|
7129
7132
|
{
|
|
7130
|
-
...
|
|
7133
|
+
...d,
|
|
7131
7134
|
count: C,
|
|
7132
7135
|
showZero: a,
|
|
7133
7136
|
overflowCount: s,
|
|
@@ -7145,11 +7148,11 @@ const ll = ({
|
|
|
7145
7148
|
className: "and-badge-content-slot",
|
|
7146
7149
|
style: {
|
|
7147
7150
|
display: "inline-block",
|
|
7148
|
-
minWidth: !
|
|
7151
|
+
minWidth: !u && !h ? "20px" : void 0,
|
|
7149
7152
|
// 给一个最小宽度以便拖拽?
|
|
7150
|
-
minHeight: !
|
|
7153
|
+
minHeight: !u && !h ? "20px" : void 0
|
|
7151
7154
|
},
|
|
7152
|
-
children:
|
|
7155
|
+
children: u
|
|
7153
7156
|
}
|
|
7154
7157
|
)
|
|
7155
7158
|
}
|
|
@@ -7171,17 +7174,17 @@ const ll = ({
|
|
|
7171
7174
|
[e, i]
|
|
7172
7175
|
), h = y(() => {
|
|
7173
7176
|
if (p && r) return m(p, r);
|
|
7174
|
-
}, [p, r, m]),
|
|
7177
|
+
}, [p, r, m]), w = y(() => h ?? o, [h, o]), u = (mt.useToken ? mt.useToken() : { token: void 0 }).token, d = y(() => {
|
|
7175
7178
|
if (!(!s || typeof s != "string"))
|
|
7176
|
-
return
|
|
7177
|
-
}, [s,
|
|
7179
|
+
return u && s in u ? u[s] : s;
|
|
7180
|
+
}, [s, u]);
|
|
7178
7181
|
return /* @__PURE__ */ g(
|
|
7179
7182
|
yr.Ribbon,
|
|
7180
7183
|
{
|
|
7181
7184
|
...f,
|
|
7182
|
-
text:
|
|
7185
|
+
text: w,
|
|
7183
7186
|
placement: a,
|
|
7184
|
-
color:
|
|
7187
|
+
color: d,
|
|
7185
7188
|
children: /* @__PURE__ */ g(
|
|
7186
7189
|
"div",
|
|
7187
7190
|
{
|
|
@@ -7253,25 +7256,25 @@ const ll = ({
|
|
|
7253
7256
|
itemRender: p,
|
|
7254
7257
|
...h
|
|
7255
7258
|
}) => {
|
|
7256
|
-
const
|
|
7257
|
-
() => ye(
|
|
7258
|
-
[
|
|
7259
|
-
), C = R((V) => b &&
|
|
7259
|
+
const w = dt(i, r, e), v = w.dataSet, u = w.dataSetField, d = w.sessionId, l = rt(Je), S = R((V) => V.addCommand), b = y(
|
|
7260
|
+
() => ye(d, v),
|
|
7261
|
+
[d, v]
|
|
7262
|
+
), C = R((V) => b && u ? V.getDataSet(b, u) : null), A = y(() => !d || t == null || t === "" ? null : l && typeof l.index == "number" ? `${String(t)}_${l.index}` : String(t), [d, t, l]), x = R(
|
|
7260
7263
|
(V) => {
|
|
7261
7264
|
var $;
|
|
7262
|
-
return A ? (($ = V.propsStore[`${
|
|
7265
|
+
return A ? (($ = V.propsStore[`${d}_props`]) == null ? void 0 : $[A]) ?? null : null;
|
|
7263
7266
|
}
|
|
7264
|
-
), D = y(() => C && Array.isArray(C) ? C : Ds(o), [C, o]), T = (
|
|
7267
|
+
), D = y(() => C && Array.isArray(C) ? C : Ds(o), [C, o]), T = (x == null ? void 0 : x.columns) !== void 0 && (x == null ? void 0 : x.columns) !== null ? x.columns : a, j = y(() => Cs(T), [T]), k = y(() => Ns(s), [s]), N = y(() => {
|
|
7265
7268
|
if (m) return m;
|
|
7266
|
-
if (f &&
|
|
7269
|
+
if (f && d)
|
|
7267
7270
|
return (V) => {
|
|
7268
|
-
S(
|
|
7271
|
+
S(d, {
|
|
7269
7272
|
actionName: f,
|
|
7270
7273
|
arg: V,
|
|
7271
7274
|
timestamp: Date.now()
|
|
7272
7275
|
});
|
|
7273
7276
|
};
|
|
7274
|
-
}, [m, f,
|
|
7277
|
+
}, [m, f, d, S]), M = y(() => D.length > 0 ? D : n ? [
|
|
7275
7278
|
{ key: "1", height: 150, data: { title: "示例项 1" } },
|
|
7276
7279
|
{ key: "2", height: 200, data: { title: "示例项 2" } },
|
|
7277
7280
|
{ key: "3", height: 120, data: { title: "示例项 3" } },
|
|
@@ -7303,7 +7306,7 @@ const ll = ({
|
|
|
7303
7306
|
};
|
|
7304
7307
|
}, [p, n]), _ = y(() => {
|
|
7305
7308
|
if (E)
|
|
7306
|
-
return !v || !
|
|
7309
|
+
return !v || !u ? E : (V, $) => {
|
|
7307
7310
|
const Y = typeof $ == "number" ? $ : typeof (V == null ? void 0 : V.index) == "number" ? V.index : Number((V == null ? void 0 : V.index) ?? 0);
|
|
7308
7311
|
return /* @__PURE__ */ g(
|
|
7309
7312
|
Je.Provider,
|
|
@@ -7313,14 +7316,14 @@ const ll = ({
|
|
|
7313
7316
|
index: Y,
|
|
7314
7317
|
parentIndex: l == null ? void 0 : l.index,
|
|
7315
7318
|
parentContext: l ?? void 0,
|
|
7316
|
-
sessionId:
|
|
7317
|
-
dataSetFieldRoot:
|
|
7319
|
+
sessionId: d,
|
|
7320
|
+
dataSetFieldRoot: u
|
|
7318
7321
|
},
|
|
7319
7322
|
children: E(V)
|
|
7320
7323
|
}
|
|
7321
7324
|
);
|
|
7322
7325
|
};
|
|
7323
|
-
}, [E, v,
|
|
7326
|
+
}, [E, v, u, d]), {
|
|
7324
7327
|
layoutChangeAction: z,
|
|
7325
7328
|
...L
|
|
7326
7329
|
} = h;
|
|
@@ -7350,17 +7353,17 @@ const ll = ({
|
|
|
7350
7353
|
closable: m,
|
|
7351
7354
|
...p
|
|
7352
7355
|
}) => {
|
|
7353
|
-
const h = R((A) => A.getDataSet),
|
|
7356
|
+
const h = R((A) => A.getDataSet), w = R((A) => A.getProps), v = y(
|
|
7354
7357
|
() => ye(e, o),
|
|
7355
7358
|
[e, o]
|
|
7356
|
-
),
|
|
7359
|
+
), u = y(() => e && t ? w(e, t) : null, [e, t, w]), d = y(() => {
|
|
7357
7360
|
if (v && a) return h(v, a);
|
|
7358
|
-
}, [v, a, h]), l = y(() => n ? s :
|
|
7361
|
+
}, [v, a, h]), l = y(() => n ? s : d != null && d !== "" ? String(d) : (u == null ? void 0 : u.title) !== void 0 ? u.title : (u == null ? void 0 : u.message) !== void 0 ? u.message : s, [n, d, u == null ? void 0 : u.title, u == null ? void 0 : u.message, s]), S = y(() => {
|
|
7359
7362
|
const A = { ...p, description: c };
|
|
7360
|
-
return
|
|
7361
|
-
|
|
7363
|
+
return u && typeof u == "object" && Object.keys(u).forEach((x) => {
|
|
7364
|
+
x !== "title" && x !== "message" && u[x] !== void 0 && u[x] !== null && (A[x] = u[x]);
|
|
7362
7365
|
}), A;
|
|
7363
|
-
}, [p, c,
|
|
7366
|
+
}, [p, c, u]), b = y(() => f ? { closeIcon: /* @__PURE__ */ g("span", { children: f }) } : m, [f, m]), C = K((A) => {
|
|
7364
7367
|
r && r(A);
|
|
7365
7368
|
}, [r]);
|
|
7366
7369
|
return /* @__PURE__ */ g(
|
|
@@ -7386,25 +7389,25 @@ const ll = ({
|
|
|
7386
7389
|
children: m,
|
|
7387
7390
|
...p
|
|
7388
7391
|
}) => {
|
|
7389
|
-
const h = R((C) => C.addCommand),
|
|
7392
|
+
const h = R((C) => C.addCommand), w = R((C) => C.getDataSet), v = R((C) => C.setDataSet), u = y(
|
|
7390
7393
|
() => ye(e, i),
|
|
7391
7394
|
[e, i]
|
|
7392
|
-
),
|
|
7393
|
-
if (
|
|
7394
|
-
return
|
|
7395
|
-
}, [
|
|
7396
|
-
s && s(),
|
|
7395
|
+
), d = y(() => {
|
|
7396
|
+
if (u && r)
|
|
7397
|
+
return w(u, r);
|
|
7398
|
+
}, [u, r, w]), l = d !== void 0 ? !!d : f, S = K(() => {
|
|
7399
|
+
s && s(), u && r && v(u, r, !1), o && e && h(e, {
|
|
7397
7400
|
actionName: o,
|
|
7398
7401
|
arg: null,
|
|
7399
7402
|
timestamp: Date.now()
|
|
7400
7403
|
});
|
|
7401
|
-
}, [s,
|
|
7402
|
-
c && c(),
|
|
7404
|
+
}, [s, u, r, v, o, e, h]), b = K(() => {
|
|
7405
|
+
c && c(), u && r && v(u, r, !1), a && e && h(e, {
|
|
7403
7406
|
actionName: a,
|
|
7404
7407
|
arg: null,
|
|
7405
7408
|
timestamp: Date.now()
|
|
7406
7409
|
});
|
|
7407
|
-
}, [c,
|
|
7410
|
+
}, [c, u, r, v, a, e, h]);
|
|
7408
7411
|
return /* @__PURE__ */ g(
|
|
7409
7412
|
ur,
|
|
7410
7413
|
{
|
|
@@ -7427,25 +7430,25 @@ const ll = ({
|
|
|
7427
7430
|
children: c,
|
|
7428
7431
|
...f
|
|
7429
7432
|
}) => {
|
|
7430
|
-
const m = R((l) => l.addCommand), p = R((l) => l.getDataSet), h = R((l) => l.setDataSet),
|
|
7433
|
+
const m = R((l) => l.addCommand), p = R((l) => l.getDataSet), h = R((l) => l.setDataSet), w = y(
|
|
7431
7434
|
() => ye(e, i),
|
|
7432
7435
|
[e, i]
|
|
7433
7436
|
), v = y(() => {
|
|
7434
|
-
if (
|
|
7435
|
-
return p(
|
|
7436
|
-
}, [
|
|
7437
|
-
a && a(),
|
|
7437
|
+
if (w && r)
|
|
7438
|
+
return p(w, r);
|
|
7439
|
+
}, [w, r, p]), u = v !== void 0 ? !!v : s, d = K(() => {
|
|
7440
|
+
a && a(), w && r && h(w, r, !1), o && e && m(e, {
|
|
7438
7441
|
actionName: o,
|
|
7439
7442
|
arg: null,
|
|
7440
7443
|
timestamp: Date.now()
|
|
7441
7444
|
});
|
|
7442
|
-
}, [a,
|
|
7445
|
+
}, [a, w, r, h, o, e, m]);
|
|
7443
7446
|
return /* @__PURE__ */ g(
|
|
7444
7447
|
mi,
|
|
7445
7448
|
{
|
|
7446
7449
|
...f,
|
|
7447
|
-
open:
|
|
7448
|
-
onClose:
|
|
7450
|
+
open: u,
|
|
7451
|
+
onClose: d,
|
|
7449
7452
|
children: c
|
|
7450
7453
|
}
|
|
7451
7454
|
);
|
|
@@ -7503,11 +7506,11 @@ const ll = ({
|
|
|
7503
7506
|
tabList: m,
|
|
7504
7507
|
activeTabKey: p,
|
|
7505
7508
|
defaultActiveTabKey: h,
|
|
7506
|
-
tabChangeAction:
|
|
7509
|
+
tabChangeAction: w,
|
|
7507
7510
|
onTabChange: v,
|
|
7508
7511
|
// 样式
|
|
7509
|
-
styles:
|
|
7510
|
-
token:
|
|
7512
|
+
styles: u,
|
|
7513
|
+
token: d,
|
|
7511
7514
|
// 过滤掉不应该传递给 Card 的 props (避免 React 警告)
|
|
7512
7515
|
// 这些属性主要由 GrapesJS 使用或在内部逻辑处理,不需要传递给 Antd Card
|
|
7513
7516
|
showHeader: l,
|
|
@@ -7517,20 +7520,20 @@ const ll = ({
|
|
|
7517
7520
|
size: C,
|
|
7518
7521
|
// 其他
|
|
7519
7522
|
children: A,
|
|
7520
|
-
...
|
|
7523
|
+
...x
|
|
7521
7524
|
}) => {
|
|
7522
7525
|
const D = R((G) => G.addCommand), T = R((G) => G.getDataSet), j = R((G) => G.setDataSet), k = y(
|
|
7523
7526
|
() => ye(e, i),
|
|
7524
7527
|
[e, i]
|
|
7525
7528
|
), N = C === "default" ? "medium" : C, M = y(() => {
|
|
7526
|
-
const G = xn(
|
|
7529
|
+
const G = xn(u, {});
|
|
7527
7530
|
return Object.fromEntries(
|
|
7528
7531
|
Object.entries(G).map(([oe, pe]) => [
|
|
7529
7532
|
oe,
|
|
7530
7533
|
ks(pe)
|
|
7531
7534
|
])
|
|
7532
7535
|
);
|
|
7533
|
-
}, [
|
|
7536
|
+
}, [u]), E = y(() => {
|
|
7534
7537
|
const G = Ms(m);
|
|
7535
7538
|
return G.length > 0 ? G : void 0;
|
|
7536
7539
|
}, [m]), z = y(() => {
|
|
@@ -7543,8 +7546,8 @@ const ll = ({
|
|
|
7543
7546
|
v(G);
|
|
7544
7547
|
return;
|
|
7545
7548
|
}
|
|
7546
|
-
k && r && j(k, `${r}.activeTabKey`, G),
|
|
7547
|
-
}, [v, k, r, j,
|
|
7549
|
+
k && r && j(k, `${r}.activeTabKey`, G), w && e && D(e, ae(w, { key: G }));
|
|
7550
|
+
}, [v, k, r, j, w, e, D]), { titleSlot: V, extraSlot: $, coverSlot: Y, actionsSlot: F, otherChildren: O, actionsFromChildren: B } = y(() => {
|
|
7548
7551
|
let G = null, oe = null, pe = null, ne = [];
|
|
7549
7552
|
const ue = [];
|
|
7550
7553
|
let de = !1;
|
|
@@ -7557,12 +7560,12 @@ const ll = ({
|
|
|
7557
7560
|
W === "title" && !o ? G = fe : W === "extra" && !a ? oe = fe : W === "cover" && !s ? pe = fe : W === "actions" && !f ? (ne = [fe], de = !0) : W === "body" && ee.children ? ue.push(ee.children) : ue.push(fe);
|
|
7558
7561
|
}), { titleSlot: G, extraSlot: oe, coverSlot: pe, actionsSlot: ne, otherChildren: ue, actionsFromChildren: de };
|
|
7559
7562
|
}, [A, o, a, s, f]), q = y(() => {
|
|
7560
|
-
const G = xn(
|
|
7563
|
+
const G = xn(d, {});
|
|
7561
7564
|
return B ? { actionsLiMargin: "0px", ...G } : G;
|
|
7562
|
-
}, [
|
|
7565
|
+
}, [d, B]), P = /* @__PURE__ */ g(
|
|
7563
7566
|
mn,
|
|
7564
7567
|
{
|
|
7565
|
-
...
|
|
7568
|
+
...x,
|
|
7566
7569
|
size: N,
|
|
7567
7570
|
title: V,
|
|
7568
7571
|
extra: $,
|
|
@@ -7629,23 +7632,23 @@ const ll = ({
|
|
|
7629
7632
|
openChangeAction: m,
|
|
7630
7633
|
onOpenChange: p,
|
|
7631
7634
|
children: h,
|
|
7632
|
-
hasChildren:
|
|
7635
|
+
hasChildren: w,
|
|
7633
7636
|
index: v,
|
|
7634
|
-
...
|
|
7637
|
+
...u
|
|
7635
7638
|
}) => {
|
|
7636
|
-
const
|
|
7639
|
+
const d = R((N) => N.addCommand), l = rt(Je), S = v ?? (l == null ? void 0 : l.index), b = l == null ? void 0 : l.parentIndex, C = y(
|
|
7637
7640
|
() => ye(e, i),
|
|
7638
7641
|
[e, i]
|
|
7639
7642
|
), A = R((N) => {
|
|
7640
7643
|
if (C)
|
|
7641
7644
|
return r ? N.getDataSet(C, r) : N.dataSets[C];
|
|
7642
|
-
}),
|
|
7645
|
+
}), x = y(() => {
|
|
7643
7646
|
if (A == null) return;
|
|
7644
7647
|
if (Array.isArray(A)) return A;
|
|
7645
7648
|
const N = A;
|
|
7646
7649
|
if (Array.isArray(N == null ? void 0 : N.items)) return N.items;
|
|
7647
7650
|
if (Array.isArray(N == null ? void 0 : N.value)) return N.value;
|
|
7648
|
-
}, [A]), D = y(() => n ?
|
|
7651
|
+
}, [A]), D = y(() => n ? x ?? nr(a) ?? [] : C ? x ?? [] : nr(a) ?? [], [n, C, x, a]), T = K(
|
|
7649
7652
|
(N, M) => {
|
|
7650
7653
|
if (p) {
|
|
7651
7654
|
p(N, M);
|
|
@@ -7660,14 +7663,14 @@ const ll = ({
|
|
|
7660
7663
|
parentIndex: b,
|
|
7661
7664
|
source: M.source
|
|
7662
7665
|
});
|
|
7663
|
-
|
|
7666
|
+
d(e, ae(E, _));
|
|
7664
7667
|
}
|
|
7665
7668
|
},
|
|
7666
7669
|
[
|
|
7667
7670
|
p,
|
|
7668
7671
|
m,
|
|
7669
7672
|
e,
|
|
7670
|
-
|
|
7673
|
+
d,
|
|
7671
7674
|
t,
|
|
7672
7675
|
i,
|
|
7673
7676
|
r,
|
|
@@ -7688,7 +7691,7 @@ const ll = ({
|
|
|
7688
7691
|
key: N.key,
|
|
7689
7692
|
keyPath: N.keyPath
|
|
7690
7693
|
});
|
|
7691
|
-
|
|
7694
|
+
d(e, ae(M, E));
|
|
7692
7695
|
}
|
|
7693
7696
|
},
|
|
7694
7697
|
onSelect: (N) => {
|
|
@@ -7703,7 +7706,7 @@ const ll = ({
|
|
|
7703
7706
|
keyPath: N.keyPath,
|
|
7704
7707
|
selectedKeys: N.selectedKeys
|
|
7705
7708
|
});
|
|
7706
|
-
|
|
7709
|
+
d(e, ae(M, E));
|
|
7707
7710
|
}
|
|
7708
7711
|
},
|
|
7709
7712
|
onDeselect: (N) => {
|
|
@@ -7718,7 +7721,7 @@ const ll = ({
|
|
|
7718
7721
|
keyPath: N.keyPath,
|
|
7719
7722
|
selectedKeys: N.selectedKeys
|
|
7720
7723
|
});
|
|
7721
|
-
|
|
7724
|
+
d(e, ae(M, E));
|
|
7722
7725
|
}
|
|
7723
7726
|
}
|
|
7724
7727
|
}),
|
|
@@ -7728,7 +7731,7 @@ const ll = ({
|
|
|
7728
7731
|
c,
|
|
7729
7732
|
f,
|
|
7730
7733
|
e,
|
|
7731
|
-
|
|
7734
|
+
d,
|
|
7732
7735
|
t,
|
|
7733
7736
|
i,
|
|
7734
7737
|
r,
|
|
@@ -7742,15 +7745,15 @@ const ll = ({
|
|
|
7742
7745
|
style: { display: "inline-block", cursor: "pointer" },
|
|
7743
7746
|
children: [
|
|
7744
7747
|
h,
|
|
7745
|
-
n && !h && !
|
|
7748
|
+
n && !h && !w && /* @__PURE__ */ g("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
7746
7749
|
!h && !n && o && /* @__PURE__ */ g(ct, { children: /* @__PURE__ */ ve(Oe, { children: [
|
|
7747
7750
|
o,
|
|
7748
7751
|
/* @__PURE__ */ g(xr, {})
|
|
7749
7752
|
] }) })
|
|
7750
7753
|
]
|
|
7751
7754
|
}
|
|
7752
|
-
), [h, n, o,
|
|
7753
|
-
return /* @__PURE__ */ g(hi, { ...
|
|
7755
|
+
), [h, n, o, w]);
|
|
7756
|
+
return /* @__PURE__ */ g(hi, { ...u, menu: j, onOpenChange: T, children: k });
|
|
7754
7757
|
}, Al = ({
|
|
7755
7758
|
id: t,
|
|
7756
7759
|
sessionId: e,
|
|
@@ -7783,13 +7786,13 @@ const ll = ({
|
|
|
7783
7786
|
[e, i]
|
|
7784
7787
|
), m = y(() => e && t ? c(e, t) : null, [e, t, c]), p = y(() => {
|
|
7785
7788
|
if (f && r) return s(f, r);
|
|
7786
|
-
}, [f, r, s]), h = y(() => n ? o : p != null && p !== "" ? String(p) : (m == null ? void 0 : m.value) !== void 0 ? m.value : o, [n, p, m == null ? void 0 : m.value, o]),
|
|
7789
|
+
}, [f, r, s]), h = y(() => n ? o : p != null && p !== "" ? String(p) : (m == null ? void 0 : m.value) !== void 0 ? m.value : o, [n, p, m == null ? void 0 : m.value, o]), w = y(() => {
|
|
7787
7790
|
const v = { ...a };
|
|
7788
|
-
return m && typeof m == "object" && Object.keys(m).forEach((
|
|
7789
|
-
|
|
7791
|
+
return m && typeof m == "object" && Object.keys(m).forEach((u) => {
|
|
7792
|
+
u !== "value" && m[u] !== void 0 && m[u] !== null && (v[u] = m[u]);
|
|
7790
7793
|
}), v;
|
|
7791
7794
|
}, [a, m]);
|
|
7792
|
-
return /* @__PURE__ */ g(vi, { ...
|
|
7795
|
+
return /* @__PURE__ */ g(vi, { ...w, value: h || "" });
|
|
7793
7796
|
}, Rt = (t) => {
|
|
7794
7797
|
if (!t) return;
|
|
7795
7798
|
const e = at[t];
|
|
@@ -7820,15 +7823,15 @@ const ll = ({
|
|
|
7820
7823
|
onResize: m,
|
|
7821
7824
|
onResizeEnd: p,
|
|
7822
7825
|
styles: h,
|
|
7823
|
-
token:
|
|
7826
|
+
token: w,
|
|
7824
7827
|
children: v,
|
|
7825
|
-
renderPanelContent:
|
|
7826
|
-
...
|
|
7828
|
+
renderPanelContent: u,
|
|
7829
|
+
...d
|
|
7827
7830
|
}) => {
|
|
7828
7831
|
const l = R((M) => M.addCommand), S = y(
|
|
7829
7832
|
() => dn(i, []),
|
|
7830
7833
|
[i]
|
|
7831
|
-
), b = y(() => dn(
|
|
7834
|
+
), b = y(() => dn(w, {}), [w]), C = y(() => Rt(a), [a]), A = y(() => {
|
|
7832
7835
|
if (s) {
|
|
7833
7836
|
if (typeof s == "string") {
|
|
7834
7837
|
const M = dn(s, null);
|
|
@@ -7842,7 +7845,7 @@ const ll = ({
|
|
|
7842
7845
|
end: Rt(s.end)
|
|
7843
7846
|
};
|
|
7844
7847
|
}
|
|
7845
|
-
}, [s]),
|
|
7848
|
+
}, [s]), x = K(
|
|
7846
7849
|
(M) => {
|
|
7847
7850
|
if (m) {
|
|
7848
7851
|
m(M);
|
|
@@ -7882,7 +7885,7 @@ const ll = ({
|
|
|
7882
7885
|
max: M.max || void 0,
|
|
7883
7886
|
collapsible: M.collapsible,
|
|
7884
7887
|
resizable: M.resizable !== !1,
|
|
7885
|
-
children:
|
|
7888
|
+
children: u ? u(M.key, E) : /* @__PURE__ */ ve(
|
|
7886
7889
|
"div",
|
|
7887
7890
|
{
|
|
7888
7891
|
style: {
|
|
@@ -7901,13 +7904,13 @@ const ll = ({
|
|
|
7901
7904
|
)
|
|
7902
7905
|
},
|
|
7903
7906
|
M.key || E
|
|
7904
|
-
)), { layout: j, ...k } =
|
|
7907
|
+
)), { layout: j, ...k } = d, N = /* @__PURE__ */ g("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ g(
|
|
7905
7908
|
an,
|
|
7906
7909
|
{
|
|
7907
7910
|
...k,
|
|
7908
7911
|
orientation: r,
|
|
7909
7912
|
lazy: o,
|
|
7910
|
-
onResize:
|
|
7913
|
+
onResize: x,
|
|
7911
7914
|
onResizeEnd: D,
|
|
7912
7915
|
style: { height: "100%", width: "100%", ...k.style },
|
|
7913
7916
|
styles: h,
|
|
@@ -7953,10 +7956,10 @@ const ll = ({
|
|
|
7953
7956
|
children: m,
|
|
7954
7957
|
"page-disabled": p = !1,
|
|
7955
7958
|
"page-defaultPageSize": h = 10,
|
|
7956
|
-
"page-pageSizeOptions":
|
|
7959
|
+
"page-pageSizeOptions": w = ["10", "20", "30", "40"],
|
|
7957
7960
|
"page-showSizeChanger": v = !0,
|
|
7958
|
-
"page-showQuickJumper":
|
|
7959
|
-
"page-simple":
|
|
7961
|
+
"page-showQuickJumper": u = !1,
|
|
7962
|
+
"page-simple": d = !1,
|
|
7960
7963
|
"page-size": l = "small",
|
|
7961
7964
|
"page-showLessItems": S = !1,
|
|
7962
7965
|
"page-showTotal": b
|
|
@@ -7965,16 +7968,16 @@ const ll = ({
|
|
|
7965
7968
|
const L = b == null ? void 0 : b.trim();
|
|
7966
7969
|
if (L)
|
|
7967
7970
|
return (V, $) => L.replace(/\$\{total\}/g, String(V)).replace(/\$\{range\[0\]\}/g, String($[0])).replace(/\$\{range\[1\]\}/g, String($[1])).replace(/\$\{range\}/g, `${$[0]}-${$[1]}`);
|
|
7968
|
-
}, [b]),
|
|
7971
|
+
}, [b]), x = R((L) => L.getDataSet), D = y(
|
|
7969
7972
|
() => ye(e, i),
|
|
7970
7973
|
[e, i]
|
|
7971
7974
|
), [T, j] = Ce(1), [k, N] = Ce(h), M = y(() => {
|
|
7972
7975
|
if (D && r) {
|
|
7973
|
-
const L =
|
|
7976
|
+
const L = x(D, r);
|
|
7974
7977
|
return Array.isArray(L) ? L : [];
|
|
7975
7978
|
}
|
|
7976
7979
|
return [];
|
|
7977
|
-
}, [D, r,
|
|
7980
|
+
}, [D, r, x]), E = y(() => n ? M.length > 0 ? M : s || [] : D ? M : s || [], [n, D, M, s]), _ = y(() => {
|
|
7978
7981
|
let L = E;
|
|
7979
7982
|
if (!p) {
|
|
7980
7983
|
const V = (T - 1) * k, $ = V + k;
|
|
@@ -7996,10 +7999,10 @@ const ll = ({
|
|
|
7996
7999
|
pageSize: k,
|
|
7997
8000
|
total: E.length,
|
|
7998
8001
|
onChange: z,
|
|
7999
|
-
pageSizeOptions:
|
|
8002
|
+
pageSizeOptions: w,
|
|
8000
8003
|
showSizeChanger: v,
|
|
8001
|
-
showQuickJumper:
|
|
8002
|
-
simple:
|
|
8004
|
+
showQuickJumper: u,
|
|
8005
|
+
simple: d,
|
|
8003
8006
|
size: C,
|
|
8004
8007
|
showLessItems: S,
|
|
8005
8008
|
showTotal: A
|
|
@@ -8021,15 +8024,15 @@ const ll = ({
|
|
|
8021
8024
|
styles: p,
|
|
8022
8025
|
onClick: h
|
|
8023
8026
|
}) => {
|
|
8024
|
-
const
|
|
8027
|
+
const w = typeof r == "string" ? r.trim() : "", v = {
|
|
8025
8028
|
fontSize: o,
|
|
8026
8029
|
color: a,
|
|
8027
8030
|
cursor: h ? "pointer" : void 0,
|
|
8028
8031
|
...p,
|
|
8029
8032
|
...m
|
|
8030
8033
|
};
|
|
8031
|
-
if (
|
|
8032
|
-
const
|
|
8034
|
+
if (w) {
|
|
8035
|
+
const d = {
|
|
8033
8036
|
display: "inline-flex",
|
|
8034
8037
|
alignItems: "center",
|
|
8035
8038
|
justifyContent: "center",
|
|
@@ -8045,13 +8048,13 @@ const ll = ({
|
|
|
8045
8048
|
"span",
|
|
8046
8049
|
{
|
|
8047
8050
|
className: "and-icon-svg-root",
|
|
8048
|
-
style:
|
|
8051
|
+
style: d,
|
|
8049
8052
|
onClick: h,
|
|
8050
8053
|
role: h ? "button" : void 0,
|
|
8051
8054
|
children: /* @__PURE__ */ g("span", { style: s ? { animation: "and-icon-spin 1s linear infinite", display: "inline-flex" } : { display: "inline-flex" }, children: /* @__PURE__ */ g(
|
|
8052
8055
|
"span",
|
|
8053
8056
|
{
|
|
8054
|
-
dangerouslySetInnerHTML: { __html:
|
|
8057
|
+
dangerouslySetInnerHTML: { __html: w },
|
|
8055
8058
|
style: { width: "100%", height: "100%", display: "flex", alignItems: "center", justifyContent: "center" }
|
|
8056
8059
|
}
|
|
8057
8060
|
) })
|
|
@@ -8060,9 +8063,9 @@ const ll = ({
|
|
|
8060
8063
|
] });
|
|
8061
8064
|
}
|
|
8062
8065
|
if (!i) return null;
|
|
8063
|
-
const
|
|
8064
|
-
return
|
|
8065
|
-
|
|
8066
|
+
const u = at[i];
|
|
8067
|
+
return u ? /* @__PURE__ */ g(
|
|
8068
|
+
u,
|
|
8066
8069
|
{
|
|
8067
8070
|
style: v,
|
|
8068
8071
|
spin: s,
|
|
@@ -8082,45 +8085,45 @@ const ll = ({
|
|
|
8082
8085
|
clickAction: s,
|
|
8083
8086
|
style: c
|
|
8084
8087
|
}) => {
|
|
8085
|
-
const f = R((
|
|
8088
|
+
const f = R((u) => u.addCommand), m = R((u) => u.getDataSet), p = y(
|
|
8086
8089
|
() => ye(e, i),
|
|
8087
8090
|
[e, i]
|
|
8088
8091
|
), h = y(() => {
|
|
8089
8092
|
if (p && r) {
|
|
8090
|
-
const
|
|
8091
|
-
return Array.isArray(
|
|
8093
|
+
const u = m(p, r);
|
|
8094
|
+
return Array.isArray(u) ? u : [];
|
|
8092
8095
|
}
|
|
8093
8096
|
return [];
|
|
8094
|
-
}, [p, r, m]),
|
|
8095
|
-
s && e && f(e, ae(s,
|
|
8097
|
+
}, [p, r, m]), w = h.length > 0 ? h : o || [], v = (u) => {
|
|
8098
|
+
s && e && f(e, ae(s, u));
|
|
8096
8099
|
};
|
|
8097
|
-
return /* @__PURE__ */ g("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...c }, children:
|
|
8100
|
+
return /* @__PURE__ */ g("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...c }, children: w.map((u) => /* @__PURE__ */ g(
|
|
8098
8101
|
mn,
|
|
8099
8102
|
{
|
|
8100
8103
|
hoverable: !0,
|
|
8101
|
-
cover:
|
|
8102
|
-
onClick: () => v(
|
|
8104
|
+
cover: u.image && /* @__PURE__ */ g("img", { alt: u.name, src: u.image, style: { height: 200, objectFit: "cover" } }),
|
|
8105
|
+
onClick: () => v(u),
|
|
8103
8106
|
children: /* @__PURE__ */ g(
|
|
8104
8107
|
mn.Meta,
|
|
8105
8108
|
{
|
|
8106
|
-
title:
|
|
8109
|
+
title: u.name,
|
|
8107
8110
|
description: /* @__PURE__ */ ve(Oe, { direction: "vertical", size: 4, children: [
|
|
8108
|
-
|
|
8111
|
+
u.price !== void 0 && /* @__PURE__ */ ve("div", { children: [
|
|
8109
8112
|
/* @__PURE__ */ ve("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
|
|
8110
8113
|
"¥",
|
|
8111
|
-
|
|
8114
|
+
u.price
|
|
8112
8115
|
] }),
|
|
8113
|
-
|
|
8116
|
+
u.originalPrice && /* @__PURE__ */ ve("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
|
|
8114
8117
|
"¥",
|
|
8115
|
-
|
|
8118
|
+
u.originalPrice
|
|
8116
8119
|
] })
|
|
8117
8120
|
] }),
|
|
8118
|
-
|
|
8121
|
+
u.tags && u.tags.length > 0 && /* @__PURE__ */ g(Oe, { size: 4, wrap: !0, children: u.tags.map((d, l) => /* @__PURE__ */ g(fr, { color: "blue", children: d }, l)) })
|
|
8119
8122
|
] })
|
|
8120
8123
|
}
|
|
8121
8124
|
)
|
|
8122
8125
|
},
|
|
8123
|
-
|
|
8126
|
+
u.id
|
|
8124
8127
|
)) });
|
|
8125
8128
|
}, rr = ({ id: t, icon: e, title: n, description: i, style: r }) => /* @__PURE__ */ ve(
|
|
8126
8129
|
"div",
|
|
@@ -8164,7 +8167,7 @@ const ll = ({
|
|
|
8164
8167
|
index: p
|
|
8165
8168
|
}) => {
|
|
8166
8169
|
var k, N, M, E;
|
|
8167
|
-
const h = rt(Je), { storeBaseKey:
|
|
8170
|
+
const h = rt(Je), { storeBaseKey: w, arrayIndex: v } = y(() => {
|
|
8168
8171
|
if (!n) return { storeBaseKey: void 0, arrayIndex: null };
|
|
8169
8172
|
const _ = n.split(".")[0], { baseName: z, index: L } = _t(_);
|
|
8170
8173
|
let V = L;
|
|
@@ -8185,9 +8188,9 @@ const ll = ({
|
|
|
8185
8188
|
storeBaseKey: ye(i, z),
|
|
8186
8189
|
arrayIndex: V
|
|
8187
8190
|
};
|
|
8188
|
-
}, [n, i, p, h]),
|
|
8189
|
-
if (!
|
|
8190
|
-
const z = _.dataSets[
|
|
8191
|
+
}, [n, i, p, h]), u = R((_) => {
|
|
8192
|
+
if (!w) return null;
|
|
8193
|
+
const z = _.dataSets[w];
|
|
8191
8194
|
if (v !== null) {
|
|
8192
8195
|
const L = z == null ? void 0 : z.value;
|
|
8193
8196
|
if (!Array.isArray(L))
|
|
@@ -8203,9 +8206,9 @@ const ll = ({
|
|
|
8203
8206
|
return L[v] ?? null;
|
|
8204
8207
|
}
|
|
8205
8208
|
return z ?? null;
|
|
8206
|
-
}),
|
|
8207
|
-
if (!n || !
|
|
8208
|
-
const z = n.split(".")[1], L = z ?
|
|
8209
|
+
}), d = y(() => {
|
|
8210
|
+
if (!n || !u) return { componentName: "", props: {} };
|
|
8211
|
+
const z = n.split(".")[1], L = z ? u[z] || {} : u;
|
|
8209
8212
|
if (typeof L == "object" && L !== null) {
|
|
8210
8213
|
const { componentName: V, props: $, ...Y } = L;
|
|
8211
8214
|
return {
|
|
@@ -8214,19 +8217,19 @@ const ll = ({
|
|
|
8214
8217
|
};
|
|
8215
8218
|
}
|
|
8216
8219
|
return { componentName: "", props: {} };
|
|
8217
|
-
}, [n, i,
|
|
8220
|
+
}, [n, i, u]), l = ((k = d.props) == null ? void 0 : k.inheritDataSet) !== void 0 ? String((N = d.props) == null ? void 0 : N.inheritDataSet) : void 0, S = ((M = d.props) == null ? void 0 : M.inheritDataSetFieldRoot) !== void 0 ? String((E = d.props) == null ? void 0 : E.inheritDataSetFieldRoot) : void 0, b = d.componentName || t, C = y(() => ({
|
|
8218
8221
|
// inheritDataSet 只用于给后代提供 DataSetInheritContext,不应透传给具体组件。
|
|
8219
|
-
...
|
|
8220
|
-
const { inheritDataSet: _, inheritDataSetFieldRoot: z, ...L } =
|
|
8222
|
+
...d.props ? (() => {
|
|
8223
|
+
const { inheritDataSet: _, inheritDataSetFieldRoot: z, ...L } = d.props;
|
|
8221
8224
|
return L;
|
|
8222
8225
|
})() : {},
|
|
8223
8226
|
...p !== void 0 ? { index: p } : {},
|
|
8224
8227
|
...e,
|
|
8225
8228
|
sessionId: i
|
|
8226
|
-
}), [
|
|
8229
|
+
}), [d.props, e, i, p]), A = y(() => {
|
|
8227
8230
|
var Y, F;
|
|
8228
8231
|
if (!l) return null;
|
|
8229
|
-
const _ = !!S && S.trim().startsWith("["), z = (Y =
|
|
8232
|
+
const _ = !!S && S.trim().startsWith("["), z = (Y = d.props) == null ? void 0 : Y.index, L = _ ? void 0 : typeof z == "number" && Number.isFinite(z) ? z : v !== null ? v : void 0, V = (F = d.props) == null ? void 0 : F.parentIndex;
|
|
8230
8233
|
let $;
|
|
8231
8234
|
if (typeof V == "number" && Number.isFinite(V))
|
|
8232
8235
|
$ = V;
|
|
@@ -8242,7 +8245,7 @@ const ll = ({
|
|
|
8242
8245
|
...S ? { dataSetFieldRoot: S } : {},
|
|
8243
8246
|
sessionId: i
|
|
8244
8247
|
};
|
|
8245
|
-
}, [l, v,
|
|
8248
|
+
}, [l, v, d.props, h, S, i]), x = f || "请配置组件";
|
|
8246
8249
|
if (o) {
|
|
8247
8250
|
const _ = m === "row";
|
|
8248
8251
|
return /* @__PURE__ */ ve(
|
|
@@ -8279,7 +8282,7 @@ const ll = ({
|
|
|
8279
8282
|
rr,
|
|
8280
8283
|
{
|
|
8281
8284
|
id: s,
|
|
8282
|
-
title:
|
|
8285
|
+
title: x,
|
|
8283
8286
|
description: "动态容器未配置组件解析器",
|
|
8284
8287
|
style: a
|
|
8285
8288
|
}
|
|
@@ -8295,7 +8298,7 @@ const ll = ({
|
|
|
8295
8298
|
rr,
|
|
8296
8299
|
{
|
|
8297
8300
|
id: s,
|
|
8298
|
-
title:
|
|
8301
|
+
title: x,
|
|
8299
8302
|
description: b ? `组件 "${b}" 未找到` : void 0,
|
|
8300
8303
|
style: a
|
|
8301
8304
|
}
|
|
@@ -8314,7 +8317,7 @@ const ll = ({
|
|
|
8314
8317
|
develop: m,
|
|
8315
8318
|
token: p,
|
|
8316
8319
|
children: h,
|
|
8317
|
-
...
|
|
8320
|
+
...w
|
|
8318
8321
|
}) => {
|
|
8319
8322
|
const v = {
|
|
8320
8323
|
color: (f == null ? void 0 : f.color) ?? "rgba(0, 0, 0, 0.15)",
|
|
@@ -8323,7 +8326,7 @@ const ll = ({
|
|
|
8323
8326
|
fontFamily: (f == null ? void 0 : f.fontFamily) ?? "sans-serif",
|
|
8324
8327
|
fontStyle: (f == null ? void 0 : f.fontStyle) ?? "normal",
|
|
8325
8328
|
textAlign: (f == null ? void 0 : f.textAlign) ?? "center"
|
|
8326
|
-
},
|
|
8329
|
+
}, u = /* @__PURE__ */ g(
|
|
8327
8330
|
bi,
|
|
8328
8331
|
{
|
|
8329
8332
|
content: t,
|
|
@@ -8336,7 +8339,7 @@ const ll = ({
|
|
|
8336
8339
|
offset: s,
|
|
8337
8340
|
inherit: c,
|
|
8338
8341
|
font: v,
|
|
8339
|
-
...
|
|
8342
|
+
...w,
|
|
8340
8343
|
children: m ? /* @__PURE__ */ g(
|
|
8341
8344
|
"div",
|
|
8342
8345
|
{
|
|
@@ -8361,9 +8364,9 @@ const ll = ({
|
|
|
8361
8364
|
algorithm: mt.defaultAlgorithm,
|
|
8362
8365
|
token: p
|
|
8363
8366
|
},
|
|
8364
|
-
children:
|
|
8367
|
+
children: u
|
|
8365
8368
|
}
|
|
8366
|
-
) :
|
|
8369
|
+
) : u;
|
|
8367
8370
|
};
|
|
8368
8371
|
if (typeof Promise < "u") {
|
|
8369
8372
|
const t = Promise;
|
|
@@ -8414,17 +8417,17 @@ const Os = 0.5, Rs = 3, or = 0.1, jl = ({
|
|
|
8414
8417
|
styles: m,
|
|
8415
8418
|
token: p,
|
|
8416
8419
|
className: h,
|
|
8417
|
-
style:
|
|
8420
|
+
style: w
|
|
8418
8421
|
}) => {
|
|
8419
8422
|
$e(() => {
|
|
8420
8423
|
$s();
|
|
8421
8424
|
}, []);
|
|
8422
|
-
const v = R((H) => H.setDataSet),
|
|
8425
|
+
const v = R((H) => H.setDataSet), u = y(
|
|
8423
8426
|
() => ye(e, i),
|
|
8424
8427
|
[e, i]
|
|
8425
|
-
),
|
|
8426
|
-
if (!
|
|
8427
|
-
const se = H.getDataSet(
|
|
8428
|
+
), d = R((H) => {
|
|
8429
|
+
if (!u || !r) return;
|
|
8430
|
+
const se = H.getDataSet(u, r);
|
|
8428
8431
|
if (se != null && se !== "") return String(se);
|
|
8429
8432
|
}), l = R(
|
|
8430
8433
|
(H) => {
|
|
@@ -8433,30 +8436,30 @@ const Os = 0.5, Rs = 3, or = 0.1, jl = ({
|
|
|
8433
8436
|
}
|
|
8434
8437
|
), S = y(() => {
|
|
8435
8438
|
let H;
|
|
8436
|
-
if (
|
|
8439
|
+
if (d !== void 0) H = d;
|
|
8437
8440
|
else if (l && typeof l == "object") {
|
|
8438
8441
|
const se = l.filePath;
|
|
8439
8442
|
se != null && se !== "" && (H = String(se));
|
|
8440
8443
|
}
|
|
8441
8444
|
return H === void 0 && (H = o), H;
|
|
8442
|
-
}, [
|
|
8445
|
+
}, [d, l, o]), b = y(() => {
|
|
8443
8446
|
if (l && typeof l == "object") {
|
|
8444
8447
|
const H = l.nonPdfBackgroundColor;
|
|
8445
8448
|
if (typeof H == "string" && H.trim())
|
|
8446
8449
|
return H.trim();
|
|
8447
8450
|
}
|
|
8448
8451
|
return f;
|
|
8449
|
-
}, [l, f]), [C, A] = Ce(0), [
|
|
8452
|
+
}, [l, f]), [C, A] = Ce(0), [x, D] = Ce(
|
|
8450
8453
|
() => Math.max(1, a || 1)
|
|
8451
|
-
), T = Ke(
|
|
8452
|
-
T.current =
|
|
8454
|
+
), T = Ke(x);
|
|
8455
|
+
T.current = x;
|
|
8453
8456
|
const [j, k] = Ce(null), [N, M] = Ce(!!S), [E, _] = Ce("all"), [z, L] = Ce("width"), [V, $] = Ce(1), Y = Ke(null), F = Ke(null), O = Ke({}), B = Ke(!1), q = Ke(null), [P, G] = Ce(600), [oe, pe] = Ce(800), ne = Ke(0), ue = y(() => {
|
|
8454
8457
|
var U;
|
|
8455
8458
|
const H = (U = tt().pdfCMapUrl) == null ? void 0 : U.trim();
|
|
8456
8459
|
return H ? { cMapUrl: H.endsWith("/") ? H : `${H}/`, cMapPacked: !0 } : {};
|
|
8457
8460
|
}, []), de = (s || "").trim(), fe = R((H) => {
|
|
8458
|
-
if (!(!
|
|
8459
|
-
return H.getDataSet(
|
|
8461
|
+
if (!(!u || !de))
|
|
8462
|
+
return H.getDataSet(u, `${de}.targetPage`);
|
|
8460
8463
|
});
|
|
8461
8464
|
$e(() => {
|
|
8462
8465
|
const H = F.current;
|
|
@@ -8478,15 +8481,15 @@ const Os = 0.5, Rs = 3, or = 0.1, jl = ({
|
|
|
8478
8481
|
), me = y(
|
|
8479
8482
|
() => Math.max(180, W * V),
|
|
8480
8483
|
[W, V]
|
|
8481
|
-
), Q = y(() => E === "all" ? Array.from({ length: C }, (H, se) => se + 1) : [
|
|
8484
|
+
), Q = y(() => E === "all" ? Array.from({ length: C }, (H, se) => se + 1) : [x], [E, C, x]), ie = K(
|
|
8482
8485
|
(H, se) => {
|
|
8483
|
-
!
|
|
8486
|
+
!u || !de || (v(u, `${de}.currentPage`, H), se > 0 && v(u, `${de}.totalPages`, se));
|
|
8484
8487
|
},
|
|
8485
|
-
[
|
|
8488
|
+
[u, de, v]
|
|
8486
8489
|
);
|
|
8487
8490
|
$e(() => {
|
|
8488
|
-
C > 0 && ie(
|
|
8489
|
-
}, [
|
|
8491
|
+
C > 0 && ie(x, C);
|
|
8492
|
+
}, [x, C, ie]);
|
|
8490
8493
|
const we = K(
|
|
8491
8494
|
(H, se = "auto") => {
|
|
8492
8495
|
const U = C > 0 ? Math.max(1, Math.min(Math.floor(H), C)) : Math.max(1, Math.floor(H));
|
|
@@ -8499,8 +8502,8 @@ const Os = 0.5, Rs = 3, or = 0.1, jl = ({
|
|
|
8499
8502
|
), Ee = Ke(we);
|
|
8500
8503
|
Ee.current = we, $e(() => {
|
|
8501
8504
|
const H = fe;
|
|
8502
|
-
typeof H != "number" || !Number.isFinite(H) || (we(H, "auto"),
|
|
8503
|
-
}, [fe, we,
|
|
8505
|
+
typeof H != "number" || !Number.isFinite(H) || (we(H, "auto"), u && de && v(u, `${de}.targetPage`, void 0));
|
|
8506
|
+
}, [fe, we, u, de, v]), $e(() => {
|
|
8504
8507
|
const H = Math.max(1, a ?? 1);
|
|
8505
8508
|
D(H);
|
|
8506
8509
|
}, [a]);
|
|
@@ -8581,15 +8584,15 @@ const Os = 0.5, Rs = 3, or = 0.1, jl = ({
|
|
|
8581
8584
|
const H = F.current;
|
|
8582
8585
|
if (!H) return;
|
|
8583
8586
|
const se = H.scrollTop + H.clientHeight * 0.35;
|
|
8584
|
-
let U =
|
|
8587
|
+
let U = x, X = Number.POSITIVE_INFINITY;
|
|
8585
8588
|
for (let be = 1; be <= C; be++) {
|
|
8586
8589
|
const ce = O.current[be];
|
|
8587
8590
|
if (!ce) continue;
|
|
8588
8591
|
const J = Math.abs(ce.offsetTop - se);
|
|
8589
8592
|
J < X && (X = J, U = be);
|
|
8590
8593
|
}
|
|
8591
|
-
U !==
|
|
8592
|
-
}, [N, E, C,
|
|
8594
|
+
U !== x && D(U);
|
|
8595
|
+
}, [N, E, C, x]);
|
|
8593
8596
|
return $e(() => {
|
|
8594
8597
|
if (!l || typeof l != "object") return;
|
|
8595
8598
|
const H = l._pdfCmdNonce, se = l.pdfCommand, U = l.pdfCommandArg;
|
|
@@ -8658,7 +8661,7 @@ const Os = 0.5, Rs = 3, or = 0.1, jl = ({
|
|
|
8658
8661
|
flexDirection: "column",
|
|
8659
8662
|
width: "100%",
|
|
8660
8663
|
flexGrow: 1,
|
|
8661
|
-
...
|
|
8664
|
+
...w
|
|
8662
8665
|
},
|
|
8663
8666
|
children: /* @__PURE__ */ g(
|
|
8664
8667
|
"div",
|
|
@@ -8817,17 +8820,17 @@ function yt(t, e) {
|
|
|
8817
8820
|
className: p,
|
|
8818
8821
|
// 数据相关
|
|
8819
8822
|
dataSet: h,
|
|
8820
|
-
dataSetField:
|
|
8823
|
+
dataSetField: w,
|
|
8821
8824
|
data: v,
|
|
8822
8825
|
// 尺寸与通用
|
|
8823
|
-
common:
|
|
8826
|
+
common: u,
|
|
8824
8827
|
// 解构出这些属性,防止作为 restProps 覆盖了 finalConfig
|
|
8825
8828
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8826
8829
|
// height, width 等已从 BaseChartProps 移除,但为了防止透传给图表组件导致冲突,
|
|
8827
8830
|
// 我们仍然尝试从 props 中解构它们(如果存在)。
|
|
8828
8831
|
// 使用 as any 规避 TS 错误
|
|
8829
8832
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8830
|
-
height:
|
|
8833
|
+
height: d,
|
|
8831
8834
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
8832
8835
|
width: l,
|
|
8833
8836
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -8837,7 +8840,7 @@ function yt(t, e) {
|
|
|
8837
8840
|
// 需要解析的 JSON 配置
|
|
8838
8841
|
title: C,
|
|
8839
8842
|
legend: A,
|
|
8840
|
-
label:
|
|
8843
|
+
label: x,
|
|
8841
8844
|
tooltip: D,
|
|
8842
8845
|
animate: T,
|
|
8843
8846
|
scale: j,
|
|
@@ -8853,13 +8856,13 @@ function yt(t, e) {
|
|
|
8853
8856
|
// 其余配置直接透传
|
|
8854
8857
|
...$
|
|
8855
8858
|
} = a, Y = Ke(null), F = R((we) => we.getDataSet), O = R((we) => we.addCommand), B = y(() => {
|
|
8856
|
-
if (h &&
|
|
8857
|
-
const Ee = F(h,
|
|
8859
|
+
if (h && w) {
|
|
8860
|
+
const Ee = F(h, w);
|
|
8858
8861
|
if (Ee !== void 0) return Ee;
|
|
8859
8862
|
}
|
|
8860
8863
|
const we = Be(v);
|
|
8861
8864
|
return we !== void 0 ? we : f ? r : [];
|
|
8862
|
-
}, [v, h,
|
|
8865
|
+
}, [v, h, w, F, f]), q = (we) => {
|
|
8863
8866
|
var Ee;
|
|
8864
8867
|
if (Y.current = we, !f && c) {
|
|
8865
8868
|
const Fe = Be(V);
|
|
@@ -8874,7 +8877,7 @@ function yt(t, e) {
|
|
|
8874
8877
|
});
|
|
8875
8878
|
}
|
|
8876
8879
|
(Ee = $.onReady) == null || Ee.call($, we);
|
|
8877
|
-
}, P = Be(
|
|
8880
|
+
}, P = Be(u) || {}, G = {
|
|
8878
8881
|
data: B,
|
|
8879
8882
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
8880
8883
|
height: P.height ?? i,
|
|
@@ -8889,7 +8892,7 @@ function yt(t, e) {
|
|
|
8889
8892
|
oe !== void 0 && (G.title = oe);
|
|
8890
8893
|
const pe = Be(A);
|
|
8891
8894
|
pe !== void 0 && (G.legend = pe);
|
|
8892
|
-
const ne = Be(
|
|
8895
|
+
const ne = Be(x);
|
|
8893
8896
|
ne !== void 0 && (G.label = ne);
|
|
8894
8897
|
const ue = Be(D);
|
|
8895
8898
|
ue !== void 0 && (G.tooltip = ue);
|
|
@@ -9027,15 +9030,15 @@ const Ls = [
|
|
|
9027
9030
|
percent: m,
|
|
9028
9031
|
symmetry: p,
|
|
9029
9032
|
diff: h,
|
|
9030
|
-
...
|
|
9033
|
+
...w
|
|
9031
9034
|
} = t, v = {
|
|
9032
|
-
...
|
|
9035
|
+
...w
|
|
9033
9036
|
};
|
|
9034
9037
|
e && (v.xField = e), n && (v.yField = n), i && (v.seriesField = i), r && (v.colorField = r), o && (v.shapeField = o), a && (v.sizeField = a), f !== void 0 && (v.stack = f === !0 || f === "true"), m !== void 0 && (v.percent = m === !0 || m === "true"), p !== void 0 && (v.symmetry = p === !0 || p === "true"), h !== void 0 && (v.diff = h === !0 || h === "true");
|
|
9035
|
-
const
|
|
9036
|
-
|
|
9037
|
-
const
|
|
9038
|
-
return
|
|
9038
|
+
const u = Be(s);
|
|
9039
|
+
u !== void 0 && (v.line = u);
|
|
9040
|
+
const d = Be(c);
|
|
9041
|
+
return d !== void 0 && (v.point = d), /* @__PURE__ */ g(qs, { ...v });
|
|
9039
9042
|
}, Ps = yt(Wi, {
|
|
9040
9043
|
chartType: "AndVDualAxes",
|
|
9041
9044
|
defaultHeight: 300,
|
|
@@ -9124,8 +9127,8 @@ const Ls = [
|
|
|
9124
9127
|
e && (p.xField = e), n && (p.yField = n), i && (p.seriesField = i), r && (p.colorField = r), o !== void 0 && (p.stack = o === !0 || o === "true"), a !== void 0 && (p.group = a === !0 || a === "true"), s !== void 0 && (p.percent = s === !0 || s === "true");
|
|
9125
9128
|
const h = Be(c);
|
|
9126
9129
|
h !== void 0 && (p.conversionTag = h);
|
|
9127
|
-
const
|
|
9128
|
-
return
|
|
9130
|
+
const w = Be(f);
|
|
9131
|
+
return w !== void 0 && (p.markBackground = w), console.log("[AndVBar] chartProps:", JSON.stringify(p, null, 2)), /* @__PURE__ */ g(Hs, { ...p });
|
|
9129
9132
|
};
|
|
9130
9133
|
export {
|
|
9131
9134
|
Cc as AVAILABLE_TOKENS,
|