@nuwatop/code-canvas-core 0.4.2 → 0.4.4
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/AndPdfViewer/index.d.ts.map +1 -1
- package/dist/index.esm.js +858 -860
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as b, jsxs as ot, Fragment as se } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as dr } from "react-dom/client";
|
|
3
|
-
import { theme as Ft, ConfigProvider as Mt, Button as Xt, Input as Me, InputNumber as $n, Space as
|
|
3
|
+
import { theme as Ft, ConfigProvider as Mt, Button as Xt, Input as Me, InputNumber as $n, Space as Pt, Select as Mn, Switch as mr, DatePicker as Rn, TimePicker as hr, Radio as Ve, Checkbox as ce, Rate as yr, Slider as gr, Cascader as pr, TreeSelect as vr, message as Ce, Upload as br, Image as Qt, AutoComplete as Sr, Form as Ee, Transfer as wr, Segmented as Dr, Modal as jn, Tooltip as xr, Table as Ar, Flex as Bn, Typography as sn, Tabs as Cr, Tree as Tr, Timeline as Nr, Steps as kr, Statistic as Ge, Carousel as Or, Avatar as _r, Tag as Kn, Pagination as Ln, Breadcrumb as Er, Menu as $r, Calendar as Mr, Badge as zn, Masonry as Rr, Alert as Vn, Drawer as jr, Result as Br, Card as Je, Divider as hn, Dropdown as Kr, Row as Lr, Col as zr, QRCode as Vr, Splitter as qe, Spin as qn, Watermark as qr } from "antd";
|
|
4
4
|
import { StyleProvider as Wr, createCache as Hr } from "@ant-design/cssinjs";
|
|
5
5
|
import Ur from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Pr } from "zustand";
|
|
@@ -10,7 +10,7 @@ import qt, { useMemo as g, useCallback as B, useEffect as bt, createContext as J
|
|
|
10
10
|
import * as Gt from "@ant-design/icons";
|
|
11
11
|
import { CloseCircleOutlined as Xr, PlusOutlined as Hn, UploadOutlined as Zr, MenuOutlined as Ir, MinusOutlined as ti, LeftOutlined as Un, RightOutlined as Pn, UpOutlined as ei, DownOutlined as Yn, ApiOutlined as ni, InboxOutlined as ri } from "@ant-design/icons";
|
|
12
12
|
import ii from "clsx";
|
|
13
|
-
import
|
|
13
|
+
import Ut from "dayjs";
|
|
14
14
|
import { pdfjs as he, Document as ai, Page as oi } from "react-pdf";
|
|
15
15
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
16
16
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
@@ -22,9 +22,9 @@ const yi = () => {
|
|
|
22
22
|
}, gi = (e) => {
|
|
23
23
|
let t = Qe.get(e);
|
|
24
24
|
return t || (t = Hr(), Qe.set(e, t)), t;
|
|
25
|
-
},
|
|
25
|
+
}, Xo = (e) => {
|
|
26
26
|
e && Qe.delete(e);
|
|
27
|
-
},
|
|
27
|
+
}, Zo = async ({
|
|
28
28
|
el: e,
|
|
29
29
|
component: t,
|
|
30
30
|
props: n = {},
|
|
@@ -86,7 +86,7 @@ const yi = () => {
|
|
|
86
86
|
window.__CURRENT_STYLE_CONTAINER__ = h, c.render(u(S));
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
|
-
},
|
|
89
|
+
}, Io = () => {
|
|
90
90
|
console.info("[code-canvas-core] Cleanup called - components will be garbage collected"), Fe = !1;
|
|
91
91
|
};
|
|
92
92
|
function be(e) {
|
|
@@ -266,7 +266,7 @@ const O = Pr()(
|
|
|
266
266
|
}))
|
|
267
267
|
)
|
|
268
268
|
);
|
|
269
|
-
function
|
|
269
|
+
function tc(e) {
|
|
270
270
|
const { dataSet: t, dataSetField: n } = e, i = O((r) => r.setDataSet);
|
|
271
271
|
return {
|
|
272
272
|
get value() {
|
|
@@ -278,7 +278,7 @@ function ec(e) {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function ec(e) {
|
|
282
282
|
const t = O((n) => n.setDataSetBatch);
|
|
283
283
|
return {
|
|
284
284
|
get value() {
|
|
@@ -289,10 +289,10 @@ function nc(e) {
|
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
292
|
-
function
|
|
292
|
+
function nc() {
|
|
293
293
|
return O((e) => e.addCommand);
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function rc() {
|
|
296
296
|
return O((e) => e.popCommand);
|
|
297
297
|
}
|
|
298
298
|
function vi(e, t) {
|
|
@@ -307,7 +307,7 @@ function vi(e, t) {
|
|
|
307
307
|
return Array.isArray(a) ? a : a != null && typeof a == "object" && Array.isArray(a.value) ? a.value : [];
|
|
308
308
|
}, [n, e, t, i]);
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function ic() {
|
|
311
311
|
const e = O((a) => a.setDataSetBatch), t = O((a) => a.setDataSet), n = O((a) => a.updateDataSet), i = O((a) => a.getDataSet), r = O.getState;
|
|
312
312
|
return {
|
|
313
313
|
get items() {
|
|
@@ -328,7 +328,7 @@ function ac() {
|
|
|
328
328
|
getItem: (a) => r().dataSets[a] || {}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function ac(e) {
|
|
332
332
|
const t = O((a) => a.addCommand), n = O((a) => a.popCommand), i = O((a) => a.getCommands), r = O((a) => a.clearCommands);
|
|
333
333
|
return {
|
|
334
334
|
commands: i(e),
|
|
@@ -363,7 +363,7 @@ function bi(e, t, n = {}) {
|
|
|
363
363
|
}
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function oc(e) {
|
|
367
367
|
return function(t, n) {
|
|
368
368
|
const i = e();
|
|
369
369
|
return bi(t, n, i);
|
|
@@ -396,7 +396,7 @@ function gt(e, t, n = {}) {
|
|
|
396
396
|
function Si(e, t = {}) {
|
|
397
397
|
return te(e, null, t);
|
|
398
398
|
}
|
|
399
|
-
function
|
|
399
|
+
function cc(e, t = {}) {
|
|
400
400
|
return te(e, null, t);
|
|
401
401
|
}
|
|
402
402
|
function X(e, t) {
|
|
@@ -1001,8 +1001,8 @@ var nn = en(), Se = /* @__PURE__ */ function() {
|
|
|
1001
1001
|
}), C = ee({}, C, s.rule.fields);
|
|
1002
1002
|
var w = {};
|
|
1003
1003
|
Object.keys(C).forEach(function(_) {
|
|
1004
|
-
var M = C[_],
|
|
1005
|
-
w[_] =
|
|
1004
|
+
var M = C[_], K = Array.isArray(M) ? M : [M];
|
|
1005
|
+
w[_] = K.map(D.bind(null, _));
|
|
1006
1006
|
});
|
|
1007
1007
|
var E = new e(w);
|
|
1008
1008
|
E.messages(l.messages), s.rule.options && (s.rule.options.messages = l.messages, s.rule.options.error = l.error), E.validate(s.value, s.rule.options || l, function(_) {
|
|
@@ -1208,10 +1208,10 @@ function ie(e, t) {
|
|
|
1208
1208
|
return e.find((n) => ta(n.value, t));
|
|
1209
1209
|
}
|
|
1210
1210
|
let Vt = {};
|
|
1211
|
-
function
|
|
1211
|
+
function sc(e) {
|
|
1212
1212
|
Vt = { ...Vt, ...e };
|
|
1213
1213
|
}
|
|
1214
|
-
function
|
|
1214
|
+
function Yt() {
|
|
1215
1215
|
return Vt;
|
|
1216
1216
|
}
|
|
1217
1217
|
async function ne(e) {
|
|
@@ -1241,12 +1241,12 @@ async function ln(e) {
|
|
|
1241
1241
|
function rn() {
|
|
1242
1242
|
return Vt.getAccessToken ? Vt.getAccessToken() : null;
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1244
|
+
const lc = {
|
|
1245
1245
|
post: (e, t, n) => ne({ url: e, data: t, method: "POST", ...n }),
|
|
1246
1246
|
get: (e, t, n) => ne({ url: e, params: t, method: "GET", ...n })
|
|
1247
1247
|
};
|
|
1248
1248
|
function ea() {
|
|
1249
|
-
const e =
|
|
1249
|
+
const e = Yt(), t = B(
|
|
1250
1250
|
async (l, m) => {
|
|
1251
1251
|
const v = typeof l == "string" ? { url: l, ...m } : l;
|
|
1252
1252
|
return ne(v);
|
|
@@ -1632,7 +1632,7 @@ const Be = {
|
|
|
1632
1632
|
colorLink: "colorLink",
|
|
1633
1633
|
colorLinkHover: "colorLinkHover",
|
|
1634
1634
|
colorLinkActive: "colorLinkActive"
|
|
1635
|
-
},
|
|
1635
|
+
}, uc = Object.keys(Be), fc = [
|
|
1636
1636
|
{ label: "主色", value: "colorPrimary" },
|
|
1637
1637
|
{ label: "成功", value: "colorSuccess" },
|
|
1638
1638
|
{ label: "警告", value: "colorWarning" },
|
|
@@ -1655,7 +1655,7 @@ function Ke(e) {
|
|
|
1655
1655
|
return e;
|
|
1656
1656
|
}
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1658
|
+
function dc(e, t) {
|
|
1659
1659
|
if (e) {
|
|
1660
1660
|
if (In(e)) {
|
|
1661
1661
|
const n = Be[e];
|
|
@@ -1664,7 +1664,7 @@ function mc(e, t) {
|
|
|
1664
1664
|
return e;
|
|
1665
1665
|
}
|
|
1666
1666
|
}
|
|
1667
|
-
const
|
|
1667
|
+
const mc = ({
|
|
1668
1668
|
id: e,
|
|
1669
1669
|
text: t,
|
|
1670
1670
|
iconName: n,
|
|
@@ -1772,45 +1772,45 @@ const tr = (e) => {
|
|
|
1772
1772
|
addonAfter: T,
|
|
1773
1773
|
addonBefore: S,
|
|
1774
1774
|
...A
|
|
1775
|
-
} = e, N = Re(r, a, n), k = N.dataSet, C = N.dataSetField, w = N.sessionId, E = $t(""), _ = $t(null), M = O((
|
|
1775
|
+
} = e, N = Re(r, a, n), k = N.dataSet, C = N.dataSetField, w = N.sessionId, E = $t(""), _ = $t(null), M = O((U) => U.addCommand), K = O((U) => U.getDataSet), H = O((U) => U.setDataSet), P = O((U) => U.getProps), $ = O((U) => U.setProps), q = O((U) => U.setValidateResult), z = g(
|
|
1776
1776
|
() => tt(w, k),
|
|
1777
1777
|
[w, k]
|
|
1778
1778
|
), W = O(
|
|
1779
|
-
(
|
|
1779
|
+
(U) => {
|
|
1780
1780
|
var et;
|
|
1781
|
-
return w && t ? ((et =
|
|
1781
|
+
return w && t ? ((et = U.propsStore[`${w}_props`]) == null ? void 0 : et[t]) ?? null : null;
|
|
1782
1782
|
}
|
|
1783
1783
|
), R = g(
|
|
1784
1784
|
() => ye(w, k),
|
|
1785
1785
|
[w, k]
|
|
1786
|
-
),
|
|
1787
|
-
(
|
|
1786
|
+
), V = O(
|
|
1787
|
+
(U) => {
|
|
1788
1788
|
var et;
|
|
1789
|
-
return R && C ? ((et =
|
|
1789
|
+
return R && C ? ((et = U.validateStore[R]) == null ? void 0 : et[C]) ?? "" : "";
|
|
1790
1790
|
}
|
|
1791
|
-
),
|
|
1792
|
-
(
|
|
1793
|
-
),
|
|
1791
|
+
), G = O(
|
|
1792
|
+
(U) => z && C ? U.getDataSet(z, C) : void 0
|
|
1793
|
+
), j = g(
|
|
1794
1794
|
() => k ? tt(w, `${k}_validateAction`) : void 0,
|
|
1795
1795
|
[w, k]
|
|
1796
|
-
),
|
|
1797
|
-
(
|
|
1796
|
+
), L = O(
|
|
1797
|
+
(U) => {
|
|
1798
1798
|
var et;
|
|
1799
|
-
return
|
|
1799
|
+
return j ? (et = U.dataSets[j]) == null ? void 0 : et.validate : void 0;
|
|
1800
1800
|
}
|
|
1801
|
-
), rt = g(() =>
|
|
1801
|
+
), rt = g(() => G !== void 0 ? G : (W == null ? void 0 : W.value) !== void 0 ? W.value : m, [G, W == null ? void 0 : W.value, m]), it = g(
|
|
1802
1802
|
() => ka(A, W ?? null, { develop: i }),
|
|
1803
1803
|
[A, W, i]
|
|
1804
1804
|
), nt = B(
|
|
1805
|
-
(
|
|
1806
|
-
const et =
|
|
1805
|
+
(U) => {
|
|
1806
|
+
const et = U ?? "";
|
|
1807
1807
|
if (w && k && C && q(
|
|
1808
1808
|
w,
|
|
1809
1809
|
k,
|
|
1810
1810
|
C,
|
|
1811
1811
|
et
|
|
1812
1812
|
), w && t) {
|
|
1813
|
-
const Q =
|
|
1813
|
+
const Q = P(w, t) || {};
|
|
1814
1814
|
$(w, t, {
|
|
1815
1815
|
...Q,
|
|
1816
1816
|
validateStatus: et ? "error" : void 0,
|
|
@@ -1824,15 +1824,15 @@ const tr = (e) => {
|
|
|
1824
1824
|
C,
|
|
1825
1825
|
t,
|
|
1826
1826
|
q,
|
|
1827
|
-
|
|
1827
|
+
P,
|
|
1828
1828
|
$
|
|
1829
1829
|
]
|
|
1830
1830
|
), yt = B(
|
|
1831
|
-
(
|
|
1831
|
+
(U) => {
|
|
1832
1832
|
const et = Qn(p || []);
|
|
1833
1833
|
Fn(
|
|
1834
1834
|
et,
|
|
1835
|
-
|
|
1835
|
+
U,
|
|
1836
1836
|
() => nt(""),
|
|
1837
1837
|
(Q) => {
|
|
1838
1838
|
var lt;
|
|
@@ -1842,13 +1842,13 @@ const tr = (e) => {
|
|
|
1842
1842
|
},
|
|
1843
1843
|
[p, nt]
|
|
1844
1844
|
), Ct = B(
|
|
1845
|
-
(
|
|
1846
|
-
const et =
|
|
1845
|
+
(U) => {
|
|
1846
|
+
const et = U.target.value;
|
|
1847
1847
|
if (E.current = et, l) {
|
|
1848
|
-
l(et,
|
|
1848
|
+
l(et, U);
|
|
1849
1849
|
return;
|
|
1850
1850
|
}
|
|
1851
|
-
if (
|
|
1851
|
+
if (z && C && H(z, C, et), c && w) {
|
|
1852
1852
|
const { actionName: Q, arg: lt } = gt(c, et, {
|
|
1853
1853
|
id: t,
|
|
1854
1854
|
dataSet: k,
|
|
@@ -1863,9 +1863,9 @@ const tr = (e) => {
|
|
|
1863
1863
|
},
|
|
1864
1864
|
[
|
|
1865
1865
|
l,
|
|
1866
|
-
|
|
1866
|
+
z,
|
|
1867
1867
|
C,
|
|
1868
|
-
|
|
1868
|
+
H,
|
|
1869
1869
|
c,
|
|
1870
1870
|
w,
|
|
1871
1871
|
t,
|
|
@@ -1878,19 +1878,19 @@ const tr = (e) => {
|
|
|
1878
1878
|
]
|
|
1879
1879
|
), mt = B(() => {
|
|
1880
1880
|
if (!f) return;
|
|
1881
|
-
const
|
|
1882
|
-
yt(
|
|
1881
|
+
const U = z && C ? String(K(z, C) ?? "") : E.current;
|
|
1882
|
+
yt(U);
|
|
1883
1883
|
}, [
|
|
1884
1884
|
f,
|
|
1885
|
-
|
|
1885
|
+
z,
|
|
1886
1886
|
C,
|
|
1887
|
-
|
|
1887
|
+
K,
|
|
1888
1888
|
yt
|
|
1889
1889
|
]), I = B(
|
|
1890
|
-
(
|
|
1890
|
+
(U) => {
|
|
1891
1891
|
const Q = it.onPressEnter;
|
|
1892
1892
|
if (Q) {
|
|
1893
|
-
Q(
|
|
1893
|
+
Q(U);
|
|
1894
1894
|
return;
|
|
1895
1895
|
}
|
|
1896
1896
|
if (u && w) {
|
|
@@ -1943,15 +1943,15 @@ const tr = (e) => {
|
|
|
1943
1943
|
},
|
|
1944
1944
|
[]
|
|
1945
1945
|
), bt(() => {
|
|
1946
|
-
if (
|
|
1946
|
+
if (L == null || !z || !C)
|
|
1947
1947
|
return;
|
|
1948
|
-
const
|
|
1949
|
-
yt(
|
|
1950
|
-
}, [
|
|
1948
|
+
const U = String(K(z, C) ?? "");
|
|
1949
|
+
yt(U);
|
|
1950
|
+
}, [L, z, C, K, yt]);
|
|
1951
1951
|
const at = g(() => Na(h), [h]), _t = g(
|
|
1952
1952
|
() => at ? { components: { Input: at } } : void 0,
|
|
1953
1953
|
[at]
|
|
1954
|
-
), Ot = i ? void 0 : w && k && C ?
|
|
1954
|
+
), Ot = i ? void 0 : w && k && C ? V : (W == null ? void 0 : W.help) ?? "", Y = /* @__PURE__ */ ot(se, { children: [
|
|
1955
1955
|
/* @__PURE__ */ b(
|
|
1956
1956
|
Me,
|
|
1957
1957
|
{
|
|
@@ -1967,10 +1967,10 @@ const tr = (e) => {
|
|
|
1967
1967
|
),
|
|
1968
1968
|
Ot && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: Ot })
|
|
1969
1969
|
] });
|
|
1970
|
-
return _t ? /* @__PURE__ */ b(Mt, { theme: _t, children:
|
|
1970
|
+
return _t ? /* @__PURE__ */ b(Mt, { theme: _t, children: Y }) : Y;
|
|
1971
1971
|
};
|
|
1972
1972
|
tr.displayName = "AndInput";
|
|
1973
|
-
const
|
|
1973
|
+
const hc = qt.memo(tr), xn = 200, yc = ({
|
|
1974
1974
|
id: e,
|
|
1975
1975
|
sessionId: t,
|
|
1976
1976
|
develop: n,
|
|
@@ -1989,16 +1989,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
1989
1989
|
value: s,
|
|
1990
1990
|
...y
|
|
1991
1991
|
}) => {
|
|
1992
|
-
const u = O((
|
|
1992
|
+
const u = O((j) => j.addCommand), x = O((j) => j.setDataSet), D = $t(null), T = g(
|
|
1993
1993
|
() => tt(t, i),
|
|
1994
1994
|
[t, i]
|
|
1995
1995
|
), S = O(
|
|
1996
|
-
(
|
|
1997
|
-
var
|
|
1998
|
-
return t && e ? ((
|
|
1996
|
+
(j) => {
|
|
1997
|
+
var L;
|
|
1998
|
+
return t && e ? ((L = j.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
|
|
1999
1999
|
}
|
|
2000
2000
|
), A = O(
|
|
2001
|
-
(
|
|
2001
|
+
(j) => T && r ? j.getDataSet(T, r) : void 0
|
|
2002
2002
|
), { validate: N, help: k } = jt({
|
|
2003
2003
|
rules: a,
|
|
2004
2004
|
dataSet: i,
|
|
@@ -2007,36 +2007,36 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2007
2007
|
id: e,
|
|
2008
2008
|
develop: n
|
|
2009
2009
|
}), C = g(() => A !== void 0 ? A : (S == null ? void 0 : S.value) !== void 0 ? S.value : s, [A, S == null ? void 0 : S.value, s]), w = B(
|
|
2010
|
-
(
|
|
2011
|
-
|
|
2010
|
+
(j, L, rt) => {
|
|
2011
|
+
j && t && u(t, X(j, { type: L, value: rt }));
|
|
2012
2012
|
},
|
|
2013
2013
|
[t, u]
|
|
2014
2014
|
), E = B(
|
|
2015
|
-
(
|
|
2015
|
+
(j) => {
|
|
2016
2016
|
if (d) {
|
|
2017
|
-
d(
|
|
2017
|
+
d(j);
|
|
2018
2018
|
return;
|
|
2019
2019
|
}
|
|
2020
|
-
T && r && x(T, r,
|
|
2021
|
-
D.current = null, N(
|
|
2022
|
-
}, xn)), w(l, "change",
|
|
2020
|
+
T && r && x(T, r, j), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2021
|
+
D.current = null, N(j);
|
|
2022
|
+
}, xn)), w(l, "change", j);
|
|
2023
2023
|
},
|
|
2024
2024
|
[d, T, r, x, c, N, l, w]
|
|
2025
2025
|
), _ = B(() => {
|
|
2026
2026
|
o && N(C);
|
|
2027
2027
|
}, [o, N, C]), M = B(
|
|
2028
|
-
(
|
|
2028
|
+
(j) => {
|
|
2029
2029
|
if (y.onPressEnter) {
|
|
2030
|
-
y.onPressEnter(
|
|
2030
|
+
y.onPressEnter(j);
|
|
2031
2031
|
return;
|
|
2032
2032
|
}
|
|
2033
2033
|
if (m && t) {
|
|
2034
|
-
const { actionName:
|
|
2034
|
+
const { actionName: L, arg: rt } = gt(m, C, {
|
|
2035
2035
|
id: e,
|
|
2036
2036
|
dataSet: i,
|
|
2037
2037
|
dataSetField: r
|
|
2038
2038
|
});
|
|
2039
|
-
u(t, X(
|
|
2039
|
+
u(t, X(L, rt));
|
|
2040
2040
|
}
|
|
2041
2041
|
},
|
|
2042
2042
|
[
|
|
@@ -2049,7 +2049,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2049
2049
|
r,
|
|
2050
2050
|
u
|
|
2051
2051
|
]
|
|
2052
|
-
),
|
|
2052
|
+
), K = B(() => {
|
|
2053
2053
|
if (d) {
|
|
2054
2054
|
d(null);
|
|
2055
2055
|
return;
|
|
@@ -2057,12 +2057,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2057
2057
|
if (T && r && x(T, r, null), c && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2058
2058
|
D.current = null, N(null);
|
|
2059
2059
|
}, xn)), w(l, "change", null), v && t) {
|
|
2060
|
-
const { actionName:
|
|
2060
|
+
const { actionName: j, arg: L } = gt(v, null, {
|
|
2061
2061
|
id: e,
|
|
2062
2062
|
dataSet: i,
|
|
2063
2063
|
dataSetField: r
|
|
2064
2064
|
});
|
|
2065
|
-
u(t, X(
|
|
2065
|
+
u(t, X(j, L));
|
|
2066
2066
|
}
|
|
2067
2067
|
}, [
|
|
2068
2068
|
d,
|
|
@@ -2079,9 +2079,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2079
2079
|
i,
|
|
2080
2080
|
r,
|
|
2081
2081
|
u
|
|
2082
|
-
]),
|
|
2083
|
-
(
|
|
2084
|
-
w(p, "step", { value:
|
|
2082
|
+
]), H = B(
|
|
2083
|
+
(j, L) => {
|
|
2084
|
+
w(p, "step", { value: j, type: L.type });
|
|
2085
2085
|
},
|
|
2086
2086
|
[p, w]
|
|
2087
2087
|
);
|
|
@@ -2093,12 +2093,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2093
2093
|
), bt(() => {
|
|
2094
2094
|
f !== void 0 && C === void 0 && T && r && x(T, r, f);
|
|
2095
2095
|
}, [f, C, T, r, x]);
|
|
2096
|
-
const
|
|
2096
|
+
const P = g(
|
|
2097
2097
|
() => Jt(y, S ?? void 0),
|
|
2098
2098
|
[y, S]
|
|
2099
|
-
), { addonBefore: $, addonAfter: q, style:
|
|
2099
|
+
), { addonBefore: $, addonAfter: q, style: z, suffix: W, ...R } = P, V = g(() => {
|
|
2100
2100
|
if (!(h && C !== null && C !== void 0)) return W;
|
|
2101
|
-
const
|
|
2101
|
+
const L = /* @__PURE__ */ b(
|
|
2102
2102
|
"span",
|
|
2103
2103
|
{
|
|
2104
2104
|
role: "button",
|
|
@@ -2106,16 +2106,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2106
2106
|
style: { cursor: "pointer", marginInlineStart: 4 },
|
|
2107
2107
|
onMouseDown: (rt) => rt.preventDefault(),
|
|
2108
2108
|
onClick: (rt) => {
|
|
2109
|
-
rt.stopPropagation(),
|
|
2109
|
+
rt.stopPropagation(), K();
|
|
2110
2110
|
},
|
|
2111
2111
|
children: /* @__PURE__ */ b(Xr, {})
|
|
2112
2112
|
}
|
|
2113
2113
|
);
|
|
2114
|
-
return W == null || W === !1 ?
|
|
2114
|
+
return W == null || W === !1 ? L : /* @__PURE__ */ ot(se, { children: [
|
|
2115
2115
|
W,
|
|
2116
|
-
|
|
2116
|
+
L
|
|
2117
2117
|
] });
|
|
2118
|
-
}, [h, C, W,
|
|
2118
|
+
}, [h, C, W, K]), G = /* @__PURE__ */ b(
|
|
2119
2119
|
$n,
|
|
2120
2120
|
{
|
|
2121
2121
|
...R,
|
|
@@ -2128,14 +2128,14 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2128
2128
|
onChange: E,
|
|
2129
2129
|
onBlur: _,
|
|
2130
2130
|
onPressEnter: M,
|
|
2131
|
-
onStep:
|
|
2132
|
-
suffix:
|
|
2131
|
+
onStep: H,
|
|
2132
|
+
suffix: V,
|
|
2133
2133
|
status: k ? "error" : void 0,
|
|
2134
|
-
style: { width: "100%", ...
|
|
2134
|
+
style: { width: "100%", ...z }
|
|
2135
2135
|
}
|
|
2136
2136
|
);
|
|
2137
2137
|
return /* @__PURE__ */ ot("div", { style: { width: "100%" }, children: [
|
|
2138
|
-
$ || q ? /* @__PURE__ */ ot(
|
|
2138
|
+
$ || q ? /* @__PURE__ */ ot(Pt.Compact, { style: { width: "100%" }, children: [
|
|
2139
2139
|
$ && /* @__PURE__ */ b(
|
|
2140
2140
|
"div",
|
|
2141
2141
|
{
|
|
@@ -2153,7 +2153,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2153
2153
|
children: $
|
|
2154
2154
|
}
|
|
2155
2155
|
),
|
|
2156
|
-
|
|
2156
|
+
G,
|
|
2157
2157
|
q && /* @__PURE__ */ b(
|
|
2158
2158
|
"div",
|
|
2159
2159
|
{
|
|
@@ -2171,10 +2171,10 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2171
2171
|
children: q
|
|
2172
2172
|
}
|
|
2173
2173
|
)
|
|
2174
|
-
] }) :
|
|
2174
|
+
] }) : G,
|
|
2175
2175
|
k && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: k })
|
|
2176
2176
|
] });
|
|
2177
|
-
}, { TextArea: Oa } = Me, _a = 200,
|
|
2177
|
+
}, { TextArea: Oa } = Me, _a = 200, gc = ({
|
|
2178
2178
|
id: e,
|
|
2179
2179
|
sessionId: t,
|
|
2180
2180
|
develop: n,
|
|
@@ -2191,16 +2191,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2191
2191
|
defaultValue: d,
|
|
2192
2192
|
...f
|
|
2193
2193
|
}) => {
|
|
2194
|
-
const s = Re(i, r, t), y = s.dataSet, u = s.dataSetField, x = s.sessionId, D = O((
|
|
2194
|
+
const s = Re(i, r, t), y = s.dataSet, u = s.dataSetField, x = s.sessionId, D = O((P) => P.addCommand), T = O((P) => P.setDataSet), S = $t(null), A = g(
|
|
2195
2195
|
() => tt(x, y),
|
|
2196
2196
|
[x, y]
|
|
2197
2197
|
), N = O(
|
|
2198
|
-
(
|
|
2198
|
+
(P) => {
|
|
2199
2199
|
var $;
|
|
2200
|
-
return x && e ? (($ =
|
|
2200
|
+
return x && e ? (($ = P.propsStore[`${x}_props`]) == null ? void 0 : $[e]) ?? null : null;
|
|
2201
2201
|
}
|
|
2202
2202
|
), k = O(
|
|
2203
|
-
(
|
|
2203
|
+
(P) => A && u ? P.getDataSet(A, u) : void 0
|
|
2204
2204
|
), { validate: C, help: w } = jt({
|
|
2205
2205
|
rules: a,
|
|
2206
2206
|
dataSet: y,
|
|
@@ -2209,19 +2209,19 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2209
2209
|
id: e,
|
|
2210
2210
|
develop: n
|
|
2211
2211
|
}), E = g(() => k !== void 0 ? k : (N == null ? void 0 : N.value) !== void 0 ? N.value : p ?? d, [k, N == null ? void 0 : N.value, p, d]), _ = B(
|
|
2212
|
-
(
|
|
2213
|
-
const $ =
|
|
2212
|
+
(P) => {
|
|
2213
|
+
const $ = P.target.value;
|
|
2214
2214
|
if (h) {
|
|
2215
|
-
h($,
|
|
2215
|
+
h($, P);
|
|
2216
2216
|
return;
|
|
2217
2217
|
}
|
|
2218
2218
|
if (A && u && T(A, u, $), l && x) {
|
|
2219
|
-
const { actionName: q, arg:
|
|
2219
|
+
const { actionName: q, arg: z } = gt(l, $, {
|
|
2220
2220
|
id: e,
|
|
2221
2221
|
dataSet: y,
|
|
2222
2222
|
dataSetField: u
|
|
2223
2223
|
});
|
|
2224
|
-
D(x, X(q,
|
|
2224
|
+
D(x, X(q, z));
|
|
2225
2225
|
}
|
|
2226
2226
|
c && (S.current && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
2227
2227
|
S.current = null, C($);
|
|
@@ -2241,13 +2241,13 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2241
2241
|
]
|
|
2242
2242
|
), M = B(() => {
|
|
2243
2243
|
o && C(E);
|
|
2244
|
-
}, [o, C, E]),
|
|
2245
|
-
(
|
|
2244
|
+
}, [o, C, E]), K = B(
|
|
2245
|
+
(P) => {
|
|
2246
2246
|
if (f.onPressEnter) {
|
|
2247
|
-
f.onPressEnter(
|
|
2247
|
+
f.onPressEnter(P);
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
2250
|
-
if (m && x && !
|
|
2250
|
+
if (m && x && !P.shiftKey) {
|
|
2251
2251
|
const { actionName: $, arg: q } = gt(m, E, {
|
|
2252
2252
|
id: e,
|
|
2253
2253
|
dataSet: y,
|
|
@@ -2266,18 +2266,18 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2266
2266
|
u,
|
|
2267
2267
|
D
|
|
2268
2268
|
]
|
|
2269
|
-
),
|
|
2269
|
+
), H = B(() => {
|
|
2270
2270
|
if (f.onClear) {
|
|
2271
2271
|
f.onClear();
|
|
2272
2272
|
return;
|
|
2273
2273
|
}
|
|
2274
2274
|
if (v && x) {
|
|
2275
|
-
const { actionName:
|
|
2275
|
+
const { actionName: P, arg: $ } = gt(v, "", {
|
|
2276
2276
|
id: e,
|
|
2277
2277
|
dataSet: y,
|
|
2278
2278
|
dataSetField: u
|
|
2279
2279
|
});
|
|
2280
|
-
D(x, X(
|
|
2280
|
+
D(x, X(P, $));
|
|
2281
2281
|
}
|
|
2282
2282
|
}, [
|
|
2283
2283
|
f.onClear,
|
|
@@ -2302,14 +2302,14 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2302
2302
|
value: E,
|
|
2303
2303
|
onChange: _,
|
|
2304
2304
|
onBlur: M,
|
|
2305
|
-
onPressEnter:
|
|
2306
|
-
onClear:
|
|
2305
|
+
onPressEnter: K,
|
|
2306
|
+
onClear: H,
|
|
2307
2307
|
status: w ? "error" : void 0
|
|
2308
2308
|
}
|
|
2309
2309
|
),
|
|
2310
2310
|
w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
2311
2311
|
] });
|
|
2312
|
-
}, { Password: Ea } = Me, $a = 200,
|
|
2312
|
+
}, { Password: Ea } = Me, $a = 200, pc = ({
|
|
2313
2313
|
id: e,
|
|
2314
2314
|
sessionId: t,
|
|
2315
2315
|
develop: n,
|
|
@@ -2351,12 +2351,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2351
2351
|
return;
|
|
2352
2352
|
}
|
|
2353
2353
|
if (x && r && y(x, r, M), l && t) {
|
|
2354
|
-
const { actionName:
|
|
2354
|
+
const { actionName: K, arg: H } = gt(l, M, {
|
|
2355
2355
|
id: e,
|
|
2356
2356
|
dataSet: i,
|
|
2357
2357
|
dataSetField: r
|
|
2358
2358
|
});
|
|
2359
|
-
s(t, X(
|
|
2359
|
+
s(t, X(K, H));
|
|
2360
2360
|
}
|
|
2361
2361
|
c && (u.current && clearTimeout(u.current), u.current = setTimeout(() => {
|
|
2362
2362
|
u.current = null, S(M);
|
|
@@ -2383,12 +2383,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2383
2383
|
return;
|
|
2384
2384
|
}
|
|
2385
2385
|
if (m && t) {
|
|
2386
|
-
const { actionName: M, arg:
|
|
2386
|
+
const { actionName: M, arg: K } = gt(m, N, {
|
|
2387
2387
|
id: e,
|
|
2388
2388
|
dataSet: i,
|
|
2389
2389
|
dataSetField: r
|
|
2390
2390
|
});
|
|
2391
|
-
s(t, X(M,
|
|
2391
|
+
s(t, X(M, K));
|
|
2392
2392
|
}
|
|
2393
2393
|
},
|
|
2394
2394
|
[
|
|
@@ -2436,7 +2436,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2436
2436
|
),
|
|
2437
2437
|
A && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: A })
|
|
2438
2438
|
] });
|
|
2439
|
-
}, { Search: Ma } = Me,
|
|
2439
|
+
}, { Search: Ma } = Me, vc = ({
|
|
2440
2440
|
id: e,
|
|
2441
2441
|
sessionId: t,
|
|
2442
2442
|
develop: n,
|
|
@@ -2473,7 +2473,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2473
2473
|
o && t && p(t, X(o, T));
|
|
2474
2474
|
}, [l, o, t, p]);
|
|
2475
2475
|
return /* @__PURE__ */ b(Ma, { ...h, disabled: n ? !1 : h.disabled, value: u, onChange: x, onSearch: D });
|
|
2476
|
-
}, Ra = 200,
|
|
2476
|
+
}, Ra = 200, bc = ({
|
|
2477
2477
|
id: e,
|
|
2478
2478
|
sessionId: t,
|
|
2479
2479
|
develop: n,
|
|
@@ -2503,17 +2503,17 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2503
2503
|
const C = O((I) => I.addCommand), w = O((I) => I.setDataSet), E = $t(null), _ = ve(re), M = g(
|
|
2504
2504
|
() => tt(t, i),
|
|
2505
2505
|
[t, i]
|
|
2506
|
-
),
|
|
2506
|
+
), K = y ?? (_ == null ? void 0 : _.index), H = O(
|
|
2507
2507
|
(I) => {
|
|
2508
2508
|
var st;
|
|
2509
2509
|
return t && e ? ((st = I.propsStore[`${t}_props`]) == null ? void 0 : st[e]) ?? null : null;
|
|
2510
2510
|
}
|
|
2511
|
-
),
|
|
2511
|
+
), P = O(
|
|
2512
2512
|
(I) => M && r ? I.getDataSet(M, r) : void 0
|
|
2513
2513
|
), $ = g(
|
|
2514
|
-
() => (
|
|
2515
|
-
[
|
|
2516
|
-
), { options: q, loading:
|
|
2514
|
+
() => (H == null ? void 0 : H.optionsCfg) != null ? H.optionsCfg : c,
|
|
2515
|
+
[H == null ? void 0 : H.optionsCfg, c]
|
|
2516
|
+
), { options: q, loading: z } = we(
|
|
2517
2517
|
A || (a ? o : void 0)
|
|
2518
2518
|
), { options: W, loading: R } = un(
|
|
2519
2519
|
$ == null ? void 0 : $.url,
|
|
@@ -2524,39 +2524,39 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2524
2524
|
params: $ == null ? void 0 : $.params,
|
|
2525
2525
|
field: $ == null ? void 0 : $.field
|
|
2526
2526
|
}
|
|
2527
|
-
),
|
|
2527
|
+
), V = z || R, { validate: G, help: j } = jt({
|
|
2528
2528
|
rules: l,
|
|
2529
2529
|
dataSet: i,
|
|
2530
2530
|
dataSetField: r,
|
|
2531
2531
|
sessionId: t,
|
|
2532
2532
|
id: e,
|
|
2533
2533
|
develop: n
|
|
2534
|
-
}),
|
|
2535
|
-
() => Jt(k,
|
|
2536
|
-
[k,
|
|
2537
|
-
), it = g(() =>
|
|
2538
|
-
if (it.length === 0) return
|
|
2539
|
-
if (Array.isArray(
|
|
2540
|
-
return
|
|
2534
|
+
}), L = g(() => P != null && P !== "" ? P : (H == null ? void 0 : H.value) !== void 0 ? H.value : s ?? f, [P, H == null ? void 0 : H.value, s, f]), rt = g(
|
|
2535
|
+
() => Jt(k, H ?? void 0),
|
|
2536
|
+
[k, H]
|
|
2537
|
+
), it = g(() => H != null && H.options && Array.isArray(H.options) ? H.options : $ != null && $.url && W.length > 0 ? W : (A || a && o) && q.length > 0 ? q : d || [], [H == null ? void 0 : H.options, $ == null ? void 0 : $.url, W, A, a, o, q, d]), nt = g(() => {
|
|
2538
|
+
if (it.length === 0) return L;
|
|
2539
|
+
if (Array.isArray(L))
|
|
2540
|
+
return L.map((st) => {
|
|
2541
2541
|
var at;
|
|
2542
2542
|
return ((at = ie(it, st)) == null ? void 0 : at.value) ?? st;
|
|
2543
2543
|
});
|
|
2544
|
-
const I = ie(it,
|
|
2545
|
-
return (I == null ? void 0 : I.value) ??
|
|
2546
|
-
}, [
|
|
2544
|
+
const I = ie(it, L);
|
|
2545
|
+
return (I == null ? void 0 : I.value) ?? L;
|
|
2546
|
+
}, [L, it]), yt = B(
|
|
2547
2547
|
(I, st) => {
|
|
2548
2548
|
if (p) {
|
|
2549
2549
|
p(I, st);
|
|
2550
2550
|
return;
|
|
2551
2551
|
}
|
|
2552
2552
|
if (M && r && w(M, r, I), v && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
2553
|
-
E.current = null,
|
|
2553
|
+
E.current = null, G(I);
|
|
2554
2554
|
}, Ra)), h && t) {
|
|
2555
2555
|
const { actionName: at, arg: _t } = gt(h, I, {
|
|
2556
2556
|
id: e,
|
|
2557
2557
|
dataSet: i,
|
|
2558
2558
|
dataSetField: r,
|
|
2559
|
-
index:
|
|
2559
|
+
index: K
|
|
2560
2560
|
});
|
|
2561
2561
|
C(t, X(at, _t));
|
|
2562
2562
|
}
|
|
@@ -2567,16 +2567,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2567
2567
|
r,
|
|
2568
2568
|
w,
|
|
2569
2569
|
v,
|
|
2570
|
-
|
|
2570
|
+
G,
|
|
2571
2571
|
h,
|
|
2572
2572
|
t,
|
|
2573
2573
|
e,
|
|
2574
|
-
|
|
2574
|
+
K,
|
|
2575
2575
|
C
|
|
2576
2576
|
]
|
|
2577
2577
|
), Ct = B(() => {
|
|
2578
|
-
m &&
|
|
2579
|
-
}, [m,
|
|
2578
|
+
m && G(nt);
|
|
2579
|
+
}, [m, G, nt]);
|
|
2580
2580
|
bt(
|
|
2581
2581
|
() => () => {
|
|
2582
2582
|
E.current && clearTimeout(E.current);
|
|
@@ -2596,14 +2596,14 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2596
2596
|
onChange: yt,
|
|
2597
2597
|
onBlur: Ct,
|
|
2598
2598
|
filterOption: mt,
|
|
2599
|
-
loading:
|
|
2600
|
-
status:
|
|
2599
|
+
loading: V,
|
|
2600
|
+
status: j ? "error" : void 0,
|
|
2601
2601
|
style: { width: "100%", ...rt.style }
|
|
2602
2602
|
}
|
|
2603
2603
|
),
|
|
2604
|
-
|
|
2604
|
+
j && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: j })
|
|
2605
2605
|
] });
|
|
2606
|
-
},
|
|
2606
|
+
}, Sc = ({
|
|
2607
2607
|
id: e,
|
|
2608
2608
|
sessionId: t,
|
|
2609
2609
|
develop: n,
|
|
@@ -2677,7 +2677,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2677
2677
|
),
|
|
2678
2678
|
D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
2679
2679
|
] });
|
|
2680
|
-
},
|
|
2680
|
+
}, wc = ({
|
|
2681
2681
|
id: e,
|
|
2682
2682
|
sessionId: t,
|
|
2683
2683
|
develop: n,
|
|
@@ -2712,9 +2712,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2712
2712
|
develop: n
|
|
2713
2713
|
}), S = B((w) => {
|
|
2714
2714
|
if (!w) return null;
|
|
2715
|
-
if (
|
|
2715
|
+
if (Ut.isDayjs(w)) return w;
|
|
2716
2716
|
if (typeof w == "string") {
|
|
2717
|
-
const E =
|
|
2717
|
+
const E = Ut(w, o);
|
|
2718
2718
|
return E.isValid() ? E : null;
|
|
2719
2719
|
}
|
|
2720
2720
|
return null;
|
|
@@ -2729,19 +2729,19 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2729
2729
|
}
|
|
2730
2730
|
const _ = Array.isArray(E) ? E[0] : E;
|
|
2731
2731
|
if (y && r && s(y, r, _), m && D(_), a && t) {
|
|
2732
|
-
const { actionName: M, arg:
|
|
2732
|
+
const { actionName: M, arg: K } = gt(a, _, {
|
|
2733
2733
|
id: e,
|
|
2734
2734
|
dataSet: i,
|
|
2735
2735
|
dataSetField: r
|
|
2736
2736
|
});
|
|
2737
|
-
f(t, X(M,
|
|
2737
|
+
f(t, X(M, K));
|
|
2738
2738
|
}
|
|
2739
2739
|
},
|
|
2740
2740
|
[v, y, r, s, m, D, a, t, e, f]
|
|
2741
2741
|
);
|
|
2742
2742
|
bt(() => {
|
|
2743
2743
|
if (p && A === null && y && r) {
|
|
2744
|
-
const w =
|
|
2744
|
+
const w = Ut(p).format(o);
|
|
2745
2745
|
s(y, r, w);
|
|
2746
2746
|
}
|
|
2747
2747
|
}, [p, A, y, r, s, o]);
|
|
@@ -2768,7 +2768,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2768
2768
|
),
|
|
2769
2769
|
T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
|
|
2770
2770
|
] });
|
|
2771
|
-
},
|
|
2771
|
+
}, Dc = ({
|
|
2772
2772
|
id: e,
|
|
2773
2773
|
sessionId: t,
|
|
2774
2774
|
develop: n,
|
|
@@ -2798,9 +2798,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2798
2798
|
develop: n
|
|
2799
2799
|
}), S = B((w) => {
|
|
2800
2800
|
if (!w) return null;
|
|
2801
|
-
if (
|
|
2801
|
+
if (Ut.isDayjs(w)) return w;
|
|
2802
2802
|
if (typeof w == "string") {
|
|
2803
|
-
const E =
|
|
2803
|
+
const E = Ut(w, o);
|
|
2804
2804
|
return E.isValid() ? E : null;
|
|
2805
2805
|
}
|
|
2806
2806
|
return null;
|
|
@@ -2811,8 +2811,8 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2811
2811
|
}
|
|
2812
2812
|
const _ = E || "";
|
|
2813
2813
|
if (u && r && y(u, r, _), h && D(_), a && t) {
|
|
2814
|
-
const { actionName: M, arg:
|
|
2815
|
-
f(t, X(M,
|
|
2814
|
+
const { actionName: M, arg: K } = gt(a, _, { id: e, dataSet: i, dataSetField: r });
|
|
2815
|
+
f(t, X(M, K));
|
|
2816
2816
|
}
|
|
2817
2817
|
}, [c, u, r, y, h, D, a, t, e, f]), k = B(() => {
|
|
2818
2818
|
p && D(A ? A.format(o) : "");
|
|
@@ -2833,7 +2833,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2833
2833
|
),
|
|
2834
2834
|
T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: "12px", marginTop: "4px" }, children: T })
|
|
2835
2835
|
] });
|
|
2836
|
-
}, { RangePicker: ja } = Rn,
|
|
2836
|
+
}, { RangePicker: ja } = Rn, xc = ({
|
|
2837
2837
|
id: e,
|
|
2838
2838
|
sessionId: t,
|
|
2839
2839
|
develop: n,
|
|
@@ -2868,8 +2868,8 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2868
2868
|
develop: n
|
|
2869
2869
|
}), S = B((w) => {
|
|
2870
2870
|
if (!w || !Array.isArray(w) || w.length !== 2) return null;
|
|
2871
|
-
const [E, _] = w, M =
|
|
2872
|
-
return M.isValid() &&
|
|
2871
|
+
const [E, _] = w, M = Ut.isDayjs(E) ? E : Ut(E, o), K = Ut.isDayjs(_) ? _ : Ut(_, o);
|
|
2872
|
+
return M.isValid() && K.isValid() ? [M, K] : null;
|
|
2873
2873
|
}, [o]), A = g(() => {
|
|
2874
2874
|
const w = x ?? (u == null ? void 0 : u.value) ?? h ?? p;
|
|
2875
2875
|
return S(w);
|
|
@@ -2910,7 +2910,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2910
2910
|
),
|
|
2911
2911
|
T && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: T })
|
|
2912
2912
|
] });
|
|
2913
|
-
},
|
|
2913
|
+
}, Ac = ({
|
|
2914
2914
|
id: e,
|
|
2915
2915
|
sessionId: t,
|
|
2916
2916
|
develop: n,
|
|
@@ -2932,16 +2932,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2932
2932
|
remoteUrl: x,
|
|
2933
2933
|
...D
|
|
2934
2934
|
}) => {
|
|
2935
|
-
const T = O((
|
|
2935
|
+
const T = O((z) => z.addCommand), S = O((z) => z.setDataSet), A = g(
|
|
2936
2936
|
() => tt(t, i),
|
|
2937
2937
|
[t, i]
|
|
2938
2938
|
), N = O(
|
|
2939
|
-
(
|
|
2939
|
+
(z) => {
|
|
2940
2940
|
var W;
|
|
2941
|
-
return t && e ? ((W =
|
|
2941
|
+
return t && e ? ((W = z.propsStore[`${t}_props`]) == null ? void 0 : W[e]) ?? null : null;
|
|
2942
2942
|
}
|
|
2943
2943
|
), k = O(
|
|
2944
|
-
(
|
|
2944
|
+
(z) => A && r ? z.getDataSet(A, r) : void 0
|
|
2945
2945
|
), { validate: C, help: w } = jt({
|
|
2946
2946
|
rules: v,
|
|
2947
2947
|
dataSet: i,
|
|
@@ -2956,27 +2956,27 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2956
2956
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
2957
2957
|
immediate: !!(o != null && o.url)
|
|
2958
2958
|
}
|
|
2959
|
-
),
|
|
2960
|
-
if (
|
|
2961
|
-
const
|
|
2962
|
-
return (
|
|
2963
|
-
}, [E,
|
|
2959
|
+
), K = g(() => N != null && N.options ? N.options : o != null && o.url && M.length > 0 ? M : y && _.length > 0 ? _ : a, [N == null ? void 0 : N.options, o == null ? void 0 : o.url, M, y, _, a]), H = g(() => {
|
|
2960
|
+
if (K.length === 0) return E;
|
|
2961
|
+
const z = ie(K, E);
|
|
2962
|
+
return (z == null ? void 0 : z.value) ?? E;
|
|
2963
|
+
}, [E, K]), P = g(
|
|
2964
2964
|
() => Jt(D, N ?? void 0),
|
|
2965
2965
|
[D, N]
|
|
2966
2966
|
), $ = B(
|
|
2967
|
-
(
|
|
2968
|
-
const W =
|
|
2967
|
+
(z) => {
|
|
2968
|
+
const W = z.target.value;
|
|
2969
2969
|
if (d) {
|
|
2970
2970
|
d(W);
|
|
2971
2971
|
return;
|
|
2972
2972
|
}
|
|
2973
2973
|
if (A && r && S(A, r, W), p && C(W), c && t) {
|
|
2974
|
-
const { actionName: R, arg:
|
|
2974
|
+
const { actionName: R, arg: V } = gt(c, W, {
|
|
2975
2975
|
id: e,
|
|
2976
2976
|
dataSet: i,
|
|
2977
2977
|
dataSetField: r
|
|
2978
2978
|
});
|
|
2979
|
-
T(t, X(R,
|
|
2979
|
+
T(t, X(R, V));
|
|
2980
2980
|
}
|
|
2981
2981
|
},
|
|
2982
2982
|
[
|
|
@@ -2992,31 +2992,31 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
2992
2992
|
T
|
|
2993
2993
|
]
|
|
2994
2994
|
), q = B(() => {
|
|
2995
|
-
h && C(
|
|
2996
|
-
}, [h, C,
|
|
2995
|
+
h && C(H);
|
|
2996
|
+
}, [h, C, H]);
|
|
2997
2997
|
return /* @__PURE__ */ ot("div", { onBlur: q, children: [
|
|
2998
2998
|
/* @__PURE__ */ b(
|
|
2999
2999
|
Ve.Group,
|
|
3000
3000
|
{
|
|
3001
|
-
...
|
|
3002
|
-
disabled: n ? !1 :
|
|
3003
|
-
value:
|
|
3001
|
+
...P,
|
|
3002
|
+
disabled: n ? !1 : P.disabled,
|
|
3003
|
+
value: H,
|
|
3004
3004
|
onChange: $,
|
|
3005
3005
|
buttonStyle: (N == null ? void 0 : N.buttonStyle) ?? l,
|
|
3006
3006
|
optionType: (N == null ? void 0 : N.optionType) ?? m,
|
|
3007
|
-
children: m === "button" ?
|
|
3008
|
-
|
|
3007
|
+
children: m === "button" ? K.map((z) => /* @__PURE__ */ b(Ve.Button, { value: z.value, disabled: z.disabled, children: z.label }, z.value)) : /* @__PURE__ */ b(
|
|
3008
|
+
Pt,
|
|
3009
3009
|
{
|
|
3010
3010
|
orientation: (N == null ? void 0 : N.direction) ?? u ?? "horizontal",
|
|
3011
3011
|
wrap: !0,
|
|
3012
|
-
children:
|
|
3012
|
+
children: K.map((z) => /* @__PURE__ */ b(Ve, { value: z.value, disabled: z.disabled, children: z.label }, z.value))
|
|
3013
3013
|
}
|
|
3014
3014
|
)
|
|
3015
3015
|
}
|
|
3016
3016
|
),
|
|
3017
3017
|
w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
3018
3018
|
] });
|
|
3019
|
-
},
|
|
3019
|
+
}, Cc = ({
|
|
3020
3020
|
id: e,
|
|
3021
3021
|
sessionId: t,
|
|
3022
3022
|
develop: n,
|
|
@@ -3041,16 +3041,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3041
3041
|
remoteUrl: T,
|
|
3042
3042
|
...S
|
|
3043
3043
|
}) => {
|
|
3044
|
-
const A = O((
|
|
3044
|
+
const A = O((V) => V.addCommand), N = O((V) => V.setDataSet), k = g(
|
|
3045
3045
|
() => tt(t, i),
|
|
3046
3046
|
[t, i]
|
|
3047
3047
|
), C = O(
|
|
3048
|
-
(
|
|
3049
|
-
var
|
|
3050
|
-
return t && e ? ((
|
|
3048
|
+
(V) => {
|
|
3049
|
+
var G;
|
|
3050
|
+
return t && e ? ((G = V.propsStore[`${t}_props`]) == null ? void 0 : G[e]) ?? null : null;
|
|
3051
3051
|
}
|
|
3052
3052
|
), w = O(
|
|
3053
|
-
(
|
|
3053
|
+
(V) => k && r ? V.getDataSet(k, r) : void 0
|
|
3054
3054
|
), { validate: E, help: _ } = jt({
|
|
3055
3055
|
rules: m,
|
|
3056
3056
|
dataSet: i,
|
|
@@ -3058,55 +3058,55 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3058
3058
|
sessionId: t,
|
|
3059
3059
|
id: e,
|
|
3060
3060
|
develop: n
|
|
3061
|
-
}), { options: M } = we(x), { options:
|
|
3061
|
+
}), { options: M } = we(x), { options: K } = un(
|
|
3062
3062
|
o == null ? void 0 : o.url,
|
|
3063
3063
|
{
|
|
3064
3064
|
valueKey: (o == null ? void 0 : o.codeKey) || "value",
|
|
3065
3065
|
labelKey: (o == null ? void 0 : o.labelKey) || "label",
|
|
3066
3066
|
immediate: !!(o != null && o.url)
|
|
3067
3067
|
}
|
|
3068
|
-
),
|
|
3068
|
+
), H = g(() => {
|
|
3069
3069
|
if (!c)
|
|
3070
3070
|
return w !== void 0 ? !!w : (C == null ? void 0 : C.checked) !== void 0 ? C.checked : f ?? y;
|
|
3071
|
-
}, [c, w, C == null ? void 0 : C.checked, f, y]),
|
|
3071
|
+
}, [c, w, C == null ? void 0 : C.checked, f, y]), P = g(() => C != null && C.options ? C.options : o != null && o.url && K.length > 0 ? K : x && M.length > 0 ? M : a, [C == null ? void 0 : C.options, o == null ? void 0 : o.url, K, x, M, a]), $ = g(() => {
|
|
3072
3072
|
if (!c) return [];
|
|
3073
|
-
let
|
|
3074
|
-
return Array.isArray(w) ?
|
|
3075
|
-
var
|
|
3076
|
-
return ((
|
|
3073
|
+
let V = [];
|
|
3074
|
+
return Array.isArray(w) ? V = w : Array.isArray(C == null ? void 0 : C.values) ? V = C.values : V = s || [], P.length === 0 ? V : V.map((G) => {
|
|
3075
|
+
var j;
|
|
3076
|
+
return ((j = ie(P, G)) == null ? void 0 : j.value) ?? G;
|
|
3077
3077
|
});
|
|
3078
|
-
}, [c, w, C == null ? void 0 : C.values, s,
|
|
3078
|
+
}, [c, w, C == null ? void 0 : C.values, s, P]), q = g(
|
|
3079
3079
|
() => Jt(S, C ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3080
3080
|
[S, C]
|
|
3081
|
-
),
|
|
3082
|
-
const
|
|
3081
|
+
), z = B((V) => {
|
|
3082
|
+
const G = V.target.checked;
|
|
3083
3083
|
if (p) {
|
|
3084
|
-
p(
|
|
3084
|
+
p(G);
|
|
3085
3085
|
return;
|
|
3086
3086
|
}
|
|
3087
|
-
if (k && r && N(k, r,
|
|
3088
|
-
const { actionName:
|
|
3089
|
-
A(t, X(
|
|
3087
|
+
if (k && r && N(k, r, G), h && E(G), l && t) {
|
|
3088
|
+
const { actionName: j, arg: L } = gt(l, G, { id: e, dataSet: i, dataSetField: r });
|
|
3089
|
+
A(t, X(j, L));
|
|
3090
3090
|
}
|
|
3091
|
-
}, [p, k, r, N, h, E, l, t, e, A]), W = B((
|
|
3091
|
+
}, [p, k, r, N, h, E, l, t, e, A]), W = B((V) => {
|
|
3092
3092
|
if (d) {
|
|
3093
|
-
d(
|
|
3093
|
+
d(V);
|
|
3094
3094
|
return;
|
|
3095
3095
|
}
|
|
3096
|
-
if (k && r && N(k, r,
|
|
3097
|
-
const { actionName:
|
|
3098
|
-
A(t, X(
|
|
3096
|
+
if (k && r && N(k, r, V), h && E(V), l && t) {
|
|
3097
|
+
const { actionName: G, arg: j } = gt(l, V, { id: e, dataSet: i, dataSetField: r });
|
|
3098
|
+
A(t, X(G, j));
|
|
3099
3099
|
}
|
|
3100
3100
|
}, [d, k, r, N, h, E, l, t, e, A]), R = B(() => {
|
|
3101
|
-
v && E(c ? $ :
|
|
3102
|
-
}, [v, E, c, $,
|
|
3103
|
-
return c &&
|
|
3101
|
+
v && E(c ? $ : H);
|
|
3102
|
+
}, [v, E, c, $, H]);
|
|
3103
|
+
return c && P.length > 0 ? /* @__PURE__ */ ot("div", { onBlur: R, children: [
|
|
3104
3104
|
/* @__PURE__ */ b(ce.Group, { ...q, value: $, onChange: W, disabled: n ? !1 : q.disabled, children: /* @__PURE__ */ b(
|
|
3105
|
-
|
|
3105
|
+
Pt,
|
|
3106
3106
|
{
|
|
3107
3107
|
direction: q.direction ?? D,
|
|
3108
3108
|
wrap: !0,
|
|
3109
|
-
children:
|
|
3109
|
+
children: P.map((V) => /* @__PURE__ */ b(ce, { value: V.value, disabled: V.disabled, children: V.label }, V.value))
|
|
3110
3110
|
}
|
|
3111
3111
|
) }),
|
|
3112
3112
|
_ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _ })
|
|
@@ -3116,14 +3116,14 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3116
3116
|
{
|
|
3117
3117
|
...q,
|
|
3118
3118
|
disabled: n ? !1 : q.disabled,
|
|
3119
|
-
checked:
|
|
3120
|
-
onChange:
|
|
3119
|
+
checked: H,
|
|
3120
|
+
onChange: z,
|
|
3121
3121
|
children: u
|
|
3122
3122
|
}
|
|
3123
3123
|
),
|
|
3124
3124
|
_ && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: _ })
|
|
3125
3125
|
] });
|
|
3126
|
-
},
|
|
3126
|
+
}, Tc = ({
|
|
3127
3127
|
id: e,
|
|
3128
3128
|
sessionId: t,
|
|
3129
3129
|
develop: n,
|
|
@@ -3189,7 +3189,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3189
3189
|
),
|
|
3190
3190
|
D && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: D })
|
|
3191
3191
|
] });
|
|
3192
|
-
},
|
|
3192
|
+
}, Nc = ({
|
|
3193
3193
|
id: e,
|
|
3194
3194
|
sessionId: t,
|
|
3195
3195
|
develop: n,
|
|
@@ -3241,7 +3241,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3241
3241
|
return null;
|
|
3242
3242
|
};
|
|
3243
3243
|
return n(t, e) || [];
|
|
3244
|
-
}, Cn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Tn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]),
|
|
3244
|
+
}, Cn = (e) => Array.isArray(e) && e.length > 0 && !Array.isArray(e[0]), Tn = (e) => Array.isArray(e) && e.length > 0 && Array.isArray(e[0]), kc = ({
|
|
3245
3245
|
id: e,
|
|
3246
3246
|
sessionId: t,
|
|
3247
3247
|
develop: n,
|
|
@@ -3273,20 +3273,20 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3273
3273
|
develop: n
|
|
3274
3274
|
}), _ = g(() => (a == null ? void 0 : a.url) && D.length > 0, [a == null ? void 0 : a.url, D.length]), M = g(() => {
|
|
3275
3275
|
let $ = k ?? d ?? p ?? [];
|
|
3276
|
-
return typeof $ == "string" ? _ ? An($).map((
|
|
3277
|
-
}, [k, d, p, _, D]),
|
|
3276
|
+
return typeof $ == "string" ? _ ? An($).map((z) => Ka(z, D)).filter((z) => Array.isArray(z) && z.length > 0) : [$] : Cn($) && _ ? $.map((z) => An(z)).filter((z) => Array.isArray(z) && z.length > 0) : Tn($) && _ ? $.filter((q) => Array.isArray(q) && q.length > 0) : $;
|
|
3277
|
+
}, [k, d, p, _, D]), K = g(() => a != null && a.url && D.length > 0 ? D : h || [], [a == null ? void 0 : a.url, D, h]);
|
|
3278
3278
|
bt(() => {
|
|
3279
3279
|
(async () => {
|
|
3280
3280
|
if (a != null && a.url) {
|
|
3281
3281
|
A(!0);
|
|
3282
3282
|
try {
|
|
3283
|
-
const q = await ne({ url: a.url, method: "GET" }),
|
|
3283
|
+
const q = await ne({ url: a.url, method: "GET" }), z = Array.isArray(q) ? q : q != null && q.data ? Array.isArray(q.data) ? q.data : q.data.list || q.data.records || [] : [], W = a.codeKey || "value", R = a.labelKey || "label", V = a.childrenKey || "children", G = a.maxLevel || 5, j = er(z, {
|
|
3284
3284
|
codeKey: W,
|
|
3285
3285
|
labelKey: R,
|
|
3286
|
-
childrenKey:
|
|
3287
|
-
maxLevel:
|
|
3286
|
+
childrenKey: V,
|
|
3287
|
+
maxLevel: G
|
|
3288
3288
|
});
|
|
3289
|
-
T(
|
|
3289
|
+
T(j);
|
|
3290
3290
|
} catch (q) {
|
|
3291
3291
|
console.error("Failed to load remote options:", q), T([]);
|
|
3292
3292
|
} finally {
|
|
@@ -3295,14 +3295,14 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3295
3295
|
}
|
|
3296
3296
|
})();
|
|
3297
3297
|
}, [a == null ? void 0 : a.url, a == null ? void 0 : a.codeKey, a == null ? void 0 : a.labelKey, a == null ? void 0 : a.childrenKey, a == null ? void 0 : a.maxLevel]);
|
|
3298
|
-
const
|
|
3298
|
+
const H = B(
|
|
3299
3299
|
($, q) => {
|
|
3300
3300
|
if (v) {
|
|
3301
3301
|
v($, q);
|
|
3302
3302
|
return;
|
|
3303
3303
|
}
|
|
3304
|
-
let
|
|
3305
|
-
if (Cn($) && _ ?
|
|
3304
|
+
let z = $;
|
|
3305
|
+
if (Cn($) && _ ? z = String($[$.length - 1] || "") : Tn($) && _ && (z = $.map((W) => W.join(","))), N && r && u(N, r, z), l && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
3306
3306
|
x.current = null, C($);
|
|
3307
3307
|
}, Ba)), m && t) {
|
|
3308
3308
|
const { actionName: W, arg: R } = gt(m, $, {
|
|
@@ -3326,7 +3326,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3326
3326
|
y,
|
|
3327
3327
|
_
|
|
3328
3328
|
]
|
|
3329
|
-
),
|
|
3329
|
+
), P = B(() => {
|
|
3330
3330
|
c && C(M);
|
|
3331
3331
|
}, [c, C, M]);
|
|
3332
3332
|
return bt(
|
|
@@ -3342,9 +3342,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3342
3342
|
disabled: n ? !1 : s.disabled,
|
|
3343
3343
|
open: n ? !1 : void 0,
|
|
3344
3344
|
value: M,
|
|
3345
|
-
options:
|
|
3346
|
-
onChange:
|
|
3347
|
-
onBlur:
|
|
3345
|
+
options: K,
|
|
3346
|
+
onChange: H,
|
|
3347
|
+
onBlur: P,
|
|
3348
3348
|
loading: S,
|
|
3349
3349
|
status: E,
|
|
3350
3350
|
style: { width: "100%", ...s.style }
|
|
@@ -3352,7 +3352,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3352
3352
|
),
|
|
3353
3353
|
w && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
3354
3354
|
] });
|
|
3355
|
-
},
|
|
3355
|
+
}, Oc = ({
|
|
3356
3356
|
id: e,
|
|
3357
3357
|
sessionId: t,
|
|
3358
3358
|
develop: n,
|
|
@@ -3378,8 +3378,8 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3378
3378
|
[t, i]
|
|
3379
3379
|
), A = O(
|
|
3380
3380
|
(q) => {
|
|
3381
|
-
var
|
|
3382
|
-
return t && e ? ((
|
|
3381
|
+
var z;
|
|
3382
|
+
return t && e ? ((z = q.propsStore[`${t}_props`]) == null ? void 0 : z[e]) ?? null : null;
|
|
3383
3383
|
}
|
|
3384
3384
|
), N = O(
|
|
3385
3385
|
(q) => S && r ? q.getDataSet(S, r) : void 0
|
|
@@ -3397,37 +3397,37 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3397
3397
|
() => Jt(x, A ?? void 0),
|
|
3398
3398
|
[x, A]
|
|
3399
3399
|
), _ = B(
|
|
3400
|
-
(q,
|
|
3400
|
+
(q, z, W) => {
|
|
3401
3401
|
if (o) {
|
|
3402
|
-
o(q,
|
|
3402
|
+
o(q, z, W);
|
|
3403
3403
|
return;
|
|
3404
3404
|
}
|
|
3405
3405
|
if (S && r && T(S, r, q), y && k(q), a && t) {
|
|
3406
|
-
const { actionName: R, arg:
|
|
3406
|
+
const { actionName: R, arg: V } = gt(a, q, {
|
|
3407
3407
|
id: e,
|
|
3408
3408
|
dataSet: i,
|
|
3409
3409
|
dataSetField: r
|
|
3410
3410
|
});
|
|
3411
|
-
D(t, X(R,
|
|
3411
|
+
D(t, X(R, V));
|
|
3412
3412
|
}
|
|
3413
3413
|
},
|
|
3414
3414
|
[o, S, r, T, y, k, a, t, e, D]
|
|
3415
3415
|
), M = B(() => {
|
|
3416
3416
|
u && k(w);
|
|
3417
|
-
}, [u, k, w]),
|
|
3417
|
+
}, [u, k, w]), K = g(() => {
|
|
3418
3418
|
if (!f) return;
|
|
3419
3419
|
const q = {};
|
|
3420
|
-
return Object.entries(f).forEach(([
|
|
3421
|
-
W !== "" && W !== void 0 && W !== null && (q[
|
|
3420
|
+
return Object.entries(f).forEach(([z, W]) => {
|
|
3421
|
+
W !== "" && W !== void 0 && W !== null && (q[z] = W);
|
|
3422
3422
|
}), Object.keys(q).length > 0 ? q : void 0;
|
|
3423
|
-
}, [f]),
|
|
3424
|
-
if (
|
|
3423
|
+
}, [f]), H = g(() => {
|
|
3424
|
+
if (K)
|
|
3425
3425
|
return {
|
|
3426
3426
|
components: {
|
|
3427
|
-
TreeSelect:
|
|
3427
|
+
TreeSelect: K
|
|
3428
3428
|
}
|
|
3429
3429
|
};
|
|
3430
|
-
}, [
|
|
3430
|
+
}, [K]), P = C ? "error" : void 0, $ = /* @__PURE__ */ ot("div", { onBlur: M, children: [
|
|
3431
3431
|
/* @__PURE__ */ b(
|
|
3432
3432
|
vr,
|
|
3433
3433
|
{
|
|
@@ -3440,13 +3440,13 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3440
3440
|
style: { width: "100%", ...E.style },
|
|
3441
3441
|
styles: p,
|
|
3442
3442
|
classNames: d,
|
|
3443
|
-
status:
|
|
3443
|
+
status: P
|
|
3444
3444
|
}
|
|
3445
3445
|
),
|
|
3446
3446
|
C && /* @__PURE__ */ b("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: C })
|
|
3447
3447
|
] });
|
|
3448
|
-
return
|
|
3449
|
-
},
|
|
3448
|
+
return H ? /* @__PURE__ */ b(Mt, { theme: H, children: $ }) : $;
|
|
3449
|
+
}, _c = ({
|
|
3450
3450
|
id: e,
|
|
3451
3451
|
sessionId: t,
|
|
3452
3452
|
develop: n,
|
|
@@ -3465,16 +3465,16 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3465
3465
|
action: s,
|
|
3466
3466
|
...y
|
|
3467
3467
|
}) => {
|
|
3468
|
-
const u = Re(i, r, t), x = u.dataSet, D = u.dataSetField, T = u.sessionId, S = O((
|
|
3468
|
+
const u = Re(i, r, t), x = u.dataSet, D = u.dataSetField, T = u.sessionId, S = O((Y) => Y.addCommand), A = O((Y) => Y.setDataSet), N = g(
|
|
3469
3469
|
() => tt(T, x),
|
|
3470
3470
|
[T, x]
|
|
3471
3471
|
), k = O(
|
|
3472
|
-
(
|
|
3473
|
-
var
|
|
3474
|
-
return T && e ? ((
|
|
3472
|
+
(Y) => {
|
|
3473
|
+
var U;
|
|
3474
|
+
return T && e ? ((U = Y.propsStore[`${T}_props`]) == null ? void 0 : U[e]) ?? null : null;
|
|
3475
3475
|
}
|
|
3476
3476
|
), C = O(
|
|
3477
|
-
(
|
|
3477
|
+
(Y) => N && D ? Y.getDataSet(N, D) : void 0
|
|
3478
3478
|
), { validate: w, help: E } = jt({
|
|
3479
3479
|
rules: c,
|
|
3480
3480
|
dataSet: x,
|
|
@@ -3482,12 +3482,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3482
3482
|
sessionId: T,
|
|
3483
3483
|
id: e,
|
|
3484
3484
|
develop: n
|
|
3485
|
-
}), _ = B((
|
|
3485
|
+
}), _ = B((Y) => Y.map((U) => {
|
|
3486
3486
|
var et;
|
|
3487
|
-
return ((et =
|
|
3488
|
-
}).filter((
|
|
3489
|
-
const
|
|
3490
|
-
return
|
|
3487
|
+
return ((et = U == null ? void 0 : U.response) == null ? void 0 : et.src) ?? (U == null ? void 0 : U.src) ?? (U == null ? void 0 : U.url) ?? (U == null ? void 0 : U.thumbUrl) ?? "";
|
|
3488
|
+
}).filter((U) => U && typeof U == "string"), []), M = B((Y) => {
|
|
3489
|
+
const U = Yt().viewRes, et = (Q) => (U ? U(Q) : Q) || Q;
|
|
3490
|
+
return Y.map((Q, lt) => {
|
|
3491
3491
|
const ft = et(Q);
|
|
3492
3492
|
return {
|
|
3493
3493
|
uid: `src-${lt}-${Q}`,
|
|
@@ -3498,9 +3498,9 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3498
3498
|
response: { src: Q }
|
|
3499
3499
|
};
|
|
3500
3500
|
});
|
|
3501
|
-
}, []),
|
|
3502
|
-
const
|
|
3503
|
-
return
|
|
3501
|
+
}, []), K = B((Y) => {
|
|
3502
|
+
const U = Yt().viewRes, et = (Q) => (Q && U ? U(Q) : Q) || Q;
|
|
3503
|
+
return Y.map((Q) => {
|
|
3504
3504
|
var F;
|
|
3505
3505
|
const lt = ((F = Q == null ? void 0 : Q.response) == null ? void 0 : F.src) ?? (Q == null ? void 0 : Q.src) ?? (Q == null ? void 0 : Q.url) ?? (Q == null ? void 0 : Q.thumbUrl) ?? "", ft = typeof lt == "string" ? et(lt) : lt, xt = {};
|
|
3506
3506
|
for (const ht of Object.keys(Q)) {
|
|
@@ -3509,45 +3509,45 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3509
3509
|
}
|
|
3510
3510
|
return ft && typeof ft == "string" && (xt.url = ft, xt.thumbUrl = ft), xt;
|
|
3511
3511
|
});
|
|
3512
|
-
}, []), [
|
|
3513
|
-
const
|
|
3514
|
-
if (
|
|
3515
|
-
if (typeof
|
|
3516
|
-
if (Array.isArray(
|
|
3517
|
-
return
|
|
3518
|
-
}
|
|
3519
|
-
}, [C, k == null ? void 0 : k.fileList, h, M,
|
|
3512
|
+
}, []), [H, P] = dt(null), $ = g(() => {
|
|
3513
|
+
const Y = C ?? (k == null ? void 0 : k.fileList) ?? h;
|
|
3514
|
+
if (Y != null) {
|
|
3515
|
+
if (typeof Y == "string" && Y) return M([Y]);
|
|
3516
|
+
if (Array.isArray(Y))
|
|
3517
|
+
return Y.length > 0 && typeof Y[0] == "string" ? M(Y) : K(Y);
|
|
3518
|
+
}
|
|
3519
|
+
}, [C, k == null ? void 0 : k.fileList, h, M, K]), q = H ?? $, z = g(
|
|
3520
3520
|
() => Jt(y, k ?? void 0, { skipKeys: ["value", "help", "validateStatus", "fileList"] }),
|
|
3521
3521
|
[y, k]
|
|
3522
|
-
), W = B((
|
|
3523
|
-
const { file:
|
|
3524
|
-
if (
|
|
3522
|
+
), W = B((Y) => Y.size / 1024 / 1024 < f ? !0 : (Ce.error(`文件大小不能超过 ${f}MB`), !1), [f]), R = B(async (Y) => {
|
|
3523
|
+
const { file: U, onSuccess: et, onError: Q, onProgress: lt } = Y;
|
|
3524
|
+
if (Yt().upload)
|
|
3525
3525
|
try {
|
|
3526
3526
|
lt == null || lt({ percent: 30 });
|
|
3527
|
-
const xt = await Xn(
|
|
3527
|
+
const xt = await Xn(U, {
|
|
3528
3528
|
url: d,
|
|
3529
3529
|
headers: {
|
|
3530
3530
|
Authorization: rn() ? `Bearer ${rn()}` : ""
|
|
3531
3531
|
}
|
|
3532
3532
|
});
|
|
3533
|
-
lt == null || lt({ percent: 100 }), et == null || et(xt,
|
|
3533
|
+
lt == null || lt({ percent: 100 }), et == null || et(xt, U);
|
|
3534
3534
|
} catch (xt) {
|
|
3535
3535
|
Q == null || Q(xt), Ce.error("上传失败");
|
|
3536
3536
|
}
|
|
3537
3537
|
else
|
|
3538
3538
|
Q == null || Q(new Error("Upload handler not configured")), Ce.warning("上传功能未配置");
|
|
3539
|
-
}, [d]),
|
|
3540
|
-
(
|
|
3539
|
+
}, [d]), V = B(
|
|
3540
|
+
(Y) => {
|
|
3541
3541
|
if (v) {
|
|
3542
|
-
v(
|
|
3542
|
+
v(Y);
|
|
3543
3543
|
return;
|
|
3544
3544
|
}
|
|
3545
|
-
const
|
|
3546
|
-
N && D && (et.length > 0 || !Array.isArray(
|
|
3545
|
+
const U = Array.isArray(Y.fileList) ? K(Y.fileList) : Y.fileList, et = Array.isArray(U) ? _(U) : [], Q = Array.isArray(U) && U.some((ft) => (ft == null ? void 0 : ft.status) === "uploading");
|
|
3546
|
+
N && D && (et.length > 0 || !Array.isArray(U) || U.length === 0) ? (A(N, D, et), P(null)) : Q ? P(U) : U.length === 0 && P(null), m && w(U), a && T && S(
|
|
3547
3547
|
T,
|
|
3548
3548
|
X(a, {
|
|
3549
|
-
file:
|
|
3550
|
-
fileList:
|
|
3549
|
+
file: Y.file,
|
|
3550
|
+
fileList: U,
|
|
3551
3551
|
src: et
|
|
3552
3552
|
})
|
|
3553
3553
|
);
|
|
@@ -3562,46 +3562,46 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3562
3562
|
a,
|
|
3563
3563
|
T,
|
|
3564
3564
|
S,
|
|
3565
|
-
|
|
3565
|
+
K,
|
|
3566
3566
|
_
|
|
3567
3567
|
]
|
|
3568
|
-
),
|
|
3568
|
+
), G = B(() => {
|
|
3569
3569
|
l && w(q);
|
|
3570
|
-
}, [l, w, q]),
|
|
3570
|
+
}, [l, w, q]), j = B((Y) => {
|
|
3571
3571
|
var ft;
|
|
3572
|
-
const
|
|
3573
|
-
if (!
|
|
3574
|
-
const et = ((ft =
|
|
3572
|
+
const U = Y.url || Y.thumbUrl;
|
|
3573
|
+
if (!U) return "";
|
|
3574
|
+
const et = ((ft = Y.response) == null ? void 0 : ft.src) ?? (typeof U == "string" ? U : ""), Q = Yt().viewRes, lt = et && Q ? Q(et) : U;
|
|
3575
3575
|
return String(lt).replace(/([?&])download=1(&|$)/, (xt, F, ht) => ht ? F : "");
|
|
3576
|
-
}, []),
|
|
3576
|
+
}, []), L = B((Y) => {
|
|
3577
3577
|
var Q, lt;
|
|
3578
|
-
const
|
|
3579
|
-
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(
|
|
3580
|
-
}, [
|
|
3578
|
+
const U = ((Q = Y.response) == null ? void 0 : Q.src) ?? Y.name ?? "", et = ((lt = String(U).split(".").pop()) == null ? void 0 : lt.toLowerCase()) || "";
|
|
3579
|
+
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(et) || /^data:image\//.test(j(Y));
|
|
3580
|
+
}, [j]), [rt, it] = dt({
|
|
3581
3581
|
url: "",
|
|
3582
3582
|
name: "",
|
|
3583
3583
|
urls: [],
|
|
3584
3584
|
current: 0,
|
|
3585
3585
|
open: !1
|
|
3586
|
-
}), nt = B((
|
|
3587
|
-
const
|
|
3588
|
-
if (
|
|
3589
|
-
if (
|
|
3590
|
-
const et = q.filter((ft) =>
|
|
3591
|
-
it({ url:
|
|
3592
|
-
} else
|
|
3593
|
-
}, [
|
|
3594
|
-
(
|
|
3586
|
+
}), nt = B((Y) => {
|
|
3587
|
+
const U = j(Y);
|
|
3588
|
+
if (U)
|
|
3589
|
+
if (L(Y) && (q != null && q.length)) {
|
|
3590
|
+
const et = q.filter((ft) => L(ft)), Q = et.map((ft) => j(ft)).filter(Boolean), lt = et.findIndex((ft) => (ft.uid || ft.url) === (Y.uid || Y.url));
|
|
3591
|
+
it({ url: U, name: Y.name, urls: Q, current: lt >= 0 ? lt : 0, open: !0 });
|
|
3592
|
+
} else L(Y) || window.open(U, "_blank");
|
|
3593
|
+
}, [j, L, q]), Ct = !!Yt().upload && !s, mt = z, I = mt.buttonText ?? o, st = mt.listType ?? y.listType, at = mt.maxCount, _t = (q == null ? void 0 : q.length) ?? 0, Ot = typeof at == "number" && _t >= at, Bt = B(
|
|
3594
|
+
(Y) => Ot ? (Ce.warning(`最多只能上传 ${at} 个文件`), !1) : W(Y),
|
|
3595
3595
|
[Ot, at, W]
|
|
3596
3596
|
);
|
|
3597
|
-
return /* @__PURE__ */ ot("div", { onBlur:
|
|
3597
|
+
return /* @__PURE__ */ ot("div", { onBlur: G, children: [
|
|
3598
3598
|
/* @__PURE__ */ b(
|
|
3599
3599
|
br,
|
|
3600
3600
|
{
|
|
3601
|
-
...
|
|
3602
|
-
disabled: n ? !1 :
|
|
3601
|
+
...z,
|
|
3602
|
+
disabled: n ? !1 : z.disabled,
|
|
3603
3603
|
fileList: q,
|
|
3604
|
-
onChange:
|
|
3604
|
+
onChange: V,
|
|
3605
3605
|
onPreview: nt,
|
|
3606
3606
|
beforeUpload: Bt,
|
|
3607
3607
|
customRequest: Ct ? R : void 0,
|
|
@@ -3619,19 +3619,19 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3619
3619
|
{
|
|
3620
3620
|
preview: {
|
|
3621
3621
|
current: rt.current,
|
|
3622
|
-
onOpenChange: (
|
|
3622
|
+
onOpenChange: (Y) => !Y && it((U) => ({ ...U, open: !1 }))
|
|
3623
3623
|
},
|
|
3624
|
-
children: rt.urls.map((
|
|
3624
|
+
children: rt.urls.map((Y, U) => /* @__PURE__ */ b(
|
|
3625
3625
|
Qt,
|
|
3626
3626
|
{
|
|
3627
|
-
src:
|
|
3627
|
+
src: Y,
|
|
3628
3628
|
style: { width: 1, height: 1 },
|
|
3629
3629
|
preview: {
|
|
3630
|
-
open: rt.open && rt.current ===
|
|
3630
|
+
open: rt.open && rt.current === U,
|
|
3631
3631
|
onOpenChange: (et) => !et && it((Q) => ({ ...Q, open: !1 }))
|
|
3632
3632
|
}
|
|
3633
3633
|
},
|
|
3634
|
-
|
|
3634
|
+
U
|
|
3635
3635
|
))
|
|
3636
3636
|
}
|
|
3637
3637
|
) : /* @__PURE__ */ b(
|
|
@@ -3642,12 +3642,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3642
3642
|
style: { width: 1, height: 1 },
|
|
3643
3643
|
preview: {
|
|
3644
3644
|
open: rt.open,
|
|
3645
|
-
onOpenChange: (
|
|
3645
|
+
onOpenChange: (Y) => !Y && it((U) => ({ ...U, open: !1 }))
|
|
3646
3646
|
}
|
|
3647
3647
|
}
|
|
3648
3648
|
) })
|
|
3649
3649
|
] });
|
|
3650
|
-
},
|
|
3650
|
+
}, Ec = ({
|
|
3651
3651
|
id: e,
|
|
3652
3652
|
sessionId: t,
|
|
3653
3653
|
develop: n,
|
|
@@ -3666,18 +3666,18 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3666
3666
|
searchAction: f,
|
|
3667
3667
|
...s
|
|
3668
3668
|
}) => {
|
|
3669
|
-
const y = O((
|
|
3669
|
+
const y = O((K) => K.addCommand), u = O((K) => K.getDataSet), x = O((K) => K.setDataSet), D = g(
|
|
3670
3670
|
() => tt(t, i),
|
|
3671
3671
|
[t, i]
|
|
3672
3672
|
), [T, S] = dt(h || []), [, A] = dt(!1), N = qt.useRef(void 0), { get: k } = ea(), C = g(() => {
|
|
3673
3673
|
if (D && r) return u(D, r);
|
|
3674
|
-
}, [D, r, u]), w = g(() => C ?? m ?? v, [C, m, v]), E = B((
|
|
3674
|
+
}, [D, r, u]), w = g(() => C ?? m ?? v, [C, m, v]), E = B((K) => {
|
|
3675
3675
|
if (!(d != null && d.queryApi)) {
|
|
3676
3676
|
h && S(
|
|
3677
3677
|
h.filter(
|
|
3678
|
-
(
|
|
3679
|
-
var
|
|
3680
|
-
return ((
|
|
3678
|
+
(H) => {
|
|
3679
|
+
var P, $;
|
|
3680
|
+
return ((P = H.value) == null ? void 0 : P.toString().toLowerCase().includes(K.toLowerCase())) || (($ = H.label) == null ? void 0 : $.toString().toLowerCase().includes(K.toLowerCase()));
|
|
3681
3681
|
}
|
|
3682
3682
|
)
|
|
3683
3683
|
);
|
|
@@ -3687,21 +3687,21 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3687
3687
|
if (d != null && d.queryApi) {
|
|
3688
3688
|
A(!0);
|
|
3689
3689
|
try {
|
|
3690
|
-
const { queryApi:
|
|
3691
|
-
|
|
3692
|
-
|
|
3690
|
+
const { queryApi: H, keyWordParamName: P = "keyword", valueKey: $ = "value", labelKey: q = "label", fixedParams: z = [] } = d, W = {};
|
|
3691
|
+
P && (W[P] = K), Array.isArray(z) && z.forEach((j) => {
|
|
3692
|
+
j.key && (W[j.key] = j.value);
|
|
3693
3693
|
});
|
|
3694
|
-
const R = await k(
|
|
3695
|
-
let
|
|
3696
|
-
Array.isArray(R) ?
|
|
3697
|
-
const
|
|
3698
|
-
value:
|
|
3699
|
-
label:
|
|
3700
|
-
...
|
|
3694
|
+
const R = await k(H, W);
|
|
3695
|
+
let V = [];
|
|
3696
|
+
Array.isArray(R) ? V = R : R && Array.isArray(R.data) ? V = R.data : R && R.data && Array.isArray(R.data.records) ? V = R.data.records : R && R.result && Array.isArray(R.result) && (V = R.result);
|
|
3697
|
+
const G = V.map((j) => ({
|
|
3698
|
+
value: j[$],
|
|
3699
|
+
label: j[q] || j[$],
|
|
3700
|
+
...j
|
|
3701
3701
|
}));
|
|
3702
|
-
S(
|
|
3703
|
-
} catch (
|
|
3704
|
-
console.error("Failed to fetch remote options:",
|
|
3702
|
+
S(G);
|
|
3703
|
+
} catch (H) {
|
|
3704
|
+
console.error("Failed to fetch remote options:", H), S([]);
|
|
3705
3705
|
} finally {
|
|
3706
3706
|
A(!1);
|
|
3707
3707
|
}
|
|
@@ -3711,21 +3711,21 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3711
3711
|
qt.useEffect(() => {
|
|
3712
3712
|
!(d != null && d.queryApi) && h && S(h);
|
|
3713
3713
|
}, [h, d == null ? void 0 : d.queryApi]);
|
|
3714
|
-
const _ = B((
|
|
3714
|
+
const _ = B((K) => {
|
|
3715
3715
|
if (c) {
|
|
3716
|
-
c(
|
|
3716
|
+
c(K);
|
|
3717
3717
|
return;
|
|
3718
3718
|
}
|
|
3719
|
-
if (D && r && x(D, r,
|
|
3720
|
-
const { actionName:
|
|
3721
|
-
y(t, X(
|
|
3719
|
+
if (D && r && x(D, r, K), a && t) {
|
|
3720
|
+
const { actionName: H, arg: P } = gt(a, K, { id: e, dataSet: i, dataSetField: r });
|
|
3721
|
+
y(t, X(H, P));
|
|
3722
3722
|
}
|
|
3723
|
-
}, [c, D, r, x, a, t, e, y]), M = B((
|
|
3723
|
+
}, [c, D, r, x, a, t, e, y]), M = B((K, H) => {
|
|
3724
3724
|
if (l) {
|
|
3725
|
-
l(
|
|
3725
|
+
l(K, H);
|
|
3726
3726
|
return;
|
|
3727
3727
|
}
|
|
3728
|
-
o && t && y(t, X(o, { value:
|
|
3728
|
+
o && t && y(t, X(o, { value: K, option: H }));
|
|
3729
3729
|
}, [l, o, t, y]);
|
|
3730
3730
|
return /* @__PURE__ */ b(
|
|
3731
3731
|
Sr,
|
|
@@ -3741,7 +3741,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3741
3741
|
style: { width: "100%", ...s.style }
|
|
3742
3742
|
}
|
|
3743
3743
|
);
|
|
3744
|
-
},
|
|
3744
|
+
}, $c = ({
|
|
3745
3745
|
id: e,
|
|
3746
3746
|
sessionId: t,
|
|
3747
3747
|
develop: n,
|
|
@@ -3776,12 +3776,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3776
3776
|
};
|
|
3777
3777
|
return /* @__PURE__ */ ot(Ee, { ...f, form: s, onFinish: D, children: [
|
|
3778
3778
|
d,
|
|
3779
|
-
(c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ ot(
|
|
3779
|
+
(c || l) && /* @__PURE__ */ b(Ee.Item, { children: /* @__PURE__ */ ot(Pt, { children: [
|
|
3780
3780
|
c && /* @__PURE__ */ b(Xt, { type: "primary", htmlType: "submit", children: m }),
|
|
3781
3781
|
l && /* @__PURE__ */ b(Xt, { onClick: T, children: v })
|
|
3782
3782
|
] }) })
|
|
3783
3783
|
] });
|
|
3784
|
-
},
|
|
3784
|
+
}, Mc = ({
|
|
3785
3785
|
id: e,
|
|
3786
3786
|
sessionId: t,
|
|
3787
3787
|
develop: n,
|
|
@@ -3796,7 +3796,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3796
3796
|
return t;
|
|
3797
3797
|
}
|
|
3798
3798
|
return e;
|
|
3799
|
-
},
|
|
3799
|
+
}, Rc = ({
|
|
3800
3800
|
id: e,
|
|
3801
3801
|
sessionId: t,
|
|
3802
3802
|
develop: n,
|
|
@@ -3826,26 +3826,26 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3826
3826
|
token: w,
|
|
3827
3827
|
...E
|
|
3828
3828
|
}) => {
|
|
3829
|
-
const _ = O((I) => I.addCommand), M = O((I) => I.getDataSet),
|
|
3829
|
+
const _ = O((I) => I.addCommand), M = O((I) => I.getDataSet), K = O((I) => I.setDataSet), H = g(
|
|
3830
3830
|
() => tt(t, i),
|
|
3831
3831
|
[t, i]
|
|
3832
|
-
),
|
|
3833
|
-
if (
|
|
3834
|
-
const I = M(
|
|
3832
|
+
), P = g(() => Wt(C, {}), [C]), $ = g(() => Wt(w, {}), [w]), q = g(() => Wt(f, ["源列表", "目标列表"]), [f]), z = g(() => Wt(s, [">", "<"]), [s]), W = g(() => Wt(y, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [y]), R = g(() => Wt(p, !1), [p]), V = g(() => {
|
|
3833
|
+
if (H && r) {
|
|
3834
|
+
const I = M(H, r);
|
|
3835
3835
|
if (Array.isArray(I)) return I;
|
|
3836
3836
|
}
|
|
3837
|
-
}, [
|
|
3838
|
-
if (
|
|
3839
|
-
const I = M(
|
|
3837
|
+
}, [H, r, M]), G = g(() => {
|
|
3838
|
+
if (H && r) {
|
|
3839
|
+
const I = M(H, `${r}.dataSource`);
|
|
3840
3840
|
if (Array.isArray(I)) return I;
|
|
3841
3841
|
}
|
|
3842
|
-
}, [
|
|
3842
|
+
}, [H, r, M]), j = g(() => n ? G ?? Wt(a, []) : H ? G ?? [] : Wt(a, []), [n, H, G, a]), L = g(() => n ? V ?? Wt(o, []) : H ? V ?? [] : Wt(o, []), [n, H, V, o]), rt = g(() => Wt(c, []), [c]), it = B((I, st, at) => {
|
|
3843
3843
|
if (S) {
|
|
3844
3844
|
S(I, st, at);
|
|
3845
3845
|
return;
|
|
3846
3846
|
}
|
|
3847
|
-
|
|
3848
|
-
}, [S,
|
|
3847
|
+
H && r && K(H, r, I), u && t && _(t, X(u, { targetKeys: I, direction: st, moveKeys: at }));
|
|
3848
|
+
}, [S, H, r, K, u, t, _]), nt = B((I, st) => {
|
|
3849
3849
|
if (A) {
|
|
3850
3850
|
A(I, st);
|
|
3851
3851
|
return;
|
|
@@ -3866,8 +3866,8 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3866
3866
|
}, [k, T, t, _]), mt = /* @__PURE__ */ b(
|
|
3867
3867
|
wr,
|
|
3868
3868
|
{
|
|
3869
|
-
dataSource:
|
|
3870
|
-
targetKeys:
|
|
3869
|
+
dataSource: j,
|
|
3870
|
+
targetKeys: L,
|
|
3871
3871
|
selectedKeys: rt,
|
|
3872
3872
|
disabled: l,
|
|
3873
3873
|
showSearch: m,
|
|
@@ -3876,13 +3876,13 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3876
3876
|
pagination: R,
|
|
3877
3877
|
status: d || void 0,
|
|
3878
3878
|
titles: q,
|
|
3879
|
-
actions:
|
|
3879
|
+
actions: z,
|
|
3880
3880
|
locale: W,
|
|
3881
3881
|
onChange: it,
|
|
3882
3882
|
onSelectChange: nt,
|
|
3883
3883
|
onSearch: yt,
|
|
3884
3884
|
onScroll: Ct,
|
|
3885
|
-
styles:
|
|
3885
|
+
styles: P,
|
|
3886
3886
|
render: (I) => I.title,
|
|
3887
3887
|
...E
|
|
3888
3888
|
}
|
|
@@ -3908,7 +3908,7 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3908
3908
|
value: n.value,
|
|
3909
3909
|
icon: n.icon ? La(n.icon) : void 0,
|
|
3910
3910
|
disabled: n.disabled
|
|
3911
|
-
})),
|
|
3911
|
+
})), jc = ({
|
|
3912
3912
|
id: e,
|
|
3913
3913
|
sessionId: t,
|
|
3914
3914
|
develop: n,
|
|
@@ -3939,12 +3939,12 @@ const yc = qt.memo(tr), xn = 200, gc = ({
|
|
|
3939
3939
|
if (typeof M == "string") return M;
|
|
3940
3940
|
}
|
|
3941
3941
|
}, [S, r, D]) ?? o, E = B((M) => {
|
|
3942
|
-
const
|
|
3942
|
+
const K = String(M);
|
|
3943
3943
|
if (f) {
|
|
3944
|
-
f(
|
|
3944
|
+
f(K);
|
|
3945
3945
|
return;
|
|
3946
3946
|
}
|
|
3947
|
-
S && r && T(S, r,
|
|
3947
|
+
S && r && T(S, r, K), d && t && x(t, X(d, { value: K }));
|
|
3948
3948
|
}, [f, S, r, T, d, t, x]), _ = /* @__PURE__ */ b(
|
|
3949
3949
|
Dr,
|
|
3950
3950
|
{
|
|
@@ -4081,7 +4081,7 @@ const Wa = ({ dictCode: e, value: t }) => {
|
|
|
4081
4081
|
}, Ya = (e, t) => {
|
|
4082
4082
|
let n = "";
|
|
4083
4083
|
try {
|
|
4084
|
-
const i =
|
|
4084
|
+
const i = Ut(e);
|
|
4085
4085
|
i.isValid() && (t.dateFormat === "date" ? n = i.format("YYYY-MM-DD") : t.dateFormat === "time" ? n = i.format("HH:mm:ss") : (t.dateFormat, n = i.format("YYYY-MM-DD HH:mm:ss")));
|
|
4086
4086
|
} catch {
|
|
4087
4087
|
n = "";
|
|
@@ -4179,75 +4179,75 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4179
4179
|
},
|
|
4180
4180
|
[v]
|
|
4181
4181
|
), N = B(
|
|
4182
|
-
(R,
|
|
4182
|
+
(R, V, G, j) => kn(R, V, G ?? y, j ?? x),
|
|
4183
4183
|
[y, x]
|
|
4184
4184
|
), k = B(() => {
|
|
4185
4185
|
d(r);
|
|
4186
|
-
const R = a.map((
|
|
4186
|
+
const R = a.map((V) => ({ ...V }));
|
|
4187
4187
|
s(R), u(c), D(m), A(kn(r, R, c, m));
|
|
4188
4188
|
}, [r, a, c, m, A]), C = B(
|
|
4189
4189
|
(R) => {
|
|
4190
|
-
s((
|
|
4191
|
-
const
|
|
4192
|
-
return A(N(p,
|
|
4190
|
+
s((V) => {
|
|
4191
|
+
const G = V.map((j) => j.key === R ? { ...j, visible: !j.visible } : j);
|
|
4192
|
+
return A(N(p, G)), G;
|
|
4193
4193
|
});
|
|
4194
4194
|
},
|
|
4195
4195
|
[p, N, A]
|
|
4196
4196
|
), w = B(
|
|
4197
|
-
(R,
|
|
4198
|
-
s((
|
|
4199
|
-
const
|
|
4200
|
-
return A(N(p,
|
|
4197
|
+
(R, V) => {
|
|
4198
|
+
s((G) => {
|
|
4199
|
+
const j = G.map((L) => L.key === R ? { ...L, fixed: V } : L);
|
|
4200
|
+
return A(N(p, j)), j;
|
|
4201
4201
|
});
|
|
4202
4202
|
},
|
|
4203
4203
|
[p, N, A]
|
|
4204
4204
|
), E = B(
|
|
4205
|
-
(R,
|
|
4206
|
-
s((
|
|
4207
|
-
const
|
|
4208
|
-
return A(N(p,
|
|
4205
|
+
(R, V) => {
|
|
4206
|
+
s((G) => {
|
|
4207
|
+
const j = G.map((L) => L.key === R ? { ...L, width: V } : L);
|
|
4208
|
+
return A(N(p, j)), j;
|
|
4209
4209
|
});
|
|
4210
4210
|
},
|
|
4211
4211
|
[p, N, A]
|
|
4212
4212
|
), _ = B(
|
|
4213
|
-
(R,
|
|
4214
|
-
s((
|
|
4215
|
-
const
|
|
4216
|
-
if (!
|
|
4217
|
-
const
|
|
4213
|
+
(R, V) => {
|
|
4214
|
+
s((G) => {
|
|
4215
|
+
const j = G.find((nt) => nt.key === R);
|
|
4216
|
+
if (!j) return G;
|
|
4217
|
+
const L = typeof j.width == "number" ? j.width : 80, rt = Math.max(He, L + V), it = G.map((nt) => nt.key === R ? { ...nt, width: rt } : nt);
|
|
4218
4218
|
return A(N(p, it)), it;
|
|
4219
4219
|
});
|
|
4220
4220
|
},
|
|
4221
4221
|
[p, N, A]
|
|
4222
4222
|
), M = B(
|
|
4223
|
-
(R,
|
|
4224
|
-
if (
|
|
4225
|
-
const
|
|
4226
|
-
|
|
4223
|
+
(R, V) => {
|
|
4224
|
+
if (V < 0 || V >= f.length) return;
|
|
4225
|
+
const G = [...f], [j] = G.splice(R, 1);
|
|
4226
|
+
G.splice(V, 0, j), s(G), A(N(p, G));
|
|
4227
4227
|
},
|
|
4228
4228
|
[f, p, N, A]
|
|
4229
|
-
),
|
|
4229
|
+
), K = B(
|
|
4230
4230
|
(R) => {
|
|
4231
4231
|
d(R), A(N(R, f));
|
|
4232
4232
|
},
|
|
4233
4233
|
[f, N, A]
|
|
4234
|
-
),
|
|
4234
|
+
), H = B(
|
|
4235
4235
|
(R) => {
|
|
4236
4236
|
u(R), A(N(p, f, R, x));
|
|
4237
4237
|
},
|
|
4238
4238
|
[p, f, x, N, A]
|
|
4239
|
-
),
|
|
4239
|
+
), P = B(
|
|
4240
4240
|
(R) => {
|
|
4241
4241
|
D(R), A(N(p, f, y, R));
|
|
4242
4242
|
},
|
|
4243
4243
|
[p, f, y, N, A]
|
|
4244
|
-
), $ = (R) => (
|
|
4245
|
-
S(R),
|
|
4246
|
-
}, q = (R) => (
|
|
4247
|
-
|
|
4248
|
-
},
|
|
4249
|
-
let R = t.y,
|
|
4250
|
-
return typeof window < "u" && (
|
|
4244
|
+
), $ = (R) => (V) => {
|
|
4245
|
+
S(R), V.dataTransfer.effectAllowed = "move", V.dataTransfer.setData("text/plain", String(R));
|
|
4246
|
+
}, q = (R) => (V) => {
|
|
4247
|
+
V.preventDefault(), V.dataTransfer.dropEffect = "move", !(T === null || T === R) && (M(T, R), S(R));
|
|
4248
|
+
}, z = () => S(null), W = t != null ? (() => {
|
|
4249
|
+
let R = t.y, V = t.x;
|
|
4250
|
+
return typeof window < "u" && (V + Ue > window.innerWidth && (V = window.innerWidth - Ue - 16), V < 16 && (V = 16), R + On > window.innerHeight && (R = Math.max(16, window.innerHeight - On - 16)), R < 16 && (R = 16)), { margin: 0, top: R, left: V };
|
|
4251
4251
|
})() : void 0;
|
|
4252
4252
|
return /* @__PURE__ */ b(
|
|
4253
4253
|
jn,
|
|
@@ -4268,19 +4268,19 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4268
4268
|
ce,
|
|
4269
4269
|
{
|
|
4270
4270
|
checked: p,
|
|
4271
|
-
onChange: (R) =>
|
|
4271
|
+
onChange: (R) => K(R.target.checked),
|
|
4272
4272
|
children: "序号列"
|
|
4273
4273
|
}
|
|
4274
4274
|
),
|
|
4275
|
-
/* @__PURE__ */ b(ce, { checked: y, onChange: (R) =>
|
|
4276
|
-
/* @__PURE__ */ ot(
|
|
4275
|
+
/* @__PURE__ */ b(ce, { checked: y, onChange: (R) => H(R.target.checked), children: "自动滚动" }),
|
|
4276
|
+
/* @__PURE__ */ ot(Pt, { align: "center", children: [
|
|
4277
4277
|
/* @__PURE__ */ b("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
4278
4278
|
/* @__PURE__ */ b(
|
|
4279
4279
|
Mn,
|
|
4280
4280
|
{
|
|
4281
4281
|
size: "small",
|
|
4282
4282
|
value: x,
|
|
4283
|
-
onChange:
|
|
4283
|
+
onChange: P,
|
|
4284
4284
|
options: [...Qa],
|
|
4285
4285
|
style: { width: 80 }
|
|
4286
4286
|
}
|
|
@@ -4294,16 +4294,16 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4294
4294
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-width", children: "宽度(px)" }),
|
|
4295
4295
|
/* @__PURE__ */ b("th", { className: "and-table-column-setting-th-fix", children: "固定" })
|
|
4296
4296
|
] }) }),
|
|
4297
|
-
/* @__PURE__ */ b("tbody", { children: f.map((R,
|
|
4298
|
-
const
|
|
4297
|
+
/* @__PURE__ */ b("tbody", { children: f.map((R, V) => {
|
|
4298
|
+
const G = typeof R.width == "number" ? R.width : null, j = R.width === "auto" || R.width === void 0 && G === null;
|
|
4299
4299
|
return /* @__PURE__ */ ot(
|
|
4300
4300
|
"tr",
|
|
4301
4301
|
{
|
|
4302
|
-
className: `and-table-column-setting-row ${T ===
|
|
4302
|
+
className: `and-table-column-setting-row ${T === V ? "and-table-column-setting-row-dragging" : ""}`,
|
|
4303
4303
|
draggable: !0,
|
|
4304
|
-
onDragStart: $(
|
|
4305
|
-
onDragOver: q(
|
|
4306
|
-
onDragEnd:
|
|
4304
|
+
onDragStart: $(V),
|
|
4305
|
+
onDragOver: q(V),
|
|
4306
|
+
onDragEnd: z,
|
|
4307
4307
|
children: [
|
|
4308
4308
|
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ b("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ b(Ir, {}) }) }),
|
|
4309
4309
|
/* @__PURE__ */ ot("td", { className: "and-table-column-setting-td-name", children: [
|
|
@@ -4326,12 +4326,12 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4326
4326
|
size: "small",
|
|
4327
4327
|
min: He,
|
|
4328
4328
|
step: fe,
|
|
4329
|
-
value:
|
|
4329
|
+
value: j ? void 0 : G ?? 80,
|
|
4330
4330
|
placeholder: "auto",
|
|
4331
4331
|
controls: !1,
|
|
4332
4332
|
style: { width: 44 },
|
|
4333
|
-
onChange: (
|
|
4334
|
-
|
|
4333
|
+
onChange: (L) => {
|
|
4334
|
+
L == null || typeof L == "string" && L === "" ? E(R.key, "auto") : E(R.key, Math.max(He, Number(L)));
|
|
4335
4335
|
}
|
|
4336
4336
|
}
|
|
4337
4337
|
),
|
|
@@ -4345,7 +4345,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4345
4345
|
}
|
|
4346
4346
|
)
|
|
4347
4347
|
] }) }),
|
|
4348
|
-
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ot(
|
|
4348
|
+
/* @__PURE__ */ b("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ot(Pt, { className: "and-table-column-setting-fix", children: [
|
|
4349
4349
|
/* @__PURE__ */ b(
|
|
4350
4350
|
"span",
|
|
4351
4351
|
{
|
|
@@ -4376,7 +4376,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4376
4376
|
] })
|
|
4377
4377
|
}
|
|
4378
4378
|
);
|
|
4379
|
-
},
|
|
4379
|
+
}, Bc = ({
|
|
4380
4380
|
id: e,
|
|
4381
4381
|
sessionId: t,
|
|
4382
4382
|
develop: n,
|
|
@@ -4408,11 +4408,11 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4408
4408
|
renderFooter: E,
|
|
4409
4409
|
children: _,
|
|
4410
4410
|
token: M,
|
|
4411
|
-
columnSettingOpenKey:
|
|
4412
|
-
columnSettingsKey:
|
|
4413
|
-
...
|
|
4411
|
+
columnSettingOpenKey: K,
|
|
4412
|
+
columnSettingsKey: H,
|
|
4413
|
+
...P
|
|
4414
4414
|
}) => {
|
|
4415
|
-
const $ = O((J) => J.addCommand), q = O((J) => J.getDataSet),
|
|
4415
|
+
const $ = O((J) => J.addCommand), q = O((J) => J.getDataSet), z = O((J) => J.setDataSet), [W, R] = dt([]), V = $t(null), [G, j] = dt(void 0), L = B((J, ct) => {
|
|
4416
4416
|
if (J == null) return ct;
|
|
4417
4417
|
if (typeof J == "string")
|
|
4418
4418
|
try {
|
|
@@ -4437,11 +4437,11 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4437
4437
|
}
|
|
4438
4438
|
), Ct = 420;
|
|
4439
4439
|
Wn(() => {
|
|
4440
|
-
if (!yt || !
|
|
4441
|
-
const J =
|
|
4440
|
+
if (!yt || !V.current) return;
|
|
4441
|
+
const J = V.current.querySelector(".ant-table-thead") || V.current.querySelector(".ant-table-header");
|
|
4442
4442
|
if (!J) return;
|
|
4443
4443
|
const ct = J.getBoundingClientRect();
|
|
4444
|
-
|
|
4444
|
+
j({
|
|
4445
4445
|
x: ct.right - Ct,
|
|
4446
4446
|
y: ct.bottom + 8
|
|
4447
4447
|
});
|
|
@@ -4450,16 +4450,16 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4450
4450
|
var At;
|
|
4451
4451
|
const ct = nt.columnSettings ? (At = J.dataSets[nt.columnSettings]) == null ? void 0 : At.value : void 0;
|
|
4452
4452
|
return typeof ct == "object" && ct !== null ? ct : void 0;
|
|
4453
|
-
}), I = vi(nt.dataSet, r), st = g(() => nt.dataSet ? I : (c == null ? void 0 : c.data) || [], [nt.dataSet, I, c == null ? void 0 : c.data]), at = g(() =>
|
|
4453
|
+
}), I = vi(nt.dataSet, r), st = g(() => nt.dataSet ? I : (c == null ? void 0 : c.data) || [], [nt.dataSet, I, c == null ? void 0 : c.data]), at = g(() => L(M, {}), [M, L]), _t = at && Object.keys(at).length > 0, Ot = g(
|
|
4454
4454
|
() => _t ? { components: { Table: at } } : void 0,
|
|
4455
4455
|
[_t, at]
|
|
4456
4456
|
), Bt = O(
|
|
4457
4457
|
(J) => nt.pagination ? J.dataSets[nt.pagination] : void 0
|
|
4458
|
-
),
|
|
4459
|
-
if (!
|
|
4460
|
-
const J = typeof s == "object" ? s : {}, ct =
|
|
4458
|
+
), Y = g(() => nt.pagination ? q(nt.pagination, "") || {} : {}, [nt.pagination, q, Bt]), U = g(() => !(s === !1 || typeof s == "object" && (s == null ? void 0 : s.visible) === !1), [s]), et = g(() => {
|
|
4459
|
+
if (!U) return !1;
|
|
4460
|
+
const J = typeof s == "object" ? s : {}, ct = P || {}, At = J.showSizeChanger ?? ct["pagination-showSizeChanger"] ?? !0, vt = J.showQuickJumper ?? ct["pagination-showQuickJumper"] ?? !1, wt = J.simple ?? ct["pagination-simple"] ?? !1, Kt = J.defaultPageSize ?? ct["pagination-defaultPageSize"] ?? 10, Ht = J.pageSizeOptions ?? ct["pagination-pageSizeOptions"] ?? "10,20,50,100", ze = typeof Ht == "string" ? Ht.split(",").map((It) => parseInt(String(It).trim(), 10) || 10).filter((It) => !isNaN(It)) : Array.isArray(Ht) ? Ht : [10, 20, 50, 100];
|
|
4461
4461
|
return {
|
|
4462
|
-
...
|
|
4462
|
+
...Y,
|
|
4463
4463
|
showSizeChanger: At,
|
|
4464
4464
|
showQuickJumper: vt,
|
|
4465
4465
|
simple: wt,
|
|
@@ -4467,11 +4467,11 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4467
4467
|
pageSizeOptions: ze,
|
|
4468
4468
|
showTotal: (It, ae) => (J.showTotal || "共 ${total} 条").replace("${total}", String(It)).replace("${range[0]}", String(ae[0])).replace("${range[1]}", String(ae[1])).replace("${range}", `${ae[0]}-${ae[1]}`),
|
|
4469
4469
|
onChange: (It, ae) => {
|
|
4470
|
-
nt.pagination &&
|
|
4470
|
+
nt.pagination && z(nt.pagination, "", { ...Y, current: It, pageSize: ae }), f && t && $(t, X(f, null));
|
|
4471
4471
|
},
|
|
4472
4472
|
hideOnSinglePage: !1
|
|
4473
4473
|
};
|
|
4474
|
-
}, [
|
|
4474
|
+
}, [U, s, P, Y, nt.pagination, z, f, t, $]), Q = B((J, ct) => {
|
|
4475
4475
|
t && $(t, X(J.action, { ...ct }));
|
|
4476
4476
|
}, [t, $]), lt = g(() => rt.map((J) => {
|
|
4477
4477
|
let ct = !1;
|
|
@@ -4498,7 +4498,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4498
4498
|
width: 60,
|
|
4499
4499
|
align: "center",
|
|
4500
4500
|
render: (vt, wt, Kt) => {
|
|
4501
|
-
const Ht =
|
|
4501
|
+
const Ht = Y.current || 1, ze = Y.pageSize || 10;
|
|
4502
4502
|
return (Ht - 1) * ze + Kt + 1;
|
|
4503
4503
|
}
|
|
4504
4504
|
});
|
|
@@ -4516,7 +4516,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4516
4516
|
}), l !== !1 && it.length > 0 && J.push({
|
|
4517
4517
|
title: "操作",
|
|
4518
4518
|
key: "action",
|
|
4519
|
-
render: (vt, wt) => /* @__PURE__ */ b(
|
|
4519
|
+
render: (vt, wt) => /* @__PURE__ */ b(Pt, { children: it.map((Kt, Ht) => /* @__PURE__ */ b(xr, { title: Kt.tooltip, children: /* @__PURE__ */ b("a", { onClick: () => Q(Kt, wt), style: { marginRight: 5 }, children: Kt.title }) }, Ht)) })
|
|
4520
4520
|
}), J;
|
|
4521
4521
|
}, [
|
|
4522
4522
|
rt,
|
|
@@ -4524,36 +4524,36 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4524
4524
|
ht,
|
|
4525
4525
|
St,
|
|
4526
4526
|
l,
|
|
4527
|
-
|
|
4527
|
+
Y,
|
|
4528
4528
|
Q
|
|
4529
4529
|
]), Rt = B(() => {
|
|
4530
|
-
nt.columnSettingOpen &&
|
|
4531
|
-
}, [nt.columnSettingOpen,
|
|
4530
|
+
nt.columnSettingOpen && z(nt.columnSettingOpen, "", !1);
|
|
4531
|
+
}, [nt.columnSettingOpen, z]), zt = B(
|
|
4532
4532
|
(J) => {
|
|
4533
|
-
nt.columnSettings &&
|
|
4533
|
+
nt.columnSettings && z(nt.columnSettings, "value", J);
|
|
4534
4534
|
},
|
|
4535
|
-
[nt.columnSettings,
|
|
4535
|
+
[nt.columnSettings, z]
|
|
4536
4536
|
), rr = g(() => {
|
|
4537
4537
|
if (!v && m)
|
|
4538
4538
|
return {
|
|
4539
4539
|
selectedRowKeys: W,
|
|
4540
4540
|
onChange: (J, ct, At) => {
|
|
4541
|
-
R(J), nt.selected &&
|
|
4541
|
+
R(J), nt.selected && z(nt.selected, "", J), h != null && h.trim() && t && $(t, X(h.trim(), {
|
|
4542
4542
|
selectedRowKeys: J,
|
|
4543
4543
|
selectedRows: ct,
|
|
4544
4544
|
info: At
|
|
4545
4545
|
}));
|
|
4546
4546
|
}
|
|
4547
4547
|
};
|
|
4548
|
-
}, [m, v, W, nt.selected,
|
|
4548
|
+
}, [m, v, W, nt.selected, z, h, t, $]), fn = B((J) => {
|
|
4549
4549
|
if (!v) return;
|
|
4550
4550
|
const At = [J[p]];
|
|
4551
|
-
R(At), nt.selected &&
|
|
4552
|
-
}, [v, h, t, p, nt.selected,
|
|
4551
|
+
R(At), nt.selected && z(nt.selected, "", At), h != null && h.trim() && t && $(t, X(h.trim(), { record: J, selectedRowKeys: At }));
|
|
4552
|
+
}, [v, h, t, p, nt.selected, z, $]), ir = B((J) => v && W.includes(J[p]) ? "ant-table-row-selected" : "", [v, p, W]), ar = B((J) => v ? { onClick: () => fn(J), style: { cursor: "pointer" } } : {}, [v, fn]), { style: or, className: cr, ...ue } = P, kt = g(() => {
|
|
4553
4553
|
if (T) return T;
|
|
4554
4554
|
let J = ue["scroll-x"], ct = ue["scroll-y"];
|
|
4555
4555
|
if (String(J) === "true" ? J = !0 : String(J) === "false" ? J = void 0 : J === "max-content" && (J = "max-content"), (ct === "" || ct === null || ct === void 0) && (ct = void 0), J !== void 0 || ct !== void 0) return { x: J, y: ct };
|
|
4556
|
-
}, [T, ue["scroll-x"], ue["scroll-y"]]), Le = Va(
|
|
4556
|
+
}, [T, ue["scroll-x"], ue["scroll-y"]]), Le = Va(V, kt == null ? void 0 : kt.y, U), sr = g(() => {
|
|
4557
4557
|
if (!kt && !pt) return;
|
|
4558
4558
|
const J = pt ? De ? !0 : "max-content" : kt == null ? void 0 : kt.x, ct = (kt == null ? void 0 : kt.y) === "100%" ? Le : kt == null ? void 0 : kt.y;
|
|
4559
4559
|
return J !== void 0 || ct !== void 0 ? { x: J, y: ct } : kt ? kt.y === "100%" ? { x: kt.x, y: Le } : kt : void 0;
|
|
@@ -4603,7 +4603,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4603
4603
|
return /* @__PURE__ */ ot(
|
|
4604
4604
|
Bn,
|
|
4605
4605
|
{
|
|
4606
|
-
ref:
|
|
4606
|
+
ref: V,
|
|
4607
4607
|
vertical: !0,
|
|
4608
4608
|
style: { width: "100%", height: "100%", ...or },
|
|
4609
4609
|
className: cr,
|
|
@@ -4633,7 +4633,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4633
4633
|
Xa,
|
|
4634
4634
|
{
|
|
4635
4635
|
open: yt,
|
|
4636
|
-
position:
|
|
4636
|
+
position: G,
|
|
4637
4637
|
rowIndexVisible: ht,
|
|
4638
4638
|
columnItems: St,
|
|
4639
4639
|
defaultRowIndexVisible: ft,
|
|
@@ -4649,7 +4649,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4649
4649
|
]
|
|
4650
4650
|
}
|
|
4651
4651
|
);
|
|
4652
|
-
}, { Text: Za } = sn,
|
|
4652
|
+
}, { Text: Za } = sn, Kc = ({
|
|
4653
4653
|
id: e,
|
|
4654
4654
|
sessionId: t,
|
|
4655
4655
|
develop: n,
|
|
@@ -4708,12 +4708,12 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4708
4708
|
return _;
|
|
4709
4709
|
const W = (x == null ? void 0 : x.formatType) || v;
|
|
4710
4710
|
return W && _ !== void 0 && _ !== null ? Aa(_, W, C) : _;
|
|
4711
|
-
}, [n, _, v, C, x == null ? void 0 : x.formatType]),
|
|
4711
|
+
}, [n, _, v, C, x == null ? void 0 : x.formatType]), K = g(() => {
|
|
4712
4712
|
const W = { ...y };
|
|
4713
4713
|
return x && typeof x == "object" && Object.keys(x).forEach((R) => {
|
|
4714
4714
|
!["content", "formatType", "formatValue", "clickAction"].includes(R) && x[R] !== void 0 && x[R] !== null && (W[R] = x[R]);
|
|
4715
4715
|
}), W;
|
|
4716
|
-
}, [y, x]),
|
|
4716
|
+
}, [y, x]), H = (x == null ? void 0 : x.color) ?? l, P = Ke(H), $ = g(() => {
|
|
4717
4717
|
if (!f) return;
|
|
4718
4718
|
let W = f;
|
|
4719
4719
|
if (typeof f == "string")
|
|
@@ -4724,19 +4724,19 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4724
4724
|
}
|
|
4725
4725
|
if (!W || typeof W != "object") return;
|
|
4726
4726
|
const R = {};
|
|
4727
|
-
return Object.entries(W).forEach(([
|
|
4728
|
-
|
|
4727
|
+
return Object.entries(W).forEach(([V, G]) => {
|
|
4728
|
+
G !== "" && G !== void 0 && G !== null && (R[V] = G);
|
|
4729
4729
|
}), Object.keys(R).length > 0 ? R : void 0;
|
|
4730
4730
|
}, [f]), q = g(() => {
|
|
4731
4731
|
const W = { width: "100%" }, R = (x == null ? void 0 : x.fontSize) ?? c;
|
|
4732
4732
|
if (R) {
|
|
4733
|
-
const
|
|
4734
|
-
W.fontSize =
|
|
4733
|
+
const V = R && !String(R).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${R}px` : R;
|
|
4734
|
+
W.fontSize = V;
|
|
4735
4735
|
}
|
|
4736
|
-
return
|
|
4737
|
-
}, [c,
|
|
4738
|
-
return $ ? /* @__PURE__ */ b(Mt, { theme: { token: $ }, children:
|
|
4739
|
-
}, { Title: Ia } = sn,
|
|
4736
|
+
return P && (W.color = P), W;
|
|
4737
|
+
}, [c, P, x == null ? void 0 : x.fontSize]), z = /* @__PURE__ */ b(Za, { ...K, style: { ...q, ...d, ...K.style }, children: M != null && M !== "" ? String(M) : r });
|
|
4738
|
+
return $ ? /* @__PURE__ */ b(Mt, { theme: { token: $ }, children: z }) : z;
|
|
4739
|
+
}, { Title: Ia } = sn, Lc = ({
|
|
4740
4740
|
id: e,
|
|
4741
4741
|
sessionId: t,
|
|
4742
4742
|
develop: n,
|
|
@@ -4765,7 +4765,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4765
4765
|
}), S;
|
|
4766
4766
|
}, [v, f]);
|
|
4767
4767
|
return /* @__PURE__ */ b(Ia, { level: c, ...T, style: { ...D, ...m, ...T.style }, children: y || r });
|
|
4768
|
-
}, { Paragraph: to } = sn,
|
|
4768
|
+
}, { Paragraph: to } = sn, zc = ({
|
|
4769
4769
|
id: e,
|
|
4770
4770
|
sessionId: t,
|
|
4771
4771
|
develop: n,
|
|
@@ -4802,7 +4802,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4802
4802
|
return [];
|
|
4803
4803
|
}
|
|
4804
4804
|
return e;
|
|
4805
|
-
},
|
|
4805
|
+
}, Vc = ({
|
|
4806
4806
|
id: e,
|
|
4807
4807
|
sessionId: t,
|
|
4808
4808
|
develop: n,
|
|
@@ -4857,7 +4857,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4857
4857
|
children: p
|
|
4858
4858
|
}
|
|
4859
4859
|
);
|
|
4860
|
-
},
|
|
4860
|
+
}, qc = ({
|
|
4861
4861
|
id: e,
|
|
4862
4862
|
sessionId: t,
|
|
4863
4863
|
develop: n,
|
|
@@ -4888,13 +4888,13 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4888
4888
|
treeData: E,
|
|
4889
4889
|
styles: _,
|
|
4890
4890
|
classNames: M,
|
|
4891
|
-
token:
|
|
4892
|
-
...
|
|
4891
|
+
token: K,
|
|
4892
|
+
...H
|
|
4893
4893
|
}) => {
|
|
4894
|
-
const
|
|
4894
|
+
const P = O((F) => F.addCommand), $ = O((F) => F.setDataSet), q = g(
|
|
4895
4895
|
() => tt(t, i),
|
|
4896
4896
|
[t, i]
|
|
4897
|
-
),
|
|
4897
|
+
), z = g(
|
|
4898
4898
|
() => i ? tt(t, `${i}_selected`) : void 0,
|
|
4899
4899
|
[t, i]
|
|
4900
4900
|
), W = g(
|
|
@@ -4903,7 +4903,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4903
4903
|
), R = g(
|
|
4904
4904
|
() => i ? tt(t, `${i}_expanded`) : void 0,
|
|
4905
4905
|
[t, i]
|
|
4906
|
-
),
|
|
4906
|
+
), V = O((F) => {
|
|
4907
4907
|
if (!q) return;
|
|
4908
4908
|
if (r)
|
|
4909
4909
|
return F.getDataSet(q, r);
|
|
@@ -4912,127 +4912,127 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
4912
4912
|
if (Array.isArray(ht)) return ht;
|
|
4913
4913
|
const St = ht.value;
|
|
4914
4914
|
return Array.isArray(St) ? St : void 0;
|
|
4915
|
-
}),
|
|
4916
|
-
(F) =>
|
|
4917
|
-
),
|
|
4915
|
+
}), G = O(
|
|
4916
|
+
(F) => z ? F.getDataSet(z, "") : void 0
|
|
4917
|
+
), j = O(
|
|
4918
4918
|
(F) => W ? F.getDataSet(W, "") : void 0
|
|
4919
|
-
),
|
|
4919
|
+
), L = O(
|
|
4920
4920
|
(F) => R ? F.getDataSet(R, "") : void 0
|
|
4921
|
-
), rt = g(() => n ?
|
|
4921
|
+
), rt = g(() => n ? V ?? E ?? [] : q ? V ?? [] : E ?? [], [n, q, V, E]), it = G, nt = j, yt = L, Ct = B(
|
|
4922
4922
|
(F, ht) => {
|
|
4923
4923
|
if (y) {
|
|
4924
4924
|
y(F, ht);
|
|
4925
4925
|
return;
|
|
4926
4926
|
}
|
|
4927
|
-
|
|
4927
|
+
z && $(z, "", F), a && t && P(t, X(a, { selectedKeys: F }));
|
|
4928
4928
|
},
|
|
4929
|
-
[y,
|
|
4929
|
+
[y, z, t, $, a, P]
|
|
4930
4930
|
), mt = B(
|
|
4931
4931
|
(F, ht) => {
|
|
4932
4932
|
if (u) {
|
|
4933
4933
|
u(F, ht);
|
|
4934
4934
|
return;
|
|
4935
4935
|
}
|
|
4936
|
-
W && $(W, "", F), o && t &&
|
|
4936
|
+
W && $(W, "", F), o && t && P(t, X(o, { checkedKeys: F }));
|
|
4937
4937
|
},
|
|
4938
|
-
[u, W, t, $, o,
|
|
4938
|
+
[u, W, t, $, o, P]
|
|
4939
4939
|
), I = B(
|
|
4940
4940
|
(F, ht) => {
|
|
4941
4941
|
if (x) {
|
|
4942
4942
|
x(F, ht);
|
|
4943
4943
|
return;
|
|
4944
4944
|
}
|
|
4945
|
-
R && $(R, "", F), c && t &&
|
|
4945
|
+
R && $(R, "", F), c && t && P(t, X(c, { expandedKeys: F, expanded: ht.expanded }));
|
|
4946
4946
|
},
|
|
4947
|
-
[x, R, t, $, c,
|
|
4947
|
+
[x, R, t, $, c, P]
|
|
4948
4948
|
), st = B(
|
|
4949
4949
|
(F) => {
|
|
4950
4950
|
if (D) {
|
|
4951
4951
|
D(F);
|
|
4952
4952
|
return;
|
|
4953
4953
|
}
|
|
4954
|
-
l && t &&
|
|
4954
|
+
l && t && P(t, X(l, F));
|
|
4955
4955
|
},
|
|
4956
|
-
[D, l, t,
|
|
4956
|
+
[D, l, t, P]
|
|
4957
4957
|
), at = B(
|
|
4958
4958
|
(F) => {
|
|
4959
4959
|
if (T) {
|
|
4960
4960
|
T(F);
|
|
4961
4961
|
return;
|
|
4962
4962
|
}
|
|
4963
|
-
m && t &&
|
|
4963
|
+
m && t && P(t, X(m, F));
|
|
4964
4964
|
},
|
|
4965
|
-
[T, m, t,
|
|
4965
|
+
[T, m, t, P]
|
|
4966
4966
|
), _t = B(
|
|
4967
4967
|
(F) => {
|
|
4968
4968
|
if (S) {
|
|
4969
4969
|
S(F);
|
|
4970
4970
|
return;
|
|
4971
4971
|
}
|
|
4972
|
-
v && t &&
|
|
4972
|
+
v && t && P(t, X(v, F));
|
|
4973
4973
|
},
|
|
4974
|
-
[S, v, t,
|
|
4974
|
+
[S, v, t, P]
|
|
4975
4975
|
), Ot = B(
|
|
4976
4976
|
(F) => {
|
|
4977
4977
|
if (A) {
|
|
4978
4978
|
A(F);
|
|
4979
4979
|
return;
|
|
4980
4980
|
}
|
|
4981
|
-
h && t &&
|
|
4981
|
+
h && t && P(t, X(h, F));
|
|
4982
4982
|
},
|
|
4983
|
-
[A, h, t,
|
|
4983
|
+
[A, h, t, P]
|
|
4984
4984
|
), Bt = B(
|
|
4985
4985
|
(F) => {
|
|
4986
4986
|
if (N) {
|
|
4987
4987
|
N(F);
|
|
4988
4988
|
return;
|
|
4989
4989
|
}
|
|
4990
|
-
p && t &&
|
|
4990
|
+
p && t && P(t, X(p, F));
|
|
4991
4991
|
},
|
|
4992
|
-
[N, p, t,
|
|
4993
|
-
),
|
|
4992
|
+
[N, p, t, P]
|
|
4993
|
+
), Y = B(
|
|
4994
4994
|
(F) => {
|
|
4995
4995
|
if (k) {
|
|
4996
4996
|
k(F);
|
|
4997
4997
|
return;
|
|
4998
4998
|
}
|
|
4999
|
-
d && t &&
|
|
4999
|
+
d && t && P(t, X(d, F));
|
|
5000
5000
|
},
|
|
5001
|
-
[k, d, t,
|
|
5002
|
-
),
|
|
5001
|
+
[k, d, t, P]
|
|
5002
|
+
), U = B(
|
|
5003
5003
|
(F) => {
|
|
5004
5004
|
if (C) {
|
|
5005
5005
|
C(F);
|
|
5006
5006
|
return;
|
|
5007
5007
|
}
|
|
5008
|
-
f && t &&
|
|
5008
|
+
f && t && P(t, X(f, F));
|
|
5009
5009
|
},
|
|
5010
|
-
[C, f, t,
|
|
5010
|
+
[C, f, t, P]
|
|
5011
5011
|
), et = B(
|
|
5012
5012
|
(F, ht) => {
|
|
5013
5013
|
if (w) {
|
|
5014
5014
|
w(F, ht);
|
|
5015
5015
|
return;
|
|
5016
5016
|
}
|
|
5017
|
-
s && t &&
|
|
5017
|
+
s && t && P(t, X(s, { loadedKeys: F, ...ht }));
|
|
5018
5018
|
},
|
|
5019
|
-
[w, s, t,
|
|
5019
|
+
[w, s, t, P]
|
|
5020
5020
|
), Q = g(() => {
|
|
5021
|
-
if (!
|
|
5021
|
+
if (!K) return;
|
|
5022
5022
|
const F = {};
|
|
5023
|
-
return Object.entries(
|
|
5023
|
+
return Object.entries(K).forEach(([ht, St]) => {
|
|
5024
5024
|
St !== "" && St !== void 0 && St !== null && (F[ht] = St);
|
|
5025
5025
|
}), Object.keys(F).length > 0 ? F : void 0;
|
|
5026
|
-
}, [
|
|
5026
|
+
}, [K]), lt = g(() => {
|
|
5027
5027
|
const F = {};
|
|
5028
5028
|
return n && (F.motion = !1), Q && (F.components = { Tree: Q }), Object.keys(F).length > 0 ? F : void 0;
|
|
5029
5029
|
}, [n, Q]), xt = /* @__PURE__ */ b(
|
|
5030
5030
|
Tr,
|
|
5031
5031
|
{
|
|
5032
|
-
...
|
|
5032
|
+
...H,
|
|
5033
5033
|
...n ? { motion: !1 } : {},
|
|
5034
5034
|
treeData: rt,
|
|
5035
|
-
...
|
|
5035
|
+
...z != null ? { selectedKeys: it ?? [] } : {},
|
|
5036
5036
|
...W != null ? { checkedKeys: nt ?? [] } : {},
|
|
5037
5037
|
...R != null ? { expandedKeys: yt ?? [] } : {},
|
|
5038
5038
|
onSelect: Ct,
|
|
@@ -5043,15 +5043,15 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
5043
5043
|
onDragLeave: _t,
|
|
5044
5044
|
onDragOver: Ot,
|
|
5045
5045
|
onDragStart: Bt,
|
|
5046
|
-
onDrop:
|
|
5047
|
-
onRightClick:
|
|
5046
|
+
onDrop: Y,
|
|
5047
|
+
onRightClick: U,
|
|
5048
5048
|
onLoad: et,
|
|
5049
5049
|
styles: _,
|
|
5050
5050
|
classNames: M
|
|
5051
5051
|
}
|
|
5052
5052
|
);
|
|
5053
5053
|
return lt ? /* @__PURE__ */ b(Mt, { theme: lt, children: xt }) : xt;
|
|
5054
|
-
},
|
|
5054
|
+
}, Wc = ({
|
|
5055
5055
|
id: e,
|
|
5056
5056
|
sessionId: t,
|
|
5057
5057
|
develop: n,
|
|
@@ -5106,7 +5106,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
5106
5106
|
return t;
|
|
5107
5107
|
}
|
|
5108
5108
|
return e;
|
|
5109
|
-
},
|
|
5109
|
+
}, Hc = ({
|
|
5110
5110
|
id: e,
|
|
5111
5111
|
sessionId: t,
|
|
5112
5112
|
develop: n,
|
|
@@ -5124,17 +5124,17 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
5124
5124
|
token: f,
|
|
5125
5125
|
...s
|
|
5126
5126
|
}) => {
|
|
5127
|
-
const y = O((
|
|
5127
|
+
const y = O((K) => K.addCommand), u = O((K) => K.getDataSet), x = O((K) => K.setDataSet), D = g(
|
|
5128
5128
|
() => tt(t, i),
|
|
5129
5129
|
[t, i]
|
|
5130
5130
|
), T = g(() => {
|
|
5131
5131
|
if (D && r) return u(D, r);
|
|
5132
|
-
}, [D, r, u]), S = g(() => T ?? c ?? 0, [T, c]), A = g(() => v ?? m, [v, m]), N = g(() => p ?? h, [p, h]), k = g(() => Pe(l, []), [l]), C = g(() => Pe(d, {}), [d]), w = g(() => Pe(f, {}), [f]), E = B((
|
|
5132
|
+
}, [D, r, u]), S = g(() => T ?? c ?? 0, [T, c]), A = g(() => v ?? m, [v, m]), N = g(() => p ?? h, [p, h]), k = g(() => Pe(l, []), [l]), C = g(() => Pe(d, {}), [d]), w = g(() => Pe(f, {}), [f]), E = B((K) => {
|
|
5133
5133
|
if (o) {
|
|
5134
|
-
o(
|
|
5134
|
+
o(K);
|
|
5135
5135
|
return;
|
|
5136
5136
|
}
|
|
5137
|
-
D && r && x(D, r,
|
|
5137
|
+
D && r && x(D, r, K), a && t && y(t, X(a, K));
|
|
5138
5138
|
}, [o, D, r, x, a, t, y]), _ = Object.keys(w).length > 0, M = /* @__PURE__ */ b(
|
|
5139
5139
|
kr,
|
|
5140
5140
|
{
|
|
@@ -5148,12 +5148,12 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
5148
5148
|
}
|
|
5149
5149
|
);
|
|
5150
5150
|
return _ ? /* @__PURE__ */ b(Mt, { theme: { components: { Steps: w } }, children: M }) : M;
|
|
5151
|
-
},
|
|
5151
|
+
}, Uc = ({
|
|
5152
5152
|
id: e,
|
|
5153
5153
|
sessionId: t,
|
|
5154
5154
|
develop: n,
|
|
5155
5155
|
...i
|
|
5156
|
-
}) => /* @__PURE__ */ b(Ge, { ...i }),
|
|
5156
|
+
}) => /* @__PURE__ */ b(Ge, { ...i }), Pc = ({
|
|
5157
5157
|
id: e,
|
|
5158
5158
|
sessionId: t,
|
|
5159
5159
|
develop: n,
|
|
@@ -5178,7 +5178,7 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
5178
5178
|
return [];
|
|
5179
5179
|
}
|
|
5180
5180
|
return e;
|
|
5181
|
-
},
|
|
5181
|
+
}, Yc = ({
|
|
5182
5182
|
id: e,
|
|
5183
5183
|
sessionId: t,
|
|
5184
5184
|
develop: n,
|
|
@@ -5229,10 +5229,10 @@ const Ue = 420, On = 440, Xa = ({
|
|
|
5229
5229
|
};
|
|
5230
5230
|
function io(e) {
|
|
5231
5231
|
if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
|
|
5232
|
-
const t =
|
|
5232
|
+
const t = Yt().viewRes;
|
|
5233
5233
|
return t ? t(e) : e;
|
|
5234
5234
|
}
|
|
5235
|
-
const ao = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+",
|
|
5235
|
+
const ao = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PHJlY3Qgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiIGZpbGw9IiNmMGYwZjAiLz48cGF0aCBkPSJNNzAgNzBhMTIgMTIgMCAxIDEgMCAyNCAxMiAxMiAwIDAgMSAwLTI0em02MCAxMEw4NSAxMzBsLTI1LTIwLTIwIDE1djE1aDEyMHYtNDB6IiBmaWxsPSIjYmZiZmJmIi8+PC9zdmc+", Gc = ({
|
|
5236
5236
|
id: e,
|
|
5237
5237
|
sessionId: t,
|
|
5238
5238
|
develop: n,
|
|
@@ -5273,10 +5273,10 @@ const ao = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMj
|
|
|
5273
5273
|
}, { PreviewGroup: oo } = Qt;
|
|
5274
5274
|
function co(e) {
|
|
5275
5275
|
if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
|
|
5276
|
-
const t =
|
|
5276
|
+
const t = Yt().viewRes;
|
|
5277
5277
|
return t ? t(e) : e;
|
|
5278
5278
|
}
|
|
5279
|
-
const
|
|
5279
|
+
const Jc = ({
|
|
5280
5280
|
id: e,
|
|
5281
5281
|
sessionId: t,
|
|
5282
5282
|
develop: n,
|
|
@@ -5310,7 +5310,7 @@ const Qc = ({
|
|
|
5310
5310
|
}), y;
|
|
5311
5311
|
}, [c, h]);
|
|
5312
5312
|
return /* @__PURE__ */ b(oo, { ...s, items: f, children: i });
|
|
5313
|
-
},
|
|
5313
|
+
}, Qc = ({
|
|
5314
5314
|
id: e,
|
|
5315
5315
|
sessionId: t,
|
|
5316
5316
|
develop: n,
|
|
@@ -5386,7 +5386,7 @@ const Qc = ({
|
|
|
5386
5386
|
false: "default",
|
|
5387
5387
|
yes: "success",
|
|
5388
5388
|
no: "default"
|
|
5389
|
-
},
|
|
5389
|
+
}, Fc = ({
|
|
5390
5390
|
id: e,
|
|
5391
5391
|
sessionId: t,
|
|
5392
5392
|
develop: n,
|
|
@@ -5435,7 +5435,7 @@ const Qc = ({
|
|
|
5435
5435
|
}), _;
|
|
5436
5436
|
}, [d, D]), C = (D == null ? void 0 : D.color) ?? v, E = Ke(C) || N;
|
|
5437
5437
|
return /* @__PURE__ */ b(Kn, { ...k, color: E, children: A || i });
|
|
5438
|
-
},
|
|
5438
|
+
}, Xc = ({
|
|
5439
5439
|
id: e,
|
|
5440
5440
|
sessionId: t,
|
|
5441
5441
|
develop: n,
|
|
@@ -5485,7 +5485,7 @@ const Qc = ({
|
|
|
5485
5485
|
}, [p.showTotal])
|
|
5486
5486
|
}
|
|
5487
5487
|
);
|
|
5488
|
-
},
|
|
5488
|
+
}, Zc = ({
|
|
5489
5489
|
id: e,
|
|
5490
5490
|
sessionId: t,
|
|
5491
5491
|
develop: n,
|
|
@@ -5512,7 +5512,7 @@ const Qc = ({
|
|
|
5512
5512
|
var k, C, w, E, _, M;
|
|
5513
5513
|
if (u) return;
|
|
5514
5514
|
const A = s ? ((k = a.current) == null ? void 0 : k.clientWidth) ?? 200 : ((C = a.current) == null ? void 0 : C.clientHeight) ?? 200, N = s ? (((w = o.current) == null ? void 0 : w.scrollWidth) ?? 0) - (((E = a.current) == null ? void 0 : E.clientWidth) ?? 0) : (((_ = o.current) == null ? void 0 : _.scrollHeight) ?? 0) - (((M = a.current) == null ? void 0 : M.clientHeight) ?? 0);
|
|
5515
|
-
l((
|
|
5515
|
+
l((K) => Math.min(N, K + A));
|
|
5516
5516
|
}, [s, u]), T = n || (s ? /* @__PURE__ */ b(Un, {}) : /* @__PURE__ */ b(ei, {})), S = i || (s ? /* @__PURE__ */ b(Pn, {}) : /* @__PURE__ */ b(Yn, {}));
|
|
5517
5517
|
return /* @__PURE__ */ ot(
|
|
5518
5518
|
"div",
|
|
@@ -5604,7 +5604,7 @@ const Qc = ({
|
|
|
5604
5604
|
},
|
|
5605
5605
|
children: t
|
|
5606
5606
|
}
|
|
5607
|
-
),
|
|
5607
|
+
), Ic = ({
|
|
5608
5608
|
id: e,
|
|
5609
5609
|
sessionId: t,
|
|
5610
5610
|
develop: n,
|
|
@@ -5635,18 +5635,18 @@ const Qc = ({
|
|
|
5635
5635
|
overflowStrategy: E = "default",
|
|
5636
5636
|
paginationArrowStyle: _,
|
|
5637
5637
|
paginationArrowIconPrev: M,
|
|
5638
|
-
paginationArrowIconNext:
|
|
5639
|
-
expandTrigger:
|
|
5638
|
+
paginationArrowIconNext: K,
|
|
5639
|
+
expandTrigger: H,
|
|
5640
5640
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
5641
|
-
...
|
|
5641
|
+
...P
|
|
5642
5642
|
}) => {
|
|
5643
|
-
const $ = O((Z) => Z.addCommand), q = O((Z) => Z.setDataSet),
|
|
5643
|
+
const $ = O((Z) => Z.addCommand), q = O((Z) => Z.setDataSet), z = g(
|
|
5644
5644
|
() => tt(t, i),
|
|
5645
5645
|
[t, i]
|
|
5646
5646
|
), W = O(
|
|
5647
5647
|
(Z) => {
|
|
5648
|
-
if (
|
|
5649
|
-
return r ? Z.getDataSet(
|
|
5648
|
+
if (z)
|
|
5649
|
+
return r ? Z.getDataSet(z, r) : Z.dataSets[z];
|
|
5650
5650
|
}
|
|
5651
5651
|
// 使用 shallow 比较确保只有通过内容变更才触发更新
|
|
5652
5652
|
// 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
|
|
@@ -5654,20 +5654,20 @@ const Qc = ({
|
|
|
5654
5654
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
5655
5655
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
5656
5656
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
5657
|
-
), R = g(() => ({}), []),
|
|
5658
|
-
() => (
|
|
5659
|
-
[
|
|
5660
|
-
),
|
|
5661
|
-
() =>
|
|
5662
|
-
[
|
|
5657
|
+
), R = g(() => ({}), []), V = W ?? R, G = g(
|
|
5658
|
+
() => (V == null ? void 0 : V.items) ?? (Array.isArray(V) ? V : void 0) ?? (Array.isArray(V == null ? void 0 : V.value) ? V.value : void 0),
|
|
5659
|
+
[V]
|
|
5660
|
+
), j = g(() => n ? G ?? d ?? [] : z ? G ?? [] : d ?? [], [n, z, G, d]), L = g(
|
|
5661
|
+
() => V.selectedKeys ?? f,
|
|
5662
|
+
[V.selectedKeys, f]
|
|
5663
5663
|
), rt = g(
|
|
5664
|
-
() =>
|
|
5665
|
-
[
|
|
5664
|
+
() => V.openKeys ?? (A && N ? void 0 : s),
|
|
5665
|
+
[V.openKeys, A, N, s]
|
|
5666
5666
|
), it = g(
|
|
5667
5667
|
() => tt(t, A),
|
|
5668
5668
|
[t, A]
|
|
5669
5669
|
), nt = O((Z) => {
|
|
5670
|
-
if (!
|
|
5670
|
+
if (!V.openKeys && it && N)
|
|
5671
5671
|
return Z.getDataSet(it, N);
|
|
5672
5672
|
}), yt = g(() => {
|
|
5673
5673
|
const Z = (pt) => Array.isArray(pt) ? pt.map((Et) => {
|
|
@@ -5678,10 +5678,10 @@ const Qc = ({
|
|
|
5678
5678
|
}
|
|
5679
5679
|
return Rt.children && Rt.children.length > 0 && (Rt.children = Z(Rt.children)), Rt;
|
|
5680
5680
|
}) : [];
|
|
5681
|
-
return Z(
|
|
5682
|
-
}, [
|
|
5683
|
-
() =>
|
|
5684
|
-
[
|
|
5681
|
+
return Z(j || []);
|
|
5682
|
+
}, [j]), Ct = g(
|
|
5683
|
+
() => L,
|
|
5684
|
+
[L]
|
|
5685
5685
|
), mt = g(
|
|
5686
5686
|
() => rt ?? nt,
|
|
5687
5687
|
[rt, nt]
|
|
@@ -5703,12 +5703,12 @@ const Qc = ({
|
|
|
5703
5703
|
v(Z);
|
|
5704
5704
|
return;
|
|
5705
5705
|
}
|
|
5706
|
-
if (
|
|
5706
|
+
if (z)
|
|
5707
5707
|
if (r) {
|
|
5708
|
-
const pt = O.getState().getDataSet(
|
|
5709
|
-
q(
|
|
5708
|
+
const pt = O.getState().getDataSet(z, r) || {};
|
|
5709
|
+
q(z, r, { ...pt, selectedKeys: Z.selectedKeys });
|
|
5710
5710
|
} else
|
|
5711
|
-
q(
|
|
5711
|
+
q(z, "selectedKeys", Z.selectedKeys);
|
|
5712
5712
|
o && t && $(
|
|
5713
5713
|
t,
|
|
5714
5714
|
X(o, { selectedKeys: Z.selectedKeys })
|
|
@@ -5716,7 +5716,7 @@ const Qc = ({
|
|
|
5716
5716
|
},
|
|
5717
5717
|
[
|
|
5718
5718
|
v,
|
|
5719
|
-
|
|
5719
|
+
z,
|
|
5720
5720
|
r,
|
|
5721
5721
|
q,
|
|
5722
5722
|
o,
|
|
@@ -5729,12 +5729,12 @@ const Qc = ({
|
|
|
5729
5729
|
h(Z);
|
|
5730
5730
|
return;
|
|
5731
5731
|
}
|
|
5732
|
-
if (
|
|
5732
|
+
if (z)
|
|
5733
5733
|
if (r) {
|
|
5734
|
-
const pt = O.getState().getDataSet(
|
|
5735
|
-
q(
|
|
5734
|
+
const pt = O.getState().getDataSet(z, r) || {};
|
|
5735
|
+
q(z, r, { ...pt, openKeys: Z });
|
|
5736
5736
|
} else
|
|
5737
|
-
q(
|
|
5737
|
+
q(z, "openKeys", Z);
|
|
5738
5738
|
else it && N && q(it, N, Z);
|
|
5739
5739
|
c && t && $(
|
|
5740
5740
|
t,
|
|
@@ -5743,7 +5743,7 @@ const Qc = ({
|
|
|
5743
5743
|
},
|
|
5744
5744
|
[
|
|
5745
5745
|
h,
|
|
5746
|
-
|
|
5746
|
+
z,
|
|
5747
5747
|
r,
|
|
5748
5748
|
it,
|
|
5749
5749
|
N,
|
|
@@ -5773,21 +5773,21 @@ const Qc = ({
|
|
|
5773
5773
|
return Object.entries(D).forEach(([pt, Et]) => {
|
|
5774
5774
|
Et !== "" && Et !== void 0 && Et !== null && (Z[pt] = Et);
|
|
5775
5775
|
}), Object.keys(Z).length > 0 ? Z : void 0;
|
|
5776
|
-
}, [D]),
|
|
5776
|
+
}, [D]), Y = n ? {
|
|
5777
5777
|
motion: { motionName: "" }
|
|
5778
|
-
} : {},
|
|
5778
|
+
} : {}, U = g(() => {
|
|
5779
5779
|
if (typeof M == "string" && M) {
|
|
5780
5780
|
const Z = Gt[M];
|
|
5781
5781
|
if (Z) return /* @__PURE__ */ b(Z, {});
|
|
5782
5782
|
}
|
|
5783
5783
|
return M;
|
|
5784
5784
|
}, [M]), et = g(() => {
|
|
5785
|
-
if (typeof
|
|
5786
|
-
const Z = Gt[
|
|
5785
|
+
if (typeof K == "string" && K) {
|
|
5786
|
+
const Z = Gt[K];
|
|
5787
5787
|
if (Z) return /* @__PURE__ */ b(Z, {});
|
|
5788
5788
|
}
|
|
5789
|
-
return
|
|
5790
|
-
}, [
|
|
5789
|
+
return K;
|
|
5790
|
+
}, [K]), Q = g(() => E === "pagination" || E === "scroll" ? null : S, [E, S]), lt = Qr(), ft = e || lt.replace(/:/g, "-"), xt = g(() => {
|
|
5791
5791
|
var Rt;
|
|
5792
5792
|
if (!u || typeof u == "function") return "";
|
|
5793
5793
|
const Z = (Rt = u.subMenu) == null ? void 0 : Rt.root;
|
|
@@ -5814,9 +5814,9 @@ const Qc = ({
|
|
|
5814
5814
|
}, [u, ft]), F = /* @__PURE__ */ b(
|
|
5815
5815
|
$r,
|
|
5816
5816
|
{
|
|
5817
|
-
...
|
|
5817
|
+
...P,
|
|
5818
5818
|
...Ot,
|
|
5819
|
-
...
|
|
5819
|
+
...Y,
|
|
5820
5820
|
mode: k,
|
|
5821
5821
|
items: yt,
|
|
5822
5822
|
selectedKeys: Ct,
|
|
@@ -5837,7 +5837,7 @@ const Qc = ({
|
|
|
5837
5837
|
{
|
|
5838
5838
|
mode: k || "horizontal",
|
|
5839
5839
|
arrowStyle: _,
|
|
5840
|
-
arrowIconPrev:
|
|
5840
|
+
arrowIconPrev: U,
|
|
5841
5841
|
arrowIconNext: et,
|
|
5842
5842
|
children: F
|
|
5843
5843
|
}
|
|
@@ -5852,12 +5852,12 @@ const Qc = ({
|
|
|
5852
5852
|
] }) : Z;
|
|
5853
5853
|
return St ? /* @__PURE__ */ b(Mt, { theme: St, children: pt }) : pt;
|
|
5854
5854
|
})();
|
|
5855
|
-
},
|
|
5855
|
+
}, ts = ({
|
|
5856
5856
|
id: e,
|
|
5857
5857
|
sessionId: t,
|
|
5858
5858
|
develop: n,
|
|
5859
5859
|
...i
|
|
5860
|
-
}) => /* @__PURE__ */ b(Mr, { ...i }),
|
|
5860
|
+
}) => /* @__PURE__ */ b(Mr, { ...i }), es = ({
|
|
5861
5861
|
id: e,
|
|
5862
5862
|
sessionId: t,
|
|
5863
5863
|
develop: n,
|
|
@@ -5915,7 +5915,7 @@ const Qc = ({
|
|
|
5915
5915
|
)
|
|
5916
5916
|
}
|
|
5917
5917
|
);
|
|
5918
|
-
},
|
|
5918
|
+
}, ns = ({
|
|
5919
5919
|
id: e,
|
|
5920
5920
|
sessionId: t,
|
|
5921
5921
|
develop: n,
|
|
@@ -5999,7 +5999,7 @@ const Qc = ({
|
|
|
5999
5999
|
}
|
|
6000
6000
|
return Array.isArray(e), e;
|
|
6001
6001
|
}
|
|
6002
|
-
},
|
|
6002
|
+
}, rs = ({
|
|
6003
6003
|
id: e,
|
|
6004
6004
|
sessionId: t,
|
|
6005
6005
|
develop: n,
|
|
@@ -6062,16 +6062,16 @@ const Qc = ({
|
|
|
6062
6062
|
}
|
|
6063
6063
|
);
|
|
6064
6064
|
};
|
|
6065
|
-
}, [h, n]),
|
|
6065
|
+
}, [h, n]), K = g(() => {
|
|
6066
6066
|
if (M)
|
|
6067
6067
|
return !f || !s ? M : ($, q) => {
|
|
6068
|
-
const
|
|
6068
|
+
const z = typeof q == "number" ? q : typeof ($ == null ? void 0 : $.index) == "number" ? $.index : Number(($ == null ? void 0 : $.index) ?? 0);
|
|
6069
6069
|
return /* @__PURE__ */ b(
|
|
6070
6070
|
re.Provider,
|
|
6071
6071
|
{
|
|
6072
6072
|
value: {
|
|
6073
6073
|
dataSet: f,
|
|
6074
|
-
index:
|
|
6074
|
+
index: z,
|
|
6075
6075
|
sessionId: y,
|
|
6076
6076
|
dataSetFieldRoot: s
|
|
6077
6077
|
},
|
|
@@ -6080,22 +6080,22 @@ const Qc = ({
|
|
|
6080
6080
|
);
|
|
6081
6081
|
};
|
|
6082
6082
|
}, [M, f, s, y]), {
|
|
6083
|
-
layoutChangeAction:
|
|
6084
|
-
...
|
|
6083
|
+
layoutChangeAction: H,
|
|
6084
|
+
...P
|
|
6085
6085
|
} = p;
|
|
6086
6086
|
return /* @__PURE__ */ b(
|
|
6087
6087
|
Rr,
|
|
6088
6088
|
{
|
|
6089
|
-
...
|
|
6089
|
+
...P,
|
|
6090
6090
|
items: _,
|
|
6091
6091
|
columns: C,
|
|
6092
6092
|
gutter: w,
|
|
6093
6093
|
fresh: l,
|
|
6094
|
-
itemRender:
|
|
6094
|
+
itemRender: K,
|
|
6095
6095
|
onLayoutChange: E
|
|
6096
6096
|
}
|
|
6097
6097
|
);
|
|
6098
|
-
},
|
|
6098
|
+
}, is = ({
|
|
6099
6099
|
id: e,
|
|
6100
6100
|
sessionId: t,
|
|
6101
6101
|
develop: n,
|
|
@@ -6131,7 +6131,7 @@ const Qc = ({
|
|
|
6131
6131
|
onClose: T
|
|
6132
6132
|
}
|
|
6133
6133
|
);
|
|
6134
|
-
},
|
|
6134
|
+
}, as = ({
|
|
6135
6135
|
id: e,
|
|
6136
6136
|
sessionId: t,
|
|
6137
6137
|
develop: n,
|
|
@@ -6174,7 +6174,7 @@ const Qc = ({
|
|
|
6174
6174
|
children: v
|
|
6175
6175
|
}
|
|
6176
6176
|
);
|
|
6177
|
-
},
|
|
6177
|
+
}, os = ({
|
|
6178
6178
|
id: e,
|
|
6179
6179
|
sessionId: t,
|
|
6180
6180
|
develop: n,
|
|
@@ -6208,7 +6208,7 @@ const Qc = ({
|
|
|
6208
6208
|
children: l
|
|
6209
6209
|
}
|
|
6210
6210
|
);
|
|
6211
|
-
},
|
|
6211
|
+
}, cs = ({
|
|
6212
6212
|
id: e,
|
|
6213
6213
|
sessionId: t,
|
|
6214
6214
|
develop: n,
|
|
@@ -6231,7 +6231,7 @@ const Qc = ({
|
|
|
6231
6231
|
key: n.key,
|
|
6232
6232
|
tab: n.tab,
|
|
6233
6233
|
disabled: n.disabled
|
|
6234
|
-
})),
|
|
6234
|
+
})), ss = ({
|
|
6235
6235
|
id: e,
|
|
6236
6236
|
sessionId: t,
|
|
6237
6237
|
develop: n,
|
|
@@ -6263,66 +6263,66 @@ const Qc = ({
|
|
|
6263
6263
|
children: S,
|
|
6264
6264
|
...A
|
|
6265
6265
|
}) => {
|
|
6266
|
-
const N = O((
|
|
6266
|
+
const N = O((L) => L.addCommand), k = O((L) => L.getDataSet), C = O((L) => L.setDataSet), w = g(
|
|
6267
6267
|
() => tt(t, i),
|
|
6268
6268
|
[t, i]
|
|
6269
6269
|
), E = T === "default" ? "medium" : T, _ = g(() => {
|
|
6270
|
-
const
|
|
6270
|
+
const L = on(s, {});
|
|
6271
6271
|
return Object.fromEntries(
|
|
6272
|
-
Object.entries(
|
|
6272
|
+
Object.entries(L).map(([rt, it]) => [
|
|
6273
6273
|
rt,
|
|
6274
6274
|
go(it)
|
|
6275
6275
|
])
|
|
6276
6276
|
);
|
|
6277
6277
|
}, [s]), M = g(() => {
|
|
6278
|
-
const
|
|
6279
|
-
return
|
|
6280
|
-
}, [v]),
|
|
6278
|
+
const L = po(v);
|
|
6279
|
+
return L.length > 0 ? L : void 0;
|
|
6280
|
+
}, [v]), H = g(() => {
|
|
6281
6281
|
if (w && r) {
|
|
6282
|
-
const
|
|
6283
|
-
if (typeof
|
|
6282
|
+
const L = k(w, `${r}.activeTabKey`);
|
|
6283
|
+
if (typeof L == "string") return L;
|
|
6284
6284
|
}
|
|
6285
|
-
}, [w, r, k]) ?? h,
|
|
6285
|
+
}, [w, r, k]) ?? h, P = B((L) => {
|
|
6286
6286
|
if (f) {
|
|
6287
|
-
f(
|
|
6287
|
+
f(L);
|
|
6288
6288
|
return;
|
|
6289
6289
|
}
|
|
6290
|
-
w && r && C(w, `${r}.activeTabKey`,
|
|
6291
|
-
}, [f, w, r, C, d, t, N]), { titleSlot: $, extraSlot: q, coverSlot:
|
|
6292
|
-
let
|
|
6290
|
+
w && r && C(w, `${r}.activeTabKey`, L), d && t && N(t, X(d, { key: L }));
|
|
6291
|
+
}, [f, w, r, C, d, t, N]), { titleSlot: $, extraSlot: q, coverSlot: z, actionsSlot: W, otherChildren: R, actionsFromChildren: V } = g(() => {
|
|
6292
|
+
let L = null, rt = null, it = null, nt = [];
|
|
6293
6293
|
const yt = [];
|
|
6294
6294
|
let Ct = !1;
|
|
6295
|
-
return a && (
|
|
6295
|
+
return a && (L = a), o && (rt = o), c && (it = c), m && (nt = m), qt.Children.forEach(S, (mt) => {
|
|
6296
6296
|
if (!qt.isValidElement(mt)) {
|
|
6297
6297
|
yt.push(mt);
|
|
6298
6298
|
return;
|
|
6299
6299
|
}
|
|
6300
6300
|
const I = mt.props, st = I["data-slot-type"];
|
|
6301
|
-
st === "title" && !a ?
|
|
6302
|
-
}), { titleSlot:
|
|
6303
|
-
}, [S, a, o, c, m]),
|
|
6304
|
-
const
|
|
6305
|
-
return
|
|
6306
|
-
}, [y,
|
|
6301
|
+
st === "title" && !a ? L = mt : st === "extra" && !o ? rt = mt : st === "cover" && !c ? it = mt : st === "actions" && !m ? (nt = [mt], Ct = !0) : st === "body" && I.children ? yt.push(I.children) : yt.push(mt);
|
|
6302
|
+
}), { titleSlot: L, extraSlot: rt, coverSlot: it, actionsSlot: nt, otherChildren: yt, actionsFromChildren: Ct };
|
|
6303
|
+
}, [S, a, o, c, m]), G = g(() => {
|
|
6304
|
+
const L = on(y, {});
|
|
6305
|
+
return V ? { actionsLiMargin: "0px", ...L } : L;
|
|
6306
|
+
}, [y, V]), j = /* @__PURE__ */ b(
|
|
6307
6307
|
Je,
|
|
6308
6308
|
{
|
|
6309
6309
|
...A,
|
|
6310
6310
|
size: E,
|
|
6311
6311
|
title: $,
|
|
6312
6312
|
extra: q,
|
|
6313
|
-
cover:
|
|
6313
|
+
cover: z,
|
|
6314
6314
|
tabBarExtraContent: l,
|
|
6315
6315
|
actions: W.length > 0 ? W : void 0,
|
|
6316
6316
|
tabList: M,
|
|
6317
|
-
activeTabKey:
|
|
6317
|
+
activeTabKey: H,
|
|
6318
6318
|
defaultActiveTabKey: p,
|
|
6319
|
-
onTabChange: M ?
|
|
6319
|
+
onTabChange: M ? P : void 0,
|
|
6320
6320
|
styles: _,
|
|
6321
6321
|
children: R
|
|
6322
6322
|
}
|
|
6323
6323
|
);
|
|
6324
|
-
return
|
|
6325
|
-
},
|
|
6324
|
+
return G && Object.keys(G).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Card: G } }, children: j }) : j;
|
|
6325
|
+
}, ls = ({
|
|
6326
6326
|
id: e,
|
|
6327
6327
|
sessionId: t,
|
|
6328
6328
|
develop: n,
|
|
@@ -6359,7 +6359,7 @@ const Qc = ({
|
|
|
6359
6359
|
disabled: t.disabled,
|
|
6360
6360
|
danger: t.danger,
|
|
6361
6361
|
children: t.children ? nr(t.children) : void 0
|
|
6362
|
-
}),
|
|
6362
|
+
}), us = ({
|
|
6363
6363
|
id: e,
|
|
6364
6364
|
sessionId: t,
|
|
6365
6365
|
develop: n,
|
|
@@ -6481,7 +6481,7 @@ const Qc = ({
|
|
|
6481
6481
|
children: [
|
|
6482
6482
|
p,
|
|
6483
6483
|
n && !p && !d && /* @__PURE__ */ b("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
6484
|
-
!p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ ot(
|
|
6484
|
+
!p && !n && a && /* @__PURE__ */ b(Xt, { children: /* @__PURE__ */ ot(Pt, { children: [
|
|
6485
6485
|
a,
|
|
6486
6486
|
/* @__PURE__ */ b(Yn, {})
|
|
6487
6487
|
] }) })
|
|
@@ -6489,25 +6489,25 @@ const Qc = ({
|
|
|
6489
6489
|
}
|
|
6490
6490
|
), [p, n, a, d]);
|
|
6491
6491
|
return /* @__PURE__ */ b(Kr, { ...s, menu: k, onOpenChange: N, children: C });
|
|
6492
|
-
},
|
|
6492
|
+
}, fs = ({
|
|
6493
6493
|
id: e,
|
|
6494
6494
|
sessionId: t,
|
|
6495
6495
|
develop: n,
|
|
6496
6496
|
children: i,
|
|
6497
6497
|
...r
|
|
6498
|
-
}) => /* @__PURE__ */ b(Lr, { ...r, children: i }),
|
|
6498
|
+
}) => /* @__PURE__ */ b(Lr, { ...r, children: i }), ds = ({
|
|
6499
6499
|
id: e,
|
|
6500
6500
|
sessionId: t,
|
|
6501
6501
|
develop: n,
|
|
6502
6502
|
children: i,
|
|
6503
6503
|
...r
|
|
6504
|
-
}) => /* @__PURE__ */ b(zr, { ...r, children: i }),
|
|
6504
|
+
}) => /* @__PURE__ */ b(zr, { ...r, children: i }), ms = ({
|
|
6505
6505
|
id: e,
|
|
6506
6506
|
sessionId: t,
|
|
6507
6507
|
develop: n,
|
|
6508
6508
|
children: i,
|
|
6509
6509
|
...r
|
|
6510
|
-
}) => /* @__PURE__ */ b(Bn, { ...r, children: i }),
|
|
6510
|
+
}) => /* @__PURE__ */ b(Bn, { ...r, children: i }), hs = ({
|
|
6511
6511
|
id: e,
|
|
6512
6512
|
sessionId: t,
|
|
6513
6513
|
develop: n,
|
|
@@ -6544,7 +6544,7 @@ const Qc = ({
|
|
|
6544
6544
|
return t;
|
|
6545
6545
|
}
|
|
6546
6546
|
return e;
|
|
6547
|
-
},
|
|
6547
|
+
}, ys = ({
|
|
6548
6548
|
id: e,
|
|
6549
6549
|
sessionId: t,
|
|
6550
6550
|
develop: n,
|
|
@@ -6599,18 +6599,18 @@ const Qc = ({
|
|
|
6599
6599
|
},
|
|
6600
6600
|
[h, m, t, u]
|
|
6601
6601
|
), k = () => f && qt.Children.count(f) > 0 ? qt.Children.map(f, (_, M) => {
|
|
6602
|
-
const
|
|
6602
|
+
const K = x[M] || {};
|
|
6603
6603
|
return /* @__PURE__ */ b(
|
|
6604
6604
|
qe.Panel,
|
|
6605
6605
|
{
|
|
6606
|
-
defaultSize:
|
|
6607
|
-
min:
|
|
6608
|
-
max:
|
|
6609
|
-
collapsible:
|
|
6610
|
-
resizable:
|
|
6606
|
+
defaultSize: K.defaultSize,
|
|
6607
|
+
min: K.min,
|
|
6608
|
+
max: K.max,
|
|
6609
|
+
collapsible: K.collapsible,
|
|
6610
|
+
resizable: K.resizable !== !1,
|
|
6611
6611
|
children: _
|
|
6612
6612
|
},
|
|
6613
|
-
|
|
6613
|
+
K.key || M
|
|
6614
6614
|
);
|
|
6615
6615
|
}) : x.map((_, M) => /* @__PURE__ */ b(
|
|
6616
6616
|
qe.Panel,
|
|
@@ -6656,7 +6656,7 @@ const Qc = ({
|
|
|
6656
6656
|
r
|
|
6657
6657
|
) });
|
|
6658
6658
|
return D && Object.keys(D).length > 0 ? /* @__PURE__ */ b(Mt, { theme: { components: { Splitter: D } }, children: E }) : E;
|
|
6659
|
-
},
|
|
6659
|
+
}, gs = ({
|
|
6660
6660
|
children: e,
|
|
6661
6661
|
className: t,
|
|
6662
6662
|
style: n,
|
|
@@ -6677,7 +6677,7 @@ const Qc = ({
|
|
|
6677
6677
|
...v,
|
|
6678
6678
|
children: e
|
|
6679
6679
|
}
|
|
6680
|
-
),
|
|
6680
|
+
), ps = ({
|
|
6681
6681
|
id: e,
|
|
6682
6682
|
sessionId: t,
|
|
6683
6683
|
develop: n,
|
|
@@ -6698,30 +6698,30 @@ const Qc = ({
|
|
|
6698
6698
|
"page-size": u = "small",
|
|
6699
6699
|
"page-showLessItems": x = !1
|
|
6700
6700
|
}) => {
|
|
6701
|
-
const D = u === "default" ? "middle" : u, T = O((
|
|
6701
|
+
const D = u === "default" ? "middle" : u, T = O((K) => K.getDataSet), S = g(
|
|
6702
6702
|
() => tt(t, i),
|
|
6703
6703
|
[t, i]
|
|
6704
6704
|
), [A, N] = dt(1), [k, C] = dt(p), w = g(() => {
|
|
6705
6705
|
if (S && r) {
|
|
6706
|
-
const
|
|
6707
|
-
return Array.isArray(
|
|
6706
|
+
const K = T(S, r);
|
|
6707
|
+
return Array.isArray(K) ? K : [];
|
|
6708
6708
|
}
|
|
6709
6709
|
return [];
|
|
6710
6710
|
}, [S, r, T]), E = g(() => n ? w.length > 0 ? w : c || [] : S ? w : c || [], [n, S, w, c]), _ = g(() => {
|
|
6711
|
-
let
|
|
6711
|
+
let K = E;
|
|
6712
6712
|
if (!h) {
|
|
6713
|
-
const
|
|
6714
|
-
|
|
6713
|
+
const H = (A - 1) * k, P = H + k;
|
|
6714
|
+
K = K.slice(H, P);
|
|
6715
6715
|
}
|
|
6716
|
-
return l ?
|
|
6716
|
+
return l ? K.slice(0, l) : K;
|
|
6717
6717
|
}, [E, h, A, k, l]);
|
|
6718
6718
|
if (!E || E.length === 0)
|
|
6719
6719
|
return o ? /* @__PURE__ */ b(se, { children: o() }) : /* @__PURE__ */ b("div", { style: { textAlign: "center", padding: "20px", color: "#999" }, children: "暂无数据" });
|
|
6720
|
-
const M = (
|
|
6721
|
-
N(
|
|
6720
|
+
const M = (K, H) => {
|
|
6721
|
+
N(K), H && C(H);
|
|
6722
6722
|
};
|
|
6723
6723
|
return /* @__PURE__ */ ot("div", { style: { display: "flex", flexDirection: "column", ...m }, children: [
|
|
6724
|
-
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: _.map((
|
|
6724
|
+
/* @__PURE__ */ b("div", { style: { flex: 1 }, children: _.map((K, H) => /* @__PURE__ */ b(qt.Fragment, { children: a ? a(K, H) : /* @__PURE__ */ b("div", { style: { padding: "8px", borderBottom: "1px solid #f0f0f0" }, children: JSON.stringify(K) }) }, K.id || H)) }),
|
|
6725
6725
|
!h && E.length > 0 && /* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "flex-end", marginTop: 16 }, children: /* @__PURE__ */ b(
|
|
6726
6726
|
Ln,
|
|
6727
6727
|
{
|
|
@@ -6738,7 +6738,7 @@ const Qc = ({
|
|
|
6738
6738
|
}
|
|
6739
6739
|
) })
|
|
6740
6740
|
] });
|
|
6741
|
-
}, vo = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", bo = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}",
|
|
6741
|
+
}, vo = "@keyframes and-icon-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}", bo = ".and-icon-svg-root svg,.and-icon-svg-root svg path{fill:currentColor}.and-icon-svg-root svg{color:inherit}", vs = ({
|
|
6742
6742
|
id: e,
|
|
6743
6743
|
sessionId: t,
|
|
6744
6744
|
develop: n,
|
|
@@ -6803,7 +6803,7 @@ const Qc = ({
|
|
|
6803
6803
|
onClick: p
|
|
6804
6804
|
}
|
|
6805
6805
|
) : (console.warn(`Icon "${i}" not found in @ant-design/icons`), null);
|
|
6806
|
-
},
|
|
6806
|
+
}, bs = ({
|
|
6807
6807
|
id: e,
|
|
6808
6808
|
sessionId: t,
|
|
6809
6809
|
develop: n,
|
|
@@ -6836,7 +6836,7 @@ const Qc = ({
|
|
|
6836
6836
|
Je.Meta,
|
|
6837
6837
|
{
|
|
6838
6838
|
title: s.name,
|
|
6839
|
-
description: /* @__PURE__ */ ot(
|
|
6839
|
+
description: /* @__PURE__ */ ot(Pt, { direction: "vertical", size: 4, children: [
|
|
6840
6840
|
s.price !== void 0 && /* @__PURE__ */ ot("div", { children: [
|
|
6841
6841
|
/* @__PURE__ */ ot("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
|
|
6842
6842
|
"¥",
|
|
@@ -6847,7 +6847,7 @@ const Qc = ({
|
|
|
6847
6847
|
s.originalPrice
|
|
6848
6848
|
] })
|
|
6849
6849
|
] }),
|
|
6850
|
-
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(
|
|
6850
|
+
s.tags && s.tags.length > 0 && /* @__PURE__ */ b(Pt, { size: 4, wrap: !0, children: s.tags.map((y, u) => /* @__PURE__ */ b(Kn, { color: "blue", children: y }, u)) })
|
|
6851
6851
|
] })
|
|
6852
6852
|
}
|
|
6853
6853
|
)
|
|
@@ -6881,7 +6881,7 @@ const Qc = ({
|
|
|
6881
6881
|
i && /* @__PURE__ */ b("div", { style: { fontSize: 12, opacity: 0.7 }, children: i })
|
|
6882
6882
|
]
|
|
6883
6883
|
}
|
|
6884
|
-
),
|
|
6884
|
+
), Ss = ({
|
|
6885
6885
|
componentName: e,
|
|
6886
6886
|
componentProps: t = {},
|
|
6887
6887
|
storePropsKey: n,
|
|
@@ -6920,10 +6920,10 @@ const Qc = ({
|
|
|
6920
6920
|
if (!n || !f) return { componentName: "", props: {} };
|
|
6921
6921
|
const w = n.split(".")[1], E = w ? f[w] || {} : f;
|
|
6922
6922
|
if (typeof E == "object" && E !== null) {
|
|
6923
|
-
const { componentName: _, props: M, ...
|
|
6923
|
+
const { componentName: _, props: M, ...K } = E;
|
|
6924
6924
|
return {
|
|
6925
6925
|
componentName: _ || "",
|
|
6926
|
-
props: M ||
|
|
6926
|
+
props: M || K || {}
|
|
6927
6927
|
};
|
|
6928
6928
|
}
|
|
6929
6929
|
return { componentName: "", props: {} };
|
|
@@ -6967,7 +6967,7 @@ const Qc = ({
|
|
|
6967
6967
|
}
|
|
6968
6968
|
);
|
|
6969
6969
|
}
|
|
6970
|
-
const T =
|
|
6970
|
+
const T = Yt(), S = l || T.componentResolver;
|
|
6971
6971
|
if (!S)
|
|
6972
6972
|
return /* @__PURE__ */ b(
|
|
6973
6973
|
En,
|
|
@@ -6994,7 +6994,7 @@ const Qc = ({
|
|
|
6994
6994
|
style: o
|
|
6995
6995
|
}
|
|
6996
6996
|
);
|
|
6997
|
-
},
|
|
6997
|
+
}, ws = ({
|
|
6998
6998
|
content: e = "Watermark",
|
|
6999
6999
|
width: t,
|
|
7000
7000
|
height: n,
|
|
@@ -7060,18 +7060,13 @@ const Qc = ({
|
|
|
7060
7060
|
) : s;
|
|
7061
7061
|
};
|
|
7062
7062
|
let cn = !1;
|
|
7063
|
-
function
|
|
7063
|
+
function Ds(e) {
|
|
7064
7064
|
typeof window > "u" || (he.GlobalWorkerOptions.workerSrc = e, cn = !0);
|
|
7065
7065
|
}
|
|
7066
7066
|
function So(e) {
|
|
7067
7067
|
typeof window > "u" || cn && he.GlobalWorkerOptions.workerSrc || (he.GlobalWorkerOptions.workerSrc = e ?? `https://unpkg.com/pdfjs-dist@${he.version}/build/pdf.worker.min.mjs`, cn = !0);
|
|
7068
7068
|
}
|
|
7069
|
-
|
|
7070
|
-
if (!e || typeof e != "string" || /^(data:|blob:|https?:\/\/)/i.test(e)) return e;
|
|
7071
|
-
const t = Ut().viewRes;
|
|
7072
|
-
return t ? t(e) : e;
|
|
7073
|
-
}
|
|
7074
|
-
const As = ({
|
|
7069
|
+
const xs = ({
|
|
7075
7070
|
id: e,
|
|
7076
7071
|
sessionId: t,
|
|
7077
7072
|
develop: n,
|
|
@@ -7088,119 +7083,125 @@ const As = ({
|
|
|
7088
7083
|
bt(() => {
|
|
7089
7084
|
So();
|
|
7090
7085
|
}, []);
|
|
7091
|
-
const p = O((
|
|
7086
|
+
const p = O((j) => j.setDataSet), d = g(
|
|
7092
7087
|
() => tt(t, i),
|
|
7093
7088
|
[t, i]
|
|
7094
|
-
), f = O((
|
|
7089
|
+
), f = O((j) => {
|
|
7095
7090
|
if (!d || !r) return;
|
|
7096
|
-
const
|
|
7097
|
-
if (
|
|
7091
|
+
const L = j.getDataSet(d, r);
|
|
7092
|
+
if (L != null && L !== "") return String(L);
|
|
7098
7093
|
}), s = O(
|
|
7099
|
-
(
|
|
7100
|
-
var
|
|
7101
|
-
return t && e ? ((
|
|
7094
|
+
(j) => {
|
|
7095
|
+
var L;
|
|
7096
|
+
return t && e ? ((L = j.propsStore[`${t}_props`]) == null ? void 0 : L[e]) ?? null : null;
|
|
7102
7097
|
}
|
|
7103
7098
|
), y = g(() => {
|
|
7104
|
-
let
|
|
7105
|
-
if (f !== void 0)
|
|
7099
|
+
let j;
|
|
7100
|
+
if (f !== void 0) j = f;
|
|
7106
7101
|
else if (s && typeof s == "object") {
|
|
7107
|
-
const
|
|
7108
|
-
|
|
7102
|
+
const L = s.filePath;
|
|
7103
|
+
L != null && L !== "" && (j = String(L));
|
|
7109
7104
|
}
|
|
7110
|
-
return
|
|
7105
|
+
return j === void 0 && (j = a), j;
|
|
7111
7106
|
}, [f, s, a]), [u, x] = dt(0), [D, T] = dt(
|
|
7112
7107
|
() => Math.max(1, o || 1)
|
|
7113
|
-
), [S, A] = dt(null), [N, k] = dt(!!y), C = $t(null), w = $t(null), [E, _] = dt(600), M = $t(0),
|
|
7114
|
-
|
|
7115
|
-
|
|
7108
|
+
), [S, A] = dt(null), [N, k] = dt(!!y), C = $t(null), w = $t(null), [E, _] = dt(600), M = $t(0), K = g(
|
|
7109
|
+
() => ({
|
|
7110
|
+
cMapUrl: `https://unpkg.com/pdfjs-dist@${he.version}/cmaps/`,
|
|
7111
|
+
cMapPacked: !0
|
|
7112
|
+
}),
|
|
7113
|
+
[]
|
|
7114
|
+
), H = (c || "").trim(), P = O((j) => {
|
|
7115
|
+
if (!(!d || !H))
|
|
7116
|
+
return j.getDataSet(d, `${H}.targetPage`);
|
|
7116
7117
|
});
|
|
7117
7118
|
bt(() => {
|
|
7118
|
-
const
|
|
7119
|
-
if (!
|
|
7120
|
-
const
|
|
7121
|
-
const
|
|
7122
|
-
|
|
7119
|
+
const j = w.current;
|
|
7120
|
+
if (!j) return;
|
|
7121
|
+
const L = new ResizeObserver(() => {
|
|
7122
|
+
const it = j.clientWidth;
|
|
7123
|
+
it > 0 && _(it);
|
|
7123
7124
|
});
|
|
7124
|
-
|
|
7125
|
-
const
|
|
7126
|
-
return
|
|
7125
|
+
L.observe(j);
|
|
7126
|
+
const rt = j.clientWidth;
|
|
7127
|
+
return rt > 0 && _(rt), () => L.disconnect();
|
|
7127
7128
|
}, [y]);
|
|
7128
|
-
const
|
|
7129
|
-
(
|
|
7130
|
-
!d || !
|
|
7129
|
+
const $ = B(
|
|
7130
|
+
(j, L) => {
|
|
7131
|
+
!d || !H || (p(d, `${H}.currentPage`, j), L > 0 && p(d, `${H}.totalPages`, L));
|
|
7131
7132
|
},
|
|
7132
|
-
[d,
|
|
7133
|
+
[d, H, p]
|
|
7133
7134
|
);
|
|
7134
7135
|
bt(() => {
|
|
7135
|
-
u > 0 &&
|
|
7136
|
-
}, [D, u,
|
|
7137
|
-
const
|
|
7138
|
-
if (typeof
|
|
7139
|
-
const
|
|
7140
|
-
u > 0 ? T(Math.min(
|
|
7141
|
-
}, [P, u, d,
|
|
7142
|
-
T((
|
|
7136
|
+
u > 0 && $(D, u);
|
|
7137
|
+
}, [D, u, $]), bt(() => {
|
|
7138
|
+
const j = P;
|
|
7139
|
+
if (typeof j != "number" || !Number.isFinite(j)) return;
|
|
7140
|
+
const L = Math.max(1, Math.floor(j));
|
|
7141
|
+
u > 0 ? T(Math.min(L, u)) : T(L), d && H && p(d, `${H}.targetPage`, void 0);
|
|
7142
|
+
}, [P, u, d, H, p]), bt(() => {
|
|
7143
|
+
T((j) => Math.max(1, o || j));
|
|
7143
7144
|
}, [o, y]);
|
|
7144
|
-
const
|
|
7145
|
-
({ numPages:
|
|
7146
|
-
x(
|
|
7145
|
+
const q = B(
|
|
7146
|
+
({ numPages: j }) => {
|
|
7147
|
+
x(j), A(null), k(!1), T((L) => Math.min(Math.max(1, L), j || 1));
|
|
7147
7148
|
},
|
|
7148
7149
|
[]
|
|
7149
|
-
),
|
|
7150
|
-
A(
|
|
7150
|
+
), z = B((j) => {
|
|
7151
|
+
A(j), k(!1);
|
|
7151
7152
|
}, []);
|
|
7152
7153
|
bt(() => {
|
|
7153
7154
|
k(!!y), A(null);
|
|
7154
7155
|
}, [y]);
|
|
7155
|
-
const
|
|
7156
|
+
const W = B(() => {
|
|
7156
7157
|
if (!y) return;
|
|
7157
|
-
const
|
|
7158
|
-
|
|
7158
|
+
const j = window.open(y, "_blank", "noopener,noreferrer");
|
|
7159
|
+
j && (j.onload = () => {
|
|
7159
7160
|
try {
|
|
7160
|
-
|
|
7161
|
+
j.print();
|
|
7161
7162
|
} catch {
|
|
7162
7163
|
}
|
|
7163
7164
|
});
|
|
7164
|
-
}, [y]), W = B(() => {
|
|
7165
|
-
if (!y) return;
|
|
7166
|
-
const K = document.createElement("a");
|
|
7167
|
-
K.href = y, K.download = "", K.rel = "noopener noreferrer", K.target = "_blank", document.body.appendChild(K), K.click(), K.remove();
|
|
7168
7165
|
}, [y]), R = B(() => {
|
|
7169
|
-
|
|
7170
|
-
const
|
|
7171
|
-
|
|
7172
|
-
}, []),
|
|
7166
|
+
if (!y) return;
|
|
7167
|
+
const j = document.createElement("a");
|
|
7168
|
+
j.href = y, j.download = "", j.rel = "noopener noreferrer", j.target = "_blank", document.body.appendChild(j), j.click(), j.remove();
|
|
7169
|
+
}, [y]), V = B(() => {
|
|
7170
|
+
var L;
|
|
7171
|
+
const j = C.current;
|
|
7172
|
+
j && ((L = j.requestFullscreen) == null || L.call(j));
|
|
7173
|
+
}, []), G = B(() => {
|
|
7173
7174
|
document.fullscreenElement && document.exitFullscreen();
|
|
7174
7175
|
}, []);
|
|
7175
7176
|
return bt(() => {
|
|
7176
7177
|
if (!s || typeof s != "object") return;
|
|
7177
|
-
const
|
|
7178
|
-
if (!(
|
|
7179
|
-
switch (M.current =
|
|
7178
|
+
const j = s._pdfCmdNonce, L = s.pdfCommand, rt = s.pdfCommandArg;
|
|
7179
|
+
if (!(j == null || j === M.current || !L))
|
|
7180
|
+
switch (M.current = j, L) {
|
|
7180
7181
|
case "print":
|
|
7181
|
-
|
|
7182
|
+
W();
|
|
7182
7183
|
break;
|
|
7183
7184
|
case "download":
|
|
7184
|
-
|
|
7185
|
+
R();
|
|
7185
7186
|
break;
|
|
7186
7187
|
case "enterFullscreen":
|
|
7187
|
-
|
|
7188
|
+
V();
|
|
7188
7189
|
break;
|
|
7189
7190
|
case "exitFullscreen":
|
|
7190
|
-
|
|
7191
|
+
G();
|
|
7191
7192
|
break;
|
|
7192
7193
|
case "goToPage":
|
|
7193
|
-
typeof
|
|
7194
|
-
Math.max(1, Math.min(Math.floor(
|
|
7195
|
-
) : typeof
|
|
7194
|
+
typeof rt == "number" && u > 0 ? T(
|
|
7195
|
+
Math.max(1, Math.min(Math.floor(rt), u))
|
|
7196
|
+
) : typeof rt == "number" && T(Math.max(1, Math.floor(rt)));
|
|
7196
7197
|
break;
|
|
7197
7198
|
}
|
|
7198
7199
|
}, [
|
|
7199
7200
|
s,
|
|
7200
|
-
L,
|
|
7201
7201
|
W,
|
|
7202
7202
|
R,
|
|
7203
|
-
|
|
7203
|
+
V,
|
|
7204
|
+
G,
|
|
7204
7205
|
u
|
|
7205
7206
|
]), /* @__PURE__ */ b(
|
|
7206
7207
|
"div",
|
|
@@ -7228,20 +7229,17 @@ const As = ({
|
|
|
7228
7229
|
ai,
|
|
7229
7230
|
{
|
|
7230
7231
|
file: y,
|
|
7231
|
-
onLoadSuccess:
|
|
7232
|
-
onLoadError:
|
|
7232
|
+
onLoadSuccess: q,
|
|
7233
|
+
onLoadError: z,
|
|
7233
7234
|
loading: null,
|
|
7234
|
-
options:
|
|
7235
|
-
cMapUrl: `https://unpkg.com/pdfjs-dist@${he.version}/cmaps/`,
|
|
7236
|
-
cMapPacked: !0
|
|
7237
|
-
},
|
|
7235
|
+
options: K,
|
|
7238
7236
|
children: /* @__PURE__ */ b(
|
|
7239
7237
|
oi,
|
|
7240
7238
|
{
|
|
7241
7239
|
pageNumber: D,
|
|
7242
7240
|
width: E,
|
|
7243
|
-
renderTextLayer: !
|
|
7244
|
-
renderAnnotationLayer: !
|
|
7241
|
+
renderTextLayer: !1,
|
|
7242
|
+
renderAnnotationLayer: !1
|
|
7245
7243
|
}
|
|
7246
7244
|
)
|
|
7247
7245
|
},
|
|
@@ -7253,7 +7251,7 @@ const As = ({
|
|
|
7253
7251
|
}
|
|
7254
7252
|
);
|
|
7255
7253
|
};
|
|
7256
|
-
function
|
|
7254
|
+
function As(e, t, n, i) {
|
|
7257
7255
|
const { getProps: r, setProps: a } = O.getState(), o = r(e, t), c = o && typeof o == "object" && !Array.isArray(o) ? o : {};
|
|
7258
7256
|
a(e, t, {
|
|
7259
7257
|
...c,
|
|
@@ -7274,7 +7272,7 @@ function Dt(e) {
|
|
|
7274
7272
|
return e;
|
|
7275
7273
|
}
|
|
7276
7274
|
}
|
|
7277
|
-
function
|
|
7275
|
+
function wo(e, t) {
|
|
7278
7276
|
return e == null || e === "" ? t : e === !0 || e === "true" ? !0 : e === !1 || e === "false" ? !1 : t;
|
|
7279
7277
|
}
|
|
7280
7278
|
function Zt(e, t) {
|
|
@@ -7319,26 +7317,26 @@ function Zt(e, t) {
|
|
|
7319
7317
|
annotations: E,
|
|
7320
7318
|
axis: _,
|
|
7321
7319
|
scrollbar: M,
|
|
7322
|
-
slider:
|
|
7323
|
-
theme:
|
|
7324
|
-
state:
|
|
7320
|
+
slider: K,
|
|
7321
|
+
theme: H,
|
|
7322
|
+
state: P,
|
|
7325
7323
|
// 事件配置
|
|
7326
7324
|
events: $,
|
|
7327
7325
|
// 其余配置直接透传
|
|
7328
7326
|
...q
|
|
7329
|
-
} = o,
|
|
7327
|
+
} = o, z = $t(null), W = O((Y) => Y.getDataSet), R = O((Y) => Y.addCommand), V = g(() => {
|
|
7330
7328
|
if (p && d) {
|
|
7331
|
-
const
|
|
7332
|
-
if (
|
|
7329
|
+
const U = W(p, d);
|
|
7330
|
+
if (U !== void 0) return U;
|
|
7333
7331
|
}
|
|
7334
|
-
const
|
|
7335
|
-
return
|
|
7336
|
-
}, [f, p, d, W, m]),
|
|
7337
|
-
var
|
|
7338
|
-
if (
|
|
7332
|
+
const Y = Dt(f);
|
|
7333
|
+
return Y !== void 0 ? Y : m ? r : [];
|
|
7334
|
+
}, [f, p, d, W, m]), G = (Y) => {
|
|
7335
|
+
var U;
|
|
7336
|
+
if (z.current = Y, !m && l) {
|
|
7339
7337
|
const et = Dt($);
|
|
7340
7338
|
et && typeof et == "object" && Object.entries(et).forEach(([Q, lt]) => {
|
|
7341
|
-
typeof lt == "string" &&
|
|
7339
|
+
typeof lt == "string" && Y.on(Q, (ft) => {
|
|
7342
7340
|
R(l, {
|
|
7343
7341
|
actionName: lt,
|
|
7344
7342
|
arg: ft,
|
|
@@ -7347,57 +7345,57 @@ function Zt(e, t) {
|
|
|
7347
7345
|
});
|
|
7348
7346
|
});
|
|
7349
7347
|
}
|
|
7350
|
-
(
|
|
7351
|
-
},
|
|
7352
|
-
data:
|
|
7348
|
+
(U = q.onReady) == null || U.call(q, Y);
|
|
7349
|
+
}, j = Dt(s) || {}, L = {
|
|
7350
|
+
data: V,
|
|
7353
7351
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
7354
|
-
height:
|
|
7355
|
-
autoFit:
|
|
7352
|
+
height: j.height ?? i,
|
|
7353
|
+
autoFit: wo(j.autoFit, !0),
|
|
7356
7354
|
// 合并其他通用配置 (margin, padding, insert, etc.)
|
|
7357
|
-
...
|
|
7355
|
+
...j,
|
|
7358
7356
|
// 设计器模式禁用动画
|
|
7359
7357
|
animate: m ? !1 : Dt(k),
|
|
7360
|
-
onReady:
|
|
7358
|
+
onReady: G,
|
|
7361
7359
|
...q
|
|
7362
7360
|
}, rt = Dt(T);
|
|
7363
|
-
rt !== void 0 && (
|
|
7361
|
+
rt !== void 0 && (L.title = rt);
|
|
7364
7362
|
const it = Dt(S);
|
|
7365
|
-
it !== void 0 && (
|
|
7363
|
+
it !== void 0 && (L.legend = it);
|
|
7366
7364
|
const nt = Dt(A);
|
|
7367
|
-
nt !== void 0 && (
|
|
7365
|
+
nt !== void 0 && (L.label = nt);
|
|
7368
7366
|
const yt = Dt(N);
|
|
7369
|
-
yt !== void 0 && (
|
|
7367
|
+
yt !== void 0 && (L.tooltip = yt);
|
|
7370
7368
|
const Ct = Dt(C);
|
|
7371
|
-
Ct !== void 0 && (
|
|
7369
|
+
Ct !== void 0 && (L.scale = Ct);
|
|
7372
7370
|
const mt = Dt(w);
|
|
7373
|
-
mt !== void 0 && (
|
|
7371
|
+
mt !== void 0 && (L.interaction = mt);
|
|
7374
7372
|
const I = Dt(E);
|
|
7375
|
-
I !== void 0 && (
|
|
7373
|
+
I !== void 0 && (L.annotations = I);
|
|
7376
7374
|
const st = Dt(_);
|
|
7377
|
-
st !== void 0 && (
|
|
7375
|
+
st !== void 0 && (L.axis = st);
|
|
7378
7376
|
const at = Dt(M);
|
|
7379
|
-
at !== void 0 && (
|
|
7380
|
-
const _t = Dt(
|
|
7381
|
-
_t !== void 0 && (
|
|
7382
|
-
const Ot = Dt(
|
|
7383
|
-
Ot !== void 0 && (
|
|
7384
|
-
const Bt = Dt(
|
|
7385
|
-
return Bt !== void 0 && (
|
|
7377
|
+
at !== void 0 && (L.scrollbar = at);
|
|
7378
|
+
const _t = Dt(K);
|
|
7379
|
+
_t !== void 0 && (L.slider = _t);
|
|
7380
|
+
const Ot = Dt(H);
|
|
7381
|
+
Ot !== void 0 && (L.theme = Ot);
|
|
7382
|
+
const Bt = Dt(P);
|
|
7383
|
+
return Bt !== void 0 && (L.state = Bt), /* @__PURE__ */ b(e, { ...L });
|
|
7386
7384
|
};
|
|
7387
7385
|
return a.displayName = `withBaseChart(${n})`, a;
|
|
7388
7386
|
}
|
|
7389
|
-
const
|
|
7387
|
+
const Do = [
|
|
7390
7388
|
{ year: "2020", value: 3 },
|
|
7391
7389
|
{ year: "2021", value: 4 },
|
|
7392
7390
|
{ year: "2022", value: 3.5 },
|
|
7393
7391
|
{ year: "2023", value: 5 },
|
|
7394
7392
|
{ year: "2024", value: 4.9 },
|
|
7395
7393
|
{ year: "2025", value: 6 }
|
|
7396
|
-
],
|
|
7394
|
+
], xo = Zt(ci, {
|
|
7397
7395
|
chartType: "AndVLine",
|
|
7398
7396
|
defaultHeight: 300,
|
|
7399
|
-
defaultData:
|
|
7400
|
-
}),
|
|
7397
|
+
defaultData: Do
|
|
7398
|
+
}), Cs = (e) => {
|
|
7401
7399
|
const {
|
|
7402
7400
|
xField: t = "year",
|
|
7403
7401
|
yField: n = "value",
|
|
@@ -7408,7 +7406,7 @@ const xo = [
|
|
|
7408
7406
|
...c
|
|
7409
7407
|
} = e;
|
|
7410
7408
|
return /* @__PURE__ */ b(
|
|
7411
|
-
|
|
7409
|
+
xo,
|
|
7412
7410
|
{
|
|
7413
7411
|
...c,
|
|
7414
7412
|
xField: t,
|
|
@@ -7419,18 +7417,18 @@ const xo = [
|
|
|
7419
7417
|
lineStyle: o
|
|
7420
7418
|
}
|
|
7421
7419
|
);
|
|
7422
|
-
},
|
|
7420
|
+
}, Ao = [
|
|
7423
7421
|
{ category: "一月", value: 38 },
|
|
7424
7422
|
{ category: "二月", value: 52 },
|
|
7425
7423
|
{ category: "三月", value: 61 },
|
|
7426
7424
|
{ category: "四月", value: 45 },
|
|
7427
7425
|
{ category: "五月", value: 48 },
|
|
7428
7426
|
{ category: "六月", value: 58 }
|
|
7429
|
-
],
|
|
7427
|
+
], Co = Zt(si, {
|
|
7430
7428
|
chartType: "AndVColumn",
|
|
7431
7429
|
defaultHeight: 300,
|
|
7432
|
-
defaultData:
|
|
7433
|
-
}),
|
|
7430
|
+
defaultData: Ao
|
|
7431
|
+
}), Ts = (e) => {
|
|
7434
7432
|
const {
|
|
7435
7433
|
xField: t = "category",
|
|
7436
7434
|
yField: n = "value",
|
|
@@ -7444,19 +7442,19 @@ const xo = [
|
|
|
7444
7442
|
xField: t,
|
|
7445
7443
|
yField: n
|
|
7446
7444
|
};
|
|
7447
|
-
return i && (l.seriesField = i), r && (l.isGroup = r), a && (l.isStack = a), o && (l.columnWidth = o), /* @__PURE__ */ b(
|
|
7448
|
-
},
|
|
7445
|
+
return i && (l.seriesField = i), r && (l.isGroup = r), a && (l.isStack = a), o && (l.columnWidth = o), /* @__PURE__ */ b(Co, { ...l });
|
|
7446
|
+
}, To = [
|
|
7449
7447
|
{ type: "分类一", value: 27 },
|
|
7450
7448
|
{ type: "分类二", value: 25 },
|
|
7451
7449
|
{ type: "分类三", value: 18 },
|
|
7452
7450
|
{ type: "分类四", value: 15 },
|
|
7453
7451
|
{ type: "分类五", value: 10 },
|
|
7454
7452
|
{ type: "其他", value: 5 }
|
|
7455
|
-
],
|
|
7453
|
+
], No = Zt(li, {
|
|
7456
7454
|
chartType: "AndVPie",
|
|
7457
7455
|
defaultHeight: 300,
|
|
7458
|
-
defaultData:
|
|
7459
|
-
}),
|
|
7456
|
+
defaultData: To
|
|
7457
|
+
}), Ns = (e) => {
|
|
7460
7458
|
const {
|
|
7461
7459
|
angleField: t = "value",
|
|
7462
7460
|
colorField: n = "type",
|
|
@@ -7469,8 +7467,8 @@ const xo = [
|
|
|
7469
7467
|
colorField: n,
|
|
7470
7468
|
radius: i
|
|
7471
7469
|
};
|
|
7472
|
-
return r !== void 0 && r > 0 && (o.innerRadius = r), /* @__PURE__ */ b(
|
|
7473
|
-
},
|
|
7470
|
+
return r !== void 0 && r > 0 && (o.innerRadius = r), /* @__PURE__ */ b(No, { ...o });
|
|
7471
|
+
}, ko = Zt(ui, {
|
|
7474
7472
|
chartType: "AndVArea",
|
|
7475
7473
|
defaultHeight: 300,
|
|
7476
7474
|
defaultData: [
|
|
@@ -7484,7 +7482,7 @@ const xo = [
|
|
|
7484
7482
|
{ year: "1998", value: 9 },
|
|
7485
7483
|
{ year: "1999", value: 13 }
|
|
7486
7484
|
]
|
|
7487
|
-
}),
|
|
7485
|
+
}), ks = (e) => {
|
|
7488
7486
|
const {
|
|
7489
7487
|
// 字段
|
|
7490
7488
|
xField: t,
|
|
@@ -7509,8 +7507,8 @@ const xo = [
|
|
|
7509
7507
|
const s = Dt(c);
|
|
7510
7508
|
s !== void 0 && (f.line = s);
|
|
7511
7509
|
const y = Dt(l);
|
|
7512
|
-
return y !== void 0 && (f.point = y), /* @__PURE__ */ b(
|
|
7513
|
-
},
|
|
7510
|
+
return y !== void 0 && (f.point = y), /* @__PURE__ */ b(ko, { ...f });
|
|
7511
|
+
}, Oo = Zt(fi, {
|
|
7514
7512
|
chartType: "AndVDualAxes",
|
|
7515
7513
|
defaultHeight: 300,
|
|
7516
7514
|
defaultData: [
|
|
@@ -7524,7 +7522,7 @@ const xo = [
|
|
|
7524
7522
|
{ year: "1998", value: 9, count: 1 },
|
|
7525
7523
|
{ year: "1999", value: 13, count: 20 }
|
|
7526
7524
|
]
|
|
7527
|
-
}),
|
|
7525
|
+
}), Os = (e) => {
|
|
7528
7526
|
const {
|
|
7529
7527
|
// 字段
|
|
7530
7528
|
xField: t,
|
|
@@ -7541,33 +7539,33 @@ const xo = [
|
|
|
7541
7539
|
const l = Dt(n);
|
|
7542
7540
|
l ? c.yField = l : n && (c.yField = n), i && (c.seriesField = i), r && (c.colorField = r);
|
|
7543
7541
|
const m = Dt(a);
|
|
7544
|
-
return m !== void 0 && (c.children = m), /* @__PURE__ */ b(
|
|
7545
|
-
},
|
|
7542
|
+
return m !== void 0 && (c.children = m), /* @__PURE__ */ b(Oo, { ...c });
|
|
7543
|
+
}, _o = Zt(di, {
|
|
7546
7544
|
chartType: "AndVGauge",
|
|
7547
7545
|
defaultHeight: 300,
|
|
7548
7546
|
defaultData: { percent: 0.7 }
|
|
7549
7547
|
// Gauge 默认数据
|
|
7550
|
-
}),
|
|
7548
|
+
}), _s = (e) => {
|
|
7551
7549
|
const {
|
|
7552
7550
|
...t
|
|
7553
7551
|
} = e, n = {
|
|
7554
7552
|
...t
|
|
7555
7553
|
};
|
|
7556
|
-
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ b(
|
|
7557
|
-
},
|
|
7554
|
+
return console.log("[AndVGauge] chartProps:", JSON.stringify(n, null, 2)), /* @__PURE__ */ b(_o, { ...n });
|
|
7555
|
+
}, Eo = Zt(mi, {
|
|
7558
7556
|
chartType: "AndVLiquid",
|
|
7559
7557
|
defaultHeight: 300,
|
|
7560
7558
|
defaultData: 0.25
|
|
7561
7559
|
// Liquid 默认 percent (注意:Liquid 数据直接作为 percent 传递)
|
|
7562
|
-
}),
|
|
7560
|
+
}), Es = (e) => {
|
|
7563
7561
|
const {
|
|
7564
7562
|
percent: t,
|
|
7565
7563
|
...n
|
|
7566
7564
|
} = e, i = {
|
|
7567
7565
|
...n
|
|
7568
7566
|
};
|
|
7569
|
-
return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ b(
|
|
7570
|
-
},
|
|
7567
|
+
return t !== void 0 && (i.percent = t), console.log("[AndVLiquid] chartProps:", JSON.stringify(i, null, 2)), /* @__PURE__ */ b(Eo, { ...i });
|
|
7568
|
+
}, $o = Zt(hi, {
|
|
7571
7569
|
chartType: "AndVBar",
|
|
7572
7570
|
defaultHeight: 300,
|
|
7573
7571
|
defaultData: [
|
|
@@ -7577,7 +7575,7 @@ const xo = [
|
|
|
7577
7575
|
{ year: "1957 年", value: 145 },
|
|
7578
7576
|
{ year: "1958 年", value: 48 }
|
|
7579
7577
|
]
|
|
7580
|
-
}),
|
|
7578
|
+
}), $s = (e) => {
|
|
7581
7579
|
const {
|
|
7582
7580
|
// 特有字段
|
|
7583
7581
|
xField: t,
|
|
@@ -7599,96 +7597,96 @@ const xo = [
|
|
|
7599
7597
|
const p = Dt(l);
|
|
7600
7598
|
p !== void 0 && (h.conversionTag = p);
|
|
7601
7599
|
const d = Dt(m);
|
|
7602
|
-
return d !== void 0 && (h.markBackground = d), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ b(
|
|
7600
|
+
return d !== void 0 && (h.markBackground = d), console.log("[AndVBar] chartProps:", JSON.stringify(h, null, 2)), /* @__PURE__ */ b($o, { ...h });
|
|
7603
7601
|
};
|
|
7604
7602
|
export {
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
|
|
7640
|
-
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
|
|
7658
|
-
|
|
7659
|
-
|
|
7660
|
-
|
|
7661
|
-
|
|
7662
|
-
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7670
|
-
|
|
7671
|
-
|
|
7672
|
-
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7603
|
+
uc as AVAILABLE_TOKENS,
|
|
7604
|
+
is as AndAlert,
|
|
7605
|
+
Ec as AndAutoComplete,
|
|
7606
|
+
Qc as AndAvatar,
|
|
7607
|
+
es as AndBadge,
|
|
7608
|
+
ns as AndBadgeRibbon,
|
|
7609
|
+
Zc as AndBreadCrumb,
|
|
7610
|
+
mc as AndButton,
|
|
7611
|
+
ts as AndCalendar,
|
|
7612
|
+
ss as AndCard,
|
|
7613
|
+
Yc as AndCarousel,
|
|
7614
|
+
kc as AndCascade,
|
|
7615
|
+
Cc as AndCheckbox,
|
|
7616
|
+
ds as AndColumn,
|
|
7617
|
+
ms as AndContainer,
|
|
7618
|
+
wc as AndDatePicker,
|
|
7619
|
+
ls as AndDivider,
|
|
7620
|
+
os as AndDrawer,
|
|
7621
|
+
us as AndDropdown,
|
|
7622
|
+
us as AndDropdownMenu,
|
|
7623
|
+
Ss as AndDynamicContainer,
|
|
7624
|
+
Mc as AndFormItem,
|
|
7625
|
+
vs as AndIcon,
|
|
7626
|
+
Gc as AndImage,
|
|
7627
|
+
Jc as AndImageGroup,
|
|
7628
|
+
hc as AndInput,
|
|
7629
|
+
gc as AndInputArea,
|
|
7630
|
+
yc as AndInputNumber,
|
|
7631
|
+
pc as AndInputPassword,
|
|
7632
|
+
vc as AndInputSearch,
|
|
7633
|
+
ps as AndIterator,
|
|
7634
|
+
rs as AndMasonry,
|
|
7635
|
+
Ic as AndMenu,
|
|
7636
|
+
as as AndModal,
|
|
7637
|
+
Xc as AndPagination,
|
|
7638
|
+
zc as AndParagraph,
|
|
7639
|
+
xs as AndPdfViewer,
|
|
7640
|
+
bs as AndProductCategory,
|
|
7641
|
+
hs as AndQRCode,
|
|
7642
|
+
Ac as AndRadio,
|
|
7643
|
+
xc as AndRangePicker,
|
|
7644
|
+
Tc as AndRate,
|
|
7645
|
+
cs as AndResult,
|
|
7646
|
+
fs as AndRow,
|
|
7647
|
+
jc as AndSegmented,
|
|
7648
|
+
bc as AndSelect,
|
|
7649
|
+
$c as AndSimpleForm,
|
|
7650
|
+
Nc as AndSlider,
|
|
7651
|
+
ys as AndSplitter,
|
|
7652
|
+
gs as AndSplitterPanel,
|
|
7653
|
+
Uc as AndStatistics,
|
|
7654
|
+
Pc as AndStatisticsCountdown,
|
|
7655
|
+
Hc as AndSteps,
|
|
7656
|
+
Sc as AndSwitch,
|
|
7657
|
+
Bc as AndTable,
|
|
7658
|
+
Vc as AndTabs,
|
|
7659
|
+
Fc as AndTag,
|
|
7660
|
+
Kc as AndText,
|
|
7661
|
+
Dc as AndTimePicker,
|
|
7662
|
+
Wc as AndTimeline,
|
|
7663
|
+
Lc as AndTitle,
|
|
7664
|
+
Rc as AndTransfer,
|
|
7665
|
+
qc as AndTree,
|
|
7666
|
+
Oc as AndTreeSelect,
|
|
7667
|
+
_c as AndUpload,
|
|
7668
|
+
ks as AndVArea,
|
|
7669
|
+
$s as AndVBar,
|
|
7670
|
+
Ts as AndVColumn,
|
|
7671
|
+
Os as AndVDualAxes,
|
|
7672
|
+
_s as AndVGauge,
|
|
7673
|
+
Cs as AndVLine,
|
|
7674
|
+
Es as AndVLiquid,
|
|
7675
|
+
Ns as AndVPie,
|
|
7676
|
+
ws as AndWatermark,
|
|
7677
|
+
fc as COMMON_TOKENS,
|
|
7680
7678
|
re as DataSetInheritContext,
|
|
7681
|
-
|
|
7682
|
-
|
|
7679
|
+
Io as cleanupAllMounts,
|
|
7680
|
+
Xo as clearCssCache,
|
|
7683
7681
|
X as createCommand,
|
|
7684
|
-
|
|
7682
|
+
oc as createWatchCommands,
|
|
7685
7683
|
ta as dictValueEquals,
|
|
7686
|
-
|
|
7684
|
+
As as dispatchPdfViewerCommand,
|
|
7687
7685
|
So as ensurePdfjsWorker,
|
|
7688
7686
|
ie as findDictOptionByValue,
|
|
7689
7687
|
Aa as formatByType,
|
|
7690
7688
|
rn as getAccessToken,
|
|
7691
|
-
|
|
7689
|
+
Yt as getCoreConfig,
|
|
7692
7690
|
tt as getDataSetStoreKey,
|
|
7693
7691
|
ln as getDictOptions,
|
|
7694
7692
|
Xe as getNestedValue,
|
|
@@ -7696,34 +7694,34 @@ export {
|
|
|
7696
7694
|
yi as initReactMount,
|
|
7697
7695
|
In as isTokenName,
|
|
7698
7696
|
Jt as mergeStoreProps,
|
|
7699
|
-
|
|
7697
|
+
Zo as mountReactComponent,
|
|
7700
7698
|
te as parseAction,
|
|
7701
7699
|
be as parseArrayNotation,
|
|
7702
7700
|
gt as parseChangeAction,
|
|
7703
7701
|
Si as parseClickAction,
|
|
7704
7702
|
Ne as parseNestedPath,
|
|
7705
|
-
|
|
7703
|
+
cc as parseQueryAction,
|
|
7706
7704
|
Qn as processValidationRules,
|
|
7707
|
-
|
|
7705
|
+
lc as req,
|
|
7708
7706
|
ne as request,
|
|
7709
|
-
|
|
7710
|
-
|
|
7707
|
+
dc as resolveTokenColorWithToken,
|
|
7708
|
+
sc as setCoreConfig,
|
|
7711
7709
|
pi as setNestedValue,
|
|
7712
|
-
|
|
7710
|
+
Ds as setPdfjsWorkerSrc,
|
|
7713
7711
|
Xn as upload,
|
|
7714
|
-
|
|
7712
|
+
nc as useAddCommand,
|
|
7715
7713
|
O as useAndStore,
|
|
7716
7714
|
ea as useApiService,
|
|
7717
|
-
|
|
7715
|
+
ac as useCommandsStore,
|
|
7718
7716
|
we as useDictOptions,
|
|
7719
7717
|
jt as useFieldValidation,
|
|
7720
|
-
|
|
7721
|
-
|
|
7718
|
+
ic as useItemStore,
|
|
7719
|
+
rc as usePopCommand,
|
|
7722
7720
|
un as useRemoteOptions,
|
|
7723
7721
|
Ke as useResolveTokenColor,
|
|
7724
7722
|
Re as useResolvedDataSet,
|
|
7725
|
-
|
|
7726
|
-
|
|
7723
|
+
tc as useStore,
|
|
7724
|
+
ec as useStoreByName,
|
|
7727
7725
|
vi as useStoreData,
|
|
7728
7726
|
Fn as validateWithSchema,
|
|
7729
7727
|
bi as watchCommands,
|