@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
@@ -5,13 +5,14 @@ import type { RowData } from '../../types/type-utils'
5
5
  import type { RowModel } from './coreRowModelsFeature.types'
6
6
 
7
7
  /**
8
- * Returns core row model for the table.
8
+ * Resolves the table's unmodified core row model.
9
9
  *
10
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
10
+ * The factory is created once per table, either from `options._rowModels.coreRowModel`
11
+ * or the built-in `createCoreRowModel()`, then reused for later calls.
11
12
  *
12
13
  * @example
13
14
  * ```ts
14
- * const value = table_getCoreRowModel(table)
15
+ * const coreRows = table_getCoreRowModel(table)
15
16
  * ```
16
17
  */
17
18
  export function table_getCoreRowModel<
@@ -28,13 +29,14 @@ export function table_getCoreRowModel<
28
29
  }
29
30
 
30
31
  /**
31
- * Returns pre filtered row model for the table.
32
+ * Reads the row model immediately before column/global filtering.
32
33
  *
33
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
34
+ * Filtering is the first derived row-model stage, so this currently aliases
35
+ * `table.getCoreRowModel()`.
34
36
  *
35
37
  * @example
36
38
  * ```ts
37
- * const value = table_getPreFilteredRowModel(table)
39
+ * const rowsBeforeFiltering = table_getPreFilteredRowModel(table)
38
40
  * ```
39
41
  */
40
42
  export function table_getPreFilteredRowModel<
@@ -45,13 +47,15 @@ export function table_getPreFilteredRowModel<
45
47
  }
46
48
 
47
49
  /**
48
- * Returns filtered row model for the table.
50
+ * Resolves the row model after column and global filtering.
49
51
  *
50
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
52
+ * When `manualFiltering` is enabled, or no filtered row-model factory was
53
+ * registered, this returns the pre-filtered row model because filtering is
54
+ * expected to happen outside the table.
51
55
  *
52
56
  * @example
53
57
  * ```ts
54
- * const value = table_getFilteredRowModel(table)
58
+ * const filteredRows = table_getFilteredRowModel(table)
55
59
  * ```
56
60
  */
57
61
  export function table_getFilteredRowModel<
@@ -71,13 +75,13 @@ export function table_getFilteredRowModel<
71
75
  }
72
76
 
73
77
  /**
74
- * Returns pre grouped row model for the table.
78
+ * Reads the row model immediately before grouping.
75
79
  *
76
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
80
+ * Grouping runs after filtering, so this aliases `table.getFilteredRowModel()`.
77
81
  *
78
82
  * @example
79
83
  * ```ts
80
- * const value = table_getPreGroupedRowModel(table)
84
+ * const rowsBeforeGrouping = table_getPreGroupedRowModel(table)
81
85
  * ```
82
86
  */
83
87
  export function table_getPreGroupedRowModel<
@@ -88,13 +92,14 @@ export function table_getPreGroupedRowModel<
88
92
  }
89
93
 
90
94
  /**
91
- * Returns grouped row model for the table.
95
+ * Resolves the row model after grouping has produced grouped and aggregated rows.
92
96
  *
93
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
97
+ * When `manualGrouping` is enabled, or no grouped row-model factory was
98
+ * registered, this returns the pre-grouped row model unchanged.
94
99
  *
95
100
  * @example
96
101
  * ```ts
97
- * const value = table_getGroupedRowModel(table)
102
+ * const groupedRows = table_getGroupedRowModel(table)
98
103
  * ```
99
104
  */
100
105
  export function table_getGroupedRowModel<
@@ -114,13 +119,13 @@ export function table_getGroupedRowModel<
114
119
  }
115
120
 
116
121
  /**
117
- * Returns pre sorted row model for the table.
122
+ * Reads the row model immediately before sorting.
118
123
  *
119
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
124
+ * Sorting runs after grouping, so this aliases `table.getGroupedRowModel()`.
120
125
  *
121
126
  * @example
122
127
  * ```ts
123
- * const value = table_getPreSortedRowModel(table)
128
+ * const rowsBeforeSorting = table_getPreSortedRowModel(table)
124
129
  * ```
125
130
  */
