bitz-react-admin-ui 2.5.5 → 2.5.7

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 (194) 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 +25 -4
  4. package/dist/assets/iconfont/IconClose.mjs +24 -3
  5. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +23 -2
  6. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +27 -6
  7. package/dist/assets/iconfont/IconColumnFixedRight.mjs +27 -6
  8. package/dist/assets/iconfont/IconCuowu.mjs +23 -2
  9. package/dist/assets/iconfont/IconDragOrder.mjs +25 -4
  10. package/dist/assets/iconfont/IconDuigoux.mjs +25 -4
  11. package/dist/assets/iconfont/IconFabu.mjs +35 -5
  12. package/dist/assets/iconfont/IconFanhui.mjs +25 -4
  13. package/dist/assets/iconfont/IconGaojisousuo.mjs +26 -5
  14. package/dist/assets/iconfont/IconHangfengexian.mjs +41 -3
  15. package/dist/assets/iconfont/IconHangliefengexian.mjs +42 -4
  16. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +26 -5
  17. package/dist/assets/iconfont/IconIcon21.mjs +25 -4
  18. package/dist/assets/iconfont/IconJincoude.mjs +25 -4
  19. package/dist/assets/iconfont/IconJinggao.mjs +25 -4
  20. package/dist/assets/iconfont/IconKuansongde.mjs +26 -5
  21. package/dist/assets/iconfont/IconLiefengexian.mjs +41 -3
  22. package/dist/assets/iconfont/IconMore.mjs +41 -4
  23. package/dist/assets/iconfont/IconShanchu.mjs +27 -6
  24. package/dist/assets/iconfont/IconShanchu1.mjs +35 -5
  25. package/dist/assets/iconfont/IconSousuo.mjs +27 -6
  26. package/dist/assets/iconfont/IconTejincou.mjs +25 -4
  27. package/dist/assets/iconfont/IconTekuansong.mjs +26 -5
  28. package/dist/assets/iconfont/IconTishi1.mjs +27 -6
  29. package/dist/assets/iconfont/IconTuodong.mjs +28 -7
  30. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +35 -3
  31. package/dist/assets/iconfont/IconWufengexian.mjs +26 -4
  32. package/dist/assets/iconfont/IconXinxitishi.mjs +27 -6
  33. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +34 -3
  34. package/dist/assets/iconfont/IconZhongdengde.mjs +24 -3
  35. package/dist/assets/iconfont/IconZhongzhi.mjs +24 -3
  36. package/dist/assets/iconfont/index.mjs +33 -33
  37. package/dist/components/BitzAddTag/index.mjs +41 -8
  38. package/dist/components/BitzAddressBook/index.mjs +122 -35
  39. package/dist/components/BitzAppPage/index.mjs +18 -4
  40. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  41. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  42. package/dist/components/BitzButton/index.mjs +23 -9
  43. package/dist/components/BitzCalendar/index.mjs +52 -19
  44. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  45. package/dist/components/BitzCascader/index.mjs +6 -2
  46. package/dist/components/BitzCollapse/index.mjs +4 -4
  47. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  48. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  49. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  50. package/dist/components/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/BitzFluentDatePicker/index.mjs +1 -1
  56. package/dist/components/BitzFluentRangePicker/index.mjs +1 -1
  57. package/dist/components/BitzFluentTimePicker/index.mjs +1 -1
  58. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  59. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  60. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  61. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +27 -4
  62. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  63. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  64. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +47 -15
  65. package/dist/components/BitzFuiCalendar/ColumnData.mjs +25 -9
  66. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +44 -8
  67. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  68. package/dist/components/BitzFullScreen/index.mjs +9 -6
  69. package/dist/components/BitzHighlight/Child.mjs +23 -9
  70. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  71. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  72. package/dist/components/BitzHighlight/style.mjs +4 -1
  73. package/dist/components/BitzImage/index.mjs +1 -1
  74. package/dist/components/BitzImage/previewImage.mjs +12 -5
  75. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  76. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  77. package/dist/components/BitzList/List.mjs +17 -3
  78. package/dist/components/BitzList/LoadMore.mjs +29 -20
  79. package/dist/components/BitzLoadMore/index.mjs +34 -14
  80. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  81. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  82. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  83. package/dist/components/BitzModal/index.mjs +24 -11
  84. package/dist/components/BitzNoData/index.mjs +4 -1
  85. package/dist/components/BitzNoMore/index.mjs +1 -1
  86. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  87. package/dist/components/BitzPageContainer/index.mjs +107 -46
  88. package/dist/components/BitzPageHeader/index.mjs +89 -21
  89. package/dist/components/BitzPagination/index.mjs +71 -22
  90. package/dist/components/BitzPopover/index.mjs +4 -4
  91. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  92. package/dist/components/BitzQRCode/index.mjs +6 -1
  93. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  94. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  95. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  96. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  97. package/dist/components/BitzRefresh/index.mjs +5 -1
  98. package/dist/components/BitzRemark/index.mjs +4 -4
  99. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  100. package/dist/components/BitzSearch/index.mjs +1 -1
  101. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  102. package/dist/components/BitzSelect/index.mjs +1 -1
  103. package/dist/components/BitzSkeleton/index.mjs +31 -1
  104. package/dist/components/BitzSwitch/index.mjs +7 -2
  105. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  106. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  107. package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +4 -3
  108. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +80 -12
  109. package/dist/components/BitzTable/ActionBar/Button.d.ts +7 -3
  110. package/dist/components/BitzTable/ActionBar/Button.mjs +26 -7
  111. package/dist/components/BitzTable/ActionBar/index.d.ts +2 -0
  112. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  113. package/dist/components/BitzTable/ActionCol/index.mjs +129 -33
  114. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  115. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  116. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  117. package/dist/components/BitzTable/SelectionBar/Button.mjs +19 -6
  118. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +11 -4
  119. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  120. package/dist/components/BitzTable/Store/index.d.ts +14 -1
  121. package/dist/components/BitzTable/Store/index.mjs +91 -54
  122. package/dist/components/BitzTable/Store/utils/index.mjs +18 -18
  123. package/dist/components/BitzTable/SubTable/index.mjs +91 -43
  124. package/dist/components/BitzTable/Table/ResizableTitle copy.mjs +43 -21
  125. package/dist/components/BitzTable/Table/SortTableContext.mjs +39 -17
  126. package/dist/components/BitzTable/Table/SortableRow.mjs +44 -20
  127. package/dist/components/BitzTable/Table/index.d.ts +2 -5
  128. package/dist/components/BitzTable/Table/index.mjs +477 -232
  129. package/dist/components/BitzTable/Table/style.mjs +10 -1
  130. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  131. package/dist/components/BitzTable/TextOverflow/index.mjs +12 -3
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +94 -38
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +104 -23
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +68 -29
  135. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +258 -152
  136. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +50 -16
  137. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +42 -16
  138. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +1 -1
  139. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +120 -45
  140. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +9 -2
  141. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +100 -46
  142. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +28 -6
  143. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +6 -4
  144. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.d.ts +1 -1
  145. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +55 -30
  146. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +43 -16
  147. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  148. package/dist/components/BitzTable/ToolBar/Modal/index.d.ts +3 -2
  149. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +46 -20
  150. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +12 -8
  151. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +20 -9
  152. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +49 -2
  153. package/dist/components/BitzTable/ToolBar/index.d.ts +1 -1
  154. package/dist/components/BitzTable/ToolBar/style.mjs +6 -1
  155. package/dist/components/BitzTableOperations/index.mjs +13 -3
  156. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  157. package/dist/components/BitzTableSelect/Select/index.mjs +90 -21
  158. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +23 -13
  159. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +219 -69
  160. package/dist/components/BitzTableSelect/SingleSelect/index.mjs +87 -22
  161. package/dist/components/BitzTableSelect/TableCell/index.mjs +52 -11
  162. package/dist/components/BitzTableSelect/TextBlock/index.mjs +30 -12
  163. package/dist/components/BitzTableSelect/index.mjs +65 -14
  164. package/dist/components/BitzTableSelect/utils.mjs +3 -3
  165. package/dist/components/BitzTag/index.mjs +1 -1
  166. package/dist/components/BitzText/index.mjs +41 -14
  167. package/dist/components/BitzText/utils.mjs +3 -3
  168. package/dist/components/BitzTheme/index.mjs +6 -6
  169. package/dist/components/BitzTimeline/index.mjs +11 -1
  170. package/dist/components/BitzTimer/Form.mjs +32 -11
  171. package/dist/components/BitzTimer/Timer.mjs +76 -38
  172. package/dist/components/BitzTimer/index.mjs +66 -43
  173. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  174. package/dist/components/BitzToast/index.mjs +1 -1
  175. package/dist/components/BitzTooltip/index.mjs +60 -30
  176. package/dist/components/BitzTooltip/style.d.ts +2 -1
  177. package/dist/components/BitzTooltip/style.mjs +15 -12
  178. package/dist/components/BitzTooltip/utils.mjs +2 -2
  179. package/dist/components/BitzTree/index.mjs +4 -1
  180. package/dist/components/BitzUeEditor/index.mjs +5 -5
  181. package/dist/components/BitzUpload/index.mjs +81 -43
  182. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  183. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  184. package/dist/hooks/use-event-listener.mjs +11 -2
  185. package/dist/hooks/use-lock-fn.mjs +13 -10
  186. package/dist/hooks/use-scroll-parent.mjs +16 -14
  187. package/dist/hooks/useEvent.mjs +7 -4
  188. package/dist/hooks/useMergedState.mjs +11 -11
  189. package/dist/node_modules/.store/classnames@2.5.1/node_modules/classnames/index.mjs +1 -1
  190. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +1 -1
  191. package/dist/style.css +1 -1
  192. package/dist/utils/WithFluent.mjs +27 -5
  193. package/dist/utils/create.mjs +7 -1
  194. package/package.json +1 -1
