@tanstack/react-table 8.3.0 → 8.3.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.
@@ -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":"1937-127"},{"name":"react-table/src/index.tsx","uid":"1937-129"}]}]}],"isRoot":true},"nodeParts":{"1937-127":{"renderedLength":136655,"gzipLength":23722,"brotliLength":0,"mainUid":"1937-126"},"1937-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"1937-128"}},"nodeMetas":{"1937-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"1937-127"},"imported":[],"importedBy":[{"uid":"1937-128"}]},"1937-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"1937-129"},"imported":[{"uid":"1937-130"},{"uid":"1937-126"}],"importedBy":[],"isEntry":true},"1937-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"1937-128"}],"isExternal":true}},"env":{"rollup":"2.77.0"},"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":"d409-127"},{"name":"react-table/src/index.tsx","uid":"d409-129"}]}]}],"isRoot":true},"nodeParts":{"d409-127":{"renderedLength":136731,"gzipLength":23744,"brotliLength":0,"mainUid":"d409-126"},"d409-129":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"d409-128"}},"nodeMetas":{"d409-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"d409-127"},"imported":[],"importedBy":[{"uid":"d409-128"}]},"d409-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"d409-129"},"imported":[{"uid":"d409-130"},{"uid":"d409-126"}],"importedBy":[],"isEntry":true},"d409-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d409-128"}],"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;
@@ -11,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "1937-132"
14
+ "uid": "d409-132"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "1937-134"
18
+ "uid": "d409-134"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "1937-132": {
29
- "renderedLength": 136655,
30
- "gzipLength": 23722,
28
+ "d409-132": {
29
+ "renderedLength": 136731,
30
+ "gzipLength": 23744,
31
31
  "brotliLength": 0,
32
- "mainUid": "1937-131"
32
+ "mainUid": "d409-131"
33
33
  },
34
- "1937-134": {
34
+ "d409-134": {
35
35
  "renderedLength": 1900,
36
36
  "gzipLength": 752,
37
37
  "brotliLength": 0,
38
- "mainUid": "1937-133"
38
+ "mainUid": "d409-133"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "1937-131": {
42
+ "d409-131": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "1937-132"
45
+ "index.production.js": "d409-132"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "1937-133"
50
+ "uid": "d409-133"
51
51
  }
52
52
  ]
53
53
  },
54
- "1937-133": {
54
+ "d409-133": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "1937-134"
57
+ "index.production.js": "d409-134"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "1937-135"
61
+ "uid": "d409-135"
62
62
  },
63
63
  {
64
- "uid": "1937-131"
64
+ "uid": "d409-131"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "1937-135": {
70
+ "d409-135": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "1937-133"
76
+ "uid": "d409-133"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -2178,7 +2178,7 @@
2178
2178
  let isAllRowsSelected = Boolean(preFilteredFlatRows.length && Object.keys(rowSelection).length);
2179
2179
 
2180
2180
  if (isAllRowsSelected) {
2181
- if (preFilteredFlatRows.some(row => !rowSelection[row.id])) {
2181
+ if (preFilteredFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2182
2182
  isAllRowsSelected = false;
2183
2183
  }
2184
2184
  }
@@ -2201,7 +2201,8 @@
2201
2201
  getIsSomeRowsSelected: () => {
2202
2202
  var _table$getState$rowSe;
2203
2203
 
2204
- return !table.getIsAllRowsSelected() && !!Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
2204
+ const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
2205
+ return totalSelected < table.getCoreRowModel().flatRows.length;
2205
2206
  },
2206
2207
  getIsSomePageRowsSelected: () => {
2207
2208
  const paginationFlatRows = table.getPaginationRowModel().flatRows;