Commit Graph

659 Commits

Author SHA1 Message Date
tannerlinsley
8a8c18feca docs(docs): docs 2019-08-15 15:33:39 -06:00
tannerlinsley
98466e6414 docs(docs): improve docs 2019-08-15 15:32:03 -06:00
tannerlinsley
3aef7d3379 v7.0.0-alpha.22 v7.0.0-alpha.22 2019-08-15 14:20:40 -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
Eugene Krevenets
59f6a768a7 improve(use-table): use single instance of defaultColumn property (#1451)
in case of using construction like:
```
{
  defaultColumn = {}
}
```
`defaultColumn` will get new instance each time, so as result it force to recalculation each of `React.useMemo`.
2019-08-15 08:58:42 -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
14ea0abf27 docs(readme): fix Zappi link 2019-08-15 08:39:03 -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
tannerlinsley
f665972584 Merge branch 'master' of https://github.com/react-tools/react-table 2019-08-15 08:31:57 -06:00
tannerlinsley
deb15c3908 docs(readme): updated readme 2019-08-15 08:28:37 -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
Marian Lumba
dc629aedfa updating code sandbox links (#1437) 2019-08-08 14:11:32 -06:00
tannerlinsley
134f3dc064 v7.0.0-alpha.21 v7.0.0-alpha.21 2019-08-06 22:34:17 -06:00
tannerlinsley
a667b7cb13 fix(use-pagination): better controlled/manual use-pagination 2019-08-06 22:32:17 -06:00
tannerlinsley
4f01c32216 v7.0.0-alpha.20 v7.0.0-alpha.20 2019-08-06 20:01:52 -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
Tanner Linsley
3cbb49fc37 Update README.md 2019-08-05 14:52:56 -06:00
tannerlinsley
110e04bf61 v7.0.0-alpha.19 v7.0.0-alpha.19 2019-08-05 09:00:16 -06:00
tannerlinsley
2b30c84abc fix(utils/example): fixed ensurePluginOrder utility, perf/debug updates 2019-08-05 08:59:35 -06:00
tannerlinsley
fd0fe43ad9 Merge branch 'master' of https://github.com/react-tools/react-table 2019-08-05 08:45:18 -06:00
gargroh
5975e0c4cd [Minor] use actual param in ensurePluginOrder (#1429) 2019-08-05 08:45:01 -06:00
gargroh
e7bbddbb0f [Minor] typo correction (#1431) 2019-08-05 08:44:16 -06:00
Tanner Linsley
49a1023467 Update README.md 2019-08-05 08:43:39 -06:00
Tanner Linsley
7167350921 Update README.md 2019-08-05 08:39:54 -06:00
Tanner Linsley
77cb0d97a8 Update README.md 2019-08-05 07:39:55 -06:00
Tanner Linsley
0672de486a Update README.md 2019-08-05 07:38:07 -06:00
Tanner Linsley
e0f83d32fe Update README.md 2019-08-05 06:53:29 -06:00
Tanner Linsley
3aaa5b9b1e Update README.md 2019-08-05 06:52:46 -06:00
Tanner Linsley
352de348fe Update README.md 2019-08-05 06:48:00 -06:00
tannerlinsley
21d3853dba v7.0.0-alpha.18 v7.0.0-alpha.18 2019-08-03 14:37:38 -06:00
tannerlinsley
095979b9db docs(readme): updated readme 2019-08-03 14:36:52 -06:00
tannerlinsley
f52d5af115 docs(examples): updated example directory names 2019-08-03 14:31:13 -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
39c2b152f6 docs(readme): better docs on nested columns 2019-07-31 16:21:03 -06:00
tannerlinsley
adfc82b472 v7.0.0-alpha.17 v7.0.0-alpha.17 2019-07-31 12:27:58 -06:00
tannerlinsley
6030282428 Merge branch 'master' of https://github.com/react-tools/react-table 2019-07-31 12:27:18 -06:00
tannerlinsley
f6ee2a3d99 fix(npm/examples): added src back to npm package, fixed grouping example 2019-07-31 12:27:06 -06:00
Aurimas
633cc27a99 fix(utils): default Cell renderer cleanup (#1421) 2019-07-31 08:47:21 -06:00
tannerlinsley
02b2671f5c v7.0.0-alpha.16 v7.0.0-alpha.16 2019-07-30 17:01:59 -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
bcefe5d6e8 v7.0.0-alpha.15 v7.0.0-alpha.15 2019-07-30 14:10:19 -06:00