@nuwatop/code-canvas-core 0.5.35 → 0.5.36
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,16 +1,16 @@
|
|
|
1
1
|
import { jsx as b, jsxs as ue, Fragment as yt } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as Dr } from "react-dom/client";
|
|
3
|
-
import { theme as Ie, ConfigProvider as Ke, Button as et, Input as Lt, InputNumber as Ln, Space as
|
|
3
|
+
import { theme as Ie, ConfigProvider as Ke, Button as et, Input as Lt, InputNumber as Ln, Space as Qe, Select as Vn, Switch as Ar, DatePicker as qn, TimePicker as xr, Radio as Ut, Checkbox as ht, Rate as Cr, Slider as kr, Cascader as Nr, TreeSelect as Tr, message as Mt, Upload as _r, Image as Xe, AutoComplete as Er, Form as Bt, Transfer as Or, Segmented as Mr, Modal as Wn, Tooltip as $r, Table as Rr, Flex as Hn, Typography as un, Tabs as jr, Tree as Kr, Timeline as Br, Steps as zr, Statistic as Zt, Carousel as Lr, Avatar as Vr, Tag as Un, Pagination as Pn, Breadcrumb as qr, Menu as Wr, Calendar as Hr, Badge as Yn, Masonry as Ur, Alert as Fn, Drawer as Pr, Result as Yr, Card as Xt, Divider as vn, Dropdown as Fr, Row as Jr, Col as Gr, QRCode as Qr, Splitter as Pt, Spin as Jn, Watermark as Zr, Empty as Xr } from "antd";
|
|
4
4
|
import { StyleProvider as Ir, createCache as ei } from "@ant-design/cssinjs";
|
|
5
5
|
import ti from "antd/locale/zh_CN";
|
|
6
6
|
import { create as ni } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as ri } from "zustand/middleware";
|
|
8
8
|
import { immer as ii } from "zustand/middleware/immer";
|
|
9
9
|
import Ve, { useMemo as y, useCallback as j, useEffect as xe, createContext as oi, useContext as Ct, useState as ve, useRef as Me, useLayoutEffect as Gn, useId as ai, Suspense as ci } from "react";
|
|
10
|
-
import * as
|
|
10
|
+
import * as Je from "@ant-design/icons";
|
|
11
11
|
import { CloseCircleOutlined as si, PlusOutlined as Qn, UploadOutlined as li, MenuOutlined as ui, MinusOutlined as fi, LeftOutlined as Zn, RightOutlined as Xn, UpOutlined as di, DownOutlined as In, ApiOutlined as mi, InboxOutlined as hi, FilePdfOutlined as yi } from "@ant-design/icons";
|
|
12
12
|
import gi from "clsx";
|
|
13
|
-
import
|
|
13
|
+
import Fe from "dayjs";
|
|
14
14
|
import { pdfjs as er, Document as pi, Page as vi } from "react-pdf";
|
|
15
15
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
16
16
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
@@ -54,12 +54,12 @@ const Ni = () => {
|
|
|
54
54
|
}
|
|
55
55
|
const c = Dr(t);
|
|
56
56
|
$t.set(t, c);
|
|
57
|
-
const l = window.__ANTD_CSSINJS_CONTAINER__,
|
|
57
|
+
const l = window.__ANTD_CSSINJS_CONTAINER__, d = window.__ANTD_IFRAME_DOC__, v = !r && l && d && d.defaultView !== null, h = v ? l : window.document.head, g = v ? d : window.document, p = Ti(g), m = (((k = window.__GLS_COMPS__) == null ? void 0 : k.theme) || i) === "dark" ? Ie.darkAlgorithm : Ie.defaultAlgorithm, u = (w) => /* @__PURE__ */ b(Ir, { cache: p, container: h, hashPriority: "high", children: /* @__PURE__ */ b(
|
|
58
58
|
Ke,
|
|
59
59
|
{
|
|
60
60
|
locale: ti,
|
|
61
61
|
theme: {
|
|
62
|
-
algorithm:
|
|
62
|
+
algorithm: m,
|
|
63
63
|
cssVar: {
|
|
64
64
|
key: "antd-canvas"
|
|
65
65
|
// 唯一标识符
|
|
@@ -137,11 +137,11 @@ function _i(t, e, n) {
|
|
|
137
137
|
const i = Array.isArray(t) ? [...t] : { ...t };
|
|
138
138
|
let r = i;
|
|
139
139
|
for (let a = 0; a < e.length - 1; a++) {
|
|
140
|
-
const c = e[a], l = e[a + 1],
|
|
141
|
-
let v = r[
|
|
140
|
+
const c = e[a], l = e[a + 1], d = c.key;
|
|
141
|
+
let v = r[d];
|
|
142
142
|
v == null ? v = l.type === "array" ? [] : {} : l.type === "array" && !Array.isArray(v) ? v = [] : l.type === "property" && Array.isArray(v) ? v = Object.fromEntries(
|
|
143
143
|
v.map((h, g) => [String(g), h]).filter(([, h]) => h !== void 0)
|
|
144
|
-
) : v = Array.isArray(v) ? [...v] : { ...v }, r[
|
|
144
|
+
) : v = Array.isArray(v) ? [...v] : { ...v }, r[d] = v, r = v;
|
|
145
145
|
}
|
|
146
146
|
const o = e[e.length - 1];
|
|
147
147
|
return r[o.key] = n, i;
|
|
@@ -163,11 +163,11 @@ const bn = {
|
|
|
163
163
|
function Sn(t, e, n, i) {
|
|
164
164
|
const { baseName: r, index: o } = gt(e);
|
|
165
165
|
if (t.dataSets[r] || (t.dataSets[r] = {}), o !== null) {
|
|
166
|
-
const
|
|
167
|
-
let v =
|
|
166
|
+
const d = t.dataSets[r];
|
|
167
|
+
let v = d.value;
|
|
168
168
|
Array.isArray(v) || (v = []);
|
|
169
169
|
const h = v[o], g = n.length === 0 ? h : At(h ?? {}, n), p = i(g), f = n.length === 0 ? p : _i(h ?? {}, n, p), s = [...v];
|
|
170
|
-
s[o] = f, t.dataSets[r] = { ...
|
|
170
|
+
s[o] = f, t.dataSets[r] = { ...d, value: s };
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
173
|
if (n.length === 0) {
|
|
@@ -175,8 +175,8 @@ function Sn(t, e, n, i) {
|
|
|
175
175
|
return;
|
|
176
176
|
}
|
|
177
177
|
let a = t.dataSets[r];
|
|
178
|
-
for (let
|
|
179
|
-
const v = n[
|
|
178
|
+
for (let d = 0; d < n.length - 1; d++) {
|
|
179
|
+
const v = n[d], h = n[d + 1];
|
|
180
180
|
let g = a[v.key];
|
|
181
181
|
g == null && (a[v.key] = h.type === "array" ? [] : {}, g = a[v.key]), a = g;
|
|
182
182
|
}
|
|
@@ -205,8 +205,8 @@ const _ = ni()(
|
|
|
205
205
|
const l = c == null ? void 0 : c.value;
|
|
206
206
|
if (!Array.isArray(l) || l[a] === void 0)
|
|
207
207
|
return;
|
|
208
|
-
const
|
|
209
|
-
return i ? At(
|
|
208
|
+
const d = l[a];
|
|
209
|
+
return i ? At(d, mt(i)) : d;
|
|
210
210
|
}
|
|
211
211
|
if (c)
|
|
212
212
|
return i ? At(c, mt(i)) : c;
|
|
@@ -379,14 +379,14 @@ function it(t, e = null, n = {}) {
|
|
|
379
379
|
if (!o)
|
|
380
380
|
return { actionName: r, arg: e };
|
|
381
381
|
const a = o.split(",").map((l) => {
|
|
382
|
-
const
|
|
383
|
-
if (
|
|
382
|
+
const d = l.trim();
|
|
383
|
+
if (d === "@value")
|
|
384
384
|
return e;
|
|
385
|
-
if (
|
|
386
|
-
const v =
|
|
385
|
+
if (d.startsWith("@")) {
|
|
386
|
+
const v = d.substring(1);
|
|
387
387
|
return n[v];
|
|
388
388
|
}
|
|
389
|
-
return
|
|
389
|
+
return d.startsWith('"') && d.endsWith('"') || d.startsWith("'") && d.endsWith("'") ? d.slice(1, -1) : isNaN(Number(d)) ? d : Number(d);
|
|
390
390
|
}), c = a.length === 1 ? a[0] : a;
|
|
391
391
|
return { actionName: r, arg: c };
|
|
392
392
|
}
|
|
@@ -443,8 +443,8 @@ function zt(t, e, n) {
|
|
|
443
443
|
return Ri() ? zt = Reflect.construct.bind() : zt = function(r, o, a) {
|
|
444
444
|
var c = [null];
|
|
445
445
|
c.push.apply(c, o);
|
|
446
|
-
var l = Function.bind.apply(r, c),
|
|
447
|
-
return a && xt(
|
|
446
|
+
var l = Function.bind.apply(r, c), d = new l();
|
|
447
|
+
return a && xt(d, a.prototype), d;
|
|
448
448
|
}, zt.apply(null, arguments);
|
|
449
449
|
}
|
|
450
450
|
function ji(t) {
|
|
@@ -573,14 +573,14 @@ function Vi(t, e, n, i, r) {
|
|
|
573
573
|
return g;
|
|
574
574
|
}), o;
|
|
575
575
|
}
|
|
576
|
-
var a = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], c = Object.keys(t), l = c.length,
|
|
577
|
-
var f = function(
|
|
578
|
-
if (v.push.apply(v,
|
|
576
|
+
var a = e.firstFields === !0 ? Object.keys(t) : e.firstFields || [], c = Object.keys(t), l = c.length, d = 0, v = [], h = new Promise(function(g, p) {
|
|
577
|
+
var f = function(m) {
|
|
578
|
+
if (v.push.apply(v, m), d++, d === l)
|
|
579
579
|
return i(v), v.length ? p(new Dn(v, rn(v))) : g(r);
|
|
580
580
|
};
|
|
581
581
|
c.length || (i(v), g(r)), c.forEach(function(s) {
|
|
582
|
-
var
|
|
583
|
-
a.indexOf(s) !== -1 ? wn(
|
|
582
|
+
var m = t[s];
|
|
583
|
+
a.indexOf(s) !== -1 ? wn(m, n, f) : zi(m, n, f);
|
|
584
584
|
});
|
|
585
585
|
});
|
|
586
586
|
return h.catch(function(g) {
|
|
@@ -646,7 +646,7 @@ var nr = function(e, n, i, r, o, a) {
|
|
|
646
646
|
}, l.v6 = function(C) {
|
|
647
647
|
return C && C.exact ? c : new RegExp("" + e(C) + r + e(C), "g");
|
|
648
648
|
};
|
|
649
|
-
var
|
|
649
|
+
var d = "(?:(?:[a-z]+:)?//)", v = "(?:\\S+(?::\\S*)?@)?", h = l.v4().source, g = l.v6().source, p = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", f = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", s = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", u = '(?:[/?#][^\\s"]*)?', A = "(?:" + d + "|www\\.)" + v + "(?:localhost|" + h + "|" + g + "|" + p + f + s + ")" + m + u;
|
|
650
650
|
return Rt = new RegExp("(?:^" + A + "$)", "i"), Rt;
|
|
651
651
|
}, Cn = {
|
|
652
652
|
// http://emailregex.com/
|
|
@@ -704,10 +704,10 @@ var nr = function(e, n, i, r, o, a) {
|
|
|
704
704
|
var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], c = e.type;
|
|
705
705
|
a.indexOf(c) > -1 ? St[c](n) || r.push(Le(o.messages.types[c], e.fullField, e.type)) : c && typeof n !== e.type && r.push(Le(o.messages.types[c], e.fullField, e.type));
|
|
706
706
|
}, Yi = function(e, n, i, r, o) {
|
|
707
|
-
var a = typeof e.len == "number", c = typeof e.min == "number", l = typeof e.max == "number",
|
|
707
|
+
var a = typeof e.len == "number", c = typeof e.min == "number", l = typeof e.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, v = n, h = null, g = typeof n == "number", p = typeof n == "string", f = Array.isArray(n);
|
|
708
708
|
if (g ? h = "number" : p ? h = "string" : f && (h = "array"), !h)
|
|
709
709
|
return !1;
|
|
710
|
-
f && (v = n.length), p && (v = n.replace(
|
|
710
|
+
f && (v = n.length), p && (v = n.replace(d, "_").length), a ? v !== e.len && r.push(Le(o.messages[h].len, e.fullField, e.len)) : c && !l && v < e.min ? r.push(Le(o.messages[h].min, e.fullField, e.min)) : l && !c && v > e.max ? r.push(Le(o.messages[h].max, e.fullField, e.max)) : c && l && (v < e.min || v > e.max) && r.push(Le(o.messages[h].range, e.fullField, e.min, e.max));
|
|
711
711
|
}, ft = "enum", Fi = function(e, n, i, r, o) {
|
|
712
712
|
e[ft] = Array.isArray(e[ft]) ? e[ft] : [], e[ft].indexOf(n) === -1 && r.push(Le(o.messages[ft], e.fullField, e[ft].join(", ")));
|
|
713
713
|
}, Ji = function(e, n, i, r, o) {
|
|
@@ -937,21 +937,21 @@ var an = on(), kt = /* @__PURE__ */ function() {
|
|
|
937
937
|
var a = this;
|
|
938
938
|
r === void 0 && (r = {}), o === void 0 && (o = function() {
|
|
939
939
|
});
|
|
940
|
-
var c = i, l = r,
|
|
941
|
-
if (typeof l == "function" && (
|
|
942
|
-
return
|
|
940
|
+
var c = i, l = r, d = o;
|
|
941
|
+
if (typeof l == "function" && (d = l, l = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
942
|
+
return d && d(null, c), Promise.resolve(c);
|
|
943
943
|
function v(s) {
|
|
944
|
-
var
|
|
944
|
+
var m = [], u = {};
|
|
945
945
|
function A(k) {
|
|
946
946
|
if (Array.isArray(k)) {
|
|
947
947
|
var w;
|
|
948
|
-
|
|
948
|
+
m = (w = m).concat.apply(w, k);
|
|
949
949
|
} else
|
|
950
|
-
|
|
950
|
+
m.push(k);
|
|
951
951
|
}
|
|
952
952
|
for (var C = 0; C < s.length; C++)
|
|
953
953
|
A(s[C]);
|
|
954
|
-
|
|
954
|
+
m.length ? (u = rn(m), d(m, u)) : d(null, c);
|
|
955
955
|
}
|
|
956
956
|
if (l.messages) {
|
|
957
957
|
var h = this.messages();
|
|
@@ -960,8 +960,8 @@ var an = on(), kt = /* @__PURE__ */ function() {
|
|
|
960
960
|
l.messages = this.messages();
|
|
961
961
|
var g = {}, p = l.keys || Object.keys(this.rules);
|
|
962
962
|
p.forEach(function(s) {
|
|
963
|
-
var
|
|
964
|
-
|
|
963
|
+
var m = a.rules[s], u = c[s];
|
|
964
|
+
m.forEach(function(A) {
|
|
965
965
|
var C = A;
|
|
966
966
|
typeof C.transform == "function" && (c === i && (c = ot({}, c)), u = c[s] = C.transform(u)), typeof C == "function" ? C = {
|
|
967
967
|
validator: C
|
|
@@ -974,7 +974,7 @@ var an = on(), kt = /* @__PURE__ */ function() {
|
|
|
974
974
|
});
|
|
975
975
|
});
|
|
976
976
|
var f = {};
|
|
977
|
-
return Vi(g, l, function(s,
|
|
977
|
+
return Vi(g, l, function(s, m) {
|
|
978
978
|
var u = s.rule, A = (u.type === "object" || u.type === "array") && (typeof u.fields == "object" || typeof u.defaultField == "object");
|
|
979
979
|
A = A && (u.required || !u.required && s.value), u.field = s.field;
|
|
980
980
|
function C(D, x) {
|
|
@@ -989,12 +989,12 @@ var an = on(), kt = /* @__PURE__ */ function() {
|
|
|
989
989
|
!l.suppressWarning && x.length && t.warning("async-validator:", x), x.length && u.message !== void 0 && (x = [].concat(u.message));
|
|
990
990
|
var E = x.map(An(u, c));
|
|
991
991
|
if (l.first && E.length)
|
|
992
|
-
return f[u.field] = 1,
|
|
992
|
+
return f[u.field] = 1, m(E);
|
|
993
993
|
if (!A)
|
|
994
|
-
|
|
994
|
+
m(E);
|
|
995
995
|
else {
|
|
996
996
|
if (u.required && !s.value)
|
|
997
|
-
return u.message !== void 0 ? E = [].concat(u.message).map(An(u, c)) : l.error && (E = [l.error(u, Le(l.messages.required, u.field))]),
|
|
997
|
+
return u.message !== void 0 ? E = [].concat(u.message).map(An(u, c)) : l.error && (E = [l.error(u, Le(l.messages.required, u.field))]), m(E);
|
|
998
998
|
var N = {};
|
|
999
999
|
u.defaultField && Object.keys(s.value).map(function(T) {
|
|
1000
1000
|
N[T] = u.defaultField;
|
|
@@ -1007,7 +1007,7 @@ var an = on(), kt = /* @__PURE__ */ function() {
|
|
|
1007
1007
|
var M = new t(S);
|
|
1008
1008
|
M.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), M.validate(s.value, s.rule.options || l, function(T) {
|
|
1009
1009
|
var O = [];
|
|
1010
|
-
E && E.length && O.push.apply(O, E), T && T.length && O.push.apply(O, T),
|
|
1010
|
+
E && E.length && O.push.apply(O, E), T && T.length && O.push.apply(O, T), m(O.length ? O : null);
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
@@ -1084,7 +1084,7 @@ function ir(t, e, n, i) {
|
|
|
1084
1084
|
});
|
|
1085
1085
|
}
|
|
1086
1086
|
function Be(t) {
|
|
1087
|
-
const { rules: e, dataSet: n, dataSetField: i, sessionId: r, id: o, develop: a } = t, c = _((w) => w.setValidateResult), l = _((w) => w.getProps),
|
|
1087
|
+
const { rules: e, dataSet: n, dataSetField: i, sessionId: r, id: o, develop: a } = t, c = _((w) => w.setValidateResult), l = _((w) => w.getProps), d = _((w) => w.setProps), v = y(
|
|
1088
1088
|
() => wt(r, n),
|
|
1089
1089
|
[r, n]
|
|
1090
1090
|
), h = _(
|
|
@@ -1103,7 +1103,7 @@ function Be(t) {
|
|
|
1103
1103
|
), s = y(
|
|
1104
1104
|
() => n ? ee(r, `${n}_validateAction`) : void 0,
|
|
1105
1105
|
[r, n]
|
|
1106
|
-
),
|
|
1106
|
+
), m = _(
|
|
1107
1107
|
(w) => {
|
|
1108
1108
|
var D;
|
|
1109
1109
|
return s ? (D = w.dataSets[s]) == null ? void 0 : D.validate : void 0;
|
|
@@ -1113,10 +1113,10 @@ function Be(t) {
|
|
|
1113
1113
|
const D = w ?? "";
|
|
1114
1114
|
if (r && n && i && c(r, n, i, D), r && o) {
|
|
1115
1115
|
const x = l(r, o) || {};
|
|
1116
|
-
|
|
1116
|
+
d(r, o, { ...x, validateStatus: D ? "error" : void 0, help: D });
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
|
-
[r, n, i, o, c, l,
|
|
1119
|
+
[r, n, i, o, c, l, d]
|
|
1120
1120
|
), A = j(
|
|
1121
1121
|
(w) => {
|
|
1122
1122
|
const D = rr(e || []);
|
|
@@ -1133,13 +1133,13 @@ function Be(t) {
|
|
|
1133
1133
|
[e, u]
|
|
1134
1134
|
), C = a ? void 0 : r && n && i ? h : (g == null ? void 0 : g.help) ?? "", k = !a && C ? "error" : void 0;
|
|
1135
1135
|
return xe(() => {
|
|
1136
|
-
if (
|
|
1136
|
+
if (m == null || !f || !i) return;
|
|
1137
1137
|
const w = p(f, i);
|
|
1138
1138
|
A(w);
|
|
1139
|
-
}, [
|
|
1139
|
+
}, [m, f, i, p, A]), { validate: A, help: C, validateStatus: k };
|
|
1140
1140
|
}
|
|
1141
1141
|
const fo = ["value", "validateStatus", "help"];
|
|
1142
|
-
function
|
|
1142
|
+
function Ue(t, e, n) {
|
|
1143
1143
|
const i = (n == null ? void 0 : n.skipKeys) ?? fo, r = { ...t };
|
|
1144
1144
|
return !e || typeof e != "object" || Object.keys(e).forEach((o) => {
|
|
1145
1145
|
if (i.includes(o)) return;
|
|
@@ -1182,10 +1182,10 @@ function Nt(t, e, n) {
|
|
|
1182
1182
|
dataSetField: `${c}[${o}].${l}`,
|
|
1183
1183
|
sessionId: r
|
|
1184
1184
|
};
|
|
1185
|
-
const
|
|
1185
|
+
const d = `[${o}].${l}`;
|
|
1186
1186
|
return {
|
|
1187
1187
|
dataSet: a,
|
|
1188
|
-
dataSetField:
|
|
1188
|
+
dataSetField: d,
|
|
1189
1189
|
sessionId: r
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
@@ -1203,7 +1203,7 @@ function Nt(t, e, n) {
|
|
|
1203
1203
|
function mo(t, e) {
|
|
1204
1204
|
return t === e ? !0 : String(t ?? "") === String(e ?? "");
|
|
1205
1205
|
}
|
|
1206
|
-
function
|
|
1206
|
+
function Ge(t, e) {
|
|
1207
1207
|
if (Array.isArray(t))
|
|
1208
1208
|
return t.find((n) => mo(n.value, e));
|
|
1209
1209
|
}
|
|
@@ -1247,22 +1247,22 @@ const Ec = {
|
|
|
1247
1247
|
};
|
|
1248
1248
|
function ho() {
|
|
1249
1249
|
const t = He(), e = j(
|
|
1250
|
-
async (l,
|
|
1251
|
-
const v = typeof l == "string" ? { url: l, ...
|
|
1250
|
+
async (l, d) => {
|
|
1251
|
+
const v = typeof l == "string" ? { url: l, ...d } : l;
|
|
1252
1252
|
return at(v);
|
|
1253
1253
|
},
|
|
1254
1254
|
[]
|
|
1255
1255
|
), n = j(
|
|
1256
|
-
async (l,
|
|
1256
|
+
async (l, d, v) => at({ url: l, params: d, method: "GET", ...v }),
|
|
1257
1257
|
[]
|
|
1258
1258
|
), i = j(
|
|
1259
|
-
async (l,
|
|
1259
|
+
async (l, d, v) => at({ url: l, data: d, method: "POST", ...v }),
|
|
1260
1260
|
[]
|
|
1261
1261
|
), r = j(
|
|
1262
1262
|
async (l) => fn(l),
|
|
1263
1263
|
[]
|
|
1264
1264
|
), o = j(
|
|
1265
|
-
async (l,
|
|
1265
|
+
async (l, d) => or(l, d),
|
|
1266
1266
|
[]
|
|
1267
1267
|
), a = j(() => cn(), []), c = j(() => !!t.request, [t.request]);
|
|
1268
1268
|
return {
|
|
@@ -1298,7 +1298,7 @@ function Tt(t) {
|
|
|
1298
1298
|
function dn(t, e) {
|
|
1299
1299
|
const [n, i] = ve([]), [r, o] = ve(!1), [a, c] = ve(null), {
|
|
1300
1300
|
labelKey: l = "label",
|
|
1301
|
-
valueKey:
|
|
1301
|
+
valueKey: d = "value",
|
|
1302
1302
|
immediate: v = !0,
|
|
1303
1303
|
field: h
|
|
1304
1304
|
} = e || {}, g = JSON.stringify((e == null ? void 0 : e.params) ?? null), p = y(
|
|
@@ -1306,24 +1306,24 @@ function dn(t, e) {
|
|
|
1306
1306
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1307
1307
|
[g]
|
|
1308
1308
|
), f = j(
|
|
1309
|
-
(
|
|
1309
|
+
(m) => Array.isArray(m) ? m.map((u) => ({
|
|
1310
1310
|
label: u[l],
|
|
1311
|
-
value: u[
|
|
1311
|
+
value: u[d]
|
|
1312
1312
|
})) : [],
|
|
1313
|
-
[l,
|
|
1313
|
+
[l, d]
|
|
1314
1314
|
), s = j(async () => {
|
|
1315
1315
|
if (t) {
|
|
1316
1316
|
o(!0), c(null);
|
|
1317
1317
|
try {
|
|
1318
|
-
const
|
|
1318
|
+
const m = await at({
|
|
1319
1319
|
url: t,
|
|
1320
1320
|
method: "GET",
|
|
1321
1321
|
...p != null && Object.keys(p).length > 0 ? { params: p } : {}
|
|
1322
|
-
}), u = (
|
|
1322
|
+
}), u = (m == null ? void 0 : m.data) != null ? m.data : m;
|
|
1323
1323
|
let A = [];
|
|
1324
1324
|
h != null && h !== "" ? A = Array.isArray(u == null ? void 0 : u[h]) ? u[h] : [] : Array.isArray(u) ? A = u : u != null && typeof u == "object" && (A = (u == null ? void 0 : u.list) ?? (u == null ? void 0 : u.records) ?? []), i(f(A));
|
|
1325
|
-
} catch (
|
|
1326
|
-
c(
|
|
1325
|
+
} catch (m) {
|
|
1326
|
+
c(m), console.error(`Failed to load remote options: ${t}`, m);
|
|
1327
1327
|
} finally {
|
|
1328
1328
|
o(!1);
|
|
1329
1329
|
}
|
|
@@ -1417,8 +1417,8 @@ const pt = (t) => {
|
|
|
1417
1417
|
try {
|
|
1418
1418
|
const e = Vt(t);
|
|
1419
1419
|
if (!e) return "";
|
|
1420
|
-
const i = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), r = Math.floor(i / 1e3), o = Math.floor(r / 60), a = Math.floor(o / 60), c = Math.floor(a / 24), l = Math.floor(c / 30),
|
|
1421
|
-
return r < 60 ? "刚刚" : o < 60 ? `${o}分钟前` : a < 24 ? `${a}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${
|
|
1420
|
+
const i = (/* @__PURE__ */ new Date()).getTime() - e.getTime(), r = Math.floor(i / 1e3), o = Math.floor(r / 60), a = Math.floor(o / 60), c = Math.floor(a / 24), l = Math.floor(c / 30), d = Math.floor(c / 365);
|
|
1421
|
+
return r < 60 ? "刚刚" : o < 60 ? `${o}分钟前` : a < 24 ? `${a}小时前` : c < 30 ? `${c}天前` : l < 12 ? `${l}个月前` : `${d}年前`;
|
|
1422
1422
|
} catch {
|
|
1423
1423
|
return "";
|
|
1424
1424
|
}
|
|
@@ -1674,25 +1674,25 @@ const Rc = ({
|
|
|
1674
1674
|
develop: a,
|
|
1675
1675
|
onClick: c,
|
|
1676
1676
|
children: l,
|
|
1677
|
-
index:
|
|
1677
|
+
index: d,
|
|
1678
1678
|
dataSet: v,
|
|
1679
1679
|
dataSetField: h,
|
|
1680
1680
|
...g
|
|
1681
1681
|
}) => {
|
|
1682
|
-
const p = _((T) => T.addCommand), f = Ct(ct), s =
|
|
1682
|
+
const p = _((T) => T.addCommand), f = Ct(ct), s = d ?? (f == null ? void 0 : f.index), m = _(
|
|
1683
1683
|
(T) => {
|
|
1684
1684
|
var O;
|
|
1685
1685
|
return o && t ? (O = T.propsStore[`${o}_props`]) == null ? void 0 : O[t] : null;
|
|
1686
1686
|
}
|
|
1687
1687
|
), u = y(() => {
|
|
1688
1688
|
const T = { ...g };
|
|
1689
|
-
return
|
|
1690
|
-
|
|
1689
|
+
return m && typeof m == "object" && Object.keys(m).forEach((O) => {
|
|
1690
|
+
m[O] !== void 0 && m[O] !== null && (T[O] = m[O]);
|
|
1691
1691
|
}), a && (T.disabled = !1), T;
|
|
1692
|
-
}, [g,
|
|
1693
|
-
const T = (
|
|
1694
|
-
return T &&
|
|
1695
|
-
}, [i,
|
|
1692
|
+
}, [g, m, a]), A = y(() => {
|
|
1693
|
+
const T = (m == null ? void 0 : m.iconName) || i;
|
|
1694
|
+
return T && Je[T] ? Je[T] : null;
|
|
1695
|
+
}, [i, m == null ? void 0 : m.iconName]), C = j(
|
|
1696
1696
|
(T) => {
|
|
1697
1697
|
if (c) {
|
|
1698
1698
|
c(T);
|
|
@@ -1720,7 +1720,7 @@ const Rc = ({
|
|
|
1720
1720
|
p,
|
|
1721
1721
|
c
|
|
1722
1722
|
]
|
|
1723
|
-
), k = (
|
|
1723
|
+
), k = (m == null ? void 0 : m.text) || e, w = (m == null ? void 0 : m.tooltip) ?? n, {
|
|
1724
1724
|
iconPosition: D,
|
|
1725
1725
|
iconPlacement: x,
|
|
1726
1726
|
clickAction: E,
|
|
@@ -1766,14 +1766,14 @@ const sr = (t) => {
|
|
|
1766
1766
|
index: a,
|
|
1767
1767
|
changeAction: c,
|
|
1768
1768
|
onChange: l,
|
|
1769
|
-
value:
|
|
1769
|
+
value: d,
|
|
1770
1770
|
styles: v,
|
|
1771
1771
|
token: h,
|
|
1772
1772
|
rules: g,
|
|
1773
1773
|
validateOnChange: p,
|
|
1774
1774
|
validateOnBlur: f,
|
|
1775
1775
|
focusAction: s,
|
|
1776
|
-
blurAction:
|
|
1776
|
+
blurAction: m,
|
|
1777
1777
|
pressEnterAction: u,
|
|
1778
1778
|
clearAction: A,
|
|
1779
1779
|
bordered: C,
|
|
@@ -1806,7 +1806,7 @@ const sr = (t) => {
|
|
|
1806
1806
|
var he;
|
|
1807
1807
|
return Y ? (he = ae.dataSets[Y]) == null ? void 0 : he.validate : void 0;
|
|
1808
1808
|
}
|
|
1809
|
-
), I = y(() => Q !== void 0 ? Q : (K == null ? void 0 : K.value) !== void 0 ? K.value :
|
|
1809
|
+
), I = y(() => Q !== void 0 ? Q : (K == null ? void 0 : K.value) !== void 0 ? K.value : d, [Q, K == null ? void 0 : K.value, d]), ne = y(
|
|
1810
1810
|
() => qo(D, K ?? null, { develop: i }),
|
|
1811
1811
|
[D, K, i]
|
|
1812
1812
|
), de = j(
|
|
@@ -1988,14 +1988,14 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
1988
1988
|
validateOnBlur: a,
|
|
1989
1989
|
validateOnChange: c,
|
|
1990
1990
|
changeAction: l,
|
|
1991
|
-
pressEnterAction:
|
|
1991
|
+
pressEnterAction: d,
|
|
1992
1992
|
clearAction: v,
|
|
1993
1993
|
allowClear: h,
|
|
1994
1994
|
stepAction: g,
|
|
1995
1995
|
onChange: p,
|
|
1996
1996
|
defaultValue: f,
|
|
1997
1997
|
value: s,
|
|
1998
|
-
...
|
|
1998
|
+
...m
|
|
1999
1999
|
}) => {
|
|
2000
2000
|
const u = _((Y) => Y.addCommand), A = _((Y) => Y.setDataSet), C = Me(null), k = y(
|
|
2001
2001
|
() => ee(e, i),
|
|
@@ -2034,12 +2034,12 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2034
2034
|
a && x(N);
|
|
2035
2035
|
}, [a, x, N]), O = j(
|
|
2036
2036
|
(Y) => {
|
|
2037
|
-
if (
|
|
2038
|
-
|
|
2037
|
+
if (m.onPressEnter) {
|
|
2038
|
+
m.onPressEnter(Y);
|
|
2039
2039
|
return;
|
|
2040
2040
|
}
|
|
2041
|
-
if (
|
|
2042
|
-
const { actionName: U, arg: I } = Ce(
|
|
2041
|
+
if (d && e) {
|
|
2042
|
+
const { actionName: U, arg: I } = Ce(d, N, {
|
|
2043
2043
|
id: t,
|
|
2044
2044
|
dataSet: i,
|
|
2045
2045
|
dataSetField: r
|
|
@@ -2048,8 +2048,8 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2048
2048
|
}
|
|
2049
2049
|
},
|
|
2050
2050
|
[
|
|
2051
|
-
|
|
2052
|
-
|
|
2051
|
+
m.onPressEnter,
|
|
2052
|
+
d,
|
|
2053
2053
|
e,
|
|
2054
2054
|
N,
|
|
2055
2055
|
t,
|
|
@@ -2102,8 +2102,8 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2102
2102
|
f !== void 0 && N === void 0 && k && r && A(k, r, f);
|
|
2103
2103
|
}, [f, N, k, r, A]);
|
|
2104
2104
|
const B = y(
|
|
2105
|
-
() =>
|
|
2106
|
-
[
|
|
2105
|
+
() => Ue(m, w ?? void 0),
|
|
2106
|
+
[m, w]
|
|
2107
2107
|
), { addonBefore: $, addonAfter: q, style: W, suffix: K, ...R } = B, P = y(() => {
|
|
2108
2108
|
if (!(h && N !== null && N !== void 0)) return K;
|
|
2109
2109
|
const U = /* @__PURE__ */ b(
|
|
@@ -2143,7 +2143,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2143
2143
|
}
|
|
2144
2144
|
);
|
|
2145
2145
|
return /* @__PURE__ */ ue("div", { style: { width: "100%" }, children: [
|
|
2146
|
-
$ || q ? /* @__PURE__ */ ue(
|
|
2146
|
+
$ || q ? /* @__PURE__ */ ue(Qe.Compact, { style: { width: "100%" }, children: [
|
|
2147
2147
|
$ && /* @__PURE__ */ b(
|
|
2148
2148
|
"div",
|
|
2149
2149
|
{
|
|
@@ -2192,16 +2192,16 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2192
2192
|
validateOnBlur: a,
|
|
2193
2193
|
validateOnChange: c,
|
|
2194
2194
|
changeAction: l,
|
|
2195
|
-
pressEnterAction:
|
|
2195
|
+
pressEnterAction: d,
|
|
2196
2196
|
clearAction: v,
|
|
2197
2197
|
onChange: h,
|
|
2198
2198
|
value: g,
|
|
2199
2199
|
defaultValue: p,
|
|
2200
2200
|
...f
|
|
2201
2201
|
}) => {
|
|
2202
|
-
const s = Nt(i, r, e),
|
|
2203
|
-
() => ee(A,
|
|
2204
|
-
[A,
|
|
2202
|
+
const s = Nt(i, r, e), m = s.dataSet, u = s.dataSetField, A = s.sessionId, C = _((B) => B.addCommand), k = _((B) => B.setDataSet), w = Me(null), D = y(
|
|
2203
|
+
() => ee(A, m),
|
|
2204
|
+
[A, m]
|
|
2205
2205
|
), x = _(
|
|
2206
2206
|
(B) => {
|
|
2207
2207
|
var $;
|
|
@@ -2211,7 +2211,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2211
2211
|
(B) => D && u ? B.getDataSet(D, u) : void 0
|
|
2212
2212
|
), { validate: N, help: S } = Be({
|
|
2213
2213
|
rules: o,
|
|
2214
|
-
dataSet:
|
|
2214
|
+
dataSet: m,
|
|
2215
2215
|
dataSetField: u,
|
|
2216
2216
|
sessionId: A,
|
|
2217
2217
|
id: t,
|
|
@@ -2226,7 +2226,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2226
2226
|
if (D && u && k(D, u, $), l && A) {
|
|
2227
2227
|
const { actionName: q, arg: W } = Ce(l, $, {
|
|
2228
2228
|
id: t,
|
|
2229
|
-
dataSet:
|
|
2229
|
+
dataSet: m,
|
|
2230
2230
|
dataSetField: u
|
|
2231
2231
|
});
|
|
2232
2232
|
C(A, X(q, W));
|
|
@@ -2255,10 +2255,10 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2255
2255
|
f.onPressEnter(B);
|
|
2256
2256
|
return;
|
|
2257
2257
|
}
|
|
2258
|
-
if (
|
|
2259
|
-
const { actionName: $, arg: q } = Ce(
|
|
2258
|
+
if (d && A && !B.shiftKey) {
|
|
2259
|
+
const { actionName: $, arg: q } = Ce(d, M, {
|
|
2260
2260
|
id: t,
|
|
2261
|
-
dataSet:
|
|
2261
|
+
dataSet: m,
|
|
2262
2262
|
dataSetField: u
|
|
2263
2263
|
});
|
|
2264
2264
|
C(A, X($, q));
|
|
@@ -2266,11 +2266,11 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2266
2266
|
},
|
|
2267
2267
|
[
|
|
2268
2268
|
f.onPressEnter,
|
|
2269
|
-
|
|
2269
|
+
d,
|
|
2270
2270
|
A,
|
|
2271
2271
|
M,
|
|
2272
2272
|
t,
|
|
2273
|
-
|
|
2273
|
+
m,
|
|
2274
2274
|
u,
|
|
2275
2275
|
C
|
|
2276
2276
|
]
|
|
@@ -2282,7 +2282,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2282
2282
|
if (v && A) {
|
|
2283
2283
|
const { actionName: B, arg: $ } = Ce(v, "", {
|
|
2284
2284
|
id: t,
|
|
2285
|
-
dataSet:
|
|
2285
|
+
dataSet: m,
|
|
2286
2286
|
dataSetField: u
|
|
2287
2287
|
});
|
|
2288
2288
|
C(A, X(B, $));
|
|
@@ -2292,7 +2292,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2292
2292
|
v,
|
|
2293
2293
|
A,
|
|
2294
2294
|
t,
|
|
2295
|
-
|
|
2295
|
+
m,
|
|
2296
2296
|
u,
|
|
2297
2297
|
C
|
|
2298
2298
|
]);
|
|
@@ -2327,14 +2327,14 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2327
2327
|
validateOnBlur: a,
|
|
2328
2328
|
validateOnChange: c,
|
|
2329
2329
|
changeAction: l,
|
|
2330
|
-
pressEnterAction:
|
|
2330
|
+
pressEnterAction: d,
|
|
2331
2331
|
clearAction: v,
|
|
2332
2332
|
onChange: h,
|
|
2333
2333
|
value: g,
|
|
2334
2334
|
defaultValue: p,
|
|
2335
2335
|
...f
|
|
2336
2336
|
}) => {
|
|
2337
|
-
const s = _((T) => T.addCommand),
|
|
2337
|
+
const s = _((T) => T.addCommand), m = _((T) => T.setDataSet), u = Me(null), A = y(
|
|
2338
2338
|
() => ee(e, i),
|
|
2339
2339
|
[e, i]
|
|
2340
2340
|
), C = _(
|
|
@@ -2358,7 +2358,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2358
2358
|
h(O, T);
|
|
2359
2359
|
return;
|
|
2360
2360
|
}
|
|
2361
|
-
if (A && r &&
|
|
2361
|
+
if (A && r && m(A, r, O), l && e) {
|
|
2362
2362
|
const { actionName: z, arg: V } = Ce(l, O, {
|
|
2363
2363
|
id: t,
|
|
2364
2364
|
dataSet: i,
|
|
@@ -2374,7 +2374,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2374
2374
|
h,
|
|
2375
2375
|
A,
|
|
2376
2376
|
r,
|
|
2377
|
-
|
|
2377
|
+
m,
|
|
2378
2378
|
l,
|
|
2379
2379
|
e,
|
|
2380
2380
|
t,
|
|
@@ -2390,8 +2390,8 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2390
2390
|
f.onPressEnter(T);
|
|
2391
2391
|
return;
|
|
2392
2392
|
}
|
|
2393
|
-
if (
|
|
2394
|
-
const { actionName: O, arg: z } = Ce(
|
|
2393
|
+
if (d && e) {
|
|
2394
|
+
const { actionName: O, arg: z } = Ce(d, x, {
|
|
2395
2395
|
id: t,
|
|
2396
2396
|
dataSet: i,
|
|
2397
2397
|
dataSetField: r
|
|
@@ -2401,7 +2401,7 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2401
2401
|
},
|
|
2402
2402
|
[
|
|
2403
2403
|
f.onPressEnter,
|
|
2404
|
-
|
|
2404
|
+
d,
|
|
2405
2405
|
e,
|
|
2406
2406
|
x,
|
|
2407
2407
|
t,
|
|
@@ -2454,16 +2454,16 @@ const jc = Ve.memo(sr), Nn = 200, Kc = ({
|
|
|
2454
2454
|
searchAction: a,
|
|
2455
2455
|
onChange: c,
|
|
2456
2456
|
onSearch: l,
|
|
2457
|
-
value:
|
|
2457
|
+
value: d,
|
|
2458
2458
|
defaultValue: v,
|
|
2459
2459
|
...h
|
|
2460
2460
|
}) => {
|
|
2461
2461
|
const g = _((k) => k.addCommand), p = _((k) => k.getDataSet), f = _((k) => k.setDataSet), s = y(
|
|
2462
2462
|
() => ee(e, i),
|
|
2463
2463
|
[e, i]
|
|
2464
|
-
),
|
|
2464
|
+
), m = y(() => {
|
|
2465
2465
|
if (s && r) return p(s, r);
|
|
2466
|
-
}, [s, r, p]), u = y(() =>
|
|
2466
|
+
}, [s, r, p]), u = y(() => m ?? d ?? v, [m, d, v]), A = j((k) => {
|
|
2467
2467
|
const w = k.target.value;
|
|
2468
2468
|
if (c) {
|
|
2469
2469
|
c(w);
|
|
@@ -2501,7 +2501,7 @@ function Go(t, e) {
|
|
|
2501
2501
|
return Array.isArray(n) && Array.isArray(i) && Array.isArray(r) && Array.isArray(o) ? n.length !== i.length || r.length !== o.length ? !1 : n.every((a, c) => a === i[c]) && r.every((a, c) => a === o[c]) : Array.isArray(n) || Array.isArray(i) ? !1 : n === i && r === o;
|
|
2502
2502
|
}
|
|
2503
2503
|
function Tn(t, e, n, i, r) {
|
|
2504
|
-
var
|
|
2504
|
+
var d;
|
|
2505
2505
|
if (!(r === "multiple" || r === "tags" || Array.isArray(t))) {
|
|
2506
2506
|
if (t == null || t === "")
|
|
2507
2507
|
return null;
|
|
@@ -2509,8 +2509,8 @@ function Tn(t, e, n, i, r) {
|
|
|
2509
2509
|
const p = t;
|
|
2510
2510
|
return { key: p.value, label: dt(p.label) };
|
|
2511
2511
|
}
|
|
2512
|
-
const v = e && !Array.isArray(e) ? e :
|
|
2513
|
-
h ?? ((
|
|
2512
|
+
const v = e && !Array.isArray(e) ? e : Ge(n, t), h = (v == null ? void 0 : v.label) ?? (v == null ? void 0 : v.children), g = dt(
|
|
2513
|
+
h ?? ((d = Ge(n, t)) == null ? void 0 : d.label) ?? String(t)
|
|
2514
2514
|
);
|
|
2515
2515
|
return { key: t, label: g };
|
|
2516
2516
|
}
|
|
@@ -2525,7 +2525,7 @@ function Tn(t, e, n, i, r) {
|
|
|
2525
2525
|
const a = Array.isArray(e) ? e : [], c = t, l = c.map((v, h) => {
|
|
2526
2526
|
var f;
|
|
2527
2527
|
const g = a[h], p = (g == null ? void 0 : g.label) ?? (g == null ? void 0 : g.children);
|
|
2528
|
-
return p != null ? dt(p) : dt(((f =
|
|
2528
|
+
return p != null ? dt(p) : dt(((f = Ge(n, v)) == null ? void 0 : f.label) ?? String(v));
|
|
2529
2529
|
});
|
|
2530
2530
|
return { key: c, label: l };
|
|
2531
2531
|
}
|
|
@@ -2539,14 +2539,14 @@ const Vc = ({
|
|
|
2539
2539
|
dictType: a,
|
|
2540
2540
|
optionsCfg: c,
|
|
2541
2541
|
rules: l,
|
|
2542
|
-
validateOnBlur:
|
|
2542
|
+
validateOnBlur: d,
|
|
2543
2543
|
validateOnChange: v,
|
|
2544
2544
|
changeAction: h,
|
|
2545
2545
|
onChange: g,
|
|
2546
2546
|
options: p,
|
|
2547
2547
|
defaultValue: f,
|
|
2548
2548
|
value: s,
|
|
2549
|
-
index:
|
|
2549
|
+
index: m,
|
|
2550
2550
|
showArrow: u,
|
|
2551
2551
|
remoteUrl: A,
|
|
2552
2552
|
searchAction: C,
|
|
@@ -2559,7 +2559,7 @@ const Vc = ({
|
|
|
2559
2559
|
const N = _((te) => te.addCommand), S = _((te) => te.setDataSet), M = Me(null), T = Ct(ct), O = y(
|
|
2560
2560
|
() => ee(e, i),
|
|
2561
2561
|
[e, i]
|
|
2562
|
-
), z =
|
|
2562
|
+
), z = m ?? (T == null ? void 0 : T.index), V = _(
|
|
2563
2563
|
(te) => {
|
|
2564
2564
|
var ye;
|
|
2565
2565
|
return e && t ? ((ye = te.propsStore[`${e}_props`]) == null ? void 0 : ye[t]) ?? null : null;
|
|
@@ -2588,16 +2588,16 @@ const Vc = ({
|
|
|
2588
2588
|
id: t,
|
|
2589
2589
|
develop: n
|
|
2590
2590
|
}), U = y(() => B != null && B !== "" ? B : (V == null ? void 0 : V.value) !== void 0 ? V.value : s ?? f, [B, V == null ? void 0 : V.value, s, f]), I = y(
|
|
2591
|
-
() =>
|
|
2591
|
+
() => Ue(E, V ?? void 0),
|
|
2592
2592
|
[E, V]
|
|
2593
2593
|
), ne = y(() => V != null && V.options && Array.isArray(V.options) ? V.options : $ != null && $.url && K.length > 0 ? K : (D || o && a) && q.length > 0 ? q : p || [], [V == null ? void 0 : V.options, $ == null ? void 0 : $.url, K, D, o, a, q, p]), de = y(() => {
|
|
2594
2594
|
if (ne.length === 0) return U;
|
|
2595
2595
|
if (Array.isArray(U))
|
|
2596
2596
|
return U.map((ye) => {
|
|
2597
2597
|
var ie;
|
|
2598
|
-
return ((ie =
|
|
2598
|
+
return ((ie = Ge(ne, ye)) == null ? void 0 : ie.value) ?? ye;
|
|
2599
2599
|
});
|
|
2600
|
-
const te =
|
|
2600
|
+
const te = Ge(ne, U);
|
|
2601
2601
|
return (te == null ? void 0 : te.value) ?? U;
|
|
2602
2602
|
}, [U, ne]), me = r ? `${r}${Jo}` : "", De = j(
|
|
2603
2603
|
(te, ye) => {
|
|
@@ -2668,8 +2668,8 @@ const Vc = ({
|
|
|
2668
2668
|
S
|
|
2669
2669
|
]);
|
|
2670
2670
|
const re = j(() => {
|
|
2671
|
-
|
|
2672
|
-
}, [
|
|
2671
|
+
d && Q(de);
|
|
2672
|
+
}, [d, Q, de]);
|
|
2673
2673
|
xe(
|
|
2674
2674
|
() => () => {
|
|
2675
2675
|
M.current && clearTimeout(M.current);
|
|
@@ -2706,7 +2706,7 @@ const Vc = ({
|
|
|
2706
2706
|
validateOnBlur: a,
|
|
2707
2707
|
validateOnChange: c,
|
|
2708
2708
|
changeAction: l,
|
|
2709
|
-
onChange:
|
|
2709
|
+
onChange: d,
|
|
2710
2710
|
checked: v,
|
|
2711
2711
|
defaultChecked: h,
|
|
2712
2712
|
...g
|
|
@@ -2714,7 +2714,7 @@ const Vc = ({
|
|
|
2714
2714
|
const p = _((x) => x.addCommand), f = _((x) => x.setDataSet), s = y(
|
|
2715
2715
|
() => ee(e, i),
|
|
2716
2716
|
[e, i]
|
|
2717
|
-
),
|
|
2717
|
+
), m = _(
|
|
2718
2718
|
(x) => {
|
|
2719
2719
|
var E;
|
|
2720
2720
|
return e && t ? ((E = x.propsStore[`${e}_props`]) == null ? void 0 : E[t]) ?? null : null;
|
|
@@ -2728,10 +2728,10 @@ const Vc = ({
|
|
|
2728
2728
|
sessionId: e,
|
|
2729
2729
|
id: t,
|
|
2730
2730
|
develop: n
|
|
2731
|
-
}), k = y(() => u !== void 0 ? !!u : (
|
|
2731
|
+
}), k = y(() => u !== void 0 ? !!u : (m == null ? void 0 : m.checked) !== void 0 ? m.checked : v ?? h, [u, m == null ? void 0 : m.checked, v, h]), w = j(
|
|
2732
2732
|
(x) => {
|
|
2733
|
-
if (
|
|
2734
|
-
|
|
2733
|
+
if (d) {
|
|
2734
|
+
d(x);
|
|
2735
2735
|
return;
|
|
2736
2736
|
}
|
|
2737
2737
|
if (s && r && f(s, r, x), c && A(x), l && e) {
|
|
@@ -2744,7 +2744,7 @@ const Vc = ({
|
|
|
2744
2744
|
}
|
|
2745
2745
|
},
|
|
2746
2746
|
[
|
|
2747
|
-
|
|
2747
|
+
d,
|
|
2748
2748
|
s,
|
|
2749
2749
|
r,
|
|
2750
2750
|
f,
|
|
@@ -2780,13 +2780,13 @@ const Vc = ({
|
|
|
2780
2780
|
valueFormat: a = "YYYY-MM-DD",
|
|
2781
2781
|
rules: c,
|
|
2782
2782
|
validateOnBlur: l,
|
|
2783
|
-
validateOnChange:
|
|
2783
|
+
validateOnChange: d,
|
|
2784
2784
|
onChange: v,
|
|
2785
2785
|
value: h,
|
|
2786
2786
|
defaultValue: g,
|
|
2787
2787
|
...p
|
|
2788
2788
|
}) => {
|
|
2789
|
-
const f = _((S) => S.addCommand), s = _((S) => S.setDataSet),
|
|
2789
|
+
const f = _((S) => S.addCommand), s = _((S) => S.setDataSet), m = y(
|
|
2790
2790
|
() => ee(e, i),
|
|
2791
2791
|
[e, i]
|
|
2792
2792
|
), u = _(
|
|
@@ -2795,7 +2795,7 @@ const Vc = ({
|
|
|
2795
2795
|
return e && t ? ((M = S.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
|
|
2796
2796
|
}
|
|
2797
2797
|
), A = _(
|
|
2798
|
-
(S) =>
|
|
2798
|
+
(S) => m && r ? S.getDataSet(m, r) : void 0
|
|
2799
2799
|
), { validate: C, help: k } = Be({
|
|
2800
2800
|
rules: c,
|
|
2801
2801
|
dataSet: i,
|
|
@@ -2805,9 +2805,9 @@ const Vc = ({
|
|
|
2805
2805
|
develop: n
|
|
2806
2806
|
}), w = j((S) => {
|
|
2807
2807
|
if (!S) return null;
|
|
2808
|
-
if (
|
|
2808
|
+
if (Fe.isDayjs(S)) return S;
|
|
2809
2809
|
if (typeof S == "string") {
|
|
2810
|
-
const M =
|
|
2810
|
+
const M = Fe(S, a);
|
|
2811
2811
|
return M.isValid() ? M : null;
|
|
2812
2812
|
}
|
|
2813
2813
|
return null;
|
|
@@ -2821,7 +2821,7 @@ const Vc = ({
|
|
|
2821
2821
|
return;
|
|
2822
2822
|
}
|
|
2823
2823
|
const T = Array.isArray(M) ? M[0] : M;
|
|
2824
|
-
if (
|
|
2824
|
+
if (m && r && s(m, r, T), d && C(T), o && e) {
|
|
2825
2825
|
const { actionName: O, arg: z } = Ce(o, T, {
|
|
2826
2826
|
id: t,
|
|
2827
2827
|
dataSet: i,
|
|
@@ -2830,21 +2830,21 @@ const Vc = ({
|
|
|
2830
2830
|
f(e, X(O, z));
|
|
2831
2831
|
}
|
|
2832
2832
|
},
|
|
2833
|
-
[v,
|
|
2833
|
+
[v, m, r, s, d, C, o, e, t, f]
|
|
2834
2834
|
);
|
|
2835
2835
|
xe(() => {
|
|
2836
|
-
if (g && D === null &&
|
|
2837
|
-
const S =
|
|
2838
|
-
s(
|
|
2836
|
+
if (g && D === null && m && r) {
|
|
2837
|
+
const S = Fe(g).format(a);
|
|
2838
|
+
s(m, r, S);
|
|
2839
2839
|
}
|
|
2840
|
-
}, [g, D,
|
|
2840
|
+
}, [g, D, m, r, s, a]);
|
|
2841
2841
|
const E = j(() => {
|
|
2842
2842
|
if (l) {
|
|
2843
2843
|
const S = D ? D.format(a) : null;
|
|
2844
2844
|
C(S);
|
|
2845
2845
|
}
|
|
2846
2846
|
}, [l, C, D, a]), N = y(
|
|
2847
|
-
() =>
|
|
2847
|
+
() => Ue(p, u ?? void 0),
|
|
2848
2848
|
[p, u]
|
|
2849
2849
|
);
|
|
2850
2850
|
return /* @__PURE__ */ ue("div", { onBlur: E, style: { display: "flex" }, children: [
|
|
@@ -2871,13 +2871,13 @@ const Vc = ({
|
|
|
2871
2871
|
valueFormat: a = "HH:mm:ss",
|
|
2872
2872
|
onChange: c,
|
|
2873
2873
|
value: l,
|
|
2874
|
-
defaultValue:
|
|
2874
|
+
defaultValue: d,
|
|
2875
2875
|
rules: v,
|
|
2876
2876
|
validateOnChange: h,
|
|
2877
2877
|
validateOnBlur: g,
|
|
2878
2878
|
...p
|
|
2879
2879
|
}) => {
|
|
2880
|
-
const f = _((S) => S.addCommand), s = _((S) => S.getDataSet),
|
|
2880
|
+
const f = _((S) => S.addCommand), s = _((S) => S.getDataSet), m = _((S) => S.setDataSet), u = y(
|
|
2881
2881
|
() => ee(e, i),
|
|
2882
2882
|
[e, i]
|
|
2883
2883
|
), A = y(() => {
|
|
@@ -2891,23 +2891,23 @@ const Vc = ({
|
|
|
2891
2891
|
develop: n
|
|
2892
2892
|
}), w = j((S) => {
|
|
2893
2893
|
if (!S) return null;
|
|
2894
|
-
if (
|
|
2894
|
+
if (Fe.isDayjs(S)) return S;
|
|
2895
2895
|
if (typeof S == "string") {
|
|
2896
|
-
const M =
|
|
2896
|
+
const M = Fe(S, a);
|
|
2897
2897
|
return M.isValid() ? M : null;
|
|
2898
2898
|
}
|
|
2899
2899
|
return null;
|
|
2900
|
-
}, [a]), D = y(() => w(A ?? l ??
|
|
2900
|
+
}, [a]), D = y(() => w(A ?? l ?? d), [A, l, d, w]), x = j((S, M) => {
|
|
2901
2901
|
if (c) {
|
|
2902
2902
|
c(S, M);
|
|
2903
2903
|
return;
|
|
2904
2904
|
}
|
|
2905
2905
|
const T = M || "";
|
|
2906
|
-
if (u && r &&
|
|
2906
|
+
if (u && r && m(u, r, T), h && C(T), o && e) {
|
|
2907
2907
|
const { actionName: O, arg: z } = Ce(o, T, { id: t, dataSet: i, dataSetField: r });
|
|
2908
2908
|
f(e, X(O, z));
|
|
2909
2909
|
}
|
|
2910
|
-
}, [c, u, r,
|
|
2910
|
+
}, [c, u, r, m, h, C, o, e, t, f]), E = j(() => {
|
|
2911
2911
|
g && C(D ? D.format(a) : "");
|
|
2912
2912
|
}, [g, C, D, a]), N = k ? "error" : void 0;
|
|
2913
2913
|
return /* @__PURE__ */ ue(yt, { children: [
|
|
@@ -2936,13 +2936,13 @@ const Vc = ({
|
|
|
2936
2936
|
valueFormat: a = "YYYY-MM-DD",
|
|
2937
2937
|
rules: c,
|
|
2938
2938
|
validateOnBlur: l,
|
|
2939
|
-
validateOnChange:
|
|
2939
|
+
validateOnChange: d,
|
|
2940
2940
|
onChange: v,
|
|
2941
2941
|
value: h,
|
|
2942
2942
|
defaultValue: g,
|
|
2943
2943
|
...p
|
|
2944
2944
|
}) => {
|
|
2945
|
-
const f = _((S) => S.addCommand), s = _((S) => S.setDataSet),
|
|
2945
|
+
const f = _((S) => S.addCommand), s = _((S) => S.setDataSet), m = y(
|
|
2946
2946
|
() => ee(e, i),
|
|
2947
2947
|
[e, i]
|
|
2948
2948
|
), u = _(
|
|
@@ -2951,7 +2951,7 @@ const Vc = ({
|
|
|
2951
2951
|
return e && t ? ((M = S.propsStore[`${e}_props`]) == null ? void 0 : M[t]) ?? null : null;
|
|
2952
2952
|
}
|
|
2953
2953
|
), A = _(
|
|
2954
|
-
(S) =>
|
|
2954
|
+
(S) => m && r ? S.getDataSet(m, r) : void 0
|
|
2955
2955
|
), { validate: C, help: k } = Be({
|
|
2956
2956
|
rules: c,
|
|
2957
2957
|
dataSet: i,
|
|
@@ -2961,13 +2961,13 @@ const Vc = ({
|
|
|
2961
2961
|
develop: n
|
|
2962
2962
|
}), w = j((S) => {
|
|
2963
2963
|
if (!S || !Array.isArray(S) || S.length !== 2) return null;
|
|
2964
|
-
const [M, T] = S, O =
|
|
2964
|
+
const [M, T] = S, O = Fe.isDayjs(M) ? M : Fe(M, a), z = Fe.isDayjs(T) ? T : Fe(T, a);
|
|
2965
2965
|
return O.isValid() && z.isValid() ? [O, z] : null;
|
|
2966
2966
|
}, [a]), D = y(() => {
|
|
2967
2967
|
const S = A ?? (u == null ? void 0 : u.value) ?? h ?? g;
|
|
2968
2968
|
return w(S);
|
|
2969
2969
|
}, [A, u == null ? void 0 : u.value, h, g, w]), x = y(
|
|
2970
|
-
() =>
|
|
2970
|
+
() => Ue(p, u ?? void 0),
|
|
2971
2971
|
[p, u]
|
|
2972
2972
|
), E = j(
|
|
2973
2973
|
(S, M) => {
|
|
@@ -2975,7 +2975,7 @@ const Vc = ({
|
|
|
2975
2975
|
v(S, M);
|
|
2976
2976
|
return;
|
|
2977
2977
|
}
|
|
2978
|
-
if (
|
|
2978
|
+
if (m && r && s(m, r, M), d && C(M), o && e) {
|
|
2979
2979
|
const { actionName: T, arg: O } = Ce(o, M, {
|
|
2980
2980
|
id: t,
|
|
2981
2981
|
dataSet: i,
|
|
@@ -2984,7 +2984,7 @@ const Vc = ({
|
|
|
2984
2984
|
f(e, X(T, O));
|
|
2985
2985
|
}
|
|
2986
2986
|
},
|
|
2987
|
-
[v,
|
|
2987
|
+
[v, m, r, s, d, C, o, e, t, f]
|
|
2988
2988
|
), N = j(() => {
|
|
2989
2989
|
var S, M;
|
|
2990
2990
|
l && C(D ? [(S = D[0]) == null ? void 0 : S.format(a), (M = D[1]) == null ? void 0 : M.format(a)] : null);
|
|
@@ -3013,14 +3013,14 @@ const Vc = ({
|
|
|
3013
3013
|
optionsCfg: a,
|
|
3014
3014
|
changeAction: c,
|
|
3015
3015
|
buttonStyle: l,
|
|
3016
|
-
optionType:
|
|
3016
|
+
optionType: d = "default",
|
|
3017
3017
|
rules: v,
|
|
3018
3018
|
validateOnBlur: h,
|
|
3019
3019
|
validateOnChange: g,
|
|
3020
3020
|
onChange: p,
|
|
3021
3021
|
value: f,
|
|
3022
3022
|
defaultValue: s,
|
|
3023
|
-
dictCode:
|
|
3023
|
+
dictCode: m,
|
|
3024
3024
|
direction: u,
|
|
3025
3025
|
remoteUrl: A,
|
|
3026
3026
|
...C
|
|
@@ -3042,19 +3042,19 @@ const Vc = ({
|
|
|
3042
3042
|
sessionId: e,
|
|
3043
3043
|
id: t,
|
|
3044
3044
|
develop: n
|
|
3045
|
-
}), M = y(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : f ?? s, [E, x == null ? void 0 : x.value, f, s]), { options: T } = Tt(
|
|
3045
|
+
}), M = y(() => E !== void 0 ? E : (x == null ? void 0 : x.value) !== void 0 ? x.value : f ?? s, [E, x == null ? void 0 : x.value, f, s]), { options: T } = Tt(m), { options: O } = dn(
|
|
3046
3046
|
a == null ? void 0 : a.url,
|
|
3047
3047
|
{
|
|
3048
3048
|
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
3049
3049
|
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
3050
3050
|
immediate: !!(a != null && a.url)
|
|
3051
3051
|
}
|
|
3052
|
-
), z = y(() => x != null && x.options ? x.options : a != null && a.url && O.length > 0 ? O :
|
|
3052
|
+
), z = y(() => x != null && x.options ? x.options : a != null && a.url && O.length > 0 ? O : m && T.length > 0 ? T : o, [x == null ? void 0 : x.options, a == null ? void 0 : a.url, O, m, T, o]), V = y(() => {
|
|
3053
3053
|
if (z.length === 0) return M;
|
|
3054
|
-
const W =
|
|
3054
|
+
const W = Ge(z, M);
|
|
3055
3055
|
return (W == null ? void 0 : W.value) ?? M;
|
|
3056
3056
|
}, [M, z]), B = y(
|
|
3057
|
-
() =>
|
|
3057
|
+
() => Ue(C, x ?? void 0),
|
|
3058
3058
|
[C, x]
|
|
3059
3059
|
), $ = j(
|
|
3060
3060
|
(W) => {
|
|
@@ -3096,9 +3096,9 @@ const Vc = ({
|
|
|
3096
3096
|
value: V,
|
|
3097
3097
|
onChange: $,
|
|
3098
3098
|
buttonStyle: (x == null ? void 0 : x.buttonStyle) ?? l,
|
|
3099
|
-
optionType: (x == null ? void 0 : x.optionType) ??
|
|
3100
|
-
children:
|
|
3101
|
-
|
|
3099
|
+
optionType: (x == null ? void 0 : x.optionType) ?? d,
|
|
3100
|
+
children: d === "button" ? z.map((W) => /* @__PURE__ */ b(Ut.Button, { value: W.value, disabled: W.disabled, children: W.label }, W.value)) : /* @__PURE__ */ b(
|
|
3101
|
+
Qe,
|
|
3102
3102
|
{
|
|
3103
3103
|
orientation: (x == null ? void 0 : x.direction) ?? u ?? "horizontal",
|
|
3104
3104
|
wrap: !0,
|
|
@@ -3119,14 +3119,14 @@ const Vc = ({
|
|
|
3119
3119
|
optionsCfg: a,
|
|
3120
3120
|
multiple: c = !1,
|
|
3121
3121
|
changeAction: l,
|
|
3122
|
-
rules:
|
|
3122
|
+
rules: d,
|
|
3123
3123
|
validateOnBlur: v,
|
|
3124
3124
|
validateOnChange: h,
|
|
3125
3125
|
onChange: g,
|
|
3126
3126
|
onChangeMultiple: p,
|
|
3127
3127
|
checked: f,
|
|
3128
3128
|
values: s,
|
|
3129
|
-
defaultChecked:
|
|
3129
|
+
defaultChecked: m,
|
|
3130
3130
|
children: u,
|
|
3131
3131
|
dictCode: A,
|
|
3132
3132
|
direction: C = "horizontal",
|
|
@@ -3145,7 +3145,7 @@ const Vc = ({
|
|
|
3145
3145
|
), S = _(
|
|
3146
3146
|
(Y) => E && r ? Y.getDataSet(E, r) : void 0
|
|
3147
3147
|
), { validate: M, help: T } = Be({
|
|
3148
|
-
rules:
|
|
3148
|
+
rules: d,
|
|
3149
3149
|
dataSet: i,
|
|
3150
3150
|
dataSetField: r,
|
|
3151
3151
|
sessionId: e,
|
|
@@ -3160,16 +3160,16 @@ const Vc = ({
|
|
|
3160
3160
|
}
|
|
3161
3161
|
), V = y(() => {
|
|
3162
3162
|
if (!c)
|
|
3163
|
-
return S !== void 0 ? !!S : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ??
|
|
3164
|
-
}, [c, S, N == null ? void 0 : N.checked, f,
|
|
3163
|
+
return S !== void 0 ? !!S : (N == null ? void 0 : N.checked) !== void 0 ? N.checked : f ?? m;
|
|
3164
|
+
}, [c, S, N == null ? void 0 : N.checked, f, m]), B = y(() => N != null && N.options ? N.options : a != null && a.url && z.length > 0 ? z : A && O.length > 0 ? O : o, [N == null ? void 0 : N.options, a == null ? void 0 : a.url, z, A, O, o]), $ = y(() => {
|
|
3165
3165
|
if (!c) return [];
|
|
3166
3166
|
let Y = [];
|
|
3167
3167
|
return Array.isArray(S) ? Y = S : Array.isArray(N == null ? void 0 : N.values) ? Y = N.values : Y = s || [], B.length === 0 ? Y : Y.map((U) => {
|
|
3168
3168
|
var I;
|
|
3169
|
-
return ((I =
|
|
3169
|
+
return ((I = Ge(B, U)) == null ? void 0 : I.value) ?? U;
|
|
3170
3170
|
});
|
|
3171
3171
|
}, [c, S, N == null ? void 0 : N.values, s, B]), q = y(
|
|
3172
|
-
() =>
|
|
3172
|
+
() => Ue(w, N ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3173
3173
|
[w, N]
|
|
3174
3174
|
), K = (q.direction ?? C) === "vertical" ? "vertical" : "horizontal", R = j((Y) => {
|
|
3175
3175
|
const U = Y.target.checked;
|
|
@@ -3197,7 +3197,7 @@ const Vc = ({
|
|
|
3197
3197
|
const { indeterminate: Y, direction: U, ...I } = q;
|
|
3198
3198
|
return /* @__PURE__ */ ue("div", { onBlur: Q, children: [
|
|
3199
3199
|
/* @__PURE__ */ b(ht.Group, { ...I, value: $, onChange: P, disabled: n ? !1 : q.disabled, children: /* @__PURE__ */ b(
|
|
3200
|
-
|
|
3200
|
+
Qe,
|
|
3201
3201
|
{
|
|
3202
3202
|
orientation: K,
|
|
3203
3203
|
wrap: !0,
|
|
@@ -3230,7 +3230,7 @@ const Vc = ({
|
|
|
3230
3230
|
rules: a,
|
|
3231
3231
|
validateOnBlur: c,
|
|
3232
3232
|
validateOnChange: l,
|
|
3233
|
-
onChange:
|
|
3233
|
+
onChange: d,
|
|
3234
3234
|
value: v,
|
|
3235
3235
|
defaultValue: h,
|
|
3236
3236
|
...g
|
|
@@ -3238,7 +3238,7 @@ const Vc = ({
|
|
|
3238
3238
|
const p = _((E) => E.addCommand), f = _((E) => E.setDataSet), s = y(
|
|
3239
3239
|
() => ee(e, i),
|
|
3240
3240
|
[e, i]
|
|
3241
|
-
),
|
|
3241
|
+
), m = _(
|
|
3242
3242
|
(E) => {
|
|
3243
3243
|
var N;
|
|
3244
3244
|
return e && t ? ((N = E.propsStore[`${e}_props`]) == null ? void 0 : N[t]) ?? null : null;
|
|
@@ -3252,10 +3252,10 @@ const Vc = ({
|
|
|
3252
3252
|
sessionId: e,
|
|
3253
3253
|
id: t,
|
|
3254
3254
|
develop: n
|
|
3255
|
-
}), k = y(() => u !== void 0 ? u : (
|
|
3255
|
+
}), k = y(() => u !== void 0 ? u : (m == null ? void 0 : m.value) !== void 0 ? m.value : v ?? h, [u, m == null ? void 0 : m.value, v, h]), w = j(
|
|
3256
3256
|
(E) => {
|
|
3257
|
-
if (
|
|
3258
|
-
|
|
3257
|
+
if (d) {
|
|
3258
|
+
d(E);
|
|
3259
3259
|
return;
|
|
3260
3260
|
}
|
|
3261
3261
|
if (s && r && f(s, r, E), l && A(E), o && e) {
|
|
@@ -3267,12 +3267,12 @@ const Vc = ({
|
|
|
3267
3267
|
p(e, X(N, S));
|
|
3268
3268
|
}
|
|
3269
3269
|
},
|
|
3270
|
-
[
|
|
3270
|
+
[d, s, r, f, l, A, o, e, t, p]
|
|
3271
3271
|
), D = j(() => {
|
|
3272
3272
|
c && A(k);
|
|
3273
3273
|
}, [c, A, k]), x = y(
|
|
3274
|
-
() =>
|
|
3275
|
-
[g,
|
|
3274
|
+
() => Ue(g, m ?? void 0),
|
|
3275
|
+
[g, m]
|
|
3276
3276
|
);
|
|
3277
3277
|
return /* @__PURE__ */ ue("div", { onBlur: D, children: [
|
|
3278
3278
|
/* @__PURE__ */ b(
|
|
@@ -3296,14 +3296,14 @@ const Vc = ({
|
|
|
3296
3296
|
onChange: a,
|
|
3297
3297
|
value: c,
|
|
3298
3298
|
defaultValue: l,
|
|
3299
|
-
...
|
|
3299
|
+
...d
|
|
3300
3300
|
}) => {
|
|
3301
3301
|
const v = _((u) => u.addCommand), h = _((u) => u.getDataSet), g = _((u) => u.setDataSet), p = y(
|
|
3302
3302
|
() => ee(e, i),
|
|
3303
3303
|
[e, i]
|
|
3304
3304
|
), f = y(() => {
|
|
3305
3305
|
if (p && r) return h(p, r);
|
|
3306
|
-
}, [p, r, h]), s = y(() => f ?? c ?? l, [f, c, l]),
|
|
3306
|
+
}, [p, r, h]), s = y(() => f ?? c ?? l, [f, c, l]), m = j((u) => {
|
|
3307
3307
|
if (a) {
|
|
3308
3308
|
a(u);
|
|
3309
3309
|
return;
|
|
@@ -3313,16 +3313,16 @@ const Vc = ({
|
|
|
3313
3313
|
v(e, X(A, C));
|
|
3314
3314
|
}
|
|
3315
3315
|
}, [a, p, r, g, o, e, t, v]);
|
|
3316
|
-
return /* @__PURE__ */ b(kr, { ...
|
|
3316
|
+
return /* @__PURE__ */ b(kr, { ...d, disabled: n ? !1 : d.disabled, value: s, onChange: m });
|
|
3317
3317
|
}, Zo = 200, lr = (t, e, n = 1) => {
|
|
3318
3318
|
if (!Array.isArray(t)) return [];
|
|
3319
3319
|
const { codeKey: i, labelKey: r, childrenKey: o, maxLevel: a } = e;
|
|
3320
3320
|
return t.map((c) => {
|
|
3321
|
-
const l = n < a && Array.isArray(c == null ? void 0 : c[o]) ? lr(c[o], e, n + 1) : void 0,
|
|
3321
|
+
const l = n < a && Array.isArray(c == null ? void 0 : c[o]) ? lr(c[o], e, n + 1) : void 0, d = {
|
|
3322
3322
|
value: String(c == null ? void 0 : c[i]),
|
|
3323
3323
|
label: c == null ? void 0 : c[r]
|
|
3324
3324
|
};
|
|
3325
|
-
return l && l.length && (
|
|
3325
|
+
return l && l.length && (d.children = l), d;
|
|
3326
3326
|
});
|
|
3327
3327
|
}, _n = (t) => !t || typeof t != "string" ? [] : t.includes(",") ? t.split(",").map((e) => e.trim()).filter((e) => e) : [t], Xo = (t, e) => {
|
|
3328
3328
|
const n = (i, r, o = []) => {
|
|
@@ -3331,8 +3331,8 @@ const Vc = ({
|
|
|
3331
3331
|
if (c === r)
|
|
3332
3332
|
return l;
|
|
3333
3333
|
if (a.children && Array.isArray(a.children)) {
|
|
3334
|
-
const
|
|
3335
|
-
if (
|
|
3334
|
+
const d = n(a.children, r, l);
|
|
3335
|
+
if (d) return d;
|
|
3336
3336
|
}
|
|
3337
3337
|
}
|
|
3338
3338
|
return null;
|
|
@@ -3348,7 +3348,7 @@ const Vc = ({
|
|
|
3348
3348
|
rules: a,
|
|
3349
3349
|
validateOnBlur: c,
|
|
3350
3350
|
validateOnChange: l,
|
|
3351
|
-
changeAction:
|
|
3351
|
+
changeAction: d,
|
|
3352
3352
|
onChange: v,
|
|
3353
3353
|
options: h,
|
|
3354
3354
|
defaultValue: g,
|
|
@@ -3356,7 +3356,7 @@ const Vc = ({
|
|
|
3356
3356
|
remoteUrl: f,
|
|
3357
3357
|
...s
|
|
3358
3358
|
}) => {
|
|
3359
|
-
const
|
|
3359
|
+
const m = _(($) => $.addCommand), u = _(($) => $.setDataSet), A = Me(null), [C, k] = ve([]), [w, D] = ve(!1), x = y(
|
|
3360
3360
|
() => ee(e, i),
|
|
3361
3361
|
[e, i]
|
|
3362
3362
|
), E = _(
|
|
@@ -3401,13 +3401,13 @@ const Vc = ({
|
|
|
3401
3401
|
let W = $;
|
|
3402
3402
|
if (En($) && T ? W = String($[$.length - 1] || "") : On($) && T && (W = $.map((K) => K.join(","))), x && r && u(x, r, W), l && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
3403
3403
|
A.current = null, N($);
|
|
3404
|
-
}, Zo)),
|
|
3405
|
-
const { actionName: K, arg: R } = Ce(
|
|
3404
|
+
}, Zo)), d && e) {
|
|
3405
|
+
const { actionName: K, arg: R } = Ce(d, $, {
|
|
3406
3406
|
id: t,
|
|
3407
3407
|
dataSet: i,
|
|
3408
3408
|
dataSetField: r
|
|
3409
3409
|
});
|
|
3410
|
-
|
|
3410
|
+
m(e, X(K, R));
|
|
3411
3411
|
}
|
|
3412
3412
|
},
|
|
3413
3413
|
[
|
|
@@ -3417,10 +3417,10 @@ const Vc = ({
|
|
|
3417
3417
|
u,
|
|
3418
3418
|
l,
|
|
3419
3419
|
N,
|
|
3420
|
-
|
|
3420
|
+
d,
|
|
3421
3421
|
e,
|
|
3422
3422
|
t,
|
|
3423
|
-
|
|
3423
|
+
m,
|
|
3424
3424
|
T
|
|
3425
3425
|
]
|
|
3426
3426
|
), B = j(() => {
|
|
@@ -3459,14 +3459,14 @@ const Vc = ({
|
|
|
3459
3459
|
onChange: a,
|
|
3460
3460
|
value: c,
|
|
3461
3461
|
defaultValue: l,
|
|
3462
|
-
treeData:
|
|
3462
|
+
treeData: d,
|
|
3463
3463
|
remoteUrl: v,
|
|
3464
3464
|
selectAction: h,
|
|
3465
3465
|
styles: g,
|
|
3466
3466
|
classNames: p,
|
|
3467
3467
|
token: f,
|
|
3468
3468
|
rules: s,
|
|
3469
|
-
validateOnChange:
|
|
3469
|
+
validateOnChange: m,
|
|
3470
3470
|
validateOnBlur: u,
|
|
3471
3471
|
...A
|
|
3472
3472
|
}) => {
|
|
@@ -3491,7 +3491,7 @@ const Vc = ({
|
|
|
3491
3491
|
() => x ?? (D == null ? void 0 : D.value) ?? c ?? l,
|
|
3492
3492
|
[x, D == null ? void 0 : D.value, c, l]
|
|
3493
3493
|
), M = y(
|
|
3494
|
-
() =>
|
|
3494
|
+
() => Ue(A, D ?? void 0),
|
|
3495
3495
|
[A, D]
|
|
3496
3496
|
), T = j(
|
|
3497
3497
|
(q, W, K) => {
|
|
@@ -3499,7 +3499,7 @@ const Vc = ({
|
|
|
3499
3499
|
a(q, W, K);
|
|
3500
3500
|
return;
|
|
3501
3501
|
}
|
|
3502
|
-
if (w && r && k(w, r, q),
|
|
3502
|
+
if (w && r && k(w, r, q), m && E(q), o && e) {
|
|
3503
3503
|
const { actionName: R, arg: P } = Ce(o, q, {
|
|
3504
3504
|
id: t,
|
|
3505
3505
|
dataSet: i,
|
|
@@ -3508,7 +3508,7 @@ const Vc = ({
|
|
|
3508
3508
|
C(e, X(R, P));
|
|
3509
3509
|
}
|
|
3510
3510
|
},
|
|
3511
|
-
[a, w, r, k,
|
|
3511
|
+
[a, w, r, k, m, E, o, e, t, C]
|
|
3512
3512
|
), O = j(() => {
|
|
3513
3513
|
u && E(S);
|
|
3514
3514
|
}, [u, E, S]), z = y(() => {
|
|
@@ -3531,7 +3531,7 @@ const Vc = ({
|
|
|
3531
3531
|
...M,
|
|
3532
3532
|
disabled: n ? !1 : M.disabled,
|
|
3533
3533
|
open: n ? !1 : void 0,
|
|
3534
|
-
treeData:
|
|
3534
|
+
treeData: d,
|
|
3535
3535
|
value: S,
|
|
3536
3536
|
onChange: T,
|
|
3537
3537
|
style: { width: "100%", ...M.style },
|
|
@@ -3553,14 +3553,14 @@ const Vc = ({
|
|
|
3553
3553
|
buttonText: a = "上传文件",
|
|
3554
3554
|
rules: c,
|
|
3555
3555
|
validateOnBlur: l,
|
|
3556
|
-
validateOnChange:
|
|
3556
|
+
validateOnChange: d,
|
|
3557
3557
|
onChange: v,
|
|
3558
3558
|
fileList: h,
|
|
3559
3559
|
children: g,
|
|
3560
3560
|
uploadUrl: p,
|
|
3561
3561
|
maxSize: f = 10,
|
|
3562
3562
|
uploadParams: s,
|
|
3563
|
-
listDisplayText:
|
|
3563
|
+
listDisplayText: m,
|
|
3564
3564
|
action: u,
|
|
3565
3565
|
...A
|
|
3566
3566
|
}) => {
|
|
@@ -3616,7 +3616,7 @@ const Vc = ({
|
|
|
3616
3616
|
return G.length > 0 && typeof G[0] == "string" ? V(G) : B(G);
|
|
3617
3617
|
}
|
|
3618
3618
|
}, [M, S == null ? void 0 : S.fileList, h, V, B]), K = $ ?? W, R = y(
|
|
3619
|
-
() =>
|
|
3619
|
+
() => Ue(A, S ?? void 0, {
|
|
3620
3620
|
skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
|
|
3621
3621
|
}),
|
|
3622
3622
|
[A, S]
|
|
@@ -3646,7 +3646,7 @@ const Vc = ({
|
|
|
3646
3646
|
return;
|
|
3647
3647
|
}
|
|
3648
3648
|
const Z = Array.isArray(G.fileList) ? B(G.fileList) : G.fileList, Se = Array.isArray(Z) ? z(Z) : [], L = Array.isArray(Z) && Z.some((ge) => (ge == null ? void 0 : ge.status) === "uploading");
|
|
3649
|
-
N && w && (Se.length > 0 || !Array.isArray(Z) || Z.length === 0) ? (E(N, w, Se), q(null)) : L ? q(Z) : Z.length === 0 && q(null),
|
|
3649
|
+
N && w && (Se.length > 0 || !Array.isArray(Z) || Z.length === 0) ? (E(N, w, Se), q(null)) : L ? q(Z) : Z.length === 0 && q(null), d && T(Z), o && D && x(
|
|
3650
3650
|
D,
|
|
3651
3651
|
X(o, {
|
|
3652
3652
|
file: G.file,
|
|
@@ -3660,7 +3660,7 @@ const Vc = ({
|
|
|
3660
3660
|
N,
|
|
3661
3661
|
w,
|
|
3662
3662
|
E,
|
|
3663
|
-
|
|
3663
|
+
d,
|
|
3664
3664
|
T,
|
|
3665
3665
|
o,
|
|
3666
3666
|
D,
|
|
@@ -3693,7 +3693,7 @@ const Vc = ({
|
|
|
3693
3693
|
const Se = K.filter((ge) => ne(ge)), L = Se.map((ge) => I(ge)).filter(Boolean), le = Se.findIndex((ge) => (ge.uid || ge.url) === (G.uid || G.url));
|
|
3694
3694
|
me({ url: Z, name: G.name, urls: L, current: le >= 0 ? le : 0, open: !0 });
|
|
3695
3695
|
} else ne(G) || window.open(Z, "_blank");
|
|
3696
|
-
}, [I, ne, K]), se = !!He().upload && !u, te = R, ye = te.buttonText ?? a, ie = te.listType ?? A.listType, Te = String((S == null ? void 0 : S.listDisplayText) ??
|
|
3696
|
+
}, [I, ne, K]), se = !!He().upload && !u, te = R, ye = te.buttonText ?? a, ie = te.listType ?? A.listType, Te = String((S == null ? void 0 : S.listDisplayText) ?? m ?? "").trim(), je = y(() => {
|
|
3697
3697
|
const G = te.showUploadList;
|
|
3698
3698
|
return ie !== "text" || G === !1 || !Te || !(K != null && K.length) ? K : K.map((Z) => ({ ...Z, name: Te }));
|
|
3699
3699
|
}, [K, ie, te.showUploadList, Te]), we = te.maxCount, ae = (K == null ? void 0 : K.length) ?? 0, he = typeof we == "number" && ae >= we, fe = j(
|
|
@@ -3763,7 +3763,7 @@ const Vc = ({
|
|
|
3763
3763
|
selectAction: a,
|
|
3764
3764
|
onChange: c,
|
|
3765
3765
|
onSelect: l,
|
|
3766
|
-
value:
|
|
3766
|
+
value: d,
|
|
3767
3767
|
defaultValue: v,
|
|
3768
3768
|
options: h,
|
|
3769
3769
|
// 解构自定义属性,防止传递到 DOM
|
|
@@ -3772,12 +3772,12 @@ const Vc = ({
|
|
|
3772
3772
|
searchAction: f,
|
|
3773
3773
|
...s
|
|
3774
3774
|
}) => {
|
|
3775
|
-
const
|
|
3775
|
+
const m = _((z) => z.addCommand), u = _((z) => z.getDataSet), A = _((z) => z.setDataSet), C = y(
|
|
3776
3776
|
() => ee(e, i),
|
|
3777
3777
|
[e, i]
|
|
3778
3778
|
), [k, w] = ve(h || []), [, D] = ve(!1), x = Ve.useRef(void 0), { get: E } = ho(), N = y(() => {
|
|
3779
3779
|
if (C && r) return u(C, r);
|
|
3780
|
-
}, [C, r, u]), S = y(() => N ??
|
|
3780
|
+
}, [C, r, u]), S = y(() => N ?? d ?? v, [N, d, v]), M = j((z) => {
|
|
3781
3781
|
if (!(p != null && p.queryApi)) {
|
|
3782
3782
|
h && w(
|
|
3783
3783
|
h.filter(
|
|
@@ -3824,15 +3824,15 @@ const Vc = ({
|
|
|
3824
3824
|
}
|
|
3825
3825
|
if (C && r && A(C, r, z), o && e) {
|
|
3826
3826
|
const { actionName: V, arg: B } = Ce(o, z, { id: t, dataSet: i, dataSetField: r });
|
|
3827
|
-
|
|
3827
|
+
m(e, X(V, B));
|
|
3828
3828
|
}
|
|
3829
|
-
}, [c, C, r, A, o, e, t,
|
|
3829
|
+
}, [c, C, r, A, o, e, t, m]), O = j((z, V) => {
|
|
3830
3830
|
if (l) {
|
|
3831
3831
|
l(z, V);
|
|
3832
3832
|
return;
|
|
3833
3833
|
}
|
|
3834
|
-
a && e &&
|
|
3835
|
-
}, [l, a, e,
|
|
3834
|
+
a && e && m(e, X(a, { value: z, option: V }));
|
|
3835
|
+
}, [l, a, e, m]);
|
|
3836
3836
|
return /* @__PURE__ */ b(
|
|
3837
3837
|
Er,
|
|
3838
3838
|
{
|
|
@@ -3857,14 +3857,14 @@ const Vc = ({
|
|
|
3857
3857
|
resetAction: a,
|
|
3858
3858
|
showSubmit: c = !0,
|
|
3859
3859
|
showReset: l = !0,
|
|
3860
|
-
submitText:
|
|
3860
|
+
submitText: d = "提交",
|
|
3861
3861
|
resetText: v = "重置",
|
|
3862
3862
|
onFinish: h,
|
|
3863
3863
|
onReset: g,
|
|
3864
3864
|
children: p,
|
|
3865
3865
|
...f
|
|
3866
3866
|
}) => {
|
|
3867
|
-
const [s] = Bt.useForm(),
|
|
3867
|
+
const [s] = Bt.useForm(), m = _((w) => w.addCommand), u = _((w) => w.setDataSet), A = y(
|
|
3868
3868
|
() => ee(e, i),
|
|
3869
3869
|
[e, i]
|
|
3870
3870
|
), C = (w) => {
|
|
@@ -3872,18 +3872,18 @@ const Vc = ({
|
|
|
3872
3872
|
h(w);
|
|
3873
3873
|
return;
|
|
3874
3874
|
}
|
|
3875
|
-
A && r && u(A, r, w), o && e &&
|
|
3875
|
+
A && r && u(A, r, w), o && e && m(e, X(o, w));
|
|
3876
3876
|
}, k = () => {
|
|
3877
3877
|
if (s.resetFields(), g) {
|
|
3878
3878
|
g();
|
|
3879
3879
|
return;
|
|
3880
3880
|
}
|
|
3881
|
-
a && e &&
|
|
3881
|
+
a && e && m(e, X(a, null));
|
|
3882
3882
|
};
|
|
3883
3883
|
return /* @__PURE__ */ ue(Bt, { ...f, form: s, onFinish: C, children: [
|
|
3884
3884
|
p,
|
|
3885
|
-
(c || l) && /* @__PURE__ */ b(Bt.Item, { children: /* @__PURE__ */ ue(
|
|
3886
|
-
c && /* @__PURE__ */ b(et, { type: "primary", htmlType: "submit", children:
|
|
3885
|
+
(c || l) && /* @__PURE__ */ b(Bt.Item, { children: /* @__PURE__ */ ue(Qe, { children: [
|
|
3886
|
+
c && /* @__PURE__ */ b(et, { type: "primary", htmlType: "submit", children: d }),
|
|
3887
3887
|
l && /* @__PURE__ */ b(et, { onClick: k, children: v })
|
|
3888
3888
|
] }) })
|
|
3889
3889
|
] });
|
|
@@ -3912,14 +3912,14 @@ const Vc = ({
|
|
|
3912
3912
|
targetKeys: a,
|
|
3913
3913
|
selectedKeys: c,
|
|
3914
3914
|
disabled: l,
|
|
3915
|
-
showSearch:
|
|
3915
|
+
showSearch: d,
|
|
3916
3916
|
showSelectAll: v,
|
|
3917
3917
|
oneWay: h,
|
|
3918
3918
|
pagination: g,
|
|
3919
3919
|
status: p,
|
|
3920
3920
|
titles: f,
|
|
3921
3921
|
actions: s,
|
|
3922
|
-
locale:
|
|
3922
|
+
locale: m,
|
|
3923
3923
|
changeAction: u,
|
|
3924
3924
|
selectChangeAction: A,
|
|
3925
3925
|
searchAction: C,
|
|
@@ -3935,7 +3935,7 @@ const Vc = ({
|
|
|
3935
3935
|
const T = _((se) => se.addCommand), O = _((se) => se.getDataSet), z = _((se) => se.setDataSet), V = y(
|
|
3936
3936
|
() => ee(e, i),
|
|
3937
3937
|
[e, i]
|
|
3938
|
-
), B = y(() => We(N, {}), [N]), $ = y(() => We(S, {}), [S]), q = y(() => We(f, ["源列表", "目标列表"]), [f]), W = y(() => We(s, [">", "<"]), [s]), K = y(() => We(
|
|
3938
|
+
), B = y(() => We(N, {}), [N]), $ = y(() => We(S, {}), [S]), q = y(() => We(f, ["源列表", "目标列表"]), [f]), W = y(() => We(s, [">", "<"]), [s]), K = y(() => We(m, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [m]), R = y(() => We(g, !1), [g]), P = y(() => {
|
|
3939
3939
|
if (V && r) {
|
|
3940
3940
|
const se = O(V, r);
|
|
3941
3941
|
if (Array.isArray(se)) return se;
|
|
@@ -3976,7 +3976,7 @@ const Vc = ({
|
|
|
3976
3976
|
targetKeys: U,
|
|
3977
3977
|
selectedKeys: I,
|
|
3978
3978
|
disabled: l,
|
|
3979
|
-
showSearch:
|
|
3979
|
+
showSearch: d,
|
|
3980
3980
|
showSelectAll: v,
|
|
3981
3981
|
oneWay: h,
|
|
3982
3982
|
pagination: R,
|
|
@@ -4007,7 +4007,7 @@ const Vc = ({
|
|
|
4007
4007
|
return t;
|
|
4008
4008
|
}, Io = (t) => {
|
|
4009
4009
|
if (!t) return null;
|
|
4010
|
-
const e =
|
|
4010
|
+
const e = Je[t];
|
|
4011
4011
|
return e ? /* @__PURE__ */ b(e, {}) : null;
|
|
4012
4012
|
}, ea = (t) => sn(t, []).map((n) => ({
|
|
4013
4013
|
label: n.label,
|
|
@@ -4025,7 +4025,7 @@ const Vc = ({
|
|
|
4025
4025
|
value: a,
|
|
4026
4026
|
defaultValue: c,
|
|
4027
4027
|
block: l,
|
|
4028
|
-
disabled:
|
|
4028
|
+
disabled: d,
|
|
4029
4029
|
size: v,
|
|
4030
4030
|
vertical: h,
|
|
4031
4031
|
shape: g,
|
|
@@ -4033,13 +4033,13 @@ const Vc = ({
|
|
|
4033
4033
|
onChange: f,
|
|
4034
4034
|
// 样式
|
|
4035
4035
|
styles: s,
|
|
4036
|
-
token:
|
|
4036
|
+
token: m,
|
|
4037
4037
|
...u
|
|
4038
4038
|
}) => {
|
|
4039
4039
|
const A = _((O) => O.addCommand), C = _((O) => O.getDataSet), k = _((O) => O.setDataSet), w = y(
|
|
4040
4040
|
() => ee(e, i),
|
|
4041
4041
|
[e, i]
|
|
4042
|
-
), D = y(() => sn(s, {}), [s]), x = y(() => sn(
|
|
4042
|
+
), D = y(() => sn(s, {}), [s]), x = y(() => sn(m, {}), [m]), E = y(() => ea(o), [o]), S = y(() => {
|
|
4043
4043
|
if (w && r) {
|
|
4044
4044
|
const O = C(w, r);
|
|
4045
4045
|
if (typeof O == "string") return O;
|
|
@@ -4059,7 +4059,7 @@ const Vc = ({
|
|
|
4059
4059
|
value: S,
|
|
4060
4060
|
defaultValue: c,
|
|
4061
4061
|
block: l,
|
|
4062
|
-
disabled:
|
|
4062
|
+
disabled: d,
|
|
4063
4063
|
size: v,
|
|
4064
4064
|
vertical: h,
|
|
4065
4065
|
shape: g,
|
|
@@ -4084,8 +4084,8 @@ const Vc = ({
|
|
|
4084
4084
|
f && (p += f.offsetHeight);
|
|
4085
4085
|
const s = c.querySelector('[data-table-slot="footer"]');
|
|
4086
4086
|
s && (p += s.offsetHeight);
|
|
4087
|
-
const
|
|
4088
|
-
|
|
4087
|
+
const m = c.querySelector(".ant-table-title");
|
|
4088
|
+
m && (p += m.offsetHeight);
|
|
4089
4089
|
const u = c.querySelector(".ant-table-thead");
|
|
4090
4090
|
if (u && (p += u.offsetHeight), n) {
|
|
4091
4091
|
const w = c.querySelector(".ant-pagination");
|
|
@@ -4104,7 +4104,7 @@ const Vc = ({
|
|
|
4104
4104
|
});
|
|
4105
4105
|
};
|
|
4106
4106
|
r(50);
|
|
4107
|
-
const
|
|
4107
|
+
const d = setTimeout(l, 16), v = new ResizeObserver(() => {
|
|
4108
4108
|
l();
|
|
4109
4109
|
});
|
|
4110
4110
|
v.observe(c);
|
|
@@ -4117,7 +4117,7 @@ const Vc = ({
|
|
|
4117
4117
|
attributes: !0,
|
|
4118
4118
|
attributeFilter: ["style", "class"]
|
|
4119
4119
|
}), () => {
|
|
4120
|
-
clearTimeout(
|
|
4120
|
+
clearTimeout(d), a.current && cancelAnimationFrame(a.current), v.disconnect(), h.disconnect();
|
|
4121
4121
|
};
|
|
4122
4122
|
}, [o, n]), o ? i : e;
|
|
4123
4123
|
}, Mn = /* @__PURE__ */ new Map();
|
|
@@ -4142,7 +4142,7 @@ const ra = ({ dictCode: t, value: e }) => {
|
|
|
4142
4142
|
return /* @__PURE__ */ b("span", {});
|
|
4143
4143
|
if (!n)
|
|
4144
4144
|
return /* @__PURE__ */ b("span", { children: String(e) });
|
|
4145
|
-
const r =
|
|
4145
|
+
const r = Ge(n, e);
|
|
4146
4146
|
return /* @__PURE__ */ b("span", { children: (r == null ? void 0 : r.label) ?? String(e) });
|
|
4147
4147
|
}, ia = (t, e) => {
|
|
4148
4148
|
const n = e.columnDictType || e.dictType || "";
|
|
@@ -4187,7 +4187,7 @@ const ra = ({ dictCode: t, value: e }) => {
|
|
|
4187
4187
|
}, ca = (t, e) => {
|
|
4188
4188
|
let n = "";
|
|
4189
4189
|
try {
|
|
4190
|
-
const i =
|
|
4190
|
+
const i = Fe(t);
|
|
4191
4191
|
i.isValid() && (e.dateFormat === "date" ? n = i.format("YYYY-MM-DD") : e.dateFormat === "time" ? n = i.format("HH:mm:ss") : (e.dateFormat, n = i.format("YYYY-MM-DD HH:mm:ss")));
|
|
4192
4192
|
} catch {
|
|
4193
4193
|
n = "";
|
|
@@ -4228,10 +4228,10 @@ const fa = (t, e, n, i) => {
|
|
|
4228
4228
|
const r = (h = e.columnIcon) == null ? void 0 : h.trim();
|
|
4229
4229
|
if (!r)
|
|
4230
4230
|
return /* @__PURE__ */ b("span", {});
|
|
4231
|
-
const o =
|
|
4231
|
+
const o = Je[r];
|
|
4232
4232
|
if (!o)
|
|
4233
4233
|
return /* @__PURE__ */ b("span", {});
|
|
4234
|
-
const [a, c] = la(e.iconSize), l = (e.iconClickAction || "").trim(),
|
|
4234
|
+
const [a, c] = la(e.iconSize), l = (e.iconClickAction || "").trim(), d = i == null ? void 0 : i.runAction, v = /* @__PURE__ */ b(
|
|
4235
4235
|
"span",
|
|
4236
4236
|
{
|
|
4237
4237
|
style: {
|
|
@@ -4244,15 +4244,15 @@ const fa = (t, e, n, i) => {
|
|
|
4244
4244
|
children: /* @__PURE__ */ b(o, { style: { fontSize: Math.min(a, c) } })
|
|
4245
4245
|
}
|
|
4246
4246
|
);
|
|
4247
|
-
return l &&
|
|
4247
|
+
return l && d ? /* @__PURE__ */ b(
|
|
4248
4248
|
"span",
|
|
4249
4249
|
{
|
|
4250
4250
|
role: "button",
|
|
4251
4251
|
tabIndex: 0,
|
|
4252
4252
|
style: { cursor: "pointer", display: "flex" },
|
|
4253
|
-
onClick: () =>
|
|
4253
|
+
onClick: () => d(l, { ...n }),
|
|
4254
4254
|
onKeyDown: (g) => {
|
|
4255
|
-
(g.key === "Enter" || g.key === " ") && (g.preventDefault(),
|
|
4255
|
+
(g.key === "Enter" || g.key === " ") && (g.preventDefault(), d(l, { ...n }));
|
|
4256
4256
|
},
|
|
4257
4257
|
children: v
|
|
4258
4258
|
}
|
|
@@ -4297,10 +4297,10 @@ function $n(t, e, n, i) {
|
|
|
4297
4297
|
};
|
|
4298
4298
|
}
|
|
4299
4299
|
function ha(t, e, n, i) {
|
|
4300
|
-
const r = (t == null ? void 0 : t.order) ?? e.map((h) => h.key), o = (t == null ? void 0 : t.visible) ?? {}, a = (t == null ? void 0 : t.fixed) ?? {}, c = (t == null ? void 0 : t.width) ?? {}, l = new Map(e.map((h) => [h.key, h])),
|
|
4300
|
+
const r = (t == null ? void 0 : t.order) ?? e.map((h) => h.key), o = (t == null ? void 0 : t.visible) ?? {}, a = (t == null ? void 0 : t.fixed) ?? {}, c = (t == null ? void 0 : t.width) ?? {}, l = new Map(e.map((h) => [h.key, h])), d = [], v = /* @__PURE__ */ new Set();
|
|
4301
4301
|
for (const h of r) {
|
|
4302
4302
|
const g = l.get(h);
|
|
4303
|
-
g && (v.add(h),
|
|
4303
|
+
g && (v.add(h), d.push({
|
|
4304
4304
|
key: g.key,
|
|
4305
4305
|
title: g.title,
|
|
4306
4306
|
visible: o[h] ?? g.visible,
|
|
@@ -4309,7 +4309,7 @@ function ha(t, e, n, i) {
|
|
|
4309
4309
|
}));
|
|
4310
4310
|
}
|
|
4311
4311
|
for (const h of e)
|
|
4312
|
-
v.has(h.key) ||
|
|
4312
|
+
v.has(h.key) || d.push({
|
|
4313
4313
|
...h,
|
|
4314
4314
|
visible: o[h.key] ?? h.visible,
|
|
4315
4315
|
fixed: a[h.key] ?? h.fixed,
|
|
@@ -4317,7 +4317,7 @@ function ha(t, e, n, i) {
|
|
|
4317
4317
|
});
|
|
4318
4318
|
return {
|
|
4319
4319
|
rowIndexVisible: (t == null ? void 0 : t.rowIndexVisible) ?? n,
|
|
4320
|
-
items:
|
|
4320
|
+
items: d,
|
|
4321
4321
|
scrollX: t == null ? void 0 : t.scrollX,
|
|
4322
4322
|
size: (t == null ? void 0 : t.size) ?? i ?? "middle"
|
|
4323
4323
|
};
|
|
@@ -4332,11 +4332,11 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4332
4332
|
scrollX: a = !1,
|
|
4333
4333
|
defaultScrollX: c = !1,
|
|
4334
4334
|
size: l = "middle",
|
|
4335
|
-
defaultSize:
|
|
4335
|
+
defaultSize: d = "middle",
|
|
4336
4336
|
onSave: v,
|
|
4337
4337
|
onClose: h
|
|
4338
4338
|
}) => {
|
|
4339
|
-
const [g, p] = ve(n), [f, s] = ve(i), [
|
|
4339
|
+
const [g, p] = ve(n), [f, s] = ve(i), [m, u] = ve(a), [A, C] = ve(l), [k, w] = ve(null);
|
|
4340
4340
|
xe(() => {
|
|
4341
4341
|
t && (p(n), s([...i]), u(a), C(l));
|
|
4342
4342
|
}, [t, n, i, a, l]);
|
|
@@ -4346,13 +4346,13 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4346
4346
|
},
|
|
4347
4347
|
[v]
|
|
4348
4348
|
), x = j(
|
|
4349
|
-
(R, P, Q, Y) => $n(R, P, Q ??
|
|
4350
|
-
[
|
|
4349
|
+
(R, P, Q, Y) => $n(R, P, Q ?? m, Y ?? A),
|
|
4350
|
+
[m, A]
|
|
4351
4351
|
), E = j(() => {
|
|
4352
4352
|
p(r);
|
|
4353
4353
|
const R = o.map((P) => ({ ...P }));
|
|
4354
|
-
s(R), u(c), C(
|
|
4355
|
-
}, [r, o, c,
|
|
4354
|
+
s(R), u(c), C(d), D($n(r, R, c, d));
|
|
4355
|
+
}, [r, o, c, d, D]), N = j(
|
|
4356
4356
|
(R) => {
|
|
4357
4357
|
s((P) => {
|
|
4358
4358
|
const Q = P.map((Y) => Y.key === R ? { ...Y, visible: !Y.visible } : Y);
|
|
@@ -4405,9 +4405,9 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4405
4405
|
[g, f, A, x, D]
|
|
4406
4406
|
), B = j(
|
|
4407
4407
|
(R) => {
|
|
4408
|
-
C(R), D(x(g, f,
|
|
4408
|
+
C(R), D(x(g, f, m, R));
|
|
4409
4409
|
},
|
|
4410
|
-
[g, f,
|
|
4410
|
+
[g, f, m, x, D]
|
|
4411
4411
|
), $ = (R) => (P) => {
|
|
4412
4412
|
w(R), P.dataTransfer.effectAllowed = "move", P.dataTransfer.setData("text/plain", String(R));
|
|
4413
4413
|
}, q = (R) => (P) => {
|
|
@@ -4439,8 +4439,8 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4439
4439
|
children: "序号列"
|
|
4440
4440
|
}
|
|
4441
4441
|
),
|
|
4442
|
-
/* @__PURE__ */ b(ht, { checked:
|
|
4443
|
-
/* @__PURE__ */ ue(
|
|
4442
|
+
/* @__PURE__ */ b(ht, { checked: m, onChange: (R) => V(R.target.checked), children: "自动滚动" }),
|
|
4443
|
+
/* @__PURE__ */ ue(Qe, { align: "center", children: [
|
|
4444
4444
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4445
4445
|
/* @__PURE__ */ b(
|
|
4446
4446
|
Vn,
|
|
@@ -4512,7 +4512,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4512
4512
|
}
|
|
4513
4513
|
)
|
|
4514
4514
|
] }) }),
|
|
4515
|
-
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ue(
|
|
4515
|
+
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ue(Qe, { className: "and-table-column-setting-fix", children: [
|
|
4516
4516
|
/* @__PURE__ */ b(
|
|
4517
4517
|
"span",
|
|
4518
4518
|
{
|
|
@@ -4561,7 +4561,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4561
4561
|
return n && e ? ((ce = J.propsStore[`${n}_props`]) == null ? void 0 : ce[e]) ?? null : null;
|
|
4562
4562
|
}
|
|
4563
4563
|
), r = y(
|
|
4564
|
-
() =>
|
|
4564
|
+
() => Ue(
|
|
4565
4565
|
{ ...t },
|
|
4566
4566
|
i ?? void 0,
|
|
4567
4567
|
{ skipKeys: [...ga] }
|
|
@@ -4572,14 +4572,14 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4572
4572
|
dataSet: a,
|
|
4573
4573
|
dataSetField: c,
|
|
4574
4574
|
columns: l = [],
|
|
4575
|
-
operateColumns:
|
|
4575
|
+
operateColumns: d = [],
|
|
4576
4576
|
sampleData: v,
|
|
4577
4577
|
operationColumnVisible: h = !0,
|
|
4578
4578
|
selectRowEnable: g,
|
|
4579
4579
|
singleSelectMode: p,
|
|
4580
4580
|
selectAction: f,
|
|
4581
4581
|
rowKeyField: s = "id",
|
|
4582
|
-
displayRowIndex:
|
|
4582
|
+
displayRowIndex: m,
|
|
4583
4583
|
queryAction: u,
|
|
4584
4584
|
pagination: A,
|
|
4585
4585
|
emptyText: C,
|
|
@@ -4608,7 +4608,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4608
4608
|
return ce;
|
|
4609
4609
|
}
|
|
4610
4610
|
return J;
|
|
4611
|
-
}, []), me = y(() => Array.isArray(l) ? l : [], [l]), De = y(() => Array.isArray(
|
|
4611
|
+
}, []), me = y(() => Array.isArray(l) ? l : [], [l]), De = y(() => Array.isArray(d) ? d : [], [d]), re = y(
|
|
4612
4612
|
() => ({
|
|
4613
4613
|
dataSet: ee(n, a),
|
|
4614
4614
|
pagination: a ? ee(n, `${a}_pagination`) : void 0,
|
|
@@ -4648,7 +4648,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4648
4648
|
(J) => re.pagination ? J.dataSets[re.pagination] : void 0
|
|
4649
4649
|
), L = y(() => re.pagination ? R(re.pagination, "") || {} : {}, [re.pagination, R, Se]), le = y(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ge = ta(U, ie == null ? void 0 : ie.y, le), F = y(() => {
|
|
4650
4650
|
if (!le) return !1;
|
|
4651
|
-
const J = typeof A == "object" ? A : {}, ce = W || {}, Oe = J.showSizeChanger ?? ce["pagination-showSizeChanger"] ?? !0, Ne = J.showQuickJumper ?? ce["pagination-showQuickJumper"] ?? !1, _e = J.simple ?? ce["pagination-simple"] ?? !1, ze = J.defaultPageSize ?? ce["pagination-defaultPageSize"] ?? 10,
|
|
4651
|
+
const J = typeof A == "object" ? A : {}, ce = W || {}, Oe = J.showSizeChanger ?? ce["pagination-showSizeChanger"] ?? !0, Ne = J.showQuickJumper ?? ce["pagination-showQuickJumper"] ?? !1, _e = J.simple ?? ce["pagination-simple"] ?? !1, ze = J.defaultPageSize ?? ce["pagination-defaultPageSize"] ?? 10, Ye = J.pageSizeOptions ?? ce["pagination-pageSizeOptions"] ?? "10,20,50,100", Ht = typeof Ye == "string" ? Ye.split(",").map((rt) => parseInt(String(rt).trim(), 10) || 10).filter((rt) => !isNaN(rt)) : Array.isArray(Ye) ? Ye : [10, 20, 50, 100];
|
|
4652
4652
|
return {
|
|
4653
4653
|
...L,
|
|
4654
4654
|
showSizeChanger: Oe,
|
|
@@ -4680,7 +4680,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4680
4680
|
fixed: ce,
|
|
4681
4681
|
width: typeof Oe == "number" ? Oe : "auto"
|
|
4682
4682
|
};
|
|
4683
|
-
}).filter((J) => J.key), [me]), Ae =
|
|
4683
|
+
}).filter((J) => J.key), [me]), Ae = m === !0, ke = !1, Ze = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: Pe, items: nt, scrollX: st, size: mn } = y(() => ha(
|
|
4684
4684
|
we,
|
|
4685
4685
|
pe,
|
|
4686
4686
|
Ae,
|
|
@@ -4691,28 +4691,28 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4691
4691
|
return J === !0 || typeof J == "number" && Number.isFinite(J) && J > 0 ? !0 : J === "max-content" ? !1 : ke;
|
|
4692
4692
|
}, [st, ie == null ? void 0 : ie.x, ke]), hn = y(() => lt ? st !== void 0 ? st ? !0 : "max-content" : (ie == null ? void 0 : ie.x) !== void 0 ? ie.x : "max-content" : ie == null ? void 0 : ie.x, [lt, st, ie == null ? void 0 : ie.x, ke]), _t = y(() => {
|
|
4693
4693
|
const J = [];
|
|
4694
|
-
|
|
4694
|
+
Pe && J.push({
|
|
4695
4695
|
title: "序号",
|
|
4696
4696
|
key: "rowIndex",
|
|
4697
4697
|
width: 60,
|
|
4698
4698
|
align: "center",
|
|
4699
4699
|
render: (Ne, _e, ze) => {
|
|
4700
|
-
const
|
|
4701
|
-
return (
|
|
4700
|
+
const Ye = L.current || 1, Ht = L.pageSize || 10;
|
|
4701
|
+
return (Ye - 1) * Ht + ze + 1;
|
|
4702
4702
|
}
|
|
4703
4703
|
});
|
|
4704
4704
|
const ce = new Map(me.map((Ne) => [String(Ne.key ?? Ne.dataIndex ?? ""), Ne]));
|
|
4705
4705
|
return nt.filter((Ne) => Ne.visible).forEach((Ne) => {
|
|
4706
4706
|
const _e = ce.get(Ne.key);
|
|
4707
4707
|
if (!_e) return;
|
|
4708
|
-
const ze = Ne.fixed || void 0,
|
|
4708
|
+
const ze = Ne.fixed || void 0, Ye = Ne.width === "auto" || Ne.width === void 0 ? void 0 : Ne.width;
|
|
4709
4709
|
J.push(
|
|
4710
4710
|
da(
|
|
4711
4711
|
{
|
|
4712
4712
|
..._e,
|
|
4713
4713
|
dataIndex: _e.dataIndex || _e.key,
|
|
4714
4714
|
fixed: ze || _e.fixed,
|
|
4715
|
-
width:
|
|
4715
|
+
width: Ye ?? _e.width
|
|
4716
4716
|
},
|
|
4717
4717
|
{ runAction: oe }
|
|
4718
4718
|
)
|
|
@@ -4720,12 +4720,12 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4720
4720
|
}), h !== !1 && De.length > 0 && J.push({
|
|
4721
4721
|
title: "操作",
|
|
4722
4722
|
key: "action",
|
|
4723
|
-
render: (Ne, _e) => /* @__PURE__ */ b(
|
|
4723
|
+
render: (Ne, _e) => /* @__PURE__ */ b(Qe, { children: De.map((ze, Ye) => /* @__PURE__ */ b($r, { title: ze.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => H(ze, _e), style: { marginRight: 5 }, children: ze.title }) }, Ye)) })
|
|
4724
4724
|
}), J;
|
|
4725
4725
|
}, [
|
|
4726
4726
|
me,
|
|
4727
4727
|
De,
|
|
4728
|
-
|
|
4728
|
+
Pe,
|
|
4729
4729
|
nt,
|
|
4730
4730
|
h,
|
|
4731
4731
|
L,
|
|
@@ -4835,7 +4835,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4835
4835
|
{
|
|
4836
4836
|
open: Te,
|
|
4837
4837
|
position: I,
|
|
4838
|
-
rowIndexVisible:
|
|
4838
|
+
rowIndexVisible: Pe,
|
|
4839
4839
|
columnItems: nt,
|
|
4840
4840
|
defaultRowIndexVisible: Ae,
|
|
4841
4841
|
defaultColumnItems: pe,
|
|
@@ -4860,7 +4860,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4860
4860
|
dataSetField: a,
|
|
4861
4861
|
fontSize: c,
|
|
4862
4862
|
color: l,
|
|
4863
|
-
dictCode:
|
|
4863
|
+
dictCode: d,
|
|
4864
4864
|
formatType: v,
|
|
4865
4865
|
formatValue: h,
|
|
4866
4866
|
fallbackDisplay: g = !1,
|
|
@@ -4868,17 +4868,17 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4868
4868
|
token: f,
|
|
4869
4869
|
// Filter out custom props that shouldn't be passed to DOM
|
|
4870
4870
|
clickAction: s,
|
|
4871
|
-
...
|
|
4871
|
+
...m
|
|
4872
4872
|
}) => {
|
|
4873
4873
|
const u = _((K) => K.getDataSet), A = _((K) => {
|
|
4874
4874
|
var R;
|
|
4875
4875
|
return !e || !t ? null : ((R = K.propsStore[`${e}_props`]) == null ? void 0 : R[t]) ?? null;
|
|
4876
4876
|
}), C = y(
|
|
4877
|
-
() =>
|
|
4878
|
-
[
|
|
4877
|
+
() => d === "selectedCount" && a && !o ? a : o,
|
|
4878
|
+
[d, a, o]
|
|
4879
4879
|
), k = y(
|
|
4880
|
-
() =>
|
|
4881
|
-
[
|
|
4880
|
+
() => d === "selectedCount" ? "selectedCount" : a,
|
|
4881
|
+
[d, a]
|
|
4882
4882
|
), w = y(
|
|
4883
4883
|
() => ee(e, C),
|
|
4884
4884
|
[e, C]
|
|
@@ -4886,7 +4886,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4886
4886
|
if (!w) return;
|
|
4887
4887
|
const R = gt(w).baseName;
|
|
4888
4888
|
return K.dataSets[R];
|
|
4889
|
-
}), { options: x } = Tt(
|
|
4889
|
+
}), { options: x } = Tt(d), E = y(() => {
|
|
4890
4890
|
if (w && k)
|
|
4891
4891
|
return u(w, k);
|
|
4892
4892
|
}, [w, k, u, D]), N = y(() => {
|
|
@@ -4899,22 +4899,22 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4899
4899
|
}
|
|
4900
4900
|
return h;
|
|
4901
4901
|
}, [h]), S = (K) => K == null || K === "" || typeof K == "string" && K.trim() === "", M = y(() => n ? i : E != null && E !== "" ? S(E) && g ? i : E : (A == null ? void 0 : A.content) !== void 0 ? A.content : i, [n, E, A == null ? void 0 : A.content, i, g]), T = y(() => {
|
|
4902
|
-
if (
|
|
4903
|
-
const K =
|
|
4902
|
+
if (d && x.length > 0 && M !== void 0 && M !== null) {
|
|
4903
|
+
const K = Ge(x, M);
|
|
4904
4904
|
return (K == null ? void 0 : K.label) ?? M;
|
|
4905
4905
|
}
|
|
4906
4906
|
return M;
|
|
4907
|
-
}, [
|
|
4907
|
+
}, [d, x, M]), O = y(() => {
|
|
4908
4908
|
if (n)
|
|
4909
4909
|
return T;
|
|
4910
4910
|
const K = (A == null ? void 0 : A.formatType) || v;
|
|
4911
4911
|
return K && T !== void 0 && T !== null ? Bo(T, K, N) : T;
|
|
4912
4912
|
}, [n, T, v, N, A == null ? void 0 : A.formatType]), z = y(() => {
|
|
4913
|
-
const K = { ...
|
|
4913
|
+
const K = { ...m };
|
|
4914
4914
|
return A && typeof A == "object" && Object.keys(A).forEach((R) => {
|
|
4915
4915
|
!["content", "formatType", "formatValue", "clickAction"].includes(R) && A[R] !== void 0 && A[R] !== null && (K[R] = A[R]);
|
|
4916
4916
|
}), K;
|
|
4917
|
-
}, [
|
|
4917
|
+
}, [m, A]), V = (A == null ? void 0 : A.color) ?? l, B = Wt(V), $ = y(() => {
|
|
4918
4918
|
if (!f) return;
|
|
4919
4919
|
let K = f;
|
|
4920
4920
|
if (typeof f == "string")
|
|
@@ -4947,7 +4947,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4947
4947
|
dataSetField: a,
|
|
4948
4948
|
level: c = 1,
|
|
4949
4949
|
color: l,
|
|
4950
|
-
styles:
|
|
4950
|
+
styles: d,
|
|
4951
4951
|
...v
|
|
4952
4952
|
}) => {
|
|
4953
4953
|
const h = _((w) => w.getDataSet), g = _((w) => w.getProps), p = y(
|
|
@@ -4956,7 +4956,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4956
4956
|
), f = y(() => e && t ? g(e, t) : null, [e, t, g]), s = y(() => {
|
|
4957
4957
|
if (p && a)
|
|
4958
4958
|
return h(p, a);
|
|
4959
|
-
}, [p, a, h]),
|
|
4959
|
+
}, [p, a, h]), m = y(() => n ? i : s != null && s !== "" ? String(s) : (f == null ? void 0 : f.content) !== void 0 ? f.content : i, [n, s, f == null ? void 0 : f.content, i]), u = (f == null ? void 0 : f.color) ?? l, A = Wt(u), C = y(() => {
|
|
4960
4960
|
const w = {};
|
|
4961
4961
|
return A && (w.color = A), w;
|
|
4962
4962
|
}, [A]), k = y(() => {
|
|
@@ -4965,7 +4965,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4965
4965
|
D !== "content" && f[D] !== void 0 && f[D] !== null && (w[D] = f[D]);
|
|
4966
4966
|
}), w;
|
|
4967
4967
|
}, [v, f]);
|
|
4968
|
-
return /* @__PURE__ */ b(va, { level: c, ...k, style: { ...C, ...
|
|
4968
|
+
return /* @__PURE__ */ b(va, { level: c, ...k, style: { ...C, ...d, ...k.style }, children: m || r });
|
|
4969
4969
|
}, { Paragraph: ba } = un, as = ({
|
|
4970
4970
|
id: t,
|
|
4971
4971
|
sessionId: e,
|
|
@@ -4976,7 +4976,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4976
4976
|
dataSetField: a,
|
|
4977
4977
|
color: c,
|
|
4978
4978
|
styles: l,
|
|
4979
|
-
...
|
|
4979
|
+
...d
|
|
4980
4980
|
}) => {
|
|
4981
4981
|
const v = _((k) => k.getDataSet), h = _((k) => k.getProps), g = y(
|
|
4982
4982
|
() => ee(e, o),
|
|
@@ -4984,15 +4984,15 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
4984
4984
|
), p = y(() => e && t ? h(e, t) : null, [e, t, h]), f = y(() => {
|
|
4985
4985
|
if (g && a)
|
|
4986
4986
|
return v(g, a);
|
|
4987
|
-
}, [g, a, v]), s = y(() => n ? i : f != null && f !== "" ? String(f) : (p == null ? void 0 : p.content) !== void 0 ? p.content : i, [n, f, p == null ? void 0 : p.content, i]),
|
|
4987
|
+
}, [g, a, v]), s = y(() => n ? i : f != null && f !== "" ? String(f) : (p == null ? void 0 : p.content) !== void 0 ? p.content : i, [n, f, p == null ? void 0 : p.content, i]), m = (p == null ? void 0 : p.color) ?? c, u = Wt(m), A = y(() => {
|
|
4988
4988
|
const k = {};
|
|
4989
4989
|
return u && (k.color = u), k;
|
|
4990
4990
|
}, [u]), C = y(() => {
|
|
4991
|
-
const k = { ...
|
|
4991
|
+
const k = { ...d };
|
|
4992
4992
|
return p && typeof p == "object" && Object.keys(p).forEach((w) => {
|
|
4993
4993
|
w !== "content" && p[w] !== void 0 && p[w] !== null && (k[w] = p[w]);
|
|
4994
4994
|
}), k;
|
|
4995
|
-
}, [
|
|
4995
|
+
}, [d, p]);
|
|
4996
4996
|
return /* @__PURE__ */ b(ba, { ...C, style: { ...A, ...l, ...C.style }, children: s || r });
|
|
4997
4997
|
}, Sa = (t) => {
|
|
4998
4998
|
if (!t) return [];
|
|
@@ -5013,13 +5013,13 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5013
5013
|
items: a,
|
|
5014
5014
|
changeAction: c,
|
|
5015
5015
|
onChange: l,
|
|
5016
|
-
activeKey:
|
|
5016
|
+
activeKey: d,
|
|
5017
5017
|
defaultActiveKey: v,
|
|
5018
5018
|
renderTabContent: h,
|
|
5019
5019
|
children: g,
|
|
5020
5020
|
...p
|
|
5021
5021
|
}) => {
|
|
5022
|
-
const f = _((N) => N.addCommand), s = _((N) => N.getDataSet),
|
|
5022
|
+
const f = _((N) => N.addCommand), s = _((N) => N.getDataSet), m = _((N) => N.setDataSet), u = y(
|
|
5023
5023
|
() => ee(e, i),
|
|
5024
5024
|
[e, i]
|
|
5025
5025
|
), A = y(() => Sa(o), [o]), C = y(() => a && a.length > 0 ? n ? a.map((N) => ({ ...N, forceRender: !0 })) : a : A.length > 0 ? A.map((N, S) => ({
|
|
@@ -5034,9 +5034,9 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5034
5034
|
}, [u, r, s]), [w, D] = Ve.useState(void 0), x = y(() => {
|
|
5035
5035
|
if (n && w)
|
|
5036
5036
|
return w;
|
|
5037
|
-
const N = k ??
|
|
5037
|
+
const N = k ?? d ?? v;
|
|
5038
5038
|
return !N && C.length > 0 ? C[0].key : N;
|
|
5039
|
-
}, [n, w, k,
|
|
5039
|
+
}, [n, w, k, d, v, C]), E = j((N) => {
|
|
5040
5040
|
if (n) {
|
|
5041
5041
|
D(N);
|
|
5042
5042
|
return;
|
|
@@ -5045,8 +5045,8 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5045
5045
|
l(N);
|
|
5046
5046
|
return;
|
|
5047
5047
|
}
|
|
5048
|
-
u && r &&
|
|
5049
|
-
}, [n, l, u, r,
|
|
5048
|
+
u && r && m(u, r, N), c && e && f(e, X(c, N));
|
|
5049
|
+
}, [n, l, u, r, m, c, e, f]);
|
|
5050
5050
|
return /* @__PURE__ */ b(
|
|
5051
5051
|
jr,
|
|
5052
5052
|
{
|
|
@@ -5068,14 +5068,14 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5068
5068
|
checkAction: a,
|
|
5069
5069
|
expandAction: c,
|
|
5070
5070
|
dragEndAction: l,
|
|
5071
|
-
dragEnterAction:
|
|
5071
|
+
dragEnterAction: d,
|
|
5072
5072
|
dragLeaveAction: v,
|
|
5073
5073
|
dragOverAction: h,
|
|
5074
5074
|
dragStartAction: g,
|
|
5075
5075
|
dropAction: p,
|
|
5076
5076
|
rightClickAction: f,
|
|
5077
5077
|
loadAction: s,
|
|
5078
|
-
onSelect:
|
|
5078
|
+
onSelect: m,
|
|
5079
5079
|
onCheck: u,
|
|
5080
5080
|
onExpand: A,
|
|
5081
5081
|
onDragEnd: C,
|
|
@@ -5121,13 +5121,13 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5121
5121
|
(L) => R ? L.getDataSet(R, "") : void 0
|
|
5122
5122
|
), I = y(() => n ? P ?? M ?? [] : q ? P ?? [] : M ?? [], [n, q, P, M]), ne = Q, de = Y, me = U, De = j(
|
|
5123
5123
|
(L, le) => {
|
|
5124
|
-
if (
|
|
5125
|
-
|
|
5124
|
+
if (m) {
|
|
5125
|
+
m(L, le);
|
|
5126
5126
|
return;
|
|
5127
5127
|
}
|
|
5128
5128
|
W && $(W, "", L), o && e && B(e, X(o, { selectedKeys: L }));
|
|
5129
5129
|
},
|
|
5130
|
-
[
|
|
5130
|
+
[m, W, e, $, o, B]
|
|
5131
5131
|
), re = j(
|
|
5132
5132
|
(L, le) => {
|
|
5133
5133
|
if (u) {
|
|
@@ -5161,9 +5161,9 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5161
5161
|
k(L);
|
|
5162
5162
|
return;
|
|
5163
5163
|
}
|
|
5164
|
-
|
|
5164
|
+
d && e && B(e, X(d, L));
|
|
5165
5165
|
},
|
|
5166
|
-
[k,
|
|
5166
|
+
[k, d, e, B]
|
|
5167
5167
|
), ie = j(
|
|
5168
5168
|
(L) => {
|
|
5169
5169
|
if (w) {
|
|
@@ -5263,7 +5263,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5263
5263
|
// @ts-ignore
|
|
5264
5264
|
remoteUrl: c,
|
|
5265
5265
|
mode: l,
|
|
5266
|
-
...
|
|
5266
|
+
...d
|
|
5267
5267
|
}) => {
|
|
5268
5268
|
const v = _((A) => A.getDataSet), h = _((A) => A.getProps), g = y(
|
|
5269
5269
|
() => ee(e, o),
|
|
@@ -5283,16 +5283,16 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5283
5283
|
const w = { ...k };
|
|
5284
5284
|
return w.label && !w.title && (w.title = w.label, delete w.label), w.children && !w.content && (w.content = w.children, delete w.children), w;
|
|
5285
5285
|
}) : A;
|
|
5286
|
-
}, [n, g, f, p == null ? void 0 : p.items, i]),
|
|
5287
|
-
const A = { ...
|
|
5286
|
+
}, [n, g, f, p == null ? void 0 : p.items, i]), m = y(() => {
|
|
5287
|
+
const A = { ...d };
|
|
5288
5288
|
return p && typeof p == "object" && Object.keys(p).forEach((C) => {
|
|
5289
5289
|
C !== "items" && p[C] !== void 0 && p[C] !== null && (A[C] = p[C]);
|
|
5290
5290
|
}), A;
|
|
5291
|
-
}, [
|
|
5291
|
+
}, [d, p]), u = y(() => l === "left" ? "start" : l === "right" ? "end" : l, [l]);
|
|
5292
5292
|
return /* @__PURE__ */ b(
|
|
5293
5293
|
Br,
|
|
5294
5294
|
{
|
|
5295
|
-
...
|
|
5295
|
+
...m,
|
|
5296
5296
|
mode: u,
|
|
5297
5297
|
items: s,
|
|
5298
5298
|
children: r
|
|
@@ -5317,7 +5317,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5317
5317
|
onChange: a,
|
|
5318
5318
|
current: c,
|
|
5319
5319
|
items: l,
|
|
5320
|
-
direction:
|
|
5320
|
+
direction: d,
|
|
5321
5321
|
orientation: v,
|
|
5322
5322
|
labelPlacement: h,
|
|
5323
5323
|
titlePlacement: g,
|
|
@@ -5325,18 +5325,18 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5325
5325
|
token: f,
|
|
5326
5326
|
...s
|
|
5327
5327
|
}) => {
|
|
5328
|
-
const
|
|
5328
|
+
const m = _((z) => z.addCommand), u = _((z) => z.getDataSet), A = _((z) => z.setDataSet), C = y(
|
|
5329
5329
|
() => ee(e, i),
|
|
5330
5330
|
[e, i]
|
|
5331
5331
|
), k = y(() => {
|
|
5332
5332
|
if (C && r) return u(C, r);
|
|
5333
|
-
}, [C, r, u]), w = y(() => k ?? c ?? 0, [k, c]), D = y(() => v ??
|
|
5333
|
+
}, [C, r, u]), w = y(() => k ?? c ?? 0, [k, c]), D = y(() => v ?? d, [v, d]), x = y(() => g ?? h, [g, h]), E = y(() => Gt(l, []), [l]), N = y(() => Gt(p, {}), [p]), S = y(() => Gt(f, {}), [f]), M = j((z) => {
|
|
5334
5334
|
if (a) {
|
|
5335
5335
|
a(z);
|
|
5336
5336
|
return;
|
|
5337
5337
|
}
|
|
5338
|
-
C && r && A(C, r, z), o && e &&
|
|
5339
|
-
}, [a, C, r, A, o, e,
|
|
5338
|
+
C && r && A(C, r, z), o && e && m(e, X(o, z));
|
|
5339
|
+
}, [a, C, r, A, o, e, m]), T = Object.keys(S).length > 0, O = /* @__PURE__ */ b(
|
|
5340
5340
|
zr,
|
|
5341
5341
|
{
|
|
5342
5342
|
...s,
|
|
@@ -5389,7 +5389,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5389
5389
|
dotPlacement: a,
|
|
5390
5390
|
slides: c,
|
|
5391
5391
|
changeAction: l,
|
|
5392
|
-
afterChange:
|
|
5392
|
+
afterChange: d,
|
|
5393
5393
|
renderSlideContent: v,
|
|
5394
5394
|
children: h,
|
|
5395
5395
|
...g
|
|
@@ -5397,17 +5397,17 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5397
5397
|
const p = _((k) => k.addCommand), f = _((k) => k.setDataSet), s = y(
|
|
5398
5398
|
() => ee(e, i),
|
|
5399
5399
|
[e, i]
|
|
5400
|
-
),
|
|
5400
|
+
), m = y(() => {
|
|
5401
5401
|
if (a) return a;
|
|
5402
5402
|
if (o)
|
|
5403
5403
|
return wa[o] || o;
|
|
5404
5404
|
}, [o, a]), u = y(() => Da(c), [c]), A = j((k) => {
|
|
5405
|
-
if (
|
|
5406
|
-
|
|
5405
|
+
if (d) {
|
|
5406
|
+
d(k);
|
|
5407
5407
|
return;
|
|
5408
5408
|
}
|
|
5409
5409
|
s && r && f(s, r, k), l && e && p(e, X(l, k));
|
|
5410
|
-
}, [
|
|
5410
|
+
}, [d, s, r, f, l, e, p]), C = y(() => h || (u.length > 0 ? u.map((k, w) => {
|
|
5411
5411
|
const D = v ? v(k.key, w) : null;
|
|
5412
5412
|
return /* @__PURE__ */ b("div", { "data-slide-key": k.key, children: D || /* @__PURE__ */ b("div", { style: {
|
|
5413
5413
|
minHeight: "100px",
|
|
@@ -5422,7 +5422,7 @@ const Jt = 420, Rn = 440, ya = ({
|
|
|
5422
5422
|
Lr,
|
|
5423
5423
|
{
|
|
5424
5424
|
...g,
|
|
5425
|
-
dotPlacement:
|
|
5425
|
+
dotPlacement: m,
|
|
5426
5426
|
afterChange: A,
|
|
5427
5427
|
children: C
|
|
5428
5428
|
}
|
|
@@ -5457,19 +5457,19 @@ const hs = ({
|
|
|
5457
5457
|
src: c,
|
|
5458
5458
|
...l
|
|
5459
5459
|
}) => {
|
|
5460
|
-
const
|
|
5460
|
+
const d = _((m) => m.getProps), v = y(
|
|
5461
5461
|
() => ee(e, i),
|
|
5462
5462
|
[e, i]
|
|
5463
5463
|
), h = _(
|
|
5464
|
-
(
|
|
5465
|
-
), g = y(() => e && t ?
|
|
5466
|
-
let
|
|
5467
|
-
return h != null && h !== "" ?
|
|
5464
|
+
(m) => v && r ? Ca(m.dataSets, v, r) : void 0
|
|
5465
|
+
), g = y(() => e && t ? d(e, t) : null, [e, t, d]), p = y(() => {
|
|
5466
|
+
let m;
|
|
5467
|
+
return h != null && h !== "" ? m = String(h) : (g == null ? void 0 : g.src) !== void 0 ? m = g.src : m = c, Aa(m);
|
|
5468
5468
|
}, [h, g == null ? void 0 : g.src, c]), f = y(() => {
|
|
5469
|
-
const
|
|
5469
|
+
const m = { ...l };
|
|
5470
5470
|
return g && typeof g == "object" && Object.keys(g).forEach((u) => {
|
|
5471
|
-
u !== "src" && g[u] !== void 0 && g[u] !== null && (
|
|
5472
|
-
}),
|
|
5471
|
+
u !== "src" && g[u] !== void 0 && g[u] !== null && (m[u] = g[u]);
|
|
5472
|
+
}), m;
|
|
5473
5473
|
}, [l, g]), s = {
|
|
5474
5474
|
...f,
|
|
5475
5475
|
src: p || void 0,
|
|
@@ -5499,28 +5499,28 @@ const ys = ({
|
|
|
5499
5499
|
items: a,
|
|
5500
5500
|
...c
|
|
5501
5501
|
}) => {
|
|
5502
|
-
const l = _((
|
|
5502
|
+
const l = _((m) => m.getDataSet), d = _((m) => m.getProps), v = y(
|
|
5503
5503
|
() => ee(e, r),
|
|
5504
5504
|
[e, r]
|
|
5505
|
-
), h = y(() => e && t ?
|
|
5505
|
+
), h = y(() => e && t ? d(e, t) : null, [e, t, d]), g = y(() => {
|
|
5506
5506
|
if (v && o) return l(v, o);
|
|
5507
5507
|
}, [v, o, l]), p = y(() => {
|
|
5508
|
-
const
|
|
5508
|
+
const m = g != null ? Array.isArray(g) ? g : typeof g == "string" ? (() => {
|
|
5509
5509
|
try {
|
|
5510
5510
|
return JSON.parse(g);
|
|
5511
5511
|
} catch {
|
|
5512
5512
|
return;
|
|
5513
5513
|
}
|
|
5514
5514
|
})() : void 0 : h == null ? void 0 : h.items;
|
|
5515
|
-
return n ?
|
|
5516
|
-
}, [n, v, g, h == null ? void 0 : h.items, a]), f = y(() => p.map((
|
|
5517
|
-
const u = typeof
|
|
5515
|
+
return n ? m ?? a ?? [] : v ? Array.isArray(m) ? m : [] : a ?? [];
|
|
5516
|
+
}, [n, v, g, h == null ? void 0 : h.items, a]), f = y(() => p.map((m) => {
|
|
5517
|
+
const u = typeof m == "string" ? m : m && typeof m == "object" ? m.url ?? m.src : void 0;
|
|
5518
5518
|
return Na(u);
|
|
5519
|
-
}).filter((
|
|
5520
|
-
const
|
|
5519
|
+
}).filter((m) => !!m), [p]), s = y(() => {
|
|
5520
|
+
const m = { ...c };
|
|
5521
5521
|
return h && typeof h == "object" && Object.keys(h).forEach((u) => {
|
|
5522
|
-
u !== "items" && h[u] !== void 0 && h[u] !== null && (
|
|
5523
|
-
}),
|
|
5522
|
+
u !== "items" && h[u] !== void 0 && h[u] !== null && (m[u] = h[u]);
|
|
5523
|
+
}), m;
|
|
5524
5524
|
}, [c, h]);
|
|
5525
5525
|
return /* @__PURE__ */ b(ka, { ...s, items: f, children: i });
|
|
5526
5526
|
}, gs = ({
|
|
@@ -5533,7 +5533,7 @@ const ys = ({
|
|
|
5533
5533
|
src: a,
|
|
5534
5534
|
clickAction: c,
|
|
5535
5535
|
icon: l,
|
|
5536
|
-
token:
|
|
5536
|
+
token: d,
|
|
5537
5537
|
...v
|
|
5538
5538
|
}) => {
|
|
5539
5539
|
const h = _((D) => D.getDataSet), g = _((D) => D.getProps), p = y(
|
|
@@ -5541,14 +5541,14 @@ const ys = ({
|
|
|
5541
5541
|
[e, r]
|
|
5542
5542
|
), f = y(() => e && t ? g(e, t) : null, [e, t, g]), s = y(() => {
|
|
5543
5543
|
if (p && o) return h(p, o);
|
|
5544
|
-
}, [p, o, h]),
|
|
5544
|
+
}, [p, o, h]), m = y(() => {
|
|
5545
5545
|
let D = a;
|
|
5546
5546
|
if (n || (s != null && s !== "" ? D = String(s) : (f == null ? void 0 : f.src) !== void 0 && (D = f.src)), !(typeof D == "string" && D.trim() === ""))
|
|
5547
5547
|
return D;
|
|
5548
5548
|
}, [n, s, f == null ? void 0 : f.src, a]), u = y(() => {
|
|
5549
5549
|
let D = l;
|
|
5550
5550
|
if (!n && (f != null && f.icon) && (D = f.icon), typeof D == "string" && D) {
|
|
5551
|
-
const x =
|
|
5551
|
+
const x = Je[D];
|
|
5552
5552
|
if (x) return /* @__PURE__ */ b(x, {});
|
|
5553
5553
|
}
|
|
5554
5554
|
return D;
|
|
@@ -5558,7 +5558,7 @@ const ys = ({
|
|
|
5558
5558
|
!["src", "icon", "token"].includes(x) && f[x] !== void 0 && f[x] !== null && (D[x] = f[x]);
|
|
5559
5559
|
}), D;
|
|
5560
5560
|
}, [v, f]), C = y(() => {
|
|
5561
|
-
const D = f == null ? void 0 : f.token, x = { ...
|
|
5561
|
+
const D = f == null ? void 0 : f.token, x = { ...d, ...D };
|
|
5562
5562
|
if (!x || Object.keys(x).length === 0) return;
|
|
5563
5563
|
const E = {};
|
|
5564
5564
|
return Object.entries(x).forEach(([N, S]) => {
|
|
@@ -5577,14 +5577,14 @@ const ys = ({
|
|
|
5577
5577
|
} else
|
|
5578
5578
|
E[N] = S;
|
|
5579
5579
|
}), Object.keys(E).length > 0 ? E : void 0;
|
|
5580
|
-
}, [
|
|
5580
|
+
}, [d, f == null ? void 0 : f.token]), k = y(() => {
|
|
5581
5581
|
if (C)
|
|
5582
5582
|
return { components: { Avatar: C } };
|
|
5583
5583
|
}, [C]), w = /* @__PURE__ */ b(
|
|
5584
5584
|
Vr,
|
|
5585
5585
|
{
|
|
5586
5586
|
...A,
|
|
5587
|
-
src:
|
|
5587
|
+
src: m,
|
|
5588
5588
|
icon: u,
|
|
5589
5589
|
children: i
|
|
5590
5590
|
}
|
|
@@ -5609,36 +5609,36 @@ const ys = ({
|
|
|
5609
5609
|
dataSetField: a,
|
|
5610
5610
|
dictCode: c,
|
|
5611
5611
|
autoColor: l = !1,
|
|
5612
|
-
colorMap:
|
|
5612
|
+
colorMap: d,
|
|
5613
5613
|
color: v,
|
|
5614
5614
|
// Filter out custom props that shouldn't be passed to DOM
|
|
5615
5615
|
closeAction: h,
|
|
5616
5616
|
clickAction: g,
|
|
5617
5617
|
...p
|
|
5618
5618
|
}) => {
|
|
5619
|
-
const f = Nt(o, a, e), s = f.dataSet,
|
|
5619
|
+
const f = Nt(o, a, e), s = f.dataSet, m = f.dataSetField, u = f.sessionId, A = y(
|
|
5620
5620
|
() => ee(u, s),
|
|
5621
5621
|
[u, s]
|
|
5622
5622
|
), { options: C } = Tt(c), k = y(() => {
|
|
5623
|
-
if (
|
|
5624
|
-
if (typeof
|
|
5623
|
+
if (d) {
|
|
5624
|
+
if (typeof d == "string")
|
|
5625
5625
|
try {
|
|
5626
|
-
return JSON.parse(
|
|
5626
|
+
return JSON.parse(d);
|
|
5627
5627
|
} catch {
|
|
5628
5628
|
return;
|
|
5629
5629
|
}
|
|
5630
|
-
return
|
|
5630
|
+
return d;
|
|
5631
5631
|
}
|
|
5632
|
-
}, [
|
|
5632
|
+
}, [d]), w = _(
|
|
5633
5633
|
(V) => {
|
|
5634
5634
|
var B;
|
|
5635
5635
|
return u && t ? ((B = V.propsStore[`${u}_props`]) == null ? void 0 : B[t]) ?? null : null;
|
|
5636
5636
|
}
|
|
5637
5637
|
), D = _(
|
|
5638
|
-
(V) => A &&
|
|
5638
|
+
(V) => A && m ? V.getDataSet(A, m) : void 0
|
|
5639
5639
|
), x = y(() => n ? r : D != null && D !== "" ? String(D) : (w == null ? void 0 : w.content) !== void 0 ? w.content : r, [n, D, w == null ? void 0 : w.content, r]), E = y(() => {
|
|
5640
5640
|
if (c && C.length > 0 && x !== void 0 && x !== null) {
|
|
5641
|
-
const V =
|
|
5641
|
+
const V = Ge(C, x);
|
|
5642
5642
|
return (V == null ? void 0 : V.label) ?? x;
|
|
5643
5643
|
}
|
|
5644
5644
|
return x;
|
|
@@ -5666,29 +5666,29 @@ const ys = ({
|
|
|
5666
5666
|
showSizeChangeAction: a,
|
|
5667
5667
|
onChange: c,
|
|
5668
5668
|
onShowSizeChange: l,
|
|
5669
|
-
current:
|
|
5669
|
+
current: d,
|
|
5670
5670
|
pageSize: v,
|
|
5671
5671
|
total: h,
|
|
5672
5672
|
defaultPageSize: g,
|
|
5673
5673
|
...p
|
|
5674
5674
|
}) => {
|
|
5675
|
-
const f = _((N) => N.addCommand), s = _((N) => N.setDataSet),
|
|
5675
|
+
const f = _((N) => N.addCommand), s = _((N) => N.setDataSet), m = y(
|
|
5676
5676
|
() => ee(e, i),
|
|
5677
5677
|
[e, i]
|
|
5678
|
-
), u = r ?? (
|
|
5679
|
-
if (!
|
|
5680
|
-
const S = N.getDataSet(
|
|
5678
|
+
), u = r ?? (m ? "" : void 0), A = y(() => ({}), []), C = _((N) => {
|
|
5679
|
+
if (!m) return A;
|
|
5680
|
+
const S = N.getDataSet(m, u ?? "");
|
|
5681
5681
|
return S != null && typeof S == "object" ? S : A;
|
|
5682
|
-
}), k = C.current ??
|
|
5682
|
+
}), k = C.current ?? d ?? 1, w = C.pageSize ?? v ?? 10, D = C.total ?? h ?? 0;
|
|
5683
5683
|
xe(() => {
|
|
5684
|
-
if (!
|
|
5685
|
-
const N = u ?? "", { getDataSet: S, setDataSet: M } = _.getState(), T = S(
|
|
5684
|
+
if (!m || u === void 0) return;
|
|
5685
|
+
const N = u ?? "", { getDataSet: S, setDataSet: M } = _.getState(), T = S(m, N), O = Number(v ?? g ?? 10), z = Number.isFinite(O) && O > 0 ? O : 10;
|
|
5686
5686
|
if (T == null || typeof T != "object" || Array.isArray(T)) {
|
|
5687
5687
|
M(
|
|
5688
|
-
|
|
5688
|
+
m,
|
|
5689
5689
|
N,
|
|
5690
5690
|
{
|
|
5691
|
-
current:
|
|
5691
|
+
current: d ?? 1,
|
|
5692
5692
|
pageSize: z,
|
|
5693
5693
|
total: h ?? 0
|
|
5694
5694
|
},
|
|
@@ -5698,20 +5698,20 @@ const ys = ({
|
|
|
5698
5698
|
}
|
|
5699
5699
|
const V = Number(T.pageSize);
|
|
5700
5700
|
Number.isFinite(V) && V > 0 || M(
|
|
5701
|
-
|
|
5701
|
+
m,
|
|
5702
5702
|
N,
|
|
5703
5703
|
{
|
|
5704
5704
|
...T,
|
|
5705
5705
|
pageSize: z,
|
|
5706
|
-
current: T.current ??
|
|
5706
|
+
current: T.current ?? d ?? 1,
|
|
5707
5707
|
total: T.total ?? h ?? 0
|
|
5708
5708
|
},
|
|
5709
5709
|
!1
|
|
5710
5710
|
);
|
|
5711
5711
|
}, [
|
|
5712
|
-
d,
|
|
5713
|
-
u,
|
|
5714
5712
|
m,
|
|
5713
|
+
u,
|
|
5714
|
+
d,
|
|
5715
5715
|
v,
|
|
5716
5716
|
g,
|
|
5717
5717
|
h
|
|
@@ -5721,14 +5721,14 @@ const ys = ({
|
|
|
5721
5721
|
c(N, S);
|
|
5722
5722
|
return;
|
|
5723
5723
|
}
|
|
5724
|
-
|
|
5725
|
-
}, [c,
|
|
5724
|
+
m && s(m, u ?? "", { current: N, pageSize: S, total: D }), o && e && f(e, X(o, { page: N, pageSize: S }));
|
|
5725
|
+
}, [c, m, u, s, D, o, e, f]), E = j((N, S) => {
|
|
5726
5726
|
if (l) {
|
|
5727
5727
|
l(N, S);
|
|
5728
5728
|
return;
|
|
5729
5729
|
}
|
|
5730
|
-
|
|
5731
|
-
}, [l,
|
|
5730
|
+
m && s(m, u ?? "", { current: N, pageSize: S, total: D }), a && e && f(e, X(a, { current: N, pageSize: S }));
|
|
5731
|
+
}, [l, m, u, s, D, a, e, f]);
|
|
5732
5732
|
return /* @__PURE__ */ b(
|
|
5733
5733
|
Pn,
|
|
5734
5734
|
{
|
|
@@ -5752,7 +5752,7 @@ const ys = ({
|
|
|
5752
5752
|
children: r,
|
|
5753
5753
|
...o
|
|
5754
5754
|
}) => /* @__PURE__ */ b(qr, { ...o, items: i, children: r }), Kt = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), _a = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
5755
|
-
const o = Me(null), a = Me(null), [c, l] = ve(0), [
|
|
5755
|
+
const o = Me(null), a = Me(null), [c, l] = ve(0), [d, v] = ve(!1), [h, g] = ve(0), [p, f] = ve(0), s = t === "horizontal";
|
|
5756
5756
|
xe(() => {
|
|
5757
5757
|
const D = () => {
|
|
5758
5758
|
if (!o.current || !a.current) return;
|
|
@@ -5762,12 +5762,12 @@ const ys = ({
|
|
|
5762
5762
|
}, x = new ResizeObserver(D);
|
|
5763
5763
|
return o.current && x.observe(o.current), a.current && x.observe(a.current), D(), () => x.disconnect();
|
|
5764
5764
|
}, [s]);
|
|
5765
|
-
const
|
|
5765
|
+
const m = c <= 0, u = !d || c >= h - p, A = j(() => {
|
|
5766
5766
|
var x, E;
|
|
5767
|
-
if (
|
|
5767
|
+
if (m) return;
|
|
5768
5768
|
const D = s ? ((x = o.current) == null ? void 0 : x.clientWidth) ?? 200 : ((E = o.current) == null ? void 0 : E.clientHeight) ?? 200;
|
|
5769
5769
|
l((N) => Math.max(0, N - D));
|
|
5770
|
-
}, [s,
|
|
5770
|
+
}, [s, m]), C = j(() => {
|
|
5771
5771
|
var E, N, S, M, T, O;
|
|
5772
5772
|
if (u) return;
|
|
5773
5773
|
const D = s ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((N = o.current) == null ? void 0 : N.clientHeight) ?? 200, x = s ? (((S = a.current) == null ? void 0 : S.scrollWidth) ?? 0) - (((M = o.current) == null ? void 0 : M.clientWidth) ?? 0) : (((T = a.current) == null ? void 0 : T.scrollHeight) ?? 0) - (((O = o.current) == null ? void 0 : O.clientHeight) ?? 0);
|
|
@@ -5791,7 +5791,7 @@ const ys = ({
|
|
|
5791
5791
|
size: "middle",
|
|
5792
5792
|
icon: k,
|
|
5793
5793
|
shape: "circle",
|
|
5794
|
-
disabled:
|
|
5794
|
+
disabled: m,
|
|
5795
5795
|
onClick: A,
|
|
5796
5796
|
style: {
|
|
5797
5797
|
flexShrink: 0,
|
|
@@ -5812,7 +5812,7 @@ const ys = ({
|
|
|
5812
5812
|
overflow: "hidden",
|
|
5813
5813
|
position: "relative",
|
|
5814
5814
|
display: "flex",
|
|
5815
|
-
justifyContent: s && !
|
|
5815
|
+
justifyContent: s && !d ? "center" : "flex-start"
|
|
5816
5816
|
},
|
|
5817
5817
|
children: /* @__PURE__ */ b(
|
|
5818
5818
|
"div",
|
|
@@ -5873,14 +5873,14 @@ const ys = ({
|
|
|
5873
5873
|
selectAction: a,
|
|
5874
5874
|
openChangeAction: c,
|
|
5875
5875
|
deselectAction: l,
|
|
5876
|
-
onClick:
|
|
5876
|
+
onClick: d,
|
|
5877
5877
|
onSelect: v,
|
|
5878
5878
|
onOpenChange: h,
|
|
5879
5879
|
onDeselect: g,
|
|
5880
5880
|
items: p,
|
|
5881
5881
|
selectedKeys: f,
|
|
5882
5882
|
openKeys: s,
|
|
5883
|
-
defaultOpenKeys:
|
|
5883
|
+
defaultOpenKeys: m,
|
|
5884
5884
|
styles: u,
|
|
5885
5885
|
classNames: A,
|
|
5886
5886
|
token: C,
|
|
@@ -5932,7 +5932,7 @@ const ys = ({
|
|
|
5932
5932
|
const H = (oe) => Array.isArray(oe) ? oe.map((pe) => {
|
|
5933
5933
|
const Ae = { ...pe };
|
|
5934
5934
|
if (Ae.icon && typeof Ae.icon == "string") {
|
|
5935
|
-
const ke =
|
|
5935
|
+
const ke = Je[Ae.icon];
|
|
5936
5936
|
ke && (Ae.icon = /* @__PURE__ */ b(ke, {}));
|
|
5937
5937
|
}
|
|
5938
5938
|
return Ae.children && Ae.children.length > 0 && (Ae.children = H(Ae.children)), Ae;
|
|
@@ -5946,8 +5946,8 @@ const ys = ({
|
|
|
5946
5946
|
[I, de]
|
|
5947
5947
|
), se = j(
|
|
5948
5948
|
(H) => {
|
|
5949
|
-
if (
|
|
5950
|
-
|
|
5949
|
+
if (d) {
|
|
5950
|
+
d(H);
|
|
5951
5951
|
return;
|
|
5952
5952
|
}
|
|
5953
5953
|
o && e && $(
|
|
@@ -5955,7 +5955,7 @@ const ys = ({
|
|
|
5955
5955
|
X(o, { key: H.key, keyPath: H.keyPath })
|
|
5956
5956
|
);
|
|
5957
5957
|
},
|
|
5958
|
-
[
|
|
5958
|
+
[d, o, e, $]
|
|
5959
5959
|
), te = j(
|
|
5960
5960
|
(H) => {
|
|
5961
5961
|
if (v) {
|
|
@@ -6036,13 +6036,13 @@ const ys = ({
|
|
|
6036
6036
|
motion: { motionName: "" }
|
|
6037
6037
|
} : {}, ae = y(() => {
|
|
6038
6038
|
if (typeof O == "string" && O) {
|
|
6039
|
-
const H =
|
|
6039
|
+
const H = Je[O];
|
|
6040
6040
|
if (H) return /* @__PURE__ */ b(H, {});
|
|
6041
6041
|
}
|
|
6042
6042
|
return O;
|
|
6043
6043
|
}, [O]), he = y(() => {
|
|
6044
6044
|
if (typeof z == "string" && z) {
|
|
6045
|
-
const H =
|
|
6045
|
+
const H = Je[z];
|
|
6046
6046
|
if (H) return /* @__PURE__ */ b(H, {});
|
|
6047
6047
|
}
|
|
6048
6048
|
return z;
|
|
@@ -6080,7 +6080,7 @@ const ys = ({
|
|
|
6080
6080
|
items: me,
|
|
6081
6081
|
selectedKeys: De,
|
|
6082
6082
|
openKeys: re,
|
|
6083
|
-
defaultOpenKeys:
|
|
6083
|
+
defaultOpenKeys: m,
|
|
6084
6084
|
onClick: se,
|
|
6085
6085
|
onSelect: te,
|
|
6086
6086
|
onOpenChange: ye,
|
|
@@ -6126,14 +6126,14 @@ const ys = ({
|
|
|
6126
6126
|
showZero: a,
|
|
6127
6127
|
overflowCount: c,
|
|
6128
6128
|
dot: l,
|
|
6129
|
-
offset:
|
|
6129
|
+
offset: d,
|
|
6130
6130
|
size: v,
|
|
6131
6131
|
status: h,
|
|
6132
6132
|
text: g,
|
|
6133
6133
|
color: p,
|
|
6134
6134
|
title: f,
|
|
6135
6135
|
children: s,
|
|
6136
|
-
...
|
|
6136
|
+
...m
|
|
6137
6137
|
}) => {
|
|
6138
6138
|
const u = _((E) => E.getDataSet), A = y(
|
|
6139
6139
|
() => ee(e, i),
|
|
@@ -6147,12 +6147,12 @@ const ys = ({
|
|
|
6147
6147
|
return /* @__PURE__ */ b(
|
|
6148
6148
|
Yn,
|
|
6149
6149
|
{
|
|
6150
|
-
...
|
|
6150
|
+
...m,
|
|
6151
6151
|
count: k,
|
|
6152
6152
|
showZero: a,
|
|
6153
6153
|
overflowCount: c,
|
|
6154
6154
|
dot: l,
|
|
6155
|
-
offset:
|
|
6155
|
+
offset: d,
|
|
6156
6156
|
size: v,
|
|
6157
6157
|
status: h,
|
|
6158
6158
|
text: g,
|
|
@@ -6184,24 +6184,24 @@ const ys = ({
|
|
|
6184
6184
|
placement: a,
|
|
6185
6185
|
color: c,
|
|
6186
6186
|
children: l,
|
|
6187
|
-
...
|
|
6187
|
+
...d
|
|
6188
6188
|
}) => {
|
|
6189
6189
|
const v = _((u) => u.getDataSet), h = y(
|
|
6190
6190
|
() => ee(e, i),
|
|
6191
6191
|
[e, i]
|
|
6192
6192
|
), g = y(() => {
|
|
6193
6193
|
if (h && r) return v(h, r);
|
|
6194
|
-
}, [h, r, v]), p = y(() => g ?? o, [g, o]), s = (Ie.useToken ? Ie.useToken() : { token: void 0 }).token,
|
|
6194
|
+
}, [h, r, v]), p = y(() => g ?? o, [g, o]), s = (Ie.useToken ? Ie.useToken() : { token: void 0 }).token, m = y(() => {
|
|
6195
6195
|
if (!(!c || typeof c != "string"))
|
|
6196
6196
|
return s && c in s ? s[c] : c;
|
|
6197
6197
|
}, [c, s]);
|
|
6198
6198
|
return /* @__PURE__ */ b(
|
|
6199
6199
|
Yn.Ribbon,
|
|
6200
6200
|
{
|
|
6201
|
-
...
|
|
6201
|
+
...d,
|
|
6202
6202
|
text: p,
|
|
6203
6203
|
placement: a,
|
|
6204
|
-
color:
|
|
6204
|
+
color: m,
|
|
6205
6205
|
children: /* @__PURE__ */ b(
|
|
6206
6206
|
"div",
|
|
6207
6207
|
{
|
|
@@ -6268,30 +6268,30 @@ const ys = ({
|
|
|
6268
6268
|
columns: a,
|
|
6269
6269
|
gutter: c,
|
|
6270
6270
|
fresh: l,
|
|
6271
|
-
layoutChangeAction:
|
|
6271
|
+
layoutChangeAction: d,
|
|
6272
6272
|
onLayoutChange: v,
|
|
6273
6273
|
itemRender: h,
|
|
6274
6274
|
...g
|
|
6275
6275
|
}) => {
|
|
6276
|
-
const p = Nt(i, r, e), f = p.dataSet, s = p.dataSetField,
|
|
6277
|
-
() => ee(
|
|
6278
|
-
[
|
|
6279
|
-
), k = _(($) => C && s ? $.getDataSet(C, s) : null), w = y(() => !
|
|
6276
|
+
const p = Nt(i, r, e), f = p.dataSet, s = p.dataSetField, m = p.sessionId, u = Ct(ct), A = _(($) => $.addCommand), C = y(
|
|
6277
|
+
() => ee(m, f),
|
|
6278
|
+
[m, f]
|
|
6279
|
+
), k = _(($) => C && s ? $.getDataSet(C, s) : null), w = y(() => !m || t == null || t === "" ? null : u && typeof u.index == "number" ? `${String(t)}_${u.index}` : String(t), [m, t, u]), D = _(
|
|
6280
6280
|
($) => {
|
|
6281
6281
|
var q;
|
|
6282
|
-
return w ? ((q = $.propsStore[`${
|
|
6282
|
+
return w ? ((q = $.propsStore[`${m}_props`]) == null ? void 0 : q[w]) ?? null : null;
|
|
6283
6283
|
}
|
|
6284
6284
|
), x = y(() => k && Array.isArray(k) ? k : Oa(o), [k, o]), E = (D == null ? void 0 : D.columns) !== void 0 && (D == null ? void 0 : D.columns) !== null ? D.columns : a, N = y(() => Ma(E), [E]), S = y(() => $a(c), [c]), M = y(() => {
|
|
6285
6285
|
if (v) return v;
|
|
6286
|
-
if (
|
|
6286
|
+
if (d && m)
|
|
6287
6287
|
return ($) => {
|
|
6288
|
-
A(
|
|
6289
|
-
actionName:
|
|
6288
|
+
A(m, {
|
|
6289
|
+
actionName: d,
|
|
6290
6290
|
arg: $,
|
|
6291
6291
|
timestamp: Date.now()
|
|
6292
6292
|
});
|
|
6293
6293
|
};
|
|
6294
|
-
}, [v,
|
|
6294
|
+
}, [v, d, m, A]), T = y(() => x.length > 0 ? x : n ? [
|
|
6295
6295
|
{ key: "1", height: 150, data: { title: "示例项 1" } },
|
|
6296
6296
|
{ key: "2", height: 200, data: { title: "示例项 2" } },
|
|
6297
6297
|
{ key: "3", height: 120, data: { title: "示例项 3" } },
|
|
@@ -6331,14 +6331,14 @@ const ys = ({
|
|
|
6331
6331
|
value: {
|
|
6332
6332
|
dataSet: f,
|
|
6333
6333
|
index: W,
|
|
6334
|
-
sessionId:
|
|
6334
|
+
sessionId: m,
|
|
6335
6335
|
dataSetFieldRoot: s
|
|
6336
6336
|
},
|
|
6337
6337
|
children: O($)
|
|
6338
6338
|
}
|
|
6339
6339
|
);
|
|
6340
6340
|
};
|
|
6341
|
-
}, [O, f, s,
|
|
6341
|
+
}, [O, f, s, m]), {
|
|
6342
6342
|
layoutChangeAction: V,
|
|
6343
6343
|
...B
|
|
6344
6344
|
} = g;
|
|
@@ -6364,21 +6364,21 @@ const ys = ({
|
|
|
6364
6364
|
dataSetField: a,
|
|
6365
6365
|
title: c,
|
|
6366
6366
|
description: l,
|
|
6367
|
-
closeText:
|
|
6367
|
+
closeText: d,
|
|
6368
6368
|
closable: v,
|
|
6369
6369
|
...h
|
|
6370
6370
|
}) => {
|
|
6371
6371
|
const g = _((w) => w.getDataSet), p = _((w) => w.getProps), f = y(
|
|
6372
6372
|
() => ee(e, o),
|
|
6373
6373
|
[e, o]
|
|
6374
|
-
), s = y(() => e && t ? p(e, t) : null, [e, t, p]),
|
|
6374
|
+
), s = y(() => e && t ? p(e, t) : null, [e, t, p]), m = y(() => {
|
|
6375
6375
|
if (f && a) return g(f, a);
|
|
6376
|
-
}, [f, a, g]), u = y(() => n ? c :
|
|
6376
|
+
}, [f, a, g]), u = y(() => n ? c : m != null && m !== "" ? String(m) : (s == null ? void 0 : s.title) !== void 0 ? s.title : (s == null ? void 0 : s.message) !== void 0 ? s.message : c, [n, m, s == null ? void 0 : s.title, s == null ? void 0 : s.message, c]), A = y(() => {
|
|
6377
6377
|
const w = { ...h, description: l };
|
|
6378
6378
|
return s && typeof s == "object" && Object.keys(s).forEach((D) => {
|
|
6379
6379
|
D !== "title" && D !== "message" && s[D] !== void 0 && s[D] !== null && (w[D] = s[D]);
|
|
6380
6380
|
}), w;
|
|
6381
|
-
}, [h, l, s]), C = y(() =>
|
|
6381
|
+
}, [h, l, s]), C = y(() => d ? { closeIcon: /* @__PURE__ */ b("span", { children: d }) } : v, [d, v]), k = j((w) => {
|
|
6382
6382
|
r && r(w);
|
|
6383
6383
|
}, [r]);
|
|
6384
6384
|
return /* @__PURE__ */ b(
|
|
@@ -6400,17 +6400,17 @@ const ys = ({
|
|
|
6400
6400
|
cancelAction: a,
|
|
6401
6401
|
onOk: c,
|
|
6402
6402
|
onCancel: l,
|
|
6403
|
-
open:
|
|
6403
|
+
open: d,
|
|
6404
6404
|
children: v,
|
|
6405
6405
|
...h
|
|
6406
6406
|
}) => {
|
|
6407
6407
|
const g = _((k) => k.addCommand), p = _((k) => k.getDataSet), f = _((k) => k.setDataSet), s = y(
|
|
6408
6408
|
() => ee(e, i),
|
|
6409
6409
|
[e, i]
|
|
6410
|
-
),
|
|
6410
|
+
), m = y(() => {
|
|
6411
6411
|
if (s && r)
|
|
6412
6412
|
return p(s, r);
|
|
6413
|
-
}, [s, r, p]), u =
|
|
6413
|
+
}, [s, r, p]), u = m !== void 0 ? !!m : d, A = j(() => {
|
|
6414
6414
|
c && c(), s && r && f(s, r, !1), o && e && g(e, {
|
|
6415
6415
|
actionName: o,
|
|
6416
6416
|
arg: null,
|
|
@@ -6443,7 +6443,7 @@ const ys = ({
|
|
|
6443
6443
|
onClose: a,
|
|
6444
6444
|
open: c,
|
|
6445
6445
|
children: l,
|
|
6446
|
-
...
|
|
6446
|
+
...d
|
|
6447
6447
|
}) => {
|
|
6448
6448
|
const v = _((u) => u.addCommand), h = _((u) => u.getDataSet), g = _((u) => u.setDataSet), p = y(
|
|
6449
6449
|
() => ee(e, i),
|
|
@@ -6451,7 +6451,7 @@ const ys = ({
|
|
|
6451
6451
|
), f = y(() => {
|
|
6452
6452
|
if (p && r)
|
|
6453
6453
|
return h(p, r);
|
|
6454
|
-
}, [p, r, h]), s = f !== void 0 ? !!f : c,
|
|
6454
|
+
}, [p, r, h]), s = f !== void 0 ? !!f : c, m = j(() => {
|
|
6455
6455
|
a && a(), p && r && g(p, r, !1), o && e && v(e, {
|
|
6456
6456
|
actionName: o,
|
|
6457
6457
|
arg: null,
|
|
@@ -6461,9 +6461,9 @@ const ys = ({
|
|
|
6461
6461
|
return /* @__PURE__ */ b(
|
|
6462
6462
|
Pr,
|
|
6463
6463
|
{
|
|
6464
|
-
...
|
|
6464
|
+
...d,
|
|
6465
6465
|
open: s,
|
|
6466
|
-
onClose:
|
|
6466
|
+
onClose: m,
|
|
6467
6467
|
children: l
|
|
6468
6468
|
}
|
|
6469
6469
|
);
|
|
@@ -6472,8 +6472,23 @@ const ys = ({
|
|
|
6472
6472
|
sessionId: e,
|
|
6473
6473
|
develop: n,
|
|
6474
6474
|
children: i,
|
|
6475
|
-
|
|
6476
|
-
|
|
6475
|
+
resultProps: r,
|
|
6476
|
+
...o
|
|
6477
|
+
}) => {
|
|
6478
|
+
const a = _(
|
|
6479
|
+
(l) => {
|
|
6480
|
+
var d;
|
|
6481
|
+
return e && t ? ((d = l.propsStore[`${e}_props`]) == null ? void 0 : d[t]) ?? null : null;
|
|
6482
|
+
}
|
|
6483
|
+
), c = y(() => {
|
|
6484
|
+
const l = {
|
|
6485
|
+
...o,
|
|
6486
|
+
...r && typeof r == "object" ? r : {}
|
|
6487
|
+
};
|
|
6488
|
+
return Ue(l, a ?? void 0);
|
|
6489
|
+
}, [o, r, a]);
|
|
6490
|
+
return /* @__PURE__ */ b(Yr, { ...c, children: i });
|
|
6491
|
+
}, ln = (t, e) => {
|
|
6477
6492
|
if (t == null) return e;
|
|
6478
6493
|
if (typeof t == "string")
|
|
6479
6494
|
try {
|
|
@@ -6501,7 +6516,7 @@ const ys = ({
|
|
|
6501
6516
|
extra: a,
|
|
6502
6517
|
cover: c,
|
|
6503
6518
|
tabBarExtraContent: l,
|
|
6504
|
-
actions:
|
|
6519
|
+
actions: d,
|
|
6505
6520
|
// Tab 属性
|
|
6506
6521
|
tabList: v,
|
|
6507
6522
|
activeTabKey: h,
|
|
@@ -6510,7 +6525,7 @@ const ys = ({
|
|
|
6510
6525
|
onTabChange: f,
|
|
6511
6526
|
// 样式
|
|
6512
6527
|
styles: s,
|
|
6513
|
-
token:
|
|
6528
|
+
token: m,
|
|
6514
6529
|
// 过滤掉不应该传递给 Card 的 props (避免 React 警告)
|
|
6515
6530
|
// 这些属性主要由 GrapesJS 使用或在内部逻辑处理,不需要传递给 Antd Card
|
|
6516
6531
|
showHeader: u,
|
|
@@ -6551,18 +6566,18 @@ const ys = ({
|
|
|
6551
6566
|
let U = null, I = null, ne = null, de = [];
|
|
6552
6567
|
const me = [];
|
|
6553
6568
|
let De = !1;
|
|
6554
|
-
return o && (U = o), a && (I = a), c && (ne = c),
|
|
6569
|
+
return o && (U = o), a && (I = a), c && (ne = c), d && (de = d), Ve.Children.forEach(w, (re) => {
|
|
6555
6570
|
if (!Ve.isValidElement(re)) {
|
|
6556
6571
|
me.push(re);
|
|
6557
6572
|
return;
|
|
6558
6573
|
}
|
|
6559
6574
|
const se = re.props, te = se["data-slot-type"];
|
|
6560
|
-
te === "title" && !o ? U = re : te === "extra" && !a ? I = re : te === "cover" && !c ? ne = re : te === "actions" && !
|
|
6575
|
+
te === "title" && !o ? U = re : te === "extra" && !a ? I = re : te === "cover" && !c ? ne = re : te === "actions" && !d ? (de = [re], De = !0) : te === "body" && se.children ? me.push(se.children) : me.push(re);
|
|
6561
6576
|
}), { titleSlot: U, extraSlot: I, coverSlot: ne, actionsSlot: de, otherChildren: me, actionsFromChildren: De };
|
|
6562
|
-
}, [w, o, a, c,
|
|
6563
|
-
const U = ln(
|
|
6577
|
+
}, [w, o, a, c, d]), Q = y(() => {
|
|
6578
|
+
const U = ln(m, {});
|
|
6564
6579
|
return P ? { actionsLiMargin: "0px", ...U } : U;
|
|
6565
|
-
}, [
|
|
6580
|
+
}, [m, P]), Y = /* @__PURE__ */ b(
|
|
6566
6581
|
Xt,
|
|
6567
6582
|
{
|
|
6568
6583
|
...D,
|
|
@@ -6628,7 +6643,7 @@ const ys = ({
|
|
|
6628
6643
|
items: a,
|
|
6629
6644
|
clickAction: c,
|
|
6630
6645
|
selectAction: l,
|
|
6631
|
-
deselectAction:
|
|
6646
|
+
deselectAction: d,
|
|
6632
6647
|
openChangeAction: v,
|
|
6633
6648
|
onOpenChange: h,
|
|
6634
6649
|
children: g,
|
|
@@ -6636,7 +6651,7 @@ const ys = ({
|
|
|
6636
6651
|
index: f,
|
|
6637
6652
|
...s
|
|
6638
6653
|
}) => {
|
|
6639
|
-
const
|
|
6654
|
+
const m = _((S) => S.addCommand), u = Ct(ct), A = f ?? (u == null ? void 0 : u.index), C = y(
|
|
6640
6655
|
() => ee(e, i),
|
|
6641
6656
|
[e, i]
|
|
6642
6657
|
), k = _((S) => {
|
|
@@ -6662,14 +6677,14 @@ const ys = ({
|
|
|
6662
6677
|
index: A,
|
|
6663
6678
|
source: M.source
|
|
6664
6679
|
});
|
|
6665
|
-
|
|
6680
|
+
m(e, X(T, O));
|
|
6666
6681
|
}
|
|
6667
6682
|
},
|
|
6668
6683
|
[
|
|
6669
6684
|
h,
|
|
6670
6685
|
v,
|
|
6671
6686
|
e,
|
|
6672
|
-
|
|
6687
|
+
m,
|
|
6673
6688
|
t,
|
|
6674
6689
|
i,
|
|
6675
6690
|
r,
|
|
@@ -6688,7 +6703,7 @@ const ys = ({
|
|
|
6688
6703
|
key: S.key,
|
|
6689
6704
|
keyPath: S.keyPath
|
|
6690
6705
|
});
|
|
6691
|
-
|
|
6706
|
+
m(e, X(M, T));
|
|
6692
6707
|
}
|
|
6693
6708
|
},
|
|
6694
6709
|
onSelect: (S) => {
|
|
@@ -6702,12 +6717,12 @@ const ys = ({
|
|
|
6702
6717
|
keyPath: S.keyPath,
|
|
6703
6718
|
selectedKeys: S.selectedKeys
|
|
6704
6719
|
});
|
|
6705
|
-
|
|
6720
|
+
m(e, X(M, T));
|
|
6706
6721
|
}
|
|
6707
6722
|
},
|
|
6708
6723
|
onDeselect: (S) => {
|
|
6709
|
-
if (
|
|
6710
|
-
const { actionName: M, arg: T } = it(
|
|
6724
|
+
if (d && e) {
|
|
6725
|
+
const { actionName: M, arg: T } = it(d, S.key, {
|
|
6711
6726
|
id: t,
|
|
6712
6727
|
dataSet: i,
|
|
6713
6728
|
dataSetField: r,
|
|
@@ -6716,7 +6731,7 @@ const ys = ({
|
|
|
6716
6731
|
keyPath: S.keyPath,
|
|
6717
6732
|
selectedKeys: S.selectedKeys
|
|
6718
6733
|
});
|
|
6719
|
-
|
|
6734
|
+
m(e, X(M, T));
|
|
6720
6735
|
}
|
|
6721
6736
|
}
|
|
6722
6737
|
}),
|
|
@@ -6724,9 +6739,9 @@ const ys = ({
|
|
|
6724
6739
|
D,
|
|
6725
6740
|
c,
|
|
6726
6741
|
l,
|
|
6727
|
-
m,
|
|
6728
|
-
e,
|
|
6729
6742
|
d,
|
|
6743
|
+
e,
|
|
6744
|
+
m,
|
|
6730
6745
|
t,
|
|
6731
6746
|
i,
|
|
6732
6747
|
r,
|
|
@@ -6740,7 +6755,7 @@ const ys = ({
|
|
|
6740
6755
|
children: [
|
|
6741
6756
|
g,
|
|
6742
6757
|
n && !g && !p && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6743
|
-
!g && !n && o && /* @__PURE__ */ b(et, { children: /* @__PURE__ */ ue(
|
|
6758
|
+
!g && !n && o && /* @__PURE__ */ b(et, { children: /* @__PURE__ */ ue(Qe, { children: [
|
|
6744
6759
|
o,
|
|
6745
6760
|
/* @__PURE__ */ b(In, {})
|
|
6746
6761
|
] }) })
|
|
@@ -6775,12 +6790,12 @@ const ys = ({
|
|
|
6775
6790
|
value: o,
|
|
6776
6791
|
...a
|
|
6777
6792
|
}) => {
|
|
6778
|
-
const c = _((f) => f.getDataSet), l = _((f) => f.getProps),
|
|
6793
|
+
const c = _((f) => f.getDataSet), l = _((f) => f.getProps), d = y(
|
|
6779
6794
|
() => ee(e, i),
|
|
6780
6795
|
[e, i]
|
|
6781
6796
|
), v = y(() => e && t ? l(e, t) : null, [e, t, l]), h = y(() => {
|
|
6782
|
-
if (
|
|
6783
|
-
}, [
|
|
6797
|
+
if (d && r) return c(d, r);
|
|
6798
|
+
}, [d, r, c]), g = y(() => n ? o : h != null && h !== "" ? String(h) : (v == null ? void 0 : v.value) !== void 0 ? v.value : o, [n, h, v == null ? void 0 : v.value, o]), p = y(() => {
|
|
6784
6799
|
const f = { ...a };
|
|
6785
6800
|
return v && typeof v == "object" && Object.keys(v).forEach((s) => {
|
|
6786
6801
|
s !== "value" && v[s] !== void 0 && v[s] !== null && (f[s] = v[s]);
|
|
@@ -6789,7 +6804,7 @@ const ys = ({
|
|
|
6789
6804
|
return /* @__PURE__ */ b(Qr, { ...p, value: g || "" });
|
|
6790
6805
|
}, bt = (t) => {
|
|
6791
6806
|
if (!t) return;
|
|
6792
|
-
const e =
|
|
6807
|
+
const e = Je[t];
|
|
6793
6808
|
if (e)
|
|
6794
6809
|
return Ve.createElement(e);
|
|
6795
6810
|
}, Qt = (t, e) => {
|
|
@@ -6813,14 +6828,14 @@ const ys = ({
|
|
|
6813
6828
|
draggerIcon: a,
|
|
6814
6829
|
collapsibleIcon: c,
|
|
6815
6830
|
resizeAction: l,
|
|
6816
|
-
resizeEndAction:
|
|
6831
|
+
resizeEndAction: d,
|
|
6817
6832
|
onResize: v,
|
|
6818
6833
|
onResizeEnd: h,
|
|
6819
6834
|
styles: g,
|
|
6820
6835
|
token: p,
|
|
6821
6836
|
children: f,
|
|
6822
6837
|
renderPanelContent: s,
|
|
6823
|
-
...
|
|
6838
|
+
...m
|
|
6824
6839
|
}) => {
|
|
6825
6840
|
const u = _((T) => T.addCommand), A = y(
|
|
6826
6841
|
() => Qt(i, []),
|
|
@@ -6854,9 +6869,9 @@ const ys = ({
|
|
|
6854
6869
|
h(T);
|
|
6855
6870
|
return;
|
|
6856
6871
|
}
|
|
6857
|
-
|
|
6872
|
+
d && e && u(e, X(d, { sizes: T }));
|
|
6858
6873
|
},
|
|
6859
|
-
[h,
|
|
6874
|
+
[h, d, e, u]
|
|
6860
6875
|
), E = () => f && Ve.Children.count(f) > 0 ? Ve.Children.map(f, (T, O) => {
|
|
6861
6876
|
const z = A[O] || {};
|
|
6862
6877
|
return /* @__PURE__ */ b(
|
|
@@ -6898,7 +6913,7 @@ const ys = ({
|
|
|
6898
6913
|
)
|
|
6899
6914
|
},
|
|
6900
6915
|
T.key || O
|
|
6901
|
-
)), { layout: N, ...S } =
|
|
6916
|
+
)), { layout: N, ...S } = m, M = /* @__PURE__ */ b("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ b(
|
|
6902
6917
|
Pt,
|
|
6903
6918
|
{
|
|
6904
6919
|
...S,
|
|
@@ -6926,7 +6941,7 @@ const ys = ({
|
|
|
6926
6941
|
max: a,
|
|
6927
6942
|
collapsible: c,
|
|
6928
6943
|
resizable: l,
|
|
6929
|
-
sessionId:
|
|
6944
|
+
sessionId: d,
|
|
6930
6945
|
...v
|
|
6931
6946
|
}) => /* @__PURE__ */ b(
|
|
6932
6947
|
"div",
|
|
@@ -6946,14 +6961,14 @@ const ys = ({
|
|
|
6946
6961
|
renderEmpty: a,
|
|
6947
6962
|
items: c,
|
|
6948
6963
|
maxCount: l,
|
|
6949
|
-
containerStyle:
|
|
6964
|
+
containerStyle: d,
|
|
6950
6965
|
children: v,
|
|
6951
6966
|
"page-disabled": h = !1,
|
|
6952
6967
|
"page-defaultPageSize": g = 10,
|
|
6953
6968
|
"page-pageSizeOptions": p = ["10", "20", "30", "40"],
|
|
6954
6969
|
"page-showSizeChanger": f = !0,
|
|
6955
6970
|
"page-showQuickJumper": s = !1,
|
|
6956
|
-
"page-simple":
|
|
6971
|
+
"page-simple": m = !1,
|
|
6957
6972
|
"page-size": u = "small",
|
|
6958
6973
|
"page-showLessItems": A = !1,
|
|
6959
6974
|
"page-showTotal": C
|
|
@@ -6984,7 +6999,7 @@ const ys = ({
|
|
|
6984
6999
|
const V = (B, $) => {
|
|
6985
7000
|
N(B), $ && M($);
|
|
6986
7001
|
};
|
|
6987
|
-
return /* @__PURE__ */ ue("div", { style: { display: "flex", flexDirection: "column", ...
|
|
7002
|
+
return /* @__PURE__ */ ue("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
6988
7003
|
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: z.map((B, $) => /* @__PURE__ */ b(Ve.Fragment, { children: o ? o(B, $) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || $)) }),
|
|
6989
7004
|
!h && O.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
|
|
6990
7005
|
Pn,
|
|
@@ -6996,7 +7011,7 @@ const ys = ({
|
|
|
6996
7011
|
pageSizeOptions: p,
|
|
6997
7012
|
showSizeChanger: f,
|
|
6998
7013
|
showQuickJumper: s,
|
|
6999
|
-
simple:
|
|
7014
|
+
simple: m,
|
|
7000
7015
|
size: k,
|
|
7001
7016
|
showLessItems: A,
|
|
7002
7017
|
showTotal: w
|
|
@@ -7013,7 +7028,7 @@ const ys = ({
|
|
|
7013
7028
|
color: a,
|
|
7014
7029
|
spin: c = !1,
|
|
7015
7030
|
rotate: l = 0,
|
|
7016
|
-
twoToneColor:
|
|
7031
|
+
twoToneColor: d,
|
|
7017
7032
|
style: v,
|
|
7018
7033
|
styles: h,
|
|
7019
7034
|
onClick: g
|
|
@@ -7026,7 +7041,7 @@ const ys = ({
|
|
|
7026
7041
|
...v
|
|
7027
7042
|
};
|
|
7028
7043
|
if (p) {
|
|
7029
|
-
const
|
|
7044
|
+
const m = {
|
|
7030
7045
|
display: "inline-flex",
|
|
7031
7046
|
alignItems: "center",
|
|
7032
7047
|
justifyContent: "center",
|
|
@@ -7042,7 +7057,7 @@ const ys = ({
|
|
|
7042
7057
|
"span",
|
|
7043
7058
|
{
|
|
7044
7059
|
className: "and-icon-svg-root",
|
|
7045
|
-
style:
|
|
7060
|
+
style: m,
|
|
7046
7061
|
onClick: g,
|
|
7047
7062
|
role: g ? "button" : void 0,
|
|
7048
7063
|
children: /* @__PURE__ */ b("span", { style: c ? { animation: "and-icon-spin 1s linear infinite", display: "inline-flex" } : { display: "inline-flex" }, children: /* @__PURE__ */ b(
|
|
@@ -7057,14 +7072,14 @@ const ys = ({
|
|
|
7057
7072
|
] });
|
|
7058
7073
|
}
|
|
7059
7074
|
if (!i) return null;
|
|
7060
|
-
const s =
|
|
7075
|
+
const s = Je[i];
|
|
7061
7076
|
return s ? /* @__PURE__ */ b(
|
|
7062
7077
|
s,
|
|
7063
7078
|
{
|
|
7064
7079
|
style: f,
|
|
7065
7080
|
spin: c,
|
|
7066
7081
|
rotate: l,
|
|
7067
|
-
twoToneColor:
|
|
7082
|
+
twoToneColor: d || void 0,
|
|
7068
7083
|
onClick: g
|
|
7069
7084
|
}
|
|
7070
7085
|
) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
|
|
@@ -7079,7 +7094,7 @@ const ys = ({
|
|
|
7079
7094
|
clickAction: c,
|
|
7080
7095
|
style: l
|
|
7081
7096
|
}) => {
|
|
7082
|
-
const
|
|
7097
|
+
const d = _((s) => s.addCommand), v = _((s) => s.getDataSet), h = y(
|
|
7083
7098
|
() => ee(e, i),
|
|
7084
7099
|
[e, i]
|
|
7085
7100
|
), g = y(() => {
|
|
@@ -7089,7 +7104,7 @@ const ys = ({
|
|
|
7089
7104
|
}
|
|
7090
7105
|
return [];
|
|
7091
7106
|
}, [h, r, v]), p = g.length > 0 ? g : o || [], f = (s) => {
|
|
7092
|
-
c && e &&
|
|
7107
|
+
c && e && d(e, X(c, s));
|
|
7093
7108
|
};
|
|
7094
7109
|
return /* @__PURE__ */ b("div", { style: { display: "grid", gridTemplateColumns: `repeat(${a}, 1fr)`, gap: 16, ...l }, children: p.map((s) => /* @__PURE__ */ b(
|
|
7095
7110
|
Xt,
|
|
@@ -7101,7 +7116,7 @@ const ys = ({
|
|
|
7101
7116
|
Xt.Meta,
|
|
7102
7117
|
{
|
|
7103
7118
|
title: s.name,
|
|
7104
|
-
description: /* @__PURE__ */ ue(
|
|
7119
|
+
description: /* @__PURE__ */ ue(Qe, { direction: "vertical", size: 4, children: [
|
|
7105
7120
|
s.price !== void 0 && /* @__PURE__ */ ue("div", { children: [
|
|
7106
7121
|
/* @__PURE__ */ ue("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
|
|
7107
7122
|
"¥",
|
|
@@ -7112,7 +7127,7 @@ const ys = ({
|
|
|
7112
7127
|
s.originalPrice
|
|
7113
7128
|
] })
|
|
7114
7129
|
] }),
|
|
7115
|
-
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(
|
|
7130
|
+
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Qe, { size: 4, wrap: !0, children: s.tags.map((m, u) => /* @__PURE__ */ b(Un, { color: "blue", children: m }, u)) })
|
|
7116
7131
|
] })
|
|
7117
7132
|
}
|
|
7118
7133
|
)
|
|
@@ -7156,7 +7171,7 @@ const ys = ({
|
|
|
7156
7171
|
style: a,
|
|
7157
7172
|
id: c,
|
|
7158
7173
|
componentResolver: l,
|
|
7159
|
-
placeholder:
|
|
7174
|
+
placeholder: d,
|
|
7160
7175
|
placeholderFlexDirection: v = "column",
|
|
7161
7176
|
index: h
|
|
7162
7177
|
}) => {
|
|
@@ -7192,7 +7207,7 @@ const ys = ({
|
|
|
7192
7207
|
};
|
|
7193
7208
|
}
|
|
7194
7209
|
return { componentName: "", props: {} };
|
|
7195
|
-
}, [n, i, f]),
|
|
7210
|
+
}, [n, i, f]), m = ((x = s.props) == null ? void 0 : x.inheritDataSet) !== void 0 ? String((E = s.props) == null ? void 0 : E.inheritDataSet) : void 0, u = s.componentName || t, A = y(() => ({
|
|
7196
7211
|
// inheritDataSet 只用于给后代提供 DataSetInheritContext,不应透传给具体组件。
|
|
7197
7212
|
...s.props ? (() => {
|
|
7198
7213
|
const { inheritDataSet: N, ...S } = s.props;
|
|
@@ -7201,7 +7216,7 @@ const ys = ({
|
|
|
7201
7216
|
...h !== void 0 ? { index: h } : {},
|
|
7202
7217
|
...e,
|
|
7203
7218
|
sessionId: i
|
|
7204
|
-
}), [s.props, e, i, h]), C =
|
|
7219
|
+
}), [s.props, e, i, h]), C = d || "请配置组件";
|
|
7205
7220
|
if (o) {
|
|
7206
7221
|
const N = v === "row";
|
|
7207
7222
|
return /* @__PURE__ */ ue(
|
|
@@ -7244,10 +7259,10 @@ const ys = ({
|
|
|
7244
7259
|
}
|
|
7245
7260
|
);
|
|
7246
7261
|
const D = u ? w(u) : null;
|
|
7247
|
-
return D ? /* @__PURE__ */ b(ci, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Jn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children:
|
|
7262
|
+
return D ? /* @__PURE__ */ b(ci, { fallback: /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", width: "100%", height: "100%" }, children: /* @__PURE__ */ b(Jn, {}) }), children: /* @__PURE__ */ b("div", { id: c, style: { width: "100%", height: "100%", flex: "1 1 auto", ...a }, children: m && p !== null ? /* @__PURE__ */ b(
|
|
7248
7263
|
ct.Provider,
|
|
7249
7264
|
{
|
|
7250
|
-
value: { dataSet:
|
|
7265
|
+
value: { dataSet: m, index: p, sessionId: i },
|
|
7251
7266
|
children: /* @__PURE__ */ b(D, { ...A })
|
|
7252
7267
|
}
|
|
7253
7268
|
) : /* @__PURE__ */ b(D, { ...A }) }) }) : /* @__PURE__ */ b(
|
|
@@ -7269,19 +7284,19 @@ const ys = ({
|
|
|
7269
7284
|
gap: a = [100, 100],
|
|
7270
7285
|
offset: c,
|
|
7271
7286
|
inherit: l = !0,
|
|
7272
|
-
font:
|
|
7287
|
+
font: d,
|
|
7273
7288
|
develop: v,
|
|
7274
7289
|
token: h,
|
|
7275
7290
|
children: g,
|
|
7276
7291
|
...p
|
|
7277
7292
|
}) => {
|
|
7278
7293
|
const f = {
|
|
7279
|
-
color: (
|
|
7280
|
-
fontSize: (
|
|
7281
|
-
fontWeight: (
|
|
7282
|
-
fontFamily: (
|
|
7283
|
-
fontStyle: (
|
|
7284
|
-
textAlign: (
|
|
7294
|
+
color: (d == null ? void 0 : d.color) ?? "rgba(0, 0, 0, 0.15)",
|
|
7295
|
+
fontSize: (d == null ? void 0 : d.fontSize) ?? 16,
|
|
7296
|
+
fontWeight: (d == null ? void 0 : d.fontWeight) ?? "normal",
|
|
7297
|
+
fontFamily: (d == null ? void 0 : d.fontFamily) ?? "sans-serif",
|
|
7298
|
+
fontStyle: (d == null ? void 0 : d.fontStyle) ?? "normal",
|
|
7299
|
+
textAlign: (d == null ? void 0 : d.textAlign) ?? "center"
|
|
7285
7300
|
}, s = /* @__PURE__ */ b(
|
|
7286
7301
|
Zr,
|
|
7287
7302
|
{
|
|
@@ -7369,7 +7384,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
|
|
|
7369
7384
|
initialPage: a = 1,
|
|
7370
7385
|
metaPathPrefix: c = "",
|
|
7371
7386
|
loadErrorMessage: l,
|
|
7372
|
-
nonPdfBackgroundColor:
|
|
7387
|
+
nonPdfBackgroundColor: d = "#ECECEC",
|
|
7373
7388
|
styles: v,
|
|
7374
7389
|
token: h,
|
|
7375
7390
|
className: g,
|
|
@@ -7381,7 +7396,7 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
|
|
|
7381
7396
|
const f = _((F) => F.setDataSet), s = y(
|
|
7382
7397
|
() => ee(e, i),
|
|
7383
7398
|
[e, i]
|
|
7384
|
-
),
|
|
7399
|
+
), m = _((F) => {
|
|
7385
7400
|
if (!s || !r) return;
|
|
7386
7401
|
const H = F.getDataSet(s, r);
|
|
7387
7402
|
if (H != null && H !== "") return String(H);
|
|
@@ -7392,20 +7407,20 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
|
|
|
7392
7407
|
}
|
|
7393
7408
|
), A = y(() => {
|
|
7394
7409
|
let F;
|
|
7395
|
-
if (
|
|
7410
|
+
if (m !== void 0) F = m;
|
|
7396
7411
|
else if (u && typeof u == "object") {
|
|
7397
7412
|
const H = u.filePath;
|
|
7398
7413
|
H != null && H !== "" && (F = String(H));
|
|
7399
7414
|
}
|
|
7400
7415
|
return F === void 0 && (F = o), F;
|
|
7401
|
-
}, [
|
|
7416
|
+
}, [m, u, o]), C = y(() => {
|
|
7402
7417
|
if (u && typeof u == "object") {
|
|
7403
7418
|
const F = u.nonPdfBackgroundColor;
|
|
7404
7419
|
if (typeof F == "string" && F.trim())
|
|
7405
7420
|
return F.trim();
|
|
7406
7421
|
}
|
|
7407
|
-
return
|
|
7408
|
-
}, [u,
|
|
7422
|
+
return d;
|
|
7423
|
+
}, [u, d]), [k, w] = ve(0), [D, x] = ve(
|
|
7409
7424
|
() => Math.max(1, a || 1)
|
|
7410
7425
|
), E = Me(D);
|
|
7411
7426
|
E.current = D;
|
|
@@ -7484,8 +7499,8 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
|
|
|
7484
7499
|
oe++;
|
|
7485
7500
|
const ke = Math.max(1, Math.min(Math.floor(F), k));
|
|
7486
7501
|
let Ze = !0;
|
|
7487
|
-
for (let
|
|
7488
|
-
const nt = R.current[
|
|
7502
|
+
for (let Pe = 1; Pe <= ke; Pe++) {
|
|
7503
|
+
const nt = R.current[Pe];
|
|
7489
7504
|
if (!nt || !nt.isConnected || nt.clientHeight <= 50) {
|
|
7490
7505
|
Ze = !1;
|
|
7491
7506
|
break;
|
|
@@ -7494,8 +7509,8 @@ const Va = 0.5, qa = 3, zn = 0.1, Us = ({
|
|
|
7494
7509
|
if (Ze) {
|
|
7495
7510
|
requestAnimationFrame(() => {
|
|
7496
7511
|
if (H) return;
|
|
7497
|
-
const
|
|
7498
|
-
|
|
7512
|
+
const Pe = R.current[ke];
|
|
7513
|
+
Pe && Pe.scrollIntoView({ block: "start", behavior: "auto" }), Q.current = null, requestAnimationFrame(() => {
|
|
7499
7514
|
H || (P.current = !1);
|
|
7500
7515
|
});
|
|
7501
7516
|
});
|
|
@@ -7769,7 +7784,7 @@ function tt(t, e) {
|
|
|
7769
7784
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7770
7785
|
id: c,
|
|
7771
7786
|
sessionId: l,
|
|
7772
|
-
develop:
|
|
7787
|
+
develop: d,
|
|
7773
7788
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7774
7789
|
style: v,
|
|
7775
7790
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -7786,7 +7801,7 @@ function tt(t, e) {
|
|
|
7786
7801
|
// 我们仍然尝试从 props 中解构它们(如果存在)。
|
|
7787
7802
|
// 使用 as any 规避 TS 错误
|
|
7788
7803
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7789
|
-
height:
|
|
7804
|
+
height: m,
|
|
7790
7805
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
7791
7806
|
width: u,
|
|
7792
7807
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -7817,10 +7832,10 @@ function tt(t, e) {
|
|
|
7817
7832
|
if (ae !== void 0) return ae;
|
|
7818
7833
|
}
|
|
7819
7834
|
const we = Ee(f);
|
|
7820
|
-
return we !== void 0 ? we :
|
|
7821
|
-
}, [f, g, p, K,
|
|
7835
|
+
return we !== void 0 ? we : d ? r : [];
|
|
7836
|
+
}, [f, g, p, K, d]), Q = (we) => {
|
|
7822
7837
|
var ae;
|
|
7823
|
-
if (W.current = we, !
|
|
7838
|
+
if (W.current = we, !d && l) {
|
|
7824
7839
|
const he = Ee($);
|
|
7825
7840
|
he && typeof he == "object" && Object.entries(he).forEach(([fe, G]) => {
|
|
7826
7841
|
typeof G == "string" && we.on(fe, (Z) => {
|
|
@@ -7841,7 +7856,7 @@ function tt(t, e) {
|
|
|
7841
7856
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7842
7857
|
...Y,
|
|
7843
7858
|
// 设计器模式禁用动画
|
|
7844
|
-
animate:
|
|
7859
|
+
animate: d ? !1 : Ee(E),
|
|
7845
7860
|
onReady: Q,
|
|
7846
7861
|
...q
|
|
7847
7862
|
}, I = Ee(k);
|
|
@@ -7982,7 +7997,7 @@ const Ha = [
|
|
|
7982
7997
|
line: c,
|
|
7983
7998
|
point: l,
|
|
7984
7999
|
// 布尔配置
|
|
7985
|
-
stack:
|
|
8000
|
+
stack: d,
|
|
7986
8001
|
percent: v,
|
|
7987
8002
|
symmetry: h,
|
|
7988
8003
|
diff: g,
|
|
@@ -7990,11 +8005,11 @@ const Ha = [
|
|
|
7990
8005
|
} = t, f = {
|
|
7991
8006
|
...p
|
|
7992
8007
|
};
|
|
7993
|
-
e && (f.xField = e), n && (f.yField = n), i && (f.seriesField = i), r && (f.colorField = r), o && (f.shapeField = o), a && (f.sizeField = a),
|
|
8008
|
+
e && (f.xField = e), n && (f.yField = n), i && (f.seriesField = i), r && (f.colorField = r), o && (f.shapeField = o), a && (f.sizeField = a), d !== void 0 && (f.stack = d === !0 || d === "true"), v !== void 0 && (f.percent = v === !0 || v === "true"), h !== void 0 && (f.symmetry = h === !0 || h === "true"), g !== void 0 && (f.diff = g === !0 || g === "true");
|
|
7994
8009
|
const s = Ee(c);
|
|
7995
8010
|
s !== void 0 && (f.line = s);
|
|
7996
|
-
const
|
|
7997
|
-
return
|
|
8011
|
+
const m = Ee(l);
|
|
8012
|
+
return m !== void 0 && (f.point = m), /* @__PURE__ */ b(Ga, { ...f });
|
|
7998
8013
|
}, Qa = tt(Ai, {
|
|
7999
8014
|
chartType: "AndVDualAxes",
|
|
8000
8015
|
defaultHeight: 300,
|
|
@@ -8025,8 +8040,8 @@ const Ha = [
|
|
|
8025
8040
|
console.log("[AndVDualAxes] props:", { xField: e, yField: n, children: o }), e && (c.xField = e);
|
|
8026
8041
|
const l = Ee(n);
|
|
8027
8042
|
l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
|
|
8028
|
-
const
|
|
8029
|
-
return
|
|
8043
|
+
const d = Ee(o);
|
|
8044
|
+
return d !== void 0 && (c.children = d), /* @__PURE__ */ b(Qa, { ...c });
|
|
8030
8045
|
}, Za = tt(xi, {
|
|
8031
8046
|
chartType: "AndVGauge",
|
|
8032
8047
|
defaultHeight: 300,
|
|
@@ -8075,7 +8090,7 @@ const Ha = [
|
|
|
8075
8090
|
percent: c,
|
|
8076
8091
|
// JSON 配置
|
|
8077
8092
|
conversionTag: l,
|
|
8078
|
-
markBackground:
|
|
8093
|
+
markBackground: d,
|
|
8079
8094
|
...v
|
|
8080
8095
|
} = t, h = {
|
|
8081
8096
|
...v
|
|
@@ -8083,7 +8098,7 @@ const Ha = [
|
|
|
8083
8098
|
e && (h.xField = e), n && (h.yField = n), i && (h.seriesField = i), r && (h.colorField = r), o !== void 0 && (h.stack = o === !0 || o === "true"), a !== void 0 && (h.group = a === !0 || a === "true"), c !== void 0 && (h.percent = c === !0 || c === "true");
|
|
8084
8099
|
const g = Ee(l);
|
|
8085
8100
|
g !== void 0 && (h.conversionTag = g);
|
|
8086
|
-
const p = Ee(
|
|
8101
|
+
const p = Ee(d);
|
|
8087
8102
|
return p !== void 0 && (h.markBackground = p), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ b(Ia, { ...h });
|
|
8088
8103
|
};
|
|
8089
8104
|
export {
|
|
@@ -8170,7 +8185,7 @@ export {
|
|
|
8170
8185
|
mo as dictValueEquals,
|
|
8171
8186
|
Ps as dispatchPdfViewerCommand,
|
|
8172
8187
|
La as ensurePdfjsWorker,
|
|
8173
|
-
|
|
8188
|
+
Ge as findDictOptionByValue,
|
|
8174
8189
|
Bo as formatByType,
|
|
8175
8190
|
cn as getAccessToken,
|
|
8176
8191
|
He as getCoreConfig,
|
|
@@ -8180,7 +8195,7 @@ export {
|
|
|
8180
8195
|
wt as getValidateStoreKey,
|
|
8181
8196
|
Ni as initReactMount,
|
|
8182
8197
|
cr as isTokenName,
|
|
8183
|
-
|
|
8198
|
+
Ue as mergeStoreProps,
|
|
8184
8199
|
bc as mountReactComponent,
|
|
8185
8200
|
it as parseAction,
|
|
8186
8201
|
gt as parseArrayNotation,
|