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

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