126
131
  export function table_getPreSortedRowModel<
@@ -131,13 +136,15 @@ export function table_getPreSortedRowModel<
131
136
  }
132
137
 
133
138
  /**
134
- * Returns sorted row model for the table.
139
+ * Resolves the row model after sorting has been applied.
135
140
  *
136
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
141
+ * When `manualSorting` is enabled, or no sorted row-model factory was
142
+ * registered, this returns the pre-sorted row model because sorted data is
143
+ * expected to be supplied by the caller.
137
144
  *
138
145
  * @example
139
146
  * ```ts
140
- * const value = table_getSortedRowModel(table)
147
+ * const sortedRows = table_getSortedRowModel(table)
141
148
  * ```
142
149
  */
143
150
  export function table_getSortedRowModel<
@@ -157,13 +164,13 @@ export function table_getSortedRowModel<
157
164
  }
158
165
 
159
166
  /**
160
- * Returns pre expanded row model for the table.
167
+ * Reads the row model immediately before row expansion.
161
168
  *
162
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
169
+ * Expansion runs after sorting, so this aliases `table.getSortedRowModel()`.
163
170
  *
164
171
  * @example
165
172
  * ```ts
166
- * const value = table_getPreExpandedRowModel(table)
173
+ * const rowsBeforeExpansion = table_getPreExpandedRowModel(table)
167
174
  * ```
168
175
  */
169
176
  export function table_getPreExpandedRowModel<
@@ -174,13 +181,14 @@ export function table_getPreExpandedRowModel<
174
181
  }
175
182
 
176
183
  /**
177
- * Returns expanded row model for the table.
184
+ * Resolves the row model after expanded rows have been flattened into view.
178
185
  *
179
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
186
+ * When `manualExpanding` is enabled, or no expanded row-model factory was
187
+ * registered, this returns the pre-expanded row model unchanged.
180
188
  *
181
189
  * @example
182
190
  * ```ts
183
- * const value = table_getExpandedRowModel(table)
191
+ * const expandedRows = table_getExpandedRowModel(table)
184
192
  * ```
185
193
  */
186
194
  export function table_getExpandedRowModel<
@@ -200,13 +208,14 @@ export function table_getExpandedRowModel<
200
208
  }
201
209
 
202
210
  /**
203
- * Returns pre paginated row model for the table.
211
+ * Reads the row model immediately before pagination.
204
212
  *
205
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
213
+ * Pagination is the final built-in row-model stage, so this aliases
214
+ * `table.getExpandedRowModel()`.
206
215
  *
207
216
  * @example
208
217
  * ```ts
209
- * const value = table_getPrePaginatedRowModel(table)
218
+ * const rowsBeforePagination = table_getPrePaginatedRowModel(table)
210
219
  * ```
211
220
  */
212
221
  export function table_getPrePaginatedRowModel<
@@ -217,13 +226,15 @@ export function table_getPrePaginatedRowModel<
217
226
  }
218
227
 
219
228
  /**
220
- * Returns paginated row model for the table.
229
+ * Resolves the row model after pagination has sliced rows for the current page.
221
230
  *
222
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
231
+ * When `manualPagination` is enabled, or no paginated row-model factory was
232
+ * registered, this returns the pre-paginated row model because pagination is
233
+ * expected to happen before data reaches the table.
223
234
  *
224
235
  * @example
225
236
  * ```ts
226
- * const value = table_getPaginatedRowModel(table)
237
+ * const pageRows = table_getPaginatedRowModel(table)
227
238
  * ```
228
239
  */
229
240
  export function table_getPaginatedRowModel<
@@ -243,13 +254,14 @@ export function table_getPaginatedRowModel<
243
254
  }
244
255
 
245
256
  /**
246
- * Returns row model for the table.
257
+ * Resolves the final row model consumed by renderers.
247
258
  *
248
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
259
+ * This is the end of the built-in row-model pipeline: core -> filtering ->
260
+ * grouping -> sorting -> expanding -> pagination.
249
261
  *
250
262
  * @example
251
263
  * ```ts
252
- * const value = table_getRowModel(table)
264
+ * const visibleRows = table_getRowModel(table)
253
265
  * ```
254
266
  */
