@nuwatop/code-canvas-core 0.3.2 → 0.3.3
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/AndMasonry/index.d.ts.map +1 -1
- package/dist/index.esm.js +593 -596
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as b, jsxs as at, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as cr } from "react-dom/client";
|
|
3
|
-
import { theme as Xt, ConfigProvider as Mt, Button as Zt, Input as Oe, InputNumber as
|
|
3
|
+
import { theme as Xt, ConfigProvider as Mt, Button as Zt, Input as Oe, InputNumber as kn, Space as Yt, Select as On, Switch as sr, DatePicker as En, TimePicker as lr, Radio as je, Checkbox as oe, Rate as ur, Slider as fr, Cascader as dr, TreeSelect as mr, message as De, Upload as hr, Image as Qt, AutoComplete as yr, Form as Ne, Transfer as gr, Segmented as pr, Modal as _n, Tooltip as vr, Table as br, Flex as $n, Typography as en, Tabs as Sr, Tree as wr, Timeline as Dr, Steps as Ar, Statistic as We, Carousel as xr, Avatar as Cr, Tag as Mn, Pagination as Rn, Breadcrumb as Tr, Menu as Nr, Calendar as kr, Badge as jn, Masonry as Or, Alert as Er, Drawer as _r, Result as $r, Card as He, Divider as ln, Dropdown as Mr, Row as Rr, Col as jr, QRCode as Br, Splitter as Be, Spin as Kr, Watermark as zr } from "antd";
|
|
4
4
|
import { StyleProvider as Lr, createCache as Vr } from "@ant-design/cssinjs";
|
|
5
5
|
import qr from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Wr } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as Hr } from "zustand/middleware";
|
|
8
8
|
import { immer as Ur } from "zustand/middleware/immer";
|
|
9
|
-
import Vt, { useMemo as y, useCallback as B, useEffect as $t, createContext as Yr, useContext as Pr, useState as gt, useRef as qt, useLayoutEffect as
|
|
9
|
+
import Vt, { useMemo as y, useCallback as B, useEffect as $t, createContext as Yr, useContext as Pr, useState as gt, useRef as qt, useLayoutEffect as Bn, useId as Jr, Suspense as Gr } from "react";
|
|
10
10
|
import * as Jt from "@ant-design/icons";
|
|
11
|
-
import { CloseCircleOutlined as Qr, PlusOutlined as
|
|
11
|
+
import { CloseCircleOutlined as Qr, PlusOutlined as Kn, UploadOutlined as Xr, MenuOutlined as Zr, MinusOutlined as Fr, LeftOutlined as zn, RightOutlined as Ln, UpOutlined as Ir, DownOutlined as Vn, ApiOutlined as ti, InboxOutlined as ei } from "@ant-design/icons";
|
|
12
12
|
import ni from "clsx";
|
|
13
13
|
import Ut from "dayjs";
|
|
14
14
|
import { Line as ri, Column as ii, Pie as ai, Area as oi, DualAxes as ci, Gauge as si, Liquid as li, Bar as ui } from "@ant-design/plots";
|
|
@@ -34,24 +34,24 @@ const fi = () => {
|
|
|
34
34
|
const o = Ae.get(e);
|
|
35
35
|
if (o) {
|
|
36
36
|
if (a)
|
|
37
|
-
Object.keys(e).forEach((
|
|
38
|
-
if (
|
|
37
|
+
Object.keys(e).forEach((S) => {
|
|
38
|
+
if (S.startsWith("__reactContainer") || S.startsWith("_reactRootContainer"))
|
|
39
39
|
try {
|
|
40
|
-
delete e[
|
|
40
|
+
delete e[S];
|
|
41
41
|
} catch {
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
else
|
|
45
45
|
try {
|
|
46
46
|
o.unmount();
|
|
47
|
-
} catch (
|
|
48
|
-
console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):",
|
|
47
|
+
} catch (S) {
|
|
48
|
+
console.warn("[mountReactComponent] Unmount failed (benign if DOM was cleared):", S);
|
|
49
49
|
}
|
|
50
50
|
Ae.delete(e);
|
|
51
51
|
}
|
|
52
52
|
const c = cr(e);
|
|
53
53
|
Ae.set(e, c);
|
|
54
|
-
const l = window.__ANTD_CSSINJS_CONTAINER__, h = window.__ANTD_IFRAME_DOC__, g = !r && l && h && h.defaultView !== null, m = g ? l : window.document.head, p = g ? h : window.document, f = di(p), v = (((T = window.__GLS_COMPS__) == null ? void 0 : T.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (
|
|
54
|
+
const l = window.__ANTD_CSSINJS_CONTAINER__, h = window.__ANTD_IFRAME_DOC__, g = !r && l && h && h.defaultView !== null, m = g ? l : window.document.head, p = g ? h : window.document, f = di(p), v = (((T = window.__GLS_COMPS__) == null ? void 0 : T.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (S) => /* @__PURE__ */ b(Lr, { cache: f, container: m, hashPriority: "high", children: /* @__PURE__ */ b(
|
|
55
55
|
Mt,
|
|
56
56
|
{
|
|
57
57
|
locale: qr,
|
|
@@ -65,22 +65,22 @@ const fi = () => {
|
|
|
65
65
|
// 禁用哈希类名,使用静态 CSS 中的选择器
|
|
66
66
|
},
|
|
67
67
|
getPopupContainer: () => e,
|
|
68
|
-
children: /* @__PURE__ */ b(t, { ...
|
|
68
|
+
children: /* @__PURE__ */ b(t, { ...S })
|
|
69
69
|
}
|
|
70
70
|
) });
|
|
71
71
|
window.__CURRENT_STYLE_CONTAINER__ = m;
|
|
72
|
-
const C = e.hasAttribute("editing"),
|
|
73
|
-
return C &&
|
|
72
|
+
const C = e.hasAttribute("editing"), w = { ...n };
|
|
73
|
+
return C && w.develop === void 0 && (w.develop = !0), c.render(u(w)), {
|
|
74
74
|
root: c,
|
|
75
75
|
unmount: () => {
|
|
76
76
|
try {
|
|
77
77
|
c.unmount(), Ae.delete(e);
|
|
78
|
-
} catch (
|
|
79
|
-
console.error("[code-canvas-core] Failed to unmount component:",
|
|
78
|
+
} catch (S) {
|
|
79
|
+
console.error("[code-canvas-core] Failed to unmount component:", S);
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
|
-
update: (
|
|
83
|
-
window.__CURRENT_STYLE_CONTAINER__ = m, c.render(u(
|
|
82
|
+
update: (S) => {
|
|
83
|
+
window.__CURRENT_STYLE_CONTAINER__ = m, c.render(u(S));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}, Yo = () => {
|
|
@@ -151,13 +151,13 @@ function de(e, t) {
|
|
|
151
151
|
if (t)
|
|
152
152
|
return e ? `${e}_${t}_validate` : `${t}_validate`;
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const un = {
|
|
155
155
|
dataSets: {},
|
|
156
156
|
commandQueues: {},
|
|
157
157
|
propsStore: {},
|
|
158
158
|
validateStore: {}
|
|
159
159
|
};
|
|
160
|
-
function
|
|
160
|
+
function fn(e, t, n, i) {
|
|
161
161
|
const { baseName: r, index: a } = ge(t);
|
|
162
162
|
if (e.dataSets[r] || (e.dataSets[r] = {}), a !== null) {
|
|
163
163
|
const h = e.dataSets[r];
|
|
@@ -183,17 +183,17 @@ function un(e, t, n, i) {
|
|
|
183
183
|
const O = Wr()(
|
|
184
184
|
Hr(
|
|
185
185
|
Ur((e, t) => ({
|
|
186
|
-
...
|
|
186
|
+
...un,
|
|
187
187
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
188
188
|
setDataSet: (n, i, r, a = !0) => e((o) => {
|
|
189
189
|
if (!n) return;
|
|
190
190
|
const c = i ? xe(i) : [], l = a && typeof r == "object" && r !== null && !Array.isArray(r);
|
|
191
|
-
|
|
191
|
+
fn(o, n, c, (g) => l && g != null && typeof g == "object" && !Array.isArray(g) ? { ...g, ...r } : r);
|
|
192
192
|
}),
|
|
193
193
|
updateDataSet: (n, i, r) => e((a) => {
|
|
194
194
|
if (!n || typeof r != "function") return;
|
|
195
195
|
const o = i ? xe(i) : [];
|
|
196
|
-
|
|
196
|
+
fn(a, n, o, r);
|
|
197
197
|
}),
|
|
198
198
|
getDataSet: (n, i) => {
|
|
199
199
|
if (!n) return;
|
|
@@ -259,7 +259,7 @@ const O = Wr()(
|
|
|
259
259
|
return r ? t().validateStore[r] ?? {} : {};
|
|
260
260
|
},
|
|
261
261
|
// ============ 全局操作 ============
|
|
262
|
-
reset: () => e(
|
|
262
|
+
reset: () => e(un)
|
|
263
263
|
}))
|
|
264
264
|
)
|
|
265
265
|
);
|
|
@@ -470,9 +470,9 @@ function Ge(e) {
|
|
|
470
470
|
}), he(r, i);
|
|
471
471
|
}, Ge(e);
|
|
472
472
|
}
|
|
473
|
-
var Si = /%[sdj%]/g,
|
|
473
|
+
var Si = /%[sdj%]/g, qn = function() {
|
|
474
474
|
};
|
|
475
|
-
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (
|
|
475
|
+
typeof process < "u" && process.env && process.env.NODE_ENV !== "production" && typeof window < "u" && typeof document < "u" && (qn = function(t, n) {
|
|
476
476
|
typeof console < "u" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING > "u" && n.every(function(i) {
|
|
477
477
|
return typeof i == "string";
|
|
478
478
|
}) && console.warn(t, n);
|
|
@@ -532,7 +532,7 @@ function Di(e, t, n) {
|
|
|
532
532
|
t(c, o);
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function dn(e, t, n) {
|
|
536
536
|
var i = 0, r = e.length;
|
|
537
537
|
function a(o) {
|
|
538
538
|
if (o && o.length) {
|
|
@@ -550,7 +550,7 @@ function Ai(e) {
|
|
|
550
550
|
t.push.apply(t, e[n] || []);
|
|
551
551
|
}), t;
|
|
552
552
|
}
|
|
553
|
-
var
|
|
553
|
+
var mn = /* @__PURE__ */ function(e) {
|
|
554
554
|
pi(t, e);
|
|
555
555
|
function t(n, i) {
|
|
556
556
|
var r;
|
|
@@ -562,9 +562,9 @@ function xi(e, t, n, i, r) {
|
|
|
562
562
|
if (t.first) {
|
|
563
563
|
var a = new Promise(function(p, f) {
|
|
564
564
|
var d = function(u) {
|
|
565
|
-
return i(u), u.length ? f(new
|
|
565
|
+
return i(u), u.length ? f(new mn(u, Qe(u))) : p(r);
|
|
566
566
|
}, s = Ai(e);
|
|
567
|
-
|
|
567
|
+
dn(s, n, d);
|
|
568
568
|
});
|
|
569
569
|
return a.catch(function(p) {
|
|
570
570
|
return p;
|
|
@@ -573,11 +573,11 @@ function xi(e, t, n, i, r) {
|
|
|
573
573
|
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], c = Object.keys(e), l = c.length, h = 0, g = [], m = new Promise(function(p, f) {
|
|
574
574
|
var d = function(v) {
|
|
575
575
|
if (g.push.apply(g, v), h++, h === l)
|
|
576
|
-
return i(g), g.length ? f(new
|
|
576
|
+
return i(g), g.length ? f(new mn(g, Qe(g))) : p(r);
|
|
577
577
|
};
|
|
578
578
|
c.length || (i(g), p(r)), c.forEach(function(s) {
|
|
579
579
|
var v = e[s];
|
|
580
|
-
o.indexOf(s) !== -1 ?
|
|
580
|
+
o.indexOf(s) !== -1 ? dn(v, n, d) : Di(v, n, d);
|
|
581
581
|
});
|
|
582
582
|
});
|
|
583
583
|
return m.catch(function(p) {
|
|
@@ -595,7 +595,7 @@ function Ti(e, t) {
|
|
|
595
595
|
}
|
|
596
596
|
return n;
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function hn(e, t) {
|
|
599
599
|
return function(n) {
|
|
600
600
|
var i;
|
|
601
601
|
return e.fullFields ? i = Ti(t, e.fullFields) : i = t[n.field || e.fullField], Ci(n) ? (n.field = n.field || e.fullField, n.fieldValue = i, n) : {
|
|
@@ -605,7 +605,7 @@ function mn(e, t) {
|
|
|
605
605
|
};
|
|
606
606
|
};
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function yn(e, t) {
|
|
609
609
|
if (t) {
|
|
610
610
|
for (var n in t)
|
|
611
611
|
if (t.hasOwnProperty(n)) {
|
|
@@ -615,7 +615,7 @@ function hn(e, t) {
|
|
|
615
615
|
}
|
|
616
616
|
return e;
|
|
617
617
|
}
|
|
618
|
-
var
|
|
618
|
+
var Wn = function(t, n, i, r, a, o) {
|
|
619
619
|
t.required && (!i.hasOwnProperty(t.field) || Ot(n, o || t.type)) && r.push(Kt(a.messages.required, t.fullField));
|
|
620
620
|
}, Ni = function(t, n, i, r, a) {
|
|
621
621
|
(/^\s+$/.test(n) || n === "") && r.push(Kt(a.messages.whitespace, t.fullField));
|
|
@@ -638,14 +638,14 @@ var qn = function(t, n, i, r, a, o) {
|
|
|
638
638
|
`).replace(/\s*\/\/.*$/gm, "").replace(/\n/g, "").trim(), a = new RegExp("(?:^" + n + "$)|(?:^" + r + "$)"), o = new RegExp("^" + n + "$"), c = new RegExp("^" + r + "$"), l = function(T) {
|
|
639
639
|
return T && T.exact ? a : new RegExp("(?:" + t(T) + n + t(T) + ")|(?:" + t(T) + r + t(T) + ")", "g");
|
|
640
640
|
};
|
|
641
|
-
l.v4 = function(
|
|
642
|
-
return
|
|
643
|
-
}, l.v6 = function(
|
|
644
|
-
return
|
|
641
|
+
l.v4 = function(w) {
|
|
642
|
+
return w && w.exact ? o : new RegExp("" + t(w) + n + t(w), "g");
|
|
643
|
+
}, l.v6 = function(w) {
|
|
644
|
+
return w && w.exact ? c : new RegExp("" + t(w) + r + t(w), "g");
|
|
645
645
|
};
|
|
646
646
|
var h = "(?:(?:[a-z]+:)?//)", g = "(?:\\S+(?::\\S*)?@)?", m = l.v4().source, p = l.v6().source, f = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", d = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", v = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', C = "(?:" + h + "|www\\.)" + g + "(?:localhost|" + m + "|" + p + "|" + f + d + s + ")" + v + u;
|
|
647
647
|
return Ce = new RegExp("(?:^" + C + "$)", "i"), Ce;
|
|
648
|
-
},
|
|
648
|
+
}, gn = {
|
|
649
649
|
// http://emailregex.com/
|
|
650
650
|
email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
|
|
651
651
|
// url: new RegExp(
|
|
@@ -685,17 +685,17 @@ var qn = function(t, n, i, r, a, o) {
|
|
|
685
685
|
return typeof t == "function";
|
|
686
686
|
},
|
|
687
687
|
email: function(t) {
|
|
688
|
-
return typeof t == "string" && t.length <= 320 && !!t.match(
|
|
688
|
+
return typeof t == "string" && t.length <= 320 && !!t.match(gn.email);
|
|
689
689
|
},
|
|
690
690
|
url: function(t) {
|
|
691
691
|
return typeof t == "string" && t.length <= 2048 && !!t.match(ki());
|
|
692
692
|
},
|
|
693
693
|
hex: function(t) {
|
|
694
|
-
return typeof t == "string" && !!t.match(
|
|
694
|
+
return typeof t == "string" && !!t.match(gn.hex);
|
|
695
695
|
}
|
|
696
696
|
}, Oi = function(t, n, i, r, a) {
|
|
697
697
|
if (t.required && n === void 0) {
|
|
698
|
-
|
|
698
|
+
Wn(t, n, i, r, a);
|
|
699
699
|
return;
|
|
700
700
|
}
|
|
701
701
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
|
|
@@ -717,7 +717,7 @@ var qn = function(t, n, i, r, a, o) {
|
|
|
717
717
|
}
|
|
718
718
|
}
|
|
719
719
|
}, lt = {
|
|
720
|
-
required:
|
|
720
|
+
required: Wn,
|
|
721
721
|
whitespace: Ni,
|
|
722
722
|
type: Oi,
|
|
723
723
|
range: Ei,
|
|
@@ -929,7 +929,7 @@ var Ze = Xe(), pe = /* @__PURE__ */ function() {
|
|
|
929
929
|
r.rules[a] = Array.isArray(o) ? o : [o];
|
|
930
930
|
});
|
|
931
931
|
}, t.messages = function(i) {
|
|
932
|
-
return i && (this._messages =
|
|
932
|
+
return i && (this._messages = yn(Xe(), i)), this._messages;
|
|
933
933
|
}, t.validate = function(i, r, a) {
|
|
934
934
|
var o = this;
|
|
935
935
|
r === void 0 && (r = {}), a === void 0 && (a = function() {
|
|
@@ -941,29 +941,29 @@ var Ze = Xe(), pe = /* @__PURE__ */ function() {
|
|
|
941
941
|
var v = [], u = {};
|
|
942
942
|
function C(T) {
|
|
943
943
|
if (Array.isArray(T)) {
|
|
944
|
-
var
|
|
945
|
-
v = (
|
|
944
|
+
var S;
|
|
945
|
+
v = (S = v).concat.apply(S, T);
|
|
946
946
|
} else
|
|
947
947
|
v.push(T);
|
|
948
948
|
}
|
|
949
|
-
for (var
|
|
950
|
-
C(s[
|
|
949
|
+
for (var w = 0; w < s.length; w++)
|
|
950
|
+
C(s[w]);
|
|
951
951
|
v.length ? (u = Qe(v), h(v, u)) : h(null, c);
|
|
952
952
|
}
|
|
953
953
|
if (l.messages) {
|
|
954
954
|
var m = this.messages();
|
|
955
|
-
m === Ze && (m = Xe()),
|
|
955
|
+
m === Ze && (m = Xe()), yn(m, l.messages), l.messages = m;
|
|
956
956
|
} else
|
|
957
957
|
l.messages = this.messages();
|
|
958
958
|
var p = {}, f = l.keys || Object.keys(this.rules);
|
|
959
959
|
f.forEach(function(s) {
|
|
960
960
|
var v = o.rules[s], u = c[s];
|
|
961
961
|
v.forEach(function(C) {
|
|
962
|
-
var
|
|
963
|
-
typeof
|
|
964
|
-
validator:
|
|
965
|
-
} :
|
|
966
|
-
rule:
|
|
962
|
+
var w = C;
|
|
963
|
+
typeof w.transform == "function" && (c === i && (c = ee({}, c)), u = c[s] = w.transform(u)), typeof w == "function" ? w = {
|
|
964
|
+
validator: w
|
|
965
|
+
} : w = ee({}, w), w.validator = o.getValidationMethod(w), w.validator && (w.field = s, w.fullField = w.fullField || s, w.type = o.getType(w), p[s] = p[s] || [], p[s].push({
|
|
966
|
+
rule: w,
|
|
967
967
|
value: u,
|
|
968
968
|
source: c,
|
|
969
969
|
field: s
|
|
@@ -974,7 +974,7 @@ var Ze = Xe(), pe = /* @__PURE__ */ function() {
|
|
|
974
974
|
return xi(p, l, function(s, v) {
|
|
975
975
|
var u = s.rule, C = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
|
|
976
976
|
C = C && (u.required || !u.required && s.value), u.field = s.field;
|
|
977
|
-
function
|
|
977
|
+
function w(x, A) {
|
|
978
978
|
return ee({}, A, {
|
|
979
979
|
fullField: u.fullField + "." + x,
|
|
980
980
|
fullFields: u.fullFields ? [].concat(u.fullFields, [x]) : [x]
|
|
@@ -984,14 +984,14 @@ var Ze = Xe(), pe = /* @__PURE__ */ function() {
|
|
|
984
984
|
x === void 0 && (x = []);
|
|
985
985
|
var A = Array.isArray(x) ? x : [x];
|
|
986
986
|
!l.suppressWarning && A.length && e.warning("async-validator:", A), A.length && u.message !== void 0 && (A = [].concat(u.message));
|
|
987
|
-
var
|
|
988
|
-
if (l.first &&
|
|
989
|
-
return d[u.field] = 1, v(
|
|
987
|
+
var D = A.map(hn(u, c));
|
|
988
|
+
if (l.first && D.length)
|
|
989
|
+
return d[u.field] = 1, v(D);
|
|
990
990
|
if (!C)
|
|
991
|
-
v(
|
|
991
|
+
v(D);
|
|
992
992
|
else {
|
|
993
993
|
if (u.required && !s.value)
|
|
994
|
-
return u.message !== void 0 ?
|
|
994
|
+
return u.message !== void 0 ? D = [].concat(u.message).map(hn(u, c)) : l.error && (D = [l.error(u, Kt(l.messages.required, u.field))]), v(D);
|
|
995
995
|
var N = {};
|
|
996
996
|
u.defaultField && Object.keys(s.value).map(function(E) {
|
|
997
997
|
N[E] = u.defaultField;
|
|
@@ -999,29 +999,29 @@ var Ze = Xe(), pe = /* @__PURE__ */ function() {
|
|
|
999
999
|
var k = {};
|
|
1000
1000
|
Object.keys(N).forEach(function(E) {
|
|
1001
1001
|
var $ = N[E], j = Array.isArray($) ? $ : [$];
|
|
1002
|
-
k[E] = j.map(
|
|
1002
|
+
k[E] = j.map(w.bind(null, E));
|
|
1003
1003
|
});
|
|
1004
1004
|
var M = new e(k);
|
|
1005
1005
|
M.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), M.validate(s.value, s.rule.options || l, function(E) {
|
|
1006
1006
|
var $ = [];
|
|
1007
|
-
|
|
1007
|
+
D && D.length && $.push.apply($, D), E && E.length && $.push.apply($, E), v($.length ? $ : null);
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
var
|
|
1011
|
+
var S;
|
|
1012
1012
|
if (u.asyncValidator)
|
|
1013
|
-
|
|
1013
|
+
S = u.asyncValidator(u, s.value, T, s.source, l);
|
|
1014
1014
|
else if (u.validator) {
|
|
1015
1015
|
try {
|
|
1016
|
-
|
|
1016
|
+
S = u.validator(u, s.value, T, s.source, l);
|
|
1017
1017
|
} catch (x) {
|
|
1018
1018
|
console.error == null || console.error(x), l.suppressValidatorError || setTimeout(function() {
|
|
1019
1019
|
throw x;
|
|
1020
1020
|
}, 0), T(x.message);
|
|
1021
1021
|
}
|
|
1022
|
-
|
|
1022
|
+
S === !0 ? T() : S === !1 ? T(typeof u.message == "function" ? u.message(u.fullField || u.field) : u.message || (u.fullField || u.field) + " fails") : S instanceof Array ? T(S) : S instanceof Error && T(S.message);
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1024
|
+
S && S.then && S.then(function() {
|
|
1025
1025
|
return T();
|
|
1026
1026
|
}, function(x) {
|
|
1027
1027
|
return T(x);
|
|
@@ -1045,7 +1045,7 @@ pe.register = function(t, n) {
|
|
|
1045
1045
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
1046
1046
|
me[t] = n;
|
|
1047
1047
|
};
|
|
1048
|
-
pe.warning =
|
|
1048
|
+
pe.warning = qn;
|
|
1049
1049
|
pe.messages = Ze;
|
|
1050
1050
|
pe.validators = me;
|
|
1051
1051
|
function Gi(e) {
|
|
@@ -1057,7 +1057,7 @@ function Gi(e) {
|
|
|
1057
1057
|
return null;
|
|
1058
1058
|
}
|
|
1059
1059
|
}
|
|
1060
|
-
function
|
|
1060
|
+
function Hn(e) {
|
|
1061
1061
|
return !e || !Array.isArray(e) ? [] : e.map((t) => {
|
|
1062
1062
|
const n = { ...t };
|
|
1063
1063
|
if (n.pattern && typeof n.pattern == "string" && n.pattern.trim()) {
|
|
@@ -1067,47 +1067,47 @@ function Wn(e) {
|
|
|
1067
1067
|
return n;
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
-
const
|
|
1071
|
-
function
|
|
1070
|
+
const pn = "_v";
|
|
1071
|
+
function Un(e, t, n, i) {
|
|
1072
1072
|
if (!(e != null && e.length)) {
|
|
1073
1073
|
n();
|
|
1074
1074
|
return;
|
|
1075
1075
|
}
|
|
1076
|
-
const r = { [
|
|
1077
|
-
new pe(r).validate({ [
|
|
1076
|
+
const r = { [pn]: e };
|
|
1077
|
+
new pe(r).validate({ [pn]: t }, { first: !0 }).then(() => {
|
|
1078
1078
|
n();
|
|
1079
1079
|
}).catch(({ errors: o }) => {
|
|
1080
1080
|
i(o || []);
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
1083
|
function jt(e) {
|
|
1084
|
-
const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: a, develop: o } = e, c = O((
|
|
1084
|
+
const { rules: t, dataSet: n, dataSetField: i, sessionId: r, id: a, develop: o } = e, c = O((S) => S.setValidateResult), l = O((S) => S.getProps), h = O((S) => S.setProps), g = y(
|
|
1085
1085
|
() => de(r, n),
|
|
1086
1086
|
[r, n]
|
|
1087
1087
|
), m = O(
|
|
1088
|
-
(
|
|
1088
|
+
(S) => {
|
|
1089
1089
|
var x;
|
|
1090
|
-
return g && i ? ((x =
|
|
1090
|
+
return g && i ? ((x = S.validateStore[g]) == null ? void 0 : x[i]) ?? "" : "";
|
|
1091
1091
|
}
|
|
1092
1092
|
), p = O(
|
|
1093
|
-
(
|
|
1093
|
+
(S) => {
|
|
1094
1094
|
var x;
|
|
1095
|
-
return r && a ? ((x =
|
|
1095
|
+
return r && a ? ((x = S.propsStore[`${r}_props`]) == null ? void 0 : x[a]) ?? null : null;
|
|
1096
1096
|
}
|
|
1097
|
-
), f = O((
|
|
1097
|
+
), f = O((S) => S.getDataSet), d = y(
|
|
1098
1098
|
() => tt(r, n),
|
|
1099
1099
|
[r, n]
|
|
1100
1100
|
), s = y(
|
|
1101
1101
|
() => n ? tt(r, `${n}_validateAction`) : void 0,
|
|
1102
1102
|
[r, n]
|
|
1103
1103
|
), v = O(
|
|
1104
|
-
(
|
|
1104
|
+
(S) => {
|
|
1105
1105
|
var x;
|
|
1106
|
-
return s ? (x =
|
|
1106
|
+
return s ? (x = S.dataSets[s]) == null ? void 0 : x.validate : void 0;
|
|
1107
1107
|
}
|
|
1108
1108
|
), u = B(
|
|
1109
|
-
(
|
|
1110
|
-
const x =
|
|
1109
|
+
(S) => {
|
|
1110
|
+
const x = S ?? "";
|
|
1111
1111
|
if (r && n && i && c(r, n, i, x), r && a) {
|
|
1112
1112
|
const A = l(r, a) || {};
|
|
1113
1113
|
h(r, a, { ...A, validateStatus: x ? "error" : void 0, help: x });
|
|
@@ -1115,25 +1115,25 @@ function jt(e) {
|
|
|
1115
1115
|
},
|
|
1116
1116
|
[r, n, i, a, c, l, h]
|
|
1117
1117
|
), C = B(
|
|
1118
|
-
(
|
|
1119
|
-
const x =
|
|
1120
|
-
|
|
1118
|
+
(S) => {
|
|
1119
|
+
const x = Hn(t || []);
|
|
1120
|
+
Un(
|
|
1121
1121
|
x,
|
|
1122
|
-
|
|
1122
|
+
S,
|
|
1123
1123
|
() => u(""),
|
|
1124
1124
|
(A) => {
|
|
1125
|
-
var
|
|
1126
|
-
return u(((
|
|
1125
|
+
var D;
|
|
1126
|
+
return u(((D = A[0]) == null ? void 0 : D.message) ?? "");
|
|
1127
1127
|
}
|
|
1128
1128
|
);
|
|
1129
1129
|
},
|
|
1130
1130
|
[t, u]
|
|
1131
|
-
),
|
|
1131
|
+
), w = o ? void 0 : r && n && i ? m : (p == null ? void 0 : p.help) ?? "", T = !o && w ? "error" : void 0;
|
|
1132
1132
|
return $t(() => {
|
|
1133
1133
|
if (v == null || !d || !i) return;
|
|
1134
|
-
const
|
|
1135
|
-
C(
|
|
1136
|
-
}, [v, d, i, f, C]), { validate: C, help:
|
|
1134
|
+
const S = f(d, i);
|
|
1135
|
+
C(S);
|
|
1136
|
+
}, [v, d, i, f, C]), { validate: C, help: w, validateStatus: T };
|
|
1137
1137
|
}
|
|
1138
1138
|
const Qi = ["value", "validateStatus", "help"];
|
|
1139
1139
|
function Gt(e, t, n) {
|
|
@@ -1144,15 +1144,15 @@ function Gt(e, t, n) {
|
|
|
1144
1144
|
o != null && (r[a] = o);
|
|
1145
1145
|
}), r;
|
|
1146
1146
|
}
|
|
1147
|
-
const
|
|
1148
|
-
function
|
|
1147
|
+
const Yn = Yr(null);
|
|
1148
|
+
function vn(e) {
|
|
1149
1149
|
return typeof e == "string" && e.trim() !== "";
|
|
1150
1150
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const i = Pr(
|
|
1151
|
+
function nn(e, t, n) {
|
|
1152
|
+
const i = Pr(Yn);
|
|
1153
1153
|
return y(() => {
|
|
1154
1154
|
const r = n ?? (i == null ? void 0 : i.sessionId);
|
|
1155
|
-
if (
|
|
1155
|
+
if (vn(e))
|
|
1156
1156
|
return {
|
|
1157
1157
|
dataSet: e,
|
|
1158
1158
|
dataSetField: t,
|
|
@@ -1165,7 +1165,7 @@ function Yn(e, t, n) {
|
|
|
1165
1165
|
sessionId: r
|
|
1166
1166
|
};
|
|
1167
1167
|
const a = i.index, o = i.dataSet;
|
|
1168
|
-
if (
|
|
1168
|
+
if (vn(t)) {
|
|
1169
1169
|
const c = t.trim(), l = c.startsWith("[") ? c : `[${a}].${c}`;
|
|
1170
1170
|
return {
|
|
1171
1171
|
dataSet: o,
|
|
@@ -1213,7 +1213,7 @@ async function Pn(e, t) {
|
|
|
1213
1213
|
"Upload handler not configured. Please call setCoreConfig() first."
|
|
1214
1214
|
);
|
|
1215
1215
|
}
|
|
1216
|
-
async function
|
|
1216
|
+
async function rn(e) {
|
|
1217
1217
|
return Lt.getDictOptions ? Lt.getDictOptions(e) : (console.warn(
|
|
1218
1218
|
"Dict service not configured. Please call setCoreConfig() with getDictOptions."
|
|
1219
1219
|
), []);
|
|
@@ -1239,7 +1239,7 @@ function Zi() {
|
|
|
1239
1239
|
async (l, h, g) => ne({ url: l, data: h, method: "POST", ...g }),
|
|
1240
1240
|
[]
|
|
1241
1241
|
), r = B(
|
|
1242
|
-
async (l) =>
|
|
1242
|
+
async (l) => rn(l),
|
|
1243
1243
|
[]
|
|
1244
1244
|
), a = B(
|
|
1245
1245
|
async (l, h) => Pn(l, h),
|
|
@@ -1264,7 +1264,7 @@ function ve(e) {
|
|
|
1264
1264
|
return;
|
|
1265
1265
|
}
|
|
1266
1266
|
let c = !1;
|
|
1267
|
-
return r(!0), o(null),
|
|
1267
|
+
return r(!0), o(null), rn(e).then((l) => {
|
|
1268
1268
|
c || n(l);
|
|
1269
1269
|
}).catch((l) => {
|
|
1270
1270
|
c || (o(l), console.error(`Failed to load dict: ${e}`, l));
|
|
@@ -1275,7 +1275,7 @@ function ve(e) {
|
|
|
1275
1275
|
};
|
|
1276
1276
|
}, [e]), { options: t, loading: i, error: a };
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function an(e, t) {
|
|
1279
1279
|
const [n, i] = gt([]), [r, a] = gt(!1), [o, c] = gt(null), {
|
|
1280
1280
|
labelKey: l = "label",
|
|
1281
1281
|
valueKey: h = "value",
|
|
@@ -1660,13 +1660,13 @@ const ac = ({
|
|
|
1660
1660
|
}) => {
|
|
1661
1661
|
const p = O((A) => A.addCommand), f = O(
|
|
1662
1662
|
(A) => {
|
|
1663
|
-
var
|
|
1664
|
-
return r && e ? (
|
|
1663
|
+
var D;
|
|
1664
|
+
return r && e ? (D = A.propsStore[`${r}_props`]) == null ? void 0 : D[e] : null;
|
|
1665
1665
|
}
|
|
1666
1666
|
), d = y(() => {
|
|
1667
1667
|
const A = { ...m };
|
|
1668
|
-
return f && typeof f == "object" && Object.keys(f).forEach((
|
|
1669
|
-
f[
|
|
1668
|
+
return f && typeof f == "object" && Object.keys(f).forEach((D) => {
|
|
1669
|
+
f[D] !== void 0 && f[D] !== null && (A[D] = f[D]);
|
|
1670
1670
|
}), a && (A.disabled = !1), A;
|
|
1671
1671
|
}, [m, f, a]), s = y(() => {
|
|
1672
1672
|
const A = (f == null ? void 0 : f.iconName) || n;
|
|
@@ -1678,23 +1678,23 @@ const ac = ({
|
|
|
1678
1678
|
return;
|
|
1679
1679
|
}
|
|
1680
1680
|
if (i && r) {
|
|
1681
|
-
const { actionName:
|
|
1681
|
+
const { actionName: D, arg: N } = gi(i, {
|
|
1682
1682
|
id: e,
|
|
1683
1683
|
index: l,
|
|
1684
1684
|
dataSet: h,
|
|
1685
1685
|
dataSetField: g,
|
|
1686
1686
|
...d
|
|
1687
|
-
}), k = Z(
|
|
1687
|
+
}), k = Z(D, N);
|
|
1688
1688
|
p(r, k);
|
|
1689
1689
|
}
|
|
1690
1690
|
},
|
|
1691
1691
|
[i, r, e, l, h, g, d, p, o]
|
|
1692
|
-
), u = (f == null ? void 0 : f.text) || t, { iconPosition: C, iconPlacement:
|
|
1692
|
+
), u = (f == null ? void 0 : f.text) || t, { iconPosition: C, iconPlacement: w, clickAction: T, ...S } = d;
|
|
1693
1693
|
return /* @__PURE__ */ b(
|
|
1694
1694
|
Zt,
|
|
1695
1695
|
{
|
|
1696
|
-
...
|
|
1697
|
-
iconPlacement:
|
|
1696
|
+
...S,
|
|
1697
|
+
iconPlacement: w || C,
|
|
1698
1698
|
icon: s ? /* @__PURE__ */ b(s, {}) : void 0,
|
|
1699
1699
|
onClick: v,
|
|
1700
1700
|
children: u || c
|
|
@@ -1738,10 +1738,10 @@ const Qn = (e) => {
|
|
|
1738
1738
|
pressEnterAction: v,
|
|
1739
1739
|
clearAction: u,
|
|
1740
1740
|
bordered: C,
|
|
1741
|
-
addonAfter:
|
|
1741
|
+
addonAfter: w,
|
|
1742
1742
|
addonBefore: T,
|
|
1743
|
-
...
|
|
1744
|
-
} = e, x = qt(""), A = qt(null),
|
|
1743
|
+
...S
|
|
1744
|
+
} = e, x = qt(""), A = qt(null), D = O((J) => J.addCommand), N = O((J) => J.getDataSet), k = O((J) => J.setDataSet), M = O((J) => J.getProps), E = O((J) => J.setProps), $ = O((J) => J.setValidateResult), j = y(
|
|
1745
1745
|
() => tt(n, r),
|
|
1746
1746
|
[n, r]
|
|
1747
1747
|
), z = O(
|
|
@@ -1768,8 +1768,8 @@ const Qn = (e) => {
|
|
|
1768
1768
|
return K ? (st = J.dataSets[K]) == null ? void 0 : st.validate : void 0;
|
|
1769
1769
|
}
|
|
1770
1770
|
), _ = y(() => L !== void 0 ? L : (z == null ? void 0 : z.value) !== void 0 ? z.value : l, [L, z == null ? void 0 : z.value, l]), R = y(
|
|
1771
|
-
() => xa(
|
|
1772
|
-
[
|
|
1771
|
+
() => xa(S, z ?? null, { develop: i }),
|
|
1772
|
+
[S, z, i]
|
|
1773
1773
|
), P = B(
|
|
1774
1774
|
(J) => {
|
|
1775
1775
|
const st = J ?? "";
|
|
@@ -1781,8 +1781,8 @@ const Qn = (e) => {
|
|
|
1781
1781
|
[n, r, a, t, $, M, E]
|
|
1782
1782
|
), q = B(
|
|
1783
1783
|
(J) => {
|
|
1784
|
-
const st =
|
|
1785
|
-
|
|
1784
|
+
const st = Hn(m || []);
|
|
1785
|
+
Un(
|
|
1786
1786
|
st,
|
|
1787
1787
|
J,
|
|
1788
1788
|
() => P(""),
|
|
@@ -1807,7 +1807,7 @@ const Qn = (e) => {
|
|
|
1807
1807
|
dataSetField: a,
|
|
1808
1808
|
...R
|
|
1809
1809
|
});
|
|
1810
|
-
|
|
1810
|
+
D(n, Z(bt, Ct));
|
|
1811
1811
|
}
|
|
1812
1812
|
p && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
1813
1813
|
A.current = null, q(st);
|
|
@@ -1822,7 +1822,7 @@ const Qn = (e) => {
|
|
|
1822
1822
|
n,
|
|
1823
1823
|
t,
|
|
1824
1824
|
R,
|
|
1825
|
-
|
|
1825
|
+
D,
|
|
1826
1826
|
p,
|
|
1827
1827
|
q
|
|
1828
1828
|
]
|
|
@@ -1844,7 +1844,7 @@ const Qn = (e) => {
|
|
|
1844
1844
|
dataSetField: a,
|
|
1845
1845
|
...R
|
|
1846
1846
|
});
|
|
1847
|
-
|
|
1847
|
+
D(n, Z(Ct, U));
|
|
1848
1848
|
}
|
|
1849
1849
|
},
|
|
1850
1850
|
[
|
|
@@ -1855,7 +1855,7 @@ const Qn = (e) => {
|
|
|
1855
1855
|
t,
|
|
1856
1856
|
r,
|
|
1857
1857
|
a,
|
|
1858
|
-
|
|
1858
|
+
D
|
|
1859
1859
|
]
|
|
1860
1860
|
), et = B(() => {
|
|
1861
1861
|
const st = R.onClear;
|
|
@@ -1870,9 +1870,9 @@ const Qn = (e) => {
|
|
|
1870
1870
|
dataSetField: a,
|
|
1871
1871
|
...R
|
|
1872
1872
|
});
|
|
1873
|
-
|
|
1873
|
+
D(n, Z(bt, Ct));
|
|
1874
1874
|
}
|
|
1875
|
-
}, [R, u, n, t, r, a,
|
|
1875
|
+
}, [R, u, n, t, r, a, D]);
|
|
1876
1876
|
$t(
|
|
1877
1877
|
() => () => {
|
|
1878
1878
|
A.current && clearTimeout(A.current);
|
|
@@ -1905,7 +1905,7 @@ const Qn = (e) => {
|
|
|
1905
1905
|
return ct ? /* @__PURE__ */ b(Mt, { theme: ct, children: dt }) : dt;
|
|
1906
1906
|
};
|
|
1907
1907
|
Qn.displayName = "AndInput";
|
|
1908
|
-
const oc = Vt.memo(Qn),
|
|
1908
|
+
const oc = Vt.memo(Qn), bn = 200, cc = ({
|
|
1909
1909
|
id: e,
|
|
1910
1910
|
sessionId: t,
|
|
1911
1911
|
develop: n,
|
|
@@ -1924,24 +1924,24 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
1924
1924
|
value: s,
|
|
1925
1925
|
...v
|
|
1926
1926
|
}) => {
|
|
1927
|
-
const u = O((q) => q.addCommand), C = O((q) => q.setDataSet),
|
|
1927
|
+
const u = O((q) => q.addCommand), C = O((q) => q.setDataSet), w = qt(null), T = y(
|
|
1928
1928
|
() => tt(t, i),
|
|
1929
1929
|
[t, i]
|
|
1930
|
-
),
|
|
1930
|
+
), S = O(
|
|
1931
1931
|
(q) => {
|
|
1932
1932
|
var W;
|
|
1933
1933
|
return t && e ? ((W = q.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
|
|
1934
1934
|
}
|
|
1935
1935
|
), x = O(
|
|
1936
1936
|
(q) => T && r ? q.getDataSet(T, r) : void 0
|
|
1937
|
-
), { validate: A, help:
|
|
1937
|
+
), { validate: A, help: D } = jt({
|
|
1938
1938
|
rules: a,
|
|
1939
1939
|
dataSet: i,
|
|
1940
1940
|
dataSetField: r,
|
|
1941
1941
|
sessionId: t,
|
|
1942
1942
|
id: e,
|
|
1943
1943
|
develop: n
|
|
1944
|
-
}), N = y(() => x !== void 0 ? x : (
|
|
1944
|
+
}), N = y(() => x !== void 0 ? x : (S == null ? void 0 : S.value) !== void 0 ? S.value : s, [x, S == null ? void 0 : S.value, s]), k = B(
|
|
1945
1945
|
(q, W, rt) => {
|
|
1946
1946
|
q && t && u(t, Z(q, { type: W, value: rt }));
|
|
1947
1947
|
},
|
|
@@ -1952,9 +1952,9 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
1952
1952
|
f(q);
|
|
1953
1953
|
return;
|
|
1954
1954
|
}
|
|
1955
|
-
T && r && C(T, r, q), c && (
|
|
1956
|
-
|
|
1957
|
-
},
|
|
1955
|
+
T && r && C(T, r, q), c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
1956
|
+
w.current = null, A(q);
|
|
1957
|
+
}, bn)), k(l, "change", q);
|
|
1958
1958
|
},
|
|
1959
1959
|
[f, T, r, C, c, A, l, k]
|
|
1960
1960
|
), E = B(() => {
|
|
@@ -1989,9 +1989,9 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
1989
1989
|
f(null);
|
|
1990
1990
|
return;
|
|
1991
1991
|
}
|
|
1992
|
-
if (T && r && C(T, r, null), c && (
|
|
1993
|
-
|
|
1994
|
-
},
|
|
1992
|
+
if (T && r && C(T, r, null), c && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
1993
|
+
w.current = null, A(null);
|
|
1994
|
+
}, bn)), k(l, "change", null), g && t) {
|
|
1995
1995
|
const { actionName: q, arg: W } = vt(g, null, {
|
|
1996
1996
|
id: e,
|
|
1997
1997
|
dataSet: i,
|
|
@@ -2022,15 +2022,15 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2022
2022
|
);
|
|
2023
2023
|
$t(
|
|
2024
2024
|
() => () => {
|
|
2025
|
-
|
|
2025
|
+
w.current && clearTimeout(w.current);
|
|
2026
2026
|
},
|
|
2027
2027
|
[]
|
|
2028
2028
|
), $t(() => {
|
|
2029
2029
|
d !== void 0 && N === void 0 && T && r && C(T, r, d);
|
|
2030
2030
|
}, [d, N, T, r, C]);
|
|
2031
2031
|
const H = y(
|
|
2032
|
-
() => Gt(v,
|
|
2033
|
-
[v,
|
|
2032
|
+
() => Gt(v, S ?? void 0),
|
|
2033
|
+
[v, S]
|
|
2034
2034
|
), { addonBefore: V, addonAfter: L, style: K, suffix: X, ..._ } = H, R = y(() => {
|
|
2035
2035
|
if (!(m && N !== null && N !== void 0)) return X;
|
|
2036
2036
|
const W = /* @__PURE__ */ b(
|
|
@@ -2051,7 +2051,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2051
2051
|
W
|
|
2052
2052
|
] });
|
|
2053
2053
|
}, [m, N, X, j]), P = /* @__PURE__ */ b(
|
|
2054
|
-
|
|
2054
|
+
kn,
|
|
2055
2055
|
{
|
|
2056
2056
|
..._,
|
|
2057
2057
|
disabled: n ? !1 : _.disabled,
|
|
@@ -2065,7 +2065,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2065
2065
|
onPressEnter: $,
|
|
2066
2066
|
onStep: z,
|
|
2067
2067
|
suffix: R,
|
|
2068
|
-
status:
|
|
2068
|
+
status: D ? "error" : void 0,
|
|
2069
2069
|
style: { width: "100%", ...K }
|
|
2070
2070
|
}
|
|
2071
2071
|
);
|
|
@@ -2107,7 +2107,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2107
2107
|
}
|
|
2108
2108
|
)
|
|
2109
2109
|
] }) : P,
|
|
2110
|
-
|
|
2110
|
+
D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
2111
2111
|
] });
|
|
2112
2112
|
}, { TextArea: Ca } = Oe, Ta = 200, sc = ({
|
|
2113
2113
|
id: e,
|
|
@@ -2126,7 +2126,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2126
2126
|
defaultValue: f,
|
|
2127
2127
|
...d
|
|
2128
2128
|
}) => {
|
|
2129
|
-
const s =
|
|
2129
|
+
const s = nn(i, r, t), v = s.dataSet, u = s.dataSetField, C = s.sessionId, w = O((H) => H.addCommand), T = O((H) => H.setDataSet), S = qt(null), x = y(
|
|
2130
2130
|
() => tt(C, v),
|
|
2131
2131
|
[C, v]
|
|
2132
2132
|
), A = O(
|
|
@@ -2134,7 +2134,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2134
2134
|
var V;
|
|
2135
2135
|
return C && e ? ((V = H.propsStore[`${C}_props`]) == null ? void 0 : V[e]) ?? null : null;
|
|
2136
2136
|
}
|
|
2137
|
-
),
|
|
2137
|
+
), D = O(
|
|
2138
2138
|
(H) => x && u ? H.getDataSet(x, u) : void 0
|
|
2139
2139
|
), { validate: N, help: k } = jt({
|
|
2140
2140
|
rules: a,
|
|
@@ -2143,7 +2143,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2143
2143
|
sessionId: C,
|
|
2144
2144
|
id: e,
|
|
2145
2145
|
develop: n
|
|
2146
|
-
}), M = y(() =>
|
|
2146
|
+
}), M = y(() => D !== void 0 ? D : (A == null ? void 0 : A.value) !== void 0 ? A.value : p ?? f, [D, A == null ? void 0 : A.value, p, f]), E = B(
|
|
2147
2147
|
(H) => {
|
|
2148
2148
|
const V = H.target.value;
|
|
2149
2149
|
if (m) {
|
|
@@ -2156,10 +2156,10 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2156
2156
|
dataSet: v,
|
|
2157
2157
|
dataSetField: u
|
|
2158
2158
|
});
|
|
2159
|
-
|
|
2159
|
+
w(C, Z(L, K));
|
|
2160
2160
|
}
|
|
2161
|
-
c && (
|
|
2162
|
-
|
|
2161
|
+
c && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
2162
|
+
S.current = null, N(V);
|
|
2163
2163
|
}, Ta));
|
|
2164
2164
|
},
|
|
2165
2165
|
[
|
|
@@ -2170,7 +2170,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2170
2170
|
l,
|
|
2171
2171
|
C,
|
|
2172
2172
|
e,
|
|
2173
|
-
|
|
2173
|
+
w,
|
|
2174
2174
|
c,
|
|
2175
2175
|
N
|
|
2176
2176
|
]
|
|
@@ -2188,7 +2188,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2188
2188
|
dataSet: v,
|
|
2189
2189
|
dataSetField: u
|
|
2190
2190
|
});
|
|
2191
|
-
|
|
2191
|
+
w(C, Z(V, L));
|
|
2192
2192
|
}
|
|
2193
2193
|
},
|
|
2194
2194
|
[
|
|
@@ -2199,7 +2199,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2199
2199
|
e,
|
|
2200
2200
|
v,
|
|
2201
2201
|
u,
|
|
2202
|
-
|
|
2202
|
+
w
|
|
2203
2203
|
]
|
|
2204
2204
|
), z = B(() => {
|
|
2205
2205
|
if (d.onClear) {
|
|
@@ -2212,7 +2212,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2212
2212
|
dataSet: v,
|
|
2213
2213
|
dataSetField: u
|
|
2214
2214
|
});
|
|
2215
|
-
|
|
2215
|
+
w(C, Z(H, V));
|
|
2216
2216
|
}
|
|
2217
2217
|
}, [
|
|
2218
2218
|
d.onClear,
|
|
@@ -2221,11 +2221,11 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2221
2221
|
e,
|
|
2222
2222
|
v,
|
|
2223
2223
|
u,
|
|
2224
|
-
|
|
2224
|
+
w
|
|
2225
2225
|
]);
|
|
2226
2226
|
return $t(
|
|
2227
2227
|
() => () => {
|
|
2228
|
-
|
|
2228
|
+
S.current && clearTimeout(S.current);
|
|
2229
2229
|
},
|
|
2230
2230
|
[]
|
|
2231
2231
|
), /* @__PURE__ */ at("div", { style: { width: "100%" }, children: [
|
|
@@ -2264,21 +2264,21 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2264
2264
|
const s = O((E) => E.addCommand), v = O((E) => E.setDataSet), u = qt(null), C = y(
|
|
2265
2265
|
() => tt(t, i),
|
|
2266
2266
|
[t, i]
|
|
2267
|
-
),
|
|
2267
|
+
), w = O(
|
|
2268
2268
|
(E) => {
|
|
2269
2269
|
var $;
|
|
2270
2270
|
return t && e ? (($ = E.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2271
2271
|
}
|
|
2272
2272
|
), T = O(
|
|
2273
2273
|
(E) => C && r ? E.getDataSet(C, r) : void 0
|
|
2274
|
-
), { validate:
|
|
2274
|
+
), { validate: S, help: x } = jt({
|
|
2275
2275
|
rules: a,
|
|
2276
2276
|
dataSet: i,
|
|
2277
2277
|
dataSetField: r,
|
|
2278
2278
|
sessionId: t,
|
|
2279
2279
|
id: e,
|
|
2280
2280
|
develop: n
|
|
2281
|
-
}), A = y(() => T !== void 0 ? T : (
|
|
2281
|
+
}), A = y(() => T !== void 0 ? T : (w == null ? void 0 : w.value) !== void 0 ? w.value : p ?? f, [T, w == null ? void 0 : w.value, p, f]), D = B(
|
|
2282
2282
|
(E) => {
|
|
2283
2283
|
const $ = E.target.value;
|
|
2284
2284
|
if (m) {
|
|
@@ -2294,7 +2294,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2294
2294
|
s(t, Z(j, z));
|
|
2295
2295
|
}
|
|
2296
2296
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2297
|
-
u.current = null,
|
|
2297
|
+
u.current = null, S($);
|
|
2298
2298
|
}, ka));
|
|
2299
2299
|
},
|
|
2300
2300
|
[
|
|
@@ -2307,11 +2307,11 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2307
2307
|
e,
|
|
2308
2308
|
s,
|
|
2309
2309
|
c,
|
|
2310
|
-
|
|
2310
|
+
S
|
|
2311
2311
|
]
|
|
2312
2312
|
), N = B(() => {
|
|
2313
|
-
o &&
|
|
2314
|
-
}, [o,
|
|
2313
|
+
o && S(A);
|
|
2314
|
+
}, [o, S, A]), k = B(
|
|
2315
2315
|
(E) => {
|
|
2316
2316
|
if (d.onPressEnter) {
|
|
2317
2317
|
d.onPressEnter(E);
|
|
@@ -2362,7 +2362,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2362
2362
|
...d,
|
|
2363
2363
|
disabled: n ? !1 : d.disabled,
|
|
2364
2364
|
value: A,
|
|
2365
|
-
onChange:
|
|
2365
|
+
onChange: D,
|
|
2366
2366
|
onBlur: N,
|
|
2367
2367
|
onPressEnter: k,
|
|
2368
2368
|
onClear: M,
|
|
@@ -2391,23 +2391,23 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2391
2391
|
), v = y(() => {
|
|
2392
2392
|
if (s && r) return f(s, r);
|
|
2393
2393
|
}, [s, r, f]), u = y(() => v ?? h ?? g, [v, h, g]), C = B((T) => {
|
|
2394
|
-
const
|
|
2394
|
+
const S = T.target.value;
|
|
2395
2395
|
if (c) {
|
|
2396
|
-
c(
|
|
2396
|
+
c(S);
|
|
2397
2397
|
return;
|
|
2398
2398
|
}
|
|
2399
|
-
if (s && r && d(s, r,
|
|
2400
|
-
const { actionName: x, arg: A } = vt(a,
|
|
2399
|
+
if (s && r && d(s, r, S), a && t) {
|
|
2400
|
+
const { actionName: x, arg: A } = vt(a, S, { id: e, dataSet: i, dataSetField: r });
|
|
2401
2401
|
p(t, Z(x, A));
|
|
2402
2402
|
}
|
|
2403
|
-
}, [c, s, r, d, a, t, e, p]),
|
|
2403
|
+
}, [c, s, r, d, a, t, e, p]), w = B((T) => {
|
|
2404
2404
|
if (l) {
|
|
2405
2405
|
l(T);
|
|
2406
2406
|
return;
|
|
2407
2407
|
}
|
|
2408
2408
|
o && t && p(t, Z(o, T));
|
|
2409
2409
|
}, [l, o, t, p]);
|
|
2410
|
-
return /* @__PURE__ */ b(Oa, { ...m, disabled: n ? !1 : m.disabled, value: u, onChange: C, onSearch:
|
|
2410
|
+
return /* @__PURE__ */ b(Oa, { ...m, disabled: n ? !1 : m.disabled, value: u, onChange: C, onSearch: w });
|
|
2411
2411
|
}, Ea = 200, fc = ({
|
|
2412
2412
|
id: e,
|
|
2413
2413
|
sessionId: t,
|
|
@@ -2428,12 +2428,12 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2428
2428
|
index: v,
|
|
2429
2429
|
showArrow: u,
|
|
2430
2430
|
remoteUrl: C,
|
|
2431
|
-
searchAction:
|
|
2431
|
+
searchAction: w,
|
|
2432
2432
|
selectAction: T,
|
|
2433
|
-
deselectAction:
|
|
2433
|
+
deselectAction: S,
|
|
2434
2434
|
dictCode: x,
|
|
2435
2435
|
dropdownMatchSelectWidth: A,
|
|
2436
|
-
...
|
|
2436
|
+
...D
|
|
2437
2437
|
}) => {
|
|
2438
2438
|
const N = O((ct) => ct.addCommand), k = O((ct) => ct.setDataSet), M = qt(null), E = y(
|
|
2439
2439
|
() => tt(t, i),
|
|
@@ -2450,7 +2450,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2450
2450
|
[$ == null ? void 0 : $.optionsCfg, c]
|
|
2451
2451
|
), { options: H, loading: V } = ve(
|
|
2452
2452
|
x || (a ? o : void 0)
|
|
2453
|
-
), { options: L, loading: K } =
|
|
2453
|
+
), { options: L, loading: K } = an(
|
|
2454
2454
|
z == null ? void 0 : z.url,
|
|
2455
2455
|
{
|
|
2456
2456
|
valueKey: (z == null ? void 0 : z.codeKey) || "value",
|
|
@@ -2467,8 +2467,8 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2467
2467
|
id: e,
|
|
2468
2468
|
develop: n
|
|
2469
2469
|
}), P = y(() => j != null && j !== "" ? j : ($ == null ? void 0 : $.value) !== void 0 ? $.value : s ?? d, [j, $ == null ? void 0 : $.value, s, d]), q = y(
|
|
2470
|
-
() => Gt(
|
|
2471
|
-
[
|
|
2470
|
+
() => Gt(D, $ ?? void 0),
|
|
2471
|
+
[D, $]
|
|
2472
2472
|
), W = y(() => $ != null && $.options && Array.isArray($.options) ? $.options : z != null && z.url && L.length > 0 ? L : (x || a && o) && H.length > 0 ? H : f || [], [$ == null ? void 0 : $.options, z == null ? void 0 : z.url, L, x, a, o, H, f]), rt = y(() => {
|
|
2473
2473
|
if (W.length === 0) return P;
|
|
2474
2474
|
if (Array.isArray(P))
|
|
@@ -2521,7 +2521,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2521
2521
|
const pt = B((ct, ot) => ((ot == null ? void 0 : ot.label) ?? "").toLowerCase().includes(ct.toLowerCase()), []);
|
|
2522
2522
|
return /* @__PURE__ */ at("div", { style: { width: "100%" }, children: [
|
|
2523
2523
|
/* @__PURE__ */ b(
|
|
2524
|
-
|
|
2524
|
+
On,
|
|
2525
2525
|
{
|
|
2526
2526
|
...q,
|
|
2527
2527
|
disabled: n ? !1 : q.disabled,
|
|
@@ -2558,31 +2558,31 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2558
2558
|
[t, i]
|
|
2559
2559
|
), v = O(
|
|
2560
2560
|
(A) => {
|
|
2561
|
-
var
|
|
2562
|
-
return t && e ? ((
|
|
2561
|
+
var D;
|
|
2562
|
+
return t && e ? ((D = A.propsStore[`${t}_props`]) == null ? void 0 : D[e]) ?? null : null;
|
|
2563
2563
|
}
|
|
2564
2564
|
), u = O(
|
|
2565
2565
|
(A) => s && r ? A.getDataSet(s, r) : void 0
|
|
2566
|
-
), { validate: C, help:
|
|
2566
|
+
), { validate: C, help: w } = jt({
|
|
2567
2567
|
rules: a,
|
|
2568
2568
|
dataSet: i,
|
|
2569
2569
|
dataSetField: r,
|
|
2570
2570
|
sessionId: t,
|
|
2571
2571
|
id: e,
|
|
2572
2572
|
develop: n
|
|
2573
|
-
}), T = y(() => u !== void 0 ? !!u : (v == null ? void 0 : v.checked) !== void 0 ? v.checked : g ?? m, [u, v == null ? void 0 : v.checked, g, m]),
|
|
2573
|
+
}), T = y(() => u !== void 0 ? !!u : (v == null ? void 0 : v.checked) !== void 0 ? v.checked : g ?? m, [u, v == null ? void 0 : v.checked, g, m]), S = B(
|
|
2574
2574
|
(A) => {
|
|
2575
2575
|
if (h) {
|
|
2576
2576
|
h(A);
|
|
2577
2577
|
return;
|
|
2578
2578
|
}
|
|
2579
2579
|
if (s && r && d(s, r, A), c && C(A), l && t) {
|
|
2580
|
-
const { actionName:
|
|
2580
|
+
const { actionName: D, arg: N } = vt(l, A, {
|
|
2581
2581
|
id: e,
|
|
2582
2582
|
dataSet: i,
|
|
2583
2583
|
dataSetField: r
|
|
2584
2584
|
});
|
|
2585
|
-
f(t, Z(
|
|
2585
|
+
f(t, Z(D, N));
|
|
2586
2586
|
}
|
|
2587
2587
|
},
|
|
2588
2588
|
[
|
|
@@ -2607,10 +2607,10 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2607
2607
|
...p,
|
|
2608
2608
|
disabled: n ? !1 : p.disabled,
|
|
2609
2609
|
checked: T,
|
|
2610
|
-
onChange:
|
|
2610
|
+
onChange: S
|
|
2611
2611
|
}
|
|
2612
2612
|
),
|
|
2613
|
-
|
|
2613
|
+
w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
2614
2614
|
] });
|
|
2615
2615
|
}, mc = ({
|
|
2616
2616
|
id: e,
|
|
@@ -2638,14 +2638,14 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2638
2638
|
}
|
|
2639
2639
|
), C = O(
|
|
2640
2640
|
(k) => v && r ? k.getDataSet(v, r) : void 0
|
|
2641
|
-
), { validate:
|
|
2641
|
+
), { validate: w, help: T } = jt({
|
|
2642
2642
|
rules: c,
|
|
2643
2643
|
dataSet: i,
|
|
2644
2644
|
dataSetField: r,
|
|
2645
2645
|
sessionId: t,
|
|
2646
2646
|
id: e,
|
|
2647
2647
|
develop: n
|
|
2648
|
-
}),
|
|
2648
|
+
}), S = B((k) => {
|
|
2649
2649
|
if (!k) return null;
|
|
2650
2650
|
if (Ut.isDayjs(k)) return k;
|
|
2651
2651
|
if (typeof k == "string") {
|
|
@@ -2655,15 +2655,15 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2655
2655
|
return null;
|
|
2656
2656
|
}, [o]), x = y(() => {
|
|
2657
2657
|
const k = C ?? (u == null ? void 0 : u.value) ?? m ?? p;
|
|
2658
|
-
return
|
|
2659
|
-
}, [C, u == null ? void 0 : u.value, m, p,
|
|
2658
|
+
return S(k);
|
|
2659
|
+
}, [C, u == null ? void 0 : u.value, m, p, S]), A = B(
|
|
2660
2660
|
(k, M) => {
|
|
2661
2661
|
if (g) {
|
|
2662
2662
|
g(k, M);
|
|
2663
2663
|
return;
|
|
2664
2664
|
}
|
|
2665
2665
|
const E = Array.isArray(M) ? M[0] : M;
|
|
2666
|
-
if (v && r && s(v, r, E), h &&
|
|
2666
|
+
if (v && r && s(v, r, E), h && w(E), a && t) {
|
|
2667
2667
|
const { actionName: $, arg: j } = vt(a, E, {
|
|
2668
2668
|
id: e,
|
|
2669
2669
|
dataSet: i,
|
|
@@ -2672,7 +2672,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2672
2672
|
d(t, Z($, j));
|
|
2673
2673
|
}
|
|
2674
2674
|
},
|
|
2675
|
-
[g, v, r, s, h,
|
|
2675
|
+
[g, v, r, s, h, w, a, t, e, d]
|
|
2676
2676
|
);
|
|
2677
2677
|
$t(() => {
|
|
2678
2678
|
if (p && x === null && v && r) {
|
|
@@ -2680,18 +2680,18 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2680
2680
|
s(v, r, k);
|
|
2681
2681
|
}
|
|
2682
2682
|
}, [p, x, v, r, s, o]);
|
|
2683
|
-
const
|
|
2683
|
+
const D = B(() => {
|
|
2684
2684
|
if (l) {
|
|
2685
2685
|
const k = x ? x.format(o) : null;
|
|
2686
|
-
|
|
2686
|
+
w(k);
|
|
2687
2687
|
}
|
|
2688
|
-
}, [l,
|
|
2688
|
+
}, [l, w, x, o]), N = y(
|
|
2689
2689
|
() => Gt(f, u ?? void 0),
|
|
2690
2690
|
[f, u]
|
|
2691
2691
|
);
|
|
2692
|
-
return /* @__PURE__ */ at("div", { onBlur:
|
|
2692
|
+
return /* @__PURE__ */ at("div", { onBlur: D, children: [
|
|
2693
2693
|
/* @__PURE__ */ b(
|
|
2694
|
-
|
|
2694
|
+
En,
|
|
2695
2695
|
{
|
|
2696
2696
|
...N,
|
|
2697
2697
|
disabled: n ? !1 : N.disabled,
|
|
@@ -2724,14 +2724,14 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2724
2724
|
[t, i]
|
|
2725
2725
|
), C = y(() => {
|
|
2726
2726
|
if (u && r) return s(u, r);
|
|
2727
|
-
}, [u, r, s]), { validate:
|
|
2727
|
+
}, [u, r, s]), { validate: w, help: T } = jt({
|
|
2728
2728
|
rules: g,
|
|
2729
2729
|
dataSet: i,
|
|
2730
2730
|
dataSetField: r,
|
|
2731
2731
|
sessionId: t,
|
|
2732
2732
|
id: e,
|
|
2733
2733
|
develop: n
|
|
2734
|
-
}),
|
|
2734
|
+
}), S = B((k) => {
|
|
2735
2735
|
if (!k) return null;
|
|
2736
2736
|
if (Ut.isDayjs(k)) return k;
|
|
2737
2737
|
if (typeof k == "string") {
|
|
@@ -2739,19 +2739,19 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2739
2739
|
return M.isValid() ? M : null;
|
|
2740
2740
|
}
|
|
2741
2741
|
return null;
|
|
2742
|
-
}, [o]), x = y(() =>
|
|
2742
|
+
}, [o]), x = y(() => S(C ?? l ?? h), [C, l, h, S]), A = B((k, M) => {
|
|
2743
2743
|
if (c) {
|
|
2744
2744
|
c(k, M);
|
|
2745
2745
|
return;
|
|
2746
2746
|
}
|
|
2747
2747
|
const E = M || "";
|
|
2748
|
-
if (u && r && v(u, r, E), m &&
|
|
2748
|
+
if (u && r && v(u, r, E), m && w(E), a && t) {
|
|
2749
2749
|
const { actionName: $, arg: j } = vt(a, E, { id: e, dataSet: i, dataSetField: r });
|
|
2750
2750
|
d(t, Z($, j));
|
|
2751
2751
|
}
|
|
2752
|
-
}, [c, u, r, v, m,
|
|
2753
|
-
p &&
|
|
2754
|
-
}, [p,
|
|
2752
|
+
}, [c, u, r, v, m, w, a, t, e, d]), D = B(() => {
|
|
2753
|
+
p && w(x ? x.format(o) : "");
|
|
2754
|
+
}, [p, w, x, o]), N = T ? "error" : void 0;
|
|
2755
2755
|
return /* @__PURE__ */ at(ye, { children: [
|
|
2756
2756
|
/* @__PURE__ */ b(
|
|
2757
2757
|
lr,
|
|
@@ -2761,14 +2761,14 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2761
2761
|
open: n ? !1 : void 0,
|
|
2762
2762
|
value: x,
|
|
2763
2763
|
onChange: A,
|
|
2764
|
-
onBlur:
|
|
2764
|
+
onBlur: D,
|
|
2765
2765
|
style: { width: "100%", ...f.style },
|
|
2766
2766
|
status: N
|
|
2767
2767
|
}
|
|
2768
2768
|
),
|
|
2769
2769
|
T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: T })
|
|
2770
2770
|
] });
|
|
2771
|
-
}, { RangePicker: _a } =
|
|
2771
|
+
}, { RangePicker: _a } = En, yc = ({
|
|
2772
2772
|
id: e,
|
|
2773
2773
|
sessionId: t,
|
|
2774
2774
|
develop: n,
|
|
@@ -2794,30 +2794,30 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2794
2794
|
}
|
|
2795
2795
|
), C = O(
|
|
2796
2796
|
(k) => v && r ? k.getDataSet(v, r) : void 0
|
|
2797
|
-
), { validate:
|
|
2797
|
+
), { validate: w, help: T } = jt({
|
|
2798
2798
|
rules: c,
|
|
2799
2799
|
dataSet: i,
|
|
2800
2800
|
dataSetField: r,
|
|
2801
2801
|
sessionId: t,
|
|
2802
2802
|
id: e,
|
|
2803
2803
|
develop: n
|
|
2804
|
-
}),
|
|
2804
|
+
}), S = B((k) => {
|
|
2805
2805
|
if (!k || !Array.isArray(k) || k.length !== 2) return null;
|
|
2806
2806
|
const [M, E] = k, $ = Ut.isDayjs(M) ? M : Ut(M, o), j = Ut.isDayjs(E) ? E : Ut(E, o);
|
|
2807
2807
|
return $.isValid() && j.isValid() ? [$, j] : null;
|
|
2808
2808
|
}, [o]), x = y(() => {
|
|
2809
2809
|
const k = C ?? (u == null ? void 0 : u.value) ?? m ?? p;
|
|
2810
|
-
return
|
|
2811
|
-
}, [C, u == null ? void 0 : u.value, m, p,
|
|
2810
|
+
return S(k);
|
|
2811
|
+
}, [C, u == null ? void 0 : u.value, m, p, S]), A = y(
|
|
2812
2812
|
() => Gt(f, u ?? void 0),
|
|
2813
2813
|
[f, u]
|
|
2814
|
-
),
|
|
2814
|
+
), D = B(
|
|
2815
2815
|
(k, M) => {
|
|
2816
2816
|
if (g) {
|
|
2817
2817
|
g(k, M);
|
|
2818
2818
|
return;
|
|
2819
2819
|
}
|
|
2820
|
-
if (v && r && s(v, r, M), h &&
|
|
2820
|
+
if (v && r && s(v, r, M), h && w(M), a && t) {
|
|
2821
2821
|
const { actionName: E, arg: $ } = vt(a, M, {
|
|
2822
2822
|
id: e,
|
|
2823
2823
|
dataSet: i,
|
|
@@ -2826,11 +2826,11 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2826
2826
|
d(t, Z(E, $));
|
|
2827
2827
|
}
|
|
2828
2828
|
},
|
|
2829
|
-
[g, v, r, s, h,
|
|
2829
|
+
[g, v, r, s, h, w, a, t, e, d]
|
|
2830
2830
|
), N = B(() => {
|
|
2831
2831
|
var k, M;
|
|
2832
|
-
l &&
|
|
2833
|
-
}, [l,
|
|
2832
|
+
l && w(x ? [(k = x[0]) == null ? void 0 : k.format(o), (M = x[1]) == null ? void 0 : M.format(o)] : null);
|
|
2833
|
+
}, [l, w, x, o]);
|
|
2834
2834
|
return /* @__PURE__ */ at("div", { onBlur: N, children: [
|
|
2835
2835
|
/* @__PURE__ */ b(
|
|
2836
2836
|
_a,
|
|
@@ -2839,7 +2839,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2839
2839
|
disabled: n ? !1 : A.disabled,
|
|
2840
2840
|
open: n ? !1 : void 0,
|
|
2841
2841
|
value: x,
|
|
2842
|
-
onChange:
|
|
2842
|
+
onChange: D,
|
|
2843
2843
|
style: { width: "100%", ...A.style }
|
|
2844
2844
|
}
|
|
2845
2845
|
),
|
|
@@ -2865,9 +2865,9 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2865
2865
|
dictCode: v,
|
|
2866
2866
|
direction: u,
|
|
2867
2867
|
remoteUrl: C,
|
|
2868
|
-
...
|
|
2868
|
+
...w
|
|
2869
2869
|
}) => {
|
|
2870
|
-
const T = O((K) => K.addCommand),
|
|
2870
|
+
const T = O((K) => K.addCommand), S = O((K) => K.setDataSet), x = y(
|
|
2871
2871
|
() => tt(t, i),
|
|
2872
2872
|
[t, i]
|
|
2873
2873
|
), A = O(
|
|
@@ -2875,7 +2875,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2875
2875
|
var X;
|
|
2876
2876
|
return t && e ? ((X = K.propsStore[`${t}_props`]) == null ? void 0 : X[e]) ?? null : null;
|
|
2877
2877
|
}
|
|
2878
|
-
),
|
|
2878
|
+
), D = O(
|
|
2879
2879
|
(K) => x && r ? K.getDataSet(x, r) : void 0
|
|
2880
2880
|
), { validate: N, help: k } = jt({
|
|
2881
2881
|
rules: g,
|
|
@@ -2884,7 +2884,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2884
2884
|
sessionId: t,
|
|
2885
2885
|
id: e,
|
|
2886
2886
|
develop: n
|
|
2887
|
-
}), M = y(() =>
|
|
2887
|
+
}), M = y(() => D !== void 0 ? D : (A == null ? void 0 : A.value) !== void 0 ? A.value : d ?? s, [D, A == null ? void 0 : A.value, d, s]), { options: E } = ve(v), { options: $ } = an(
|
|
2888
2888
|
o == null ? void 0 : o.url,
|
|
2889
2889
|
{
|
|
2890
2890
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
@@ -2896,8 +2896,8 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2896
2896
|
const K = re(j, M);
|
|
2897
2897
|
return (K == null ? void 0 : K.value) ?? M;
|
|
2898
2898
|
}, [M, j]), H = y(
|
|
2899
|
-
() => Gt(
|
|
2900
|
-
[
|
|
2899
|
+
() => Gt(w, A ?? void 0),
|
|
2900
|
+
[w, A]
|
|
2901
2901
|
), V = B(
|
|
2902
2902
|
(K) => {
|
|
2903
2903
|
const X = K.target.value;
|
|
@@ -2905,7 +2905,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2905
2905
|
f(X);
|
|
2906
2906
|
return;
|
|
2907
2907
|
}
|
|
2908
|
-
if (x && r &&
|
|
2908
|
+
if (x && r && S(x, r, X), p && N(X), c && t) {
|
|
2909
2909
|
const { actionName: _, arg: R } = vt(c, X, {
|
|
2910
2910
|
id: e,
|
|
2911
2911
|
dataSet: i,
|
|
@@ -2918,7 +2918,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2918
2918
|
f,
|
|
2919
2919
|
x,
|
|
2920
2920
|
r,
|
|
2921
|
-
|
|
2921
|
+
S,
|
|
2922
2922
|
p,
|
|
2923
2923
|
N,
|
|
2924
2924
|
c,
|
|
@@ -2971,12 +2971,12 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2971
2971
|
defaultChecked: v,
|
|
2972
2972
|
children: u,
|
|
2973
2973
|
dictCode: C,
|
|
2974
|
-
direction:
|
|
2974
|
+
direction: w = "horizontal",
|
|
2975
2975
|
// 解构自定义属性防止传递到 DOM
|
|
2976
2976
|
remoteUrl: T,
|
|
2977
|
-
...
|
|
2977
|
+
...S
|
|
2978
2978
|
}) => {
|
|
2979
|
-
const x = O((R) => R.addCommand), A = O((R) => R.setDataSet),
|
|
2979
|
+
const x = O((R) => R.addCommand), A = O((R) => R.setDataSet), D = y(
|
|
2980
2980
|
() => tt(t, i),
|
|
2981
2981
|
[t, i]
|
|
2982
2982
|
), N = O(
|
|
@@ -2985,7 +2985,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2985
2985
|
return t && e ? ((P = R.propsStore[`${t}_props`]) == null ? void 0 : P[e]) ?? null : null;
|
|
2986
2986
|
}
|
|
2987
2987
|
), k = O(
|
|
2988
|
-
(R) =>
|
|
2988
|
+
(R) => D && r ? R.getDataSet(D, r) : void 0
|
|
2989
2989
|
), { validate: M, help: E } = jt({
|
|
2990
2990
|
rules: h,
|
|
2991
2991
|
dataSet: i,
|
|
@@ -2993,7 +2993,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
2993
2993
|
sessionId: t,
|
|
2994
2994
|
id: e,
|
|
2995
2995
|
develop: n
|
|
2996
|
-
}), { options: $ } = ve(C), { options: j } =
|
|
2996
|
+
}), { options: $ } = ve(C), { options: j } = an(
|
|
2997
2997
|
o == null ? void 0 : o.url,
|
|
2998
2998
|
{
|
|
2999
2999
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
@@ -3011,35 +3011,35 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3011
3011
|
return ((q = re(H, P)) == null ? void 0 : q.value) ?? P;
|
|
3012
3012
|
});
|
|
3013
3013
|
}, [c, k, N == null ? void 0 : N.values, s, H]), L = y(
|
|
3014
|
-
() => Gt(
|
|
3015
|
-
[
|
|
3014
|
+
() => Gt(S, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3015
|
+
[S, N]
|
|
3016
3016
|
), K = B((R) => {
|
|
3017
3017
|
const P = R.target.checked;
|
|
3018
3018
|
if (p) {
|
|
3019
3019
|
p(P);
|
|
3020
3020
|
return;
|
|
3021
3021
|
}
|
|
3022
|
-
if (
|
|
3022
|
+
if (D && r && A(D, r, P), m && M(P), l && t) {
|
|
3023
3023
|
const { actionName: q, arg: W } = vt(l, P, { id: e, dataSet: i, dataSetField: r });
|
|
3024
3024
|
x(t, Z(q, W));
|
|
3025
3025
|
}
|
|
3026
|
-
}, [p,
|
|
3026
|
+
}, [p, D, r, A, m, M, l, t, e, x]), X = B((R) => {
|
|
3027
3027
|
if (f) {
|
|
3028
3028
|
f(R);
|
|
3029
3029
|
return;
|
|
3030
3030
|
}
|
|
3031
|
-
if (
|
|
3031
|
+
if (D && r && A(D, r, R), m && M(R), l && t) {
|
|
3032
3032
|
const { actionName: P, arg: q } = vt(l, R, { id: e, dataSet: i, dataSetField: r });
|
|
3033
3033
|
x(t, Z(P, q));
|
|
3034
3034
|
}
|
|
3035
|
-
}, [f,
|
|
3035
|
+
}, [f, D, r, A, m, M, l, t, e, x]), _ = B(() => {
|
|
3036
3036
|
g && M(c ? V : z);
|
|
3037
3037
|
}, [g, M, c, V, z]);
|
|
3038
3038
|
return c && H.length > 0 ? /* @__PURE__ */ at("div", { onBlur: _, children: [
|
|
3039
3039
|
/* @__PURE__ */ b(oe.Group, { ...L, value: V, onChange: X, disabled: n ? !1 : L.disabled, children: /* @__PURE__ */ b(
|
|
3040
3040
|
Yt,
|
|
3041
3041
|
{
|
|
3042
|
-
direction: L.direction ??
|
|
3042
|
+
direction: L.direction ?? w,
|
|
3043
3043
|
wrap: !0,
|
|
3044
3044
|
children: H.map((R) => /* @__PURE__ */ b(oe, { value: R.value, disabled: R.disabled, children: R.label }, R.value))
|
|
3045
3045
|
}
|
|
@@ -3073,31 +3073,31 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3073
3073
|
defaultValue: m,
|
|
3074
3074
|
...p
|
|
3075
3075
|
}) => {
|
|
3076
|
-
const f = O((
|
|
3076
|
+
const f = O((D) => D.addCommand), d = O((D) => D.setDataSet), s = y(
|
|
3077
3077
|
() => tt(t, i),
|
|
3078
3078
|
[t, i]
|
|
3079
3079
|
), v = O(
|
|
3080
|
-
(
|
|
3080
|
+
(D) => {
|
|
3081
3081
|
var N;
|
|
3082
|
-
return t && e ? ((N =
|
|
3082
|
+
return t && e ? ((N = D.propsStore[`${t}_props`]) == null ? void 0 : N[e]) ?? null : null;
|
|
3083
3083
|
}
|
|
3084
3084
|
), u = O(
|
|
3085
|
-
(
|
|
3086
|
-
), { validate: C, help:
|
|
3085
|
+
(D) => s && r ? D.getDataSet(s, r) : void 0
|
|
3086
|
+
), { validate: C, help: w } = jt({
|
|
3087
3087
|
rules: o,
|
|
3088
3088
|
dataSet: i,
|
|
3089
3089
|
dataSetField: r,
|
|
3090
3090
|
sessionId: t,
|
|
3091
3091
|
id: e,
|
|
3092
3092
|
develop: n
|
|
3093
|
-
}), T = y(() => u !== void 0 ? u : (v == null ? void 0 : v.value) !== void 0 ? v.value : g ?? m, [u, v == null ? void 0 : v.value, g, m]),
|
|
3094
|
-
(
|
|
3093
|
+
}), T = y(() => u !== void 0 ? u : (v == null ? void 0 : v.value) !== void 0 ? v.value : g ?? m, [u, v == null ? void 0 : v.value, g, m]), S = B(
|
|
3094
|
+
(D) => {
|
|
3095
3095
|
if (h) {
|
|
3096
|
-
h(
|
|
3096
|
+
h(D);
|
|
3097
3097
|
return;
|
|
3098
3098
|
}
|
|
3099
|
-
if (s && r && d(s, r,
|
|
3100
|
-
const { actionName: N, arg: k } = vt(a,
|
|
3099
|
+
if (s && r && d(s, r, D), l && C(D), a && t) {
|
|
3100
|
+
const { actionName: N, arg: k } = vt(a, D, {
|
|
3101
3101
|
id: e,
|
|
3102
3102
|
dataSet: i,
|
|
3103
3103
|
dataSetField: r
|
|
@@ -3119,10 +3119,10 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3119
3119
|
...A,
|
|
3120
3120
|
disabled: n ? !1 : A.disabled,
|
|
3121
3121
|
value: T,
|
|
3122
|
-
onChange:
|
|
3122
|
+
onChange: S
|
|
3123
3123
|
}
|
|
3124
3124
|
),
|
|
3125
|
-
|
|
3125
|
+
w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
3126
3126
|
] });
|
|
3127
3127
|
}, bc = ({
|
|
3128
3128
|
id: e,
|
|
@@ -3147,8 +3147,8 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3147
3147
|
return;
|
|
3148
3148
|
}
|
|
3149
3149
|
if (f && r && p(f, r, u), a && t) {
|
|
3150
|
-
const { actionName: C, arg:
|
|
3151
|
-
g(t, Z(C,
|
|
3150
|
+
const { actionName: C, arg: w } = vt(a, u, { id: e, dataSet: i, dataSetField: r });
|
|
3151
|
+
g(t, Z(C, w));
|
|
3152
3152
|
}
|
|
3153
3153
|
}, [o, f, r, p, a, t, e, g]);
|
|
3154
3154
|
return /* @__PURE__ */ b(fr, { ...h, disabled: n ? !1 : h.disabled, value: s, onChange: v });
|
|
@@ -3162,7 +3162,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3162
3162
|
};
|
|
3163
3163
|
return l && l.length && (h.children = l), h;
|
|
3164
3164
|
});
|
|
3165
|
-
},
|
|
3165
|
+
}, Sn = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], Ma = (e, t) => {
|
|
3166
3166
|
const n = (i, r, a = []) => {
|
|
3167
3167
|
for (const o of i) {
|
|
3168
3168
|
const c = o.value, l = [...a, c];
|
|
@@ -3176,7 +3176,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3176
3176
|
return null;
|
|
3177
3177
|
};
|
|
3178
3178
|
return n(t, e) || [];
|
|
3179
|
-
},
|
|
3179
|
+
}, wn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Dn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), Sc = ({
|
|
3180
3180
|
id: e,
|
|
3181
3181
|
sessionId: t,
|
|
3182
3182
|
develop: n,
|
|
@@ -3194,10 +3194,10 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3194
3194
|
remoteUrl: d,
|
|
3195
3195
|
...s
|
|
3196
3196
|
}) => {
|
|
3197
|
-
const v = O((V) => V.addCommand), u = O((V) => V.setDataSet), C = qt(null), [
|
|
3197
|
+
const v = O((V) => V.addCommand), u = O((V) => V.setDataSet), C = qt(null), [w, T] = gt([]), [S, x] = gt(!1), A = y(
|
|
3198
3198
|
() => tt(t, i),
|
|
3199
3199
|
[t, i]
|
|
3200
|
-
),
|
|
3200
|
+
), D = O(
|
|
3201
3201
|
(V) => A && r ? V.getDataSet(A, r) : void 0
|
|
3202
3202
|
), { validate: N, help: k, validateStatus: M } = jt({
|
|
3203
3203
|
rules: o,
|
|
@@ -3206,10 +3206,10 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3206
3206
|
sessionId: t,
|
|
3207
3207
|
id: e,
|
|
3208
3208
|
develop: n
|
|
3209
|
-
}), E = y(() => (a == null ? void 0 : a.url) &&
|
|
3210
|
-
let V =
|
|
3211
|
-
return typeof V == "string" ? E ?
|
|
3212
|
-
}, [
|
|
3209
|
+
}), E = y(() => (a == null ? void 0 : a.url) && w.length > 0, [a == null ? void 0 : a.url, w.length]), $ = y(() => {
|
|
3210
|
+
let V = D ?? f ?? p ?? [];
|
|
3211
|
+
return typeof V == "string" ? E ? Sn(V).map((K) => Ma(K, w)).filter((K) => Array.isArray(K) && K.length > 0) : [V] : wn(V) && E ? V.map((K) => Sn(K)).filter((K) => Array.isArray(K) && K.length > 0) : Dn(V) && E ? V.filter((L) => Array.isArray(L) && L.length > 0) : V;
|
|
3212
|
+
}, [D, f, p, E, w]), j = y(() => a != null && a.url && w.length > 0 ? w : m || [], [a == null ? void 0 : a.url, w, m]);
|
|
3213
3213
|
$t(() => {
|
|
3214
3214
|
(async () => {
|
|
3215
3215
|
if (a != null && a.url) {
|
|
@@ -3237,7 +3237,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3237
3237
|
return;
|
|
3238
3238
|
}
|
|
3239
3239
|
let K = V;
|
|
3240
|
-
if (
|
|
3240
|
+
if (wn(V) && E ? K = String(V[V.length - 1] || "") : Dn(V) && E && (K = V.map((X) => X.join(","))), A && r && u(A, r, K), l && (C.current && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
3241
3241
|
C.current = null, N(V);
|
|
3242
3242
|
}, $a)), h && t) {
|
|
3243
3243
|
const { actionName: X, arg: _ } = vt(h, V, {
|
|
@@ -3280,7 +3280,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3280
3280
|
options: j,
|
|
3281
3281
|
onChange: z,
|
|
3282
3282
|
onBlur: H,
|
|
3283
|
-
loading:
|
|
3283
|
+
loading: S,
|
|
3284
3284
|
status: M,
|
|
3285
3285
|
style: { width: "100%", ...s.style }
|
|
3286
3286
|
}
|
|
@@ -3308,7 +3308,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3308
3308
|
validateOnBlur: u,
|
|
3309
3309
|
...C
|
|
3310
3310
|
}) => {
|
|
3311
|
-
const
|
|
3311
|
+
const w = O((L) => L.addCommand), T = O((L) => L.setDataSet), S = y(
|
|
3312
3312
|
() => tt(t, i),
|
|
3313
3313
|
[t, i]
|
|
3314
3314
|
), x = O(
|
|
@@ -3317,8 +3317,8 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3317
3317
|
return t && e ? ((K = L.propsStore[`${t}_props`]) == null ? void 0 : K[e]) ?? null : null;
|
|
3318
3318
|
}
|
|
3319
3319
|
), A = O(
|
|
3320
|
-
(L) =>
|
|
3321
|
-
), { validate:
|
|
3320
|
+
(L) => S && r ? L.getDataSet(S, r) : void 0
|
|
3321
|
+
), { validate: D, help: N } = jt({
|
|
3322
3322
|
rules: s,
|
|
3323
3323
|
dataSet: i,
|
|
3324
3324
|
dataSetField: r,
|
|
@@ -3337,19 +3337,19 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3337
3337
|
o(L, K, X);
|
|
3338
3338
|
return;
|
|
3339
3339
|
}
|
|
3340
|
-
if (
|
|
3340
|
+
if (S && r && T(S, r, L), v && D(L), a && t) {
|
|
3341
3341
|
const { actionName: _, arg: R } = vt(a, L, {
|
|
3342
3342
|
id: e,
|
|
3343
3343
|
dataSet: i,
|
|
3344
3344
|
dataSetField: r
|
|
3345
3345
|
});
|
|
3346
|
-
|
|
3346
|
+
w(t, Z(_, R));
|
|
3347
3347
|
}
|
|
3348
3348
|
},
|
|
3349
|
-
[o,
|
|
3349
|
+
[o, S, r, T, v, D, a, t, e, w]
|
|
3350
3350
|
), $ = B(() => {
|
|
3351
|
-
u &&
|
|
3352
|
-
}, [u,
|
|
3351
|
+
u && D(k);
|
|
3352
|
+
}, [u, D, k]), j = y(() => {
|
|
3353
3353
|
if (!d) return;
|
|
3354
3354
|
const L = {};
|
|
3355
3355
|
return Object.entries(d).forEach(([K, X]) => {
|
|
@@ -3400,20 +3400,20 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3400
3400
|
action: s,
|
|
3401
3401
|
...v
|
|
3402
3402
|
}) => {
|
|
3403
|
-
const u =
|
|
3403
|
+
const u = nn(i, r, t), C = u.dataSet, w = u.dataSetField, T = u.sessionId, S = O((U) => U.addCommand), x = O((U) => U.setDataSet), A = y(
|
|
3404
3404
|
() => tt(T, C),
|
|
3405
3405
|
[T, C]
|
|
3406
|
-
),
|
|
3406
|
+
), D = O(
|
|
3407
3407
|
(U) => {
|
|
3408
3408
|
var G;
|
|
3409
3409
|
return T && e ? ((G = U.propsStore[`${T}_props`]) == null ? void 0 : G[e]) ?? null : null;
|
|
3410
3410
|
}
|
|
3411
3411
|
), N = O(
|
|
3412
|
-
(U) => A &&
|
|
3412
|
+
(U) => A && w ? U.getDataSet(A, w) : void 0
|
|
3413
3413
|
), { validate: k, help: M } = jt({
|
|
3414
3414
|
rules: c,
|
|
3415
3415
|
dataSet: C,
|
|
3416
|
-
dataSetField:
|
|
3416
|
+
dataSetField: w,
|
|
3417
3417
|
sessionId: T,
|
|
3418
3418
|
id: e,
|
|
3419
3419
|
develop: n
|
|
@@ -3445,15 +3445,15 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3445
3445
|
return ht && typeof ht == "string" && (Tt.url = ht, Tt.thumbUrl = ht), Tt;
|
|
3446
3446
|
});
|
|
3447
3447
|
}, []), [z, H] = gt(null), V = y(() => {
|
|
3448
|
-
const U = N ?? (
|
|
3448
|
+
const U = N ?? (D == null ? void 0 : D.fileList) ?? m;
|
|
3449
3449
|
if (U != null) {
|
|
3450
3450
|
if (typeof U == "string" && U) return $([U]);
|
|
3451
3451
|
if (Array.isArray(U))
|
|
3452
3452
|
return U.length > 0 && typeof U[0] == "string" ? $(U) : j(U);
|
|
3453
3453
|
}
|
|
3454
|
-
}, [N,
|
|
3455
|
-
() => Gt(v,
|
|
3456
|
-
[v,
|
|
3454
|
+
}, [N, D == null ? void 0 : D.fileList, m, $, j]), L = z ?? V, K = y(
|
|
3455
|
+
() => Gt(v, D ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3456
|
+
[v, D]
|
|
3457
3457
|
), X = B((U) => U.size / 1024 / 1024 < d ? !0 : (De.error(`文件大小不能超过 ${d}MB`), !1), [d]), _ = B(async (U) => {
|
|
3458
3458
|
const { file: G, onSuccess: ft, onError: I, onProgress: mt } = U;
|
|
3459
3459
|
if (Pt().upload)
|
|
@@ -3478,7 +3478,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3478
3478
|
return;
|
|
3479
3479
|
}
|
|
3480
3480
|
const G = Array.isArray(U.fileList) ? j(U.fileList) : U.fileList, ft = Array.isArray(G) ? E(G) : [], I = Array.isArray(G) && G.some((ht) => (ht == null ? void 0 : ht.status) === "uploading");
|
|
3481
|
-
A &&
|
|
3481
|
+
A && w && (ft.length > 0 || !Array.isArray(G) || G.length === 0) ? (x(A, w, ft), H(null)) : I ? H(G) : G.length === 0 && H(null), h && k(G), a && T && S(
|
|
3482
3482
|
T,
|
|
3483
3483
|
Z(a, {
|
|
3484
3484
|
file: U.file,
|
|
@@ -3490,13 +3490,13 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3490
3490
|
[
|
|
3491
3491
|
g,
|
|
3492
3492
|
A,
|
|
3493
|
-
|
|
3493
|
+
w,
|
|
3494
3494
|
x,
|
|
3495
3495
|
h,
|
|
3496
3496
|
k,
|
|
3497
3497
|
a,
|
|
3498
3498
|
T,
|
|
3499
|
-
|
|
3499
|
+
S,
|
|
3500
3500
|
j,
|
|
3501
3501
|
E
|
|
3502
3502
|
]
|
|
@@ -3543,7 +3543,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3543
3543
|
action: ct ? void 0 : s || f,
|
|
3544
3544
|
openFileDialogOnClick: !n,
|
|
3545
3545
|
children: !bt && (p || (dt === "picture-card" || dt === "picture-circle" ? /* @__PURE__ */ at("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
3546
|
-
/* @__PURE__ */ b(
|
|
3546
|
+
/* @__PURE__ */ b(Kn, {}),
|
|
3547
3547
|
/* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: nt })
|
|
3548
3548
|
] }) : /* @__PURE__ */ b(Zt, { icon: /* @__PURE__ */ b(Xr, {}), children: nt })))
|
|
3549
3549
|
}
|
|
@@ -3601,14 +3601,14 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3601
3601
|
searchAction: d,
|
|
3602
3602
|
...s
|
|
3603
3603
|
}) => {
|
|
3604
|
-
const v = O((j) => j.addCommand), u = O((j) => j.getDataSet), C = O((j) => j.setDataSet),
|
|
3604
|
+
const v = O((j) => j.addCommand), u = O((j) => j.getDataSet), C = O((j) => j.setDataSet), w = y(
|
|
3605
3605
|
() => tt(t, i),
|
|
3606
3606
|
[t, i]
|
|
3607
|
-
), [T,
|
|
3608
|
-
if (
|
|
3609
|
-
}, [
|
|
3607
|
+
), [T, S] = gt(m || []), [, x] = gt(!1), A = Vt.useRef(void 0), { get: D } = Zi(), N = y(() => {
|
|
3608
|
+
if (w && r) return u(w, r);
|
|
3609
|
+
}, [w, r, u]), k = y(() => N ?? h ?? g, [N, h, g]), M = B((j) => {
|
|
3610
3610
|
if (!(f != null && f.queryApi)) {
|
|
3611
|
-
m &&
|
|
3611
|
+
m && S(
|
|
3612
3612
|
m.filter(
|
|
3613
3613
|
(z) => {
|
|
3614
3614
|
var H, V;
|
|
@@ -3626,7 +3626,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3626
3626
|
H && (X[H] = j), Array.isArray(K) && K.forEach((q) => {
|
|
3627
3627
|
q.key && (X[q.key] = q.value);
|
|
3628
3628
|
});
|
|
3629
|
-
const _ = await
|
|
3629
|
+
const _ = await D(z, X);
|
|
3630
3630
|
let R = [];
|
|
3631
3631
|
Array.isArray(_) ? R = _ : _ && Array.isArray(_.data) ? R = _.data : _ && _.data && Array.isArray(_.data.records) ? R = _.data.records : _ && _.result && Array.isArray(_.result) && (R = _.result);
|
|
3632
3632
|
const P = R.map((q) => ({
|
|
@@ -3634,28 +3634,28 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3634
3634
|
label: q[L] || q[V],
|
|
3635
3635
|
...q
|
|
3636
3636
|
}));
|
|
3637
|
-
|
|
3637
|
+
S(P);
|
|
3638
3638
|
} catch (z) {
|
|
3639
|
-
console.error("Failed to fetch remote options:", z),
|
|
3639
|
+
console.error("Failed to fetch remote options:", z), S([]);
|
|
3640
3640
|
} finally {
|
|
3641
3641
|
x(!1);
|
|
3642
3642
|
}
|
|
3643
3643
|
}
|
|
3644
3644
|
}, 500);
|
|
3645
|
-
}, [f, m,
|
|
3645
|
+
}, [f, m, D]);
|
|
3646
3646
|
Vt.useEffect(() => {
|
|
3647
|
-
!(f != null && f.queryApi) && m &&
|
|
3647
|
+
!(f != null && f.queryApi) && m && S(m);
|
|
3648
3648
|
}, [m, f == null ? void 0 : f.queryApi]);
|
|
3649
3649
|
const E = B((j) => {
|
|
3650
3650
|
if (c) {
|
|
3651
3651
|
c(j);
|
|
3652
3652
|
return;
|
|
3653
3653
|
}
|
|
3654
|
-
if (
|
|
3654
|
+
if (w && r && C(w, r, j), a && t) {
|
|
3655
3655
|
const { actionName: z, arg: H } = vt(a, j, { id: e, dataSet: i, dataSetField: r });
|
|
3656
3656
|
v(t, Z(z, H));
|
|
3657
3657
|
}
|
|
3658
|
-
}, [c,
|
|
3658
|
+
}, [c, w, r, C, a, t, e, v]), $ = B((j, z) => {
|
|
3659
3659
|
if (l) {
|
|
3660
3660
|
l(j, z);
|
|
3661
3661
|
return;
|
|
@@ -3693,15 +3693,15 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3693
3693
|
children: f,
|
|
3694
3694
|
...d
|
|
3695
3695
|
}) => {
|
|
3696
|
-
const [s] = Ne.useForm(), v = O((
|
|
3696
|
+
const [s] = Ne.useForm(), v = O((S) => S.addCommand), u = O((S) => S.setDataSet), C = y(
|
|
3697
3697
|
() => tt(t, i),
|
|
3698
3698
|
[t, i]
|
|
3699
|
-
),
|
|
3699
|
+
), w = (S) => {
|
|
3700
3700
|
if (m) {
|
|
3701
|
-
m(
|
|
3701
|
+
m(S);
|
|
3702
3702
|
return;
|
|
3703
3703
|
}
|
|
3704
|
-
C && r && u(C, r,
|
|
3704
|
+
C && r && u(C, r, S), a && t && v(t, Z(a, S));
|
|
3705
3705
|
}, T = () => {
|
|
3706
3706
|
if (s.resetFields(), p) {
|
|
3707
3707
|
p();
|
|
@@ -3709,7 +3709,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3709
3709
|
}
|
|
3710
3710
|
o && t && v(t, Z(o, null));
|
|
3711
3711
|
};
|
|
3712
|
-
return /* @__PURE__ */ at(Ne, { ...d, form: s, onFinish:
|
|
3712
|
+
return /* @__PURE__ */ at(Ne, { ...d, form: s, onFinish: w, children: [
|
|
3713
3713
|
f,
|
|
3714
3714
|
(c || l) && /* @__PURE__ */ b(Ne.Item, { children: /* @__PURE__ */ at(Yt, { children: [
|
|
3715
3715
|
c && /* @__PURE__ */ b(Zt, { type: "primary", htmlType: "submit", children: h }),
|
|
@@ -3751,12 +3751,12 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3751
3751
|
locale: v,
|
|
3752
3752
|
changeAction: u,
|
|
3753
3753
|
selectChangeAction: C,
|
|
3754
|
-
searchAction:
|
|
3754
|
+
searchAction: w,
|
|
3755
3755
|
scrollAction: T,
|
|
3756
|
-
onChange:
|
|
3756
|
+
onChange: S,
|
|
3757
3757
|
onSelectChange: x,
|
|
3758
3758
|
onSearch: A,
|
|
3759
|
-
onScroll:
|
|
3759
|
+
onScroll: D,
|
|
3760
3760
|
styles: N,
|
|
3761
3761
|
token: k,
|
|
3762
3762
|
...M
|
|
@@ -3775,12 +3775,12 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3775
3775
|
if (Array.isArray(nt)) return nt;
|
|
3776
3776
|
}
|
|
3777
3777
|
}, [z, r, $]), q = y(() => n ? P ?? Wt(a, []) : z ? P ?? [] : Wt(a, []), [n, z, P, a]), W = y(() => n ? R ?? Wt(o, []) : z ? R ?? [] : Wt(o, []), [n, z, R, o]), rt = y(() => Wt(c, []), [c]), ut = B((nt, dt, J) => {
|
|
3778
|
-
if (
|
|
3779
|
-
|
|
3778
|
+
if (S) {
|
|
3779
|
+
S(nt, dt, J);
|
|
3780
3780
|
return;
|
|
3781
3781
|
}
|
|
3782
3782
|
z && r && j(z, r, nt), u && t && E(t, Z(u, { targetKeys: nt, direction: dt, moveKeys: J }));
|
|
3783
|
-
}, [
|
|
3783
|
+
}, [S, z, r, j, u, t, E]), et = B((nt, dt) => {
|
|
3784
3784
|
if (x) {
|
|
3785
3785
|
x(nt, dt);
|
|
3786
3786
|
return;
|
|
@@ -3791,14 +3791,14 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3791
3791
|
A(nt, dt);
|
|
3792
3792
|
return;
|
|
3793
3793
|
}
|
|
3794
|
-
|
|
3795
|
-
}, [A,
|
|
3796
|
-
if (
|
|
3797
|
-
|
|
3794
|
+
w && t && E(t, Z(w, { direction: nt, value: dt }));
|
|
3795
|
+
}, [A, w, t, E]), ct = B((nt, dt) => {
|
|
3796
|
+
if (D) {
|
|
3797
|
+
D(nt, dt);
|
|
3798
3798
|
return;
|
|
3799
3799
|
}
|
|
3800
3800
|
T && t && E(t, Z(T, { direction: nt }));
|
|
3801
|
-
}, [
|
|
3801
|
+
}, [D, T, t, E]), ot = /* @__PURE__ */ b(
|
|
3802
3802
|
gr,
|
|
3803
3803
|
{
|
|
3804
3804
|
dataSource: q,
|
|
@@ -3865,26 +3865,26 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3865
3865
|
token: v,
|
|
3866
3866
|
...u
|
|
3867
3867
|
}) => {
|
|
3868
|
-
const C = O(($) => $.addCommand),
|
|
3868
|
+
const C = O(($) => $.addCommand), w = O(($) => $.getDataSet), T = O(($) => $.setDataSet), S = y(
|
|
3869
3869
|
() => tt(t, i),
|
|
3870
3870
|
[t, i]
|
|
3871
|
-
), x = y(() => Ie(s, {}), [s]), A = y(() => Ie(v, {}), [v]),
|
|
3872
|
-
if (
|
|
3873
|
-
const $ =
|
|
3871
|
+
), x = y(() => Ie(s, {}), [s]), A = y(() => Ie(v, {}), [v]), D = y(() => ja(a), [a]), k = y(() => {
|
|
3872
|
+
if (S && r) {
|
|
3873
|
+
const $ = w(S, r);
|
|
3874
3874
|
if (typeof $ == "string") return $;
|
|
3875
3875
|
}
|
|
3876
|
-
}, [
|
|
3876
|
+
}, [S, r, w]) ?? o, M = B(($) => {
|
|
3877
3877
|
const j = String($);
|
|
3878
3878
|
if (d) {
|
|
3879
3879
|
d(j);
|
|
3880
3880
|
return;
|
|
3881
3881
|
}
|
|
3882
|
-
|
|
3883
|
-
}, [d,
|
|
3882
|
+
S && r && T(S, r, j), f && t && C(t, Z(f, { value: j }));
|
|
3883
|
+
}, [d, S, r, T, f, t, C]), E = /* @__PURE__ */ b(
|
|
3884
3884
|
pr,
|
|
3885
3885
|
{
|
|
3886
3886
|
...u,
|
|
3887
|
-
options:
|
|
3887
|
+
options: D,
|
|
3888
3888
|
value: k,
|
|
3889
3889
|
defaultValue: c,
|
|
3890
3890
|
block: l,
|
|
@@ -3899,7 +3899,7 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3899
3899
|
return A && Object.keys(A).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Segmented: A } }, children: E }) : E;
|
|
3900
3900
|
}, Ba = (e, t, n) => {
|
|
3901
3901
|
const [i, r] = gt(void 0), a = t === "100%", o = qt(0);
|
|
3902
|
-
return
|
|
3902
|
+
return Bn(() => {
|
|
3903
3903
|
if (!a || !e.current) {
|
|
3904
3904
|
r(void 0);
|
|
3905
3905
|
return;
|
|
@@ -3917,18 +3917,18 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3917
3917
|
v && (f += v.offsetHeight);
|
|
3918
3918
|
const u = c.querySelector(".ant-table-thead");
|
|
3919
3919
|
if (u && (f += u.offsetHeight), n) {
|
|
3920
|
-
const
|
|
3921
|
-
if (
|
|
3922
|
-
const x =
|
|
3923
|
-
f += x.offsetHeight +
|
|
3920
|
+
const S = c.querySelector(".ant-pagination");
|
|
3921
|
+
if (S) {
|
|
3922
|
+
const x = S, A = window.getComputedStyle(x), D = parseFloat(A.marginTop) || 0, N = parseFloat(A.marginBottom) || 0;
|
|
3923
|
+
f += x.offsetHeight + D + N;
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
3926
3926
|
const C = c.querySelector(".ant-table-wrapper");
|
|
3927
3927
|
if (C) {
|
|
3928
|
-
const
|
|
3928
|
+
const S = window.getComputedStyle(C), x = parseFloat(S.marginTop) || 0, A = parseFloat(S.marginBottom) || 0;
|
|
3929
3929
|
f += x + A;
|
|
3930
3930
|
}
|
|
3931
|
-
const
|
|
3931
|
+
const w = p - f - 2, T = Math.max(Math.floor(w), 50);
|
|
3932
3932
|
r(T);
|
|
3933
3933
|
});
|
|
3934
3934
|
};
|
|
@@ -3949,10 +3949,10 @@ const oc = Vt.memo(Qn), vn = 200, cc = ({
|
|
|
3949
3949
|
clearTimeout(h), o.current && cancelAnimationFrame(o.current), g.disconnect(), m.disconnect();
|
|
3950
3950
|
};
|
|
3951
3951
|
}, [a, n]), a ? i : t;
|
|
3952
|
-
},
|
|
3952
|
+
}, An = /* @__PURE__ */ new Map();
|
|
3953
3953
|
function Ka(e) {
|
|
3954
|
-
let t =
|
|
3955
|
-
return t || (t =
|
|
3954
|
+
let t = An.get(e);
|
|
3955
|
+
return t || (t = rn(e), An.set(e, t)), t;
|
|
3956
3956
|
}
|
|
3957
3957
|
const za = ({ dictCode: e, value: t }) => {
|
|
3958
3958
|
const [n, i] = gt(null);
|
|
@@ -4050,7 +4050,7 @@ const za = ({ dictCode: e, value: t }) => {
|
|
|
4050
4050
|
{ value: "middle", label: "默认" },
|
|
4051
4051
|
{ value: "large", label: "宽松" }
|
|
4052
4052
|
];
|
|
4053
|
-
function
|
|
4053
|
+
function xn(e, t, n, i) {
|
|
4054
4054
|
const r = {};
|
|
4055
4055
|
return t.forEach((a) => {
|
|
4056
4056
|
a.width !== void 0 && (r[a.key] = a.width);
|
|
@@ -4090,7 +4090,7 @@ function Pa(e, t, n, i, r) {
|
|
|
4090
4090
|
size: (e == null ? void 0 : e.size) ?? r ?? "middle"
|
|
4091
4091
|
};
|
|
4092
4092
|
}
|
|
4093
|
-
const Le = 420,
|
|
4093
|
+
const Le = 420, Cn = 440, Ja = ({
|
|
4094
4094
|
open: e,
|
|
4095
4095
|
position: t,
|
|
4096
4096
|
rowIndexVisible: n,
|
|
@@ -4104,9 +4104,9 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4104
4104
|
onSave: g,
|
|
4105
4105
|
onClose: m
|
|
4106
4106
|
}) => {
|
|
4107
|
-
const [p, f] = gt(n), [d, s] = gt(i), [v, u] = gt(o), [C,
|
|
4107
|
+
const [p, f] = gt(n), [d, s] = gt(i), [v, u] = gt(o), [C, w] = gt(l), [T, S] = gt(null);
|
|
4108
4108
|
$t(() => {
|
|
4109
|
-
e && (f(n), s([...i]), u(o),
|
|
4109
|
+
e && (f(n), s([...i]), u(o), w(l));
|
|
4110
4110
|
}, [e, n, i, o, l]);
|
|
4111
4111
|
const x = B(
|
|
4112
4112
|
(_) => {
|
|
@@ -4114,12 +4114,12 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4114
4114
|
},
|
|
4115
4115
|
[g]
|
|
4116
4116
|
), A = B(
|
|
4117
|
-
(_, R, P, q) =>
|
|
4117
|
+
(_, R, P, q) => xn(_, R, P ?? v, q ?? C),
|
|
4118
4118
|
[v, C]
|
|
4119
|
-
),
|
|
4119
|
+
), D = B(() => {
|
|
4120
4120
|
f(r);
|
|
4121
4121
|
const _ = a.map((R) => ({ ...R }));
|
|
4122
|
-
s(_), u(c),
|
|
4122
|
+
s(_), u(c), w(h), x(xn(r, _, c, h));
|
|
4123
4123
|
}, [r, a, c, h, x]), N = B(
|
|
4124
4124
|
(_) => {
|
|
4125
4125
|
s((R) => {
|
|
@@ -4173,19 +4173,19 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4173
4173
|
[p, d, C, A, x]
|
|
4174
4174
|
), H = B(
|
|
4175
4175
|
(_) => {
|
|
4176
|
-
|
|
4176
|
+
w(_), x(A(p, d, v, _));
|
|
4177
4177
|
},
|
|
4178
4178
|
[p, d, v, A, x]
|
|
4179
4179
|
), V = (_) => (R) => {
|
|
4180
|
-
|
|
4180
|
+
S(_), R.dataTransfer.effectAllowed = "move", R.dataTransfer.setData("text/plain", String(_));
|
|
4181
4181
|
}, L = (_) => (R) => {
|
|
4182
|
-
R.preventDefault(), R.dataTransfer.dropEffect = "move", !(T === null || T === _) && ($(T, _),
|
|
4183
|
-
}, K = () =>
|
|
4182
|
+
R.preventDefault(), R.dataTransfer.dropEffect = "move", !(T === null || T === _) && ($(T, _), S(_));
|
|
4183
|
+
}, K = () => S(null), X = t != null ? (() => {
|
|
4184
4184
|
let _ = t.y, R = t.x;
|
|
4185
|
-
return typeof window < "u" && (R + Le > window.innerWidth && (R = window.innerWidth - Le - 16), R < 16 && (R = 16), _ +
|
|
4185
|
+
return typeof window < "u" && (R + Le > window.innerWidth && (R = window.innerWidth - Le - 16), R < 16 && (R = 16), _ + Cn > window.innerHeight && (_ = Math.max(16, window.innerHeight - Cn - 16)), _ < 16 && (_ = 16)), { margin: 0, top: _, left: R };
|
|
4186
4186
|
})() : void 0;
|
|
4187
4187
|
return /* @__PURE__ */ b(
|
|
4188
|
-
|
|
4188
|
+
_n,
|
|
4189
4189
|
{
|
|
4190
4190
|
title: "列设置",
|
|
4191
4191
|
open: e,
|
|
@@ -4211,7 +4211,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4211
4211
|
/* @__PURE__ */ at(Yt, { align: "center", children: [
|
|
4212
4212
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4213
4213
|
/* @__PURE__ */ b(
|
|
4214
|
-
|
|
4214
|
+
On,
|
|
4215
4215
|
{
|
|
4216
4216
|
size: "small",
|
|
4217
4217
|
value: C,
|
|
@@ -4256,7 +4256,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4256
4256
|
}
|
|
4257
4257
|
),
|
|
4258
4258
|
/* @__PURE__ */ b(
|
|
4259
|
-
|
|
4259
|
+
kn,
|
|
4260
4260
|
{
|
|
4261
4261
|
size: "small",
|
|
4262
4262
|
min: ze,
|
|
@@ -4276,7 +4276,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4276
4276
|
className: "and-table-column-setting-fix-btn",
|
|
4277
4277
|
onClick: () => E(_.key, le),
|
|
4278
4278
|
title: `加 ${le}px`,
|
|
4279
|
-
children: /* @__PURE__ */ b(
|
|
4279
|
+
children: /* @__PURE__ */ b(Kn, {})
|
|
4280
4280
|
}
|
|
4281
4281
|
)
|
|
4282
4282
|
] }) }),
|
|
@@ -4287,7 +4287,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4287
4287
|
className: `and-table-column-setting-fix-btn ${_.fixed === "left" ? "active" : ""}`,
|
|
4288
4288
|
onClick: () => k(_.key, _.fixed === "left" ? !1 : "left"),
|
|
4289
4289
|
title: "固定到左侧",
|
|
4290
|
-
children: /* @__PURE__ */ b(
|
|
4290
|
+
children: /* @__PURE__ */ b(zn, {})
|
|
4291
4291
|
}
|
|
4292
4292
|
),
|
|
4293
4293
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-fix-divider", children: "|" }),
|
|
@@ -4297,7 +4297,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4297
4297
|
className: `and-table-column-setting-fix-btn ${_.fixed === "right" ? "active" : ""}`,
|
|
4298
4298
|
onClick: () => k(_.key, _.fixed === "right" ? !1 : "right"),
|
|
4299
4299
|
title: "固定到右侧",
|
|
4300
|
-
children: /* @__PURE__ */ b(
|
|
4300
|
+
children: /* @__PURE__ */ b(Ln, {})
|
|
4301
4301
|
}
|
|
4302
4302
|
)
|
|
4303
4303
|
] }) })
|
|
@@ -4307,7 +4307,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4307
4307
|
);
|
|
4308
4308
|
}) })
|
|
4309
4309
|
] }) }),
|
|
4310
|
-
/* @__PURE__ */ b("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ b(Zt, { onClick:
|
|
4310
|
+
/* @__PURE__ */ b("div", { className: "and-table-column-setting-footer", children: /* @__PURE__ */ b(Zt, { onClick: D, children: "重置" }) })
|
|
4311
4311
|
] })
|
|
4312
4312
|
}
|
|
4313
4313
|
);
|
|
@@ -4331,13 +4331,13 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4331
4331
|
emptyText: v,
|
|
4332
4332
|
bordered: u,
|
|
4333
4333
|
size: C,
|
|
4334
|
-
sticky:
|
|
4334
|
+
sticky: w,
|
|
4335
4335
|
scroll: T,
|
|
4336
|
-
autoFillHeight:
|
|
4336
|
+
autoFillHeight: S,
|
|
4337
4337
|
// 插槽配置
|
|
4338
4338
|
showTitle: x,
|
|
4339
4339
|
showSummary: A,
|
|
4340
|
-
showFooter:
|
|
4340
|
+
showFooter: D,
|
|
4341
4341
|
renderTitle: N,
|
|
4342
4342
|
renderSummary: k,
|
|
4343
4343
|
renderFooter: M,
|
|
@@ -4371,7 +4371,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4371
4371
|
return et.columnSettingOpen ? ((it = Y.dataSets[et.columnSettingOpen]) == null ? void 0 : it.value) === !0 : !1;
|
|
4372
4372
|
}
|
|
4373
4373
|
), ct = 420;
|
|
4374
|
-
|
|
4374
|
+
Bn(() => {
|
|
4375
4375
|
if (!pt || !R.current) return;
|
|
4376
4376
|
const Y = R.current.querySelector(".ant-table-thead") || R.current.querySelector(".ant-table-header");
|
|
4377
4377
|
if (!Y) return;
|
|
@@ -4480,11 +4480,11 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4480
4480
|
}));
|
|
4481
4481
|
}
|
|
4482
4482
|
};
|
|
4483
|
-
}, [h, g, X, et.selected, K, m, t, V]),
|
|
4483
|
+
}, [h, g, X, et.selected, K, m, t, V]), on = B((Y) => {
|
|
4484
4484
|
if (!g) return;
|
|
4485
4485
|
const Nt = [Y[p]];
|
|
4486
4486
|
_(Nt), et.selected && K(et.selected, "", Nt), m != null && m.trim() && t && V(t, Z(m.trim(), { record: Y, selectedRowKeys: Nt }));
|
|
4487
|
-
}, [g, m, t, p, et.selected, K, V]), In = B((Y) => g && X.includes(Y[p]) ? "ant-table-row-selected" : "", [g, p, X]), tr = B((Y) => g ? { onClick: () =>
|
|
4487
|
+
}, [g, m, t, p, et.selected, K, V]), In = B((Y) => g && X.includes(Y[p]) ? "ant-table-row-selected" : "", [g, p, X]), tr = B((Y) => g ? { onClick: () => on(Y), style: { cursor: "pointer" } } : {}, [g, on]), { style: er, className: nr, ...se } = H, Et = y(() => {
|
|
4488
4488
|
if (T) return T;
|
|
4489
4489
|
let Y = se["scroll-x"], it = se["scroll-y"];
|
|
4490
4490
|
if (String(Y) === "true" ? Y = !0 : String(Y) === "false" ? Y = void 0 : Y === "max-content" && (Y = "max-content"), (it === "" || it === null || it === void 0) && (it = void 0), Y !== void 0 || it !== void 0) return { x: Y, y: it };
|
|
@@ -4492,7 +4492,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4492
4492
|
if (!Et && !St) return;
|
|
4493
4493
|
const Y = St ? be ? !0 : "max-content" : Et == null ? void 0 : Et.x, it = (Et == null ? void 0 : Et.y) === "100%" ? Me : Et == null ? void 0 : Et.y;
|
|
4494
4494
|
return Y !== void 0 || it !== void 0 ? { x: Y, y: it } : Et ? Et.y === "100%" ? { x: Et.x, y: Me } : Et : void 0;
|
|
4495
|
-
}, [Et, Me, St, be]), { titleSlot: Se, summarySlot: we, footerSlot:
|
|
4495
|
+
}, [Et, Me, St, be]), { titleSlot: Se, summarySlot: we, footerSlot: cn, otherChildren: ir } = y(() => {
|
|
4496
4496
|
let Y = null, it = null, Nt = null;
|
|
4497
4497
|
const wt = [];
|
|
4498
4498
|
return Vt.Children.forEach(E, (At) => {
|
|
@@ -4514,7 +4514,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4514
4514
|
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: we }) });
|
|
4515
4515
|
if (A && n)
|
|
4516
4516
|
return () => /* @__PURE__ */ b("tr", { children: /* @__PURE__ */ b("td", { colSpan: _t.length, style: { padding: 0 }, children: /* @__PURE__ */ b("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
4517
|
-
}, [A, we, k, _t.length, n]),
|
|
4517
|
+
}, [A, we, k, _t.length, n]), sn = /* @__PURE__ */ b(
|
|
4518
4518
|
br,
|
|
4519
4519
|
{
|
|
4520
4520
|
...se,
|
|
@@ -4527,7 +4527,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4527
4527
|
locale: { emptyText: v },
|
|
4528
4528
|
bordered: u,
|
|
4529
4529
|
size: St ? F : C,
|
|
4530
|
-
sticky:
|
|
4530
|
+
sticky: w,
|
|
4531
4531
|
scroll: rr,
|
|
4532
4532
|
title: ar,
|
|
4533
4533
|
summary: or,
|
|
@@ -4536,7 +4536,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4536
4536
|
}
|
|
4537
4537
|
);
|
|
4538
4538
|
return /* @__PURE__ */ at(
|
|
4539
|
-
|
|
4539
|
+
$n,
|
|
4540
4540
|
{
|
|
4541
4541
|
ref: R,
|
|
4542
4542
|
vertical: !0,
|
|
@@ -4559,10 +4559,10 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4559
4559
|
${At ? `.ant-table-row-selected > td a:hover { color: ${At}; }` : ""}
|
|
4560
4560
|
` });
|
|
4561
4561
|
})(),
|
|
4562
|
-
bt ? /* @__PURE__ */ b(Mt, { theme: bt, children:
|
|
4562
|
+
bt ? /* @__PURE__ */ b(Mt, { theme: bt, children: sn }) : sn
|
|
4563
4563
|
] }),
|
|
4564
4564
|
we,
|
|
4565
|
-
|
|
4565
|
+
cn && /* @__PURE__ */ b("div", { "data-table-slot": "footer", children: cn }),
|
|
4566
4566
|
ir,
|
|
4567
4567
|
St && /* @__PURE__ */ b(
|
|
4568
4568
|
Ja,
|
|
@@ -4604,23 +4604,23 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4604
4604
|
clickAction: s,
|
|
4605
4605
|
...v
|
|
4606
4606
|
}) => {
|
|
4607
|
-
const u = O((_) => _.getDataSet), C = O((_) => _.getProps),
|
|
4607
|
+
const u = O((_) => _.getDataSet), C = O((_) => _.getProps), w = y(
|
|
4608
4608
|
() => h === "selectedCount" && o && !a ? o : a,
|
|
4609
4609
|
[h, o, a]
|
|
4610
4610
|
), T = y(
|
|
4611
4611
|
() => h === "selectedCount" ? "selectedCount" : o,
|
|
4612
4612
|
[h, o]
|
|
4613
|
-
),
|
|
4614
|
-
() => tt(t,
|
|
4615
|
-
[t,
|
|
4613
|
+
), S = y(
|
|
4614
|
+
() => tt(t, w),
|
|
4615
|
+
[t, w]
|
|
4616
4616
|
), x = O((_) => {
|
|
4617
|
-
if (!
|
|
4618
|
-
const R = ge(
|
|
4617
|
+
if (!S) return;
|
|
4618
|
+
const R = ge(S).baseName;
|
|
4619
4619
|
return _.dataSets[R];
|
|
4620
|
-
}), { options: A } = ve(h),
|
|
4621
|
-
if (
|
|
4622
|
-
return u(
|
|
4623
|
-
}, [
|
|
4620
|
+
}), { options: A } = ve(h), D = y(() => t && e ? C(t, e) : null, [t, e, C]), N = y(() => {
|
|
4621
|
+
if (S && T)
|
|
4622
|
+
return u(S, T);
|
|
4623
|
+
}, [S, T, u, x]), k = y(() => {
|
|
4624
4624
|
if (!m) return {};
|
|
4625
4625
|
if (typeof m == "string")
|
|
4626
4626
|
try {
|
|
@@ -4629,7 +4629,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4629
4629
|
return {};
|
|
4630
4630
|
}
|
|
4631
4631
|
return m;
|
|
4632
|
-
}, [m]), M = (_) => _ == null || _ === "" || typeof _ == "string" && _.trim() === "", E = y(() => n ? i : N != null && N !== "" ? M(N) && p ? i : N : (
|
|
4632
|
+
}, [m]), M = (_) => _ == null || _ === "" || typeof _ == "string" && _.trim() === "", E = y(() => n ? i : N != null && N !== "" ? M(N) && p ? i : N : (D == null ? void 0 : D.content) !== void 0 ? D.content : i, [n, N, D == null ? void 0 : D.content, i, p]), $ = y(() => {
|
|
4633
4633
|
if (h && A.length > 0 && E !== void 0 && E !== null) {
|
|
4634
4634
|
const _ = re(A, E);
|
|
4635
4635
|
return (_ == null ? void 0 : _.label) ?? E;
|
|
@@ -4638,14 +4638,14 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4638
4638
|
}, [h, A, E]), j = y(() => {
|
|
4639
4639
|
if (n)
|
|
4640
4640
|
return $;
|
|
4641
|
-
const _ = (
|
|
4641
|
+
const _ = (D == null ? void 0 : D.formatType) || g;
|
|
4642
4642
|
return _ && $ !== void 0 && $ !== null ? Sa($, _, k) : $;
|
|
4643
|
-
}, [n, $, g, k,
|
|
4643
|
+
}, [n, $, g, k, D == null ? void 0 : D.formatType]), z = y(() => {
|
|
4644
4644
|
const _ = { ...v };
|
|
4645
|
-
return
|
|
4646
|
-
!["content", "formatType", "formatValue", "clickAction"].includes(R) &&
|
|
4645
|
+
return D && typeof D == "object" && Object.keys(D).forEach((R) => {
|
|
4646
|
+
!["content", "formatType", "formatValue", "clickAction"].includes(R) && D[R] !== void 0 && D[R] !== null && (_[R] = D[R]);
|
|
4647
4647
|
}), _;
|
|
4648
|
-
}, [v,
|
|
4648
|
+
}, [v, D]), H = (D == null ? void 0 : D.color) ?? l, V = $e(H), L = y(() => {
|
|
4649
4649
|
if (!d) return;
|
|
4650
4650
|
let _ = d;
|
|
4651
4651
|
if (typeof d == "string")
|
|
@@ -4660,13 +4660,13 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4660
4660
|
q !== "" && q !== void 0 && q !== null && (R[P] = q);
|
|
4661
4661
|
}), Object.keys(R).length > 0 ? R : void 0;
|
|
4662
4662
|
}, [d]), K = y(() => {
|
|
4663
|
-
const _ = { width: "100%" }, R = (
|
|
4663
|
+
const _ = { width: "100%" }, R = (D == null ? void 0 : D.fontSize) ?? c;
|
|
4664
4664
|
if (R) {
|
|
4665
4665
|
const P = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
|
|
4666
4666
|
_.fontSize = P;
|
|
4667
4667
|
}
|
|
4668
4668
|
return V && (_.color = V), _;
|
|
4669
|
-
}, [c, V,
|
|
4669
|
+
}, [c, V, D == null ? void 0 : D.fontSize]), X = /* @__PURE__ */ b(Ga, { ...z, style: { ...K, ...f, ...z.style }, children: j != null && j !== "" ? String(j) : r });
|
|
4670
4670
|
return L ? /* @__PURE__ */ b(Mt, { theme: { token: L }, children: X }) : X;
|
|
4671
4671
|
}, { Title: Qa } = en, Ec = ({
|
|
4672
4672
|
id: e,
|
|
@@ -4681,22 +4681,22 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4681
4681
|
styles: h,
|
|
4682
4682
|
...g
|
|
4683
4683
|
}) => {
|
|
4684
|
-
const m = O((
|
|
4684
|
+
const m = O((S) => S.getDataSet), p = O((S) => S.getProps), f = y(
|
|
4685
4685
|
() => tt(t, a),
|
|
4686
4686
|
[t, a]
|
|
4687
4687
|
), d = y(() => t && e ? p(t, e) : null, [t, e, p]), s = y(() => {
|
|
4688
4688
|
if (f && o)
|
|
4689
4689
|
return m(f, o);
|
|
4690
|
-
}, [f, o, m]), v = y(() => n ? i : s != null && s !== "" ? String(s) : (d == null ? void 0 : d.content) !== void 0 ? d.content : i, [n, s, d == null ? void 0 : d.content, i]), u = (d == null ? void 0 : d.color) ?? l, C = $e(u),
|
|
4691
|
-
const
|
|
4692
|
-
return C && (
|
|
4690
|
+
}, [f, o, m]), v = y(() => n ? i : s != null && s !== "" ? String(s) : (d == null ? void 0 : d.content) !== void 0 ? d.content : i, [n, s, d == null ? void 0 : d.content, i]), u = (d == null ? void 0 : d.color) ?? l, C = $e(u), w = y(() => {
|
|
4691
|
+
const S = {};
|
|
4692
|
+
return C && (S.color = C), S;
|
|
4693
4693
|
}, [C]), T = y(() => {
|
|
4694
|
-
const
|
|
4694
|
+
const S = { ...g };
|
|
4695
4695
|
return d && typeof d == "object" && Object.keys(d).forEach((x) => {
|
|
4696
|
-
x !== "content" && d[x] !== void 0 && d[x] !== null && (
|
|
4697
|
-
}),
|
|
4696
|
+
x !== "content" && d[x] !== void 0 && d[x] !== null && (S[x] = d[x]);
|
|
4697
|
+
}), S;
|
|
4698
4698
|
}, [g, d]);
|
|
4699
|
-
return /* @__PURE__ */ b(Qa, { level: c, ...T, style: { ...
|
|
4699
|
+
return /* @__PURE__ */ b(Qa, { level: c, ...T, style: { ...w, ...h, ...T.style }, children: v || r });
|
|
4700
4700
|
}, { Paragraph: Xa } = en, _c = ({
|
|
4701
4701
|
id: e,
|
|
4702
4702
|
sessionId: t,
|
|
@@ -4718,13 +4718,13 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4718
4718
|
}, [p, o, g]), s = y(() => n ? i : d != null && d !== "" ? String(d) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, d, f == null ? void 0 : f.content, i]), v = (f == null ? void 0 : f.color) ?? c, u = $e(v), C = y(() => {
|
|
4719
4719
|
const T = {};
|
|
4720
4720
|
return u && (T.color = u), T;
|
|
4721
|
-
}, [u]),
|
|
4721
|
+
}, [u]), w = y(() => {
|
|
4722
4722
|
const T = { ...h };
|
|
4723
|
-
return f && typeof f == "object" && Object.keys(f).forEach((
|
|
4724
|
-
|
|
4723
|
+
return f && typeof f == "object" && Object.keys(f).forEach((S) => {
|
|
4724
|
+
S !== "content" && f[S] !== void 0 && f[S] !== null && (T[S] = f[S]);
|
|
4725
4725
|
}), T;
|
|
4726
4726
|
}, [h, f]);
|
|
4727
|
-
return /* @__PURE__ */ b(Xa, { ...
|
|
4727
|
+
return /* @__PURE__ */ b(Xa, { ...w, style: { ...C, ...l, ...w.style }, children: s || r });
|
|
4728
4728
|
}, Za = (e) => {
|
|
4729
4729
|
if (!e) return [];
|
|
4730
4730
|
if (typeof e == "string")
|
|
@@ -4753,7 +4753,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4753
4753
|
const d = O((N) => N.addCommand), s = O((N) => N.getDataSet), v = O((N) => N.setDataSet), u = y(
|
|
4754
4754
|
() => tt(t, i),
|
|
4755
4755
|
[t, i]
|
|
4756
|
-
), C = y(() => Za(a), [a]),
|
|
4756
|
+
), C = y(() => Za(a), [a]), w = y(() => o && o.length > 0 ? n ? o.map((N) => ({ ...N, forceRender: !0 })) : o : C.length > 0 ? C.map((N, k) => ({
|
|
4757
4757
|
key: N.key,
|
|
4758
4758
|
label: N.tab,
|
|
4759
4759
|
disabled: N.disabled,
|
|
@@ -4762,12 +4762,12 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4762
4762
|
children: m ? m(N.key, k) : null
|
|
4763
4763
|
})) : [], [o, C, m, n]), T = y(() => {
|
|
4764
4764
|
if (u && r) return s(u, r);
|
|
4765
|
-
}, [u, r, s]), [
|
|
4766
|
-
if (n &&
|
|
4767
|
-
return
|
|
4765
|
+
}, [u, r, s]), [S, x] = Vt.useState(void 0), A = y(() => {
|
|
4766
|
+
if (n && S)
|
|
4767
|
+
return S;
|
|
4768
4768
|
const N = T ?? h ?? g;
|
|
4769
|
-
return !N &&
|
|
4770
|
-
}, [n,
|
|
4769
|
+
return !N && w.length > 0 ? w[0].key : N;
|
|
4770
|
+
}, [n, S, T, h, g, w]), D = B((N) => {
|
|
4771
4771
|
if (n) {
|
|
4772
4772
|
x(N);
|
|
4773
4773
|
return;
|
|
@@ -4783,8 +4783,8 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4783
4783
|
{
|
|
4784
4784
|
...f,
|
|
4785
4785
|
activeKey: A,
|
|
4786
|
-
items:
|
|
4787
|
-
onChange:
|
|
4786
|
+
items: w,
|
|
4787
|
+
onChange: D,
|
|
4788
4788
|
animated: n ? !1 : f.animated,
|
|
4789
4789
|
children: p
|
|
4790
4790
|
}
|
|
@@ -4809,12 +4809,12 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4809
4809
|
onSelect: v,
|
|
4810
4810
|
onCheck: u,
|
|
4811
4811
|
onExpand: C,
|
|
4812
|
-
onDragEnd:
|
|
4812
|
+
onDragEnd: w,
|
|
4813
4813
|
onDragEnter: T,
|
|
4814
|
-
onDragLeave:
|
|
4814
|
+
onDragLeave: S,
|
|
4815
4815
|
onDragOver: x,
|
|
4816
4816
|
onDragStart: A,
|
|
4817
|
-
onDrop:
|
|
4817
|
+
onDrop: D,
|
|
4818
4818
|
onRightClick: N,
|
|
4819
4819
|
onLoad: k,
|
|
4820
4820
|
treeData: M,
|
|
@@ -4879,13 +4879,13 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4879
4879
|
[C, _, t, V, c, H]
|
|
4880
4880
|
), dt = B(
|
|
4881
4881
|
(Q) => {
|
|
4882
|
-
if (
|
|
4883
|
-
|
|
4882
|
+
if (w) {
|
|
4883
|
+
w(Q);
|
|
4884
4884
|
return;
|
|
4885
4885
|
}
|
|
4886
4886
|
l && t && H(t, Z(l, Q));
|
|
4887
4887
|
},
|
|
4888
|
-
[
|
|
4888
|
+
[w, l, t, H]
|
|
4889
4889
|
), J = B(
|
|
4890
4890
|
(Q) => {
|
|
4891
4891
|
if (T) {
|
|
@@ -4897,13 +4897,13 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4897
4897
|
[T, h, t, H]
|
|
4898
4898
|
), st = B(
|
|
4899
4899
|
(Q) => {
|
|
4900
|
-
if (
|
|
4901
|
-
|
|
4900
|
+
if (S) {
|
|
4901
|
+
S(Q);
|
|
4902
4902
|
return;
|
|
4903
4903
|
}
|
|
4904
4904
|
g && t && H(t, Z(g, Q));
|
|
4905
4905
|
},
|
|
4906
|
-
[
|
|
4906
|
+
[S, g, t, H]
|
|
4907
4907
|
), bt = B(
|
|
4908
4908
|
(Q) => {
|
|
4909
4909
|
if (x) {
|
|
@@ -4924,13 +4924,13 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
4924
4924
|
[A, p, t, H]
|
|
4925
4925
|
), U = B(
|
|
4926
4926
|
(Q) => {
|
|
4927
|
-
if (
|
|
4928
|
-
|
|
4927
|
+
if (D) {
|
|
4928
|
+
D(Q);
|
|
4929
4929
|
return;
|
|
4930
4930
|
}
|
|
4931
4931
|
f && t && H(t, Z(f, Q));
|
|
4932
4932
|
},
|
|
4933
|
-
[
|
|
4933
|
+
[D, f, t, H]
|
|
4934
4934
|
), G = B(
|
|
4935
4935
|
(Q) => {
|
|
4936
4936
|
if (N) {
|
|
@@ -5003,21 +5003,21 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
5003
5003
|
if (p && o) return g(p, o);
|
|
5004
5004
|
}, [p, o, g]), s = y(() => {
|
|
5005
5005
|
let C;
|
|
5006
|
-
const
|
|
5006
|
+
const w = d != null ? Array.isArray(d) ? d : typeof d == "string" ? (() => {
|
|
5007
5007
|
try {
|
|
5008
5008
|
return JSON.parse(d);
|
|
5009
5009
|
} catch {
|
|
5010
5010
|
return;
|
|
5011
5011
|
}
|
|
5012
5012
|
})() : void 0 : f == null ? void 0 : f.items;
|
|
5013
|
-
return n ? C =
|
|
5014
|
-
const
|
|
5015
|
-
return
|
|
5013
|
+
return n ? C = w ?? i : p ? C = w ?? [] : C = i, Array.isArray(C) ? C.map((T) => {
|
|
5014
|
+
const S = { ...T };
|
|
5015
|
+
return S.label && !S.title && (S.title = S.label, delete S.label), S.children && !S.content && (S.content = S.children, delete S.children), S;
|
|
5016
5016
|
}) : C;
|
|
5017
5017
|
}, [n, p, d, f == null ? void 0 : f.items, i]), v = y(() => {
|
|
5018
5018
|
const C = { ...h };
|
|
5019
|
-
return f && typeof f == "object" && Object.keys(f).forEach((
|
|
5020
|
-
|
|
5019
|
+
return f && typeof f == "object" && Object.keys(f).forEach((w) => {
|
|
5020
|
+
w !== "items" && f[w] !== void 0 && f[w] !== null && (C[w] = f[w]);
|
|
5021
5021
|
}), C;
|
|
5022
5022
|
}, [h, f]), u = y(() => l === "left" ? "start" : l === "right" ? "end" : l, [l]);
|
|
5023
5023
|
return /* @__PURE__ */ b(
|
|
@@ -5056,23 +5056,23 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
5056
5056
|
token: d,
|
|
5057
5057
|
...s
|
|
5058
5058
|
}) => {
|
|
5059
|
-
const v = O((j) => j.addCommand), u = O((j) => j.getDataSet), C = O((j) => j.setDataSet),
|
|
5059
|
+
const v = O((j) => j.addCommand), u = O((j) => j.getDataSet), C = O((j) => j.setDataSet), w = y(
|
|
5060
5060
|
() => tt(t, i),
|
|
5061
5061
|
[t, i]
|
|
5062
5062
|
), T = y(() => {
|
|
5063
|
-
if (
|
|
5064
|
-
}, [
|
|
5063
|
+
if (w && r) return u(w, r);
|
|
5064
|
+
}, [w, r, u]), S = y(() => T ?? c ?? 0, [T, c]), x = y(() => g ?? h, [g, h]), A = y(() => p ?? m, [p, m]), D = y(() => Ve(l, []), [l]), N = y(() => Ve(f, {}), [f]), k = y(() => Ve(d, {}), [d]), M = B((j) => {
|
|
5065
5065
|
if (o) {
|
|
5066
5066
|
o(j);
|
|
5067
5067
|
return;
|
|
5068
5068
|
}
|
|
5069
|
-
|
|
5070
|
-
}, [o,
|
|
5069
|
+
w && r && C(w, r, j), a && t && v(t, Z(a, j));
|
|
5070
|
+
}, [o, w, r, C, a, t, v]), E = Object.keys(k).length > 0, $ = /* @__PURE__ */ b(
|
|
5071
5071
|
Ar,
|
|
5072
5072
|
{
|
|
5073
5073
|
...s,
|
|
5074
|
-
current:
|
|
5075
|
-
items:
|
|
5074
|
+
current: S,
|
|
5075
|
+
items: D,
|
|
5076
5076
|
styles: N,
|
|
5077
5077
|
orientation: x,
|
|
5078
5078
|
titlePlacement: A,
|
|
@@ -5138,8 +5138,8 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
5138
5138
|
return;
|
|
5139
5139
|
}
|
|
5140
5140
|
s && r && d(s, r, T), l && t && f(t, Z(l, T));
|
|
5141
|
-
}, [h, s, r, d, l, t, f]),
|
|
5142
|
-
const x = g ? g(T.key,
|
|
5141
|
+
}, [h, s, r, d, l, t, f]), w = y(() => m || (u.length > 0 ? u.map((T, S) => {
|
|
5142
|
+
const x = g ? g(T.key, S) : null;
|
|
5143
5143
|
return /* @__PURE__ */ b("div", { "data-slide-key": T.key, children: x || /* @__PURE__ */ b("div", { style: {
|
|
5144
5144
|
minHeight: "100px",
|
|
5145
5145
|
display: "flex",
|
|
@@ -5155,7 +5155,7 @@ const Le = 420, xn = 440, Ja = ({
|
|
|
5155
5155
|
...p,
|
|
5156
5156
|
dotPlacement: v,
|
|
5157
5157
|
afterChange: C,
|
|
5158
|
-
children:
|
|
5158
|
+
children: w
|
|
5159
5159
|
}
|
|
5160
5160
|
);
|
|
5161
5161
|
};
|
|
@@ -5276,10 +5276,10 @@ const Vc = ({
|
|
|
5276
5276
|
return d && typeof d == "object" && Object.keys(d).forEach((A) => {
|
|
5277
5277
|
!["src", "icon", "token"].includes(A) && d[A] !== void 0 && d[A] !== null && (x[A] = d[A]);
|
|
5278
5278
|
}), x;
|
|
5279
|
-
}, [g, d]),
|
|
5279
|
+
}, [g, d]), w = y(() => {
|
|
5280
5280
|
const x = d == null ? void 0 : d.token, A = { ...h, ...x };
|
|
5281
5281
|
if (!A || Object.keys(A).length === 0) return;
|
|
5282
|
-
const
|
|
5282
|
+
const D = {};
|
|
5283
5283
|
return Object.entries(A).forEach(([N, k]) => {
|
|
5284
5284
|
if (k !== "" && k !== void 0 && k !== null)
|
|
5285
5285
|
if ([
|
|
@@ -5292,14 +5292,14 @@ const Vc = ({
|
|
|
5292
5292
|
"groupOverlapping"
|
|
5293
5293
|
].includes(N)) {
|
|
5294
5294
|
const M = typeof k == "string" ? parseInt(k, 10) : k;
|
|
5295
|
-
isNaN(M) || (
|
|
5295
|
+
isNaN(M) || (D[N] = M);
|
|
5296
5296
|
} else
|
|
5297
|
-
|
|
5298
|
-
}), Object.keys(
|
|
5297
|
+
D[N] = k;
|
|
5298
|
+
}), Object.keys(D).length > 0 ? D : void 0;
|
|
5299
5299
|
}, [h, d == null ? void 0 : d.token]), T = y(() => {
|
|
5300
|
-
if (
|
|
5301
|
-
return { components: { Avatar:
|
|
5302
|
-
}, [
|
|
5300
|
+
if (w)
|
|
5301
|
+
return { components: { Avatar: w } };
|
|
5302
|
+
}, [w]), S = /* @__PURE__ */ b(
|
|
5303
5303
|
Cr,
|
|
5304
5304
|
{
|
|
5305
5305
|
...C,
|
|
@@ -5308,7 +5308,7 @@ const Vc = ({
|
|
|
5308
5308
|
children: i
|
|
5309
5309
|
}
|
|
5310
5310
|
);
|
|
5311
|
-
return T ? /* @__PURE__ */ b(Mt, { theme: T, children:
|
|
5311
|
+
return T ? /* @__PURE__ */ b(Mt, { theme: T, children: S }) : S;
|
|
5312
5312
|
}, io = {
|
|
5313
5313
|
0: "default",
|
|
5314
5314
|
1: "success",
|
|
@@ -5348,25 +5348,25 @@ const Vc = ({
|
|
|
5348
5348
|
}
|
|
5349
5349
|
return h;
|
|
5350
5350
|
}
|
|
5351
|
-
}, [h]),
|
|
5351
|
+
}, [h]), w = y(() => t && e ? s(t, e) : null, [t, e, s]), T = y(() => {
|
|
5352
5352
|
if (v && o) return d(v, o);
|
|
5353
|
-
}, [v, o, d]),
|
|
5354
|
-
if (c && u.length > 0 &&
|
|
5355
|
-
const E = re(u,
|
|
5356
|
-
return (E == null ? void 0 : E.label) ??
|
|
5357
|
-
}
|
|
5358
|
-
return
|
|
5359
|
-
}, [c, u,
|
|
5360
|
-
if (!l ||
|
|
5361
|
-
const E = String(
|
|
5353
|
+
}, [v, o, d]), S = y(() => n ? r : T != null && T !== "" ? String(T) : (w == null ? void 0 : w.content) !== void 0 ? w.content : r, [n, T, w == null ? void 0 : w.content, r]), x = y(() => {
|
|
5354
|
+
if (c && u.length > 0 && S !== void 0 && S !== null) {
|
|
5355
|
+
const E = re(u, S);
|
|
5356
|
+
return (E == null ? void 0 : E.label) ?? S;
|
|
5357
|
+
}
|
|
5358
|
+
return S;
|
|
5359
|
+
}, [c, u, S]), A = y(() => {
|
|
5360
|
+
if (!l || S === void 0 || S === null) return;
|
|
5361
|
+
const E = String(S).toLowerCase();
|
|
5362
5362
|
return C && C[E] ? C[E] : io[E];
|
|
5363
|
-
}, [l,
|
|
5363
|
+
}, [l, S, C]), D = y(() => {
|
|
5364
5364
|
const E = { ...f };
|
|
5365
|
-
return
|
|
5366
|
-
!["content", "color"].includes($) &&
|
|
5365
|
+
return w && typeof w == "object" && Object.keys(w).forEach(($) => {
|
|
5366
|
+
!["content", "color"].includes($) && w[$] !== void 0 && w[$] !== null && (E[$] = w[$]);
|
|
5367
5367
|
}), E;
|
|
5368
|
-
}, [f,
|
|
5369
|
-
return /* @__PURE__ */ b(
|
|
5368
|
+
}, [f, w]), N = (w == null ? void 0 : w.color) ?? g, M = $e(N) || A;
|
|
5369
|
+
return /* @__PURE__ */ b(Mn, { ...D, color: M, children: x || i });
|
|
5370
5370
|
}, Hc = ({
|
|
5371
5371
|
id: e,
|
|
5372
5372
|
sessionId: t,
|
|
@@ -5382,38 +5382,38 @@ const Vc = ({
|
|
|
5382
5382
|
total: m,
|
|
5383
5383
|
...p
|
|
5384
5384
|
}) => {
|
|
5385
|
-
const f = O((
|
|
5385
|
+
const f = O((D) => D.addCommand), d = O((D) => D.setDataSet), s = y(
|
|
5386
5386
|
() => tt(t, i),
|
|
5387
5387
|
[t, i]
|
|
5388
|
-
), v = r ?? (s ? "" : void 0), u = y(() => ({}), []), C = O((
|
|
5388
|
+
), v = r ?? (s ? "" : void 0), u = y(() => ({}), []), C = O((D) => {
|
|
5389
5389
|
if (!s) return u;
|
|
5390
|
-
const N =
|
|
5390
|
+
const N = D.getDataSet(s, v ?? "");
|
|
5391
5391
|
return N != null && typeof N == "object" ? N : u;
|
|
5392
|
-
}),
|
|
5392
|
+
}), w = C.current ?? h ?? 1, T = C.pageSize ?? g ?? 10, S = C.total ?? m ?? 0, x = B((D, N) => {
|
|
5393
5393
|
if (c) {
|
|
5394
|
-
c(
|
|
5394
|
+
c(D, N);
|
|
5395
5395
|
return;
|
|
5396
5396
|
}
|
|
5397
|
-
s && d(s, v ?? "", { current:
|
|
5398
|
-
}, [c, s, v, d,
|
|
5397
|
+
s && d(s, v ?? "", { current: D, pageSize: N, total: S }), a && t && f(t, Z(a, { page: D, pageSize: N }));
|
|
5398
|
+
}, [c, s, v, d, S, a, t, f]), A = B((D, N) => {
|
|
5399
5399
|
if (l) {
|
|
5400
|
-
l(
|
|
5400
|
+
l(D, N);
|
|
5401
5401
|
return;
|
|
5402
5402
|
}
|
|
5403
|
-
s && d(s, v ?? "", { current:
|
|
5404
|
-
}, [l, s, v, d,
|
|
5403
|
+
s && d(s, v ?? "", { current: D, pageSize: N, total: S }), o && t && f(t, Z(o, { current: D, pageSize: N }));
|
|
5404
|
+
}, [l, s, v, d, S, o, t, f]);
|
|
5405
5405
|
return /* @__PURE__ */ b(
|
|
5406
|
-
|
|
5406
|
+
Rn,
|
|
5407
5407
|
{
|
|
5408
5408
|
...p,
|
|
5409
|
-
current:
|
|
5409
|
+
current: w,
|
|
5410
5410
|
pageSize: T,
|
|
5411
|
-
total:
|
|
5411
|
+
total: S,
|
|
5412
5412
|
onChange: x,
|
|
5413
5413
|
onShowSizeChange: A,
|
|
5414
5414
|
showTotal: y(() => {
|
|
5415
|
-
const
|
|
5416
|
-
return typeof
|
|
5415
|
+
const D = p.showTotal;
|
|
5416
|
+
return typeof D == "string" ? (N, k) => D.replace("${total}", String(N)).replace("${range[0]}", String(k[0])).replace("${range[1]}", String(k[1])).replace("${range}", `${k[0]}-${k[1]}`) : D;
|
|
5417
5417
|
}, [p.showTotal])
|
|
5418
5418
|
}
|
|
5419
5419
|
);
|
|
@@ -5429,23 +5429,23 @@ const Vc = ({
|
|
|
5429
5429
|
$t(() => {
|
|
5430
5430
|
const x = () => {
|
|
5431
5431
|
if (!a.current || !o.current) return;
|
|
5432
|
-
const
|
|
5432
|
+
const D = a.current, N = o.current;
|
|
5433
5433
|
let k = 0, M = 0, E = !1;
|
|
5434
|
-
s ? (k =
|
|
5434
|
+
s ? (k = D.clientWidth, M = N.scrollWidth, E = M > k) : (k = D.clientHeight, M = N.scrollHeight, E = M > k), d(k), p(M), g(E), E || l(0);
|
|
5435
5435
|
}, A = new ResizeObserver(x);
|
|
5436
5436
|
return a.current && A.observe(a.current), o.current && A.observe(o.current), x(), () => A.disconnect();
|
|
5437
5437
|
}, [s]);
|
|
5438
5438
|
const v = c <= 0, u = !h || c >= m - f, C = B(() => {
|
|
5439
|
-
var A,
|
|
5439
|
+
var A, D;
|
|
5440
5440
|
if (v) return;
|
|
5441
|
-
const x = s ? ((A = a.current) == null ? void 0 : A.clientWidth) ?? 200 : ((
|
|
5441
|
+
const x = s ? ((A = a.current) == null ? void 0 : A.clientWidth) ?? 200 : ((D = a.current) == null ? void 0 : D.clientHeight) ?? 200;
|
|
5442
5442
|
l((N) => Math.max(0, N - x));
|
|
5443
|
-
}, [s, v]),
|
|
5444
|
-
var
|
|
5443
|
+
}, [s, v]), w = B(() => {
|
|
5444
|
+
var D, N, k, M, E, $;
|
|
5445
5445
|
if (u) return;
|
|
5446
|
-
const x = s ? ((
|
|
5446
|
+
const x = s ? ((D = a.current) == null ? void 0 : D.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, A = s ? (((k = o.current) == null ? void 0 : k.scrollWidth) ?? 0) - (((M = a.current) == null ? void 0 : M.clientWidth) ?? 0) : (((E = o.current) == null ? void 0 : E.scrollHeight) ?? 0) - ((($ = a.current) == null ? void 0 : $.clientHeight) ?? 0);
|
|
5447
5447
|
l((j) => Math.min(A, j + x));
|
|
5448
|
-
}, [s, u]), T = n || (s ? /* @__PURE__ */ b(
|
|
5448
|
+
}, [s, u]), T = n || (s ? /* @__PURE__ */ b(zn, {}) : /* @__PURE__ */ b(Ir, {})), S = i || (s ? /* @__PURE__ */ b(Ln, {}) : /* @__PURE__ */ b(Vn, {}));
|
|
5449
5449
|
return /* @__PURE__ */ at(
|
|
5450
5450
|
"div",
|
|
5451
5451
|
{
|
|
@@ -5508,9 +5508,9 @@ const Vc = ({
|
|
|
5508
5508
|
type: "text",
|
|
5509
5509
|
size: "middle",
|
|
5510
5510
|
shape: "circle",
|
|
5511
|
-
icon:
|
|
5511
|
+
icon: S,
|
|
5512
5512
|
disabled: u,
|
|
5513
|
-
onClick:
|
|
5513
|
+
onClick: w,
|
|
5514
5514
|
style: {
|
|
5515
5515
|
flexShrink: 0,
|
|
5516
5516
|
alignSelf: "center",
|
|
@@ -5556,12 +5556,12 @@ const Vc = ({
|
|
|
5556
5556
|
defaultOpenKeys: v,
|
|
5557
5557
|
styles: u,
|
|
5558
5558
|
classNames: C,
|
|
5559
|
-
token:
|
|
5559
|
+
token: w,
|
|
5560
5560
|
expandIcon: T,
|
|
5561
|
-
overflowedIndicator:
|
|
5561
|
+
overflowedIndicator: S,
|
|
5562
5562
|
openKeysDataSet: x,
|
|
5563
5563
|
openKeysDataSetField: A,
|
|
5564
|
-
mode:
|
|
5564
|
+
mode: D,
|
|
5565
5565
|
inlineCollapsed: N,
|
|
5566
5566
|
remoteUrl: k,
|
|
5567
5567
|
overflowStrategy: M = "default",
|
|
@@ -5699,13 +5699,13 @@ const Vc = ({
|
|
|
5699
5699
|
);
|
|
5700
5700
|
},
|
|
5701
5701
|
[p, l, t, V]
|
|
5702
|
-
), bt =
|
|
5703
|
-
if (!
|
|
5702
|
+
), bt = D === "inline" && N !== void 0 ? { inlineCollapsed: N } : {}, Ct = y(() => {
|
|
5703
|
+
if (!w) return;
|
|
5704
5704
|
const F = {};
|
|
5705
|
-
return Object.entries(
|
|
5705
|
+
return Object.entries(w).forEach(([St, _t]) => {
|
|
5706
5706
|
_t !== "" && _t !== void 0 && _t !== null && (F[St] = _t);
|
|
5707
5707
|
}), Object.keys(F).length > 0 ? F : void 0;
|
|
5708
|
-
}, [
|
|
5708
|
+
}, [w]), U = n ? {
|
|
5709
5709
|
motion: { motionName: "" }
|
|
5710
5710
|
} : {}, G = y(() => {
|
|
5711
5711
|
if (typeof $ == "string" && $) {
|
|
@@ -5719,7 +5719,7 @@ const Vc = ({
|
|
|
5719
5719
|
if (F) return /* @__PURE__ */ b(F, {});
|
|
5720
5720
|
}
|
|
5721
5721
|
return j;
|
|
5722
|
-
}, [j]), I = y(() => M === "pagination" || M === "scroll" ? null :
|
|
5722
|
+
}, [j]), I = y(() => M === "pagination" || M === "scroll" ? null : S, [M, S]), mt = Jr(), ht = e || mt.replace(/:/g, "-"), Tt = y(() => {
|
|
5723
5723
|
var Rt;
|
|
5724
5724
|
if (!u || typeof u == "function") return "";
|
|
5725
5725
|
const F = (Rt = u.subMenu) == null ? void 0 : Rt.root;
|
|
@@ -5749,7 +5749,7 @@ const Vc = ({
|
|
|
5749
5749
|
...H,
|
|
5750
5750
|
...bt,
|
|
5751
5751
|
...U,
|
|
5752
|
-
mode:
|
|
5752
|
+
mode: D,
|
|
5753
5753
|
items: pt,
|
|
5754
5754
|
selectedKeys: ct,
|
|
5755
5755
|
openKeys: ot,
|
|
@@ -5767,13 +5767,13 @@ const Vc = ({
|
|
|
5767
5767
|
), yt = () => M === "pagination" ? /* @__PURE__ */ b(
|
|
5768
5768
|
ao,
|
|
5769
5769
|
{
|
|
5770
|
-
mode:
|
|
5770
|
+
mode: D || "horizontal",
|
|
5771
5771
|
arrowStyle: E,
|
|
5772
5772
|
arrowIconPrev: G,
|
|
5773
5773
|
arrowIconNext: ft,
|
|
5774
5774
|
children: Q
|
|
5775
5775
|
}
|
|
5776
|
-
) : M === "scroll" ? /* @__PURE__ */ b(oo, { mode:
|
|
5776
|
+
) : M === "scroll" ? /* @__PURE__ */ b(oo, { mode: D || "horizontal", children: Q }) : Q, Dt = y(() => {
|
|
5777
5777
|
const F = {};
|
|
5778
5778
|
return n && (F.motion = !1), Ct && (F.components = { Menu: Ct }), Object.keys(F).length > 0 ? F : void 0;
|
|
5779
5779
|
}, [n, Ct]);
|
|
@@ -5808,17 +5808,17 @@ const Vc = ({
|
|
|
5808
5808
|
children: s,
|
|
5809
5809
|
...v
|
|
5810
5810
|
}) => {
|
|
5811
|
-
const u = O((
|
|
5811
|
+
const u = O((D) => D.getDataSet), C = y(
|
|
5812
5812
|
() => tt(t, i),
|
|
5813
5813
|
[t, i]
|
|
5814
|
-
),
|
|
5814
|
+
), w = y(() => {
|
|
5815
5815
|
if (C && r) return u(C, r);
|
|
5816
|
-
}, [C, r, u]), T = y(() =>
|
|
5816
|
+
}, [C, r, u]), T = y(() => w ?? a, [w, a]), x = (Xt.useToken ? Xt.useToken() : { token: void 0 }).token, A = y(() => {
|
|
5817
5817
|
if (!(!f || typeof f != "string"))
|
|
5818
5818
|
return x && f in x ? x[f] : f;
|
|
5819
5819
|
}, [f, x]);
|
|
5820
5820
|
return /* @__PURE__ */ b(
|
|
5821
|
-
|
|
5821
|
+
jn,
|
|
5822
5822
|
{
|
|
5823
5823
|
...v,
|
|
5824
5824
|
count: T,
|
|
@@ -5869,7 +5869,7 @@ const Vc = ({
|
|
|
5869
5869
|
return s && c in s ? s[c] : c;
|
|
5870
5870
|
}, [c, s]);
|
|
5871
5871
|
return /* @__PURE__ */ b(
|
|
5872
|
-
|
|
5872
|
+
jn.Ribbon,
|
|
5873
5873
|
{
|
|
5874
5874
|
...h,
|
|
5875
5875
|
text: f,
|
|
@@ -5946,39 +5946,36 @@ const Vc = ({
|
|
|
5946
5946
|
itemRender: m,
|
|
5947
5947
|
...p
|
|
5948
5948
|
}) => {
|
|
5949
|
-
const f = O((
|
|
5950
|
-
() => tt(
|
|
5951
|
-
[
|
|
5952
|
-
),
|
|
5953
|
-
var N;
|
|
5954
|
-
return d && r ? (N = S.dataSets[d]) == null ? void 0 : N[r] : null;
|
|
5955
|
-
}), v = y(() => s && Array.isArray(s) ? s : co(a), [s, a]), u = y(() => so(o), [o]), C = y(() => lo(c), [c]), D = y(() => {
|
|
5949
|
+
const f = nn(i, r, t), d = f.dataSet, s = f.dataSetField, v = f.sessionId, u = O((E) => E.addCommand), C = y(
|
|
5950
|
+
() => tt(v, d),
|
|
5951
|
+
[v, d]
|
|
5952
|
+
), w = O((E) => C && s ? E.getDataSet(C, s) : null), T = y(() => w && Array.isArray(w) ? w : co(a), [w, a]), S = y(() => so(o), [o]), x = y(() => lo(c), [c]), A = y(() => {
|
|
5956
5953
|
if (g) return g;
|
|
5957
|
-
if (h &&
|
|
5958
|
-
return (
|
|
5959
|
-
|
|
5954
|
+
if (h && v)
|
|
5955
|
+
return (E) => {
|
|
5956
|
+
u(v, {
|
|
5960
5957
|
actionName: h,
|
|
5961
|
-
arg:
|
|
5958
|
+
arg: E,
|
|
5962
5959
|
timestamp: Date.now()
|
|
5963
5960
|
});
|
|
5964
5961
|
};
|
|
5965
|
-
}, [g, h,
|
|
5962
|
+
}, [g, h, v, u]), D = y(() => T.length > 0 ? T : n ? [
|
|
5966
5963
|
{ key: "1", height: 150, data: { title: "示例项 1" } },
|
|
5967
5964
|
{ key: "2", height: 200, data: { title: "示例项 2" } },
|
|
5968
5965
|
{ key: "3", height: 120, data: { title: "示例项 3" } },
|
|
5969
5966
|
{ key: "4", height: 180, data: { title: "示例项 4" } },
|
|
5970
5967
|
{ key: "5", height: 140, data: { title: "示例项 5" } },
|
|
5971
5968
|
{ key: "6", height: 160, data: { title: "示例项 6" } }
|
|
5972
|
-
] : [], [
|
|
5969
|
+
] : [], [T, n]), N = y(() => {
|
|
5973
5970
|
if (m) return m;
|
|
5974
5971
|
if (n)
|
|
5975
|
-
return (
|
|
5976
|
-
var
|
|
5972
|
+
return (E) => {
|
|
5973
|
+
var $;
|
|
5977
5974
|
return /* @__PURE__ */ b(
|
|
5978
5975
|
"div",
|
|
5979
5976
|
{
|
|
5980
5977
|
style: {
|
|
5981
|
-
height:
|
|
5978
|
+
height: E.height || 100,
|
|
5982
5979
|
background: "#f0f5ff",
|
|
5983
5980
|
border: "1px dashed #91caff",
|
|
5984
5981
|
borderRadius: 8,
|
|
@@ -5988,24 +5985,24 @@ const Vc = ({
|
|
|
5988
5985
|
color: "#1677ff",
|
|
5989
5986
|
fontSize: 14
|
|
5990
5987
|
},
|
|
5991
|
-
children: ((
|
|
5988
|
+
children: (($ = E.data) == null ? void 0 : $.title) || `Item ${E.key}`
|
|
5992
5989
|
}
|
|
5993
5990
|
);
|
|
5994
5991
|
};
|
|
5995
5992
|
}, [m, n]), {
|
|
5996
|
-
layoutChangeAction:
|
|
5997
|
-
...
|
|
5993
|
+
layoutChangeAction: k,
|
|
5994
|
+
...M
|
|
5998
5995
|
} = p;
|
|
5999
5996
|
return /* @__PURE__ */ b(
|
|
6000
5997
|
Or,
|
|
6001
5998
|
{
|
|
6002
|
-
...
|
|
6003
|
-
items:
|
|
6004
|
-
columns:
|
|
6005
|
-
gutter:
|
|
5999
|
+
...M,
|
|
6000
|
+
items: D,
|
|
6001
|
+
columns: S,
|
|
6002
|
+
gutter: x,
|
|
6006
6003
|
fresh: l,
|
|
6007
|
-
itemRender:
|
|
6008
|
-
onLayoutChange:
|
|
6004
|
+
itemRender: N,
|
|
6005
|
+
onLayoutChange: A
|
|
6009
6006
|
}
|
|
6010
6007
|
);
|
|
6011
6008
|
}, Xc = ({
|
|
@@ -6022,25 +6019,25 @@ const Vc = ({
|
|
|
6022
6019
|
closable: g,
|
|
6023
6020
|
...m
|
|
6024
6021
|
}) => {
|
|
6025
|
-
const p = O((
|
|
6022
|
+
const p = O((S) => S.getDataSet), f = O((S) => S.getProps), d = y(
|
|
6026
6023
|
() => tt(t, a),
|
|
6027
6024
|
[t, a]
|
|
6028
6025
|
), s = y(() => t && e ? f(t, e) : null, [t, e, f]), v = y(() => {
|
|
6029
6026
|
if (d && o) return p(d, o);
|
|
6030
6027
|
}, [d, o, p]), u = y(() => n ? c : v != null && v !== "" ? String(v) : (s == null ? void 0 : s.title) !== void 0 ? s.title : (s == null ? void 0 : s.message) !== void 0 ? s.message : c, [n, v, s == null ? void 0 : s.title, s == null ? void 0 : s.message, c]), C = y(() => {
|
|
6031
|
-
const
|
|
6028
|
+
const S = { ...m, description: l };
|
|
6032
6029
|
return s && typeof s == "object" && Object.keys(s).forEach((x) => {
|
|
6033
|
-
x !== "title" && x !== "message" && s[x] !== void 0 && s[x] !== null && (
|
|
6034
|
-
}),
|
|
6035
|
-
}, [m, l, s]),
|
|
6036
|
-
r && r(
|
|
6030
|
+
x !== "title" && x !== "message" && s[x] !== void 0 && s[x] !== null && (S[x] = s[x]);
|
|
6031
|
+
}), S;
|
|
6032
|
+
}, [m, l, s]), w = y(() => h ? { closeIcon: /* @__PURE__ */ b("span", { children: h }) } : g, [h, g]), T = B((S) => {
|
|
6033
|
+
r && r(S);
|
|
6037
6034
|
}, [r]);
|
|
6038
6035
|
return /* @__PURE__ */ b(
|
|
6039
6036
|
Er,
|
|
6040
6037
|
{
|
|
6041
6038
|
...C,
|
|
6042
6039
|
title: u,
|
|
6043
|
-
closable:
|
|
6040
|
+
closable: w,
|
|
6044
6041
|
onClose: T
|
|
6045
6042
|
}
|
|
6046
6043
|
);
|
|
@@ -6070,7 +6067,7 @@ const Vc = ({
|
|
|
6070
6067
|
arg: null,
|
|
6071
6068
|
timestamp: Date.now()
|
|
6072
6069
|
});
|
|
6073
|
-
}, [c, s, r, d, a, t, p]),
|
|
6070
|
+
}, [c, s, r, d, a, t, p]), w = B(() => {
|
|
6074
6071
|
l && l(), s && r && d(s, r, !1), o && t && p(t, {
|
|
6075
6072
|
actionName: o,
|
|
6076
6073
|
arg: null,
|
|
@@ -6078,12 +6075,12 @@ const Vc = ({
|
|
|
6078
6075
|
});
|
|
6079
6076
|
}, [l, s, r, d, o, t, p]);
|
|
6080
6077
|
return /* @__PURE__ */ b(
|
|
6081
|
-
|
|
6078
|
+
_n,
|
|
6082
6079
|
{
|
|
6083
6080
|
...m,
|
|
6084
6081
|
open: u,
|
|
6085
6082
|
onOk: C,
|
|
6086
|
-
onCancel:
|
|
6083
|
+
onCancel: w,
|
|
6087
6084
|
children: g
|
|
6088
6085
|
}
|
|
6089
6086
|
);
|
|
@@ -6169,14 +6166,14 @@ const Vc = ({
|
|
|
6169
6166
|
// 这些属性主要由 GrapesJS 使用或在内部逻辑处理,不需要传递给 Antd Card
|
|
6170
6167
|
showHeader: u,
|
|
6171
6168
|
showCover: C,
|
|
6172
|
-
showActions:
|
|
6169
|
+
showActions: w,
|
|
6173
6170
|
// AntD v6 将 size="default" 重命名为 "medium",显式接收以便做兼容映射
|
|
6174
6171
|
size: T,
|
|
6175
6172
|
// 其他
|
|
6176
|
-
children:
|
|
6173
|
+
children: S,
|
|
6177
6174
|
...x
|
|
6178
6175
|
}) => {
|
|
6179
|
-
const A = O((W) => W.addCommand),
|
|
6176
|
+
const A = O((W) => W.addCommand), D = O((W) => W.getDataSet), N = O((W) => W.setDataSet), k = y(
|
|
6180
6177
|
() => tt(t, i),
|
|
6181
6178
|
[t, i]
|
|
6182
6179
|
), M = T === "default" ? "medium" : T, E = y(() => {
|
|
@@ -6192,10 +6189,10 @@ const Vc = ({
|
|
|
6192
6189
|
return W.length > 0 ? W : void 0;
|
|
6193
6190
|
}, [g]), z = y(() => {
|
|
6194
6191
|
if (k && r) {
|
|
6195
|
-
const W =
|
|
6192
|
+
const W = D(k, `${r}.activeTabKey`);
|
|
6196
6193
|
if (typeof W == "string") return W;
|
|
6197
6194
|
}
|
|
6198
|
-
}, [k, r,
|
|
6195
|
+
}, [k, r, D]) ?? m, H = B((W) => {
|
|
6199
6196
|
if (d) {
|
|
6200
6197
|
d(W);
|
|
6201
6198
|
return;
|
|
@@ -6205,7 +6202,7 @@ const Vc = ({
|
|
|
6205
6202
|
let W = null, rt = null, ut = null, et = [];
|
|
6206
6203
|
const pt = [];
|
|
6207
6204
|
let ct = !1;
|
|
6208
|
-
return a && (W = a), o && (rt = o), c && (ut = c), h && (et = h), Vt.Children.forEach(
|
|
6205
|
+
return a && (W = a), o && (rt = o), c && (ut = c), h && (et = h), Vt.Children.forEach(S, (ot) => {
|
|
6209
6206
|
if (!Vt.isValidElement(ot)) {
|
|
6210
6207
|
pt.push(ot);
|
|
6211
6208
|
return;
|
|
@@ -6213,7 +6210,7 @@ const Vc = ({
|
|
|
6213
6210
|
const nt = ot.props, dt = nt["data-slot-type"];
|
|
6214
6211
|
dt === "title" && !a ? W = ot : dt === "extra" && !o ? rt = ot : dt === "cover" && !c ? ut = ot : dt === "actions" && !h ? (et = [ot], ct = !0) : dt === "body" && nt.children ? pt.push(nt.children) : pt.push(ot);
|
|
6215
6212
|
}), { titleSlot: W, extraSlot: rt, coverSlot: ut, actionsSlot: et, otherChildren: pt, actionsFromChildren: ct };
|
|
6216
|
-
}, [
|
|
6213
|
+
}, [S, a, o, c, h]), P = y(() => {
|
|
6217
6214
|
const W = tn(v, {});
|
|
6218
6215
|
return R ? { actionsLiMargin: "0px", ...W } : W;
|
|
6219
6216
|
}, [v, R]), q = /* @__PURE__ */ b(
|
|
@@ -6254,10 +6251,10 @@ const Vc = ({
|
|
|
6254
6251
|
Divider: o
|
|
6255
6252
|
}
|
|
6256
6253
|
},
|
|
6257
|
-
children: /* @__PURE__ */ b(
|
|
6254
|
+
children: /* @__PURE__ */ b(ln, { ...c, styles: a, children: l })
|
|
6258
6255
|
}
|
|
6259
|
-
) : /* @__PURE__ */ b(
|
|
6260
|
-
},
|
|
6256
|
+
) : /* @__PURE__ */ b(ln, { ...c, styles: a, children: l });
|
|
6257
|
+
}, Tn = (e) => {
|
|
6261
6258
|
if (!e) return [];
|
|
6262
6259
|
if (typeof e == "string")
|
|
6263
6260
|
try {
|
|
@@ -6290,26 +6287,26 @@ const Vc = ({
|
|
|
6290
6287
|
index: d,
|
|
6291
6288
|
...s
|
|
6292
6289
|
}) => {
|
|
6293
|
-
const v = O((
|
|
6290
|
+
const v = O((D) => D.addCommand), u = y(
|
|
6294
6291
|
() => tt(t, i),
|
|
6295
6292
|
[t, i]
|
|
6296
|
-
), C = O((
|
|
6293
|
+
), C = O((D) => {
|
|
6297
6294
|
if (u)
|
|
6298
|
-
return r ?
|
|
6299
|
-
}),
|
|
6295
|
+
return r ? D.getDataSet(u, r) : D.dataSets[u];
|
|
6296
|
+
}), w = y(() => {
|
|
6300
6297
|
if (C == null) return;
|
|
6301
6298
|
if (Array.isArray(C)) return C;
|
|
6302
|
-
const
|
|
6303
|
-
if (Array.isArray(
|
|
6304
|
-
if (Array.isArray(
|
|
6305
|
-
}, [C]), T = y(() => n ?
|
|
6306
|
-
(
|
|
6299
|
+
const D = C;
|
|
6300
|
+
if (Array.isArray(D == null ? void 0 : D.items)) return D.items;
|
|
6301
|
+
if (Array.isArray(D == null ? void 0 : D.value)) return D.value;
|
|
6302
|
+
}, [C]), T = y(() => n ? w ?? Tn(o) ?? [] : u ? w ?? [] : Tn(o) ?? [], [n, u, w, o]), S = B(
|
|
6303
|
+
(D, N) => {
|
|
6307
6304
|
if (m) {
|
|
6308
|
-
m(
|
|
6305
|
+
m(D, N);
|
|
6309
6306
|
return;
|
|
6310
6307
|
}
|
|
6311
6308
|
if (g && t) {
|
|
6312
|
-
const { actionName: k, arg: M } = te(g,
|
|
6309
|
+
const { actionName: k, arg: M } = te(g, D, {
|
|
6313
6310
|
id: e,
|
|
6314
6311
|
dataSet: i,
|
|
6315
6312
|
dataSetField: r,
|
|
@@ -6323,43 +6320,43 @@ const Vc = ({
|
|
|
6323
6320
|
), x = y(
|
|
6324
6321
|
() => ({
|
|
6325
6322
|
items: Zn(T),
|
|
6326
|
-
onClick: (
|
|
6323
|
+
onClick: (D) => {
|
|
6327
6324
|
if (c && t) {
|
|
6328
|
-
const { actionName: N, arg: k } = te(c,
|
|
6325
|
+
const { actionName: N, arg: k } = te(c, D.key, {
|
|
6329
6326
|
id: e,
|
|
6330
6327
|
dataSet: i,
|
|
6331
6328
|
dataSetField: r,
|
|
6332
6329
|
index: d,
|
|
6333
|
-
key:
|
|
6334
|
-
keyPath:
|
|
6330
|
+
key: D.key,
|
|
6331
|
+
keyPath: D.keyPath
|
|
6335
6332
|
});
|
|
6336
6333
|
v(t, Z(N, k));
|
|
6337
6334
|
}
|
|
6338
6335
|
},
|
|
6339
|
-
onSelect: (
|
|
6336
|
+
onSelect: (D) => {
|
|
6340
6337
|
if (l && t) {
|
|
6341
|
-
const { actionName: N, arg: k } = te(l,
|
|
6338
|
+
const { actionName: N, arg: k } = te(l, D.key, {
|
|
6342
6339
|
id: e,
|
|
6343
6340
|
dataSet: i,
|
|
6344
6341
|
dataSetField: r,
|
|
6345
6342
|
index: d,
|
|
6346
|
-
key:
|
|
6347
|
-
keyPath:
|
|
6348
|
-
selectedKeys:
|
|
6343
|
+
key: D.key,
|
|
6344
|
+
keyPath: D.keyPath,
|
|
6345
|
+
selectedKeys: D.selectedKeys
|
|
6349
6346
|
});
|
|
6350
6347
|
v(t, Z(N, k));
|
|
6351
6348
|
}
|
|
6352
6349
|
},
|
|
6353
|
-
onDeselect: (
|
|
6350
|
+
onDeselect: (D) => {
|
|
6354
6351
|
if (h && t) {
|
|
6355
|
-
const { actionName: N, arg: k } = te(h,
|
|
6352
|
+
const { actionName: N, arg: k } = te(h, D.key, {
|
|
6356
6353
|
id: e,
|
|
6357
6354
|
dataSet: i,
|
|
6358
6355
|
dataSetField: r,
|
|
6359
6356
|
index: d,
|
|
6360
|
-
key:
|
|
6361
|
-
keyPath:
|
|
6362
|
-
selectedKeys:
|
|
6357
|
+
key: D.key,
|
|
6358
|
+
keyPath: D.keyPath,
|
|
6359
|
+
selectedKeys: D.selectedKeys
|
|
6363
6360
|
});
|
|
6364
6361
|
v(t, Z(N, k));
|
|
6365
6362
|
}
|
|
@@ -6376,12 +6373,12 @@ const Vc = ({
|
|
|
6376
6373
|
n && !p && !f && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6377
6374
|
!p && !n && a && /* @__PURE__ */ b(Zt, { children: /* @__PURE__ */ at(Yt, { children: [
|
|
6378
6375
|
a,
|
|
6379
|
-
/* @__PURE__ */ b(
|
|
6376
|
+
/* @__PURE__ */ b(Vn, {})
|
|
6380
6377
|
] }) })
|
|
6381
6378
|
]
|
|
6382
6379
|
}
|
|
6383
6380
|
), [p, n, a, f]);
|
|
6384
|
-
return /* @__PURE__ */ b(Mr, { ...s, menu: x, onOpenChange:
|
|
6381
|
+
return /* @__PURE__ */ b(Mr, { ...s, menu: x, onOpenChange: S, children: A });
|
|
6385
6382
|
}, rs = ({
|
|
6386
6383
|
id: e,
|
|
6387
6384
|
sessionId: t,
|
|
@@ -6400,7 +6397,7 @@ const Vc = ({
|
|
|
6400
6397
|
develop: n,
|
|
6401
6398
|
children: i,
|
|
6402
6399
|
...r
|
|
6403
|
-
}) => /* @__PURE__ */ b(
|
|
6400
|
+
}) => /* @__PURE__ */ b($n, { ...r, children: i }), os = ({
|
|
6404
6401
|
id: e,
|
|
6405
6402
|
sessionId: t,
|
|
6406
6403
|
develop: n,
|
|
@@ -6459,7 +6456,7 @@ const Vc = ({
|
|
|
6459
6456
|
const u = O((E) => E.addCommand), C = y(
|
|
6460
6457
|
() => qe(i, []),
|
|
6461
6458
|
[i]
|
|
6462
|
-
),
|
|
6459
|
+
), w = y(() => qe(f, {}), [f]), T = y(() => ue(o), [o]), S = y(() => {
|
|
6463
6460
|
if (c) {
|
|
6464
6461
|
if (typeof c == "string") {
|
|
6465
6462
|
const E = qe(c, null);
|
|
@@ -6491,7 +6488,7 @@ const Vc = ({
|
|
|
6491
6488
|
h && t && u(t, Z(h, { sizes: E }));
|
|
6492
6489
|
},
|
|
6493
6490
|
[m, h, t, u]
|
|
6494
|
-
),
|
|
6491
|
+
), D = () => d && Vt.Children.count(d) > 0 ? Vt.Children.map(d, (E, $) => {
|
|
6495
6492
|
const j = C[$] || {};
|
|
6496
6493
|
return /* @__PURE__ */ b(
|
|
6497
6494
|
Be.Panel,
|
|
@@ -6543,12 +6540,12 @@ const Vc = ({
|
|
|
6543
6540
|
style: { height: "100%", width: "100%", ...k.style },
|
|
6544
6541
|
styles: p,
|
|
6545
6542
|
draggerIcon: T,
|
|
6546
|
-
collapsibleIcon:
|
|
6547
|
-
children:
|
|
6543
|
+
collapsibleIcon: S,
|
|
6544
|
+
children: D()
|
|
6548
6545
|
},
|
|
6549
6546
|
r
|
|
6550
6547
|
) });
|
|
6551
|
-
return
|
|
6548
|
+
return w && Object.keys(w).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Splitter: w } }, children: M }) : M;
|
|
6552
6549
|
}, ss = ({
|
|
6553
6550
|
children: e,
|
|
6554
6551
|
className: t,
|
|
@@ -6591,23 +6588,23 @@ const Vc = ({
|
|
|
6591
6588
|
"page-size": u = "small",
|
|
6592
6589
|
"page-showLessItems": C = !1
|
|
6593
6590
|
}) => {
|
|
6594
|
-
const
|
|
6591
|
+
const w = u === "default" ? "middle" : u, T = O((j) => j.getDataSet), S = y(
|
|
6595
6592
|
() => tt(t, i),
|
|
6596
6593
|
[t, i]
|
|
6597
|
-
), [x, A] = gt(1), [
|
|
6598
|
-
if (
|
|
6599
|
-
const j = T(
|
|
6594
|
+
), [x, A] = gt(1), [D, N] = gt(p), k = y(() => {
|
|
6595
|
+
if (S && r) {
|
|
6596
|
+
const j = T(S, r);
|
|
6600
6597
|
return Array.isArray(j) ? j : [];
|
|
6601
6598
|
}
|
|
6602
6599
|
return [];
|
|
6603
|
-
}, [
|
|
6600
|
+
}, [S, r, T]), M = y(() => n ? k.length > 0 ? k : c || [] : S ? k : c || [], [n, S, k, c]), E = y(() => {
|
|
6604
6601
|
let j = M;
|
|
6605
6602
|
if (!m) {
|
|
6606
|
-
const z = (x - 1) *
|
|
6603
|
+
const z = (x - 1) * D, H = z + D;
|
|
6607
6604
|
j = j.slice(z, H);
|
|
6608
6605
|
}
|
|
6609
6606
|
return l ? j.slice(0, l) : j;
|
|
6610
|
-
}, [M, m, x,
|
|
6607
|
+
}, [M, m, x, D, l]);
|
|
6611
6608
|
if (!M || M.length === 0)
|
|
6612
6609
|
return o ? /* @__PURE__ */ b(ye, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6613
6610
|
const $ = (j, z) => {
|
|
@@ -6616,17 +6613,17 @@ const Vc = ({
|
|
|
6616
6613
|
return /* @__PURE__ */ at("div", { style: { display: "flex", flexDirection: "column", ...h }, children: [
|
|
6617
6614
|
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: E.map((j, z) => /* @__PURE__ */ b(Vt.Fragment, { children: a ? a(j, z) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(j) }) }, j.id || z)) }),
|
|
6618
6615
|
!m && M.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
|
|
6619
|
-
|
|
6616
|
+
Rn,
|
|
6620
6617
|
{
|
|
6621
6618
|
current: x,
|
|
6622
|
-
pageSize:
|
|
6619
|
+
pageSize: D,
|
|
6623
6620
|
total: M.length,
|
|
6624
6621
|
onChange: $,
|
|
6625
6622
|
pageSizeOptions: f,
|
|
6626
6623
|
showSizeChanger: d,
|
|
6627
6624
|
showQuickJumper: s,
|
|
6628
6625
|
simple: v,
|
|
6629
|
-
size:
|
|
6626
|
+
size: w,
|
|
6630
6627
|
showLessItems: C
|
|
6631
6628
|
}
|
|
6632
6629
|
) })
|
|
@@ -6740,14 +6737,14 @@ const Vc = ({
|
|
|
6740
6737
|
s.originalPrice
|
|
6741
6738
|
] })
|
|
6742
6739
|
] }),
|
|
6743
|
-
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((v, u) => /* @__PURE__ */ b(
|
|
6740
|
+
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Yt, { size: 4, wrap: !0, children: s.tags.map((v, u) => /* @__PURE__ */ b(Mn, { color: "blue", children: v }, u)) })
|
|
6744
6741
|
] })
|
|
6745
6742
|
}
|
|
6746
6743
|
)
|
|
6747
6744
|
},
|
|
6748
6745
|
s.id
|
|
6749
6746
|
)) });
|
|
6750
|
-
},
|
|
6747
|
+
}, Nn = ({ id: e, icon: t, title: n, description: i, style: r }) => /* @__PURE__ */ at(
|
|
6751
6748
|
"div",
|
|
6752
6749
|
{
|
|
6753
6750
|
id: e,
|
|
@@ -6788,7 +6785,7 @@ const Vc = ({
|
|
|
6788
6785
|
placeholderFlexDirection: g = "column",
|
|
6789
6786
|
index: m
|
|
6790
6787
|
}) => {
|
|
6791
|
-
var A,
|
|
6788
|
+
var A, D;
|
|
6792
6789
|
const { storeBaseKey: p, arrayIndex: f } = y(() => {
|
|
6793
6790
|
if (!n) return { storeBaseKey: void 0, arrayIndex: null };
|
|
6794
6791
|
const N = n.split(".")[0], { baseName: k, index: M } = ge(N);
|
|
@@ -6820,7 +6817,7 @@ const Vc = ({
|
|
|
6820
6817
|
};
|
|
6821
6818
|
}
|
|
6822
6819
|
return { componentName: "", props: {} };
|
|
6823
|
-
}, [n, i, d]), v = ((A = s.props) == null ? void 0 : A.inheritDataSet) !== void 0 ? String((
|
|
6820
|
+
}, [n, i, d]), v = ((A = s.props) == null ? void 0 : A.inheritDataSet) !== void 0 ? String((D = s.props) == null ? void 0 : D.inheritDataSet) : void 0, u = s.componentName || e, C = y(() => ({
|
|
6824
6821
|
// inheritDataSet 只用于给后代提供 DataSetInheritContext,不应透传给具体组件。
|
|
6825
6822
|
...s.props ? (() => {
|
|
6826
6823
|
const { inheritDataSet: N, ...k } = s.props;
|
|
@@ -6829,7 +6826,7 @@ const Vc = ({
|
|
|
6829
6826
|
...m !== void 0 ? { index: m } : {},
|
|
6830
6827
|
...t,
|
|
6831
6828
|
sessionId: i
|
|
6832
|
-
}), [s.props, t, i, m]),
|
|
6829
|
+
}), [s.props, t, i, m]), w = h || "请配置组件";
|
|
6833
6830
|
if (a) {
|
|
6834
6831
|
const N = g === "row";
|
|
6835
6832
|
return /* @__PURE__ */ at(
|
|
@@ -6860,29 +6857,29 @@ const Vc = ({
|
|
|
6860
6857
|
}
|
|
6861
6858
|
);
|
|
6862
6859
|
}
|
|
6863
|
-
const T = Pt(),
|
|
6864
|
-
if (!
|
|
6860
|
+
const T = Pt(), S = l || T.componentResolver;
|
|
6861
|
+
if (!S)
|
|
6865
6862
|
return /* @__PURE__ */ b(
|
|
6866
|
-
|
|
6863
|
+
Nn,
|
|
6867
6864
|
{
|
|
6868
6865
|
id: c,
|
|
6869
|
-
title:
|
|
6866
|
+
title: w,
|
|
6870
6867
|
description: "动态容器未配置组件解析器",
|
|
6871
6868
|
style: o
|
|
6872
6869
|
}
|
|
6873
6870
|
);
|
|
6874
|
-
const x = u ?
|
|
6871
|
+
const x = u ? S(u) : null;
|
|
6875
6872
|
return x ? /* @__PURE__ */ b(Gr, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Kr, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: v && f !== null ? /* @__PURE__ */ b(
|
|
6876
|
-
|
|
6873
|
+
Yn.Provider,
|
|
6877
6874
|
{
|
|
6878
6875
|
value: { dataSet: v, index: f, sessionId: i },
|
|
6879
6876
|
children: /* @__PURE__ */ b(x, { ...C })
|
|
6880
6877
|
}
|
|
6881
6878
|
) : /* @__PURE__ */ b(x, { ...C }) }) }) : /* @__PURE__ */ b(
|
|
6882
|
-
|
|
6879
|
+
Nn,
|
|
6883
6880
|
{
|
|
6884
6881
|
id: c,
|
|
6885
|
-
title:
|
|
6882
|
+
title: w,
|
|
6886
6883
|
description: u ? `组件 "${u}" 未找到` : void 0,
|
|
6887
6884
|
style: o
|
|
6888
6885
|
}
|
|
@@ -6997,13 +6994,13 @@ function Ft(e, t) {
|
|
|
6997
6994
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6998
6995
|
autoFit: C,
|
|
6999
6996
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7000
|
-
padding:
|
|
6997
|
+
padding: w,
|
|
7001
6998
|
// 需要解析的 JSON 配置
|
|
7002
6999
|
title: T,
|
|
7003
|
-
legend:
|
|
7000
|
+
legend: S,
|
|
7004
7001
|
label: x,
|
|
7005
7002
|
tooltip: A,
|
|
7006
|
-
animate:
|
|
7003
|
+
animate: D,
|
|
7007
7004
|
scale: N,
|
|
7008
7005
|
interaction: k,
|
|
7009
7006
|
annotations: M,
|
|
@@ -7046,12 +7043,12 @@ function Ft(e, t) {
|
|
|
7046
7043
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7047
7044
|
...q,
|
|
7048
7045
|
// 设计器模式禁用动画
|
|
7049
|
-
animate: h ? !1 : xt(
|
|
7046
|
+
animate: h ? !1 : xt(D),
|
|
7050
7047
|
onReady: P,
|
|
7051
7048
|
...L
|
|
7052
7049
|
}, rt = xt(T);
|
|
7053
7050
|
rt !== void 0 && (W.title = rt);
|
|
7054
|
-
const ut = xt(
|
|
7051
|
+
const ut = xt(S);
|
|
7055
7052
|
ut !== void 0 && (W.legend = ut);
|
|
7056
7053
|
const et = xt(x);
|
|
7057
7054
|
et !== void 0 && (W.label = et);
|
|
@@ -7366,7 +7363,7 @@ export {
|
|
|
7366
7363
|
gs as AndVPie,
|
|
7367
7364
|
ms as AndWatermark,
|
|
7368
7365
|
rc as COMMON_TOKENS,
|
|
7369
|
-
|
|
7366
|
+
Yn as DataSetInheritContext,
|
|
7370
7367
|
Yo as cleanupAllMounts,
|
|
7371
7368
|
Ho as clearCssCache,
|
|
7372
7369
|
Z as createCommand,
|
|
@@ -7377,7 +7374,7 @@ export {
|
|
|
7377
7374
|
Fe as getAccessToken,
|
|
7378
7375
|
Pt as getCoreConfig,
|
|
7379
7376
|
tt as getDataSetStoreKey,
|
|
7380
|
-
|
|
7377
|
+
rn as getDictOptions,
|
|
7381
7378
|
Pe as getNestedValue,
|
|
7382
7379
|
de as getValidateStoreKey,
|
|
7383
7380
|
fi as initReactMount,
|
|
@@ -7390,7 +7387,7 @@ export {
|
|
|
7390
7387
|
gi as parseClickAction,
|
|
7391
7388
|
xe as parseNestedPath,
|
|
7392
7389
|
Io as parseQueryAction,
|
|
7393
|
-
|
|
7390
|
+
Hn as processValidationRules,
|
|
7394
7391
|
ec as req,
|
|
7395
7392
|
ne as request,
|
|
7396
7393
|
ic as resolveTokenColorWithToken,
|
|
@@ -7405,13 +7402,13 @@ export {
|
|
|
7405
7402
|
jt as useFieldValidation,
|
|
7406
7403
|
Xo as useItemStore,
|
|
7407
7404
|
Qo as usePopCommand,
|
|
7408
|
-
|
|
7405
|
+
an as useRemoteOptions,
|
|
7409
7406
|
$e as useResolveTokenColor,
|
|
7410
|
-
|
|
7407
|
+
nn as useResolvedDataSet,
|
|
7411
7408
|
Po as useStore,
|
|
7412
7409
|
Jo as useStoreByName,
|
|
7413
7410
|
hi as useStoreData,
|
|
7414
|
-
|
|
7411
|
+
Un as validateWithSchema,
|
|
7415
7412
|
yi as watchCommands,
|
|
7416
7413
|
Ft as withBaseChart
|
|
7417
7414
|
};
|