@tanstack/vue-table 8.5.22 → 8.5.25
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 +20 -9
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +20 -9
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +24 -24
- package/build/umd/index.development.js +20 -9
- 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
|
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
|
|
|
4024
4024
|
</script>
|
|
4025
4025
|
<script>
|
|
4026
4026
|
/*<!--*/
|
|
4027
|
-
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"
|
|
4027
|
+
const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"b1e2-149"},{"name":"vue-table/src","children":[{"uid":"b1e2-151","name":"merge-proxy.ts"},{"uid":"b1e2-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"b1e2-149":{"renderedLength":126544,"gzipLength":22417,"brotliLength":0,"mainUid":"b1e2-148"},"b1e2-151":{"renderedLength":1607,"gzipLength":655,"brotliLength":0,"mainUid":"b1e2-150"},"b1e2-153":{"renderedLength":1675,"gzipLength":658,"brotliLength":0,"mainUid":"b1e2-152"}},"nodeMetas":{"b1e2-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"b1e2-149"},"imported":[],"importedBy":[{"uid":"b1e2-152"}]},"b1e2-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"b1e2-151"},"imported":[],"importedBy":[{"uid":"b1e2-152"}]},"b1e2-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"b1e2-153"},"imported":[{"uid":"b1e2-148"},{"uid":"b1e2-154"},{"uid":"b1e2-150"}],"importedBy":[],"isEntry":true},"b1e2-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"b1e2-152"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
|
|
4028
4028
|
|
|
4029
4029
|
const run = () => {
|
|
4030
4030
|
const width = window.innerWidth;
|
package/build/stats-react.json
CHANGED
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "b1e2-156"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "vue-table/src",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"uid": "
|
|
20
|
+
"uid": "b1e2-158",
|
|
21
21
|
"name": "merge-proxy.ts"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"uid": "
|
|
24
|
+
"uid": "b1e2-160",
|
|
25
25
|
"name": "index.ts"
|
|
26
26
|
}
|
|
27
27
|
]
|
|
@@ -34,76 +34,76 @@
|
|
|
34
34
|
"isRoot": true
|
|
35
35
|
},
|
|
36
36
|
"nodeParts": {
|
|
37
|
-
"
|
|
38
|
-
"renderedLength":
|
|
39
|
-
"gzipLength":
|
|
37
|
+
"b1e2-156": {
|
|
38
|
+
"renderedLength": 126544,
|
|
39
|
+
"gzipLength": 22417,
|
|
40
40
|
"brotliLength": 0,
|
|
41
|
-
"mainUid": "
|
|
41
|
+
"mainUid": "b1e2-155"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"b1e2-158": {
|
|
44
44
|
"renderedLength": 1607,
|
|
45
45
|
"gzipLength": 655,
|
|
46
46
|
"brotliLength": 0,
|
|
47
|
-
"mainUid": "
|
|
47
|
+
"mainUid": "b1e2-157"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"b1e2-160": {
|
|
50
50
|
"renderedLength": 1675,
|
|
51
51
|
"gzipLength": 658,
|
|
52
52
|
"brotliLength": 0,
|
|
53
|
-
"mainUid": "
|
|
53
|
+
"mainUid": "b1e2-159"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"nodeMetas": {
|
|
57
|
-
"
|
|
57
|
+
"b1e2-155": {
|
|
58
58
|
"id": "/packages/table-core/build/esm/index.js",
|
|
59
59
|
"moduleParts": {
|
|
60
|
-
"index.production.js": "
|
|
60
|
+
"index.production.js": "b1e2-156"
|
|
61
61
|
},
|
|
62
62
|
"imported": [],
|
|
63
63
|
"importedBy": [
|
|
64
64
|
{
|
|
65
|
-
"uid": "
|
|
65
|
+
"uid": "b1e2-159"
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"b1e2-157": {
|
|
70
70
|
"id": "/packages/vue-table/src/merge-proxy.ts",
|
|
71
71
|
"moduleParts": {
|
|
72
|
-
"index.production.js": "
|
|
72
|
+
"index.production.js": "b1e2-158"
|
|
73
73
|
},
|
|
74
74
|
"imported": [],
|
|
75
75
|
"importedBy": [
|
|
76
76
|
{
|
|
77
|
-
"uid": "
|
|
77
|
+
"uid": "b1e2-159"
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"b1e2-159": {
|
|
82
82
|
"id": "/packages/vue-table/src/index.ts",
|
|
83
83
|
"moduleParts": {
|
|
84
|
-
"index.production.js": "
|
|
84
|
+
"index.production.js": "b1e2-160"
|
|
85
85
|
},
|
|
86
86
|
"imported": [
|
|
87
87
|
{
|
|
88
|
-
"uid": "
|
|
88
|
+
"uid": "b1e2-155"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"uid": "
|
|
91
|
+
"uid": "b1e2-161"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"uid": "
|
|
94
|
+
"uid": "b1e2-157"
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
"importedBy": [],
|
|
98
98
|
"isEntry": true
|
|
99
99
|
},
|
|
100
|
-
"
|
|
100
|
+
"b1e2-161": {
|
|
101
101
|
"id": "vue",
|
|
102
102
|
"moduleParts": {},
|
|
103
103
|
"imported": [],
|
|
104
104
|
"importedBy": [
|
|
105
105
|
{
|
|
106
|
-
"uid": "
|
|
106
|
+
"uid": "b1e2-159"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
"isExternal": true
|
|
@@ -1481,7 +1481,7 @@
|
|
|
1481
1481
|
table.setPagination(old => {
|
|
1482
1482
|
let pageIndex = functionalUpdate(updater, old.pageIndex);
|
|
1483
1483
|
const maxPageIndex = typeof table.options.pageCount === 'undefined' || table.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : table.options.pageCount - 1;
|
|
1484
|
-
pageIndex = Math.
|
|
1484
|
+
pageIndex = Math.max(0, Math.min(pageIndex, maxPageIndex));
|
|
1485
1485
|
return {
|
|
1486
1486
|
...old,
|
|
1487
1487
|
pageIndex
|
|
@@ -2856,19 +2856,30 @@
|
|
|
2856
2856
|
for (let i = 0; i < rowsToFilter.length; i++) {
|
|
2857
2857
|
var _row$subRows;
|
|
2858
2858
|
let row = rowsToFilter[i];
|
|
2859
|
+
const newRow = createRow(table, row.id, row.original, row.index, row.depth);
|
|
2860
|
+
newRow.columnFilters = row.columnFilters;
|
|
2859
2861
|
if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
|
|
2860
|
-
const newRow = createRow(table, row.id, row.original, row.index, row.depth);
|
|
2861
|
-
newRow.columnFilters = row.columnFilters;
|
|
2862
2862
|
newRow.subRows = recurseFilterRows(row.subRows);
|
|
2863
|
-
|
|
2863
|
+
row = newRow;
|
|
2864
|
+
if (filterRow(row) && !newRow.subRows.length) {
|
|
2865
|
+
rows.push(row);
|
|
2866
|
+
newFilteredRowsById[row.id] = row;
|
|
2867
|
+
newFilteredRowsById[i] = row;
|
|
2868
|
+
continue;
|
|
2869
|
+
}
|
|
2870
|
+
if (filterRow(row) || newRow.subRows.length) {
|
|
2871
|
+
rows.push(row);
|
|
2872
|
+
newFilteredRowsById[row.id] = row;
|
|
2873
|
+
newFilteredRowsById[i] = row;
|
|
2864
2874
|
continue;
|
|
2865
2875
|
}
|
|
2876
|
+
} else {
|
|
2866
2877
|
row = newRow;
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2878
|
+
if (filterRow(row)) {
|
|
2879
|
+
rows.push(row);
|
|
2880
|
+
newFilteredRowsById[row.id] = row;
|
|
2881
|
+
newFilteredRowsById[i] = row;
|
|
2882
|
+
}
|
|
2872
2883
|
}
|
|
2873
2884
|
}
|
|
2874
2885
|
return rows;
|