bitz-react-admin-ui 2.5.7 → 2.5.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 (190) hide show
  1. package/dist/_virtual/index.mjs +2 -2
  2. package/dist/_virtual/index2.mjs +2 -2
  3. package/dist/assets/iconfont/IconChenggong.mjs +4 -25
  4. package/dist/assets/iconfont/IconClose.mjs +3 -24
  5. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +2 -23
  6. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +6 -27
  7. package/dist/assets/iconfont/IconColumnFixedRight.mjs +6 -27
  8. package/dist/assets/iconfont/IconCuowu.mjs +2 -23
  9. package/dist/assets/iconfont/IconDragOrder.mjs +4 -25
  10. package/dist/assets/iconfont/IconDuigoux.mjs +4 -25
  11. package/dist/assets/iconfont/IconFabu.mjs +5 -35
  12. package/dist/assets/iconfont/IconFanhui.mjs +4 -25
  13. package/dist/assets/iconfont/IconGaojisousuo.mjs +5 -26
  14. package/dist/assets/iconfont/IconHangfengexian.mjs +3 -41
  15. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -42
  16. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -26
  17. package/dist/assets/iconfont/IconIcon21.mjs +4 -25
  18. package/dist/assets/iconfont/IconJincoude.mjs +4 -25
  19. package/dist/assets/iconfont/IconJinggao.mjs +4 -25
  20. package/dist/assets/iconfont/IconKuansongde.mjs +5 -26
  21. package/dist/assets/iconfont/IconLiefengexian.mjs +3 -41
  22. package/dist/assets/iconfont/IconMore.mjs +4 -41
  23. package/dist/assets/iconfont/IconShanchu.mjs +6 -27
  24. package/dist/assets/iconfont/IconShanchu1.mjs +5 -35
  25. package/dist/assets/iconfont/IconSousuo.mjs +6 -27
  26. package/dist/assets/iconfont/IconTejincou.mjs +4 -25
  27. package/dist/assets/iconfont/IconTekuansong.mjs +5 -26
  28. package/dist/assets/iconfont/IconTishi1.mjs +6 -27
  29. package/dist/assets/iconfont/IconTuodong.mjs +7 -28
  30. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +3 -35
  31. package/dist/assets/iconfont/IconWufengexian.mjs +4 -26
  32. package/dist/assets/iconfont/IconXinxitishi.mjs +6 -27
  33. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +3 -34
  34. package/dist/assets/iconfont/IconZhongdengde.mjs +3 -24
  35. package/dist/assets/iconfont/IconZhongzhi.mjs +3 -24
  36. package/dist/assets/iconfont/index.mjs +33 -33
  37. package/dist/components/BitzAddTag/index.mjs +8 -41
  38. package/dist/components/BitzAddressBook/index.mjs +35 -122
  39. package/dist/components/BitzAppPage/index.mjs +4 -18
  40. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  41. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  42. package/dist/components/BitzButton/index.mjs +9 -23
  43. package/dist/components/BitzCalendar/index.mjs +19 -52
  44. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  45. package/dist/components/BitzCascader/index.mjs +2 -6
  46. package/dist/components/BitzCollapse/index.mjs +4 -4
  47. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  48. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  49. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  50. package/dist/components/BitzDescriptions/index.mjs +1 -11
  51. package/dist/components/BitzDrawer/index.mjs +2 -17
  52. package/dist/components/BitzEmpty/index.mjs +2 -6
  53. package/dist/components/BitzException/index.mjs +1 -6
  54. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  55. package/dist/components/BitzFluentDatePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  57. package/dist/components/BitzFluentRangeTimePicker/index.d.ts +5 -0
  58. package/dist/components/BitzFluentRangeTimePicker/index.mjs +10 -0
  59. package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
  60. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  61. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  62. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  63. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  64. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  65. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  66. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +15 -47
  67. package/dist/components/BitzFuiCalendar/ColumnData.mjs +9 -25
  68. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +8 -44
  69. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  70. package/dist/components/BitzFullScreen/index.mjs +6 -9
  71. package/dist/components/BitzHighlight/Child.mjs +9 -23
  72. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  73. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  74. package/dist/components/BitzHighlight/style.mjs +1 -4
  75. package/dist/components/BitzImage/index.mjs +1 -1
  76. package/dist/components/BitzImage/previewImage.mjs +5 -12
  77. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  78. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  79. package/dist/components/BitzList/List.mjs +3 -17
  80. package/dist/components/BitzList/LoadMore.mjs +20 -29
  81. package/dist/components/BitzLoadMore/index.mjs +14 -34
  82. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  83. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  84. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  85. package/dist/components/BitzModal/index.mjs +11 -24
  86. package/dist/components/BitzNoData/index.mjs +1 -4
  87. package/dist/components/BitzNoMore/index.mjs +1 -1
  88. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  89. package/dist/components/BitzPageContainer/index.mjs +46 -107
  90. package/dist/components/BitzPageHeader/index.mjs +21 -89
  91. package/dist/components/BitzPagination/index.mjs +22 -71
  92. package/dist/components/BitzPopover/index.mjs +4 -4
  93. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  94. package/dist/components/BitzQRCode/index.mjs +1 -6
  95. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  96. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  97. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  98. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  99. package/dist/components/BitzRefresh/index.mjs +1 -5
  100. package/dist/components/BitzRemark/index.mjs +4 -4
  101. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  102. package/dist/components/BitzSearch/index.mjs +1 -1
  103. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  104. package/dist/components/BitzSelect/index.mjs +1 -1
  105. package/dist/components/BitzSkeleton/index.mjs +1 -31
  106. package/dist/components/BitzSwitch/index.mjs +2 -7
  107. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  108. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  109. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +12 -80
  110. package/dist/components/BitzTable/ActionBar/Button.mjs +15 -20
  111. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  112. package/dist/components/BitzTable/ActionCol/index.mjs +33 -129
  113. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  114. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  115. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  116. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  117. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +4 -11
  118. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  119. package/dist/components/BitzTable/Store/index.d.ts +11 -2
  120. package/dist/components/BitzTable/Store/index.mjs +200 -224
  121. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -0
  122. package/dist/components/BitzTable/Store/utils/index.mjs +41 -30
  123. package/dist/components/BitzTable/SubTable/index.mjs +43 -91
  124. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +21 -43
  125. package/dist/components/BitzTable/Table/SortTableContext.mjs +17 -39
  126. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  127. package/dist/components/BitzTable/Table/index.mjs +230 -475
  128. package/dist/components/BitzTable/Table/style.mjs +1 -10
  129. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  130. package/dist/components/BitzTable/TextOverflow/index.mjs +3 -12
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +27 -83
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +23 -104
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +143 -251
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +16 -50
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +2 -1
  138. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +63 -116
  139. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  140. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +43 -97
  141. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +6 -28
  142. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +10 -1
  143. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +13 -42
  144. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +14 -42
  145. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  146. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +8 -37
  147. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  148. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -49
  149. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  150. package/dist/components/BitzTableOperations/index.mjs +3 -13
  151. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  152. package/dist/components/BitzTableSelect/Select/index.mjs +21 -90
  153. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +13 -23
  154. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +69 -219
  155. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +22 -87
  156. package/dist/components/BitzTableSelect/TableCell/index.mjs +11 -52
  157. package/dist/components/BitzTableSelect/TextBlock/index.mjs +12 -30
  158. package/dist/components/BitzTableSelect/index.mjs +14 -65
  159. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  160. package/dist/components/BitzTag/index.mjs +1 -1
  161. package/dist/components/BitzText/index.mjs +14 -41
  162. package/dist/components/BitzText/utils.mjs +3 -3
  163. package/dist/components/BitzTheme/index.mjs +6 -6
  164. package/dist/components/BitzTimeline/index.mjs +1 -11
  165. package/dist/components/BitzTimer/Form.mjs +11 -32
  166. package/dist/components/BitzTimer/Timer.mjs +38 -76
  167. package/dist/components/BitzTimer/index.mjs +43 -66
  168. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  169. package/dist/components/BitzToast/index.mjs +1 -1
  170. package/dist/components/BitzTooltip/index.mjs +17 -47
  171. package/dist/components/BitzTooltip/style.mjs +6 -9
  172. package/dist/components/BitzTooltip/utils.mjs +2 -2
  173. package/dist/components/BitzTree/index.mjs +1 -4
  174. package/dist/components/BitzUeEditor/index.mjs +5 -5
  175. package/dist/components/BitzUpload/index.mjs +43 -81
  176. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  177. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  178. package/dist/hooks/use-event-listener.mjs +2 -11
  179. package/dist/hooks/use-lock-fn.mjs +10 -13
  180. package/dist/hooks/use-scroll-parent.mjs +14 -16
  181. package/dist/hooks/useEvent.mjs +4 -7
  182. package/dist/hooks/useMergedState.mjs +11 -11
  183. package/dist/index.d.ts +1 -0
  184. package/dist/index.mjs +108 -106
  185. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  186. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  187. package/dist/style.css +1 -1
  188. package/dist/utils/WithFluent.mjs +5 -27
  189. package/dist/utils/create.mjs +1 -7
  190. package/package.json +1 -1