255
267
  export function table_getRowModel<
@@ -14,8 +14,9 @@ function getRowPrototype<
14
14
  >(table: Table_Internal<TFeatures, TData>): object {
15
15
  if (!table._rowPrototype) {
16
16
  table._rowPrototype = { table }
17
- for (const feature of Object.values(table._features)) {
18
- feature.assignRowPrototype?.(table._rowPrototype, table)
17
+ const features = Object.values(table._features)
18
+ for (let i = 0; i < features.length; i++) {
19
+ features[i]!.assignRowPrototype?.(table._rowPrototype, table)
19
20
  }
20
21
  }
21
22
  return table._rowPrototype
@@ -56,8 +57,9 @@ export const constructRow = <
56
57
  row.subRows = subRows ?? []
57
58
 
58
59
  // Initialize instance-specific data (e.g., caches) for features that need it
59
- for (const feature of Object.values(table._features)) {
60
- feature.initRowInstanceData?.(row)
60
+ const features = Object.values(table._features)
61
+ for (let i = 0; i < features.length; i++) {
62
+ features[i]!.initRowInstanceData?.(row)
61
63
  }
62
64
 
63
65
  return row as Row<TFeatures, TData>
@@ -49,11 +49,11 @@ export interface Row_Row<
49
49
  TData extends RowData,
50
50
  > extends Row_CoreProperties<TFeatures, TData> {
51
51
  /**
52
- * Returns all of the cells for the row by column id.
52
+ * Builds a lookup of this row's cells keyed by leaf column id.
53
53
  */
54
54
  getAllCellsByColumnId: () => Record<string, Cell<TFeatures, TData, unknown>>
55
55
  /**
56
- * Returns all of the cells for the row.
56
+ * Builds one cell for each leaf column, including cells for hidden columns.
57
57
  */
58
58
  getAllCells: () => Array<Cell<TFeatures, TData, unknown>>
59
59
  /**
@@ -69,11 +69,11 @@ export interface Row_Row<
69
69
  */
70
70
  getParentRows: () => Array<Row<TFeatures, TData>>
71
71
  /**
72
- * Returns a unique array of values from the row for a given columnId.
72
+ * Reads the values this row contributes to faceting/grouping for a column.
73
73
  */
74
74
  getUniqueValues: <TValue>(columnId: string) => Array<TValue>
75
75
  /**
76
- * Returns the value from the row for a given columnId.
76
+ * Reads this row's accessor value for a column id and caches the result.
77
77
  */
78
78
  getValue: <TValue>(columnId: string) => TValue
79
79
  /**
@@ -7,13 +7,14 @@ import type { Row } from '../../types/Row'
7
7
  import type { Cell } from '../../types/Cell'
8
8
 
9
9
  /**
10
- * Returns value for a row.
10
+ * Reads and caches this row's value for a column.
11
11
  *
12
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
12
+ * The value is produced by the column accessor. Missing columns or display
13
+ * columns without an accessor return `undefined`.
13
14
  *
14
15
  * @example
15
16
  * ```ts
16
- * const value = row_getValue(row)
17
+ * const firstName = row_getValue(row, 'firstName')
17
18
  * ```
18
19
  */
19
20
  export function row_getValue<
@@ -36,13 +37,14 @@ export function row_getValue<
36
37
  }
37
38
 
38
39
  /**
39
- * Returns unique values for a row.
40
+ * Reads and caches the values used by faceting/grouping for a column.
40
41
  *
41
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
42
+ * If the column defines `getUniqueValues`, that result is used. Otherwise the
43
+ * row's accessor value is wrapped in a single-item array.
42
44
  *
43
45
  * @example
44
46
  * ```ts
45
- * const value = row_getUniqueValues(row)
47
+ * const values = row_getUniqueValues(row, 'tags')
46
48
  * ```
47
49
  */
48
50
  export function row_getUniqueValues<
@@ -80,7 +82,7 @@ export function row_getUniqueValues<
80
82
  *
81
83
  * @example
82
84
  * ```ts
83
- * const value = row_renderValue(row)
85
+ * const value = row_renderValue(row, 'firstName')
84
86
  * ```
85
87
  */
86
88
  export function row_renderValue<
@@ -91,13 +93,13 @@ export function row_renderValue<
91
93
  }
92
94
 
93
95
  /**
94
- * Returns leaf rows for a row.
96
+ * Flattens this row's descendant tree into leaf rows.
95
97
  *
96
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
98
+ * The row itself is not included; only nested `subRows` are walked.
97
99
  *
98
100
  * @example
99
101
  * ```ts
100
- * const value = row_getLeafRows(row)
102
+ * const descendants = row_getLeafRows(row)
101
103
  * ```
102
104
  */
103
105
  export function row_getLeafRows<
@@ -108,13 +110,14 @@ export function row_getLeafRows<
108
110
  }
109
111
 
110
112
  /**
111
- * Returns parent row for a row.
113
+ * Looks up this row's direct parent, if it has one.
112
114
  *
113
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
115
+ * Parent lookup searches the pre-pagination row model so parent relationships
116
+ * are available even when the parent is not on the current page.
114
117
  *
115
118
  * @example
116
119
  * ```ts
117
- * const value = row_getParentRow(row)
120
+ * const parent = row_getParentRow(row)
118
121
  * ```
119
122
  */
120
123
  export function row_getParentRow<
@@ -125,13 +128,13 @@ export function row_getParentRow<
125
128
  }
