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