bitz-react-admin-ui 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) 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/IconCuowu.mjs +8 -2
  4. package/dist/assets/iconfont/IconDuigoux.mjs +8 -2
  5. package/dist/assets/iconfont/IconFabu.mjs +18 -3
  6. package/dist/assets/iconfont/IconFanhui.mjs +11 -5
  7. package/dist/assets/iconfont/IconGaojisousuo.mjs +10 -4
  8. package/dist/assets/iconfont/IconHangfengexian.mjs +27 -4
  9. package/dist/assets/iconfont/IconHangliefengexian.mjs +27 -4
  10. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +11 -5
  11. package/dist/assets/iconfont/IconIcon21.mjs +8 -2
  12. package/dist/assets/iconfont/IconJincoude.mjs +9 -3
  13. package/dist/assets/iconfont/IconJinggao.mjs +8 -2
  14. package/dist/assets/iconfont/IconKuansongde.mjs +11 -5
  15. package/dist/assets/iconfont/IconLiefengexian.mjs +28 -5
  16. package/dist/assets/iconfont/IconMore.mjs +26 -4
  17. package/dist/assets/iconfont/IconShanchu.mjs +11 -5
  18. package/dist/assets/iconfont/IconShanchu1.mjs +18 -3
  19. package/dist/assets/iconfont/IconSousuo.mjs +10 -4
  20. package/dist/assets/iconfont/IconTejincou.mjs +7 -1
  21. package/dist/assets/iconfont/IconTekuansong.mjs +11 -5
  22. package/dist/assets/iconfont/IconTishi1.mjs +12 -6
  23. package/dist/assets/iconfont/IconTuodong.mjs +12 -6
  24. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +22 -5
  25. package/dist/assets/iconfont/IconWufengexian.mjs +11 -4
  26. package/dist/assets/iconfont/IconXinxitishi.mjs +9 -3
  27. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +23 -7
  28. package/dist/assets/iconfont/IconZhongdengde.mjs +10 -4
  29. package/dist/assets/iconfont/IconZhongzhi.mjs +11 -5
  30. package/dist/assets/iconfont/index.mjs +29 -29
  31. package/dist/components/BitzAddTag/index.mjs +41 -8
  32. package/dist/components/BitzAddressBook/index.mjs +122 -35
  33. package/dist/components/BitzAppPage/index.mjs +18 -4
  34. package/dist/components/BitzAppRefresh/index.mjs +27 -15
  35. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  36. package/dist/components/BitzButton/index.mjs +23 -9
  37. package/dist/components/BitzCalendar/index.mjs +52 -19
  38. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +68 -30
  39. package/dist/components/BitzCascader/index.mjs +6 -2
  40. package/dist/components/BitzCollapse/index.mjs +4 -4
  41. package/dist/components/BitzConfigProvider/context.mjs +3 -1
  42. package/dist/components/BitzConfigProvider/index.mjs +12 -8
  43. package/dist/components/BitzConfirmModal/index.mjs +24 -1
  44. package/dist/components/BitzConvert/DropdownToButton/index.mjs +14 -11
  45. package/dist/components/BitzConvert/index.mjs +1 -1
  46. package/dist/components/BitzDescriptions/index.mjs +11 -1
  47. package/dist/components/BitzDrawer/index.mjs +17 -2
  48. package/dist/components/BitzEmpty/index.mjs +6 -2
  49. package/dist/components/BitzException/index.mjs +6 -1
  50. package/dist/components/BitzFloatLayout/index.mjs +10 -1
  51. package/dist/components/BitzFluentInput/index.mjs +23 -4
  52. package/dist/components/BitzFluentSelect/index.mjs +24 -5
  53. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +13 -16
  54. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +26 -20
  55. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +21 -3
  56. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +29 -6
  57. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +5 -2
  58. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +12 -3
  59. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +50 -18
  60. package/dist/components/BitzFuiCalendar/ColumnData.mjs +31 -15
  61. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +47 -5
  62. package/dist/components/BitzFuiCalendar/index.mjs +7 -1
  63. package/dist/components/BitzFullScreen/index.mjs +9 -6
  64. package/dist/components/BitzHighlight/Child.mjs +23 -9
  65. package/dist/components/BitzHighlight/Highlight.mjs +26 -5
  66. package/dist/components/BitzHighlight/chunks.mjs +20 -17
  67. package/dist/components/BitzHighlight/style.mjs +4 -1
  68. package/dist/components/BitzImage/index.mjs +1 -1
  69. package/dist/components/BitzImage/previewImage.mjs +12 -5
  70. package/dist/components/BitzLanguageTabs/index.mjs +14 -3
  71. package/dist/components/BitzLazyLoad/index.mjs +7 -1
  72. package/dist/components/BitzList/List.mjs +17 -3
  73. package/dist/components/BitzList/LoadMore.mjs +29 -20
  74. package/dist/components/BitzLoadMore/index.mjs +34 -14
  75. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +24 -11
  76. package/dist/components/BitzMeetingTime/index.mjs +10 -6
  77. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  78. package/dist/components/BitzModal/index.mjs +24 -11
  79. package/dist/components/BitzNoData/index.mjs +4 -1
  80. package/dist/components/BitzNoMore/index.mjs +1 -1
  81. package/dist/components/BitzOrganizationSelection/index.mjs +43 -14
  82. package/dist/components/BitzPageContainer/index.mjs +107 -46
  83. package/dist/components/BitzPageHeader/index.mjs +89 -21
  84. package/dist/components/BitzPagination/index.mjs +62 -14
  85. package/dist/components/BitzPopover/index.mjs +4 -4
  86. package/dist/components/BitzPullRefresh/PullRefresh.mjs +47 -18
  87. package/dist/components/BitzQRCode/index.mjs +6 -1
  88. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +35 -17
  89. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +20 -13
  90. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +4 -1
  91. package/dist/components/BitzQueryFilter/index.mjs +69 -20
  92. package/dist/components/BitzRefresh/index.mjs +5 -1
  93. package/dist/components/BitzRemark/index.mjs +4 -4
  94. package/dist/components/BitzScheduleCenter/index.mjs +24 -30
  95. package/dist/components/BitzSearch/index.mjs +1 -1
  96. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +123 -48
  97. package/dist/components/BitzSelect/index.mjs +1 -1
  98. package/dist/components/BitzSkeleton/index.mjs +31 -1
  99. package/dist/components/BitzSwitch/index.mjs +7 -2
  100. package/dist/components/BitzTabbar/BitzTabbar.mjs +25 -8
  101. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +4 -1
  102. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +33 -5
  103. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  104. package/dist/components/BitzTable/ActionBar/style.mjs +12 -9
  105. package/dist/components/BitzTable/ActionCol/index.mjs +90 -16
  106. package/dist/components/BitzTable/ActionCol/style.mjs +15 -12
  107. package/dist/components/BitzTable/Dropdown/index.mjs +8 -1
  108. package/dist/components/BitzTable/Dropdown/style.mjs +9 -6
  109. package/dist/components/BitzTable/SelectionBar/Button.mjs +32 -14
  110. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +40 -8
  111. package/dist/components/BitzTable/SelectionBar/style.mjs +18 -8
  112. package/dist/components/BitzTable/Store/index.mjs +68 -45
  113. package/dist/components/BitzTable/Store/utils/index.mjs +30 -14
  114. package/dist/components/BitzTable/Table/index.mjs +305 -145
  115. package/dist/components/BitzTable/Table/style.mjs +10 -1
  116. package/dist/components/BitzTable/Table/utils.mjs +11 -4
  117. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.d.ts +10 -0
  118. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +100 -0
  119. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.d.ts +10 -0
  120. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +103 -0
  121. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.d.ts +13 -0
  122. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +88 -0
  123. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.d.ts +14 -0
  124. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +261 -0
  125. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.d.ts +6 -0
  126. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +17 -0
  127. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.d.ts +8 -0
  128. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +13 -0
  129. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.d.ts +10 -0
  130. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +163 -0
  131. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.d.ts +11 -0
  132. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +44 -0
  133. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.d.ts +2 -0
  134. package/dist/components/BitzTable/ToolBar/ColConfigIcon/style.mjs +249 -0
  135. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +33 -6
  136. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +17 -4
  137. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +27 -10
  138. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +64 -19
  139. package/dist/components/BitzTable/ToolBar/index.d.ts +2 -0
  140. package/dist/components/BitzTable/ToolBar/index.mjs +6 -4
  141. package/dist/components/BitzTableOperations/index.mjs +13 -3
  142. package/dist/components/BitzTableSelect/Picker/index.mjs +43 -10
  143. package/dist/components/BitzTableSelect/Select/index.mjs +87 -21
  144. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +21 -11
  145. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +210 -40
  146. package/dist/components/BitzTableSelect/TableCell/index.mjs +49 -8
  147. package/dist/components/BitzTableSelect/TextBlock/index.mjs +27 -9
  148. package/dist/components/BitzTableSelect/index.mjs +61 -13
  149. package/dist/components/BitzTag/index.mjs +1 -1
  150. package/dist/components/BitzTheme/index.mjs +6 -6
  151. package/dist/components/BitzTimeline/index.mjs +11 -1
  152. package/dist/components/BitzTimer/Form.mjs +32 -11
  153. package/dist/components/BitzTimer/Timer.mjs +76 -38
  154. package/dist/components/BitzTimer/index.mjs +66 -43
  155. package/dist/components/BitzToast/Toast/index.mjs +28 -10
  156. package/dist/components/BitzToast/index.mjs +1 -1
  157. package/dist/components/BitzTree/index.mjs +4 -1
  158. package/dist/components/BitzUeEditor/index.mjs +5 -5
  159. package/dist/components/BitzUpload/index.mjs +81 -43
  160. package/dist/components/BitzWebAppDrawer/index.mjs +35 -4
  161. package/dist/components/BitzWebAppModal/index.mjs +6 -3
  162. package/dist/hooks/use-event-listener.mjs +11 -2
  163. package/dist/hooks/use-lock-fn.mjs +13 -10
  164. package/dist/hooks/use-scroll-parent.mjs +16 -14
  165. package/dist/hooks/useEvent.mjs +7 -4
  166. package/dist/hooks/useMergedState.mjs +11 -11
  167. package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleOutlined.mjs +15 -0
  168. package/dist/node_modules/@ant-design/icons/es/icons/PicRightOutlined.mjs +15 -0
  169. package/dist/node_modules/@ant-design/icons/es/icons/RedoOutlined.mjs +15 -0
  170. package/dist/node_modules/@ant-design/icons/es/icons/SettingOutlined.mjs +15 -0
  171. package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleOutlined.mjs +5 -0
  172. package/dist/node_modules/@ant-design/icons-svg/es/asn/PicRightOutlined.mjs +5 -0
  173. package/dist/node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.mjs +5 -0
  174. package/dist/node_modules/@ant-design/icons-svg/es/asn/SettingOutlined.mjs +5 -0
  175. package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.mjs +54 -0
  176. package/dist/node_modules/@dnd-kit/core/dist/core.esm.mjs +2179 -0
  177. package/dist/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.mjs +27 -0
  178. package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.mjs +367 -0
  179. package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.mjs +235 -0
  180. package/dist/node_modules/lodash-es/_DataView.mjs +7 -0
  181. package/dist/node_modules/lodash-es/_Promise.mjs +7 -0
  182. package/dist/node_modules/lodash-es/_Set.mjs +7 -0
  183. package/dist/node_modules/lodash-es/_WeakMap.mjs +7 -0
  184. package/dist/node_modules/lodash-es/_arrayEach.mjs +8 -0
  185. package/dist/node_modules/lodash-es/_arrayFilter.mjs +10 -0
  186. package/dist/node_modules/lodash-es/_baseAssign.mjs +8 -0
  187. package/dist/node_modules/lodash-es/_baseAssignIn.mjs +8 -0
  188. package/dist/node_modules/lodash-es/_baseClone.mjs +65 -0
  189. package/dist/node_modules/lodash-es/_baseGetAllKeys.mjs +9 -0
  190. package/dist/node_modules/lodash-es/_baseIsMap.mjs +9 -0
  191. package/dist/node_modules/lodash-es/_baseIsSet.mjs +9 -0
  192. package/dist/node_modules/lodash-es/_baseKeys.mjs +14 -0
  193. package/dist/node_modules/lodash-es/_baseSlice.mjs +10 -0
  194. package/dist/node_modules/lodash-es/_baseUnset.mjs +10 -0
  195. package/dist/node_modules/lodash-es/_cloneDataView.mjs +8 -0
  196. package/dist/node_modules/lodash-es/_cloneRegExp.mjs +8 -0
  197. package/dist/node_modules/lodash-es/_cloneSymbol.mjs +8 -0
  198. package/dist/node_modules/lodash-es/_copySymbols.mjs +8 -0
  199. package/dist/node_modules/lodash-es/_copySymbolsIn.mjs +8 -0
  200. package/dist/node_modules/lodash-es/_customOmitClone.mjs +7 -0
  201. package/dist/node_modules/lodash-es/_getAllKeys.mjs +9 -0
  202. package/dist/node_modules/lodash-es/_getAllKeysIn.mjs +9 -0
  203. package/dist/node_modules/lodash-es/_getSymbols.mjs +11 -0
  204. package/dist/node_modules/lodash-es/_getSymbolsIn.mjs +13 -0
  205. package/dist/node_modules/lodash-es/_getTag.mjs +29 -0
  206. package/dist/node_modules/lodash-es/_initCloneArray.mjs +8 -0
  207. package/dist/node_modules/lodash-es/_initCloneByTag.mjs +42 -0
  208. package/dist/node_modules/lodash-es/_nativeKeys.mjs +6 -0
  209. package/dist/node_modules/lodash-es/_parent.mjs +8 -0
  210. package/dist/node_modules/lodash-es/isMap.mjs +8 -0
  211. package/dist/node_modules/lodash-es/isSet.mjs +8 -0
  212. package/dist/node_modules/lodash-es/keys.mjs +9 -0
  213. package/dist/node_modules/lodash-es/last.mjs +7 -0
  214. package/dist/node_modules/lodash-es/omit.mjs +24 -0
  215. package/dist/node_modules/lodash-es/stubArray.mjs +6 -0
  216. package/dist/style.css +1 -1
  217. package/dist/utils/create.mjs +7 -1
  218. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import "react";
