bitz-react-admin-ui 2.2.6 → 2.2.8

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 (210) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index6.mjs +4 -0
  11. package/dist/_virtual/log.mjs +4 -0
  12. package/dist/_virtual/positionFns.mjs +4 -0
  13. package/dist/_virtual/propTypes.mjs +4 -0
  14. package/dist/_virtual/shims.mjs +4 -0
  15. package/dist/_virtual/utils.mjs +4 -0
  16. package/dist/assets/iconfont/IconChenggong.mjs +4 -10
  17. package/dist/assets/iconfont/IconClose.mjs +1 -7
  18. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
  19. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
  20. package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
  21. package/dist/assets/iconfont/IconCuowu.mjs +2 -8
  22. package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
  23. package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
  24. package/dist/assets/iconfont/IconFabu.mjs +3 -18
  25. package/dist/assets/iconfont/IconFanhui.mjs +5 -11
  26. package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
  27. package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
  28. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
  29. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
  30. package/dist/assets/iconfont/IconIcon21.mjs +2 -8
  31. package/dist/assets/iconfont/IconJincoude.mjs +3 -9
  32. package/dist/assets/iconfont/IconJinggao.mjs +2 -8
  33. package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
  34. package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
  35. package/dist/assets/iconfont/IconMore.mjs +4 -26
  36. package/dist/assets/iconfont/IconShanchu.mjs +5 -11
  37. package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
  38. package/dist/assets/iconfont/IconSousuo.mjs +4 -10
  39. package/dist/assets/iconfont/IconTejincou.mjs +1 -7
  40. package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
  41. package/dist/assets/iconfont/IconTishi1.mjs +6 -12
  42. package/dist/assets/iconfont/IconTuodong.mjs +6 -12
  43. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
  44. package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
  45. package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
  46. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
  47. package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
  48. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
  49. package/dist/assets/iconfont/index.mjs +33 -33
  50. package/dist/components/BitzAddTag/index.mjs +8 -41
  51. package/dist/components/BitzAddressBook/index.mjs +35 -122
  52. package/dist/components/BitzAppPage/index.mjs +4 -18
  53. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  54. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  55. package/dist/components/BitzButton/index.mjs +9 -23
  56. package/dist/components/BitzCalendar/index.mjs +19 -52
  57. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  58. package/dist/components/BitzCascader/index.mjs +2 -6
  59. package/dist/components/BitzCollapse/index.mjs +4 -4
  60. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  61. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  62. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  63. package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
  64. package/dist/components/BitzConvert/index.mjs +1 -1
  65. package/dist/components/BitzDescriptions/index.mjs +1 -11
  66. package/dist/components/BitzDrawer/index.mjs +2 -17
  67. package/dist/components/BitzEmpty/index.mjs +2 -6
  68. package/dist/components/BitzException/index.mjs +1 -6
  69. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  70. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  71. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  72. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  73. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  74. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  75. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  76. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
  77. package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
  78. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
  79. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  80. package/dist/components/BitzFullScreen/index.mjs +6 -9
  81. package/dist/components/BitzHighlight/Child.mjs +9 -23
  82. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  83. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  84. package/dist/components/BitzHighlight/style.mjs +1 -4
  85. package/dist/components/BitzImage/index.mjs +1 -1
  86. package/dist/components/BitzImage/previewImage.mjs +5 -12
  87. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  88. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  89. package/dist/components/BitzList/List.mjs +3 -17
  90. package/dist/components/BitzList/LoadMore.mjs +20 -29
  91. package/dist/components/BitzLoadMore/index.mjs +14 -34
  92. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  93. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  94. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  95. package/dist/components/BitzModal/index.mjs +11 -24
  96. package/dist/components/BitzNoData/index.mjs +1 -4
  97. package/dist/components/BitzNoMore/index.mjs +1 -1
  98. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  99. package/dist/components/BitzPageContainer/index.mjs +46 -107
  100. package/dist/components/BitzPageHeader/index.mjs +21 -89
  101. package/dist/components/BitzPagination/index.mjs +22 -71
  102. package/dist/components/BitzPopover/index.mjs +4 -4
  103. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  104. package/dist/components/BitzQRCode/index.mjs +1 -6
  105. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  106. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  107. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  108. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  109. package/dist/components/BitzRefresh/index.mjs +1 -5
  110. package/dist/components/BitzRemark/index.mjs +4 -4
  111. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  112. package/dist/components/BitzSearch/index.mjs +1 -1
  113. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  114. package/dist/components/BitzSelect/index.mjs +1 -1
  115. package/dist/components/BitzSkeleton/index.mjs +1 -31
  116. package/dist/components/BitzSwitch/index.mjs +2 -7
  117. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  118. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  119. package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
  120. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
  121. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  122. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  123. package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
  124. package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
  125. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  126. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  127. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  128. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  129. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
  130. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  131. package/dist/components/BitzTable/Store/index.d.ts +5 -1
  132. package/dist/components/BitzTable/Store/index.mjs +189 -199
  133. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
  134. package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
  135. package/dist/components/BitzTable/SubTable/index.mjs +76 -119
  136. package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
  137. package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
  138. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
  139. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  140. package/dist/components/BitzTable/Table/index.d.ts +1 -1
  141. package/dist/components/BitzTable/Table/index.mjs +257 -446
  142. package/dist/components/BitzTable/Table/style.mjs +1 -11
  143. package/dist/components/BitzTable/Table/utils.d.ts +2 -2
  144. package/dist/components/BitzTable/Table/utils.mjs +30 -31
  145. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
  146. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
  147. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  148. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +147 -255
  149. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
  150. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  151. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
  152. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  153. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
  154. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
  155. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
  156. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
  157. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  158. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
  159. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
  160. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  161. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
  162. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  163. package/dist/components/BitzTable/index.d.ts +3 -2
  164. package/dist/components/BitzTable/index.mjs +17 -15
  165. package/dist/components/BitzTableOperations/index.mjs +3 -13
  166. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  167. package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
  168. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
  169. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
  170. package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
  171. package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
  172. package/dist/components/BitzTableSelect/index.mjs +13 -61
  173. package/dist/components/BitzTag/index.mjs +1 -1
  174. package/dist/components/BitzTheme/index.mjs +6 -6
  175. package/dist/components/BitzTimeline/index.mjs +1 -11
  176. package/dist/components/BitzTimer/Form.mjs +11 -32
  177. package/dist/components/BitzTimer/Timer.mjs +38 -76
  178. package/dist/components/BitzTimer/index.mjs +43 -66
  179. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  180. package/dist/components/BitzToast/index.mjs +1 -1
  181. package/dist/components/BitzTree/index.mjs +1 -4
  182. package/dist/components/BitzUeEditor/index.mjs +5 -5
  183. package/dist/components/BitzUpload/index.mjs +43 -81
  184. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  185. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  186. package/dist/hooks/use-event-listener.mjs +2 -11
  187. package/dist/hooks/use-lock-fn.mjs +10 -13
  188. package/dist/hooks/use-scroll-parent.mjs +14 -16
  189. package/dist/hooks/useEvent.mjs +4 -7
  190. package/dist/hooks/useMergedState.mjs +11 -11
  191. package/dist/node_modules/.store/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  192. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +8 -7
  193. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  194. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  195. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  196. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  197. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  198. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  199. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  200. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  201. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  202. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  203. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  204. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  205. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  206. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  207. package/dist/style.css +1 -1
  208. package/dist/utils/WithFluent.mjs +12 -27
  209. package/dist/utils/create.mjs +1 -7
  210. package/package.json +1 -1
