@hi-ui/table 4.0.0-beta.2 → 4.0.0-beta.22

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 (181) hide show
  1. package/lib/cjs/BaseTable.js +6 -3
  2. package/lib/cjs/BaseTable.js.map +1 -1
  3. package/lib/cjs/Table.js +2 -2
  4. package/lib/cjs/Table.js.map +1 -1
  5. package/lib/cjs/TableBody.js +7 -4
  6. package/lib/cjs/TableBody.js.map +1 -1
  7. package/lib/cjs/TableCell.js +3 -2
  8. package/lib/cjs/TableCell.js.map +1 -1
  9. package/lib/cjs/TableEmbedRow.js +2 -1
  10. package/lib/cjs/TableEmbedRow.js.map +1 -1
  11. package/lib/cjs/TableHeader.js +3 -2
  12. package/lib/cjs/TableHeader.js.map +1 -1
  13. package/lib/cjs/TableSettingMenu.js +8 -7
  14. package/lib/cjs/TableSettingMenu.js.map +1 -1
  15. package/lib/cjs/hooks/use-col-width.js +5 -1
  16. package/lib/cjs/hooks/use-col-width.js.map +1 -1
  17. package/lib/cjs/styles/index.scss.js +1 -1
  18. package/lib/cjs/use-table.js +3 -1
  19. package/lib/cjs/use-table.js.map +1 -1
  20. package/lib/esm/BaseTable.js +6 -3
  21. package/lib/esm/BaseTable.js.map +1 -1
  22. package/lib/esm/Table.js +2 -2
  23. package/lib/esm/Table.js.map +1 -1
  24. package/lib/esm/TableBody.js +7 -4
  25. package/lib/esm/TableBody.js.map +1 -1
  26. package/lib/esm/TableCell.js +3 -2
  27. package/lib/esm/TableCell.js.map +1 -1
  28. package/lib/esm/TableEmbedRow.js +2 -1
  29. package/lib/esm/TableEmbedRow.js.map +1 -1
  30. package/lib/esm/TableHeader.js +3 -2
  31. package/lib/esm/TableHeader.js.map +1 -1
  32. package/lib/esm/TableSettingMenu.js +3 -2
  33. package/lib/esm/TableSettingMenu.js.map +1 -1
  34. package/lib/esm/hooks/use-col-width.js +5 -1
  35. package/lib/esm/hooks/use-col-width.js.map +1 -1
  36. package/lib/esm/styles/index.scss.js +1 -1
  37. package/lib/esm/use-table.js +3 -1
  38. package/lib/esm/use-table.js.map +1 -1
  39. package/lib/types/TableBody.d.ts +4 -0
  40. package/lib/types/types.d.ts +2 -1
  41. package/package.json +31 -28
  42. package/lib/cjs/hooks/use-drag-sorter/lib/esm/index.js +0 -287
  43. package/lib/cjs/hooks/use-drag-sorter/lib/esm/index.js.map +0 -1
  44. package/lib/cjs/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js +0 -29
  45. package/lib/cjs/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js.map +0 -1
  46. package/lib/cjs/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js +0 -27
  47. package/lib/cjs/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js.map +0 -1
  48. package/lib/cjs/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js +0 -29
  49. package/lib/cjs/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js.map +0 -1
  50. package/lib/cjs/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js +0 -29
  51. package/lib/cjs/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js.map +0 -1
  52. package/lib/cjs/utils/func-utils/lib/esm/index.js +0 -62
  53. package/lib/cjs/utils/func-utils/lib/esm/index.js.map +0 -1
  54. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js +0 -37
  55. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js.map +0 -1
  56. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Map.js +0 -37
  57. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Map.js.map +0 -1
  58. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js +0 -37
  59. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js.map +0 -1
  60. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Set.js +0 -37
  61. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Set.js.map +0 -1
  62. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js +0 -34
  63. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js.map +0 -1
  64. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js +0 -37
  65. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js.map +0 -1
  66. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js +0 -60
  67. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js.map +0 -1
  68. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js +0 -49
  69. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js.map +0 -1
  70. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js +0 -80
  71. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js.map +0 -1
  72. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js +0 -63
  73. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js.map +0 -1
  74. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js +0 -34
  75. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js.map +0 -1
  76. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js +0 -33
  77. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js.map +0 -1
  78. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js +0 -36
  79. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js.map +0 -1
  80. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js +0 -48
  81. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js.map +0 -1
  82. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js +0 -77
  83. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js.map +0 -1
  84. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js +0 -96
  85. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js.map +0 -1
  86. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js +0 -40
  87. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js.map +0 -1
  88. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js +0 -50
  89. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js.map +0 -1
  90. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js +0 -28
  91. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js.map +0 -1
  92. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js +0 -58
  93. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js.map +0 -1
  94. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js +0 -49
  95. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js.map +0 -1
  96. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_root.js +0 -39
  97. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_root.js.map +0 -1
  98. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js +0 -55
  99. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js.map +0 -1
  100. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js +0 -61
  101. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js.map +0 -1
  102. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js +0 -67
  103. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js.map +0 -1
  104. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js +0 -69
  105. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js.map +0 -1
  106. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObject.js +0 -72
  107. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObject.js.map +0 -1
  108. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js +0 -69
  109. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js.map +0 -1
  110. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js +0 -45
  111. package/lib/cjs/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js.map +0 -1
  112. package/lib/esm/hooks/use-drag-sorter/lib/esm/index.js +0 -264
  113. package/lib/esm/hooks/use-drag-sorter/lib/esm/index.js.map +0 -1
  114. package/lib/esm/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js +0 -24
  115. package/lib/esm/utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module.js.map +0 -1
  116. package/lib/esm/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js +0 -22
  117. package/lib/esm/utils/func-utils/lib/esm/_virtual/_commonjsHelpers.js.map +0 -1
  118. package/lib/esm/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js +0 -24
  119. package/lib/esm/utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module.js.map +0 -1
  120. package/lib/esm/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js +0 -24
  121. package/lib/esm/utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module.js.map +0 -1
  122. package/lib/esm/utils/func-utils/lib/esm/index.js +0 -45
  123. package/lib/esm/utils/func-utils/lib/esm/index.js.map +0 -1
  124. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js +0 -29
  125. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_DataView.js.map +0 -1
  126. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Map.js +0 -29
  127. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Map.js.map +0 -1
  128. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js +0 -29
  129. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Promise.js.map +0 -1
  130. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Set.js +0 -29
  131. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Set.js.map +0 -1
  132. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js +0 -27
  133. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js.map +0 -1
  134. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js +0 -29
  135. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_WeakMap.js.map +0 -1
  136. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js +0 -51
  137. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseGetTag.js.map +0 -1
  138. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js +0 -41
  139. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsArguments.js.map +0 -1
  140. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js +0 -70
  141. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_baseIsNative.js.map +0 -1
  142. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js +0 -59
  143. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_cloneBuffer.js.map +0 -1
  144. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js +0 -27
  145. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_coreJsData.js.map +0 -1
  146. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js +0 -30
  147. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_defineProperty.js.map +0 -1
  148. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js +0 -17
  149. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_freeGlobal.js.map +0 -1
  150. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js +0 -40
  151. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getNative.js.map +0 -1
  152. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js +0 -70
  153. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getRawTag.js.map +0 -1
  154. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js +0 -87
  155. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getTag.js.map +0 -1
  156. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js +0 -35
  157. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_getValue.js.map +0 -1
  158. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js +0 -43
  159. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_isMasked.js.map +0 -1
  160. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js +0 -25
  161. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nativeCreate.js.map +0 -1
  162. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js +0 -54
  163. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_nodeUtil.js.map +0 -1
  164. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js +0 -44
  165. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_objectToString.js.map +0 -1
  166. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_root.js +0 -21
  167. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_root.js.map +0 -1
  168. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js +0 -50
  169. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/_toSource.js.map +0 -1
  170. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js +0 -57
  171. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isArguments.js.map +0 -1
  172. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js +0 -62
  173. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isBuffer.js.map +0 -1
  174. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js +0 -61
  175. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isFunction.js.map +0 -1
  176. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObject.js +0 -55
  177. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObject.js.map +0 -1
  178. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js +0 -52
  179. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/isObjectLike.js.map +0 -1
  180. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js +0 -40
  181. package/lib/esm/utils/func-utils/lib/esm/node_modules/lodash/stubFalse.js.map +0 -1
