Commit 18cce30
feat(data-table): migrate to TanStack Table v9 (#1928)
* feat(data-table): migrate to tanstack table v9
Replaces @tanstack/vue-table@8 usage with the v9 API across the demo,
tasks and dashboard examples, the dashboard-01 block, and the payments
card:
- useVueTable -> useTable with explicit tableFeatures(); row models are
feature slots and the built-in filter/sort fns are registered
(v9 tree-shakes them; unregistered string fns silently no-op)
- delete the valueUpdater helper and the table item's utils.ts from the
registry (fixes the dead helper on v9); the table item no longer
depends on @tanstack/vue-table
- drop controlled state refs in favor of v9's internal reactive state;
each example keeps one externally managed rowSelection slice to show
the pattern
- FlexRender :header/:cell shorthand; wrap a bare row.toggleExpanded
reference that would lose `this` on v9's prototype methods
- rewrite the data-table guide for v9 and update tanstack.com links
- regenerate registry output; add the dashboard-01 features.ts to its
manifest
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(data-table): make the row selection comment reader-facing
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 36fa539 commit 18cce30
56 files changed
Lines changed: 719 additions & 1138 deletions
File tree
- apps/v4
- components
- cards
- demo
- examples
- dashboard/components
- tasks/components
- content/docs
- components
- lib
- public/r
- styles
- new-york-v4
- reka-luma
- reka-lyra
- reka-maia
- reka-mira
- reka-nova
- reka-rhea
- reka-sera
- reka-vega
- registry
- bases/reka/ui
- table
- new-york-v4
- blocks
- dashboard-01/components
- ui
- table
- styles
- reka-luma/ui/table
- reka-lyra/ui/table
- reka-maia/ui/table
- reka-mira/ui/table
- reka-nova/ui/table
- reka-rhea/ui/table
- reka-sera/ui/table
- reka-vega/ui/table
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 2 | + | |
8 | 3 | | |
9 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | | - | |
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
74 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
75 | 95 | | |
76 | 96 | | |
77 | 97 | | |
| |||
85 | 105 | | |
86 | 106 | | |
87 | 107 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 108 | + | |
| 109 | + | |
91 | 110 | | |
92 | 111 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 112 | + | |
| 113 | + | |
96 | 114 | | |
97 | 115 | | |
98 | 116 | | |
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
102 | 120 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 121 | + | |
| 122 | + | |
106 | 123 | | |
107 | 124 | | |
108 | 125 | | |
| |||
115 | 132 | | |
116 | 133 | | |
117 | 134 | | |
118 | | - | |
119 | | - | |
| 135 | + | |
| 136 | + | |
120 | 137 | | |
121 | 138 | | |
122 | 139 | | |
| |||
126 | 143 | | |
127 | 144 | | |
128 | 145 | | |
129 | | - | |
130 | | - | |
| 146 | + | |
| 147 | + | |
131 | 148 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 149 | + | |
| 150 | + | |
136 | 151 | | |
137 | | - | |
| 152 | + | |
| 153 | + | |
138 | 154 | | |
139 | 155 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 156 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | 157 | | |
153 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
154 | 162 | | |
155 | 163 | | |
156 | 164 | | |
| |||
195 | 203 | | |
196 | 204 | | |
197 | 205 | | |
198 | | - | |
| 206 | + | |
199 | 207 | | |
200 | 208 | | |
201 | 209 | | |
| |||
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
210 | | - | |
| 218 | + | |
211 | 219 | | |
212 | 220 | | |
213 | 221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 2 | + | |
9 | 3 | | |
10 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | | - | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
92 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
93 | 114 | | |
94 | 115 | | |
95 | 116 | | |
96 | | - | |
| 117 | + | |
97 | 118 | | |
98 | 119 | | |
99 | 120 | | |
100 | 121 | | |
101 | | - | |
| 122 | + | |
102 | 123 | | |
103 | 124 | | |
104 | 125 | | |
105 | 126 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 127 | + | |
| 128 | + | |
109 | 129 | | |
110 | 130 | | |
111 | | - | |
112 | | - | |
113 | | - | |
| 131 | + | |
| 132 | + | |
114 | 133 | | |
115 | 134 | | |
116 | 135 | | |
117 | 136 | | |
118 | 137 | | |
119 | 138 | | |
120 | 139 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 140 | + | |
| 141 | + | |
124 | 142 | | |
125 | 143 | | |
126 | 144 | | |
| |||
133 | 151 | | |
134 | 152 | | |
135 | 153 | | |
136 | | - | |
137 | | - | |
| 154 | + | |
| 155 | + | |
138 | 156 | | |
139 | 157 | | |
140 | 158 | | |
141 | 159 | | |
142 | 160 | | |
143 | 161 | | |
144 | 162 | | |
145 | | - | |
| 163 | + | |
146 | 164 | | |
147 | 165 | | |
148 | | - | |
149 | | - | |
| 166 | + | |
| 167 | + | |
150 | 168 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 169 | + | |
| 170 | + | |
156 | 171 | | |
157 | | - | |
| 172 | + | |
| 173 | + | |
158 | 174 | | |
159 | 175 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | 176 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | 177 | | |
175 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
176 | 181 | | |
177 | 182 | | |
178 | 183 | | |
| |||
235 | 240 | | |
236 | 241 | | |
237 | 242 | | |
238 | | - | |
| 243 | + | |
239 | 244 | | |
240 | 245 | | |
241 | 246 | | |
| |||
244 | 249 | | |
245 | 250 | | |
246 | 251 | | |
247 | | - | |
| 252 | + | |
248 | 253 | | |
249 | 254 | | |
250 | 255 | | |
| |||
0 commit comments