@tanstack/table-core 9.0.0-alpha.46 → 9.0.0-alpha.48

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.
Files changed (339) hide show
  1. package/README.md +10 -0
  2. package/dist/core/cells/constructCell.cjs +4 -3
  3. package/dist/core/cells/constructCell.cjs.map +1 -1
  4. package/dist/core/cells/constructCell.js +4 -3
  5. package/dist/core/cells/constructCell.js.map +1 -1
  6. package/dist/core/cells/coreCellsFeature.utils.cjs +11 -8
  7. package/dist/core/cells/coreCellsFeature.utils.cjs.map +1 -1
  8. package/dist/core/cells/coreCellsFeature.utils.d.cts +11 -8
  9. package/dist/core/cells/coreCellsFeature.utils.d.ts +11 -8
  10. package/dist/core/cells/coreCellsFeature.utils.js +11 -8
  11. package/dist/core/cells/coreCellsFeature.utils.js.map +1 -1
  12. package/dist/core/columns/constructColumn.cjs +6 -4
  13. package/dist/core/columns/constructColumn.cjs.map +1 -1
  14. package/dist/core/columns/constructColumn.js +6 -4
  15. package/dist/core/columns/constructColumn.js.map +1 -1
  16. package/dist/core/columns/coreColumnsFeature.types.d.cts +7 -6
  17. package/dist/core/columns/coreColumnsFeature.types.d.ts +7 -6
  18. package/dist/core/columns/coreColumnsFeature.utils.cjs +47 -29
  19. package/dist/core/columns/coreColumnsFeature.utils.cjs.map +1 -1
  20. package/dist/core/columns/coreColumnsFeature.utils.d.cts +37 -27
  21. package/dist/core/columns/coreColumnsFeature.utils.d.ts +37 -27
  22. package/dist/core/columns/coreColumnsFeature.utils.js +47 -29
  23. package/dist/core/columns/coreColumnsFeature.utils.js.map +1 -1
  24. package/dist/core/headers/buildHeaderGroups.cjs +27 -19
  25. package/dist/core/headers/buildHeaderGroups.cjs.map +1 -1
  26. package/dist/core/headers/buildHeaderGroups.js +27 -19
  27. package/dist/core/headers/buildHeaderGroups.js.map +1 -1
  28. package/dist/core/headers/constructHeader.cjs +4 -3
  29. package/dist/core/headers/constructHeader.cjs.map +1 -1
  30. package/dist/core/headers/constructHeader.js +4 -3
  31. package/dist/core/headers/constructHeader.js.map +1 -1
  32. package/dist/core/headers/coreHeadersFeature.cjs +1 -6
  33. package/dist/core/headers/coreHeadersFeature.cjs.map +1 -1
  34. package/dist/core/headers/coreHeadersFeature.js +2 -7
  35. package/dist/core/headers/coreHeadersFeature.js.map +1 -1
  36. package/dist/core/headers/coreHeadersFeature.types.d.cts +6 -4
  37. package/dist/core/headers/coreHeadersFeature.types.d.ts +6 -4
  38. package/dist/core/headers/coreHeadersFeature.utils.cjs +43 -36
  39. package/dist/core/headers/coreHeadersFeature.utils.cjs.map +1 -1
  40. package/dist/core/headers/coreHeadersFeature.utils.d.cts +24 -19
  41. package/dist/core/headers/coreHeadersFeature.utils.d.ts +24 -19
  42. package/dist/core/headers/coreHeadersFeature.utils.js +44 -37
  43. package/dist/core/headers/coreHeadersFeature.utils.js.map +1 -1
  44. package/dist/core/reactivity/coreReactivityFeature.types.d.cts +4 -0
  45. package/dist/core/reactivity/coreReactivityFeature.types.d.ts +4 -0
  46. package/dist/core/row-models/coreRowModelsFeature.utils.cjs +48 -36
  47. package/dist/core/row-models/coreRowModelsFeature.utils.cjs.map +1 -1
  48. package/dist/core/row-models/coreRowModelsFeature.utils.d.cts +48 -36
  49. package/dist/core/row-models/coreRowModelsFeature.utils.d.ts +48 -36
  50. package/dist/core/row-models/coreRowModelsFeature.utils.js +48 -36
  51. package/dist/core/row-models/coreRowModelsFeature.utils.js.map +1 -1
  52. package/dist/core/rows/constructRow.cjs +8 -6
  53. package/dist/core/rows/constructRow.cjs.map +1 -1
  54. package/dist/core/rows/constructRow.js +8 -6
  55. package/dist/core/rows/constructRow.js.map +1 -1
  56. package/dist/core/rows/coreRowsFeature.types.d.cts +4 -4
  57. package/dist/core/rows/coreRowsFeature.types.d.ts +4 -4
  58. package/dist/core/rows/coreRowsFeature.utils.cjs +43 -32
  59. package/dist/core/rows/coreRowsFeature.utils.cjs.map +1 -1
  60. package/dist/core/rows/coreRowsFeature.utils.d.cts +34 -28
  61. package/dist/core/rows/coreRowsFeature.utils.d.ts +34 -28
  62. package/dist/core/rows/coreRowsFeature.utils.js +43 -32
  63. package/dist/core/rows/coreRowsFeature.utils.js.map +1 -1
  64. package/dist/core/table/constructTable.cjs +9 -5
  65. package/dist/core/table/constructTable.cjs.map +1 -1
  66. package/dist/core/table/constructTable.js +9 -5
  67. package/dist/core/table/constructTable.js.map +1 -1
  68. package/dist/core/table/coreTablesFeature.types.d.cts +6 -2
  69. package/dist/core/table/coreTablesFeature.types.d.ts +6 -2
  70. package/dist/core/table/coreTablesFeature.utils.cjs +7 -3
  71. package/dist/core/table/coreTablesFeature.utils.cjs.map +1 -1
  72. package/dist/core/table/coreTablesFeature.utils.d.cts +2 -2
  73. package/dist/core/table/coreTablesFeature.utils.d.ts +2 -2
  74. package/dist/core/table/coreTablesFeature.utils.js +7 -3
  75. package/dist/core/table/coreTablesFeature.utils.js.map +1 -1
  76. package/dist/features/column-faceting/columnFacetingFeature.types.d.cts +16 -10
  77. package/dist/features/column-faceting/columnFacetingFeature.types.d.ts +16 -10
  78. package/dist/features/column-faceting/columnFacetingFeature.utils.cjs +26 -18
  79. package/dist/features/column-faceting/columnFacetingFeature.utils.cjs.map +1 -1
  80. package/dist/features/column-faceting/columnFacetingFeature.utils.d.cts +26 -18
  81. package/dist/features/column-faceting/columnFacetingFeature.utils.d.ts +26 -18
  82. package/dist/features/column-faceting/columnFacetingFeature.utils.js +26 -18
  83. package/dist/features/column-faceting/columnFacetingFeature.utils.js.map +1 -1
  84. package/dist/features/column-faceting/createFacetedMinMaxValues.cjs +8 -5
  85. package/dist/features/column-faceting/createFacetedMinMaxValues.cjs.map +1 -1
  86. package/dist/features/column-faceting/createFacetedMinMaxValues.js +8 -5
  87. package/dist/features/column-faceting/createFacetedMinMaxValues.js.map +1 -1
  88. package/dist/features/column-faceting/createFacetedRowModel.cjs +8 -3
  89. package/dist/features/column-faceting/createFacetedRowModel.cjs.map +1 -1
  90. package/dist/features/column-faceting/createFacetedRowModel.js +8 -3
  91. package/dist/features/column-faceting/createFacetedRowModel.js.map +1 -1
  92. package/dist/features/column-faceting/createFacetedUniqueValues.cjs +7 -4
  93. package/dist/features/column-faceting/createFacetedUniqueValues.cjs.map +1 -1
  94. package/dist/features/column-faceting/createFacetedUniqueValues.js +7 -4
  95. package/dist/features/column-faceting/createFacetedUniqueValues.js.map +1 -1
  96. package/dist/features/column-filtering/columnFilteringFeature.types.d.cts +21 -11
  97. package/dist/features/column-filtering/columnFilteringFeature.types.d.ts +21 -11
  98. package/dist/features/column-filtering/columnFilteringFeature.utils.cjs +39 -28
  99. package/dist/features/column-filtering/columnFilteringFeature.utils.cjs.map +1 -1
  100. package/dist/features/column-filtering/columnFilteringFeature.utils.d.cts +39 -28
  101. package/dist/features/column-filtering/columnFilteringFeature.utils.d.ts +39 -28
  102. package/dist/features/column-filtering/columnFilteringFeature.utils.js +39 -28
  103. package/dist/features/column-filtering/columnFilteringFeature.utils.js.map +1 -1
  104. package/dist/features/column-filtering/createFilteredRowModel.cjs +11 -5
  105. package/dist/features/column-filtering/createFilteredRowModel.cjs.map +1 -1
  106. package/dist/features/column-filtering/createFilteredRowModel.js +11 -5
  107. package/dist/features/column-filtering/createFilteredRowModel.js.map +1 -1
  108. package/dist/features/column-grouping/columnGroupingFeature.types.d.cts +18 -14
  109. package/dist/features/column-grouping/columnGroupingFeature.types.d.ts +18 -14
  110. package/dist/features/column-grouping/columnGroupingFeature.utils.cjs +55 -43
  111. package/dist/features/column-grouping/columnGroupingFeature.utils.cjs.map +1 -1
  112. package/dist/features/column-grouping/columnGroupingFeature.utils.d.cts +55 -43
  113. package/dist/features/column-grouping/columnGroupingFeature.utils.d.ts +55 -43
  114. package/dist/features/column-grouping/columnGroupingFeature.utils.js +55 -43
  115. package/dist/features/column-grouping/columnGroupingFeature.utils.js.map +1 -1
  116. package/dist/features/column-ordering/columnOrderingFeature.types.d.cts +14 -5
  117. package/dist/features/column-ordering/columnOrderingFeature.types.d.ts +14 -5
  118. package/dist/features/column-ordering/columnOrderingFeature.utils.cjs +46 -29
  119. package/dist/features/column-ordering/columnOrderingFeature.utils.cjs.map +1 -1
  120. package/dist/features/column-ordering/columnOrderingFeature.utils.d.cts +30 -23
  121. package/dist/features/column-ordering/columnOrderingFeature.utils.d.ts +30 -23
  122. package/dist/features/column-ordering/columnOrderingFeature.utils.js +46 -29
  123. package/dist/features/column-ordering/columnOrderingFeature.utils.js.map +1 -1
  124. package/dist/features/column-pinning/columnPinningFeature.types.d.cts +43 -31
  125. package/dist/features/column-pinning/columnPinningFeature.types.d.ts +43 -31
  126. package/dist/features/column-pinning/columnPinningFeature.utils.cjs +152 -115
  127. package/dist/features/column-pinning/columnPinningFeature.utils.cjs.map +1 -1
  128. package/dist/features/column-pinning/columnPinningFeature.utils.d.cts +116 -95
  129. package/dist/features/column-pinning/columnPinningFeature.utils.d.ts +116 -95
  130. package/dist/features/column-pinning/columnPinningFeature.utils.js +153 -116
  131. package/dist/features/column-pinning/columnPinningFeature.utils.js.map +1 -1
  132. package/dist/features/column-resizing/columnResizingFeature.types.d.cts +9 -9
  133. package/dist/features/column-resizing/columnResizingFeature.types.d.ts +9 -9
  134. package/dist/features/column-resizing/columnResizingFeature.utils.cjs +28 -19
  135. package/dist/features/column-resizing/columnResizingFeature.utils.cjs.map +1 -1
  136. package/dist/features/column-resizing/columnResizingFeature.utils.d.cts +28 -19
  137. package/dist/features/column-resizing/columnResizingFeature.utils.d.ts +28 -19
  138. package/dist/features/column-resizing/columnResizingFeature.utils.js +28 -19
  139. package/dist/features/column-resizing/columnResizingFeature.utils.js.map +1 -1
  140. package/dist/features/column-sizing/columnSizingFeature.cjs +28 -4
  141. package/dist/features/column-sizing/columnSizingFeature.cjs.map +1 -1
  142. package/dist/features/column-sizing/columnSizingFeature.js +28 -4
  143. package/dist/features/column-sizing/columnSizingFeature.js.map +1 -1
  144. package/dist/features/column-sizing/columnSizingFeature.types.d.cts +19 -12
  145. package/dist/features/column-sizing/columnSizingFeature.types.d.ts +19 -12
  146. package/dist/features/column-sizing/columnSizingFeature.utils.cjs +52 -41
  147. package/dist/features/column-sizing/columnSizingFeature.utils.cjs.map +1 -1
  148. package/dist/features/column-sizing/columnSizingFeature.utils.d.cts +52 -41
  149. package/dist/features/column-sizing/columnSizingFeature.utils.d.ts +52 -41
  150. package/dist/features/column-sizing/columnSizingFeature.utils.js +52 -41
  151. package/dist/features/column-sizing/columnSizingFeature.utils.js.map +1 -1
  152. package/dist/features/column-visibility/columnVisibilityFeature.cjs +23 -14
  153. package/dist/features/column-visibility/columnVisibilityFeature.cjs.map +1 -1
  154. package/dist/features/column-visibility/columnVisibilityFeature.js +24 -15
  155. package/dist/features/column-visibility/columnVisibilityFeature.js.map +1 -1
  156. package/dist/features/column-visibility/columnVisibilityFeature.types.d.cts +19 -12
  157. package/dist/features/column-visibility/columnVisibilityFeature.types.d.ts +19 -12
  158. package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs +91 -52
  159. package/dist/features/column-visibility/columnVisibilityFeature.utils.cjs.map +1 -1
  160. package/dist/features/column-visibility/columnVisibilityFeature.utils.d.cts +63 -40
  161. package/dist/features/column-visibility/columnVisibilityFeature.utils.d.ts +63 -40
  162. package/dist/features/column-visibility/columnVisibilityFeature.utils.js +91 -53
  163. package/dist/features/column-visibility/columnVisibilityFeature.utils.js.map +1 -1
  164. package/dist/features/global-filtering/globalFilteringFeature.types.d.cts +10 -5
  165. package/dist/features/global-filtering/globalFilteringFeature.types.d.ts +10 -5
  166. package/dist/features/global-filtering/globalFilteringFeature.utils.cjs +20 -14
  167. package/dist/features/global-filtering/globalFilteringFeature.utils.cjs.map +1 -1
  168. package/dist/features/global-filtering/globalFilteringFeature.utils.d.cts +20 -14
  169. package/dist/features/global-filtering/globalFilteringFeature.utils.d.ts +20 -14
  170. package/dist/features/global-filtering/globalFilteringFeature.utils.js +20 -14
  171. package/dist/features/global-filtering/globalFilteringFeature.utils.js.map +1 -1
  172. package/dist/features/row-expanding/rowExpandingFeature.types.d.cts +16 -15
  173. package/dist/features/row-expanding/rowExpandingFeature.types.d.ts +16 -15
  174. package/dist/features/row-expanding/rowExpandingFeature.utils.cjs +58 -43
  175. package/dist/features/row-expanding/rowExpandingFeature.utils.cjs.map +1 -1
  176. package/dist/features/row-expanding/rowExpandingFeature.utils.d.cts +56 -41
  177. package/dist/features/row-expanding/rowExpandingFeature.utils.d.ts +56 -41
  178. package/dist/features/row-expanding/rowExpandingFeature.utils.js +58 -43
  179. package/dist/features/row-expanding/rowExpandingFeature.utils.js.map +1 -1
  180. package/dist/features/row-pagination/rowPaginationFeature.types.d.cts +19 -12
  181. package/dist/features/row-pagination/rowPaginationFeature.types.d.ts +19 -12
  182. package/dist/features/row-pagination/rowPaginationFeature.utils.cjs +49 -32
  183. package/dist/features/row-pagination/rowPaginationFeature.utils.cjs.map +1 -1
  184. package/dist/features/row-pagination/rowPaginationFeature.utils.d.cts +49 -32
  185. package/dist/features/row-pagination/rowPaginationFeature.utils.d.ts +49 -32
  186. package/dist/features/row-pagination/rowPaginationFeature.utils.js +49 -32
  187. package/dist/features/row-pagination/rowPaginationFeature.utils.js.map +1 -1
  188. package/dist/features/row-pinning/rowPinningFeature.types.d.cts +12 -8
  189. package/dist/features/row-pinning/rowPinningFeature.types.d.ts +12 -8
  190. package/dist/features/row-pinning/rowPinningFeature.utils.cjs +52 -36
  191. package/dist/features/row-pinning/rowPinningFeature.utils.cjs.map +1 -1
  192. package/dist/features/row-pinning/rowPinningFeature.utils.d.cts +39 -29
  193. package/dist/features/row-pinning/rowPinningFeature.utils.d.ts +39 -29
  194. package/dist/features/row-pinning/rowPinningFeature.utils.js +52 -36
  195. package/dist/features/row-pinning/rowPinningFeature.utils.js.map +1 -1
  196. package/dist/features/row-selection/rowSelectionFeature.types.d.cts +30 -24
  197. package/dist/features/row-selection/rowSelectionFeature.types.d.ts +30 -24
  198. package/dist/features/row-selection/rowSelectionFeature.utils.cjs +95 -72
  199. package/dist/features/row-selection/rowSelectionFeature.utils.cjs.map +1 -1
  200. package/dist/features/row-selection/rowSelectionFeature.utils.d.cts +89 -69
  201. package/dist/features/row-selection/rowSelectionFeature.utils.d.ts +89 -69
  202. package/dist/features/row-selection/rowSelectionFeature.utils.js +95 -72
  203. package/dist/features/row-selection/rowSelectionFeature.utils.js.map +1 -1
  204. package/dist/features/row-sorting/createSortedRowModel.cjs +13 -8
  205. package/dist/features/row-sorting/createSortedRowModel.cjs.map +1 -1
  206. package/dist/features/row-sorting/createSortedRowModel.js +13 -8
  207. package/dist/features/row-sorting/createSortedRowModel.js.map +1 -1
  208. package/dist/features/row-sorting/rowSortingFeature.types.d.cts +10 -8
  209. package/dist/features/row-sorting/rowSortingFeature.types.d.ts +10 -8
  210. package/dist/features/row-sorting/rowSortingFeature.utils.cjs +63 -46
  211. package/dist/features/row-sorting/rowSortingFeature.utils.cjs.map +1 -1
  212. package/dist/features/row-sorting/rowSortingFeature.utils.d.cts +61 -44
  213. package/dist/features/row-sorting/rowSortingFeature.utils.d.ts +61 -44
  214. package/dist/features/row-sorting/rowSortingFeature.utils.js +63 -46
  215. package/dist/features/row-sorting/rowSortingFeature.utils.js.map +1 -1
  216. package/dist/fns/aggregationFns.cjs +47 -16
  217. package/dist/fns/aggregationFns.cjs.map +1 -1
  218. package/dist/fns/aggregationFns.d.cts +33 -9
  219. package/dist/fns/aggregationFns.d.ts +33 -9
  220. package/dist/fns/aggregationFns.js +47 -17
  221. package/dist/fns/aggregationFns.js.map +1 -1
  222. package/dist/fns/filterFns.cjs +48 -17
  223. package/dist/fns/filterFns.cjs.map +1 -1
  224. package/dist/fns/filterFns.d.cts +42 -15
  225. package/dist/fns/filterFns.d.ts +42 -15
  226. package/dist/fns/filterFns.js +48 -17
  227. package/dist/fns/filterFns.js.map +1 -1
  228. package/dist/helpers/columnHelper.cjs +9 -4
  229. package/dist/helpers/columnHelper.cjs.map +1 -1
  230. package/dist/helpers/columnHelper.d.cts +9 -4
  231. package/dist/helpers/columnHelper.d.ts +9 -4
  232. package/dist/helpers/columnHelper.js +9 -4
  233. package/dist/helpers/columnHelper.js.map +1 -1
  234. package/dist/helpers/tableOptions.cjs.map +1 -1
  235. package/dist/helpers/tableOptions.d.cts +12 -9
  236. package/dist/helpers/tableOptions.d.ts +12 -9
  237. package/dist/helpers/tableOptions.js.map +1 -1
  238. package/dist/index.cjs +0 -4
  239. package/dist/index.d.cts +2 -2
  240. package/dist/index.d.ts +2 -2
  241. package/dist/index.js +2 -2
  242. package/dist/static-functions.cjs +1 -0
  243. package/dist/static-functions.d.cts +2 -2
  244. package/dist/static-functions.d.ts +2 -2
  245. package/dist/static-functions.js +2 -2
  246. package/dist/store-reactivity-bindings.cjs +1 -0
  247. package/dist/store-reactivity-bindings.cjs.map +1 -1
  248. package/dist/store-reactivity-bindings.js +1 -0
  249. package/dist/store-reactivity-bindings.js.map +1 -1
  250. package/dist/types/ColumnDef.d.cts +38 -0
  251. package/dist/types/ColumnDef.d.ts +38 -0
  252. package/dist/types/TableOptions.d.cts +15 -0
  253. package/dist/types/TableOptions.d.ts +15 -0
  254. package/dist/types/TableState.d.cts +12 -0
  255. package/dist/types/TableState.d.ts +12 -0
  256. package/dist/utils.cjs +18 -39
  257. package/dist/utils.cjs.map +1 -1
  258. package/dist/utils.d.cts +1 -23
  259. package/dist/utils.d.ts +1 -23
  260. package/dist/utils.js +19 -36
  261. package/dist/utils.js.map +1 -1
  262. package/package.json +5 -3
  263. package/skills/column-definitions/SKILL.md +333 -0
  264. package/skills/column-layout/SKILL.md +328 -0
  265. package/skills/column-layout/references/subsystems.md +220 -0
  266. package/skills/customizing-feature-behavior/SKILL.md +416 -0
  267. package/skills/filtering/SKILL.md +357 -0
  268. package/skills/filtering/references/faceting-and-fuzzy.md +191 -0
  269. package/skills/grouping/SKILL.md +448 -0
  270. package/skills/migrate-v8-to-v9/SKILL.md +495 -0
  271. package/skills/pagination/SKILL.md +385 -0
  272. package/skills/row-expanding/SKILL.md +348 -0
  273. package/skills/row-pinning/SKILL.md +269 -0
  274. package/skills/row-selection/SKILL.md +391 -0
  275. package/skills/setup/SKILL.md +400 -0
  276. package/skills/sorting/SKILL.md +344 -0
  277. package/skills/state-management/SKILL.md +388 -0
  278. package/src/core/cells/constructCell.ts +3 -2
  279. package/src/core/cells/coreCellsFeature.utils.ts +11 -8
  280. package/src/core/columns/constructColumn.ts +5 -3
  281. package/src/core/columns/coreColumnsFeature.types.ts +7 -6
  282. package/src/core/columns/coreColumnsFeature.utils.ts +43 -29
  283. package/src/core/headers/buildHeaderGroups.ts +29 -30
  284. package/src/core/headers/constructHeader.ts +3 -2
  285. package/src/core/headers/coreHeadersFeature.ts +2 -27
  286. package/src/core/headers/coreHeadersFeature.types.ts +6 -4
  287. package/src/core/headers/coreHeadersFeature.utils.ts +52 -61
  288. package/src/core/reactivity/coreReactivityFeature.types.ts +4 -0
  289. package/src/core/row-models/coreRowModelsFeature.utils.ts +48 -36
  290. package/src/core/rows/constructRow.ts +6 -4
  291. package/src/core/rows/coreRowsFeature.types.ts +4 -4
  292. package/src/core/rows/coreRowsFeature.utils.ts +45 -32
  293. package/src/core/table/constructTable.ts +6 -4
  294. package/src/core/table/coreTablesFeature.types.ts +6 -2
  295. package/src/core/table/coreTablesFeature.utils.ts +5 -3
  296. package/src/features/column-faceting/columnFacetingFeature.types.ts +16 -10
  297. package/src/features/column-faceting/columnFacetingFeature.utils.ts +26 -18
  298. package/src/features/column-faceting/createFacetedMinMaxValues.ts +8 -10
  299. package/src/features/column-faceting/createFacetedRowModel.ts +10 -6
  300. package/src/features/column-faceting/createFacetedUniqueValues.ts +4 -3
  301. package/src/features/column-filtering/columnFilteringFeature.types.ts +21 -11
  302. package/src/features/column-filtering/columnFilteringFeature.utils.ts +39 -28
  303. package/src/features/column-filtering/createFilteredRowModel.ts +14 -8
  304. package/src/features/column-grouping/columnGroupingFeature.types.ts +18 -14
  305. package/src/features/column-grouping/columnGroupingFeature.utils.ts +55 -43
  306. package/src/features/column-ordering/columnOrderingFeature.types.ts +14 -5
  307. package/src/features/column-ordering/columnOrderingFeature.utils.ts +44 -29
  308. package/src/features/column-pinning/columnPinningFeature.types.ts +43 -31
  309. package/src/features/column-pinning/columnPinningFeature.utils.ts +164 -128
  310. package/src/features/column-resizing/columnResizingFeature.types.ts +9 -9
  311. package/src/features/column-resizing/columnResizingFeature.utils.ts +28 -19
  312. package/src/features/column-sizing/columnSizingFeature.ts +16 -0
  313. package/src/features/column-sizing/columnSizingFeature.types.ts +19 -12
  314. package/src/features/column-sizing/columnSizingFeature.utils.ts +52 -41
  315. package/src/features/column-visibility/columnVisibilityFeature.ts +8 -0
  316. package/src/features/column-visibility/columnVisibilityFeature.types.ts +22 -12
  317. package/src/features/column-visibility/columnVisibilityFeature.utils.ts +101 -56
  318. package/src/features/global-filtering/globalFilteringFeature.types.ts +10 -5
  319. package/src/features/global-filtering/globalFilteringFeature.utils.ts +20 -14
  320. package/src/features/row-expanding/rowExpandingFeature.types.ts +16 -15
  321. package/src/features/row-expanding/rowExpandingFeature.utils.ts +58 -43
  322. package/src/features/row-pagination/rowPaginationFeature.types.ts +19 -12
  323. package/src/features/row-pagination/rowPaginationFeature.utils.ts +49 -32
  324. package/src/features/row-pinning/rowPinningFeature.types.ts +12 -8
  325. package/src/features/row-pinning/rowPinningFeature.utils.ts +59 -47
  326. package/src/features/row-selection/rowSelectionFeature.types.ts +30 -24
  327. package/src/features/row-selection/rowSelectionFeature.utils.ts +109 -88
  328. package/src/features/row-sorting/createSortedRowModel.ts +16 -13
  329. package/src/features/row-sorting/rowSortingFeature.types.ts +10 -8
  330. package/src/features/row-sorting/rowSortingFeature.utils.ts +63 -46
  331. package/src/fns/aggregationFns.ts +53 -17
  332. package/src/fns/filterFns.ts +48 -17
  333. package/src/helpers/columnHelper.ts +9 -4
  334. package/src/helpers/tableOptions.ts +12 -9
  335. package/src/store-reactivity-bindings.ts +1 -0
  336. package/src/types/ColumnDef.ts +38 -0
  337. package/src/types/TableOptions.ts +15 -0
  338. package/src/types/TableState.ts +12 -0
  339. package/src/utils.ts +19 -46
