@nuwatop/code-canvas-core 0.5.64 → 0.5.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AndDynamicContainer/index.d.ts.map +1 -1
- package/dist/index.esm.js +567 -567
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import ci from "antd/locale/zh_CN";
|
|
|
6
6
|
import { create as si } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as li } from "zustand/middleware";
|
|
8
8
|
import { immer as ui } from "zustand/middleware/immer";
|
|
9
|
-
import Le, { useMemo as m, useCallback as
|
|
9
|
+
import Le, { useMemo as m, useCallback as F, useEffect as Ce, createContext as di, useContext as Ge, useState as we, useRef as Re, useLayoutEffect as tr, useId as fi, Suspense as mi } from "react";
|
|
10
10
|
import * as Je from "@ant-design/icons";
|
|
11
11
|
import { CloseCircleOutlined as yi, PlusOutlined as nr, UploadOutlined as hi, MenuOutlined as gi, MinusOutlined as pi, LeftOutlined as rr, RightOutlined as ir, UpOutlined as vi, DownOutlined as or, ApiOutlined as bi, InboxOutlined as Si, FilePdfOutlined as wi } from "@ant-design/icons";
|
|
12
12
|
import xi from "clsx";
|
|
@@ -1001,13 +1001,13 @@ var ln = sn(), Et = /* @__PURE__ */ function() {
|
|
|
1001
1001
|
}), k = ft({}, k, l.rule.fields);
|
|
1002
1002
|
var C = {};
|
|
1003
1003
|
Object.keys(k).forEach(function(M) {
|
|
1004
|
-
var
|
|
1004
|
+
var R = k[M], O = Array.isArray(R) ? R : [R];
|
|
1005
1005
|
C[M] = O.map(w.bind(null, M));
|
|
1006
1006
|
});
|
|
1007
1007
|
var T = new t(C);
|
|
1008
1008
|
T.messages(s.messages), l.rule.options && (l.rule.options.messages = s.messages, l.rule.options.error = s.error), T.validate(l.value, l.rule.options || s, function(M) {
|
|
1009
|
-
var
|
|
1010
|
-
E && E.length &&
|
|
1009
|
+
var R = [];
|
|
1010
|
+
E && E.length && R.push.apply(R, E), M && M.length && R.push.apply(R, M), g(R.length ? R : null);
|
|
1011
1011
|
});
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
@@ -1108,7 +1108,7 @@ function ze(t) {
|
|
|
1108
1108
|
var S;
|
|
1109
1109
|
return l ? (S = x.dataSets[l]) == null ? void 0 : S.validate : void 0;
|
|
1110
1110
|
}
|
|
1111
|
-
), u =
|
|
1111
|
+
), u = F(
|
|
1112
1112
|
(x) => {
|
|
1113
1113
|
const S = x ?? "";
|
|
1114
1114
|
if (r && n && i && c(r, n, i, S), r && o) {
|
|
@@ -1117,7 +1117,7 @@ function ze(t) {
|
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
1119
|
[r, n, i, o, c, s, d]
|
|
1120
|
-
), A =
|
|
1120
|
+
), A = F(
|
|
1121
1121
|
(x) => {
|
|
1122
1122
|
const S = ur(e || []);
|
|
1123
1123
|
dr(
|
|
@@ -1281,25 +1281,25 @@ const Bc = {
|
|
|
1281
1281
|
get: (t, e, n) => mt({ url: t, params: e, method: "GET", ...n })
|
|
1282
1282
|
};
|
|
1283
1283
|
function So() {
|
|
1284
|
-
const t = Ie(), e =
|
|
1284
|
+
const t = Ie(), e = F(
|
|
1285
1285
|
async (s, d) => {
|
|
1286
1286
|
const v = typeof s == "string" ? { url: s, ...d } : s;
|
|
1287
1287
|
return mt(v);
|
|
1288
1288
|
},
|
|
1289
1289
|
[]
|
|
1290
|
-
), n =
|
|
1290
|
+
), n = F(
|
|
1291
1291
|
async (s, d, v) => mt({ url: s, params: d, method: "GET", ...v }),
|
|
1292
1292
|
[]
|
|
1293
|
-
), i =
|
|
1293
|
+
), i = F(
|
|
1294
1294
|
async (s, d, v) => mt({ url: s, data: d, method: "POST", ...v }),
|
|
1295
1295
|
[]
|
|
1296
|
-
), r =
|
|
1296
|
+
), r = F(
|
|
1297
1297
|
async (s) => yn(s),
|
|
1298
1298
|
[]
|
|
1299
|
-
), o =
|
|
1299
|
+
), o = F(
|
|
1300
1300
|
async (s, d) => fr(s, d),
|
|
1301
1301
|
[]
|
|
1302
|
-
), a =
|
|
1302
|
+
), a = F(() => un(), []), c = F(() => !!t.request, [t.request]);
|
|
1303
1303
|
return {
|
|
1304
1304
|
request: e,
|
|
1305
1305
|
get: n,
|
|
@@ -1340,13 +1340,13 @@ function hn(t, e) {
|
|
|
1340
1340
|
() => (e == null ? void 0 : e.params) != null ? JSON.parse(f) : void 0,
|
|
1341
1341
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1342
1342
|
[f]
|
|
1343
|
-
), y =
|
|
1343
|
+
), y = F(
|
|
1344
1344
|
(g) => Array.isArray(g) ? g.map((u) => ({
|
|
1345
1345
|
label: u[s],
|
|
1346
1346
|
value: u[d]
|
|
1347
1347
|
})) : [],
|
|
1348
1348
|
[s, d]
|
|
1349
|
-
), l =
|
|
1349
|
+
), l = F(async () => {
|
|
1350
1350
|
if (t) {
|
|
1351
1351
|
o(!0), c(null);
|
|
1352
1352
|
try {
|
|
@@ -1728,21 +1728,21 @@ const Fc = ({
|
|
|
1728
1728
|
}, [b, A, a]), N = m(() => {
|
|
1729
1729
|
const L = (A == null ? void 0 : A.iconName) || i;
|
|
1730
1730
|
return L && Je[L] ? Je[L] : null;
|
|
1731
|
-
}, [i, A == null ? void 0 : A.iconName]), x =
|
|
1731
|
+
}, [i, A == null ? void 0 : A.iconName]), x = F(
|
|
1732
1732
|
(L) => {
|
|
1733
1733
|
if (c) {
|
|
1734
1734
|
c(L);
|
|
1735
1735
|
return;
|
|
1736
1736
|
}
|
|
1737
1737
|
if (r && o) {
|
|
1738
|
-
const { actionName: $, arg:
|
|
1738
|
+
const { actionName: $, arg: z } = cr(r, {
|
|
1739
1739
|
id: t,
|
|
1740
1740
|
index: g,
|
|
1741
1741
|
parentIndex: u,
|
|
1742
1742
|
dataSet: v,
|
|
1743
1743
|
dataSetField: h,
|
|
1744
1744
|
...w
|
|
1745
|
-
}), U = oe($,
|
|
1745
|
+
}), U = oe($, z);
|
|
1746
1746
|
y(o, U);
|
|
1747
1747
|
}
|
|
1748
1748
|
},
|
|
@@ -1761,10 +1761,10 @@ const Fc = ({
|
|
|
1761
1761
|
), S = (A == null ? void 0 : A.text) || e, D = (A == null ? void 0 : A.tooltip) ?? n, E = m(() => {
|
|
1762
1762
|
const L = A == null ? void 0 : A.token, $ = { ...f, ...L };
|
|
1763
1763
|
if (!$ || Object.keys($).length === 0) return;
|
|
1764
|
-
const
|
|
1764
|
+
const z = {};
|
|
1765
1765
|
return Object.entries($).forEach(([U, G]) => {
|
|
1766
|
-
G !== "" && G !== void 0 && G !== null && (
|
|
1767
|
-
}), Object.keys(
|
|
1766
|
+
G !== "" && G !== void 0 && G !== null && (z[U] = G);
|
|
1767
|
+
}), Object.keys(z).length > 0 ? z : void 0;
|
|
1768
1768
|
}, [f, A == null ? void 0 : A.token]), k = m(
|
|
1769
1769
|
() => E ? { components: { Button: E } } : void 0,
|
|
1770
1770
|
[E]
|
|
@@ -1772,10 +1772,10 @@ const Fc = ({
|
|
|
1772
1772
|
iconPosition: C,
|
|
1773
1773
|
iconPlacement: T,
|
|
1774
1774
|
clickAction: M,
|
|
1775
|
-
tooltip:
|
|
1775
|
+
tooltip: R,
|
|
1776
1776
|
token: O,
|
|
1777
1777
|
...V
|
|
1778
|
-
} = w, B = T || C, K = !!(V != null && V.block),
|
|
1778
|
+
} = w, B = T || C, K = !!(V != null && V.block), j = /* @__PURE__ */ p(
|
|
1779
1779
|
st,
|
|
1780
1780
|
{
|
|
1781
1781
|
...V,
|
|
@@ -1784,8 +1784,8 @@ const Fc = ({
|
|
|
1784
1784
|
onClick: x,
|
|
1785
1785
|
children: S || s
|
|
1786
1786
|
}
|
|
1787
|
-
),
|
|
1788
|
-
return k ? /* @__PURE__ */ p(Ke, { theme: k, children:
|
|
1787
|
+
), q = D ? /* @__PURE__ */ p(Wn, { title: D, children: /* @__PURE__ */ p("span", { style: { display: K ? "block" : "inline-block", width: K ? "100%" : void 0 }, children: j }) }) : j;
|
|
1788
|
+
return k ? /* @__PURE__ */ p(Ke, { theme: k, children: q }) : q;
|
|
1789
1789
|
}, rt = {
|
|
1790
1790
|
whiteSpace: "nowrap",
|
|
1791
1791
|
flex: "none"
|
|
@@ -1852,13 +1852,13 @@ const hr = (t) => {
|
|
|
1852
1852
|
clearAction: A,
|
|
1853
1853
|
bordered: w,
|
|
1854
1854
|
...N
|
|
1855
|
-
} = t, x = ot(r, o, n), S = x.dataSet, D = x.dataSetField, E = x.sessionId, k = Ge(Pe), C = a ?? (k == null ? void 0 : k.index), T = k == null ? void 0 : k.parentIndex, M = Re(""),
|
|
1855
|
+
} = t, x = ot(r, o, n), S = x.dataSet, D = x.dataSetField, E = x.sessionId, k = Ge(Pe), C = a ?? (k == null ? void 0 : k.index), T = k == null ? void 0 : k.parentIndex, M = Re(""), R = Re(null), O = _((Z) => Z.addCommand), V = _((Z) => Z.getDataSet), B = _((Z) => Z.setDataSet), K = _((Z) => Z.getProps), j = _((Z) => Z.setProps), q = _((Z) => Z.setValidateResult), L = m(
|
|
1856
1856
|
() => le(E, S),
|
|
1857
1857
|
[E, S]
|
|
1858
1858
|
), $ = m(
|
|
1859
1859
|
() => E ? Ot(e, k, a) : null,
|
|
1860
1860
|
[E, e, k == null ? void 0 : k.parentIndex, k == null ? void 0 : k.index, a]
|
|
1861
|
-
),
|
|
1861
|
+
), z = _(
|
|
1862
1862
|
(Z) => {
|
|
1863
1863
|
var ce;
|
|
1864
1864
|
return $ ? ((ce = Z.propsStore[`${E}_props`]) == null ? void 0 : ce[$]) ?? null : null;
|
|
@@ -1881,9 +1881,9 @@ const hr = (t) => {
|
|
|
1881
1881
|
var ce;
|
|
1882
1882
|
return de ? (ce = Z.dataSets[de]) == null ? void 0 : ce.validate : void 0;
|
|
1883
1883
|
}
|
|
1884
|
-
), J = m(() => I !== void 0 ? I : (
|
|
1885
|
-
() => Io(N,
|
|
1886
|
-
[N,
|
|
1884
|
+
), J = m(() => I !== void 0 ? I : (z == null ? void 0 : z.value) !== void 0 ? z.value : d, [I, z == null ? void 0 : z.value, d]), se = m(
|
|
1885
|
+
() => Io(N, z ?? null, { develop: i }),
|
|
1886
|
+
[N, z, i]
|
|
1887
1887
|
), {
|
|
1888
1888
|
prefixIconNode: me,
|
|
1889
1889
|
suffixIconNode: X,
|
|
@@ -1911,17 +1911,17 @@ const hr = (t) => {
|
|
|
1911
1911
|
suffixAddonText: Ze.iconConfigured ? void 0 : Ze.labelText,
|
|
1912
1912
|
inputMergedProps: We
|
|
1913
1913
|
};
|
|
1914
|
-
}, [se]),
|
|
1914
|
+
}, [se]), P = F(
|
|
1915
1915
|
(Z) => {
|
|
1916
1916
|
const ce = Z ?? "";
|
|
1917
|
-
if (E && S && D &&
|
|
1917
|
+
if (E && S && D && q(
|
|
1918
1918
|
E,
|
|
1919
1919
|
S,
|
|
1920
1920
|
D,
|
|
1921
1921
|
ce
|
|
1922
1922
|
), E && $) {
|
|
1923
1923
|
const Y = K(E, $) || {};
|
|
1924
|
-
|
|
1924
|
+
j(E, $, {
|
|
1925
1925
|
...Y,
|
|
1926
1926
|
validateStatus: ce ? "error" : void 0,
|
|
1927
1927
|
help: ce
|
|
@@ -1933,25 +1933,25 @@ const hr = (t) => {
|
|
|
1933
1933
|
S,
|
|
1934
1934
|
D,
|
|
1935
1935
|
$,
|
|
1936
|
-
|
|
1936
|
+
q,
|
|
1937
1937
|
K,
|
|
1938
|
-
|
|
1938
|
+
j
|
|
1939
1939
|
]
|
|
1940
|
-
), ae =
|
|
1940
|
+
), ae = F(
|
|
1941
1941
|
(Z) => {
|
|
1942
1942
|
const ce = ur(f || []);
|
|
1943
1943
|
dr(
|
|
1944
1944
|
ce,
|
|
1945
1945
|
Z,
|
|
1946
|
-
() =>
|
|
1946
|
+
() => P(""),
|
|
1947
1947
|
(Y) => {
|
|
1948
1948
|
var W;
|
|
1949
|
-
return
|
|
1949
|
+
return P(((W = Y[0]) == null ? void 0 : W.message) ?? "");
|
|
1950
1950
|
}
|
|
1951
1951
|
);
|
|
1952
1952
|
},
|
|
1953
|
-
[f,
|
|
1954
|
-
), Ne =
|
|
1953
|
+
[f, P]
|
|
1954
|
+
), Ne = F(
|
|
1955
1955
|
(Z) => {
|
|
1956
1956
|
const ce = Z.target.value;
|
|
1957
1957
|
if (M.current = ce, s) {
|
|
@@ -1969,8 +1969,8 @@ const hr = (t) => {
|
|
|
1969
1969
|
});
|
|
1970
1970
|
O(E, oe(Y, W));
|
|
1971
1971
|
}
|
|
1972
|
-
b && (
|
|
1973
|
-
|
|
1972
|
+
b && (R.current && clearTimeout(R.current), R.current = setTimeout(() => {
|
|
1973
|
+
R.current = null, ae(ce);
|
|
1974
1974
|
}, Uo));
|
|
1975
1975
|
},
|
|
1976
1976
|
[
|
|
@@ -1990,7 +1990,7 @@ const hr = (t) => {
|
|
|
1990
1990
|
b,
|
|
1991
1991
|
ae
|
|
1992
1992
|
]
|
|
1993
|
-
), ve =
|
|
1993
|
+
), ve = F(() => {
|
|
1994
1994
|
if (!y) return;
|
|
1995
1995
|
const Z = L && D ? String(V(L, D) ?? "") : M.current;
|
|
1996
1996
|
ae(Z);
|
|
@@ -2000,7 +2000,7 @@ const hr = (t) => {
|
|
|
2000
2000
|
D,
|
|
2001
2001
|
V,
|
|
2002
2002
|
ae
|
|
2003
|
-
]), pe =
|
|
2003
|
+
]), pe = F(
|
|
2004
2004
|
(Z) => {
|
|
2005
2005
|
const Y = te.onPressEnter;
|
|
2006
2006
|
if (Y) {
|
|
@@ -2031,7 +2031,7 @@ const hr = (t) => {
|
|
|
2031
2031
|
T,
|
|
2032
2032
|
O
|
|
2033
2033
|
]
|
|
2034
|
-
), Ae =
|
|
2034
|
+
), Ae = F(() => {
|
|
2035
2035
|
const ce = te.onClear;
|
|
2036
2036
|
if (ce) {
|
|
2037
2037
|
ce();
|
|
@@ -2061,7 +2061,7 @@ const hr = (t) => {
|
|
|
2061
2061
|
]);
|
|
2062
2062
|
Ce(
|
|
2063
2063
|
() => () => {
|
|
2064
|
-
|
|
2064
|
+
R.current && clearTimeout(R.current);
|
|
2065
2065
|
},
|
|
2066
2066
|
[]
|
|
2067
2067
|
), Ce(() => {
|
|
@@ -2073,7 +2073,7 @@ const hr = (t) => {
|
|
|
2073
2073
|
const ge = m(() => Yo(h), [h]), ee = m(
|
|
2074
2074
|
() => ge ? { components: { Input: ge } } : void 0,
|
|
2075
2075
|
[ge]
|
|
2076
|
-
), ne = i ? void 0 : E && S && D ? G : (
|
|
2076
|
+
), ne = i ? void 0 : E && S && D ? G : (z == null ? void 0 : z.help) ?? "", Se = !i && ne ? "error" : void 0, H = /* @__PURE__ */ ye(St, { children: [
|
|
2077
2077
|
/* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
|
|
2078
2078
|
ie ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: ie }) : null,
|
|
2079
2079
|
/* @__PURE__ */ p(
|
|
@@ -2122,8 +2122,8 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2122
2122
|
[N, A]
|
|
2123
2123
|
), k = _(
|
|
2124
2124
|
(te) => {
|
|
2125
|
-
var
|
|
2126
|
-
return N && t ? ((
|
|
2125
|
+
var P;
|
|
2126
|
+
return N && t ? ((P = te.propsStore[`${N}_props`]) == null ? void 0 : P[t]) ?? null : null;
|
|
2127
2127
|
}
|
|
2128
2128
|
), C = _(
|
|
2129
2129
|
(te) => E && w ? te.getDataSet(E, w) : void 0
|
|
@@ -2134,12 +2134,12 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2134
2134
|
sessionId: N,
|
|
2135
2135
|
id: t,
|
|
2136
2136
|
develop: n
|
|
2137
|
-
}),
|
|
2138
|
-
(te,
|
|
2139
|
-
te && e && x(e, oe(te, { type:
|
|
2137
|
+
}), R = m(() => C !== void 0 ? C : (k == null ? void 0 : k.value) !== void 0 ? k.value : l, [C, k == null ? void 0 : k.value, l]), O = F(
|
|
2138
|
+
(te, P, ae) => {
|
|
2139
|
+
te && e && x(e, oe(te, { type: P, value: ae }));
|
|
2140
2140
|
},
|
|
2141
2141
|
[e, x]
|
|
2142
|
-
), V =
|
|
2142
|
+
), V = F(
|
|
2143
2143
|
(te) => {
|
|
2144
2144
|
if (b) {
|
|
2145
2145
|
b(te);
|
|
@@ -2159,34 +2159,34 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2159
2159
|
s,
|
|
2160
2160
|
O
|
|
2161
2161
|
]
|
|
2162
|
-
), B =
|
|
2163
|
-
a && T(
|
|
2164
|
-
}, [a, T,
|
|
2162
|
+
), B = F(() => {
|
|
2163
|
+
a && T(R);
|
|
2164
|
+
}, [a, T, R]), K = F(
|
|
2165
2165
|
(te) => {
|
|
2166
2166
|
if (g.onPressEnter) {
|
|
2167
2167
|
g.onPressEnter(te);
|
|
2168
2168
|
return;
|
|
2169
2169
|
}
|
|
2170
2170
|
if (d && N) {
|
|
2171
|
-
const { actionName:
|
|
2171
|
+
const { actionName: P, arg: ae } = ke(d, R, {
|
|
2172
2172
|
id: t,
|
|
2173
2173
|
dataSet: A,
|
|
2174
2174
|
dataSetField: w
|
|
2175
2175
|
});
|
|
2176
|
-
x(N, oe(
|
|
2176
|
+
x(N, oe(P, ae));
|
|
2177
2177
|
}
|
|
2178
2178
|
},
|
|
2179
2179
|
[
|
|
2180
2180
|
g.onPressEnter,
|
|
2181
2181
|
d,
|
|
2182
2182
|
N,
|
|
2183
|
-
|
|
2183
|
+
R,
|
|
2184
2184
|
t,
|
|
2185
2185
|
A,
|
|
2186
2186
|
w,
|
|
2187
2187
|
x
|
|
2188
2188
|
]
|
|
2189
|
-
),
|
|
2189
|
+
), j = F(() => {
|
|
2190
2190
|
if (b) {
|
|
2191
2191
|
b(null);
|
|
2192
2192
|
return;
|
|
@@ -2194,12 +2194,12 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2194
2194
|
if (E && w && S(E, w, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2195
2195
|
D.current = null, T(null);
|
|
2196
2196
|
}, On)), O(s, "change", null), v && N) {
|
|
2197
|
-
const { actionName: te, arg:
|
|
2197
|
+
const { actionName: te, arg: P } = ke(v, null, {
|
|
2198
2198
|
id: t,
|
|
2199
2199
|
dataSet: A,
|
|
2200
2200
|
dataSetField: w
|
|
2201
2201
|
});
|
|
2202
|
-
x(N, oe(te,
|
|
2202
|
+
x(N, oe(te, P));
|
|
2203
2203
|
}
|
|
2204
2204
|
}, [
|
|
2205
2205
|
b,
|
|
@@ -2216,9 +2216,9 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2216
2216
|
A,
|
|
2217
2217
|
w,
|
|
2218
2218
|
x
|
|
2219
|
-
]),
|
|
2220
|
-
(te,
|
|
2221
|
-
O(f, "step", { value: te, type:
|
|
2219
|
+
]), q = F(
|
|
2220
|
+
(te, P) => {
|
|
2221
|
+
O(f, "step", { value: te, type: P.type });
|
|
2222
2222
|
},
|
|
2223
2223
|
[f, O]
|
|
2224
2224
|
);
|
|
@@ -2228,14 +2228,14 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2228
2228
|
},
|
|
2229
2229
|
[]
|
|
2230
2230
|
), Ce(() => {
|
|
2231
|
-
y !== void 0 &&
|
|
2232
|
-
}, [y,
|
|
2231
|
+
y !== void 0 && R === void 0 && E && w && S(E, w, y);
|
|
2232
|
+
}, [y, R, E, w, S]);
|
|
2233
2233
|
const L = m(
|
|
2234
2234
|
() => Fe(g, k ?? void 0),
|
|
2235
2235
|
[g, k]
|
|
2236
2236
|
), {
|
|
2237
2237
|
prefix: $,
|
|
2238
|
-
suffix:
|
|
2238
|
+
suffix: z,
|
|
2239
2239
|
addonBefore: U,
|
|
2240
2240
|
addonAfter: G,
|
|
2241
2241
|
style: I,
|
|
@@ -2248,13 +2248,13 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2248
2248
|
[$, U]
|
|
2249
2249
|
), J = m(
|
|
2250
2250
|
() => it({
|
|
2251
|
-
iconName:
|
|
2251
|
+
iconName: z != null ? String(z) : void 0,
|
|
2252
2252
|
label: G != null ? String(G) : void 0
|
|
2253
2253
|
}),
|
|
2254
|
-
[
|
|
2254
|
+
[z, G]
|
|
2255
2255
|
), se = fe.iconNode, me = J.iconNode, X = fe.iconConfigured ? void 0 : fe.labelText, ie = J.iconConfigured ? void 0 : J.labelText, re = m(() => {
|
|
2256
|
-
if (!(h &&
|
|
2257
|
-
const
|
|
2256
|
+
if (!(h && R !== null && R !== void 0)) return me;
|
|
2257
|
+
const P = /* @__PURE__ */ p(
|
|
2258
2258
|
"span",
|
|
2259
2259
|
{
|
|
2260
2260
|
role: "button",
|
|
@@ -2262,16 +2262,16 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2262
2262
|
style: { cursor: "pointer", marginInlineStart: 4 },
|
|
2263
2263
|
onMouseDown: (ae) => ae.preventDefault(),
|
|
2264
2264
|
onClick: (ae) => {
|
|
2265
|
-
ae.stopPropagation(),
|
|
2265
|
+
ae.stopPropagation(), j();
|
|
2266
2266
|
},
|
|
2267
2267
|
children: /* @__PURE__ */ p(yi, {})
|
|
2268
2268
|
}
|
|
2269
2269
|
);
|
|
2270
|
-
return me == null || me === !1 ?
|
|
2270
|
+
return me == null || me === !1 ? P : /* @__PURE__ */ ye(St, { children: [
|
|
2271
2271
|
me,
|
|
2272
|
-
|
|
2272
|
+
P
|
|
2273
2273
|
] });
|
|
2274
|
-
}, [h,
|
|
2274
|
+
}, [h, R, me, j]);
|
|
2275
2275
|
return /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2276
2276
|
/* @__PURE__ */ ye(_e.Compact, { style: { width: "100%" }, children: [
|
|
2277
2277
|
X ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: X }) : null,
|
|
@@ -2285,11 +2285,11 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2285
2285
|
"ant-input-number-disabled": n && de.disabled
|
|
2286
2286
|
}),
|
|
2287
2287
|
prefix: se,
|
|
2288
|
-
value:
|
|
2288
|
+
value: R,
|
|
2289
2289
|
onChange: V,
|
|
2290
2290
|
onBlur: B,
|
|
2291
2291
|
onPressEnter: K,
|
|
2292
|
-
onStep:
|
|
2292
|
+
onStep: q,
|
|
2293
2293
|
suffix: re,
|
|
2294
2294
|
status: M ? "error" : void 0,
|
|
2295
2295
|
style: { width: "100%", ...I }
|
|
@@ -2328,7 +2328,7 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2328
2328
|
var se;
|
|
2329
2329
|
return T ? ((se = J.propsStore[`${w}_props`]) == null ? void 0 : se[T]) ?? null : null;
|
|
2330
2330
|
}
|
|
2331
|
-
),
|
|
2331
|
+
), R = _(
|
|
2332
2332
|
(J) => C && A ? J.getDataSet(C, A) : void 0
|
|
2333
2333
|
), { validate: O, help: V } = ze({
|
|
2334
2334
|
rules: o,
|
|
@@ -2337,10 +2337,10 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2337
2337
|
sessionId: w,
|
|
2338
2338
|
id: t,
|
|
2339
2339
|
develop: n
|
|
2340
|
-
}), B = m(() =>
|
|
2340
|
+
}), B = m(() => R !== void 0 ? R : (M == null ? void 0 : M.value) !== void 0 ? M.value : f ?? b, [R, M == null ? void 0 : M.value, f, b]), K = m(
|
|
2341
2341
|
() => Fe(l, M ?? void 0),
|
|
2342
2342
|
[l, M]
|
|
2343
|
-
), { leftAddonNode:
|
|
2343
|
+
), { leftAddonNode: j, rightAddonNode: q, inputRest: L } = m(() => {
|
|
2344
2344
|
const J = K, {
|
|
2345
2345
|
prefix: se,
|
|
2346
2346
|
suffix: me,
|
|
@@ -2350,16 +2350,16 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2350
2350
|
} = J, te = it({
|
|
2351
2351
|
iconName: se == null ? void 0 : String(se),
|
|
2352
2352
|
label: X == null ? void 0 : String(X)
|
|
2353
|
-
}),
|
|
2353
|
+
}), P = it({
|
|
2354
2354
|
iconName: me == null ? void 0 : String(me),
|
|
2355
2355
|
label: ie == null ? void 0 : String(ie)
|
|
2356
2356
|
});
|
|
2357
2357
|
return {
|
|
2358
2358
|
leftAddonNode: te.iconNode ?? te.labelText,
|
|
2359
|
-
rightAddonNode:
|
|
2359
|
+
rightAddonNode: P.iconNode ?? P.labelText,
|
|
2360
2360
|
inputRest: re
|
|
2361
2361
|
};
|
|
2362
|
-
}, [K]), $ = m(() =>
|
|
2362
|
+
}, [K]), $ = m(() => j != null && j !== !1 || q != null && q !== !1, [j, q]), z = F(
|
|
2363
2363
|
(J) => {
|
|
2364
2364
|
const se = J.target.value;
|
|
2365
2365
|
if (h) {
|
|
@@ -2394,9 +2394,9 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2394
2394
|
c,
|
|
2395
2395
|
O
|
|
2396
2396
|
]
|
|
2397
|
-
), U =
|
|
2397
|
+
), U = F(() => {
|
|
2398
2398
|
a && O(B);
|
|
2399
|
-
}, [a, O, B]), G =
|
|
2399
|
+
}, [a, O, B]), G = F(
|
|
2400
2400
|
(J) => {
|
|
2401
2401
|
const se = L.onPressEnter;
|
|
2402
2402
|
if (se) {
|
|
@@ -2426,7 +2426,7 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2426
2426
|
k,
|
|
2427
2427
|
N
|
|
2428
2428
|
]
|
|
2429
|
-
), I =
|
|
2429
|
+
), I = F(() => {
|
|
2430
2430
|
const J = L.onClear;
|
|
2431
2431
|
if (J) {
|
|
2432
2432
|
J();
|
|
@@ -2463,7 +2463,7 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2463
2463
|
...L,
|
|
2464
2464
|
disabled: n ? !1 : L.disabled,
|
|
2465
2465
|
value: B,
|
|
2466
|
-
onChange:
|
|
2466
|
+
onChange: z,
|
|
2467
2467
|
onBlur: U,
|
|
2468
2468
|
onPressEnter: G,
|
|
2469
2469
|
onClear: I,
|
|
@@ -2473,9 +2473,9 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2473
2473
|
...$ ? { flex: 1, minWidth: 0 } : {}
|
|
2474
2474
|
}
|
|
2475
2475
|
}, fe = $ ? /* @__PURE__ */ ye(_e.Compact, { style: { width: "100%", display: "flex" }, children: [
|
|
2476
|
-
|
|
2476
|
+
j != null && j !== !1 ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: j }) : null,
|
|
2477
2477
|
/* @__PURE__ */ p($n, { ...de }),
|
|
2478
|
-
|
|
2478
|
+
q != null && q !== !1 ? /* @__PURE__ */ p(_e.Addon, { style: rt, children: q }) : null
|
|
2479
2479
|
] }) : /* @__PURE__ */ p($n, { ...de });
|
|
2480
2480
|
return /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2481
2481
|
fe,
|
|
@@ -2498,16 +2498,16 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2498
2498
|
defaultValue: b,
|
|
2499
2499
|
...y
|
|
2500
2500
|
}) => {
|
|
2501
|
-
const l = _((
|
|
2501
|
+
const l = _((j) => j.addCommand), g = _((j) => j.setDataSet), u = Re(null), A = m(
|
|
2502
2502
|
() => le(e, i),
|
|
2503
2503
|
[e, i]
|
|
2504
2504
|
), w = _(
|
|
2505
|
-
(
|
|
2506
|
-
var
|
|
2507
|
-
return e && t ? ((
|
|
2505
|
+
(j) => {
|
|
2506
|
+
var q;
|
|
2507
|
+
return e && t ? ((q = j.propsStore[`${e}_props`]) == null ? void 0 : q[t]) ?? null : null;
|
|
2508
2508
|
}
|
|
2509
2509
|
), N = _(
|
|
2510
|
-
(
|
|
2510
|
+
(j) => A && r ? j.getDataSet(A, r) : void 0
|
|
2511
2511
|
), { validate: x, help: S } = ze({
|
|
2512
2512
|
rules: o,
|
|
2513
2513
|
dataSet: i,
|
|
@@ -2518,19 +2518,19 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2518
2518
|
}), D = m(() => N !== void 0 ? N : (w == null ? void 0 : w.value) !== void 0 ? w.value : f ?? b, [N, w == null ? void 0 : w.value, f, b]), E = m(
|
|
2519
2519
|
() => Fe(y, w ?? void 0),
|
|
2520
2520
|
[y, w]
|
|
2521
|
-
), { prefixIconNode: k, suffixIconNode: C, prefixAddonText: T, suffixAddonText: M, inputRest:
|
|
2522
|
-
const
|
|
2523
|
-
prefix:
|
|
2521
|
+
), { prefixIconNode: k, suffixIconNode: C, prefixAddonText: T, suffixAddonText: M, inputRest: R } = m(() => {
|
|
2522
|
+
const j = E, {
|
|
2523
|
+
prefix: q,
|
|
2524
2524
|
suffix: L,
|
|
2525
2525
|
addonBefore: $,
|
|
2526
|
-
addonAfter:
|
|
2526
|
+
addonAfter: z,
|
|
2527
2527
|
...U
|
|
2528
|
-
} =
|
|
2529
|
-
iconName:
|
|
2528
|
+
} = j, G = it({
|
|
2529
|
+
iconName: q == null ? void 0 : String(q),
|
|
2530
2530
|
label: $ == null ? void 0 : String($)
|
|
2531
2531
|
}), I = it({
|
|
2532
2532
|
iconName: L == null ? void 0 : String(L),
|
|
2533
|
-
label:
|
|
2533
|
+
label: z == null ? void 0 : String(z)
|
|
2534
2534
|
});
|
|
2535
2535
|
return {
|
|
2536
2536
|
prefixIconNode: G.iconNode,
|
|
@@ -2539,15 +2539,15 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2539
2539
|
suffixAddonText: I.iconConfigured ? void 0 : I.labelText,
|
|
2540
2540
|
inputRest: U
|
|
2541
2541
|
};
|
|
2542
|
-
}, [E]), O =
|
|
2543
|
-
(
|
|
2544
|
-
const
|
|
2542
|
+
}, [E]), O = F(
|
|
2543
|
+
(j) => {
|
|
2544
|
+
const q = j.target.value;
|
|
2545
2545
|
if (h) {
|
|
2546
|
-
h(
|
|
2546
|
+
h(q, j);
|
|
2547
2547
|
return;
|
|
2548
2548
|
}
|
|
2549
|
-
if (A && r && g(A, r,
|
|
2550
|
-
const { actionName: L, arg: $ } = ke(s,
|
|
2549
|
+
if (A && r && g(A, r, q), s && e) {
|
|
2550
|
+
const { actionName: L, arg: $ } = ke(s, q, {
|
|
2551
2551
|
id: t,
|
|
2552
2552
|
dataSet: i,
|
|
2553
2553
|
dataSetField: r
|
|
@@ -2555,7 +2555,7 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2555
2555
|
l(e, oe(L, $));
|
|
2556
2556
|
}
|
|
2557
2557
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2558
|
-
u.current = null, x(
|
|
2558
|
+
u.current = null, x(q);
|
|
2559
2559
|
}, Qo));
|
|
2560
2560
|
},
|
|
2561
2561
|
[
|
|
@@ -2570,13 +2570,13 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2570
2570
|
c,
|
|
2571
2571
|
x
|
|
2572
2572
|
]
|
|
2573
|
-
), V =
|
|
2573
|
+
), V = F(() => {
|
|
2574
2574
|
a && x(D);
|
|
2575
|
-
}, [a, x, D]), B =
|
|
2576
|
-
(
|
|
2577
|
-
const
|
|
2578
|
-
if (
|
|
2579
|
-
|
|
2575
|
+
}, [a, x, D]), B = F(
|
|
2576
|
+
(j) => {
|
|
2577
|
+
const q = R.onPressEnter;
|
|
2578
|
+
if (q) {
|
|
2579
|
+
q(j);
|
|
2580
2580
|
return;
|
|
2581
2581
|
}
|
|
2582
2582
|
if (d && e) {
|
|
@@ -2589,7 +2589,7 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2589
2589
|
}
|
|
2590
2590
|
},
|
|
2591
2591
|
[
|
|
2592
|
-
|
|
2592
|
+
R,
|
|
2593
2593
|
d,
|
|
2594
2594
|
e,
|
|
2595
2595
|
D,
|
|
@@ -2598,21 +2598,21 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2598
2598
|
r,
|
|
2599
2599
|
l
|
|
2600
2600
|
]
|
|
2601
|
-
), K =
|
|
2602
|
-
const
|
|
2603
|
-
if (
|
|
2604
|
-
|
|
2601
|
+
), K = F(() => {
|
|
2602
|
+
const j = R.onClear;
|
|
2603
|
+
if (j) {
|
|
2604
|
+
j();
|
|
2605
2605
|
return;
|
|
2606
2606
|
}
|
|
2607
2607
|
if (v && e) {
|
|
2608
|
-
const { actionName:
|
|
2608
|
+
const { actionName: q, arg: L } = ke(v, "", {
|
|
2609
2609
|
id: t,
|
|
2610
2610
|
dataSet: i,
|
|
2611
2611
|
dataSetField: r
|
|
2612
2612
|
});
|
|
2613
|
-
l(e, oe(
|
|
2613
|
+
l(e, oe(q, L));
|
|
2614
2614
|
}
|
|
2615
|
-
}, [
|
|
2615
|
+
}, [R, v, e, t, i, r, l]);
|
|
2616
2616
|
return Ce(
|
|
2617
2617
|
() => () => {
|
|
2618
2618
|
u.current && clearTimeout(u.current);
|
|
@@ -2624,10 +2624,10 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2624
2624
|
/* @__PURE__ */ p(
|
|
2625
2625
|
Go,
|
|
2626
2626
|
{
|
|
2627
|
-
...
|
|
2627
|
+
...R,
|
|
2628
2628
|
prefix: k,
|
|
2629
2629
|
suffix: C,
|
|
2630
|
-
disabled: n ? !1 :
|
|
2630
|
+
disabled: n ? !1 : R.disabled,
|
|
2631
2631
|
value: D,
|
|
2632
2632
|
onChange: O,
|
|
2633
2633
|
onBlur: V,
|
|
@@ -2670,25 +2670,25 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2670
2670
|
), { prefixIconNode: N, suffixIconNode: x, prefixAddonText: S, suffixAddonText: D, inputProps: E } = m(() => {
|
|
2671
2671
|
const T = w, {
|
|
2672
2672
|
prefix: M,
|
|
2673
|
-
suffix:
|
|
2673
|
+
suffix: R,
|
|
2674
2674
|
addonBefore: O,
|
|
2675
2675
|
addonAfter: V,
|
|
2676
2676
|
...B
|
|
2677
2677
|
} = T, K = it({
|
|
2678
2678
|
iconName: M == null ? void 0 : String(M),
|
|
2679
2679
|
label: O == null ? void 0 : String(O)
|
|
2680
|
-
}),
|
|
2681
|
-
iconName:
|
|
2680
|
+
}), j = it({
|
|
2681
|
+
iconName: R == null ? void 0 : String(R),
|
|
2682
2682
|
label: V == null ? void 0 : String(V)
|
|
2683
2683
|
});
|
|
2684
2684
|
return {
|
|
2685
2685
|
prefixIconNode: K.iconNode,
|
|
2686
|
-
suffixIconNode:
|
|
2686
|
+
suffixIconNode: j.iconNode,
|
|
2687
2687
|
prefixAddonText: K.iconConfigured ? void 0 : K.labelText,
|
|
2688
|
-
suffixAddonText:
|
|
2688
|
+
suffixAddonText: j.iconConfigured ? void 0 : j.labelText,
|
|
2689
2689
|
inputProps: B
|
|
2690
2690
|
};
|
|
2691
|
-
}, [w]), k =
|
|
2691
|
+
}, [w]), k = F(
|
|
2692
2692
|
(T) => {
|
|
2693
2693
|
const M = T.target.value;
|
|
2694
2694
|
if (c) {
|
|
@@ -2696,16 +2696,16 @@ const Vc = Le.memo(hr), On = 200, qc = ({
|
|
|
2696
2696
|
return;
|
|
2697
2697
|
}
|
|
2698
2698
|
if (g && r && y(g, r, M), o && e) {
|
|
2699
|
-
const { actionName:
|
|
2699
|
+
const { actionName: R, arg: O } = ke(o, M, {
|
|
2700
2700
|
id: t,
|
|
2701
2701
|
dataSet: i,
|
|
2702
2702
|
dataSetField: r
|
|
2703
2703
|
});
|
|
2704
|
-
f(e, oe(
|
|
2704
|
+
f(e, oe(R, O));
|
|
2705
2705
|
}
|
|
2706
2706
|
},
|
|
2707
2707
|
[c, g, r, y, o, e, t, f]
|
|
2708
|
-
), C =
|
|
2708
|
+
), C = F(
|
|
2709
2709
|
(T) => {
|
|
2710
2710
|
if (s) {
|
|
2711
2711
|
s(T);
|
|
@@ -2806,10 +2806,10 @@ const Uc = ({
|
|
|
2806
2806
|
dropdownMatchSelectWidth: D,
|
|
2807
2807
|
...E
|
|
2808
2808
|
}) => {
|
|
2809
|
-
const k = ot(i, r, e), C = k.dataSet, T = k.dataSetField, M = k.sessionId,
|
|
2809
|
+
const k = ot(i, r, e), C = k.dataSet, T = k.dataSetField, M = k.sessionId, R = _((pe) => pe.addCommand), O = _((pe) => pe.setDataSet), V = Re(null), B = Ge(Pe), K = m(
|
|
2810
2810
|
() => le(M, C),
|
|
2811
2811
|
[M, C]
|
|
2812
|
-
),
|
|
2812
|
+
), j = g ?? (B == null ? void 0 : B.index), q = B == null ? void 0 : B.parentIndex, L = m(
|
|
2813
2813
|
() => M ? Ot(t, B, g) : null,
|
|
2814
2814
|
[M, t, B == null ? void 0 : B.parentIndex, B == null ? void 0 : B.index, g]
|
|
2815
2815
|
), $ = _(
|
|
@@ -2817,7 +2817,7 @@ const Uc = ({
|
|
|
2817
2817
|
var Ae;
|
|
2818
2818
|
return L ? ((Ae = pe.propsStore[`${M}_props`]) == null ? void 0 : Ae[L]) ?? null : null;
|
|
2819
2819
|
}
|
|
2820
|
-
),
|
|
2820
|
+
), z = _(
|
|
2821
2821
|
(pe) => K && T ? pe.getDataSet(K, T) : void 0
|
|
2822
2822
|
), U = m(
|
|
2823
2823
|
() => ($ == null ? void 0 : $.optionsCfg) != null ? $.optionsCfg : c,
|
|
@@ -2840,7 +2840,7 @@ const Uc = ({
|
|
|
2840
2840
|
sessionId: M,
|
|
2841
2841
|
id: t,
|
|
2842
2842
|
develop: n
|
|
2843
|
-
}), X = m(() =>
|
|
2843
|
+
}), X = m(() => z != null && z !== "" ? z : ($ == null ? void 0 : $.value) !== void 0 ? $.value : l ?? y, [z, $ == null ? void 0 : $.value, l, y]), ie = m(
|
|
2844
2844
|
() => Fe(E, $ ?? void 0),
|
|
2845
2845
|
[E, $]
|
|
2846
2846
|
), re = m(() => $ != null && $.options && Array.isArray($.options) ? $.options : U != null && U.url && de.length > 0 ? de : (S || o && a) && G.length > 0 ? G : b || [], [$ == null ? void 0 : $.options, U == null ? void 0 : U.url, de, S, o, a, G, b]), te = m(() => {
|
|
@@ -2852,7 +2852,7 @@ const Uc = ({
|
|
|
2852
2852
|
});
|
|
2853
2853
|
const pe = nt(re, X);
|
|
2854
2854
|
return (pe == null ? void 0 : pe.value) ?? X;
|
|
2855
|
-
}, [X, re]),
|
|
2855
|
+
}, [X, re]), P = T ? `${T}${ea}` : "", ae = F(
|
|
2856
2856
|
(pe, Ae) => {
|
|
2857
2857
|
if (f) {
|
|
2858
2858
|
f(pe, Ae);
|
|
@@ -2867,7 +2867,7 @@ const Uc = ({
|
|
|
2867
2867
|
ie.labelInValue,
|
|
2868
2868
|
ie.mode
|
|
2869
2869
|
);
|
|
2870
|
-
O(K,
|
|
2870
|
+
O(K, P, ge);
|
|
2871
2871
|
}
|
|
2872
2872
|
if (v && (V.current && clearTimeout(V.current), V.current = setTimeout(() => {
|
|
2873
2873
|
V.current = null, se(pe);
|
|
@@ -2876,10 +2876,10 @@ const Uc = ({
|
|
|
2876
2876
|
id: t,
|
|
2877
2877
|
dataSet: C,
|
|
2878
2878
|
dataSetField: T,
|
|
2879
|
-
index:
|
|
2880
|
-
parentIndex:
|
|
2879
|
+
index: j,
|
|
2880
|
+
parentIndex: q
|
|
2881
2881
|
});
|
|
2882
|
-
|
|
2882
|
+
R(M, oe(ge, ee));
|
|
2883
2883
|
}
|
|
2884
2884
|
},
|
|
2885
2885
|
[
|
|
@@ -2894,37 +2894,37 @@ const Uc = ({
|
|
|
2894
2894
|
t,
|
|
2895
2895
|
C,
|
|
2896
2896
|
T,
|
|
2897
|
-
R,
|
|
2898
|
-
P,
|
|
2899
2897
|
j,
|
|
2898
|
+
q,
|
|
2899
|
+
R,
|
|
2900
2900
|
re,
|
|
2901
2901
|
ie.labelInValue,
|
|
2902
2902
|
ie.mode,
|
|
2903
|
-
|
|
2903
|
+
P
|
|
2904
2904
|
]
|
|
2905
2905
|
);
|
|
2906
2906
|
Ce(() => {
|
|
2907
|
-
if (f || !K || !T || !
|
|
2907
|
+
if (f || !K || !T || !P) return;
|
|
2908
2908
|
const pe = Mn(
|
|
2909
2909
|
X,
|
|
2910
2910
|
void 0,
|
|
2911
2911
|
re,
|
|
2912
2912
|
ie.labelInValue,
|
|
2913
2913
|
ie.mode
|
|
2914
|
-
), Ae = _.getState().getDataSet(K,
|
|
2915
|
-
ta(Ae, pe) || O(K,
|
|
2914
|
+
), Ae = _.getState().getDataSet(K, P);
|
|
2915
|
+
ta(Ae, pe) || O(K, P, pe);
|
|
2916
2916
|
}, [
|
|
2917
2917
|
f,
|
|
2918
2918
|
K,
|
|
2919
2919
|
T,
|
|
2920
|
-
|
|
2920
|
+
P,
|
|
2921
2921
|
X,
|
|
2922
2922
|
re,
|
|
2923
2923
|
ie.labelInValue,
|
|
2924
2924
|
ie.mode,
|
|
2925
2925
|
O
|
|
2926
2926
|
]);
|
|
2927
|
-
const Ne =
|
|
2927
|
+
const Ne = F(() => {
|
|
2928
2928
|
d && se(te);
|
|
2929
2929
|
}, [d, se, te]);
|
|
2930
2930
|
Ce(
|
|
@@ -2933,7 +2933,7 @@ const Uc = ({
|
|
|
2933
2933
|
},
|
|
2934
2934
|
[]
|
|
2935
2935
|
);
|
|
2936
|
-
const ve =
|
|
2936
|
+
const ve = F((pe, Ae) => ((Ae == null ? void 0 : Ae.label) ?? "").toLowerCase().includes(pe.toLowerCase()), []);
|
|
2937
2937
|
return /* @__PURE__ */ ye("div", { style: { width: "100%" }, children: [
|
|
2938
2938
|
/* @__PURE__ */ p(
|
|
2939
2939
|
Un,
|
|
@@ -2985,7 +2985,7 @@ const Uc = ({
|
|
|
2985
2985
|
sessionId: e,
|
|
2986
2986
|
id: t,
|
|
2987
2987
|
develop: n
|
|
2988
|
-
}), N = m(() => u !== void 0 ? !!u : (g == null ? void 0 : g.checked) !== void 0 ? g.checked : v ?? h, [u, g == null ? void 0 : g.checked, v, h]), x =
|
|
2988
|
+
}), N = m(() => u !== void 0 ? !!u : (g == null ? void 0 : g.checked) !== void 0 ? g.checked : v ?? h, [u, g == null ? void 0 : g.checked, v, h]), x = F(
|
|
2989
2989
|
(D) => {
|
|
2990
2990
|
if (d) {
|
|
2991
2991
|
d(D);
|
|
@@ -3012,7 +3012,7 @@ const Uc = ({
|
|
|
3012
3012
|
t,
|
|
3013
3013
|
b
|
|
3014
3014
|
]
|
|
3015
|
-
), S =
|
|
3015
|
+
), S = F(() => {
|
|
3016
3016
|
a && A(N);
|
|
3017
3017
|
}, [a, A, N]);
|
|
3018
3018
|
return /* @__PURE__ */ ye("div", { style: { display: "inline-block" }, onBlur: S, children: [
|
|
@@ -3060,7 +3060,7 @@ const Uc = ({
|
|
|
3060
3060
|
sessionId: e,
|
|
3061
3061
|
id: t,
|
|
3062
3062
|
develop: n
|
|
3063
|
-
}), x =
|
|
3063
|
+
}), x = F((C) => {
|
|
3064
3064
|
if (!C) return null;
|
|
3065
3065
|
if (tt.isDayjs(C)) return C;
|
|
3066
3066
|
if (typeof C == "string") {
|
|
@@ -3071,7 +3071,7 @@ const Uc = ({
|
|
|
3071
3071
|
}, [a]), S = m(() => {
|
|
3072
3072
|
const C = A ?? (u == null ? void 0 : u.value) ?? h ?? f;
|
|
3073
3073
|
return x(C);
|
|
3074
|
-
}, [A, u == null ? void 0 : u.value, h, f, x]), D =
|
|
3074
|
+
}, [A, u == null ? void 0 : u.value, h, f, x]), D = F(
|
|
3075
3075
|
(C, T) => {
|
|
3076
3076
|
if (v) {
|
|
3077
3077
|
v(C, T);
|
|
@@ -3079,12 +3079,12 @@ const Uc = ({
|
|
|
3079
3079
|
}
|
|
3080
3080
|
const M = Array.isArray(T) ? T[0] : T;
|
|
3081
3081
|
if (g && r && l(g, r, M), d && w(M), o && e) {
|
|
3082
|
-
const { actionName:
|
|
3082
|
+
const { actionName: R, arg: O } = ke(o, M, {
|
|
3083
3083
|
id: t,
|
|
3084
3084
|
dataSet: i,
|
|
3085
3085
|
dataSetField: r
|
|
3086
3086
|
});
|
|
3087
|
-
y(e, oe(
|
|
3087
|
+
y(e, oe(R, O));
|
|
3088
3088
|
}
|
|
3089
3089
|
},
|
|
3090
3090
|
[v, g, r, l, d, w, o, e, t, y]
|
|
@@ -3095,7 +3095,7 @@ const Uc = ({
|
|
|
3095
3095
|
l(g, r, C);
|
|
3096
3096
|
}
|
|
3097
3097
|
}, [f, S, g, r, l, a]);
|
|
3098
|
-
const E =
|
|
3098
|
+
const E = F(() => {
|
|
3099
3099
|
if (s) {
|
|
3100
3100
|
const C = S ? S.format(a) : null;
|
|
3101
3101
|
w(C);
|
|
@@ -3146,7 +3146,7 @@ const Uc = ({
|
|
|
3146
3146
|
sessionId: e,
|
|
3147
3147
|
id: t,
|
|
3148
3148
|
develop: n
|
|
3149
|
-
}), x =
|
|
3149
|
+
}), x = F((C) => {
|
|
3150
3150
|
if (!C) return null;
|
|
3151
3151
|
if (tt.isDayjs(C)) return C;
|
|
3152
3152
|
if (typeof C == "string") {
|
|
@@ -3154,17 +3154,17 @@ const Uc = ({
|
|
|
3154
3154
|
return T.isValid() ? T : null;
|
|
3155
3155
|
}
|
|
3156
3156
|
return null;
|
|
3157
|
-
}, [a]), S = m(() => x(A ?? s ?? d), [A, s, d, x]), D =
|
|
3157
|
+
}, [a]), S = m(() => x(A ?? s ?? d), [A, s, d, x]), D = F((C, T) => {
|
|
3158
3158
|
if (c) {
|
|
3159
3159
|
c(C, T);
|
|
3160
3160
|
return;
|
|
3161
3161
|
}
|
|
3162
3162
|
const M = T || "";
|
|
3163
3163
|
if (u && r && g(u, r, M), h && w(M), o && e) {
|
|
3164
|
-
const { actionName:
|
|
3165
|
-
y(e, oe(
|
|
3164
|
+
const { actionName: R, arg: O } = ke(o, M, { id: t, dataSet: i, dataSetField: r });
|
|
3165
|
+
y(e, oe(R, O));
|
|
3166
3166
|
}
|
|
3167
|
-
}, [c, u, r, g, h, w, o, e, t, y]), E =
|
|
3167
|
+
}, [c, u, r, g, h, w, o, e, t, y]), E = F(() => {
|
|
3168
3168
|
f && w(S ? S.format(a) : "");
|
|
3169
3169
|
}, [f, w, S, a]), k = N ? "error" : void 0;
|
|
3170
3170
|
return /* @__PURE__ */ ye(St, { children: [
|
|
@@ -3216,33 +3216,33 @@ const Uc = ({
|
|
|
3216
3216
|
sessionId: e,
|
|
3217
3217
|
id: t,
|
|
3218
3218
|
develop: n
|
|
3219
|
-
}), x =
|
|
3219
|
+
}), x = F((C) => {
|
|
3220
3220
|
if (!C || !Array.isArray(C) || C.length !== 2) return null;
|
|
3221
|
-
const [T, M] = C,
|
|
3222
|
-
return
|
|
3221
|
+
const [T, M] = C, R = tt.isDayjs(T) ? T : tt(T, a), O = tt.isDayjs(M) ? M : tt(M, a);
|
|
3222
|
+
return R.isValid() && O.isValid() ? [R, O] : null;
|
|
3223
3223
|
}, [a]), S = m(() => {
|
|
3224
3224
|
const C = A ?? (u == null ? void 0 : u.value) ?? h ?? f;
|
|
3225
3225
|
return x(C);
|
|
3226
3226
|
}, [A, u == null ? void 0 : u.value, h, f, x]), D = m(
|
|
3227
3227
|
() => Fe(b, u ?? void 0),
|
|
3228
3228
|
[b, u]
|
|
3229
|
-
), E =
|
|
3229
|
+
), E = F(
|
|
3230
3230
|
(C, T) => {
|
|
3231
3231
|
if (v) {
|
|
3232
3232
|
v(C, T);
|
|
3233
3233
|
return;
|
|
3234
3234
|
}
|
|
3235
3235
|
if (g && r && l(g, r, T), d && w(T), o && e) {
|
|
3236
|
-
const { actionName: M, arg:
|
|
3236
|
+
const { actionName: M, arg: R } = ke(o, T, {
|
|
3237
3237
|
id: t,
|
|
3238
3238
|
dataSet: i,
|
|
3239
3239
|
dataSetField: r
|
|
3240
3240
|
});
|
|
3241
|
-
y(e, oe(M,
|
|
3241
|
+
y(e, oe(M, R));
|
|
3242
3242
|
}
|
|
3243
3243
|
},
|
|
3244
3244
|
[v, g, r, l, d, w, o, e, t, y]
|
|
3245
|
-
), k =
|
|
3245
|
+
), k = F(() => {
|
|
3246
3246
|
var C, T;
|
|
3247
3247
|
s && w(S ? [(C = S[0]) == null ? void 0 : C.format(a), (T = S[1]) == null ? void 0 : T.format(a)] : null);
|
|
3248
3248
|
}, [s, w, S, a]);
|
|
@@ -3283,7 +3283,7 @@ const Uc = ({
|
|
|
3283
3283
|
remoteUrl: w,
|
|
3284
3284
|
...N
|
|
3285
3285
|
}) => {
|
|
3286
|
-
const x = ot(i, r, e), S = x.dataSet, D = x.dataSetField, E = x.sessionId, k = _((J) => J.addCommand), C = _((J) => J.setDataSet), T = Ge(Pe), M = u ?? (T == null ? void 0 : T.index),
|
|
3286
|
+
const x = ot(i, r, e), S = x.dataSet, D = x.dataSetField, E = x.sessionId, k = _((J) => J.addCommand), C = _((J) => J.setDataSet), T = Ge(Pe), M = u ?? (T == null ? void 0 : T.index), R = T == null ? void 0 : T.parentIndex, O = m(
|
|
3287
3287
|
() => le(E, S),
|
|
3288
3288
|
[E, S]
|
|
3289
3289
|
), V = m(
|
|
@@ -3296,41 +3296,41 @@ const Uc = ({
|
|
|
3296
3296
|
}
|
|
3297
3297
|
), K = _(
|
|
3298
3298
|
(J) => O && D ? J.getDataSet(O, D) : void 0
|
|
3299
|
-
), { validate:
|
|
3299
|
+
), { validate: j, help: q } = ze({
|
|
3300
3300
|
rules: v,
|
|
3301
3301
|
dataSet: S,
|
|
3302
3302
|
dataSetField: D,
|
|
3303
3303
|
sessionId: E,
|
|
3304
3304
|
id: t,
|
|
3305
3305
|
develop: n
|
|
3306
|
-
}), L = m(() => K !== void 0 ? K : (B == null ? void 0 : B.value) !== void 0 ? B.value : y ?? l, [K, B == null ? void 0 : B.value, y, l]), { options: $ } = $t(g), { options:
|
|
3306
|
+
}), L = m(() => K !== void 0 ? K : (B == null ? void 0 : B.value) !== void 0 ? B.value : y ?? l, [K, B == null ? void 0 : B.value, y, l]), { options: $ } = $t(g), { options: z } = hn(
|
|
3307
3307
|
a == null ? void 0 : a.url,
|
|
3308
3308
|
{
|
|
3309
3309
|
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
3310
3310
|
labelKey: (a == null ? void 0 : a.labelKey) || "label",
|
|
3311
3311
|
immediate: !!(a != null && a.url)
|
|
3312
3312
|
}
|
|
3313
|
-
), U = m(() => B != null && B.options ? B.options : a != null && a.url &&
|
|
3313
|
+
), U = m(() => B != null && B.options ? B.options : a != null && a.url && z.length > 0 ? z : g && $.length > 0 ? $ : o, [B == null ? void 0 : B.options, a == null ? void 0 : a.url, z, g, $, o]), G = m(() => {
|
|
3314
3314
|
if (U.length === 0) return L;
|
|
3315
3315
|
const J = nt(U, L);
|
|
3316
3316
|
return (J == null ? void 0 : J.value) ?? L;
|
|
3317
3317
|
}, [L, U]), I = m(
|
|
3318
3318
|
() => Fe(N, B ?? void 0),
|
|
3319
3319
|
[N, B]
|
|
3320
|
-
), de =
|
|
3320
|
+
), de = F(
|
|
3321
3321
|
(J) => {
|
|
3322
3322
|
const se = J.target.value;
|
|
3323
3323
|
if (b) {
|
|
3324
3324
|
b(se);
|
|
3325
3325
|
return;
|
|
3326
3326
|
}
|
|
3327
|
-
if (O && D && C(O, D, se), f &&
|
|
3327
|
+
if (O && D && C(O, D, se), f && j(se), c && E) {
|
|
3328
3328
|
const { actionName: me, arg: X } = ke(c, se, {
|
|
3329
3329
|
id: t,
|
|
3330
3330
|
dataSet: S,
|
|
3331
3331
|
dataSetField: D,
|
|
3332
3332
|
index: M,
|
|
3333
|
-
parentIndex:
|
|
3333
|
+
parentIndex: R
|
|
3334
3334
|
});
|
|
3335
3335
|
k(E, oe(me, X));
|
|
3336
3336
|
}
|
|
@@ -3341,19 +3341,19 @@ const Uc = ({
|
|
|
3341
3341
|
D,
|
|
3342
3342
|
C,
|
|
3343
3343
|
f,
|
|
3344
|
-
|
|
3344
|
+
j,
|
|
3345
3345
|
c,
|
|
3346
3346
|
E,
|
|
3347
3347
|
t,
|
|
3348
3348
|
S,
|
|
3349
3349
|
D,
|
|
3350
3350
|
M,
|
|
3351
|
-
|
|
3351
|
+
R,
|
|
3352
3352
|
k
|
|
3353
3353
|
]
|
|
3354
|
-
), fe =
|
|
3355
|
-
h &&
|
|
3356
|
-
}, [h,
|
|
3354
|
+
), fe = F(() => {
|
|
3355
|
+
h && j(G);
|
|
3356
|
+
}, [h, j, G]);
|
|
3357
3357
|
return /* @__PURE__ */ ye("div", { onBlur: fe, children: [
|
|
3358
3358
|
/* @__PURE__ */ p(
|
|
3359
3359
|
Yt.Group,
|
|
@@ -3374,7 +3374,7 @@ const Uc = ({
|
|
|
3374
3374
|
)
|
|
3375
3375
|
}
|
|
3376
3376
|
),
|
|
3377
|
-
|
|
3377
|
+
q && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: q })
|
|
3378
3378
|
] });
|
|
3379
3379
|
}, Zc = ({
|
|
3380
3380
|
id: t,
|
|
@@ -3402,18 +3402,18 @@ const Uc = ({
|
|
|
3402
3402
|
remoteUrl: x,
|
|
3403
3403
|
...S
|
|
3404
3404
|
}) => {
|
|
3405
|
-
const D = ot(i, r, e), E = D.dataSet, k = D.dataSetField, C = D.sessionId, T = _((re) => re.addCommand), M = _((re) => re.setDataSet),
|
|
3405
|
+
const D = ot(i, r, e), E = D.dataSet, k = D.dataSetField, C = D.sessionId, T = _((re) => re.addCommand), M = _((re) => re.setDataSet), R = Ge(Pe), O = w ?? (R == null ? void 0 : R.index), V = R == null ? void 0 : R.parentIndex, B = m(
|
|
3406
3406
|
() => le(C, E),
|
|
3407
3407
|
[C, E]
|
|
3408
3408
|
), K = m(
|
|
3409
|
-
() => C ? Ot(t,
|
|
3410
|
-
[C, t,
|
|
3411
|
-
),
|
|
3409
|
+
() => C ? Ot(t, R, w) : null,
|
|
3410
|
+
[C, t, R == null ? void 0 : R.parentIndex, R == null ? void 0 : R.index, w]
|
|
3411
|
+
), j = _(
|
|
3412
3412
|
(re) => {
|
|
3413
3413
|
var te;
|
|
3414
3414
|
return K ? ((te = re.propsStore[`${C}_props`]) == null ? void 0 : te[K]) ?? null : null;
|
|
3415
3415
|
}
|
|
3416
|
-
),
|
|
3416
|
+
), q = _(
|
|
3417
3417
|
(re) => B && k ? re.getDataSet(B, k) : void 0
|
|
3418
3418
|
), { validate: L, help: $ } = ze({
|
|
3419
3419
|
rules: d,
|
|
@@ -3422,7 +3422,7 @@ const Uc = ({
|
|
|
3422
3422
|
sessionId: C,
|
|
3423
3423
|
id: t,
|
|
3424
3424
|
develop: n
|
|
3425
|
-
}), { options:
|
|
3425
|
+
}), { options: z } = $t(A), { options: U } = hn(
|
|
3426
3426
|
a == null ? void 0 : a.url,
|
|
3427
3427
|
{
|
|
3428
3428
|
valueKey: (a == null ? void 0 : a.codeKey) || "value",
|
|
@@ -3431,30 +3431,30 @@ const Uc = ({
|
|
|
3431
3431
|
}
|
|
3432
3432
|
), G = m(() => {
|
|
3433
3433
|
if (!c)
|
|
3434
|
-
return
|
|
3435
|
-
}, [c,
|
|
3434
|
+
return q !== void 0 ? !!q : (j == null ? void 0 : j.checked) !== void 0 ? j.checked : y ?? g;
|
|
3435
|
+
}, [c, q, j == null ? void 0 : j.checked, y, g]), I = m(() => j != null && j.options ? j.options : a != null && a.url && U.length > 0 ? U : A && z.length > 0 ? z : o, [j == null ? void 0 : j.options, a == null ? void 0 : a.url, U, A, z, o]), de = m(() => {
|
|
3436
3436
|
if (!c) return [];
|
|
3437
3437
|
let re = [];
|
|
3438
|
-
return Array.isArray(
|
|
3439
|
-
var
|
|
3440
|
-
return ((
|
|
3438
|
+
return Array.isArray(q) ? re = q : Array.isArray(j == null ? void 0 : j.values) ? re = j.values : re = l || [], I.length === 0 ? re : re.map((te) => {
|
|
3439
|
+
var P;
|
|
3440
|
+
return ((P = nt(I, te)) == null ? void 0 : P.value) ?? te;
|
|
3441
3441
|
});
|
|
3442
|
-
}, [c,
|
|
3443
|
-
() => Fe(S,
|
|
3444
|
-
[S,
|
|
3445
|
-
), se = (fe.direction ?? N) === "vertical" ? "vertical" : "horizontal", me =
|
|
3442
|
+
}, [c, q, j == null ? void 0 : j.values, l, I]), fe = m(
|
|
3443
|
+
() => Fe(S, j ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3444
|
+
[S, j]
|
|
3445
|
+
), se = (fe.direction ?? N) === "vertical" ? "vertical" : "horizontal", me = F((re) => {
|
|
3446
3446
|
const te = re.target.checked;
|
|
3447
3447
|
if (f) {
|
|
3448
3448
|
f(te);
|
|
3449
3449
|
return;
|
|
3450
3450
|
}
|
|
3451
3451
|
if (B && k && M(B, k, te), h && L(te), s && C) {
|
|
3452
|
-
const { actionName:
|
|
3452
|
+
const { actionName: P, arg: ae } = ke(s, te, {
|
|
3453
3453
|
id: t,
|
|
3454
3454
|
dataSet: E,
|
|
3455
3455
|
dataSetField: k
|
|
3456
3456
|
}), Ne = typeof ae == "object" && ae !== null ? { ...ae, index: O, parentIndex: V } : ae;
|
|
3457
|
-
T(C, oe(
|
|
3457
|
+
T(C, oe(P, Ne));
|
|
3458
3458
|
}
|
|
3459
3459
|
}, [
|
|
3460
3460
|
f,
|
|
@@ -3470,17 +3470,17 @@ const Uc = ({
|
|
|
3470
3470
|
O,
|
|
3471
3471
|
V,
|
|
3472
3472
|
E
|
|
3473
|
-
]), X =
|
|
3473
|
+
]), X = F((re) => {
|
|
3474
3474
|
if (b) {
|
|
3475
3475
|
b(re);
|
|
3476
3476
|
return;
|
|
3477
3477
|
}
|
|
3478
3478
|
if (B && k && M(B, k, re), h && L(re), s && C) {
|
|
3479
|
-
const { actionName: te, arg:
|
|
3479
|
+
const { actionName: te, arg: P } = ke(s, re, {
|
|
3480
3480
|
id: t,
|
|
3481
3481
|
dataSet: E,
|
|
3482
3482
|
dataSetField: k
|
|
3483
|
-
}), ae = typeof
|
|
3483
|
+
}), ae = typeof P == "object" && P !== null ? { ...P, index: O, parentIndex: V } : P;
|
|
3484
3484
|
T(C, oe(te, ae));
|
|
3485
3485
|
}
|
|
3486
3486
|
}, [
|
|
@@ -3497,13 +3497,13 @@ const Uc = ({
|
|
|
3497
3497
|
O,
|
|
3498
3498
|
V,
|
|
3499
3499
|
E
|
|
3500
|
-
]), ie =
|
|
3500
|
+
]), ie = F(() => {
|
|
3501
3501
|
v && L(c ? de : G);
|
|
3502
3502
|
}, [v, L, c, de, G]);
|
|
3503
3503
|
if (c && I.length > 0) {
|
|
3504
|
-
const { indeterminate: re, direction: te, ...
|
|
3504
|
+
const { indeterminate: re, direction: te, ...P } = fe;
|
|
3505
3505
|
return /* @__PURE__ */ ye("div", { onBlur: ie, children: [
|
|
3506
|
-
/* @__PURE__ */ p(bt.Group, { ...
|
|
3506
|
+
/* @__PURE__ */ p(bt.Group, { ...P, value: de, onChange: X, disabled: n ? !1 : fe.disabled, children: /* @__PURE__ */ p(
|
|
3507
3507
|
_e,
|
|
3508
3508
|
{
|
|
3509
3509
|
orientation: se,
|
|
@@ -3559,7 +3559,7 @@ const Uc = ({
|
|
|
3559
3559
|
sessionId: e,
|
|
3560
3560
|
id: t,
|
|
3561
3561
|
develop: n
|
|
3562
|
-
}), N = m(() => u !== void 0 ? u : (g == null ? void 0 : g.value) !== void 0 ? g.value : v ?? h, [u, g == null ? void 0 : g.value, v, h]), x =
|
|
3562
|
+
}), N = m(() => u !== void 0 ? u : (g == null ? void 0 : g.value) !== void 0 ? g.value : v ?? h, [u, g == null ? void 0 : g.value, v, h]), x = F(
|
|
3563
3563
|
(E) => {
|
|
3564
3564
|
if (d) {
|
|
3565
3565
|
d(E);
|
|
@@ -3575,7 +3575,7 @@ const Uc = ({
|
|
|
3575
3575
|
}
|
|
3576
3576
|
},
|
|
3577
3577
|
[d, l, r, y, s, A, o, e, t, b]
|
|
3578
|
-
), S =
|
|
3578
|
+
), S = F(() => {
|
|
3579
3579
|
c && A(N);
|
|
3580
3580
|
}, [c, A, N]), D = m(
|
|
3581
3581
|
() => Fe(f, g ?? void 0),
|
|
@@ -3610,7 +3610,7 @@ const Uc = ({
|
|
|
3610
3610
|
[e, i]
|
|
3611
3611
|
), y = m(() => {
|
|
3612
3612
|
if (b && r) return h(b, r);
|
|
3613
|
-
}, [b, r, h]), l = m(() => y ?? c ?? s, [y, c, s]), g =
|
|
3613
|
+
}, [b, r, h]), l = m(() => y ?? c ?? s, [y, c, s]), g = F((u) => {
|
|
3614
3614
|
if (a) {
|
|
3615
3615
|
a(u);
|
|
3616
3616
|
return;
|
|
@@ -3675,38 +3675,38 @@ const Uc = ({
|
|
|
3675
3675
|
sessionId: e,
|
|
3676
3676
|
id: t,
|
|
3677
3677
|
develop: n
|
|
3678
|
-
}), M = m(() => (o == null ? void 0 : o.url) && w.length > 0, [o == null ? void 0 : o.url, w.length]),
|
|
3678
|
+
}), M = m(() => (o == null ? void 0 : o.url) && w.length > 0, [o == null ? void 0 : o.url, w.length]), R = m(() => {
|
|
3679
3679
|
let K = E ?? b ?? f ?? [];
|
|
3680
|
-
return typeof K == "string" ? M ? Rn(K).map((
|
|
3680
|
+
return typeof K == "string" ? M ? Rn(K).map((q) => ia(q, w)).filter((q) => Array.isArray(q) && q.length > 0) : [K] : jn(K) && M ? K.map((q) => Rn(q)).filter((q) => Array.isArray(q) && q.length > 0) : Bn(K) && M ? K.filter((j) => Array.isArray(j) && j.length > 0) : K;
|
|
3681
3681
|
}, [E, b, f, M, w]), O = m(() => o != null && o.url && w.length > 0 ? w : h || [], [o == null ? void 0 : o.url, w, h]);
|
|
3682
3682
|
Ce(() => {
|
|
3683
3683
|
(async () => {
|
|
3684
3684
|
if (o != null && o.url) {
|
|
3685
3685
|
S(!0);
|
|
3686
3686
|
try {
|
|
3687
|
-
const
|
|
3687
|
+
const j = await mt({ url: o.url, method: "GET" }), q = Array.isArray(j) ? j : j != null && j.data ? Array.isArray(j.data) ? j.data : j.data.list || j.data.records || [] : [], L = o.codeKey || "value", $ = o.labelKey || "label", z = o.childrenKey || "children", U = o.maxLevel || 5, G = gr(q, {
|
|
3688
3688
|
codeKey: L,
|
|
3689
3689
|
labelKey: $,
|
|
3690
|
-
childrenKey:
|
|
3690
|
+
childrenKey: z,
|
|
3691
3691
|
maxLevel: U
|
|
3692
3692
|
});
|
|
3693
3693
|
N(G);
|
|
3694
|
-
} catch (
|
|
3695
|
-
console.error("Failed to load remote options:",
|
|
3694
|
+
} catch (j) {
|
|
3695
|
+
console.error("Failed to load remote options:", j), N([]);
|
|
3696
3696
|
} finally {
|
|
3697
3697
|
S(!1);
|
|
3698
3698
|
}
|
|
3699
3699
|
}
|
|
3700
3700
|
})();
|
|
3701
3701
|
}, [o == null ? void 0 : o.url, o == null ? void 0 : o.codeKey, o == null ? void 0 : o.labelKey, o == null ? void 0 : o.childrenKey, o == null ? void 0 : o.maxLevel]);
|
|
3702
|
-
const V =
|
|
3703
|
-
(K,
|
|
3702
|
+
const V = F(
|
|
3703
|
+
(K, j) => {
|
|
3704
3704
|
if (v) {
|
|
3705
|
-
v(K,
|
|
3705
|
+
v(K, j);
|
|
3706
3706
|
return;
|
|
3707
3707
|
}
|
|
3708
|
-
let
|
|
3709
|
-
if (jn(K) && M ?
|
|
3708
|
+
let q = K;
|
|
3709
|
+
if (jn(K) && M ? q = String(K[K.length - 1] || "") : Bn(K) && M && (q = K.map((L) => L.join(","))), D && r && u(D, r, q), s && (A.current && clearTimeout(A.current), A.current = setTimeout(() => {
|
|
3710
3710
|
A.current = null, k(K);
|
|
3711
3711
|
}, ra)), d && e) {
|
|
3712
3712
|
const { actionName: L, arg: $ } = ke(d, K, {
|
|
@@ -3730,9 +3730,9 @@ const Uc = ({
|
|
|
3730
3730
|
g,
|
|
3731
3731
|
M
|
|
3732
3732
|
]
|
|
3733
|
-
), B =
|
|
3734
|
-
c && k(
|
|
3735
|
-
}, [c, k,
|
|
3733
|
+
), B = F(() => {
|
|
3734
|
+
c && k(R);
|
|
3735
|
+
}, [c, k, R]);
|
|
3736
3736
|
return Ce(
|
|
3737
3737
|
() => () => {
|
|
3738
3738
|
A.current && clearTimeout(A.current);
|
|
@@ -3745,7 +3745,7 @@ const Uc = ({
|
|
|
3745
3745
|
...l,
|
|
3746
3746
|
disabled: n ? !1 : l.disabled,
|
|
3747
3747
|
open: n ? !1 : void 0,
|
|
3748
|
-
value:
|
|
3748
|
+
value: R,
|
|
3749
3749
|
options: O,
|
|
3750
3750
|
onChange: V,
|
|
3751
3751
|
onBlur: B,
|
|
@@ -3777,16 +3777,16 @@ const Uc = ({
|
|
|
3777
3777
|
validateOnBlur: u,
|
|
3778
3778
|
...A
|
|
3779
3779
|
}) => {
|
|
3780
|
-
const w = _((
|
|
3780
|
+
const w = _((j) => j.addCommand), N = _((j) => j.setDataSet), x = m(
|
|
3781
3781
|
() => le(e, i),
|
|
3782
3782
|
[e, i]
|
|
3783
3783
|
), S = _(
|
|
3784
|
-
(
|
|
3785
|
-
var
|
|
3786
|
-
return e && t ? ((
|
|
3784
|
+
(j) => {
|
|
3785
|
+
var q;
|
|
3786
|
+
return e && t ? ((q = j.propsStore[`${e}_props`]) == null ? void 0 : q[t]) ?? null : null;
|
|
3787
3787
|
}
|
|
3788
3788
|
), D = _(
|
|
3789
|
-
(
|
|
3789
|
+
(j) => x && r ? j.getDataSet(x, r) : void 0
|
|
3790
3790
|
), { validate: E, help: k } = ze({
|
|
3791
3791
|
rules: l,
|
|
3792
3792
|
dataSet: i,
|
|
@@ -3800,30 +3800,30 @@ const Uc = ({
|
|
|
3800
3800
|
), T = m(
|
|
3801
3801
|
() => Fe(A, S ?? void 0),
|
|
3802
3802
|
[A, S]
|
|
3803
|
-
), M =
|
|
3804
|
-
(
|
|
3803
|
+
), M = F(
|
|
3804
|
+
(j, q, L) => {
|
|
3805
3805
|
if (a) {
|
|
3806
|
-
a(
|
|
3806
|
+
a(j, q, L);
|
|
3807
3807
|
return;
|
|
3808
3808
|
}
|
|
3809
|
-
if (x && r && N(x, r,
|
|
3810
|
-
const { actionName: $, arg:
|
|
3809
|
+
if (x && r && N(x, r, j), g && E(j), o && e) {
|
|
3810
|
+
const { actionName: $, arg: z } = ke(o, j, {
|
|
3811
3811
|
id: t,
|
|
3812
3812
|
dataSet: i,
|
|
3813
3813
|
dataSetField: r
|
|
3814
3814
|
});
|
|
3815
|
-
w(e, oe($,
|
|
3815
|
+
w(e, oe($, z));
|
|
3816
3816
|
}
|
|
3817
3817
|
},
|
|
3818
3818
|
[a, x, r, N, g, E, o, e, t, w]
|
|
3819
|
-
),
|
|
3819
|
+
), R = F(() => {
|
|
3820
3820
|
u && E(C);
|
|
3821
3821
|
}, [u, E, C]), O = m(() => {
|
|
3822
3822
|
if (!y) return;
|
|
3823
|
-
const
|
|
3824
|
-
return Object.entries(y).forEach(([
|
|
3825
|
-
L !== "" && L !== void 0 && L !== null && (
|
|
3826
|
-
}), Object.keys(
|
|
3823
|
+
const j = {};
|
|
3824
|
+
return Object.entries(y).forEach(([q, L]) => {
|
|
3825
|
+
L !== "" && L !== void 0 && L !== null && (j[q] = L);
|
|
3826
|
+
}), Object.keys(j).length > 0 ? j : void 0;
|
|
3827
3827
|
}, [y]), V = m(() => {
|
|
3828
3828
|
if (O)
|
|
3829
3829
|
return {
|
|
@@ -3831,7 +3831,7 @@ const Uc = ({
|
|
|
3831
3831
|
TreeSelect: O
|
|
3832
3832
|
}
|
|
3833
3833
|
};
|
|
3834
|
-
}, [O]), B = k ? "error" : void 0, K = /* @__PURE__ */ ye("div", { onBlur:
|
|
3834
|
+
}, [O]), B = k ? "error" : void 0, K = /* @__PURE__ */ ye("div", { onBlur: R, children: [
|
|
3835
3835
|
/* @__PURE__ */ p(
|
|
3836
3836
|
jr,
|
|
3837
3837
|
{
|
|
@@ -3881,17 +3881,17 @@ const Uc = ({
|
|
|
3881
3881
|
}
|
|
3882
3882
|
), T = _(
|
|
3883
3883
|
(ee) => k && x ? ee.getDataSet(k, x) : void 0
|
|
3884
|
-
), { validate: M, help:
|
|
3884
|
+
), { validate: M, help: R } = ze({
|
|
3885
3885
|
rules: c,
|
|
3886
3886
|
dataSet: N,
|
|
3887
3887
|
dataSetField: x,
|
|
3888
3888
|
sessionId: S,
|
|
3889
3889
|
id: t,
|
|
3890
3890
|
develop: n
|
|
3891
|
-
}), O =
|
|
3891
|
+
}), O = F((ee) => ee.map((ne) => {
|
|
3892
3892
|
var Se;
|
|
3893
3893
|
return ((Se = ne == null ? void 0 : ne.response) == null ? void 0 : Se.src) ?? (ne == null ? void 0 : ne.src) ?? (ne == null ? void 0 : ne.url) ?? (ne == null ? void 0 : ne.thumbUrl) ?? "";
|
|
3894
|
-
}).filter((ne) => ne && typeof ne == "string"), []), V =
|
|
3894
|
+
}).filter((ne) => ne && typeof ne == "string"), []), V = F((ee) => {
|
|
3895
3895
|
const ne = Ie().viewRes, Se = (H) => (ne ? ne(H) : H) || H;
|
|
3896
3896
|
return ee.map((H, Z) => {
|
|
3897
3897
|
const ce = Se(H);
|
|
@@ -3904,7 +3904,7 @@ const Uc = ({
|
|
|
3904
3904
|
response: { src: H }
|
|
3905
3905
|
};
|
|
3906
3906
|
});
|
|
3907
|
-
}, []), B =
|
|
3907
|
+
}, []), B = F((ee) => {
|
|
3908
3908
|
const ne = Ie().viewRes, Se = (H) => (H && ne ? ne(H) : H) || H;
|
|
3909
3909
|
return ee.map((H) => {
|
|
3910
3910
|
var W;
|
|
@@ -3915,19 +3915,19 @@ const Uc = ({
|
|
|
3915
3915
|
}
|
|
3916
3916
|
return ce && typeof ce == "string" && (Y.url = ce, Y.thumbUrl = ce), Y;
|
|
3917
3917
|
});
|
|
3918
|
-
}, []), [K,
|
|
3918
|
+
}, []), [K, j] = we(null), q = m(() => {
|
|
3919
3919
|
const ee = T ?? (C == null ? void 0 : C.fileList) ?? h;
|
|
3920
3920
|
if (ee != null) {
|
|
3921
3921
|
if (typeof ee == "string" && ee) return V([ee]);
|
|
3922
3922
|
if (Array.isArray(ee))
|
|
3923
3923
|
return ee.length > 0 && typeof ee[0] == "string" ? V(ee) : B(ee);
|
|
3924
3924
|
}
|
|
3925
|
-
}, [T, C == null ? void 0 : C.fileList, h, V, B]), L = K ??
|
|
3925
|
+
}, [T, C == null ? void 0 : C.fileList, h, V, B]), L = K ?? q, $ = m(
|
|
3926
3926
|
() => Fe(A, C ?? void 0, {
|
|
3927
3927
|
skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
|
|
3928
3928
|
}),
|
|
3929
3929
|
[A, C]
|
|
3930
|
-
),
|
|
3930
|
+
), z = F((ee) => ee.size / 1024 / 1024 < y ? !0 : (Bt.error(`文件大小不能超过 ${y}MB`), !1), [y]), U = F(async (ee) => {
|
|
3931
3931
|
const { file: ne, onSuccess: Se, onError: H, onProgress: Z } = ee;
|
|
3932
3932
|
if (Ie().upload)
|
|
3933
3933
|
try {
|
|
@@ -3946,14 +3946,14 @@ const Uc = ({
|
|
|
3946
3946
|
}
|
|
3947
3947
|
else
|
|
3948
3948
|
H == null || H(new Error("Upload handler not configured")), Bt.warning("上传功能未配置");
|
|
3949
|
-
}, [b, l]), G =
|
|
3949
|
+
}, [b, l]), G = F(
|
|
3950
3950
|
(ee) => {
|
|
3951
3951
|
if (v) {
|
|
3952
3952
|
v(ee);
|
|
3953
3953
|
return;
|
|
3954
3954
|
}
|
|
3955
3955
|
const ne = Array.isArray(ee.fileList) ? B(ee.fileList) : ee.fileList, Se = Array.isArray(ne) ? O(ne) : [], H = Array.isArray(ne) && ne.some((ce) => (ce == null ? void 0 : ce.status) === "uploading");
|
|
3956
|
-
k && x && (Se.length > 0 || !Array.isArray(ne) || ne.length === 0) ? (E(k, x, Se),
|
|
3956
|
+
k && x && (Se.length > 0 || !Array.isArray(ne) || ne.length === 0) ? (E(k, x, Se), j(null)) : H ? j(ne) : ne.length === 0 && j(null), d && M(ne), o && S && D(
|
|
3957
3957
|
S,
|
|
3958
3958
|
oe(o, {
|
|
3959
3959
|
file: ee.file,
|
|
@@ -3975,15 +3975,15 @@ const Uc = ({
|
|
|
3975
3975
|
B,
|
|
3976
3976
|
O
|
|
3977
3977
|
]
|
|
3978
|
-
), I =
|
|
3978
|
+
), I = F(() => {
|
|
3979
3979
|
s && M(L);
|
|
3980
|
-
}, [s, M, L]), de =
|
|
3980
|
+
}, [s, M, L]), de = F((ee) => {
|
|
3981
3981
|
var ce;
|
|
3982
3982
|
const ne = ee.url || ee.thumbUrl;
|
|
3983
3983
|
if (!ne) return "";
|
|
3984
3984
|
const Se = ((ce = ee.response) == null ? void 0 : ce.src) ?? (typeof ne == "string" ? ne : ""), H = Ie().viewRes, Z = Se && H ? H(Se) : ne;
|
|
3985
3985
|
return String(Z).replace(/([?&])download=1(&|$)/, (Y, W, ue) => ue ? W : "");
|
|
3986
|
-
}, []), fe =
|
|
3986
|
+
}, []), fe = F((ee) => {
|
|
3987
3987
|
var H, Z;
|
|
3988
3988
|
const ne = ((H = ee.response) == null ? void 0 : H.src) ?? ee.name ?? "", Se = ((Z = String(ne).split(".").pop()) == null ? void 0 : Z.toLowerCase()) || "";
|
|
3989
3989
|
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(Se) || /^data:image\//.test(de(ee));
|
|
@@ -3993,19 +3993,19 @@ const Uc = ({
|
|
|
3993
3993
|
urls: [],
|
|
3994
3994
|
current: 0,
|
|
3995
3995
|
open: !1
|
|
3996
|
-
}), me =
|
|
3996
|
+
}), me = F((ee) => {
|
|
3997
3997
|
const ne = de(ee);
|
|
3998
3998
|
if (ne)
|
|
3999
3999
|
if (fe(ee) && (L != null && L.length)) {
|
|
4000
4000
|
const Se = L.filter((ce) => fe(ce)), H = Se.map((ce) => de(ce)).filter(Boolean), Z = Se.findIndex((ce) => (ce.uid || ce.url) === (ee.uid || ee.url));
|
|
4001
4001
|
se({ url: ne, name: ee.name, urls: H, current: Z >= 0 ? Z : 0, open: !0 });
|
|
4002
4002
|
} else fe(ee) || window.open(ne, "_blank");
|
|
4003
|
-
}, [de, fe, L]), ie = !!Ie().upload && !u, re = $, te = re.buttonText ?? a,
|
|
4003
|
+
}, [de, fe, L]), ie = !!Ie().upload && !u, re = $, te = re.buttonText ?? a, P = re.listType ?? A.listType, ae = String((C == null ? void 0 : C.listDisplayText) ?? g ?? "").trim(), Ne = m(() => {
|
|
4004
4004
|
const ee = re.showUploadList;
|
|
4005
|
-
return
|
|
4006
|
-
}, [L,
|
|
4007
|
-
(ee) => Ae ? (Bt.warning(`最多只能上传 ${ve} 个文件`), !1) :
|
|
4008
|
-
[Ae, ve,
|
|
4005
|
+
return P !== "text" || ee === !1 || !ae || !(L != null && L.length) ? L : L.map((ne) => ({ ...ne, name: ae }));
|
|
4006
|
+
}, [L, P, re.showUploadList, ae]), ve = re.maxCount, pe = (L == null ? void 0 : L.length) ?? 0, Ae = typeof ve == "number" && pe >= ve, ge = F(
|
|
4007
|
+
(ee) => Ae ? (Bt.warning(`最多只能上传 ${ve} 个文件`), !1) : z(ee),
|
|
4008
|
+
[Ae, ve, z]
|
|
4009
4009
|
);
|
|
4010
4010
|
return /* @__PURE__ */ ye("div", { onBlur: I, children: [
|
|
4011
4011
|
/* @__PURE__ */ p(
|
|
@@ -4020,13 +4020,13 @@ const Uc = ({
|
|
|
4020
4020
|
customRequest: ie ? U : void 0,
|
|
4021
4021
|
action: ie ? void 0 : u || b,
|
|
4022
4022
|
openFileDialogOnClick: !n,
|
|
4023
|
-
children: !Ae && (f || (
|
|
4023
|
+
children: !Ae && (f || (P === "picture-card" || P === "picture-circle" ? /* @__PURE__ */ ye("button", { style: { border: 0, background: "none" }, type: "button", children: [
|
|
4024
4024
|
/* @__PURE__ */ p(nr, {}),
|
|
4025
4025
|
/* @__PURE__ */ p("div", { style: { marginTop: 8 }, children: te })
|
|
4026
4026
|
] }) : /* @__PURE__ */ p(st, { icon: /* @__PURE__ */ p(hi, {}), children: te })))
|
|
4027
4027
|
}
|
|
4028
4028
|
),
|
|
4029
|
-
|
|
4029
|
+
R && /* @__PURE__ */ p("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: R }),
|
|
4030
4030
|
J.url && /* @__PURE__ */ p("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: J.urls.length > 1 ? /* @__PURE__ */ p(
|
|
4031
4031
|
at.PreviewGroup,
|
|
4032
4032
|
{
|
|
@@ -4084,7 +4084,7 @@ const Uc = ({
|
|
|
4084
4084
|
[e, i]
|
|
4085
4085
|
), [N, x] = we(h || []), [, S] = we(!1), D = Le.useRef(void 0), { get: E } = So(), k = m(() => {
|
|
4086
4086
|
if (w && r) return u(w, r);
|
|
4087
|
-
}, [w, r, u]), C = m(() => k ?? d ?? v, [k, d, v]), T =
|
|
4087
|
+
}, [w, r, u]), C = m(() => k ?? d ?? v, [k, d, v]), T = F((O) => {
|
|
4088
4088
|
if (!(b != null && b.queryApi)) {
|
|
4089
4089
|
h && x(
|
|
4090
4090
|
h.filter(
|
|
@@ -4100,16 +4100,16 @@ const Uc = ({
|
|
|
4100
4100
|
if (b != null && b.queryApi) {
|
|
4101
4101
|
S(!0);
|
|
4102
4102
|
try {
|
|
4103
|
-
const { queryApi: V, keyWordParamName: B = "keyword", valueKey: K = "value", labelKey:
|
|
4104
|
-
B && (L[B] = O), Array.isArray(
|
|
4103
|
+
const { queryApi: V, keyWordParamName: B = "keyword", valueKey: K = "value", labelKey: j = "label", fixedParams: q = [] } = b, L = {};
|
|
4104
|
+
B && (L[B] = O), Array.isArray(q) && q.forEach((G) => {
|
|
4105
4105
|
G.key && (L[G.key] = G.value);
|
|
4106
4106
|
});
|
|
4107
4107
|
const $ = await E(V, L);
|
|
4108
|
-
let
|
|
4109
|
-
Array.isArray($) ?
|
|
4110
|
-
const U =
|
|
4108
|
+
let z = [];
|
|
4109
|
+
Array.isArray($) ? z = $ : $ && Array.isArray($.data) ? z = $.data : $ && $.data && Array.isArray($.data.records) ? z = $.data.records : $ && $.result && Array.isArray($.result) && (z = $.result);
|
|
4110
|
+
const U = z.map((G) => ({
|
|
4111
4111
|
value: G[K],
|
|
4112
|
-
label: G[
|
|
4112
|
+
label: G[j] || G[K],
|
|
4113
4113
|
...G
|
|
4114
4114
|
}));
|
|
4115
4115
|
x(U);
|
|
@@ -4124,7 +4124,7 @@ const Uc = ({
|
|
|
4124
4124
|
Le.useEffect(() => {
|
|
4125
4125
|
!(b != null && b.queryApi) && h && x(h);
|
|
4126
4126
|
}, [h, b == null ? void 0 : b.queryApi]);
|
|
4127
|
-
const M =
|
|
4127
|
+
const M = F((O) => {
|
|
4128
4128
|
if (c) {
|
|
4129
4129
|
c(O);
|
|
4130
4130
|
return;
|
|
@@ -4133,7 +4133,7 @@ const Uc = ({
|
|
|
4133
4133
|
const { actionName: V, arg: B } = ke(o, O, { id: t, dataSet: i, dataSetField: r });
|
|
4134
4134
|
g(e, oe(V, B));
|
|
4135
4135
|
}
|
|
4136
|
-
}, [c, w, r, A, o, e, t, g]),
|
|
4136
|
+
}, [c, w, r, A, o, e, t, g]), R = F((O, V) => {
|
|
4137
4137
|
if (s) {
|
|
4138
4138
|
s(O, V);
|
|
4139
4139
|
return;
|
|
@@ -4149,7 +4149,7 @@ const Uc = ({
|
|
|
4149
4149
|
options: N,
|
|
4150
4150
|
value: C,
|
|
4151
4151
|
onChange: M,
|
|
4152
|
-
onSelect:
|
|
4152
|
+
onSelect: R,
|
|
4153
4153
|
onSearch: T,
|
|
4154
4154
|
style: { width: "100%", ...l.style }
|
|
4155
4155
|
}
|
|
@@ -4239,38 +4239,38 @@ const Uc = ({
|
|
|
4239
4239
|
token: C,
|
|
4240
4240
|
...T
|
|
4241
4241
|
}) => {
|
|
4242
|
-
const M = _((ie) => ie.addCommand),
|
|
4242
|
+
const M = _((ie) => ie.addCommand), R = _((ie) => ie.getDataSet), O = _((ie) => ie.setDataSet), V = m(
|
|
4243
4243
|
() => le(e, i),
|
|
4244
4244
|
[e, i]
|
|
4245
|
-
), B = m(() => Ye(k, {}), [k]), K = m(() => Ye(C, {}), [C]),
|
|
4245
|
+
), B = m(() => Ye(k, {}), [k]), K = m(() => Ye(C, {}), [C]), j = m(() => Ye(y, ["源列表", "目标列表"]), [y]), q = m(() => Ye(l, [">", "<"]), [l]), L = m(() => Ye(g, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [g]), $ = m(() => Ye(f, !1), [f]), z = m(() => {
|
|
4246
4246
|
if (V && r) {
|
|
4247
|
-
const ie =
|
|
4247
|
+
const ie = R(V, r);
|
|
4248
4248
|
if (Array.isArray(ie)) return ie;
|
|
4249
4249
|
}
|
|
4250
|
-
}, [V, r,
|
|
4250
|
+
}, [V, r, R]), U = m(() => {
|
|
4251
4251
|
if (V && r) {
|
|
4252
|
-
const ie =
|
|
4252
|
+
const ie = R(V, `${r}.dataSource`);
|
|
4253
4253
|
if (Array.isArray(ie)) return ie;
|
|
4254
4254
|
}
|
|
4255
|
-
}, [V, r,
|
|
4255
|
+
}, [V, r, R]), G = m(() => n ? U ?? Ye(o, []) : V ? U ?? [] : Ye(o, []), [n, V, U, o]), I = m(() => n ? z ?? Ye(a, []) : V ? z ?? [] : Ye(a, []), [n, V, z, a]), de = m(() => Ye(c, []), [c]), fe = F((ie, re, te) => {
|
|
4256
4256
|
if (x) {
|
|
4257
4257
|
x(ie, re, te);
|
|
4258
4258
|
return;
|
|
4259
4259
|
}
|
|
4260
4260
|
V && r && O(V, r, ie), u && e && M(e, oe(u, { targetKeys: ie, direction: re, moveKeys: te }));
|
|
4261
|
-
}, [x, V, r, O, u, e, M]), J =
|
|
4261
|
+
}, [x, V, r, O, u, e, M]), J = F((ie, re) => {
|
|
4262
4262
|
if (S) {
|
|
4263
4263
|
S(ie, re);
|
|
4264
4264
|
return;
|
|
4265
4265
|
}
|
|
4266
4266
|
A && e && M(e, oe(A, { sourceSelectedKeys: ie, targetSelectedKeys: re }));
|
|
4267
|
-
}, [S, A, e, M]), se =
|
|
4267
|
+
}, [S, A, e, M]), se = F((ie, re) => {
|
|
4268
4268
|
if (D) {
|
|
4269
4269
|
D(ie, re);
|
|
4270
4270
|
return;
|
|
4271
4271
|
}
|
|
4272
4272
|
w && e && M(e, oe(w, { direction: ie, value: re }));
|
|
4273
|
-
}, [D, w, e, M]), me =
|
|
4273
|
+
}, [D, w, e, M]), me = F((ie, re) => {
|
|
4274
4274
|
if (E) {
|
|
4275
4275
|
E(ie, re);
|
|
4276
4276
|
return;
|
|
@@ -4288,8 +4288,8 @@ const Uc = ({
|
|
|
4288
4288
|
oneWay: h,
|
|
4289
4289
|
pagination: $,
|
|
4290
4290
|
status: b || void 0,
|
|
4291
|
-
titles:
|
|
4292
|
-
actions:
|
|
4291
|
+
titles: j,
|
|
4292
|
+
actions: q,
|
|
4293
4293
|
locale: L,
|
|
4294
4294
|
onChange: fe,
|
|
4295
4295
|
onSelectChange: J,
|
|
@@ -4343,16 +4343,16 @@ const Uc = ({
|
|
|
4343
4343
|
token: g,
|
|
4344
4344
|
...u
|
|
4345
4345
|
}) => {
|
|
4346
|
-
const A = _((
|
|
4346
|
+
const A = _((R) => R.addCommand), w = _((R) => R.getDataSet), N = _((R) => R.setDataSet), x = m(
|
|
4347
4347
|
() => le(e, i),
|
|
4348
4348
|
[e, i]
|
|
4349
4349
|
), S = m(() => dn(l, {}), [l]), D = m(() => dn(g, {}), [g]), E = m(() => aa(o), [o]), C = m(() => {
|
|
4350
4350
|
if (x && r) {
|
|
4351
|
-
const
|
|
4352
|
-
if (typeof
|
|
4351
|
+
const R = w(x, r);
|
|
4352
|
+
if (typeof R == "string") return R;
|
|
4353
4353
|
}
|
|
4354
|
-
}, [x, r, w]) ?? a, T =
|
|
4355
|
-
const O = String(
|
|
4354
|
+
}, [x, r, w]) ?? a, T = F((R) => {
|
|
4355
|
+
const O = String(R);
|
|
4356
4356
|
if (y) {
|
|
4357
4357
|
y(O);
|
|
4358
4358
|
return;
|
|
@@ -4647,81 +4647,81 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4647
4647
|
Ce(() => {
|
|
4648
4648
|
t && (b(n), l([...i]), u(a), w(s));
|
|
4649
4649
|
}, [t, n, i, a, s]);
|
|
4650
|
-
const S =
|
|
4650
|
+
const S = F(
|
|
4651
4651
|
($) => {
|
|
4652
4652
|
queueMicrotask(() => v($));
|
|
4653
4653
|
},
|
|
4654
4654
|
[v]
|
|
4655
|
-
), D =
|
|
4656
|
-
($,
|
|
4655
|
+
), D = F(
|
|
4656
|
+
($, z, U, G) => Ln($, z, U ?? g, G ?? A),
|
|
4657
4657
|
[g, A]
|
|
4658
|
-
), E =
|
|
4658
|
+
), E = F(() => {
|
|
4659
4659
|
b(r);
|
|
4660
|
-
const $ = o.map((
|
|
4660
|
+
const $ = o.map((z) => ({ ...z }));
|
|
4661
4661
|
l($), u(c), w(d), S(Ln(r, $, c, d));
|
|
4662
|
-
}, [r, o, c, d, S]), k =
|
|
4662
|
+
}, [r, o, c, d, S]), k = F(
|
|
4663
4663
|
($) => {
|
|
4664
|
-
l((
|
|
4665
|
-
const U =
|
|
4664
|
+
l((z) => {
|
|
4665
|
+
const U = z.map((G) => G.key === $ ? { ...G, visible: !G.visible } : G);
|
|
4666
4666
|
return S(D(f, U)), U;
|
|
4667
4667
|
});
|
|
4668
4668
|
},
|
|
4669
4669
|
[f, D, S]
|
|
4670
|
-
), C =
|
|
4671
|
-
($,
|
|
4670
|
+
), C = F(
|
|
4671
|
+
($, z) => {
|
|
4672
4672
|
l((U) => {
|
|
4673
|
-
const G = U.map((I) => I.key === $ ? { ...I, fixed:
|
|
4673
|
+
const G = U.map((I) => I.key === $ ? { ...I, fixed: z } : I);
|
|
4674
4674
|
return S(D(f, G)), G;
|
|
4675
4675
|
});
|
|
4676
4676
|
},
|
|
4677
4677
|
[f, D, S]
|
|
4678
|
-
), T =
|
|
4679
|
-
($,
|
|
4678
|
+
), T = F(
|
|
4679
|
+
($, z) => {
|
|
4680
4680
|
l((U) => {
|
|
4681
|
-
const G = U.map((I) => I.key === $ ? { ...I, width:
|
|
4681
|
+
const G = U.map((I) => I.key === $ ? { ...I, width: z } : I);
|
|
4682
4682
|
return S(D(f, G)), G;
|
|
4683
4683
|
});
|
|
4684
4684
|
},
|
|
4685
4685
|
[f, D, S]
|
|
4686
|
-
), M =
|
|
4687
|
-
($,
|
|
4686
|
+
), M = F(
|
|
4687
|
+
($, z) => {
|
|
4688
4688
|
l((U) => {
|
|
4689
4689
|
const G = U.find((J) => J.key === $);
|
|
4690
4690
|
if (!G) return U;
|
|
4691
|
-
const I = typeof G.width == "number" ? G.width : 80, de = Math.max(Gt, I +
|
|
4691
|
+
const I = typeof G.width == "number" ? G.width : 80, de = Math.max(Gt, I + z), fe = U.map((J) => J.key === $ ? { ...J, width: de } : J);
|
|
4692
4692
|
return S(D(f, fe)), fe;
|
|
4693
4693
|
});
|
|
4694
4694
|
},
|
|
4695
4695
|
[f, D, S]
|
|
4696
|
-
),
|
|
4697
|
-
($,
|
|
4698
|
-
if (
|
|
4696
|
+
), R = F(
|
|
4697
|
+
($, z) => {
|
|
4698
|
+
if (z < 0 || z >= y.length) return;
|
|
4699
4699
|
const U = [...y], [G] = U.splice($, 1);
|
|
4700
|
-
U.splice(
|
|
4700
|
+
U.splice(z, 0, G), l(U), S(D(f, U));
|
|
4701
4701
|
},
|
|
4702
4702
|
[y, f, D, S]
|
|
4703
|
-
), O =
|
|
4703
|
+
), O = F(
|
|
4704
4704
|
($) => {
|
|
4705
4705
|
b($), S(D($, y));
|
|
4706
4706
|
},
|
|
4707
4707
|
[y, D, S]
|
|
4708
|
-
), V =
|
|
4708
|
+
), V = F(
|
|
4709
4709
|
($) => {
|
|
4710
4710
|
u($), S(D(f, y, $, A));
|
|
4711
4711
|
},
|
|
4712
4712
|
[f, y, A, D, S]
|
|
4713
|
-
), B =
|
|
4713
|
+
), B = F(
|
|
4714
4714
|
($) => {
|
|
4715
4715
|
w($), S(D(f, y, g, $));
|
|
4716
4716
|
},
|
|
4717
4717
|
[f, y, g, D, S]
|
|
4718
|
-
), K = ($) => (
|
|
4719
|
-
x($),
|
|
4720
|
-
},
|
|
4721
|
-
|
|
4722
|
-
},
|
|
4723
|
-
let $ = e.y,
|
|
4724
|
-
return typeof window < "u" && (
|
|
4718
|
+
), K = ($) => (z) => {
|
|
4719
|
+
x($), z.dataTransfer.effectAllowed = "move", z.dataTransfer.setData("text/plain", String($));
|
|
4720
|
+
}, j = ($) => (z) => {
|
|
4721
|
+
z.preventDefault(), z.dataTransfer.dropEffect = "move", !(N === null || N === $) && (R(N, $), x($));
|
|
4722
|
+
}, q = () => x(null), L = e != null ? (() => {
|
|
4723
|
+
let $ = e.y, z = e.x;
|
|
4724
|
+
return typeof window < "u" && (z + Qt > window.innerWidth && (z = window.innerWidth - Qt - 16), z < 16 && (z = 16), $ + zn > window.innerHeight && ($ = Math.max(16, window.innerHeight - zn - 16)), $ < 16 && ($ = 16)), { margin: 0, top: $, left: z };
|
|
4725
4725
|
})() : void 0;
|
|
4726
4726
|
return /* @__PURE__ */ p(
|
|
4727
4727
|
In,
|
|
@@ -4768,16 +4768,16 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4768
4768
|
/* @__PURE__ */ p("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
4769
4769
|
/* @__PURE__ */ p("th", { className: "and-table-column-setting-th-fix", children: "固定" })
|
|
4770
4770
|
] }) }),
|
|
4771
|
-
/* @__PURE__ */ p("tbody", { children: y.map(($,
|
|
4771
|
+
/* @__PURE__ */ p("tbody", { children: y.map(($, z) => {
|
|
4772
4772
|
const U = typeof $.width == "number" ? $.width : null, G = $.width === "auto" || $.width === void 0 && U === null;
|
|
4773
4773
|
return /* @__PURE__ */ ye(
|
|
4774
4774
|
"tr",
|
|
4775
4775
|
{
|
|
4776
|
-
className: `and-table-column-setting-row ${N ===
|
|
4776
|
+
className: `and-table-column-setting-row ${N === z ? "and-table-column-setting-row-dragging" : ""}`,
|
|
4777
4777
|
draggable: !0,
|
|
4778
|
-
onDragStart: K(
|
|
4779
|
-
onDragOver:
|
|
4780
|
-
onDragEnd:
|
|
4778
|
+
onDragStart: K(z),
|
|
4779
|
+
onDragOver: j(z),
|
|
4780
|
+
onDragEnd: q,
|
|
4781
4781
|
children: [
|
|
4782
4782
|
/* @__PURE__ */ p("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ p("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ p(gi, {}) }) }),
|
|
4783
4783
|
/* @__PURE__ */ ye("td", { className: "and-table-column-setting-td-name", children: [
|
|
@@ -4899,14 +4899,14 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4899
4899
|
showSummary: C,
|
|
4900
4900
|
showFooter: T,
|
|
4901
4901
|
renderTitle: M,
|
|
4902
|
-
renderSummary:
|
|
4902
|
+
renderSummary: R,
|
|
4903
4903
|
renderFooter: O,
|
|
4904
4904
|
children: V,
|
|
4905
4905
|
token: B,
|
|
4906
4906
|
columnSettingOpenKey: K,
|
|
4907
|
-
columnSettingsKey:
|
|
4908
|
-
...
|
|
4909
|
-
} = r, L = _((Q) => Q.addCommand), $ = _((Q) => Q.getDataSet),
|
|
4907
|
+
columnSettingsKey: j,
|
|
4908
|
+
...q
|
|
4909
|
+
} = r, L = _((Q) => Q.addCommand), $ = _((Q) => Q.getDataSet), z = _((Q) => Q.setDataSet), [U, G] = we([]), I = Re(null), [de, fe] = we(void 0), J = F((Q, he) => {
|
|
4910
4910
|
if (Q == null) return he;
|
|
4911
4911
|
if (typeof Q == "string")
|
|
4912
4912
|
try {
|
|
@@ -4924,7 +4924,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4924
4924
|
columnSettings: a && n ? le(n, `${a}_columnSettings`) : void 0
|
|
4925
4925
|
}),
|
|
4926
4926
|
[n, a]
|
|
4927
|
-
), { style: ie, className: re, ...te } =
|
|
4927
|
+
), { style: ie, className: re, ...te } = q, P = m(() => {
|
|
4928
4928
|
if (D) return D;
|
|
4929
4929
|
let Q = te["scroll-x"], he = te["scroll-y"];
|
|
4930
4930
|
if (String(Q) === "true" ? Q = !0 : String(Q) === "false" || Q === "__unset__" ? Q = void 0 : Q === "max-content" && (Q = "max-content"), (he === "" || he === null || he === void 0) && (he = void 0), Q !== void 0 || he !== void 0) return { x: Q, y: he };
|
|
@@ -4953,9 +4953,9 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4953
4953
|
[ee, ge]
|
|
4954
4954
|
), Se = _(
|
|
4955
4955
|
(Q) => X.pagination ? Q.dataSets[X.pagination] : void 0
|
|
4956
|
-
), H = m(() => X.pagination ? $(X.pagination, "") || {} : {}, [X.pagination, $, Se]), Z = m(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ce = ca(I,
|
|
4956
|
+
), H = m(() => X.pagination ? $(X.pagination, "") || {} : {}, [X.pagination, $, Se]), Z = m(() => !(A === !1 || typeof A == "object" && (A == null ? void 0 : A.visible) === !1), [A]), ce = ca(I, P == null ? void 0 : P.y, Z), Y = m(() => {
|
|
4957
4957
|
if (!Z) return !1;
|
|
4958
|
-
const Q = typeof A == "object" ? A : {}, he =
|
|
4958
|
+
const Q = typeof A == "object" ? A : {}, he = q || {}, Me = Q.showSizeChanger ?? he["pagination-showSizeChanger"] ?? !0, Ee = Q.showQuickJumper ?? he["pagination-showQuickJumper"] ?? !1, Oe = Q.simple ?? he["pagination-simple"] ?? !1, Ve = Q.defaultPageSize ?? he["pagination-defaultPageSize"] ?? 10, Xe = Q.pageSizeOptions ?? he["pagination-pageSizeOptions"] ?? "10,20,50,100", Ut = typeof Xe == "string" ? Xe.split(",").map((ut) => parseInt(String(ut).trim(), 10) || 10).filter((ut) => !isNaN(ut)) : Array.isArray(Xe) ? Xe : [10, 20, 50, 100];
|
|
4959
4959
|
return {
|
|
4960
4960
|
...H,
|
|
4961
4961
|
showSizeChanger: Me,
|
|
@@ -4965,13 +4965,13 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4965
4965
|
pageSizeOptions: Ut,
|
|
4966
4966
|
showTotal: (ut, ht) => (Q.showTotal || "共 ${total} 条").replace("${total}", String(ut)).replace("${range[0]}", String(ht[0])).replace("${range[1]}", String(ht[1])).replace("${range}", `${ht[0]}-${ht[1]}`),
|
|
4967
4967
|
onChange: (ut, ht) => {
|
|
4968
|
-
X.pagination &&
|
|
4968
|
+
X.pagination && z(X.pagination, "", { ...H, current: ut, pageSize: ht }), u && n && L(n, oe(u, null));
|
|
4969
4969
|
},
|
|
4970
4970
|
hideOnSinglePage: !1
|
|
4971
4971
|
};
|
|
4972
|
-
}, [Z, A,
|
|
4972
|
+
}, [Z, A, q, H, X.pagination, z, u, n, L]), W = F((Q, he) => {
|
|
4973
4973
|
n && L(n, oe(Q.action, { ...he }));
|
|
4974
|
-
}, [n, L]), ue =
|
|
4974
|
+
}, [n, L]), ue = F(
|
|
4975
4975
|
(Q, he) => {
|
|
4976
4976
|
n && Q && L(n, oe(Q, he));
|
|
4977
4977
|
},
|
|
@@ -4994,9 +4994,9 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
4994
4994
|
Qe
|
|
4995
4995
|
), [ve, be, De, Qe]), yt = !!(a && n), br = m(() => {
|
|
4996
4996
|
if (Ze !== void 0) return Ze;
|
|
4997
|
-
const Q =
|
|
4997
|
+
const Q = P == null ? void 0 : P.x;
|
|
4998
4998
|
return Q === !0 || typeof Q == "number" && Number.isFinite(Q) && Q > 0 ? !0 : Q === "max-content" ? !1 : Te;
|
|
4999
|
-
}, [Ze,
|
|
4999
|
+
}, [Ze, P == null ? void 0 : P.x, Te]), pn = m(() => yt ? Ze !== void 0 ? Ze ? !0 : "max-content" : (P == null ? void 0 : P.x) !== void 0 ? P.x : "max-content" : P == null ? void 0 : P.x, [yt, Ze, P == null ? void 0 : P.x, Te]), Mt = m(() => {
|
|
5000
5000
|
const Q = [];
|
|
5001
5001
|
We && Q.push({
|
|
5002
5002
|
title: "序号",
|
|
@@ -5038,34 +5038,34 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5038
5038
|
H,
|
|
5039
5039
|
W,
|
|
5040
5040
|
ue
|
|
5041
|
-
]), Sr =
|
|
5042
|
-
X.columnSettingOpen &&
|
|
5043
|
-
}, [X.columnSettingOpen,
|
|
5041
|
+
]), Sr = F(() => {
|
|
5042
|
+
X.columnSettingOpen && z(X.columnSettingOpen, "", !1);
|
|
5043
|
+
}, [X.columnSettingOpen, z]), wr = F(
|
|
5044
5044
|
(Q) => {
|
|
5045
|
-
X.columnSettings &&
|
|
5045
|
+
X.columnSettings && z(X.columnSettings, "value", Q);
|
|
5046
5046
|
},
|
|
5047
|
-
[X.columnSettings,
|
|
5047
|
+
[X.columnSettings, z]
|
|
5048
5048
|
), xr = m(() => {
|
|
5049
5049
|
if (!b && f)
|
|
5050
5050
|
return {
|
|
5051
5051
|
selectedRowKeys: U,
|
|
5052
5052
|
onChange: (Q, he, Me) => {
|
|
5053
|
-
G(Q), X.selected &&
|
|
5053
|
+
G(Q), X.selected && z(X.selected, "", Q), y != null && y.trim() && n && L(n, oe(y.trim(), {
|
|
5054
5054
|
selectedRowKeys: Q,
|
|
5055
5055
|
selectedRows: he,
|
|
5056
5056
|
info: Me
|
|
5057
5057
|
}));
|
|
5058
5058
|
}
|
|
5059
5059
|
};
|
|
5060
|
-
}, [f, b, U, X.selected,
|
|
5060
|
+
}, [f, b, U, X.selected, z, y, n, L]), vn = F((Q) => {
|
|
5061
5061
|
if (!b) return;
|
|
5062
5062
|
const Me = [Q[l]];
|
|
5063
|
-
G(Me), X.selected &&
|
|
5064
|
-
}, [b, y, n, l, X.selected,
|
|
5065
|
-
if (!
|
|
5066
|
-
const Q = pn, he = (
|
|
5067
|
-
return Q !== void 0 || he !== void 0 ? { x: Q, y: he } :
|
|
5068
|
-
}, [
|
|
5063
|
+
G(Me), X.selected && z(X.selected, "", Me), y != null && y.trim() && n && L(n, oe(y.trim(), { record: Q, selectedRowKeys: Me }));
|
|
5064
|
+
}, [b, y, n, l, X.selected, z, L]), Ar = F((Q) => b && U.includes(Q[l]) ? "ant-table-row-selected" : "", [b, l, U]), Dr = F((Q) => b ? { onClick: () => vn(Q), style: { cursor: "pointer" } } : {}, [b, vn]), Nr = m(() => {
|
|
5065
|
+
if (!P && !yt) return;
|
|
5066
|
+
const Q = pn, he = (P == null ? void 0 : P.y) === "100%" ? ce : P == null ? void 0 : P.y;
|
|
5067
|
+
return Q !== void 0 || he !== void 0 ? { x: Q, y: he } : P ? P.y === "100%" ? { x: P.x, y: ce } : P : void 0;
|
|
5068
|
+
}, [P, ce, yt, pn]), { titleSlot: Rt, summarySlot: jt, footerSlot: bn, otherChildren: Cr } = m(() => {
|
|
5069
5069
|
let Q = null, he = null, Me = null;
|
|
5070
5070
|
const Ee = [];
|
|
5071
5071
|
return Le.Children.forEach(V, (Oe) => {
|
|
@@ -5082,12 +5082,12 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5082
5082
|
if (k && o) return () => /* @__PURE__ */ p("div", { "data-table-slot-container": "title", style: { minHeight: 20 } });
|
|
5083
5083
|
}
|
|
5084
5084
|
}, [k, Rt, M, o]), kr = m(() => {
|
|
5085
|
-
if (
|
|
5085
|
+
if (R) return R;
|
|
5086
5086
|
if (C && jt)
|
|
5087
5087
|
return () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { colSpan: Mt.length, style: { padding: 0 }, children: jt }) });
|
|
5088
5088
|
if (C && o)
|
|
5089
5089
|
return () => /* @__PURE__ */ p("tr", { children: /* @__PURE__ */ p("td", { colSpan: Mt.length, style: { padding: 0 }, children: /* @__PURE__ */ p("div", { "data-table-slot-container": "summary", style: { minHeight: 20 } }) }) });
|
|
5090
|
-
}, [C, jt,
|
|
5090
|
+
}, [C, jt, R, Mt.length, o]), Sn = /* @__PURE__ */ p(
|
|
5091
5091
|
Fr,
|
|
5092
5092
|
{
|
|
5093
5093
|
...te,
|
|
@@ -5179,18 +5179,18 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5179
5179
|
index: u,
|
|
5180
5180
|
...A
|
|
5181
5181
|
}) => {
|
|
5182
|
-
const w = _((
|
|
5182
|
+
const w = _((P) => P.addCommand), N = Ge(Pe), x = u ?? (N == null ? void 0 : N.index), S = N == null ? void 0 : N.parentIndex, D = typeof o == "string" && o.trim() !== "", E = typeof a == "string" && a.trim() !== "", k = D || E || d === "selectedCount", C = ot(
|
|
5183
5183
|
k ? o : void 0,
|
|
5184
5184
|
k ? a : void 0,
|
|
5185
5185
|
e
|
|
5186
|
-
), T = e ?? C.sessionId, M = _((
|
|
5186
|
+
), T = e ?? C.sessionId, M = _((P) => P.getDataSet), R = m(() => {
|
|
5187
5187
|
if (!T || t == null || t === "") return null;
|
|
5188
|
-
const
|
|
5189
|
-
return
|
|
5188
|
+
const P = typeof (N == null ? void 0 : N.parentIndex) == "number" ? N.parentIndex : typeof (N == null ? void 0 : N.index) == "number" ? N.index : typeof u == "number" ? u : void 0;
|
|
5189
|
+
return P !== void 0 && Number.isFinite(P) ? `${String(t)}_${P}` : String(t);
|
|
5190
5190
|
}, [T, t, N == null ? void 0 : N.parentIndex, N == null ? void 0 : N.index, u]), O = _(
|
|
5191
|
-
(
|
|
5191
|
+
(P) => {
|
|
5192
5192
|
var ae;
|
|
5193
|
-
return
|
|
5193
|
+
return R ? ((ae = P.propsStore[`${T}_props`]) == null ? void 0 : ae[R]) ?? null : null;
|
|
5194
5194
|
}
|
|
5195
5195
|
), V = m(
|
|
5196
5196
|
() => d === "selectedCount" && a && !o ? a : k ? C.dataSet : void 0,
|
|
@@ -5201,14 +5201,14 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5201
5201
|
), K = m(
|
|
5202
5202
|
() => le(T, V),
|
|
5203
5203
|
[T, V]
|
|
5204
|
-
),
|
|
5204
|
+
), j = _((P) => {
|
|
5205
5205
|
if (!K) return;
|
|
5206
5206
|
const ae = wt(K).baseName;
|
|
5207
|
-
return
|
|
5208
|
-
}), { options:
|
|
5207
|
+
return P.dataSets[ae];
|
|
5208
|
+
}), { options: q } = $t(d), L = m(() => {
|
|
5209
5209
|
if (K && B)
|
|
5210
5210
|
return M(K, B);
|
|
5211
|
-
}, [K, B, M,
|
|
5211
|
+
}, [K, B, M, j]), $ = m(() => {
|
|
5212
5212
|
if (!h) return {};
|
|
5213
5213
|
if (typeof h == "string")
|
|
5214
5214
|
try {
|
|
@@ -5217,29 +5217,29 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5217
5217
|
return {};
|
|
5218
5218
|
}
|
|
5219
5219
|
return h;
|
|
5220
|
-
}, [h]),
|
|
5221
|
-
if (d &&
|
|
5222
|
-
const
|
|
5223
|
-
return (
|
|
5220
|
+
}, [h]), z = (P) => P == null || P === "" || typeof P == "string" && P.trim() === "", U = m(() => n ? i : L != null && L !== "" ? z(L) && f ? i : L : (O == null ? void 0 : O.content) !== void 0 ? O.content : i, [n, L, O == null ? void 0 : O.content, i, f]), G = m(() => {
|
|
5221
|
+
if (d && q.length > 0 && U !== void 0 && U !== null) {
|
|
5222
|
+
const P = nt(q, U);
|
|
5223
|
+
return (P == null ? void 0 : P.label) ?? U;
|
|
5224
5224
|
}
|
|
5225
5225
|
return U;
|
|
5226
|
-
}, [d,
|
|
5226
|
+
}, [d, q, U]), I = m(() => {
|
|
5227
5227
|
if (n)
|
|
5228
5228
|
return G;
|
|
5229
|
-
const
|
|
5230
|
-
return
|
|
5229
|
+
const P = (O == null ? void 0 : O.formatType) || v;
|
|
5230
|
+
return P && G !== void 0 && G !== null ? Po(G, P, $) : G;
|
|
5231
5231
|
}, [n, G, v, $, O == null ? void 0 : O.formatType]), de = m(() => {
|
|
5232
|
-
const
|
|
5232
|
+
const P = { ...A };
|
|
5233
5233
|
return O && typeof O == "object" && Object.keys(O).forEach((ae) => {
|
|
5234
|
-
!["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(ae) && O[ae] !== void 0 && O[ae] !== null && (
|
|
5235
|
-
}),
|
|
5234
|
+
!["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(ae) && O[ae] !== void 0 && O[ae] !== null && (P[ae] = O[ae]);
|
|
5235
|
+
}), P;
|
|
5236
5236
|
}, [A, O]), fe = m(
|
|
5237
5237
|
() => (O == null ? void 0 : O.clickAction) ?? l,
|
|
5238
5238
|
[O == null ? void 0 : O.clickAction, l]
|
|
5239
5239
|
), J = (O == null ? void 0 : O.develop) ?? n, se = m(() => {
|
|
5240
5240
|
if (J) return !1;
|
|
5241
|
-
const
|
|
5242
|
-
return
|
|
5241
|
+
const P = (O == null ? void 0 : O.stopClickPropagation) ?? g;
|
|
5242
|
+
return P !== void 0 ? P : !!fe;
|
|
5243
5243
|
}, [
|
|
5244
5244
|
J,
|
|
5245
5245
|
O == null ? void 0 : O.stopClickPropagation,
|
|
@@ -5247,32 +5247,32 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5247
5247
|
fe
|
|
5248
5248
|
]), me = (O == null ? void 0 : O.color) ?? s, X = Ht(me), ie = m(() => {
|
|
5249
5249
|
if (!y) return;
|
|
5250
|
-
let
|
|
5250
|
+
let P = y;
|
|
5251
5251
|
if (typeof y == "string")
|
|
5252
5252
|
try {
|
|
5253
|
-
|
|
5253
|
+
P = JSON.parse(y);
|
|
5254
5254
|
} catch {
|
|
5255
5255
|
return;
|
|
5256
5256
|
}
|
|
5257
|
-
if (!
|
|
5257
|
+
if (!P || typeof P != "object") return;
|
|
5258
5258
|
const ae = {};
|
|
5259
|
-
return Object.entries(
|
|
5259
|
+
return Object.entries(P).forEach(([Ne, ve]) => {
|
|
5260
5260
|
ve !== "" && ve !== void 0 && ve !== null && (ae[Ne] = ve);
|
|
5261
5261
|
}), Object.keys(ae).length > 0 ? ae : void 0;
|
|
5262
5262
|
}, [y]), re = m(() => {
|
|
5263
|
-
const
|
|
5263
|
+
const P = { width: "100%" }, ae = (O == null ? void 0 : O.fontSize) ?? c;
|
|
5264
5264
|
if (ae) {
|
|
5265
5265
|
const Ne = ae && !String(ae).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${ae}px` : ae;
|
|
5266
|
-
|
|
5266
|
+
P.fontSize = Ne;
|
|
5267
5267
|
}
|
|
5268
|
-
return X && (
|
|
5268
|
+
return X && (P.color = X), P;
|
|
5269
5269
|
}, [c, X, O == null ? void 0 : O.fontSize]), te = /* @__PURE__ */ p(
|
|
5270
5270
|
Aa,
|
|
5271
5271
|
{
|
|
5272
5272
|
...de,
|
|
5273
5273
|
style: { ...re, ...b, ...de.style },
|
|
5274
|
-
onClick: (
|
|
5275
|
-
if (typeof de.onClick == "function" && de.onClick(
|
|
5274
|
+
onClick: (P) => {
|
|
5275
|
+
if (typeof de.onClick == "function" && de.onClick(P), fe && T) {
|
|
5276
5276
|
const { actionName: ae, arg: Ne } = cr(fe, {
|
|
5277
5277
|
id: t,
|
|
5278
5278
|
index: x,
|
|
@@ -5283,7 +5283,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5283
5283
|
}), ve = oe(ae, Ne);
|
|
5284
5284
|
w(T, ve);
|
|
5285
5285
|
}
|
|
5286
|
-
se &&
|
|
5286
|
+
se && P.stopPropagation();
|
|
5287
5287
|
},
|
|
5288
5288
|
children: I != null && I !== "" ? String(I) : r
|
|
5289
5289
|
}
|
|
@@ -5388,7 +5388,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5388
5388
|
return x;
|
|
5389
5389
|
const k = N ?? d ?? v;
|
|
5390
5390
|
return !k && w.length > 0 ? w[0].key : k;
|
|
5391
|
-
}, [n, x, N, d, v, w]), E =
|
|
5391
|
+
}, [n, x, N, d, v, w]), E = F((k) => {
|
|
5392
5392
|
if (n) {
|
|
5393
5393
|
S(k);
|
|
5394
5394
|
return;
|
|
@@ -5440,14 +5440,14 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5440
5440
|
onLoad: C,
|
|
5441
5441
|
treeData: T,
|
|
5442
5442
|
styles: M,
|
|
5443
|
-
classNames:
|
|
5443
|
+
classNames: R,
|
|
5444
5444
|
token: O,
|
|
5445
5445
|
...V
|
|
5446
5446
|
}) => {
|
|
5447
|
-
const B = _((H) => H.addCommand), K = _((H) => H.setDataSet),
|
|
5447
|
+
const B = _((H) => H.addCommand), K = _((H) => H.setDataSet), j = m(
|
|
5448
5448
|
() => le(e, i),
|
|
5449
5449
|
[e, i]
|
|
5450
|
-
),
|
|
5450
|
+
), q = m(
|
|
5451
5451
|
() => i ? le(e, `${i}_selected`) : void 0,
|
|
5452
5452
|
[e, i]
|
|
5453
5453
|
), L = m(
|
|
@@ -5456,31 +5456,31 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5456
5456
|
), $ = m(
|
|
5457
5457
|
() => i ? le(e, `${i}_expanded`) : void 0,
|
|
5458
5458
|
[e, i]
|
|
5459
|
-
),
|
|
5460
|
-
if (!
|
|
5459
|
+
), z = _((H) => {
|
|
5460
|
+
if (!j) return;
|
|
5461
5461
|
if (r)
|
|
5462
|
-
return H.getDataSet(
|
|
5463
|
-
const Z = H.dataSets[
|
|
5462
|
+
return H.getDataSet(j, r);
|
|
5463
|
+
const Z = H.dataSets[j];
|
|
5464
5464
|
if (!Z) return;
|
|
5465
5465
|
if (Array.isArray(Z)) return Z;
|
|
5466
5466
|
const ce = Z.value;
|
|
5467
5467
|
return Array.isArray(ce) ? ce : void 0;
|
|
5468
5468
|
}), U = _(
|
|
5469
|
-
(H) =>
|
|
5469
|
+
(H) => q ? H.getDataSet(q, "") : void 0
|
|
5470
5470
|
), G = _(
|
|
5471
5471
|
(H) => L ? H.getDataSet(L, "") : void 0
|
|
5472
5472
|
), I = _(
|
|
5473
5473
|
(H) => $ ? H.getDataSet($, "") : void 0
|
|
5474
|
-
), de = m(() => n ?
|
|
5474
|
+
), de = m(() => n ? z ?? T ?? [] : j ? z ?? [] : T ?? [], [n, j, z, T]), fe = U, J = G, se = I, me = F(
|
|
5475
5475
|
(H, Z) => {
|
|
5476
5476
|
if (g) {
|
|
5477
5477
|
g(H, Z);
|
|
5478
5478
|
return;
|
|
5479
5479
|
}
|
|
5480
|
-
|
|
5480
|
+
q && K(q, "", H), o && e && B(e, oe(o, { selectedKeys: H }));
|
|
5481
5481
|
},
|
|
5482
|
-
[g,
|
|
5483
|
-
), X =
|
|
5482
|
+
[g, q, e, K, o, B]
|
|
5483
|
+
), X = F(
|
|
5484
5484
|
(H, Z) => {
|
|
5485
5485
|
if (u) {
|
|
5486
5486
|
u(H, Z);
|
|
@@ -5489,7 +5489,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5489
5489
|
L && K(L, "", H), a && e && B(e, oe(a, { checkedKeys: H }));
|
|
5490
5490
|
},
|
|
5491
5491
|
[u, L, e, K, a, B]
|
|
5492
|
-
), ie =
|
|
5492
|
+
), ie = F(
|
|
5493
5493
|
(H, Z) => {
|
|
5494
5494
|
if (A) {
|
|
5495
5495
|
A(H, Z);
|
|
@@ -5498,7 +5498,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5498
5498
|
$ && K($, "", H), c && e && B(e, oe(c, { expandedKeys: H, expanded: Z.expanded }));
|
|
5499
5499
|
},
|
|
5500
5500
|
[A, $, e, K, c, B]
|
|
5501
|
-
), re =
|
|
5501
|
+
), re = F(
|
|
5502
5502
|
(H) => {
|
|
5503
5503
|
if (w) {
|
|
5504
5504
|
w(H);
|
|
@@ -5507,7 +5507,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5507
5507
|
s && e && B(e, oe(s, H));
|
|
5508
5508
|
},
|
|
5509
5509
|
[w, s, e, B]
|
|
5510
|
-
), te =
|
|
5510
|
+
), te = F(
|
|
5511
5511
|
(H) => {
|
|
5512
5512
|
if (N) {
|
|
5513
5513
|
N(H);
|
|
@@ -5516,7 +5516,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5516
5516
|
d && e && B(e, oe(d, H));
|
|
5517
5517
|
},
|
|
5518
5518
|
[N, d, e, B]
|
|
5519
|
-
),
|
|
5519
|
+
), P = F(
|
|
5520
5520
|
(H) => {
|
|
5521
5521
|
if (x) {
|
|
5522
5522
|
x(H);
|
|
@@ -5525,7 +5525,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5525
5525
|
v && e && B(e, oe(v, H));
|
|
5526
5526
|
},
|
|
5527
5527
|
[x, v, e, B]
|
|
5528
|
-
), ae =
|
|
5528
|
+
), ae = F(
|
|
5529
5529
|
(H) => {
|
|
5530
5530
|
if (S) {
|
|
5531
5531
|
S(H);
|
|
@@ -5534,7 +5534,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5534
5534
|
h && e && B(e, oe(h, H));
|
|
5535
5535
|
},
|
|
5536
5536
|
[S, h, e, B]
|
|
5537
|
-
), Ne =
|
|
5537
|
+
), Ne = F(
|
|
5538
5538
|
(H) => {
|
|
5539
5539
|
if (D) {
|
|
5540
5540
|
D(H);
|
|
@@ -5543,7 +5543,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5543
5543
|
f && e && B(e, oe(f, H));
|
|
5544
5544
|
},
|
|
5545
5545
|
[D, f, e, B]
|
|
5546
|
-
), ve =
|
|
5546
|
+
), ve = F(
|
|
5547
5547
|
(H) => {
|
|
5548
5548
|
if (E) {
|
|
5549
5549
|
E(H);
|
|
@@ -5552,7 +5552,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5552
5552
|
b && e && B(e, oe(b, H));
|
|
5553
5553
|
},
|
|
5554
5554
|
[E, b, e, B]
|
|
5555
|
-
), pe =
|
|
5555
|
+
), pe = F(
|
|
5556
5556
|
(H) => {
|
|
5557
5557
|
if (k) {
|
|
5558
5558
|
k(H);
|
|
@@ -5561,7 +5561,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5561
5561
|
y && e && B(e, oe(y, H));
|
|
5562
5562
|
},
|
|
5563
5563
|
[k, y, e, B]
|
|
5564
|
-
), Ae =
|
|
5564
|
+
), Ae = F(
|
|
5565
5565
|
(H, Z) => {
|
|
5566
5566
|
if (C) {
|
|
5567
5567
|
C(H, Z);
|
|
@@ -5585,7 +5585,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5585
5585
|
...V,
|
|
5586
5586
|
...n ? { motion: !1 } : {},
|
|
5587
5587
|
treeData: de,
|
|
5588
|
-
...
|
|
5588
|
+
...q != null ? { selectedKeys: fe ?? [] } : {},
|
|
5589
5589
|
...L != null ? { checkedKeys: J ?? [] } : {},
|
|
5590
5590
|
...$ != null ? { expandedKeys: se ?? [] } : {},
|
|
5591
5591
|
onSelect: me,
|
|
@@ -5593,14 +5593,14 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5593
5593
|
onExpand: ie,
|
|
5594
5594
|
onDragEnd: re,
|
|
5595
5595
|
onDragEnter: te,
|
|
5596
|
-
onDragLeave:
|
|
5596
|
+
onDragLeave: P,
|
|
5597
5597
|
onDragOver: ae,
|
|
5598
5598
|
onDragStart: Ne,
|
|
5599
5599
|
onDrop: ve,
|
|
5600
5600
|
onRightClick: pe,
|
|
5601
5601
|
onLoad: Ae,
|
|
5602
5602
|
styles: M,
|
|
5603
|
-
classNames:
|
|
5603
|
+
classNames: R
|
|
5604
5604
|
}
|
|
5605
5605
|
);
|
|
5606
5606
|
return ee ? /* @__PURE__ */ p(Ke, { theme: ee, children: Se }) : Se;
|
|
@@ -5682,13 +5682,13 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5682
5682
|
[e, i]
|
|
5683
5683
|
), N = m(() => {
|
|
5684
5684
|
if (w && r) return u(w, r);
|
|
5685
|
-
}, [w, r, u]), x = m(() => N ?? c ?? 0, [N, c]), S = m(() => v ?? d, [v, d]), D = m(() => f ?? h, [f, h]), E = m(() => Zt(s, []), [s]), k = m(() => Zt(b, {}), [b]), C = m(() => Zt(y, {}), [y]), T =
|
|
5685
|
+
}, [w, r, u]), x = m(() => N ?? c ?? 0, [N, c]), S = m(() => v ?? d, [v, d]), D = m(() => f ?? h, [f, h]), E = m(() => Zt(s, []), [s]), k = m(() => Zt(b, {}), [b]), C = m(() => Zt(y, {}), [y]), T = F((O) => {
|
|
5686
5686
|
if (a) {
|
|
5687
5687
|
a(O);
|
|
5688
5688
|
return;
|
|
5689
5689
|
}
|
|
5690
5690
|
w && r && A(w, r, O), o && e && g(e, oe(o, O));
|
|
5691
|
-
}, [a, w, r, A, o, e, g]), M = Object.keys(C).length > 0,
|
|
5691
|
+
}, [a, w, r, A, o, e, g]), M = Object.keys(C).length > 0, R = /* @__PURE__ */ p(
|
|
5692
5692
|
Wr,
|
|
5693
5693
|
{
|
|
5694
5694
|
...l,
|
|
@@ -5700,7 +5700,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5700
5700
|
onChange: T
|
|
5701
5701
|
}
|
|
5702
5702
|
);
|
|
5703
|
-
return M ? /* @__PURE__ */ p(Ke, { theme: { components: { Steps: C } }, children:
|
|
5703
|
+
return M ? /* @__PURE__ */ p(Ke, { theme: { components: { Steps: C } }, children: R }) : R;
|
|
5704
5704
|
}, ps = ({
|
|
5705
5705
|
id: t,
|
|
5706
5706
|
sessionId: e,
|
|
@@ -5753,7 +5753,7 @@ const Qt = 420, zn = 440, wa = ({
|
|
|
5753
5753
|
if (a) return a;
|
|
5754
5754
|
if (o)
|
|
5755
5755
|
return Ta[o] || o;
|
|
5756
|
-
}, [o, a]), u = m(() => ka(c), [c]), A =
|
|
5756
|
+
}, [o, a]), u = m(() => ka(c), [c]), A = F((N) => {
|
|
5757
5757
|
if (d) {
|
|
5758
5758
|
d(N);
|
|
5759
5759
|
return;
|
|
@@ -6034,7 +6034,7 @@ const ws = ({
|
|
|
6034
6034
|
}), N = w.current ?? d ?? 1, x = w.pageSize ?? v ?? 10, S = w.total ?? h ?? 0;
|
|
6035
6035
|
Ce(() => {
|
|
6036
6036
|
if (!g || u === void 0) return;
|
|
6037
|
-
const k = u ?? "", { getDataSet: C, setDataSet: T } = _.getState(), M = C(g, k),
|
|
6037
|
+
const k = u ?? "", { getDataSet: C, setDataSet: T } = _.getState(), M = C(g, k), R = Number(v ?? f ?? 10), O = Number.isFinite(R) && R > 0 ? R : 10;
|
|
6038
6038
|
if (M == null || typeof M != "object" || Array.isArray(M)) {
|
|
6039
6039
|
T(
|
|
6040
6040
|
g,
|
|
@@ -6068,13 +6068,13 @@ const ws = ({
|
|
|
6068
6068
|
f,
|
|
6069
6069
|
h
|
|
6070
6070
|
]);
|
|
6071
|
-
const D =
|
|
6071
|
+
const D = F((k, C) => {
|
|
6072
6072
|
if (c) {
|
|
6073
6073
|
c(k, C);
|
|
6074
6074
|
return;
|
|
6075
6075
|
}
|
|
6076
6076
|
g && l(g, u ?? "", { current: k, pageSize: C, total: S }), o && e && y(e, oe(o, { page: k, pageSize: C }));
|
|
6077
|
-
}, [c, g, u, l, S, o, e, y]), E =
|
|
6077
|
+
}, [c, g, u, l, S, o, e, y]), E = F((k, C) => {
|
|
6078
6078
|
if (s) {
|
|
6079
6079
|
s(k, C);
|
|
6080
6080
|
return;
|
|
@@ -6114,15 +6114,15 @@ const ws = ({
|
|
|
6114
6114
|
}, D = new ResizeObserver(S);
|
|
6115
6115
|
return o.current && D.observe(o.current), a.current && D.observe(a.current), S(), () => D.disconnect();
|
|
6116
6116
|
}, [l]);
|
|
6117
|
-
const g = c <= 0, u = !d || c >= h - b, A =
|
|
6117
|
+
const g = c <= 0, u = !d || c >= h - b, A = F(() => {
|
|
6118
6118
|
var D, E;
|
|
6119
6119
|
if (g) return;
|
|
6120
6120
|
const S = l ? ((D = o.current) == null ? void 0 : D.clientWidth) ?? 200 : ((E = o.current) == null ? void 0 : E.clientHeight) ?? 200;
|
|
6121
6121
|
s((k) => Math.max(0, k - S));
|
|
6122
|
-
}, [l, g]), w =
|
|
6123
|
-
var E, k, C, T, M,
|
|
6122
|
+
}, [l, g]), w = F(() => {
|
|
6123
|
+
var E, k, C, T, M, R;
|
|
6124
6124
|
if (u) return;
|
|
6125
|
-
const S = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, D = l ? (((C = a.current) == null ? void 0 : C.scrollWidth) ?? 0) - (((T = o.current) == null ? void 0 : T.clientWidth) ?? 0) : (((M = a.current) == null ? void 0 : M.scrollHeight) ?? 0) - (((
|
|
6125
|
+
const S = l ? ((E = o.current) == null ? void 0 : E.clientWidth) ?? 200 : ((k = o.current) == null ? void 0 : k.clientHeight) ?? 200, D = l ? (((C = a.current) == null ? void 0 : C.scrollWidth) ?? 0) - (((T = o.current) == null ? void 0 : T.clientWidth) ?? 0) : (((M = a.current) == null ? void 0 : M.scrollHeight) ?? 0) - (((R = o.current) == null ? void 0 : R.clientHeight) ?? 0);
|
|
6126
6126
|
s((O) => Math.min(D, O + S));
|
|
6127
6127
|
}, [l, u]), N = n || (l ? /* @__PURE__ */ p(rr, {}) : /* @__PURE__ */ p(vi, {})), x = i || (l ? /* @__PURE__ */ p(ir, {}) : /* @__PURE__ */ p(or, {}));
|
|
6128
6128
|
return /* @__PURE__ */ ye(
|
|
@@ -6245,19 +6245,19 @@ const ws = ({
|
|
|
6245
6245
|
remoteUrl: C,
|
|
6246
6246
|
overflowStrategy: T = "default",
|
|
6247
6247
|
paginationArrowStyle: M,
|
|
6248
|
-
paginationArrowIconPrev:
|
|
6248
|
+
paginationArrowIconPrev: R,
|
|
6249
6249
|
paginationArrowIconNext: O,
|
|
6250
6250
|
expandTrigger: V,
|
|
6251
6251
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
6252
6252
|
...B
|
|
6253
6253
|
}) => {
|
|
6254
|
-
const K = _((W) => W.addCommand),
|
|
6254
|
+
const K = _((W) => W.addCommand), j = _((W) => W.setDataSet), q = m(
|
|
6255
6255
|
() => le(e, i),
|
|
6256
6256
|
[e, i]
|
|
6257
6257
|
), L = _(
|
|
6258
6258
|
(W) => {
|
|
6259
|
-
if (
|
|
6260
|
-
return r ? W.getDataSet(
|
|
6259
|
+
if (q)
|
|
6260
|
+
return r ? W.getDataSet(q, r) : W.dataSets[q];
|
|
6261
6261
|
}
|
|
6262
6262
|
// 使用 shallow 比较确保只有通过内容变更才触发更新
|
|
6263
6263
|
// 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
|
|
@@ -6265,20 +6265,20 @@ const ws = ({
|
|
|
6265
6265
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
6266
6266
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
6267
6267
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
6268
|
-
), $ = m(() => ({}), []),
|
|
6269
|
-
() => (
|
|
6270
|
-
[
|
|
6271
|
-
), G = m(() => n ? U ?? b ?? [] :
|
|
6272
|
-
() =>
|
|
6273
|
-
[
|
|
6268
|
+
), $ = m(() => ({}), []), z = L ?? $, U = m(
|
|
6269
|
+
() => (z == null ? void 0 : z.items) ?? (Array.isArray(z) ? z : void 0) ?? (Array.isArray(z == null ? void 0 : z.value) ? z.value : void 0),
|
|
6270
|
+
[z]
|
|
6271
|
+
), G = m(() => n ? U ?? b ?? [] : q ? U ?? [] : b ?? [], [n, q, U, b]), I = m(
|
|
6272
|
+
() => z.selectedKeys ?? y,
|
|
6273
|
+
[z.selectedKeys, y]
|
|
6274
6274
|
), de = m(
|
|
6275
|
-
() =>
|
|
6276
|
-
[
|
|
6275
|
+
() => z.openKeys ?? (S && D ? void 0 : l),
|
|
6276
|
+
[z.openKeys, S, D, l]
|
|
6277
6277
|
), fe = m(
|
|
6278
6278
|
() => le(e, S),
|
|
6279
6279
|
[e, S]
|
|
6280
6280
|
), J = _((W) => {
|
|
6281
|
-
if (!
|
|
6281
|
+
if (!z.openKeys && fe && D)
|
|
6282
6282
|
return W.getDataSet(fe, D);
|
|
6283
6283
|
}), se = m(() => {
|
|
6284
6284
|
const W = (ue) => Array.isArray(ue) ? ue.map((be) => {
|
|
@@ -6296,7 +6296,7 @@ const ws = ({
|
|
|
6296
6296
|
), X = m(
|
|
6297
6297
|
() => de ?? J,
|
|
6298
6298
|
[de, J]
|
|
6299
|
-
), ie =
|
|
6299
|
+
), ie = F(
|
|
6300
6300
|
(W) => {
|
|
6301
6301
|
if (d) {
|
|
6302
6302
|
d(W);
|
|
@@ -6308,18 +6308,18 @@ const ws = ({
|
|
|
6308
6308
|
);
|
|
6309
6309
|
},
|
|
6310
6310
|
[d, o, e, K]
|
|
6311
|
-
), re =
|
|
6311
|
+
), re = F(
|
|
6312
6312
|
(W) => {
|
|
6313
6313
|
if (v) {
|
|
6314
6314
|
v(W);
|
|
6315
6315
|
return;
|
|
6316
6316
|
}
|
|
6317
|
-
if (
|
|
6317
|
+
if (q)
|
|
6318
6318
|
if (r) {
|
|
6319
|
-
const ue = _.getState().getDataSet(
|
|
6320
|
-
|
|
6319
|
+
const ue = _.getState().getDataSet(q, r) || {};
|
|
6320
|
+
j(q, r, { ...ue, selectedKeys: W.selectedKeys });
|
|
6321
6321
|
} else
|
|
6322
|
-
|
|
6322
|
+
j(q, "selectedKeys", W.selectedKeys);
|
|
6323
6323
|
a && e && K(
|
|
6324
6324
|
e,
|
|
6325
6325
|
oe(a, { selectedKeys: W.selectedKeys })
|
|
@@ -6327,26 +6327,26 @@ const ws = ({
|
|
|
6327
6327
|
},
|
|
6328
6328
|
[
|
|
6329
6329
|
v,
|
|
6330
|
-
|
|
6330
|
+
q,
|
|
6331
6331
|
r,
|
|
6332
|
-
|
|
6332
|
+
j,
|
|
6333
6333
|
a,
|
|
6334
6334
|
e,
|
|
6335
6335
|
K
|
|
6336
6336
|
]
|
|
6337
|
-
), te =
|
|
6337
|
+
), te = F(
|
|
6338
6338
|
(W) => {
|
|
6339
6339
|
if (h) {
|
|
6340
6340
|
h(W);
|
|
6341
6341
|
return;
|
|
6342
6342
|
}
|
|
6343
|
-
if (
|
|
6343
|
+
if (q)
|
|
6344
6344
|
if (r) {
|
|
6345
|
-
const ue = _.getState().getDataSet(
|
|
6346
|
-
|
|
6345
|
+
const ue = _.getState().getDataSet(q, r) || {};
|
|
6346
|
+
j(q, r, { ...ue, openKeys: W });
|
|
6347
6347
|
} else
|
|
6348
|
-
|
|
6349
|
-
else fe && D &&
|
|
6348
|
+
j(q, "openKeys", W);
|
|
6349
|
+
else fe && D && j(fe, D, W);
|
|
6350
6350
|
c && e && K(
|
|
6351
6351
|
e,
|
|
6352
6352
|
oe(c, { openKeys: W })
|
|
@@ -6354,16 +6354,16 @@ const ws = ({
|
|
|
6354
6354
|
},
|
|
6355
6355
|
[
|
|
6356
6356
|
h,
|
|
6357
|
-
|
|
6357
|
+
q,
|
|
6358
6358
|
r,
|
|
6359
6359
|
fe,
|
|
6360
6360
|
D,
|
|
6361
|
-
|
|
6361
|
+
j,
|
|
6362
6362
|
c,
|
|
6363
6363
|
e,
|
|
6364
6364
|
K
|
|
6365
6365
|
]
|
|
6366
|
-
),
|
|
6366
|
+
), P = F(
|
|
6367
6367
|
(W) => {
|
|
6368
6368
|
if (f) {
|
|
6369
6369
|
f(W);
|
|
@@ -6387,12 +6387,12 @@ const ws = ({
|
|
|
6387
6387
|
}, [w]), ve = n ? {
|
|
6388
6388
|
motion: { motionName: "" }
|
|
6389
6389
|
} : {}, pe = m(() => {
|
|
6390
|
-
if (typeof
|
|
6391
|
-
const W = Je[
|
|
6390
|
+
if (typeof R == "string" && R) {
|
|
6391
|
+
const W = Je[R];
|
|
6392
6392
|
if (W) return /* @__PURE__ */ p(W, {});
|
|
6393
6393
|
}
|
|
6394
|
-
return
|
|
6395
|
-
}, [
|
|
6394
|
+
return R;
|
|
6395
|
+
}, [R]), Ae = m(() => {
|
|
6396
6396
|
if (typeof O == "string" && O) {
|
|
6397
6397
|
const W = Je[O];
|
|
6398
6398
|
if (W) return /* @__PURE__ */ p(W, {});
|
|
@@ -6436,7 +6436,7 @@ const ws = ({
|
|
|
6436
6436
|
onClick: ie,
|
|
6437
6437
|
onSelect: re,
|
|
6438
6438
|
onOpenChange: te,
|
|
6439
|
-
onDeselect:
|
|
6439
|
+
onDeselect: P,
|
|
6440
6440
|
styles: u,
|
|
6441
6441
|
classNames: A,
|
|
6442
6442
|
expandIcon: N,
|
|
@@ -6630,8 +6630,8 @@ const ws = ({
|
|
|
6630
6630
|
[g, y]
|
|
6631
6631
|
), N = _((K) => w && l ? K.getDataSet(w, l) : null), x = m(() => !g || t == null || t === "" ? null : u && typeof u.index == "number" ? `${String(t)}_${u.index}` : String(t), [g, t, u]), S = _(
|
|
6632
6632
|
(K) => {
|
|
6633
|
-
var
|
|
6634
|
-
return x ? ((
|
|
6633
|
+
var j;
|
|
6634
|
+
return x ? ((j = K.propsStore[`${g}_props`]) == null ? void 0 : j[x]) ?? null : null;
|
|
6635
6635
|
}
|
|
6636
6636
|
), D = m(() => N && Array.isArray(N) ? N : Ka(o), [N, o]), E = (S == null ? void 0 : S.columns) !== void 0 && (S == null ? void 0 : S.columns) !== null ? S.columns : a, k = m(() => La(E), [E]), C = m(() => za(c), [c]), T = m(() => {
|
|
6637
6637
|
if (v) return v;
|
|
@@ -6650,11 +6650,11 @@ const ws = ({
|
|
|
6650
6650
|
{ key: "4", height: 180, data: { title: "示例项 4" } },
|
|
6651
6651
|
{ key: "5", height: 140, data: { title: "示例项 5" } },
|
|
6652
6652
|
{ key: "6", height: 160, data: { title: "示例项 6" } }
|
|
6653
|
-
] : [], [D, n]),
|
|
6653
|
+
] : [], [D, n]), R = m(() => {
|
|
6654
6654
|
if (h) return h;
|
|
6655
6655
|
if (n)
|
|
6656
6656
|
return (K) => {
|
|
6657
|
-
var
|
|
6657
|
+
var j;
|
|
6658
6658
|
return /* @__PURE__ */ p(
|
|
6659
6659
|
"div",
|
|
6660
6660
|
{
|
|
@@ -6669,30 +6669,30 @@ const ws = ({
|
|
|
6669
6669
|
color: "#1677ff",
|
|
6670
6670
|
fontSize: 14
|
|
6671
6671
|
},
|
|
6672
|
-
children: ((
|
|
6672
|
+
children: ((j = K.data) == null ? void 0 : j.title) || `Item ${K.key}`
|
|
6673
6673
|
}
|
|
6674
6674
|
);
|
|
6675
6675
|
};
|
|
6676
6676
|
}, [h, n]), O = m(() => {
|
|
6677
|
-
if (
|
|
6678
|
-
return !y || !l ?
|
|
6679
|
-
const
|
|
6677
|
+
if (R)
|
|
6678
|
+
return !y || !l ? R : (K, j) => {
|
|
6679
|
+
const q = typeof j == "number" ? j : typeof (K == null ? void 0 : K.index) == "number" ? K.index : Number((K == null ? void 0 : K.index) ?? 0);
|
|
6680
6680
|
return /* @__PURE__ */ p(
|
|
6681
6681
|
Pe.Provider,
|
|
6682
6682
|
{
|
|
6683
6683
|
value: {
|
|
6684
6684
|
dataSet: y,
|
|
6685
|
-
index:
|
|
6685
|
+
index: q,
|
|
6686
6686
|
parentIndex: u == null ? void 0 : u.index,
|
|
6687
6687
|
parentContext: u ?? void 0,
|
|
6688
6688
|
sessionId: g,
|
|
6689
6689
|
dataSetFieldRoot: l
|
|
6690
6690
|
},
|
|
6691
|
-
children:
|
|
6691
|
+
children: R(K)
|
|
6692
6692
|
}
|
|
6693
6693
|
);
|
|
6694
6694
|
};
|
|
6695
|
-
}, [
|
|
6695
|
+
}, [R, y, l, g]), {
|
|
6696
6696
|
layoutChangeAction: V,
|
|
6697
6697
|
...B
|
|
6698
6698
|
} = f;
|
|
@@ -6732,7 +6732,7 @@ const ws = ({
|
|
|
6732
6732
|
return l && typeof l == "object" && Object.keys(l).forEach((S) => {
|
|
6733
6733
|
S !== "title" && S !== "message" && l[S] !== void 0 && l[S] !== null && (x[S] = l[S]);
|
|
6734
6734
|
}), x;
|
|
6735
|
-
}, [h, s, l]), w = m(() => d ? { closeIcon: /* @__PURE__ */ p("span", { children: d }) } : v, [d, v]), N =
|
|
6735
|
+
}, [h, s, l]), w = m(() => d ? { closeIcon: /* @__PURE__ */ p("span", { children: d }) } : v, [d, v]), N = F((x) => {
|
|
6736
6736
|
r && r(x);
|
|
6737
6737
|
}, [r]);
|
|
6738
6738
|
return /* @__PURE__ */ p(
|
|
@@ -6764,13 +6764,13 @@ const ws = ({
|
|
|
6764
6764
|
), g = m(() => {
|
|
6765
6765
|
if (l && r)
|
|
6766
6766
|
return b(l, r);
|
|
6767
|
-
}, [l, r, b]), u = g !== void 0 ? !!g : d, A =
|
|
6767
|
+
}, [l, r, b]), u = g !== void 0 ? !!g : d, A = F(() => {
|
|
6768
6768
|
c && c(), l && r && y(l, r, !1), o && e && f(e, {
|
|
6769
6769
|
actionName: o,
|
|
6770
6770
|
arg: null,
|
|
6771
6771
|
timestamp: Date.now()
|
|
6772
6772
|
});
|
|
6773
|
-
}, [c, l, r, y, o, e, f]), w =
|
|
6773
|
+
}, [c, l, r, y, o, e, f]), w = F(() => {
|
|
6774
6774
|
s && s(), l && r && y(l, r, !1), a && e && f(e, {
|
|
6775
6775
|
actionName: a,
|
|
6776
6776
|
arg: null,
|
|
@@ -6805,7 +6805,7 @@ const ws = ({
|
|
|
6805
6805
|
), y = m(() => {
|
|
6806
6806
|
if (b && r)
|
|
6807
6807
|
return h(b, r);
|
|
6808
|
-
}, [b, r, h]), l = y !== void 0 ? !!y : c, g =
|
|
6808
|
+
}, [b, r, h]), l = y !== void 0 ? !!y : c, g = F(() => {
|
|
6809
6809
|
a && a(), b && r && f(b, r, !1), o && e && v(e, {
|
|
6810
6810
|
actionName: o,
|
|
6811
6811
|
arg: null,
|
|
@@ -6902,7 +6902,7 @@ const ws = ({
|
|
|
6902
6902
|
Va(fe)
|
|
6903
6903
|
])
|
|
6904
6904
|
);
|
|
6905
|
-
}, [l]),
|
|
6905
|
+
}, [l]), R = m(() => {
|
|
6906
6906
|
const I = qa(v);
|
|
6907
6907
|
return I.length > 0 ? I : void 0;
|
|
6908
6908
|
}, [v]), V = m(() => {
|
|
@@ -6910,13 +6910,13 @@ const ws = ({
|
|
|
6910
6910
|
const I = E(C, `${r}.activeTabKey`);
|
|
6911
6911
|
if (typeof I == "string") return I;
|
|
6912
6912
|
}
|
|
6913
|
-
}, [C, r, E]) ?? h, B =
|
|
6913
|
+
}, [C, r, E]) ?? h, B = F((I) => {
|
|
6914
6914
|
if (y) {
|
|
6915
6915
|
y(I);
|
|
6916
6916
|
return;
|
|
6917
6917
|
}
|
|
6918
6918
|
C && r && k(C, `${r}.activeTabKey`, I), b && e && D(e, oe(b, { key: I }));
|
|
6919
|
-
}, [y, C, r, k, b, e, D]), { titleSlot: K, extraSlot:
|
|
6919
|
+
}, [y, C, r, k, b, e, D]), { titleSlot: K, extraSlot: j, coverSlot: q, actionsSlot: L, otherChildren: $, actionsFromChildren: z } = m(() => {
|
|
6920
6920
|
let I = null, de = null, fe = null, J = [];
|
|
6921
6921
|
const se = [];
|
|
6922
6922
|
let me = !1;
|
|
@@ -6930,21 +6930,21 @@ const ws = ({
|
|
|
6930
6930
|
}), { titleSlot: I, extraSlot: de, coverSlot: fe, actionsSlot: J, otherChildren: se, actionsFromChildren: me };
|
|
6931
6931
|
}, [x, o, a, c, d]), U = m(() => {
|
|
6932
6932
|
const I = fn(g, {});
|
|
6933
|
-
return
|
|
6934
|
-
}, [g,
|
|
6933
|
+
return z ? { actionsLiMargin: "0px", ...I } : I;
|
|
6934
|
+
}, [g, z]), G = /* @__PURE__ */ p(
|
|
6935
6935
|
tn,
|
|
6936
6936
|
{
|
|
6937
6937
|
...S,
|
|
6938
6938
|
size: T,
|
|
6939
6939
|
title: K,
|
|
6940
|
-
extra:
|
|
6941
|
-
cover:
|
|
6940
|
+
extra: j,
|
|
6941
|
+
cover: q,
|
|
6942
6942
|
tabBarExtraContent: s,
|
|
6943
6943
|
actions: L.length > 0 ? L : void 0,
|
|
6944
|
-
tabList:
|
|
6944
|
+
tabList: R,
|
|
6945
6945
|
activeTabKey: V,
|
|
6946
6946
|
defaultActiveTabKey: f,
|
|
6947
|
-
onTabChange:
|
|
6947
|
+
onTabChange: R ? B : void 0,
|
|
6948
6948
|
styles: M,
|
|
6949
6949
|
children: $
|
|
6950
6950
|
}
|
|
@@ -7017,14 +7017,14 @@ const ws = ({
|
|
|
7017
7017
|
const T = x;
|
|
7018
7018
|
if (Array.isArray(T == null ? void 0 : T.items)) return T.items;
|
|
7019
7019
|
if (Array.isArray(T == null ? void 0 : T.value)) return T.value;
|
|
7020
|
-
}, [x]), D = m(() => n ? S ?? Fn(a) ?? [] : N ? S ?? [] : Fn(a) ?? [], [n, N, S, a]), E =
|
|
7020
|
+
}, [x]), D = m(() => n ? S ?? Fn(a) ?? [] : N ? S ?? [] : Fn(a) ?? [], [n, N, S, a]), E = F(
|
|
7021
7021
|
(T, M) => {
|
|
7022
7022
|
if (h) {
|
|
7023
7023
|
h(T, M);
|
|
7024
7024
|
return;
|
|
7025
7025
|
}
|
|
7026
7026
|
if (v && e) {
|
|
7027
|
-
const { actionName:
|
|
7027
|
+
const { actionName: R, arg: O } = dt(v, T, {
|
|
7028
7028
|
id: t,
|
|
7029
7029
|
dataSet: i,
|
|
7030
7030
|
dataSetField: r,
|
|
@@ -7032,7 +7032,7 @@ const ws = ({
|
|
|
7032
7032
|
parentIndex: w,
|
|
7033
7033
|
source: M.source
|
|
7034
7034
|
});
|
|
7035
|
-
g(e, oe(
|
|
7035
|
+
g(e, oe(R, O));
|
|
7036
7036
|
}
|
|
7037
7037
|
},
|
|
7038
7038
|
[
|
|
@@ -7051,7 +7051,7 @@ const ws = ({
|
|
|
7051
7051
|
items: pr(D),
|
|
7052
7052
|
onClick: (T) => {
|
|
7053
7053
|
if (c && e) {
|
|
7054
|
-
const { actionName: M, arg:
|
|
7054
|
+
const { actionName: M, arg: R } = dt(c, T.key, {
|
|
7055
7055
|
id: t,
|
|
7056
7056
|
dataSet: i,
|
|
7057
7057
|
dataSetField: r,
|
|
@@ -7060,12 +7060,12 @@ const ws = ({
|
|
|
7060
7060
|
key: T.key,
|
|
7061
7061
|
keyPath: T.keyPath
|
|
7062
7062
|
});
|
|
7063
|
-
g(e, oe(M,
|
|
7063
|
+
g(e, oe(M, R));
|
|
7064
7064
|
}
|
|
7065
7065
|
},
|
|
7066
7066
|
onSelect: (T) => {
|
|
7067
7067
|
if (s && e) {
|
|
7068
|
-
const { actionName: M, arg:
|
|
7068
|
+
const { actionName: M, arg: R } = dt(s, T.key, {
|
|
7069
7069
|
id: t,
|
|
7070
7070
|
dataSet: i,
|
|
7071
7071
|
dataSetField: r,
|
|
@@ -7075,12 +7075,12 @@ const ws = ({
|
|
|
7075
7075
|
keyPath: T.keyPath,
|
|
7076
7076
|
selectedKeys: T.selectedKeys
|
|
7077
7077
|
});
|
|
7078
|
-
g(e, oe(M,
|
|
7078
|
+
g(e, oe(M, R));
|
|
7079
7079
|
}
|
|
7080
7080
|
},
|
|
7081
7081
|
onDeselect: (T) => {
|
|
7082
7082
|
if (d && e) {
|
|
7083
|
-
const { actionName: M, arg:
|
|
7083
|
+
const { actionName: M, arg: R } = dt(d, T.key, {
|
|
7084
7084
|
id: t,
|
|
7085
7085
|
dataSet: i,
|
|
7086
7086
|
dataSetField: r,
|
|
@@ -7090,7 +7090,7 @@ const ws = ({
|
|
|
7090
7090
|
keyPath: T.keyPath,
|
|
7091
7091
|
selectedKeys: T.selectedKeys
|
|
7092
7092
|
});
|
|
7093
|
-
g(e, oe(M,
|
|
7093
|
+
g(e, oe(M, R));
|
|
7094
7094
|
}
|
|
7095
7095
|
}
|
|
7096
7096
|
}),
|
|
@@ -7214,7 +7214,7 @@ const ws = ({
|
|
|
7214
7214
|
end: Dt(c.end)
|
|
7215
7215
|
};
|
|
7216
7216
|
}
|
|
7217
|
-
}, [c]), S =
|
|
7217
|
+
}, [c]), S = F(
|
|
7218
7218
|
(M) => {
|
|
7219
7219
|
if (v) {
|
|
7220
7220
|
v(M);
|
|
@@ -7223,7 +7223,7 @@ const ws = ({
|
|
|
7223
7223
|
s && e && u(e, oe(s, { sizes: M }));
|
|
7224
7224
|
},
|
|
7225
7225
|
[v, s, e, u]
|
|
7226
|
-
), D =
|
|
7226
|
+
), D = F(
|
|
7227
7227
|
(M) => {
|
|
7228
7228
|
if (h) {
|
|
7229
7229
|
h(M);
|
|
@@ -7232,8 +7232,8 @@ const ws = ({
|
|
|
7232
7232
|
d && e && u(e, oe(d, { sizes: M }));
|
|
7233
7233
|
},
|
|
7234
7234
|
[h, d, e, u]
|
|
7235
|
-
), E = () => y && Le.Children.count(y) > 0 ? Le.Children.map(y, (M,
|
|
7236
|
-
const O = A[
|
|
7235
|
+
), E = () => y && Le.Children.count(y) > 0 ? Le.Children.map(y, (M, R) => {
|
|
7236
|
+
const O = A[R] || {};
|
|
7237
7237
|
return /* @__PURE__ */ p(
|
|
7238
7238
|
It.Panel,
|
|
7239
7239
|
{
|
|
@@ -7244,9 +7244,9 @@ const ws = ({
|
|
|
7244
7244
|
resizable: O.resizable !== !1,
|
|
7245
7245
|
children: M
|
|
7246
7246
|
},
|
|
7247
|
-
O.key ||
|
|
7247
|
+
O.key || R
|
|
7248
7248
|
);
|
|
7249
|
-
}) : A.map((M,
|
|
7249
|
+
}) : A.map((M, R) => /* @__PURE__ */ p(
|
|
7250
7250
|
It.Panel,
|
|
7251
7251
|
{
|
|
7252
7252
|
defaultSize: M.defaultSize || void 0,
|
|
@@ -7254,7 +7254,7 @@ const ws = ({
|
|
|
7254
7254
|
max: M.max || void 0,
|
|
7255
7255
|
collapsible: M.collapsible,
|
|
7256
7256
|
resizable: M.resizable !== !1,
|
|
7257
|
-
children: l ? l(M.key,
|
|
7257
|
+
children: l ? l(M.key, R) : /* @__PURE__ */ ye(
|
|
7258
7258
|
"div",
|
|
7259
7259
|
{
|
|
7260
7260
|
style: {
|
|
@@ -7267,12 +7267,12 @@ const ws = ({
|
|
|
7267
7267
|
},
|
|
7268
7268
|
children: [
|
|
7269
7269
|
"Panel ",
|
|
7270
|
-
|
|
7270
|
+
R + 1
|
|
7271
7271
|
]
|
|
7272
7272
|
}
|
|
7273
7273
|
)
|
|
7274
7274
|
},
|
|
7275
|
-
M.key ||
|
|
7275
|
+
M.key || R
|
|
7276
7276
|
)), { layout: k, ...C } = g, T = /* @__PURE__ */ p("div", { style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ p(
|
|
7277
7277
|
It,
|
|
7278
7278
|
{
|
|
@@ -7336,7 +7336,7 @@ const ws = ({
|
|
|
7336
7336
|
const N = u === "default" ? "middle" : u, x = m(() => {
|
|
7337
7337
|
const B = w == null ? void 0 : w.trim();
|
|
7338
7338
|
if (B)
|
|
7339
|
-
return (K,
|
|
7339
|
+
return (K, j) => B.replace(/\$\{total\}/g, String(K)).replace(/\$\{range\[0\]\}/g, String(j[0])).replace(/\$\{range\[1\]\}/g, String(j[1])).replace(/\$\{range\}/g, `${j[0]}-${j[1]}`);
|
|
7340
7340
|
}, [w]), S = _((B) => B.getDataSet), D = m(
|
|
7341
7341
|
() => le(e, i),
|
|
7342
7342
|
[e, i]
|
|
@@ -7346,27 +7346,27 @@ const ws = ({
|
|
|
7346
7346
|
return Array.isArray(B) ? B : [];
|
|
7347
7347
|
}
|
|
7348
7348
|
return [];
|
|
7349
|
-
}, [D, r, S]),
|
|
7350
|
-
let B =
|
|
7349
|
+
}, [D, r, S]), R = m(() => n ? M.length > 0 ? M : c || [] : D ? M : c || [], [n, D, M, c]), O = m(() => {
|
|
7350
|
+
let B = R;
|
|
7351
7351
|
if (!h) {
|
|
7352
|
-
const K = (E - 1) * C,
|
|
7353
|
-
B = B.slice(K,
|
|
7352
|
+
const K = (E - 1) * C, j = K + C;
|
|
7353
|
+
B = B.slice(K, j);
|
|
7354
7354
|
}
|
|
7355
7355
|
return s ? B.slice(0, s) : B;
|
|
7356
|
-
}, [
|
|
7357
|
-
if (!
|
|
7356
|
+
}, [R, h, E, C, s]);
|
|
7357
|
+
if (!R || R.length === 0)
|
|
7358
7358
|
return a ? /* @__PURE__ */ p(St, { children: a() }) : /* @__PURE__ */ p("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
7359
7359
|
const V = (B, K) => {
|
|
7360
7360
|
k(B), K && T(K);
|
|
7361
7361
|
};
|
|
7362
7362
|
return /* @__PURE__ */ ye("div", { style: { display: "flex", flexDirection: "column", ...d }, children: [
|
|
7363
7363
|
/* @__PURE__ */ p("div", { style: { flex: 1 }, children: O.map((B, K) => /* @__PURE__ */ p(Le.Fragment, { children: o ? o(B, K) : /* @__PURE__ */ p("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(B) }) }, B.id || K)) }),
|
|
7364
|
-
!h &&
|
|
7364
|
+
!h && R.length > 0 && /* @__PURE__ */ p("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ p(
|
|
7365
7365
|
Qn,
|
|
7366
7366
|
{
|
|
7367
7367
|
current: E,
|
|
7368
7368
|
pageSize: C,
|
|
7369
|
-
total:
|
|
7369
|
+
total: R.length,
|
|
7370
7370
|
onChange: V,
|
|
7371
7371
|
pageSizeOptions: b,
|
|
7372
7372
|
showSizeChanger: y,
|
|
@@ -7535,22 +7535,22 @@ const ws = ({
|
|
|
7535
7535
|
placeholderFlexDirection: v = "column",
|
|
7536
7536
|
index: h
|
|
7537
7537
|
}) => {
|
|
7538
|
-
var C, T, M,
|
|
7538
|
+
var C, T, M, R;
|
|
7539
7539
|
const f = Ge(Pe), { storeBaseKey: b, arrayIndex: y } = m(() => {
|
|
7540
7540
|
if (!n) return { storeBaseKey: void 0, arrayIndex: null };
|
|
7541
7541
|
const O = n.split(".")[0], { baseName: V, index: B } = wt(O);
|
|
7542
7542
|
let K = B;
|
|
7543
7543
|
if (K === null && h !== void 0 && h !== null) {
|
|
7544
|
-
const
|
|
7545
|
-
K = Number.isFinite(
|
|
7544
|
+
const j = Number(h);
|
|
7545
|
+
K = Number.isFinite(j) ? j : null;
|
|
7546
7546
|
}
|
|
7547
7547
|
if (K === null) {
|
|
7548
|
-
const
|
|
7549
|
-
if (Number.isFinite(
|
|
7550
|
-
K =
|
|
7548
|
+
const j = Number(f == null ? void 0 : f.index);
|
|
7549
|
+
if (Number.isFinite(j))
|
|
7550
|
+
K = j;
|
|
7551
7551
|
else {
|
|
7552
|
-
const
|
|
7553
|
-
K = Number.isFinite(
|
|
7552
|
+
const q = Number(f == null ? void 0 : f.parentIndex);
|
|
7553
|
+
K = Number.isFinite(q) ? q : null;
|
|
7554
7554
|
}
|
|
7555
7555
|
}
|
|
7556
7556
|
return {
|
|
@@ -7568,9 +7568,9 @@ const ws = ({
|
|
|
7568
7568
|
(f == null ? void 0 : f.parentIndex) !== void 0 ? f.parentIndex : f == null ? void 0 : f.index
|
|
7569
7569
|
);
|
|
7570
7570
|
if (Number.isFinite(K)) {
|
|
7571
|
-
const
|
|
7572
|
-
if (Array.isArray(
|
|
7573
|
-
return
|
|
7571
|
+
const j = B[K];
|
|
7572
|
+
if (Array.isArray(j))
|
|
7573
|
+
return j[y] ?? null;
|
|
7574
7574
|
}
|
|
7575
7575
|
return B[y] ?? null;
|
|
7576
7576
|
}
|
|
@@ -7579,14 +7579,14 @@ const ws = ({
|
|
|
7579
7579
|
if (!n || !l) return { componentName: "", props: {} };
|
|
7580
7580
|
const V = n.split(".")[1], B = V ? l[V] || {} : l;
|
|
7581
7581
|
if (typeof B == "object" && B !== null) {
|
|
7582
|
-
const { componentName: K, props:
|
|
7582
|
+
const { componentName: K, props: j, ...q } = B;
|
|
7583
7583
|
return {
|
|
7584
7584
|
componentName: K || "",
|
|
7585
|
-
props:
|
|
7585
|
+
props: j || q || {}
|
|
7586
7586
|
};
|
|
7587
7587
|
}
|
|
7588
7588
|
return { componentName: "", props: {} };
|
|
7589
|
-
}, [n, i, l]), u = ((C = g.props) == null ? void 0 : C.inheritDataSet) !== void 0 ? String((T = g.props) == null ? void 0 : T.inheritDataSet) : void 0, A = ((M = g.props) == null ? void 0 : M.inheritDataSetFieldRoot) !== void 0 ? String((
|
|
7589
|
+
}, [n, i, l]), u = ((C = g.props) == null ? void 0 : C.inheritDataSet) !== void 0 ? String((T = g.props) == null ? void 0 : T.inheritDataSet) : void 0, A = ((M = g.props) == null ? void 0 : M.inheritDataSetFieldRoot) !== void 0 ? String((R = g.props) == null ? void 0 : R.inheritDataSetFieldRoot) : void 0, w = g.componentName || t, N = m(() => ({
|
|
7590
7590
|
// inheritDataSet 只用于给后代提供 DataSetInheritContext,不应透传给具体组件。
|
|
7591
7591
|
...g.props ? (() => {
|
|
7592
7592
|
const { inheritDataSet: O, inheritDataSetFieldRoot: V, ...B } = g.props;
|
|
@@ -7596,20 +7596,20 @@ const ws = ({
|
|
|
7596
7596
|
...e,
|
|
7597
7597
|
sessionId: i
|
|
7598
7598
|
}), [g.props, e, i, h]), x = m(() => {
|
|
7599
|
-
var
|
|
7599
|
+
var L, $;
|
|
7600
7600
|
if (!u) return null;
|
|
7601
|
-
const O = (
|
|
7602
|
-
let
|
|
7603
|
-
if (typeof
|
|
7604
|
-
|
|
7605
|
-
else if (!
|
|
7606
|
-
const
|
|
7607
|
-
|
|
7601
|
+
const O = !!A && A.trim().startsWith("["), V = (L = g.props) == null ? void 0 : L.index, B = O ? void 0 : typeof V == "number" && Number.isFinite(V) ? V : y !== null ? y : void 0, K = ($ = g.props) == null ? void 0 : $.parentIndex, j = !!(f != null && f.dataSet) && String(u) === String(f.dataSet);
|
|
7602
|
+
let q;
|
|
7603
|
+
if (typeof K == "number" && Number.isFinite(K))
|
|
7604
|
+
q = K;
|
|
7605
|
+
else if (!j) {
|
|
7606
|
+
const z = (f == null ? void 0 : f.parentIndex) ?? (f == null ? void 0 : f.index);
|
|
7607
|
+
q = z !== void 0 ? Number(z) : void 0, q !== void 0 && !Number.isFinite(q) && (q = void 0);
|
|
7608
7608
|
}
|
|
7609
7609
|
return {
|
|
7610
7610
|
dataSet: u,
|
|
7611
|
-
...
|
|
7612
|
-
...
|
|
7611
|
+
...B !== void 0 ? { index: B } : {},
|
|
7612
|
+
...q !== void 0 ? { parentIndex: q } : {},
|
|
7613
7613
|
...f ? { parentContext: f } : {},
|
|
7614
7614
|
...A ? { dataSetFieldRoot: A } : {},
|
|
7615
7615
|
sessionId: i
|
|
@@ -7822,7 +7822,7 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7822
7822
|
() => Math.max(1, a || 1)
|
|
7823
7823
|
), E = Re(S);
|
|
7824
7824
|
E.current = S;
|
|
7825
|
-
const [k, C] = we(null), [T, M] = we(!!A), [
|
|
7825
|
+
const [k, C] = we(null), [T, M] = we(!!A), [R, O] = we("all"), [V, B] = we("width"), [K, j] = we(1), q = Re(null), L = Re(null), $ = Re({}), z = Re(!1), U = Re(null), [G, I] = we(600), [de, fe] = we(800), J = Re(0), se = m(() => {
|
|
7826
7826
|
var ue;
|
|
7827
7827
|
const Y = (ue = Ie().pdfCMapUrl) == null ? void 0 : ue.trim();
|
|
7828
7828
|
return Y ? { cMapUrl: Y.endsWith("/") ? Y : `${Y}/`, cMapPacked: !0 } : {};
|
|
@@ -7847,10 +7847,10 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7847
7847
|
), te = m(
|
|
7848
7848
|
() => Math.max(120, ie * K),
|
|
7849
7849
|
[ie, K]
|
|
7850
|
-
),
|
|
7850
|
+
), P = m(
|
|
7851
7851
|
() => Math.max(180, re * K),
|
|
7852
7852
|
[re, K]
|
|
7853
|
-
), ae = m(() =>
|
|
7853
|
+
), ae = m(() => R === "all" ? Array.from({ length: N }, (Y, W) => W + 1) : [S], [R, N, S]), Ne = F(
|
|
7854
7854
|
(Y, W) => {
|
|
7855
7855
|
!l || !me || (y(l, `${me}.currentPage`, Y), W > 0 && y(l, `${me}.totalPages`, W));
|
|
7856
7856
|
},
|
|
@@ -7859,15 +7859,15 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7859
7859
|
Ce(() => {
|
|
7860
7860
|
N > 0 && Ne(S, N);
|
|
7861
7861
|
}, [S, N, Ne]);
|
|
7862
|
-
const ve =
|
|
7862
|
+
const ve = F(
|
|
7863
7863
|
(Y, W = "auto") => {
|
|
7864
7864
|
const ue = N > 0 ? Math.max(1, Math.min(Math.floor(Y), N)) : Math.max(1, Math.floor(Y));
|
|
7865
|
-
if (D(ue),
|
|
7865
|
+
if (D(ue), R === "all") {
|
|
7866
7866
|
const be = $.current[ue];
|
|
7867
7867
|
be && be.scrollIntoView({ block: "start", behavior: W });
|
|
7868
7868
|
}
|
|
7869
7869
|
},
|
|
7870
|
-
[N,
|
|
7870
|
+
[N, R]
|
|
7871
7871
|
), pe = Re(ve);
|
|
7872
7872
|
pe.current = ve, Ce(() => {
|
|
7873
7873
|
const Y = X;
|
|
@@ -7876,21 +7876,21 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7876
7876
|
const Y = Math.max(1, a ?? 1);
|
|
7877
7877
|
D(Y);
|
|
7878
7878
|
}, [a]);
|
|
7879
|
-
const Ae =
|
|
7879
|
+
const Ae = F(
|
|
7880
7880
|
({ numPages: Y }) => {
|
|
7881
7881
|
C(null), M(!1);
|
|
7882
7882
|
const W = E.current, ue = Math.min(Math.max(1, W), Y || 1);
|
|
7883
|
-
x(Y), D(ue),
|
|
7883
|
+
x(Y), D(ue), z.current = !0, U.current = ue;
|
|
7884
7884
|
},
|
|
7885
7885
|
[]
|
|
7886
|
-
), ge =
|
|
7887
|
-
C(Y), M(!1),
|
|
7886
|
+
), ge = F((Y) => {
|
|
7887
|
+
C(Y), M(!1), z.current = !1, U.current = null;
|
|
7888
7888
|
}, []);
|
|
7889
7889
|
Ce(() => {
|
|
7890
|
-
M(!!A), C(null),
|
|
7890
|
+
M(!!A), C(null), j(1), x(0), z.current = !!A, U.current = null, $.current = {};
|
|
7891
7891
|
}, [A]), Ce(() => {
|
|
7892
7892
|
const Y = U.current;
|
|
7893
|
-
if (Y == null || T || N <= 0 ||
|
|
7893
|
+
if (Y == null || T || N <= 0 || R !== "all") return;
|
|
7894
7894
|
let W = !1, ue = 0;
|
|
7895
7895
|
const be = 120, De = () => {
|
|
7896
7896
|
if (W) return;
|
|
@@ -7909,13 +7909,13 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7909
7909
|
if (W) return;
|
|
7910
7910
|
const We = $.current[Te];
|
|
7911
7911
|
We && We.scrollIntoView({ block: "start", behavior: "auto" }), U.current = null, requestAnimationFrame(() => {
|
|
7912
|
-
W || (
|
|
7912
|
+
W || (z.current = !1);
|
|
7913
7913
|
});
|
|
7914
7914
|
});
|
|
7915
7915
|
return;
|
|
7916
7916
|
}
|
|
7917
7917
|
if (ue >= be) {
|
|
7918
|
-
U.current = null,
|
|
7918
|
+
U.current = null, z.current = !1;
|
|
7919
7919
|
return;
|
|
7920
7920
|
}
|
|
7921
7921
|
requestAnimationFrame(De);
|
|
@@ -7923,13 +7923,13 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7923
7923
|
return requestAnimationFrame(De), () => {
|
|
7924
7924
|
W = !0;
|
|
7925
7925
|
};
|
|
7926
|
-
}, [T, N,
|
|
7927
|
-
const ee =
|
|
7928
|
-
|
|
7926
|
+
}, [T, N, R]);
|
|
7927
|
+
const ee = F((Y) => {
|
|
7928
|
+
j((W) => {
|
|
7929
7929
|
const ue = Number((W + Y).toFixed(2));
|
|
7930
7930
|
return Math.max(Ua, Math.min(Ya, ue));
|
|
7931
7931
|
});
|
|
7932
|
-
}, []), ne =
|
|
7932
|
+
}, []), ne = F(() => {
|
|
7933
7933
|
if (!A) return;
|
|
7934
7934
|
const Y = window.open(A, "_blank", "noopener,noreferrer");
|
|
7935
7935
|
Y && (Y.onload = () => {
|
|
@@ -7938,18 +7938,18 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7938
7938
|
} catch {
|
|
7939
7939
|
}
|
|
7940
7940
|
});
|
|
7941
|
-
}, [A]), Se =
|
|
7941
|
+
}, [A]), Se = F(() => {
|
|
7942
7942
|
if (!A) return;
|
|
7943
7943
|
const Y = document.createElement("a");
|
|
7944
7944
|
Y.href = A, Y.download = "", Y.rel = "noopener noreferrer", Y.target = "_blank", document.body.appendChild(Y), Y.click(), Y.remove();
|
|
7945
|
-
}, [A]), H =
|
|
7945
|
+
}, [A]), H = F(() => {
|
|
7946
7946
|
var W;
|
|
7947
|
-
const Y =
|
|
7947
|
+
const Y = q.current;
|
|
7948
7948
|
Y && ((W = Y.requestFullscreen) == null || W.call(Y));
|
|
7949
|
-
}, []), Z =
|
|
7949
|
+
}, []), Z = F(() => {
|
|
7950
7950
|
document.fullscreenElement && document.exitFullscreen();
|
|
7951
|
-
}, []), ce =
|
|
7952
|
-
if (T ||
|
|
7951
|
+
}, []), ce = F(() => {
|
|
7952
|
+
if (T || R !== "all" || N <= 0 || z.current) return;
|
|
7953
7953
|
const Y = L.current;
|
|
7954
7954
|
if (!Y) return;
|
|
7955
7955
|
const W = Y.scrollTop + Y.clientHeight * 0.35;
|
|
@@ -7961,7 +7961,7 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7961
7961
|
Qe < be && (be = Qe, ue = De);
|
|
7962
7962
|
}
|
|
7963
7963
|
ue !== S && D(ue);
|
|
7964
|
-
}, [T,
|
|
7964
|
+
}, [T, R, N, S]);
|
|
7965
7965
|
return Ce(() => {
|
|
7966
7966
|
if (!u || typeof u != "object") return;
|
|
7967
7967
|
const Y = u._pdfCmdNonce, W = u.pdfCommand, ue = u.pdfCommandArg;
|
|
@@ -7983,10 +7983,10 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
7983
7983
|
typeof ue == "number" && ve(ue, "smooth");
|
|
7984
7984
|
break;
|
|
7985
7985
|
case "fitWidth":
|
|
7986
|
-
B("width"),
|
|
7986
|
+
B("width"), j(1);
|
|
7987
7987
|
break;
|
|
7988
7988
|
case "fitHeight":
|
|
7989
|
-
B("height"),
|
|
7989
|
+
B("height"), j(1);
|
|
7990
7990
|
break;
|
|
7991
7991
|
case "zoomIn":
|
|
7992
7992
|
ee(Pn);
|
|
@@ -8023,7 +8023,7 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
8023
8023
|
]), /* @__PURE__ */ p(
|
|
8024
8024
|
"div",
|
|
8025
8025
|
{
|
|
8026
|
-
ref:
|
|
8026
|
+
ref: q,
|
|
8027
8027
|
className: f,
|
|
8028
8028
|
style: {
|
|
8029
8029
|
display: "flex",
|
|
@@ -8094,7 +8094,7 @@ const Ua = 0.5, Ya = 3, Pn = 0.1, Gs = ({
|
|
|
8094
8094
|
{
|
|
8095
8095
|
pageNumber: Y,
|
|
8096
8096
|
width: V === "width" ? te : void 0,
|
|
8097
|
-
height: V === "height" ?
|
|
8097
|
+
height: V === "height" ? P : void 0,
|
|
8098
8098
|
renderTextLayer: !1,
|
|
8099
8099
|
renderAnnotationLayer: !1
|
|
8100
8100
|
}
|
|
@@ -8216,15 +8216,15 @@ function lt(t, e) {
|
|
|
8216
8216
|
interaction: C,
|
|
8217
8217
|
annotations: T,
|
|
8218
8218
|
axis: M,
|
|
8219
|
-
scrollbar:
|
|
8219
|
+
scrollbar: R,
|
|
8220
8220
|
slider: O,
|
|
8221
8221
|
theme: V,
|
|
8222
8222
|
state: B,
|
|
8223
8223
|
// 事件配置
|
|
8224
8224
|
events: K,
|
|
8225
8225
|
// 其余配置直接透传
|
|
8226
|
-
...
|
|
8227
|
-
} = a,
|
|
8226
|
+
...j
|
|
8227
|
+
} = a, q = Re(null), L = _((ve) => ve.getDataSet), $ = _((ve) => ve.addCommand), z = m(() => {
|
|
8228
8228
|
if (f && b) {
|
|
8229
8229
|
const pe = L(f, b);
|
|
8230
8230
|
if (pe !== void 0) return pe;
|
|
@@ -8233,7 +8233,7 @@ function lt(t, e) {
|
|
|
8233
8233
|
return ve !== void 0 ? ve : d ? r : [];
|
|
8234
8234
|
}, [y, f, b, L, d]), U = (ve) => {
|
|
8235
8235
|
var pe;
|
|
8236
|
-
if (
|
|
8236
|
+
if (q.current = ve, !d && s) {
|
|
8237
8237
|
const Ae = $e(K);
|
|
8238
8238
|
Ae && typeof Ae == "object" && Object.entries(Ae).forEach(([ge, ee]) => {
|
|
8239
8239
|
typeof ee == "string" && ve.on(ge, (ne) => {
|
|
@@ -8245,9 +8245,9 @@ function lt(t, e) {
|
|
|
8245
8245
|
});
|
|
8246
8246
|
});
|
|
8247
8247
|
}
|
|
8248
|
-
(pe =
|
|
8248
|
+
(pe = j.onReady) == null || pe.call(j, ve);
|
|
8249
8249
|
}, G = $e(l) || {}, I = {
|
|
8250
|
-
data:
|
|
8250
|
+
data: z,
|
|
8251
8251
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
8252
8252
|
height: G.height ?? i,
|
|
8253
8253
|
autoFit: Ia(G.autoFit, !0),
|
|
@@ -8256,7 +8256,7 @@ function lt(t, e) {
|
|
|
8256
8256
|
// 设计器模式禁用动画
|
|
8257
8257
|
animate: d ? !1 : $e(E),
|
|
8258
8258
|
onReady: U,
|
|
8259
|
-
...
|
|
8259
|
+
...j
|
|
8260
8260
|
}, de = $e(N);
|
|
8261
8261
|
de !== void 0 && (I.title = de);
|
|
8262
8262
|
const fe = $e(x);
|
|
@@ -8273,10 +8273,10 @@ function lt(t, e) {
|
|
|
8273
8273
|
ie !== void 0 && (I.annotations = ie);
|
|
8274
8274
|
const re = $e(M);
|
|
8275
8275
|
re !== void 0 && (I.axis = re);
|
|
8276
|
-
const te = $e(
|
|
8276
|
+
const te = $e(R);
|
|
8277
8277
|
te !== void 0 && (I.scrollbar = te);
|
|
8278
|
-
const
|
|
8279
|
-
|
|
8278
|
+
const P = $e(O);
|
|
8279
|
+
P !== void 0 && (I.slider = P);
|
|
8280
8280
|
const ae = $e(V);
|
|
8281
8281
|
ae !== void 0 && (I.theme = ae);
|
|
8282
8282
|
const Ne = $e(B);
|