@tanstack/vue-table 8.0.0-beta.2 → 8.0.0-beta.5
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.
- package/build/cjs/table-core/build/esm/index.js +78 -33
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/cjs/vue-table/src/index.js +1 -0
- package/build/cjs/vue-table/src/index.js.map +1 -1
- package/build/esm/index.js +79 -33
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +26 -26
- package/build/umd/index.development.js +79 -33
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
package/build/stats-html.html
CHANGED
|
@@ -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":"
|
|
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":"8d24-149"},{"name":"vue-table/src","children":[{"uid":"8d24-151","name":"merge-proxy.ts"},{"uid":"8d24-153","name":"index.ts"}]}]}]}],"isRoot":true},"nodeParts":{"8d24-149":{"renderedLength":138784,"gzipLength":23663,"brotliLength":0,"mainUid":"8d24-148"},"8d24-151":{"renderedLength":1622,"gzipLength":660,"brotliLength":0,"mainUid":"8d24-150"},"8d24-153":{"renderedLength":1807,"gzipLength":709,"brotliLength":0,"mainUid":"8d24-152"}},"nodeMetas":{"8d24-148":{"id":"/packages/table-core/build/esm/index.js","moduleParts":{"index.production.js":"8d24-149"},"imported":[],"importedBy":[{"uid":"8d24-152"}]},"8d24-150":{"id":"/packages/vue-table/src/merge-proxy.ts","moduleParts":{"index.production.js":"8d24-151"},"imported":[],"importedBy":[{"uid":"8d24-152"}]},"8d24-152":{"id":"/packages/vue-table/src/index.ts","moduleParts":{"index.production.js":"8d24-153"},"imported":[{"uid":"8d24-148"},{"uid":"8d24-154"},{"uid":"8d24-150"}],"importedBy":[],"isEntry":true},"8d24-154":{"id":"vue","moduleParts":{},"imported":[],"importedBy":[{"uid":"8d24-152"}],"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;
|
package/build/stats-react.json
CHANGED
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"children": [
|
|
12
12
|
{
|
|
13
13
|
"name": "table-core/build/esm/index.js",
|
|
14
|
-
"uid": "
|
|
14
|
+
"uid": "8d24-156"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"name": "vue-table/src",
|
|
18
18
|
"children": [
|
|
19
19
|
{
|
|
20
|
-
"uid": "
|
|
20
|
+
"uid": "8d24-158",
|
|
21
21
|
"name": "merge-proxy.ts"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"uid": "
|
|
24
|
+
"uid": "8d24-160",
|
|
25
25
|
"name": "index.ts"
|
|
26
26
|
}
|
|
27
27
|
]
|
|
@@ -34,76 +34,76 @@
|
|
|
34
34
|
"isRoot": true
|
|
35
35
|
},
|
|
36
36
|
"nodeParts": {
|
|
37
|
-
"
|
|
38
|
-
"renderedLength":
|
|
39
|
-
"gzipLength":
|
|
37
|
+
"8d24-156": {
|
|
38
|
+
"renderedLength": 138784,
|
|
39
|
+
"gzipLength": 23663,
|
|
40
40
|
"brotliLength": 0,
|
|
41
|
-
"mainUid": "
|
|
41
|
+
"mainUid": "8d24-155"
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"8d24-158": {
|
|
44
44
|
"renderedLength": 1622,
|
|
45
45
|
"gzipLength": 660,
|
|
46
46
|
"brotliLength": 0,
|
|
47
|
-
"mainUid": "
|
|
47
|
+
"mainUid": "8d24-157"
|
|
48
48
|
},
|
|
49
|
-
"
|
|
50
|
-
"renderedLength":
|
|
51
|
-
"gzipLength":
|
|
49
|
+
"8d24-160": {
|
|
50
|
+
"renderedLength": 1807,
|
|
51
|
+
"gzipLength": 709,
|
|
52
52
|
"brotliLength": 0,
|
|
53
|
-
"mainUid": "
|
|
53
|
+
"mainUid": "8d24-159"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"nodeMetas": {
|
|
57
|
-
"
|
|
57
|
+
"8d24-155": {
|
|
58
58
|
"id": "/packages/table-core/build/esm/index.js",
|
|
59
59
|
"moduleParts": {
|
|
60
|
-
"index.production.js": "
|
|
60
|
+
"index.production.js": "8d24-156"
|
|
61
61
|
},
|
|
62
62
|
"imported": [],
|
|
63
63
|
"importedBy": [
|
|
64
64
|
{
|
|
65
|
-
"uid": "
|
|
65
|
+
"uid": "8d24-159"
|
|
66
66
|
}
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
|
-
"
|
|
69
|
+
"8d24-157": {
|
|
70
70
|
"id": "/packages/vue-table/src/merge-proxy.ts",
|
|
71
71
|
"moduleParts": {
|
|
72
|
-
"index.production.js": "
|
|
72
|
+
"index.production.js": "8d24-158"
|
|
73
73
|
},
|
|
74
74
|
"imported": [],
|
|
75
75
|
"importedBy": [
|
|
76
76
|
{
|
|
77
|
-
"uid": "
|
|
77
|
+
"uid": "8d24-159"
|
|
78
78
|
}
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"
|
|
81
|
+
"8d24-159": {
|
|
82
82
|
"id": "/packages/vue-table/src/index.ts",
|
|
83
83
|
"moduleParts": {
|
|
84
|
-
"index.production.js": "
|
|
84
|
+
"index.production.js": "8d24-160"
|
|
85
85
|
},
|
|
86
86
|
"imported": [
|
|
87
87
|
{
|
|
88
|
-
"uid": "
|
|
88
|
+
"uid": "8d24-155"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
|
-
"uid": "
|
|
91
|
+
"uid": "8d24-161"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
|
-
"uid": "
|
|
94
|
+
"uid": "8d24-157"
|
|
95
95
|
}
|
|
96
96
|
],
|
|
97
97
|
"importedBy": [],
|
|
98
98
|
"isEntry": true
|
|
99
99
|
},
|
|
100
|
-
"
|
|
100
|
+
"8d24-161": {
|
|
101
101
|
"id": "vue",
|
|
102
102
|
"moduleParts": {},
|
|
103
103
|
"imported": [],
|
|
104
104
|
"importedBy": [
|
|
105
105
|
{
|
|
106
|
-
"uid": "
|
|
106
|
+
"uid": "8d24-159"
|
|
107
107
|
}
|
|
108
108
|
],
|
|
109
109
|
"isExternal": true
|
|
@@ -1108,7 +1108,6 @@
|
|
|
1108
1108
|
},
|
|
1109
1109
|
createColumn: (column, instance) => {
|
|
1110
1110
|
return {
|
|
1111
|
-
filterFn: column.filterFn,
|
|
1112
1111
|
getAutoFilterFn: () => {
|
|
1113
1112
|
const firstRow = instance.getCoreRowModel().flatRows[0];
|
|
1114
1113
|
const value = firstRow == null ? void 0 : firstRow.getValue(column.id);
|
|
@@ -1139,7 +1138,7 @@
|
|
|
1139
1138
|
var _ref;
|
|
1140
1139
|
|
|
1141
1140
|
const userFilterFns = instance.options.filterFns;
|
|
1142
|
-
return isFunction(column.filterFn) ? column.filterFn : column.filterFn === 'auto' ? column.getAutoFilterFn() : (_ref = userFilterFns == null ? void 0 : userFilterFns[column.filterFn]) != null ? _ref : filterFns[column.filterFn];
|
|
1141
|
+
return isFunction(column.columnDef.filterFn) ? column.columnDef.filterFn : column.columnDef.filterFn === 'auto' ? column.getAutoFilterFn() : (_ref = userFilterFns == null ? void 0 : userFilterFns[column.columnDef.filterFn]) != null ? _ref : filterFns[column.columnDef.filterFn];
|
|
1143
1142
|
},
|
|
1144
1143
|
getCanFilter: () => {
|
|
1145
1144
|
var _column$columnDef$ena, _instance$options$ena, _instance$options$ena2;
|
|
@@ -1428,6 +1427,11 @@
|
|
|
1428
1427
|
const Grouping = {
|
|
1429
1428
|
getDefaultColumnDef: () => {
|
|
1430
1429
|
return {
|
|
1430
|
+
aggregatedCell: props => {
|
|
1431
|
+
var _props$getValue$toStr, _props$getValue;
|
|
1432
|
+
|
|
1433
|
+
return (_props$getValue$toStr = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _props$getValue$toStr : null;
|
|
1434
|
+
},
|
|
1431
1435
|
aggregationFn: 'auto'
|
|
1432
1436
|
};
|
|
1433
1437
|
},
|
|
@@ -1488,8 +1492,6 @@
|
|
|
1488
1492
|
if (Object.prototype.toString.call(value) === '[object Date]') {
|
|
1489
1493
|
return aggregationFns.extent;
|
|
1490
1494
|
}
|
|
1491
|
-
|
|
1492
|
-
return aggregationFns.count;
|
|
1493
1495
|
},
|
|
1494
1496
|
getAggregationFn: () => {
|
|
1495
1497
|
var _ref4;
|
|
@@ -1500,7 +1502,7 @@
|
|
|
1500
1502
|
throw new Error();
|
|
1501
1503
|
}
|
|
1502
1504
|
|
|
1503
|
-
return isFunction(column.aggregationFn) ? column.aggregationFn : column.aggregationFn === 'auto' ? column.getAutoAggregationFn() : (_ref4 = userAggregationFns == null ? void 0 : userAggregationFns[column.aggregationFn]) != null ? _ref4 : aggregationFns[column.aggregationFn];
|
|
1505
|
+
return isFunction(column.columnDef.aggregationFn) ? column.columnDef.aggregationFn : column.columnDef.aggregationFn === 'auto' ? column.getAutoAggregationFn() : (_ref4 = userAggregationFns == null ? void 0 : userAggregationFns[column.columnDef.aggregationFn]) != null ? _ref4 : aggregationFns[column.columnDef.aggregationFn];
|
|
1504
1506
|
}
|
|
1505
1507
|
};
|
|
1506
1508
|
},
|
|
@@ -1533,6 +1535,12 @@
|
|
|
1533
1535
|
};
|
|
1534
1536
|
},
|
|
1535
1537
|
createCell: (cell, column, row, instance) => {
|
|
1538
|
+
const getRenderValue = () => {
|
|
1539
|
+
var _cell$getValue;
|
|
1540
|
+
|
|
1541
|
+
return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : instance.options.renderFallbackValue;
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1536
1544
|
return {
|
|
1537
1545
|
getIsGrouped: () => column.getIsGrouped() && column.id === row.groupingColumnId,
|
|
1538
1546
|
getIsPlaceholder: () => !cell.getIsGrouped() && column.getIsGrouped(),
|
|
@@ -1542,15 +1550,19 @@
|
|
|
1542
1550
|
return !cell.getIsGrouped() && !cell.getIsPlaceholder() && ((_row$subRows = row.subRows) == null ? void 0 : _row$subRows.length) > 1;
|
|
1543
1551
|
},
|
|
1544
1552
|
renderAggregatedCell: () => {
|
|
1545
|
-
|
|
1553
|
+
{
|
|
1554
|
+
if (!column.columnDef.aggregatedCell) {
|
|
1555
|
+
console.warn('A columnDef.aggregatedCell template is recommended for displaying aggregated values.');
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1546
1558
|
|
|
1547
|
-
const template =
|
|
1559
|
+
const template = column.columnDef.aggregatedCell || column.columnDef.cell;
|
|
1548
1560
|
return template ? instance._render(template, {
|
|
1549
1561
|
instance,
|
|
1550
1562
|
column,
|
|
1551
1563
|
row,
|
|
1552
1564
|
cell,
|
|
1553
|
-
getValue:
|
|
1565
|
+
getValue: getRenderValue
|
|
1554
1566
|
}) : null;
|
|
1555
1567
|
}
|
|
1556
1568
|
};
|
|
@@ -2020,11 +2032,11 @@
|
|
|
2020
2032
|
});
|
|
2021
2033
|
},
|
|
2022
2034
|
toggleAllPageRowsSelected: value => instance.setRowSelection(old => {
|
|
2023
|
-
typeof value !== 'undefined' ? value : !instance.getIsAllPageRowsSelected();
|
|
2035
|
+
const resolvedValue = typeof value !== 'undefined' ? value : !instance.getIsAllPageRowsSelected();
|
|
2024
2036
|
const rowSelection = { ...old
|
|
2025
2037
|
};
|
|
2026
2038
|
instance.getRowModel().rows.forEach(row => {
|
|
2027
|
-
mutateRowIsSelected(rowSelection, row.id,
|
|
2039
|
+
mutateRowIsSelected(rowSelection, row.id, resolvedValue, instance);
|
|
2028
2040
|
});
|
|
2029
2041
|
return rowSelection;
|
|
2030
2042
|
}),
|
|
@@ -2179,7 +2191,7 @@
|
|
|
2179
2191
|
},
|
|
2180
2192
|
getIsSomePageRowsSelected: () => {
|
|
2181
2193
|
const paginationFlatRows = instance.getPaginationRowModel().flatRows;
|
|
2182
|
-
return instance.getIsAllPageRowsSelected() ? false :
|
|
2194
|
+
return instance.getIsAllPageRowsSelected() ? false : paginationFlatRows.some(d => d.getIsSelected() || d.getIsSomeSelected());
|
|
2183
2195
|
},
|
|
2184
2196
|
getToggleAllRowsSelectedHandler: () => {
|
|
2185
2197
|
return e => {
|
|
@@ -2533,8 +2545,10 @@
|
|
|
2533
2545
|
// })
|
|
2534
2546
|
// return
|
|
2535
2547
|
// }
|
|
2548
|
+
// this needs to be outside of instance.setSorting to be in sync with rerender
|
|
2549
|
+
const nextSortingOrder = column.getNextSortingOrder();
|
|
2536
2550
|
instance.setSorting(old => {
|
|
2537
|
-
var
|
|
2551
|
+
var _instance$options$ena, _instance$options$ena2;
|
|
2538
2552
|
|
|
2539
2553
|
// Find any existing sorting for this column
|
|
2540
2554
|
const existingSorting = old == null ? void 0 : old.find(d => d.id === column.id);
|
|
@@ -2559,30 +2573,29 @@
|
|
|
2559
2573
|
} else {
|
|
2560
2574
|
sortAction = 'replace';
|
|
2561
2575
|
}
|
|
2562
|
-
}
|
|
2576
|
+
} // Handle toggle states that will remove the sorting
|
|
2563
2577
|
|
|
2564
|
-
const sortDescFirst = (_ref2 = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : instance.options.sortDescFirst) != null ? _ref2 : column.getAutoSortDir() === 'desc'; // Handle toggle states that will remove the sorting
|
|
2565
2578
|
|
|
2566
2579
|
if (sortAction === 'toggle' && ( // Must be toggling
|
|
2567
2580
|
(_instance$options$ena = instance.options.enableSortingRemoval) != null ? _instance$options$ena : true) && // If enableSortRemove, enable in general
|
|
2568
2581
|
!hasDescDefined && ( // Must not be setting desc
|
|
2569
|
-
multi ? (_instance$options$ena2 = instance.options.enableMultiRemove) != null ? _instance$options$ena2 : true : true) &&
|
|
2570
|
-
|
|
2571
|
-
|
|
2582
|
+
multi ? (_instance$options$ena2 = instance.options.enableMultiRemove) != null ? _instance$options$ena2 : true : true) && // If multi, don't allow if enableMultiRemove
|
|
2583
|
+
!nextSortingOrder // Finally, detect if it should indeed be removed
|
|
2584
|
+
) {
|
|
2572
2585
|
sortAction = 'remove';
|
|
2573
2586
|
}
|
|
2574
2587
|
|
|
2575
2588
|
if (sortAction === 'replace') {
|
|
2576
2589
|
newSorting = [{
|
|
2577
2590
|
id: column.id,
|
|
2578
|
-
desc: hasDescDefined ? desc :
|
|
2591
|
+
desc: hasDescDefined ? desc : nextSortingOrder === 'desc'
|
|
2579
2592
|
}];
|
|
2580
2593
|
} else if (sortAction === 'add' && old != null && old.length) {
|
|
2581
2594
|
var _instance$options$max;
|
|
2582
2595
|
|
|
2583
2596
|
newSorting = [...old, {
|
|
2584
2597
|
id: column.id,
|
|
2585
|
-
desc: hasDescDefined ? desc :
|
|
2598
|
+
desc: hasDescDefined ? desc : nextSortingOrder === 'desc'
|
|
2586
2599
|
}]; // Take latest n columns
|
|
2587
2600
|
|
|
2588
2601
|
newSorting.splice(0, newSorting.length - ((_instance$options$max = instance.options.maxMultiSortColCount) != null ? _instance$options$max : Number.MAX_SAFE_INTEGER));
|
|
@@ -2591,7 +2604,7 @@
|
|
|
2591
2604
|
newSorting = old.map(d => {
|
|
2592
2605
|
if (d.id === column.id) {
|
|
2593
2606
|
return { ...d,
|
|
2594
|
-
desc: hasDescDefined ? desc :
|
|
2607
|
+
desc: hasDescDefined ? desc : nextSortingOrder === 'desc'
|
|
2595
2608
|
};
|
|
2596
2609
|
}
|
|
2597
2610
|
|
|
@@ -2604,6 +2617,23 @@
|
|
|
2604
2617
|
return newSorting;
|
|
2605
2618
|
});
|
|
2606
2619
|
},
|
|
2620
|
+
getNextSortingOrder: () => {
|
|
2621
|
+
var _ref2, _column$columnDef$sor;
|
|
2622
|
+
|
|
2623
|
+
const sortDescFirst = (_ref2 = (_column$columnDef$sor = column.columnDef.sortDescFirst) != null ? _column$columnDef$sor : instance.options.sortDescFirst) != null ? _ref2 : column.getAutoSortDir() === 'desc';
|
|
2624
|
+
const firstSortDirection = sortDescFirst ? 'desc' : 'asc';
|
|
2625
|
+
const isSorted = column.getIsSorted();
|
|
2626
|
+
|
|
2627
|
+
if (!isSorted) {
|
|
2628
|
+
return firstSortDirection;
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
if (isSorted === firstSortDirection) {
|
|
2632
|
+
return isSorted === 'desc' ? 'asc' : 'desc';
|
|
2633
|
+
} else {
|
|
2634
|
+
return false;
|
|
2635
|
+
}
|
|
2636
|
+
},
|
|
2607
2637
|
getCanSort: () => {
|
|
2608
2638
|
var _column$columnDef$ena, _instance$options$ena3;
|
|
2609
2639
|
|
|
@@ -2895,9 +2925,9 @@
|
|
|
2895
2925
|
header: props => props.header.column.id,
|
|
2896
2926
|
footer: props => props.header.column.id,
|
|
2897
2927
|
cell: props => {
|
|
2898
|
-
var _props$getValue$toStr, _props$getValue
|
|
2928
|
+
var _props$getValue$toStr, _props$getValue;
|
|
2899
2929
|
|
|
2900
|
-
return (_props$getValue$toStr = (_props$getValue
|
|
2930
|
+
return (_props$getValue$toStr = (_props$getValue = props.getValue()) == null ? void 0 : _props$getValue.toString == null ? void 0 : _props$getValue.toString()) != null ? _props$getValue$toStr : null;
|
|
2901
2931
|
},
|
|
2902
2932
|
...instance._features.reduce((obj, feature) => {
|
|
2903
2933
|
return Object.assign(obj, feature.getDefaultColumnDef == null ? void 0 : feature.getDefaultColumnDef());
|
|
@@ -3051,6 +3081,12 @@
|
|
|
3051
3081
|
}
|
|
3052
3082
|
|
|
3053
3083
|
function createCell(instance, row, column, columnId) {
|
|
3084
|
+
const getRenderValue = () => {
|
|
3085
|
+
var _cell$getValue;
|
|
3086
|
+
|
|
3087
|
+
return (_cell$getValue = cell.getValue()) != null ? _cell$getValue : instance.options.renderFallbackValue;
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3054
3090
|
const cell = {
|
|
3055
3091
|
id: row.id + "_" + column.id,
|
|
3056
3092
|
row,
|
|
@@ -3062,7 +3098,7 @@
|
|
|
3062
3098
|
column,
|
|
3063
3099
|
row,
|
|
3064
3100
|
cell: cell,
|
|
3065
|
-
getValue:
|
|
3101
|
+
getValue: getRenderValue
|
|
3066
3102
|
}) : null;
|
|
3067
3103
|
}
|
|
3068
3104
|
};
|
|
@@ -3668,11 +3704,6 @@
|
|
|
3668
3704
|
if (aggregateFn) {
|
|
3669
3705
|
row._groupingValuesCache[columnId] = aggregateFn(columnId, leafRows, groupedRows);
|
|
3670
3706
|
return row._groupingValuesCache[columnId];
|
|
3671
|
-
} else if (column.aggregationFn) {
|
|
3672
|
-
console.info({
|
|
3673
|
-
column
|
|
3674
|
-
});
|
|
3675
|
-
throw new Error("Table: Invalid column.aggregateType option for column listed above" );
|
|
3676
3707
|
}
|
|
3677
3708
|
}
|
|
3678
3709
|
});
|
|
@@ -3796,20 +3827,34 @@
|
|
|
3796
3827
|
const pageStart = pageSize * pageIndex;
|
|
3797
3828
|
const pageEnd = pageStart + pageSize;
|
|
3798
3829
|
rows = rows.slice(pageStart, pageEnd);
|
|
3830
|
+
let paginatedRowModel;
|
|
3799
3831
|
|
|
3800
3832
|
if (!instance.options.paginateExpandedRows) {
|
|
3801
|
-
|
|
3833
|
+
paginatedRowModel = expandRows({
|
|
3802
3834
|
rows,
|
|
3803
3835
|
flatRows,
|
|
3804
3836
|
rowsById
|
|
3805
3837
|
});
|
|
3838
|
+
} else {
|
|
3839
|
+
paginatedRowModel = {
|
|
3840
|
+
rows,
|
|
3841
|
+
flatRows,
|
|
3842
|
+
rowsById
|
|
3843
|
+
};
|
|
3806
3844
|
}
|
|
3807
3845
|
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3846
|
+
paginatedRowModel.flatRows = [];
|
|
3847
|
+
|
|
3848
|
+
const handleRow = row => {
|
|
3849
|
+
paginatedRowModel.flatRows.push(row);
|
|
3850
|
+
|
|
3851
|
+
if (row.subRows.length) {
|
|
3852
|
+
row.subRows.forEach(handleRow);
|
|
3853
|
+
}
|
|
3812
3854
|
};
|
|
3855
|
+
|
|
3856
|
+
paginatedRowModel.rows.forEach(handleRow);
|
|
3857
|
+
return paginatedRowModel;
|
|
3813
3858
|
}, {
|
|
3814
3859
|
key: 'getPaginationRowModel',
|
|
3815
3860
|
debug: () => {
|
|
@@ -3915,6 +3960,7 @@
|
|
|
3915
3960
|
onStateChange: () => {},
|
|
3916
3961
|
// noop
|
|
3917
3962
|
render,
|
|
3963
|
+
renderFallbackValue: null,
|
|
3918
3964
|
|
|
3919
3965
|
mergeOptions(defaultOptions, options) {
|
|
3920
3966
|
return mergeProxy(defaultOptions, options);
|