@@ -1,5 +1,6 @@
1
1
  import { CellData, RowData, Updater } from "../../types/type-utils.js";
2
2
  import { HeaderGroup } from "../../types/HeaderGroup.js";
3
+ import { Header } from "../../types/Header.js";
3
4
  import { ColumnPinningPosition, ColumnPinningState } from "./columnPinningFeature.types.js";
4
5
  import { Column, Column_Internal } from "../../types/Column.js";
5
6
  import { Row } from "../../types/Row.js";
@@ -8,20 +9,23 @@ import { Table_Internal } from "../../types/Table.js";
8
9
  import { Cell } from "../../types/Cell.js";
9
10
  //#region src/features/column-pinning/columnPinningFeature.utils.d.ts
10
11
  /**
11
- * Returns the default column pinning state.
12
+ * Creates the default column pinning state.
12
13
  *
13
- * Feature constructors use this value to initialize the table state or option defaults when no user value is provided.
14
+ * Both pinning regions start empty. Reset APIs use this value when
15
+ * `defaultState` is `true`.
14
16
  *
15
17
  * @example
16
18
  * ```ts
17
- * const initialValue = getDefaultColumnPinningState()
19
+ * const pinning = getDefaultColumnPinningState()
18
20
  * ```
19
21
  */
20
22
  declare function getDefaultColumnPinningState(): ColumnPinningState;
