bitz-react-admin-ui 2.5.9 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +25 -4
  2. package/dist/assets/iconfont/IconClose.mjs +24 -3
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
  6. package/dist/assets/iconfont/IconCuowu.mjs +23 -2
  7. package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
  8. package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
  9. package/dist/assets/iconfont/IconFabu.mjs +35 -5
  10. package/dist/assets/iconfont/IconFanhui.mjs +25 -4
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
  15. package/dist/assets/iconfont/IconIcon21.mjs +25 -4
  16. package/dist/assets/iconfont/IconJincoude.mjs +25 -4
  17. package/dist/assets/iconfont/IconJinggao.mjs +25 -4
  18. package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
  20. package/dist/assets/iconfont/IconMore.mjs +41 -4
  21. package/dist/assets/iconfont/IconShanchu.mjs +27 -6
  22. package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
  23. package/dist/assets/iconfont/IconSousuo.mjs +27 -6
  24. package/dist/assets/iconfont/IconTejincou.mjs +25 -4
  25. package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
  26. package/dist/assets/iconfont/IconTishi1.mjs +27 -6
  27. package/dist/assets/iconfont/IconTuodong.mjs +28 -7
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
  29. package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
  34. package/dist/assets/iconfont/index.mjs +33 -33
  35. package/dist/components/BitzAddTag/index.mjs +41 -8
  36. package/dist/components/BitzAddressBook/index.mjs +122 -35
  37. package/dist/components/BitzAppPage/index.mjs +18 -4
  38. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  39. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  40. package/dist/components/BitzButton/index.mjs +23 -9
  41. package/dist/components/BitzCalendar/index.mjs +52 -19
  42. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  43. package/dist/components/BitzCascader/index.mjs +6 -2
  44. package/dist/components/BitzCollapse/index.mjs +4 -4
  45. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  46. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  47. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  48. package/dist/components/BitzDescriptions/index.mjs +11 -1
  49. package/dist/components/BitzDrawer/index.mjs +17 -2
  50. package/dist/components/BitzEmpty/index.mjs +6 -2
  51. package/dist/components/BitzException/index.mjs +6 -1
  52. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  53. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  54. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  55. package/dist/components/BitzFluentRangeTimePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
  57. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  58. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  59. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  60. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  61. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  62. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  63. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
  64. package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
  65. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
  66. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  67. package/dist/components/BitzFullScreen/index.mjs +9 -6
  68. package/dist/components/BitzHighlight/Child.mjs +23 -9
  69. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  70. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  71. package/dist/components/BitzHighlight/style.mjs +4 -1
  72. package/dist/components/BitzImage/index.mjs +1 -1
  73. package/dist/components/BitzImage/previewImage.mjs +12 -5
  74. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  75. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  76. package/dist/components/BitzList/List.mjs +17 -3
  77. package/dist/components/BitzList/LoadMore.mjs +29 -20
  78. package/dist/components/BitzLoadMore/index.mjs +34 -14
  79. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  80. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  81. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  82. package/dist/components/BitzModal/index.mjs +24 -11
  83. package/dist/components/BitzNoData/index.mjs +4 -1
  84. package/dist/components/BitzNoMore/index.mjs +1 -1
  85. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  86. package/dist/components/BitzPageContainer/index.mjs +107 -46
  87. package/dist/components/BitzPageHeader/index.mjs +89 -21
  88. package/dist/components/BitzPagination/index.mjs +71 -22
  89. package/dist/components/BitzPopover/index.mjs +4 -4
  90. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  91. package/dist/components/BitzQRCode/index.mjs +6 -1
  92. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  93. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  94. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  95. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  96. package/dist/components/BitzRefresh/index.mjs +5 -1
  97. package/dist/components/BitzRemark/index.mjs +4 -4
  98. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  99. package/dist/components/BitzSearch/index.mjs +1 -1
  100. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  101. package/dist/components/BitzSelect/index.mjs +1 -1
  102. package/dist/components/BitzSkeleton/index.mjs +31 -1
  103. package/dist/components/BitzSwitch/index.mjs +7 -2
  104. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  105. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  106. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
  107. package/dist/components/BitzTable/ActionBar/Button.mjs +20 -15
  108. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  109. package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
  110. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  111. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  112. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  113. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  114. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
  115. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  116. package/dist/components/BitzTable/Store/index.mjs +170 -133
  117. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
  118. package/dist/components/BitzTable/Store/utils/index.mjs +48 -38
  119. package/dist/components/BitzTable/SubTable/index.mjs +91 -43
  120. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +57 -40
  121. package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
  122. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  123. package/dist/components/BitzTable/Table/index.mjs +476 -213
  124. package/dist/components/BitzTable/Table/style.mjs +10 -1
  125. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  126. package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +83 -27
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +278 -150
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +129 -38
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +97 -43
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
  137. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +38 -9
  138. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +42 -14
  139. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  140. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +37 -8
  141. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  142. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
  143. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  144. package/dist/components/BitzTableOperations/index.mjs +13 -3
  145. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  146. package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
  147. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
  148. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
  149. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
  150. package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
  151. package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
  152. package/dist/components/BitzTableSelect/index.mjs +65 -14
  153. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  154. package/dist/components/BitzTag/index.mjs +1 -1
  155. package/dist/components/BitzText/index.mjs +41 -14
  156. package/dist/components/BitzText/utils.mjs +3 -3
  157. package/dist/components/BitzTheme/index.mjs +6 -6
  158. package/dist/components/BitzTimeline/index.mjs +11 -1
  159. package/dist/components/BitzTimer/Form.mjs +32 -11
  160. package/dist/components/BitzTimer/Timer.mjs +76 -38
  161. package/dist/components/BitzTimer/index.mjs +66 -43
  162. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  163. package/dist/components/BitzToast/index.mjs +1 -1
  164. package/dist/components/BitzTooltip/index.mjs +47 -17
  165. package/dist/components/BitzTooltip/style.mjs +9 -6
  166. package/dist/components/BitzTooltip/utils.mjs +2 -2
  167. package/dist/components/BitzTree/index.mjs +4 -1
  168. package/dist/components/BitzUeEditor/index.mjs +5 -5
  169. package/dist/components/BitzUpload/index.mjs +81 -43
  170. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  171. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  172. package/dist/hooks/use-event-listener.mjs +11 -2
  173. package/dist/hooks/use-lock-fn.mjs +13 -10
  174. package/dist/hooks/use-scroll-parent.mjs +16 -14
  175. package/dist/hooks/useEvent.mjs +7 -4
  176. package/dist/hooks/useMergedState.mjs +11 -11
  177. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useDebounceFn/index.mjs +29 -0
  178. package/dist/node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/utils/lodash-polyfill.mjs +7 -0
  179. package/dist/node_modules/.store/lodash@4.17.21/node_modules/lodash/debounce.mjs +37 -34
  180. package/dist/style.css +1 -1
  181. package/dist/utils/WithFluent.mjs +27 -5
  182. package/dist/utils/create.mjs +7 -1
  183. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { j as w } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
