@tanstack/vue-table 8.5.2 → 8.5.5

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.
@@ -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":"6455-149"},{"name":"vue-table/src","children":[{"uid":"6455-151","name":"merge-proxy.ts"},{"uid":"6455-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"6455-149":{"renderedLength":138168,"gzipLength":23982,"brotliLength":0,"mainUid":"6455-148"},"6455-151":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"6455-150"},"6455-153":{"renderedLength":1748,"gzipLength":687,"brotliLength":0,"mainUid":"6455-152"}},"nodeMetas":{"6455-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6455-149"},"imported":[],"importedBy":[{"uid":"6455-152"}]},"6455-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"6455-151"},"imported":[],"importedBy":[{"uid":"6455-152"}]},"6455-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"6455-153"},"imported":[{"uid":"6455-148"},{"uid":"6455-154"},{"uid":"6455-150"}],"importedBy":[],"isEntry":true},"6455-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"6455-152"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
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":"7e4d-149"},{"name":"vue-table/src","children":[{"uid":"7e4d-151","name":"merge-proxy.ts"},{"uid":"7e4d-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"7e4d-149":{"renderedLength":138254,"gzipLength":23997,"brotliLength":0,"mainUid":"7e4d-148"},"7e4d-151":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"7e4d-150"},"7e4d-153":{"renderedLength":1748,"gzipLength":687,"brotliLength":0,"mainUid":"7e4d-152"}},"nodeMetas":{"7e4d-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"7e4d-149"},"imported":[],"importedBy":[{"uid":"7e4d-152"}]},"7e4d-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"7e4d-151"},"imported":[],"importedBy":[{"uid":"7e4d-152"}]},"7e4d-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"7e4d-153"},"imported":[{"uid":"7e4d-148"},{"uid":"7e4d-154"},{"uid":"7e4d-150"}],"importedBy":[],"isEntry":true},"7e4d-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"7e4d-152"}],"isExternal":true}},"env":{"rollup":"2.77.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4018
4018
 
4019
4019
  const run = () => {
4020
4020
  const width = window.innerWidth;
@@ -11,17 +11,17 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "6455-156"
14
+ "uid": "7e4d-156"
15
15
  },
16
16
  {
17
17
  "name": "vue-table/src",
18
18
  "children": [
19
19
  {
20
- "uid": "6455-158",
20
+ "uid": "7e4d-158",
21
21
  "name": "merge-proxy.ts"
22
22
  },
23
23
  {
24
- "uid": "6455-160",
24
+ "uid": "7e4d-160",
25
25
  "name": "index.ts"
26
26
  }
27
27
  ]
@@ -34,76 +34,76 @@
34
34
  "isRoot": true
35
35
  },
36
36
  "nodeParts": {
37
- "6455-156": {
38
- "renderedLength": 138168,
39
- "gzipLength": 23982,
37
+ "7e4d-156": {
38
+ "renderedLength": 138254,
39
+ "gzipLength": 23997,
40
40
  "brotliLength": 0,
41
- "mainUid": "6455-155"
41
+ "mainUid": "7e4d-155"
42
42
  },
43
- "6455-158": {
43
+ "7e4d-158": {
44
44
  "renderedLength": 1622,
45
45
  "gzipLength": 660,
46
46
  "brotliLength": 0,
47
- "mainUid": "6455-157"
47
+ "mainUid": "7e4d-157"
48
48
  },
49
- "6455-160": {
49
+ "7e4d-160": {
50
50
  "renderedLength": 1748,
51
51
  "gzipLength": 687,
52
52
  "brotliLength": 0,
53
- "mainUid": "6455-159"
53
+ "mainUid": "7e4d-159"
54
54
  }
55
55
  },
56
56
  "nodeMetas": {
57
- "6455-155": {
57
+ "7e4d-155": {
58
58
  "id": "/packages/table-core/build/esm/index.js",
59
59
  "moduleParts": {
60
- "index.production.js": "6455-156"
60
+ "index.production.js": "7e4d-156"
61
61
  },
62
62
  "imported": [],
63
63
  "importedBy": [
64
64
  {
65
- "uid": "6455-159"
65
+ "uid": "7e4d-159"
66
66
  }
67
67
  ]
68
68
  },
69
- "6455-157": {
69
+ "7e4d-157": {
70
70
  "id": "/packages/vue-table/src/merge-proxy.ts",
71
71
  "moduleParts": {
72
- "index.production.js": "6455-158"
72
+ "index.production.js": "7e4d-158"
73
73
  },
74
74
  "imported": [],
75
75
  "importedBy": [
76
76
  {
77
- "uid": "6455-159"
77
+ "uid": "7e4d-159"
78
78
  }
79
79
  ]
80
80
  },
81
- "6455-159": {
81
+ "7e4d-159": {
82
82
  "id": "/packages/vue-table/src/index.ts",
83
83
  "moduleParts": {
84
- "index.production.js": "6455-160"
84
+ "index.production.js": "7e4d-160"
85
85
  },
86
86
  "imported": [
87
87
  {
88
- "uid": "6455-155"
88
+ "uid": "7e4d-155"
89
89
  },
90
90
  {
91
- "uid": "6455-161"
91
+ "uid": "7e4d-161"
92
92
  },
93
93
  {
94
- "uid": "6455-157"
94
+ "uid": "7e4d-157"
95
95
  }
96
96
  ],
97
97
  "importedBy": [],
98
98
  "isEntry": true
99
99
  },
100
- "6455-161": {
100
+ "7e4d-161": {
101
101
  "id": "vue",
102
102
  "moduleParts": {},
103
103
  "imported": [],
104
104
  "importedBy": [
105
105
  {
106
- "uid": "6455-159"
106
+ "uid": "7e4d-159"
107
107
  }
108
108
  ],
109
109
  "isExternal": true
@@ -2160,14 +2160,14 @@
2160
2160
  // return table.options.enableGroupingRowSelection ?? false
2161
2161
  // },
2162
2162
  getIsAllRowsSelected: () => {
2163
- const preFilteredFlatRows = table.getPreFilteredRowModel().flatRows;
2163
+ const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
2164
2164
  const {
2165
2165
  rowSelection
2166
2166
  } = table.getState();
2167
- let isAllRowsSelected = Boolean(preFilteredFlatRows.length && Object.keys(rowSelection).length);
2167
+ let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
2168
2168
 
2169
2169
  if (isAllRowsSelected) {
2170
- if (preFilteredFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2170
+ if (preGroupedFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2171
2171
  isAllRowsSelected = false;
2172
2172
  }
2173
2173
  }
@@ -2191,7 +2191,7 @@
2191
2191
  var _table$getState$rowSe;
2192
2192
 
2193
2193
  const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
2194
- return totalSelected > 0 && totalSelected < table.getCoreRowModel().flatRows.length;
2194
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
2195
2195
  },
2196
2196
  getIsSomePageRowsSelected: () => {
2197
2197
  const paginationFlatRows = table.getPaginationRowModel().flatRows;
@@ -2976,7 +2976,8 @@
2976
2976
 
2977
2977
  return columnDefs.map(columnDef => {
2978
2978
  const column = createColumn(table, columnDef, depth, parent);
2979
- column.columns = columnDef.columns ? recurseColumns(columnDef.columns, column, depth + 1) : [];
2979
+ const groupingColumnDef = columnDef;
2980
+ column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
2980
2981
  return column;
2981
2982
  });
2982
2983
  };
@@ -3149,6 +3150,7 @@
3149
3150
  // visits: number
3150
3151
  // status: string
3151
3152
  // progress: number
3153
+ // createdAt: Date
3152
3154
  // nested: {
3153
3155
  // foo: [
3154
3156
  // {