21
23
  /**
22
- * Pin. for a column.
24
+ * Moves this column's leaf column ids into a pinning region.
23
25
  *
24
- * This is the static implementation behind the matching column instance API.
26
+ * Pinning a group column pins all of its leaves. The leaf ids are first removed
27
+ * from both regions, then appended to the requested `'left'` or `'right'`
28
+ * region. Passing `false` unpins them back to the center.
25
29
  *
26
30
  * @example
27
31
  * ```ts
@@ -30,86 +34,94 @@ declare function getDefaultColumnPinningState(): ColumnPinningState;
30
34
  */
31
35
  declare function column_pin<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>, position: ColumnPinningPosition): void;
32
36
  /**
33
- * Returns whether a column can use pin.
37
+ * Checks whether this column or any of its leaf columns can be pinned.
34
38
  *
35
- * This combines column options, table options, and any required accessor or feature state for the capability.
39
+ * Column-level `enablePinning` and table `enableColumnPinning` both default to
40
+ * `true`; at least one leaf column must allow pinning.
36
41
  *
37
42
  * @example
38
43
  * ```ts
39
- * const value = column_getCanPin(column)
44
+ * const canPin = column_getCanPin(column)
40
45
  * ```
41
46
  */
42
47
  declare function column_getCanPin<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): boolean;
