bitz-react-admin-ui 2.2.8 → 2.2.9

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 (169) hide show
  1. package/dist/assets/iconfont/IconChenggong.mjs +10 -4
  2. package/dist/assets/iconfont/IconClose.mjs +7 -1
  3. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +25 -4
  4. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +29 -8
  5. package/dist/assets/iconfont/IconColumnFixedRight.mjs +28 -7
  6. package/dist/assets/iconfont/IconCuowu.mjs +8 -2
  7. package/dist/assets/iconfont/IconDragOrder.mjs +28 -7
  8. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  9. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  10. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  11. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  12. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  13. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  14. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  15. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  16. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  17. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  18. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  19. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  20. package/dist/assets/iconfont/IconMore.mjs +26 -4
  21. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  22. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  23. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  24. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  25. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  26. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  27. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  28. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  29. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  30. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  31. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  32. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  33. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  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/BitzConvert/DropdownToButton/index.mjs +14 -11
  49. package/dist/components/BitzConvert/index.mjs +1 -1
  50. package/dist/components/BitzDescriptions/index.mjs +11 -1
  51. package/dist/components/BitzDrawer/index.mjs +17 -2
  52. package/dist/components/BitzEmpty/index.mjs +6 -2
  53. package/dist/components/BitzException/index.mjs +6 -1
  54. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  55. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  56. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  57. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  58. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  59. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  60. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  61. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +51 -19
  62. package/dist/components/BitzFuiCalendar/ColumnData.mjs +30 -14
  63. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  64. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  65. package/dist/components/BitzFullScreen/index.mjs +9 -6
  66. package/dist/components/BitzHighlight/Child.mjs +23 -9
  67. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  68. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  69. package/dist/components/BitzHighlight/style.mjs +4 -1
  70. package/dist/components/BitzImage/index.mjs +1 -1
  71. package/dist/components/BitzImage/previewImage.mjs +12 -5
  72. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  73. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  74. package/dist/components/BitzList/List.mjs +17 -3
  75. package/dist/components/BitzList/LoadMore.mjs +29 -20
  76. package/dist/components/BitzLoadMore/index.mjs +34 -14
  77. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  78. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  79. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  80. package/dist/components/BitzModal/index.mjs +24 -11
  81. package/dist/components/BitzNoData/index.mjs +4 -1
  82. package/dist/components/BitzNoMore/index.mjs +1 -1
  83. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  84. package/dist/components/BitzPageContainer/index.mjs +107 -46
  85. package/dist/components/BitzPageHeader/index.mjs +89 -21
  86. package/dist/components/BitzPagination/index.mjs +71 -22
  87. package/dist/components/BitzPopover/index.mjs +4 -4
  88. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  89. package/dist/components/BitzQRCode/index.mjs +6 -1
  90. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  91. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  92. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  93. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  94. package/dist/components/BitzRefresh/index.mjs +5 -1
  95. package/dist/components/BitzRemark/index.mjs +4 -4
  96. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  97. package/dist/components/BitzSearch/index.mjs +1 -1
  98. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  99. package/dist/components/BitzSelect/index.mjs +1 -1
  100. package/dist/components/BitzSkeleton/index.mjs +31 -1
  101. package/dist/components/BitzSwitch/index.mjs +7 -2
  102. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  103. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  104. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +73 -12
  105. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  106. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  107. package/dist/components/BitzTable/ActionCol/index.mjs +95 -21
  108. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  109. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  110. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  111. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  112. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +8 -2
  113. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  114. package/dist/components/BitzTable/Store/index.mjs +121 -89
  115. package/dist/components/BitzTable/Store/utils/index.mjs +25 -25
  116. package/dist/components/BitzTable/SubTable/index.mjs +100 -52
  117. package/dist/components/BitzTable/Table/ResizableTitle.mjs +23 -5
  118. package/dist/components/BitzTable/Table/SortTableContext.mjs +20 -7
  119. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  120. package/dist/components/BitzTable/Table/index.mjs +395 -187
  121. package/dist/components/BitzTable/Table/style.mjs +11 -1
  122. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +92 -28
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +97 -22
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +253 -145
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +38 -12
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +96 -20
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +30 -8
  133. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +44 -14
  134. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +44 -12
  135. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  136. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +49 -12
  137. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  138. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +48 -2
  139. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  140. package/dist/components/BitzTableOperations/index.mjs +13 -3
  141. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  142. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  143. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +30 -20
  144. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +239 -61
  145. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  146. package/dist/components/BitzTableSelect/TextBlock/index.mjs +23 -5
  147. package/dist/components/BitzTableSelect/index.mjs +61 -13
  148. package/dist/components/BitzTag/index.mjs +1 -1
  149. package/dist/components/BitzTheme/index.mjs +6 -6
  150. package/dist/components/BitzTimeline/index.mjs +11 -1
  151. package/dist/components/BitzTimer/Form.mjs +32 -11
  152. package/dist/components/BitzTimer/Timer.mjs +76 -38
  153. package/dist/components/BitzTimer/index.mjs +66 -43
  154. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  155. package/dist/components/BitzToast/index.mjs +1 -1
  156. package/dist/components/BitzTree/index.mjs +4 -1
  157. package/dist/components/BitzUeEditor/index.mjs +5 -5
  158. package/dist/components/BitzUpload/index.mjs +81 -43
  159. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  160. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  161. package/dist/hooks/use-event-listener.mjs +11 -2
  162. package/dist/hooks/use-lock-fn.mjs +13 -10
  163. package/dist/hooks/use-scroll-parent.mjs +16 -14
  164. package/dist/hooks/useEvent.mjs +7 -4
  165. package/dist/hooks/useMergedState.mjs +11 -11
  166. package/dist/style.css +1 -1
  167. package/dist/utils/WithFluent.mjs +27 -12
  168. package/dist/utils/create.mjs +7 -1
  169. package/package.json +1 -1