126
129
 
127
130
  /**
128
- * Returns parent rows for a row.
131
+ * Collects this row's ancestor chain from root to direct parent.
129
132
  *
130
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
133
+ * The current row is not included. Rows without a parent return an empty array.
131
134
  *
132
135
  * @example
133
136
  * ```ts
134
- * const value = row_getParentRows(row)
137
+ * const ancestors = row_getParentRows(row)
135
138
  * ```
136
139
  */
137
140
  export function row_getParentRows<
@@ -151,32 +154,38 @@ export function row_getParentRows<
151
154
  }
152
155
 
153
156
  /**
154
- * Returns all cells for a row.
157
+ * Constructs one cell for each leaf column in this row.
155
158
  *
156
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
159
+ * The result follows `table.getAllLeafColumns()` order and includes hidden
160
+ * columns; visibility-specific APIs filter this list later.
157
161
  *
158
162
  * @example
159
163
  * ```ts
160
- * const value = row_getAllCells(row)
164
+ * const cells = row_getAllCells(row)
161
165
  * ```
162
166
  */
163
167
  export function row_getAllCells<
164
168
  TFeatures extends TableFeatures,
165
169
  TData extends RowData,
166
170
  >(row: Row<TFeatures, TData>): Array<Cell<TFeatures, TData, unknown>> {
167
- return row.table.getAllLeafColumns().map((column) => {
168
- return constructCell(column, row, row.table)
169
- })
171
+ const columns = row.table.getAllLeafColumns()
172
+ const cells: Array<Cell<TFeatures, TData, unknown>> = new Array(
173
+ columns.length,
174
+ )
175
+ for (let i = 0; i < columns.length; i++) {
176
+ cells[i] = constructCell(columns[i]!, row, row.table)
177
+ }
178
+ return cells
170
179
  }
171
180
 
172
181
  /**
173
- * Returns all cells by column id for a row.
182
+ * Builds a lookup map of this row's cells keyed by column id.
174
183
  *
175
- * This is the static implementation behind the matching row instance API and may read row caches or table state atoms.
184
+ * This is the static implementation behind `row.getAllCellsByColumnId()`.
176
185
  *
177
186
  * @example
178
187
  * ```ts
179
- * const value = row_getAllCellsByColumnId(row)
188
+ * const cellsById = row_getAllCellsByColumnId(row)
180
189
  * ```
181
190
  */
182
191
  export function row_getAllCellsByColumnId<
@@ -184,20 +193,23 @@ export function row_getAllCellsByColumnId<
184
193
  TData extends RowData,