43
48
  /**
44
- * Returns is pinned for a column.
49
+ * Reads this column's current pinning region.
45
50
  *
46
- * This derives the value from the column definition, table options, and the feature state atoms registered on the table.
51
+ * Group columns report `'left'` or `'right'` when any leaf column is pinned in
52
+ * that region. Unpinned columns return `false`.
47
53
  *
48
54
  * @example
49
55
  * ```ts
50
- * const value = column_getIsPinned(column)
56
+ * const position = column_getIsPinned(column)
51
57
  * ```
52
58
  */
53
59
  declare function column_getIsPinned<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): ColumnPinningPosition | false;
54
60
  /**
55
- * Returns pinned index for a column.
61
+ * Finds this column's index within its pinned region.
56
62
  *
57
- * This derives the value from the column definition, table options, and the feature state atoms registered on the table.
63
+ * Unpinned columns return `0`; pinned columns return their position in
64
+ * `state.columnPinning.left` or `state.columnPinning.right`.
58
65
  *
59
66
  * @example
60
67
  * ```ts
61
- * const value = column_getPinnedIndex(column)
68
+ * const index = column_getPinnedIndex(column)
62
69
  * ```
63
70
  */
64
71
  declare function column_getPinnedIndex<TFeatures extends TableFeatures, TData extends RowData, TValue extends CellData = CellData>(column: Column_Internal<TFeatures, TData, TValue>): number;
