@tanstack/react-table 8.0.0-beta.9 → 8.0.0

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":"612e-127"},{"name":"react-table/src/index.tsx","uid":"612e-129"}]}]}],"isRoot":true},"nodeParts":{"612e-127":{"renderedLength":139240,"gzipLength":23684,"brotliLength":0,"mainUid":"612e-126"},"612e-129":{"renderedLength":2135,"gzipLength":854,"brotliLength":0,"mainUid":"612e-128"}},"nodeMetas":{"612e-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"612e-127"},"imported":[],"importedBy":[{"uid":"612e-128"}]},"612e-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"612e-129"},"imported":[{"uid":"612e-130"},{"uid":"612e-126"}],"importedBy":[],"isEntry":true},"612e-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"612e-128"}],"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":"0a0b-127"},{"name":"react-table/src/index.tsx","uid":"0a0b-129"}]}]}],"isRoot":true},"nodeParts":{"0a0b-127":{"renderedLength":139321,"gzipLength":23694,"brotliLength":0,"mainUid":"0a0b-126"},"0a0b-129":{"renderedLength":2135,"gzipLength":854,"brotliLength":0,"mainUid":"0a0b-128"}},"nodeMetas":{"0a0b-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"0a0b-127"},"imported":[],"importedBy":[{"uid":"0a0b-128"}]},"0a0b-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"0a0b-129"},"imported":[{"uid":"0a0b-130"},{"uid":"0a0b-126"}],"importedBy":[],"isEntry":true},"0a0b-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"0a0b-128"}],"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,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "612e-132"
14
+ "uid": "0a0b-132"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "612e-134"
18
+ "uid": "0a0b-134"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "612e-132": {
29
- "renderedLength": 139240,
30
- "gzipLength": 23684,
28
+ "0a0b-132": {
29
+ "renderedLength": 139321,
30
+ "gzipLength": 23694,
31
31
  "brotliLength": 0,
32
- "mainUid": "612e-131"
32
+ "mainUid": "0a0b-131"
33
33
  },
34
- "612e-134": {
34
+ "0a0b-134": {
35
35
  "renderedLength": 2135,
36
36
  "gzipLength": 854,
37
37
  "brotliLength": 0,
38
- "mainUid": "612e-133"
38
+ "mainUid": "0a0b-133"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "612e-131": {
42
+ "0a0b-131": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "612e-132"
45
+ "index.production.js": "0a0b-132"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "612e-133"
50
+ "uid": "0a0b-133"
51
51
  }
52
52
  ]
53
53
  },
54
- "612e-133": {
54
+ "0a0b-133": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "612e-134"
57
+ "index.production.js": "0a0b-134"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "612e-135"
61
+ "uid": "0a0b-135"
62
62
  },
63
63
  {
64
- "uid": "612e-131"
64
+ "uid": "0a0b-131"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "612e-135": {
70
+ "0a0b-135": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "612e-133"
76
+ "uid": "0a0b-133"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -1355,7 +1355,10 @@
1355
1355
  const sum = (columnId, _leafRows, childRows) => {
1356
1356
  // It's faster to just add the aggregations together instead of
1357
1357
  // process leaf nodes individually
1358
- return childRows.reduce((sum, next) => sum + (typeof next === 'number' ? next : 0), 0);
1358
+ return childRows.reduce((sum, next) => {
1359
+ const nextValue = next.getValue(columnId);
1360
+ return sum + (typeof nextValue === 'number' ? nextValue : 0);
1361
+ }, 0);
1359
1362
  };
1360
1363
 
1361
1364
  const min = (columnId, _leafRows, childRows) => {