185
194
  >(row: Row<TFeatures, TData>) {
186
195
  const result: Record<string, Cell<TFeatures, TData, unknown>> = {}
187
- for (const cell of row.getAllCells()) {
196
+ const cells = row.getAllCells()
197
+ for (let i = 0; i < cells.length; i++) {
198
+ const cell = cells[i]!
188
199
  result[cell.column.id] = cell
189
200
  }
190
201
  return result
191
202
  }
192
203
 
193
204
  /**
194
- * Returns row id for the table.
205
+ * Resolves the stable id for a row.
195
206
  *
196
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
207
+ * `options.getRowId` wins when provided. Otherwise root rows use their index
208
+ * and child rows append their index to the parent id, such as `0.2`.
197
209
  *
198
210
  * @example
199
211
  * ```ts
200
- * const value = table_getRowId(table)
212
+ * const id = table_getRowId(originalRow, table, index, parentRow)
201
213
  * ```
202
214
  */
203
215
  export function table_getRowId<
@@ -216,13 +228,14 @@ export function table_getRowId<
216
228
  }
217
229
 
218
230
  /**
219
- * Returns row for the table.
231
+ * Looks up a row by id from the current or full row model.
220
232
  *
221
- * This reads the relevant table atoms, options, and row-model cache to derive the current table-level value.
233
+ * By default this searches `table.getRowModel()`. Passing `searchAll` searches
234
+ * the pre-pagination model first, then falls back to the core model.
222
235
  *
223
236
  * @example
224
237
  * ```ts
225
- * const value = table_getRow(table)
238
+ * const row = table_getRow(table, rowId, true)
226
239
  * ```
227
240
  */
228
241
  export function table_getRow<
@@ -79,7 +79,8 @@ export function constructTable<
79
79
  string & keyof TableState<TFeatures>
80
80
  >
81
81
 