65
72
  /**
66
- * Returns center visible cells for a row.
73
+ * Collects visible cells whose columns are not pinned left or right.
67
74
  *
68
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
75
+ * The result preserves the row's visible-cell order for center columns.
69
76
  *
70
77
  * @example
71
78
  * ```ts
72
- * const value = row_getCenterVisibleCells(row)
79
+ * const centerCells = row_getCenterVisibleCells(row)
73
80
  * ```
74
81
  */
75
82
  declare function row_getCenterVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): any[];
76
83
  /**
77
- * Returns left visible cells for a row.
84
+ * Collects visible cells for columns pinned to the left region.
78
85
  *
79
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
86
+ * Cells are returned in `state.columnPinning.left` order and are marked with
87
+ * `cell.position = 'left'`.
80
88
  *
81
89
  * @example
82
90
  * ```ts
83
- * const value = row_getLeftVisibleCells(row)
91
+ * const leftCells = row_getLeftVisibleCells(row)
84
92
  * ```
85
93
  */
86
94
  declare function row_getLeftVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): Array<Cell<TFeatures, TData, unknown>>;
87
95
  /**
88
- * Returns right visible cells for a row.
96
+ * Collects visible cells for columns pinned to the right region.
89
97
  *
90
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
98
+ * Cells are returned in `state.columnPinning.right` order and are marked with
99
+ * `cell.position = 'right'`.
91
100
  *
92
101
  * @example
93
102
  * ```ts
94
- * const value = row_getRightVisibleCells(row)
103
+ * const rightCells = row_getRightVisibleCells(row)
95
104
  * ```
96
105
  */
