@tanstack/react-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-127"},{"name":"react-table/src/index.tsx","uid":"6455-129"}]}]}],"isRoot":true},"nodeParts":{"6455-127":{"renderedLength":138168,"gzipLength":23982,"brotliLength":0,"mainUid":"6455-126"},"6455-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"6455-128"}},"nodeMetas":{"6455-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6455-127"},"imported":[],"importedBy":[{"uid":"6455-128"}]},"6455-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"6455-129"},"imported":[{"uid":"6455-130"},{"uid":"6455-126"}],"importedBy":[],"isEntry":true},"6455-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"6455-128"}],"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-127"},{"name":"react-table/src/index.tsx","uid":"7e4d-129"}]}]}],"isRoot":true},"nodeParts":{"7e4d-127":{"renderedLength":138254,"gzipLength":23997,"brotliLength":0,"mainUid":"7e4d-126"},"7e4d-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"7e4d-128"}},"nodeMetas":{"7e4d-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"7e4d-127"},"imported":[],"importedBy":[{"uid":"7e4d-128"}]},"7e4d-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"7e4d-129"},"imported":[{"uid":"7e4d-130"},{"uid":"7e4d-126"}],"importedBy":[],"isEntry":true},"7e4d-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"7e4d-128"}],"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,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "6455-132"
14
+ "uid": "7e4d-132"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "6455-134"
18
+ "uid": "7e4d-134"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "6455-132": {
29
- "renderedLength": 138168,
30
- "gzipLength": 23982,
28
+ "7e4d-132": {
29
+ "renderedLength": 138254,
30
+ "gzipLength": 23997,
31
31
  "brotliLength": 0,
32
- "mainUid": "6455-131"
32
+ "mainUid": "7e4d-131"
33
33
  },
34
- "6455-134": {
34
+ "7e4d-134": {
35
35
  "renderedLength": 1900,
36
36
  "gzipLength": 752,
37
37
  "brotliLength": 0,
38
- "mainUid": "6455-133"
38
+ "mainUid": "7e4d-133"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "6455-131": {
42
+ "7e4d-131": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "6455-132"
45
+ "index.production.js": "7e4d-132"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "6455-133"
50
+ "uid": "7e4d-133"
51
51
  }
52
52
  ]
53
53
  },
54
- "6455-133": {
54
+ "7e4d-133": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "6455-134"
57
+ "index.production.js": "7e4d-134"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "6455-135"
61
+ "uid": "7e4d-135"
62
62
  },
63
63
  {
64
- "uid": "6455-131"
64
+ "uid": "7e4d-131"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "6455-135": {
70
+ "7e4d-135": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "6455-133"
76
+ "uid": "7e4d-133"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -2180,14 +2180,14 @@
2180
2180
  // return table.options.enableGroupingRowSelection ?? false
2181
2181
  // },
2182
2182
  getIsAllRowsSelected: () => {
2183
- const preFilteredFlatRows = table.getPreFilteredRowModel().flatRows;
2183
+ const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
2184
2184
  const {
2185
2185
  rowSelection
2186
2186
  } = table.getState();
2187
- let isAllRowsSelected = Boolean(preFilteredFlatRows.length && Object.keys(rowSelection).length);
2187
+ let isAllRowsSelected = Boolean(preGroupedFlatRows.length && Object.keys(rowSelection).length);
2188
2188
 
2189
2189
  if (isAllRowsSelected) {
2190
- if (preFilteredFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2190
+ if (preGroupedFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2191
2191
  isAllRowsSelected = false;
2192
2192
  }
2193
2193
  }
@@ -2211,7 +2211,7 @@
2211
2211
  var _table$getState$rowSe;
2212
2212
 
2213
2213
  const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
2214
- return totalSelected > 0 && totalSelected < table.getCoreRowModel().flatRows.length;
2214
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
2215
2215
  },
2216
2216
  getIsSomePageRowsSelected: () => {
2217
2217
  const paginationFlatRows = table.getPaginationRowModel().flatRows;
@@ -2996,7 +2996,8 @@
2996
2996
 
2997
2997
  return columnDefs.map(columnDef => {
2998
2998
  const column = createColumn(table, columnDef, depth, parent);
2999
- column.columns = columnDef.columns ? recurseColumns(columnDef.columns, column, depth + 1) : [];
2999
+ const groupingColumnDef = columnDef;
3000
+ column.columns = groupingColumnDef.columns ? recurseColumns(groupingColumnDef.columns, column, depth + 1) : [];
3000
3001
  return column;
3001
3002
  });
3002
3003
  };
@@ -3169,6 +3170,7 @@
3169
3170
  // visits: number
3170
3171
  // status: string
3171
3172
  // progress: number
3173
+ // createdAt: Date
3172
3174
  // nested: {
3173
3175
  // foo: [
3174
3176
  // {