Repository navigation
Commit 73e1552
committed
feat(Table): useTableColumnsVirtualization windows the unpinned columns
Table.virtualization accepts a columns capability, alone or in a list with
at most one rows capability. Table mounts only the unpinned columns near the
inline viewport, plus two overscan columns per side, and keeps the pinned
start and end runs mounted. Each column's pitch is the width it renders at
the table's minimum width. The header row and every body row render the same
inaccessible spacer cells for unmounted columns. While columns window, the
table carries aria-colcount and mounted cells carry full-table aria-colindex.
The server and first client use the same seed from initialViewportWidth.
Inline geometry comes from the shared Table viewport measurement.
Unsupported content or structure renders every column with a development
warning. With both capabilities, this slice windows the rows and renders
every column. The retained focused column, the first-visible-column anchor
and windowing both axes together come in later slices.
This diff was generated with AI assistance (Navi).
Tags: ai-generated1 parent f26571e commit 73e1552
20 files changed
Lines changed: 1620 additions & 54 deletions
File tree
- .changeset
- apps/storybook/stories
- internal/shadcn-registry
- packages/core/src
- Table
- __tests__
- plugins
- stickyColumns
- virtualization
- virtualization
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4376 | 4376 | | |
4377 | 4377 | | |
4378 | 4378 | | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
4379 | 4384 | | |
4380 | 4385 | | |
4381 | 4386 | | |
| |||
0 commit comments