Commit 94bbd49
Remove Mixins (Comcast#1078)
* Remove ScrollShim mixin
* Convert Canvas to class component
* Fix ESLint errors
* Add HOC and Keyboard utils
* Remove keyboardHandlerMixin from EditorConfig
* Convert EditorContainer to a class component
* Remove displayName as it is inferred from the name of the class
* Add scrollUtils
* Remove KeyboardHandlerMixin from ReactDataGrid component
* Extract ViewportScrollMixin logic into viewportUtils
* Move ViewportScrollMix code to Viewport component
* Remove unused flow anotation
* Remove GridScrollMixin
* Add mising ReactDOM import
* Remove ColumnUtilsMixin from HeaderRow component
* Convert HeaderRow to a class component
* Remove displayName static property
* Remove ColumnUtilsMixin from Row component
* Revert "Remove displayName static property"
This reverts commit e46a22d.
* Revert "Convert HeaderRow to a class component"
This reverts commit bfd939d.
* Revert "Remove displayName as it is inferred from the name of the class"
This reverts commit 1858fd0.
* Revert "Convert EditorContainer to a class component"
This reverts commit e8ce7da.
* Revert "Fix ESLint errors"
This reverts commit 320b843.
* Revert "Add scrollUtils"
This reverts commit 4c5d43d.
* Revert "Convert Canvas to class component"
This reverts commit 87521bb.
* Add scrollUtils
* Remove MetricsComputatorMixin from the Grid component
(ReactDataGrid component adds the MetricsComputatorMixin so mixin methods are available to any child component via the context api, it does not need to be added to the Grid component)
* Remove MetricsComputatorMixin from ReadDataGrid component
* Remove ViewportScrollMixin from Viewport component
* Remove ColumnMetricsMixin from ReactDataGrid component
* Delete hocUtils as it is not used anywhere
* Set _mounted to false on componentWillUnmount
* Delete unused mixins
* Delete unused getRenderedColumnCount method
* Add tests for KeyboardHandlerMixins methods
* Use ref instead of React.findDOMNode
* Add unit tests for scrollUtils
* Add unit tests for viewportUtils
* Add unit tests for getRenderedColumnCount
* Add unit tests for getNextScrollState
* Add unit tests for keyboardUtils
* Fix unit tests
* Fix cel navigation for locked cells: Check if the node containes the class instead of strict equality1 parent 6af5e9a commit 94bbd49
File tree
22 files changed
+751
-776
lines changed- packages/react-data-grid/src
- __tests__
- editors
- utils
- __tests__
22 files changed
+751
-776
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| 8 | + | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| |||
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
70 | 100 | | |
71 | 101 | | |
72 | 102 | | |
| |||
136 | 166 | | |
137 | 167 | | |
138 | 168 | | |
139 | | - | |
| 169 | + | |
140 | 170 | | |
141 | 171 | | |
142 | 172 | | |
| |||
152 | 182 | | |
153 | 183 | | |
154 | 184 | | |
155 | | - | |
| 185 | + | |
156 | 186 | | |
157 | 187 | | |
158 | 188 | | |
| |||
183 | 213 | | |
184 | 214 | | |
185 | 215 | | |
186 | | - | |
187 | 216 | | |
188 | | - | |
189 | | - | |
| 217 | + | |
190 | 218 | | |
191 | 219 | | |
192 | 220 | | |
193 | 221 | | |
194 | | - | |
| 222 | + | |
195 | 223 | | |
196 | 224 | | |
197 | 225 | | |
| |||
207 | 235 | | |
208 | 236 | | |
209 | 237 | | |
210 | | - | |
| 238 | + | |
211 | 239 | | |
212 | 240 | | |
213 | 241 | | |
| |||
255 | 283 | | |
256 | 284 | | |
257 | 285 | | |
258 | | - | |
| 286 | + | |
259 | 287 | | |
260 | 288 | | |
261 | 289 | | |
| |||
266 | 294 | | |
267 | 295 | | |
268 | 296 | | |
269 | | - | |
| 297 | + | |
270 | 298 | | |
271 | 299 | | |
272 | 300 | | |
| |||
325 | 353 | | |
326 | 354 | | |
327 | 355 | | |
328 | | - | |
| 356 | + | |
329 | 357 | | |
330 | 358 | | |
331 | | - | |
| 359 | + | |
332 | 360 | | |
333 | 361 | | |
334 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
This file was deleted.
0 commit comments