@gobolt/genesis 0.0.11 → 0.1.0
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/README.md +6 -0
- package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
- package/dist/{Compact-DBh6nSYB.js → Compact-Du9689ax.js} +8 -8
- package/dist/{ContextIsolator-CwuJooYf.js → ContextIsolator-BmfhJgG0.js} +2 -2
- package/dist/{DownOutlined-5-15jS0h.js → DownOutlined-Dcq69ZKM.js} +9 -9
- package/dist/{EllipsisOutlined-CJ2pgE2d.js → EllipsisOutlined-DGMph0Bj.js} +110 -110
- package/dist/{Keyframes-sPZXYuXt.js → Keyframes-C9_aCDvn.js} +1 -1
- package/dist/{Overflow-DdNKJLQh.js → Overflow-DWf4XIal.js} +31 -31
- package/dist/{Skeleton-B3vg9CbL.js → Skeleton-BVN4pcVe.js} +2 -2
- package/dist/TextArea-Bkf9hh7l.js +708 -0
- package/dist/{Typography-DqI7RslA.js → Typography-CoZ5qD-t.js} +3 -3
- package/dist/{button-B2Rgggx2.js → button-BwqpCxVM.js} +5 -5
- package/dist/components/Avatar/Avatar.js +3 -3
- package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
- package/dist/components/Avatar/styles.js +42 -42
- package/dist/components/Badge/Badge.js +3 -3
- package/dist/components/Badge/__tests__/Badge.test.js +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
- package/dist/components/Breadcrumb/styles.js +4 -4
- package/dist/components/Button/__tests__/Button.test.js +1 -1
- package/dist/components/Button/styles.js +1 -1
- package/dist/components/Card/__tests__/Card.test.js +1 -1
- package/dist/components/Card/styles.js +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -3
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
- package/dist/components/Checkbox/styles.js +1 -1
- package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +8 -8
- package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +4 -4
- package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DatePicker/DatePicker.js +5 -0
- package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +4 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
- package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
- package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
- package/dist/components/DateRangePicker/index.d.ts +2 -0
- package/dist/components/DateRangePicker/index.js +4 -0
- package/dist/components/ErrorBoundary/ErrorBoundary.js +3 -3
- package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +1 -1
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +3 -3
- package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
- package/dist/components/Form/Form.js +2 -2
- package/dist/components/Form/__stories__/FormStory.js +4 -4
- package/dist/components/Form/__tests__/form.test.js +2 -2
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Form/styles.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/__tests__/Input.test.js +1 -1
- package/dist/components/Input/styles.js +1 -1
- package/dist/components/Layout/Content/ResponsiveContent.js +3 -3
- package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
- package/dist/components/Layout/__tests__/Layout.test.js +1 -1
- package/dist/components/Message/Message.js +3 -3
- package/dist/components/Message/__tests__/Message.test.js +1 -1
- package/dist/components/Notification/Notification.js +3 -3
- package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +1 -1
- package/dist/components/Notification/__tests__/Notification.test.js +1 -1
- package/dist/components/Popover/Popover.js +1 -1
- package/dist/components/Popover/__tests__/Popover.test.js +1 -1
- package/dist/components/Popover/styles.js +1 -1
- package/dist/components/Progress/Progress.js +3 -3
- package/dist/components/Progress/Progress.util.js +3 -3
- package/dist/components/Progress/ProgressText.js +3 -3
- package/dist/components/Progress/__tests__/Progress.test.js +1 -1
- package/dist/components/Progress/styles.js +3 -3
- package/dist/components/Radio/Radio.js +3 -3
- package/dist/components/Radio/RadioGroup.js +1 -1
- package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
- package/dist/components/Row/Row.js +1 -1
- package/dist/components/Row/RowActions/RowActions.js +3 -3
- package/dist/components/Row/RowLabelValue/RowLabelValue.js +3 -3
- package/dist/components/Row/RowLabelValue/styles.js +1 -1
- package/dist/components/Row/__tests__/Row.test.js +1 -1
- package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
- package/dist/components/SegmentedControls/styles.js +27 -27
- package/dist/components/Select/Select.js +1 -1
- package/dist/components/Select/__tests__/Select.test.js +1 -1
- package/dist/components/Select/styles.js +1 -1
- package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
- package/dist/components/Switch/__tests__/Switch.test.js +1 -1
- package/dist/components/Switch/styles.js +15 -15
- package/dist/components/Table/Table.js +1 -1
- package/dist/components/Table/__mocks__/table-mocks.js +3 -3
- package/dist/components/Table/__tests__/Table.test.js +1 -1
- package/dist/components/Table/styles.js +1 -1
- package/dist/components/Tabs/__tests__/Tabs.test.js +1 -1
- package/dist/components/Tabs/styles.js +1 -1
- package/dist/components/Tile/__tests__/Tile.test.js +1 -1
- package/dist/components/Toast/Toast.js +3 -3
- package/dist/components/Toast/__tests__/Toast.test.js +2 -2
- package/dist/components/Toast/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -3
- package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
- package/dist/components/Tooltip/styles.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/__tests__/Typography.test.js +2 -2
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/Typography/styles.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +46 -42
- package/dist/{context-Cx7GtZpz.js → context-DIFtNa4d.js} +70 -70
- package/dist/{dropdown-zGGFIyJ_.js → dropdown-Dp_PTQ2u.js} +60 -59
- package/dist/genesis/GenesisThemeBreakdown.js +86 -44
- package/dist/genesis/labs/Lab.stories.d.ts +6 -0
- package/dist/genesis/styles.js +2 -2
- package/dist/{index-CdiHBmVe.js → index-BPVue1Yd.js} +44 -44
- package/dist/{index-CRotrkWm.js → index-BQM5OniU.js} +7 -7
- package/dist/{index-BTGF--50.js → index-B_1Ge8na.js} +20 -19
- package/dist/{index-ByspLxrB.js → index-BbTV2Cw5.js} +32 -31
- package/dist/index-BeGv28kJ.js +5173 -0
- package/dist/{index-Dyl-ddV6.js → index-BpZSuIUV.js} +16 -16
- package/dist/{index-CodMmNWv.js → index-BvOLXELm.js} +3 -3
- package/dist/{index-hoPiccJv.js → index-CLSrpQRW.js} +9 -8
- package/dist/{index-D0P16DlX.js → index-CbVOl2U6.js} +26 -24
- package/dist/{index-DWUXwgXK.js → index-D0U6r5O7.js} +265 -294
- package/dist/{index-BW_7pvTr.js → index-DEu2PVzQ.js} +4 -4
- package/dist/{index-DmZOkMjs.js → index-DNQ-jnBx.js} +1207 -1514
- package/dist/index-DOsPeIWJ.js +1000 -0
- package/dist/{index-CSPlXIlA.js → index-DRGX1Wem.js} +7 -7
- package/dist/index-DWjq9XYj.js +899 -0
- package/dist/index.js +53 -49
- package/dist/motion-CUN72xsH.js +33 -0
- package/dist/providers/GenesisProvider.js +1 -1
- package/dist/providers/ToastProvider.js +3 -3
- package/dist/providers/index.js +1 -1
- package/dist/providers/useGenesis.js +1 -1
- package/dist/{responsiveObserver-O1kw80RG.js → responsiveObserver-dCkpy7Cb.js} +1 -1
- package/dist/roundedArrow-DI_Q-xdU.js +65 -0
- package/dist/{setup-CKu7-AfI.js → setup-CUbCc8fQ.js} +2 -2
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +7 -7
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +3 -3
- package/dist/styles/theme/genesis-theme.js +211 -349
- package/dist/styles/theme/theme-tree/ThemeTree.js +114 -113
- package/dist/{styles-BSD221S5.js → styles-CWdUpZom.js} +12 -12
- package/dist/{styles-BDbHpHsc.js → styles-D1vKDy9V.js} +9 -9
- package/dist/{styles-D9iYILpv.js → styles-qerRs7Rn.js} +493 -492
- package/dist/test/setup.js +2 -2
- package/dist/{toArray-DGvPoJP_.js → toArray-U3Az44CO.js} +1 -1
- package/dist/{useBreakpoint-CAMzKscx.js → useBreakpoint-TkMv121M.js} +2 -2
- package/dist/{useCSSVarCls-C-MlZC6a.js → useCSSVarCls-Dau77fzS.js} +1 -1
- package/dist/useIcons-Ck4JP1m9.js +321 -0
- package/dist/{useLocale-DWRfeMSS.js → useLocale-CTfNpakL.js} +1 -1
- package/dist/{useMergedState-BoELfaU9.js → useMergedState-D6toxSxh.js} +1 -1
- package/dist/{useSize-CPo2bUE3.js → useSize-DSq4r6zy.js} +1 -1
- package/dist/{useVariants-Cin23jEC.js → useVariants-DrLzUVLU.js} +2 -2
- package/dist/{useZIndex-D81lkWy4.js → useZIndex-DhyHuZTN.js} +1 -1
- package/dist/utils/icon-util.js +38 -44
- package/package.json +2 -1
- package/dist/TextArea-CKWbFr0u.js +0 -1698
- package/dist/index-CqqwGTME.js +0 -956
|
@@ -2,40 +2,41 @@ import { d as oi } from "./styled-components.browser.esm-CZ1XM4o4.js";
|
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import X, { useEffect as pr, useMemo as un, useRef as ft, useState as mr, useCallback as Yn, useImperativeHandle as ai } from "react";
|
|
4
4
|
import { e as U, _ as q, w as Ae, g as yn, f as bn, d as fe, a as Ee, b as _, c as ii, F as ut } from "./presets-Djh_L_6R.js";
|
|
5
|
-
import {
|
|
5
|
+
import { F as kt, j as yt, m as bt, k as Dn, f as H, w as gt, C as Cn, t as li, g as Fn, D as si, o as xe, aa as qr, p as di, N as ci, c as gr, ab as ui, h as Hn, a as Tn, $ as ht, G as fi, z as Xr, Z as zo, X as hr, J as Gr, T as Bo, s as pi, x as mi, y as gi, e as hi, a6 as Ce, _ as vi, v as yi, P as bi, n as Ci, l as xi } from "./index-BbTV2Cw5.js";
|
|
6
6
|
import "./index-DLdU7Tpd.js";
|
|
7
|
-
import { R as vr } from "./index-
|
|
7
|
+
import { R as vr } from "./index-BQM5OniU.js";
|
|
8
8
|
import { i as Si } from "./isVisible-D3-B85BJ.js";
|
|
9
9
|
import { i as Ei } from "./styleChecker-Cotu61d0.js";
|
|
10
|
-
import {
|
|
10
|
+
import { g as Ur, b as Yr } from "./index-D0U6r5O7.js";
|
|
11
11
|
import { p as et } from "./pickAttrs-CleuMJFR.js";
|
|
12
|
-
import { t as yr } from "./toArray-
|
|
13
|
-
import { S as
|
|
14
|
-
import { R as
|
|
15
|
-
import { o as
|
|
16
|
-
import { u as It } from "./useMergedState-
|
|
17
|
-
import { u as
|
|
18
|
-
import { D as
|
|
19
|
-
import { R as
|
|
20
|
-
import { B as Dt } from "./button-
|
|
21
|
-
import { C as
|
|
22
|
-
import { u as br } from "./useCSSVarCls-
|
|
23
|
-
import { u as Cr } from "./useSize-
|
|
24
|
-
import { W as
|
|
25
|
-
import { F as
|
|
26
|
-
import { u as
|
|
27
|
-
import { u as Ao, a as ji } from "./useBreakpoint-
|
|
12
|
+
import { t as yr } from "./toArray-U3Az44CO.js";
|
|
13
|
+
import { S as wi, L as Lo, E as Jr, D as $i } from "./index-DNQ-jnBx.js";
|
|
14
|
+
import { R as Ni } from "./DownOutlined-Dcq69ZKM.js";
|
|
15
|
+
import { o as jo } from "./omit-B_u6A-HL.js";
|
|
16
|
+
import { u as It } from "./useMergedState-D6toxSxh.js";
|
|
17
|
+
import { u as Oi, a as Ri, C as Pt, g as ki } from "./index-BPVue1Yd.js";
|
|
18
|
+
import { D as Ho, R as Qr, b as Zr, M as Ii, O as Pi } from "./dropdown-Dp_PTQ2u.js";
|
|
19
|
+
import { R as Di } from "./EllipsisOutlined-DGMph0Bj.js";
|
|
20
|
+
import { B as Dt } from "./button-BwqpCxVM.js";
|
|
21
|
+
import { C as Ti, a as Ki, u as _i } from "./Compact-Du9689ax.js";
|
|
22
|
+
import { u as br } from "./useCSSVarCls-Dau77fzS.js";
|
|
23
|
+
import { u as Cr } from "./useSize-DSq4r6zy.js";
|
|
24
|
+
import { W as Mi, T as zi } from "./index-BpZSuIUV.js";
|
|
25
|
+
import { F as Bi } from "./context-DIFtNa4d.js";
|
|
26
|
+
import { u as Li } from "./useId-D2tzlufo.js";
|
|
27
|
+
import { u as Ao, a as ji } from "./useBreakpoint-TkMv121M.js";
|
|
28
28
|
import { I as mn } from "./AntdIcon-nCNB0J1E.js";
|
|
29
29
|
import { K as nn } from "./KeyCode-DM2sFh3-.js";
|
|
30
|
-
import { a as
|
|
31
|
-
import { u as
|
|
30
|
+
import { a as Hi, i as Ai, e as Fi, f as Vi, h as Wi, j as qi } from "./index-DOsPeIWJ.js";
|
|
31
|
+
import { u as Xi } from "./useLocale-CTfNpakL.js";
|
|
32
32
|
import { c as Jt } from "./reactNode-sKPeiqPL.js";
|
|
33
|
-
import { K as xr } from "./Keyframes-
|
|
33
|
+
import { K as xr } from "./Keyframes-C9_aCDvn.js";
|
|
34
|
+
import { i as Gi } from "./motion-CUN72xsH.js";
|
|
34
35
|
import { g as Ui } from "./collapse-Dtpt-6W_.js";
|
|
35
36
|
import { R as Yi } from "./LoadingOutlined-C1qu6ymP.js";
|
|
36
37
|
import { R as Ji } from "./SearchOutlined-DNj-7b_h.js";
|
|
37
|
-
import { I as Qi } from "./index-
|
|
38
|
-
import { T as eo } from "./index-
|
|
38
|
+
import { I as Qi } from "./index-CLSrpQRW.js";
|
|
39
|
+
import { T as eo } from "./index-DWjq9XYj.js";
|
|
39
40
|
function Qt(e) {
|
|
40
41
|
return e != null && e === e.window;
|
|
41
42
|
}
|
|
@@ -144,7 +145,7 @@ const Fo = /* @__PURE__ */ l.createContext(null), tl = Fo.Provider, Vo = /* @__P
|
|
|
144
145
|
insetInlineStart: 0,
|
|
145
146
|
width: "100%",
|
|
146
147
|
height: "100%",
|
|
147
|
-
border: `${
|
|
148
|
+
border: `${H(p)} ${C} ${t}`,
|
|
148
149
|
borderRadius: "50%",
|
|
149
150
|
visibility: "hidden",
|
|
150
151
|
opacity: 0,
|
|
@@ -298,9 +299,9 @@ const Fo = /* @__PURE__ */ l.createContext(null), tl = Fo.Provider, Vo = /* @__P
|
|
|
298
299
|
paddingBlock: 0,
|
|
299
300
|
color: n,
|
|
300
301
|
fontSize: p,
|
|
301
|
-
lineHeight:
|
|
302
|
+
lineHeight: H($(r).sub($(o).mul(2)).equal()),
|
|
302
303
|
background: f,
|
|
303
|
-
border: `${
|
|
304
|
+
border: `${H(o)} ${i} ${c}`,
|
|
304
305
|
// strange align fix for chrome but works
|
|
305
306
|
// https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
|
|
306
307
|
borderBlockStartWidth: $(o).add(0.02).equal(),
|
|
@@ -336,7 +337,7 @@ const Fo = /* @__PURE__ */ l.createContext(null), tl = Fo.Provider, Vo = /* @__P
|
|
|
336
337
|
}
|
|
337
338
|
},
|
|
338
339
|
"&:first-child": {
|
|
339
|
-
borderInlineStart: `${
|
|
340
|
+
borderInlineStart: `${H(o)} ${i} ${c}`,
|
|
340
341
|
borderStartStartRadius: g,
|
|
341
342
|
borderEndStartRadius: g
|
|
342
343
|
},
|
|
@@ -350,7 +351,7 @@ const Fo = /* @__PURE__ */ l.createContext(null), tl = Fo.Provider, Vo = /* @__P
|
|
|
350
351
|
[`${t}-group-large &`]: {
|
|
351
352
|
height: m,
|
|
352
353
|
fontSize: u,
|
|
353
|
-
lineHeight:
|
|
354
|
+
lineHeight: H($(m).sub($(o).mul(2)).equal()),
|
|
354
355
|
"&:first-child": {
|
|
355
356
|
borderStartStartRadius: x,
|
|
356
357
|
borderEndStartRadius: x
|
|
@@ -364,7 +365,7 @@ const Fo = /* @__PURE__ */ l.createContext(null), tl = Fo.Provider, Vo = /* @__P
|
|
|
364
365
|
height: h,
|
|
365
366
|
paddingInline: $(C).sub(o).equal(),
|
|
366
367
|
paddingBlock: 0,
|
|
367
|
-
lineHeight:
|
|
368
|
+
lineHeight: H($(h).sub($(o).mul(2)).equal()),
|
|
368
369
|
"&:first-child": {
|
|
369
370
|
borderStartStartRadius: y,
|
|
370
371
|
borderEndStartRadius: y
|
|
@@ -491,7 +492,7 @@ const Fo = /* @__PURE__ */ l.createContext(null), tl = Fo.Provider, Vo = /* @__P
|
|
|
491
492
|
const {
|
|
492
493
|
controlOutline: n,
|
|
493
494
|
controlOutlineWidth: r
|
|
494
|
-
} = e, t = `0 0 0 ${
|
|
495
|
+
} = e, t = `0 0 0 ${H(r)} ${n}`, i = bt(e, {
|
|
495
496
|
radioFocusShadow: t,
|
|
496
497
|
radioButtonFocusShadow: t
|
|
497
498
|
});
|
|
@@ -517,14 +518,14 @@ const dl = (e, n) => {
|
|
|
517
518
|
radio: d
|
|
518
519
|
} = l.useContext(Cn), s = l.useRef(null), p = li(n, s), {
|
|
519
520
|
isFormItemInput: f
|
|
520
|
-
} = l.useContext(
|
|
521
|
+
} = l.useContext(Bi);
|
|
521
522
|
if (process.env.NODE_ENV !== "production") {
|
|
522
523
|
const T = Fn("Radio");
|
|
523
524
|
process.env.NODE_ENV !== "production" && T(!("optionType" in e), "usage", "`optionType` is only support in Radio.Group.");
|
|
524
525
|
}
|
|
525
526
|
const u = (T) => {
|
|
526
|
-
var K,
|
|
527
|
-
(K = e.onChange) === null || K === void 0 || K.call(e, T), (
|
|
527
|
+
var K, z;
|
|
528
|
+
(K = e.onChange) === null || K === void 0 || K.call(e, T), (z = o == null ? void 0 : o.onChange) === null || z === void 0 || z.call(o, T);
|
|
528
529
|
}, {
|
|
529
530
|
prefixCls: m,
|
|
530
531
|
className: h,
|
|
@@ -540,8 +541,8 @@ const dl = (e, n) => {
|
|
|
540
541
|
[`${w}-wrapper-rtl`]: a === "rtl",
|
|
541
542
|
[`${w}-wrapper-in-form-item`]: f,
|
|
542
543
|
[`${w}-wrapper-block`]: !!(o != null && o.block)
|
|
543
|
-
}, d == null ? void 0 : d.className, h, C, I, D, O), [R, $] =
|
|
544
|
-
return b(/* @__PURE__ */ l.createElement(
|
|
544
|
+
}, d == null ? void 0 : d.className, h, C, I, D, O), [R, $] = Oi(P.onClick);
|
|
545
|
+
return b(/* @__PURE__ */ l.createElement(Mi, {
|
|
545
546
|
component: "Radio",
|
|
546
547
|
disabled: P.disabled
|
|
547
548
|
}, /* @__PURE__ */ l.createElement("label", {
|
|
@@ -551,7 +552,7 @@ const dl = (e, n) => {
|
|
|
551
552
|
onMouseLeave: e.onMouseLeave,
|
|
552
553
|
title: x,
|
|
553
554
|
onClick: R
|
|
554
|
-
}, /* @__PURE__ */ l.createElement(
|
|
555
|
+
}, /* @__PURE__ */ l.createElement(Ri, Object.assign({}, P, {
|
|
555
556
|
className: U(P.className, {
|
|
556
557
|
[zi]: !E
|
|
557
558
|
}),
|
|
@@ -566,7 +567,7 @@ const cl = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
566
567
|
const {
|
|
567
568
|
getPrefixCls: r,
|
|
568
569
|
direction: t
|
|
569
|
-
} = l.useContext(Cn), o =
|
|
570
|
+
} = l.useContext(Cn), o = Li(), {
|
|
570
571
|
prefixCls: i,
|
|
571
572
|
className: c,
|
|
572
573
|
rootClassName: a,
|
|
@@ -593,8 +594,8 @@ const cl = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
593
594
|
const ae = I, te = Q.target.value;
|
|
594
595
|
"value" in e || D(te), te !== ae && (S == null || S(Q));
|
|
595
596
|
}, [I, D, S]), k = r("radio", i), N = `${k}-group`, R = br(k), [$, T, K] = Wo(k, R);
|
|
596
|
-
let
|
|
597
|
-
d && d.length > 0 && (
|
|
597
|
+
let z = f;
|
|
598
|
+
d && d.length > 0 && (z = d.map((Q) => typeof Q == "string" || typeof Q == "number" ? /* @__PURE__ */ l.createElement(vt, {
|
|
598
599
|
key: Q.toString(),
|
|
599
600
|
prefixCls: k,
|
|
600
601
|
disabled: p,
|
|
@@ -637,7 +638,7 @@ const cl = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
637
638
|
ref: n
|
|
638
639
|
}), /* @__PURE__ */ l.createElement(tl, {
|
|
639
640
|
value: Z
|
|
640
|
-
},
|
|
641
|
+
}, z)));
|
|
641
642
|
}), ul = /* @__PURE__ */ l.memo(cl);
|
|
642
643
|
var fl = function(e, n) {
|
|
643
644
|
var r = {};
|
|
@@ -758,7 +759,7 @@ function Ft(e, n, r) {
|
|
|
758
759
|
break;
|
|
759
760
|
}
|
|
760
761
|
}
|
|
761
|
-
var v = Object.assign(
|
|
762
|
+
var v = Object.assign(jo(u, [].concat(xe(o), [i, c])), {
|
|
762
763
|
title: g,
|
|
763
764
|
key: C,
|
|
764
765
|
parent: f,
|
|
@@ -1024,19 +1025,19 @@ const Ol = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
1024
1025
|
styles: v
|
|
1025
1026
|
} = e, S = Nl(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [E, w] = Array.isArray(d) ? d : [d, d], O = no(w), b = no(E), I = to(w), D = to(E), P = yr(u, {
|
|
1026
1027
|
keepEmpty: !0
|
|
1027
|
-
}), k = s === void 0 && m === "horizontal" ? "center" : s, N = i("space", h), [R, $, T] =
|
|
1028
|
+
}), k = s === void 0 && m === "horizontal" ? "center" : s, N = i("space", h), [R, $, T] = Ki(N), K = U(N, c == null ? void 0 : c.className, $, `${N}-${m}`, {
|
|
1028
1029
|
[`${N}-rtl`]: a === "rtl",
|
|
1029
1030
|
[`${N}-align-${k}`]: k,
|
|
1030
1031
|
[`${N}-gap-row-${w}`]: O,
|
|
1031
1032
|
[`${N}-gap-col-${E}`]: b
|
|
1032
|
-
}, p, f, T),
|
|
1033
|
+
}, p, f, T), z = U(`${N}-item`, (t = x == null ? void 0 : x.item) !== null && t !== void 0 ? t : (o = c == null ? void 0 : c.classNames) === null || o === void 0 ? void 0 : o.item);
|
|
1033
1034
|
let M = 0;
|
|
1034
1035
|
const F = P.map((ae, te) => {
|
|
1035
1036
|
var re, ve;
|
|
1036
1037
|
ae != null && (M = te);
|
|
1037
|
-
const ee = (ae == null ? void 0 : ae.key) || `${
|
|
1038
|
+
const ee = (ae == null ? void 0 : ae.key) || `${z}-${te}`;
|
|
1038
1039
|
return /* @__PURE__ */ l.createElement($l, {
|
|
1039
|
-
className:
|
|
1040
|
+
className: z,
|
|
1040
1041
|
key: ee,
|
|
1041
1042
|
index: te,
|
|
1042
1043
|
split: C,
|
|
@@ -1056,7 +1057,7 @@ const Ol = /* @__PURE__ */ l.forwardRef((e, n) => {
|
|
|
1056
1057
|
value: Z
|
|
1057
1058
|
}, F)));
|
|
1058
1059
|
}), Er = Ol;
|
|
1059
|
-
Er.Compact =
|
|
1060
|
+
Er.Compact = Ti;
|
|
1060
1061
|
process.env.NODE_ENV !== "production" && (Er.displayName = "Space");
|
|
1061
1062
|
var Rl = function(e, n) {
|
|
1062
1063
|
var r = {};
|
|
@@ -1091,7 +1092,7 @@ const Yo = (e) => {
|
|
|
1091
1092
|
placement: E,
|
|
1092
1093
|
getPopupContainer: w,
|
|
1093
1094
|
href: O,
|
|
1094
|
-
icon: b = /* @__PURE__ */ l.createElement(
|
|
1095
|
+
icon: b = /* @__PURE__ */ l.createElement(Di, null),
|
|
1095
1096
|
title: I,
|
|
1096
1097
|
buttonsRender: D = (ne) => ne,
|
|
1097
1098
|
mouseEnterDelay: P,
|
|
@@ -1100,7 +1101,7 @@ const Yo = (e) => {
|
|
|
1100
1101
|
overlayStyle: R,
|
|
1101
1102
|
destroyPopupOnHide: $,
|
|
1102
1103
|
dropdownRender: T
|
|
1103
|
-
} = e, K = Rl(e, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]),
|
|
1104
|
+
} = e, K = Rl(e, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide", "dropdownRender"]), z = r("dropdown", o), M = `${z}-button`, F = {
|
|
1104
1105
|
menu: m,
|
|
1105
1106
|
arrow: h,
|
|
1106
1107
|
autoFocus: C,
|
|
@@ -1118,7 +1119,7 @@ const Yo = (e) => {
|
|
|
1118
1119
|
}, {
|
|
1119
1120
|
compactSize: Z,
|
|
1120
1121
|
compactItemClassnames: Q
|
|
1121
|
-
} =
|
|
1122
|
+
} = _i(z, t), ae = U(M, Q, u);
|
|
1122
1123
|
"overlay" in e && (F.overlay = g), "open" in e && (F.open = v), "placement" in e ? F.placement = E : F.placement = t === "rtl" ? "bottomLeft" : "bottomRight";
|
|
1123
1124
|
const te = /* @__PURE__ */ l.createElement(Dt, {
|
|
1124
1125
|
type: i,
|
|
@@ -1138,10 +1139,10 @@ const Yo = (e) => {
|
|
|
1138
1139
|
className: ae,
|
|
1139
1140
|
size: Z,
|
|
1140
1141
|
block: !0
|
|
1141
|
-
}, K), ve, /* @__PURE__ */ l.createElement(
|
|
1142
|
+
}, K), ve, /* @__PURE__ */ l.createElement(Ho, Object.assign({}, F), ee));
|
|
1142
1143
|
};
|
|
1143
1144
|
Yo.__ANT_BUTTON = !0;
|
|
1144
|
-
const wr =
|
|
1145
|
+
const wr = Ho;
|
|
1145
1146
|
wr.Button = Yo;
|
|
1146
1147
|
function Nt(e, n, r, t) {
|
|
1147
1148
|
var o = qr.unstable_batchedUpdates ? function(c) {
|
|
@@ -1278,49 +1279,49 @@ function ro(e) {
|
|
|
1278
1279
|
var n = Number(e);
|
|
1279
1280
|
return typeof n == "number" && !Number.isNaN(n) && isFinite(n) && Math.floor(n) === n;
|
|
1280
1281
|
}
|
|
1281
|
-
function
|
|
1282
|
+
function jn(e, n, r) {
|
|
1282
1283
|
var t = typeof e > "u" ? n : e;
|
|
1283
1284
|
return Math.floor((r - 1) / t) + 1;
|
|
1284
1285
|
}
|
|
1285
1286
|
var Zo = function(n) {
|
|
1286
|
-
var r, t = n.prefixCls, o = t === void 0 ? "rc-pagination" : t, i = n.selectPrefixCls, c = i === void 0 ? "rc-select" : i, a = n.className, d = n.current, s = n.defaultCurrent, p = s === void 0 ? 1 : s, f = n.total, u = f === void 0 ? 0 : f, m = n.pageSize, h = n.defaultPageSize, C = h === void 0 ? 10 : h, g = n.onChange, y = g === void 0 ? Vt : g, x = n.hideOnSinglePage, v = n.align, S = n.showPrevNextJumpers, E = S === void 0 ? !0 : S, w = n.showQuickJumper, O = n.showLessItems, b = n.showTitle, I = b === void 0 ? !0 : b, D = n.onShowSizeChange, P = D === void 0 ? Vt : D, k = n.locale, N = k === void 0 ? Tl : k, R = n.style, $ = n.totalBoundaryShowSizeChanger, T = $ === void 0 ? 50 : $, K = n.disabled,
|
|
1287
|
+
var r, t = n.prefixCls, o = t === void 0 ? "rc-pagination" : t, i = n.selectPrefixCls, c = i === void 0 ? "rc-select" : i, a = n.className, d = n.current, s = n.defaultCurrent, p = s === void 0 ? 1 : s, f = n.total, u = f === void 0 ? 0 : f, m = n.pageSize, h = n.defaultPageSize, C = h === void 0 ? 10 : h, g = n.onChange, y = g === void 0 ? Vt : g, x = n.hideOnSinglePage, v = n.align, S = n.showPrevNextJumpers, E = S === void 0 ? !0 : S, w = n.showQuickJumper, O = n.showLessItems, b = n.showTitle, I = b === void 0 ? !0 : b, D = n.onShowSizeChange, P = D === void 0 ? Vt : D, k = n.locale, N = k === void 0 ? Tl : k, R = n.style, $ = n.totalBoundaryShowSizeChanger, T = $ === void 0 ? 50 : $, K = n.disabled, z = n.simple, M = n.showTotal, F = n.showSizeChanger, Z = F === void 0 ? u > T : F, Q = n.sizeChangerRender, ae = n.pageSizeOptions, te = n.itemRender, re = te === void 0 ? _l : te, ve = n.jumpPrevIcon, ee = n.jumpNextIcon, ne = n.prevIcon, Ne = n.nextIcon, Re = X.useRef(null), A = It(10, {
|
|
1287
1288
|
value: m,
|
|
1288
1289
|
defaultValue: C
|
|
1289
1290
|
}), Y = Ee(A, 2), L = Y[0], V = Y[1], ie = It(1, {
|
|
1290
1291
|
value: d,
|
|
1291
1292
|
defaultValue: p,
|
|
1292
1293
|
postState: function($e) {
|
|
1293
|
-
return Math.max(1, Math.min($e,
|
|
1294
|
+
return Math.max(1, Math.min($e, jn(void 0, L, u)));
|
|
1294
1295
|
}
|
|
1295
|
-
}), ce = Ee(ie, 2), J = ce[0], ye = ce[1], Ke = X.useState(J), ke = Ee(Ke, 2),
|
|
1296
|
+
}), ce = Ee(ie, 2), J = ce[0], ye = ce[1], Ke = X.useState(J), ke = Ee(Ke, 2), B = ke[0], W = ke[1];
|
|
1296
1297
|
pr(function() {
|
|
1297
1298
|
W(J);
|
|
1298
1299
|
}, [J]);
|
|
1299
1300
|
var se = y !== Vt, ge = "current" in n;
|
|
1300
1301
|
process.env.NODE_ENV !== "production" && Ae(ge ? se : !0, "You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");
|
|
1301
|
-
var ue = Math.max(1, J - (O ? 3 : 5)), _e = Math.min(
|
|
1302
|
+
var ue = Math.max(1, J - (O ? 3 : 5)), _e = Math.min(jn(void 0, L, u), J + (O ? 3 : 5));
|
|
1302
1303
|
function we(de, $e) {
|
|
1303
|
-
var
|
|
1304
|
+
var je = de || /* @__PURE__ */ X.createElement("button", {
|
|
1304
1305
|
type: "button",
|
|
1305
1306
|
"aria-label": $e,
|
|
1306
1307
|
className: "".concat(o, "-item-link")
|
|
1307
1308
|
});
|
|
1308
|
-
return typeof de == "function" && (
|
|
1309
|
+
return typeof de == "function" && (je = /* @__PURE__ */ X.createElement(de, q({}, n))), je;
|
|
1309
1310
|
}
|
|
1310
|
-
function
|
|
1311
|
-
var $e = de.target.value,
|
|
1312
|
-
return $e === "" ? En = $e : Number.isNaN(Number($e)) ? En =
|
|
1311
|
+
function ze(de) {
|
|
1312
|
+
var $e = de.target.value, je = jn(void 0, L, u), En;
|
|
1313
|
+
return $e === "" ? En = $e : Number.isNaN(Number($e)) ? En = B : $e >= je ? En = je : En = Number($e), En;
|
|
1313
1314
|
}
|
|
1314
1315
|
function Oe(de) {
|
|
1315
1316
|
return ro(de) && de !== J && ro(u) && u > 0;
|
|
1316
1317
|
}
|
|
1317
1318
|
var G = u > L ? w : !1;
|
|
1318
|
-
function
|
|
1319
|
+
function j(de) {
|
|
1319
1320
|
(de.keyCode === nn.UP || de.keyCode === nn.DOWN) && de.preventDefault();
|
|
1320
1321
|
}
|
|
1321
1322
|
function pe(de) {
|
|
1322
|
-
var $e =
|
|
1323
|
-
switch ($e !==
|
|
1323
|
+
var $e = ze(de);
|
|
1324
|
+
switch ($e !== B && W($e), de.keyCode) {
|
|
1324
1325
|
case nn.ENTER:
|
|
1325
1326
|
le($e);
|
|
1326
1327
|
break;
|
|
@@ -1333,24 +1334,24 @@ var Zo = function(n) {
|
|
|
1333
1334
|
}
|
|
1334
1335
|
}
|
|
1335
1336
|
function Me(de) {
|
|
1336
|
-
le(
|
|
1337
|
+
le(ze(de));
|
|
1337
1338
|
}
|
|
1338
1339
|
function Ie(de) {
|
|
1339
|
-
var $e =
|
|
1340
|
-
V(de), W(
|
|
1340
|
+
var $e = jn(de, L, u), je = J > $e && $e !== 0 ? $e : J;
|
|
1341
|
+
V(de), W(je), P == null || P(J, de), ye(je), y == null || y(je, de);
|
|
1341
1342
|
}
|
|
1342
1343
|
function le(de) {
|
|
1343
1344
|
if (Oe(de) && !K) {
|
|
1344
|
-
var $e =
|
|
1345
|
-
return de > $e ?
|
|
1345
|
+
var $e = jn(void 0, L, u), je = de;
|
|
1346
|
+
return de > $e ? je = $e : de < 1 && (je = 1), je !== B && W(je), ye(je), y == null || y(je, L), je;
|
|
1346
1347
|
}
|
|
1347
1348
|
return J;
|
|
1348
1349
|
}
|
|
1349
|
-
var Pe = J > 1, he = J <
|
|
1350
|
+
var Pe = J > 1, he = J < jn(void 0, L, u);
|
|
1350
1351
|
function Ve() {
|
|
1351
1352
|
Pe && le(J - 1);
|
|
1352
1353
|
}
|
|
1353
|
-
function
|
|
1354
|
+
function Be() {
|
|
1354
1355
|
he && le(J + 1);
|
|
1355
1356
|
}
|
|
1356
1357
|
function Ue() {
|
|
@@ -1361,7 +1362,7 @@ var Zo = function(n) {
|
|
|
1361
1362
|
}
|
|
1362
1363
|
function hn(de, $e) {
|
|
1363
1364
|
if (de.key === "Enter" || de.charCode === nn.ENTER || de.keyCode === nn.ENTER) {
|
|
1364
|
-
for (var
|
|
1365
|
+
for (var je = arguments.length, En = new Array(je > 2 ? je - 2 : 0), Gn = 2; Gn < je; Gn++)
|
|
1365
1366
|
En[Gn - 2] = arguments[Gn];
|
|
1366
1367
|
$e.apply(void 0, En);
|
|
1367
1368
|
}
|
|
@@ -1370,7 +1371,7 @@ var Zo = function(n) {
|
|
|
1370
1371
|
hn(de, Ve);
|
|
1371
1372
|
}
|
|
1372
1373
|
function Mn(de) {
|
|
1373
|
-
hn(de,
|
|
1374
|
+
hn(de, Be);
|
|
1374
1375
|
}
|
|
1375
1376
|
function Je(de) {
|
|
1376
1377
|
hn(de, Ue);
|
|
@@ -1391,14 +1392,14 @@ var Zo = function(n) {
|
|
|
1391
1392
|
}) : $e;
|
|
1392
1393
|
}
|
|
1393
1394
|
function We(de) {
|
|
1394
|
-
(de.type === "click" || de.keyCode === nn.ENTER) && le(
|
|
1395
|
+
(de.type === "click" || de.keyCode === nn.ENTER) && le(B);
|
|
1395
1396
|
}
|
|
1396
1397
|
var on = null, xn = et(n, {
|
|
1397
1398
|
aria: !0,
|
|
1398
1399
|
data: !0
|
|
1399
1400
|
}), fn = M && /* @__PURE__ */ X.createElement("li", {
|
|
1400
1401
|
className: "".concat(o, "-total-text")
|
|
1401
|
-
}, M(u, [u === 0 ? 0 : (J - 1) * L + 1, J * L > u ? u : J * L])), dn = null, Fe =
|
|
1402
|
+
}, M(u, [u === 0 ? 0 : (J - 1) * L + 1, J * L > u ? u : J * L])), dn = null, Fe = jn(void 0, L, u);
|
|
1402
1403
|
if (x && u <= L)
|
|
1403
1404
|
return null;
|
|
1404
1405
|
var Xe = [], On = {
|
|
@@ -1408,8 +1409,8 @@ var Zo = function(n) {
|
|
|
1408
1409
|
showTitle: I,
|
|
1409
1410
|
itemRender: re,
|
|
1410
1411
|
page: -1
|
|
1411
|
-
}, Vn = J - 1 > 0 ? J - 1 : 0, lt = J + 1 < Fe ? J + 1 : Fe, oe = w && w.goButton, Se = bn(
|
|
1412
|
-
|
|
1412
|
+
}, Vn = J - 1 > 0 ? J - 1 : 0, lt = J + 1 < Fe ? J + 1 : Fe, oe = w && w.goButton, Se = bn(z) === "object" ? z.readOnly : !z, De = oe, He = null;
|
|
1413
|
+
z && (oe && (typeof oe == "boolean" ? De = /* @__PURE__ */ X.createElement("button", {
|
|
1413
1414
|
type: "button",
|
|
1414
1415
|
onClick: We,
|
|
1415
1416
|
onKeyUp: We
|
|
@@ -1419,14 +1420,14 @@ var Zo = function(n) {
|
|
|
1419
1420
|
}, oe), De = /* @__PURE__ */ X.createElement("li", {
|
|
1420
1421
|
title: I ? "".concat(N.jump_to).concat(J, "/").concat(Fe) : null,
|
|
1421
1422
|
className: "".concat(o, "-simple-pager")
|
|
1422
|
-
}, De)),
|
|
1423
|
+
}, De)), He = /* @__PURE__ */ X.createElement("li", {
|
|
1423
1424
|
title: I ? "".concat(J, "/").concat(Fe) : null,
|
|
1424
1425
|
className: "".concat(o, "-simple-pager")
|
|
1425
|
-
}, Se ?
|
|
1426
|
+
}, Se ? B : /* @__PURE__ */ X.createElement("input", {
|
|
1426
1427
|
type: "text",
|
|
1427
|
-
value:
|
|
1428
|
+
value: B,
|
|
1428
1429
|
disabled: K,
|
|
1429
|
-
onKeyDown:
|
|
1430
|
+
onKeyDown: j,
|
|
1430
1431
|
onKeyUp: pe,
|
|
1431
1432
|
onChange: pe,
|
|
1432
1433
|
onBlur: Me,
|
|
@@ -1466,11 +1467,11 @@ var Zo = function(n) {
|
|
|
1466
1467
|
}, st) : null);
|
|
1467
1468
|
var kn = Math.max(1, J - Le), Sn = Math.min(J + Le, Fe);
|
|
1468
1469
|
J - 1 <= Le && (Sn = 1 + Le * 2), Fe - J <= Le && (kn = Fe - Le * 2);
|
|
1469
|
-
for (var
|
|
1470
|
+
for (var zn = kn; zn <= Sn; zn += 1)
|
|
1470
1471
|
Xe.push(/* @__PURE__ */ X.createElement(Jn, fe({}, On, {
|
|
1471
|
-
key:
|
|
1472
|
-
page:
|
|
1473
|
-
active: J ===
|
|
1472
|
+
key: zn,
|
|
1473
|
+
page: zn,
|
|
1474
|
+
active: J === zn
|
|
1474
1475
|
})));
|
|
1475
1476
|
if (J - 1 >= Le * 2 && J !== 3 && (Xe[0] = /* @__PURE__ */ X.cloneElement(Xe[0], {
|
|
1476
1477
|
className: U("".concat(o, "-item-after-jump-prev"), Xe[0].props.className)
|
|
@@ -1503,21 +1504,21 @@ var Zo = function(n) {
|
|
|
1503
1504
|
var Xn = Qe(lt);
|
|
1504
1505
|
if (Xn) {
|
|
1505
1506
|
var In, Pn;
|
|
1506
|
-
|
|
1507
|
+
z ? (In = !he, Pn = Pe ? 0 : null) : (In = !he || !Fe, Pn = In ? null : 0), Xn = /* @__PURE__ */ X.createElement("li", {
|
|
1507
1508
|
title: I ? N.next_page : null,
|
|
1508
|
-
onClick:
|
|
1509
|
+
onClick: Be,
|
|
1509
1510
|
tabIndex: Pn,
|
|
1510
1511
|
onKeyDown: Mn,
|
|
1511
1512
|
className: U("".concat(o, "-next"), _({}, "".concat(o, "-disabled"), In)),
|
|
1512
1513
|
"aria-disabled": In
|
|
1513
1514
|
}, Xn);
|
|
1514
1515
|
}
|
|
1515
|
-
var wt = U(o, a, (r = {}, _(r, "".concat(o, "-start"), v === "start"), _(r, "".concat(o, "-center"), v === "center"), _(r, "".concat(o, "-end"), v === "end"), _(r, "".concat(o, "-simple"),
|
|
1516
|
+
var wt = U(o, a, (r = {}, _(r, "".concat(o, "-start"), v === "start"), _(r, "".concat(o, "-center"), v === "center"), _(r, "".concat(o, "-end"), v === "end"), _(r, "".concat(o, "-simple"), z), _(r, "".concat(o, "-disabled"), K), r));
|
|
1516
1517
|
return /* @__PURE__ */ X.createElement("ul", fe({
|
|
1517
1518
|
className: wt,
|
|
1518
1519
|
style: R,
|
|
1519
1520
|
ref: Re
|
|
1520
|
-
}, xn), fn, Wn,
|
|
1521
|
+
}, xn), fn, Wn, z ? He : Xe, Xn, /* @__PURE__ */ X.createElement(Qo, {
|
|
1521
1522
|
locale: N,
|
|
1522
1523
|
rootPrefixCls: o,
|
|
1523
1524
|
disabled: K,
|
|
@@ -1612,20 +1613,20 @@ const Ml = (e) => {
|
|
|
1612
1613
|
}
|
|
1613
1614
|
}
|
|
1614
1615
|
};
|
|
1615
|
-
},
|
|
1616
|
+
}, zl = (e) => {
|
|
1616
1617
|
const {
|
|
1617
1618
|
componentCls: n
|
|
1618
1619
|
} = e;
|
|
1619
1620
|
return {
|
|
1620
1621
|
[`&${n}-mini ${n}-total-text, &${n}-mini ${n}-simple-pager`]: {
|
|
1621
1622
|
height: e.itemSizeSM,
|
|
1622
|
-
lineHeight:
|
|
1623
|
+
lineHeight: H(e.itemSizeSM)
|
|
1623
1624
|
},
|
|
1624
1625
|
[`&${n}-mini ${n}-item`]: {
|
|
1625
1626
|
minWidth: e.itemSizeSM,
|
|
1626
1627
|
height: e.itemSizeSM,
|
|
1627
1628
|
margin: 0,
|
|
1628
|
-
lineHeight:
|
|
1629
|
+
lineHeight: H(e.calc(e.itemSizeSM).sub(2).equal())
|
|
1629
1630
|
},
|
|
1630
1631
|
[`&${n}-mini:not(${n}-disabled) ${n}-item:not(${n}-item-active)`]: {
|
|
1631
1632
|
backgroundColor: "transparent",
|
|
@@ -1641,7 +1642,7 @@ const Ml = (e) => {
|
|
|
1641
1642
|
minWidth: e.itemSizeSM,
|
|
1642
1643
|
height: e.itemSizeSM,
|
|
1643
1644
|
margin: 0,
|
|
1644
|
-
lineHeight:
|
|
1645
|
+
lineHeight: H(e.itemSizeSM)
|
|
1645
1646
|
},
|
|
1646
1647
|
[`&${n}-mini:not(${n}-disabled)`]: {
|
|
1647
1648
|
[`${n}-prev, ${n}-next`]: {
|
|
@@ -1664,13 +1665,13 @@ const Ml = (e) => {
|
|
|
1664
1665
|
borderColor: "transparent",
|
|
1665
1666
|
"&::after": {
|
|
1666
1667
|
height: e.itemSizeSM,
|
|
1667
|
-
lineHeight:
|
|
1668
|
+
lineHeight: H(e.itemSizeSM)
|
|
1668
1669
|
}
|
|
1669
1670
|
},
|
|
1670
1671
|
[`&${n}-mini ${n}-jump-prev, &${n}-mini ${n}-jump-next`]: {
|
|
1671
1672
|
height: e.itemSizeSM,
|
|
1672
1673
|
marginInlineEnd: 0,
|
|
1673
|
-
lineHeight:
|
|
1674
|
+
lineHeight: H(e.itemSizeSM)
|
|
1674
1675
|
},
|
|
1675
1676
|
[`&${n}-mini ${n}-options`]: {
|
|
1676
1677
|
marginInlineStart: e.paginationMiniOptionsMarginInlineStart,
|
|
@@ -1679,15 +1680,15 @@ const Ml = (e) => {
|
|
|
1679
1680
|
},
|
|
1680
1681
|
"&-quick-jumper": {
|
|
1681
1682
|
height: e.itemSizeSM,
|
|
1682
|
-
lineHeight:
|
|
1683
|
-
input: Object.assign(Object.assign({},
|
|
1683
|
+
lineHeight: H(e.itemSizeSM),
|
|
1684
|
+
input: Object.assign(Object.assign({}, Fi(e)), {
|
|
1684
1685
|
width: e.paginationMiniQuickJumperInputWidth,
|
|
1685
1686
|
height: e.controlHeightSM
|
|
1686
1687
|
})
|
|
1687
1688
|
}
|
|
1688
1689
|
}
|
|
1689
1690
|
};
|
|
1690
|
-
},
|
|
1691
|
+
}, Bl = (e) => {
|
|
1691
1692
|
const {
|
|
1692
1693
|
componentCls: n
|
|
1693
1694
|
} = e;
|
|
@@ -1697,7 +1698,7 @@ const Ml = (e) => {
|
|
|
1697
1698
|
&${n}-simple ${n}-next
|
|
1698
1699
|
`]: {
|
|
1699
1700
|
height: e.itemSizeSM,
|
|
1700
|
-
lineHeight:
|
|
1701
|
+
lineHeight: H(e.itemSizeSM),
|
|
1701
1702
|
verticalAlign: "top",
|
|
1702
1703
|
[`${n}-item-link`]: {
|
|
1703
1704
|
height: e.itemSizeSM,
|
|
@@ -1711,7 +1712,7 @@ const Ml = (e) => {
|
|
|
1711
1712
|
},
|
|
1712
1713
|
"&::after": {
|
|
1713
1714
|
height: e.itemSizeSM,
|
|
1714
|
-
lineHeight:
|
|
1715
|
+
lineHeight: H(e.itemSizeSM)
|
|
1715
1716
|
}
|
|
1716
1717
|
}
|
|
1717
1718
|
},
|
|
@@ -1722,10 +1723,10 @@ const Ml = (e) => {
|
|
|
1722
1723
|
input: {
|
|
1723
1724
|
boxSizing: "border-box",
|
|
1724
1725
|
height: "100%",
|
|
1725
|
-
padding: `0 ${
|
|
1726
|
+
padding: `0 ${H(e.paginationItemPaddingInline)}`,
|
|
1726
1727
|
textAlign: "center",
|
|
1727
1728
|
backgroundColor: e.itemInputBg,
|
|
1728
|
-
border: `${
|
|
1729
|
+
border: `${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
1729
1730
|
borderRadius: e.borderRadius,
|
|
1730
1731
|
outline: "none",
|
|
1731
1732
|
transition: `border-color ${e.motionDurationMid}`,
|
|
@@ -1735,7 +1736,7 @@ const Ml = (e) => {
|
|
|
1735
1736
|
},
|
|
1736
1737
|
"&:focus": {
|
|
1737
1738
|
borderColor: e.colorPrimaryHover,
|
|
1738
|
-
boxShadow: `${
|
|
1739
|
+
boxShadow: `${H(e.inputOutlineOffset)} 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`
|
|
1739
1740
|
},
|
|
1740
1741
|
"&[disabled]": {
|
|
1741
1742
|
color: e.colorTextDisabled,
|
|
@@ -1811,7 +1812,7 @@ const Ml = (e) => {
|
|
|
1811
1812
|
height: e.itemSize,
|
|
1812
1813
|
color: e.colorText,
|
|
1813
1814
|
fontFamily: e.fontFamily,
|
|
1814
|
-
lineHeight:
|
|
1815
|
+
lineHeight: H(e.itemSize),
|
|
1815
1816
|
textAlign: "center",
|
|
1816
1817
|
verticalAlign: "middle",
|
|
1817
1818
|
listStyle: "none",
|
|
@@ -1834,7 +1835,7 @@ const Ml = (e) => {
|
|
|
1834
1835
|
fontSize: e.fontSizeSM,
|
|
1835
1836
|
textAlign: "center",
|
|
1836
1837
|
backgroundColor: "transparent",
|
|
1837
|
-
border: `${
|
|
1838
|
+
border: `${H(e.lineWidth)} ${e.lineType} transparent`,
|
|
1838
1839
|
borderRadius: e.borderRadius,
|
|
1839
1840
|
outline: "none",
|
|
1840
1841
|
transition: `all ${e.motionDurationMid}`
|
|
@@ -1867,15 +1868,15 @@ const Ml = (e) => {
|
|
|
1867
1868
|
display: "inline-block",
|
|
1868
1869
|
height: e.controlHeight,
|
|
1869
1870
|
marginInlineStart: e.marginXS,
|
|
1870
|
-
lineHeight:
|
|
1871
|
+
lineHeight: H(e.controlHeight),
|
|
1871
1872
|
verticalAlign: "top",
|
|
1872
|
-
input: Object.assign(Object.assign(Object.assign({},
|
|
1873
|
+
input: Object.assign(Object.assign(Object.assign({}, Vi(e)), Wi(e, {
|
|
1873
1874
|
borderColor: e.colorBorder,
|
|
1874
1875
|
hoverBorderColor: e.colorPrimaryHover,
|
|
1875
1876
|
activeBorderColor: e.colorPrimary,
|
|
1876
1877
|
activeShadow: e.activeShadow
|
|
1877
1878
|
})), {
|
|
1878
|
-
"&[disabled]": Object.assign({},
|
|
1879
|
+
"&[disabled]": Object.assign({}, qi(e)),
|
|
1879
1880
|
width: e.calc(e.controlHeightLG).mul(1.25).equal(),
|
|
1880
1881
|
height: e.controlHeight,
|
|
1881
1882
|
boxSizing: "border-box",
|
|
@@ -1886,7 +1887,7 @@ const Ml = (e) => {
|
|
|
1886
1887
|
}
|
|
1887
1888
|
}
|
|
1888
1889
|
};
|
|
1889
|
-
},
|
|
1890
|
+
}, jl = (e) => {
|
|
1890
1891
|
const {
|
|
1891
1892
|
componentCls: n
|
|
1892
1893
|
} = e;
|
|
@@ -1897,19 +1898,19 @@ const Ml = (e) => {
|
|
|
1897
1898
|
height: e.itemSize,
|
|
1898
1899
|
marginInlineEnd: e.marginXS,
|
|
1899
1900
|
fontFamily: e.fontFamily,
|
|
1900
|
-
lineHeight:
|
|
1901
|
+
lineHeight: H(e.calc(e.itemSize).sub(2).equal()),
|
|
1901
1902
|
textAlign: "center",
|
|
1902
1903
|
verticalAlign: "middle",
|
|
1903
1904
|
listStyle: "none",
|
|
1904
1905
|
backgroundColor: e.itemBg,
|
|
1905
|
-
border: `${
|
|
1906
|
+
border: `${H(e.lineWidth)} ${e.lineType} transparent`,
|
|
1906
1907
|
borderRadius: e.borderRadius,
|
|
1907
1908
|
outline: 0,
|
|
1908
1909
|
cursor: "pointer",
|
|
1909
1910
|
userSelect: "none",
|
|
1910
1911
|
a: {
|
|
1911
1912
|
display: "block",
|
|
1912
|
-
padding: `0 ${
|
|
1913
|
+
padding: `0 ${H(e.paginationItemPaddingInline)}`,
|
|
1913
1914
|
color: e.colorText,
|
|
1914
1915
|
"&:hover": {
|
|
1915
1916
|
textDecoration: "none"
|
|
@@ -1940,7 +1941,7 @@ const Ml = (e) => {
|
|
|
1940
1941
|
}
|
|
1941
1942
|
}
|
|
1942
1943
|
};
|
|
1943
|
-
},
|
|
1944
|
+
}, Hl = (e) => {
|
|
1944
1945
|
const {
|
|
1945
1946
|
componentCls: n
|
|
1946
1947
|
} = e;
|
|
@@ -1973,10 +1974,10 @@ const Ml = (e) => {
|
|
|
1973
1974
|
display: "inline-block",
|
|
1974
1975
|
height: e.itemSize,
|
|
1975
1976
|
marginInlineEnd: e.marginXS,
|
|
1976
|
-
lineHeight:
|
|
1977
|
+
lineHeight: H(e.calc(e.itemSize).sub(2).equal()),
|
|
1977
1978
|
verticalAlign: "middle"
|
|
1978
1979
|
}
|
|
1979
|
-
}),
|
|
1980
|
+
}), jl(e)), Ll(e)), Bl(e)), zl(e)), Ml(e)), {
|
|
1980
1981
|
// media query style
|
|
1981
1982
|
[`@media only screen and (max-width: ${e.screenLG}px)`]: {
|
|
1982
1983
|
[`${n}-item`]: {
|
|
@@ -2028,7 +2029,7 @@ const Ml = (e) => {
|
|
|
2028
2029
|
itemActiveBgDisabled: e.controlItemBgActiveDisabled,
|
|
2029
2030
|
itemInputBg: e.colorBgContainer,
|
|
2030
2031
|
miniOptionsSizeChangerTop: 0
|
|
2031
|
-
},
|
|
2032
|
+
}, Hi(e)), na = (e) => bt(e, {
|
|
2032
2033
|
inputOutlineOffset: 0,
|
|
2033
2034
|
paginationMiniOptionsMarginInlineStart: e.calc(e.marginXXS).div(2).equal(),
|
|
2034
2035
|
paginationMiniQuickJumperInputWidth: e.calc(e.controlHeightLG).mul(1.1).equal(),
|
|
@@ -2038,9 +2039,9 @@ const Ml = (e) => {
|
|
|
2038
2039
|
paginationSlashMarginInlineEnd: e.marginSM,
|
|
2039
2040
|
paginationEllipsisTextIndent: "0.13em"
|
|
2040
2041
|
// magic for ui experience
|
|
2041
|
-
},
|
|
2042
|
+
}, Ai(e)), Fl = yt("Pagination", (e) => {
|
|
2042
2043
|
const n = na(e);
|
|
2043
|
-
return [
|
|
2044
|
+
return [Hl(n), Al(n)];
|
|
2044
2045
|
}, ea), Vl = (e) => {
|
|
2045
2046
|
const {
|
|
2046
2047
|
componentCls: n
|
|
@@ -2107,7 +2108,7 @@ const Ml = (e) => {
|
|
|
2107
2108
|
},
|
|
2108
2109
|
[`${n}-item`]: {
|
|
2109
2110
|
backgroundColor: e.itemBg,
|
|
2110
|
-
border: `${
|
|
2111
|
+
border: `${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,
|
|
2111
2112
|
[`&:hover:not(${n}-item-active)`]: {
|
|
2112
2113
|
borderColor: e.colorPrimary,
|
|
2113
2114
|
backgroundColor: e.itemBg,
|
|
@@ -2155,7 +2156,7 @@ const ta = (e) => {
|
|
|
2155
2156
|
getPrefixCls: g,
|
|
2156
2157
|
direction: y,
|
|
2157
2158
|
pagination: x = {}
|
|
2158
|
-
} = l.useContext(Cn), v = g("pagination", r), [S, E, w] = Fl(v), O = Cr(a), b = O === "small" || !!(h && !O && s), [I] =
|
|
2159
|
+
} = l.useContext(Cn), v = g("pagination", r), [S, E, w] = Fl(v), O = Cr(a), b = O === "small" || !!(h && !O && s), [I] = Xi("Pagination", ui), D = Object.assign(Object.assign({}, I), d), [P, k] = oo(p), [N, R] = oo(x.showSizeChanger), $ = P ?? N, T = k ?? R, K = f || wi, z = l.useMemo(() => u ? u.map((te) => Number(te)) : void 0, [u]), M = (te) => {
|
|
2159
2160
|
var re;
|
|
2160
2161
|
const {
|
|
2161
2162
|
disabled: ve,
|
|
@@ -2242,7 +2243,7 @@ const ta = (e) => {
|
|
|
2242
2243
|
selectPrefixCls: Z,
|
|
2243
2244
|
className: Q,
|
|
2244
2245
|
locale: D,
|
|
2245
|
-
pageSizeOptions:
|
|
2246
|
+
pageSizeOptions: z,
|
|
2246
2247
|
showSizeChanger: $,
|
|
2247
2248
|
sizeChangerRender: M
|
|
2248
2249
|
}))));
|
|
@@ -2270,7 +2271,7 @@ const Tt = 100, ra = Tt / 5, oa = Tt / 2 - ra / 2, Wt = oa * 2 * Math.PI, ao = 5
|
|
|
2270
2271
|
prefixCls: r
|
|
2271
2272
|
} = e;
|
|
2272
2273
|
const t = `${r}-dot`, o = `${t}-holder`, i = `${o}-hidden`, [c, a] = l.useState(!1);
|
|
2273
|
-
|
|
2274
|
+
Hn(() => {
|
|
2274
2275
|
n !== 0 && a(!0);
|
|
2275
2276
|
}, [n !== 0]);
|
|
2276
2277
|
const d = Math.max(Math.min(n, 100), 0);
|
|
@@ -2786,7 +2787,7 @@ function Or(e) {
|
|
|
2786
2787
|
listeners: /* @__PURE__ */ new Set()
|
|
2787
2788
|
};
|
|
2788
2789
|
}), s = Ee(d, 1), p = s[0];
|
|
2789
|
-
return
|
|
2790
|
+
return Hn(function() {
|
|
2790
2791
|
fi.unstable_batchedUpdates(function() {
|
|
2791
2792
|
p.listeners.forEach(function(f) {
|
|
2792
2793
|
f(i);
|
|
@@ -2815,7 +2816,7 @@ function tn(e, n) {
|
|
|
2815
2816
|
}), t = l.useContext(e == null ? void 0 : e.Context), o = t || {}, i = o.listeners, c = o.getValue, a = l.useRef();
|
|
2816
2817
|
a.current = r(t ? c() : e == null ? void 0 : e.defaultValue);
|
|
2817
2818
|
var d = l.useState({}), s = Ee(d, 2), p = s[1];
|
|
2818
|
-
return
|
|
2819
|
+
return Hn(function() {
|
|
2819
2820
|
if (!t)
|
|
2820
2821
|
return;
|
|
2821
2822
|
function f(u) {
|
|
@@ -2904,7 +2905,7 @@ function Ps(e) {
|
|
|
2904
2905
|
return e && bn(e) === "object" && !Array.isArray(e) && !/* @__PURE__ */ l.isValidElement(e);
|
|
2905
2906
|
}
|
|
2906
2907
|
function Ds(e, n, r, t, o, i) {
|
|
2907
|
-
var c = l.useContext(va), a = Ns(), d =
|
|
2908
|
+
var c = l.useContext(va), a = Ns(), d = zo(function() {
|
|
2908
2909
|
if (nr(t))
|
|
2909
2910
|
return [t];
|
|
2910
2911
|
var s = n == null || n === "" ? [] : Array.isArray(n) ? n : [n], p = hr(e, s), f = p, u = void 0;
|
|
@@ -2950,7 +2951,7 @@ var _s = function(n) {
|
|
|
2950
2951
|
function Ms(e) {
|
|
2951
2952
|
var n, r, t, o, i, c, a, d;
|
|
2952
2953
|
process.env.NODE_ENV !== "production" && Kn(e);
|
|
2953
|
-
var s = e.component, p = e.children, f = e.ellipsis, u = e.scope, m = e.prefixCls, h = e.className, C = e.align, g = e.record, y = e.render, x = e.dataIndex, v = e.renderIndex, S = e.shouldCellUpdate, E = e.index, w = e.rowType, O = e.colSpan, b = e.rowSpan, I = e.fixLeft, D = e.fixRight, P = e.firstFixLeft, k = e.lastFixLeft, N = e.firstFixRight, R = e.lastFixRight, $ = e.appendNode, T = e.additionalProps, K = T === void 0 ? {} : T,
|
|
2954
|
+
var s = e.component, p = e.children, f = e.ellipsis, u = e.scope, m = e.prefixCls, h = e.className, C = e.align, g = e.record, y = e.render, x = e.dataIndex, v = e.renderIndex, S = e.shouldCellUpdate, E = e.index, w = e.rowType, O = e.colSpan, b = e.rowSpan, I = e.fixLeft, D = e.fixRight, P = e.firstFixLeft, k = e.lastFixLeft, N = e.firstFixRight, R = e.lastFixRight, $ = e.appendNode, T = e.additionalProps, K = T === void 0 ? {} : T, z = e.isSticky, M = "".concat(m, "-cell"), F = tn(an, ["supportSticky", "allColumnsFixedLeft", "rowHoverable"]), Z = F.supportSticky, Q = F.allColumnsFixedLeft, ae = F.rowHoverable, te = Ds(g, x, v, p, y, S), re = Ee(te, 2), ve = re[0], ee = re[1], ne = {}, Ne = typeof I == "number" && Z, Re = typeof D == "number" && Z;
|
|
2954
2955
|
Ne && (ne.position = "sticky", ne.left = I), Re && (ne.position = "sticky", ne.right = D);
|
|
2955
2956
|
var A = (n = (r = (t = ee == null ? void 0 : ee.colSpan) !== null && t !== void 0 ? t : K.colSpan) !== null && r !== void 0 ? r : O) !== null && n !== void 0 ? n : 1, Y = (o = (i = (c = ee == null ? void 0 : ee.rowSpan) !== null && c !== void 0 ? c : K.rowSpan) !== null && i !== void 0 ? i : b) !== null && o !== void 0 ? o : 1, L = Ks(E, Y), V = Ee(L, 2), ie = V[0], ce = V[1], J = Tn(function(ge) {
|
|
2956
2957
|
var ue;
|
|
@@ -2965,9 +2966,9 @@ function Ms(e) {
|
|
|
2965
2966
|
rowType: w,
|
|
2966
2967
|
ellipsis: f,
|
|
2967
2968
|
children: ve
|
|
2968
|
-
}), ke = U(M, h, (d = {}, _(_(_(_(_(_(_(_(_(_(d, "".concat(M, "-fix-left"), Ne && Z), "".concat(M, "-fix-left-first"), P && Z), "".concat(M, "-fix-left-last"), k && Z), "".concat(M, "-fix-left-all"), k && Q && Z), "".concat(M, "-fix-right"), Re && Z), "".concat(M, "-fix-right-first"), N && Z), "".concat(M, "-fix-right-last"), R && Z), "".concat(M, "-ellipsis"), f), "".concat(M, "-with-append"), $), "".concat(M, "-fix-sticky"), (Ne || Re) &&
|
|
2969
|
-
C && (
|
|
2970
|
-
var W = q(q(q(q({}, ee == null ? void 0 : ee.style), ne),
|
|
2969
|
+
}), ke = U(M, h, (d = {}, _(_(_(_(_(_(_(_(_(_(d, "".concat(M, "-fix-left"), Ne && Z), "".concat(M, "-fix-left-first"), P && Z), "".concat(M, "-fix-left-last"), k && Z), "".concat(M, "-fix-left-all"), k && Q && Z), "".concat(M, "-fix-right"), Re && Z), "".concat(M, "-fix-right-first"), N && Z), "".concat(M, "-fix-right-last"), R && Z), "".concat(M, "-ellipsis"), f), "".concat(M, "-with-append"), $), "".concat(M, "-fix-sticky"), (Ne || Re) && z && Z), _(d, "".concat(M, "-row-hover"), !ee && ie)), K.className, ee == null ? void 0 : ee.className), B = {};
|
|
2970
|
+
C && (B.textAlign = C);
|
|
2971
|
+
var W = q(q(q(q({}, ee == null ? void 0 : ee.style), ne), B), K.style), se = ve;
|
|
2971
2972
|
return bn(se) === "object" && !Array.isArray(se) && !/* @__PURE__ */ l.isValidElement(se) && (se = null), f && (k || N) && (se = /* @__PURE__ */ l.createElement("span", {
|
|
2972
2973
|
className: "".concat(M, "-content")
|
|
2973
2974
|
}, se)), /* @__PURE__ */ l.createElement(s, fe({}, ee, K, {
|
|
@@ -3014,7 +3015,7 @@ function kr(e, n, r, t, o) {
|
|
|
3014
3015
|
};
|
|
3015
3016
|
}
|
|
3016
3017
|
var ya = /* @__PURE__ */ l.createContext({});
|
|
3017
|
-
function
|
|
3018
|
+
function zs(e) {
|
|
3018
3019
|
var n = e.className, r = e.index, t = e.children, o = e.colSpan, i = o === void 0 ? 1 : o, c = e.rowSpan, a = e.align, d = tn(an, ["prefixCls", "direction"]), s = d.prefixCls, p = d.direction, f = l.useContext(ya), u = f.scrollColumnIndex, m = f.stickyOffsets, h = f.flattenColumns, C = r + i - 1, g = C + 1 === u ? i + 1 : i, y = kr(r, r + g - 1, h, m, p);
|
|
3019
3020
|
return /* @__PURE__ */ l.createElement(ot, fe({
|
|
3020
3021
|
className: n,
|
|
@@ -3031,9 +3032,9 @@ function Bs(e) {
|
|
|
3031
3032
|
}
|
|
3032
3033
|
}, y));
|
|
3033
3034
|
}
|
|
3034
|
-
var
|
|
3035
|
+
var Bs = ["children"];
|
|
3035
3036
|
function Ls(e) {
|
|
3036
|
-
var n = e.children, r = yn(e,
|
|
3037
|
+
var n = e.children, r = yn(e, Bs);
|
|
3037
3038
|
return /* @__PURE__ */ l.createElement("tr", r, n);
|
|
3038
3039
|
}
|
|
3039
3040
|
function Mt(e) {
|
|
@@ -3041,8 +3042,8 @@ function Mt(e) {
|
|
|
3041
3042
|
return n;
|
|
3042
3043
|
}
|
|
3043
3044
|
Mt.Row = Ls;
|
|
3044
|
-
Mt.Cell =
|
|
3045
|
-
function
|
|
3045
|
+
Mt.Cell = zs;
|
|
3046
|
+
function js(e) {
|
|
3046
3047
|
process.env.NODE_ENV !== "production" && Kn(e);
|
|
3047
3048
|
var n = e.children, r = e.stickyOffsets, t = e.flattenColumns, o = tn(an, "prefixCls"), i = t.length - 1, c = t[i], a = l.useMemo(function() {
|
|
3048
3049
|
return {
|
|
@@ -3057,9 +3058,9 @@ function Hs(e) {
|
|
|
3057
3058
|
className: "".concat(o, "-summary")
|
|
3058
3059
|
}, n));
|
|
3059
3060
|
}
|
|
3060
|
-
const Ot = rt(
|
|
3061
|
+
const Ot = rt(js);
|
|
3061
3062
|
var ba = Mt;
|
|
3062
|
-
function
|
|
3063
|
+
function Hs(e) {
|
|
3063
3064
|
return null;
|
|
3064
3065
|
}
|
|
3065
3066
|
function As(e) {
|
|
@@ -3198,7 +3199,7 @@ function Na(e) {
|
|
|
3198
3199
|
className: U(n, "".concat(m, "-row"), "".concat(m, "-row-level-").concat(d), y == null ? void 0 : y.className, _({}, E, d >= 1)),
|
|
3199
3200
|
style: q(q({}, r), y == null ? void 0 : y.style)
|
|
3200
3201
|
}), h.map(function(I, D) {
|
|
3201
|
-
var P = I.render, k = I.dataIndex, N = I.className, R = $a(u, I, D, d, o), $ = R.key, T = R.fixedInfo, K = R.appendCellNode,
|
|
3202
|
+
var P = I.render, k = I.dataIndex, N = I.className, R = $a(u, I, D, d, o), $ = R.key, T = R.fixedInfo, K = R.appendCellNode, z = R.additionalCellProps;
|
|
3202
3203
|
return /* @__PURE__ */ l.createElement(ot, fe({
|
|
3203
3204
|
className: N,
|
|
3204
3205
|
ellipsis: I.ellipsis,
|
|
@@ -3215,7 +3216,7 @@ function Na(e) {
|
|
|
3215
3216
|
shouldCellUpdate: I.shouldCellUpdate
|
|
3216
3217
|
}, T, {
|
|
3217
3218
|
appendNode: K,
|
|
3218
|
-
additionalProps:
|
|
3219
|
+
additionalProps: z
|
|
3219
3220
|
}));
|
|
3220
3221
|
})), O;
|
|
3221
3222
|
if (v && (S.current || x)) {
|
|
@@ -3359,11 +3360,11 @@ function Zs(e, n) {
|
|
|
3359
3360
|
}
|
|
3360
3361
|
var ka = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
3361
3362
|
process.env.NODE_ENV !== "production" && Kn(e);
|
|
3362
|
-
var r = e.className, t = e.noData, o = e.columns, i = e.flattenColumns, c = e.colWidths, a = e.columCount, d = e.stickyOffsets, s = e.direction, p = e.fixHeader, f = e.stickyTopOffset, u = e.stickyBottomOffset, m = e.stickyClassName, h = e.onScroll, C = e.maxContentScroll, g = e.children, y = yn(e, Qs), x = tn(an, ["prefixCls", "scrollbarSize", "isSticky", "getComponent"]), v = x.prefixCls, S = x.scrollbarSize, E = x.isSticky, w = x.getComponent, O = w(["header", "table"], "table"), b = E && !p ? 0 : S, I = l.useRef(null), D = l.useCallback(function(
|
|
3363
|
-
Gr(n,
|
|
3363
|
+
var r = e.className, t = e.noData, o = e.columns, i = e.flattenColumns, c = e.colWidths, a = e.columCount, d = e.stickyOffsets, s = e.direction, p = e.fixHeader, f = e.stickyTopOffset, u = e.stickyBottomOffset, m = e.stickyClassName, h = e.onScroll, C = e.maxContentScroll, g = e.children, y = yn(e, Qs), x = tn(an, ["prefixCls", "scrollbarSize", "isSticky", "getComponent"]), v = x.prefixCls, S = x.scrollbarSize, E = x.isSticky, w = x.getComponent, O = w(["header", "table"], "table"), b = E && !p ? 0 : S, I = l.useRef(null), D = l.useCallback(function(z) {
|
|
3364
|
+
Gr(n, z), Gr(I, z);
|
|
3364
3365
|
}, []);
|
|
3365
3366
|
l.useEffect(function() {
|
|
3366
|
-
var
|
|
3367
|
+
var z;
|
|
3367
3368
|
function M(F) {
|
|
3368
3369
|
var Z = F, Q = Z.currentTarget, ae = Z.deltaX;
|
|
3369
3370
|
ae && (h({
|
|
@@ -3371,7 +3372,7 @@ var ka = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
3371
3372
|
scrollLeft: Q.scrollLeft + ae
|
|
3372
3373
|
}), F.preventDefault());
|
|
3373
3374
|
}
|
|
3374
|
-
return (
|
|
3375
|
+
return (z = I.current) === null || z === void 0 || z.addEventListener("wheel", M, {
|
|
3375
3376
|
passive: !1
|
|
3376
3377
|
}), function() {
|
|
3377
3378
|
var F;
|
|
@@ -3379,8 +3380,8 @@ var ka = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
3379
3380
|
};
|
|
3380
3381
|
}, []);
|
|
3381
3382
|
var P = l.useMemo(function() {
|
|
3382
|
-
return i.every(function(
|
|
3383
|
-
return
|
|
3383
|
+
return i.every(function(z) {
|
|
3384
|
+
return z.width;
|
|
3384
3385
|
});
|
|
3385
3386
|
}, [i]), k = i[i.length - 1], N = {
|
|
3386
3387
|
fixed: k ? k.fixed : null,
|
|
@@ -3395,12 +3396,12 @@ var ka = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
3395
3396
|
}, [b, o]), $ = un(function() {
|
|
3396
3397
|
return b ? [].concat(xe(i), [N]) : i;
|
|
3397
3398
|
}, [b, i]), T = un(function() {
|
|
3398
|
-
var
|
|
3399
|
+
var z = d.right, M = d.left;
|
|
3399
3400
|
return q(q({}, d), {}, {
|
|
3400
3401
|
left: s === "rtl" ? [].concat(xe(M.map(function(F) {
|
|
3401
3402
|
return F + b;
|
|
3402
3403
|
})), [0]) : M,
|
|
3403
|
-
right: s === "rtl" ?
|
|
3404
|
+
right: s === "rtl" ? z : [].concat(xe(z.map(function(F) {
|
|
3404
3405
|
return F + b;
|
|
3405
3406
|
})), [0]),
|
|
3406
3407
|
isSticky: E
|
|
@@ -3597,12 +3598,12 @@ function id(e, n) {
|
|
|
3597
3598
|
var N = u || 0;
|
|
3598
3599
|
N >= 0 && (N || g === "left" || !g) && k.splice(N, 0, vn), g === "right" && k.splice(v.length, 0, vn);
|
|
3599
3600
|
}
|
|
3600
|
-
process.env.NODE_ENV !== "production" && k.filter(function(
|
|
3601
|
-
return
|
|
3601
|
+
process.env.NODE_ENV !== "production" && k.filter(function(z) {
|
|
3602
|
+
return z === vn;
|
|
3602
3603
|
}).length > 1 && Ae(!1, "There exist more than one `EXPAND_COLUMN` in `columns`.");
|
|
3603
3604
|
var R = k.indexOf(vn);
|
|
3604
|
-
k = k.filter(function(
|
|
3605
|
-
return
|
|
3605
|
+
k = k.filter(function(z, M) {
|
|
3606
|
+
return z !== vn || M === R;
|
|
3606
3607
|
});
|
|
3607
3608
|
var $ = v[R], T;
|
|
3608
3609
|
g ? T = g : T = $ ? $.fixed : null;
|
|
@@ -3623,12 +3624,12 @@ function id(e, n) {
|
|
|
3623
3624
|
}
|
|
3624
3625
|
}, re) : re;
|
|
3625
3626
|
});
|
|
3626
|
-
return k.map(function(
|
|
3627
|
-
return
|
|
3627
|
+
return k.map(function(z) {
|
|
3628
|
+
return z === vn ? K : z;
|
|
3628
3629
|
});
|
|
3629
3630
|
}
|
|
3630
|
-
return process.env.NODE_ENV !== "production" && v.includes(vn) && Ae(!1, "`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."), v.filter(function(
|
|
3631
|
-
return
|
|
3631
|
+
return process.env.NODE_ENV !== "production" && v.includes(vn) && Ae(!1, "`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."), v.filter(function(z) {
|
|
3632
|
+
return z !== vn;
|
|
3632
3633
|
});
|
|
3633
3634
|
}, [i, v, d, c, p, m]), E = l.useMemo(function() {
|
|
3634
3635
|
var k = S;
|
|
@@ -3658,8 +3659,8 @@ function id(e, n) {
|
|
|
3658
3659
|
return Z === "right";
|
|
3659
3660
|
});
|
|
3660
3661
|
if (K >= 0)
|
|
3661
|
-
for (var
|
|
3662
|
-
var M = w[
|
|
3662
|
+
for (var z = K; z < w.length; z += 1) {
|
|
3663
|
+
var M = w[z].fixed;
|
|
3663
3664
|
if (M !== "right")
|
|
3664
3665
|
return !0;
|
|
3665
3666
|
}
|
|
@@ -3688,7 +3689,7 @@ function sd(e, n, r) {
|
|
|
3688
3689
|
var t = e.map(function(o, i) {
|
|
3689
3690
|
return kr(i, i, e, n, r);
|
|
3690
3691
|
});
|
|
3691
|
-
return
|
|
3692
|
+
return zo(function() {
|
|
3692
3693
|
return t;
|
|
3693
3694
|
}, [t], function(o, i) {
|
|
3694
3695
|
return !ht(o, i);
|
|
@@ -3777,7 +3778,7 @@ function po(e) {
|
|
|
3777
3778
|
}, r);
|
|
3778
3779
|
}
|
|
3779
3780
|
function mo(e) {
|
|
3780
|
-
var n =
|
|
3781
|
+
var n = Bo(e), r = n.getBoundingClientRect(), t = document.documentElement;
|
|
3781
3782
|
return {
|
|
3782
3783
|
left: r.left + (window.pageXOffset || t.scrollLeft) - (t.clientLeft || document.body.clientLeft || 0),
|
|
3783
3784
|
top: r.top + (window.pageYOffset || t.scrollTop) - (t.clientTop || document.body.clientTop || 0)
|
|
@@ -3801,8 +3802,8 @@ var pd = function(n, r) {
|
|
|
3801
3802
|
}, D = function($) {
|
|
3802
3803
|
$.persist(), v.current.delta = $.pageX - y.scrollLeft, v.current.x = 0, O(!0), $.preventDefault();
|
|
3803
3804
|
}, P = function($) {
|
|
3804
|
-
var T, K = $ || ((T = window) === null || T === void 0 ? void 0 : T.event),
|
|
3805
|
-
if (!w ||
|
|
3805
|
+
var T, K = $ || ((T = window) === null || T === void 0 ? void 0 : T.event), z = K.buttons;
|
|
3806
|
+
if (!w || z === 0) {
|
|
3806
3807
|
w && O(!1);
|
|
3807
3808
|
return;
|
|
3808
3809
|
}
|
|
@@ -3816,12 +3817,12 @@ var pd = function(n, r) {
|
|
|
3816
3817
|
b.current = kt(function() {
|
|
3817
3818
|
if (i.current) {
|
|
3818
3819
|
var $ = mo(i.current).top, T = $ + i.current.offsetHeight, K = d === window ? document.documentElement.scrollTop + window.innerHeight : mo(d).top + d.clientHeight;
|
|
3819
|
-
T - Ur() <= K || $ >= K - a ? x(function(
|
|
3820
|
-
return q(q({},
|
|
3820
|
+
T - Ur() <= K || $ >= K - a ? x(function(z) {
|
|
3821
|
+
return q(q({}, z), {}, {
|
|
3821
3822
|
isHiddenScrollBar: !0
|
|
3822
3823
|
});
|
|
3823
|
-
}) : x(function(
|
|
3824
|
-
return q(q({},
|
|
3824
|
+
}) : x(function(z) {
|
|
3825
|
+
return q(q({}, z), {}, {
|
|
3825
3826
|
isHiddenScrollBar: !1
|
|
3826
3827
|
});
|
|
3827
3828
|
});
|
|
@@ -3887,14 +3888,14 @@ function yd(e, n) {
|
|
|
3887
3888
|
process.env.NODE_ENV !== "production" && (["onRowClick", "onRowDoubleClick", "onRowContextMenu", "onRowMouseEnter", "onRowMouseLeave"].forEach(function(me) {
|
|
3888
3889
|
Ae(r[me] === void 0, "`".concat(me, "` is removed, please use `onRow` instead."));
|
|
3889
3890
|
}), Ae(!("getBodyWrapper" in r), "`getBodyWrapper` is deprecated, please use custom `components` instead."));
|
|
3890
|
-
var
|
|
3891
|
+
var z = l.useCallback(function(me, be) {
|
|
3891
3892
|
return hr(x, me) || be;
|
|
3892
3893
|
}, [x]), M = l.useMemo(function() {
|
|
3893
3894
|
return typeof d == "function" ? d : function(me) {
|
|
3894
3895
|
var be = me && me[d];
|
|
3895
3896
|
return process.env.NODE_ENV !== "production" && Ae(be !== void 0, "Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."), be;
|
|
3896
3897
|
};
|
|
3897
|
-
}, [d]), F =
|
|
3898
|
+
}, [d]), F = z(["body"]), Z = cd(), Q = Ee(Z, 3), ae = Q[0], te = Q[1], re = Q[2], ve = ld(r, $, M), ee = Ee(ve, 6), ne = ee[0], Ne = ee[1], Re = ee[2], A = ee[3], Y = ee[4], L = ee[5], V = s == null ? void 0 : s.x, ie = l.useState(0), ce = Ee(ie, 2), J = ce[0], ye = ce[1], Ke = id(q(q(q({}, r), ne), {}, {
|
|
3898
3899
|
expandable: !!ne.expandedRowRender,
|
|
3899
3900
|
columnTitle: ne.columnTitle,
|
|
3900
3901
|
expandedKeys: Re,
|
|
@@ -3906,12 +3907,12 @@ function yd(e, n) {
|
|
|
3906
3907
|
direction: f,
|
|
3907
3908
|
scrollWidth: K && D && typeof V == "number" ? V : null,
|
|
3908
3909
|
clientWidth: J
|
|
3909
|
-
}), K ? b : null), ke = Ee(Ke, 4),
|
|
3910
|
+
}), K ? b : null), ke = Ee(Ke, 4), B = ke[0], W = ke[1], se = ke[2], ge = ke[3], ue = se ?? V, _e = l.useMemo(function() {
|
|
3910
3911
|
return {
|
|
3911
|
-
columns:
|
|
3912
|
+
columns: B,
|
|
3912
3913
|
flattenColumns: W
|
|
3913
3914
|
};
|
|
3914
|
-
}, [
|
|
3915
|
+
}, [B, W]), we = l.useRef(), ze = l.useRef(), Oe = l.useRef(), G = l.useRef();
|
|
3915
3916
|
l.useImperativeHandle(n, function() {
|
|
3916
3917
|
return {
|
|
3917
3918
|
nativeElement: we.current,
|
|
@@ -3920,8 +3921,8 @@ function yd(e, n) {
|
|
|
3920
3921
|
if (Oe.current instanceof HTMLElement) {
|
|
3921
3922
|
var pn = be.index, en = be.top, Un = be.key;
|
|
3922
3923
|
if (Is(en)) {
|
|
3923
|
-
var
|
|
3924
|
-
(
|
|
3924
|
+
var Bn;
|
|
3925
|
+
(Bn = Oe.current) === null || Bn === void 0 || Bn.scrollTo({
|
|
3925
3926
|
top: en
|
|
3926
3927
|
});
|
|
3927
3928
|
} else {
|
|
@@ -3932,7 +3933,7 @@ function yd(e, n) {
|
|
|
3932
3933
|
}
|
|
3933
3934
|
};
|
|
3934
3935
|
});
|
|
3935
|
-
var
|
|
3936
|
+
var j = l.useRef(), pe = l.useState(!1), Me = Ee(pe, 2), Ie = Me[0], le = Me[1], Pe = l.useState(!1), he = Ee(Pe, 2), Ve = he[0], Be = he[1], Ue = Da(/* @__PURE__ */ new Map()), gn = Ee(Ue, 2), hn = gn[0], Te = gn[1], Mn = _t(W), Je = Mn.map(function(me) {
|
|
3936
3937
|
return hn.get(me);
|
|
3937
3938
|
}), ln = l.useMemo(function() {
|
|
3938
3939
|
return Je;
|
|
@@ -3941,13 +3942,13 @@ function yd(e, n) {
|
|
|
3941
3942
|
return be;
|
|
3942
3943
|
}), xn = l.useRef(), fn = ud(k, t), dn = fn.isSticky, Fe = fn.offsetHeader, Xe = fn.offsetSummary, On = fn.offsetScroll, Vn = fn.stickyClassName, lt = fn.container, oe = l.useMemo(function() {
|
|
3943
3944
|
return h == null ? void 0 : h($);
|
|
3944
|
-
}, [h, $]), Se = (Qe || dn) && /* @__PURE__ */ l.isValidElement(oe) && oe.type === Mt && oe.props.fixed, De,
|
|
3945
|
-
Qe && (
|
|
3945
|
+
}, [h, $]), Se = (Qe || dn) && /* @__PURE__ */ l.isValidElement(oe) && oe.type === Mt && oe.props.fixed, De, He, Le;
|
|
3946
|
+
Qe && (He = {
|
|
3946
3947
|
overflowY: T ? "scroll" : "auto",
|
|
3947
3948
|
maxHeight: s.y
|
|
3948
3949
|
}), We && (De = {
|
|
3949
3950
|
overflowX: "auto"
|
|
3950
|
-
}, Qe || (
|
|
3951
|
+
}, Qe || (He = {
|
|
3951
3952
|
overflowY: "hidden"
|
|
3952
3953
|
}), Le = {
|
|
3953
3954
|
width: ue === !0 ? "auto" : ue,
|
|
@@ -3970,32 +3971,32 @@ function yd(e, n) {
|
|
|
3970
3971
|
var Sn = Tn(function(me) {
|
|
3971
3972
|
var be = me.currentTarget, Ze = me.scrollLeft, pn = f === "rtl", en = typeof Ze == "number" ? Ze : be.scrollLeft, Un = be || hd;
|
|
3972
3973
|
if (!st() || st() === Un) {
|
|
3973
|
-
var
|
|
3974
|
-
Et(Un), kn(en,
|
|
3974
|
+
var Bn;
|
|
3975
|
+
Et(Un), kn(en, ze.current), kn(en, Oe.current), kn(en, j.current), kn(en, (Bn = xn.current) === null || Bn === void 0 ? void 0 : Bn.setScrollLeft);
|
|
3975
3976
|
}
|
|
3976
|
-
var Ln = be ||
|
|
3977
|
+
var Ln = be || ze.current;
|
|
3977
3978
|
if (Ln) {
|
|
3978
3979
|
var ct = (
|
|
3979
3980
|
// Should use mergedScrollX in virtual table(useInternalHooks && tailor === true)
|
|
3980
3981
|
K && D && typeof ue == "number" ? ue : Ln.scrollWidth
|
|
3981
3982
|
), At = Ln.clientWidth;
|
|
3982
3983
|
if (ct === At) {
|
|
3983
|
-
le(!1),
|
|
3984
|
+
le(!1), Be(!1);
|
|
3984
3985
|
return;
|
|
3985
3986
|
}
|
|
3986
|
-
pn ? (le(-en < ct - At),
|
|
3987
|
+
pn ? (le(-en < ct - At), Be(-en > 0)) : (le(en > 0), Be(en < ct - At));
|
|
3987
3988
|
}
|
|
3988
|
-
}),
|
|
3989
|
+
}), zn = Tn(function(me) {
|
|
3989
3990
|
Sn(me), w == null || w(me);
|
|
3990
3991
|
}), dt = function() {
|
|
3991
3992
|
if (We && Oe.current) {
|
|
3992
3993
|
var be;
|
|
3993
3994
|
Sn({
|
|
3994
|
-
currentTarget:
|
|
3995
|
+
currentTarget: Bo(Oe.current),
|
|
3995
3996
|
scrollLeft: (be = Oe.current) === null || be === void 0 ? void 0 : be.scrollLeft
|
|
3996
3997
|
});
|
|
3997
3998
|
} else
|
|
3998
|
-
le(!1),
|
|
3999
|
+
le(!1), Be(!1);
|
|
3999
4000
|
}, Wn = function(be) {
|
|
4000
4001
|
var Ze, pn = be.width;
|
|
4001
4002
|
(Ze = xn.current) === null || Ze === void 0 || Ze.checkScrollBarVisible();
|
|
@@ -4004,10 +4005,10 @@ function yd(e, n) {
|
|
|
4004
4005
|
}, qn = l.useRef(!1);
|
|
4005
4006
|
l.useEffect(function() {
|
|
4006
4007
|
qn.current && dt();
|
|
4007
|
-
}, [We, a,
|
|
4008
|
+
}, [We, a, B.length]), l.useEffect(function() {
|
|
4008
4009
|
qn.current = !0;
|
|
4009
4010
|
}, []);
|
|
4010
|
-
var Xn = l.useState(0), In = Ee(Xn, 2), Pn = In[0], wt = In[1], de = l.useState(!0), $e = Ee(de, 2),
|
|
4011
|
+
var Xn = l.useState(0), In = Ee(Xn, 2), Pn = In[0], wt = In[1], de = l.useState(!0), $e = Ee(de, 2), je = $e[0], En = $e[1];
|
|
4011
4012
|
l.useEffect(function() {
|
|
4012
4013
|
(!D || !K) && (Oe.current instanceof Element ? wt(Yr(Oe.current).width) : wt(Yr(G.current).width)), En(Ei("position", "sticky"));
|
|
4013
4014
|
}, []), l.useEffect(function() {
|
|
@@ -4017,12 +4018,12 @@ function yd(e, n) {
|
|
|
4017
4018
|
return /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(co, me), Se === "top" && /* @__PURE__ */ l.createElement(Ot, me, oe));
|
|
4018
4019
|
}, [Se, oe]), ni = l.useCallback(function(me) {
|
|
4019
4020
|
return /* @__PURE__ */ l.createElement(Ot, me, oe);
|
|
4020
|
-
}, [oe]),
|
|
4021
|
+
}, [oe]), Br = z(["table"], "table"), $t = l.useMemo(function() {
|
|
4021
4022
|
return p || (on ? ue === "max-content" ? "auto" : "fixed" : Qe || dn || W.some(function(me) {
|
|
4022
4023
|
var be = me.ellipsis;
|
|
4023
4024
|
return be;
|
|
4024
4025
|
}) ? "fixed" : "auto");
|
|
4025
|
-
}, [Qe, on, W, p, dn]),
|
|
4026
|
+
}, [Qe, on, W, p, dn]), Bt, Lt = {
|
|
4026
4027
|
colWidths: ln,
|
|
4027
4028
|
columCount: W.length,
|
|
4028
4029
|
stickyOffsets: rn,
|
|
@@ -4031,10 +4032,10 @@ function yd(e, n) {
|
|
|
4031
4032
|
scroll: s
|
|
4032
4033
|
}, Lr = l.useMemo(function() {
|
|
4033
4034
|
return T ? null : typeof v == "function" ? v() : v;
|
|
4034
|
-
}, [T, v]),
|
|
4035
|
+
}, [T, v]), jr = /* @__PURE__ */ l.createElement(Gs, {
|
|
4035
4036
|
data: $,
|
|
4036
4037
|
measureColumnWidth: Qe || We || dn
|
|
4037
|
-
}),
|
|
4038
|
+
}), Hr = /* @__PURE__ */ l.createElement(Ra, {
|
|
4038
4039
|
colWidths: W.map(function(me) {
|
|
4039
4040
|
var be = me.width;
|
|
4040
4041
|
return be;
|
|
@@ -4048,24 +4049,24 @@ function yd(e, n) {
|
|
|
4048
4049
|
aria: !0
|
|
4049
4050
|
});
|
|
4050
4051
|
if (Qe || dn) {
|
|
4051
|
-
var
|
|
4052
|
-
typeof F == "function" ? (
|
|
4052
|
+
var jt;
|
|
4053
|
+
typeof F == "function" ? (jt = F($, {
|
|
4053
4054
|
scrollbarSize: Pn,
|
|
4054
4055
|
ref: Oe,
|
|
4055
4056
|
onScroll: Sn
|
|
4056
4057
|
}), Lt.colWidths = W.map(function(me, be) {
|
|
4057
4058
|
var Ze = me.width, pn = be === W.length - 1 ? Ze - Pn : Ze;
|
|
4058
4059
|
return typeof pn == "number" && !Number.isNaN(pn) ? pn : (process.env.NODE_ENV !== "production" && Ae(r.columns.length === 0, "When use `components.body` with render props. Each column should have a fixed `width` value."), 0);
|
|
4059
|
-
})) :
|
|
4060
|
-
style: q(q({}, De),
|
|
4061
|
-
onScroll:
|
|
4060
|
+
})) : jt = /* @__PURE__ */ l.createElement("div", {
|
|
4061
|
+
style: q(q({}, De), He),
|
|
4062
|
+
onScroll: zn,
|
|
4062
4063
|
ref: Oe,
|
|
4063
4064
|
className: U("".concat(t, "-body"))
|
|
4064
|
-
}, /* @__PURE__ */ l.createElement(
|
|
4065
|
+
}, /* @__PURE__ */ l.createElement(Br, fe({
|
|
4065
4066
|
style: q(q({}, Le), {}, {
|
|
4066
4067
|
tableLayout: $t
|
|
4067
4068
|
})
|
|
4068
|
-
}, Fr), Ar,
|
|
4069
|
+
}, Fr), Ar, Hr, jr, !Se && oe && /* @__PURE__ */ l.createElement(Ot, {
|
|
4069
4070
|
stickyOffsets: rn,
|
|
4070
4071
|
flattenColumns: W
|
|
4071
4072
|
}, oe)));
|
|
@@ -4077,14 +4078,14 @@ function yd(e, n) {
|
|
|
4077
4078
|
stickyClassName: Vn,
|
|
4078
4079
|
onScroll: Sn
|
|
4079
4080
|
});
|
|
4080
|
-
|
|
4081
|
+
Bt = /* @__PURE__ */ l.createElement(l.Fragment, null, y !== !1 && /* @__PURE__ */ l.createElement(so, fe({}, Vr, {
|
|
4081
4082
|
stickyTopOffset: Fe,
|
|
4082
4083
|
className: "".concat(t, "-header"),
|
|
4083
|
-
ref:
|
|
4084
|
-
}), Gn),
|
|
4084
|
+
ref: ze
|
|
4085
|
+
}), Gn), jt, Se && Se !== "top" && /* @__PURE__ */ l.createElement(so, fe({}, Vr, {
|
|
4085
4086
|
stickyBottomOffset: Xe,
|
|
4086
4087
|
className: "".concat(t, "-summary"),
|
|
4087
|
-
ref:
|
|
4088
|
+
ref: j
|
|
4088
4089
|
}), ni), dn && Oe.current && Oe.current instanceof Element && /* @__PURE__ */ l.createElement(md, {
|
|
4089
4090
|
ref: xn,
|
|
4090
4091
|
offsetScroll: On,
|
|
@@ -4094,20 +4095,20 @@ function yd(e, n) {
|
|
|
4094
4095
|
direction: f
|
|
4095
4096
|
}));
|
|
4096
4097
|
} else
|
|
4097
|
-
|
|
4098
|
-
style: q(q({}, De),
|
|
4098
|
+
Bt = /* @__PURE__ */ l.createElement("div", {
|
|
4099
|
+
style: q(q({}, De), He),
|
|
4099
4100
|
className: U("".concat(t, "-content")),
|
|
4100
4101
|
onScroll: Sn,
|
|
4101
4102
|
ref: Oe
|
|
4102
|
-
}, /* @__PURE__ */ l.createElement(
|
|
4103
|
+
}, /* @__PURE__ */ l.createElement(Br, fe({
|
|
4103
4104
|
style: q(q({}, Le), {}, {
|
|
4104
4105
|
tableLayout: $t
|
|
4105
4106
|
})
|
|
4106
|
-
}, Fr), Ar,
|
|
4107
|
+
}, Fr), Ar, Hr, y !== !1 && /* @__PURE__ */ l.createElement(co, fe({}, Lt, _e)), jr, oe && /* @__PURE__ */ l.createElement(Ot, {
|
|
4107
4108
|
stickyOffsets: rn,
|
|
4108
4109
|
flattenColumns: W
|
|
4109
4110
|
}, oe)));
|
|
4110
|
-
var
|
|
4111
|
+
var Ht = /* @__PURE__ */ l.createElement("div", fe({
|
|
4111
4112
|
className: U(t, o, _(_(_(_(_(_(_(_(_(_({}, "".concat(t, "-rtl"), f === "rtl"), "".concat(t, "-ping-left"), Ie), "".concat(t, "-ping-right"), Ve), "".concat(t, "-layout-fixed"), p === "fixed"), "".concat(t, "-fixed-header"), Qe), "".concat(t, "-fixed-column"), on), "".concat(t, "-fixed-column-gapped"), on && ge), "".concat(t, "-scroll-horizontal"), We), "".concat(t, "-has-fix-left"), W[0] && W[0].fixed), "".concat(t, "-has-fix-right"), W[W.length - 1] && W[W.length - 1].fixed === "right")),
|
|
4112
4113
|
style: c,
|
|
4113
4114
|
id: g,
|
|
@@ -4117,24 +4118,24 @@ function yd(e, n) {
|
|
|
4117
4118
|
}, u($)), /* @__PURE__ */ l.createElement("div", {
|
|
4118
4119
|
ref: G,
|
|
4119
4120
|
className: "".concat(t, "-container")
|
|
4120
|
-
},
|
|
4121
|
+
}, Bt), m && /* @__PURE__ */ l.createElement(po, {
|
|
4121
4122
|
className: "".concat(t, "-footer")
|
|
4122
4123
|
}, m($)));
|
|
4123
|
-
We && (
|
|
4124
|
+
We && (Ht = /* @__PURE__ */ l.createElement(vr, {
|
|
4124
4125
|
onResize: Wn
|
|
4125
|
-
},
|
|
4126
|
+
}, Ht));
|
|
4126
4127
|
var Wr = sd(W, rn, f), ri = l.useMemo(function() {
|
|
4127
4128
|
return {
|
|
4128
4129
|
// Scroll
|
|
4129
4130
|
scrollX: ue,
|
|
4130
4131
|
// Table
|
|
4131
4132
|
prefixCls: t,
|
|
4132
|
-
getComponent:
|
|
4133
|
+
getComponent: z,
|
|
4133
4134
|
scrollbarSize: Pn,
|
|
4134
4135
|
direction: f,
|
|
4135
4136
|
fixedInfoList: Wr,
|
|
4136
4137
|
isSticky: dn,
|
|
4137
|
-
supportSticky:
|
|
4138
|
+
supportSticky: je,
|
|
4138
4139
|
componentWidth: J,
|
|
4139
4140
|
fixHeader: Qe,
|
|
4140
4141
|
fixColumn: on,
|
|
@@ -4155,7 +4156,7 @@ function yd(e, n) {
|
|
|
4155
4156
|
}),
|
|
4156
4157
|
emptyNode: Lr,
|
|
4157
4158
|
// Column
|
|
4158
|
-
columns:
|
|
4159
|
+
columns: B,
|
|
4159
4160
|
flattenColumns: W,
|
|
4160
4161
|
onColumnResize: Ye,
|
|
4161
4162
|
// Row
|
|
@@ -4174,12 +4175,12 @@ function yd(e, n) {
|
|
|
4174
4175
|
ue,
|
|
4175
4176
|
// Table
|
|
4176
4177
|
t,
|
|
4177
|
-
|
|
4178
|
+
z,
|
|
4178
4179
|
Pn,
|
|
4179
4180
|
f,
|
|
4180
4181
|
Wr,
|
|
4181
4182
|
dn,
|
|
4182
|
-
|
|
4183
|
+
je,
|
|
4183
4184
|
J,
|
|
4184
4185
|
Qe,
|
|
4185
4186
|
on,
|
|
@@ -4197,7 +4198,7 @@ function yd(e, n) {
|
|
|
4197
4198
|
ne.indentSize,
|
|
4198
4199
|
Lr,
|
|
4199
4200
|
// Column
|
|
4200
|
-
|
|
4201
|
+
B,
|
|
4201
4202
|
W,
|
|
4202
4203
|
Ye,
|
|
4203
4204
|
// Row
|
|
@@ -4213,7 +4214,7 @@ function yd(e, n) {
|
|
|
4213
4214
|
]);
|
|
4214
4215
|
return /* @__PURE__ */ l.createElement(an.Provider, {
|
|
4215
4216
|
value: ri
|
|
4216
|
-
},
|
|
4217
|
+
}, Ht);
|
|
4217
4218
|
}
|
|
4218
4219
|
var Ka = /* @__PURE__ */ l.forwardRef(yd);
|
|
4219
4220
|
process.env.NODE_ENV !== "production" && (Ka.displayName = "Table");
|
|
@@ -4223,7 +4224,7 @@ function _a(e) {
|
|
|
4223
4224
|
var at = _a();
|
|
4224
4225
|
at.EXPAND_COLUMN = vn;
|
|
4225
4226
|
at.INTERNAL_HOOKS = St;
|
|
4226
|
-
at.Column =
|
|
4227
|
+
at.Column = Hs;
|
|
4227
4228
|
at.ColumnGroup = As;
|
|
4228
4229
|
at.Summary = ba;
|
|
4229
4230
|
var Pr = Or(null), Ma = Or(null);
|
|
@@ -4241,7 +4242,7 @@ function Cd(e) {
|
|
|
4241
4242
|
return f ? k <= 1 : D === 0 || k === 0 || k > 1;
|
|
4242
4243
|
}, [k, D, f]);
|
|
4243
4244
|
K ? T.visibility = "hidden" : f && (T.height = u == null ? void 0 : u(k));
|
|
4244
|
-
var
|
|
4245
|
+
var z = K ? function() {
|
|
4245
4246
|
return null;
|
|
4246
4247
|
} : m, M = {};
|
|
4247
4248
|
return (k === 0 || D === 0) && (M.rowSpan = 1, M.colSpan = 1), /* @__PURE__ */ l.createElement(ot, fe({
|
|
@@ -4256,7 +4257,7 @@ function Cd(e) {
|
|
|
4256
4257
|
index: i,
|
|
4257
4258
|
renderIndex: a,
|
|
4258
4259
|
dataIndex: h,
|
|
4259
|
-
render:
|
|
4260
|
+
render: z,
|
|
4260
4261
|
shouldCellUpdate: r.shouldCellUpdate
|
|
4261
4262
|
}, E, {
|
|
4262
4263
|
appendNode: w,
|
|
@@ -4282,15 +4283,15 @@ var xd = ["data", "index", "className", "rowKey", "style", "extra", "getHeight"]
|
|
|
4282
4283
|
additionalProps: T
|
|
4283
4284
|
}, R));
|
|
4284
4285
|
}
|
|
4285
|
-
var
|
|
4286
|
+
var z = q(q({}, c), {}, {
|
|
4286
4287
|
width: h
|
|
4287
4288
|
});
|
|
4288
|
-
a && (
|
|
4289
|
+
a && (z.position = "absolute", z.pointerEvents = "none");
|
|
4289
4290
|
var M = /* @__PURE__ */ l.createElement(w, fe({}, D, s, {
|
|
4290
4291
|
"data-row-key": i,
|
|
4291
4292
|
ref: b ? null : n,
|
|
4292
4293
|
className: U(o, "".concat(g, "-row"), D == null ? void 0 : D.className, _({}, "".concat(g, "-row-extra"), a)),
|
|
4293
|
-
style: q(q({},
|
|
4294
|
+
style: q(q({}, z), D == null ? void 0 : D.style)
|
|
4294
4295
|
}), C.map(function(F, Z) {
|
|
4295
4296
|
return /* @__PURE__ */ l.createElement(Cd, {
|
|
4296
4297
|
key: Z,
|
|
@@ -4350,14 +4351,14 @@ var Ed = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
4350
4351
|
}), R;
|
|
4351
4352
|
});
|
|
4352
4353
|
var O = function(R, $) {
|
|
4353
|
-
var T, K = (T = S[$]) === null || T === void 0 ? void 0 : T.record,
|
|
4354
|
-
if (
|
|
4355
|
-
var M, F =
|
|
4354
|
+
var T, K = (T = S[$]) === null || T === void 0 ? void 0 : T.record, z = R.onCell;
|
|
4355
|
+
if (z) {
|
|
4356
|
+
var M, F = z(K, $);
|
|
4356
4357
|
return (M = F == null ? void 0 : F.rowSpan) !== null && M !== void 0 ? M : 1;
|
|
4357
4358
|
}
|
|
4358
4359
|
return 1;
|
|
4359
4360
|
}, b = function(R) {
|
|
4360
|
-
var $ = R.start, T = R.end, K = R.getSize,
|
|
4361
|
+
var $ = R.start, T = R.end, K = R.getSize, z = R.offsetY;
|
|
4361
4362
|
if (T < 0)
|
|
4362
4363
|
return null;
|
|
4363
4364
|
for (var M = i.filter(
|
|
@@ -4404,7 +4405,7 @@ var Ed = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
4404
4405
|
rowKey: L,
|
|
4405
4406
|
index: A,
|
|
4406
4407
|
style: {
|
|
4407
|
-
top: -
|
|
4408
|
+
top: -z + ie.top
|
|
4408
4409
|
},
|
|
4409
4410
|
extra: !0,
|
|
4410
4411
|
getHeight: V
|
|
@@ -4453,11 +4454,11 @@ var Ed = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
4453
4454
|
style: $.style
|
|
4454
4455
|
});
|
|
4455
4456
|
}));
|
|
4456
|
-
}),
|
|
4457
|
-
process.env.NODE_ENV !== "production" && (
|
|
4457
|
+
}), za = rt(Ed);
|
|
4458
|
+
process.env.NODE_ENV !== "production" && (za.displayName = "ResponseGrid");
|
|
4458
4459
|
var wd = function(n, r) {
|
|
4459
4460
|
var t = r.ref, o = r.onScroll;
|
|
4460
|
-
return /* @__PURE__ */ l.createElement(
|
|
4461
|
+
return /* @__PURE__ */ l.createElement(za, {
|
|
4461
4462
|
ref: t,
|
|
4462
4463
|
data: n,
|
|
4463
4464
|
onScroll: o
|
|
@@ -4494,10 +4495,10 @@ function $d(e, n) {
|
|
|
4494
4495
|
ref: n
|
|
4495
4496
|
})));
|
|
4496
4497
|
}
|
|
4497
|
-
var
|
|
4498
|
-
process.env.NODE_ENV !== "production" && (
|
|
4498
|
+
var Ba = /* @__PURE__ */ l.forwardRef($d);
|
|
4499
|
+
process.env.NODE_ENV !== "production" && (Ba.displayName = "VirtualTable");
|
|
4499
4500
|
function La(e) {
|
|
4500
|
-
return ga(
|
|
4501
|
+
return ga(Ba, e);
|
|
4501
4502
|
}
|
|
4502
4503
|
La();
|
|
4503
4504
|
const Nd = (e) => null, Od = (e) => null;
|
|
@@ -4519,45 +4520,45 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4519
4520
|
return !!(b.disabled || n.disabled || (G = I.nodeDisabled) !== null && G !== void 0 && G.call(I, S));
|
|
4520
4521
|
}, [b.disabled, n.disabled, I.nodeDisabled, S]), T = X.useMemo(function() {
|
|
4521
4522
|
return !b.checkable || n.checkable === !1 ? !1 : b.checkable;
|
|
4522
|
-
}, [b.checkable, n.checkable]), K = function(
|
|
4523
|
-
$ || b.onNodeSelect(
|
|
4524
|
-
},
|
|
4525
|
-
$ || !T || n.disableCheckbox || b.onNodeCheck(
|
|
4523
|
+
}, [b.checkable, n.checkable]), K = function(j) {
|
|
4524
|
+
$ || b.onNodeSelect(j, qe(n));
|
|
4525
|
+
}, z = function(j) {
|
|
4526
|
+
$ || !T || n.disableCheckbox || b.onNodeCheck(j, qe(n), !C);
|
|
4526
4527
|
}, M = X.useMemo(function() {
|
|
4527
4528
|
return typeof w == "boolean" ? w : b.selectable;
|
|
4528
|
-
}, [w, b.selectable]), F = function(
|
|
4529
|
-
b.onNodeClick(
|
|
4530
|
-
}, Z = function(
|
|
4531
|
-
b.onNodeDoubleClick(
|
|
4532
|
-
}, Q = function(
|
|
4533
|
-
b.onNodeMouseEnter(
|
|
4534
|
-
}, ae = function(
|
|
4535
|
-
b.onNodeMouseLeave(
|
|
4536
|
-
}, te = function(
|
|
4537
|
-
b.onNodeContextMenu(
|
|
4529
|
+
}, [w, b.selectable]), F = function(j) {
|
|
4530
|
+
b.onNodeClick(j, qe(n)), M ? K(j) : z(j);
|
|
4531
|
+
}, Z = function(j) {
|
|
4532
|
+
b.onNodeDoubleClick(j, qe(n));
|
|
4533
|
+
}, Q = function(j) {
|
|
4534
|
+
b.onNodeMouseEnter(j, qe(n));
|
|
4535
|
+
}, ae = function(j) {
|
|
4536
|
+
b.onNodeMouseLeave(j, qe(n));
|
|
4537
|
+
}, te = function(j) {
|
|
4538
|
+
b.onNodeContextMenu(j, qe(n));
|
|
4538
4539
|
}, re = X.useMemo(function() {
|
|
4539
4540
|
return !!(b.draggable && (!b.draggable.nodeDraggable || b.draggable.nodeDraggable(S)));
|
|
4540
|
-
}, [b.draggable, S]), ve = function(
|
|
4541
|
-
|
|
4541
|
+
}, [b.draggable, S]), ve = function(j) {
|
|
4542
|
+
j.stopPropagation(), R(!0), b.onNodeDragStart(j, n);
|
|
4542
4543
|
try {
|
|
4543
|
-
|
|
4544
|
+
j.dataTransfer.setData("text/plain", "");
|
|
4544
4545
|
} catch {
|
|
4545
4546
|
}
|
|
4546
|
-
}, ee = function(
|
|
4547
|
-
|
|
4548
|
-
}, ne = function(
|
|
4549
|
-
|
|
4550
|
-
}, Ne = function(
|
|
4551
|
-
|
|
4552
|
-
}, Re = function(
|
|
4553
|
-
|
|
4554
|
-
}, A = function(
|
|
4555
|
-
|
|
4556
|
-
}, Y = function(
|
|
4557
|
-
y || b.onNodeExpand(
|
|
4547
|
+
}, ee = function(j) {
|
|
4548
|
+
j.preventDefault(), j.stopPropagation(), b.onNodeDragEnter(j, n);
|
|
4549
|
+
}, ne = function(j) {
|
|
4550
|
+
j.preventDefault(), j.stopPropagation(), b.onNodeDragOver(j, n);
|
|
4551
|
+
}, Ne = function(j) {
|
|
4552
|
+
j.stopPropagation(), b.onNodeDragLeave(j, n);
|
|
4553
|
+
}, Re = function(j) {
|
|
4554
|
+
j.stopPropagation(), R(!1), b.onNodeDragEnd(j, n);
|
|
4555
|
+
}, A = function(j) {
|
|
4556
|
+
j.preventDefault(), j.stopPropagation(), R(!1), b.onNodeDrop(j, n);
|
|
4557
|
+
}, Y = function(j) {
|
|
4558
|
+
y || b.onNodeExpand(j, qe(n));
|
|
4558
4559
|
}, L = X.useMemo(function() {
|
|
4559
|
-
var G = sn(b.keyEntities, o) || {},
|
|
4560
|
-
return !!(
|
|
4560
|
+
var G = sn(b.keyEntities, o) || {}, j = G.children;
|
|
4561
|
+
return !!(j || []).length;
|
|
4561
4562
|
}, [b.keyEntities, o]), V = X.useMemo(function() {
|
|
4562
4563
|
return p === !1 ? !1 : p || !b.loadData && !L || b.loadData && n.loaded && !L;
|
|
4563
4564
|
}, [p, b.loadData, L, n.loaded]);
|
|
@@ -4569,17 +4570,17 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4569
4570
|
return (G = b.draggable) !== null && G !== void 0 && G.icon ? /* @__PURE__ */ X.createElement("span", {
|
|
4570
4571
|
className: "".concat(b.prefixCls, "-draggable-icon")
|
|
4571
4572
|
}, b.draggable.icon) : null;
|
|
4572
|
-
}, [b.draggable]), ce = function(
|
|
4573
|
+
}, [b.draggable]), ce = function(j) {
|
|
4573
4574
|
var pe = n.switcherIcon || b.switcherIcon;
|
|
4574
4575
|
return typeof pe == "function" ? pe(q(q({}, n), {}, {
|
|
4575
|
-
isLeaf:
|
|
4576
|
+
isLeaf: j
|
|
4576
4577
|
})) : pe;
|
|
4577
4578
|
}, J = function() {
|
|
4578
4579
|
if (V) {
|
|
4579
|
-
var
|
|
4580
|
-
return
|
|
4580
|
+
var j = ce(!0);
|
|
4581
|
+
return j !== !1 ? /* @__PURE__ */ X.createElement("span", {
|
|
4581
4582
|
className: U("".concat(b.prefixCls, "-switcher"), "".concat(b.prefixCls, "-switcher-noop"))
|
|
4582
|
-
},
|
|
4583
|
+
}, j) : null;
|
|
4583
4584
|
}
|
|
4584
4585
|
var pe = ce(!1);
|
|
4585
4586
|
return pe !== !1 ? /* @__PURE__ */ X.createElement("span", {
|
|
@@ -4592,7 +4593,7 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4592
4593
|
var G = typeof T != "boolean" ? T : null;
|
|
4593
4594
|
return /* @__PURE__ */ X.createElement("span", {
|
|
4594
4595
|
className: U("".concat(b.prefixCls, "-checkbox"), _(_(_({}, "".concat(b.prefixCls, "-checkbox-checked"), C), "".concat(b.prefixCls, "-checkbox-indeterminate"), !C && g), "".concat(b.prefixCls, "-checkbox-disabled"), $ || n.disableCheckbox)),
|
|
4595
|
-
onClick:
|
|
4596
|
+
onClick: z,
|
|
4596
4597
|
role: "checkbox",
|
|
4597
4598
|
"aria-checked": g ? "mixed" : C,
|
|
4598
4599
|
"aria-disabled": $ || n.disableCheckbox,
|
|
@@ -4604,9 +4605,9 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4604
4605
|
return /* @__PURE__ */ X.createElement("span", {
|
|
4605
4606
|
className: U("".concat(b.prefixCls, "-iconEle"), "".concat(b.prefixCls, "-icon__").concat(Ke || "docu"), _({}, "".concat(b.prefixCls, "-icon_loading"), y))
|
|
4606
4607
|
});
|
|
4607
|
-
}, [b.prefixCls, Ke, y]),
|
|
4608
|
-
var G = !!b.draggable,
|
|
4609
|
-
return
|
|
4608
|
+
}, [b.prefixCls, Ke, y]), B = X.useMemo(function() {
|
|
4609
|
+
var G = !!b.draggable, j = !n.disabled && G && b.dragOverNodeKey === o;
|
|
4610
|
+
return j ? b.dropIndicatorRender({
|
|
4610
4611
|
dropPosition: b.dropPosition,
|
|
4611
4612
|
dropLevelOffset: b.dropLevelOffset,
|
|
4612
4613
|
indent: b.indent,
|
|
@@ -4614,7 +4615,7 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4614
4615
|
direction: b.direction
|
|
4615
4616
|
}) : null;
|
|
4616
4617
|
}, [b.dropPosition, b.dropLevelOffset, b.indent, b.prefixCls, b.direction, b.draggable, b.dragOverNodeKey, b.dropIndicatorRender]), W = X.useMemo(function() {
|
|
4617
|
-
var G = n.title,
|
|
4618
|
+
var G = n.title, j = G === void 0 ? Dd : G, pe = "".concat(b.prefixCls, "-node-content-wrapper"), Me;
|
|
4618
4619
|
if (b.showIcon) {
|
|
4619
4620
|
var Ie = n.icon || b.icon;
|
|
4620
4621
|
Me = Ie ? /* @__PURE__ */ X.createElement("span", {
|
|
@@ -4622,9 +4623,9 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4622
4623
|
}, typeof Ie == "function" ? Ie(n) : Ie) : ke;
|
|
4623
4624
|
} else b.loadData && y && (Me = ke);
|
|
4624
4625
|
var le;
|
|
4625
|
-
return typeof
|
|
4626
|
+
return typeof j == "function" ? le = j(S) : b.titleRender ? le = b.titleRender(S) : le = j, /* @__PURE__ */ X.createElement("span", {
|
|
4626
4627
|
ref: D,
|
|
4627
|
-
title: typeof
|
|
4628
|
+
title: typeof j == "string" ? j : "",
|
|
4628
4629
|
className: U(pe, "".concat(pe, "-").concat(Ke || "normal"), _({}, "".concat(b.prefixCls, "-node-selected"), !$ && (h || N))),
|
|
4629
4630
|
onMouseEnter: Q,
|
|
4630
4631
|
onMouseLeave: ae,
|
|
@@ -4633,18 +4634,18 @@ var Pd = ["eventKey", "className", "style", "dragOver", "dragOverGapTop", "dragO
|
|
|
4633
4634
|
onDoubleClick: Z
|
|
4634
4635
|
}, Me, /* @__PURE__ */ X.createElement("span", {
|
|
4635
4636
|
className: "".concat(b.prefixCls, "-title")
|
|
4636
|
-
}, le),
|
|
4637
|
+
}, le), B);
|
|
4637
4638
|
}, [b.prefixCls, b.showIcon, n, b.icon, ke, b.titleRender, S, Ke, Q, ae, te, F, Z]), se = et(O, {
|
|
4638
4639
|
aria: !0,
|
|
4639
4640
|
data: !0
|
|
4640
|
-
}), ge = sn(b.keyEntities, o) || {}, ue = ge.level, _e = u[u.length - 1], we = !$ && re,
|
|
4641
|
+
}), ge = sn(b.keyEntities, o) || {}, ue = ge.level, _e = u[u.length - 1], we = !$ && re, ze = b.draggingNodeKey === o, Oe = w !== void 0 ? {
|
|
4641
4642
|
"aria-selected": !!w
|
|
4642
4643
|
} : void 0;
|
|
4643
4644
|
return /* @__PURE__ */ X.createElement("div", fe({
|
|
4644
4645
|
ref: x,
|
|
4645
4646
|
role: "treeitem",
|
|
4646
4647
|
"aria-expanded": p ? void 0 : m,
|
|
4647
|
-
className: U(i, "".concat(b.prefixCls, "-treenode"), (t = {}, _(_(_(_(_(_(_(_(_(_(t, "".concat(b.prefixCls, "-treenode-disabled"), $), "".concat(b.prefixCls, "-treenode-switcher-").concat(m ? "open" : "close"), !p), "".concat(b.prefixCls, "-treenode-checkbox-checked"), C), "".concat(b.prefixCls, "-treenode-checkbox-indeterminate"), g), "".concat(b.prefixCls, "-treenode-selected"), h), "".concat(b.prefixCls, "-treenode-loading"), y), "".concat(b.prefixCls, "-treenode-active"), v), "".concat(b.prefixCls, "-treenode-leaf-last"), _e), "".concat(b.prefixCls, "-treenode-draggable"), re), "dragging",
|
|
4648
|
+
className: U(i, "".concat(b.prefixCls, "-treenode"), (t = {}, _(_(_(_(_(_(_(_(_(_(t, "".concat(b.prefixCls, "-treenode-disabled"), $), "".concat(b.prefixCls, "-treenode-switcher-").concat(m ? "open" : "close"), !p), "".concat(b.prefixCls, "-treenode-checkbox-checked"), C), "".concat(b.prefixCls, "-treenode-checkbox-indeterminate"), g), "".concat(b.prefixCls, "-treenode-selected"), h), "".concat(b.prefixCls, "-treenode-loading"), y), "".concat(b.prefixCls, "-treenode-active"), v), "".concat(b.prefixCls, "-treenode-leaf-last"), _e), "".concat(b.prefixCls, "-treenode-draggable"), re), "dragging", ze), _(_(_(_(_(_(_(t, "drop-target", b.dropTargetKey === o), "drop-container", b.dropContainerKey === o), "drag-over", !$ && a), "drag-over-gap-top", !$ && d), "drag-over-gap-bottom", !$ && s), "filter-node", (r = b.filterTreeNode) === null || r === void 0 ? void 0 : r.call(b, qe(n))), "".concat(b.prefixCls, "-treenode-leaf"), V))),
|
|
4648
4649
|
style: c,
|
|
4649
4650
|
draggable: we,
|
|
4650
4651
|
onDragStart: we ? ve : void 0,
|
|
@@ -4798,12 +4799,12 @@ function Md(e) {
|
|
|
4798
4799
|
r(i);
|
|
4799
4800
|
}];
|
|
4800
4801
|
}
|
|
4801
|
-
const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo = [],
|
|
4802
|
+
const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo = [], ja = (e, n) => {
|
|
4802
4803
|
let r = [];
|
|
4803
4804
|
return (n || []).forEach((t) => {
|
|
4804
|
-
r.push(t), t && typeof t == "object" && e in t && (r = [].concat(xe(r), xe(
|
|
4805
|
+
r.push(t), t && typeof t == "object" && e in t && (r = [].concat(xe(r), xe(ja(e, t[e]))));
|
|
4805
4806
|
}), r;
|
|
4806
|
-
},
|
|
4807
|
+
}, zd = (e, n) => {
|
|
4807
4808
|
const {
|
|
4808
4809
|
preserveSelectedRowKeys: r,
|
|
4809
4810
|
selectedRowKeys: t,
|
|
@@ -4834,7 +4835,7 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4834
4835
|
getPopupContainer: P
|
|
4835
4836
|
} = e, k = Fn("Table"), [N, R] = Md((A) => A), [$, T] = It(t || o || bo, {
|
|
4836
4837
|
value: t
|
|
4837
|
-
}), K = l.useRef(/* @__PURE__ */ new Map()),
|
|
4838
|
+
}), K = l.useRef(/* @__PURE__ */ new Map()), z = Yn((A) => {
|
|
4838
4839
|
if (r) {
|
|
4839
4840
|
const Y = /* @__PURE__ */ new Map();
|
|
4840
4841
|
A.forEach((L) => {
|
|
@@ -4844,9 +4845,9 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4844
4845
|
}
|
|
4845
4846
|
}, [w, r]);
|
|
4846
4847
|
l.useEffect(() => {
|
|
4847
|
-
|
|
4848
|
+
z($);
|
|
4848
4849
|
}, [$]);
|
|
4849
|
-
const M = un(() =>
|
|
4850
|
+
const M = un(() => ja(I, E), [I, E]), {
|
|
4850
4851
|
keyEntities: F
|
|
4851
4852
|
} = un(() => {
|
|
4852
4853
|
if (x)
|
|
@@ -4892,7 +4893,7 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4892
4893
|
}, [!!n]);
|
|
4893
4894
|
const ee = Yn((A, Y) => {
|
|
4894
4895
|
let L, V;
|
|
4895
|
-
|
|
4896
|
+
z(A), r ? (L = A, V = A.map((ie) => K.current.get(ie))) : (L = [], V = [], A.forEach((ie) => {
|
|
4896
4897
|
const ce = w(ie);
|
|
4897
4898
|
ce !== void 0 && (L.push(ie), V.push(ce));
|
|
4898
4899
|
})), T(L), c == null || c(L, V, {
|
|
@@ -4953,8 +4954,8 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4953
4954
|
}) : ie.forEach((pe) => {
|
|
4954
4955
|
V.has(pe) || (V.add(pe), G.push(pe));
|
|
4955
4956
|
});
|
|
4956
|
-
const
|
|
4957
|
-
d == null || d(!ce,
|
|
4957
|
+
const j = Array.from(V);
|
|
4958
|
+
d == null || d(!ce, j.map((pe) => w(pe)), G.map((pe) => w(pe))), ee(j, "all"), R(null);
|
|
4958
4959
|
};
|
|
4959
4960
|
let Ke, ke;
|
|
4960
4961
|
if (m !== "radio") {
|
|
@@ -4965,7 +4966,7 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4965
4966
|
items: Ne.map((Pe, he) => {
|
|
4966
4967
|
const {
|
|
4967
4968
|
key: Ve,
|
|
4968
|
-
text:
|
|
4969
|
+
text: Be,
|
|
4969
4970
|
onSelect: Ue
|
|
4970
4971
|
} = Pe;
|
|
4971
4972
|
return {
|
|
@@ -4973,7 +4974,7 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4973
4974
|
onClick: () => {
|
|
4974
4975
|
Ue == null || Ue(ie);
|
|
4975
4976
|
},
|
|
4976
|
-
label:
|
|
4977
|
+
label: Be
|
|
4977
4978
|
};
|
|
4978
4979
|
})
|
|
4979
4980
|
};
|
|
@@ -4982,9 +4983,9 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4982
4983
|
}, /* @__PURE__ */ l.createElement(wr, {
|
|
4983
4984
|
menu: le,
|
|
4984
4985
|
getPopupContainer: P
|
|
4985
|
-
}, /* @__PURE__ */ l.createElement("span", null, /* @__PURE__ */ l.createElement(
|
|
4986
|
+
}, /* @__PURE__ */ l.createElement("span", null, /* @__PURE__ */ l.createElement(Ni, null))));
|
|
4986
4987
|
}
|
|
4987
|
-
const
|
|
4988
|
+
const j = M.map((le, Pe) => {
|
|
4988
4989
|
const he = O(le, Pe), Ve = Z.get(he) || {};
|
|
4989
4990
|
return Object.assign({
|
|
4990
4991
|
checked: V.has(he)
|
|
@@ -4994,12 +4995,12 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
4994
4995
|
disabled: Pe
|
|
4995
4996
|
} = le;
|
|
4996
4997
|
return Pe;
|
|
4997
|
-
}), pe = !!
|
|
4998
|
+
}), pe = !!j.length && j.length === M.length, Me = pe && j.every((le) => {
|
|
4998
4999
|
let {
|
|
4999
5000
|
checked: Pe
|
|
5000
5001
|
} = le;
|
|
5001
5002
|
return Pe;
|
|
5002
|
-
}), Ie = pe &&
|
|
5003
|
+
}), Ie = pe && j.some((le) => {
|
|
5003
5004
|
let {
|
|
5004
5005
|
checked: Pe
|
|
5005
5006
|
} = le;
|
|
@@ -5016,9 +5017,9 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
5016
5017
|
className: `${v}-selection`
|
|
5017
5018
|
}, ke, G);
|
|
5018
5019
|
}
|
|
5019
|
-
let
|
|
5020
|
-
m === "radio" ?
|
|
5021
|
-
const Me = O(
|
|
5020
|
+
let B;
|
|
5021
|
+
m === "radio" ? B = (G, j, pe) => {
|
|
5022
|
+
const Me = O(j, pe), Ie = V.has(Me), le = Z.get(Me);
|
|
5022
5023
|
return {
|
|
5023
5024
|
node: /* @__PURE__ */ l.createElement(Ct, Object.assign({}, le, {
|
|
5024
5025
|
checked: Ie,
|
|
@@ -5033,24 +5034,24 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
5033
5034
|
})),
|
|
5034
5035
|
checked: Ie
|
|
5035
5036
|
};
|
|
5036
|
-
} :
|
|
5037
|
+
} : B = (G, j, pe) => {
|
|
5037
5038
|
var Me;
|
|
5038
|
-
const Ie = O(
|
|
5039
|
+
const Ie = O(j, pe), le = V.has(Ie), Pe = ve.has(Ie), he = Z.get(Ie);
|
|
5039
5040
|
let Ve;
|
|
5040
5041
|
return b === "nest" ? (Ve = Pe, process.env.NODE_ENV !== "production" && k(typeof (he == null ? void 0 : he.indeterminate) != "boolean", "usage", "set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")) : Ve = (Me = he == null ? void 0 : he.indeterminate) !== null && Me !== void 0 ? Me : Pe, {
|
|
5041
5042
|
node: /* @__PURE__ */ l.createElement(Pt, Object.assign({}, he, {
|
|
5042
5043
|
indeterminate: Ve,
|
|
5043
5044
|
checked: le,
|
|
5044
5045
|
skipGroup: !0,
|
|
5045
|
-
onClick: (
|
|
5046
|
+
onClick: (Be) => {
|
|
5046
5047
|
var Ue;
|
|
5047
|
-
|
|
5048
|
+
Be.stopPropagation(), (Ue = he == null ? void 0 : he.onClick) === null || Ue === void 0 || Ue.call(he, Be);
|
|
5048
5049
|
},
|
|
5049
|
-
onChange: (
|
|
5050
|
+
onChange: (Be) => {
|
|
5050
5051
|
var Ue;
|
|
5051
5052
|
const {
|
|
5052
5053
|
nativeEvent: gn
|
|
5053
|
-
} =
|
|
5054
|
+
} = Be, {
|
|
5054
5055
|
shiftKey: hn
|
|
5055
5056
|
} = gn, Te = ie.findIndex((Je) => Je === Ie), Mn = ae.some((Je) => ie.includes(Je));
|
|
5056
5057
|
if (hn && x && Mn) {
|
|
@@ -5077,40 +5078,40 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
5077
5078
|
ne(Ie, !le, We, gn);
|
|
5078
5079
|
}
|
|
5079
5080
|
}
|
|
5080
|
-
R(le ? null : Te), (Ue = he == null ? void 0 : he.onChange) === null || Ue === void 0 || Ue.call(he,
|
|
5081
|
+
R(le ? null : Te), (Ue = he == null ? void 0 : he.onChange) === null || Ue === void 0 || Ue.call(he, Be);
|
|
5081
5082
|
}
|
|
5082
5083
|
})),
|
|
5083
5084
|
checked: le
|
|
5084
5085
|
};
|
|
5085
5086
|
};
|
|
5086
|
-
const W = (G,
|
|
5087
|
+
const W = (G, j, pe) => {
|
|
5087
5088
|
const {
|
|
5088
5089
|
node: Me,
|
|
5089
5090
|
checked: Ie
|
|
5090
|
-
} =
|
|
5091
|
-
return g ? g(Ie,
|
|
5091
|
+
} = B(G, j, pe);
|
|
5092
|
+
return g ? g(Ie, j, pe, Me) : Me;
|
|
5092
5093
|
};
|
|
5093
5094
|
if (!L.includes($n))
|
|
5094
5095
|
if (L.findIndex((G) => {
|
|
5095
|
-
var
|
|
5096
|
-
return ((
|
|
5096
|
+
var j;
|
|
5097
|
+
return ((j = G[mt]) === null || j === void 0 ? void 0 : j.columnType) === "EXPAND_COLUMN";
|
|
5097
5098
|
}) === 0) {
|
|
5098
|
-
const [G, ...
|
|
5099
|
-
L = [G, $n].concat(xe(
|
|
5099
|
+
const [G, ...j] = L;
|
|
5100
|
+
L = [G, $n].concat(xe(j));
|
|
5100
5101
|
} else
|
|
5101
5102
|
L = [$n].concat(xe(L));
|
|
5102
5103
|
const se = L.indexOf($n);
|
|
5103
|
-
process.env.NODE_ENV !== "production" && k(L.filter((G) => G === $n).length <= 1, "usage", "Multiple `SELECTION_COLUMN` exist in `columns`."), L = L.filter((G,
|
|
5104
|
+
process.env.NODE_ENV !== "production" && k(L.filter((G) => G === $n).length <= 1, "usage", "Multiple `SELECTION_COLUMN` exist in `columns`."), L = L.filter((G, j) => G !== $n || j === se);
|
|
5104
5105
|
const ge = L[se - 1], ue = L[se + 1];
|
|
5105
5106
|
let _e = C;
|
|
5106
5107
|
_e === void 0 && ((ue == null ? void 0 : ue.fixed) !== void 0 ? _e = ue.fixed : (ge == null ? void 0 : ge.fixed) !== void 0 && (_e = ge.fixed)), _e && ge && ((Y = ge[mt]) === null || Y === void 0 ? void 0 : Y.columnType) === "EXPAND_COLUMN" && ge.fixed === void 0 && (ge.fixed = _e);
|
|
5107
5108
|
const we = U(`${v}-selection-col`, {
|
|
5108
5109
|
[`${v}-selection-col-with-dropdown`]: h && m === "checkbox"
|
|
5109
|
-
}),
|
|
5110
|
+
}), ze = () => n != null && n.columnTitle ? typeof n.columnTitle == "function" ? n.columnTitle(ke) : n.columnTitle : Ke, Oe = {
|
|
5110
5111
|
fixed: _e,
|
|
5111
5112
|
width: u,
|
|
5112
5113
|
className: `${v}-selection-column`,
|
|
5113
|
-
title:
|
|
5114
|
+
title: ze(),
|
|
5114
5115
|
render: W,
|
|
5115
5116
|
onCell: n.onCell,
|
|
5116
5117
|
[mt]: {
|
|
@@ -5120,7 +5121,7 @@ const $n = {}, ar = "SELECT_ALL", ir = "SELECT_INVERT", lr = "SELECT_NONE", bo =
|
|
|
5120
5121
|
return L.map((G) => G === $n ? Oe : G);
|
|
5121
5122
|
}, [O, M, n, ae, re, ve, u, Ne, b, Z, f, ne, Q]), re];
|
|
5122
5123
|
};
|
|
5123
|
-
function
|
|
5124
|
+
function Bd(e, n) {
|
|
5124
5125
|
return e._antProxy = e._antProxy || {}, Object.keys(n).forEach((r) => {
|
|
5125
5126
|
if (!(r in e._antProxy)) {
|
|
5126
5127
|
const t = e[r];
|
|
@@ -5137,10 +5138,10 @@ function Ld(e, n) {
|
|
|
5137
5138
|
get(o, i) {
|
|
5138
5139
|
return r[i] ? r[i] : Reflect.get(o, i);
|
|
5139
5140
|
}
|
|
5140
|
-
}) :
|
|
5141
|
+
}) : Bd(t, r);
|
|
5141
5142
|
});
|
|
5142
5143
|
}
|
|
5143
|
-
function
|
|
5144
|
+
function jd(e) {
|
|
5144
5145
|
return (n) => {
|
|
5145
5146
|
const {
|
|
5146
5147
|
prefixCls: r,
|
|
@@ -5164,7 +5165,7 @@ function Hd(e) {
|
|
|
5164
5165
|
});
|
|
5165
5166
|
};
|
|
5166
5167
|
}
|
|
5167
|
-
function
|
|
5168
|
+
function Hd(e) {
|
|
5168
5169
|
return (r, t) => {
|
|
5169
5170
|
const o = r.querySelector(`.${e}-container`);
|
|
5170
5171
|
let i = t;
|
|
@@ -5179,8 +5180,8 @@ const _n = (e, n) => "key" in e && e.key !== void 0 && e.key !== null ? e.key :
|
|
|
5179
5180
|
function it(e, n) {
|
|
5180
5181
|
return n ? `${n}-${e}` : `${e}`;
|
|
5181
5182
|
}
|
|
5182
|
-
const
|
|
5183
|
-
const r =
|
|
5183
|
+
const zt = (e, n) => typeof e == "function" ? e(n) : e, Ad = (e, n) => {
|
|
5184
|
+
const r = zt(e, n);
|
|
5184
5185
|
return Object.prototype.toString.call(r) === "[object Object]" ? "" : r;
|
|
5185
5186
|
};
|
|
5186
5187
|
function Fd(e) {
|
|
@@ -5189,7 +5190,7 @@ function Fd(e) {
|
|
|
5189
5190
|
n.current = t, r();
|
|
5190
5191
|
}];
|
|
5191
5192
|
}
|
|
5192
|
-
var
|
|
5193
|
+
var Ha = function(n) {
|
|
5193
5194
|
var r = n.dropPosition, t = n.dropLevelOffset, o = n.indent, i = {
|
|
5194
5195
|
pointerEvents: "none",
|
|
5195
5196
|
position: "absolute",
|
|
@@ -5212,18 +5213,18 @@ var ja = function(n) {
|
|
|
5212
5213
|
style: i
|
|
5213
5214
|
});
|
|
5214
5215
|
};
|
|
5215
|
-
process.env.NODE_ENV !== "production" && (
|
|
5216
|
+
process.env.NODE_ENV !== "production" && (Ha.displayName = "DropIndicator");
|
|
5216
5217
|
function Aa(e) {
|
|
5217
5218
|
if (e == null) throw new TypeError("Cannot destructure " + e);
|
|
5218
5219
|
}
|
|
5219
5220
|
function Vd(e, n) {
|
|
5220
5221
|
var r = l.useState(!1), t = Ee(r, 2), o = t[0], i = t[1];
|
|
5221
|
-
|
|
5222
|
+
Hn(function() {
|
|
5222
5223
|
if (o)
|
|
5223
5224
|
return e(), function() {
|
|
5224
5225
|
n();
|
|
5225
5226
|
};
|
|
5226
|
-
}, [o]),
|
|
5227
|
+
}, [o]), Hn(function() {
|
|
5227
5228
|
return i(!0), function() {
|
|
5228
5229
|
i(!1);
|
|
5229
5230
|
};
|
|
@@ -5231,7 +5232,7 @@ function Vd(e, n) {
|
|
|
5231
5232
|
}
|
|
5232
5233
|
var Wd = ["className", "style", "motion", "motionNodes", "motionType", "onMotionStart", "onMotionEnd", "active", "treeNodeRequiredProps"], Fa = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
5233
5234
|
var r = e.className, t = e.style, o = e.motion, i = e.motionNodes, c = e.motionType, a = e.onMotionStart, d = e.onMotionEnd, s = e.active, p = e.treeNodeRequiredProps, f = yn(e, Wd), u = l.useState(!0), m = Ee(u, 2), h = m[0], C = m[1], g = l.useContext(Dr), y = g.prefixCls, x = i && c !== "hide";
|
|
5234
|
-
|
|
5235
|
+
Hn(function() {
|
|
5235
5236
|
i && x !== h && C(x);
|
|
5236
5237
|
}, [i]);
|
|
5237
5238
|
var v = function() {
|
|
@@ -5372,27 +5373,27 @@ var Wa = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
5372
5373
|
}
|
|
5373
5374
|
};
|
|
5374
5375
|
});
|
|
5375
|
-
var K = l.useState(o),
|
|
5376
|
+
var K = l.useState(o), z = Ee(K, 2), M = z[0], F = z[1], Z = l.useState(t), Q = Ee(Z, 2), ae = Q[0], te = Q[1], re = l.useState(t), ve = Ee(re, 2), ee = ve[0], ne = ve[1], Ne = l.useState([]), Re = Ee(Ne, 2), A = Re[0], Y = Re[1], L = l.useState(null), V = Ee(L, 2), ie = V[0], ce = V[1], J = l.useRef(t);
|
|
5376
5377
|
J.current = t;
|
|
5377
5378
|
function ye() {
|
|
5378
|
-
var
|
|
5379
|
-
te(
|
|
5379
|
+
var B = J.current;
|
|
5380
|
+
te(B), ne(B), Y([]), ce(null), N();
|
|
5380
5381
|
}
|
|
5381
|
-
|
|
5382
|
+
Hn(function() {
|
|
5382
5383
|
F(o);
|
|
5383
|
-
var
|
|
5384
|
-
if (
|
|
5385
|
-
if (
|
|
5386
|
-
var W = ae.findIndex(function(
|
|
5387
|
-
var Oe =
|
|
5388
|
-
return Oe ===
|
|
5389
|
-
}), se = Eo(Co(ae, t,
|
|
5384
|
+
var B = qd(M, o);
|
|
5385
|
+
if (B.key !== null)
|
|
5386
|
+
if (B.add) {
|
|
5387
|
+
var W = ae.findIndex(function(ze) {
|
|
5388
|
+
var Oe = ze.key;
|
|
5389
|
+
return Oe === B.key;
|
|
5390
|
+
}), se = Eo(Co(ae, t, B.key), x, g, y), ge = ae.slice();
|
|
5390
5391
|
ge.splice(W + 1, 0, So), ne(ge), Y(se), ce("show");
|
|
5391
5392
|
} else {
|
|
5392
|
-
var ue = t.findIndex(function(
|
|
5393
|
-
var Oe =
|
|
5394
|
-
return Oe ===
|
|
5395
|
-
}), _e = Eo(Co(t, ae,
|
|
5393
|
+
var ue = t.findIndex(function(ze) {
|
|
5394
|
+
var Oe = ze.key;
|
|
5395
|
+
return Oe === B.key;
|
|
5396
|
+
}), _e = Eo(Co(t, ae, B.key), x, g, y), we = t.slice();
|
|
5396
5397
|
we.splice(ue + 1, 0, So), ne(we), Y(_e), ce("hide");
|
|
5397
5398
|
}
|
|
5398
5399
|
else ae !== t && (te(t), ne(t));
|
|
@@ -5456,15 +5457,15 @@ var Wa = /* @__PURE__ */ l.forwardRef(function(e, n) {
|
|
|
5456
5457
|
return wo(se) !== An;
|
|
5457
5458
|
}) && ye();
|
|
5458
5459
|
}
|
|
5459
|
-
}), function(
|
|
5460
|
-
var W =
|
|
5460
|
+
}), function(B) {
|
|
5461
|
+
var W = B.pos, se = Object.assign({}, (Aa(B.data), B.data)), ge = B.title, ue = B.key, _e = B.isStart, we = B.isEnd, ze = xt(ue, W);
|
|
5461
5462
|
delete se.key, delete se.children;
|
|
5462
|
-
var Oe = pt(
|
|
5463
|
+
var Oe = pt(ze, ke);
|
|
5463
5464
|
return /* @__PURE__ */ l.createElement(Fa, fe({}, se, Oe, {
|
|
5464
5465
|
title: ge,
|
|
5465
5466
|
active: !!E && ue === E.key,
|
|
5466
5467
|
pos: W,
|
|
5467
|
-
data:
|
|
5468
|
+
data: B.data,
|
|
5468
5469
|
isStart: _e,
|
|
5469
5470
|
isEnd: we,
|
|
5470
5471
|
motion: C,
|
|
@@ -5972,7 +5973,7 @@ var Yd = 10, Kr = /* @__PURE__ */ function(e) {
|
|
|
5972
5973
|
}, {
|
|
5973
5974
|
key: "render",
|
|
5974
5975
|
value: function() {
|
|
5975
|
-
var o = this.state, i = o.focused, c = o.flattenNodes, a = o.keyEntities, d = o.draggingNodeKey, s = o.activeKey, p = o.dropLevelOffset, f = o.dropContainerKey, u = o.dropTargetKey, m = o.dropPosition, h = o.dragOverNodeKey, C = o.indent, g = this.props, y = g.prefixCls, x = g.className, v = g.style, S = g.showLine, E = g.focusable, w = g.tabIndex, O = w === void 0 ? 0 : w, b = g.selectable, I = g.showIcon, D = g.icon, P = g.switcherIcon, k = g.draggable, N = g.checkable, R = g.checkStrictly, $ = g.disabled, T = g.motion, K = g.loadData,
|
|
5976
|
+
var o = this.state, i = o.focused, c = o.flattenNodes, a = o.keyEntities, d = o.draggingNodeKey, s = o.activeKey, p = o.dropLevelOffset, f = o.dropContainerKey, u = o.dropTargetKey, m = o.dropPosition, h = o.dragOverNodeKey, C = o.indent, g = this.props, y = g.prefixCls, x = g.className, v = g.style, S = g.showLine, E = g.focusable, w = g.tabIndex, O = w === void 0 ? 0 : w, b = g.selectable, I = g.showIcon, D = g.icon, P = g.switcherIcon, k = g.draggable, N = g.checkable, R = g.checkStrictly, $ = g.disabled, T = g.motion, K = g.loadData, z = g.filterTreeNode, M = g.height, F = g.itemHeight, Z = g.scrollWidth, Q = g.virtual, ae = g.titleRender, te = g.dropIndicatorRender, re = g.onContextMenu, ve = g.onScroll, ee = g.direction, ne = g.rootClassName, Ne = g.rootStyle, Re = et(this.props, {
|
|
5976
5977
|
aria: !0,
|
|
5977
5978
|
data: !0
|
|
5978
5979
|
}), A;
|
|
@@ -6000,7 +6001,7 @@ var Yd = 10, Kr = /* @__PURE__ */ function(e) {
|
|
|
6000
6001
|
direction: ee,
|
|
6001
6002
|
dropIndicatorRender: te,
|
|
6002
6003
|
loadData: K,
|
|
6003
|
-
filterTreeNode:
|
|
6004
|
+
filterTreeNode: z,
|
|
6004
6005
|
titleRender: ae,
|
|
6005
6006
|
onNodeClick: this.onNodeClick,
|
|
6006
6007
|
onNodeDoubleClick: this.onNodeDoubleClick,
|
|
@@ -6118,7 +6119,7 @@ _(Kr, "defaultProps", {
|
|
|
6118
6119
|
defaultExpandedKeys: [],
|
|
6119
6120
|
defaultCheckedKeys: [],
|
|
6120
6121
|
defaultSelectedKeys: [],
|
|
6121
|
-
dropIndicatorRender:
|
|
6122
|
+
dropIndicatorRender: Ha,
|
|
6122
6123
|
allowDrop: function() {
|
|
6123
6124
|
return !0;
|
|
6124
6125
|
},
|
|
@@ -6209,7 +6210,7 @@ const Jd = (e) => {
|
|
|
6209
6210
|
width: 8,
|
|
6210
6211
|
height: 8,
|
|
6211
6212
|
backgroundColor: "transparent",
|
|
6212
|
-
border: `${
|
|
6213
|
+
border: `${H(n.lineWidthBold)} solid ${n.colorPrimary}`,
|
|
6213
6214
|
borderRadius: "50%",
|
|
6214
6215
|
content: '""'
|
|
6215
6216
|
}
|
|
@@ -6270,7 +6271,7 @@ const Jd = (e) => {
|
|
|
6270
6271
|
display: "flex",
|
|
6271
6272
|
alignItems: "flex-start",
|
|
6272
6273
|
marginBottom: o,
|
|
6273
|
-
lineHeight:
|
|
6274
|
+
lineHeight: H(i),
|
|
6274
6275
|
position: "relative",
|
|
6275
6276
|
// 非常重要,避免 drop-indicator 在拖拽过程中闪烁
|
|
6276
6277
|
"&:before": {
|
|
@@ -6476,7 +6477,7 @@ const Jd = (e) => {
|
|
|
6476
6477
|
[`${t}-leaf-last ${r}-switcher-leaf-line:before`]: {
|
|
6477
6478
|
top: "auto !important",
|
|
6478
6479
|
bottom: "auto !important",
|
|
6479
|
-
height: `${
|
|
6480
|
+
height: `${H(n.calc(i).div(2).equal())} !important`
|
|
6480
6481
|
}
|
|
6481
6482
|
})
|
|
6482
6483
|
};
|
|
@@ -6520,7 +6521,7 @@ const Jd = (e) => {
|
|
|
6520
6521
|
prefixCls: r
|
|
6521
6522
|
} = n;
|
|
6522
6523
|
return [{
|
|
6523
|
-
[e.componentCls]:
|
|
6524
|
+
[e.componentCls]: ki(`${r}-checkbox`, e)
|
|
6524
6525
|
}, tc(r, e), Ui(e)];
|
|
6525
6526
|
}, oc), $o = 4;
|
|
6526
6527
|
function ic(e) {
|
|
@@ -6613,7 +6614,7 @@ const lc = (e) => {
|
|
|
6613
6614
|
draggable: y,
|
|
6614
6615
|
motion: x,
|
|
6615
6616
|
style: v
|
|
6616
|
-
} = e, S = t("tree", a), E = t(), w = x ?? Object.assign(Object.assign({},
|
|
6617
|
+
} = e, S = t("tree", a), E = t(), w = x ?? Object.assign(Object.assign({}, Gi(E)), {
|
|
6617
6618
|
motionAppear: !1
|
|
6618
6619
|
}), O = Object.assign(Object.assign({}, e), {
|
|
6619
6620
|
checkable: C,
|
|
@@ -6772,9 +6773,9 @@ const cc = (e, n) => {
|
|
|
6772
6773
|
key: $ = ""
|
|
6773
6774
|
} = N, T = ko(i), K = Object.assign(Object.assign({}, I), {
|
|
6774
6775
|
selected: !0
|
|
6775
|
-
}),
|
|
6776
|
+
}), z = (R == null ? void 0 : R.ctrlKey) || (R == null ? void 0 : R.metaKey), M = R == null ? void 0 : R.shiftKey;
|
|
6776
6777
|
let F;
|
|
6777
|
-
P &&
|
|
6778
|
+
P && z ? (F = b, c.current = $, a.current = F, K.selectedNodes = Gt(T, F, k)) : P && M ? (F = Array.from(new Set([].concat(xe(a.current || []), xe(sc({
|
|
6778
6779
|
treeData: T,
|
|
6779
6780
|
expandedKeys: f,
|
|
6780
6781
|
startKey: $,
|
|
@@ -6808,9 +6809,9 @@ const cc = (e, n) => {
|
|
|
6808
6809
|
}));
|
|
6809
6810
|
}, qa = /* @__PURE__ */ l.forwardRef(cc);
|
|
6810
6811
|
process.env.NODE_ENV !== "production" && (qa.displayName = "DirectoryTree");
|
|
6811
|
-
const
|
|
6812
|
-
|
|
6813
|
-
|
|
6812
|
+
const zr = _r;
|
|
6813
|
+
zr.DirectoryTree = qa;
|
|
6814
|
+
zr.TreeNode = tt;
|
|
6814
6815
|
const Io = (e) => {
|
|
6815
6816
|
const {
|
|
6816
6817
|
value: n,
|
|
@@ -6927,29 +6928,29 @@ const pc = (e) => {
|
|
|
6927
6928
|
filterDropdownVisible: b,
|
|
6928
6929
|
onFilterDropdownVisibleChange: I,
|
|
6929
6930
|
onFilterDropdownOpenChange: D
|
|
6930
|
-
} = a, [P, k] = l.useState(!1), N = !!(h && (!((n = h.filteredKeys) === null || n === void 0) && n.length || h.forceFiltered)), R = (
|
|
6931
|
+
} = a, [P, k] = l.useState(!1), N = !!(h && (!((n = h.filteredKeys) === null || n === void 0) && n.length || h.forceFiltered)), R = (B) => {
|
|
6931
6932
|
var W;
|
|
6932
|
-
k(
|
|
6933
|
+
k(B), (W = w.onOpenChange) === null || W === void 0 || W.call(w, B), D == null || D(B), I == null || I(B);
|
|
6933
6934
|
};
|
|
6934
6935
|
if (process.env.NODE_ENV !== "production") {
|
|
6935
|
-
const
|
|
6936
|
+
const B = Fn("Table");
|
|
6936
6937
|
[["filterDropdownOpen", "filterDropdownProps.open"], ["filterDropdownVisible", "filterDropdownProps.open"], ["onFilterDropdownOpenChange", "filterDropdownProps.onOpenChange"], ["onFilterDropdownVisibleChange", "filterDropdownProps.onOpenChange"]].forEach((se) => {
|
|
6937
6938
|
let [ge, ue] = se;
|
|
6938
|
-
|
|
6939
|
+
B.deprecated(!(ge in a), ge, ue);
|
|
6939
6940
|
});
|
|
6940
6941
|
}
|
|
6941
|
-
const $ = (o = (t = (r = w.open) !== null && r !== void 0 ? r : O) !== null && t !== void 0 ? t : b) !== null && o !== void 0 ? o : P, T = h == null ? void 0 : h.filteredKeys, [K,
|
|
6942
|
+
const $ = (o = (t = (r = w.open) !== null && r !== void 0 ? r : O) !== null && t !== void 0 ? t : b) !== null && o !== void 0 ? o : P, T = h == null ? void 0 : h.filteredKeys, [K, z] = Fd(Ut(T)), M = (B) => {
|
|
6942
6943
|
let {
|
|
6943
6944
|
selectedKeys: W
|
|
6944
|
-
} =
|
|
6945
|
-
|
|
6946
|
-
}, F = (
|
|
6945
|
+
} = B;
|
|
6946
|
+
z(W);
|
|
6947
|
+
}, F = (B, W) => {
|
|
6947
6948
|
let {
|
|
6948
6949
|
node: se,
|
|
6949
6950
|
checked: ge
|
|
6950
6951
|
} = W;
|
|
6951
6952
|
M(f ? {
|
|
6952
|
-
selectedKeys:
|
|
6953
|
+
selectedKeys: B
|
|
6953
6954
|
} : {
|
|
6954
6955
|
selectedKeys: ge && se.key ? [se.key] : []
|
|
6955
6956
|
});
|
|
@@ -6959,19 +6960,19 @@ const pc = (e) => {
|
|
|
6959
6960
|
selectedKeys: Ut(T)
|
|
6960
6961
|
});
|
|
6961
6962
|
}, [T]);
|
|
6962
|
-
const [Z, Q] = l.useState([]), ae = (
|
|
6963
|
-
Q(
|
|
6964
|
-
}, [te, re] = l.useState(""), ve = (
|
|
6963
|
+
const [Z, Q] = l.useState([]), ae = (B) => {
|
|
6964
|
+
Q(B);
|
|
6965
|
+
}, [te, re] = l.useState(""), ve = (B) => {
|
|
6965
6966
|
const {
|
|
6966
6967
|
value: W
|
|
6967
|
-
} =
|
|
6968
|
+
} = B.target;
|
|
6968
6969
|
re(W);
|
|
6969
6970
|
};
|
|
6970
6971
|
l.useEffect(() => {
|
|
6971
6972
|
P || re("");
|
|
6972
6973
|
}, [P]);
|
|
6973
|
-
const ee = (
|
|
6974
|
-
const W =
|
|
6974
|
+
const ee = (B) => {
|
|
6975
|
+
const W = B != null && B.length ? B : null;
|
|
6975
6976
|
if (W === null && (!h || !h.filteredKeys) || ht(W, h == null ? void 0 : h.filteredKeys, !0))
|
|
6976
6977
|
return null;
|
|
6977
6978
|
C({
|
|
@@ -6983,34 +6984,34 @@ const pc = (e) => {
|
|
|
6983
6984
|
R(!1), ee(K());
|
|
6984
6985
|
}, Ne = function() {
|
|
6985
6986
|
let {
|
|
6986
|
-
confirm:
|
|
6987
|
+
confirm: B,
|
|
6987
6988
|
closeDropdown: W
|
|
6988
6989
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
6989
6990
|
confirm: !1,
|
|
6990
6991
|
closeDropdown: !1
|
|
6991
6992
|
};
|
|
6992
|
-
|
|
6993
|
+
B && ee([]), W && R(!1), re(""), z(S ? (E || []).map((se) => String(se)) : []);
|
|
6993
6994
|
}, Re = function() {
|
|
6994
6995
|
let {
|
|
6995
|
-
closeDropdown:
|
|
6996
|
+
closeDropdown: B
|
|
6996
6997
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
6997
6998
|
closeDropdown: !0
|
|
6998
6999
|
};
|
|
6999
|
-
|
|
7000
|
-
}, A = (
|
|
7001
|
-
W.source === "trigger" && (
|
|
7000
|
+
B && R(!1), ee(K());
|
|
7001
|
+
}, A = (B, W) => {
|
|
7002
|
+
W.source === "trigger" && (B && T !== void 0 && z(Ut(T)), R(B), !B && !a.filterDropdown && p && ne());
|
|
7002
7003
|
}, Y = U({
|
|
7003
7004
|
[`${d}-menu-without-submenu`]: !fc(a.filters || [])
|
|
7004
|
-
}), L = (
|
|
7005
|
-
if (
|
|
7005
|
+
}), L = (B) => {
|
|
7006
|
+
if (B.target.checked) {
|
|
7006
7007
|
const W = Zn(a == null ? void 0 : a.filters).map((se) => String(se));
|
|
7007
|
-
|
|
7008
|
+
z(W);
|
|
7008
7009
|
} else
|
|
7009
|
-
|
|
7010
|
-
}, V = (
|
|
7010
|
+
z([]);
|
|
7011
|
+
}, V = (B) => {
|
|
7011
7012
|
let {
|
|
7012
7013
|
filters: W
|
|
7013
|
-
} =
|
|
7014
|
+
} = B;
|
|
7014
7015
|
return (W || []).map((se, ge) => {
|
|
7015
7016
|
const ue = String(se.value), _e = {
|
|
7016
7017
|
title: se.text,
|
|
@@ -7020,12 +7021,12 @@ const pc = (e) => {
|
|
|
7020
7021
|
filters: se.children
|
|
7021
7022
|
})), _e;
|
|
7022
7023
|
});
|
|
7023
|
-
}, ie = (
|
|
7024
|
+
}, ie = (B) => {
|
|
7024
7025
|
var W;
|
|
7025
|
-
return Object.assign(Object.assign({},
|
|
7026
|
-
text:
|
|
7027
|
-
value:
|
|
7028
|
-
children: ((W =
|
|
7026
|
+
return Object.assign(Object.assign({}, B), {
|
|
7027
|
+
text: B.title,
|
|
7028
|
+
value: B.key,
|
|
7029
|
+
children: ((W = B.children) === null || W === void 0 ? void 0 : W.map((se) => ie(se))) || []
|
|
7029
7030
|
});
|
|
7030
7031
|
};
|
|
7031
7032
|
let ce;
|
|
@@ -7036,8 +7037,8 @@ const pc = (e) => {
|
|
|
7036
7037
|
if (typeof a.filterDropdown == "function")
|
|
7037
7038
|
ce = a.filterDropdown({
|
|
7038
7039
|
prefixCls: `${d}-custom`,
|
|
7039
|
-
setSelectedKeys: (
|
|
7040
|
-
selectedKeys:
|
|
7040
|
+
setSelectedKeys: (B) => M({
|
|
7041
|
+
selectedKeys: B
|
|
7041
7042
|
}),
|
|
7042
7043
|
selectedKeys: K(),
|
|
7043
7044
|
confirm: Re,
|
|
@@ -7051,7 +7052,7 @@ const pc = (e) => {
|
|
|
7051
7052
|
else if (a.filterDropdown)
|
|
7052
7053
|
ce = a.filterDropdown;
|
|
7053
7054
|
else {
|
|
7054
|
-
const
|
|
7055
|
+
const B = K() || [], W = () => {
|
|
7055
7056
|
var ge;
|
|
7056
7057
|
const ue = (ge = ye == null ? void 0 : ye("Table.filter")) !== null && ge !== void 0 ? ge : /* @__PURE__ */ l.createElement(Jr, {
|
|
7057
7058
|
image: Jr.PRESENTED_IMAGE_SIMPLE,
|
|
@@ -7078,11 +7079,11 @@ const pc = (e) => {
|
|
|
7078
7079
|
}), /* @__PURE__ */ l.createElement("div", {
|
|
7079
7080
|
className: `${i}-filter-dropdown-tree`
|
|
7080
7081
|
}, f ? /* @__PURE__ */ l.createElement(Pt, {
|
|
7081
|
-
checked:
|
|
7082
|
-
indeterminate:
|
|
7082
|
+
checked: B.length === Zn(a.filters).length,
|
|
7083
|
+
indeterminate: B.length > 0 && B.length < Zn(a.filters).length,
|
|
7083
7084
|
className: `${i}-filter-dropdown-checkall`,
|
|
7084
7085
|
onChange: L
|
|
7085
|
-
}, g.filterCheckall) : null, /* @__PURE__ */ l.createElement(
|
|
7086
|
+
}, g.filterCheckall) : null, /* @__PURE__ */ l.createElement(zr, {
|
|
7086
7087
|
checkable: !0,
|
|
7087
7088
|
selectable: !1,
|
|
7088
7089
|
blockNode: !0,
|
|
@@ -7090,15 +7091,15 @@ const pc = (e) => {
|
|
|
7090
7091
|
checkStrictly: !f,
|
|
7091
7092
|
className: `${d}-menu`,
|
|
7092
7093
|
onCheck: F,
|
|
7093
|
-
checkedKeys:
|
|
7094
|
-
selectedKeys:
|
|
7094
|
+
checkedKeys: B,
|
|
7095
|
+
selectedKeys: B,
|
|
7095
7096
|
showIcon: !1,
|
|
7096
7097
|
treeData: V({
|
|
7097
7098
|
filters: a.filters
|
|
7098
7099
|
}),
|
|
7099
7100
|
autoExpandParent: !0,
|
|
7100
7101
|
defaultExpandAll: !0,
|
|
7101
|
-
filterTreeNode: te.trim() ? (
|
|
7102
|
+
filterTreeNode: te.trim() ? (ze) => typeof m == "function" ? m(te, ie(ze)) : Ga(te, ze.title) : void 0
|
|
7102
7103
|
})));
|
|
7103
7104
|
const _e = Ua({
|
|
7104
7105
|
filters: a.filters || [],
|
|
@@ -7107,27 +7108,27 @@ const pc = (e) => {
|
|
|
7107
7108
|
filteredKeys: K(),
|
|
7108
7109
|
filterMultiple: f,
|
|
7109
7110
|
searchValue: te
|
|
7110
|
-
}), we = _e.every((
|
|
7111
|
+
}), we = _e.every((ze) => ze === null);
|
|
7111
7112
|
return /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Io, {
|
|
7112
7113
|
filterSearch: m,
|
|
7113
7114
|
value: te,
|
|
7114
7115
|
onChange: ve,
|
|
7115
7116
|
tablePrefixCls: i,
|
|
7116
7117
|
locale: g
|
|
7117
|
-
}), we ? ue : /* @__PURE__ */ l.createElement(
|
|
7118
|
+
}), we ? ue : /* @__PURE__ */ l.createElement(Ii, {
|
|
7118
7119
|
selectable: !0,
|
|
7119
7120
|
multiple: f,
|
|
7120
7121
|
prefixCls: `${d}-menu`,
|
|
7121
7122
|
className: Y,
|
|
7122
7123
|
onSelect: M,
|
|
7123
7124
|
onDeselect: M,
|
|
7124
|
-
selectedKeys:
|
|
7125
|
+
selectedKeys: B,
|
|
7125
7126
|
getPopupContainer: x,
|
|
7126
7127
|
openKeys: Z,
|
|
7127
7128
|
onOpenChange: ae,
|
|
7128
7129
|
items: _e
|
|
7129
7130
|
}));
|
|
7130
|
-
}, se = () => S ? ht((E || []).map((ge) => String(ge)),
|
|
7131
|
+
}, se = () => S ? ht((E || []).map((ge) => String(ge)), B, !0) : B.length === 0;
|
|
7131
7132
|
ce = /* @__PURE__ */ l.createElement(l.Fragment, null, W(), /* @__PURE__ */ l.createElement("div", {
|
|
7132
7133
|
className: `${c}-dropdown-btns`
|
|
7133
7134
|
}, /* @__PURE__ */ l.createElement(Dt, {
|
|
@@ -7141,7 +7142,7 @@ const pc = (e) => {
|
|
|
7141
7142
|
onClick: ne
|
|
7142
7143
|
}, g.filterConfirm)));
|
|
7143
7144
|
}
|
|
7144
|
-
a.filterDropdown && (ce = /* @__PURE__ */ l.createElement(
|
|
7145
|
+
a.filterDropdown && (ce = /* @__PURE__ */ l.createElement(Pi, {
|
|
7145
7146
|
selectable: void 0
|
|
7146
7147
|
}, ce)), ce = /* @__PURE__ */ l.createElement(Xa, {
|
|
7147
7148
|
className: `${c}-dropdown`
|
|
@@ -7150,8 +7151,8 @@ const pc = (e) => {
|
|
|
7150
7151
|
trigger: ["click"],
|
|
7151
7152
|
placement: J === "rtl" ? "bottomLeft" : "bottomRight",
|
|
7152
7153
|
children: (() => {
|
|
7153
|
-
let
|
|
7154
|
-
return typeof a.filterIcon == "function" ?
|
|
7154
|
+
let B;
|
|
7155
|
+
return typeof a.filterIcon == "function" ? B = a.filterIcon(N) : a.filterIcon ? B = a.filterIcon : B = /* @__PURE__ */ l.createElement(da, null), /* @__PURE__ */ l.createElement("span", {
|
|
7155
7156
|
role: "button",
|
|
7156
7157
|
tabIndex: -1,
|
|
7157
7158
|
className: U(`${c}-trigger`, {
|
|
@@ -7160,7 +7161,7 @@ const pc = (e) => {
|
|
|
7160
7161
|
onClick: (W) => {
|
|
7161
7162
|
W.stopPropagation();
|
|
7162
7163
|
}
|
|
7163
|
-
},
|
|
7164
|
+
}, B);
|
|
7164
7165
|
})(),
|
|
7165
7166
|
getPopupContainer: x
|
|
7166
7167
|
}, Object.assign(Object.assign({}, w), {
|
|
@@ -7230,7 +7231,7 @@ function Ya(e, n, r, t, o, i, c, a, d) {
|
|
|
7230
7231
|
locale: o,
|
|
7231
7232
|
getPopupContainer: c,
|
|
7232
7233
|
rootClassName: d
|
|
7233
|
-
},
|
|
7234
|
+
}, zt(s.title, v))
|
|
7234
7235
|
});
|
|
7235
7236
|
}
|
|
7236
7237
|
return "children" in g && (g = Object.assign(Object.assign({}, g), {
|
|
@@ -7452,7 +7453,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7452
7453
|
title: (I) => {
|
|
7453
7454
|
const D = `${e}-column-sorters`, P = /* @__PURE__ */ l.createElement("span", {
|
|
7454
7455
|
className: `${e}-column-title`
|
|
7455
|
-
},
|
|
7456
|
+
}, zt(s.title, I)), k = /* @__PURE__ */ l.createElement("div", {
|
|
7456
7457
|
className: D
|
|
7457
7458
|
}, P, v);
|
|
7458
7459
|
return h ? typeof h != "boolean" && (h == null ? void 0 : h.target) === "sorter-icon" ? /* @__PURE__ */ l.createElement("div", {
|
|
@@ -7613,7 +7614,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7613
7614
|
return [(C) => Za(n, C, p, u, t, o, i), p, f, () => Ko(p)];
|
|
7614
7615
|
}, ei = (e, n) => e.map((t) => {
|
|
7615
7616
|
const o = Object.assign({}, t);
|
|
7616
|
-
return o.title =
|
|
7617
|
+
return o.title = zt(t.title, n), "children" in o && (o.children = ei(o.children, n)), o;
|
|
7617
7618
|
}), xc = (e) => [l.useCallback((r) => ei(r, e), [e])], Sc = _a((e, n) => {
|
|
7618
7619
|
const {
|
|
7619
7620
|
_renderTimes: r
|
|
@@ -7638,14 +7639,14 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7638
7639
|
tablePaddingVertical: c,
|
|
7639
7640
|
tablePaddingHorizontal: a,
|
|
7640
7641
|
calc: d
|
|
7641
|
-
} = e, s = `${
|
|
7642
|
+
} = e, s = `${H(r)} ${t} ${o}`, p = (f, u, m) => ({
|
|
7642
7643
|
[`&${n}-${f}`]: {
|
|
7643
7644
|
[`> ${n}-container`]: {
|
|
7644
7645
|
[`> ${n}-content, > ${n}-body`]: {
|
|
7645
7646
|
"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ": {
|
|
7646
7647
|
[`> ${n}-expanded-row-fixed`]: {
|
|
7647
|
-
margin: `${
|
|
7648
|
-
${
|
|
7648
|
+
margin: `${H(d(u).mul(-1).equal())}
|
|
7649
|
+
${H(d(d(m).add(r)).mul(-1).equal())}`
|
|
7649
7650
|
}
|
|
7650
7651
|
}
|
|
7651
7652
|
}
|
|
@@ -7693,7 +7694,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7693
7694
|
// ========================== Expandable ==========================
|
|
7694
7695
|
"\n > tbody > tr > th,\n > tbody > tr > td\n ": {
|
|
7695
7696
|
[`> ${n}-expanded-row-fixed`]: {
|
|
7696
|
-
margin: `${
|
|
7697
|
+
margin: `${H(d(c).mul(-1).equal())} ${H(d(d(a).add(r)).mul(-1).equal())}`,
|
|
7697
7698
|
"&::after": {
|
|
7698
7699
|
position: "absolute",
|
|
7699
7700
|
top: 0,
|
|
@@ -7737,7 +7738,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7737
7738
|
},
|
|
7738
7739
|
// https://github.com/ant-design/ant-design/issues/35577
|
|
7739
7740
|
"&-scrollbar:not([rowspan])": {
|
|
7740
|
-
boxShadow: `0 ${
|
|
7741
|
+
boxShadow: `0 ${H(r)} 0 ${H(r)} ${i}`
|
|
7741
7742
|
}
|
|
7742
7743
|
},
|
|
7743
7744
|
[`${n}-bordered ${n}-cell-scrollbar`]: {
|
|
@@ -7809,7 +7810,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7809
7810
|
expandIconHalfInner: y,
|
|
7810
7811
|
expandIconScale: x,
|
|
7811
7812
|
calc: v
|
|
7812
|
-
} = e, S = `${
|
|
7813
|
+
} = e, S = `${H(o)} ${c} ${a}`, E = v(h).sub(o).equal();
|
|
7813
7814
|
return {
|
|
7814
7815
|
[`${n}-wrapper`]: {
|
|
7815
7816
|
[`${n}-expand-icon-col`]: {
|
|
@@ -7833,7 +7834,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7833
7834
|
width: g,
|
|
7834
7835
|
height: g,
|
|
7835
7836
|
color: "inherit",
|
|
7836
|
-
lineHeight:
|
|
7837
|
+
lineHeight: H(g),
|
|
7837
7838
|
background: d,
|
|
7838
7839
|
border: S,
|
|
7839
7840
|
borderRadius: p,
|
|
@@ -7899,8 +7900,8 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7899
7900
|
// With fixed
|
|
7900
7901
|
[`${n}-expanded-row-fixed`]: {
|
|
7901
7902
|
position: "relative",
|
|
7902
|
-
margin: `${
|
|
7903
|
-
padding: `${
|
|
7903
|
+
margin: `${H(v(f).mul(-1).equal())} ${H(v(u).mul(-1).equal())}`,
|
|
7904
|
+
padding: `${H(f)} ${H(u)}`
|
|
7904
7905
|
}
|
|
7905
7906
|
}
|
|
7906
7907
|
};
|
|
@@ -7933,7 +7934,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7933
7934
|
boxShadowSecondary: I,
|
|
7934
7935
|
filterDropdownMenuBg: D,
|
|
7935
7936
|
calc: P
|
|
7936
|
-
} = e, k = `${r}-dropdown`, N = `${n}-filter-dropdown`, R = `${r}-tree`, $ = `${
|
|
7937
|
+
} = e, k = `${r}-dropdown`, N = `${n}-filter-dropdown`, R = `${r}-tree`, $ = `${H(s)} ${p} ${f}`;
|
|
7937
7938
|
return [
|
|
7938
7939
|
{
|
|
7939
7940
|
[`${n}-wrapper`]: {
|
|
@@ -7946,8 +7947,8 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7946
7947
|
display: "flex",
|
|
7947
7948
|
alignItems: "center",
|
|
7948
7949
|
marginBlock: P(c).mul(-1).equal(),
|
|
7949
|
-
marginInline: `${
|
|
7950
|
-
padding: `0 ${
|
|
7950
|
+
marginInline: `${H(c)} ${H(P(h).div(2).mul(-1).equal())}`,
|
|
7951
|
+
padding: `0 ${H(c)}`,
|
|
7951
7952
|
color: u,
|
|
7952
7953
|
fontSize: m,
|
|
7953
7954
|
borderRadius: C,
|
|
@@ -7984,7 +7985,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7984
7985
|
backgroundColor: D,
|
|
7985
7986
|
"&:empty::after": {
|
|
7986
7987
|
display: "block",
|
|
7987
|
-
padding: `${
|
|
7988
|
+
padding: `${H(a)} 0`,
|
|
7988
7989
|
color: S,
|
|
7989
7990
|
fontSize: m,
|
|
7990
7991
|
textAlign: "center",
|
|
@@ -7992,7 +7993,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
7992
7993
|
}
|
|
7993
7994
|
},
|
|
7994
7995
|
[`${N}-tree`]: {
|
|
7995
|
-
paddingBlock: `${
|
|
7996
|
+
paddingBlock: `${H(a)} 0`,
|
|
7996
7997
|
paddingInline: a,
|
|
7997
7998
|
[R]: {
|
|
7998
7999
|
padding: 0
|
|
@@ -8027,7 +8028,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8027
8028
|
[`${N}-btns`]: {
|
|
8028
8029
|
display: "flex",
|
|
8029
8030
|
justifyContent: "space-between",
|
|
8030
|
-
padding: `${
|
|
8031
|
+
padding: `${H(P(a).sub(s).equal())} ${H(a)}`,
|
|
8031
8032
|
overflow: "hidden",
|
|
8032
8033
|
borderTop: $
|
|
8033
8034
|
}
|
|
@@ -8178,7 +8179,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8178
8179
|
[`${n}-wrapper`]: {
|
|
8179
8180
|
// ========================== Pagination ==========================
|
|
8180
8181
|
[`${n}-pagination${r}-pagination`]: {
|
|
8181
|
-
margin: `${
|
|
8182
|
+
margin: `${H(t)} 0`
|
|
8182
8183
|
},
|
|
8183
8184
|
[`${n}-pagination`]: {
|
|
8184
8185
|
display: "flex",
|
|
@@ -8209,7 +8210,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8209
8210
|
[n]: {
|
|
8210
8211
|
// https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574
|
|
8211
8212
|
[`${n}-title, ${n}-header`]: {
|
|
8212
|
-
borderRadius: `${
|
|
8213
|
+
borderRadius: `${H(r)} ${H(r)} 0 0`
|
|
8213
8214
|
},
|
|
8214
8215
|
[`${n}-title + ${n}-container`]: {
|
|
8215
8216
|
borderStartStartRadius: 0,
|
|
@@ -8237,7 +8238,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8237
8238
|
}
|
|
8238
8239
|
},
|
|
8239
8240
|
"&-footer": {
|
|
8240
|
-
borderRadius: `0 0 ${
|
|
8241
|
+
borderRadius: `0 0 ${H(r)} ${H(r)}`
|
|
8241
8242
|
}
|
|
8242
8243
|
}
|
|
8243
8244
|
}
|
|
@@ -8349,7 +8350,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8349
8350
|
cursor: "pointer",
|
|
8350
8351
|
transition: `all ${e.motionDurationSlow}`,
|
|
8351
8352
|
marginInlineStart: "100%",
|
|
8352
|
-
paddingInlineStart:
|
|
8353
|
+
paddingInlineStart: H(h(m).div(4).equal()),
|
|
8353
8354
|
[t]: {
|
|
8354
8355
|
color: a,
|
|
8355
8356
|
fontSize: o,
|
|
@@ -8395,24 +8396,24 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8395
8396
|
tfoot > tr > th,
|
|
8396
8397
|
tfoot > tr > td
|
|
8397
8398
|
`]: {
|
|
8398
|
-
padding: `${
|
|
8399
|
+
padding: `${H(c)} ${H(a)}`
|
|
8399
8400
|
},
|
|
8400
8401
|
[`${n}-filter-trigger`]: {
|
|
8401
|
-
marginInlineEnd:
|
|
8402
|
+
marginInlineEnd: H(t(a).div(2).mul(-1).equal())
|
|
8402
8403
|
},
|
|
8403
8404
|
[`${n}-expanded-row-fixed`]: {
|
|
8404
|
-
margin: `${
|
|
8405
|
+
margin: `${H(t(c).mul(-1).equal())} ${H(t(a).mul(-1).equal())}`
|
|
8405
8406
|
},
|
|
8406
8407
|
[`${n}-tbody`]: {
|
|
8407
8408
|
// ========================= Nest Table ===========================
|
|
8408
8409
|
[`${n}-wrapper:only-child ${n}`]: {
|
|
8409
|
-
marginBlock:
|
|
8410
|
-
marginInline: `${
|
|
8410
|
+
marginBlock: H(t(c).mul(-1).equal()),
|
|
8411
|
+
marginInline: `${H(t(r).sub(a).equal())} ${H(t(a).mul(-1).equal())}`
|
|
8411
8412
|
}
|
|
8412
8413
|
},
|
|
8413
8414
|
// https://github.com/ant-design/ant-design/issues/35167
|
|
8414
8415
|
[`${n}-selection-extra`]: {
|
|
8415
|
-
paddingInlineStart:
|
|
8416
|
+
paddingInlineStart: H(t(a).div(4).equal())
|
|
8416
8417
|
}
|
|
8417
8418
|
}
|
|
8418
8419
|
});
|
|
@@ -8522,7 +8523,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8522
8523
|
lineWidth: s,
|
|
8523
8524
|
lineType: p,
|
|
8524
8525
|
tableBorderColor: f
|
|
8525
|
-
} = e, u = `${
|
|
8526
|
+
} = e, u = `${H(s)} ${p} ${f}`;
|
|
8526
8527
|
return {
|
|
8527
8528
|
[`${n}-wrapper`]: {
|
|
8528
8529
|
[`${n}-sticky`]: {
|
|
@@ -8534,7 +8535,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8534
8535
|
"&-scroll": {
|
|
8535
8536
|
position: "sticky",
|
|
8536
8537
|
bottom: 0,
|
|
8537
|
-
height: `${
|
|
8538
|
+
height: `${H(i)} !important`,
|
|
8538
8539
|
zIndex: a,
|
|
8539
8540
|
display: "flex",
|
|
8540
8541
|
alignItems: "center",
|
|
@@ -8566,7 +8567,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8566
8567
|
lineWidth: r,
|
|
8567
8568
|
tableBorderColor: t,
|
|
8568
8569
|
calc: o
|
|
8569
|
-
} = e, i = `${
|
|
8570
|
+
} = e, i = `${H(r)} ${e.lineType} ${t}`;
|
|
8570
8571
|
return {
|
|
8571
8572
|
[`${n}-wrapper`]: {
|
|
8572
8573
|
[`${n}-summary`]: {
|
|
@@ -8580,11 +8581,11 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8580
8581
|
}
|
|
8581
8582
|
},
|
|
8582
8583
|
[`div${n}-summary`]: {
|
|
8583
|
-
boxShadow: `0 ${
|
|
8584
|
+
boxShadow: `0 ${H(o(r).mul(-1).equal())} 0 ${t}`
|
|
8584
8585
|
}
|
|
8585
8586
|
}
|
|
8586
8587
|
};
|
|
8587
|
-
},
|
|
8588
|
+
}, zc = (e) => {
|
|
8588
8589
|
const {
|
|
8589
8590
|
componentCls: n,
|
|
8590
8591
|
motionDurationMid: r,
|
|
@@ -8592,7 +8593,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8592
8593
|
lineType: o,
|
|
8593
8594
|
tableBorderColor: i,
|
|
8594
8595
|
calc: c
|
|
8595
|
-
} = e, a = `${
|
|
8596
|
+
} = e, a = `${H(t)} ${o} ${i}`, d = `${n}-expanded-row-cell`;
|
|
8596
8597
|
return {
|
|
8597
8598
|
[`${n}-wrapper`]: {
|
|
8598
8599
|
// ========================== Row ==========================
|
|
@@ -8616,7 +8617,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8616
8617
|
position: "sticky",
|
|
8617
8618
|
insetInlineStart: 0,
|
|
8618
8619
|
overflow: "hidden",
|
|
8619
|
-
width: `calc(var(--virtual-width) - ${
|
|
8620
|
+
width: `calc(var(--virtual-width) - ${H(t)})`,
|
|
8620
8621
|
borderInlineEnd: "none"
|
|
8621
8622
|
}
|
|
8622
8623
|
}
|
|
@@ -8652,7 +8653,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8652
8653
|
}
|
|
8653
8654
|
}
|
|
8654
8655
|
};
|
|
8655
|
-
},
|
|
8656
|
+
}, Bc = (e) => {
|
|
8656
8657
|
const {
|
|
8657
8658
|
componentCls: n,
|
|
8658
8659
|
fontWeightStrong: r,
|
|
@@ -8672,7 +8673,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8672
8673
|
tableFooterTextColor: g,
|
|
8673
8674
|
tableFooterBg: y,
|
|
8674
8675
|
calc: x
|
|
8675
|
-
} = e, v = `${
|
|
8676
|
+
} = e, v = `${H(c)} ${a} ${d}`;
|
|
8676
8677
|
return {
|
|
8677
8678
|
[`${n}-wrapper`]: Object.assign(Object.assign({
|
|
8678
8679
|
clear: "both",
|
|
@@ -8681,7 +8682,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8681
8682
|
[n]: Object.assign(Object.assign({}, Dn(e)), {
|
|
8682
8683
|
fontSize: s,
|
|
8683
8684
|
background: p,
|
|
8684
|
-
borderRadius: `${
|
|
8685
|
+
borderRadius: `${H(f)} ${H(f)} 0 0`,
|
|
8685
8686
|
// https://github.com/ant-design/ant-design/issues/47486
|
|
8686
8687
|
scrollbarColor: `${e.tableScrollThumbBg} ${e.tableScrollBg}`
|
|
8687
8688
|
}),
|
|
@@ -8689,7 +8690,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8689
8690
|
table: {
|
|
8690
8691
|
width: "100%",
|
|
8691
8692
|
textAlign: "start",
|
|
8692
|
-
borderRadius: `${
|
|
8693
|
+
borderRadius: `${H(f)} ${H(f)} 0 0`,
|
|
8693
8694
|
borderCollapse: "separate",
|
|
8694
8695
|
borderSpacing: 0
|
|
8695
8696
|
},
|
|
@@ -8703,12 +8704,12 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8703
8704
|
tfoot > tr > td
|
|
8704
8705
|
`]: {
|
|
8705
8706
|
position: "relative",
|
|
8706
|
-
padding: `${
|
|
8707
|
+
padding: `${H(t)} ${H(o)}`,
|
|
8707
8708
|
overflowWrap: "break-word"
|
|
8708
8709
|
},
|
|
8709
8710
|
// ============================ Title =============================
|
|
8710
8711
|
[`${n}-title`]: {
|
|
8711
|
-
padding: `${
|
|
8712
|
+
padding: `${H(t)} ${H(o)}`
|
|
8712
8713
|
},
|
|
8713
8714
|
// ============================ Header ============================
|
|
8714
8715
|
[`${n}-thead`]: {
|
|
@@ -8751,9 +8752,9 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8751
8752
|
> ${n}-expanded-row-fixed > ${n}-wrapper:only-child
|
|
8752
8753
|
`]: {
|
|
8753
8754
|
[n]: {
|
|
8754
|
-
marginBlock:
|
|
8755
|
-
marginInline: `${
|
|
8756
|
-
${
|
|
8755
|
+
marginBlock: H(x(t).mul(-1).equal()),
|
|
8756
|
+
marginInline: `${H(x(i).sub(o).equal())}
|
|
8757
|
+
${H(x(o).mul(-1).equal())}`,
|
|
8757
8758
|
[`${n}-tbody > tr:last-child > td`]: {
|
|
8758
8759
|
borderBottomWidth: 0,
|
|
8759
8760
|
"&:first-child, &:last-child": {
|
|
@@ -8776,7 +8777,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8776
8777
|
},
|
|
8777
8778
|
// ============================ Footer ============================
|
|
8778
8779
|
[`${n}-footer`]: {
|
|
8779
|
-
padding: `${
|
|
8780
|
+
padding: `${H(t)} ${H(o)}`,
|
|
8780
8781
|
color: g,
|
|
8781
8782
|
background: y
|
|
8782
8783
|
}
|
|
@@ -8846,7 +8847,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8846
8847
|
expandIconSize: N,
|
|
8847
8848
|
expandIconScale: w / N
|
|
8848
8849
|
};
|
|
8849
|
-
}, Mo = 2,
|
|
8850
|
+
}, Mo = 2, jc = yt("Table", (e) => {
|
|
8850
8851
|
const {
|
|
8851
8852
|
colorTextHeading: n,
|
|
8852
8853
|
colorSplit: r,
|
|
@@ -8881,7 +8882,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8881
8882
|
expandIconBg: $,
|
|
8882
8883
|
selectionColumnWidth: T,
|
|
8883
8884
|
stickyScrollBarBg: K,
|
|
8884
|
-
calc:
|
|
8885
|
+
calc: z
|
|
8885
8886
|
} = e, M = bt(e, {
|
|
8886
8887
|
tableFontSize: b,
|
|
8887
8888
|
tableBg: t,
|
|
@@ -8908,14 +8909,14 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8908
8909
|
tableSelectedRowBg: f,
|
|
8909
8910
|
tableSelectedRowHoverBg: u,
|
|
8910
8911
|
zIndexTableFixed: Mo,
|
|
8911
|
-
zIndexTableSticky:
|
|
8912
|
+
zIndexTableSticky: z(Mo).add(1).equal({
|
|
8912
8913
|
unit: !1
|
|
8913
8914
|
}),
|
|
8914
8915
|
tableFontSizeMiddle: I,
|
|
8915
8916
|
tableFontSizeSmall: D,
|
|
8916
8917
|
tableSelectionColumnWidth: T,
|
|
8917
8918
|
tableExpandIconBg: $,
|
|
8918
|
-
tableExpandColumnWidth:
|
|
8919
|
+
tableExpandColumnWidth: z(o).add(z(e.padding).mul(2)).equal(),
|
|
8919
8920
|
tableExpandedRowBg: m,
|
|
8920
8921
|
// Dropdown
|
|
8921
8922
|
tableFilterDropdownWidth: 120,
|
|
@@ -8928,12 +8929,12 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8928
8929
|
tableScrollThumbBgHover: n,
|
|
8929
8930
|
tableScrollBg: r
|
|
8930
8931
|
});
|
|
8931
|
-
return [
|
|
8932
|
+
return [Bc(M), Ic(M), _o(M), _c(M), Rc(M), wc(M), Pc(M), Oc(M), _o(M), Nc(M), Tc(M), kc(M), Mc(M), $c(M), Kc(M), Dc(M), zc(M)];
|
|
8932
8933
|
}, Lc, {
|
|
8933
8934
|
unitless: {
|
|
8934
8935
|
expandIconScale: !0
|
|
8935
8936
|
}
|
|
8936
|
-
}),
|
|
8937
|
+
}), Hc = [], Ac = (e, n) => {
|
|
8937
8938
|
var r, t;
|
|
8938
8939
|
const {
|
|
8939
8940
|
prefixCls: o,
|
|
@@ -8968,55 +8969,55 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
8968
8969
|
virtual: $
|
|
8969
8970
|
} = e, T = Fn("Table");
|
|
8970
8971
|
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && T(!(typeof h == "function" && h.length > 1), "usage", "`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");
|
|
8971
|
-
const K = l.useMemo(() => g || Ir(y), [g, y]),
|
|
8972
|
+
const K = l.useMemo(() => g || Ir(y), [g, y]), z = l.useMemo(() => K.some((oe) => oe.responsive), [K]), M = Ao(z), F = l.useMemo(() => {
|
|
8972
8973
|
const oe = new Set(Object.keys(M).filter((Se) => M[Se]));
|
|
8973
8974
|
return K.filter((Se) => !Se.responsive || Se.responsive.some((De) => oe.has(De)));
|
|
8974
|
-
}, [K, M]), Z =
|
|
8975
|
+
}, [K, M]), Z = jo(e, ["className", "style", "columns"]), {
|
|
8975
8976
|
locale: Q = xi,
|
|
8976
8977
|
direction: ae,
|
|
8977
8978
|
table: te,
|
|
8978
8979
|
renderEmpty: re,
|
|
8979
8980
|
getPrefixCls: ve,
|
|
8980
8981
|
getPopupContainer: ee
|
|
8981
|
-
} = l.useContext(Cn), ne = Cr(d), Ne = Object.assign(Object.assign({}, Q.Table), N), Re = f ||
|
|
8982
|
+
} = l.useContext(Cn), ne = Cr(d), Ne = Object.assign(Object.assign({}, Q.Table), N), Re = f || Hc, A = ve("table", o), Y = ve("dropdown", p), [, L] = gr(), V = br(A), [ie, ce, J] = jc(A, V), ye = Object.assign(Object.assign({
|
|
8982
8983
|
childrenColumnName: x,
|
|
8983
8984
|
expandIconColumnIndex: I
|
|
8984
8985
|
}, O), {
|
|
8985
8986
|
expandIcon: (r = O == null ? void 0 : O.expandIcon) !== null && r !== void 0 ? r : (t = te == null ? void 0 : te.expandable) === null || t === void 0 ? void 0 : t.expandIcon
|
|
8986
8987
|
}), {
|
|
8987
8988
|
childrenColumnName: Ke = "children"
|
|
8988
|
-
} = ye, ke = l.useMemo(() => Re.some((oe) => oe == null ? void 0 : oe[Ke]) ? "nest" : b || O != null && O.expandedRowRender ? "row" : null, [Re]),
|
|
8989
|
+
} = ye, ke = l.useMemo(() => Re.some((oe) => oe == null ? void 0 : oe[Ke]) ? "nest" : b || O != null && O.expandedRowRender ? "row" : null, [Re]), B = {
|
|
8989
8990
|
body: l.useRef(null)
|
|
8990
|
-
}, W =
|
|
8991
|
+
}, W = Hd(A), se = l.useRef(null), ge = l.useRef(null);
|
|
8991
8992
|
Ld(n, () => Object.assign(Object.assign({}, ge.current), {
|
|
8992
8993
|
nativeElement: se.current
|
|
8993
8994
|
}));
|
|
8994
|
-
const ue = l.useMemo(() => typeof h == "function" ? h : (oe) => oe == null ? void 0 : oe[h], [h]), [_e] = gc(Re, Ke, ue), we = {},
|
|
8995
|
+
const ue = l.useMemo(() => typeof h == "function" ? h : (oe) => oe == null ? void 0 : oe[h], [h]), [_e] = gc(Re, Ke, ue), we = {}, ze = function(oe, Se) {
|
|
8995
8996
|
let De = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
8996
|
-
var
|
|
8997
|
+
var He, Le, Ye, cn;
|
|
8997
8998
|
const Ge = Object.assign(Object.assign({}, we), oe);
|
|
8998
|
-
De && ((
|
|
8999
|
-
getContainer: () =>
|
|
8999
|
+
De && ((He = we.resetPagination) === null || He === void 0 || He.call(we), !((Le = Ge.pagination) === null || Le === void 0) && Le.current && (Ge.pagination.current = 1), u && ((Ye = u.onChange) === null || Ye === void 0 || Ye.call(u, 1, (cn = Ge.pagination) === null || cn === void 0 ? void 0 : cn.pageSize))), P && P.scrollToFirstRowOnChange !== !1 && B.body.current && nl(0, {
|
|
9000
|
+
getContainer: () => B.body.current
|
|
9000
9001
|
}), v == null || v(Ge.pagination, Ge.filters, Ge.sorter, {
|
|
9001
9002
|
currentDataSource: cr(fr(Re, Ge.sorterStates, Ke), Ge.filterStates, Ke),
|
|
9002
9003
|
action: Se
|
|
9003
9004
|
});
|
|
9004
9005
|
}, Oe = (oe, Se) => {
|
|
9005
|
-
|
|
9006
|
+
ze({
|
|
9006
9007
|
sorter: oe,
|
|
9007
9008
|
sorterStates: Se
|
|
9008
9009
|
}, "sort", !1);
|
|
9009
|
-
}, [G,
|
|
9010
|
+
}, [G, j, pe, Me] = Cc({
|
|
9010
9011
|
prefixCls: A,
|
|
9011
9012
|
mergedColumns: F,
|
|
9012
9013
|
onSorterChange: Oe,
|
|
9013
9014
|
sortDirections: k || ["ascend", "descend"],
|
|
9014
9015
|
tableLocale: Ne,
|
|
9015
9016
|
showSorterTooltip: R
|
|
9016
|
-
}), Ie = l.useMemo(() => fr(Re,
|
|
9017
|
-
we.sorter = Me(), we.sorterStates =
|
|
9017
|
+
}), Ie = l.useMemo(() => fr(Re, j, Ke), [Re, j]);
|
|
9018
|
+
we.sorter = Me(), we.sorterStates = j;
|
|
9018
9019
|
const le = (oe, Se) => {
|
|
9019
|
-
|
|
9020
|
+
ze({
|
|
9020
9021
|
filters: oe,
|
|
9021
9022
|
filterStates: Se
|
|
9022
9023
|
}, "filter", !0);
|
|
@@ -9028,7 +9029,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9028
9029
|
onFilterChange: le,
|
|
9029
9030
|
getPopupContainer: S || ee,
|
|
9030
9031
|
rootClassName: U(c, V)
|
|
9031
|
-
}),
|
|
9032
|
+
}), Be = cr(Ie, he, Ke);
|
|
9032
9033
|
we.filters = Ve, we.filterStates = he;
|
|
9033
9034
|
const Ue = l.useMemo(() => {
|
|
9034
9035
|
const oe = {};
|
|
@@ -9038,26 +9039,26 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9038
9039
|
filters: oe
|
|
9039
9040
|
});
|
|
9040
9041
|
}, [pe, Ve]), [gn] = xc(Ue), hn = (oe, Se) => {
|
|
9041
|
-
|
|
9042
|
+
ze({
|
|
9042
9043
|
pagination: Object.assign(Object.assign({}, we.pagination), {
|
|
9043
9044
|
current: oe,
|
|
9044
9045
|
pageSize: Se
|
|
9045
9046
|
})
|
|
9046
9047
|
}, "paginate");
|
|
9047
|
-
}, [Te, Mn] = yc(
|
|
9048
|
+
}, [Te, Mn] = yc(Be.length, hn, u);
|
|
9048
9049
|
we.pagination = u === !1 ? {} : vc(Te, u), we.resetPagination = Mn;
|
|
9049
9050
|
const Je = l.useMemo(() => {
|
|
9050
9051
|
if (u === !1 || !Te.pageSize)
|
|
9051
|
-
return
|
|
9052
|
+
return Be;
|
|
9052
9053
|
const {
|
|
9053
9054
|
current: oe = 1,
|
|
9054
9055
|
total: Se,
|
|
9055
9056
|
pageSize: De = Qa
|
|
9056
9057
|
} = Te;
|
|
9057
|
-
return process.env.NODE_ENV !== "production" && T(oe > 0, "usage", "`current` should be positive number."),
|
|
9058
|
-
}, [!!u,
|
|
9058
|
+
return process.env.NODE_ENV !== "production" && T(oe > 0, "usage", "`current` should be positive number."), Be.length < Se ? Be.length > De ? (process.env.NODE_ENV !== "production" && T(!1, "usage", "`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."), Be.slice((oe - 1) * De, oe * De)) : Be : Be.slice((oe - 1) * De, oe * De);
|
|
9059
|
+
}, [!!u, Be, Te == null ? void 0 : Te.current, Te == null ? void 0 : Te.pageSize, Te == null ? void 0 : Te.total]), [ln, rn] = zd({
|
|
9059
9060
|
prefixCls: A,
|
|
9060
|
-
data:
|
|
9061
|
+
data: Be,
|
|
9061
9062
|
pageData: Je,
|
|
9062
9063
|
getRowKey: ue,
|
|
9063
9064
|
getRecordByKey: _e,
|
|
@@ -9066,12 +9067,12 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9066
9067
|
locale: Ne,
|
|
9067
9068
|
getPopupContainer: S || ee
|
|
9068
9069
|
}, m), Qe = (oe, Se, De) => {
|
|
9069
|
-
let
|
|
9070
|
-
return typeof C == "function" ?
|
|
9070
|
+
let He;
|
|
9071
|
+
return typeof C == "function" ? He = U(C(oe, Se, De)) : He = U(C), U({
|
|
9071
9072
|
[`${A}-row-selected`]: rn.has(ue(oe, Se))
|
|
9072
|
-
},
|
|
9073
|
+
}, He);
|
|
9073
9074
|
};
|
|
9074
|
-
ye.__PARENT_RENDER_ICON__ = ye.expandIcon, ye.expandIcon = ye.expandIcon || w ||
|
|
9075
|
+
ye.__PARENT_RENDER_ICON__ = ye.expandIcon, ye.expandIcon = ye.expandIcon || w || jd(Ne), ke === "nest" && ye.expandIconColumnIndex === void 0 ? ye.expandIconColumnIndex = m ? 1 : 0 : ye.expandIconColumnIndex > 0 && m && (ye.expandIconColumnIndex -= 1), typeof ye.indentSize != "number" && (ye.indentSize = typeof D == "number" ? D : 15);
|
|
9075
9076
|
const We = l.useCallback((oe) => gn(ln(Pe(G(oe)))), [G, Pe, ln]);
|
|
9076
9077
|
let on, xn;
|
|
9077
9078
|
if (u !== !1 && (Te != null && Te.total)) {
|
|
@@ -9081,10 +9082,10 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9081
9082
|
className: U(`${A}-pagination ${A}-pagination-${Le}`, Te.className),
|
|
9082
9083
|
size: oe
|
|
9083
9084
|
})), De = ae === "rtl" ? "left" : "right", {
|
|
9084
|
-
position:
|
|
9085
|
+
position: He
|
|
9085
9086
|
} = Te;
|
|
9086
|
-
if (
|
|
9087
|
-
const Le =
|
|
9087
|
+
if (He !== null && Array.isArray(He)) {
|
|
9088
|
+
const Le = He.find((Ge) => Ge.includes("top")), Ye = He.find((Ge) => Ge.includes("bottom")), cn = He.every((Ge) => `${Ge}` == "none");
|
|
9088
9089
|
!Le && !Ye && !cn && (xn = Se(De)), Le && (on = Se(Le.toLowerCase().replace("top", ""))), Ye && (xn = Se(Ye.toLowerCase().replace("bottom", "")));
|
|
9089
9090
|
} else
|
|
9090
9091
|
xn = Se(De);
|
|
@@ -9097,14 +9098,14 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9097
9098
|
}, E));
|
|
9098
9099
|
const dn = U(J, V, `${A}-wrapper`, te == null ? void 0 : te.className, {
|
|
9099
9100
|
[`${A}-wrapper-rtl`]: ae === "rtl"
|
|
9100
|
-
}, i, c, ce), Fe = Object.assign(Object.assign({}, te == null ? void 0 : te.style), a), Xe = typeof (N == null ? void 0 : N.emptyText) < "u" ? N.emptyText : (re == null ? void 0 : re("Table")) || /* @__PURE__ */ l.createElement(
|
|
9101
|
+
}, i, c, ce), Fe = Object.assign(Object.assign({}, te == null ? void 0 : te.style), a), Xe = typeof (N == null ? void 0 : N.emptyText) < "u" ? N.emptyText : (re == null ? void 0 : re("Table")) || /* @__PURE__ */ l.createElement($i, {
|
|
9101
9102
|
componentName: "Table"
|
|
9102
9103
|
}), On = $ ? Ec : Sc, Vn = {}, lt = l.useMemo(() => {
|
|
9103
9104
|
const {
|
|
9104
9105
|
fontSize: oe,
|
|
9105
9106
|
lineHeight: Se,
|
|
9106
9107
|
lineWidth: De,
|
|
9107
|
-
padding:
|
|
9108
|
+
padding: He,
|
|
9108
9109
|
paddingXS: Le,
|
|
9109
9110
|
paddingSM: Ye
|
|
9110
9111
|
} = L, cn = Math.floor(oe * Se);
|
|
@@ -9114,7 +9115,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9114
9115
|
case "small":
|
|
9115
9116
|
return Le * 2 + cn + De;
|
|
9116
9117
|
default:
|
|
9117
|
-
return
|
|
9118
|
+
return He * 2 + cn + De;
|
|
9118
9119
|
}
|
|
9119
9120
|
}, [L, ne]);
|
|
9120
9121
|
return $ && (Vn.listItemHeight = lt), ie(/* @__PURE__ */ l.createElement("div", {
|
|
@@ -9141,7 +9142,7 @@ const Rt = "ascend", Yt = "descend", Kt = (e) => typeof e.sorter == "object" &&
|
|
|
9141
9142
|
emptyText: Xe,
|
|
9142
9143
|
// Internal
|
|
9143
9144
|
internalHooks: St,
|
|
9144
|
-
internalRefs:
|
|
9145
|
+
internalRefs: B,
|
|
9145
9146
|
transformColumns: We,
|
|
9146
9147
|
getContainerWidth: W
|
|
9147
9148
|
})), xn)));
|
|
@@ -9183,13 +9184,13 @@ const Wc = ({ colors: e, borderRadius: n, sizing: r }) => `
|
|
|
9183
9184
|
font-family: 'Inter', sans-serif;
|
|
9184
9185
|
font-size: 14px;
|
|
9185
9186
|
}
|
|
9186
|
-
`,
|
|
9187
|
+
`, Iu = oi(Nn)`
|
|
9187
9188
|
${({ theme: e }) => Wc(e)}
|
|
9188
9189
|
`;
|
|
9189
9190
|
export {
|
|
9190
9191
|
Nn as F,
|
|
9191
9192
|
Er as S,
|
|
9192
|
-
|
|
9193
|
-
|
|
9193
|
+
Iu as T,
|
|
9194
|
+
zr as a,
|
|
9194
9195
|
Wc as g
|
|
9195
9196
|
};
|