@nuwatop/code-canvas-core 0.2.0 → 0.2.1
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/AndCard/index.d.ts.map +1 -1
- package/dist/index.esm.js +915 -911
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
- package/LICENSE +0 -21
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as w, jsxs as it, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as en } from "react-dom/client";
|
|
3
3
|
import { theme as Xt, ConfigProvider as Mt, Button as Zt, Input as Ne, InputNumber as Ar, Space as Ut, Select as xr, Switch as rn, DatePicker as Tr, TimePicker as nn, Radio as Me, Checkbox as ae, Rate as an, Slider as on, Cascader as cn, TreeSelect as ln, message as be, Upload as sn, Image as Qt, AutoComplete as un, Form as Ae, Transfer as fn, Segmented as dn, Modal as Cr, Tooltip as mn, Table as hn, Flex as Nr, Typography as tr, Tabs as yn, Tree as gn, Timeline as pn, Steps as vn, Statistic as We, Carousel as bn, Avatar as wn, Tag as kr, Pagination as Or, Breadcrumb as Sn, Menu as Dn, Calendar as An, Badge as _r, Masonry as xn, Alert as Tn, Drawer as Cn, Result as Nn, Card as He, Divider as cr, Dropdown as kn, Row as On, Col as _n, QRCode as En, Splitter as Re, Spin as $n, Watermark as Mn } from "antd";
|
|
4
|
-
import {
|
|
4
|
+
import { StyleProvider as Rn, createCache as jn } from "@ant-design/cssinjs";
|
|
5
5
|
import Bn from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Kn } from "zustand";
|
|
7
|
-
import { subscribeWithSelector as
|
|
8
|
-
import { immer as
|
|
9
|
-
import
|
|
7
|
+
import { subscribeWithSelector as Ln } from "zustand/middleware";
|
|
8
|
+
import { immer as zn } from "zustand/middleware/immer";
|
|
9
|
+
import zt, { useMemo as p, useCallback as K, useEffect as Ot, useState as ht, useRef as Vt, useLayoutEffect as Er, useId as Vn, Suspense as qn } from "react";
|
|
10
10
|
import * as Jt from "@ant-design/icons";
|
|
11
11
|
import { PlusOutlined as $r, UploadOutlined as Wn, MenuOutlined as Hn, MinusOutlined as Un, LeftOutlined as Mr, RightOutlined as Rr, UpOutlined as Pn, DownOutlined as jr, ApiOutlined as Yn, InboxOutlined as Jn } from "@ant-design/icons";
|
|
12
12
|
import Gn from "clsx";
|
|
@@ -18,7 +18,7 @@ const ni = () => {
|
|
|
18
18
|
Pe || (Pe = !0);
|
|
19
19
|
}, ii = (e) => {
|
|
20
20
|
let t = Ue.get(e);
|
|
21
|
-
return t || (t =
|
|
21
|
+
return t || (t = jn(), Ue.set(e, t)), t;
|
|
22
22
|
}, Ro = (e) => {
|
|
23
23
|
e && Ue.delete(e);
|
|
24
24
|
}, jo = async ({
|
|
@@ -51,7 +51,7 @@ const ni = () => {
|
|
|
51
51
|
}
|
|
52
52
|
const c = en(e);
|
|
53
53
|
we.set(e, c);
|
|
54
|
-
const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, b = !n && s && d && d.defaultView !== null, h = b ? s : window.document.head, m = b ? d : window.document, f = ii(m), v = (((x = window.__GLS_COMPS__) == null ? void 0 : x.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (S) => /* @__PURE__ */ w(
|
|
54
|
+
const s = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, b = !n && s && d && d.defaultView !== null, h = b ? s : window.document.head, m = b ? d : window.document, f = ii(m), v = (((x = window.__GLS_COMPS__) == null ? void 0 : x.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (S) => /* @__PURE__ */ w(Rn, { cache: f, container: h, hashPriority: "high", children: /* @__PURE__ */ w(
|
|
55
55
|
Mt,
|
|
56
56
|
{
|
|
57
57
|
locale: Bn,
|
|
@@ -143,7 +143,7 @@ function ai(e, t, r) {
|
|
|
143
143
|
const a = t[t.length - 1];
|
|
144
144
|
return n[a.key] = r, i;
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function tt(e, t) {
|
|
147
147
|
if (t)
|
|
148
148
|
return e ? `${e}_${t}` : t;
|
|
149
149
|
}
|
|
@@ -157,8 +157,8 @@ const lr = {
|
|
|
157
157
|
propsStore: {},
|
|
158
158
|
validateStore: {}
|
|
159
159
|
}, k = Kn()(
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
Ln(
|
|
161
|
+
zn((e, t) => ({
|
|
162
162
|
...lr,
|
|
163
163
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
164
164
|
setDataSet: (r, i, n, a = !0) => e((o) => {
|
|
@@ -263,7 +263,7 @@ function Ko(e) {
|
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Lo(e) {
|
|
267
267
|
const t = k((r) => r.setDataSetBatch);
|
|
268
268
|
return {
|
|
269
269
|
get value() {
|
|
@@ -274,7 +274,7 @@ function zo(e) {
|
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function zo() {
|
|
278
278
|
return k((e) => e.addCommand);
|
|
279
279
|
}
|
|
280
280
|
function Vo() {
|
|
@@ -383,7 +383,7 @@ function li(e, t = {}) {
|
|
|
383
383
|
function Uo(e, t = {}) {
|
|
384
384
|
return er(e, null, t);
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function F(e, t) {
|
|
387
387
|
return {
|
|
388
388
|
actionName: e,
|
|
389
389
|
arg: t,
|
|
@@ -703,7 +703,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
703
703
|
o.test(r) || n.push(Bt(a.messages.pattern.mismatch, t.fullField, r, t.pattern));
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
},
|
|
706
|
+
}, lt = {
|
|
707
707
|
required: Kr,
|
|
708
708
|
whitespace: bi,
|
|
709
709
|
type: Si,
|
|
@@ -715,7 +715,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
715
715
|
if (c) {
|
|
716
716
|
if (At(r, "string") && !t.required)
|
|
717
717
|
return i();
|
|
718
|
-
|
|
718
|
+
lt.required(t, r, n, o, a, "string"), At(r, "string") || (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a), lt.pattern(t, r, n, o, a), t.whitespace === !0 && lt.whitespace(t, r, n, o, a));
|
|
719
719
|
}
|
|
720
720
|
i(o);
|
|
721
721
|
}, Ci = function(t, r, i, n, a) {
|
|
@@ -723,7 +723,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
723
723
|
if (c) {
|
|
724
724
|
if (At(r) && !t.required)
|
|
725
725
|
return i();
|
|
726
|
-
|
|
726
|
+
lt.required(t, r, n, o, a), r !== void 0 && lt.type(t, r, n, o, a);
|
|
727
727
|
}
|
|
728
728
|
i(o);
|
|
729
729
|
}, Ni = function(t, r, i, n, a) {
|
|
@@ -731,7 +731,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
731
731
|
if (c) {
|
|
732
732
|
if (r === "" && (r = void 0), At(r) && !t.required)
|
|
733
733
|
return i();
|
|
734
|
-
|
|
734
|
+
lt.required(t, r, n, o, a), r !== void 0 && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
|
|
735
735
|
}
|
|
736
736
|
i(o);
|
|
737
737
|
}, ki = function(t, r, i, n, a) {
|
|
@@ -739,7 +739,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
739
739
|
if (c) {
|
|
740
740
|
if (At(r) && !t.required)
|
|
741
741
|
return i();
|
|
742
|
-
|
|
742
|
+
lt.required(t, r, n, o, a), r !== void 0 && lt.type(t, r, n, o, a);
|
|
743
743
|
}
|
|
744
744
|
i(o);
|
|
745
745
|
}, Oi = function(t, r, i, n, a) {
|
|
@@ -747,7 +747,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
747
747
|
if (c) {
|
|
748
748
|
if (At(r) && !t.required)
|
|
749
749
|
return i();
|
|
750
|
-
|
|
750
|
+
lt.required(t, r, n, o, a), At(r) || lt.type(t, r, n, o, a);
|
|
751
751
|
}
|
|
752
752
|
i(o);
|
|
753
753
|
}, _i = function(t, r, i, n, a) {
|
|
@@ -755,7 +755,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
755
755
|
if (c) {
|
|
756
756
|
if (At(r) && !t.required)
|
|
757
757
|
return i();
|
|
758
|
-
|
|
758
|
+
lt.required(t, r, n, o, a), r !== void 0 && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
|
|
759
759
|
}
|
|
760
760
|
i(o);
|
|
761
761
|
}, Ei = function(t, r, i, n, a) {
|
|
@@ -763,7 +763,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
763
763
|
if (c) {
|
|
764
764
|
if (At(r) && !t.required)
|
|
765
765
|
return i();
|
|
766
|
-
|
|
766
|
+
lt.required(t, r, n, o, a), r !== void 0 && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
|
|
767
767
|
}
|
|
768
768
|
i(o);
|
|
769
769
|
}, $i = function(t, r, i, n, a) {
|
|
@@ -771,7 +771,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
771
771
|
if (c) {
|
|
772
772
|
if (r == null && !t.required)
|
|
773
773
|
return i();
|
|
774
|
-
|
|
774
|
+
lt.required(t, r, n, o, a, "array"), r != null && (lt.type(t, r, n, o, a), lt.range(t, r, n, o, a));
|
|
775
775
|
}
|
|
776
776
|
i(o);
|
|
777
777
|
}, Mi = function(t, r, i, n, a) {
|
|
@@ -779,7 +779,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
779
779
|
if (c) {
|
|
780
780
|
if (At(r) && !t.required)
|
|
781
781
|
return i();
|
|
782
|
-
|
|
782
|
+
lt.required(t, r, n, o, a), r !== void 0 && lt.type(t, r, n, o, a);
|
|
783
783
|
}
|
|
784
784
|
i(o);
|
|
785
785
|
}, Ri = "enum", ji = function(t, r, i, n, a) {
|
|
@@ -787,7 +787,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
787
787
|
if (c) {
|
|
788
788
|
if (At(r) && !t.required)
|
|
789
789
|
return i();
|
|
790
|
-
|
|
790
|
+
lt.required(t, r, n, o, a), r !== void 0 && lt[Ri](t, r, n, o, a);
|
|
791
791
|
}
|
|
792
792
|
i(o);
|
|
793
793
|
}, Bi = function(t, r, i, n, a) {
|
|
@@ -795,7 +795,7 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
795
795
|
if (c) {
|
|
796
796
|
if (At(r, "string") && !t.required)
|
|
797
797
|
return i();
|
|
798
|
-
|
|
798
|
+
lt.required(t, r, n, o, a), At(r, "string") || lt.pattern(t, r, n, o, a);
|
|
799
799
|
}
|
|
800
800
|
i(o);
|
|
801
801
|
}, Ki = function(t, r, i, n, a) {
|
|
@@ -803,29 +803,29 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
803
803
|
if (c) {
|
|
804
804
|
if (At(r, "date") && !t.required)
|
|
805
805
|
return i();
|
|
806
|
-
if (
|
|
806
|
+
if (lt.required(t, r, n, o, a), !At(r, "date")) {
|
|
807
807
|
var s;
|
|
808
|
-
r instanceof Date ? s = r : s = new Date(r),
|
|
808
|
+
r instanceof Date ? s = r : s = new Date(r), lt.type(t, s, n, o, a), s && lt.range(t, s.getTime(), n, o, a);
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
i(o);
|
|
812
|
-
},
|
|
812
|
+
}, Li = function(t, r, i, n, a) {
|
|
813
813
|
var o = [], c = Array.isArray(r) ? "array" : typeof r;
|
|
814
|
-
|
|
814
|
+
lt.required(t, r, n, o, a, c), i(o);
|
|
815
815
|
}, Ke = function(t, r, i, n, a) {
|
|
816
816
|
var o = t.type, c = [], s = t.required || !t.required && n.hasOwnProperty(t.field);
|
|
817
817
|
if (s) {
|
|
818
818
|
if (At(r, o) && !t.required)
|
|
819
819
|
return i();
|
|
820
|
-
|
|
820
|
+
lt.required(t, r, n, c, a, o), At(r, o) || lt.type(t, r, n, c, a);
|
|
821
821
|
}
|
|
822
822
|
i(c);
|
|
823
|
-
},
|
|
823
|
+
}, zi = function(t, r, i, n, a) {
|
|
824
824
|
var o = [], c = t.required || !t.required && n.hasOwnProperty(t.field);
|
|
825
825
|
if (c) {
|
|
826
826
|
if (At(r) && !t.required)
|
|
827
827
|
return i();
|
|
828
|
-
|
|
828
|
+
lt.required(t, r, n, o, a);
|
|
829
829
|
}
|
|
830
830
|
i(o);
|
|
831
831
|
}, de = {
|
|
@@ -844,8 +844,8 @@ var Kr = function(t, r, i, n, a, o) {
|
|
|
844
844
|
url: Ke,
|
|
845
845
|
hex: Ke,
|
|
846
846
|
email: Ke,
|
|
847
|
-
required:
|
|
848
|
-
any:
|
|
847
|
+
required: Li,
|
|
848
|
+
any: zi
|
|
849
849
|
};
|
|
850
850
|
function Qe() {
|
|
851
851
|
return {
|
|
@@ -985,11 +985,11 @@ var Xe = Qe(), he = /* @__PURE__ */ function() {
|
|
|
985
985
|
}), N = te({}, N, l.rule.fields);
|
|
986
986
|
var O = {};
|
|
987
987
|
Object.keys(N).forEach(function(E) {
|
|
988
|
-
var _ = N[E],
|
|
989
|
-
O[E] =
|
|
988
|
+
var _ = N[E], R = Array.isArray(_) ? _ : [_];
|
|
989
|
+
O[E] = R.map(A.bind(null, E));
|
|
990
990
|
});
|
|
991
|
-
var
|
|
992
|
-
|
|
991
|
+
var $ = new e(O);
|
|
992
|
+
$.messages(s.messages), l.rule.options && (l.rule.options.messages = s.messages, l.rule.options.error = s.error), $.validate(l.value, l.rule.options || s, function(E) {
|
|
993
993
|
var _ = [];
|
|
994
994
|
C && C.length && _.push.apply(_, C), E && E.length && _.push.apply(_, E), v(_.length ? _ : null);
|
|
995
995
|
});
|
|
@@ -1044,7 +1044,7 @@ function Vi(e) {
|
|
|
1044
1044
|
return null;
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Lr(e) {
|
|
1048
1048
|
return !e || !Array.isArray(e) ? [] : e.map((t) => {
|
|
1049
1049
|
const r = { ...t };
|
|
1050
1050
|
if (r.pattern && typeof r.pattern == "string" && r.pattern.trim()) {
|
|
@@ -1055,7 +1055,7 @@ function zr(e) {
|
|
|
1055
1055
|
});
|
|
1056
1056
|
}
|
|
1057
1057
|
const hr = "_v";
|
|
1058
|
-
function
|
|
1058
|
+
function zr(e, t, r, i) {
|
|
1059
1059
|
if (!(e != null && e.length)) {
|
|
1060
1060
|
r();
|
|
1061
1061
|
return;
|
|
@@ -1082,10 +1082,10 @@ function Rt(e) {
|
|
|
1082
1082
|
return n && a ? ((D = S.propsStore[`${n}_props`]) == null ? void 0 : D[a]) ?? null : null;
|
|
1083
1083
|
}
|
|
1084
1084
|
), f = k((S) => S.getDataSet), y = p(
|
|
1085
|
-
() =>
|
|
1085
|
+
() => tt(n, r),
|
|
1086
1086
|
[n, r]
|
|
1087
1087
|
), l = p(
|
|
1088
|
-
() => r ?
|
|
1088
|
+
() => r ? tt(n, `${r}_validateAction`) : void 0,
|
|
1089
1089
|
[n, r]
|
|
1090
1090
|
), v = k(
|
|
1091
1091
|
(S) => {
|
|
@@ -1103,8 +1103,8 @@ function Rt(e) {
|
|
|
1103
1103
|
[n, r, i, a, c, s, d]
|
|
1104
1104
|
), T = K(
|
|
1105
1105
|
(S) => {
|
|
1106
|
-
const D =
|
|
1107
|
-
|
|
1106
|
+
const D = Lr(t || []);
|
|
1107
|
+
zr(
|
|
1108
1108
|
D,
|
|
1109
1109
|
S,
|
|
1110
1110
|
() => u(""),
|
|
@@ -1138,39 +1138,39 @@ function re(e, t) {
|
|
|
1138
1138
|
if (Array.isArray(e))
|
|
1139
1139
|
return e.find((r) => Wi(r.value, t));
|
|
1140
1140
|
}
|
|
1141
|
-
let
|
|
1141
|
+
let Lt = {};
|
|
1142
1142
|
function Po(e) {
|
|
1143
|
-
|
|
1143
|
+
Lt = { ...Lt, ...e };
|
|
1144
1144
|
}
|
|
1145
1145
|
function Yt() {
|
|
1146
|
-
return
|
|
1146
|
+
return Lt;
|
|
1147
1147
|
}
|
|
1148
1148
|
async function ee(e) {
|
|
1149
|
-
if (
|
|
1149
|
+
if (Lt.request) {
|
|
1150
1150
|
const t = {
|
|
1151
1151
|
...e,
|
|
1152
|
-
baseURL: e.baseURL ||
|
|
1152
|
+
baseURL: e.baseURL || Lt.baseURL
|
|
1153
1153
|
};
|
|
1154
|
-
return
|
|
1154
|
+
return Lt.request(t);
|
|
1155
1155
|
}
|
|
1156
1156
|
throw new Error(
|
|
1157
1157
|
"Request handler not configured. Please call setCoreConfig() first."
|
|
1158
1158
|
);
|
|
1159
1159
|
}
|
|
1160
1160
|
async function Vr(e, t) {
|
|
1161
|
-
if (
|
|
1162
|
-
return
|
|
1161
|
+
if (Lt.upload)
|
|
1162
|
+
return Lt.upload(e, t);
|
|
1163
1163
|
throw new Error(
|
|
1164
1164
|
"Upload handler not configured. Please call setCoreConfig() first."
|
|
1165
1165
|
);
|
|
1166
1166
|
}
|
|
1167
1167
|
async function rr(e) {
|
|
1168
|
-
return
|
|
1168
|
+
return Lt.getDictOptions ? Lt.getDictOptions(e) : (console.warn(
|
|
1169
1169
|
"Dict service not configured. Please call setCoreConfig() with getDictOptions."
|
|
1170
1170
|
), []);
|
|
1171
1171
|
}
|
|
1172
1172
|
function Ze() {
|
|
1173
|
-
return
|
|
1173
|
+
return Lt.getAccessToken ? Lt.getAccessToken() : null;
|
|
1174
1174
|
}
|
|
1175
1175
|
const Yo = {
|
|
1176
1176
|
post: (e, t, r) => ee({ url: e, data: t, method: "POST", ...r }),
|
|
@@ -1208,7 +1208,7 @@ function Hi() {
|
|
|
1208
1208
|
};
|
|
1209
1209
|
}
|
|
1210
1210
|
function ye(e) {
|
|
1211
|
-
const [t, r] =
|
|
1211
|
+
const [t, r] = ht([]), [i, n] = ht(!1), [a, o] = ht(null);
|
|
1212
1212
|
return Ot(() => {
|
|
1213
1213
|
if (!e) {
|
|
1214
1214
|
r([]);
|
|
@@ -1227,7 +1227,7 @@ function ye(e) {
|
|
|
1227
1227
|
}, [e]), { options: t, loading: i, error: a };
|
|
1228
1228
|
}
|
|
1229
1229
|
function nr(e, t) {
|
|
1230
|
-
const [r, i] =
|
|
1230
|
+
const [r, i] = ht([]), [n, a] = ht(!1), [o, c] = ht(null), {
|
|
1231
1231
|
labelKey: s = "label",
|
|
1232
1232
|
valueKey: d = "value",
|
|
1233
1233
|
immediate: b = !0,
|
|
@@ -1635,7 +1635,7 @@ const Xo = ({
|
|
|
1635
1635
|
dataSet: d,
|
|
1636
1636
|
dataSetField: b,
|
|
1637
1637
|
...y
|
|
1638
|
-
}), O =
|
|
1638
|
+
}), O = F(C, N);
|
|
1639
1639
|
m(n, O);
|
|
1640
1640
|
}
|
|
1641
1641
|
},
|
|
@@ -1691,76 +1691,76 @@ const Hr = (e) => {
|
|
|
1691
1691
|
addonAfter: T,
|
|
1692
1692
|
addonBefore: A,
|
|
1693
1693
|
...x
|
|
1694
|
-
} = e, S = Vt(""), D = Vt(null), g = k((
|
|
1695
|
-
() =>
|
|
1694
|
+
} = e, S = Vt(""), D = Vt(null), g = k((Z) => Z.addCommand), C = k((Z) => Z.getDataSet), N = k((Z) => Z.setDataSet), O = k((Z) => Z.getProps), $ = k((Z) => Z.setProps), E = k((Z) => Z.setValidateResult), _ = p(
|
|
1695
|
+
() => tt(r, n),
|
|
1696
1696
|
[r, n]
|
|
1697
|
-
),
|
|
1698
|
-
(
|
|
1697
|
+
), R = k(
|
|
1698
|
+
(Z) => {
|
|
1699
1699
|
var J;
|
|
1700
|
-
return r && t ? ((J =
|
|
1700
|
+
return r && t ? ((J = Z.propsStore[`${r}_props`]) == null ? void 0 : J[t]) ?? null : null;
|
|
1701
1701
|
}
|
|
1702
|
-
),
|
|
1702
|
+
), W = p(
|
|
1703
1703
|
() => fe(r, n),
|
|
1704
1704
|
[r, n]
|
|
1705
1705
|
), U = k(
|
|
1706
|
-
(
|
|
1706
|
+
(Z) => {
|
|
1707
1707
|
var J;
|
|
1708
|
-
return
|
|
1708
|
+
return W && a ? ((J = Z.validateStore[W]) == null ? void 0 : J[a]) ?? "" : "";
|
|
1709
1709
|
}
|
|
1710
|
-
),
|
|
1711
|
-
(
|
|
1712
|
-
),
|
|
1713
|
-
() => n ?
|
|
1710
|
+
), q = k(
|
|
1711
|
+
(Z) => _ && a ? Z.getDataSet(_, a) : void 0
|
|
1712
|
+
), L = p(
|
|
1713
|
+
() => n ? tt(r, `${n}_validateAction`) : void 0,
|
|
1714
1714
|
[r, n]
|
|
1715
|
-
),
|
|
1716
|
-
(
|
|
1715
|
+
), M = k(
|
|
1716
|
+
(Z) => {
|
|
1717
1717
|
var J;
|
|
1718
|
-
return
|
|
1719
|
-
}
|
|
1720
|
-
), P = p(() =>
|
|
1721
|
-
() => ga(x,
|
|
1722
|
-
[x,
|
|
1723
|
-
),
|
|
1724
|
-
(
|
|
1725
|
-
const J =
|
|
1718
|
+
return L ? (J = Z.dataSets[L]) == null ? void 0 : J.validate : void 0;
|
|
1719
|
+
}
|
|
1720
|
+
), P = p(() => q !== void 0 ? q : (R == null ? void 0 : R.value) !== void 0 ? R.value : s, [q, R == null ? void 0 : R.value, s]), j = p(
|
|
1721
|
+
() => ga(x, R ?? null, { develop: i }),
|
|
1722
|
+
[x, R, i]
|
|
1723
|
+
), B = K(
|
|
1724
|
+
(Z) => {
|
|
1725
|
+
const J = Z ?? "";
|
|
1726
1726
|
if (r && n && a && E(r, n, a, J), r && t) {
|
|
1727
1727
|
const dt = O(r, t) || {};
|
|
1728
|
-
|
|
1728
|
+
$(r, t, { ...dt, validateStatus: J ? "error" : void 0, help: J });
|
|
1729
1729
|
}
|
|
1730
1730
|
},
|
|
1731
|
-
[r, n, a, t, E, O,
|
|
1732
|
-
),
|
|
1733
|
-
(
|
|
1734
|
-
const J =
|
|
1735
|
-
|
|
1731
|
+
[r, n, a, t, E, O, $]
|
|
1732
|
+
), V = K(
|
|
1733
|
+
(Z) => {
|
|
1734
|
+
const J = Lr(h || []);
|
|
1735
|
+
zr(
|
|
1736
1736
|
J,
|
|
1737
|
-
|
|
1738
|
-
() =>
|
|
1737
|
+
Z,
|
|
1738
|
+
() => B(""),
|
|
1739
1739
|
(dt) => {
|
|
1740
|
-
var
|
|
1741
|
-
return
|
|
1740
|
+
var z;
|
|
1741
|
+
return B(((z = dt[0]) == null ? void 0 : z.message) ?? "");
|
|
1742
1742
|
}
|
|
1743
1743
|
);
|
|
1744
1744
|
},
|
|
1745
|
-
[h,
|
|
1745
|
+
[h, B]
|
|
1746
1746
|
), X = K(
|
|
1747
|
-
(
|
|
1748
|
-
const J =
|
|
1747
|
+
(Z) => {
|
|
1748
|
+
const J = Z.target.value;
|
|
1749
1749
|
if (S.current = J, c) {
|
|
1750
|
-
c(J,
|
|
1750
|
+
c(J, Z);
|
|
1751
1751
|
return;
|
|
1752
1752
|
}
|
|
1753
1753
|
if (_ && a && N(_, a, J), o && r) {
|
|
1754
|
-
const { actionName: dt, arg:
|
|
1754
|
+
const { actionName: dt, arg: z } = Nt(o, J, {
|
|
1755
1755
|
id: t,
|
|
1756
1756
|
dataSet: n,
|
|
1757
1757
|
dataSetField: a,
|
|
1758
|
-
...
|
|
1758
|
+
...j
|
|
1759
1759
|
});
|
|
1760
|
-
g(r,
|
|
1760
|
+
g(r, F(dt, z));
|
|
1761
1761
|
}
|
|
1762
1762
|
m && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
1763
|
-
D.current = null,
|
|
1763
|
+
D.current = null, V(J);
|
|
1764
1764
|
}, ha));
|
|
1765
1765
|
},
|
|
1766
1766
|
[
|
|
@@ -1771,34 +1771,34 @@ const Hr = (e) => {
|
|
|
1771
1771
|
o,
|
|
1772
1772
|
r,
|
|
1773
1773
|
t,
|
|
1774
|
-
|
|
1774
|
+
j,
|
|
1775
1775
|
g,
|
|
1776
1776
|
m,
|
|
1777
|
-
|
|
1777
|
+
V
|
|
1778
1778
|
]
|
|
1779
1779
|
), rt = K(() => {
|
|
1780
1780
|
if (!f) return;
|
|
1781
|
-
const
|
|
1782
|
-
|
|
1783
|
-
}, [f, _, a, C,
|
|
1781
|
+
const Z = _ && a ? String(C(_, a) ?? "") : S.current;
|
|
1782
|
+
V(Z);
|
|
1783
|
+
}, [f, _, a, C, V]);
|
|
1784
1784
|
Ot(
|
|
1785
1785
|
() => () => {
|
|
1786
1786
|
D.current && clearTimeout(D.current);
|
|
1787
1787
|
},
|
|
1788
1788
|
[]
|
|
1789
1789
|
), Ot(() => {
|
|
1790
|
-
if (
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
}, [
|
|
1794
|
-
const ft = p(() => ya(b), [b]),
|
|
1790
|
+
if (M == null || !_ || !a) return;
|
|
1791
|
+
const Z = String(C(_, a) ?? "");
|
|
1792
|
+
V(Z);
|
|
1793
|
+
}, [M, _, a, C, V]);
|
|
1794
|
+
const ft = p(() => ya(b), [b]), st = p(
|
|
1795
1795
|
() => ft ? { components: { Input: ft } } : void 0,
|
|
1796
1796
|
[ft]
|
|
1797
|
-
), et = i ? void 0 : r && n && a ? U : (
|
|
1797
|
+
), et = i ? void 0 : r && n && a ? U : (R == null ? void 0 : R.help) ?? "", ot = /* @__PURE__ */ it(Ce, { children: [
|
|
1798
1798
|
/* @__PURE__ */ w(
|
|
1799
1799
|
Ne,
|
|
1800
1800
|
{
|
|
1801
|
-
...
|
|
1801
|
+
...j,
|
|
1802
1802
|
value: P,
|
|
1803
1803
|
onChange: X,
|
|
1804
1804
|
onBlur: rt,
|
|
@@ -1808,10 +1808,10 @@ const Hr = (e) => {
|
|
|
1808
1808
|
),
|
|
1809
1809
|
et && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: et })
|
|
1810
1810
|
] });
|
|
1811
|
-
return
|
|
1811
|
+
return st ? /* @__PURE__ */ w(Mt, { theme: st, children: ot }) : ot;
|
|
1812
1812
|
};
|
|
1813
1813
|
Hr.displayName = "AndInput";
|
|
1814
|
-
const Zo =
|
|
1814
|
+
const Zo = zt.memo(Hr), pa = 200, Fo = ({
|
|
1815
1815
|
id: e,
|
|
1816
1816
|
sessionId: t,
|
|
1817
1817
|
develop: r,
|
|
@@ -1828,16 +1828,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1828
1828
|
value: f,
|
|
1829
1829
|
...y
|
|
1830
1830
|
}) => {
|
|
1831
|
-
const l = k((
|
|
1832
|
-
() =>
|
|
1831
|
+
const l = k((M) => M.addCommand), v = k((M) => M.setDataSet), u = Vt(null), T = p(
|
|
1832
|
+
() => tt(t, i),
|
|
1833
1833
|
[t, i]
|
|
1834
1834
|
), A = k(
|
|
1835
|
-
(
|
|
1835
|
+
(M) => {
|
|
1836
1836
|
var P;
|
|
1837
|
-
return t && e ? ((P =
|
|
1837
|
+
return t && e ? ((P = M.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
|
|
1838
1838
|
}
|
|
1839
1839
|
), x = k(
|
|
1840
|
-
(
|
|
1840
|
+
(M) => T && n ? M.getDataSet(T, n) : void 0
|
|
1841
1841
|
), { validate: S, help: D } = Rt({
|
|
1842
1842
|
rules: a,
|
|
1843
1843
|
dataSet: i,
|
|
@@ -1846,28 +1846,28 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1846
1846
|
id: e,
|
|
1847
1847
|
develop: r
|
|
1848
1848
|
}), g = p(() => x !== void 0 ? x : (A == null ? void 0 : A.value) !== void 0 ? A.value : f, [x, A == null ? void 0 : A.value, f]), C = K(
|
|
1849
|
-
(
|
|
1850
|
-
|
|
1849
|
+
(M, P, j) => {
|
|
1850
|
+
M && t && l(t, F(M, { type: P, value: j }));
|
|
1851
1851
|
},
|
|
1852
1852
|
[t, l]
|
|
1853
1853
|
), N = K(
|
|
1854
|
-
(
|
|
1854
|
+
(M) => {
|
|
1855
1855
|
if (h) {
|
|
1856
|
-
h(
|
|
1856
|
+
h(M);
|
|
1857
1857
|
return;
|
|
1858
1858
|
}
|
|
1859
|
-
T && n && v(T, n,
|
|
1860
|
-
u.current = null, S(
|
|
1861
|
-
}, pa)), C(s, "change",
|
|
1859
|
+
T && n && v(T, n, M), c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
1860
|
+
u.current = null, S(M);
|
|
1861
|
+
}, pa)), C(s, "change", M);
|
|
1862
1862
|
},
|
|
1863
1863
|
[h, T, n, v, c, S, s, C]
|
|
1864
1864
|
), O = K(() => {
|
|
1865
1865
|
o && S(g);
|
|
1866
|
-
}, [o, S, g]),
|
|
1866
|
+
}, [o, S, g]), $ = K(() => {
|
|
1867
1867
|
C(d, "pressEnter", g);
|
|
1868
1868
|
}, [d, C, g]), E = K(
|
|
1869
|
-
(
|
|
1870
|
-
C(b, "step", { value:
|
|
1869
|
+
(M, P) => {
|
|
1870
|
+
C(b, "step", { value: M, type: P.type });
|
|
1871
1871
|
},
|
|
1872
1872
|
[b, C]
|
|
1873
1873
|
);
|
|
@@ -1882,27 +1882,27 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1882
1882
|
const _ = p(
|
|
1883
1883
|
() => Gt(y, A ?? void 0),
|
|
1884
1884
|
[y, A]
|
|
1885
|
-
), { addonBefore:
|
|
1885
|
+
), { addonBefore: R, addonAfter: W, style: U, ...q } = _, L = /* @__PURE__ */ w(
|
|
1886
1886
|
Ar,
|
|
1887
1887
|
{
|
|
1888
|
-
...
|
|
1889
|
-
disabled: r ? !1 :
|
|
1890
|
-
readOnly: r ? !0 :
|
|
1891
|
-
className: Gn(
|
|
1892
|
-
"ant-input-number-disabled": r &&
|
|
1888
|
+
...q,
|
|
1889
|
+
disabled: r ? !1 : q.disabled,
|
|
1890
|
+
readOnly: r ? !0 : q.readOnly,
|
|
1891
|
+
className: Gn(q.className, {
|
|
1892
|
+
"ant-input-number-disabled": r && q.disabled
|
|
1893
1893
|
}),
|
|
1894
1894
|
value: g,
|
|
1895
1895
|
onChange: N,
|
|
1896
1896
|
onBlur: O,
|
|
1897
|
-
onPressEnter:
|
|
1897
|
+
onPressEnter: $,
|
|
1898
1898
|
onStep: E,
|
|
1899
1899
|
status: D ? "error" : void 0,
|
|
1900
1900
|
style: { width: "100%", ...U }
|
|
1901
1901
|
}
|
|
1902
1902
|
);
|
|
1903
1903
|
return /* @__PURE__ */ it("div", { style: { width: "100%" }, children: [
|
|
1904
|
-
|
|
1905
|
-
|
|
1904
|
+
R || W ? /* @__PURE__ */ it(Ut.Compact, { style: { width: "100%" }, children: [
|
|
1905
|
+
R && /* @__PURE__ */ w(
|
|
1906
1906
|
"div",
|
|
1907
1907
|
{
|
|
1908
1908
|
style: {
|
|
@@ -1916,11 +1916,11 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1916
1916
|
color: "rgba(0, 0, 0, 0.88)",
|
|
1917
1917
|
fontSize: 14
|
|
1918
1918
|
},
|
|
1919
|
-
children:
|
|
1919
|
+
children: R
|
|
1920
1920
|
}
|
|
1921
1921
|
),
|
|
1922
|
-
|
|
1923
|
-
|
|
1922
|
+
L,
|
|
1923
|
+
W && /* @__PURE__ */ w(
|
|
1924
1924
|
"div",
|
|
1925
1925
|
{
|
|
1926
1926
|
style: {
|
|
@@ -1934,10 +1934,10 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1934
1934
|
color: "rgba(0, 0, 0, 0.88)",
|
|
1935
1935
|
fontSize: 14
|
|
1936
1936
|
},
|
|
1937
|
-
children:
|
|
1937
|
+
children: W
|
|
1938
1938
|
}
|
|
1939
1939
|
)
|
|
1940
|
-
] }) :
|
|
1940
|
+
] }) : L,
|
|
1941
1941
|
D && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
1942
1942
|
] });
|
|
1943
1943
|
}, { TextArea: va } = Ne, ba = 200, Io = ({
|
|
@@ -1957,12 +1957,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1957
1957
|
...f
|
|
1958
1958
|
}) => {
|
|
1959
1959
|
const y = k((O) => O.addCommand), l = k((O) => O.setDataSet), v = Vt(null), u = p(
|
|
1960
|
-
() =>
|
|
1960
|
+
() => tt(t, i),
|
|
1961
1961
|
[t, i]
|
|
1962
1962
|
), T = k(
|
|
1963
1963
|
(O) => {
|
|
1964
|
-
var
|
|
1965
|
-
return t && e ? ((
|
|
1964
|
+
var $;
|
|
1965
|
+
return t && e ? (($ = O.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
1966
1966
|
}
|
|
1967
1967
|
), A = k(
|
|
1968
1968
|
(O) => u && n ? O.getDataSet(u, n) : void 0
|
|
@@ -1975,21 +1975,21 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
1975
1975
|
develop: r
|
|
1976
1976
|
}), D = p(() => A !== void 0 ? A : (T == null ? void 0 : T.value) !== void 0 ? T.value : h ?? m, [A, T == null ? void 0 : T.value, h, m]), g = K(
|
|
1977
1977
|
(O) => {
|
|
1978
|
-
const
|
|
1978
|
+
const $ = O.target.value;
|
|
1979
1979
|
if (b) {
|
|
1980
|
-
b(
|
|
1980
|
+
b($, O);
|
|
1981
1981
|
return;
|
|
1982
1982
|
}
|
|
1983
|
-
if (u && n && l(u, n,
|
|
1984
|
-
const { actionName: E, arg: _ } = Nt(s,
|
|
1983
|
+
if (u && n && l(u, n, $), s && t) {
|
|
1984
|
+
const { actionName: E, arg: _ } = Nt(s, $, {
|
|
1985
1985
|
id: e,
|
|
1986
1986
|
dataSet: i,
|
|
1987
1987
|
dataSetField: n
|
|
1988
1988
|
});
|
|
1989
|
-
y(t,
|
|
1989
|
+
y(t, F(E, _));
|
|
1990
1990
|
}
|
|
1991
1991
|
c && (v.current && clearTimeout(v.current), v.current = setTimeout(() => {
|
|
1992
|
-
v.current = null, x(
|
|
1992
|
+
v.current = null, x($);
|
|
1993
1993
|
}, ba));
|
|
1994
1994
|
},
|
|
1995
1995
|
[
|
|
@@ -2013,12 +2013,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2013
2013
|
return;
|
|
2014
2014
|
}
|
|
2015
2015
|
if (d && t && !O.shiftKey) {
|
|
2016
|
-
const { actionName:
|
|
2016
|
+
const { actionName: $, arg: E } = Nt(d, D, {
|
|
2017
2017
|
id: e,
|
|
2018
2018
|
dataSet: i,
|
|
2019
2019
|
dataSetField: n
|
|
2020
2020
|
});
|
|
2021
|
-
y(t,
|
|
2021
|
+
y(t, F($, E));
|
|
2022
2022
|
}
|
|
2023
2023
|
},
|
|
2024
2024
|
[f.onPressEnter, d, t, D, e, i, n, y]
|
|
@@ -2059,7 +2059,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2059
2059
|
...m
|
|
2060
2060
|
}) => {
|
|
2061
2061
|
const f = k((C) => C.addCommand), y = k((C) => C.setDataSet), l = Vt(null), v = p(
|
|
2062
|
-
() =>
|
|
2062
|
+
() => tt(t, i),
|
|
2063
2063
|
[t, i]
|
|
2064
2064
|
), u = k(
|
|
2065
2065
|
(C) => {
|
|
@@ -2083,12 +2083,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2083
2083
|
return;
|
|
2084
2084
|
}
|
|
2085
2085
|
if (v && n && y(v, n, N), s && t) {
|
|
2086
|
-
const { actionName: O, arg:
|
|
2086
|
+
const { actionName: O, arg: $ } = Nt(s, N, {
|
|
2087
2087
|
id: e,
|
|
2088
2088
|
dataSet: i,
|
|
2089
2089
|
dataSetField: n
|
|
2090
2090
|
});
|
|
2091
|
-
f(t,
|
|
2091
|
+
f(t, F(O, $));
|
|
2092
2092
|
}
|
|
2093
2093
|
c && (l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
2094
2094
|
l.current = null, A(N);
|
|
@@ -2143,7 +2143,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2143
2143
|
...h
|
|
2144
2144
|
}) => {
|
|
2145
2145
|
const m = k((x) => x.addCommand), f = k((x) => x.getDataSet), y = k((x) => x.setDataSet), l = p(
|
|
2146
|
-
() =>
|
|
2146
|
+
() => tt(t, i),
|
|
2147
2147
|
[t, i]
|
|
2148
2148
|
), v = p(() => {
|
|
2149
2149
|
if (l && n) return f(l, n);
|
|
@@ -2155,14 +2155,14 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2155
2155
|
}
|
|
2156
2156
|
if (l && n && y(l, n, S), a && t) {
|
|
2157
2157
|
const { actionName: D, arg: g } = Nt(a, S, { id: e, dataSet: i, dataSetField: n });
|
|
2158
|
-
m(t,
|
|
2158
|
+
m(t, F(D, g));
|
|
2159
2159
|
}
|
|
2160
2160
|
}, [c, l, n, y, a, t, e, m]), A = K((x) => {
|
|
2161
2161
|
if (s) {
|
|
2162
2162
|
s(x);
|
|
2163
2163
|
return;
|
|
2164
2164
|
}
|
|
2165
|
-
o && t && m(t,
|
|
2165
|
+
o && t && m(t, F(o, x));
|
|
2166
2166
|
}, [s, o, t, m]);
|
|
2167
2167
|
return /* @__PURE__ */ w(Da, { ...h, disabled: r ? !1 : h.disabled, value: u, onChange: T, onSearch: A });
|
|
2168
2168
|
}, Aa = 200, rc = ({
|
|
@@ -2192,65 +2192,65 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2192
2192
|
dropdownMatchSelectWidth: g,
|
|
2193
2193
|
...C
|
|
2194
2194
|
}) => {
|
|
2195
|
-
const N = k((
|
|
2196
|
-
() =>
|
|
2195
|
+
const N = k((ot) => ot.addCommand), O = k((ot) => ot.setDataSet), $ = Vt(null), E = p(
|
|
2196
|
+
() => tt(t, i),
|
|
2197
2197
|
[t, i]
|
|
2198
2198
|
), _ = k(
|
|
2199
|
-
(
|
|
2200
|
-
var
|
|
2201
|
-
return t && e ? ((
|
|
2199
|
+
(ot) => {
|
|
2200
|
+
var Z;
|
|
2201
|
+
return t && e ? ((Z = ot.propsStore[`${t}_props`]) == null ? void 0 : Z[e]) ?? null : null;
|
|
2202
2202
|
}
|
|
2203
|
-
),
|
|
2204
|
-
(
|
|
2205
|
-
),
|
|
2203
|
+
), R = k(
|
|
2204
|
+
(ot) => E && n ? ot.getDataSet(E, n) : void 0
|
|
2205
|
+
), W = p(
|
|
2206
2206
|
() => (_ == null ? void 0 : _.optionsCfg) != null ? _.optionsCfg : c,
|
|
2207
2207
|
[_ == null ? void 0 : _.optionsCfg, c]
|
|
2208
|
-
), { options: U, loading:
|
|
2208
|
+
), { options: U, loading: q } = ye(
|
|
2209
2209
|
D || (a ? o : void 0)
|
|
2210
|
-
), { options:
|
|
2211
|
-
|
|
2210
|
+
), { options: L, loading: M } = nr(
|
|
2211
|
+
W == null ? void 0 : W.url,
|
|
2212
2212
|
{
|
|
2213
|
-
valueKey: (
|
|
2214
|
-
labelKey: (
|
|
2215
|
-
immediate: !!(
|
|
2216
|
-
params:
|
|
2217
|
-
field:
|
|
2213
|
+
valueKey: (W == null ? void 0 : W.codeKey) || "value",
|
|
2214
|
+
labelKey: (W == null ? void 0 : W.labelKey) || "label",
|
|
2215
|
+
immediate: !!(W != null && W.url),
|
|
2216
|
+
params: W == null ? void 0 : W.params,
|
|
2217
|
+
field: W == null ? void 0 : W.field
|
|
2218
2218
|
}
|
|
2219
|
-
), P =
|
|
2219
|
+
), P = q || M, { validate: j, help: B } = Rt({
|
|
2220
2220
|
rules: s,
|
|
2221
2221
|
dataSet: i,
|
|
2222
2222
|
dataSetField: n,
|
|
2223
2223
|
sessionId: t,
|
|
2224
2224
|
id: e,
|
|
2225
2225
|
develop: r
|
|
2226
|
-
}),
|
|
2226
|
+
}), V = p(() => R != null && R !== "" ? R : (_ == null ? void 0 : _.value) !== void 0 ? _.value : l ?? y, [R, _ == null ? void 0 : _.value, l, y]), X = p(
|
|
2227
2227
|
() => Gt(C, _ ?? void 0),
|
|
2228
2228
|
[C, _]
|
|
2229
|
-
), rt = p(() => _ != null && _.options && Array.isArray(_.options) ? _.options :
|
|
2230
|
-
if (rt.length === 0) return
|
|
2231
|
-
if (Array.isArray(
|
|
2232
|
-
return
|
|
2229
|
+
), rt = p(() => _ != null && _.options && Array.isArray(_.options) ? _.options : W != null && W.url && L.length > 0 ? L : (D || a && o) && U.length > 0 ? U : f || [], [_ == null ? void 0 : _.options, W == null ? void 0 : W.url, L, D, a, o, U, f]), ft = p(() => {
|
|
2230
|
+
if (rt.length === 0) return V;
|
|
2231
|
+
if (Array.isArray(V))
|
|
2232
|
+
return V.map((Z) => {
|
|
2233
2233
|
var J;
|
|
2234
|
-
return ((J = re(rt,
|
|
2234
|
+
return ((J = re(rt, Z)) == null ? void 0 : J.value) ?? Z;
|
|
2235
2235
|
});
|
|
2236
|
-
const
|
|
2237
|
-
return (
|
|
2238
|
-
}, [
|
|
2239
|
-
(
|
|
2236
|
+
const ot = re(rt, V);
|
|
2237
|
+
return (ot == null ? void 0 : ot.value) ?? V;
|
|
2238
|
+
}, [V, rt]), st = K(
|
|
2239
|
+
(ot, Z) => {
|
|
2240
2240
|
if (m) {
|
|
2241
|
-
m(
|
|
2241
|
+
m(ot, Z);
|
|
2242
2242
|
return;
|
|
2243
2243
|
}
|
|
2244
|
-
if (E && n && O(E, n,
|
|
2245
|
-
|
|
2244
|
+
if (E && n && O(E, n, ot), b && ($.current && clearTimeout($.current), $.current = setTimeout(() => {
|
|
2245
|
+
$.current = null, j(ot);
|
|
2246
2246
|
}, Aa)), h && t) {
|
|
2247
|
-
const { actionName: J, arg: dt } = Nt(h,
|
|
2247
|
+
const { actionName: J, arg: dt } = Nt(h, ot, {
|
|
2248
2248
|
id: e,
|
|
2249
2249
|
dataSet: i,
|
|
2250
2250
|
dataSetField: n,
|
|
2251
2251
|
index: v
|
|
2252
2252
|
});
|
|
2253
|
-
N(t,
|
|
2253
|
+
N(t, F(J, dt));
|
|
2254
2254
|
}
|
|
2255
2255
|
},
|
|
2256
2256
|
[
|
|
@@ -2259,7 +2259,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2259
2259
|
n,
|
|
2260
2260
|
O,
|
|
2261
2261
|
b,
|
|
2262
|
-
|
|
2262
|
+
j,
|
|
2263
2263
|
h,
|
|
2264
2264
|
t,
|
|
2265
2265
|
e,
|
|
@@ -2267,15 +2267,15 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2267
2267
|
N
|
|
2268
2268
|
]
|
|
2269
2269
|
), et = K(() => {
|
|
2270
|
-
d &&
|
|
2271
|
-
}, [d,
|
|
2270
|
+
d && j(ft);
|
|
2271
|
+
}, [d, j, ft]);
|
|
2272
2272
|
Ot(
|
|
2273
2273
|
() => () => {
|
|
2274
|
-
|
|
2274
|
+
$.current && clearTimeout($.current);
|
|
2275
2275
|
},
|
|
2276
2276
|
[]
|
|
2277
2277
|
);
|
|
2278
|
-
const
|
|
2278
|
+
const mt = K((ot, Z) => ((Z == null ? void 0 : Z.label) ?? "").toLowerCase().includes(ot.toLowerCase()), []);
|
|
2279
2279
|
return /* @__PURE__ */ it("div", { style: { width: "100%" }, children: [
|
|
2280
2280
|
/* @__PURE__ */ w(
|
|
2281
2281
|
xr,
|
|
@@ -2285,15 +2285,15 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2285
2285
|
open: r ? !1 : void 0,
|
|
2286
2286
|
value: ft,
|
|
2287
2287
|
options: rt,
|
|
2288
|
-
onChange:
|
|
2288
|
+
onChange: st,
|
|
2289
2289
|
onBlur: et,
|
|
2290
|
-
filterOption:
|
|
2290
|
+
filterOption: mt,
|
|
2291
2291
|
loading: P,
|
|
2292
|
-
status:
|
|
2292
|
+
status: B ? "error" : void 0,
|
|
2293
2293
|
style: { width: "100%", ...X.style }
|
|
2294
2294
|
}
|
|
2295
2295
|
),
|
|
2296
|
-
|
|
2296
|
+
B && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: B })
|
|
2297
2297
|
] });
|
|
2298
2298
|
}, nc = ({
|
|
2299
2299
|
id: e,
|
|
@@ -2311,7 +2311,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2311
2311
|
...m
|
|
2312
2312
|
}) => {
|
|
2313
2313
|
const f = k((g) => g.addCommand), y = k((g) => g.setDataSet), l = p(
|
|
2314
|
-
() =>
|
|
2314
|
+
() => tt(t, i),
|
|
2315
2315
|
[t, i]
|
|
2316
2316
|
), v = k(
|
|
2317
2317
|
(g) => {
|
|
@@ -2339,7 +2339,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2339
2339
|
dataSet: i,
|
|
2340
2340
|
dataSetField: n
|
|
2341
2341
|
});
|
|
2342
|
-
f(t,
|
|
2342
|
+
f(t, F(C, N));
|
|
2343
2343
|
}
|
|
2344
2344
|
},
|
|
2345
2345
|
[
|
|
@@ -2386,12 +2386,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2386
2386
|
...f
|
|
2387
2387
|
}) => {
|
|
2388
2388
|
const y = k((O) => O.addCommand), l = k((O) => O.setDataSet), v = p(
|
|
2389
|
-
() =>
|
|
2389
|
+
() => tt(t, i),
|
|
2390
2390
|
[t, i]
|
|
2391
2391
|
), u = k(
|
|
2392
2392
|
(O) => {
|
|
2393
|
-
var
|
|
2394
|
-
return t && e ? ((
|
|
2393
|
+
var $;
|
|
2394
|
+
return t && e ? (($ = O.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2395
2395
|
}
|
|
2396
2396
|
), T = k(
|
|
2397
2397
|
(O) => v && n ? O.getDataSet(v, n) : void 0
|
|
@@ -2406,27 +2406,27 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2406
2406
|
if (!O) return null;
|
|
2407
2407
|
if (Ht.isDayjs(O)) return O;
|
|
2408
2408
|
if (typeof O == "string") {
|
|
2409
|
-
const
|
|
2410
|
-
return
|
|
2409
|
+
const $ = Ht(O, o);
|
|
2410
|
+
return $.isValid() ? $ : null;
|
|
2411
2411
|
}
|
|
2412
2412
|
return null;
|
|
2413
2413
|
}, [o]), D = p(() => {
|
|
2414
2414
|
const O = T ?? (u == null ? void 0 : u.value) ?? h ?? m;
|
|
2415
2415
|
return S(O);
|
|
2416
2416
|
}, [T, u == null ? void 0 : u.value, h, m, S]), g = K(
|
|
2417
|
-
(O,
|
|
2417
|
+
(O, $) => {
|
|
2418
2418
|
if (b) {
|
|
2419
|
-
b(O,
|
|
2419
|
+
b(O, $);
|
|
2420
2420
|
return;
|
|
2421
2421
|
}
|
|
2422
|
-
const E = Array.isArray(
|
|
2422
|
+
const E = Array.isArray($) ? $[0] : $;
|
|
2423
2423
|
if (v && n && l(v, n, E), d && A(E), a && t) {
|
|
2424
|
-
const { actionName: _, arg:
|
|
2424
|
+
const { actionName: _, arg: R } = Nt(a, E, {
|
|
2425
2425
|
id: e,
|
|
2426
2426
|
dataSet: i,
|
|
2427
2427
|
dataSetField: n
|
|
2428
2428
|
});
|
|
2429
|
-
y(t,
|
|
2429
|
+
y(t, F(_, R));
|
|
2430
2430
|
}
|
|
2431
2431
|
},
|
|
2432
2432
|
[b, v, n, l, d, A, a, t, e, y]
|
|
@@ -2477,7 +2477,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2477
2477
|
...f
|
|
2478
2478
|
}) => {
|
|
2479
2479
|
const y = k((O) => O.addCommand), l = k((O) => O.getDataSet), v = k((O) => O.setDataSet), u = p(
|
|
2480
|
-
() =>
|
|
2480
|
+
() => tt(t, i),
|
|
2481
2481
|
[t, i]
|
|
2482
2482
|
), T = p(() => {
|
|
2483
2483
|
if (u && n) return l(u, n);
|
|
@@ -2492,19 +2492,19 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2492
2492
|
if (!O) return null;
|
|
2493
2493
|
if (Ht.isDayjs(O)) return O;
|
|
2494
2494
|
if (typeof O == "string") {
|
|
2495
|
-
const
|
|
2496
|
-
return
|
|
2495
|
+
const $ = Ht(O, o);
|
|
2496
|
+
return $.isValid() ? $ : null;
|
|
2497
2497
|
}
|
|
2498
2498
|
return null;
|
|
2499
|
-
}, [o]), D = p(() => S(T ?? s ?? d), [T, s, d, S]), g = K((O,
|
|
2499
|
+
}, [o]), D = p(() => S(T ?? s ?? d), [T, s, d, S]), g = K((O, $) => {
|
|
2500
2500
|
if (c) {
|
|
2501
|
-
c(O,
|
|
2501
|
+
c(O, $);
|
|
2502
2502
|
return;
|
|
2503
2503
|
}
|
|
2504
|
-
const E =
|
|
2504
|
+
const E = $ || "";
|
|
2505
2505
|
if (u && n && v(u, n, E), h && A(E), a && t) {
|
|
2506
|
-
const { actionName: _, arg:
|
|
2507
|
-
y(t,
|
|
2506
|
+
const { actionName: _, arg: R } = Nt(a, E, { id: e, dataSet: i, dataSetField: n });
|
|
2507
|
+
y(t, F(_, R));
|
|
2508
2508
|
}
|
|
2509
2509
|
}, [c, u, n, v, h, A, a, t, e, y]), C = K(() => {
|
|
2510
2510
|
m && A(D ? D.format(o) : "");
|
|
@@ -2542,12 +2542,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2542
2542
|
...f
|
|
2543
2543
|
}) => {
|
|
2544
2544
|
const y = k((O) => O.addCommand), l = k((O) => O.setDataSet), v = p(
|
|
2545
|
-
() =>
|
|
2545
|
+
() => tt(t, i),
|
|
2546
2546
|
[t, i]
|
|
2547
2547
|
), u = k(
|
|
2548
2548
|
(O) => {
|
|
2549
|
-
var
|
|
2550
|
-
return t && e ? ((
|
|
2549
|
+
var $;
|
|
2550
|
+
return t && e ? (($ = O.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2551
2551
|
}
|
|
2552
2552
|
), T = k(
|
|
2553
2553
|
(O) => v && n ? O.getDataSet(v, n) : void 0
|
|
@@ -2560,8 +2560,8 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2560
2560
|
develop: r
|
|
2561
2561
|
}), S = K((O) => {
|
|
2562
2562
|
if (!O || !Array.isArray(O) || O.length !== 2) return null;
|
|
2563
|
-
const [
|
|
2564
|
-
return _.isValid() &&
|
|
2563
|
+
const [$, E] = O, _ = Ht.isDayjs($) ? $ : Ht($, o), R = Ht.isDayjs(E) ? E : Ht(E, o);
|
|
2564
|
+
return _.isValid() && R.isValid() ? [_, R] : null;
|
|
2565
2565
|
}, [o]), D = p(() => {
|
|
2566
2566
|
const O = T ?? (u == null ? void 0 : u.value) ?? h ?? m;
|
|
2567
2567
|
return S(O);
|
|
@@ -2569,24 +2569,24 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2569
2569
|
() => Gt(f, u ?? void 0),
|
|
2570
2570
|
[f, u]
|
|
2571
2571
|
), C = K(
|
|
2572
|
-
(O,
|
|
2572
|
+
(O, $) => {
|
|
2573
2573
|
if (b) {
|
|
2574
|
-
b(O,
|
|
2574
|
+
b(O, $);
|
|
2575
2575
|
return;
|
|
2576
2576
|
}
|
|
2577
|
-
if (v && n && l(v, n,
|
|
2578
|
-
const { actionName: E, arg: _ } = Nt(a,
|
|
2577
|
+
if (v && n && l(v, n, $), d && A($), a && t) {
|
|
2578
|
+
const { actionName: E, arg: _ } = Nt(a, $, {
|
|
2579
2579
|
id: e,
|
|
2580
2580
|
dataSet: i,
|
|
2581
2581
|
dataSetField: n
|
|
2582
2582
|
});
|
|
2583
|
-
y(t,
|
|
2583
|
+
y(t, F(E, _));
|
|
2584
2584
|
}
|
|
2585
2585
|
},
|
|
2586
2586
|
[b, v, n, l, d, A, a, t, e, y]
|
|
2587
2587
|
), N = K(() => {
|
|
2588
|
-
var O,
|
|
2589
|
-
s && A(D ? [(O = D[0]) == null ? void 0 : O.format(o), (
|
|
2588
|
+
var O, $;
|
|
2589
|
+
s && A(D ? [(O = D[0]) == null ? void 0 : O.format(o), ($ = D[1]) == null ? void 0 : $.format(o)] : null);
|
|
2590
2590
|
}, [s, A, D, o]);
|
|
2591
2591
|
return /* @__PURE__ */ it("div", { onBlur: N, children: [
|
|
2592
2592
|
/* @__PURE__ */ w(
|
|
@@ -2624,16 +2624,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2624
2624
|
remoteUrl: T,
|
|
2625
2625
|
...A
|
|
2626
2626
|
}) => {
|
|
2627
|
-
const x = k((
|
|
2628
|
-
() =>
|
|
2627
|
+
const x = k((M) => M.addCommand), S = k((M) => M.setDataSet), D = p(
|
|
2628
|
+
() => tt(t, i),
|
|
2629
2629
|
[t, i]
|
|
2630
2630
|
), g = k(
|
|
2631
|
-
(
|
|
2631
|
+
(M) => {
|
|
2632
2632
|
var P;
|
|
2633
|
-
return t && e ? ((P =
|
|
2633
|
+
return t && e ? ((P = M.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
|
|
2634
2634
|
}
|
|
2635
2635
|
), C = k(
|
|
2636
|
-
(
|
|
2636
|
+
(M) => D && n ? M.getDataSet(D, n) : void 0
|
|
2637
2637
|
), { validate: N, help: O } = Rt({
|
|
2638
2638
|
rules: b,
|
|
2639
2639
|
dataSet: i,
|
|
@@ -2641,34 +2641,34 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2641
2641
|
sessionId: t,
|
|
2642
2642
|
id: e,
|
|
2643
2643
|
develop: r
|
|
2644
|
-
}),
|
|
2644
|
+
}), $ = p(() => C !== void 0 ? C : (g == null ? void 0 : g.value) !== void 0 ? g.value : y ?? l, [C, g == null ? void 0 : g.value, y, l]), { options: E } = ye(v), { options: _ } = nr(
|
|
2645
2645
|
o == null ? void 0 : o.url,
|
|
2646
2646
|
{
|
|
2647
2647
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
2648
2648
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
2649
2649
|
immediate: !!(o != null && o.url)
|
|
2650
2650
|
}
|
|
2651
|
-
),
|
|
2652
|
-
if (
|
|
2653
|
-
const
|
|
2654
|
-
return (
|
|
2655
|
-
}, [
|
|
2651
|
+
), R = p(() => g != null && g.options ? g.options : o != null && o.url && _.length > 0 ? _ : v && E.length > 0 ? E : a, [g == null ? void 0 : g.options, o == null ? void 0 : o.url, _, v, E, a]), W = p(() => {
|
|
2652
|
+
if (R.length === 0) return $;
|
|
2653
|
+
const M = re(R, $);
|
|
2654
|
+
return (M == null ? void 0 : M.value) ?? $;
|
|
2655
|
+
}, [$, R]), U = p(
|
|
2656
2656
|
() => Gt(A, g ?? void 0),
|
|
2657
2657
|
[A, g]
|
|
2658
|
-
),
|
|
2659
|
-
(
|
|
2660
|
-
const P =
|
|
2658
|
+
), q = K(
|
|
2659
|
+
(M) => {
|
|
2660
|
+
const P = M.target.value;
|
|
2661
2661
|
if (f) {
|
|
2662
2662
|
f(P);
|
|
2663
2663
|
return;
|
|
2664
2664
|
}
|
|
2665
2665
|
if (D && n && S(D, n, P), m && N(P), c && t) {
|
|
2666
|
-
const { actionName:
|
|
2666
|
+
const { actionName: j, arg: B } = Nt(c, P, {
|
|
2667
2667
|
id: e,
|
|
2668
2668
|
dataSet: i,
|
|
2669
2669
|
dataSetField: n
|
|
2670
2670
|
});
|
|
2671
|
-
x(t,
|
|
2671
|
+
x(t, F(j, B));
|
|
2672
2672
|
}
|
|
2673
2673
|
},
|
|
2674
2674
|
[
|
|
@@ -2683,25 +2683,25 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2683
2683
|
e,
|
|
2684
2684
|
x
|
|
2685
2685
|
]
|
|
2686
|
-
),
|
|
2687
|
-
h && N(
|
|
2688
|
-
}, [h, N,
|
|
2689
|
-
return /* @__PURE__ */ it("div", { onBlur:
|
|
2686
|
+
), L = K(() => {
|
|
2687
|
+
h && N(W);
|
|
2688
|
+
}, [h, N, W]);
|
|
2689
|
+
return /* @__PURE__ */ it("div", { onBlur: L, children: [
|
|
2690
2690
|
/* @__PURE__ */ w(
|
|
2691
2691
|
Me.Group,
|
|
2692
2692
|
{
|
|
2693
2693
|
...U,
|
|
2694
2694
|
disabled: r ? !1 : U.disabled,
|
|
2695
|
-
value:
|
|
2696
|
-
onChange:
|
|
2695
|
+
value: W,
|
|
2696
|
+
onChange: q,
|
|
2697
2697
|
buttonStyle: (g == null ? void 0 : g.buttonStyle) ?? s,
|
|
2698
2698
|
optionType: (g == null ? void 0 : g.optionType) ?? d,
|
|
2699
|
-
children: d === "button" ?
|
|
2699
|
+
children: d === "button" ? R.map((M) => /* @__PURE__ */ w(Me.Button, { value: M.value, disabled: M.disabled, children: M.label }, M.value)) : /* @__PURE__ */ w(
|
|
2700
2700
|
Ut,
|
|
2701
2701
|
{
|
|
2702
2702
|
orientation: (g == null ? void 0 : g.direction) ?? u ?? "horizontal",
|
|
2703
2703
|
wrap: !0,
|
|
2704
|
-
children:
|
|
2704
|
+
children: R.map((M) => /* @__PURE__ */ w(Me, { value: M.value, disabled: M.disabled, children: M.label }, M.value))
|
|
2705
2705
|
}
|
|
2706
2706
|
)
|
|
2707
2707
|
}
|
|
@@ -2733,83 +2733,83 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2733
2733
|
remoteUrl: x,
|
|
2734
2734
|
...S
|
|
2735
2735
|
}) => {
|
|
2736
|
-
const D = k((
|
|
2737
|
-
() =>
|
|
2736
|
+
const D = k((B) => B.addCommand), g = k((B) => B.setDataSet), C = p(
|
|
2737
|
+
() => tt(t, i),
|
|
2738
2738
|
[t, i]
|
|
2739
2739
|
), N = k(
|
|
2740
|
-
(
|
|
2741
|
-
var
|
|
2742
|
-
return t && e ? ((
|
|
2740
|
+
(B) => {
|
|
2741
|
+
var V;
|
|
2742
|
+
return t && e ? ((V = B.propsStore[`${t}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
2743
2743
|
}
|
|
2744
2744
|
), O = k(
|
|
2745
|
-
(
|
|
2746
|
-
), { validate:
|
|
2745
|
+
(B) => C && n ? B.getDataSet(C, n) : void 0
|
|
2746
|
+
), { validate: $, help: E } = Rt({
|
|
2747
2747
|
rules: d,
|
|
2748
2748
|
dataSet: i,
|
|
2749
2749
|
dataSetField: n,
|
|
2750
2750
|
sessionId: t,
|
|
2751
2751
|
id: e,
|
|
2752
2752
|
develop: r
|
|
2753
|
-
}), { options: _ } = ye(T), { options:
|
|
2753
|
+
}), { options: _ } = ye(T), { options: R } = nr(
|
|
2754
2754
|
o == null ? void 0 : o.url,
|
|
2755
2755
|
{
|
|
2756
2756
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
2757
2757
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
2758
2758
|
immediate: !!(o != null && o.url)
|
|
2759
2759
|
}
|
|
2760
|
-
),
|
|
2760
|
+
), W = p(() => {
|
|
2761
2761
|
if (!c)
|
|
2762
2762
|
return O !== void 0 ? !!O : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : y ?? v;
|
|
2763
|
-
}, [c, O, N == null ? void 0 : N.checked, y, v]), U = p(() => N != null && N.options ? N.options : o != null && o.url &&
|
|
2763
|
+
}, [c, O, N == null ? void 0 : N.checked, y, v]), U = p(() => N != null && N.options ? N.options : o != null && o.url && R.length > 0 ? R : T && _.length > 0 ? _ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, R, T, _, a]), q = p(() => {
|
|
2764
2764
|
if (!c) return [];
|
|
2765
|
-
let
|
|
2766
|
-
return Array.isArray(O) ?
|
|
2765
|
+
let B = [];
|
|
2766
|
+
return Array.isArray(O) ? B = O : Array.isArray(N == null ? void 0 : N.values) ? B = N.values : B = l || [], U.length === 0 ? B : B.map((V) => {
|
|
2767
2767
|
var X;
|
|
2768
|
-
return ((X = re(U,
|
|
2768
|
+
return ((X = re(U, V)) == null ? void 0 : X.value) ?? V;
|
|
2769
2769
|
});
|
|
2770
|
-
}, [c, O, N == null ? void 0 : N.values, l, U]),
|
|
2770
|
+
}, [c, O, N == null ? void 0 : N.values, l, U]), L = p(
|
|
2771
2771
|
() => Gt(S, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
2772
2772
|
[S, N]
|
|
2773
|
-
),
|
|
2774
|
-
const
|
|
2773
|
+
), M = K((B) => {
|
|
2774
|
+
const V = B.target.checked;
|
|
2775
2775
|
if (m) {
|
|
2776
|
-
m(
|
|
2776
|
+
m(V);
|
|
2777
2777
|
return;
|
|
2778
2778
|
}
|
|
2779
|
-
if (C && n && g(C, n,
|
|
2780
|
-
const { actionName: X, arg: rt } = Nt(s,
|
|
2781
|
-
D(t,
|
|
2779
|
+
if (C && n && g(C, n, V), h && $(V), s && t) {
|
|
2780
|
+
const { actionName: X, arg: rt } = Nt(s, V, { id: e, dataSet: i, dataSetField: n });
|
|
2781
|
+
D(t, F(X, rt));
|
|
2782
2782
|
}
|
|
2783
|
-
}, [m, C, n, g, h,
|
|
2783
|
+
}, [m, C, n, g, h, $, s, t, e, D]), P = K((B) => {
|
|
2784
2784
|
if (f) {
|
|
2785
|
-
f(
|
|
2785
|
+
f(B);
|
|
2786
2786
|
return;
|
|
2787
2787
|
}
|
|
2788
|
-
if (C && n && g(C, n,
|
|
2789
|
-
const { actionName:
|
|
2790
|
-
D(t,
|
|
2788
|
+
if (C && n && g(C, n, B), h && $(B), s && t) {
|
|
2789
|
+
const { actionName: V, arg: X } = Nt(s, B, { id: e, dataSet: i, dataSetField: n });
|
|
2790
|
+
D(t, F(V, X));
|
|
2791
2791
|
}
|
|
2792
|
-
}, [f, C, n, g, h,
|
|
2793
|
-
b &&
|
|
2794
|
-
}, [b,
|
|
2795
|
-
return c && U.length > 0 ? /* @__PURE__ */ it("div", { onBlur:
|
|
2796
|
-
/* @__PURE__ */ w(ae.Group, { ...
|
|
2792
|
+
}, [f, C, n, g, h, $, s, t, e, D]), j = K(() => {
|
|
2793
|
+
b && $(c ? q : W);
|
|
2794
|
+
}, [b, $, c, q, W]);
|
|
2795
|
+
return c && U.length > 0 ? /* @__PURE__ */ it("div", { onBlur: j, children: [
|
|
2796
|
+
/* @__PURE__ */ w(ae.Group, { ...L, value: q, onChange: P, disabled: r ? !1 : L.disabled, children: /* @__PURE__ */ w(
|
|
2797
2797
|
Ut,
|
|
2798
2798
|
{
|
|
2799
|
-
direction:
|
|
2799
|
+
direction: L.direction ?? A,
|
|
2800
2800
|
wrap: !0,
|
|
2801
|
-
children: U.map((
|
|
2801
|
+
children: U.map((B) => /* @__PURE__ */ w(ae, { value: B.value, disabled: B.disabled, children: B.label }, B.value))
|
|
2802
2802
|
}
|
|
2803
2803
|
) }),
|
|
2804
2804
|
E && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
|
|
2805
|
-
] }) : /* @__PURE__ */ it("div", { onBlur:
|
|
2805
|
+
] }) : /* @__PURE__ */ it("div", { onBlur: j, children: [
|
|
2806
2806
|
/* @__PURE__ */ w(
|
|
2807
2807
|
ae,
|
|
2808
2808
|
{
|
|
2809
|
-
...
|
|
2810
|
-
disabled: r ? !1 :
|
|
2811
|
-
checked:
|
|
2812
|
-
onChange:
|
|
2809
|
+
...L,
|
|
2810
|
+
disabled: r ? !1 : L.disabled,
|
|
2811
|
+
checked: W,
|
|
2812
|
+
onChange: M,
|
|
2813
2813
|
children: u
|
|
2814
2814
|
}
|
|
2815
2815
|
),
|
|
@@ -2831,7 +2831,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2831
2831
|
...m
|
|
2832
2832
|
}) => {
|
|
2833
2833
|
const f = k((C) => C.addCommand), y = k((C) => C.setDataSet), l = p(
|
|
2834
|
-
() =>
|
|
2834
|
+
() => tt(t, i),
|
|
2835
2835
|
[t, i]
|
|
2836
2836
|
), v = k(
|
|
2837
2837
|
(C) => {
|
|
@@ -2859,7 +2859,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2859
2859
|
dataSet: i,
|
|
2860
2860
|
dataSetField: n
|
|
2861
2861
|
});
|
|
2862
|
-
f(t,
|
|
2862
|
+
f(t, F(N, O));
|
|
2863
2863
|
}
|
|
2864
2864
|
},
|
|
2865
2865
|
[d, l, n, y, s, T, a, t, e, f]
|
|
@@ -2894,7 +2894,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2894
2894
|
...d
|
|
2895
2895
|
}) => {
|
|
2896
2896
|
const b = k((u) => u.addCommand), h = k((u) => u.getDataSet), m = k((u) => u.setDataSet), f = p(
|
|
2897
|
-
() =>
|
|
2897
|
+
() => tt(t, i),
|
|
2898
2898
|
[t, i]
|
|
2899
2899
|
), y = p(() => {
|
|
2900
2900
|
if (f && n) return h(f, n);
|
|
@@ -2905,7 +2905,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2905
2905
|
}
|
|
2906
2906
|
if (f && n && m(f, n, u), a && t) {
|
|
2907
2907
|
const { actionName: T, arg: A } = Nt(a, u, { id: e, dataSet: i, dataSetField: n });
|
|
2908
|
-
b(t,
|
|
2908
|
+
b(t, F(T, A));
|
|
2909
2909
|
}
|
|
2910
2910
|
}, [o, f, n, m, a, t, e, b]);
|
|
2911
2911
|
return /* @__PURE__ */ w(on, { ...d, disabled: r ? !1 : d.disabled, value: l, onChange: v });
|
|
@@ -2951,12 +2951,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2951
2951
|
remoteUrl: y,
|
|
2952
2952
|
...l
|
|
2953
2953
|
}) => {
|
|
2954
|
-
const v = k((
|
|
2955
|
-
() =>
|
|
2954
|
+
const v = k((q) => q.addCommand), u = k((q) => q.setDataSet), T = Vt(null), [A, x] = ht([]), [S, D] = ht(!1), g = p(
|
|
2955
|
+
() => tt(t, i),
|
|
2956
2956
|
[t, i]
|
|
2957
2957
|
), C = k(
|
|
2958
|
-
(
|
|
2959
|
-
), { validate: N, help: O, validateStatus:
|
|
2958
|
+
(q) => g && n ? q.getDataSet(g, n) : void 0
|
|
2959
|
+
), { validate: N, help: O, validateStatus: $ } = Rt({
|
|
2960
2960
|
rules: o,
|
|
2961
2961
|
dataSet: i,
|
|
2962
2962
|
dataSetField: n,
|
|
@@ -2964,45 +2964,45 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
2964
2964
|
id: e,
|
|
2965
2965
|
develop: r
|
|
2966
2966
|
}), E = p(() => (a == null ? void 0 : a.url) && A.length > 0, [a == null ? void 0 : a.url, A.length]), _ = p(() => {
|
|
2967
|
-
let
|
|
2968
|
-
return typeof
|
|
2969
|
-
}, [C, f, m, E, A]),
|
|
2967
|
+
let q = C ?? f ?? m ?? [];
|
|
2968
|
+
return typeof q == "string" ? E ? yr(q).map((M) => Ca(M, A)).filter((M) => Array.isArray(M) && M.length > 0) : [q] : gr(q) && E ? q.map((M) => yr(M)).filter((M) => Array.isArray(M) && M.length > 0) : pr(q) && E ? q.filter((L) => Array.isArray(L) && L.length > 0) : q;
|
|
2969
|
+
}, [C, f, m, E, A]), R = p(() => a != null && a.url && A.length > 0 ? A : h || [], [a == null ? void 0 : a.url, A, h]);
|
|
2970
2970
|
Ot(() => {
|
|
2971
2971
|
(async () => {
|
|
2972
2972
|
if (a != null && a.url) {
|
|
2973
2973
|
D(!0);
|
|
2974
2974
|
try {
|
|
2975
|
-
const
|
|
2975
|
+
const L = await ee({ url: a.url, method: "GET" }), M = Array.isArray(L) ? L : L != null && L.data ? Array.isArray(L.data) ? L.data : L.data.list || L.data.records || [] : [], P = a.codeKey || "value", j = a.labelKey || "label", B = a.childrenKey || "children", V = a.maxLevel || 5, X = Ur(M, {
|
|
2976
2976
|
codeKey: P,
|
|
2977
|
-
labelKey:
|
|
2978
|
-
childrenKey:
|
|
2979
|
-
maxLevel:
|
|
2977
|
+
labelKey: j,
|
|
2978
|
+
childrenKey: B,
|
|
2979
|
+
maxLevel: V
|
|
2980
2980
|
});
|
|
2981
2981
|
x(X);
|
|
2982
|
-
} catch (
|
|
2983
|
-
console.error("Failed to load remote options:",
|
|
2982
|
+
} catch (L) {
|
|
2983
|
+
console.error("Failed to load remote options:", L), x([]);
|
|
2984
2984
|
} finally {
|
|
2985
2985
|
D(!1);
|
|
2986
2986
|
}
|
|
2987
2987
|
}
|
|
2988
2988
|
})();
|
|
2989
2989
|
}, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
|
|
2990
|
-
const
|
|
2991
|
-
(
|
|
2990
|
+
const W = K(
|
|
2991
|
+
(q, L) => {
|
|
2992
2992
|
if (b) {
|
|
2993
|
-
b(
|
|
2993
|
+
b(q, L);
|
|
2994
2994
|
return;
|
|
2995
2995
|
}
|
|
2996
|
-
let
|
|
2997
|
-
if (gr(
|
|
2998
|
-
T.current = null, N(
|
|
2996
|
+
let M = q;
|
|
2997
|
+
if (gr(q) && E ? M = String(q[q.length - 1] || "") : pr(q) && E && (M = q.map((P) => P.join(","))), g && n && u(g, n, M), s && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
2998
|
+
T.current = null, N(q);
|
|
2999
2999
|
}, Ta)), d && t) {
|
|
3000
|
-
const { actionName: P, arg:
|
|
3000
|
+
const { actionName: P, arg: j } = Nt(d, q, {
|
|
3001
3001
|
id: e,
|
|
3002
3002
|
dataSet: i,
|
|
3003
3003
|
dataSetField: n
|
|
3004
3004
|
});
|
|
3005
|
-
v(t,
|
|
3005
|
+
v(t, F(P, j));
|
|
3006
3006
|
}
|
|
3007
3007
|
},
|
|
3008
3008
|
[
|
|
@@ -3034,11 +3034,11 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3034
3034
|
disabled: r ? !1 : l.disabled,
|
|
3035
3035
|
open: r ? !1 : void 0,
|
|
3036
3036
|
value: _,
|
|
3037
|
-
options:
|
|
3038
|
-
onChange:
|
|
3037
|
+
options: R,
|
|
3038
|
+
onChange: W,
|
|
3039
3039
|
onBlur: U,
|
|
3040
3040
|
loading: S,
|
|
3041
|
-
status:
|
|
3041
|
+
status: $,
|
|
3042
3042
|
style: { width: "100%", ...l.style }
|
|
3043
3043
|
}
|
|
3044
3044
|
),
|
|
@@ -3065,16 +3065,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3065
3065
|
validateOnBlur: u,
|
|
3066
3066
|
...T
|
|
3067
3067
|
}) => {
|
|
3068
|
-
const A = k((
|
|
3069
|
-
() =>
|
|
3068
|
+
const A = k((L) => L.addCommand), x = k((L) => L.setDataSet), S = p(
|
|
3069
|
+
() => tt(t, i),
|
|
3070
3070
|
[t, i]
|
|
3071
3071
|
), D = k(
|
|
3072
|
-
(
|
|
3073
|
-
var
|
|
3074
|
-
return t && e ? ((
|
|
3072
|
+
(L) => {
|
|
3073
|
+
var M;
|
|
3074
|
+
return t && e ? ((M = L.propsStore[`${t}_props`]) == null ? void 0 : M[e]) ?? null : null;
|
|
3075
3075
|
}
|
|
3076
3076
|
), g = k(
|
|
3077
|
-
(
|
|
3077
|
+
(L) => S && n ? L.getDataSet(S, n) : void 0
|
|
3078
3078
|
), { validate: C, help: N } = Rt({
|
|
3079
3079
|
rules: l,
|
|
3080
3080
|
dataSet: i,
|
|
@@ -3085,51 +3085,51 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3085
3085
|
}), O = p(
|
|
3086
3086
|
() => g ?? (D == null ? void 0 : D.value) ?? c ?? s,
|
|
3087
3087
|
[g, D == null ? void 0 : D.value, c, s]
|
|
3088
|
-
),
|
|
3088
|
+
), $ = p(
|
|
3089
3089
|
() => Gt(T, D ?? void 0),
|
|
3090
3090
|
[T, D]
|
|
3091
3091
|
), E = K(
|
|
3092
|
-
(
|
|
3092
|
+
(L, M, P) => {
|
|
3093
3093
|
if (o) {
|
|
3094
|
-
o(
|
|
3094
|
+
o(L, M, P);
|
|
3095
3095
|
return;
|
|
3096
3096
|
}
|
|
3097
|
-
if (S && n && x(S, n,
|
|
3098
|
-
const { actionName:
|
|
3097
|
+
if (S && n && x(S, n, L), v && C(L), a && t) {
|
|
3098
|
+
const { actionName: j, arg: B } = Nt(a, L, {
|
|
3099
3099
|
id: e,
|
|
3100
3100
|
dataSet: i,
|
|
3101
3101
|
dataSetField: n
|
|
3102
3102
|
});
|
|
3103
|
-
A(t,
|
|
3103
|
+
A(t, F(j, B));
|
|
3104
3104
|
}
|
|
3105
3105
|
},
|
|
3106
3106
|
[o, S, n, x, v, C, a, t, e, A]
|
|
3107
3107
|
), _ = K(() => {
|
|
3108
3108
|
u && C(O);
|
|
3109
|
-
}, [u, C, O]),
|
|
3109
|
+
}, [u, C, O]), R = p(() => {
|
|
3110
3110
|
if (!y) return;
|
|
3111
|
-
const
|
|
3112
|
-
return Object.entries(y).forEach(([
|
|
3113
|
-
P !== "" && P !== void 0 && P !== null && (
|
|
3114
|
-
}), Object.keys(
|
|
3115
|
-
}, [y]),
|
|
3116
|
-
if (
|
|
3111
|
+
const L = {};
|
|
3112
|
+
return Object.entries(y).forEach(([M, P]) => {
|
|
3113
|
+
P !== "" && P !== void 0 && P !== null && (L[M] = P);
|
|
3114
|
+
}), Object.keys(L).length > 0 ? L : void 0;
|
|
3115
|
+
}, [y]), W = p(() => {
|
|
3116
|
+
if (R)
|
|
3117
3117
|
return {
|
|
3118
3118
|
components: {
|
|
3119
|
-
TreeSelect:
|
|
3119
|
+
TreeSelect: R
|
|
3120
3120
|
}
|
|
3121
3121
|
};
|
|
3122
|
-
}, [
|
|
3122
|
+
}, [R]), U = N ? "error" : void 0, q = /* @__PURE__ */ it("div", { onBlur: _, children: [
|
|
3123
3123
|
/* @__PURE__ */ w(
|
|
3124
3124
|
ln,
|
|
3125
3125
|
{
|
|
3126
|
-
|
|
3127
|
-
disabled: r ? !1 :
|
|
3126
|
+
...$,
|
|
3127
|
+
disabled: r ? !1 : $.disabled,
|
|
3128
3128
|
open: r ? !1 : void 0,
|
|
3129
3129
|
treeData: d,
|
|
3130
3130
|
value: O,
|
|
3131
3131
|
onChange: E,
|
|
3132
|
-
style: { width: "100%",
|
|
3132
|
+
style: { width: "100%", ...$.style },
|
|
3133
3133
|
styles: m,
|
|
3134
3134
|
classNames: f,
|
|
3135
3135
|
status: U
|
|
@@ -3137,7 +3137,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3137
3137
|
),
|
|
3138
3138
|
N && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: N })
|
|
3139
3139
|
] });
|
|
3140
|
-
return
|
|
3140
|
+
return W ? /* @__PURE__ */ w(Mt, { theme: W, children: q }) : q;
|
|
3141
3141
|
}, mc = ({
|
|
3142
3142
|
id: e,
|
|
3143
3143
|
sessionId: t,
|
|
@@ -3157,16 +3157,16 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3157
3157
|
action: l,
|
|
3158
3158
|
...v
|
|
3159
3159
|
}) => {
|
|
3160
|
-
const u = k((
|
|
3161
|
-
() =>
|
|
3160
|
+
const u = k((z) => z.addCommand), T = k((z) => z.setDataSet), A = p(
|
|
3161
|
+
() => tt(t, i),
|
|
3162
3162
|
[t, i]
|
|
3163
3163
|
), x = k(
|
|
3164
|
-
(
|
|
3164
|
+
(z) => {
|
|
3165
3165
|
var Y;
|
|
3166
|
-
return t && e ? ((Y =
|
|
3166
|
+
return t && e ? ((Y = z.propsStore[`${t}_props`]) == null ? void 0 : Y[e]) ?? null : null;
|
|
3167
3167
|
}
|
|
3168
3168
|
), S = k(
|
|
3169
|
-
(
|
|
3169
|
+
(z) => A && n ? z.getDataSet(A, n) : void 0
|
|
3170
3170
|
), { validate: D, help: g } = Rt({
|
|
3171
3171
|
rules: c,
|
|
3172
3172
|
dataSet: i,
|
|
@@ -3174,45 +3174,45 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3174
3174
|
sessionId: t,
|
|
3175
3175
|
id: e,
|
|
3176
3176
|
develop: r
|
|
3177
|
-
}), C = K((
|
|
3177
|
+
}), C = K((z) => z.map((Y) => {
|
|
3178
3178
|
var ut;
|
|
3179
3179
|
return ((ut = Y == null ? void 0 : Y.response) == null ? void 0 : ut.src) ?? (Y == null ? void 0 : Y.src) ?? (Y == null ? void 0 : Y.url) ?? (Y == null ? void 0 : Y.thumbUrl) ?? "";
|
|
3180
|
-
}).filter((Y) => Y && typeof Y == "string"), []), N = K((
|
|
3181
|
-
const Y = Yt().viewRes, ut = (
|
|
3182
|
-
return
|
|
3183
|
-
const
|
|
3180
|
+
}).filter((Y) => Y && typeof Y == "string"), []), N = K((z) => {
|
|
3181
|
+
const Y = Yt().viewRes, ut = (I) => (Y ? Y(I) : I) || I;
|
|
3182
|
+
return z.map((I, at) => {
|
|
3183
|
+
const ct = ut(I);
|
|
3184
3184
|
return {
|
|
3185
|
-
uid: `src-${at}-${
|
|
3186
|
-
name:
|
|
3187
|
-
url:
|
|
3188
|
-
thumbUrl:
|
|
3185
|
+
uid: `src-${at}-${I}`,
|
|
3186
|
+
name: I.split("/").pop() || I,
|
|
3187
|
+
url: ct,
|
|
3188
|
+
thumbUrl: ct,
|
|
3189
3189
|
status: "done",
|
|
3190
|
-
response: { src:
|
|
3190
|
+
response: { src: I }
|
|
3191
3191
|
};
|
|
3192
3192
|
});
|
|
3193
|
-
}, []), O = K((
|
|
3194
|
-
const Y = Yt().viewRes, ut = (
|
|
3195
|
-
return
|
|
3193
|
+
}, []), O = K((z) => {
|
|
3194
|
+
const Y = Yt().viewRes, ut = (I) => (I && Y ? Y(I) : I) || I;
|
|
3195
|
+
return z.map((I) => {
|
|
3196
3196
|
var _t;
|
|
3197
|
-
const at = ((_t =
|
|
3198
|
-
for (const xt of Object.keys(
|
|
3199
|
-
const Tt =
|
|
3197
|
+
const at = ((_t = I == null ? void 0 : I.response) == null ? void 0 : _t.src) ?? (I == null ? void 0 : I.src) ?? (I == null ? void 0 : I.url) ?? (I == null ? void 0 : I.thumbUrl) ?? "", ct = typeof at == "string" ? ut(at) : at, wt = {};
|
|
3198
|
+
for (const xt of Object.keys(I)) {
|
|
3199
|
+
const Tt = I[xt];
|
|
3200
3200
|
Tt instanceof File ? wt[xt] = Tt : Tt && typeof Tt == "object" && !Array.isArray(Tt) ? wt[xt] = { ...Tt } : wt[xt] = Tt;
|
|
3201
3201
|
}
|
|
3202
|
-
return
|
|
3202
|
+
return ct && typeof ct == "string" && (wt.url = ct, wt.thumbUrl = ct), wt;
|
|
3203
3203
|
});
|
|
3204
|
-
}, []), [
|
|
3205
|
-
const
|
|
3206
|
-
if (
|
|
3207
|
-
if (typeof
|
|
3208
|
-
if (Array.isArray(
|
|
3209
|
-
return
|
|
3210
|
-
}
|
|
3211
|
-
}, [S, x == null ? void 0 : x.fileList, h, N, O]),
|
|
3204
|
+
}, []), [$, E] = ht(null), _ = p(() => {
|
|
3205
|
+
const z = S ?? (x == null ? void 0 : x.fileList) ?? h;
|
|
3206
|
+
if (z != null) {
|
|
3207
|
+
if (typeof z == "string" && z) return N([z]);
|
|
3208
|
+
if (Array.isArray(z))
|
|
3209
|
+
return z.length > 0 && typeof z[0] == "string" ? N(z) : O(z);
|
|
3210
|
+
}
|
|
3211
|
+
}, [S, x == null ? void 0 : x.fileList, h, N, O]), R = $ ?? _, W = p(
|
|
3212
3212
|
() => Gt(v, x ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3213
3213
|
[v, x]
|
|
3214
|
-
), U = K((
|
|
3215
|
-
const { file: Y, onSuccess: ut, onError:
|
|
3214
|
+
), U = K((z) => z.size / 1024 / 1024 < y ? !0 : (be.error(`文件大小不能超过 ${y}MB`), !1), [y]), q = K(async (z) => {
|
|
3215
|
+
const { file: Y, onSuccess: ut, onError: I, onProgress: at } = z;
|
|
3216
3216
|
if (Yt().upload)
|
|
3217
3217
|
try {
|
|
3218
3218
|
at == null || at({ percent: 30 });
|
|
@@ -3224,84 +3224,84 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3224
3224
|
});
|
|
3225
3225
|
at == null || at({ percent: 100 }), ut == null || ut(wt, Y);
|
|
3226
3226
|
} catch (wt) {
|
|
3227
|
-
|
|
3227
|
+
I == null || I(wt), be.error("上传失败");
|
|
3228
3228
|
}
|
|
3229
3229
|
else
|
|
3230
|
-
|
|
3231
|
-
}, [f]),
|
|
3232
|
-
(
|
|
3230
|
+
I == null || I(new Error("Upload handler not configured")), be.warning("上传功能未配置");
|
|
3231
|
+
}, [f]), L = K(
|
|
3232
|
+
(z) => {
|
|
3233
3233
|
if (b) {
|
|
3234
|
-
b(
|
|
3234
|
+
b(z);
|
|
3235
3235
|
return;
|
|
3236
3236
|
}
|
|
3237
|
-
const Y = Array.isArray(
|
|
3238
|
-
A && n && (ut.length > 0 || !Array.isArray(Y) || Y.length === 0) ? (T(A, n, ut), E(null)) :
|
|
3237
|
+
const Y = Array.isArray(z.fileList) ? O(z.fileList) : z.fileList, ut = Array.isArray(Y) ? C(Y) : [], I = Array.isArray(Y) && Y.some((ct) => (ct == null ? void 0 : ct.status) === "uploading");
|
|
3238
|
+
A && n && (ut.length > 0 || !Array.isArray(Y) || Y.length === 0) ? (T(A, n, ut), E(null)) : I ? E(Y) : Y.length === 0 && E(null), d && D(Y), a && t && u(t, F(a, { file: z.file, fileList: Y, src: ut }));
|
|
3239
3239
|
},
|
|
3240
3240
|
[b, A, n, T, d, D, a, t, u, O, C]
|
|
3241
|
-
),
|
|
3242
|
-
s && D(
|
|
3243
|
-
}, [s, D,
|
|
3244
|
-
var
|
|
3245
|
-
const Y =
|
|
3241
|
+
), M = K(() => {
|
|
3242
|
+
s && D(R);
|
|
3243
|
+
}, [s, D, R]), P = K((z) => {
|
|
3244
|
+
var ct;
|
|
3245
|
+
const Y = z.url || z.thumbUrl;
|
|
3246
3246
|
if (!Y) return "";
|
|
3247
|
-
const ut = ((
|
|
3247
|
+
const ut = ((ct = z.response) == null ? void 0 : ct.src) ?? (typeof Y == "string" ? Y : ""), I = Yt().viewRes, at = ut && I ? I(ut) : Y;
|
|
3248
3248
|
return String(at).replace(/([?&])download=1(&|$)/, (wt, _t, xt) => xt ? _t : "");
|
|
3249
|
-
}, []),
|
|
3250
|
-
var
|
|
3251
|
-
const Y = ((
|
|
3252
|
-
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(ut) || /^data:image\//.test(P(
|
|
3253
|
-
}, [P]), [
|
|
3249
|
+
}, []), j = K((z) => {
|
|
3250
|
+
var I, at;
|
|
3251
|
+
const Y = ((I = z.response) == null ? void 0 : I.src) ?? z.name ?? "", ut = ((at = String(Y).split(".").pop()) == null ? void 0 : at.toLowerCase()) || "";
|
|
3252
|
+
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(ut) || /^data:image\//.test(P(z));
|
|
3253
|
+
}, [P]), [B, V] = ht({
|
|
3254
3254
|
url: "",
|
|
3255
3255
|
name: "",
|
|
3256
3256
|
urls: [],
|
|
3257
3257
|
current: 0,
|
|
3258
3258
|
open: !1
|
|
3259
|
-
}), X = K((
|
|
3260
|
-
const Y = P(
|
|
3259
|
+
}), X = K((z) => {
|
|
3260
|
+
const Y = P(z);
|
|
3261
3261
|
if (Y)
|
|
3262
|
-
if (
|
|
3263
|
-
const ut =
|
|
3264
|
-
|
|
3265
|
-
} else
|
|
3266
|
-
}, [P,
|
|
3267
|
-
(
|
|
3268
|
-
[J,
|
|
3262
|
+
if (j(z) && (R != null && R.length)) {
|
|
3263
|
+
const ut = R.filter((ct) => j(ct)), I = ut.map((ct) => P(ct)).filter(Boolean), at = ut.findIndex((ct) => (ct.uid || ct.url) === (z.uid || z.url));
|
|
3264
|
+
V({ url: Y, name: z.name, urls: I, current: at >= 0 ? at : 0, open: !0 });
|
|
3265
|
+
} else j(z) || window.open(Y, "_blank");
|
|
3266
|
+
}, [P, j, R]), ft = !!Yt().upload && !l, st = W, et = st.buttonText ?? o, mt = st.listType ?? v.listType, ot = st.maxCount, Z = (R == null ? void 0 : R.length) ?? 0, J = typeof ot == "number" && Z >= ot, dt = K(
|
|
3267
|
+
(z) => J ? (be.warning(`最多只能上传 ${ot} 个文件`), !1) : U(z),
|
|
3268
|
+
[J, ot, U]
|
|
3269
3269
|
);
|
|
3270
|
-
return /* @__PURE__ */ it("div", { onBlur:
|
|
3270
|
+
return /* @__PURE__ */ it("div", { onBlur: M, children: [
|
|
3271
3271
|
/* @__PURE__ */ w(
|
|
3272
3272
|
sn,
|
|
3273
3273
|
{
|
|
3274
|
-
...
|
|
3275
|
-
disabled: r ? !1 :
|
|
3276
|
-
fileList:
|
|
3277
|
-
onChange:
|
|
3274
|
+
...W,
|
|
3275
|
+
disabled: r ? !1 : W.disabled,
|
|
3276
|
+
fileList: R,
|
|
3277
|
+
onChange: L,
|
|
3278
3278
|
onPreview: X,
|
|
3279
3279
|
beforeUpload: dt,
|
|
3280
|
-
customRequest: ft ?
|
|
3280
|
+
customRequest: ft ? q : void 0,
|
|
3281
3281
|
action: ft ? void 0 : l || f,
|
|
3282
3282
|
openFileDialogOnClick: !r,
|
|
3283
|
-
children: !J && (m || (
|
|
3283
|
+
children: !J && (m || (mt === "picture-card" || mt === "picture-circle" ? /* @__PURE__ */ it("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
3284
3284
|
/* @__PURE__ */ w($r, {}),
|
|
3285
3285
|
/* @__PURE__ */ w("div", { style: { marginTop: 8 }, children: et })
|
|
3286
3286
|
] }) : /* @__PURE__ */ w(Zt, { icon: /* @__PURE__ */ w(Wn, {}), children: et })))
|
|
3287
3287
|
}
|
|
3288
3288
|
),
|
|
3289
3289
|
g && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: g }),
|
|
3290
|
-
|
|
3290
|
+
B.url && /* @__PURE__ */ w("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: B.urls.length > 1 ? /* @__PURE__ */ w(
|
|
3291
3291
|
Qt.PreviewGroup,
|
|
3292
3292
|
{
|
|
3293
3293
|
preview: {
|
|
3294
|
-
current:
|
|
3295
|
-
onOpenChange: (
|
|
3294
|
+
current: B.current,
|
|
3295
|
+
onOpenChange: (z) => !z && V((Y) => ({ ...Y, open: !1 }))
|
|
3296
3296
|
},
|
|
3297
|
-
children:
|
|
3297
|
+
children: B.urls.map((z, Y) => /* @__PURE__ */ w(
|
|
3298
3298
|
Qt,
|
|
3299
3299
|
{
|
|
3300
|
-
src:
|
|
3300
|
+
src: z,
|
|
3301
3301
|
style: { width: 1, height: 1 },
|
|
3302
3302
|
preview: {
|
|
3303
|
-
open:
|
|
3304
|
-
onOpenChange: (ut) => !ut &&
|
|
3303
|
+
open: B.open && B.current === Y,
|
|
3304
|
+
onOpenChange: (ut) => !ut && V((I) => ({ ...I, open: !1 }))
|
|
3305
3305
|
}
|
|
3306
3306
|
},
|
|
3307
3307
|
Y
|
|
@@ -3310,12 +3310,12 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3310
3310
|
) : /* @__PURE__ */ w(
|
|
3311
3311
|
Qt,
|
|
3312
3312
|
{
|
|
3313
|
-
src:
|
|
3314
|
-
alt:
|
|
3313
|
+
src: B.url,
|
|
3314
|
+
alt: B.name,
|
|
3315
3315
|
style: { width: 1, height: 1 },
|
|
3316
3316
|
preview: {
|
|
3317
|
-
open:
|
|
3318
|
-
onOpenChange: (
|
|
3317
|
+
open: B.open,
|
|
3318
|
+
onOpenChange: (z) => !z && V((Y) => ({ ...Y, open: !1 }))
|
|
3319
3319
|
}
|
|
3320
3320
|
}
|
|
3321
3321
|
) })
|
|
@@ -3339,18 +3339,18 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3339
3339
|
searchAction: y,
|
|
3340
3340
|
...l
|
|
3341
3341
|
}) => {
|
|
3342
|
-
const v = k((
|
|
3343
|
-
() =>
|
|
3342
|
+
const v = k((R) => R.addCommand), u = k((R) => R.getDataSet), T = k((R) => R.setDataSet), A = p(
|
|
3343
|
+
() => tt(t, i),
|
|
3344
3344
|
[t, i]
|
|
3345
|
-
), [x, S] =
|
|
3345
|
+
), [x, S] = ht(h || []), [, D] = ht(!1), g = zt.useRef(void 0), { get: C } = Hi(), N = p(() => {
|
|
3346
3346
|
if (A && n) return u(A, n);
|
|
3347
|
-
}, [A, n, u]), O = p(() => N ?? d ?? b, [N, d, b]),
|
|
3347
|
+
}, [A, n, u]), O = p(() => N ?? d ?? b, [N, d, b]), $ = K((R) => {
|
|
3348
3348
|
if (!(f != null && f.queryApi)) {
|
|
3349
3349
|
h && S(
|
|
3350
3350
|
h.filter(
|
|
3351
|
-
(
|
|
3352
|
-
var U,
|
|
3353
|
-
return ((U =
|
|
3351
|
+
(W) => {
|
|
3352
|
+
var U, q;
|
|
3353
|
+
return ((U = W.value) == null ? void 0 : U.toString().toLowerCase().includes(R.toLowerCase())) || ((q = W.label) == null ? void 0 : q.toString().toLowerCase().includes(R.toLowerCase()));
|
|
3354
3354
|
}
|
|
3355
3355
|
)
|
|
3356
3356
|
);
|
|
@@ -3360,45 +3360,45 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3360
3360
|
if (f != null && f.queryApi) {
|
|
3361
3361
|
D(!0);
|
|
3362
3362
|
try {
|
|
3363
|
-
const { queryApi:
|
|
3364
|
-
U && (P[U] =
|
|
3363
|
+
const { queryApi: W, keyWordParamName: U = "keyword", valueKey: q = "value", labelKey: L = "label", fixedParams: M = [] } = f, P = {};
|
|
3364
|
+
U && (P[U] = R), Array.isArray(M) && M.forEach((X) => {
|
|
3365
3365
|
X.key && (P[X.key] = X.value);
|
|
3366
3366
|
});
|
|
3367
|
-
const
|
|
3368
|
-
let
|
|
3369
|
-
Array.isArray(
|
|
3370
|
-
const
|
|
3371
|
-
value: X[
|
|
3372
|
-
label: X[
|
|
3367
|
+
const j = await C(W, P);
|
|
3368
|
+
let B = [];
|
|
3369
|
+
Array.isArray(j) ? B = j : j && Array.isArray(j.data) ? B = j.data : j && j.data && Array.isArray(j.data.records) ? B = j.data.records : j && j.result && Array.isArray(j.result) && (B = j.result);
|
|
3370
|
+
const V = B.map((X) => ({
|
|
3371
|
+
value: X[q],
|
|
3372
|
+
label: X[L] || X[q],
|
|
3373
3373
|
...X
|
|
3374
3374
|
}));
|
|
3375
|
-
S(
|
|
3376
|
-
} catch (
|
|
3377
|
-
console.error("Failed to fetch remote options:",
|
|
3375
|
+
S(V);
|
|
3376
|
+
} catch (W) {
|
|
3377
|
+
console.error("Failed to fetch remote options:", W), S([]);
|
|
3378
3378
|
} finally {
|
|
3379
3379
|
D(!1);
|
|
3380
3380
|
}
|
|
3381
3381
|
}
|
|
3382
3382
|
}, 500);
|
|
3383
3383
|
}, [f, h, C]);
|
|
3384
|
-
|
|
3384
|
+
zt.useEffect(() => {
|
|
3385
3385
|
!(f != null && f.queryApi) && h && S(h);
|
|
3386
3386
|
}, [h, f == null ? void 0 : f.queryApi]);
|
|
3387
|
-
const E = K((
|
|
3387
|
+
const E = K((R) => {
|
|
3388
3388
|
if (c) {
|
|
3389
|
-
c(
|
|
3389
|
+
c(R);
|
|
3390
3390
|
return;
|
|
3391
3391
|
}
|
|
3392
|
-
if (A && n && T(A, n,
|
|
3393
|
-
const { actionName:
|
|
3394
|
-
v(t,
|
|
3392
|
+
if (A && n && T(A, n, R), a && t) {
|
|
3393
|
+
const { actionName: W, arg: U } = Nt(a, R, { id: e, dataSet: i, dataSetField: n });
|
|
3394
|
+
v(t, F(W, U));
|
|
3395
3395
|
}
|
|
3396
|
-
}, [c, A, n, T, a, t, e, v]), _ = K((
|
|
3396
|
+
}, [c, A, n, T, a, t, e, v]), _ = K((R, W) => {
|
|
3397
3397
|
if (s) {
|
|
3398
|
-
s(
|
|
3398
|
+
s(R, W);
|
|
3399
3399
|
return;
|
|
3400
3400
|
}
|
|
3401
|
-
o && t && v(t,
|
|
3401
|
+
o && t && v(t, F(o, { value: R, option: W }));
|
|
3402
3402
|
}, [s, o, t, v]);
|
|
3403
3403
|
return /* @__PURE__ */ w(
|
|
3404
3404
|
un,
|
|
@@ -3410,7 +3410,7 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3410
3410
|
value: O,
|
|
3411
3411
|
onChange: E,
|
|
3412
3412
|
onSelect: _,
|
|
3413
|
-
onSearch:
|
|
3413
|
+
onSearch: $,
|
|
3414
3414
|
style: { width: "100%", ...l.style }
|
|
3415
3415
|
}
|
|
3416
3416
|
);
|
|
@@ -3432,20 +3432,20 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3432
3432
|
...y
|
|
3433
3433
|
}) => {
|
|
3434
3434
|
const [l] = Ae.useForm(), v = k((S) => S.addCommand), u = k((S) => S.setDataSet), T = p(
|
|
3435
|
-
() =>
|
|
3435
|
+
() => tt(t, i),
|
|
3436
3436
|
[t, i]
|
|
3437
3437
|
), A = (S) => {
|
|
3438
3438
|
if (h) {
|
|
3439
3439
|
h(S);
|
|
3440
3440
|
return;
|
|
3441
3441
|
}
|
|
3442
|
-
T && n && u(T, n, S), a && t && v(t,
|
|
3442
|
+
T && n && u(T, n, S), a && t && v(t, F(a, S));
|
|
3443
3443
|
}, x = () => {
|
|
3444
3444
|
if (l.resetFields(), m) {
|
|
3445
3445
|
m();
|
|
3446
3446
|
return;
|
|
3447
3447
|
}
|
|
3448
|
-
o && t && v(t,
|
|
3448
|
+
o && t && v(t, F(o, null));
|
|
3449
3449
|
};
|
|
3450
3450
|
return /* @__PURE__ */ it(Ae, { ...y, form: l, onFinish: A, children: [
|
|
3451
3451
|
f,
|
|
@@ -3497,46 +3497,46 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3497
3497
|
onScroll: C,
|
|
3498
3498
|
styles: N,
|
|
3499
3499
|
token: O,
|
|
3500
|
-
|
|
3500
|
+
...$
|
|
3501
3501
|
}) => {
|
|
3502
|
-
const E = k((J) => J.addCommand), _ = k((J) => J.getDataSet),
|
|
3503
|
-
() =>
|
|
3502
|
+
const E = k((J) => J.addCommand), _ = k((J) => J.getDataSet), R = k((J) => J.setDataSet), W = p(
|
|
3503
|
+
() => tt(t, i),
|
|
3504
3504
|
[t, i]
|
|
3505
|
-
), U = p(() => qt(N, {}), [N]),
|
|
3506
|
-
if (
|
|
3507
|
-
const J = _(
|
|
3505
|
+
), U = p(() => qt(N, {}), [N]), q = p(() => qt(O, {}), [O]), L = p(() => qt(y, ["源列表", "目标列表"]), [y]), M = p(() => qt(l, [">", "<"]), [l]), P = p(() => qt(v, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [v]), j = p(() => qt(m, !1), [m]), B = p(() => {
|
|
3506
|
+
if (W && n) {
|
|
3507
|
+
const J = _(W, n);
|
|
3508
3508
|
if (Array.isArray(J)) return J;
|
|
3509
3509
|
}
|
|
3510
|
-
}, [
|
|
3511
|
-
if (
|
|
3512
|
-
const J = _(
|
|
3510
|
+
}, [W, n, _]), V = p(() => {
|
|
3511
|
+
if (W && n) {
|
|
3512
|
+
const J = _(W, `${n}.dataSource`);
|
|
3513
3513
|
if (Array.isArray(J)) return J;
|
|
3514
3514
|
}
|
|
3515
|
-
}, [
|
|
3515
|
+
}, [W, n, _]), X = p(() => r ? V ?? qt(a, []) : W ? V ?? [] : qt(a, []), [r, W, V, a]), rt = p(() => r ? B ?? qt(o, []) : W ? B ?? [] : qt(o, []), [r, W, B, o]), ft = p(() => qt(c, []), [c]), st = K((J, dt, z) => {
|
|
3516
3516
|
if (S) {
|
|
3517
|
-
S(J, dt,
|
|
3517
|
+
S(J, dt, z);
|
|
3518
3518
|
return;
|
|
3519
3519
|
}
|
|
3520
|
-
|
|
3521
|
-
}, [S,
|
|
3520
|
+
W && n && R(W, n, J), u && t && E(t, F(u, { targetKeys: J, direction: dt, moveKeys: z }));
|
|
3521
|
+
}, [S, W, n, R, u, t, E]), et = K((J, dt) => {
|
|
3522
3522
|
if (D) {
|
|
3523
3523
|
D(J, dt);
|
|
3524
3524
|
return;
|
|
3525
3525
|
}
|
|
3526
|
-
T && t && E(t,
|
|
3527
|
-
}, [D, T, t, E]),
|
|
3526
|
+
T && t && E(t, F(T, { sourceSelectedKeys: J, targetSelectedKeys: dt }));
|
|
3527
|
+
}, [D, T, t, E]), mt = K((J, dt) => {
|
|
3528
3528
|
if (g) {
|
|
3529
3529
|
g(J, dt);
|
|
3530
3530
|
return;
|
|
3531
3531
|
}
|
|
3532
|
-
A && t && E(t,
|
|
3533
|
-
}, [g, A, t, E]),
|
|
3532
|
+
A && t && E(t, F(A, { direction: J, value: dt }));
|
|
3533
|
+
}, [g, A, t, E]), ot = K((J, dt) => {
|
|
3534
3534
|
if (C) {
|
|
3535
3535
|
C(J, dt);
|
|
3536
3536
|
return;
|
|
3537
3537
|
}
|
|
3538
|
-
x && t && E(t,
|
|
3539
|
-
}, [C, x, t, E]),
|
|
3538
|
+
x && t && E(t, F(x, { direction: J }));
|
|
3539
|
+
}, [C, x, t, E]), Z = /* @__PURE__ */ w(
|
|
3540
3540
|
fn,
|
|
3541
3541
|
{
|
|
3542
3542
|
dataSource: X,
|
|
@@ -3546,21 +3546,21 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3546
3546
|
showSearch: d,
|
|
3547
3547
|
showSelectAll: b,
|
|
3548
3548
|
oneWay: h,
|
|
3549
|
-
pagination:
|
|
3549
|
+
pagination: j,
|
|
3550
3550
|
status: f || void 0,
|
|
3551
|
-
titles:
|
|
3552
|
-
actions:
|
|
3551
|
+
titles: L,
|
|
3552
|
+
actions: M,
|
|
3553
3553
|
locale: P,
|
|
3554
|
-
onChange:
|
|
3554
|
+
onChange: st,
|
|
3555
3555
|
onSelectChange: et,
|
|
3556
|
-
onSearch:
|
|
3557
|
-
onScroll:
|
|
3556
|
+
onSearch: mt,
|
|
3557
|
+
onScroll: ot,
|
|
3558
3558
|
styles: U,
|
|
3559
3559
|
render: (J) => J.title,
|
|
3560
|
-
|
|
3560
|
+
...$
|
|
3561
3561
|
}
|
|
3562
3562
|
);
|
|
3563
|
-
return
|
|
3563
|
+
return q && Object.keys(q).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Transfer: q } }, children: Z }) : Z;
|
|
3564
3564
|
}, Fe = (e, t) => {
|
|
3565
3565
|
if (e == null) return t;
|
|
3566
3566
|
if (typeof e == "string")
|
|
@@ -3604,20 +3604,20 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3604
3604
|
...u
|
|
3605
3605
|
}) => {
|
|
3606
3606
|
const T = k((_) => _.addCommand), A = k((_) => _.getDataSet), x = k((_) => _.setDataSet), S = p(
|
|
3607
|
-
() =>
|
|
3607
|
+
() => tt(t, i),
|
|
3608
3608
|
[t, i]
|
|
3609
3609
|
), D = p(() => Fe(l, {}), [l]), g = p(() => Fe(v, {}), [v]), C = p(() => ka(a), [a]), O = p(() => {
|
|
3610
3610
|
if (S && n) {
|
|
3611
3611
|
const _ = A(S, n);
|
|
3612
3612
|
if (typeof _ == "string") return _;
|
|
3613
3613
|
}
|
|
3614
|
-
}, [S, n, A]) ?? o,
|
|
3615
|
-
const
|
|
3614
|
+
}, [S, n, A]) ?? o, $ = K((_) => {
|
|
3615
|
+
const R = String(_);
|
|
3616
3616
|
if (y) {
|
|
3617
|
-
y(
|
|
3617
|
+
y(R);
|
|
3618
3618
|
return;
|
|
3619
3619
|
}
|
|
3620
|
-
S && n && x(S, n,
|
|
3620
|
+
S && n && x(S, n, R), f && t && T(t, F(f, { value: R }));
|
|
3621
3621
|
}, [y, S, n, x, f, t, T]), E = /* @__PURE__ */ w(
|
|
3622
3622
|
dn,
|
|
3623
3623
|
{
|
|
@@ -3630,13 +3630,13 @@ const Zo = Lt.memo(Hr), pa = 200, Fo = ({
|
|
|
3630
3630
|
size: b,
|
|
3631
3631
|
vertical: h,
|
|
3632
3632
|
shape: m,
|
|
3633
|
-
onChange:
|
|
3633
|
+
onChange: $,
|
|
3634
3634
|
styles: D
|
|
3635
3635
|
}
|
|
3636
3636
|
);
|
|
3637
3637
|
return g && Object.keys(g).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Segmented: g } }, children: E }) : E;
|
|
3638
3638
|
}, Oa = (e, t, r) => {
|
|
3639
|
-
const [i, n] =
|
|
3639
|
+
const [i, n] = ht(void 0), a = t === "100%", o = Vt(0);
|
|
3640
3640
|
return Er(() => {
|
|
3641
3641
|
if (!a || !e.current) {
|
|
3642
3642
|
n(void 0);
|
|
@@ -3693,7 +3693,7 @@ function _a(e) {
|
|
|
3693
3693
|
return t || (t = rr(e), vr.set(e, t)), t;
|
|
3694
3694
|
}
|
|
3695
3695
|
const Ea = ({ dictCode: e, value: t }) => {
|
|
3696
|
-
const [r, i] =
|
|
3696
|
+
const [r, i] = ht(null);
|
|
3697
3697
|
if (Ot(() => {
|
|
3698
3698
|
if (!e) {
|
|
3699
3699
|
i([]);
|
|
@@ -3783,7 +3783,7 @@ const Ea = ({ dictCode: e, value: t }) => {
|
|
|
3783
3783
|
return r;
|
|
3784
3784
|
}
|
|
3785
3785
|
}), t;
|
|
3786
|
-
},
|
|
3786
|
+
}, Le = 15, le = 10, La = [
|
|
3787
3787
|
{ value: "small", label: "紧凑" },
|
|
3788
3788
|
{ value: "middle", label: "默认" },
|
|
3789
3789
|
{ value: "large", label: "宽松" }
|
|
@@ -3802,7 +3802,7 @@ function br(e, t, r, i) {
|
|
|
3802
3802
|
size: i
|
|
3803
3803
|
};
|
|
3804
3804
|
}
|
|
3805
|
-
function
|
|
3805
|
+
function za(e, t, r, i, n) {
|
|
3806
3806
|
const a = (e == null ? void 0 : e.order) ?? t.map((m) => m.key), o = (e == null ? void 0 : e.visible) ?? {}, c = (e == null ? void 0 : e.fixed) ?? {}, s = (e == null ? void 0 : e.width) ?? {}, d = new Map(t.map((m) => [m.key, m])), b = [], h = /* @__PURE__ */ new Set();
|
|
3807
3807
|
for (const m of a) {
|
|
3808
3808
|
const f = d.get(m);
|
|
@@ -3828,7 +3828,7 @@ function La(e, t, r, i, n) {
|
|
|
3828
3828
|
size: (e == null ? void 0 : e.size) ?? n ?? "middle"
|
|
3829
3829
|
};
|
|
3830
3830
|
}
|
|
3831
|
-
const
|
|
3831
|
+
const ze = 420, wr = 440, Va = ({
|
|
3832
3832
|
open: e,
|
|
3833
3833
|
position: t,
|
|
3834
3834
|
rowIndexVisible: r,
|
|
@@ -3842,85 +3842,85 @@ const Le = 420, wr = 440, Va = ({
|
|
|
3842
3842
|
onSave: b,
|
|
3843
3843
|
onClose: h
|
|
3844
3844
|
}) => {
|
|
3845
|
-
const [m, f] =
|
|
3845
|
+
const [m, f] = ht(r), [y, l] = ht(i), [v, u] = ht(o), [T, A] = ht(s), [x, S] = ht(null);
|
|
3846
3846
|
Ot(() => {
|
|
3847
3847
|
e && (f(r), l([...i]), u(o), A(s));
|
|
3848
3848
|
}, [e, r, i, o, s]);
|
|
3849
3849
|
const D = K(
|
|
3850
|
-
(
|
|
3851
|
-
queueMicrotask(() => b(
|
|
3850
|
+
(j) => {
|
|
3851
|
+
queueMicrotask(() => b(j));
|
|
3852
3852
|
},
|
|
3853
3853
|
[b]
|
|
3854
3854
|
), g = K(
|
|
3855
|
-
(B,
|
|
3855
|
+
(j, B, V, X) => br(j, B, V ?? v, X ?? T),
|
|
3856
3856
|
[v, T]
|
|
3857
3857
|
), C = K(() => {
|
|
3858
3858
|
f(n);
|
|
3859
|
-
const
|
|
3860
|
-
l(
|
|
3859
|
+
const j = a.map((B) => ({ ...B }));
|
|
3860
|
+
l(j), u(c), A(d), D(br(n, j, c, d));
|
|
3861
3861
|
}, [n, a, c, d, D]), N = K(
|
|
3862
|
-
(
|
|
3863
|
-
l((
|
|
3864
|
-
const
|
|
3865
|
-
return D(g(m,
|
|
3862
|
+
(j) => {
|
|
3863
|
+
l((B) => {
|
|
3864
|
+
const V = B.map((X) => X.key === j ? { ...X, visible: !X.visible } : X);
|
|
3865
|
+
return D(g(m, V)), V;
|
|
3866
3866
|
});
|
|
3867
3867
|
},
|
|
3868
3868
|
[m, g, D]
|
|
3869
3869
|
), O = K(
|
|
3870
|
-
(
|
|
3871
|
-
l((
|
|
3872
|
-
const X =
|
|
3870
|
+
(j, B) => {
|
|
3871
|
+
l((V) => {
|
|
3872
|
+
const X = V.map((rt) => rt.key === j ? { ...rt, fixed: B } : rt);
|
|
3873
3873
|
return D(g(m, X)), X;
|
|
3874
3874
|
});
|
|
3875
3875
|
},
|
|
3876
3876
|
[m, g, D]
|
|
3877
|
-
),
|
|
3878
|
-
(
|
|
3879
|
-
l((
|
|
3880
|
-
const X =
|
|
3877
|
+
), $ = K(
|
|
3878
|
+
(j, B) => {
|
|
3879
|
+
l((V) => {
|
|
3880
|
+
const X = V.map((rt) => rt.key === j ? { ...rt, width: B } : rt);
|
|
3881
3881
|
return D(g(m, X)), X;
|
|
3882
3882
|
});
|
|
3883
3883
|
},
|
|
3884
3884
|
[m, g, D]
|
|
3885
3885
|
), E = K(
|
|
3886
|
-
(
|
|
3887
|
-
l((
|
|
3888
|
-
const X =
|
|
3889
|
-
if (!X) return
|
|
3890
|
-
const rt = typeof X.width == "number" ? X.width : 80, ft = Math.max(
|
|
3891
|
-
return D(g(m,
|
|
3886
|
+
(j, B) => {
|
|
3887
|
+
l((V) => {
|
|
3888
|
+
const X = V.find((et) => et.key === j);
|
|
3889
|
+
if (!X) return V;
|
|
3890
|
+
const rt = typeof X.width == "number" ? X.width : 80, ft = Math.max(Le, rt + B), st = V.map((et) => et.key === j ? { ...et, width: ft } : et);
|
|
3891
|
+
return D(g(m, st)), st;
|
|
3892
3892
|
});
|
|
3893
3893
|
},
|
|
3894
3894
|
[m, g, D]
|
|
3895
3895
|
), _ = K(
|
|
3896
|
-
(
|
|
3897
|
-
if (
|
|
3898
|
-
const
|
|
3899
|
-
|
|
3896
|
+
(j, B) => {
|
|
3897
|
+
if (B < 0 || B >= y.length) return;
|
|
3898
|
+
const V = [...y], [X] = V.splice(j, 1);
|
|
3899
|
+
V.splice(B, 0, X), l(V), D(g(m, V));
|
|
3900
3900
|
},
|
|
3901
3901
|
[y, m, g, D]
|
|
3902
|
-
),
|
|
3903
|
-
(
|
|
3904
|
-
f(
|
|
3902
|
+
), R = K(
|
|
3903
|
+
(j) => {
|
|
3904
|
+
f(j), D(g(j, y));
|
|
3905
3905
|
},
|
|
3906
3906
|
[y, g, D]
|
|
3907
|
-
),
|
|
3908
|
-
(
|
|
3909
|
-
u(
|
|
3907
|
+
), W = K(
|
|
3908
|
+
(j) => {
|
|
3909
|
+
u(j), D(g(m, y, j, T));
|
|
3910
3910
|
},
|
|
3911
3911
|
[m, y, T, g, D]
|
|
3912
3912
|
), U = K(
|
|
3913
|
-
(
|
|
3914
|
-
A(
|
|
3913
|
+
(j) => {
|
|
3914
|
+
A(j), D(g(m, y, v, j));
|
|
3915
3915
|
},
|
|
3916
3916
|
[m, y, v, g, D]
|
|
3917
|
-
),
|
|
3918
|
-
S(
|
|
3919
|
-
},
|
|
3920
|
-
|
|
3921
|
-
},
|
|
3922
|
-
let
|
|
3923
|
-
return typeof window < "u" && (
|
|
3917
|
+
), q = (j) => (B) => {
|
|
3918
|
+
S(j), B.dataTransfer.effectAllowed = "move", B.dataTransfer.setData("text/plain", String(j));
|
|
3919
|
+
}, L = (j) => (B) => {
|
|
3920
|
+
B.preventDefault(), B.dataTransfer.dropEffect = "move", !(x === null || x === j) && (_(x, j), S(j));
|
|
3921
|
+
}, M = () => S(null), P = t != null ? (() => {
|
|
3922
|
+
let j = t.y, B = t.x;
|
|
3923
|
+
return typeof window < "u" && (B + ze > window.innerWidth && (B = window.innerWidth - ze - 16), B < 16 && (B = 16), j + wr > window.innerHeight && (j = Math.max(16, window.innerHeight - wr - 16)), j < 16 && (j = 16)), { margin: 0, top: j, left: B };
|
|
3924
3924
|
})() : void 0;
|
|
3925
3925
|
return /* @__PURE__ */ w(
|
|
3926
3926
|
Cr,
|
|
@@ -3929,7 +3929,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
3929
3929
|
open: e,
|
|
3930
3930
|
onCancel: h,
|
|
3931
3931
|
footer: null,
|
|
3932
|
-
width:
|
|
3932
|
+
width: ze,
|
|
3933
3933
|
destroyOnHidden: !0,
|
|
3934
3934
|
centered: t == null,
|
|
3935
3935
|
style: P,
|
|
@@ -3941,11 +3941,11 @@ const Le = 420, wr = 440, Va = ({
|
|
|
3941
3941
|
ae,
|
|
3942
3942
|
{
|
|
3943
3943
|
checked: m,
|
|
3944
|
-
onChange: (
|
|
3944
|
+
onChange: (j) => R(j.target.checked),
|
|
3945
3945
|
children: "序号列"
|
|
3946
3946
|
}
|
|
3947
3947
|
),
|
|
3948
|
-
/* @__PURE__ */ w(ae, { checked: v, onChange: (
|
|
3948
|
+
/* @__PURE__ */ w(ae, { checked: v, onChange: (j) => W(j.target.checked), children: "自动滚动" }),
|
|
3949
3949
|
/* @__PURE__ */ it(Ut, { align: "center", children: [
|
|
3950
3950
|
/* @__PURE__ */ w("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
3951
3951
|
/* @__PURE__ */ w(
|
|
@@ -3954,7 +3954,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
3954
3954
|
size: "small",
|
|
3955
3955
|
value: T,
|
|
3956
3956
|
onChange: U,
|
|
3957
|
-
options: [...
|
|
3957
|
+
options: [...La],
|
|
3958
3958
|
style: { width: 80 }
|
|
3959
3959
|
}
|
|
3960
3960
|
)
|
|
@@ -3967,28 +3967,28 @@ const Le = 420, wr = 440, Va = ({
|
|
|
3967
3967
|
/* @__PURE__ */ w("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
3968
3968
|
/* @__PURE__ */ w("th", { className: "and-table-column-setting-th-fix", children: "固定" })
|
|
3969
3969
|
] }) }),
|
|
3970
|
-
/* @__PURE__ */ w("tbody", { children: y.map((
|
|
3971
|
-
const
|
|
3970
|
+
/* @__PURE__ */ w("tbody", { children: y.map((j, B) => {
|
|
3971
|
+
const V = typeof j.width == "number" ? j.width : null, X = j.width === "auto" || j.width === void 0 && V === null;
|
|
3972
3972
|
return /* @__PURE__ */ it(
|
|
3973
3973
|
"tr",
|
|
3974
3974
|
{
|
|
3975
|
-
className: `and-table-column-setting-row ${x ===
|
|
3975
|
+
className: `and-table-column-setting-row ${x === B ? "and-table-column-setting-row-dragging" : ""}`,
|
|
3976
3976
|
draggable: !0,
|
|
3977
|
-
onDragStart:
|
|
3978
|
-
onDragOver:
|
|
3979
|
-
onDragEnd:
|
|
3977
|
+
onDragStart: q(B),
|
|
3978
|
+
onDragOver: L(B),
|
|
3979
|
+
onDragEnd: M,
|
|
3980
3980
|
children: [
|
|
3981
3981
|
/* @__PURE__ */ w("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ w("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ w(Hn, {}) }) }),
|
|
3982
3982
|
/* @__PURE__ */ it("td", { className: "and-table-column-setting-td-name", children: [
|
|
3983
|
-
/* @__PURE__ */ w(ae, { checked:
|
|
3984
|
-
/* @__PURE__ */ w("span", { className: "and-table-column-setting-title", title:
|
|
3983
|
+
/* @__PURE__ */ w(ae, { checked: j.visible, onChange: () => N(j.key) }),
|
|
3984
|
+
/* @__PURE__ */ w("span", { className: "and-table-column-setting-title", title: j.title, children: j.title })
|
|
3985
3985
|
] }),
|
|
3986
3986
|
/* @__PURE__ */ w("td", { className: "and-table-column-setting-td-width", children: /* @__PURE__ */ it("div", { className: "and-table-column-setting-width", children: [
|
|
3987
3987
|
/* @__PURE__ */ w(
|
|
3988
3988
|
"span",
|
|
3989
3989
|
{
|
|
3990
3990
|
className: "and-table-column-setting-fix-btn",
|
|
3991
|
-
onClick: () => E(
|
|
3991
|
+
onClick: () => E(j.key, -le),
|
|
3992
3992
|
title: `减 ${le}px`,
|
|
3993
3993
|
children: /* @__PURE__ */ w(Un, {})
|
|
3994
3994
|
}
|
|
@@ -3997,14 +3997,14 @@ const Le = 420, wr = 440, Va = ({
|
|
|
3997
3997
|
Ar,
|
|
3998
3998
|
{
|
|
3999
3999
|
size: "small",
|
|
4000
|
-
min:
|
|
4000
|
+
min: Le,
|
|
4001
4001
|
step: le,
|
|
4002
|
-
value: X ? void 0 :
|
|
4002
|
+
value: X ? void 0 : V ?? 80,
|
|
4003
4003
|
placeholder: "auto",
|
|
4004
4004
|
controls: !1,
|
|
4005
4005
|
style: { width: 44 },
|
|
4006
4006
|
onChange: (rt) => {
|
|
4007
|
-
rt == null || typeof rt == "string" && rt === "" ?
|
|
4007
|
+
rt == null || typeof rt == "string" && rt === "" ? $(j.key, "auto") : $(j.key, Math.max(Le, Number(rt)));
|
|
4008
4008
|
}
|
|
4009
4009
|
}
|
|
4010
4010
|
),
|
|
@@ -4012,7 +4012,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4012
4012
|
"span",
|
|
4013
4013
|
{
|
|
4014
4014
|
className: "and-table-column-setting-fix-btn",
|
|
4015
|
-
onClick: () => E(
|
|
4015
|
+
onClick: () => E(j.key, le),
|
|
4016
4016
|
title: `加 ${le}px`,
|
|
4017
4017
|
children: /* @__PURE__ */ w($r, {})
|
|
4018
4018
|
}
|
|
@@ -4022,8 +4022,8 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4022
4022
|
/* @__PURE__ */ w(
|
|
4023
4023
|
"span",
|
|
4024
4024
|
{
|
|
4025
|
-
className: `and-table-column-setting-fix-btn ${
|
|
4026
|
-
onClick: () => O(
|
|
4025
|
+
className: `and-table-column-setting-fix-btn ${j.fixed === "left" ? "active" : ""}`,
|
|
4026
|
+
onClick: () => O(j.key, j.fixed === "left" ? !1 : "left"),
|
|
4027
4027
|
title: "固定到左侧",
|
|
4028
4028
|
children: /* @__PURE__ */ w(Mr, {})
|
|
4029
4029
|
}
|
|
@@ -4032,8 +4032,8 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4032
4032
|
/* @__PURE__ */ w(
|
|
4033
4033
|
"span",
|
|
4034
4034
|
{
|
|
4035
|
-
className: `and-table-column-setting-fix-btn ${
|
|
4036
|
-
onClick: () => O(
|
|
4035
|
+
className: `and-table-column-setting-fix-btn ${j.fixed === "right" ? "active" : ""}`,
|
|
4036
|
+
onClick: () => O(j.key, j.fixed === "right" ? !1 : "right"),
|
|
4037
4037
|
title: "固定到右侧",
|
|
4038
4038
|
children: /* @__PURE__ */ w(Rr, {})
|
|
4039
4039
|
}
|
|
@@ -4041,7 +4041,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4041
4041
|
] }) })
|
|
4042
4042
|
]
|
|
4043
4043
|
},
|
|
4044
|
-
|
|
4044
|
+
j.key
|
|
4045
4045
|
);
|
|
4046
4046
|
}) })
|
|
4047
4047
|
] }) }),
|
|
@@ -4078,59 +4078,59 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4078
4078
|
showFooter: C,
|
|
4079
4079
|
renderTitle: N,
|
|
4080
4080
|
renderSummary: O,
|
|
4081
|
-
renderFooter:
|
|
4081
|
+
renderFooter: $,
|
|
4082
4082
|
children: E,
|
|
4083
4083
|
token: _,
|
|
4084
|
-
columnSettingOpenKey:
|
|
4085
|
-
columnSettingsKey:
|
|
4084
|
+
columnSettingOpenKey: R,
|
|
4085
|
+
columnSettingsKey: W,
|
|
4086
4086
|
...U
|
|
4087
4087
|
}) => {
|
|
4088
|
-
const
|
|
4089
|
-
if (
|
|
4090
|
-
if (typeof
|
|
4088
|
+
const q = k((H) => H.addCommand), L = k((H) => H.getDataSet), M = k((H) => H.setDataSet), [P, j] = ht([]), B = Vt(null), [V, X] = ht(void 0), rt = K((H, nt) => {
|
|
4089
|
+
if (H == null) return nt;
|
|
4090
|
+
if (typeof H == "string")
|
|
4091
4091
|
try {
|
|
4092
|
-
return JSON.parse(
|
|
4092
|
+
return JSON.parse(H) ?? nt;
|
|
4093
4093
|
} catch {
|
|
4094
4094
|
return nt;
|
|
4095
4095
|
}
|
|
4096
|
-
return
|
|
4097
|
-
}, []), ft = p(() => Array.isArray(a) ? a : [], [a]),
|
|
4096
|
+
return H;
|
|
4097
|
+
}, []), ft = p(() => Array.isArray(a) ? a : [], [a]), st = p(() => Array.isArray(o) ? o : [], [o]), et = p(
|
|
4098
4098
|
() => ({
|
|
4099
|
-
dataSet:
|
|
4100
|
-
pagination: i ?
|
|
4101
|
-
selected: i ?
|
|
4102
|
-
columnSettingOpen: i && t ?
|
|
4103
|
-
columnSettings: i && t ?
|
|
4099
|
+
dataSet: tt(t, i),
|
|
4100
|
+
pagination: i ? tt(t, `${i}_pagination`) : void 0,
|
|
4101
|
+
selected: i ? tt(t, `${i}_selected`) : void 0,
|
|
4102
|
+
columnSettingOpen: i && t ? tt(t, `${i}_columnSettingOpen`) : void 0,
|
|
4103
|
+
columnSettings: i && t ? tt(t, `${i}_columnSettings`) : void 0
|
|
4104
4104
|
}),
|
|
4105
4105
|
[t, i]
|
|
4106
|
-
),
|
|
4107
|
-
(
|
|
4106
|
+
), mt = k(
|
|
4107
|
+
(H) => {
|
|
4108
4108
|
var nt;
|
|
4109
|
-
return et.columnSettingOpen ? ((nt =
|
|
4109
|
+
return et.columnSettingOpen ? ((nt = H.dataSets[et.columnSettingOpen]) == null ? void 0 : nt.value) === !0 : !1;
|
|
4110
4110
|
}
|
|
4111
|
-
),
|
|
4111
|
+
), ot = 420;
|
|
4112
4112
|
Er(() => {
|
|
4113
|
-
if (!
|
|
4114
|
-
const
|
|
4115
|
-
if (!
|
|
4116
|
-
const nt =
|
|
4113
|
+
if (!mt || !B.current) return;
|
|
4114
|
+
const H = B.current.querySelector(".ant-table-thead") || B.current.querySelector(".ant-table-header");
|
|
4115
|
+
if (!H) return;
|
|
4116
|
+
const nt = H.getBoundingClientRect();
|
|
4117
4117
|
X({
|
|
4118
|
-
x: nt.right -
|
|
4118
|
+
x: nt.right - ot,
|
|
4119
4119
|
y: nt.bottom + 8
|
|
4120
4120
|
});
|
|
4121
|
-
}, [
|
|
4122
|
-
const
|
|
4121
|
+
}, [mt]);
|
|
4122
|
+
const Z = k((H) => {
|
|
4123
4123
|
var St;
|
|
4124
|
-
const nt = et.columnSettings ? (St =
|
|
4124
|
+
const nt = et.columnSettings ? (St = H.dataSets[et.columnSettings]) == null ? void 0 : St.value : void 0;
|
|
4125
4125
|
return typeof nt == "object" && nt !== null ? nt : void 0;
|
|
4126
|
-
}), J = oi(et.dataSet, n), dt = p(() => et.dataSet ? J : (c == null ? void 0 : c.data) || [], [et.dataSet, J, c == null ? void 0 : c.data]),
|
|
4127
|
-
() => Y ? { components: { Table:
|
|
4128
|
-
[Y,
|
|
4129
|
-
),
|
|
4130
|
-
(
|
|
4131
|
-
), at = p(() => et.pagination ?
|
|
4132
|
-
if (!
|
|
4133
|
-
const
|
|
4126
|
+
}), J = oi(et.dataSet, n), dt = p(() => et.dataSet ? J : (c == null ? void 0 : c.data) || [], [et.dataSet, J, c == null ? void 0 : c.data]), z = p(() => rt(_, {}), [_, rt]), Y = z && Object.keys(z).length > 0, ut = p(
|
|
4127
|
+
() => Y ? { components: { Table: z } } : void 0,
|
|
4128
|
+
[Y, z]
|
|
4129
|
+
), I = k(
|
|
4130
|
+
(H) => et.pagination ? H.dataSets[et.pagination] : void 0
|
|
4131
|
+
), at = p(() => et.pagination ? L(et.pagination, "") || {} : {}, [et.pagination, L, I]), ct = p(() => !(l === !1 || typeof l == "object" && (l == null ? void 0 : l.visible) === !1), [l]), wt = p(() => {
|
|
4132
|
+
if (!ct) return !1;
|
|
4133
|
+
const H = typeof l == "object" ? l : {}, nt = U || {}, St = H.showSizeChanger ?? nt["pagination-showSizeChanger"] ?? !0, gt = H.showQuickJumper ?? nt["pagination-showQuickJumper"] ?? !1, vt = H.simple ?? nt["pagination-simple"] ?? !1, jt = H.defaultPageSize ?? nt["pagination-defaultPageSize"] ?? 10, Wt = H.pageSizeOptions ?? nt["pagination-pageSizeOptions"] ?? "10,20,50,100", $e = typeof Wt == "string" ? Wt.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Wt) ? Wt : [10, 20, 50, 100];
|
|
4134
4134
|
return {
|
|
4135
4135
|
...at,
|
|
4136
4136
|
showSizeChanger: St,
|
|
@@ -4138,34 +4138,34 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4138
4138
|
simple: vt,
|
|
4139
4139
|
defaultPageSize: jt,
|
|
4140
4140
|
pageSizeOptions: $e,
|
|
4141
|
-
showTotal: (It, ne) => (
|
|
4141
|
+
showTotal: (It, ne) => (H.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ne[0])).replace("${range[1]}", String(ne[1])).replace("${range}", `${ne[0]}-${ne[1]}`),
|
|
4142
4142
|
onChange: (It, ne) => {
|
|
4143
|
-
et.pagination &&
|
|
4143
|
+
et.pagination && M(et.pagination, "", { ...at, current: It, pageSize: ne }), y && t && q(t, F(y, null));
|
|
4144
4144
|
},
|
|
4145
4145
|
hideOnSinglePage: !1
|
|
4146
4146
|
};
|
|
4147
|
-
}, [
|
|
4148
|
-
t &&
|
|
4149
|
-
}, [t,
|
|
4147
|
+
}, [ct, l, U, at, et.pagination, M, y, t, q]), _t = K((H, nt) => {
|
|
4148
|
+
t && q(t, F(H.action, { ...nt }));
|
|
4149
|
+
}, [t, q]), xt = p(() => ft.map((H) => {
|
|
4150
4150
|
let nt = !1;
|
|
4151
|
-
|
|
4152
|
-
const St =
|
|
4151
|
+
H.fixed === !0 || H.fixed === "left" ? nt = "left" : H.fixed === "right" && (nt = "right");
|
|
4152
|
+
const St = H.width;
|
|
4153
4153
|
return {
|
|
4154
|
-
key: String(
|
|
4155
|
-
title: typeof
|
|
4156
|
-
visible:
|
|
4154
|
+
key: String(H.key ?? H.dataIndex ?? ""),
|
|
4155
|
+
title: typeof H.title == "string" ? H.title : "列",
|
|
4156
|
+
visible: H.visible !== !1,
|
|
4157
4157
|
fixed: nt,
|
|
4158
4158
|
width: typeof St == "number" ? St : "auto"
|
|
4159
4159
|
};
|
|
4160
|
-
}).filter((
|
|
4161
|
-
|
|
4160
|
+
}).filter((H) => H.key), [ft]), Tt = f === !0, Pt = !1, G = T === "small" || T === "large" ? T : "middle", { rowIndexVisible: pt, items: Et, scrollX: ge, size: Q } = p(() => za(
|
|
4161
|
+
Z,
|
|
4162
4162
|
xt,
|
|
4163
4163
|
Tt,
|
|
4164
4164
|
Pt,
|
|
4165
4165
|
G
|
|
4166
|
-
), [
|
|
4167
|
-
const
|
|
4168
|
-
pt &&
|
|
4166
|
+
), [Z, xt, Tt, Pt, G]), yt = !!(i && t), kt = p(() => {
|
|
4167
|
+
const H = [];
|
|
4168
|
+
pt && H.push({
|
|
4169
4169
|
title: "序号",
|
|
4170
4170
|
key: "rowIndex",
|
|
4171
4171
|
width: 60,
|
|
@@ -4180,67 +4180,67 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4180
4180
|
const vt = nt.get(gt.key);
|
|
4181
4181
|
if (!vt) return;
|
|
4182
4182
|
const jt = gt.fixed || void 0, Wt = gt.width === "auto" || gt.width === void 0 ? void 0 : gt.width;
|
|
4183
|
-
|
|
4183
|
+
H.push(Ka({
|
|
4184
4184
|
...vt,
|
|
4185
4185
|
dataIndex: vt.dataIndex || vt.key,
|
|
4186
4186
|
fixed: jt || vt.fixed,
|
|
4187
4187
|
width: Wt ?? vt.width
|
|
4188
4188
|
}));
|
|
4189
|
-
}), s !== !1 &&
|
|
4189
|
+
}), s !== !1 && st.length > 0 && H.push({
|
|
4190
4190
|
title: "操作",
|
|
4191
4191
|
key: "action",
|
|
4192
|
-
render: (gt, vt) => /* @__PURE__ */ w(Ut, { children:
|
|
4193
|
-
}),
|
|
4192
|
+
render: (gt, vt) => /* @__PURE__ */ w(Ut, { children: st.map((jt, Wt) => /* @__PURE__ */ w(mn, { title: jt.tooltip, children: /* @__PURE__ */ w("a", { onClick: () => _t(jt, vt), style: { marginRight: 5 }, children: jt.title }) }, Wt)) })
|
|
4193
|
+
}), H;
|
|
4194
4194
|
}, [
|
|
4195
4195
|
ft,
|
|
4196
|
-
|
|
4196
|
+
st,
|
|
4197
4197
|
pt,
|
|
4198
4198
|
Et,
|
|
4199
4199
|
s,
|
|
4200
4200
|
at,
|
|
4201
4201
|
_t
|
|
4202
4202
|
]), $t = K(() => {
|
|
4203
|
-
et.columnSettingOpen &&
|
|
4204
|
-
}, [et.columnSettingOpen,
|
|
4205
|
-
(
|
|
4206
|
-
et.columnSettings &&
|
|
4203
|
+
et.columnSettingOpen && M(et.columnSettingOpen, "", !1);
|
|
4204
|
+
}, [et.columnSettingOpen, M]), Kt = K(
|
|
4205
|
+
(H) => {
|
|
4206
|
+
et.columnSettings && M(et.columnSettings, "value", H);
|
|
4207
4207
|
},
|
|
4208
|
-
[et.columnSettings,
|
|
4208
|
+
[et.columnSettings, M]
|
|
4209
4209
|
), Yr = p(() => {
|
|
4210
4210
|
if (!b && d)
|
|
4211
4211
|
return {
|
|
4212
4212
|
selectedRowKeys: P,
|
|
4213
|
-
onChange: (
|
|
4214
|
-
|
|
4215
|
-
selectedRowKeys:
|
|
4213
|
+
onChange: (H, nt, St) => {
|
|
4214
|
+
j(H), et.selected && M(et.selected, "", H), h != null && h.trim() && t && q(t, F(h.trim(), {
|
|
4215
|
+
selectedRowKeys: H,
|
|
4216
4216
|
selectedRows: nt,
|
|
4217
4217
|
info: St
|
|
4218
4218
|
}));
|
|
4219
4219
|
}
|
|
4220
4220
|
};
|
|
4221
|
-
}, [d, b, P, et.selected,
|
|
4221
|
+
}, [d, b, P, et.selected, M, h, t, q]), ir = K((H) => {
|
|
4222
4222
|
if (!b) return;
|
|
4223
|
-
const St = [
|
|
4224
|
-
|
|
4225
|
-
}, [b, h, t, m, et.selected,
|
|
4223
|
+
const St = [H[m]];
|
|
4224
|
+
j(St), et.selected && M(et.selected, "", St), h != null && h.trim() && t && q(t, F(h.trim(), { record: H, selectedRowKeys: St }));
|
|
4225
|
+
}, [b, h, t, m, et.selected, M, q]), Jr = K((H) => b && P.includes(H[m]) ? "ant-table-row-selected" : "", [b, m, P]), Gr = K((H) => b ? { onClick: () => ir(H), style: { cursor: "pointer" } } : {}, [b, ir]), { style: Qr, className: Xr, ...ce } = U, Ct = p(() => {
|
|
4226
4226
|
if (x) return x;
|
|
4227
|
-
let
|
|
4228
|
-
if (String(
|
|
4229
|
-
}, [x, ce["scroll-x"], ce["scroll-y"]]), Ee = Oa(
|
|
4227
|
+
let H = ce["scroll-x"], nt = ce["scroll-y"];
|
|
4228
|
+
if (String(H) === "true" ? H = !0 : String(H) === "false" ? H = void 0 : H === "max-content" && (H = "max-content"), (nt === "" || nt === null || nt === void 0) && (nt = void 0), H !== void 0 || nt !== void 0) return { x: H, y: nt };
|
|
4229
|
+
}, [x, ce["scroll-x"], ce["scroll-y"]]), Ee = Oa(B, Ct == null ? void 0 : Ct.y, ct), Zr = p(() => {
|
|
4230
4230
|
if (!Ct && !yt) return;
|
|
4231
|
-
const
|
|
4232
|
-
return
|
|
4231
|
+
const H = yt ? ge ? !0 : "max-content" : Ct == null ? void 0 : Ct.x, nt = (Ct == null ? void 0 : Ct.y) === "100%" ? Ee : Ct == null ? void 0 : Ct.y;
|
|
4232
|
+
return H !== void 0 || nt !== void 0 ? { x: H, y: nt } : Ct ? Ct.y === "100%" ? { x: Ct.x, y: Ee } : Ct : void 0;
|
|
4233
4233
|
}, [Ct, Ee, yt, ge]), { titleSlot: pe, summarySlot: ve, footerSlot: ar, otherChildren: Fr } = p(() => {
|
|
4234
|
-
let
|
|
4234
|
+
let H = null, nt = null, St = null;
|
|
4235
4235
|
const gt = [];
|
|
4236
|
-
return
|
|
4237
|
-
if (!
|
|
4236
|
+
return zt.Children.forEach(E, (vt) => {
|
|
4237
|
+
if (!zt.isValidElement(vt)) {
|
|
4238
4238
|
gt.push(vt);
|
|
4239
4239
|
return;
|
|
4240
4240
|
}
|
|
4241
4241
|
const jt = vt.props["data-slot-type"];
|
|
4242
|
-
jt === "title" ?
|
|
4243
|
-
}), { titleSlot:
|
|
4242
|
+
jt === "title" ? H = vt : jt === "summary" ? nt = vt : jt === "footer" ? St = vt : gt.push(vt);
|
|
4243
|
+
}), { titleSlot: H, summarySlot: nt, footerSlot: St, otherChildren: gt };
|
|
4244
4244
|
}, [E]), Ir = p(() => {
|
|
4245
4245
|
if (!pe) {
|
|
4246
4246
|
if (N) return N;
|
|
@@ -4276,7 +4276,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4276
4276
|
return /* @__PURE__ */ it(
|
|
4277
4277
|
Nr,
|
|
4278
4278
|
{
|
|
4279
|
-
ref:
|
|
4279
|
+
ref: B,
|
|
4280
4280
|
vertical: !0,
|
|
4281
4281
|
style: { width: "100%", height: "100%", ...Qr },
|
|
4282
4282
|
className: Xr,
|
|
@@ -4284,10 +4284,10 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4284
4284
|
pe && /* @__PURE__ */ w("div", { "data-table-slot": "title", children: pe }),
|
|
4285
4285
|
/* @__PURE__ */ it("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4286
4286
|
b && (() => {
|
|
4287
|
-
const
|
|
4287
|
+
const H = (z == null ? void 0 : z.rowSelectedBg) || "#e6f4ff", nt = (z == null ? void 0 : z.rowSelectedHoverBg) || (z == null ? void 0 : z.rowSelectedBg) || "#bae0ff", St = z == null ? void 0 : z.rowSelectedColor, gt = (z == null ? void 0 : z.rowSelectedLinkColor) ?? St, vt = (z == null ? void 0 : z.rowSelectedLinkHoverColor) ?? gt;
|
|
4288
4288
|
return /* @__PURE__ */ w("style", { children: `
|
|
4289
4289
|
.ant-table-row-selected > td {
|
|
4290
|
-
background: ${
|
|
4290
|
+
background: ${H} !important;
|
|
4291
4291
|
${St ? `color: ${St};` : ""}
|
|
4292
4292
|
}
|
|
4293
4293
|
.ant-table-row-selected:hover > td {
|
|
@@ -4305,8 +4305,8 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4305
4305
|
yt && /* @__PURE__ */ w(
|
|
4306
4306
|
Va,
|
|
4307
4307
|
{
|
|
4308
|
-
open:
|
|
4309
|
-
position:
|
|
4308
|
+
open: mt,
|
|
4309
|
+
position: V,
|
|
4310
4310
|
rowIndexVisible: pt,
|
|
4311
4311
|
columnItems: Et,
|
|
4312
4312
|
defaultRowIndexVisible: Tt,
|
|
@@ -4341,19 +4341,19 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4341
4341
|
clickAction: y,
|
|
4342
4342
|
...l
|
|
4343
4343
|
}) => {
|
|
4344
|
-
const v = k((
|
|
4344
|
+
const v = k((L) => L.getDataSet), u = k((L) => L.getProps), T = p(
|
|
4345
4345
|
() => d === "selectedCount" && o && !a ? o : a,
|
|
4346
4346
|
[d, o, a]
|
|
4347
4347
|
), A = p(
|
|
4348
4348
|
() => d === "selectedCount" ? "selectedCount" : o,
|
|
4349
4349
|
[d, o]
|
|
4350
4350
|
), x = p(
|
|
4351
|
-
() =>
|
|
4351
|
+
() => tt(t, T),
|
|
4352
4352
|
[t, T]
|
|
4353
|
-
), S = k((
|
|
4353
|
+
), S = k((L) => {
|
|
4354
4354
|
if (!x) return;
|
|
4355
|
-
const
|
|
4356
|
-
return
|
|
4355
|
+
const M = Te(x).baseName;
|
|
4356
|
+
return L.dataSets[M];
|
|
4357
4357
|
}), { options: D } = ye(d), g = p(() => t && e ? u(t, e) : null, [t, e, u]), C = p(() => {
|
|
4358
4358
|
if (x && A)
|
|
4359
4359
|
return v(x, A);
|
|
@@ -4366,31 +4366,31 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4366
4366
|
return {};
|
|
4367
4367
|
}
|
|
4368
4368
|
return h;
|
|
4369
|
-
}, [h]), O = (
|
|
4370
|
-
if (d && D.length > 0 &&
|
|
4371
|
-
const
|
|
4372
|
-
return (
|
|
4369
|
+
}, [h]), O = (L) => L == null || L === "" || typeof L == "string" && L.trim() === "", $ = p(() => r ? i : C != null && C !== "" ? O(C) && m ? i : C : (g == null ? void 0 : g.content) !== void 0 ? g.content : i, [r, C, g == null ? void 0 : g.content, i, m]), E = p(() => {
|
|
4370
|
+
if (d && D.length > 0 && $ !== void 0 && $ !== null) {
|
|
4371
|
+
const L = re(D, $);
|
|
4372
|
+
return (L == null ? void 0 : L.label) ?? $;
|
|
4373
4373
|
}
|
|
4374
|
-
return
|
|
4375
|
-
}, [d, D,
|
|
4374
|
+
return $;
|
|
4375
|
+
}, [d, D, $]), _ = p(() => {
|
|
4376
4376
|
if (r)
|
|
4377
4377
|
return E;
|
|
4378
|
-
const
|
|
4379
|
-
return
|
|
4380
|
-
}, [r, E, b, N, g == null ? void 0 : g.formatType]),
|
|
4381
|
-
const
|
|
4382
|
-
return g && typeof g == "object" && Object.keys(g).forEach((
|
|
4383
|
-
!["content", "formatType", "formatValue", "clickAction"].includes(
|
|
4384
|
-
}),
|
|
4385
|
-
}, [l, g]),
|
|
4386
|
-
const
|
|
4387
|
-
if (
|
|
4388
|
-
const P =
|
|
4389
|
-
|
|
4390
|
-
}
|
|
4391
|
-
return U && (
|
|
4378
|
+
const L = (g == null ? void 0 : g.formatType) || b;
|
|
4379
|
+
return L && E !== void 0 && E !== null ? da(E, L, N) : E;
|
|
4380
|
+
}, [r, E, b, N, g == null ? void 0 : g.formatType]), R = p(() => {
|
|
4381
|
+
const L = { ...l };
|
|
4382
|
+
return g && typeof g == "object" && Object.keys(g).forEach((M) => {
|
|
4383
|
+
!["content", "formatType", "formatValue", "clickAction"].includes(M) && g[M] !== void 0 && g[M] !== null && (L[M] = g[M]);
|
|
4384
|
+
}), L;
|
|
4385
|
+
}, [l, g]), W = (g == null ? void 0 : g.color) ?? s, U = _e(W), q = p(() => {
|
|
4386
|
+
const L = { width: "100%" }, M = (g == null ? void 0 : g.fontSize) ?? c;
|
|
4387
|
+
if (M) {
|
|
4388
|
+
const P = M && !String(M).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${M}px` : M;
|
|
4389
|
+
L.fontSize = P;
|
|
4390
|
+
}
|
|
4391
|
+
return U && (L.color = U), L;
|
|
4392
4392
|
}, [c, U, g == null ? void 0 : g.fontSize]);
|
|
4393
|
-
return /* @__PURE__ */ w(qa, { ...
|
|
4393
|
+
return /* @__PURE__ */ w(qa, { ...R, style: { ...q, ...f, ...R.style }, children: _ != null && _ !== "" ? String(_) : n });
|
|
4394
4394
|
}, { Title: Wa } = tr, Sc = ({
|
|
4395
4395
|
id: e,
|
|
4396
4396
|
sessionId: t,
|
|
@@ -4405,7 +4405,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4405
4405
|
...b
|
|
4406
4406
|
}) => {
|
|
4407
4407
|
const h = k((S) => S.getDataSet), m = k((S) => S.getProps), f = p(
|
|
4408
|
-
() =>
|
|
4408
|
+
() => tt(t, a),
|
|
4409
4409
|
[t, a]
|
|
4410
4410
|
), y = p(() => t && e ? m(t, e) : null, [t, e, m]), l = p(() => {
|
|
4411
4411
|
if (f && o)
|
|
@@ -4433,7 +4433,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4433
4433
|
...d
|
|
4434
4434
|
}) => {
|
|
4435
4435
|
const b = k((x) => x.getDataSet), h = k((x) => x.getProps), m = p(
|
|
4436
|
-
() =>
|
|
4436
|
+
() => tt(t, a),
|
|
4437
4437
|
[t, a]
|
|
4438
4438
|
), f = p(() => t && e ? h(t, e) : null, [t, e, h]), y = p(() => {
|
|
4439
4439
|
if (m && o)
|
|
@@ -4474,7 +4474,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4474
4474
|
...f
|
|
4475
4475
|
}) => {
|
|
4476
4476
|
const y = k((N) => N.addCommand), l = k((N) => N.getDataSet), v = k((N) => N.setDataSet), u = p(
|
|
4477
|
-
() =>
|
|
4477
|
+
() => tt(t, i),
|
|
4478
4478
|
[t, i]
|
|
4479
4479
|
), T = p(() => Ua(a), [a]), A = p(() => o && o.length > 0 ? r ? o.map((N) => ({ ...N, forceRender: !0 })) : o : T.length > 0 ? T.map((N, O) => ({
|
|
4480
4480
|
key: N.key,
|
|
@@ -4485,7 +4485,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4485
4485
|
children: h ? h(N.key, O) : null
|
|
4486
4486
|
})) : [], [o, T, h, r]), x = p(() => {
|
|
4487
4487
|
if (u && n) return l(u, n);
|
|
4488
|
-
}, [u, n, l]), [S, D] =
|
|
4488
|
+
}, [u, n, l]), [S, D] = zt.useState(void 0), g = p(() => {
|
|
4489
4489
|
if (r && S)
|
|
4490
4490
|
return S;
|
|
4491
4491
|
const N = x ?? d ?? b;
|
|
@@ -4499,7 +4499,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4499
4499
|
s(N);
|
|
4500
4500
|
return;
|
|
4501
4501
|
}
|
|
4502
|
-
u && n && v(u, n, N), c && t && y(t,
|
|
4502
|
+
u && n && v(u, n, N), c && t && y(t, F(c, N));
|
|
4503
4503
|
}, [r, s, u, n, v, c, t, y]);
|
|
4504
4504
|
return /* @__PURE__ */ w(
|
|
4505
4505
|
yn,
|
|
@@ -4540,82 +4540,82 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4540
4540
|
onDrop: C,
|
|
4541
4541
|
onRightClick: N,
|
|
4542
4542
|
onLoad: O,
|
|
4543
|
-
treeData:
|
|
4543
|
+
treeData: $,
|
|
4544
4544
|
styles: E,
|
|
4545
4545
|
classNames: _,
|
|
4546
|
-
token:
|
|
4547
|
-
...
|
|
4546
|
+
token: R,
|
|
4547
|
+
...W
|
|
4548
4548
|
}) => {
|
|
4549
|
-
const U = k((G) => G.addCommand),
|
|
4550
|
-
() =>
|
|
4549
|
+
const U = k((G) => G.addCommand), q = k((G) => G.setDataSet), L = p(
|
|
4550
|
+
() => tt(t, i),
|
|
4551
4551
|
[t, i]
|
|
4552
|
-
),
|
|
4553
|
-
() => i ?
|
|
4552
|
+
), M = p(
|
|
4553
|
+
() => i ? tt(t, `${i}_selected`) : void 0,
|
|
4554
4554
|
[t, i]
|
|
4555
4555
|
), P = p(
|
|
4556
|
-
() => i ?
|
|
4556
|
+
() => i ? tt(t, `${i}_checked`) : void 0,
|
|
4557
4557
|
[t, i]
|
|
4558
|
-
),
|
|
4559
|
-
() => i ?
|
|
4558
|
+
), j = p(
|
|
4559
|
+
() => i ? tt(t, `${i}_expanded`) : void 0,
|
|
4560
4560
|
[t, i]
|
|
4561
|
-
),
|
|
4562
|
-
if (!
|
|
4561
|
+
), B = k((G) => {
|
|
4562
|
+
if (!L) return;
|
|
4563
4563
|
if (n)
|
|
4564
|
-
return G.getDataSet(
|
|
4565
|
-
const pt = G.dataSets[
|
|
4564
|
+
return G.getDataSet(L, n);
|
|
4565
|
+
const pt = G.dataSets[L];
|
|
4566
4566
|
if (!pt) return;
|
|
4567
4567
|
if (Array.isArray(pt)) return pt;
|
|
4568
4568
|
const Et = pt.value;
|
|
4569
4569
|
return Array.isArray(Et) ? Et : void 0;
|
|
4570
|
-
}),
|
|
4571
|
-
(G) =>
|
|
4570
|
+
}), V = k(
|
|
4571
|
+
(G) => M ? G.getDataSet(M, "") : void 0
|
|
4572
4572
|
), X = k(
|
|
4573
4573
|
(G) => P ? G.getDataSet(P, "") : void 0
|
|
4574
4574
|
), rt = k(
|
|
4575
|
-
(G) =>
|
|
4576
|
-
), ft = p(() => r ?
|
|
4575
|
+
(G) => j ? G.getDataSet(j, "") : void 0
|
|
4576
|
+
), ft = p(() => r ? B ?? $ ?? [] : L ? B ?? [] : $ ?? [], [r, L, B, $]), st = V, et = X, mt = rt, ot = K(
|
|
4577
4577
|
(G, pt) => {
|
|
4578
4578
|
if (v) {
|
|
4579
4579
|
v(G, pt);
|
|
4580
4580
|
return;
|
|
4581
4581
|
}
|
|
4582
|
-
|
|
4582
|
+
M && q(M, "", G), a && t && U(t, F(a, { selectedKeys: G }));
|
|
4583
4583
|
},
|
|
4584
|
-
[v,
|
|
4585
|
-
),
|
|
4584
|
+
[v, M, t, q, a, U]
|
|
4585
|
+
), Z = K(
|
|
4586
4586
|
(G, pt) => {
|
|
4587
4587
|
if (u) {
|
|
4588
4588
|
u(G, pt);
|
|
4589
4589
|
return;
|
|
4590
4590
|
}
|
|
4591
|
-
P &&
|
|
4591
|
+
P && q(P, "", G), o && t && U(t, F(o, { checkedKeys: G }));
|
|
4592
4592
|
},
|
|
4593
|
-
[u, P, t,
|
|
4593
|
+
[u, P, t, q, o, U]
|
|
4594
4594
|
), J = K(
|
|
4595
4595
|
(G, pt) => {
|
|
4596
4596
|
if (T) {
|
|
4597
4597
|
T(G, pt);
|
|
4598
4598
|
return;
|
|
4599
4599
|
}
|
|
4600
|
-
|
|
4600
|
+
j && q(j, "", G), c && t && U(t, F(c, { expandedKeys: G, expanded: pt.expanded }));
|
|
4601
4601
|
},
|
|
4602
|
-
[T,
|
|
4602
|
+
[T, j, t, q, c, U]
|
|
4603
4603
|
), dt = K(
|
|
4604
4604
|
(G) => {
|
|
4605
4605
|
if (A) {
|
|
4606
4606
|
A(G);
|
|
4607
4607
|
return;
|
|
4608
4608
|
}
|
|
4609
|
-
s && t && U(t,
|
|
4609
|
+
s && t && U(t, F(s, G));
|
|
4610
4610
|
},
|
|
4611
4611
|
[A, s, t, U]
|
|
4612
|
-
),
|
|
4612
|
+
), z = K(
|
|
4613
4613
|
(G) => {
|
|
4614
4614
|
if (x) {
|
|
4615
4615
|
x(G);
|
|
4616
4616
|
return;
|
|
4617
4617
|
}
|
|
4618
|
-
d && t && U(t,
|
|
4618
|
+
d && t && U(t, F(d, G));
|
|
4619
4619
|
},
|
|
4620
4620
|
[x, d, t, U]
|
|
4621
4621
|
), Y = K(
|
|
@@ -4624,7 +4624,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4624
4624
|
S(G);
|
|
4625
4625
|
return;
|
|
4626
4626
|
}
|
|
4627
|
-
b && t && U(t,
|
|
4627
|
+
b && t && U(t, F(b, G));
|
|
4628
4628
|
},
|
|
4629
4629
|
[S, b, t, U]
|
|
4630
4630
|
), ut = K(
|
|
@@ -4633,16 +4633,16 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4633
4633
|
D(G);
|
|
4634
4634
|
return;
|
|
4635
4635
|
}
|
|
4636
|
-
h && t && U(t,
|
|
4636
|
+
h && t && U(t, F(h, G));
|
|
4637
4637
|
},
|
|
4638
4638
|
[D, h, t, U]
|
|
4639
|
-
),
|
|
4639
|
+
), I = K(
|
|
4640
4640
|
(G) => {
|
|
4641
4641
|
if (g) {
|
|
4642
4642
|
g(G);
|
|
4643
4643
|
return;
|
|
4644
4644
|
}
|
|
4645
|
-
m && t && U(t,
|
|
4645
|
+
m && t && U(t, F(m, G));
|
|
4646
4646
|
},
|
|
4647
4647
|
[g, m, t, U]
|
|
4648
4648
|
), at = K(
|
|
@@ -4651,16 +4651,16 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4651
4651
|
C(G);
|
|
4652
4652
|
return;
|
|
4653
4653
|
}
|
|
4654
|
-
f && t && U(t,
|
|
4654
|
+
f && t && U(t, F(f, G));
|
|
4655
4655
|
},
|
|
4656
4656
|
[C, f, t, U]
|
|
4657
|
-
),
|
|
4657
|
+
), ct = K(
|
|
4658
4658
|
(G) => {
|
|
4659
4659
|
if (N) {
|
|
4660
4660
|
N(G);
|
|
4661
4661
|
return;
|
|
4662
4662
|
}
|
|
4663
|
-
y && t && U(t,
|
|
4663
|
+
y && t && U(t, F(y, G));
|
|
4664
4664
|
},
|
|
4665
4665
|
[N, y, t, U]
|
|
4666
4666
|
), wt = K(
|
|
@@ -4669,37 +4669,37 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4669
4669
|
O(G, pt);
|
|
4670
4670
|
return;
|
|
4671
4671
|
}
|
|
4672
|
-
l && t && U(t,
|
|
4672
|
+
l && t && U(t, F(l, { loadedKeys: G, ...pt }));
|
|
4673
4673
|
},
|
|
4674
4674
|
[O, l, t, U]
|
|
4675
4675
|
), _t = p(() => {
|
|
4676
|
-
if (!
|
|
4676
|
+
if (!R) return;
|
|
4677
4677
|
const G = {};
|
|
4678
|
-
return Object.entries(
|
|
4678
|
+
return Object.entries(R).forEach(([pt, Et]) => {
|
|
4679
4679
|
Et !== "" && Et !== void 0 && Et !== null && (G[pt] = Et);
|
|
4680
4680
|
}), Object.keys(G).length > 0 ? G : void 0;
|
|
4681
|
-
}, [
|
|
4681
|
+
}, [R]), xt = p(() => {
|
|
4682
4682
|
const G = {};
|
|
4683
4683
|
return r && (G.motion = !1), _t && (G.components = { Tree: _t }), Object.keys(G).length > 0 ? G : void 0;
|
|
4684
4684
|
}, [r, _t]), Pt = /* @__PURE__ */ w(
|
|
4685
4685
|
gn,
|
|
4686
4686
|
{
|
|
4687
|
-
...
|
|
4687
|
+
...W,
|
|
4688
4688
|
...r ? { motion: !1 } : {},
|
|
4689
4689
|
treeData: ft,
|
|
4690
|
-
...
|
|
4690
|
+
...M != null ? { selectedKeys: st ?? [] } : {},
|
|
4691
4691
|
...P != null ? { checkedKeys: et ?? [] } : {},
|
|
4692
|
-
...
|
|
4693
|
-
onSelect:
|
|
4694
|
-
onCheck:
|
|
4692
|
+
...j != null ? { expandedKeys: mt ?? [] } : {},
|
|
4693
|
+
onSelect: ot,
|
|
4694
|
+
onCheck: Z,
|
|
4695
4695
|
onExpand: J,
|
|
4696
4696
|
onDragEnd: dt,
|
|
4697
|
-
onDragEnter:
|
|
4697
|
+
onDragEnter: z,
|
|
4698
4698
|
onDragLeave: Y,
|
|
4699
4699
|
onDragOver: ut,
|
|
4700
|
-
onDragStart:
|
|
4700
|
+
onDragStart: I,
|
|
4701
4701
|
onDrop: at,
|
|
4702
|
-
onRightClick:
|
|
4702
|
+
onRightClick: ct,
|
|
4703
4703
|
onLoad: wt,
|
|
4704
4704
|
styles: E,
|
|
4705
4705
|
classNames: _
|
|
@@ -4720,7 +4720,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4720
4720
|
...d
|
|
4721
4721
|
}) => {
|
|
4722
4722
|
const b = k((T) => T.getDataSet), h = k((T) => T.getProps), m = p(
|
|
4723
|
-
() =>
|
|
4723
|
+
() => tt(t, a),
|
|
4724
4724
|
[t, a]
|
|
4725
4725
|
), f = p(() => t && e ? h(t, e) : null, [t, e, h]), y = p(() => {
|
|
4726
4726
|
if (m && o) return b(m, o);
|
|
@@ -4779,17 +4779,17 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4779
4779
|
token: y,
|
|
4780
4780
|
...l
|
|
4781
4781
|
}) => {
|
|
4782
|
-
const v = k((
|
|
4783
|
-
() =>
|
|
4782
|
+
const v = k((R) => R.addCommand), u = k((R) => R.getDataSet), T = k((R) => R.setDataSet), A = p(
|
|
4783
|
+
() => tt(t, i),
|
|
4784
4784
|
[t, i]
|
|
4785
4785
|
), x = p(() => {
|
|
4786
4786
|
if (A && n) return u(A, n);
|
|
4787
|
-
}, [A, n, u]), S = p(() => x ?? c ?? 0, [x, c]), D = p(() => b ?? d, [b, d]), g = p(() => m ?? h, [m, h]), C = p(() => Ve(s, []), [s]), N = p(() => Ve(f, {}), [f]), O = p(() => Ve(y, {}), [y]),
|
|
4787
|
+
}, [A, n, u]), S = p(() => x ?? c ?? 0, [x, c]), D = p(() => b ?? d, [b, d]), g = p(() => m ?? h, [m, h]), C = p(() => Ve(s, []), [s]), N = p(() => Ve(f, {}), [f]), O = p(() => Ve(y, {}), [y]), $ = K((R) => {
|
|
4788
4788
|
if (o) {
|
|
4789
|
-
o(
|
|
4789
|
+
o(R);
|
|
4790
4790
|
return;
|
|
4791
4791
|
}
|
|
4792
|
-
A && n && T(A, n,
|
|
4792
|
+
A && n && T(A, n, R), a && t && v(t, F(a, R));
|
|
4793
4793
|
}, [o, A, n, T, a, t, v]), E = Object.keys(O).length > 0, _ = /* @__PURE__ */ w(
|
|
4794
4794
|
vn,
|
|
4795
4795
|
{
|
|
@@ -4799,7 +4799,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4799
4799
|
styles: N,
|
|
4800
4800
|
orientation: D,
|
|
4801
4801
|
titlePlacement: g,
|
|
4802
|
-
onChange:
|
|
4802
|
+
onChange: $
|
|
4803
4803
|
}
|
|
4804
4804
|
);
|
|
4805
4805
|
return E ? /* @__PURE__ */ w(Mt, { theme: { components: { Steps: O } }, children: _ }) : _;
|
|
@@ -4849,7 +4849,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4849
4849
|
...m
|
|
4850
4850
|
}) => {
|
|
4851
4851
|
const f = k((x) => x.addCommand), y = k((x) => x.setDataSet), l = p(
|
|
4852
|
-
() =>
|
|
4852
|
+
() => tt(t, i),
|
|
4853
4853
|
[t, i]
|
|
4854
4854
|
), v = p(() => {
|
|
4855
4855
|
if (o) return o;
|
|
@@ -4860,7 +4860,7 @@ const Le = 420, wr = 440, Va = ({
|
|
|
4860
4860
|
d(x);
|
|
4861
4861
|
return;
|
|
4862
4862
|
}
|
|
4863
|
-
l && n && y(l, n, x), s && t && f(t,
|
|
4863
|
+
l && n && y(l, n, x), s && t && f(t, F(s, x));
|
|
4864
4864
|
}, [d, l, n, y, s, t, f]), A = p(() => h || (u.length > 0 ? u.map((x, S) => {
|
|
4865
4865
|
const D = b ? b(x.key, S) : null;
|
|
4866
4866
|
return /* @__PURE__ */ w("div", { "data-slide-key": x.key, children: D || /* @__PURE__ */ w("div", { style: {
|
|
@@ -4899,7 +4899,7 @@ const Ga = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
4899
4899
|
...s
|
|
4900
4900
|
}) => {
|
|
4901
4901
|
const d = k((u) => u.getDataSet), b = k((u) => u.getProps), h = p(() => t && e ? b(t, e) : null, [t, e, b]), m = p(
|
|
4902
|
-
() =>
|
|
4902
|
+
() => tt(t, i),
|
|
4903
4903
|
[t, i]
|
|
4904
4904
|
), f = p(() => {
|
|
4905
4905
|
if (m && n)
|
|
@@ -4942,7 +4942,7 @@ const Ec = ({
|
|
|
4942
4942
|
...c
|
|
4943
4943
|
}) => {
|
|
4944
4944
|
const s = k((v) => v.getDataSet), d = k((v) => v.getProps), b = p(
|
|
4945
|
-
() =>
|
|
4945
|
+
() => tt(t, n),
|
|
4946
4946
|
[t, n]
|
|
4947
4947
|
), h = p(() => t && e ? d(t, e) : null, [t, e, d]), m = p(() => {
|
|
4948
4948
|
if (b && a) return s(b, a);
|
|
@@ -4979,7 +4979,7 @@ const Ec = ({
|
|
|
4979
4979
|
...b
|
|
4980
4980
|
}) => {
|
|
4981
4981
|
const h = k((D) => D.getDataSet), m = k((D) => D.getProps), f = p(
|
|
4982
|
-
() =>
|
|
4982
|
+
() => tt(t, n),
|
|
4983
4983
|
[t, n]
|
|
4984
4984
|
), y = p(() => t && e ? m(t, e) : null, [t, e, m]), l = p(() => {
|
|
4985
4985
|
if (f && a) return h(f, a);
|
|
@@ -5014,8 +5014,8 @@ const Ec = ({
|
|
|
5014
5014
|
"textFontSizeSM",
|
|
5015
5015
|
"groupOverlapping"
|
|
5016
5016
|
].includes(N)) {
|
|
5017
|
-
const
|
|
5018
|
-
isNaN(
|
|
5017
|
+
const $ = typeof O == "string" ? parseInt(O, 10) : O;
|
|
5018
|
+
isNaN($) || (C[N] = $);
|
|
5019
5019
|
} else
|
|
5020
5020
|
C[N] = O;
|
|
5021
5021
|
}), Object.keys(C).length > 0 ? C : void 0;
|
|
@@ -5059,7 +5059,7 @@ const Ec = ({
|
|
|
5059
5059
|
...f
|
|
5060
5060
|
}) => {
|
|
5061
5061
|
const y = k((E) => E.getDataSet), l = k((E) => E.getProps), v = p(
|
|
5062
|
-
() =>
|
|
5062
|
+
() => tt(t, a),
|
|
5063
5063
|
[t, a]
|
|
5064
5064
|
), { options: u } = ye(c), T = p(() => {
|
|
5065
5065
|
if (d) {
|
|
@@ -5088,8 +5088,8 @@ const Ec = ({
|
|
|
5088
5088
|
return A && typeof A == "object" && Object.keys(A).forEach((_) => {
|
|
5089
5089
|
!["content", "color"].includes(_) && A[_] !== void 0 && A[_] !== null && (E[_] = A[_]);
|
|
5090
5090
|
}), E;
|
|
5091
|
-
}, [f, A]), N = (A == null ? void 0 : A.color) ?? b,
|
|
5092
|
-
return /* @__PURE__ */ w(kr, { ...C, color:
|
|
5091
|
+
}, [f, A]), N = (A == null ? void 0 : A.color) ?? b, $ = _e(N) || g;
|
|
5092
|
+
return /* @__PURE__ */ w(kr, { ...C, color: $, children: D || i });
|
|
5093
5093
|
}, Rc = ({
|
|
5094
5094
|
id: e,
|
|
5095
5095
|
sessionId: t,
|
|
@@ -5106,7 +5106,7 @@ const Ec = ({
|
|
|
5106
5106
|
...m
|
|
5107
5107
|
}) => {
|
|
5108
5108
|
const f = k((C) => C.addCommand), y = k((C) => C.setDataSet), l = p(
|
|
5109
|
-
() =>
|
|
5109
|
+
() => tt(t, i),
|
|
5110
5110
|
[t, i]
|
|
5111
5111
|
), v = n ?? (l ? "" : void 0), u = p(() => ({}), []), T = k((C) => {
|
|
5112
5112
|
if (!l) return u;
|
|
@@ -5117,13 +5117,13 @@ const Ec = ({
|
|
|
5117
5117
|
c(C, N);
|
|
5118
5118
|
return;
|
|
5119
5119
|
}
|
|
5120
|
-
l && y(l, v ?? "", { current: C, pageSize: N, total: S }), a && t && f(t,
|
|
5120
|
+
l && y(l, v ?? "", { current: C, pageSize: N, total: S }), a && t && f(t, F(a, { page: C, pageSize: N }));
|
|
5121
5121
|
}, [c, l, v, y, S, a, t, f]), g = K((C, N) => {
|
|
5122
5122
|
if (s) {
|
|
5123
5123
|
s(C, N);
|
|
5124
5124
|
return;
|
|
5125
5125
|
}
|
|
5126
|
-
l && y(l, v ?? "", { current: C, pageSize: N, total: S }), o && t && f(t,
|
|
5126
|
+
l && y(l, v ?? "", { current: C, pageSize: N, total: S }), o && t && f(t, F(o, { current: C, pageSize: N }));
|
|
5127
5127
|
}, [s, l, v, y, S, o, t, f]);
|
|
5128
5128
|
return /* @__PURE__ */ w(
|
|
5129
5129
|
Or,
|
|
@@ -5148,13 +5148,13 @@ const Ec = ({
|
|
|
5148
5148
|
children: n,
|
|
5149
5149
|
...a
|
|
5150
5150
|
}) => /* @__PURE__ */ w(Sn, { ...a, items: i, children: n }), De = (e) => Object.entries(e).map(([t, r]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${r}`).join("; "), Fa = ({ mode: e, arrowStyle: t, arrowIconPrev: r, arrowIconNext: i, children: n }) => {
|
|
5151
|
-
const a = Vt(null), o = Vt(null), [c, s] =
|
|
5151
|
+
const a = Vt(null), o = Vt(null), [c, s] = ht(0), [d, b] = ht(!1), [h, m] = ht(0), [f, y] = ht(0), l = e === "horizontal";
|
|
5152
5152
|
Ot(() => {
|
|
5153
5153
|
const D = () => {
|
|
5154
5154
|
if (!a.current || !o.current) return;
|
|
5155
5155
|
const C = a.current, N = o.current;
|
|
5156
|
-
let O = 0,
|
|
5157
|
-
l ? (O = C.clientWidth,
|
|
5156
|
+
let O = 0, $ = 0, E = !1;
|
|
5157
|
+
l ? (O = C.clientWidth, $ = N.scrollWidth, E = $ > O) : (O = C.clientHeight, $ = N.scrollHeight, E = $ > O), y(O), m($), b(E), E || s(0);
|
|
5158
5158
|
}, g = new ResizeObserver(D);
|
|
5159
5159
|
return a.current && g.observe(a.current), o.current && g.observe(o.current), D(), () => g.disconnect();
|
|
5160
5160
|
}, [l]);
|
|
@@ -5164,10 +5164,10 @@ const Ec = ({
|
|
|
5164
5164
|
const D = l ? ((g = a.current) == null ? void 0 : g.clientWidth) ?? 200 : ((C = a.current) == null ? void 0 : C.clientHeight) ?? 200;
|
|
5165
5165
|
s((N) => Math.max(0, N - D));
|
|
5166
5166
|
}, [l, v]), A = K(() => {
|
|
5167
|
-
var C, N, O,
|
|
5167
|
+
var C, N, O, $, E, _;
|
|
5168
5168
|
if (u) return;
|
|
5169
|
-
const D = l ? ((C = a.current) == null ? void 0 : C.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, g = l ? (((O = o.current) == null ? void 0 : O.scrollWidth) ?? 0) - (((
|
|
5170
|
-
s((
|
|
5169
|
+
const D = l ? ((C = a.current) == null ? void 0 : C.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, g = l ? (((O = o.current) == null ? void 0 : O.scrollWidth) ?? 0) - ((($ = a.current) == null ? void 0 : $.clientWidth) ?? 0) : (((E = o.current) == null ? void 0 : E.scrollHeight) ?? 0) - (((_ = a.current) == null ? void 0 : _.clientHeight) ?? 0);
|
|
5170
|
+
s((R) => Math.min(g, R + D));
|
|
5171
5171
|
}, [l, u]), x = r || (l ? /* @__PURE__ */ w(Mr, {}) : /* @__PURE__ */ w(Pn, {})), S = i || (l ? /* @__PURE__ */ w(Rr, {}) : /* @__PURE__ */ w(jr, {}));
|
|
5172
5172
|
return /* @__PURE__ */ it(
|
|
5173
5173
|
"div",
|
|
@@ -5287,21 +5287,21 @@ const Ec = ({
|
|
|
5287
5287
|
mode: C,
|
|
5288
5288
|
inlineCollapsed: N,
|
|
5289
5289
|
remoteUrl: O,
|
|
5290
|
-
overflowStrategy:
|
|
5290
|
+
overflowStrategy: $ = "default",
|
|
5291
5291
|
paginationArrowStyle: E,
|
|
5292
5292
|
paginationArrowIconPrev: _,
|
|
5293
|
-
paginationArrowIconNext:
|
|
5294
|
-
expandTrigger:
|
|
5293
|
+
paginationArrowIconNext: R,
|
|
5294
|
+
expandTrigger: W,
|
|
5295
5295
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
5296
5296
|
...U
|
|
5297
5297
|
}) => {
|
|
5298
|
-
const
|
|
5299
|
-
() =>
|
|
5298
|
+
const q = k((Q) => Q.addCommand), L = k((Q) => Q.setDataSet), M = p(
|
|
5299
|
+
() => tt(t, i),
|
|
5300
5300
|
[t, i]
|
|
5301
5301
|
), P = k(
|
|
5302
5302
|
(Q) => {
|
|
5303
|
-
if (
|
|
5304
|
-
return n ? Q.getDataSet(
|
|
5303
|
+
if (M)
|
|
5304
|
+
return n ? Q.getDataSet(M, n) : Q.dataSets[M];
|
|
5305
5305
|
}
|
|
5306
5306
|
// 使用 shallow 比较确保只有通过内容变更才触发更新
|
|
5307
5307
|
// 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
|
|
@@ -5309,22 +5309,22 @@ const Ec = ({
|
|
|
5309
5309
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
5310
5310
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
5311
5311
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
5312
|
-
),
|
|
5313
|
-
() => (
|
|
5314
|
-
[
|
|
5315
|
-
), X = p(() => r ?
|
|
5316
|
-
() =>
|
|
5317
|
-
[
|
|
5312
|
+
), j = p(() => ({}), []), B = P ?? j, V = p(
|
|
5313
|
+
() => (B == null ? void 0 : B.items) ?? (Array.isArray(B) ? B : void 0) ?? (Array.isArray(B == null ? void 0 : B.value) ? B.value : void 0),
|
|
5314
|
+
[B]
|
|
5315
|
+
), X = p(() => r ? V ?? f ?? [] : M ? V ?? [] : f ?? [], [r, M, V, f]), rt = p(
|
|
5316
|
+
() => B.selectedKeys ?? y,
|
|
5317
|
+
[B.selectedKeys, y]
|
|
5318
5318
|
), ft = p(
|
|
5319
|
-
() =>
|
|
5320
|
-
[
|
|
5321
|
-
),
|
|
5322
|
-
() =>
|
|
5319
|
+
() => B.openKeys ?? (D && g ? void 0 : l),
|
|
5320
|
+
[B.openKeys, D, g, l]
|
|
5321
|
+
), st = p(
|
|
5322
|
+
() => tt(t, D),
|
|
5323
5323
|
[t, D]
|
|
5324
5324
|
), et = k((Q) => {
|
|
5325
|
-
if (
|
|
5326
|
-
return Q.getDataSet(
|
|
5327
|
-
}),
|
|
5325
|
+
if (!B.openKeys && st && g)
|
|
5326
|
+
return Q.getDataSet(st, g);
|
|
5327
|
+
}), mt = p(() => {
|
|
5328
5328
|
const Q = (yt) => Array.isArray(yt) ? yt.map((kt) => {
|
|
5329
5329
|
const $t = { ...kt };
|
|
5330
5330
|
if ($t.icon && typeof $t.icon == "string") {
|
|
@@ -5334,10 +5334,10 @@ const Ec = ({
|
|
|
5334
5334
|
return $t.children && $t.children.length > 0 && ($t.children = Q($t.children)), $t;
|
|
5335
5335
|
}) : [];
|
|
5336
5336
|
return Q(X || []);
|
|
5337
|
-
}, [X]),
|
|
5337
|
+
}, [X]), ot = p(
|
|
5338
5338
|
() => rt,
|
|
5339
5339
|
[rt]
|
|
5340
|
-
),
|
|
5340
|
+
), Z = p(
|
|
5341
5341
|
() => ft ?? et,
|
|
5342
5342
|
[ft, et]
|
|
5343
5343
|
), J = K(
|
|
@@ -5346,66 +5346,66 @@ const Ec = ({
|
|
|
5346
5346
|
d(Q);
|
|
5347
5347
|
return;
|
|
5348
5348
|
}
|
|
5349
|
-
a && t &&
|
|
5349
|
+
a && t && q(
|
|
5350
5350
|
t,
|
|
5351
|
-
|
|
5351
|
+
F(a, { key: Q.key, keyPath: Q.keyPath })
|
|
5352
5352
|
);
|
|
5353
5353
|
},
|
|
5354
|
-
[d, a, t,
|
|
5354
|
+
[d, a, t, q]
|
|
5355
5355
|
), dt = K(
|
|
5356
5356
|
(Q) => {
|
|
5357
5357
|
if (b) {
|
|
5358
5358
|
b(Q);
|
|
5359
5359
|
return;
|
|
5360
5360
|
}
|
|
5361
|
-
if (
|
|
5361
|
+
if (M)
|
|
5362
5362
|
if (n) {
|
|
5363
|
-
const yt = k.getState().getDataSet(
|
|
5364
|
-
|
|
5363
|
+
const yt = k.getState().getDataSet(M, n) || {};
|
|
5364
|
+
L(M, n, { ...yt, selectedKeys: Q.selectedKeys });
|
|
5365
5365
|
} else
|
|
5366
|
-
|
|
5367
|
-
o && t &&
|
|
5366
|
+
L(M, "selectedKeys", Q.selectedKeys);
|
|
5367
|
+
o && t && q(
|
|
5368
5368
|
t,
|
|
5369
|
-
|
|
5369
|
+
F(o, { selectedKeys: Q.selectedKeys })
|
|
5370
5370
|
);
|
|
5371
5371
|
},
|
|
5372
5372
|
[
|
|
5373
5373
|
b,
|
|
5374
|
-
|
|
5374
|
+
M,
|
|
5375
5375
|
n,
|
|
5376
|
-
|
|
5376
|
+
L,
|
|
5377
5377
|
o,
|
|
5378
5378
|
t,
|
|
5379
|
-
|
|
5379
|
+
q
|
|
5380
5380
|
]
|
|
5381
|
-
),
|
|
5381
|
+
), z = K(
|
|
5382
5382
|
(Q) => {
|
|
5383
5383
|
if (h) {
|
|
5384
5384
|
h(Q);
|
|
5385
5385
|
return;
|
|
5386
5386
|
}
|
|
5387
|
-
if (
|
|
5387
|
+
if (M)
|
|
5388
5388
|
if (n) {
|
|
5389
|
-
const yt = k.getState().getDataSet(
|
|
5390
|
-
|
|
5389
|
+
const yt = k.getState().getDataSet(M, n) || {};
|
|
5390
|
+
L(M, n, { ...yt, openKeys: Q });
|
|
5391
5391
|
} else
|
|
5392
|
-
|
|
5393
|
-
else
|
|
5394
|
-
c && t &&
|
|
5392
|
+
L(M, "openKeys", Q);
|
|
5393
|
+
else st && g && L(st, g, Q);
|
|
5394
|
+
c && t && q(
|
|
5395
5395
|
t,
|
|
5396
|
-
|
|
5396
|
+
F(c, { openKeys: Q })
|
|
5397
5397
|
);
|
|
5398
5398
|
},
|
|
5399
5399
|
[
|
|
5400
5400
|
h,
|
|
5401
|
-
|
|
5401
|
+
M,
|
|
5402
5402
|
n,
|
|
5403
|
-
|
|
5403
|
+
st,
|
|
5404
5404
|
g,
|
|
5405
|
-
|
|
5405
|
+
L,
|
|
5406
5406
|
c,
|
|
5407
5407
|
t,
|
|
5408
|
-
|
|
5408
|
+
q
|
|
5409
5409
|
]
|
|
5410
5410
|
), Y = K(
|
|
5411
5411
|
(Q) => {
|
|
@@ -5413,16 +5413,16 @@ const Ec = ({
|
|
|
5413
5413
|
m(Q);
|
|
5414
5414
|
return;
|
|
5415
5415
|
}
|
|
5416
|
-
s && t &&
|
|
5416
|
+
s && t && q(
|
|
5417
5417
|
t,
|
|
5418
|
-
|
|
5418
|
+
F(s, {
|
|
5419
5419
|
selectedKeys: Q.selectedKeys,
|
|
5420
5420
|
key: Q.key
|
|
5421
5421
|
})
|
|
5422
5422
|
);
|
|
5423
5423
|
},
|
|
5424
|
-
[m, s, t,
|
|
5425
|
-
), ut = C === "inline" && N !== void 0 ? { inlineCollapsed: N } : {},
|
|
5424
|
+
[m, s, t, q]
|
|
5425
|
+
), ut = C === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, I = p(() => {
|
|
5426
5426
|
if (!A) return;
|
|
5427
5427
|
const Q = {};
|
|
5428
5428
|
return Object.entries(A).forEach(([yt, kt]) => {
|
|
@@ -5430,19 +5430,19 @@ const Ec = ({
|
|
|
5430
5430
|
}), Object.keys(Q).length > 0 ? Q : void 0;
|
|
5431
5431
|
}, [A]), at = r ? {
|
|
5432
5432
|
motion: { motionName: "" }
|
|
5433
|
-
} : {},
|
|
5433
|
+
} : {}, ct = p(() => {
|
|
5434
5434
|
if (typeof _ == "string" && _) {
|
|
5435
5435
|
const Q = Jt[_];
|
|
5436
5436
|
if (Q) return /* @__PURE__ */ w(Q, {});
|
|
5437
5437
|
}
|
|
5438
5438
|
return _;
|
|
5439
5439
|
}, [_]), wt = p(() => {
|
|
5440
|
-
if (typeof
|
|
5441
|
-
const Q = Jt[
|
|
5440
|
+
if (typeof R == "string" && R) {
|
|
5441
|
+
const Q = Jt[R];
|
|
5442
5442
|
if (Q) return /* @__PURE__ */ w(Q, {});
|
|
5443
5443
|
}
|
|
5444
|
-
return
|
|
5445
|
-
}, [
|
|
5444
|
+
return R;
|
|
5445
|
+
}, [R]), _t = p(() => $ === "pagination" || $ === "scroll" ? null : S, [$, S]), xt = Vn(), Tt = e || xt.replace(/:/g, "-"), Pt = p(() => {
|
|
5446
5446
|
var $t;
|
|
5447
5447
|
if (!u || typeof u == "function") return "";
|
|
5448
5448
|
const Q = ($t = u.subMenu) == null ? void 0 : $t.root;
|
|
@@ -5473,33 +5473,33 @@ const Ec = ({
|
|
|
5473
5473
|
...ut,
|
|
5474
5474
|
...at,
|
|
5475
5475
|
mode: C,
|
|
5476
|
-
items:
|
|
5477
|
-
selectedKeys:
|
|
5478
|
-
openKeys:
|
|
5476
|
+
items: mt,
|
|
5477
|
+
selectedKeys: ot,
|
|
5478
|
+
openKeys: Z,
|
|
5479
5479
|
defaultOpenKeys: v,
|
|
5480
5480
|
onClick: J,
|
|
5481
5481
|
onSelect: dt,
|
|
5482
|
-
onOpenChange:
|
|
5482
|
+
onOpenChange: z,
|
|
5483
5483
|
onDeselect: Y,
|
|
5484
5484
|
styles: u,
|
|
5485
5485
|
classNames: T,
|
|
5486
5486
|
expandIcon: x,
|
|
5487
5487
|
overflowedIndicator: _t,
|
|
5488
|
-
disabledOverflow:
|
|
5488
|
+
disabledOverflow: $ !== "default"
|
|
5489
5489
|
}
|
|
5490
|
-
), pt = () =>
|
|
5490
|
+
), pt = () => $ === "pagination" ? /* @__PURE__ */ w(
|
|
5491
5491
|
Fa,
|
|
5492
5492
|
{
|
|
5493
5493
|
mode: C || "horizontal",
|
|
5494
5494
|
arrowStyle: E,
|
|
5495
|
-
arrowIconPrev:
|
|
5495
|
+
arrowIconPrev: ct,
|
|
5496
5496
|
arrowIconNext: wt,
|
|
5497
5497
|
children: G
|
|
5498
5498
|
}
|
|
5499
|
-
) :
|
|
5499
|
+
) : $ === "scroll" ? /* @__PURE__ */ w(Ia, { mode: C || "horizontal", children: G }) : G, Et = p(() => {
|
|
5500
5500
|
const Q = {};
|
|
5501
|
-
return r && (Q.motion = !1),
|
|
5502
|
-
}, [r,
|
|
5501
|
+
return r && (Q.motion = !1), I && (Q.components = { Menu: I }), Object.keys(Q).length > 0 ? Q : void 0;
|
|
5502
|
+
}, [r, I]);
|
|
5503
5503
|
return (() => {
|
|
5504
5504
|
const Q = pt(), yt = Pt ? /* @__PURE__ */ it("div", { "data-and-menu-id": Tt, style: { display: "contents" }, children: [
|
|
5505
5505
|
/* @__PURE__ */ w("style", { children: Pt }),
|
|
@@ -5512,7 +5512,7 @@ const Ec = ({
|
|
|
5512
5512
|
sessionId: t,
|
|
5513
5513
|
develop: r,
|
|
5514
5514
|
...i
|
|
5515
|
-
}) => /* @__PURE__ */ w(An, { ...i }),
|
|
5515
|
+
}) => /* @__PURE__ */ w(An, { ...i }), Lc = ({
|
|
5516
5516
|
id: e,
|
|
5517
5517
|
sessionId: t,
|
|
5518
5518
|
develop: r,
|
|
@@ -5532,7 +5532,7 @@ const Ec = ({
|
|
|
5532
5532
|
...v
|
|
5533
5533
|
}) => {
|
|
5534
5534
|
const u = k((C) => C.getDataSet), T = p(
|
|
5535
|
-
() =>
|
|
5535
|
+
() => tt(t, i),
|
|
5536
5536
|
[t, i]
|
|
5537
5537
|
), A = p(() => {
|
|
5538
5538
|
if (T && n) return u(T, n);
|
|
@@ -5570,7 +5570,7 @@ const Ec = ({
|
|
|
5570
5570
|
)
|
|
5571
5571
|
}
|
|
5572
5572
|
);
|
|
5573
|
-
},
|
|
5573
|
+
}, zc = ({
|
|
5574
5574
|
id: e,
|
|
5575
5575
|
sessionId: t,
|
|
5576
5576
|
develop: r,
|
|
@@ -5583,7 +5583,7 @@ const Ec = ({
|
|
|
5583
5583
|
...d
|
|
5584
5584
|
}) => {
|
|
5585
5585
|
const b = k((u) => u.getDataSet), h = p(
|
|
5586
|
-
() =>
|
|
5586
|
+
() => tt(t, i),
|
|
5587
5587
|
[t, i]
|
|
5588
5588
|
), m = p(() => {
|
|
5589
5589
|
if (h && n) return b(h, n);
|
|
@@ -5670,7 +5670,7 @@ const Ec = ({
|
|
|
5670
5670
|
...m
|
|
5671
5671
|
}) => {
|
|
5672
5672
|
const f = k((C) => C.addCommand), y = p(
|
|
5673
|
-
() =>
|
|
5673
|
+
() => tt(t, i),
|
|
5674
5674
|
[t, i]
|
|
5675
5675
|
), l = k((C) => {
|
|
5676
5676
|
var N;
|
|
@@ -5746,7 +5746,7 @@ const Ec = ({
|
|
|
5746
5746
|
...h
|
|
5747
5747
|
}) => {
|
|
5748
5748
|
const m = k((S) => S.getDataSet), f = k((S) => S.getProps), y = p(
|
|
5749
|
-
() =>
|
|
5749
|
+
() => tt(t, a),
|
|
5750
5750
|
[t, a]
|
|
5751
5751
|
), l = p(() => t && e ? f(t, e) : null, [t, e, f]), v = p(() => {
|
|
5752
5752
|
if (y && o) return m(y, o);
|
|
@@ -5782,7 +5782,7 @@ const Ec = ({
|
|
|
5782
5782
|
...h
|
|
5783
5783
|
}) => {
|
|
5784
5784
|
const m = k((x) => x.addCommand), f = k((x) => x.getDataSet), y = k((x) => x.setDataSet), l = p(
|
|
5785
|
-
() =>
|
|
5785
|
+
() => tt(t, i),
|
|
5786
5786
|
[t, i]
|
|
5787
5787
|
), v = p(() => {
|
|
5788
5788
|
if (l && n)
|
|
@@ -5823,7 +5823,7 @@ const Ec = ({
|
|
|
5823
5823
|
...d
|
|
5824
5824
|
}) => {
|
|
5825
5825
|
const b = k((u) => u.addCommand), h = k((u) => u.getDataSet), m = k((u) => u.setDataSet), f = p(
|
|
5826
|
-
() =>
|
|
5826
|
+
() => tt(t, i),
|
|
5827
5827
|
[t, i]
|
|
5828
5828
|
), y = p(() => {
|
|
5829
5829
|
if (f && n)
|
|
@@ -5895,52 +5895,56 @@ const Ec = ({
|
|
|
5895
5895
|
children: x,
|
|
5896
5896
|
...S
|
|
5897
5897
|
}) => {
|
|
5898
|
-
const D = k((
|
|
5899
|
-
() =>
|
|
5898
|
+
const D = k((V) => V.addCommand), g = k((V) => V.getDataSet), C = k((V) => V.setDataSet), N = p(
|
|
5899
|
+
() => tt(t, i),
|
|
5900
5900
|
[t, i]
|
|
5901
|
-
), O = p(() => Ie(l, {}), [l]),
|
|
5902
|
-
const
|
|
5903
|
-
return
|
|
5904
|
-
}, [b]),
|
|
5901
|
+
), O = p(() => Ie(l, {}), [l]), $ = p(() => {
|
|
5902
|
+
const V = no(b);
|
|
5903
|
+
return V.length > 0 ? V : void 0;
|
|
5904
|
+
}, [b]), _ = p(() => {
|
|
5905
5905
|
if (N && n) {
|
|
5906
|
-
const
|
|
5907
|
-
if (typeof
|
|
5906
|
+
const V = g(N, `${n}.activeTabKey`);
|
|
5907
|
+
if (typeof V == "string") return V;
|
|
5908
5908
|
}
|
|
5909
|
-
}, [N, n, g]) ?? h,
|
|
5909
|
+
}, [N, n, g]) ?? h, R = K((V) => {
|
|
5910
5910
|
if (y) {
|
|
5911
|
-
y(
|
|
5911
|
+
y(V);
|
|
5912
5912
|
return;
|
|
5913
5913
|
}
|
|
5914
|
-
N && n && C(N, `${n}.activeTabKey`,
|
|
5915
|
-
}, [y, N, n, C, f, t, D]), { titleSlot:
|
|
5916
|
-
let
|
|
5917
|
-
const
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5914
|
+
N && n && C(N, `${n}.activeTabKey`, V), f && t && D(t, F(f, { key: V }));
|
|
5915
|
+
}, [y, N, n, C, f, t, D]), { titleSlot: W, extraSlot: U, coverSlot: q, actionsSlot: L, otherChildren: M, actionsFromChildren: P } = p(() => {
|
|
5916
|
+
let V = null, X = null, rt = null, ft = [];
|
|
5917
|
+
const st = [];
|
|
5918
|
+
let et = !1;
|
|
5919
|
+
return a && (V = a), o && (X = o), c && (rt = c), d && (ft = d), zt.Children.forEach(x, (mt) => {
|
|
5920
|
+
if (!zt.isValidElement(mt)) {
|
|
5921
|
+
st.push(mt);
|
|
5921
5922
|
return;
|
|
5922
5923
|
}
|
|
5923
|
-
const
|
|
5924
|
-
|
|
5925
|
-
}), { titleSlot:
|
|
5926
|
-
}, [x, a, o, c, d]),
|
|
5924
|
+
const ot = mt.props, Z = ot["data-slot-type"];
|
|
5925
|
+
Z === "title" && !a ? V = mt : Z === "extra" && !o ? X = mt : Z === "cover" && !c ? rt = mt : Z === "actions" && !d ? (ft = [mt], et = !0) : Z === "body" && ot.children ? st.push(ot.children) : st.push(mt);
|
|
5926
|
+
}), { titleSlot: V, extraSlot: X, coverSlot: rt, actionsSlot: ft, otherChildren: st, actionsFromChildren: et };
|
|
5927
|
+
}, [x, a, o, c, d]), j = p(() => {
|
|
5928
|
+
const V = Ie(v, {});
|
|
5929
|
+
return P ? { actionsLiMargin: "0px", ...V } : V;
|
|
5930
|
+
}, [v, P]), B = /* @__PURE__ */ w(
|
|
5927
5931
|
He,
|
|
5928
5932
|
{
|
|
5929
5933
|
...S,
|
|
5930
|
-
title:
|
|
5931
|
-
extra:
|
|
5932
|
-
cover:
|
|
5934
|
+
title: W,
|
|
5935
|
+
extra: U,
|
|
5936
|
+
cover: q,
|
|
5933
5937
|
tabBarExtraContent: s,
|
|
5934
|
-
actions:
|
|
5935
|
-
tabList:
|
|
5936
|
-
activeTabKey:
|
|
5938
|
+
actions: L.length > 0 ? L : void 0,
|
|
5939
|
+
tabList: $,
|
|
5940
|
+
activeTabKey: _,
|
|
5937
5941
|
defaultActiveTabKey: m,
|
|
5938
|
-
onTabChange:
|
|
5942
|
+
onTabChange: $ ? R : void 0,
|
|
5939
5943
|
styles: O,
|
|
5940
|
-
children:
|
|
5944
|
+
children: M
|
|
5941
5945
|
}
|
|
5942
5946
|
);
|
|
5943
|
-
return
|
|
5947
|
+
return j && Object.keys(j).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Card: j } }, children: B }) : B;
|
|
5944
5948
|
}, Yc = ({
|
|
5945
5949
|
id: e,
|
|
5946
5950
|
sessionId: t,
|
|
@@ -5996,7 +6000,7 @@ const Ec = ({
|
|
|
5996
6000
|
...y
|
|
5997
6001
|
}) => {
|
|
5998
6002
|
const l = k((g) => g.addCommand), v = p(
|
|
5999
|
-
() =>
|
|
6003
|
+
() => tt(t, i),
|
|
6000
6004
|
[t, i]
|
|
6001
6005
|
), u = k((g) => {
|
|
6002
6006
|
if (v)
|
|
@@ -6013,19 +6017,19 @@ const Ec = ({
|
|
|
6013
6017
|
h(g, C);
|
|
6014
6018
|
return;
|
|
6015
6019
|
}
|
|
6016
|
-
b && t && l(t,
|
|
6020
|
+
b && t && l(t, F(b, { open: g, source: C.source }));
|
|
6017
6021
|
},
|
|
6018
6022
|
[h, b, t, l]
|
|
6019
6023
|
), S = p(
|
|
6020
6024
|
() => ({
|
|
6021
6025
|
items: Pr(A),
|
|
6022
6026
|
onClick: (g) => {
|
|
6023
|
-
c && t && l(t,
|
|
6027
|
+
c && t && l(t, F(c, { key: g.key, keyPath: g.keyPath }));
|
|
6024
6028
|
},
|
|
6025
6029
|
onSelect: (g) => {
|
|
6026
6030
|
s && t && l(
|
|
6027
6031
|
t,
|
|
6028
|
-
|
|
6032
|
+
F(s, {
|
|
6029
6033
|
key: g.key,
|
|
6030
6034
|
keyPath: g.keyPath,
|
|
6031
6035
|
selectedKeys: g.selectedKeys
|
|
@@ -6035,7 +6039,7 @@ const Ec = ({
|
|
|
6035
6039
|
onDeselect: (g) => {
|
|
6036
6040
|
d && t && l(
|
|
6037
6041
|
t,
|
|
6038
|
-
|
|
6042
|
+
F(d, {
|
|
6039
6043
|
key: g.key,
|
|
6040
6044
|
keyPath: g.keyPath,
|
|
6041
6045
|
selectedKeys: g.selectedKeys
|
|
@@ -6088,7 +6092,7 @@ const Ec = ({
|
|
|
6088
6092
|
...o
|
|
6089
6093
|
}) => {
|
|
6090
6094
|
const c = k((y) => y.getDataSet), s = k((y) => y.getProps), d = p(
|
|
6091
|
-
() =>
|
|
6095
|
+
() => tt(t, i),
|
|
6092
6096
|
[t, i]
|
|
6093
6097
|
), b = p(() => t && e ? s(t, e) : null, [t, e, s]), h = p(() => {
|
|
6094
6098
|
if (d && n) return c(d, n);
|
|
@@ -6103,7 +6107,7 @@ const Ec = ({
|
|
|
6103
6107
|
if (!e) return;
|
|
6104
6108
|
const t = Jt[e];
|
|
6105
6109
|
if (t)
|
|
6106
|
-
return
|
|
6110
|
+
return zt.createElement(t);
|
|
6107
6111
|
}, qe = (e, t) => {
|
|
6108
6112
|
if (e == null) return t;
|
|
6109
6113
|
if (typeof e == "string")
|
|
@@ -6157,7 +6161,7 @@ const Ec = ({
|
|
|
6157
6161
|
b(E);
|
|
6158
6162
|
return;
|
|
6159
6163
|
}
|
|
6160
|
-
s && t && u(t,
|
|
6164
|
+
s && t && u(t, F(s, { sizes: E }));
|
|
6161
6165
|
},
|
|
6162
6166
|
[b, s, t, u]
|
|
6163
6167
|
), g = K(
|
|
@@ -6166,22 +6170,22 @@ const Ec = ({
|
|
|
6166
6170
|
h(E);
|
|
6167
6171
|
return;
|
|
6168
6172
|
}
|
|
6169
|
-
d && t && u(t,
|
|
6173
|
+
d && t && u(t, F(d, { sizes: E }));
|
|
6170
6174
|
},
|
|
6171
6175
|
[h, d, t, u]
|
|
6172
|
-
), C = () => y &&
|
|
6173
|
-
const
|
|
6176
|
+
), C = () => y && zt.Children.count(y) > 0 ? zt.Children.map(y, (E, _) => {
|
|
6177
|
+
const R = T[_] || {};
|
|
6174
6178
|
return /* @__PURE__ */ w(
|
|
6175
6179
|
Re.Panel,
|
|
6176
6180
|
{
|
|
6177
|
-
defaultSize:
|
|
6178
|
-
min:
|
|
6179
|
-
max:
|
|
6180
|
-
collapsible:
|
|
6181
|
-
resizable:
|
|
6181
|
+
defaultSize: R.defaultSize,
|
|
6182
|
+
min: R.min,
|
|
6183
|
+
max: R.max,
|
|
6184
|
+
collapsible: R.collapsible,
|
|
6185
|
+
resizable: R.resizable !== !1,
|
|
6182
6186
|
children: E
|
|
6183
6187
|
},
|
|
6184
|
-
|
|
6188
|
+
R.key || _
|
|
6185
6189
|
);
|
|
6186
6190
|
}) : T.map((E, _) => /* @__PURE__ */ w(
|
|
6187
6191
|
Re.Panel,
|
|
@@ -6210,7 +6214,7 @@ const Ec = ({
|
|
|
6210
6214
|
)
|
|
6211
6215
|
},
|
|
6212
6216
|
E.key || _
|
|
6213
|
-
)), { layout: N, ...O } = v,
|
|
6217
|
+
)), { layout: N, ...O } = v, $ = /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ w(
|
|
6214
6218
|
Re,
|
|
6215
6219
|
{
|
|
6216
6220
|
...O,
|
|
@@ -6226,7 +6230,7 @@ const Ec = ({
|
|
|
6226
6230
|
},
|
|
6227
6231
|
n
|
|
6228
6232
|
) });
|
|
6229
|
-
return A && Object.keys(A).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Splitter: A } }, children:
|
|
6233
|
+
return A && Object.keys(A).length > 0 ? /* @__PURE__ */ w(Mt, { theme: { components: { Splitter: A } }, children: $ }) : $;
|
|
6230
6234
|
}, Ic = ({
|
|
6231
6235
|
children: e,
|
|
6232
6236
|
className: t,
|
|
@@ -6270,29 +6274,29 @@ const Ec = ({
|
|
|
6270
6274
|
"page-showLessItems": T = !1
|
|
6271
6275
|
}) => {
|
|
6272
6276
|
const A = k((_) => _.getDataSet), x = p(
|
|
6273
|
-
() =>
|
|
6277
|
+
() => tt(t, i),
|
|
6274
6278
|
[t, i]
|
|
6275
|
-
), [S, D] =
|
|
6279
|
+
), [S, D] = ht(1), [g, C] = ht(m), N = p(() => {
|
|
6276
6280
|
if (x && n) {
|
|
6277
6281
|
const _ = A(x, n);
|
|
6278
6282
|
return Array.isArray(_) ? _ : [];
|
|
6279
6283
|
}
|
|
6280
6284
|
return [];
|
|
6281
|
-
}, [x, n, A]), O = p(() => r ? N.length > 0 ? N : c || [] : x ? N : c || [], [r, x, N, c]),
|
|
6285
|
+
}, [x, n, A]), O = p(() => r ? N.length > 0 ? N : c || [] : x ? N : c || [], [r, x, N, c]), $ = p(() => {
|
|
6282
6286
|
let _ = O;
|
|
6283
6287
|
if (!h) {
|
|
6284
|
-
const
|
|
6285
|
-
_ = _.slice(
|
|
6288
|
+
const R = (S - 1) * g, W = R + g;
|
|
6289
|
+
_ = _.slice(R, W);
|
|
6286
6290
|
}
|
|
6287
6291
|
return s ? _.slice(0, s) : _;
|
|
6288
6292
|
}, [O, h, S, g, s]);
|
|
6289
6293
|
if (!O || O.length === 0)
|
|
6290
6294
|
return o ? /* @__PURE__ */ w(Ce, { children: o() }) : /* @__PURE__ */ w("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6291
|
-
const E = (_,
|
|
6292
|
-
D(_),
|
|
6295
|
+
const E = (_, R) => {
|
|
6296
|
+
D(_), R && C(R);
|
|
6293
6297
|
};
|
|
6294
6298
|
return /* @__PURE__ */ it("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6295
|
-
/* @__PURE__ */ w("div", { style: { flex: 1 }, children:
|
|
6299
|
+
/* @__PURE__ */ w("div", { style: { flex: 1 }, children: $.map((_, R) => /* @__PURE__ */ w(zt.Fragment, { children: a ? a(_, R) : /* @__PURE__ */ w("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(_) }) }, _.id || R)) }),
|
|
6296
6300
|
!h && O.length > 0 && /* @__PURE__ */ w("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ w(
|
|
6297
6301
|
Or,
|
|
6298
6302
|
{
|
|
@@ -6386,7 +6390,7 @@ const Ec = ({
|
|
|
6386
6390
|
style: s
|
|
6387
6391
|
}) => {
|
|
6388
6392
|
const d = k((l) => l.addCommand), b = k((l) => l.getDataSet), h = p(
|
|
6389
|
-
() =>
|
|
6393
|
+
() => tt(t, i),
|
|
6390
6394
|
[t, i]
|
|
6391
6395
|
), m = p(() => {
|
|
6392
6396
|
if (h && n) {
|
|
@@ -6395,7 +6399,7 @@ const Ec = ({
|
|
|
6395
6399
|
}
|
|
6396
6400
|
return [];
|
|
6397
6401
|
}, [h, n, b]), f = m.length > 0 ? m : a || [], y = (l) => {
|
|
6398
|
-
c && t && d(t,
|
|
6402
|
+
c && t && d(t, F(c, l));
|
|
6399
6403
|
};
|
|
6400
6404
|
return /* @__PURE__ */ w("div", { style: { display: "grid", gridTemplateColumns: `repeat(${o}, 1fr)`, gap: 16, ...s }, children: f.map((l) => /* @__PURE__ */ w(
|
|
6401
6405
|
He,
|
|
@@ -6468,7 +6472,7 @@ const Ec = ({
|
|
|
6468
6472
|
const h = p(() => {
|
|
6469
6473
|
if (!r) return;
|
|
6470
6474
|
const x = r.split(".")[0];
|
|
6471
|
-
return
|
|
6475
|
+
return tt(i, x);
|
|
6472
6476
|
}, [r, i]), m = k(
|
|
6473
6477
|
(x) => h ? x.dataSets[h] : null
|
|
6474
6478
|
), f = p(() => {
|
|
@@ -6657,30 +6661,30 @@ function Ft(e, t) {
|
|
|
6657
6661
|
animate: C,
|
|
6658
6662
|
scale: N,
|
|
6659
6663
|
interaction: O,
|
|
6660
|
-
annotations:
|
|
6664
|
+
annotations: $,
|
|
6661
6665
|
axis: E,
|
|
6662
6666
|
scrollbar: _,
|
|
6663
|
-
slider:
|
|
6664
|
-
theme:
|
|
6667
|
+
slider: R,
|
|
6668
|
+
theme: W,
|
|
6665
6669
|
state: U,
|
|
6666
6670
|
// 事件配置
|
|
6667
|
-
events:
|
|
6671
|
+
events: q,
|
|
6668
6672
|
// 其余配置直接透传
|
|
6669
|
-
...
|
|
6670
|
-
} = o,
|
|
6673
|
+
...L
|
|
6674
|
+
} = o, M = Vt(null), P = k((at) => at.getDataSet), j = k((at) => at.addCommand), B = p(() => {
|
|
6671
6675
|
if (m && f) {
|
|
6672
|
-
const
|
|
6673
|
-
if (
|
|
6676
|
+
const ct = P(m, f);
|
|
6677
|
+
if (ct !== void 0) return ct;
|
|
6674
6678
|
}
|
|
6675
6679
|
const at = bt(y);
|
|
6676
6680
|
return at !== void 0 ? at : d ? n : [];
|
|
6677
|
-
}, [y, m, f, P, d]),
|
|
6678
|
-
var
|
|
6679
|
-
if (
|
|
6680
|
-
const wt = bt(
|
|
6681
|
+
}, [y, m, f, P, d]), V = (at) => {
|
|
6682
|
+
var ct;
|
|
6683
|
+
if (M.current = at, !d && s) {
|
|
6684
|
+
const wt = bt(q);
|
|
6681
6685
|
wt && typeof wt == "object" && Object.entries(wt).forEach(([_t, xt]) => {
|
|
6682
6686
|
typeof xt == "string" && at.on(_t, (Tt) => {
|
|
6683
|
-
|
|
6687
|
+
j(s, {
|
|
6684
6688
|
actionName: xt,
|
|
6685
6689
|
arg: Tt,
|
|
6686
6690
|
timestamp: Date.now()
|
|
@@ -6688,9 +6692,9 @@ function Ft(e, t) {
|
|
|
6688
6692
|
});
|
|
6689
6693
|
});
|
|
6690
6694
|
}
|
|
6691
|
-
(
|
|
6695
|
+
(ct = L.onReady) == null || ct.call(L, at);
|
|
6692
6696
|
}, X = bt(l) || {}, rt = {
|
|
6693
|
-
data:
|
|
6697
|
+
data: B,
|
|
6694
6698
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
6695
6699
|
height: X.height ?? i,
|
|
6696
6700
|
autoFit: oo(X.autoFit, !0),
|
|
@@ -6698,32 +6702,32 @@ function Ft(e, t) {
|
|
|
6698
6702
|
...X,
|
|
6699
6703
|
// 设计器模式禁用动画
|
|
6700
6704
|
animate: d ? !1 : bt(C),
|
|
6701
|
-
onReady:
|
|
6702
|
-
...
|
|
6705
|
+
onReady: V,
|
|
6706
|
+
...L
|
|
6703
6707
|
}, ft = bt(x);
|
|
6704
6708
|
ft !== void 0 && (rt.title = ft);
|
|
6705
|
-
const
|
|
6706
|
-
|
|
6709
|
+
const st = bt(S);
|
|
6710
|
+
st !== void 0 && (rt.legend = st);
|
|
6707
6711
|
const et = bt(D);
|
|
6708
6712
|
et !== void 0 && (rt.label = et);
|
|
6709
|
-
const
|
|
6710
|
-
|
|
6711
|
-
const
|
|
6712
|
-
|
|
6713
|
-
const
|
|
6714
|
-
|
|
6715
|
-
const J = bt(
|
|
6713
|
+
const mt = bt(g);
|
|
6714
|
+
mt !== void 0 && (rt.tooltip = mt);
|
|
6715
|
+
const ot = bt(N);
|
|
6716
|
+
ot !== void 0 && (rt.scale = ot);
|
|
6717
|
+
const Z = bt(O);
|
|
6718
|
+
Z !== void 0 && (rt.interaction = Z);
|
|
6719
|
+
const J = bt($);
|
|
6716
6720
|
J !== void 0 && (rt.annotations = J);
|
|
6717
6721
|
const dt = bt(E);
|
|
6718
6722
|
dt !== void 0 && (rt.axis = dt);
|
|
6719
|
-
const
|
|
6720
|
-
|
|
6721
|
-
const Y = bt(
|
|
6723
|
+
const z = bt(_);
|
|
6724
|
+
z !== void 0 && (rt.scrollbar = z);
|
|
6725
|
+
const Y = bt(R);
|
|
6722
6726
|
Y !== void 0 && (rt.slider = Y);
|
|
6723
|
-
const ut = bt(
|
|
6727
|
+
const ut = bt(W);
|
|
6724
6728
|
ut !== void 0 && (rt.theme = ut);
|
|
6725
|
-
const
|
|
6726
|
-
return
|
|
6729
|
+
const I = bt(U);
|
|
6730
|
+
return I !== void 0 && (rt.state = I), /* @__PURE__ */ w(e, { ...rt });
|
|
6727
6731
|
};
|
|
6728
6732
|
return a.displayName = `withBaseChart(${r})`, a;
|
|
6729
6733
|
}
|
|
@@ -6947,8 +6951,8 @@ export {
|
|
|
6947
6951
|
qc as AndAlert,
|
|
6948
6952
|
hc as AndAutoComplete,
|
|
6949
6953
|
$c as AndAvatar,
|
|
6950
|
-
|
|
6951
|
-
|
|
6954
|
+
Lc as AndBadge,
|
|
6955
|
+
zc as AndBadgeRibbon,
|
|
6952
6956
|
jc as AndBreadCrumb,
|
|
6953
6957
|
Xo as AndButton,
|
|
6954
6958
|
Kc as AndCalendar,
|
|
@@ -7019,14 +7023,14 @@ export {
|
|
|
7019
7023
|
Go as COMMON_TOKENS,
|
|
7020
7024
|
Bo as cleanupAllMounts,
|
|
7021
7025
|
Ro as clearCssCache,
|
|
7022
|
-
|
|
7026
|
+
F as createCommand,
|
|
7023
7027
|
Ho as createWatchCommands,
|
|
7024
7028
|
Wi as dictValueEquals,
|
|
7025
7029
|
re as findDictOptionByValue,
|
|
7026
7030
|
da as formatByType,
|
|
7027
7031
|
Ze as getAccessToken,
|
|
7028
7032
|
Yt as getCoreConfig,
|
|
7029
|
-
|
|
7033
|
+
tt as getDataSetStoreKey,
|
|
7030
7034
|
rr as getDictOptions,
|
|
7031
7035
|
Be as getNestedValue,
|
|
7032
7036
|
fe as getValidateStoreKey,
|
|
@@ -7040,14 +7044,14 @@ export {
|
|
|
7040
7044
|
li as parseClickAction,
|
|
7041
7045
|
je as parseNestedPath,
|
|
7042
7046
|
Uo as parseQueryAction,
|
|
7043
|
-
|
|
7047
|
+
Lr as processValidationRules,
|
|
7044
7048
|
Yo as req,
|
|
7045
7049
|
ee as request,
|
|
7046
7050
|
Qo as resolveTokenColorWithToken,
|
|
7047
7051
|
Po as setCoreConfig,
|
|
7048
7052
|
ai as setNestedValue,
|
|
7049
7053
|
Vr as upload,
|
|
7050
|
-
|
|
7054
|
+
zo as useAddCommand,
|
|
7051
7055
|
k as useAndStore,
|
|
7052
7056
|
Hi as useApiService,
|
|
7053
7057
|
Wo as useCommandsStore,
|
|
@@ -7058,9 +7062,9 @@ export {
|
|
|
7058
7062
|
nr as useRemoteOptions,
|
|
7059
7063
|
_e as useResolveTokenColor,
|
|
7060
7064
|
Ko as useStore,
|
|
7061
|
-
|
|
7065
|
+
Lo as useStoreByName,
|
|
7062
7066
|
oi as useStoreData,
|
|
7063
|
-
|
|
7067
|
+
zr as validateWithSchema,
|
|
7064
7068
|
ci as watchCommands,
|
|
7065
7069
|
Ft as withBaseChart
|
|
7066
7070
|
};
|