bitz-react-admin-ui 2.5.9 → 2.6.0

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