bitz-react-admin-ui 2.5.9 → 2.6.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/dist/assets/iconfont/IconChenggong.mjs +25 -4
- package/dist/assets/iconfont/IconClose.mjs +24 -3
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
- package/dist/assets/iconfont/IconCuowu.mjs +23 -2
- package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
- package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
- package/dist/assets/iconfont/IconFabu.mjs +35 -5
- package/dist/assets/iconfont/IconFanhui.mjs +25 -4
- package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
- package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
- package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
- package/dist/assets/iconfont/IconIcon21.mjs +25 -4
- package/dist/assets/iconfont/IconJincoude.mjs +25 -4
- package/dist/assets/iconfont/IconJinggao.mjs +25 -4
- package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
- package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
- package/dist/assets/iconfont/IconMore.mjs +41 -4
- package/dist/assets/iconfont/IconShanchu.mjs +27 -6
- package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
- package/dist/assets/iconfont/IconSousuo.mjs +27 -6
- package/dist/assets/iconfont/IconTejincou.mjs +25 -4
- package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
- package/dist/assets/iconfont/IconTishi1.mjs +27 -6
- package/dist/assets/iconfont/IconTuodong.mjs +28 -7
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
- package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
- package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
- package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
- package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +41 -8
- package/dist/components/BitzAddressBook/index.mjs +122 -35
- package/dist/components/BitzAppPage/index.mjs +18 -4
- package/dist/components/BitzAppRefresh/index.mjs +27 -15
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +23 -9
- package/dist/components/BitzCalendar/index.mjs +52 -19
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
- package/dist/components/BitzCascader/index.mjs +6 -2
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +3 -1
- package/dist/components/BitzConfigProvider/index.mjs +12 -8
- package/dist/components/BitzConfirmModal/index.mjs +24 -1
- package/dist/components/BitzDescriptions/index.mjs +11 -1
- package/dist/components/BitzDrawer/index.mjs +17 -2
- package/dist/components/BitzEmpty/index.mjs +6 -2
- package/dist/components/BitzException/index.mjs +6 -1
- package/dist/components/BitzFloatLayout/index.mjs +10 -1
- package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
- package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
- package/dist/components/BitzFuiCalendar/index.mjs +7 -1
- package/dist/components/BitzFullScreen/index.mjs +9 -6
- package/dist/components/BitzHighlight/Child.mjs +23 -9
- package/dist/components/BitzHighlight/Highlight.mjs +26 -5
- package/dist/components/BitzHighlight/chunks.mjs +20 -17
- package/dist/components/BitzHighlight/style.mjs +4 -1
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +12 -5
- package/dist/components/BitzLanguageTabs/index.mjs +14 -3
- package/dist/components/BitzLazyLoad/index.mjs +7 -1
- package/dist/components/BitzList/List.mjs +17 -3
- package/dist/components/BitzList/LoadMore.mjs +29 -20
- package/dist/components/BitzLoadMore/index.mjs +34 -14
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
- package/dist/components/BitzMeetingTime/index.mjs +10 -6
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +24 -11
- package/dist/components/BitzNoData/index.mjs +4 -1
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
- package/dist/components/BitzPageContainer/index.mjs +107 -46
- package/dist/components/BitzPageHeader/index.mjs +89 -21
- package/dist/components/BitzPagination/index.mjs +71 -22
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
- package/dist/components/BitzQRCode/index.mjs +6 -1
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
- package/dist/components/BitzQueryFilter/index.mjs +69 -20
- package/dist/components/BitzRefresh/index.mjs +5 -1
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +24 -30
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +31 -1
- package/dist/components/BitzSwitch/index.mjs +7 -2
- package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
- package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
- package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
- package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
- package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
- package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
- package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
- package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
- package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
- package/dist/components/BitzTable/Store/index.mjs +170 -133
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
- package/dist/components/BitzTable/Store/utils/index.mjs +48 -38
- package/dist/components/BitzTable/SubTable/index.mjs +91 -43
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +57 -40
- package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
- package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
- package/dist/components/BitzTable/Table/index.mjs +476 -213
- package/dist/components/BitzTable/Table/style.mjs +10 -1
- package/dist/components/BitzTable/Table/utils.mjs +11 -4
- package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +83 -27
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +278 -150
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +129 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +97 -43
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +38 -9
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +37 -8
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
- package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
- package/dist/components/BitzTableOperations/index.mjs +13 -3
- package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
- package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
- package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
- package/dist/components/BitzTableSelect/index.mjs +65 -14
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +41 -14
- package/dist/components/BitzText/utils.mjs +3 -3
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +11 -1
- package/dist/components/BitzTimer/Form.mjs +32 -11
- package/dist/components/BitzTimer/Timer.mjs +76 -38
- package/dist/components/BitzTimer/index.mjs +66 -43
- package/dist/components/BitzToast/Toast/index.mjs +28 -10
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTooltip/index.mjs +47 -17
- package/dist/components/BitzTooltip/style.mjs +9 -6
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- package/dist/components/BitzTree/index.mjs +4 -1
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +81 -43
- package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
- package/dist/components/BitzWebAppModal/index.mjs +6 -3
- package/dist/hooks/use-event-listener.mjs +11 -2
- package/dist/hooks/use-lock-fn.mjs +13 -10
- package/dist/hooks/use-scroll-parent.mjs +16 -14
- package/dist/hooks/useEvent.mjs +7 -4
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useDebounceFn/index.mjs +29 -0
- package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/lodash-polyfill.mjs +7 -0
- package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +37 -34
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +27 -5
- package/dist/utils/create.mjs +7 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
1
|
+
import { j as C } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as L, useRef as ee, useMemo as o, useCallback as j } from "react";
|
|
3
3
|
import { Table as te } from "antd";
|
|
4
4
|
import ne from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
-
import { BitzTableContext as
|
|
5
|
+
import { BitzTableContext as re, toolCols as oe } from "../Store/index.mjs";
|
|
6
6
|
import se from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
7
7
|
import ae from "../../BitzTheme/index.mjs";
|
|
8
8
|
import le from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
@@ -11,45 +11,68 @@ import ie from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/local
|
|
|
11
11
|
import { getColumnsWithTool as ce, loopBuildSkeleton as ue } from "../Table/utils.mjs";
|
|
12
12
|
import { tablePaddingInline as me } from "../../BitzConfigProvider/context.mjs";
|
|
13
13
|
import { ConfigContext as fe } from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/context.mjs";
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
function Te({
|
|
15
|
+
dataSource: u,
|
|
16
|
+
columns: g,
|
|
17
|
+
loading: l,
|
|
18
|
+
scroll: s,
|
|
19
|
+
components: f,
|
|
20
|
+
expandable: i,
|
|
21
|
+
rowSelection: m,
|
|
22
|
+
...a
|
|
23
|
+
}) {
|
|
24
|
+
var p, W, E;
|
|
25
|
+
const { token: x } = ae.useToken(), K = ((p = x.Table) == null ? void 0 : p.cellPaddingInline) ?? me, { showColumnBorder: M, rowHoverable: P } = L(re), h = ee(null), w = se((W = h.current) == null ? void 0 : W.nativeElement), q = o(() => {
|
|
17
26
|
let e = (s == null ? void 0 : s.x) ?? 1e3;
|
|
18
27
|
return s != null && s.x ? { x: e, y: s.y || 400 } : s != null && s.y ? { x: e, y: s.y } : { x: e, y: 400 };
|
|
19
28
|
}, [s]), A = () => {
|
|
20
|
-
var
|
|
21
|
-
const e = (n = (
|
|
29
|
+
var r, n;
|
|
30
|
+
const e = (n = (r = h.current) == null ? void 0 : r.nativeElement) == null ? void 0 : n.querySelectorAll(
|
|
31
|
+
"& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body > table > .ant-table-tbody > tr:not(.ant-table-measure-row, .ant-table-expanded-row)"
|
|
32
|
+
), t = [];
|
|
22
33
|
if (e == null || e.forEach((c) => {
|
|
23
|
-
var
|
|
24
|
-
t.push(
|
|
34
|
+
var b;
|
|
35
|
+
t.push(
|
|
36
|
+
((b = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
|
|
37
|
+
);
|
|
25
38
|
}), t.length)
|
|
26
|
-
return Math.ceil(Math.max(...t)) +
|
|
27
|
-
},
|
|
28
|
-
var
|
|
29
|
-
const e = (
|
|
39
|
+
return Math.ceil(Math.max(...t)) + K * 2;
|
|
40
|
+
}, $ = () => {
|
|
41
|
+
var b, I, v, N, D;
|
|
42
|
+
const e = (I = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : I.querySelector(
|
|
43
|
+
".ant-table-body"
|
|
44
|
+
), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (D = (N = (v = h.current) == null ? void 0 : v.nativeElement) == null ? void 0 : N.querySelector(
|
|
45
|
+
".ant-table-cell-scrollbar"
|
|
46
|
+
)) == null ? void 0 : D.offsetWidth;
|
|
30
47
|
return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
|
|
31
|
-
}, { hasScrollBar: R, scrollbarSize: k } =
|
|
32
|
-
const { hasScrollBar: e, scrollbarSize: t } =
|
|
48
|
+
}, { hasScrollBar: R, scrollbarSize: k } = o(() => {
|
|
49
|
+
const { hasScrollBar: e, scrollbarSize: t } = $();
|
|
33
50
|
return {
|
|
34
51
|
hasScrollBar: e,
|
|
35
52
|
scrollbarSize: t
|
|
36
53
|
};
|
|
37
|
-
}, [
|
|
38
|
-
const e = g ?? [],
|
|
54
|
+
}, [w == null ? void 0 : w.height]), d = o(() => {
|
|
55
|
+
const e = g ?? [], r = e.filter((n) => !oe.includes(n)).map((n) => ({
|
|
39
56
|
...n,
|
|
40
57
|
width: n.useMaxWidth ? A() ?? n.width : n.width
|
|
41
58
|
}));
|
|
42
|
-
return ce(
|
|
43
|
-
|
|
59
|
+
return ce(
|
|
60
|
+
e,
|
|
61
|
+
r,
|
|
62
|
+
!1,
|
|
63
|
+
!!m,
|
|
64
|
+
!!i
|
|
65
|
+
);
|
|
66
|
+
}, [g]), S = o(() => ue(d), [d]), F = o(() => l ? S : d, [l, d, S]), z = o(() => {
|
|
44
67
|
const e = (u == null ? void 0 : u.length) ?? 0, t = e > 4 ? e >= 8 ? 8 : e : 4;
|
|
45
68
|
return Array.from({ length: t }).map((n, c) => ({
|
|
46
69
|
key: `${Date.now()}${c}`
|
|
47
70
|
}));
|
|
48
|
-
}, [u]),
|
|
71
|
+
}, [u]), G = o(() => l ? z : u, [l, u, z]), { table: y, locale: H = ie } = L(fe), _ = { ...H.Table }, J = ((E = y == null ? void 0 : y.expandable) == null ? void 0 : E.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(_), B = o(() => {
|
|
49
72
|
if (i)
|
|
50
73
|
return {
|
|
51
74
|
...i,
|
|
52
|
-
expandedRowRender: () =>
|
|
75
|
+
expandedRowRender: () => /* @__PURE__ */ C.jsx(C.Fragment, {}),
|
|
53
76
|
expandIcon: (e) => {
|
|
54
77
|
const t = J(e);
|
|
55
78
|
return {
|
|
@@ -65,42 +88,67 @@ function ze({ dataSource: u, columns: g, loading: l, scroll: s, components: f, e
|
|
|
65
88
|
};
|
|
66
89
|
}
|
|
67
90
|
};
|
|
68
|
-
}, [i]), O =
|
|
91
|
+
}, [i]), O = o(() => l ? B : i, [l, i, B]), T = o(() => {
|
|
69
92
|
if (m)
|
|
70
93
|
return {
|
|
71
94
|
...m,
|
|
72
95
|
selectedRowKeys: [],
|
|
73
96
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
74
97
|
};
|
|
75
|
-
}, [m]), Q =
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
98
|
+
}, [m]), Q = o(() => l ? T : m, [l, m, T]), U = o(() => l ? void 0 : a.rowKey, [l, a.rowKey]), V = j(
|
|
99
|
+
(e, t) => {
|
|
100
|
+
var n;
|
|
101
|
+
if (!a.onRow)
|
|
102
|
+
return {};
|
|
103
|
+
const r = (n = a.onRow) == null ? void 0 : n.call(a, e, t);
|
|
104
|
+
return r.onClick && (r.className = "rowPointerCursor"), r;
|
|
105
|
+
},
|
|
106
|
+
[a.onRow]
|
|
107
|
+
), X = j(
|
|
108
|
+
(e, t, r) => {
|
|
109
|
+
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
110
|
+
if (a.rowClassName) {
|
|
111
|
+
const c = a.rowClassName(e, t, r);
|
|
112
|
+
return ne(n, c);
|
|
113
|
+
}
|
|
114
|
+
return n;
|
|
115
|
+
},
|
|
116
|
+
[a.rowClassName]
|
|
117
|
+
), Y = (e) => {
|
|
118
|
+
var r;
|
|
90
119
|
const t = { ...e };
|
|
91
|
-
return t.className.includes("ant-table-cell-fix-right") && !R && ((
|
|
120
|
+
return t.className.includes("ant-table-cell-fix-right") && !R && ((r = t.style) != null && r.right) && (t.style = {
|
|
92
121
|
...t.style,
|
|
93
122
|
right: t.style.right - (k || 0)
|
|
94
|
-
}),
|
|
95
|
-
}, Z =
|
|
123
|
+
}), /* @__PURE__ */ C.jsx("th", { ...t });
|
|
124
|
+
}, Z = o(() => ({
|
|
96
125
|
...f,
|
|
97
126
|
header: {
|
|
98
127
|
...f == null ? void 0 : f.header,
|
|
99
128
|
cell: Y
|
|
100
129
|
}
|
|
101
130
|
}), [f, R, k]);
|
|
102
|
-
return
|
|
131
|
+
return /* @__PURE__ */ C.jsx(
|
|
132
|
+
te,
|
|
133
|
+
{
|
|
134
|
+
...a,
|
|
135
|
+
bordered: M,
|
|
136
|
+
columns: F,
|
|
137
|
+
dataSource: G,
|
|
138
|
+
loading: !1,
|
|
139
|
+
pagination: !1,
|
|
140
|
+
scroll: q,
|
|
141
|
+
expandable: O,
|
|
142
|
+
rowSelection: Q,
|
|
143
|
+
onRow: V,
|
|
144
|
+
rowClassName: X,
|
|
145
|
+
components: Z,
|
|
146
|
+
rowKey: U,
|
|
147
|
+
rowHoverable: P,
|
|
148
|
+
ref: h
|
|
149
|
+
}
|
|
150
|
+
);
|
|
103
151
|
}
|
|
104
152
|
export {
|
|
105
|
-
|
|
153
|
+
Te as default
|
|
106
154
|
};
|
|
@@ -1,54 +1,71 @@
|
|
|
1
1
|
import { j as a } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { Resizable as v } from "../../../node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs";
|
|
3
|
-
import { useState as E, useMemo as b, useRef as
|
|
4
|
-
import
|
|
5
|
-
const d = 56,
|
|
6
|
-
const { hasScrollBar:
|
|
7
|
-
var t,
|
|
8
|
-
const e = { ...
|
|
9
|
-
return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !
|
|
10
|
-
}, [p]), c =
|
|
3
|
+
import { useState as E, useMemo as b, useRef as i } from "react";
|
|
4
|
+
import L from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
+
const d = 56, C = (p) => {
|
|
6
|
+
const { hasScrollBar: g, scrollbarSize: y, onResize: x, width: n, datagridref: S, stretchref: u, ...j } = p, [D, m] = E(!1), R = b(() => {
|
|
7
|
+
var t, z;
|
|
8
|
+
const e = { ...j };
|
|
9
|
+
return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !g && ((z = e.style) != null && z.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (y || 0)), e;
|
|
10
|
+
}, [p]), c = i(0), f = i(0), r = i(0), l = i(0), o = i(!1), h = b(() => c.current - n + d, [c.current, n]);
|
|
11
11
|
if (!n)
|
|
12
|
-
return a.jsx("th", { ...
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r += t.offsetLeft, t = t.offsetParent;
|
|
17
|
-
return { x: r };
|
|
18
|
-
}, L = (e) => {
|
|
19
|
-
if (s.current = e.clientX - f.current, n + s.current - c.current <= d || s.current < h) {
|
|
20
|
-
i.current = !0;
|
|
12
|
+
return /* @__PURE__ */ a.jsx("th", { ...R });
|
|
13
|
+
const N = (e) => {
|
|
14
|
+
if (r.current = e.clientX - f.current, n + r.current - c.current <= d || r.current < h) {
|
|
15
|
+
o.current = !0;
|
|
21
16
|
return;
|
|
22
17
|
}
|
|
23
|
-
|
|
18
|
+
r.current >= h && o.current && (r.current = h, o.current = !1);
|
|
24
19
|
const t = u.current;
|
|
25
|
-
l.current =
|
|
26
|
-
},
|
|
27
|
-
m(!0)
|
|
28
|
-
const
|
|
29
|
-
|
|
20
|
+
l.current = r.current, t.style.left = `${l.current}px`;
|
|
21
|
+
}, w = (e) => {
|
|
22
|
+
m(!0);
|
|
23
|
+
const s = u.current;
|
|
24
|
+
s.style.opacity = 1, s.style.pointerEvents = "auto", f.current = S.current.getBoundingClientRect().left;
|
|
30
25
|
const t = e.clientX - f.current;
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
26
|
+
l.current = t, s.style.left = `${t}px`, c.current = t, r.current = t;
|
|
27
|
+
}, P = (e, s) => {
|
|
28
|
+
o.current = !1, m(!1);
|
|
34
29
|
const t = u.current;
|
|
35
30
|
t.style.opacity = 0, t.style.pointerEvents = "none", setTimeout(() => {
|
|
36
31
|
t.style.left = "0px";
|
|
37
|
-
}, 200),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
}, 200), x(
|
|
33
|
+
e,
|
|
34
|
+
{
|
|
35
|
+
...s,
|
|
36
|
+
minWidth: d,
|
|
37
|
+
size: {
|
|
38
|
+
...s.size,
|
|
39
|
+
width: n + l.current - c.current
|
|
40
|
+
}
|
|
43
41
|
}
|
|
44
|
-
|
|
45
|
-
}, X = a.jsx(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
), l.current = 0, c.current = 0, r.current = 0;
|
|
43
|
+
}, X = /* @__PURE__ */ a.jsx(
|
|
44
|
+
"span",
|
|
45
|
+
{
|
|
46
|
+
className: "bitzResizableHandle",
|
|
47
|
+
onClick: (e) => {
|
|
48
|
+
e.stopPropagation(), e.preventDefault();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
return /* @__PURE__ */ a.jsx(
|
|
53
|
+
v,
|
|
54
|
+
{
|
|
55
|
+
width: n,
|
|
56
|
+
height: 0,
|
|
57
|
+
handle: X,
|
|
58
|
+
className: L("bitzResizable", {
|
|
59
|
+
disabledUserSelect: D
|
|
60
|
+
}),
|
|
61
|
+
onResize: N,
|
|
62
|
+
onResizeStart: w,
|
|
63
|
+
onResizeStop: P,
|
|
64
|
+
draggableOpts: { enableUserSelectHack: !1 },
|
|
65
|
+
children: /* @__PURE__ */ a.jsx("th", { ...R })
|
|
66
|
+
}
|
|
67
|
+
);
|
|
51
68
|
};
|
|
52
69
|
export {
|
|
53
|
-
|
|
70
|
+
C as default
|
|
54
71
|
};
|
|
@@ -1,26 +1,48 @@
|
|
|
1
1
|
import { j as n } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
2
|
import { DndContext as v } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
|
|
3
|
-
import { restrictToVerticalAxis as
|
|
4
|
-
import { SortableContext as
|
|
5
|
-
import { useState as
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { restrictToVerticalAxis as u } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
|
|
4
|
+
import { SortableContext as j, verticalListSortingStrategy as C, arrayMove as D } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
5
|
+
import { useState as S } from "react";
|
|
6
|
+
function T({
|
|
7
|
+
children: a,
|
|
8
|
+
enabledRowDragSort: x,
|
|
9
|
+
dataSource: i,
|
|
10
|
+
mergeRowKey: d,
|
|
11
|
+
onDragEnd: f
|
|
12
|
+
}) {
|
|
13
|
+
const [c, s] = S(-1), l = (t) => {
|
|
14
|
+
var r, e;
|
|
15
|
+
const { active: o } = t;
|
|
16
|
+
o && s((e = (r = o.data) == null ? void 0 : r.current) == null ? void 0 : e.sortable.index);
|
|
11
17
|
}, g = (t) => {
|
|
12
|
-
var
|
|
13
|
-
const { over:
|
|
14
|
-
if (
|
|
15
|
-
const m = (e = (
|
|
18
|
+
var r, e;
|
|
19
|
+
const { over: o } = t;
|
|
20
|
+
if (o) {
|
|
21
|
+
const m = (e = (r = o.data) == null ? void 0 : r.current) == null ? void 0 : e.sortable.index;
|
|
16
22
|
c !== m && p(c, m);
|
|
17
23
|
}
|
|
18
|
-
}, p = (t,
|
|
19
|
-
const
|
|
20
|
-
|
|
24
|
+
}, p = (t, o) => {
|
|
25
|
+
const r = D(i.slice() ?? [], t, o);
|
|
26
|
+
f(r), s(-1);
|
|
21
27
|
};
|
|
22
|
-
return x ?
|
|
28
|
+
return x ? /* @__PURE__ */ n.jsx(
|
|
29
|
+
v,
|
|
30
|
+
{
|
|
31
|
+
modifiers: [u],
|
|
32
|
+
onDragStart: l,
|
|
33
|
+
onDragEnd: g,
|
|
34
|
+
onDragCancel: () => s(-1),
|
|
35
|
+
children: /* @__PURE__ */ n.jsx(
|
|
36
|
+
j,
|
|
37
|
+
{
|
|
38
|
+
items: i.map((t) => t[d]),
|
|
39
|
+
strategy: C,
|
|
40
|
+
children: a
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
) : /* @__PURE__ */ n.jsx(n.Fragment, { children: a });
|
|
23
45
|
}
|
|
24
46
|
export {
|
|
25
|
-
|
|
47
|
+
T as default
|
|
26
48
|
};
|
|
@@ -1,29 +1,53 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useSortable as
|
|
3
|
-
import { CSS as
|
|
4
|
-
import { theme as
|
|
2
|
+
import { useSortable as R } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
3
|
+
import { CSS as b } from "../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
|
|
4
|
+
import { theme as h } from "antd";
|
|
5
5
|
import a from "react";
|
|
6
|
-
import
|
|
7
|
-
const T = ({ children:
|
|
8
|
-
const { token:
|
|
6
|
+
import j from "../../../node_modules/.store/@ant-design_icons@5.3.7/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs";
|
|
7
|
+
const T = ({ children: m, loading: t, ...e }) => {
|
|
8
|
+
const { token: l } = h.useToken(), {
|
|
9
|
+
attributes: f,
|
|
10
|
+
listeners: u,
|
|
11
|
+
setNodeRef: c,
|
|
12
|
+
setActivatorNodeRef: d,
|
|
13
|
+
transform: o,
|
|
14
|
+
transition: p,
|
|
15
|
+
isDragging: x
|
|
16
|
+
} = R({ id: e["data-row-key"] }), S = {
|
|
9
17
|
...e.style,
|
|
10
|
-
transform:
|
|
18
|
+
transform: b.Transform.toString(o && { ...o, scaleY: 1 }),
|
|
11
19
|
transition: p,
|
|
12
20
|
...x ? { position: "relative", zIndex: 9999 } : {}
|
|
13
21
|
};
|
|
14
|
-
return i.jsx(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
return /* @__PURE__ */ i.jsx(
|
|
23
|
+
"tr",
|
|
24
|
+
{
|
|
25
|
+
...e,
|
|
26
|
+
style: S,
|
|
27
|
+
...f,
|
|
28
|
+
...t === "true" ? {} : {
|
|
29
|
+
ref: c
|
|
30
|
+
},
|
|
31
|
+
children: a.Children.map(m, (r) => {
|
|
32
|
+
var n, s;
|
|
33
|
+
return ((s = (n = r.props) == null ? void 0 : n.additionalProps) == null ? void 0 : s["data-column-name"]) === "dragSorterCell" ? a.cloneElement(r, {
|
|
34
|
+
children: /* @__PURE__ */ i.jsx(
|
|
35
|
+
j,
|
|
36
|
+
{
|
|
37
|
+
ref: d,
|
|
38
|
+
style: {
|
|
39
|
+
touchAction: "none",
|
|
40
|
+
cursor: t === "true" ? "default" : "move",
|
|
41
|
+
fontSize: "calc(var(--fontSize) + 2px)",
|
|
42
|
+
color: t === "true" ? l.colorTextDisabled : "inherit"
|
|
43
|
+
},
|
|
44
|
+
...u
|
|
45
|
+
}
|
|
46
|
+
)
|
|
47
|
+
}) : r;
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
);
|
|
27
51
|
};
|
|
28
52
|
export {
|
|
29
53
|
T as default
|