bitz-react-admin-ui 2.7.10 → 2.7.11

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