bitz-react-admin-ui 1.9.5 → 1.9.7

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