simple-table-core 3.2.1 → 3.4.0
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/dist/cjs/index.js +1 -1
- package/dist/cjs/src/core/rendering/SectionRenderer.d.ts +7 -0
- package/dist/cjs/src/utils/rowProcessing.d.ts +10 -0
- package/dist/index.es.js +1 -1
- package/dist/src/core/rendering/SectionRenderer.d.ts +7 -0
- package/dist/src/utils/rowProcessing.d.ts +10 -0
- package/package.json +1 -1
|
@@ -30,6 +30,13 @@ export interface BodySectionParams {
|
|
|
30
30
|
fullTableRows?: TableRow[];
|
|
31
31
|
renderedStartIndex?: number;
|
|
32
32
|
renderedEndIndex?: number;
|
|
33
|
+
/** Full pre-pagination flattened rows (used by animation snapshot to include
|
|
34
|
+
* off-page rows so cross-page sort can FLIP cells in/out from off-screen). */
|
|
35
|
+
allFlattenedRows?: TableRow[];
|
|
36
|
+
/** Global flattened-list index where the current page starts. Used to offset
|
|
37
|
+
* absolute positions in {@link allFlattenedRows} so on-page rows align with
|
|
38
|
+
* the page-relative DOM positions while off-page rows fall above/below. */
|
|
39
|
+
pageStartIndex?: number;
|
|
33
40
|
/** When provided, body cell renderer hands outgoing cells to the coordinator
|
|
34
41
|
* for FLIP-style out-animation instead of removing them immediately. */
|
|
35
42
|
animationCoordinator?: AnimationCoordinator;
|
|
@@ -32,6 +32,14 @@ export interface ProcessRowsResult {
|
|
|
32
32
|
partiallyVisibleRows: TableRow[];
|
|
33
33
|
paginatedHeightOffsets: HeightOffsets | undefined;
|
|
34
34
|
heightMap: CumulativeHeightMap | undefined;
|
|
35
|
+
/** Pre-pagination flattened rows (each row's `position` is its global index).
|
|
36
|
+
* Used by animation snapshot to include off-page rows so cross-page sort can
|
|
37
|
+
* FLIP cells in/out from off-screen. */
|
|
38
|
+
allFlattenedRows: TableRow[];
|
|
39
|
+
/** Global flattened-list index where the current page starts. 0 when no
|
|
40
|
+
* pagination is active. Used by animation snapshot to convert global
|
|
41
|
+
* positions into page-relative `top` values. */
|
|
42
|
+
pageStartIndex: number;
|
|
35
43
|
}
|
|
36
44
|
export declare function processRows(config: ProcessRowsConfig): ProcessRowsResult;
|
|
37
45
|
/** Layout inputs that do not depend on scroll position (reuse across scroll-raf frames). */
|
|
@@ -39,6 +47,8 @@ export interface ProcessRowsScrollReuseBase {
|
|
|
39
47
|
currentTableRows: TableRow[];
|
|
40
48
|
paginatedHeightOffsets: HeightOffsets | undefined;
|
|
41
49
|
heightMap: CumulativeHeightMap | undefined;
|
|
50
|
+
allFlattenedRows: TableRow[];
|
|
51
|
+
pageStartIndex: number;
|
|
42
52
|
}
|
|
43
53
|
/**
|
|
44
54
|
* Recomputes only viewport-dependent fields when pagination, height map, and row list
|