@nuwatop/code-canvas-core 0.2.7 → 0.2.9
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/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as w, jsxs as at, Fragment as he } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as nn } from "react-dom/client";
|
|
3
|
-
import { theme as Xt, ConfigProvider as _t, Button as Zt, Input as
|
|
3
|
+
import { theme as Xt, ConfigProvider as _t, Button as Zt, Input as ke, InputNumber as Cr, Space as Ut, Select as Tr, Switch as an, DatePicker as Nr, TimePicker as on, Radio as Re, Checkbox as ae, Rate as cn, Slider as ln, Cascader as sn, TreeSelect as un, message as Se, Upload as fn, Image as Qt, AutoComplete as dn, Form as Te, Transfer as mn, Segmented as hn, Modal as kr, Tooltip as yn, Table as gn, Flex as Or, Typography as tr, Tabs as pn, Tree as vn, Timeline as bn, Steps as wn, Statistic as qe, Carousel as Sn, Avatar as Dn, Tag as Er, Pagination as _r, Breadcrumb as An, Menu as xn, Calendar as Cn, Badge as $r, Masonry as Tn, Alert as Nn, Drawer as kn, Result as On, Card as We, Divider as cr, Dropdown as En, Row as _n, Col as $n, QRCode as Mn, Splitter as je, Spin as Rn, Watermark as jn } from "antd";
|
|
4
4
|
import { StyleProvider as Bn, createCache as Kn } from "@ant-design/cssinjs";
|
|
5
5
|
import zn from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Ln } from "zustand";
|
|
@@ -12,7 +12,7 @@ import { CloseCircleOutlined as Un, PlusOutlined as Rr, UploadOutlined as Yn, Me
|
|
|
12
12
|
import Zn from "clsx";
|
|
13
13
|
import Ht from "dayjs";
|
|
14
14
|
import { Line as Fn, Column as In, Pie as ti, Area as ei, DualAxes as ri, Gauge as ni, Liquid as ii, Bar as ai } from "@ant-design/plots";
|
|
15
|
-
const
|
|
15
|
+
const De = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap();
|
|
16
16
|
let Ue = !1;
|
|
17
17
|
const oi = () => {
|
|
18
18
|
Ue || (Ue = !0);
|
|
@@ -31,32 +31,32 @@ const oi = () => {
|
|
|
31
31
|
}) => {
|
|
32
32
|
var C;
|
|
33
33
|
oi();
|
|
34
|
-
const o =
|
|
34
|
+
const o = De.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
|
+
De.delete(e);
|
|
51
51
|
}
|
|
52
52
|
const c = nn(e);
|
|
53
|
-
|
|
54
|
-
const s = window.__ANTD_CSSINJS_CONTAINER__,
|
|
53
|
+
De.set(e, c);
|
|
54
|
+
const s = window.__ANTD_CSSINJS_CONTAINER__, h = window.__ANTD_IFRAME_DOC__, g = !n && s && h && h.defaultView !== null, m = g ? s : window.document.head, p = g ? h : window.document, f = ci(p), b = (((C = window.__GLS_COMPS__) == null ? void 0 : C.theme) || i) === "dark" ? Xt.darkAlgorithm : Xt.defaultAlgorithm, u = (S) => /* @__PURE__ */ w(Bn, { cache: f, container: m, hashPriority: "high", children: /* @__PURE__ */ w(
|
|
55
55
|
_t,
|
|
56
56
|
{
|
|
57
57
|
locale: zn,
|
|
58
58
|
theme: {
|
|
59
|
-
algorithm:
|
|
59
|
+
algorithm: b,
|
|
60
60
|
cssVar: {
|
|
61
61
|
key: "antd-canvas"
|
|
62
62
|
// 唯一标识符
|
|
@@ -65,28 +65,28 @@ const oi = () => {
|
|
|
65
65
|
// 禁用哈希类名,使用静态 CSS 中的选择器
|
|
66
66
|
},
|
|
67
67
|
getPopupContainer: () => e,
|
|
68
|
-
children: /* @__PURE__ */ w(t, { ...
|
|
68
|
+
children: /* @__PURE__ */ w(t, { ...S })
|
|
69
69
|
}
|
|
70
70
|
) });
|
|
71
|
-
window.__CURRENT_STYLE_CONTAINER__ =
|
|
71
|
+
window.__CURRENT_STYLE_CONTAINER__ = m;
|
|
72
72
|
const T = e.hasAttribute("editing"), D = { ...r };
|
|
73
73
|
return T && D.develop === void 0 && (D.develop = !0), c.render(u(D)), {
|
|
74
74
|
root: c,
|
|
75
75
|
unmount: () => {
|
|
76
76
|
try {
|
|
77
|
-
c.unmount(),
|
|
78
|
-
} catch (
|
|
79
|
-
console.error("[code-canvas-core] Failed to unmount component:",
|
|
77
|
+
c.unmount(), De.delete(e);
|
|
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__ =
|
|
82
|
+
update: (S) => {
|
|
83
|
+
window.__CURRENT_STYLE_CONTAINER__ = m, c.render(u(S));
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}, Vo = () => {
|
|
87
87
|
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Ue = !1;
|
|
88
88
|
};
|
|
89
|
-
function
|
|
89
|
+
function ye(e) {
|
|
90
90
|
const t = e.match(/^(.+)\[(\d+)\]$/);
|
|
91
91
|
return t ? {
|
|
92
92
|
baseName: t[1],
|
|
@@ -96,7 +96,7 @@ function ke(e) {
|
|
|
96
96
|
index: null
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Ae(e) {
|
|
100
100
|
if (!e || typeof e != "string") return [];
|
|
101
101
|
const t = [], r = e.split(".").flatMap((i) => {
|
|
102
102
|
const n = i.match(/^([^\[]+)(\[\d+\])(.*)$/);
|
|
@@ -134,11 +134,11 @@ function li(e, t, r) {
|
|
|
134
134
|
const i = Array.isArray(e) ? [...e] : { ...e };
|
|
135
135
|
let n = i;
|
|
136
136
|
for (let o = 0; o < t.length - 1; o++) {
|
|
137
|
-
const c = t[o], s = t[o + 1],
|
|
138
|
-
let g = n[
|
|
137
|
+
const c = t[o], s = t[o + 1], h = c.key;
|
|
138
|
+
let g = n[h];
|
|
139
139
|
g == null ? g = s.type === "array" ? [] : {} : s.type === "array" && !Array.isArray(g) ? g = [] : s.type === "property" && Array.isArray(g) ? g = Object.fromEntries(
|
|
140
|
-
g.map((
|
|
141
|
-
) : g = Array.isArray(g) ? [...g] : { ...g }, n[
|
|
140
|
+
g.map((m, p) => [String(p), m]).filter(([, m]) => m !== void 0)
|
|
141
|
+
) : g = Array.isArray(g) ? [...g] : { ...g }, n[h] = g, n = g;
|
|
142
142
|
}
|
|
143
143
|
const a = t[t.length - 1];
|
|
144
144
|
return n[a.key] = r, i;
|
|
@@ -158,13 +158,13 @@ const lr = {
|
|
|
158
158
|
validateStore: {}
|
|
159
159
|
};
|
|
160
160
|
function sr(e, t, r, i) {
|
|
161
|
-
const { baseName: n, index: a } =
|
|
161
|
+
const { baseName: n, index: a } = ye(t);
|
|
162
162
|
if (e.dataSets[n] || (e.dataSets[n] = {}), a !== null) {
|
|
163
|
-
const
|
|
164
|
-
let g =
|
|
163
|
+
const h = e.dataSets[n];
|
|
164
|
+
let g = h.value;
|
|
165
165
|
Array.isArray(g) || (g = []);
|
|
166
|
-
const
|
|
167
|
-
l[a] = d, e.dataSets[n] = { ...
|
|
166
|
+
const m = g[a], p = r.length === 0 ? m : Ye(m ?? {}, r), f = i(p), d = r.length === 0 ? f : li(m ?? {}, r, f), l = [...g];
|
|
167
|
+
l[a] = d, e.dataSets[n] = { ...h, value: l };
|
|
168
168
|
return;
|
|
169
169
|
}
|
|
170
170
|
if (r.length === 0) {
|
|
@@ -172,10 +172,10 @@ function sr(e, t, r, i) {
|
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
174
|
let o = e.dataSets[n];
|
|
175
|
-
for (let
|
|
176
|
-
const g = r[
|
|
175
|
+
for (let h = 0; h < r.length - 1; h++) {
|
|
176
|
+
const g = r[h], m = r[h + 1];
|
|
177
177
|
let p = o[g.key];
|
|
178
|
-
p == null && (o[g.key] =
|
|
178
|
+
p == null && (o[g.key] = m.type === "array" ? [] : {}, p = o[g.key]), o = p;
|
|
179
179
|
}
|
|
180
180
|
const c = r[r.length - 1], s = o[c.key];
|
|
181
181
|
o[c.key] = i(s);
|
|
@@ -187,26 +187,26 @@ const k = Ln()(
|
|
|
187
187
|
// ============ 数据集操作(支持 name[index] 与 field 多级路径;append 默认 true 为合并更新) ============
|
|
188
188
|
setDataSet: (r, i, n, a = !0) => e((o) => {
|
|
189
189
|
if (!r) return;
|
|
190
|
-
const c = i ?
|
|
190
|
+
const c = i ? Ae(i) : [], s = a && typeof n == "object" && n !== null && !Array.isArray(n);
|
|
191
191
|
sr(o, r, c, (g) => s && g != null && typeof g == "object" && !Array.isArray(g) ? { ...g, ...n } : n);
|
|
192
192
|
}),
|
|
193
193
|
updateDataSet: (r, i, n) => e((a) => {
|
|
194
194
|
if (!r || typeof n != "function") return;
|
|
195
|
-
const o = i ?
|
|
195
|
+
const o = i ? Ae(i) : [];
|
|
196
196
|
sr(a, r, o, n);
|
|
197
197
|
}),
|
|
198
198
|
getDataSet: (r, i) => {
|
|
199
199
|
if (!r) return;
|
|
200
|
-
const n = t().dataSets, { baseName: a, index: o } =
|
|
200
|
+
const n = t().dataSets, { baseName: a, index: o } = ye(r), c = n[a];
|
|
201
201
|
if (o !== null) {
|
|
202
202
|
const s = c == null ? void 0 : c.value;
|
|
203
203
|
if (!Array.isArray(s) || s[o] === void 0)
|
|
204
204
|
return;
|
|
205
|
-
const
|
|
206
|
-
return i ? Ye(
|
|
205
|
+
const h = s[o];
|
|
206
|
+
return i ? Ye(h, Ae(i)) : h;
|
|
207
207
|
}
|
|
208
208
|
if (c)
|
|
209
|
-
return i ? Ye(c,
|
|
209
|
+
return i ? Ye(c, Ae(i)) : c;
|
|
210
210
|
},
|
|
211
211
|
setDataSetBatch: (r, i) => e((n) => {
|
|
212
212
|
n.dataSets[r] = {
|
|
@@ -295,7 +295,7 @@ function Uo() {
|
|
|
295
295
|
function si(e, t) {
|
|
296
296
|
const r = k((n) => {
|
|
297
297
|
if (!e) return;
|
|
298
|
-
const a =
|
|
298
|
+
const a = ye(e).baseName;
|
|
299
299
|
return n.dataSets[a];
|
|
300
300
|
}), i = k((n) => n.getDataSet);
|
|
301
301
|
return y(() => {
|
|
@@ -376,14 +376,14 @@ function er(e, t = null, r = {}) {
|
|
|
376
376
|
if (!a)
|
|
377
377
|
return { actionName: n, arg: t };
|
|
378
378
|
const o = a.split(",").map((s) => {
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
379
|
+
const h = s.trim();
|
|
380
|
+
if (h === "@value")
|
|
381
381
|
return t;
|
|
382
|
-
if (
|
|
383
|
-
const g =
|
|
382
|
+
if (h.startsWith("@")) {
|
|
383
|
+
const g = h.substring(1);
|
|
384
384
|
return r[g];
|
|
385
385
|
}
|
|
386
|
-
return
|
|
386
|
+
return h.startsWith('"') && h.endsWith('"') || h.startsWith("'") && h.endsWith("'") ? h.slice(1, -1) : isNaN(Number(h)) ? h : Number(h);
|
|
387
387
|
}), c = o.length === 1 ? o[0] : o;
|
|
388
388
|
return { actionName: n, arg: c };
|
|
389
389
|
}
|
|
@@ -436,13 +436,13 @@ function mi() {
|
|
|
436
436
|
return !1;
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
function
|
|
440
|
-
return mi() ?
|
|
439
|
+
function Ne(e, t, r) {
|
|
440
|
+
return mi() ? Ne = Reflect.construct.bind() : Ne = function(n, a, o) {
|
|
441
441
|
var c = [null];
|
|
442
442
|
c.push.apply(c, a);
|
|
443
|
-
var s = Function.bind.apply(n, c),
|
|
444
|
-
return o && me(
|
|
445
|
-
},
|
|
443
|
+
var s = Function.bind.apply(n, c), h = new s();
|
|
444
|
+
return o && me(h, o.prototype), h;
|
|
445
|
+
}, Ne.apply(null, arguments);
|
|
446
446
|
}
|
|
447
447
|
function hi(e) {
|
|
448
448
|
return Function.toString.call(e).indexOf("[native code]") !== -1;
|
|
@@ -458,7 +458,7 @@ function Je(e) {
|
|
|
458
458
|
t.set(i, n);
|
|
459
459
|
}
|
|
460
460
|
function n() {
|
|
461
|
-
return
|
|
461
|
+
return Ne(i, arguments, Pe(this).constructor);
|
|
462
462
|
}
|
|
463
463
|
return n.prototype = Object.create(i.prototype, {
|
|
464
464
|
constructor: {
|
|
@@ -570,19 +570,19 @@ function bi(e, t, r, i, n) {
|
|
|
570
570
|
return p;
|
|
571
571
|
}), a;
|
|
572
572
|
}
|
|
573
|
-
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], c = Object.keys(e), s = c.length,
|
|
574
|
-
var d = function(
|
|
575
|
-
if (g.push.apply(g,
|
|
573
|
+
var o = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], c = Object.keys(e), s = c.length, h = 0, g = [], m = new Promise(function(p, f) {
|
|
574
|
+
var d = function(b) {
|
|
575
|
+
if (g.push.apply(g, b), h++, h === s)
|
|
576
576
|
return i(g), g.length ? f(new fr(g, Ge(g))) : p(n);
|
|
577
577
|
};
|
|
578
578
|
c.length || (i(g), p(n)), c.forEach(function(l) {
|
|
579
|
-
var
|
|
580
|
-
o.indexOf(l) !== -1 ? ur(
|
|
579
|
+
var b = e[l];
|
|
580
|
+
o.indexOf(l) !== -1 ? ur(b, r, d) : pi(b, r, d);
|
|
581
581
|
});
|
|
582
582
|
});
|
|
583
|
-
return
|
|
583
|
+
return m.catch(function(p) {
|
|
584
584
|
return p;
|
|
585
|
-
}),
|
|
585
|
+
}), m;
|
|
586
586
|
}
|
|
587
587
|
function wi(e) {
|
|
588
588
|
return !!(e && e.message !== void 0);
|
|
@@ -619,9 +619,9 @@ var Lr = function(t, r, i, n, a, o) {
|
|
|
619
619
|
t.required && (!i.hasOwnProperty(t.field) || xt(r, o || t.type)) && n.push(Bt(a.messages.required, t.fullField));
|
|
620
620
|
}, Di = function(t, r, i, n, a) {
|
|
621
621
|
(/^\s+$/.test(r) || r === "") && n.push(Bt(a.messages.whitespace, t.fullField));
|
|
622
|
-
},
|
|
623
|
-
if (
|
|
624
|
-
return
|
|
622
|
+
}, xe, Ai = function() {
|
|
623
|
+
if (xe)
|
|
624
|
+
return xe;
|
|
625
625
|
var e = "[a-fA-F\\d:]", t = function(C) {
|
|
626
626
|
return C && C.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
|
|
627
627
|
}, r = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", i = "[a-fA-F\\d]{1,4}", n = (`
|
|
@@ -643,8 +643,8 @@ var Lr = function(t, r, i, n, a, o) {
|
|
|
643
643
|
}, s.v6 = function(D) {
|
|
644
644
|
return D && D.exact ? c : new RegExp("" + t(D) + n + t(D), "g");
|
|
645
645
|
};
|
|
646
|
-
var
|
|
647
|
-
return
|
|
646
|
+
var h = "(?:(?:[a-z]+:)?//)", g = "(?:\\S+(?::\\S*)?@)?", m = s.v4().source, p = s.v6().source, f = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", d = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", l = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", b = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', T = "(?:" + h + "|www\\.)" + g + "(?:localhost|" + m + "|" + p + "|" + f + d + l + ")" + b + u;
|
|
647
|
+
return xe = new RegExp("(?:^" + T + "$)", "i"), xe;
|
|
648
648
|
}, hr = {
|
|
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,}))$/,
|
|
@@ -701,10 +701,10 @@ var Lr = function(t, r, i, n, a, o) {
|
|
|
701
701
|
var o = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = t.type;
|
|
702
702
|
o.indexOf(c) > -1 ? ue[c](r) || n.push(Bt(a.messages.types[c], t.fullField, t.type)) : c && typeof r !== t.type && n.push(Bt(a.messages.types[c], t.fullField, t.type));
|
|
703
703
|
}, Ci = function(t, r, i, n, a) {
|
|
704
|
-
var o = typeof t.len == "number", c = typeof t.min == "number", s = typeof t.max == "number",
|
|
705
|
-
if (p ?
|
|
704
|
+
var o = typeof t.len == "number", c = typeof t.min == "number", s = typeof t.max == "number", h = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, g = r, m = null, p = typeof r == "number", f = typeof r == "string", d = Array.isArray(r);
|
|
705
|
+
if (p ? m = "number" : f ? m = "string" : d && (m = "array"), !m)
|
|
706
706
|
return !1;
|
|
707
|
-
d && (g = r.length), f && (g = r.replace(
|
|
707
|
+
d && (g = r.length), f && (g = r.replace(h, "_").length), o ? g !== t.len && n.push(Bt(a.messages[m].len, t.fullField, t.len)) : c && !s && g < t.min ? n.push(Bt(a.messages[m].min, t.fullField, t.min)) : s && !c && g > t.max ? n.push(Bt(a.messages[m].max, t.fullField, t.max)) : c && s && (g < t.min || g > t.max) && n.push(Bt(a.messages[m].range, t.fullField, t.min, t.max));
|
|
708
708
|
}, ie = "enum", Ti = function(t, r, i, n, a) {
|
|
709
709
|
t[ie] = Array.isArray(t[ie]) ? t[ie] : [], t[ie].indexOf(r) === -1 && n.push(Bt(a.messages[ie], t.fullField, t[ie].join(", ")));
|
|
710
710
|
}, Ni = function(t, r, i, n, a) {
|
|
@@ -913,7 +913,7 @@ function Qe() {
|
|
|
913
913
|
}
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
|
-
var Xe = Qe(),
|
|
916
|
+
var Xe = Qe(), ge = /* @__PURE__ */ function() {
|
|
917
917
|
function e(r) {
|
|
918
918
|
this.rules = null, this._messages = Xe, this.define(r);
|
|
919
919
|
}
|
|
@@ -934,31 +934,31 @@ var Xe = Qe(), ye = /* @__PURE__ */ function() {
|
|
|
934
934
|
var o = this;
|
|
935
935
|
n === void 0 && (n = {}), a === void 0 && (a = function() {
|
|
936
936
|
});
|
|
937
|
-
var c = i, s = n,
|
|
938
|
-
if (typeof s == "function" && (
|
|
939
|
-
return
|
|
937
|
+
var c = i, s = n, h = a;
|
|
938
|
+
if (typeof s == "function" && (h = s, s = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
939
|
+
return h && h(null, c), Promise.resolve(c);
|
|
940
940
|
function g(l) {
|
|
941
|
-
var
|
|
941
|
+
var b = [], u = {};
|
|
942
942
|
function T(C) {
|
|
943
943
|
if (Array.isArray(C)) {
|
|
944
|
-
var
|
|
945
|
-
|
|
944
|
+
var S;
|
|
945
|
+
b = (S = b).concat.apply(S, C);
|
|
946
946
|
} else
|
|
947
|
-
|
|
947
|
+
b.push(C);
|
|
948
948
|
}
|
|
949
949
|
for (var D = 0; D < l.length; D++)
|
|
950
950
|
T(l[D]);
|
|
951
|
-
|
|
951
|
+
b.length ? (u = Ge(b), h(b, u)) : h(null, c);
|
|
952
952
|
}
|
|
953
953
|
if (s.messages) {
|
|
954
|
-
var
|
|
955
|
-
|
|
954
|
+
var m = this.messages();
|
|
955
|
+
m === Xe && (m = Qe()), mr(m, s.messages), s.messages = m;
|
|
956
956
|
} else
|
|
957
957
|
s.messages = this.messages();
|
|
958
958
|
var p = {}, f = s.keys || Object.keys(this.rules);
|
|
959
959
|
f.forEach(function(l) {
|
|
960
|
-
var
|
|
961
|
-
|
|
960
|
+
var b = o.rules[l], u = c[l];
|
|
961
|
+
b.forEach(function(T) {
|
|
962
962
|
var D = T;
|
|
963
963
|
typeof D.transform == "function" && (c === i && (c = te({}, c)), u = c[l] = D.transform(u)), typeof D == "function" ? D = {
|
|
964
964
|
validator: D
|
|
@@ -971,7 +971,7 @@ var Xe = Qe(), ye = /* @__PURE__ */ function() {
|
|
|
971
971
|
});
|
|
972
972
|
});
|
|
973
973
|
var d = {};
|
|
974
|
-
return bi(p, s, function(l,
|
|
974
|
+
return bi(p, s, function(l, b) {
|
|
975
975
|
var u = l.rule, T = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
|
|
976
976
|
T = T && (u.required || !u.required && l.value), u.field = l.field;
|
|
977
977
|
function D(A, v) {
|
|
@@ -986,42 +986,42 @@ var Xe = Qe(), ye = /* @__PURE__ */ function() {
|
|
|
986
986
|
!s.suppressWarning && v.length && e.warning("async-validator:", v), v.length && u.message !== void 0 && (v = [].concat(u.message));
|
|
987
987
|
var x = v.map(dr(u, c));
|
|
988
988
|
if (s.first && x.length)
|
|
989
|
-
return d[u.field] = 1,
|
|
989
|
+
return d[u.field] = 1, b(x);
|
|
990
990
|
if (!T)
|
|
991
|
-
|
|
991
|
+
b(x);
|
|
992
992
|
else {
|
|
993
993
|
if (u.required && !l.value)
|
|
994
|
-
return u.message !== void 0 ? x = [].concat(u.message).map(dr(u, c)) : s.error && (x = [s.error(u, Bt(s.messages.required, u.field))]),
|
|
994
|
+
return u.message !== void 0 ? x = [].concat(u.message).map(dr(u, c)) : s.error && (x = [s.error(u, Bt(s.messages.required, u.field))]), b(x);
|
|
995
995
|
var N = {};
|
|
996
|
-
u.defaultField && Object.keys(l.value).map(function(
|
|
997
|
-
N[
|
|
996
|
+
u.defaultField && Object.keys(l.value).map(function(E) {
|
|
997
|
+
N[E] = u.defaultField;
|
|
998
998
|
}), N = te({}, N, l.rule.fields);
|
|
999
|
-
var
|
|
1000
|
-
Object.keys(N).forEach(function(
|
|
1001
|
-
var $ = N[
|
|
1002
|
-
E
|
|
999
|
+
var O = {};
|
|
1000
|
+
Object.keys(N).forEach(function(E) {
|
|
1001
|
+
var $ = N[E], R = Array.isArray($) ? $ : [$];
|
|
1002
|
+
O[E] = R.map(D.bind(null, E));
|
|
1003
1003
|
});
|
|
1004
|
-
var B = new e(
|
|
1005
|
-
B.messages(s.messages), l.rule.options && (l.rule.options.messages = s.messages, l.rule.options.error = s.error), B.validate(l.value, l.rule.options || s, function(
|
|
1004
|
+
var B = new e(O);
|
|
1005
|
+
B.messages(s.messages), l.rule.options && (l.rule.options.messages = s.messages, l.rule.options.error = s.error), B.validate(l.value, l.rule.options || s, function(E) {
|
|
1006
1006
|
var $ = [];
|
|
1007
|
-
x && x.length && $.push.apply($, x),
|
|
1007
|
+
x && x.length && $.push.apply($, x), E && E.length && $.push.apply($, E), b($.length ? $ : null);
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
var
|
|
1011
|
+
var S;
|
|
1012
1012
|
if (u.asyncValidator)
|
|
1013
|
-
|
|
1013
|
+
S = u.asyncValidator(u, l.value, C, l.source, s);
|
|
1014
1014
|
else if (u.validator) {
|
|
1015
1015
|
try {
|
|
1016
|
-
|
|
1016
|
+
S = u.validator(u, l.value, C, l.source, s);
|
|
1017
1017
|
} catch (A) {
|
|
1018
1018
|
console.error == null || console.error(A), s.suppressValidatorError || setTimeout(function() {
|
|
1019
1019
|
throw A;
|
|
1020
1020
|
}, 0), C(A.message);
|
|
1021
1021
|
}
|
|
1022
|
-
|
|
1022
|
+
S === !0 ? C() : S === !1 ? C(typeof u.message == "function" ? u.message(u.fullField || u.field) : u.message || (u.fullField || u.field) + " fails") : S instanceof Array ? C(S) : S instanceof Error && C(S.message);
|
|
1023
1023
|
}
|
|
1024
|
-
|
|
1024
|
+
S && S.then && S.then(function() {
|
|
1025
1025
|
return C();
|
|
1026
1026
|
}, function(A) {
|
|
1027
1027
|
return C(A);
|
|
@@ -1040,14 +1040,14 @@ var Xe = Qe(), ye = /* @__PURE__ */ function() {
|
|
|
1040
1040
|
return a !== -1 && n.splice(a, 1), n.length === 1 && n[0] === "required" ? de.required : de[this.getType(i)] || void 0;
|
|
1041
1041
|
}, e;
|
|
1042
1042
|
}();
|
|
1043
|
-
|
|
1043
|
+
ge.register = function(t, r) {
|
|
1044
1044
|
if (typeof r != "function")
|
|
1045
1045
|
throw new Error("Cannot register a validator by type, validator is not a function");
|
|
1046
1046
|
de[t] = r;
|
|
1047
1047
|
};
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1048
|
+
ge.warning = zr;
|
|
1049
|
+
ge.messages = Xe;
|
|
1050
|
+
ge.validators = de;
|
|
1051
1051
|
function Hi(e) {
|
|
1052
1052
|
if (!e || typeof e != "string") return null;
|
|
1053
1053
|
try {
|
|
@@ -1074,52 +1074,52 @@ function qr(e, t, r, i) {
|
|
|
1074
1074
|
return;
|
|
1075
1075
|
}
|
|
1076
1076
|
const n = { [yr]: e };
|
|
1077
|
-
new
|
|
1077
|
+
new ge(n).validate({ [yr]: t }, { first: !0 }).then(() => {
|
|
1078
1078
|
r();
|
|
1079
1079
|
}).catch(({ errors: o }) => {
|
|
1080
1080
|
i(o || []);
|
|
1081
1081
|
});
|
|
1082
1082
|
}
|
|
1083
1083
|
function Rt(e) {
|
|
1084
|
-
const { rules: t, dataSet: r, dataSetField: i, sessionId: n, id: a, develop: o } = e, c = k((
|
|
1084
|
+
const { rules: t, dataSet: r, dataSetField: i, sessionId: n, id: a, develop: o } = e, c = k((S) => S.setValidateResult), s = k((S) => S.getProps), h = k((S) => S.setProps), g = y(
|
|
1085
1085
|
() => fe(n, r),
|
|
1086
1086
|
[n, r]
|
|
1087
|
-
),
|
|
1088
|
-
(
|
|
1087
|
+
), m = k(
|
|
1088
|
+
(S) => {
|
|
1089
1089
|
var A;
|
|
1090
|
-
return g && i ? ((A =
|
|
1090
|
+
return g && i ? ((A = S.validateStore[g]) == null ? void 0 : A[i]) ?? "" : "";
|
|
1091
1091
|
}
|
|
1092
1092
|
), p = k(
|
|
1093
|
-
(
|
|
1093
|
+
(S) => {
|
|
1094
1094
|
var A;
|
|
1095
|
-
return n && a ? ((A =
|
|
1095
|
+
return n && a ? ((A = S.propsStore[`${n}_props`]) == null ? void 0 : A[a]) ?? null : null;
|
|
1096
1096
|
}
|
|
1097
|
-
), f = k((
|
|
1097
|
+
), f = k((S) => S.getDataSet), d = y(
|
|
1098
1098
|
() => I(n, r),
|
|
1099
1099
|
[n, r]
|
|
1100
1100
|
), l = y(
|
|
1101
1101
|
() => r ? I(n, `${r}_validateAction`) : void 0,
|
|
1102
1102
|
[n, r]
|
|
1103
|
-
),
|
|
1104
|
-
(
|
|
1103
|
+
), b = k(
|
|
1104
|
+
(S) => {
|
|
1105
1105
|
var A;
|
|
1106
|
-
return l ? (A =
|
|
1106
|
+
return l ? (A = S.dataSets[l]) == null ? void 0 : A.validate : void 0;
|
|
1107
1107
|
}
|
|
1108
1108
|
), u = j(
|
|
1109
|
-
(
|
|
1110
|
-
const A =
|
|
1109
|
+
(S) => {
|
|
1110
|
+
const A = S ?? "";
|
|
1111
1111
|
if (n && r && i && c(n, r, i, A), n && a) {
|
|
1112
1112
|
const v = s(n, a) || {};
|
|
1113
|
-
|
|
1113
|
+
h(n, a, { ...v, validateStatus: A ? "error" : void 0, help: A });
|
|
1114
1114
|
}
|
|
1115
1115
|
},
|
|
1116
|
-
[n, r, i, a, c, s,
|
|
1116
|
+
[n, r, i, a, c, s, h]
|
|
1117
1117
|
), T = j(
|
|
1118
|
-
(
|
|
1118
|
+
(S) => {
|
|
1119
1119
|
const A = Vr(t || []);
|
|
1120
1120
|
qr(
|
|
1121
1121
|
A,
|
|
1122
|
-
|
|
1122
|
+
S,
|
|
1123
1123
|
() => u(""),
|
|
1124
1124
|
(v) => {
|
|
1125
1125
|
var x;
|
|
@@ -1128,12 +1128,12 @@ function Rt(e) {
|
|
|
1128
1128
|
);
|
|
1129
1129
|
},
|
|
1130
1130
|
[t, u]
|
|
1131
|
-
), D = o ? void 0 : n && r && i ?
|
|
1131
|
+
), D = o ? void 0 : n && r && i ? m : (p == null ? void 0 : p.help) ?? "", C = !o && D ? "error" : void 0;
|
|
1132
1132
|
return Ot(() => {
|
|
1133
|
-
if (
|
|
1134
|
-
const
|
|
1135
|
-
T(
|
|
1136
|
-
}, [
|
|
1133
|
+
if (b == null || !d || !i) return;
|
|
1134
|
+
const S = f(d, i);
|
|
1135
|
+
T(S);
|
|
1136
|
+
}, [b, d, i, f, T]), { validate: T, help: D, validateStatus: C };
|
|
1137
1137
|
}
|
|
1138
1138
|
const Ui = ["value", "validateStatus", "help"];
|
|
1139
1139
|
function Gt(e, t, r) {
|
|
@@ -1191,22 +1191,22 @@ const Xo = {
|
|
|
1191
1191
|
};
|
|
1192
1192
|
function Pi() {
|
|
1193
1193
|
const e = Pt(), t = j(
|
|
1194
|
-
async (s,
|
|
1195
|
-
const g = typeof s == "string" ? { url: s, ...
|
|
1194
|
+
async (s, h) => {
|
|
1195
|
+
const g = typeof s == "string" ? { url: s, ...h } : s;
|
|
1196
1196
|
return ee(g);
|
|
1197
1197
|
},
|
|
1198
1198
|
[]
|
|
1199
1199
|
), r = j(
|
|
1200
|
-
async (s,
|
|
1200
|
+
async (s, h, g) => ee({ url: s, params: h, method: "GET", ...g }),
|
|
1201
1201
|
[]
|
|
1202
1202
|
), i = j(
|
|
1203
|
-
async (s,
|
|
1203
|
+
async (s, h, g) => ee({ url: s, data: h, method: "POST", ...g }),
|
|
1204
1204
|
[]
|
|
1205
1205
|
), n = j(
|
|
1206
1206
|
async (s) => rr(s),
|
|
1207
1207
|
[]
|
|
1208
1208
|
), a = j(
|
|
1209
|
-
async (s,
|
|
1209
|
+
async (s, h) => Wr(s, h),
|
|
1210
1210
|
[]
|
|
1211
1211
|
), o = j(() => Ze(), []), c = j(() => !!e.request, [e.request]);
|
|
1212
1212
|
return {
|
|
@@ -1220,7 +1220,7 @@ function Pi() {
|
|
|
1220
1220
|
baseURL: e.baseURL
|
|
1221
1221
|
};
|
|
1222
1222
|
}
|
|
1223
|
-
function
|
|
1223
|
+
function pe(e) {
|
|
1224
1224
|
const [t, r] = ht([]), [i, n] = ht(!1), [a, o] = ht(null);
|
|
1225
1225
|
return Ot(() => {
|
|
1226
1226
|
if (!e) {
|
|
@@ -1242,37 +1242,37 @@ function ge(e) {
|
|
|
1242
1242
|
function nr(e, t) {
|
|
1243
1243
|
const [r, i] = ht([]), [n, a] = ht(!1), [o, c] = ht(null), {
|
|
1244
1244
|
labelKey: s = "label",
|
|
1245
|
-
valueKey:
|
|
1245
|
+
valueKey: h = "value",
|
|
1246
1246
|
immediate: g = !0,
|
|
1247
|
-
field:
|
|
1247
|
+
field: m
|
|
1248
1248
|
} = t || {}, p = JSON.stringify((t == null ? void 0 : t.params) ?? null), f = y(
|
|
1249
1249
|
() => (t == null ? void 0 : t.params) != null ? JSON.parse(p) : void 0,
|
|
1250
1250
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1251
1251
|
[p]
|
|
1252
1252
|
), d = j(
|
|
1253
|
-
(
|
|
1253
|
+
(b) => Array.isArray(b) ? b.map((u) => ({
|
|
1254
1254
|
label: u[s],
|
|
1255
|
-
value: u[
|
|
1255
|
+
value: u[h]
|
|
1256
1256
|
})) : [],
|
|
1257
|
-
[s,
|
|
1257
|
+
[s, h]
|
|
1258
1258
|
), l = j(async () => {
|
|
1259
1259
|
if (e) {
|
|
1260
1260
|
a(!0), c(null);
|
|
1261
1261
|
try {
|
|
1262
|
-
const
|
|
1262
|
+
const b = await ee({
|
|
1263
1263
|
url: e,
|
|
1264
1264
|
method: "GET",
|
|
1265
1265
|
...f != null && Object.keys(f).length > 0 ? { params: f } : {}
|
|
1266
|
-
}), u = (
|
|
1266
|
+
}), u = (b == null ? void 0 : b.data) != null ? b.data : b;
|
|
1267
1267
|
let T = [];
|
|
1268
|
-
|
|
1269
|
-
} catch (
|
|
1270
|
-
c(
|
|
1268
|
+
m != null && m !== "" ? T = Array.isArray(u == null ? void 0 : u[m]) ? u[m] : [] : Array.isArray(u) ? T = u : u != null && typeof u == "object" && (T = (u == null ? void 0 : u.list) ?? (u == null ? void 0 : u.records) ?? []), i(d(T));
|
|
1269
|
+
} catch (b) {
|
|
1270
|
+
c(b), console.error(`Failed to load remote options: ${e}`, b);
|
|
1271
1271
|
} finally {
|
|
1272
1272
|
a(!1);
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
|
-
}, [e, f, d,
|
|
1275
|
+
}, [e, f, d, m]);
|
|
1276
1276
|
return Ot(() => {
|
|
1277
1277
|
g && e && l();
|
|
1278
1278
|
}, [g, e, l]), { options: r, loading: n, error: o, reload: l };
|
|
@@ -1361,8 +1361,8 @@ const oe = (e) => {
|
|
|
1361
1361
|
try {
|
|
1362
1362
|
const t = Oe(e);
|
|
1363
1363
|
if (!t) return "";
|
|
1364
|
-
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), n = Math.floor(i / 1e3), a = Math.floor(n / 60), o = Math.floor(a / 60), c = Math.floor(o / 24), s = Math.floor(c / 30),
|
|
1365
|
-
return n < 60 ? "刚刚" : a < 60 ? `${a}分钟前` : o < 24 ? `${o}小时前` : c < 30 ? `${c}天前` : s < 12 ? `${s}个月前` : `${
|
|
1364
|
+
const i = (/* @__PURE__ */ new Date()).getTime() - t.getTime(), n = Math.floor(i / 1e3), a = Math.floor(n / 60), o = Math.floor(a / 60), c = Math.floor(o / 24), s = Math.floor(c / 30), h = Math.floor(c / 365);
|
|
1365
|
+
return n < 60 ? "刚刚" : a < 60 ? `${a}分钟前` : o < 24 ? `${o}小时前` : c < 30 ? `${c}天前` : s < 12 ? `${s}个月前` : `${h}年前`;
|
|
1366
1366
|
} catch {
|
|
1367
1367
|
return "";
|
|
1368
1368
|
}
|
|
@@ -1618,9 +1618,9 @@ const tc = ({
|
|
|
1618
1618
|
onClick: o,
|
|
1619
1619
|
children: c,
|
|
1620
1620
|
index: s,
|
|
1621
|
-
dataSet:
|
|
1621
|
+
dataSet: h,
|
|
1622
1622
|
dataSetField: g,
|
|
1623
|
-
...
|
|
1623
|
+
...m
|
|
1624
1624
|
}) => {
|
|
1625
1625
|
const p = k((v) => v.addCommand), f = k(
|
|
1626
1626
|
(v) => {
|
|
@@ -1628,14 +1628,14 @@ const tc = ({
|
|
|
1628
1628
|
return n && e ? (x = v.propsStore[`${n}_props`]) == null ? void 0 : x[e] : null;
|
|
1629
1629
|
}
|
|
1630
1630
|
), d = y(() => {
|
|
1631
|
-
const v = { ...
|
|
1631
|
+
const v = { ...m };
|
|
1632
1632
|
return f && typeof f == "object" && Object.keys(f).forEach((x) => {
|
|
1633
1633
|
f[x] !== void 0 && f[x] !== null && (v[x] = f[x]);
|
|
1634
1634
|
}), a && (v.disabled = !1), v;
|
|
1635
|
-
}, [
|
|
1635
|
+
}, [m, f, a]), l = y(() => {
|
|
1636
1636
|
const v = (f == null ? void 0 : f.iconName) || r;
|
|
1637
1637
|
return v && Jt[v] ? Jt[v] : null;
|
|
1638
|
-
}, [r, f == null ? void 0 : f.iconName]),
|
|
1638
|
+
}, [r, f == null ? void 0 : f.iconName]), b = j(
|
|
1639
1639
|
(v) => {
|
|
1640
1640
|
if (o) {
|
|
1641
1641
|
o(v);
|
|
@@ -1645,22 +1645,22 @@ const tc = ({
|
|
|
1645
1645
|
const { actionName: x, arg: N } = fi(i, {
|
|
1646
1646
|
id: e,
|
|
1647
1647
|
index: s,
|
|
1648
|
-
dataSet:
|
|
1648
|
+
dataSet: h,
|
|
1649
1649
|
dataSetField: g,
|
|
1650
1650
|
...d
|
|
1651
|
-
}),
|
|
1652
|
-
p(n,
|
|
1651
|
+
}), O = Q(x, N);
|
|
1652
|
+
p(n, O);
|
|
1653
1653
|
}
|
|
1654
1654
|
},
|
|
1655
|
-
[i, n, e, s,
|
|
1656
|
-
), u = (f == null ? void 0 : f.text) || t, { iconPosition: T, iconPlacement: D, clickAction: C, ...
|
|
1655
|
+
[i, n, e, s, h, g, d, p, o]
|
|
1656
|
+
), u = (f == null ? void 0 : f.text) || t, { iconPosition: T, iconPlacement: D, clickAction: C, ...S } = d;
|
|
1657
1657
|
return /* @__PURE__ */ w(
|
|
1658
1658
|
Zt,
|
|
1659
1659
|
{
|
|
1660
|
-
...
|
|
1660
|
+
...S,
|
|
1661
1661
|
iconPlacement: D || T,
|
|
1662
1662
|
icon: l ? /* @__PURE__ */ w(l, {}) : void 0,
|
|
1663
|
-
onClick:
|
|
1663
|
+
onClick: b,
|
|
1664
1664
|
children: u || c
|
|
1665
1665
|
}
|
|
1666
1666
|
);
|
|
@@ -1692,20 +1692,20 @@ const Yr = (e) => {
|
|
|
1692
1692
|
changeAction: o,
|
|
1693
1693
|
onChange: c,
|
|
1694
1694
|
value: s,
|
|
1695
|
-
styles:
|
|
1695
|
+
styles: h,
|
|
1696
1696
|
token: g,
|
|
1697
|
-
rules:
|
|
1697
|
+
rules: m,
|
|
1698
1698
|
validateOnChange: p,
|
|
1699
1699
|
validateOnBlur: f,
|
|
1700
1700
|
focusAction: d,
|
|
1701
1701
|
blurAction: l,
|
|
1702
|
-
pressEnterAction:
|
|
1702
|
+
pressEnterAction: b,
|
|
1703
1703
|
clearAction: u,
|
|
1704
1704
|
bordered: T,
|
|
1705
1705
|
addonAfter: D,
|
|
1706
1706
|
addonBefore: C,
|
|
1707
|
-
...
|
|
1708
|
-
} = e, A = Vt(""), v = Vt(null), x = k((K) => K.addCommand), N = k((K) => K.getDataSet),
|
|
1707
|
+
...S
|
|
1708
|
+
} = e, A = Vt(""), v = Vt(null), x = k((K) => K.addCommand), N = k((K) => K.getDataSet), O = k((K) => K.setDataSet), B = k((K) => K.getProps), E = k((K) => K.setProps), $ = k((K) => K.setValidateResult), R = y(
|
|
1709
1709
|
() => I(r, n),
|
|
1710
1710
|
[r, n]
|
|
1711
1711
|
), z = k(
|
|
@@ -1732,20 +1732,20 @@ const Yr = (e) => {
|
|
|
1732
1732
|
return L ? (q = K.dataSets[L]) == null ? void 0 : q.validate : void 0;
|
|
1733
1733
|
}
|
|
1734
1734
|
), _ = y(() => W !== void 0 ? W : (z == null ? void 0 : z.value) !== void 0 ? z.value : s, [W, z == null ? void 0 : z.value, s]), M = y(
|
|
1735
|
-
() => ba(
|
|
1736
|
-
[
|
|
1735
|
+
() => ba(S, z ?? null, { develop: i }),
|
|
1736
|
+
[S, z, i]
|
|
1737
1737
|
), Y = j(
|
|
1738
1738
|
(K) => {
|
|
1739
1739
|
const q = K ?? "";
|
|
1740
1740
|
if (r && n && a && $(r, n, a, q), r && t) {
|
|
1741
1741
|
const rt = B(r, t) || {};
|
|
1742
|
-
|
|
1742
|
+
E(r, t, { ...rt, validateStatus: q ? "error" : void 0, help: q });
|
|
1743
1743
|
}
|
|
1744
1744
|
},
|
|
1745
|
-
[r, n, a, t, $, B,
|
|
1745
|
+
[r, n, a, t, $, B, E]
|
|
1746
1746
|
), V = j(
|
|
1747
1747
|
(K) => {
|
|
1748
|
-
const q = Vr(
|
|
1748
|
+
const q = Vr(m || []);
|
|
1749
1749
|
qr(
|
|
1750
1750
|
q,
|
|
1751
1751
|
K,
|
|
@@ -1756,7 +1756,7 @@ const Yr = (e) => {
|
|
|
1756
1756
|
}
|
|
1757
1757
|
);
|
|
1758
1758
|
},
|
|
1759
|
-
[
|
|
1759
|
+
[m, Y]
|
|
1760
1760
|
), U = j(
|
|
1761
1761
|
(K) => {
|
|
1762
1762
|
const q = K.target.value;
|
|
@@ -1764,7 +1764,7 @@ const Yr = (e) => {
|
|
|
1764
1764
|
c(q, K);
|
|
1765
1765
|
return;
|
|
1766
1766
|
}
|
|
1767
|
-
if (R && a &&
|
|
1767
|
+
if (R && a && O(R, a, q), o && r) {
|
|
1768
1768
|
const { actionName: rt, arg: X } = yt(o, q, {
|
|
1769
1769
|
id: t,
|
|
1770
1770
|
dataSet: n,
|
|
@@ -1781,7 +1781,7 @@ const Yr = (e) => {
|
|
|
1781
1781
|
c,
|
|
1782
1782
|
R,
|
|
1783
1783
|
a,
|
|
1784
|
-
|
|
1784
|
+
O,
|
|
1785
1785
|
o,
|
|
1786
1786
|
r,
|
|
1787
1787
|
t,
|
|
@@ -1801,8 +1801,8 @@ const Yr = (e) => {
|
|
|
1801
1801
|
rt(K);
|
|
1802
1802
|
return;
|
|
1803
1803
|
}
|
|
1804
|
-
if (
|
|
1805
|
-
const { actionName: X, arg: nt } = yt(
|
|
1804
|
+
if (b && r) {
|
|
1805
|
+
const { actionName: X, arg: nt } = yt(b, _, {
|
|
1806
1806
|
id: t,
|
|
1807
1807
|
dataSet: n,
|
|
1808
1808
|
dataSetField: a,
|
|
@@ -1813,7 +1813,7 @@ const Yr = (e) => {
|
|
|
1813
1813
|
},
|
|
1814
1814
|
[
|
|
1815
1815
|
M,
|
|
1816
|
-
|
|
1816
|
+
b,
|
|
1817
1817
|
r,
|
|
1818
1818
|
_,
|
|
1819
1819
|
t,
|
|
@@ -1852,7 +1852,7 @@ const Yr = (e) => {
|
|
|
1852
1852
|
[mt]
|
|
1853
1853
|
), ct = i ? void 0 : r && n && a ? H : (z == null ? void 0 : z.help) ?? "", dt = /* @__PURE__ */ at(he, { children: [
|
|
1854
1854
|
/* @__PURE__ */ w(
|
|
1855
|
-
|
|
1855
|
+
ke,
|
|
1856
1856
|
{
|
|
1857
1857
|
...M,
|
|
1858
1858
|
value: _,
|
|
@@ -1861,7 +1861,7 @@ const Yr = (e) => {
|
|
|
1861
1861
|
onPressEnter: ft,
|
|
1862
1862
|
onClear: tt,
|
|
1863
1863
|
status: !i && ct ? "error" : void 0,
|
|
1864
|
-
styles:
|
|
1864
|
+
styles: h
|
|
1865
1865
|
}
|
|
1866
1866
|
),
|
|
1867
1867
|
ct && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: ct })
|
|
@@ -1879,19 +1879,19 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1879
1879
|
validateOnBlur: o,
|
|
1880
1880
|
validateOnChange: c,
|
|
1881
1881
|
changeAction: s,
|
|
1882
|
-
pressEnterAction:
|
|
1882
|
+
pressEnterAction: h,
|
|
1883
1883
|
clearAction: g,
|
|
1884
|
-
allowClear:
|
|
1884
|
+
allowClear: m,
|
|
1885
1885
|
stepAction: p,
|
|
1886
1886
|
onChange: f,
|
|
1887
1887
|
defaultValue: d,
|
|
1888
1888
|
value: l,
|
|
1889
|
-
...
|
|
1889
|
+
...b
|
|
1890
1890
|
}) => {
|
|
1891
1891
|
const u = k((V) => V.addCommand), T = k((V) => V.setDataSet), D = Vt(null), C = y(
|
|
1892
1892
|
() => I(t, i),
|
|
1893
1893
|
[t, i]
|
|
1894
|
-
),
|
|
1894
|
+
), S = k(
|
|
1895
1895
|
(V) => {
|
|
1896
1896
|
var U;
|
|
1897
1897
|
return t && e ? ((U = V.propsStore[`${t}_props`]) == null ? void 0 : U[e]) ?? null : null;
|
|
@@ -1905,7 +1905,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1905
1905
|
sessionId: t,
|
|
1906
1906
|
id: e,
|
|
1907
1907
|
develop: r
|
|
1908
|
-
}), N = y(() => A !== void 0 ? A : (
|
|
1908
|
+
}), N = y(() => A !== void 0 ? A : (S == null ? void 0 : S.value) !== void 0 ? S.value : l, [A, S == null ? void 0 : S.value, l]), O = j(
|
|
1909
1909
|
(V, U, lt) => {
|
|
1910
1910
|
V && t && u(t, Q(V, { type: U, value: lt }));
|
|
1911
1911
|
},
|
|
@@ -1918,19 +1918,19 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1918
1918
|
}
|
|
1919
1919
|
C && n && T(C, n, V), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
1920
1920
|
D.current = null, v(V);
|
|
1921
|
-
}, gr)),
|
|
1921
|
+
}, gr)), O(s, "change", V);
|
|
1922
1922
|
},
|
|
1923
|
-
[f, C, n, T, c, v, s,
|
|
1924
|
-
),
|
|
1923
|
+
[f, C, n, T, c, v, s, O]
|
|
1924
|
+
), E = j(() => {
|
|
1925
1925
|
o && v(N);
|
|
1926
1926
|
}, [o, v, N]), $ = j(
|
|
1927
1927
|
(V) => {
|
|
1928
|
-
if (
|
|
1929
|
-
|
|
1928
|
+
if (b.onPressEnter) {
|
|
1929
|
+
b.onPressEnter(V);
|
|
1930
1930
|
return;
|
|
1931
1931
|
}
|
|
1932
|
-
if (
|
|
1933
|
-
const { actionName: U, arg: lt } = yt(
|
|
1932
|
+
if (h && t) {
|
|
1933
|
+
const { actionName: U, arg: lt } = yt(h, N, {
|
|
1934
1934
|
id: e,
|
|
1935
1935
|
dataSet: i,
|
|
1936
1936
|
dataSetField: n
|
|
@@ -1939,8 +1939,8 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1939
1939
|
}
|
|
1940
1940
|
},
|
|
1941
1941
|
[
|
|
1942
|
-
|
|
1943
|
-
|
|
1942
|
+
b.onPressEnter,
|
|
1943
|
+
h,
|
|
1944
1944
|
t,
|
|
1945
1945
|
N,
|
|
1946
1946
|
e,
|
|
@@ -1955,7 +1955,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1955
1955
|
}
|
|
1956
1956
|
if (C && n && T(C, n, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
1957
1957
|
D.current = null, v(null);
|
|
1958
|
-
}, gr)),
|
|
1958
|
+
}, gr)), O(s, "change", null), g && t) {
|
|
1959
1959
|
const { actionName: V, arg: U } = yt(g, null, {
|
|
1960
1960
|
id: e,
|
|
1961
1961
|
dataSet: i,
|
|
@@ -1970,7 +1970,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1970
1970
|
T,
|
|
1971
1971
|
c,
|
|
1972
1972
|
v,
|
|
1973
|
-
|
|
1973
|
+
O,
|
|
1974
1974
|
s,
|
|
1975
1975
|
g,
|
|
1976
1976
|
t,
|
|
@@ -1980,9 +1980,9 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1980
1980
|
u
|
|
1981
1981
|
]), z = j(
|
|
1982
1982
|
(V, U) => {
|
|
1983
|
-
|
|
1983
|
+
O(p, "step", { value: V, type: U.type });
|
|
1984
1984
|
},
|
|
1985
|
-
[p,
|
|
1985
|
+
[p, O]
|
|
1986
1986
|
);
|
|
1987
1987
|
Ot(
|
|
1988
1988
|
() => () => {
|
|
@@ -1993,10 +1993,10 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
1993
1993
|
d !== void 0 && N === void 0 && C && n && T(C, n, d);
|
|
1994
1994
|
}, [d, N, C, n, T]);
|
|
1995
1995
|
const J = y(
|
|
1996
|
-
() => Gt(
|
|
1997
|
-
[
|
|
1996
|
+
() => Gt(b, S ?? void 0),
|
|
1997
|
+
[b, S]
|
|
1998
1998
|
), { addonBefore: H, addonAfter: W, style: L, suffix: G, ..._ } = J, M = y(() => {
|
|
1999
|
-
if (!(
|
|
1999
|
+
if (!(m && N !== null && N !== void 0)) return G;
|
|
2000
2000
|
const U = /* @__PURE__ */ w(
|
|
2001
2001
|
"span",
|
|
2002
2002
|
{
|
|
@@ -2014,7 +2014,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2014
2014
|
G,
|
|
2015
2015
|
U
|
|
2016
2016
|
] });
|
|
2017
|
-
}, [
|
|
2017
|
+
}, [m, N, G, R]), Y = /* @__PURE__ */ w(
|
|
2018
2018
|
Cr,
|
|
2019
2019
|
{
|
|
2020
2020
|
..._,
|
|
@@ -2025,7 +2025,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2025
2025
|
}),
|
|
2026
2026
|
value: N,
|
|
2027
2027
|
onChange: B,
|
|
2028
|
-
onBlur:
|
|
2028
|
+
onBlur: E,
|
|
2029
2029
|
onPressEnter: $,
|
|
2030
2030
|
onStep: z,
|
|
2031
2031
|
suffix: M,
|
|
@@ -2073,7 +2073,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2073
2073
|
] }) : Y,
|
|
2074
2074
|
x && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: x })
|
|
2075
2075
|
] });
|
|
2076
|
-
}, { TextArea: wa } =
|
|
2076
|
+
}, { TextArea: wa } = ke, Sa = 200, nc = ({
|
|
2077
2077
|
id: e,
|
|
2078
2078
|
sessionId: t,
|
|
2079
2079
|
develop: r,
|
|
@@ -2083,24 +2083,24 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2083
2083
|
validateOnBlur: o,
|
|
2084
2084
|
validateOnChange: c,
|
|
2085
2085
|
changeAction: s,
|
|
2086
|
-
pressEnterAction:
|
|
2086
|
+
pressEnterAction: h,
|
|
2087
2087
|
clearAction: g,
|
|
2088
|
-
onChange:
|
|
2088
|
+
onChange: m,
|
|
2089
2089
|
value: p,
|
|
2090
2090
|
defaultValue: f,
|
|
2091
2091
|
...d
|
|
2092
2092
|
}) => {
|
|
2093
|
-
const l = k((
|
|
2093
|
+
const l = k((E) => E.addCommand), b = k((E) => E.setDataSet), u = Vt(null), T = y(
|
|
2094
2094
|
() => I(t, i),
|
|
2095
2095
|
[t, i]
|
|
2096
2096
|
), D = k(
|
|
2097
|
-
(
|
|
2097
|
+
(E) => {
|
|
2098
2098
|
var $;
|
|
2099
|
-
return t && e ? (($ =
|
|
2099
|
+
return t && e ? (($ = E.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2100
2100
|
}
|
|
2101
2101
|
), C = k(
|
|
2102
|
-
(
|
|
2103
|
-
), { validate:
|
|
2102
|
+
(E) => T && n ? E.getDataSet(T, n) : void 0
|
|
2103
|
+
), { validate: S, help: A } = Rt({
|
|
2104
2104
|
rules: a,
|
|
2105
2105
|
dataSet: i,
|
|
2106
2106
|
dataSetField: n,
|
|
@@ -2108,13 +2108,13 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2108
2108
|
id: e,
|
|
2109
2109
|
develop: r
|
|
2110
2110
|
}), v = y(() => C !== void 0 ? C : (D == null ? void 0 : D.value) !== void 0 ? D.value : p ?? f, [C, D == null ? void 0 : D.value, p, f]), x = j(
|
|
2111
|
-
(
|
|
2112
|
-
const $ =
|
|
2113
|
-
if (
|
|
2114
|
-
|
|
2111
|
+
(E) => {
|
|
2112
|
+
const $ = E.target.value;
|
|
2113
|
+
if (m) {
|
|
2114
|
+
m($, E);
|
|
2115
2115
|
return;
|
|
2116
2116
|
}
|
|
2117
|
-
if (T && n &&
|
|
2117
|
+
if (T && n && b(T, n, $), s && t) {
|
|
2118
2118
|
const { actionName: R, arg: z } = yt(s, $, {
|
|
2119
2119
|
id: e,
|
|
2120
2120
|
dataSet: i,
|
|
@@ -2123,31 +2123,31 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2123
2123
|
l(t, Q(R, z));
|
|
2124
2124
|
}
|
|
2125
2125
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2126
|
-
u.current = null,
|
|
2126
|
+
u.current = null, S($);
|
|
2127
2127
|
}, Sa));
|
|
2128
2128
|
},
|
|
2129
2129
|
[
|
|
2130
|
-
|
|
2130
|
+
m,
|
|
2131
2131
|
T,
|
|
2132
2132
|
n,
|
|
2133
|
-
|
|
2133
|
+
b,
|
|
2134
2134
|
s,
|
|
2135
2135
|
t,
|
|
2136
2136
|
e,
|
|
2137
2137
|
l,
|
|
2138
2138
|
c,
|
|
2139
|
-
|
|
2139
|
+
S
|
|
2140
2140
|
]
|
|
2141
2141
|
), N = j(() => {
|
|
2142
|
-
o &&
|
|
2143
|
-
}, [o,
|
|
2144
|
-
(
|
|
2142
|
+
o && S(v);
|
|
2143
|
+
}, [o, S, v]), O = j(
|
|
2144
|
+
(E) => {
|
|
2145
2145
|
if (d.onPressEnter) {
|
|
2146
|
-
d.onPressEnter(
|
|
2146
|
+
d.onPressEnter(E);
|
|
2147
2147
|
return;
|
|
2148
2148
|
}
|
|
2149
|
-
if (
|
|
2150
|
-
const { actionName: $, arg: R } = yt(
|
|
2149
|
+
if (h && t && !E.shiftKey) {
|
|
2150
|
+
const { actionName: $, arg: R } = yt(h, v, {
|
|
2151
2151
|
id: e,
|
|
2152
2152
|
dataSet: i,
|
|
2153
2153
|
dataSetField: n
|
|
@@ -2155,19 +2155,19 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2155
2155
|
l(t, Q($, R));
|
|
2156
2156
|
}
|
|
2157
2157
|
},
|
|
2158
|
-
[d.onPressEnter,
|
|
2158
|
+
[d.onPressEnter, h, t, v, e, i, n, l]
|
|
2159
2159
|
), B = j(() => {
|
|
2160
2160
|
if (d.onClear) {
|
|
2161
2161
|
d.onClear();
|
|
2162
2162
|
return;
|
|
2163
2163
|
}
|
|
2164
2164
|
if (g && t) {
|
|
2165
|
-
const { actionName:
|
|
2165
|
+
const { actionName: E, arg: $ } = yt(g, "", {
|
|
2166
2166
|
id: e,
|
|
2167
2167
|
dataSet: i,
|
|
2168
2168
|
dataSetField: n
|
|
2169
2169
|
});
|
|
2170
|
-
l(t, Q(
|
|
2170
|
+
l(t, Q(E, $));
|
|
2171
2171
|
}
|
|
2172
2172
|
}, [d.onClear, g, t, e, i, n, l]);
|
|
2173
2173
|
return Ot(
|
|
@@ -2184,14 +2184,14 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2184
2184
|
value: v,
|
|
2185
2185
|
onChange: x,
|
|
2186
2186
|
onBlur: N,
|
|
2187
|
-
onPressEnter:
|
|
2187
|
+
onPressEnter: O,
|
|
2188
2188
|
onClear: B,
|
|
2189
2189
|
status: A ? "error" : void 0
|
|
2190
2190
|
}
|
|
2191
2191
|
),
|
|
2192
2192
|
A && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
|
|
2193
2193
|
] });
|
|
2194
|
-
}, { Password: Da } =
|
|
2194
|
+
}, { Password: Da } = ke, Aa = 200, ic = ({
|
|
2195
2195
|
id: e,
|
|
2196
2196
|
sessionId: t,
|
|
2197
2197
|
develop: r,
|
|
@@ -2201,24 +2201,24 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2201
2201
|
validateOnBlur: o,
|
|
2202
2202
|
validateOnChange: c,
|
|
2203
2203
|
changeAction: s,
|
|
2204
|
-
pressEnterAction:
|
|
2204
|
+
pressEnterAction: h,
|
|
2205
2205
|
clearAction: g,
|
|
2206
|
-
onChange:
|
|
2206
|
+
onChange: m,
|
|
2207
2207
|
value: p,
|
|
2208
2208
|
defaultValue: f,
|
|
2209
2209
|
...d
|
|
2210
2210
|
}) => {
|
|
2211
|
-
const l = k((
|
|
2211
|
+
const l = k((E) => E.addCommand), b = k((E) => E.setDataSet), u = Vt(null), T = y(
|
|
2212
2212
|
() => I(t, i),
|
|
2213
2213
|
[t, i]
|
|
2214
2214
|
), D = k(
|
|
2215
|
-
(
|
|
2215
|
+
(E) => {
|
|
2216
2216
|
var $;
|
|
2217
|
-
return t && e ? (($ =
|
|
2217
|
+
return t && e ? (($ = E.propsStore[`${t}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2218
2218
|
}
|
|
2219
2219
|
), C = k(
|
|
2220
|
-
(
|
|
2221
|
-
), { validate:
|
|
2220
|
+
(E) => T && n ? E.getDataSet(T, n) : void 0
|
|
2221
|
+
), { validate: S, help: A } = Rt({
|
|
2222
2222
|
rules: a,
|
|
2223
2223
|
dataSet: i,
|
|
2224
2224
|
dataSetField: n,
|
|
@@ -2226,13 +2226,13 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2226
2226
|
id: e,
|
|
2227
2227
|
develop: r
|
|
2228
2228
|
}), v = y(() => C !== void 0 ? C : (D == null ? void 0 : D.value) !== void 0 ? D.value : p ?? f, [C, D == null ? void 0 : D.value, p, f]), x = j(
|
|
2229
|
-
(
|
|
2230
|
-
const $ =
|
|
2231
|
-
if (
|
|
2232
|
-
|
|
2229
|
+
(E) => {
|
|
2230
|
+
const $ = E.target.value;
|
|
2231
|
+
if (m) {
|
|
2232
|
+
m($, E);
|
|
2233
2233
|
return;
|
|
2234
2234
|
}
|
|
2235
|
-
if (T && n &&
|
|
2235
|
+
if (T && n && b(T, n, $), s && t) {
|
|
2236
2236
|
const { actionName: R, arg: z } = yt(s, $, {
|
|
2237
2237
|
id: e,
|
|
2238
2238
|
dataSet: i,
|
|
@@ -2241,31 +2241,31 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2241
2241
|
l(t, Q(R, z));
|
|
2242
2242
|
}
|
|
2243
2243
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2244
|
-
u.current = null,
|
|
2244
|
+
u.current = null, S($);
|
|
2245
2245
|
}, Aa));
|
|
2246
2246
|
},
|
|
2247
2247
|
[
|
|
2248
|
-
|
|
2248
|
+
m,
|
|
2249
2249
|
T,
|
|
2250
2250
|
n,
|
|
2251
|
-
|
|
2251
|
+
b,
|
|
2252
2252
|
s,
|
|
2253
2253
|
t,
|
|
2254
2254
|
e,
|
|
2255
2255
|
l,
|
|
2256
2256
|
c,
|
|
2257
|
-
|
|
2257
|
+
S
|
|
2258
2258
|
]
|
|
2259
2259
|
), N = j(() => {
|
|
2260
|
-
o &&
|
|
2261
|
-
}, [o,
|
|
2262
|
-
(
|
|
2260
|
+
o && S(v);
|
|
2261
|
+
}, [o, S, v]), O = j(
|
|
2262
|
+
(E) => {
|
|
2263
2263
|
if (d.onPressEnter) {
|
|
2264
|
-
d.onPressEnter(
|
|
2264
|
+
d.onPressEnter(E);
|
|
2265
2265
|
return;
|
|
2266
2266
|
}
|
|
2267
|
-
if (
|
|
2268
|
-
const { actionName: $, arg: R } = yt(
|
|
2267
|
+
if (h && t) {
|
|
2268
|
+
const { actionName: $, arg: R } = yt(h, v, {
|
|
2269
2269
|
id: e,
|
|
2270
2270
|
dataSet: i,
|
|
2271
2271
|
dataSetField: n
|
|
@@ -2275,7 +2275,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2275
2275
|
},
|
|
2276
2276
|
[
|
|
2277
2277
|
d.onPressEnter,
|
|
2278
|
-
|
|
2278
|
+
h,
|
|
2279
2279
|
t,
|
|
2280
2280
|
v,
|
|
2281
2281
|
e,
|
|
@@ -2289,12 +2289,12 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2289
2289
|
return;
|
|
2290
2290
|
}
|
|
2291
2291
|
if (g && t) {
|
|
2292
|
-
const { actionName:
|
|
2292
|
+
const { actionName: E, arg: $ } = yt(g, "", {
|
|
2293
2293
|
id: e,
|
|
2294
2294
|
dataSet: i,
|
|
2295
2295
|
dataSetField: n
|
|
2296
2296
|
});
|
|
2297
|
-
l(t, Q(
|
|
2297
|
+
l(t, Q(E, $));
|
|
2298
2298
|
}
|
|
2299
2299
|
}, [d.onClear, g, t, e, i, n, l]);
|
|
2300
2300
|
return Ot(
|
|
@@ -2311,14 +2311,14 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2311
2311
|
value: v,
|
|
2312
2312
|
onChange: x,
|
|
2313
2313
|
onBlur: N,
|
|
2314
|
-
onPressEnter:
|
|
2314
|
+
onPressEnter: O,
|
|
2315
2315
|
onClear: B,
|
|
2316
2316
|
status: A ? "error" : void 0
|
|
2317
2317
|
}
|
|
2318
2318
|
),
|
|
2319
2319
|
A && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
|
|
2320
2320
|
] });
|
|
2321
|
-
}, { Search: xa } =
|
|
2321
|
+
}, { Search: xa } = ke, ac = ({
|
|
2322
2322
|
id: e,
|
|
2323
2323
|
sessionId: t,
|
|
2324
2324
|
develop: r,
|
|
@@ -2328,23 +2328,23 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2328
2328
|
searchAction: o,
|
|
2329
2329
|
onChange: c,
|
|
2330
2330
|
onSearch: s,
|
|
2331
|
-
value:
|
|
2331
|
+
value: h,
|
|
2332
2332
|
defaultValue: g,
|
|
2333
|
-
...
|
|
2333
|
+
...m
|
|
2334
2334
|
}) => {
|
|
2335
2335
|
const p = k((C) => C.addCommand), f = k((C) => C.getDataSet), d = k((C) => C.setDataSet), l = y(
|
|
2336
2336
|
() => I(t, i),
|
|
2337
2337
|
[t, i]
|
|
2338
|
-
),
|
|
2338
|
+
), b = y(() => {
|
|
2339
2339
|
if (l && n) return f(l, n);
|
|
2340
|
-
}, [l, n, f]), u = y(() =>
|
|
2341
|
-
const
|
|
2340
|
+
}, [l, n, f]), u = y(() => b ?? h ?? g, [b, h, g]), T = j((C) => {
|
|
2341
|
+
const S = C.target.value;
|
|
2342
2342
|
if (c) {
|
|
2343
|
-
c(
|
|
2343
|
+
c(S);
|
|
2344
2344
|
return;
|
|
2345
2345
|
}
|
|
2346
|
-
if (l && n && d(l, n,
|
|
2347
|
-
const { actionName: A, arg: v } = yt(a,
|
|
2346
|
+
if (l && n && d(l, n, S), a && t) {
|
|
2347
|
+
const { actionName: A, arg: v } = yt(a, S, { id: e, dataSet: i, dataSetField: n });
|
|
2348
2348
|
p(t, Q(A, v));
|
|
2349
2349
|
}
|
|
2350
2350
|
}, [c, l, n, d, a, t, e, p]), D = j((C) => {
|
|
@@ -2354,7 +2354,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2354
2354
|
}
|
|
2355
2355
|
o && t && p(t, Q(o, C));
|
|
2356
2356
|
}, [s, o, t, p]);
|
|
2357
|
-
return /* @__PURE__ */ w(xa, { ...
|
|
2357
|
+
return /* @__PURE__ */ w(xa, { ...m, disabled: r ? !1 : m.disabled, value: u, onChange: T, onSearch: D });
|
|
2358
2358
|
}, Ca = 200, oc = ({
|
|
2359
2359
|
id: e,
|
|
2360
2360
|
sessionId: t,
|
|
@@ -2365,24 +2365,24 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2365
2365
|
dictType: o,
|
|
2366
2366
|
optionsCfg: c,
|
|
2367
2367
|
rules: s,
|
|
2368
|
-
validateOnBlur:
|
|
2368
|
+
validateOnBlur: h,
|
|
2369
2369
|
validateOnChange: g,
|
|
2370
|
-
changeAction:
|
|
2370
|
+
changeAction: m,
|
|
2371
2371
|
onChange: p,
|
|
2372
2372
|
options: f,
|
|
2373
2373
|
defaultValue: d,
|
|
2374
2374
|
value: l,
|
|
2375
|
-
index:
|
|
2375
|
+
index: b,
|
|
2376
2376
|
showArrow: u,
|
|
2377
2377
|
remoteUrl: T,
|
|
2378
2378
|
searchAction: D,
|
|
2379
2379
|
selectAction: C,
|
|
2380
|
-
deselectAction:
|
|
2380
|
+
deselectAction: S,
|
|
2381
2381
|
dictCode: A,
|
|
2382
2382
|
dropdownMatchSelectWidth: v,
|
|
2383
2383
|
...x
|
|
2384
2384
|
}) => {
|
|
2385
|
-
const N = k((ot) => ot.addCommand),
|
|
2385
|
+
const N = k((ot) => ot.addCommand), O = k((ot) => ot.setDataSet), B = Vt(null), E = y(
|
|
2386
2386
|
() => I(t, i),
|
|
2387
2387
|
[t, i]
|
|
2388
2388
|
), $ = k(
|
|
@@ -2391,11 +2391,11 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2391
2391
|
return t && e ? ((ct = ot.propsStore[`${t}_props`]) == null ? void 0 : ct[e]) ?? null : null;
|
|
2392
2392
|
}
|
|
2393
2393
|
), R = k(
|
|
2394
|
-
(ot) =>
|
|
2394
|
+
(ot) => E && n ? ot.getDataSet(E, n) : void 0
|
|
2395
2395
|
), z = y(
|
|
2396
2396
|
() => ($ == null ? void 0 : $.optionsCfg) != null ? $.optionsCfg : c,
|
|
2397
2397
|
[$ == null ? void 0 : $.optionsCfg, c]
|
|
2398
|
-
), { options: J, loading: H } =
|
|
2398
|
+
), { options: J, loading: H } = pe(
|
|
2399
2399
|
A || (a ? o : void 0)
|
|
2400
2400
|
), { options: W, loading: L } = nr(
|
|
2401
2401
|
z == null ? void 0 : z.url,
|
|
@@ -2431,34 +2431,34 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2431
2431
|
p(ot, ct);
|
|
2432
2432
|
return;
|
|
2433
2433
|
}
|
|
2434
|
-
if (
|
|
2434
|
+
if (E && n && O(E, n, ot), g && (B.current && clearTimeout(B.current), B.current = setTimeout(() => {
|
|
2435
2435
|
B.current = null, _(ot);
|
|
2436
|
-
}, Ca)),
|
|
2437
|
-
const { actionName: et, arg: dt } = yt(
|
|
2436
|
+
}, Ca)), m && t) {
|
|
2437
|
+
const { actionName: et, arg: dt } = yt(m, ot, {
|
|
2438
2438
|
id: e,
|
|
2439
2439
|
dataSet: i,
|
|
2440
2440
|
dataSetField: n,
|
|
2441
|
-
index:
|
|
2441
|
+
index: b
|
|
2442
2442
|
});
|
|
2443
2443
|
N(t, Q(et, dt));
|
|
2444
2444
|
}
|
|
2445
2445
|
},
|
|
2446
2446
|
[
|
|
2447
2447
|
p,
|
|
2448
|
-
O,
|
|
2449
|
-
n,
|
|
2450
2448
|
E,
|
|
2449
|
+
n,
|
|
2450
|
+
O,
|
|
2451
2451
|
g,
|
|
2452
2452
|
_,
|
|
2453
|
-
|
|
2453
|
+
m,
|
|
2454
2454
|
t,
|
|
2455
2455
|
e,
|
|
2456
|
-
|
|
2456
|
+
b,
|
|
2457
2457
|
N
|
|
2458
2458
|
]
|
|
2459
2459
|
), tt = j(() => {
|
|
2460
|
-
|
|
2461
|
-
}, [
|
|
2460
|
+
h && _(lt);
|
|
2461
|
+
}, [h, _, lt]);
|
|
2462
2462
|
Ot(
|
|
2463
2463
|
() => () => {
|
|
2464
2464
|
B.current && clearTimeout(B.current);
|
|
@@ -2495,15 +2495,15 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2495
2495
|
validateOnBlur: o,
|
|
2496
2496
|
validateOnChange: c,
|
|
2497
2497
|
changeAction: s,
|
|
2498
|
-
onChange:
|
|
2498
|
+
onChange: h,
|
|
2499
2499
|
checked: g,
|
|
2500
|
-
defaultChecked:
|
|
2500
|
+
defaultChecked: m,
|
|
2501
2501
|
...p
|
|
2502
2502
|
}) => {
|
|
2503
2503
|
const f = k((v) => v.addCommand), d = k((v) => v.setDataSet), l = y(
|
|
2504
2504
|
() => I(t, i),
|
|
2505
2505
|
[t, i]
|
|
2506
|
-
),
|
|
2506
|
+
), b = k(
|
|
2507
2507
|
(v) => {
|
|
2508
2508
|
var x;
|
|
2509
2509
|
return t && e ? ((x = v.propsStore[`${t}_props`]) == null ? void 0 : x[e]) ?? null : null;
|
|
@@ -2517,10 +2517,10 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2517
2517
|
sessionId: t,
|
|
2518
2518
|
id: e,
|
|
2519
2519
|
develop: r
|
|
2520
|
-
}), C = y(() => u !== void 0 ? !!u : (
|
|
2520
|
+
}), C = y(() => u !== void 0 ? !!u : (b == null ? void 0 : b.checked) !== void 0 ? b.checked : g ?? m, [u, b == null ? void 0 : b.checked, g, m]), S = j(
|
|
2521
2521
|
(v) => {
|
|
2522
|
-
if (
|
|
2523
|
-
|
|
2522
|
+
if (h) {
|
|
2523
|
+
h(v);
|
|
2524
2524
|
return;
|
|
2525
2525
|
}
|
|
2526
2526
|
if (l && n && d(l, n, v), c && T(v), s && t) {
|
|
@@ -2533,7 +2533,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2533
2533
|
}
|
|
2534
2534
|
},
|
|
2535
2535
|
[
|
|
2536
|
-
|
|
2536
|
+
h,
|
|
2537
2537
|
l,
|
|
2538
2538
|
n,
|
|
2539
2539
|
d,
|
|
@@ -2554,7 +2554,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2554
2554
|
...p,
|
|
2555
2555
|
disabled: r ? !1 : p.disabled,
|
|
2556
2556
|
checked: C,
|
|
2557
|
-
onChange:
|
|
2557
|
+
onChange: S
|
|
2558
2558
|
}
|
|
2559
2559
|
),
|
|
2560
2560
|
D && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
@@ -2569,22 +2569,22 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2569
2569
|
valueFormat: o = "YYYY-MM-DD",
|
|
2570
2570
|
rules: c,
|
|
2571
2571
|
validateOnBlur: s,
|
|
2572
|
-
validateOnChange:
|
|
2572
|
+
validateOnChange: h,
|
|
2573
2573
|
onChange: g,
|
|
2574
|
-
value:
|
|
2574
|
+
value: m,
|
|
2575
2575
|
defaultValue: p,
|
|
2576
2576
|
...f
|
|
2577
2577
|
}) => {
|
|
2578
|
-
const d = k((
|
|
2578
|
+
const d = k((O) => O.addCommand), l = k((O) => O.setDataSet), b = y(
|
|
2579
2579
|
() => I(t, i),
|
|
2580
2580
|
[t, i]
|
|
2581
2581
|
), u = k(
|
|
2582
|
-
(
|
|
2582
|
+
(O) => {
|
|
2583
2583
|
var B;
|
|
2584
|
-
return t && e ? ((B =
|
|
2584
|
+
return t && e ? ((B = O.propsStore[`${t}_props`]) == null ? void 0 : B[e]) ?? null : null;
|
|
2585
2585
|
}
|
|
2586
2586
|
), T = k(
|
|
2587
|
-
(
|
|
2587
|
+
(O) => b && n ? O.getDataSet(b, n) : void 0
|
|
2588
2588
|
), { validate: D, help: C } = Rt({
|
|
2589
2589
|
rules: c,
|
|
2590
2590
|
dataSet: i,
|
|
@@ -2592,26 +2592,26 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2592
2592
|
sessionId: t,
|
|
2593
2593
|
id: e,
|
|
2594
2594
|
develop: r
|
|
2595
|
-
}),
|
|
2596
|
-
if (!
|
|
2597
|
-
if (Ht.isDayjs(
|
|
2598
|
-
if (typeof
|
|
2599
|
-
const B = Ht(
|
|
2595
|
+
}), S = j((O) => {
|
|
2596
|
+
if (!O) return null;
|
|
2597
|
+
if (Ht.isDayjs(O)) return O;
|
|
2598
|
+
if (typeof O == "string") {
|
|
2599
|
+
const B = Ht(O, o);
|
|
2600
2600
|
return B.isValid() ? B : null;
|
|
2601
2601
|
}
|
|
2602
2602
|
return null;
|
|
2603
2603
|
}, [o]), A = y(() => {
|
|
2604
|
-
const
|
|
2605
|
-
return
|
|
2606
|
-
}, [T, u == null ? void 0 : u.value,
|
|
2607
|
-
(
|
|
2604
|
+
const O = T ?? (u == null ? void 0 : u.value) ?? m ?? p;
|
|
2605
|
+
return S(O);
|
|
2606
|
+
}, [T, u == null ? void 0 : u.value, m, p, S]), v = j(
|
|
2607
|
+
(O, B) => {
|
|
2608
2608
|
if (g) {
|
|
2609
|
-
g(
|
|
2609
|
+
g(O, B);
|
|
2610
2610
|
return;
|
|
2611
2611
|
}
|
|
2612
|
-
const
|
|
2613
|
-
if (
|
|
2614
|
-
const { actionName: $, arg: R } = yt(a,
|
|
2612
|
+
const E = Array.isArray(B) ? B[0] : B;
|
|
2613
|
+
if (b && n && l(b, n, E), h && D(E), a && t) {
|
|
2614
|
+
const { actionName: $, arg: R } = yt(a, E, {
|
|
2615
2615
|
id: e,
|
|
2616
2616
|
dataSet: i,
|
|
2617
2617
|
dataSetField: n
|
|
@@ -2619,18 +2619,18 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2619
2619
|
d(t, Q($, R));
|
|
2620
2620
|
}
|
|
2621
2621
|
},
|
|
2622
|
-
[g,
|
|
2622
|
+
[g, b, n, l, h, D, a, t, e, d]
|
|
2623
2623
|
);
|
|
2624
2624
|
Ot(() => {
|
|
2625
|
-
if (p && A === null &&
|
|
2626
|
-
const
|
|
2627
|
-
l(
|
|
2625
|
+
if (p && A === null && b && n) {
|
|
2626
|
+
const O = Ht(p).format(o);
|
|
2627
|
+
l(b, n, O);
|
|
2628
2628
|
}
|
|
2629
|
-
}, [p, A,
|
|
2629
|
+
}, [p, A, b, n, l, o]);
|
|
2630
2630
|
const x = j(() => {
|
|
2631
2631
|
if (s) {
|
|
2632
|
-
const
|
|
2633
|
-
D(
|
|
2632
|
+
const O = A ? A.format(o) : null;
|
|
2633
|
+
D(O);
|
|
2634
2634
|
}
|
|
2635
2635
|
}, [s, D, A, o]), N = y(
|
|
2636
2636
|
() => Gt(f, u ?? void 0),
|
|
@@ -2660,13 +2660,13 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2660
2660
|
valueFormat: o = "HH:mm:ss",
|
|
2661
2661
|
onChange: c,
|
|
2662
2662
|
value: s,
|
|
2663
|
-
defaultValue:
|
|
2663
|
+
defaultValue: h,
|
|
2664
2664
|
rules: g,
|
|
2665
|
-
validateOnChange:
|
|
2665
|
+
validateOnChange: m,
|
|
2666
2666
|
validateOnBlur: p,
|
|
2667
2667
|
...f
|
|
2668
2668
|
}) => {
|
|
2669
|
-
const d = k((
|
|
2669
|
+
const d = k((O) => O.addCommand), l = k((O) => O.getDataSet), b = k((O) => O.setDataSet), u = y(
|
|
2670
2670
|
() => I(t, i),
|
|
2671
2671
|
[t, i]
|
|
2672
2672
|
), T = y(() => {
|
|
@@ -2678,25 +2678,25 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2678
2678
|
sessionId: t,
|
|
2679
2679
|
id: e,
|
|
2680
2680
|
develop: r
|
|
2681
|
-
}),
|
|
2682
|
-
if (!
|
|
2683
|
-
if (Ht.isDayjs(
|
|
2684
|
-
if (typeof
|
|
2685
|
-
const B = Ht(
|
|
2681
|
+
}), S = j((O) => {
|
|
2682
|
+
if (!O) return null;
|
|
2683
|
+
if (Ht.isDayjs(O)) return O;
|
|
2684
|
+
if (typeof O == "string") {
|
|
2685
|
+
const B = Ht(O, o);
|
|
2686
2686
|
return B.isValid() ? B : null;
|
|
2687
2687
|
}
|
|
2688
2688
|
return null;
|
|
2689
|
-
}, [o]), A = y(() =>
|
|
2689
|
+
}, [o]), A = y(() => S(T ?? s ?? h), [T, s, h, S]), v = j((O, B) => {
|
|
2690
2690
|
if (c) {
|
|
2691
|
-
c(
|
|
2691
|
+
c(O, B);
|
|
2692
2692
|
return;
|
|
2693
2693
|
}
|
|
2694
|
-
const
|
|
2695
|
-
if (u && n &&
|
|
2696
|
-
const { actionName: $, arg: R } = yt(a,
|
|
2694
|
+
const E = B || "";
|
|
2695
|
+
if (u && n && b(u, n, E), m && D(E), a && t) {
|
|
2696
|
+
const { actionName: $, arg: R } = yt(a, E, { id: e, dataSet: i, dataSetField: n });
|
|
2697
2697
|
d(t, Q($, R));
|
|
2698
2698
|
}
|
|
2699
|
-
}, [c, u, n,
|
|
2699
|
+
}, [c, u, n, b, m, D, a, t, e, d]), x = j(() => {
|
|
2700
2700
|
p && D(A ? A.format(o) : "");
|
|
2701
2701
|
}, [p, D, A, o]), N = C ? "error" : void 0;
|
|
2702
2702
|
return /* @__PURE__ */ at(he, { children: [
|
|
@@ -2725,22 +2725,22 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2725
2725
|
valueFormat: o = "YYYY-MM-DD",
|
|
2726
2726
|
rules: c,
|
|
2727
2727
|
validateOnBlur: s,
|
|
2728
|
-
validateOnChange:
|
|
2728
|
+
validateOnChange: h,
|
|
2729
2729
|
onChange: g,
|
|
2730
|
-
value:
|
|
2730
|
+
value: m,
|
|
2731
2731
|
defaultValue: p,
|
|
2732
2732
|
...f
|
|
2733
2733
|
}) => {
|
|
2734
|
-
const d = k((
|
|
2734
|
+
const d = k((O) => O.addCommand), l = k((O) => O.setDataSet), b = y(
|
|
2735
2735
|
() => I(t, i),
|
|
2736
2736
|
[t, i]
|
|
2737
2737
|
), u = k(
|
|
2738
|
-
(
|
|
2738
|
+
(O) => {
|
|
2739
2739
|
var B;
|
|
2740
|
-
return t && e ? ((B =
|
|
2740
|
+
return t && e ? ((B = O.propsStore[`${t}_props`]) == null ? void 0 : B[e]) ?? null : null;
|
|
2741
2741
|
}
|
|
2742
2742
|
), T = k(
|
|
2743
|
-
(
|
|
2743
|
+
(O) => b && n ? O.getDataSet(b, n) : void 0
|
|
2744
2744
|
), { validate: D, help: C } = Rt({
|
|
2745
2745
|
rules: c,
|
|
2746
2746
|
dataSet: i,
|
|
@@ -2748,35 +2748,35 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2748
2748
|
sessionId: t,
|
|
2749
2749
|
id: e,
|
|
2750
2750
|
develop: r
|
|
2751
|
-
}),
|
|
2752
|
-
if (!
|
|
2753
|
-
const [B,
|
|
2751
|
+
}), S = j((O) => {
|
|
2752
|
+
if (!O || !Array.isArray(O) || O.length !== 2) return null;
|
|
2753
|
+
const [B, E] = O, $ = Ht.isDayjs(B) ? B : Ht(B, o), R = Ht.isDayjs(E) ? E : Ht(E, o);
|
|
2754
2754
|
return $.isValid() && R.isValid() ? [$, R] : null;
|
|
2755
2755
|
}, [o]), A = y(() => {
|
|
2756
|
-
const
|
|
2757
|
-
return
|
|
2758
|
-
}, [T, u == null ? void 0 : u.value,
|
|
2756
|
+
const O = T ?? (u == null ? void 0 : u.value) ?? m ?? p;
|
|
2757
|
+
return S(O);
|
|
2758
|
+
}, [T, u == null ? void 0 : u.value, m, p, S]), v = y(
|
|
2759
2759
|
() => Gt(f, u ?? void 0),
|
|
2760
2760
|
[f, u]
|
|
2761
2761
|
), x = j(
|
|
2762
|
-
(
|
|
2762
|
+
(O, B) => {
|
|
2763
2763
|
if (g) {
|
|
2764
|
-
g(
|
|
2764
|
+
g(O, B);
|
|
2765
2765
|
return;
|
|
2766
2766
|
}
|
|
2767
|
-
if (
|
|
2768
|
-
const { actionName:
|
|
2767
|
+
if (b && n && l(b, n, B), h && D(B), a && t) {
|
|
2768
|
+
const { actionName: E, arg: $ } = yt(a, B, {
|
|
2769
2769
|
id: e,
|
|
2770
2770
|
dataSet: i,
|
|
2771
2771
|
dataSetField: n
|
|
2772
2772
|
});
|
|
2773
|
-
d(t, Q(
|
|
2773
|
+
d(t, Q(E, $));
|
|
2774
2774
|
}
|
|
2775
2775
|
},
|
|
2776
|
-
[g,
|
|
2776
|
+
[g, b, n, l, h, D, a, t, e, d]
|
|
2777
2777
|
), N = j(() => {
|
|
2778
|
-
var
|
|
2779
|
-
s && D(A ? [(
|
|
2778
|
+
var O, B;
|
|
2779
|
+
s && D(A ? [(O = A[0]) == null ? void 0 : O.format(o), (B = A[1]) == null ? void 0 : B.format(o)] : null);
|
|
2780
2780
|
}, [s, D, A, o]);
|
|
2781
2781
|
return /* @__PURE__ */ at("div", { onBlur: N, children: [
|
|
2782
2782
|
/* @__PURE__ */ w(
|
|
@@ -2802,19 +2802,19 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2802
2802
|
optionsCfg: o,
|
|
2803
2803
|
changeAction: c,
|
|
2804
2804
|
buttonStyle: s,
|
|
2805
|
-
optionType:
|
|
2805
|
+
optionType: h = "default",
|
|
2806
2806
|
rules: g,
|
|
2807
|
-
validateOnBlur:
|
|
2807
|
+
validateOnBlur: m,
|
|
2808
2808
|
validateOnChange: p,
|
|
2809
2809
|
onChange: f,
|
|
2810
2810
|
value: d,
|
|
2811
2811
|
defaultValue: l,
|
|
2812
|
-
dictCode:
|
|
2812
|
+
dictCode: b,
|
|
2813
2813
|
direction: u,
|
|
2814
2814
|
remoteUrl: T,
|
|
2815
2815
|
...D
|
|
2816
2816
|
}) => {
|
|
2817
|
-
const C = k((L) => L.addCommand),
|
|
2817
|
+
const C = k((L) => L.addCommand), S = k((L) => L.setDataSet), A = y(
|
|
2818
2818
|
() => I(t, i),
|
|
2819
2819
|
[t, i]
|
|
2820
2820
|
), v = k(
|
|
@@ -2824,21 +2824,21 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2824
2824
|
}
|
|
2825
2825
|
), x = k(
|
|
2826
2826
|
(L) => A && n ? L.getDataSet(A, n) : void 0
|
|
2827
|
-
), { validate: N, help:
|
|
2827
|
+
), { validate: N, help: O } = Rt({
|
|
2828
2828
|
rules: g,
|
|
2829
2829
|
dataSet: i,
|
|
2830
2830
|
dataSetField: n,
|
|
2831
2831
|
sessionId: t,
|
|
2832
2832
|
id: e,
|
|
2833
2833
|
develop: r
|
|
2834
|
-
}), B = y(() => x !== void 0 ? x : (v == null ? void 0 : v.value) !== void 0 ? v.value : d ?? l, [x, v == null ? void 0 : v.value, d, l]), { options:
|
|
2834
|
+
}), B = y(() => x !== void 0 ? x : (v == null ? void 0 : v.value) !== void 0 ? v.value : d ?? l, [x, v == null ? void 0 : v.value, d, l]), { options: E } = pe(b), { options: $ } = nr(
|
|
2835
2835
|
o == null ? void 0 : o.url,
|
|
2836
2836
|
{
|
|
2837
2837
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
2838
2838
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
2839
2839
|
immediate: !!(o != null && o.url)
|
|
2840
2840
|
}
|
|
2841
|
-
), R = y(() => v != null && v.options ? v.options : o != null && o.url && $.length > 0 ? $ :
|
|
2841
|
+
), R = y(() => v != null && v.options ? v.options : o != null && o.url && $.length > 0 ? $ : b && E.length > 0 ? E : a, [v == null ? void 0 : v.options, o == null ? void 0 : o.url, $, b, E, a]), z = y(() => {
|
|
2842
2842
|
if (R.length === 0) return B;
|
|
2843
2843
|
const L = re(R, B);
|
|
2844
2844
|
return (L == null ? void 0 : L.value) ?? B;
|
|
@@ -2852,7 +2852,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2852
2852
|
f(G);
|
|
2853
2853
|
return;
|
|
2854
2854
|
}
|
|
2855
|
-
if (A && n &&
|
|
2855
|
+
if (A && n && S(A, n, G), p && N(G), c && t) {
|
|
2856
2856
|
const { actionName: _, arg: M } = yt(c, G, {
|
|
2857
2857
|
id: e,
|
|
2858
2858
|
dataSet: i,
|
|
@@ -2865,7 +2865,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2865
2865
|
f,
|
|
2866
2866
|
A,
|
|
2867
2867
|
n,
|
|
2868
|
-
|
|
2868
|
+
S,
|
|
2869
2869
|
p,
|
|
2870
2870
|
N,
|
|
2871
2871
|
c,
|
|
@@ -2874,8 +2874,8 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2874
2874
|
C
|
|
2875
2875
|
]
|
|
2876
2876
|
), W = j(() => {
|
|
2877
|
-
|
|
2878
|
-
}, [
|
|
2877
|
+
m && N(z);
|
|
2878
|
+
}, [m, N, z]);
|
|
2879
2879
|
return /* @__PURE__ */ at("div", { onBlur: W, children: [
|
|
2880
2880
|
/* @__PURE__ */ w(
|
|
2881
2881
|
Re.Group,
|
|
@@ -2885,8 +2885,8 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2885
2885
|
value: z,
|
|
2886
2886
|
onChange: H,
|
|
2887
2887
|
buttonStyle: (v == null ? void 0 : v.buttonStyle) ?? s,
|
|
2888
|
-
optionType: (v == null ? void 0 : v.optionType) ??
|
|
2889
|
-
children:
|
|
2888
|
+
optionType: (v == null ? void 0 : v.optionType) ?? h,
|
|
2889
|
+
children: h === "button" ? R.map((L) => /* @__PURE__ */ w(Re.Button, { value: L.value, disabled: L.disabled, children: L.label }, L.value)) : /* @__PURE__ */ w(
|
|
2890
2890
|
Ut,
|
|
2891
2891
|
{
|
|
2892
2892
|
orientation: (v == null ? void 0 : v.direction) ?? u ?? "horizontal",
|
|
@@ -2896,7 +2896,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2896
2896
|
)
|
|
2897
2897
|
}
|
|
2898
2898
|
),
|
|
2899
|
-
|
|
2899
|
+
O && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
2900
2900
|
] });
|
|
2901
2901
|
}, dc = ({
|
|
2902
2902
|
id: e,
|
|
@@ -2908,20 +2908,20 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2908
2908
|
optionsCfg: o,
|
|
2909
2909
|
multiple: c = !1,
|
|
2910
2910
|
changeAction: s,
|
|
2911
|
-
rules:
|
|
2911
|
+
rules: h,
|
|
2912
2912
|
validateOnBlur: g,
|
|
2913
|
-
validateOnChange:
|
|
2913
|
+
validateOnChange: m,
|
|
2914
2914
|
onChange: p,
|
|
2915
2915
|
onChangeMultiple: f,
|
|
2916
2916
|
checked: d,
|
|
2917
2917
|
values: l,
|
|
2918
|
-
defaultChecked:
|
|
2918
|
+
defaultChecked: b,
|
|
2919
2919
|
children: u,
|
|
2920
2920
|
dictCode: T,
|
|
2921
2921
|
direction: D = "horizontal",
|
|
2922
2922
|
// 解构自定义属性防止传递到 DOM
|
|
2923
2923
|
remoteUrl: C,
|
|
2924
|
-
...
|
|
2924
|
+
...S
|
|
2925
2925
|
}) => {
|
|
2926
2926
|
const A = k((M) => M.addCommand), v = k((M) => M.setDataSet), x = y(
|
|
2927
2927
|
() => I(t, i),
|
|
@@ -2931,16 +2931,16 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2931
2931
|
var Y;
|
|
2932
2932
|
return t && e ? ((Y = M.propsStore[`${t}_props`]) == null ? void 0 : Y[e]) ?? null : null;
|
|
2933
2933
|
}
|
|
2934
|
-
),
|
|
2934
|
+
), O = k(
|
|
2935
2935
|
(M) => x && n ? M.getDataSet(x, n) : void 0
|
|
2936
|
-
), { validate: B, help:
|
|
2937
|
-
rules:
|
|
2936
|
+
), { validate: B, help: E } = Rt({
|
|
2937
|
+
rules: h,
|
|
2938
2938
|
dataSet: i,
|
|
2939
2939
|
dataSetField: n,
|
|
2940
2940
|
sessionId: t,
|
|
2941
2941
|
id: e,
|
|
2942
2942
|
develop: r
|
|
2943
|
-
}), { options: $ } =
|
|
2943
|
+
}), { options: $ } = pe(T), { options: R } = nr(
|
|
2944
2944
|
o == null ? void 0 : o.url,
|
|
2945
2945
|
{
|
|
2946
2946
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
@@ -2949,37 +2949,37 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2949
2949
|
}
|
|
2950
2950
|
), z = y(() => {
|
|
2951
2951
|
if (!c)
|
|
2952
|
-
return
|
|
2953
|
-
}, [c,
|
|
2952
|
+
return O !== void 0 ? !!O : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : d ?? b;
|
|
2953
|
+
}, [c, O, N == null ? void 0 : N.checked, d, b]), J = y(() => N != null && N.options ? N.options : o != null && o.url && R.length > 0 ? R : T && $.length > 0 ? $ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, R, T, $, a]), H = y(() => {
|
|
2954
2954
|
if (!c) return [];
|
|
2955
2955
|
let M = [];
|
|
2956
|
-
return Array.isArray(
|
|
2956
|
+
return Array.isArray(O) ? M = O : Array.isArray(N == null ? void 0 : N.values) ? M = N.values : M = l || [], J.length === 0 ? M : M.map((Y) => {
|
|
2957
2957
|
var V;
|
|
2958
2958
|
return ((V = re(J, Y)) == null ? void 0 : V.value) ?? Y;
|
|
2959
2959
|
});
|
|
2960
|
-
}, [c,
|
|
2961
|
-
() => Gt(
|
|
2962
|
-
[
|
|
2960
|
+
}, [c, O, N == null ? void 0 : N.values, l, J]), W = y(
|
|
2961
|
+
() => Gt(S, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
2962
|
+
[S, N]
|
|
2963
2963
|
), L = j((M) => {
|
|
2964
2964
|
const Y = M.target.checked;
|
|
2965
2965
|
if (p) {
|
|
2966
2966
|
p(Y);
|
|
2967
2967
|
return;
|
|
2968
2968
|
}
|
|
2969
|
-
if (x && n && v(x, n, Y),
|
|
2969
|
+
if (x && n && v(x, n, Y), m && B(Y), s && t) {
|
|
2970
2970
|
const { actionName: V, arg: U } = yt(s, Y, { id: e, dataSet: i, dataSetField: n });
|
|
2971
2971
|
A(t, Q(V, U));
|
|
2972
2972
|
}
|
|
2973
|
-
}, [p, x, n, v,
|
|
2973
|
+
}, [p, x, n, v, m, B, s, t, e, A]), G = j((M) => {
|
|
2974
2974
|
if (f) {
|
|
2975
2975
|
f(M);
|
|
2976
2976
|
return;
|
|
2977
2977
|
}
|
|
2978
|
-
if (x && n && v(x, n, M),
|
|
2978
|
+
if (x && n && v(x, n, M), m && B(M), s && t) {
|
|
2979
2979
|
const { actionName: Y, arg: V } = yt(s, M, { id: e, dataSet: i, dataSetField: n });
|
|
2980
2980
|
A(t, Q(Y, V));
|
|
2981
2981
|
}
|
|
2982
|
-
}, [f, x, n, v,
|
|
2982
|
+
}, [f, x, n, v, m, B, s, t, e, A]), _ = j(() => {
|
|
2983
2983
|
g && B(c ? H : z);
|
|
2984
2984
|
}, [g, B, c, H, z]);
|
|
2985
2985
|
return c && J.length > 0 ? /* @__PURE__ */ at("div", { onBlur: _, children: [
|
|
@@ -2991,7 +2991,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
2991
2991
|
children: J.map((M) => /* @__PURE__ */ w(ae, { value: M.value, disabled: M.disabled, children: M.label }, M.value))
|
|
2992
2992
|
}
|
|
2993
2993
|
) }),
|
|
2994
|
-
|
|
2994
|
+
E && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
|
|
2995
2995
|
] }) : /* @__PURE__ */ at("div", { onBlur: _, children: [
|
|
2996
2996
|
/* @__PURE__ */ w(
|
|
2997
2997
|
ae,
|
|
@@ -3003,7 +3003,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3003
3003
|
children: u
|
|
3004
3004
|
}
|
|
3005
3005
|
),
|
|
3006
|
-
|
|
3006
|
+
E && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E })
|
|
3007
3007
|
] });
|
|
3008
3008
|
}, mc = ({
|
|
3009
3009
|
id: e,
|
|
@@ -3015,15 +3015,15 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3015
3015
|
rules: o,
|
|
3016
3016
|
validateOnBlur: c,
|
|
3017
3017
|
validateOnChange: s,
|
|
3018
|
-
onChange:
|
|
3018
|
+
onChange: h,
|
|
3019
3019
|
value: g,
|
|
3020
|
-
defaultValue:
|
|
3020
|
+
defaultValue: m,
|
|
3021
3021
|
...p
|
|
3022
3022
|
}) => {
|
|
3023
3023
|
const f = k((x) => x.addCommand), d = k((x) => x.setDataSet), l = y(
|
|
3024
3024
|
() => I(t, i),
|
|
3025
3025
|
[t, i]
|
|
3026
|
-
),
|
|
3026
|
+
), b = k(
|
|
3027
3027
|
(x) => {
|
|
3028
3028
|
var N;
|
|
3029
3029
|
return t && e ? ((N = x.propsStore[`${t}_props`]) == null ? void 0 : N[e]) ?? null : null;
|
|
@@ -3037,27 +3037,27 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3037
3037
|
sessionId: t,
|
|
3038
3038
|
id: e,
|
|
3039
3039
|
develop: r
|
|
3040
|
-
}), C = y(() => u !== void 0 ? u : (
|
|
3040
|
+
}), C = y(() => u !== void 0 ? u : (b == null ? void 0 : b.value) !== void 0 ? b.value : g ?? m, [u, b == null ? void 0 : b.value, g, m]), S = j(
|
|
3041
3041
|
(x) => {
|
|
3042
|
-
if (
|
|
3043
|
-
|
|
3042
|
+
if (h) {
|
|
3043
|
+
h(x);
|
|
3044
3044
|
return;
|
|
3045
3045
|
}
|
|
3046
3046
|
if (l && n && d(l, n, x), s && T(x), a && t) {
|
|
3047
|
-
const { actionName: N, arg:
|
|
3047
|
+
const { actionName: N, arg: O } = yt(a, x, {
|
|
3048
3048
|
id: e,
|
|
3049
3049
|
dataSet: i,
|
|
3050
3050
|
dataSetField: n
|
|
3051
3051
|
});
|
|
3052
|
-
f(t, Q(N,
|
|
3052
|
+
f(t, Q(N, O));
|
|
3053
3053
|
}
|
|
3054
3054
|
},
|
|
3055
|
-
[
|
|
3055
|
+
[h, l, n, d, s, T, a, t, e, f]
|
|
3056
3056
|
), A = j(() => {
|
|
3057
3057
|
c && T(C);
|
|
3058
3058
|
}, [c, T, C]), v = y(
|
|
3059
|
-
() => Gt(p,
|
|
3060
|
-
[p,
|
|
3059
|
+
() => Gt(p, b ?? void 0),
|
|
3060
|
+
[p, b]
|
|
3061
3061
|
);
|
|
3062
3062
|
return /* @__PURE__ */ at("div", { onBlur: A, children: [
|
|
3063
3063
|
/* @__PURE__ */ w(
|
|
@@ -3066,7 +3066,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3066
3066
|
...v,
|
|
3067
3067
|
disabled: r ? !1 : v.disabled,
|
|
3068
3068
|
value: C,
|
|
3069
|
-
onChange:
|
|
3069
|
+
onChange: S
|
|
3070
3070
|
}
|
|
3071
3071
|
),
|
|
3072
3072
|
D && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
@@ -3081,14 +3081,14 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3081
3081
|
onChange: o,
|
|
3082
3082
|
value: c,
|
|
3083
3083
|
defaultValue: s,
|
|
3084
|
-
...
|
|
3084
|
+
...h
|
|
3085
3085
|
}) => {
|
|
3086
|
-
const g = k((u) => u.addCommand),
|
|
3086
|
+
const g = k((u) => u.addCommand), m = k((u) => u.getDataSet), p = k((u) => u.setDataSet), f = y(
|
|
3087
3087
|
() => I(t, i),
|
|
3088
3088
|
[t, i]
|
|
3089
3089
|
), d = y(() => {
|
|
3090
|
-
if (f && n) return
|
|
3091
|
-
}, [f, n,
|
|
3090
|
+
if (f && n) return m(f, n);
|
|
3091
|
+
}, [f, n, m]), l = y(() => d ?? c ?? s, [d, c, s]), b = j((u) => {
|
|
3092
3092
|
if (o) {
|
|
3093
3093
|
o(u);
|
|
3094
3094
|
return;
|
|
@@ -3098,16 +3098,16 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3098
3098
|
g(t, Q(T, D));
|
|
3099
3099
|
}
|
|
3100
3100
|
}, [o, f, n, p, a, t, e, g]);
|
|
3101
|
-
return /* @__PURE__ */ w(ln, { ...
|
|
3101
|
+
return /* @__PURE__ */ w(ln, { ...h, disabled: r ? !1 : h.disabled, value: l, onChange: b });
|
|
3102
3102
|
}, Na = 200, Pr = (e, t, r = 1) => {
|
|
3103
3103
|
if (!Array.isArray(e)) return [];
|
|
3104
3104
|
const { codeKey: i, labelKey: n, childrenKey: a, maxLevel: o } = t;
|
|
3105
3105
|
return e.map((c) => {
|
|
3106
|
-
const s = r < o && Array.isArray(c == null ? void 0 : c[a]) ? Pr(c[a], t, r + 1) : void 0,
|
|
3106
|
+
const s = r < o && Array.isArray(c == null ? void 0 : c[a]) ? Pr(c[a], t, r + 1) : void 0, h = {
|
|
3107
3107
|
value: String(c == null ? void 0 : c[i]),
|
|
3108
3108
|
label: c == null ? void 0 : c[n]
|
|
3109
3109
|
};
|
|
3110
|
-
return s && s.length && (
|
|
3110
|
+
return s && s.length && (h.children = s), h;
|
|
3111
3111
|
});
|
|
3112
3112
|
}, pr = (e) => !e || typeof e != "string" ? [] : e.includes(",") ? e.split(",").map((t) => t.trim()).filter((t) => t) : [e], ka = (e, t) => {
|
|
3113
3113
|
const r = (i, n, a = []) => {
|
|
@@ -3116,8 +3116,8 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3116
3116
|
if (c === n)
|
|
3117
3117
|
return s;
|
|
3118
3118
|
if (o.children && Array.isArray(o.children)) {
|
|
3119
|
-
const
|
|
3120
|
-
if (
|
|
3119
|
+
const h = r(o.children, n, s);
|
|
3120
|
+
if (h) return h;
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
3123
|
return null;
|
|
@@ -3133,30 +3133,30 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3133
3133
|
rules: o,
|
|
3134
3134
|
validateOnBlur: c,
|
|
3135
3135
|
validateOnChange: s,
|
|
3136
|
-
changeAction:
|
|
3136
|
+
changeAction: h,
|
|
3137
3137
|
onChange: g,
|
|
3138
|
-
options:
|
|
3138
|
+
options: m,
|
|
3139
3139
|
defaultValue: p,
|
|
3140
3140
|
value: f,
|
|
3141
3141
|
remoteUrl: d,
|
|
3142
3142
|
...l
|
|
3143
3143
|
}) => {
|
|
3144
|
-
const
|
|
3144
|
+
const b = k((H) => H.addCommand), u = k((H) => H.setDataSet), T = Vt(null), [D, C] = ht([]), [S, A] = ht(!1), v = y(
|
|
3145
3145
|
() => I(t, i),
|
|
3146
3146
|
[t, i]
|
|
3147
3147
|
), x = k(
|
|
3148
3148
|
(H) => v && n ? H.getDataSet(v, n) : void 0
|
|
3149
|
-
), { validate: N, help:
|
|
3149
|
+
), { validate: N, help: O, validateStatus: B } = Rt({
|
|
3150
3150
|
rules: o,
|
|
3151
3151
|
dataSet: i,
|
|
3152
3152
|
dataSetField: n,
|
|
3153
3153
|
sessionId: t,
|
|
3154
3154
|
id: e,
|
|
3155
3155
|
develop: r
|
|
3156
|
-
}),
|
|
3156
|
+
}), E = y(() => (a == null ? void 0 : a.url) && D.length > 0, [a == null ? void 0 : a.url, D.length]), $ = y(() => {
|
|
3157
3157
|
let H = x ?? f ?? p ?? [];
|
|
3158
|
-
return typeof H == "string" ?
|
|
3159
|
-
}, [x, f, p,
|
|
3158
|
+
return typeof H == "string" ? E ? pr(H).map((L) => ka(L, D)).filter((L) => Array.isArray(L) && L.length > 0) : [H] : vr(H) && E ? H.map((L) => pr(L)).filter((L) => Array.isArray(L) && L.length > 0) : br(H) && E ? H.filter((W) => Array.isArray(W) && W.length > 0) : H;
|
|
3159
|
+
}, [x, f, p, E, D]), R = y(() => a != null && a.url && D.length > 0 ? D : m || [], [a == null ? void 0 : a.url, D, m]);
|
|
3160
3160
|
Ot(() => {
|
|
3161
3161
|
(async () => {
|
|
3162
3162
|
if (a != null && a.url) {
|
|
@@ -3184,15 +3184,15 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3184
3184
|
return;
|
|
3185
3185
|
}
|
|
3186
3186
|
let L = H;
|
|
3187
|
-
if (vr(H) &&
|
|
3187
|
+
if (vr(H) && E ? L = String(H[H.length - 1] || "") : br(H) && E && (L = H.map((G) => G.join(","))), v && n && u(v, n, L), s && (T.current && clearTimeout(T.current), T.current = setTimeout(() => {
|
|
3188
3188
|
T.current = null, N(H);
|
|
3189
|
-
}, Na)),
|
|
3190
|
-
const { actionName: G, arg: _ } = yt(
|
|
3189
|
+
}, Na)), h && t) {
|
|
3190
|
+
const { actionName: G, arg: _ } = yt(h, H, {
|
|
3191
3191
|
id: e,
|
|
3192
3192
|
dataSet: i,
|
|
3193
3193
|
dataSetField: n
|
|
3194
3194
|
});
|
|
3195
|
-
|
|
3195
|
+
b(t, Q(G, _));
|
|
3196
3196
|
}
|
|
3197
3197
|
},
|
|
3198
3198
|
[
|
|
@@ -3202,11 +3202,11 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3202
3202
|
u,
|
|
3203
3203
|
s,
|
|
3204
3204
|
N,
|
|
3205
|
-
|
|
3205
|
+
h,
|
|
3206
3206
|
t,
|
|
3207
3207
|
e,
|
|
3208
|
-
|
|
3209
|
-
|
|
3208
|
+
b,
|
|
3209
|
+
E
|
|
3210
3210
|
]
|
|
3211
3211
|
), J = j(() => {
|
|
3212
3212
|
c && N($);
|
|
@@ -3227,12 +3227,12 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3227
3227
|
options: R,
|
|
3228
3228
|
onChange: z,
|
|
3229
3229
|
onBlur: J,
|
|
3230
|
-
loading:
|
|
3230
|
+
loading: S,
|
|
3231
3231
|
status: B,
|
|
3232
3232
|
style: { width: "100%", ...l.style }
|
|
3233
3233
|
}
|
|
3234
3234
|
),
|
|
3235
|
-
|
|
3235
|
+
O && /* @__PURE__ */ w("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
3236
3236
|
] });
|
|
3237
3237
|
}, gc = ({
|
|
3238
3238
|
id: e,
|
|
@@ -3244,18 +3244,18 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3244
3244
|
onChange: o,
|
|
3245
3245
|
value: c,
|
|
3246
3246
|
defaultValue: s,
|
|
3247
|
-
treeData:
|
|
3247
|
+
treeData: h,
|
|
3248
3248
|
remoteUrl: g,
|
|
3249
|
-
selectAction:
|
|
3249
|
+
selectAction: m,
|
|
3250
3250
|
styles: p,
|
|
3251
3251
|
classNames: f,
|
|
3252
3252
|
token: d,
|
|
3253
3253
|
rules: l,
|
|
3254
|
-
validateOnChange:
|
|
3254
|
+
validateOnChange: b,
|
|
3255
3255
|
validateOnBlur: u,
|
|
3256
3256
|
...T
|
|
3257
3257
|
}) => {
|
|
3258
|
-
const D = k((W) => W.addCommand), C = k((W) => W.setDataSet),
|
|
3258
|
+
const D = k((W) => W.addCommand), C = k((W) => W.setDataSet), S = y(
|
|
3259
3259
|
() => I(t, i),
|
|
3260
3260
|
[t, i]
|
|
3261
3261
|
), A = k(
|
|
@@ -3264,7 +3264,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3264
3264
|
return t && e ? ((L = W.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
|
|
3265
3265
|
}
|
|
3266
3266
|
), v = k(
|
|
3267
|
-
(W) =>
|
|
3267
|
+
(W) => S && n ? W.getDataSet(S, n) : void 0
|
|
3268
3268
|
), { validate: x, help: N } = Rt({
|
|
3269
3269
|
rules: l,
|
|
3270
3270
|
dataSet: i,
|
|
@@ -3272,19 +3272,19 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3272
3272
|
sessionId: t,
|
|
3273
3273
|
id: e,
|
|
3274
3274
|
develop: r
|
|
3275
|
-
}),
|
|
3275
|
+
}), O = y(
|
|
3276
3276
|
() => v ?? (A == null ? void 0 : A.value) ?? c ?? s,
|
|
3277
3277
|
[v, A == null ? void 0 : A.value, c, s]
|
|
3278
3278
|
), B = y(
|
|
3279
3279
|
() => Gt(T, A ?? void 0),
|
|
3280
3280
|
[T, A]
|
|
3281
|
-
),
|
|
3281
|
+
), E = j(
|
|
3282
3282
|
(W, L, G) => {
|
|
3283
3283
|
if (o) {
|
|
3284
3284
|
o(W, L, G);
|
|
3285
3285
|
return;
|
|
3286
3286
|
}
|
|
3287
|
-
if (
|
|
3287
|
+
if (S && n && C(S, n, W), b && x(W), a && t) {
|
|
3288
3288
|
const { actionName: _, arg: M } = yt(a, W, {
|
|
3289
3289
|
id: e,
|
|
3290
3290
|
dataSet: i,
|
|
@@ -3293,10 +3293,10 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3293
3293
|
D(t, Q(_, M));
|
|
3294
3294
|
}
|
|
3295
3295
|
},
|
|
3296
|
-
[o,
|
|
3296
|
+
[o, S, n, C, b, x, a, t, e, D]
|
|
3297
3297
|
), $ = j(() => {
|
|
3298
|
-
u && x(
|
|
3299
|
-
}, [u, x,
|
|
3298
|
+
u && x(O);
|
|
3299
|
+
}, [u, x, O]), R = y(() => {
|
|
3300
3300
|
if (!d) return;
|
|
3301
3301
|
const W = {};
|
|
3302
3302
|
return Object.entries(d).forEach(([L, G]) => {
|
|
@@ -3316,9 +3316,9 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3316
3316
|
...B,
|
|
3317
3317
|
disabled: r ? !1 : B.disabled,
|
|
3318
3318
|
open: r ? !1 : void 0,
|
|
3319
|
-
treeData:
|
|
3320
|
-
value:
|
|
3321
|
-
onChange:
|
|
3319
|
+
treeData: h,
|
|
3320
|
+
value: O,
|
|
3321
|
+
onChange: E,
|
|
3322
3322
|
style: { width: "100%", ...B.style },
|
|
3323
3323
|
styles: p,
|
|
3324
3324
|
classNames: f,
|
|
@@ -3338,14 +3338,14 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3338
3338
|
buttonText: o = "上传文件",
|
|
3339
3339
|
rules: c,
|
|
3340
3340
|
validateOnBlur: s,
|
|
3341
|
-
validateOnChange:
|
|
3341
|
+
validateOnChange: h,
|
|
3342
3342
|
onChange: g,
|
|
3343
|
-
fileList:
|
|
3343
|
+
fileList: m,
|
|
3344
3344
|
children: p,
|
|
3345
3345
|
uploadUrl: f,
|
|
3346
3346
|
maxSize: d = 10,
|
|
3347
3347
|
action: l,
|
|
3348
|
-
...
|
|
3348
|
+
...b
|
|
3349
3349
|
}) => {
|
|
3350
3350
|
const u = k((K) => K.addCommand), T = k((K) => K.setDataSet), D = y(
|
|
3351
3351
|
() => I(t, i),
|
|
@@ -3355,7 +3355,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3355
3355
|
var q;
|
|
3356
3356
|
return t && e ? ((q = K.propsStore[`${t}_props`]) == null ? void 0 : q[e]) ?? null : null;
|
|
3357
3357
|
}
|
|
3358
|
-
),
|
|
3358
|
+
), S = k(
|
|
3359
3359
|
(K) => D && n ? K.getDataSet(D, n) : void 0
|
|
3360
3360
|
), { validate: A, help: v } = Rt({
|
|
3361
3361
|
rules: c,
|
|
@@ -3380,7 +3380,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3380
3380
|
response: { src: X }
|
|
3381
3381
|
};
|
|
3382
3382
|
});
|
|
3383
|
-
}, []),
|
|
3383
|
+
}, []), O = j((K) => {
|
|
3384
3384
|
const q = Pt().viewRes, rt = (X) => (X && q ? q(X) : X) || X;
|
|
3385
3385
|
return K.map((X) => {
|
|
3386
3386
|
var Et;
|
|
@@ -3391,17 +3391,17 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3391
3391
|
}
|
|
3392
3392
|
return st && typeof st == "string" && (St.url = st, St.thumbUrl = st), St;
|
|
3393
3393
|
});
|
|
3394
|
-
}, []), [B,
|
|
3395
|
-
const K =
|
|
3394
|
+
}, []), [B, E] = ht(null), $ = y(() => {
|
|
3395
|
+
const K = S ?? (C == null ? void 0 : C.fileList) ?? m;
|
|
3396
3396
|
if (K != null) {
|
|
3397
3397
|
if (typeof K == "string" && K) return N([K]);
|
|
3398
3398
|
if (Array.isArray(K))
|
|
3399
|
-
return K.length > 0 && typeof K[0] == "string" ? N(K) :
|
|
3399
|
+
return K.length > 0 && typeof K[0] == "string" ? N(K) : O(K);
|
|
3400
3400
|
}
|
|
3401
|
-
}, [
|
|
3402
|
-
() => Gt(
|
|
3403
|
-
[
|
|
3404
|
-
), J = j((K) => K.size / 1024 / 1024 < d ? !0 : (
|
|
3401
|
+
}, [S, C == null ? void 0 : C.fileList, m, N, O]), R = B ?? $, z = y(
|
|
3402
|
+
() => Gt(b, C ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3403
|
+
[b, C]
|
|
3404
|
+
), J = j((K) => K.size / 1024 / 1024 < d ? !0 : (Se.error(`文件大小不能超过 ${d}MB`), !1), [d]), H = j(async (K) => {
|
|
3405
3405
|
const { file: q, onSuccess: rt, onError: X, onProgress: nt } = K;
|
|
3406
3406
|
if (Pt().upload)
|
|
3407
3407
|
try {
|
|
@@ -3414,20 +3414,20 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3414
3414
|
});
|
|
3415
3415
|
nt == null || nt({ percent: 100 }), rt == null || rt(St, q);
|
|
3416
3416
|
} catch (St) {
|
|
3417
|
-
X == null || X(St),
|
|
3417
|
+
X == null || X(St), Se.error("上传失败");
|
|
3418
3418
|
}
|
|
3419
3419
|
else
|
|
3420
|
-
X == null || X(new Error("Upload handler not configured")),
|
|
3420
|
+
X == null || X(new Error("Upload handler not configured")), Se.warning("上传功能未配置");
|
|
3421
3421
|
}, [f]), W = j(
|
|
3422
3422
|
(K) => {
|
|
3423
3423
|
if (g) {
|
|
3424
3424
|
g(K);
|
|
3425
3425
|
return;
|
|
3426
3426
|
}
|
|
3427
|
-
const q = Array.isArray(K.fileList) ?
|
|
3428
|
-
D && n && (rt.length > 0 || !Array.isArray(q) || q.length === 0) ? (T(D, n, rt),
|
|
3427
|
+
const q = Array.isArray(K.fileList) ? O(K.fileList) : K.fileList, rt = Array.isArray(q) ? x(q) : [], X = Array.isArray(q) && q.some((st) => (st == null ? void 0 : st.status) === "uploading");
|
|
3428
|
+
D && n && (rt.length > 0 || !Array.isArray(q) || q.length === 0) ? (T(D, n, rt), E(null)) : X ? E(q) : q.length === 0 && E(null), h && A(q), a && t && u(t, Q(a, { file: K.file, fileList: q, src: rt }));
|
|
3429
3429
|
},
|
|
3430
|
-
[g, D, n, T,
|
|
3430
|
+
[g, D, n, T, h, A, a, t, u, O, x]
|
|
3431
3431
|
), L = j(() => {
|
|
3432
3432
|
s && A(R);
|
|
3433
3433
|
}, [s, A, R]), G = j((K) => {
|
|
@@ -3453,8 +3453,8 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3453
3453
|
const rt = R.filter((st) => _(st)), X = rt.map((st) => G(st)).filter(Boolean), nt = rt.findIndex((st) => (st.uid || st.url) === (K.uid || K.url));
|
|
3454
3454
|
Y({ url: q, name: K.name, urls: X, current: nt >= 0 ? nt : 0, open: !0 });
|
|
3455
3455
|
} else _(K) || window.open(q, "_blank");
|
|
3456
|
-
}, [G, _, R]), lt = !!Pt().upload && !l, ft = z, tt = ft.buttonText ?? o, mt = ft.listType ??
|
|
3457
|
-
(K) => et ? (
|
|
3456
|
+
}, [G, _, R]), lt = !!Pt().upload && !l, ft = z, tt = ft.buttonText ?? o, mt = ft.listType ?? b.listType, ot = ft.maxCount, ct = (R == null ? void 0 : R.length) ?? 0, et = typeof ot == "number" && ct >= ot, dt = j(
|
|
3457
|
+
(K) => et ? (Se.warning(`最多只能上传 ${ot} 个文件`), !1) : J(K),
|
|
3458
3458
|
[et, ot, J]
|
|
3459
3459
|
);
|
|
3460
3460
|
return /* @__PURE__ */ at("div", { onBlur: L, children: [
|
|
@@ -3520,24 +3520,24 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3520
3520
|
selectAction: o,
|
|
3521
3521
|
onChange: c,
|
|
3522
3522
|
onSelect: s,
|
|
3523
|
-
value:
|
|
3523
|
+
value: h,
|
|
3524
3524
|
defaultValue: g,
|
|
3525
|
-
options:
|
|
3525
|
+
options: m,
|
|
3526
3526
|
// 解构自定义属性,防止传递到 DOM
|
|
3527
3527
|
remoteUrl: p,
|
|
3528
3528
|
remoteOptions: f,
|
|
3529
3529
|
searchAction: d,
|
|
3530
3530
|
...l
|
|
3531
3531
|
}) => {
|
|
3532
|
-
const
|
|
3532
|
+
const b = k((R) => R.addCommand), u = k((R) => R.getDataSet), T = k((R) => R.setDataSet), D = y(
|
|
3533
3533
|
() => I(t, i),
|
|
3534
3534
|
[t, i]
|
|
3535
|
-
), [C,
|
|
3535
|
+
), [C, S] = ht(m || []), [, A] = ht(!1), v = Lt.useRef(void 0), { get: x } = Pi(), N = y(() => {
|
|
3536
3536
|
if (D && n) return u(D, n);
|
|
3537
|
-
}, [D, n, u]),
|
|
3537
|
+
}, [D, n, u]), O = y(() => N ?? h ?? g, [N, h, g]), B = j((R) => {
|
|
3538
3538
|
if (!(f != null && f.queryApi)) {
|
|
3539
|
-
|
|
3540
|
-
|
|
3539
|
+
m && S(
|
|
3540
|
+
m.filter(
|
|
3541
3541
|
(z) => {
|
|
3542
3542
|
var J, H;
|
|
3543
3543
|
return ((J = z.value) == null ? void 0 : J.toString().toLowerCase().includes(R.toLowerCase())) || ((H = z.label) == null ? void 0 : H.toString().toLowerCase().includes(R.toLowerCase()));
|
|
@@ -3562,34 +3562,34 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3562
3562
|
label: V[W] || V[H],
|
|
3563
3563
|
...V
|
|
3564
3564
|
}));
|
|
3565
|
-
|
|
3565
|
+
S(Y);
|
|
3566
3566
|
} catch (z) {
|
|
3567
|
-
console.error("Failed to fetch remote options:", z),
|
|
3567
|
+
console.error("Failed to fetch remote options:", z), S([]);
|
|
3568
3568
|
} finally {
|
|
3569
3569
|
A(!1);
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
3572
|
}, 500);
|
|
3573
|
-
}, [f,
|
|
3573
|
+
}, [f, m, x]);
|
|
3574
3574
|
Lt.useEffect(() => {
|
|
3575
|
-
!(f != null && f.queryApi) &&
|
|
3576
|
-
}, [
|
|
3577
|
-
const
|
|
3575
|
+
!(f != null && f.queryApi) && m && S(m);
|
|
3576
|
+
}, [m, f == null ? void 0 : f.queryApi]);
|
|
3577
|
+
const E = j((R) => {
|
|
3578
3578
|
if (c) {
|
|
3579
3579
|
c(R);
|
|
3580
3580
|
return;
|
|
3581
3581
|
}
|
|
3582
3582
|
if (D && n && T(D, n, R), a && t) {
|
|
3583
3583
|
const { actionName: z, arg: J } = yt(a, R, { id: e, dataSet: i, dataSetField: n });
|
|
3584
|
-
|
|
3584
|
+
b(t, Q(z, J));
|
|
3585
3585
|
}
|
|
3586
|
-
}, [c, D, n, T, a, t, e,
|
|
3586
|
+
}, [c, D, n, T, a, t, e, b]), $ = j((R, z) => {
|
|
3587
3587
|
if (s) {
|
|
3588
3588
|
s(R, z);
|
|
3589
3589
|
return;
|
|
3590
3590
|
}
|
|
3591
|
-
o && t &&
|
|
3592
|
-
}, [s, o, t,
|
|
3591
|
+
o && t && b(t, Q(o, { value: R, option: z }));
|
|
3592
|
+
}, [s, o, t, b]);
|
|
3593
3593
|
return /* @__PURE__ */ w(
|
|
3594
3594
|
dn,
|
|
3595
3595
|
{
|
|
@@ -3597,8 +3597,8 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3597
3597
|
disabled: r ? !1 : l.disabled,
|
|
3598
3598
|
open: r ? !1 : void 0,
|
|
3599
3599
|
options: C,
|
|
3600
|
-
value:
|
|
3601
|
-
onChange:
|
|
3600
|
+
value: O,
|
|
3601
|
+
onChange: E,
|
|
3602
3602
|
onSelect: $,
|
|
3603
3603
|
onSearch: B,
|
|
3604
3604
|
style: { width: "100%", ...l.style }
|
|
@@ -3614,33 +3614,33 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3614
3614
|
resetAction: o,
|
|
3615
3615
|
showSubmit: c = !0,
|
|
3616
3616
|
showReset: s = !0,
|
|
3617
|
-
submitText:
|
|
3617
|
+
submitText: h = "提交",
|
|
3618
3618
|
resetText: g = "重置",
|
|
3619
|
-
onFinish:
|
|
3619
|
+
onFinish: m,
|
|
3620
3620
|
onReset: p,
|
|
3621
3621
|
children: f,
|
|
3622
3622
|
...d
|
|
3623
3623
|
}) => {
|
|
3624
|
-
const [l] =
|
|
3624
|
+
const [l] = Te.useForm(), b = k((S) => S.addCommand), u = k((S) => S.setDataSet), T = y(
|
|
3625
3625
|
() => I(t, i),
|
|
3626
3626
|
[t, i]
|
|
3627
|
-
), D = (
|
|
3628
|
-
if (
|
|
3629
|
-
|
|
3627
|
+
), D = (S) => {
|
|
3628
|
+
if (m) {
|
|
3629
|
+
m(S);
|
|
3630
3630
|
return;
|
|
3631
3631
|
}
|
|
3632
|
-
T && n && u(T, n,
|
|
3632
|
+
T && n && u(T, n, S), a && t && b(t, Q(a, S));
|
|
3633
3633
|
}, C = () => {
|
|
3634
3634
|
if (l.resetFields(), p) {
|
|
3635
3635
|
p();
|
|
3636
3636
|
return;
|
|
3637
3637
|
}
|
|
3638
|
-
o && t &&
|
|
3638
|
+
o && t && b(t, Q(o, null));
|
|
3639
3639
|
};
|
|
3640
|
-
return /* @__PURE__ */ at(
|
|
3640
|
+
return /* @__PURE__ */ at(Te, { ...d, form: l, onFinish: D, children: [
|
|
3641
3641
|
f,
|
|
3642
|
-
(c || s) && /* @__PURE__ */ w(
|
|
3643
|
-
c && /* @__PURE__ */ w(Zt, { type: "primary", htmlType: "submit", children:
|
|
3642
|
+
(c || s) && /* @__PURE__ */ w(Te.Item, { children: /* @__PURE__ */ at(Ut, { children: [
|
|
3643
|
+
c && /* @__PURE__ */ w(Zt, { type: "primary", htmlType: "submit", children: h }),
|
|
3644
3644
|
s && /* @__PURE__ */ w(Zt, { onClick: C, children: g })
|
|
3645
3645
|
] }) })
|
|
3646
3646
|
] });
|
|
@@ -3650,7 +3650,7 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3650
3650
|
develop: r,
|
|
3651
3651
|
children: i,
|
|
3652
3652
|
...n
|
|
3653
|
-
}) => /* @__PURE__ */ w(
|
|
3653
|
+
}) => /* @__PURE__ */ w(Te.Item, { ...n, children: i }), qt = (e, t) => {
|
|
3654
3654
|
if (e == null) return t;
|
|
3655
3655
|
if (typeof e == "string")
|
|
3656
3656
|
try {
|
|
@@ -3669,30 +3669,30 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3669
3669
|
targetKeys: o,
|
|
3670
3670
|
selectedKeys: c,
|
|
3671
3671
|
disabled: s,
|
|
3672
|
-
showSearch:
|
|
3672
|
+
showSearch: h,
|
|
3673
3673
|
showSelectAll: g,
|
|
3674
|
-
oneWay:
|
|
3674
|
+
oneWay: m,
|
|
3675
3675
|
pagination: p,
|
|
3676
3676
|
status: f,
|
|
3677
3677
|
titles: d,
|
|
3678
3678
|
actions: l,
|
|
3679
|
-
locale:
|
|
3679
|
+
locale: b,
|
|
3680
3680
|
changeAction: u,
|
|
3681
3681
|
selectChangeAction: T,
|
|
3682
3682
|
searchAction: D,
|
|
3683
3683
|
scrollAction: C,
|
|
3684
|
-
onChange:
|
|
3684
|
+
onChange: S,
|
|
3685
3685
|
onSelectChange: A,
|
|
3686
3686
|
onSearch: v,
|
|
3687
3687
|
onScroll: x,
|
|
3688
3688
|
styles: N,
|
|
3689
|
-
token:
|
|
3689
|
+
token: O,
|
|
3690
3690
|
...B
|
|
3691
3691
|
}) => {
|
|
3692
|
-
const
|
|
3692
|
+
const E = k((et) => et.addCommand), $ = k((et) => et.getDataSet), R = k((et) => et.setDataSet), z = y(
|
|
3693
3693
|
() => I(t, i),
|
|
3694
3694
|
[t, i]
|
|
3695
|
-
), J = y(() => qt(N, {}), [N]), H = y(() => qt(
|
|
3695
|
+
), J = y(() => qt(N, {}), [N]), H = y(() => qt(O, {}), [O]), W = y(() => qt(d, ["源列表", "目标列表"]), [d]), L = y(() => qt(l, [">", "<"]), [l]), G = y(() => qt(b, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [b]), _ = y(() => qt(p, !1), [p]), M = y(() => {
|
|
3696
3696
|
if (z && n) {
|
|
3697
3697
|
const et = $(z, n);
|
|
3698
3698
|
if (Array.isArray(et)) return et;
|
|
@@ -3703,39 +3703,39 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3703
3703
|
if (Array.isArray(et)) return et;
|
|
3704
3704
|
}
|
|
3705
3705
|
}, [z, n, $]), V = y(() => r ? Y ?? qt(a, []) : z ? Y ?? [] : qt(a, []), [r, z, Y, a]), U = y(() => r ? M ?? qt(o, []) : z ? M ?? [] : qt(o, []), [r, z, M, o]), lt = y(() => qt(c, []), [c]), ft = j((et, dt, K) => {
|
|
3706
|
-
if (
|
|
3707
|
-
|
|
3706
|
+
if (S) {
|
|
3707
|
+
S(et, dt, K);
|
|
3708
3708
|
return;
|
|
3709
3709
|
}
|
|
3710
|
-
z && n && R(z, n, et), u && t &&
|
|
3711
|
-
}, [
|
|
3710
|
+
z && n && R(z, n, et), u && t && E(t, Q(u, { targetKeys: et, direction: dt, moveKeys: K }));
|
|
3711
|
+
}, [S, z, n, R, u, t, E]), tt = j((et, dt) => {
|
|
3712
3712
|
if (A) {
|
|
3713
3713
|
A(et, dt);
|
|
3714
3714
|
return;
|
|
3715
3715
|
}
|
|
3716
|
-
T && t &&
|
|
3717
|
-
}, [A, T, t,
|
|
3716
|
+
T && t && E(t, Q(T, { sourceSelectedKeys: et, targetSelectedKeys: dt }));
|
|
3717
|
+
}, [A, T, t, E]), mt = j((et, dt) => {
|
|
3718
3718
|
if (v) {
|
|
3719
3719
|
v(et, dt);
|
|
3720
3720
|
return;
|
|
3721
3721
|
}
|
|
3722
|
-
D && t &&
|
|
3723
|
-
}, [v, D, t,
|
|
3722
|
+
D && t && E(t, Q(D, { direction: et, value: dt }));
|
|
3723
|
+
}, [v, D, t, E]), ot = j((et, dt) => {
|
|
3724
3724
|
if (x) {
|
|
3725
3725
|
x(et, dt);
|
|
3726
3726
|
return;
|
|
3727
3727
|
}
|
|
3728
|
-
C && t &&
|
|
3729
|
-
}, [x, C, t,
|
|
3728
|
+
C && t && E(t, Q(C, { direction: et }));
|
|
3729
|
+
}, [x, C, t, E]), ct = /* @__PURE__ */ w(
|
|
3730
3730
|
mn,
|
|
3731
3731
|
{
|
|
3732
3732
|
dataSource: V,
|
|
3733
3733
|
targetKeys: U,
|
|
3734
3734
|
selectedKeys: lt,
|
|
3735
3735
|
disabled: s,
|
|
3736
|
-
showSearch:
|
|
3736
|
+
showSearch: h,
|
|
3737
3737
|
showSelectAll: g,
|
|
3738
|
-
oneWay:
|
|
3738
|
+
oneWay: m,
|
|
3739
3739
|
pagination: _,
|
|
3740
3740
|
status: f || void 0,
|
|
3741
3741
|
titles: W,
|
|
@@ -3782,49 +3782,49 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3782
3782
|
value: o,
|
|
3783
3783
|
defaultValue: c,
|
|
3784
3784
|
block: s,
|
|
3785
|
-
disabled:
|
|
3785
|
+
disabled: h,
|
|
3786
3786
|
size: g,
|
|
3787
|
-
vertical:
|
|
3787
|
+
vertical: m,
|
|
3788
3788
|
shape: p,
|
|
3789
3789
|
changeAction: f,
|
|
3790
3790
|
onChange: d,
|
|
3791
3791
|
// 样式
|
|
3792
3792
|
styles: l,
|
|
3793
|
-
token:
|
|
3793
|
+
token: b,
|
|
3794
3794
|
...u
|
|
3795
3795
|
}) => {
|
|
3796
|
-
const T = k(($) => $.addCommand), D = k(($) => $.getDataSet), C = k(($) => $.setDataSet),
|
|
3796
|
+
const T = k(($) => $.addCommand), D = k(($) => $.getDataSet), C = k(($) => $.setDataSet), S = y(
|
|
3797
3797
|
() => I(t, i),
|
|
3798
3798
|
[t, i]
|
|
3799
|
-
), A = y(() => Fe(l, {}), [l]), v = y(() => Fe(
|
|
3800
|
-
if (
|
|
3801
|
-
const $ = D(
|
|
3799
|
+
), A = y(() => Fe(l, {}), [l]), v = y(() => Fe(b, {}), [b]), x = y(() => Ea(a), [a]), O = y(() => {
|
|
3800
|
+
if (S && n) {
|
|
3801
|
+
const $ = D(S, n);
|
|
3802
3802
|
if (typeof $ == "string") return $;
|
|
3803
3803
|
}
|
|
3804
|
-
}, [
|
|
3804
|
+
}, [S, n, D]) ?? o, B = j(($) => {
|
|
3805
3805
|
const R = String($);
|
|
3806
3806
|
if (d) {
|
|
3807
3807
|
d(R);
|
|
3808
3808
|
return;
|
|
3809
3809
|
}
|
|
3810
|
-
|
|
3811
|
-
}, [d,
|
|
3810
|
+
S && n && C(S, n, R), f && t && T(t, Q(f, { value: R }));
|
|
3811
|
+
}, [d, S, n, C, f, t, T]), E = /* @__PURE__ */ w(
|
|
3812
3812
|
hn,
|
|
3813
3813
|
{
|
|
3814
3814
|
...u,
|
|
3815
3815
|
options: x,
|
|
3816
|
-
value:
|
|
3816
|
+
value: O,
|
|
3817
3817
|
defaultValue: c,
|
|
3818
3818
|
block: s,
|
|
3819
|
-
disabled:
|
|
3819
|
+
disabled: h,
|
|
3820
3820
|
size: g,
|
|
3821
|
-
vertical:
|
|
3821
|
+
vertical: m,
|
|
3822
3822
|
shape: p,
|
|
3823
3823
|
onChange: B,
|
|
3824
3824
|
styles: A
|
|
3825
3825
|
}
|
|
3826
3826
|
);
|
|
3827
|
-
return v && Object.keys(v).length > 0 ? /* @__PURE__ */ w(_t, { theme: { components: { Segmented: v } }, children:
|
|
3827
|
+
return v && Object.keys(v).length > 0 ? /* @__PURE__ */ w(_t, { theme: { components: { Segmented: v } }, children: E }) : E;
|
|
3828
3828
|
}, _a = (e, t, r) => {
|
|
3829
3829
|
const [i, n] = ht(void 0), a = t === "100%", o = Vt(0);
|
|
3830
3830
|
return Mr(() => {
|
|
@@ -3841,19 +3841,19 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3841
3841
|
d && (f += d.offsetHeight);
|
|
3842
3842
|
const l = c.querySelector('[data-table-slot="footer"]');
|
|
3843
3843
|
l && (f += l.offsetHeight);
|
|
3844
|
-
const
|
|
3845
|
-
|
|
3844
|
+
const b = c.querySelector(".ant-table-title");
|
|
3845
|
+
b && (f += b.offsetHeight);
|
|
3846
3846
|
const u = c.querySelector(".ant-table-thead");
|
|
3847
3847
|
if (u && (f += u.offsetHeight), r) {
|
|
3848
|
-
const
|
|
3849
|
-
if (
|
|
3850
|
-
const A =
|
|
3848
|
+
const S = c.querySelector(".ant-pagination");
|
|
3849
|
+
if (S) {
|
|
3850
|
+
const A = S, v = window.getComputedStyle(A), x = parseFloat(v.marginTop) || 0, N = parseFloat(v.marginBottom) || 0;
|
|
3851
3851
|
f += A.offsetHeight + x + N;
|
|
3852
3852
|
}
|
|
3853
3853
|
}
|
|
3854
3854
|
const T = c.querySelector(".ant-table-wrapper");
|
|
3855
3855
|
if (T) {
|
|
3856
|
-
const
|
|
3856
|
+
const S = window.getComputedStyle(T), A = parseFloat(S.marginTop) || 0, v = parseFloat(S.marginBottom) || 0;
|
|
3857
3857
|
f += A + v;
|
|
3858
3858
|
}
|
|
3859
3859
|
const D = p - f - 2, C = Math.max(Math.floor(D), 50);
|
|
@@ -3861,20 +3861,20 @@ const ec = Lt.memo(Yr), gr = 200, rc = ({
|
|
|
3861
3861
|
});
|
|
3862
3862
|
};
|
|
3863
3863
|
n(50);
|
|
3864
|
-
const
|
|
3864
|
+
const h = setTimeout(s, 16), g = new ResizeObserver(() => {
|
|
3865
3865
|
s();
|
|
3866
3866
|
});
|
|
3867
3867
|
g.observe(c);
|
|
3868
|
-
const
|
|
3868
|
+
const m = new MutationObserver(() => {
|
|
3869
3869
|
s();
|
|
3870
3870
|
});
|
|
3871
|
-
return
|
|
3871
|
+
return m.observe(c, {
|
|
3872
3872
|
childList: !0,
|
|
3873
3873
|
subtree: !0,
|
|
3874
3874
|
attributes: !0,
|
|
3875
3875
|
attributeFilter: ["style", "class"]
|
|
3876
3876
|
}), () => {
|
|
3877
|
-
clearTimeout(
|
|
3877
|
+
clearTimeout(h), o.current && cancelAnimationFrame(o.current), g.disconnect(), m.disconnect();
|
|
3878
3878
|
};
|
|
3879
3879
|
}, [a, r]), a ? i : t;
|
|
3880
3880
|
}, wr = /* @__PURE__ */ new Map();
|
|
@@ -3993,10 +3993,10 @@ function Sr(e, t, r, i) {
|
|
|
3993
3993
|
};
|
|
3994
3994
|
}
|
|
3995
3995
|
function qa(e, t, r, i, n) {
|
|
3996
|
-
const a = (e == null ? void 0 : e.order) ?? t.map((p) => p.key), o = (e == null ? void 0 : e.visible) ?? {}, c = (e == null ? void 0 : e.fixed) ?? {}, s = (e == null ? void 0 : e.width) ?? {},
|
|
3996
|
+
const a = (e == null ? void 0 : e.order) ?? t.map((p) => p.key), o = (e == null ? void 0 : e.visible) ?? {}, c = (e == null ? void 0 : e.fixed) ?? {}, s = (e == null ? void 0 : e.width) ?? {}, h = new Map(t.map((p) => [p.key, p])), g = [], m = /* @__PURE__ */ new Set();
|
|
3997
3997
|
for (const p of a) {
|
|
3998
|
-
const f =
|
|
3999
|
-
f && (
|
|
3998
|
+
const f = h.get(p);
|
|
3999
|
+
f && (m.add(p), g.push({
|
|
4000
4000
|
key: f.key,
|
|
4001
4001
|
title: f.title,
|
|
4002
4002
|
visible: o[p] ?? f.visible,
|
|
@@ -4005,7 +4005,7 @@ function qa(e, t, r, i, n) {
|
|
|
4005
4005
|
}));
|
|
4006
4006
|
}
|
|
4007
4007
|
for (const p of t)
|
|
4008
|
-
|
|
4008
|
+
m.has(p.key) || g.push({
|
|
4009
4009
|
...p,
|
|
4010
4010
|
visible: o[p.key] ?? p.visible,
|
|
4011
4011
|
fixed: c[p.key] ?? p.fixed,
|
|
@@ -4028,11 +4028,11 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4028
4028
|
scrollX: o = !1,
|
|
4029
4029
|
defaultScrollX: c = !1,
|
|
4030
4030
|
size: s = "middle",
|
|
4031
|
-
defaultSize:
|
|
4031
|
+
defaultSize: h = "middle",
|
|
4032
4032
|
onSave: g,
|
|
4033
|
-
onClose:
|
|
4033
|
+
onClose: m
|
|
4034
4034
|
}) => {
|
|
4035
|
-
const [p, f] = ht(r), [d, l] = ht(i), [
|
|
4035
|
+
const [p, f] = ht(r), [d, l] = ht(i), [b, u] = ht(o), [T, D] = ht(s), [C, S] = ht(null);
|
|
4036
4036
|
Ot(() => {
|
|
4037
4037
|
e && (f(r), l([...i]), u(o), D(s));
|
|
4038
4038
|
}, [e, r, i, o, s]);
|
|
@@ -4042,13 +4042,13 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4042
4042
|
},
|
|
4043
4043
|
[g]
|
|
4044
4044
|
), v = j(
|
|
4045
|
-
(_, M, Y, V) => Sr(_, M, Y ??
|
|
4046
|
-
[
|
|
4045
|
+
(_, M, Y, V) => Sr(_, M, Y ?? b, V ?? T),
|
|
4046
|
+
[b, T]
|
|
4047
4047
|
), x = j(() => {
|
|
4048
4048
|
f(n);
|
|
4049
4049
|
const _ = a.map((M) => ({ ...M }));
|
|
4050
|
-
l(_), u(c), D(
|
|
4051
|
-
}, [n, a, c,
|
|
4050
|
+
l(_), u(c), D(h), A(Sr(n, _, c, h));
|
|
4051
|
+
}, [n, a, c, h, A]), N = j(
|
|
4052
4052
|
(_) => {
|
|
4053
4053
|
l((M) => {
|
|
4054
4054
|
const Y = M.map((V) => V.key === _ ? { ...V, visible: !V.visible } : V);
|
|
@@ -4056,7 +4056,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4056
4056
|
});
|
|
4057
4057
|
},
|
|
4058
4058
|
[p, v, A]
|
|
4059
|
-
),
|
|
4059
|
+
), O = j(
|
|
4060
4060
|
(_, M) => {
|
|
4061
4061
|
l((Y) => {
|
|
4062
4062
|
const V = Y.map((U) => U.key === _ ? { ...U, fixed: M } : U);
|
|
@@ -4072,7 +4072,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4072
4072
|
});
|
|
4073
4073
|
},
|
|
4074
4074
|
[p, v, A]
|
|
4075
|
-
),
|
|
4075
|
+
), E = j(
|
|
4076
4076
|
(_, M) => {
|
|
4077
4077
|
l((Y) => {
|
|
4078
4078
|
const V = Y.find((tt) => tt.key === _);
|
|
@@ -4101,14 +4101,14 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4101
4101
|
[p, d, T, v, A]
|
|
4102
4102
|
), J = j(
|
|
4103
4103
|
(_) => {
|
|
4104
|
-
D(_), A(v(p, d,
|
|
4104
|
+
D(_), A(v(p, d, b, _));
|
|
4105
4105
|
},
|
|
4106
|
-
[p, d,
|
|
4106
|
+
[p, d, b, v, A]
|
|
4107
4107
|
), H = (_) => (M) => {
|
|
4108
|
-
|
|
4108
|
+
S(_), M.dataTransfer.effectAllowed = "move", M.dataTransfer.setData("text/plain", String(_));
|
|
4109
4109
|
}, W = (_) => (M) => {
|
|
4110
|
-
M.preventDefault(), M.dataTransfer.dropEffect = "move", !(C === null || C === _) && ($(C, _),
|
|
4111
|
-
}, L = () =>
|
|
4110
|
+
M.preventDefault(), M.dataTransfer.dropEffect = "move", !(C === null || C === _) && ($(C, _), S(_));
|
|
4111
|
+
}, L = () => S(null), G = t != null ? (() => {
|
|
4112
4112
|
let _ = t.y, M = t.x;
|
|
4113
4113
|
return typeof window < "u" && (M + ze > window.innerWidth && (M = window.innerWidth - ze - 16), M < 16 && (M = 16), _ + Dr > window.innerHeight && (_ = Math.max(16, window.innerHeight - Dr - 16)), _ < 16 && (_ = 16)), { margin: 0, top: _, left: M };
|
|
4114
4114
|
})() : void 0;
|
|
@@ -4117,7 +4117,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4117
4117
|
{
|
|
4118
4118
|
title: "列设置",
|
|
4119
4119
|
open: e,
|
|
4120
|
-
onCancel:
|
|
4120
|
+
onCancel: m,
|
|
4121
4121
|
footer: null,
|
|
4122
4122
|
width: ze,
|
|
4123
4123
|
destroyOnHidden: !0,
|
|
@@ -4135,7 +4135,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4135
4135
|
children: "序号列"
|
|
4136
4136
|
}
|
|
4137
4137
|
),
|
|
4138
|
-
/* @__PURE__ */ w(ae, { checked:
|
|
4138
|
+
/* @__PURE__ */ w(ae, { checked: b, onChange: (_) => z(_.target.checked), children: "自动滚动" }),
|
|
4139
4139
|
/* @__PURE__ */ at(Ut, { align: "center", children: [
|
|
4140
4140
|
/* @__PURE__ */ w("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4141
4141
|
/* @__PURE__ */ w(
|
|
@@ -4178,7 +4178,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4178
4178
|
"span",
|
|
4179
4179
|
{
|
|
4180
4180
|
className: "and-table-column-setting-fix-btn",
|
|
4181
|
-
onClick: () =>
|
|
4181
|
+
onClick: () => E(_.key, -le),
|
|
4182
4182
|
title: `减 ${le}px`,
|
|
4183
4183
|
children: /* @__PURE__ */ w(Jn, {})
|
|
4184
4184
|
}
|
|
@@ -4202,7 +4202,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4202
4202
|
"span",
|
|
4203
4203
|
{
|
|
4204
4204
|
className: "and-table-column-setting-fix-btn",
|
|
4205
|
-
onClick: () =>
|
|
4205
|
+
onClick: () => E(_.key, le),
|
|
4206
4206
|
title: `加 ${le}px`,
|
|
4207
4207
|
children: /* @__PURE__ */ w(Rr, {})
|
|
4208
4208
|
}
|
|
@@ -4213,7 +4213,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4213
4213
|
"span",
|
|
4214
4214
|
{
|
|
4215
4215
|
className: `and-table-column-setting-fix-btn ${_.fixed === "left" ? "active" : ""}`,
|
|
4216
|
-
onClick: () =>
|
|
4216
|
+
onClick: () => O(_.key, _.fixed === "left" ? !1 : "left"),
|
|
4217
4217
|
title: "固定到左侧",
|
|
4218
4218
|
children: /* @__PURE__ */ w(jr, {})
|
|
4219
4219
|
}
|
|
@@ -4223,7 +4223,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4223
4223
|
"span",
|
|
4224
4224
|
{
|
|
4225
4225
|
className: `and-table-column-setting-fix-btn ${_.fixed === "right" ? "active" : ""}`,
|
|
4226
|
-
onClick: () =>
|
|
4226
|
+
onClick: () => O(_.key, _.fixed === "right" ? !1 : "right"),
|
|
4227
4227
|
title: "固定到右侧",
|
|
4228
4228
|
children: /* @__PURE__ */ w(Br, {})
|
|
4229
4229
|
}
|
|
@@ -4249,27 +4249,27 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4249
4249
|
operateColumns: o = [],
|
|
4250
4250
|
sampleData: c,
|
|
4251
4251
|
operationColumnVisible: s = !0,
|
|
4252
|
-
selectRowEnable:
|
|
4252
|
+
selectRowEnable: h,
|
|
4253
4253
|
singleSelectMode: g,
|
|
4254
|
-
selectAction:
|
|
4254
|
+
selectAction: m,
|
|
4255
4255
|
rowKeyField: p = "id",
|
|
4256
4256
|
displayRowIndex: f,
|
|
4257
4257
|
queryAction: d,
|
|
4258
4258
|
pagination: l,
|
|
4259
|
-
emptyText:
|
|
4259
|
+
emptyText: b,
|
|
4260
4260
|
bordered: u,
|
|
4261
4261
|
size: T,
|
|
4262
4262
|
sticky: D,
|
|
4263
4263
|
scroll: C,
|
|
4264
|
-
autoFillHeight:
|
|
4264
|
+
autoFillHeight: S,
|
|
4265
4265
|
// 插槽配置
|
|
4266
4266
|
showTitle: A,
|
|
4267
4267
|
showSummary: v,
|
|
4268
4268
|
showFooter: x,
|
|
4269
4269
|
renderTitle: N,
|
|
4270
|
-
renderSummary:
|
|
4270
|
+
renderSummary: O,
|
|
4271
4271
|
renderFooter: B,
|
|
4272
|
-
children:
|
|
4272
|
+
children: E,
|
|
4273
4273
|
token: $,
|
|
4274
4274
|
columnSettingOpenKey: R,
|
|
4275
4275
|
columnSettingsKey: z,
|
|
@@ -4347,7 +4347,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4347
4347
|
fixed: it,
|
|
4348
4348
|
width: typeof Dt == "number" ? Dt : "auto"
|
|
4349
4349
|
};
|
|
4350
|
-
}).filter((P) => P.key), [lt]), Tt = f === !0, Yt = !1, Z = T === "small" || T === "large" ? T : "middle", { rowIndexVisible: vt, items: $t, scrollX:
|
|
4350
|
+
}).filter((P) => P.key), [lt]), Tt = f === !0, Yt = !1, Z = T === "small" || T === "large" ? T : "middle", { rowIndexVisible: vt, items: $t, scrollX: ve, size: F } = y(() => qa(
|
|
4351
4351
|
ct,
|
|
4352
4352
|
Ct,
|
|
4353
4353
|
Tt,
|
|
@@ -4397,33 +4397,33 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4397
4397
|
},
|
|
4398
4398
|
[tt.columnSettings, L]
|
|
4399
4399
|
), Gr = y(() => {
|
|
4400
|
-
if (!g &&
|
|
4400
|
+
if (!g && h)
|
|
4401
4401
|
return {
|
|
4402
4402
|
selectedRowKeys: G,
|
|
4403
4403
|
onChange: (P, it, Dt) => {
|
|
4404
|
-
_(P), tt.selected && L(tt.selected, "", P),
|
|
4404
|
+
_(P), tt.selected && L(tt.selected, "", P), m != null && m.trim() && t && H(t, Q(m.trim(), {
|
|
4405
4405
|
selectedRowKeys: P,
|
|
4406
4406
|
selectedRows: it,
|
|
4407
4407
|
info: Dt
|
|
4408
4408
|
}));
|
|
4409
4409
|
}
|
|
4410
4410
|
};
|
|
4411
|
-
}, [
|
|
4411
|
+
}, [h, g, G, tt.selected, L, m, t, H]), ir = j((P) => {
|
|
4412
4412
|
if (!g) return;
|
|
4413
4413
|
const Dt = [P[p]];
|
|
4414
|
-
_(Dt), tt.selected && L(tt.selected, "", Dt),
|
|
4415
|
-
}, [g,
|
|
4414
|
+
_(Dt), tt.selected && L(tt.selected, "", Dt), m != null && m.trim() && t && H(t, Q(m.trim(), { record: P, selectedRowKeys: Dt }));
|
|
4415
|
+
}, [g, m, t, p, tt.selected, L, H]), Qr = j((P) => g && G.includes(P[p]) ? "ant-table-row-selected" : "", [g, p, G]), Xr = j((P) => g ? { onClick: () => ir(P), style: { cursor: "pointer" } } : {}, [g, ir]), { style: Zr, className: Fr, ...ce } = J, Nt = y(() => {
|
|
4416
4416
|
if (C) return C;
|
|
4417
4417
|
let P = ce["scroll-x"], it = ce["scroll-y"];
|
|
4418
4418
|
if (String(P) === "true" ? P = !0 : String(P) === "false" ? P = void 0 : P === "max-content" && (P = "max-content"), (it === "" || it === null || it === void 0) && (it = void 0), P !== void 0 || it !== void 0) return { x: P, y: it };
|
|
4419
4419
|
}, [C, ce["scroll-x"], ce["scroll-y"]]), $e = _a(M, Nt == null ? void 0 : Nt.y, st), Ir = y(() => {
|
|
4420
4420
|
if (!Nt && !gt) return;
|
|
4421
|
-
const P = gt ?
|
|
4421
|
+
const P = gt ? ve ? !0 : "max-content" : Nt == null ? void 0 : Nt.x, it = (Nt == null ? void 0 : Nt.y) === "100%" ? $e : Nt == null ? void 0 : Nt.y;
|
|
4422
4422
|
return P !== void 0 || it !== void 0 ? { x: P, y: it } : Nt ? Nt.y === "100%" ? { x: Nt.x, y: $e } : Nt : void 0;
|
|
4423
|
-
}, [Nt, $e, gt,
|
|
4423
|
+
}, [Nt, $e, gt, ve]), { titleSlot: be, summarySlot: we, footerSlot: ar, otherChildren: tn } = y(() => {
|
|
4424
4424
|
let P = null, it = null, Dt = null;
|
|
4425
4425
|
const pt = [];
|
|
4426
|
-
return Lt.Children.forEach(
|
|
4426
|
+
return Lt.Children.forEach(E, (bt) => {
|
|
4427
4427
|
if (!Lt.isValidElement(bt)) {
|
|
4428
4428
|
pt.push(bt);
|
|
4429
4429
|
return;
|
|
@@ -4431,18 +4431,18 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4431
4431
|
const jt = bt.props["data-slot-type"];
|
|
4432
4432
|
jt === "title" ? P = bt : jt === "summary" ? it = bt : jt === "footer" ? Dt = bt : pt.push(bt);
|
|
4433
4433
|
}), { titleSlot: P, summarySlot: it, footerSlot: Dt, otherChildren: pt };
|
|
4434
|
-
}, [
|
|
4435
|
-
if (!
|
|
4434
|
+
}, [E]), en = y(() => {
|
|
4435
|
+
if (!be) {
|
|
4436
4436
|
if (N) return N;
|
|
4437
4437
|
if (A && r) return () => /* @__PURE__ */ w("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
|
|
4438
4438
|
}
|
|
4439
|
-
}, [A,
|
|
4440
|
-
if (
|
|
4441
|
-
if (v &&
|
|
4442
|
-
return () => /* @__PURE__ */ w("tr", { children: /* @__PURE__ */ w("td", { colSpan: kt.length, style: { padding: 0 }, children:
|
|
4439
|
+
}, [A, be, N, r]), rn = y(() => {
|
|
4440
|
+
if (O) return O;
|
|
4441
|
+
if (v && we)
|
|
4442
|
+
return () => /* @__PURE__ */ w("tr", { children: /* @__PURE__ */ w("td", { colSpan: kt.length, style: { padding: 0 }, children: we }) });
|
|
4443
4443
|
if (v && r)
|
|
4444
4444
|
return () => /* @__PURE__ */ w("tr", { children: /* @__PURE__ */ w("td", { colSpan: kt.length, style: { padding: 0 }, children: /* @__PURE__ */ w("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
4445
|
-
}, [v,
|
|
4445
|
+
}, [v, we, O, kt.length, r]), or = /* @__PURE__ */ w(
|
|
4446
4446
|
gn,
|
|
4447
4447
|
{
|
|
4448
4448
|
...ce,
|
|
@@ -4452,7 +4452,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4452
4452
|
rowSelection: Gr,
|
|
4453
4453
|
rowClassName: Qr,
|
|
4454
4454
|
pagination: St,
|
|
4455
|
-
locale: { emptyText:
|
|
4455
|
+
locale: { emptyText: b },
|
|
4456
4456
|
bordered: u,
|
|
4457
4457
|
size: gt ? F : T,
|
|
4458
4458
|
sticky: D,
|
|
@@ -4471,7 +4471,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4471
4471
|
style: { width: "100%", height: "100%", ...Zr },
|
|
4472
4472
|
className: Fr,
|
|
4473
4473
|
children: [
|
|
4474
|
-
|
|
4474
|
+
be && /* @__PURE__ */ w("div", { "data-table-slot": "title", children: be }),
|
|
4475
4475
|
/* @__PURE__ */ at("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
4476
4476
|
g && (() => {
|
|
4477
4477
|
const P = (K == null ? void 0 : K.rowSelectedBg) || "#e6f4ff", it = (K == null ? void 0 : K.rowSelectedHoverBg) || (K == null ? void 0 : K.rowSelectedBg) || "#bae0ff", Dt = K == null ? void 0 : K.rowSelectedColor, pt = (K == null ? void 0 : K.rowSelectedLinkColor) ?? Dt, bt = (K == null ? void 0 : K.rowSelectedLinkHoverColor) ?? pt;
|
|
@@ -4489,7 +4489,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4489
4489
|
})(),
|
|
4490
4490
|
rt ? /* @__PURE__ */ w(_t, { theme: rt, children: or }) : or
|
|
4491
4491
|
] }),
|
|
4492
|
-
|
|
4492
|
+
we,
|
|
4493
4493
|
ar && /* @__PURE__ */ w("div", { "data-table-slot": "footer", children: ar }),
|
|
4494
4494
|
tn,
|
|
4495
4495
|
gt && /* @__PURE__ */ w(
|
|
@@ -4501,7 +4501,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4501
4501
|
columnItems: $t,
|
|
4502
4502
|
defaultRowIndexVisible: Tt,
|
|
4503
4503
|
defaultColumnItems: Ct,
|
|
4504
|
-
scrollX:
|
|
4504
|
+
scrollX: ve,
|
|
4505
4505
|
defaultScrollX: Yt,
|
|
4506
4506
|
size: F,
|
|
4507
4507
|
defaultSize: Z,
|
|
@@ -4522,58 +4522,58 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4522
4522
|
dataSetField: o,
|
|
4523
4523
|
fontSize: c,
|
|
4524
4524
|
color: s,
|
|
4525
|
-
dictCode:
|
|
4525
|
+
dictCode: h,
|
|
4526
4526
|
formatType: g,
|
|
4527
|
-
formatValue:
|
|
4527
|
+
formatValue: m,
|
|
4528
4528
|
fallbackDisplay: p = !1,
|
|
4529
4529
|
styles: f,
|
|
4530
4530
|
token: d,
|
|
4531
4531
|
// Filter out custom props that shouldn't be passed to DOM
|
|
4532
4532
|
clickAction: l,
|
|
4533
|
-
...
|
|
4533
|
+
...b
|
|
4534
4534
|
}) => {
|
|
4535
4535
|
const u = k((_) => _.getDataSet), T = k((_) => _.getProps), D = y(
|
|
4536
|
-
() =>
|
|
4537
|
-
[
|
|
4536
|
+
() => h === "selectedCount" && o && !a ? o : a,
|
|
4537
|
+
[h, o, a]
|
|
4538
4538
|
), C = y(
|
|
4539
|
-
() =>
|
|
4540
|
-
[
|
|
4541
|
-
),
|
|
4539
|
+
() => h === "selectedCount" ? "selectedCount" : o,
|
|
4540
|
+
[h, o]
|
|
4541
|
+
), S = y(
|
|
4542
4542
|
() => I(t, D),
|
|
4543
4543
|
[t, D]
|
|
4544
4544
|
), A = k((_) => {
|
|
4545
|
-
if (!
|
|
4546
|
-
const M =
|
|
4545
|
+
if (!S) return;
|
|
4546
|
+
const M = ye(S).baseName;
|
|
4547
4547
|
return _.dataSets[M];
|
|
4548
|
-
}), { options: v } =
|
|
4549
|
-
if (
|
|
4550
|
-
return u(
|
|
4551
|
-
}, [
|
|
4552
|
-
if (!
|
|
4553
|
-
if (typeof
|
|
4548
|
+
}), { options: v } = pe(h), x = y(() => t && e ? T(t, e) : null, [t, e, T]), N = y(() => {
|
|
4549
|
+
if (S && C)
|
|
4550
|
+
return u(S, C);
|
|
4551
|
+
}, [S, C, u, A]), O = y(() => {
|
|
4552
|
+
if (!m) return {};
|
|
4553
|
+
if (typeof m == "string")
|
|
4554
4554
|
try {
|
|
4555
|
-
return JSON.parse(
|
|
4555
|
+
return JSON.parse(m);
|
|
4556
4556
|
} catch {
|
|
4557
4557
|
return {};
|
|
4558
4558
|
}
|
|
4559
|
-
return
|
|
4560
|
-
}, [
|
|
4561
|
-
if (
|
|
4562
|
-
const _ = re(v,
|
|
4563
|
-
return (_ == null ? void 0 : _.label) ??
|
|
4564
|
-
}
|
|
4565
|
-
return
|
|
4566
|
-
}, [
|
|
4559
|
+
return m;
|
|
4560
|
+
}, [m]), B = (_) => _ == null || _ === "" || typeof _ == "string" && _.trim() === "", E = y(() => r ? i : N != null && N !== "" ? B(N) && p ? i : N : (x == null ? void 0 : x.content) !== void 0 ? x.content : i, [r, N, x == null ? void 0 : x.content, i, p]), $ = y(() => {
|
|
4561
|
+
if (h && v.length > 0 && E !== void 0 && E !== null) {
|
|
4562
|
+
const _ = re(v, E);
|
|
4563
|
+
return (_ == null ? void 0 : _.label) ?? E;
|
|
4564
|
+
}
|
|
4565
|
+
return E;
|
|
4566
|
+
}, [h, v, E]), R = y(() => {
|
|
4567
4567
|
if (r)
|
|
4568
4568
|
return $;
|
|
4569
4569
|
const _ = (x == null ? void 0 : x.formatType) || g;
|
|
4570
|
-
return _ && $ !== void 0 && $ !== null ? ya($, _,
|
|
4571
|
-
}, [r, $, g,
|
|
4572
|
-
const _ = { ...
|
|
4570
|
+
return _ && $ !== void 0 && $ !== null ? ya($, _, O) : $;
|
|
4571
|
+
}, [r, $, g, O, x == null ? void 0 : x.formatType]), z = y(() => {
|
|
4572
|
+
const _ = { ...b };
|
|
4573
4573
|
return x && typeof x == "object" && Object.keys(x).forEach((M) => {
|
|
4574
4574
|
!["content", "formatType", "formatValue", "clickAction"].includes(M) && x[M] !== void 0 && x[M] !== null && (_[M] = x[M]);
|
|
4575
4575
|
}), _;
|
|
4576
|
-
}, [
|
|
4576
|
+
}, [b, x]), J = (x == null ? void 0 : x.color) ?? s, H = _e(J), W = y(() => {
|
|
4577
4577
|
if (!d) return;
|
|
4578
4578
|
let _ = d;
|
|
4579
4579
|
if (typeof d == "string")
|
|
@@ -4606,25 +4606,25 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4606
4606
|
dataSetField: o,
|
|
4607
4607
|
level: c = 1,
|
|
4608
4608
|
color: s,
|
|
4609
|
-
styles:
|
|
4609
|
+
styles: h,
|
|
4610
4610
|
...g
|
|
4611
4611
|
}) => {
|
|
4612
|
-
const
|
|
4612
|
+
const m = k((S) => S.getDataSet), p = k((S) => S.getProps), f = y(
|
|
4613
4613
|
() => I(t, a),
|
|
4614
4614
|
[t, a]
|
|
4615
4615
|
), d = y(() => t && e ? p(t, e) : null, [t, e, p]), l = y(() => {
|
|
4616
4616
|
if (f && o)
|
|
4617
|
-
return
|
|
4618
|
-
}, [f, o,
|
|
4619
|
-
const
|
|
4620
|
-
return T && (
|
|
4617
|
+
return m(f, o);
|
|
4618
|
+
}, [f, o, m]), b = y(() => r ? i : l != null && l !== "" ? String(l) : (d == null ? void 0 : d.content) !== void 0 ? d.content : i, [r, l, d == null ? void 0 : d.content, i]), u = (d == null ? void 0 : d.color) ?? s, T = _e(u), D = y(() => {
|
|
4619
|
+
const S = {};
|
|
4620
|
+
return T && (S.color = T), S;
|
|
4621
4621
|
}, [T]), C = y(() => {
|
|
4622
|
-
const
|
|
4622
|
+
const S = { ...g };
|
|
4623
4623
|
return d && typeof d == "object" && Object.keys(d).forEach((A) => {
|
|
4624
|
-
A !== "content" && d[A] !== void 0 && d[A] !== null && (
|
|
4625
|
-
}),
|
|
4624
|
+
A !== "content" && d[A] !== void 0 && d[A] !== null && (S[A] = d[A]);
|
|
4625
|
+
}), S;
|
|
4626
4626
|
}, [g, d]);
|
|
4627
|
-
return /* @__PURE__ */ w(Ua, { level: c, ...C, style: { ...D, ...
|
|
4627
|
+
return /* @__PURE__ */ w(Ua, { level: c, ...C, style: { ...D, ...h, ...C.style }, children: b || n });
|
|
4628
4628
|
}, { Paragraph: Ya } = tr, Tc = ({
|
|
4629
4629
|
id: e,
|
|
4630
4630
|
sessionId: t,
|
|
@@ -4635,23 +4635,23 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4635
4635
|
dataSetField: o,
|
|
4636
4636
|
color: c,
|
|
4637
4637
|
styles: s,
|
|
4638
|
-
...
|
|
4638
|
+
...h
|
|
4639
4639
|
}) => {
|
|
4640
|
-
const g = k((C) => C.getDataSet),
|
|
4640
|
+
const g = k((C) => C.getDataSet), m = k((C) => C.getProps), p = y(
|
|
4641
4641
|
() => I(t, a),
|
|
4642
4642
|
[t, a]
|
|
4643
|
-
), f = y(() => t && e ?
|
|
4643
|
+
), f = y(() => t && e ? m(t, e) : null, [t, e, m]), d = y(() => {
|
|
4644
4644
|
if (p && o)
|
|
4645
4645
|
return g(p, o);
|
|
4646
|
-
}, [p, o, g]), l = y(() => r ? i : d != null && d !== "" ? String(d) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [r, d, f == null ? void 0 : f.content, i]),
|
|
4646
|
+
}, [p, o, g]), l = y(() => r ? i : d != null && d !== "" ? String(d) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [r, d, f == null ? void 0 : f.content, i]), b = (f == null ? void 0 : f.color) ?? c, u = _e(b), T = y(() => {
|
|
4647
4647
|
const C = {};
|
|
4648
4648
|
return u && (C.color = u), C;
|
|
4649
4649
|
}, [u]), D = y(() => {
|
|
4650
|
-
const C = { ...
|
|
4651
|
-
return f && typeof f == "object" && Object.keys(f).forEach((
|
|
4652
|
-
|
|
4650
|
+
const C = { ...h };
|
|
4651
|
+
return f && typeof f == "object" && Object.keys(f).forEach((S) => {
|
|
4652
|
+
S !== "content" && f[S] !== void 0 && f[S] !== null && (C[S] = f[S]);
|
|
4653
4653
|
}), C;
|
|
4654
|
-
}, [
|
|
4654
|
+
}, [h, f]);
|
|
4655
4655
|
return /* @__PURE__ */ w(Ya, { ...D, style: { ...T, ...s, ...D.style }, children: l || n });
|
|
4656
4656
|
}, Pa = (e) => {
|
|
4657
4657
|
if (!e) return [];
|
|
@@ -4672,30 +4672,30 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4672
4672
|
items: o,
|
|
4673
4673
|
changeAction: c,
|
|
4674
4674
|
onChange: s,
|
|
4675
|
-
activeKey:
|
|
4675
|
+
activeKey: h,
|
|
4676
4676
|
defaultActiveKey: g,
|
|
4677
|
-
renderTabContent:
|
|
4677
|
+
renderTabContent: m,
|
|
4678
4678
|
children: p,
|
|
4679
4679
|
...f
|
|
4680
4680
|
}) => {
|
|
4681
|
-
const d = k((N) => N.addCommand), l = k((N) => N.getDataSet),
|
|
4681
|
+
const d = k((N) => N.addCommand), l = k((N) => N.getDataSet), b = k((N) => N.setDataSet), u = y(
|
|
4682
4682
|
() => I(t, i),
|
|
4683
4683
|
[t, i]
|
|
4684
|
-
), T = y(() => Pa(a), [a]), D = y(() => o && o.length > 0 ? r ? o.map((N) => ({ ...N, forceRender: !0 })) : o : T.length > 0 ? T.map((N,
|
|
4684
|
+
), T = y(() => Pa(a), [a]), D = y(() => o && o.length > 0 ? r ? o.map((N) => ({ ...N, forceRender: !0 })) : o : T.length > 0 ? T.map((N, O) => ({
|
|
4685
4685
|
key: N.key,
|
|
4686
4686
|
label: N.tab,
|
|
4687
4687
|
disabled: N.disabled,
|
|
4688
4688
|
// 开发模式下强制渲染所有 TabPane,以便设计每个 Tab 的内容
|
|
4689
4689
|
forceRender: r ? !0 : void 0,
|
|
4690
|
-
children:
|
|
4691
|
-
})) : [], [o, T,
|
|
4690
|
+
children: m ? m(N.key, O) : null
|
|
4691
|
+
})) : [], [o, T, m, r]), C = y(() => {
|
|
4692
4692
|
if (u && n) return l(u, n);
|
|
4693
|
-
}, [u, n, l]), [
|
|
4694
|
-
if (r &&
|
|
4695
|
-
return
|
|
4696
|
-
const N = C ??
|
|
4693
|
+
}, [u, n, l]), [S, A] = Lt.useState(void 0), v = y(() => {
|
|
4694
|
+
if (r && S)
|
|
4695
|
+
return S;
|
|
4696
|
+
const N = C ?? h ?? g;
|
|
4697
4697
|
return !N && D.length > 0 ? D[0].key : N;
|
|
4698
|
-
}, [r,
|
|
4698
|
+
}, [r, S, C, h, g, D]), x = j((N) => {
|
|
4699
4699
|
if (r) {
|
|
4700
4700
|
A(N);
|
|
4701
4701
|
return;
|
|
@@ -4704,8 +4704,8 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4704
4704
|
s(N);
|
|
4705
4705
|
return;
|
|
4706
4706
|
}
|
|
4707
|
-
u && n &&
|
|
4708
|
-
}, [r, s, u, n,
|
|
4707
|
+
u && n && b(u, n, N), c && t && d(t, Q(c, N));
|
|
4708
|
+
}, [r, s, u, n, b, c, t, d]);
|
|
4709
4709
|
return /* @__PURE__ */ w(
|
|
4710
4710
|
pn,
|
|
4711
4711
|
{
|
|
@@ -4727,26 +4727,26 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4727
4727
|
checkAction: o,
|
|
4728
4728
|
expandAction: c,
|
|
4729
4729
|
dragEndAction: s,
|
|
4730
|
-
dragEnterAction:
|
|
4730
|
+
dragEnterAction: h,
|
|
4731
4731
|
dragLeaveAction: g,
|
|
4732
|
-
dragOverAction:
|
|
4732
|
+
dragOverAction: m,
|
|
4733
4733
|
dragStartAction: p,
|
|
4734
4734
|
dropAction: f,
|
|
4735
4735
|
rightClickAction: d,
|
|
4736
4736
|
loadAction: l,
|
|
4737
|
-
onSelect:
|
|
4737
|
+
onSelect: b,
|
|
4738
4738
|
onCheck: u,
|
|
4739
4739
|
onExpand: T,
|
|
4740
4740
|
onDragEnd: D,
|
|
4741
4741
|
onDragEnter: C,
|
|
4742
|
-
onDragLeave:
|
|
4742
|
+
onDragLeave: S,
|
|
4743
4743
|
onDragOver: A,
|
|
4744
4744
|
onDragStart: v,
|
|
4745
4745
|
onDrop: x,
|
|
4746
4746
|
onRightClick: N,
|
|
4747
|
-
onLoad:
|
|
4747
|
+
onLoad: O,
|
|
4748
4748
|
treeData: B,
|
|
4749
|
-
styles:
|
|
4749
|
+
styles: E,
|
|
4750
4750
|
classNames: $,
|
|
4751
4751
|
token: R,
|
|
4752
4752
|
...z
|
|
@@ -4780,13 +4780,13 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4780
4780
|
(Z) => _ ? Z.getDataSet(_, "") : void 0
|
|
4781
4781
|
), lt = y(() => r ? M ?? B ?? [] : W ? M ?? [] : B ?? [], [r, W, M, B]), ft = Y, tt = V, mt = U, ot = j(
|
|
4782
4782
|
(Z, vt) => {
|
|
4783
|
-
if (
|
|
4784
|
-
|
|
4783
|
+
if (b) {
|
|
4784
|
+
b(Z, vt);
|
|
4785
4785
|
return;
|
|
4786
4786
|
}
|
|
4787
4787
|
L && H(L, "", Z), a && t && J(t, Q(a, { selectedKeys: Z }));
|
|
4788
4788
|
},
|
|
4789
|
-
[
|
|
4789
|
+
[b, L, t, H, a, J]
|
|
4790
4790
|
), ct = j(
|
|
4791
4791
|
(Z, vt) => {
|
|
4792
4792
|
if (u) {
|
|
@@ -4820,27 +4820,27 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4820
4820
|
C(Z);
|
|
4821
4821
|
return;
|
|
4822
4822
|
}
|
|
4823
|
-
|
|
4823
|
+
h && t && J(t, Q(h, Z));
|
|
4824
4824
|
},
|
|
4825
|
-
[C,
|
|
4825
|
+
[C, h, t, J]
|
|
4826
4826
|
), q = j(
|
|
4827
4827
|
(Z) => {
|
|
4828
|
-
if (
|
|
4829
|
-
|
|
4828
|
+
if (S) {
|
|
4829
|
+
S(Z);
|
|
4830
4830
|
return;
|
|
4831
4831
|
}
|
|
4832
4832
|
g && t && J(t, Q(g, Z));
|
|
4833
4833
|
},
|
|
4834
|
-
[
|
|
4834
|
+
[S, g, t, J]
|
|
4835
4835
|
), rt = j(
|
|
4836
4836
|
(Z) => {
|
|
4837
4837
|
if (A) {
|
|
4838
4838
|
A(Z);
|
|
4839
4839
|
return;
|
|
4840
4840
|
}
|
|
4841
|
-
|
|
4841
|
+
m && t && J(t, Q(m, Z));
|
|
4842
4842
|
},
|
|
4843
|
-
[A,
|
|
4843
|
+
[A, m, t, J]
|
|
4844
4844
|
), X = j(
|
|
4845
4845
|
(Z) => {
|
|
4846
4846
|
if (v) {
|
|
@@ -4870,13 +4870,13 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4870
4870
|
[N, d, t, J]
|
|
4871
4871
|
), St = j(
|
|
4872
4872
|
(Z, vt) => {
|
|
4873
|
-
if (
|
|
4874
|
-
|
|
4873
|
+
if (O) {
|
|
4874
|
+
O(Z, vt);
|
|
4875
4875
|
return;
|
|
4876
4876
|
}
|
|
4877
4877
|
l && t && J(t, Q(l, { loadedKeys: Z, ...vt }));
|
|
4878
4878
|
},
|
|
4879
|
-
[
|
|
4879
|
+
[O, l, t, J]
|
|
4880
4880
|
), Et = y(() => {
|
|
4881
4881
|
if (!R) return;
|
|
4882
4882
|
const Z = {};
|
|
@@ -4906,7 +4906,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4906
4906
|
onDrop: nt,
|
|
4907
4907
|
onRightClick: st,
|
|
4908
4908
|
onLoad: St,
|
|
4909
|
-
styles:
|
|
4909
|
+
styles: E,
|
|
4910
4910
|
classNames: $
|
|
4911
4911
|
}
|
|
4912
4912
|
);
|
|
@@ -4922,12 +4922,12 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4922
4922
|
// @ts-ignore
|
|
4923
4923
|
remoteUrl: c,
|
|
4924
4924
|
mode: s,
|
|
4925
|
-
...
|
|
4925
|
+
...h
|
|
4926
4926
|
}) => {
|
|
4927
|
-
const g = k((T) => T.getDataSet),
|
|
4927
|
+
const g = k((T) => T.getDataSet), m = k((T) => T.getProps), p = y(
|
|
4928
4928
|
() => I(t, a),
|
|
4929
4929
|
[t, a]
|
|
4930
|
-
), f = y(() => t && e ?
|
|
4930
|
+
), f = y(() => t && e ? m(t, e) : null, [t, e, m]), d = y(() => {
|
|
4931
4931
|
if (p && o) return g(p, o);
|
|
4932
4932
|
}, [p, o, g]), l = y(() => {
|
|
4933
4933
|
let T;
|
|
@@ -4939,19 +4939,19 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4939
4939
|
}
|
|
4940
4940
|
})() : void 0 : f == null ? void 0 : f.items;
|
|
4941
4941
|
return r ? T = D ?? i : p ? T = D ?? [] : T = i, Array.isArray(T) ? T.map((C) => {
|
|
4942
|
-
const
|
|
4943
|
-
return
|
|
4942
|
+
const S = { ...C };
|
|
4943
|
+
return S.label && !S.title && (S.title = S.label, delete S.label), S.children && !S.content && (S.content = S.children, delete S.children), S;
|
|
4944
4944
|
}) : T;
|
|
4945
|
-
}, [r, p, d, f == null ? void 0 : f.items, i]),
|
|
4946
|
-
const T = { ...
|
|
4945
|
+
}, [r, p, d, f == null ? void 0 : f.items, i]), b = y(() => {
|
|
4946
|
+
const T = { ...h };
|
|
4947
4947
|
return f && typeof f == "object" && Object.keys(f).forEach((D) => {
|
|
4948
4948
|
D !== "items" && f[D] !== void 0 && f[D] !== null && (T[D] = f[D]);
|
|
4949
4949
|
}), T;
|
|
4950
|
-
}, [
|
|
4950
|
+
}, [h, f]), u = y(() => s === "left" ? "start" : s === "right" ? "end" : s, [s]);
|
|
4951
4951
|
return /* @__PURE__ */ w(
|
|
4952
4952
|
bn,
|
|
4953
4953
|
{
|
|
4954
|
-
...
|
|
4954
|
+
...b,
|
|
4955
4955
|
mode: u,
|
|
4956
4956
|
items: l,
|
|
4957
4957
|
children: n
|
|
@@ -4976,30 +4976,30 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
4976
4976
|
onChange: o,
|
|
4977
4977
|
current: c,
|
|
4978
4978
|
items: s,
|
|
4979
|
-
direction:
|
|
4979
|
+
direction: h,
|
|
4980
4980
|
orientation: g,
|
|
4981
|
-
labelPlacement:
|
|
4981
|
+
labelPlacement: m,
|
|
4982
4982
|
titlePlacement: p,
|
|
4983
4983
|
styles: f,
|
|
4984
4984
|
token: d,
|
|
4985
4985
|
...l
|
|
4986
4986
|
}) => {
|
|
4987
|
-
const
|
|
4987
|
+
const b = k((R) => R.addCommand), u = k((R) => R.getDataSet), T = k((R) => R.setDataSet), D = y(
|
|
4988
4988
|
() => I(t, i),
|
|
4989
4989
|
[t, i]
|
|
4990
4990
|
), C = y(() => {
|
|
4991
4991
|
if (D && n) return u(D, n);
|
|
4992
|
-
}, [D, n, u]),
|
|
4992
|
+
}, [D, n, u]), S = y(() => C ?? c ?? 0, [C, c]), A = y(() => g ?? h, [g, h]), v = y(() => p ?? m, [p, m]), x = y(() => Le(s, []), [s]), N = y(() => Le(f, {}), [f]), O = y(() => Le(d, {}), [d]), B = j((R) => {
|
|
4993
4993
|
if (o) {
|
|
4994
4994
|
o(R);
|
|
4995
4995
|
return;
|
|
4996
4996
|
}
|
|
4997
|
-
D && n && T(D, n, R), a && t &&
|
|
4998
|
-
}, [o, D, n, T, a, t,
|
|
4997
|
+
D && n && T(D, n, R), a && t && b(t, Q(a, R));
|
|
4998
|
+
}, [o, D, n, T, a, t, b]), E = Object.keys(O).length > 0, $ = /* @__PURE__ */ w(
|
|
4999
4999
|
wn,
|
|
5000
5000
|
{
|
|
5001
5001
|
...l,
|
|
5002
|
-
current:
|
|
5002
|
+
current: S,
|
|
5003
5003
|
items: x,
|
|
5004
5004
|
styles: N,
|
|
5005
5005
|
orientation: A,
|
|
@@ -5007,7 +5007,7 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
5007
5007
|
onChange: B
|
|
5008
5008
|
}
|
|
5009
5009
|
);
|
|
5010
|
-
return
|
|
5010
|
+
return E ? /* @__PURE__ */ w(_t, { theme: { components: { Steps: O } }, children: $ }) : $;
|
|
5011
5011
|
}, _c = ({
|
|
5012
5012
|
id: e,
|
|
5013
5013
|
sessionId: t,
|
|
@@ -5048,26 +5048,26 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
5048
5048
|
dotPlacement: o,
|
|
5049
5049
|
slides: c,
|
|
5050
5050
|
changeAction: s,
|
|
5051
|
-
afterChange:
|
|
5051
|
+
afterChange: h,
|
|
5052
5052
|
renderSlideContent: g,
|
|
5053
|
-
children:
|
|
5053
|
+
children: m,
|
|
5054
5054
|
...p
|
|
5055
5055
|
}) => {
|
|
5056
5056
|
const f = k((C) => C.addCommand), d = k((C) => C.setDataSet), l = y(
|
|
5057
5057
|
() => I(t, i),
|
|
5058
5058
|
[t, i]
|
|
5059
|
-
),
|
|
5059
|
+
), b = y(() => {
|
|
5060
5060
|
if (o) return o;
|
|
5061
5061
|
if (a)
|
|
5062
5062
|
return Ja[a] || a;
|
|
5063
5063
|
}, [a, o]), u = y(() => Ga(c), [c]), T = j((C) => {
|
|
5064
|
-
if (
|
|
5065
|
-
|
|
5064
|
+
if (h) {
|
|
5065
|
+
h(C);
|
|
5066
5066
|
return;
|
|
5067
5067
|
}
|
|
5068
5068
|
l && n && d(l, n, C), s && t && f(t, Q(s, C));
|
|
5069
|
-
}, [
|
|
5070
|
-
const A = g ? g(C.key,
|
|
5069
|
+
}, [h, l, n, d, s, t, f]), D = y(() => m || (u.length > 0 ? u.map((C, S) => {
|
|
5070
|
+
const A = g ? g(C.key, S) : null;
|
|
5071
5071
|
return /* @__PURE__ */ w("div", { "data-slide-key": C.key, children: A || /* @__PURE__ */ w("div", { style: {
|
|
5072
5072
|
minHeight: "100px",
|
|
5073
5073
|
display: "flex",
|
|
@@ -5076,12 +5076,12 @@ const ze = 420, Dr = 440, Wa = ({
|
|
|
5076
5076
|
color: "#999",
|
|
5077
5077
|
background: r ? "#f5f5f5" : void 0
|
|
5078
5078
|
}, children: r ? C.title : null }) }, C.key);
|
|
5079
|
-
}) : null), [
|
|
5079
|
+
}) : null), [m, u, g, r]);
|
|
5080
5080
|
return /* @__PURE__ */ w(
|
|
5081
5081
|
Sn,
|
|
5082
5082
|
{
|
|
5083
5083
|
...p,
|
|
5084
|
-
dotPlacement:
|
|
5084
|
+
dotPlacement: b,
|
|
5085
5085
|
afterChange: T,
|
|
5086
5086
|
children: D
|
|
5087
5087
|
}
|
|
@@ -5103,21 +5103,21 @@ const Xa = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5103
5103
|
src: c,
|
|
5104
5104
|
...s
|
|
5105
5105
|
}) => {
|
|
5106
|
-
const
|
|
5106
|
+
const h = k((u) => u.getDataSet), g = k((u) => u.getProps), m = y(() => t && e ? g(t, e) : null, [t, e, g]), p = y(
|
|
5107
5107
|
() => I(t, i),
|
|
5108
5108
|
[t, i]
|
|
5109
5109
|
), f = y(() => {
|
|
5110
5110
|
if (p && n)
|
|
5111
|
-
return
|
|
5112
|
-
}, [p, n,
|
|
5111
|
+
return h(p, n);
|
|
5112
|
+
}, [p, n, h]), d = y(() => {
|
|
5113
5113
|
let u;
|
|
5114
|
-
return f != null && f !== "" ? u = String(f) : (
|
|
5115
|
-
}, [f,
|
|
5114
|
+
return f != null && f !== "" ? u = String(f) : (m == null ? void 0 : m.src) !== void 0 ? u = m.src : u = c, Qa(u);
|
|
5115
|
+
}, [f, m == null ? void 0 : m.src, c]), l = y(() => {
|
|
5116
5116
|
const u = { ...s };
|
|
5117
|
-
return
|
|
5118
|
-
T !== "src" &&
|
|
5117
|
+
return m && typeof m == "object" && Object.keys(m).forEach((T) => {
|
|
5118
|
+
T !== "src" && m[T] !== void 0 && m[T] !== null && (u[T] = m[T]);
|
|
5119
5119
|
}), u;
|
|
5120
|
-
}, [s,
|
|
5120
|
+
}, [s, m]), b = {
|
|
5121
5121
|
...l,
|
|
5122
5122
|
src: d || void 0,
|
|
5123
5123
|
fallback: l.fallback || Xa,
|
|
@@ -5129,7 +5129,7 @@ const Xa = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5129
5129
|
image: { width: "100%", height: "100%", objectFit: o }
|
|
5130
5130
|
}
|
|
5131
5131
|
};
|
|
5132
|
-
return /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ w(Qt, { ...
|
|
5132
|
+
return /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%", display: "flex" }, children: /* @__PURE__ */ w(Qt, { ...b }) });
|
|
5133
5133
|
}, { PreviewGroup: Za } = Qt;
|
|
5134
5134
|
function Fa(e) {
|
|
5135
5135
|
if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
|
|
@@ -5146,29 +5146,29 @@ const jc = ({
|
|
|
5146
5146
|
items: o,
|
|
5147
5147
|
...c
|
|
5148
5148
|
}) => {
|
|
5149
|
-
const s = k((
|
|
5149
|
+
const s = k((b) => b.getDataSet), h = k((b) => b.getProps), g = y(
|
|
5150
5150
|
() => I(t, n),
|
|
5151
5151
|
[t, n]
|
|
5152
|
-
),
|
|
5152
|
+
), m = y(() => t && e ? h(t, e) : null, [t, e, h]), p = y(() => {
|
|
5153
5153
|
if (g && a) return s(g, a);
|
|
5154
5154
|
}, [g, a, s]), f = y(() => {
|
|
5155
|
-
const
|
|
5155
|
+
const b = p != null ? Array.isArray(p) ? p : typeof p == "string" ? (() => {
|
|
5156
5156
|
try {
|
|
5157
5157
|
return JSON.parse(p);
|
|
5158
5158
|
} catch {
|
|
5159
5159
|
return;
|
|
5160
5160
|
}
|
|
5161
|
-
})() : void 0 :
|
|
5162
|
-
return r ?
|
|
5163
|
-
}, [r, g, p,
|
|
5164
|
-
const u = typeof
|
|
5161
|
+
})() : void 0 : m == null ? void 0 : m.items;
|
|
5162
|
+
return r ? b ?? o ?? [] : g ? Array.isArray(b) ? b : [] : o ?? [];
|
|
5163
|
+
}, [r, g, p, m == null ? void 0 : m.items, o]), d = y(() => f.map((b) => {
|
|
5164
|
+
const u = typeof b == "string" ? b : b && typeof b == "object" ? b.url ?? b.src : void 0;
|
|
5165
5165
|
return Fa(u);
|
|
5166
|
-
}).filter((
|
|
5167
|
-
const
|
|
5168
|
-
return
|
|
5169
|
-
u !== "items" &&
|
|
5170
|
-
}),
|
|
5171
|
-
}, [c,
|
|
5166
|
+
}).filter((b) => !!b), [f]), l = y(() => {
|
|
5167
|
+
const b = { ...c };
|
|
5168
|
+
return m && typeof m == "object" && Object.keys(m).forEach((u) => {
|
|
5169
|
+
u !== "items" && m[u] !== void 0 && m[u] !== null && (b[u] = m[u]);
|
|
5170
|
+
}), b;
|
|
5171
|
+
}, [c, m]);
|
|
5172
5172
|
return /* @__PURE__ */ w(Za, { ...l, items: d, children: i });
|
|
5173
5173
|
}, Bc = ({
|
|
5174
5174
|
id: e,
|
|
@@ -5180,15 +5180,15 @@ const jc = ({
|
|
|
5180
5180
|
src: o,
|
|
5181
5181
|
clickAction: c,
|
|
5182
5182
|
icon: s,
|
|
5183
|
-
token:
|
|
5183
|
+
token: h,
|
|
5184
5184
|
...g
|
|
5185
5185
|
}) => {
|
|
5186
|
-
const
|
|
5186
|
+
const m = k((A) => A.getDataSet), p = k((A) => A.getProps), f = y(
|
|
5187
5187
|
() => I(t, n),
|
|
5188
5188
|
[t, n]
|
|
5189
5189
|
), d = y(() => t && e ? p(t, e) : null, [t, e, p]), l = y(() => {
|
|
5190
|
-
if (f && a) return
|
|
5191
|
-
}, [f, a,
|
|
5190
|
+
if (f && a) return m(f, a);
|
|
5191
|
+
}, [f, a, m]), b = y(() => {
|
|
5192
5192
|
let A = o;
|
|
5193
5193
|
if (r || (l != null && l !== "" ? A = String(l) : (d == null ? void 0 : d.src) !== void 0 && (A = d.src)), !(typeof A == "string" && A.trim() === ""))
|
|
5194
5194
|
return A;
|
|
@@ -5205,11 +5205,11 @@ const jc = ({
|
|
|
5205
5205
|
!["src", "icon", "token"].includes(v) && d[v] !== void 0 && d[v] !== null && (A[v] = d[v]);
|
|
5206
5206
|
}), A;
|
|
5207
5207
|
}, [g, d]), D = y(() => {
|
|
5208
|
-
const A = d == null ? void 0 : d.token, v = { ...
|
|
5208
|
+
const A = d == null ? void 0 : d.token, v = { ...h, ...A };
|
|
5209
5209
|
if (!v || Object.keys(v).length === 0) return;
|
|
5210
5210
|
const x = {};
|
|
5211
|
-
return Object.entries(v).forEach(([N,
|
|
5212
|
-
if (
|
|
5211
|
+
return Object.entries(v).forEach(([N, O]) => {
|
|
5212
|
+
if (O !== "" && O !== void 0 && O !== null)
|
|
5213
5213
|
if ([
|
|
5214
5214
|
"containerSize",
|
|
5215
5215
|
"containerSizeLG",
|
|
@@ -5219,24 +5219,24 @@ const jc = ({
|
|
|
5219
5219
|
"textFontSizeSM",
|
|
5220
5220
|
"groupOverlapping"
|
|
5221
5221
|
].includes(N)) {
|
|
5222
|
-
const B = typeof
|
|
5222
|
+
const B = typeof O == "string" ? parseInt(O, 10) : O;
|
|
5223
5223
|
isNaN(B) || (x[N] = B);
|
|
5224
5224
|
} else
|
|
5225
|
-
x[N] =
|
|
5225
|
+
x[N] = O;
|
|
5226
5226
|
}), Object.keys(x).length > 0 ? x : void 0;
|
|
5227
|
-
}, [
|
|
5227
|
+
}, [h, d == null ? void 0 : d.token]), C = y(() => {
|
|
5228
5228
|
if (D)
|
|
5229
5229
|
return { components: { Avatar: D } };
|
|
5230
|
-
}, [D]),
|
|
5230
|
+
}, [D]), S = /* @__PURE__ */ w(
|
|
5231
5231
|
Dn,
|
|
5232
5232
|
{
|
|
5233
5233
|
...T,
|
|
5234
|
-
src:
|
|
5234
|
+
src: b,
|
|
5235
5235
|
icon: u,
|
|
5236
5236
|
children: i
|
|
5237
5237
|
}
|
|
5238
5238
|
);
|
|
5239
|
-
return C ? /* @__PURE__ */ w(_t, { theme: C, children:
|
|
5239
|
+
return C ? /* @__PURE__ */ w(_t, { theme: C, children: S }) : S;
|
|
5240
5240
|
}, Ia = {
|
|
5241
5241
|
0: "default",
|
|
5242
5242
|
1: "success",
|
|
@@ -5256,43 +5256,43 @@ const jc = ({
|
|
|
5256
5256
|
dataSetField: o,
|
|
5257
5257
|
dictCode: c,
|
|
5258
5258
|
autoColor: s = !1,
|
|
5259
|
-
colorMap:
|
|
5259
|
+
colorMap: h,
|
|
5260
5260
|
color: g,
|
|
5261
5261
|
// Filter out custom props that shouldn't be passed to DOM
|
|
5262
|
-
closeAction:
|
|
5262
|
+
closeAction: m,
|
|
5263
5263
|
clickAction: p,
|
|
5264
5264
|
...f
|
|
5265
5265
|
}) => {
|
|
5266
|
-
const d = k((
|
|
5266
|
+
const d = k((E) => E.getDataSet), l = k((E) => E.getProps), b = y(
|
|
5267
5267
|
() => I(t, a),
|
|
5268
5268
|
[t, a]
|
|
5269
|
-
), { options: u } =
|
|
5270
|
-
if (
|
|
5271
|
-
if (typeof
|
|
5269
|
+
), { options: u } = pe(c), T = y(() => {
|
|
5270
|
+
if (h) {
|
|
5271
|
+
if (typeof h == "string")
|
|
5272
5272
|
try {
|
|
5273
|
-
return JSON.parse(
|
|
5273
|
+
return JSON.parse(h);
|
|
5274
5274
|
} catch {
|
|
5275
5275
|
return;
|
|
5276
5276
|
}
|
|
5277
|
-
return
|
|
5278
|
-
}
|
|
5279
|
-
}, [
|
|
5280
|
-
if (
|
|
5281
|
-
}, [
|
|
5282
|
-
if (c && u.length > 0 &&
|
|
5283
|
-
const
|
|
5284
|
-
return (
|
|
5285
|
-
}
|
|
5286
|
-
return
|
|
5287
|
-
}, [c, u,
|
|
5288
|
-
if (!s ||
|
|
5289
|
-
const
|
|
5290
|
-
return T && T[
|
|
5291
|
-
}, [s,
|
|
5292
|
-
const
|
|
5277
|
+
return h;
|
|
5278
|
+
}
|
|
5279
|
+
}, [h]), D = y(() => t && e ? l(t, e) : null, [t, e, l]), C = y(() => {
|
|
5280
|
+
if (b && o) return d(b, o);
|
|
5281
|
+
}, [b, o, d]), S = y(() => r ? n : C != null && C !== "" ? String(C) : (D == null ? void 0 : D.content) !== void 0 ? D.content : n, [r, C, D == null ? void 0 : D.content, n]), A = y(() => {
|
|
5282
|
+
if (c && u.length > 0 && S !== void 0 && S !== null) {
|
|
5283
|
+
const E = re(u, S);
|
|
5284
|
+
return (E == null ? void 0 : E.label) ?? S;
|
|
5285
|
+
}
|
|
5286
|
+
return S;
|
|
5287
|
+
}, [c, u, S]), v = y(() => {
|
|
5288
|
+
if (!s || S === void 0 || S === null) return;
|
|
5289
|
+
const E = String(S).toLowerCase();
|
|
5290
|
+
return T && T[E] ? T[E] : Ia[E];
|
|
5291
|
+
}, [s, S, T]), x = y(() => {
|
|
5292
|
+
const E = { ...f };
|
|
5293
5293
|
return D && typeof D == "object" && Object.keys(D).forEach(($) => {
|
|
5294
|
-
!["content", "color"].includes($) && D[$] !== void 0 && D[$] !== null && (
|
|
5295
|
-
}),
|
|
5294
|
+
!["content", "color"].includes($) && D[$] !== void 0 && D[$] !== null && (E[$] = D[$]);
|
|
5295
|
+
}), E;
|
|
5296
5296
|
}, [f, D]), N = (D == null ? void 0 : D.color) ?? g, B = _e(N) || v;
|
|
5297
5297
|
return /* @__PURE__ */ w(Er, { ...x, color: B, children: A || i });
|
|
5298
5298
|
}, zc = ({
|
|
@@ -5305,43 +5305,43 @@ const jc = ({
|
|
|
5305
5305
|
showSizeChangeAction: o,
|
|
5306
5306
|
onChange: c,
|
|
5307
5307
|
onShowSizeChange: s,
|
|
5308
|
-
current:
|
|
5308
|
+
current: h,
|
|
5309
5309
|
pageSize: g,
|
|
5310
|
-
total:
|
|
5310
|
+
total: m,
|
|
5311
5311
|
...p
|
|
5312
5312
|
}) => {
|
|
5313
5313
|
const f = k((x) => x.addCommand), d = k((x) => x.setDataSet), l = y(
|
|
5314
5314
|
() => I(t, i),
|
|
5315
5315
|
[t, i]
|
|
5316
|
-
),
|
|
5316
|
+
), b = n ?? (l ? "" : void 0), u = y(() => ({}), []), T = k((x) => {
|
|
5317
5317
|
if (!l) return u;
|
|
5318
|
-
const N = x.getDataSet(l,
|
|
5318
|
+
const N = x.getDataSet(l, b ?? "");
|
|
5319
5319
|
return N != null && typeof N == "object" ? N : u;
|
|
5320
|
-
}), D = T.current ??
|
|
5320
|
+
}), D = T.current ?? h ?? 1, C = T.pageSize ?? g ?? 10, S = T.total ?? m ?? 0, A = j((x, N) => {
|
|
5321
5321
|
if (c) {
|
|
5322
5322
|
c(x, N);
|
|
5323
5323
|
return;
|
|
5324
5324
|
}
|
|
5325
|
-
l && d(l,
|
|
5326
|
-
}, [c, l,
|
|
5325
|
+
l && d(l, b ?? "", { current: x, pageSize: N, total: S }), a && t && f(t, Q(a, { page: x, pageSize: N }));
|
|
5326
|
+
}, [c, l, b, d, S, a, t, f]), v = j((x, N) => {
|
|
5327
5327
|
if (s) {
|
|
5328
5328
|
s(x, N);
|
|
5329
5329
|
return;
|
|
5330
5330
|
}
|
|
5331
|
-
l && d(l,
|
|
5332
|
-
}, [s, l,
|
|
5331
|
+
l && d(l, b ?? "", { current: x, pageSize: N, total: S }), o && t && f(t, Q(o, { current: x, pageSize: N }));
|
|
5332
|
+
}, [s, l, b, d, S, o, t, f]);
|
|
5333
5333
|
return /* @__PURE__ */ w(
|
|
5334
5334
|
_r,
|
|
5335
5335
|
{
|
|
5336
5336
|
...p,
|
|
5337
5337
|
current: D,
|
|
5338
5338
|
pageSize: C,
|
|
5339
|
-
total:
|
|
5339
|
+
total: S,
|
|
5340
5340
|
onChange: A,
|
|
5341
5341
|
onShowSizeChange: v,
|
|
5342
5342
|
showTotal: y(() => {
|
|
5343
5343
|
const x = p.showTotal;
|
|
5344
|
-
return typeof x == "string" ? (N,
|
|
5344
|
+
return typeof x == "string" ? (N, O) => x.replace("${total}", String(N)).replace("${range[0]}", String(O[0])).replace("${range[1]}", String(O[1])).replace("${range}", `${O[0]}-${O[1]}`) : x;
|
|
5345
5345
|
}, [p.showTotal])
|
|
5346
5346
|
}
|
|
5347
5347
|
);
|
|
@@ -5352,28 +5352,28 @@ const jc = ({
|
|
|
5352
5352
|
items: i,
|
|
5353
5353
|
children: n,
|
|
5354
5354
|
...a
|
|
5355
|
-
}) => /* @__PURE__ */ w(An, { ...a, items: i, children: n }),
|
|
5356
|
-
const a = Vt(null), o = Vt(null), [c, s] = ht(0), [
|
|
5355
|
+
}) => /* @__PURE__ */ w(An, { ...a, items: i, children: n }), Ce = (e) => Object.entries(e).map(([t, r]) => `${t.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${r}`).join("; "), to = ({ mode: e, arrowStyle: t, arrowIconPrev: r, arrowIconNext: i, children: n }) => {
|
|
5356
|
+
const a = Vt(null), o = Vt(null), [c, s] = ht(0), [h, g] = ht(!1), [m, p] = ht(0), [f, d] = ht(0), l = e === "horizontal";
|
|
5357
5357
|
Ot(() => {
|
|
5358
5358
|
const A = () => {
|
|
5359
5359
|
if (!a.current || !o.current) return;
|
|
5360
5360
|
const x = a.current, N = o.current;
|
|
5361
|
-
let
|
|
5362
|
-
l ? (
|
|
5361
|
+
let O = 0, B = 0, E = !1;
|
|
5362
|
+
l ? (O = x.clientWidth, B = N.scrollWidth, E = B > O) : (O = x.clientHeight, B = N.scrollHeight, E = B > O), d(O), p(B), g(E), E || s(0);
|
|
5363
5363
|
}, v = new ResizeObserver(A);
|
|
5364
5364
|
return a.current && v.observe(a.current), o.current && v.observe(o.current), A(), () => v.disconnect();
|
|
5365
5365
|
}, [l]);
|
|
5366
|
-
const
|
|
5366
|
+
const b = c <= 0, u = !h || c >= m - f, T = j(() => {
|
|
5367
5367
|
var v, x;
|
|
5368
|
-
if (
|
|
5368
|
+
if (b) return;
|
|
5369
5369
|
const A = l ? ((v = a.current) == null ? void 0 : v.clientWidth) ?? 200 : ((x = a.current) == null ? void 0 : x.clientHeight) ?? 200;
|
|
5370
5370
|
s((N) => Math.max(0, N - A));
|
|
5371
|
-
}, [l,
|
|
5372
|
-
var x, N,
|
|
5371
|
+
}, [l, b]), D = j(() => {
|
|
5372
|
+
var x, N, O, B, E, $;
|
|
5373
5373
|
if (u) return;
|
|
5374
|
-
const A = l ? ((x = a.current) == null ? void 0 : x.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, v = l ? (((
|
|
5374
|
+
const A = l ? ((x = a.current) == null ? void 0 : x.clientWidth) ?? 200 : ((N = a.current) == null ? void 0 : N.clientHeight) ?? 200, v = l ? (((O = o.current) == null ? void 0 : O.scrollWidth) ?? 0) - (((B = a.current) == null ? void 0 : B.clientWidth) ?? 0) : (((E = o.current) == null ? void 0 : E.scrollHeight) ?? 0) - ((($ = a.current) == null ? void 0 : $.clientHeight) ?? 0);
|
|
5375
5375
|
s((R) => Math.min(v, R + A));
|
|
5376
|
-
}, [l, u]), C = r || (l ? /* @__PURE__ */ w(jr, {}) : /* @__PURE__ */ w(Gn, {})),
|
|
5376
|
+
}, [l, u]), C = r || (l ? /* @__PURE__ */ w(jr, {}) : /* @__PURE__ */ w(Gn, {})), S = i || (l ? /* @__PURE__ */ w(Br, {}) : /* @__PURE__ */ w(Kr, {}));
|
|
5377
5377
|
return /* @__PURE__ */ at(
|
|
5378
5378
|
"div",
|
|
5379
5379
|
{
|
|
@@ -5392,7 +5392,7 @@ const jc = ({
|
|
|
5392
5392
|
size: "middle",
|
|
5393
5393
|
icon: C,
|
|
5394
5394
|
shape: "circle",
|
|
5395
|
-
disabled:
|
|
5395
|
+
disabled: b,
|
|
5396
5396
|
onClick: T,
|
|
5397
5397
|
style: {
|
|
5398
5398
|
flexShrink: 0,
|
|
@@ -5413,7 +5413,7 @@ const jc = ({
|
|
|
5413
5413
|
overflow: "hidden",
|
|
5414
5414
|
position: "relative",
|
|
5415
5415
|
display: "flex",
|
|
5416
|
-
justifyContent: l && !
|
|
5416
|
+
justifyContent: l && !h ? "center" : "flex-start"
|
|
5417
5417
|
},
|
|
5418
5418
|
children: /* @__PURE__ */ w(
|
|
5419
5419
|
"div",
|
|
@@ -5436,7 +5436,7 @@ const jc = ({
|
|
|
5436
5436
|
type: "text",
|
|
5437
5437
|
size: "middle",
|
|
5438
5438
|
shape: "circle",
|
|
5439
|
-
icon:
|
|
5439
|
+
icon: S,
|
|
5440
5440
|
disabled: u,
|
|
5441
5441
|
onClick: D,
|
|
5442
5442
|
style: {
|
|
@@ -5474,26 +5474,26 @@ const jc = ({
|
|
|
5474
5474
|
selectAction: o,
|
|
5475
5475
|
openChangeAction: c,
|
|
5476
5476
|
deselectAction: s,
|
|
5477
|
-
onClick:
|
|
5477
|
+
onClick: h,
|
|
5478
5478
|
onSelect: g,
|
|
5479
|
-
onOpenChange:
|
|
5479
|
+
onOpenChange: m,
|
|
5480
5480
|
onDeselect: p,
|
|
5481
5481
|
items: f,
|
|
5482
5482
|
selectedKeys: d,
|
|
5483
5483
|
openKeys: l,
|
|
5484
|
-
defaultOpenKeys:
|
|
5484
|
+
defaultOpenKeys: b,
|
|
5485
5485
|
styles: u,
|
|
5486
5486
|
classNames: T,
|
|
5487
5487
|
token: D,
|
|
5488
5488
|
expandIcon: C,
|
|
5489
|
-
overflowedIndicator:
|
|
5489
|
+
overflowedIndicator: S,
|
|
5490
5490
|
openKeysDataSet: A,
|
|
5491
5491
|
openKeysDataSetField: v,
|
|
5492
5492
|
mode: x,
|
|
5493
5493
|
inlineCollapsed: N,
|
|
5494
|
-
remoteUrl:
|
|
5494
|
+
remoteUrl: O,
|
|
5495
5495
|
overflowStrategy: B = "default",
|
|
5496
|
-
paginationArrowStyle:
|
|
5496
|
+
paginationArrowStyle: E,
|
|
5497
5497
|
paginationArrowIconPrev: $,
|
|
5498
5498
|
paginationArrowIconNext: R,
|
|
5499
5499
|
expandTrigger: z,
|
|
@@ -5547,8 +5547,8 @@ const jc = ({
|
|
|
5547
5547
|
[lt, tt]
|
|
5548
5548
|
), et = j(
|
|
5549
5549
|
(F) => {
|
|
5550
|
-
if (
|
|
5551
|
-
|
|
5550
|
+
if (h) {
|
|
5551
|
+
h(F);
|
|
5552
5552
|
return;
|
|
5553
5553
|
}
|
|
5554
5554
|
a && t && H(
|
|
@@ -5556,7 +5556,7 @@ const jc = ({
|
|
|
5556
5556
|
Q(a, { key: F.key, keyPath: F.keyPath })
|
|
5557
5557
|
);
|
|
5558
5558
|
},
|
|
5559
|
-
[
|
|
5559
|
+
[h, a, t, H]
|
|
5560
5560
|
), dt = j(
|
|
5561
5561
|
(F) => {
|
|
5562
5562
|
if (g) {
|
|
@@ -5585,8 +5585,8 @@ const jc = ({
|
|
|
5585
5585
|
]
|
|
5586
5586
|
), K = j(
|
|
5587
5587
|
(F) => {
|
|
5588
|
-
if (
|
|
5589
|
-
|
|
5588
|
+
if (m) {
|
|
5589
|
+
m(F);
|
|
5590
5590
|
return;
|
|
5591
5591
|
}
|
|
5592
5592
|
if (L)
|
|
@@ -5602,7 +5602,7 @@ const jc = ({
|
|
|
5602
5602
|
);
|
|
5603
5603
|
},
|
|
5604
5604
|
[
|
|
5605
|
-
|
|
5605
|
+
m,
|
|
5606
5606
|
L,
|
|
5607
5607
|
n,
|
|
5608
5608
|
ft,
|
|
@@ -5647,26 +5647,26 @@ const jc = ({
|
|
|
5647
5647
|
if (F) return /* @__PURE__ */ w(F, {});
|
|
5648
5648
|
}
|
|
5649
5649
|
return R;
|
|
5650
|
-
}, [R]), Et = y(() => B === "pagination" || B === "scroll" ? null :
|
|
5650
|
+
}, [R]), Et = y(() => B === "pagination" || B === "scroll" ? null : S, [B, S]), Ct = Wn(), Tt = e || Ct.replace(/:/g, "-"), Yt = y(() => {
|
|
5651
5651
|
var Mt;
|
|
5652
5652
|
if (!u || typeof u == "function") return "";
|
|
5653
5653
|
const F = (Mt = u.subMenu) == null ? void 0 : Mt.root;
|
|
5654
5654
|
if (!F) return "";
|
|
5655
5655
|
const gt = [], kt = `[data-and-menu-id="${Tt}"]`;
|
|
5656
5656
|
if (F.item && Object.keys(F.item).length > 0) {
|
|
5657
|
-
const Kt =
|
|
5657
|
+
const Kt = Ce(F.item);
|
|
5658
5658
|
gt.push(`${kt} .ant-menu-submenu > .ant-menu-submenu-title { ${Kt} }`);
|
|
5659
5659
|
}
|
|
5660
5660
|
if (F.itemIcon && Object.keys(F.itemIcon).length > 0) {
|
|
5661
|
-
const Kt =
|
|
5661
|
+
const Kt = Ce(F.itemIcon);
|
|
5662
5662
|
gt.push(`${kt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Kt} }`);
|
|
5663
5663
|
}
|
|
5664
5664
|
if (F.itemContent && Object.keys(F.itemContent).length > 0) {
|
|
5665
|
-
const Kt =
|
|
5665
|
+
const Kt = Ce(F.itemContent);
|
|
5666
5666
|
gt.push(`${kt} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Kt} }`);
|
|
5667
5667
|
}
|
|
5668
5668
|
if (F.selected && Object.keys(F.selected).length > 0) {
|
|
5669
|
-
const Kt =
|
|
5669
|
+
const Kt = Ce(F.selected);
|
|
5670
5670
|
gt.push(`${kt} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Kt} }`);
|
|
5671
5671
|
}
|
|
5672
5672
|
return gt.join(`
|
|
@@ -5681,7 +5681,7 @@ const jc = ({
|
|
|
5681
5681
|
items: mt,
|
|
5682
5682
|
selectedKeys: ot,
|
|
5683
5683
|
openKeys: ct,
|
|
5684
|
-
defaultOpenKeys:
|
|
5684
|
+
defaultOpenKeys: b,
|
|
5685
5685
|
onClick: et,
|
|
5686
5686
|
onSelect: dt,
|
|
5687
5687
|
onOpenChange: K,
|
|
@@ -5696,7 +5696,7 @@ const jc = ({
|
|
|
5696
5696
|
to,
|
|
5697
5697
|
{
|
|
5698
5698
|
mode: x || "horizontal",
|
|
5699
|
-
arrowStyle:
|
|
5699
|
+
arrowStyle: E,
|
|
5700
5700
|
arrowIconPrev: st,
|
|
5701
5701
|
arrowIconNext: St,
|
|
5702
5702
|
children: Z
|
|
@@ -5727,14 +5727,14 @@ const jc = ({
|
|
|
5727
5727
|
showZero: o,
|
|
5728
5728
|
overflowCount: c,
|
|
5729
5729
|
dot: s,
|
|
5730
|
-
offset:
|
|
5730
|
+
offset: h,
|
|
5731
5731
|
size: g,
|
|
5732
|
-
status:
|
|
5732
|
+
status: m,
|
|
5733
5733
|
text: p,
|
|
5734
5734
|
color: f,
|
|
5735
5735
|
title: d,
|
|
5736
5736
|
children: l,
|
|
5737
|
-
...
|
|
5737
|
+
...b
|
|
5738
5738
|
}) => {
|
|
5739
5739
|
const u = k((x) => x.getDataSet), T = y(
|
|
5740
5740
|
() => I(t, i),
|
|
@@ -5748,14 +5748,14 @@ const jc = ({
|
|
|
5748
5748
|
return /* @__PURE__ */ w(
|
|
5749
5749
|
$r,
|
|
5750
5750
|
{
|
|
5751
|
-
...
|
|
5751
|
+
...b,
|
|
5752
5752
|
count: C,
|
|
5753
5753
|
showZero: o,
|
|
5754
5754
|
overflowCount: c,
|
|
5755
5755
|
dot: s,
|
|
5756
|
-
offset:
|
|
5756
|
+
offset: h,
|
|
5757
5757
|
size: g,
|
|
5758
|
-
status:
|
|
5758
|
+
status: m,
|
|
5759
5759
|
text: p,
|
|
5760
5760
|
color: v,
|
|
5761
5761
|
title: d,
|
|
@@ -5785,24 +5785,24 @@ const jc = ({
|
|
|
5785
5785
|
placement: o,
|
|
5786
5786
|
color: c,
|
|
5787
5787
|
children: s,
|
|
5788
|
-
...
|
|
5788
|
+
...h
|
|
5789
5789
|
}) => {
|
|
5790
|
-
const g = k((u) => u.getDataSet),
|
|
5790
|
+
const g = k((u) => u.getDataSet), m = y(
|
|
5791
5791
|
() => I(t, i),
|
|
5792
5792
|
[t, i]
|
|
5793
5793
|
), p = y(() => {
|
|
5794
|
-
if (
|
|
5795
|
-
}, [
|
|
5794
|
+
if (m && n) return g(m, n);
|
|
5795
|
+
}, [m, n, g]), f = y(() => p ?? a, [p, a]), l = (Xt.useToken ? Xt.useToken() : { token: void 0 }).token, b = y(() => {
|
|
5796
5796
|
if (!(!c || typeof c != "string"))
|
|
5797
5797
|
return l && c in l ? l[c] : c;
|
|
5798
5798
|
}, [c, l]);
|
|
5799
5799
|
return /* @__PURE__ */ w(
|
|
5800
5800
|
$r.Ribbon,
|
|
5801
5801
|
{
|
|
5802
|
-
...
|
|
5802
|
+
...h,
|
|
5803
5803
|
text: f,
|
|
5804
5804
|
placement: o,
|
|
5805
|
-
color:
|
|
5805
|
+
color: b,
|
|
5806
5806
|
children: /* @__PURE__ */ w(
|
|
5807
5807
|
"div",
|
|
5808
5808
|
{
|
|
@@ -5869,9 +5869,9 @@ const jc = ({
|
|
|
5869
5869
|
columns: o,
|
|
5870
5870
|
gutter: c,
|
|
5871
5871
|
fresh: s,
|
|
5872
|
-
layoutChangeAction:
|
|
5872
|
+
layoutChangeAction: h,
|
|
5873
5873
|
onLayoutChange: g,
|
|
5874
|
-
itemRender:
|
|
5874
|
+
itemRender: m,
|
|
5875
5875
|
...p
|
|
5876
5876
|
}) => {
|
|
5877
5877
|
const f = k((x) => x.addCommand), d = y(
|
|
@@ -5880,25 +5880,25 @@ const jc = ({
|
|
|
5880
5880
|
), l = k((x) => {
|
|
5881
5881
|
var N;
|
|
5882
5882
|
return d && n ? (N = x.dataSets[d]) == null ? void 0 : N[n] : null;
|
|
5883
|
-
}),
|
|
5883
|
+
}), b = y(() => l && Array.isArray(l) ? l : ro(a), [l, a]), u = y(() => no(o), [o]), T = y(() => io(c), [c]), D = y(() => {
|
|
5884
5884
|
if (g) return g;
|
|
5885
|
-
if (
|
|
5885
|
+
if (h && t)
|
|
5886
5886
|
return (x) => {
|
|
5887
5887
|
f(t, {
|
|
5888
|
-
actionName:
|
|
5888
|
+
actionName: h,
|
|
5889
5889
|
arg: x,
|
|
5890
5890
|
timestamp: Date.now()
|
|
5891
5891
|
});
|
|
5892
5892
|
};
|
|
5893
|
-
}, [g,
|
|
5893
|
+
}, [g, h, t, f]), C = y(() => b.length > 0 ? b : r ? [
|
|
5894
5894
|
{ key: "1", height: 150, data: { title: "示例项 1" } },
|
|
5895
5895
|
{ key: "2", height: 200, data: { title: "示例项 2" } },
|
|
5896
5896
|
{ key: "3", height: 120, data: { title: "示例项 3" } },
|
|
5897
5897
|
{ key: "4", height: 180, data: { title: "示例项 4" } },
|
|
5898
5898
|
{ key: "5", height: 140, data: { title: "示例项 5" } },
|
|
5899
5899
|
{ key: "6", height: 160, data: { title: "示例项 6" } }
|
|
5900
|
-
] : [], [
|
|
5901
|
-
if (
|
|
5900
|
+
] : [], [b, r]), S = y(() => {
|
|
5901
|
+
if (m) return m;
|
|
5902
5902
|
if (r)
|
|
5903
5903
|
return (x) => {
|
|
5904
5904
|
var N;
|
|
@@ -5920,7 +5920,7 @@ const jc = ({
|
|
|
5920
5920
|
}
|
|
5921
5921
|
);
|
|
5922
5922
|
};
|
|
5923
|
-
}, [
|
|
5923
|
+
}, [m, r]), {
|
|
5924
5924
|
layoutChangeAction: A,
|
|
5925
5925
|
...v
|
|
5926
5926
|
} = p;
|
|
@@ -5932,7 +5932,7 @@ const jc = ({
|
|
|
5932
5932
|
columns: u,
|
|
5933
5933
|
gutter: T,
|
|
5934
5934
|
fresh: s,
|
|
5935
|
-
itemRender:
|
|
5935
|
+
itemRender: S,
|
|
5936
5936
|
onLayoutChange: D
|
|
5937
5937
|
}
|
|
5938
5938
|
);
|
|
@@ -5946,22 +5946,22 @@ const jc = ({
|
|
|
5946
5946
|
dataSetField: o,
|
|
5947
5947
|
title: c,
|
|
5948
5948
|
description: s,
|
|
5949
|
-
closeText:
|
|
5949
|
+
closeText: h,
|
|
5950
5950
|
closable: g,
|
|
5951
|
-
...
|
|
5951
|
+
...m
|
|
5952
5952
|
}) => {
|
|
5953
|
-
const p = k((
|
|
5953
|
+
const p = k((S) => S.getDataSet), f = k((S) => S.getProps), d = y(
|
|
5954
5954
|
() => I(t, a),
|
|
5955
5955
|
[t, a]
|
|
5956
|
-
), l = y(() => t && e ? f(t, e) : null, [t, e, f]),
|
|
5956
|
+
), l = y(() => t && e ? f(t, e) : null, [t, e, f]), b = y(() => {
|
|
5957
5957
|
if (d && o) return p(d, o);
|
|
5958
|
-
}, [d, o, p]), u = y(() => r ? c :
|
|
5959
|
-
const
|
|
5958
|
+
}, [d, o, p]), u = y(() => r ? c : b != null && b !== "" ? String(b) : (l == null ? void 0 : l.title) !== void 0 ? l.title : (l == null ? void 0 : l.message) !== void 0 ? l.message : c, [r, b, l == null ? void 0 : l.title, l == null ? void 0 : l.message, c]), T = y(() => {
|
|
5959
|
+
const S = { ...m, description: s };
|
|
5960
5960
|
return l && typeof l == "object" && Object.keys(l).forEach((A) => {
|
|
5961
|
-
A !== "title" && A !== "message" && l[A] !== void 0 && l[A] !== null && (
|
|
5962
|
-
}),
|
|
5963
|
-
}, [
|
|
5964
|
-
n && n(
|
|
5961
|
+
A !== "title" && A !== "message" && l[A] !== void 0 && l[A] !== null && (S[A] = l[A]);
|
|
5962
|
+
}), S;
|
|
5963
|
+
}, [m, s, l]), D = y(() => h ? { closeIcon: /* @__PURE__ */ w("span", { children: h }) } : g, [h, g]), C = j((S) => {
|
|
5964
|
+
n && n(S);
|
|
5965
5965
|
}, [n]);
|
|
5966
5966
|
return /* @__PURE__ */ w(
|
|
5967
5967
|
Nn,
|
|
@@ -5982,17 +5982,17 @@ const jc = ({
|
|
|
5982
5982
|
cancelAction: o,
|
|
5983
5983
|
onOk: c,
|
|
5984
5984
|
onCancel: s,
|
|
5985
|
-
open:
|
|
5985
|
+
open: h,
|
|
5986
5986
|
children: g,
|
|
5987
|
-
...
|
|
5987
|
+
...m
|
|
5988
5988
|
}) => {
|
|
5989
5989
|
const p = k((C) => C.addCommand), f = k((C) => C.getDataSet), d = k((C) => C.setDataSet), l = y(
|
|
5990
5990
|
() => I(t, i),
|
|
5991
5991
|
[t, i]
|
|
5992
|
-
),
|
|
5992
|
+
), b = y(() => {
|
|
5993
5993
|
if (l && n)
|
|
5994
5994
|
return f(l, n);
|
|
5995
|
-
}, [l, n, f]), u =
|
|
5995
|
+
}, [l, n, f]), u = b !== void 0 ? !!b : h, T = j(() => {
|
|
5996
5996
|
c && c(), l && n && d(l, n, !1), a && t && p(t, {
|
|
5997
5997
|
actionName: a,
|
|
5998
5998
|
arg: null,
|
|
@@ -6008,7 +6008,7 @@ const jc = ({
|
|
|
6008
6008
|
return /* @__PURE__ */ w(
|
|
6009
6009
|
kr,
|
|
6010
6010
|
{
|
|
6011
|
-
...
|
|
6011
|
+
...m,
|
|
6012
6012
|
open: u,
|
|
6013
6013
|
onOk: T,
|
|
6014
6014
|
onCancel: D,
|
|
@@ -6025,15 +6025,15 @@ const jc = ({
|
|
|
6025
6025
|
onClose: o,
|
|
6026
6026
|
open: c,
|
|
6027
6027
|
children: s,
|
|
6028
|
-
...
|
|
6028
|
+
...h
|
|
6029
6029
|
}) => {
|
|
6030
|
-
const g = k((u) => u.addCommand),
|
|
6030
|
+
const g = k((u) => u.addCommand), m = k((u) => u.getDataSet), p = k((u) => u.setDataSet), f = y(
|
|
6031
6031
|
() => I(t, i),
|
|
6032
6032
|
[t, i]
|
|
6033
6033
|
), d = y(() => {
|
|
6034
6034
|
if (f && n)
|
|
6035
|
-
return
|
|
6036
|
-
}, [f, n,
|
|
6035
|
+
return m(f, n);
|
|
6036
|
+
}, [f, n, m]), l = d !== void 0 ? !!d : c, b = j(() => {
|
|
6037
6037
|
o && o(), f && n && p(f, n, !1), a && t && g(t, {
|
|
6038
6038
|
actionName: a,
|
|
6039
6039
|
arg: null,
|
|
@@ -6043,9 +6043,9 @@ const jc = ({
|
|
|
6043
6043
|
return /* @__PURE__ */ w(
|
|
6044
6044
|
kn,
|
|
6045
6045
|
{
|
|
6046
|
-
...
|
|
6046
|
+
...h,
|
|
6047
6047
|
open: l,
|
|
6048
|
-
onClose:
|
|
6048
|
+
onClose: b,
|
|
6049
6049
|
children: s
|
|
6050
6050
|
}
|
|
6051
6051
|
);
|
|
@@ -6083,16 +6083,16 @@ const jc = ({
|
|
|
6083
6083
|
extra: o,
|
|
6084
6084
|
cover: c,
|
|
6085
6085
|
tabBarExtraContent: s,
|
|
6086
|
-
actions:
|
|
6086
|
+
actions: h,
|
|
6087
6087
|
// Tab 属性
|
|
6088
6088
|
tabList: g,
|
|
6089
|
-
activeTabKey:
|
|
6089
|
+
activeTabKey: m,
|
|
6090
6090
|
defaultActiveTabKey: p,
|
|
6091
6091
|
tabChangeAction: f,
|
|
6092
6092
|
onTabChange: d,
|
|
6093
6093
|
// 样式
|
|
6094
6094
|
styles: l,
|
|
6095
|
-
token:
|
|
6095
|
+
token: b,
|
|
6096
6096
|
// 过滤掉不应该传递给 Card 的 props (避免 React 警告)
|
|
6097
6097
|
// 这些属性主要由 GrapesJS 使用或在内部逻辑处理,不需要传递给 Antd Card
|
|
6098
6098
|
showHeader: u,
|
|
@@ -6101,13 +6101,13 @@ const jc = ({
|
|
|
6101
6101
|
// AntD v6 将 size="default" 重命名为 "medium",显式接收以便做兼容映射
|
|
6102
6102
|
size: C,
|
|
6103
6103
|
// 其他
|
|
6104
|
-
children:
|
|
6104
|
+
children: S,
|
|
6105
6105
|
...A
|
|
6106
6106
|
}) => {
|
|
6107
|
-
const v = k((U) => U.addCommand), x = k((U) => U.getDataSet), N = k((U) => U.setDataSet),
|
|
6107
|
+
const v = k((U) => U.addCommand), x = k((U) => U.getDataSet), N = k((U) => U.setDataSet), O = y(
|
|
6108
6108
|
() => I(t, i),
|
|
6109
6109
|
[t, i]
|
|
6110
|
-
), B = C === "default" ? "medium" : C,
|
|
6110
|
+
), B = C === "default" ? "medium" : C, E = y(() => {
|
|
6111
6111
|
const U = Ie(l, {});
|
|
6112
6112
|
return Object.fromEntries(
|
|
6113
6113
|
Object.entries(U).map(([lt, ft]) => [
|
|
@@ -6119,32 +6119,32 @@ const jc = ({
|
|
|
6119
6119
|
const U = co(g);
|
|
6120
6120
|
return U.length > 0 ? U : void 0;
|
|
6121
6121
|
}, [g]), z = y(() => {
|
|
6122
|
-
if (
|
|
6123
|
-
const U = x(
|
|
6122
|
+
if (O && n) {
|
|
6123
|
+
const U = x(O, `${n}.activeTabKey`);
|
|
6124
6124
|
if (typeof U == "string") return U;
|
|
6125
6125
|
}
|
|
6126
|
-
}, [
|
|
6126
|
+
}, [O, n, x]) ?? m, J = j((U) => {
|
|
6127
6127
|
if (d) {
|
|
6128
6128
|
d(U);
|
|
6129
6129
|
return;
|
|
6130
6130
|
}
|
|
6131
|
-
|
|
6132
|
-
}, [d,
|
|
6131
|
+
O && n && N(O, `${n}.activeTabKey`, U), f && t && v(t, Q(f, { key: U }));
|
|
6132
|
+
}, [d, O, n, N, f, t, v]), { titleSlot: H, extraSlot: W, coverSlot: L, actionsSlot: G, otherChildren: _, actionsFromChildren: M } = y(() => {
|
|
6133
6133
|
let U = null, lt = null, ft = null, tt = [];
|
|
6134
6134
|
const mt = [];
|
|
6135
6135
|
let ot = !1;
|
|
6136
|
-
return a && (U = a), o && (lt = o), c && (ft = c),
|
|
6136
|
+
return a && (U = a), o && (lt = o), c && (ft = c), h && (tt = h), Lt.Children.forEach(S, (ct) => {
|
|
6137
6137
|
if (!Lt.isValidElement(ct)) {
|
|
6138
6138
|
mt.push(ct);
|
|
6139
6139
|
return;
|
|
6140
6140
|
}
|
|
6141
6141
|
const et = ct.props, dt = et["data-slot-type"];
|
|
6142
|
-
dt === "title" && !a ? U = ct : dt === "extra" && !o ? lt = ct : dt === "cover" && !c ? ft = ct : dt === "actions" && !
|
|
6142
|
+
dt === "title" && !a ? U = ct : dt === "extra" && !o ? lt = ct : dt === "cover" && !c ? ft = ct : dt === "actions" && !h ? (tt = [ct], ot = !0) : dt === "body" && et.children ? mt.push(et.children) : mt.push(ct);
|
|
6143
6143
|
}), { titleSlot: U, extraSlot: lt, coverSlot: ft, actionsSlot: tt, otherChildren: mt, actionsFromChildren: ot };
|
|
6144
|
-
}, [
|
|
6145
|
-
const U = Ie(
|
|
6144
|
+
}, [S, a, o, c, h]), Y = y(() => {
|
|
6145
|
+
const U = Ie(b, {});
|
|
6146
6146
|
return M ? { actionsLiMargin: "0px", ...U } : U;
|
|
6147
|
-
}, [
|
|
6147
|
+
}, [b, M]), V = /* @__PURE__ */ w(
|
|
6148
6148
|
We,
|
|
6149
6149
|
{
|
|
6150
6150
|
...A,
|
|
@@ -6158,7 +6158,7 @@ const jc = ({
|
|
|
6158
6158
|
activeTabKey: z,
|
|
6159
6159
|
defaultActiveTabKey: p,
|
|
6160
6160
|
onTabChange: $ ? J : void 0,
|
|
6161
|
-
styles:
|
|
6161
|
+
styles: E,
|
|
6162
6162
|
children: _
|
|
6163
6163
|
}
|
|
6164
6164
|
);
|
|
@@ -6210,35 +6210,35 @@ const jc = ({
|
|
|
6210
6210
|
items: o,
|
|
6211
6211
|
clickAction: c,
|
|
6212
6212
|
selectAction: s,
|
|
6213
|
-
deselectAction:
|
|
6213
|
+
deselectAction: h,
|
|
6214
6214
|
openChangeAction: g,
|
|
6215
|
-
onOpenChange:
|
|
6215
|
+
onOpenChange: m,
|
|
6216
6216
|
children: p,
|
|
6217
6217
|
hasChildren: f,
|
|
6218
6218
|
...d
|
|
6219
6219
|
}) => {
|
|
6220
|
-
const l = k((v) => v.addCommand),
|
|
6220
|
+
const l = k((v) => v.addCommand), b = y(
|
|
6221
6221
|
() => I(t, i),
|
|
6222
6222
|
[t, i]
|
|
6223
6223
|
), u = k((v) => {
|
|
6224
|
-
if (
|
|
6225
|
-
return n ? v.getDataSet(
|
|
6224
|
+
if (b)
|
|
6225
|
+
return n ? v.getDataSet(b, n) : v.dataSets[b];
|
|
6226
6226
|
}), T = y(() => {
|
|
6227
6227
|
if (u == null) return;
|
|
6228
6228
|
if (Array.isArray(u)) return u;
|
|
6229
6229
|
const v = u;
|
|
6230
6230
|
if (Array.isArray(v == null ? void 0 : v.items)) return v.items;
|
|
6231
6231
|
if (Array.isArray(v == null ? void 0 : v.value)) return v.value;
|
|
6232
|
-
}, [u]), D = y(() => r ? T ?? Ar(o) ?? [] :
|
|
6232
|
+
}, [u]), D = y(() => r ? T ?? Ar(o) ?? [] : b ? T ?? [] : Ar(o) ?? [], [r, b, T, o]), C = j(
|
|
6233
6233
|
(v, x) => {
|
|
6234
|
-
if (
|
|
6235
|
-
|
|
6234
|
+
if (m) {
|
|
6235
|
+
m(v, x);
|
|
6236
6236
|
return;
|
|
6237
6237
|
}
|
|
6238
6238
|
g && t && l(t, Q(g, { open: v, source: x.source }));
|
|
6239
6239
|
},
|
|
6240
|
-
[
|
|
6241
|
-
),
|
|
6240
|
+
[m, g, t, l]
|
|
6241
|
+
), S = y(
|
|
6242
6242
|
() => ({
|
|
6243
6243
|
items: Jr(D),
|
|
6244
6244
|
onClick: (v) => {
|
|
@@ -6255,9 +6255,9 @@ const jc = ({
|
|
|
6255
6255
|
);
|
|
6256
6256
|
},
|
|
6257
6257
|
onDeselect: (v) => {
|
|
6258
|
-
|
|
6258
|
+
h && t && l(
|
|
6259
6259
|
t,
|
|
6260
|
-
Q(
|
|
6260
|
+
Q(h, {
|
|
6261
6261
|
key: v.key,
|
|
6262
6262
|
keyPath: v.keyPath,
|
|
6263
6263
|
selectedKeys: v.selectedKeys
|
|
@@ -6265,7 +6265,7 @@ const jc = ({
|
|
|
6265
6265
|
);
|
|
6266
6266
|
}
|
|
6267
6267
|
}),
|
|
6268
|
-
[D, c, s,
|
|
6268
|
+
[D, c, s, h, t, l]
|
|
6269
6269
|
), A = y(() => /* @__PURE__ */ at(
|
|
6270
6270
|
"div",
|
|
6271
6271
|
{
|
|
@@ -6281,7 +6281,7 @@ const jc = ({
|
|
|
6281
6281
|
]
|
|
6282
6282
|
}
|
|
6283
6283
|
), [p, r, a, f]);
|
|
6284
|
-
return /* @__PURE__ */ w(En, { ...d, menu:
|
|
6284
|
+
return /* @__PURE__ */ w(En, { ...d, menu: S, onOpenChange: C, children: A });
|
|
6285
6285
|
}, Fc = ({
|
|
6286
6286
|
id: e,
|
|
6287
6287
|
sessionId: t,
|
|
@@ -6309,12 +6309,12 @@ const jc = ({
|
|
|
6309
6309
|
value: a,
|
|
6310
6310
|
...o
|
|
6311
6311
|
}) => {
|
|
6312
|
-
const c = k((d) => d.getDataSet), s = k((d) => d.getProps),
|
|
6312
|
+
const c = k((d) => d.getDataSet), s = k((d) => d.getProps), h = y(
|
|
6313
6313
|
() => I(t, i),
|
|
6314
6314
|
[t, i]
|
|
6315
|
-
), g = y(() => t && e ? s(t, e) : null, [t, e, s]),
|
|
6316
|
-
if (
|
|
6317
|
-
}, [
|
|
6315
|
+
), g = y(() => t && e ? s(t, e) : null, [t, e, s]), m = y(() => {
|
|
6316
|
+
if (h && n) return c(h, n);
|
|
6317
|
+
}, [h, n, c]), p = y(() => r ? a : m != null && m !== "" ? String(m) : (g == null ? void 0 : g.value) !== void 0 ? g.value : a, [r, m, g == null ? void 0 : g.value, a]), f = y(() => {
|
|
6318
6318
|
const d = { ...o };
|
|
6319
6319
|
return g && typeof g == "object" && Object.keys(g).forEach((l) => {
|
|
6320
6320
|
l !== "value" && g[l] !== void 0 && g[l] !== null && (d[l] = g[l]);
|
|
@@ -6347,25 +6347,25 @@ const jc = ({
|
|
|
6347
6347
|
draggerIcon: o,
|
|
6348
6348
|
collapsibleIcon: c,
|
|
6349
6349
|
resizeAction: s,
|
|
6350
|
-
resizeEndAction:
|
|
6350
|
+
resizeEndAction: h,
|
|
6351
6351
|
onResize: g,
|
|
6352
|
-
onResizeEnd:
|
|
6352
|
+
onResizeEnd: m,
|
|
6353
6353
|
styles: p,
|
|
6354
6354
|
token: f,
|
|
6355
6355
|
children: d,
|
|
6356
6356
|
renderPanelContent: l,
|
|
6357
|
-
...
|
|
6357
|
+
...b
|
|
6358
6358
|
}) => {
|
|
6359
|
-
const u = k((
|
|
6359
|
+
const u = k((E) => E.addCommand), T = y(
|
|
6360
6360
|
() => Ve(i, []),
|
|
6361
6361
|
[i]
|
|
6362
|
-
), D = y(() => Ve(f, {}), [f]), C = y(() => se(o), [o]),
|
|
6362
|
+
), D = y(() => Ve(f, {}), [f]), C = y(() => se(o), [o]), S = y(() => {
|
|
6363
6363
|
if (c) {
|
|
6364
6364
|
if (typeof c == "string") {
|
|
6365
|
-
const
|
|
6366
|
-
return
|
|
6367
|
-
start: se(
|
|
6368
|
-
end: se(
|
|
6365
|
+
const E = Ve(c, null);
|
|
6366
|
+
return E && typeof E == "object" ? {
|
|
6367
|
+
start: se(E.start),
|
|
6368
|
+
end: se(E.end)
|
|
6369
6369
|
} : void 0;
|
|
6370
6370
|
}
|
|
6371
6371
|
return {
|
|
@@ -6374,24 +6374,24 @@ const jc = ({
|
|
|
6374
6374
|
};
|
|
6375
6375
|
}
|
|
6376
6376
|
}, [c]), A = j(
|
|
6377
|
-
(
|
|
6377
|
+
(E) => {
|
|
6378
6378
|
if (g) {
|
|
6379
|
-
g(
|
|
6379
|
+
g(E);
|
|
6380
6380
|
return;
|
|
6381
6381
|
}
|
|
6382
|
-
s && t && u(t, Q(s, { sizes:
|
|
6382
|
+
s && t && u(t, Q(s, { sizes: E }));
|
|
6383
6383
|
},
|
|
6384
6384
|
[g, s, t, u]
|
|
6385
6385
|
), v = j(
|
|
6386
|
-
(
|
|
6387
|
-
if (
|
|
6388
|
-
|
|
6386
|
+
(E) => {
|
|
6387
|
+
if (m) {
|
|
6388
|
+
m(E);
|
|
6389
6389
|
return;
|
|
6390
6390
|
}
|
|
6391
|
-
|
|
6391
|
+
h && t && u(t, Q(h, { sizes: E }));
|
|
6392
6392
|
},
|
|
6393
|
-
[
|
|
6394
|
-
), x = () => d && Lt.Children.count(d) > 0 ? Lt.Children.map(d, (
|
|
6393
|
+
[m, h, t, u]
|
|
6394
|
+
), x = () => d && Lt.Children.count(d) > 0 ? Lt.Children.map(d, (E, $) => {
|
|
6395
6395
|
const R = T[$] || {};
|
|
6396
6396
|
return /* @__PURE__ */ w(
|
|
6397
6397
|
je.Panel,
|
|
@@ -6401,19 +6401,19 @@ const jc = ({
|
|
|
6401
6401
|
max: R.max,
|
|
6402
6402
|
collapsible: R.collapsible,
|
|
6403
6403
|
resizable: R.resizable !== !1,
|
|
6404
|
-
children:
|
|
6404
|
+
children: E
|
|
6405
6405
|
},
|
|
6406
6406
|
R.key || $
|
|
6407
6407
|
);
|
|
6408
|
-
}) : T.map((
|
|
6408
|
+
}) : T.map((E, $) => /* @__PURE__ */ w(
|
|
6409
6409
|
je.Panel,
|
|
6410
6410
|
{
|
|
6411
|
-
defaultSize:
|
|
6412
|
-
min:
|
|
6413
|
-
max:
|
|
6414
|
-
collapsible:
|
|
6415
|
-
resizable:
|
|
6416
|
-
children: l ? l(
|
|
6411
|
+
defaultSize: E.defaultSize || void 0,
|
|
6412
|
+
min: E.min || void 0,
|
|
6413
|
+
max: E.max || void 0,
|
|
6414
|
+
collapsible: E.collapsible,
|
|
6415
|
+
resizable: E.resizable !== !1,
|
|
6416
|
+
children: l ? l(E.key, $) : /* @__PURE__ */ at(
|
|
6417
6417
|
"div",
|
|
6418
6418
|
{
|
|
6419
6419
|
style: {
|
|
@@ -6431,19 +6431,19 @@ const jc = ({
|
|
|
6431
6431
|
}
|
|
6432
6432
|
)
|
|
6433
6433
|
},
|
|
6434
|
-
|
|
6435
|
-
)), { layout: N, ...
|
|
6434
|
+
E.key || $
|
|
6435
|
+
)), { layout: N, ...O } = b, B = /* @__PURE__ */ w("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ w(
|
|
6436
6436
|
je,
|
|
6437
6437
|
{
|
|
6438
|
-
...
|
|
6438
|
+
...O,
|
|
6439
6439
|
orientation: n,
|
|
6440
6440
|
lazy: a,
|
|
6441
6441
|
onResize: A,
|
|
6442
6442
|
onResizeEnd: v,
|
|
6443
|
-
style: { height: "100%", width: "100%", ...
|
|
6443
|
+
style: { height: "100%", width: "100%", ...O.style },
|
|
6444
6444
|
styles: p,
|
|
6445
6445
|
draggerIcon: C,
|
|
6446
|
-
collapsibleIcon:
|
|
6446
|
+
collapsibleIcon: S,
|
|
6447
6447
|
children: x()
|
|
6448
6448
|
},
|
|
6449
6449
|
n
|
|
@@ -6460,7 +6460,7 @@ const jc = ({
|
|
|
6460
6460
|
max: o,
|
|
6461
6461
|
collapsible: c,
|
|
6462
6462
|
resizable: s,
|
|
6463
|
-
sessionId:
|
|
6463
|
+
sessionId: h,
|
|
6464
6464
|
...g
|
|
6465
6465
|
}) => /* @__PURE__ */ w(
|
|
6466
6466
|
"div",
|
|
@@ -6480,42 +6480,42 @@ const jc = ({
|
|
|
6480
6480
|
renderEmpty: o,
|
|
6481
6481
|
items: c,
|
|
6482
6482
|
maxCount: s,
|
|
6483
|
-
containerStyle:
|
|
6483
|
+
containerStyle: h,
|
|
6484
6484
|
children: g,
|
|
6485
|
-
"page-disabled":
|
|
6485
|
+
"page-disabled": m = !1,
|
|
6486
6486
|
"page-defaultPageSize": p = 10,
|
|
6487
6487
|
"page-pageSizeOptions": f = ["10", "20", "30", "40"],
|
|
6488
6488
|
"page-showSizeChanger": d = !0,
|
|
6489
6489
|
"page-showQuickJumper": l = !1,
|
|
6490
|
-
"page-simple":
|
|
6490
|
+
"page-simple": b = !1,
|
|
6491
6491
|
"page-size": u = "small",
|
|
6492
6492
|
"page-showLessItems": T = !1
|
|
6493
6493
|
}) => {
|
|
6494
|
-
const D = u === "default" ? "middle" : u, C = k((R) => R.getDataSet),
|
|
6494
|
+
const D = u === "default" ? "middle" : u, C = k((R) => R.getDataSet), S = y(
|
|
6495
6495
|
() => I(t, i),
|
|
6496
6496
|
[t, i]
|
|
6497
|
-
), [A, v] = ht(1), [x, N] = ht(p),
|
|
6498
|
-
if (
|
|
6499
|
-
const R = C(
|
|
6497
|
+
), [A, v] = ht(1), [x, N] = ht(p), O = y(() => {
|
|
6498
|
+
if (S && n) {
|
|
6499
|
+
const R = C(S, n);
|
|
6500
6500
|
return Array.isArray(R) ? R : [];
|
|
6501
6501
|
}
|
|
6502
6502
|
return [];
|
|
6503
|
-
}, [
|
|
6503
|
+
}, [S, n, C]), B = y(() => r ? O.length > 0 ? O : c || [] : S ? O : c || [], [r, S, O, c]), E = y(() => {
|
|
6504
6504
|
let R = B;
|
|
6505
|
-
if (!
|
|
6505
|
+
if (!m) {
|
|
6506
6506
|
const z = (A - 1) * x, J = z + x;
|
|
6507
6507
|
R = R.slice(z, J);
|
|
6508
6508
|
}
|
|
6509
6509
|
return s ? R.slice(0, s) : R;
|
|
6510
|
-
}, [B,
|
|
6510
|
+
}, [B, m, A, x, s]);
|
|
6511
6511
|
if (!B || B.length === 0)
|
|
6512
6512
|
return o ? /* @__PURE__ */ w(he, { children: o() }) : /* @__PURE__ */ w("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6513
6513
|
const $ = (R, z) => {
|
|
6514
6514
|
v(R), z && N(z);
|
|
6515
6515
|
};
|
|
6516
|
-
return /* @__PURE__ */ at("div", { style: { display: "flex", flexDirection: "column", ...
|
|
6517
|
-
/* @__PURE__ */ w("div", { style: { flex: 1 }, children:
|
|
6518
|
-
!
|
|
6516
|
+
return /* @__PURE__ */ at("div", { style: { display: "flex", flexDirection: "column", ...h }, children: [
|
|
6517
|
+
/* @__PURE__ */ w("div", { style: { flex: 1 }, children: E.map((R, z) => /* @__PURE__ */ w(Lt.Fragment, { children: a ? a(R, z) : /* @__PURE__ */ w("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(R) }) }, R.id || z)) }),
|
|
6518
|
+
!m && B.length > 0 && /* @__PURE__ */ w("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ w(
|
|
6519
6519
|
_r,
|
|
6520
6520
|
{
|
|
6521
6521
|
current: A,
|
|
@@ -6525,7 +6525,7 @@ const jc = ({
|
|
|
6525
6525
|
pageSizeOptions: f,
|
|
6526
6526
|
showSizeChanger: d,
|
|
6527
6527
|
showQuickJumper: l,
|
|
6528
|
-
simple:
|
|
6528
|
+
simple: b,
|
|
6529
6529
|
size: D,
|
|
6530
6530
|
showLessItems: T
|
|
6531
6531
|
}
|
|
@@ -6541,20 +6541,20 @@ const jc = ({
|
|
|
6541
6541
|
color: o,
|
|
6542
6542
|
spin: c = !1,
|
|
6543
6543
|
rotate: s = 0,
|
|
6544
|
-
twoToneColor:
|
|
6544
|
+
twoToneColor: h,
|
|
6545
6545
|
style: g,
|
|
6546
|
-
styles:
|
|
6546
|
+
styles: m,
|
|
6547
6547
|
onClick: p
|
|
6548
6548
|
}) => {
|
|
6549
6549
|
const f = typeof n == "string" ? n.trim() : "", d = {
|
|
6550
6550
|
fontSize: a,
|
|
6551
6551
|
color: o,
|
|
6552
6552
|
cursor: p ? "pointer" : void 0,
|
|
6553
|
-
...
|
|
6553
|
+
...m,
|
|
6554
6554
|
...g
|
|
6555
6555
|
};
|
|
6556
6556
|
if (f) {
|
|
6557
|
-
const
|
|
6557
|
+
const b = {
|
|
6558
6558
|
display: "inline-flex",
|
|
6559
6559
|
alignItems: "center",
|
|
6560
6560
|
justifyContent: "center",
|
|
@@ -6570,7 +6570,7 @@ const jc = ({
|
|
|
6570
6570
|
"span",
|
|
6571
6571
|
{
|
|
6572
6572
|
className: "and-icon-svg-root",
|
|
6573
|
-
style:
|
|
6573
|
+
style: b,
|
|
6574
6574
|
onClick: p,
|
|
6575
6575
|
role: p ? "button" : void 0,
|
|
6576
6576
|
children: /* @__PURE__ */ w("span", { style: c ? { animation: "and-icon-spin 1s linear infinite", display: "inline-flex" } : { display: "inline-flex" }, children: /* @__PURE__ */ w(
|
|
@@ -6592,7 +6592,7 @@ const jc = ({
|
|
|
6592
6592
|
style: d,
|
|
6593
6593
|
spin: c,
|
|
6594
6594
|
rotate: s,
|
|
6595
|
-
twoToneColor:
|
|
6595
|
+
twoToneColor: h || void 0,
|
|
6596
6596
|
onClick: p
|
|
6597
6597
|
}
|
|
6598
6598
|
) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
|
|
@@ -6607,17 +6607,17 @@ const jc = ({
|
|
|
6607
6607
|
clickAction: c,
|
|
6608
6608
|
style: s
|
|
6609
6609
|
}) => {
|
|
6610
|
-
const
|
|
6610
|
+
const h = k((l) => l.addCommand), g = k((l) => l.getDataSet), m = y(
|
|
6611
6611
|
() => I(t, i),
|
|
6612
6612
|
[t, i]
|
|
6613
6613
|
), p = y(() => {
|
|
6614
|
-
if (
|
|
6615
|
-
const l = g(
|
|
6614
|
+
if (m && n) {
|
|
6615
|
+
const l = g(m, n);
|
|
6616
6616
|
return Array.isArray(l) ? l : [];
|
|
6617
6617
|
}
|
|
6618
6618
|
return [];
|
|
6619
|
-
}, [
|
|
6620
|
-
c && t &&
|
|
6619
|
+
}, [m, n, g]), f = p.length > 0 ? p : a || [], d = (l) => {
|
|
6620
|
+
c && t && h(t, Q(c, l));
|
|
6621
6621
|
};
|
|
6622
6622
|
return /* @__PURE__ */ w("div", { style: { display: "grid", gridTemplateColumns: `repeat(${o}, 1fr)`, gap: 16, ...s }, children: f.map((l) => /* @__PURE__ */ w(
|
|
6623
6623
|
We,
|
|
@@ -6640,7 +6640,7 @@ const jc = ({
|
|
|
6640
6640
|
l.originalPrice
|
|
6641
6641
|
] })
|
|
6642
6642
|
] }),
|
|
6643
|
-
l.tags && l.tags.length > 0 && /* @__PURE__ */ w(Ut, { size: 4, wrap: !0, children: l.tags.map((
|
|
6643
|
+
l.tags && l.tags.length > 0 && /* @__PURE__ */ w(Ut, { size: 4, wrap: !0, children: l.tags.map((b, u) => /* @__PURE__ */ w(Er, { color: "blue", children: b }, u)) })
|
|
6644
6644
|
] })
|
|
6645
6645
|
}
|
|
6646
6646
|
)
|
|
@@ -6684,35 +6684,49 @@ const jc = ({
|
|
|
6684
6684
|
style: o,
|
|
6685
6685
|
id: c,
|
|
6686
6686
|
componentResolver: s,
|
|
6687
|
-
placeholder:
|
|
6687
|
+
placeholder: h,
|
|
6688
6688
|
placeholderFlexDirection: g = "column",
|
|
6689
|
-
index:
|
|
6689
|
+
index: m
|
|
6690
6690
|
}) => {
|
|
6691
|
-
const p = y(() => {
|
|
6692
|
-
if (!r) return;
|
|
6693
|
-
const
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6691
|
+
const { storeBaseKey: p, arrayIndex: f } = y(() => {
|
|
6692
|
+
if (!r) return { storeBaseKey: void 0, arrayIndex: null };
|
|
6693
|
+
const A = r.split(".")[0], { baseName: v, index: x } = ye(A);
|
|
6694
|
+
let N = x;
|
|
6695
|
+
if (N === null && m !== void 0 && m !== null) {
|
|
6696
|
+
const O = Number(m);
|
|
6697
|
+
N = Number.isFinite(O) ? O : null;
|
|
6698
|
+
}
|
|
6699
|
+
return {
|
|
6700
|
+
storeBaseKey: I(i, v),
|
|
6701
|
+
arrayIndex: N
|
|
6702
|
+
};
|
|
6703
|
+
}, [r, i, m]), d = k((A) => {
|
|
6704
|
+
if (!p) return null;
|
|
6705
|
+
const v = A.dataSets[p];
|
|
6706
|
+
if (f !== null) {
|
|
6707
|
+
const x = v == null ? void 0 : v.value;
|
|
6708
|
+
return Array.isArray(x) ? x[f] ?? null : null;
|
|
6709
|
+
}
|
|
6710
|
+
return v ?? null;
|
|
6711
|
+
}), l = y(() => {
|
|
6712
|
+
if (!r || !d) return { componentName: "", props: {} };
|
|
6713
|
+
const v = r.split(".")[1], x = v ? d[v] || {} : d;
|
|
6714
|
+
if (typeof x == "object" && x !== null) {
|
|
6715
|
+
const { componentName: N, props: O, ...B } = x;
|
|
6702
6716
|
return {
|
|
6703
|
-
componentName:
|
|
6704
|
-
props:
|
|
6717
|
+
componentName: N || "",
|
|
6718
|
+
props: O || B || {}
|
|
6705
6719
|
};
|
|
6706
6720
|
}
|
|
6707
6721
|
return { componentName: "", props: {} };
|
|
6708
|
-
}, [r, i,
|
|
6709
|
-
...
|
|
6710
|
-
...
|
|
6722
|
+
}, [r, i, d]), b = l.componentName || e, u = y(() => ({
|
|
6723
|
+
...l.props,
|
|
6724
|
+
...m !== void 0 ? { index: m } : {},
|
|
6711
6725
|
...t,
|
|
6712
6726
|
sessionId: i
|
|
6713
|
-
}), [
|
|
6727
|
+
}), [l.props, t, i, m]), T = h || "请配置组件";
|
|
6714
6728
|
if (a) {
|
|
6715
|
-
const
|
|
6729
|
+
const A = g === "row";
|
|
6716
6730
|
return /* @__PURE__ */ at(
|
|
6717
6731
|
"div",
|
|
6718
6732
|
{
|
|
@@ -6725,7 +6739,7 @@ const jc = ({
|
|
|
6725
6739
|
flexDirection: g,
|
|
6726
6740
|
alignItems: "center",
|
|
6727
6741
|
justifyContent: "center",
|
|
6728
|
-
gap:
|
|
6742
|
+
gap: A ? 8 : 0,
|
|
6729
6743
|
border: "2px dashed #d9d9d9",
|
|
6730
6744
|
borderRadius: 4,
|
|
6731
6745
|
color: "#8c8c8c",
|
|
@@ -6733,32 +6747,32 @@ const jc = ({
|
|
|
6733
6747
|
boxSizing: "border-box"
|
|
6734
6748
|
},
|
|
6735
6749
|
children: [
|
|
6736
|
-
/* @__PURE__ */ w(Qn, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...
|
|
6750
|
+
/* @__PURE__ */ w(Qn, { style: { fontSize: 20, flexShrink: 0, color: "#bfbfbf", ...A ? {} : { marginBottom: 4 } } }),
|
|
6737
6751
|
/* @__PURE__ */ w("div", { style: { fontWeight: 500, fontSize: 12 }, children: n || "动态容器" }),
|
|
6738
|
-
/* @__PURE__ */ w("div", { style: { fontSize: 11, opacity: 0.7 }, children:
|
|
6739
|
-
r && /* @__PURE__ */ w("div", { style: { fontSize: 10, opacity: 0.5, marginTop:
|
|
6752
|
+
/* @__PURE__ */ w("div", { style: { fontSize: 11, opacity: 0.7 }, children: b ? `${b}` : "未配置" }),
|
|
6753
|
+
r && /* @__PURE__ */ w("div", { style: { fontSize: 10, opacity: 0.5, marginTop: A ? 0 : 2 }, children: r })
|
|
6740
6754
|
]
|
|
6741
6755
|
}
|
|
6742
6756
|
);
|
|
6743
6757
|
}
|
|
6744
|
-
const
|
|
6745
|
-
if (!
|
|
6758
|
+
const D = Pt(), C = s || D.componentResolver;
|
|
6759
|
+
if (!C)
|
|
6746
6760
|
return /* @__PURE__ */ w(
|
|
6747
6761
|
xr,
|
|
6748
6762
|
{
|
|
6749
6763
|
id: c,
|
|
6750
|
-
title:
|
|
6764
|
+
title: T,
|
|
6751
6765
|
description: "动态容器未配置组件解析器",
|
|
6752
6766
|
style: o
|
|
6753
6767
|
}
|
|
6754
6768
|
);
|
|
6755
|
-
const
|
|
6756
|
-
return
|
|
6769
|
+
const S = b ? C(b) : null;
|
|
6770
|
+
return S ? /* @__PURE__ */ w(Hn, { fallback: /* @__PURE__ */ w("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ w(Rn, {}) }), children: /* @__PURE__ */ w("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...o }, children: /* @__PURE__ */ w(S, { ...u }) }) }) : /* @__PURE__ */ w(
|
|
6757
6771
|
xr,
|
|
6758
6772
|
{
|
|
6759
6773
|
id: c,
|
|
6760
|
-
title:
|
|
6761
|
-
description:
|
|
6774
|
+
title: T,
|
|
6775
|
+
description: b ? `组件 "${b}" 未找到` : void 0,
|
|
6762
6776
|
style: o
|
|
6763
6777
|
}
|
|
6764
6778
|
);
|
|
@@ -6772,19 +6786,19 @@ const jc = ({
|
|
|
6772
6786
|
gap: o = [100, 100],
|
|
6773
6787
|
offset: c,
|
|
6774
6788
|
inherit: s = !0,
|
|
6775
|
-
font:
|
|
6789
|
+
font: h,
|
|
6776
6790
|
develop: g,
|
|
6777
|
-
token:
|
|
6791
|
+
token: m,
|
|
6778
6792
|
children: p,
|
|
6779
6793
|
...f
|
|
6780
6794
|
}) => {
|
|
6781
6795
|
const d = {
|
|
6782
|
-
color: (
|
|
6783
|
-
fontSize: (
|
|
6784
|
-
fontWeight: (
|
|
6785
|
-
fontFamily: (
|
|
6786
|
-
fontStyle: (
|
|
6787
|
-
textAlign: (
|
|
6796
|
+
color: (h == null ? void 0 : h.color) ?? "rgba(0, 0, 0, 0.15)",
|
|
6797
|
+
fontSize: (h == null ? void 0 : h.fontSize) ?? 16,
|
|
6798
|
+
fontWeight: (h == null ? void 0 : h.fontWeight) ?? "normal",
|
|
6799
|
+
fontFamily: (h == null ? void 0 : h.fontFamily) ?? "sans-serif",
|
|
6800
|
+
fontStyle: (h == null ? void 0 : h.fontStyle) ?? "normal",
|
|
6801
|
+
textAlign: (h == null ? void 0 : h.textAlign) ?? "center"
|
|
6788
6802
|
}, l = /* @__PURE__ */ w(
|
|
6789
6803
|
jn,
|
|
6790
6804
|
{
|
|
@@ -6816,12 +6830,12 @@ const jc = ({
|
|
|
6816
6830
|
) : p
|
|
6817
6831
|
}
|
|
6818
6832
|
);
|
|
6819
|
-
return
|
|
6833
|
+
return m && Object.keys(m).length > 0 ? /* @__PURE__ */ w(
|
|
6820
6834
|
_t,
|
|
6821
6835
|
{
|
|
6822
6836
|
theme: {
|
|
6823
6837
|
algorithm: Xt.defaultAlgorithm,
|
|
6824
|
-
token:
|
|
6838
|
+
token: m
|
|
6825
6839
|
},
|
|
6826
6840
|
children: l
|
|
6827
6841
|
}
|
|
@@ -6849,11 +6863,11 @@ function Ft(e, t) {
|
|
|
6849
6863
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6850
6864
|
id: c,
|
|
6851
6865
|
sessionId: s,
|
|
6852
|
-
develop:
|
|
6866
|
+
develop: h,
|
|
6853
6867
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6854
6868
|
style: g,
|
|
6855
6869
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6856
|
-
className:
|
|
6870
|
+
className: m,
|
|
6857
6871
|
// 数据相关
|
|
6858
6872
|
dataSet: p,
|
|
6859
6873
|
dataSetField: f,
|
|
@@ -6866,7 +6880,7 @@ function Ft(e, t) {
|
|
|
6866
6880
|
// 我们仍然尝试从 props 中解构它们(如果存在)。
|
|
6867
6881
|
// 使用 as any 规避 TS 错误
|
|
6868
6882
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6869
|
-
height:
|
|
6883
|
+
height: b,
|
|
6870
6884
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6871
6885
|
width: u,
|
|
6872
6886
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -6875,14 +6889,14 @@ function Ft(e, t) {
|
|
|
6875
6889
|
padding: D,
|
|
6876
6890
|
// 需要解析的 JSON 配置
|
|
6877
6891
|
title: C,
|
|
6878
|
-
legend:
|
|
6892
|
+
legend: S,
|
|
6879
6893
|
label: A,
|
|
6880
6894
|
tooltip: v,
|
|
6881
6895
|
animate: x,
|
|
6882
6896
|
scale: N,
|
|
6883
|
-
interaction:
|
|
6897
|
+
interaction: O,
|
|
6884
6898
|
annotations: B,
|
|
6885
|
-
axis:
|
|
6899
|
+
axis: E,
|
|
6886
6900
|
scrollbar: $,
|
|
6887
6901
|
slider: R,
|
|
6888
6902
|
theme: z,
|
|
@@ -6897,10 +6911,10 @@ function Ft(e, t) {
|
|
|
6897
6911
|
if (st !== void 0) return st;
|
|
6898
6912
|
}
|
|
6899
6913
|
const nt = wt(d);
|
|
6900
|
-
return nt !== void 0 ? nt :
|
|
6901
|
-
}, [d, p, f, G,
|
|
6914
|
+
return nt !== void 0 ? nt : h ? n : [];
|
|
6915
|
+
}, [d, p, f, G, h]), Y = (nt) => {
|
|
6902
6916
|
var st;
|
|
6903
|
-
if (L.current = nt, !
|
|
6917
|
+
if (L.current = nt, !h && s) {
|
|
6904
6918
|
const St = wt(H);
|
|
6905
6919
|
St && typeof St == "object" && Object.entries(St).forEach(([Et, Ct]) => {
|
|
6906
6920
|
typeof Ct == "string" && nt.on(Et, (Tt) => {
|
|
@@ -6921,12 +6935,12 @@ function Ft(e, t) {
|
|
|
6921
6935
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
6922
6936
|
...V,
|
|
6923
6937
|
// 设计器模式禁用动画
|
|
6924
|
-
animate:
|
|
6938
|
+
animate: h ? !1 : wt(x),
|
|
6925
6939
|
onReady: Y,
|
|
6926
6940
|
...W
|
|
6927
6941
|
}, lt = wt(C);
|
|
6928
6942
|
lt !== void 0 && (U.title = lt);
|
|
6929
|
-
const ft = wt(
|
|
6943
|
+
const ft = wt(S);
|
|
6930
6944
|
ft !== void 0 && (U.legend = ft);
|
|
6931
6945
|
const tt = wt(A);
|
|
6932
6946
|
tt !== void 0 && (U.label = tt);
|
|
@@ -6934,11 +6948,11 @@ function Ft(e, t) {
|
|
|
6934
6948
|
mt !== void 0 && (U.tooltip = mt);
|
|
6935
6949
|
const ot = wt(N);
|
|
6936
6950
|
ot !== void 0 && (U.scale = ot);
|
|
6937
|
-
const ct = wt(
|
|
6951
|
+
const ct = wt(O);
|
|
6938
6952
|
ct !== void 0 && (U.interaction = ct);
|
|
6939
6953
|
const et = wt(B);
|
|
6940
6954
|
et !== void 0 && (U.annotations = et);
|
|
6941
|
-
const dt = wt(
|
|
6955
|
+
const dt = wt(E);
|
|
6942
6956
|
dt !== void 0 && (U.axis = dt);
|
|
6943
6957
|
const K = wt($);
|
|
6944
6958
|
K !== void 0 && (U.scrollbar = K);
|
|
@@ -7062,19 +7076,19 @@ const fo = [
|
|
|
7062
7076
|
line: c,
|
|
7063
7077
|
point: s,
|
|
7064
7078
|
// 布尔配置
|
|
7065
|
-
stack:
|
|
7079
|
+
stack: h,
|
|
7066
7080
|
percent: g,
|
|
7067
|
-
symmetry:
|
|
7081
|
+
symmetry: m,
|
|
7068
7082
|
diff: p,
|
|
7069
7083
|
...f
|
|
7070
7084
|
} = e, d = {
|
|
7071
7085
|
...f
|
|
7072
7086
|
};
|
|
7073
|
-
t && (d.xField = t), r && (d.yField = r), i && (d.seriesField = i), n && (d.colorField = n), a && (d.shapeField = a), o && (d.sizeField = o),
|
|
7087
|
+
t && (d.xField = t), r && (d.yField = r), i && (d.seriesField = i), n && (d.colorField = n), a && (d.shapeField = a), o && (d.sizeField = o), h !== void 0 && (d.stack = h === !0 || h === "true"), g !== void 0 && (d.percent = g === !0 || g === "true"), m !== void 0 && (d.symmetry = m === !0 || m === "true"), p !== void 0 && (d.diff = p === !0 || p === "true");
|
|
7074
7088
|
const l = wt(c);
|
|
7075
7089
|
l !== void 0 && (d.line = l);
|
|
7076
|
-
const
|
|
7077
|
-
return
|
|
7090
|
+
const b = wt(s);
|
|
7091
|
+
return b !== void 0 && (d.point = b), /* @__PURE__ */ w(vo, { ...d });
|
|
7078
7092
|
}, bo = Ft(ri, {
|
|
7079
7093
|
chartType: "AndVDualAxes",
|
|
7080
7094
|
defaultHeight: 300,
|
|
@@ -7105,8 +7119,8 @@ const fo = [
|
|
|
7105
7119
|
console.log("[AndVDualAxes] props:", { xField: t, yField: r, children: a }), t && (c.xField = t);
|
|
7106
7120
|
const s = wt(r);
|
|
7107
7121
|
s ? c.yField = s : r && (c.yField = r), i && (c.seriesField = i), n && (c.colorField = n);
|
|
7108
|
-
const
|
|
7109
|
-
return
|
|
7122
|
+
const h = wt(a);
|
|
7123
|
+
return h !== void 0 && (c.children = h), /* @__PURE__ */ w(bo, { ...c });
|
|
7110
7124
|
}, wo = Ft(ni, {
|
|
7111
7125
|
chartType: "AndVGauge",
|
|
7112
7126
|
defaultHeight: 300,
|
|
@@ -7155,16 +7169,16 @@ const fo = [
|
|
|
7155
7169
|
percent: c,
|
|
7156
7170
|
// JSON 配置
|
|
7157
7171
|
conversionTag: s,
|
|
7158
|
-
markBackground:
|
|
7172
|
+
markBackground: h,
|
|
7159
7173
|
...g
|
|
7160
|
-
} = e,
|
|
7174
|
+
} = e, m = {
|
|
7161
7175
|
...g
|
|
7162
7176
|
};
|
|
7163
|
-
t && (
|
|
7177
|
+
t && (m.xField = t), r && (m.yField = r), i && (m.seriesField = i), n && (m.colorField = n), a !== void 0 && (m.stack = a === !0 || a === "true"), o !== void 0 && (m.group = o === !0 || o === "true"), c !== void 0 && (m.percent = c === !0 || c === "true");
|
|
7164
7178
|
const p = wt(s);
|
|
7165
|
-
p !== void 0 && (
|
|
7166
|
-
const f = wt(
|
|
7167
|
-
return f !== void 0 && (
|
|
7179
|
+
p !== void 0 && (m.conversionTag = p);
|
|
7180
|
+
const f = wt(h);
|
|
7181
|
+
return f !== void 0 && (m.markBackground = f), console.log("[AndVBar] chartProps:", JSON.stringify(m, null, 2)), /* @__PURE__ */ w(Do, { ...m });
|
|
7168
7182
|
};
|
|
7169
7183
|
export {
|
|
7170
7184
|
Zo as AVAILABLE_TOKENS,
|
|
@@ -7259,10 +7273,10 @@ export {
|
|
|
7259
7273
|
Gt as mergeStoreProps,
|
|
7260
7274
|
Lo as mountReactComponent,
|
|
7261
7275
|
er as parseAction,
|
|
7262
|
-
|
|
7276
|
+
ye as parseArrayNotation,
|
|
7263
7277
|
yt as parseChangeAction,
|
|
7264
7278
|
fi as parseClickAction,
|
|
7265
|
-
|
|
7279
|
+
Ae as parseNestedPath,
|
|
7266
7280
|
Go as parseQueryAction,
|
|
7267
7281
|
Vr as processValidationRules,
|
|
7268
7282
|
Xo as req,
|
|
@@ -7275,7 +7289,7 @@ export {
|
|
|
7275
7289
|
k as useAndStore,
|
|
7276
7290
|
Pi as useApiService,
|
|
7277
7291
|
Po as useCommandsStore,
|
|
7278
|
-
|
|
7292
|
+
pe as useDictOptions,
|
|
7279
7293
|
Rt as useFieldValidation,
|
|
7280
7294
|
Yo as useItemStore,
|
|
7281
7295
|
Uo as usePopCommand,
|