@tanstack/vue-table 8.0.0-beta.5 → 8.0.0-beta.6

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.
@@ -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":"8d24-149"},{"name":"vue-table/src","children":[{"uid":"8d24-151","name":"merge-proxy.ts"},{"uid":"8d24-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"8d24-149":{"renderedLength":138784,"gzipLength":23663,"brotliLength":0,"mainUid":"8d24-148"},"8d24-151":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"8d24-150"},"8d24-153":{"renderedLength":1807,"gzipLength":709,"brotliLength":0,"mainUid":"8d24-152"}},"nodeMetas":{"8d24-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"8d24-149"},"imported":[],"importedBy":[{"uid":"8d24-152"}]},"8d24-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"8d24-151"},"imported":[],"importedBy":[{"uid":"8d24-152"}]},"8d24-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"8d24-153"},"imported":[{"uid":"8d24-148"},{"uid":"8d24-154"},{"uid":"8d24-150"}],"importedBy":[],"isEntry":true},"8d24-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d24-152"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
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":"c1f5-149"},{"name":"vue-table/src","children":[{"uid":"c1f5-151","name":"merge-proxy.ts"},{"uid":"c1f5-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"c1f5-149":{"renderedLength":138812,"gzipLength":23634,"brotliLength":0,"mainUid":"c1f5-148"},"c1f5-151":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"c1f5-150"},"c1f5-153":{"renderedLength":1807,"gzipLength":709,"brotliLength":0,"mainUid":"c1f5-152"}},"nodeMetas":{"c1f5-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"c1f5-149"},"imported":[],"importedBy":[{"uid":"c1f5-152"}]},"c1f5-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"c1f5-151"},"imported":[],"importedBy":[{"uid":"c1f5-152"}]},"c1f5-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"c1f5-153"},"imported":[{"uid":"c1f5-148"},{"uid":"c1f5-154"},{"uid":"c1f5-150"}],"importedBy":[],"isEntry":true},"c1f5-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"c1f5-152"}],"isExternal":true}},"env":{"rollup":"2.70.2"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
2673
2673
 
2674
2674
  const run = () => {
2675
2675
  const width = window.innerWidth;
@@ -11,17 +11,17 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "8d24-156"
14
+ "uid": "c1f5-156"
15
15
  },
16
16
  {
17
17
  "name": "vue-table/src",
18
18
  "children": [
19
19
  {
20
- "uid": "8d24-158",
20
+ "uid": "c1f5-158",
21
21
  "name": "merge-proxy.ts"
22
22
  },
23
23
  {
24
- "uid": "8d24-160",
24
+ "uid": "c1f5-160",
25
25
  "name": "index.ts"
26
26
  }
27
27
  ]
@@ -34,76 +34,76 @@
34
34
  "isRoot": true
35
35
  },
36
36
  "nodeParts": {
37
- "8d24-156": {
38
- "renderedLength": 138784,
39
- "gzipLength": 23663,
37
+ "c1f5-156": {
38
+ "renderedLength": 138812,
39
+ "gzipLength": 23634,
40
40
  "brotliLength": 0,
41
- "mainUid": "8d24-155"
41
+ "mainUid": "c1f5-155"
42
42
  },
43
- "8d24-158": {
43
+ "c1f5-158": {
44
44
  "renderedLength": 1622,
45
45
  "gzipLength": 660,
46
46
  "brotliLength": 0,
47
- "mainUid": "8d24-157"
47
+ "mainUid": "c1f5-157"
48
48
  },
49
- "8d24-160": {
49
+ "c1f5-160": {
50
50
  "renderedLength": 1807,
51
51
  "gzipLength": 709,
52
52
  "brotliLength": 0,
53
- "mainUid": "8d24-159"
53
+ "mainUid": "c1f5-159"
54
54
  }
55
55
  },
56
56
  "nodeMetas": {
57
- "8d24-155": {
57
+ "c1f5-155": {
58
58
  "id": "/packages/table-core/build/esm/index.js",
59
59
  "moduleParts": {
60
- "index.production.js": "8d24-156"
60
+ "index.production.js": "c1f5-156"
61
61
  },
62
62
  "imported": [],
63
63
  "importedBy": [
64
64
  {
65
- "uid": "8d24-159"
65
+ "uid": "c1f5-159"
66
66
  }
67
67
  ]
68
68
  },
69
- "8d24-157": {
69
+ "c1f5-157": {
70
70
  "id": "/packages/vue-table/src/merge-proxy.ts",
71
71
  "moduleParts": {
72
- "index.production.js": "8d24-158"
72
+ "index.production.js": "c1f5-158"
73
73
  },
74
74
  "imported": [],
75
75
  "importedBy": [
76
76
  {
77
- "uid": "8d24-159"
77
+ "uid": "c1f5-159"
78
78
  }
79
79
  ]
80
80
  },
81
- "8d24-159": {
81
+ "c1f5-159": {
82
82
  "id": "/packages/vue-table/src/index.ts",
83
83
  "moduleParts": {
84
- "index.production.js": "8d24-160"
84
+ "index.production.js": "c1f5-160"
85
85
  },
86
86
  "imported": [
87
87
  {
88
- "uid": "8d24-155"
88
+ "uid": "c1f5-155"
89
89
  },
90
90
  {
91
- "uid": "8d24-161"
91
+ "uid": "c1f5-161"
92
92
  },
93
93
  {
94
- "uid": "8d24-157"
94
+ "uid": "c1f5-157"
95
95
  }
96
96
  ],
97
97
  "importedBy": [],
98
98
  "isEntry": true
99
99
  },
100
- "8d24-161": {
100
+ "c1f5-161": {
101
101
  "id": "vue",
102
102
  "moduleParts": {},
103
103
  "imported": [],
104
104
  "importedBy": [
105
105
  {
106
- "uid": "8d24-159"
106
+ "uid": "c1f5-159"
107
107
  }
108
108
  ],
109
109
  "isExternal": true
@@ -828,7 +828,6 @@
828
828
  getDefaultOptions: instance => {
829
829
  return {
830
830
  onExpandedChange: makeStateUpdater('expanded', instance),
831
- autoResetExpanded: true,
832
831
  paginateExpandedRows: true
833
832
  };
834
833
  },
@@ -837,6 +836,8 @@
837
836
  let queued = false;
838
837
  return {
839
838
  _autoResetExpanded: () => {
839
+ var _ref, _instance$options$aut;
840
+
840
841
  if (!registered) {
841
842
  instance._queue(() => {
842
843
  registered = true;
@@ -845,11 +846,7 @@
845
846
  return;
846
847
  }
847
848
 
848
- if (instance.options.autoResetAll === false) {
849
- return;
850
- }
851
-
852
- if (instance.options.autoResetAll === true || instance.options.autoResetExpanded) {
849
+ if ((_ref = (_instance$options$aut = instance.options.autoResetAll) != null ? _instance$options$aut : instance.options.autoResetExpanded) != null ? _ref : !instance.options.manualExpanding) {
853
850
  if (queued) return;
854
851
  queued = true;
855
852
 
@@ -913,7 +910,7 @@
913
910
  });
914
911
  return maxDepth;
915
912
  },
916
- getPreExpandedRowModel: () => instance.getGroupedRowModel(),
913
+ getPreExpandedRowModel: () => instance.getSortedRowModel(),
917
914
  getExpandedRowModel: () => {
918
915
  if (!instance._getExpandedRowModel && instance.options.getExpandedRowModel) {
919
916
  instance._getExpandedRowModel = instance.options.getExpandedRowModel(instance);
@@ -1514,7 +1511,7 @@
1514
1511
 
1515
1512
  instance.setGrouping(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.grouping) != null ? _instance$initialStat : []);
1516
1513
  },
1517
- getPreGroupedRowModel: () => instance.getSortedRowModel(),
1514
+ getPreGroupedRowModel: () => instance.getFilteredRowModel(),
1518
1515
  getGroupedRowModel: () => {
1519
1516
  if (!instance._getGroupedRowModel && instance.options.getGroupedRowModel) {
1520
1517
  instance._getGroupedRowModel = instance.options.getGroupedRowModel(instance);
@@ -2127,7 +2124,7 @@
2127
2124
  return (_instance$options$deb2 = instance.options.debugAll) != null ? _instance$options$deb2 : instance.options.debugTable;
2128
2125
  }
2129
2126
  }),
2130
- getGroupedSelectedRowModel: memo(() => [instance.getState().rowSelection, instance.getGroupedRowModel()], (rowSelection, rowModel) => {
2127
+ getGroupedSelectedRowModel: memo(() => [instance.getState().rowSelection, instance.getSortedRowModel()], (rowSelection, rowModel) => {
2131
2128
  if (!Object.keys(rowSelection).length) {
2132
2129
  return {
2133
2130
  rows: [],
@@ -2677,7 +2674,7 @@
2677
2674
 
2678
2675
  instance.setSorting(defaultState ? [] : (_instance$initialStat = (_instance$initialStat2 = instance.initialState) == null ? void 0 : _instance$initialStat2.sorting) != null ? _instance$initialStat : []);
2679
2676
  },
2680
- getPreSortedRowModel: () => instance.getFilteredRowModel(),
2677
+ getPreSortedRowModel: () => instance.getGroupedRowModel(),
2681
2678
  getSortedRowModel: () => {
2682
2679
  if (!instance._getSortedRowModel && instance.options.getSortedRowModel) {
2683
2680
  instance._getSortedRowModel = instance.options.getSortedRowModel(instance);