@@ -1,41 +1,52 @@
1
- const u = (r, d, x) => ((f, o) => f.map((e) => {
2
- const s = l(e, e.index), i = o[s];
3
- return i && i.show === !1 ? !1 : {
4
- ...e,
5
- ...i,
6
- ...(e == null ? void 0 : e.isOperationCol) && !x && {
7
- width: e == null ? void 0 : e.width
1
+ const c = (e, n, i) => ((s, f) => s.map((t) => {
2
+ const a = h(t, t.index), o = f[a];
3
+ return o && o.show === !1 ? !1 : {
4
+ ...t,
5
+ ...o,
6
+ ...(t == null ? void 0 : t.isOperationCol) && !i && {
7
+ width: t == null ? void 0 : t.width
8
8
  }
9
9
  };
10
- }))(r, d).filter(Boolean), l = (r, d) => "key" in r && r.key !== void 0 && r.key !== null ? r.key : r.dataIndex ? Array.isArray(r.dataIndex) ? r.dataIndex.join("-") : r.dataIndex : `${d}`, h = (r) => (d, x) => {
11
- var n, a, y, c;
12
- const { fixed: t, index: f } = d, { fixed: o, index: e } = x;
13
- if (t === "left" && o !== "left" || o === "right" && t !== "right")
10
+ }))(e, n).filter(Boolean), h = (e, n) => "key" in e && e.key !== void 0 && e.key !== null ? e.key : e.dataIndex ? Array.isArray(e.dataIndex) ? e.dataIndex.join("-") : e.dataIndex : `${n}`, u = (e) => {
11
+ const n = [];
12
+ function i(r) {
13
+ r.children ? r.children.forEach(i) : r.dataIndex && !r.exportHidden && n.push({
14
+ field: r.dataIndex,
15
+ title: r.title,
16
+ show: !0
17
+ });
18
+ }
19
+ return e.forEach(i), n;
20
+ }, k = (e) => (n, i) => {
21
+ var d, x, l, y;
22
+ const { fixed: r, index: s } = n, { fixed: f, index: t } = i;
23
+ if (r === "left" && f !== "left" || f === "right" && r !== "right")
14
24
  return -2;
15
- if (o === "left" && t !== "left" || t === "right" && o !== "right")
25
+ if (f === "left" && r !== "left" || r === "right" && f !== "right")
16
26
  return 2;
17
- const s = d.key || `${f}`, i = x.key || `${e}`;
18
- return (n = r[s]) != null && n.order || (a = r[i]) != null && a.order ? (((y = r[s]) == null ? void 0 : y.order) || 0) - (((c = r[i]) == null ? void 0 : c.order) || 0) : (d.index || 0) - (x.index || 0);
27
+ const a = n.key || `${s}`, o = i.key || `${t}`;
28
+ return (d = e[a]) != null && d.order || (x = e[o]) != null && x.order ? (((l = e[a]) == null ? void 0 : l.order) || 0) - (((y = e[o]) == null ? void 0 : y.order) || 0) : (n.index || 0) - (i.index || 0);
19
29
  };
20
- function k(r, d, x) {
21
- const t = {};
22
- let f = "";
23
- const o = (e, s, i) => {
24
- for (const n in e)
25
- if (e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && (f = n, t[n] = { ...e[n] }, o(e[n], s, i)), n === s)) {
26
- const a = t[f];
27
- t[f] = {
28
- ...a,
29
- [s]: i
30
+ function I(e, n, i) {
31
+ const r = {};
32
+ let s = "";
33
+ const f = (t, a, o) => {
34
+ for (const d in t)
35
+ if (t.hasOwnProperty(d) && (typeof t[d] == "object" && t[d] !== null && (s = d, r[d] = { ...t[d] }, f(t[d], a, o)), d === a)) {
36
+ const x = r[s];
37
+ r[s] = {
38
+ ...x,
39
+ [a]: o
30
40
  // [prop]: current.disabled || current.fixed ? true : val,
31
- }, f = "";
41
+ }, s = "";
32
42
  }
33
43
  };
34
- return o(r, d, x), t;
44
+ return f(e, n, i), r;
35
45
  }
36
46
  export {
37
- h as columnSort,
38
- l as genColumnKey,
39
- u as loopFilter,
40
- k as updateNestedObject
47
+ k as columnSort,
48
+ u as flattenColumns,
49
+ h as genColumnKey,
50
+ c as loopFilter,
51
+ I as updateNestedObject
41
52
  };
@@ -1,8 +1,8 @@
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";
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";
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 re, toolCols as oe } from "../Store/index.mjs";
5
+ import { BitzTableContext as oe, toolCols as re } 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,68 +11,45 @@ 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 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(() => {
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(() => {
26
17
  let e = (s == null ? void 0 : s.x) ?? 1e3;
27
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 };
28
19
  }, [s]), A = () => {
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 = [];
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 = [];
33
22
  if (e == null || e.forEach((c) => {
34
- var b;
35
- t.push(
36
- ((b = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : b.clientWidth) || 0
37
- );
23
+ var h;
24
+ t.push(((h = c.querySelector("& > .operationCol .actionGroup")) == null ? void 0 : h.clientWidth) || 0);
38
25
  }), t.length)
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;
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;
47
30
  return { tbodyWidth: t, scrollbarSize: c, hasScrollBar: n };
48
- }, { hasScrollBar: R, scrollbarSize: k } = o(() => {
49
- const { hasScrollBar: e, scrollbarSize: t } = $();
31
+ }, { hasScrollBar: R, scrollbarSize: k } = r(() => {
32
+ const { hasScrollBar: e, scrollbarSize: t } = H();
50
33
  return {
51
34
  hasScrollBar: e,
52
35
  scrollbarSize: t
53
36
  };
54
- }, [w == null ? void 0 : w.height]), d = o(() => {
55
- const e = g ?? [], r = e.filter((n) => !oe.includes(n)).map((n) => ({
37
+ }, [C == null ? void 0 : C.height]), b = r(() => {
38
+ const e = g ?? [], o = e.filter((n) => !re.includes(n)).map((n) => ({
56
39
  ...n,
57
40
  width: n.useMaxWidth ? A() ?? n.width : n.width
58
41
  }));
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(() => {
42
+ return ce(e, o, !1, !!m, !!i);
43
+ }, [g]), T = r(() => ue(b), [b]), $ = r(() => l ? T : b, [l, b, T]), p = r(() => {
67
44
  const e = (u == null ? void 0 : u.length) ?? 0, t = e > 4 ? e >= 8 ? 8 : e : 4;
68
45
  return Array.from({ length: t }).map((n, c) => ({
69
46
  key: `${Date.now()}${c}`
70
47
  }));
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(() => {
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(() => {
72
49
  if (i)
73
50
  return {
74
51
  ...i,
75
- expandedRowRender: () => /* @__PURE__ */ C.jsx(C.Fragment, {}),
52
+ expandedRowRender: () => w.jsx(w.Fragment, {}),
76
53
  expandIcon: (e) => {
77
54
  const t = J(e);
78
55
  return {
@@ -88,67 +65,42 @@ function Te({
88
65
  };
89
66
  }
90
67
  };
91
- }, [i]), O = o(() => l ? B : i, [l, i, B]), T = o(() => {
68
+ }, [i]), O = r(() => l ? W : i, [l, i, W]), z = r(() => {
92
69
  if (m)
93
70
  return {
94
71
  ...m,
95
72
  selectedRowKeys: [],
96
73
  getCheckboxProps: () => ({ disabled: !0 })
97
74
  };
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;
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;
119
90
  const t = { ...e };
120
- return t.className.includes("ant-table-cell-fix-right") && !R && ((r = t.style) != null && r.right) && (t.style = {
91
+ return t.className.includes("ant-table-cell-fix-right") && !R && ((o = t.style) != null && o.right) && (t.style = {
121
92
  ...t.style,
122
93
  right: t.style.right - (k || 0)
123
- }), /* @__PURE__ */ C.jsx("th", { ...t });
124
- }, Z = o(() => ({
94
+ }), w.jsx("th", { ...t });
95
+ }, Z = r(() => ({
125
96
  ...f,
126
97
  header: {
127
98
  ...f == null ? void 0 : f.header,
128
99
  cell: Y
129
100
  }
130
101
  }), [f, R, k]);
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
- );
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 });
151
103
  }
152
104
  export {
153
- Te as default
105
+ ze as default
154
106
  };
@@ -1,32 +1,32 @@
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 l } from "react";
3
+ import { useState as E, useMemo as b, useRef as o } from "react";
4
4
  import O from "../../../node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs";
5
5
  const d = 56, T = (p) => {
6
6
  const { hasScrollBar: x, scrollbarSize: y, onResize: g, width: n, datagridref: S, stretchref: u, ...P } = p, [j, m] = E(!1), z = b(() => {
7
7
  var t, R;
8
8
  const e = { ...P };
9
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 = l(0), f = l(0), s = l(0), o = l(0), i = l(!1), h = b(() => c.current - n + d, [c.current, n]);
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]);
11
11
  if (!n)
12
- return /* @__PURE__ */ a.jsx("th", { ...z });
13
- const L = (e) => {
12
+ return a.jsx("th", { ...z });
13
+ const w = (e) => {
14
14
  let r = e.offsetLeft, t = e.offsetParent;
15
15
  for (; t !== null; )
16
16
  r += t.offsetLeft, t = t.offsetParent;
17
17
  return { x: r };
18
- }, w = (e) => {
18
+ }, L = (e) => {
19
19
  if (s.current = e.clientX - f.current, n + s.current - c.current <= d || s.current < h) {
20
20
  i.current = !0;
21
21
  return;
22
22
  }
23
23
  s.current >= h && i.current && (s.current = h, i.current = !1);
24
24
  const t = u.current;
25
- o.current = s.current, t.style.left = `${o.current}px`;
25
+ l.current = s.current, t.style.left = `${l.current}px`;
26
26
  }, D = (e) => {
27
- m(!0), s.current = 0, o.current = 0;
27
+ m(!0), s.current = 0, l.current = 0;
28
28
  const r = u.current;
29
- r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = L(S.current).x;
29
+ r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = w(S.current).x;
30
30
  const t = e.clientX - f.current;
31
31
  r.style.left = `${t}px`, c.current = t, s.current = t;
32
32
  }, N = (e, r) => {
@@ -34,42 +34,20 @@ const d = 56, T = (p) => {
34
34
  const t = u.current;
35
35
  t.style.opacity = 0, t.style.pointerEvents = "none", setTimeout(() => {
36
36
  t.style.left = "0px";
37
- }, 200), g(
38
- e,
39
- {
40
- ...r,
41
- minWidth: d,
42
- size: {
43
- ...r.size,
44
- width: n + o.current - c.current
45
- }
37
+ }, 200), g(e, {
38
+ ...r,
39
+ minWidth: d,
40
+ size: {
41
+ ...r.size,
42
+ width: n + l.current - c.current
46
43
  }
47
- );
48
- }, X = /* @__PURE__ */ a.jsx(
49
- "span",
50
- {
51
- className: "bitzResizableHandle",
52
- onClick: (e) => {
53
- e.stopPropagation(), e.preventDefault();
54
- }
55
- }
56
- );
57
- return /* @__PURE__ */ a.jsx(
58
- v,
59
- {
60
- width: n,
61
- height: 0,
62
- handle: X,
63
- className: O("bitzResizable", {
64
- disabledUserSelect: j
65
- }),
66
- onResize: w,
67
- onResizeStart: D,
68
- onResizeStop: N,
69
- draggableOpts: { enableUserSelectHack: !1 },
70
- children: /* @__PURE__ */ a.jsx("th", { ...z })
71
- }
72
- );
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 }) });
73
51
  };
74
52
  export {
75
53
  T as default
@@ -1,48 +1,26 @@
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 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);
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);
17
11
  }, g = (t) => {
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;
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;
22
16
  c !== m && p(c, m);
23
17
  }
24
- }, p = (t, o) => {
25
- const r = D(i.slice() ?? [], t, o);
26
- f(r), s(-1);
18
+ }, p = (t, r) => {
19
+ const o = j(s.slice() ?? [], t, r);
20
+ l(o), a(-1);
27
21
  };
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 });
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 });
45
23
  }
46
24
  export {
47
- T as default
25
+ A as default
48
26
  };
@@ -1,53 +1,29 @@
1
1
  import { j as i } from "../../../node_modules/.store/react@18.3.1/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.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 = {
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 = {
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"]) === "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
- );
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