@nuwatop/code-canvas-core 0.5.94 → 0.5.96
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/AndText/index.d.ts.map +1 -1
- package/dist/index.esm.js +848 -838
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as v, jsxs as ve, Fragment as kt } from "react/jsx-runtime";
|
|
2
2
|
import { createRoot as Wr } from "react-dom/client";
|
|
3
|
-
import { theme as mt, ConfigProvider as Ue, Button as dt, Tooltip as Jt, Space as
|
|
3
|
+
import { theme as mt, ConfigProvider as Ue, Button as dt, Tooltip as Jt, Space as Re, Input as Qt, InputNumber as rr, Select as ir, Switch as Hr, DatePicker as or, TimePicker as Yr, Radio as tn, Checkbox as Tt, Rate as Ur, Slider as Ir, Cascader as Gr, TreeSelect as Jr, message as Wt, Upload as Qr, Image as ft, AutoComplete as Zr, Form as It, Transfer as Xr, Segmented as ei, Modal as ar, Table as ti, Flex as sr, Typography as wn, Tabs as ni, Tree as ri, Timeline as ii, Steps as oi, Statistic as ln, Carousel as ai, Avatar as si, Tag as cr, Pagination as lr, Breadcrumb as ci, Menu as li, Calendar as ui, Badge as ur, Masonry as di, Alert as dr, Drawer as fi, Result as mi, Card as un, Divider as Mn, Dropdown as yi, Row as hi, Col as gi, QRCode as pi, Splitter as nn, Spin as fr, Watermark as vi, Empty as bi } from "antd";
|
|
4
4
|
import { StyleProvider as Si, createCache as wi } from "@ant-design/cssinjs";
|
|
5
5
|
import xi from "antd/locale/zh_CN";
|
|
6
6
|
import { create as Ai } from "zustand";
|
|
7
7
|
import { subscribeWithSelector as Di } from "zustand/middleware";
|
|
8
8
|
import { immer as Ci } from "zustand/middleware/immer";
|
|
9
|
-
import Ie, { useMemo as m, useCallback as z, useEffect as
|
|
9
|
+
import Ie, { useMemo as m, useCallback as z, useEffect as $e, createContext as Ni, useContext as nt, useState as Ce, useRef as ze, useLayoutEffect as mr, useId as Ti, Suspense as ki } from "react";
|
|
10
10
|
import * as at from "@ant-design/icons";
|
|
11
11
|
import { CloseCircleOutlined as Mi, PlusOutlined as yr, UploadOutlined as _i, MenuOutlined as Ei, MinusOutlined as $i, LeftOutlined as hr, RightOutlined as gr, UpOutlined as Oi, DownOutlined as pr, ApiOutlined as Ri, InboxOutlined as ji, FilePdfOutlined as Li } from "@ant-design/icons";
|
|
12
12
|
import Bi from "clsx";
|
|
@@ -390,7 +390,7 @@ function ht(t, e = null, n = {}) {
|
|
|
390
390
|
}), s = a.length === 1 ? a[0] : a;
|
|
391
391
|
return { actionName: r, arg: s };
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function je(t, e, n = {}) {
|
|
394
394
|
return ht(t, e, n);
|
|
395
395
|
}
|
|
396
396
|
function br(t, e = {}) {
|
|
@@ -1132,7 +1132,7 @@ function Je(t) {
|
|
|
1132
1132
|
},
|
|
1133
1133
|
[e, l]
|
|
1134
1134
|
), b = a ? void 0 : r && n && i ? g : (h == null ? void 0 : h.help) ?? "", N = !a && b ? "error" : void 0;
|
|
1135
|
-
return
|
|
1135
|
+
return $e(() => {
|
|
1136
1136
|
if (d == null || !p || !i) return;
|
|
1137
1137
|
const A = S(p, i);
|
|
1138
1138
|
x(A);
|
|
@@ -1339,7 +1339,7 @@ function Lo() {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
function Kt(t) {
|
|
1341
1341
|
const [e, n] = Ce([]), [i, r] = Ce(!1), [o, a] = Ce(null);
|
|
1342
|
-
return
|
|
1342
|
+
return $e(() => {
|
|
1343
1343
|
if (!t) {
|
|
1344
1344
|
n([]);
|
|
1345
1345
|
return;
|
|
@@ -1390,7 +1390,7 @@ function An(t, e) {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
}, [t, S, p, g]);
|
|
1393
|
-
return
|
|
1393
|
+
return $e(() => {
|
|
1394
1394
|
y && t && u();
|
|
1395
1395
|
}, [y, t, u]), { options: n, loading: r, error: a, reload: u };
|
|
1396
1396
|
}
|
|
@@ -1810,8 +1810,8 @@ const wc = ({
|
|
|
1810
1810
|
onClick: A,
|
|
1811
1811
|
children: w || c
|
|
1812
1812
|
}
|
|
1813
|
-
),
|
|
1814
|
-
return j ? /* @__PURE__ */ v(Ue, { theme: j, children:
|
|
1813
|
+
), H = D ? /* @__PURE__ */ v(Jt, { title: D, children: /* @__PURE__ */ v("span", { style: { display: B ? "block" : "inline-block", width: B ? "100%" : void 0 }, children: $ }) }) : $;
|
|
1814
|
+
return j ? /* @__PURE__ */ v(Ue, { theme: j, children: H }) : H;
|
|
1815
1815
|
}, ct = {
|
|
1816
1816
|
whiteSpace: "nowrap",
|
|
1817
1817
|
flex: "none"
|
|
@@ -1878,52 +1878,52 @@ const kr = (t) => {
|
|
|
1878
1878
|
clearAction: x,
|
|
1879
1879
|
bordered: b,
|
|
1880
1880
|
...N
|
|
1881
|
-
} = t, A = ut(r, o, n), w = A.dataSet, D = A.dataSetField, T = A.sessionId, j = nt(Ge), k = a ?? (j == null ? void 0 : j.index), C = j == null ? void 0 : j.parentIndex, M = ze(""), E = ze(null), _ = R((
|
|
1881
|
+
} = t, A = ut(r, o, n), w = A.dataSet, D = A.dataSetField, T = A.sessionId, j = nt(Ge), k = a ?? (j == null ? void 0 : j.index), C = j == null ? void 0 : j.parentIndex, M = ze(""), E = ze(null), _ = R((re) => re.addCommand), K = R((re) => re.getDataSet), L = R((re) => re.setDataSet), B = R((re) => re.getProps), $ = R((re) => re.setProps), H = R((re) => re.setValidateResult), V = m(
|
|
1882
1882
|
() => ye(T, w),
|
|
1883
1883
|
[T, w]
|
|
1884
1884
|
), O = m(
|
|
1885
1885
|
() => T ? vt(e, j, a) : null,
|
|
1886
1886
|
[T, e, j == null ? void 0 : j.parentIndex, j == null ? void 0 : j.index, a]
|
|
1887
1887
|
), F = R(
|
|
1888
|
-
(
|
|
1888
|
+
(re) => {
|
|
1889
1889
|
var le;
|
|
1890
|
-
return O ? ((le =
|
|
1890
|
+
return O ? ((le = re.propsStore[`${T}_props`]) == null ? void 0 : le[O]) ?? null : null;
|
|
1891
1891
|
}
|
|
1892
1892
|
), P = m(
|
|
1893
1893
|
() => jt(T, w),
|
|
1894
1894
|
[T, w]
|
|
1895
1895
|
), q = R(
|
|
1896
|
-
(
|
|
1896
|
+
(re) => {
|
|
1897
1897
|
var le;
|
|
1898
|
-
return P && D ? ((le =
|
|
1898
|
+
return P && D ? ((le = re.validateStore[P]) == null ? void 0 : le[D]) ?? "" : "";
|
|
1899
1899
|
}
|
|
1900
|
-
),
|
|
1901
|
-
(
|
|
1900
|
+
), G = R(
|
|
1901
|
+
(re) => V && D ? re.getDataSet(V, D) : void 0
|
|
1902
1902
|
), oe = m(
|
|
1903
1903
|
() => w ? ye(T, `${w}_validateAction`) : void 0,
|
|
1904
1904
|
[T, w]
|
|
1905
1905
|
), pe = R(
|
|
1906
|
-
(
|
|
1906
|
+
(re) => {
|
|
1907
1907
|
var le;
|
|
1908
|
-
return oe ? (le =
|
|
1908
|
+
return oe ? (le = re.dataSets[oe]) == null ? void 0 : le.validate : void 0;
|
|
1909
1909
|
}
|
|
1910
|
-
), ne = m(() =>
|
|
1910
|
+
), ne = m(() => G !== void 0 ? G : (F == null ? void 0 : F.value) !== void 0 ? F.value : f, [G, F == null ? void 0 : F.value, f]), ue = m(
|
|
1911
1911
|
() => ua(N, F ?? null, { develop: i }),
|
|
1912
1912
|
[N, F, i]
|
|
1913
1913
|
), {
|
|
1914
|
-
prefixIconNode:
|
|
1915
|
-
suffixIconNode:
|
|
1914
|
+
prefixIconNode: de,
|
|
1915
|
+
suffixIconNode: fe,
|
|
1916
1916
|
prefixAddonText: ee,
|
|
1917
|
-
suffixAddonText:
|
|
1917
|
+
suffixAddonText: W,
|
|
1918
1918
|
inputMergedProps: te
|
|
1919
1919
|
} = m(() => {
|
|
1920
|
-
const
|
|
1921
|
-
prefix:
|
|
1920
|
+
const re = ue, le = re.prefix, Y = re.suffix, se = re.addonBefore, U = re.addonAfter, {
|
|
1921
|
+
prefix: X,
|
|
1922
1922
|
suffix: be,
|
|
1923
1923
|
addonBefore: ce,
|
|
1924
|
-
addonAfter:
|
|
1924
|
+
addonAfter: J,
|
|
1925
1925
|
...he
|
|
1926
|
-
} =
|
|
1926
|
+
} = re, Se = lt({
|
|
1927
1927
|
iconName: le == null ? void 0 : String(le),
|
|
1928
1928
|
label: se == null ? void 0 : String(se)
|
|
1929
1929
|
}), Me = lt({
|
|
@@ -1931,16 +1931,16 @@ const kr = (t) => {
|
|
|
1931
1931
|
label: U == null ? void 0 : String(U)
|
|
1932
1932
|
});
|
|
1933
1933
|
return {
|
|
1934
|
-
prefixIconNode:
|
|
1934
|
+
prefixIconNode: Se.iconNode,
|
|
1935
1935
|
suffixIconNode: Me.iconNode,
|
|
1936
|
-
prefixAddonText:
|
|
1936
|
+
prefixAddonText: Se.iconConfigured ? void 0 : Se.labelText,
|
|
1937
1937
|
suffixAddonText: Me.iconConfigured ? void 0 : Me.labelText,
|
|
1938
1938
|
inputMergedProps: he
|
|
1939
1939
|
};
|
|
1940
|
-
}, [
|
|
1941
|
-
(
|
|
1942
|
-
const le =
|
|
1943
|
-
if (T && w && D &&
|
|
1940
|
+
}, [ue]), me = z(
|
|
1941
|
+
(re) => {
|
|
1942
|
+
const le = re ?? "";
|
|
1943
|
+
if (T && w && D && H(
|
|
1944
1944
|
T,
|
|
1945
1945
|
w,
|
|
1946
1946
|
D,
|
|
@@ -1959,33 +1959,33 @@ const kr = (t) => {
|
|
|
1959
1959
|
w,
|
|
1960
1960
|
D,
|
|
1961
1961
|
O,
|
|
1962
|
-
|
|
1962
|
+
H,
|
|
1963
1963
|
B,
|
|
1964
1964
|
$
|
|
1965
1965
|
]
|
|
1966
|
-
),
|
|
1967
|
-
(
|
|
1966
|
+
), Q = z(
|
|
1967
|
+
(re) => {
|
|
1968
1968
|
const le = xr(h || []);
|
|
1969
1969
|
Ar(
|
|
1970
1970
|
le,
|
|
1971
|
-
|
|
1972
|
-
() =>
|
|
1971
|
+
re,
|
|
1972
|
+
() => me(""),
|
|
1973
1973
|
(Y) => {
|
|
1974
1974
|
var se;
|
|
1975
|
-
return
|
|
1975
|
+
return me(((se = Y[0]) == null ? void 0 : se.message) ?? "");
|
|
1976
1976
|
}
|
|
1977
1977
|
);
|
|
1978
1978
|
},
|
|
1979
|
-
[h,
|
|
1980
|
-
),
|
|
1981
|
-
(
|
|
1982
|
-
const le =
|
|
1979
|
+
[h, me]
|
|
1980
|
+
), ie = z(
|
|
1981
|
+
(re) => {
|
|
1982
|
+
const le = re.target.value;
|
|
1983
1983
|
if (M.current = le, c) {
|
|
1984
|
-
c(le,
|
|
1984
|
+
c(le, re);
|
|
1985
1985
|
return;
|
|
1986
1986
|
}
|
|
1987
1987
|
if (V && D && L(V, D, le), s && T) {
|
|
1988
|
-
const { actionName: Y, arg: se } =
|
|
1988
|
+
const { actionName: Y, arg: se } = je(s, le, {
|
|
1989
1989
|
id: e,
|
|
1990
1990
|
dataSet: w,
|
|
1991
1991
|
dataSetField: D,
|
|
@@ -1996,7 +1996,7 @@ const kr = (t) => {
|
|
|
1996
1996
|
_(T, ae(Y, se));
|
|
1997
1997
|
}
|
|
1998
1998
|
S && (E.current && clearTimeout(E.current), E.current = setTimeout(() => {
|
|
1999
|
-
E.current = null,
|
|
1999
|
+
E.current = null, Q(le);
|
|
2000
2000
|
}, ca));
|
|
2001
2001
|
},
|
|
2002
2002
|
[
|
|
@@ -2014,27 +2014,27 @@ const kr = (t) => {
|
|
|
2014
2014
|
te,
|
|
2015
2015
|
_,
|
|
2016
2016
|
S,
|
|
2017
|
-
|
|
2017
|
+
Q
|
|
2018
2018
|
]
|
|
2019
|
-
),
|
|
2019
|
+
), we = z(() => {
|
|
2020
2020
|
if (!p) return;
|
|
2021
|
-
const
|
|
2022
|
-
re
|
|
2021
|
+
const re = V && D ? String(K(V, D) ?? "") : M.current;
|
|
2022
|
+
Q(re);
|
|
2023
2023
|
}, [
|
|
2024
2024
|
p,
|
|
2025
2025
|
V,
|
|
2026
2026
|
D,
|
|
2027
2027
|
K,
|
|
2028
|
-
|
|
2029
|
-
]),
|
|
2030
|
-
(
|
|
2028
|
+
Q
|
|
2029
|
+
]), Ee = z(
|
|
2030
|
+
(re) => {
|
|
2031
2031
|
const Y = te.onPressEnter;
|
|
2032
2032
|
if (Y) {
|
|
2033
|
-
Y(
|
|
2033
|
+
Y(re);
|
|
2034
2034
|
return;
|
|
2035
2035
|
}
|
|
2036
2036
|
if (l && T) {
|
|
2037
|
-
const { actionName: se, arg: U } =
|
|
2037
|
+
const { actionName: se, arg: U } = je(l, ne, {
|
|
2038
2038
|
id: e,
|
|
2039
2039
|
dataSet: w,
|
|
2040
2040
|
dataSetField: D,
|
|
@@ -2064,7 +2064,7 @@ const kr = (t) => {
|
|
|
2064
2064
|
return;
|
|
2065
2065
|
}
|
|
2066
2066
|
if (x && T) {
|
|
2067
|
-
const { actionName: Y, arg: se } =
|
|
2067
|
+
const { actionName: Y, arg: se } = je(x, "", {
|
|
2068
2068
|
id: e,
|
|
2069
2069
|
dataSet: w,
|
|
2070
2070
|
dataSetField: D,
|
|
@@ -2085,43 +2085,43 @@ const kr = (t) => {
|
|
|
2085
2085
|
C,
|
|
2086
2086
|
_
|
|
2087
2087
|
]);
|
|
2088
|
-
|
|
2088
|
+
$e(
|
|
2089
2089
|
() => () => {
|
|
2090
2090
|
E.current && clearTimeout(E.current);
|
|
2091
2091
|
},
|
|
2092
2092
|
[]
|
|
2093
|
-
),
|
|
2093
|
+
), $e(() => {
|
|
2094
2094
|
if (pe == null || !V || !D)
|
|
2095
2095
|
return;
|
|
2096
|
-
const
|
|
2097
|
-
re
|
|
2098
|
-
}, [pe, V, D, K,
|
|
2099
|
-
const
|
|
2100
|
-
() =>
|
|
2101
|
-
[
|
|
2102
|
-
), xe = i ? void 0 : T && w && D ? q : (F == null ? void 0 : F.help) ?? "", Ye = !i && xe ? "error" : void 0,
|
|
2103
|
-
/* @__PURE__ */ ve(
|
|
2104
|
-
ee ? /* @__PURE__ */ v(
|
|
2096
|
+
const re = String(K(V, D) ?? "");
|
|
2097
|
+
Q(re);
|
|
2098
|
+
}, [pe, V, D, K, Q]);
|
|
2099
|
+
const Le = m(() => la(g), [g]), Oe = m(
|
|
2100
|
+
() => Le ? { components: { Input: Le } } : void 0,
|
|
2101
|
+
[Le]
|
|
2102
|
+
), xe = i ? void 0 : T && w && D ? q : (F == null ? void 0 : F.help) ?? "", Ye = !i && xe ? "error" : void 0, Z = /* @__PURE__ */ ve(kt, { children: [
|
|
2103
|
+
/* @__PURE__ */ ve(Re.Compact, { style: { width: "100%" }, children: [
|
|
2104
|
+
ee ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: ee }) : null,
|
|
2105
2105
|
/* @__PURE__ */ v(
|
|
2106
2106
|
Qt,
|
|
2107
2107
|
{
|
|
2108
2108
|
...te,
|
|
2109
|
-
prefix:
|
|
2110
|
-
suffix:
|
|
2109
|
+
prefix: de,
|
|
2110
|
+
suffix: fe,
|
|
2111
2111
|
value: ne,
|
|
2112
|
-
onChange:
|
|
2113
|
-
onBlur:
|
|
2114
|
-
onPressEnter:
|
|
2112
|
+
onChange: ie,
|
|
2113
|
+
onBlur: we,
|
|
2114
|
+
onPressEnter: Ee,
|
|
2115
2115
|
onClear: Ve,
|
|
2116
2116
|
status: Ye,
|
|
2117
2117
|
styles: y
|
|
2118
2118
|
}
|
|
2119
2119
|
),
|
|
2120
|
-
|
|
2120
|
+
W ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: W }) : null
|
|
2121
2121
|
] }),
|
|
2122
2122
|
xe && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: xe })
|
|
2123
2123
|
] });
|
|
2124
|
-
return
|
|
2124
|
+
return Oe ? /* @__PURE__ */ v(Ue, { theme: Oe, children: Z }) : Z;
|
|
2125
2125
|
};
|
|
2126
2126
|
kr.displayName = "AndInput";
|
|
2127
2127
|
const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
@@ -2148,8 +2148,8 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2148
2148
|
[N, x]
|
|
2149
2149
|
), j = R(
|
|
2150
2150
|
(te) => {
|
|
2151
|
-
var
|
|
2152
|
-
return N && t ? ((
|
|
2151
|
+
var me;
|
|
2152
|
+
return N && t ? ((me = te.propsStore[`${N}_props`]) == null ? void 0 : me[t]) ?? null : null;
|
|
2153
2153
|
}
|
|
2154
2154
|
), k = R(
|
|
2155
2155
|
(te) => T && b ? te.getDataSet(T, b) : void 0
|
|
@@ -2161,8 +2161,8 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2161
2161
|
id: t,
|
|
2162
2162
|
develop: n
|
|
2163
2163
|
}), E = m(() => k !== void 0 ? k : (j == null ? void 0 : j.value) !== void 0 ? j.value : u, [k, j == null ? void 0 : j.value, u]), _ = z(
|
|
2164
|
-
(te,
|
|
2165
|
-
te && e && A(e, ae(te, { type:
|
|
2164
|
+
(te, me, Q) => {
|
|
2165
|
+
te && e && A(e, ae(te, { type: me, value: Q }));
|
|
2166
2166
|
},
|
|
2167
2167
|
[e, A]
|
|
2168
2168
|
), K = z(
|
|
@@ -2194,12 +2194,12 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2194
2194
|
return;
|
|
2195
2195
|
}
|
|
2196
2196
|
if (f && N) {
|
|
2197
|
-
const { actionName:
|
|
2197
|
+
const { actionName: me, arg: Q } = je(f, E, {
|
|
2198
2198
|
id: t,
|
|
2199
2199
|
dataSet: x,
|
|
2200
2200
|
dataSetField: b
|
|
2201
2201
|
});
|
|
2202
|
-
A(N, ae(
|
|
2202
|
+
A(N, ae(me, Q));
|
|
2203
2203
|
}
|
|
2204
2204
|
},
|
|
2205
2205
|
[
|
|
@@ -2220,12 +2220,12 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2220
2220
|
if (T && b && w(T, b, null), s && (D.current && clearTimeout(D.current), D.current = setTimeout(() => {
|
|
2221
2221
|
D.current = null, C(null);
|
|
2222
2222
|
}, Kn)), _(c, "change", null), y && N) {
|
|
2223
|
-
const { actionName: te, arg:
|
|
2223
|
+
const { actionName: te, arg: me } = je(y, null, {
|
|
2224
2224
|
id: t,
|
|
2225
2225
|
dataSet: x,
|
|
2226
2226
|
dataSetField: b
|
|
2227
2227
|
});
|
|
2228
|
-
A(N, ae(te,
|
|
2228
|
+
A(N, ae(te, me));
|
|
2229
2229
|
}
|
|
2230
2230
|
}, [
|
|
2231
2231
|
S,
|
|
@@ -2242,18 +2242,18 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2242
2242
|
x,
|
|
2243
2243
|
b,
|
|
2244
2244
|
A
|
|
2245
|
-
]),
|
|
2246
|
-
(te,
|
|
2247
|
-
_(h, "step", { value: te, type:
|
|
2245
|
+
]), H = z(
|
|
2246
|
+
(te, me) => {
|
|
2247
|
+
_(h, "step", { value: te, type: me.type });
|
|
2248
2248
|
},
|
|
2249
2249
|
[h, _]
|
|
2250
2250
|
);
|
|
2251
|
-
|
|
2251
|
+
$e(
|
|
2252
2252
|
() => () => {
|
|
2253
2253
|
D.current && clearTimeout(D.current);
|
|
2254
2254
|
},
|
|
2255
2255
|
[]
|
|
2256
|
-
),
|
|
2256
|
+
), $e(() => {
|
|
2257
2257
|
p !== void 0 && E === void 0 && T && b && w(T, b, p);
|
|
2258
2258
|
}, [p, E, T, b, w]);
|
|
2259
2259
|
const V = m(
|
|
@@ -2264,7 +2264,7 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2264
2264
|
suffix: F,
|
|
2265
2265
|
addonBefore: P,
|
|
2266
2266
|
addonAfter: q,
|
|
2267
|
-
style:
|
|
2267
|
+
style: G,
|
|
2268
2268
|
...oe
|
|
2269
2269
|
} = V, pe = m(
|
|
2270
2270
|
() => lt({
|
|
@@ -2278,29 +2278,29 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2278
2278
|
label: q != null ? String(q) : void 0
|
|
2279
2279
|
}),
|
|
2280
2280
|
[F, q]
|
|
2281
|
-
),
|
|
2282
|
-
if (!(g && E !== null && E !== void 0)) return
|
|
2283
|
-
const
|
|
2281
|
+
), ue = pe.iconNode, de = ne.iconNode, fe = pe.iconConfigured ? void 0 : pe.labelText, ee = ne.iconConfigured ? void 0 : ne.labelText, W = m(() => {
|
|
2282
|
+
if (!(g && E !== null && E !== void 0)) return de;
|
|
2283
|
+
const me = /* @__PURE__ */ v(
|
|
2284
2284
|
"span",
|
|
2285
2285
|
{
|
|
2286
2286
|
role: "button",
|
|
2287
2287
|
"aria-label": "clear",
|
|
2288
2288
|
style: { cursor: "pointer", marginInlineStart: 4 },
|
|
2289
|
-
onMouseDown: (
|
|
2290
|
-
onClick: (
|
|
2291
|
-
|
|
2289
|
+
onMouseDown: (Q) => Q.preventDefault(),
|
|
2290
|
+
onClick: (Q) => {
|
|
2291
|
+
Q.stopPropagation(), $();
|
|
2292
2292
|
},
|
|
2293
2293
|
children: /* @__PURE__ */ v(Mi, {})
|
|
2294
2294
|
}
|
|
2295
2295
|
);
|
|
2296
|
-
return
|
|
2297
|
-
|
|
2298
|
-
|
|
2296
|
+
return de == null || de === !1 ? me : /* @__PURE__ */ ve(kt, { children: [
|
|
2297
|
+
de,
|
|
2298
|
+
me
|
|
2299
2299
|
] });
|
|
2300
|
-
}, [g, E,
|
|
2300
|
+
}, [g, E, de, $]);
|
|
2301
2301
|
return /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
|
|
2302
|
-
/* @__PURE__ */ ve(
|
|
2303
|
-
|
|
2302
|
+
/* @__PURE__ */ ve(Re.Compact, { style: { width: "100%" }, children: [
|
|
2303
|
+
fe ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: fe }) : null,
|
|
2304
2304
|
/* @__PURE__ */ v(
|
|
2305
2305
|
rr,
|
|
2306
2306
|
{
|
|
@@ -2310,18 +2310,18 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2310
2310
|
className: Bi(oe.className, {
|
|
2311
2311
|
"ant-input-number-disabled": n && oe.disabled
|
|
2312
2312
|
}),
|
|
2313
|
-
prefix:
|
|
2313
|
+
prefix: ue,
|
|
2314
2314
|
value: E,
|
|
2315
2315
|
onChange: K,
|
|
2316
2316
|
onBlur: L,
|
|
2317
2317
|
onPressEnter: B,
|
|
2318
|
-
onStep:
|
|
2319
|
-
suffix:
|
|
2318
|
+
onStep: H,
|
|
2319
|
+
suffix: W,
|
|
2320
2320
|
status: M ? "error" : void 0,
|
|
2321
|
-
style: { width: "100%", ...
|
|
2321
|
+
style: { width: "100%", ...G }
|
|
2322
2322
|
}
|
|
2323
2323
|
),
|
|
2324
|
-
ee ? /* @__PURE__ */ v(
|
|
2324
|
+
ee ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: ee }) : null
|
|
2325
2325
|
] }),
|
|
2326
2326
|
M && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: M })
|
|
2327
2327
|
] });
|
|
@@ -2351,8 +2351,8 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2351
2351
|
[b, t, D == null ? void 0 : D.parentIndex, D == null ? void 0 : D.index, p]
|
|
2352
2352
|
), M = R(
|
|
2353
2353
|
(ne) => {
|
|
2354
|
-
var
|
|
2355
|
-
return C ? ((
|
|
2354
|
+
var ue;
|
|
2355
|
+
return C ? ((ue = ne.propsStore[`${b}_props`]) == null ? void 0 : ue[C]) ?? null : null;
|
|
2356
2356
|
}
|
|
2357
2357
|
), E = R(
|
|
2358
2358
|
(ne) => k && x ? ne.getDataSet(k, x) : void 0
|
|
@@ -2366,44 +2366,44 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2366
2366
|
}), L = m(() => E !== void 0 ? E : (M == null ? void 0 : M.value) !== void 0 ? M.value : h ?? S, [E, M == null ? void 0 : M.value, h, S]), B = m(
|
|
2367
2367
|
() => Qe(u, M ?? void 0),
|
|
2368
2368
|
[u, M]
|
|
2369
|
-
), { leftAddonNode: $, rightAddonNode:
|
|
2369
|
+
), { leftAddonNode: $, rightAddonNode: H, inputRest: V } = m(() => {
|
|
2370
2370
|
const ne = B, {
|
|
2371
|
-
prefix:
|
|
2372
|
-
suffix:
|
|
2373
|
-
addonBefore:
|
|
2371
|
+
prefix: ue,
|
|
2372
|
+
suffix: de,
|
|
2373
|
+
addonBefore: fe,
|
|
2374
2374
|
addonAfter: ee,
|
|
2375
|
-
...
|
|
2375
|
+
...W
|
|
2376
2376
|
} = ne, te = lt({
|
|
2377
|
-
iconName:
|
|
2378
|
-
label:
|
|
2379
|
-
}),
|
|
2380
|
-
iconName:
|
|
2377
|
+
iconName: ue == null ? void 0 : String(ue),
|
|
2378
|
+
label: fe == null ? void 0 : String(fe)
|
|
2379
|
+
}), me = lt({
|
|
2380
|
+
iconName: de == null ? void 0 : String(de),
|
|
2381
2381
|
label: ee == null ? void 0 : String(ee)
|
|
2382
2382
|
});
|
|
2383
2383
|
return {
|
|
2384
2384
|
leftAddonNode: te.iconNode ?? te.labelText,
|
|
2385
|
-
rightAddonNode:
|
|
2386
|
-
inputRest:
|
|
2385
|
+
rightAddonNode: me.iconNode ?? me.labelText,
|
|
2386
|
+
inputRest: W
|
|
2387
2387
|
};
|
|
2388
|
-
}, [B]), O = m(() => $ != null && $ !== !1 ||
|
|
2388
|
+
}, [B]), O = m(() => $ != null && $ !== !1 || H != null && H !== !1, [$, H]), F = z(
|
|
2389
2389
|
(ne) => {
|
|
2390
|
-
const
|
|
2390
|
+
const ue = ne.target.value;
|
|
2391
2391
|
if (g) {
|
|
2392
|
-
g(
|
|
2392
|
+
g(ue, ne);
|
|
2393
2393
|
return;
|
|
2394
2394
|
}
|
|
2395
|
-
if (k && x && A(k, x,
|
|
2396
|
-
const { actionName:
|
|
2395
|
+
if (k && x && A(k, x, ue), c && b) {
|
|
2396
|
+
const { actionName: de, arg: fe } = je(c, ue, {
|
|
2397
2397
|
id: t,
|
|
2398
2398
|
dataSet: l,
|
|
2399
2399
|
dataSetField: x,
|
|
2400
2400
|
index: T,
|
|
2401
2401
|
parentIndex: j
|
|
2402
2402
|
});
|
|
2403
|
-
N(b, ae(
|
|
2403
|
+
N(b, ae(de, fe));
|
|
2404
2404
|
}
|
|
2405
2405
|
s && (w.current && clearTimeout(w.current), w.current = setTimeout(() => {
|
|
2406
|
-
w.current = null, _(
|
|
2406
|
+
w.current = null, _(ue);
|
|
2407
2407
|
}, ma));
|
|
2408
2408
|
},
|
|
2409
2409
|
[
|
|
@@ -2424,20 +2424,20 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2424
2424
|
a && _(L);
|
|
2425
2425
|
}, [a, _, L]), q = z(
|
|
2426
2426
|
(ne) => {
|
|
2427
|
-
const
|
|
2428
|
-
if (
|
|
2429
|
-
|
|
2427
|
+
const ue = V.onPressEnter;
|
|
2428
|
+
if (ue) {
|
|
2429
|
+
ue(ne);
|
|
2430
2430
|
return;
|
|
2431
2431
|
}
|
|
2432
2432
|
if (f && b && !ne.shiftKey) {
|
|
2433
|
-
const { actionName:
|
|
2433
|
+
const { actionName: de, arg: fe } = je(f, L, {
|
|
2434
2434
|
id: t,
|
|
2435
2435
|
dataSet: l,
|
|
2436
2436
|
dataSetField: x,
|
|
2437
2437
|
index: T,
|
|
2438
2438
|
parentIndex: j
|
|
2439
2439
|
});
|
|
2440
|
-
N(b, ae(
|
|
2440
|
+
N(b, ae(de, fe));
|
|
2441
2441
|
}
|
|
2442
2442
|
},
|
|
2443
2443
|
[
|
|
@@ -2452,21 +2452,21 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2452
2452
|
j,
|
|
2453
2453
|
N
|
|
2454
2454
|
]
|
|
2455
|
-
),
|
|
2455
|
+
), G = z(() => {
|
|
2456
2456
|
const ne = V.onClear;
|
|
2457
2457
|
if (ne) {
|
|
2458
2458
|
ne();
|
|
2459
2459
|
return;
|
|
2460
2460
|
}
|
|
2461
2461
|
if (y && b) {
|
|
2462
|
-
const { actionName:
|
|
2462
|
+
const { actionName: ue, arg: de } = je(y, "", {
|
|
2463
2463
|
id: t,
|
|
2464
2464
|
dataSet: l,
|
|
2465
2465
|
dataSetField: x,
|
|
2466
2466
|
index: T,
|
|
2467
2467
|
parentIndex: j
|
|
2468
2468
|
});
|
|
2469
|
-
N(b, ae(
|
|
2469
|
+
N(b, ae(ue, de));
|
|
2470
2470
|
}
|
|
2471
2471
|
}, [
|
|
2472
2472
|
V,
|
|
@@ -2479,7 +2479,7 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2479
2479
|
j,
|
|
2480
2480
|
N
|
|
2481
2481
|
]);
|
|
2482
|
-
|
|
2482
|
+
$e(
|
|
2483
2483
|
() => () => {
|
|
2484
2484
|
w.current && clearTimeout(w.current);
|
|
2485
2485
|
},
|
|
@@ -2492,16 +2492,16 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2492
2492
|
onChange: F,
|
|
2493
2493
|
onBlur: P,
|
|
2494
2494
|
onPressEnter: q,
|
|
2495
|
-
onClear:
|
|
2495
|
+
onClear: G,
|
|
2496
2496
|
status: K ? "error" : void 0,
|
|
2497
2497
|
style: {
|
|
2498
2498
|
...V.style || {},
|
|
2499
2499
|
...O ? { flex: 1, minWidth: 0 } : {}
|
|
2500
2500
|
}
|
|
2501
|
-
}, pe = O ? /* @__PURE__ */ ve(
|
|
2502
|
-
$ != null && $ !== !1 ? /* @__PURE__ */ v(
|
|
2501
|
+
}, pe = O ? /* @__PURE__ */ ve(Re.Compact, { style: { width: "100%", display: "flex" }, children: [
|
|
2502
|
+
$ != null && $ !== !1 ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: $ }) : null,
|
|
2503
2503
|
/* @__PURE__ */ v(zn, { ...oe }),
|
|
2504
|
-
|
|
2504
|
+
H != null && H !== !1 ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: H }) : null
|
|
2505
2505
|
] }) : /* @__PURE__ */ v(zn, { ...oe });
|
|
2506
2506
|
return /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
|
|
2507
2507
|
pe,
|
|
@@ -2529,8 +2529,8 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2529
2529
|
[e, i]
|
|
2530
2530
|
), b = R(
|
|
2531
2531
|
($) => {
|
|
2532
|
-
var
|
|
2533
|
-
return e && t ? ((
|
|
2532
|
+
var H;
|
|
2533
|
+
return e && t ? ((H = $.propsStore[`${e}_props`]) == null ? void 0 : H[t]) ?? null : null;
|
|
2534
2534
|
}
|
|
2535
2535
|
), N = R(
|
|
2536
2536
|
($) => x && r ? $.getDataSet(x, r) : void 0
|
|
@@ -2546,34 +2546,34 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2546
2546
|
[p, b]
|
|
2547
2547
|
), { prefixIconNode: j, suffixIconNode: k, prefixAddonText: C, suffixAddonText: M, inputRest: E } = m(() => {
|
|
2548
2548
|
const $ = T, {
|
|
2549
|
-
prefix:
|
|
2549
|
+
prefix: H,
|
|
2550
2550
|
suffix: V,
|
|
2551
2551
|
addonBefore: O,
|
|
2552
2552
|
addonAfter: F,
|
|
2553
2553
|
...P
|
|
2554
2554
|
} = $, q = lt({
|
|
2555
|
-
iconName:
|
|
2555
|
+
iconName: H == null ? void 0 : String(H),
|
|
2556
2556
|
label: O == null ? void 0 : String(O)
|
|
2557
|
-
}),
|
|
2557
|
+
}), G = lt({
|
|
2558
2558
|
iconName: V == null ? void 0 : String(V),
|
|
2559
2559
|
label: F == null ? void 0 : String(F)
|
|
2560
2560
|
});
|
|
2561
2561
|
return {
|
|
2562
2562
|
prefixIconNode: q.iconNode,
|
|
2563
|
-
suffixIconNode:
|
|
2563
|
+
suffixIconNode: G.iconNode,
|
|
2564
2564
|
prefixAddonText: q.iconConfigured ? void 0 : q.labelText,
|
|
2565
|
-
suffixAddonText:
|
|
2565
|
+
suffixAddonText: G.iconConfigured ? void 0 : G.labelText,
|
|
2566
2566
|
inputRest: P
|
|
2567
2567
|
};
|
|
2568
2568
|
}, [T]), _ = z(
|
|
2569
2569
|
($) => {
|
|
2570
|
-
const
|
|
2570
|
+
const H = $.target.value;
|
|
2571
2571
|
if (g) {
|
|
2572
|
-
g(
|
|
2572
|
+
g(H, $);
|
|
2573
2573
|
return;
|
|
2574
2574
|
}
|
|
2575
|
-
if (x && r && d(x, r,
|
|
2576
|
-
const { actionName: V, arg: O } =
|
|
2575
|
+
if (x && r && d(x, r, H), c && e) {
|
|
2576
|
+
const { actionName: V, arg: O } = je(c, H, {
|
|
2577
2577
|
id: t,
|
|
2578
2578
|
dataSet: i,
|
|
2579
2579
|
dataSetField: r
|
|
@@ -2581,7 +2581,7 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2581
2581
|
u(e, ae(V, O));
|
|
2582
2582
|
}
|
|
2583
2583
|
s && (l.current && clearTimeout(l.current), l.current = setTimeout(() => {
|
|
2584
|
-
l.current = null, A(
|
|
2584
|
+
l.current = null, A(H);
|
|
2585
2585
|
}, ha));
|
|
2586
2586
|
},
|
|
2587
2587
|
[
|
|
@@ -2600,13 +2600,13 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2600
2600
|
a && A(D);
|
|
2601
2601
|
}, [a, A, D]), L = z(
|
|
2602
2602
|
($) => {
|
|
2603
|
-
const
|
|
2604
|
-
if (
|
|
2605
|
-
|
|
2603
|
+
const H = E.onPressEnter;
|
|
2604
|
+
if (H) {
|
|
2605
|
+
H($);
|
|
2606
2606
|
return;
|
|
2607
2607
|
}
|
|
2608
2608
|
if (f && e) {
|
|
2609
|
-
const { actionName: V, arg: O } =
|
|
2609
|
+
const { actionName: V, arg: O } = je(f, D, {
|
|
2610
2610
|
id: t,
|
|
2611
2611
|
dataSet: i,
|
|
2612
2612
|
dataSetField: r
|
|
@@ -2631,22 +2631,22 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2631
2631
|
return;
|
|
2632
2632
|
}
|
|
2633
2633
|
if (y && e) {
|
|
2634
|
-
const { actionName:
|
|
2634
|
+
const { actionName: H, arg: V } = je(y, "", {
|
|
2635
2635
|
id: t,
|
|
2636
2636
|
dataSet: i,
|
|
2637
2637
|
dataSetField: r
|
|
2638
2638
|
});
|
|
2639
|
-
u(e, ae(
|
|
2639
|
+
u(e, ae(H, V));
|
|
2640
2640
|
}
|
|
2641
2641
|
}, [E, y, e, t, i, r, u]);
|
|
2642
|
-
return
|
|
2642
|
+
return $e(
|
|
2643
2643
|
() => () => {
|
|
2644
2644
|
l.current && clearTimeout(l.current);
|
|
2645
2645
|
},
|
|
2646
2646
|
[]
|
|
2647
2647
|
), /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
|
|
2648
|
-
/* @__PURE__ */ ve(
|
|
2649
|
-
C ? /* @__PURE__ */ v(
|
|
2648
|
+
/* @__PURE__ */ ve(Re.Compact, { style: { width: "100%" }, children: [
|
|
2649
|
+
C ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: C }) : null,
|
|
2650
2650
|
/* @__PURE__ */ v(
|
|
2651
2651
|
ya,
|
|
2652
2652
|
{
|
|
@@ -2662,7 +2662,7 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2662
2662
|
status: w ? "error" : void 0
|
|
2663
2663
|
}
|
|
2664
2664
|
),
|
|
2665
|
-
M ? /* @__PURE__ */ v(
|
|
2665
|
+
M ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: M }) : null
|
|
2666
2666
|
] }),
|
|
2667
2667
|
w && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: w })
|
|
2668
2668
|
] });
|
|
@@ -2722,7 +2722,7 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2722
2722
|
return;
|
|
2723
2723
|
}
|
|
2724
2724
|
if (d && r && p(d, r, M), o && e) {
|
|
2725
|
-
const { actionName: E, arg: _ } =
|
|
2725
|
+
const { actionName: E, arg: _ } = je(o, M, {
|
|
2726
2726
|
id: t,
|
|
2727
2727
|
dataSet: i,
|
|
2728
2728
|
dataSetField: r
|
|
@@ -2741,8 +2741,8 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2741
2741
|
},
|
|
2742
2742
|
[c, a, e, h]
|
|
2743
2743
|
);
|
|
2744
|
-
return /* @__PURE__ */ ve(
|
|
2745
|
-
w ? /* @__PURE__ */ v(
|
|
2744
|
+
return /* @__PURE__ */ ve(Re.Compact, { style: { width: "100%" }, children: [
|
|
2745
|
+
w ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: w }) : null,
|
|
2746
2746
|
/* @__PURE__ */ v(
|
|
2747
2747
|
ga,
|
|
2748
2748
|
{
|
|
@@ -2755,7 +2755,7 @@ const da = Ie.memo(kr), Kn = 200, fa = ({
|
|
|
2755
2755
|
onSearch: k
|
|
2756
2756
|
}
|
|
2757
2757
|
),
|
|
2758
|
-
D ? /* @__PURE__ */ v(
|
|
2758
|
+
D ? /* @__PURE__ */ v(Re.Addon, { style: ct, children: D }) : null
|
|
2759
2759
|
] });
|
|
2760
2760
|
}, pa = 200, va = "_selected";
|
|
2761
2761
|
function Ct(t) {
|
|
@@ -2834,23 +2834,23 @@ const Cc = ({
|
|
|
2834
2834
|
...j
|
|
2835
2835
|
}) => {
|
|
2836
2836
|
var xe, Ye;
|
|
2837
|
-
const k = ut(i, r, e), C = k.dataSet, M = k.dataSetField, E = k.sessionId, _ = R((
|
|
2837
|
+
const k = ut(i, r, e), C = k.dataSet, M = k.dataSetField, E = k.sessionId, _ = R((Z) => Z.addCommand), K = R((Z) => Z.setDataSet), L = ze(null), B = nt(Ge), $ = m(
|
|
2838
2838
|
() => ye(E, C),
|
|
2839
2839
|
[E, C]
|
|
2840
|
-
),
|
|
2840
|
+
), H = l ?? (B == null ? void 0 : B.index), V = B == null ? void 0 : B.parentIndex, O = m(
|
|
2841
2841
|
() => E ? vt(t, B, l) : null,
|
|
2842
2842
|
[E, t, B == null ? void 0 : B.parentIndex, B == null ? void 0 : B.index, l]
|
|
2843
2843
|
), F = R(
|
|
2844
|
-
(
|
|
2845
|
-
var
|
|
2846
|
-
return O ? ((
|
|
2844
|
+
(Z) => {
|
|
2845
|
+
var re;
|
|
2846
|
+
return O ? ((re = Z.propsStore[`${E}_props`]) == null ? void 0 : re[O]) ?? null : null;
|
|
2847
2847
|
}
|
|
2848
2848
|
), P = R(
|
|
2849
|
-
(
|
|
2849
|
+
(Z) => $ && M ? Z.getDataSet($, M) : void 0
|
|
2850
2850
|
), q = m(
|
|
2851
2851
|
() => (F == null ? void 0 : F.optionsCfg) != null ? F.optionsCfg : s,
|
|
2852
2852
|
[F == null ? void 0 : F.optionsCfg, s]
|
|
2853
|
-
), { options:
|
|
2853
|
+
), { options: G, loading: oe } = Kt(
|
|
2854
2854
|
D || (o ? a : void 0)
|
|
2855
2855
|
), { options: pe, loading: ne } = An(
|
|
2856
2856
|
q == null ? void 0 : q.url,
|
|
@@ -2861,50 +2861,50 @@ const Cc = ({
|
|
|
2861
2861
|
params: q == null ? void 0 : q.params,
|
|
2862
2862
|
field: q == null ? void 0 : q.field
|
|
2863
2863
|
}
|
|
2864
|
-
),
|
|
2864
|
+
), ue = oe || ne, { validate: de, help: fe } = Je({
|
|
2865
2865
|
rules: c,
|
|
2866
2866
|
dataSet: C,
|
|
2867
2867
|
dataSetField: M,
|
|
2868
2868
|
sessionId: E,
|
|
2869
2869
|
id: t,
|
|
2870
2870
|
develop: n
|
|
2871
|
-
}), ee = m(() => P != null && P !== "" ? P : (F == null ? void 0 : F.value) !== void 0 ? F.value : d ?? u, [P, F == null ? void 0 : F.value, d, u]),
|
|
2871
|
+
}), ee = m(() => P != null && P !== "" ? P : (F == null ? void 0 : F.value) !== void 0 ? F.value : d ?? u, [P, F == null ? void 0 : F.value, d, u]), W = m(
|
|
2872
2872
|
() => Qe(j, F ?? void 0),
|
|
2873
2873
|
[j, F]
|
|
2874
|
-
), te = m(() => F != null && F.options && Array.isArray(F.options) ? F.options : q != null && q.url && pe.length > 0 ? pe : (D || o && a) &&
|
|
2874
|
+
), te = m(() => F != null && F.options && Array.isArray(F.options) ? F.options : q != null && q.url && pe.length > 0 ? pe : (D || o && a) && G.length > 0 ? G : p || [], [F == null ? void 0 : F.options, q == null ? void 0 : q.url, pe, D, o, a, G, p]), me = m(() => {
|
|
2875
2875
|
if (te.length === 0) return ee;
|
|
2876
2876
|
if (Array.isArray(ee))
|
|
2877
|
-
return ee.map((
|
|
2877
|
+
return ee.map((re) => {
|
|
2878
2878
|
var le;
|
|
2879
|
-
return ((le = st(te,
|
|
2879
|
+
return ((le = st(te, re)) == null ? void 0 : le.value) ?? re;
|
|
2880
2880
|
});
|
|
2881
|
-
const
|
|
2882
|
-
return (
|
|
2883
|
-
}, [ee, te]),
|
|
2884
|
-
(
|
|
2881
|
+
const Z = st(te, ee);
|
|
2882
|
+
return (Z == null ? void 0 : Z.value) ?? ee;
|
|
2883
|
+
}, [ee, te]), Q = M ? `${M}${va}` : "", ie = ze(null), we = z(
|
|
2884
|
+
(Z, re) => {
|
|
2885
2885
|
if (h) {
|
|
2886
|
-
h(
|
|
2886
|
+
h(Z, re);
|
|
2887
2887
|
return;
|
|
2888
2888
|
}
|
|
2889
2889
|
if ($ && M) {
|
|
2890
|
-
K($, M,
|
|
2890
|
+
K($, M, Z);
|
|
2891
2891
|
const le = Pn(
|
|
2892
|
-
|
|
2893
|
-
|
|
2892
|
+
Z,
|
|
2893
|
+
re,
|
|
2894
2894
|
te,
|
|
2895
|
-
|
|
2896
|
-
|
|
2895
|
+
W.labelInValue,
|
|
2896
|
+
W.mode
|
|
2897
2897
|
);
|
|
2898
|
-
K($,
|
|
2898
|
+
K($, Q, le);
|
|
2899
2899
|
}
|
|
2900
2900
|
if (y && (L.current && clearTimeout(L.current), L.current = setTimeout(() => {
|
|
2901
|
-
L.current = null,
|
|
2901
|
+
L.current = null, de(Z);
|
|
2902
2902
|
}, pa)), g && E) {
|
|
2903
|
-
const { actionName: le, arg: Y } =
|
|
2903
|
+
const { actionName: le, arg: Y } = je(g, Z, {
|
|
2904
2904
|
id: t,
|
|
2905
2905
|
dataSet: C,
|
|
2906
2906
|
dataSetField: M,
|
|
2907
|
-
index:
|
|
2907
|
+
index: H,
|
|
2908
2908
|
parentIndex: V
|
|
2909
2909
|
});
|
|
2910
2910
|
_(E, ae(le, Y));
|
|
@@ -2916,109 +2916,109 @@ const Cc = ({
|
|
|
2916
2916
|
M,
|
|
2917
2917
|
K,
|
|
2918
2918
|
y,
|
|
2919
|
-
|
|
2919
|
+
de,
|
|
2920
2920
|
g,
|
|
2921
2921
|
E,
|
|
2922
2922
|
t,
|
|
2923
2923
|
C,
|
|
2924
2924
|
M,
|
|
2925
|
-
|
|
2925
|
+
H,
|
|
2926
2926
|
V,
|
|
2927
2927
|
_,
|
|
2928
2928
|
te,
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2929
|
+
W.labelInValue,
|
|
2930
|
+
W.mode,
|
|
2931
|
+
Q
|
|
2932
2932
|
]
|
|
2933
2933
|
);
|
|
2934
|
-
|
|
2935
|
-
if (h || !$ || !M || !
|
|
2936
|
-
const
|
|
2934
|
+
$e(() => {
|
|
2935
|
+
if (h || !$ || !M || !Q) return;
|
|
2936
|
+
const Z = Pn(
|
|
2937
2937
|
ee,
|
|
2938
2938
|
void 0,
|
|
2939
2939
|
te,
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
),
|
|
2943
|
-
ba(
|
|
2940
|
+
W.labelInValue,
|
|
2941
|
+
W.mode
|
|
2942
|
+
), re = R.getState().getDataSet($, Q);
|
|
2943
|
+
ba(re, Z) || K($, Q, Z);
|
|
2944
2944
|
}, [
|
|
2945
2945
|
h,
|
|
2946
2946
|
$,
|
|
2947
2947
|
M,
|
|
2948
|
-
|
|
2948
|
+
Q,
|
|
2949
2949
|
ee,
|
|
2950
2950
|
te,
|
|
2951
|
-
|
|
2952
|
-
|
|
2951
|
+
W.labelInValue,
|
|
2952
|
+
W.mode,
|
|
2953
2953
|
K
|
|
2954
2954
|
]);
|
|
2955
|
-
const
|
|
2956
|
-
f && me
|
|
2957
|
-
}, [f,
|
|
2955
|
+
const Ee = z(() => {
|
|
2956
|
+
f && de(me);
|
|
2957
|
+
}, [f, de, me]), Ve = (F == null ? void 0 : F.autoSelectFirst) ?? S, Le = m(() => {
|
|
2958
2958
|
if (Array.isArray(ee)) return ee.length === 0;
|
|
2959
2959
|
if (ee == null || ee === "") return !0;
|
|
2960
|
-
if (
|
|
2961
|
-
const
|
|
2962
|
-
return
|
|
2960
|
+
if (W.labelInValue && ee && typeof ee == "object" && !Array.isArray(ee) && "value" in ee) {
|
|
2961
|
+
const Z = ee.value;
|
|
2962
|
+
return Z == null || Z === "";
|
|
2963
2963
|
}
|
|
2964
2964
|
return !1;
|
|
2965
|
-
}, [ee,
|
|
2966
|
-
|
|
2967
|
-
var ce,
|
|
2968
|
-
if (!Ve || te.length === 0 || !
|
|
2969
|
-
|
|
2965
|
+
}, [ee, W.labelInValue]);
|
|
2966
|
+
$e(() => {
|
|
2967
|
+
var ce, J;
|
|
2968
|
+
if (!Ve || te.length === 0 || !Le) {
|
|
2969
|
+
ie.current = null;
|
|
2970
2970
|
return;
|
|
2971
2971
|
}
|
|
2972
|
-
const
|
|
2972
|
+
const Z = ((ce = W.fieldNames) == null ? void 0 : ce.value) || "value", re = ((J = W.fieldNames) == null ? void 0 : J.label) || "label", le = te[0];
|
|
2973
2973
|
if (!le) return;
|
|
2974
|
-
const Y = le[
|
|
2974
|
+
const Y = le[Z] ?? le.value;
|
|
2975
2975
|
if (Y == null || Y === "") return;
|
|
2976
2976
|
const se = `${$ ?? ""}:${M ?? ""}:${String(Y)}`;
|
|
2977
|
-
if (
|
|
2978
|
-
|
|
2979
|
-
const U =
|
|
2980
|
-
if (
|
|
2981
|
-
|
|
2977
|
+
if (ie.current === se) return;
|
|
2978
|
+
ie.current = se;
|
|
2979
|
+
const U = W.mode === "multiple" || W.mode === "tags" || Array.isArray(ee), X = le[re] ?? le.label;
|
|
2980
|
+
if (W.labelInValue) {
|
|
2981
|
+
we(U ? [{ value: Y, label: X }] : { value: Y, label: X }, U ? [le] : le);
|
|
2982
2982
|
return;
|
|
2983
2983
|
}
|
|
2984
|
-
|
|
2984
|
+
we(U ? [Y] : Y, U ? [le] : le);
|
|
2985
2985
|
}, [
|
|
2986
2986
|
Ve,
|
|
2987
2987
|
$,
|
|
2988
2988
|
M,
|
|
2989
2989
|
te,
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
(xe =
|
|
2993
|
-
(Ye =
|
|
2994
|
-
|
|
2995
|
-
|
|
2990
|
+
we,
|
|
2991
|
+
Le,
|
|
2992
|
+
(xe = W.fieldNames) == null ? void 0 : xe.label,
|
|
2993
|
+
(Ye = W.fieldNames) == null ? void 0 : Ye.value,
|
|
2994
|
+
W.labelInValue,
|
|
2995
|
+
W.mode,
|
|
2996
2996
|
ee
|
|
2997
|
-
]),
|
|
2997
|
+
]), $e(
|
|
2998
2998
|
() => () => {
|
|
2999
2999
|
L.current && clearTimeout(L.current);
|
|
3000
3000
|
},
|
|
3001
3001
|
[]
|
|
3002
3002
|
);
|
|
3003
|
-
const
|
|
3003
|
+
const Oe = z((Z, re) => ((re == null ? void 0 : re.label) ?? "").toLowerCase().includes(Z.toLowerCase()), []);
|
|
3004
3004
|
return /* @__PURE__ */ ve("div", { style: { width: "100%" }, children: [
|
|
3005
3005
|
/* @__PURE__ */ v(
|
|
3006
3006
|
ir,
|
|
3007
3007
|
{
|
|
3008
|
-
...
|
|
3009
|
-
disabled: n ? !1 :
|
|
3008
|
+
...W,
|
|
3009
|
+
disabled: n ? !1 : W.disabled,
|
|
3010
3010
|
open: n ? !1 : void 0,
|
|
3011
|
-
value:
|
|
3011
|
+
value: me,
|
|
3012
3012
|
options: te,
|
|
3013
|
-
onChange:
|
|
3014
|
-
onBlur:
|
|
3015
|
-
filterOption:
|
|
3016
|
-
loading:
|
|
3017
|
-
status:
|
|
3018
|
-
style: { width: "100%", ...
|
|
3013
|
+
onChange: we,
|
|
3014
|
+
onBlur: Ee,
|
|
3015
|
+
filterOption: Oe,
|
|
3016
|
+
loading: ue,
|
|
3017
|
+
status: fe ? "error" : void 0,
|
|
3018
|
+
style: { width: "100%", ...W.style }
|
|
3019
3019
|
}
|
|
3020
3020
|
),
|
|
3021
|
-
|
|
3021
|
+
fe && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: fe })
|
|
3022
3022
|
] });
|
|
3023
3023
|
}, Nc = ({
|
|
3024
3024
|
id: t,
|
|
@@ -3059,7 +3059,7 @@ const Cc = ({
|
|
|
3059
3059
|
return;
|
|
3060
3060
|
}
|
|
3061
3061
|
if (u && r && p(u, r, D), s && x(D), c && e) {
|
|
3062
|
-
const { actionName: T, arg: j } =
|
|
3062
|
+
const { actionName: T, arg: j } = je(c, D, {
|
|
3063
3063
|
id: t,
|
|
3064
3064
|
dataSet: i,
|
|
3065
3065
|
dataSetField: r
|
|
@@ -3177,11 +3177,11 @@ var Mr = { exports: {} };
|
|
|
3177
3177
|
L.call(C, $), k = k.replace($, "");
|
|
3178
3178
|
}
|
|
3179
3179
|
}
|
|
3180
|
-
return function(
|
|
3181
|
-
var V =
|
|
3180
|
+
return function(H) {
|
|
3181
|
+
var V = H.afternoon;
|
|
3182
3182
|
if (V !== void 0) {
|
|
3183
|
-
var O =
|
|
3184
|
-
V ? O < 12 && (
|
|
3183
|
+
var O = H.hours;
|
|
3184
|
+
V ? O < 12 && (H.hours += 12) : O === 12 && (H.hours = 0), delete H.afternoon;
|
|
3185
3185
|
}
|
|
3186
3186
|
}(C), C;
|
|
3187
3187
|
};
|
|
@@ -3195,13 +3195,13 @@ var Mr = { exports: {} };
|
|
|
3195
3195
|
var j = T[1];
|
|
3196
3196
|
if (typeof j == "string") {
|
|
3197
3197
|
var k = T[2] === !0, C = T[3] === !0, M = k || C, E = T[2];
|
|
3198
|
-
C && (E = T[2]), c = this.$locale(), !k && E && (c = x.Ls[E]), this.$d = function(B, $,
|
|
3198
|
+
C && (E = T[2]), c = this.$locale(), !k && E && (c = x.Ls[E]), this.$d = function(B, $, H, V) {
|
|
3199
3199
|
try {
|
|
3200
3200
|
if (["x", "X"].indexOf($) > -1) return new Date(($ === "X" ? 1e3 : 1) * B);
|
|
3201
|
-
var O = u($)(B), F = O.year, P = O.month, q = O.day,
|
|
3202
|
-
F && !P || (te = P > 0 ? P - 1 :
|
|
3203
|
-
var
|
|
3204
|
-
return
|
|
3201
|
+
var O = u($)(B), F = O.year, P = O.month, q = O.day, G = O.hours, oe = O.minutes, pe = O.seconds, ne = O.milliseconds, ue = O.zone, de = O.week, fe = /* @__PURE__ */ new Date(), ee = q || (F || P ? 1 : fe.getDate()), W = F || fe.getFullYear(), te = 0;
|
|
3202
|
+
F && !P || (te = P > 0 ? P - 1 : fe.getMonth());
|
|
3203
|
+
var me, Q = G || 0, ie = oe || 0, we = pe || 0, Ee = ne || 0;
|
|
3204
|
+
return ue ? new Date(Date.UTC(W, te, ee, Q, ie, we, Ee + 60 * ue.offset * 1e3)) : H ? new Date(Date.UTC(W, te, ee, Q, ie, we, Ee)) : (me = new Date(W, te, ee, Q, ie, we, Ee), de && (me = V(me).week(de).toDate()), me);
|
|
3205
3205
|
} catch {
|
|
3206
3206
|
return /* @__PURE__ */ new Date("");
|
|
3207
3207
|
}
|
|
@@ -3286,7 +3286,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3286
3286
|
}
|
|
3287
3287
|
const E = C != null && C.isValid() ? C.format(a) : "";
|
|
3288
3288
|
if (d && r && u(d, r, E), f && b(E || null), o && e) {
|
|
3289
|
-
const { actionName: _, arg: K } =
|
|
3289
|
+
const { actionName: _, arg: K } = je(o, E, {
|
|
3290
3290
|
id: t,
|
|
3291
3291
|
dataSet: i,
|
|
3292
3292
|
dataSetField: r
|
|
@@ -3310,7 +3310,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3310
3310
|
a
|
|
3311
3311
|
]
|
|
3312
3312
|
);
|
|
3313
|
-
|
|
3313
|
+
$e(() => {
|
|
3314
3314
|
if (h && T === null && d && r) {
|
|
3315
3315
|
const C = Xe(h).format(a);
|
|
3316
3316
|
u(d, r, C);
|
|
@@ -3379,7 +3379,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3379
3379
|
}
|
|
3380
3380
|
const M = C || "";
|
|
3381
3381
|
if (l && r && d(l, r, M), g && b(M), o && e) {
|
|
3382
|
-
const { actionName: E, arg: _ } =
|
|
3382
|
+
const { actionName: E, arg: _ } = je(o, M, { id: t, dataSet: i, dataSetField: r });
|
|
3383
3383
|
p(e, ae(E, _));
|
|
3384
3384
|
}
|
|
3385
3385
|
}, [s, l, r, d, g, b, o, e, t, p]), T = z(() => {
|
|
@@ -3451,7 +3451,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3451
3451
|
return;
|
|
3452
3452
|
}
|
|
3453
3453
|
if (d && r && u(d, r, C), f && b(C), o && e) {
|
|
3454
|
-
const { actionName: M, arg: E } =
|
|
3454
|
+
const { actionName: M, arg: E } = je(o, C, {
|
|
3455
3455
|
id: t,
|
|
3456
3456
|
dataSet: i,
|
|
3457
3457
|
dataSetField: r
|
|
@@ -3509,12 +3509,12 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3509
3509
|
[T, t, C == null ? void 0 : C.parentIndex, C == null ? void 0 : C.index, l]
|
|
3510
3510
|
), L = R(
|
|
3511
3511
|
(ne) => {
|
|
3512
|
-
var
|
|
3513
|
-
return K ? ((
|
|
3512
|
+
var ue;
|
|
3513
|
+
return K ? ((ue = ne.propsStore[`${T}_props`]) == null ? void 0 : ue[K]) ?? null : null;
|
|
3514
3514
|
}
|
|
3515
3515
|
), B = R(
|
|
3516
3516
|
(ne) => _ && D ? ne.getDataSet(_, D) : void 0
|
|
3517
|
-
), { validate: $, help:
|
|
3517
|
+
), { validate: $, help: H } = Je({
|
|
3518
3518
|
rules: y,
|
|
3519
3519
|
dataSet: w,
|
|
3520
3520
|
dataSetField: D,
|
|
@@ -3532,25 +3532,25 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3532
3532
|
if (P.length === 0) return V;
|
|
3533
3533
|
const ne = st(P, V);
|
|
3534
3534
|
return (ne == null ? void 0 : ne.value) ?? V;
|
|
3535
|
-
}, [V, P]),
|
|
3535
|
+
}, [V, P]), G = m(
|
|
3536
3536
|
() => Qe(N, L ?? void 0),
|
|
3537
3537
|
[N, L]
|
|
3538
3538
|
), oe = z(
|
|
3539
3539
|
(ne) => {
|
|
3540
|
-
const
|
|
3540
|
+
const ue = ne.target.value;
|
|
3541
3541
|
if (S) {
|
|
3542
|
-
S(
|
|
3542
|
+
S(ue);
|
|
3543
3543
|
return;
|
|
3544
3544
|
}
|
|
3545
|
-
if (_ && D && k(_, D,
|
|
3546
|
-
const { actionName:
|
|
3545
|
+
if (_ && D && k(_, D, ue), h && $(ue), s && T) {
|
|
3546
|
+
const { actionName: de, arg: fe } = je(s, ue, {
|
|
3547
3547
|
id: t,
|
|
3548
3548
|
dataSet: w,
|
|
3549
3549
|
dataSetField: D,
|
|
3550
3550
|
index: M,
|
|
3551
3551
|
parentIndex: E
|
|
3552
3552
|
});
|
|
3553
|
-
j(T, ae(
|
|
3553
|
+
j(T, ae(de, fe));
|
|
3554
3554
|
}
|
|
3555
3555
|
},
|
|
3556
3556
|
[
|
|
@@ -3576,14 +3576,14 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3576
3576
|
/* @__PURE__ */ v(
|
|
3577
3577
|
tn.Group,
|
|
3578
3578
|
{
|
|
3579
|
-
...
|
|
3580
|
-
disabled: n ? !1 :
|
|
3579
|
+
...G,
|
|
3580
|
+
disabled: n ? !1 : G.disabled,
|
|
3581
3581
|
value: q,
|
|
3582
3582
|
onChange: oe,
|
|
3583
3583
|
buttonStyle: (L == null ? void 0 : L.buttonStyle) ?? c,
|
|
3584
3584
|
optionType: (L == null ? void 0 : L.optionType) ?? f,
|
|
3585
3585
|
children: f === "button" ? P.map((ne) => /* @__PURE__ */ v(tn.Button, { value: ne.value, disabled: ne.disabled, children: ne.label }, ne.value)) : /* @__PURE__ */ v(
|
|
3586
|
-
|
|
3586
|
+
Re,
|
|
3587
3587
|
{
|
|
3588
3588
|
orientation: (L == null ? void 0 : L.direction) ?? x ?? "horizontal",
|
|
3589
3589
|
wrap: !0,
|
|
@@ -3592,7 +3592,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3592
3592
|
)
|
|
3593
3593
|
}
|
|
3594
3594
|
),
|
|
3595
|
-
|
|
3595
|
+
H && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: H })
|
|
3596
3596
|
] });
|
|
3597
3597
|
}, Ec = ({
|
|
3598
3598
|
id: t,
|
|
@@ -3620,19 +3620,19 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3620
3620
|
remoteUrl: A,
|
|
3621
3621
|
...w
|
|
3622
3622
|
}) => {
|
|
3623
|
-
const D = ut(i, r, e), T = D.dataSet, j = D.dataSetField, k = D.sessionId, C = R((
|
|
3623
|
+
const D = ut(i, r, e), T = D.dataSet, j = D.dataSetField, k = D.sessionId, C = R((W) => W.addCommand), M = R((W) => W.setDataSet), E = nt(Ge), _ = b ?? (E == null ? void 0 : E.index), K = E == null ? void 0 : E.parentIndex, L = m(
|
|
3624
3624
|
() => ye(k, T),
|
|
3625
3625
|
[k, T]
|
|
3626
3626
|
), B = m(
|
|
3627
3627
|
() => k ? vt(t, E, b) : null,
|
|
3628
3628
|
[k, t, E == null ? void 0 : E.parentIndex, E == null ? void 0 : E.index, b]
|
|
3629
3629
|
), $ = R(
|
|
3630
|
-
(
|
|
3630
|
+
(W) => {
|
|
3631
3631
|
var te;
|
|
3632
|
-
return B ? ((te =
|
|
3632
|
+
return B ? ((te = W.propsStore[`${k}_props`]) == null ? void 0 : te[B]) ?? null : null;
|
|
3633
3633
|
}
|
|
3634
|
-
),
|
|
3635
|
-
(
|
|
3634
|
+
), H = R(
|
|
3635
|
+
(W) => L && j ? W.getDataSet(L, j) : void 0
|
|
3636
3636
|
), { validate: V, help: O } = Je({
|
|
3637
3637
|
rules: f,
|
|
3638
3638
|
dataSet: T,
|
|
@@ -3649,30 +3649,30 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3649
3649
|
}
|
|
3650
3650
|
), q = m(() => {
|
|
3651
3651
|
if (!s)
|
|
3652
|
-
return
|
|
3653
|
-
}, [s,
|
|
3652
|
+
return H !== void 0 ? !!H : ($ == null ? void 0 : $.checked) !== void 0 ? $.checked : p ?? d;
|
|
3653
|
+
}, [s, H, $ == null ? void 0 : $.checked, p, d]), G = m(() => $ != null && $.options ? $.options : a != null && a.url && P.length > 0 ? P : x && F.length > 0 ? F : o, [$ == null ? void 0 : $.options, a == null ? void 0 : a.url, P, x, F, o]), oe = m(() => {
|
|
3654
3654
|
if (!s) return [];
|
|
3655
|
-
let
|
|
3656
|
-
return Array.isArray(
|
|
3657
|
-
var
|
|
3658
|
-
return ((
|
|
3655
|
+
let W = [];
|
|
3656
|
+
return Array.isArray(H) ? W = H : Array.isArray($ == null ? void 0 : $.values) ? W = $.values : W = u || [], G.length === 0 ? W : W.map((te) => {
|
|
3657
|
+
var me;
|
|
3658
|
+
return ((me = st(G, te)) == null ? void 0 : me.value) ?? te;
|
|
3659
3659
|
});
|
|
3660
|
-
}, [s,
|
|
3660
|
+
}, [s, H, $ == null ? void 0 : $.values, u, G]), pe = m(
|
|
3661
3661
|
() => Qe(w, $ ?? void 0, { skipKeys: ["value", "help", "validateStatus", "checked", "values", "options"] }),
|
|
3662
3662
|
[w, $]
|
|
3663
|
-
),
|
|
3664
|
-
const te =
|
|
3663
|
+
), ue = (pe.direction ?? N) === "vertical" ? "vertical" : "horizontal", de = z((W) => {
|
|
3664
|
+
const te = W.target.checked;
|
|
3665
3665
|
if (h) {
|
|
3666
3666
|
h(te);
|
|
3667
3667
|
return;
|
|
3668
3668
|
}
|
|
3669
3669
|
if (L && j && M(L, j, te), g && V(te), c && k) {
|
|
3670
|
-
const { actionName:
|
|
3670
|
+
const { actionName: me, arg: Q } = je(c, te, {
|
|
3671
3671
|
id: t,
|
|
3672
3672
|
dataSet: T,
|
|
3673
3673
|
dataSetField: j
|
|
3674
|
-
}),
|
|
3675
|
-
C(k, ae(
|
|
3674
|
+
}), ie = typeof Q == "object" && Q !== null ? { ...Q, index: _, parentIndex: K } : Q;
|
|
3675
|
+
C(k, ae(me, ie));
|
|
3676
3676
|
}
|
|
3677
3677
|
}, [
|
|
3678
3678
|
h,
|
|
@@ -3688,18 +3688,18 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3688
3688
|
_,
|
|
3689
3689
|
K,
|
|
3690
3690
|
T
|
|
3691
|
-
]),
|
|
3691
|
+
]), fe = z((W) => {
|
|
3692
3692
|
if (S) {
|
|
3693
|
-
S(
|
|
3693
|
+
S(W);
|
|
3694
3694
|
return;
|
|
3695
3695
|
}
|
|
3696
|
-
if (L && j && M(L, j,
|
|
3697
|
-
const { actionName: te, arg:
|
|
3696
|
+
if (L && j && M(L, j, W), g && V(W), c && k) {
|
|
3697
|
+
const { actionName: te, arg: me } = je(c, W, {
|
|
3698
3698
|
id: t,
|
|
3699
3699
|
dataSet: T,
|
|
3700
3700
|
dataSetField: j
|
|
3701
|
-
}),
|
|
3702
|
-
C(k, ae(te,
|
|
3701
|
+
}), Q = typeof me == "object" && me !== null ? { ...me, index: _, parentIndex: K } : me;
|
|
3702
|
+
C(k, ae(te, Q));
|
|
3703
3703
|
}
|
|
3704
3704
|
}, [
|
|
3705
3705
|
S,
|
|
@@ -3718,15 +3718,15 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3718
3718
|
]), ee = z(() => {
|
|
3719
3719
|
y && V(s ? oe : q);
|
|
3720
3720
|
}, [y, V, s, oe, q]);
|
|
3721
|
-
if (s &&
|
|
3722
|
-
const { indeterminate:
|
|
3721
|
+
if (s && G.length > 0) {
|
|
3722
|
+
const { indeterminate: W, direction: te, ...me } = pe;
|
|
3723
3723
|
return /* @__PURE__ */ ve("div", { onBlur: ee, children: [
|
|
3724
|
-
/* @__PURE__ */ v(Tt.Group, { ...
|
|
3725
|
-
|
|
3724
|
+
/* @__PURE__ */ v(Tt.Group, { ...me, value: oe, onChange: fe, disabled: n ? !1 : pe.disabled, children: /* @__PURE__ */ v(
|
|
3725
|
+
Re,
|
|
3726
3726
|
{
|
|
3727
|
-
orientation:
|
|
3727
|
+
orientation: ue,
|
|
3728
3728
|
wrap: !0,
|
|
3729
|
-
children:
|
|
3729
|
+
children: G.map((Q) => /* @__PURE__ */ v(Tt, { value: Q.value, disabled: Q.disabled, children: Q.label }, Q.value))
|
|
3730
3730
|
}
|
|
3731
3731
|
) }),
|
|
3732
3732
|
O && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: O })
|
|
@@ -3739,7 +3739,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3739
3739
|
...pe,
|
|
3740
3740
|
disabled: n ? !1 : pe.disabled,
|
|
3741
3741
|
checked: q,
|
|
3742
|
-
onChange:
|
|
3742
|
+
onChange: de,
|
|
3743
3743
|
children: l
|
|
3744
3744
|
}
|
|
3745
3745
|
),
|
|
@@ -3784,7 +3784,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3784
3784
|
return;
|
|
3785
3785
|
}
|
|
3786
3786
|
if (u && r && p(u, r, T), c && x(T), o && e) {
|
|
3787
|
-
const { actionName: j, arg: k } =
|
|
3787
|
+
const { actionName: j, arg: k } = je(o, T, {
|
|
3788
3788
|
id: t,
|
|
3789
3789
|
dataSet: i,
|
|
3790
3790
|
dataSetField: r
|
|
@@ -3834,7 +3834,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3834
3834
|
return;
|
|
3835
3835
|
}
|
|
3836
3836
|
if (S && r && h(S, r, l), o && e) {
|
|
3837
|
-
const { actionName: x, arg: b } =
|
|
3837
|
+
const { actionName: x, arg: b } = je(o, l, { id: t, dataSet: i, dataSetField: r });
|
|
3838
3838
|
y(e, ae(x, b));
|
|
3839
3839
|
}
|
|
3840
3840
|
}, [a, S, r, h, o, e, t, y]);
|
|
@@ -3895,14 +3895,14 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3895
3895
|
develop: n
|
|
3896
3896
|
}), M = m(() => (o == null ? void 0 : o.url) && b.length > 0, [o == null ? void 0 : o.url, b.length]), E = m(() => {
|
|
3897
3897
|
let B = T ?? S ?? h ?? [];
|
|
3898
|
-
return typeof B == "string" ? M ? Wn(B).map((
|
|
3898
|
+
return typeof B == "string" ? M ? Wn(B).map((H) => Na(H, b)).filter((H) => Array.isArray(H) && H.length > 0) : [B] : Hn(B) && M ? B.map((H) => Wn(H)).filter((H) => Array.isArray(H) && H.length > 0) : Yn(B) && M ? B.filter(($) => Array.isArray($) && $.length > 0) : B;
|
|
3899
3899
|
}, [T, S, h, M, b]), _ = m(() => o != null && o.url && b.length > 0 ? b : g || [], [o == null ? void 0 : o.url, b, g]);
|
|
3900
|
-
|
|
3900
|
+
$e(() => {
|
|
3901
3901
|
(async () => {
|
|
3902
3902
|
if (o != null && o.url) {
|
|
3903
3903
|
w(!0);
|
|
3904
3904
|
try {
|
|
3905
|
-
const $ = await pt({ url: o.url, method: "GET" }),
|
|
3905
|
+
const $ = await pt({ url: o.url, method: "GET" }), H = Array.isArray($) ? $ : $ != null && $.data ? Array.isArray($.data) ? $.data : $.data.list || $.data.records || [] : [], V = o.codeKey || "value", O = o.labelKey || "label", F = o.childrenKey || "children", P = o.maxLevel || 5, q = _r(H, {
|
|
3906
3906
|
codeKey: V,
|
|
3907
3907
|
labelKey: O,
|
|
3908
3908
|
childrenKey: F,
|
|
@@ -3923,11 +3923,11 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3923
3923
|
y(B, $);
|
|
3924
3924
|
return;
|
|
3925
3925
|
}
|
|
3926
|
-
let
|
|
3927
|
-
if (Hn(B) && M ?
|
|
3926
|
+
let H = B;
|
|
3927
|
+
if (Hn(B) && M ? H = String(B[B.length - 1] || "") : Yn(B) && M && (H = B.map((V) => V.join(","))), D && r && l(D, r, H), c && (x.current && clearTimeout(x.current), x.current = setTimeout(() => {
|
|
3928
3928
|
x.current = null, j(B);
|
|
3929
3929
|
}, Ca)), f && e) {
|
|
3930
|
-
const { actionName: V, arg: O } =
|
|
3930
|
+
const { actionName: V, arg: O } = je(f, B, {
|
|
3931
3931
|
id: t,
|
|
3932
3932
|
dataSet: i,
|
|
3933
3933
|
dataSetField: r
|
|
@@ -3951,7 +3951,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
3951
3951
|
), L = z(() => {
|
|
3952
3952
|
s && j(E);
|
|
3953
3953
|
}, [s, j, E]);
|
|
3954
|
-
return
|
|
3954
|
+
return $e(
|
|
3955
3955
|
() => () => {
|
|
3956
3956
|
x.current && clearTimeout(x.current);
|
|
3957
3957
|
},
|
|
@@ -4000,8 +4000,8 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4000
4000
|
[e, i]
|
|
4001
4001
|
), w = R(
|
|
4002
4002
|
($) => {
|
|
4003
|
-
var
|
|
4004
|
-
return e && t ? ((
|
|
4003
|
+
var H;
|
|
4004
|
+
return e && t ? ((H = $.propsStore[`${e}_props`]) == null ? void 0 : H[t]) ?? null : null;
|
|
4005
4005
|
}
|
|
4006
4006
|
), D = R(
|
|
4007
4007
|
($) => A && r ? $.getDataSet(A, r) : void 0
|
|
@@ -4019,13 +4019,13 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4019
4019
|
() => Qe(x, w ?? void 0),
|
|
4020
4020
|
[x, w]
|
|
4021
4021
|
), M = z(
|
|
4022
|
-
($,
|
|
4022
|
+
($, H, V) => {
|
|
4023
4023
|
if (a) {
|
|
4024
|
-
a($,
|
|
4024
|
+
a($, H, V);
|
|
4025
4025
|
return;
|
|
4026
4026
|
}
|
|
4027
4027
|
if (A && r && N(A, r, $), d && T($), o && e) {
|
|
4028
|
-
const { actionName: O, arg: F } =
|
|
4028
|
+
const { actionName: O, arg: F } = je(o, $, {
|
|
4029
4029
|
id: t,
|
|
4030
4030
|
dataSet: i,
|
|
4031
4031
|
dataSetField: r
|
|
@@ -4039,8 +4039,8 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4039
4039
|
}, [l, T, k]), _ = m(() => {
|
|
4040
4040
|
if (!p) return;
|
|
4041
4041
|
const $ = {};
|
|
4042
|
-
return Object.entries(p).forEach(([
|
|
4043
|
-
V !== "" && V !== void 0 && V !== null && ($[
|
|
4042
|
+
return Object.entries(p).forEach(([H, V]) => {
|
|
4043
|
+
V !== "" && V !== void 0 && V !== null && ($[H] = V);
|
|
4044
4044
|
}), Object.keys($).length > 0 ? $ : void 0;
|
|
4045
4045
|
}, [p]), K = m(() => {
|
|
4046
4046
|
if (_)
|
|
@@ -4094,8 +4094,8 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4094
4094
|
[w, N]
|
|
4095
4095
|
), k = R(
|
|
4096
4096
|
(U) => {
|
|
4097
|
-
var
|
|
4098
|
-
return w && t ? ((
|
|
4097
|
+
var X;
|
|
4098
|
+
return w && t ? ((X = U.propsStore[`${w}_props`]) == null ? void 0 : X[t]) ?? null : null;
|
|
4099
4099
|
}
|
|
4100
4100
|
), C = R(
|
|
4101
4101
|
(U) => j && A ? U.getDataSet(j, A) : void 0
|
|
@@ -4106,15 +4106,15 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4106
4106
|
sessionId: w,
|
|
4107
4107
|
id: t,
|
|
4108
4108
|
develop: n
|
|
4109
|
-
}), _ = z((U) => U.map((
|
|
4109
|
+
}), _ = z((U) => U.map((X) => {
|
|
4110
4110
|
var be;
|
|
4111
|
-
return ((be =
|
|
4112
|
-
}).filter((
|
|
4113
|
-
const
|
|
4114
|
-
return U.map((ce,
|
|
4111
|
+
return ((be = X == null ? void 0 : X.response) == null ? void 0 : be.src) ?? (X == null ? void 0 : X.src) ?? (X == null ? void 0 : X.url) ?? (X == null ? void 0 : X.thumbUrl) ?? "";
|
|
4112
|
+
}).filter((X) => X && typeof X == "string"), []), K = z((U) => {
|
|
4113
|
+
const X = ot().viewRes, be = (ce) => (X ? X(ce) : ce) || ce;
|
|
4114
|
+
return U.map((ce, J) => {
|
|
4115
4115
|
const he = be(ce);
|
|
4116
4116
|
return {
|
|
4117
|
-
uid: `src-${
|
|
4117
|
+
uid: `src-${J}-${ce}`,
|
|
4118
4118
|
name: ce.split("/").pop() || ce,
|
|
4119
4119
|
url: he,
|
|
4120
4120
|
thumbUrl: he,
|
|
@@ -4123,48 +4123,48 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4123
4123
|
};
|
|
4124
4124
|
});
|
|
4125
4125
|
}, []), L = z((U) => {
|
|
4126
|
-
const
|
|
4126
|
+
const X = ot().viewRes, be = (ce) => (ce && X ? X(ce) : ce) || ce;
|
|
4127
4127
|
return U.map((ce) => {
|
|
4128
4128
|
var Me;
|
|
4129
|
-
const
|
|
4130
|
-
for (const
|
|
4131
|
-
const Ze = ce[
|
|
4132
|
-
Ze instanceof File ?
|
|
4129
|
+
const J = ((Me = ce == null ? void 0 : ce.response) == null ? void 0 : Me.src) ?? (ce == null ? void 0 : ce.src) ?? (ce == null ? void 0 : ce.url) ?? (ce == null ? void 0 : ce.thumbUrl) ?? "", he = typeof J == "string" ? be(J) : J, Se = {};
|
|
4130
|
+
for (const Be of Object.keys(ce)) {
|
|
4131
|
+
const Ze = ce[Be];
|
|
4132
|
+
Ze instanceof File ? Se[Be] = Ze : Ze && typeof Ze == "object" && !Array.isArray(Ze) ? Se[Be] = { ...Ze } : Se[Be] = Ze;
|
|
4133
4133
|
}
|
|
4134
|
-
return he && typeof he == "string" && (
|
|
4134
|
+
return he && typeof he == "string" && (Se.url = he, Se.thumbUrl = he), Se;
|
|
4135
4135
|
});
|
|
4136
|
-
}, []), [B, $] = Ce(null),
|
|
4136
|
+
}, []), [B, $] = Ce(null), H = m(() => {
|
|
4137
4137
|
const U = C ?? (k == null ? void 0 : k.fileList) ?? g;
|
|
4138
4138
|
if (U != null) {
|
|
4139
4139
|
if (typeof U == "string" && U) return K([U]);
|
|
4140
4140
|
if (Array.isArray(U))
|
|
4141
4141
|
return U.length > 0 && typeof U[0] == "string" ? K(U) : L(U);
|
|
4142
4142
|
}
|
|
4143
|
-
}, [C, k == null ? void 0 : k.fileList, g, K, L]), V = B ??
|
|
4143
|
+
}, [C, k == null ? void 0 : k.fileList, g, K, L]), V = B ?? H, O = m(
|
|
4144
4144
|
() => Qe(x, k ?? void 0, {
|
|
4145
4145
|
skipKeys: ["value", "help", "validateStatus", "fileList", "listDisplayText"]
|
|
4146
4146
|
}),
|
|
4147
4147
|
[x, k]
|
|
4148
|
-
), F = O, P = F.maxCount, q = F.repeatUpload === !0,
|
|
4148
|
+
), F = O, P = F.maxCount, q = F.repeatUpload === !0, G = F.token && typeof F.token == "object" && !Array.isArray(F.token) ? F.token : void 0, oe = F.styles, pe = m(() => {
|
|
4149
4149
|
const U = oe;
|
|
4150
4150
|
if (!U || typeof U == "function" || Array.isArray(U)) return;
|
|
4151
|
-
const
|
|
4152
|
-
return
|
|
4151
|
+
const X = U.trigger;
|
|
4152
|
+
return X && typeof X == "object" && !Array.isArray(X) ? X : void 0;
|
|
4153
4153
|
}, [oe]), ne = m(() => {
|
|
4154
4154
|
const U = oe;
|
|
4155
4155
|
if (!U || Array.isArray(U)) return;
|
|
4156
4156
|
if (typeof U == "function") return U;
|
|
4157
|
-
const { trigger:
|
|
4157
|
+
const { trigger: X, ...be } = U;
|
|
4158
4158
|
return Object.keys(be).length > 0 ? be : void 0;
|
|
4159
|
-
}, [oe]),
|
|
4159
|
+
}, [oe]), ue = m(() => {
|
|
4160
4160
|
const U = { ...O };
|
|
4161
4161
|
return delete U.token, delete U.styles, delete U.repeatUpload, delete U.buttonText, U;
|
|
4162
|
-
}, [O]),
|
|
4163
|
-
const { file:
|
|
4162
|
+
}, [O]), de = z((U) => U.size / 1024 / 1024 < p ? !0 : (Wt.error(`文件大小不能超过 ${p}MB`), !1), [p]), fe = z(async (U) => {
|
|
4163
|
+
const { file: X, onSuccess: be, onError: ce, onProgress: J } = U;
|
|
4164
4164
|
if (ot().upload)
|
|
4165
4165
|
try {
|
|
4166
|
-
|
|
4167
|
-
const
|
|
4166
|
+
J == null || J({ percent: 30 });
|
|
4167
|
+
const Se = await Cr(X, {
|
|
4168
4168
|
url: S,
|
|
4169
4169
|
headers: {
|
|
4170
4170
|
Authorization: vn() ? `Bearer ${vn()}` : ""
|
|
@@ -4172,9 +4172,9 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4172
4172
|
form: u == null ? void 0 : u.form,
|
|
4173
4173
|
query: u == null ? void 0 : u.query
|
|
4174
4174
|
});
|
|
4175
|
-
|
|
4176
|
-
} catch (
|
|
4177
|
-
ce == null || ce(
|
|
4175
|
+
J == null || J({ percent: 100 }), be == null || be(Se, X);
|
|
4176
|
+
} catch (Se) {
|
|
4177
|
+
ce == null || ce(Se), Wt.error("上传失败");
|
|
4178
4178
|
}
|
|
4179
4179
|
else
|
|
4180
4180
|
ce == null || ce(new Error("Upload handler not configured")), Wt.warning("上传功能未配置");
|
|
@@ -4184,15 +4184,15 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4184
4184
|
y(U);
|
|
4185
4185
|
return;
|
|
4186
4186
|
}
|
|
4187
|
-
let
|
|
4188
|
-
const be = Array.isArray(
|
|
4189
|
-
q && typeof P == "number" && Array.isArray(
|
|
4190
|
-
const ce = Array.isArray(
|
|
4191
|
-
j && A && (ce.length > 0 || !Array.isArray(
|
|
4187
|
+
let X = Array.isArray(U.fileList) ? L(U.fileList) : U.fileList;
|
|
4188
|
+
const be = Array.isArray(X) && X.some((he) => (he == null ? void 0 : he.status) === "uploading");
|
|
4189
|
+
q && typeof P == "number" && Array.isArray(X) && X.length > P && !be && (X = L([...X.slice(0, P - 1), X[X.length - 1]]));
|
|
4190
|
+
const ce = Array.isArray(X) ? _(X) : [];
|
|
4191
|
+
j && A && (ce.length > 0 || !Array.isArray(X) || X.length === 0) ? (T(j, A, ce), $(null)) : be ? $(X) : X.length === 0 && $(null), f && M(X), o && w && D(
|
|
4192
4192
|
w,
|
|
4193
4193
|
ae(o, {
|
|
4194
4194
|
file: U.file,
|
|
4195
|
-
fileList:
|
|
4195
|
+
fileList: X,
|
|
4196
4196
|
src: ce
|
|
4197
4197
|
})
|
|
4198
4198
|
);
|
|
@@ -4212,95 +4212,95 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4212
4212
|
q,
|
|
4213
4213
|
P
|
|
4214
4214
|
]
|
|
4215
|
-
),
|
|
4215
|
+
), W = z(() => {
|
|
4216
4216
|
c && M(V);
|
|
4217
4217
|
}, [c, M, V]), te = z((U) => {
|
|
4218
4218
|
var he;
|
|
4219
|
-
const
|
|
4220
|
-
if (!
|
|
4221
|
-
const be = ((he = U.response) == null ? void 0 : he.src) ?? (typeof
|
|
4222
|
-
return String(
|
|
4223
|
-
}, []),
|
|
4224
|
-
var ce,
|
|
4225
|
-
const
|
|
4219
|
+
const X = U.url || U.thumbUrl;
|
|
4220
|
+
if (!X) return "";
|
|
4221
|
+
const be = ((he = U.response) == null ? void 0 : he.src) ?? (typeof X == "string" ? X : ""), ce = ot().viewRes, J = be && ce ? ce(be) : X;
|
|
4222
|
+
return String(J).replace(/([?&])download=1(&|$)/, (Se, Me, Be) => Be ? Me : "");
|
|
4223
|
+
}, []), me = z((U) => {
|
|
4224
|
+
var ce, J;
|
|
4225
|
+
const X = ((ce = U.response) == null ? void 0 : ce.src) ?? U.name ?? "", be = ((J = String(X).split(".").pop()) == null ? void 0 : J.toLowerCase()) || "";
|
|
4226
4226
|
return ["webp", "svg", "png", "gif", "jpg", "jpeg", "jfif", "bmp", "ico", "heic", "heif"].includes(be) || /^data:image\//.test(te(U));
|
|
4227
|
-
}, [te]), [
|
|
4227
|
+
}, [te]), [Q, ie] = Ce({
|
|
4228
4228
|
url: "",
|
|
4229
4229
|
name: "",
|
|
4230
4230
|
urls: [],
|
|
4231
4231
|
current: 0,
|
|
4232
4232
|
open: !1
|
|
4233
|
-
}),
|
|
4234
|
-
const
|
|
4235
|
-
if (
|
|
4236
|
-
if (
|
|
4237
|
-
const be = V.filter((he) =>
|
|
4238
|
-
|
|
4239
|
-
} else
|
|
4240
|
-
}, [te,
|
|
4233
|
+
}), we = z((U) => {
|
|
4234
|
+
const X = te(U);
|
|
4235
|
+
if (X)
|
|
4236
|
+
if (me(U) && (V != null && V.length)) {
|
|
4237
|
+
const be = V.filter((he) => me(he)), ce = be.map((he) => te(he)).filter(Boolean), J = be.findIndex((he) => (he.uid || he.url) === (U.uid || U.url));
|
|
4238
|
+
ie({ url: X, name: U.name, urls: ce, current: J >= 0 ? J : 0, open: !0 });
|
|
4239
|
+
} else me(U) || window.open(X, "_blank");
|
|
4240
|
+
}, [te, me, V]), Ve = !!ot().upload && !l, Le = F.buttonText ?? a, Oe = F.listType ?? x.listType, xe = String((k == null ? void 0 : k.listDisplayText) ?? d ?? "").trim(), Ye = m(() => {
|
|
4241
4241
|
const U = F.showUploadList;
|
|
4242
|
-
return
|
|
4243
|
-
}, [V,
|
|
4244
|
-
(U) =>
|
|
4245
|
-
[
|
|
4246
|
-
), Y = !
|
|
4242
|
+
return Oe !== "text" || U === !1 || !xe || !(V != null && V.length) ? V : V.map((X) => ({ ...X, name: xe }));
|
|
4243
|
+
}, [V, Oe, F.showUploadList, xe]), Z = (V == null ? void 0 : V.length) ?? 0, re = typeof P == "number" && Z >= P, le = z(
|
|
4244
|
+
(U) => re && !q ? (Wt.warning(`最多只能上传 ${P} 个文件`), !1) : de(U),
|
|
4245
|
+
[re, q, P, de]
|
|
4246
|
+
), Y = !re || q, se = /* @__PURE__ */ v(
|
|
4247
4247
|
Qr,
|
|
4248
4248
|
{
|
|
4249
|
-
...
|
|
4249
|
+
...ue,
|
|
4250
4250
|
styles: ne,
|
|
4251
4251
|
disabled: n ? !1 : O.disabled,
|
|
4252
4252
|
fileList: Ye,
|
|
4253
4253
|
onChange: ee,
|
|
4254
|
-
onPreview:
|
|
4254
|
+
onPreview: we,
|
|
4255
4255
|
beforeUpload: le,
|
|
4256
|
-
customRequest: Ve ?
|
|
4256
|
+
customRequest: Ve ? fe : void 0,
|
|
4257
4257
|
action: Ve ? void 0 : l || S,
|
|
4258
4258
|
openFileDialogOnClick: !n,
|
|
4259
|
-
children: Y && (h || (
|
|
4259
|
+
children: Y && (h || (Oe === "picture-card" || Oe === "picture-circle" ? /* @__PURE__ */ ve(
|
|
4260
4260
|
"button",
|
|
4261
4261
|
{
|
|
4262
4262
|
type: "button",
|
|
4263
4263
|
style: { border: 0, background: "none", ...pe },
|
|
4264
4264
|
children: [
|
|
4265
4265
|
/* @__PURE__ */ v(yr, {}),
|
|
4266
|
-
/* @__PURE__ */ v("div", { style: { marginTop: 8 }, children:
|
|
4266
|
+
/* @__PURE__ */ v("div", { style: { marginTop: 8 }, children: Le })
|
|
4267
4267
|
]
|
|
4268
4268
|
}
|
|
4269
|
-
) : /* @__PURE__ */ v(dt, { icon: /* @__PURE__ */ v(_i, {}), style: pe, children:
|
|
4269
|
+
) : /* @__PURE__ */ v(dt, { icon: /* @__PURE__ */ v(_i, {}), style: pe, children: Le })))
|
|
4270
4270
|
}
|
|
4271
4271
|
);
|
|
4272
|
-
return /* @__PURE__ */ ve("div", { onBlur:
|
|
4273
|
-
|
|
4272
|
+
return /* @__PURE__ */ ve("div", { onBlur: W, children: [
|
|
4273
|
+
G && Object.keys(G).length > 0 ? /* @__PURE__ */ v(Ue, { theme: { components: { Upload: G } }, children: se }) : se,
|
|
4274
4274
|
E && /* @__PURE__ */ v("div", { style: { color: "#ff4d4f", fontSize: 12, marginTop: 4 }, children: E }),
|
|
4275
|
-
|
|
4275
|
+
Q.url && /* @__PURE__ */ v("div", { style: { position: "absolute", width: 0, height: 0, overflow: "hidden" }, children: Q.urls.length > 1 ? /* @__PURE__ */ v(
|
|
4276
4276
|
ft.PreviewGroup,
|
|
4277
4277
|
{
|
|
4278
4278
|
preview: {
|
|
4279
|
-
current:
|
|
4280
|
-
onOpenChange: (U) => !U &&
|
|
4279
|
+
current: Q.current,
|
|
4280
|
+
onOpenChange: (U) => !U && ie((X) => ({ ...X, open: !1 }))
|
|
4281
4281
|
},
|
|
4282
|
-
children:
|
|
4282
|
+
children: Q.urls.map((U, X) => /* @__PURE__ */ v(
|
|
4283
4283
|
ft,
|
|
4284
4284
|
{
|
|
4285
4285
|
src: U,
|
|
4286
4286
|
style: { width: 1, height: 1 },
|
|
4287
4287
|
preview: {
|
|
4288
|
-
open:
|
|
4289
|
-
onOpenChange: (be) => !be &&
|
|
4288
|
+
open: Q.open && Q.current === X,
|
|
4289
|
+
onOpenChange: (be) => !be && ie((ce) => ({ ...ce, open: !1 }))
|
|
4290
4290
|
}
|
|
4291
4291
|
},
|
|
4292
|
-
|
|
4292
|
+
X
|
|
4293
4293
|
))
|
|
4294
4294
|
}
|
|
4295
4295
|
) : /* @__PURE__ */ v(
|
|
4296
4296
|
ft,
|
|
4297
4297
|
{
|
|
4298
|
-
src:
|
|
4299
|
-
alt:
|
|
4298
|
+
src: Q.url,
|
|
4299
|
+
alt: Q.name,
|
|
4300
4300
|
style: { width: 1, height: 1 },
|
|
4301
4301
|
preview: {
|
|
4302
|
-
open:
|
|
4303
|
-
onOpenChange: (U) => !U &&
|
|
4302
|
+
open: Q.open,
|
|
4303
|
+
onOpenChange: (U) => !U && ie((X) => ({ ...X, open: !1 }))
|
|
4304
4304
|
}
|
|
4305
4305
|
}
|
|
4306
4306
|
) })
|
|
@@ -4345,8 +4345,8 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4345
4345
|
if (S != null && S.queryApi) {
|
|
4346
4346
|
w(!0);
|
|
4347
4347
|
try {
|
|
4348
|
-
const { queryApi: K, keyWordParamName: L = "keyword", valueKey: B = "value", labelKey: $ = "label", fixedParams:
|
|
4349
|
-
L && (V[L] = _), Array.isArray(
|
|
4348
|
+
const { queryApi: K, keyWordParamName: L = "keyword", valueKey: B = "value", labelKey: $ = "label", fixedParams: H = [] } = S, V = {};
|
|
4349
|
+
L && (V[L] = _), Array.isArray(H) && H.forEach((q) => {
|
|
4350
4350
|
q.key && (V[q.key] = q.value);
|
|
4351
4351
|
});
|
|
4352
4352
|
const O = await T(K, V);
|
|
@@ -4375,7 +4375,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4375
4375
|
return;
|
|
4376
4376
|
}
|
|
4377
4377
|
if (b && r && x(b, r, _), o && e) {
|
|
4378
|
-
const { actionName: K, arg: L } =
|
|
4378
|
+
const { actionName: K, arg: L } = je(o, _, { id: t, dataSet: i, dataSetField: r });
|
|
4379
4379
|
d(e, ae(K, L));
|
|
4380
4380
|
}
|
|
4381
4381
|
}, [s, b, r, x, o, e, t, d]), E = z((_, K) => {
|
|
@@ -4434,7 +4434,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4434
4434
|
};
|
|
4435
4435
|
return /* @__PURE__ */ ve(It, { ...p, form: u, onFinish: b, children: [
|
|
4436
4436
|
S,
|
|
4437
|
-
(s || c) && /* @__PURE__ */ v(It.Item, { children: /* @__PURE__ */ ve(
|
|
4437
|
+
(s || c) && /* @__PURE__ */ v(It.Item, { children: /* @__PURE__ */ ve(Re, { children: [
|
|
4438
4438
|
s && /* @__PURE__ */ v(dt, { type: "primary", htmlType: "submit", children: f }),
|
|
4439
4439
|
c && /* @__PURE__ */ v(dt, { onClick: N, children: y })
|
|
4440
4440
|
] }) })
|
|
@@ -4487,7 +4487,7 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4487
4487
|
const M = R((ee) => ee.addCommand), E = R((ee) => ee.getDataSet), _ = R((ee) => ee.setDataSet), K = m(
|
|
4488
4488
|
() => ye(e, i),
|
|
4489
4489
|
[e, i]
|
|
4490
|
-
), L = m(() => rt(j, {}), [j]), B = m(() => rt(k, {}), [k]), $ = m(() => rt(p, ["源列表", "目标列表"]), [p]),
|
|
4490
|
+
), L = m(() => rt(j, {}), [j]), B = m(() => rt(k, {}), [k]), $ = m(() => rt(p, ["源列表", "目标列表"]), [p]), H = m(() => rt(u, [">", "<"]), [u]), V = m(() => rt(d, { itemUnit: "项", itemsUnit: "项", searchPlaceholder: "请输入搜索内容" }), [d]), O = m(() => rt(h, !1), [h]), F = m(() => {
|
|
4491
4491
|
if (K && r) {
|
|
4492
4492
|
const ee = E(K, r);
|
|
4493
4493
|
if (Array.isArray(ee)) return ee;
|
|
@@ -4497,35 +4497,35 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4497
4497
|
const ee = E(K, `${r}.dataSource`);
|
|
4498
4498
|
if (Array.isArray(ee)) return ee;
|
|
4499
4499
|
}
|
|
4500
|
-
}, [K, r, E]), q = m(() => n ? P ?? rt(o, []) : K ? P ?? [] : rt(o, []), [n, K, P, o]),
|
|
4500
|
+
}, [K, r, E]), q = m(() => n ? P ?? rt(o, []) : K ? P ?? [] : rt(o, []), [n, K, P, o]), G = m(() => n ? F ?? rt(a, []) : K ? F ?? [] : rt(a, []), [n, K, F, a]), oe = m(() => rt(s, []), [s]), pe = z((ee, W, te) => {
|
|
4501
4501
|
if (A) {
|
|
4502
|
-
A(ee,
|
|
4502
|
+
A(ee, W, te);
|
|
4503
4503
|
return;
|
|
4504
4504
|
}
|
|
4505
|
-
K && r && _(K, r, ee), l && e && M(e, ae(l, { targetKeys: ee, direction:
|
|
4506
|
-
}, [A, K, r, _, l, e, M]), ne = z((ee,
|
|
4505
|
+
K && r && _(K, r, ee), l && e && M(e, ae(l, { targetKeys: ee, direction: W, moveKeys: te }));
|
|
4506
|
+
}, [A, K, r, _, l, e, M]), ne = z((ee, W) => {
|
|
4507
4507
|
if (w) {
|
|
4508
|
-
w(ee,
|
|
4508
|
+
w(ee, W);
|
|
4509
4509
|
return;
|
|
4510
4510
|
}
|
|
4511
|
-
x && e && M(e, ae(x, { sourceSelectedKeys: ee, targetSelectedKeys:
|
|
4512
|
-
}, [w, x, e, M]),
|
|
4511
|
+
x && e && M(e, ae(x, { sourceSelectedKeys: ee, targetSelectedKeys: W }));
|
|
4512
|
+
}, [w, x, e, M]), ue = z((ee, W) => {
|
|
4513
4513
|
if (D) {
|
|
4514
|
-
D(ee,
|
|
4514
|
+
D(ee, W);
|
|
4515
4515
|
return;
|
|
4516
4516
|
}
|
|
4517
|
-
b && e && M(e, ae(b, { direction: ee, value:
|
|
4518
|
-
}, [D, b, e, M]),
|
|
4517
|
+
b && e && M(e, ae(b, { direction: ee, value: W }));
|
|
4518
|
+
}, [D, b, e, M]), de = z((ee, W) => {
|
|
4519
4519
|
if (T) {
|
|
4520
|
-
T(ee,
|
|
4520
|
+
T(ee, W);
|
|
4521
4521
|
return;
|
|
4522
4522
|
}
|
|
4523
4523
|
N && e && M(e, ae(N, { direction: ee }));
|
|
4524
|
-
}, [T, N, e, M]),
|
|
4524
|
+
}, [T, N, e, M]), fe = /* @__PURE__ */ v(
|
|
4525
4525
|
Xr,
|
|
4526
4526
|
{
|
|
4527
4527
|
dataSource: q,
|
|
4528
|
-
targetKeys:
|
|
4528
|
+
targetKeys: G,
|
|
4529
4529
|
selectedKeys: oe,
|
|
4530
4530
|
disabled: c,
|
|
4531
4531
|
showSearch: f,
|
|
@@ -4534,18 +4534,18 @@ const qn = "YYYY-MM-DD", Tc = ({
|
|
|
4534
4534
|
pagination: O,
|
|
4535
4535
|
status: S || void 0,
|
|
4536
4536
|
titles: $,
|
|
4537
|
-
actions:
|
|
4537
|
+
actions: H,
|
|
4538
4538
|
locale: V,
|
|
4539
4539
|
onChange: pe,
|
|
4540
4540
|
onSelectChange: ne,
|
|
4541
|
-
onSearch:
|
|
4542
|
-
onScroll:
|
|
4541
|
+
onSearch: ue,
|
|
4542
|
+
onScroll: de,
|
|
4543
4543
|
styles: L,
|
|
4544
4544
|
render: (ee) => ee.title,
|
|
4545
4545
|
...C
|
|
4546
4546
|
}
|
|
4547
4547
|
);
|
|
4548
|
-
return B && Object.keys(B).length > 0 ? /* @__PURE__ */ v(Ue, { theme: { components: { Transfer: B } }, children:
|
|
4548
|
+
return B && Object.keys(B).length > 0 ? /* @__PURE__ */ v(Ue, { theme: { components: { Transfer: B } }, children: fe }) : fe;
|
|
4549
4549
|
}, bn = (t, e) => {
|
|
4550
4550
|
if (t == null) return e;
|
|
4551
4551
|
if (typeof t == "string")
|
|
@@ -4742,7 +4742,7 @@ function La(t) {
|
|
|
4742
4742
|
}
|
|
4743
4743
|
const Ba = ({ dictCode: t, value: e }) => {
|
|
4744
4744
|
const [n, i] = Ce(null);
|
|
4745
|
-
if (
|
|
4745
|
+
if ($e(() => {
|
|
4746
4746
|
if (!t) {
|
|
4747
4747
|
i([]);
|
|
4748
4748
|
return;
|
|
@@ -5019,7 +5019,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5019
5019
|
onClose: g
|
|
5020
5020
|
}) => {
|
|
5021
5021
|
const [h, S] = Ce(n), [p, u] = Ce(i), [d, l] = Ce(a), [x, b] = Ce(c), [N, A] = Ce(null);
|
|
5022
|
-
|
|
5022
|
+
$e(() => {
|
|
5023
5023
|
t && (S(n), u([...i]), l(a), b(c));
|
|
5024
5024
|
}, [t, n, i, a, c]);
|
|
5025
5025
|
const w = z(
|
|
@@ -5045,7 +5045,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5045
5045
|
), k = z(
|
|
5046
5046
|
(O, F) => {
|
|
5047
5047
|
u((P) => {
|
|
5048
|
-
const q = P.map((
|
|
5048
|
+
const q = P.map((G) => G.key === O ? { ...G, fixed: F } : G);
|
|
5049
5049
|
return w(D(h, q)), q;
|
|
5050
5050
|
});
|
|
5051
5051
|
},
|
|
@@ -5053,7 +5053,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5053
5053
|
), C = z(
|
|
5054
5054
|
(O, F) => {
|
|
5055
5055
|
u((P) => {
|
|
5056
|
-
const q = P.map((
|
|
5056
|
+
const q = P.map((G) => G.key === O ? { ...G, width: F } : G);
|
|
5057
5057
|
return w(D(h, q)), q;
|
|
5058
5058
|
});
|
|
5059
5059
|
},
|
|
@@ -5063,7 +5063,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5063
5063
|
u((P) => {
|
|
5064
5064
|
const q = P.find((ne) => ne.key === O);
|
|
5065
5065
|
if (!q) return P;
|
|
5066
|
-
const
|
|
5066
|
+
const G = typeof q.width == "number" ? q.width : 80, oe = Math.max(on, G + F), pe = P.map((ne) => ne.key === O ? { ...ne, width: oe } : ne);
|
|
5067
5067
|
return w(D(h, pe)), pe;
|
|
5068
5068
|
});
|
|
5069
5069
|
},
|
|
@@ -5094,7 +5094,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5094
5094
|
A(O), F.dataTransfer.effectAllowed = "move", F.dataTransfer.setData("text/plain", String(O));
|
|
5095
5095
|
}, $ = (O) => (F) => {
|
|
5096
5096
|
F.preventDefault(), F.dataTransfer.dropEffect = "move", !(N === null || N === O) && (E(N, O), A(O));
|
|
5097
|
-
},
|
|
5097
|
+
}, H = () => A(null), V = e != null ? (() => {
|
|
5098
5098
|
let O = e.y, F = e.x;
|
|
5099
5099
|
return typeof window < "u" && (F + an > window.innerWidth && (F = window.innerWidth - an - 16), F < 16 && (F = 16), O + Jn > window.innerHeight && (O = Math.max(16, window.innerHeight - Jn - 16)), O < 16 && (O = 16)), { margin: 0, top: O, left: F };
|
|
5100
5100
|
})() : void 0;
|
|
@@ -5122,7 +5122,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5122
5122
|
}
|
|
5123
5123
|
),
|
|
5124
5124
|
/* @__PURE__ */ v(Tt, { checked: d, onChange: (O) => K(O.target.checked), children: "自动滚动" }),
|
|
5125
|
-
/* @__PURE__ */ ve(
|
|
5125
|
+
/* @__PURE__ */ ve(Re, { align: "center", children: [
|
|
5126
5126
|
/* @__PURE__ */ v("span", { className: "and-table-column-setting-label", children: "表格" }),
|
|
5127
5127
|
/* @__PURE__ */ v(
|
|
5128
5128
|
ir,
|
|
@@ -5152,7 +5152,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5152
5152
|
draggable: !0,
|
|
5153
5153
|
onDragStart: B(F),
|
|
5154
5154
|
onDragOver: $(F),
|
|
5155
|
-
onDragEnd:
|
|
5155
|
+
onDragEnd: H,
|
|
5156
5156
|
children: [
|
|
5157
5157
|
/* @__PURE__ */ v("td", { className: "and-table-column-setting-td-drag", children: /* @__PURE__ */ v("span", { className: "and-table-column-setting-drag", title: "拖动排序", children: /* @__PURE__ */ v(Ei, {}) }) }),
|
|
5158
5158
|
/* @__PURE__ */ ve("td", { className: "and-table-column-setting-td-name", children: [
|
|
@@ -5179,8 +5179,8 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5179
5179
|
placeholder: "auto",
|
|
5180
5180
|
controls: !1,
|
|
5181
5181
|
style: { width: 44 },
|
|
5182
|
-
onChange: (
|
|
5183
|
-
|
|
5182
|
+
onChange: (G) => {
|
|
5183
|
+
G == null || typeof G == "string" && G === "" ? C(O.key, "auto") : C(O.key, Math.max(on, Number(G)));
|
|
5184
5184
|
}
|
|
5185
5185
|
}
|
|
5186
5186
|
),
|
|
@@ -5194,7 +5194,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5194
5194
|
}
|
|
5195
5195
|
)
|
|
5196
5196
|
] }) }),
|
|
5197
|
-
/* @__PURE__ */ v("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ve(
|
|
5197
|
+
/* @__PURE__ */ v("td", { className: "and-table-column-setting-td-fix", children: /* @__PURE__ */ ve(Re, { className: "and-table-column-setting-fix", children: [
|
|
5198
5198
|
/* @__PURE__ */ v(
|
|
5199
5199
|
"span",
|
|
5200
5200
|
{
|
|
@@ -5301,9 +5301,9 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5301
5301
|
children: L,
|
|
5302
5302
|
token: B,
|
|
5303
5303
|
columnSettingOpenKey: $,
|
|
5304
|
-
columnSettingsKey:
|
|
5304
|
+
columnSettingsKey: H,
|
|
5305
5305
|
...V
|
|
5306
|
-
} = r, O = R((I) => I.addCommand), F = R((I) => I.getDataSet), P = R((I) => I.setDataSet), [q,
|
|
5306
|
+
} = r, O = R((I) => I.addCommand), F = R((I) => I.getDataSet), P = R((I) => I.setDataSet), [q, G] = Ce([]), oe = ze(null), [pe, ne] = Ce(void 0), ue = z((I, ge, _e) => {
|
|
5307
5307
|
if (!ge) return I;
|
|
5308
5308
|
const De = ge.split(".").filter(Boolean);
|
|
5309
5309
|
if (De.length === 0) return I;
|
|
@@ -5314,7 +5314,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5314
5314
|
Te[He] = Pe && typeof Pe == "object" ? { ...Pe } : {}, Te = Te[He];
|
|
5315
5315
|
}
|
|
5316
5316
|
return Te[De[De.length - 1]] = _e, Ae;
|
|
5317
|
-
}, []),
|
|
5317
|
+
}, []), de = z((I, ge) => {
|
|
5318
5318
|
if (I == null) return ge;
|
|
5319
5319
|
if (typeof I == "string")
|
|
5320
5320
|
try {
|
|
@@ -5323,7 +5323,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5323
5323
|
return ge;
|
|
5324
5324
|
}
|
|
5325
5325
|
return I;
|
|
5326
|
-
}, []),
|
|
5326
|
+
}, []), fe = m(() => Array.isArray(c) ? c : [], [c]), ee = m(() => Array.isArray(f) ? f : [], [f]), W = m(
|
|
5327
5327
|
() => ({
|
|
5328
5328
|
dataSet: ye(n, a),
|
|
5329
5329
|
pagination: a ? ye(n, `${a}_pagination`) : void 0,
|
|
@@ -5332,36 +5332,36 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5332
5332
|
columnSettings: a && n ? ye(n, `${a}_columnSettings`) : void 0
|
|
5333
5333
|
}),
|
|
5334
5334
|
[n, a]
|
|
5335
|
-
), { style: te, className:
|
|
5335
|
+
), { style: te, className: me, ...Q } = V, ie = m(() => {
|
|
5336
5336
|
if (T) return T;
|
|
5337
|
-
let I =
|
|
5337
|
+
let I = Q["scroll-x"], ge = Q["scroll-y"];
|
|
5338
5338
|
if (String(I) === "true" ? I = !0 : String(I) === "false" || I === "__unset__" ? I = void 0 : I === "max-content" && (I = "max-content"), (ge === "" || ge === null || ge === void 0) && (ge = void 0), I !== void 0 || ge !== void 0) return { x: I, y: ge };
|
|
5339
|
-
}, [T,
|
|
5339
|
+
}, [T, Q["scroll-x"], Q["scroll-y"]]), we = R(
|
|
5340
5340
|
(I) => {
|
|
5341
5341
|
var ge;
|
|
5342
|
-
return
|
|
5342
|
+
return W.columnSettingOpen ? ((ge = I.dataSets[W.columnSettingOpen]) == null ? void 0 : ge.value) === !0 : !1;
|
|
5343
5343
|
}
|
|
5344
|
-
),
|
|
5344
|
+
), Ee = 420;
|
|
5345
5345
|
mr(() => {
|
|
5346
|
-
if (!
|
|
5346
|
+
if (!we || !oe.current) return;
|
|
5347
5347
|
const I = oe.current.querySelector(".ant-table-thead") || oe.current.querySelector(".ant-table-header");
|
|
5348
5348
|
if (!I) return;
|
|
5349
5349
|
const ge = I.getBoundingClientRect();
|
|
5350
5350
|
ne({
|
|
5351
|
-
x: ge.right -
|
|
5351
|
+
x: ge.right - Ee,
|
|
5352
5352
|
y: ge.bottom + 8
|
|
5353
5353
|
});
|
|
5354
|
-
}, [
|
|
5354
|
+
}, [we]);
|
|
5355
5355
|
const Ve = R((I) => {
|
|
5356
5356
|
var _e;
|
|
5357
|
-
const ge =
|
|
5357
|
+
const ge = W.columnSettings ? (_e = I.dataSets[W.columnSettings]) == null ? void 0 : _e.value : void 0;
|
|
5358
5358
|
return typeof ge == "object" && ge !== null ? ge : void 0;
|
|
5359
|
-
}),
|
|
5359
|
+
}), Le = Qi(W.dataSet, s), Oe = m(() => o ? (y == null ? void 0 : y.data) || [] : W.dataSet ? Le : (y == null ? void 0 : y.data) || [], [o, W.dataSet, Le, y == null ? void 0 : y.data]), xe = m(() => de(B, {}), [B, de]), Ye = xe && Object.keys(xe).length > 0, Z = m(
|
|
5360
5360
|
() => Ye ? { components: { Table: xe } } : void 0,
|
|
5361
5361
|
[Ye, xe]
|
|
5362
|
-
),
|
|
5363
|
-
(I) =>
|
|
5364
|
-
), le = m(() =>
|
|
5362
|
+
), re = R(
|
|
5363
|
+
(I) => W.pagination ? I.dataSets[W.pagination] : void 0
|
|
5364
|
+
), le = m(() => W.pagination ? F(W.pagination, "") || {} : {}, [W.pagination, F, re]), Y = m(() => !(b === !1 || typeof b == "object" && (b == null ? void 0 : b.visible) === !1), [b]), se = Ma(oe, ie == null ? void 0 : ie.y, Y), U = m(() => {
|
|
5365
5365
|
if (!Y) return !1;
|
|
5366
5366
|
const I = typeof b == "object" ? b : {}, ge = V || {}, _e = I.showSizeChanger ?? ge["pagination-showSizeChanger"] ?? !0, De = I.showQuickJumper ?? ge["pagination-showQuickJumper"] ?? !1, Ae = I.simple ?? ge["pagination-simple"] ?? !1, Te = I.defaultPageSize ?? ge["pagination-defaultPageSize"] ?? 10, ke = I.pageSizeOptions ?? ge["pagination-pageSizeOptions"] ?? "10,20,50,100", He = typeof ke == "string" ? ke.split(",").map((Pe) => parseInt(String(Pe).trim(), 10) || 10).filter((Pe) => !isNaN(Pe)) : Array.isArray(ke) ? ke : [10, 20, 50, 100];
|
|
5367
5367
|
return {
|
|
@@ -5373,11 +5373,11 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5373
5373
|
pageSizeOptions: He,
|
|
5374
5374
|
showTotal: (Pe, Ke) => (I.showTotal || "共 ${total} 条").replace("${total}", String(Pe)).replace("${range[0]}", String(Ke[0])).replace("${range[1]}", String(Ke[1])).replace("${range}", `${Ke[0]}-${Ke[1]}`),
|
|
5375
5375
|
onChange: (Pe, Ke) => {
|
|
5376
|
-
|
|
5376
|
+
W.pagination && P(W.pagination, "", { ...le, current: Pe, pageSize: Ke }), x && n && O(n, ae(x, null));
|
|
5377
5377
|
},
|
|
5378
5378
|
hideOnSinglePage: !1
|
|
5379
5379
|
};
|
|
5380
|
-
}, [Y, b, V, le,
|
|
5380
|
+
}, [Y, b, V, le, W.pagination, P, x, n, O]), X = z((I, ge) => {
|
|
5381
5381
|
n && O(n, ae(I.action, { ...ge }));
|
|
5382
5382
|
}, [n, O]), be = m(() => {
|
|
5383
5383
|
let I = h;
|
|
@@ -5411,14 +5411,14 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5411
5411
|
n && I && O(n, ae(I, ge));
|
|
5412
5412
|
},
|
|
5413
5413
|
[n, O]
|
|
5414
|
-
),
|
|
5414
|
+
), J = z(
|
|
5415
5415
|
(I, ge, _e) => {
|
|
5416
|
-
if (!
|
|
5417
|
-
const De = s && String(s).trim() !== "" ? s : "", Ae = I == null ? void 0 : I[d], Te =
|
|
5418
|
-
P(
|
|
5416
|
+
if (!W.dataSet) return;
|
|
5417
|
+
const De = s && String(s).trim() !== "" ? s : "", Ae = I == null ? void 0 : I[d], Te = Oe.map((ke) => (Ae != null ? (ke == null ? void 0 : ke[d]) === Ae : ke === I) ? ue(ke ?? {}, ge, _e) : ke);
|
|
5418
|
+
P(W.dataSet, De, Te, !1);
|
|
5419
5419
|
},
|
|
5420
|
-
[
|
|
5421
|
-
), he = m(() =>
|
|
5420
|
+
[W.dataSet, s, d, Oe, P, ue]
|
|
5421
|
+
), he = m(() => fe.map((I) => {
|
|
5422
5422
|
let ge = !1;
|
|
5423
5423
|
I.fixed === !0 || I.fixed === "left" ? ge = "left" : I.fixed === "right" && (ge = "right");
|
|
5424
5424
|
const _e = I.width;
|
|
@@ -5429,16 +5429,16 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5429
5429
|
fixed: ge,
|
|
5430
5430
|
width: typeof _e == "number" ? _e : "auto"
|
|
5431
5431
|
};
|
|
5432
|
-
}).filter((I) => I.key), [
|
|
5432
|
+
}).filter((I) => I.key), [fe]), Se = l === !0, Me = !1, Be = w === "small" || w === "large" ? w : "middle", { rowIndexVisible: Ze, items: bt, scrollX: St, size: Dn } = m(() => Ja(
|
|
5433
5433
|
Ve,
|
|
5434
5434
|
he,
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
), [Ve, he,
|
|
5435
|
+
Se,
|
|
5436
|
+
Be
|
|
5437
|
+
), [Ve, he, Se, Be]), wt = !!(a && n), Rr = m(() => {
|
|
5438
5438
|
if (St !== void 0) return St;
|
|
5439
|
-
const I =
|
|
5439
|
+
const I = ie == null ? void 0 : ie.x;
|
|
5440
5440
|
return I === !0 || typeof I == "number" && Number.isFinite(I) && I > 0 ? !0 : I === "max-content" ? !1 : Me;
|
|
5441
|
-
}, [St,
|
|
5441
|
+
}, [St, ie == null ? void 0 : ie.x, Me]), Cn = m(() => wt ? St !== void 0 ? St ? !0 : "max-content" : (ie == null ? void 0 : ie.x) !== void 0 ? ie.x : "max-content" : ie == null ? void 0 : ie.x, [wt, St, ie == null ? void 0 : ie.x, Me]), zt = m(() => {
|
|
5442
5442
|
const I = [];
|
|
5443
5443
|
Ze && I.push({
|
|
5444
5444
|
title: "序号",
|
|
@@ -5450,7 +5450,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5450
5450
|
return (ke - 1) * He + Te + 1;
|
|
5451
5451
|
}
|
|
5452
5452
|
});
|
|
5453
|
-
const ge = new Map(
|
|
5453
|
+
const ge = new Map(fe.map((De) => [String(De.key ?? De.dataIndex ?? ""), De]));
|
|
5454
5454
|
if (bt.filter((De) => De.visible).forEach((De) => {
|
|
5455
5455
|
const Ae = ge.get(De.key);
|
|
5456
5456
|
if (!Ae) return;
|
|
@@ -5463,7 +5463,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5463
5463
|
fixed: Te || Ae.fixed,
|
|
5464
5464
|
width: ke ?? Ae.width
|
|
5465
5465
|
},
|
|
5466
|
-
{ runAction: ce, onCellValueChange:
|
|
5466
|
+
{ runAction: ce, onCellValueChange: J }
|
|
5467
5467
|
)
|
|
5468
5468
|
);
|
|
5469
5469
|
}), g !== !1 && ee.length > 0) {
|
|
@@ -5476,62 +5476,62 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5476
5476
|
key: "action",
|
|
5477
5477
|
render: (ke, He) => {
|
|
5478
5478
|
const Pe = ee.map((Ke, xt) => ({ action: Ke, idx: xt })).filter(({ action: Ke }) => ts(He, Ke.visibleExpression));
|
|
5479
|
-
return Pe.length === 0 ? null : De ? /* @__PURE__ */ v(
|
|
5479
|
+
return Pe.length === 0 ? null : De ? /* @__PURE__ */ v(Re.Compact, { children: Pe.map(({ action: Ke, idx: xt }) => {
|
|
5480
5480
|
const At = Te(Ke);
|
|
5481
5481
|
return /* @__PURE__ */ v(Jt, { title: Ke.tooltip, children: /* @__PURE__ */ v(
|
|
5482
5482
|
dt,
|
|
5483
5483
|
{
|
|
5484
5484
|
size: "small",
|
|
5485
|
-
onClick: () =>
|
|
5485
|
+
onClick: () => X(Ke, He),
|
|
5486
5486
|
styles: At == null ? void 0 : At.styles,
|
|
5487
5487
|
classNames: At == null ? void 0 : At.classNames,
|
|
5488
5488
|
children: Ke.title
|
|
5489
5489
|
}
|
|
5490
5490
|
) }, Ke.key ?? xt);
|
|
5491
|
-
}) }) : /* @__PURE__ */ v(
|
|
5491
|
+
}) }) : /* @__PURE__ */ v(Re, { children: Pe.map(({ action: Ke, idx: xt }) => /* @__PURE__ */ v(Jt, { title: Ke.tooltip, children: /* @__PURE__ */ v("a", { onClick: () => X(Ke, He), style: { marginRight: 5 }, children: Ke.title }) }, Ke.key ?? xt)) });
|
|
5492
5492
|
}
|
|
5493
5493
|
});
|
|
5494
5494
|
}
|
|
5495
5495
|
return I;
|
|
5496
5496
|
}, [
|
|
5497
|
-
|
|
5497
|
+
fe,
|
|
5498
5498
|
ee,
|
|
5499
5499
|
Ze,
|
|
5500
5500
|
bt,
|
|
5501
5501
|
g,
|
|
5502
5502
|
be,
|
|
5503
5503
|
le,
|
|
5504
|
-
|
|
5504
|
+
X,
|
|
5505
5505
|
ce,
|
|
5506
|
-
|
|
5506
|
+
J
|
|
5507
5507
|
]), jr = z(() => {
|
|
5508
|
-
|
|
5509
|
-
}, [
|
|
5508
|
+
W.columnSettingOpen && P(W.columnSettingOpen, "", !1);
|
|
5509
|
+
}, [W.columnSettingOpen, P]), Lr = z(
|
|
5510
5510
|
(I) => {
|
|
5511
|
-
|
|
5511
|
+
W.columnSettings && P(W.columnSettings, "value", I);
|
|
5512
5512
|
},
|
|
5513
|
-
[
|
|
5513
|
+
[W.columnSettings, P]
|
|
5514
5514
|
), Br = m(() => {
|
|
5515
5515
|
if (!p && S)
|
|
5516
5516
|
return {
|
|
5517
5517
|
selectedRowKeys: q,
|
|
5518
5518
|
onChange: (I, ge, _e) => {
|
|
5519
|
-
|
|
5519
|
+
G(I), W.selected && P(W.selected, "", I), u != null && u.trim() && n && O(n, ae(u.trim(), {
|
|
5520
5520
|
selectedRowKeys: I,
|
|
5521
5521
|
selectedRows: ge,
|
|
5522
5522
|
info: _e
|
|
5523
5523
|
}));
|
|
5524
5524
|
}
|
|
5525
5525
|
};
|
|
5526
|
-
}, [S, p, q,
|
|
5526
|
+
}, [S, p, q, W.selected, P, u, n, O]), Nn = z((I) => {
|
|
5527
5527
|
if (!p) return;
|
|
5528
5528
|
const _e = [I[d]];
|
|
5529
|
-
|
|
5530
|
-
}, [p, u, n, d,
|
|
5531
|
-
if (!
|
|
5532
|
-
const I = Cn, ge = (
|
|
5533
|
-
return I !== void 0 || ge !== void 0 ? { x: I, y: ge } :
|
|
5534
|
-
}, [
|
|
5529
|
+
G(_e), W.selected && P(W.selected, "", _e), u != null && u.trim() && n && O(n, ae(u.trim(), { record: I, selectedRowKeys: _e }));
|
|
5530
|
+
}, [p, u, n, d, W.selected, P, O]), Fr = z((I) => p && q.includes(I[d]) ? "ant-table-row-selected" : "", [p, d, q]), Vr = z((I) => p ? { onClick: () => Nn(I), style: { cursor: "pointer" } } : {}, [p, Nn]), Kr = m(() => {
|
|
5531
|
+
if (!ie && !wt) return;
|
|
5532
|
+
const I = Cn, ge = (ie == null ? void 0 : ie.y) === "100%" ? se : ie == null ? void 0 : ie.y;
|
|
5533
|
+
return I !== void 0 || ge !== void 0 ? { x: I, y: ge } : ie ? ie.y === "100%" ? { x: ie.x, y: se } : ie : void 0;
|
|
5534
|
+
}, [ie, se, wt, Cn]), { titleSlot: Pt, summarySlot: qt, footerSlot: Tn, otherChildren: zr } = m(() => {
|
|
5535
5535
|
let I = null, ge = null, _e = null;
|
|
5536
5536
|
const De = [];
|
|
5537
5537
|
return Ie.Children.forEach(L, (Ae) => {
|
|
@@ -5556,9 +5556,9 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5556
5556
|
}, [C, qt, _, zt.length, o]), kn = /* @__PURE__ */ v(
|
|
5557
5557
|
ti,
|
|
5558
5558
|
{
|
|
5559
|
-
...
|
|
5559
|
+
...Q,
|
|
5560
5560
|
columns: zt,
|
|
5561
|
-
dataSource:
|
|
5561
|
+
dataSource: Oe,
|
|
5562
5562
|
rowKey: d,
|
|
5563
5563
|
rowSelection: Br,
|
|
5564
5564
|
rowClassName: Fr,
|
|
@@ -5580,7 +5580,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5580
5580
|
ref: oe,
|
|
5581
5581
|
vertical: !0,
|
|
5582
5582
|
style: { width: "100%", height: "100%", ...te },
|
|
5583
|
-
className:
|
|
5583
|
+
className: me,
|
|
5584
5584
|
children: [
|
|
5585
5585
|
Pt && /* @__PURE__ */ v("div", { "data-table-slot": "title", children: Pt }),
|
|
5586
5586
|
/* @__PURE__ */ ve("div", { style: { flex: 1, minHeight: 0, display: "flex", flexDirection: "column" }, children: [
|
|
@@ -5598,7 +5598,7 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5598
5598
|
${Ae ? `.ant-table-row-selected > td a:hover { color: ${Ae}; }` : ""}
|
|
5599
5599
|
` });
|
|
5600
5600
|
})(),
|
|
5601
|
-
|
|
5601
|
+
Z ? /* @__PURE__ */ v(Ue, { theme: Z, children: kn }) : kn
|
|
5602
5602
|
] }),
|
|
5603
5603
|
qt,
|
|
5604
5604
|
Tn && /* @__PURE__ */ v("div", { "data-table-slot": "footer", children: Tn }),
|
|
@@ -5606,16 +5606,16 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5606
5606
|
wt && /* @__PURE__ */ v(
|
|
5607
5607
|
Qa,
|
|
5608
5608
|
{
|
|
5609
|
-
open:
|
|
5609
|
+
open: we,
|
|
5610
5610
|
position: pe,
|
|
5611
5611
|
rowIndexVisible: Ze,
|
|
5612
5612
|
columnItems: bt,
|
|
5613
|
-
defaultRowIndexVisible:
|
|
5613
|
+
defaultRowIndexVisible: Se,
|
|
5614
5614
|
defaultColumnItems: he,
|
|
5615
5615
|
scrollX: Rr,
|
|
5616
5616
|
defaultScrollX: Me,
|
|
5617
5617
|
size: Dn,
|
|
5618
|
-
defaultSize:
|
|
5618
|
+
defaultSize: Be,
|
|
5619
5619
|
onSave: Lr,
|
|
5620
5620
|
onClose: jr
|
|
5621
5621
|
}
|
|
@@ -5645,17 +5645,17 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5645
5645
|
index: l,
|
|
5646
5646
|
...x
|
|
5647
5647
|
}) => {
|
|
5648
|
-
const b = R((
|
|
5648
|
+
const b = R((Q) => Q.addCommand), N = nt(Ge), A = l ?? (N == null ? void 0 : N.index), w = N == null ? void 0 : N.parentIndex, D = typeof o == "string" && o.trim() !== "", T = typeof a == "string" && a.trim() !== "", j = D || T || f === "selectedCount", k = ut(
|
|
5649
5649
|
j ? o : void 0,
|
|
5650
5650
|
j ? a : void 0,
|
|
5651
5651
|
e
|
|
5652
|
-
), C = e ?? k.sessionId, M = R((
|
|
5652
|
+
), C = e ?? k.sessionId, M = R((Q) => Q.getDataSet), E = m(
|
|
5653
5653
|
() => C ? vt(t, N, l) : null,
|
|
5654
5654
|
[C, t, N == null ? void 0 : N.parentIndex, N == null ? void 0 : N.index, l]
|
|
5655
5655
|
), _ = R(
|
|
5656
|
-
(
|
|
5657
|
-
var
|
|
5658
|
-
return E ? ((
|
|
5656
|
+
(Q) => {
|
|
5657
|
+
var ie;
|
|
5658
|
+
return E ? ((ie = Q.propsStore[`${C}_props`]) == null ? void 0 : ie[E]) ?? null : null;
|
|
5659
5659
|
}
|
|
5660
5660
|
), K = m(
|
|
5661
5661
|
() => f === "selectedCount" && a && !o ? a : j ? k.dataSet : void 0,
|
|
@@ -5666,11 +5666,11 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5666
5666
|
), B = m(
|
|
5667
5667
|
() => ye(C, K),
|
|
5668
5668
|
[C, K]
|
|
5669
|
-
), $ = R((
|
|
5669
|
+
), $ = R((Q) => {
|
|
5670
5670
|
if (!B) return;
|
|
5671
|
-
const
|
|
5672
|
-
return
|
|
5673
|
-
}), { options:
|
|
5671
|
+
const ie = Mt(B).baseName;
|
|
5672
|
+
return Q.dataSets[ie];
|
|
5673
|
+
}), { options: H } = Kt(f), V = m(() => {
|
|
5674
5674
|
if (B && L)
|
|
5675
5675
|
return M(B, L);
|
|
5676
5676
|
}, [B, L, M, $]), O = m(() => {
|
|
@@ -5682,78 +5682,88 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5682
5682
|
return {};
|
|
5683
5683
|
}
|
|
5684
5684
|
return g;
|
|
5685
|
-
}, [g]), F = (
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5685
|
+
}, [g]), F = (Q) => Q == null || Q === "" || typeof Q == "string" && Q.trim() === "", P = m(
|
|
5686
|
+
() => j && !!(B && L && String(L).trim() !== ""),
|
|
5687
|
+
[j, B, L]
|
|
5688
|
+
), q = m(() => n ? i : P ? h && F(V) ? i : V : (_ == null ? void 0 : _.content) !== void 0 ? _.content : i, [
|
|
5689
|
+
n,
|
|
5690
|
+
P,
|
|
5691
|
+
V,
|
|
5692
|
+
_ == null ? void 0 : _.content,
|
|
5693
|
+
i,
|
|
5694
|
+
h
|
|
5695
|
+
]), G = m(() => {
|
|
5696
|
+
if (f && H.length > 0 && q !== void 0 && q !== null) {
|
|
5697
|
+
const Q = st(H, q);
|
|
5698
|
+
return (Q == null ? void 0 : Q.label) ?? q;
|
|
5699
|
+
}
|
|
5700
|
+
return q;
|
|
5701
|
+
}, [f, H, q]), oe = m(() => {
|
|
5692
5702
|
if (n)
|
|
5693
|
-
return
|
|
5694
|
-
const
|
|
5695
|
-
return
|
|
5696
|
-
}, [n,
|
|
5697
|
-
const
|
|
5698
|
-
return _ && typeof _ == "object" && Object.keys(_).forEach((
|
|
5699
|
-
!["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(
|
|
5700
|
-
}),
|
|
5701
|
-
}, [x, _]),
|
|
5703
|
+
return G;
|
|
5704
|
+
const Q = (_ == null ? void 0 : _.formatType) || y;
|
|
5705
|
+
return Q && G !== void 0 && G !== null ? oa(G, Q, O) : G;
|
|
5706
|
+
}, [n, G, y, O, _ == null ? void 0 : _.formatType]), pe = m(() => {
|
|
5707
|
+
const Q = { ...x };
|
|
5708
|
+
return _ && typeof _ == "object" && Object.keys(_).forEach((ie) => {
|
|
5709
|
+
!["content", "formatType", "formatValue", "clickAction", "stopClickPropagation"].includes(ie) && _[ie] !== void 0 && _[ie] !== null && (Q[ie] = _[ie]);
|
|
5710
|
+
}), Q;
|
|
5711
|
+
}, [x, _]), ne = m(
|
|
5702
5712
|
() => (_ == null ? void 0 : _.clickAction) ?? u,
|
|
5703
5713
|
[_ == null ? void 0 : _.clickAction, u]
|
|
5704
|
-
),
|
|
5705
|
-
if (
|
|
5706
|
-
const
|
|
5707
|
-
return
|
|
5714
|
+
), ue = (_ == null ? void 0 : _.develop) ?? n, de = m(() => {
|
|
5715
|
+
if (ue) return !1;
|
|
5716
|
+
const Q = (_ == null ? void 0 : _.stopClickPropagation) ?? d;
|
|
5717
|
+
return Q !== void 0 ? Q : !!ne;
|
|
5708
5718
|
}, [
|
|
5709
|
-
|
|
5719
|
+
ue,
|
|
5710
5720
|
_ == null ? void 0 : _.stopClickPropagation,
|
|
5711
5721
|
d,
|
|
5712
|
-
|
|
5713
|
-
]),
|
|
5722
|
+
ne
|
|
5723
|
+
]), fe = (_ == null ? void 0 : _.color) ?? c, ee = en(fe), W = m(() => {
|
|
5714
5724
|
if (!p) return;
|
|
5715
|
-
let
|
|
5725
|
+
let Q = p;
|
|
5716
5726
|
if (typeof p == "string")
|
|
5717
5727
|
try {
|
|
5718
|
-
|
|
5728
|
+
Q = JSON.parse(p);
|
|
5719
5729
|
} catch {
|
|
5720
5730
|
return;
|
|
5721
5731
|
}
|
|
5722
|
-
if (!
|
|
5723
|
-
const
|
|
5724
|
-
return Object.entries(
|
|
5725
|
-
|
|
5726
|
-
}), Object.keys(
|
|
5727
|
-
}, [p]),
|
|
5728
|
-
const
|
|
5729
|
-
if (
|
|
5730
|
-
const
|
|
5731
|
-
|
|
5732
|
-
}
|
|
5733
|
-
return
|
|
5734
|
-
}, [s,
|
|
5732
|
+
if (!Q || typeof Q != "object") return;
|
|
5733
|
+
const ie = {};
|
|
5734
|
+
return Object.entries(Q).forEach(([we, Ee]) => {
|
|
5735
|
+
Ee !== "" && Ee !== void 0 && Ee !== null && (ie[we] = Ee);
|
|
5736
|
+
}), Object.keys(ie).length > 0 ? ie : void 0;
|
|
5737
|
+
}, [p]), te = m(() => {
|
|
5738
|
+
const Q = { width: "100%" }, ie = (_ == null ? void 0 : _.fontSize) ?? s;
|
|
5739
|
+
if (ie) {
|
|
5740
|
+
const we = ie && !String(ie).match(/\d+(px|em|rem|%|vh|vw|pt|pc|in|cm|mm|ex|ch)$/) ? `${ie}px` : ie;
|
|
5741
|
+
Q.fontSize = we;
|
|
5742
|
+
}
|
|
5743
|
+
return ee && (Q.color = ee), Q;
|
|
5744
|
+
}, [s, ee, _ == null ? void 0 : _.fontSize]), me = /* @__PURE__ */ v(
|
|
5735
5745
|
rs,
|
|
5736
5746
|
{
|
|
5737
|
-
...
|
|
5738
|
-
style: { ...
|
|
5739
|
-
onClick: (
|
|
5740
|
-
if (typeof
|
|
5741
|
-
const { actionName:
|
|
5747
|
+
...pe,
|
|
5748
|
+
style: { ...te, ...S, ...pe.style },
|
|
5749
|
+
onClick: (Q) => {
|
|
5750
|
+
if (typeof pe.onClick == "function" && pe.onClick(Q), ne && C) {
|
|
5751
|
+
const { actionName: ie, arg: we } = br(ne, {
|
|
5742
5752
|
id: t,
|
|
5743
5753
|
index: A,
|
|
5744
5754
|
parentIndex: w,
|
|
5745
5755
|
dataSet: K,
|
|
5746
5756
|
dataSetField: L,
|
|
5747
|
-
...
|
|
5748
|
-
}),
|
|
5749
|
-
b(C,
|
|
5757
|
+
...pe
|
|
5758
|
+
}), Ee = ae(ie, we);
|
|
5759
|
+
b(C, Ee);
|
|
5750
5760
|
}
|
|
5751
|
-
|
|
5761
|
+
de && Q.stopPropagation();
|
|
5752
5762
|
},
|
|
5753
|
-
children:
|
|
5763
|
+
children: oe != null && oe !== "" ? String(oe) : r
|
|
5754
5764
|
}
|
|
5755
5765
|
);
|
|
5756
|
-
return
|
|
5766
|
+
return W ? /* @__PURE__ */ v(Ue, { theme: { token: W }, children: me }) : me;
|
|
5757
5767
|
}, { Title: is } = wn, Wc = ({
|
|
5758
5768
|
id: t,
|
|
5759
5769
|
sessionId: e,
|
|
@@ -5909,10 +5919,10 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5909
5919
|
token: _,
|
|
5910
5920
|
...K
|
|
5911
5921
|
}) => {
|
|
5912
|
-
const L = R((
|
|
5922
|
+
const L = R((Z) => Z.addCommand), B = R((Z) => Z.setDataSet), $ = m(
|
|
5913
5923
|
() => ye(e, i),
|
|
5914
5924
|
[e, i]
|
|
5915
|
-
),
|
|
5925
|
+
), H = m(
|
|
5916
5926
|
() => i ? ye(e, `${i}_selected`) : void 0,
|
|
5917
5927
|
[e, i]
|
|
5918
5928
|
), V = m(
|
|
@@ -5921,154 +5931,154 @@ const an = 420, Jn = 440, Qa = ({
|
|
|
5921
5931
|
), O = m(
|
|
5922
5932
|
() => i ? ye(e, `${i}_expanded`) : void 0,
|
|
5923
5933
|
[e, i]
|
|
5924
|
-
), F = R((
|
|
5934
|
+
), F = R((Z) => {
|
|
5925
5935
|
if (!$) return;
|
|
5926
5936
|
if (r)
|
|
5927
|
-
return
|
|
5928
|
-
const
|
|
5929
|
-
if (!
|
|
5930
|
-
if (Array.isArray(
|
|
5931
|
-
const le =
|
|
5937
|
+
return Z.getDataSet($, r);
|
|
5938
|
+
const re = Z.dataSets[$];
|
|
5939
|
+
if (!re) return;
|
|
5940
|
+
if (Array.isArray(re)) return re;
|
|
5941
|
+
const le = re.value;
|
|
5932
5942
|
return Array.isArray(le) ? le : void 0;
|
|
5933
5943
|
}), P = R(
|
|
5934
|
-
(
|
|
5944
|
+
(Z) => H ? Z.getDataSet(H, "") : void 0
|
|
5935
5945
|
), q = R(
|
|
5936
|
-
(
|
|
5937
|
-
),
|
|
5938
|
-
(
|
|
5939
|
-
), oe = m(() => n ? F ?? C ?? [] : $ ? F ?? [] : C ?? [], [n, $, F, C]), pe = P, ne = q,
|
|
5940
|
-
(
|
|
5946
|
+
(Z) => V ? Z.getDataSet(V, "") : void 0
|
|
5947
|
+
), G = R(
|
|
5948
|
+
(Z) => O ? Z.getDataSet(O, "") : void 0
|
|
5949
|
+
), oe = m(() => n ? F ?? C ?? [] : $ ? F ?? [] : C ?? [], [n, $, F, C]), pe = P, ne = q, ue = G, de = z(
|
|
5950
|
+
(Z, re) => {
|
|
5941
5951
|
if (d) {
|
|
5942
|
-
d(
|
|
5952
|
+
d(Z, re);
|
|
5943
5953
|
return;
|
|
5944
5954
|
}
|
|
5945
|
-
|
|
5955
|
+
H && B(H, "", Z), o && e && L(e, ae(o, { selectedKeys: Z }));
|
|
5946
5956
|
},
|
|
5947
|
-
[d,
|
|
5948
|
-
),
|
|
5949
|
-
(
|
|
5957
|
+
[d, H, e, B, o, L]
|
|
5958
|
+
), fe = z(
|
|
5959
|
+
(Z, re) => {
|
|
5950
5960
|
if (l) {
|
|
5951
|
-
l(
|
|
5961
|
+
l(Z, re);
|
|
5952
5962
|
return;
|
|
5953
5963
|
}
|
|
5954
|
-
V && B(V, "",
|
|
5964
|
+
V && B(V, "", Z), a && e && L(e, ae(a, { checkedKeys: Z }));
|
|
5955
5965
|
},
|
|
5956
5966
|
[l, V, e, B, a, L]
|
|
5957
5967
|
), ee = z(
|
|
5958
|
-
(
|
|
5968
|
+
(Z, re) => {
|
|
5959
5969
|
if (x) {
|
|
5960
|
-
x(
|
|
5970
|
+
x(Z, re);
|
|
5961
5971
|
return;
|
|
5962
5972
|
}
|
|
5963
|
-
O && B(O, "",
|
|
5973
|
+
O && B(O, "", Z), s && e && L(e, ae(s, { expandedKeys: Z, expanded: re.expanded }));
|
|
5964
5974
|
},
|
|
5965
5975
|
[x, O, e, B, s, L]
|
|
5966
|
-
),
|
|
5967
|
-
(
|
|
5976
|
+
), W = z(
|
|
5977
|
+
(Z) => {
|
|
5968
5978
|
if (b) {
|
|
5969
|
-
b(
|
|
5979
|
+
b(Z);
|
|
5970
5980
|
return;
|
|
5971
5981
|
}
|
|
5972
|
-
c && e && L(e, ae(c,
|
|
5982
|
+
c && e && L(e, ae(c, Z));
|
|
5973
5983
|
},
|
|
5974
5984
|
[b, c, e, L]
|
|
5975
5985
|
), te = z(
|
|
5976
|
-
(
|
|
5986
|
+
(Z) => {
|
|
5977
5987
|
if (N) {
|
|
5978
|
-
N(
|
|
5988
|
+
N(Z);
|
|
5979
5989
|
return;
|
|
5980
5990
|
}
|
|
5981
|
-
f && e && L(e, ae(f,
|
|
5991
|
+
f && e && L(e, ae(f, Z));
|
|
5982
5992
|
},
|
|
5983
5993
|
[N, f, e, L]
|
|
5984
|
-
),
|
|
5985
|
-
(
|
|
5994
|
+
), me = z(
|
|
5995
|
+
(Z) => {
|
|
5986
5996
|
if (A) {
|
|
5987
|
-
A(
|
|
5997
|
+
A(Z);
|
|
5988
5998
|
return;
|
|
5989
5999
|
}
|
|
5990
|
-
y && e && L(e, ae(y,
|
|
6000
|
+
y && e && L(e, ae(y, Z));
|
|
5991
6001
|
},
|
|
5992
6002
|
[A, y, e, L]
|
|
5993
|
-
),
|
|
5994
|
-
(
|
|
6003
|
+
), Q = z(
|
|
6004
|
+
(Z) => {
|
|
5995
6005
|
if (w) {
|
|
5996
|
-
w(
|
|
6006
|
+
w(Z);
|
|
5997
6007
|
return;
|
|
5998
6008
|
}
|
|
5999
|
-
g && e && L(e, ae(g,
|
|
6009
|
+
g && e && L(e, ae(g, Z));
|
|
6000
6010
|
},
|
|
6001
6011
|
[w, g, e, L]
|
|
6002
|
-
),
|
|
6003
|
-
(
|
|
6012
|
+
), ie = z(
|
|
6013
|
+
(Z) => {
|
|
6004
6014
|
if (D) {
|
|
6005
|
-
D(
|
|
6015
|
+
D(Z);
|
|
6006
6016
|
return;
|
|
6007
6017
|
}
|
|
6008
|
-
h && e && L(e, ae(h,
|
|
6018
|
+
h && e && L(e, ae(h, Z));
|
|
6009
6019
|
},
|
|
6010
6020
|
[D, h, e, L]
|
|
6011
|
-
),
|
|
6012
|
-
(
|
|
6021
|
+
), we = z(
|
|
6022
|
+
(Z) => {
|
|
6013
6023
|
if (T) {
|
|
6014
|
-
T(
|
|
6024
|
+
T(Z);
|
|
6015
6025
|
return;
|
|
6016
6026
|
}
|
|
6017
|
-
S && e && L(e, ae(S,
|
|
6027
|
+
S && e && L(e, ae(S, Z));
|
|
6018
6028
|
},
|
|
6019
6029
|
[T, S, e, L]
|
|
6020
|
-
),
|
|
6021
|
-
(
|
|
6030
|
+
), Ee = z(
|
|
6031
|
+
(Z) => {
|
|
6022
6032
|
if (j) {
|
|
6023
|
-
j(
|
|
6033
|
+
j(Z);
|
|
6024
6034
|
return;
|
|
6025
6035
|
}
|
|
6026
|
-
p && e && L(e, ae(p,
|
|
6036
|
+
p && e && L(e, ae(p, Z));
|
|
6027
6037
|
},
|
|
6028
6038
|
[j, p, e, L]
|
|
6029
6039
|
), Ve = z(
|
|
6030
|
-
(
|
|
6040
|
+
(Z, re) => {
|
|
6031
6041
|
if (k) {
|
|
6032
|
-
k(
|
|
6042
|
+
k(Z, re);
|
|
6033
6043
|
return;
|
|
6034
6044
|
}
|
|
6035
|
-
u && e && L(e, ae(u, { loadedKeys:
|
|
6045
|
+
u && e && L(e, ae(u, { loadedKeys: Z, ...re }));
|
|
6036
6046
|
},
|
|
6037
6047
|
[k, u, e, L]
|
|
6038
|
-
),
|
|
6048
|
+
), Le = m(() => {
|
|
6039
6049
|
if (!_) return;
|
|
6040
|
-
const
|
|
6041
|
-
return Object.entries(_).forEach(([
|
|
6042
|
-
le !== "" && le !== void 0 && le !== null && (
|
|
6043
|
-
}), Object.keys(
|
|
6044
|
-
}, [_]),
|
|
6045
|
-
const
|
|
6046
|
-
return n && (
|
|
6047
|
-
}, [n,
|
|
6050
|
+
const Z = {};
|
|
6051
|
+
return Object.entries(_).forEach(([re, le]) => {
|
|
6052
|
+
le !== "" && le !== void 0 && le !== null && (Z[re] = le);
|
|
6053
|
+
}), Object.keys(Z).length > 0 ? Z : void 0;
|
|
6054
|
+
}, [_]), Oe = m(() => {
|
|
6055
|
+
const Z = {};
|
|
6056
|
+
return n && (Z.motion = !1), Le && (Z.components = { Tree: Le }), Object.keys(Z).length > 0 ? Z : void 0;
|
|
6057
|
+
}, [n, Le]), Ye = /* @__PURE__ */ v(
|
|
6048
6058
|
ri,
|
|
6049
6059
|
{
|
|
6050
6060
|
...K,
|
|
6051
6061
|
...n ? { motion: !1 } : {},
|
|
6052
6062
|
treeData: oe,
|
|
6053
|
-
...
|
|
6063
|
+
...H != null ? { selectedKeys: pe ?? [] } : {},
|
|
6054
6064
|
...V != null ? { checkedKeys: ne ?? [] } : {},
|
|
6055
|
-
...O != null ? { expandedKeys:
|
|
6056
|
-
onSelect:
|
|
6057
|
-
onCheck:
|
|
6065
|
+
...O != null ? { expandedKeys: ue ?? [] } : {},
|
|
6066
|
+
onSelect: de,
|
|
6067
|
+
onCheck: fe,
|
|
6058
6068
|
onExpand: ee,
|
|
6059
|
-
onDragEnd:
|
|
6069
|
+
onDragEnd: W,
|
|
6060
6070
|
onDragEnter: te,
|
|
6061
|
-
onDragLeave:
|
|
6062
|
-
onDragOver:
|
|
6063
|
-
onDragStart:
|
|
6064
|
-
onDrop:
|
|
6065
|
-
onRightClick:
|
|
6071
|
+
onDragLeave: me,
|
|
6072
|
+
onDragOver: Q,
|
|
6073
|
+
onDragStart: ie,
|
|
6074
|
+
onDrop: we,
|
|
6075
|
+
onRightClick: Ee,
|
|
6066
6076
|
onLoad: Ve,
|
|
6067
6077
|
styles: M,
|
|
6068
6078
|
classNames: E
|
|
6069
6079
|
}
|
|
6070
6080
|
);
|
|
6071
|
-
return
|
|
6081
|
+
return Oe ? /* @__PURE__ */ v(Ue, { theme: Oe, children: Ye }) : Ye;
|
|
6072
6082
|
}, Ic = ({
|
|
6073
6083
|
id: t,
|
|
6074
6084
|
sessionId: e,
|
|
@@ -6502,7 +6512,7 @@ const rl = ({
|
|
|
6502
6512
|
const C = k.getDataSet(d, l ?? "");
|
|
6503
6513
|
return C != null && typeof C == "object" ? C : x;
|
|
6504
6514
|
}), N = Zn(y, h), A = b.current ?? f ?? 1, w = b.pageSize ?? N, D = b.total ?? g ?? 0;
|
|
6505
|
-
|
|
6515
|
+
$e(() => {
|
|
6506
6516
|
if (!d || l === void 0) return;
|
|
6507
6517
|
const k = l ?? "", { getDataSet: C, setDataSet: M } = R.getState(), E = C(d, k), _ = Zn(y, h);
|
|
6508
6518
|
if (E == null || typeof E != "object" || Array.isArray(E)) {
|
|
@@ -6575,7 +6585,7 @@ const rl = ({
|
|
|
6575
6585
|
...o
|
|
6576
6586
|
}) => /* @__PURE__ */ v(ci, { ...o, items: i, children: r }), Ut = (t) => Object.entries(t).map(([e, n]) => `${e.replace(/([A-Z])/g, "-$1").toLowerCase()}: ${n}`).join("; "), hs = ({ mode: t, arrowStyle: e, arrowIconPrev: n, arrowIconNext: i, children: r }) => {
|
|
6577
6587
|
const o = ze(null), a = ze(null), [s, c] = Ce(0), [f, y] = Ce(!1), [g, h] = Ce(0), [S, p] = Ce(0), u = t === "horizontal";
|
|
6578
|
-
|
|
6588
|
+
$e(() => {
|
|
6579
6589
|
const w = () => {
|
|
6580
6590
|
if (!o.current || !a.current) return;
|
|
6581
6591
|
const T = o.current, j = a.current;
|
|
@@ -6722,21 +6732,21 @@ const rl = ({
|
|
|
6722
6732
|
// 仅设计器/业务用,不传给 DOM,避免 React 警告
|
|
6723
6733
|
...B
|
|
6724
6734
|
}) => {
|
|
6725
|
-
const $ = nt(Ge),
|
|
6735
|
+
const $ = nt(Ge), H = m(
|
|
6726
6736
|
() => e && t ? vt(t, $, o) : null,
|
|
6727
6737
|
[e, t, $ == null ? void 0 : $.parentIndex, $ == null ? void 0 : $.index, o]
|
|
6728
6738
|
), V = R(
|
|
6729
|
-
(
|
|
6739
|
+
(J) => {
|
|
6730
6740
|
var he;
|
|
6731
|
-
return
|
|
6741
|
+
return H && e ? ((he = J.propsStore[`${e}_props`]) == null ? void 0 : he[H]) ?? null : null;
|
|
6732
6742
|
}
|
|
6733
|
-
), O = R((
|
|
6743
|
+
), O = R((J) => J.addCommand), F = R((J) => J.setDataSet), P = m(
|
|
6734
6744
|
() => ye(e, i),
|
|
6735
6745
|
[e, i]
|
|
6736
6746
|
), q = R(
|
|
6737
|
-
(
|
|
6747
|
+
(J) => {
|
|
6738
6748
|
if (P)
|
|
6739
|
-
return r ?
|
|
6749
|
+
return r ? J.getDataSet(P, r) : J.dataSets[P];
|
|
6740
6750
|
}
|
|
6741
6751
|
// 使用 shallow 比较确保只有通过内容变更才触发更新
|
|
6742
6752
|
// 如果找不到依赖包,可以自定义一个简单的浅比较函数或暂时使用 strict equality (默认)
|
|
@@ -6744,13 +6754,13 @@ const rl = ({
|
|
|
6744
6754
|
// 更安全的做法是分别订阅需要的字段,或者确保 getDataSet 返回的是稳定的 state 引用。
|
|
6745
6755
|
// 这里我们先假定 state.dataSets[...] 返回的是稳定的 immer state 引用。
|
|
6746
6756
|
// 为了防止 undefined 情况下的 {} 导致的新引用,我们在 selector 内部只返回 undefined,在外部处理默认值。
|
|
6747
|
-
),
|
|
6757
|
+
), G = m(() => ({}), []), oe = q ?? G, pe = m(
|
|
6748
6758
|
() => (oe == null ? void 0 : oe.items) ?? (Array.isArray(oe) ? oe : void 0) ?? (Array.isArray(oe == null ? void 0 : oe.value) ? oe.value : void 0),
|
|
6749
6759
|
[oe]
|
|
6750
|
-
), ne = m(() => n ? pe ?? p ?? [] : P ? pe ?? [] : p ?? [], [n, P, pe, p]),
|
|
6760
|
+
), ne = m(() => n ? pe ?? p ?? [] : P ? pe ?? [] : p ?? [], [n, P, pe, p]), ue = m(
|
|
6751
6761
|
() => (V == null ? void 0 : V.selectedKeys) ?? oe.selectedKeys ?? u,
|
|
6752
6762
|
[V == null ? void 0 : V.selectedKeys, oe.selectedKeys, u]
|
|
6753
|
-
),
|
|
6763
|
+
), de = m(
|
|
6754
6764
|
() => (V == null ? void 0 : V.openKeys) ?? oe.openKeys ?? (D && T ? void 0 : d),
|
|
6755
6765
|
[
|
|
6756
6766
|
V == null ? void 0 : V.openKeys,
|
|
@@ -6759,55 +6769,55 @@ const rl = ({
|
|
|
6759
6769
|
T,
|
|
6760
6770
|
d
|
|
6761
6771
|
]
|
|
6762
|
-
),
|
|
6772
|
+
), fe = m(
|
|
6763
6773
|
() => ye(e, D),
|
|
6764
6774
|
[e, D]
|
|
6765
|
-
), ee = R((
|
|
6766
|
-
if (!oe.openKeys &&
|
|
6767
|
-
return
|
|
6768
|
-
}),
|
|
6769
|
-
const
|
|
6770
|
-
const Me = { ...
|
|
6775
|
+
), ee = R((J) => {
|
|
6776
|
+
if (!oe.openKeys && fe && T)
|
|
6777
|
+
return J.getDataSet(fe, T);
|
|
6778
|
+
}), W = m(() => {
|
|
6779
|
+
const J = (he) => Array.isArray(he) ? he.map((Se) => {
|
|
6780
|
+
const Me = { ...Se };
|
|
6771
6781
|
if (Me.icon && typeof Me.icon == "string") {
|
|
6772
|
-
const
|
|
6773
|
-
|
|
6782
|
+
const Be = at[Me.icon];
|
|
6783
|
+
Be && (Me.icon = /* @__PURE__ */ v(Be, {}));
|
|
6774
6784
|
}
|
|
6775
|
-
return Me.children && Me.children.length > 0 && (Me.children =
|
|
6785
|
+
return Me.children && Me.children.length > 0 && (Me.children = J(Me.children)), Me;
|
|
6776
6786
|
}) : [];
|
|
6777
|
-
return
|
|
6787
|
+
return J(ne || []);
|
|
6778
6788
|
}, [ne]), te = m(
|
|
6779
|
-
() =>
|
|
6780
|
-
[
|
|
6781
|
-
),
|
|
6782
|
-
() =>
|
|
6783
|
-
[
|
|
6784
|
-
),
|
|
6785
|
-
(
|
|
6789
|
+
() => ue,
|
|
6790
|
+
[ue]
|
|
6791
|
+
), me = m(
|
|
6792
|
+
() => de ?? ee,
|
|
6793
|
+
[de, ee]
|
|
6794
|
+
), Q = z(
|
|
6795
|
+
(J) => {
|
|
6786
6796
|
if (y) {
|
|
6787
|
-
y(
|
|
6797
|
+
y(J);
|
|
6788
6798
|
return;
|
|
6789
6799
|
}
|
|
6790
6800
|
a && e && O(
|
|
6791
6801
|
e,
|
|
6792
|
-
ae(a, { key:
|
|
6802
|
+
ae(a, { key: J.key, keyPath: J.keyPath })
|
|
6793
6803
|
);
|
|
6794
6804
|
},
|
|
6795
6805
|
[y, a, e, O]
|
|
6796
|
-
),
|
|
6797
|
-
(
|
|
6806
|
+
), ie = z(
|
|
6807
|
+
(J) => {
|
|
6798
6808
|
if (g) {
|
|
6799
|
-
g(
|
|
6809
|
+
g(J);
|
|
6800
6810
|
return;
|
|
6801
6811
|
}
|
|
6802
6812
|
if (P)
|
|
6803
6813
|
if (r) {
|
|
6804
6814
|
const he = R.getState().getDataSet(P, r) || {};
|
|
6805
|
-
F(P, r, { ...he, selectedKeys:
|
|
6815
|
+
F(P, r, { ...he, selectedKeys: J.selectedKeys });
|
|
6806
6816
|
} else
|
|
6807
|
-
F(P, "selectedKeys",
|
|
6817
|
+
F(P, "selectedKeys", J.selectedKeys);
|
|
6808
6818
|
s && e && O(
|
|
6809
6819
|
e,
|
|
6810
|
-
ae(s, { selectedKeys:
|
|
6820
|
+
ae(s, { selectedKeys: J.selectedKeys })
|
|
6811
6821
|
);
|
|
6812
6822
|
},
|
|
6813
6823
|
[
|
|
@@ -6819,104 +6829,104 @@ const rl = ({
|
|
|
6819
6829
|
e,
|
|
6820
6830
|
O
|
|
6821
6831
|
]
|
|
6822
|
-
),
|
|
6823
|
-
(
|
|
6832
|
+
), we = z(
|
|
6833
|
+
(J) => {
|
|
6824
6834
|
if (h) {
|
|
6825
|
-
h(
|
|
6835
|
+
h(J);
|
|
6826
6836
|
return;
|
|
6827
6837
|
}
|
|
6828
6838
|
if (P)
|
|
6829
6839
|
if (r) {
|
|
6830
6840
|
const he = R.getState().getDataSet(P, r) || {};
|
|
6831
|
-
F(P, r, { ...he, openKeys:
|
|
6841
|
+
F(P, r, { ...he, openKeys: J });
|
|
6832
6842
|
} else
|
|
6833
|
-
F(P, "openKeys",
|
|
6834
|
-
else
|
|
6843
|
+
F(P, "openKeys", J);
|
|
6844
|
+
else fe && T && F(fe, T, J);
|
|
6835
6845
|
c && e && O(
|
|
6836
6846
|
e,
|
|
6837
|
-
ae(c, { openKeys:
|
|
6847
|
+
ae(c, { openKeys: J })
|
|
6838
6848
|
);
|
|
6839
6849
|
},
|
|
6840
6850
|
[
|
|
6841
6851
|
h,
|
|
6842
6852
|
P,
|
|
6843
6853
|
r,
|
|
6844
|
-
|
|
6854
|
+
fe,
|
|
6845
6855
|
T,
|
|
6846
6856
|
F,
|
|
6847
6857
|
c,
|
|
6848
6858
|
e,
|
|
6849
6859
|
O
|
|
6850
6860
|
]
|
|
6851
|
-
),
|
|
6852
|
-
(
|
|
6861
|
+
), Ee = z(
|
|
6862
|
+
(J) => {
|
|
6853
6863
|
if (S) {
|
|
6854
|
-
S(
|
|
6864
|
+
S(J);
|
|
6855
6865
|
return;
|
|
6856
6866
|
}
|
|
6857
6867
|
f && e && O(
|
|
6858
6868
|
e,
|
|
6859
6869
|
ae(f, {
|
|
6860
|
-
selectedKeys:
|
|
6861
|
-
key:
|
|
6870
|
+
selectedKeys: J.selectedKeys,
|
|
6871
|
+
key: J.key
|
|
6862
6872
|
})
|
|
6863
6873
|
);
|
|
6864
6874
|
},
|
|
6865
6875
|
[S, f, e, O]
|
|
6866
|
-
), Ve = j === "inline" && k !== void 0 ? { inlineCollapsed: k } : {},
|
|
6876
|
+
), Ve = j === "inline" && k !== void 0 ? { inlineCollapsed: k } : {}, Le = m(() => {
|
|
6867
6877
|
if (!N) return;
|
|
6868
|
-
const
|
|
6869
|
-
return Object.entries(N).forEach(([he,
|
|
6870
|
-
|
|
6871
|
-
}), Object.keys(
|
|
6872
|
-
}, [N]),
|
|
6878
|
+
const J = {};
|
|
6879
|
+
return Object.entries(N).forEach(([he, Se]) => {
|
|
6880
|
+
Se !== "" && Se !== void 0 && Se !== null && (J[he] = Se);
|
|
6881
|
+
}), Object.keys(J).length > 0 ? J : void 0;
|
|
6882
|
+
}, [N]), Oe = m(() => {
|
|
6873
6883
|
if (b == null || typeof b == "function") return b;
|
|
6874
|
-
const
|
|
6875
|
-
if (
|
|
6876
|
-
if (typeof
|
|
6884
|
+
const J = (Se) => {
|
|
6885
|
+
if (Se == null || Se === "") return;
|
|
6886
|
+
if (typeof Se == "string" || typeof Se != "object" || Array.isArray(Se)) return Se;
|
|
6877
6887
|
const Me = {};
|
|
6878
|
-
for (const [
|
|
6879
|
-
const bt =
|
|
6880
|
-
bt !== void 0 && (Me[
|
|
6888
|
+
for (const [Be, Ze] of Object.entries(Se)) {
|
|
6889
|
+
const bt = J(Ze);
|
|
6890
|
+
bt !== void 0 && (Me[Be] = bt);
|
|
6881
6891
|
}
|
|
6882
6892
|
return Object.keys(Me).length ? Me : void 0;
|
|
6883
6893
|
};
|
|
6884
|
-
return
|
|
6894
|
+
return J(b);
|
|
6885
6895
|
}, [b]), xe = n ? {
|
|
6886
6896
|
motion: { motionName: "" }
|
|
6887
6897
|
} : {}, Ye = m(() => {
|
|
6888
6898
|
if (typeof _ == "string" && _) {
|
|
6889
|
-
const
|
|
6890
|
-
if (
|
|
6899
|
+
const J = at[_];
|
|
6900
|
+
if (J) return /* @__PURE__ */ v(J, {});
|
|
6891
6901
|
}
|
|
6892
6902
|
return _;
|
|
6893
|
-
}, [_]),
|
|
6903
|
+
}, [_]), Z = m(() => {
|
|
6894
6904
|
if (typeof K == "string" && K) {
|
|
6895
|
-
const
|
|
6896
|
-
if (
|
|
6905
|
+
const J = at[K];
|
|
6906
|
+
if (J) return /* @__PURE__ */ v(J, {});
|
|
6897
6907
|
}
|
|
6898
6908
|
return K;
|
|
6899
|
-
}, [K]),
|
|
6909
|
+
}, [K]), re = m(() => M === "pagination" || M === "scroll" ? null : w, [M, w]), le = Ti(), Y = t || le.replace(/:/g, "-"), se = m(() => {
|
|
6900
6910
|
var Me;
|
|
6901
6911
|
if (!x || typeof x == "function") return "";
|
|
6902
|
-
const
|
|
6903
|
-
if (!
|
|
6904
|
-
const he = [],
|
|
6905
|
-
if (
|
|
6906
|
-
const
|
|
6907
|
-
he.push(`${
|
|
6912
|
+
const J = (Me = x.subMenu) == null ? void 0 : Me.root;
|
|
6913
|
+
if (!J) return "";
|
|
6914
|
+
const he = [], Se = `[data-and-menu-id="${Y}"]`;
|
|
6915
|
+
if (J.item && Object.keys(J.item).length > 0) {
|
|
6916
|
+
const Be = Ut(J.item);
|
|
6917
|
+
he.push(`${Se} .ant-menu-submenu > .ant-menu-submenu-title { ${Be} }`);
|
|
6908
6918
|
}
|
|
6909
|
-
if (
|
|
6910
|
-
const
|
|
6911
|
-
he.push(`${
|
|
6919
|
+
if (J.itemIcon && Object.keys(J.itemIcon).length > 0) {
|
|
6920
|
+
const Be = Ut(J.itemIcon);
|
|
6921
|
+
he.push(`${Se} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-item-icon { ${Be} }`);
|
|
6912
6922
|
}
|
|
6913
|
-
if (
|
|
6914
|
-
const
|
|
6915
|
-
he.push(`${
|
|
6923
|
+
if (J.itemContent && Object.keys(J.itemContent).length > 0) {
|
|
6924
|
+
const Be = Ut(J.itemContent);
|
|
6925
|
+
he.push(`${Se} .ant-menu-submenu > .ant-menu-submenu-title .ant-menu-title-content { ${Be} }`);
|
|
6916
6926
|
}
|
|
6917
|
-
if (
|
|
6918
|
-
const
|
|
6919
|
-
he.push(`${
|
|
6927
|
+
if (J.selected && Object.keys(J.selected).length > 0) {
|
|
6928
|
+
const Be = Ut(J.selected);
|
|
6929
|
+
he.push(`${Se} .ant-menu-submenu-selected > .ant-menu-submenu-title { ${Be} }`);
|
|
6920
6930
|
}
|
|
6921
6931
|
return he.join(`
|
|
6922
6932
|
`);
|
|
@@ -6927,38 +6937,38 @@ const rl = ({
|
|
|
6927
6937
|
...Ve,
|
|
6928
6938
|
...xe,
|
|
6929
6939
|
mode: j,
|
|
6930
|
-
items:
|
|
6940
|
+
items: W,
|
|
6931
6941
|
selectedKeys: te,
|
|
6932
|
-
openKeys:
|
|
6942
|
+
openKeys: me,
|
|
6933
6943
|
defaultOpenKeys: l,
|
|
6934
|
-
onClick:
|
|
6935
|
-
onSelect:
|
|
6936
|
-
onOpenChange:
|
|
6937
|
-
onDeselect:
|
|
6944
|
+
onClick: Q,
|
|
6945
|
+
onSelect: ie,
|
|
6946
|
+
onOpenChange: we,
|
|
6947
|
+
onDeselect: Ee,
|
|
6938
6948
|
styles: x,
|
|
6939
|
-
classNames:
|
|
6949
|
+
classNames: Oe,
|
|
6940
6950
|
expandIcon: A,
|
|
6941
|
-
overflowedIndicator:
|
|
6951
|
+
overflowedIndicator: re,
|
|
6942
6952
|
disabledOverflow: M !== "default"
|
|
6943
6953
|
}
|
|
6944
|
-
),
|
|
6954
|
+
), X = () => M === "pagination" ? /* @__PURE__ */ v(
|
|
6945
6955
|
hs,
|
|
6946
6956
|
{
|
|
6947
6957
|
mode: j || "horizontal",
|
|
6948
6958
|
arrowStyle: E,
|
|
6949
6959
|
arrowIconPrev: Ye,
|
|
6950
|
-
arrowIconNext:
|
|
6960
|
+
arrowIconNext: Z,
|
|
6951
6961
|
children: U
|
|
6952
6962
|
}
|
|
6953
6963
|
) : M === "scroll" ? /* @__PURE__ */ v(gs, { mode: j || "horizontal", children: U }) : U, be = m(() => {
|
|
6954
|
-
const
|
|
6955
|
-
return n && (
|
|
6956
|
-
}, [n,
|
|
6964
|
+
const J = {};
|
|
6965
|
+
return n && (J.motion = !1), Le && (J.components = { Menu: Le }), Object.keys(J).length > 0 ? J : void 0;
|
|
6966
|
+
}, [n, Le]);
|
|
6957
6967
|
return (() => {
|
|
6958
|
-
const
|
|
6968
|
+
const J = X(), he = se ? /* @__PURE__ */ ve("div", { "data-and-menu-id": Y, style: { display: "contents" }, children: [
|
|
6959
6969
|
/* @__PURE__ */ v("style", { children: se }),
|
|
6960
|
-
|
|
6961
|
-
] }) :
|
|
6970
|
+
J
|
|
6971
|
+
] }) : J;
|
|
6962
6972
|
return be ? /* @__PURE__ */ v(Ue, { theme: be, children: he }) : he;
|
|
6963
6973
|
})();
|
|
6964
6974
|
}, al = ({
|
|
@@ -7174,13 +7184,13 @@ const rl = ({
|
|
|
7174
7184
|
}, [g, n]), _ = m(() => {
|
|
7175
7185
|
if (E)
|
|
7176
7186
|
return !p || !u ? E : (B, $) => {
|
|
7177
|
-
const
|
|
7187
|
+
const H = typeof $ == "number" ? $ : typeof (B == null ? void 0 : B.index) == "number" ? B.index : Number((B == null ? void 0 : B.index) ?? 0);
|
|
7178
7188
|
return /* @__PURE__ */ v(
|
|
7179
7189
|
Ge.Provider,
|
|
7180
7190
|
{
|
|
7181
7191
|
value: {
|
|
7182
7192
|
dataSet: p,
|
|
7183
|
-
index:
|
|
7193
|
+
index: H,
|
|
7184
7194
|
parentIndex: l == null ? void 0 : l.index,
|
|
7185
7195
|
parentContext: l ?? void 0,
|
|
7186
7196
|
sessionId: d,
|
|
@@ -7389,46 +7399,46 @@ const rl = ({
|
|
|
7389
7399
|
children: A,
|
|
7390
7400
|
...w
|
|
7391
7401
|
}) => {
|
|
7392
|
-
const D = R((
|
|
7402
|
+
const D = R((G) => G.addCommand), T = R((G) => G.getDataSet), j = R((G) => G.setDataSet), k = m(
|
|
7393
7403
|
() => ye(e, i),
|
|
7394
7404
|
[e, i]
|
|
7395
7405
|
), C = N === "default" ? "medium" : N, M = m(() => {
|
|
7396
|
-
const
|
|
7406
|
+
const G = Sn(u, {});
|
|
7397
7407
|
return Object.fromEntries(
|
|
7398
|
-
Object.entries(
|
|
7408
|
+
Object.entries(G).map(([oe, pe]) => [
|
|
7399
7409
|
oe,
|
|
7400
7410
|
ws(pe)
|
|
7401
7411
|
])
|
|
7402
7412
|
);
|
|
7403
7413
|
}, [u]), E = m(() => {
|
|
7404
|
-
const
|
|
7405
|
-
return
|
|
7414
|
+
const G = xs(y);
|
|
7415
|
+
return G.length > 0 ? G : void 0;
|
|
7406
7416
|
}, [y]), K = m(() => {
|
|
7407
7417
|
if (k && r) {
|
|
7408
|
-
const
|
|
7409
|
-
if (typeof
|
|
7418
|
+
const G = T(k, `${r}.activeTabKey`);
|
|
7419
|
+
if (typeof G == "string") return G;
|
|
7410
7420
|
}
|
|
7411
|
-
}, [k, r, T]) ?? g, L = z((
|
|
7421
|
+
}, [k, r, T]) ?? g, L = z((G) => {
|
|
7412
7422
|
if (p) {
|
|
7413
|
-
p(
|
|
7423
|
+
p(G);
|
|
7414
7424
|
return;
|
|
7415
7425
|
}
|
|
7416
|
-
k && r && j(k, `${r}.activeTabKey`,
|
|
7417
|
-
}, [p, k, r, j, S, e, D]), { titleSlot: B, extraSlot: $, coverSlot:
|
|
7418
|
-
let
|
|
7419
|
-
const
|
|
7420
|
-
let
|
|
7421
|
-
return o && (
|
|
7422
|
-
if (!Ie.isValidElement(
|
|
7423
|
-
|
|
7426
|
+
k && r && j(k, `${r}.activeTabKey`, G), S && e && D(e, ae(S, { key: G }));
|
|
7427
|
+
}, [p, k, r, j, S, e, D]), { titleSlot: B, extraSlot: $, coverSlot: H, actionsSlot: V, otherChildren: O, actionsFromChildren: F } = m(() => {
|
|
7428
|
+
let G = null, oe = null, pe = null, ne = [];
|
|
7429
|
+
const ue = [];
|
|
7430
|
+
let de = !1;
|
|
7431
|
+
return o && (G = o), a && (oe = a), s && (pe = s), f && (ne = f), Ie.Children.forEach(A, (fe) => {
|
|
7432
|
+
if (!Ie.isValidElement(fe)) {
|
|
7433
|
+
ue.push(fe);
|
|
7424
7434
|
return;
|
|
7425
7435
|
}
|
|
7426
|
-
const ee =
|
|
7427
|
-
|
|
7428
|
-
}), { titleSlot:
|
|
7436
|
+
const ee = fe.props, W = ee["data-slot-type"];
|
|
7437
|
+
W === "title" && !o ? G = fe : W === "extra" && !a ? oe = fe : W === "cover" && !s ? pe = fe : W === "actions" && !f ? (ne = [fe], de = !0) : W === "body" && ee.children ? ue.push(ee.children) : ue.push(fe);
|
|
7438
|
+
}), { titleSlot: G, extraSlot: oe, coverSlot: pe, actionsSlot: ne, otherChildren: ue, actionsFromChildren: de };
|
|
7429
7439
|
}, [A, o, a, s, f]), P = m(() => {
|
|
7430
|
-
const
|
|
7431
|
-
return F ? { actionsLiMargin: "0px", ...
|
|
7440
|
+
const G = Sn(d, {});
|
|
7441
|
+
return F ? { actionsLiMargin: "0px", ...G } : G;
|
|
7432
7442
|
}, [d, F]), q = /* @__PURE__ */ v(
|
|
7433
7443
|
un,
|
|
7434
7444
|
{
|
|
@@ -7436,7 +7446,7 @@ const rl = ({
|
|
|
7436
7446
|
size: C,
|
|
7437
7447
|
title: B,
|
|
7438
7448
|
extra: $,
|
|
7439
|
-
cover:
|
|
7449
|
+
cover: H,
|
|
7440
7450
|
tabBarExtraContent: c,
|
|
7441
7451
|
actions: V.length > 0 ? V : void 0,
|
|
7442
7452
|
tabList: E,
|
|
@@ -7613,7 +7623,7 @@ const rl = ({
|
|
|
7613
7623
|
children: [
|
|
7614
7624
|
h,
|
|
7615
7625
|
n && !h && !S && /* @__PURE__ */ v("div", { style: { padding: "4px 8px", border: "1px dashed #d9d9d9", color: "#ccc", fontSize: 12 }, children: "请配置触发器" }),
|
|
7616
|
-
!h && !n && o && /* @__PURE__ */ v(dt, { children: /* @__PURE__ */ ve(
|
|
7626
|
+
!h && !n && o && /* @__PURE__ */ v(dt, { children: /* @__PURE__ */ ve(Re, { children: [
|
|
7617
7627
|
o,
|
|
7618
7628
|
/* @__PURE__ */ v(pr, {})
|
|
7619
7629
|
] }) })
|
|
@@ -7974,7 +7984,7 @@ const rl = ({
|
|
|
7974
7984
|
un.Meta,
|
|
7975
7985
|
{
|
|
7976
7986
|
title: u.name,
|
|
7977
|
-
description: /* @__PURE__ */ ve(
|
|
7987
|
+
description: /* @__PURE__ */ ve(Re, { direction: "vertical", size: 4, children: [
|
|
7978
7988
|
u.price !== void 0 && /* @__PURE__ */ ve("div", { children: [
|
|
7979
7989
|
/* @__PURE__ */ ve("span", { style: { color: "#f5222d", fontSize: 18, fontWeight: "bold" }, children: [
|
|
7980
7990
|
"¥",
|
|
@@ -7985,7 +7995,7 @@ const rl = ({
|
|
|
7985
7995
|
u.originalPrice
|
|
7986
7996
|
] })
|
|
7987
7997
|
] }),
|
|
7988
|
-
u.tags && u.tags.length > 0 && /* @__PURE__ */ v(
|
|
7998
|
+
u.tags && u.tags.length > 0 && /* @__PURE__ */ v(Re, { size: 4, wrap: !0, children: u.tags.map((d, l) => /* @__PURE__ */ v(cr, { color: "blue", children: d }, l)) })
|
|
7989
7999
|
] })
|
|
7990
8000
|
}
|
|
7991
8001
|
)
|
|
@@ -8047,8 +8057,8 @@ const rl = ({
|
|
|
8047
8057
|
if (Number.isFinite($))
|
|
8048
8058
|
B = $;
|
|
8049
8059
|
else {
|
|
8050
|
-
const
|
|
8051
|
-
B = Number.isFinite(
|
|
8060
|
+
const H = Number(h == null ? void 0 : h.parentIndex);
|
|
8061
|
+
B = Number.isFinite(H) ? H : null;
|
|
8052
8062
|
}
|
|
8053
8063
|
}
|
|
8054
8064
|
return {
|
|
@@ -8077,10 +8087,10 @@ const rl = ({
|
|
|
8077
8087
|
if (!n || !u) return { componentName: "", props: {} };
|
|
8078
8088
|
const K = n.split(".")[1], L = K ? u[K] || {} : u;
|
|
8079
8089
|
if (typeof L == "object" && L !== null) {
|
|
8080
|
-
const { componentName: B, props: $, ...
|
|
8090
|
+
const { componentName: B, props: $, ...H } = L;
|
|
8081
8091
|
return {
|
|
8082
8092
|
componentName: B || "",
|
|
8083
|
-
props: $ ||
|
|
8093
|
+
props: $ || H || {}
|
|
8084
8094
|
};
|
|
8085
8095
|
}
|
|
8086
8096
|
return { componentName: "", props: {} };
|
|
@@ -8094,9 +8104,9 @@ const rl = ({
|
|
|
8094
8104
|
...e,
|
|
8095
8105
|
sessionId: i
|
|
8096
8106
|
}), [d.props, e, i, g]), A = m(() => {
|
|
8097
|
-
var
|
|
8107
|
+
var H, V;
|
|
8098
8108
|
if (!l) return null;
|
|
8099
|
-
const _ = !!x && x.trim().startsWith("["), K = (
|
|
8109
|
+
const _ = !!x && x.trim().startsWith("["), K = (H = d.props) == null ? void 0 : H.index, L = _ ? void 0 : typeof K == "number" && Number.isFinite(K) ? K : p !== null ? p : void 0, B = (V = d.props) == null ? void 0 : V.parentIndex;
|
|
8100
8110
|
let $;
|
|
8101
8111
|
if (typeof B == "number" && Number.isFinite(B))
|
|
8102
8112
|
$ = B;
|
|
@@ -8286,7 +8296,7 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8286
8296
|
className: h,
|
|
8287
8297
|
style: S
|
|
8288
8298
|
}) => {
|
|
8289
|
-
|
|
8299
|
+
$e(() => {
|
|
8290
8300
|
Cs();
|
|
8291
8301
|
}, []);
|
|
8292
8302
|
const p = R((Y) => Y.setDataSet), u = m(
|
|
@@ -8320,57 +8330,57 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8320
8330
|
() => Math.max(1, a || 1)
|
|
8321
8331
|
), T = ze(w);
|
|
8322
8332
|
T.current = w;
|
|
8323
|
-
const [j, k] = Ce(null), [C, M] = Ce(!!x), [E, _] = Ce("all"), [K, L] = Ce("width"), [B, $] = Ce(1),
|
|
8333
|
+
const [j, k] = Ce(null), [C, M] = Ce(!!x), [E, _] = Ce("all"), [K, L] = Ce("width"), [B, $] = Ce(1), H = ze(null), V = ze(null), O = ze({}), F = ze(!1), P = ze(null), [q, G] = Ce(600), [oe, pe] = Ce(800), ne = ze(0), ue = m(() => {
|
|
8324
8334
|
var U;
|
|
8325
8335
|
const Y = (U = ot().pdfCMapUrl) == null ? void 0 : U.trim();
|
|
8326
8336
|
return Y ? { cMapUrl: Y.endsWith("/") ? Y : `${Y}/`, cMapPacked: !0 } : {};
|
|
8327
|
-
}, []),
|
|
8328
|
-
if (!(!u || !
|
|
8329
|
-
return Y.getDataSet(u, `${
|
|
8337
|
+
}, []), de = (s || "").trim(), fe = R((Y) => {
|
|
8338
|
+
if (!(!u || !de))
|
|
8339
|
+
return Y.getDataSet(u, `${de}.targetPage`);
|
|
8330
8340
|
});
|
|
8331
|
-
|
|
8341
|
+
$e(() => {
|
|
8332
8342
|
const Y = V.current;
|
|
8333
8343
|
if (!Y) return;
|
|
8334
8344
|
const se = new ResizeObserver(() => {
|
|
8335
8345
|
const be = Y.clientWidth, ce = Y.clientHeight;
|
|
8336
|
-
be > 0 &&
|
|
8346
|
+
be > 0 && G(be), ce > 0 && pe(ce);
|
|
8337
8347
|
});
|
|
8338
8348
|
se.observe(Y);
|
|
8339
|
-
const U = Y.clientWidth,
|
|
8340
|
-
return U > 0 &&
|
|
8349
|
+
const U = Y.clientWidth, X = Y.clientHeight;
|
|
8350
|
+
return U > 0 && G(U), X > 0 && pe(X), () => se.disconnect();
|
|
8341
8351
|
}, [x]);
|
|
8342
|
-
const ee = m(() => Math.max(240, q - 16), [q]),
|
|
8352
|
+
const ee = m(() => Math.max(240, q - 16), [q]), W = m(
|
|
8343
8353
|
() => Math.max(320, oe - 16),
|
|
8344
8354
|
[oe]
|
|
8345
8355
|
), te = m(
|
|
8346
8356
|
() => Math.max(120, ee * B),
|
|
8347
8357
|
[ee, B]
|
|
8348
|
-
),
|
|
8349
|
-
() => Math.max(180,
|
|
8350
|
-
[
|
|
8351
|
-
),
|
|
8358
|
+
), me = m(
|
|
8359
|
+
() => Math.max(180, W * B),
|
|
8360
|
+
[W, B]
|
|
8361
|
+
), Q = m(() => E === "all" ? Array.from({ length: N }, (Y, se) => se + 1) : [w], [E, N, w]), ie = z(
|
|
8352
8362
|
(Y, se) => {
|
|
8353
|
-
!u || !
|
|
8363
|
+
!u || !de || (p(u, `${de}.currentPage`, Y), se > 0 && p(u, `${de}.totalPages`, se));
|
|
8354
8364
|
},
|
|
8355
|
-
[u,
|
|
8365
|
+
[u, de, p]
|
|
8356
8366
|
);
|
|
8357
|
-
|
|
8358
|
-
N > 0 &&
|
|
8359
|
-
}, [w, N,
|
|
8360
|
-
const
|
|
8367
|
+
$e(() => {
|
|
8368
|
+
N > 0 && ie(w, N);
|
|
8369
|
+
}, [w, N, ie]);
|
|
8370
|
+
const we = z(
|
|
8361
8371
|
(Y, se = "auto") => {
|
|
8362
8372
|
const U = N > 0 ? Math.max(1, Math.min(Math.floor(Y), N)) : Math.max(1, Math.floor(Y));
|
|
8363
8373
|
if (D(U), E === "all") {
|
|
8364
|
-
const
|
|
8365
|
-
|
|
8374
|
+
const X = O.current[U];
|
|
8375
|
+
X && X.scrollIntoView({ block: "start", behavior: se });
|
|
8366
8376
|
}
|
|
8367
8377
|
},
|
|
8368
8378
|
[N, E]
|
|
8369
|
-
),
|
|
8370
|
-
|
|
8371
|
-
const Y =
|
|
8372
|
-
typeof Y != "number" || !Number.isFinite(Y) || (
|
|
8373
|
-
}, [
|
|
8379
|
+
), Ee = ze(we);
|
|
8380
|
+
Ee.current = we, $e(() => {
|
|
8381
|
+
const Y = fe;
|
|
8382
|
+
typeof Y != "number" || !Number.isFinite(Y) || (we(Y, "auto"), u && de && p(u, `${de}.targetPage`, void 0));
|
|
8383
|
+
}, [fe, we, u, de, p]), $e(() => {
|
|
8374
8384
|
const Y = Math.max(1, a ?? 1);
|
|
8375
8385
|
D(Y);
|
|
8376
8386
|
}, [a]);
|
|
@@ -8381,28 +8391,28 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8381
8391
|
A(Y), D(U), F.current = !0, P.current = U;
|
|
8382
8392
|
},
|
|
8383
8393
|
[]
|
|
8384
|
-
),
|
|
8394
|
+
), Le = z((Y) => {
|
|
8385
8395
|
k(Y), M(!1), F.current = !1, P.current = null;
|
|
8386
8396
|
}, []);
|
|
8387
|
-
|
|
8397
|
+
$e(() => {
|
|
8388
8398
|
M(!!x), k(null), $(1), A(0), F.current = !!x, P.current = null, O.current = {};
|
|
8389
|
-
}, [x]),
|
|
8399
|
+
}, [x]), $e(() => {
|
|
8390
8400
|
const Y = P.current;
|
|
8391
8401
|
if (Y == null || C || N <= 0 || E !== "all") return;
|
|
8392
8402
|
let se = !1, U = 0;
|
|
8393
|
-
const
|
|
8403
|
+
const X = 120, be = () => {
|
|
8394
8404
|
if (se) return;
|
|
8395
8405
|
U++;
|
|
8396
8406
|
const ce = Math.max(1, Math.min(Math.floor(Y), N));
|
|
8397
|
-
let
|
|
8407
|
+
let J = !0;
|
|
8398
8408
|
for (let he = 1; he <= ce; he++) {
|
|
8399
|
-
const
|
|
8400
|
-
if (!
|
|
8401
|
-
|
|
8409
|
+
const Se = O.current[he];
|
|
8410
|
+
if (!Se || !Se.isConnected || Se.clientHeight <= 50) {
|
|
8411
|
+
J = !1;
|
|
8402
8412
|
break;
|
|
8403
8413
|
}
|
|
8404
8414
|
}
|
|
8405
|
-
if (
|
|
8415
|
+
if (J) {
|
|
8406
8416
|
requestAnimationFrame(() => {
|
|
8407
8417
|
if (se) return;
|
|
8408
8418
|
const he = O.current[ce];
|
|
@@ -8412,7 +8422,7 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8412
8422
|
});
|
|
8413
8423
|
return;
|
|
8414
8424
|
}
|
|
8415
|
-
if (U >=
|
|
8425
|
+
if (U >= X) {
|
|
8416
8426
|
P.current = null, F.current = !1;
|
|
8417
8427
|
return;
|
|
8418
8428
|
}
|
|
@@ -8422,7 +8432,7 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8422
8432
|
se = !0;
|
|
8423
8433
|
};
|
|
8424
8434
|
}, [C, N, E]);
|
|
8425
|
-
const
|
|
8435
|
+
const Oe = z((Y) => {
|
|
8426
8436
|
$((se) => {
|
|
8427
8437
|
const U = Number((se + Y).toFixed(2));
|
|
8428
8438
|
return Math.max(Ns, Math.min(Ts, U));
|
|
@@ -8440,27 +8450,27 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8440
8450
|
if (!x) return;
|
|
8441
8451
|
const Y = document.createElement("a");
|
|
8442
8452
|
Y.href = x, Y.download = "", Y.rel = "noopener noreferrer", Y.target = "_blank", document.body.appendChild(Y), Y.click(), Y.remove();
|
|
8443
|
-
}, [x]),
|
|
8453
|
+
}, [x]), Z = z(() => {
|
|
8444
8454
|
var se;
|
|
8445
|
-
const Y =
|
|
8455
|
+
const Y = H.current;
|
|
8446
8456
|
Y && ((se = Y.requestFullscreen) == null || se.call(Y));
|
|
8447
|
-
}, []),
|
|
8457
|
+
}, []), re = z(() => {
|
|
8448
8458
|
document.fullscreenElement && document.exitFullscreen();
|
|
8449
8459
|
}, []), le = z(() => {
|
|
8450
8460
|
if (C || E !== "all" || N <= 0 || F.current) return;
|
|
8451
8461
|
const Y = V.current;
|
|
8452
8462
|
if (!Y) return;
|
|
8453
8463
|
const se = Y.scrollTop + Y.clientHeight * 0.35;
|
|
8454
|
-
let U = w,
|
|
8464
|
+
let U = w, X = Number.POSITIVE_INFINITY;
|
|
8455
8465
|
for (let be = 1; be <= N; be++) {
|
|
8456
8466
|
const ce = O.current[be];
|
|
8457
8467
|
if (!ce) continue;
|
|
8458
|
-
const
|
|
8459
|
-
|
|
8468
|
+
const J = Math.abs(ce.offsetTop - se);
|
|
8469
|
+
J < X && (X = J, U = be);
|
|
8460
8470
|
}
|
|
8461
8471
|
U !== w && D(U);
|
|
8462
8472
|
}, [C, E, N, w]);
|
|
8463
|
-
return
|
|
8473
|
+
return $e(() => {
|
|
8464
8474
|
if (!l || typeof l != "object") return;
|
|
8465
8475
|
const Y = l._pdfCmdNonce, se = l.pdfCommand, U = l.pdfCommandArg;
|
|
8466
8476
|
if (!(Y == null || Y === ne.current || !se)) {
|
|
@@ -8472,13 +8482,13 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8472
8482
|
Ye();
|
|
8473
8483
|
break;
|
|
8474
8484
|
case "enterFullscreen":
|
|
8475
|
-
|
|
8485
|
+
Z();
|
|
8476
8486
|
break;
|
|
8477
8487
|
case "exitFullscreen":
|
|
8478
|
-
|
|
8488
|
+
re();
|
|
8479
8489
|
break;
|
|
8480
8490
|
case "goToPage":
|
|
8481
|
-
typeof U == "number" &&
|
|
8491
|
+
typeof U == "number" && we(U, "smooth");
|
|
8482
8492
|
break;
|
|
8483
8493
|
case "fitWidth":
|
|
8484
8494
|
L("width"), $(1);
|
|
@@ -8487,10 +8497,10 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8487
8497
|
L("height"), $(1);
|
|
8488
8498
|
break;
|
|
8489
8499
|
case "zoomIn":
|
|
8490
|
-
|
|
8500
|
+
Oe(nr);
|
|
8491
8501
|
break;
|
|
8492
8502
|
case "zoomOut":
|
|
8493
|
-
|
|
8503
|
+
Oe(-nr);
|
|
8494
8504
|
break;
|
|
8495
8505
|
case "previewSingle":
|
|
8496
8506
|
_("single");
|
|
@@ -8500,7 +8510,7 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8500
8510
|
break;
|
|
8501
8511
|
}
|
|
8502
8512
|
if (e && t) {
|
|
8503
|
-
const
|
|
8513
|
+
const X = R.getState().getProps(e, t), be = X && typeof X == "object" && !Array.isArray(X) ? X : {};
|
|
8504
8514
|
R.getState().setProps(e, t, {
|
|
8505
8515
|
...be,
|
|
8506
8516
|
pdfCommand: void 0,
|
|
@@ -8514,14 +8524,14 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8514
8524
|
t,
|
|
8515
8525
|
xe,
|
|
8516
8526
|
Ye,
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8520
|
-
|
|
8527
|
+
Z,
|
|
8528
|
+
re,
|
|
8529
|
+
we,
|
|
8530
|
+
Oe
|
|
8521
8531
|
]), /* @__PURE__ */ v(
|
|
8522
8532
|
"div",
|
|
8523
8533
|
{
|
|
8524
|
-
ref:
|
|
8534
|
+
ref: H,
|
|
8525
8535
|
className: h,
|
|
8526
8536
|
style: {
|
|
8527
8537
|
display: "flex",
|
|
@@ -8572,10 +8582,10 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8572
8582
|
{
|
|
8573
8583
|
file: x,
|
|
8574
8584
|
onLoadSuccess: Ve,
|
|
8575
|
-
onLoadError:
|
|
8585
|
+
onLoadError: Le,
|
|
8576
8586
|
loading: null,
|
|
8577
|
-
options:
|
|
8578
|
-
children:
|
|
8587
|
+
options: ue,
|
|
8588
|
+
children: Q.map((Y) => /* @__PURE__ */ v(
|
|
8579
8589
|
"div",
|
|
8580
8590
|
{
|
|
8581
8591
|
ref: (se) => {
|
|
@@ -8592,7 +8602,7 @@ const Ns = 0.5, Ts = 3, nr = 0.1, Ml = ({
|
|
|
8592
8602
|
{
|
|
8593
8603
|
pageNumber: Y,
|
|
8594
8604
|
width: K === "width" ? te : void 0,
|
|
8595
|
-
height: K === "height" ?
|
|
8605
|
+
height: K === "height" ? me : void 0,
|
|
8596
8606
|
renderTextLayer: !1,
|
|
8597
8607
|
renderAnnotationLayer: !1
|
|
8598
8608
|
}
|
|
@@ -8722,29 +8732,29 @@ function yt(t, e) {
|
|
|
8722
8732
|
events: B,
|
|
8723
8733
|
// 其余配置直接透传
|
|
8724
8734
|
...$
|
|
8725
|
-
} = a,
|
|
8735
|
+
} = a, H = ze(null), V = R((we) => we.getDataSet), O = R((we) => we.addCommand), F = m(() => {
|
|
8726
8736
|
if (h && S) {
|
|
8727
|
-
const
|
|
8728
|
-
if (
|
|
8737
|
+
const Ee = V(h, S);
|
|
8738
|
+
if (Ee !== void 0) return Ee;
|
|
8729
8739
|
}
|
|
8730
|
-
const
|
|
8731
|
-
return
|
|
8732
|
-
}, [p, h, S, V, f]), P = (
|
|
8733
|
-
var
|
|
8734
|
-
if (
|
|
8740
|
+
const we = Fe(p);
|
|
8741
|
+
return we !== void 0 ? we : f ? r : [];
|
|
8742
|
+
}, [p, h, S, V, f]), P = (we) => {
|
|
8743
|
+
var Ee;
|
|
8744
|
+
if (H.current = we, !f && c) {
|
|
8735
8745
|
const Ve = Fe(B);
|
|
8736
|
-
Ve && typeof Ve == "object" && Object.entries(Ve).forEach(([
|
|
8737
|
-
typeof
|
|
8746
|
+
Ve && typeof Ve == "object" && Object.entries(Ve).forEach(([Le, Oe]) => {
|
|
8747
|
+
typeof Oe == "string" && we.on(Le, (xe) => {
|
|
8738
8748
|
O(c, {
|
|
8739
|
-
actionName:
|
|
8749
|
+
actionName: Oe,
|
|
8740
8750
|
arg: xe,
|
|
8741
8751
|
timestamp: Date.now()
|
|
8742
8752
|
});
|
|
8743
8753
|
});
|
|
8744
8754
|
});
|
|
8745
8755
|
}
|
|
8746
|
-
(
|
|
8747
|
-
}, q = Fe(u) || {},
|
|
8756
|
+
(Ee = $.onReady) == null || Ee.call($, we);
|
|
8757
|
+
}, q = Fe(u) || {}, G = {
|
|
8748
8758
|
data: F,
|
|
8749
8759
|
// 优先使用 common 中的配置,没配置则使用默认值
|
|
8750
8760
|
height: q.height ?? i,
|
|
@@ -8756,29 +8766,29 @@ function yt(t, e) {
|
|
|
8756
8766
|
onReady: P,
|
|
8757
8767
|
...$
|
|
8758
8768
|
}, oe = Fe(N);
|
|
8759
|
-
oe !== void 0 && (
|
|
8769
|
+
oe !== void 0 && (G.title = oe);
|
|
8760
8770
|
const pe = Fe(A);
|
|
8761
|
-
pe !== void 0 && (
|
|
8771
|
+
pe !== void 0 && (G.legend = pe);
|
|
8762
8772
|
const ne = Fe(w);
|
|
8763
|
-
ne !== void 0 && (
|
|
8764
|
-
const
|
|
8765
|
-
|
|
8766
|
-
const
|
|
8767
|
-
|
|
8768
|
-
const
|
|
8769
|
-
|
|
8773
|
+
ne !== void 0 && (G.label = ne);
|
|
8774
|
+
const ue = Fe(D);
|
|
8775
|
+
ue !== void 0 && (G.tooltip = ue);
|
|
8776
|
+
const de = Fe(j);
|
|
8777
|
+
de !== void 0 && (G.scale = de);
|
|
8778
|
+
const fe = Fe(k);
|
|
8779
|
+
fe !== void 0 && (G.interaction = fe);
|
|
8770
8780
|
const ee = Fe(C);
|
|
8771
|
-
ee !== void 0 && (
|
|
8772
|
-
const
|
|
8773
|
-
|
|
8781
|
+
ee !== void 0 && (G.annotations = ee);
|
|
8782
|
+
const W = Fe(M);
|
|
8783
|
+
W !== void 0 && (G.axis = W);
|
|
8774
8784
|
const te = Fe(E);
|
|
8775
|
-
te !== void 0 && (
|
|
8776
|
-
const
|
|
8777
|
-
|
|
8778
|
-
const
|
|
8779
|
-
|
|
8780
|
-
const
|
|
8781
|
-
return
|
|
8785
|
+
te !== void 0 && (G.scrollbar = te);
|
|
8786
|
+
const me = Fe(_);
|
|
8787
|
+
me !== void 0 && (G.slider = me);
|
|
8788
|
+
const Q = Fe(K);
|
|
8789
|
+
Q !== void 0 && (G.theme = Q);
|
|
8790
|
+
const ie = Fe(L);
|
|
8791
|
+
return ie !== void 0 && (G.state = ie), /* @__PURE__ */ v(t, { ...G });
|
|
8782
8792
|
};
|
|
8783
8793
|
return o.displayName = `withBaseChart(${n})`, o;
|
|
8784
8794
|
}
|
|
@@ -9099,7 +9109,7 @@ export {
|
|
|
9099
9109
|
ic as mountReactComponent,
|
|
9100
9110
|
ht as parseAction,
|
|
9101
9111
|
Mt as parseArrayNotation,
|
|
9102
|
-
|
|
9112
|
+
je as parseChangeAction,
|
|
9103
9113
|
br as parseClickAction,
|
|
9104
9114
|
Nt as parseNestedPath,
|
|
9105
9115
|
mc as parseQueryAction,
|