@@ -1,149 +1,106 @@
1
- import { j as C } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as D, useRef as et, useMemo as o, useCallback as I } from "react";
3
- import { Table as g } from "antd";
4
- import nt from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
- import { BitzTableContext as rt } from "../Store/index.mjs";
6
- import ot from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
7
- import st from "../ActionCol/style.mjs";
8
- import at from "../../BitzTheme/index.mjs";
9
- import lt from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
1
+ import { j as w } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as I, useRef as Z, useMemo as r, useCallback as L } from "react";
3
+ import { Table as ee } from "antd";
4
+ import te from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
+ import { BitzTableContext as ne, toolCols as oe } from "../Store/index.mjs";
6
+ import re from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
7
+ import se from "../ActionCol/style.mjs";
8
+ import ae from "../../BitzTheme/index.mjs";
9
+ import le from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/table/ExpandIcon.mjs";
10
10
  import "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/index.mjs";
11
- import ct from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
12
- import { getColumnsWithTool as it, loopBuildSkeleton as ut } from "../Table/utils.mjs";
13
- import { ConfigContext as mt } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
14
- const M = [g.SELECTION_COLUMN, g.EXPAND_COLUMN];
15
- function Bt({
16
- dataSource: u = [],
17
- columns: x,
18
- loading: l = !1,
19
- scroll: s,
20
- components: f,
21
- expandable: c,
22
- rowSelection: m,
23
- ...a
24
- }) {
25
- var T, N;
26
- const { token: j } = at.useToken(), { gap: K } = st(), { showColumnBorder: q, rowHoverable: P } = D(rt), h = et(null), y = ot((T = h.current) == null ? void 0 : T.nativeElement), A = o(() => {
27
- let t = (s == null ? void 0 : s.x) ?? 1e3;
28
- return s != null && s.x ? { x: t, y: s.y || 400 } : s != null && s.y ? { x: t, y: s.y } : { x: t, y: 400 };
29
- }, [s]), O = () => {
30
- var r, n;
31
- const t = (n = (r = h.current) == null ? void 0 : r.nativeElement) == null ? void 0 : n.querySelectorAll(
32
- "& > .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)"
33
- ), e = [];
34
- if (t == null || t.forEach((i) => {
35
- var b;
36
- e.push(
37
- ((b = i.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
38
- );
39
- }), e.length)
40
- return Math.ceil(Math.max(...e)) + K * 2;
41
- }, _ = () => {
42
- var b, p, W, L, v;
43
- const t = (p = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : p.querySelector(
44
- ".ant-table-body"
45
- ), e = t == null ? void 0 : t.clientWidth, n = ((t == null ? void 0 : t.offsetWidth) || 0) - e > 0, i = (v = (L = (W = h.current) == null ? void 0 : W.nativeElement) == null ? void 0 : L.querySelector(
46
- ".ant-table-cell-scrollbar"
47
- )) == null ? void 0 : v.offsetWidth;
48
- return { tbodyWidth: e, scrollbarSize: i, hasScrollBar: n };
49
- }, { hasScrollBar: R, scrollbarSize: S } = o(() => {
50
- const { hasScrollBar: t, scrollbarSize: e } = _();
11
+ import ie from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
12
+ import { getColumnsWithTool as ce, loopBuildSkeleton as ue } from "../Table/utils.mjs";
13
+ import { ConfigContext as me } from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/es/config-provider/context.mjs";
14
+ function We({ dataSource: u = [], columns: g, loading: l = !1, scroll: s, components: f, expandable: i, rowSelection: m, ...a }) {
15
+ var z, B;
16
+ const { token: j } = ae.useToken(), { gap: K } = se(), { showColumnBorder: M, rowHoverable: q } = I(ne), h = Z(null), y = re((z = h.current) == null ? void 0 : z.nativeElement), v = r(() => {
17
+ let e = (s == null ? void 0 : s.x) ?? 1e3;
18
+ return s != null && s.x ? { x: e, y: s.y || 400 } : s != null && s.y ? { x: e, y: s.y } : { x: e, y: 400 };
19
+ }, [s]), P = () => {
20
+ var o, n;
21
+ const e = (n = (o = h.current) == null ? void 0 : o.nativeElement) == null ? void 0 : n.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 = [];
22
+ if (e == null || e.forEach((c) => {
23
+ var d;
24
+ t.push(((d = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : d.clientWidth) || 0);
25
+ }), t.length)
26
+ return Math.ceil(Math.max(...t)) + K * 2;
27
+ }, A = () => {
28
+ var d, E, S, N, D;
29
+ const e = (E = (d = h.current) == null ? void 0 : d.nativeElement) == null ? void 0 : E.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (D = (N = (S = h.current) == null ? void 0 : S.nativeElement) == null ? void 0 : N.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : D.offsetWidth;
30
+ return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
31
+ }, { hasScrollBar: x, scrollbarSize: R } = r(() => {
32
+ const { hasScrollBar: e, scrollbarSize: t } = A();
51
33
  return {
52
- hasScrollBar: t,
53
- scrollbarSize: e
34
+ hasScrollBar: e,
35
+ scrollbarSize: t
54
36
  };
55
- }, [y == null ? void 0 : y.height]), d = o(() => {
56
- const t = x ?? [], r = t.filter((n) => !M.includes(n)).map((n) => ({
37
+ }, [y == null ? void 0 : y.height]), b = r(() => {
38
+ const e = g ?? [], o = e.filter((n) => !oe.includes(n)).map((n) => ({
57
39
  ...n,
58
- width: n.useMaxWidth ? O() ?? n.width : n.width
40
+ width: n.useMaxWidth ? P() ?? n.width : n.width
59
41
  }));
60
- return it(t, r, m, c);
61
- }, [x]), k = o(() => ut(d, M), [d]), G = o(() => l ? k : d, [l, d, k]), z = o(() => {
62
- const t = u == null ? void 0 : u.length, e = t > 4 ? t >= 8 ? 8 : t : 4;
63
- return Array.from({ length: e }).map((n, i) => ({
64
- key: `${Date.now()}${i}`
42
+ return ce(e, o, !1, !!m, !!i);
43
+ }, [g]), k = r(() => ue(b), [b]), G = r(() => l ? k : b, [l, b, k]), T = r(() => {
44
+ const e = u == null ? void 0 : u.length, t = e > 4 ? e >= 8 ? 8 : e : 4;
45
+ return Array.from({ length: t }).map((n, c) => ({
46
+ key: `${Date.now()}${c}`
65
47
  }));
66
- }, [u]), U = o(() => l ? z : u, [l, u, z]), { table: w, locale: $ = ct } = D(mt), F = { ...$.Table }, H = ((N = w == null ? void 0 : w.expandable) == null ? void 0 : N.expandIcon) || (c == null ? void 0 : c.expandIcon) || lt(F), B = o(() => {
67
- if (c)
48
+ }, [u]), H = r(() => l ? T : u, [l, u, T]), { table: C, locale: $ = ie } = I(me), F = { ...$.Table }, _ = ((B = C == null ? void 0 : C.expandable) == null ? void 0 : B.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(F), p = r(() => {
49
+ if (i)
68
50
  return {
69
- ...c,
70
- expandedRowRender: () => /* @__PURE__ */ C.jsx(C.Fragment, {}),
71
- expandIcon: (t) => {
72
- const e = H(t);
51
+ ...i,
52
+ expandedRowRender: () => w.jsx(w.Fragment, {}),
53
+ expandIcon: (e) => {
54
+ const t = _(e);
73
55
  return {
74
- ...e,
56
+ ...t,
75
57
  props: {
76
- ...e.props,
58
+ ...t.props,
77
59
  disabled: !0,
78
60
  style: {
79
- ...e.props.style,
61
+ ...t.props.style,
80
62
  backgroundColor: j.colorBgContainerDisabled
81
63
  }
82
64
  }
83
65
  };
84
66
  }
85
67
  };
86
- }, [c]), X = o(() => l ? B : c, [l, c, B]), E = o(() => {
68
+ }, [i]), J = r(() => l ? p : i, [l, i, p]), W = r(() => {
87
69
  if (m)
88
70
  return {
89
71
  ...m,
90
72
  selectedRowKeys: [],
91
73
  getCheckboxProps: () => ({ disabled: !0 })
92
74
  };
93
- }, [m]), J = o(() => l ? E : m, [l, m, E]), Q = o(() => l ? void 0 : a.rowKey, [l, a.rowKey]), V = I(
94
- (t, e) => {
95
- var n;
96
- if (!a.onRow)
97
- return {};
98
- const r = (n = a.onRow) == null ? void 0 : n.call(a, t, e);
99
- return r.onClick && (r.className = "rowPointerCursor"), r;
100
- },
101
- [a.onRow]
102
- ), Y = I(
103
- (t, e, r) => {
104
- const n = e % 2 === 0 ? "oddRow" : "evenRow";
105
- if (a.rowClassName) {
106
- const i = a.rowClassName(t, e, r);
107
- return nt(n, i);
108
- }
109
- return n;
110
- },
111
- [a.rowClassName]
112
- ), Z = (t) => {
113
- var r;
114
- const e = { ...t };
115
- return e.className.includes("ant-table-cell-fix-right") && !R && ((r = e.style) != null && r.right) && (e.style = {
116
- ...e.style,
117
- right: e.style.right - (S || 0)
118
- }), /* @__PURE__ */ C.jsx("th", { ...e });
119
- }, tt = o(() => ({
75
+ }, [m]), O = r(() => l ? W : m, [l, m, W]), Q = r(() => l ? void 0 : a.rowKey, [l, a.rowKey]), U = L((e, t) => {
76
+ var n;
77
+ if (!a.onRow)
78
+ return {};
79
+ const o = (n = a.onRow) == null ? void 0 : n.call(a, e, t);
80
+ return o.onClick && (o.className = "rowPointerCursor"), o;
81
+ }, [a.onRow]), V = L((e, t, o) => {
82
+ const n = t % 2 === 0 ? "oddRow" : "evenRow";
83
+ if (a.rowClassName) {
84
+ const c = a.rowClassName(e, t, o);
85
+ return te(n, c);
86
+ }
87
+ return n;
88
+ }, [a.rowClassName]), X = (e) => {
89
+ var o;
90
+ const t = { ...e };
91
+ return t.className.includes("ant-table-cell-fix-right") && !x && ((o = t.style) != null && o.right) && (t.style = {
92
+ ...t.style,
93
+ right: t.style.right - (R || 0)
94
+ }), w.jsx("th", { ...t });
95
+ }, Y = r(() => ({
120
96
  ...f,
121
97
  header: {
122
98
  ...f == null ? void 0 : f.header,
123
- cell: Z
124
- }
125
- }), [f, R, S]);
126
- return /* @__PURE__ */ C.jsx(
127
- g,
128
- {
129
- ...a,
130
- bordered: q,
131
- columns: G,
132
- dataSource: U,
133
- loading: !1,
134
- pagination: !1,
135
- scroll: A,
136
- expandable: X,
137
- rowSelection: J,
138
- onRow: V,
139
- rowClassName: Y,
140
- components: tt,
141
- rowKey: Q,
142
- rowHoverable: P,
143
- ref: h
99
+ cell: X
144
100
  }
145
- );
101
+ }), [f, x, R]);
102
+ return w.jsx(ee, { ...a, bordered: M, columns: G, dataSource: H, loading: !1, pagination: !1, scroll: v, expandable: J, rowSelection: O, onRow: U, rowClassName: V, components: Y, rowKey: Q, rowHoverable: q, ref: h });
146
103
  }
147
104
  export {
148
- Bt as default
105
+ We as default
149
106
  };
@@ -0,0 +1,8 @@
1
+ import { ResizeCallbackData } from 'react-resizable';
2
+ declare const ResizableTitle: (props: React.HTMLAttributes<any> & {
3
+ hasScrollBar?: boolean;
4
+ scrollbarSize?: number;
5
+ onResize: (e: React.SyntheticEvent<Element>, data: ResizeCallbackData) => void;
6
+ width: number;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default ResizableTitle;
@@ -0,0 +1,14 @@
1
+ import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { Resizable as m } from "../../../node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs";
3
+ import { useMemo as d } from "react";
4
+ const f = (t) => {
5
+ const { hasScrollBar: o, scrollbarSize: n, onResize: c, width: r, ...h } = t, i = d(() => {
6
+ var l, a;
7
+ const e = { ...h };
8
+ return ((l = e.className) == null ? void 0 : l.includes("ant-table-cell-fix-right")) && !o && ((a = e.style) != null && a.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (n || 0)), e;
9
+ }, [t]);
10
+ return r ? s.jsx(m, { width: r, height: 0, handle: s.jsx("span", { className: "react-resizable-handle", onClick: (e) => e.stopPropagation() }), onResize: c, draggableOpts: { enableUserSelectHack: !1 }, children: s.jsx("th", { ...i }) }) : s.jsx("th", { ...i });
11
+ };
12
+ export {
13
+ f as default
14
+ };
@@ -1,25 +1,12 @@
1
1
  import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { DndContext as a } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
- import { restrictToVerticalAxis as n } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
2
+ import { DndContext as s } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
+ import { restrictToVerticalAxis as a } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
4
4
  import { SortableContext as x, verticalListSortingStrategy as f } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
5
- import { memo as p } from "react";
6
- function l({
7
- children: r,
8
- enabledRowDragSort: o,
9
- dataSource: e,
10
- mergeRowKey: m,
11
- onDragEnd: i
12
- }) {
13
- return o ? /* @__PURE__ */ t.jsx(a, { modifiers: [n], onDragEnd: i, children: /* @__PURE__ */ t.jsx(
14
- x,
15
- {
16
- items: e.map((s) => s[m]),
17
- strategy: f,
18
- children: r
19
- }
20
- ) }) : /* @__PURE__ */ t.jsx(t.Fragment, { children: r });
5
+ import { memo as l } from "react";
6
+ function p({ children: r, enabledRowDragSort: o, dataSource: e, mergeRowKey: i, onDragEnd: m }) {
7
+ return o ? t.jsx(s, { modifiers: [a], onDragEnd: m, children: t.jsx(x, { items: e.map((n) => n[i]), strategy: f, children: r }) }) : t.jsx(t.Fragment, { children: r });
21
8
  }
22
- const C = p(l);
9
+ const u = l(p);
23
10
  export {
24
- C as default
11
+ u as default
25
12
  };
@@ -1,53 +1,29 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
- import { useSortable as R } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
3
- import { CSS as b } from "../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
- import { theme as h } from "antd";
2
+ import { useSortable as y } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
3
+ import { CSS as R } from "../../../node_modules/.store/@dnd-kit_utilities@3.2.2/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs";
4
+ import { theme as b } from "antd";
5
5
  import a from "react";
6
- import j from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs";
7
- const T = ({ children: m, loading: t, ...e }) => {
8
- const { token: l } = h.useToken(), {
9
- attributes: f,
10
- listeners: u,
11
- setNodeRef: c,
12
- setActivatorNodeRef: d,
13
- transform: o,
14
- transition: p,
15
- isDragging: x
16
- } = R({ id: e["data-row-key"] }), S = {
6
+ import h from "../../../node_modules/.store/@ant-design_icons@5.3.6/node_modules/@ant-design/icons/es/icons/MenuOutlined.mjs";
7
+ const T = ({ children: l, loading: t, ...e }) => {
8
+ const { token: m } = b.useToken(), { attributes: f, listeners: u, setNodeRef: c, setActivatorNodeRef: d, transform: o, transition: p, isDragging: x } = y({ id: e["data-row-key"] }), S = {
17
9
  ...e.style,
18
- transform: b.Transform.toString(o && { ...o, scaleY: 1 }),
10
+ transform: R.Transform.toString(o && { ...o, scaleY: 1 }),
19
11
  transition: p,
20
12
  ...x ? { position: "relative", zIndex: 9999 } : {}
21
13
  };
22
- return /* @__PURE__ */ i.jsx(
23
- "tr",
24
- {
25
- ...e,
26
- style: S,
27
- ...f,
28
- ...t === "true" ? {} : {
29
- ref: c
30
- },
31
- children: a.Children.map(m, (r) => {
32
- var n, s;
33
- return ((s = (n = r.props) == null ? void 0 : n.additionalProps) == null ? void 0 : s["data-column-name"]) === "dragSortCell" ? a.cloneElement(r, {
34
- children: /* @__PURE__ */ i.jsx(
35
- j,
36
- {
37
- ref: d,
38
- style: {
39
- touchAction: "none",
40
- cursor: t === "true" ? "default" : "move",
41
- fontSize: "calc(var(--fontSize) + 3px)",
42
- color: t === "true" ? l.colorTextDisabled : "inherit"
43
- },
44
- ...u
45
- }
46
- )
47
- }) : r;
48
- })
49
- }
50
- );
14
+ return i.jsx("tr", { ...e, style: S, ...f, ...t === "true" ? {} : {
15
+ ref: c
16
+ }, children: a.Children.map(l, (r) => {
17
+ var n, s;
18
+ return ((s = (n = r.props) == null ? void 0 : n.additionalProps) == null ? void 0 : s["data-column-name"]) === "dragSorterCell" ? a.cloneElement(r, {
19
+ children: i.jsx(h, { ref: d, style: {
20
+ touchAction: "none",
21
+ cursor: t === "true" ? "default" : "move",
22
+ fontSize: "calc(var(--fontSize) + 2px)",
23
+ color: t === "true" ? m.colorTextDisabled : "inherit"
24
+ }, ...u })
25
+ }) : r;
26
+ }) });
51
27
  };
52
28
  export {
53
29
  T as default
@@ -50,7 +50,7 @@ export interface BitzTableProps<RecordType = any> extends Omit<TableProps<Record
50
50
  /** 是否启用分页组件的受控属性 */
51
51
  enableControlPage?: boolean;
52
52
  /** 多选/单选操作 */
53
- selelctionAlert?: SelelctionAlertProps;
53
+ selectionAlert?: SelelctionAlertProps;
54
54
  /** 分页控件的分页属性 */
55
55
  pagination?: {
56
56
  page: number;