bitz-react-admin-ui 2.2.6 → 2.2.8
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/_virtual/Draggable.mjs +4 -0
- package/dist/_virtual/DraggableCore.mjs +4 -0
- package/dist/_virtual/Resizable.mjs +4 -0
- package/dist/_virtual/ResizableBox.mjs +4 -0
- package/dist/_virtual/_commonjsHelpers.mjs +26 -4
- package/dist/_virtual/cjs.mjs +4 -0
- package/dist/_virtual/clsx.m.mjs +6 -0
- package/dist/_virtual/domFns.mjs +4 -0
- package/dist/_virtual/getPrefix.mjs +4 -0
- package/dist/_virtual/index6.mjs +4 -0
- package/dist/_virtual/log.mjs +4 -0
- package/dist/_virtual/positionFns.mjs +4 -0
- package/dist/_virtual/propTypes.mjs +4 -0
- package/dist/_virtual/shims.mjs +4 -0
- package/dist/_virtual/utils.mjs +4 -0
- package/dist/assets/iconfont/IconChenggong.mjs +4 -10
- package/dist/assets/iconfont/IconClose.mjs +1 -7
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
- package/dist/assets/iconfont/IconCuowu.mjs +2 -8
- package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
- package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
- package/dist/assets/iconfont/IconFabu.mjs +3 -18
- package/dist/assets/iconfont/IconFanhui.mjs +5 -11
- package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
- package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
- package/dist/assets/iconfont/IconIcon21.mjs +2 -8
- package/dist/assets/iconfont/IconJincoude.mjs +3 -9
- package/dist/assets/iconfont/IconJinggao.mjs +2 -8
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
- package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
- package/dist/assets/iconfont/IconMore.mjs +4 -26
- package/dist/assets/iconfont/IconShanchu.mjs +5 -11
- package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
- package/dist/assets/iconfont/IconSousuo.mjs +4 -10
- package/dist/assets/iconfont/IconTejincou.mjs +1 -7
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
- package/dist/assets/iconfont/IconTishi1.mjs +6 -12
- package/dist/assets/iconfont/IconTuodong.mjs +6 -12
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
- package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
- package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
- package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
- package/dist/assets/iconfont/index.mjs +33 -33
- package/dist/components/BitzAddTag/index.mjs +8 -41
- package/dist/components/BitzAddressBook/index.mjs +35 -122
- package/dist/components/BitzAppPage/index.mjs +4 -18
- package/dist/components/BitzAppRefresh/index.mjs +15 -27
- package/dist/components/BitzBetterScroll/index.mjs +5 -5
- package/dist/components/BitzButton/index.mjs +9 -23
- package/dist/components/BitzCalendar/index.mjs +19 -52
- package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
- package/dist/components/BitzCascader/index.mjs +2 -6
- package/dist/components/BitzCollapse/index.mjs +4 -4
- package/dist/components/BitzConfigProvider/context.mjs +1 -3
- package/dist/components/BitzConfigProvider/index.mjs +8 -12
- package/dist/components/BitzConfirmModal/index.mjs +1 -24
- package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
- package/dist/components/BitzConvert/index.mjs +1 -1
- package/dist/components/BitzDescriptions/index.mjs +1 -11
- package/dist/components/BitzDrawer/index.mjs +2 -17
- package/dist/components/BitzEmpty/index.mjs +2 -6
- package/dist/components/BitzException/index.mjs +1 -6
- package/dist/components/BitzFloatLayout/index.mjs +1 -10
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
- package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
- package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
- package/dist/components/BitzFuiCalendar/index.mjs +1 -7
- package/dist/components/BitzFullScreen/index.mjs +6 -9
- package/dist/components/BitzHighlight/Child.mjs +9 -23
- package/dist/components/BitzHighlight/Highlight.mjs +5 -26
- package/dist/components/BitzHighlight/chunks.mjs +17 -20
- package/dist/components/BitzHighlight/style.mjs +1 -4
- package/dist/components/BitzImage/index.mjs +1 -1
- package/dist/components/BitzImage/previewImage.mjs +5 -12
- package/dist/components/BitzLanguageTabs/index.mjs +3 -14
- package/dist/components/BitzLazyLoad/index.mjs +1 -7
- package/dist/components/BitzList/List.mjs +3 -17
- package/dist/components/BitzList/LoadMore.mjs +20 -29
- package/dist/components/BitzLoadMore/index.mjs +14 -34
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
- package/dist/components/BitzMeetingTime/index.mjs +6 -10
- package/dist/components/BitzMobileLoading/index.mjs +1 -1
- package/dist/components/BitzModal/index.mjs +11 -24
- package/dist/components/BitzNoData/index.mjs +1 -4
- package/dist/components/BitzNoMore/index.mjs +1 -1
- package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
- package/dist/components/BitzPageContainer/index.mjs +46 -107
- package/dist/components/BitzPageHeader/index.mjs +21 -89
- package/dist/components/BitzPagination/index.mjs +22 -71
- package/dist/components/BitzPopover/index.mjs +4 -4
- package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
- package/dist/components/BitzQRCode/index.mjs +1 -6
- package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
- package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
- package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
- package/dist/components/BitzQueryFilter/index.mjs +20 -69
- package/dist/components/BitzRefresh/index.mjs +1 -5
- package/dist/components/BitzRemark/index.mjs +4 -4
- package/dist/components/BitzScheduleCenter/index.mjs +30 -24
- package/dist/components/BitzSearch/index.mjs +1 -1
- package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
- package/dist/components/BitzSelect/index.mjs +1 -1
- package/dist/components/BitzSkeleton/index.mjs +1 -31
- package/dist/components/BitzSwitch/index.mjs +2 -7
- package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
- package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
- package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
- package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
- package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
- package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
- package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
- package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
- package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
- package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
- package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.d.ts +5 -1
- package/dist/components/BitzTable/Store/index.mjs +189 -199
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
- package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
- package/dist/components/BitzTable/SubTable/index.mjs +76 -119
- package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
- package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
- package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.d.ts +1 -1
- package/dist/components/BitzTable/Table/index.mjs +257 -446
- package/dist/components/BitzTable/Table/style.mjs +1 -11
- package/dist/components/BitzTable/Table/utils.d.ts +2 -2
- package/dist/components/BitzTable/Table/utils.mjs +30 -31
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +147 -255
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
- package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- package/dist/components/BitzTable/index.d.ts +3 -2
- package/dist/components/BitzTable/index.mjs +17 -15
- package/dist/components/BitzTableOperations/index.mjs +3 -13
- package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
- package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
- package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
- package/dist/components/BitzTableSelect/index.mjs +13 -61
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzTheme/index.mjs +6 -6
- package/dist/components/BitzTimeline/index.mjs +1 -11
- package/dist/components/BitzTimer/Form.mjs +11 -32
- package/dist/components/BitzTimer/Timer.mjs +38 -76
- package/dist/components/BitzTimer/index.mjs +43 -66
- package/dist/components/BitzToast/Toast/index.mjs +10 -28
- package/dist/components/BitzToast/index.mjs +1 -1
- package/dist/components/BitzTree/index.mjs +1 -4
- package/dist/components/BitzUeEditor/index.mjs +5 -5
- package/dist/components/BitzUpload/index.mjs +43 -81
- package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
- package/dist/components/BitzWebAppModal/index.mjs +3 -6
- package/dist/hooks/use-event-listener.mjs +2 -11
- package/dist/hooks/use-lock-fn.mjs +10 -13
- package/dist/hooks/use-scroll-parent.mjs +14 -16
- package/dist/hooks/useEvent.mjs +4 -7
- package/dist/hooks/useMergedState.mjs +11 -11
- package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
- package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
- package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
- package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +12 -27
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,149 +1,106 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
3
|
-
import { Table as
|
|
4
|
-
import
|
|
5
|
-
import { BitzTableContext as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { j as w } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as I, useRef as Z, useMemo as r, useCallback as L } from "react";
|
|
3
|
+
import { Table as ee } from "antd";
|
|
4
|
+
import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
|
+
import { BitzTableContext as ne, toolCols as oe } from "../Store/index.mjs";
|
|
6
|
+
import re from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
|
|
7
|
+
import se from "../ActionCol/style.mjs";
|
|
8
|
+
import ae from "../../BitzTheme/index.mjs";
|
|
9
|
+
import le from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
10
10
|
import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { getColumnsWithTool as
|
|
13
|
-
import { ConfigContext as
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
), e = [];
|
|
34
|
-
if (t == null || t.forEach((i) => {
|
|
35
|
-
var b;
|
|
36
|
-
e.push(
|
|
37
|
-
((b = i.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
|
|
38
|
-
);
|
|
39
|
-
}), e.length)
|
|
40
|
-
return Math.ceil(Math.max(...e)) + K * 2;
|
|
41
|
-
}, _ = () => {
|
|
42
|
-
var b, p, W, L, v;
|
|
43
|
-
const t = (p = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : p.querySelector(
|
|
44
|
-
".ant-table-body"
|
|
45
|
-
), e = t == null ? void 0 : t.clientWidth, n = ((t == null ? void 0 : t.offsetWidth) || 0) - e > 0, i = (v = (L = (W = h.current) == null ? void 0 : W.nativeElement) == null ? void 0 : L.querySelector(
|
|
46
|
-
".ant-table-cell-scrollbar"
|
|
47
|
-
)) == null ? void 0 : v.offsetWidth;
|
|
48
|
-
return { tbodyWidth: e, scrollbarSize: i, hasScrollBar: n };
|
|
49
|
-
}, { hasScrollBar: R, scrollbarSize: S } = o(() => {
|
|
50
|
-
const { hasScrollBar: t, scrollbarSize: e } = _();
|
|
11
|
+
import ie from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
|
|
12
|
+
import { getColumnsWithTool as ce, loopBuildSkeleton as ue } from "../Table/utils.mjs";
|
|
13
|
+
import { ConfigContext as me } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
|
|
14
|
+
function We({ dataSource: u = [], columns: g, loading: l = !1, scroll: s, components: f, expandable: i, rowSelection: m, ...a }) {
|
|
15
|
+
var z, B;
|
|
16
|
+
const { token: j } = ae.useToken(), { gap: K } = se(), { showColumnBorder: M, rowHoverable: q } = I(ne), h = Z(null), y = re((z = h.current) == null ? void 0 : z.nativeElement), v = r(() => {
|
|
17
|
+
let e = (s == null ? void 0 : s.x) ?? 1e3;
|
|
18
|
+
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
|
+
}, [s]), P = () => {
|
|
20
|
+
var o, n;
|
|
21
|
+
const e = (n = (o = h.current) == null ? void 0 : o.nativeElement) == null ? void 0 : n.querySelectorAll("& > .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)"), t = [];
|
|
22
|
+
if (e == null || e.forEach((c) => {
|
|
23
|
+
var d;
|
|
24
|
+
t.push(((d = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : d.clientWidth) || 0);
|
|
25
|
+
}), t.length)
|
|
26
|
+
return Math.ceil(Math.max(...t)) + K * 2;
|
|
27
|
+
}, A = () => {
|
|
28
|
+
var d, E, S, N, D;
|
|
29
|
+
const e = (E = (d = h.current) == null ? void 0 : d.nativeElement) == null ? void 0 : E.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (D = (N = (S = h.current) == null ? void 0 : S.nativeElement) == null ? void 0 : N.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : D.offsetWidth;
|
|
30
|
+
return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
|
|
31
|
+
}, { hasScrollBar: x, scrollbarSize: R } = r(() => {
|
|
32
|
+
const { hasScrollBar: e, scrollbarSize: t } = A();
|
|
51
33
|
return {
|
|
52
|
-
hasScrollBar:
|
|
53
|
-
scrollbarSize:
|
|
34
|
+
hasScrollBar: e,
|
|
35
|
+
scrollbarSize: t
|
|
54
36
|
};
|
|
55
|
-
}, [y == null ? void 0 : y.height]),
|
|
56
|
-
const
|
|
37
|
+
}, [y == null ? void 0 : y.height]), b = r(() => {
|
|
38
|
+
const e = g ?? [], o = e.filter((n) => !oe.includes(n)).map((n) => ({
|
|
57
39
|
...n,
|
|
58
|
-
width: n.useMaxWidth ?
|
|
40
|
+
width: n.useMaxWidth ? P() ?? n.width : n.width
|
|
59
41
|
}));
|
|
60
|
-
return
|
|
61
|
-
}, [
|
|
62
|
-
const
|
|
63
|
-
return Array.from({ length:
|
|
64
|
-
key: `${Date.now()}${
|
|
42
|
+
return ce(e, o, !1, !!m, !!i);
|
|
43
|
+
}, [g]), k = r(() => ue(b), [b]), G = r(() => l ? k : b, [l, b, k]), T = r(() => {
|
|
44
|
+
const e = u == null ? void 0 : u.length, t = e > 4 ? e >= 8 ? 8 : e : 4;
|
|
45
|
+
return Array.from({ length: t }).map((n, c) => ({
|
|
46
|
+
key: `${Date.now()}${c}`
|
|
65
47
|
}));
|
|
66
|
-
}, [u]),
|
|
67
|
-
if (
|
|
48
|
+
}, [u]), H = r(() => l ? T : u, [l, u, T]), { table: C, locale: $ = ie } = I(me), F = { ...$.Table }, _ = ((B = C == null ? void 0 : C.expandable) == null ? void 0 : B.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(F), p = r(() => {
|
|
49
|
+
if (i)
|
|
68
50
|
return {
|
|
69
|
-
...
|
|
70
|
-
expandedRowRender: () =>
|
|
71
|
-
expandIcon: (
|
|
72
|
-
const
|
|
51
|
+
...i,
|
|
52
|
+
expandedRowRender: () => w.jsx(w.Fragment, {}),
|
|
53
|
+
expandIcon: (e) => {
|
|
54
|
+
const t = _(e);
|
|
73
55
|
return {
|
|
74
|
-
...
|
|
56
|
+
...t,
|
|
75
57
|
props: {
|
|
76
|
-
...
|
|
58
|
+
...t.props,
|
|
77
59
|
disabled: !0,
|
|
78
60
|
style: {
|
|
79
|
-
...
|
|
61
|
+
...t.props.style,
|
|
80
62
|
backgroundColor: j.colorBgContainerDisabled
|
|
81
63
|
}
|
|
82
64
|
}
|
|
83
65
|
};
|
|
84
66
|
}
|
|
85
67
|
};
|
|
86
|
-
}, [
|
|
68
|
+
}, [i]), J = r(() => l ? p : i, [l, i, p]), W = r(() => {
|
|
87
69
|
if (m)
|
|
88
70
|
return {
|
|
89
71
|
...m,
|
|
90
72
|
selectedRowKeys: [],
|
|
91
73
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
92
74
|
};
|
|
93
|
-
}, [m]),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
const e = { ...t };
|
|
115
|
-
return e.className.includes("ant-table-cell-fix-right") && !R && ((r = e.style) != null && r.right) && (e.style = {
|
|
116
|
-
...e.style,
|
|
117
|
-
right: e.style.right - (S || 0)
|
|
118
|
-
}), /* @__PURE__ */ C.jsx("th", { ...e });
|
|
119
|
-
}, tt = o(() => ({
|
|
75
|
+
}, [m]), O = r(() => l ? W : m, [l, m, W]), Q = r(() => l ? void 0 : a.rowKey, [l, a.rowKey]), U = L((e, t) => {
|
|
76
|
+
var n;
|
|
77
|
+
if (!a.onRow)
|
|
78
|
+
return {};
|
|
79
|
+
const o = (n = a.onRow) == null ? void 0 : n.call(a, e, t);
|
|
80
|
+
return o.onClick && (o.className = "rowPointerCursor"), o;
|
|
81
|
+
}, [a.onRow]), V = L((e, t, o) => {
|
|
82
|
+
const n = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
83
|
+
if (a.rowClassName) {
|
|
84
|
+
const c = a.rowClassName(e, t, o);
|
|
85
|
+
return te(n, c);
|
|
86
|
+
}
|
|
87
|
+
return n;
|
|
88
|
+
}, [a.rowClassName]), X = (e) => {
|
|
89
|
+
var o;
|
|
90
|
+
const t = { ...e };
|
|
91
|
+
return t.className.includes("ant-table-cell-fix-right") && !x && ((o = t.style) != null && o.right) && (t.style = {
|
|
92
|
+
...t.style,
|
|
93
|
+
right: t.style.right - (R || 0)
|
|
94
|
+
}), w.jsx("th", { ...t });
|
|
95
|
+
}, Y = r(() => ({
|
|
120
96
|
...f,
|
|
121
97
|
header: {
|
|
122
98
|
...f == null ? void 0 : f.header,
|
|
123
|
-
cell:
|
|
124
|
-
}
|
|
125
|
-
}), [f, R, S]);
|
|
126
|
-
return /* @__PURE__ */ C.jsx(
|
|
127
|
-
g,
|
|
128
|
-
{
|
|
129
|
-
...a,
|
|
130
|
-
bordered: q,
|
|
131
|
-
columns: G,
|
|
132
|
-
dataSource: U,
|
|
133
|
-
loading: !1,
|
|
134
|
-
pagination: !1,
|
|
135
|
-
scroll: A,
|
|
136
|
-
expandable: X,
|
|
137
|
-
rowSelection: J,
|
|
138
|
-
onRow: V,
|
|
139
|
-
rowClassName: Y,
|
|
140
|
-
components: tt,
|
|
141
|
-
rowKey: Q,
|
|
142
|
-
rowHoverable: P,
|
|
143
|
-
ref: h
|
|
99
|
+
cell: X
|
|
144
100
|
}
|
|
145
|
-
);
|
|
101
|
+
}), [f, x, R]);
|
|
102
|
+
return w.jsx(ee, { ...a, bordered: M, columns: G, dataSource: H, loading: !1, pagination: !1, scroll: v, expandable: J, rowSelection: O, onRow: U, rowClassName: V, components: Y, rowKey: Q, rowHoverable: q, ref: h });
|
|
146
103
|
}
|
|
147
104
|
export {
|
|
148
|
-
|
|
105
|
+
We as default
|
|
149
106
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ResizeCallbackData } from 'react-resizable';
|
|
2
|
+
declare const ResizableTitle: (props: React.HTMLAttributes<any> & {
|
|
3
|
+
hasScrollBar?: boolean;
|
|
4
|
+
scrollbarSize?: number;
|
|
5
|
+
onResize: (e: React.SyntheticEvent<Element>, data: ResizeCallbackData) => void;
|
|
6
|
+
width: number;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ResizableTitle;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { Resizable as m } from "../../../node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs";
|
|
3
|
+
import { useMemo as d } from "react";
|
|
4
|
+
const f = (t) => {
|
|
5
|
+
const { hasScrollBar: o, scrollbarSize: n, onResize: c, width: r, ...h } = t, i = d(() => {
|
|
6
|
+
var l, a;
|
|
7
|
+
const e = { ...h };
|
|
8
|
+
return ((l = e.className) == null ? void 0 : l.includes("ant-table-cell-fix-right")) && !o && ((a = e.style) != null && a.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (n || 0)), e;
|
|
9
|
+
}, [t]);
|
|
10
|
+
return r ? s.jsx(m, { width: r, height: 0, handle: s.jsx("span", { className: "react-resizable-handle", onClick: (e) => e.stopPropagation() }), onResize: c, draggableOpts: { enableUserSelectHack: !1 }, children: s.jsx("th", { ...i }) }) : s.jsx("th", { ...i });
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
f as default
|
|
14
|
+
};
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { DndContext as
|
|
3
|
-
import { restrictToVerticalAxis as
|
|
2
|
+
import { DndContext as s } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
|
|
3
|
+
import { restrictToVerticalAxis as a } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
|
|
4
4
|
import { SortableContext as x, verticalListSortingStrategy as f } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
5
|
-
import { memo as
|
|
6
|
-
function
|
|
7
|
-
children: r,
|
|
8
|
-
enabledRowDragSort: o,
|
|
9
|
-
dataSource: e,
|
|
10
|
-
mergeRowKey: m,
|
|
11
|
-
onDragEnd: i
|
|
12
|
-
}) {
|
|
13
|
-
return o ? /* @__PURE__ */ t.jsx(a, { modifiers: [n], onDragEnd: i, children: /* @__PURE__ */ t.jsx(
|
|
14
|
-
x,
|
|
15
|
-
{
|
|
16
|
-
items: e.map((s) => s[m]),
|
|
17
|
-
strategy: f,
|
|
18
|
-
children: r
|
|
19
|
-
}
|
|
20
|
-
) }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: r });
|
|
5
|
+
import { memo as l } from "react";
|
|
6
|
+
function p({ children: r, enabledRowDragSort: o, dataSource: e, mergeRowKey: i, onDragEnd: m }) {
|
|
7
|
+
return o ? t.jsx(s, { modifiers: [a], onDragEnd: m, children: t.jsx(x, { items: e.map((n) => n[i]), strategy: f, children: r }) }) : t.jsx(t.Fragment, { children: r });
|
|
21
8
|
}
|
|
22
|
-
const
|
|
9
|
+
const u = l(p);
|
|
23
10
|
export {
|
|
24
|
-
|
|
11
|
+
u as default
|
|
25
12
|
};
|
|
@@ -1,53 +1,29 @@
|
|
|
1
1
|
import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useSortable as
|
|
3
|
-
import { CSS as
|
|
4
|
-
import { theme as
|
|
2
|
+
import { useSortable as y } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
3
|
+
import { CSS as R } from "../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
|
|
4
|
+
import { theme as b } from "antd";
|
|
5
5
|
import a from "react";
|
|
6
|
-
import
|
|
7
|
-
const T = ({ children:
|
|
8
|
-
const { token:
|
|
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 = {
|
|
6
|
+
import h from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs";
|
|
7
|
+
const T = ({ children: l, loading: t, ...e }) => {
|
|
8
|
+
const { token: m } = b.useToken(), { attributes: f, listeners: u, setNodeRef: c, setActivatorNodeRef: d, transform: o, transition: p, isDragging: x } = y({ id: e["data-row-key"] }), S = {
|
|
17
9
|
...e.style,
|
|
18
|
-
transform:
|
|
10
|
+
transform: R.Transform.toString(o && { ...o, scaleY: 1 }),
|
|
19
11
|
transition: p,
|
|
20
12
|
...x ? { position: "relative", zIndex: 9999 } : {}
|
|
21
13
|
};
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
j,
|
|
36
|
-
{
|
|
37
|
-
ref: d,
|
|
38
|
-
style: {
|
|
39
|
-
touchAction: "none",
|
|
40
|
-
cursor: t === "true" ? "default" : "move",
|
|
41
|
-
fontSize: "calc(var(--fontSize) + 3px)",
|
|
42
|
-
color: t === "true" ? l.colorTextDisabled : "inherit"
|
|
43
|
-
},
|
|
44
|
-
...u
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
}) : r;
|
|
48
|
-
})
|
|
49
|
-
}
|
|
50
|
-
);
|
|
14
|
+
return i.jsx("tr", { ...e, style: S, ...f, ...t === "true" ? {} : {
|
|
15
|
+
ref: c
|
|
16
|
+
}, children: a.Children.map(l, (r) => {
|
|
17
|
+
var n, s;
|
|
18
|
+
return ((s = (n = r.props) == null ? void 0 : n.additionalProps) == null ? void 0 : s["data-column-name"]) === "dragSorterCell" ? a.cloneElement(r, {
|
|
19
|
+
children: i.jsx(h, { ref: d, style: {
|
|
20
|
+
touchAction: "none",
|
|
21
|
+
cursor: t === "true" ? "default" : "move",
|
|
22
|
+
fontSize: "calc(var(--fontSize) + 2px)",
|
|
23
|
+
color: t === "true" ? m.colorTextDisabled : "inherit"
|
|
24
|
+
}, ...u })
|
|
25
|
+
}) : r;
|
|
26
|
+
}) });
|
|
51
27
|
};
|
|
52
28
|
export {
|
|
53
29
|
T as default
|
|
@@ -50,7 +50,7 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
|
|
|
50
50
|
/** 是否启用分页组件的受控属性 */
|
|
51
51
|
enableControlPage?: boolean;
|
|
52
52
|
/** 多选/单选操作 */
|
|
53
|
-
|
|
53
|
+
selectionAlert?: SelelctionAlertProps;
|
|
54
54
|
/** 分页控件的分页属性 */
|
|
55
55
|
pagination?: {
|
|
56
56
|
page: number;
|