@nuwatop/code-canvas-core 0.5.3 → 0.5.4
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/AndPdfViewer/index.d.ts.map +1 -1
- package/dist/index.esm.js +1157 -1148
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as b, jsxs as
|
|
1
|
+
import { jsx as b, jsxs as st, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as mr } from "react-dom/client";
|
|
3
|
-
import { theme as Zt, ConfigProvider as
|
|
3
|
+
import { theme as Zt, ConfigProvider as Bt, Button as Xt, Input as $e, InputNumber as $n, Space as Yt, Select as Rn, Switch as hr, DatePicker as jn, TimePicker as yr, Radio as Ve, Checkbox as se, Rate as gr, Slider as pr, Cascader as vr, TreeSelect as br, message as Ce, Upload as Sr, Image as Ft, AutoComplete as wr, Form as Ee, Transfer as Dr, Segmented as xr, Modal as Bn, Tooltip as Ar, Table as Cr, Flex as Kn, Typography as sn, Tabs as Tr, Tree as Nr, Timeline as kr, Steps as Or, Statistic as Ge, Carousel as _r, Avatar as Er, Tag as Ln, Pagination as zn, Breadcrumb as Mr, Menu as $r, Calendar as Rr, Badge as Vn, Masonry as jr, Alert as qn, Drawer as Br, Result as Kr, Card as Je, Divider as hn, Dropdown as Lr, Row as zr, Col as Vr, QRCode as qr, Splitter as qe, Spin as Wn, Watermark as Wr } from "antd";
|
|
4
4
|
import { StyleProvider as Hr, createCache as Pr } from "@ant-design/cssinjs";
|
|
5
5
|
import Ur from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Yr } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as Gr } from "zustand/middleware";
|
|
8
8
|
import { immer as Jr } from "zustand/middleware/immer";
|
|
9
|
-
import Wt, { useMemo as y, useCallback as j, useEffect as
|
|
9
|
+
import Wt, { useMemo as y, useCallback as j, useEffect as xt, createContext as Qr, useContext as be, useState as mt, useRef as $t, useLayoutEffect as Hn, useId as Fr, Suspense as Zr } from "react";
|
|
10
10
|
import * as Jt from "@ant-design/icons";
|
|
11
11
|
import { CloseCircleOutlined as Xr, PlusOutlined as Pn, UploadOutlined as Ir, MenuOutlined as ti, MinusOutlined as ei, LeftOutlined as Un, RightOutlined as Yn, UpOutlined as ni, DownOutlined as Gn, ApiOutlined as ri, InboxOutlined as ii } from "@ant-design/icons";
|
|
12
12
|
import ai from "clsx";
|
|
@@ -55,7 +55,7 @@ const gi = () => {
|
|
|
55
55
|
const c = mr(e);
|
|
56
56
|
Te.set(e, c);
|
|
57
57
|
const l = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && l && d && d.defaultView !== null, h = v ? l : window.document.head, p = v ? d : window.document, g = pi(p), m = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? Zt.darkAlgorithm : Zt.defaultAlgorithm, u = (w) => /* @__PURE__ */ b(Hr, { cache: g, container: h, hashPriority: "high", children: /* @__PURE__ */ b(
|
|
58
|
-
|
|
58
|
+
Bt,
|
|
59
59
|
{
|
|
60
60
|
locale: Ur,
|
|
61
61
|
theme: {
|
|
@@ -72,8 +72,8 @@ const gi = () => {
|
|
|
72
72
|
}
|
|
73
73
|
) });
|
|
74
74
|
window.__CURRENT_STYLE_CONTAINER__ = h;
|
|
75
|
-
const S = e.hasAttribute("editing"),
|
|
76
|
-
return S &&
|
|
75
|
+
const S = e.hasAttribute("editing"), A = { ...n };
|
|
76
|
+
return S && A.develop === void 0 && (A.develop = !0), c.render(u(A)), {
|
|
77
77
|
root: c,
|
|
78
78
|
unmount: () => {
|
|
79
79
|
try {
|
|
@@ -390,7 +390,7 @@ function ee(e, t = null, n = {}) {
|
|
|
390
390
|
}), c = o.length === 1 ? o[0] : o;
|
|
391
391
|
return { actionName: r, arg: c };
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function vt(e, t, n = {}) {
|
|
394
394
|
return ee(e, t, n);
|
|
395
395
|
}
|
|
396
396
|
function wi(e, t = {}) {
|
|
@@ -523,7 +523,7 @@ function zt(e) {
|
|
|
523
523
|
function Ti(e) {
|
|
524
524
|
return e === "string" || e === "url" || e === "hex" || e === "email" || e === "date" || e === "pattern";
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Et(e, t) {
|
|
527
527
|
return !!(e == null || t === "array" && Array.isArray(e) && !e.length || Ti(t) && typeof e == "string" && !e);
|
|
528
528
|
}
|
|
529
529
|
function Ni(e, t, n) {
|
|
@@ -619,7 +619,7 @@ function Sn(e, t) {
|
|
|
619
619
|
return e;
|
|
620
620
|
}
|
|
621
621
|
var Qn = function(t, n, i, r, a, o) {
|
|
622
|
-
t.required && (!i.hasOwnProperty(t.field) ||
|
|
622
|
+
t.required && (!i.hasOwnProperty(t.field) || Et(n, o || t.type)) && r.push(zt(a.messages.required, t.fullField));
|
|
623
623
|
}, Mi = function(t, n, i, r, a) {
|
|
624
624
|
(/^\s+$/.test(n) || n === "") && r.push(zt(a.messages.whitespace, t.fullField));
|
|
625
625
|
}, ke, $i = function() {
|
|
@@ -641,10 +641,10 @@ var Qn = function(t, n, i, r, a, o) {
|
|
|
641
641
|
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), a = new RegExp("(?:^" + n + "$)|(?:^" + r + "$)"), o = new RegExp("^" + n + "$"), c = new RegExp("^" + r + "$"), l = function(C) {
|
|
642
642
|
return C && C.exact ? a : new RegExp("(?:" + t(C) + n + t(C) + ")|(?:" + t(C) + r + t(C) + ")", "g");
|
|
643
643
|
};
|
|
644
|
-
l.v4 = function(
|
|
645
|
-
return
|
|
646
|
-
}, l.v6 = function(
|
|
647
|
-
return
|
|
644
|
+
l.v4 = function(A) {
|
|
645
|
+
return A && A.exact ? o : new RegExp("" + t(A) + n + t(A), "g");
|
|
646
|
+
}, l.v6 = function(A) {
|
|
647
|
+
return A && A.exact ? c : new RegExp("" + t(A) + r + t(A), "g");
|
|
648
648
|
};
|
|
649
649
|
var d = "(?:(?:[a-z]+:)?//)", v = "(?:\\S+(?::\\S*)?@)?", h = l.v4().source, p = l.v6().source, g = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', S = "(?:" + d + "|www\\.)" + v + "(?:localhost|" + h + "|" + p + "|" + g + f + s + ")" + m + u;
|
|
650
650
|
return ke = new RegExp("(?:^" + S + "$)", "i"), ke;
|
|
@@ -719,7 +719,7 @@ var Qn = function(t, n, i, r, a, o) {
|
|
|
719
719
|
o.test(n) || r.push(zt(a.messages.pattern.mismatch, t.fullField, n, t.pattern));
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
|
-
},
|
|
722
|
+
}, ht = {
|
|
723
723
|
required: Qn,
|
|
724
724
|
whitespace: Mi,
|
|
725
725
|
type: Ri,
|
|
@@ -729,57 +729,57 @@ var Qn = function(t, n, i, r, a, o) {
|
|
|
729
729
|
}, Li = function(t, n, i, r, a) {
|
|
730
730
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
731
731
|
if (c) {
|
|
732
|
-
if (
|
|
732
|
+
if (Et(n, "string") && !t.required)
|
|
733
733
|
return i();
|
|
734
|
-
|
|
734
|
+
ht.required(t, n, r, o, a, "string"), Et(n, "string") || (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a), ht.pattern(t, n, r, o, a), t.whitespace === !0 && ht.whitespace(t, n, r, o, a));
|
|
735
735
|
}
|
|
736
736
|
i(o);
|
|
737
737
|
}, zi = function(t, n, i, r, a) {
|
|
738
738
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
739
739
|
if (c) {
|
|
740
|
-
if (
|
|
740
|
+
if (Et(n) && !t.required)
|
|
741
741
|
return i();
|
|
742
|
-
|
|
742
|
+
ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
|
|
743
743
|
}
|
|
744
744
|
i(o);
|
|
745
745
|
}, Vi = function(t, n, i, r, a) {
|
|
746
746
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
747
747
|
if (c) {
|
|
748
|
-
if (n === "" && (n = void 0),
|
|
748
|
+
if (n === "" && (n = void 0), Et(n) && !t.required)
|
|
749
749
|
return i();
|
|
750
|
-
|
|
750
|
+
ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
|
|
751
751
|
}
|
|
752
752
|
i(o);
|
|
753
753
|
}, qi = function(t, n, i, r, a) {
|
|
754
754
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
755
755
|
if (c) {
|
|
756
|
-
if (
|
|
756
|
+
if (Et(n) && !t.required)
|
|
757
757
|
return i();
|
|
758
|
-
|
|
758
|
+
ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
|
|
759
759
|
}
|
|
760
760
|
i(o);
|
|
761
761
|
}, Wi = function(t, n, i, r, a) {
|
|
762
762
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
763
763
|
if (c) {
|
|
764
|
-
if (
|
|
764
|
+
if (Et(n) && !t.required)
|
|
765
765
|
return i();
|
|
766
|
-
|
|
766
|
+
ht.required(t, n, r, o, a), Et(n) || ht.type(t, n, r, o, a);
|
|
767
767
|
}
|
|
768
768
|
i(o);
|
|
769
769
|
}, Hi = function(t, n, i, r, a) {
|
|
770
770
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
771
771
|
if (c) {
|
|
772
|
-
if (
|
|
772
|
+
if (Et(n) && !t.required)
|
|
773
773
|
return i();
|
|
774
|
-
|
|
774
|
+
ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
|
|
775
775
|
}
|
|
776
776
|
i(o);
|
|
777
777
|
}, Pi = function(t, n, i, r, a) {
|
|
778
778
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
779
779
|
if (c) {
|
|
780
|
-
if (
|
|
780
|
+
if (Et(n) && !t.required)
|
|
781
781
|
return i();
|
|
782
|
-
|
|
782
|
+
ht.required(t, n, r, o, a), n !== void 0 && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
|
|
783
783
|
}
|
|
784
784
|
i(o);
|
|
785
785
|
}, Ui = function(t, n, i, r, a) {
|
|
@@ -787,61 +787,61 @@ var Qn = function(t, n, i, r, a, o) {
|
|
|
787
787
|
if (c) {
|
|
788
788
|
if (n == null && !t.required)
|
|
789
789
|
return i();
|
|
790
|
-
|
|
790
|
+
ht.required(t, n, r, o, a, "array"), n != null && (ht.type(t, n, r, o, a), ht.range(t, n, r, o, a));
|
|
791
791
|
}
|
|
792
792
|
i(o);
|
|
793
793
|
}, Yi = function(t, n, i, r, a) {
|
|
794
794
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
795
795
|
if (c) {
|
|
796
|
-
if (
|
|
796
|
+
if (Et(n) && !t.required)
|
|
797
797
|
return i();
|
|
798
|
-
|
|
798
|
+
ht.required(t, n, r, o, a), n !== void 0 && ht.type(t, n, r, o, a);
|
|
799
799
|
}
|
|
800
800
|
i(o);
|
|
801
801
|
}, Gi = "enum", Ji = function(t, n, i, r, a) {
|
|
802
802
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
803
803
|
if (c) {
|
|
804
|
-
if (
|
|
804
|
+
if (Et(n) && !t.required)
|
|
805
805
|
return i();
|
|
806
|
-
|
|
806
|
+
ht.required(t, n, r, o, a), n !== void 0 && ht[Gi](t, n, r, o, a);
|
|
807
807
|
}
|
|
808
808
|
i(o);
|
|
809
809
|
}, Qi = function(t, n, i, r, a) {
|
|
810
810
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
811
811
|
if (c) {
|
|
812
|
-
if (
|
|
812
|
+
if (Et(n, "string") && !t.required)
|
|
813
813
|
return i();
|
|
814
|
-
|
|
814
|
+
ht.required(t, n, r, o, a), Et(n, "string") || ht.pattern(t, n, r, o, a);
|
|
815
815
|
}
|
|
816
816
|
i(o);
|
|
817
817
|
}, Fi = function(t, n, i, r, a) {
|
|
818
818
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
819
819
|
if (c) {
|
|
820
|
-
if (
|
|
820
|
+
if (Et(n, "date") && !t.required)
|
|
821
821
|
return i();
|
|
822
|
-
if (
|
|
822
|
+
if (ht.required(t, n, r, o, a), !Et(n, "date")) {
|
|
823
823
|
var l;
|
|
824
|
-
n instanceof Date ? l = n : l = new Date(n),
|
|
824
|
+
n instanceof Date ? l = n : l = new Date(n), ht.type(t, l, r, o, a), l && ht.range(t, l.getTime(), r, o, a);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
i(o);
|
|
828
828
|
}, Zi = function(t, n, i, r, a) {
|
|
829
829
|
var o = [], c = Array.isArray(n) ? "array" : typeof n;
|
|
830
|
-
|
|
830
|
+
ht.required(t, n, r, o, a, c), i(o);
|
|
831
831
|
}, We = function(t, n, i, r, a) {
|
|
832
832
|
var o = t.type, c = [], l = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
833
833
|
if (l) {
|
|
834
|
-
if (
|
|
834
|
+
if (Et(n, o) && !t.required)
|
|
835
835
|
return i();
|
|
836
|
-
|
|
836
|
+
ht.required(t, n, r, c, a, o), Et(n, o) || ht.type(t, n, r, c, a);
|
|
837
837
|
}
|
|
838
838
|
i(c);
|
|
839
839
|
}, Xi = function(t, n, i, r, a) {
|
|
840
840
|
var o = [], c = t.required || !t.required && r.hasOwnProperty(t.field);
|
|
841
841
|
if (c) {
|
|
842
|
-
if (
|
|
842
|
+
if (Et(n) && !t.required)
|
|
843
843
|
return i();
|
|
844
|
-
|
|
844
|
+
ht.required(t, n, r, o, a);
|
|
845
845
|
}
|
|
846
846
|
i(o);
|
|
847
847
|
}, pe = {
|
|
@@ -949,8 +949,8 @@ var nn = en(), we = /* @__PURE__ */ function() {
|
|
|
949
949
|
} else
|
|
950
950
|
m.push(C);
|
|
951
951
|
}
|
|
952
|
-
for (var
|
|
953
|
-
S(s[
|
|
952
|
+
for (var A = 0; A < s.length; A++)
|
|
953
|
+
S(s[A]);
|
|
954
954
|
m.length ? (u = tn(m), d(m, u)) : d(null, c);
|
|
955
955
|
}
|
|
956
956
|
if (l.messages) {
|
|
@@ -962,11 +962,11 @@ var nn = en(), we = /* @__PURE__ */ function() {
|
|
|
962
962
|
g.forEach(function(s) {
|
|
963
963
|
var m = o.rules[s], u = c[s];
|
|
964
964
|
m.forEach(function(S) {
|
|
965
|
-
var
|
|
966
|
-
typeof
|
|
967
|
-
validator:
|
|
968
|
-
} :
|
|
969
|
-
rule:
|
|
965
|
+
var A = S;
|
|
966
|
+
typeof A.transform == "function" && (c === i && (c = ne({}, c)), u = c[s] = A.transform(u)), typeof A == "function" ? A = {
|
|
967
|
+
validator: A
|
|
968
|
+
} : A = ne({}, A), A.validator = o.getValidationMethod(A), A.validator && (A.field = s, A.fullField = A.fullField || s, A.type = o.getType(A), p[s] = p[s] || [], p[s].push({
|
|
969
|
+
rule: A,
|
|
970
970
|
value: u,
|
|
971
971
|
source: c,
|
|
972
972
|
field: s
|
|
@@ -977,7 +977,7 @@ var nn = en(), we = /* @__PURE__ */ function() {
|
|
|
977
977
|
return Oi(p, l, function(s, m) {
|
|
978
978
|
var u = s.rule, S = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
|
|
979
979
|
S = S && (u.required || !u.required && s.value), u.field = s.field;
|
|
980
|
-
function
|
|
980
|
+
function A(D, T) {
|
|
981
981
|
return ne({}, T, {
|
|
982
982
|
fullField: u.fullField + "." + D,
|
|
983
983
|
fullFields: u.fullFields ? [].concat(u.fullFields, [D]) : [D]
|
|
@@ -999,12 +999,12 @@ var nn = en(), we = /* @__PURE__ */ function() {
|
|
|
999
999
|
u.defaultField && Object.keys(s.value).map(function(k) {
|
|
1000
1000
|
N[k] = u.defaultField;
|
|
1001
1001
|
}), N = ne({}, N, s.rule.fields);
|
|
1002
|
-
var
|
|
1002
|
+
var x = {};
|
|
1003
1003
|
Object.keys(N).forEach(function(k) {
|
|
1004
1004
|
var M = N[k], B = Array.isArray(M) ? M : [M];
|
|
1005
|
-
|
|
1005
|
+
x[k] = B.map(A.bind(null, k));
|
|
1006
1006
|
});
|
|
1007
|
-
var E = new e(
|
|
1007
|
+
var E = new e(x);
|
|
1008
1008
|
E.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), E.validate(s.value, s.rule.options || l, function(k) {
|
|
1009
1009
|
var M = [];
|
|
1010
1010
|
O && O.length && M.push.apply(M, O), k && k.length && M.push.apply(M, k), m(M.length ? M : null);
|
|
@@ -1131,12 +1131,12 @@ function Kt(e) {
|
|
|
1131
1131
|
);
|
|
1132
1132
|
},
|
|
1133
1133
|
[t, u]
|
|
1134
|
-
),
|
|
1135
|
-
return
|
|
1134
|
+
), A = o ? void 0 : r && n && i ? h : (p == null ? void 0 : p.help) ?? "", C = !o && A ? "error" : void 0;
|
|
1135
|
+
return xt(() => {
|
|
1136
1136
|
if (m == null || !f || !i) return;
|
|
1137
1137
|
const w = g(f, i);
|
|
1138
1138
|
S(w);
|
|
1139
|
-
}, [m, f, i, g, S]), { validate: S, help:
|
|
1139
|
+
}, [m, f, i, g, S]), { validate: S, help: A, validateStatus: C };
|
|
1140
1140
|
}
|
|
1141
1141
|
const ta = ["value", "validateStatus", "help"];
|
|
1142
1142
|
function Qt(e, t, n) {
|
|
@@ -1277,8 +1277,8 @@ function na() {
|
|
|
1277
1277
|
};
|
|
1278
1278
|
}
|
|
1279
1279
|
function De(e) {
|
|
1280
|
-
const [t, n] =
|
|
1281
|
-
return
|
|
1280
|
+
const [t, n] = mt([]), [i, r] = mt(!1), [a, o] = mt(null);
|
|
1281
|
+
return xt(() => {
|
|
1282
1282
|
if (!e) {
|
|
1283
1283
|
n([]);
|
|
1284
1284
|
return;
|
|
@@ -1296,7 +1296,7 @@ function De(e) {
|
|
|
1296
1296
|
}, [e]), { options: t, loading: i, error: a };
|
|
1297
1297
|
}
|
|
1298
1298
|
function un(e, t) {
|
|
1299
|
-
const [n, i] =
|
|
1299
|
+
const [n, i] = mt([]), [r, a] = mt(!1), [o, c] = mt(null), {
|
|
1300
1300
|
labelKey: l = "label",
|
|
1301
1301
|
valueKey: d = "value",
|
|
1302
1302
|
immediate: v = !0,
|
|
@@ -1329,7 +1329,7 @@ function un(e, t) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
}, [e, g, f, h]);
|
|
1332
|
-
return
|
|
1332
|
+
return xt(() => {
|
|
1333
1333
|
v && e && s();
|
|
1334
1334
|
}, [v, e, s]), { options: n, loading: r, error: o, reload: s };
|
|
1335
1335
|
}
|
|
@@ -1337,7 +1337,7 @@ const ue = (e) => {
|
|
|
1337
1337
|
if (e == null || e === "") return 0;
|
|
1338
1338
|
const t = Number(e);
|
|
1339
1339
|
return isNaN(t) || !isFinite(t) ? 0 : t;
|
|
1340
|
-
},
|
|
1340
|
+
}, Ot = (e) => e == null ? "" : String(e), je = (e) => {
|
|
1341
1341
|
if (e == null) return null;
|
|
1342
1342
|
let t;
|
|
1343
1343
|
if (e instanceof Date)
|
|
@@ -1458,21 +1458,21 @@ const ue = (e) => {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
}, ma = (e, t = "CN") => {
|
|
1460
1460
|
try {
|
|
1461
|
-
const n =
|
|
1462
|
-
return n ? t === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : t === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") :
|
|
1461
|
+
const n = Ot(e).replace(/\D/g, "");
|
|
1462
|
+
return n ? t === "CN" && n.length === 11 && /^1[3-9]\d{9}$/.test(n) ? n.replace(/(\d{3})(\d{4})(\d{4})/, "$1 $2 $3") : t === "US" && n.length === 10 ? n.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3") : Ot(e) : "";
|
|
1463
1463
|
} catch {
|
|
1464
1464
|
return "";
|
|
1465
1465
|
}
|
|
1466
1466
|
}, ha = (e) => {
|
|
1467
1467
|
try {
|
|
1468
|
-
const t =
|
|
1469
|
-
return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") :
|
|
1468
|
+
const t = Ot(e).replace(/\D/g, "");
|
|
1469
|
+
return t.length === 11 ? t.replace(/(\d{3})\d{4}(\d{4})/, "$1****$2") : Ot(e);
|
|
1470
1470
|
} catch {
|
|
1471
1471
|
return "";
|
|
1472
1472
|
}
|
|
1473
1473
|
}, ya = (e) => {
|
|
1474
1474
|
try {
|
|
1475
|
-
const t =
|
|
1475
|
+
const t = Ot(e);
|
|
1476
1476
|
if (!t || !t.includes("@")) return "";
|
|
1477
1477
|
const [n, i] = t.split("@");
|
|
1478
1478
|
return n.length <= 1 ? t : n.length <= 3 ? `${n[0]}*@${i}` : `${n[0] + "*".repeat(n.length - 2) + n[n.length - 1]}@${i}`;
|
|
@@ -1481,14 +1481,14 @@ const ue = (e) => {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}, ga = (e, t = !0) => {
|
|
1483
1483
|
try {
|
|
1484
|
-
const n =
|
|
1484
|
+
const n = Ot(e).replace(/\s/g, "");
|
|
1485
1485
|
return n.length === 18 && /^\d{17}[\dXx]$/.test(n) ? t ? n.replace(/(\d{6})\d{8}(\d{3}[\dXx])/, "$1********$2") : n.replace(/(\d{6})(\d{8})(\d{4})/, "$1 $2 $3") : "";
|
|
1486
1486
|
} catch {
|
|
1487
1487
|
return "";
|
|
1488
1488
|
}
|
|
1489
1489
|
}, pa = (e, t = !0) => {
|
|
1490
1490
|
try {
|
|
1491
|
-
const n =
|
|
1491
|
+
const n = Ot(e).replace(/\s/g, "");
|
|
1492
1492
|
if (!/^\d{13,19}$/.test(n)) return "";
|
|
1493
1493
|
if (t && n.length >= 8) {
|
|
1494
1494
|
const i = n.slice(0, 4), r = n.slice(-4), a = n.length - 8, o = "*".repeat(a);
|
|
@@ -1500,28 +1500,28 @@ const ue = (e) => {
|
|
|
1500
1500
|
}
|
|
1501
1501
|
}, va = (e) => {
|
|
1502
1502
|
try {
|
|
1503
|
-
const t =
|
|
1503
|
+
const t = Ot(e);
|
|
1504
1504
|
return t.length <= 1 ? t : t.length === 2 ? t[0] + "*" : t[0] + "*".repeat(t.length - 2) + t[t.length - 1];
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
return "";
|
|
1507
1507
|
}
|
|
1508
1508
|
}, ba = (e, t = 50, n = "...") => {
|
|
1509
1509
|
try {
|
|
1510
|
-
const i =
|
|
1510
|
+
const i = Ot(e), r = Math.max(1, Math.min(1e3, Math.floor(t)));
|
|
1511
1511
|
return i.length <= r ? i : i.slice(0, r) + n;
|
|
1512
1512
|
} catch {
|
|
1513
1513
|
return "";
|
|
1514
1514
|
}
|
|
1515
1515
|
}, Sa = (e) => {
|
|
1516
1516
|
try {
|
|
1517
|
-
const t =
|
|
1517
|
+
const t = Ot(e);
|
|
1518
1518
|
return t ? t.charAt(0).toUpperCase() + t.slice(1).toLowerCase() : "";
|
|
1519
1519
|
} catch {
|
|
1520
1520
|
return "";
|
|
1521
1521
|
}
|
|
1522
1522
|
}, wa = (e, t = ", ") => {
|
|
1523
1523
|
try {
|
|
1524
|
-
return Array.isArray(e) ? e.join(t) :
|
|
1524
|
+
return Array.isArray(e) ? e.join(t) : Ot(e);
|
|
1525
1525
|
} catch {
|
|
1526
1526
|
return "";
|
|
1527
1527
|
}
|
|
@@ -1535,21 +1535,21 @@ const ue = (e) => {
|
|
|
1535
1535
|
f: "女",
|
|
1536
1536
|
M: "男",
|
|
1537
1537
|
F: "女"
|
|
1538
|
-
})[
|
|
1538
|
+
})[Ot(e)] || Ot(e), xa = (e, t) => t ? t[Ot(e)] || Ot(e) : {
|
|
1539
1539
|
0: "禁用",
|
|
1540
1540
|
1: "启用",
|
|
1541
1541
|
true: "是",
|
|
1542
1542
|
false: "否"
|
|
1543
|
-
}[
|
|
1543
|
+
}[Ot(e)] || Ot(e), Aa = (e) => {
|
|
1544
1544
|
try {
|
|
1545
|
-
return
|
|
1545
|
+
return Ot(e).replace(/<[^>]*>/g, "");
|
|
1546
1546
|
} catch {
|
|
1547
1547
|
return "";
|
|
1548
1548
|
}
|
|
1549
1549
|
};
|
|
1550
1550
|
function Ca(e, t, n = {}) {
|
|
1551
1551
|
if (!t || e === void 0 || e === null)
|
|
1552
|
-
return
|
|
1552
|
+
return Ot(e);
|
|
1553
1553
|
switch (t) {
|
|
1554
1554
|
case "currency":
|
|
1555
1555
|
return ra(e, n.currency, n);
|
|
@@ -1598,7 +1598,7 @@ function Ca(e, t, n = {}) {
|
|
|
1598
1598
|
case "stripHtml":
|
|
1599
1599
|
return Aa(e);
|
|
1600
1600
|
default:
|
|
1601
|
-
return
|
|
1601
|
+
return Ot(e);
|
|
1602
1602
|
}
|
|
1603
1603
|
}
|
|
1604
1604
|
const Be = {
|
|
@@ -1692,7 +1692,7 @@ const gc = ({
|
|
|
1692
1692
|
}, [p, m, o]), S = y(() => {
|
|
1693
1693
|
const k = (m == null ? void 0 : m.iconName) || i;
|
|
1694
1694
|
return k && Jt[k] ? Jt[k] : null;
|
|
1695
|
-
}, [i, m == null ? void 0 : m.iconName]),
|
|
1695
|
+
}, [i, m == null ? void 0 : m.iconName]), A = j(
|
|
1696
1696
|
(k) => {
|
|
1697
1697
|
if (c) {
|
|
1698
1698
|
c(k);
|
|
@@ -1725,16 +1725,16 @@ const gc = ({
|
|
|
1725
1725
|
iconPlacement: T,
|
|
1726
1726
|
clickAction: O,
|
|
1727
1727
|
tooltip: N,
|
|
1728
|
-
...
|
|
1728
|
+
...x
|
|
1729
1729
|
} = u;
|
|
1730
1730
|
return /* @__PURE__ */ b(
|
|
1731
1731
|
Xt,
|
|
1732
1732
|
{
|
|
1733
|
-
...
|
|
1733
|
+
...x,
|
|
1734
1734
|
title: w || void 0,
|
|
1735
1735
|
iconPlacement: T || D,
|
|
1736
1736
|
icon: S ? /* @__PURE__ */ b(S, {}) : void 0,
|
|
1737
|
-
onClick:
|
|
1737
|
+
onClick: A,
|
|
1738
1738
|
children: C || l
|
|
1739
1739
|
}
|
|
1740
1740
|
);
|
|
@@ -1776,58 +1776,58 @@ const er = (e) => {
|
|
|
1776
1776
|
blurAction: m,
|
|
1777
1777
|
pressEnterAction: u,
|
|
1778
1778
|
clearAction: S,
|
|
1779
|
-
bordered:
|
|
1779
|
+
bordered: A,
|
|
1780
1780
|
addonAfter: C,
|
|
1781
1781
|
addonBefore: w,
|
|
1782
1782
|
...D
|
|
1783
|
-
} = e, T = Re(r, a, n), O = T.dataSet, N = T.dataSetField,
|
|
1784
|
-
() => rt(
|
|
1785
|
-
[
|
|
1783
|
+
} = e, T = Re(r, a, n), O = T.dataSet, N = T.dataSetField, x = T.sessionId, E = $t(""), k = $t(null), M = _((q) => q.addCommand), B = _((q) => q.getDataSet), H = _((q) => q.setDataSet), P = _((q) => q.getProps), $ = _((q) => q.setProps), z = _((q) => q.setValidateResult), K = y(
|
|
1784
|
+
() => rt(x, O),
|
|
1785
|
+
[x, O]
|
|
1786
1786
|
), V = _(
|
|
1787
1787
|
(q) => {
|
|
1788
|
-
var
|
|
1789
|
-
return
|
|
1788
|
+
var nt;
|
|
1789
|
+
return x && t ? ((nt = q.propsStore[`${x}_props`]) == null ? void 0 : nt[t]) ?? null : null;
|
|
1790
1790
|
}
|
|
1791
1791
|
), R = y(
|
|
1792
|
-
() => ge(
|
|
1793
|
-
[
|
|
1792
|
+
() => ge(x, O),
|
|
1793
|
+
[x, O]
|
|
1794
1794
|
), L = _(
|
|
1795
1795
|
(q) => {
|
|
1796
|
-
var
|
|
1797
|
-
return R && N ? ((
|
|
1796
|
+
var nt;
|
|
1797
|
+
return R && N ? ((nt = q.validateStore[R]) == null ? void 0 : nt[N]) ?? "" : "";
|
|
1798
1798
|
}
|
|
1799
1799
|
), Q = _(
|
|
1800
1800
|
(q) => K && N ? q.getDataSet(K, N) : void 0
|
|
1801
|
-
),
|
|
1802
|
-
() => O ? rt(
|
|
1803
|
-
[
|
|
1801
|
+
), Y = y(
|
|
1802
|
+
() => O ? rt(x, `${O}_validateAction`) : void 0,
|
|
1803
|
+
[x, O]
|
|
1804
1804
|
), U = _(
|
|
1805
1805
|
(q) => {
|
|
1806
|
-
var
|
|
1807
|
-
return
|
|
1806
|
+
var nt;
|
|
1807
|
+
return Y ? (nt = q.dataSets[Y]) == null ? void 0 : nt.validate : void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
), at = y(() => Q !== void 0 ? Q : (V == null ? void 0 : V.value) !== void 0 ? V.value : d, [Q, V == null ? void 0 : V.value, d]),
|
|
1809
|
+
), at = y(() => Q !== void 0 ? Q : (V == null ? void 0 : V.value) !== void 0 ? V.value : d, [Q, V == null ? void 0 : V.value, d]), ot = y(
|
|
1810
1810
|
() => Oa(D, V ?? null, { develop: i }),
|
|
1811
1811
|
[D, V, i]
|
|
1812
|
-
),
|
|
1812
|
+
), tt = j(
|
|
1813
1813
|
(q) => {
|
|
1814
|
-
const
|
|
1815
|
-
if (
|
|
1816
|
-
|
|
1814
|
+
const nt = q ?? "";
|
|
1815
|
+
if (x && O && N && z(
|
|
1816
|
+
x,
|
|
1817
1817
|
O,
|
|
1818
1818
|
N,
|
|
1819
|
-
|
|
1820
|
-
),
|
|
1821
|
-
const Z = P(
|
|
1822
|
-
$(
|
|
1819
|
+
nt
|
|
1820
|
+
), x && t) {
|
|
1821
|
+
const Z = P(x, t) || {};
|
|
1822
|
+
$(x, t, {
|
|
1823
1823
|
...Z,
|
|
1824
|
-
validateStatus:
|
|
1825
|
-
help:
|
|
1824
|
+
validateStatus: nt ? "error" : void 0,
|
|
1825
|
+
help: nt
|
|
1826
1826
|
});
|
|
1827
1827
|
}
|
|
1828
1828
|
},
|
|
1829
1829
|
[
|
|
1830
|
-
|
|
1830
|
+
x,
|
|
1831
1831
|
O,
|
|
1832
1832
|
N,
|
|
1833
1833
|
t,
|
|
@@ -1837,36 +1837,36 @@ const er = (e) => {
|
|
|
1837
1837
|
]
|
|
1838
1838
|
), pt = j(
|
|
1839
1839
|
(q) => {
|
|
1840
|
-
const
|
|
1840
|
+
const nt = Fn(p || []);
|
|
1841
1841
|
Zn(
|
|
1842
|
-
|
|
1842
|
+
nt,
|
|
1843
1843
|
q,
|
|
1844
|
-
() =>
|
|
1844
|
+
() => tt(""),
|
|
1845
1845
|
(Z) => {
|
|
1846
|
-
var
|
|
1847
|
-
return
|
|
1846
|
+
var lt;
|
|
1847
|
+
return tt(((lt = Z[0]) == null ? void 0 : lt.message) ?? "");
|
|
1848
1848
|
}
|
|
1849
1849
|
);
|
|
1850
1850
|
},
|
|
1851
|
-
[p,
|
|
1852
|
-
),
|
|
1851
|
+
[p, tt]
|
|
1852
|
+
), wt = j(
|
|
1853
1853
|
(q) => {
|
|
1854
|
-
const
|
|
1855
|
-
if (E.current =
|
|
1856
|
-
l(
|
|
1854
|
+
const nt = q.target.value;
|
|
1855
|
+
if (E.current = nt, l) {
|
|
1856
|
+
l(nt, q);
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
|
-
if (K && N && H(K, N,
|
|
1860
|
-
const { actionName: Z, arg:
|
|
1859
|
+
if (K && N && H(K, N, nt), c && x) {
|
|
1860
|
+
const { actionName: Z, arg: lt } = vt(c, nt, {
|
|
1861
1861
|
id: t,
|
|
1862
1862
|
dataSet: O,
|
|
1863
1863
|
dataSetField: N,
|
|
1864
|
-
...
|
|
1864
|
+
...ot
|
|
1865
1865
|
});
|
|
1866
|
-
M(
|
|
1866
|
+
M(x, I(Z, lt));
|
|
1867
1867
|
}
|
|
1868
1868
|
g && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
|
|
1869
|
-
k.current = null, pt(
|
|
1869
|
+
k.current = null, pt(nt);
|
|
1870
1870
|
}, Na));
|
|
1871
1871
|
},
|
|
1872
1872
|
[
|
|
@@ -1875,16 +1875,16 @@ const er = (e) => {
|
|
|
1875
1875
|
N,
|
|
1876
1876
|
H,
|
|
1877
1877
|
c,
|
|
1878
|
-
|
|
1878
|
+
x,
|
|
1879
1879
|
t,
|
|
1880
1880
|
O,
|
|
1881
1881
|
N,
|
|
1882
|
-
|
|
1882
|
+
ot,
|
|
1883
1883
|
M,
|
|
1884
1884
|
g,
|
|
1885
1885
|
pt
|
|
1886
1886
|
]
|
|
1887
|
-
),
|
|
1887
|
+
), yt = j(() => {
|
|
1888
1888
|
if (!f) return;
|
|
1889
1889
|
const q = K && N ? String(B(K, N) ?? "") : E.current;
|
|
1890
1890
|
pt(q);
|
|
@@ -1894,88 +1894,88 @@ const er = (e) => {
|
|
|
1894
1894
|
N,
|
|
1895
1895
|
B,
|
|
1896
1896
|
pt
|
|
1897
|
-
]),
|
|
1897
|
+
]), et = j(
|
|
1898
1898
|
(q) => {
|
|
1899
|
-
const Z =
|
|
1899
|
+
const Z = ot.onPressEnter;
|
|
1900
1900
|
if (Z) {
|
|
1901
1901
|
Z(q);
|
|
1902
1902
|
return;
|
|
1903
1903
|
}
|
|
1904
|
-
if (u &&
|
|
1905
|
-
const { actionName:
|
|
1904
|
+
if (u && x) {
|
|
1905
|
+
const { actionName: lt, arg: dt } = vt(u, at, {
|
|
1906
1906
|
id: t,
|
|
1907
1907
|
dataSet: O,
|
|
1908
1908
|
dataSetField: N,
|
|
1909
|
-
...
|
|
1909
|
+
...ot
|
|
1910
1910
|
});
|
|
1911
|
-
M(
|
|
1911
|
+
M(x, I(lt, dt));
|
|
1912
1912
|
}
|
|
1913
1913
|
},
|
|
1914
1914
|
[
|
|
1915
|
-
|
|
1915
|
+
ot,
|
|
1916
1916
|
u,
|
|
1917
|
-
|
|
1917
|
+
x,
|
|
1918
1918
|
at,
|
|
1919
1919
|
t,
|
|
1920
1920
|
O,
|
|
1921
1921
|
N,
|
|
1922
1922
|
M
|
|
1923
1923
|
]
|
|
1924
|
-
),
|
|
1925
|
-
const
|
|
1926
|
-
if (
|
|
1927
|
-
|
|
1924
|
+
), ft = j(() => {
|
|
1925
|
+
const nt = ot.onClear;
|
|
1926
|
+
if (nt) {
|
|
1927
|
+
nt();
|
|
1928
1928
|
return;
|
|
1929
1929
|
}
|
|
1930
|
-
if (S &&
|
|
1931
|
-
const { actionName: Z, arg:
|
|
1930
|
+
if (S && x) {
|
|
1931
|
+
const { actionName: Z, arg: lt } = vt(S, "", {
|
|
1932
1932
|
id: t,
|
|
1933
1933
|
dataSet: O,
|
|
1934
1934
|
dataSetField: N,
|
|
1935
|
-
...
|
|
1935
|
+
...ot
|
|
1936
1936
|
});
|
|
1937
|
-
M(
|
|
1937
|
+
M(x, I(Z, lt));
|
|
1938
1938
|
}
|
|
1939
1939
|
}, [
|
|
1940
|
-
|
|
1940
|
+
ot,
|
|
1941
1941
|
S,
|
|
1942
|
-
|
|
1942
|
+
x,
|
|
1943
1943
|
t,
|
|
1944
1944
|
O,
|
|
1945
1945
|
N,
|
|
1946
1946
|
M
|
|
1947
1947
|
]);
|
|
1948
|
-
|
|
1948
|
+
xt(
|
|
1949
1949
|
() => () => {
|
|
1950
1950
|
k.current && clearTimeout(k.current);
|
|
1951
1951
|
},
|
|
1952
1952
|
[]
|
|
1953
|
-
),
|
|
1953
|
+
), xt(() => {
|
|
1954
1954
|
if (U == null || !K || !N)
|
|
1955
1955
|
return;
|
|
1956
1956
|
const q = String(B(K, N) ?? "");
|
|
1957
1957
|
pt(q);
|
|
1958
1958
|
}, [U, K, N, B, pt]);
|
|
1959
|
-
const
|
|
1960
|
-
() =>
|
|
1961
|
-
[
|
|
1962
|
-
),
|
|
1959
|
+
const ct = y(() => ka(h), [h]), _t = y(
|
|
1960
|
+
() => ct ? { components: { Input: ct } } : void 0,
|
|
1961
|
+
[ct]
|
|
1962
|
+
), bt = i ? void 0 : x && O && N ? L : (V == null ? void 0 : V.help) ?? "", G = /* @__PURE__ */ st(le, { children: [
|
|
1963
1963
|
/* @__PURE__ */ b(
|
|
1964
1964
|
$e,
|
|
1965
1965
|
{
|
|
1966
|
-
...
|
|
1966
|
+
...ot,
|
|
1967
1967
|
value: at,
|
|
1968
|
-
onChange:
|
|
1969
|
-
onBlur:
|
|
1970
|
-
onPressEnter:
|
|
1971
|
-
onClear:
|
|
1972
|
-
status: !i &&
|
|
1968
|
+
onChange: wt,
|
|
1969
|
+
onBlur: yt,
|
|
1970
|
+
onPressEnter: et,
|
|
1971
|
+
onClear: ft,
|
|
1972
|
+
status: !i && bt ? "error" : void 0,
|
|
1973
1973
|
styles: v
|
|
1974
1974
|
}
|
|
1975
1975
|
),
|
|
1976
|
-
|
|
1976
|
+
bt && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: bt })
|
|
1977
1977
|
] });
|
|
1978
|
-
return
|
|
1978
|
+
return _t ? /* @__PURE__ */ b(Bt, { theme: _t, children: G }) : G;
|
|
1979
1979
|
};
|
|
1980
1980
|
er.displayName = "AndInput";
|
|
1981
1981
|
const pc = Wt.memo(er), xn = 200, vc = ({
|
|
@@ -1997,16 +1997,16 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
1997
1997
|
value: s,
|
|
1998
1998
|
...m
|
|
1999
1999
|
}) => {
|
|
2000
|
-
const u = _((
|
|
2000
|
+
const u = _((Y) => Y.addCommand), S = _((Y) => Y.setDataSet), A = $t(null), C = y(
|
|
2001
2001
|
() => rt(t, i),
|
|
2002
2002
|
[t, i]
|
|
2003
2003
|
), w = _(
|
|
2004
|
-
(
|
|
2004
|
+
(Y) => {
|
|
2005
2005
|
var U;
|
|
2006
|
-
return t && e ? ((U =
|
|
2006
|
+
return t && e ? ((U = Y.propsStore[`${t}_props`]) == null ? void 0 : U[e]) ?? null : null;
|
|
2007
2007
|
}
|
|
2008
2008
|
), D = _(
|
|
2009
|
-
(
|
|
2009
|
+
(Y) => C && r ? Y.getDataSet(C, r) : void 0
|
|
2010
2010
|
), { validate: T, help: O } = Kt({
|
|
2011
2011
|
rules: a,
|
|
2012
2012
|
dataSet: i,
|
|
@@ -2014,32 +2014,32 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2014
2014
|
sessionId: t,
|
|
2015
2015
|
id: e,
|
|
2016
2016
|
develop: n
|
|
2017
|
-
}), N = y(() => D !== void 0 ? D : (w == null ? void 0 : w.value) !== void 0 ? w.value : s, [D, w == null ? void 0 : w.value, s]),
|
|
2018
|
-
(
|
|
2019
|
-
|
|
2017
|
+
}), N = y(() => D !== void 0 ? D : (w == null ? void 0 : w.value) !== void 0 ? w.value : s, [D, w == null ? void 0 : w.value, s]), x = j(
|
|
2018
|
+
(Y, U, at) => {
|
|
2019
|
+
Y && t && u(t, I(Y, { type: U, value: at }));
|
|
2020
2020
|
},
|
|
2021
2021
|
[t, u]
|
|
2022
2022
|
), E = j(
|
|
2023
|
-
(
|
|
2023
|
+
(Y) => {
|
|
2024
2024
|
if (g) {
|
|
2025
|
-
g(
|
|
2025
|
+
g(Y);
|
|
2026
2026
|
return;
|
|
2027
2027
|
}
|
|
2028
|
-
C && r && S(C, r,
|
|
2029
|
-
|
|
2030
|
-
}, xn)),
|
|
2028
|
+
C && r && S(C, r, Y), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
2029
|
+
A.current = null, T(Y);
|
|
2030
|
+
}, xn)), x(l, "change", Y);
|
|
2031
2031
|
},
|
|
2032
|
-
[g, C, r, S, c, T, l,
|
|
2032
|
+
[g, C, r, S, c, T, l, x]
|
|
2033
2033
|
), k = j(() => {
|
|
2034
2034
|
o && T(N);
|
|
2035
2035
|
}, [o, T, N]), M = j(
|
|
2036
|
-
(
|
|
2036
|
+
(Y) => {
|
|
2037
2037
|
if (m.onPressEnter) {
|
|
2038
|
-
m.onPressEnter(
|
|
2038
|
+
m.onPressEnter(Y);
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
2041
|
if (d && t) {
|
|
2042
|
-
const { actionName: U, arg: at } =
|
|
2042
|
+
const { actionName: U, arg: at } = vt(d, N, {
|
|
2043
2043
|
id: e,
|
|
2044
2044
|
dataSet: i,
|
|
2045
2045
|
dataSetField: r
|
|
@@ -2062,15 +2062,15 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2062
2062
|
g(null);
|
|
2063
2063
|
return;
|
|
2064
2064
|
}
|
|
2065
|
-
if (C && r && S(C, r, null), c && (
|
|
2066
|
-
|
|
2067
|
-
}, xn)),
|
|
2068
|
-
const { actionName:
|
|
2065
|
+
if (C && r && S(C, r, null), c && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
2066
|
+
A.current = null, T(null);
|
|
2067
|
+
}, xn)), x(l, "change", null), v && t) {
|
|
2068
|
+
const { actionName: Y, arg: U } = vt(v, null, {
|
|
2069
2069
|
id: e,
|
|
2070
2070
|
dataSet: i,
|
|
2071
2071
|
dataSetField: r
|
|
2072
2072
|
});
|
|
2073
|
-
u(t, I(
|
|
2073
|
+
u(t, I(Y, U));
|
|
2074
2074
|
}
|
|
2075
2075
|
}, [
|
|
2076
2076
|
g,
|
|
@@ -2079,7 +2079,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2079
2079
|
S,
|
|
2080
2080
|
c,
|
|
2081
2081
|
T,
|
|
2082
|
-
|
|
2082
|
+
x,
|
|
2083
2083
|
l,
|
|
2084
2084
|
v,
|
|
2085
2085
|
t,
|
|
@@ -2088,17 +2088,17 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2088
2088
|
r,
|
|
2089
2089
|
u
|
|
2090
2090
|
]), H = j(
|
|
2091
|
-
(
|
|
2092
|
-
|
|
2091
|
+
(Y, U) => {
|
|
2092
|
+
x(p, "step", { value: Y, type: U.type });
|
|
2093
2093
|
},
|
|
2094
|
-
[p,
|
|
2094
|
+
[p, x]
|
|
2095
2095
|
);
|
|
2096
|
-
|
|
2096
|
+
xt(
|
|
2097
2097
|
() => () => {
|
|
2098
|
-
|
|
2098
|
+
A.current && clearTimeout(A.current);
|
|
2099
2099
|
},
|
|
2100
2100
|
[]
|
|
2101
|
-
),
|
|
2101
|
+
), xt(() => {
|
|
2102
2102
|
f !== void 0 && N === void 0 && C && r && S(C, r, f);
|
|
2103
2103
|
}, [f, N, C, r, S]);
|
|
2104
2104
|
const P = y(
|
|
@@ -2119,7 +2119,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2119
2119
|
children: /* @__PURE__ */ b(Xr, {})
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
return V == null || V === !1 ? U : /* @__PURE__ */
|
|
2122
|
+
return V == null || V === !1 ? U : /* @__PURE__ */ st(le, { children: [
|
|
2123
2123
|
V,
|
|
2124
2124
|
U
|
|
2125
2125
|
] });
|
|
@@ -2142,8 +2142,8 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2142
2142
|
style: { width: "100%", ...K }
|
|
2143
2143
|
}
|
|
2144
2144
|
);
|
|
2145
|
-
return /* @__PURE__ */
|
|
2146
|
-
$ || z ? /* @__PURE__ */
|
|
2145
|
+
return /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
|
|
2146
|
+
$ || z ? /* @__PURE__ */ st(Yt.Compact, { style: { width: "100%" }, children: [
|
|
2147
2147
|
$ && /* @__PURE__ */ b(
|
|
2148
2148
|
"div",
|
|
2149
2149
|
{
|
|
@@ -2199,7 +2199,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2199
2199
|
defaultValue: g,
|
|
2200
2200
|
...f
|
|
2201
2201
|
}) => {
|
|
2202
|
-
const s = Re(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId,
|
|
2202
|
+
const s = Re(i, r, t), m = s.dataSet, u = s.dataSetField, S = s.sessionId, A = _((P) => P.addCommand), C = _((P) => P.setDataSet), w = $t(null), D = y(
|
|
2203
2203
|
() => rt(S, m),
|
|
2204
2204
|
[S, m]
|
|
2205
2205
|
), T = _(
|
|
@@ -2209,7 +2209,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2209
2209
|
}
|
|
2210
2210
|
), O = _(
|
|
2211
2211
|
(P) => D && u ? P.getDataSet(D, u) : void 0
|
|
2212
|
-
), { validate: N, help:
|
|
2212
|
+
), { validate: N, help: x } = Kt({
|
|
2213
2213
|
rules: a,
|
|
2214
2214
|
dataSet: m,
|
|
2215
2215
|
dataSetField: u,
|
|
@@ -2224,12 +2224,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2224
2224
|
return;
|
|
2225
2225
|
}
|
|
2226
2226
|
if (D && u && C(D, u, $), l && S) {
|
|
2227
|
-
const { actionName: z, arg: K } =
|
|
2227
|
+
const { actionName: z, arg: K } = vt(l, $, {
|
|
2228
2228
|
id: e,
|
|
2229
2229
|
dataSet: m,
|
|
2230
2230
|
dataSetField: u
|
|
2231
2231
|
});
|
|
2232
|
-
|
|
2232
|
+
A(S, I(z, K));
|
|
2233
2233
|
}
|
|
2234
2234
|
c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
2235
2235
|
w.current = null, N($);
|
|
@@ -2243,7 +2243,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2243
2243
|
l,
|
|
2244
2244
|
S,
|
|
2245
2245
|
e,
|
|
2246
|
-
|
|
2246
|
+
A,
|
|
2247
2247
|
c,
|
|
2248
2248
|
N
|
|
2249
2249
|
]
|
|
@@ -2256,12 +2256,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
2258
|
if (d && S && !P.shiftKey) {
|
|
2259
|
-
const { actionName: $, arg: z } =
|
|
2259
|
+
const { actionName: $, arg: z } = vt(d, E, {
|
|
2260
2260
|
id: e,
|
|
2261
2261
|
dataSet: m,
|
|
2262
2262
|
dataSetField: u
|
|
2263
2263
|
});
|
|
2264
|
-
|
|
2264
|
+
A(S, I($, z));
|
|
2265
2265
|
}
|
|
2266
2266
|
},
|
|
2267
2267
|
[
|
|
@@ -2272,7 +2272,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2272
2272
|
e,
|
|
2273
2273
|
m,
|
|
2274
2274
|
u,
|
|
2275
|
-
|
|
2275
|
+
A
|
|
2276
2276
|
]
|
|
2277
2277
|
), H = j(() => {
|
|
2278
2278
|
if (f.onClear) {
|
|
@@ -2280,12 +2280,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2280
2280
|
return;
|
|
2281
2281
|
}
|
|
2282
2282
|
if (v && S) {
|
|
2283
|
-
const { actionName: P, arg: $ } =
|
|
2283
|
+
const { actionName: P, arg: $ } = vt(v, "", {
|
|
2284
2284
|
id: e,
|
|
2285
2285
|
dataSet: m,
|
|
2286
2286
|
dataSetField: u
|
|
2287
2287
|
});
|
|
2288
|
-
|
|
2288
|
+
A(S, I(P, $));
|
|
2289
2289
|
}
|
|
2290
2290
|
}, [
|
|
2291
2291
|
f.onClear,
|
|
@@ -2294,14 +2294,14 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2294
2294
|
e,
|
|
2295
2295
|
m,
|
|
2296
2296
|
u,
|
|
2297
|
-
|
|
2297
|
+
A
|
|
2298
2298
|
]);
|
|
2299
|
-
return
|
|
2299
|
+
return xt(
|
|
2300
2300
|
() => () => {
|
|
2301
2301
|
w.current && clearTimeout(w.current);
|
|
2302
2302
|
},
|
|
2303
2303
|
[]
|
|
2304
|
-
), /* @__PURE__ */
|
|
2304
|
+
), /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
|
|
2305
2305
|
/* @__PURE__ */ b(
|
|
2306
2306
|
_a,
|
|
2307
2307
|
{
|
|
@@ -2312,10 +2312,10 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2312
2312
|
onBlur: M,
|
|
2313
2313
|
onPressEnter: B,
|
|
2314
2314
|
onClear: H,
|
|
2315
|
-
status:
|
|
2315
|
+
status: x ? "error" : void 0
|
|
2316
2316
|
}
|
|
2317
2317
|
),
|
|
2318
|
-
|
|
2318
|
+
x && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
|
|
2319
2319
|
] });
|
|
2320
2320
|
}, { Password: Ma } = $e, $a = 200, Sc = ({
|
|
2321
2321
|
id: e,
|
|
@@ -2334,10 +2334,10 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2334
2334
|
defaultValue: g,
|
|
2335
2335
|
...f
|
|
2336
2336
|
}) => {
|
|
2337
|
-
const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u =
|
|
2337
|
+
const s = _((k) => k.addCommand), m = _((k) => k.setDataSet), u = $t(null), S = y(
|
|
2338
2338
|
() => rt(t, i),
|
|
2339
2339
|
[t, i]
|
|
2340
|
-
),
|
|
2340
|
+
), A = _(
|
|
2341
2341
|
(k) => {
|
|
2342
2342
|
var M;
|
|
2343
2343
|
return t && e ? ((M = k.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
|
|
@@ -2351,7 +2351,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2351
2351
|
sessionId: t,
|
|
2352
2352
|
id: e,
|
|
2353
2353
|
develop: n
|
|
2354
|
-
}), T = y(() => C !== void 0 ? C : (
|
|
2354
|
+
}), T = y(() => C !== void 0 ? C : (A == null ? void 0 : A.value) !== void 0 ? A.value : p ?? g, [C, A == null ? void 0 : A.value, p, g]), O = j(
|
|
2355
2355
|
(k) => {
|
|
2356
2356
|
const M = k.target.value;
|
|
2357
2357
|
if (h) {
|
|
@@ -2359,7 +2359,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
2361
|
if (S && r && m(S, r, M), l && t) {
|
|
2362
|
-
const { actionName: B, arg: H } =
|
|
2362
|
+
const { actionName: B, arg: H } = vt(l, M, {
|
|
2363
2363
|
id: e,
|
|
2364
2364
|
dataSet: i,
|
|
2365
2365
|
dataSetField: r
|
|
@@ -2384,14 +2384,14 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2384
2384
|
]
|
|
2385
2385
|
), N = j(() => {
|
|
2386
2386
|
o && w(T);
|
|
2387
|
-
}, [o, w, T]),
|
|
2387
|
+
}, [o, w, T]), x = j(
|
|
2388
2388
|
(k) => {
|
|
2389
2389
|
if (f.onPressEnter) {
|
|
2390
2390
|
f.onPressEnter(k);
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
2393
|
if (d && t) {
|
|
2394
|
-
const { actionName: M, arg: B } =
|
|
2394
|
+
const { actionName: M, arg: B } = vt(d, T, {
|
|
2395
2395
|
id: e,
|
|
2396
2396
|
dataSet: i,
|
|
2397
2397
|
dataSetField: r
|
|
@@ -2415,7 +2415,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2415
2415
|
return;
|
|
2416
2416
|
}
|
|
2417
2417
|
if (v && t) {
|
|
2418
|
-
const { actionName: k, arg: M } =
|
|
2418
|
+
const { actionName: k, arg: M } = vt(v, "", {
|
|
2419
2419
|
id: e,
|
|
2420
2420
|
dataSet: i,
|
|
2421
2421
|
dataSetField: r
|
|
@@ -2423,12 +2423,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2423
2423
|
s(t, I(k, M));
|
|
2424
2424
|
}
|
|
2425
2425
|
}, [f.onClear, v, t, e, i, r, s]);
|
|
2426
|
-
return
|
|
2426
|
+
return xt(
|
|
2427
2427
|
() => () => {
|
|
2428
2428
|
u.current && clearTimeout(u.current);
|
|
2429
2429
|
},
|
|
2430
2430
|
[]
|
|
2431
|
-
), /* @__PURE__ */
|
|
2431
|
+
), /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
|
|
2432
2432
|
/* @__PURE__ */ b(
|
|
2433
2433
|
Ma,
|
|
2434
2434
|
{
|
|
@@ -2437,7 +2437,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2437
2437
|
value: T,
|
|
2438
2438
|
onChange: O,
|
|
2439
2439
|
onBlur: N,
|
|
2440
|
-
onPressEnter:
|
|
2440
|
+
onPressEnter: x,
|
|
2441
2441
|
onClear: E,
|
|
2442
2442
|
status: D ? "error" : void 0
|
|
2443
2443
|
}
|
|
@@ -2470,17 +2470,17 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2470
2470
|
return;
|
|
2471
2471
|
}
|
|
2472
2472
|
if (s && r && f(s, r, w), a && t) {
|
|
2473
|
-
const { actionName: D, arg: T } =
|
|
2473
|
+
const { actionName: D, arg: T } = vt(a, w, { id: e, dataSet: i, dataSetField: r });
|
|
2474
2474
|
p(t, I(D, T));
|
|
2475
2475
|
}
|
|
2476
|
-
}, [c, s, r, f, a, t, e, p]),
|
|
2476
|
+
}, [c, s, r, f, a, t, e, p]), A = j((C) => {
|
|
2477
2477
|
if (l) {
|
|
2478
2478
|
l(C);
|
|
2479
2479
|
return;
|
|
2480
2480
|
}
|
|
2481
2481
|
o && t && p(t, I(o, C));
|
|
2482
2482
|
}, [l, o, t, p]);
|
|
2483
|
-
return /* @__PURE__ */ b(Ra, { ...h, disabled: n ? !1 : h.disabled, value: u, onChange: S, onSearch:
|
|
2483
|
+
return /* @__PURE__ */ b(Ra, { ...h, disabled: n ? !1 : h.disabled, value: u, onChange: S, onSearch: A });
|
|
2484
2484
|
}, ja = 200, Dc = ({
|
|
2485
2485
|
id: e,
|
|
2486
2486
|
sessionId: t,
|
|
@@ -2501,23 +2501,23 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2501
2501
|
index: m,
|
|
2502
2502
|
showArrow: u,
|
|
2503
2503
|
remoteUrl: S,
|
|
2504
|
-
searchAction:
|
|
2504
|
+
searchAction: A,
|
|
2505
2505
|
selectAction: C,
|
|
2506
2506
|
deselectAction: w,
|
|
2507
2507
|
dictCode: D,
|
|
2508
2508
|
dropdownMatchSelectWidth: T,
|
|
2509
2509
|
...O
|
|
2510
2510
|
}) => {
|
|
2511
|
-
const N = _((
|
|
2511
|
+
const N = _((et) => et.addCommand), x = _((et) => et.setDataSet), E = $t(null), k = be(ie), M = y(
|
|
2512
2512
|
() => rt(t, i),
|
|
2513
2513
|
[t, i]
|
|
2514
2514
|
), B = m ?? (k == null ? void 0 : k.index), H = _(
|
|
2515
|
-
(
|
|
2516
|
-
var
|
|
2517
|
-
return t && e ? ((
|
|
2515
|
+
(et) => {
|
|
2516
|
+
var ft;
|
|
2517
|
+
return t && e ? ((ft = et.propsStore[`${t}_props`]) == null ? void 0 : ft[e]) ?? null : null;
|
|
2518
2518
|
}
|
|
2519
2519
|
), P = _(
|
|
2520
|
-
(
|
|
2520
|
+
(et) => M && r ? et.getDataSet(M, r) : void 0
|
|
2521
2521
|
), $ = y(
|
|
2522
2522
|
() => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
|
|
2523
2523
|
[H == null ? void 0 : H.optionsCfg, c]
|
|
@@ -2532,7 +2532,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2532
2532
|
params: $ == null ? void 0 : $.params,
|
|
2533
2533
|
field: $ == null ? void 0 : $.field
|
|
2534
2534
|
}
|
|
2535
|
-
), L = K || R, { validate: Q, help:
|
|
2535
|
+
), L = K || R, { validate: Q, help: Y } = Kt({
|
|
2536
2536
|
rules: l,
|
|
2537
2537
|
dataSet: i,
|
|
2538
2538
|
dataSetField: r,
|
|
@@ -2542,38 +2542,38 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2542
2542
|
}), U = y(() => P != null && P !== "" ? P : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [P, H == null ? void 0 : H.value, s, f]), at = y(
|
|
2543
2543
|
() => Qt(O, H ?? void 0),
|
|
2544
2544
|
[O, H]
|
|
2545
|
-
),
|
|
2546
|
-
if (
|
|
2545
|
+
), ot = y(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && V.length > 0 ? V : (D || a && o) && z.length > 0 ? z : g || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, V, D, a, o, z, g]), tt = y(() => {
|
|
2546
|
+
if (ot.length === 0) return U;
|
|
2547
2547
|
if (Array.isArray(U))
|
|
2548
|
-
return U.map((
|
|
2549
|
-
var
|
|
2550
|
-
return ((
|
|
2548
|
+
return U.map((ft) => {
|
|
2549
|
+
var ct;
|
|
2550
|
+
return ((ct = ae(ot, ft)) == null ? void 0 : ct.value) ?? ft;
|
|
2551
2551
|
});
|
|
2552
|
-
const
|
|
2553
|
-
return (
|
|
2554
|
-
}, [U,
|
|
2555
|
-
(
|
|
2552
|
+
const et = ae(ot, U);
|
|
2553
|
+
return (et == null ? void 0 : et.value) ?? U;
|
|
2554
|
+
}, [U, ot]), pt = j(
|
|
2555
|
+
(et, ft) => {
|
|
2556
2556
|
if (p) {
|
|
2557
|
-
p(
|
|
2557
|
+
p(et, ft);
|
|
2558
2558
|
return;
|
|
2559
2559
|
}
|
|
2560
|
-
if (M && r &&
|
|
2561
|
-
E.current = null, Q(
|
|
2560
|
+
if (M && r && x(M, r, et), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
2561
|
+
E.current = null, Q(et);
|
|
2562
2562
|
}, ja)), h && t) {
|
|
2563
|
-
const { actionName:
|
|
2563
|
+
const { actionName: ct, arg: _t } = vt(h, et, {
|
|
2564
2564
|
id: e,
|
|
2565
2565
|
dataSet: i,
|
|
2566
2566
|
dataSetField: r,
|
|
2567
2567
|
index: B
|
|
2568
2568
|
});
|
|
2569
|
-
N(t, I(
|
|
2569
|
+
N(t, I(ct, _t));
|
|
2570
2570
|
}
|
|
2571
2571
|
},
|
|
2572
2572
|
[
|
|
2573
2573
|
p,
|
|
2574
2574
|
M,
|
|
2575
2575
|
r,
|
|
2576
|
-
|
|
2576
|
+
x,
|
|
2577
2577
|
v,
|
|
2578
2578
|
Q,
|
|
2579
2579
|
h,
|
|
@@ -2582,34 +2582,34 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2582
2582
|
B,
|
|
2583
2583
|
N
|
|
2584
2584
|
]
|
|
2585
|
-
),
|
|
2586
|
-
d && Q(
|
|
2587
|
-
}, [d, Q,
|
|
2588
|
-
|
|
2585
|
+
), wt = j(() => {
|
|
2586
|
+
d && Q(tt);
|
|
2587
|
+
}, [d, Q, tt]);
|
|
2588
|
+
xt(
|
|
2589
2589
|
() => () => {
|
|
2590
2590
|
E.current && clearTimeout(E.current);
|
|
2591
2591
|
},
|
|
2592
2592
|
[]
|
|
2593
2593
|
);
|
|
2594
|
-
const
|
|
2595
|
-
return /* @__PURE__ */
|
|
2594
|
+
const yt = j((et, ft) => ((ft == null ? void 0 : ft.label) ?? "").toLowerCase().includes(et.toLowerCase()), []);
|
|
2595
|
+
return /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
|
|
2596
2596
|
/* @__PURE__ */ b(
|
|
2597
2597
|
Rn,
|
|
2598
2598
|
{
|
|
2599
2599
|
...at,
|
|
2600
2600
|
disabled: n ? !1 : at.disabled,
|
|
2601
2601
|
open: n ? !1 : void 0,
|
|
2602
|
-
value:
|
|
2603
|
-
options:
|
|
2602
|
+
value: tt,
|
|
2603
|
+
options: ot,
|
|
2604
2604
|
onChange: pt,
|
|
2605
|
-
onBlur:
|
|
2606
|
-
filterOption:
|
|
2605
|
+
onBlur: wt,
|
|
2606
|
+
filterOption: yt,
|
|
2607
2607
|
loading: L,
|
|
2608
|
-
status:
|
|
2608
|
+
status: Y ? "error" : void 0,
|
|
2609
2609
|
style: { width: "100%", ...at.style }
|
|
2610
2610
|
}
|
|
2611
2611
|
),
|
|
2612
|
-
|
|
2612
|
+
Y && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: Y })
|
|
2613
2613
|
] });
|
|
2614
2614
|
}, xc = ({
|
|
2615
2615
|
id: e,
|
|
@@ -2636,7 +2636,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2636
2636
|
}
|
|
2637
2637
|
), u = _(
|
|
2638
2638
|
(T) => s && r ? T.getDataSet(s, r) : void 0
|
|
2639
|
-
), { validate: S, help:
|
|
2639
|
+
), { validate: S, help: A } = Kt({
|
|
2640
2640
|
rules: a,
|
|
2641
2641
|
dataSet: i,
|
|
2642
2642
|
dataSetField: r,
|
|
@@ -2650,7 +2650,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2650
2650
|
return;
|
|
2651
2651
|
}
|
|
2652
2652
|
if (s && r && f(s, r, T), c && S(T), l && t) {
|
|
2653
|
-
const { actionName: O, arg: N } =
|
|
2653
|
+
const { actionName: O, arg: N } = vt(l, T, {
|
|
2654
2654
|
id: e,
|
|
2655
2655
|
dataSet: i,
|
|
2656
2656
|
dataSetField: r
|
|
@@ -2673,7 +2673,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2673
2673
|
), D = j(() => {
|
|
2674
2674
|
o && S(C);
|
|
2675
2675
|
}, [o, S, C]);
|
|
2676
|
-
return /* @__PURE__ */
|
|
2676
|
+
return /* @__PURE__ */ st("div", { style: { display: "inline-block" }, onBlur: D, children: [
|
|
2677
2677
|
/* @__PURE__ */ b(
|
|
2678
2678
|
hr,
|
|
2679
2679
|
{
|
|
@@ -2683,7 +2683,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2683
2683
|
onChange: w
|
|
2684
2684
|
}
|
|
2685
2685
|
),
|
|
2686
|
-
|
|
2686
|
+
A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
|
|
2687
2687
|
] });
|
|
2688
2688
|
}, Ac = ({
|
|
2689
2689
|
id: e,
|
|
@@ -2701,43 +2701,43 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2701
2701
|
defaultValue: p,
|
|
2702
2702
|
...g
|
|
2703
2703
|
}) => {
|
|
2704
|
-
const f = _((
|
|
2704
|
+
const f = _((x) => x.addCommand), s = _((x) => x.setDataSet), m = y(
|
|
2705
2705
|
() => rt(t, i),
|
|
2706
2706
|
[t, i]
|
|
2707
2707
|
), u = _(
|
|
2708
|
-
(
|
|
2708
|
+
(x) => {
|
|
2709
2709
|
var E;
|
|
2710
|
-
return t && e ? ((E =
|
|
2710
|
+
return t && e ? ((E = x.propsStore[`${t}_props`]) == null ? void 0 : E[e]) ?? null : null;
|
|
2711
2711
|
}
|
|
2712
2712
|
), S = _(
|
|
2713
|
-
(
|
|
2714
|
-
), { validate:
|
|
2713
|
+
(x) => m && r ? x.getDataSet(m, r) : void 0
|
|
2714
|
+
), { validate: A, help: C } = Kt({
|
|
2715
2715
|
rules: c,
|
|
2716
2716
|
dataSet: i,
|
|
2717
2717
|
dataSetField: r,
|
|
2718
2718
|
sessionId: t,
|
|
2719
2719
|
id: e,
|
|
2720
2720
|
develop: n
|
|
2721
|
-
}), w = j((
|
|
2722
|
-
if (!
|
|
2723
|
-
if (Ut.isDayjs(
|
|
2724
|
-
if (typeof
|
|
2725
|
-
const E = Ut(
|
|
2721
|
+
}), w = j((x) => {
|
|
2722
|
+
if (!x) return null;
|
|
2723
|
+
if (Ut.isDayjs(x)) return x;
|
|
2724
|
+
if (typeof x == "string") {
|
|
2725
|
+
const E = Ut(x, o);
|
|
2726
2726
|
return E.isValid() ? E : null;
|
|
2727
2727
|
}
|
|
2728
2728
|
return null;
|
|
2729
2729
|
}, [o]), D = y(() => {
|
|
2730
|
-
const
|
|
2731
|
-
return w(
|
|
2730
|
+
const x = S ?? (u == null ? void 0 : u.value) ?? h ?? p;
|
|
2731
|
+
return w(x);
|
|
2732
2732
|
}, [S, u == null ? void 0 : u.value, h, p, w]), T = j(
|
|
2733
|
-
(
|
|
2733
|
+
(x, E) => {
|
|
2734
2734
|
if (v) {
|
|
2735
|
-
v(
|
|
2735
|
+
v(x, E);
|
|
2736
2736
|
return;
|
|
2737
2737
|
}
|
|
2738
2738
|
const k = Array.isArray(E) ? E[0] : E;
|
|
2739
|
-
if (m && r && s(m, r, k), d &&
|
|
2740
|
-
const { actionName: M, arg: B } =
|
|
2739
|
+
if (m && r && s(m, r, k), d && A(k), a && t) {
|
|
2740
|
+
const { actionName: M, arg: B } = vt(a, k, {
|
|
2741
2741
|
id: e,
|
|
2742
2742
|
dataSet: i,
|
|
2743
2743
|
dataSetField: r
|
|
@@ -2745,24 +2745,24 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2745
2745
|
f(t, I(M, B));
|
|
2746
2746
|
}
|
|
2747
2747
|
},
|
|
2748
|
-
[v, m, r, s, d,
|
|
2748
|
+
[v, m, r, s, d, A, a, t, e, f]
|
|
2749
2749
|
);
|
|
2750
|
-
|
|
2750
|
+
xt(() => {
|
|
2751
2751
|
if (p && D === null && m && r) {
|
|
2752
|
-
const
|
|
2753
|
-
s(m, r,
|
|
2752
|
+
const x = Ut(p).format(o);
|
|
2753
|
+
s(m, r, x);
|
|
2754
2754
|
}
|
|
2755
2755
|
}, [p, D, m, r, s, o]);
|
|
2756
2756
|
const O = j(() => {
|
|
2757
2757
|
if (l) {
|
|
2758
|
-
const
|
|
2759
|
-
x
|
|
2758
|
+
const x = D ? D.format(o) : null;
|
|
2759
|
+
A(x);
|
|
2760
2760
|
}
|
|
2761
|
-
}, [l,
|
|
2761
|
+
}, [l, A, D, o]), N = y(
|
|
2762
2762
|
() => Qt(g, u ?? void 0),
|
|
2763
2763
|
[g, u]
|
|
2764
2764
|
);
|
|
2765
|
-
return /* @__PURE__ */
|
|
2765
|
+
return /* @__PURE__ */ st("div", { onBlur: O, children: [
|
|
2766
2766
|
/* @__PURE__ */ b(
|
|
2767
2767
|
jn,
|
|
2768
2768
|
{
|
|
@@ -2792,40 +2792,40 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2792
2792
|
validateOnBlur: p,
|
|
2793
2793
|
...g
|
|
2794
2794
|
}) => {
|
|
2795
|
-
const f = _((
|
|
2795
|
+
const f = _((x) => x.addCommand), s = _((x) => x.getDataSet), m = _((x) => x.setDataSet), u = y(
|
|
2796
2796
|
() => rt(t, i),
|
|
2797
2797
|
[t, i]
|
|
2798
2798
|
), S = y(() => {
|
|
2799
2799
|
if (u && r) return s(u, r);
|
|
2800
|
-
}, [u, r, s]), { validate:
|
|
2800
|
+
}, [u, r, s]), { validate: A, help: C } = Kt({
|
|
2801
2801
|
rules: v,
|
|
2802
2802
|
dataSet: i,
|
|
2803
2803
|
dataSetField: r,
|
|
2804
2804
|
sessionId: t,
|
|
2805
2805
|
id: e,
|
|
2806
2806
|
develop: n
|
|
2807
|
-
}), w = j((
|
|
2808
|
-
if (!
|
|
2809
|
-
if (Ut.isDayjs(
|
|
2810
|
-
if (typeof
|
|
2811
|
-
const E = Ut(
|
|
2807
|
+
}), w = j((x) => {
|
|
2808
|
+
if (!x) return null;
|
|
2809
|
+
if (Ut.isDayjs(x)) return x;
|
|
2810
|
+
if (typeof x == "string") {
|
|
2811
|
+
const E = Ut(x, o);
|
|
2812
2812
|
return E.isValid() ? E : null;
|
|
2813
2813
|
}
|
|
2814
2814
|
return null;
|
|
2815
|
-
}, [o]), D = y(() => w(S ?? l ?? d), [S, l, d, w]), T = j((
|
|
2815
|
+
}, [o]), D = y(() => w(S ?? l ?? d), [S, l, d, w]), T = j((x, E) => {
|
|
2816
2816
|
if (c) {
|
|
2817
|
-
c(
|
|
2817
|
+
c(x, E);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
2820
2820
|
const k = E || "";
|
|
2821
|
-
if (u && r && m(u, r, k), h &&
|
|
2822
|
-
const { actionName: M, arg: B } =
|
|
2821
|
+
if (u && r && m(u, r, k), h && A(k), a && t) {
|
|
2822
|
+
const { actionName: M, arg: B } = vt(a, k, { id: e, dataSet: i, dataSetField: r });
|
|
2823
2823
|
f(t, I(M, B));
|
|
2824
2824
|
}
|
|
2825
|
-
}, [c, u, r, m, h,
|
|
2826
|
-
p &&
|
|
2827
|
-
}, [p,
|
|
2828
|
-
return /* @__PURE__ */
|
|
2825
|
+
}, [c, u, r, m, h, A, a, t, e, f]), O = j(() => {
|
|
2826
|
+
p && A(D ? D.format(o) : "");
|
|
2827
|
+
}, [p, A, D, o]), N = C ? "error" : void 0;
|
|
2828
|
+
return /* @__PURE__ */ st(le, { children: [
|
|
2829
2829
|
/* @__PURE__ */ b(
|
|
2830
2830
|
yr,
|
|
2831
2831
|
{
|
|
@@ -2857,41 +2857,41 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2857
2857
|
defaultValue: p,
|
|
2858
2858
|
...g
|
|
2859
2859
|
}) => {
|
|
2860
|
-
const f = _((
|
|
2860
|
+
const f = _((x) => x.addCommand), s = _((x) => x.setDataSet), m = y(
|
|
2861
2861
|
() => rt(t, i),
|
|
2862
2862
|
[t, i]
|
|
2863
2863
|
), u = _(
|
|
2864
|
-
(
|
|
2864
|
+
(x) => {
|
|
2865
2865
|
var E;
|
|
2866
|
-
return t && e ? ((E =
|
|
2866
|
+
return t && e ? ((E = x.propsStore[`${t}_props`]) == null ? void 0 : E[e]) ?? null : null;
|
|
2867
2867
|
}
|
|
2868
2868
|
), S = _(
|
|
2869
|
-
(
|
|
2870
|
-
), { validate:
|
|
2869
|
+
(x) => m && r ? x.getDataSet(m, r) : void 0
|
|
2870
|
+
), { validate: A, help: C } = Kt({
|
|
2871
2871
|
rules: c,
|
|
2872
2872
|
dataSet: i,
|
|
2873
2873
|
dataSetField: r,
|
|
2874
2874
|
sessionId: t,
|
|
2875
2875
|
id: e,
|
|
2876
2876
|
develop: n
|
|
2877
|
-
}), w = j((
|
|
2878
|
-
if (!
|
|
2879
|
-
const [E, k] =
|
|
2877
|
+
}), w = j((x) => {
|
|
2878
|
+
if (!x || !Array.isArray(x) || x.length !== 2) return null;
|
|
2879
|
+
const [E, k] = x, M = Ut.isDayjs(E) ? E : Ut(E, o), B = Ut.isDayjs(k) ? k : Ut(k, o);
|
|
2880
2880
|
return M.isValid() && B.isValid() ? [M, B] : null;
|
|
2881
2881
|
}, [o]), D = y(() => {
|
|
2882
|
-
const
|
|
2883
|
-
return w(
|
|
2882
|
+
const x = S ?? (u == null ? void 0 : u.value) ?? h ?? p;
|
|
2883
|
+
return w(x);
|
|
2884
2884
|
}, [S, u == null ? void 0 : u.value, h, p, w]), T = y(
|
|
2885
2885
|
() => Qt(g, u ?? void 0),
|
|
2886
2886
|
[g, u]
|
|
2887
2887
|
), O = j(
|
|
2888
|
-
(
|
|
2888
|
+
(x, E) => {
|
|
2889
2889
|
if (v) {
|
|
2890
|
-
v(
|
|
2890
|
+
v(x, E);
|
|
2891
2891
|
return;
|
|
2892
2892
|
}
|
|
2893
|
-
if (m && r && s(m, r, E), d &&
|
|
2894
|
-
const { actionName: k, arg: M } =
|
|
2893
|
+
if (m && r && s(m, r, E), d && A(E), a && t) {
|
|
2894
|
+
const { actionName: k, arg: M } = vt(a, E, {
|
|
2895
2895
|
id: e,
|
|
2896
2896
|
dataSet: i,
|
|
2897
2897
|
dataSetField: r
|
|
@@ -2899,12 +2899,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2899
2899
|
f(t, I(k, M));
|
|
2900
2900
|
}
|
|
2901
2901
|
},
|
|
2902
|
-
[v, m, r, s, d,
|
|
2902
|
+
[v, m, r, s, d, A, a, t, e, f]
|
|
2903
2903
|
), N = j(() => {
|
|
2904
|
-
var
|
|
2905
|
-
l &&
|
|
2906
|
-
}, [l,
|
|
2907
|
-
return /* @__PURE__ */
|
|
2904
|
+
var x, E;
|
|
2905
|
+
l && A(D ? [(x = D[0]) == null ? void 0 : x.format(o), (E = D[1]) == null ? void 0 : E.format(o)] : null);
|
|
2906
|
+
}, [l, A, D, o]);
|
|
2907
|
+
return /* @__PURE__ */ st("div", { onBlur: N, children: [
|
|
2908
2908
|
/* @__PURE__ */ b(
|
|
2909
2909
|
Ba,
|
|
2910
2910
|
{
|
|
@@ -2938,7 +2938,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2938
2938
|
dictCode: m,
|
|
2939
2939
|
direction: u,
|
|
2940
2940
|
remoteUrl: S,
|
|
2941
|
-
...
|
|
2941
|
+
...A
|
|
2942
2942
|
}) => {
|
|
2943
2943
|
const C = _((K) => K.addCommand), w = _((K) => K.setDataSet), D = y(
|
|
2944
2944
|
() => rt(t, i),
|
|
@@ -2950,7 +2950,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2950
2950
|
}
|
|
2951
2951
|
), O = _(
|
|
2952
2952
|
(K) => D && r ? K.getDataSet(D, r) : void 0
|
|
2953
|
-
), { validate: N, help:
|
|
2953
|
+
), { validate: N, help: x } = Kt({
|
|
2954
2954
|
rules: v,
|
|
2955
2955
|
dataSet: i,
|
|
2956
2956
|
dataSetField: r,
|
|
@@ -2969,8 +2969,8 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2969
2969
|
const K = ae(B, E);
|
|
2970
2970
|
return (K == null ? void 0 : K.value) ?? E;
|
|
2971
2971
|
}, [E, B]), P = y(
|
|
2972
|
-
() => Qt(
|
|
2973
|
-
[
|
|
2972
|
+
() => Qt(A, T ?? void 0),
|
|
2973
|
+
[A, T]
|
|
2974
2974
|
), $ = j(
|
|
2975
2975
|
(K) => {
|
|
2976
2976
|
const V = K.target.value;
|
|
@@ -2979,7 +2979,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
2979
2979
|
return;
|
|
2980
2980
|
}
|
|
2981
2981
|
if (D && r && w(D, r, V), p && N(V), c && t) {
|
|
2982
|
-
const { actionName: R, arg: L } =
|
|
2982
|
+
const { actionName: R, arg: L } = vt(c, V, {
|
|
2983
2983
|
id: e,
|
|
2984
2984
|
dataSet: i,
|
|
2985
2985
|
dataSetField: r
|
|
@@ -3002,7 +3002,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3002
3002
|
), z = j(() => {
|
|
3003
3003
|
h && N(H);
|
|
3004
3004
|
}, [h, N, H]);
|
|
3005
|
-
return /* @__PURE__ */
|
|
3005
|
+
return /* @__PURE__ */ st("div", { onBlur: z, children: [
|
|
3006
3006
|
/* @__PURE__ */ b(
|
|
3007
3007
|
Ve.Group,
|
|
3008
3008
|
{
|
|
@@ -3022,7 +3022,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3022
3022
|
)
|
|
3023
3023
|
}
|
|
3024
3024
|
),
|
|
3025
|
-
|
|
3025
|
+
x && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
|
|
3026
3026
|
] });
|
|
3027
3027
|
}, kc = ({
|
|
3028
3028
|
id: e,
|
|
@@ -3044,7 +3044,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3044
3044
|
defaultChecked: m,
|
|
3045
3045
|
children: u,
|
|
3046
3046
|
dictCode: S,
|
|
3047
|
-
direction:
|
|
3047
|
+
direction: A = "horizontal",
|
|
3048
3048
|
// 解构自定义属性防止传递到 DOM
|
|
3049
3049
|
remoteUrl: C,
|
|
3050
3050
|
...w
|
|
@@ -3057,7 +3057,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3057
3057
|
var Q;
|
|
3058
3058
|
return t && e ? ((Q = L.propsStore[`${t}_props`]) == null ? void 0 : Q[e]) ?? null : null;
|
|
3059
3059
|
}
|
|
3060
|
-
),
|
|
3060
|
+
), x = _(
|
|
3061
3061
|
(L) => O && r ? L.getDataSet(O, r) : void 0
|
|
3062
3062
|
), { validate: E, help: k } = Kt({
|
|
3063
3063
|
rules: d,
|
|
@@ -3075,15 +3075,15 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3075
3075
|
}
|
|
3076
3076
|
), H = y(() => {
|
|
3077
3077
|
if (!c)
|
|
3078
|
-
return
|
|
3079
|
-
}, [c,
|
|
3078
|
+
return x !== void 0 ? !!x : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ?? m;
|
|
3079
|
+
}, [c, x, N == null ? void 0 : N.checked, f, m]), P = y(() => N != null && N.options ? N.options : o != null && o.url && B.length > 0 ? B : S && M.length > 0 ? M : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, B, S, M, a]), $ = y(() => {
|
|
3080
3080
|
if (!c) return [];
|
|
3081
3081
|
let L = [];
|
|
3082
|
-
return Array.isArray(
|
|
3083
|
-
var
|
|
3084
|
-
return ((
|
|
3082
|
+
return Array.isArray(x) ? L = x : Array.isArray(N == null ? void 0 : N.values) ? L = N.values : L = s || [], P.length === 0 ? L : L.map((Q) => {
|
|
3083
|
+
var Y;
|
|
3084
|
+
return ((Y = ae(P, Q)) == null ? void 0 : Y.value) ?? Q;
|
|
3085
3085
|
});
|
|
3086
|
-
}, [c,
|
|
3086
|
+
}, [c, x, N == null ? void 0 : N.values, s, P]), z = y(
|
|
3087
3087
|
() => Qt(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3088
3088
|
[w, N]
|
|
3089
3089
|
), K = j((L) => {
|
|
@@ -3093,8 +3093,8 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3093
3093
|
return;
|
|
3094
3094
|
}
|
|
3095
3095
|
if (O && r && T(O, r, Q), h && E(Q), l && t) {
|
|
3096
|
-
const { actionName:
|
|
3097
|
-
D(t, I(
|
|
3096
|
+
const { actionName: Y, arg: U } = vt(l, Q, { id: e, dataSet: i, dataSetField: r });
|
|
3097
|
+
D(t, I(Y, U));
|
|
3098
3098
|
}
|
|
3099
3099
|
}, [p, O, r, T, h, E, l, t, e, D]), V = j((L) => {
|
|
3100
3100
|
if (g) {
|
|
@@ -3102,23 +3102,23 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3102
3102
|
return;
|
|
3103
3103
|
}
|
|
3104
3104
|
if (O && r && T(O, r, L), h && E(L), l && t) {
|
|
3105
|
-
const { actionName: Q, arg:
|
|
3106
|
-
D(t, I(Q,
|
|
3105
|
+
const { actionName: Q, arg: Y } = vt(l, L, { id: e, dataSet: i, dataSetField: r });
|
|
3106
|
+
D(t, I(Q, Y));
|
|
3107
3107
|
}
|
|
3108
3108
|
}, [g, O, r, T, h, E, l, t, e, D]), R = j(() => {
|
|
3109
3109
|
v && E(c ? $ : H);
|
|
3110
3110
|
}, [v, E, c, $, H]);
|
|
3111
|
-
return c && P.length > 0 ? /* @__PURE__ */
|
|
3111
|
+
return c && P.length > 0 ? /* @__PURE__ */ st("div", { onBlur: R, children: [
|
|
3112
3112
|
/* @__PURE__ */ b(se.Group, { ...z, value: $, onChange: V, disabled: n ? !1 : z.disabled, children: /* @__PURE__ */ b(
|
|
3113
3113
|
Yt,
|
|
3114
3114
|
{
|
|
3115
|
-
direction: z.direction ??
|
|
3115
|
+
direction: z.direction ?? A,
|
|
3116
3116
|
wrap: !0,
|
|
3117
3117
|
children: P.map((L) => /* @__PURE__ */ b(se, { value: L.value, disabled: L.disabled, children: L.label }, L.value))
|
|
3118
3118
|
}
|
|
3119
3119
|
) }),
|
|
3120
3120
|
k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
3121
|
-
] }) : /* @__PURE__ */
|
|
3121
|
+
] }) : /* @__PURE__ */ st("div", { onBlur: R, children: [
|
|
3122
3122
|
/* @__PURE__ */ b(
|
|
3123
3123
|
se,
|
|
3124
3124
|
{
|
|
@@ -3156,7 +3156,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3156
3156
|
}
|
|
3157
3157
|
), u = _(
|
|
3158
3158
|
(O) => s && r ? O.getDataSet(s, r) : void 0
|
|
3159
|
-
), { validate: S, help:
|
|
3159
|
+
), { validate: S, help: A } = Kt({
|
|
3160
3160
|
rules: o,
|
|
3161
3161
|
dataSet: i,
|
|
3162
3162
|
dataSetField: r,
|
|
@@ -3170,12 +3170,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3170
3170
|
return;
|
|
3171
3171
|
}
|
|
3172
3172
|
if (s && r && f(s, r, O), l && S(O), a && t) {
|
|
3173
|
-
const { actionName: N, arg:
|
|
3173
|
+
const { actionName: N, arg: x } = vt(a, O, {
|
|
3174
3174
|
id: e,
|
|
3175
3175
|
dataSet: i,
|
|
3176
3176
|
dataSetField: r
|
|
3177
3177
|
});
|
|
3178
|
-
g(t, I(N,
|
|
3178
|
+
g(t, I(N, x));
|
|
3179
3179
|
}
|
|
3180
3180
|
},
|
|
3181
3181
|
[d, s, r, f, l, S, a, t, e, g]
|
|
@@ -3185,7 +3185,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3185
3185
|
() => Qt(p, m ?? void 0),
|
|
3186
3186
|
[p, m]
|
|
3187
3187
|
);
|
|
3188
|
-
return /* @__PURE__ */
|
|
3188
|
+
return /* @__PURE__ */ st("div", { onBlur: D, children: [
|
|
3189
3189
|
/* @__PURE__ */ b(
|
|
3190
3190
|
gr,
|
|
3191
3191
|
{
|
|
@@ -3195,7 +3195,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3195
3195
|
onChange: w
|
|
3196
3196
|
}
|
|
3197
3197
|
),
|
|
3198
|
-
|
|
3198
|
+
A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
|
|
3199
3199
|
] });
|
|
3200
3200
|
}, _c = ({
|
|
3201
3201
|
id: e,
|
|
@@ -3220,8 +3220,8 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3220
3220
|
return;
|
|
3221
3221
|
}
|
|
3222
3222
|
if (g && r && p(g, r, u), a && t) {
|
|
3223
|
-
const { actionName: S, arg:
|
|
3224
|
-
v(t, I(S,
|
|
3223
|
+
const { actionName: S, arg: A } = vt(a, u, { id: e, dataSet: i, dataSetField: r });
|
|
3224
|
+
v(t, I(S, A));
|
|
3225
3225
|
}
|
|
3226
3226
|
}, [o, g, r, p, a, t, e, v]);
|
|
3227
3227
|
return /* @__PURE__ */ b(pr, { ...d, disabled: n ? !1 : d.disabled, value: s, onChange: m });
|
|
@@ -3267,34 +3267,34 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3267
3267
|
remoteUrl: f,
|
|
3268
3268
|
...s
|
|
3269
3269
|
}) => {
|
|
3270
|
-
const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S =
|
|
3270
|
+
const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), S = $t(null), [A, C] = mt([]), [w, D] = mt(!1), T = y(
|
|
3271
3271
|
() => rt(t, i),
|
|
3272
3272
|
[t, i]
|
|
3273
3273
|
), O = _(
|
|
3274
3274
|
($) => T && r ? $.getDataSet(T, r) : void 0
|
|
3275
|
-
), { validate: N, help:
|
|
3275
|
+
), { validate: N, help: x, validateStatus: E } = Kt({
|
|
3276
3276
|
rules: o,
|
|
3277
3277
|
dataSet: i,
|
|
3278
3278
|
dataSetField: r,
|
|
3279
3279
|
sessionId: t,
|
|
3280
3280
|
id: e,
|
|
3281
3281
|
develop: n
|
|
3282
|
-
}), k = y(() => (a == null ? void 0 : a.url) &&
|
|
3282
|
+
}), k = y(() => (a == null ? void 0 : a.url) && A.length > 0, [a == null ? void 0 : a.url, A.length]), M = y(() => {
|
|
3283
3283
|
let $ = O ?? g ?? p ?? [];
|
|
3284
|
-
return typeof $ == "string" ? k ? An($).map((K) => La(K,
|
|
3285
|
-
}, [O, g, p, k,
|
|
3286
|
-
|
|
3284
|
+
return typeof $ == "string" ? k ? An($).map((K) => La(K, A)).filter((K) => Array.isArray(K) && K.length > 0) : [$] : Cn($) && k ? $.map((K) => An(K)).filter((K) => Array.isArray(K) && K.length > 0) : Tn($) && k ? $.filter((z) => Array.isArray(z) && z.length > 0) : $;
|
|
3285
|
+
}, [O, g, p, k, A]), B = y(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
|
|
3286
|
+
xt(() => {
|
|
3287
3287
|
(async () => {
|
|
3288
3288
|
if (a != null && a.url) {
|
|
3289
3289
|
D(!0);
|
|
3290
3290
|
try {
|
|
3291
|
-
const z = await re({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], V = a.codeKey || "value", R = a.labelKey || "label", L = a.childrenKey || "children", Q = a.maxLevel || 5,
|
|
3291
|
+
const z = await re({ url: a.url, method: "GET" }), K = Array.isArray(z) ? z : z != null && z.data ? Array.isArray(z.data) ? z.data : z.data.list || z.data.records || [] : [], V = a.codeKey || "value", R = a.labelKey || "label", L = a.childrenKey || "children", Q = a.maxLevel || 5, Y = nr(K, {
|
|
3292
3292
|
codeKey: V,
|
|
3293
3293
|
labelKey: R,
|
|
3294
3294
|
childrenKey: L,
|
|
3295
3295
|
maxLevel: Q
|
|
3296
3296
|
});
|
|
3297
|
-
C(
|
|
3297
|
+
C(Y);
|
|
3298
3298
|
} catch (z) {
|
|
3299
3299
|
console.error("Failed to load remote options:", z), C([]);
|
|
3300
3300
|
} finally {
|
|
@@ -3313,7 +3313,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3313
3313
|
if (Cn($) && k ? K = String($[$.length - 1] || "") : Tn($) && k && (K = $.map((V) => V.join(","))), T && r && u(T, r, K), l && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
3314
3314
|
S.current = null, N($);
|
|
3315
3315
|
}, Ka)), d && t) {
|
|
3316
|
-
const { actionName: V, arg: R } =
|
|
3316
|
+
const { actionName: V, arg: R } = vt(d, $, {
|
|
3317
3317
|
id: e,
|
|
3318
3318
|
dataSet: i,
|
|
3319
3319
|
dataSetField: r
|
|
@@ -3337,12 +3337,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3337
3337
|
), P = j(() => {
|
|
3338
3338
|
c && N(M);
|
|
3339
3339
|
}, [c, N, M]);
|
|
3340
|
-
return
|
|
3340
|
+
return xt(
|
|
3341
3341
|
() => () => {
|
|
3342
3342
|
S.current && clearTimeout(S.current);
|
|
3343
3343
|
},
|
|
3344
3344
|
[]
|
|
3345
|
-
), /* @__PURE__ */
|
|
3345
|
+
), /* @__PURE__ */ st("div", { style: { width: "100%" }, children: [
|
|
3346
3346
|
/* @__PURE__ */ b(
|
|
3347
3347
|
vr,
|
|
3348
3348
|
{
|
|
@@ -3358,7 +3358,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3358
3358
|
style: { width: "100%", ...s.style }
|
|
3359
3359
|
}
|
|
3360
3360
|
),
|
|
3361
|
-
|
|
3361
|
+
x && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
|
|
3362
3362
|
] });
|
|
3363
3363
|
}, Mc = ({
|
|
3364
3364
|
id: e,
|
|
@@ -3381,7 +3381,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3381
3381
|
validateOnBlur: u,
|
|
3382
3382
|
...S
|
|
3383
3383
|
}) => {
|
|
3384
|
-
const
|
|
3384
|
+
const A = _((z) => z.addCommand), C = _((z) => z.setDataSet), w = y(
|
|
3385
3385
|
() => rt(t, i),
|
|
3386
3386
|
[t, i]
|
|
3387
3387
|
), D = _(
|
|
@@ -3398,7 +3398,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3398
3398
|
sessionId: t,
|
|
3399
3399
|
id: e,
|
|
3400
3400
|
develop: n
|
|
3401
|
-
}),
|
|
3401
|
+
}), x = y(
|
|
3402
3402
|
() => T ?? (D == null ? void 0 : D.value) ?? c ?? l,
|
|
3403
3403
|
[T, D == null ? void 0 : D.value, c, l]
|
|
3404
3404
|
), E = y(
|
|
@@ -3411,18 +3411,18 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3411
3411
|
return;
|
|
3412
3412
|
}
|
|
3413
3413
|
if (w && r && C(w, r, z), m && O(z), a && t) {
|
|
3414
|
-
const { actionName: R, arg: L } =
|
|
3414
|
+
const { actionName: R, arg: L } = vt(a, z, {
|
|
3415
3415
|
id: e,
|
|
3416
3416
|
dataSet: i,
|
|
3417
3417
|
dataSetField: r
|
|
3418
3418
|
});
|
|
3419
|
-
|
|
3419
|
+
A(t, I(R, L));
|
|
3420
3420
|
}
|
|
3421
3421
|
},
|
|
3422
|
-
[o, w, r, C, m, O, a, t, e,
|
|
3422
|
+
[o, w, r, C, m, O, a, t, e, A]
|
|
3423
3423
|
), M = j(() => {
|
|
3424
|
-
u && O(
|
|
3425
|
-
}, [u, O,
|
|
3424
|
+
u && O(x);
|
|
3425
|
+
}, [u, O, x]), B = y(() => {
|
|
3426
3426
|
if (!f) return;
|
|
3427
3427
|
const z = {};
|
|
3428
3428
|
return Object.entries(f).forEach(([K, V]) => {
|
|
@@ -3435,7 +3435,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3435
3435
|
TreeSelect: B
|
|
3436
3436
|
}
|
|
3437
3437
|
};
|
|
3438
|
-
}, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */
|
|
3438
|
+
}, [B]), P = N ? "error" : void 0, $ = /* @__PURE__ */ st("div", { onBlur: M, children: [
|
|
3439
3439
|
/* @__PURE__ */ b(
|
|
3440
3440
|
br,
|
|
3441
3441
|
{
|
|
@@ -3443,7 +3443,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3443
3443
|
disabled: n ? !1 : E.disabled,
|
|
3444
3444
|
open: n ? !1 : void 0,
|
|
3445
3445
|
treeData: d,
|
|
3446
|
-
value:
|
|
3446
|
+
value: x,
|
|
3447
3447
|
onChange: k,
|
|
3448
3448
|
style: { width: "100%", ...E.style },
|
|
3449
3449
|
styles: p,
|
|
@@ -3453,7 +3453,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3453
3453
|
),
|
|
3454
3454
|
N && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3455
3455
|
] });
|
|
3456
|
-
return H ? /* @__PURE__ */ b(
|
|
3456
|
+
return H ? /* @__PURE__ */ b(Bt, { theme: H, children: $ }) : $;
|
|
3457
3457
|
}, $c = ({
|
|
3458
3458
|
id: e,
|
|
3459
3459
|
sessionId: t,
|
|
@@ -3473,32 +3473,32 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3473
3473
|
action: s,
|
|
3474
3474
|
...m
|
|
3475
3475
|
}) => {
|
|
3476
|
-
const u = Re(i, r, t), S = u.dataSet,
|
|
3476
|
+
const u = Re(i, r, t), S = u.dataSet, A = u.dataSetField, C = u.sessionId, w = _((G) => G.addCommand), D = _((G) => G.setDataSet), T = y(
|
|
3477
3477
|
() => rt(C, S),
|
|
3478
3478
|
[C, S]
|
|
3479
3479
|
), O = _(
|
|
3480
|
-
(
|
|
3480
|
+
(G) => {
|
|
3481
3481
|
var q;
|
|
3482
|
-
return C && e ? ((q =
|
|
3482
|
+
return C && e ? ((q = G.propsStore[`${C}_props`]) == null ? void 0 : q[e]) ?? null : null;
|
|
3483
3483
|
}
|
|
3484
3484
|
), N = _(
|
|
3485
|
-
(
|
|
3486
|
-
), { validate:
|
|
3485
|
+
(G) => T && A ? G.getDataSet(T, A) : void 0
|
|
3486
|
+
), { validate: x, help: E } = Kt({
|
|
3487
3487
|
rules: c,
|
|
3488
3488
|
dataSet: S,
|
|
3489
|
-
dataSetField:
|
|
3489
|
+
dataSetField: A,
|
|
3490
3490
|
sessionId: C,
|
|
3491
3491
|
id: e,
|
|
3492
3492
|
develop: n
|
|
3493
|
-
}), k = j((
|
|
3494
|
-
var
|
|
3495
|
-
return ((
|
|
3496
|
-
}).filter((q) => q && typeof q == "string"), []), M = j((
|
|
3497
|
-
const q = Gt().viewRes,
|
|
3498
|
-
return
|
|
3499
|
-
const dt =
|
|
3493
|
+
}), k = j((G) => G.map((q) => {
|
|
3494
|
+
var nt;
|
|
3495
|
+
return ((nt = q == null ? void 0 : q.response) == null ? void 0 : nt.src) ?? (q == null ? void 0 : q.src) ?? (q == null ? void 0 : q.url) ?? (q == null ? void 0 : q.thumbUrl) ?? "";
|
|
3496
|
+
}).filter((q) => q && typeof q == "string"), []), M = j((G) => {
|
|
3497
|
+
const q = Gt().viewRes, nt = (Z) => (q ? q(Z) : Z) || Z;
|
|
3498
|
+
return G.map((Z, lt) => {
|
|
3499
|
+
const dt = nt(Z);
|
|
3500
3500
|
return {
|
|
3501
|
-
uid: `src-${
|
|
3501
|
+
uid: `src-${lt}-${Z}`,
|
|
3502
3502
|
name: Z.split("/").pop() || Z,
|
|
3503
3503
|
url: dt,
|
|
3504
3504
|
thumbUrl: dt,
|
|
@@ -3506,67 +3506,67 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3506
3506
|
response: { src: Z }
|
|
3507
3507
|
};
|
|
3508
3508
|
});
|
|
3509
|
-
}, []), B = j((
|
|
3510
|
-
const q = Gt().viewRes,
|
|
3511
|
-
return
|
|
3512
|
-
var
|
|
3513
|
-
const
|
|
3514
|
-
for (const
|
|
3515
|
-
const
|
|
3516
|
-
|
|
3509
|
+
}, []), B = j((G) => {
|
|
3510
|
+
const q = Gt().viewRes, nt = (Z) => (Z && q ? q(Z) : Z) || Z;
|
|
3511
|
+
return G.map((Z) => {
|
|
3512
|
+
var X;
|
|
3513
|
+
const lt = ((X = Z == null ? void 0 : Z.response) == null ? void 0 : X.src) ?? (Z == null ? void 0 : Z.src) ?? (Z == null ? void 0 : Z.url) ?? (Z == null ? void 0 : Z.thumbUrl) ?? "", dt = typeof lt == "string" ? nt(lt) : lt, St = {};
|
|
3514
|
+
for (const W of Object.keys(Z)) {
|
|
3515
|
+
const it = Z[W];
|
|
3516
|
+
it instanceof File ? St[W] = it : it && typeof it == "object" && !Array.isArray(it) ? St[W] = { ...it } : St[W] = it;
|
|
3517
3517
|
}
|
|
3518
|
-
return dt && typeof dt == "string" && (
|
|
3518
|
+
return dt && typeof dt == "string" && (St.url = dt, St.thumbUrl = dt), St;
|
|
3519
3519
|
});
|
|
3520
|
-
}, []), [H, P] =
|
|
3521
|
-
const
|
|
3522
|
-
if (
|
|
3523
|
-
if (typeof
|
|
3524
|
-
if (Array.isArray(
|
|
3525
|
-
return
|
|
3520
|
+
}, []), [H, P] = mt(null), $ = y(() => {
|
|
3521
|
+
const G = N ?? (O == null ? void 0 : O.fileList) ?? h;
|
|
3522
|
+
if (G != null) {
|
|
3523
|
+
if (typeof G == "string" && G) return M([G]);
|
|
3524
|
+
if (Array.isArray(G))
|
|
3525
|
+
return G.length > 0 && typeof G[0] == "string" ? M(G) : B(G);
|
|
3526
3526
|
}
|
|
3527
3527
|
}, [N, O == null ? void 0 : O.fileList, h, M, B]), z = H ?? $, K = y(
|
|
3528
3528
|
() => Qt(m, O ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3529
3529
|
[m, O]
|
|
3530
|
-
), V = j((
|
|
3531
|
-
const { file: q, onSuccess:
|
|
3530
|
+
), V = j((G) => G.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = j(async (G) => {
|
|
3531
|
+
const { file: q, onSuccess: nt, onError: Z, onProgress: lt } = G;
|
|
3532
3532
|
if (Gt().upload)
|
|
3533
3533
|
try {
|
|
3534
|
-
|
|
3535
|
-
const
|
|
3534
|
+
lt == null || lt({ percent: 30 });
|
|
3535
|
+
const St = await Xn(q, {
|
|
3536
3536
|
url: g,
|
|
3537
3537
|
headers: {
|
|
3538
3538
|
Authorization: rn() ? `Bearer ${rn()}` : ""
|
|
3539
3539
|
}
|
|
3540
3540
|
});
|
|
3541
|
-
|
|
3542
|
-
} catch (
|
|
3543
|
-
Z == null || Z(
|
|
3541
|
+
lt == null || lt({ percent: 100 }), nt == null || nt(St, q);
|
|
3542
|
+
} catch (St) {
|
|
3543
|
+
Z == null || Z(St), Ce.error("上传失败");
|
|
3544
3544
|
}
|
|
3545
3545
|
else
|
|
3546
3546
|
Z == null || Z(new Error("Upload handler not configured")), Ce.warning("上传功能未配置");
|
|
3547
3547
|
}, [g]), L = j(
|
|
3548
|
-
(
|
|
3548
|
+
(G) => {
|
|
3549
3549
|
if (v) {
|
|
3550
|
-
v(
|
|
3550
|
+
v(G);
|
|
3551
3551
|
return;
|
|
3552
3552
|
}
|
|
3553
|
-
const q = Array.isArray(
|
|
3554
|
-
T &&
|
|
3553
|
+
const q = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, nt = Array.isArray(q) ? k(q) : [], Z = Array.isArray(q) && q.some((dt) => (dt == null ? void 0 : dt.status) === "uploading");
|
|
3554
|
+
T && A && (nt.length > 0 || !Array.isArray(q) || q.length === 0) ? (D(T, A, nt), P(null)) : Z ? P(q) : q.length === 0 && P(null), d && x(q), a && C && w(
|
|
3555
3555
|
C,
|
|
3556
3556
|
I(a, {
|
|
3557
|
-
file:
|
|
3557
|
+
file: G.file,
|
|
3558
3558
|
fileList: q,
|
|
3559
|
-
src:
|
|
3559
|
+
src: nt
|
|
3560
3560
|
})
|
|
3561
3561
|
);
|
|
3562
3562
|
},
|
|
3563
3563
|
[
|
|
3564
3564
|
v,
|
|
3565
3565
|
T,
|
|
3566
|
-
|
|
3566
|
+
A,
|
|
3567
3567
|
D,
|
|
3568
3568
|
d,
|
|
3569
|
-
|
|
3569
|
+
x,
|
|
3570
3570
|
a,
|
|
3571
3571
|
C,
|
|
3572
3572
|
w,
|
|
@@ -3574,35 +3574,35 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3574
3574
|
k
|
|
3575
3575
|
]
|
|
3576
3576
|
), Q = j(() => {
|
|
3577
|
-
l &&
|
|
3578
|
-
}, [l,
|
|
3577
|
+
l && x(z);
|
|
3578
|
+
}, [l, x, z]), Y = j((G) => {
|
|
3579
3579
|
var dt;
|
|
3580
|
-
const q =
|
|
3580
|
+
const q = G.url || G.thumbUrl;
|
|
3581
3581
|
if (!q) return "";
|
|
3582
|
-
const
|
|
3583
|
-
return String(
|
|
3584
|
-
}, []), U = j((
|
|
3585
|
-
var Z,
|
|
3586
|
-
const q = ((Z =
|
|
3587
|
-
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(
|
|
3588
|
-
}, [
|
|
3582
|
+
const nt = ((dt = G.response) == null ? void 0 : dt.src) ?? (typeof q == "string" ? q : ""), Z = Gt().viewRes, lt = nt && Z ? Z(nt) : q;
|
|
3583
|
+
return String(lt).replace(/([?&])download=1(&|$)/, (St, X, W) => W ? X : "");
|
|
3584
|
+
}, []), U = j((G) => {
|
|
3585
|
+
var Z, lt;
|
|
3586
|
+
const q = ((Z = G.response) == null ? void 0 : Z.src) ?? G.name ?? "", nt = ((lt = String(q).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
|
|
3587
|
+
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(nt) || /^data:image\//.test(Y(G));
|
|
3588
|
+
}, [Y]), [at, ot] = mt({
|
|
3589
3589
|
url: "",
|
|
3590
3590
|
name: "",
|
|
3591
3591
|
urls: [],
|
|
3592
3592
|
current: 0,
|
|
3593
3593
|
open: !1
|
|
3594
|
-
}),
|
|
3595
|
-
const q = G
|
|
3594
|
+
}), tt = j((G) => {
|
|
3595
|
+
const q = Y(G);
|
|
3596
3596
|
if (q)
|
|
3597
|
-
if (U(
|
|
3598
|
-
const
|
|
3599
|
-
|
|
3600
|
-
} else U(
|
|
3601
|
-
}, [
|
|
3602
|
-
(
|
|
3603
|
-
[
|
|
3597
|
+
if (U(G) && (z != null && z.length)) {
|
|
3598
|
+
const nt = z.filter((dt) => U(dt)), Z = nt.map((dt) => Y(dt)).filter(Boolean), lt = nt.findIndex((dt) => (dt.uid || dt.url) === (G.uid || G.url));
|
|
3599
|
+
ot({ url: q, name: G.name, urls: Z, current: lt >= 0 ? lt : 0, open: !0 });
|
|
3600
|
+
} else U(G) || window.open(q, "_blank");
|
|
3601
|
+
}, [Y, U, z]), wt = !!Gt().upload && !s, yt = K, et = yt.buttonText ?? o, ft = yt.listType ?? m.listType, ct = yt.maxCount, _t = (z == null ? void 0 : z.length) ?? 0, bt = typeof ct == "number" && _t >= ct, jt = j(
|
|
3602
|
+
(G) => bt ? (Ce.warning(`最多只能上传 ${ct} 个文件`), !1) : V(G),
|
|
3603
|
+
[bt, ct, V]
|
|
3604
3604
|
);
|
|
3605
|
-
return /* @__PURE__ */
|
|
3605
|
+
return /* @__PURE__ */ st("div", { onBlur: Q, children: [
|
|
3606
3606
|
/* @__PURE__ */ b(
|
|
3607
3607
|
Sr,
|
|
3608
3608
|
{
|
|
@@ -3610,15 +3610,15 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3610
3610
|
disabled: n ? !1 : K.disabled,
|
|
3611
3611
|
fileList: z,
|
|
3612
3612
|
onChange: L,
|
|
3613
|
-
onPreview:
|
|
3614
|
-
beforeUpload:
|
|
3615
|
-
customRequest:
|
|
3616
|
-
action:
|
|
3613
|
+
onPreview: tt,
|
|
3614
|
+
beforeUpload: jt,
|
|
3615
|
+
customRequest: wt ? R : void 0,
|
|
3616
|
+
action: wt ? void 0 : s || g,
|
|
3617
3617
|
openFileDialogOnClick: !n,
|
|
3618
|
-
children: !
|
|
3618
|
+
children: !bt && (p || (ft === "picture-card" || ft === "picture-circle" ? /* @__PURE__ */ st("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
3619
3619
|
/* @__PURE__ */ b(Pn, {}),
|
|
3620
|
-
/* @__PURE__ */ b("div", { style: { marginTop: 8 }, children:
|
|
3621
|
-
] }) : /* @__PURE__ */ b(Xt, { icon: /* @__PURE__ */ b(Ir, {}), children:
|
|
3620
|
+
/* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: et })
|
|
3621
|
+
] }) : /* @__PURE__ */ b(Xt, { icon: /* @__PURE__ */ b(Ir, {}), children: et })))
|
|
3622
3622
|
}
|
|
3623
3623
|
),
|
|
3624
3624
|
E && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
|
|
@@ -3627,16 +3627,16 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3627
3627
|
{
|
|
3628
3628
|
preview: {
|
|
3629
3629
|
current: at.current,
|
|
3630
|
-
onOpenChange: (
|
|
3630
|
+
onOpenChange: (G) => !G && ot((q) => ({ ...q, open: !1 }))
|
|
3631
3631
|
},
|
|
3632
|
-
children: at.urls.map((
|
|
3632
|
+
children: at.urls.map((G, q) => /* @__PURE__ */ b(
|
|
3633
3633
|
Ft,
|
|
3634
3634
|
{
|
|
3635
|
-
src:
|
|
3635
|
+
src: G,
|
|
3636
3636
|
style: { width: 1, height: 1 },
|
|
3637
3637
|
preview: {
|
|
3638
3638
|
open: at.open && at.current === q,
|
|
3639
|
-
onOpenChange: (
|
|
3639
|
+
onOpenChange: (nt) => !nt && ot((Z) => ({ ...Z, open: !1 }))
|
|
3640
3640
|
}
|
|
3641
3641
|
},
|
|
3642
3642
|
q
|
|
@@ -3650,7 +3650,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3650
3650
|
style: { width: 1, height: 1 },
|
|
3651
3651
|
preview: {
|
|
3652
3652
|
open: at.open,
|
|
3653
|
-
onOpenChange: (
|
|
3653
|
+
onOpenChange: (G) => !G && ot((q) => ({ ...q, open: !1 }))
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
3656
|
) })
|
|
@@ -3674,12 +3674,12 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3674
3674
|
searchAction: f,
|
|
3675
3675
|
...s
|
|
3676
3676
|
}) => {
|
|
3677
|
-
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet),
|
|
3677
|
+
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
|
|
3678
3678
|
() => rt(t, i),
|
|
3679
3679
|
[t, i]
|
|
3680
|
-
), [C, w] =
|
|
3681
|
-
if (
|
|
3682
|
-
}, [
|
|
3680
|
+
), [C, w] = mt(h || []), [, D] = mt(!1), T = Wt.useRef(void 0), { get: O } = na(), N = y(() => {
|
|
3681
|
+
if (A && r) return u(A, r);
|
|
3682
|
+
}, [A, r, u]), x = y(() => N ?? d ?? v, [N, d, v]), E = j((B) => {
|
|
3683
3683
|
if (!(g != null && g.queryApi)) {
|
|
3684
3684
|
h && w(
|
|
3685
3685
|
h.filter(
|
|
@@ -3696,16 +3696,16 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3696
3696
|
D(!0);
|
|
3697
3697
|
try {
|
|
3698
3698
|
const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: z = "label", fixedParams: K = [] } = g, V = {};
|
|
3699
|
-
P && (V[P] = B), Array.isArray(K) && K.forEach((
|
|
3700
|
-
|
|
3699
|
+
P && (V[P] = B), Array.isArray(K) && K.forEach((Y) => {
|
|
3700
|
+
Y.key && (V[Y.key] = Y.value);
|
|
3701
3701
|
});
|
|
3702
3702
|
const R = await O(H, V);
|
|
3703
3703
|
let L = [];
|
|
3704
3704
|
Array.isArray(R) ? L = R : R && Array.isArray(R.data) ? L = R.data : R && R.data && Array.isArray(R.data.records) ? L = R.data.records : R && R.result && Array.isArray(R.result) && (L = R.result);
|
|
3705
|
-
const Q = L.map((
|
|
3706
|
-
value:
|
|
3707
|
-
label:
|
|
3708
|
-
...
|
|
3705
|
+
const Q = L.map((Y) => ({
|
|
3706
|
+
value: Y[$],
|
|
3707
|
+
label: Y[z] || Y[$],
|
|
3708
|
+
...Y
|
|
3709
3709
|
}));
|
|
3710
3710
|
w(Q);
|
|
3711
3711
|
} catch (H) {
|
|
@@ -3724,11 +3724,11 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3724
3724
|
c(B);
|
|
3725
3725
|
return;
|
|
3726
3726
|
}
|
|
3727
|
-
if (
|
|
3728
|
-
const { actionName: H, arg: P } =
|
|
3727
|
+
if (A && r && S(A, r, B), a && t) {
|
|
3728
|
+
const { actionName: H, arg: P } = vt(a, B, { id: e, dataSet: i, dataSetField: r });
|
|
3729
3729
|
m(t, I(H, P));
|
|
3730
3730
|
}
|
|
3731
|
-
}, [c,
|
|
3731
|
+
}, [c, A, r, S, a, t, e, m]), M = j((B, H) => {
|
|
3732
3732
|
if (l) {
|
|
3733
3733
|
l(B, H);
|
|
3734
3734
|
return;
|
|
@@ -3742,7 +3742,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3742
3742
|
disabled: n ? !1 : s.disabled,
|
|
3743
3743
|
open: n ? !1 : void 0,
|
|
3744
3744
|
options: C,
|
|
3745
|
-
value:
|
|
3745
|
+
value: x,
|
|
3746
3746
|
onChange: k,
|
|
3747
3747
|
onSelect: M,
|
|
3748
3748
|
onSearch: E,
|
|
@@ -3769,7 +3769,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3769
3769
|
const [s] = Ee.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), S = y(
|
|
3770
3770
|
() => rt(t, i),
|
|
3771
3771
|
[t, i]
|
|
3772
|
-
),
|
|
3772
|
+
), A = (w) => {
|
|
3773
3773
|
if (h) {
|
|
3774
3774
|
h(w);
|
|
3775
3775
|
return;
|
|
@@ -3782,9 +3782,9 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3782
3782
|
}
|
|
3783
3783
|
o && t && m(t, I(o, null));
|
|
3784
3784
|
};
|
|
3785
|
-
return /* @__PURE__ */
|
|
3785
|
+
return /* @__PURE__ */ st(Ee, { ...f, form: s, onFinish: A, children: [
|
|
3786
3786
|
g,
|
|
3787
|
-
(c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */
|
|
3787
|
+
(c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ st(Yt, { children: [
|
|
3788
3788
|
c && /* @__PURE__ */ b(Xt, { type: "primary", htmlType: "submit", children: d }),
|
|
3789
3789
|
l && /* @__PURE__ */ b(Xt, { onClick: C, children: v })
|
|
3790
3790
|
] }) })
|
|
@@ -3824,57 +3824,57 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3824
3824
|
locale: m,
|
|
3825
3825
|
changeAction: u,
|
|
3826
3826
|
selectChangeAction: S,
|
|
3827
|
-
searchAction:
|
|
3827
|
+
searchAction: A,
|
|
3828
3828
|
scrollAction: C,
|
|
3829
3829
|
onChange: w,
|
|
3830
3830
|
onSelectChange: D,
|
|
3831
3831
|
onSearch: T,
|
|
3832
3832
|
onScroll: O,
|
|
3833
3833
|
styles: N,
|
|
3834
|
-
token:
|
|
3834
|
+
token: x,
|
|
3835
3835
|
...E
|
|
3836
3836
|
}) => {
|
|
3837
|
-
const k = _((
|
|
3837
|
+
const k = _((et) => et.addCommand), M = _((et) => et.getDataSet), B = _((et) => et.setDataSet), H = y(
|
|
3838
3838
|
() => rt(t, i),
|
|
3839
3839
|
[t, i]
|
|
3840
|
-
), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(
|
|
3840
|
+
), P = y(() => Ht(N, {}), [N]), $ = y(() => Ht(x, {}), [x]), z = y(() => Ht(f, ["源列表", "目标列表"]), [f]), K = y(() => Ht(s, [">", "<"]), [s]), V = y(() => Ht(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => Ht(p, !1), [p]), L = y(() => {
|
|
3841
3841
|
if (H && r) {
|
|
3842
|
-
const
|
|
3843
|
-
if (Array.isArray(
|
|
3842
|
+
const et = M(H, r);
|
|
3843
|
+
if (Array.isArray(et)) return et;
|
|
3844
3844
|
}
|
|
3845
3845
|
}, [H, r, M]), Q = y(() => {
|
|
3846
3846
|
if (H && r) {
|
|
3847
|
-
const
|
|
3848
|
-
if (Array.isArray(
|
|
3847
|
+
const et = M(H, `${r}.dataSource`);
|
|
3848
|
+
if (Array.isArray(et)) return et;
|
|
3849
3849
|
}
|
|
3850
|
-
}, [H, r, M]),
|
|
3850
|
+
}, [H, r, M]), Y = y(() => n ? Q ?? Ht(a, []) : H ? Q ?? [] : Ht(a, []), [n, H, Q, a]), U = y(() => n ? L ?? Ht(o, []) : H ? L ?? [] : Ht(o, []), [n, H, L, o]), at = y(() => Ht(c, []), [c]), ot = j((et, ft, ct) => {
|
|
3851
3851
|
if (w) {
|
|
3852
|
-
w(
|
|
3852
|
+
w(et, ft, ct);
|
|
3853
3853
|
return;
|
|
3854
3854
|
}
|
|
3855
|
-
H && r && B(H, r,
|
|
3856
|
-
}, [w, H, r, B, u, t, k]),
|
|
3855
|
+
H && r && B(H, r, et), u && t && k(t, I(u, { targetKeys: et, direction: ft, moveKeys: ct }));
|
|
3856
|
+
}, [w, H, r, B, u, t, k]), tt = j((et, ft) => {
|
|
3857
3857
|
if (D) {
|
|
3858
|
-
D(
|
|
3858
|
+
D(et, ft);
|
|
3859
3859
|
return;
|
|
3860
3860
|
}
|
|
3861
|
-
S && t && k(t, I(S, { sourceSelectedKeys:
|
|
3862
|
-
}, [D, S, t, k]), pt = j((
|
|
3861
|
+
S && t && k(t, I(S, { sourceSelectedKeys: et, targetSelectedKeys: ft }));
|
|
3862
|
+
}, [D, S, t, k]), pt = j((et, ft) => {
|
|
3863
3863
|
if (T) {
|
|
3864
|
-
T(
|
|
3864
|
+
T(et, ft);
|
|
3865
3865
|
return;
|
|
3866
3866
|
}
|
|
3867
|
-
|
|
3868
|
-
}, [T,
|
|
3867
|
+
A && t && k(t, I(A, { direction: et, value: ft }));
|
|
3868
|
+
}, [T, A, t, k]), wt = j((et, ft) => {
|
|
3869
3869
|
if (O) {
|
|
3870
|
-
O(
|
|
3870
|
+
O(et, ft);
|
|
3871
3871
|
return;
|
|
3872
3872
|
}
|
|
3873
|
-
C && t && k(t, I(C, { direction:
|
|
3874
|
-
}, [O, C, t, k]),
|
|
3873
|
+
C && t && k(t, I(C, { direction: et }));
|
|
3874
|
+
}, [O, C, t, k]), yt = /* @__PURE__ */ b(
|
|
3875
3875
|
Dr,
|
|
3876
3876
|
{
|
|
3877
|
-
dataSource:
|
|
3877
|
+
dataSource: Y,
|
|
3878
3878
|
targetKeys: U,
|
|
3879
3879
|
selectedKeys: at,
|
|
3880
3880
|
disabled: l,
|
|
@@ -3886,16 +3886,16 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3886
3886
|
titles: z,
|
|
3887
3887
|
actions: K,
|
|
3888
3888
|
locale: V,
|
|
3889
|
-
onChange:
|
|
3890
|
-
onSelectChange:
|
|
3889
|
+
onChange: ot,
|
|
3890
|
+
onSelectChange: tt,
|
|
3891
3891
|
onSearch: pt,
|
|
3892
|
-
onScroll:
|
|
3892
|
+
onScroll: wt,
|
|
3893
3893
|
styles: P,
|
|
3894
|
-
render: (
|
|
3894
|
+
render: (et) => et.title,
|
|
3895
3895
|
...E
|
|
3896
3896
|
}
|
|
3897
3897
|
);
|
|
3898
|
-
return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(
|
|
3898
|
+
return $ && Object.keys($).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Transfer: $ } }, children: yt }) : yt;
|
|
3899
3899
|
}, an = (e, t) => {
|
|
3900
3900
|
if (e == null) return t;
|
|
3901
3901
|
if (typeof e == "string")
|
|
@@ -3938,15 +3938,15 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3938
3938
|
token: m,
|
|
3939
3939
|
...u
|
|
3940
3940
|
}) => {
|
|
3941
|
-
const S = _((M) => M.addCommand),
|
|
3941
|
+
const S = _((M) => M.addCommand), A = _((M) => M.getDataSet), C = _((M) => M.setDataSet), w = y(
|
|
3942
3942
|
() => rt(t, i),
|
|
3943
3943
|
[t, i]
|
|
3944
|
-
), D = y(() => an(s, {}), [s]), T = y(() => an(m, {}), [m]), O = y(() => Va(a), [a]),
|
|
3944
|
+
), D = y(() => an(s, {}), [s]), T = y(() => an(m, {}), [m]), O = y(() => Va(a), [a]), x = y(() => {
|
|
3945
3945
|
if (w && r) {
|
|
3946
|
-
const M =
|
|
3946
|
+
const M = A(w, r);
|
|
3947
3947
|
if (typeof M == "string") return M;
|
|
3948
3948
|
}
|
|
3949
|
-
}, [w, r,
|
|
3949
|
+
}, [w, r, A]) ?? o, E = j((M) => {
|
|
3950
3950
|
const B = String(M);
|
|
3951
3951
|
if (f) {
|
|
3952
3952
|
f(B);
|
|
@@ -3958,7 +3958,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3958
3958
|
{
|
|
3959
3959
|
...u,
|
|
3960
3960
|
options: O,
|
|
3961
|
-
value:
|
|
3961
|
+
value: x,
|
|
3962
3962
|
defaultValue: c,
|
|
3963
3963
|
block: l,
|
|
3964
3964
|
disabled: d,
|
|
@@ -3969,9 +3969,9 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
3969
3969
|
styles: D
|
|
3970
3970
|
}
|
|
3971
3971
|
);
|
|
3972
|
-
return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(
|
|
3972
|
+
return T && Object.keys(T).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Segmented: T } }, children: k }) : k;
|
|
3973
3973
|
}, qa = (e, t, n) => {
|
|
3974
|
-
const [i, r] =
|
|
3974
|
+
const [i, r] = mt(void 0), a = t === "100%", o = $t(0);
|
|
3975
3975
|
return Hn(() => {
|
|
3976
3976
|
if (!a || !e.current) {
|
|
3977
3977
|
r(void 0);
|
|
@@ -4001,7 +4001,7 @@ const pc = Wt.memo(er), xn = 200, vc = ({
|
|
|
4001
4001
|
const w = window.getComputedStyle(S), D = parseFloat(w.marginTop) || 0, T = parseFloat(w.marginBottom) || 0;
|
|
4002
4002
|
g += D + T;
|
|
4003
4003
|
}
|
|
4004
|
-
const
|
|
4004
|
+
const A = p - g - 2, C = Math.max(Math.floor(A), 50);
|
|
4005
4005
|
r(C);
|
|
4006
4006
|
});
|
|
4007
4007
|
};
|
|
@@ -4028,8 +4028,8 @@ function Wa(e) {
|
|
|
4028
4028
|
return t || (t = ln(e), Nn.set(e, t)), t;
|
|
4029
4029
|
}
|
|
4030
4030
|
const Ha = ({ dictCode: e, value: t }) => {
|
|
4031
|
-
const [n, i] =
|
|
4032
|
-
if (
|
|
4031
|
+
const [n, i] = mt(null);
|
|
4032
|
+
if (xt(() => {
|
|
4033
4033
|
if (!e) {
|
|
4034
4034
|
i([]);
|
|
4035
4035
|
return;
|
|
@@ -4177,9 +4177,9 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4177
4177
|
onSave: v,
|
|
4178
4178
|
onClose: h
|
|
4179
4179
|
}) => {
|
|
4180
|
-
const [p, g] =
|
|
4181
|
-
|
|
4182
|
-
e && (g(n), s([...i]), u(o),
|
|
4180
|
+
const [p, g] = mt(n), [f, s] = mt(i), [m, u] = mt(o), [S, A] = mt(l), [C, w] = mt(null);
|
|
4181
|
+
xt(() => {
|
|
4182
|
+
e && (g(n), s([...i]), u(o), A(l));
|
|
4183
4183
|
}, [e, n, i, o, l]);
|
|
4184
4184
|
const D = j(
|
|
4185
4185
|
(R) => {
|
|
@@ -4187,51 +4187,51 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4187
4187
|
},
|
|
4188
4188
|
[v]
|
|
4189
4189
|
), T = j(
|
|
4190
|
-
(R, L, Q,
|
|
4190
|
+
(R, L, Q, Y) => kn(R, L, Q ?? m, Y ?? S),
|
|
4191
4191
|
[m, S]
|
|
4192
4192
|
), O = j(() => {
|
|
4193
4193
|
g(r);
|
|
4194
4194
|
const R = a.map((L) => ({ ...L }));
|
|
4195
|
-
s(R), u(c),
|
|
4195
|
+
s(R), u(c), A(d), D(kn(r, R, c, d));
|
|
4196
4196
|
}, [r, a, c, d, D]), N = j(
|
|
4197
4197
|
(R) => {
|
|
4198
4198
|
s((L) => {
|
|
4199
|
-
const Q = L.map((
|
|
4199
|
+
const Q = L.map((Y) => Y.key === R ? { ...Y, visible: !Y.visible } : Y);
|
|
4200
4200
|
return D(T(p, Q)), Q;
|
|
4201
4201
|
});
|
|
4202
4202
|
},
|
|
4203
4203
|
[p, T, D]
|
|
4204
|
-
),
|
|
4204
|
+
), x = j(
|
|
4205
4205
|
(R, L) => {
|
|
4206
4206
|
s((Q) => {
|
|
4207
|
-
const
|
|
4208
|
-
return D(T(p,
|
|
4207
|
+
const Y = Q.map((U) => U.key === R ? { ...U, fixed: L } : U);
|
|
4208
|
+
return D(T(p, Y)), Y;
|
|
4209
4209
|
});
|
|
4210
4210
|
},
|
|
4211
4211
|
[p, T, D]
|
|
4212
4212
|
), E = j(
|
|
4213
4213
|
(R, L) => {
|
|
4214
4214
|
s((Q) => {
|
|
4215
|
-
const
|
|
4216
|
-
return D(T(p,
|
|
4215
|
+
const Y = Q.map((U) => U.key === R ? { ...U, width: L } : U);
|
|
4216
|
+
return D(T(p, Y)), Y;
|
|
4217
4217
|
});
|
|
4218
4218
|
},
|
|
4219
4219
|
[p, T, D]
|
|
4220
4220
|
), k = j(
|
|
4221
4221
|
(R, L) => {
|
|
4222
4222
|
s((Q) => {
|
|
4223
|
-
const
|
|
4224
|
-
if (!
|
|
4225
|
-
const U = typeof
|
|
4226
|
-
return D(T(p,
|
|
4223
|
+
const Y = Q.find((tt) => tt.key === R);
|
|
4224
|
+
if (!Y) return Q;
|
|
4225
|
+
const U = typeof Y.width == "number" ? Y.width : 80, at = Math.max(He, U + L), ot = Q.map((tt) => tt.key === R ? { ...tt, width: at } : tt);
|
|
4226
|
+
return D(T(p, ot)), ot;
|
|
4227
4227
|
});
|
|
4228
4228
|
},
|
|
4229
4229
|
[p, T, D]
|
|
4230
4230
|
), M = j(
|
|
4231
4231
|
(R, L) => {
|
|
4232
4232
|
if (L < 0 || L >= f.length) return;
|
|
4233
|
-
const Q = [...f], [
|
|
4234
|
-
Q.splice(L, 0,
|
|
4233
|
+
const Q = [...f], [Y] = Q.splice(R, 1);
|
|
4234
|
+
Q.splice(L, 0, Y), s(Q), D(T(p, Q));
|
|
4235
4235
|
},
|
|
4236
4236
|
[f, p, T, D]
|
|
4237
4237
|
), B = j(
|
|
@@ -4246,7 +4246,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4246
4246
|
[p, f, S, T, D]
|
|
4247
4247
|
), P = j(
|
|
4248
4248
|
(R) => {
|
|
4249
|
-
|
|
4249
|
+
A(R), D(T(p, f, m, R));
|
|
4250
4250
|
},
|
|
4251
4251
|
[p, f, m, T, D]
|
|
4252
4252
|
), $ = (R) => (L) => {
|
|
@@ -4270,8 +4270,8 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4270
4270
|
style: V,
|
|
4271
4271
|
mask: !1,
|
|
4272
4272
|
className: `and-table-column-setting-modal${t != null ? " and-table-column-setting-modal-positioned" : ""}`,
|
|
4273
|
-
children: /* @__PURE__ */
|
|
4274
|
-
/* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */
|
|
4273
|
+
children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-body", children: [
|
|
4274
|
+
/* @__PURE__ */ b("div", { className: "and-table-column-setting-header", children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-header-row", children: [
|
|
4275
4275
|
/* @__PURE__ */ b(
|
|
4276
4276
|
se,
|
|
4277
4277
|
{
|
|
@@ -4281,7 +4281,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4281
4281
|
}
|
|
4282
4282
|
),
|
|
4283
4283
|
/* @__PURE__ */ b(se, { checked: m, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
|
|
4284
|
-
/* @__PURE__ */
|
|
4284
|
+
/* @__PURE__ */ st(Yt, { align: "center", children: [
|
|
4285
4285
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4286
4286
|
/* @__PURE__ */ b(
|
|
4287
4287
|
Rn,
|
|
@@ -4295,16 +4295,16 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4295
4295
|
)
|
|
4296
4296
|
] })
|
|
4297
4297
|
] }) }),
|
|
4298
|
-
/* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */
|
|
4299
|
-
/* @__PURE__ */ b("thead", { children: /* @__PURE__ */
|
|
4298
|
+
/* @__PURE__ */ b("div", { className: "and-table-column-setting-list-wrap", children: /* @__PURE__ */ st("table", { className: "and-table-column-setting-table", children: [
|
|
4299
|
+
/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ st("tr", { children: [
|
|
4300
4300
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-drag", children: "排序" }),
|
|
4301
4301
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-name", children: "列名/可见" }),
|
|
4302
4302
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
4303
4303
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
|
|
4304
4304
|
] }) }),
|
|
4305
4305
|
/* @__PURE__ */ b("tbody", { children: f.map((R, L) => {
|
|
4306
|
-
const Q = typeof R.width == "number" ? R.width : null,
|
|
4307
|
-
return /* @__PURE__ */
|
|
4306
|
+
const Q = typeof R.width == "number" ? R.width : null, Y = R.width === "auto" || R.width === void 0 && Q === null;
|
|
4307
|
+
return /* @__PURE__ */ st(
|
|
4308
4308
|
"tr",
|
|
4309
4309
|
{
|
|
4310
4310
|
className: `and-table-column-setting-row ${C === L ? "and-table-column-setting-row-dragging" : ""}`,
|
|
@@ -4314,11 +4314,11 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4314
4314
|
onDragEnd: K,
|
|
4315
4315
|
children: [
|
|
4316
4316
|
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(ti, {}) }) }),
|
|
4317
|
-
/* @__PURE__ */
|
|
4317
|
+
/* @__PURE__ */ st("td", { className: "and-table-column-setting-td-name", children: [
|
|
4318
4318
|
/* @__PURE__ */ b(se, { checked: R.visible, onChange: () => N(R.key) }),
|
|
4319
4319
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-title", title: R.title, children: R.title })
|
|
4320
4320
|
] }),
|
|
4321
|
-
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */
|
|
4321
|
+
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ st("div", { className: "and-table-column-setting-width", children: [
|
|
4322
4322
|
/* @__PURE__ */ b(
|
|
4323
4323
|
"span",
|
|
4324
4324
|
{
|
|
@@ -4334,7 +4334,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4334
4334
|
size: "small",
|
|
4335
4335
|
min: He,
|
|
4336
4336
|
step: de,
|
|
4337
|
-
value:
|
|
4337
|
+
value: Y ? void 0 : Q ?? 80,
|
|
4338
4338
|
placeholder: "auto",
|
|
4339
4339
|
controls: !1,
|
|
4340
4340
|
style: { width: 44 },
|
|
@@ -4353,12 +4353,12 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4353
4353
|
}
|
|
4354
4354
|
)
|
|
4355
4355
|
] }) }),
|
|
4356
|
-
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */
|
|
4356
|
+
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ st(Yt, { className: "and-table-column-setting-fix", children: [
|
|
4357
4357
|
/* @__PURE__ */ b(
|
|
4358
4358
|
"span",
|
|
4359
4359
|
{
|
|
4360
4360
|
className: `and-table-column-setting-fix-btn ${R.fixed === "left" ? "active" : ""}`,
|
|
4361
|
-
onClick: () =>
|
|
4361
|
+
onClick: () => x(R.key, R.fixed === "left" ? !1 : "left"),
|
|
4362
4362
|
title: "固定到左侧",
|
|
4363
4363
|
children: /* @__PURE__ */ b(Un, {})
|
|
4364
4364
|
}
|
|
@@ -4368,7 +4368,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4368
4368
|
"span",
|
|
4369
4369
|
{
|
|
4370
4370
|
className: `and-table-column-setting-fix-btn ${R.fixed === "right" ? "active" : ""}`,
|
|
4371
|
-
onClick: () =>
|
|
4371
|
+
onClick: () => x(R.key, R.fixed === "right" ? !1 : "right"),
|
|
4372
4372
|
title: "固定到右侧",
|
|
4373
4373
|
children: /* @__PURE__ */ b(Yn, {})
|
|
4374
4374
|
}
|
|
@@ -4404,7 +4404,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4404
4404
|
emptyText: m,
|
|
4405
4405
|
bordered: u,
|
|
4406
4406
|
size: S,
|
|
4407
|
-
sticky:
|
|
4407
|
+
sticky: A,
|
|
4408
4408
|
scroll: C,
|
|
4409
4409
|
autoFillHeight: w,
|
|
4410
4410
|
// 插槽配置
|
|
@@ -4412,7 +4412,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4412
4412
|
showSummary: T,
|
|
4413
4413
|
showFooter: O,
|
|
4414
4414
|
renderTitle: N,
|
|
4415
|
-
renderSummary:
|
|
4415
|
+
renderSummary: x,
|
|
4416
4416
|
renderFooter: E,
|
|
4417
4417
|
children: k,
|
|
4418
4418
|
token: M,
|
|
@@ -4420,16 +4420,16 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4420
4420
|
columnSettingsKey: H,
|
|
4421
4421
|
...P
|
|
4422
4422
|
}) => {
|
|
4423
|
-
const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [V, R] =
|
|
4424
|
-
if (F == null) return
|
|
4423
|
+
const $ = _((F) => F.addCommand), z = _((F) => F.getDataSet), K = _((F) => F.setDataSet), [V, R] = mt([]), L = $t(null), [Q, Y] = mt(void 0), U = j((F, ut) => {
|
|
4424
|
+
if (F == null) return ut;
|
|
4425
4425
|
if (typeof F == "string")
|
|
4426
4426
|
try {
|
|
4427
|
-
return JSON.parse(F) ??
|
|
4427
|
+
return JSON.parse(F) ?? ut;
|
|
4428
4428
|
} catch {
|
|
4429
|
-
return
|
|
4429
|
+
return ut;
|
|
4430
4430
|
}
|
|
4431
4431
|
return F;
|
|
4432
|
-
}, []), at = y(() => Array.isArray(a) ? a : [], [a]),
|
|
4432
|
+
}, []), at = y(() => Array.isArray(a) ? a : [], [a]), ot = y(() => Array.isArray(o) ? o : [], [o]), tt = y(
|
|
4433
4433
|
() => ({
|
|
4434
4434
|
dataSet: rt(t, i),
|
|
4435
4435
|
pagination: i ? rt(t, `${i}_pagination`) : void 0,
|
|
@@ -4440,167 +4440,167 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4440
4440
|
[t, i]
|
|
4441
4441
|
), pt = _(
|
|
4442
4442
|
(F) => {
|
|
4443
|
-
var
|
|
4444
|
-
return
|
|
4443
|
+
var ut;
|
|
4444
|
+
return tt.columnSettingOpen ? ((ut = F.dataSets[tt.columnSettingOpen]) == null ? void 0 : ut.value) === !0 : !1;
|
|
4445
4445
|
}
|
|
4446
|
-
),
|
|
4446
|
+
), wt = 420;
|
|
4447
4447
|
Hn(() => {
|
|
4448
4448
|
if (!pt || !L.current) return;
|
|
4449
4449
|
const F = L.current.querySelector(".ant-table-thead") || L.current.querySelector(".ant-table-header");
|
|
4450
4450
|
if (!F) return;
|
|
4451
|
-
const
|
|
4452
|
-
|
|
4453
|
-
x:
|
|
4454
|
-
y:
|
|
4451
|
+
const ut = F.getBoundingClientRect();
|
|
4452
|
+
Y({
|
|
4453
|
+
x: ut.right - wt,
|
|
4454
|
+
y: ut.bottom + 8
|
|
4455
4455
|
});
|
|
4456
4456
|
}, [pt]);
|
|
4457
|
-
const
|
|
4458
|
-
var
|
|
4459
|
-
const
|
|
4460
|
-
return typeof
|
|
4461
|
-
}),
|
|
4462
|
-
() =>
|
|
4463
|
-
[
|
|
4464
|
-
),
|
|
4465
|
-
(F) =>
|
|
4466
|
-
),
|
|
4457
|
+
const yt = _((F) => {
|
|
4458
|
+
var kt;
|
|
4459
|
+
const ut = tt.columnSettings ? (kt = F.dataSets[tt.columnSettings]) == null ? void 0 : kt.value : void 0;
|
|
4460
|
+
return typeof ut == "object" && ut !== null ? ut : void 0;
|
|
4461
|
+
}), et = bi(tt.dataSet, r), ft = y(() => tt.dataSet ? et : (c == null ? void 0 : c.data) || [], [tt.dataSet, et, c == null ? void 0 : c.data]), ct = y(() => U(M, {}), [M, U]), _t = ct && Object.keys(ct).length > 0, bt = y(
|
|
4462
|
+
() => _t ? { components: { Table: ct } } : void 0,
|
|
4463
|
+
[_t, ct]
|
|
4464
|
+
), jt = _(
|
|
4465
|
+
(F) => tt.pagination ? F.dataSets[tt.pagination] : void 0
|
|
4466
|
+
), G = y(() => tt.pagination ? z(tt.pagination, "") || {} : {}, [tt.pagination, z, jt]), q = y(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), nt = y(() => {
|
|
4467
4467
|
if (!q) return !1;
|
|
4468
|
-
const F = typeof s == "object" ? s : {},
|
|
4468
|
+
const F = typeof s == "object" ? s : {}, ut = P || {}, kt = F.showSizeChanger ?? ut["pagination-showSizeChanger"] ?? !0, Dt = F.showQuickJumper ?? ut["pagination-showQuickJumper"] ?? !1, Tt = F.simple ?? ut["pagination-simple"] ?? !1, Lt = F.defaultPageSize ?? ut["pagination-defaultPageSize"] ?? 10, Pt = F.pageSizeOptions ?? ut["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Pt == "string" ? Pt.split(",").map((te) => parseInt(String(te).trim(), 10) || 10).filter((te) => !isNaN(te)) : Array.isArray(Pt) ? Pt : [10, 20, 50, 100];
|
|
4469
4469
|
return {
|
|
4470
|
-
...
|
|
4471
|
-
showSizeChanger:
|
|
4472
|
-
showQuickJumper:
|
|
4473
|
-
simple:
|
|
4470
|
+
...G,
|
|
4471
|
+
showSizeChanger: kt,
|
|
4472
|
+
showQuickJumper: Dt,
|
|
4473
|
+
simple: Tt,
|
|
4474
4474
|
defaultPageSize: Lt,
|
|
4475
4475
|
pageSizeOptions: ze,
|
|
4476
4476
|
showTotal: (te, oe) => (F.showTotal || "共 ${total} 条").replace("${total}", String(te)).replace("${range[0]}", String(oe[0])).replace("${range[1]}", String(oe[1])).replace("${range}", `${oe[0]}-${oe[1]}`),
|
|
4477
4477
|
onChange: (te, oe) => {
|
|
4478
|
-
|
|
4478
|
+
tt.pagination && K(tt.pagination, "", { ...G, current: te, pageSize: oe }), f && t && $(t, I(f, null));
|
|
4479
4479
|
},
|
|
4480
4480
|
hideOnSinglePage: !1
|
|
4481
4481
|
};
|
|
4482
|
-
}, [q, s, P,
|
|
4483
|
-
t && $(t, I(F.action, { ...
|
|
4484
|
-
}, [t, $]),
|
|
4485
|
-
let
|
|
4486
|
-
F.fixed === !0 || F.fixed === "left" ?
|
|
4487
|
-
const
|
|
4482
|
+
}, [q, s, P, G, tt.pagination, K, f, t, $]), Z = j((F, ut) => {
|
|
4483
|
+
t && $(t, I(F.action, { ...ut }));
|
|
4484
|
+
}, [t, $]), lt = y(() => at.map((F) => {
|
|
4485
|
+
let ut = !1;
|
|
4486
|
+
F.fixed === !0 || F.fixed === "left" ? ut = "left" : F.fixed === "right" && (ut = "right");
|
|
4487
|
+
const kt = F.width;
|
|
4488
4488
|
return {
|
|
4489
4489
|
key: String(F.key ?? F.dataIndex ?? ""),
|
|
4490
4490
|
title: typeof F.title == "string" ? F.title : "列",
|
|
4491
4491
|
visible: F.visible !== !1,
|
|
4492
|
-
fixed:
|
|
4493
|
-
width: typeof
|
|
4492
|
+
fixed: ut,
|
|
4493
|
+
width: typeof kt == "number" ? kt : "auto"
|
|
4494
4494
|
};
|
|
4495
|
-
}).filter((F) => F.key), [at]), dt = g === !0,
|
|
4496
|
-
|
|
4497
|
-
|
|
4495
|
+
}).filter((F) => F.key), [at]), dt = g === !0, St = !1, X = S === "small" || S === "large" ? S : "middle", { rowIndexVisible: W, items: it, scrollX: At, size: J } = y(() => Za(
|
|
4496
|
+
yt,
|
|
4497
|
+
lt,
|
|
4498
4498
|
dt,
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
), [
|
|
4499
|
+
St,
|
|
4500
|
+
X
|
|
4501
|
+
), [yt, lt, dt, St, X]), gt = !!(i && t), Ct = y(() => {
|
|
4502
4502
|
const F = [];
|
|
4503
|
-
|
|
4503
|
+
W && F.push({
|
|
4504
4504
|
title: "序号",
|
|
4505
4505
|
key: "rowIndex",
|
|
4506
4506
|
width: 60,
|
|
4507
4507
|
align: "center",
|
|
4508
|
-
render: (
|
|
4509
|
-
const Pt =
|
|
4508
|
+
render: (Dt, Tt, Lt) => {
|
|
4509
|
+
const Pt = G.current || 1, ze = G.pageSize || 10;
|
|
4510
4510
|
return (Pt - 1) * ze + Lt + 1;
|
|
4511
4511
|
}
|
|
4512
4512
|
});
|
|
4513
|
-
const
|
|
4514
|
-
return
|
|
4515
|
-
const
|
|
4516
|
-
if (!
|
|
4517
|
-
const Lt =
|
|
4513
|
+
const ut = new Map(at.map((Dt) => [String(Dt.key ?? Dt.dataIndex ?? ""), Dt]));
|
|
4514
|
+
return it.filter((Dt) => Dt.visible).forEach((Dt) => {
|
|
4515
|
+
const Tt = ut.get(Dt.key);
|
|
4516
|
+
if (!Tt) return;
|
|
4517
|
+
const Lt = Dt.fixed || void 0, Pt = Dt.width === "auto" || Dt.width === void 0 ? void 0 : Dt.width;
|
|
4518
4518
|
F.push(Qa({
|
|
4519
|
-
...
|
|
4520
|
-
dataIndex:
|
|
4521
|
-
fixed: Lt ||
|
|
4522
|
-
width: Pt ??
|
|
4519
|
+
...Tt,
|
|
4520
|
+
dataIndex: Tt.dataIndex || Tt.key,
|
|
4521
|
+
fixed: Lt || Tt.fixed,
|
|
4522
|
+
width: Pt ?? Tt.width
|
|
4523
4523
|
}));
|
|
4524
|
-
}), l !== !1 &&
|
|
4524
|
+
}), l !== !1 && ot.length > 0 && F.push({
|
|
4525
4525
|
title: "操作",
|
|
4526
4526
|
key: "action",
|
|
4527
|
-
render: (
|
|
4527
|
+
render: (Dt, Tt) => /* @__PURE__ */ b(Yt, { children: ot.map((Lt, Pt) => /* @__PURE__ */ b(Ar, { title: Lt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Z(Lt, Tt), style: { marginRight: 5 }, children: Lt.title }) }, Pt)) })
|
|
4528
4528
|
}), F;
|
|
4529
4529
|
}, [
|
|
4530
4530
|
at,
|
|
4531
|
+
ot,
|
|
4532
|
+
W,
|
|
4531
4533
|
it,
|
|
4532
|
-
ft,
|
|
4533
|
-
mt,
|
|
4534
4534
|
l,
|
|
4535
|
-
|
|
4535
|
+
G,
|
|
4536
4536
|
Z
|
|
4537
|
-
]),
|
|
4538
|
-
|
|
4539
|
-
}, [
|
|
4537
|
+
]), Rt = j(() => {
|
|
4538
|
+
tt.columnSettingOpen && K(tt.columnSettingOpen, "", !1);
|
|
4539
|
+
}, [tt.columnSettingOpen, K]), Vt = j(
|
|
4540
4540
|
(F) => {
|
|
4541
|
-
|
|
4541
|
+
tt.columnSettings && K(tt.columnSettings, "value", F);
|
|
4542
4542
|
},
|
|
4543
|
-
[
|
|
4543
|
+
[tt.columnSettings, K]
|
|
4544
4544
|
), ir = y(() => {
|
|
4545
4545
|
if (!v && d)
|
|
4546
4546
|
return {
|
|
4547
4547
|
selectedRowKeys: V,
|
|
4548
|
-
onChange: (F,
|
|
4549
|
-
R(F),
|
|
4548
|
+
onChange: (F, ut, kt) => {
|
|
4549
|
+
R(F), tt.selected && K(tt.selected, "", F), h != null && h.trim() && t && $(t, I(h.trim(), {
|
|
4550
4550
|
selectedRowKeys: F,
|
|
4551
|
-
selectedRows:
|
|
4552
|
-
info:
|
|
4551
|
+
selectedRows: ut,
|
|
4552
|
+
info: kt
|
|
4553
4553
|
}));
|
|
4554
4554
|
}
|
|
4555
4555
|
};
|
|
4556
|
-
}, [d, v, V,
|
|
4556
|
+
}, [d, v, V, tt.selected, K, h, t, $]), fn = j((F) => {
|
|
4557
4557
|
if (!v) return;
|
|
4558
|
-
const
|
|
4559
|
-
R(
|
|
4560
|
-
}, [v, h, t, p,
|
|
4558
|
+
const kt = [F[p]];
|
|
4559
|
+
R(kt), tt.selected && K(tt.selected, "", kt), h != null && h.trim() && t && $(t, I(h.trim(), { record: F, selectedRowKeys: kt }));
|
|
4560
|
+
}, [v, h, t, p, tt.selected, K, $]), ar = j((F) => v && V.includes(F[p]) ? "ant-table-row-selected" : "", [v, p, V]), or = j((F) => v ? { onClick: () => fn(F), style: { cursor: "pointer" } } : {}, [v, fn]), { style: cr, className: sr, ...fe } = P, Mt = y(() => {
|
|
4561
4561
|
if (C) return C;
|
|
4562
|
-
let F = fe["scroll-x"],
|
|
4563
|
-
if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (
|
|
4564
|
-
}, [C, fe["scroll-x"], fe["scroll-y"]]), Le = qa(L,
|
|
4565
|
-
if (!
|
|
4566
|
-
const F =
|
|
4567
|
-
return F !== void 0 ||
|
|
4568
|
-
}, [
|
|
4569
|
-
let F = null,
|
|
4570
|
-
const
|
|
4571
|
-
return Wt.Children.forEach(k, (
|
|
4572
|
-
if (!Wt.isValidElement(
|
|
4573
|
-
|
|
4562
|
+
let F = fe["scroll-x"], ut = fe["scroll-y"];
|
|
4563
|
+
if (String(F) === "true" ? F = !0 : String(F) === "false" ? F = void 0 : F === "max-content" && (F = "max-content"), (ut === "" || ut === null || ut === void 0) && (ut = void 0), F !== void 0 || ut !== void 0) return { x: F, y: ut };
|
|
4564
|
+
}, [C, fe["scroll-x"], fe["scroll-y"]]), Le = qa(L, Mt == null ? void 0 : Mt.y, q), lr = y(() => {
|
|
4565
|
+
if (!Mt && !gt) return;
|
|
4566
|
+
const F = gt ? At ? !0 : "max-content" : Mt == null ? void 0 : Mt.x, ut = (Mt == null ? void 0 : Mt.y) === "100%" ? Le : Mt == null ? void 0 : Mt.y;
|
|
4567
|
+
return F !== void 0 || ut !== void 0 ? { x: F, y: ut } : Mt ? Mt.y === "100%" ? { x: Mt.x, y: Le } : Mt : void 0;
|
|
4568
|
+
}, [Mt, Le, gt, At]), { titleSlot: xe, summarySlot: Ae, footerSlot: dn, otherChildren: ur } = y(() => {
|
|
4569
|
+
let F = null, ut = null, kt = null;
|
|
4570
|
+
const Dt = [];
|
|
4571
|
+
return Wt.Children.forEach(k, (Tt) => {
|
|
4572
|
+
if (!Wt.isValidElement(Tt)) {
|
|
4573
|
+
Dt.push(Tt);
|
|
4574
4574
|
return;
|
|
4575
4575
|
}
|
|
4576
|
-
const Lt =
|
|
4577
|
-
Lt === "title" ? F =
|
|
4578
|
-
}), { titleSlot: F, summarySlot:
|
|
4576
|
+
const Lt = Tt.props["data-slot-type"];
|
|
4577
|
+
Lt === "title" ? F = Tt : Lt === "summary" ? ut = Tt : Lt === "footer" ? kt = Tt : Dt.push(Tt);
|
|
4578
|
+
}), { titleSlot: F, summarySlot: ut, footerSlot: kt, otherChildren: Dt };
|
|
4579
4579
|
}, [k]), fr = y(() => {
|
|
4580
4580
|
if (!xe) {
|
|
4581
4581
|
if (N) return N;
|
|
4582
4582
|
if (D && n) return () => /* @__PURE__ */ b("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
|
|
4583
4583
|
}
|
|
4584
4584
|
}, [D, xe, N, n]), dr = y(() => {
|
|
4585
|
-
if (
|
|
4585
|
+
if (x) return x;
|
|
4586
4586
|
if (T && Ae)
|
|
4587
|
-
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan:
|
|
4587
|
+
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Ct.length, style: { padding: 0 }, children: Ae }) });
|
|
4588
4588
|
if (T && n)
|
|
4589
|
-
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan:
|
|
4590
|
-
}, [T, Ae,
|
|
4589
|
+
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: Ct.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
4590
|
+
}, [T, Ae, x, Ct.length, n]), mn = /* @__PURE__ */ b(
|
|
4591
4591
|
Cr,
|
|
4592
4592
|
{
|
|
4593
4593
|
...fe,
|
|
4594
|
-
columns:
|
|
4595
|
-
dataSource:
|
|
4594
|
+
columns: Ct,
|
|
4595
|
+
dataSource: ft,
|
|
4596
4596
|
rowKey: p,
|
|
4597
4597
|
rowSelection: ir,
|
|
4598
4598
|
rowClassName: ar,
|
|
4599
|
-
pagination:
|
|
4599
|
+
pagination: nt,
|
|
4600
4600
|
locale: { emptyText: m },
|
|
4601
4601
|
bordered: u,
|
|
4602
|
-
size:
|
|
4603
|
-
sticky:
|
|
4602
|
+
size: gt ? J : S,
|
|
4603
|
+
sticky: A,
|
|
4604
4604
|
scroll: lr,
|
|
4605
4605
|
title: fr,
|
|
4606
4606
|
summary: dr,
|
|
@@ -4608,7 +4608,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4608
4608
|
onRow: or
|
|
4609
4609
|
}
|
|
4610
4610
|
);
|
|
4611
|
-
return /* @__PURE__ */
|
|
4611
|
+
return /* @__PURE__ */ st(
|
|
4612
4612
|
Kn,
|
|
4613
4613
|
{
|
|
4614
4614
|
ref: L,
|
|
@@ -4617,41 +4617,41 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4617
4617
|
className: sr,
|
|
4618
4618
|
children: [
|
|
4619
4619
|
xe && /* @__PURE__ */ b("div", { "data-table-slot": "title", children: xe }),
|
|
4620
|
-
/* @__PURE__ */
|
|
4620
|
+
/* @__PURE__ */ st("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4621
4621
|
v && (() => {
|
|
4622
|
-
const F = (
|
|
4622
|
+
const F = (ct == null ? void 0 : ct.rowSelectedBg) || "#e6f4ff", ut = (ct == null ? void 0 : ct.rowSelectedHoverBg) || (ct == null ? void 0 : ct.rowSelectedBg) || "#bae0ff", kt = ct == null ? void 0 : ct.rowSelectedColor, Dt = (ct == null ? void 0 : ct.rowSelectedLinkColor) ?? kt, Tt = (ct == null ? void 0 : ct.rowSelectedLinkHoverColor) ?? Dt;
|
|
4623
4623
|
return /* @__PURE__ */ b("style", { children: `
|
|
4624
4624
|
.ant-table-row-selected > td {
|
|
4625
4625
|
background: ${F} !important;
|
|
4626
|
-
${
|
|
4626
|
+
${kt ? `color: ${kt};` : ""}
|
|
4627
4627
|
}
|
|
4628
4628
|
.ant-table-row-selected:hover > td {
|
|
4629
|
-
background: ${
|
|
4629
|
+
background: ${ut} !important;
|
|
4630
4630
|
}
|
|
4631
|
-
${
|
|
4632
|
-
${
|
|
4631
|
+
${Dt ? `.ant-table-row-selected > td a { color: ${Dt}; }` : ""}
|
|
4632
|
+
${Tt ? `.ant-table-row-selected > td a:hover { color: ${Tt}; }` : ""}
|
|
4633
4633
|
` });
|
|
4634
4634
|
})(),
|
|
4635
|
-
|
|
4635
|
+
bt ? /* @__PURE__ */ b(Bt, { theme: bt, children: mn }) : mn
|
|
4636
4636
|
] }),
|
|
4637
4637
|
Ae,
|
|
4638
4638
|
dn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: dn }),
|
|
4639
4639
|
ur,
|
|
4640
|
-
|
|
4640
|
+
gt && /* @__PURE__ */ b(
|
|
4641
4641
|
Xa,
|
|
4642
4642
|
{
|
|
4643
4643
|
open: pt,
|
|
4644
4644
|
position: Q,
|
|
4645
|
-
rowIndexVisible:
|
|
4646
|
-
columnItems:
|
|
4645
|
+
rowIndexVisible: W,
|
|
4646
|
+
columnItems: it,
|
|
4647
4647
|
defaultRowIndexVisible: dt,
|
|
4648
|
-
defaultColumnItems:
|
|
4649
|
-
scrollX:
|
|
4650
|
-
defaultScrollX:
|
|
4651
|
-
size:
|
|
4652
|
-
defaultSize:
|
|
4648
|
+
defaultColumnItems: lt,
|
|
4649
|
+
scrollX: At,
|
|
4650
|
+
defaultScrollX: St,
|
|
4651
|
+
size: J,
|
|
4652
|
+
defaultSize: X,
|
|
4653
4653
|
onSave: Vt,
|
|
4654
|
-
onClose:
|
|
4654
|
+
onClose: Rt
|
|
4655
4655
|
}
|
|
4656
4656
|
)
|
|
4657
4657
|
]
|
|
@@ -4680,15 +4680,15 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4680
4680
|
const u = _((V) => V.getDataSet), S = _((V) => {
|
|
4681
4681
|
var R;
|
|
4682
4682
|
return !t || !e ? null : ((R = V.propsStore[`${t}_props`]) == null ? void 0 : R[e]) ?? null;
|
|
4683
|
-
}),
|
|
4683
|
+
}), A = y(
|
|
4684
4684
|
() => d === "selectedCount" && o && !a ? o : a,
|
|
4685
4685
|
[d, o, a]
|
|
4686
4686
|
), C = y(
|
|
4687
4687
|
() => d === "selectedCount" ? "selectedCount" : o,
|
|
4688
4688
|
[d, o]
|
|
4689
4689
|
), w = y(
|
|
4690
|
-
() => rt(t,
|
|
4691
|
-
[t,
|
|
4690
|
+
() => rt(t, A),
|
|
4691
|
+
[t, A]
|
|
4692
4692
|
), D = _((V) => {
|
|
4693
4693
|
if (!w) return;
|
|
4694
4694
|
const R = Se(w).baseName;
|
|
@@ -4705,7 +4705,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4705
4705
|
return {};
|
|
4706
4706
|
}
|
|
4707
4707
|
return h;
|
|
4708
|
-
}, [h]),
|
|
4708
|
+
}, [h]), x = (V) => V == null || V === "" || typeof V == "string" && V.trim() === "", E = y(() => n ? i : O != null && O !== "" ? x(O) && p ? i : O : (S == null ? void 0 : S.content) !== void 0 ? S.content : i, [n, O, S == null ? void 0 : S.content, i, p]), k = y(() => {
|
|
4709
4709
|
if (d && T.length > 0 && E !== void 0 && E !== null) {
|
|
4710
4710
|
const V = ae(T, E);
|
|
4711
4711
|
return (V == null ? void 0 : V.label) ?? E;
|
|
@@ -4743,7 +4743,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4743
4743
|
}
|
|
4744
4744
|
return P && (V.color = P), V;
|
|
4745
4745
|
}, [c, P, S == null ? void 0 : S.fontSize]), K = /* @__PURE__ */ b(Ia, { ...B, style: { ...z, ...g, ...B.style }, children: M != null && M !== "" ? String(M) : r });
|
|
4746
|
-
return $ ? /* @__PURE__ */ b(
|
|
4746
|
+
return $ ? /* @__PURE__ */ b(Bt, { theme: { token: $ }, children: K }) : K;
|
|
4747
4747
|
}, { Title: to } = sn, qc = ({
|
|
4748
4748
|
id: e,
|
|
4749
4749
|
sessionId: t,
|
|
@@ -4763,7 +4763,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4763
4763
|
), f = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
|
|
4764
4764
|
if (g && o)
|
|
4765
4765
|
return h(g, o);
|
|
4766
|
-
}, [g, o, h]), m = y(() => n ? i : s != null && s !== "" ? String(s) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, s, f == null ? void 0 : f.content, i]), u = (f == null ? void 0 : f.color) ?? l, S = Ke(u),
|
|
4766
|
+
}, [g, o, h]), m = y(() => n ? i : s != null && s !== "" ? String(s) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, s, f == null ? void 0 : f.content, i]), u = (f == null ? void 0 : f.color) ?? l, S = Ke(u), A = y(() => {
|
|
4767
4767
|
const w = {};
|
|
4768
4768
|
return S && (w.color = S), w;
|
|
4769
4769
|
}, [S]), C = y(() => {
|
|
@@ -4772,7 +4772,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4772
4772
|
D !== "content" && f[D] !== void 0 && f[D] !== null && (w[D] = f[D]);
|
|
4773
4773
|
}), w;
|
|
4774
4774
|
}, [v, f]);
|
|
4775
|
-
return /* @__PURE__ */ b(to, { level: c, ...C, style: { ...
|
|
4775
|
+
return /* @__PURE__ */ b(to, { level: c, ...C, style: { ...A, ...d, ...C.style }, children: m || r });
|
|
4776
4776
|
}, { Paragraph: eo } = sn, Wc = ({
|
|
4777
4777
|
id: e,
|
|
4778
4778
|
sessionId: t,
|
|
@@ -4794,13 +4794,13 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4794
4794
|
}, [p, o, v]), s = y(() => n ? i : f != null && f !== "" ? String(f) : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [n, f, g == null ? void 0 : g.content, i]), m = (g == null ? void 0 : g.color) ?? c, u = Ke(m), S = y(() => {
|
|
4795
4795
|
const C = {};
|
|
4796
4796
|
return u && (C.color = u), C;
|
|
4797
|
-
}, [u]),
|
|
4797
|
+
}, [u]), A = y(() => {
|
|
4798
4798
|
const C = { ...d };
|
|
4799
4799
|
return g && typeof g == "object" && Object.keys(g).forEach((w) => {
|
|
4800
4800
|
w !== "content" && g[w] !== void 0 && g[w] !== null && (C[w] = g[w]);
|
|
4801
4801
|
}), C;
|
|
4802
4802
|
}, [d, g]);
|
|
4803
|
-
return /* @__PURE__ */ b(eo, { ...
|
|
4803
|
+
return /* @__PURE__ */ b(eo, { ...A, style: { ...S, ...l, ...A.style }, children: s || r });
|
|
4804
4804
|
}, no = (e) => {
|
|
4805
4805
|
if (!e) return [];
|
|
4806
4806
|
if (typeof e == "string")
|
|
@@ -4829,21 +4829,21 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4829
4829
|
const f = _((N) => N.addCommand), s = _((N) => N.getDataSet), m = _((N) => N.setDataSet), u = y(
|
|
4830
4830
|
() => rt(t, i),
|
|
4831
4831
|
[t, i]
|
|
4832
|
-
), S = y(() => no(a), [a]),
|
|
4832
|
+
), S = y(() => no(a), [a]), A = y(() => o && o.length > 0 ? n ? o.map((N) => ({ ...N, forceRender: !0 })) : o : S.length > 0 ? S.map((N, x) => ({
|
|
4833
4833
|
key: N.key,
|
|
4834
4834
|
label: N.tab,
|
|
4835
4835
|
disabled: N.disabled,
|
|
4836
4836
|
// 开发模式下强制渲染所有 TabPane,以便设计每个 Tab 的内容
|
|
4837
4837
|
forceRender: n ? !0 : void 0,
|
|
4838
|
-
children: h ? h(N.key,
|
|
4838
|
+
children: h ? h(N.key, x) : null
|
|
4839
4839
|
})) : [], [o, S, h, n]), C = y(() => {
|
|
4840
4840
|
if (u && r) return s(u, r);
|
|
4841
4841
|
}, [u, r, s]), [w, D] = Wt.useState(void 0), T = y(() => {
|
|
4842
4842
|
if (n && w)
|
|
4843
4843
|
return w;
|
|
4844
4844
|
const N = C ?? d ?? v;
|
|
4845
|
-
return !N &&
|
|
4846
|
-
}, [n, w, C, d, v,
|
|
4845
|
+
return !N && A.length > 0 ? A[0].key : N;
|
|
4846
|
+
}, [n, w, C, d, v, A]), O = j((N) => {
|
|
4847
4847
|
if (n) {
|
|
4848
4848
|
D(N);
|
|
4849
4849
|
return;
|
|
@@ -4859,7 +4859,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4859
4859
|
{
|
|
4860
4860
|
...g,
|
|
4861
4861
|
activeKey: T,
|
|
4862
|
-
items:
|
|
4862
|
+
items: A,
|
|
4863
4863
|
onChange: O,
|
|
4864
4864
|
animated: n ? !1 : g.animated,
|
|
4865
4865
|
children: p
|
|
@@ -4885,21 +4885,21 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4885
4885
|
onSelect: m,
|
|
4886
4886
|
onCheck: u,
|
|
4887
4887
|
onExpand: S,
|
|
4888
|
-
onDragEnd:
|
|
4888
|
+
onDragEnd: A,
|
|
4889
4889
|
onDragEnter: C,
|
|
4890
4890
|
onDragLeave: w,
|
|
4891
4891
|
onDragOver: D,
|
|
4892
4892
|
onDragStart: T,
|
|
4893
4893
|
onDrop: O,
|
|
4894
4894
|
onRightClick: N,
|
|
4895
|
-
onLoad:
|
|
4895
|
+
onLoad: x,
|
|
4896
4896
|
treeData: E,
|
|
4897
4897
|
styles: k,
|
|
4898
4898
|
classNames: M,
|
|
4899
4899
|
token: B,
|
|
4900
4900
|
...H
|
|
4901
4901
|
}) => {
|
|
4902
|
-
const P = _((
|
|
4902
|
+
const P = _((X) => X.addCommand), $ = _((X) => X.setDataSet), z = y(
|
|
4903
4903
|
() => rt(t, i),
|
|
4904
4904
|
[t, i]
|
|
4905
4905
|
), K = y(
|
|
@@ -4911,154 +4911,154 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
4911
4911
|
), R = y(
|
|
4912
4912
|
() => i ? rt(t, `${i}_expanded`) : void 0,
|
|
4913
4913
|
[t, i]
|
|
4914
|
-
), L = _((
|
|
4914
|
+
), L = _((X) => {
|
|
4915
4915
|
if (!z) return;
|
|
4916
4916
|
if (r)
|
|
4917
|
-
return
|
|
4918
|
-
const
|
|
4919
|
-
if (!
|
|
4920
|
-
if (Array.isArray(
|
|
4921
|
-
const
|
|
4922
|
-
return Array.isArray(
|
|
4917
|
+
return X.getDataSet(z, r);
|
|
4918
|
+
const W = X.dataSets[z];
|
|
4919
|
+
if (!W) return;
|
|
4920
|
+
if (Array.isArray(W)) return W;
|
|
4921
|
+
const it = W.value;
|
|
4922
|
+
return Array.isArray(it) ? it : void 0;
|
|
4923
4923
|
}), Q = _(
|
|
4924
|
-
(
|
|
4925
|
-
),
|
|
4926
|
-
(
|
|
4924
|
+
(X) => K ? X.getDataSet(K, "") : void 0
|
|
4925
|
+
), Y = _(
|
|
4926
|
+
(X) => V ? X.getDataSet(V, "") : void 0
|
|
4927
4927
|
), U = _(
|
|
4928
|
-
(
|
|
4929
|
-
), at = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]),
|
|
4930
|
-
(
|
|
4928
|
+
(X) => R ? X.getDataSet(R, "") : void 0
|
|
4929
|
+
), at = y(() => n ? L ?? E ?? [] : z ? L ?? [] : E ?? [], [n, z, L, E]), ot = Q, tt = Y, pt = U, wt = j(
|
|
4930
|
+
(X, W) => {
|
|
4931
4931
|
if (m) {
|
|
4932
|
-
m(
|
|
4932
|
+
m(X, W);
|
|
4933
4933
|
return;
|
|
4934
4934
|
}
|
|
4935
|
-
K && $(K, "",
|
|
4935
|
+
K && $(K, "", X), a && t && P(t, I(a, { selectedKeys: X }));
|
|
4936
4936
|
},
|
|
4937
4937
|
[m, K, t, $, a, P]
|
|
4938
|
-
),
|
|
4939
|
-
(
|
|
4938
|
+
), yt = j(
|
|
4939
|
+
(X, W) => {
|
|
4940
4940
|
if (u) {
|
|
4941
|
-
u(
|
|
4941
|
+
u(X, W);
|
|
4942
4942
|
return;
|
|
4943
4943
|
}
|
|
4944
|
-
V && $(V, "",
|
|
4944
|
+
V && $(V, "", X), o && t && P(t, I(o, { checkedKeys: X }));
|
|
4945
4945
|
},
|
|
4946
4946
|
[u, V, t, $, o, P]
|
|
4947
|
-
),
|
|
4948
|
-
(
|
|
4947
|
+
), et = j(
|
|
4948
|
+
(X, W) => {
|
|
4949
4949
|
if (S) {
|
|
4950
|
-
S(
|
|
4950
|
+
S(X, W);
|
|
4951
4951
|
return;
|
|
4952
4952
|
}
|
|
4953
|
-
R && $(R, "",
|
|
4953
|
+
R && $(R, "", X), c && t && P(t, I(c, { expandedKeys: X, expanded: W.expanded }));
|
|
4954
4954
|
},
|
|
4955
4955
|
[S, R, t, $, c, P]
|
|
4956
|
-
),
|
|
4957
|
-
(
|
|
4958
|
-
if (
|
|
4959
|
-
|
|
4956
|
+
), ft = j(
|
|
4957
|
+
(X) => {
|
|
4958
|
+
if (A) {
|
|
4959
|
+
A(X);
|
|
4960
4960
|
return;
|
|
4961
4961
|
}
|
|
4962
|
-
l && t && P(t, I(l,
|
|
4962
|
+
l && t && P(t, I(l, X));
|
|
4963
4963
|
},
|
|
4964
|
-
[
|
|
4965
|
-
),
|
|
4966
|
-
(
|
|
4964
|
+
[A, l, t, P]
|
|
4965
|
+
), ct = j(
|
|
4966
|
+
(X) => {
|
|
4967
4967
|
if (C) {
|
|
4968
|
-
C(
|
|
4968
|
+
C(X);
|
|
4969
4969
|
return;
|
|
4970
4970
|
}
|
|
4971
|
-
d && t && P(t, I(d,
|
|
4971
|
+
d && t && P(t, I(d, X));
|
|
4972
4972
|
},
|
|
4973
4973
|
[C, d, t, P]
|
|
4974
|
-
),
|
|
4975
|
-
(
|
|
4974
|
+
), _t = j(
|
|
4975
|
+
(X) => {
|
|
4976
4976
|
if (w) {
|
|
4977
|
-
w(
|
|
4977
|
+
w(X);
|
|
4978
4978
|
return;
|
|
4979
4979
|
}
|
|
4980
|
-
v && t && P(t, I(v,
|
|
4980
|
+
v && t && P(t, I(v, X));
|
|
4981
4981
|
},
|
|
4982
4982
|
[w, v, t, P]
|
|
4983
|
-
),
|
|
4984
|
-
(
|
|
4983
|
+
), bt = j(
|
|
4984
|
+
(X) => {
|
|
4985
4985
|
if (D) {
|
|
4986
|
-
D(
|
|
4986
|
+
D(X);
|
|
4987
4987
|
return;
|
|
4988
4988
|
}
|
|
4989
|
-
h && t && P(t, I(h,
|
|
4989
|
+
h && t && P(t, I(h, X));
|
|
4990
4990
|
},
|
|
4991
4991
|
[D, h, t, P]
|
|
4992
|
-
),
|
|
4993
|
-
(
|
|
4992
|
+
), jt = j(
|
|
4993
|
+
(X) => {
|
|
4994
4994
|
if (T) {
|
|
4995
|
-
T(
|
|
4995
|
+
T(X);
|
|
4996
4996
|
return;
|
|
4997
4997
|
}
|
|
4998
|
-
p && t && P(t, I(p,
|
|
4998
|
+
p && t && P(t, I(p, X));
|
|
4999
4999
|
},
|
|
5000
5000
|
[T, p, t, P]
|
|
5001
|
-
),
|
|
5002
|
-
(
|
|
5001
|
+
), G = j(
|
|
5002
|
+
(X) => {
|
|
5003
5003
|
if (O) {
|
|
5004
|
-
O(
|
|
5004
|
+
O(X);
|
|
5005
5005
|
return;
|
|
5006
5006
|
}
|
|
5007
|
-
g && t && P(t, I(g,
|
|
5007
|
+
g && t && P(t, I(g, X));
|
|
5008
5008
|
},
|
|
5009
5009
|
[O, g, t, P]
|
|
5010
5010
|
), q = j(
|
|
5011
|
-
(
|
|
5011
|
+
(X) => {
|
|
5012
5012
|
if (N) {
|
|
5013
|
-
N(
|
|
5013
|
+
N(X);
|
|
5014
5014
|
return;
|
|
5015
5015
|
}
|
|
5016
|
-
f && t && P(t, I(f,
|
|
5016
|
+
f && t && P(t, I(f, X));
|
|
5017
5017
|
},
|
|
5018
5018
|
[N, f, t, P]
|
|
5019
|
-
),
|
|
5020
|
-
(
|
|
5021
|
-
if (
|
|
5022
|
-
|
|
5019
|
+
), nt = j(
|
|
5020
|
+
(X, W) => {
|
|
5021
|
+
if (x) {
|
|
5022
|
+
x(X, W);
|
|
5023
5023
|
return;
|
|
5024
5024
|
}
|
|
5025
|
-
s && t && P(t, I(s, { loadedKeys:
|
|
5025
|
+
s && t && P(t, I(s, { loadedKeys: X, ...W }));
|
|
5026
5026
|
},
|
|
5027
|
-
[
|
|
5027
|
+
[x, s, t, P]
|
|
5028
5028
|
), Z = y(() => {
|
|
5029
5029
|
if (!B) return;
|
|
5030
|
-
const
|
|
5031
|
-
return Object.entries(B).forEach(([
|
|
5032
|
-
|
|
5033
|
-
}), Object.keys(
|
|
5034
|
-
}, [B]),
|
|
5035
|
-
const
|
|
5036
|
-
return n && (
|
|
5037
|
-
}, [n, Z]),
|
|
5030
|
+
const X = {};
|
|
5031
|
+
return Object.entries(B).forEach(([W, it]) => {
|
|
5032
|
+
it !== "" && it !== void 0 && it !== null && (X[W] = it);
|
|
5033
|
+
}), Object.keys(X).length > 0 ? X : void 0;
|
|
5034
|
+
}, [B]), lt = y(() => {
|
|
5035
|
+
const X = {};
|
|
5036
|
+
return n && (X.motion = !1), Z && (X.components = { Tree: Z }), Object.keys(X).length > 0 ? X : void 0;
|
|
5037
|
+
}, [n, Z]), St = /* @__PURE__ */ b(
|
|
5038
5038
|
Nr,
|
|
5039
5039
|
{
|
|
5040
5040
|
...H,
|
|
5041
5041
|
...n ? { motion: !1 } : {},
|
|
5042
5042
|
treeData: at,
|
|
5043
|
-
...K != null ? { selectedKeys:
|
|
5044
|
-
...V != null ? { checkedKeys:
|
|
5043
|
+
...K != null ? { selectedKeys: ot ?? [] } : {},
|
|
5044
|
+
...V != null ? { checkedKeys: tt ?? [] } : {},
|
|
5045
5045
|
...R != null ? { expandedKeys: pt ?? [] } : {},
|
|
5046
|
-
onSelect:
|
|
5047
|
-
onCheck:
|
|
5048
|
-
onExpand:
|
|
5049
|
-
onDragEnd:
|
|
5050
|
-
onDragEnter:
|
|
5051
|
-
onDragLeave:
|
|
5052
|
-
onDragOver:
|
|
5053
|
-
onDragStart:
|
|
5054
|
-
onDrop:
|
|
5046
|
+
onSelect: wt,
|
|
5047
|
+
onCheck: yt,
|
|
5048
|
+
onExpand: et,
|
|
5049
|
+
onDragEnd: ft,
|
|
5050
|
+
onDragEnter: ct,
|
|
5051
|
+
onDragLeave: _t,
|
|
5052
|
+
onDragOver: bt,
|
|
5053
|
+
onDragStart: jt,
|
|
5054
|
+
onDrop: G,
|
|
5055
5055
|
onRightClick: q,
|
|
5056
|
-
onLoad:
|
|
5056
|
+
onLoad: nt,
|
|
5057
5057
|
styles: k,
|
|
5058
5058
|
classNames: M
|
|
5059
5059
|
}
|
|
5060
5060
|
);
|
|
5061
|
-
return
|
|
5061
|
+
return lt ? /* @__PURE__ */ b(Bt, { theme: lt, children: St }) : St;
|
|
5062
5062
|
}, Uc = ({
|
|
5063
5063
|
id: e,
|
|
5064
5064
|
sessionId: t,
|
|
@@ -5079,21 +5079,21 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
5079
5079
|
if (p && o) return v(p, o);
|
|
5080
5080
|
}, [p, o, v]), s = y(() => {
|
|
5081
5081
|
let S;
|
|
5082
|
-
const
|
|
5082
|
+
const A = f != null ? Array.isArray(f) ? f : typeof f == "string" ? (() => {
|
|
5083
5083
|
try {
|
|
5084
5084
|
return JSON.parse(f);
|
|
5085
5085
|
} catch {
|
|
5086
5086
|
return;
|
|
5087
5087
|
}
|
|
5088
5088
|
})() : void 0 : g == null ? void 0 : g.items;
|
|
5089
|
-
return n ? S =
|
|
5089
|
+
return n ? S = A ?? i : p ? S = A ?? [] : S = i, Array.isArray(S) ? S.map((C) => {
|
|
5090
5090
|
const w = { ...C };
|
|
5091
5091
|
return w.label && !w.title && (w.title = w.label, delete w.label), w.children && !w.content && (w.content = w.children, delete w.children), w;
|
|
5092
5092
|
}) : S;
|
|
5093
5093
|
}, [n, p, f, g == null ? void 0 : g.items, i]), m = y(() => {
|
|
5094
5094
|
const S = { ...d };
|
|
5095
|
-
return g && typeof g == "object" && Object.keys(g).forEach((
|
|
5096
|
-
|
|
5095
|
+
return g && typeof g == "object" && Object.keys(g).forEach((A) => {
|
|
5096
|
+
A !== "items" && g[A] !== void 0 && g[A] !== null && (S[A] = g[A]);
|
|
5097
5097
|
}), S;
|
|
5098
5098
|
}, [d, g]), u = y(() => l === "left" ? "start" : l === "right" ? "end" : l, [l]);
|
|
5099
5099
|
return /* @__PURE__ */ b(
|
|
@@ -5132,18 +5132,18 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
5132
5132
|
token: f,
|
|
5133
5133
|
...s
|
|
5134
5134
|
}) => {
|
|
5135
|
-
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet),
|
|
5135
|
+
const m = _((B) => B.addCommand), u = _((B) => B.getDataSet), S = _((B) => B.setDataSet), A = y(
|
|
5136
5136
|
() => rt(t, i),
|
|
5137
5137
|
[t, i]
|
|
5138
5138
|
), C = y(() => {
|
|
5139
|
-
if (
|
|
5140
|
-
}, [
|
|
5139
|
+
if (A && r) return u(A, r);
|
|
5140
|
+
}, [A, r, u]), w = y(() => C ?? c ?? 0, [C, c]), D = y(() => v ?? d, [v, d]), T = y(() => p ?? h, [p, h]), O = y(() => Ue(l, []), [l]), N = y(() => Ue(g, {}), [g]), x = y(() => Ue(f, {}), [f]), E = j((B) => {
|
|
5141
5141
|
if (o) {
|
|
5142
5142
|
o(B);
|
|
5143
5143
|
return;
|
|
5144
5144
|
}
|
|
5145
|
-
|
|
5146
|
-
}, [o,
|
|
5145
|
+
A && r && S(A, r, B), a && t && m(t, I(a, B));
|
|
5146
|
+
}, [o, A, r, S, a, t, m]), k = Object.keys(x).length > 0, M = /* @__PURE__ */ b(
|
|
5147
5147
|
Or,
|
|
5148
5148
|
{
|
|
5149
5149
|
...s,
|
|
@@ -5155,7 +5155,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
5155
5155
|
onChange: E
|
|
5156
5156
|
}
|
|
5157
5157
|
);
|
|
5158
|
-
return k ? /* @__PURE__ */ b(
|
|
5158
|
+
return k ? /* @__PURE__ */ b(Bt, { theme: { components: { Steps: x } }, children: M }) : M;
|
|
5159
5159
|
}, Gc = ({
|
|
5160
5160
|
id: e,
|
|
5161
5161
|
sessionId: t,
|
|
@@ -5214,7 +5214,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
5214
5214
|
return;
|
|
5215
5215
|
}
|
|
5216
5216
|
s && r && f(s, r, C), l && t && g(t, I(l, C));
|
|
5217
|
-
}, [d, s, r, f, l, t, g]),
|
|
5217
|
+
}, [d, s, r, f, l, t, g]), A = y(() => h || (u.length > 0 ? u.map((C, w) => {
|
|
5218
5218
|
const D = v ? v(C.key, w) : null;
|
|
5219
5219
|
return /* @__PURE__ */ b("div", { "data-slide-key": C.key, children: D || /* @__PURE__ */ b("div", { style: {
|
|
5220
5220
|
minHeight: "100px",
|
|
@@ -5231,7 +5231,7 @@ const Pe = 420, On = 440, Xa = ({
|
|
|
5231
5231
|
...p,
|
|
5232
5232
|
dotPlacement: m,
|
|
5233
5233
|
afterChange: S,
|
|
5234
|
-
children:
|
|
5234
|
+
children: A
|
|
5235
5235
|
}
|
|
5236
5236
|
);
|
|
5237
5237
|
};
|
|
@@ -5352,12 +5352,12 @@ const Zc = ({
|
|
|
5352
5352
|
return f && typeof f == "object" && Object.keys(f).forEach((T) => {
|
|
5353
5353
|
!["src", "icon", "token"].includes(T) && f[T] !== void 0 && f[T] !== null && (D[T] = f[T]);
|
|
5354
5354
|
}), D;
|
|
5355
|
-
}, [v, f]),
|
|
5355
|
+
}, [v, f]), A = y(() => {
|
|
5356
5356
|
const D = f == null ? void 0 : f.token, T = { ...d, ...D };
|
|
5357
5357
|
if (!T || Object.keys(T).length === 0) return;
|
|
5358
5358
|
const O = {};
|
|
5359
|
-
return Object.entries(T).forEach(([N,
|
|
5360
|
-
if (
|
|
5359
|
+
return Object.entries(T).forEach(([N, x]) => {
|
|
5360
|
+
if (x !== "" && x !== void 0 && x !== null)
|
|
5361
5361
|
if ([
|
|
5362
5362
|
"containerSize",
|
|
5363
5363
|
"containerSizeLG",
|
|
@@ -5367,15 +5367,15 @@ const Zc = ({
|
|
|
5367
5367
|
"textFontSizeSM",
|
|
5368
5368
|
"groupOverlapping"
|
|
5369
5369
|
].includes(N)) {
|
|
5370
|
-
const E = typeof
|
|
5370
|
+
const E = typeof x == "string" ? parseInt(x, 10) : x;
|
|
5371
5371
|
isNaN(E) || (O[N] = E);
|
|
5372
5372
|
} else
|
|
5373
|
-
O[N] =
|
|
5373
|
+
O[N] = x;
|
|
5374
5374
|
}), Object.keys(O).length > 0 ? O : void 0;
|
|
5375
5375
|
}, [d, f == null ? void 0 : f.token]), C = y(() => {
|
|
5376
|
-
if (
|
|
5377
|
-
return { components: { Avatar:
|
|
5378
|
-
}, [
|
|
5376
|
+
if (A)
|
|
5377
|
+
return { components: { Avatar: A } };
|
|
5378
|
+
}, [A]), w = /* @__PURE__ */ b(
|
|
5379
5379
|
Er,
|
|
5380
5380
|
{
|
|
5381
5381
|
...S,
|
|
@@ -5384,7 +5384,7 @@ const Zc = ({
|
|
|
5384
5384
|
children: i
|
|
5385
5385
|
}
|
|
5386
5386
|
);
|
|
5387
|
-
return C ? /* @__PURE__ */ b(
|
|
5387
|
+
return C ? /* @__PURE__ */ b(Bt, { theme: C, children: w }) : w;
|
|
5388
5388
|
}, lo = {
|
|
5389
5389
|
0: "default",
|
|
5390
5390
|
1: "success",
|
|
@@ -5424,9 +5424,9 @@ const Zc = ({
|
|
|
5424
5424
|
}
|
|
5425
5425
|
return d;
|
|
5426
5426
|
}
|
|
5427
|
-
}, [d]),
|
|
5427
|
+
}, [d]), A = y(() => t && e ? s(t, e) : null, [t, e, s]), C = y(() => {
|
|
5428
5428
|
if (m && o) return f(m, o);
|
|
5429
|
-
}, [m, o, f]), w = y(() => n ? r : C != null && C !== "" ? String(C) : (
|
|
5429
|
+
}, [m, o, f]), w = y(() => n ? r : C != null && C !== "" ? String(C) : (A == null ? void 0 : A.content) !== void 0 ? A.content : r, [n, C, A == null ? void 0 : A.content, r]), D = y(() => {
|
|
5430
5430
|
if (c && u.length > 0 && w !== void 0 && w !== null) {
|
|
5431
5431
|
const k = ae(u, w);
|
|
5432
5432
|
return (k == null ? void 0 : k.label) ?? w;
|
|
@@ -5438,10 +5438,10 @@ const Zc = ({
|
|
|
5438
5438
|
return S && S[k] ? S[k] : lo[k];
|
|
5439
5439
|
}, [l, w, S]), O = y(() => {
|
|
5440
5440
|
const k = { ...g };
|
|
5441
|
-
return
|
|
5442
|
-
!["content", "color"].includes(M) &&
|
|
5441
|
+
return A && typeof A == "object" && Object.keys(A).forEach((M) => {
|
|
5442
|
+
!["content", "color"].includes(M) && A[M] !== void 0 && A[M] !== null && (k[M] = A[M]);
|
|
5443
5443
|
}), k;
|
|
5444
|
-
}, [g,
|
|
5444
|
+
}, [g, A]), N = (A == null ? void 0 : A.color) ?? v, E = Ke(N) || T;
|
|
5445
5445
|
return /* @__PURE__ */ b(Ln, { ...O, color: E, children: D || i });
|
|
5446
5446
|
}, ts = ({
|
|
5447
5447
|
id: e,
|
|
@@ -5465,7 +5465,7 @@ const Zc = ({
|
|
|
5465
5465
|
if (!s) return u;
|
|
5466
5466
|
const N = O.getDataSet(s, m ?? "");
|
|
5467
5467
|
return N != null && typeof N == "object" ? N : u;
|
|
5468
|
-
}),
|
|
5468
|
+
}), A = S.current ?? d ?? 1, C = S.pageSize ?? v ?? 10, w = S.total ?? h ?? 0, D = j((O, N) => {
|
|
5469
5469
|
if (c) {
|
|
5470
5470
|
c(O, N);
|
|
5471
5471
|
return;
|
|
@@ -5482,14 +5482,14 @@ const Zc = ({
|
|
|
5482
5482
|
zn,
|
|
5483
5483
|
{
|
|
5484
5484
|
...p,
|
|
5485
|
-
current:
|
|
5485
|
+
current: A,
|
|
5486
5486
|
pageSize: C,
|
|
5487
5487
|
total: w,
|
|
5488
5488
|
onChange: D,
|
|
5489
5489
|
onShowSizeChange: T,
|
|
5490
5490
|
showTotal: y(() => {
|
|
5491
5491
|
const O = p.showTotal;
|
|
5492
|
-
return typeof O == "string" ? (N,
|
|
5492
|
+
return typeof O == "string" ? (N, x) => O.replace("${total}", String(N)).replace("${range[0]}", String(x[0])).replace("${range[1]}", String(x[1])).replace("${range}", `${x[0]}-${x[1]}`) : O;
|
|
5493
5493
|
}, [p.showTotal])
|
|
5494
5494
|
}
|
|
5495
5495
|
);
|
|
@@ -5501,13 +5501,13 @@ const Zc = ({
|
|
|
5501
5501
|
children: r,
|
|
5502
5502
|
...a
|
|
5503
5503
|
}) => /* @__PURE__ */ b(Mr, { ...a, items: i, children: r }), _e = (e) => Object.entries(e).map(([t, n]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), uo = ({ mode: e, arrowStyle: t, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
5504
|
-
const a =
|
|
5505
|
-
|
|
5504
|
+
const a = $t(null), o = $t(null), [c, l] = mt(0), [d, v] = mt(!1), [h, p] = mt(0), [g, f] = mt(0), s = e === "horizontal";
|
|
5505
|
+
xt(() => {
|
|
5506
5506
|
const D = () => {
|
|
5507
5507
|
if (!a.current || !o.current) return;
|
|
5508
5508
|
const O = a.current, N = o.current;
|
|
5509
|
-
let
|
|
5510
|
-
s ? (
|
|
5509
|
+
let x = 0, E = 0, k = !1;
|
|
5510
|
+
s ? (x = O.clientWidth, E = N.scrollWidth, k = E > x) : (x = O.clientHeight, E = N.scrollHeight, k = E > x), f(x), p(E), v(k), k || l(0);
|
|
5511
5511
|
}, T = new ResizeObserver(D);
|
|
5512
5512
|
return a.current && T.observe(a.current), o.current && T.observe(o.current), D(), () => T.disconnect();
|
|
5513
5513
|
}, [s]);
|
|
@@ -5516,13 +5516,13 @@ const Zc = ({
|
|
|
5516
5516
|
if (m) return;
|
|
5517
5517
|
const D = s ? ((T = a.current) == null ? void 0 : T.clientWidth) ?? 200 : ((O = a.current) == null ? void 0 : O.clientHeight) ?? 200;
|
|
5518
5518
|
l((N) => Math.max(0, N - D));
|
|
5519
|
-
}, [s, m]),
|
|
5520
|
-
var O, N,
|
|
5519
|
+
}, [s, m]), A = j(() => {
|
|
5520
|
+
var O, N, x, E, k, M;
|
|
5521
5521
|
if (u) return;
|
|
5522
|
-
const D = s ? ((O = a.current) == null ? void 0 : O.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, T = s ? (((
|
|
5522
|
+
const D = s ? ((O = a.current) == null ? void 0 : O.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, T = s ? (((x = o.current) == null ? void 0 : x.scrollWidth) ?? 0) - (((E = a.current) == null ? void 0 : E.clientWidth) ?? 0) : (((k = o.current) == null ? void 0 : k.scrollHeight) ?? 0) - (((M = a.current) == null ? void 0 : M.clientHeight) ?? 0);
|
|
5523
5523
|
l((B) => Math.min(T, B + D));
|
|
5524
5524
|
}, [s, u]), C = n || (s ? /* @__PURE__ */ b(Un, {}) : /* @__PURE__ */ b(ni, {})), w = i || (s ? /* @__PURE__ */ b(Yn, {}) : /* @__PURE__ */ b(Gn, {}));
|
|
5525
|
-
return /* @__PURE__ */
|
|
5525
|
+
return /* @__PURE__ */ st(
|
|
5526
5526
|
"div",
|
|
5527
5527
|
{
|
|
5528
5528
|
style: {
|
|
@@ -5586,7 +5586,7 @@ const Zc = ({
|
|
|
5586
5586
|
shape: "circle",
|
|
5587
5587
|
icon: w,
|
|
5588
5588
|
disabled: u,
|
|
5589
|
-
onClick:
|
|
5589
|
+
onClick: A,
|
|
5590
5590
|
style: {
|
|
5591
5591
|
flexShrink: 0,
|
|
5592
5592
|
alignSelf: "center",
|
|
@@ -5632,14 +5632,14 @@ const Zc = ({
|
|
|
5632
5632
|
defaultOpenKeys: m,
|
|
5633
5633
|
styles: u,
|
|
5634
5634
|
classNames: S,
|
|
5635
|
-
token:
|
|
5635
|
+
token: A,
|
|
5636
5636
|
expandIcon: C,
|
|
5637
5637
|
overflowedIndicator: w,
|
|
5638
5638
|
openKeysDataSet: D,
|
|
5639
5639
|
openKeysDataSetField: T,
|
|
5640
5640
|
mode: O,
|
|
5641
5641
|
inlineCollapsed: N,
|
|
5642
|
-
remoteUrl:
|
|
5642
|
+
remoteUrl: x,
|
|
5643
5643
|
overflowStrategy: E = "default",
|
|
5644
5644
|
paginationArrowStyle: k,
|
|
5645
5645
|
paginationArrowIconPrev: M,
|
|
@@ -5648,13 +5648,13 @@ const Zc = ({
|
|
|
5648
5648
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
5649
5649
|
...P
|
|
5650
5650
|
}) => {
|
|
5651
|
-
const $ = _((
|
|
5651
|
+
const $ = _((J) => J.addCommand), z = _((J) => J.setDataSet), K = y(
|
|
5652
5652
|
() => rt(t, i),
|
|
5653
5653
|
[t, i]
|
|
5654
5654
|
), V = _(
|
|
5655
|
-
(
|
|
5655
|
+
(J) => {
|
|
5656
5656
|
if (K)
|
|
5657
|
-
return r ?
|
|
5657
|
+
return r ? J.getDataSet(K, r) : J.dataSets[K];
|
|
5658
5658
|
}
|
|
5659
5659
|
// 使用 shallow 比较确保只有通过内容变更才触发更新
|
|
5660
5660
|
// 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
|
|
@@ -5665,61 +5665,61 @@ const Zc = ({
|
|
|
5665
5665
|
), R = y(() => ({}), []), L = V ?? R, Q = y(
|
|
5666
5666
|
() => (L == null ? void 0 : L.items) ?? (Array.isArray(L) ? L : void 0) ?? (Array.isArray(L == null ? void 0 : L.value) ? L.value : void 0),
|
|
5667
5667
|
[L]
|
|
5668
|
-
),
|
|
5668
|
+
), Y = y(() => n ? Q ?? g ?? [] : K ? Q ?? [] : g ?? [], [n, K, Q, g]), U = y(
|
|
5669
5669
|
() => L.selectedKeys ?? f,
|
|
5670
5670
|
[L.selectedKeys, f]
|
|
5671
5671
|
), at = y(
|
|
5672
5672
|
() => L.openKeys ?? (D && T ? void 0 : s),
|
|
5673
5673
|
[L.openKeys, D, T, s]
|
|
5674
|
-
),
|
|
5674
|
+
), ot = y(
|
|
5675
5675
|
() => rt(t, D),
|
|
5676
5676
|
[t, D]
|
|
5677
|
-
),
|
|
5678
|
-
if (!L.openKeys &&
|
|
5679
|
-
return
|
|
5677
|
+
), tt = _((J) => {
|
|
5678
|
+
if (!L.openKeys && ot && T)
|
|
5679
|
+
return J.getDataSet(ot, T);
|
|
5680
5680
|
}), pt = y(() => {
|
|
5681
|
-
const
|
|
5682
|
-
const
|
|
5683
|
-
if (
|
|
5684
|
-
const Vt = Jt[
|
|
5685
|
-
Vt && (
|
|
5681
|
+
const J = (gt) => Array.isArray(gt) ? gt.map((Ct) => {
|
|
5682
|
+
const Rt = { ...Ct };
|
|
5683
|
+
if (Rt.icon && typeof Rt.icon == "string") {
|
|
5684
|
+
const Vt = Jt[Rt.icon];
|
|
5685
|
+
Vt && (Rt.icon = /* @__PURE__ */ b(Vt, {}));
|
|
5686
5686
|
}
|
|
5687
|
-
return
|
|
5687
|
+
return Rt.children && Rt.children.length > 0 && (Rt.children = J(Rt.children)), Rt;
|
|
5688
5688
|
}) : [];
|
|
5689
|
-
return
|
|
5690
|
-
}, [
|
|
5689
|
+
return J(Y || []);
|
|
5690
|
+
}, [Y]), wt = y(
|
|
5691
5691
|
() => U,
|
|
5692
5692
|
[U]
|
|
5693
|
-
),
|
|
5694
|
-
() => at ??
|
|
5695
|
-
[at,
|
|
5696
|
-
),
|
|
5697
|
-
(
|
|
5693
|
+
), yt = y(
|
|
5694
|
+
() => at ?? tt,
|
|
5695
|
+
[at, tt]
|
|
5696
|
+
), et = j(
|
|
5697
|
+
(J) => {
|
|
5698
5698
|
if (d) {
|
|
5699
|
-
d(
|
|
5699
|
+
d(J);
|
|
5700
5700
|
return;
|
|
5701
5701
|
}
|
|
5702
5702
|
a && t && $(
|
|
5703
5703
|
t,
|
|
5704
|
-
I(a, { key:
|
|
5704
|
+
I(a, { key: J.key, keyPath: J.keyPath })
|
|
5705
5705
|
);
|
|
5706
5706
|
},
|
|
5707
5707
|
[d, a, t, $]
|
|
5708
|
-
),
|
|
5709
|
-
(
|
|
5708
|
+
), ft = j(
|
|
5709
|
+
(J) => {
|
|
5710
5710
|
if (v) {
|
|
5711
|
-
v(
|
|
5711
|
+
v(J);
|
|
5712
5712
|
return;
|
|
5713
5713
|
}
|
|
5714
5714
|
if (K)
|
|
5715
5715
|
if (r) {
|
|
5716
|
-
const
|
|
5717
|
-
z(K, r, { ...
|
|
5716
|
+
const gt = _.getState().getDataSet(K, r) || {};
|
|
5717
|
+
z(K, r, { ...gt, selectedKeys: J.selectedKeys });
|
|
5718
5718
|
} else
|
|
5719
|
-
z(K, "selectedKeys",
|
|
5719
|
+
z(K, "selectedKeys", J.selectedKeys);
|
|
5720
5720
|
o && t && $(
|
|
5721
5721
|
t,
|
|
5722
|
-
I(o, { selectedKeys:
|
|
5722
|
+
I(o, { selectedKeys: J.selectedKeys })
|
|
5723
5723
|
);
|
|
5724
5724
|
},
|
|
5725
5725
|
[
|
|
@@ -5731,134 +5731,134 @@ const Zc = ({
|
|
|
5731
5731
|
t,
|
|
5732
5732
|
$
|
|
5733
5733
|
]
|
|
5734
|
-
),
|
|
5735
|
-
(
|
|
5734
|
+
), ct = j(
|
|
5735
|
+
(J) => {
|
|
5736
5736
|
if (h) {
|
|
5737
|
-
h(
|
|
5737
|
+
h(J);
|
|
5738
5738
|
return;
|
|
5739
5739
|
}
|
|
5740
5740
|
if (K)
|
|
5741
5741
|
if (r) {
|
|
5742
|
-
const
|
|
5743
|
-
z(K, r, { ...
|
|
5742
|
+
const gt = _.getState().getDataSet(K, r) || {};
|
|
5743
|
+
z(K, r, { ...gt, openKeys: J });
|
|
5744
5744
|
} else
|
|
5745
|
-
z(K, "openKeys",
|
|
5746
|
-
else
|
|
5745
|
+
z(K, "openKeys", J);
|
|
5746
|
+
else ot && T && z(ot, T, J);
|
|
5747
5747
|
c && t && $(
|
|
5748
5748
|
t,
|
|
5749
|
-
I(c, { openKeys:
|
|
5749
|
+
I(c, { openKeys: J })
|
|
5750
5750
|
);
|
|
5751
5751
|
},
|
|
5752
5752
|
[
|
|
5753
5753
|
h,
|
|
5754
5754
|
K,
|
|
5755
5755
|
r,
|
|
5756
|
-
|
|
5756
|
+
ot,
|
|
5757
5757
|
T,
|
|
5758
5758
|
z,
|
|
5759
5759
|
c,
|
|
5760
5760
|
t,
|
|
5761
5761
|
$
|
|
5762
5762
|
]
|
|
5763
|
-
),
|
|
5764
|
-
(
|
|
5763
|
+
), _t = j(
|
|
5764
|
+
(J) => {
|
|
5765
5765
|
if (p) {
|
|
5766
|
-
p(
|
|
5766
|
+
p(J);
|
|
5767
5767
|
return;
|
|
5768
5768
|
}
|
|
5769
5769
|
l && t && $(
|
|
5770
5770
|
t,
|
|
5771
5771
|
I(l, {
|
|
5772
|
-
selectedKeys:
|
|
5773
|
-
key:
|
|
5772
|
+
selectedKeys: J.selectedKeys,
|
|
5773
|
+
key: J.key
|
|
5774
5774
|
})
|
|
5775
5775
|
);
|
|
5776
5776
|
},
|
|
5777
5777
|
[p, l, t, $]
|
|
5778
|
-
),
|
|
5779
|
-
if (!
|
|
5780
|
-
const
|
|
5781
|
-
return Object.entries(
|
|
5782
|
-
|
|
5783
|
-
}), Object.keys(
|
|
5784
|
-
}, [
|
|
5778
|
+
), bt = O === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, jt = y(() => {
|
|
5779
|
+
if (!A) return;
|
|
5780
|
+
const J = {};
|
|
5781
|
+
return Object.entries(A).forEach(([gt, Ct]) => {
|
|
5782
|
+
Ct !== "" && Ct !== void 0 && Ct !== null && (J[gt] = Ct);
|
|
5783
|
+
}), Object.keys(J).length > 0 ? J : void 0;
|
|
5784
|
+
}, [A]), G = n ? {
|
|
5785
5785
|
motion: { motionName: "" }
|
|
5786
5786
|
} : {}, q = y(() => {
|
|
5787
5787
|
if (typeof M == "string" && M) {
|
|
5788
|
-
const
|
|
5789
|
-
if (
|
|
5788
|
+
const J = Jt[M];
|
|
5789
|
+
if (J) return /* @__PURE__ */ b(J, {});
|
|
5790
5790
|
}
|
|
5791
5791
|
return M;
|
|
5792
|
-
}, [M]),
|
|
5792
|
+
}, [M]), nt = y(() => {
|
|
5793
5793
|
if (typeof B == "string" && B) {
|
|
5794
|
-
const
|
|
5795
|
-
if (
|
|
5794
|
+
const J = Jt[B];
|
|
5795
|
+
if (J) return /* @__PURE__ */ b(J, {});
|
|
5796
5796
|
}
|
|
5797
5797
|
return B;
|
|
5798
|
-
}, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]),
|
|
5799
|
-
var
|
|
5798
|
+
}, [B]), Z = y(() => E === "pagination" || E === "scroll" ? null : w, [E, w]), lt = Fr(), dt = e || lt.replace(/:/g, "-"), St = y(() => {
|
|
5799
|
+
var Rt;
|
|
5800
5800
|
if (!u || typeof u == "function") return "";
|
|
5801
|
-
const
|
|
5802
|
-
if (!
|
|
5803
|
-
const
|
|
5804
|
-
if (
|
|
5805
|
-
const Vt = _e(
|
|
5806
|
-
|
|
5807
|
-
}
|
|
5808
|
-
if (
|
|
5809
|
-
const Vt = _e(
|
|
5810
|
-
|
|
5811
|
-
}
|
|
5812
|
-
if (
|
|
5813
|
-
const Vt = _e(
|
|
5814
|
-
|
|
5815
|
-
}
|
|
5816
|
-
if (
|
|
5817
|
-
const Vt = _e(
|
|
5818
|
-
|
|
5819
|
-
}
|
|
5820
|
-
return
|
|
5801
|
+
const J = (Rt = u.subMenu) == null ? void 0 : Rt.root;
|
|
5802
|
+
if (!J) return "";
|
|
5803
|
+
const gt = [], Ct = `[data-and-menu-id="${dt}"]`;
|
|
5804
|
+
if (J.item && Object.keys(J.item).length > 0) {
|
|
5805
|
+
const Vt = _e(J.item);
|
|
5806
|
+
gt.push(`${Ct} .ant-menu-submenu > .ant-menu-submenu-title { ${Vt} }`);
|
|
5807
|
+
}
|
|
5808
|
+
if (J.itemIcon && Object.keys(J.itemIcon).length > 0) {
|
|
5809
|
+
const Vt = _e(J.itemIcon);
|
|
5810
|
+
gt.push(`${Ct} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Vt} }`);
|
|
5811
|
+
}
|
|
5812
|
+
if (J.itemContent && Object.keys(J.itemContent).length > 0) {
|
|
5813
|
+
const Vt = _e(J.itemContent);
|
|
5814
|
+
gt.push(`${Ct} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Vt} }`);
|
|
5815
|
+
}
|
|
5816
|
+
if (J.selected && Object.keys(J.selected).length > 0) {
|
|
5817
|
+
const Vt = _e(J.selected);
|
|
5818
|
+
gt.push(`${Ct} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Vt} }`);
|
|
5819
|
+
}
|
|
5820
|
+
return gt.join(`
|
|
5821
5821
|
`);
|
|
5822
|
-
}, [u, dt]),
|
|
5822
|
+
}, [u, dt]), X = /* @__PURE__ */ b(
|
|
5823
5823
|
$r,
|
|
5824
5824
|
{
|
|
5825
5825
|
...P,
|
|
5826
|
-
...
|
|
5827
|
-
...
|
|
5826
|
+
...bt,
|
|
5827
|
+
...G,
|
|
5828
5828
|
mode: O,
|
|
5829
5829
|
items: pt,
|
|
5830
|
-
selectedKeys:
|
|
5831
|
-
openKeys:
|
|
5830
|
+
selectedKeys: wt,
|
|
5831
|
+
openKeys: yt,
|
|
5832
5832
|
defaultOpenKeys: m,
|
|
5833
|
-
onClick:
|
|
5834
|
-
onSelect:
|
|
5835
|
-
onOpenChange:
|
|
5836
|
-
onDeselect:
|
|
5833
|
+
onClick: et,
|
|
5834
|
+
onSelect: ft,
|
|
5835
|
+
onOpenChange: ct,
|
|
5836
|
+
onDeselect: _t,
|
|
5837
5837
|
styles: u,
|
|
5838
5838
|
classNames: S,
|
|
5839
5839
|
expandIcon: C,
|
|
5840
5840
|
overflowedIndicator: Z,
|
|
5841
5841
|
disabledOverflow: E !== "default"
|
|
5842
5842
|
}
|
|
5843
|
-
),
|
|
5843
|
+
), W = () => E === "pagination" ? /* @__PURE__ */ b(
|
|
5844
5844
|
uo,
|
|
5845
5845
|
{
|
|
5846
5846
|
mode: O || "horizontal",
|
|
5847
5847
|
arrowStyle: k,
|
|
5848
5848
|
arrowIconPrev: q,
|
|
5849
|
-
arrowIconNext:
|
|
5850
|
-
children:
|
|
5849
|
+
arrowIconNext: nt,
|
|
5850
|
+
children: X
|
|
5851
5851
|
}
|
|
5852
|
-
) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children:
|
|
5853
|
-
const
|
|
5854
|
-
return n && (
|
|
5855
|
-
}, [n,
|
|
5852
|
+
) : E === "scroll" ? /* @__PURE__ */ b(fo, { mode: O || "horizontal", children: X }) : X, it = y(() => {
|
|
5853
|
+
const J = {};
|
|
5854
|
+
return n && (J.motion = !1), jt && (J.components = { Menu: jt }), Object.keys(J).length > 0 ? J : void 0;
|
|
5855
|
+
}, [n, jt]);
|
|
5856
5856
|
return (() => {
|
|
5857
|
-
const
|
|
5858
|
-
/* @__PURE__ */ b("style", { children:
|
|
5859
|
-
|
|
5860
|
-
] }) :
|
|
5861
|
-
return
|
|
5857
|
+
const J = W(), gt = St ? /* @__PURE__ */ st("div", { "data-and-menu-id": dt, style: { display: "contents" }, children: [
|
|
5858
|
+
/* @__PURE__ */ b("style", { children: St }),
|
|
5859
|
+
J
|
|
5860
|
+
] }) : J;
|
|
5861
|
+
return it ? /* @__PURE__ */ b(Bt, { theme: it, children: gt }) : gt;
|
|
5862
5862
|
})();
|
|
5863
5863
|
}, rs = ({
|
|
5864
5864
|
id: e,
|
|
@@ -5887,9 +5887,9 @@ const Zc = ({
|
|
|
5887
5887
|
const u = _((O) => O.getDataSet), S = y(
|
|
5888
5888
|
() => rt(t, i),
|
|
5889
5889
|
[t, i]
|
|
5890
|
-
),
|
|
5890
|
+
), A = y(() => {
|
|
5891
5891
|
if (S && r) return u(S, r);
|
|
5892
|
-
}, [S, r, u]), C = y(() =>
|
|
5892
|
+
}, [S, r, u]), C = y(() => A ?? a, [A, a]), D = (Zt.useToken ? Zt.useToken() : { token: void 0 }).token, T = y(() => {
|
|
5893
5893
|
if (!(!g || typeof g != "string"))
|
|
5894
5894
|
return D && g in D ? D[g] : g;
|
|
5895
5895
|
}, [g, D]);
|
|
@@ -6022,15 +6022,15 @@ const Zc = ({
|
|
|
6022
6022
|
itemRender: h,
|
|
6023
6023
|
...p
|
|
6024
6024
|
}) => {
|
|
6025
|
-
const g = Re(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = be(ie), S = _(($) => $.addCommand),
|
|
6025
|
+
const g = Re(i, r, t), f = g.dataSet, s = g.dataSetField, m = g.sessionId, u = be(ie), S = _(($) => $.addCommand), A = y(
|
|
6026
6026
|
() => rt(m, f),
|
|
6027
6027
|
[m, f]
|
|
6028
|
-
), C = _(($) =>
|
|
6028
|
+
), C = _(($) => A && s ? $.getDataSet(A, s) : null), w = y(() => !m || e == null || e === "" ? null : u && typeof u.index == "number" ? `${String(e)}_${u.index}` : String(e), [m, e, u]), D = _(
|
|
6029
6029
|
($) => {
|
|
6030
6030
|
var z;
|
|
6031
6031
|
return w ? ((z = $.propsStore[`${m}_props`]) == null ? void 0 : z[w]) ?? null : null;
|
|
6032
6032
|
}
|
|
6033
|
-
), T = y(() => C && Array.isArray(C) ? C : mo(a), [C, a]), O = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : o, N = y(() => ho(O), [O]),
|
|
6033
|
+
), T = y(() => C && Array.isArray(C) ? C : mo(a), [C, a]), O = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : o, N = y(() => ho(O), [O]), x = y(() => yo(c), [c]), E = y(() => {
|
|
6034
6034
|
if (v) return v;
|
|
6035
6035
|
if (d && m)
|
|
6036
6036
|
return ($) => {
|
|
@@ -6097,7 +6097,7 @@ const Zc = ({
|
|
|
6097
6097
|
...P,
|
|
6098
6098
|
items: k,
|
|
6099
6099
|
columns: N,
|
|
6100
|
-
gutter:
|
|
6100
|
+
gutter: x,
|
|
6101
6101
|
fresh: l,
|
|
6102
6102
|
itemRender: B,
|
|
6103
6103
|
onLayoutChange: E
|
|
@@ -6127,7 +6127,7 @@ const Zc = ({
|
|
|
6127
6127
|
return s && typeof s == "object" && Object.keys(s).forEach((D) => {
|
|
6128
6128
|
D !== "title" && D !== "message" && s[D] !== void 0 && s[D] !== null && (w[D] = s[D]);
|
|
6129
6129
|
}), w;
|
|
6130
|
-
}, [h, l, s]),
|
|
6130
|
+
}, [h, l, s]), A = y(() => d ? { closeIcon: /* @__PURE__ */ b("span", { children: d }) } : v, [d, v]), C = j((w) => {
|
|
6131
6131
|
r && r(w);
|
|
6132
6132
|
}, [r]);
|
|
6133
6133
|
return /* @__PURE__ */ b(
|
|
@@ -6135,7 +6135,7 @@ const Zc = ({
|
|
|
6135
6135
|
{
|
|
6136
6136
|
...S,
|
|
6137
6137
|
title: u,
|
|
6138
|
-
closable:
|
|
6138
|
+
closable: A,
|
|
6139
6139
|
onClose: C
|
|
6140
6140
|
}
|
|
6141
6141
|
);
|
|
@@ -6165,7 +6165,7 @@ const Zc = ({
|
|
|
6165
6165
|
arg: null,
|
|
6166
6166
|
timestamp: Date.now()
|
|
6167
6167
|
});
|
|
6168
|
-
}, [c, s, r, f, a, t, p]),
|
|
6168
|
+
}, [c, s, r, f, a, t, p]), A = j(() => {
|
|
6169
6169
|
l && l(), s && r && f(s, r, !1), o && t && p(t, {
|
|
6170
6170
|
actionName: o,
|
|
6171
6171
|
arg: null,
|
|
@@ -6178,7 +6178,7 @@ const Zc = ({
|
|
|
6178
6178
|
...h,
|
|
6179
6179
|
open: u,
|
|
6180
6180
|
onOk: S,
|
|
6181
|
-
onCancel:
|
|
6181
|
+
onCancel: A,
|
|
6182
6182
|
children: v
|
|
6183
6183
|
}
|
|
6184
6184
|
);
|
|
@@ -6264,54 +6264,54 @@ const Zc = ({
|
|
|
6264
6264
|
// 这些属性主要由 GrapesJS 使用或在内部逻辑处理,不需要传递给 Antd Card
|
|
6265
6265
|
showHeader: u,
|
|
6266
6266
|
showCover: S,
|
|
6267
|
-
showActions:
|
|
6267
|
+
showActions: A,
|
|
6268
6268
|
// AntD v6 将 size="default" 重命名为 "medium",显式接收以便做兼容映射
|
|
6269
6269
|
size: C,
|
|
6270
6270
|
// 其他
|
|
6271
6271
|
children: w,
|
|
6272
6272
|
...D
|
|
6273
6273
|
}) => {
|
|
6274
|
-
const T = _((U) => U.addCommand), O = _((U) => U.getDataSet), N = _((U) => U.setDataSet),
|
|
6274
|
+
const T = _((U) => U.addCommand), O = _((U) => U.getDataSet), N = _((U) => U.setDataSet), x = y(
|
|
6275
6275
|
() => rt(t, i),
|
|
6276
6276
|
[t, i]
|
|
6277
6277
|
), E = C === "default" ? "medium" : C, k = y(() => {
|
|
6278
6278
|
const U = on(s, {});
|
|
6279
6279
|
return Object.fromEntries(
|
|
6280
|
-
Object.entries(U).map(([at,
|
|
6280
|
+
Object.entries(U).map(([at, ot]) => [
|
|
6281
6281
|
at,
|
|
6282
|
-
po(
|
|
6282
|
+
po(ot)
|
|
6283
6283
|
])
|
|
6284
6284
|
);
|
|
6285
6285
|
}, [s]), M = y(() => {
|
|
6286
6286
|
const U = vo(v);
|
|
6287
6287
|
return U.length > 0 ? U : void 0;
|
|
6288
6288
|
}, [v]), H = y(() => {
|
|
6289
|
-
if (
|
|
6290
|
-
const U = O(
|
|
6289
|
+
if (x && r) {
|
|
6290
|
+
const U = O(x, `${r}.activeTabKey`);
|
|
6291
6291
|
if (typeof U == "string") return U;
|
|
6292
6292
|
}
|
|
6293
|
-
}, [
|
|
6293
|
+
}, [x, r, O]) ?? h, P = j((U) => {
|
|
6294
6294
|
if (f) {
|
|
6295
6295
|
f(U);
|
|
6296
6296
|
return;
|
|
6297
6297
|
}
|
|
6298
|
-
|
|
6299
|
-
}, [f,
|
|
6300
|
-
let U = null, at = null,
|
|
6298
|
+
x && r && N(x, `${r}.activeTabKey`, U), g && t && T(t, I(g, { key: U }));
|
|
6299
|
+
}, [f, x, r, N, g, t, T]), { titleSlot: $, extraSlot: z, coverSlot: K, actionsSlot: V, otherChildren: R, actionsFromChildren: L } = y(() => {
|
|
6300
|
+
let U = null, at = null, ot = null, tt = [];
|
|
6301
6301
|
const pt = [];
|
|
6302
|
-
let
|
|
6303
|
-
return a && (U = a), o && (at = o), c && (
|
|
6304
|
-
if (!Wt.isValidElement(
|
|
6305
|
-
pt.push(
|
|
6302
|
+
let wt = !1;
|
|
6303
|
+
return a && (U = a), o && (at = o), c && (ot = c), d && (tt = d), Wt.Children.forEach(w, (yt) => {
|
|
6304
|
+
if (!Wt.isValidElement(yt)) {
|
|
6305
|
+
pt.push(yt);
|
|
6306
6306
|
return;
|
|
6307
6307
|
}
|
|
6308
|
-
const
|
|
6309
|
-
|
|
6310
|
-
}), { titleSlot: U, extraSlot: at, coverSlot:
|
|
6308
|
+
const et = yt.props, ft = et["data-slot-type"];
|
|
6309
|
+
ft === "title" && !a ? U = yt : ft === "extra" && !o ? at = yt : ft === "cover" && !c ? ot = yt : ft === "actions" && !d ? (tt = [yt], wt = !0) : ft === "body" && et.children ? pt.push(et.children) : pt.push(yt);
|
|
6310
|
+
}), { titleSlot: U, extraSlot: at, coverSlot: ot, actionsSlot: tt, otherChildren: pt, actionsFromChildren: wt };
|
|
6311
6311
|
}, [w, a, o, c, d]), Q = y(() => {
|
|
6312
6312
|
const U = on(m, {});
|
|
6313
6313
|
return L ? { actionsLiMargin: "0px", ...U } : U;
|
|
6314
|
-
}, [m, L]),
|
|
6314
|
+
}, [m, L]), Y = /* @__PURE__ */ b(
|
|
6315
6315
|
Je,
|
|
6316
6316
|
{
|
|
6317
6317
|
...D,
|
|
@@ -6329,7 +6329,7 @@ const Zc = ({
|
|
|
6329
6329
|
children: R
|
|
6330
6330
|
}
|
|
6331
6331
|
);
|
|
6332
|
-
return Q && Object.keys(Q).length > 0 ? /* @__PURE__ */ b(
|
|
6332
|
+
return Q && Object.keys(Q).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Card: Q } }, children: Y }) : Y;
|
|
6333
6333
|
}, ds = ({
|
|
6334
6334
|
id: e,
|
|
6335
6335
|
sessionId: t,
|
|
@@ -6342,7 +6342,7 @@ const Zc = ({
|
|
|
6342
6342
|
}) => {
|
|
6343
6343
|
const l = r || i;
|
|
6344
6344
|
return o && Object.keys(o).length > 0 ? /* @__PURE__ */ b(
|
|
6345
|
-
|
|
6345
|
+
Bt,
|
|
6346
6346
|
{
|
|
6347
6347
|
theme: {
|
|
6348
6348
|
components: {
|
|
@@ -6385,26 +6385,26 @@ const Zc = ({
|
|
|
6385
6385
|
index: f,
|
|
6386
6386
|
...s
|
|
6387
6387
|
}) => {
|
|
6388
|
-
const m = _((
|
|
6388
|
+
const m = _((x) => x.addCommand), u = be(ie), S = f ?? (u == null ? void 0 : u.index), A = y(
|
|
6389
6389
|
() => rt(t, i),
|
|
6390
6390
|
[t, i]
|
|
6391
|
-
), C = _((
|
|
6392
|
-
if (
|
|
6393
|
-
return r ?
|
|
6391
|
+
), C = _((x) => {
|
|
6392
|
+
if (A)
|
|
6393
|
+
return r ? x.getDataSet(A, r) : x.dataSets[A];
|
|
6394
6394
|
}), w = y(() => {
|
|
6395
6395
|
if (C == null) return;
|
|
6396
6396
|
if (Array.isArray(C)) return C;
|
|
6397
|
-
const
|
|
6398
|
-
if (Array.isArray(
|
|
6399
|
-
if (Array.isArray(
|
|
6400
|
-
}, [C]), D = y(() => n ? w ?? _n(o) ?? [] :
|
|
6401
|
-
(
|
|
6397
|
+
const x = C;
|
|
6398
|
+
if (Array.isArray(x == null ? void 0 : x.items)) return x.items;
|
|
6399
|
+
if (Array.isArray(x == null ? void 0 : x.value)) return x.value;
|
|
6400
|
+
}, [C]), D = y(() => n ? w ?? _n(o) ?? [] : A ? w ?? [] : _n(o) ?? [], [n, A, w, o]), T = j(
|
|
6401
|
+
(x, E) => {
|
|
6402
6402
|
if (h) {
|
|
6403
|
-
h(
|
|
6403
|
+
h(x, E);
|
|
6404
6404
|
return;
|
|
6405
6405
|
}
|
|
6406
6406
|
if (v && t) {
|
|
6407
|
-
const { actionName: k, arg: M } = ee(v,
|
|
6407
|
+
const { actionName: k, arg: M } = ee(v, x, {
|
|
6408
6408
|
id: e,
|
|
6409
6409
|
dataSet: i,
|
|
6410
6410
|
dataSetField: r,
|
|
@@ -6427,43 +6427,43 @@ const Zc = ({
|
|
|
6427
6427
|
), O = y(
|
|
6428
6428
|
() => ({
|
|
6429
6429
|
items: rr(D),
|
|
6430
|
-
onClick: (
|
|
6430
|
+
onClick: (x) => {
|
|
6431
6431
|
if (c && t) {
|
|
6432
|
-
const { actionName: E, arg: k } = ee(c,
|
|
6432
|
+
const { actionName: E, arg: k } = ee(c, x.key, {
|
|
6433
6433
|
id: e,
|
|
6434
6434
|
dataSet: i,
|
|
6435
6435
|
dataSetField: r,
|
|
6436
6436
|
index: S,
|
|
6437
|
-
key:
|
|
6438
|
-
keyPath:
|
|
6437
|
+
key: x.key,
|
|
6438
|
+
keyPath: x.keyPath
|
|
6439
6439
|
});
|
|
6440
6440
|
m(t, I(E, k));
|
|
6441
6441
|
}
|
|
6442
6442
|
},
|
|
6443
|
-
onSelect: (
|
|
6443
|
+
onSelect: (x) => {
|
|
6444
6444
|
if (l && t) {
|
|
6445
|
-
const { actionName: E, arg: k } = ee(l,
|
|
6445
|
+
const { actionName: E, arg: k } = ee(l, x.key, {
|
|
6446
6446
|
id: e,
|
|
6447
6447
|
dataSet: i,
|
|
6448
6448
|
dataSetField: r,
|
|
6449
6449
|
index: S,
|
|
6450
|
-
key:
|
|
6451
|
-
keyPath:
|
|
6452
|
-
selectedKeys:
|
|
6450
|
+
key: x.key,
|
|
6451
|
+
keyPath: x.keyPath,
|
|
6452
|
+
selectedKeys: x.selectedKeys
|
|
6453
6453
|
});
|
|
6454
6454
|
m(t, I(E, k));
|
|
6455
6455
|
}
|
|
6456
6456
|
},
|
|
6457
|
-
onDeselect: (
|
|
6457
|
+
onDeselect: (x) => {
|
|
6458
6458
|
if (d && t) {
|
|
6459
|
-
const { actionName: E, arg: k } = ee(d,
|
|
6459
|
+
const { actionName: E, arg: k } = ee(d, x.key, {
|
|
6460
6460
|
id: e,
|
|
6461
6461
|
dataSet: i,
|
|
6462
6462
|
dataSetField: r,
|
|
6463
6463
|
index: S,
|
|
6464
|
-
key:
|
|
6465
|
-
keyPath:
|
|
6466
|
-
selectedKeys:
|
|
6464
|
+
key: x.key,
|
|
6465
|
+
keyPath: x.keyPath,
|
|
6466
|
+
selectedKeys: x.selectedKeys
|
|
6467
6467
|
});
|
|
6468
6468
|
m(t, I(E, k));
|
|
6469
6469
|
}
|
|
@@ -6481,7 +6481,7 @@ const Zc = ({
|
|
|
6481
6481
|
r,
|
|
6482
6482
|
S
|
|
6483
6483
|
]
|
|
6484
|
-
), N = y(() => /* @__PURE__ */
|
|
6484
|
+
), N = y(() => /* @__PURE__ */ st(
|
|
6485
6485
|
"div",
|
|
6486
6486
|
{
|
|
6487
6487
|
className: "and-dropdown-trigger-slot",
|
|
@@ -6489,7 +6489,7 @@ const Zc = ({
|
|
|
6489
6489
|
children: [
|
|
6490
6490
|
p,
|
|
6491
6491
|
n && !p && !g && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6492
|
-
!p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */
|
|
6492
|
+
!p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ st(Yt, { children: [
|
|
6493
6493
|
a,
|
|
6494
6494
|
/* @__PURE__ */ b(Gn, {})
|
|
6495
6495
|
] }) })
|
|
@@ -6574,7 +6574,7 @@ const Zc = ({
|
|
|
6574
6574
|
const u = _((k) => k.addCommand), S = y(
|
|
6575
6575
|
() => Ye(i, []),
|
|
6576
6576
|
[i]
|
|
6577
|
-
),
|
|
6577
|
+
), A = y(() => Ye(g, {}), [g]), C = y(() => me(o), [o]), w = y(() => {
|
|
6578
6578
|
if (c) {
|
|
6579
6579
|
if (typeof c == "string") {
|
|
6580
6580
|
const k = Ye(c, null);
|
|
@@ -6628,7 +6628,7 @@ const Zc = ({
|
|
|
6628
6628
|
max: k.max || void 0,
|
|
6629
6629
|
collapsible: k.collapsible,
|
|
6630
6630
|
resizable: k.resizable !== !1,
|
|
6631
|
-
children: s ? s(k.key, M) : /* @__PURE__ */
|
|
6631
|
+
children: s ? s(k.key, M) : /* @__PURE__ */ st(
|
|
6632
6632
|
"div",
|
|
6633
6633
|
{
|
|
6634
6634
|
style: {
|
|
@@ -6647,15 +6647,15 @@ const Zc = ({
|
|
|
6647
6647
|
)
|
|
6648
6648
|
},
|
|
6649
6649
|
k.key || M
|
|
6650
|
-
)), { layout: N, ...
|
|
6650
|
+
)), { layout: N, ...x } = m, E = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
|
|
6651
6651
|
qe,
|
|
6652
6652
|
{
|
|
6653
|
-
...
|
|
6653
|
+
...x,
|
|
6654
6654
|
orientation: r,
|
|
6655
6655
|
lazy: a,
|
|
6656
6656
|
onResize: D,
|
|
6657
6657
|
onResizeEnd: T,
|
|
6658
|
-
style: { height: "100%", width: "100%", ...
|
|
6658
|
+
style: { height: "100%", width: "100%", ...x.style },
|
|
6659
6659
|
styles: p,
|
|
6660
6660
|
draggerIcon: C,
|
|
6661
6661
|
collapsibleIcon: w,
|
|
@@ -6663,7 +6663,7 @@ const Zc = ({
|
|
|
6663
6663
|
},
|
|
6664
6664
|
r
|
|
6665
6665
|
) });
|
|
6666
|
-
return
|
|
6666
|
+
return A && Object.keys(A).length > 0 ? /* @__PURE__ */ b(Bt, { theme: { components: { Splitter: A } }, children: E }) : E;
|
|
6667
6667
|
}, bs = ({
|
|
6668
6668
|
children: e,
|
|
6669
6669
|
className: t,
|
|
@@ -6706,16 +6706,16 @@ const Zc = ({
|
|
|
6706
6706
|
"page-size": u = "small",
|
|
6707
6707
|
"page-showLessItems": S = !1
|
|
6708
6708
|
}) => {
|
|
6709
|
-
const
|
|
6709
|
+
const A = u === "default" ? "middle" : u, C = _((B) => B.getDataSet), w = y(
|
|
6710
6710
|
() => rt(t, i),
|
|
6711
6711
|
[t, i]
|
|
6712
|
-
), [D, T] =
|
|
6712
|
+
), [D, T] = mt(1), [O, N] = mt(p), x = y(() => {
|
|
6713
6713
|
if (w && r) {
|
|
6714
6714
|
const B = C(w, r);
|
|
6715
6715
|
return Array.isArray(B) ? B : [];
|
|
6716
6716
|
}
|
|
6717
6717
|
return [];
|
|
6718
|
-
}, [w, r, C]), E = y(() => n ?
|
|
6718
|
+
}, [w, r, C]), E = y(() => n ? x.length > 0 ? x : c || [] : w ? x : c || [], [n, w, x, c]), k = y(() => {
|
|
6719
6719
|
let B = E;
|
|
6720
6720
|
if (!h) {
|
|
6721
6721
|
const H = (D - 1) * O, P = H + O;
|
|
@@ -6728,7 +6728,7 @@ const Zc = ({
|
|
|
6728
6728
|
const M = (B, H) => {
|
|
6729
6729
|
T(B), H && N(H);
|
|
6730
6730
|
};
|
|
6731
|
-
return /* @__PURE__ */
|
|
6731
|
+
return /* @__PURE__ */ st("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6732
6732
|
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: k.map((B, H) => /* @__PURE__ */ b(Wt.Fragment, { children: a ? a(B, H) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || H)) }),
|
|
6733
6733
|
!h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
|
|
6734
6734
|
zn,
|
|
@@ -6741,7 +6741,7 @@ const Zc = ({
|
|
|
6741
6741
|
showSizeChanger: f,
|
|
6742
6742
|
showQuickJumper: s,
|
|
6743
6743
|
simple: m,
|
|
6744
|
-
size:
|
|
6744
|
+
size: A,
|
|
6745
6745
|
showLessItems: S
|
|
6746
6746
|
}
|
|
6747
6747
|
) })
|
|
@@ -6778,7 +6778,7 @@ const Zc = ({
|
|
|
6778
6778
|
transform: l ? `rotate(${l}deg)` : void 0,
|
|
6779
6779
|
...f
|
|
6780
6780
|
};
|
|
6781
|
-
return /* @__PURE__ */
|
|
6781
|
+
return /* @__PURE__ */ st(le, { children: [
|
|
6782
6782
|
/* @__PURE__ */ b("style", { children: So }),
|
|
6783
6783
|
c && /* @__PURE__ */ b("style", { children: bo }),
|
|
6784
6784
|
/* @__PURE__ */ b(
|
|
@@ -6844,13 +6844,13 @@ const Zc = ({
|
|
|
6844
6844
|
Je.Meta,
|
|
6845
6845
|
{
|
|
6846
6846
|
title: s.name,
|
|
6847
|
-
description: /* @__PURE__ */
|
|
6848
|
-
s.price !== void 0 && /* @__PURE__ */
|
|
6849
|
-
/* @__PURE__ */
|
|
6847
|
+
description: /* @__PURE__ */ st(Yt, { direction: "vertical", size: 4, children: [
|
|
6848
|
+
s.price !== void 0 && /* @__PURE__ */ st("div", { children: [
|
|
6849
|
+
/* @__PURE__ */ st("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
|
|
6850
6850
|
"¥",
|
|
6851
6851
|
s.price
|
|
6852
6852
|
] }),
|
|
6853
|
-
s.originalPrice && /* @__PURE__ */
|
|
6853
|
+
s.originalPrice && /* @__PURE__ */ st("span", { style: { marginLeft: 8, color: "#999", textDecoration: "line-through" }, children: [
|
|
6854
6854
|
"¥",
|
|
6855
6855
|
s.originalPrice
|
|
6856
6856
|
] })
|
|
@@ -6862,7 +6862,7 @@ const Zc = ({
|
|
|
6862
6862
|
},
|
|
6863
6863
|
s.id
|
|
6864
6864
|
)) });
|
|
6865
|
-
}, En = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */
|
|
6865
|
+
}, En = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ st(
|
|
6866
6866
|
"div",
|
|
6867
6867
|
{
|
|
6868
6868
|
id: e,
|
|
@@ -6906,27 +6906,27 @@ const Zc = ({
|
|
|
6906
6906
|
var T, O;
|
|
6907
6907
|
const { storeBaseKey: p, arrayIndex: g } = y(() => {
|
|
6908
6908
|
if (!n) return { storeBaseKey: void 0, arrayIndex: null };
|
|
6909
|
-
const N = n.split(".")[0], { baseName:
|
|
6909
|
+
const N = n.split(".")[0], { baseName: x, index: E } = Se(N);
|
|
6910
6910
|
let k = E;
|
|
6911
6911
|
if (k === null && h !== void 0 && h !== null) {
|
|
6912
6912
|
const M = Number(h);
|
|
6913
6913
|
k = Number.isFinite(M) ? M : null;
|
|
6914
6914
|
}
|
|
6915
6915
|
return {
|
|
6916
|
-
storeBaseKey: rt(i,
|
|
6916
|
+
storeBaseKey: rt(i, x),
|
|
6917
6917
|
arrayIndex: k
|
|
6918
6918
|
};
|
|
6919
6919
|
}, [n, i, h]), f = _((N) => {
|
|
6920
6920
|
if (!p) return null;
|
|
6921
|
-
const
|
|
6921
|
+
const x = N.dataSets[p];
|
|
6922
6922
|
if (g !== null) {
|
|
6923
|
-
const E =
|
|
6923
|
+
const E = x == null ? void 0 : x.value;
|
|
6924
6924
|
return Array.isArray(E) ? E[g] ?? null : null;
|
|
6925
6925
|
}
|
|
6926
|
-
return
|
|
6926
|
+
return x ?? null;
|
|
6927
6927
|
}), s = y(() => {
|
|
6928
6928
|
if (!n || !f) return { componentName: "", props: {} };
|
|
6929
|
-
const
|
|
6929
|
+
const x = n.split(".")[1], E = x ? f[x] || {} : f;
|
|
6930
6930
|
if (typeof E == "object" && E !== null) {
|
|
6931
6931
|
const { componentName: k, props: M, ...B } = E;
|
|
6932
6932
|
return {
|
|
@@ -6938,16 +6938,16 @@ const Zc = ({
|
|
|
6938
6938
|
}, [n, i, f]), m = ((T = s.props) == null ? void 0 : T.inheritDataSet) !== void 0 ? String((O = s.props) == null ? void 0 : O.inheritDataSet) : void 0, u = s.componentName || e, S = y(() => ({
|
|
6939
6939
|
// inheritDataSet 只用于给后代提供 DataSetInheritContext,不应透传给具体组件。
|
|
6940
6940
|
...s.props ? (() => {
|
|
6941
|
-
const { inheritDataSet: N, ...
|
|
6942
|
-
return
|
|
6941
|
+
const { inheritDataSet: N, ...x } = s.props;
|
|
6942
|
+
return x;
|
|
6943
6943
|
})() : {},
|
|
6944
6944
|
...h !== void 0 ? { index: h } : {},
|
|
6945
6945
|
...t,
|
|
6946
6946
|
sessionId: i
|
|
6947
|
-
}), [s.props, t, i, h]),
|
|
6947
|
+
}), [s.props, t, i, h]), A = d || "请配置组件";
|
|
6948
6948
|
if (a) {
|
|
6949
6949
|
const N = v === "row";
|
|
6950
|
-
return /* @__PURE__ */
|
|
6950
|
+
return /* @__PURE__ */ st(
|
|
6951
6951
|
"div",
|
|
6952
6952
|
{
|
|
6953
6953
|
id: c,
|
|
@@ -6981,7 +6981,7 @@ const Zc = ({
|
|
|
6981
6981
|
En,
|
|
6982
6982
|
{
|
|
6983
6983
|
id: c,
|
|
6984
|
-
title:
|
|
6984
|
+
title: A,
|
|
6985
6985
|
description: "动态容器未配置组件解析器",
|
|
6986
6986
|
style: o
|
|
6987
6987
|
}
|
|
@@ -6997,7 +6997,7 @@ const Zc = ({
|
|
|
6997
6997
|
En,
|
|
6998
6998
|
{
|
|
6999
6999
|
id: c,
|
|
7000
|
-
title:
|
|
7000
|
+
title: A,
|
|
7001
7001
|
description: u ? `组件 "${u}" 未找到` : void 0,
|
|
7002
7002
|
style: o
|
|
7003
7003
|
}
|
|
@@ -7057,7 +7057,7 @@ const Zc = ({
|
|
|
7057
7057
|
}
|
|
7058
7058
|
);
|
|
7059
7059
|
return h && Object.keys(h).length > 0 ? /* @__PURE__ */ b(
|
|
7060
|
-
|
|
7060
|
+
Bt,
|
|
7061
7061
|
{
|
|
7062
7062
|
theme: {
|
|
7063
7063
|
algorithm: Zt.defaultAlgorithm,
|
|
@@ -7090,185 +7090,194 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
|
|
|
7090
7090
|
className: p,
|
|
7091
7091
|
style: g
|
|
7092
7092
|
}) => {
|
|
7093
|
-
|
|
7093
|
+
xt(() => {
|
|
7094
7094
|
wo();
|
|
7095
7095
|
}, []);
|
|
7096
|
-
const f = _((
|
|
7096
|
+
const f = _((W) => W.setDataSet), s = y(
|
|
7097
7097
|
() => rt(t, i),
|
|
7098
7098
|
[t, i]
|
|
7099
|
-
), m = _((
|
|
7099
|
+
), m = _((W) => {
|
|
7100
7100
|
if (!s || !r) return;
|
|
7101
|
-
const
|
|
7102
|
-
if (
|
|
7101
|
+
const it = W.getDataSet(s, r);
|
|
7102
|
+
if (it != null && it !== "") return String(it);
|
|
7103
7103
|
}), u = _(
|
|
7104
|
-
(
|
|
7105
|
-
var
|
|
7106
|
-
return t && e ? ((
|
|
7104
|
+
(W) => {
|
|
7105
|
+
var it;
|
|
7106
|
+
return t && e ? ((it = W.propsStore[`${t}_props`]) == null ? void 0 : it[e]) ?? null : null;
|
|
7107
7107
|
}
|
|
7108
7108
|
), S = y(() => {
|
|
7109
|
-
let
|
|
7110
|
-
if (m !== void 0)
|
|
7109
|
+
let W;
|
|
7110
|
+
if (m !== void 0) W = m;
|
|
7111
7111
|
else if (u && typeof u == "object") {
|
|
7112
|
-
const
|
|
7113
|
-
|
|
7112
|
+
const it = u.filePath;
|
|
7113
|
+
it != null && it !== "" && (W = String(it));
|
|
7114
7114
|
}
|
|
7115
|
-
return
|
|
7116
|
-
}, [m, u, a]),
|
|
7115
|
+
return W === void 0 && (W = a), W;
|
|
7116
|
+
}, [m, u, a]), A = y(() => {
|
|
7117
7117
|
if (u && typeof u == "object") {
|
|
7118
|
-
const
|
|
7119
|
-
if (typeof
|
|
7120
|
-
return
|
|
7118
|
+
const W = u.nonPdfBackgroundColor;
|
|
7119
|
+
if (typeof W == "string" && W.trim())
|
|
7120
|
+
return W.trim();
|
|
7121
7121
|
}
|
|
7122
7122
|
return d;
|
|
7123
|
-
}, [u, d]), [C, w] =
|
|
7123
|
+
}, [u, d]), [C, w] = mt(0), [D, T] = mt(
|
|
7124
7124
|
() => Math.max(1, o || 1)
|
|
7125
|
-
),
|
|
7125
|
+
), O = $t(D);
|
|
7126
|
+
O.current = D;
|
|
7127
|
+
const [N, x] = mt(null), [E, k] = mt(!!S), [M, B] = mt("all"), [H, P] = mt("width"), [$, z] = mt(1), K = $t(null), V = $t(null), R = $t({}), [L, Q] = mt(600), [Y, U] = mt(800), at = $t(0), ot = y(
|
|
7126
7128
|
() => ({
|
|
7127
7129
|
cMapUrl: `https://unpkg.com/pdfjs-dist@${ye.version}/cmaps/`,
|
|
7128
7130
|
cMapPacked: !0
|
|
7129
7131
|
}),
|
|
7130
7132
|
[]
|
|
7131
|
-
),
|
|
7132
|
-
if (!(!s || !
|
|
7133
|
-
return
|
|
7133
|
+
), tt = (c || "").trim(), pt = _((W) => {
|
|
7134
|
+
if (!(!s || !tt))
|
|
7135
|
+
return W.getDataSet(s, `${tt}.targetPage`);
|
|
7134
7136
|
});
|
|
7135
|
-
|
|
7136
|
-
const
|
|
7137
|
-
if (!
|
|
7138
|
-
const
|
|
7139
|
-
const
|
|
7140
|
-
|
|
7137
|
+
xt(() => {
|
|
7138
|
+
const W = V.current;
|
|
7139
|
+
if (!W) return;
|
|
7140
|
+
const it = new ResizeObserver(() => {
|
|
7141
|
+
const gt = W.clientWidth, Ct = W.clientHeight;
|
|
7142
|
+
gt > 0 && Q(gt), Ct > 0 && U(Ct);
|
|
7141
7143
|
});
|
|
7142
|
-
|
|
7143
|
-
const
|
|
7144
|
-
return
|
|
7144
|
+
it.observe(W);
|
|
7145
|
+
const At = W.clientWidth, J = W.clientHeight;
|
|
7146
|
+
return At > 0 && Q(At), J > 0 && U(J), () => it.disconnect();
|
|
7145
7147
|
}, [S]);
|
|
7146
|
-
const
|
|
7147
|
-
() => Math.max(320,
|
|
7148
|
-
[
|
|
7149
|
-
),
|
|
7150
|
-
() => Math.max(120,
|
|
7151
|
-
[
|
|
7152
|
-
),
|
|
7153
|
-
() => Math.max(180,
|
|
7154
|
-
[
|
|
7155
|
-
),
|
|
7156
|
-
(
|
|
7157
|
-
!s || !
|
|
7148
|
+
const wt = y(() => Math.max(240, L - 16), [L]), yt = y(
|
|
7149
|
+
() => Math.max(320, Y - 16),
|
|
7150
|
+
[Y]
|
|
7151
|
+
), et = y(
|
|
7152
|
+
() => Math.max(120, wt * $),
|
|
7153
|
+
[wt, $]
|
|
7154
|
+
), ft = y(
|
|
7155
|
+
() => Math.max(180, yt * $),
|
|
7156
|
+
[yt, $]
|
|
7157
|
+
), ct = y(() => M === "all" ? Array.from({ length: C }, (W, it) => it + 1) : [D], [M, C, D]), _t = j(
|
|
7158
|
+
(W, it) => {
|
|
7159
|
+
!s || !tt || (f(s, `${tt}.currentPage`, W), it > 0 && f(s, `${tt}.totalPages`, it));
|
|
7158
7160
|
},
|
|
7159
|
-
[s,
|
|
7161
|
+
[s, tt, f]
|
|
7160
7162
|
);
|
|
7161
|
-
|
|
7162
|
-
C > 0 &&
|
|
7163
|
-
}, [D, C,
|
|
7164
|
-
const
|
|
7165
|
-
(
|
|
7166
|
-
const
|
|
7167
|
-
if (T(
|
|
7168
|
-
const
|
|
7169
|
-
|
|
7163
|
+
xt(() => {
|
|
7164
|
+
C > 0 && _t(D, C);
|
|
7165
|
+
}, [D, C, _t]);
|
|
7166
|
+
const bt = j(
|
|
7167
|
+
(W, it = "auto") => {
|
|
7168
|
+
const At = C > 0 ? Math.max(1, Math.min(Math.floor(W), C)) : Math.max(1, Math.floor(W));
|
|
7169
|
+
if (T(At), M === "all") {
|
|
7170
|
+
const J = R.current[At];
|
|
7171
|
+
J && J.scrollIntoView({ block: "start", behavior: it });
|
|
7170
7172
|
}
|
|
7171
7173
|
},
|
|
7172
|
-
[C,
|
|
7173
|
-
);
|
|
7174
|
-
|
|
7175
|
-
const
|
|
7176
|
-
typeof
|
|
7177
|
-
}, [
|
|
7178
|
-
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
7182
|
-
|
|
7174
|
+
[C, M]
|
|
7175
|
+
), jt = $t(bt);
|
|
7176
|
+
jt.current = bt, xt(() => {
|
|
7177
|
+
const W = pt;
|
|
7178
|
+
typeof W != "number" || !Number.isFinite(W) || (bt(W, "auto"), s && tt && f(s, `${tt}.targetPage`, void 0));
|
|
7179
|
+
}, [pt, bt, s, tt, f]), xt(() => {
|
|
7180
|
+
const W = Math.max(1, o ?? 1);
|
|
7181
|
+
T(W);
|
|
7182
|
+
}, [o]);
|
|
7183
|
+
const G = j(
|
|
7184
|
+
({ numPages: W }) => {
|
|
7185
|
+
x(null), k(!1);
|
|
7186
|
+
const it = O.current, At = Math.min(Math.max(1, it), W || 1);
|
|
7187
|
+
w(W), T(At), requestAnimationFrame(() => {
|
|
7188
|
+
requestAnimationFrame(() => {
|
|
7189
|
+
jt.current(At, "auto");
|
|
7190
|
+
});
|
|
7191
|
+
});
|
|
7183
7192
|
},
|
|
7184
7193
|
[]
|
|
7185
|
-
),
|
|
7186
|
-
|
|
7194
|
+
), q = j((W) => {
|
|
7195
|
+
x(W), k(!1);
|
|
7187
7196
|
}, []);
|
|
7188
|
-
|
|
7189
|
-
|
|
7197
|
+
xt(() => {
|
|
7198
|
+
k(!!S), x(null), z(1), w(0), R.current = {};
|
|
7190
7199
|
}, [S]);
|
|
7191
|
-
const
|
|
7192
|
-
|
|
7193
|
-
const
|
|
7194
|
-
return Math.max(Do, Math.min(xo,
|
|
7200
|
+
const nt = j((W) => {
|
|
7201
|
+
z((it) => {
|
|
7202
|
+
const At = Number((it + W).toFixed(2));
|
|
7203
|
+
return Math.max(Do, Math.min(xo, At));
|
|
7195
7204
|
});
|
|
7196
|
-
}, []),
|
|
7205
|
+
}, []), Z = j(() => {
|
|
7197
7206
|
if (!S) return;
|
|
7198
|
-
const
|
|
7199
|
-
|
|
7207
|
+
const W = window.open(S, "_blank", "noopener,noreferrer");
|
|
7208
|
+
W && (W.onload = () => {
|
|
7200
7209
|
try {
|
|
7201
|
-
|
|
7210
|
+
W.print();
|
|
7202
7211
|
} catch {
|
|
7203
7212
|
}
|
|
7204
7213
|
});
|
|
7205
|
-
}, [S]),
|
|
7214
|
+
}, [S]), lt = j(() => {
|
|
7206
7215
|
if (!S) return;
|
|
7207
|
-
const
|
|
7208
|
-
|
|
7209
|
-
}, [S]),
|
|
7210
|
-
var
|
|
7211
|
-
const
|
|
7212
|
-
|
|
7213
|
-
}, []),
|
|
7216
|
+
const W = document.createElement("a");
|
|
7217
|
+
W.href = S, W.download = "", W.rel = "noopener noreferrer", W.target = "_blank", document.body.appendChild(W), W.click(), W.remove();
|
|
7218
|
+
}, [S]), dt = j(() => {
|
|
7219
|
+
var it;
|
|
7220
|
+
const W = K.current;
|
|
7221
|
+
W && ((it = W.requestFullscreen) == null || it.call(W));
|
|
7222
|
+
}, []), St = j(() => {
|
|
7214
7223
|
document.fullscreenElement && document.exitFullscreen();
|
|
7215
|
-
}, []),
|
|
7216
|
-
if (
|
|
7217
|
-
const
|
|
7218
|
-
if (!
|
|
7219
|
-
const
|
|
7220
|
-
let
|
|
7221
|
-
for (let
|
|
7222
|
-
const
|
|
7223
|
-
if (!
|
|
7224
|
-
const
|
|
7225
|
-
|
|
7226
|
-
}
|
|
7227
|
-
|
|
7228
|
-
}, [
|
|
7229
|
-
return
|
|
7224
|
+
}, []), X = j(() => {
|
|
7225
|
+
if (M !== "all" || C <= 0) return;
|
|
7226
|
+
const W = V.current;
|
|
7227
|
+
if (!W) return;
|
|
7228
|
+
const it = W.scrollTop + W.clientHeight * 0.35;
|
|
7229
|
+
let At = D, J = Number.POSITIVE_INFINITY;
|
|
7230
|
+
for (let gt = 1; gt <= C; gt++) {
|
|
7231
|
+
const Ct = R.current[gt];
|
|
7232
|
+
if (!Ct) continue;
|
|
7233
|
+
const Rt = Math.abs(Ct.offsetTop - it);
|
|
7234
|
+
Rt < J && (J = Rt, At = gt);
|
|
7235
|
+
}
|
|
7236
|
+
At !== D && T(At);
|
|
7237
|
+
}, [M, C, D]);
|
|
7238
|
+
return xt(() => {
|
|
7230
7239
|
if (!u || typeof u != "object") return;
|
|
7231
|
-
const
|
|
7232
|
-
if (!(
|
|
7233
|
-
switch (
|
|
7240
|
+
const W = u._pdfCmdNonce, it = u.pdfCommand, At = u.pdfCommandArg;
|
|
7241
|
+
if (!(W == null || W === at.current || !it)) {
|
|
7242
|
+
switch (at.current = W, it) {
|
|
7234
7243
|
case "print":
|
|
7235
|
-
|
|
7244
|
+
Z();
|
|
7236
7245
|
break;
|
|
7237
7246
|
case "download":
|
|
7238
|
-
|
|
7247
|
+
lt();
|
|
7239
7248
|
break;
|
|
7240
7249
|
case "enterFullscreen":
|
|
7241
|
-
|
|
7250
|
+
dt();
|
|
7242
7251
|
break;
|
|
7243
7252
|
case "exitFullscreen":
|
|
7244
|
-
|
|
7253
|
+
St();
|
|
7245
7254
|
break;
|
|
7246
7255
|
case "goToPage":
|
|
7247
|
-
typeof
|
|
7256
|
+
typeof At == "number" && bt(At, "smooth");
|
|
7248
7257
|
break;
|
|
7249
7258
|
case "fitWidth":
|
|
7250
|
-
|
|
7259
|
+
P("width"), z(1);
|
|
7251
7260
|
break;
|
|
7252
7261
|
case "fitHeight":
|
|
7253
|
-
|
|
7262
|
+
P("height"), z(1);
|
|
7254
7263
|
break;
|
|
7255
7264
|
case "zoomIn":
|
|
7256
|
-
|
|
7265
|
+
nt(Mn);
|
|
7257
7266
|
break;
|
|
7258
7267
|
case "zoomOut":
|
|
7259
|
-
|
|
7268
|
+
nt(-Mn);
|
|
7260
7269
|
break;
|
|
7261
7270
|
case "previewSingle":
|
|
7262
|
-
|
|
7271
|
+
B("single");
|
|
7263
7272
|
break;
|
|
7264
7273
|
case "previewAll":
|
|
7265
|
-
|
|
7274
|
+
B("all");
|
|
7266
7275
|
break;
|
|
7267
7276
|
}
|
|
7268
7277
|
if (t && e) {
|
|
7269
|
-
const
|
|
7278
|
+
const J = _.getState().getProps(t, e), gt = J && typeof J == "object" && !Array.isArray(J) ? J : {};
|
|
7270
7279
|
_.getState().setProps(t, e, {
|
|
7271
|
-
...
|
|
7280
|
+
...gt,
|
|
7272
7281
|
pdfCommand: void 0,
|
|
7273
7282
|
pdfCommandArg: void 0
|
|
7274
7283
|
});
|
|
@@ -7278,16 +7287,16 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
|
|
|
7278
7287
|
u,
|
|
7279
7288
|
t,
|
|
7280
7289
|
e,
|
|
7281
|
-
q,
|
|
7282
|
-
et,
|
|
7283
7290
|
Z,
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7291
|
+
lt,
|
|
7292
|
+
dt,
|
|
7293
|
+
St,
|
|
7294
|
+
bt,
|
|
7295
|
+
nt
|
|
7287
7296
|
]), /* @__PURE__ */ b(
|
|
7288
7297
|
"div",
|
|
7289
7298
|
{
|
|
7290
|
-
ref:
|
|
7299
|
+
ref: K,
|
|
7291
7300
|
className: p,
|
|
7292
7301
|
style: {
|
|
7293
7302
|
display: "flex",
|
|
@@ -7299,37 +7308,37 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
|
|
|
7299
7308
|
children: /* @__PURE__ */ b(
|
|
7300
7309
|
"div",
|
|
7301
7310
|
{
|
|
7302
|
-
ref:
|
|
7311
|
+
ref: V,
|
|
7303
7312
|
style: {
|
|
7304
7313
|
flex: 1,
|
|
7305
7314
|
width: "100%",
|
|
7306
7315
|
overflow: "auto",
|
|
7307
|
-
backgroundColor:
|
|
7316
|
+
backgroundColor: A,
|
|
7308
7317
|
border: n ? "1px dashed #ccc" : void 0
|
|
7309
7318
|
},
|
|
7310
|
-
onScroll:
|
|
7311
|
-
children:
|
|
7319
|
+
onScroll: X,
|
|
7320
|
+
children: N ? /* @__PURE__ */ b(
|
|
7312
7321
|
qn,
|
|
7313
7322
|
{
|
|
7314
7323
|
type: "error",
|
|
7315
|
-
message: (l == null ? void 0 : l.trim()) ||
|
|
7324
|
+
message: (l == null ? void 0 : l.trim()) || N.message,
|
|
7316
7325
|
showIcon: !0
|
|
7317
7326
|
}
|
|
7318
|
-
) : /* @__PURE__ */
|
|
7319
|
-
|
|
7327
|
+
) : /* @__PURE__ */ st(le, { children: [
|
|
7328
|
+
E ? /* @__PURE__ */ b("div", { style: { padding: 48, textAlign: "center" }, children: /* @__PURE__ */ b(Wn, {}) }) : null,
|
|
7320
7329
|
/* @__PURE__ */ b(
|
|
7321
7330
|
oi,
|
|
7322
7331
|
{
|
|
7323
7332
|
file: S,
|
|
7324
|
-
onLoadSuccess:
|
|
7325
|
-
onLoadError:
|
|
7333
|
+
onLoadSuccess: G,
|
|
7334
|
+
onLoadError: q,
|
|
7326
7335
|
loading: null,
|
|
7327
|
-
options:
|
|
7328
|
-
children:
|
|
7336
|
+
options: ot,
|
|
7337
|
+
children: ct.map((W) => /* @__PURE__ */ b(
|
|
7329
7338
|
"div",
|
|
7330
7339
|
{
|
|
7331
|
-
ref: (
|
|
7332
|
-
|
|
7340
|
+
ref: (it) => {
|
|
7341
|
+
R.current[W] = it;
|
|
7333
7342
|
},
|
|
7334
7343
|
style: {
|
|
7335
7344
|
display: "flex",
|
|
@@ -7340,15 +7349,15 @@ const Do = 0.5, xo = 3, Mn = 0.1, Ts = ({
|
|
|
7340
7349
|
children: /* @__PURE__ */ b(
|
|
7341
7350
|
ci,
|
|
7342
7351
|
{
|
|
7343
|
-
pageNumber:
|
|
7344
|
-
width:
|
|
7345
|
-
height:
|
|
7352
|
+
pageNumber: W,
|
|
7353
|
+
width: H === "width" ? et : void 0,
|
|
7354
|
+
height: H === "height" ? ft : void 0,
|
|
7346
7355
|
renderTextLayer: !1,
|
|
7347
7356
|
renderAnnotationLayer: !1
|
|
7348
7357
|
}
|
|
7349
7358
|
)
|
|
7350
7359
|
},
|
|
7351
|
-
|
|
7360
|
+
W
|
|
7352
7361
|
))
|
|
7353
7362
|
},
|
|
7354
7363
|
S
|
|
@@ -7368,7 +7377,7 @@ function Ns(e, t, n, i) {
|
|
|
7368
7377
|
_pdfCmdNonce: Date.now()
|
|
7369
7378
|
});
|
|
7370
7379
|
}
|
|
7371
|
-
function
|
|
7380
|
+
function Nt(e) {
|
|
7372
7381
|
if (!(e == null || e === "")) {
|
|
7373
7382
|
if (typeof e == "string")
|
|
7374
7383
|
try {
|
|
@@ -7413,7 +7422,7 @@ function It(e, t) {
|
|
|
7413
7422
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7414
7423
|
autoFit: S,
|
|
7415
7424
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7416
|
-
padding:
|
|
7425
|
+
padding: A,
|
|
7417
7426
|
// 需要解析的 JSON 配置
|
|
7418
7427
|
title: C,
|
|
7419
7428
|
legend: w,
|
|
@@ -7421,7 +7430,7 @@ function It(e, t) {
|
|
|
7421
7430
|
tooltip: T,
|
|
7422
7431
|
animate: O,
|
|
7423
7432
|
scale: N,
|
|
7424
|
-
interaction:
|
|
7433
|
+
interaction: x,
|
|
7425
7434
|
annotations: E,
|
|
7426
7435
|
axis: k,
|
|
7427
7436
|
scrollbar: M,
|
|
@@ -7432,63 +7441,63 @@ function It(e, t) {
|
|
|
7432
7441
|
events: $,
|
|
7433
7442
|
// 其余配置直接透传
|
|
7434
7443
|
...z
|
|
7435
|
-
} = o, K =
|
|
7444
|
+
} = o, K = $t(null), V = _((G) => G.getDataSet), R = _((G) => G.addCommand), L = y(() => {
|
|
7436
7445
|
if (p && g) {
|
|
7437
7446
|
const q = V(p, g);
|
|
7438
7447
|
if (q !== void 0) return q;
|
|
7439
7448
|
}
|
|
7440
|
-
const
|
|
7441
|
-
return
|
|
7442
|
-
}, [f, p, g, V, d]), Q = (
|
|
7449
|
+
const G = Nt(f);
|
|
7450
|
+
return G !== void 0 ? G : d ? r : [];
|
|
7451
|
+
}, [f, p, g, V, d]), Q = (G) => {
|
|
7443
7452
|
var q;
|
|
7444
|
-
if (K.current =
|
|
7445
|
-
const
|
|
7446
|
-
|
|
7447
|
-
typeof
|
|
7453
|
+
if (K.current = G, !d && l) {
|
|
7454
|
+
const nt = Nt($);
|
|
7455
|
+
nt && typeof nt == "object" && Object.entries(nt).forEach(([Z, lt]) => {
|
|
7456
|
+
typeof lt == "string" && G.on(Z, (dt) => {
|
|
7448
7457
|
R(l, {
|
|
7449
|
-
actionName:
|
|
7458
|
+
actionName: lt,
|
|
7450
7459
|
arg: dt,
|
|
7451
7460
|
timestamp: Date.now()
|
|
7452
7461
|
});
|
|
7453
7462
|
});
|
|
7454
7463
|
});
|
|
7455
7464
|
}
|
|
7456
|
-
(q = z.onReady) == null || q.call(z,
|
|
7457
|
-
},
|
|
7465
|
+
(q = z.onReady) == null || q.call(z, G);
|
|
7466
|
+
}, Y = Nt(s) || {}, U = {
|
|
7458
7467
|
data: L,
|
|
7459
7468
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
7460
|
-
height:
|
|
7461
|
-
autoFit: Ao(
|
|
7469
|
+
height: Y.height ?? i,
|
|
7470
|
+
autoFit: Ao(Y.autoFit, !0),
|
|
7462
7471
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7463
|
-
...
|
|
7472
|
+
...Y,
|
|
7464
7473
|
// 设计器模式禁用动画
|
|
7465
|
-
animate: d ? !1 :
|
|
7474
|
+
animate: d ? !1 : Nt(O),
|
|
7466
7475
|
onReady: Q,
|
|
7467
7476
|
...z
|
|
7468
|
-
}, at =
|
|
7477
|
+
}, at = Nt(C);
|
|
7469
7478
|
at !== void 0 && (U.title = at);
|
|
7470
|
-
const
|
|
7471
|
-
|
|
7472
|
-
const
|
|
7473
|
-
|
|
7474
|
-
const pt =
|
|
7479
|
+
const ot = Nt(w);
|
|
7480
|
+
ot !== void 0 && (U.legend = ot);
|
|
7481
|
+
const tt = Nt(D);
|
|
7482
|
+
tt !== void 0 && (U.label = tt);
|
|
7483
|
+
const pt = Nt(T);
|
|
7475
7484
|
pt !== void 0 && (U.tooltip = pt);
|
|
7476
|
-
const
|
|
7477
|
-
|
|
7478
|
-
const
|
|
7479
|
-
|
|
7480
|
-
const
|
|
7481
|
-
|
|
7482
|
-
const
|
|
7483
|
-
|
|
7484
|
-
const
|
|
7485
|
-
|
|
7486
|
-
const
|
|
7487
|
-
|
|
7488
|
-
const
|
|
7489
|
-
|
|
7490
|
-
const
|
|
7491
|
-
return
|
|
7485
|
+
const wt = Nt(N);
|
|
7486
|
+
wt !== void 0 && (U.scale = wt);
|
|
7487
|
+
const yt = Nt(x);
|
|
7488
|
+
yt !== void 0 && (U.interaction = yt);
|
|
7489
|
+
const et = Nt(E);
|
|
7490
|
+
et !== void 0 && (U.annotations = et);
|
|
7491
|
+
const ft = Nt(k);
|
|
7492
|
+
ft !== void 0 && (U.axis = ft);
|
|
7493
|
+
const ct = Nt(M);
|
|
7494
|
+
ct !== void 0 && (U.scrollbar = ct);
|
|
7495
|
+
const _t = Nt(B);
|
|
7496
|
+
_t !== void 0 && (U.slider = _t);
|
|
7497
|
+
const bt = Nt(H);
|
|
7498
|
+
bt !== void 0 && (U.theme = bt);
|
|
7499
|
+
const jt = Nt(P);
|
|
7500
|
+
return jt !== void 0 && (U.state = jt), /* @__PURE__ */ b(e, { ...U });
|
|
7492
7501
|
};
|
|
7493
7502
|
return a.displayName = `withBaseChart(${n})`, a;
|
|
7494
7503
|
}
|
|
@@ -7612,9 +7621,9 @@ const Co = [
|
|
|
7612
7621
|
...g
|
|
7613
7622
|
};
|
|
7614
7623
|
t && (f.xField = t), n && (f.yField = n), i && (f.seriesField = i), r && (f.colorField = r), a && (f.shapeField = a), o && (f.sizeField = o), d !== void 0 && (f.stack = d === !0 || d === "true"), v !== void 0 && (f.percent = v === !0 || v === "true"), h !== void 0 && (f.symmetry = h === !0 || h === "true"), p !== void 0 && (f.diff = p === !0 || p === "true");
|
|
7615
|
-
const s =
|
|
7624
|
+
const s = Nt(c);
|
|
7616
7625
|
s !== void 0 && (f.line = s);
|
|
7617
|
-
const m =
|
|
7626
|
+
const m = Nt(l);
|
|
7618
7627
|
return m !== void 0 && (f.point = m), /* @__PURE__ */ b(Eo, { ...f });
|
|
7619
7628
|
}, Mo = It(di, {
|
|
7620
7629
|
chartType: "AndVDualAxes",
|
|
@@ -7644,9 +7653,9 @@ const Co = [
|
|
|
7644
7653
|
...o
|
|
7645
7654
|
};
|
|
7646
7655
|
console.log("[AndVDualAxes] props:", { xField: t, yField: n, children: a }), t && (c.xField = t);
|
|
7647
|
-
const l =
|
|
7656
|
+
const l = Nt(n);
|
|
7648
7657
|
l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
|
|
7649
|
-
const d =
|
|
7658
|
+
const d = Nt(a);
|
|
7650
7659
|
return d !== void 0 && (c.children = d), /* @__PURE__ */ b(Mo, { ...c });
|
|
7651
7660
|
}, $o = It(mi, {
|
|
7652
7661
|
chartType: "AndVGauge",
|
|
@@ -7702,9 +7711,9 @@ const Co = [
|
|
|
7702
7711
|
...v
|
|
7703
7712
|
};
|
|
7704
7713
|
t && (h.xField = t), n && (h.yField = n), i && (h.seriesField = i), r && (h.colorField = r), a !== void 0 && (h.stack = a === !0 || a === "true"), o !== void 0 && (h.group = o === !0 || o === "true"), c !== void 0 && (h.percent = c === !0 || c === "true");
|
|
7705
|
-
const p =
|
|
7714
|
+
const p = Nt(l);
|
|
7706
7715
|
p !== void 0 && (h.conversionTag = p);
|
|
7707
|
-
const g =
|
|
7716
|
+
const g = Nt(d);
|
|
7708
7717
|
return g !== void 0 && (h.markBackground = g), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ b(jo, { ...h });
|
|
7709
7718
|
};
|
|
7710
7719
|
export {
|
|
@@ -7805,7 +7814,7 @@ export {
|
|
|
7805
7814
|
ec as mountReactComponent,
|
|
7806
7815
|
ee as parseAction,
|
|
7807
7816
|
Se as parseArrayNotation,
|
|
7808
|
-
|
|
7817
|
+
vt as parseChangeAction,
|
|
7809
7818
|
wi as parseClickAction,
|
|
7810
7819
|
Ne as parseNestedPath,
|
|
7811
7820
|
uc as parseQueryAction,
|