bitz-react-admin-ui 2.7.5 → 2.7.7

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