@tanstack/vue-table 8.1.2 → 8.2.1
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 +6 -8
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +6 -8
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +25 -25
- package/build/umd/index.development.js +6 -8
- 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":"5ea7-145"},{"name":"vue-table/src","children":[{"uid":"5ea7-147","name":"merge-proxy.ts"},{"uid":"5ea7-149","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"5ea7-145":{"renderedLength":134397,"gzipLength":23086,"brotliLength":0,"mainUid":"5ea7-144"},"5ea7-147":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"5ea7-146"},"5ea7-149":{"renderedLength":1683,"gzipLength":677,"brotliLength":0,"mainUid":"5ea7-148"}},"nodeMetas":{"5ea7-144":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"5ea7-145"},"imported":[],"importedBy":[{"uid":"5ea7-148"}]},"5ea7-146":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"5ea7-147"},"imported":[],"importedBy":[{"uid":"5ea7-148"}]},"5ea7-148":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"5ea7-149"},"imported":[{"uid":"5ea7-144"},{"uid":"5ea7-150"},{"uid":"5ea7-146"}],"importedBy":[],"isEntry":true},"5ea7-150":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"5ea7-148"}],"isExternal":true}},"env":{"rollup":"2.76.0"},"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,17 +11,17 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "5ea7-152"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "vue-table/src",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"uid": "
|
|
20
|
+
"uid": "5ea7-154",
|
|
21
21
|
"name": "merge-proxy.ts"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"uid": "
|
|
24
|
+
"uid": "5ea7-156",
|
|
25
25
|
"name": "index.ts"
|
|
26
26
|
}
|
|
27
27
|
]
|
|
@@ -34,83 +34,83 @@
|
|
|
34
34
|
"isRoot": true
|
|
35
35
|
},
|
|
36
36
|
"nodeParts": {
|
|
37
|
-
"
|
|
38
|
-
"renderedLength":
|
|
39
|
-
"gzipLength":
|
|
37
|
+
"5ea7-152": {
|
|
38
|
+
"renderedLength": 134397,
|
|
39
|
+
"gzipLength": 23086,
|
|
40
40
|
"brotliLength": 0,
|
|
41
|
-
"mainUid": "
|
|
41
|
+
"mainUid": "5ea7-151"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"5ea7-154": {
|
|
44
44
|
"renderedLength": 1622,
|
|
45
45
|
"gzipLength": 660,
|
|
46
46
|
"brotliLength": 0,
|
|
47
|
-
"mainUid": "
|
|
47
|
+
"mainUid": "5ea7-153"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
49
|
+
"5ea7-156": {
|
|
50
50
|
"renderedLength": 1683,
|
|
51
51
|
"gzipLength": 677,
|
|
52
52
|
"brotliLength": 0,
|
|
53
|
-
"mainUid": "
|
|
53
|
+
"mainUid": "5ea7-155"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"nodeMetas": {
|
|
57
|
-
"
|
|
57
|
+
"5ea7-151": {
|
|
58
58
|
"id": "/packages/table-core/build/esm/index.js",
|
|
59
59
|
"moduleParts": {
|
|
60
|
-
"index.production.js": "
|
|
60
|
+
"index.production.js": "5ea7-152"
|
|
61
61
|
},
|
|
62
62
|
"imported": [],
|
|
63
63
|
"importedBy": [
|
|
64
64
|
{
|
|
65
|
-
"uid": "
|
|
65
|
+
"uid": "5ea7-155"
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"5ea7-153": {
|
|
70
70
|
"id": "/packages/vue-table/src/merge-proxy.ts",
|
|
71
71
|
"moduleParts": {
|
|
72
|
-
"index.production.js": "
|
|
72
|
+
"index.production.js": "5ea7-154"
|
|
73
73
|
},
|
|
74
74
|
"imported": [],
|
|
75
75
|
"importedBy": [
|
|
76
76
|
{
|
|
77
|
-
"uid": "
|
|
77
|
+
"uid": "5ea7-155"
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"5ea7-155": {
|
|
82
82
|
"id": "/packages/vue-table/src/index.ts",
|
|
83
83
|
"moduleParts": {
|
|
84
|
-
"index.production.js": "
|
|
84
|
+
"index.production.js": "5ea7-156"
|
|
85
85
|
},
|
|
86
86
|
"imported": [
|
|
87
87
|
{
|
|
88
|
-
"uid": "
|
|
88
|
+
"uid": "5ea7-151"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"uid": "
|
|
91
|
+
"uid": "5ea7-157"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"uid": "
|
|
94
|
+
"uid": "5ea7-153"
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
"importedBy": [],
|
|
98
98
|
"isEntry": true
|
|
99
99
|
},
|
|
100
|
-
"
|
|
100
|
+
"5ea7-157": {
|
|
101
101
|
"id": "vue",
|
|
102
102
|
"moduleParts": {},
|
|
103
103
|
"imported": [],
|
|
104
104
|
"importedBy": [
|
|
105
105
|
{
|
|
106
|
-
"uid": "
|
|
106
|
+
"uid": "5ea7-155"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
"isExternal": true
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
"env": {
|
|
113
|
-
"rollup": "2.
|
|
113
|
+
"rollup": "2.76.0"
|
|
114
114
|
},
|
|
115
115
|
"options": {
|
|
116
116
|
"gzip": true,
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
}
|
|
30
30
|
function noop() {//
|
|
31
31
|
}
|
|
32
|
-
function makeStateUpdater(key,
|
|
32
|
+
function makeStateUpdater(key, instance) {
|
|
33
33
|
return updater => {
|
|
34
|
-
|
|
34
|
+
instance.setState(old => {
|
|
35
35
|
return { ...old,
|
|
36
36
|
[key]: functionalUpdate(updater, old[key])
|
|
37
37
|
};
|
|
@@ -2891,9 +2891,9 @@
|
|
|
2891
2891
|
header: props => props.header.column.id,
|
|
2892
2892
|
footer: props => props.header.column.id,
|
|
2893
2893
|
cell: props => {
|
|
2894
|
-
var
|
|
2894
|
+
var _props$renderValue$to, _props$renderValue;
|
|
2895
2895
|
|
|
2896
|
-
return (
|
|
2896
|
+
return (_props$renderValue$to = (_props$renderValue = props.renderValue()) == null ? void 0 : _props$renderValue.toString == null ? void 0 : _props$renderValue.toString()) != null ? _props$renderValue$to : null;
|
|
2897
2897
|
},
|
|
2898
2898
|
...table._features.reduce((obj, feature) => {
|
|
2899
2899
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3423,9 +3423,7 @@
|
|
|
3423
3423
|
let facetedMinMaxValues = [firstValue, firstValue];
|
|
3424
3424
|
|
|
3425
3425
|
for (let i = 0; i < facetedRowModel.flatRows.length; i++) {
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
const value = (_facetedRowModel$flat2 = facetedRowModel.flatRows[i]) == null ? void 0 : _facetedRowModel$flat2.getValue(columnId);
|
|
3426
|
+
const value = facetedRowModel.flatRows[i].getValue(columnId);
|
|
3429
3427
|
|
|
3430
3428
|
if (value < facetedMinMaxValues[0]) {
|
|
3431
3429
|
facetedMinMaxValues[0] = value;
|
|
@@ -3575,7 +3573,7 @@
|
|
|
3575
3573
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
|
|
3576
3574
|
|
|
3577
3575
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
3578
|
-
const row = createRow(table, id,
|
|
3576
|
+
const row = createRow(table, id, leafRows[0].original, index, depth);
|
|
3579
3577
|
Object.assign(row, {
|
|
3580
3578
|
groupingColumnId: columnId,
|
|
3581
3579
|
groupingValue,
|