bitz-react-admin-ui 1.9.7 → 1.9.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/dayjs.min.mjs +5 -2
- package/dist/_virtual/dayjs.min2.mjs +4 -0
- package/dist/components/BitzCalendar/index.mjs +1 -1
- package/dist/components/BitzDayJs/index.mjs +1 -1
- package/dist/components/BitzFluentInput/index.mjs +18 -18
- package/dist/components/BitzFluentSelect/index.mjs +13 -13
- package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
- package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
- package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
- package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
- package/dist/components/BitzMeetingTime/index.mjs +1 -1
- package/dist/components/BitzTable/Store/index.mjs +10 -8
- package/dist/components/BitzTable/Table/index.mjs +149 -139
- package/dist/components/BitzTable/Table/utils.mjs +12 -12
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.d.ts +2 -0
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnSettingModal.mjs +244 -236
- package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +32 -27
- package/dist/components/BitzTable/index.d.ts +4 -2
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/dayjs.min.mjs +292 -292
- package/dist/node_modules/.store/dayjs@1.11.10/node_modules/dayjs/locale/zh-cn.mjs +13 -13
- package/dist/style.css +1 -1
- package/dist/utils/time.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
import { j as o } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { useContext as A, useState as K, useMemo as i, useEffect as he, useRef as $, useCallback as
|
|
2
|
+
import { useContext as A, useState as K, useMemo as i, useEffect as he, useRef as $, useCallback as ue } from "react";
|
|
3
3
|
import { isMobile as O } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
|
|
4
|
-
import { Table as _, Skeleton as
|
|
4
|
+
import { Table as _, Skeleton as tt } from "antd";
|
|
5
5
|
import V from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
6
|
+
import nt from "../../BitzDrawer/index.mjs";
|
|
7
|
+
import ot from "../../BitzPagination/index.mjs";
|
|
8
|
+
import rt from "../../BitzNoData/index.mjs";
|
|
9
9
|
import "../../BitzList/index.less.mjs";
|
|
10
|
-
import
|
|
10
|
+
import st from "../../BitzList/List.mjs";
|
|
11
11
|
import "../../BitzPullRefresh/style/index.less.mjs";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { loopFilter as
|
|
12
|
+
import lt from "../../BitzPullRefresh/PullRefresh.mjs";
|
|
13
|
+
import it, { TableContext as at } from "../Store/index.mjs";
|
|
14
|
+
import { loopFilter as ct, columnSort as dt, genColumnKey as ht } from "../Store/utils/index.mjs";
|
|
15
15
|
import I from "../../../node_modules/.store/ahooks@3.7.10/node_modules/ahooks/es/useSize/index.mjs";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { BitzConfigContext as
|
|
19
|
-
import
|
|
16
|
+
import ut from "../ActionCol/style.mjs";
|
|
17
|
+
import mt from "../../BitzTheme/index.mjs";
|
|
18
|
+
import { BitzConfigContext as ft } from "../../BitzConfigProvider/context.mjs";
|
|
19
|
+
import bt from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/table/ExpandIcon.mjs";
|
|
20
20
|
import "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/index.mjs";
|
|
21
|
-
import
|
|
22
|
-
import { getColumnsWithTool as
|
|
23
|
-
import { getCssVar as
|
|
21
|
+
import gt from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/locale/en_US.mjs";
|
|
22
|
+
import { getColumnsWithTool as xt, loopBuildSkeleton as yt } from "./utils.mjs";
|
|
23
|
+
import { getCssVar as Ct } from "./style.mjs";
|
|
24
24
|
import "./index.less.mjs";
|
|
25
|
-
import { ConfigContext as
|
|
26
|
-
import
|
|
27
|
-
const
|
|
28
|
-
function
|
|
25
|
+
import { ConfigContext as pt } from "../../../node_modules/.store/antd@5.15.4/node_modules/antd/es/config-provider/context.mjs";
|
|
26
|
+
import wt from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
|
|
27
|
+
const me = [_.SELECTION_COLUMN, _.EXPAND_COLUMN];
|
|
28
|
+
function Bt({
|
|
29
29
|
rowHoverable: T,
|
|
30
30
|
fillEvenRow: S,
|
|
31
|
-
showPagination:
|
|
32
|
-
height:
|
|
31
|
+
showPagination: fe = !0,
|
|
32
|
+
height: k,
|
|
33
33
|
dataSource: s = [],
|
|
34
34
|
total: N = 0,
|
|
35
35
|
columns: w,
|
|
36
36
|
loading: d = !1,
|
|
37
|
-
skeletonNum:
|
|
37
|
+
skeletonNum: be = 2,
|
|
38
38
|
skeletonRender: q,
|
|
39
|
-
skeletonRowNum:
|
|
40
|
-
skeletonRowsWidth:
|
|
41
|
-
mobileLoadEmit:
|
|
39
|
+
skeletonRowNum: ge = 4,
|
|
40
|
+
skeletonRowsWidth: xe = ["35%", "100%", "100%", "60%"],
|
|
41
|
+
mobileLoadEmit: ye,
|
|
42
42
|
mobileRefreshEmit: F,
|
|
43
43
|
operationFilter: L,
|
|
44
|
-
enableControlPage:
|
|
45
|
-
pagination:
|
|
46
|
-
paginationEmit:
|
|
44
|
+
enableControlPage: Ce,
|
|
45
|
+
pagination: pe,
|
|
46
|
+
paginationEmit: we = () => {
|
|
47
47
|
},
|
|
48
|
-
mobilePageHeight:
|
|
49
|
-
mobileCancelText:
|
|
50
|
-
noDataTitle:
|
|
51
|
-
noDataImg:
|
|
52
|
-
color:
|
|
48
|
+
mobilePageHeight: jt = 500,
|
|
49
|
+
mobileCancelText: Be = "取消",
|
|
50
|
+
noDataTitle: je,
|
|
51
|
+
noDataImg: ve,
|
|
52
|
+
color: vt,
|
|
53
53
|
size: G,
|
|
54
|
-
showTableTool:
|
|
55
|
-
tableAction:
|
|
54
|
+
showTableTool: Te = !0,
|
|
55
|
+
tableAction: ke,
|
|
56
56
|
tableToolbar: ze,
|
|
57
|
-
selectionBar:
|
|
58
|
-
scroll:
|
|
57
|
+
selectionBar: Ne,
|
|
58
|
+
scroll: m,
|
|
59
59
|
components: M,
|
|
60
|
-
expandable:
|
|
61
|
-
rowSelection:
|
|
62
|
-
resetPage:
|
|
63
|
-
...
|
|
60
|
+
expandable: f,
|
|
61
|
+
rowSelection: C,
|
|
62
|
+
resetPage: Le,
|
|
63
|
+
...h
|
|
64
64
|
}) {
|
|
65
65
|
var ae;
|
|
66
|
-
const { token:
|
|
66
|
+
const { token: b } = mt.useToken(), { Table: a } = b, { tableSpaceBetweenPage: U = 10 } = a, { gap: Me } = ut(), g = A(at), { Table: c } = A(ft), [B, X] = K(!1), [Ee, E] = K(!1), Re = i(() => !!(s != null && s.length) && (s == null ? void 0 : s.length) >= N, [s, N]), [We, Pe] = K([]), De = (e, t) => {
|
|
67
67
|
var r;
|
|
68
68
|
const n = (r = L == null ? void 0 : L(e, t)) == null ? void 0 : r.filter(
|
|
69
69
|
(l) => l.type !== "divider"
|
|
70
70
|
);
|
|
71
|
-
n != null && n.length && (
|
|
71
|
+
n != null && n.length && (Pe(n), E(!0));
|
|
72
72
|
}, J = () => {
|
|
73
73
|
E(!1);
|
|
74
|
-
},
|
|
74
|
+
}, He = (e) => {
|
|
75
75
|
var t;
|
|
76
76
|
E(!1), (t = e.onClick) == null || t.call(e);
|
|
77
77
|
};
|
|
@@ -80,9 +80,9 @@ function wt({
|
|
|
80
80
|
(t = e.target) != null && t.classList.contains("bitzTableBlock") && (X(!!document.fullscreenElement), (r = (n = document.fullscreenElement) == null ? void 0 : n.classList) != null && r.contains("bitzTableBlock") || X(!1));
|
|
81
81
|
}), document == null ? void 0 : document.removeEventListener("fullscreenchange", () => {
|
|
82
82
|
})), []);
|
|
83
|
-
const
|
|
83
|
+
const x = $(null), R = I(x), Q = $(null), W = I(Q), Y = $(null), j = I(Y), Ae = () => {
|
|
84
84
|
var n;
|
|
85
|
-
const e = (n =
|
|
85
|
+
const e = (n = x.current) == null ? void 0 : n.querySelectorAll(
|
|
86
86
|
"& > .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)"
|
|
87
87
|
), t = [];
|
|
88
88
|
if (e == null || e.forEach((r) => {
|
|
@@ -91,81 +91,81 @@ function wt({
|
|
|
91
91
|
((l = r.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : l.clientWidth) || 0
|
|
92
92
|
);
|
|
93
93
|
}), t.length)
|
|
94
|
-
return Math.ceil(Math.max(...t)) +
|
|
94
|
+
return Math.ceil(Math.max(...t)) + Me * 2;
|
|
95
95
|
}, Z = () => {
|
|
96
96
|
var l;
|
|
97
|
-
const e = (l =
|
|
97
|
+
const e = (l = x.current) == null ? void 0 : l.querySelector(
|
|
98
98
|
"& > .bitzTableContainerBody > .ant-table-wrapper.bitzTable > .ant-spin-nested-loading > .ant-spin-container > .ant-table > .ant-table-container > .ant-table-body"
|
|
99
99
|
), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t, r = n > 0;
|
|
100
100
|
return { tbodyWidth: t, scrollBarWidth: n, hasScrollBar: r };
|
|
101
101
|
}, { y: P, hasScrollBar: ee } = i(() => {
|
|
102
|
-
if (typeof
|
|
102
|
+
if (typeof k > "u")
|
|
103
103
|
return {};
|
|
104
104
|
const { hasScrollBar: e } = Z();
|
|
105
105
|
let t = 40, n = 40;
|
|
106
|
-
if (
|
|
107
|
-
const
|
|
108
|
-
t = parseInt(
|
|
106
|
+
if (x.current) {
|
|
107
|
+
const z = window.getComputedStyle(x.current);
|
|
108
|
+
t = parseInt(z.getPropertyValue("--cell-height")), n = parseInt(z.getPropertyValue("--toolbar-height"));
|
|
109
109
|
}
|
|
110
110
|
const r = (j == null ? void 0 : j.height) || 0, l = r ? U : 0;
|
|
111
|
-
return { y: (B ? window.innerHeight :
|
|
111
|
+
return { y: (B ? window.innerHeight : k) - r - l - n - t, hasScrollBar: e };
|
|
112
112
|
}, [
|
|
113
113
|
B,
|
|
114
|
-
|
|
114
|
+
k,
|
|
115
115
|
j == null ? void 0 : j.height,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
]), te = i(() =>
|
|
119
|
-
const t = e.length, n = e.filter((
|
|
116
|
+
R == null ? void 0 : R.height,
|
|
117
|
+
W == null ? void 0 : W.height
|
|
118
|
+
]), te = i(() => m != null && m.x ? { x: m.x, y: m.y || P } : m != null && m.y ? { x: 1e3, y: m.y } : { x: 1e3, y: P }, [m, P]), Ke = (e) => {
|
|
119
|
+
const t = e.length, n = e.filter((y) => y.width), l = n.map((y) => y.width).reduce((y, H) => y + H, 0);
|
|
120
120
|
let v = 0;
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
|
|
121
|
+
if (x.current) {
|
|
122
|
+
const y = window.getComputedStyle(x.current), H = parseInt(
|
|
123
|
+
y.getPropertyValue("--toolCell-paddingInline")
|
|
124
124
|
);
|
|
125
|
-
v = parseInt(
|
|
125
|
+
v = parseInt(y.getPropertyValue("--fontSize")) + 4 + 2 * H;
|
|
126
126
|
}
|
|
127
|
-
let
|
|
128
|
-
|
|
129
|
-
const { tbodyWidth: ce } = Z(),
|
|
127
|
+
let u = 0;
|
|
128
|
+
C && (u += v), f && (u += v);
|
|
129
|
+
const { tbodyWidth: ce } = Z(), z = parseInt(`${te.x}`) || 0, et = Math.max(z, ce), de = (parseInt(`${et}`) || 0) - l - u;
|
|
130
130
|
return de >= 0 ? de / (t - n.length) : void 0;
|
|
131
|
-
},
|
|
132
|
-
const e = w ?? [], t = e.filter((
|
|
131
|
+
}, p = i(() => {
|
|
132
|
+
const e = w ?? [], t = e.filter((u) => !me.includes(u)), r = ct(t, g.columnsMap).sort(dt(g.columnsMap));
|
|
133
133
|
if (O)
|
|
134
134
|
return r;
|
|
135
|
-
const l =
|
|
136
|
-
...
|
|
137
|
-
...
|
|
138
|
-
width:
|
|
135
|
+
const l = Ke(r), v = r.map((u) => ({
|
|
136
|
+
...u,
|
|
137
|
+
...u.width ? {
|
|
138
|
+
width: u.useMaxWidth ? Ae() ?? u.width : u.width
|
|
139
139
|
} : {
|
|
140
140
|
// 给未设置width的列设置平均数
|
|
141
141
|
width: l
|
|
142
142
|
}
|
|
143
143
|
}));
|
|
144
|
-
return
|
|
145
|
-
}, [w,
|
|
144
|
+
return xt(e, v, C, f);
|
|
145
|
+
}, [w, g.columnsMap, g.sortKeyColumns]);
|
|
146
146
|
he(() => {
|
|
147
147
|
if (w && w.length > 0) {
|
|
148
148
|
const e = w.map(
|
|
149
149
|
(t) => (
|
|
150
150
|
// @ts-ignore
|
|
151
|
-
|
|
151
|
+
ht((t == null ? void 0 : t.key) ?? (t == null ? void 0 : t.dataIndex), t == null ? void 0 : t.dataIndex)
|
|
152
152
|
)
|
|
153
153
|
);
|
|
154
|
-
|
|
154
|
+
g.setSortKeyColumns(e);
|
|
155
155
|
}
|
|
156
156
|
}, [w]);
|
|
157
|
-
const ne = i(() =>
|
|
157
|
+
const ne = i(() => yt(p, me), [p]), $e = i(() => d ? ne : p, [d, p, ne]), oe = i(() => {
|
|
158
158
|
const e = s == null ? void 0 : s.length, t = e > 4 ? e >= 20 ? 20 : e : 4;
|
|
159
159
|
return Array.from({ length: t }).map((r, l) => ({
|
|
160
160
|
key: `${Date.now()}${l}`
|
|
161
161
|
}));
|
|
162
|
-
}, [s]),
|
|
163
|
-
if (
|
|
162
|
+
}, [s]), Oe = i(() => d ? oe : s, [d, s, oe]), { table: D, locale: Ve = gt } = A(pt), Ie = { ...Ve.Table }, _e = ((ae = D == null ? void 0 : D.expandable) == null ? void 0 : ae.expandIcon) || (f == null ? void 0 : f.expandIcon) || bt(Ie), re = i(() => {
|
|
163
|
+
if (f)
|
|
164
164
|
return {
|
|
165
|
-
...
|
|
165
|
+
...f,
|
|
166
166
|
expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
|
|
167
167
|
expandIcon: (e) => {
|
|
168
|
-
const t =
|
|
168
|
+
const t = _e(e);
|
|
169
169
|
return {
|
|
170
170
|
...t,
|
|
171
171
|
props: {
|
|
@@ -173,51 +173,60 @@ function wt({
|
|
|
173
173
|
disabled: !0,
|
|
174
174
|
style: {
|
|
175
175
|
...t.props.style,
|
|
176
|
-
backgroundColor:
|
|
176
|
+
backgroundColor: b.colorBgContainerDisabled
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
-
}, [
|
|
183
|
-
if (
|
|
182
|
+
}, [f]), Se = i(() => d ? re : f, [d, f, re]), se = i(() => {
|
|
183
|
+
if (C)
|
|
184
184
|
return {
|
|
185
|
-
...
|
|
185
|
+
...C,
|
|
186
186
|
selectedRowKeys: [],
|
|
187
187
|
getCheckboxProps: () => ({ disabled: !0 })
|
|
188
188
|
};
|
|
189
|
-
}, [
|
|
189
|
+
}, [C]), qe = i(() => d ? se : C, [d, C, se]), Fe = i(() => d ? void 0 : h.rowKey, [d, h.rowKey]), le = i(() => `${G ?? (g == null ? void 0 : g.tableSize)}BitzTable`, [G, g.tableSize]), Ge = i(() => h.bordered ?? (c == null ? void 0 : c.bordered), [h.bordered, c == null ? void 0 : c.bordered]), Ue = ue(
|
|
190
|
+
(e, t) => {
|
|
191
|
+
var r;
|
|
192
|
+
if (!h.onRow)
|
|
193
|
+
return {};
|
|
194
|
+
const n = (r = h.onRow) == null ? void 0 : r.call(h, e, t);
|
|
195
|
+
return n.onClick && (n.className = "rowPointerCursor"), n;
|
|
196
|
+
},
|
|
197
|
+
[h.onRow]
|
|
198
|
+
), Xe = i(() => V(
|
|
190
199
|
"bitzTableContainer",
|
|
191
200
|
/* "hideBorder", */
|
|
192
201
|
{ hasScrollBar: ee },
|
|
193
202
|
le
|
|
194
|
-
), [le, ee, B]),
|
|
195
|
-
"--container-bgColor":
|
|
196
|
-
}), [
|
|
203
|
+
), [le, ee, B]), Je = i(() => ({
|
|
204
|
+
"--container-bgColor": b.colorBgContainer
|
|
205
|
+
}), [b.colorBgContainer]), Qe = i(() => {
|
|
197
206
|
const e = S ?? (c == null ? void 0 : c.fillEvenRow) ?? !0;
|
|
198
|
-
return
|
|
199
|
-
height: B ? "100%" :
|
|
200
|
-
evenRowBgColor: e ? a == null ? void 0 : a.evenRowBgColor :
|
|
201
|
-
colorBgContainer:
|
|
207
|
+
return Ct({
|
|
208
|
+
height: B ? "100%" : k,
|
|
209
|
+
evenRowBgColor: e ? a == null ? void 0 : a.evenRowBgColor : b.colorBgContainer,
|
|
210
|
+
colorBgContainer: b.colorBgContainer,
|
|
202
211
|
table: a,
|
|
203
212
|
gap: U,
|
|
204
|
-
borderColor: (a == null ? void 0 : a.borderColor) ||
|
|
213
|
+
borderColor: (a == null ? void 0 : a.borderColor) || b.colorBorderSecondary
|
|
205
214
|
});
|
|
206
|
-
}, [B,
|
|
215
|
+
}, [B, k, a, S, c == null ? void 0 : c.fillEvenRow]), Ye = ue(
|
|
207
216
|
(e, t, n) => {
|
|
208
217
|
const r = t % 2 === 0 ? "oddRow" : "evenRow";
|
|
209
|
-
if (
|
|
210
|
-
const l =
|
|
218
|
+
if (h.rowClassName) {
|
|
219
|
+
const l = h.rowClassName(e, t, n);
|
|
211
220
|
return V(r, l);
|
|
212
221
|
}
|
|
213
222
|
return r;
|
|
214
223
|
},
|
|
215
|
-
[
|
|
224
|
+
[h.rowClassName]
|
|
216
225
|
), ie = /* @__PURE__ */ o.jsx(
|
|
217
|
-
|
|
226
|
+
st,
|
|
218
227
|
{
|
|
219
|
-
finished:
|
|
220
|
-
onLoad:
|
|
228
|
+
finished: Re,
|
|
229
|
+
onLoad: ye,
|
|
221
230
|
loadingText: "加载中...",
|
|
222
231
|
finishedText: "没有更多了",
|
|
223
232
|
errorText: "加载失败",
|
|
@@ -232,14 +241,14 @@ function wt({
|
|
|
232
241
|
{
|
|
233
242
|
className: "listItem",
|
|
234
243
|
style: { backgroundColor: a == null ? void 0 : a.listItemBgColor },
|
|
235
|
-
onClick: () =>
|
|
236
|
-
children:
|
|
244
|
+
onClick: () => De(e, t),
|
|
245
|
+
children: p == null ? void 0 : p.map((n, r) => {
|
|
237
246
|
var l;
|
|
238
247
|
return !(n != null && n.mobileHide) && /* @__PURE__ */ o.jsxs(
|
|
239
248
|
"div",
|
|
240
249
|
{
|
|
241
250
|
className: "row",
|
|
242
|
-
style: { color:
|
|
251
|
+
style: { color: b.colorText },
|
|
243
252
|
children: [
|
|
244
253
|
!n.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
|
|
245
254
|
`${n.title}`,
|
|
@@ -247,7 +256,7 @@ function wt({
|
|
|
247
256
|
] }),
|
|
248
257
|
/* @__PURE__ */ o.jsx("div", { className: "value", children: ((l = n == null ? void 0 : n.render) == null ? void 0 : l.call(
|
|
249
258
|
n,
|
|
250
|
-
|
|
259
|
+
wt(e, (n == null ? void 0 : n.dataIndex) || ""),
|
|
251
260
|
e,
|
|
252
261
|
t
|
|
253
262
|
)) || (e == null ? void 0 : e[n.dataIndex]) })
|
|
@@ -259,18 +268,18 @@ function wt({
|
|
|
259
268
|
},
|
|
260
269
|
t
|
|
261
270
|
)),
|
|
262
|
-
d && Array.from({ length:
|
|
271
|
+
d && Array.from({ length: be }).map((e, t) => /* @__PURE__ */ o.jsx(
|
|
263
272
|
"div",
|
|
264
273
|
{
|
|
265
274
|
className: "listItem",
|
|
266
275
|
style: { backgroundColor: a == null ? void 0 : a.listItemBgColor },
|
|
267
276
|
children: /* @__PURE__ */ o.jsx("div", { className: "row", children: q ? q() : /* @__PURE__ */ o.jsx(
|
|
268
|
-
|
|
277
|
+
tt,
|
|
269
278
|
{
|
|
270
279
|
title: !1,
|
|
271
280
|
paragraph: {
|
|
272
|
-
rows:
|
|
273
|
-
width:
|
|
281
|
+
rows: ge,
|
|
282
|
+
width: xe
|
|
274
283
|
},
|
|
275
284
|
active: !0
|
|
276
285
|
}
|
|
@@ -282,7 +291,7 @@ function wt({
|
|
|
282
291
|
}
|
|
283
292
|
)
|
|
284
293
|
}
|
|
285
|
-
),
|
|
294
|
+
), Ze = i(() => {
|
|
286
295
|
if (M)
|
|
287
296
|
return M;
|
|
288
297
|
if (!(T ?? (c == null ? void 0 : c.rowHoverable) ?? !0))
|
|
@@ -296,56 +305,57 @@ function wt({
|
|
|
296
305
|
"div",
|
|
297
306
|
{
|
|
298
307
|
className: V("bitzTableBlock", { fullscreen: B }),
|
|
299
|
-
style:
|
|
308
|
+
style: Je,
|
|
300
309
|
children: [
|
|
301
|
-
!O && /* @__PURE__ */ o.jsxs("div", { ref:
|
|
310
|
+
!O && /* @__PURE__ */ o.jsxs("div", { ref: x, className: Xe, style: Qe, children: [
|
|
302
311
|
/* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: Q, children: [
|
|
303
|
-
|
|
304
|
-
|
|
312
|
+
Te && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
|
|
313
|
+
ke || /* @__PURE__ */ o.jsx("div", {}),
|
|
305
314
|
ze,
|
|
306
|
-
|
|
315
|
+
Ne
|
|
307
316
|
] }),
|
|
308
317
|
/* @__PURE__ */ o.jsx(
|
|
309
318
|
_,
|
|
310
319
|
{
|
|
311
|
-
...
|
|
312
|
-
bordered:
|
|
313
|
-
columns:
|
|
314
|
-
dataSource:
|
|
320
|
+
...h,
|
|
321
|
+
bordered: Ge,
|
|
322
|
+
columns: $e,
|
|
323
|
+
dataSource: Oe,
|
|
315
324
|
loading: !1,
|
|
316
325
|
pagination: !1,
|
|
317
326
|
scroll: te,
|
|
318
|
-
expandable:
|
|
319
|
-
rowSelection:
|
|
320
|
-
|
|
327
|
+
expandable: Se,
|
|
328
|
+
rowSelection: qe,
|
|
329
|
+
onRow: Ue,
|
|
330
|
+
rowClassName: Ye,
|
|
321
331
|
className: "bitzTable",
|
|
322
|
-
components:
|
|
323
|
-
rowKey:
|
|
332
|
+
components: Ze,
|
|
333
|
+
rowKey: Fe
|
|
324
334
|
}
|
|
325
335
|
)
|
|
326
336
|
] }),
|
|
327
|
-
|
|
328
|
-
|
|
337
|
+
fe && /* @__PURE__ */ o.jsx(
|
|
338
|
+
ot,
|
|
329
339
|
{
|
|
330
340
|
size: "small",
|
|
331
341
|
elRefInstance: Y,
|
|
332
|
-
enableControl:
|
|
333
|
-
pagination:
|
|
342
|
+
enableControl: Ce,
|
|
343
|
+
pagination: pe,
|
|
334
344
|
total: N,
|
|
335
345
|
dataSource: s,
|
|
336
|
-
resetPage:
|
|
337
|
-
paginationEmit:
|
|
346
|
+
resetPage: Le,
|
|
347
|
+
paginationEmit: we
|
|
338
348
|
}
|
|
339
349
|
)
|
|
340
350
|
] }),
|
|
341
351
|
O && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
342
|
-
(d || (s == null ? void 0 : s.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: F ? /* @__PURE__ */ o.jsx(
|
|
343
|
-
!d && /* @__PURE__ */ o.jsx(
|
|
352
|
+
(d || (s == null ? void 0 : s.length) > 0) && /* @__PURE__ */ o.jsx(o.Fragment, { children: F ? /* @__PURE__ */ o.jsx(lt, { onRefresh: F, children: ie }) : ie }),
|
|
353
|
+
!d && /* @__PURE__ */ o.jsx(rt, { data: s, title: je, img: ve }),
|
|
344
354
|
/* @__PURE__ */ o.jsx(
|
|
345
|
-
|
|
355
|
+
nt,
|
|
346
356
|
{
|
|
347
357
|
className: "tableMobileDrawer",
|
|
348
|
-
open:
|
|
358
|
+
open: Ee,
|
|
349
359
|
placement: "bottom",
|
|
350
360
|
height: "auto",
|
|
351
361
|
closable: !1,
|
|
@@ -355,16 +365,16 @@ function wt({
|
|
|
355
365
|
"div",
|
|
356
366
|
{
|
|
357
367
|
className: "operaList",
|
|
358
|
-
onClick: () =>
|
|
368
|
+
onClick: () => He(e),
|
|
359
369
|
...e.danger && {
|
|
360
|
-
style: { color:
|
|
370
|
+
style: { color: b.colorError }
|
|
361
371
|
},
|
|
362
372
|
children: e.label
|
|
363
373
|
},
|
|
364
374
|
t
|
|
365
375
|
)) }),
|
|
366
376
|
/* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
|
|
367
|
-
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: J, children:
|
|
377
|
+
/* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: J, children: Be })
|
|
368
378
|
] })
|
|
369
379
|
}
|
|
370
380
|
)
|
|
@@ -373,7 +383,7 @@ function wt({
|
|
|
373
383
|
}
|
|
374
384
|
);
|
|
375
385
|
}
|
|
376
|
-
const
|
|
386
|
+
const Yt = (T) => /* @__PURE__ */ o.jsx(it, { initValue: T, children: /* @__PURE__ */ o.jsx(Bt, { ...T }) });
|
|
377
387
|
export {
|
|
378
|
-
|
|
388
|
+
Yt as default
|
|
379
389
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { j as f } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
|
|
2
|
-
import { Skeleton as x, Table as
|
|
3
|
-
function a(o,
|
|
2
|
+
import { Skeleton as x, Table as l } from "antd";
|
|
3
|
+
function a(o, r) {
|
|
4
4
|
return o == null ? void 0 : o.map((e) => {
|
|
5
5
|
const n = { ...e };
|
|
6
|
-
return e != null && e.isOperationCol || e != null && e.
|
|
6
|
+
return e != null && e.isOperationCol || e != null && e.isCheckboxCol || e != null && e.isExpandIconCol || r.includes(e) ? e : (n != null && n.children && (n.children = a(n == null ? void 0 : n.children, r)), {
|
|
7
7
|
...n,
|
|
8
8
|
sorter: !1,
|
|
9
|
-
render: (
|
|
9
|
+
render: (d, i, t) => /* @__PURE__ */ f.jsx(
|
|
10
10
|
x,
|
|
11
11
|
{
|
|
12
12
|
active: !0,
|
|
13
13
|
title: !1,
|
|
14
14
|
paragraph: {
|
|
15
15
|
rows: 1,
|
|
16
|
-
width: (
|
|
16
|
+
width: (t + 1) % 2 === 0 ? "100%" : "60%"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
)
|
|
@@ -21,18 +21,18 @@ function a(o, t) {
|
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
23
|
const C = 0, c = 1;
|
|
24
|
-
function s(o,
|
|
25
|
-
let
|
|
24
|
+
function s(o, r, e, n) {
|
|
25
|
+
let d = C;
|
|
26
26
|
if (e) {
|
|
27
|
-
const i = o.indexOf(
|
|
28
|
-
i >= 0 && (
|
|
27
|
+
const i = o.indexOf(l.SELECTION_COLUMN);
|
|
28
|
+
i >= 0 && (d = i), r.splice(d, 0, l.SELECTION_COLUMN);
|
|
29
29
|
}
|
|
30
30
|
if (n) {
|
|
31
31
|
let i = 0;
|
|
32
|
-
const
|
|
33
|
-
|
|
32
|
+
const t = o.indexOf(l.EXPAND_COLUMN);
|
|
33
|
+
t >= 0 && (i = t), e && d === 0 && t === -1 && (i = c), r.splice(i, 0, l.EXPAND_COLUMN);
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return r;
|
|
36
36
|
}
|
|
37
37
|
export {
|
|
38
38
|
s as getColumnsWithTool,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ModalProps } from 'antd';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { BitzTableToolBarProps } from '..';
|
|
3
4
|
import './index.less';
|
|
4
5
|
export interface ColConfigModalProps {
|
|
5
6
|
onChange?: BitzTableToolBarProps['onColumnChange'];
|
|
7
|
+
getContainer: ModalProps['getContainer'];
|
|
6
8
|
}
|
|
7
9
|
declare const ColConfigModal: React.FC<ColConfigModalProps & import("@ebay/nice-modal-react").NiceModalHocProps>;
|
|
8
10
|
export default ColConfigModal;
|