82
- for (const key of stateKeys) {
82
+ for (let i = 0; i < stateKeys.length; i++) {
83
+ const key = stateKeys[i]!
83
84
  // create writable base atom
84
85
  table.baseAtoms[key] = _reactivity.createWritableAtom(
85
86
  table.initialState[key],
@@ -107,7 +108,8 @@ export function constructTable<
107
108
  _reactivity.createReadonlyAtom(
108
109
  () => {
109
110
  const snapshot = {} as TableState<TFeatures>
110
- for (const key of stateKeys) {
111
+ for (let i = 0; i < stateKeys.length; i++) {
112
+ const key = stateKeys[i]!
111
113
  snapshot[key] = table.atoms[key].get()
112
114
  }
113
115
  return snapshot
@@ -136,8 +138,8 @@ export function constructTable<
136
138
  )
137
139
  }
138
140
 
139
- for (const feature of featuresList) {
140
- feature.constructTableAPIs?.(table)
141
+ for (let i = 0; i < featuresList.length; i++) {
142
+ featuresList[i]!.constructTableAPIs?.(table)
141
143
  }
142
144
 
143
145
  return table
@@ -66,11 +66,15 @@ export interface TableOptions_Table<
66
66
  TData extends RowData,
67
67
  > {
68
68
  /**
69
- * The features that you want to enable for the table.
69
+ * The feature modules registered on this table instance.
70
+ *
71
+ * Feature registration controls which state slices, options, and prototype
72
+ * APIs are available.
70
73
  */
71
74
  readonly _features: TFeatures
72
75
  /**
73
- * The row model options that you want to enable for the table.
76
+ * Row model factories used by features such as filtering, grouping, sorting,
77
+ * expansion, and pagination.
74
78
  */
75
79
  readonly _rowModels?: CreateRowModels_All<TFeatures, TData>
76
80
  /**
@@ -12,7 +12,7 @@ import type { TableOptions } from '../../types/TableOptions'
12
12
  *
13
13
  * @example
14
14
  * ```ts
15
- * const value = table_syncExternalStateToBaseAtoms(table)
15
+ * table_syncExternalStateToBaseAtoms(table)
16
16
  * ```
17
17
  */
18
18
  export function table_syncExternalStateToBaseAtoms<
@@ -56,7 +56,9 @@ export function table_reset<
56
56
  >(table: Table_Internal<TFeatures, TData>): void {
57
57
  const snap = cloneState(table.initialState)
58
58
  table._reactivity.batch(() => {
59
- for (const key of Object.keys(snap) as Array<keyof typeof snap>) {
59
+ const keys = Object.keys(snap) as Array<keyof typeof snap>
60
+ for (let i = 0; i < keys.length; i++) {
61
+ const key = keys[i]!
60
62
  ;(table.baseAtoms as any)[key].set(snap[key] as any)
61
63
  }
62
64
  })
@@ -70,7 +72,7 @@ export function table_reset<
70
72
  *
71
73
  * @example
72
74
  * ```ts
73
- * const value = table_mergeOptions(table)
75
+ * const options = table_mergeOptions(table, nextOptions)
74
76
  * ```
75
77
  */
76
78
  export function table_mergeOptions<
@@ -8,15 +8,18 @@ export interface Column_ColumnFaceting<
8
8
  TData extends RowData,
9
9
  > {
10
10
  /**
11
- * A function that **computes and returns** a min/max tuple derived from `column.getFacetedRowModel`. Useful for displaying faceted result values.
11
+ * Computes min/max numeric facet values for this column.
12
12
  */
13
13
  getFacetedMinMaxValues: () => undefined | [number, number]
14
14
  /**
15
- * A function that **computes and returns** a row model with all other column filters applied, excluding its own filter. Useful for displaying faceted result counts.
15
+ * Computes the row model used to derive this column's facet values.
16
+ *
17
+ * Other column filters are applied, while this column's own filter is
18
+ * excluded.
16
19
  */
17
20
  getFacetedRowModel: () => RowModel<TFeatures, TData>
18
21
  /**
19
- * Returns a `Map` of unique values and their occurrences derived from `column.getFacetedRowModel`. Useful for displaying faceted result values.
22
+ * Computes unique facet values and occurrence counts for this column.
20
23
  */
21
24
  getFacetedUniqueValues: () => Map<any, number>
22
25
  }
@@ -26,18 +29,21 @@ export interface Table_RowModels_Faceted<
26
29
  TData extends RowData,
27
30
  > {
28
31
  /**
29
- * A function that **computes and returns** a min/max tuple derived from `column.getFacetedRowModel`. Useful for displaying faceted result values.
30
- * > Requires that you pass a valid `facetedMinMaxValues` row model factory in `_rowModels`. A default implementation is provided via the exported `createFacetedMinMaxValues` function.
32
+ * Computes min/max numeric facet values for the active faceting context.
33
+ *
34
+ * Requires a `facetedMinMaxValues` row-model factory in `_rowModels`.
31
35
  */
32
36
  getFacetedMinMaxValues: () => undefined | [number, number]
33
37
  /**
34
- * Returns the row model with all other column filters applied, excluding its own filter. Useful for displaying faceted result counts.
35
- * > Requires that you pass a valid `facetedRowModel` row model factory in `_rowModels`. A default implementation is provided via the exported `createFacetedRowModel` function.
38
+ * Computes the row model used to derive facet values.
39
+ *
40
+ * Requires a `facetedRowModel` row-model factory in `_rowModels`.
36
41
  */
37
42
  getFacetedRowModel: () => RowModel<TFeatures, TData>
38
43
  /**
39
- * A function that **computes and returns** a `Map` of unique values and their occurrences derived from `column.getFacetedRowModel`. Useful for displaying faceted result values.
40
- * > Requires that you pass a valid `facetedUniqueValues` row model factory in `_rowModels`. A default implementation is provided via the exported `createFacetedUniqueValues` function.
44
+ * Computes unique facet values and occurrence counts.
45
+ *
46
+ * Requires a `facetedUniqueValues` row-model factory in `_rowModels`.
41
47
  */
42
48
  getFacetedUniqueValues: () => Map<any, number>
43
49
  }
@@ -93,7 +99,7 @@ export interface Table_ColumnFaceting<
93
99
  */
94
100
  getGlobalFacetedMinMaxValues: () => undefined | [number, number]
95
101
  /**
96
- * Returns the row model for the table after **global** filtering has been applied.
102
+ * Computes the row model used to derive global facet values.
97
103
  */
98
104
  getGlobalFacetedRowModel: () => RowModel<TFeatures, TData>
99
105
  /**