@tanstack/table-core 8.5.9 → 8.5.12
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/core/cell.js +6 -1
- package/build/cjs/core/cell.js.map +1 -1
- package/build/cjs/utils/getExpandedRowModel.js +0 -1
- package/build/cjs/utils/getExpandedRowModel.js.map +1 -1
- package/build/cjs/utils/getPaginationRowModel.js +0 -1
- package/build/cjs/utils/getPaginationRowModel.js.map +1 -1
- package/build/esm/index.js +4 -3
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +17 -17
- package/build/stats-react.json +323 -316
- package/build/types/index.d.ts +1 -1
- package/build/umd/index.development.js +4 -3
- 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 +1 -1
- package/src/core/cell.ts +16 -9
- package/src/types.ts +1 -1
- package/src/utils/getExpandedRowModel.ts +0 -1
- package/src/utils/getPaginationRowModel.ts +0 -2
package/build/types/index.d.ts
CHANGED
|
@@ -675,7 +675,7 @@ declare type AccessorFnColumnDef<TData extends RowData, TValue = unknown> = Colu
|
|
|
675
675
|
declare type AccessorKeyColumnDef<TData extends RowData, TValue = unknown> = {
|
|
676
676
|
id?: string;
|
|
677
677
|
} & Partial<ColumnIdentifiers<TData, TValue>> & ColumnDefBase<TData, TValue> & {
|
|
678
|
-
accessorKey:
|
|
678
|
+
accessorKey: string | keyof TData;
|
|
679
679
|
};
|
|
680
680
|
declare type AccessorColumnDef<TData extends RowData, TValue = unknown> = AccessorKeyColumnDef<TData, TValue> | AccessorFnColumnDef<TData, TValue>;
|
|
681
681
|
declare type ColumnDef<TData extends RowData, TValue = unknown> = DisplayColumnDef<TData, TValue> | GroupColumnDef<TData, TValue> | AccessorColumnDef<TData, TValue>;
|
|
@@ -3053,13 +3053,16 @@
|
|
|
3053
3053
|
column,
|
|
3054
3054
|
getValue: () => row.getValue(columnId),
|
|
3055
3055
|
renderValue: getRenderValue,
|
|
3056
|
-
getContext: () => ({
|
|
3056
|
+
getContext: memo(() => [table, column, row, cell], (table, column, row, cell) => ({
|
|
3057
3057
|
table,
|
|
3058
3058
|
column,
|
|
3059
3059
|
row,
|
|
3060
3060
|
cell: cell,
|
|
3061
3061
|
getValue: cell.getValue,
|
|
3062
3062
|
renderValue: cell.renderValue
|
|
3063
|
+
}), {
|
|
3064
|
+
key: 'cell.getContext',
|
|
3065
|
+
debug: () => table.options.debugAll
|
|
3063
3066
|
})
|
|
3064
3067
|
};
|
|
3065
3068
|
|
|
@@ -3791,7 +3794,6 @@
|
|
|
3791
3794
|
|
|
3792
3795
|
if (!paginateExpandedRows) {
|
|
3793
3796
|
// Only expand rows at this point if they are being paginated
|
|
3794
|
-
console.log(rowModel.rows);
|
|
3795
3797
|
return rowModel;
|
|
3796
3798
|
}
|
|
3797
3799
|
|
|
@@ -3860,7 +3862,6 @@
|
|
|
3860
3862
|
};
|
|
3861
3863
|
}
|
|
3862
3864
|
|
|
3863
|
-
console.log(paginatedRowModel.rows);
|
|
3864
3865
|
paginatedRowModel.flatRows = [];
|
|
3865
3866
|
|
|
3866
3867
|
const handleRow = row => {
|