2
+ function f(e, l, t) {
3
+ const i = {
4
+ ...e
5
+ };
6
+ return l.top + e.y <= t.top ? i.y = t.top - l.top : l.bottom + e.y >= t.top + t.height && (i.y = t.top + t.height - l.bottom), l.left + e.x <= t.left ? i.x = t.left - l.left : l.right + e.x >= t.left + t.width && (i.x = t.left + t.width - l.right), i;
7
+ }
8
+ const r = (e) => {
9
+ let {
10
+ transform: l
11
+ } = e;
12
+ return {
13
+ ...l,
14
+ x: 0
15
+ };
16
+ }, h = (e) => {
17
+ let {
18
+ transform: l,
19
+ draggingNodeRect: t,
20
+ windowRect: i
21
+ } = e;
22
+ return !t || !i ? l : f(l, t, i);
23
+ };
24
+ export {
25
+ r as restrictToVerticalAxis,
26
+ h as restrictToWindowEdges
27
+ };
@@ -0,0 +1,367 @@
1
+ import H, { useMemo as E, useRef as z, useEffect as L, useContext as le, useState as fe } from "react";
2
+ import { KeyboardCode as O, useDndContext as ge, useDroppable as pe, useDraggable as ve, getClientRect as be } from "../../core/dist/core.esm.mjs";
3
+ import { useUniqueId as me, useIsomorphicLayoutEffect as K, useCombinedRefs as Ie, isKeyboardEvent as xe, CSS as U } from "../../utilities/dist/utilities.esm.mjs";
4
+ function V(e, n, t) {
5
+ const r = e.slice();
6
+ return r.splice(t < 0 ? r.length + t : t, 0, r.splice(n, 1)[0]), r;
7
+ }
8
+ function he(e, n) {
9
+ return e.reduce((t, r, o) => {
10
+ const s = n.get(r);
11
+ return s && (t[o] = s), t;
12
+ }, Array(e.length));
13
+ }
14
+ function N(e) {
15
+ return e !== null && e >= 0;
16
+ }
17
+ function ye(e, n) {
18
+ if (e === n)
19
+ return !0;
20
+ if (e.length !== n.length)
21
+ return !1;
22
+ for (let t = 0; t < e.length; t++)
23
+ if (e[t] !== n[t])
24
+ return !1;
25
+ return !0;
26
+ }
27
+ function Re(e) {
28
+ return typeof e == "boolean" ? {
29
+ draggable: e,
30
+ droppable: e
31
+ } : e;
32
+ }
33
+ const j = (e) => {
34
+ let {
35
+ rects: n,
36
+ activeIndex: t,
37
+ overIndex: r,
38
+ index: o
39
+ } = e;
40
+ const s = V(n, r, t), i = n[o], a = s[o];
41
+ return !a || !i ? null : {
42
+ x: a.left - i.left,
43
+ y: a.top - i.top,
44
+ scaleX: a.width / i.width,
45
+ scaleY: a.height / i.height
46
+ };
47
+ }, A = {
48
+ scaleX: 1,
49
+ scaleY: 1
50
+ }, ze = (e) => {
51
+ var n;
52
+ let {
53
+ activeIndex: t,
54
+ activeNodeRect: r,
55
+ index: o,
56
+ rects: s,
57
+ overIndex: i
58
+ } = e;
59
+ const a = (n = s[t]) != null ? n : r;
60
+ if (!a)
61
+ return null;
62
+ if (o === t) {
63
+ const d = s[i];
64
+ return d ? {
65
+ x: 0,
66
+ y: t < i ? d.top + d.height - (a.top + a.height) : d.top - a.top,
67
+ ...A
68
+ } : null;
69
+ }
70
+ const l = De(s, o, t);
71
+ return o > t && o <= i ? {
72
+ x: 0,
73
+ y: -a.height - l,
74
+ ...A
75
+ } : o < t && o >= i ? {
76
+ x: 0,
77
+ y: a.height + l,
78
+ ...A
79
+ } : {
80
+ x: 0,
81
+ y: 0,
82
+ ...A
83
+ };
84
+ };
85
+ function De(e, n, t) {
86
+ const r = e[n], o = e[n - 1], s = e[n + 1];
87
+ return r ? t < n ? o ? r.top - (o.top + o.height) : s ? s.top - (r.top + r.height) : 0 : s ? s.top - (r.top + r.height) : o ? r.top - (o.top + o.height) : 0 : 0;
88
+ }
89
+ const k = "Sortable", J = /* @__PURE__ */ H.createContext({
90
+ activeIndex: -1,
91
+ containerId: k,
92
+ disableTransforms: !1,
93
+ items: [],
94
+ overIndex: -1,
95
+ useDragOverlay: !1,
96
+ sortedRects: [],
97
+ strategy: j,
98
+ disabled: {
99
+ draggable: !1,
100
+ droppable: !1
101
+ }
102
+ });
103
+ function Pe(e) {
104
+ let {
105
+ children: n,
106
+ id: t,
107
+ items: r,
108
+ strategy: o = j,
109
+ disabled: s = !1
110
+ } = e;
111
+ const {
112
+ active: i,
113
+ dragOverlay: a,
114
+ droppableRects: l,
115
+ over: d,
116
+ measureDroppableContainers: c
117
+ } = ge(), p = me(k, t), b = a.rect !== null, f = E(() => r.map((m) => typeof m == "object" && "id" in m ? m.id : m), [r]), w = i != null, h = i ? f.indexOf(i.id) : -1, v = d ? f.indexOf(d.id) : -1, T = z(f), y = !ye(f, T.current), R = v !== -1 && h === -1 || y, g = Re(s);
118
+ K(() => {
119
+ y && w && c(f);
120
+ }, [y, f, w, c]), L(() => {
121
+ T.current = f;
122
+ }, [f]);
123
+ const D = E(
124
+ () => ({
125
+ activeIndex: h,
126
+ containerId: p,
127
+ disabled: g,
128
+ disableTransforms: R,
129
+ items: f,
130
+ overIndex: v,
131
+ useDragOverlay: b,
132
+ sortedRects: he(f, l),
133
+ strategy: o
134
+ }),
135
+ // eslint-disable-next-line react-hooks/exhaustive-deps
136
+ [h, p, g.draggable, g.droppable, R, f, v, l, b, o]
137
+ );
138
+ return H.createElement(J.Provider, {
139
+ value: D
140
+ }, n);
141
+ }
142
+ const Se = (e) => {
143
+ let {
144
+ id: n,
145
+ items: t,
146
+ activeIndex: r,
147
+ overIndex: o
148
+ } = e;
149
+ return V(t, r, o).indexOf(n);
150
+ }, Ce = (e) => {
151
+ let {
152
+ containerId: n,
153
+ isSorting: t,
154
+ wasDragging: r,
155
+ index: o,
156
+ items: s,
157
+ newIndex: i,
158
+ previousItems: a,
159
+ previousContainerId: l,
160
+ transition: d
161
+ } = e;
162
+ return !d || !r || a !== s && o === i ? !1 : t ? !0 : i !== o && n === l;
163
+ }, we = {
164
+ duration: 200,
165
+ easing: "ease"
166
+ }, Q = "transform", Te = /* @__PURE__ */ U.Transition.toString({
167
+ property: Q,
168
+ duration: 0,
169
+ easing: "linear"
170
+ }), Oe = {
171
+ roleDescription: "sortable"
172
+ };
173
+ function Ne(e) {
174
+ let {
175
+ disabled: n,
176
+ index: t,
177
+ node: r,
178
+ rect: o
179
+ } = e;
180
+ const [s, i] = fe(null), a = z(t);
181
+ return K(() => {
182
+ if (!n && t !== a.current && r.current) {
183
+ const l = o.current;
184
+ if (l) {
185
+ const d = be(r.current, {
186
+ ignoreTransform: !0
187
+ }), c = {
188
+ x: l.left - d.left,
189
+ y: l.top - d.top,
190
+ scaleX: l.width / d.width,
191
+ scaleY: l.height / d.height
192
+ };
193
+ (c.x || c.y) && i(c);
194
+ }
195
+ }
196
+ t !== a.current && (a.current = t);
197
+ }, [n, t, r, o]), L(() => {
198
+ s && i(null);
199
+ }, [s]), s;
200
+ }
201
+ function Xe(e) {
202
+ let {
203
+ animateLayoutChanges: n = Ce,
204
+ attributes: t,
205
+ disabled: r,
206
+ data: o,
207
+ getNewIndex: s = Se,
208
+ id: i,
209
+ strategy: a,
210
+ resizeObserverConfig: l,
211
+ transition: d = we
212
+ } = e;
213
+ const {
214
+ items: c,
215
+ containerId: p,
216
+ activeIndex: b,
217
+ disabled: f,
218
+ disableTransforms: w,
219
+ sortedRects: h,
220
+ overIndex: v,
221
+ useDragOverlay: T,
222
+ strategy: y
223
+ } = le(J), R = Ae(r, f), g = c.indexOf(i), D = E(() => ({
224
+ sortable: {
225
+ containerId: p,
226
+ index: g,
227
+ items: c
228
+ },
229
+ ...o
230
+ }), [p, o, g, c]), m = E(() => c.slice(c.indexOf(i)), [c, i]), {
231
+ rect: P,
232
+ node: X,
233
+ isOver: W,
234
+ setNodeRef: G
235
+ } = pe({
236
+ id: i,
237
+ data: D,
238
+ disabled: R.droppable,
239
+ resizeObserverConfig: {
240
+ updateMeasurementsFor: m,
241
+ ...l
242
+ }
243
+ }), {
244
+ active: S,
245
+ activatorEvent: Z,
246
+ activeNodeRect: ee,
247
+ attributes: te,
248
+ setNodeRef: M,
249
+ listeners: re,
250
+ isDragging: _,
251
+ over: ne,
252
+ setActivatorNodeRef: oe,
253
+ transform: ie
254
+ } = ve({
255
+ id: i,
256
+ data: D,
257
+ attributes: {
258
+ ...Oe,
259
+ ...t
260
+ },
261
+ disabled: R.draggable
262
+ }), se = Ie(G, M), I = !!S, Y = I && !w && N(b) && N(v), q = !T && _, B = q && Y ? ie : null, ae = Y ? B ?? (a ?? y)({
263
+ rects: h,
264
+ activeNodeRect: ee,
265
+ activeIndex: b,
266
+ overIndex: v,
267
+ index: g
268
+ }) : null, C = N(b) && N(v) ? s({
269
+ id: i,
270
+ items: c,
271
+ activeIndex: b,
272
+ overIndex: v
273
+ }) : g, x = S == null ? void 0 : S.id, u = z({
274
+ activeId: x,
275
+ items: c,
276
+ newIndex: C,
277
+ containerId: p
278
+ }), ce = c !== u.current.items, F = n({
279
+ active: S,
280
+ containerId: p,
281
+ isDragging: _,
282
+ isSorting: I,
283
+ id: i,
284
+ index: g,
285
+ items: c,
286
+ newIndex: u.current.newIndex,
287
+ previousItems: u.current.items,
288
+ previousContainerId: u.current.containerId,
289
+ transition: d,
290
+ wasDragging: u.current.activeId != null
291
+ }), $ = Ne({
292
+ disabled: !F,
293
+ index: g,
294
+ node: X,
295
+ rect: P
296
+ });
297
+ return L(() => {
298
+ I && u.current.newIndex !== C && (u.current.newIndex = C), p !== u.current.containerId && (u.current.containerId = p), c !== u.current.items && (u.current.items = c);
299
+ }, [I, C, p, c]), L(() => {
300
+ if (x === u.current.activeId)
301
+ return;
302
+ if (x && !u.current.activeId) {
303
+ u.current.activeId = x;
304
+ return;
305
+ }
306
+ const ue = setTimeout(() => {
307
+ u.current.activeId = x;
308
+ }, 50);
309
+ return () => clearTimeout(ue);
310
+ }, [x]), {
311
+ active: S,
312
+ activeIndex: b,
313
+ attributes: te,
314
+ data: D,
315
+ rect: P,
316
+ index: g,
317
+ newIndex: C,
318
+ items: c,
319
+ isOver: W,
320
+ isSorting: I,
321
+ isDragging: _,
322
+ listeners: re,
323
+ node: X,
324
+ overIndex: v,
325
+ over: ne,
326
+ setNodeRef: se,
327
+ setActivatorNodeRef: oe,
328
+ setDroppableNodeRef: G,
329
+ setDraggableNodeRef: M,
330
+ transform: $ ?? ae,
331
+ transition: de()
332
+ };
333
+ function de() {
334
+ if (
335
+ // Temporarily disable transitions for a single frame to set up derived transforms
336
+ $ || // Or to prevent items jumping to back to their "new" position when items change
337
+ ce && u.current.newIndex === g
338
+ )
339
+ return Te;
340
+ if (!(q && !xe(Z) || !d) && (I || F))
341
+ return U.Transition.toString({
342
+ ...d,
343
+ property: Q
344
+ });
345
+ }
346
+ }
347
+ function Ae(e, n) {
348
+ var t, r;
349
+ return typeof e == "boolean" ? {
350
+ draggable: e,
351
+ // Backwards compatibility
352
+ droppable: !1
353
+ } : {
354
+ draggable: (t = e == null ? void 0 : e.draggable) != null ? t : n.draggable,
355
+ droppable: (r = e == null ? void 0 : e.droppable) != null ? r : n.droppable
356
+ };
357
+ }
358
+ O.Down, O.Right, O.Up, O.Left;
359
+ export {
360
+ Pe as SortableContext,
361
+ V as arrayMove,
362
+ Ce as defaultAnimateLayoutChanges,
363
+ Se as defaultNewIndexGetter,
364
+ j as rectSortingStrategy,
365
+ Xe as useSortable,
366
+ ze as verticalListSortingStrategy
367
+ };
@@ -0,0 +1,235 @@
1
+ import { useMemo as l, useLayoutEffect as R, useEffect as g, useRef as o, useCallback as i } from "react";
2
+ function Y() {
3
+ for (var n = arguments.length, t = new Array(n), e = 0; e < n; e++)
4
+ t[e] = arguments[e];
5
+ return l(
6
+ () => (u) => {
7
+ t.forEach((r) => r(u));
8
+ },
9
+ // eslint-disable-next-line react-hooks/exhaustive-deps
10
+ t
11
+ );
12
+ }
13
+ const D = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
14
+ function a(n) {
15
+ const t = Object.prototype.toString.call(n);
16
+ return t === "[object Window]" || // In Electron context the Window object serializes to [object global]
17
+ t === "[object global]";
18
+ }
19
+ function b(n) {
20
+ return "nodeType" in n;
21
+ }
22
+ function c(n) {
23
+ var t, e;
24
+ return n ? a(n) ? n : b(n) && (t = (e = n.ownerDocument) == null ? void 0 : e.defaultView) != null ? t : window : window;
25
+ }
26
+ function j(n) {
27
+ const {
28
+ Document: t
29
+ } = c(n);
30
+ return n instanceof t;
31
+ }
32
+ function C(n) {
33
+ return a(n) ? !1 : n instanceof c(n).HTMLElement;
34
+ }
35
+ function L(n) {
36
+ return n instanceof c(n).SVGElement;
37
+ }
38
+ function x(n) {
39
+ return n ? a(n) ? n.document : b(n) ? j(n) ? n : C(n) || L(n) ? n.ownerDocument : document : document : document;
40
+ }
41
+ const E = D ? R : g;
42
+ function M(n) {
43
+ const t = o(n);
44
+ return E(() => {
45
+ t.current = n;
46
+ }), i(function() {
47
+ for (var e = arguments.length, u = new Array(e), r = 0; r < e; r++)
48
+ u[r] = arguments[r];
49
+ return t.current == null ? void 0 : t.current(...u);
50
+ }, []);
51
+ }
52
+ function A() {
53
+ const n = o(null), t = i((u, r) => {
54
+ n.current = setInterval(u, r);
55
+ }, []), e = i(() => {
56
+ n.current !== null && (clearInterval(n.current), n.current = null);
57
+ }, []);
58
+ return [t, e];
59
+ }
60
+ function I(n, t) {
61
+ t === void 0 && (t = [n]);
62
+ const e = o(n);
63
+ return E(() => {
64
+ e.current !== n && (e.current = n);
65
+ }, t), e;
66
+ }
67
+ function v(n, t) {
68
+ const e = o();
69
+ return l(
70
+ () => {
71
+ const u = n(e.current);
72
+ return e.current = u, u;
73
+ },
74
+ // eslint-disable-next-line react-hooks/exhaustive-deps
75
+ [...t]
76
+ );
77
+ }
78
+ function N(n) {
79
+ const t = M(n), e = o(null), u = i(
80
+ (r) => {
81
+ r !== e.current && (t == null || t(r, e.current)), e.current = r;
82
+ },
83
+ //eslint-disable-next-line
84
+ []
85
+ );
86
+ return [e, u];
87
+ }
88
+ function F(n) {
89
+ const t = o();
90
+ return g(() => {
91
+ t.current = n;
92
+ }, [n]), t.current;
93
+ }
94
+ let f = {};
95
+ function H(n, t) {
96
+ return l(() => {
97
+ if (t)
98
+ return t;
99
+ const e = f[n] == null ? 0 : f[n] + 1;
100
+ return f[n] = e, n + "-" + e;
101
+ }, [n, t]);
102
+ }
103
+ function S(n) {
104
+ return function(t) {
105
+ for (var e = arguments.length, u = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
106
+ u[r - 1] = arguments[r];
107
+ return u.reduce((s, T) => {
108
+ const y = Object.entries(T);
109
+ for (const [d, p] of y) {
110
+ const m = s[d];
111
+ m != null && (s[d] = m + n * p);
112
+ }
113
+ return s;
114
+ }, {
115
+ ...t
116
+ });
117
+ };
118
+ }
119
+ const W = /* @__PURE__ */ S(1), q = /* @__PURE__ */ S(-1);
120
+ function O(n) {
121
+ return "clientX" in n && "clientY" in n;
122
+ }
123
+ function z(n) {
124
+ if (!n)
125
+ return !1;
126
+ const {
127
+ KeyboardEvent: t
128
+ } = c(n.target);
129
+ return t && n instanceof t;
130
+ }
131
+ function V(n) {
132
+ if (!n)
133
+ return !1;
134
+ const {
135
+ TouchEvent: t
136
+ } = c(n.target);
137
+ return t && n instanceof t;
138
+ }
139
+ function G(n) {
140
+ if (V(n)) {
141
+ if (n.touches && n.touches.length) {
142
+ const {
143
+ clientX: t,
144
+ clientY: e
145
+ } = n.touches[0];
146
+ return {
147
+ x: t,
148
+ y: e
149
+ };
150
+ } else if (n.changedTouches && n.changedTouches.length) {
151
+ const {
152
+ clientX: t,
153
+ clientY: e
154
+ } = n.changedTouches[0];
155
+ return {
156
+ x: t,
157
+ y: e
158
+ };
159
+ }
160
+ }
161
+ return O(n) ? {
162
+ x: n.clientX,
163
+ y: n.clientY
164
+ } : null;
165
+ }
166
+ const w = /* @__PURE__ */ Object.freeze({
167
+ Translate: {
168
+ toString(n) {
169
+ if (!n)
170
+ return;
171
+ const {
172
+ x: t,
173
+ y: e
174
+ } = n;
175
+ return "translate3d(" + (t ? Math.round(t) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
176
+ }
177
+ },
178
+ Scale: {
179
+ toString(n) {
180
+ if (!n)
181
+ return;
182
+ const {
183
+ scaleX: t,
184
+ scaleY: e
185
+ } = n;
186
+ return "scaleX(" + t + ") scaleY(" + e + ")";
187
+ }
188
+ },
189
+ Transform: {
190
+ toString(n) {
191
+ if (n)
192
+ return [w.Translate.toString(n), w.Scale.toString(n)].join(" ");
193
+ }
194
+ },
195
+ Transition: {
196
+ toString(n) {
197
+ let {
198
+ property: t,
199
+ duration: e,
200
+ easing: u
201
+ } = n;
202
+ return t + " " + e + "ms " + u;
203
+ }
204
+ }
205
+ }), h = "a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";
206
+ function K(n) {
207
+ return n.matches(h) ? n : n.querySelector(h);
208
+ }
209
+ export {
210
+ w as CSS,
211
+ W as add,
212
+ D as canUseDOM,
213
+ K as findFirstFocusableNode,
214
+ G as getEventCoordinates,
215
+ x as getOwnerDocument,
216
+ c as getWindow,
217
+ O as hasViewportRelativeCoordinates,
218
+ j as isDocument,
219
+ C as isHTMLElement,
220
+ z as isKeyboardEvent,
221
+ b as isNode,
222
+ L as isSVGElement,
223
+ V as isTouchEvent,
224
+ a as isWindow,
225
+ q as subtract,
226
+ Y as useCombinedRefs,
227
+ M as useEvent,
228
+ A as useInterval,
229
+ E as useIsomorphicLayoutEffect,
230
+ I as useLatestValue,
231
+ v as useLazyMemo,
232
+ N as useNodeRef,
233
+ F as usePrevious,
234
+ H as useUniqueId
235
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./_getNative.mjs";
2
+ import a from "./_root.mjs";
3
+ var o = t(a, "DataView");
4
+ const i = o;
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./_getNative.mjs";
2
+ import r from "./_root.mjs";
3
+ var t = o(r, "Promise");
4
+ const i = t;
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./_getNative.mjs";
2
+ import o from "./_root.mjs";
3
+ var e = t(o, "Set");
4
+ const m = e;
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,7 @@
1
+ import a from "./_getNative.mjs";
2
+ import o from "./_root.mjs";
3
+ var t = a(o, "WeakMap");
4
+ const p = t;
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,8 @@
1
+ function f(e, n) {
2
+ for (var l = -1, t = e == null ? 0 : e.length; ++l < t && n(e[l], l, e) !== !1; )
3
+ ;
4
+ return e;
5
+ }
6
+ export {
7
+ f as default
8
+ };
@@ -0,0 +1,10 @@
1
+ function d(e, i) {
2
+ for (var n = -1, r = e == null ? 0 : e.length, u = 0, t = []; ++n < r; ) {
3
+ var l = e[n];
4
+ i(l, n, e) && (t[u++] = l);
5
+ }
6
+ return t;
7
+ }
8
+ export {
9
+ d as default
10
+ };
@@ -0,0 +1,8 @@
1
+ import o from "./_copyObject.mjs";
2
+ import e from "./keys.mjs";
3
+ function m(r, t) {
4
+ return r && o(t, e(t), r);
5
+ }
6
+ export {
7
+ m as default
8
+ };
@@ -0,0 +1,8 @@
1
+ import t from "./_copyObject.mjs";
2
+ import o from "./keysIn.mjs";
3
+ function i(n, r) {
4
+ return n && t(r, o(r), n);
5
+ }
6
+ export {
7
+ i as default
8
+ };