@@ -1,264 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import _regeneratorRuntime from '@babel/runtime/regenerator';
11
- import { __awaiter } from 'tslib';
12
- import { useRef, useCallback, useState } from 'react';
13
- import { useLatestCallback, useLatestRef } from '@hi-ui/use-latest';
14
- import { isFunction } from '@hi-ui/type-assertion';
15
- /** @LICENSE
16
- * @hi-ui/use-drag-sorter
17
- * https://github.com/XiaoMi/hiui/tree/master/packages/hooks/use-drag-sorter#readme
18
- *
19
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
20
- *
21
- * This source code is licensed under the MIT license found in the
22
- * LICENSE file in the root directory of this source tree.
23
- */
24
-
25
- var useDrop = function useDrop(_ref) {
26
- var draggable = _ref.draggable,
27
- onDropEnd = _ref.onDropEnd,
28
- onSwapProp = _ref.onSwap,
29
- _ref$idFieldName = _ref.idFieldName,
30
- idFieldName = _ref$idFieldName === void 0 ? 'id' : _ref$idFieldName;
31
- var dragInfoRef = useRef(null);
32
- var onDropEndLatest = useLatestCallback(onDropEnd);
33
- var swapLatest = useLatestCallback(onSwapProp);
34
- var onSwap = useCallback(function (sourceId, targetId, dragDirection) {
35
- return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
36
- var info, dragItem, dropItem, result;
37
- return _regeneratorRuntime.wrap(function _callee$(_context) {
38
- while (1) {
39
- switch (_context.prev = _context.next) {
40
- case 0:
41
- if (draggable) {
42
- _context.next = 2;
43
- break;
44
- }
45
-
46
- return _context.abrupt("return");
47
-
48
- case 2:
49
- if (!(targetId === sourceId)) {
50
- _context.next = 4;
51
- break;
52
- }
53
-
54
- return _context.abrupt("return");
55
-
56
- case 4:
57
- if (dragInfoRef.current) {
58
- _context.next = 6;
59
- break;
60
- }
61
-
62
- return _context.abrupt("return");
63
-
64
- case 6:
65
- // TODO: 根据 id 查询数据原始数据或者直接使用引用值,两者选择,避免bug
66
- info = dragInfoRef.current;
67
- dragInfoRef.current = null;
68
- dragItem = info.dragItem, dropItem = info.dropItem;
69
-
70
- if (!(!dragItem || !dropItem)) {
71
- _context.next = 11;
72
- break;
73
- }
74
-
75
- return _context.abrupt("return");
76
-
77
- case 11:
78
- if (!(dragItem[idFieldName] !== sourceId || targetId !== dropItem[idFieldName])) {
79
- _context.next = 13;
80
- break;
81
- }
82
-
83
- return _context.abrupt("return");
84
-
85
- case 13:
86
- _context.next = 15;
87
- return swapLatest(dragItem, dropItem, dragDirection, info);
88
-
89
- case 15:
90
- result = _context.sent;
91
-
92
- if (result === true) {
93
- onDropEndLatest(dragItem, dropItem, dragDirection);
94
- }
95
-
96
- case 17:
97
- case "end":
98
- return _context.stop();
99
- }
100
- }
101
- }, _callee);
102
- }));
103
- }, [draggable, onDropEndLatest, idFieldName, swapLatest]);
104
- return {
105
- draggable: draggable,
106
- dragInfoRef: dragInfoRef,
107
- onSwap: onSwap
108
- };
109
- };
110
- /**
111
- * TODO: What is UseDrag
112
- */
113
-
114
-
115
- var useDrag = function useDrag(_ref2) {
116
- var draggable = _ref2.draggable,
117
- dragInfoRef = _ref2.dragInfoRef,
118
- onHover = _ref2.onHover,
119
- item = _ref2.item,
120
- index = _ref2.index,
121
- _ref2$idFieldName = _ref2.idFieldName,
122
- idFieldName = _ref2$idFieldName === void 0 ? 'id' : _ref2$idFieldName,
123
- _ref2$dataTransferKey = _ref2.dataTransferKey,
124
- dataTransferKey = _ref2$dataTransferKey === void 0 ? 'data' : _ref2$dataTransferKey,
125
- onDragStartProp = _ref2.onDragStart,
126
- onDragOverProp = _ref2.onDragOver,
127
- onDragLeaveProp = _ref2.onDragLeave,
128
- onDragEndProp = _ref2.onDragEnd,
129
- onDropProp = _ref2.onDrop,
130
- onSwapProp = _ref2.onSwap;
131
-
132
- var _useState = useState(false),
133
- dragging = _useState[0],
134
- setDragging = _useState[1];
135
-
136
- var _useState2 = useState(),
137
- dragDirection = _useState2[0],
138
- setDragDirection = _useState2[1];
139
-
140
- var onDragStartPropLatest = useLatestCallback(onDragStartProp);
141
- var itemLatestRef = useLatestRef(item);
142
- var onDragStart = useCallback(function (evt) {
143
- if (!draggable) return;
144
- evt.stopPropagation();
145
- var item = itemLatestRef.current;
146
- var clientY = evt.clientY;
147
- var dragId = item[idFieldName];
148
- dragInfoRef.current = {
149
- startClientY: clientY,
150
- dragId: dragId,
151
- dragItem: item,
152
- dragIndex: index
153
- };
154
- setDragging(true);
155
- evt.dataTransfer.setData(dataTransferKey, JSON.stringify({
156
- sourceId: dragId
157
- }));
158
- onDragStartPropLatest(evt, item);
159
- }, [draggable, onDragStartPropLatest, idFieldName, dataTransferKey, itemLatestRef, dragInfoRef, index]);
160
- var hoverLatestRef = useLatestRef(onHover);
161
- var onDragOverPropLatest = useLatestCallback(onDragOverProp);
162
- var onDragOver = useCallback(function (evt) {
163
- if (!draggable) return;
164
- evt.preventDefault();
165
- evt.stopPropagation();
166
- if (!dragInfoRef.current) return;
167
- var item = itemLatestRef.current;
168
- var _dragInfoRef$current = dragInfoRef.current,
169
- startClientY = _dragInfoRef$current.startClientY,
170
- dragId = _dragInfoRef$current.dragId;
171
- if (dragId === item[idFieldName]) return;
172
- var nextDirection;
173
-
174
- if (isFunction(hoverLatestRef.current)) {
175
- nextDirection = hoverLatestRef.current(evt, item, dragInfoRef.current);
176
- } else {
177
- var hoverClientY = evt.clientY;
178
- nextDirection = hoverClientY < startClientY ? UseDropNodeDirection.BEFORE : UseDropNodeDirection.AFTER;
179
- }
180
-
181
- setDragDirection(nextDirection);
182
- onDragOverPropLatest(evt, item);
183
- }, [draggable, onDragOverPropLatest, idFieldName, hoverLatestRef, dragInfoRef, itemLatestRef]);
184
- var onDragLeavePropLatest = useLatestCallback(onDragLeaveProp);
185
- var onDragLeave = useCallback(function (evt) {
186
- if (!draggable) return;
187
- evt.preventDefault();
188
- evt.stopPropagation();
189
- var item = itemLatestRef.current;
190
- setDragDirection(undefined);
191
- onDragLeavePropLatest(evt, item);
192
- }, [draggable, onDragLeavePropLatest, itemLatestRef]);
193
- var onDragEndPropLatest = useLatestCallback(onDragEndProp);
194
- var onDragEnd = useCallback(function (evt) {
195
- if (!draggable) return;
196
- evt.preventDefault();
197
- evt.stopPropagation();
198
- var item = itemLatestRef.current;
199
- evt.dataTransfer.clearData();
200
- dragInfoRef.current = null;
201
- setDragDirection(undefined);
202
- setDragging(false);
203
- onDragEndPropLatest(evt, item);
204
- }, [draggable, dragInfoRef, onDragEndPropLatest, itemLatestRef]);
205
- var onDropPropLatest = useLatestCallback(onDropProp);
206
- var onSwapPropLatest = useLatestCallback(onSwapProp); // 放置目标元素时触发事件
207
-
208
- var onDrop = useCallback(function (evt) {
209
- if (!draggable) return;
210
- if (!dragInfoRef.current) return;
211
- var item = itemLatestRef.current;
212
- var dragId = dragInfoRef.current.dragId;
213
- evt.preventDefault();
214
- evt.stopPropagation();
215
- setDragDirection(undefined); // dragInfoRef.current = null
216
-
217
- dragInfoRef.current.dropItem = item;
218
- dragInfoRef.current.dropIndex = index;
219
- var targetId = item[idFieldName];
220
- if (dragId === targetId) return;
221
-
222
- try {
223
- var _JSON$parse = JSON.parse(evt.dataTransfer.getData(dataTransferKey)),
224
- sourceId = _JSON$parse.sourceId;
225
-
226
- onSwapPropLatest(sourceId, targetId, dragDirection);
227
- } catch (error) {
228
- console.error(error);
229
- }
230
-
231
- onDropPropLatest(evt, item);
232
- }, [draggable, dragInfoRef, idFieldName, onDropPropLatest, dragDirection, dataTransferKey, onSwapPropLatest, itemLatestRef, index]);
233
- var getDragTriggerProps = useCallback(function () {
234
- return {
235
- draggable: draggable,
236
- 'data-dragging': dragging,
237
- onDragStart: onDragStart,
238
- onDragLeave: onDragLeave,
239
- onDragEnd: onDragEnd
240
- };
241
- }, [draggable, onDragStart, onDragLeave, onDragEnd, dragging]);
242
- var getDropTriggerProps = useCallback(function () {
243
- return {
244
- 'data-drop-direction': dragDirection,
245
- onDrop: onDrop,
246
- onDragOver: onDragOver
247
- };
248
- }, [onDrop, onDragOver, dragDirection]);
249
- return {
250
- dragging: dragging,
251
- direction: dragDirection,
252
- getDragTriggerProps: getDragTriggerProps,
253
- getDropTriggerProps: getDropTriggerProps
254
- };
255
- }; // 表示拖拽放置位置
256
-
257
-
258
- var UseDropNodeDirection = {
259
- BEFORE: 'before',
260
- INSIDE: 'inside',
261
- AFTER: 'after'
262
- };
263
- export { UseDropNodeDirection, useDrag, useDrop };
264
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../hooks/use-drag-sorter/lib/esm/index.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/use-drag-sorter\n * https://github.com/XiaoMi/hiui/tree/master/packages/hooks/use-drag-sorter#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _regeneratorRuntime from '@babel/runtime/regenerator';\nimport { __awaiter } from 'tslib';\nimport { useRef, useCallback, useState } from 'react';\nimport { useLatestCallback, useLatestRef } from '@hi-ui/use-latest';\nimport { isFunction } from '@hi-ui/type-assertion';\n\nvar useDrop = function useDrop(_ref) {\n var draggable = _ref.draggable,\n onDropEnd = _ref.onDropEnd,\n onSwapProp = _ref.onSwap,\n _ref$idFieldName = _ref.idFieldName,\n idFieldName = _ref$idFieldName === void 0 ? 'id' : _ref$idFieldName;\n var dragInfoRef = useRef(null);\n var onDropEndLatest = useLatestCallback(onDropEnd);\n var swapLatest = useLatestCallback(onSwapProp);\n var onSwap = useCallback(function (sourceId, targetId, dragDirection) {\n return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var info, dragItem, dropItem, result;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (draggable) {\n _context.next = 2;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 2:\n if (!(targetId === sourceId)) {\n _context.next = 4;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 4:\n if (dragInfoRef.current) {\n _context.next = 6;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 6:\n // TODO: 根据 id 查询数据原始数据或者直接使用引用值,两者选择,避免bug\n info = dragInfoRef.current;\n dragInfoRef.current = null;\n dragItem = info.dragItem, dropItem = info.dropItem;\n\n if (!(!dragItem || !dropItem)) {\n _context.next = 11;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 11:\n if (!(dragItem[idFieldName] !== sourceId || targetId !== dropItem[idFieldName])) {\n _context.next = 13;\n break;\n }\n\n return _context.abrupt(\"return\");\n\n case 13:\n _context.next = 15;\n return swapLatest(dragItem, dropItem, dragDirection, info);\n\n case 15:\n result = _context.sent;\n\n if (result === true) {\n onDropEndLatest(dragItem, dropItem, dragDirection);\n }\n\n case 17:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n }, [draggable, onDropEndLatest, idFieldName, swapLatest]);\n return {\n draggable: draggable,\n dragInfoRef: dragInfoRef,\n onSwap: onSwap\n };\n};\n/**\n * TODO: What is UseDrag\n */\n\n\nvar useDrag = function useDrag(_ref2) {\n var draggable = _ref2.draggable,\n dragInfoRef = _ref2.dragInfoRef,\n onHover = _ref2.onHover,\n item = _ref2.item,\n index = _ref2.index,\n _ref2$idFieldName = _ref2.idFieldName,\n idFieldName = _ref2$idFieldName === void 0 ? 'id' : _ref2$idFieldName,\n _ref2$dataTransferKey = _ref2.dataTransferKey,\n dataTransferKey = _ref2$dataTransferKey === void 0 ? 'data' : _ref2$dataTransferKey,\n onDragStartProp = _ref2.onDragStart,\n onDragOverProp = _ref2.onDragOver,\n onDragLeaveProp = _ref2.onDragLeave,\n onDragEndProp = _ref2.onDragEnd,\n onDropProp = _ref2.onDrop,\n onSwapProp = _ref2.onSwap;\n\n var _useState = useState(false),\n dragging = _useState[0],\n setDragging = _useState[1];\n\n var _useState2 = useState(),\n dragDirection = _useState2[0],\n setDragDirection = _useState2[1];\n\n var onDragStartPropLatest = useLatestCallback(onDragStartProp);\n var itemLatestRef = useLatestRef(item);\n var onDragStart = useCallback(function (evt) {\n if (!draggable) return;\n evt.stopPropagation();\n var item = itemLatestRef.current;\n var clientY = evt.clientY;\n var dragId = item[idFieldName];\n dragInfoRef.current = {\n startClientY: clientY,\n dragId: dragId,\n dragItem: item,\n dragIndex: index\n };\n setDragging(true);\n evt.dataTransfer.setData(dataTransferKey, JSON.stringify({\n sourceId: dragId\n }));\n onDragStartPropLatest(evt, item);\n }, [draggable, onDragStartPropLatest, idFieldName, dataTransferKey, itemLatestRef, dragInfoRef, index]);\n var hoverLatestRef = useLatestRef(onHover);\n var onDragOverPropLatest = useLatestCallback(onDragOverProp);\n var onDragOver = useCallback(function (evt) {\n if (!draggable) return;\n evt.preventDefault();\n evt.stopPropagation();\n if (!dragInfoRef.current) return;\n var item = itemLatestRef.current;\n var _dragInfoRef$current = dragInfoRef.current,\n startClientY = _dragInfoRef$current.startClientY,\n dragId = _dragInfoRef$current.dragId;\n if (dragId === item[idFieldName]) return;\n var nextDirection;\n\n if (isFunction(hoverLatestRef.current)) {\n nextDirection = hoverLatestRef.current(evt, item, dragInfoRef.current);\n } else {\n var hoverClientY = evt.clientY;\n nextDirection = hoverClientY < startClientY ? UseDropNodeDirection.BEFORE : UseDropNodeDirection.AFTER;\n }\n\n setDragDirection(nextDirection);\n onDragOverPropLatest(evt, item);\n }, [draggable, onDragOverPropLatest, idFieldName, hoverLatestRef, dragInfoRef, itemLatestRef]);\n var onDragLeavePropLatest = useLatestCallback(onDragLeaveProp);\n var onDragLeave = useCallback(function (evt) {\n if (!draggable) return;\n evt.preventDefault();\n evt.stopPropagation();\n var item = itemLatestRef.current;\n setDragDirection(undefined);\n onDragLeavePropLatest(evt, item);\n }, [draggable, onDragLeavePropLatest, itemLatestRef]);\n var onDragEndPropLatest = useLatestCallback(onDragEndProp);\n var onDragEnd = useCallback(function (evt) {\n if (!draggable) return;\n evt.preventDefault();\n evt.stopPropagation();\n var item = itemLatestRef.current;\n evt.dataTransfer.clearData();\n dragInfoRef.current = null;\n setDragDirection(undefined);\n setDragging(false);\n onDragEndPropLatest(evt, item);\n }, [draggable, dragInfoRef, onDragEndPropLatest, itemLatestRef]);\n var onDropPropLatest = useLatestCallback(onDropProp);\n var onSwapPropLatest = useLatestCallback(onSwapProp); // 放置目标元素时触发事件\n\n var onDrop = useCallback(function (evt) {\n if (!draggable) return;\n if (!dragInfoRef.current) return;\n var item = itemLatestRef.current;\n var dragId = dragInfoRef.current.dragId;\n evt.preventDefault();\n evt.stopPropagation();\n setDragDirection(undefined); // dragInfoRef.current = null\n\n dragInfoRef.current.dropItem = item;\n dragInfoRef.current.dropIndex = index;\n var targetId = item[idFieldName];\n if (dragId === targetId) return;\n\n try {\n var _JSON$parse = JSON.parse(evt.dataTransfer.getData(dataTransferKey)),\n sourceId = _JSON$parse.sourceId;\n\n onSwapPropLatest(sourceId, targetId, dragDirection);\n } catch (error) {\n console.error(error);\n }\n\n onDropPropLatest(evt, item);\n }, [draggable, dragInfoRef, idFieldName, onDropPropLatest, dragDirection, dataTransferKey, onSwapPropLatest, itemLatestRef, index]);\n var getDragTriggerProps = useCallback(function () {\n return {\n draggable: draggable,\n 'data-dragging': dragging,\n onDragStart: onDragStart,\n onDragLeave: onDragLeave,\n onDragEnd: onDragEnd\n };\n }, [draggable, onDragStart, onDragLeave, onDragEnd, dragging]);\n var getDropTriggerProps = useCallback(function () {\n return {\n 'data-drop-direction': dragDirection,\n onDrop: onDrop,\n onDragOver: onDragOver\n };\n }, [onDrop, onDragOver, dragDirection]);\n return {\n dragging: dragging,\n direction: dragDirection,\n getDragTriggerProps: getDragTriggerProps,\n getDropTriggerProps: getDropTriggerProps\n };\n}; // 表示拖拽放置位置\n\n\nvar UseDropNodeDirection = {\n BEFORE: 'before',\n INSIDE: 'inside',\n AFTER: 'after'\n};\nexport { UseDropNodeDirection, useDrag, useDrop };\n//# sourceMappingURL=index.js.map\n"],"names":["useDrop","_ref","draggable","onDropEnd","onSwapProp","onSwap","idFieldName","_ref$idFieldName","dragInfoRef","useRef","onDropEndLatest","useLatestCallback","swapLatest","useCallback","sourceId","targetId","dragDirection","current","info","dragItem","dropItem","result","useDrag","_ref2","onHover","item","index","_ref2$idFieldName","dataTransferKey","_ref2$dataTransferKey","onDragStartProp","onDragStart","onDragOverProp","onDragOver","onDragLeaveProp","onDragLeave","onDragEndProp","onDragEnd","onDropProp","onDrop","useState","dragging","_useState","setDragging","_useState2","setDragDirection","onDragStartPropLatest","itemLatestRef","useLatestRef","evt","clientY","dragId","startClientY","dragIndex","JSON","hoverLatestRef","onDragOverPropLatest","_dragInfoRef$current","nextDirection","isFunction","hoverClientY","UseDropNodeDirection","onDragLeavePropLatest","onDragEndPropLatest","onDropPropLatest","onSwapPropLatest","_JSON$parse","error","console","getDragTriggerProps","getDropTriggerProps","direction","BEFORE","INSIDE","AFTER"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;IAKaA,OAAO,GAAG,SAAVA,OAAU,CAAAC,IAAA,EAAA;MACrBC,SAAAA,GAAAA,IAAAA,CAAAA;MACAC,SAAAA,GAAAA,IAAAA,CAAAA;MACQC,UAAAA,GAAAA,IAAAA,CAARC;8BACAC;MAAAA,WAAAA,GAAAA,gBAAAA,KAAAA,KAAAA,CAAAA,GAAc,IAAdA,GAAcC;MAERC,WAAW,GAAGC,MAAM,CAAA,IAAA;MAEpBC,eAAe,GAAGC,iBAAiB,CAAAR,SAAA;MACnCS,UAAU,GAAGD,iBAAiB,CAAAP,UAAA;MAE9BC,MAAM,GAAGQ,WAAW,CACxB,UAAAC,QAAA,EAAAC,QAAA,EAAAC,aAAA,EAAA;;;;;;;kBACOd,WAAAA;;;;;;;;oBACDa,QAAQ,KAAKD,WAAAA;;;;;;;;kBACZN,WAAW,CAACS,SAAAA;;;;;;;;;AAGXC,cAAAA,IAAAA,GAAOV,WAAW,CAAlBU,OAAAA;AACNV,cAAAA,WAAW,CAAXA,OAAAA,GAAAA,IAAAA;AACQW,cAAAA,QAAAA,GAAuBD,IAAAA,CAAvBC,QAAAA,EAAUC,QAAAA,GAAaF,IAAAA,CAAvBC,QAAAA;;oBAEJ,CAAAA,QAAA,IAAa,CAACC,WAAAA;;;;;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,KAAK,EAAE;AAH2B;"}
@@ -1,24 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- /** @LICENSE
12
- * @hi-ui/func-utils
13
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
14
- *
15
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
- var _cloneBuffer = {
21
- exports: {}
22
- };
23
- export { _cloneBuffer as _ };
24
- //# sourceMappingURL=_cloneBuffer.js_commonjs-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_cloneBuffer.js_commonjs-module.js","sources":["../../../../../../../../../utils/func-utils/lib/esm/_virtual/_cloneBuffer.js_commonjs-module"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar _cloneBuffer = {\n exports: {}\n};\nexport { _cloneBuffer as _ };\n//# sourceMappingURL=_cloneBuffer.js_commonjs-module.map\n"],"names":["_cloneBuffer","exports"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAACA,YAAY,GAAG;AACjBC,EAAAA,OAAO,EAAE;AADQ,CAAhB;"}
@@ -1,22 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- /** @LICENSE
12
- * @hi-ui/func-utils
13
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
14
- *
15
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
21
- export { commonjsGlobal };
22
- //# sourceMappingURL=_commonjsHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -1,24 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- /** @LICENSE
12
- * @hi-ui/func-utils
13
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
14
- *
15
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
- var _nodeUtil = {
21
- exports: {}
22
- };
23
- export { _nodeUtil as _ };
24
- //# sourceMappingURL=_nodeUtil.js_commonjs-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_nodeUtil.js_commonjs-module.js","sources":["../../../../../../../../../utils/func-utils/lib/esm/_virtual/_nodeUtil.js_commonjs-module"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar _nodeUtil = {\n exports: {}\n};\nexport { _nodeUtil as _ };\n//# sourceMappingURL=_nodeUtil.js_commonjs-module.map\n"],"names":["_nodeUtil","exports"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAACA,SAAS,GAAG;AACdC,EAAAA,OAAO,EAAE;AADK,CAAb;"}
@@ -1,24 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- /** @LICENSE
12
- * @hi-ui/func-utils
13
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
14
- *
15
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
- var isBuffer = {
21
- exports: {}
22
- };
23
- export { isBuffer as i };
24
- //# sourceMappingURL=isBuffer.js_commonjs-module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isBuffer.js_commonjs-module.js","sources":["../../../../../../../../../utils/func-utils/lib/esm/_virtual/isBuffer.js_commonjs-module"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nvar isBuffer = {\n exports: {}\n};\nexport { isBuffer as i };\n//# sourceMappingURL=isBuffer.js_commonjs-module.map\n"],"names":["isBuffer","exports"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAACA,QAAQ,GAAG;AACbC,EAAAA,OAAO,EAAE;AADI,CAAZ;"}
@@ -1,45 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import './node_modules/lodash/_Map.js';
11
- import './node_modules/lodash/_nativeCreate.js';
12
- import '@babel/runtime/helpers/esm/typeof';
13
- import './node_modules/lodash/_defineProperty.js';
14
- import './node_modules/lodash/isArguments.js';
15
- import './node_modules/lodash/isBuffer.js';
16
- import './node_modules/lodash/_root.js';
17
- import './node_modules/lodash/_nodeUtil.js';
18
- import './node_modules/lodash/_cloneBuffer.js';
19
- import './node_modules/lodash/_getTag.js';
20
- import { isFunction } from '@hi-ui/type-assertion';
21
- /** @LICENSE
22
- * @hi-ui/func-utils
23
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
24
- *
25
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */
30
-
31
- /**
32
- * 如果值是函数,则执行使用返回值,
33
- * 否则直接使用值
34
- */
35
-
36
- var runIfFunc = function runIfFunc(valueOrFn) {
37
- for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
38
- args[_key3 - 1] = arguments[_key3];
39
- }
40
-
41
- return isFunction(valueOrFn) ? valueOrFn.apply(null, args) : valueOrFn;
42
- };
43
-
44
- export { runIfFunc };
45
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../../../../../utils/func-utils/lib/esm/index.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport clone_1 from './node_modules/lodash/clone.js';\nimport { isNullish, isArray, isObjectLike, isFunction } from '@hi-ui/type-assertion';\n\nvar noop = function noop() {};\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar hasOwnProp = function hasOwnProp(obj, key) {\n return hasOwnProperty.call(obj, key);\n};\n\nvar callAllFuncs = function callAllFuncs() {\n for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {\n funcs[_key] = arguments[_key];\n }\n\n return function mergedFunc() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n funcs.forEach(function (func) {\n func && func.apply(void 0, args);\n });\n };\n};\n\nvar toArray = function toArray(arg) {\n if (isNullish(arg)) return [];\n return isArray(arg) ? arg : [arg];\n};\n/**\n * Get value by deep key in nested object\n *\n * @refs https://github.com/Flcwl/unext/blob/master/src/get.ts\n * @example\n *\n * get({ a: { b: 3 } }, ['a', 'b']) // 3\n */\n\n\nvar getNested = function getNested(obj, paths) {\n paths = toArray(paths);\n var props = paths.map(function (p) {\n return p + '';\n }).filter(function (p) {\n return p !== '';\n });\n var target = obj;\n var i = 0;\n var len = props.length;\n\n for (; i < len; ++i) {\n if (isNullish(target)) {\n break;\n }\n\n target = target[props[i]];\n }\n\n return i === len ? target : undefined;\n};\n/**\n * Set value to deep key in nested object\n *\n * @example\n *\n * setNested({ a: { b: 2 } }, ['a', 'b'], 4) // { a: { b: 4 } }\n */\n\n\nvar setNested = function setNested(obj, paths, value) {\n paths = toArray(paths); // just support array\n\n var props = [];\n paths.forEach(function (p) {\n if (Number.isSafeInteger(p)) {\n props.push(p);\n } else {\n p = p + '';\n\n if (p !== '') {\n props.push(p);\n }\n }\n });\n var lastIndex = props.length - 1;\n var i = 0;\n var key;\n var objValue; // using clone keep pure\n\n obj = clone_1(obj);\n var target = obj;\n\n while (i < lastIndex) {\n key = props[i++];\n objValue = target[key];\n\n if (isObjectLike(objValue)) {\n target[key] = clone_1(objValue);\n } else {\n // using array when path's type is number\n target[key] = typeof props[i] === 'number' ? [] : {};\n }\n\n target = target[key];\n }\n\n target[props[i]] = value;\n return obj;\n};\n/**\n * 如果值是函数,则执行使用返回值,\n * 否则直接使用值\n */\n\n\nvar runIfFunc = function runIfFunc(valueOrFn) {\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n\n return isFunction(valueOrFn) ? valueOrFn.apply(null, args) : valueOrFn;\n};\n\nexport { callAllFuncs, getNested, hasOwnProp, noop, runIfFunc, setNested, toArray };\n//# sourceMappingURL=index.js.map\n"],"names":["runIfFunc","valueOrFn","args","isFunction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA;;;;;IAIaA,SAAS,GAAG,SAAZA,SAAY,CAAAC,SAAA,EAAA;qCAAkDC,IAAAA,GAAAA,IAAAA,KAAAA,CAAAA,KAAAA,GAAAA,CAAAA,GAAAA,KAAAA,GAAAA,CAAAA,GAAAA,CAAAA,GAAAA,KAAAA,GAAAA,GAAAA,KAAAA,GAAAA,OAAAA,KAAAA,IAAAA;AAAAA,IAAAA,IAAAA,CAAAA,KAAAA,GAAAA,CAAAA,CAAAA,GAAAA,SAAAA,CAAAA,KAAAA,CAAAA;;;SAClEC,UAAU,CAAVA,SAAU,CAAVA,GAAwBF,SAAS,CAATA,KAAAA,CAAAA,IAAAA,EAAxBE,IAAwBF,CAAxBE,GAAsDF;;;"}
@@ -1,29 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import _getNative from './_getNative.js';
11
- import _root from './_root.js';
12
- /** @LICENSE
13
- * @hi-ui/func-utils
14
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
15
- *
16
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- var getNative = _getNative,
23
- root = _root;
24
- /* Built-in method references that are verified to be native. */
25
-
26
- var DataView = getNative(root, 'DataView');
27
- var _DataView = DataView;
28
- export default _DataView;
29
- //# sourceMappingURL=_DataView.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_DataView.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_DataView.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar DataView = getNative(root, 'DataView');\nvar _DataView = DataView;\nexport default _DataView;\n//# sourceMappingURL=_DataView.js.map\n"],"names":["getNative","_getNative","root","_root","DataView","_DataView"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,IAAIA,SAAS,GAAGC,UAAhB;AAAA,IACIC,IAAI,GAAGC,KADX;AAEA;;AAEA,IAAIC,QAAQ,GAAGJ,SAAS,CAACE,IAAD,EAAO,UAAP,CAAxB;AACG,IAACG,SAAS,GAAGD,QAAb;"}
@@ -1,29 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import _getNative from './_getNative.js';
11
- import _root from './_root.js';
12
- /** @LICENSE
13
- * @hi-ui/func-utils
14
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
15
- *
16
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- var getNative = _getNative,
23
- root = _root;
24
- /* Built-in method references that are verified to be native. */
25
-
26
- var Map = getNative(root, 'Map');
27
- var _Map = Map;
28
- export default _Map;
29
- //# sourceMappingURL=_Map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_Map.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Map.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar Map = getNative(root, 'Map');\nvar _Map = Map;\nexport default _Map;\n//# sourceMappingURL=_Map.js.map\n"],"names":["getNative","_getNative","root","_root","Map","_Map"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,IAAIA,SAAS,GAAGC,UAAhB;AAAA,IACIC,IAAI,GAAGC,KADX;AAEA;;AAEA,IAAIC,GAAG,GAAGJ,SAAS,CAACE,IAAD,EAAO,KAAP,CAAnB;AACG,IAACG,IAAI,GAAGD,GAAR;"}
@@ -1,29 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import _getNative from './_getNative.js';
11
- import _root from './_root.js';
12
- /** @LICENSE
13
- * @hi-ui/func-utils
14
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
15
- *
16
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- var getNative = _getNative,
23
- root = _root;
24
- /* Built-in method references that are verified to be native. */
25
-
26
- var Promise$1 = getNative(root, 'Promise');
27
- var _Promise = Promise$1;
28
- export default _Promise;
29
- //# sourceMappingURL=_Promise.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_Promise.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Promise.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar Promise$1 = getNative(root, 'Promise');\nvar _Promise = Promise$1;\nexport default _Promise;\n//# sourceMappingURL=_Promise.js.map\n"],"names":["getNative","_getNative","root","_root","Promise$1","_Promise"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,IAAIA,SAAS,GAAGC,UAAhB;AAAA,IACIC,IAAI,GAAGC,KADX;AAEA;;AAEA,IAAIC,SAAS,GAAGJ,SAAS,CAACE,IAAD,EAAO,SAAP,CAAzB;AACG,IAACG,QAAQ,GAAGD,SAAZ;"}
@@ -1,29 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import _getNative from './_getNative.js';
11
- import _root from './_root.js';
12
- /** @LICENSE
13
- * @hi-ui/func-utils
14
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
15
- *
16
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- var getNative = _getNative,
23
- root = _root;
24
- /* Built-in method references that are verified to be native. */
25
-
26
- var Set = getNative(root, 'Set');
27
- var _Set = Set;
28
- export default _Set;
29
- //# sourceMappingURL=_Set.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_Set.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Set.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _getNative from './_getNative.js';\nimport _root from './_root.js';\nvar getNative = _getNative,\n root = _root;\n/* Built-in method references that are verified to be native. */\n\nvar Set = getNative(root, 'Set');\nvar _Set = Set;\nexport default _Set;\n//# sourceMappingURL=_Set.js.map\n"],"names":["getNative","_getNative","root","_root","Set","_Set"],"mappings":";;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,IAAIA,SAAS,GAAGC,UAAhB;AAAA,IACIC,IAAI,GAAGC,KADX;AAEA;;AAEA,IAAIC,GAAG,GAAGJ,SAAS,CAACE,IAAD,EAAO,KAAP,CAAnB;AACG,IAACG,IAAI,GAAGD,GAAR;"}
@@ -1,27 +0,0 @@
1
- /** @LICENSE
2
- * @hi-ui/table
3
- * https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
4
- *
5
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
- import _root from './_root.js';
11
- /** @LICENSE
12
- * @hi-ui/func-utils
13
- * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme
14
- *
15
- * Copyright (c) HIUI <mi-hiui@xiaomi.com>.
16
- *
17
- * This source code is licensed under the MIT license found in the
18
- * LICENSE file in the root directory of this source tree.
19
- */
20
-
21
- var root = _root;
22
- /** Built-in value references. */
23
-
24
- var _Symbol2 = root.Symbol;
25
- var _Symbol = _Symbol2;
26
- export default _Symbol;
27
- //# sourceMappingURL=_Symbol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_Symbol.js","sources":["../../../../../../../../../../utils/func-utils/lib/esm/node_modules/lodash/_Symbol.js"],"sourcesContent":["/** @LICENSE\n * @hi-ui/func-utils\n * https://github.com/XiaoMi/hiui/tree/master/packages/utils/func-utils#readme\n *\n * Copyright (c) HIUI <mi-hiui@xiaomi.com>.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\nimport _root from './_root.js';\nvar root = _root;\n/** Built-in value references. */\n\nvar _Symbol2 = root.Symbol;\nvar _Symbol = _Symbol2;\nexport default _Symbol;\n//# sourceMappingURL=_Symbol.js.map\n"],"names":["root","_root","_Symbol2","Symbol","_Symbol"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,IAAIA,IAAI,GAAGC,KAAX;AACA;;AAEA,IAAIC,QAAQ,GAAGF,IAAI,CAACG,MAApB;AACG,IAACC,OAAO,GAAGF,QAAX;"}