tannerlinsley
b0d6169848
feat: added useColumnOrder + examples
2019-08-27 09:59:52 -06:00
tannerlinsley
3b42c72e7c
fix: better naming, fix header regen, getSubRows, getRowPathID
2019-08-26 09:27:07 -06:00
tannerlinsley
4665006109
fix(use-row-select): fix selection issue casued by wrong startsWith key
2019-08-23 09:24:36 -06:00
tannerlinsley
4537f28a8d
fix: fix header regeneration and colspan, better sorting
2019-08-22 14:46:33 -06:00
tannerlinsley
aab49949db
fix: rename some booleans to use 'is' prefix, added new logo
2019-08-20 09:31:11 -06:00
tannerlinsley
4a45cd6574
Merge branch 'master' of https://github.com/react-tools/react-table
2019-08-19 16:41:49 -06:00
tannerlinsley
f59efde6fe
fix: fix path getters, better plugin hook integration, renaming things
2019-08-19 16:38:42 -06:00
Codar
af37eead5b
Sub rows are selected if the parent row is selected. ( #1444 )
...
* Sub rows are selected if the parent row is selected.
* Parent rows are updated accordingly if a subRow is selected.
* Updated useRowSelect snapshot tests to test subRow selection.
2019-08-18 17:40:02 -06:00
Paweł Dąbrowski
3f0bb0a0dd
fix(use-sort-by): sorting now ignores column ids that no longer exist ( #1454 )
...
* fix(use-sort-by): sorting now ignores column ids that no longer exist
* fix(use-filters): filtering no longer fails when column doesn't exist
* fix(use-sortby): filtering out invalid sortBys before sorting
2019-08-16 09:14:30 -06:00
tannerlinsley
40884e9a44
style: lock prettier version, fix sorting example
2019-08-16 07:20:52 -06:00
tannerlinsley
d9a4b6bd85
refactor: improve renderer function ergonomics
...
The renderer function for headers, columns, cells, aggregates, filters, etc used to mix properties
from all of those contexts, including rows. Now thow contexts are located on their own reserved
properties, eg. `Cell: ({ cell: { value}, row, column, ...instance }) => value`
BREAKING CHANGE: The renderer function for headers, columns, cells, aggregates, filters, etc used
2019-08-15 14:16:52 -06:00
tannerlinsley
d50ec588bc
fix(use-pagination): fixed use pagination pageIndex bug
...
Use pagination will no longer synchronously reset the pageIndex to 0 on mount
2019-08-15 09:55:22 -06:00
tannerlinsley
f9242f604d
fix(usesortby): fix usesortby merge regression
2019-08-15 09:04:07 -06:00
Maximilian Brandau
bcd0da7379
fix: update colSpan ( #1447 )
...
Only count visible columns for determining the colSpan
fix #1446
2019-08-15 08:57:22 -06:00
tannerlinsley
696edacd48
fix(use-flex-layout): fix flex layout hook to use new internal hooks
2019-08-15 08:36:33 -06:00
Eugene Krevenets
c77ffacdc9
improve(sort): don't sort subrows less than 2 characters ( #1449 )
...
it improves performance because cuts a lot of sorting manipulations
2019-08-15 08:11:12 -06:00
gargroh
d4303a2468
[v7] useSort - Multisort functionality: Limit max cols and optional shift key ( #1433 )
...
* [v7] useSort - Multisort functionality: Limit `multiSort` number and configurable shift key
1. Provide configuration for multisort that pressing shift key is not compulsory
2. Configurable limit on max number of columns for multisort, like configuration has been provided that `maxMultiSortColCount` is 3, suppose currenlty table is sorted by `[A, B, C]` and then clicking `D` for sorting should result in table sorted by `[B, C , D]`
* update readme for new multisort options
* Use `isMultiSortEvent` function
so as to make `shift` key optional or take decision based on other parameters for multisorting
* `isMultiSortEvent` updated readme
2019-08-14 10:47:02 -06:00
tannerlinsley
a667b7cb13
fix(use-pagination): better controlled/manual use-pagination
2019-08-06 22:32:17 -06:00
tannerlinsley
5145a632c9
Merge branch 'master' of https://github.com/react-tools/react-table
2019-08-06 20:01:11 -06:00
tannerlinsley
8508a6567d
feat(multiple): useRowState, fix useRowSelect/useSortBy/usePagination
2019-08-06 19:57:48 -06:00
Pierre
1e80dd85d6
fix: disableSorting in column config level ( #1434 )
2019-08-06 08:03:17 -06:00
tannerlinsley
2b30c84abc
fix(utils/example): fixed ensurePluginOrder utility, perf/debug updates
2019-08-05 08:59:35 -06:00
tannerlinsley
037c32345f
feat(use-row-select): added useRowSelect plugin hook + related
2019-08-03 14:20:08 -06:00
tannerlinsley
6ad0d4e0c0
Merge branch 'master' of https://github.com/react-tools/react-table
2019-08-02 07:43:30 -06:00
tannerlinsley
512790bc1c
fix(multiple): sub-components example, minor refactors
...
Fixes #1423
2019-08-02 07:42:42 -06:00
gargroh
118b873531
fix(useFilters): Honor column level disableFilters by setting canFilters correct value ( #1427 )
...
* correcting typos
* [minor ] Readme update
* Honor `columnDisableFilters` in useFilters by setting `canFilters` correct value
2019-08-02 07:28:38 -06:00
tannerlinsley
2c5610d885
test(usegroupby/useexpanded): improved tests for useGroupBy/useExpanded
2019-07-30 17:00:59 -06:00
tannerlinsley
12e7b3220d
test: snapshots for useFilters, useGroupBy, useSortBy
2019-07-30 15:57:11 -06:00
tannerlinsley
df827d76e2
test(usefilters): added useFilters test placeholder
2019-07-30 14:09:48 -06:00
tannerlinsley
a7a95b2ce6
fix(usepagination): pageOptions calculate correctly, added pagination ex
2019-07-30 11:41:11 -06:00
tannerlinsley
af739d91d0
fix(usegroupby): fix useGroupBy, add grouping example and fix some tests
2019-07-30 09:56:44 -06:00
tannerlinsley
11167e5635
Refactor useTable, sorting, and filtering to use new hook layer
2019-07-29 14:51:07 -06:00
tannerlinsley
0375a7e7d5
Set up some failing tests
2019-07-29 12:05:19 -06:00
tannerlinsley
9b262676be
Fix hook defaults
2019-07-29 11:14:41 -06:00
tannerlinsley
dc73347003
Relocate columns and row logic, fix columns and useGroupBy to be more pure
...
Since useColumns was relying on groupBy logic, this was code smell. I wanted useGroupBy to be able to add that logic all by itself and not have to have dependencies in the core of the table.
To fix that, I've moved the core column and row logic to the useTable hook and added a new hook 'columnsBeforeHeaderGroups' to allow useGroupBy to do what i needs in a more pure way.
2019-07-29 11:00:07 -06:00
tannerlinsley
9f4746a7ac
Add sorting guide
2019-07-26 15:54:50 -06:00
tannerlinsley
24f6a2750d
fix(usefilters): fix filter type fallback and autoRemove functionality AGAIN
2019-07-26 11:22:23 -06:00
tannerlinsley
a3e5cac298
fix(usefilters): fixed the default filter to be 'text'
2019-07-26 10:52:27 -06:00
tannerlinsley
90922f8637
Upgrade filter types to support configurable autoRemoval
2019-07-26 10:19:38 -06:00
tannerlinsley
b2abd82350
Use useEffect in dev, not layoutEffect
2019-07-25 13:39:10 -06:00
tannerlinsley
06a6d6fcc3
Rename getHeaderRowProps to getHeaderGroupProps
2019-07-25 13:38:52 -06:00
tannerlinsley
d8599817ad
Fix immutability issue with pagination and sortBy
2019-07-25 13:38:33 -06:00
tannerlinsley
5bb2e49764
Fix useTableState setState memoization
2019-07-25 07:04:52 -06:00
tannerlinsley
c7d6562d04
Change actions and addActions to be simpler to use
2019-07-23 12:30:15 -06:00
tannerlinsley
824ee34ba9
Refactor sortBy logic
2019-07-23 12:20:32 -06:00
tannerlinsley
fd64486286
Fix usePagination to work during SSR
2019-07-23 10:55:49 -06:00
tannerlinsley
5043af5071
Move useColumns and useRows into useTable (but allow overrides)
2019-07-23 10:22:46 -06:00