- Initial re-release under a different name.
- Bug fix - Respect
idField
properly attree.moveRows
. - Breaking - Make
tree.filter
throw iffieldName
is not passed. Without this it would fail silently. - Feature - Attach
_isParent
to parents when usingtree.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 columnprops
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 totree.sort
.
- Bug fix - Bump peer version ranges to avoid npm warnings.
- Breaking - Merge
tree.flatten
withtree.unpack
. The new signature fortree.unpack
istree.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
fortree.pack
andtree.unpack
. It defaults tochildren
. - 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 totree.toggleChildren
, do not renderundefined
as a class. Also dropped extraconsole.log
.
- Bug fix - Calculate
tree.getParents
correctly for root level nodes without parents. Previously that gave false positives. - Feature - Annotate
tree.toggleChildren
withhas-children
andhas-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, overrideonClick
throughprops
. - Feature - Add
collapseAll
andexpandAll
helpers.
- Feature - Allow
toggleChildren
to acceptprops
for customization.
- Feature - Allow
id
to be passed tofilter
.
- Feature - Allow
toggleChildren
id
to be customized (not just "id" anymore).
- Feature - Include suggested default styling for the toggle arrow.
- Bug fix - Pass
strategy
tosorter
attree.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.
- Initial release.