@tanstack/react-table 8.2.2 → 8.2.3

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":"a9b1-123"},{"name":"react-table/src/index.tsx","uid":"a9b1-125"}]}]}],"isRoot":true},"nodeParts":{"a9b1-123":{"renderedLength":134594,"gzipLength":23188,"brotliLength":0,"mainUid":"a9b1-122"},"a9b1-125":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"a9b1-124"}},"nodeMetas":{"a9b1-122":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"a9b1-123"},"imported":[],"importedBy":[{"uid":"a9b1-124"}]},"a9b1-124":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"a9b1-125"},"imported":[{"uid":"a9b1-126"},{"uid":"a9b1-122"}],"importedBy":[],"isEntry":true},"a9b1-126":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"a9b1-124"}],"isExternal":true}},"env":{"rollup":"2.76.0"},"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":"6aaf-123"},{"name":"react-table/src/index.tsx","uid":"6aaf-125"}]}]}],"isRoot":true},"nodeParts":{"6aaf-123":{"renderedLength":134724,"gzipLength":23206,"brotliLength":0,"mainUid":"6aaf-122"},"6aaf-125":{"renderedLength":1900,"gzipLength":752,"brotliLength":0,"mainUid":"6aaf-124"}},"nodeMetas":{"6aaf-122":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"6aaf-123"},"imported":[],"importedBy":[{"uid":"6aaf-124"}]},"6aaf-124":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"6aaf-125"},"imported":[{"uid":"6aaf-126"},{"uid":"6aaf-122"}],"importedBy":[],"isEntry":true},"6aaf-126":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"6aaf-124"}],"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;
@@ -11,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "a9b1-128"
14
+ "uid": "6aaf-128"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "a9b1-130"
18
+ "uid": "6aaf-130"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "a9b1-128": {
29
- "renderedLength": 134594,
30
- "gzipLength": 23188,
28
+ "6aaf-128": {
29
+ "renderedLength": 134724,
30
+ "gzipLength": 23206,
31
31
  "brotliLength": 0,
32
- "mainUid": "a9b1-127"
32
+ "mainUid": "6aaf-127"
33
33
  },
34
- "a9b1-130": {
34
+ "6aaf-130": {
35
35
  "renderedLength": 1900,
36
36
  "gzipLength": 752,
37
37
  "brotliLength": 0,
38
- "mainUid": "a9b1-129"
38
+ "mainUid": "6aaf-129"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "a9b1-127": {
42
+ "6aaf-127": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "a9b1-128"
45
+ "index.production.js": "6aaf-128"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "a9b1-129"
50
+ "uid": "6aaf-129"
51
51
  }
52
52
  ]
53
53
  },
54
- "a9b1-129": {
54
+ "6aaf-129": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "a9b1-130"
57
+ "index.production.js": "6aaf-130"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "a9b1-131"
61
+ "uid": "6aaf-131"
62
62
  },
63
63
  {
64
- "uid": "a9b1-127"
64
+ "uid": "6aaf-127"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "a9b1-131": {
70
+ "6aaf-131": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "a9b1-129"
76
+ "uid": "6aaf-129"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -2013,6 +2013,10 @@
2013
2013
 
2014
2014
  if (value) {
2015
2015
  preGroupedFlatRows.forEach(row => {
2016
+ if (!row.getCanSelect()) {
2017
+ return;
2018
+ }
2019
+
2016
2020
  rowSelection[row.id] = true;
2017
2021
  });
2018
2022
  } else {
@@ -2287,7 +2291,9 @@
2287
2291
  Object.keys(selectedRowIds).forEach(key => delete selectedRowIds[key]);
2288
2292
  }
2289
2293
 
2290
- selectedRowIds[id] = true;
2294
+ if (row.getCanSelect()) {
2295
+ selectedRowIds[id] = true;
2296
+ }
2291
2297
  } else {
2292
2298
  delete selectedRowIds[id];
2293
2299
  } // }