- import { useContext as j, useRef as ee, useMemo as r, useCallback as K } from "react";
1
+ import { j as C } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as L, useRef as ee, useMemo as o, useCallback as j } from "react";
3
3
  import { Table as te } from "antd";
4
4
  import ne from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
- import { BitzTableContext as oe, toolCols as re } from "../Store/index.mjs";
5
+ import { BitzTableContext as re, toolCols as oe } from "../Store/index.mjs";
6
6
  import se from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
7
7
  import ae from "../../BitzTheme/index.mjs";
8
8
  import le from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/table/ExpandIcon.mjs";
@@ -11,45 +11,68 @@ import ie from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/local
11
11
  import { getColumnsWithTool as ce, loopBuildSkeleton as ue } from "../Table/utils.mjs";
12
12
  import { tablePaddingInline as me } from "../../BitzConfigProvider/context.mjs";
13
13
  import { ConfigContext as fe } from "../../../node_modules/.store/antd@5.17.3/node_modules/antd/es/config-provider/context.mjs";
14
- function ze({ dataSource: u, columns: g, loading: l, scroll: s, components: f, expandable: i, rowSelection: m, ...a }) {
15
- var B, E, I;
16
- const { token: x } = ae.useToken(), M = ((B = x.Table) == null ? void 0 : B.cellPaddingInline) ?? me, { showColumnBorder: P, rowHoverable: q } = j(oe), d = ee(null), C = se((E = d.current) == null ? void 0 : E.nativeElement), v = r(() => {
14
+ function Te({
15
+ dataSource: u,
16
+ columns: g,
17
+ loading: l,
18
+ scroll: s,
19
+ components: f,
20
+ expandable: i,
21
+ rowSelection: m,
22
+ ...a
23
+ }) {
24
+ var p, W, E;
25
+ const { token: x } = ae.useToken(), K = ((p = x.Table) == null ? void 0 : p.cellPaddingInline) ?? me, { showColumnBorder: M, rowHoverable: P } = L(re), h = ee(null), w = se((W = h.current) == null ? void 0 : W.nativeElement), q = o(() => {
17
26
  let e = (s == null ? void 0 : s.x) ?? 1e3;
18
27
  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
28
  }, [s]), A = () => {
20
- var o, n;
21
- const e = (n = (o = d.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 = [];
29
+ var r, n;
30
+ const e = (n = (r = h.current) == null ? void 0 : r.nativeElement) == null ? void 0 : n.querySelectorAll(
31
+ "& > .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)"
32
+ ), t = [];
22
33
  if (e == null || e.forEach((c) => {
23
- var h;
24
- t.push(((h = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : h.clientWidth) || 0);
34
+ var b;
35
+ t.push(
36
+ ((b = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
37
+ );
25
38
  }), t.length)
26
- return Math.ceil(Math.max(...t)) + M * 2;
27
- }, H = () => {
28
- var h, S, N, D, L;
29
- const e = (S = (h = d.current) == null ? void 0 : h.nativeElement) == null ? void 0 : S.querySelector(".ant-table-body"), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (L = (D = (N = d.current) == null ? void 0 : N.nativeElement) == null ? void 0 : D.querySelector(".ant-table-cell-scrollbar")) == null ? void 0 : L.offsetWidth;
39
+ return Math.ceil(Math.max(...t)) + K * 2;
40
+ }, $ = () => {
41
+ var b, I, v, N, D;
42
+ const e = (I = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : I.querySelector(
43
+ ".ant-table-body"
44
+ ), t = e == null ? void 0 : e.clientWidth, n = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, c = (D = (N = (v = h.current) == null ? void 0 : v.nativeElement) == null ? void 0 : N.querySelector(
45
+ ".ant-table-cell-scrollbar"
46
+ )) == null ? void 0 : D.offsetWidth;
30
47
  return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
31
- }, { hasScrollBar: R, scrollbarSize: k } = r(() => {
32
- const { hasScrollBar: e, scrollbarSize: t } = H();
48
+ }, { hasScrollBar: R, scrollbarSize: k } = o(() => {
49
+ const { hasScrollBar: e, scrollbarSize: t } = $();
33
50
  return {
34
51
  hasScrollBar: e,
35
52
  scrollbarSize: t
36
53
  };
37
- }, [C == null ? void 0 : C.height]), b = r(() => {
38
- const e = g ?? [], o = e.filter((n) => !re.includes(n)).map((n) => ({
54
+ }, [w == null ? void 0 : w.height]), d = o(() => {
55
+ const e = g ?? [], r = e.filter((n) => !oe.includes(n)).map((n) => ({
39
56
  ...n,
40
57
  width: n.useMaxWidth ? A() ?? n.width : n.width
41
58
  }));
42
- return ce(e, o, !1, !!m, !!i);
43
- }, [g]), T = r(() => ue(b), [b]), $ = r(() => l ? T : b, [l, b, T]), p = r(() => {
59
+ return ce(
60
+ e,
61
+ r,
62
+ !1,
63
+ !!m,
64
+ !!i
65
+ );
66
+ }, [g]), S = o(() => ue(d), [d]), F = o(() => l ? S : d, [l, d, S]), z = o(() => {
44
67
  const e = (u == null ? void 0 : u.length) ?? 0, t = e > 4 ? e >= 8 ? 8 : e : 4;
45
68
  return Array.from({ length: t }).map((n, c) => ({
46
69
  key: `${Date.now()}${c}`
47
70
  }));
48
- }, [u]), F = r(() => l ? p : u, [l, u, p]), { table: y, locale: G = ie } = j(fe), _ = { ...G.Table }, J = ((I = y == null ? void 0 : y.expandable) == null ? void 0 : I.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(_), W = r(() => {
71
+ }, [u]), G = o(() => l ? z : u, [l, u, z]), { table: y, locale: H = ie } = L(fe), _ = { ...H.Table }, J = ((E = y == null ? void 0 : y.expandable) == null ? void 0 : E.expandIcon) || (i == null ? void 0 : i.expandIcon) || le(_), B = o(() => {
49
72
  if (i)
50
73
  return {
51
74
  ...i,
52
- expandedRowRender: () => w.jsx(w.Fragment, {}),
75
+ expandedRowRender: () => /* @__PURE__ */ C.jsx(C.Fragment, {}),
53
76
  expandIcon: (e) => {
54
77
  const t = J(e);
55
78
  return {
@@ -65,42 +88,67 @@ function ze({ dataSource: u, columns: g, loading: l, scroll: s, components: f, e
65
88
  };
66
89
  }
67
90
  };
68
- }, [i]), O = r(() => l ? W : i, [l, i, W]), z = r(() => {
91
+ }, [i]), O = o(() => l ? B : i, [l, i, B]), T = o(() => {
69
92
  if (m)
70
93
  return {
71
94
  ...m,
72
95
  selectedRowKeys: [],
73
96
  getCheckboxProps: () => ({ disabled: !0 })
74
97
  };
75
- }, [m]), Q = r(() => l ? z : m, [l, m, z]), U = r(() => l ? void 0 : a.rowKey, [l, a.rowKey]), V = K((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]), X = K((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 ne(n, c);
86
- }
87
- return n;
88
- }, [a.rowClassName]), Y = (e) => {
89
- var o;
98
+ }, [m]), Q = o(() => l ? T : m, [l, m, T]), U = o(() => l ? void 0 : a.rowKey, [l, a.rowKey]), V = j(
99
+ (e, t) => {
100
+ var n;
101
+ if (!a.onRow)
102
+ return {};
103
+ const r = (n = a.onRow) == null ? void 0 : n.call(a, e, t);
104
+ return r.onClick && (r.className = "rowPointerCursor"), r;
105
+ },
106
+ [a.onRow]
107
+ ), X = j(
108
+ (e, t, r) => {
109
+ const n = t % 2 === 0 ? "oddRow" : "evenRow";
110
+ if (a.rowClassName) {
111
+ const c = a.rowClassName(e, t, r);
112
+ return ne(n, c);
113
+ }
114
+ return n;
115
+ },
116
+ [a.rowClassName]
117
+ ), Y = (e) => {
118
+ var r;
90
119
  const t = { ...e };
91
- return t.className.includes("ant-table-cell-fix-right") && !R && ((o = t.style) != null && o.right) && (t.style = {
120
+ return t.className.includes("ant-table-cell-fix-right") && !R && ((r = t.style) != null && r.right) && (t.style = {
92
121
  ...t.style,
93
122
  right: t.style.right - (k || 0)
94
- }), w.jsx("th", { ...t });
95
- }, Z = r(() => ({
123
+ }), /* @__PURE__ */ C.jsx("th", { ...t });
124
+ }, Z = o(() => ({
96
125
  ...f,
97
126
  header: {
98
127
  ...f == null ? void 0 : f.header,
99
128
  cell: Y
100
129
  }
101
130
  }), [f, R, k]);
102
- return w.jsx(te, { ...a, bordered: P, columns: $, dataSource: F, loading: !1, pagination: !1, scroll: v, expandable: O, rowSelection: Q, onRow: V, rowClassName: X, components: Z, rowKey: U, rowHoverable: q, ref: d });
131
+ return /* @__PURE__ */ C.jsx(
132
+ te,
133
+ {
134
+ ...a,
135
+ bordered: M,
136
+ columns: F,
137
+ dataSource: G,
138
+ loading: !1,
139
+ pagination: !1,
140
+ scroll: q,
141
+ expandable: O,
142
+ rowSelection: Q,
143
+ onRow: V,
144
+ rowClassName: X,
145
+ components: Z,
146
+ rowKey: U,
147
+ rowHoverable: P,
148
+ ref: h
149
+ }
150
+ );
103
151
  }
104
152
  export {
105
- ze as default
153
+ Te as default
106
154
  };
@@ -1,54 +1,71 @@
1
1
  import { j as a } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { Resizable as v } from "../../../node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs";
3
- import { useState as E, useMemo as b, useRef as o } from "react";
4
- import O from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
- const d = 56, T = (p) => {
6
- const { hasScrollBar: x, scrollbarSize: y, onResize: g, width: n, datagridref: S, stretchref: u, ...P } = p, [j, m] = E(!1), z = b(() => {
7
- var t, R;
8
- const e = { ...P };
9
- return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !x && ((R = e.style) != null && R.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (y || 0)), e;
10
- }, [p]), c = o(0), f = o(0), s = o(0), l = o(0), i = o(!1), h = b(() => c.current - n + d, [c.current, n]);
3
+ import { useState as E, useMemo as b, useRef as i } from "react";
4
+ import L from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
+ const d = 56, C = (p) => {
6
+ const { hasScrollBar: g, scrollbarSize: y, onResize: x, width: n, datagridref: S, stretchref: u, ...j } = p, [D, m] = E(!1), R = b(() => {
7
+ var t, z;
8
+ const e = { ...j };
9
+ return ((t = e.className) == null ? void 0 : t.includes("ant-table-cell-fix-right")) && !g && ((z = e.style) != null && z.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (y || 0)), e;
10
+ }, [p]), c = i(0), f = i(0), r = i(0), l = i(0), o = i(!1), h = b(() => c.current - n + d, [c.current, n]);
11
11
  if (!n)
12
- return a.jsx("th", { ...z });
13
- const w = (e) => {
14
- let r = e.offsetLeft, t = e.offsetParent;
15
- for (; t !== null; )
16
- r += t.offsetLeft, t = t.offsetParent;
17
- return { x: r };
18
- }, L = (e) => {
19
- if (s.current = e.clientX - f.current, n + s.current - c.current <= d || s.current < h) {
20
- i.current = !0;
12
+ return /* @__PURE__ */ a.jsx("th", { ...R });
13
+ const N = (e) => {
14
+ if (r.current = e.clientX - f.current, n + r.current - c.current <= d || r.current < h) {
15
+ o.current = !0;
21
16
  return;
22
17
  }
23
- s.current >= h && i.current && (s.current = h, i.current = !1);
18
+ r.current >= h && o.current && (r.current = h, o.current = !1);
24
19
  const t = u.current;
25
- l.current = s.current, t.style.left = `${l.current}px`;
26
- }, D = (e) => {
27
- m(!0), s.current = 0, l.current = 0;
28
- const r = u.current;
29
- r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = w(S.current).x;
20
+ l.current = r.current, t.style.left = `${l.current}px`;
21
+ }, w = (e) => {
22
+ m(!0);
23
+ const s = u.current;
24
+ s.style.opacity = 1, s.style.pointerEvents = "auto", f.current = S.current.getBoundingClientRect().left;
30
25
  const t = e.clientX - f.current;
31
- r.style.left = `${t}px`, c.current = t, s.current = t;
32
- }, N = (e, r) => {
33
- i.current = !1, m(!1);
26
+ l.current = t, s.style.left = `${t}px`, c.current = t, r.current = t;
27
+ }, P = (e, s) => {
28
+ o.current = !1, m(!1);
34
29
  const t = u.current;
35
30
  t.style.opacity = 0, t.style.pointerEvents = "none", setTimeout(() => {
36
31
  t.style.left = "0px";
37
- }, 200), g(e, {
38
- ...r,
39
- minWidth: d,
40
- size: {
41
- ...r.size,
42
- width: n + l.current - c.current
32
+ }, 200), x(
33
+ e,
34
+ {
35
+ ...s,
36
+ minWidth: d,
37
+ size: {
38
+ ...s.size,
39
+ width: n + l.current - c.current
40
+ }
43
41
  }
44
- });
45
- }, X = a.jsx("span", { className: "bitzResizableHandle", onClick: (e) => {
46
- e.stopPropagation(), e.preventDefault();
47
- } });
48
- return a.jsx(v, { width: n, height: 0, handle: X, className: O("bitzResizable", {
49
- disabledUserSelect: j
50
- }), onResize: L, onResizeStart: D, onResizeStop: N, draggableOpts: { enableUserSelectHack: !1 }, children: a.jsx("th", { ...z }) });
42
+ ), l.current = 0, c.current = 0, r.current = 0;
43
+ }, X = /* @__PURE__ */ a.jsx(
44
+ "span",
45
+ {
46
+ className: "bitzResizableHandle",
47
+ onClick: (e) => {
48
+ e.stopPropagation(), e.preventDefault();
49
+ }
50
+ }
51
+ );
52
+ return /* @__PURE__ */ a.jsx(
53
+ v,
54
+ {
55
+ width: n,
56
+ height: 0,
57
+ handle: X,
58
+ className: L("bitzResizable", {
59
+ disabledUserSelect: D
60
+ }),
61
+ onResize: N,
62
+ onResizeStart: w,
63
+ onResizeStop: P,
64
+ draggableOpts: { enableUserSelectHack: !1 },
65
+ children: /* @__PURE__ */ a.jsx("th", { ...R })
66
+ }
67
+ );
51
68
  };
52
69
  export {
53
- T as default
70
+ C as default
54
71
  };
@@ -1,26 +1,48 @@
1
1
  import { j as n } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
2
2
  import { DndContext as v } from "../../../node_modules/.store/@dnd-kit_core@6.1.0/node_modules/@dnd-kit/core/dist/core.esm.mjs";
3
- import { restrictToVerticalAxis as D } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
4
- import { SortableContext as u, verticalListSortingStrategy as S, arrayMove as j } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
5
- import { useState as C } from "react";
6
- function A({ children: i, enabledRowDragSort: x, dataSource: s, mergeRowKey: d, onDragEnd: l }) {
7
- const [c, a] = C(-1), f = (t) => {
8
- var o, e;
9
- const { active: r } = t;
10
- r && a((e = (o = r.data) == null ? void 0 : o.current) == null ? void 0 : e.sortable.index);
3
+ import { restrictToVerticalAxis as u } from "../../../node_modules/.store/@dnd-kit_modifiers@6.0.1/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs";
4
+ import { SortableContext as j, verticalListSortingStrategy as C, arrayMove as D } from "../../../node_modules/.store/@dnd-kit_sortable@7.0.2/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs";
5
+ import { useState as S } from "react";
6
+ function T({
7
+ children: a,
8
+ enabledRowDragSort: x,
9
+ dataSource: i,
10
+ mergeRowKey: d,
11
+ onDragEnd: f
12
+ }) {
13
+ const [c, s] = S(-1), l = (t) => {
14
+ var r, e;
15
+ const { active: o } = t;
16
+ o && s((e = (r = o.data) == null ? void 0 : r.current) == null ? void 0 : e.sortable.index);
11
17
  }, g = (t) => {
12
- var o, e;
13
- const { over: r } = t;
14
- if (r) {
15
- const m = (e = (o = r.data) == null ? void 0 : o.current) == null ? void 0 : e.sortable.index;
18
+ var r, e;
19
+ const { over: o } = t;
20
+ if (o) {
21
+ const m = (e = (r = o.data) == null ? void 0 : r.current) == null ? void 0 : e.sortable.index;
16
22
  c !== m && p(c, m);
17
23
  }
18
- }, p = (t, r) => {
19
- const o = j(s.slice() ?? [], t, r);
20
- l(o), a(-1);
24
+ }, p = (t, o) => {
25
+ const r = D(i.slice() ?? [], t, o);
26
+ f(r), s(-1);
21
27
  };
22
- return x ? n.jsx(v, { modifiers: [D], onDragStart: f, onDragEnd: g, onDragCancel: () => a(-1), children: n.jsx(u, { items: s.map((t) => t[d]), strategy: S, children: i }) }) : n.jsx(n.Fragment, { children: i });
28
+ return x ? /* @__PURE__ */ n.jsx(
29
+ v,
30
+ {
31
+ modifiers: [u],
32
+ onDragStart: l,
33
+ onDragEnd: g,
34
+ onDragCancel: () => s(-1),
35
+ children: /* @__PURE__ */ n.jsx(
36
+ j,
37
+ {
38
+ items: i.map((t) => t[d]),
39
+ strategy: C,
40
+ children: a
41
+ }
42
+ )
43
+ }
44
+ ) : /* @__PURE__ */ n.jsx(n.Fragment, { children: a });
23
45
  }
24
46
  export {
25
- A as default
47
+ T as default
26
48
  };
@@ -1,29 +1,53 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.3.1/node_modules/react/jsx-runtime.mjs";
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";
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";
5
5
  import a from "react";
6
- import h from "../../../node_modules/.store/@ant-design_icons@5.3.7/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 = {
6
+ import j from "../../../node_modules/.store/@ant-design_icons@5.3.7/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 = {
9
17
  ...e.style,
10
- transform: R.Transform.toString(o && { ...o, scaleY: 1 }),
18
+ transform: b.Transform.toString(o && { ...o, scaleY: 1 }),
11
19
  transition: p,
12
20
  ...x ? { position: "relative", zIndex: 9999 } : {}
13
21
  };
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
- }) });
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"]) === "dragSorterCell" ? 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) + 2px)",
42
+ color: t === "true" ? l.colorTextDisabled : "inherit"
43
+ },
44
+ ...u
45
+ }
46
+ )
47
+ }) : r;
48
+ })
49
+ }
50
+ );
27
51
  };
28
52
  export {
29
53
  T as default