@tanstack/react-table 8.0.0-alpha.76 → 8.0.0-alpha.78

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":"e2ab-127"},{"name":"react-table/src/index.tsx","uid":"e2ab-129"}]}]}],"isRoot":true},"nodeParts":{"e2ab-127":{"renderedLength":139595,"gzipLength":23872,"brotliLength":0,"mainUid":"e2ab-126"},"e2ab-129":{"renderedLength":2102,"gzipLength":836,"brotliLength":0,"mainUid":"e2ab-128"}},"nodeMetas":{"e2ab-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"e2ab-127"},"imported":[],"importedBy":[{"uid":"e2ab-128"}]},"e2ab-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"e2ab-129"},"imported":[{"uid":"e2ab-130"},{"uid":"e2ab-126"}],"importedBy":[],"isEntry":true},"e2ab-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"e2ab-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":"e8ea-127"},{"name":"react-table/src/index.tsx","uid":"e8ea-129"}]}]}],"isRoot":true},"nodeParts":{"e8ea-127":{"renderedLength":139809,"gzipLength":23894,"brotliLength":0,"mainUid":"e8ea-126"},"e8ea-129":{"renderedLength":2102,"gzipLength":836,"brotliLength":0,"mainUid":"e8ea-128"}},"nodeMetas":{"e8ea-126":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"e8ea-127"},"imported":[],"importedBy":[{"uid":"e8ea-128"}]},"e8ea-128":{"id":"/packages/react-table/src/index.tsx","moduleParts":{"index.production.js":"e8ea-129"},"imported":[{"uid":"e8ea-130"},{"uid":"e8ea-126"}],"importedBy":[],"isEntry":true},"e8ea-130":{"id":"react","moduleParts":{},"imported":[],"importedBy":[{"uid":"e8ea-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": "e2ab-132"
14
+ "uid": "e8ea-132"
15
15
  },
16
16
  {
17
17
  "name": "react-table/src/index.tsx",
18
- "uid": "e2ab-134"
18
+ "uid": "e8ea-134"
19
19
  }
20
20
  ]
21
21
  }
@@ -25,55 +25,55 @@
25
25
  "isRoot": true
26
26
  },
27
27
  "nodeParts": {
28
- "e2ab-132": {
29
- "renderedLength": 139595,
30
- "gzipLength": 23872,
28
+ "e8ea-132": {
29
+ "renderedLength": 139809,
30
+ "gzipLength": 23894,
31
31
  "brotliLength": 0,
32
- "mainUid": "e2ab-131"
32
+ "mainUid": "e8ea-131"
33
33
  },
34
- "e2ab-134": {
34
+ "e8ea-134": {
35
35
  "renderedLength": 2102,
36
36
  "gzipLength": 836,
37
37
  "brotliLength": 0,
38
- "mainUid": "e2ab-133"
38
+ "mainUid": "e8ea-133"
39
39
  }
40
40
  },
41
41
  "nodeMetas": {
42
- "e2ab-131": {
42
+ "e8ea-131": {
43
43
  "id": "/packages/table-core/build/esm/index.js",
44
44
  "moduleParts": {
45
- "index.production.js": "e2ab-132"
45
+ "index.production.js": "e8ea-132"
46
46
  },
47
47
  "imported": [],
48
48
  "importedBy": [
49
49
  {
50
- "uid": "e2ab-133"
50
+ "uid": "e8ea-133"
51
51
  }
52
52
  ]
53
53
  },
54
- "e2ab-133": {
54
+ "e8ea-133": {
55
55
  "id": "/packages/react-table/src/index.tsx",
56
56
  "moduleParts": {
57
- "index.production.js": "e2ab-134"
57
+ "index.production.js": "e8ea-134"
58
58
  },
59
59
  "imported": [
60
60
  {
61
- "uid": "e2ab-135"
61
+ "uid": "e8ea-135"
62
62
  },
63
63
  {
64
- "uid": "e2ab-131"
64
+ "uid": "e8ea-131"
65
65
  }
66
66
  ],
67
67
  "importedBy": [],
68
68
  "isEntry": true
69
69
  },
70
- "e2ab-135": {
70
+ "e8ea-135": {
71
71
  "id": "react",
72
72
  "moduleParts": {},
73
73
  "imported": [],
74
74
  "importedBy": [
75
75
  {
76
- "uid": "e2ab-133"
76
+ "uid": "e8ea-133"
77
77
  }
78
78
  ],
79
79
  "isExternal": true
@@ -2704,8 +2704,10 @@
2704
2704
  },
2705
2705
  // Header Groups
2706
2706
  getHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.left, instance.getState().columnPinning.right], (allColumns, leafColumns, left, right) => {
2707
- const leftColumns = leafColumns.filter(column => left == null ? void 0 : left.includes(column.id));
2708
- const rightColumns = leafColumns.filter(column => right == null ? void 0 : right.includes(column.id));
2707
+ var _left$map$filter, _right$map$filter;
2708
+
2709
+ const leftColumns = (_left$map$filter = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
2710
+ const rightColumns = (_right$map$filter = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
2709
2711
  const centerColumns = leafColumns.filter(column => !(left != null && left.includes(column.id)) && !(right != null && right.includes(column.id)));
2710
2712
  const headerGroups = buildHeaderGroups(allColumns, [...leftColumns, ...centerColumns, ...rightColumns], instance);
2711
2713
  return headerGroups;
@@ -2729,9 +2731,9 @@
2729
2731
  }
2730
2732
  }),
2731
2733
  getLeftHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.left], (allColumns, leafColumns, left) => {
2732
- var _left$map$filter;
2734
+ var _left$map$filter2;
2733
2735
 
2734
- const orderedLeafColumns = (_left$map$filter = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter : [];
2736
+ const orderedLeafColumns = (_left$map$filter2 = left == null ? void 0 : left.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _left$map$filter2 : [];
2735
2737
  return buildHeaderGroups(allColumns, orderedLeafColumns, instance, 'left');
2736
2738
  }, {
2737
2739
  key: 'getLeftHeaderGroups',
@@ -2742,9 +2744,9 @@
2742
2744
  }
2743
2745
  }),
2744
2746
  getRightHeaderGroups: memo(() => [instance.getAllColumns(), instance.getVisibleLeafColumns(), instance.getState().columnPinning.right], (allColumns, leafColumns, right) => {
2745
- var _right$map$filter;
2747
+ var _right$map$filter2;
2746
2748
 
2747
- const orderedLeafColumns = (_right$map$filter = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter : [];
2749
+ const orderedLeafColumns = (_right$map$filter2 = right == null ? void 0 : right.map(columnId => leafColumns.find(d => d.id === columnId)).filter(Boolean)) != null ? _right$map$filter2 : [];
2748
2750
  return buildHeaderGroups(allColumns, orderedLeafColumns, instance, 'right');
2749
2751
  }, {
2750
2752
  key: 'getRightHeaderGroups',