@tanstack/react-table 8.4.0 → 8.5.0
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 +14 -5
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +14 -5
- 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 +14 -5
- 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
|
@@ -4014,7 +4014,7 @@ var drawChart = (function (exports) {
|
|
|
4014
4014
|
</script>
|
|
4015
4015
|
<script>
|
|
4016
4016
|
/*<!--*/
|
|
4017
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
4017
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"f507-127"},{"name":"react-table/src/index.tsx","uid":"f507-129"}]}]}],"isRoot":true},"nodeParts":{"f507-127":{"renderedLength":137788,"gzipLength":23944,"brotliLength":0,"mainUid":"f507-126"},"f507-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"f507-128"}},"nodeMetas":{"f507-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"f507-127"},"imported":[],"importedBy":[{"uid":"f507-128"}]},"f507-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"f507-129"},"imported":[{"uid":"f507-130"},{"uid":"f507-126"}],"importedBy":[],"isEntry":true},"f507-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"f507-128"}],"isExternal":true}},"env":{"rollup":"2.77.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4018
4018
|
|
|
4019
4019
|
const run = () => {
|
|
4020
4020
|
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": "f507-132"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "react-table/src/index.tsx",
|
|
18
|
-
"uid": "
|
|
18
|
+
"uid": "f507-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
|
+
"f507-132": {
|
|
29
|
+
"renderedLength": 137788,
|
|
30
|
+
"gzipLength": 23944,
|
|
31
31
|
"brotliLength": 0,
|
|
32
|
-
"mainUid": "
|
|
32
|
+
"mainUid": "f507-131"
|
|
33
33
|
},
|
|
34
|
-
"
|
|
34
|
+
"f507-134": {
|
|
35
35
|
"renderedLength": 1900,
|
|
36
36
|
"gzipLength": 752,
|
|
37
37
|
"brotliLength": 0,
|
|
38
|
-
"mainUid": "
|
|
38
|
+
"mainUid": "f507-133"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"nodeMetas": {
|
|
42
|
-
"
|
|
42
|
+
"f507-131": {
|
|
43
43
|
"id": "/packages/table-core/build/esm/index.js",
|
|
44
44
|
"moduleParts": {
|
|
45
|
-
"index.production.js": "
|
|
45
|
+
"index.production.js": "f507-132"
|
|
46
46
|
},
|
|
47
47
|
"imported": [],
|
|
48
48
|
"importedBy": [
|
|
49
49
|
{
|
|
50
|
-
"uid": "
|
|
50
|
+
"uid": "f507-133"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
|
-
"
|
|
54
|
+
"f507-133": {
|
|
55
55
|
"id": "/packages/react-table/src/index.tsx",
|
|
56
56
|
"moduleParts": {
|
|
57
|
-
"index.production.js": "
|
|
57
|
+
"index.production.js": "f507-134"
|
|
58
58
|
},
|
|
59
59
|
"imported": [
|
|
60
60
|
{
|
|
61
|
-
"uid": "
|
|
61
|
+
"uid": "f507-135"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"uid": "
|
|
64
|
+
"uid": "f507-131"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
67
|
"importedBy": [],
|
|
68
68
|
"isEntry": true
|
|
69
69
|
},
|
|
70
|
-
"
|
|
70
|
+
"f507-135": {
|
|
71
71
|
"id": "react",
|
|
72
72
|
"moduleParts": {},
|
|
73
73
|
"imported": [],
|
|
74
74
|
"importedBy": [
|
|
75
75
|
{
|
|
76
|
-
"uid": "
|
|
76
|
+
"uid": "f507-133"
|
|
77
77
|
}
|
|
78
78
|
],
|
|
79
79
|
"isExternal": true
|
|
@@ -1179,7 +1179,9 @@
|
|
|
1179
1179
|
return filterFns.weakEquals;
|
|
1180
1180
|
},
|
|
1181
1181
|
getFilterFn: () => {
|
|
1182
|
-
|
|
1182
|
+
var _table$options$filter, _table$options$filter2;
|
|
1183
|
+
|
|
1184
|
+
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn() : (_table$options$filter = (_table$options$filter2 = table.options.filterFns) == null ? void 0 : _table$options$filter2[column.columnDef.filterFn]) != null ? _table$options$filter : filterFns[column.columnDef.filterFn];
|
|
1183
1185
|
},
|
|
1184
1186
|
getCanFilter: () => {
|
|
1185
1187
|
var _column$columnDef$ena, _table$options$enable, _table$options$enable2;
|
|
@@ -1278,10 +1280,12 @@
|
|
|
1278
1280
|
return filterFns.includesString;
|
|
1279
1281
|
},
|
|
1280
1282
|
getGlobalFilterFn: () => {
|
|
1283
|
+
var _table$options$filter3, _table$options$filter4;
|
|
1284
|
+
|
|
1281
1285
|
const {
|
|
1282
1286
|
globalFilterFn: globalFilterFn
|
|
1283
1287
|
} = table.options;
|
|
1284
|
-
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn() : filterFns[globalFilterFn];
|
|
1288
|
+
return isFunction(globalFilterFn) ? globalFilterFn : globalFilterFn === 'auto' ? table.getGlobalAutoFilterFn() : (_table$options$filter3 = (_table$options$filter4 = table.options.filterFns) == null ? void 0 : _table$options$filter4[globalFilterFn]) != null ? _table$options$filter3 : filterFns[globalFilterFn];
|
|
1285
1289
|
},
|
|
1286
1290
|
setColumnFilters: updater => {
|
|
1287
1291
|
const leafColumns = table.getAllLeafColumns();
|
|
@@ -1535,11 +1539,13 @@
|
|
|
1535
1539
|
}
|
|
1536
1540
|
},
|
|
1537
1541
|
getAggregationFn: () => {
|
|
1542
|
+
var _table$options$aggreg, _table$options$aggreg2;
|
|
1543
|
+
|
|
1538
1544
|
if (!column) {
|
|
1539
1545
|
throw new Error();
|
|
1540
1546
|
}
|
|
1541
1547
|
|
|
1542
|
-
return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === 'auto' ? column.getAutoAggregationFn() : aggregationFns[column.columnDef.aggregationFn];
|
|
1548
|
+
return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === 'auto' ? column.getAutoAggregationFn() : (_table$options$aggreg = (_table$options$aggreg2 = table.options.aggregationFns) == null ? void 0 : _table$options$aggreg2[column.columnDef.aggregationFn]) != null ? _table$options$aggreg : aggregationFns[column.columnDef.aggregationFn];
|
|
1543
1549
|
}
|
|
1544
1550
|
};
|
|
1545
1551
|
},
|
|
@@ -2556,11 +2562,13 @@
|
|
|
2556
2562
|
return 'desc';
|
|
2557
2563
|
},
|
|
2558
2564
|
getSortingFn: () => {
|
|
2565
|
+
var _table$options$sortin, _table$options$sortin2;
|
|
2566
|
+
|
|
2559
2567
|
if (!column) {
|
|
2560
2568
|
throw new Error();
|
|
2561
2569
|
}
|
|
2562
2570
|
|
|
2563
|
-
return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === 'auto' ? column.getAutoSortingFn() : sortingFns[column.columnDef.sortingFn];
|
|
2571
|
+
return isFunction(column.columnDef.sortingFn) ? column.columnDef.sortingFn : column.columnDef.sortingFn === 'auto' ? column.getAutoSortingFn() : (_table$options$sortin = (_table$options$sortin2 = table.options.sortingFns) == null ? void 0 : _table$options$sortin2[column.columnDef.sortingFn]) != null ? _table$options$sortin : sortingFns[column.columnDef.sortingFn];
|
|
2564
2572
|
},
|
|
2565
2573
|
toggleSorting: (desc, multi) => {
|
|
2566
2574
|
// if (column.columns.length) {
|
|
@@ -3182,7 +3190,8 @@
|
|
|
3182
3190
|
accessorKey: accessor
|
|
3183
3191
|
};
|
|
3184
3192
|
},
|
|
3185
|
-
display: column => column
|
|
3193
|
+
display: column => column,
|
|
3194
|
+
group: column => column
|
|
3186
3195
|
};
|
|
3187
3196
|
}
|
|
3188
3197
|
|