@unicom-cloud/ui 0.8.52 → 0.8.53
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 +41 -40
- package/Alert.js +2 -2
- package/Anchor.js +1 -1
- package/AutoComplete.js +3 -3
- package/Avatar.js +1 -1
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- package/Button.js +1 -1
- package/Calendar.js +3 -3
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +3 -3
- package/Comment.js +1 -1
- package/ConfigProvider.js +2 -2
- package/Copy.js +1 -1
- package/DatePicker.js +1268 -1233
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Drawer.js +1 -1
- package/Dropdown.js +1 -1
- package/Empty.js +1 -1
- package/Form.js +122 -117
- package/Grid.js +86 -83
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +2 -2
- package/InputTag.js +1 -1
- package/Layout.js +2 -2
- package/Link.js +1 -1
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +1 -1
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/Radio.js +2 -2
- package/Rate.js +1 -1
- package/ResizeBox.js +33 -32
- package/Result.js +1 -1
- package/Select.js +1 -1
- package/SelectView.js +142 -141
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +1 -1
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +15 -14
- package/Table.js +141 -133
- package/Tabs.js +1 -1
- package/Tag.js +111 -82
- package/TimePicker.js +3 -3
- package/Timeline.js +1 -1
- package/Tooltip.js +1 -1
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +31 -30
- package/Typography.js +25 -25
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{CoevJNNj.js → -sV-N67P.js} +1 -1
- package/chunk/{CkIWpIl6.js → 8hWViek4.js} +1 -1
- package/chunk/{Ct7mcZuW.js → B8IzaBdN.js} +1 -1
- package/chunk/{DCe3olyi.js → BEVtQ2QL.js} +101 -99
- package/chunk/{tkU8zIK4.js → BEiJmFHq.js} +1 -1
- package/chunk/{CQvJK4kb.js → BOUZ7hSf.js} +12 -12
- package/chunk/{DMeJAY1S.js → BYMRs7t5.js} +6 -5
- package/chunk/{DWGwYNvC.js → CBaVCRtG.js} +2 -2
- package/chunk/{5PpvDpEt.js → CLU6Le34.js} +2 -2
- package/chunk/{dhljdm11.js → COWsswcW.js} +64 -63
- package/chunk/{B9nYZhXo.js → CRxPui7e.js} +2 -2
- package/chunk/CYyPBcnp.js +970 -0
- package/chunk/{DfvdYCUz.js → CccPQyYX.js} +1 -1
- package/chunk/{DUX5Hw8l.js → CmEyvBdT.js} +3 -3
- package/chunk/{Cku5-xbe.js → Cwp65v9h.js} +47 -46
- package/chunk/{I0bfWb5y.js → CyVLxv_U.js} +95 -93
- package/chunk/{Cw63stMm.js → Cz65nXZD.js} +18 -18
- package/chunk/D3pUE3-b.js +445 -0
- package/chunk/{9AJ-uN8F.js → D6BMh1k4.js} +1 -1
- package/chunk/{BHWpeAbb.js → DGK45cuc.js} +1 -1
- package/chunk/{CfqAfcA3.js → DNyP-r9G.js} +2 -2
- package/chunk/DQ3uFRJD.js +892 -0
- package/chunk/{4XXtB4ZV.js → DY9WA4bf.js} +1 -1
- package/chunk/{DG5zSZDd.js → DdVbiC4t.js} +2 -2
- package/chunk/{n58kSv9T.js → DfMf16uZ.js} +11 -5
- package/chunk/{z7sBNzI4.js → Lyg-9NEt.js} +17 -17
- package/chunk/{BXZYc88i.js → PRN8SqRA.js} +3 -3
- package/chunk/bcn23eHi.js +277 -0
- package/index.js +408 -346
- package/package.json +1 -23
- package/style.css +1 -1
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/Picker.d.ts +4 -3
- package/types/date-picker/PickerRange.d.ts +3 -7
- package/types/date-picker/interface.d.ts +9 -1
- package/types/grid/index.d.ts +2 -1
- package/types/index.d.ts +1 -0
- package/types/pagination/interface.d.ts +1 -0
- package/types/picker/InputRange.d.ts +1 -1
- package/types/select/Select.d.ts +1 -1
- package/types/tag/interface.d.ts +7 -3
- package/types/utils/CSSTransition.d.ts +2 -1
- package/types/utils/is.d.ts +4 -17
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/is.js +102 -104
- package/utils/reactDOM.js +19 -19
- package/chunk/C61BEbHK.js +0 -263
- package/chunk/DXMtLuTP.js +0 -443
- package/chunk/m3_n9fBe.js +0 -961
- package/chunk/uUGMUxt_.js +0 -474
package/Table.js
CHANGED
|
@@ -6,11 +6,11 @@ import Oe from "lodash/isNumber";
|
|
|
6
6
|
import q from "lodash/isPlainObject";
|
|
7
7
|
import Kn from "lodash/throttle";
|
|
8
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
|
-
import { a as Ge } from "./chunk/
|
|
9
|
+
import { a as Ge } from "./chunk/Lyg-9NEt.js";
|
|
10
10
|
import Mn from "./hooks/useIsomorphicLayoutEffect.js";
|
|
11
11
|
import Zt from "./hooks/useMergeProps.js";
|
|
12
12
|
import _t from "./hooks/useUpdateEffect.js";
|
|
13
|
-
import { P as en } from "./chunk/
|
|
13
|
+
import { P as en } from "./chunk/D3pUE3-b.js";
|
|
14
14
|
import Wn from "./Spin.js";
|
|
15
15
|
import Z from "@unicom-cloud/utils/class-name";
|
|
16
16
|
import { on as ht, off as yt } from "./utils/dom.js";
|
|
@@ -22,8 +22,8 @@ import Yn from "lodash/isUndefined";
|
|
|
22
22
|
import { V as qn } from "./chunk/CiEln_Q1.js";
|
|
23
23
|
import Gn from "@unicom-cloud/icons/IconUiMinus";
|
|
24
24
|
import Xn from "@unicom-cloud/icons/IconUiPlus";
|
|
25
|
-
import { C as Ft } from "./chunk/
|
|
26
|
-
import { R as ln } from "./chunk/
|
|
25
|
+
import { C as Ft } from "./chunk/B8IzaBdN.js";
|
|
26
|
+
import { R as ln } from "./chunk/8hWViek4.js";
|
|
27
27
|
import Ct from "lodash/get";
|
|
28
28
|
import gt from "lodash/isFunction";
|
|
29
29
|
import Qn from "./hooks/useForceUpdate.js";
|
|
@@ -56,7 +56,7 @@ function mt(t) {
|
|
|
56
56
|
} = t;
|
|
57
57
|
nt(() => {
|
|
58
58
|
if (d && o.current) {
|
|
59
|
-
const
|
|
59
|
+
const N = Array.from(
|
|
60
60
|
o.current.querySelectorAll("col") || []
|
|
61
61
|
).filter(
|
|
62
62
|
(g) => !g.classList.contains(`${r}-expand-icon-col`) && !g.classList.contains(`${r}-selection-col`)
|
|
@@ -64,11 +64,11 @@ function mt(t) {
|
|
|
64
64
|
const { width: k } = g.getBoundingClientRect();
|
|
65
65
|
return k;
|
|
66
66
|
});
|
|
67
|
-
s == null || s(
|
|
67
|
+
s == null || s(N);
|
|
68
68
|
}
|
|
69
69
|
}, [d, s, r, l, a, h]);
|
|
70
|
-
let
|
|
71
|
-
return /* @__PURE__ */ u("colgroup", { ref: o, children: (x = h == null ? void 0 : h.map) == null ? void 0 : x.call(h, (y,
|
|
70
|
+
let w = 0;
|
|
71
|
+
return /* @__PURE__ */ u("colgroup", { ref: o, children: (x = h == null ? void 0 : h.map) == null ? void 0 : x.call(h, (y, N) => {
|
|
72
72
|
if (y.title === qe)
|
|
73
73
|
return /* @__PURE__ */ u(
|
|
74
74
|
"col",
|
|
@@ -88,7 +88,7 @@ function mt(t) {
|
|
|
88
88
|
Ye
|
|
89
89
|
);
|
|
90
90
|
let g;
|
|
91
|
-
return y.width ? g = y.width : !d && e && (g = e[
|
|
91
|
+
return y.width ? g = y.width : !d && e && (g = e[w]), w++, /* @__PURE__ */ u("col", { style: kt(g) }, y.key ?? N);
|
|
92
92
|
}) });
|
|
93
93
|
}
|
|
94
94
|
const nn = {
|
|
@@ -176,24 +176,24 @@ function io(t) {
|
|
|
176
176
|
} = t, a = le(() => d || [], [d]), s = le(
|
|
177
177
|
() => on(a, l),
|
|
178
178
|
[a, l]
|
|
179
|
-
),
|
|
179
|
+
), w = r && r.type === "checkbox" || r && !("type" in r), x = r && r.type === "radio", { width: y } = e, N = !!h, g = w || x, { getHeaderComponentOperations: k, getBodyComponentOperations: E } = Ke(o), R = le(
|
|
180
180
|
() => k({
|
|
181
181
|
selectionNode: g ? "holder_node" : "",
|
|
182
|
-
expandNode:
|
|
182
|
+
expandNode: N ? "holder_node" : ""
|
|
183
183
|
}),
|
|
184
184
|
[
|
|
185
185
|
g,
|
|
186
|
-
|
|
186
|
+
N,
|
|
187
187
|
k
|
|
188
188
|
]
|
|
189
|
-
),
|
|
189
|
+
), C = le(
|
|
190
190
|
() => E({
|
|
191
191
|
selectionNode: g ? "holder_node" : "",
|
|
192
|
-
expandNode:
|
|
192
|
+
expandNode: N ? "holder_node" : ""
|
|
193
193
|
}),
|
|
194
194
|
[
|
|
195
195
|
g,
|
|
196
|
-
|
|
196
|
+
N,
|
|
197
197
|
E
|
|
198
198
|
]
|
|
199
199
|
), m = r && r.fixed, b = r && r.columnWidth, O = tt(
|
|
@@ -203,7 +203,7 @@ function io(t) {
|
|
|
203
203
|
const $ = { ...c };
|
|
204
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 H =
|
|
206
|
+
const H = N && {
|
|
207
207
|
key: qe,
|
|
208
208
|
title: qe,
|
|
209
209
|
width: y,
|
|
@@ -239,15 +239,15 @@ function io(t) {
|
|
|
239
239
|
},
|
|
240
240
|
[
|
|
241
241
|
y,
|
|
242
|
-
|
|
242
|
+
N,
|
|
243
243
|
g,
|
|
244
244
|
b,
|
|
245
245
|
m,
|
|
246
246
|
R
|
|
247
247
|
]
|
|
248
248
|
), j = le(
|
|
249
|
-
() => O(s,
|
|
250
|
-
[s, O,
|
|
249
|
+
() => O(s, C),
|
|
250
|
+
[s, O, C]
|
|
251
251
|
), Q = le(
|
|
252
252
|
() => cn(a, l),
|
|
253
253
|
[a, l]
|
|
@@ -319,12 +319,12 @@ function te(t) {
|
|
|
319
319
|
}
|
|
320
320
|
function fo(t, o, r = [], h = [], e, d, l) {
|
|
321
321
|
const a = new Set(r), s = new Set(h);
|
|
322
|
-
function
|
|
322
|
+
function w(x) {
|
|
323
323
|
o ? (a.add(e(x)), s.delete(e(x))) : a.delete(e(x)), se(x[d]) && x[d].forEach((y) => {
|
|
324
|
-
|
|
324
|
+
w(y);
|
|
325
325
|
});
|
|
326
326
|
}
|
|
327
|
-
return l ? (
|
|
327
|
+
return l ? (w(t), Lt(
|
|
328
328
|
t,
|
|
329
329
|
a,
|
|
330
330
|
s,
|
|
@@ -343,14 +343,14 @@ function uo(t, o = [], r, h, e) {
|
|
|
343
343
|
};
|
|
344
344
|
const d = new Set(o), l = /* @__PURE__ */ new Set([]);
|
|
345
345
|
function a(s) {
|
|
346
|
-
d.add(r(s)), l.delete(r(s)), se(s[h]) && s[h].forEach((
|
|
347
|
-
a(
|
|
346
|
+
d.add(r(s)), l.delete(r(s)), se(s[h]) && s[h].forEach((w) => {
|
|
347
|
+
a(w);
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
return o.forEach((s) => {
|
|
351
|
-
const
|
|
352
|
-
!Yn(
|
|
353
|
-
|
|
351
|
+
const w = t.find((x) => r(x) === s);
|
|
352
|
+
!Yn(w) && !jn(w) && (a(w), Lt(
|
|
353
|
+
w,
|
|
354
354
|
d,
|
|
355
355
|
l,
|
|
356
356
|
r,
|
|
@@ -367,8 +367,8 @@ function Lt(t, o, r, h, e) {
|
|
|
367
367
|
if (se(t.__INTERNAL_PARENT[e])) {
|
|
368
368
|
const l = t.__INTERNAL_PARENT[e].length;
|
|
369
369
|
let a = 0, s = !1;
|
|
370
|
-
t.__INTERNAL_PARENT[e].forEach((
|
|
371
|
-
o.has(h(
|
|
370
|
+
t.__INTERNAL_PARENT[e].forEach((w) => {
|
|
371
|
+
o.has(h(w)) && (a += 1), r.has(h(w)) && (r.add(d), s = !0);
|
|
372
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(
|
|
@@ -395,34 +395,34 @@ function po(t, o, r) {
|
|
|
395
395
|
onExpand: l,
|
|
396
396
|
onExpandedRowsChange: a,
|
|
397
397
|
childrenColumnName: s = "children",
|
|
398
|
-
expandProps:
|
|
398
|
+
expandProps: w
|
|
399
399
|
} = t, [x, y] = Ne(
|
|
400
400
|
g()
|
|
401
|
-
),
|
|
401
|
+
), N = t.expandedRowKeys || x;
|
|
402
402
|
function g() {
|
|
403
403
|
let R = [];
|
|
404
|
-
return t.expandedRowKeys ? R = t.expandedRowKeys : h ? R = h : e && (R = o.map((
|
|
405
|
-
const b = te(
|
|
406
|
-
return
|
|
407
|
-
}).filter((
|
|
404
|
+
return t.expandedRowKeys ? R = t.expandedRowKeys : h ? R = h : e && (R = o.map((C, m) => {
|
|
405
|
+
const b = te(C);
|
|
406
|
+
return w && "rowExpandable" in w && typeof w.rowExpandable == "function" ? w.rowExpandable(b) && r(C) : typeof d == "function" ? d(b, m) && r(C) : Et(C, s) && r(C);
|
|
407
|
+
}).filter((C) => C)), R;
|
|
408
408
|
}
|
|
409
409
|
function k(R) {
|
|
410
|
-
const
|
|
411
|
-
y(b), E(R,
|
|
410
|
+
const C = N.indexOf(R) === -1, m = C ? N.concat(R) : N.filter((O) => R !== O), b = o.filter((O) => m.indexOf(r(O)) !== -1).map((O) => r(O));
|
|
411
|
+
y(b), E(R, C), a == null || a(b);
|
|
412
412
|
}
|
|
413
|
-
function E(R,
|
|
413
|
+
function E(R, C) {
|
|
414
414
|
l == null || l(
|
|
415
415
|
te(o.find((m) => r(m) === R)),
|
|
416
|
-
|
|
416
|
+
C
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
return [
|
|
419
|
+
return [N, k];
|
|
420
420
|
}
|
|
421
421
|
function rn(t) {
|
|
422
422
|
return [...new Set(t)];
|
|
423
423
|
}
|
|
424
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,
|
|
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, w = 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, N = e == null ? void 0 : e.preserveSelectedRowKeys;
|
|
426
426
|
function g() {
|
|
427
427
|
const c = [], L = [], $ = (T) => {
|
|
428
428
|
se(T) && T.length && T.forEach((f) => {
|
|
@@ -444,7 +444,7 @@ function ho(t, o, r, h) {
|
|
|
444
444
|
flattenData: L
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
-
const { allSelectedRowKeys: k, flattenData: E } = g(), [R,
|
|
447
|
+
const { allSelectedRowKeys: k, flattenData: E } = g(), [R, C] = Ne([]), [m, b] = Ne([]), O = uo(
|
|
448
448
|
E,
|
|
449
449
|
rn(l || R),
|
|
450
450
|
h,
|
|
@@ -459,7 +459,7 @@ function ho(t, o, r, h) {
|
|
|
459
459
|
}
|
|
460
460
|
const _ = new Set(E.map((c) => h(c)));
|
|
461
461
|
function K(c) {
|
|
462
|
-
return
|
|
462
|
+
return N ? c : c.filter((L) => _.has(L));
|
|
463
463
|
}
|
|
464
464
|
function F(c) {
|
|
465
465
|
let L = [], $ = [];
|
|
@@ -475,7 +475,7 @@ function ho(t, o, r, h) {
|
|
|
475
475
|
}
|
|
476
476
|
x || ($ = I(L, !0));
|
|
477
477
|
const A = te($);
|
|
478
|
-
|
|
478
|
+
C(L), D($), b([]), w == null || w(L, A), a == null || a(c, A);
|
|
479
479
|
}
|
|
480
480
|
function H(c, L) {
|
|
481
481
|
const { selectedRowKeys: $, indeterminateKeys: A } = fo(
|
|
@@ -487,11 +487,11 @@ function ho(t, o, r, h) {
|
|
|
487
487
|
d,
|
|
488
488
|
y
|
|
489
489
|
), T = K($), f = I(T, !0), v = te(f);
|
|
490
|
-
|
|
490
|
+
C(T), D(f), b(A), s == null || s(c, te(L), v), w == null || w(T, v);
|
|
491
491
|
}
|
|
492
492
|
function Y(c, L) {
|
|
493
493
|
const $ = [E.find((T) => h(T) === c)], A = te($);
|
|
494
|
-
|
|
494
|
+
C([c]), s == null || s(!0, te(L), A), w == null || w([c], A);
|
|
495
495
|
}
|
|
496
496
|
return {
|
|
497
497
|
selectedRowKeys: j,
|
|
@@ -499,7 +499,7 @@ function ho(t, o, r, h) {
|
|
|
499
499
|
onCheckAll: F,
|
|
500
500
|
onCheck: H,
|
|
501
501
|
onCheckRadio: Y,
|
|
502
|
-
setSelectedRowKeys:
|
|
502
|
+
setSelectedRowKeys: C,
|
|
503
503
|
allSelectedRowKeys: k,
|
|
504
504
|
flattenData: E
|
|
505
505
|
};
|
|
@@ -507,15 +507,15 @@ function ho(t, o, r, h) {
|
|
|
507
507
|
function yo(t, o) {
|
|
508
508
|
const [r, h] = Ne(o), [e, d] = Ne({}), l = me(t), a = tt(
|
|
509
509
|
(x) => {
|
|
510
|
-
const { field: y, direction:
|
|
511
|
-
return r.find((g) => g.field === y) ?
|
|
510
|
+
const { field: y, direction: N } = x;
|
|
511
|
+
return r.find((g) => g.field === y) ? N ? r.map(
|
|
512
512
|
(g) => g.field === y ? x : g
|
|
513
|
-
) : r.filter((g) => g.field !== y) :
|
|
513
|
+
) : r.filter((g) => g.field !== y) : N ? !Oe(x.priority) || r.find((g) => !Oe(g.priority)) ? [x] : [...r, x] : [...r];
|
|
514
514
|
},
|
|
515
515
|
[r]
|
|
516
516
|
), s = tt((x) => {
|
|
517
517
|
const y = x.filter((g) => "sortOrder" in g);
|
|
518
|
-
let
|
|
518
|
+
let N = [];
|
|
519
519
|
return y.forEach((g) => {
|
|
520
520
|
const k = Pt(g.sorter), E = g.sortOrder, R = {
|
|
521
521
|
field: g.dataIndex || g.key,
|
|
@@ -523,21 +523,21 @@ function yo(t, o) {
|
|
|
523
523
|
sorterFn: It(g.sorter),
|
|
524
524
|
priority: k
|
|
525
525
|
};
|
|
526
|
-
E ? Oe(k) ?
|
|
527
|
-
}),
|
|
528
|
-
}, []),
|
|
526
|
+
E ? Oe(k) ? N.every((C) => Oe(C.priority) || !C.direction) && N.push(R) : N.every((C) => !C.direction) ? N.push(R) : N = [R] : N.push(R);
|
|
527
|
+
}), N;
|
|
528
|
+
}, []), w = tt(
|
|
529
529
|
(x, y) => {
|
|
530
530
|
s(t).length || (h(y), d(x));
|
|
531
531
|
},
|
|
532
532
|
[t, s, h, d]
|
|
533
533
|
);
|
|
534
534
|
return _t(() => {
|
|
535
|
-
const x = l.current, y = s(x),
|
|
535
|
+
const x = l.current, y = s(x), N = s(t), g = y.map(
|
|
536
536
|
(E) => E.field
|
|
537
|
-
), k =
|
|
538
|
-
({ field:
|
|
537
|
+
), k = N.filter((E) => y.find(
|
|
538
|
+
({ field: C, direction: m }) => E.field === C && E.direction !== m
|
|
539
539
|
) ? !0 : !g.includes(E.field));
|
|
540
|
-
k && k.length && (h(
|
|
540
|
+
k && k.length && (h(N), d({})), l.current = t;
|
|
541
541
|
}, [
|
|
542
542
|
t,
|
|
543
543
|
s,
|
|
@@ -548,7 +548,7 @@ function yo(t, o) {
|
|
|
548
548
|
currentSorter: e,
|
|
549
549
|
activeSorters: r,
|
|
550
550
|
getNextActiveSorters: a,
|
|
551
|
-
updateStateSorters:
|
|
551
|
+
updateStateSorters: w
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
554
|
function mo(t, o, r) {
|
|
@@ -565,8 +565,8 @@ function mo(t, o, r) {
|
|
|
565
565
|
(a, s) => e(a, s)
|
|
566
566
|
), [h.join("-")]);
|
|
567
567
|
return [le(
|
|
568
|
-
() => t.map((a) => a.map((s,
|
|
569
|
-
let x =
|
|
568
|
+
() => t.map((a) => a.map((s, w) => {
|
|
569
|
+
let x = w;
|
|
570
570
|
const y = s.$$columnIndex;
|
|
571
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
|
})),
|
|
@@ -613,22 +613,22 @@ function Co(t) {
|
|
|
613
613
|
prefixCls: l,
|
|
614
614
|
stickyClassName: a,
|
|
615
615
|
stickyOffset: s,
|
|
616
|
-
currentSorter:
|
|
616
|
+
currentSorter: w,
|
|
617
617
|
virtualized: x,
|
|
618
618
|
record: y,
|
|
619
|
-
trIndex:
|
|
619
|
+
trIndex: N,
|
|
620
620
|
level: g,
|
|
621
621
|
placeholder: k = "-",
|
|
622
622
|
indentSize: E,
|
|
623
623
|
renderExpandIcon: R,
|
|
624
|
-
rowKey:
|
|
624
|
+
rowKey: C,
|
|
625
625
|
recordHaveChildren: m,
|
|
626
626
|
haveTreeData: b
|
|
627
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
|
{
|
|
631
|
-
[`${l}-col-sorted`]:
|
|
631
|
+
[`${l}-col-sorted`]: w && w.direction && w.field === (e == null ? void 0 : e.dataIndex)
|
|
632
632
|
},
|
|
633
633
|
e == null ? void 0 : e.className
|
|
634
634
|
);
|
|
@@ -641,15 +641,23 @@ function Co(t) {
|
|
|
641
641
|
...e == null ? void 0 : e.bodyCellStyle
|
|
642
642
|
}), gt(e == null ? void 0 : e.bodyCellStyle) && (c = {
|
|
643
643
|
...c,
|
|
644
|
-
...((pe = e == null ? void 0 : e.bodyCellStyle) == null ? void 0 : pe.call(e, y,
|
|
644
|
+
...((pe = e == null ? void 0 : e.bodyCellStyle) == null ? void 0 : pe.call(e, y, N)) ?? {}
|
|
645
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(
|
|
646
|
+
const { onHandleSave: L, ...$ } = e != null && e.onCell ? (e == null ? void 0 : e.onCell(
|
|
647
|
+
y,
|
|
648
|
+
N,
|
|
649
|
+
e,
|
|
650
|
+
{ rowKey: C }
|
|
651
|
+
)) ?? {} : { onHandleSave: () => {
|
|
647
652
|
} }, A = e == null ? void 0 : e.render;
|
|
648
653
|
let T = le(() => A == null ? void 0 : A(
|
|
649
654
|
Ct(y, e == null ? void 0 : e.dataIndex),
|
|
650
655
|
te(y),
|
|
651
|
-
|
|
652
|
-
|
|
656
|
+
N,
|
|
657
|
+
e,
|
|
658
|
+
// 潘启宝添加
|
|
659
|
+
{ rowKey: C }
|
|
660
|
+
), [y, e, N]);
|
|
653
661
|
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
662
|
return null;
|
|
655
663
|
je(T) && (T = T.trim()), !T && T !== 0 && (T = (e == null ? void 0 : e.placeholder) ?? k ?? "-");
|
|
@@ -661,7 +669,7 @@ function Co(t) {
|
|
|
661
669
|
function fe(re) {
|
|
662
670
|
o();
|
|
663
671
|
}
|
|
664
|
-
const J = `${d}-${
|
|
672
|
+
const J = `${d}-${N}-${M}-${ee}`, oe = /* @__PURE__ */ u(
|
|
665
673
|
"div",
|
|
666
674
|
{
|
|
667
675
|
ref: Q,
|
|
@@ -695,7 +703,7 @@ function Co(t) {
|
|
|
695
703
|
{
|
|
696
704
|
ref: I,
|
|
697
705
|
className: `${l}-cell-expand-icon`,
|
|
698
|
-
children: R(y,
|
|
706
|
+
children: R(y, C)
|
|
699
707
|
}
|
|
700
708
|
),
|
|
701
709
|
t.___dangerouslySetInnerHTML___ ? /* @__PURE__ */ u(
|
|
@@ -737,7 +745,7 @@ function Co(t) {
|
|
|
737
745
|
if (Q.current && z.current && _) {
|
|
738
746
|
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
747
|
if (re < G + ge + Ie) {
|
|
740
|
-
const Ce = gt(e == null ? void 0 : e.tooltipContentRender) ? e.tooltipContentRender(y,
|
|
748
|
+
const Ce = gt(e == null ? void 0 : e.tooltipContentRender) ? e.tooltipContentRender(y, N, e) : Jn(ue);
|
|
741
749
|
ue = /* @__PURE__ */ u(
|
|
742
750
|
an,
|
|
743
751
|
{
|
|
@@ -762,15 +770,15 @@ function No(t, o) {
|
|
|
762
770
|
onCheck: l,
|
|
763
771
|
onCheckRadio: a,
|
|
764
772
|
prefixCls: s,
|
|
765
|
-
selectedRowKeys:
|
|
773
|
+
selectedRowKeys: w,
|
|
766
774
|
indeterminateKeys: x,
|
|
767
775
|
rowClassName: y,
|
|
768
|
-
onRow:
|
|
776
|
+
onRow: N,
|
|
769
777
|
rowSelection: g,
|
|
770
778
|
indentSize: k = 16,
|
|
771
779
|
activeSorters: E,
|
|
772
780
|
virtualized: R,
|
|
773
|
-
stickyOffsets:
|
|
781
|
+
stickyOffsets: C,
|
|
774
782
|
stickyClassNames: m,
|
|
775
783
|
getRowKey: b,
|
|
776
784
|
placeholder: O,
|
|
@@ -783,7 +791,7 @@ function No(t, o) {
|
|
|
783
791
|
type: K,
|
|
784
792
|
shouldRowExpand: F,
|
|
785
793
|
level: H
|
|
786
|
-
} = t, { rtl: Y } = Be(Ge), c = te(I), { ...L } = (
|
|
794
|
+
} = t, { rtl: Y } = Be(Ge), c = te(I), { ...L } = (N == null ? void 0 : N(c, _)) || {}, $ = b(I), A = K === "radio" ? w.slice(0, 1) : w, T = $ || _, f = A.indexOf($) > -1, v = z.indexOf($) > -1, ee = x.indexOf($) > -1, M = Z(
|
|
787
795
|
`${s}-tr`,
|
|
788
796
|
{
|
|
789
797
|
[`${s}-row-checked`]: f,
|
|
@@ -846,7 +854,7 @@ function No(t, o) {
|
|
|
846
854
|
});
|
|
847
855
|
return /* @__PURE__ */ ot(Ie, { ...Pe, key: Pe.key, ref: o }, e.map((P, we) => {
|
|
848
856
|
var Me, We, rt, Le;
|
|
849
|
-
const Ae = `${P.key}-${P.dataIndex}-${P.title}-${we}`, Re =
|
|
857
|
+
const Ae = `${P.key}-${P.dataIndex}-${P.title}-${we}`, Re = C[we], Fe = m[we];
|
|
850
858
|
if (P.$$isOperation) {
|
|
851
859
|
let ye = P.node, Xe = !0;
|
|
852
860
|
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);
|
|
@@ -908,21 +916,21 @@ const sn = At(No), $o = At(function({
|
|
|
908
916
|
prefixCls: l,
|
|
909
917
|
columns: a,
|
|
910
918
|
indentSize: s = 16,
|
|
911
|
-
childrenColumnName:
|
|
919
|
+
childrenColumnName: w = "children",
|
|
912
920
|
expandProps: x = {},
|
|
913
921
|
rowSelection: y,
|
|
914
|
-
hasFixedColumn:
|
|
922
|
+
hasFixedColumn: N,
|
|
915
923
|
tableViewWidth: g,
|
|
916
924
|
getRowKey: k,
|
|
917
925
|
expandedRowKeys: E,
|
|
918
926
|
expandedRowRender: R
|
|
919
927
|
} = e;
|
|
920
|
-
let
|
|
921
|
-
y && "type" in y ?
|
|
922
|
-
const m = R && ((_, K) => R(te(_), K)), b = (_) => se(_[
|
|
928
|
+
let C;
|
|
929
|
+
y && "type" in y ? C = y.type : y && !("type" in y) && (C = "checkbox");
|
|
930
|
+
const m = R && ((_, K) => R(te(_), K)), b = (_) => se(_[w]) && _[w].length, O = (_, K) => "rowExpandable" in x && typeof x.rowExpandable == "function" ? x.rowExpandable(_) : (m == null ? void 0 : m(_, K)) !== null, j = (_, K) => {
|
|
923
931
|
const F = [], H = {
|
|
924
932
|
...e,
|
|
925
|
-
type:
|
|
933
|
+
type: C,
|
|
926
934
|
shouldRowExpand: O
|
|
927
935
|
};
|
|
928
936
|
F.push(
|
|
@@ -951,10 +959,10 @@ const sn = At(No), $o = At(function({
|
|
|
951
959
|
index: T
|
|
952
960
|
}
|
|
953
961
|
)
|
|
954
|
-
), b(A) && Y(A[
|
|
962
|
+
), b(A) && Y(A[w], k(A), $ + 1));
|
|
955
963
|
});
|
|
956
964
|
};
|
|
957
|
-
return m || Y(_[
|
|
965
|
+
return m || Y(_[w], k(_)), F;
|
|
958
966
|
}, Q = k(o), z = O(o, r) && E.indexOf(Q) !== -1, D = h ? "div" : "tr", I = h ? "div" : "td";
|
|
959
967
|
return /* @__PURE__ */ de(_e.Fragment, { children: [
|
|
960
968
|
j(o, r),
|
|
@@ -968,7 +976,7 @@ const sn = At(No), $o = At(function({
|
|
|
968
976
|
className: Z(`${l}-td`),
|
|
969
977
|
style: { paddingLeft: s },
|
|
970
978
|
colSpan: a.length,
|
|
971
|
-
children:
|
|
979
|
+
children: N ? /* @__PURE__ */ u(
|
|
972
980
|
"div",
|
|
973
981
|
{
|
|
974
982
|
className: `${l}-expand-fixed-row`,
|
|
@@ -993,10 +1001,10 @@ function bo(t) {
|
|
|
993
1001
|
scroll: l,
|
|
994
1002
|
tableViewWidth: a,
|
|
995
1003
|
virtualized: s,
|
|
996
|
-
virtualListProps:
|
|
1004
|
+
virtualListProps: w,
|
|
997
1005
|
getRowKey: x,
|
|
998
1006
|
saveVirtualListRef: y
|
|
999
|
-
} = t,
|
|
1007
|
+
} = t, N = (b) => {
|
|
1000
1008
|
var O;
|
|
1001
1009
|
(O = t.saveRef) == null || O.call(t, b);
|
|
1002
1010
|
}, { ComponentTbody: g } = Ke(e);
|
|
@@ -1010,7 +1018,7 @@ function bo(t) {
|
|
|
1010
1018
|
className: `${h}-no-data`
|
|
1011
1019
|
};
|
|
1012
1020
|
a && (R.className = `${h}-no-data ${h}-expand-fixed-row`, R.style = { width: a });
|
|
1013
|
-
const
|
|
1021
|
+
const C = /* @__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
1022
|
const j = x(b) || O;
|
|
1015
1023
|
return /* @__PURE__ */ u(
|
|
1016
1024
|
$o,
|
|
@@ -1033,13 +1041,13 @@ function bo(t) {
|
|
|
1033
1041
|
innerStyle: { right: "auto", minWidth: "100%" },
|
|
1034
1042
|
className: `${h}-body`,
|
|
1035
1043
|
ref: (b) => {
|
|
1036
|
-
y(b),
|
|
1044
|
+
y(b), N(b == null ? void 0 : b.dom);
|
|
1037
1045
|
},
|
|
1038
1046
|
itemKey: x,
|
|
1039
|
-
...
|
|
1047
|
+
...w,
|
|
1040
1048
|
children: m
|
|
1041
1049
|
}
|
|
1042
|
-
) : /* @__PURE__ */ u("div", { className: `${h}-body`, ref:
|
|
1050
|
+
) : /* @__PURE__ */ u("div", { className: `${h}-body`, ref: N, children: /* @__PURE__ */ u("table", { children: /* @__PURE__ */ u("tbody", { children: C }) }) }) : /* @__PURE__ */ u(g, { ref: N, children: o.length > 0 ? o.map(m) : C });
|
|
1043
1051
|
}
|
|
1044
1052
|
const dn = Dn({});
|
|
1045
1053
|
function So(t) {
|
|
@@ -1066,15 +1074,15 @@ function ko({
|
|
|
1066
1074
|
_key: l,
|
|
1067
1075
|
dataIndex: a,
|
|
1068
1076
|
title: s,
|
|
1069
|
-
sorter:
|
|
1077
|
+
sorter: w,
|
|
1070
1078
|
sortDirections: x = ["ascend", "descend"],
|
|
1071
1079
|
filters: y = [],
|
|
1072
|
-
columnFixedStyle:
|
|
1080
|
+
columnFixedStyle: N,
|
|
1073
1081
|
className: g,
|
|
1074
1082
|
cellStyle: k,
|
|
1075
1083
|
headerCellStyle: E,
|
|
1076
1084
|
rowSpan: R,
|
|
1077
|
-
colSpan:
|
|
1085
|
+
colSpan: C,
|
|
1078
1086
|
headerCellProps: m,
|
|
1079
1087
|
prefixCls: b,
|
|
1080
1088
|
align: O = "left",
|
|
@@ -1091,7 +1099,7 @@ function ko({
|
|
|
1091
1099
|
}) {
|
|
1092
1100
|
const { locale: c, rtl: L } = Be(Ge), $ = l || a || Y, [A, T, f] = no([], {
|
|
1093
1101
|
value: e[$] || []
|
|
1094
|
-
}), [v, ee] = Ne(!1), [M, fe] = Ne(!1), J =
|
|
1102
|
+
}), [v, ee] = Ne(!1), [M, fe] = Ne(!1), J = w && se(x) && x.length, oe = J ? ue() : void 0;
|
|
1095
1103
|
nt(() => {
|
|
1096
1104
|
T(e[$] || []);
|
|
1097
1105
|
}, [e, $]), nt(() => {
|
|
@@ -1178,7 +1186,7 @@ function ko({
|
|
|
1178
1186
|
[`${b}-filters-active`]: A && A.length
|
|
1179
1187
|
});
|
|
1180
1188
|
let G = {
|
|
1181
|
-
...
|
|
1189
|
+
...N
|
|
1182
1190
|
};
|
|
1183
1191
|
q(k) && (G = {
|
|
1184
1192
|
...G,
|
|
@@ -1194,7 +1202,7 @@ function ko({
|
|
|
1194
1202
|
style: G,
|
|
1195
1203
|
key: l || $
|
|
1196
1204
|
};
|
|
1197
|
-
|
|
1205
|
+
C && C > 1 && (ge.colSpan = C), R && R > 1 && (ge.rowSpan = R);
|
|
1198
1206
|
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
1207
|
J ? /* @__PURE__ */ u(
|
|
1200
1208
|
an,
|
|
@@ -1253,7 +1261,7 @@ function ko({
|
|
|
1253
1261
|
[`${b}-col-has-sorter`]: J,
|
|
1254
1262
|
[`${b}-col-has-filter`]: Ee
|
|
1255
1263
|
});
|
|
1256
|
-
return
|
|
1264
|
+
return C !== 0 && /* @__PURE__ */ ot(
|
|
1257
1265
|
Ie,
|
|
1258
1266
|
{
|
|
1259
1267
|
className: Z(
|
|
@@ -1287,20 +1295,20 @@ function vo(t) {
|
|
|
1287
1295
|
onHandleFilterReset: l,
|
|
1288
1296
|
onHeaderRow: a,
|
|
1289
1297
|
prefixCls: s,
|
|
1290
|
-
currentFilters:
|
|
1298
|
+
currentFilters: w,
|
|
1291
1299
|
component: x,
|
|
1292
1300
|
data: y,
|
|
1293
|
-
selectedRowKeys:
|
|
1301
|
+
selectedRowKeys: N,
|
|
1294
1302
|
rowSelection: g,
|
|
1295
1303
|
allSelectedRowKeys: k = [],
|
|
1296
1304
|
groupColumns: E,
|
|
1297
1305
|
stickyOffsets: R,
|
|
1298
|
-
groupStickyClassNames:
|
|
1306
|
+
groupStickyClassNames: C,
|
|
1299
1307
|
showSorterTooltip: m
|
|
1300
1308
|
} = 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
1309
|
const Y = new Set(k);
|
|
1302
|
-
return
|
|
1303
|
-
}, [
|
|
1310
|
+
return N.filter((c) => Y.has(c));
|
|
1311
|
+
}, [N, k]), F = E.length > 1 ? { rowSpan: E.length } : {}, H = Z(`${s}-th`, `${s}-operation`);
|
|
1304
1312
|
return /* @__PURE__ */ u(O, { children: E.map((Y, c) => {
|
|
1305
1313
|
const L = a == null ? void 0 : a(Y, c), $ = (z || I) && c === 0 && /* @__PURE__ */ u(
|
|
1306
1314
|
"th",
|
|
@@ -1322,7 +1330,7 @@ function vo(t) {
|
|
|
1322
1330
|
g && g.columnTitle
|
|
1323
1331
|
] })
|
|
1324
1332
|
}
|
|
1325
|
-
), A = r && /* @__PURE__ */ u("th", { className: Z(H, `${s}-expand`), children: _ && /* @__PURE__ */ u("div", { className: `${s}-th-item`, children: _ }) }), T =
|
|
1333
|
+
), A = r && /* @__PURE__ */ u("th", { className: Z(H, `${s}-expand`), children: _ && /* @__PURE__ */ u("div", { className: `${s}-th-item`, children: _ }) }), T = C[c], f = Q({
|
|
1326
1334
|
selectionNode: $,
|
|
1327
1335
|
expandNode: A
|
|
1328
1336
|
});
|
|
@@ -1377,7 +1385,7 @@ function vo(t) {
|
|
|
1377
1385
|
currentSorter: o.find(
|
|
1378
1386
|
(he) => he.field === (v.dataIndex || v.key)
|
|
1379
1387
|
),
|
|
1380
|
-
currentFilters:
|
|
1388
|
+
currentFilters: w,
|
|
1381
1389
|
_key: v.key || v.dataIndex || ee,
|
|
1382
1390
|
...v,
|
|
1383
1391
|
key: v.key,
|
|
@@ -1414,7 +1422,7 @@ function Po(t, o) {
|
|
|
1414
1422
|
renderEmpty: l,
|
|
1415
1423
|
componentConfig: a,
|
|
1416
1424
|
rtl: s
|
|
1417
|
-
} = Be(Ge),
|
|
1425
|
+
} = Be(Ge), w = Zt(
|
|
1418
1426
|
t,
|
|
1419
1427
|
Io,
|
|
1420
1428
|
a == null ? void 0 : a.Table
|
|
@@ -1424,12 +1432,12 @@ function Po(t, o) {
|
|
|
1424
1432
|
d || {}
|
|
1425
1433
|
), {
|
|
1426
1434
|
style: y,
|
|
1427
|
-
className:
|
|
1435
|
+
className: N,
|
|
1428
1436
|
component: g,
|
|
1429
1437
|
border: k,
|
|
1430
1438
|
borderCell: E,
|
|
1431
1439
|
columns: R = Eo,
|
|
1432
|
-
data:
|
|
1440
|
+
data: C = _o,
|
|
1433
1441
|
scroll: m,
|
|
1434
1442
|
noDataElement: b,
|
|
1435
1443
|
showHeader: O,
|
|
@@ -1447,10 +1455,10 @@ function Po(t, o) {
|
|
|
1447
1455
|
renderPagination: L,
|
|
1448
1456
|
summary: $,
|
|
1449
1457
|
rowKey: A
|
|
1450
|
-
} =
|
|
1451
|
-
() => co(
|
|
1452
|
-
[
|
|
1453
|
-
), f = r("table"), v =
|
|
1458
|
+
} = w, T = le(
|
|
1459
|
+
() => co(C, _),
|
|
1460
|
+
[C, _]
|
|
1461
|
+
), f = r("table"), v = w.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(w), { currentFilters: be, defaultSorters: he } = rt(), [re, G] = Ne(1), [ge, Ie] = Ne(
|
|
1454
1462
|
x.pageSize || x.defaultPageSize || 10
|
|
1455
1463
|
), [Ce, Ee] = Ne(be), [Pe, De] = Ne(0), [He, ke] = Ne([]), W = xo(U), [ce, ne] = mo(
|
|
1456
1464
|
xe,
|
|
@@ -1632,7 +1640,7 @@ function Po(t, o) {
|
|
|
1632
1640
|
const ct = Ue(), Je = Ze();
|
|
1633
1641
|
function Ze(n = ze, i = ct) {
|
|
1634
1642
|
const { current: p = 0, pageSize: S = 10 } = i;
|
|
1635
|
-
return z === !1 || q(z) &&
|
|
1643
|
+
return z === !1 || q(z) && C.length <= S ? n : n.slice((p - 1) * S, p * S);
|
|
1636
1644
|
}
|
|
1637
1645
|
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
1646
|
Mn(() => {
|
|
@@ -1649,13 +1657,13 @@ function Po(t, o) {
|
|
|
1649
1657
|
m == null ? void 0 : m.x,
|
|
1650
1658
|
m == null ? void 0 : m.y,
|
|
1651
1659
|
U.length,
|
|
1652
|
-
|
|
1660
|
+
C
|
|
1653
1661
|
]), _t(() => {
|
|
1654
|
-
const { total: n, pageSize: i } = Ue(
|
|
1662
|
+
const { total: n, pageSize: i } = Ue(C);
|
|
1655
1663
|
Math.ceil(n / i) < re && G(1);
|
|
1656
|
-
}, [
|
|
1664
|
+
}, [C == null ? void 0 : C.length]), _t(() => {
|
|
1657
1665
|
dt();
|
|
1658
|
-
}, [
|
|
1666
|
+
}, [C, st, it, s]), Hn(o, () => ({
|
|
1659
1667
|
getRootDomElement: Nt,
|
|
1660
1668
|
scrollIntoView: (n) => {
|
|
1661
1669
|
ue.current && ue.current.scrollTo({ key: n });
|
|
@@ -1727,7 +1735,7 @@ function Po(t, o) {
|
|
|
1727
1735
|
setSelectedRowKeys: Cn,
|
|
1728
1736
|
allSelectedRowKeys: wn,
|
|
1729
1737
|
flattenData: Nn
|
|
1730
|
-
} = ho(
|
|
1738
|
+
} = ho(w, Je, T, We);
|
|
1731
1739
|
function Wt(n) {
|
|
1732
1740
|
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);
|
|
1733
1741
|
}
|
|
@@ -1771,7 +1779,7 @@ function Po(t, o) {
|
|
|
1771
1779
|
i.scrollLeft !== ie.current && (p.scrollLeft = i.scrollLeft, dt()), ie.current = n.target.scrollLeft;
|
|
1772
1780
|
}
|
|
1773
1781
|
const [zt, Rn] = po(
|
|
1774
|
-
|
|
1782
|
+
w,
|
|
1775
1783
|
Nn,
|
|
1776
1784
|
We
|
|
1777
1785
|
);
|
|
@@ -1791,7 +1799,7 @@ function Po(t, o) {
|
|
|
1791
1799
|
const Vt = /* @__PURE__ */ u(
|
|
1792
1800
|
vo,
|
|
1793
1801
|
{
|
|
1794
|
-
...
|
|
1802
|
+
...w,
|
|
1795
1803
|
activeSorters: P,
|
|
1796
1804
|
currentSorter: Se,
|
|
1797
1805
|
selectedRowKeys: $t,
|
|
@@ -1843,7 +1851,7 @@ function Po(t, o) {
|
|
|
1843
1851
|
), Yt = /* @__PURE__ */ u(
|
|
1844
1852
|
bo,
|
|
1845
1853
|
{
|
|
1846
|
-
...
|
|
1854
|
+
...w,
|
|
1847
1855
|
saveRef: (n) => fe.current = n,
|
|
1848
1856
|
selectedRowKeys: $t,
|
|
1849
1857
|
indeterminateKeys: yn,
|
|
@@ -1866,7 +1874,7 @@ function Po(t, o) {
|
|
|
1866
1874
|
saveVirtualListRef: (n) => {
|
|
1867
1875
|
c && (ue.current = n, M.current = n == null ? void 0 : n.dom);
|
|
1868
1876
|
},
|
|
1869
|
-
___dangerouslySetInnerHTML___:
|
|
1877
|
+
___dangerouslySetInnerHTML___: w.___dangerouslySetInnerHTML___
|
|
1870
1878
|
}
|
|
1871
1879
|
), qt = !c && !pn ? /* @__PURE__ */ de(xt, { children: [
|
|
1872
1880
|
Yt,
|
|
@@ -1880,7 +1888,7 @@ function Po(t, o) {
|
|
|
1880
1888
|
};
|
|
1881
1889
|
}, [M.current]);
|
|
1882
1890
|
function vn() {
|
|
1883
|
-
const n = q(m) && m.x === "max-content" && !!m.y && se(
|
|
1891
|
+
const n = q(m) && m.x === "max-content" && !!m.y && se(C) && C.length > 0;
|
|
1884
1892
|
return ve && !c ? /* @__PURE__ */ u(
|
|
1885
1893
|
Fe,
|
|
1886
1894
|
{
|
|
@@ -1896,7 +1904,7 @@ function Po(t, o) {
|
|
|
1896
1904
|
producer: n,
|
|
1897
1905
|
onSetColumnWidths: ke,
|
|
1898
1906
|
expandedRowKeys: zt,
|
|
1899
|
-
data:
|
|
1907
|
+
data: C
|
|
1900
1908
|
}
|
|
1901
1909
|
),
|
|
1902
1910
|
qt
|
|
@@ -1951,13 +1959,13 @@ function Po(t, o) {
|
|
|
1951
1959
|
[`${f}-virtualized`]: c,
|
|
1952
1960
|
[`${f}-rtl`]: s
|
|
1953
1961
|
},
|
|
1954
|
-
|
|
1962
|
+
N
|
|
1955
1963
|
), Rt = I === "tl" || I === "tr" || I === "topCenter", Fn = Z(`${f}-pagination`, {
|
|
1956
1964
|
[`${f}-pagination-left`]: I === "tl" || I === "bl",
|
|
1957
1965
|
[`${f}-pagination-center`]: I === "topCenter" || I === "bottomCenter",
|
|
1958
1966
|
[`${f}-pagination-top`]: Rt
|
|
1959
1967
|
});
|
|
1960
|
-
let ut =
|
|
1968
|
+
let ut = w.loading;
|
|
1961
1969
|
typeof ut == "boolean" && (ut = { loading: ut });
|
|
1962
1970
|
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
1971
|
return /* @__PURE__ */ u(
|
|
@@ -1966,7 +1974,7 @@ function Po(t, o) {
|
|
|
1966
1974
|
ref: oe,
|
|
1967
1975
|
style: y,
|
|
1968
1976
|
className: An,
|
|
1969
|
-
...Un(
|
|
1977
|
+
...Un(w),
|
|
1970
1978
|
children: /* @__PURE__ */ de(
|
|
1971
1979
|
Wn,
|
|
1972
1980
|
{
|
|
@@ -1994,16 +2002,16 @@ function Ao(t) {
|
|
|
1994
2002
|
const { rtl: o } = Be(Ge), { columns: r, stickyOffsets: h, stickyClassNames: e, prefixCls: d } = Be(dn), { children: l, ...a } = t, s = _e.Children.map(
|
|
1995
2003
|
l,
|
|
1996
2004
|
(x) => x.props.colSpan || 1
|
|
1997
|
-
),
|
|
2005
|
+
), w = _e.Children.map(l, (x, y) => {
|
|
1998
2006
|
var O, j;
|
|
1999
|
-
const
|
|
2000
|
-
return g ? _e.cloneElement(
|
|
2001
|
-
...
|
|
2007
|
+
const N = x, g = Ct(N, "type.__PQB_TABLE_SUMMARY_CELL__") || Ct(N, "props.$$PqbTableSummaryCell"), k = (O = N == null ? void 0 : N.props) == null ? void 0 : O.style, E = (j = N == null ? void 0 : N.props) == null ? void 0 : j.className, C = s.slice(0, y).reduce((Q, z) => Q + z, 0), m = r[C].fixed === "left" ? { [o ? "right" : "left"]: h[C] } : r[C].fixed === "right" ? { [o ? "left" : "right"]: h[C] } : {}, b = r[C].fixed === "left" || r[C].fixed === "right" ? e[C] : "";
|
|
2008
|
+
return g ? _e.cloneElement(N, {
|
|
2009
|
+
...N.props,
|
|
2002
2010
|
className: Z(`${d}-td`, b, E),
|
|
2003
2011
|
style: { ...k, ...m }
|
|
2004
2012
|
}) : x;
|
|
2005
2013
|
});
|
|
2006
|
-
return /* @__PURE__ */ u("tr", { ...a, children:
|
|
2014
|
+
return /* @__PURE__ */ u("tr", { ...a, children: w });
|
|
2007
2015
|
}
|
|
2008
2016
|
function Ot(t) {
|
|
2009
2017
|
return t.children;
|