@tanstack/vue-table 8.3.0 → 8.3.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 +3 -2
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +3 -2
- 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 +3 -2
- 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":"3533-149"},{"name":"vue-table/src","children":[{"uid":"3533-151","name":"merge-proxy.ts"},{"uid":"3533-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"3533-149":{"renderedLength":136752,"gzipLength":23772,"brotliLength":0,"mainUid":"3533-148"},"3533-151":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"3533-150"},"3533-153":{"renderedLength":1683,"gzipLength":677,"brotliLength":0,"mainUid":"3533-152"}},"nodeMetas":{"3533-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"3533-149"},"imported":[],"importedBy":[{"uid":"3533-152"}]},"3533-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"3533-151"},"imported":[],"importedBy":[{"uid":"3533-152"}]},"3533-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"3533-153"},"imported":[{"uid":"3533-148"},{"uid":"3533-154"},{"uid":"3533-150"}],"importedBy":[],"isEntry":true},"3533-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"3533-152"}],"isExternal":true}},"env":{"rollup":"2.77.0"},"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,17 +11,17 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "3533-156"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "vue-table/src",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"uid": "
|
|
20
|
+
"uid": "3533-158",
|
|
21
21
|
"name": "merge-proxy.ts"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"uid": "
|
|
24
|
+
"uid": "3533-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
|
+
"3533-156": {
|
|
38
|
+
"renderedLength": 136752,
|
|
39
|
+
"gzipLength": 23772,
|
|
40
40
|
"brotliLength": 0,
|
|
41
|
-
"mainUid": "
|
|
41
|
+
"mainUid": "3533-155"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"3533-158": {
|
|
44
44
|
"renderedLength": 1622,
|
|
45
45
|
"gzipLength": 660,
|
|
46
46
|
"brotliLength": 0,
|
|
47
|
-
"mainUid": "
|
|
47
|
+
"mainUid": "3533-157"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"3533-160": {
|
|
50
50
|
"renderedLength": 1683,
|
|
51
51
|
"gzipLength": 677,
|
|
52
52
|
"brotliLength": 0,
|
|
53
|
-
"mainUid": "
|
|
53
|
+
"mainUid": "3533-159"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"nodeMetas": {
|
|
57
|
-
"
|
|
57
|
+
"3533-155": {
|
|
58
58
|
"id": "/packages/table-core/build/esm/index.js",
|
|
59
59
|
"moduleParts": {
|
|
60
|
-
"index.production.js": "
|
|
60
|
+
"index.production.js": "3533-156"
|
|
61
61
|
},
|
|
62
62
|
"imported": [],
|
|
63
63
|
"importedBy": [
|
|
64
64
|
{
|
|
65
|
-
"uid": "
|
|
65
|
+
"uid": "3533-159"
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"3533-157": {
|
|
70
70
|
"id": "/packages/vue-table/src/merge-proxy.ts",
|
|
71
71
|
"moduleParts": {
|
|
72
|
-
"index.production.js": "
|
|
72
|
+
"index.production.js": "3533-158"
|
|
73
73
|
},
|
|
74
74
|
"imported": [],
|
|
75
75
|
"importedBy": [
|
|
76
76
|
{
|
|
77
|
-
"uid": "
|
|
77
|
+
"uid": "3533-159"
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"3533-159": {
|
|
82
82
|
"id": "/packages/vue-table/src/index.ts",
|
|
83
83
|
"moduleParts": {
|
|
84
|
-
"index.production.js": "
|
|
84
|
+
"index.production.js": "3533-160"
|
|
85
85
|
},
|
|
86
86
|
"imported": [
|
|
87
87
|
{
|
|
88
|
-
"uid": "
|
|
88
|
+
"uid": "3533-155"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"uid": "
|
|
91
|
+
"uid": "3533-161"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"uid": "
|
|
94
|
+
"uid": "3533-157"
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
"importedBy": [],
|
|
98
98
|
"isEntry": true
|
|
99
99
|
},
|
|
100
|
-
"
|
|
100
|
+
"3533-161": {
|
|
101
101
|
"id": "vue",
|
|
102
102
|
"moduleParts": {},
|
|
103
103
|
"imported": [],
|
|
104
104
|
"importedBy": [
|
|
105
105
|
{
|
|
106
|
-
"uid": "
|
|
106
|
+
"uid": "3533-159"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
"isExternal": true
|
|
@@ -2158,7 +2158,7 @@
|
|
|
2158
2158
|
let isAllRowsSelected = Boolean(preFilteredFlatRows.length && Object.keys(rowSelection).length);
|
|
2159
2159
|
|
|
2160
2160
|
if (isAllRowsSelected) {
|
|
2161
|
-
if (preFilteredFlatRows.some(row => !rowSelection[row.id])) {
|
|
2161
|
+
if (preFilteredFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
|
|
2162
2162
|
isAllRowsSelected = false;
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
@@ -2181,7 +2181,8 @@
|
|
|
2181
2181
|
getIsSomeRowsSelected: () => {
|
|
2182
2182
|
var _table$getState$rowSe;
|
|
2183
2183
|
|
|
2184
|
-
|
|
2184
|
+
const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
|
|
2185
|
+
return totalSelected > 0 && totalSelected < table.getCoreRowModel().flatRows.length;
|
|
2185
2186
|
},
|
|
2186
2187
|
getIsSomePageRowsSelected: () => {
|
|
2187
2188
|
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|