0
Fork 0
mirror of https://github.com/TanStack/table.git synced 2026-11-18 18:55:54 +00:00
Commit graph

63 commits

Author SHA1 Message Date
Riccardo Perra
889e83fa14
feat(angular): Add angular table composability (#6144)
* feat(angular): wip add table context and hook helpers

* ci: apply automated fixes

* update composable table example

* add some directives to provide table context

* remove lazyInit set property workaround

* ci: apply automated fixes

* fix garbage collection issues in angular

* fix: avoid creating computed cache for methods that need an object as an argument

* refactor toComputed, add some tests

* refactor(injectTable): improve type definitions and enhance reactivity in table subscription

* refactor(reactivity): enhance memoization and improve reactivity checks

* add table cell contexts

* cleanup

* fixes some examples

* refactor flexRender to work with signals

* refactor flexRender implementation to work with signals, add FlexRenderCell docs

* cleanup examples

* cleanup structure

* table state selector fix for angular

* basic app table example

* code review fixes

* flex render run content(props) in injection context

* createTableHook add typed helpers

* refactor composable table examples with products/users table components, add missing header/table components

* ci: apply automated fixes

* refactor table components to use inject functions and update documentation

* ci: apply automated fixes

* fix: update comment to reflect usage of injectTable hook in app.component.ts

* fix: update documentation for injectFlexRenderCellContext to clarify cell-level typings

* fix: update RowActionsCell to use typed injectTableCellContext with Person type

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-13 08:53:38 -06:00
Kevin Van Cott
62af4f4f55
feat: rewrite tanstack table with tanstack store (#6143)
* progress on rewriting tanstack table with tanstack store

* poc for new solid table adapter

* fix solid examples

* remove temp

* fix header groups bug

* refactor assignAPIs

* svelte somewhat working

* feat: move row, cell, headers, and column methods to the prototype save tons of memory

* update vue adapter and examples

* more vue stuff

* update angular table kind of

* lit adapter refactor

* fix(angular): update test config and added missing injector context

* injector context is now needed since we use injectStore

* update some unit tests and fix sherif

* fix some more tests - angular focussed

* update experimental virtualized examples

* fix linting and react/preact adapters

* disable all but react and preact and table-core for now

* fix some shadcn issues

* css

* test react/preact example tsc

* fix a lot of react examples

* omg I fixed a tvalue column helper issue!

* add tanstack forma example

* small make state updater type fix even though it might be removed soon

* Use baseStore and derived store to allow external state again

* rename a bunch of examples

* fix example names

* feat(angular): improvements to angularReactivityFeature (#5921)

* fix array types and imports

* toComputed return a named function, add more granular flags

* remove table proxy implementation, improve angular reactivity feature

* wip: add flex render custom notifier when table state change

* ci: apply automated fixes

* wip: angularReactivityFeature replace _rootNotifier with get

* ci: apply automated fixes

* wip: some renames, types improvements and test cases

- rename `_setRootNotifier` to `_setTableNotifier`
- add strict typings to `toComputed`
- add test case for reactivity utils

* ci: apply automated fixes

* wip: fix types, add reactive symbol to detect whether a property is reactive

* wip: setup benchmark test

* wip: skipBaseProperties skip properties that ends with Handler

* wip: skipBaseProperties skip properties that ends with Handler, pass skip custom fn from table options

* align base branch, fix lazy init

* fix table helper types

* cleanup lazy signal initializer

* table reactivity feature cleanup

* flex render cleanup and export FlexRender as directive

* refactor injectTable to work with tanstack store reactivity

* fix injectTable test

* fix test utils test

* refactor reactivity handling in angular features and improve prototype assignments

* fix row-dnd tsconfig

* fix test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* chore(angular): using signals into flexRender to avoid re-rendering

* feat(angular): flex-render switch to 'tableChange' notifier mode for performance improvements

* feat: createTableHook

* more createTableHook flex render improvements and fixed some tests

* fix other table-core tests

* fix more lint errors in react examples

* fix preact typeconfig issues in examples

* ci: apply automated fixes

* fix knip, disable preact-table publishing for now

---------

Co-authored-by: riccardoperra <riccardo.perra@icloud.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-01-07 22:00:45 -06:00
Kevin Van Cott
51aca77b3a package upgrades 2025-12-12 07:20:21 -06:00
Riccardo Perra
3211ed8b06
docs(angular): add remote data with ssr example (#5914)
* docs(angular): add remote data with ssr example
2025-02-15 00:43:33 +01:00
Riccardo Perra
2a41a7e195
Merge main into alpha (#5907)
* feat(angular-table): Refactor Flex render implementation - Zoneless, Better type safety, allows reactive values into cell content, re-render when cell context changes, allow to pass signal inputs into custom components (#5856)

* feat: flex render granular updates

* updates

* cleanup

* cleanup

* cleanup

* fix test

* angular add explicit version of typescript

* Fix typescript versions

* add some testing for flex render in table

* fix test infra

* refactor flex render

* update lock

* fix tests, cleanup code

* fix tests, cleanup code

* flex render signal content support

* flex render signal content support

* improve view flags, handle state update in zoneless

* improve view flags, handle state update in zoneless

* fix

* ci: apply automated fixes

* clean docs
test
fix doc
add flexRenderComponent util

* test cases

* fix: enable computed rowModels

* fix test for rowModel

* assures that `updateProps` update inputs only for Component reference type

* Merge pull request #1 from riccardoperra/feat/angular-flex-render-support-output-binding

add support for angular outputs in flex-render-component

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* release: v8.21.0

* docs(angular): add editable, row-dnd and performant column resizing example (#5881)

* add editable cell example

* add editable cell example

* row dnd exmaple

* revert basic

* ci: apply automated fixes

* column resizing performant example

* fix

* fix budgets

* ci: apply automated fixes

* typo

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

* docs(angular): add missing faker-js deps (#5883)

* fix(lit-table): dynamic data updates in the Lit Table Adapter (#5884)

* this fixes an issue I discussed in discord where with the lit table
adapter, updating a data array did not get reflected by the table.

It is a one-line change to the TableController, and a new example that
demonstrates the difference.

* Update packages/lit-table/src/index.ts

per suggestion from @kadoshms

Co-authored-by: Mor Kadosh <kadoshms@gmail.com>

---------

Co-authored-by: Luke Schierer <lschiere@amazon.com>
Co-authored-by: Mor Kadosh <kadoshms@gmail.com>

* docs: add experimental virtualization example (#5895)

* docs: add experimental virtualization example

* work on experimental virtualized column examples

---------

Co-authored-by: Kevin Van Cott <kevin.vancott@rentvision.com>

* release: v8.21.1

* docs: example name

* docs(angular): add expanding and sub components examples (#5898)

* docs(angular): add expanding example

* docs(angular): add sub components example

* docs(angular): fix config.json

* fix conflicts in lit package

* remove angular package non-fesm export

* since angular 19, ng-packgr only bundle a `fesm2022` export

* docs: exp virtual - remeasure when table state changes

* docs: virtualizer tbody from onchange

* update all angular examples

* fix conflicts in examples/react

* ci: apply automated fixes

* fix tests

* ci: apply automated fixes

* fix tests

* ci: apply automated fixes

* angular: update vite config to support vitest workspaces

* docs(angular): fix examples

* ci: apply automated fixes

---------

Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Tanner Linsley <tannerlinsley@users.noreply.github.com>
Co-authored-by: Luke Schierer <2224044+lschierer@users.noreply.github.com>
Co-authored-by: Luke Schierer <lschiere@amazon.com>
Co-authored-by: Mor Kadosh <kadoshms@gmail.com>
Co-authored-by: Kevin Van Cott <kevinvandy656@gmail.com>
Co-authored-by: Kevin Van Cott <kevin.vancott@rentvision.com>
2025-02-10 09:40:53 -06:00
Kevin Van Cott
495f0edb1e fix global faceting to column faceting 2025-01-11 23:58:27 -06:00
Kevin Van Cott
df8183547a fix some type errors in examples 2025-01-06 21:10:22 -06:00
Kevin Van Cott
1820d178a3 remove old kitchen sink example 2025-01-03 00:07:41 -06:00
Kevin Van Cott
d6ef04343a fix webpack error, no longer fn.name 2025-01-01 02:30:31 -06:00
Riccardo Perra
fa3149197f
chore(angular-table): Update all angular 19 examples (#5842)
* update angular

* update examples

* update column visibility example

* update grouping example

* update row selection

* update signal input example

* Removed unused modules

* fix grouping example

* format code

* fix lint
2024-12-21 07:18:58 -06:00
Kevin Van Cott
bc69a07068 update examples to pass fns new way 2024-12-15 22:08:30 -06:00
Kevin Van Cott
d77172b079 upgrade to react 19 2024-12-06 17:38:10 -06:00
Riccardo Perra
9e8029fa85
feat(angular-table): Improve proxy signal implementation for v9 - Maybe also v8 (#5816)
* angular v19 table adapter

* angular v19 table adapter

* add angular table helper

* wip: fix proxy build

* eslint

* fix basic example

* table selection fix

* wip reactivity feature

* wip reactivity feature

* fix

* update with reactivity feat

* change

* improve proxy impl

* fix examples

* fix test
add test typecheck
improve test
fixes
fix
flex render experimental reactivity
improve test, fix reactivity toComputed
enable experimental reactivity
fix grouping example
fix some examples

* fix types

* angular v19 table adapter

* angular v19 table adapter

* angular v19 table adapter
2024-11-25 11:09:01 -06:00
Kevin Van Cott
bcb4c786d2 clean up extra noinfer, angular examples 2024-11-24 20:34:32 -06:00
Riccardo Perra
525fbcb560
feat(angular-table): Support Tanstack v9 alpha and Angular 19, fix examples (#5817)
* angular v19 table adapter

* angular v19 table adapter

* fix types
2024-11-24 14:41:01 -06:00
Kevin Van Cott
de4fcdf4f1 package upgrades - including angular 19 2024-11-21 17:54:13 -06:00
Kevin Van Cott
a5faaa4e24 package upgrades 2024-11-13 19:45:17 -06:00
Kevin Van Cott
f6344bb9f9 rename feature imports 2024-11-13 19:17:40 -06:00
Kevin Van Cott
03af0784a8 start cleanup of svelte and lit examples 2024-11-01 22:05:59 -05:00
Kevin Van Cott
a4904ad00a package upgrades 2024-10-30 18:30:00 -05:00
Kevin Van Cott
889bfebf96 another row model refactor 2024-10-21 19:39:38 -05:00
Kevin Van Cott
a6983e4ca3 large simplification of processingFns and get rid of TFns generic 2024-10-13 08:56:54 -05:00
autofix-ci[bot]
ef94b23ec3
ci: apply automated fixes 2024-10-02 02:09:28 +00:00
Kevin Van Cott
b60001bf23 add unused imports rule 2024-10-01 21:08:10 -05:00
Kevin Van Cott
a1219e2d69 feat: add fns generic and refactor how fns get added 2024-09-29 22:41:18 -05:00
Kevin Van Cott
f48bd8871e package upgrades 2024-09-29 16:39:34 -05:00
Lachlan Collins
96c9a32e47
chore: Add missing TFeatures argument (#5664) 2024-07-17 19:17:14 +10:00
Lachlan Collins
04563a7d3d
chore: Fix broken imports (#5656)
* chore: Fix broken imports

* Fix broken imports in tests
2024-07-12 03:11:03 +10:00
Kevin Van Cott
8a24b14d19 chore: introduce TFeatures generic 2024-07-09 23:24:31 -05:00
Kevin Van Cott
bec8968bc7
chore: _rowModels refactor (#5649)
* start row model refactor to be like feature options

* update some examples

* update react examples with new row models
2024-07-09 08:05:13 -05:00
Kevin Van Cott
ed66ab996c chore: refactor to more static functions in core 2024-07-06 23:51:34 -05:00
Kevin Van Cott
69ffb37be1 chore: run lint fix on examples 2024-07-06 22:04:24 -05:00
Kevin Van Cott
1d035e5e06 chore: refactor some static function calls 2024-07-06 21:18:34 -05:00
Kevin Vandy
773bab4a03 chore: use same prettier config as query 2024-07-06 15:12:26 -05:00
Kevin Vandy
73b86aea4f chore: rename a bunch of types 2024-07-03 16:21:40 -05:00
Tanner Linsley
0867d85a86 release: v9.0.0-alpha.10 2024-06-30 18:00:05 +00:00
Tanner Linsley
3a20f67a18 release: v9.0.0-alpha.9 2024-06-30 04:29:32 +00:00
Tanner Linsley
23c6ddc05e release: v9.0.0-alpha.8 2024-06-29 01:09:15 +00:00
Lachlan Collins
7a5fb0f570 Merge branch 'main' into alpha 2024-06-29 10:52:00 +10:00
Leonardo Montini
80e45ccb52
docs(examples): Add example using TanStack Query and Router (#5625)
* docs: add example with query and router

* chore: update lockfile

* fix tests

* prettier stuff

* Downgrade prettier

---------

Co-authored-by: Kevin Vandy <kevinvandy656@gmail.com>
Co-authored-by: Lachlan Collins <1667261+lachlancollins@users.noreply.github.com>
2024-06-29 10:01:44 +10:00
Tanner Linsley
fa2a338448 release: v9.0.0-alpha.6 2024-06-20 01:02:14 +00:00
Kevin Van Cott
ab2b4913f4
feat: follow other tanstack naming conventions (#5615) 2024-06-19 20:00:47 -05:00
Tanner Linsley
8350e8f942 release: v9.0.0-alpha.5 2024-06-17 03:31:51 +00:00
Kevin Vandy
102d3e5aa9 upgrade angular deps 2024-06-13 23:35:41 -05:00
Tanner Linsley
407b532c4e release: v9.0.0-alpha.4 2024-06-12 09:34:16 +00:00
Tanner Linsley
a3f54bd027 release: v9.0.0-alpha.3 2024-06-12 04:28:07 +00:00
Kevin Vandy
8febb95255 update example table version 2024-06-11 23:25:42 -05:00
Kevin Vandy
f766282764 chore: Merge branch 'main' into alpha 2024-06-11 23:17:41 -05:00
Tanner Linsley
3379a47333 release: v8.19.0 2024-06-03 20:29:13 +00:00
mamerto-g
3ae414ccc5
feat(angular-table): Added support for custom component renderer with signal (#5576)
* feat(angular-table): Added support for custom component renderer with signal

* Fix PR check error, update pnpm-lock.yaml

* feat(angular-table): updated lock file

* feat(angular-table): update pnpm-lock.yaml

* feat(angular-table): update row-selection-signal's angular version

* feat(angular-table): update pnpm-lock.yaml

* feat(anguar-table): added unit test

* feat(angular-table): commented unit test for custom component

* feat(angular-table): skip test for custom component

* feat(angular-table): skip test for custom component
2024-06-03 16:26:52 -04:00