@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
|
@@ -10,12 +10,11 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
13
|
-
|
|
14
13
|
Object.defineProperty(exports, '__esModule', {
|
|
15
14
|
value: true
|
|
16
15
|
});
|
|
17
|
-
|
|
18
16
|
var reactIs_production_min = require('../../../_virtual/react-is.production.min.js');
|
|
17
|
+
|
|
19
18
|
/** @license React v16.13.1
|
|
20
19
|
* react-is.production.min.js
|
|
21
20
|
*
|
|
@@ -24,32 +23,28 @@ var reactIs_production_min = require('../../../_virtual/react-is.production.min.
|
|
|
24
23
|
* This source code is licensed under the MIT license found in the
|
|
25
24
|
* LICENSE file in the root directory of this source tree.
|
|
26
25
|
*/
|
|
27
|
-
|
|
28
|
-
|
|
29
26
|
var b = "function" === typeof Symbol && Symbol["for"],
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
27
|
+
c = b ? Symbol["for"]("react.element") : 60103,
|
|
28
|
+
d = b ? Symbol["for"]("react.portal") : 60106,
|
|
29
|
+
e = b ? Symbol["for"]("react.fragment") : 60107,
|
|
30
|
+
f = b ? Symbol["for"]("react.strict_mode") : 60108,
|
|
31
|
+
g = b ? Symbol["for"]("react.profiler") : 60114,
|
|
32
|
+
h = b ? Symbol["for"]("react.provider") : 60109,
|
|
33
|
+
k = b ? Symbol["for"]("react.context") : 60110,
|
|
34
|
+
l = b ? Symbol["for"]("react.async_mode") : 60111,
|
|
35
|
+
m = b ? Symbol["for"]("react.concurrent_mode") : 60111,
|
|
36
|
+
n = b ? Symbol["for"]("react.forward_ref") : 60112,
|
|
37
|
+
p = b ? Symbol["for"]("react.suspense") : 60113,
|
|
38
|
+
q = b ? Symbol["for"]("react.suspense_list") : 60120,
|
|
39
|
+
r = b ? Symbol["for"]("react.memo") : 60115,
|
|
40
|
+
t = b ? Symbol["for"]("react.lazy") : 60116,
|
|
41
|
+
v = b ? Symbol["for"]("react.block") : 60121,
|
|
42
|
+
w = b ? Symbol["for"]("react.fundamental") : 60117,
|
|
43
|
+
x = b ? Symbol["for"]("react.responder") : 60118,
|
|
44
|
+
y = b ? Symbol["for"]("react.scope") : 60119;
|
|
49
45
|
function z(a) {
|
|
50
46
|
if ("object" === _typeof(a) && null !== a) {
|
|
51
47
|
var u = a.$$typeof;
|
|
52
|
-
|
|
53
48
|
switch (u) {
|
|
54
49
|
case c:
|
|
55
50
|
switch (a = a.type, a) {
|
|
@@ -60,7 +55,6 @@ function z(a) {
|
|
|
60
55
|
case f:
|
|
61
56
|
case p:
|
|
62
57
|
return a;
|
|
63
|
-
|
|
64
58
|
default:
|
|
65
59
|
switch (a = a && a.$$typeof, a) {
|
|
66
60
|
case k:
|
|
@@ -69,23 +63,18 @@ function z(a) {
|
|
|
69
63
|
case r:
|
|
70
64
|
case h:
|
|
71
65
|
return a;
|
|
72
|
-
|
|
73
66
|
default:
|
|
74
67
|
return u;
|
|
75
68
|
}
|
|
76
|
-
|
|
77
69
|
}
|
|
78
|
-
|
|
79
70
|
case d:
|
|
80
71
|
return u;
|
|
81
72
|
}
|
|
82
73
|
}
|
|
83
74
|
}
|
|
84
|
-
|
|
85
75
|
function A(a) {
|
|
86
76
|
return z(a) === m;
|
|
87
77
|
}
|
|
88
|
-
|
|
89
78
|
reactIs_production_min.__exports.AsyncMode = l;
|
|
90
79
|
reactIs_production_min.__exports.ConcurrentMode = m;
|
|
91
80
|
reactIs_production_min.__exports.ContextConsumer = k;
|
|
@@ -99,60 +88,45 @@ reactIs_production_min.__exports.Portal = d;
|
|
|
99
88
|
reactIs_production_min.__exports.Profiler = g;
|
|
100
89
|
reactIs_production_min.__exports.StrictMode = f;
|
|
101
90
|
reactIs_production_min.__exports.Suspense = p;
|
|
102
|
-
|
|
103
91
|
reactIs_production_min.__exports.isAsyncMode = function (a) {
|
|
104
92
|
return A(a) || z(a) === l;
|
|
105
93
|
};
|
|
106
|
-
|
|
107
94
|
reactIs_production_min.__exports.isConcurrentMode = A;
|
|
108
|
-
|
|
109
95
|
reactIs_production_min.__exports.isContextConsumer = function (a) {
|
|
110
96
|
return z(a) === k;
|
|
111
97
|
};
|
|
112
|
-
|
|
113
98
|
reactIs_production_min.__exports.isContextProvider = function (a) {
|
|
114
99
|
return z(a) === h;
|
|
115
100
|
};
|
|
116
|
-
|
|
117
101
|
reactIs_production_min.__exports.isElement = function (a) {
|
|
118
102
|
return "object" === _typeof(a) && null !== a && a.$$typeof === c;
|
|
119
103
|
};
|
|
120
|
-
|
|
121
104
|
reactIs_production_min.__exports.isForwardRef = function (a) {
|
|
122
105
|
return z(a) === n;
|
|
123
106
|
};
|
|
124
|
-
|
|
125
107
|
reactIs_production_min.__exports.isFragment = function (a) {
|
|
126
108
|
return z(a) === e;
|
|
127
109
|
};
|
|
128
|
-
|
|
129
110
|
reactIs_production_min.__exports.isLazy = function (a) {
|
|
130
111
|
return z(a) === t;
|
|
131
112
|
};
|
|
132
|
-
|
|
133
113
|
reactIs_production_min.__exports.isMemo = function (a) {
|
|
134
114
|
return z(a) === r;
|
|
135
115
|
};
|
|
136
|
-
|
|
137
116
|
reactIs_production_min.__exports.isPortal = function (a) {
|
|
138
117
|
return z(a) === d;
|
|
139
118
|
};
|
|
140
|
-
|
|
141
119
|
reactIs_production_min.__exports.isProfiler = function (a) {
|
|
142
120
|
return z(a) === g;
|
|
143
121
|
};
|
|
144
|
-
|
|
145
122
|
reactIs_production_min.__exports.isStrictMode = function (a) {
|
|
146
123
|
return z(a) === f;
|
|
147
124
|
};
|
|
148
|
-
|
|
149
125
|
reactIs_production_min.__exports.isSuspense = function (a) {
|
|
150
126
|
return z(a) === p;
|
|
151
127
|
};
|
|
152
|
-
|
|
153
128
|
reactIs_production_min.__exports.isValidElementType = function (a) {
|
|
154
129
|
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);
|
|
155
130
|
};
|
|
156
|
-
|
|
157
131
|
reactIs_production_min.__exports.typeOf = z;
|
|
158
132
|
exports["default"] = reactIs_production_min.__exports;
|
|
@@ -10,15 +10,10 @@
|
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
var index = require('../../_virtual/index2.js');
|
|
13
|
-
|
|
14
13
|
require('./cjs/react-is.production.min.js');
|
|
15
|
-
|
|
16
14
|
require('./cjs/react-is.development.js');
|
|
17
|
-
|
|
18
15
|
var reactIs_production_min = require('../../_virtual/react-is.production.min.js');
|
|
19
|
-
|
|
20
16
|
var reactIs_development = require('../../_virtual/react-is.development.js');
|
|
21
|
-
|
|
22
17
|
if (process.env.NODE_ENV === 'production') {
|
|
23
18
|
index.reactIs.exports = reactIs_production_min.__exports;
|
|
24
19
|
} else {
|