- Feature - Improve filtering performance #24
- Fix - Fix JSX error when
hasAutomaticIndentation
is false #23
- Fix - Include Redux 5 to peer dep. #22
- Chore - Support React 16. #21
- Fix -
tree.fixOrder
works with deeply nested data now. #13, #20
- Feature - Expose
toggleChildren
toggleEvent
as a prop. Defaults to DoubleClick
. #12
- Fix -
tree.getParents
allows undefined
parents now. #10
- Feature - Add
indent
prop to tree.toggleChildren
. Set to false
to default indentation behavior. #8
- Chore - Fix
tree.filter
API signature at documentation. #7
- Chore - Update readme example. Now sorting should work.
- Chore - Update readme example.
- Feature - Expose
tree.toggleChildren
indexing through a getIndex
callback. It looks into rowData._index
by default.
- Fix - Make sure
tree.hasChildren
does not crash if index
is negative.
- Breaking fix - Allow children that have sub-children to be displayed. #4
- Fix - Allow
tree.hasChildren
to receive parentField
. #4
- Feature - Add
tree.fixOrder
- If children in your rows don't follow their parents you can use that helper method so they will be moved into right place. #2
- Docs - Fix example column toggling.
- Feature - Add
tree.wrap = ({ operations: [rows => rows], idField = 'id' }) => (rows) => [<operatedRow>]
.
- Breaking
tree.moveRows
does not depend on reactabular-dnd directly anymore. Instead you have to pass the move operation
to it. The new signature is tree.moveRows = ({ operation: (rows) => [<row>], retain = [], idField = 'id', parentField = 'parent' }) => (rows) => [<movedRow>]
.
- Breaking -
tree.search
does not depend on selectabular directly anymore. Instead you have to pass the search operation
to it. The new signature is tree.search = ({ operation: (rows) => [<row>], idField = 'id', parentField = 'parent' }) => (rows) => [<searchedRow>]
.
- Breaking -
tree.sort
has been dropped. Use tree.wrap
instead. Example:
wrap({
operations: [
sorter({
columns,
sortingColumns,
sort: orderBy
})
]
})(rows);
- Bug fix - Bump
reactabular-dnd
peer dependency range.
- Initial re-release under a different name.
- Bug fix - Respect
idField
properly at tree.moveRows
.
- Breaking - Make
tree.filter
throw if fieldName
is not passed. Without this it would fail silently.
- Feature - Attach
_isParent
to parents when using tree.unpack
.
- Bug fix -
tree.moveRows
will return the original rows now if moving fails for some reason.
- Bug fix - Allow
tree.toggleChildren
to work without column props
defined.
- Feature - Add
tree.getImmediateChildren
.
- Feature - Add
tree.moveRows
.
- Breaking - Refactor
tree.filter
as ({ fieldName, parentField = 'parent' }) => (rows) => filteredRows
.
- Bug fix - Allow
tree.filter
parent
to be zero.
- Feature - Allow
idField
to be passed to tree.sort
.
- Bug fix - Bump peer version ranges to avoid npm warnings.
- Breaking - Merge
tree.flatten
with tree.unpack
. The new signature for tree.unpack
is tree.unpack = ({ parentField = 'parent', parent, idField = 'id'}) => (rows) => <unpackedRows>
.
- Breaking - Rework API so that all functions except
tree.toggleChildren
work in curry format ((...) => (rows) => <new rows>
). This way the API is consistent and easy to extend.
- Breaking - Expose
childrenField
for tree.pack
and tree.unpack
. It defaults to children
.
- Breaking - Make
tree.pack
to work in a recursive manner (packs children within children).
- Breaking - Make
tree.search
match against children as well. If children as matched, it will return parents as well.
- Feature - Add
tree.getChildren
utilities for getting node children.
- Bug fix - If
className
is not provided to tree.toggleChildren
, do not render undefined
as a class. Also dropped extra console.log
.
- Bug fix - Calculate
tree.getParents
correctly for root level nodes without parents. Previously that gave false positives.
- Feature - Annotate
tree.toggleChildren
with has-children
and has-parent
classes. Easier to style this way.
- Feature - Add
tree.flatten
to allow transforming a nested tree structure into a flat structure used by the algorithms.
- Feature - Let
toggleChildren
toggle when cell is clicked. If you want the old behavior, override onClick
through props
.
- Feature - Add
collapseAll
and expandAll
helpers.
- Feature - Allow
toggleChildren
to accept props
for customization.
- Feature - Allow
id
to be passed to filter
.
- Feature - Allow
toggleChildren
id
to be customized (not just "id" anymore).
- Feature - Include suggested default styling for the toggle arrow.
- Bug fix - Pass
strategy
to sorter
at tree.sort
.
- Breaking - Rewrite API. Now most parts accept objects and you can also customize field names.
- Feature - Add
tree.sort
to wrap toggling row children.