97
- declare function row_getRightVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): any[];
106
+ declare function row_getRightVisibleCells<TFeatures extends TableFeatures, TData extends RowData>(row: Row<TFeatures, TData>): Cell<TFeatures, TData, unknown>[];
98
107
  /**
99
- * Updates the table's column pinning state slice.
108
+ * Routes a column pinning updater through the table's pinning change handler.
100
109
  *
101
- * The updater follows TanStack Table updater semantics and is routed through the corresponding `on*Change` option or backing atom.
110
+ * The updater may be a next `{ left, right }` state or a function of the
111
+ * previous state, matching the instance `table.setColumnPinning` behavior.
102
112
  *
103
113
  * @example
104
114
  * ```ts
105
- * table_setColumnPinning(table, (old) => old)
115
+ * table_setColumnPinning(table, (old) => ({ ...old, left: ['select'] }))
106
116
  * ```
107
117
  */
108
118
  declare function table_setColumnPinning<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, updater: Updater<ColumnPinningState>): void;
109
119
  /**
110
- * Resets the table's column pinning state slice.
120
+ * Resets `columnPinning` to the configured initial state or feature default.
111
121
  *
112
- * By default the reset uses `table.initialState`; when supported, a blank/default reset bypasses the saved initial value.
122
+ * With no argument, the reset clones `table.initialState.columnPinning` when it
123
+ * exists. Passing `true` ignores initial state and resets to empty left/right
124
+ * arrays.
113
125
  *
114
126
  * @example
115
127
  * ```ts
@@ -119,233 +131,242 @@ declare function table_setColumnPinning<TFeatures extends TableFeatures, TData e
119
131
  */
120
132
  declare function table_resetColumnPinning<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, defaultState?: boolean): void;
