bitz-react-admin-ui 2.2.7 → 2.2.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 (209) hide show
  1. package/dist/_virtual/Draggable.mjs +4 -0
  2. package/dist/_virtual/DraggableCore.mjs +4 -0
  3. package/dist/_virtual/Resizable.mjs +4 -0
  4. package/dist/_virtual/ResizableBox.mjs +4 -0
  5. package/dist/_virtual/_commonjsHelpers.mjs +26 -4
  6. package/dist/_virtual/cjs.mjs +4 -0
  7. package/dist/_virtual/clsx.m.mjs +6 -0
  8. package/dist/_virtual/domFns.mjs +4 -0
  9. package/dist/_virtual/getPrefix.mjs +4 -0
  10. package/dist/_virtual/index.mjs +2 -2
  11. package/dist/_virtual/index2.mjs +2 -2
  12. package/dist/_virtual/index6.mjs +4 -0
  13. package/dist/_virtual/log.mjs +4 -0
  14. package/dist/_virtual/positionFns.mjs +4 -0
  15. package/dist/_virtual/propTypes.mjs +4 -0
  16. package/dist/_virtual/shims.mjs +4 -0
  17. package/dist/_virtual/utils.mjs +4 -0
  18. package/dist/assets/iconfont/IconChenggong.mjs +4 -10
  19. package/dist/assets/iconfont/IconClose.mjs +1 -7
  20. package/dist/assets/iconfont/IconColumnCancelFixed.mjs +4 -25
  21. package/dist/assets/iconfont/IconColumnFixedLeft.mjs +8 -29
  22. package/dist/assets/iconfont/IconColumnFixedRight.mjs +7 -28
  23. package/dist/assets/iconfont/IconCuowu.mjs +2 -8
  24. package/dist/assets/iconfont/IconDragOrder.mjs +7 -28
  25. package/dist/assets/iconfont/IconDuigoux.mjs +2 -8
  26. package/dist/assets/iconfont/IconFabu.mjs +3 -18
  27. package/dist/assets/iconfont/IconFanhui.mjs +5 -11
  28. package/dist/assets/iconfont/IconGaojisousuo.mjs +4 -10
  29. package/dist/assets/iconfont/IconHangfengexian.mjs +4 -27
  30. package/dist/assets/iconfont/IconHangliefengexian.mjs +4 -27
  31. package/dist/assets/iconfont/IconIcFluentHomeRegular.mjs +5 -11
  32. package/dist/assets/iconfont/IconIcon21.mjs +2 -8
  33. package/dist/assets/iconfont/IconJincoude.mjs +3 -9
  34. package/dist/assets/iconfont/IconJinggao.mjs +2 -8
  35. package/dist/assets/iconfont/IconKuansongde.mjs +5 -11
  36. package/dist/assets/iconfont/IconLiefengexian.mjs +5 -28
  37. package/dist/assets/iconfont/IconMore.mjs +4 -26
  38. package/dist/assets/iconfont/IconShanchu.mjs +5 -11
  39. package/dist/assets/iconfont/IconShanchu1.mjs +3 -18
  40. package/dist/assets/iconfont/IconSousuo.mjs +4 -10
  41. package/dist/assets/iconfont/IconTejincou.mjs +1 -7
  42. package/dist/assets/iconfont/IconTekuansong.mjs +5 -11
  43. package/dist/assets/iconfont/IconTishi1.mjs +6 -12
  44. package/dist/assets/iconfont/IconTuodong.mjs +6 -12
  45. package/dist/assets/iconfont/IconWubanmawentianchong.mjs +5 -22
  46. package/dist/assets/iconfont/IconWufengexian.mjs +4 -11
  47. package/dist/assets/iconfont/IconXinxitishi.mjs +3 -9
  48. package/dist/assets/iconfont/IconYoubanmawentianchong.mjs +7 -23
  49. package/dist/assets/iconfont/IconZhongdengde.mjs +4 -10
  50. package/dist/assets/iconfont/IconZhongzhi.mjs +5 -11
  51. package/dist/assets/iconfont/index.mjs +33 -33
  52. package/dist/components/BitzAddTag/index.mjs +8 -41
  53. package/dist/components/BitzAddressBook/index.mjs +35 -122
  54. package/dist/components/BitzAppPage/index.mjs +4 -18
  55. package/dist/components/BitzAppRefresh/index.mjs +15 -27
  56. package/dist/components/BitzBetterScroll/index.mjs +5 -5
  57. package/dist/components/BitzButton/index.mjs +9 -23
  58. package/dist/components/BitzCalendar/index.mjs +19 -52
  59. package/dist/components/BitzCascader/BitzCascaderMobile.mjs +30 -68
  60. package/dist/components/BitzCascader/index.mjs +2 -6
  61. package/dist/components/BitzCollapse/index.mjs +4 -4
  62. package/dist/components/BitzConfigProvider/context.mjs +1 -3
  63. package/dist/components/BitzConfigProvider/index.mjs +8 -12
  64. package/dist/components/BitzConfirmModal/index.mjs +1 -24
  65. package/dist/components/BitzConvert/DropdownToButton/index.mjs +11 -14
  66. package/dist/components/BitzConvert/index.mjs +1 -1
  67. package/dist/components/BitzDescriptions/index.mjs +1 -11
  68. package/dist/components/BitzDrawer/index.mjs +2 -17
  69. package/dist/components/BitzEmpty/index.mjs +2 -6
  70. package/dist/components/BitzException/index.mjs +1 -6
  71. package/dist/components/BitzFloatLayout/index.mjs +1 -10
  72. package/dist/components/BitzFuiCalendar/BitzFuiCalendarStore.mjs +16 -13
  73. package/dist/components/BitzFuiCalendar/CalendarAgendum.mjs +20 -26
  74. package/dist/components/BitzFuiCalendar/CalendarAgendumItem.mjs +3 -21
  75. package/dist/components/BitzFuiCalendar/CalendarBody.mjs +4 -27
  76. package/dist/components/BitzFuiCalendar/CalendarHead.mjs +2 -5
  77. package/dist/components/BitzFuiCalendar/CalendarHeadItem.mjs +3 -12
  78. package/dist/components/BitzFuiCalendar/CalendarToolbar.mjs +19 -51
  79. package/dist/components/BitzFuiCalendar/ColumnData.mjs +14 -30
  80. package/dist/components/BitzFuiCalendar/FuiCalendarItem.mjs +5 -47
  81. package/dist/components/BitzFuiCalendar/index.mjs +1 -7
  82. package/dist/components/BitzFullScreen/index.mjs +6 -9
  83. package/dist/components/BitzHighlight/Child.mjs +9 -23
  84. package/dist/components/BitzHighlight/Highlight.mjs +5 -26
  85. package/dist/components/BitzHighlight/chunks.mjs +17 -20
  86. package/dist/components/BitzHighlight/style.mjs +1 -4
  87. package/dist/components/BitzImage/index.mjs +1 -1
  88. package/dist/components/BitzImage/previewImage.mjs +5 -12
  89. package/dist/components/BitzLanguageTabs/index.mjs +3 -14
  90. package/dist/components/BitzLazyLoad/index.mjs +1 -7
  91. package/dist/components/BitzList/List.mjs +3 -17
  92. package/dist/components/BitzList/LoadMore.mjs +20 -29
  93. package/dist/components/BitzLoadMore/index.mjs +14 -34
  94. package/dist/components/BitzMeetingTime/BitzMeetingTimeItem.mjs +11 -24
  95. package/dist/components/BitzMeetingTime/index.mjs +6 -10
  96. package/dist/components/BitzMobileLoading/index.mjs +1 -1
  97. package/dist/components/BitzModal/index.mjs +11 -24
  98. package/dist/components/BitzNoData/index.mjs +1 -4
  99. package/dist/components/BitzNoMore/index.mjs +1 -1
  100. package/dist/components/BitzOrganizationSelection/index.mjs +14 -43
  101. package/dist/components/BitzPageContainer/index.mjs +46 -107
  102. package/dist/components/BitzPageHeader/index.mjs +21 -89
  103. package/dist/components/BitzPagination/index.mjs +22 -71
  104. package/dist/components/BitzPopover/index.mjs +4 -4
  105. package/dist/components/BitzPullRefresh/PullRefresh.mjs +18 -47
  106. package/dist/components/BitzQRCode/index.mjs +1 -6
  107. package/dist/components/BitzQueryFilter/QueryFilterContent.mjs +17 -35
  108. package/dist/components/BitzQueryFilter/QueryFilterDrawer.mjs +13 -20
  109. package/dist/components/BitzQueryFilter/QueryFilterMobile.mjs +1 -4
  110. package/dist/components/BitzQueryFilter/index.mjs +20 -69
  111. package/dist/components/BitzRefresh/index.mjs +1 -5
  112. package/dist/components/BitzRemark/index.mjs +4 -4
  113. package/dist/components/BitzScheduleCenter/index.mjs +30 -24
  114. package/dist/components/BitzSearch/index.mjs +1 -1
  115. package/dist/components/BitzSelect/component/BitzSelectMobile.mjs +48 -123
  116. package/dist/components/BitzSelect/index.mjs +1 -1
  117. package/dist/components/BitzSkeleton/index.mjs +1 -31
  118. package/dist/components/BitzSwitch/index.mjs +2 -7
  119. package/dist/components/BitzTabbar/BitzTabbar.mjs +8 -25
  120. package/dist/components/BitzTabbar/BitzTabbarItem.mjs +1 -4
  121. package/dist/components/BitzTable/ActionBar/ActionBar.d.ts +21 -9
  122. package/dist/components/BitzTable/ActionBar/ActionBar.mjs +38 -66
  123. package/dist/components/BitzTable/ActionBar/Button.mjs +1 -1
  124. package/dist/components/BitzTable/ActionBar/style.mjs +9 -12
  125. package/dist/components/BitzTable/ActionCol/index.d.ts +1 -1
  126. package/dist/components/BitzTable/ActionCol/index.mjs +32 -98
  127. package/dist/components/BitzTable/ActionCol/style.mjs +12 -15
  128. package/dist/components/BitzTable/Dropdown/index.mjs +1 -8
  129. package/dist/components/BitzTable/Dropdown/style.mjs +6 -9
  130. package/dist/components/BitzTable/SelectionBar/Button.mjs +6 -19
  131. package/dist/components/BitzTable/SelectionBar/SelectionBar.mjs +2 -8
  132. package/dist/components/BitzTable/SelectionBar/style.mjs +8 -18
  133. package/dist/components/BitzTable/Store/index.mjs +89 -121
  134. package/dist/components/BitzTable/Store/utils/index.d.ts +1 -1
  135. package/dist/components/BitzTable/Store/utils/index.mjs +30 -30
  136. package/dist/components/BitzTable/SubTable/index.mjs +52 -94
  137. package/dist/components/BitzTable/Table/ResizableTitle.d.ts +8 -0
  138. package/dist/components/BitzTable/Table/ResizableTitle.mjs +14 -0
  139. package/dist/components/BitzTable/Table/SortTableContext.mjs +7 -20
  140. package/dist/components/BitzTable/Table/SortableRow.mjs +20 -44
  141. package/dist/components/BitzTable/Table/index.d.ts +1 -1
  142. package/dist/components/BitzTable/Table/index.mjs +248 -436
  143. package/dist/components/BitzTable/Table/style.mjs +1 -11
  144. package/dist/components/BitzTable/Table/utils.mjs +4 -11
  145. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnConfigModal.mjs +28 -92
  146. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndItem.mjs +22 -97
  147. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/DndList.mjs +29 -68
  148. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ColumnsSort/index.mjs +145 -253
  149. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndItem.mjs +12 -38
  150. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/DndList.mjs +16 -42
  151. package/dist/components/BitzTable/ToolBar/ColConfigIcon/ExportConfig/index.mjs +20 -96
  152. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/RadioCard.mjs +2 -9
  153. package/dist/components/BitzTable/ToolBar/ColConfigIcon/StylesConfig/index.mjs +46 -100
  154. package/dist/components/BitzTable/ToolBar/ColConfigIcon/index.mjs +8 -30
  155. package/dist/components/BitzTable/ToolBar/ExportIcon/ExportModal.mjs +14 -44
  156. package/dist/components/BitzTable/ToolBar/ExportIcon/index.mjs +12 -44
  157. package/dist/components/BitzTable/ToolBar/FullscreenIcon/index.mjs +4 -17
  158. package/dist/components/BitzTable/ToolBar/Modal/index.mjs +12 -49
  159. package/dist/components/BitzTable/ToolBar/Modal/style.mjs +4 -0
  160. package/dist/components/BitzTable/ToolBar/RefreshIcon/index.mjs +9 -20
  161. package/dist/components/BitzTable/ToolBar/Wrapper/index.mjs +2 -48
  162. package/dist/components/BitzTable/ToolBar/style.mjs +1 -6
  163. package/dist/components/BitzTableOperations/index.mjs +3 -13
  164. package/dist/components/BitzTableSelect/Picker/index.mjs +10 -43
  165. package/dist/components/BitzTableSelect/Select/index.mjs +21 -87
  166. package/dist/components/BitzTableSelect/SelectPopup/getData.mjs +20 -30
  167. package/dist/components/BitzTableSelect/SelectPopup/index.mjs +61 -239
  168. package/dist/components/BitzTableSelect/TableCell/index.mjs +8 -49
  169. package/dist/components/BitzTableSelect/TextBlock/index.mjs +5 -23
  170. package/dist/components/BitzTableSelect/index.mjs +13 -61
  171. package/dist/components/BitzTag/index.mjs +1 -1
  172. package/dist/components/BitzTheme/index.mjs +6 -6
  173. package/dist/components/BitzTimeline/index.mjs +1 -11
  174. package/dist/components/BitzTimer/Form.mjs +11 -32
  175. package/dist/components/BitzTimer/Timer.mjs +38 -76
  176. package/dist/components/BitzTimer/index.mjs +43 -66
  177. package/dist/components/BitzToast/Toast/index.mjs +10 -28
  178. package/dist/components/BitzToast/index.mjs +1 -1
  179. package/dist/components/BitzTree/index.mjs +1 -4
  180. package/dist/components/BitzUeEditor/index.mjs +5 -5
  181. package/dist/components/BitzUpload/index.mjs +43 -81
  182. package/dist/components/BitzWebAppDrawer/index.mjs +4 -35
  183. package/dist/components/BitzWebAppModal/index.mjs +3 -6
  184. package/dist/hooks/use-event-listener.mjs +2 -11
  185. package/dist/hooks/use-lock-fn.mjs +10 -13
  186. package/dist/hooks/use-scroll-parent.mjs +14 -16
  187. package/dist/hooks/useEvent.mjs +4 -7
  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/clsx@1.2.1/node_modules/clsx/dist/clsx.m.mjs +22 -0
  191. package/dist/node_modules/.store/prop-types@15.8.1/node_modules/prop-types/index.mjs +9 -8
  192. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/Draggable.mjs +343 -0
  193. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/DraggableCore.mjs +324 -0
  194. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/cjs.mjs +14 -0
  195. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/domFns.mjs +174 -0
  196. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/getPrefix.mjs +35 -0
  197. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/log.mjs +7 -0
  198. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/positionFns.mjs +107 -0
  199. package/dist/node_modules/.store/react-draggable@4.4.6/node_modules/react-draggable/build/cjs/utils/shims.mjs +30 -0
  200. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/Resizable.mjs +201 -0
  201. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/ResizableBox.mjs +162 -0
  202. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/propTypes.mjs +118 -0
  203. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/build/utils.mjs +54 -0
  204. package/dist/node_modules/.store/react-resizable@3.0.5/node_modules/react-resizable/index.mjs +13 -0
  205. package/dist/node_modules/.store/use-sync-external-store@1.2.0/node_modules/use-sync-external-store/shim/index.mjs +1 -1
  206. package/dist/style.css +1 -1
  207. package/dist/utils/WithFluent.mjs +12 -27
  208. package/dist/utils/create.mjs +1 -7
  209. package/package.json +1 -1
