@tanstack/table-core 8.2.0 → 8.2.1
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/column.js.map +1 -1
- package/build/cjs/core/row.js.map +1 -1
- package/build/cjs/utils/getCoreRowModel.js.map +1 -1
- package/build/cjs/utils/getGroupedRowModel.js +1 -1
- package/build/cjs/utils/getGroupedRowModel.js.map +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +301 -301
- package/build/types/index.d.ts +2 -2
- package/build/umd/index.development.js +1 -1
- 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/column.ts +1 -1
- package/src/core/row.ts +2 -2
- package/src/utils/getCoreRowModel.ts +1 -1
- package/src/utils/getGroupedRowModel.ts +7 -1
package/build/types/index.d.ts
CHANGED
|
@@ -613,7 +613,7 @@ declare function isSubRowSelected<TData extends RowData>(row: Row<TData>, select
|
|
|
613
613
|
declare type CoreRow<TData extends RowData> = {
|
|
614
614
|
id: string;
|
|
615
615
|
index: number;
|
|
616
|
-
original
|
|
616
|
+
original: TData;
|
|
617
617
|
depth: number;
|
|
618
618
|
_valuesCache: Record<string, unknown>;
|
|
619
619
|
getValue: <TValue>(columnId: string) => TValue;
|
|
@@ -624,7 +624,7 @@ declare type CoreRow<TData extends RowData> = {
|
|
|
624
624
|
getAllCells: () => Cell<TData, unknown>[];
|
|
625
625
|
_getAllCellsByColumnId: () => Record<string, Cell<TData, unknown>>;
|
|
626
626
|
};
|
|
627
|
-
declare const createRow: <TData extends unknown>(table: Table<TData>, id: string, original: TData
|
|
627
|
+
declare const createRow: <TData extends unknown>(table: Table<TData>, id: string, original: TData, rowIndex: number, depth: number, subRows?: Row<TData>[] | undefined) => Row<TData>;
|
|
628
628
|
|
|
629
629
|
interface TableMeta {
|
|
630
630
|
}
|
|
@@ -3563,7 +3563,7 @@
|
|
|
3563
3563
|
const subRows = groupUpRecursively(groupedRows, depth + 1, id); // Flatten the leaf rows of the rows in this group
|
|
3564
3564
|
|
|
3565
3565
|
const leafRows = depth ? flattenBy(groupedRows, row => row.subRows) : groupedRows;
|
|
3566
|
-
const row = createRow(table, id,
|
|
3566
|
+
const row = createRow(table, id, leafRows[0].original, index, depth);
|
|
3567
3567
|
Object.assign(row, {
|
|
3568
3568
|
groupingColumnId: columnId,
|
|
3569
3569
|
groupingValue,
|