@tanstack/react-table 8.0.0-alpha.76 → 8.0.0-alpha.78
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/build/cjs/table-core/build/esm/index.js +8 -6
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +8 -6
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +17 -17
- package/build/umd/index.development.js +8 -6
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
package/build/stats-html.html
CHANGED
|
@@ -2669,7 +2669,7 @@ var drawChart = (function (exports) {
|
|
|
2669
2669
|
</script>
|
|
2670
2670
|
<script>
|
|
2671
2671
|
/*<!--*/
|
|
2672
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
2672
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"e8ea-127"},{"name":"react-table/src/index.tsx","uid":"e8ea-129"}]}]}],"isRoot":true},"nodeParts":{"e8ea-127":{"renderedLength":139809,"gzipLength":23894,"brotliLength":0,"mainUid":"e8ea-126"},"e8ea-129":{"renderedLength":2102,"gzipLength":836,"brotliLength":0,"mainUid":"e8ea-128"}},"nodeMetas":{"e8ea-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"e8ea-127"},"imported":[],"importedBy":[{"uid":"e8ea-128"}]},"e8ea-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"e8ea-129"},"imported":[{"uid":"e8ea-130"},{"uid":"e8ea-126"}],"importedBy":[],"isEntry":true},"e8ea-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"e8ea-128"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
2673
2673
|
|
|
2674
2674
|
const run = () => {
|
|
2675
2675
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "e8ea-132"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "e8ea-134"
|
|
19
19
|
}
|
|
20
20
|
]
|
|
21
21
|
}
|
|
@@ -25,55 +25,55 @@
|
|
|
25
25
|
"isRoot": true
|
|
26
26
|
},
|
|
27
27
|
"nodeParts": {
|
|
28
|
-
"
|
|
29
|
-
"renderedLength":
|
|
30
|
-
"gzipLength":
|
|
28
|
+
"e8ea-132": {
|
|
29
|
+
"renderedLength": 139809,
|
|
30
|
+
"gzipLength": 23894,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "e8ea-131"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"e8ea-134": {
|
|
35
35
|
"renderedLength": 2102,
|
|
36
36
|
"gzipLength": 836,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "e8ea-133"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"e8ea-131": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "e8ea-132"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "e8ea-133"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"e8ea-133": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "e8ea-134"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "e8ea-135"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "e8ea-131"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"e8ea-135": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "e8ea-133"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
@@ -2704,8 +2704,10 @@
|
|
|
2704
2704
|
},
|
|
2705
2705
|
// Header Groups
|
|
2706
2706
|
getHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.left, instance.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
|
|
2707
|
-
|
|
2708
|
-
|
|
2707
|
+
var _left$map$filter, _right$map$filter;
|
|
2708
|
+
|
|
2709
|
+
const leftColumns = (_left$map$filter = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
|
|
2710
|
+
const rightColumns = (_right$map$filter = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
|
|
2709
2711
|
const centerColumns = leafColumns.filter(column => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
|
|
2710
2712
|
const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], instance);
|
|
2711
2713
|
return headerGroups;
|
|
@@ -2729,9 +2731,9 @@
|
|
|
2729
2731
|
}
|
|
2730
2732
|
}),
|
|
2731
2733
|
getLeftHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.left], (allColumns, leafColumns, left) => {
|
|
2732
|
-
var _left$map$
|
|
2734
|
+
var _left$map$filter2;
|
|
2733
2735
|
|
|
2734
|
-
const orderedLeafColumns = (_left$map$
|
|
2736
|
+
const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
|
|
2735
2737
|
return buildHeaderGroups(allColumns, orderedLeafColumns, instance, 'left');
|
|
2736
2738
|
}, {
|
|
2737
2739
|
key: 'getLeftHeaderGroups',
|
|
@@ -2742,9 +2744,9 @@
|
|
|
2742
2744
|
}
|
|
2743
2745
|
}),
|
|
2744
2746
|
getRightHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.right], (allColumns, leafColumns, right) => {
|
|
2745
|
-
var _right$map$
|
|
2747
|
+
var _right$map$filter2;
|
|
2746
2748
|
|
|
2747
|
-
const orderedLeafColumns = (_right$map$
|
|
2749
|
+
const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
|
|
2748
2750
|
return buildHeaderGroups(allColumns, orderedLeafColumns, instance, 'right');
|
|
2749
2751
|
}, {
|
|
2750
2752
|
key: 'getRightHeaderGroups',
|