bitz-react-admin-ui 2.5.7 → 2.5.9
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/index.mjs +2 -2
- package/dist/_virtual/index2.mjs +2 -2
- package/dist/assets/iconfont/IconChenggong.mjs +4 -25
- package/dist/assets/iconfont/IconClose.mjs +3 -24
- package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
- package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
- package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
- package/dist/assets/iconfont/IconCuowu.mjs +2 -23
- package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
- package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
- package/dist/assets/iconfont/IconFabu.mjs +5 -35
- package/dist/assets/iconfont/IconFanhui.mjs +4 -25
- package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
- package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
- package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
- package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
- package/dist/assets/iconfont/IconIcon21.mjs +4 -25
- package/dist/assets/iconfont/IconJincoude.mjs +4 -25
- package/dist/assets/iconfont/IconJinggao.mjs +4 -25
- package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
- package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
- package/dist/assets/iconfont/IconMore.mjs +4 -41
- package/dist/assets/iconfont/IconShanchu.mjs +6 -27
- package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
- package/dist/assets/iconfont/IconSousuo.mjs +6 -27
- package/dist/assets/iconfont/IconTejincou.mjs +4 -25
- package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
- package/dist/assets/iconfont/IconTishi1.mjs +6 -27
- package/dist/assets/iconfont/IconTuodong.mjs +7 -28
- package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
- package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
- package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
- package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
- package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
- package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
- 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/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/BitzFluentDatePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
- package/dist/components/BitzFluentRangeTimePicker/index.d.ts +5 -0
- package/dist/components/BitzFluentRangeTimePicker/index.mjs +10 -0
- package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
- 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 +15 -47
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
- package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
- 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.mjs +12 -80
- package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
- package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
- package/dist/components/BitzTable/ActionCol/index.mjs +33 -129
- 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 +4 -11
- package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
- package/dist/components/BitzTable/Store/index.d.ts +11 -2
- package/dist/components/BitzTable/Store/index.mjs +200 -224
- package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
- package/dist/components/BitzTable/Store/utils/index.mjs +41 -30
- package/dist/components/BitzTable/SubTable/index.mjs +43 -91
- package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
- package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
- package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
- package/dist/components/BitzTable/Table/index.mjs +230 -475
- package/dist/components/BitzTable/Table/style.mjs +1 -10
- package/dist/components/BitzTable/Table/utils.mjs +4 -11
- package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +27 -83
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +143 -251
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +2 -1
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +63 -116
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +43 -97
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +10 -1
- package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +13 -42
- package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
- package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
- package/dist/components/BitzTable/ToolBar/Modal/index.mjs +8 -37
- package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
- package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
- package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
- 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 -90
- package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
- package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
- package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
- package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
- package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
- package/dist/components/BitzTableSelect/index.mjs +14 -65
- package/dist/components/BitzTableSelect/utils.mjs +3 -3
- package/dist/components/BitzTag/index.mjs +1 -1
- package/dist/components/BitzText/index.mjs +14 -41
- package/dist/components/BitzText/utils.mjs +3 -3
- 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/BitzTooltip/index.mjs +17 -47
- package/dist/components/BitzTooltip/style.mjs +6 -9
- package/dist/components/BitzTooltip/utils.mjs +2 -2
- 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/index.d.ts +1 -0
- package/dist/index.mjs +108 -106
- package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
- package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/WithFluent.mjs +5 -27
- package/dist/utils/create.mjs +1 -7
- package/package.json +1 -1
|
@@ -1,41 +1,52 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
return
|
|
4
|
-
...
|
|
5
|
-
...
|
|
6
|
-
...(
|
|
7
|
-
width:
|
|
1
|
+
const c = (e, n, i) => ((s, f) => s.map((t) => {
|
|
2
|
+
const a = h(t, t.index), o = f[a];
|
|
3
|
+
return o && o.show === !1 ? !1 : {
|
|
4
|
+
...t,
|
|
5
|
+
...o,
|
|
6
|
+
...(t == null ? void 0 : t.isOperationCol) && !i && {
|
|
7
|
+
width: t == null ? void 0 : t.width
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
|
-
}))(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
}))(e, n).filter(Boolean), h = (e, n) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${n}`, u = (e) => {
|
|
11
|
+
const n = [];
|
|
12
|
+
function i(r) {
|
|
13
|
+
r.children ? r.children.forEach(i) : r.dataIndex && !r.exportHidden && n.push({
|
|
14
|
+
field: r.dataIndex,
|
|
15
|
+
title: r.title,
|
|
16
|
+
show: !0
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return e.forEach(i), n;
|
|
20
|
+
}, k = (e) => (n, i) => {
|
|
21
|
+
var d, x, l, y;
|
|
22
|
+
const { fixed: r, index: s } = n, { fixed: f, index: t } = i;
|
|
23
|
+
if (r === "left" && f !== "left" || f === "right" && r !== "right")
|
|
14
24
|
return -2;
|
|
15
|
-
if (
|
|
25
|
+
if (f === "left" && r !== "left" || r === "right" && f !== "right")
|
|
16
26
|
return 2;
|
|
17
|
-
const
|
|
18
|
-
return (
|
|
27
|
+
const a = n.key || `${s}`, o = i.key || `${t}`;
|
|
28
|
+
return (d = e[a]) != null && d.order || (x = e[o]) != null && x.order ? (((l = e[a]) == null ? void 0 : l.order) || 0) - (((y = e[o]) == null ? void 0 : y.order) || 0) : (n.index || 0) - (i.index || 0);
|
|
19
29
|
};
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
for (const
|
|
25
|
-
if (
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
...
|
|
29
|
-
[
|
|
30
|
+
function I(e, n, i) {
|
|
31
|
+
const r = {};
|
|
32
|
+
let s = "";
|
|
33
|
+
const f = (t, a, o) => {
|
|
34
|
+
for (const d in t)
|
|
35
|
+
if (t.hasOwnProperty(d) && (typeof t[d] == "object" && t[d] !== null && (s = d, r[d] = { ...t[d] }, f(t[d], a, o)), d === a)) {
|
|
36
|
+
const x = r[s];
|
|
37
|
+
r[s] = {
|
|
38
|
+
...x,
|
|
39
|
+
[a]: o
|
|
30
40
|
// [prop]: current.disabled || current.fixed ? true : val,
|
|
31
|
-
},
|
|
41
|
+
}, s = "";
|
|
32
42
|
}
|
|
33
43
|
};
|
|
34
|
-
return
|
|
44
|
+
return f(e, n, i), r;
|
|
35
45
|
}
|
|
36
46
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
k as columnSort,
|
|
48
|
+
u as flattenColumns,
|
|
49
|
+
h as genColumnKey,
|
|
50
|
+
c as loopFilter,
|
|
51
|
+
I as updateNestedObject
|
|
41
52
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useContext as
|
|
1
|
+
import { j as w } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
|
|
2
|
+
import { useContext as j, useRef as ee, useMemo as r, useCallback as K } 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 oe, toolCols as re } 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,68 +11,45 @@ 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
|
-
|
|
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(() => {
|
|
14
|
+
function ze({ dataSource: u, columns: g, loading: l, scroll: s, components: f, expandable: i, rowSelection: m, ...a }) {
|
|
15
|
+
var B, E, I;
|
|
16
|
+
const { token: x } = ae.useToken(), M = ((B = x.Table) == null ? void 0 : B.cellPaddingInline) ?? me, { showColumnBorder: P, rowHoverable: q } = j(oe), d = ee(null), C = se((E = d.current) == null ? void 0 : E.nativeElement), v = r(() => {
|
|
26
17
|
let e = (s == null ? void 0 : s.x) ?? 1e3;
|
|
27
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 };
|
|
28
19
|
}, [s]), A = () => {
|
|
29
|
-
var
|
|
30
|
-
const e = (n = (
|
|
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 = [];
|
|
20
|
+
var o, n;
|
|
21
|
+
const e = (n = (o = d.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 = [];
|
|
33
22
|
if (e == null || e.forEach((c) => {
|
|
34
|
-
var
|
|
35
|
-
t.push(
|
|
36
|
-
((b = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
|
|
37
|
-
);
|
|
23
|
+
var h;
|
|
24
|
+
t.push(((h = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : h.clientWidth) || 0);
|
|
38
25
|
}), t.length)
|
|
39
|
-
return Math.ceil(Math.max(...t)) +
|
|
40
|
-
},
|
|
41
|
-
var
|
|
42
|
-
const e = (
|
|
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;
|
|
26
|
+
return Math.ceil(Math.max(...t)) + M * 2;
|
|
27
|
+
}, H = () => {
|
|
28
|
+
var h, S, N, D, L;
|
|
29
|
+
const e = (S = (h = d.current) == null ? void 0 : h.nativeElement) == null ? void 0 : S.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (L = (D = (N = d.current) == null ? void 0 : N.nativeElement) == null ? void 0 : D.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : L.offsetWidth;
|
|
47
30
|
return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
|
|
48
|
-
}, { hasScrollBar: R, scrollbarSize: k } =
|
|
49
|
-
const { hasScrollBar: e, scrollbarSize: t } =
|
|
31
|
+
}, { hasScrollBar: R, scrollbarSize: k } = r(() => {
|
|
32
|
+
const { hasScrollBar: e, scrollbarSize: t } = H();
|
|
50
33
|
return {
|
|
51
34
|
hasScrollBar: e,
|
|
52
35
|
scrollbarSize: t
|
|
53
36
|
};
|
|
54
|
-
}, [
|
|
55
|
-
const e = g ?? [],
|
|
37
|
+
}, [C == null ? void 0 : C.height]), b = r(() => {
|
|
38
|
+
const e = g ?? [], o = e.filter((n) => !re.includes(n)).map((n) => ({
|
|
56
39
|
...n,
|
|
57
40
|
width: n.useMaxWidth ? A() ?? n.width : n.width
|
|
58
41
|
}));
|
|
59
|
-
return ce(
|
|
60
|
-
|
|
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(() => {
|
|
42
|
+
return ce(e, o, !1, !!m, !!i);
|
|
43
|
+
}, [g]), T = r(() => ue(b), [b]), $ = r(() => l ? T : b, [l, b, T]), p = r(() => {
|
|
67
44
|
const e = (u == null ? void 0 : u.length) ?? 0, t = e > 4 ? e >= 8 ? 8 : e : 4;
|
|
68
45
|
return Array.from({ length: t }).map((n, c) => ({
|
|
69
46
|
key: `${Date.now()}${c}`
|
|
70
47
|
}));
|
|
71
|
-
}, [u]),
|
|
48
|
+
}, [u]), F = r(() => l ? p : u, [l, u, p]), { table: y, locale: G = ie } = j(fe), _ = { ...G.Table }, J = ((I = y == null ? void 0 : y.expandable) == null ? void 0 : I.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(_), W = r(() => {
|
|
72
49
|
if (i)
|
|
73
50
|
return {
|
|
74
51
|
...i,
|
|
75
|
-
expandedRowRender: () =>
|
|
52
|
+
expandedRowRender: () => w.jsx(w.Fragment, {}),
|
|
76
53
|
expandIcon: (e) => {
|
|
77
54
|
const t = J(e);
|
|
78
55
|
return {
|
|
@@ -88,67 +65,42 @@ function Te({
|
|
|
88
65
|
};
|
|
89
66
|
}
|
|
90
67
|
};
|
|
91
|
-
}, [i]), O =
|
|
68
|
+
}, [i]), O = r(() => l ? W : i, [l, i, W]), z = r(() => {
|
|
92
69
|
if (m)
|
|
93
70
|
return {
|
|
94
71
|
...m,
|
|
95
72
|
selectedRowKeys: [],
|
|
96
73
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
97
74
|
};
|
|
98
|
-
}, [m]), Q =
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
return n;
|
|
115
|
-
},
|
|
116
|
-
[a.rowClassName]
|
|
117
|
-
), Y = (e) => {
|
|
118
|
-
var r;
|
|
75
|
+
}, [m]), Q = r(() => l ? z : m, [l, m, z]), U = r(() => l ? void 0 : a.rowKey, [l, a.rowKey]), V = K((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]), X = K((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 ne(n, c);
|
|
86
|
+
}
|
|
87
|
+
return n;
|
|
88
|
+
}, [a.rowClassName]), Y = (e) => {
|
|
89
|
+
var o;
|
|
119
90
|
const t = { ...e };
|
|
120
|
-
return t.className.includes("ant-table-cell-fix-right") && !R && ((
|
|
91
|
+
return t.className.includes("ant-table-cell-fix-right") && !R && ((o = t.style) != null && o.right) && (t.style = {
|
|
121
92
|
...t.style,
|
|
122
93
|
right: t.style.right - (k || 0)
|
|
123
|
-
}),
|
|
124
|
-
}, Z =
|
|
94
|
+
}), w.jsx("th", { ...t });
|
|
95
|
+
}, Z = r(() => ({
|
|
125
96
|
...f,
|
|
126
97
|
header: {
|
|
127
98
|
...f == null ? void 0 : f.header,
|
|
128
99
|
cell: Y
|
|
129
100
|
}
|
|
130
101
|
}), [f, R, k]);
|
|
131
|
-
return
|
|
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
|
-
);
|
|
102
|
+
return w.jsx(te, { ...a, bordered: P, columns: $, dataSource: F, loading: !1, pagination: !1, scroll: v, expandable: O, rowSelection: Q, onRow: V, rowClassName: X, components: Z, rowKey: U, rowHoverable: q, ref: d });
|
|
151
103
|
}
|
|
152
104
|
export {
|
|
153
|
-
|
|
105
|
+
ze as default
|
|
154
106
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
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
|
|
3
|
+
import { useState as E, useMemo as b, useRef as o } from "react";
|
|
4
4
|
import O from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
5
5
|
const d = 56, T = (p) => {
|
|
6
6
|
const { hasScrollBar: x, scrollbarSize: y, onResize: g, width: n, datagridref: S, stretchref: u, ...P } = p, [j, m] = E(!1), z = b(() => {
|
|
7
7
|
var t, R;
|
|
8
8
|
const e = { ...P };
|
|
9
9
|
return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !x && ((R = e.style) != null && R.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (y || 0)), e;
|
|
10
|
-
}, [p]), c =
|
|
10
|
+
}, [p]), c = o(0), f = o(0), s = o(0), l = o(0), i = o(!1), h = b(() => c.current - n + d, [c.current, n]);
|
|
11
11
|
if (!n)
|
|
12
|
-
return
|
|
13
|
-
const
|
|
12
|
+
return a.jsx("th", { ...z });
|
|
13
|
+
const w = (e) => {
|
|
14
14
|
let r = e.offsetLeft, t = e.offsetParent;
|
|
15
15
|
for (; t !== null; )
|
|
16
16
|
r += t.offsetLeft, t = t.offsetParent;
|
|
17
17
|
return { x: r };
|
|
18
|
-
},
|
|
18
|
+
}, L = (e) => {
|
|
19
19
|
if (s.current = e.clientX - f.current, n + s.current - c.current <= d || s.current < h) {
|
|
20
20
|
i.current = !0;
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
s.current >= h && i.current && (s.current = h, i.current = !1);
|
|
24
24
|
const t = u.current;
|
|
25
|
-
|
|
25
|
+
l.current = s.current, t.style.left = `${l.current}px`;
|
|
26
26
|
}, D = (e) => {
|
|
27
|
-
m(!0), s.current = 0,
|
|
27
|
+
m(!0), s.current = 0, l.current = 0;
|
|
28
28
|
const r = u.current;
|
|
29
|
-
r.style.opacity = 1, r.style.pointerEvents = "auto", f.current =
|
|
29
|
+
r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = w(S.current).x;
|
|
30
30
|
const t = e.clientX - f.current;
|
|
31
31
|
r.style.left = `${t}px`, c.current = t, s.current = t;
|
|
32
32
|
}, N = (e, r) => {
|
|
@@ -34,42 +34,20 @@ const d = 56, T = (p) => {
|
|
|
34
34
|
const t = u.current;
|
|
35
35
|
t.style.opacity = 0, t.style.pointerEvents = "none", setTimeout(() => {
|
|
36
36
|
t.style.left = "0px";
|
|
37
|
-
}, 200), g(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
...r.size,
|
|
44
|
-
width: n + o.current - c.current
|
|
45
|
-
}
|
|
37
|
+
}, 200), g(e, {
|
|
38
|
+
...r,
|
|
39
|
+
minWidth: d,
|
|
40
|
+
size: {
|
|
41
|
+
...r.size,
|
|
42
|
+
width: n + l.current - c.current
|
|
46
43
|
}
|
|
47
|
-
);
|
|
48
|
-
}, X =
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
return /* @__PURE__ */ a.jsx(
|
|
58
|
-
v,
|
|
59
|
-
{
|
|
60
|
-
width: n,
|
|
61
|
-
height: 0,
|
|
62
|
-
handle: X,
|
|
63
|
-
className: O("bitzResizable", {
|
|
64
|
-
disabledUserSelect: j
|
|
65
|
-
}),
|
|
66
|
-
onResize: w,
|
|
67
|
-
onResizeStart: D,
|
|
68
|
-
onResizeStop: N,
|
|
69
|
-
draggableOpts: { enableUserSelectHack: !1 },
|
|
70
|
-
children: /* @__PURE__ */ a.jsx("th", { ...z })
|
|
71
|
-
}
|
|
72
|
-
);
|
|
44
|
+
});
|
|
45
|
+
}, X = a.jsx("span", { className: "bitzResizableHandle", onClick: (e) => {
|
|
46
|
+
e.stopPropagation(), e.preventDefault();
|
|
47
|
+
} });
|
|
48
|
+
return a.jsx(v, { width: n, height: 0, handle: X, className: O("bitzResizable", {
|
|
49
|
+
disabledUserSelect: j
|
|
50
|
+
}), onResize: L, onResizeStart: D, onResizeStop: N, draggableOpts: { enableUserSelectHack: !1 }, children: a.jsx("th", { ...z }) });
|
|
73
51
|
};
|
|
74
52
|
export {
|
|
75
53
|
T as default
|
|
@@ -1,48 +1,26 @@
|
|
|
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
|
-
|
|
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);
|
|
3
|
+
import { restrictToVerticalAxis as D } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
|
|
4
|
+
import { SortableContext as u, verticalListSortingStrategy as S, arrayMove as j } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
|
|
5
|
+
import { useState as C } from "react";
|
|
6
|
+
function A({ children: i, enabledRowDragSort: x, dataSource: s, mergeRowKey: d, onDragEnd: l }) {
|
|
7
|
+
const [c, a] = C(-1), f = (t) => {
|
|
8
|
+
var o, e;
|
|
9
|
+
const { active: r } = t;
|
|
10
|
+
r && a((e = (o = r.data) == null ? void 0 : o.current) == null ? void 0 : e.sortable.index);
|
|
17
11
|
}, g = (t) => {
|
|
18
|
-
var
|
|
19
|
-
const { over:
|
|
20
|
-
if (
|
|
21
|
-
const m = (e = (
|
|
12
|
+
var o, e;
|
|
13
|
+
const { over: r } = t;
|
|
14
|
+
if (r) {
|
|
15
|
+
const m = (e = (o = r.data) == null ? void 0 : o.current) == null ? void 0 : e.sortable.index;
|
|
22
16
|
c !== m && p(c, m);
|
|
23
17
|
}
|
|
24
|
-
}, p = (t,
|
|
25
|
-
const
|
|
26
|
-
|
|
18
|
+
}, p = (t, r) => {
|
|
19
|
+
const o = j(s.slice() ?? [], t, r);
|
|
20
|
+
l(o), a(-1);
|
|
27
21
|
};
|
|
28
|
-
return x ?
|
|
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 });
|
|
22
|
+
return x ? n.jsx(v, { modifiers: [D], onDragStart: f, onDragEnd: g, onDragCancel: () => a(-1), children: n.jsx(u, { items: s.map((t) => t[d]), strategy: S, children: i }) }) : n.jsx(n.Fragment, { children: i });
|
|
45
23
|
}
|
|
46
24
|
export {
|
|
47
|
-
|
|
25
|
+
A as default
|
|
48
26
|
};
|
|
@@ -1,53 +1,29 @@
|
|
|
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 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.7/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) + 2px)",
|
|
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
|