121
133
  /**
122
- * Returns is some columns pinned for the table.
134
+ * Checks whether any columns are pinned.
123
135
  *
124
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
136
+ * Omit `position` to check both sides, or pass `'left'`/`'right'` to inspect a
137
+ * single pinning region.
125
138
  *
126
139
  * @example
127
140
  * ```ts
128
- * const value = table_getIsSomeColumnsPinned(table)
141
+ * const hasPinnedColumns = table_getIsSomeColumnsPinned(table)
129
142
  * ```
130
143
  */
131
144
  declare function table_getIsSomeColumnsPinned<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, position?: ColumnPinningPosition): boolean;
132
145
  /**
133
- * Returns left header groups for the table.
146
+ * Builds header groups for visible columns pinned to the left region.
134
147
  *
135
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
148
+ * The leaf columns are read in `state.columnPinning.left` order and then passed
149
+ * through the same header-group builder as the unpinned table.
136
150
  *
137
151
  * @example
138
152
  * ```ts
139
- * const value = table_getLeftHeaderGroups(table)
153
+ * const headerGroups = table_getLeftHeaderGroups(table)
140
154
  * ```
141
155
  */
142
156
  declare function table_getLeftHeaderGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): HeaderGroup<TFeatures, TData>[];
143
157
  /**
144
- * Returns right header groups for the table.
158
+ * Builds header groups for visible columns pinned to the right region.
145
159
  *
146
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
160
+ * The leaf columns are read in `state.columnPinning.right` order and then
161
+ * passed through the same header-group builder as the unpinned table.
147
162
  *
148
163
  * @example
149
164
  * ```ts
150
- * const value = table_getRightHeaderGroups(table)
165
+ * const headerGroups = table_getRightHeaderGroups(table)
151
166
  * ```
152
167
  */
153
168
  declare function table_getRightHeaderGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): HeaderGroup<TFeatures, TData>[];
154
169
  /**
155
- * Returns center header groups for the table.
170
+ * Builds header groups for visible columns that are not pinned.
156
171
  *
157
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
172
+ * Left- and right-pinned column ids are removed from the visible leaf column
173
+ * list before header groups are built for the center region.
158
174
  *
159
175
  * @example
160
176
  * ```ts
161
- * const value = table_getCenterHeaderGroups(table)
177
+ * const headerGroups = table_getCenterHeaderGroups(table)
162
178
  * ```
163
179
  */
164
180
  declare function table_getCenterHeaderGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Array<HeaderGroup<TFeatures, TData>>;
165
181
  /**
166
- * Returns left footer groups for the table.
182
+ * Builds footer groups for the left pinned region.
167
183
  *
168
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
184
+ * Footer groups reuse the left header groups in reverse order.
169
185
  *
170
186
  * @example
171
187
  * ```ts
172
- * const value = table_getLeftFooterGroups(table)
188
+ * const footerGroups = table_getLeftFooterGroups(table)
173
189
  * ```
174
190
  */
175
191
  declare function table_getLeftFooterGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
176
192
  /**
177
- * Returns right footer groups for the table.
193
+ * Builds footer groups for the right pinned region.
178
194
  *
179
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
195
+ * Footer groups reuse the right header groups in reverse order.
180
196
  *
181
197
  * @example
182
198
  * ```ts
183
- * const value = table_getRightFooterGroups(table)
199
+ * const footerGroups = table_getRightFooterGroups(table)
184
200
  * ```
185
201
  */
186
202
  declare function table_getRightFooterGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
187
203
  /**
188
- * Returns center footer groups for the table.
204
+ * Builds footer groups for the center, unpinned region.
189
205
  *
190
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
206
+ * Footer groups reuse the center header groups in reverse order.
191
207
  *
192
208
  * @example
193
209
  * ```ts
194
- * const value = table_getCenterFooterGroups(table)
210
+ * const footerGroups = table_getCenterFooterGroups(table)
195
211
  * ```
196
212
  */
197
213
  declare function table_getCenterFooterGroups<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
198
214
  /**
199
- * Returns left flat headers for the table.
215
+ * Flattens every header from the left pinned header groups.
200
216
  *
201
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
217
+ * Parent headers and placeholder headers are included.
202
218
  *
203
219
  * @example
204
220
  * ```ts
205
- * const value = table_getLeftFlatHeaders(table)
221
+ * const headers = table_getLeftFlatHeaders(table)
206
222
  * ```
207
223
  */
208
- declare function table_getLeftFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
224
+ declare function table_getLeftFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Header<TFeatures, TData, unknown>[];
209
225
  /**
210
- * Returns right flat headers for the table.
226
+ * Flattens every header from the right pinned header groups.
211
227
  *
212
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
228
+ * Parent headers and placeholder headers are included.
213
229
  *
214
230
  * @example
215
231
  * ```ts
216
- * const value = table_getRightFlatHeaders(table)
232
+ * const headers = table_getRightFlatHeaders(table)
217
233
  * ```
218
234
  */
219
- declare function table_getRightFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
235
+ declare function table_getRightFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Header<TFeatures, TData, unknown>[];
220
236
  /**
221
- * Returns center flat headers for the table.
237
+ * Flattens every header from the center header groups.
222
238
  *
223
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
239
+ * Parent headers and placeholder headers are included.
224
240
  *
225
241
  * @example
226
242
  * ```ts
227
- * const value = table_getCenterFlatHeaders(table)
243
+ * const headers = table_getCenterFlatHeaders(table)
228
244
  * ```
229
245
  */
230
- declare function table_getCenterFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
246
+ declare function table_getCenterFlatHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Header<TFeatures, TData, unknown>[];
231
247
  /**
232
- * Returns left leaf headers for the table.
248
+ * Collects leaf headers for the left pinned region.
233
249
  *
234
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
250
+ * Parent headers are filtered out from the left flat header list.
235
251
  *
236
252
  * @example
237
253
  * ```ts
238
- * const value = table_getLeftLeafHeaders(table)
254
+ * const headers = table_getLeftLeafHeaders(table)
239
255
  * ```
240
256
  */
