@hi-ui/table 4.3.1 → 4.3.2
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.
- package/CHANGELOG.md +40 -0
- package/lib/cjs/BaseTable.js +136 -189
- package/lib/cjs/ColGroupContent.js +5 -28
- package/lib/cjs/SettingDrawer.js +76 -127
- package/lib/cjs/Table.js +107 -171
- package/lib/cjs/TableAdvancedFilter.js +49 -85
- package/lib/cjs/TableBody.js +33 -69
- package/lib/cjs/TableCell.js +56 -102
- package/lib/cjs/TableColumnMenu.js +39 -77
- package/lib/cjs/TableEmbedRow.js +11 -38
- package/lib/cjs/TableHeader.js +8 -33
- package/lib/cjs/TableRow.js +48 -88
- package/lib/cjs/TableSettingMenu.js +48 -94
- package/lib/cjs/TbodyContent.js +28 -56
- package/lib/cjs/TheadContent.js +20 -49
- package/lib/cjs/_virtual/index.js +0 -3
- package/lib/cjs/_virtual/index2.js +0 -3
- package/lib/cjs/_virtual/react-is.development.js +0 -3
- package/lib/cjs/_virtual/react-is.production.min.js +0 -3
- package/lib/cjs/context.js +0 -9
- package/lib/cjs/hooks/use-async-switch.js +13 -51
- package/lib/cjs/hooks/use-check.js +47 -77
- package/lib/cjs/hooks/use-col-hidden.js +16 -28
- package/lib/cjs/hooks/use-col-set.js +5 -18
- package/lib/cjs/hooks/use-col-sorter.js +18 -32
- package/lib/cjs/hooks/use-col-width.js +21 -57
- package/lib/cjs/hooks/use-colgroup.js +63 -85
- package/lib/cjs/hooks/use-drag.js +10 -31
- package/lib/cjs/hooks/use-embed-expand.js +23 -68
- package/lib/cjs/hooks/use-expand.js +32 -64
- package/lib/cjs/hooks/use-pagination.js +19 -50
- package/lib/cjs/hooks/use-queue.js +2 -14
- package/lib/cjs/icons/index.js +4 -21
- package/lib/cjs/index.js +0 -4
- package/lib/cjs/node_modules/classnames/index.js +2 -11
- package/lib/cjs/node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js +31 -227
- package/lib/cjs/node_modules/rc-resize-observer/es/index.js +10 -68
- package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/Children/toArray.js +1 -17
- package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/Dom/findDOMNode.js +1 -14
- package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/ref.js +1 -25
- package/lib/cjs/node_modules/rc-resize-observer/node_modules/rc-util/es/warning.js +1 -5
- package/lib/cjs/node_modules/rc-util/es/Dom/canUseDom.js +0 -2
- package/lib/cjs/node_modules/rc-util/es/Dom/findDOMNode.js +1 -14
- package/lib/cjs/node_modules/rc-util/es/hooks/useLayoutEffect.js +2 -9
- package/lib/cjs/node_modules/rc-util/es/raf.js +0 -11
- package/lib/cjs/node_modules/rc-virtual-list/es/Filler.js +6 -25
- package/lib/cjs/node_modules/rc-virtual-list/es/Item.js +3 -14
- package/lib/cjs/node_modules/rc-virtual-list/es/List.js +103 -194
- package/lib/cjs/node_modules/rc-virtual-list/es/ScrollBar.js +16 -96
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useChildren.js +2 -11
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useDiffItem.js +8 -34
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useFrameWheel.js +0 -10
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useHeights.js +6 -39
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js +0 -16
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +4 -9
- package/lib/cjs/node_modules/rc-virtual-list/es/hooks/useScrollTo.js +3 -28
- package/lib/cjs/node_modules/rc-virtual-list/es/index.js +0 -2
- package/lib/cjs/node_modules/rc-virtual-list/es/utils/CacheMap.js +2 -9
- package/lib/cjs/node_modules/rc-virtual-list/es/utils/algorithmUtil.js +0 -15
- package/lib/cjs/node_modules/rc-virtual-list/es/utils/isFirefox.js +0 -2
- package/lib/cjs/node_modules/react-is/cjs/react-is.development.js +3 -29
- package/lib/cjs/node_modules/react-is/cjs/react-is.production.min.js +19 -45
- package/lib/cjs/node_modules/react-is/index.js +0 -5
- package/lib/cjs/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +83 -248
- package/lib/cjs/packages/hooks/use-merge-refs/lib/esm/index.js +3 -14
- package/lib/cjs/packages/ui/scrollbar/lib/esm/Scrollbar.js +48 -86
- package/lib/cjs/packages/ui/scrollbar/lib/esm/styles/index.scss.js +1 -15
- package/lib/cjs/packages/ui/scrollbar/lib/esm/utils/index.js +0 -13
- package/lib/cjs/styles/index.scss.js +1 -4
- package/lib/cjs/use-table.js +268 -355
- package/lib/cjs/utils/index.js +11 -45
- package/lib/esm/BaseTable.js +117 -138
- package/lib/esm/ColGroupContent.js +3 -9
- package/lib/esm/SettingDrawer.js +64 -83
- package/lib/esm/Table.js +97 -124
- package/lib/esm/TableAdvancedFilter.js +37 -47
- package/lib/esm/TableBody.js +24 -34
- package/lib/esm/TableCell.js +48 -72
- package/lib/esm/TableColumnMenu.js +24 -38
- package/lib/esm/TableEmbedRow.js +8 -15
- package/lib/esm/TableHeader.js +5 -11
- package/lib/esm/TableRow.js +36 -51
- package/lib/esm/TableSettingMenu.js +33 -49
- package/lib/esm/TbodyContent.js +20 -27
- package/lib/esm/TheadContent.js +14 -21
- package/lib/esm/context.js +0 -4
- package/lib/esm/hooks/use-async-switch.js +9 -28
- package/lib/esm/hooks/use-check.js +42 -55
- package/lib/esm/hooks/use-col-hidden.js +16 -21
- package/lib/esm/hooks/use-col-set.js +5 -13
- package/lib/esm/hooks/use-col-sorter.js +18 -23
- package/lib/esm/hooks/use-col-width.js +14 -34
- package/lib/esm/hooks/use-colgroup.js +60 -66
- package/lib/esm/hooks/use-drag.js +9 -13
- package/lib/esm/hooks/use-embed-expand.js +20 -42
- package/lib/esm/hooks/use-expand.js +32 -56
- package/lib/esm/hooks/use-pagination.js +13 -25
- package/lib/esm/hooks/use-queue.js +2 -10
- package/lib/esm/node_modules/classnames/index.js +2 -9
- package/lib/esm/node_modules/perfect-scrollbar/dist/perfect-scrollbar.esm.js +31 -228
- package/lib/esm/node_modules/rc-resize-observer/es/index.js +3 -26
- package/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/Children/toArray.js +0 -3
- package/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/Dom/findDOMNode.js +1 -2
- package/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/ref.js +0 -8
- package/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/warning.js +0 -5
- package/lib/esm/node_modules/rc-util/es/Dom/canUseDom.js +0 -1
- package/lib/esm/node_modules/rc-util/es/Dom/findDOMNode.js +1 -2
- package/lib/esm/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -0
- package/lib/esm/node_modules/rc-util/es/raf.js +0 -10
- package/lib/esm/node_modules/rc-virtual-list/es/Filler.js +4 -15
- package/lib/esm/node_modules/rc-virtual-list/es/Item.js +1 -3
- package/lib/esm/node_modules/rc-virtual-list/es/List.js +101 -174
- package/lib/esm/node_modules/rc-virtual-list/es/ScrollBar.js +14 -86
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useChildren.js +0 -2
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useDiffItem.js +6 -25
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useFrameWheel.js +0 -6
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useHeights.js +4 -28
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js +0 -13
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +4 -8
- package/lib/esm/node_modules/rc-virtual-list/es/hooks/useScrollTo.js +1 -19
- package/lib/esm/node_modules/rc-virtual-list/es/index.js +1 -1
- package/lib/esm/node_modules/rc-virtual-list/es/utils/CacheMap.js +2 -8
- package/lib/esm/node_modules/rc-virtual-list/es/utils/algorithmUtil.js +1 -12
- package/lib/esm/node_modules/rc-virtual-list/es/utils/isFirefox.js +0 -1
- package/lib/esm/node_modules/react-is/cjs/react-is.development.js +4 -27
- package/lib/esm/node_modules/react-is/cjs/react-is.production.min.js +20 -44
- package/lib/esm/node_modules/react-is/index.js +0 -1
- package/lib/esm/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +82 -248
- package/lib/esm/packages/hooks/use-merge-refs/lib/esm/index.js +3 -9
- package/lib/esm/packages/ui/scrollbar/lib/esm/Scrollbar.js +47 -64
- package/lib/esm/packages/ui/scrollbar/lib/esm/styles/index.scss.js +1 -3
- package/lib/esm/packages/ui/scrollbar/lib/esm/utils/index.js +0 -10
- package/lib/esm/styles/index.scss.js +1 -3
- package/lib/esm/use-table.js +261 -318
- package/lib/esm/utils/index.js +11 -41
- package/lib/types/BaseTable.d.ts +2 -2
- package/package.json +33 -33
|
@@ -8,12 +8,10 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
import { useRef } from 'react';
|
|
11
|
-
|
|
12
11
|
var useOriginScroll = function useOriginScroll(isScrollAtTop, isScrollAtBottom) {
|
|
13
12
|
// Do lock for a wheel when scrolling
|
|
14
13
|
var lockRef = useRef(false);
|
|
15
14
|
var lockTimeoutRef = useRef(null);
|
|
16
|
-
|
|
17
15
|
function lockScroll() {
|
|
18
16
|
clearTimeout(lockTimeoutRef.current);
|
|
19
17
|
lockRef.current = true;
|
|
@@ -22,7 +20,6 @@ var useOriginScroll = function useOriginScroll(isScrollAtTop, isScrollAtBottom)
|
|
|
22
20
|
}, 50);
|
|
23
21
|
} // Pass to ref since global add is in closure
|
|
24
22
|
|
|
25
|
-
|
|
26
23
|
var scrollPingRef = useRef({
|
|
27
24
|
top: isScrollAtTop,
|
|
28
25
|
bottom: isScrollAtBottom
|
|
@@ -31,10 +28,11 @@ var useOriginScroll = function useOriginScroll(isScrollAtTop, isScrollAtBottom)
|
|
|
31
28
|
scrollPingRef.current.bottom = isScrollAtBottom;
|
|
32
29
|
return function (deltaY) {
|
|
33
30
|
var smoothOffset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
34
|
-
var originScroll =
|
|
35
|
-
|
|
31
|
+
var originScroll =
|
|
32
|
+
// Pass origin wheel when on the top
|
|
33
|
+
deltaY < 0 && scrollPingRef.current.top ||
|
|
34
|
+
// Pass origin wheel when on the bottom
|
|
36
35
|
deltaY > 0 && scrollPingRef.current.bottom;
|
|
37
|
-
|
|
38
36
|
if (smoothOffset && originScroll) {
|
|
39
37
|
// No need lock anymore when it's smooth offset from touchMove interval
|
|
40
38
|
clearTimeout(lockTimeoutRef.current);
|
|
@@ -42,9 +40,7 @@ var useOriginScroll = function useOriginScroll(isScrollAtTop, isScrollAtBottom)
|
|
|
42
40
|
} else if (!originScroll || lockRef.current) {
|
|
43
41
|
lockScroll();
|
|
44
42
|
}
|
|
45
|
-
|
|
46
43
|
return !lockRef.current && originScroll;
|
|
47
44
|
};
|
|
48
45
|
};
|
|
49
|
-
|
|
50
46
|
export { useOriginScroll as default };
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import * as React from 'react';
|
|
11
11
|
import wrapperRaf from '../../../rc-util/es/raf.js';
|
|
12
|
-
|
|
13
12
|
function _typeof(obj) {
|
|
14
13
|
"@babel/helpers - typeof";
|
|
15
14
|
|
|
@@ -19,7 +18,6 @@ function _typeof(obj) {
|
|
|
19
18
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
20
19
|
}, _typeof(obj);
|
|
21
20
|
}
|
|
22
|
-
|
|
23
21
|
function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHeight, syncScrollTop, triggerFlash) {
|
|
24
22
|
var scrollRef = React.useRef();
|
|
25
23
|
return function (arg) {
|
|
@@ -29,15 +27,12 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
29
27
|
return;
|
|
30
28
|
} // Normal scroll logic
|
|
31
29
|
|
|
32
|
-
|
|
33
30
|
wrapperRaf.cancel(scrollRef.current);
|
|
34
|
-
|
|
35
31
|
if (typeof arg === 'number') {
|
|
36
32
|
syncScrollTop(arg);
|
|
37
33
|
} else if (arg && _typeof(arg) === 'object') {
|
|
38
34
|
var index;
|
|
39
35
|
var align = arg.align;
|
|
40
|
-
|
|
41
36
|
if ('index' in arg) {
|
|
42
37
|
index = arg.index;
|
|
43
38
|
} else {
|
|
@@ -45,9 +40,8 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
45
40
|
return getKey(item) === arg.key;
|
|
46
41
|
});
|
|
47
42
|
}
|
|
48
|
-
|
|
49
43
|
var _arg$offset = arg.offset,
|
|
50
|
-
|
|
44
|
+
offset = _arg$offset === void 0 ? 0 : _arg$offset; // We will retry 3 times in case dynamic height shaking
|
|
51
45
|
|
|
52
46
|
var syncScroll = function syncScroll(times, targetAlign) {
|
|
53
47
|
if (times < 0 || !containerRef.current) return;
|
|
@@ -62,36 +56,29 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
62
56
|
var itemTop = 0;
|
|
63
57
|
var itemBottom = 0;
|
|
64
58
|
var maxLen = Math.min(data.length, index);
|
|
65
|
-
|
|
66
59
|
for (var i = 0; i <= maxLen; i += 1) {
|
|
67
60
|
var key = getKey(data[i]);
|
|
68
61
|
itemTop = stackTop;
|
|
69
62
|
var cacheHeight = heights.get(key);
|
|
70
63
|
itemBottom = itemTop + (cacheHeight === undefined ? itemHeight : cacheHeight);
|
|
71
64
|
stackTop = itemBottom;
|
|
72
|
-
|
|
73
65
|
if (i === index && cacheHeight === undefined) {
|
|
74
66
|
needCollectHeight = true;
|
|
75
67
|
}
|
|
76
68
|
} // Scroll to
|
|
77
69
|
|
|
78
|
-
|
|
79
70
|
var targetTop = null;
|
|
80
|
-
|
|
81
71
|
switch (mergedAlign) {
|
|
82
72
|
case 'top':
|
|
83
73
|
targetTop = itemTop - offset;
|
|
84
74
|
break;
|
|
85
|
-
|
|
86
75
|
case 'bottom':
|
|
87
76
|
targetTop = itemBottom - height + offset;
|
|
88
77
|
break;
|
|
89
|
-
|
|
90
78
|
default:
|
|
91
79
|
{
|
|
92
80
|
var scrollTop = containerRef.current.scrollTop;
|
|
93
81
|
var scrollBottom = scrollTop + height;
|
|
94
|
-
|
|
95
82
|
if (itemTop < scrollTop) {
|
|
96
83
|
newTargetAlign = 'top';
|
|
97
84
|
} else if (itemBottom > scrollBottom) {
|
|
@@ -99,25 +86,20 @@ function useScrollTo(containerRef, data, heights, itemHeight, getKey, collectHei
|
|
|
99
86
|
}
|
|
100
87
|
}
|
|
101
88
|
}
|
|
102
|
-
|
|
103
89
|
if (targetTop !== null && targetTop !== containerRef.current.scrollTop) {
|
|
104
90
|
syncScrollTop(targetTop);
|
|
105
91
|
}
|
|
106
92
|
} // We will retry since element may not sync height as it described
|
|
107
93
|
|
|
108
|
-
|
|
109
94
|
scrollRef.current = wrapperRaf(function () {
|
|
110
95
|
if (needCollectHeight) {
|
|
111
96
|
collectHeight();
|
|
112
97
|
}
|
|
113
|
-
|
|
114
98
|
syncScroll(times - 1, newTargetAlign);
|
|
115
99
|
});
|
|
116
100
|
};
|
|
117
|
-
|
|
118
101
|
syncScroll(3);
|
|
119
102
|
}
|
|
120
103
|
};
|
|
121
104
|
}
|
|
122
|
-
|
|
123
105
|
export { useScrollTo as default };
|
|
@@ -12,7 +12,6 @@ function _classCallCheck(instance, Constructor) {
|
|
|
12
12
|
throw new TypeError("Cannot call a class as a function");
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
|
|
16
15
|
function _defineProperties(target, props) {
|
|
17
16
|
for (var i = 0; i < props.length; i++) {
|
|
18
17
|
var descriptor = props[i];
|
|
@@ -22,7 +21,6 @@ function _defineProperties(target, props) {
|
|
|
22
21
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
27
25
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
28
26
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
@@ -30,17 +28,15 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
30
28
|
writable: false
|
|
31
29
|
});
|
|
32
30
|
return Constructor;
|
|
33
|
-
}
|
|
34
|
-
|
|
31
|
+
}
|
|
35
32
|
|
|
33
|
+
// Firefox has low performance of map.
|
|
36
34
|
var CacheMap = /*#__PURE__*/function () {
|
|
37
35
|
function CacheMap() {
|
|
38
36
|
_classCallCheck(this, CacheMap);
|
|
39
|
-
|
|
40
37
|
this.maps = void 0;
|
|
41
38
|
this.maps = Object.create(null);
|
|
42
39
|
}
|
|
43
|
-
|
|
44
40
|
_createClass(CacheMap, [{
|
|
45
41
|
key: "set",
|
|
46
42
|
value: function set(key, value) {
|
|
@@ -52,8 +48,6 @@ var CacheMap = /*#__PURE__*/function () {
|
|
|
52
48
|
return this.maps[key];
|
|
53
49
|
}
|
|
54
50
|
}]);
|
|
55
|
-
|
|
56
51
|
return CacheMap;
|
|
57
52
|
}();
|
|
58
|
-
|
|
59
53
|
export { CacheMap as default };
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
10
|
/**
|
|
12
11
|
* Get index with specific start index one by one. e.g.
|
|
13
12
|
* min: 3, max: 9, start: 6
|
|
@@ -21,21 +20,19 @@
|
|
|
21
20
|
* [5]: 9
|
|
22
21
|
* [6]: 3
|
|
23
22
|
*/
|
|
24
|
-
|
|
25
23
|
/**
|
|
26
24
|
* We assume that 2 list has only 1 item diff and others keeping the order.
|
|
27
25
|
* So we can use dichotomy algorithm to find changed one.
|
|
28
26
|
*/
|
|
27
|
+
|
|
29
28
|
function findListDiffIndex(originList, targetList, getKey) {
|
|
30
29
|
var originLen = originList.length;
|
|
31
30
|
var targetLen = targetList.length;
|
|
32
31
|
var shortList;
|
|
33
32
|
var longList;
|
|
34
|
-
|
|
35
33
|
if (originLen === 0 && targetLen === 0) {
|
|
36
34
|
return null;
|
|
37
35
|
}
|
|
38
|
-
|
|
39
36
|
if (originLen < targetLen) {
|
|
40
37
|
shortList = originList;
|
|
41
38
|
longList = targetList;
|
|
@@ -43,38 +40,30 @@ function findListDiffIndex(originList, targetList, getKey) {
|
|
|
43
40
|
shortList = targetList;
|
|
44
41
|
longList = originList;
|
|
45
42
|
}
|
|
46
|
-
|
|
47
43
|
var notExistKey = {
|
|
48
44
|
__EMPTY_ITEM__: true
|
|
49
45
|
};
|
|
50
|
-
|
|
51
46
|
function getItemKey(item) {
|
|
52
47
|
if (item !== undefined) {
|
|
53
48
|
return getKey(item);
|
|
54
49
|
}
|
|
55
|
-
|
|
56
50
|
return notExistKey;
|
|
57
51
|
} // Loop to find diff one
|
|
58
52
|
|
|
59
|
-
|
|
60
53
|
var diffIndex = null;
|
|
61
54
|
var multiple = Math.abs(originLen - targetLen) !== 1;
|
|
62
|
-
|
|
63
55
|
for (var i = 0; i < longList.length; i += 1) {
|
|
64
56
|
var shortKey = getItemKey(shortList[i]);
|
|
65
57
|
var longKey = getItemKey(longList[i]);
|
|
66
|
-
|
|
67
58
|
if (shortKey !== longKey) {
|
|
68
59
|
diffIndex = i;
|
|
69
60
|
multiple = multiple || shortKey !== getItemKey(longList[i + 1]);
|
|
70
61
|
break;
|
|
71
62
|
}
|
|
72
63
|
}
|
|
73
|
-
|
|
74
64
|
return diffIndex === null ? null : {
|
|
75
65
|
index: diffIndex,
|
|
76
66
|
multiple: multiple
|
|
77
67
|
};
|
|
78
68
|
}
|
|
79
|
-
|
|
80
69
|
export { findListDiffIndex };
|
|
@@ -16,6 +16,5 @@ function _typeof(obj) {
|
|
|
16
16
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
17
17
|
}, _typeof(obj);
|
|
18
18
|
}
|
|
19
|
-
|
|
20
19
|
var isFF = (typeof navigator === "undefined" ? "undefined" : _typeof(navigator)) === 'object' && /Firefox/i.test(navigator.userAgent);
|
|
21
20
|
export { isFF as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
-
|
|
3
2
|
/** @LICENSE
|
|
4
3
|
* @hi-ui/table
|
|
5
4
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
@@ -10,7 +9,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
|
10
9
|
* LICENSE file in the root directory of this source tree.
|
|
11
10
|
*/
|
|
12
11
|
import { __exports as reactIs_development } from '../../../_virtual/react-is.development.js';
|
|
13
|
-
|
|
12
|
+
|
|
14
13
|
/** @license React v16.13.1
|
|
15
14
|
* react-is.development.js
|
|
16
15
|
*
|
|
@@ -45,20 +44,17 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
45
44
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol["for"]('react.fundamental') : 0xead5;
|
|
46
45
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol["for"]('react.responder') : 0xead6;
|
|
47
46
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol["for"]('react.scope') : 0xead7;
|
|
48
|
-
|
|
49
47
|
function isValidElementType(type) {
|
|
50
|
-
return typeof type === 'string' || typeof type === 'function' ||
|
|
48
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
49
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
51
50
|
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || _typeof(type) === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
52
51
|
}
|
|
53
|
-
|
|
54
52
|
function typeOf(object) {
|
|
55
53
|
if (_typeof(object) === 'object' && object !== null) {
|
|
56
54
|
var $$typeof = object.$$typeof;
|
|
57
|
-
|
|
58
55
|
switch ($$typeof) {
|
|
59
56
|
case REACT_ELEMENT_TYPE:
|
|
60
57
|
var type = object.type;
|
|
61
|
-
|
|
62
58
|
switch (type) {
|
|
63
59
|
case REACT_ASYNC_MODE_TYPE:
|
|
64
60
|
case REACT_CONCURRENT_MODE_TYPE:
|
|
@@ -67,10 +63,8 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
67
63
|
case REACT_STRICT_MODE_TYPE:
|
|
68
64
|
case REACT_SUSPENSE_TYPE:
|
|
69
65
|
return type;
|
|
70
|
-
|
|
71
66
|
default:
|
|
72
67
|
var $$typeofType = type && type.$$typeof;
|
|
73
|
-
|
|
74
68
|
switch ($$typeofType) {
|
|
75
69
|
case REACT_CONTEXT_TYPE:
|
|
76
70
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -78,22 +72,17 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
78
72
|
case REACT_MEMO_TYPE:
|
|
79
73
|
case REACT_PROVIDER_TYPE:
|
|
80
74
|
return $$typeofType;
|
|
81
|
-
|
|
82
75
|
default:
|
|
83
76
|
return $$typeof;
|
|
84
77
|
}
|
|
85
|
-
|
|
86
78
|
}
|
|
87
|
-
|
|
88
79
|
case REACT_PORTAL_TYPE:
|
|
89
80
|
return $$typeof;
|
|
90
81
|
}
|
|
91
82
|
}
|
|
92
|
-
|
|
93
83
|
return undefined;
|
|
94
84
|
} // AsyncMode is deprecated along with isAsyncMode
|
|
95
85
|
|
|
96
|
-
|
|
97
86
|
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
98
87
|
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
99
88
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
@@ -119,55 +108,42 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
119
108
|
}
|
|
120
109
|
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
121
110
|
}
|
|
122
|
-
|
|
123
111
|
function isConcurrentMode(object) {
|
|
124
112
|
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
125
113
|
}
|
|
126
|
-
|
|
127
114
|
function isContextConsumer(object) {
|
|
128
115
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
129
116
|
}
|
|
130
|
-
|
|
131
117
|
function isContextProvider(object) {
|
|
132
118
|
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
133
119
|
}
|
|
134
|
-
|
|
135
120
|
function isElement(object) {
|
|
136
121
|
return _typeof(object) === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
137
122
|
}
|
|
138
|
-
|
|
139
123
|
function isForwardRef(object) {
|
|
140
124
|
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
141
125
|
}
|
|
142
|
-
|
|
143
126
|
function isFragment(object) {
|
|
144
127
|
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
145
128
|
}
|
|
146
|
-
|
|
147
129
|
function isLazy(object) {
|
|
148
130
|
return typeOf(object) === REACT_LAZY_TYPE;
|
|
149
131
|
}
|
|
150
|
-
|
|
151
132
|
function isMemo(object) {
|
|
152
133
|
return typeOf(object) === REACT_MEMO_TYPE;
|
|
153
134
|
}
|
|
154
|
-
|
|
155
135
|
function isPortal(object) {
|
|
156
136
|
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
157
137
|
}
|
|
158
|
-
|
|
159
138
|
function isProfiler(object) {
|
|
160
139
|
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
161
140
|
}
|
|
162
|
-
|
|
163
141
|
function isStrictMode(object) {
|
|
164
142
|
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
165
143
|
}
|
|
166
|
-
|
|
167
144
|
function isSuspense(object) {
|
|
168
145
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
169
146
|
}
|
|
170
|
-
|
|
171
147
|
reactIs_development.AsyncMode = AsyncMode;
|
|
172
148
|
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
173
149
|
reactIs_development.ContextConsumer = ContextConsumer;
|
|
@@ -198,3 +174,4 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
198
174
|
reactIs_development.typeOf = typeOf;
|
|
199
175
|
})();
|
|
200
176
|
}
|
|
177
|
+
export { reactIs_development as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
-
|
|
3
2
|
/** @LICENSE
|
|
4
3
|
* @hi-ui/table
|
|
5
4
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/table#readme
|
|
@@ -10,7 +9,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
|
10
9
|
* LICENSE file in the root directory of this source tree.
|
|
11
10
|
*/
|
|
12
11
|
import { __exports as reactIs_production_min } from '../../../_virtual/react-is.production.min.js';
|
|
13
|
-
|
|
12
|
+
|
|
14
13
|
/** @license React v16.13.1
|
|
15
14
|
* react-is.production.min.js
|
|
16
15
|
*
|
|
@@ -19,31 +18,28 @@ export { __exports as default } from '../../../_virtual/react-is.production.min.
|
|
|
19
18
|
* This source code is licensed under the MIT license found in the
|
|
20
19
|
* LICENSE file in the root directory of this source tree.
|
|
21
20
|
*/
|
|
22
|
-
|
|
23
21
|
var b = "function" === typeof Symbol && Symbol["for"],
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
22
|
+
c = b ? Symbol["for"]("react.element") : 60103,
|
|
23
|
+
d = b ? Symbol["for"]("react.portal") : 60106,
|
|
24
|
+
e = b ? Symbol["for"]("react.fragment") : 60107,
|
|
25
|
+
f = b ? Symbol["for"]("react.strict_mode") : 60108,
|
|
26
|
+
g = b ? Symbol["for"]("react.profiler") : 60114,
|
|
27
|
+
h = b ? Symbol["for"]("react.provider") : 60109,
|
|
28
|
+
k = b ? Symbol["for"]("react.context") : 60110,
|
|
29
|
+
l = b ? Symbol["for"]("react.async_mode") : 60111,
|
|
30
|
+
m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
|
|
31
|
+
n = b ? Symbol["for"]("react.forward_ref") : 60112,
|
|
32
|
+
p = b ? Symbol["for"]("react.suspense") : 60113,
|
|
33
|
+
q = b ? Symbol["for"]("react.suspense_list") : 60120,
|
|
34
|
+
r = b ? Symbol["for"]("react.memo") : 60115,
|
|
35
|
+
t = b ? Symbol["for"]("react.lazy") : 60116,
|
|
36
|
+
v = b ? Symbol["for"]("react.block") : 60121,
|
|
37
|
+
w = b ? Symbol["for"]("react.fundamental") : 60117,
|
|
38
|
+
x = b ? Symbol["for"]("react.responder") : 60118,
|
|
39
|
+
y = b ? Symbol["for"]("react.scope") : 60119;
|
|
43
40
|
function z(a) {
|
|
44
41
|
if ("object" === _typeof(a) && null !== a) {
|
|
45
42
|
var u = a.$$typeof;
|
|
46
|
-
|
|
47
43
|
switch (u) {
|
|
48
44
|
case c:
|
|
49
45
|
switch (a = a.type, a) {
|
|
@@ -54,7 +50,6 @@ function z(a) {
|
|
|
54
50
|
case f:
|
|
55
51
|
case p:
|
|
56
52
|
return a;
|
|
57
|
-
|
|
58
53
|
default:
|
|
59
54
|
switch (a = a && a.$$typeof, a) {
|
|
60
55
|
case k:
|
|
@@ -63,23 +58,18 @@ function z(a) {
|
|
|
63
58
|
case r:
|
|
64
59
|
case h:
|
|
65
60
|
return a;
|
|
66
|
-
|
|
67
61
|
default:
|
|
68
62
|
return u;
|
|
69
63
|
}
|
|
70
|
-
|
|
71
64
|
}
|
|
72
|
-
|
|
73
65
|
case d:
|
|
74
66
|
return u;
|
|
75
67
|
}
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
|
-
|
|
79
70
|
function A(a) {
|
|
80
71
|
return z(a) === m;
|
|
81
72
|
}
|
|
82
|
-
|
|
83
73
|
reactIs_production_min.AsyncMode = l;
|
|
84
74
|
reactIs_production_min.ConcurrentMode = m;
|
|
85
75
|
reactIs_production_min.ContextConsumer = k;
|
|
@@ -93,59 +83,45 @@ reactIs_production_min.Portal = d;
|
|
|
93
83
|
reactIs_production_min.Profiler = g;
|
|
94
84
|
reactIs_production_min.StrictMode = f;
|
|
95
85
|
reactIs_production_min.Suspense = p;
|
|
96
|
-
|
|
97
86
|
reactIs_production_min.isAsyncMode = function (a) {
|
|
98
87
|
return A(a) || z(a) === l;
|
|
99
88
|
};
|
|
100
|
-
|
|
101
89
|
reactIs_production_min.isConcurrentMode = A;
|
|
102
|
-
|
|
103
90
|
reactIs_production_min.isContextConsumer = function (a) {
|
|
104
91
|
return z(a) === k;
|
|
105
92
|
};
|
|
106
|
-
|
|
107
93
|
reactIs_production_min.isContextProvider = function (a) {
|
|
108
94
|
return z(a) === h;
|
|
109
95
|
};
|
|
110
|
-
|
|
111
96
|
reactIs_production_min.isElement = function (a) {
|
|
112
97
|
return "object" === _typeof(a) && null !== a && a.$$typeof === c;
|
|
113
98
|
};
|
|
114
|
-
|
|
115
99
|
reactIs_production_min.isForwardRef = function (a) {
|
|
116
100
|
return z(a) === n;
|
|
117
101
|
};
|
|
118
|
-
|
|
119
102
|
reactIs_production_min.isFragment = function (a) {
|
|
120
103
|
return z(a) === e;
|
|
121
104
|
};
|
|
122
|
-
|
|
123
105
|
reactIs_production_min.isLazy = function (a) {
|
|
124
106
|
return z(a) === t;
|
|
125
107
|
};
|
|
126
|
-
|
|
127
108
|
reactIs_production_min.isMemo = function (a) {
|
|
128
109
|
return z(a) === r;
|
|
129
110
|
};
|
|
130
|
-
|
|
131
111
|
reactIs_production_min.isPortal = function (a) {
|
|
132
112
|
return z(a) === d;
|
|
133
113
|
};
|
|
134
|
-
|
|
135
114
|
reactIs_production_min.isProfiler = function (a) {
|
|
136
115
|
return z(a) === g;
|
|
137
116
|
};
|
|
138
|
-
|
|
139
117
|
reactIs_production_min.isStrictMode = function (a) {
|
|
140
118
|
return z(a) === f;
|
|
141
119
|
};
|
|
142
|
-
|
|
143
120
|
reactIs_production_min.isSuspense = function (a) {
|
|
144
121
|
return z(a) === p;
|
|
145
122
|
};
|
|
146
|
-
|
|
147
123
|
reactIs_production_min.isValidElementType = function (a) {
|
|
148
124
|
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === _typeof(a) && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
149
125
|
};
|
|
150
|
-
|
|
151
126
|
reactIs_production_min.typeOf = z;
|
|
127
|
+
export { reactIs_production_min as default };
|
|
@@ -12,7 +12,6 @@ import './cjs/react-is.production.min.js';
|
|
|
12
12
|
import './cjs/react-is.development.js';
|
|
13
13
|
import { __exports as reactIs_production_min } from '../../_virtual/react-is.production.min.js';
|
|
14
14
|
import { __exports as reactIs_development } from '../../_virtual/react-is.development.js';
|
|
15
|
-
|
|
16
15
|
if (process.env.NODE_ENV === 'production') {
|
|
17
16
|
reactIs.exports = reactIs_production_min;
|
|
18
17
|
} else {
|