@tanstack/react-table 8.0.0-beta.0 → 8.0.0-beta.3
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 +9 -12
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +9 -12
- 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 +9 -12
- 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":"6d83-127"},{"name":"react-table/src/index.tsx","uid":"6d83-129"}]}]}],"isRoot":true},"nodeParts":{"6d83-127":{"renderedLength":137570,"gzipLength":23393,"brotliLength":0,"mainUid":"6d83-126"},"6d83-129":{"renderedLength":2102,"gzipLength":836,"brotliLength":0,"mainUid":"6d83-128"}},"nodeMetas":{"6d83-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6d83-127"},"imported":[],"importedBy":[{"uid":"6d83-128"}]},"6d83-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"6d83-129"},"imported":[{"uid":"6d83-130"},{"uid":"6d83-126"}],"importedBy":[],"isEntry":true},"6d83-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"6d83-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": "6d83-132"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "6d83-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
|
+
"6d83-132": {
|
|
29
|
+
"renderedLength": 137570,
|
|
30
|
+
"gzipLength": 23393,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "6d83-131"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"6d83-134": {
|
|
35
35
|
"renderedLength": 2102,
|
|
36
36
|
"gzipLength": 836,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "6d83-133"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"6d83-131": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "6d83-132"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "6d83-133"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"6d83-133": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "6d83-134"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "6d83-135"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "6d83-131"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"6d83-135": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "6d83-133"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
@@ -1128,7 +1128,6 @@
|
|
|
1128
1128
|
},
|
|
1129
1129
|
createColumn: (column, instance) => {
|
|
1130
1130
|
return {
|
|
1131
|
-
filterFn: column.filterFn,
|
|
1132
1131
|
getAutoFilterFn: () => {
|
|
1133
1132
|
const firstRow = instance.getCoreRowModel().flatRows[0];
|
|
1134
1133
|
const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
|
|
@@ -1159,7 +1158,7 @@
|
|
|
1159
1158
|
var _ref;
|
|
1160
1159
|
|
|
1161
1160
|
const userFilterFns = instance.options.filterFns;
|
|
1162
|
-
return isFunction(column.filterFn) ? column.filterFn : column.filterFn === 'auto' ? column.getAutoFilterFn() : (_ref = userFilterFns == null ? void 0 : userFilterFns[column.filterFn]) != null ? _ref : filterFns[column.filterFn];
|
|
1161
|
+
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn() : (_ref = userFilterFns == null ? void 0 : userFilterFns[column.columnDef.filterFn]) != null ? _ref : filterFns[column.columnDef.filterFn];
|
|
1163
1162
|
},
|
|
1164
1163
|
getCanFilter: () => {
|
|
1165
1164
|
var _column$columnDef$ena, _instance$options$ena, _instance$options$ena2;
|
|
@@ -1448,6 +1447,11 @@
|
|
|
1448
1447
|
const Grouping = {
|
|
1449
1448
|
getDefaultColumnDef: () => {
|
|
1450
1449
|
return {
|
|
1450
|
+
aggregatedCell: props => {
|
|
1451
|
+
var _props$getValue$toStr, _props$getValue;
|
|
1452
|
+
|
|
1453
|
+
return (_props$getValue$toStr = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _props$getValue$toStr : null;
|
|
1454
|
+
},
|
|
1451
1455
|
aggregationFn: 'auto'
|
|
1452
1456
|
};
|
|
1453
1457
|
},
|
|
@@ -1508,8 +1512,6 @@
|
|
|
1508
1512
|
if (Object.prototype.toString.call(value) === '[object Date]') {
|
|
1509
1513
|
return aggregationFns.extent;
|
|
1510
1514
|
}
|
|
1511
|
-
|
|
1512
|
-
return aggregationFns.count;
|
|
1513
1515
|
},
|
|
1514
1516
|
getAggregationFn: () => {
|
|
1515
1517
|
var _ref4;
|
|
@@ -1520,7 +1522,7 @@
|
|
|
1520
1522
|
throw new Error();
|
|
1521
1523
|
}
|
|
1522
1524
|
|
|
1523
|
-
return isFunction(column.aggregationFn) ? column.aggregationFn : column.aggregationFn === 'auto' ? column.getAutoAggregationFn() : (_ref4 = userAggregationFns == null ? void 0 : userAggregationFns[column.aggregationFn]) != null ? _ref4 : aggregationFns[column.aggregationFn];
|
|
1525
|
+
return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === 'auto' ? column.getAutoAggregationFn() : (_ref4 = userAggregationFns == null ? void 0 : userAggregationFns[column.columnDef.aggregationFn]) != null ? _ref4 : aggregationFns[column.columnDef.aggregationFn];
|
|
1524
1526
|
}
|
|
1525
1527
|
};
|
|
1526
1528
|
},
|
|
@@ -2915,9 +2917,9 @@
|
|
|
2915
2917
|
header: props => props.header.column.id,
|
|
2916
2918
|
footer: props => props.header.column.id,
|
|
2917
2919
|
cell: props => {
|
|
2918
|
-
var _props$getValue$toStr, _props$getValue
|
|
2920
|
+
var _props$getValue$toStr, _props$getValue;
|
|
2919
2921
|
|
|
2920
|
-
return (_props$getValue$toStr = (_props$getValue
|
|
2922
|
+
return (_props$getValue$toStr = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _props$getValue$toStr : null;
|
|
2921
2923
|
},
|
|
2922
2924
|
...instance._features.reduce((obj, feature) => {
|
|
2923
2925
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3688,11 +3690,6 @@
|
|
|
3688
3690
|
if (aggregateFn) {
|
|
3689
3691
|
row._groupingValuesCache[columnId] = aggregateFn(columnId, leafRows, groupedRows);
|
|
3690
3692
|
return row._groupingValuesCache[columnId];
|
|
3691
|
-
} else if (column.aggregationFn) {
|
|
3692
|
-
console.info({
|
|
3693
|
-
column
|
|
3694
|
-
});
|
|
3695
|
-
throw new Error("Table: Invalid column.aggregateType option for column listed above" );
|
|
3696
3693
|
}
|
|
3697
3694
|
}
|
|
3698
3695
|
});
|