241
257
  declare function table_getLeftLeafHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
242
258
  /**
243
- * Returns right leaf headers for the table.
259
+ * Collects leaf headers for the right pinned region.
244
260
  *
245
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
261
+ * Parent headers are filtered out from the right flat header list.
246
262
  *
247
263
  * @example
248
264
  * ```ts
249
- * const value = table_getRightLeafHeaders(table)
265
+ * const headers = table_getRightLeafHeaders(table)
250
266
  * ```
251
267
  */
252
268
  declare function table_getRightLeafHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
253
269
  /**
254
- * Returns center leaf headers for the table.
270
+ * Collects leaf headers for the center, unpinned region.
255
271
  *
256
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
272
+ * Parent headers are filtered out from the center flat header list.
257
273
  *
258
274
  * @example
259
275
  * ```ts
260
- * const value = table_getCenterLeafHeaders(table)
276
+ * const headers = table_getCenterLeafHeaders(table)
261
277
  * ```
262
278
  */
263
279
  declare function table_getCenterLeafHeaders<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
264
280
  /**
265
- * Returns left leaf columns for the table.
281
+ * Resolves leaf columns pinned to the left region.
266
282
  *
267
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
283
+ * The result follows `state.columnPinning.left` order and skips stale ids that
284
+ * no longer correspond to a leaf column.
268
285
  *
269
286
  * @example
270
287
  * ```ts
271
- * const value = table_getLeftLeafColumns(table)
288
+ * const columns = table_getLeftLeafColumns(table)
272
289
  * ```
273
290
  */
274
291
  declare function table_getLeftLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Column_Internal<TFeatures, TData, unknown>[];
275
292
  /**
276
- * Returns right leaf columns for the table.
293
+ * Resolves leaf columns pinned to the right region.
277
294
  *
278
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
295
+ * The result follows `state.columnPinning.right` order and skips stale ids that
296
+ * no longer correspond to a leaf column.
279
297
  *
280
298
  * @example
281
299
  * ```ts
282
- * const value = table_getRightLeafColumns(table)
300
+ * const columns = table_getRightLeafColumns(table)
283
301
  * ```
284
302
  */
285
303
  declare function table_getRightLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Column_Internal<TFeatures, TData, unknown>[];
286
304
  /**
287
- * Returns center leaf columns for the table.
305
+ * Resolves leaf columns that are not pinned to either side.
288
306
  *
289
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
307
+ * Left- and right-pinned ids are removed from `table.getAllLeafColumns()`.
290
308
  *
291
309
  * @example
292
310
  * ```ts
293
- * const value = table_getCenterLeafColumns(table)
311
+ * const columns = table_getCenterLeafColumns(table)
294
312
  * ```
295
313
  */
296
314
  declare function table_getCenterLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): Column<TFeatures, TData, unknown>[];
297
315
  /**
298
- * Returns pinned leaf columns for the table.
316
+ * Resolves leaf columns for a requested pinning region.
299
317
  *
300
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
318
+ * Pass `'left'`, `'center'`, or `'right'` for a partition, or pass `false` to
319
+ * read all leaf columns without partitioning.
301
320
  *
302
321
  * @example
303
322
  * ```ts
304
- * const value = table_getPinnedLeafColumns(table)
323
+ * const columns = table_getPinnedLeafColumns(table, 'center')
305
324
  * ```
306
325
  */
307
326
  declare function table_getPinnedLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, position: ColumnPinningPosition | 'center'): any[];
308
327
  /**
309
- * Returns left visible leaf columns for the table.
328
+ * Resolves visible leaf columns pinned to the left region.
310
329
  *
311
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
330
+ * Hidden pinned columns are filtered out after the left pin order is applied.
312
331
  *
313
332
  * @example
314
333
  * ```ts
315
- * const value = table_getLeftVisibleLeafColumns(table)
334
+ * const columns = table_getLeftVisibleLeafColumns(table)
316
335
  * ```
317
336
  */
318
337
  declare function table_getLeftVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
319
338
  /**
320
- * Returns right visible leaf columns for the table.
339
+ * Resolves visible leaf columns pinned to the right region.
321
340
  *
322
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
341
+ * Hidden pinned columns are filtered out after the right pin order is applied.
323
342
  *
324
343
  * @example
325
344
  * ```ts
326
- * const value = table_getRightVisibleLeafColumns(table)
345
+ * const columns = table_getRightVisibleLeafColumns(table)
327
346
  * ```
328
347
  */
329
348
  declare function table_getRightVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
330
349
  /**
331
- * Returns center visible leaf columns for the table.
350
+ * Resolves visible leaf columns that are not pinned.
332
351
  *
333
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
352
+ * This is the center partition used by layouts that render pinned columns
353
+ * separately from the scrollable middle region.
334
354
  *
335
355
  * @example
336
356
  * ```ts
337
- * const value = table_getCenterVisibleLeafColumns(table)
357
+ * const columns = table_getCenterVisibleLeafColumns(table)
338
358
  * ```
339
359
  */
340
360
  declare function table_getCenterVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>): any[];
341
361
  /**
342
- * Returns pinned visible leaf columns for the table.
362
+ * Resolves visible leaf columns for a requested pinning region.
343
363
  *
344
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
364
+ * Omit `position` to get all visible leaf columns, or pass `'left'`, `'center'`,
365
+ * or `'right'` to get one partition.
345
366
  *
346
367
  * @example
347
368
  * ```ts
348
- * const value = table_getPinnedVisibleLeafColumns(table)
369
+ * const columns = table_getPinnedVisibleLeafColumns(table, 'left')
349
370
  * ```
350
371
  */
351
372
  declare function table_getPinnedVisibleLeafColumns<TFeatures extends TableFeatures, TData extends RowData>(table: Table_Internal<TFeatures, TData>, position?: ColumnPinningPosition | 'center'): any[];