bitz-react-admin-ui 2.6.1 → 2.6.3

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.
Files changed (44) hide show
  1. package/dist/_virtual/dayjs.min.mjs +2 -5
  2. package/dist/components/BitzCalendar/index.mjs +1 -1
  3. package/dist/components/BitzConfigProvider/context.d.ts +7 -1
  4. package/dist/components/BitzDayJs/index.mjs +1 -1
  5. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +1 -1
  6. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +1 -1
  7. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +1 -1
  8. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +1 -1
  9. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +1 -1
  10. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +1 -1
  11. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +1 -1
  12. package/dist/components/BitzFuiCalendar/ColumnData.mjs +1 -1
  13. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +1 -1
  14. package/dist/components/BitzMeetingTime/index.mjs +1 -1
  15. package/dist/components/BitzTable/ActionCol/index.mjs +73 -73
  16. package/dist/components/BitzTable/Store/index.d.ts +30 -0
  17. package/dist/components/BitzTable/Store/index.mjs +246 -217
  18. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
  19. package/dist/components/BitzTable/Store/utils/index.mjs +12 -12
  20. package/dist/components/BitzTable/Table/index.d.ts +9 -1
  21. package/dist/components/BitzTable/Table/index.mjs +425 -403
  22. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +103 -95
  23. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +2 -1
  24. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +243 -197
  25. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +141 -105
  26. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.d.ts +8 -0
  27. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/ScopeSwitch.mjs +23 -0
  28. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +127 -74
  29. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +76 -25
  30. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +151 -96
  31. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +29 -27
  32. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +19 -9
  33. package/dist/components/BitzTable/ToolBar/Modal/style.d.ts +4 -0
  34. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +42 -14
  35. package/dist/components/BitzTable/index.d.ts +2 -0
  36. package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/dayjs.min.mjs +292 -292
  37. package/dist/node_modules/.store/dayjs@1.11.11/node_modules/dayjs/locale/zh-cn.mjs +13 -13
  38. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +34 -37
  39. package/dist/style.css +1 -1
  40. package/dist/utils/time.mjs +1 -1
  41. package/package.json +1 -1
  42. package/dist/_virtual/dayjs.min2.mjs +0 -4
  43. package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useDebounceFn/index.mjs +0 -29
  44. package/dist/node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/utils/lodash-polyfill.mjs +0 -7
@@ -1,253 +1,267 @@
1
- import { j as r } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as pe, useState as z, useEffect as O, useMemo as i, useRef as D, useCallback as v } from "react";
3
- import { isMobile as b } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
- import { Typography as de, Skeleton as Pt, Table as Lt, Spin as Rt } from "antd";
5
- import A from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
- import Ht from "../../BitzDrawer/index.mjs";
7
- import Kt from "../../BitzPagination/index.mjs";
8
- import $t from "../../BitzNoData/index.mjs";
1
+ import { j as o } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as _e, useState as _, useEffect as we, useMemo as u, useRef as X, useLayoutEffect as ve, useCallback as ie } from "react";
3
+ import { isMobile as j } from "../../../node_modules/.store/react-device-detect@2.2.3/node_modules/react-device-detect/dist/lib.mjs";
4
+ import { Typography as xe, Skeleton as $t, Table as Kt, Spin as Ot } from "antd";
5
+ import ce from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
6
+ import qt from "../../BitzDrawer/index.mjs";
7
+ import Vt from "../../BitzPagination/index.mjs";
8
+ import It from "../../BitzNoData/index.mjs";
9
9
  import "../../BitzList/index.less.mjs";
10
- import qt from "../../BitzList/List.mjs";
10
+ import Dt from "../../BitzList/List.mjs";
11
11
  import "../../BitzPullRefresh/style/index.less.mjs";
12
- import pt from "../../BitzPullRefresh/PullRefresh.mjs";
13
- import Ot, { BitzTableContext as Dt, toolCols as Vt } from "../Store/index.mjs";
14
- import { loopFilter as _t, columnSort as Gt, genColumnKey as Oe } from "../Store/utils/index.mjs";
15
- import Yt from "../../../node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useDebounceFn/index.mjs";
16
- import De from "../../../node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useSize/index.mjs";
17
- import It from "../../BitzTheme/index.mjs";
18
- import { tablePaddingInline as Jt } from "../../BitzConfigProvider/context.mjs";
19
- import Ve from "../../BitzHighlight/index.mjs";
20
- import Qt from "../../../node_modules/.store/antd@5.18.3/node_modules/antd/es/table/ExpandIcon.mjs";
12
+ import _t from "../../BitzPullRefresh/PullRefresh.mjs";
13
+ import vt, { BitzTableContext as Gt, toolCols as Yt } from "../Store/index.mjs";
14
+ import { loopFilter as Jt, columnSort as Qt, genColumnKey as ge } from "../Store/utils/index.mjs";
15
+ import Ge from "../../../node_modules/.store/ahooks@3.8.0/node_modules/ahooks/es/useSize/index.mjs";
16
+ import Ut from "../../BitzTheme/index.mjs";
17
+ import { tablePaddingInline as Xt } from "../../BitzConfigProvider/context.mjs";
18
+ import Ye from "../../BitzHighlight/index.mjs";
19
+ import Zt from "../../../node_modules/.store/antd@5.18.3/node_modules/antd/es/table/ExpandIcon.mjs";
21
20
  import "../../../node_modules/.store/antd@5.18.3/node_modules/antd/es/config-provider/index.mjs";
22
- import Ut from "../../../node_modules/.store/antd@5.18.3/node_modules/antd/locale/en_US.mjs";
23
- import { getColumnsWithTool as Xt, loopBuildSkeleton as Zt, resetScroll as _e } from "./utils.mjs";
24
- import { getCssVar as Et } from "./style.mjs";
25
- import vt from "./SortableRow.mjs";
26
- import At from "./SortTableContext.mjs";
27
- import Ft from "./ResizableTitle copy.mjs";
28
- import es from "../TextOverflow/index.mjs";
21
+ import Et from "../../../node_modules/.store/antd@5.18.3/node_modules/antd/locale/en_US.mjs";
22
+ import { getColumnsWithTool as At, loopBuildSkeleton as Ft, resetScroll as Je } from "./utils.mjs";
23
+ import { getCssVar as es } from "./style.mjs";
24
+ import ts from "./SortableRow.mjs";
25
+ import ss from "./SortTableContext.mjs";
26
+ import os from "./ResizableTitle copy.mjs";
27
+ import ns from "../TextOverflow/index.mjs";
29
28
  import "./index.less.mjs";
