@unicom-cloud/ui 0.8.50 → 0.8.52
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/Affix.js +1 -1
- package/Alert.js +6 -6
- package/AutoComplete.js +2 -2
- package/Avatar.js +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +1 -1
- package/Breadcrumb.js +3 -3
- package/Button.js +2 -2
- package/Calendar.js +5 -5
- package/Card.js +1 -1
- package/Carousel.js +5 -5
- package/ColorPicker.js +3 -3
- package/Comment.js +1 -1
- package/Copy.js +4 -4
- package/DatePicker.js +7 -7
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +2 -2
- package/Form.js +7 -7
- package/Grid.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/InputNumber.js +5 -5
- package/LICENSE +21 -0
- package/Layout.js +1 -1
- package/Link.js +2 -2
- package/List.js +1 -1
- package/Mentions.js +1 -1
- package/Message.js +1 -1
- package/Notice.js +8 -8
- package/Notification.js +1 -1
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +3 -3
- package/Popconfirm.js +2 -2
- package/Popover.js +1 -1
- package/Progress.js +4 -4
- package/Rate.js +6 -6
- package/ResizeBox.js +7 -7
- package/Result.js +5 -5
- package/SelectView.js +5 -5
- package/Skeleton.js +1 -1
- package/Slider.js +3 -3
- package/Space.js +1 -1
- package/SpeechSynthesis.js +4 -4
- package/Spin.js +2 -2
- package/Statistic.js +2 -2
- package/Steps.js +3 -3
- package/Switch.js +2 -2
- package/Table.js +876 -872
- package/Tag.js +3 -3
- package/TimePicker.js +2 -2
- package/Tooltip.js +2 -2
- package/Transfer.js +7 -7
- package/Trigger.js +1 -1
- package/Typography.js +10 -10
- package/chunk/4XXtB4ZV.js +2 -2
- package/chunk/5PpvDpEt.js +3 -3
- package/chunk/9AJ-uN8F.js +1 -1
- package/chunk/B9nYZhXo.js +1 -1
- package/chunk/BHWpeAbb.js +1 -1
- package/chunk/BXZYc88i.js +16 -16
- package/chunk/C61BEbHK.js +2 -2
- package/chunk/CQvJK4kb.js +2 -2
- package/chunk/CfqAfcA3.js +7 -7
- package/chunk/CkIWpIl6.js +1 -1
- package/chunk/Cku5-xbe.js +2 -2
- package/chunk/CoevJNNj.js +3 -3
- package/chunk/Ct7mcZuW.js +3 -3
- package/chunk/Cw63stMm.js +6 -6
- package/chunk/DCe3olyi.js +2 -2
- package/chunk/DG5zSZDd.js +4 -4
- package/chunk/DMeJAY1S.js +6 -6
- package/chunk/DUX5Hw8l.js +6 -6
- package/chunk/DWGwYNvC.js +2 -2
- package/chunk/DXMtLuTP.js +4 -4
- package/chunk/DfvdYCUz.js +1 -1
- package/chunk/I0bfWb5y.js +10 -10
- package/chunk/dhljdm11.js +2 -2
- package/chunk/m3_n9fBe.js +16 -16
- package/chunk/n58kSv9T.js +6 -6
- package/chunk/tkU8zIK4.js +2 -2
- package/chunk/z7sBNzI4.js +10 -10
- package/hooks/useCopyToClipboard.js +1 -1
- package/hooks/useFullscreen.js +1 -1
- package/hooks/useTween.js +1 -1
- package/index.js +1 -1
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/package.json +5 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +1 -1
- package/types/form/interface.d.ts +2 -2
- package/types/index.d.ts +3 -3
- package/types/select/interface.d.ts +1 -1
- package/types/utils/CSSTransition.d.ts +1 -1
- package/types/utils/className.d.ts +1 -1
- package/types/utils/copy.d.ts +1 -1
- package/types/utils/saveAs.d.ts +1 -1
- package/types/utils/scrollIntoView.d.ts +1 -1
- package/types/virtual-list/VirtualList.d.ts +1 -1
- package/utils/className.js +2 -2
- package/utils/copy.js +2 -2
- package/utils/saveAs.js +2 -2
package/Table.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { Tween as Ln, quintInOut as On } from "@
|
|
1
|
+
import { jsx as u, jsxs as de, Fragment as xt } from "react/jsx-runtime";
|
|
2
|
+
import { Tween as Ln, quintInOut as On } from "@unicom-cloud/utils/tween";
|
|
3
3
|
import Bn from "lodash/debounce";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import se from "lodash/isArray";
|
|
5
|
+
import Oe from "lodash/isNumber";
|
|
6
|
+
import q from "lodash/isPlainObject";
|
|
7
7
|
import Kn from "lodash/throttle";
|
|
8
|
-
import
|
|
8
|
+
import _e, { useRef as me, useEffect as nt, useMemo as le, useCallback as tt, useState as Ne, useContext as Be, forwardRef as At, createElement as ot, createContext as Dn, useImperativeHandle as Hn } from "react";
|
|
9
9
|
import { a as Ge } from "./chunk/z7sBNzI4.js";
|
|
10
|
-
import
|
|
10
|
+
import Mn from "./hooks/useIsomorphicLayoutEffect.js";
|
|
11
11
|
import Zt from "./hooks/useMergeProps.js";
|
|
12
|
-
import
|
|
12
|
+
import _t from "./hooks/useUpdateEffect.js";
|
|
13
13
|
import { P as en } from "./chunk/DXMtLuTP.js";
|
|
14
|
-
import
|
|
15
|
-
import Z from "@
|
|
14
|
+
import Wn from "./Spin.js";
|
|
15
|
+
import Z from "@unicom-cloud/utils/class-name";
|
|
16
16
|
import { on as ht, off as yt } from "./utils/dom.js";
|
|
17
17
|
import zn, { pickDataAttributes as Un } from "./utils/pick.js";
|
|
18
18
|
import Vn from "lodash/merge";
|
|
@@ -20,42 +20,42 @@ import jn from "lodash/isNull";
|
|
|
20
20
|
import je from "lodash/isString";
|
|
21
21
|
import Yn from "lodash/isUndefined";
|
|
22
22
|
import { V as qn } from "./chunk/CiEln_Q1.js";
|
|
23
|
-
import Gn from "@
|
|
24
|
-
import Xn from "@
|
|
23
|
+
import Gn from "@unicom-cloud/icons/IconUiMinus";
|
|
24
|
+
import Xn from "@unicom-cloud/icons/IconUiPlus";
|
|
25
25
|
import { C as Ft } from "./chunk/Ct7mcZuW.js";
|
|
26
26
|
import { R as ln } from "./chunk/CkIWpIl6.js";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
27
|
+
import Ct from "lodash/get";
|
|
28
|
+
import gt from "lodash/isFunction";
|
|
29
29
|
import Qn from "./hooks/useForceUpdate.js";
|
|
30
30
|
import an from "./Tooltip.js";
|
|
31
31
|
import Jn from "./utils/mergedToString.js";
|
|
32
|
-
import Zn from "@
|
|
33
|
-
import eo from "@
|
|
34
|
-
import to from "@
|
|
32
|
+
import Zn from "@unicom-cloud/icons/IconUiCaretDown";
|
|
33
|
+
import eo from "@unicom-cloud/icons/IconUiCaretUp";
|
|
34
|
+
import to from "@unicom-cloud/icons/IconUiFilter";
|
|
35
35
|
import tn from "./Button.js";
|
|
36
36
|
import no from "./hooks/useMergeValue.js";
|
|
37
37
|
import oo from "./Space.js";
|
|
38
38
|
import ro from "./Trigger.js";
|
|
39
39
|
import so from "./utils/omit.js";
|
|
40
40
|
const Ye = "table_internal_selection_key", qe = "table_internal_expand_key";
|
|
41
|
-
function
|
|
41
|
+
function kt(t) {
|
|
42
42
|
return typeof t == "number" || typeof t == "string" ? {
|
|
43
43
|
width: t
|
|
44
44
|
} : {};
|
|
45
45
|
}
|
|
46
46
|
function mt(t) {
|
|
47
|
-
var
|
|
48
|
-
const o =
|
|
47
|
+
var x;
|
|
48
|
+
const o = me(), {
|
|
49
49
|
prefixCls: r,
|
|
50
|
-
columns:
|
|
50
|
+
columns: h,
|
|
51
51
|
columnWidths: e,
|
|
52
|
-
producer:
|
|
52
|
+
producer: d,
|
|
53
53
|
expandedRowKeys: l,
|
|
54
54
|
data: a,
|
|
55
55
|
onSetColumnWidths: s
|
|
56
56
|
} = t;
|
|
57
57
|
nt(() => {
|
|
58
|
-
if (
|
|
58
|
+
if (d && o.current) {
|
|
59
59
|
const w = Array.from(
|
|
60
60
|
o.current.querySelectorAll("col") || []
|
|
61
61
|
).filter(
|
|
@@ -66,29 +66,29 @@ function mt(t) {
|
|
|
66
66
|
});
|
|
67
67
|
s == null || s(w);
|
|
68
68
|
}
|
|
69
|
-
}, [
|
|
69
|
+
}, [d, s, r, l, a, h]);
|
|
70
70
|
let C = 0;
|
|
71
|
-
return /* @__PURE__ */
|
|
72
|
-
if (
|
|
73
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ u("colgroup", { ref: o, children: (x = h == null ? void 0 : h.map) == null ? void 0 : x.call(h, (y, w) => {
|
|
72
|
+
if (y.title === qe)
|
|
73
|
+
return /* @__PURE__ */ u(
|
|
74
74
|
"col",
|
|
75
75
|
{
|
|
76
76
|
className: `${r}-expand-icon-col`,
|
|
77
|
-
style:
|
|
77
|
+
style: kt(y.width)
|
|
78
78
|
},
|
|
79
79
|
qe
|
|
80
80
|
);
|
|
81
|
-
if (
|
|
82
|
-
return /* @__PURE__ */
|
|
81
|
+
if (y.title === Ye)
|
|
82
|
+
return /* @__PURE__ */ u(
|
|
83
83
|
"col",
|
|
84
84
|
{
|
|
85
85
|
className: `${r}-selection-col`,
|
|
86
|
-
style:
|
|
86
|
+
style: kt(y.width)
|
|
87
87
|
},
|
|
88
88
|
Ye
|
|
89
89
|
);
|
|
90
90
|
let g;
|
|
91
|
-
return
|
|
91
|
+
return y.width ? g = y.width : !d && e && (g = e[C]), C++, /* @__PURE__ */ u("col", { style: kt(g) }, y.key ?? w);
|
|
92
92
|
}) });
|
|
93
93
|
}
|
|
94
94
|
const nn = {
|
|
@@ -128,9 +128,9 @@ const nn = {
|
|
|
128
128
|
cell: "span"
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
function
|
|
131
|
+
function Ke(t) {
|
|
132
132
|
const o = le(
|
|
133
|
-
() =>
|
|
133
|
+
() => q(t) ? Vn({}, nn, t) : nn,
|
|
134
134
|
[t]
|
|
135
135
|
);
|
|
136
136
|
return {
|
|
@@ -151,17 +151,17 @@ function He(t) {
|
|
|
151
151
|
}
|
|
152
152
|
function on(t, o) {
|
|
153
153
|
const r = [];
|
|
154
|
-
function
|
|
155
|
-
e && e.length > 0 && e.forEach((
|
|
156
|
-
|
|
154
|
+
function h(e) {
|
|
155
|
+
e && e.length > 0 && e.forEach((d) => {
|
|
156
|
+
d[o] ? h(d[o]) : r.push({ ...d, key: d.dataIndex || d.key });
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
-
return
|
|
159
|
+
return h(t), r;
|
|
160
160
|
}
|
|
161
161
|
function cn(t, o) {
|
|
162
162
|
let r = 0;
|
|
163
|
-
return t && t.length > 0 && t.forEach((
|
|
164
|
-
const e = cn(
|
|
163
|
+
return t && t.length > 0 && t.forEach((h) => {
|
|
164
|
+
const e = cn(h[o], o) + 1;
|
|
165
165
|
r = Math.max(e, r);
|
|
166
166
|
}), r;
|
|
167
167
|
}
|
|
@@ -169,14 +169,14 @@ function io(t) {
|
|
|
169
169
|
const {
|
|
170
170
|
component: o,
|
|
171
171
|
rowSelection: r,
|
|
172
|
-
expandedRowRender:
|
|
172
|
+
expandedRowRender: h,
|
|
173
173
|
expandProps: e = {},
|
|
174
|
-
columns:
|
|
174
|
+
columns: d = [],
|
|
175
175
|
childrenColumnName: l
|
|
176
|
-
} = t, a = le(() =>
|
|
176
|
+
} = t, a = le(() => d || [], [d]), s = le(
|
|
177
177
|
() => on(a, l),
|
|
178
178
|
[a, l]
|
|
179
|
-
), C = r && r.type === "checkbox" || r && !("type" in r),
|
|
179
|
+
), C = r && r.type === "checkbox" || r && !("type" in r), x = r && r.type === "radio", { width: y } = e, w = !!h, g = C || x, { getHeaderComponentOperations: k, getBodyComponentOperations: E } = Ke(o), R = le(
|
|
180
180
|
() => k({
|
|
181
181
|
selectionNode: g ? "holder_node" : "",
|
|
182
182
|
expandNode: w ? "holder_node" : ""
|
|
@@ -196,96 +196,96 @@ function io(t) {
|
|
|
196
196
|
w,
|
|
197
197
|
E
|
|
198
198
|
]
|
|
199
|
-
),
|
|
200
|
-
(
|
|
201
|
-
const
|
|
202
|
-
|
|
203
|
-
const $ = { ...
|
|
204
|
-
(!("key" in
|
|
199
|
+
), m = r && r.fixed, b = r && r.columnWidth, O = tt(
|
|
200
|
+
(D, I, _) => {
|
|
201
|
+
const K = {}, F = [];
|
|
202
|
+
D.forEach((c, L) => {
|
|
203
|
+
const $ = { ...c };
|
|
204
|
+
(!("key" in c) || typeof c.key > "u") && ($.key = $.dataIndex || L), L === 0 ? ($.$$isFirstColumn = !0, $.fixed === "left" && (K.fixed = $.fixed)) : $.$$isFirstColumn = !1, F.push($);
|
|
205
205
|
});
|
|
206
|
-
const
|
|
206
|
+
const H = w && {
|
|
207
207
|
key: qe,
|
|
208
208
|
title: qe,
|
|
209
|
-
width:
|
|
209
|
+
width: y,
|
|
210
210
|
$$isOperation: !0
|
|
211
|
-
},
|
|
211
|
+
}, Y = g && {
|
|
212
212
|
key: Ye,
|
|
213
213
|
title: Ye,
|
|
214
214
|
width: b,
|
|
215
215
|
$$isOperation: !0
|
|
216
216
|
};
|
|
217
|
-
return
|
|
218
|
-
if (
|
|
219
|
-
const $ = R.filter((
|
|
220
|
-
|
|
221
|
-
...
|
|
222
|
-
...
|
|
217
|
+
return m && (K.fixed = "left"), (typeof _ != "number" || _ === 0) && [...I].reverse().forEach((c, L) => {
|
|
218
|
+
if (c.node) {
|
|
219
|
+
const $ = R.filter((A) => A.node).length - L - 1;
|
|
220
|
+
c.name === "expandNode" ? F.unshift({
|
|
221
|
+
...H,
|
|
222
|
+
...K,
|
|
223
223
|
$$columnIndex: $
|
|
224
|
-
}) :
|
|
224
|
+
}) : c.name === "selectionNode" ? F.unshift({
|
|
225
|
+
...Y,
|
|
225
226
|
...K,
|
|
226
|
-
...I,
|
|
227
227
|
$$columnIndex: $
|
|
228
|
-
}) :
|
|
229
|
-
...
|
|
230
|
-
...
|
|
231
|
-
title:
|
|
232
|
-
key:
|
|
228
|
+
}) : F.unshift({
|
|
229
|
+
...c,
|
|
230
|
+
...K,
|
|
231
|
+
title: c.name,
|
|
232
|
+
key: c.name,
|
|
233
233
|
$$isOperation: !0,
|
|
234
|
-
width:
|
|
234
|
+
width: c.width || 40,
|
|
235
235
|
$$columnIndex: $
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), F;
|
|
239
239
|
},
|
|
240
240
|
[
|
|
241
|
-
|
|
241
|
+
y,
|
|
242
242
|
w,
|
|
243
243
|
g,
|
|
244
244
|
b,
|
|
245
|
-
|
|
245
|
+
m,
|
|
246
246
|
R
|
|
247
247
|
]
|
|
248
|
-
),
|
|
249
|
-
() =>
|
|
250
|
-
[s,
|
|
251
|
-
),
|
|
248
|
+
), j = le(
|
|
249
|
+
() => O(s, N),
|
|
250
|
+
[s, O, N]
|
|
251
|
+
), Q = le(
|
|
252
252
|
() => cn(a, l),
|
|
253
253
|
[a, l]
|
|
254
254
|
);
|
|
255
255
|
return [le(() => {
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
258
|
-
const
|
|
259
|
-
...
|
|
260
|
-
$$columnIndex:
|
|
256
|
+
const D = Array.isArray(R) ? R.filter((F) => F.node).length : 0;
|
|
257
|
+
if (Q === 1) {
|
|
258
|
+
const F = a.map((H, Y) => ({
|
|
259
|
+
...H,
|
|
260
|
+
$$columnIndex: Y + D
|
|
261
261
|
}));
|
|
262
|
-
return [
|
|
262
|
+
return [O(F, R, 0)];
|
|
263
263
|
}
|
|
264
|
-
let
|
|
265
|
-
const _ = [],
|
|
266
|
-
_[
|
|
267
|
-
const
|
|
268
|
-
|
|
269
|
-
|
|
264
|
+
let I = D;
|
|
265
|
+
const _ = [], K = (F, H = 0) => {
|
|
266
|
+
_[H] = _[H] || [], F.forEach((Y) => {
|
|
267
|
+
const c = { ...Y };
|
|
268
|
+
c[l] ? (c.colSpan = on(
|
|
269
|
+
Y[l],
|
|
270
270
|
l
|
|
271
|
-
).length,
|
|
272
|
-
}), _[
|
|
273
|
-
_[
|
|
271
|
+
).length, c.$$columnIndex = [I], _[H].push(c), K(c[l], H + 1), c.$$columnIndex.push(I - 1)) : (c.rowSpan = Q - H, c.$$columnIndex = I++, _[H].push(c));
|
|
272
|
+
}), _[H] = O(
|
|
273
|
+
_[H],
|
|
274
274
|
R,
|
|
275
|
-
|
|
275
|
+
H
|
|
276
276
|
);
|
|
277
277
|
};
|
|
278
|
-
return
|
|
278
|
+
return K(a), _;
|
|
279
279
|
}, [
|
|
280
280
|
a,
|
|
281
281
|
l,
|
|
282
|
-
|
|
283
|
-
|
|
282
|
+
Q,
|
|
283
|
+
O,
|
|
284
284
|
R
|
|
285
|
-
]),
|
|
285
|
+
]), j];
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
return
|
|
287
|
+
function vt(t) {
|
|
288
|
+
return Oe(t) ? t : je(t) && t.includes("px") ? +t.replace("px", "") : t;
|
|
289
289
|
}
|
|
290
290
|
function lo(t) {
|
|
291
291
|
return t ? t.offsetHeight - t.clientHeight : 0;
|
|
@@ -294,34 +294,34 @@ function ao(t) {
|
|
|
294
294
|
return t ? t.offsetWidth - t.clientWidth : 0;
|
|
295
295
|
}
|
|
296
296
|
function Et(t, o) {
|
|
297
|
-
return
|
|
297
|
+
return se(t[o]) && t[o].length;
|
|
298
298
|
}
|
|
299
299
|
function co(t, o) {
|
|
300
|
-
function r(
|
|
301
|
-
if (!
|
|
300
|
+
function r(h) {
|
|
301
|
+
if (!h)
|
|
302
302
|
return [];
|
|
303
303
|
const e = [];
|
|
304
|
-
return
|
|
305
|
-
if (!
|
|
306
|
-
e.push(
|
|
304
|
+
return h.forEach((d) => {
|
|
305
|
+
if (!q(d))
|
|
306
|
+
e.push(d);
|
|
307
307
|
else {
|
|
308
|
-
const l = { ...
|
|
309
|
-
l.__ORIGIN_DATA =
|
|
308
|
+
const l = { ...d };
|
|
309
|
+
l.__ORIGIN_DATA = d;
|
|
310
310
|
const a = l[o];
|
|
311
|
-
|
|
311
|
+
q(l) && a && se(a) && (l[o] = r(a)), e.push(l);
|
|
312
312
|
}
|
|
313
313
|
}), e;
|
|
314
314
|
}
|
|
315
315
|
return r(t);
|
|
316
316
|
}
|
|
317
317
|
function te(t) {
|
|
318
|
-
return
|
|
318
|
+
return q(t) ? t.__ORIGIN_DATA : !t || !se(t) ? t : t.map((o) => !q(o) || !("__ORIGIN_DATA" in o) ? o : o.__ORIGIN_DATA);
|
|
319
319
|
}
|
|
320
|
-
function fo(t, o, r = [],
|
|
321
|
-
const a = new Set(r), s = new Set(
|
|
322
|
-
function C(
|
|
323
|
-
o ? (a.add(e(
|
|
324
|
-
C(
|
|
320
|
+
function fo(t, o, r = [], h = [], e, d, l) {
|
|
321
|
+
const a = new Set(r), s = new Set(h);
|
|
322
|
+
function C(x) {
|
|
323
|
+
o ? (a.add(e(x)), s.delete(e(x))) : a.delete(e(x)), se(x[d]) && x[d].forEach((y) => {
|
|
324
|
+
C(y);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
327
|
return l ? (C(t), Lt(
|
|
@@ -329,53 +329,53 @@ function fo(t, o, r = [], u = [], e, c, l) {
|
|
|
329
329
|
a,
|
|
330
330
|
s,
|
|
331
331
|
e,
|
|
332
|
-
|
|
332
|
+
d
|
|
333
333
|
)) : o ? a.add(e(t)) : a.delete(e(t)), {
|
|
334
334
|
selectedRowKeys: [...a],
|
|
335
335
|
indeterminateKeys: [...s]
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
|
-
function
|
|
338
|
+
function uo(t, o = [], r, h, e) {
|
|
339
339
|
if (!e)
|
|
340
340
|
return {
|
|
341
341
|
selectedRowKeys: o,
|
|
342
342
|
indeterminateKeys: []
|
|
343
343
|
};
|
|
344
|
-
const
|
|
344
|
+
const d = new Set(o), l = /* @__PURE__ */ new Set([]);
|
|
345
345
|
function a(s) {
|
|
346
|
-
|
|
346
|
+
d.add(r(s)), l.delete(r(s)), se(s[h]) && s[h].forEach((C) => {
|
|
347
347
|
a(C);
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
return o.forEach((s) => {
|
|
351
|
-
const C = t.find((
|
|
351
|
+
const C = t.find((x) => r(x) === s);
|
|
352
352
|
!Yn(C) && !jn(C) && (a(C), Lt(
|
|
353
353
|
C,
|
|
354
|
-
|
|
354
|
+
d,
|
|
355
355
|
l,
|
|
356
356
|
r,
|
|
357
|
-
|
|
357
|
+
h
|
|
358
358
|
));
|
|
359
359
|
}), {
|
|
360
|
-
selectedRowKeys: [...
|
|
360
|
+
selectedRowKeys: [...d],
|
|
361
361
|
indeterminateKeys: [...l]
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
function Lt(t, o, r,
|
|
364
|
+
function Lt(t, o, r, h, e) {
|
|
365
365
|
if (t.__INTERNAL_PARENT) {
|
|
366
|
-
const
|
|
367
|
-
if (
|
|
366
|
+
const d = h(t.__INTERNAL_PARENT);
|
|
367
|
+
if (se(t.__INTERNAL_PARENT[e])) {
|
|
368
368
|
const l = t.__INTERNAL_PARENT[e].length;
|
|
369
369
|
let a = 0, s = !1;
|
|
370
370
|
t.__INTERNAL_PARENT[e].forEach((C) => {
|
|
371
|
-
o.has(
|
|
372
|
-
}), l === a ? (o.add(
|
|
371
|
+
o.has(h(C)) && (a += 1), r.has(h(C)) && (r.add(d), s = !0);
|
|
372
|
+
}), l === a ? (o.add(d), r.delete(d)) : a > 0 && l > a ? (o.delete(d), r.add(d)) : a === 0 && (o.delete(d), s || r.delete(d));
|
|
373
373
|
}
|
|
374
374
|
Lt(
|
|
375
375
|
t.__INTERNAL_PARENT,
|
|
376
376
|
o,
|
|
377
377
|
r,
|
|
378
|
-
|
|
378
|
+
h,
|
|
379
379
|
e
|
|
380
380
|
);
|
|
381
381
|
}
|
|
@@ -387,32 +387,32 @@ function Pt(t) {
|
|
|
387
387
|
if (typeof t == "object" && typeof t.multiple == "number")
|
|
388
388
|
return t.multiple;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function po(t, o, r) {
|
|
391
391
|
const {
|
|
392
|
-
defaultExpandedRowKeys:
|
|
392
|
+
defaultExpandedRowKeys: h,
|
|
393
393
|
defaultExpandAllRows: e,
|
|
394
|
-
expandedRowRender:
|
|
394
|
+
expandedRowRender: d,
|
|
395
395
|
onExpand: l,
|
|
396
396
|
onExpandedRowsChange: a,
|
|
397
397
|
childrenColumnName: s = "children",
|
|
398
398
|
expandProps: C
|
|
399
|
-
} = t, [
|
|
399
|
+
} = t, [x, y] = Ne(
|
|
400
400
|
g()
|
|
401
|
-
), w = t.expandedRowKeys ||
|
|
401
|
+
), w = t.expandedRowKeys || x;
|
|
402
402
|
function g() {
|
|
403
403
|
let R = [];
|
|
404
|
-
return t.expandedRowKeys ? R = t.expandedRowKeys :
|
|
404
|
+
return t.expandedRowKeys ? R = t.expandedRowKeys : h ? R = h : e && (R = o.map((N, m) => {
|
|
405
405
|
const b = te(N);
|
|
406
|
-
return C && "rowExpandable" in C && typeof C.rowExpandable == "function" ? C.rowExpandable(b) && r(N) : typeof
|
|
406
|
+
return C && "rowExpandable" in C && typeof C.rowExpandable == "function" ? C.rowExpandable(b) && r(N) : typeof d == "function" ? d(b, m) && r(N) : Et(N, s) && r(N);
|
|
407
407
|
}).filter((N) => N)), R;
|
|
408
408
|
}
|
|
409
409
|
function k(R) {
|
|
410
|
-
const N = w.indexOf(R) === -1,
|
|
411
|
-
|
|
410
|
+
const N = w.indexOf(R) === -1, m = N ? w.concat(R) : w.filter((O) => R !== O), b = o.filter((O) => m.indexOf(r(O)) !== -1).map((O) => r(O));
|
|
411
|
+
y(b), E(R, N), a == null || a(b);
|
|
412
412
|
}
|
|
413
413
|
function E(R, N) {
|
|
414
414
|
l == null || l(
|
|
415
|
-
te(o.find((
|
|
415
|
+
te(o.find((m) => r(m) === R)),
|
|
416
416
|
N
|
|
417
417
|
);
|
|
418
418
|
}
|
|
@@ -421,129 +421,129 @@ function uo(t, o, r) {
|
|
|
421
421
|
function rn(t) {
|
|
422
422
|
return [...new Set(t)];
|
|
423
423
|
}
|
|
424
|
-
function ho(t, o, r,
|
|
425
|
-
const { rowSelection: e, childrenColumnName:
|
|
424
|
+
function ho(t, o, r, h) {
|
|
425
|
+
const { rowSelection: e, childrenColumnName: d } = t, l = e == null ? void 0 : e.selectedRowKeys, a = e == null ? void 0 : e.onSelectAll, s = e == null ? void 0 : e.onSelect, C = e == null ? void 0 : e.onChange, x = e == null ? void 0 : e.pureKeys, y = typeof (e == null ? void 0 : e.checkStrictly) == "boolean" ? !e.checkStrictly : !1, w = e == null ? void 0 : e.preserveSelectedRowKeys;
|
|
426
426
|
function g() {
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
const v =
|
|
430
|
-
(e && typeof e.checkboxProps == "function" ? e.checkboxProps(te(
|
|
427
|
+
const c = [], L = [], $ = (T) => {
|
|
428
|
+
se(T) && T.length && T.forEach((f) => {
|
|
429
|
+
const v = h(f);
|
|
430
|
+
(e && typeof e.checkboxProps == "function" ? e.checkboxProps(te(f)) : {}).disabled || c.push(v), Et(f, t.childrenColumnName) && $(f[t.childrenColumnName]);
|
|
431
431
|
});
|
|
432
432
|
};
|
|
433
433
|
$(o);
|
|
434
|
-
const
|
|
435
|
-
|
|
436
|
-
if (
|
|
437
|
-
const
|
|
438
|
-
|
|
434
|
+
const A = (T, f) => {
|
|
435
|
+
se(T) && T.length && T.forEach((v) => {
|
|
436
|
+
if (f && y && (v.__INTERNAL_PARENT = f), L.push(v), Et(v, t.childrenColumnName)) {
|
|
437
|
+
const ee = { ...v };
|
|
438
|
+
A(v[t.childrenColumnName], ee);
|
|
439
439
|
}
|
|
440
440
|
});
|
|
441
441
|
};
|
|
442
|
-
return
|
|
443
|
-
allSelectedRowKeys:
|
|
444
|
-
flattenData:
|
|
442
|
+
return A(r, void 0), {
|
|
443
|
+
allSelectedRowKeys: c,
|
|
444
|
+
flattenData: L
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
const { allSelectedRowKeys: k, flattenData: E } = g(), [R, N] = Ne([]), [
|
|
447
|
+
const { allSelectedRowKeys: k, flattenData: E } = g(), [R, N] = Ne([]), [m, b] = Ne([]), O = uo(
|
|
448
448
|
E,
|
|
449
449
|
rn(l || R),
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
),
|
|
454
|
-
|
|
450
|
+
h,
|
|
451
|
+
d,
|
|
452
|
+
y
|
|
453
|
+
), j = y && !l ? R : O.selectedRowKeys, Q = y && !l ? m : O.indeterminateKeys, [z, D] = Ne(
|
|
454
|
+
x ? [] : I(j)
|
|
455
455
|
);
|
|
456
|
-
function
|
|
457
|
-
const $ =
|
|
458
|
-
return
|
|
456
|
+
function I(c, L) {
|
|
457
|
+
const $ = L ? z.concat(E) : E, A = new Map($.map((T) => [h(T), T]));
|
|
458
|
+
return c.map((T) => A.get(T)).filter((T) => T);
|
|
459
459
|
}
|
|
460
|
-
const _ = new Set(E.map((
|
|
461
|
-
function
|
|
462
|
-
return w ?
|
|
460
|
+
const _ = new Set(E.map((c) => h(c)));
|
|
461
|
+
function K(c) {
|
|
462
|
+
return w ? c : c.filter((L) => _.has(L));
|
|
463
463
|
}
|
|
464
|
-
function
|
|
465
|
-
let
|
|
466
|
-
if (
|
|
467
|
-
|
|
468
|
-
rn(
|
|
464
|
+
function F(c) {
|
|
465
|
+
let L = [], $ = [];
|
|
466
|
+
if (c)
|
|
467
|
+
L = K(
|
|
468
|
+
rn(j.concat(k))
|
|
469
469
|
);
|
|
470
470
|
else {
|
|
471
|
-
const
|
|
472
|
-
|
|
473
|
-
|
|
471
|
+
const T = new Set(k);
|
|
472
|
+
L = K(
|
|
473
|
+
j.filter((f) => !T.has(f))
|
|
474
474
|
);
|
|
475
475
|
}
|
|
476
|
-
|
|
477
|
-
const
|
|
478
|
-
N(
|
|
476
|
+
x || ($ = I(L, !0));
|
|
477
|
+
const A = te($);
|
|
478
|
+
N(L), D($), b([]), C == null || C(L, A), a == null || a(c, A);
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
const { selectedRowKeys: $, indeterminateKeys:
|
|
482
|
-
|
|
483
|
-
x,
|
|
484
|
-
Y,
|
|
485
|
-
y,
|
|
486
|
-
u,
|
|
480
|
+
function H(c, L) {
|
|
481
|
+
const { selectedRowKeys: $, indeterminateKeys: A } = fo(
|
|
482
|
+
L,
|
|
487
483
|
c,
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
484
|
+
j,
|
|
485
|
+
m,
|
|
486
|
+
h,
|
|
487
|
+
d,
|
|
488
|
+
y
|
|
489
|
+
), T = K($), f = I(T, !0), v = te(f);
|
|
490
|
+
N(T), D(f), b(A), s == null || s(c, te(L), v), C == null || C(T, v);
|
|
491
491
|
}
|
|
492
|
-
function
|
|
493
|
-
const $ = [E.find((
|
|
494
|
-
N([
|
|
492
|
+
function Y(c, L) {
|
|
493
|
+
const $ = [E.find((T) => h(T) === c)], A = te($);
|
|
494
|
+
N([c]), s == null || s(!0, te(L), A), C == null || C([c], A);
|
|
495
495
|
}
|
|
496
496
|
return {
|
|
497
|
-
selectedRowKeys:
|
|
498
|
-
indeterminateKeys:
|
|
499
|
-
onCheckAll:
|
|
500
|
-
onCheck:
|
|
501
|
-
onCheckRadio:
|
|
497
|
+
selectedRowKeys: j,
|
|
498
|
+
indeterminateKeys: Q,
|
|
499
|
+
onCheckAll: F,
|
|
500
|
+
onCheck: H,
|
|
501
|
+
onCheckRadio: Y,
|
|
502
502
|
setSelectedRowKeys: N,
|
|
503
503
|
allSelectedRowKeys: k,
|
|
504
504
|
flattenData: E
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
function yo(t, o) {
|
|
508
|
-
const [r,
|
|
509
|
-
(
|
|
510
|
-
const { field:
|
|
511
|
-
return r.find((g) => g.field ===
|
|
512
|
-
(g) => g.field ===
|
|
513
|
-
) : r.filter((g) => g.field !==
|
|
508
|
+
const [r, h] = Ne(o), [e, d] = Ne({}), l = me(t), a = tt(
|
|
509
|
+
(x) => {
|
|
510
|
+
const { field: y, direction: w } = x;
|
|
511
|
+
return r.find((g) => g.field === y) ? w ? r.map(
|
|
512
|
+
(g) => g.field === y ? x : g
|
|
513
|
+
) : r.filter((g) => g.field !== y) : w ? !Oe(x.priority) || r.find((g) => !Oe(g.priority)) ? [x] : [...r, x] : [...r];
|
|
514
514
|
},
|
|
515
515
|
[r]
|
|
516
|
-
), s = tt((
|
|
517
|
-
const
|
|
516
|
+
), s = tt((x) => {
|
|
517
|
+
const y = x.filter((g) => "sortOrder" in g);
|
|
518
518
|
let w = [];
|
|
519
|
-
return
|
|
519
|
+
return y.forEach((g) => {
|
|
520
520
|
const k = Pt(g.sorter), E = g.sortOrder, R = {
|
|
521
521
|
field: g.dataIndex || g.key,
|
|
522
522
|
direction: E,
|
|
523
523
|
sorterFn: It(g.sorter),
|
|
524
524
|
priority: k
|
|
525
525
|
};
|
|
526
|
-
E ?
|
|
526
|
+
E ? Oe(k) ? w.every((N) => Oe(N.priority) || !N.direction) && w.push(R) : w.every((N) => !N.direction) ? w.push(R) : w = [R] : w.push(R);
|
|
527
527
|
}), w;
|
|
528
528
|
}, []), C = tt(
|
|
529
|
-
(
|
|
530
|
-
s(t).length || (
|
|
529
|
+
(x, y) => {
|
|
530
|
+
s(t).length || (h(y), d(x));
|
|
531
531
|
},
|
|
532
|
-
[t, s,
|
|
532
|
+
[t, s, h, d]
|
|
533
533
|
);
|
|
534
|
-
return
|
|
535
|
-
const
|
|
534
|
+
return _t(() => {
|
|
535
|
+
const x = l.current, y = s(x), w = s(t), g = y.map(
|
|
536
536
|
(E) => E.field
|
|
537
|
-
), k = w.filter((E) =>
|
|
538
|
-
({ field: N, direction:
|
|
537
|
+
), k = w.filter((E) => y.find(
|
|
538
|
+
({ field: N, direction: m }) => E.field === N && E.direction !== m
|
|
539
539
|
) ? !0 : !g.includes(E.field));
|
|
540
|
-
k && k.length && (
|
|
540
|
+
k && k.length && (h(w), d({})), l.current = t;
|
|
541
541
|
}, [
|
|
542
542
|
t,
|
|
543
543
|
s,
|
|
544
544
|
a,
|
|
545
|
-
|
|
546
|
-
|
|
545
|
+
d,
|
|
546
|
+
h
|
|
547
547
|
]), {
|
|
548
548
|
currentSorter: e,
|
|
549
549
|
activeSorters: r,
|
|
@@ -552,79 +552,79 @@ function yo(t, o) {
|
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
function mo(t, o, r) {
|
|
555
|
-
const
|
|
555
|
+
const h = o.map((a) => a.fixed);
|
|
556
556
|
function e(a, s) {
|
|
557
557
|
return Z({
|
|
558
558
|
[`${r}-col-fixed-left`]: a.fixed === "left",
|
|
559
559
|
[`${r}-col-fixed-right`]: a.fixed === "right",
|
|
560
|
-
[`${r}-col-fixed-left-last`]: a.fixed === "left" && (
|
|
561
|
-
[`${r}-col-fixed-right-first`]: a.fixed === "right" && (
|
|
560
|
+
[`${r}-col-fixed-left-last`]: a.fixed === "left" && (q(o[s + 1]) ? o[s + 1].fixed !== "left" : !0),
|
|
561
|
+
[`${r}-col-fixed-right-first`]: a.fixed === "right" && (q(o[s - 1]) ? o[s - 1].fixed !== "right" : !0)
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
-
const
|
|
564
|
+
const d = le(() => o.map(
|
|
565
565
|
(a, s) => e(a, s)
|
|
566
|
-
), [
|
|
566
|
+
), [h.join("-")]);
|
|
567
567
|
return [le(
|
|
568
568
|
() => t.map((a) => a.map((s, C) => {
|
|
569
|
-
let
|
|
570
|
-
const
|
|
571
|
-
return Array.isArray(
|
|
569
|
+
let x = C;
|
|
570
|
+
const y = s.$$columnIndex;
|
|
571
|
+
return Array.isArray(y) && y.length === 2 ? x = s.fixed === "right" ? y[0] : y[1] : typeof y == "number" && (x = y), e(s, x);
|
|
572
572
|
})),
|
|
573
573
|
[
|
|
574
574
|
t.map((a) => `|${a.map((s) => s.fixed || "undefined").join("-")}|`).join("_")
|
|
575
575
|
]
|
|
576
|
-
),
|
|
576
|
+
), d];
|
|
577
577
|
}
|
|
578
578
|
function xo(t) {
|
|
579
|
-
const o = t.map((e) =>
|
|
579
|
+
const o = t.map((e) => vt(e.width)), r = t.map((e) => e.fixed);
|
|
580
580
|
return le(() => t.map((e) => {
|
|
581
|
-
let
|
|
581
|
+
let d = 0;
|
|
582
582
|
return e.fixed === "left" && t.some((l) => {
|
|
583
583
|
if (l.fixed === "left") {
|
|
584
584
|
if (l.key === e.key)
|
|
585
585
|
return !0;
|
|
586
|
-
let a =
|
|
586
|
+
let a = vt(l.width);
|
|
587
587
|
const s = l.$$isOperation ? a || 40 : a;
|
|
588
|
-
return
|
|
588
|
+
return d += s, !1;
|
|
589
589
|
}
|
|
590
590
|
return !1;
|
|
591
591
|
}), e.fixed === "right" && [...t].reverse().some((l) => {
|
|
592
592
|
if (l.fixed === "right") {
|
|
593
593
|
if (l.key === e.key)
|
|
594
594
|
return !0;
|
|
595
|
-
let a =
|
|
595
|
+
let a = vt(l.width);
|
|
596
596
|
const s = l.$$isOperation ? a || 40 : a;
|
|
597
|
-
return
|
|
597
|
+
return d += s, !1;
|
|
598
598
|
}
|
|
599
599
|
return !1;
|
|
600
|
-
}),
|
|
600
|
+
}), d;
|
|
601
601
|
}), [o.join("-"), r.join("-")]);
|
|
602
602
|
}
|
|
603
603
|
function go(t) {
|
|
604
|
-
return t && !
|
|
604
|
+
return t && !_e.isValidElement(t) && q(t);
|
|
605
605
|
}
|
|
606
606
|
function Co(t) {
|
|
607
|
-
var
|
|
607
|
+
var pe, ie, ae, xe, U, be, he;
|
|
608
608
|
const o = Qn(), {
|
|
609
609
|
component: r,
|
|
610
|
-
InnerComponentTd:
|
|
610
|
+
InnerComponentTd: h,
|
|
611
611
|
column: e,
|
|
612
|
-
columnIndex:
|
|
612
|
+
columnIndex: d,
|
|
613
613
|
prefixCls: l,
|
|
614
614
|
stickyClassName: a,
|
|
615
615
|
stickyOffset: s,
|
|
616
616
|
currentSorter: C,
|
|
617
|
-
virtualized:
|
|
618
|
-
record:
|
|
617
|
+
virtualized: x,
|
|
618
|
+
record: y,
|
|
619
619
|
trIndex: w,
|
|
620
620
|
level: g,
|
|
621
621
|
placeholder: k = "-",
|
|
622
622
|
indentSize: E,
|
|
623
623
|
renderExpandIcon: R,
|
|
624
624
|
rowKey: N,
|
|
625
|
-
recordHaveChildren:
|
|
625
|
+
recordHaveChildren: m,
|
|
626
626
|
haveTreeData: b
|
|
627
|
-
} = t, { rtl:
|
|
627
|
+
} = t, { rtl: O } = Be(Ge), { ComponentBodyCell: j } = Ke(r), Q = me(null), z = me(null), D = me(null), I = me(null), _ = (e == null ? void 0 : e.showTooltip) !== !1 && (e == null ? void 0 : e.ellipsis), K = Z(
|
|
628
628
|
`${l}-td`,
|
|
629
629
|
a,
|
|
630
630
|
{
|
|
@@ -632,69 +632,73 @@ function Co(t) {
|
|
|
632
632
|
},
|
|
633
633
|
e == null ? void 0 : e.className
|
|
634
634
|
);
|
|
635
|
-
let
|
|
636
|
-
(e == null ? void 0 : e.fixed) === "left" && (
|
|
637
|
-
...
|
|
635
|
+
let F = {}, H, Y, c = {};
|
|
636
|
+
(e == null ? void 0 : e.fixed) === "left" && (c[O ? "right" : "left"] = s), (e == null ? void 0 : e.fixed) === "right" && (c[O ? "left" : "right"] = s), q(e == null ? void 0 : e.cellStyle) && (c = {
|
|
637
|
+
...c,
|
|
638
638
|
...e == null ? void 0 : e.cellStyle
|
|
639
|
-
}),
|
|
640
|
-
...
|
|
639
|
+
}), q(e == null ? void 0 : e.bodyCellStyle) && (c = {
|
|
640
|
+
...c,
|
|
641
641
|
...e == null ? void 0 : e.bodyCellStyle
|
|
642
|
-
}),
|
|
643
|
-
...
|
|
644
|
-
...((
|
|
645
|
-
}), e != null && e.align && (
|
|
646
|
-
const { onHandleSave:
|
|
647
|
-
} },
|
|
648
|
-
let T = le(() =>
|
|
649
|
-
|
|
650
|
-
te(
|
|
642
|
+
}), gt(e == null ? void 0 : e.bodyCellStyle) && (c = {
|
|
643
|
+
...c,
|
|
644
|
+
...((pe = e == null ? void 0 : e.bodyCellStyle) == null ? void 0 : pe.call(e, y, w)) ?? {}
|
|
645
|
+
}), e != null && e.align && (c.textAlign = e == null ? void 0 : e.align), x && e.width && (c.width = e.width, c.minWidth = e.width, c.maxWidth = e.width);
|
|
646
|
+
const { onHandleSave: L, ...$ } = e != null && e.onCell ? (e == null ? void 0 : e.onCell(y, w, e)) ?? {} : { onHandleSave: () => {
|
|
647
|
+
} }, A = e == null ? void 0 : e.render;
|
|
648
|
+
let T = le(() => A == null ? void 0 : A(
|
|
649
|
+
Ct(y, e == null ? void 0 : e.dataIndex),
|
|
650
|
+
te(y),
|
|
651
651
|
w
|
|
652
|
-
), [
|
|
653
|
-
if (
|
|
652
|
+
), [y, e, w]);
|
|
653
|
+
if (gt(A) || (T = Ct(y, (e == null ? void 0 : e.dataIndex) ?? "")), go(T) && (F = T == null ? void 0 : T.props, H = F == null ? void 0 : F.rowSpan, Y = F == null ? void 0 : F.colSpan, T = T == null ? void 0 : T.children), H === 0 || Y === 0)
|
|
654
654
|
return null;
|
|
655
655
|
je(T) && (T = T.trim()), !T && T !== 0 && (T = (e == null ? void 0 : e.placeholder) ?? k ?? "-");
|
|
656
|
-
const
|
|
656
|
+
const f = e != null && e.ellipsis && je(T) ? {
|
|
657
657
|
// title: cellChildren // 暂时不需要title属性了,因为单独加了tooltip组件,潘启宝2023年4月1日于广东省惠州市
|
|
658
|
-
} : {},
|
|
659
|
-
let
|
|
660
|
-
|
|
661
|
-
|
|
658
|
+
} : {}, v = b && (e == null ? void 0 : e.$$isFirstColumn), ee = v && m;
|
|
659
|
+
let M = v && g > 0 ? E * g : 0;
|
|
660
|
+
v && !m && (M += 20);
|
|
661
|
+
function fe(re) {
|
|
662
|
+
o();
|
|
663
|
+
}
|
|
664
|
+
const J = `${d}-${w}-${M}-${ee}`, oe = /* @__PURE__ */ u(
|
|
662
665
|
"div",
|
|
663
666
|
{
|
|
664
|
-
ref:
|
|
667
|
+
ref: Q,
|
|
665
668
|
className: Z(`${l}-cell`, {
|
|
666
669
|
[`${l}-cell-text-ellipsis`]: e == null ? void 0 : e.ellipsis
|
|
667
670
|
}),
|
|
668
|
-
...
|
|
669
|
-
|
|
670
|
-
|
|
671
|
+
...f,
|
|
672
|
+
onMouseEnter: _ ? fe : void 0,
|
|
673
|
+
children: /* @__PURE__ */ de(
|
|
674
|
+
j,
|
|
671
675
|
{
|
|
672
|
-
ref:
|
|
676
|
+
ref: z,
|
|
673
677
|
className: `${l}-cell-wrap-value`,
|
|
674
|
-
...je(
|
|
675
|
-
rowData: te(
|
|
678
|
+
...je(j) ? {} : {
|
|
679
|
+
rowData: te(y),
|
|
676
680
|
column: e,
|
|
677
|
-
onHandleSave:
|
|
678
|
-
|
|
681
|
+
onHandleSave: L,
|
|
682
|
+
...$
|
|
679
683
|
},
|
|
680
684
|
children: [
|
|
681
|
-
!!
|
|
685
|
+
!!M && /* @__PURE__ */ u(
|
|
682
686
|
"span",
|
|
683
687
|
{
|
|
684
|
-
ref:
|
|
688
|
+
ref: D,
|
|
685
689
|
className: `${l}-cell-indent`,
|
|
686
|
-
style: { paddingLeft:
|
|
690
|
+
style: { paddingLeft: M }
|
|
687
691
|
}
|
|
688
692
|
),
|
|
689
|
-
!!
|
|
693
|
+
!!ee && /* @__PURE__ */ u(
|
|
690
694
|
"span",
|
|
691
695
|
{
|
|
692
|
-
ref:
|
|
696
|
+
ref: I,
|
|
693
697
|
className: `${l}-cell-expand-icon`,
|
|
694
|
-
children: R(
|
|
698
|
+
children: R(y, N)
|
|
695
699
|
}
|
|
696
700
|
),
|
|
697
|
-
t.___dangerouslySetInnerHTML___ ? /* @__PURE__ */
|
|
701
|
+
t.___dangerouslySetInnerHTML___ ? /* @__PURE__ */ u(
|
|
698
702
|
"span",
|
|
699
703
|
{
|
|
700
704
|
dangerouslySetInnerHTML: {
|
|
@@ -704,17 +708,17 @@ function Co(t) {
|
|
|
704
708
|
) : T
|
|
705
709
|
]
|
|
706
710
|
},
|
|
707
|
-
|
|
711
|
+
J
|
|
708
712
|
)
|
|
709
713
|
},
|
|
710
|
-
|
|
714
|
+
J
|
|
711
715
|
);
|
|
712
|
-
let
|
|
713
|
-
|
|
716
|
+
let ue = /* @__PURE__ */ u(
|
|
717
|
+
h,
|
|
714
718
|
{
|
|
715
|
-
className:
|
|
716
|
-
style:
|
|
717
|
-
...zn(
|
|
719
|
+
className: K,
|
|
720
|
+
style: c,
|
|
721
|
+
...zn($, [
|
|
718
722
|
"onClick",
|
|
719
723
|
"onDoubleClick",
|
|
720
724
|
"onContextMenu",
|
|
@@ -725,188 +729,188 @@ function Co(t) {
|
|
|
725
729
|
"onMouseDown",
|
|
726
730
|
"onMouseUp"
|
|
727
731
|
]),
|
|
728
|
-
...
|
|
729
|
-
children:
|
|
732
|
+
...F,
|
|
733
|
+
children: oe
|
|
730
734
|
},
|
|
731
|
-
(e == null ? void 0 : e.key) || (e == null ? void 0 : e.dataIndex) ||
|
|
735
|
+
(e == null ? void 0 : e.key) || (e == null ? void 0 : e.dataIndex) || d
|
|
732
736
|
);
|
|
733
|
-
if (
|
|
734
|
-
const
|
|
735
|
-
if (
|
|
736
|
-
|
|
737
|
-
|
|
737
|
+
if (Q.current && z.current && _) {
|
|
738
|
+
const re = Q.current.getBoundingClientRect().width, G = z.current.getBoundingClientRect().width, ge = ((xe = (ae = (ie = D.current) == null ? void 0 : ie.getBoundingClientRect) == null ? void 0 : ae.call(ie)) == null ? void 0 : xe.width) ?? 0, Ie = ((he = (be = (U = I.current) == null ? void 0 : U.getBoundingClientRect) == null ? void 0 : be.call(U)) == null ? void 0 : he.width) ?? 0;
|
|
739
|
+
if (re < G + ge + Ie) {
|
|
740
|
+
const Ce = gt(e == null ? void 0 : e.tooltipContentRender) ? e.tooltipContentRender(y, w, e) : Jn(ue);
|
|
741
|
+
ue = /* @__PURE__ */ u(
|
|
738
742
|
an,
|
|
739
743
|
{
|
|
740
744
|
className: Z(`${l}-cell-tooltip`, e.tooltipClassName),
|
|
741
745
|
style: e.tooltipStyle,
|
|
742
|
-
content:
|
|
743
|
-
children:
|
|
746
|
+
content: Ce,
|
|
747
|
+
children: ue
|
|
744
748
|
}
|
|
745
749
|
);
|
|
746
750
|
}
|
|
747
751
|
}
|
|
748
752
|
return nt(() => (o(), () => {
|
|
749
|
-
}), [
|
|
753
|
+
}), [Q.current, z.current]), ue;
|
|
750
754
|
}
|
|
751
|
-
const wo =
|
|
755
|
+
const wo = _e.memo(Co);
|
|
752
756
|
function No(t, o) {
|
|
753
757
|
const {
|
|
754
758
|
expandedRowRender: r,
|
|
755
|
-
onClickExpandBtn:
|
|
759
|
+
onClickExpandBtn: h,
|
|
756
760
|
columns: e,
|
|
757
|
-
component:
|
|
761
|
+
component: d,
|
|
758
762
|
onCheck: l,
|
|
759
763
|
onCheckRadio: a,
|
|
760
764
|
prefixCls: s,
|
|
761
765
|
selectedRowKeys: C,
|
|
762
|
-
indeterminateKeys:
|
|
763
|
-
rowClassName:
|
|
766
|
+
indeterminateKeys: x,
|
|
767
|
+
rowClassName: y,
|
|
764
768
|
onRow: w,
|
|
765
769
|
rowSelection: g,
|
|
766
770
|
indentSize: k = 16,
|
|
767
771
|
activeSorters: E,
|
|
768
772
|
virtualized: R,
|
|
769
773
|
stickyOffsets: N,
|
|
770
|
-
stickyClassNames:
|
|
774
|
+
stickyClassNames: m,
|
|
771
775
|
getRowKey: b,
|
|
772
|
-
placeholder:
|
|
773
|
-
expandProps:
|
|
774
|
-
data:
|
|
775
|
-
expandedRowKeys:
|
|
776
|
-
childrenColumnName:
|
|
777
|
-
record:
|
|
776
|
+
placeholder: O,
|
|
777
|
+
expandProps: j = { strictTreeData: !0 },
|
|
778
|
+
data: Q,
|
|
779
|
+
expandedRowKeys: z,
|
|
780
|
+
childrenColumnName: D,
|
|
781
|
+
record: I,
|
|
778
782
|
index: _,
|
|
779
|
-
type:
|
|
780
|
-
shouldRowExpand:
|
|
781
|
-
level:
|
|
782
|
-
} = t, { rtl:
|
|
783
|
+
type: K,
|
|
784
|
+
shouldRowExpand: F,
|
|
785
|
+
level: H
|
|
786
|
+
} = t, { rtl: Y } = Be(Ge), c = te(I), { ...L } = (w == null ? void 0 : w(c, _)) || {}, $ = b(I), A = K === "radio" ? C.slice(0, 1) : C, T = $ || _, f = A.indexOf($) > -1, v = z.indexOf($) > -1, ee = x.indexOf($) > -1, M = Z(
|
|
783
787
|
`${s}-tr`,
|
|
784
788
|
{
|
|
785
|
-
[`${s}-row-checked`]:
|
|
789
|
+
[`${s}-row-checked`]: f,
|
|
786
790
|
[`${s}-row-expanded`]: v
|
|
787
791
|
},
|
|
788
|
-
|
|
789
|
-
),
|
|
790
|
-
[`${s}-selection-col`]: R &&
|
|
792
|
+
y == null ? void 0 : y(c, _)
|
|
793
|
+
), fe = g && typeof g.checkboxProps == "function" ? g.checkboxProps(c) : {}, J = Z(`${s}-td`, `${s}-operation`), oe = (P) => Z(J, `${s}-${P}`, {
|
|
794
|
+
[`${s}-selection-col`]: R && K === "checkbox" || K === "radio",
|
|
791
795
|
[`${s}-expand-icon-col`]: R && r
|
|
792
796
|
});
|
|
793
|
-
function
|
|
794
|
-
return
|
|
797
|
+
function ue(P) {
|
|
798
|
+
return j.strictTreeData ? se(P[D]) && P[D].length : P[D] !== void 0;
|
|
795
799
|
}
|
|
796
|
-
function
|
|
797
|
-
return
|
|
800
|
+
function pe() {
|
|
801
|
+
return Q.find((P) => ue(P));
|
|
798
802
|
}
|
|
799
|
-
const
|
|
800
|
-
onClick: (
|
|
803
|
+
const ie = F(I, _), ae = ue(I), xe = pe() && !r, U = xe && ae, he = j.expandRowByClick && (ie || U) ? {
|
|
804
|
+
onClick: (P) => {
|
|
801
805
|
var we;
|
|
802
|
-
|
|
806
|
+
h($), (we = L == null ? void 0 : L.onClick) == null || we.call(L, P);
|
|
803
807
|
}
|
|
804
|
-
} : {}, { ComponentBodyRow:
|
|
805
|
-
className:
|
|
806
|
-
key:
|
|
807
|
-
...
|
|
808
|
-
...
|
|
809
|
-
},
|
|
810
|
-
function
|
|
811
|
-
const { icon:
|
|
812
|
-
onClick: (
|
|
813
|
-
|
|
808
|
+
} : {}, { ComponentBodyRow: re, ComponentTd: G, getBodyComponentOperations: ge } = Ke(d), Ie = R ? "div" : re, Ce = R ? "div" : G, Ee = {
|
|
809
|
+
className: M,
|
|
810
|
+
key: T,
|
|
811
|
+
...L,
|
|
812
|
+
...he
|
|
813
|
+
}, Pe = je(re) ? Ee : { ...Ee, record: I, index: _ };
|
|
814
|
+
function De(P, we) {
|
|
815
|
+
const { icon: Ae } = j, Re = !!~z.indexOf(we), Fe = {
|
|
816
|
+
onClick: (Me) => {
|
|
817
|
+
Me.stopPropagation(), h(we);
|
|
814
818
|
}
|
|
815
819
|
};
|
|
816
|
-
return typeof
|
|
820
|
+
return typeof Ae == "function" ? Ae({ expanded: Re, record: P, ...Fe }) : /* @__PURE__ */ u("button", { ...Fe, type: "button", children: Re ? /* @__PURE__ */ u(Gn, {}) : /* @__PURE__ */ u(Xn, {}) });
|
|
817
821
|
}
|
|
818
|
-
const
|
|
819
|
-
let
|
|
820
|
-
const
|
|
822
|
+
const He = r && /* @__PURE__ */ u(Ce, { className: oe("expand-icon-cell"), children: ie && De(I, $) }), ke = g && g.renderCell;
|
|
823
|
+
let W;
|
|
824
|
+
const ce = /* @__PURE__ */ u(
|
|
821
825
|
Ft,
|
|
822
826
|
{
|
|
823
827
|
value: $,
|
|
824
|
-
onChange: (
|
|
825
|
-
checked:
|
|
826
|
-
indeterminate:
|
|
827
|
-
...
|
|
828
|
+
onChange: (P) => l(P, I),
|
|
829
|
+
checked: f,
|
|
830
|
+
indeterminate: ee,
|
|
831
|
+
...fe
|
|
828
832
|
}
|
|
829
|
-
), ne = /* @__PURE__ */
|
|
833
|
+
), ne = /* @__PURE__ */ u(
|
|
830
834
|
ln,
|
|
831
835
|
{
|
|
832
|
-
onChange: () => a($,
|
|
836
|
+
onChange: () => a($, I),
|
|
833
837
|
value: $,
|
|
834
|
-
checked:
|
|
835
|
-
...
|
|
838
|
+
checked: f,
|
|
839
|
+
...fe
|
|
836
840
|
}
|
|
837
841
|
);
|
|
838
|
-
|
|
839
|
-
const
|
|
840
|
-
selectionNode:
|
|
841
|
-
expandNode:
|
|
842
|
+
K === "checkbox" && (W = /* @__PURE__ */ u(Ce, { className: oe("checkbox"), children: ke ? ke(ce, f, c) : ce })), K === "radio" && (W = /* @__PURE__ */ u(Ce, { className: oe("radio"), children: ke ? ke(ne, f, c) : ne }));
|
|
843
|
+
const Se = ge({
|
|
844
|
+
selectionNode: W,
|
|
845
|
+
expandNode: He
|
|
842
846
|
});
|
|
843
|
-
return /* @__PURE__ */ ot(
|
|
844
|
-
var
|
|
845
|
-
const
|
|
846
|
-
if (
|
|
847
|
-
let
|
|
848
|
-
|
|
849
|
-
const
|
|
850
|
-
return
|
|
851
|
-
key:
|
|
852
|
-
...
|
|
847
|
+
return /* @__PURE__ */ ot(Ie, { ...Pe, key: Pe.key, ref: o }, e.map((P, we) => {
|
|
848
|
+
var Me, We, rt, Le;
|
|
849
|
+
const Ae = `${P.key}-${P.dataIndex}-${P.title}-${we}`, Re = N[we], Fe = m[we];
|
|
850
|
+
if (P.$$isOperation) {
|
|
851
|
+
let ye = P.node, Xe = !0;
|
|
852
|
+
P.title === Ye && (ye = (Me = Se.find((Qe) => Qe.name === "selectionNode")) == null ? void 0 : Me.node, Xe = !1), P.title === qe && (ye = (We = Se.find((Qe) => Qe.name === "expandNode")) == null ? void 0 : We.node, Xe = !1);
|
|
853
|
+
const Te = typeof ye == "function" ? ye(I) : ye;
|
|
854
|
+
return _e.cloneElement(Te, {
|
|
855
|
+
key: Ae || we,
|
|
856
|
+
...Te.props,
|
|
853
857
|
className: Z(
|
|
854
|
-
Xe ?
|
|
855
|
-
(rt =
|
|
856
|
-
|
|
858
|
+
Xe ? J : "",
|
|
859
|
+
(rt = Te == null ? void 0 : Te.props) == null ? void 0 : rt.className,
|
|
860
|
+
Fe
|
|
857
861
|
),
|
|
858
862
|
style: {
|
|
859
|
-
...(
|
|
860
|
-
...
|
|
861
|
-
[
|
|
863
|
+
...(Le = Te == null ? void 0 : Te.props) == null ? void 0 : Le.style,
|
|
864
|
+
...P.fixed === "left" ? {
|
|
865
|
+
[Y ? "right" : "left"]: Re
|
|
862
866
|
} : {},
|
|
863
|
-
width:
|
|
864
|
-
minWidth:
|
|
867
|
+
width: P.width,
|
|
868
|
+
minWidth: P.width
|
|
865
869
|
}
|
|
866
870
|
});
|
|
867
871
|
}
|
|
868
|
-
return /* @__PURE__ */
|
|
872
|
+
return /* @__PURE__ */ u(
|
|
869
873
|
wo,
|
|
870
874
|
{
|
|
871
875
|
prefixCls: s,
|
|
872
876
|
virtualized: R,
|
|
873
|
-
component:
|
|
877
|
+
component: d,
|
|
874
878
|
currentSorter: E.find(
|
|
875
|
-
(
|
|
879
|
+
(ye) => ye.field === (P.dataIndex || P.key)
|
|
876
880
|
),
|
|
877
|
-
placeholder:
|
|
881
|
+
placeholder: O,
|
|
878
882
|
indentSize: k,
|
|
879
|
-
stickyClassName:
|
|
880
|
-
stickyOffset:
|
|
881
|
-
InnerComponentTd:
|
|
882
|
-
column:
|
|
883
|
+
stickyClassName: Fe,
|
|
884
|
+
stickyOffset: Re,
|
|
885
|
+
InnerComponentTd: Ce,
|
|
886
|
+
column: P,
|
|
883
887
|
columnIndex: we,
|
|
884
|
-
record:
|
|
888
|
+
record: I,
|
|
885
889
|
trIndex: _,
|
|
886
|
-
level:
|
|
887
|
-
haveTreeData:
|
|
890
|
+
level: H,
|
|
891
|
+
haveTreeData: xe,
|
|
888
892
|
recordHaveChildren: ae,
|
|
889
893
|
rowKey: $,
|
|
890
|
-
renderExpandIcon:
|
|
894
|
+
renderExpandIcon: De,
|
|
891
895
|
___dangerouslySetInnerHTML___: t.___dangerouslySetInnerHTML___
|
|
892
896
|
},
|
|
893
|
-
|
|
897
|
+
Ae
|
|
894
898
|
);
|
|
895
899
|
}));
|
|
896
900
|
}
|
|
897
901
|
const sn = At(No), $o = At(function({
|
|
898
902
|
record: o,
|
|
899
903
|
index: r,
|
|
900
|
-
virtualized:
|
|
904
|
+
virtualized: h,
|
|
901
905
|
tbodyProps: e
|
|
902
|
-
},
|
|
906
|
+
}, d) {
|
|
903
907
|
const {
|
|
904
908
|
prefixCls: l,
|
|
905
909
|
columns: a,
|
|
906
910
|
indentSize: s = 16,
|
|
907
911
|
childrenColumnName: C = "children",
|
|
908
|
-
expandProps:
|
|
909
|
-
rowSelection:
|
|
912
|
+
expandProps: x = {},
|
|
913
|
+
rowSelection: y,
|
|
910
914
|
hasFixedColumn: w,
|
|
911
915
|
tableViewWidth: g,
|
|
912
916
|
getRowKey: k,
|
|
@@ -914,88 +918,88 @@ const sn = At(No), $o = At(function({
|
|
|
914
918
|
expandedRowRender: R
|
|
915
919
|
} = e;
|
|
916
920
|
let N;
|
|
917
|
-
|
|
918
|
-
const
|
|
919
|
-
const
|
|
921
|
+
y && "type" in y ? N = y.type : y && !("type" in y) && (N = "checkbox");
|
|
922
|
+
const m = R && ((_, K) => R(te(_), K)), b = (_) => se(_[C]) && _[C].length, O = (_, K) => "rowExpandable" in x && typeof x.rowExpandable == "function" ? x.rowExpandable(_) : (m == null ? void 0 : m(_, K)) !== null, j = (_, K) => {
|
|
923
|
+
const F = [], H = {
|
|
920
924
|
...e,
|
|
921
925
|
type: N,
|
|
922
|
-
shouldRowExpand:
|
|
926
|
+
shouldRowExpand: O
|
|
923
927
|
};
|
|
924
|
-
|
|
925
|
-
/* @__PURE__ */
|
|
928
|
+
F.push(
|
|
929
|
+
/* @__PURE__ */ u(
|
|
926
930
|
sn,
|
|
927
931
|
{
|
|
928
|
-
ref:
|
|
929
|
-
...
|
|
932
|
+
ref: d,
|
|
933
|
+
...H,
|
|
930
934
|
record: _,
|
|
931
935
|
level: 0,
|
|
932
|
-
index:
|
|
936
|
+
index: K
|
|
933
937
|
},
|
|
934
938
|
k(_)
|
|
935
939
|
)
|
|
936
940
|
);
|
|
937
|
-
const
|
|
938
|
-
|
|
939
|
-
E.indexOf(
|
|
941
|
+
const Y = (c, L, $ = 0) => {
|
|
942
|
+
se(c) && c.length && c.forEach((A, T) => {
|
|
943
|
+
E.indexOf(L) !== -1 && (F.push(
|
|
940
944
|
/* @__PURE__ */ ot(
|
|
941
945
|
sn,
|
|
942
946
|
{
|
|
943
|
-
...
|
|
944
|
-
key: k(
|
|
945
|
-
record:
|
|
947
|
+
...H,
|
|
948
|
+
key: k(A),
|
|
949
|
+
record: A,
|
|
946
950
|
level: $ + 1,
|
|
947
|
-
index:
|
|
951
|
+
index: T
|
|
948
952
|
}
|
|
949
953
|
)
|
|
950
|
-
), b(
|
|
954
|
+
), b(A) && Y(A[C], k(A), $ + 1));
|
|
951
955
|
});
|
|
952
956
|
};
|
|
953
|
-
return
|
|
954
|
-
},
|
|
955
|
-
return /* @__PURE__ */
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
957
|
+
return m || Y(_[C], k(_)), F;
|
|
958
|
+
}, Q = k(o), z = O(o, r) && E.indexOf(Q) !== -1, D = h ? "div" : "tr", I = h ? "div" : "td";
|
|
959
|
+
return /* @__PURE__ */ de(_e.Fragment, { children: [
|
|
960
|
+
j(o, r),
|
|
961
|
+
z && /* @__PURE__ */ u(
|
|
962
|
+
D,
|
|
959
963
|
{
|
|
960
964
|
className: Z(`${l}-tr`, `${l}-expand-content`),
|
|
961
|
-
children: /* @__PURE__ */
|
|
962
|
-
|
|
965
|
+
children: /* @__PURE__ */ u(
|
|
966
|
+
I,
|
|
963
967
|
{
|
|
964
968
|
className: Z(`${l}-td`),
|
|
965
969
|
style: { paddingLeft: s },
|
|
966
970
|
colSpan: a.length,
|
|
967
|
-
children: w ? /* @__PURE__ */
|
|
971
|
+
children: w ? /* @__PURE__ */ u(
|
|
968
972
|
"div",
|
|
969
973
|
{
|
|
970
974
|
className: `${l}-expand-fixed-row`,
|
|
971
975
|
style: { width: g },
|
|
972
|
-
children:
|
|
976
|
+
children: m == null ? void 0 : m(o, r)
|
|
973
977
|
}
|
|
974
|
-
) :
|
|
978
|
+
) : m == null ? void 0 : m(o, r)
|
|
975
979
|
}
|
|
976
980
|
)
|
|
977
981
|
},
|
|
978
|
-
`${
|
|
982
|
+
`${Q}-expanded`
|
|
979
983
|
)
|
|
980
|
-
] },
|
|
984
|
+
] }, Q);
|
|
981
985
|
});
|
|
982
986
|
function bo(t) {
|
|
983
987
|
const {
|
|
984
988
|
data: o,
|
|
985
989
|
columns: r,
|
|
986
|
-
prefixCls:
|
|
990
|
+
prefixCls: h,
|
|
987
991
|
component: e,
|
|
988
|
-
noDataElement:
|
|
992
|
+
noDataElement: d,
|
|
989
993
|
scroll: l,
|
|
990
994
|
tableViewWidth: a,
|
|
991
995
|
virtualized: s,
|
|
992
996
|
virtualListProps: C,
|
|
993
|
-
getRowKey:
|
|
994
|
-
saveVirtualListRef:
|
|
997
|
+
getRowKey: x,
|
|
998
|
+
saveVirtualListRef: y
|
|
995
999
|
} = t, w = (b) => {
|
|
996
|
-
var
|
|
997
|
-
(
|
|
998
|
-
}, { ComponentTbody: g } =
|
|
1000
|
+
var O;
|
|
1001
|
+
(O = t.saveRef) == null || O.call(t, b);
|
|
1002
|
+
}, { ComponentTbody: g } = Ke(e);
|
|
999
1003
|
let k = {}, E = {};
|
|
1000
1004
|
l && (l.x && (typeof l.x == "number" || typeof l.x == "string") && (k = {
|
|
1001
1005
|
width: l.x
|
|
@@ -1003,23 +1007,23 @@ function bo(t) {
|
|
|
1003
1007
|
maxHeight: l.y
|
|
1004
1008
|
}));
|
|
1005
1009
|
const R = {
|
|
1006
|
-
className: `${
|
|
1010
|
+
className: `${h}-no-data`
|
|
1007
1011
|
};
|
|
1008
|
-
a && (R.className = `${
|
|
1009
|
-
const N = /* @__PURE__ */
|
|
1010
|
-
const
|
|
1011
|
-
return /* @__PURE__ */
|
|
1012
|
+
a && (R.className = `${h}-no-data ${h}-expand-fixed-row`, R.style = { width: a });
|
|
1013
|
+
const N = /* @__PURE__ */ u("tr", { className: Z(`${h}-tr`, `${h}-empty-row`), children: /* @__PURE__ */ u("td", { className: `${h}-td`, colSpan: r.length, children: /* @__PURE__ */ u("div", { ...R, children: d }) }) }), m = (b, O) => {
|
|
1014
|
+
const j = x(b) || O;
|
|
1015
|
+
return /* @__PURE__ */ u(
|
|
1012
1016
|
$o,
|
|
1013
1017
|
{
|
|
1014
1018
|
record: b,
|
|
1015
|
-
index:
|
|
1019
|
+
index: O,
|
|
1016
1020
|
virtualized: s,
|
|
1017
1021
|
tbodyProps: t
|
|
1018
1022
|
},
|
|
1019
|
-
|
|
1023
|
+
j
|
|
1020
1024
|
);
|
|
1021
1025
|
};
|
|
1022
|
-
return s ? o.length > 0 ? /* @__PURE__ */
|
|
1026
|
+
return s ? o.length > 0 ? /* @__PURE__ */ u(
|
|
1023
1027
|
qn,
|
|
1024
1028
|
{
|
|
1025
1029
|
data: o,
|
|
@@ -1027,23 +1031,23 @@ function bo(t) {
|
|
|
1027
1031
|
isStaticItemHeight: !1,
|
|
1028
1032
|
outerStyle: { ...k, minWidth: "100%", overflow: "visible" },
|
|
1029
1033
|
innerStyle: { right: "auto", minWidth: "100%" },
|
|
1030
|
-
className: `${
|
|
1034
|
+
className: `${h}-body`,
|
|
1031
1035
|
ref: (b) => {
|
|
1032
|
-
|
|
1036
|
+
y(b), w(b == null ? void 0 : b.dom);
|
|
1033
1037
|
},
|
|
1034
|
-
itemKey:
|
|
1038
|
+
itemKey: x,
|
|
1035
1039
|
...C,
|
|
1036
|
-
children:
|
|
1040
|
+
children: m
|
|
1037
1041
|
}
|
|
1038
|
-
) : /* @__PURE__ */
|
|
1042
|
+
) : /* @__PURE__ */ u("div", { className: `${h}-body`, ref: w, children: /* @__PURE__ */ u("table", { children: /* @__PURE__ */ u("tbody", { children: N }) }) }) : /* @__PURE__ */ u(g, { ref: w, children: o.length > 0 ? o.map(m) : N });
|
|
1039
1043
|
}
|
|
1040
1044
|
const dn = Dn({});
|
|
1041
1045
|
function So(t) {
|
|
1042
|
-
const { summary: o, data: r, prefixCls:
|
|
1043
|
-
return /* @__PURE__ */
|
|
1046
|
+
const { summary: o, data: r, prefixCls: h, columns: e, stickyOffsets: d, stickyClassNames: l } = t;
|
|
1047
|
+
return /* @__PURE__ */ u("tfoot", { className: `${h}-tfoot`, children: /* @__PURE__ */ u(
|
|
1044
1048
|
dn.Provider,
|
|
1045
1049
|
{
|
|
1046
|
-
value: { columns: e, stickyOffsets:
|
|
1050
|
+
value: { columns: e, stickyOffsets: d, stickyClassNames: l, prefixCls: h },
|
|
1047
1051
|
children: o(te(r))
|
|
1048
1052
|
}
|
|
1049
1053
|
) });
|
|
@@ -1056,170 +1060,170 @@ function ko({
|
|
|
1056
1060
|
onSort: t,
|
|
1057
1061
|
onFilter: o,
|
|
1058
1062
|
onHandleFilter: r,
|
|
1059
|
-
onHandleFilterReset:
|
|
1063
|
+
onHandleFilterReset: h,
|
|
1060
1064
|
currentFilters: e = {},
|
|
1061
|
-
currentSorter:
|
|
1065
|
+
currentSorter: d,
|
|
1062
1066
|
_key: l,
|
|
1063
1067
|
dataIndex: a,
|
|
1064
1068
|
title: s,
|
|
1065
1069
|
sorter: C,
|
|
1066
|
-
sortDirections:
|
|
1067
|
-
filters:
|
|
1070
|
+
sortDirections: x = ["ascend", "descend"],
|
|
1071
|
+
filters: y = [],
|
|
1068
1072
|
columnFixedStyle: w,
|
|
1069
1073
|
className: g,
|
|
1070
1074
|
cellStyle: k,
|
|
1071
1075
|
headerCellStyle: E,
|
|
1072
1076
|
rowSpan: R,
|
|
1073
1077
|
colSpan: N,
|
|
1074
|
-
headerCellProps:
|
|
1078
|
+
headerCellProps: m,
|
|
1075
1079
|
prefixCls: b,
|
|
1076
|
-
align:
|
|
1077
|
-
component:
|
|
1078
|
-
filterIcon:
|
|
1079
|
-
filterDropdown:
|
|
1080
|
-
filterMultiple:
|
|
1081
|
-
ellipsis:
|
|
1080
|
+
align: O = "left",
|
|
1081
|
+
component: j,
|
|
1082
|
+
filterIcon: Q,
|
|
1083
|
+
filterDropdown: z,
|
|
1084
|
+
filterMultiple: D = !0,
|
|
1085
|
+
ellipsis: I,
|
|
1082
1086
|
filterDropdownProps: _,
|
|
1083
|
-
onFilterDropdownVisibleChange:
|
|
1084
|
-
column:
|
|
1085
|
-
showSorterTooltip:
|
|
1086
|
-
index:
|
|
1087
|
+
onFilterDropdownVisibleChange: K,
|
|
1088
|
+
column: F,
|
|
1089
|
+
showSorterTooltip: H,
|
|
1090
|
+
index: Y
|
|
1087
1091
|
}) {
|
|
1088
|
-
const { locale:
|
|
1092
|
+
const { locale: c, rtl: L } = Be(Ge), $ = l || a || Y, [A, T, f] = no([], {
|
|
1089
1093
|
value: e[$] || []
|
|
1090
|
-
}), [v,
|
|
1094
|
+
}), [v, ee] = Ne(!1), [M, fe] = Ne(!1), J = C && se(x) && x.length, oe = J ? ue() : void 0;
|
|
1091
1095
|
nt(() => {
|
|
1092
|
-
|
|
1096
|
+
T(e[$] || []);
|
|
1093
1097
|
}, [e, $]), nt(() => {
|
|
1094
|
-
|
|
1098
|
+
A && A !== f && T(A);
|
|
1095
1099
|
}, [v]);
|
|
1096
|
-
function
|
|
1097
|
-
const
|
|
1098
|
-
if (!
|
|
1099
|
-
return
|
|
1100
|
-
const
|
|
1101
|
-
if (
|
|
1102
|
-
return
|
|
1100
|
+
function ue() {
|
|
1101
|
+
const W = d && d.direction;
|
|
1102
|
+
if (!W || d && d.field !== $)
|
|
1103
|
+
return x[0];
|
|
1104
|
+
const ce = x.indexOf(W);
|
|
1105
|
+
if (ce < x.length)
|
|
1106
|
+
return x[ce + 1];
|
|
1103
1107
|
}
|
|
1104
|
-
function
|
|
1105
|
-
|
|
1106
|
-
{ onFilter: o, filters:
|
|
1107
|
-
|
|
1108
|
+
function pe() {
|
|
1109
|
+
A && (r == null || r(
|
|
1110
|
+
{ onFilter: o, filters: y, dataIndex: $ },
|
|
1111
|
+
f
|
|
1108
1112
|
), ae(!1));
|
|
1109
1113
|
}
|
|
1110
|
-
function
|
|
1111
|
-
|
|
1114
|
+
function ie() {
|
|
1115
|
+
h({ dataIndex: $ }), ae(!1);
|
|
1112
1116
|
}
|
|
1113
|
-
function ae(
|
|
1114
|
-
|
|
1117
|
+
function ae(W) {
|
|
1118
|
+
ee(W), K == null || K(W);
|
|
1115
1119
|
}
|
|
1116
|
-
function
|
|
1117
|
-
let ne = [...
|
|
1118
|
-
if (
|
|
1119
|
-
|
|
1120
|
-
ne.findIndex((
|
|
1120
|
+
function xe(W, ce) {
|
|
1121
|
+
let ne = [...f];
|
|
1122
|
+
if (D)
|
|
1123
|
+
ce ? ne = ne.concat(W) : ne.splice(
|
|
1124
|
+
ne.findIndex((Se) => Se === W),
|
|
1121
1125
|
1
|
|
1122
1126
|
);
|
|
1123
1127
|
else if (ne.length > 0)
|
|
1124
|
-
if (ne[0] !==
|
|
1125
|
-
ne = [
|
|
1128
|
+
if (ne[0] !== W)
|
|
1129
|
+
ne = [W];
|
|
1126
1130
|
else
|
|
1127
1131
|
return;
|
|
1128
1132
|
else
|
|
1129
|
-
ne = [
|
|
1130
|
-
|
|
1133
|
+
ne = [W];
|
|
1134
|
+
T(ne);
|
|
1131
1135
|
}
|
|
1132
|
-
function
|
|
1133
|
-
|
|
1134
|
-
{ filters:
|
|
1135
|
-
|
|
1136
|
+
function U(W) {
|
|
1137
|
+
T(W || f), ee(!1), r == null || r(
|
|
1138
|
+
{ filters: y, onFilter: o, dataIndex: $ },
|
|
1139
|
+
W || f
|
|
1136
1140
|
);
|
|
1137
1141
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return typeof
|
|
1140
|
-
filterKeys:
|
|
1141
|
-
setFilterKeys: (
|
|
1142
|
-
|
|
1142
|
+
function be() {
|
|
1143
|
+
return typeof z == "function" ? z({
|
|
1144
|
+
filterKeys: f,
|
|
1145
|
+
setFilterKeys: (W, ce) => {
|
|
1146
|
+
T(W), ce == null || ce();
|
|
1143
1147
|
},
|
|
1144
|
-
confirm:
|
|
1145
|
-
}) : /* @__PURE__ */
|
|
1146
|
-
/* @__PURE__ */
|
|
1147
|
-
const
|
|
1148
|
-
return /* @__PURE__ */
|
|
1148
|
+
confirm: U
|
|
1149
|
+
}) : /* @__PURE__ */ de("div", { className: `${b}-filters-popup`, children: [
|
|
1150
|
+
/* @__PURE__ */ u("div", { className: `${b}-filters-list`, children: y.map((W) => {
|
|
1151
|
+
const ce = f.findIndex((ne) => ne === W.value) !== -1;
|
|
1152
|
+
return /* @__PURE__ */ u("div", { className: `${b}-filters-item`, children: D ? /* @__PURE__ */ u(
|
|
1149
1153
|
Ft,
|
|
1150
1154
|
{
|
|
1151
|
-
checked:
|
|
1152
|
-
onChange: (ne) =>
|
|
1153
|
-
children:
|
|
1155
|
+
checked: ce,
|
|
1156
|
+
onChange: (ne) => xe(W.value, ne),
|
|
1157
|
+
children: W.text
|
|
1154
1158
|
}
|
|
1155
|
-
) : /* @__PURE__ */
|
|
1159
|
+
) : /* @__PURE__ */ u(
|
|
1156
1160
|
ln,
|
|
1157
1161
|
{
|
|
1158
|
-
checked:
|
|
1159
|
-
onChange: (ne) =>
|
|
1160
|
-
children:
|
|
1162
|
+
checked: ce,
|
|
1163
|
+
onChange: (ne) => xe(W.value, ne),
|
|
1164
|
+
children: W.text
|
|
1161
1165
|
}
|
|
1162
|
-
) },
|
|
1166
|
+
) }, W.value);
|
|
1163
1167
|
}) }),
|
|
1164
|
-
/* @__PURE__ */
|
|
1165
|
-
/* @__PURE__ */
|
|
1166
|
-
/* @__PURE__ */
|
|
1168
|
+
/* @__PURE__ */ de(oo, { className: `${b}-filters-btn`, children: [
|
|
1169
|
+
/* @__PURE__ */ u(tn, { onClick: ie, size: "mini", children: c.Table.resetText }),
|
|
1170
|
+
/* @__PURE__ */ u(tn, { onClick: pe, type: "primary", size: "mini", children: c.Table.okText })
|
|
1167
1171
|
] })
|
|
1168
1172
|
] });
|
|
1169
1173
|
}
|
|
1170
|
-
const
|
|
1171
|
-
[`${b}-sorter-icon-active`]:
|
|
1172
|
-
}),
|
|
1174
|
+
const he = (W) => Z(`${b}-sorter-icon`, {
|
|
1175
|
+
[`${b}-sorter-icon-active`]: d && d.direction === W && d.field === $
|
|
1176
|
+
}), re = Z(`${b}-filters`, {
|
|
1173
1177
|
[`${b}-filters-open`]: v,
|
|
1174
|
-
[`${b}-filters-active`]:
|
|
1178
|
+
[`${b}-filters-active`]: A && A.length
|
|
1175
1179
|
});
|
|
1176
|
-
let
|
|
1180
|
+
let G = {
|
|
1177
1181
|
...w
|
|
1178
1182
|
};
|
|
1179
|
-
|
|
1180
|
-
...
|
|
1183
|
+
q(k) && (G = {
|
|
1184
|
+
...G,
|
|
1181
1185
|
...k
|
|
1182
|
-
}),
|
|
1183
|
-
...
|
|
1186
|
+
}), q(E) && (G = {
|
|
1187
|
+
...G,
|
|
1184
1188
|
...E
|
|
1185
|
-
}),
|
|
1186
|
-
...
|
|
1189
|
+
}), gt(E) && (G = {
|
|
1190
|
+
...G,
|
|
1187
1191
|
...E()
|
|
1188
|
-
}),
|
|
1189
|
-
const
|
|
1190
|
-
style:
|
|
1192
|
+
}), O && O !== "left" && (G.textAlign = O);
|
|
1193
|
+
const ge = {
|
|
1194
|
+
style: G,
|
|
1191
1195
|
key: l || $
|
|
1192
1196
|
};
|
|
1193
|
-
N && N > 1 && (
|
|
1194
|
-
const { ComponentTh:
|
|
1195
|
-
|
|
1197
|
+
N && N > 1 && (ge.colSpan = N), R && R > 1 && (ge.rowSpan = R);
|
|
1198
|
+
const { ComponentTh: Ie, ComponentHeaderCell: Ce } = Ke(j), Ee = se(y) && y.length > 0 || typeof z == "function", Pe = I && typeof s == "string" ? { title: s } : {}, De = _ && _.triggerProps, He = /* @__PURE__ */ de(xt, { children: [
|
|
1199
|
+
J ? /* @__PURE__ */ u(
|
|
1196
1200
|
an,
|
|
1197
1201
|
{
|
|
1198
|
-
content: Ro(oe,
|
|
1199
|
-
disabled: !
|
|
1200
|
-
...
|
|
1201
|
-
children: /* @__PURE__ */
|
|
1202
|
+
content: Ro(oe, c),
|
|
1203
|
+
disabled: !H,
|
|
1204
|
+
...q(H) ? H : {},
|
|
1205
|
+
children: /* @__PURE__ */ de(
|
|
1202
1206
|
"div",
|
|
1203
1207
|
{
|
|
1204
1208
|
className: `${b}-cell-with-sorter`,
|
|
1205
1209
|
onMouseEnter: () => {
|
|
1206
|
-
|
|
1210
|
+
fe(!0);
|
|
1207
1211
|
},
|
|
1208
1212
|
onMouseLeave: () => {
|
|
1209
|
-
|
|
1213
|
+
fe(!1);
|
|
1210
1214
|
},
|
|
1211
1215
|
onClick: () => t(oe, $),
|
|
1212
1216
|
children: [
|
|
1213
|
-
/* @__PURE__ */
|
|
1214
|
-
|
|
1217
|
+
/* @__PURE__ */ u("span", { className: `${b}-th-item-title`, ...Pe, children: s }),
|
|
1218
|
+
J && /* @__PURE__ */ de(
|
|
1215
1219
|
"div",
|
|
1216
1220
|
{
|
|
1217
1221
|
className: Z(`${b}-sorter`, {
|
|
1218
|
-
[`${b}-sorter-direction-one`]:
|
|
1222
|
+
[`${b}-sorter-direction-one`]: x.length === 1
|
|
1219
1223
|
}),
|
|
1220
1224
|
children: [
|
|
1221
|
-
|
|
1222
|
-
|
|
1225
|
+
x.indexOf("ascend") !== -1 && /* @__PURE__ */ u("div", { className: he("ascend"), children: /* @__PURE__ */ u(eo, {}) }),
|
|
1226
|
+
x.indexOf("descend") !== -1 && /* @__PURE__ */ u("div", { className: he("descend"), children: /* @__PURE__ */ u(Zn, {}) })
|
|
1223
1227
|
]
|
|
1224
1228
|
}
|
|
1225
1229
|
)
|
|
@@ -1227,48 +1231,48 @@ function ko({
|
|
|
1227
1231
|
}
|
|
1228
1232
|
)
|
|
1229
1233
|
}
|
|
1230
|
-
) : /* @__PURE__ */
|
|
1231
|
-
|
|
1234
|
+
) : /* @__PURE__ */ u("span", { className: `${b}-th-item-title`, ...Pe, children: s }),
|
|
1235
|
+
Ee && /* @__PURE__ */ u(
|
|
1232
1236
|
ro,
|
|
1233
1237
|
{
|
|
1234
|
-
popup:
|
|
1238
|
+
popup: be,
|
|
1235
1239
|
trigger: "click",
|
|
1236
1240
|
classNames: "slideDynamicOrigin",
|
|
1237
|
-
position:
|
|
1241
|
+
position: L ? "bl" : "br",
|
|
1238
1242
|
popupAlign: To,
|
|
1239
1243
|
popupVisible: v,
|
|
1240
1244
|
onVisibleChange: ae,
|
|
1241
|
-
...
|
|
1242
|
-
children: /* @__PURE__ */
|
|
1245
|
+
...De,
|
|
1246
|
+
children: /* @__PURE__ */ u("div", { className: re, children: Q || /* @__PURE__ */ u(to, {}) })
|
|
1243
1247
|
}
|
|
1244
1248
|
)
|
|
1245
|
-
] }),
|
|
1246
|
-
[`${b}-cell-text-ellipsis`]:
|
|
1247
|
-
[`${b}-cell-mouseenter`]:
|
|
1248
|
-
[`${b}-cell-next-${oe}`]:
|
|
1249
|
-
[`${b}-col-has-sorter`]:
|
|
1250
|
-
[`${b}-col-has-filter`]:
|
|
1249
|
+
] }), ke = Z(`${b}-th-item`, {
|
|
1250
|
+
[`${b}-cell-text-ellipsis`]: I,
|
|
1251
|
+
[`${b}-cell-mouseenter`]: M,
|
|
1252
|
+
[`${b}-cell-next-${oe}`]: M && oe,
|
|
1253
|
+
[`${b}-col-has-sorter`]: J,
|
|
1254
|
+
[`${b}-col-has-filter`]: Ee
|
|
1251
1255
|
});
|
|
1252
1256
|
return N !== 0 && /* @__PURE__ */ ot(
|
|
1253
|
-
|
|
1257
|
+
Ie,
|
|
1254
1258
|
{
|
|
1255
1259
|
className: Z(
|
|
1256
1260
|
`${b}-th`,
|
|
1257
1261
|
{
|
|
1258
|
-
[`${b}-col-sorted`]:
|
|
1262
|
+
[`${b}-col-sorted`]: d && d.direction && d.field === $
|
|
1259
1263
|
},
|
|
1260
1264
|
g
|
|
1261
1265
|
),
|
|
1262
|
-
...
|
|
1263
|
-
key:
|
|
1264
|
-
...
|
|
1266
|
+
...ge,
|
|
1267
|
+
key: ge.key,
|
|
1268
|
+
...m
|
|
1265
1269
|
},
|
|
1266
|
-
je(
|
|
1267
|
-
|
|
1270
|
+
je(Ce) ? /* @__PURE__ */ u(Ce, { className: ke, children: He }) : /* @__PURE__ */ u(
|
|
1271
|
+
Ce,
|
|
1268
1272
|
{
|
|
1269
|
-
className:
|
|
1270
|
-
column:
|
|
1271
|
-
children:
|
|
1273
|
+
className: ke,
|
|
1274
|
+
column: F,
|
|
1275
|
+
children: He
|
|
1272
1276
|
}
|
|
1273
1277
|
)
|
|
1274
1278
|
);
|
|
@@ -1277,40 +1281,40 @@ function vo(t) {
|
|
|
1277
1281
|
const {
|
|
1278
1282
|
activeSorters: o,
|
|
1279
1283
|
expandedRowRender: r,
|
|
1280
|
-
expandProps:
|
|
1284
|
+
expandProps: h = {},
|
|
1281
1285
|
onSort: e,
|
|
1282
|
-
onHandleFilter:
|
|
1286
|
+
onHandleFilter: d,
|
|
1283
1287
|
onHandleFilterReset: l,
|
|
1284
1288
|
onHeaderRow: a,
|
|
1285
1289
|
prefixCls: s,
|
|
1286
1290
|
currentFilters: C,
|
|
1287
|
-
component:
|
|
1288
|
-
data:
|
|
1291
|
+
component: x,
|
|
1292
|
+
data: y,
|
|
1289
1293
|
selectedRowKeys: w,
|
|
1290
1294
|
rowSelection: g,
|
|
1291
1295
|
allSelectedRowKeys: k = [],
|
|
1292
1296
|
groupColumns: E,
|
|
1293
1297
|
stickyOffsets: R,
|
|
1294
1298
|
groupStickyClassNames: N,
|
|
1295
|
-
showSorterTooltip:
|
|
1296
|
-
} = t, { rtl: b } =
|
|
1297
|
-
const
|
|
1298
|
-
return w.filter((
|
|
1299
|
-
}, [w, k]),
|
|
1300
|
-
return /* @__PURE__ */
|
|
1301
|
-
const
|
|
1299
|
+
showSorterTooltip: m
|
|
1300
|
+
} = t, { rtl: b } = Be(Ge), { ComponentThead: O, ComponentHeaderRow: j, getHeaderComponentOperations: Q } = Ke(x), z = g && (g.type === "checkbox" || !("type" in g)), D = g && "checkAll" in g ? g.checkAll : !0, I = g && g.type === "radio", { columnTitle: _ } = h, K = le(() => {
|
|
1301
|
+
const Y = new Set(k);
|
|
1302
|
+
return w.filter((c) => Y.has(c));
|
|
1303
|
+
}, [w, k]), F = E.length > 1 ? { rowSpan: E.length } : {}, H = Z(`${s}-th`, `${s}-operation`);
|
|
1304
|
+
return /* @__PURE__ */ u(O, { children: E.map((Y, c) => {
|
|
1305
|
+
const L = a == null ? void 0 : a(Y, c), $ = (z || I) && c === 0 && /* @__PURE__ */ u(
|
|
1302
1306
|
"th",
|
|
1303
1307
|
{
|
|
1304
1308
|
className: Z(
|
|
1305
|
-
|
|
1306
|
-
`${s}-${
|
|
1309
|
+
H,
|
|
1310
|
+
`${s}-${I ? "radio" : "checkbox"}`
|
|
1307
1311
|
),
|
|
1308
|
-
children: /* @__PURE__ */
|
|
1309
|
-
|
|
1312
|
+
children: /* @__PURE__ */ de("div", { className: `${s}-th-item`, children: [
|
|
1313
|
+
D && !I ? /* @__PURE__ */ u(
|
|
1310
1314
|
Ft,
|
|
1311
1315
|
{
|
|
1312
|
-
indeterminate:
|
|
1313
|
-
checked:
|
|
1316
|
+
indeterminate: y && K.length > 0 && K.length !== k.length,
|
|
1317
|
+
checked: y && K.length !== 0 && K.length === k.length,
|
|
1314
1318
|
disabled: !k.length,
|
|
1315
1319
|
onChange: t.onCheckAll
|
|
1316
1320
|
}
|
|
@@ -1318,72 +1322,72 @@ function vo(t) {
|
|
|
1318
1322
|
g && g.columnTitle
|
|
1319
1323
|
] })
|
|
1320
1324
|
}
|
|
1321
|
-
),
|
|
1325
|
+
), A = r && /* @__PURE__ */ u("th", { className: Z(H, `${s}-expand`), children: _ && /* @__PURE__ */ u("div", { className: `${s}-th-item`, children: _ }) }), T = N[c], f = Q({
|
|
1322
1326
|
selectionNode: $,
|
|
1323
|
-
expandNode:
|
|
1327
|
+
expandNode: A
|
|
1324
1328
|
});
|
|
1325
1329
|
return /* @__PURE__ */ ot(
|
|
1326
|
-
|
|
1330
|
+
j,
|
|
1327
1331
|
{
|
|
1328
|
-
...
|
|
1329
|
-
key:
|
|
1332
|
+
...L,
|
|
1333
|
+
key: c,
|
|
1330
1334
|
className: `${s}-tr`
|
|
1331
1335
|
},
|
|
1332
|
-
|
|
1333
|
-
var
|
|
1334
|
-
const
|
|
1335
|
-
let
|
|
1336
|
-
Array.isArray(
|
|
1337
|
-
const
|
|
1336
|
+
Y.map((v, ee) => {
|
|
1337
|
+
var ie, ae, xe, U, be;
|
|
1338
|
+
const M = v.$$columnIndex;
|
|
1339
|
+
let fe = 0;
|
|
1340
|
+
Array.isArray(M) && M.length === 2 ? fe = v.fixed === "right" ? R[M[1]] : R[M[0]] : typeof M == "number" && (fe = R[M] || 0);
|
|
1341
|
+
const J = T[ee];
|
|
1338
1342
|
if (v.$$isOperation) {
|
|
1339
|
-
let
|
|
1340
|
-
v.title === Ye && (
|
|
1341
|
-
(
|
|
1342
|
-
)) == null ? void 0 :
|
|
1343
|
-
(
|
|
1344
|
-
)) == null ? void 0 : ae.node,
|
|
1345
|
-
const
|
|
1346
|
-
return
|
|
1347
|
-
key: v.key ||
|
|
1348
|
-
...
|
|
1349
|
-
...
|
|
1343
|
+
let he = v.node, re = !0;
|
|
1344
|
+
v.title === Ye && (he = (ie = f.find(
|
|
1345
|
+
(ge) => ge.name === "selectionNode"
|
|
1346
|
+
)) == null ? void 0 : ie.node, re = !1), v.title === qe && (he = (ae = f.find(
|
|
1347
|
+
(ge) => ge.name === "expandNode"
|
|
1348
|
+
)) == null ? void 0 : ae.node, re = !1);
|
|
1349
|
+
const G = he;
|
|
1350
|
+
return _e.cloneElement(G, {
|
|
1351
|
+
key: v.key || ee,
|
|
1352
|
+
...G.props,
|
|
1353
|
+
...F,
|
|
1350
1354
|
className: Z(
|
|
1351
|
-
|
|
1352
|
-
(
|
|
1353
|
-
|
|
1355
|
+
re ? H : "",
|
|
1356
|
+
(xe = G == null ? void 0 : G.props) == null ? void 0 : xe.className,
|
|
1357
|
+
J
|
|
1354
1358
|
),
|
|
1355
1359
|
style: {
|
|
1356
|
-
...(
|
|
1360
|
+
...(U = G == null ? void 0 : G.props) == null ? void 0 : U.style,
|
|
1357
1361
|
...v.fixed === "left" ? {
|
|
1358
|
-
[b ? "right" : "left"]:
|
|
1362
|
+
[b ? "right" : "left"]: fe
|
|
1359
1363
|
} : {},
|
|
1360
1364
|
width: v.width,
|
|
1361
1365
|
minWidth: v.width
|
|
1362
1366
|
}
|
|
1363
1367
|
});
|
|
1364
1368
|
}
|
|
1365
|
-
const oe = (
|
|
1366
|
-
return v.fixed === "left" && (
|
|
1369
|
+
const oe = (be = v == null ? void 0 : v.onHeaderCell) == null ? void 0 : be.call(v, v, ee), ue = Z(J, v.className), pe = {};
|
|
1370
|
+
return v.fixed === "left" && (pe[b ? "right" : "left"] = fe), v.fixed === "right" && (pe[b ? "left" : "right"] = fe), /* @__PURE__ */ ot(
|
|
1367
1371
|
ko,
|
|
1368
1372
|
{
|
|
1369
|
-
index:
|
|
1373
|
+
index: ee,
|
|
1370
1374
|
onSort: e,
|
|
1371
|
-
onHandleFilter:
|
|
1375
|
+
onHandleFilter: d,
|
|
1372
1376
|
onHandleFilterReset: l,
|
|
1373
1377
|
currentSorter: o.find(
|
|
1374
|
-
(
|
|
1378
|
+
(he) => he.field === (v.dataIndex || v.key)
|
|
1375
1379
|
),
|
|
1376
1380
|
currentFilters: C,
|
|
1377
|
-
_key: v.key || v.dataIndex ||
|
|
1381
|
+
_key: v.key || v.dataIndex || ee,
|
|
1378
1382
|
...v,
|
|
1379
1383
|
key: v.key,
|
|
1380
1384
|
column: v,
|
|
1381
1385
|
headerCellProps: oe,
|
|
1382
1386
|
prefixCls: s,
|
|
1383
|
-
component:
|
|
1384
|
-
className:
|
|
1385
|
-
columnFixedStyle:
|
|
1386
|
-
showSorterTooltip:
|
|
1387
|
+
component: x,
|
|
1388
|
+
className: ue,
|
|
1389
|
+
columnFixedStyle: pe,
|
|
1390
|
+
showSorterTooltip: m
|
|
1387
1391
|
}
|
|
1388
1392
|
);
|
|
1389
1393
|
})
|
|
@@ -1404,89 +1408,89 @@ function Po(t, o) {
|
|
|
1404
1408
|
var Qt, Jt;
|
|
1405
1409
|
const {
|
|
1406
1410
|
getPrefixCls: r,
|
|
1407
|
-
loadingElement:
|
|
1411
|
+
loadingElement: h,
|
|
1408
1412
|
size: e,
|
|
1409
|
-
tablePagination:
|
|
1413
|
+
tablePagination: d,
|
|
1410
1414
|
renderEmpty: l,
|
|
1411
1415
|
componentConfig: a,
|
|
1412
1416
|
rtl: s
|
|
1413
|
-
} =
|
|
1417
|
+
} = Be(Ge), C = Zt(
|
|
1414
1418
|
t,
|
|
1415
1419
|
Io,
|
|
1416
1420
|
a == null ? void 0 : a.Table
|
|
1417
|
-
),
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
+
), x = Zt(
|
|
1422
|
+
q(t == null ? void 0 : t.pagination) ? t == null ? void 0 : t.pagination : {},
|
|
1423
|
+
q((Qt = a == null ? void 0 : a.Table) == null ? void 0 : Qt.pagination) ? (Jt = a == null ? void 0 : a.Table) == null ? void 0 : Jt.pagination : {},
|
|
1424
|
+
d || {}
|
|
1421
1425
|
), {
|
|
1422
|
-
style:
|
|
1426
|
+
style: y,
|
|
1423
1427
|
className: w,
|
|
1424
1428
|
component: g,
|
|
1425
1429
|
border: k,
|
|
1426
1430
|
borderCell: E,
|
|
1427
1431
|
columns: R = Eo,
|
|
1428
1432
|
data: N = _o,
|
|
1429
|
-
scroll:
|
|
1433
|
+
scroll: m,
|
|
1430
1434
|
noDataElement: b,
|
|
1431
|
-
showHeader:
|
|
1432
|
-
stripe:
|
|
1433
|
-
hover:
|
|
1434
|
-
pagination:
|
|
1435
|
-
onChange:
|
|
1436
|
-
pagePosition:
|
|
1435
|
+
showHeader: O,
|
|
1436
|
+
stripe: j,
|
|
1437
|
+
hover: Q,
|
|
1438
|
+
pagination: z,
|
|
1439
|
+
onChange: D,
|
|
1440
|
+
pagePosition: I,
|
|
1437
1441
|
childrenColumnName: _,
|
|
1438
|
-
indentSize:
|
|
1439
|
-
rowSelection:
|
|
1440
|
-
tableLayoutFixed:
|
|
1441
|
-
footer:
|
|
1442
|
-
virtualized:
|
|
1443
|
-
renderPagination:
|
|
1442
|
+
indentSize: K,
|
|
1443
|
+
rowSelection: F,
|
|
1444
|
+
tableLayoutFixed: H,
|
|
1445
|
+
footer: Y,
|
|
1446
|
+
virtualized: c,
|
|
1447
|
+
renderPagination: L,
|
|
1444
1448
|
summary: $,
|
|
1445
|
-
rowKey:
|
|
1446
|
-
} = C,
|
|
1449
|
+
rowKey: A
|
|
1450
|
+
} = C, T = le(
|
|
1447
1451
|
() => co(N, _),
|
|
1448
1452
|
[N, _]
|
|
1449
|
-
),
|
|
1450
|
-
|
|
1451
|
-
), [
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1453
|
+
), f = r("table"), v = C.size || (["default", "middle", "small"].indexOf(e) > -1 ? e : "default"), ee = me(null), M = me(null), fe = me(null), J = me(null), oe = me(null), ue = me(null), pe = me(null), ie = me(0), ae = me(!1), [xe, U] = io(C), { currentFilters: be, defaultSorters: he } = rt(), [re, G] = Ne(1), [ge, Ie] = Ne(
|
|
1454
|
+
x.pageSize || x.defaultPageSize || 10
|
|
1455
|
+
), [Ce, Ee] = Ne(be), [Pe, De] = Ne(0), [He, ke] = Ne([]), W = xo(U), [ce, ne] = mo(
|
|
1456
|
+
xe,
|
|
1457
|
+
U,
|
|
1458
|
+
f
|
|
1455
1459
|
), {
|
|
1456
|
-
currentSorter:
|
|
1457
|
-
activeSorters:
|
|
1460
|
+
currentSorter: Se,
|
|
1461
|
+
activeSorters: P,
|
|
1458
1462
|
getNextActiveSorters: we,
|
|
1459
|
-
updateStateSorters:
|
|
1460
|
-
} = yo(
|
|
1463
|
+
updateStateSorters: Ae
|
|
1464
|
+
} = yo(U, he), { ComponentTable: Re, ComponentBodyWrapper: Fe, ComponentHeaderWrapper: Me } = Ke(g), We = le(() => typeof A == "function" ? (n) => A(te(n)) : (n) => n[A], [A]);
|
|
1461
1465
|
function rt() {
|
|
1462
1466
|
const n = {};
|
|
1463
1467
|
let i = [];
|
|
1464
|
-
return
|
|
1468
|
+
return U.forEach((p) => {
|
|
1465
1469
|
const S = p.dataIndex || p.key;
|
|
1466
1470
|
if (p.defaultFilters && (n[S] = p.defaultFilters), p.filteredValue && (n[S] = p.filteredValue), "defaultSortOrder" in p || "sortOrder" in p) {
|
|
1467
|
-
const B = Pt(p.sorter),
|
|
1471
|
+
const B = Pt(p.sorter), X = "sortOrder" in p ? p.sortOrder : p.defaultSortOrder, V = {
|
|
1468
1472
|
field: S,
|
|
1469
|
-
direction:
|
|
1473
|
+
direction: X,
|
|
1470
1474
|
sorterFn: It(p.sorter),
|
|
1471
1475
|
priority: B
|
|
1472
1476
|
};
|
|
1473
|
-
|
|
1474
|
-
(
|
|
1475
|
-
) && i.push(
|
|
1477
|
+
X ? Oe(B) ? i.every(
|
|
1478
|
+
($e) => Oe($e.priority) || !$e.direction
|
|
1479
|
+
) && i.push(V) : i.every(($e) => !$e.direction) ? i.push(V) : i = [V] : i.push(V);
|
|
1476
1480
|
}
|
|
1477
1481
|
}), { currentFilters: n, defaultSorters: i };
|
|
1478
1482
|
}
|
|
1479
|
-
const
|
|
1480
|
-
const n =
|
|
1483
|
+
const Le = le(() => {
|
|
1484
|
+
const n = U.filter(
|
|
1481
1485
|
(p) => "filteredValue" in p
|
|
1482
1486
|
), i = {};
|
|
1483
1487
|
return n.length && n.forEach((p, S) => {
|
|
1484
1488
|
const B = p.key || p.dataIndex || S;
|
|
1485
1489
|
B !== void 0 && (i[B] = p.filteredValue);
|
|
1486
1490
|
}), i;
|
|
1487
|
-
}, [
|
|
1491
|
+
}, [U]), ye = le(() => Object.keys(Le).length ? Le : Ce, [Ce, Le]);
|
|
1488
1492
|
function Xe(n, i) {
|
|
1489
|
-
const p =
|
|
1493
|
+
const p = Wt(i);
|
|
1490
1494
|
if (!p)
|
|
1491
1495
|
return;
|
|
1492
1496
|
const S = {
|
|
@@ -1495,77 +1499,77 @@ function Po(t, o) {
|
|
|
1495
1499
|
sorterFn: It(p.sorter),
|
|
1496
1500
|
priority: Pt(p.sorter)
|
|
1497
1501
|
}, B = we(S);
|
|
1498
|
-
|
|
1499
|
-
const
|
|
1502
|
+
Ae(S, B);
|
|
1503
|
+
const X = at(
|
|
1500
1504
|
S,
|
|
1501
1505
|
B,
|
|
1502
|
-
|
|
1503
|
-
),
|
|
1504
|
-
|
|
1505
|
-
currentData: te(
|
|
1506
|
-
currentAllData: te(
|
|
1506
|
+
ye
|
|
1507
|
+
), V = Ze(X);
|
|
1508
|
+
D == null || D(Ue(X), S, ye, {
|
|
1509
|
+
currentData: te(V),
|
|
1510
|
+
currentAllData: te(X),
|
|
1507
1511
|
action: "sort"
|
|
1508
1512
|
});
|
|
1509
1513
|
}
|
|
1510
|
-
function
|
|
1514
|
+
function Te(n) {
|
|
1511
1515
|
const i = function(S, B) {
|
|
1512
|
-
return (
|
|
1513
|
-
const
|
|
1514
|
-
return B === "descend" ?
|
|
1516
|
+
return (X, V) => {
|
|
1517
|
+
const $e = S(X, V);
|
|
1518
|
+
return B === "descend" ? -$e : $e;
|
|
1515
1519
|
};
|
|
1516
1520
|
}, p = [...n];
|
|
1517
1521
|
return p.sort((S, B) => B.priority - S.priority), (S, B) => {
|
|
1518
|
-
for (let
|
|
1519
|
-
const { sorterFn:
|
|
1520
|
-
if (typeof
|
|
1522
|
+
for (let X = 0, V = p.length; X < V; X++) {
|
|
1523
|
+
const { sorterFn: $e, direction: Tt } = p[X];
|
|
1524
|
+
if (typeof $e != "function")
|
|
1521
1525
|
continue;
|
|
1522
|
-
const
|
|
1523
|
-
if (
|
|
1524
|
-
return
|
|
1526
|
+
const pt = i($e, Tt)(S, B);
|
|
1527
|
+
if (pt !== 0)
|
|
1528
|
+
return pt;
|
|
1525
1529
|
}
|
|
1526
1530
|
return 0;
|
|
1527
1531
|
};
|
|
1528
1532
|
}
|
|
1529
1533
|
function Qe(n, i) {
|
|
1530
1534
|
const p = {
|
|
1531
|
-
...
|
|
1535
|
+
...ye,
|
|
1532
1536
|
[n.dataIndex]: i
|
|
1533
1537
|
}, S = {
|
|
1534
1538
|
...p,
|
|
1535
|
-
...
|
|
1539
|
+
...Le
|
|
1536
1540
|
};
|
|
1537
|
-
if (
|
|
1538
|
-
|
|
1541
|
+
if (se(i) && i.length) {
|
|
1542
|
+
Ee(S);
|
|
1539
1543
|
const B = at(
|
|
1540
|
-
|
|
1541
|
-
|
|
1544
|
+
Se,
|
|
1545
|
+
P,
|
|
1542
1546
|
p
|
|
1543
|
-
),
|
|
1544
|
-
|
|
1547
|
+
), X = Ze(B);
|
|
1548
|
+
D == null || D(
|
|
1545
1549
|
Ue(B),
|
|
1546
|
-
|
|
1550
|
+
P.length === 1 ? P[0] : P,
|
|
1547
1551
|
p,
|
|
1548
1552
|
{
|
|
1549
|
-
currentData: te(
|
|
1553
|
+
currentData: te(X),
|
|
1550
1554
|
currentAllData: te(B),
|
|
1551
1555
|
action: "filter"
|
|
1552
1556
|
}
|
|
1553
1557
|
);
|
|
1554
|
-
} else
|
|
1558
|
+
} else se(i) && !i.length && Bt(n);
|
|
1555
1559
|
}
|
|
1556
1560
|
function Bt({ dataIndex: n }) {
|
|
1557
1561
|
const i = {
|
|
1558
|
-
...
|
|
1562
|
+
...ye
|
|
1559
1563
|
};
|
|
1560
|
-
delete i[n],
|
|
1564
|
+
delete i[n], Ee(i);
|
|
1561
1565
|
const p = at(
|
|
1562
|
-
|
|
1563
|
-
|
|
1566
|
+
Se,
|
|
1567
|
+
P,
|
|
1564
1568
|
i
|
|
1565
1569
|
), S = Ze(p);
|
|
1566
|
-
|
|
1570
|
+
D == null || D(
|
|
1567
1571
|
Ue(p),
|
|
1568
|
-
|
|
1572
|
+
P.length === 1 ? P[0] : P,
|
|
1569
1573
|
i,
|
|
1570
1574
|
{
|
|
1571
1575
|
currentData: te(S),
|
|
@@ -1574,66 +1578,66 @@ function Po(t, o) {
|
|
|
1574
1578
|
}
|
|
1575
1579
|
);
|
|
1576
1580
|
}
|
|
1577
|
-
const st = !!
|
|
1581
|
+
const st = !!U.find((n) => n.fixed === "left"), it = !!U.find((n) => n.fixed === "right"), lt = st || it;
|
|
1578
1582
|
function at(n, i, p) {
|
|
1579
|
-
let S = (
|
|
1580
|
-
Object.keys(p).forEach((
|
|
1581
|
-
if (p[
|
|
1582
|
-
const
|
|
1583
|
-
|
|
1584
|
-
(
|
|
1583
|
+
let S = (T || []).slice();
|
|
1584
|
+
Object.keys(p).forEach((X) => {
|
|
1585
|
+
if (p[X] && p[X].length) {
|
|
1586
|
+
const V = Wt(X);
|
|
1587
|
+
V && typeof V.onFilter == "function" && (S = S.filter(($e) => p[X].reduce(
|
|
1588
|
+
(Tt, pt) => Tt || V.onFilter(pt, $e),
|
|
1585
1589
|
!1
|
|
1586
1590
|
)));
|
|
1587
1591
|
}
|
|
1588
1592
|
});
|
|
1589
|
-
const B = (
|
|
1590
|
-
...
|
|
1591
|
-
[_]: B(
|
|
1592
|
-
} :
|
|
1593
|
+
const B = (X) => X.slice().sort(Te(i)).map((V) => se(V[_]) ? {
|
|
1594
|
+
...V,
|
|
1595
|
+
[_]: B(V[_])
|
|
1596
|
+
} : V);
|
|
1593
1597
|
return n.direction && typeof n.sorterFn == "function" || i.length ? B(S) : S;
|
|
1594
1598
|
}
|
|
1595
1599
|
const ze = at(
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1600
|
+
Se,
|
|
1601
|
+
P,
|
|
1602
|
+
ye
|
|
1599
1603
|
);
|
|
1600
1604
|
function Ue(n = ze) {
|
|
1601
|
-
const i =
|
|
1605
|
+
const i = x.pageSize || ge || 10, p = v === "middle" ? "default" : v;
|
|
1602
1606
|
let S = "top";
|
|
1603
|
-
|
|
1604
|
-
const B =
|
|
1605
|
-
|
|
1606
|
-
let
|
|
1607
|
+
I === "tl" || I === "bl" ? S = "bottom" : S = "top";
|
|
1608
|
+
const B = se(n) ? n.length : 0, X = Math.ceil(B / i) < re ? 1 : re;
|
|
1609
|
+
X !== re && G(X);
|
|
1610
|
+
let V = {
|
|
1607
1611
|
size: p,
|
|
1608
1612
|
total: B,
|
|
1609
1613
|
pageSize: i,
|
|
1610
|
-
current:
|
|
1614
|
+
current: X,
|
|
1611
1615
|
selectProps: {
|
|
1612
1616
|
triggerProps: {
|
|
1613
1617
|
position: S
|
|
1614
1618
|
}
|
|
1615
1619
|
}
|
|
1616
1620
|
};
|
|
1617
|
-
return typeof
|
|
1618
|
-
...
|
|
1619
|
-
...
|
|
1620
|
-
}),
|
|
1621
|
-
...
|
|
1622
|
-
...
|
|
1623
|
-
}),
|
|
1624
|
-
...
|
|
1625
|
-
...
|
|
1626
|
-
}),
|
|
1621
|
+
return typeof z == "object" && z.selectProps && (V.selectProps = {
|
|
1622
|
+
...V.selectProps,
|
|
1623
|
+
...z.selectProps
|
|
1624
|
+
}), q(z) && (V = {
|
|
1625
|
+
...V,
|
|
1626
|
+
...z
|
|
1627
|
+
}), q(x) && (V = {
|
|
1628
|
+
...V,
|
|
1629
|
+
...x
|
|
1630
|
+
}), V.onChange = $n, V;
|
|
1627
1631
|
}
|
|
1628
1632
|
const ct = Ue(), Je = Ze();
|
|
1629
1633
|
function Ze(n = ze, i = ct) {
|
|
1630
1634
|
const { current: p = 0, pageSize: S = 10 } = i;
|
|
1631
|
-
return
|
|
1635
|
+
return z === !1 || q(z) && N.length <= S ? n : n.slice((p - 1) * S, p * S);
|
|
1632
1636
|
}
|
|
1633
|
-
const Kt = Bn(Dt, 100),
|
|
1634
|
-
|
|
1637
|
+
const Kt = Bn(Dt, 100), ve = !!(m && m.y), et = $ == null ? void 0 : $(te(ze)), wt = $ && _e.isValidElement(et) && et.props.fixed, pn = ve && wt;
|
|
1638
|
+
Mn(() => {
|
|
1635
1639
|
Dt(), ht(window, "resize", Kt);
|
|
1636
|
-
const n =
|
|
1640
|
+
const n = ee.current, i = M.current, p = J.current;
|
|
1637
1641
|
i && ht(i, "scroll", Ve);
|
|
1638
1642
|
const S = n && n.parentNode;
|
|
1639
1643
|
return n && S && ht(S, "scroll", Ve), p && ht(p, "scroll", Ve), () => {
|
|
@@ -1642,80 +1646,80 @@ function Po(t, o) {
|
|
|
1642
1646
|
}, [
|
|
1643
1647
|
st,
|
|
1644
1648
|
it,
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1649
|
+
m == null ? void 0 : m.x,
|
|
1650
|
+
m == null ? void 0 : m.y,
|
|
1651
|
+
U.length,
|
|
1648
1652
|
N
|
|
1649
|
-
]),
|
|
1653
|
+
]), _t(() => {
|
|
1650
1654
|
const { total: n, pageSize: i } = Ue(N);
|
|
1651
|
-
Math.ceil(n / i) <
|
|
1652
|
-
}, [N == null ? void 0 : N.length]),
|
|
1655
|
+
Math.ceil(n / i) < re && G(1);
|
|
1656
|
+
}, [N == null ? void 0 : N.length]), _t(() => {
|
|
1653
1657
|
dt();
|
|
1654
1658
|
}, [N, st, it, s]), Hn(o, () => ({
|
|
1655
|
-
getRootDomElement:
|
|
1659
|
+
getRootDomElement: Nt,
|
|
1656
1660
|
scrollIntoView: (n) => {
|
|
1657
|
-
|
|
1661
|
+
ue.current && ue.current.scrollTo({ key: n });
|
|
1658
1662
|
},
|
|
1659
|
-
getRootDOMNode:
|
|
1663
|
+
getRootDOMNode: Nt
|
|
1660
1664
|
}));
|
|
1661
|
-
function
|
|
1665
|
+
function Nt() {
|
|
1662
1666
|
return oe.current;
|
|
1663
1667
|
}
|
|
1664
1668
|
function Dt() {
|
|
1665
1669
|
var i, p;
|
|
1666
1670
|
dt();
|
|
1667
|
-
const n =
|
|
1668
|
-
if (n && (lt ||
|
|
1669
|
-
const S = n.querySelector(`.${
|
|
1670
|
-
|
|
1671
|
+
const n = Nt();
|
|
1672
|
+
if (n && (lt || m && m.x)) {
|
|
1673
|
+
const S = n.querySelector(`.${f}-body`) || n.querySelector(`.${f}-content-inner`), B = (p = (i = S == null ? void 0 : S.getBoundingClientRect) == null ? void 0 : i.call(S)) == null ? void 0 : p.width;
|
|
1674
|
+
De(B);
|
|
1671
1675
|
}
|
|
1672
1676
|
}
|
|
1673
1677
|
const hn = tt(
|
|
1674
1678
|
Kn(() => {
|
|
1675
|
-
const n = oe.current, i =
|
|
1679
|
+
const n = oe.current, i = ve ? M.current : pe.current && pe.current.parentNode;
|
|
1676
1680
|
if (i) {
|
|
1677
1681
|
const p = s ? -i.scrollLeft : i.scrollLeft, S = p === 0, B = p + 1 >= i.children[0].getBoundingClientRect().width - i.getBoundingClientRect().width;
|
|
1678
1682
|
S && B ? ft(
|
|
1679
1683
|
n.classList,
|
|
1680
|
-
`${
|
|
1684
|
+
`${f}-scroll-position-both`
|
|
1681
1685
|
) : S ? ft(
|
|
1682
1686
|
n.classList,
|
|
1683
|
-
`${
|
|
1687
|
+
`${f}-scroll-position-${s ? "right" : "left"}`
|
|
1684
1688
|
) : B ? ft(
|
|
1685
1689
|
n.classList,
|
|
1686
|
-
`${
|
|
1690
|
+
`${f}-scroll-position-${s ? "left" : "right"}`
|
|
1687
1691
|
) : ft(
|
|
1688
1692
|
n.classList,
|
|
1689
|
-
`${
|
|
1693
|
+
`${f}-scroll-position-middle`
|
|
1690
1694
|
);
|
|
1691
1695
|
} else
|
|
1692
|
-
n &&
|
|
1696
|
+
n && Mt(n.classList);
|
|
1693
1697
|
}, 100),
|
|
1694
|
-
[oe.current,
|
|
1698
|
+
[oe.current, M.current, ve, s]
|
|
1695
1699
|
);
|
|
1696
1700
|
function dt() {
|
|
1697
|
-
if (lt ||
|
|
1701
|
+
if (lt || m && q(m) && m.x) {
|
|
1698
1702
|
const n = oe.current;
|
|
1699
1703
|
n && (st && Ht(
|
|
1700
1704
|
n.classList,
|
|
1701
|
-
`${
|
|
1705
|
+
`${f}-has-fixed-col-left`
|
|
1702
1706
|
), it && Ht(
|
|
1703
1707
|
n.classList,
|
|
1704
|
-
`${
|
|
1708
|
+
`${f}-has-fixed-col-right`
|
|
1705
1709
|
)), hn();
|
|
1706
1710
|
}
|
|
1707
1711
|
}
|
|
1708
1712
|
function Ht(n, i) {
|
|
1709
1713
|
n.contains(i) || n.add(i);
|
|
1710
1714
|
}
|
|
1711
|
-
function
|
|
1712
|
-
n.remove(`${
|
|
1715
|
+
function Mt(n) {
|
|
1716
|
+
n.remove(`${f}-scroll-position-both`), n.remove(`${f}-scroll-position-left`), n.remove(`${f}-scroll-position-right`), n.remove(`${f}-scroll-position-middle`);
|
|
1713
1717
|
}
|
|
1714
1718
|
function ft(n, i) {
|
|
1715
|
-
n.contains(i) || (
|
|
1719
|
+
n.contains(i) || (Mt(n), n.add(i));
|
|
1716
1720
|
}
|
|
1717
1721
|
const {
|
|
1718
|
-
selectedRowKeys:
|
|
1722
|
+
selectedRowKeys: $t,
|
|
1719
1723
|
indeterminateKeys: yn,
|
|
1720
1724
|
onCheckAll: mn,
|
|
1721
1725
|
onCheck: xn,
|
|
@@ -1723,18 +1727,18 @@ function Po(t, o) {
|
|
|
1723
1727
|
setSelectedRowKeys: Cn,
|
|
1724
1728
|
allSelectedRowKeys: wn,
|
|
1725
1729
|
flattenData: Nn
|
|
1726
|
-
} = ho(C, Je,
|
|
1727
|
-
function
|
|
1728
|
-
return
|
|
1730
|
+
} = ho(C, Je, T, We);
|
|
1731
|
+
function Wt(n) {
|
|
1732
|
+
return U.find((i, p) => typeof i.key < "u" ? typeof i.key == "number" && typeof n == "string" ? i.key.toString() === n : i.key === n : typeof i.dataIndex < "u" ? i.dataIndex === n : typeof n == "number" ? p === n : !1);
|
|
1729
1733
|
}
|
|
1730
1734
|
function $n(n, i) {
|
|
1731
1735
|
var S, B;
|
|
1732
|
-
|
|
1736
|
+
G(n), Ie(i), n !== re && bn(), F && !F.checkCrossPage && $t.length && (Cn([]), (S = F.onChange) == null || S.call(F, [], []));
|
|
1733
1737
|
const p = { ...Ue(), current: n, pageSize: i };
|
|
1734
|
-
|
|
1738
|
+
D == null || D(
|
|
1735
1739
|
p,
|
|
1736
|
-
|
|
1737
|
-
|
|
1740
|
+
P.length === 1 ? P[0] : P,
|
|
1741
|
+
ye,
|
|
1738
1742
|
{
|
|
1739
1743
|
currentData: te(
|
|
1740
1744
|
Ze(ze, p)
|
|
@@ -1742,83 +1746,83 @@ function Po(t, o) {
|
|
|
1742
1746
|
currentAllData: te(ze),
|
|
1743
1747
|
action: "paginate"
|
|
1744
1748
|
}
|
|
1745
|
-
), (B =
|
|
1749
|
+
), (B = x.onChange) == null || B.call(x, n, i);
|
|
1746
1750
|
}
|
|
1747
1751
|
function bn() {
|
|
1748
|
-
if (!
|
|
1752
|
+
if (!M.current)
|
|
1749
1753
|
return;
|
|
1750
|
-
const i =
|
|
1754
|
+
const i = M.current.scrollTop;
|
|
1751
1755
|
new Ln({
|
|
1752
1756
|
from: { scrollTop: i },
|
|
1753
1757
|
to: { scrollTop: 0 },
|
|
1754
1758
|
easing: On,
|
|
1755
1759
|
duration: 300,
|
|
1756
1760
|
onUpdate: (S) => {
|
|
1757
|
-
|
|
1761
|
+
M.current && (M.current.scrollTop = S.scrollTop);
|
|
1758
1762
|
}
|
|
1759
1763
|
}).start();
|
|
1760
1764
|
}
|
|
1761
1765
|
function Ve(n) {
|
|
1762
|
-
const { target: i } = n, p =
|
|
1763
|
-
i.scrollLeft !==
|
|
1766
|
+
const { target: i } = n, p = M.current, S = ee.current && ee.current.parentNode, B = J.current;
|
|
1767
|
+
i.scrollLeft !== ie.current && (S && (S.scrollLeft = i.scrollLeft), p && (p.scrollLeft = i.scrollLeft), B && (B.scrollLeft = i.scrollLeft), dt()), ie.current = n.target.scrollLeft;
|
|
1764
1768
|
}
|
|
1765
1769
|
function Sn(n) {
|
|
1766
|
-
const { target: i } = n, p =
|
|
1767
|
-
i.scrollLeft !==
|
|
1770
|
+
const { target: i } = n, p = pe.current;
|
|
1771
|
+
i.scrollLeft !== ie.current && (p.scrollLeft = i.scrollLeft, dt()), ie.current = n.target.scrollLeft;
|
|
1768
1772
|
}
|
|
1769
|
-
const [zt, Rn] =
|
|
1773
|
+
const [zt, Rn] = po(
|
|
1770
1774
|
C,
|
|
1771
1775
|
Nn,
|
|
1772
|
-
|
|
1776
|
+
We
|
|
1773
1777
|
);
|
|
1774
|
-
let Ut = {},
|
|
1775
|
-
|
|
1776
|
-
width:
|
|
1777
|
-
}),
|
|
1778
|
-
maxHeight:
|
|
1778
|
+
let Ut = {}, bt = {};
|
|
1779
|
+
m && (m.x && (typeof m.x == "number" || typeof m.x == "string") && (bt = {
|
|
1780
|
+
width: m.x
|
|
1781
|
+
}), m.y && (typeof m.y == "number" || typeof m.y == "string") && (Ut = {
|
|
1782
|
+
maxHeight: m.y
|
|
1779
1783
|
}));
|
|
1780
1784
|
function Tn() {
|
|
1781
|
-
const n =
|
|
1782
|
-
i && i > 0 && (n.style.marginBottom = `-${i}px`, n.style.paddingBottom = "0px",
|
|
1783
|
-
const p =
|
|
1784
|
-
ao(p) ? (ae.current = !0, n && (n.style.overflowY = "scroll"),
|
|
1785
|
+
const n = ee.current && ee.current.parentNode, i = lo(n);
|
|
1786
|
+
i && i > 0 && (n.style.marginBottom = `-${i}px`, n.style.paddingBottom = "0px", J.current && (J.current.style.marginBottom = `-${i}px`, J.current.style.paddingBottom = "0px")), setTimeout(() => {
|
|
1787
|
+
const p = M.current;
|
|
1788
|
+
ao(p) ? (ae.current = !0, n && (n.style.overflowY = "scroll"), J.current && (J.current.style.overflowY = "scroll")) : n && ae.current && (ae.current = !1, n.style.overflowY = "auto", J.current && (J.current.style.overflowY = "auto"));
|
|
1785
1789
|
});
|
|
1786
1790
|
}
|
|
1787
|
-
const Vt = /* @__PURE__ */
|
|
1791
|
+
const Vt = /* @__PURE__ */ u(
|
|
1788
1792
|
vo,
|
|
1789
1793
|
{
|
|
1790
1794
|
...C,
|
|
1791
|
-
activeSorters:
|
|
1792
|
-
currentSorter:
|
|
1793
|
-
selectedRowKeys:
|
|
1794
|
-
currentFilters:
|
|
1795
|
+
activeSorters: P,
|
|
1796
|
+
currentSorter: Se,
|
|
1797
|
+
selectedRowKeys: $t,
|
|
1798
|
+
currentFilters: ye,
|
|
1795
1799
|
onCheckAll: mn,
|
|
1796
1800
|
onSort: Xe,
|
|
1797
1801
|
data: Je,
|
|
1798
1802
|
onHandleFilter: Qe,
|
|
1799
1803
|
onHandleFilterReset: Bt,
|
|
1800
|
-
prefixCls:
|
|
1804
|
+
prefixCls: f,
|
|
1801
1805
|
allSelectedRowKeys: wn,
|
|
1802
|
-
groupColumns:
|
|
1803
|
-
stickyOffsets:
|
|
1804
|
-
groupStickyClassNames:
|
|
1806
|
+
groupColumns: xe,
|
|
1807
|
+
stickyOffsets: W,
|
|
1808
|
+
groupStickyClassNames: ce
|
|
1805
1809
|
}
|
|
1806
1810
|
);
|
|
1807
1811
|
function kn() {
|
|
1808
|
-
const n =
|
|
1809
|
-
return
|
|
1810
|
-
|
|
1812
|
+
const n = q(m) && m.x === "max-content";
|
|
1813
|
+
return ve || c ? /* @__PURE__ */ u(Me, { className: `${f}-header`, children: /* @__PURE__ */ de(
|
|
1814
|
+
Re,
|
|
1811
1815
|
{
|
|
1812
|
-
ref:
|
|
1813
|
-
style: n ? {} :
|
|
1816
|
+
ref: ee,
|
|
1817
|
+
style: n ? {} : bt,
|
|
1814
1818
|
children: [
|
|
1815
|
-
/* @__PURE__ */
|
|
1819
|
+
/* @__PURE__ */ u(
|
|
1816
1820
|
mt,
|
|
1817
1821
|
{
|
|
1818
|
-
columns:
|
|
1819
|
-
prefixCls:
|
|
1822
|
+
columns: U,
|
|
1823
|
+
prefixCls: f,
|
|
1820
1824
|
producer: !1,
|
|
1821
|
-
columnWidths: n &&
|
|
1825
|
+
columnWidths: n && m.y ? He : null
|
|
1822
1826
|
}
|
|
1823
1827
|
),
|
|
1824
1828
|
Vt
|
|
@@ -1826,71 +1830,71 @@ function Po(t, o) {
|
|
|
1826
1830
|
}
|
|
1827
1831
|
) }) : Vt;
|
|
1828
1832
|
}
|
|
1829
|
-
const jt = et && /* @__PURE__ */
|
|
1833
|
+
const jt = et && /* @__PURE__ */ u(
|
|
1830
1834
|
So,
|
|
1831
1835
|
{
|
|
1832
|
-
prefixCls:
|
|
1836
|
+
prefixCls: f,
|
|
1833
1837
|
summary: $,
|
|
1834
1838
|
data: Je,
|
|
1835
|
-
columns:
|
|
1836
|
-
stickyOffsets:
|
|
1839
|
+
columns: U,
|
|
1840
|
+
stickyOffsets: W,
|
|
1837
1841
|
stickyClassNames: ne
|
|
1838
1842
|
}
|
|
1839
|
-
), Yt = /* @__PURE__ */
|
|
1843
|
+
), Yt = /* @__PURE__ */ u(
|
|
1840
1844
|
bo,
|
|
1841
1845
|
{
|
|
1842
1846
|
...C,
|
|
1843
|
-
saveRef: (n) =>
|
|
1844
|
-
selectedRowKeys:
|
|
1847
|
+
saveRef: (n) => fe.current = n,
|
|
1848
|
+
selectedRowKeys: $t,
|
|
1845
1849
|
indeterminateKeys: yn,
|
|
1846
1850
|
expandedRowKeys: zt,
|
|
1847
1851
|
onCheck: xn,
|
|
1848
1852
|
onCheckRadio: gn,
|
|
1849
1853
|
onClickExpandBtn: Rn,
|
|
1850
|
-
columns:
|
|
1854
|
+
columns: U,
|
|
1851
1855
|
data: Je,
|
|
1852
|
-
prefixCls:
|
|
1856
|
+
prefixCls: f,
|
|
1853
1857
|
hasFixedColumn: lt,
|
|
1854
|
-
tableViewWidth:
|
|
1855
|
-
indentSize:
|
|
1858
|
+
tableViewWidth: Pe,
|
|
1859
|
+
indentSize: K,
|
|
1856
1860
|
noDataElement: b || l("Table"),
|
|
1857
|
-
activeSorters:
|
|
1858
|
-
currentSorter:
|
|
1859
|
-
stickyOffsets:
|
|
1861
|
+
activeSorters: P,
|
|
1862
|
+
currentSorter: Se,
|
|
1863
|
+
stickyOffsets: W,
|
|
1860
1864
|
stickyClassNames: ne,
|
|
1861
|
-
getRowKey:
|
|
1865
|
+
getRowKey: We,
|
|
1862
1866
|
saveVirtualListRef: (n) => {
|
|
1863
|
-
|
|
1867
|
+
c && (ue.current = n, M.current = n == null ? void 0 : n.dom);
|
|
1864
1868
|
},
|
|
1865
1869
|
___dangerouslySetInnerHTML___: C.___dangerouslySetInnerHTML___
|
|
1866
1870
|
}
|
|
1867
|
-
), qt = !
|
|
1871
|
+
), qt = !c && !pn ? /* @__PURE__ */ de(xt, { children: [
|
|
1868
1872
|
Yt,
|
|
1869
1873
|
jt
|
|
1870
1874
|
] }) : Yt;
|
|
1871
1875
|
nt(() => {
|
|
1872
1876
|
let n;
|
|
1873
|
-
return
|
|
1877
|
+
return M.current && (n = new ResizeObserver(Tn), n.observe(M.current)), () => {
|
|
1874
1878
|
var i, p;
|
|
1875
|
-
|
|
1879
|
+
M.current && ((i = n == null ? void 0 : n.unobserve) == null || i.call(n, M.current)), (p = n == null ? void 0 : n.disconnect) == null || p.call(n), n = null;
|
|
1876
1880
|
};
|
|
1877
|
-
}, [
|
|
1881
|
+
}, [M.current]);
|
|
1878
1882
|
function vn() {
|
|
1879
|
-
const n =
|
|
1880
|
-
return
|
|
1881
|
-
|
|
1883
|
+
const n = q(m) && m.x === "max-content" && !!m.y && se(N) && N.length > 0;
|
|
1884
|
+
return ve && !c ? /* @__PURE__ */ u(
|
|
1885
|
+
Fe,
|
|
1882
1886
|
{
|
|
1883
|
-
ref:
|
|
1884
|
-
className: `${
|
|
1887
|
+
ref: M,
|
|
1888
|
+
className: `${f}-body`,
|
|
1885
1889
|
style: Ut,
|
|
1886
|
-
children: /* @__PURE__ */
|
|
1887
|
-
/* @__PURE__ */
|
|
1890
|
+
children: /* @__PURE__ */ de(Re, { style: bt, children: [
|
|
1891
|
+
/* @__PURE__ */ u(
|
|
1888
1892
|
mt,
|
|
1889
1893
|
{
|
|
1890
|
-
columns:
|
|
1891
|
-
prefixCls:
|
|
1894
|
+
columns: U,
|
|
1895
|
+
prefixCls: f,
|
|
1892
1896
|
producer: n,
|
|
1893
|
-
onSetColumnWidths:
|
|
1897
|
+
onSetColumnWidths: ke,
|
|
1894
1898
|
expandedRowKeys: zt,
|
|
1895
1899
|
data: N
|
|
1896
1900
|
}
|
|
@@ -1902,77 +1906,77 @@ function Po(t, o) {
|
|
|
1902
1906
|
}
|
|
1903
1907
|
function _n() {
|
|
1904
1908
|
let n = {};
|
|
1905
|
-
|
|
1906
|
-
width:
|
|
1909
|
+
m && q(m) && m.x && (n = {
|
|
1910
|
+
width: m.x
|
|
1907
1911
|
});
|
|
1908
|
-
const i = /* @__PURE__ */
|
|
1909
|
-
/* @__PURE__ */
|
|
1912
|
+
const i = /* @__PURE__ */ u("div", { className: `${f}-tfoot`, ref: J, children: /* @__PURE__ */ de(Re, { style: n, children: [
|
|
1913
|
+
/* @__PURE__ */ u(mt, { columns: U, prefixCls: f }),
|
|
1910
1914
|
jt
|
|
1911
|
-
] }) }), p = et &&
|
|
1912
|
-
|
|
1915
|
+
] }) }), p = et && ve && wt === "top", S = et && ve && wt === "bottom", B = /* @__PURE__ */ de(xt, { children: [
|
|
1916
|
+
O ? kn() : null,
|
|
1913
1917
|
p && i,
|
|
1914
1918
|
vn(),
|
|
1915
1919
|
S && i
|
|
1916
1920
|
] });
|
|
1917
|
-
return /* @__PURE__ */
|
|
1918
|
-
/* @__PURE__ */
|
|
1921
|
+
return /* @__PURE__ */ de(xt, { children: [
|
|
1922
|
+
/* @__PURE__ */ u("div", { className: `${f}-container`, children: /* @__PURE__ */ u("div", { className: `${f}-content-scroll`, children: /* @__PURE__ */ u(
|
|
1919
1923
|
"div",
|
|
1920
1924
|
{
|
|
1921
|
-
className: `${
|
|
1922
|
-
onScroll:
|
|
1923
|
-
children:
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
+
className: `${f}-content-inner`,
|
|
1926
|
+
onScroll: ve ? void 0 : Sn,
|
|
1927
|
+
children: ve || c ? B : /* @__PURE__ */ de(Re, { ref: pe, style: n, children: [
|
|
1928
|
+
/* @__PURE__ */ u(mt, { prefixCls: f, columns: U }),
|
|
1925
1929
|
B
|
|
1926
1930
|
] })
|
|
1927
1931
|
}
|
|
1928
1932
|
) }) }),
|
|
1929
|
-
typeof
|
|
1933
|
+
typeof Y == "function" && /* @__PURE__ */ u("div", { className: `${f}-footer`, children: Y(Je) })
|
|
1930
1934
|
] });
|
|
1931
1935
|
}
|
|
1932
1936
|
if (!R.length)
|
|
1933
1937
|
return null;
|
|
1934
|
-
const En =
|
|
1935
|
-
|
|
1936
|
-
`${
|
|
1938
|
+
const En = q(k) ? k.wrapper : k, St = q(k) ? k.cell : E, In = q(k) ? k.cell || k.headerCell : E, Pn = q(k) ? k.cell || k.bodyCell : E, An = Z(
|
|
1939
|
+
f,
|
|
1940
|
+
`${f}-size-${v}`,
|
|
1937
1941
|
{
|
|
1938
|
-
[`${
|
|
1939
|
-
[`${
|
|
1940
|
-
[`${
|
|
1941
|
-
[`${
|
|
1942
|
-
[`${
|
|
1943
|
-
[`${
|
|
1944
|
-
[`${
|
|
1945
|
-
[`${
|
|
1946
|
-
[`${
|
|
1947
|
-
[`${
|
|
1948
|
-
[`${
|
|
1942
|
+
[`${f}-border`]: En,
|
|
1943
|
+
[`${f}-border-cell`]: St,
|
|
1944
|
+
[`${f}-border-header-cell`]: !St && In,
|
|
1945
|
+
[`${f}-border-body-cell`]: !St && Pn,
|
|
1946
|
+
[`${f}-stripe`]: j,
|
|
1947
|
+
[`${f}-hover`]: Q,
|
|
1948
|
+
[`${f}-type-radio`]: F && F.type === "radio",
|
|
1949
|
+
[`${f}-layout-fixed`]: H || m && (m.x || m.y) || R.find((n) => n.ellipsis),
|
|
1950
|
+
[`${f}-fixed-column`]: lt,
|
|
1951
|
+
[`${f}-virtualized`]: c,
|
|
1952
|
+
[`${f}-rtl`]: s
|
|
1949
1953
|
},
|
|
1950
1954
|
w
|
|
1951
|
-
),
|
|
1952
|
-
[`${
|
|
1953
|
-
[`${
|
|
1954
|
-
[`${
|
|
1955
|
+
), Rt = I === "tl" || I === "tr" || I === "topCenter", Fn = Z(`${f}-pagination`, {
|
|
1956
|
+
[`${f}-pagination-left`]: I === "tl" || I === "bl",
|
|
1957
|
+
[`${f}-pagination-center`]: I === "topCenter" || I === "bottomCenter",
|
|
1958
|
+
[`${f}-pagination-top`]: Rt
|
|
1955
1959
|
});
|
|
1956
|
-
let
|
|
1957
|
-
typeof
|
|
1958
|
-
const Gt = typeof
|
|
1959
|
-
return /* @__PURE__ */
|
|
1960
|
+
let ut = C.loading;
|
|
1961
|
+
typeof ut == "boolean" && (ut = { loading: ut });
|
|
1962
|
+
const Gt = typeof L == "function" ? L(/* @__PURE__ */ u(en, { ...ct })) : /* @__PURE__ */ u("div", { className: Fn, children: /* @__PURE__ */ u(en, { ...ct }) }), Xt = z !== !1 && (ze.length !== 0 || ct.total > 0);
|
|
1963
|
+
return /* @__PURE__ */ u(
|
|
1960
1964
|
"div",
|
|
1961
1965
|
{
|
|
1962
1966
|
ref: oe,
|
|
1963
|
-
style:
|
|
1967
|
+
style: y,
|
|
1964
1968
|
className: An,
|
|
1965
1969
|
...Un(C),
|
|
1966
|
-
children: /* @__PURE__ */
|
|
1967
|
-
|
|
1970
|
+
children: /* @__PURE__ */ de(
|
|
1971
|
+
Wn,
|
|
1968
1972
|
{
|
|
1969
|
-
className: `${
|
|
1970
|
-
element:
|
|
1971
|
-
...
|
|
1973
|
+
className: `${f}-spin`,
|
|
1974
|
+
element: h,
|
|
1975
|
+
...ut,
|
|
1972
1976
|
children: [
|
|
1973
|
-
Xt &&
|
|
1977
|
+
Xt && Rt && Gt,
|
|
1974
1978
|
_n(),
|
|
1975
|
-
Xt && !
|
|
1979
|
+
Xt && !Rt && Gt
|
|
1976
1980
|
]
|
|
1977
1981
|
}
|
|
1978
1982
|
)
|
|
@@ -1981,31 +1985,31 @@ function Po(t, o) {
|
|
|
1981
1985
|
}
|
|
1982
1986
|
const fn = At(Po);
|
|
1983
1987
|
fn.displayName = "Table";
|
|
1984
|
-
function
|
|
1988
|
+
function un(t) {
|
|
1985
1989
|
const { children: o, ...r } = t;
|
|
1986
|
-
return /* @__PURE__ */
|
|
1990
|
+
return /* @__PURE__ */ u("td", { ...so(r, ["$$PqbTableSummaryCell"]), children: o });
|
|
1987
1991
|
}
|
|
1988
|
-
|
|
1992
|
+
un.__PQB_TABLE_SUMMARY_CELL__ = !0;
|
|
1989
1993
|
function Ao(t) {
|
|
1990
|
-
const { rtl: o } =
|
|
1994
|
+
const { rtl: o } = Be(Ge), { columns: r, stickyOffsets: h, stickyClassNames: e, prefixCls: d } = Be(dn), { children: l, ...a } = t, s = _e.Children.map(
|
|
1991
1995
|
l,
|
|
1992
|
-
(
|
|
1993
|
-
), C =
|
|
1994
|
-
var
|
|
1995
|
-
const w =
|
|
1996
|
-
return g ?
|
|
1996
|
+
(x) => x.props.colSpan || 1
|
|
1997
|
+
), C = _e.Children.map(l, (x, y) => {
|
|
1998
|
+
var O, j;
|
|
1999
|
+
const w = x, g = Ct(w, "type.__PQB_TABLE_SUMMARY_CELL__") || Ct(w, "props.$$PqbTableSummaryCell"), k = (O = w == null ? void 0 : w.props) == null ? void 0 : O.style, E = (j = w == null ? void 0 : w.props) == null ? void 0 : j.className, N = s.slice(0, y).reduce((Q, z) => Q + z, 0), m = r[N].fixed === "left" ? { [o ? "right" : "left"]: h[N] } : r[N].fixed === "right" ? { [o ? "left" : "right"]: h[N] } : {}, b = r[N].fixed === "left" || r[N].fixed === "right" ? e[N] : "";
|
|
2000
|
+
return g ? _e.cloneElement(w, {
|
|
1997
2001
|
...w.props,
|
|
1998
|
-
className: Z(`${
|
|
1999
|
-
style: { ...k, ...
|
|
2000
|
-
}) :
|
|
2002
|
+
className: Z(`${d}-td`, b, E),
|
|
2003
|
+
style: { ...k, ...m }
|
|
2004
|
+
}) : x;
|
|
2001
2005
|
});
|
|
2002
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ u("tr", { ...a, children: C });
|
|
2003
2007
|
}
|
|
2004
2008
|
function Ot(t) {
|
|
2005
2009
|
return t.children;
|
|
2006
2010
|
}
|
|
2007
2011
|
Ot.Row = Ao;
|
|
2008
|
-
Ot.Cell =
|
|
2012
|
+
Ot.Cell = un;
|
|
2009
2013
|
const Fo = fn;
|
|
2010
2014
|
Fo.Summary = Ot;
|
|
2011
2015
|
export {
|