UNPKG

6.32 kBMarkdownView Raw
1## treetabular
2
33.5.1 / 2018-06-25
4==================
5
6 * Fix - Include Redux 5 to peer dep. #22
7
83.5.0 / 2017-10-05
9==================
10
11 * Chore - Support React 16. #21
12
133.4.0 / 2017-09-13
14==================
15
16 * Fix - `tree.fixOrder` works with deeply nested data now. #13, #20
17
183.3.0 / 2017-03-14
19==================
20
21 * Feature - Expose `toggleChildren` `toggleEvent` as a prop. Defaults to `DoubleClick`. #12
22
233.2.1 / 2017-02-25
24==================
25
26 * Fix - `tree.getParents` allows `undefined` parents now. #10
27
283.2.0 / 2017-02-25
29==================
30
31 * Feature - Add `indent` prop to `tree.toggleChildren`. Set to `false` to default indentation behavior. #8
32
333.1.3 / 2017-02-22
34==================
35
36 * Chore - Fix `tree.filter` API signature at documentation. #7
37
383.1.2 / 2017-02-14
39==================
40
41 * Chore - Update readme example. Now sorting should work.
42
433.1.1 / 2017-02-11
44==================
45
46 * Chore - Update readme example.
47
483.1.0 / 2017-02-09
49==================
50
51 * Feature - Expose `tree.toggleChildren` indexing through a `getIndex` callback. It looks into `rowData._index` by default.
52
533.0.1 / 2017-02-09
54==================
55
56 * Fix - Make sure `tree.hasChildren` does not crash if `index` is negative.
57
583.0.0 / 2017-02-09
59==================
60
61 * Breaking fix - Allow children that have sub-children to be displayed. #4
62 * Fix - Allow `tree.hasChildren` to receive `parentField`. #4
63
642.1.0 / 2017-02-06
65==================
66
67 * 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
68
692.0.2 / 2017-02-03
70==================
71
72 * Docs - Improve intro.
73
742.0.1 / 2017-02-02
75==================
76
77 * Docs - Fix example column toggling.
78
792.0.0 / 2016-12-16
80==================
81
82 * Feature - Add `tree.wrap = ({ operations: [rows => rows], idField = 'id' }) => (rows) => [<operatedRow>]`.
83 * 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>]`.
84 * 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>]`.
85 * Breaking - `tree.sort` has been dropped. Use `tree.wrap` instead. Example:
86
87```javascript
88wrap({
89 operations: [
90 sorter({
91 columns,
92 sortingColumns,
93 sort: orderBy
94 })
95 ]
96})(rows);
97```
98
991.0.6 / 2016-11-30
100==================
101
102 * Bug fix - Bump `reactabular-dnd` peer dependency range.
103
1041.0.0 / 2016-11-26
105==================
106
107 * Initial re-release under a different name.
108 * Bug fix - Respect `idField` properly at `tree.moveRows`.
109 * Breaking - Make `tree.filter` throw if `fieldName` is not passed. Without this it would fail silently.
110 * Feature - Attach `_isParent` to parents when using `tree.unpack`.
111 * Bug fix - `tree.moveRows` will return the original rows now if moving fails for some reason.
112
113---
114
115## reactabular-tree
116
1177.0.0 / 2016-11-03
118==================
119
120 * Bug fix - Allow `tree.toggleChildren` to work without column `props` defined.
121 * Feature - Add `tree.getImmediateChildren`.
122 * Feature - Add `tree.moveRows`.
123 * Breaking - Refactor `tree.filter` as `({ fieldName, parentField = 'parent' }) => (rows) => filteredRows`.
124
1256.1.1 / 2016-10-27
126==================
127
128 * Bug fix - Allow `tree.filter` `parent` to be zero.
129
1306.1.0 / 2016-10-25
131==================
132
133 * Feature - Allow `idField` to be passed to `tree.sort`.
134
1356.0.3 / 2016-10-19
136==================
137
138 * Bug fix - Bump peer version ranges to avoid npm warnings.
139
1406.0.0 / 2016-10-14
141==================
142
143 * Breaking - Merge `tree.flatten` with `tree.unpack`. The new signature for `tree.unpack` is `tree.unpack = ({ parentField = 'parent', parent, idField = 'id'}) => (rows) => <unpackedRows>`.
144 * 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.
145 * Breaking - Expose `childrenField` for `tree.pack` and `tree.unpack`. It defaults to `children`.
146 * Breaking - Make `tree.pack` to work in a recursive manner (packs children within children).
147 * Breaking - Make `tree.search` match against children as well. If children as matched, it will return parents as well.
148 * Feature - Add `tree.getChildren` utilities for getting node children.
149
1505.2.1 / 2016-09-30
151==================
152
153 * Bug fix - If `className` is not provided to `tree.toggleChildren`, do not render `undefined` as a class. Also dropped extra `console.log`.
154
1555.2.0 / 2016-09-30
156==================
157
158 * Bug fix - Calculate `tree.getParents` correctly for root level nodes without parents. Previously that gave false positives.
159 * Feature - Annotate `tree.toggleChildren` with `has-children` and `has-parent` classes. Easier to style this way.
160
1615.1.0 / 2016-09-29
162==================
163
164 * Feature - Add `tree.flatten` to allow transforming a nested tree structure into a flat structure used by the algorithms.
165
1664.3.0 / 2016-09-27
167==================
168
169 * Feature - Let `toggleChildren` toggle when cell is clicked. If you want the old behavior, override `onClick` through `props`.
170 * Feature - Add `collapseAll` and `expandAll` helpers.
171
1724.2.0 / 2016-09-23
173==================
174
175 * Feature - Allow `toggleChildren` to accept `props` for customization.
176
1773.0.5 / 2016-09-02
178==================
179
180 * Feature - Allow `id` to be passed to `filter`.
181
1823.0.4 / 2016-09-02
183==================
184
185 * Feature - Allow `toggleChildren` `id` to be customized (not just "id" anymore).
186
1873.0.2 / 2016-09-01
188==================
189
190 * Feature - Include suggested default styling for the toggle arrow.
191
1923.0.1 / 2016-09-01
193==================
194
195 * Bug fix - Pass `strategy` to `sorter` at `tree.sort`.
196
1973.0.0 / 2016-09-01
198==================
199
200 * Breaking - Rewrite API. Now most parts accept objects and you can also customize field names.
201 * Feature - Add `tree.sort` to wrap toggling row children.
202
2032.0.0 / 2016-08-16
204==================
205
206 * Initial release.