30
- import { ConfigContext as ts } from "../../../node_modules/.store/antd@5.18.3/node_modules/antd/es/config-provider/context.mjs";
31
- import ss from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
32
- function rs({
33
- showPagination: V = !0,
34
- height: B,
35
- minHeight: Y,
36
- dataSource: C,
37
- total: N = 0,
38
- columns: F,
39
- loading: c,
40
- skeletonNum: I = {
29
+ import { ConfigContext as rs } from "../../../node_modules/.store/antd@5.18.3/node_modules/antd/es/config-provider/context.mjs";
30
+ import ls from "../../../node_modules/.store/lodash-es@4.17.21/node_modules/lodash-es/at.mjs";
31
+ function is({
32
+ showPagination: Z = !0,
33
+ height: L,
34
+ minHeight: ee,
35
+ dataSource: z,
36
+ total: H = 0,
37
+ columns: ae,
38
+ loading: a,
39
+ dataProps: Qe = {},
40
+ skeletonNum: te = {
41
41
  pc: 10,
42
42
  mobile: 10
43
43
  },
44
- skeletonRender: ee,
45
- skeletonRowNum: Ge = 4,
46
- skeletonRowsWidth: Ye = ["35%", "100%", "100%", "60%"],
44
+ skeletonRender: de,
45
+ skeletonRowNum: Ue = 4,
46
+ skeletonRowsWidth: Xe = ["35%", "100%", "100%", "60%"],
47
47
  // mobileLoadEmit,
48
- mobileRefreshEmit: he,
49
- operationFilter: a,
50
- enableControlPage: Ie,
51
- pagination: x,
52
- paginationEmit: $ = () => {
48
+ mobileRefreshEmit: Te,
49
+ operationFilter: d,
50
+ enableControlPage: Ze,
51
+ pagination: N,
52
+ paginationEmit: v = () => {
53
53
  },
54
- onChange: te,
55
- enabledRowDragSort: q,
56
- onRowDragEnd: se,
57
- resizableColumns: J,
58
- mobilePageHeight: ns = 500,
59
- mobileCancelText: Je = "取消",
60
- noDataTitle: Qe,
61
- noDataImg: Ue,
62
- color: os,
63
- size: me,
64
- showTableTool: Xe = !0,
65
- tableAction: Ze,
66
- tableToolbar: Ee,
67
- selectionBar: ve,
68
- scroll: u,
69
- components: S,
70
- expandable: w,
71
- rowSelection: H,
72
- selectionAlert: h,
73
- resetPage: Ae,
74
- ...d
54
+ onChange: fe,
55
+ enabledRowDragSort: G,
56
+ onRowDragEnd: ue,
57
+ resizableColumns: se,
58
+ mobilePageHeight: cs = 500,
59
+ mobileCancelText: Ee = "取消",
60
+ noDataTitle: Ae,
61
+ noDataImg: Fe,
62
+ color: as,
63
+ size: je,
64
+ showTableTool: et = !0,
65
+ tableAction: tt,
66
+ tableToolbar: st,
67
+ selectionBar: ot,
68
+ scroll: h,
69
+ components: R,
70
+ expandable: W,
71
+ rowSelection: q,
72
+ selectionAlert: y,
73
+ resetPage: nt,
74
+ ...C
75
75
  }) {
76
- var qe;
77
- const { token: g } = It.useToken(), { Table: f } = g, be = f.tableSpaceBetweenPage ?? 10, Fe = f.cellPaddingInline ?? Jt, Q = f.minHeight ?? 500, { showColumnBorder: U, hideRowBorder: ye, rowHoverable: et, ...l } = pe(Dt), [tt, X] = z(!1), [y, st] = z([]);
78
- O(() => {
79
- let e = [...C ?? []];
80
- (x == null ? void 0 : x.page) !== 1 && (e = [...y, ...e]), st(e);
81
- }, [b ? C : 0]);
82
- const Ce = i(() => !!(y != null && y.length) && (y == null ? void 0 : y.length) >= N, [y, N]), [Z, rt] = z([]), [nt, xe] = z(!1), ot = async (e, t) => {
83
- var o, m, T;
76
+ var Ie;
77
+ const { token: S } = Ut.useToken(), { Table: m } = S, ke = m.tableSpaceBetweenPage ?? 10, rt = m.cellPaddingInline ?? Xt, oe = m.minHeight ?? 500, { showColumnBorder: V, hideRowBorder: ze, rowHoverable: lt, ...i } = _e(Gt), [it, ne] = _(!1), [k, ct] = _([]);
78
+ we(() => {
79
+ let e = [...z ?? []];
80
+ (N == null ? void 0 : N.page) !== 1 && (e = [...k, ...e]), ct(e);
81
+ }, [j ? z : 0]);
82
+ const Ne = u(() => !!(k != null && k.length) && (k == null ? void 0 : k.length) >= H, [k, H]), [re, at] = _([]), [dt, Be] = _(!1), ft = async (e, t) => {
83
+ var r, l, f;
84
84
  let s, n = !1;
85
- if (typeof a == "function")
86
- s = (o = a == null ? void 0 : a(e, t)) == null ? void 0 : o.filter(
87
- (j) => j.type !== "divider"
85
+ if (typeof d == "function")
86
+ s = (r = d == null ? void 0 : d(e, t)) == null ? void 0 : r.filter(
87
+ (c) => c.type !== "divider"
88
88
  );
89
- else if (s = (m = a == null ? void 0 : a.custom) == null ? void 0 : m.call(a, e, t), a != null && a.request) {
90
- xe(!0), X(!0), n = !0;
89
+ else if (s = (l = d == null ? void 0 : d.custom) == null ? void 0 : l.call(d, e, t), d != null && d.request) {
90
+ Be(!0), ne(!0), n = !0;
91
91
  try {
92
- const j = await (a == null ? void 0 : a.request(e, t));
93
- (T = a.fieldsName) != null && T.label ? s = j == null ? void 0 : j.map((_) => {
94
- var G;
92
+ const c = await (d == null ? void 0 : d.request(e, t));
93
+ (f = d.fieldsName) != null && f.label ? s = c == null ? void 0 : c.map((b) => {
94
+ var g;
95
95
  return {
96
- ..._,
97
- label: _ == null ? void 0 : _[((G = a.fieldsName) == null ? void 0 : G.label) ?? "label"]
96
+ ...b,
97
+ label: b == null ? void 0 : b[((g = d.fieldsName) == null ? void 0 : g.label) ?? "label"]
98
98
  };
99
- }) : s = j ?? [];
99
+ }) : s = c ?? [];
100
100
  } finally {
101
- xe(!1);
101
+ Be(!1);
102
102
  }
103
103
  }
104
- s != null && s.length && (rt(s), n || X(!0));
105
- }, we = () => {
106
- X(!1);
107
- }, lt = (e, t) => {
104
+ s != null && s.length && (at(s), n || ne(!0));
105
+ }, We = () => {
106
+ ne(!1);
107
+ }, ut = (e, t) => {
108
108
  var s, n;
109
- X(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof a != "function" && (a != null && a.onClick) && a.onClick((n = Z == null ? void 0 : Z[t]) == null ? void 0 : n.key);
110
- }, re = D(null), ge = D(null), k = D(null), ne = D(null), oe = De(ne), le = D(null), p = De(le), ct = (...e) => {
111
- _e(re), te == null || te(...e);
112
- }, it = (...e) => {
113
- _e(re), $ == null || $(...e);
114
- }, W = i(() => !(u != null && u.auto) && J, [u == null ? void 0 : u.auto, J]), je = () => {
109
+ ne(!1), (s = e.onClick) == null || s.call(e), !(e != null && e.onClick) && typeof d != "function" && (d != null && d.onClick) && d.onClick((n = re == null ? void 0 : re[t]) == null ? void 0 : n.key);
110
+ }, he = X(null), Se = X(null), p = X(null), Y = X(null), J = Ge(Y), me = X(null), Q = Ge(me), ht = (...e) => {
111
+ Je(he), fe == null || fe(...e);
112
+ }, mt = (...e) => {
113
+ Je(he), v == null || v(...e);
114
+ }, U = u(() => !(h != null && h.auto) && se, [h == null ? void 0 : h.auto, se]), bt = () => {
115
115
  var s;
116
- const e = (s = k.current) == null ? void 0 : s.querySelectorAll(
116
+ const e = (s = p.current) == null ? void 0 : s.querySelectorAll(
117
117
  "& > .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)"
118
118
  ), t = [];
119
119
  if (e == null || e.forEach((n) => {
120
- var o;
120
+ var r;
121
121
  t.push(
122
- ((o = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : o.clientWidth) || 0
122
+ ((r = n.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : r.clientWidth) || 0
123
123
  );
124
124
  }), t.length)
125
- return Math.ceil(Math.max(...t)) + Fe * 2;
126
- }, at = () => {
127
- var n, o, m, T;
128
- let e = (n = k.current) == null ? void 0 : n.querySelector(
125
+ return Math.ceil(Math.max(...t)) + rt * 2;
126
+ }, yt = () => {
127
+ var n, r, l, f;
128
+ let e = (n = p.current) == null ? void 0 : n.querySelector(
129
129
  ".ant-table-content"
130
130
  );
131
- e || (e = (o = k.current) == null ? void 0 : o.querySelector(
131
+ e || (e = (r = p.current) == null ? void 0 : r.querySelector(
132
132
  ".ant-table-body"
133
133
  ));
134
134
  let t = !1, s = 0;
135
- return e && (e.clientWidth - (U ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, s = (T = (m = k.current) == null ? void 0 : m.querySelector(
135
+ return e && (e.clientWidth - (V ? 1 : 0), t = e.offsetWidth - e.clientWidth > 0, s = (f = (l = p.current) == null ? void 0 : l.querySelector(
136
136
  ".ant-table-cell-scrollbar"
137
- )) == null ? void 0 : T.offsetWidth), { hasScrollBar: t, scrollbarSize: s };
138
- }, ke = i(() => {
139
- const e = (C ?? []).length, t = e > (I.pc ?? 10) ? e >= 15 ? 15 : e : I.pc ?? 10;
140
- return Array.from({ length: t }).map((n, o) => ({
141
- key: `${Date.now()}${o}`
137
+ )) == null ? void 0 : f.offsetWidth), { hasScrollBar: t, scrollbarSize: s };
138
+ }, Me = u(() => {
139
+ const e = (z ?? []).length, t = e > (te.pc ?? 10) ? e >= 15 ? 15 : e : te.pc ?? 10;
140
+ return Array.from({ length: t }).map((n, r) => ({
141
+ key: `${Date.now()}${r}`
142
142
  }));
143
- }, [C]), ce = i(() => c ? ke : C ?? [], [c, C, ke]), [K, ut] = z(!1), [M, ft] = z(0);
144
- O(() => {
145
- const { hasScrollBar: e, scrollbarSize: t } = at();
146
- ut(e), ft(t);
147
- }, [oe == null ? void 0 : oe.height, l.fullscreen]);
148
- const ie = i(() => {
149
- if (typeof B > "u")
143
+ }, [z]), pe = u(() => a ? Me : z ?? [], [a, z, Me]), { hasScrollBar: M, scrollbarSize: B } = u(() => yt(), [J == null ? void 0 : J.height, i.fullscreen]), be = u(() => {
144
+ if (typeof L > "u")
150
145
  return;
151
146
  let e = 40, t = 40;
152
- if (k.current) {
153
- const G = window.getComputedStyle(k.current);
154
- e = parseInt(G.getPropertyValue("--cell-height")), t = parseInt(G.getPropertyValue("--toolbar-height"));
147
+ if (p.current) {
148
+ const g = window.getComputedStyle(p.current);
149
+ e = parseInt(g.getPropertyValue("--cell-height")), t = parseInt(g.getPropertyValue("--toolbar-height"));
155
150
  }
156
- const s = (p == null ? void 0 : p.height) || 0, n = s ? be : 0, o = Y ?? Q, m = B >= o ? B : o;
157
- return (l.fullscreen ? window.innerHeight : m) - s - n - t - e;
151
+ const s = (Q == null ? void 0 : Q.height) || 0, n = s ? ke : 0, r = ee ?? oe, l = L >= r ? L : r;
152
+ return (i.fullscreen ? window.innerHeight : l) - s - n - t - e;
158
153
  }, [
159
- l.fullscreen,
160
- B,
161
- Y,
162
- Q,
163
- p == null ? void 0 : p.height,
164
- ce,
165
- l.tableSize
166
- ]), dt = () => {
154
+ i.fullscreen,
155
+ L,
156
+ ee,
157
+ oe,
158
+ Q == null ? void 0 : Q.height,
159
+ J == null ? void 0 : J.height,
160
+ i.tableSize
161
+ ]), Ct = () => {
167
162
  let e = 0;
168
- if (k.current) {
169
- const s = window.getComputedStyle(k.current), n = parseInt(
163
+ if (p.current) {
164
+ const s = window.getComputedStyle(p.current), n = parseInt(
170
165
  s.getPropertyValue("--toolCell-paddingInline")
171
166
  );
172
167
  e = parseInt(s.getPropertyValue("--fontSize")) + 4 + 2 * n;
173
168
  }
174
169
  let t = 0;
175
- return H && (t += e), w && (t += e), q && (t += e), t;
176
- }, { sortColumns: P, toolColWidth: Te } = i(() => {
177
- const t = (F ?? []).filter((m) => !Vt.includes(m)), n = _t(
178
- t,
179
- l.columnsMap,
180
- l.finish
181
- ).sort(Gt(l.columnsMap));
182
- let o = 0;
183
- return b || (o = dt()), { sortColumns: n, toolColWidth: o };
184
- }, [l.columnsMap, l.finish, F]), [L, ze] = z([]), [ae, Be] = z(!1), E = D(!1);
185
- O(() => {
186
- var s;
187
- const e = d.columnsState ?? {};
188
- ((s = Object.keys(e)) == null ? void 0 : s.length) || (E.current = !0);
189
- }, []), O(() => {
190
- if (W && (!ae || !E.current)) {
191
- const e = P.map((t, s) => {
170
+ return q && (t += e), W && (t += e), G && (t += e), t;
171
+ }, [T, wt] = _([]), [E, xt] = _(0);
172
+ ve(() => {
173
+ var c;
174
+ const e = ae ?? [], t = (c = e.find((b) => b.isOperationCol)) == null ? void 0 : c.width, s = e.filter((b) => !Yt.includes(b)), r = Jt(s, i.columnsMap).sort(Qt(i.columnsMap)), l = r.findIndex((b) => b.isOperationCol);
175
+ l >= 0 && (r[l].width = t);
176
+ let f = 0;
177
+ j || (f = Ct()), wt(r), xt(f);
178
+ }, [i.columnsMap, ae]);
179
+ const [w, gt] = _([]);
180
+ we(() => {
181
+ if (U) {
182
+ const e = T.map((t, s) => {
192
183
  let n = t.width;
193
- return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n = je() ?? t.width), {
194
- key: Oe(t, s),
184
+ return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n = bt() ?? t.width), {
185
+ key: ge(t, s),
195
186
  width: n ?? 0
196
187
  };
197
188
  });
198
- ze(e), l.finish && (E.current = !0, Be(!0));
189
+ gt(e);
199
190
  }
200
- }, [P, W, ae, l.finish]), O(() => {
201
- if (W && ae && E.current) {
202
- const e = P.map((t, s) => {
203
- let n = t.width;
204
- return t != null && t.isOperationCol && (t != null && t.useMaxWidth) && (n = je() ?? t.width), {
205
- key: Oe(t, s),
206
- width: n ?? 0
207
- };
208
- });
209
- ze(e);
210
- }
211
- }, [P, W]);
212
- const [ue, ht] = z(0), mt = i(() => {
213
- if (W && ue)
214
- return {
215
- width: ue,
216
- maxWidth: "100%"
217
- };
218
- }, [W, ue]), Ne = i(() => {
191
+ }, [T, U]);
192
+ const le = u(() => {
193
+ var s;
219
194
  let e;
220
- if (typeof ie == "number" && (e = ie - 1), typeof (u == null ? void 0 : u.y) == "number" && (e = u.y - 2), u != null && u.auto)
195
+ if (typeof be == "number" && (e = be - 1), typeof (h == null ? void 0 : h.y) == "number" && (e = h.y - 2), h != null && h.auto)
221
196
  return {
222
197
  x: void 0,
223
198
  y: e
224
199
  };
225
- let t = u == null ? void 0 : u.x;
226
- if (J) {
227
- t = L.reduce((o, m) => o + m.width, 0), t += Te;
228
- const s = U ? 1 : 0, n = K ? +M : 0;
229
- ht(t + s + n);
200
+ let t = h == null ? void 0 : h.x;
201
+ if (se && w.length) {
202
+ t = w.reduce((b, g) => b + g.width, 0) + E;
203
+ const r = V ? 1 : 0, l = M ? B : 0, f = t + r + l, c = (s = Y.current) == null ? void 0 : s.offsetWidth;
204
+ c && f < c && (t = c - r - l);
205
+ }
206
+ return h != null && h.y ? { x: t, y: h.y } : { x: t, y: e };
207
+ }, [
208
+ h,
209
+ be,
210
+ se,
211
+ w,
212
+ E,
213
+ V,
214
+ M,
215
+ B
216
+ ]);
217
+ X(!1), we(() => {
218
+ var e;
219
+ if (U && w.length) {
220
+ const t = w.reduce((f, c) => f + c.width, 0), s = V ? 1 : 0, n = M ? B : 0, r = t + E + s + n, l = (e = Y.current) == null ? void 0 : e.offsetWidth;
221
+ if (l && r < l) {
222
+ const f = /* @__PURE__ */ new Map(), c = T.findIndex(
223
+ (x) => x == null ? void 0 : x.isOperationCol
224
+ );
225
+ let b = "";
226
+ c >= 0 && (b = ge(
227
+ T[c],
228
+ c
229
+ )), w.forEach((x) => f.set(x.key, x.width));
230
+ let g = l - r, P = T.length;
231
+ if (c >= 0 && P--, g >= P) {
232
+ const x = Math.floor(g / P);
233
+ f.forEach((Ce, A) => {
234
+ f.set(A, Ce + (b === A ? 0 : x));
235
+ }), g = g - x * P;
236
+ }
237
+ let I = 0;
238
+ c === 0 && T.length > 1 && I++;
239
+ const K = ge(T[I]);
240
+ f.set(K, f.get(K) + g);
241
+ const D = { ...i.columnsMap };
242
+ for (const x in D)
243
+ D[x].show && (D[x].width = f.get(x));
244
+ i.setColumnsMap(D);
245
+ }
230
246
  }
231
- return u != null && u.y ? { x: t, y: u.y } : { x: t, y: e };
232
247
  }, [
233
- u,
234
- ie,
235
- J,
236
- L,
237
- Te,
238
248
  U,
239
- K,
240
- M
241
- ]), R = i(() => {
242
- if (b)
243
- return P;
244
- const e = P.length - 1, t = P.map((s, n) => {
245
- var o;
249
+ w,
250
+ E,
251
+ V,
252
+ M,
253
+ B
254
+ ]);
255
+ const $ = u(() => {
256
+ if (j)
257
+ return T;
258
+ const e = T.length - 1, t = T.map((s, n) => {
259
+ var r;
246
260
  return {
247
261
  ...s,
248
262
  ...typeof s.title == "string" && {
249
- title: /* @__PURE__ */ r.jsx(
250
- de.Paragraph,
263
+ title: /* @__PURE__ */ o.jsx(
264
+ xe.Paragraph,
251
265
  {
252
266
  className: "bitzTableTitle",
253
267
  ellipsis: { rows: 2 },
@@ -256,53 +270,61 @@ function rs({
256
270
  )
257
271
  },
258
272
  ...e === n && {
259
- className: A(s.className, "lastColumn")
273
+ className: ce(s.className, "lastColumn")
260
274
  },
261
- width: L.length ? (o = L[n]) == null ? void 0 : o.width : (s == null ? void 0 : s.width) || void 0,
262
- ...Ne.x !== void 0 ? {
263
- onHeaderCell: (m) => ({
264
- width: m.width,
265
- stretchref: ge,
266
- datagridref: ne,
267
- onResize: yt(n)
275
+ width: w.length ? (r = w[n]) == null ? void 0 : r.width : (s == null ? void 0 : s.width) || void 0,
276
+ ...le.x !== void 0 ? {
277
+ onHeaderCell: (l) => ({
278
+ width: l.width,
279
+ stretchref: Se,
280
+ datagridref: Y,
281
+ onResize: Tt(n)
268
282
  })
269
283
  } : {},
270
284
  ...!(s != null && s.render) && s.copyable ? {
271
- render: (m) => ["number", "bigint"].includes(typeof m) ? m : /* @__PURE__ */ r.jsx(es, { value: m })
285
+ render: (l) => ["number", "bigint"].includes(typeof l) ? l : /* @__PURE__ */ o.jsx(ns, { value: l })
272
286
  } : {}
273
287
  };
274
288
  });
275
- return Xt(
276
- F,
289
+ return At(
290
+ ae,
277
291
  t,
278
- q,
279
- !!H,
280
- !!w
292
+ G,
293
+ !!q,
294
+ !!W
281
295
  );
282
- }, [P, L]), { run: bt } = Yt(
283
- () => {
284
- var e;
285
- l.persistenceType === "online" && l.persistenceKey && ((e = l.onlineChange) == null || e.call(l, l.persistenceKey, l.columnsMap));
286
- },
287
- { wait: 5e3 }
288
- ), yt = (e) => (t, { size: s, minWidth: n }) => {
289
- const m = (s.width > n ? s.width : n) - L[e].width, T = `${L[e].key}`;
290
- Be(!0);
291
- const j = {
292
- ...l.columnsMap,
293
- [T]: {
294
- ...l.columnsMap[T],
295
- width: L[e].width + m
296
+ }, [T, w]), Tt = (e) => (t, { size: s, minWidth: n }) => {
297
+ var A;
298
+ const l = (s.width > n ? s.width : n) - w[e].width, f = w.reduce((F, O) => F + O.width, 0) + l, c = V ? 1 : 0, b = M ? B : 0, g = f + E + c + b, P = (A = Y.current) == null ? void 0 : A.offsetWidth;
299
+ let I = "", K = -1, D = 0;
300
+ if (P && l < 0 && g < P) {
301
+ K = e + 1;
302
+ const F = T.length - 1, O = T[F];
303
+ (e === F - 1 && (O != null && O.isOperationCol) || e === F && !(O != null && O.isOperationCol)) && (K = e - 1);
304
+ let De = 0;
305
+ le.x > P - c - b && (De = le.x - P + c + b), I = `${w[K].key}`, D = w[K].width - l - De;
306
+ }
307
+ const x = `${w[e].key}`, Ce = {
308
+ ...i.columnsMap,
309
+ [x]: {
310
+ ...i.columnsMap[x],
311
+ width: w[e].width + l
312
+ },
313
+ ...I && K >= 0 && {
314
+ [I]: {
315
+ ...i.columnsMap[I],
316
+ width: D
317
+ }
296
318
  }
297
319
  };
298
- l.setColumnsMap(j), bt();
299
- }, Se = i(() => Zt(R), [R]), Ct = i(() => c ? Se : R, [c, R, Se]), { table: fe, locale: xt = Ut } = pe(ts), wt = { ...xt.Table }, gt = ((qe = fe == null ? void 0 : fe.expandable) == null ? void 0 : qe.expandIcon) || (w == null ? void 0 : w.expandIcon) || Qt(wt), We = i(() => {
300
- if (w)
320
+ i.setColumnsMap(Ce), i.persistenceType === "online" && i.persistenceKey && i.startAutoSaveCountdown();
321
+ }, Pe = u(() => Ft($), [$]), jt = u(() => a ? Pe : $, [a, $, Pe]), { table: ye, locale: kt = Et } = _e(rs), zt = { ...kt.Table }, Nt = ((Ie = ye == null ? void 0 : ye.expandable) == null ? void 0 : Ie.expandIcon) || (W == null ? void 0 : W.expandIcon) || Zt(zt), Le = u(() => {
322
+ if (W)
301
323
  return {
302
- ...w,
303
- expandedRowRender: () => /* @__PURE__ */ r.jsx(r.Fragment, {}),
324
+ ...W,
325
+ expandedRowRender: () => /* @__PURE__ */ o.jsx(o.Fragment, {}),
304
326
  expandIcon: (e) => {
305
- const t = gt(e);
327
+ const t = Nt(e);
306
328
  return {
307
329
  ...t,
308
330
  props: {
@@ -310,117 +332,117 @@ function rs({
310
332
  disabled: !0,
311
333
  style: {
312
334
  ...t.props.style,
313
- backgroundColor: g.colorBgContainerDisabled
335
+ backgroundColor: S.colorBgContainerDisabled
314
336
  }
315
337
  }
316
338
  };
317
339
  }
318
340
  };
319
- }, [w]), jt = i(() => c ? We : w, [c, w, We]), Me = i(() => {
320
- if (H)
341
+ }, [W]), Bt = u(() => a ? Le : W, [a, W, Le]), He = u(() => {
342
+ if (q)
321
343
  return {
322
- ...H,
344
+ ...q,
323
345
  selectedRowKeys: [],
324
346
  getCheckboxProps: () => ({ disabled: !0 })
325
347
  };
326
- }, [H]), kt = i(() => c ? Me : H, [c, H, Me]), Pe = i(() => c ? "key" : d.rowKey, [c, d.rowKey]), Le = i(() => `${me ?? l.stylesConfig.size}BitzTable`, [me, l.stylesConfig.size]), Tt = v(
348
+ }, [q]), Wt = u(() => a ? He : q, [a, q, He]), Re = u(() => a ? "key" : C.rowKey, [a, C.rowKey]), $e = u(() => `${je ?? i.stylesConfig.size}BitzTable`, [je, i.stylesConfig.size]), St = ie(
327
349
  (e, t) => {
328
350
  var n;
329
- if (!d.onRow || c)
351
+ if (!C.onRow || a)
330
352
  return {};
331
- const s = (n = d.onRow) == null ? void 0 : n.call(d, e, t);
353
+ const s = (n = C.onRow) == null ? void 0 : n.call(C, e, t);
332
354
  return s.onClick && (s.className = "rowPointerCursor"), s;
333
355
  },
334
- [d.onRow, c]
335
- ), zt = i(() => A(
356
+ [C.onRow, a]
357
+ ), Mt = u(() => ce(
336
358
  "bitzTableContainer",
337
- { hideBorder: ye },
338
- { hasScrollBar: K },
339
- { stickyTable: !!(d != null && d.sticky) },
340
- Le,
341
- d.className
359
+ { hideBorder: ze },
360
+ { hasScrollBar: M },
361
+ { stickyTable: !!(C != null && C.sticky) },
362
+ $e,
363
+ C.className
342
364
  ), [
343
- d.className,
344
- Le,
345
- K,
346
- l.fullscreen,
347
- ye,
348
- d.sticky
349
- ]), Bt = i(() => ({
350
- "--container-bgColor": g.colorBgContainer
351
- }), [g.colorBgContainer]), Nt = i(() => {
352
- const e = Y ?? Q;
365
+ C.className,
366
+ $e,
367
+ M,
368
+ i.fullscreen,
369
+ ze,
370
+ C.sticky
371
+ ]), pt = u(() => ({
372
+ "--container-bgColor": S.colorBgContainer
373
+ }), [S.colorBgContainer]), Pt = u(() => {
374
+ const e = ee ?? oe;
353
375
  let t;
354
- B && (t = B >= e ? B : e);
355
- const s = l.fullscreen ? "100%" : t;
376
+ L && (t = L >= e ? L : e);
377
+ const s = i.fullscreen ? "100%" : t;
356
378
  let n;
357
- return (M ?? 0) > 0 && (n = M), Et({
379
+ return (B ?? 0) > 0 && (n = B), es({
358
380
  height: s ?? "auto",
359
- token: g,
360
- evenRowBgColor: l.zebra ? f == null ? void 0 : f.evenRowBgColor : g.colorBgContainer,
361
- table: f,
362
- gap: be,
363
- borderColor: (f == null ? void 0 : f.borderColor) || g.colorBorderSecondary,
381
+ token: S,
382
+ evenRowBgColor: i.zebra ? m == null ? void 0 : m.evenRowBgColor : S.colorBgContainer,
383
+ table: m,
384
+ gap: ke,
385
+ borderColor: (m == null ? void 0 : m.borderColor) || S.colorBorderSecondary,
364
386
  scrollbarWidth: n,
365
- other: d.style
387
+ other: C.style
366
388
  });
367
389
  }, [
368
- d.style,
369
- l.fullscreen,
370
- B,
371
- Y,
372
- Q,
373
- f,
374
- l == null ? void 0 : l.zebra,
375
- M
376
- ]), St = v(
390
+ C.style,
391
+ i.fullscreen,
392
+ L,
393
+ ee,
394
+ oe,
395
+ m,
396
+ i == null ? void 0 : i.zebra,
397
+ B
398
+ ]), Lt = ie(
377
399
  (e, t, s) => {
378
400
  const n = t % 2 === 0 ? "oddRow" : "evenRow";
379
- if (d.rowClassName) {
380
- const o = d.rowClassName(e, t, s);
381
- return A(n, o);
401
+ if (C.rowClassName) {
402
+ const r = C.rowClassName(e, t, s);
403
+ return ce(n, r);
382
404
  }
383
405
  return n;
384
406
  },
385
- [d.rowClassName]
386
- ), Re = i(() => /* @__PURE__ */ r.jsx(
387
- qt,
407
+ [C.rowClassName]
408
+ ), Ke = u(() => /* @__PURE__ */ o.jsx(
409
+ Dt,
388
410
  {
389
- finished: Ce,
411
+ finished: Ne,
390
412
  onLoad: async () => (
391
413
  // @ts-ignore
392
- !c && ($ == null ? void 0 : $((x == null ? void 0 : x.page) + 1, x == null ? void 0 : x.size))
414
+ !a && (v == null ? void 0 : v((N == null ? void 0 : N.page) + 1, N == null ? void 0 : N.size))
393
415
  ),
394
416
  loadingText: "加载中...",
395
417
  finishedText: "没有更多了",
396
418
  errorText: "加载失败",
397
- children: /* @__PURE__ */ r.jsxs(
419
+ children: /* @__PURE__ */ o.jsxs(
398
420
  "div",
399
421
  {
400
422
  className: "mobileList",
401
- style: { backgroundColor: f == null ? void 0 : f.mobileListBgColor },
423
+ style: { backgroundColor: m == null ? void 0 : m.mobileListBgColor },
402
424
  children: [
403
- y == null ? void 0 : y.map((e, t) => /* @__PURE__ */ r.jsx(
425
+ k == null ? void 0 : k.map((e, t) => /* @__PURE__ */ o.jsx(
404
426
  "div",
405
427
  {
406
428
  className: "listItem",
407
- style: { backgroundColor: f == null ? void 0 : f.listItemBgColor },
408
- onClick: () => ot(e, t),
409
- children: R == null ? void 0 : R.map((s, n) => {
410
- var o;
411
- return !(s != null && s.mobileHide) && /* @__PURE__ */ r.jsxs(
429
+ style: { backgroundColor: m == null ? void 0 : m.listItemBgColor },
430
+ onClick: () => ft(e, t),
431
+ children: $ == null ? void 0 : $.map((s, n) => {
432
+ var r;
433
+ return !(s != null && s.mobileHide) && /* @__PURE__ */ o.jsxs(
412
434
  "div",
413
435
  {
414
436
  className: "row",
415
- style: { color: g.colorText },
437
+ style: { color: S.colorText },
416
438
  children: [
417
- !s.mobileHideLabel && /* @__PURE__ */ r.jsxs("div", { className: "label", children: [
439
+ !s.mobileHideLabel && /* @__PURE__ */ o.jsxs("div", { className: "label", children: [
418
440
  `${s.title}`,
419
441
  ":"
420
442
  ] }),
421
- /* @__PURE__ */ r.jsx("div", { className: "value", children: ((o = s == null ? void 0 : s.render) == null ? void 0 : o.call(
443
+ /* @__PURE__ */ o.jsx("div", { className: "value", children: ((r = s == null ? void 0 : s.render) == null ? void 0 : r.call(
422
444
  s,
423
- ss(e, (s == null ? void 0 : s.dataIndex) || ""),
445
+ ls(e, (s == null ? void 0 : s.dataIndex) || ""),
424
446
  e,
425
447
  t
426
448
  )) || (e == null ? void 0 : e[s.dataIndex]) })
@@ -432,21 +454,21 @@ function rs({
432
454
  },
433
455
  t
434
456
  )),
435
- Array.from({ length: I.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ r.jsx(
457
+ Array.from({ length: te.mobile ?? 2 }).map((e, t) => /* @__PURE__ */ o.jsx(
436
458
  "div",
437
459
  {
438
460
  className: "listItem",
439
461
  style: {
440
- display: c ? "block" : "none",
441
- backgroundColor: f == null ? void 0 : f.listItemBgColor
462
+ display: a ? "block" : "none",
463
+ backgroundColor: m == null ? void 0 : m.listItemBgColor
442
464
  },
443
- children: /* @__PURE__ */ r.jsx("div", { className: "row", children: ee ? ee() : /* @__PURE__ */ r.jsx(
444
- Pt,
465
+ children: /* @__PURE__ */ o.jsx("div", { className: "row", children: de ? de() : /* @__PURE__ */ o.jsx(
466
+ $t,
445
467
  {
446
468
  title: !1,
447
469
  paragraph: {
448
- rows: Ge,
449
- width: Ye
470
+ rows: Ue,
471
+ width: Xe
450
472
  },
451
473
  active: !0
452
474
  }
@@ -459,187 +481,187 @@ function rs({
459
481
  )
460
482
  }
461
483
  ), [
462
- b ? Ce : 0,
463
- b ? c : 0,
464
- b ? x : 0,
465
- b ? f : 0,
466
- b ? y : 0,
467
- b ? R : 0,
468
- b ? I : 0,
469
- b ? ee : 0
484
+ j ? Ne : 0,
485
+ j ? a : 0,
486
+ j ? N : 0,
487
+ j ? m : 0,
488
+ j ? k : 0,
489
+ j ? $ : 0,
490
+ j ? te : 0,
491
+ j ? de : 0
470
492
  ]);
471
- O(() => {
472
- l.setSelected(!!(h != null && h.num));
473
- }, [h]);
474
- const He = i(() => /* @__PURE__ */ r.jsxs("div", { className: "alert", children: [
475
- /* @__PURE__ */ r.jsx(
476
- Ve,
493
+ ve(() => {
494
+ i.setSelected(!!(y != null && y.num));
495
+ }, [y]);
496
+ const Oe = u(() => /* @__PURE__ */ o.jsxs("div", { className: "alert", children: [
497
+ /* @__PURE__ */ o.jsx(
498
+ Ye,
477
499
  {
478
500
  highlightTag: "strong",
479
- keywords: `${N}`,
480
- sourceString: `共 ${N} 条`,
501
+ keywords: `${H}`,
502
+ sourceString: `共 ${H} 条`,
481
503
  tagClass: "totalText"
482
504
  }
483
505
  ),
484
- !!h && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
485
- /* @__PURE__ */ r.jsx(de.Text, { className: "splitBorder", children: "/" }),
486
- /* @__PURE__ */ r.jsx(
487
- Ve,
506
+ !!y && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
507
+ /* @__PURE__ */ o.jsx(xe.Text, { className: "splitBorder", children: "/" }),
508
+ /* @__PURE__ */ o.jsx(
509
+ Ye,
488
510
  {
489
511
  highlightTag: "strong",
490
- keywords: `${(h == null ? void 0 : h.num) ?? 0}`,
491
- sourceString: `已选中 ${(h == null ? void 0 : h.num) ?? 0} 条`
512
+ keywords: `${(y == null ? void 0 : y.num) ?? 0}`,
513
+ sourceString: `已选中 ${(y == null ? void 0 : y.num) ?? 0} 条`
492
514
  }
493
515
  ),
494
- !!(h != null && h.num) && /* @__PURE__ */ r.jsx(
495
- de.Link,
516
+ !!(y != null && y.num) && /* @__PURE__ */ o.jsx(
517
+ xe.Link,
496
518
  {
497
519
  className: "cleanSelected",
498
- onClick: h == null ? void 0 : h.onClear,
520
+ onClick: y == null ? void 0 : y.onClear,
499
521
  children: "取消选中"
500
522
  }
501
523
  )
502
524
  ] })
503
- ] }), [N, h]), Wt = (e) => {
504
- c || se == null || se(e);
505
- }, Ke = v(() => q ? {
506
- row: (e) => vt({ ...e, loading: c == null ? void 0 : c.toString() })
507
- } : {}, [q, q ? c : !1]), $e = v(
525
+ ] }), [H, y]), Ht = (e) => {
526
+ a || ue == null || ue(e);
527
+ }, qe = ie(() => G ? {
528
+ row: (e) => ts({ ...e, loading: a == null ? void 0 : a.toString() })
529
+ } : {}, [G, G ? a : !1]), Ve = ie(
508
530
  (e) => {
509
- var n, o;
510
- if (W)
511
- return Ft({ ...e, hasScrollBar: K, scrollbarSize: M });
531
+ var n, r;
532
+ if (U)
533
+ return os({ ...e, hasScrollBar: M, scrollbarSize: B });
512
534
  const t = { ...e };
513
535
  return ((n = t.className) == null ? void 0 : n.includes(
514
536
  "ant-table-cell-fix-right"
515
- )) && !K && ((o = t.style) != null && o.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (M || 0)), /* @__PURE__ */ r.jsx("th", { ...t });
537
+ )) && !M && ((r = t.style) != null && r.right) && (t.style = { ...t.style ?? {} }, t.style.right = Number(t.style.right ?? 0) - (B || 0)), /* @__PURE__ */ o.jsx("th", { ...t });
516
538
  },
517
- [K, M, W]
518
- ), Mt = i(() => ({
519
- ...S,
539
+ [M, B, U]
540
+ ), Rt = u(() => ({
541
+ ...R,
520
542
  header: {
521
- ...S == null ? void 0 : S.header,
522
- cell: $e
543
+ ...R == null ? void 0 : R.header,
544
+ cell: Ve
523
545
  },
524
546
  body: {
525
- ...S == null ? void 0 : S.body,
526
- ...Ke()
547
+ ...R == null ? void 0 : R.body,
548
+ ...qe()
527
549
  }
528
- }), [S, $e, Ke]);
529
- return /* @__PURE__ */ r.jsxs(
550
+ }), [R, Ve, qe]);
551
+ return /* @__PURE__ */ o.jsxs(
530
552
  "div",
531
553
  {
532
- className: A("bitzTableBlock", {
533
- fullscreen: l.fullscreen
554
+ className: ce("bitzTableBlock", {
555
+ fullscreen: i.fullscreen
534
556
  }),
535
- style: Bt,
557
+ style: pt,
558
+ ...Qe,
536
559
  children: [
537
- !b && /* @__PURE__ */ r.jsxs("div", { ref: k, className: zt, style: Nt, children: [
538
- /* @__PURE__ */ r.jsxs("div", { className: "bitzTableContainerBody", ref: ne, children: [
539
- Xe && /* @__PURE__ */ r.jsxs("div", { className: "bitzTableToolbarBlock", children: [
540
- Ze || /* @__PURE__ */ r.jsx("div", {}),
541
- Ee,
542
- ve
560
+ !j && /* @__PURE__ */ o.jsxs("div", { ref: p, className: Mt, style: Pt, children: [
561
+ /* @__PURE__ */ o.jsxs("div", { className: "bitzTableContainerBody", ref: Y, children: [
562
+ et && /* @__PURE__ */ o.jsxs("div", { className: "bitzTableToolbarBlock", children: [
563
+ tt || /* @__PURE__ */ o.jsx("div", {}),
564
+ st,
565
+ ot
543
566
  ] }),
544
- /* @__PURE__ */ r.jsx(
567
+ /* @__PURE__ */ o.jsx(
545
568
  "div",
546
569
  {
547
570
  className: "stretchLine",
548
- ref: ge,
571
+ ref: Se,
549
572
  style: {
550
- background: g.colorPrimary,
573
+ background: S.colorPrimary,
551
574
  // bottom: hasScrollBar ? 'var(--scrollbar-width)' : 0,
552
575
  bottom: 0
553
576
  }
554
577
  }
555
578
  ),
556
- /* @__PURE__ */ r.jsx(
557
- At,
579
+ /* @__PURE__ */ o.jsx(
580
+ ss,
558
581
  {
559
- enabledRowDragSort: q,
560
- dataSource: ce,
561
- mergeRowKey: Pe,
562
- onDragEnd: Wt,
563
- children: /* @__PURE__ */ r.jsx(
564
- Lt,
582
+ enabledRowDragSort: G,
583
+ dataSource: pe,
584
+ mergeRowKey: Re,
585
+ onDragEnd: Ht,
586
+ children: /* @__PURE__ */ o.jsx(
587
+ Kt,
565
588
  {
566
- ...d,
567
- bordered: U,
568
- columns: Ct,
569
- dataSource: ce,
589
+ ...C,
590
+ bordered: V,
591
+ columns: jt,
592
+ dataSource: pe,
570
593
  loading: !1,
571
594
  pagination: !1,
572
- scroll: Ne,
573
- expandable: jt,
574
- rowSelection: kt,
575
- style: mt,
576
- onRow: Tt,
577
- rowHoverable: et,
578
- rowClassName: St,
595
+ scroll: le,
596
+ expandable: Bt,
597
+ rowSelection: Wt,
598
+ onRow: St,
599
+ rowHoverable: lt,
600
+ rowClassName: Lt,
579
601
  className: "bitzTable",
580
- components: Mt,
581
- rowKey: Pe,
582
- onChange: ct,
583
- ref: re
602
+ components: Rt,
603
+ rowKey: Re,
604
+ onChange: ht,
605
+ ref: he
584
606
  }
585
607
  )
586
608
  }
587
609
  )
588
610
  ] }),
589
- V && !!N && /* @__PURE__ */ r.jsxs("div", { className: "bitzTablePagination", ref: le, children: [
590
- He,
591
- /* @__PURE__ */ r.jsx(
592
- Kt,
611
+ Z && !!H && /* @__PURE__ */ o.jsxs("div", { className: "bitzTablePagination", ref: me, children: [
612
+ Oe,
613
+ /* @__PURE__ */ o.jsx(
614
+ Vt,
593
615
  {
594
616
  size: "small",
595
- enableControl: Ie,
596
- pagination: x,
597
- total: N,
598
- dataSource: C,
599
- resetPage: Ae,
617
+ enableControl: Ze,
618
+ pagination: N,
619
+ total: H,
620
+ dataSource: z,
621
+ resetPage: nt,
600
622
  hideTotalText: !0,
601
- paginationEmit: it
623
+ paginationEmit: mt
602
624
  }
603
625
  )
604
626
  ] }),
605
- !V && !!h && !!N && /* @__PURE__ */ r.jsx("div", { className: "bitzTablePagination", ref: le, children: He })
627
+ !Z && !!y && !!H && /* @__PURE__ */ o.jsx("div", { className: "bitzTablePagination", ref: me, children: Oe })
606
628
  ] }),
607
- b && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
608
- (c || !!(C != null && C.length)) && /* @__PURE__ */ r.jsx(r.Fragment, { children: he ? (
629
+ j && /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
630
+ (a || !!(z != null && z.length)) && /* @__PURE__ */ o.jsx(o.Fragment, { children: Te ? (
609
631
  // @ts-ignore
610
- /* @__PURE__ */ r.jsx(
611
- pt,
632
+ /* @__PURE__ */ o.jsx(
633
+ _t,
612
634
  {
613
- onRefresh: async () => !c && he(),
614
- children: Re
635
+ onRefresh: async () => !a && Te(),
636
+ children: Ke
615
637
  }
616
638
  )
617
- ) : Re }),
618
- !c && /* @__PURE__ */ r.jsx($t, { data: C, title: Qe, img: Ue }),
619
- /* @__PURE__ */ r.jsx(
620
- Ht,
639
+ ) : Ke }),
640
+ !a && /* @__PURE__ */ o.jsx(It, { data: z, title: Ae, img: Fe }),
641
+ /* @__PURE__ */ o.jsx(
642
+ qt,
621
643
  {
622
644
  className: "tableMobileDrawer",
623
- open: tt,
645
+ open: it,
624
646
  placement: "bottom",
625
647
  height: "auto",
626
648
  closable: !1,
627
- onClose: we,
628
- children: /* @__PURE__ */ r.jsxs("div", { className: "drawerBox", children: [
629
- /* @__PURE__ */ r.jsx("div", { className: "boxBody", children: nt ? /* @__PURE__ */ r.jsx("div", { className: "operaList", children: /* @__PURE__ */ r.jsx(Rt, {}) }) : Z.map((e, t) => /* @__PURE__ */ r.jsx(
649
+ onClose: We,
650
+ children: /* @__PURE__ */ o.jsxs("div", { className: "drawerBox", children: [
651
+ /* @__PURE__ */ o.jsx("div", { className: "boxBody", children: dt ? /* @__PURE__ */ o.jsx("div", { className: "operaList", children: /* @__PURE__ */ o.jsx(Ot, {}) }) : re.map((e, t) => /* @__PURE__ */ o.jsx(
630
652
  "div",
631
653
  {
632
654
  className: "operaList",
633
- onClick: () => lt(e, t),
655
+ onClick: () => ut(e, t),
634
656
  ...e.danger && {
635
- style: { color: g.colorError }
657
+ style: { color: S.colorError }
636
658
  },
637
659
  children: e.label
638
660
  },
639
661
  t
640
662
  )) }),
641
- /* @__PURE__ */ r.jsx("div", { className: "boxLine" }),
642
- /* @__PURE__ */ r.jsx("div", { className: "boxFooter", onClick: we, children: Je })
663
+ /* @__PURE__ */ o.jsx("div", { className: "boxLine" }),
664
+ /* @__PURE__ */ o.jsx("div", { className: "boxFooter", onClick: We, children: Ee })
643
665
  ] })
644
666
  }
645
667
  )
@@ -648,7 +670,7 @@ function rs({
648
670
  }
649
671
  );
650
672
  }
651
- const ps = (V) => /* @__PURE__ */ r.jsx(Ot, { initValue: V, children: /* @__PURE__ */ r.jsx(rs, { ...V }) });
673
+ const Is = (Z) => /* @__PURE__ */ o.jsx(vt, { initValue: Z, children: /* @__PURE__ */ o.jsx(is, { ...Z }) });
652
674
  export {
653
- ps as default
675
+ Is as default
654
676
  };