@@ -1,55 +1,78 @@
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";
1
+ import { j as y } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
+ import { useContext as D, useRef as Z, useMemo as o, useCallback as I } from "react";
3
3
  import { Table as ee } from "antd";
4
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";
5
+ import { BitzTableContext as re, toolCols as ne } from "../Store/index.mjs";
6
+ import oe from "../../../node_modules/.store/ahooks@3.7.11/node_modules/ahooks/es/useSize/index.mjs";
7
7
  import se from "../ActionCol/style.mjs";
8
8
  import ae from "../../BitzTheme/index.mjs";
9
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 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";
11
+ import ce from "../../../node_modules/.store/antd@5.16.2/node_modules/antd/locale/en_US.mjs";
12
+ import { getColumnsWithTool as ie, loopBuildSkeleton as ue } from "../Table/utils.mjs";
13
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(() => {
14
+ function Be({
15
+ dataSource: u = [],
16
+ columns: g,
17
+ loading: l = !1,
18
+ scroll: s,
19
+ components: f,
20
+ expandable: c,
21
+ rowSelection: m,
22
+ ...a
23
+ }) {
24
+ var T, p;
25
+ const { token: L } = ae.useToken(), { gap: j } = se(), { showColumnBorder: K, rowHoverable: M } = D(re), h = Z(null), C = oe((T = h.current) == null ? void 0 : T.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]), 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);
29
+ var n, r;
30
+ const e = (r = (n = h.current) == null ? void 0 : n.nativeElement) == null ? void 0 : r.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 = [];
33
+ if (e == null || e.forEach((i) => {
34
+ var b;
35
+ t.push(
36
+ ((b = i.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
37
+ );
25
38
  }), t.length)
26
- return Math.ceil(Math.max(...t)) + K * 2;
39
+ return Math.ceil(Math.max(...t)) + j * 2;
27
40
  }, 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(() => {
41
+ var b, W, E, v, N;
42
+ const e = (W = (b = h.current) == null ? void 0 : b.nativeElement) == null ? void 0 : W.querySelector(
43
+ ".ant-table-body"
44
+ ), t = e == null ? void 0 : e.clientWidth, r = ((e == null ? void 0 : e.offsetWidth) || 0) - t > 0, i = (N = (v = (E = h.current) == null ? void 0 : E.nativeElement) == null ? void 0 : v.querySelector(
45
+ ".ant-table-cell-scrollbar"
46
+ )) == null ? void 0 : N.offsetWidth;
47
+ return { tbodyWidth: t, scrollbarSize: i, hasScrollBar: r };
48
+ }, { hasScrollBar: x, scrollbarSize: R } = o(() => {
32
49
  const { hasScrollBar: e, scrollbarSize: t } = A();
33
50
  return {
34
51
  hasScrollBar: e,
35
52
  scrollbarSize: t
36
53
  };
37
- }, [y == null ? void 0 : y.height]), b = r(() => {
38
- const e = g ?? [], o = e.filter((n) => !oe.includes(n)).map((n) => ({
39
- ...n,
40
- width: n.useMaxWidth ? P() ?? n.width : n.width
54
+ }, [C == null ? void 0 : C.height]), d = o(() => {
55
+ const e = g ?? [], n = e.filter((r) => !ne.includes(r)).map((r) => ({
56
+ ...r,
57
+ width: r.useMaxWidth ? P() ?? r.width : r.width
41
58
  }));
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(() => {
59
+ return ie(
60
+ e,
61
+ n,
62
+ !1,
63
+ !!m,
64
+ !!c
65
+ );
66
+ }, [g]), k = o(() => ue(d), [d]), G = o(() => l ? k : d, [l, d, k]), S = o(() => {
44
67
  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}`
68
+ return Array.from({ length: t }).map((r, i) => ({
69
+ key: `${Date.now()}${i}`
47
70
  }));
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)
71
+ }, [u]), $ = o(() => l ? S : u, [l, u, S]), { table: w, locale: F = ce } = D(me), H = { ...F.Table }, _ = ((p = w == null ? void 0 : w.expandable) == null ? void 0 : p.expandIcon) || (c == null ? void 0 : c.expandIcon) || le(H), z = o(() => {
72
+ if (c)
50
73
  return {
51
- ...i,
52
- expandedRowRender: () => w.jsx(w.Fragment, {}),
74
+ ...c,
75
+ expandedRowRender: () => /* @__PURE__ */ y.jsx(y.Fragment, {}),
53
76
  expandIcon: (e) => {
54
77
  const t = _(e);
55
78
  return {
@@ -59,48 +82,73 @@ function We({ dataSource: u = [], columns: g, loading: l = !1, scroll: s, compon
59
82
  disabled: !0,
60
83
  style: {
61
84
  ...t.props.style,
62
- backgroundColor: j.colorBgContainerDisabled
85
+ backgroundColor: L.colorBgContainerDisabled
63
86
  }
64
87
  }
65
88
  };
66
89
  }
67
90
  };
68
- }, [i]), J = r(() => l ? p : i, [l, i, p]), W = r(() => {
91
+ }, [c]), J = o(() => l ? z : c, [l, c, z]), B = o(() => {
69
92
  if (m)
70
93
  return {
71
94
  ...m,
72
95
  selectedRowKeys: [],
73
96
  getCheckboxProps: () => ({ disabled: !0 })
74
97
  };
75
- }, [m]), O = r(() => l ? W : m, [l, m, W]), Q = r(() => l ? void 0 : a.rowKey, [l, a.rowKey]), U = L((e, t) => {
98
+ }, [m]), O = o(() => l ? B : m, [l, m, B]), Q = o(() => l ? void 0 : a.rowKey, [l, a.rowKey]), U = I(
99
+ (e, t) => {
100
+ var r;
101
+ if (!a.onRow)
102
+ return {};
103
+ const n = (r = a.onRow) == null ? void 0 : r.call(a, e, t);
104
+ return n.onClick && (n.className = "rowPointerCursor"), n;
105
+ },
106
+ [a.onRow]
107
+ ), V = I(
108
+ (e, t, n) => {
109
+ const r = t % 2 === 0 ? "oddRow" : "evenRow";
110
+ if (a.rowClassName) {
111
+ const i = a.rowClassName(e, t, n);
112
+ return te(r, i);
113
+ }
114
+ return r;
115
+ },
116
+ [a.rowClassName]
117
+ ), X = (e) => {
76
118
  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
119
  const t = { ...e };
91
- return t.className.includes("ant-table-cell-fix-right") && !x && ((o = t.style) != null && o.right) && (t.style = {
120
+ return t.className.includes("ant-table-cell-fix-right") && !x && ((n = t.style) != null && n.right) && (t.style = {
92
121
  ...t.style,
93
122
  right: t.style.right - (R || 0)
94
- }), w.jsx("th", { ...t });
95
- }, Y = r(() => ({
123
+ }), /* @__PURE__ */ y.jsx("th", { ...t });
124
+ }, Y = o(() => ({
96
125
  ...f,
97
126
  header: {
98
127
  ...f == null ? void 0 : f.header,
99
128
  cell: X
100
129
  }
101
130
  }), [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 });
131
+ return /* @__PURE__ */ y.jsx(
132
+ ee,
133
+ {
134
+ ...a,
135
+ bordered: K,
136
+ columns: G,
137
+ dataSource: $,
138
+ loading: !1,
139
+ pagination: !1,
140
+ scroll: q,
141
+ expandable: J,
142
+ rowSelection: O,
143
+ onRow: U,
144
+ rowClassName: V,
145
+ components: Y,
146
+ rowKey: Q,
147
+ rowHoverable: M,
148
+ ref: h
149
+ }
150
+ );
103
151
  }
104
152
  export {
105
- We as default
153
+ Be as default
106
154
  };
@@ -1,13 +1,31 @@
1
1
  import { j as s } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.mjs";
2
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";
3
+ import { useMemo as g } from "react";
4
4
  const f = (t) => {
5
- const { hasScrollBar: o, scrollbarSize: n, onResize: c, width: r, ...h } = t, i = d(() => {
6
- var l, a;
5
+ const { hasScrollBar: o, scrollbarSize: n, onResize: c, width: r, ...h } = t, l = g(() => {
6
+ var i, a;
7
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;
8
+ return ((i = e.className) == null ? void 0 : i.includes(
9
+ "ant-table-cell-fix-right"
10
+ )) && !o && ((a = e.style) != null && a.right) && (e.style = { ...e.style ?? {} }, e.style.right = Number(e.style.right ?? 0) - (n || 0)), e;
9
11
  }, [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 });
12
+ return r ? /* @__PURE__ */ s.jsx(
13
+ m,
14
+ {
15
+ width: r,
16
+ height: 0,
17
+ handle: /* @__PURE__ */ s.jsx(
18
+ "span",
19
+ {
20
+ className: "react-resizable-handle",
21
+ onClick: (e) => e.stopPropagation()
22
+ }
23
+ ),
24
+ onResize: c,
25
+ draggableOpts: { enableUserSelectHack: !1 },
26
+ children: /* @__PURE__ */ s.jsx("th", { ...l })
27
+ }
28
+ ) : /* @__PURE__ */ s.jsx("th", { ...l });
11
29
  };
12
30
  export {
13
31
  f as default
@@ -1,12 +1,25 @@
1
1
  import { j as t } from "../../../node_modules/.store/react@18.2.0/node_modules/react/jsx-runtime.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";
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";
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 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 });
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 });
8
21
  }
9
- const u = l(p);
22
+ const C = p(l);
10
23
  export {
11
- u as default
24
+ C as default
12
25
  };
@@ -1,29 +1,53 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.2.0/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.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 = {
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 = {
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