@@ -0,0 +1,324 @@
1
+ import { __exports as y } from "../../../../../../../_virtual/DraggableCore.mjs";
2
+ import M from "react";
3
+ import { p as b } from "../../../../../prop-types@15.8.1/node_modules/prop-types/index.mjs";
4
+ import E from "react-dom";
5
+ import "./utils/domFns.mjs";
6
+ import "./utils/positionFns.mjs";
7
+ import "./utils/shims.mjs";
8
+ import "./utils/log.mjs";
9
+ import { __exports as N } from "../../../../../../../_virtual/domFns.mjs";
10
+ import { __exports as C } from "../../../../../../../_virtual/shims.mjs";
11
+ import { __exports as P } from "../../../../../../../_virtual/log.mjs";
12
+ import { __exports as O } from "../../../../../../../_virtual/positionFns.mjs";
13
+ Object.defineProperty(y, "__esModule", {
14
+ value: !0
15
+ });
16
+ y.default = void 0;
17
+ var D = U(M), u = w(b), T = w(E), n = N, c = O, S = C, m = w(P);
18
+ function w(e) {
19
+ return e && e.__esModule ? e : { default: e };
20
+ }
21
+ function _(e) {
22
+ if (typeof WeakMap != "function")
23
+ return null;
24
+ var t = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
25
+ return (_ = function(r) {
26
+ return r ? o : t;
27
+ })(e);
28
+ }
29
+ function U(e, t) {
30
+ if (!t && e && e.__esModule)
31
+ return e;
32
+ if (e === null || typeof e != "object" && typeof e != "function")
33
+ return { default: e };
34
+ var o = _(t);
35
+ if (o && o.has(e))
36
+ return o.get(e);
37
+ var r = {}, d = Object.defineProperty && Object.getOwnPropertyDescriptor;
38
+ for (var s in e)
39
+ if (s !== "default" && Object.prototype.hasOwnProperty.call(e, s)) {
40
+ var f = d ? Object.getOwnPropertyDescriptor(e, s) : null;
41
+ f && (f.get || f.set) ? Object.defineProperty(r, s, f) : r[s] = e[s];
42
+ }
43
+ return r.default = e, o && o.set(e, r), r;
44
+ }
45
+ function a(e, t, o) {
46
+ return t = R(t), t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e;
47
+ }
48
+ function R(e) {
49
+ var t = x(e, "string");
50
+ return typeof t == "symbol" ? t : String(t);
51
+ }
52
+ function x(e, t) {
53
+ if (typeof e != "object" || e === null)
54
+ return e;
55
+ var o = e[Symbol.toPrimitive];
56
+ if (o !== void 0) {
57
+ var r = o.call(e, t || "default");
58
+ if (typeof r != "object")
59
+ return r;
60
+ throw new TypeError("@@toPrimitive must return a primitive value.");
61
+ }
62
+ return (t === "string" ? String : Number)(e);
63
+ }
64
+ const h = {
65
+ touch: {
66
+ start: "touchstart",
67
+ move: "touchmove",
68
+ stop: "touchend"
69
+ },
70
+ mouse: {
71
+ start: "mousedown",
72
+ move: "mousemove",
73
+ stop: "mouseup"
74
+ }
75
+ };
76
+ let p = h.mouse;
77
+ class v extends D.Component {
78
+ constructor() {
79
+ super(...arguments), a(this, "dragging", !1), a(this, "lastX", NaN), a(this, "lastY", NaN), a(this, "touchIdentifier", null), a(this, "mounted", !1), a(this, "handleDragStart", (t) => {
80
+ if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0)
81
+ return !1;
82
+ const o = this.findDOMNode();
83
+ if (!o || !o.ownerDocument || !o.ownerDocument.body)
84
+ throw new Error("<DraggableCore> not mounted on DragStart!");
85
+ const {
86
+ ownerDocument: r
87
+ } = o;
88
+ if (this.props.disabled || !(t.target instanceof r.defaultView.Node) || this.props.handle && !(0, n.matchesSelectorAndParentsTo)(t.target, this.props.handle, o) || this.props.cancel && (0, n.matchesSelectorAndParentsTo)(t.target, this.props.cancel, o))
89
+ return;
90
+ t.type === "touchstart" && t.preventDefault();
91
+ const d = (0, n.getTouchIdentifier)(t);
92
+ this.touchIdentifier = d;
93
+ const s = (0, c.getControlPosition)(t, d, this);
94
+ if (s == null)
95
+ return;
96
+ const {
97
+ x: f,
98
+ y: i
99
+ } = s, l = (0, c.createCoreData)(this, f, i);
100
+ (0, m.default)("DraggableCore: handleDragStart: %j", l), (0, m.default)("calling", this.props.onStart), !(this.props.onStart(t, l) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, n.addUserSelectStyles)(r), this.dragging = !0, this.lastX = f, this.lastY = i, (0, n.addEvent)(r, p.move, this.handleDrag), (0, n.addEvent)(r, p.stop, this.handleDragStop));
101
+ }), a(this, "handleDrag", (t) => {
102
+ const o = (0, c.getControlPosition)(t, this.touchIdentifier, this);
103
+ if (o == null)
104
+ return;
105
+ let {
106
+ x: r,
107
+ y: d
108
+ } = o;
109
+ if (Array.isArray(this.props.grid)) {
110
+ let i = r - this.lastX, l = d - this.lastY;
111
+ if ([i, l] = (0, c.snapToGrid)(this.props.grid, i, l), !i && !l)
112
+ return;
113
+ r = this.lastX + i, d = this.lastY + l;
114
+ }
115
+ const s = (0, c.createCoreData)(this, r, d);
116
+ if ((0, m.default)("DraggableCore: handleDrag: %j", s), this.props.onDrag(t, s) === !1 || this.mounted === !1) {
117
+ try {
118
+ this.handleDragStop(new MouseEvent("mouseup"));
119
+ } catch {
120
+ const l = document.createEvent("MouseEvents");
121
+ l.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(l);
122
+ }
123
+ return;
124
+ }
125
+ this.lastX = r, this.lastY = d;
126
+ }), a(this, "handleDragStop", (t) => {
127
+ if (!this.dragging)
128
+ return;
129
+ const o = (0, c.getControlPosition)(t, this.touchIdentifier, this);
130
+ if (o == null)
131
+ return;
132
+ let {
133
+ x: r,
134
+ y: d
135
+ } = o;
136
+ if (Array.isArray(this.props.grid)) {
137
+ let l = r - this.lastX || 0, g = d - this.lastY || 0;
138
+ [l, g] = (0, c.snapToGrid)(this.props.grid, l, g), r = this.lastX + l, d = this.lastY + g;
139
+ }
140
+ const s = (0, c.createCoreData)(this, r, d);
141
+ if (this.props.onStop(t, s) === !1 || this.mounted === !1)
142
+ return !1;
143
+ const i = this.findDOMNode();
144
+ i && this.props.enableUserSelectHack && (0, n.removeUserSelectStyles)(i.ownerDocument), (0, m.default)("DraggableCore: handleDragStop: %j", s), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, i && ((0, m.default)("DraggableCore: Removing handlers"), (0, n.removeEvent)(i.ownerDocument, p.move, this.handleDrag), (0, n.removeEvent)(i.ownerDocument, p.stop, this.handleDragStop));
145
+ }), a(this, "onMouseDown", (t) => (p = h.mouse, this.handleDragStart(t))), a(this, "onMouseUp", (t) => (p = h.mouse, this.handleDragStop(t))), a(this, "onTouchStart", (t) => (p = h.touch, this.handleDragStart(t))), a(this, "onTouchEnd", (t) => (p = h.touch, this.handleDragStop(t)));
146
+ }
147
+ componentDidMount() {
148
+ this.mounted = !0;
149
+ const t = this.findDOMNode();
150
+ t && (0, n.addEvent)(t, h.touch.start, this.onTouchStart, {
151
+ passive: !1
152
+ });
153
+ }
154
+ componentWillUnmount() {
155
+ this.mounted = !1;
156
+ const t = this.findDOMNode();
157
+ if (t) {
158
+ const {
159
+ ownerDocument: o
160
+ } = t;
161
+ (0, n.removeEvent)(o, h.mouse.move, this.handleDrag), (0, n.removeEvent)(o, h.touch.move, this.handleDrag), (0, n.removeEvent)(o, h.mouse.stop, this.handleDragStop), (0, n.removeEvent)(o, h.touch.stop, this.handleDragStop), (0, n.removeEvent)(t, h.touch.start, this.onTouchStart, {
162
+ passive: !1
163
+ }), this.props.enableUserSelectHack && (0, n.removeUserSelectStyles)(o);
164
+ }
165
+ }
166
+ // React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
167
+ // the underlying DOM node ourselves. See the README for more information.
168
+ findDOMNode() {
169
+ var t, o;
170
+ return (t = this.props) !== null && t !== void 0 && t.nodeRef ? (o = this.props) === null || o === void 0 || (o = o.nodeRef) === null || o === void 0 ? void 0 : o.current : T.default.findDOMNode(this);
171
+ }
172
+ render() {
173
+ return /* @__PURE__ */ D.cloneElement(D.Children.only(this.props.children), {
174
+ // Note: mouseMove handler is attached to document so it will still function
175
+ // when the user drags quickly and leaves the bounds of the element.
176
+ onMouseDown: this.onMouseDown,
177
+ onMouseUp: this.onMouseUp,
178
+ // onTouchStart is added on `componentDidMount` so they can be added with
179
+ // {passive: false}, which allows it to cancel. See
180
+ // https://developers.google.com/web/updates/2017/01/scrolling-intervention
181
+ onTouchEnd: this.onTouchEnd
182
+ });
183
+ }
184
+ }
185
+ y.default = v;
186
+ a(v, "displayName", "DraggableCore");
187
+ a(v, "propTypes", {
188
+ /**
189
+ * `allowAnyClick` allows dragging using any mouse button.
190
+ * By default, we only accept the left button.
191
+ *
192
+ * Defaults to `false`.
193
+ */
194
+ allowAnyClick: u.default.bool,
195
+ children: u.default.node.isRequired,
196
+ /**
197
+ * `disabled`, if true, stops the <Draggable> from dragging. All handlers,
198
+ * with the exception of `onMouseDown`, will not fire.
199
+ */
200
+ disabled: u.default.bool,
201
+ /**
202
+ * By default, we add 'user-select:none' attributes to the document body
203
+ * to prevent ugly text selection during drag. If this is causing problems
204
+ * for your app, set this to `false`.
205
+ */
206
+ enableUserSelectHack: u.default.bool,
207
+ /**
208
+ * `offsetParent`, if set, uses the passed DOM node to compute drag offsets
209
+ * instead of using the parent node.
210
+ */
211
+ offsetParent: function(e, t) {
212
+ if (e[t] && e[t].nodeType !== 1)
213
+ throw new Error("Draggable's offsetParent must be a DOM Node.");
214
+ },
215
+ /**
216
+ * `grid` specifies the x and y that dragging should snap to.
217
+ */
218
+ grid: u.default.arrayOf(u.default.number),
219
+ /**
220
+ * `handle` specifies a selector to be used as the handle that initiates drag.
221
+ *
222
+ * Example:
223
+ *
224
+ * ```jsx
225
+ * let App = React.createClass({
226
+ * render: function () {
227
+ * return (
228
+ * <Draggable handle=".handle">
229
+ * <div>
230
+ * <div className="handle">Click me to drag</div>
231
+ * <div>This is some other content</div>
232
+ * </div>
233
+ * </Draggable>
234
+ * );
235
+ * }
236
+ * });
237
+ * ```
238
+ */
239
+ handle: u.default.string,
240
+ /**
241
+ * `cancel` specifies a selector to be used to prevent drag initialization.
242
+ *
243
+ * Example:
244
+ *
245
+ * ```jsx
246
+ * let App = React.createClass({
247
+ * render: function () {
248
+ * return(
249
+ * <Draggable cancel=".cancel">
250
+ * <div>
251
+ * <div className="cancel">You can't drag from here</div>
252
+ * <div>Dragging here works fine</div>
253
+ * </div>
254
+ * </Draggable>
255
+ * );
256
+ * }
257
+ * });
258
+ * ```
259
+ */
260
+ cancel: u.default.string,
261
+ /* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
262
+ * Unfortunately, in order for <Draggable> to work properly, we need raw access
263
+ * to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`
264
+ * as in this example:
265
+ *
266
+ * function MyComponent() {
267
+ * const nodeRef = React.useRef(null);
268
+ * return (
269
+ * <Draggable nodeRef={nodeRef}>
270
+ * <div ref={nodeRef}>Example Target</div>
271
+ * </Draggable>
272
+ * );
273
+ * }
274
+ *
275
+ * This can be used for arbitrarily nested components, so long as the ref ends up
276
+ * pointing to the actual child DOM node and not a custom component.
277
+ */
278
+ nodeRef: u.default.object,
279
+ /**
280
+ * Called when dragging starts.
281
+ * If this function returns the boolean false, dragging will be canceled.
282
+ */
283
+ onStart: u.default.func,
284
+ /**
285
+ * Called while dragging.
286
+ * If this function returns the boolean false, dragging will be canceled.
287
+ */
288
+ onDrag: u.default.func,
289
+ /**
290
+ * Called when dragging stops.
291
+ * If this function returns the boolean false, the drag will remain active.
292
+ */
293
+ onStop: u.default.func,
294
+ /**
295
+ * A workaround option which can be passed if onMouseDown needs to be accessed,
296
+ * since it'll always be blocked (as there is internal use of onMouseDown)
297
+ */
298
+ onMouseDown: u.default.func,
299
+ /**
300
+ * `scale`, if set, applies scaling while dragging an element
301
+ */
302
+ scale: u.default.number,
303
+ /**
304
+ * These properties should be defined on the child, not here.
305
+ */
306
+ className: S.dontSetMe,
307
+ style: S.dontSetMe,
308
+ transform: S.dontSetMe
309
+ });
310
+ a(v, "defaultProps", {
311
+ allowAnyClick: !1,
312
+ // by default only accept left click
313
+ disabled: !1,
314
+ enableUserSelectHack: !0,
315
+ onStart: function() {
316
+ },
317
+ onDrag: function() {
318
+ },
319
+ onStop: function() {
320
+ },
321
+ onMouseDown: function() {
322
+ },
323
+ scale: 1
324
+ });
@@ -0,0 +1,14 @@
1
+ import { __module as r } from "../../../../../../../_virtual/cjs.mjs";
2
+ import "./Draggable.mjs";
3
+ import { __exports as e } from "../../../../../../../_virtual/Draggable.mjs";
4
+ const {
5
+ default: o,
6
+ DraggableCore: a
7
+ } = e;
8
+ r.exports = o;
9
+ r.exports.default = o;
10
+ r.exports.DraggableCore = a;
11
+ var g = r.exports;
12
+ export {
13
+ g as c
14
+ };
@@ -0,0 +1,174 @@
1
+ import { __exports as a } from "../../../../../../../../_virtual/domFns.mjs";
2
+ import "./shims.mjs";
3
+ import "./getPrefix.mjs";
4
+ import { __exports as y } from "../../../../../../../../_virtual/shims.mjs";
5
+ import { __exports as S } from "../../../../../../../../_virtual/getPrefix.mjs";
6
+ Object.defineProperty(a, "__esModule", {
7
+ value: !0
8
+ });
9
+ a.addClassName = g;
10
+ a.addEvent = w;
11
+ a.addUserSelectStyles = B;
12
+ a.createCSSTransform = b;
13
+ a.createSVGTransform = M;
14
+ a.getTouch = P;
15
+ a.getTouchIdentifier = R;
16
+ a.getTranslation = u;
17
+ a.innerHeight = _;
18
+ a.innerWidth = x;
19
+ a.matchesSelector = h;
20
+ a.matchesSelectorAndParentsTo = v;
21
+ a.offsetXYFromParent = L;
22
+ a.outerHeight = W;
23
+ a.outerWidth = C;
24
+ a.removeClassName = m;
25
+ a.removeEvent = E;
26
+ a.removeUserSelectStyles = D;
27
+ var i = y, d = T(S);
28
+ function f(e) {
29
+ if (typeof WeakMap != "function")
30
+ return null;
31
+ var t = /* @__PURE__ */ new WeakMap(), n = /* @__PURE__ */ new WeakMap();
32
+ return (f = function(r) {
33
+ return r ? n : t;
34
+ })(e);
35
+ }
36
+ function T(e, t) {
37
+ if (!t && e && e.__esModule)
38
+ return e;
39
+ if (e === null || typeof e != "object" && typeof e != "function")
40
+ return { default: e };
41
+ var n = f(t);
42
+ if (n && n.has(e))
43
+ return n.get(e);
44
+ var r = {}, o = Object.defineProperty && Object.getOwnPropertyDescriptor;
45
+ for (var c in e)
46
+ if (c !== "default" && Object.prototype.hasOwnProperty.call(e, c)) {
47
+ var s = o ? Object.getOwnPropertyDescriptor(e, c) : null;
48
+ s && (s.get || s.set) ? Object.defineProperty(r, c, s) : r[c] = e[c];
49
+ }
50
+ return r.default = e, n && n.set(e, r), r;
51
+ }
52
+ let l = "";
53
+ function h(e, t) {
54
+ return l || (l = (0, i.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(n) {
55
+ return (0, i.isFunction)(e[n]);
56
+ })), (0, i.isFunction)(e[l]) ? e[l](t) : !1;
57
+ }
58
+ function v(e, t, n) {
59
+ let r = e;
60
+ do {
61
+ if (h(r, t))
62
+ return !0;
63
+ if (r === n)
64
+ return !1;
65
+ r = r.parentNode;
66
+ } while (r);
67
+ return !1;
68
+ }
69
+ function w(e, t, n, r) {
70
+ if (!e)
71
+ return;
72
+ const o = {
73
+ capture: !0,
74
+ ...r
75
+ };
76
+ e.addEventListener ? e.addEventListener(t, n, o) : e.attachEvent ? e.attachEvent("on" + t, n) : e["on" + t] = n;
77
+ }
78
+ function E(e, t, n, r) {
79
+ if (!e)
80
+ return;
81
+ const o = {
82
+ capture: !0,
83
+ ...r
84
+ };
85
+ e.removeEventListener ? e.removeEventListener(t, n, o) : e.detachEvent ? e.detachEvent("on" + t, n) : e["on" + t] = null;
86
+ }
87
+ function W(e) {
88
+ let t = e.clientHeight;
89
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
90
+ return t += (0, i.int)(n.borderTopWidth), t += (0, i.int)(n.borderBottomWidth), t;
91
+ }
92
+ function C(e) {
93
+ let t = e.clientWidth;
94
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
95
+ return t += (0, i.int)(n.borderLeftWidth), t += (0, i.int)(n.borderRightWidth), t;
96
+ }
97
+ function _(e) {
98
+ let t = e.clientHeight;
99
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
100
+ return t -= (0, i.int)(n.paddingTop), t -= (0, i.int)(n.paddingBottom), t;
101
+ }
102
+ function x(e) {
103
+ let t = e.clientWidth;
104
+ const n = e.ownerDocument.defaultView.getComputedStyle(e);
105
+ return t -= (0, i.int)(n.paddingLeft), t -= (0, i.int)(n.paddingRight), t;
106
+ }
107
+ function L(e, t, n) {
108
+ const o = t === t.ownerDocument.body ? {
109
+ left: 0,
110
+ top: 0
111
+ } : t.getBoundingClientRect(), c = (e.clientX + t.scrollLeft - o.left) / n, s = (e.clientY + t.scrollTop - o.top) / n;
112
+ return {
113
+ x: c,
114
+ y: s
115
+ };
116
+ }
117
+ function b(e, t) {
118
+ const n = u(e, t, "px");
119
+ return {
120
+ [(0, d.browserPrefixToKey)("transform", d.default)]: n
121
+ };
122
+ }
123
+ function M(e, t) {
124
+ return u(e, t, "");
125
+ }
126
+ function u(e, t, n) {
127
+ let {
128
+ x: r,
129
+ y: o
130
+ } = e, c = "translate(".concat(r).concat(n, ",").concat(o).concat(n, ")");
131
+ if (t) {
132
+ const s = "".concat(typeof t.x == "string" ? t.x : t.x + n), p = "".concat(typeof t.y == "string" ? t.y : t.y + n);
133
+ c = "translate(".concat(s, ", ").concat(p, ")") + c;
134
+ }
135
+ return c;
136
+ }
137
+ function P(e, t) {
138
+ return e.targetTouches && (0, i.findInArray)(e.targetTouches, (n) => t === n.identifier) || e.changedTouches && (0, i.findInArray)(e.changedTouches, (n) => t === n.identifier);
139
+ }
140
+ function R(e) {
141
+ if (e.targetTouches && e.targetTouches[0])
142
+ return e.targetTouches[0].identifier;
143
+ if (e.changedTouches && e.changedTouches[0])
144
+ return e.changedTouches[0].identifier;
145
+ }
146
+ function B(e) {
147
+ if (!e)
148
+ return;
149
+ let t = e.getElementById("react-draggable-style-el");
150
+ t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
151
+ `, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
152
+ `, e.getElementsByTagName("head")[0].appendChild(t)), e.body && g(e.body, "react-draggable-transparent-selection");
153
+ }
154
+ function D(e) {
155
+ if (e)
156
+ try {
157
+ if (e.body && m(e.body, "react-draggable-transparent-selection"), e.selection)
158
+ e.selection.empty();
159
+ else {
160
+ const t = (e.defaultView || window).getSelection();
161
+ t && t.type !== "Caret" && t.removeAllRanges();
162
+ }
163
+ } catch {
164
+ }
165
+ }
166
+ function g(e, t) {
167
+ e.classList ? e.classList.add(t) : e.className.match(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"))) || (e.className += " ".concat(t));
168
+ }
169
+ function m(e, t) {
170
+ e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp("(?:^|\\s)".concat(t, "(?!\\S)"), "g"), "");
171
+ }
172
+ export {
173
+ a as default
174
+ };
@@ -0,0 +1,35 @@
1
+ import { __exports as o } from "../../../../../../../../_virtual/getPrefix.mjs";
2
+ Object.defineProperty(o, "__esModule", {
3
+ value: !0
4
+ });
5
+ o.browserPrefixToKey = f;
6
+ o.browserPrefixToStyle = l;
7
+ o.default = void 0;
8
+ o.getPrefix = u;
9
+ const i = ["Moz", "Webkit", "O", "ms"];
10
+ function u() {
11
+ var e;
12
+ let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
13
+ if (typeof window > "u")
14
+ return "";
15
+ const r = (e = window.document) === null || e === void 0 || (e = e.documentElement) === null || e === void 0 ? void 0 : e.style;
16
+ if (!r || t in r)
17
+ return "";
18
+ for (let n = 0; n < i.length; n++)
19
+ if (f(t, i[n]) in r)
20
+ return i[n];
21
+ return "";
22
+ }
23
+ function f(e, t) {
24
+ return t ? "".concat(t).concat(s(e)) : e;
25
+ }
26
+ function l(e, t) {
27
+ return t ? "-".concat(t.toLowerCase(), "-").concat(e) : e;
28
+ }
29
+ function s(e) {
30
+ let t = "", r = !0;
31
+ for (let n = 0; n < e.length; n++)
32
+ r ? (t += e[n].toUpperCase(), r = !1) : e[n] === "-" ? r = !0 : t += e[n];
33
+ return t;
34
+ }
35
+ o.default = u();
@@ -0,0 +1,7 @@
1
+ import { __exports as e } from "../../../../../../../../_virtual/log.mjs";
2
+ Object.defineProperty(e, "__esModule", {
3
+ value: !0
4
+ });
5
+ e.default = o;
6
+ function o() {
7
+ }
@@ -0,0 +1,107 @@
1
+ import { __exports as i } from "../../../../../../../../_virtual/positionFns.mjs";
2
+ import "./shims.mjs";
3
+ import "./domFns.mjs";
4
+ import { __exports as h } from "../../../../../../../../_virtual/shims.mjs";
5
+ import { __exports as X } from "../../../../../../../../_virtual/domFns.mjs";
6
+ Object.defineProperty(i, "__esModule", {
7
+ value: !0
8
+ });
9
+ i.canDragX = N;
10
+ i.canDragY = M;
11
+ i.createCoreData = w;
12
+ i.createDraggableData = P;
13
+ i.getBoundPosition = Y;
14
+ i.getControlPosition = _;
15
+ i.snapToGrid = D;
16
+ var r = h, f = X;
17
+ function Y(t, o, e) {
18
+ if (!t.props.bounds)
19
+ return [o, e];
20
+ let {
21
+ bounds: n
22
+ } = t.props;
23
+ n = typeof n == "string" ? n : y(n);
24
+ const s = d(t);
25
+ if (typeof n == "string") {
26
+ const {
27
+ ownerDocument: a
28
+ } = s, m = a.defaultView;
29
+ let u;
30
+ if (n === "parent" ? u = s.parentNode : u = a.querySelector(n), !(u instanceof m.HTMLElement))
31
+ throw new Error('Bounds selector "' + n + '" could not find an element.');
32
+ const c = u, p = m.getComputedStyle(s), l = m.getComputedStyle(c);
33
+ n = {
34
+ left: -s.offsetLeft + (0, r.int)(l.paddingLeft) + (0, r.int)(p.marginLeft),
35
+ top: -s.offsetTop + (0, r.int)(l.paddingTop) + (0, r.int)(p.marginTop),
36
+ right: (0, f.innerWidth)(c) - (0, f.outerWidth)(s) - s.offsetLeft + (0, r.int)(l.paddingRight) - (0, r.int)(p.marginRight),
37
+ bottom: (0, f.innerHeight)(c) - (0, f.outerHeight)(s) - s.offsetTop + (0, r.int)(l.paddingBottom) - (0, r.int)(p.marginBottom)
38
+ };
39
+ }
40
+ return (0, r.isNum)(n.right) && (o = Math.min(o, n.right)), (0, r.isNum)(n.bottom) && (e = Math.min(e, n.bottom)), (0, r.isNum)(n.left) && (o = Math.max(o, n.left)), (0, r.isNum)(n.top) && (e = Math.max(e, n.top)), [o, e];
41
+ }
42
+ function D(t, o, e) {
43
+ const n = Math.round(o / t[0]) * t[0], s = Math.round(e / t[1]) * t[1];
44
+ return [n, s];
45
+ }
46
+ function N(t) {
47
+ return t.props.axis === "both" || t.props.axis === "x";
48
+ }
49
+ function M(t) {
50
+ return t.props.axis === "both" || t.props.axis === "y";
51
+ }
52
+ function _(t, o, e) {
53
+ const n = typeof o == "number" ? (0, f.getTouch)(t, o) : null;
54
+ if (typeof o == "number" && !n)
55
+ return null;
56
+ const s = d(e), a = e.props.offsetParent || s.offsetParent || s.ownerDocument.body;
57
+ return (0, f.offsetXYFromParent)(n || t, a, e.props.scale);
58
+ }
59
+ function w(t, o, e) {
60
+ const n = !(0, r.isNum)(t.lastX), s = d(t);
61
+ return n ? {
62
+ node: s,
63
+ deltaX: 0,
64
+ deltaY: 0,
65
+ lastX: o,
66
+ lastY: e,
67
+ x: o,
68
+ y: e
69
+ } : {
70
+ node: s,
71
+ deltaX: o - t.lastX,
72
+ deltaY: e - t.lastY,
73
+ lastX: t.lastX,
74
+ lastY: t.lastY,
75
+ x: o,
76
+ y: e
77
+ };
78
+ }
79
+ function P(t, o) {
80
+ const e = t.props.scale;
81
+ return {
82
+ node: o.node,
83
+ x: t.state.x + o.deltaX / e,
84
+ y: t.state.y + o.deltaY / e,
85
+ deltaX: o.deltaX / e,
86
+ deltaY: o.deltaY / e,
87
+ lastX: t.state.x,
88
+ lastY: t.state.y
89
+ };
90
+ }
91
+ function y(t) {
92
+ return {
93
+ left: t.left,
94
+ top: t.top,
95
+ right: t.right,
96
+ bottom: t.bottom
97
+ };
98
+ }
99
+ function d(t) {
100
+ const o = t.findDOMNode();
101
+ if (!o)
102
+ throw new Error("<DraggableCore>: Unmounted during event!");
103
+ return o;
104
+ }
105
+ export {
106
+ i as default
107
+ };
@@ -0,0 +1,30 @@
1
+ import { __exports as e } from "../../../../../../../../_virtual/shims.mjs";
2
+ Object.defineProperty(e, "__esModule", {
3
+ value: !0
4
+ });
5
+ e.dontSetMe = f;
6
+ e.findInArray = r;
7
+ e.int = c;
8
+ e.isFunction = u;
9
+ e.isNum = s;
10
+ function r(t, o) {
11
+ for (let n = 0, i = t.length; n < i; n++)
12
+ if (o.apply(o, [t[n], n, t]))
13
+ return t[n];
14
+ }
15
+ function u(t) {
16
+ return typeof t == "function" || Object.prototype.toString.call(t) === "[object Function]";
17
+ }
18
+ function s(t) {
19
+ return typeof t == "number" && !isNaN(t);
20
+ }
21
+ function c(t) {
22
+ return parseInt(t, 10);
23
+ }
24
+ function f(t, o, n) {
25
+ if (t[o])
26
+ return new Error("Invalid prop ".concat(o, " passed to ").concat(n, " - do not set this, set it on the child."));
27
+ }
28
+ export {
29
+ e as default
30
+ };