@@ -27,24 +27,30 @@ function Me(e) {
27
27
  size: I,
28
28
  zebra: ge,
29
29
  bordered: me
30
- }, [y, J] = z(() => {
31
- var n, l, c, a;
32
- const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.stylesConfigState || {};
33
- if (i && t && typeof window < "u" && t !== "online") {
34
- const f = window[t];
35
- try {
36
- const r = f == null ? void 0 : f.getItem(i);
37
- if (r)
38
- return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
39
- } catch (r) {
40
- console.warn(r);
30
+ }, [y, J] = z(
31
+ () => {
32
+ var n, l, c, a;
33
+ const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.stylesConfigState || {};
34
+ if (i && t && typeof window < "u" && t !== "online") {
35
+ const f = window[t];
36
+ try {
37
+ const r = f == null ? void 0 : f.getItem(i);
38
+ if (r)
39
+ return (n = e == null ? void 0 : e.stylesConfigState) != null && n.defaultValue ? m(
40
+ JSON.parse(r),
41
+ (l = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : l.defaultValue
42
+ ) : JSON.parse(r);
43
+ } catch (r) {
44
+ console.warn(r);
45
+ }
41
46
  }
47
+ return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((a = e.stylesConfigState) == null ? void 0 : a.defaultValue) || O;
48
+ },
49
+ {
50
+ value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
51
+ onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
42
52
  }
43
- return e.stylesConfig || ((c = e.stylesConfigState) == null ? void 0 : c.value) || ((a = e.stylesConfigState) == null ? void 0 : a.defaultValue) || O;
44
- }, {
45
- value: ((H = e.stylesConfigState) == null ? void 0 : H.value) || e.stylesConfig,
46
- onChange: ((R = e.stylesConfigState) == null ? void 0 : R.onChange) || e.onStylesConfigChange
47
- });
53
+ );
48
54
  d(() => {
49
55
  var o, n;
50
56
  if (!((o = e.stylesConfigState) != null && o.persistenceKey) || !((n = e.stylesConfigState) != null && n.persistenceType) || typeof window > "u")
@@ -74,14 +80,18 @@ function Me(e) {
74
80
  (o = n == null ? void 0 : n(l)) == null || o.then((c) => {
75
81
  var f;
76
82
  const a = m(c ?? {}, (f = e == null ? void 0 : e.stylesConfigState) == null ? void 0 : f.value);
77
- J(Object.keys(a).length ? a : O);
83
+ J(
84
+ Object.keys(a).length ? a : O
85
+ );
78
86
  });
79
87
  } catch (c) {
80
88
  console.warn(c);
81
89
  }
82
90
  }
83
91
  }, []);
84
- const u = g(() => (e.columns ?? []).filter((t) => !je.includes(t)), [e.columns]), h = g(() => {
92
+ const u = g(() => (e.columns ?? []).filter(
93
+ (t) => !je.includes(t) && t.title
94
+ ), [e.columns]), h = g(() => {
85
95
  var i;
86
96
  if ((i = e == null ? void 0 : e.exportConfigState) != null && i.defaultValue)
87
97
  return e.exportConfigState.defaultValue;
@@ -100,24 +110,30 @@ function Me(e) {
100
110
  show: !0
101
111
  });
102
112
  }), t;
103
- }, [u]), [V, x] = z(() => {
104
- var n, l, c, a;
105
- const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
106
- if (i && t && typeof window < "u" && t !== "online") {
107
- const f = window[t];
108
- try {
109
- const r = f == null ? void 0 : f.getItem(i);
110
- if (r)
111
- return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
112
- } catch (r) {
113
- console.warn(r);
113
+ }, [u]), [V, x] = z(
114
+ () => {
115
+ var n, l, c, a;
116
+ const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
117
+ if (i && t && typeof window < "u" && t !== "online") {
118
+ const f = window[t];
119
+ try {
120
+ const r = f == null ? void 0 : f.getItem(i);
121
+ if (r)
122
+ return (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? m(
123
+ JSON.parse(r),
124
+ (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue
125
+ ) : JSON.parse(r);
126
+ } catch (r) {
127
+ console.warn(r);
128
+ }
114
129
  }
130
+ return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((a = e.exportConfigState) == null ? void 0 : a.defaultValue) || h;
131
+ },
132
+ {
133
+ value: ((U = e.exportConfigState) == null ? void 0 : U.value) || e.exportConfig,
134
+ onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
115
135
  }
116
- return e.exportConfig || ((c = e.exportConfigState) == null ? void 0 : c.value) || ((a = e.exportConfigState) == null ? void 0 : a.defaultValue) || h;
117
- }, {
118
- value: ((U = e.exportConfigState) == null ? void 0 : U.value) || e.exportConfig,
119
- onChange: ((D = e.exportConfigState) == null ? void 0 : D.onChange) || e.onExportConfigChange
120
- });
136
+ );
121
137
  d(() => {
122
138
  var n, l;
123
139
  const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.exportConfigState || {};
@@ -125,7 +141,12 @@ function Me(e) {
125
141
  const c = window[t];
126
142
  try {
127
143
  const a = c == null ? void 0 : c.getItem(i);
128
- a ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(m(JSON.parse(a), (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue)) : x(JSON.parse(a)) : x(h);
144
+ a ? (n = e == null ? void 0 : e.exportConfigState) != null && n.defaultValue ? x(
145
+ m(
146
+ JSON.parse(a),
147
+ (l = e == null ? void 0 : e.exportConfigState) == null ? void 0 : l.defaultValue
148
+ )
149
+ ) : x(JSON.parse(a)) : x(h);
129
150
  } catch (a) {
130
151
  console.warn(a);
131
152
  }
@@ -163,7 +184,9 @@ function Me(e) {
163
184
  (o = n == null ? void 0 : n(l)) == null || o.then((c) => {
164
185
  var f;
165
186
  const a = m(c ?? {}, (f = e == null ? void 0 : e.exportConfigState) == null ? void 0 : f.value);
166
- x(Object.keys(a).length ? a : h);
187
+ x(
188
+ Object.keys(a).length ? a : h
189
+ );
167
190
  });
168
191
  } catch (c) {
169
192
  console.warn(c);
@@ -184,24 +207,30 @@ function Me(e) {
184
207
  disabled: Ve
185
208
  }, typeof ce == "number" && (l[v].width = ce));
186
209
  }), l;
187
- }, [u]), [we, he] = K(!1), [C, w] = z(() => {
188
- var n, l, c, a;
189
- const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
190
- if (i && t && typeof window < "u" && t !== "online") {
191
- const f = window[t];
192
- try {
193
- const r = f == null ? void 0 : f.getItem(i);
194
- if (r)
195
- return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(JSON.parse(r), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue) : JSON.parse(r);
196
- } catch (r) {
197
- console.warn(r);
210
+ }, [u]), [we, he] = K(!1), [C, w] = z(
211
+ () => {
212
+ var n, l, c, a;
213
+ const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
214
+ if (i && t && typeof window < "u" && t !== "online") {
215
+ const f = window[t];
216
+ try {
217
+ const r = f == null ? void 0 : f.getItem(i);
218
+ if (r)
219
+ return (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? m(
220
+ JSON.parse(r),
221
+ (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue
222
+ ) : JSON.parse(r);
223
+ } catch (r) {
224
+ console.warn(r);
225
+ }
198
226
  }
227
+ return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((a = e.columnsState) == null ? void 0 : a.defaultValue) || {};
228
+ },
229
+ {
230
+ value: ((Z = e.columnsState) == null ? void 0 : Z.value) || e.columnsStateMap,
231
+ onChange: ((A = e.columnsState) == null ? void 0 : A.onChange) || e.onColumnsStateChange
199
232
  }
200
- return e.columnsStateMap || ((c = e.columnsState) == null ? void 0 : c.value) || ((a = e.columnsState) == null ? void 0 : a.defaultValue) || {};
201
- }, {
202
- value: ((Z = e.columnsState) == null ? void 0 : Z.value) || e.columnsStateMap,
203
- onChange: ((A = e.columnsState) == null ? void 0 : A.onChange) || e.onColumnsStateChange
204
- });
233
+ );
205
234
  d(() => {
206
235
  var n, l;
207
236
  const { persistenceType: t, persistenceKey: i, onlineGet: o } = e.columnsState || {};
@@ -209,7 +238,12 @@ function Me(e) {
209
238
  const c = window[t];
210
239
  try {
211
240
  const a = c == null ? void 0 : c.getItem(i);
212
- a ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? w(m(JSON.parse(a), (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue)) : w(JSON.parse(a)) : w(S);
241
+ a ? (n = e == null ? void 0 : e.columnsState) != null && n.defaultValue ? w(
242
+ m(
243
+ JSON.parse(a),
244
+ (l = e == null ? void 0 : e.columnsState) == null ? void 0 : l.defaultValue
245
+ )
246
+ ) : w(JSON.parse(a)) : w(S);
213
247
  } catch (a) {
214
248
  console.warn(a);
215
249
  }
@@ -298,6 +332,9 @@ function Me(e) {
298
332
  return ["hide", "column"].includes(b) && (t = !0), t;
299
333
  }, [b]), k = {
300
334
  loading: e.loading ?? !1,
335
+ dataSource: e.dataSource,
336
+ pagination: e.pagination,
337
+ total: e.total,
301
338
  uuid: T.current,
302
339
  fullscreen: re,
303
340
  setFullscreen: se,
@@ -342,7 +379,7 @@ function Me(e) {
342
379
  }
343
380
  const ke = ze({}), Ge = (e) => {
344
381
  const T = Me(e.initValue);
345
- return ve.jsx(ke.Provider, { value: T, children: e.children });
382
+ return /* @__PURE__ */ ve.jsx(ke.Provider, { value: T, children: e.children });
346
383
  };
347
384
  export {
348
385
  ke as BitzTableContext,
@@ -1,41 +1,41 @@
1
- const l = (r, d, x) => ((i, o) => i.map((e) => {
2
- const s = c(e, e.index), f = o[s];
3
- return f && f.show === !1 ? !1 : {
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
4
  ...e,
5
- ...f,
5
+ ...i,
6
6
  ...(e == null ? void 0 : e.isOperationCol) && !x && {
7
7
  width: e == null ? void 0 : e.width
8
8
  }
9
9
  };
10
- }))(r, d).filter(Boolean), c = (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, u;
12
- const { fixed: t, index: i } = d, { fixed: o, index: e } = x;
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
13
  if (t === "left" && o !== "left" || o === "right" && t !== "right")
14
14
  return -2;
15
15
  if (o === "left" && t !== "left" || t === "right" && o !== "right")
16
16
  return 2;
17
- const s = d.key || `${i}`, f = x.key || `${e}`;
18
- return (n = r[s]) != null && n.order || (a = r[f]) != null && a.order ? (((y = r[s]) == null ? void 0 : y.order) || 0) - (((u = r[f]) == null ? void 0 : u.order) || 0) : (d.index || 0) - (x.index || 0);
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);
19
19
  };
20
20
  function k(r, d, x) {
21
21
  const t = {};
22
- let i = "";
23
- const o = (e, s, f) => {
22
+ let f = "";
23
+ const o = (e, s, i) => {
24
24
  for (const n in e)
25
- if (e.hasOwnProperty(n) && (typeof e[n] == "object" && e[n] !== null && (i = n, t[n] = { ...e[n] }, o(e[n], s, f)), n === s)) {
26
- const a = t[i];
27
- t[i] = {
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
28
  ...a,
29
- [s]: f
29
+ [s]: i
30
30
  // [prop]: current.disabled || current.fixed ? true : val,
31
- }, i = "";
31
+ }, f = "";
32
32
  }
33
33
  };
34
34
  return o(r, d, x), t;
35
35
  }
36
36
  export {
37
37
  h as columnSort,
38
- c as genColumnKey,
39
- l as loopFilter,
38
+ l as genColumnKey,
39
+ u as loopFilter,
40
40
  k as updateNestedObject
41
41
  };
@@ -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,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 o } from "react";
3
+ import { useState as E, useMemo as b, useRef as l } 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 = o(0), f = o(0), s = o(0), l = o(0), i = o(!1), h = b(() => c.current - n + d, [c.current, n]);
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]);
11
11
  if (!n)
12
- return a.jsx("th", { ...z });
13
- const w = (e) => {
12
+ return /* @__PURE__ */ a.jsx("th", { ...z });
13
+ const L = (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
- }, L = (e) => {
18
+ }, w = (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
- l.current = s.current, t.style.left = `${l.current}px`;
25
+ o.current = s.current, t.style.left = `${o.current}px`;
26
26
  }, D = (e) => {
27
- m(!0), s.current = 0, l.current = 0;
27
+ m(!0), s.current = 0, o.current = 0;
28
28
  const r = u.current;
29
- r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = w(S.current).x;
29
+ r.style.opacity = 1, r.style.pointerEvents = "auto", f.current = L(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,20 +34,42 @@ 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(e, {
38
- ...r,
39
- minWidth: d,
40
- size: {
41
- ...r.size,
42
- width: n + l.current - c.current
37
+ }, 200), g(
38
+ e,
39
+ {
40
+ ...r,
41
+ minWidth: d,
42
+ size: {
43
+ ...r.size,
44
+ width: n + o.current - c.current
45
+ }
43
46
  }
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 }) });
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
+ );
51
73
  };
52
74
  export {
53
75
  T as default
@@ -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
  };