@tanstack/react-table 8.5.25 → 8.5.27

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.
@@ -4024,7 +4024,7 @@ var drawChart = (function (exports) {
4024
4024
  </script>
4025
4025
  <script>
4026
4026
  /*<!--*/
4027
- const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"b1e2-127"},{"name":"react-table/src/index.tsx","uid":"b1e2-129"}]}]}],"isRoot":true},"nodeParts":{"b1e2-127":{"renderedLength":126544,"gzipLength":22417,"brotliLength":0,"mainUid":"b1e2-126"},"b1e2-129":{"renderedLength":1923,"gzipLength":755,"brotliLength":0,"mainUid":"b1e2-128"}},"nodeMetas":{"b1e2-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"b1e2-127"},"imported":[],"importedBy":[{"uid":"b1e2-128"}]},"b1e2-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"b1e2-129"},"imported":[{"uid":"b1e2-130"},{"uid":"b1e2-126"}],"importedBy":[],"isEntry":true},"b1e2-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"b1e2-128"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4027
+ const data = {"version":2,"tree":{"name":"root","children":[{"name":"index.production.js","children":[{"name":"packages","children":[{"name":"table-core/build/esm/index.js","uid":"d5f8-127"},{"name":"react-table/src/index.tsx","uid":"d5f8-129"}]}]}],"isRoot":true},"nodeParts":{"d5f8-127":{"renderedLength":126592,"gzipLength":22412,"brotliLength":0,"mainUid":"d5f8-126"},"d5f8-129":{"renderedLength":1923,"gzipLength":755,"brotliLength":0,"mainUid":"d5f8-128"}},"nodeMetas":{"d5f8-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"d5f8-127"},"imported":[],"importedBy":[{"uid":"d5f8-128"}]},"d5f8-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"d5f8-129"},"imported":[{"uid":"d5f8-130"},{"uid":"d5f8-126"}],"importedBy":[],"isEntry":true},"d5f8-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"d5f8-128"}],"isExternal":true}},"env":{"rollup":"2.79.1"},"options":{"gzip":true,"brotli":false,"sourcemap":false}};
4028
4028
 
4029
4029
  const run = () => {
4030
4030
  const width = window.innerWidth;
@@ -11,11 +11,11 @@
11
11
  "children": [
12
12
  {
13
13
  "name": "table-core/build/esm/index.js",
14
- "uid": "b1e2-132"
14
+ "uid": "d5f8-132"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "b1e2-134"
18
+ "uid": "d5f8-134"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "b1e2-132": {
29
- "renderedLength": 126544,
30
- "gzipLength": 22417,
28
+ "d5f8-132": {
29
+ "renderedLength": 126592,
30
+ "gzipLength": 22412,
31
31
  "brotliLength": 0,
32
- "mainUid": "b1e2-131"
32
+ "mainUid": "d5f8-131"
33
33
  },
34
- "b1e2-134": {
34
+ "d5f8-134": {
35
35
  "renderedLength": 1923,
36
36
  "gzipLength": 755,
37
37
  "brotliLength": 0,
38
- "mainUid": "b1e2-133"
38
+ "mainUid": "d5f8-133"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "b1e2-131": {
42
+ "d5f8-131": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "b1e2-132"
45
+ "index.production.js": "d5f8-132"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "b1e2-133"
50
+ "uid": "d5f8-133"
51
51
  }
52
52
  ]
53
53
  },
54
- "b1e2-133": {
54
+ "d5f8-133": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "b1e2-134"
57
+ "index.production.js": "d5f8-134"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "b1e2-135"
61
+ "uid": "d5f8-135"
62
62
  },
63
63
  {
64
- "uid": "b1e2-131"
64
+ "uid": "d5f8-131"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "b1e2-135": {
70
+ "d5f8-135": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "b1e2-133"
76
+ "uid": "d5f8-133"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -888,12 +888,12 @@
888
888
  const includesString = (row, columnId, filterValue) => {
889
889
  var _row$getValue;
890
890
  const search = filterValue.toLowerCase();
891
- return (_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search);
891
+ return Boolean((_row$getValue = row.getValue(columnId)) == null ? void 0 : _row$getValue.toLowerCase().includes(search));
892
892
  };
893
893
  includesString.autoRemove = val => testFalsey(val);
894
894
  const includesStringSensitive = (row, columnId, filterValue) => {
895
895
  var _row$getValue2;
896
- return (_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue);
896
+ return Boolean((_row$getValue2 = row.getValue(columnId)) == null ? void 0 : _row$getValue2.includes(filterValue));
897
897
  };
898
898
  includesStringSensitive.autoRemove = val => testFalsey(val);
899
899
  const equalsString = (row, columnId, filterValue) => {
@@ -3172,11 +3172,11 @@
3172
3172
 
3173
3173
  // If there are sub-rows, sort them
3174
3174
  sortedData.forEach(row => {
3175
+ var _row$subRows;
3175
3176
  sortedFlatRows.push(row);
3176
- if (!row.subRows || row.subRows.length <= 1) {
3177
- return;
3177
+ if ((_row$subRows = row.subRows) != null && _row$subRows.length) {
3178
+ row.subRows = sortData(row.subRows);
3178
3179
  }
3179
- row.subRows = sortData(row.subRows);
3180
3180
  });
3181
3181
  return sortedData;
3182
3182
  };