@mui/x-data-grid 5.6.1 → 5.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (778) hide show
  1. package/CHANGELOG.md +71 -1
  2. package/DataGrid/DataGrid.js +10 -0
  3. package/DataGrid/useDataGridComponent.js +8 -2
  4. package/components/ErrorOverlay.js +8 -1
  5. package/components/GridLoadingOverlay.d.ts +4 -2
  6. package/components/GridLoadingOverlay.js +11 -2
  7. package/components/GridNoResultsOverlay.d.ts +3 -2
  8. package/components/GridNoRowsOverlay.d.ts +4 -2
  9. package/components/GridNoRowsOverlay.js +11 -2
  10. package/components/base/GridErrorHandler.js +6 -25
  11. package/components/cell/GridEditBooleanCell.js +1 -1
  12. package/components/cell/GridEditDateCell.js +1 -1
  13. package/components/cell/GridEditInputCell.js +66 -5
  14. package/components/cell/GridEditSingleSelectCell.js +76 -4
  15. package/components/columnHeaders/GridColumnHeaderTitle.d.ts +2 -2
  16. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  17. package/components/columnHeaders/GridColumnHeaders.js +3 -1
  18. package/components/containers/GridOverlay.d.ts +9 -2
  19. package/components/containers/GridOverlay.js +11 -2
  20. package/components/containers/GridRootStyles.js +2 -2
  21. package/components/panel/GridColumnsPanel.d.ts +4 -1
  22. package/components/panel/GridColumnsPanel.js +3 -3
  23. package/components/panel/GridPanelWrapper.d.ts +1 -1
  24. package/components/panel/GridPreferencesPanel.js +4 -6
  25. package/hooks/core/preProcessing/gridPreProcessingApi.d.ts +11 -15
  26. package/hooks/core/preProcessing/useGridPreProcessing.d.ts +3 -0
  27. package/hooks/core/preProcessing/useGridPreProcessing.js +5 -1
  28. package/hooks/core/preProcessing/useGridRegisterPreProcessor.d.ts +5 -2
  29. package/hooks/core/preProcessing/useGridRegisterPreProcessor.js +4 -0
  30. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +58 -0
  31. package/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
  32. package/hooks/core/strategyProcessing/index.d.ts +3 -0
  33. package/hooks/core/strategyProcessing/index.js +3 -0
  34. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +4 -0
  35. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
  36. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +37 -0
  37. package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +114 -0
  38. package/hooks/core/useGridInitialization.js +2 -2
  39. package/hooks/features/columns/gridColumnsInterfaces.d.ts +6 -1
  40. package/hooks/features/columns/gridColumnsUtils.d.ts +12 -4
  41. package/hooks/features/columns/gridColumnsUtils.js +113 -29
  42. package/hooks/features/columns/useGridColumns.d.ts +1 -1
  43. package/hooks/features/columns/useGridColumns.js +79 -42
  44. package/hooks/features/editRows/useGridCellEditing.new.d.ts +4 -0
  45. package/hooks/features/editRows/useGridCellEditing.new.js +315 -0
  46. package/hooks/features/editRows/{useGridCellEditing.d.ts → useGridCellEditing.old.d.ts} +0 -0
  47. package/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
  48. package/hooks/features/editRows/useGridEditing.new.d.ts +6 -0
  49. package/hooks/features/editRows/useGridEditing.new.js +118 -0
  50. package/hooks/features/editRows/{useGridEditing.d.ts → useGridEditing.old.d.ts} +0 -0
  51. package/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
  52. package/hooks/features/editRows/useGridRowEditing.new.d.ts +4 -0
  53. package/hooks/features/editRows/useGridRowEditing.new.js +486 -0
  54. package/hooks/features/editRows/{useGridRowEditing.d.ts → useGridRowEditing.old.d.ts} +0 -0
  55. package/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
  56. package/hooks/features/filter/gridFilterState.d.ts +2 -5
  57. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  58. package/hooks/features/filter/useGridFilter.js +21 -27
  59. package/hooks/features/focus/useGridFocus.d.ts +1 -1
  60. package/hooks/features/focus/useGridFocus.js +37 -1
  61. package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +5 -0
  62. package/hooks/features/rows/gridRowsState.d.ts +20 -5
  63. package/hooks/features/rows/useGridRows.d.ts +0 -3
  64. package/hooks/features/rows/useGridRows.js +63 -42
  65. package/hooks/features/rows/useGridRowsPreProcessors.d.ts +3 -0
  66. package/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
  67. package/hooks/features/selection/useGridSelection.js +4 -0
  68. package/hooks/features/sorting/gridSortingState.d.ts +2 -5
  69. package/hooks/features/sorting/useGridSorting.js +7 -26
  70. package/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
  71. package/index.js +1 -1
  72. package/internals/index.d.ts +10 -7
  73. package/internals/index.js +4 -3
  74. package/legacy/DataGrid/DataGrid.js +10 -0
  75. package/legacy/DataGrid/useDataGridComponent.js +8 -2
  76. package/legacy/components/ErrorOverlay.js +8 -1
  77. package/legacy/components/GridLoadingOverlay.js +11 -2
  78. package/legacy/components/GridNoRowsOverlay.js +11 -2
  79. package/legacy/components/base/GridErrorHandler.js +3 -24
  80. package/legacy/components/cell/GridEditBooleanCell.js +2 -1
  81. package/legacy/components/cell/GridEditDateCell.js +2 -1
  82. package/legacy/components/cell/GridEditInputCell.js +66 -5
  83. package/legacy/components/cell/GridEditSingleSelectCell.js +83 -7
  84. package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  85. package/legacy/components/columnHeaders/GridColumnHeaders.js +3 -1
  86. package/legacy/components/containers/GridOverlay.js +11 -2
  87. package/legacy/components/containers/GridRootStyles.js +2 -2
  88. package/legacy/components/panel/GridColumnsPanel.js +3 -3
  89. package/legacy/components/panel/GridPreferencesPanel.js +4 -6
  90. package/legacy/hooks/core/preProcessing/useGridPreProcessing.js +5 -1
  91. package/legacy/hooks/core/preProcessing/useGridRegisterPreProcessor.js +4 -0
  92. package/legacy/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
  93. package/legacy/hooks/core/strategyProcessing/index.js +3 -0
  94. package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
  95. package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +119 -0
  96. package/legacy/hooks/core/useGridInitialization.js +2 -2
  97. package/legacy/hooks/features/columns/gridColumnsUtils.js +117 -27
  98. package/legacy/hooks/features/columns/useGridColumns.js +80 -43
  99. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +329 -0
  100. package/legacy/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
  101. package/legacy/hooks/features/editRows/useGridEditing.new.js +152 -0
  102. package/legacy/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
  103. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +493 -0
  104. package/legacy/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
  105. package/legacy/hooks/features/filter/useGridFilter.js +21 -27
  106. package/legacy/hooks/features/focus/useGridFocus.js +37 -1
  107. package/legacy/hooks/features/rows/useGridRows.js +65 -44
  108. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +36 -0
  109. package/legacy/hooks/features/selection/useGridSelection.js +4 -0
  110. package/legacy/hooks/features/sorting/useGridSorting.js +7 -26
  111. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
  112. package/legacy/index.js +1 -1
  113. package/legacy/internals/index.js +4 -3
  114. package/legacy/locales/arSD.js +62 -58
  115. package/legacy/locales/faIR.js +26 -22
  116. package/legacy/locales/koKR.js +1 -1
  117. package/legacy/locales/plPL.js +30 -26
  118. package/legacy/models/events/gridEvents.js +2 -1
  119. package/legacy/models/gridEditRowModel.js +1 -0
  120. package/legacy/models/params/gridEditCellParams.js +34 -1
  121. package/legacy/models/params/gridRowParams.js +39 -1
  122. package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +5 -1
  123. package/legacy/utils/utils.js +150 -3
  124. package/locales/arSD.js +58 -58
  125. package/locales/faIR.js +22 -22
  126. package/locales/koKR.js +1 -1
  127. package/locales/plPL.js +26 -26
  128. package/models/api/gridApiCommon.d.ts +2 -2
  129. package/models/api/gridEditingApi.d.ts +125 -4
  130. package/models/api/gridFocusApi.d.ts +9 -0
  131. package/models/api/index.d.ts +1 -1
  132. package/models/colDef/gridColDef.d.ts +4 -0
  133. package/models/events/gridEventLookup.d.ts +11 -5
  134. package/models/events/gridEvents.d.ts +9 -2
  135. package/models/events/gridEvents.js +2 -1
  136. package/models/gridEditRowModel.d.ts +4 -3
  137. package/models/gridEditRowModel.js +1 -0
  138. package/models/params/gridCellParams.d.ts +10 -1
  139. package/models/params/gridEditCellParams.d.ts +50 -0
  140. package/models/params/gridEditCellParams.js +34 -1
  141. package/models/params/gridRowParams.d.ts +41 -1
  142. package/models/params/gridRowParams.js +39 -1
  143. package/models/props/DataGridProps.d.ts +13 -1
  144. package/modern/DataGrid/DataGrid.js +10 -0
  145. package/modern/DataGrid/useDataGridComponent.js +6 -2
  146. package/modern/components/ErrorOverlay.js +8 -1
  147. package/modern/components/GridLoadingOverlay.js +11 -2
  148. package/modern/components/GridNoRowsOverlay.js +11 -2
  149. package/modern/components/base/GridErrorHandler.js +1 -20
  150. package/modern/components/cell/GridEditBooleanCell.js +1 -1
  151. package/modern/components/cell/GridEditDateCell.js +1 -1
  152. package/modern/components/cell/GridEditInputCell.js +64 -5
  153. package/modern/components/cell/GridEditSingleSelectCell.js +72 -4
  154. package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  155. package/modern/components/columnHeaders/GridColumnHeaders.js +3 -1
  156. package/modern/components/containers/GridOverlay.js +11 -2
  157. package/modern/components/containers/GridRootStyles.js +2 -2
  158. package/modern/components/panel/GridColumnsPanel.js +3 -3
  159. package/modern/components/panel/GridPreferencesPanel.js +3 -5
  160. package/modern/hooks/core/preProcessing/useGridPreProcessing.js +5 -1
  161. package/modern/hooks/core/preProcessing/useGridRegisterPreProcessor.js +4 -0
  162. package/modern/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
  163. package/modern/hooks/core/strategyProcessing/index.js +3 -0
  164. package/modern/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
  165. package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +112 -0
  166. package/modern/hooks/core/useGridInitialization.js +2 -2
  167. package/modern/hooks/features/columns/gridColumnsUtils.js +113 -27
  168. package/modern/hooks/features/columns/useGridColumns.js +74 -39
  169. package/modern/hooks/features/editRows/useGridCellEditing.new.js +315 -0
  170. package/modern/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
  171. package/modern/hooks/features/editRows/useGridEditing.new.js +118 -0
  172. package/modern/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
  173. package/modern/hooks/features/editRows/useGridRowEditing.new.js +484 -0
  174. package/modern/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
  175. package/modern/hooks/features/filter/useGridFilter.js +17 -27
  176. package/modern/hooks/features/focus/useGridFocus.js +37 -1
  177. package/modern/hooks/features/rows/useGridRows.js +63 -42
  178. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
  179. package/modern/hooks/features/selection/useGridSelection.js +4 -0
  180. package/modern/hooks/features/sorting/useGridSorting.js +7 -26
  181. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
  182. package/modern/index.js +1 -1
  183. package/modern/internals/index.js +4 -3
  184. package/modern/locales/arSD.js +58 -58
  185. package/modern/locales/faIR.js +22 -22
  186. package/modern/locales/koKR.js +1 -1
  187. package/modern/locales/plPL.js +26 -26
  188. package/modern/models/events/gridEvents.js +2 -1
  189. package/modern/models/gridEditRowModel.js +1 -0
  190. package/modern/models/params/gridEditCellParams.js +34 -1
  191. package/modern/models/params/gridRowParams.js +39 -1
  192. package/modern/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
  193. package/modern/utils/utils.js +150 -3
  194. package/node/DataGrid/DataGrid.js +10 -0
  195. package/node/DataGrid/useDataGridComponent.js +11 -3
  196. package/node/components/ErrorOverlay.js +10 -1
  197. package/node/components/GridLoadingOverlay.js +10 -1
  198. package/node/components/GridNoRowsOverlay.js +10 -1
  199. package/node/components/base/GridErrorHandler.js +7 -30
  200. package/node/components/cell/GridEditBooleanCell.js +1 -1
  201. package/node/components/cell/GridEditDateCell.js +1 -1
  202. package/node/components/cell/GridEditInputCell.js +66 -5
  203. package/node/components/cell/GridEditSingleSelectCell.js +76 -4
  204. package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  205. package/node/components/columnHeaders/GridColumnHeaders.js +3 -1
  206. package/node/components/containers/GridOverlay.js +10 -1
  207. package/node/components/containers/GridRootStyles.js +2 -2
  208. package/node/components/panel/GridColumnsPanel.js +3 -3
  209. package/node/components/panel/GridPreferencesPanel.js +4 -5
  210. package/node/hooks/core/preProcessing/useGridPreProcessing.js +4 -1
  211. package/node/hooks/core/preProcessing/useGridRegisterPreProcessor.js +3 -0
  212. package/node/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
  213. package/node/hooks/core/strategyProcessing/index.js +44 -0
  214. package/node/hooks/{features/sorting/useGridRegisterSortingMethod.js → core/strategyProcessing/useGridRegisterStrategyProcessor.js} +18 -9
  215. package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +135 -0
  216. package/node/hooks/core/useGridInitialization.js +2 -2
  217. package/node/hooks/features/columns/gridColumnsUtils.js +118 -31
  218. package/node/hooks/features/columns/useGridColumns.js +82 -41
  219. package/node/hooks/features/editRows/useGridCellEditing.new.js +334 -0
  220. package/node/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
  221. package/node/hooks/features/editRows/useGridEditing.new.js +142 -0
  222. package/node/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
  223. package/node/hooks/features/editRows/useGridRowEditing.new.js +499 -0
  224. package/node/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +6 -6
  225. package/node/hooks/features/filter/useGridFilter.js +21 -26
  226. package/node/hooks/features/focus/useGridFocus.js +40 -1
  227. package/node/hooks/features/rows/useGridRows.js +62 -41
  228. package/node/hooks/features/rows/useGridRowsPreProcessors.js +46 -0
  229. package/node/hooks/features/selection/useGridSelection.js +4 -0
  230. package/node/hooks/features/sorting/useGridSorting.js +7 -26
  231. package/node/hooks/features/virtualization/useGridVirtualScroller.js +5 -3
  232. package/node/index.js +1 -1
  233. package/node/internals/index.js +29 -15
  234. package/node/locales/arSD.js +58 -58
  235. package/node/locales/faIR.js +22 -22
  236. package/node/locales/koKR.js +1 -1
  237. package/node/locales/plPL.js +26 -26
  238. package/node/models/events/gridEvents.js +2 -1
  239. package/node/models/gridEditRowModel.js +1 -0
  240. package/node/models/params/gridEditCellParams.js +37 -1
  241. package/node/models/params/gridRowParams.js +42 -1
  242. package/node/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
  243. package/node/utils/utils.js +152 -11
  244. package/package.json +1 -1
  245. package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +2 -0
  246. package/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
  247. package/utils/utils.d.ts +27 -2
  248. package/utils/utils.js +150 -3
  249. package/hooks/core/rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.d.ts +0 -35
  250. package/hooks/core/rowGroupsPreProcessing/index.d.ts +0 -2
  251. package/hooks/core/rowGroupsPreProcessing/index.js +0 -2
  252. package/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.d.ts +0 -3
  253. package/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -72
  254. package/hooks/features/filter/useGridRegisterFilteringMethod.d.ts +0 -4
  255. package/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
  256. package/hooks/features/sorting/useGridRegisterSortingMethod.d.ts +0 -4
  257. package/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
  258. package/legacy/hooks/core/rowGroupsPreProcessing/index.js +0 -2
  259. package/legacy/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -71
  260. package/legacy/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
  261. package/legacy/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
  262. package/legacy/lib/lodash/_DataView.js +0 -8
  263. package/legacy/lib/lodash/_Hash.js +0 -33
  264. package/legacy/lib/lodash/_ListCache.js +0 -33
  265. package/legacy/lib/lodash/_Map.js +0 -8
  266. package/legacy/lib/lodash/_MapCache.js +0 -33
  267. package/legacy/lib/lodash/_Promise.js +0 -8
  268. package/legacy/lib/lodash/_Set.js +0 -8
  269. package/legacy/lib/lodash/_SetCache.js +0 -28
  270. package/legacy/lib/lodash/_Stack.js +0 -28
  271. package/legacy/lib/lodash/_Symbol.js +0 -7
  272. package/legacy/lib/lodash/_Uint8Array.js +0 -7
  273. package/legacy/lib/lodash/_WeakMap.js +0 -8
  274. package/legacy/lib/lodash/_arrayFilter.js +0 -29
  275. package/legacy/lib/lodash/_arrayLikeKeys.js +0 -46
  276. package/legacy/lib/lodash/_arrayPush.js +0 -23
  277. package/legacy/lib/lodash/_arraySome.js +0 -26
  278. package/legacy/lib/lodash/_assocIndexOf.js +0 -25
  279. package/legacy/lib/lodash/_baseGetAllKeys.js +0 -22
  280. package/legacy/lib/lodash/_baseGetTag.js +0 -29
  281. package/legacy/lib/lodash/_baseIsArguments.js +0 -20
  282. package/legacy/lib/lodash/_baseIsEqual.js +0 -32
  283. package/legacy/lib/lodash/_baseIsEqualDeep.js +0 -85
  284. package/legacy/lib/lodash/_baseIsNative.js +0 -47
  285. package/legacy/lib/lodash/_baseIsTypedArray.js +0 -49
  286. package/legacy/lib/lodash/_baseKeys.js +0 -35
  287. package/legacy/lib/lodash/_baseTimes.js +0 -23
  288. package/legacy/lib/lodash/_baseUnary.js +0 -16
  289. package/legacy/lib/lodash/_cacheHas.js +0 -15
  290. package/legacy/lib/lodash/_coreJsData.js +0 -7
  291. package/legacy/lib/lodash/_equalArrays.js +0 -84
  292. package/legacy/lib/lodash/_equalByTag.js +0 -117
  293. package/legacy/lib/lodash/_equalObjects.js +0 -92
  294. package/legacy/lib/lodash/_freeGlobal.js +0 -6
  295. package/legacy/lib/lodash/_getAllKeys.js +0 -18
  296. package/legacy/lib/lodash/_getMapData.js +0 -18
  297. package/legacy/lib/lodash/_getNative.js +0 -19
  298. package/legacy/lib/lodash/_getRawTag.js +0 -50
  299. package/legacy/lib/lodash/_getSymbols.js +0 -32
  300. package/legacy/lib/lodash/_getTag.js +0 -64
  301. package/legacy/lib/lodash/_getValue.js +0 -15
  302. package/legacy/lib/lodash/_hashClear.js +0 -17
  303. package/legacy/lib/lodash/_hashDelete.js +0 -19
  304. package/legacy/lib/lodash/_hashGet.js +0 -34
  305. package/legacy/lib/lodash/_hashHas.js +0 -25
  306. package/legacy/lib/lodash/_hashSet.js +0 -25
  307. package/legacy/lib/lodash/_isIndex.js +0 -25
  308. package/legacy/lib/lodash/_isKeyable.js +0 -18
  309. package/legacy/lib/lodash/_isMasked.js +0 -23
  310. package/legacy/lib/lodash/_isPrototype.js +0 -19
  311. package/legacy/lib/lodash/_listCacheClear.js +0 -15
  312. package/legacy/lib/lodash/_listCacheDelete.js +0 -40
  313. package/legacy/lib/lodash/_listCacheGet.js +0 -20
  314. package/legacy/lib/lodash/_listCacheHas.js +0 -18
  315. package/legacy/lib/lodash/_listCacheSet.js +0 -29
  316. package/legacy/lib/lodash/_mapCacheClear.js +0 -23
  317. package/legacy/lib/lodash/_mapCacheDelete.js +0 -20
  318. package/legacy/lib/lodash/_mapCacheGet.js +0 -18
  319. package/legacy/lib/lodash/_mapCacheHas.js +0 -18
  320. package/legacy/lib/lodash/_mapCacheSet.js +0 -23
  321. package/legacy/lib/lodash/_mapToArray.js +0 -19
  322. package/legacy/lib/lodash/_nativeCreate.js +0 -7
  323. package/legacy/lib/lodash/_nativeKeys.js +0 -7
  324. package/legacy/lib/lodash/_nodeUtil.js +0 -25
  325. package/legacy/lib/lodash/_objectToString.js +0 -24
  326. package/legacy/lib/lodash/_overArg.js +0 -17
  327. package/legacy/lib/lodash/_root.js +0 -11
  328. package/legacy/lib/lodash/_setCacheAdd.js +0 -22
  329. package/legacy/lib/lodash/_setCacheHas.js +0 -16
  330. package/legacy/lib/lodash/_setToArray.js +0 -19
  331. package/legacy/lib/lodash/_stackClear.js +0 -17
  332. package/legacy/lib/lodash/_stackDelete.js +0 -19
  333. package/legacy/lib/lodash/_stackGet.js +0 -16
  334. package/legacy/lib/lodash/_stackHas.js +0 -16
  335. package/legacy/lib/lodash/_stackSet.js +0 -40
  336. package/legacy/lib/lodash/_toSource.js +0 -30
  337. package/legacy/lib/lodash/date.default.js +0 -4
  338. package/legacy/lib/lodash/date.js +0 -2
  339. package/legacy/lib/lodash/eq.js +0 -39
  340. package/legacy/lib/lodash/function.default.js +0 -4
  341. package/legacy/lib/lodash/function.js +0 -2
  342. package/legacy/lib/lodash/isArguments.js +0 -38
  343. package/legacy/lib/lodash/isArray.js +0 -27
  344. package/legacy/lib/lodash/isArrayLike.js +0 -35
  345. package/legacy/lib/lodash/isBuffer.js +0 -40
  346. package/legacy/lib/lodash/isDeepEqual.js +0 -45
  347. package/legacy/lib/lodash/isFunction.js +0 -40
  348. package/legacy/lib/lodash/isLength.js +0 -36
  349. package/legacy/lib/lodash/isObject.js +0 -36
  350. package/legacy/lib/lodash/isObjectLike.js +0 -33
  351. package/legacy/lib/lodash/isSymbol.js +0 -31
  352. package/legacy/lib/lodash/isTypedArray.js +0 -28
  353. package/legacy/lib/lodash/keys.js +0 -39
  354. package/legacy/lib/lodash/lang.default.js +0 -28
  355. package/legacy/lib/lodash/lang.js +0 -14
  356. package/legacy/lib/lodash/now.js +0 -25
  357. package/legacy/lib/lodash/object.default.js +0 -4
  358. package/legacy/lib/lodash/object.js +0 -2
  359. package/legacy/lib/lodash/stubArray.js +0 -25
  360. package/legacy/lib/lodash/stubFalse.js +0 -20
  361. package/legacy/lib/lodash/toNumber.js +0 -70
  362. package/legacy/lib/lodash/util.default.js +0 -6
  363. package/legacy/lib/lodash/util.js +0 -3
  364. package/lib/lodash/_DataView.d.ts +0 -2
  365. package/lib/lodash/_DataView.js +0 -8
  366. package/lib/lodash/_Hash.d.ts +0 -29
  367. package/lib/lodash/_Hash.js +0 -33
  368. package/lib/lodash/_ListCache.d.ts +0 -29
  369. package/lib/lodash/_ListCache.js +0 -33
  370. package/lib/lodash/_Map.d.ts +0 -2
  371. package/lib/lodash/_Map.js +0 -8
  372. package/lib/lodash/_MapCache.d.ts +0 -29
  373. package/lib/lodash/_MapCache.js +0 -33
  374. package/lib/lodash/_Promise.d.ts +0 -2
  375. package/lib/lodash/_Promise.js +0 -8
  376. package/lib/lodash/_Set.d.ts +0 -2
  377. package/lib/lodash/_Set.js +0 -8
  378. package/lib/lodash/_SetCache.d.ts +0 -28
  379. package/lib/lodash/_SetCache.js +0 -28
  380. package/lib/lodash/_Stack.d.ts +0 -32
  381. package/lib/lodash/_Stack.js +0 -28
  382. package/lib/lodash/_Symbol.d.ts +0 -3
  383. package/lib/lodash/_Symbol.js +0 -7
  384. package/lib/lodash/_Uint8Array.d.ts +0 -3
  385. package/lib/lodash/_Uint8Array.js +0 -7
  386. package/lib/lodash/_WeakMap.d.ts +0 -2
  387. package/lib/lodash/_WeakMap.js +0 -8
  388. package/lib/lodash/_arrayFilter.d.ts +0 -11
  389. package/lib/lodash/_arrayFilter.js +0 -29
  390. package/lib/lodash/_arrayLikeKeys.d.ts +0 -10
  391. package/lib/lodash/_arrayLikeKeys.js +0 -46
  392. package/lib/lodash/_arrayPush.d.ts +0 -10
  393. package/lib/lodash/_arrayPush.js +0 -23
  394. package/lib/lodash/_arraySome.d.ts +0 -12
  395. package/lib/lodash/_arraySome.js +0 -26
  396. package/lib/lodash/_assocIndexOf.d.ts +0 -10
  397. package/lib/lodash/_assocIndexOf.js +0 -25
  398. package/lib/lodash/_baseGetAllKeys.d.ts +0 -13
  399. package/lib/lodash/_baseGetAllKeys.js +0 -22
  400. package/lib/lodash/_baseGetTag.d.ts +0 -9
  401. package/lib/lodash/_baseGetTag.js +0 -29
  402. package/lib/lodash/_baseIsArguments.d.ts +0 -9
  403. package/lib/lodash/_baseIsArguments.js +0 -20
  404. package/lib/lodash/_baseIsEqual.d.ts +0 -16
  405. package/lib/lodash/_baseIsEqual.js +0 -32
  406. package/lib/lodash/_baseIsEqualDeep.d.ts +0 -16
  407. package/lib/lodash/_baseIsEqualDeep.js +0 -85
  408. package/lib/lodash/_baseIsNative.d.ts +0 -10
  409. package/lib/lodash/_baseIsNative.js +0 -47
  410. package/lib/lodash/_baseIsTypedArray.d.ts +0 -9
  411. package/lib/lodash/_baseIsTypedArray.js +0 -49
  412. package/lib/lodash/_baseKeys.d.ts +0 -9
  413. package/lib/lodash/_baseKeys.js +0 -35
  414. package/lib/lodash/_baseTimes.d.ts +0 -11
  415. package/lib/lodash/_baseTimes.js +0 -23
  416. package/lib/lodash/_baseUnary.d.ts +0 -9
  417. package/lib/lodash/_baseUnary.js +0 -16
  418. package/lib/lodash/_cacheHas.d.ts +0 -10
  419. package/lib/lodash/_cacheHas.js +0 -15
  420. package/lib/lodash/_coreJsData.d.ts +0 -3
  421. package/lib/lodash/_coreJsData.js +0 -7
  422. package/lib/lodash/_equalArrays.d.ts +0 -15
  423. package/lib/lodash/_equalArrays.js +0 -84
  424. package/lib/lodash/_equalByTag.d.ts +0 -19
  425. package/lib/lodash/_equalByTag.js +0 -117
  426. package/lib/lodash/_equalObjects.d.ts +0 -15
  427. package/lib/lodash/_equalObjects.js +0 -92
  428. package/lib/lodash/_freeGlobal.d.ts +0 -3
  429. package/lib/lodash/_freeGlobal.js +0 -5
  430. package/lib/lodash/_getAllKeys.d.ts +0 -9
  431. package/lib/lodash/_getAllKeys.js +0 -18
  432. package/lib/lodash/_getMapData.d.ts +0 -10
  433. package/lib/lodash/_getMapData.js +0 -18
  434. package/lib/lodash/_getNative.d.ts +0 -10
  435. package/lib/lodash/_getNative.js +0 -19
  436. package/lib/lodash/_getRawTag.d.ts +0 -9
  437. package/lib/lodash/_getRawTag.js +0 -50
  438. package/lib/lodash/_getSymbols.d.ts +0 -2
  439. package/lib/lodash/_getSymbols.js +0 -32
  440. package/lib/lodash/_getTag.d.ts +0 -10
  441. package/lib/lodash/_getTag.js +0 -64
  442. package/lib/lodash/_getValue.d.ts +0 -10
  443. package/lib/lodash/_getValue.js +0 -15
  444. package/lib/lodash/_hashClear.d.ts +0 -13
  445. package/lib/lodash/_hashClear.js +0 -17
  446. package/lib/lodash/_hashDelete.d.ts +0 -12
  447. package/lib/lodash/_hashDelete.js +0 -19
  448. package/lib/lodash/_hashGet.d.ts +0 -11
  449. package/lib/lodash/_hashGet.js +0 -34
  450. package/lib/lodash/_hashHas.d.ts +0 -11
  451. package/lib/lodash/_hashHas.js +0 -25
  452. package/lib/lodash/_hashSet.d.ts +0 -12
  453. package/lib/lodash/_hashSet.js +0 -25
  454. package/lib/lodash/_isIndex.d.ts +0 -10
  455. package/lib/lodash/_isIndex.js +0 -23
  456. package/lib/lodash/_isKeyable.d.ts +0 -9
  457. package/lib/lodash/_isKeyable.js +0 -15
  458. package/lib/lodash/_isMasked.d.ts +0 -9
  459. package/lib/lodash/_isMasked.js +0 -23
  460. package/lib/lodash/_isPrototype.d.ts +0 -9
  461. package/lib/lodash/_isPrototype.js +0 -19
  462. package/lib/lodash/_listCacheClear.d.ts +0 -13
  463. package/lib/lodash/_listCacheClear.js +0 -15
  464. package/lib/lodash/_listCacheDelete.d.ts +0 -11
  465. package/lib/lodash/_listCacheDelete.js +0 -40
  466. package/lib/lodash/_listCacheGet.d.ts +0 -11
  467. package/lib/lodash/_listCacheGet.js +0 -20
  468. package/lib/lodash/_listCacheHas.d.ts +0 -11
  469. package/lib/lodash/_listCacheHas.js +0 -18
  470. package/lib/lodash/_listCacheSet.d.ts +0 -12
  471. package/lib/lodash/_listCacheSet.js +0 -29
  472. package/lib/lodash/_mapCacheClear.d.ts +0 -18
  473. package/lib/lodash/_mapCacheClear.js +0 -23
  474. package/lib/lodash/_mapCacheDelete.d.ts +0 -11
  475. package/lib/lodash/_mapCacheDelete.js +0 -20
  476. package/lib/lodash/_mapCacheGet.d.ts +0 -11
  477. package/lib/lodash/_mapCacheGet.js +0 -18
  478. package/lib/lodash/_mapCacheHas.d.ts +0 -11
  479. package/lib/lodash/_mapCacheHas.js +0 -18
  480. package/lib/lodash/_mapCacheSet.d.ts +0 -12
  481. package/lib/lodash/_mapCacheSet.js +0 -23
  482. package/lib/lodash/_mapToArray.d.ts +0 -9
  483. package/lib/lodash/_mapToArray.js +0 -19
  484. package/lib/lodash/_nativeCreate.d.ts +0 -2
  485. package/lib/lodash/_nativeCreate.js +0 -7
  486. package/lib/lodash/_nativeKeys.d.ts +0 -2
  487. package/lib/lodash/_nativeKeys.js +0 -7
  488. package/lib/lodash/_nodeUtil.d.ts +0 -3
  489. package/lib/lodash/_nodeUtil.js +0 -24
  490. package/lib/lodash/_objectToString.d.ts +0 -9
  491. package/lib/lodash/_objectToString.js +0 -24
  492. package/lib/lodash/_overArg.d.ts +0 -10
  493. package/lib/lodash/_overArg.js +0 -17
  494. package/lib/lodash/_root.d.ts +0 -3
  495. package/lib/lodash/_root.js +0 -10
  496. package/lib/lodash/_setCacheAdd.d.ts +0 -12
  497. package/lib/lodash/_setCacheAdd.js +0 -22
  498. package/lib/lodash/_setCacheHas.d.ts +0 -11
  499. package/lib/lodash/_setCacheHas.js +0 -16
  500. package/lib/lodash/_setToArray.d.ts +0 -9
  501. package/lib/lodash/_setToArray.js +0 -19
  502. package/lib/lodash/_stackClear.d.ts +0 -14
  503. package/lib/lodash/_stackClear.js +0 -17
  504. package/lib/lodash/_stackDelete.d.ts +0 -24
  505. package/lib/lodash/_stackDelete.js +0 -19
  506. package/lib/lodash/_stackGet.d.ts +0 -11
  507. package/lib/lodash/_stackGet.js +0 -16
  508. package/lib/lodash/_stackHas.d.ts +0 -11
  509. package/lib/lodash/_stackHas.js +0 -16
  510. package/lib/lodash/_stackSet.d.ts +0 -28
  511. package/lib/lodash/_stackSet.js +0 -40
  512. package/lib/lodash/_toSource.d.ts +0 -9
  513. package/lib/lodash/_toSource.js +0 -30
  514. package/lib/lodash/date.d.ts +0 -2
  515. package/lib/lodash/date.default.d.ts +0 -5
  516. package/lib/lodash/date.default.js +0 -4
  517. package/lib/lodash/date.js +0 -2
  518. package/lib/lodash/eq.d.ts +0 -34
  519. package/lib/lodash/eq.js +0 -39
  520. package/lib/lodash/function.d.ts +0 -1
  521. package/lib/lodash/function.default.d.ts +0 -4
  522. package/lib/lodash/function.default.js +0 -4
  523. package/lib/lodash/function.js +0 -2
  524. package/lib/lodash/isArguments.d.ts +0 -2
  525. package/lib/lodash/isArguments.js +0 -38
  526. package/lib/lodash/isArray.d.ts +0 -25
  527. package/lib/lodash/isArray.js +0 -27
  528. package/lib/lodash/isArrayLike.d.ts +0 -27
  529. package/lib/lodash/isArrayLike.js +0 -35
  530. package/lib/lodash/isBuffer.d.ts +0 -19
  531. package/lib/lodash/isBuffer.js +0 -39
  532. package/lib/lodash/isDeepEqual.d.ts +0 -30
  533. package/lib/lodash/isDeepEqual.js +0 -45
  534. package/lib/lodash/isFunction.d.ts +0 -19
  535. package/lib/lodash/isFunction.js +0 -40
  536. package/lib/lodash/isLength.d.ts +0 -28
  537. package/lib/lodash/isLength.js +0 -36
  538. package/lib/lodash/isObject.d.ts +0 -27
  539. package/lib/lodash/isObject.js +0 -33
  540. package/lib/lodash/isObjectLike.d.ts +0 -26
  541. package/lib/lodash/isObjectLike.js +0 -31
  542. package/lib/lodash/isSymbol.d.ts +0 -19
  543. package/lib/lodash/isSymbol.js +0 -30
  544. package/lib/lodash/isTypedArray.d.ts +0 -19
  545. package/lib/lodash/isTypedArray.js +0 -28
  546. package/lib/lodash/keys.d.ts +0 -30
  547. package/lib/lodash/keys.js +0 -39
  548. package/lib/lodash/lang.d.ts +0 -14
  549. package/lib/lodash/lang.default.d.ts +0 -29
  550. package/lib/lodash/lang.default.js +0 -28
  551. package/lib/lodash/lang.js +0 -14
  552. package/lib/lodash/now.d.ts +0 -18
  553. package/lib/lodash/now.js +0 -25
  554. package/lib/lodash/object.d.ts +0 -2
  555. package/lib/lodash/object.default.d.ts +0 -5
  556. package/lib/lodash/object.default.js +0 -4
  557. package/lib/lodash/object.js +0 -2
  558. package/lib/lodash/stubArray.d.ts +0 -20
  559. package/lib/lodash/stubArray.js +0 -25
  560. package/lib/lodash/stubFalse.d.ts +0 -15
  561. package/lib/lodash/stubFalse.js +0 -20
  562. package/lib/lodash/toNumber.d.ts +0 -25
  563. package/lib/lodash/toNumber.js +0 -70
  564. package/lib/lodash/util.d.ts +0 -3
  565. package/lib/lodash/util.default.d.ts +0 -7
  566. package/lib/lodash/util.default.js +0 -6
  567. package/lib/lodash/util.js +0 -3
  568. package/modern/hooks/core/rowGroupsPreProcessing/index.js +0 -2
  569. package/modern/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -70
  570. package/modern/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
  571. package/modern/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
  572. package/modern/lib/lodash/_DataView.js +0 -8
  573. package/modern/lib/lodash/_Hash.js +0 -33
  574. package/modern/lib/lodash/_ListCache.js +0 -33
  575. package/modern/lib/lodash/_Map.js +0 -8
  576. package/modern/lib/lodash/_MapCache.js +0 -33
  577. package/modern/lib/lodash/_Promise.js +0 -8
  578. package/modern/lib/lodash/_Set.js +0 -8
  579. package/modern/lib/lodash/_SetCache.js +0 -28
  580. package/modern/lib/lodash/_Stack.js +0 -28
  581. package/modern/lib/lodash/_Symbol.js +0 -7
  582. package/modern/lib/lodash/_Uint8Array.js +0 -7
  583. package/modern/lib/lodash/_WeakMap.js +0 -8
  584. package/modern/lib/lodash/_arrayFilter.js +0 -29
  585. package/modern/lib/lodash/_arrayLikeKeys.js +0 -46
  586. package/modern/lib/lodash/_arrayPush.js +0 -23
  587. package/modern/lib/lodash/_arraySome.js +0 -26
  588. package/modern/lib/lodash/_assocIndexOf.js +0 -25
  589. package/modern/lib/lodash/_baseGetAllKeys.js +0 -22
  590. package/modern/lib/lodash/_baseGetTag.js +0 -29
  591. package/modern/lib/lodash/_baseIsArguments.js +0 -20
  592. package/modern/lib/lodash/_baseIsEqual.js +0 -32
  593. package/modern/lib/lodash/_baseIsEqualDeep.js +0 -85
  594. package/modern/lib/lodash/_baseIsNative.js +0 -47
  595. package/modern/lib/lodash/_baseIsTypedArray.js +0 -49
  596. package/modern/lib/lodash/_baseKeys.js +0 -35
  597. package/modern/lib/lodash/_baseTimes.js +0 -23
  598. package/modern/lib/lodash/_baseUnary.js +0 -16
  599. package/modern/lib/lodash/_cacheHas.js +0 -15
  600. package/modern/lib/lodash/_coreJsData.js +0 -7
  601. package/modern/lib/lodash/_equalArrays.js +0 -84
  602. package/modern/lib/lodash/_equalByTag.js +0 -117
  603. package/modern/lib/lodash/_equalObjects.js +0 -92
  604. package/modern/lib/lodash/_freeGlobal.js +0 -5
  605. package/modern/lib/lodash/_getAllKeys.js +0 -18
  606. package/modern/lib/lodash/_getMapData.js +0 -18
  607. package/modern/lib/lodash/_getNative.js +0 -19
  608. package/modern/lib/lodash/_getRawTag.js +0 -50
  609. package/modern/lib/lodash/_getSymbols.js +0 -32
  610. package/modern/lib/lodash/_getTag.js +0 -64
  611. package/modern/lib/lodash/_getValue.js +0 -15
  612. package/modern/lib/lodash/_hashClear.js +0 -17
  613. package/modern/lib/lodash/_hashDelete.js +0 -19
  614. package/modern/lib/lodash/_hashGet.js +0 -34
  615. package/modern/lib/lodash/_hashHas.js +0 -25
  616. package/modern/lib/lodash/_hashSet.js +0 -25
  617. package/modern/lib/lodash/_isIndex.js +0 -23
  618. package/modern/lib/lodash/_isKeyable.js +0 -15
  619. package/modern/lib/lodash/_isMasked.js +0 -23
  620. package/modern/lib/lodash/_isPrototype.js +0 -19
  621. package/modern/lib/lodash/_listCacheClear.js +0 -15
  622. package/modern/lib/lodash/_listCacheDelete.js +0 -40
  623. package/modern/lib/lodash/_listCacheGet.js +0 -20
  624. package/modern/lib/lodash/_listCacheHas.js +0 -18
  625. package/modern/lib/lodash/_listCacheSet.js +0 -29
  626. package/modern/lib/lodash/_mapCacheClear.js +0 -23
  627. package/modern/lib/lodash/_mapCacheDelete.js +0 -20
  628. package/modern/lib/lodash/_mapCacheGet.js +0 -18
  629. package/modern/lib/lodash/_mapCacheHas.js +0 -18
  630. package/modern/lib/lodash/_mapCacheSet.js +0 -23
  631. package/modern/lib/lodash/_mapToArray.js +0 -19
  632. package/modern/lib/lodash/_nativeCreate.js +0 -7
  633. package/modern/lib/lodash/_nativeKeys.js +0 -7
  634. package/modern/lib/lodash/_nodeUtil.js +0 -24
  635. package/modern/lib/lodash/_objectToString.js +0 -24
  636. package/modern/lib/lodash/_overArg.js +0 -17
  637. package/modern/lib/lodash/_root.js +0 -10
  638. package/modern/lib/lodash/_setCacheAdd.js +0 -22
  639. package/modern/lib/lodash/_setCacheHas.js +0 -16
  640. package/modern/lib/lodash/_setToArray.js +0 -19
  641. package/modern/lib/lodash/_stackClear.js +0 -17
  642. package/modern/lib/lodash/_stackDelete.js +0 -19
  643. package/modern/lib/lodash/_stackGet.js +0 -16
  644. package/modern/lib/lodash/_stackHas.js +0 -16
  645. package/modern/lib/lodash/_stackSet.js +0 -40
  646. package/modern/lib/lodash/_toSource.js +0 -30
  647. package/modern/lib/lodash/date.default.js +0 -4
  648. package/modern/lib/lodash/date.js +0 -2
  649. package/modern/lib/lodash/eq.js +0 -39
  650. package/modern/lib/lodash/function.default.js +0 -4
  651. package/modern/lib/lodash/function.js +0 -2
  652. package/modern/lib/lodash/isArguments.js +0 -38
  653. package/modern/lib/lodash/isArray.js +0 -27
  654. package/modern/lib/lodash/isArrayLike.js +0 -35
  655. package/modern/lib/lodash/isBuffer.js +0 -39
  656. package/modern/lib/lodash/isDeepEqual.js +0 -45
  657. package/modern/lib/lodash/isFunction.js +0 -40
  658. package/modern/lib/lodash/isLength.js +0 -36
  659. package/modern/lib/lodash/isObject.js +0 -33
  660. package/modern/lib/lodash/isObjectLike.js +0 -31
  661. package/modern/lib/lodash/isSymbol.js +0 -30
  662. package/modern/lib/lodash/isTypedArray.js +0 -28
  663. package/modern/lib/lodash/keys.js +0 -39
  664. package/modern/lib/lodash/lang.default.js +0 -28
  665. package/modern/lib/lodash/lang.js +0 -14
  666. package/modern/lib/lodash/now.js +0 -25
  667. package/modern/lib/lodash/object.default.js +0 -4
  668. package/modern/lib/lodash/object.js +0 -2
  669. package/modern/lib/lodash/stubArray.js +0 -25
  670. package/modern/lib/lodash/stubFalse.js +0 -20
  671. package/modern/lib/lodash/toNumber.js +0 -70
  672. package/modern/lib/lodash/util.default.js +0 -6
  673. package/modern/lib/lodash/util.js +0 -3
  674. package/node/hooks/core/rowGroupsPreProcessing/index.js +0 -31
  675. package/node/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -87
  676. package/node/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -24
  677. package/node/lib/lodash/_DataView.js +0 -20
  678. package/node/lib/lodash/_Hash.js +0 -48
  679. package/node/lib/lodash/_ListCache.js +0 -48
  680. package/node/lib/lodash/_Map.js +0 -20
  681. package/node/lib/lodash/_MapCache.js +0 -48
  682. package/node/lib/lodash/_Promise.js +0 -20
  683. package/node/lib/lodash/_Set.js +0 -20
  684. package/node/lib/lodash/_SetCache.js +0 -41
  685. package/node/lib/lodash/_Stack.js +0 -44
  686. package/node/lib/lodash/_Symbol.js +0 -18
  687. package/node/lib/lodash/_Uint8Array.js +0 -18
  688. package/node/lib/lodash/_WeakMap.js +0 -20
  689. package/node/lib/lodash/_arrayFilter.js +0 -35
  690. package/node/lib/lodash/_arrayLikeKeys.js +0 -62
  691. package/node/lib/lodash/_arrayPush.js +0 -29
  692. package/node/lib/lodash/_arraySome.js +0 -32
  693. package/node/lib/lodash/_assocIndexOf.js +0 -36
  694. package/node/lib/lodash/_baseGetAllKeys.js +0 -34
  695. package/node/lib/lodash/_baseGetTag.js +0 -42
  696. package/node/lib/lodash/_baseIsArguments.js +0 -32
  697. package/node/lib/lodash/_baseIsEqual.js +0 -44
  698. package/node/lib/lodash/_baseIsEqualDeep.js +0 -103
  699. package/node/lib/lodash/_baseIsNative.js +0 -61
  700. package/node/lib/lodash/_baseIsTypedArray.js +0 -62
  701. package/node/lib/lodash/_baseKeys.js +0 -47
  702. package/node/lib/lodash/_baseTimes.js +0 -29
  703. package/node/lib/lodash/_baseUnary.js +0 -22
  704. package/node/lib/lodash/_cacheHas.js +0 -21
  705. package/node/lib/lodash/_coreJsData.js +0 -18
  706. package/node/lib/lodash/_equalArrays.js +0 -97
  707. package/node/lib/lodash/_equalByTag.js +0 -133
  708. package/node/lib/lodash/_equalObjects.js +0 -103
  709. package/node/lib/lodash/_freeGlobal.js +0 -10
  710. package/node/lib/lodash/_getAllKeys.js +0 -31
  711. package/node/lib/lodash/_getMapData.js +0 -29
  712. package/node/lib/lodash/_getNative.js +0 -31
  713. package/node/lib/lodash/_getRawTag.js +0 -61
  714. package/node/lib/lodash/_getSymbols.js +0 -44
  715. package/node/lib/lodash/_getTag.js +0 -81
  716. package/node/lib/lodash/_getValue.js +0 -21
  717. package/node/lib/lodash/_hashClear.js +0 -28
  718. package/node/lib/lodash/_hashDelete.js +0 -25
  719. package/node/lib/lodash/_hashGet.js +0 -45
  720. package/node/lib/lodash/_hashHas.js +0 -36
  721. package/node/lib/lodash/_hashSet.js +0 -36
  722. package/node/lib/lodash/_isIndex.js +0 -28
  723. package/node/lib/lodash/_isKeyable.js +0 -21
  724. package/node/lib/lodash/_isMasked.js +0 -34
  725. package/node/lib/lodash/_isPrototype.js +0 -24
  726. package/node/lib/lodash/_listCacheClear.js +0 -21
  727. package/node/lib/lodash/_listCacheDelete.js +0 -51
  728. package/node/lib/lodash/_listCacheGet.js +0 -31
  729. package/node/lib/lodash/_listCacheHas.js +0 -29
  730. package/node/lib/lodash/_listCacheSet.js +0 -40
  731. package/node/lib/lodash/_mapCacheClear.js +0 -36
  732. package/node/lib/lodash/_mapCacheDelete.js +0 -31
  733. package/node/lib/lodash/_mapCacheGet.js +0 -29
  734. package/node/lib/lodash/_mapCacheHas.js +0 -29
  735. package/node/lib/lodash/_mapCacheSet.js +0 -34
  736. package/node/lib/lodash/_mapToArray.js +0 -25
  737. package/node/lib/lodash/_nativeCreate.js +0 -18
  738. package/node/lib/lodash/_nativeKeys.js +0 -18
  739. package/node/lib/lodash/_nodeUtil.js +0 -35
  740. package/node/lib/lodash/_objectToString.js +0 -29
  741. package/node/lib/lodash/_overArg.js +0 -23
  742. package/node/lib/lodash/_root.js +0 -21
  743. package/node/lib/lodash/_setCacheAdd.js +0 -27
  744. package/node/lib/lodash/_setCacheHas.js +0 -22
  745. package/node/lib/lodash/_setToArray.js +0 -25
  746. package/node/lib/lodash/_stackClear.js +0 -28
  747. package/node/lib/lodash/_stackDelete.js +0 -25
  748. package/node/lib/lodash/_stackGet.js +0 -22
  749. package/node/lib/lodash/_stackHas.js +0 -22
  750. package/node/lib/lodash/_stackSet.js +0 -53
  751. package/node/lib/lodash/_toSource.js +0 -35
  752. package/node/lib/lodash/date.default.js +0 -15
  753. package/node/lib/lodash/date.js +0 -23
  754. package/node/lib/lodash/eq.js +0 -45
  755. package/node/lib/lodash/function.default.js +0 -15
  756. package/node/lib/lodash/function.js +0 -23
  757. package/node/lib/lodash/isArguments.js +0 -50
  758. package/node/lib/lodash/isArray.js +0 -32
  759. package/node/lib/lodash/isArrayLike.js +0 -47
  760. package/node/lib/lodash/isBuffer.js +0 -51
  761. package/node/lib/lodash/isDeepEqual.js +0 -56
  762. package/node/lib/lodash/isFunction.js +0 -52
  763. package/node/lib/lodash/isLength.js +0 -41
  764. package/node/lib/lodash/isObject.js +0 -39
  765. package/node/lib/lodash/isObjectLike.js +0 -37
  766. package/node/lib/lodash/isSymbol.js +0 -42
  767. package/node/lib/lodash/isTypedArray.js +0 -41
  768. package/node/lib/lodash/keys.js +0 -52
  769. package/node/lib/lodash/lang.default.js +0 -51
  770. package/node/lib/lodash/lang.js +0 -119
  771. package/node/lib/lodash/now.js +0 -36
  772. package/node/lib/lodash/object.default.js +0 -15
  773. package/node/lib/lodash/object.js +0 -23
  774. package/node/lib/lodash/stubArray.js +0 -31
  775. package/node/lib/lodash/stubFalse.js +0 -26
  776. package/node/lib/lodash/toNumber.js +0 -82
  777. package/node/lib/lodash/util.default.js +0 -18
  778. package/node/lib/lodash/util.js +0 -31
@@ -7,6 +7,9 @@ import { useGridLogger } from '../../utils/useGridLogger';
7
7
  import { useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
8
8
  import { isNavigationKey } from '../../../utils/keyboardUtils';
9
9
  import { gridFocusCellSelector } from './gridFocusStateSelector';
10
+ import { gridVisibleColumnDefinitionsSelector } from '../columns/gridColumnsSelector';
11
+ import { getVisibleRows } from '../../utils/useGridVisibleRows';
12
+ import { clamp } from '../../../utils/utils';
10
13
  export const focusStateInitializer = state => _extends({}, state, {
11
14
  focus: {
12
15
  cell: null,
@@ -86,6 +89,38 @@ export const useGridFocus = (apiRef, props) => {
86
89
  });
87
90
  apiRef.current.forceUpdate();
88
91
  }, [apiRef, logger]);
92
+ const moveFocusToRelativeCell = React.useCallback((id, field, direction) => {
93
+ let columnIndexToFocus = apiRef.current.getColumnIndex(field);
94
+ let rowIndexToFocus = apiRef.current.getRowIndexRelativeToVisibleRows(id);
95
+ const visibleColumns = gridVisibleColumnDefinitionsSelector(apiRef);
96
+
97
+ if (direction === 'right') {
98
+ columnIndexToFocus += 1;
99
+ } else if (direction === 'left') {
100
+ columnIndexToFocus -= 1;
101
+ } else {
102
+ rowIndexToFocus += 1;
103
+ }
104
+
105
+ if (columnIndexToFocus >= visibleColumns.length) {
106
+ // Go to next row if we are at the last column
107
+ rowIndexToFocus += 1;
108
+ columnIndexToFocus = 0;
109
+ } else if (columnIndexToFocus < 0) {
110
+ // Go to previous row if we are at the first column
111
+ rowIndexToFocus -= 1;
112
+ columnIndexToFocus = visibleColumns.length - 1;
113
+ }
114
+
115
+ const currentPage = getVisibleRows(apiRef, {
116
+ pagination: props.pagination,
117
+ paginationMode: props.paginationMode
118
+ });
119
+ rowIndexToFocus = clamp(rowIndexToFocus, currentPage.range.firstRowIndex, currentPage.range.lastRowIndex);
120
+ const rowToFocus = currentPage.rows[rowIndexToFocus];
121
+ const columnToFocus = visibleColumns[columnIndexToFocus];
122
+ apiRef.current.setCellFocus(rowToFocus.id, columnToFocus.field);
123
+ }, [apiRef, props.pagination, props.paginationMode]);
89
124
  const handleCellDoubleClick = React.useCallback(({
90
125
  id,
91
126
  field
@@ -178,7 +213,8 @@ export const useGridFocus = (apiRef, props) => {
178
213
  }, [apiRef]);
179
214
  useGridApiMethod(apiRef, {
180
215
  setCellFocus,
181
- setColumnHeaderFocus
216
+ setColumnHeaderFocus,
217
+ unstable_moveFocusToRelativeCell: moveFocusToRelativeCell
182
218
  }, 'GridFocusApi');
183
219
  React.useEffect(() => {
184
220
  const cell = gridFocusCellSelector(apiRef);
@@ -1,6 +1,11 @@
1
1
  import { GridPreferencePanelsValue } from './gridPreferencePanelsValue';
2
2
  export interface GridPreferencePanelState {
3
3
  open: boolean;
4
+ /**
5
+ * Tab currently opened.
6
+ * @default GridPreferencePanelsValue.filter
7
+ * TODO v6: Remove the default behavior
8
+ */
4
9
  openedPanelValue?: GridPreferencePanelsValue;
5
10
  }
6
11
  export declare type GridPreferencePanelInitialState = GridPreferencePanelState;
@@ -1,7 +1,22 @@
1
1
  /// <reference types="node" />
2
- import type { GridRowGroupingResult, GridRowGroupParams } from '../../core/rowGroupsPreProcessing';
3
- import { GridRowsProp } from '../../../models/gridRows';
4
- export declare type GridRowInternalCacheValue = Omit<GridRowGroupParams, 'previousTree'>;
2
+ import { GridRowId, GridRowsLookup, GridRowsProp, GridRowTreeConfig } from '../../../models/gridRows';
3
+ export interface GridRowTreeCreationParams {
4
+ ids: GridRowId[];
5
+ idRowsLookup: GridRowsLookup;
6
+ previousTree: GridRowTreeConfig | null;
7
+ }
8
+ export interface GridRowTreeCreationValue {
9
+ /**
10
+ * Name of the algorithm used to group the rows
11
+ * It is useful to decide which filtering / sorting algorithm to apply, to avoid applying tree-data filtering on a grouping-by-column dataset for instance.
12
+ */
13
+ groupingName: string;
14
+ tree: GridRowTreeConfig;
15
+ treeDepth: number;
16
+ ids: GridRowId[];
17
+ idRowsLookup: GridRowsLookup;
18
+ }
19
+ export declare type GridRowInternalCacheValue = Omit<GridRowTreeCreationParams, 'previousTree'>;
5
20
  export interface GridRowsInternalCacheState {
6
21
  value: GridRowInternalCacheValue;
7
22
  /**
@@ -15,10 +30,10 @@ export interface GridRowsInternalCache {
15
30
  timeout: NodeJS.Timeout | null;
16
31
  lastUpdateMs: number;
17
32
  }
18
- export interface GridRowsState extends GridRowGroupingResult {
33
+ export interface GridRowsState extends GridRowTreeCreationValue {
19
34
  /**
20
35
  * Amount of rows before applying the filtering.
21
- * It also count the expanded and collapsed children rows.
36
+ * It also counts the expanded and collapsed children rows.
22
37
  */
23
38
  totalRowCount: number;
24
39
  /**
@@ -3,7 +3,4 @@ import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
3
3
  import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
4
4
  import { GridStateInitializer } from '../../utils/useGridInitializeState';
5
5
  export declare const rowsStateInitializer: GridStateInitializer<Pick<DataGridProcessedProps, 'rows' | 'rowCount' | 'getRowId'>>;
6
- /**
7
- * @requires useGridRowGroupsPreProcessing (method)
8
- */
9
6
  export declare const useGridRows: (apiRef: React.MutableRefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, 'rows' | 'getRowId' | 'rowCount' | 'throttleRowsMs' | 'signature' | 'pagination' | 'paginationMode'>) => void;
@@ -4,7 +4,7 @@ import { GridEvents } from '../../../models/events';
4
4
  import { checkGridRowIdIsValid } from '../../../models/gridRows';
5
5
  import { useGridApiMethod } from '../../utils/useGridApiMethod';
6
6
  import { useGridLogger } from '../../utils/useGridLogger';
7
- import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowIdsSelector } from './gridRowsSelector';
7
+ import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowIdsSelector, gridRowGroupingNameSelector } from './gridRowsSelector';
8
8
  import { GridSignature, useGridApiEventHandler } from '../../utils/useGridApiEventHandler';
9
9
  import { useGridVisibleRows } from '../../utils/useGridVisibleRows';
10
10
 
@@ -48,7 +48,7 @@ const getRowsStateFromCache = (rowsCache, previousTree, apiRef, rowCountProp) =>
48
48
  value
49
49
  } = rowsCache.state;
50
50
  const rowCount = rowCountProp != null ? rowCountProp : 0;
51
- const groupingResponse = apiRef.current.unstable_groupRows(_extends({}, value, {
51
+ const groupingResponse = apiRef.current.unstable_applyStrategyProcessor('rowTreeCreation', _extends({}, value, {
52
52
  previousTree
53
53
  }));
54
54
  const dataTopLevelRowCount = groupingResponse.treeDepth === 1 ? groupingResponse.ids.length : Object.values(groupingResponse.tree).filter(node => node.parent == null).length;
@@ -80,10 +80,6 @@ export const rowsStateInitializer = (state, props, apiRef) => {
80
80
 
81
81
  });
82
82
  };
83
- /**
84
- * @requires useGridRowGroupsPreProcessing (method)
85
- */
86
-
87
83
  export const useGridRows = (apiRef, props) => {
88
84
  if (process.env.NODE_ENV !== 'production') {
89
85
  // Freeze rows for immutability
@@ -105,7 +101,6 @@ export const useGridRows = (apiRef, props) => {
105
101
  acc[id] = index;
106
102
  return acc;
107
103
  }, {}), [currentPage.rows]);
108
- const getRowIndexRelativeToVisibleRows = React.useCallback(id => lookup[id], [lookup]);
109
104
  const throttledRowsChange = React.useCallback((newState, throttle) => {
110
105
  const run = () => {
111
106
  rowsCache.current.timeout = null;
@@ -138,6 +133,10 @@ export const useGridRows = (apiRef, props) => {
138
133
 
139
134
  run();
140
135
  }, [props.throttleRowsMs, props.rowCount, apiRef]);
136
+ /**
137
+ * API METHODS
138
+ */
139
+
141
140
  const setRows = React.useCallback(rows => {
142
141
  logger.debug(`Updating all rows, new length ${rows.length}`);
143
142
  throttledRowsChange(convertGridRowsPropToState({
@@ -150,7 +149,7 @@ export const useGridRows = (apiRef, props) => {
150
149
  if (props.signature === GridSignature.DataGrid && updates.length > 1) {
151
150
  // TODO: Add test with direct call to `apiRef.current.updateRows` in DataGrid after enabling the `apiRef` on the free plan.
152
151
  throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.", 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
153
- } // we removes duplicate updates. A server can batch updates, and send several updates for the same row in one fn call.
152
+ } // we remove duplicate updates. A server can batch updates, and send several updates for the same row in one fn call.
154
153
 
155
154
 
156
155
  const uniqUpdates = new Map();
@@ -204,6 +203,7 @@ export const useGridRows = (apiRef, props) => {
204
203
  }, [apiRef]);
205
204
  const getRowsCount = React.useCallback(() => gridRowCountSelector(apiRef), [apiRef]);
206
205
  const getAllRowIds = React.useCallback(() => gridRowIdsSelector(apiRef), [apiRef]);
206
+ const getRowIndexRelativeToVisibleRows = React.useCallback(id => lookup[id], [lookup]);
207
207
  const setRowChildrenExpansion = React.useCallback((id, isExpanded) => {
208
208
  const currentNode = apiRef.current.getRowNode(id);
209
209
 
@@ -232,6 +232,61 @@ export const useGridRows = (apiRef, props) => {
232
232
 
233
233
  return (_gridRowTreeSelector$ = gridRowTreeSelector(apiRef)[id]) != null ? _gridRowTreeSelector$ : null;
234
234
  }, [apiRef]);
235
+ const rowApi = {
236
+ getRow,
237
+ getRowModels,
238
+ getRowsCount,
239
+ getAllRowIds,
240
+ setRows,
241
+ updateRows,
242
+ setRowChildrenExpansion,
243
+ getRowNode,
244
+ getRowIndexRelativeToVisibleRows
245
+ };
246
+ /**
247
+ * EVENTS
248
+ */
249
+
250
+ const groupRows = React.useCallback(() => {
251
+ logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
252
+ let rows;
253
+
254
+ if (rowsCache.current.state.rowsBeforePartialUpdates === props.rows) {
255
+ // The `props.rows` has not changed since the last row grouping
256
+ // We can keep the potential updates stored in `inputRowsAfterUpdates` on the new grouping
257
+ rows = undefined;
258
+ } else {
259
+ // The `props.rows` has changed since the last row grouping
260
+ // We must use the new `props.rows` on the new grouping
261
+ // This occurs because this event is triggered before the `useEffect` on the rows when both the grouping pre-processing and the rows changes on the same render
262
+ rows = props.rows;
263
+ }
264
+
265
+ throttledRowsChange(convertGridRowsPropToState({
266
+ rows,
267
+ getRowId: props.getRowId,
268
+ prevState: rowsCache.current.state
269
+ }), false);
270
+ }, [logger, throttledRowsChange, props.getRowId, props.rows]);
271
+ const handleStrategyProcessorChange = React.useCallback(methodName => {
272
+ if (methodName === 'rowTreeCreation') {
273
+ groupRows();
274
+ }
275
+ }, [groupRows]);
276
+ const handleStrategyActivityChange = React.useCallback(() => {
277
+ // `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.
278
+ // All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.
279
+ if (apiRef.current.unstable_getActiveStrategy('rowTree') !== gridRowGroupingNameSelector(apiRef)) {
280
+ groupRows();
281
+ }
282
+ }, [apiRef, groupRows]);
283
+ useGridApiEventHandler(apiRef, GridEvents.activeStrategyProcessorChange, handleStrategyProcessorChange);
284
+ useGridApiEventHandler(apiRef, GridEvents.strategyAvailabilityChange, handleStrategyActivityChange);
285
+ useGridApiMethod(apiRef, rowApi, 'GridRowApi');
286
+ /**
287
+ * EFFECTS
288
+ */
289
+
235
290
  React.useEffect(() => {
236
291
  return () => {
237
292
  if (rowsCache.current.timeout !== null) {
@@ -261,38 +316,4 @@ export const useGridRows = (apiRef, props) => {
261
316
  prevState: rowsCache.current.state
262
317
  }), false);
263
318
  }, [props.rows, props.rowCount, props.getRowId, logger, throttledRowsChange]);
264
- const handleGroupRows = React.useCallback(() => {
265
- logger.info(`Row grouping pre-processing have changed, regenerating the row tree`);
266
- let rows;
267
-
268
- if (rowsCache.current.state.rowsBeforePartialUpdates === props.rows) {
269
- // The `props.rows` has not changed since the last row grouping
270
- // We can keep the potential updates stored in `inputRowsAfterUpdates` on the new grouping
271
- rows = undefined;
272
- } else {
273
- // The `props.rows` has changed since the last row grouping
274
- // We must use the new `props.rows` on the new grouping
275
- // This occurs because this event is triggered before the `useEffect` on the rows when both the grouping pre-processing and the rows changes on the same render
276
- rows = props.rows;
277
- }
278
-
279
- throttledRowsChange(convertGridRowsPropToState({
280
- rows,
281
- getRowId: props.getRowId,
282
- prevState: rowsCache.current.state
283
- }), false);
284
- }, [logger, throttledRowsChange, props.getRowId, props.rows]);
285
- useGridApiEventHandler(apiRef, GridEvents.rowGroupsPreProcessingChange, handleGroupRows);
286
- const rowApi = {
287
- getRow,
288
- getRowModels,
289
- getRowsCount,
290
- getAllRowIds,
291
- setRows,
292
- updateRows,
293
- setRowChildrenExpansion,
294
- getRowNode,
295
- getRowIndexRelativeToVisibleRows
296
- };
297
- useGridApiMethod(apiRef, rowApi, 'GridRowApi');
298
319
  };
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
3
+ export declare const useGridRowsPreProcessors: (apiRef: React.MutableRefObject<GridApiCommunity>) => void;
@@ -0,0 +1,37 @@
1
+ import { GRID_DEFAULT_STRATEGY, useGridRegisterStrategyProcessor } from '../../core/strategyProcessing';
2
+
3
+ const flatRowTreeCreationMethod = ({
4
+ ids,
5
+ idRowsLookup,
6
+ previousTree
7
+ }) => {
8
+ const tree = {};
9
+
10
+ for (let i = 0; i < ids.length; i += 1) {
11
+ const rowId = ids[i];
12
+
13
+ if (previousTree && previousTree[rowId]) {
14
+ tree[rowId] = previousTree[rowId];
15
+ } else {
16
+ tree[rowId] = {
17
+ id: rowId,
18
+ depth: 0,
19
+ parent: null,
20
+ groupingKey: '',
21
+ groupingField: null
22
+ };
23
+ }
24
+ }
25
+
26
+ return {
27
+ groupingName: GRID_DEFAULT_STRATEGY,
28
+ tree,
29
+ treeDepth: 1,
30
+ idRowsLookup,
31
+ ids
32
+ };
33
+ };
34
+
35
+ export const useGridRowsPreProcessors = apiRef => {
36
+ useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'rowTreeCreation', flatRowTreeCreationMethod);
37
+ };
@@ -76,6 +76,10 @@ export const useGridSelection = (apiRef, props) => {
76
76
  const startIndex = visibleRowIds.findIndex(rowId => rowId === startId);
77
77
  const endIndex = visibleRowIds.findIndex(rowId => rowId === endId);
78
78
 
79
+ if (startIndex === endIndex) {
80
+ return;
81
+ }
82
+
79
83
  if (startIndex > endIndex) {
80
84
  endId = visibleRowIds[endIndex + 1];
81
85
  } else {
@@ -8,10 +8,7 @@ export interface GridSortingInitialState {
8
8
  sortModel?: GridSortModel;
9
9
  }
10
10
  export declare type GridSortingModelApplier = (rowList: GridRowTreeNodeConfig[]) => GridRowId[];
11
- export interface GridSortingParams {
11
+ export interface GridSortingMethodParams {
12
12
  sortRowList: GridSortingModelApplier | null;
13
13
  }
14
- export declare type GridSortingMethod = (params: GridSortingParams) => GridRowId[];
15
- export declare type GridSortingMethodCollection = {
16
- [methodName: string]: GridSortingMethod;
17
- };
14
+ export declare type GridSortingMethodValue = GridRowId[];
@@ -8,11 +8,11 @@ import { useGridApiMethod } from '../../utils/useGridApiMethod';
8
8
  import { useGridLogger } from '../../utils/useGridLogger';
9
9
  import { gridColumnLookupSelector } from '../columns/gridColumnsSelector';
10
10
  import { gridSortedRowEntriesSelector, gridSortedRowIdsSelector, gridSortModelSelector } from './gridSortingSelector';
11
- import { gridRowIdsSelector, gridRowGroupingNameSelector, gridRowTreeSelector } from '../rows';
11
+ import { gridRowIdsSelector, gridRowTreeSelector } from '../rows';
12
12
  import { useFirstRender } from '../../utils/useFirstRender';
13
+ import { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from '../../core/strategyProcessing';
13
14
  import { buildAggregatedSortingApplier, mergeStateWithSortModel, getNextGridSortDirection, sanitizeSortModel } from './gridSortingUtils';
14
15
  import { useGridRegisterPreProcessor } from '../../core/preProcessing';
15
- import { useGridRegisterSortingMethod } from './useGridRegisterSortingMethod';
16
16
  export const sortingStateInitializer = (state, props) => {
17
17
  var _ref, _props$sortModel, _props$initialState, _props$initialState$s;
18
18
 
@@ -31,8 +31,6 @@ export const sortingStateInitializer = (state, props) => {
31
31
 
32
32
  export const useGridSorting = (apiRef, props) => {
33
33
  const logger = useGridLogger(apiRef, 'useGridSorting');
34
- const sortingMethodCollectionRef = React.useRef({});
35
- const lastSortingMethodApplied = React.useRef(null);
36
34
  apiRef.current.unstable_updateControlState({
37
35
  stateId: 'sortModel',
38
36
  propModel: props.sortModel,
@@ -93,16 +91,9 @@ export const useGridSorting = (apiRef, props) => {
93
91
  }
94
92
 
95
93
  apiRef.current.setState(state => {
96
- const rowGroupingName = gridRowGroupingNameSelector(state, apiRef.current.instanceId);
97
- const sortingMethod = sortingMethodCollectionRef.current[rowGroupingName];
98
-
99
- if (!sortingMethod) {
100
- throw new Error('MUI: Invalid sorting method.');
101
- }
102
-
103
94
  const sortModel = gridSortModelSelector(state, apiRef.current.instanceId);
104
95
  const sortRowList = buildAggregatedSortingApplier(sortModel, apiRef);
105
- const sortedRows = sortingMethod({
96
+ const sortedRows = apiRef.current.unstable_applyStrategyProcessor('sorting', {
106
97
  sortRowList
107
98
  });
108
99
  return _extends({}, state, {
@@ -199,7 +190,7 @@ export const useGridSorting = (apiRef, props) => {
199
190
  }, [apiRef]);
200
191
  useGridRegisterPreProcessor(apiRef, 'exportState', stateExportPreProcessing);
201
192
  useGridRegisterPreProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
202
- useGridRegisterSortingMethod(apiRef, 'none', flatSortingMethod);
193
+ useGridRegisterStrategyProcessor(apiRef, GRID_DEFAULT_STRATEGY, 'sorting', flatSortingMethod);
203
194
  /**
204
195
  * EVENTS
205
196
  */
@@ -231,15 +222,8 @@ export const useGridSorting = (apiRef, props) => {
231
222
  }
232
223
  }
233
224
  }, [apiRef]);
234
- const handlePreProcessorRegister = React.useCallback(name => {
235
- if (name !== 'sortingMethod') {
236
- return;
237
- }
238
-
239
- sortingMethodCollectionRef.current = apiRef.current.unstable_applyPreProcessors('sortingMethod', {});
240
- const rowGroupingName = gridRowGroupingNameSelector(apiRef);
241
-
242
- if (lastSortingMethodApplied.current !== sortingMethodCollectionRef.current[rowGroupingName]) {
225
+ const handleStrategyProcessorChange = React.useCallback(methodName => {
226
+ if (methodName === 'sorting') {
243
227
  apiRef.current.applySorting();
244
228
  }
245
229
  }, [apiRef]);
@@ -247,15 +231,12 @@ export const useGridSorting = (apiRef, props) => {
247
231
  useGridApiEventHandler(apiRef, GridEvents.columnHeaderKeyDown, handleColumnHeaderKeyDown);
248
232
  useGridApiEventHandler(apiRef, GridEvents.rowsSet, apiRef.current.applySorting);
249
233
  useGridApiEventHandler(apiRef, GridEvents.columnsChange, handleColumnsChange);
250
- useGridApiEventHandler(apiRef, GridEvents.preProcessorRegister, handlePreProcessorRegister);
234
+ useGridApiEventHandler(apiRef, GridEvents.activeStrategyProcessorChange, handleStrategyProcessorChange);
251
235
  /**
252
236
  * 1ST RENDER
253
237
  */
254
238
 
255
239
  useFirstRender(() => {
256
- // This line of pre-processor initialization should always come after the registration of `flatSortingMethod`
257
- // Otherwise on the 1st render there would be no sorting method registered
258
- sortingMethodCollectionRef.current = apiRef.current.unstable_applyPreProcessors('sortingMethod', {});
259
240
  apiRef.current.applySorting();
260
241
  });
261
242
  /**
@@ -187,9 +187,11 @@ export const useGridVirtualScroller = props => {
187
187
 
188
188
 
189
189
  const nextRenderContext = disableVirtualization ? prevRenderContext.current : computeRenderContext();
190
- const rowsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstRowIndex - prevRenderContext.current.firstRowIndex);
191
- const columnsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstColumnIndex - prevRenderContext.current.firstColumnIndex);
192
- const shouldSetState = rowsScrolledSincePreviousRender >= rootProps.rowThreshold || columnsScrolledSincePreviousRender >= rootProps.columnThreshold || prevTotalWidth.current !== columnsTotalWidth; // TODO v6: rename event to a wider name, it's not only fired for row scrolling
190
+ const topRowsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstRowIndex - prevRenderContext.current.firstRowIndex);
191
+ const bottomRowsScrolledSincePreviousRender = Math.abs(nextRenderContext.lastRowIndex - prevRenderContext.current.lastRowIndex);
192
+ const topColumnsScrolledSincePreviousRender = Math.abs(nextRenderContext.firstColumnIndex - prevRenderContext.current.firstColumnIndex);
193
+ const bottomColumnsScrolledSincePreviousRender = Math.abs(nextRenderContext.lastColumnIndex - prevRenderContext.current.lastColumnIndex);
194
+ const shouldSetState = topRowsScrolledSincePreviousRender >= rootProps.rowThreshold || bottomRowsScrolledSincePreviousRender >= rootProps.rowThreshold || topColumnsScrolledSincePreviousRender >= rootProps.columnThreshold || bottomColumnsScrolledSincePreviousRender >= rootProps.columnThreshold || prevTotalWidth.current !== columnsTotalWidth; // TODO v6: rename event to a wider name, it's not only fired for row scrolling
193
195
 
194
196
  apiRef.current.publishEvent(GridEvents.rowsScroll, {
195
197
  top: scrollTop,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.6.1
1
+ /** @license MUI v5.7.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -5,33 +5,35 @@ export { GridColumnHeaders } from '../components/columnHeaders/GridColumnHeaders
5
5
  export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
6
6
  export { useGridRegisterPreProcessor } from '../hooks/core/preProcessing';
7
7
  export type { GridPreProcessor } from '../hooks/core/preProcessing';
8
- export type { GridRowGroupingPreProcessing, GridRowGroupParams, GridRowGroupingResult, } from '../hooks/core/rowGroupsPreProcessing';
8
+ export { useGridRegisterStrategyProcessor } from '../hooks/core/strategyProcessing';
9
+ export type { GridStrategyProcessor } from '../hooks/core/strategyProcessing';
9
10
  export { useGridInitialization } from '../hooks/core/useGridInitialization';
10
11
  export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
11
12
  export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
12
13
  export { useGridColumnMenu, columnMenuStateInitializer, } from '../hooks/features/columnMenu/useGridColumnMenu';
13
14
  export { useGridColumns, columnsStateInitializer } from '../hooks/features/columns/useGridColumns';
14
- export type { GridColumnRawLookup, GridColumnsRawState, } from '../hooks/features/columns/gridColumnsInterfaces';
15
+ export type { GridColumnRawLookup, GridColumnsRawState, GridHydrateColumnsValue, } from '../hooks/features/columns/gridColumnsInterfaces';
15
16
  export { useGridDensity, densityStateInitializer } from '../hooks/features/density/useGridDensity';
16
17
  export { useGridCsvExport } from '../hooks/features/export/useGridCsvExport';
17
18
  export { useGridPrintExport } from '../hooks/features/export/useGridPrintExport';
18
19
  export { useGridFilter, filterStateInitializer } from '../hooks/features/filter/useGridFilter';
19
- export { useGridRegisterFilteringMethod } from '../hooks/features/filter/useGridRegisterFilteringMethod';
20
- export type { GridFilteringMethod, GridAggregatedFilterItemApplier, } from '../hooks/features/filter/gridFilterState';
20
+ export type { GridAggregatedFilterItemApplier } from '../hooks/features/filter/gridFilterState';
21
21
  export { useGridFocus, focusStateInitializer } from '../hooks/features/focus/useGridFocus';
22
22
  export { useGridKeyboard } from '../hooks/features/keyboard/useGridKeyboard';
23
23
  export { useGridKeyboardNavigation } from '../hooks/features/keyboard/useGridKeyboardNavigation';
24
24
  export { useGridPagination, paginationStateInitializer, } from '../hooks/features/pagination/useGridPagination';
25
25
  export { useGridPreferencesPanel, preferencePanelStateInitializer, } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
26
- export { useGridEditing, editingStateInitializer } from '../hooks/features/editRows/useGridEditing';
26
+ export { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new, } from '../hooks/features/editRows/useGridEditing.new';
27
+ export { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old, } from '../hooks/features/editRows/useGridEditing.old';
27
28
  export { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
29
+ export { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
30
+ export type { GridRowTreeCreationParams, GridRowTreeCreationValue, } from '../hooks/features/rows/gridRowsState';
28
31
  export { useGridRowsMeta, rowsMetaStateInitializer } from '../hooks/features/rows/useGridRowsMeta';
29
32
  export { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
30
33
  export { useGridSelection, selectionStateInitializer, } from '../hooks/features/selection/useGridSelection';
31
34
  export { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
32
35
  export { useGridSorting, sortingStateInitializer } from '../hooks/features/sorting/useGridSorting';
33
- export { useGridRegisterSortingMethod } from '../hooks/features/sorting/useGridRegisterSortingMethod';
34
- export type { GridSortingMethod, GridSortingModelApplier, } from '../hooks/features/sorting/gridSortingState';
36
+ export type { GridSortingModelApplier } from '../hooks/features/sorting/gridSortingState';
35
37
  export { useGridScroll } from '../hooks/features/scroll/useGridScroll';
36
38
  export { useGridEvents } from '../hooks/features/events/useGridEvents';
37
39
  export { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
@@ -48,3 +50,4 @@ export { createSelector } from '../utils/createSelector';
48
50
  export { findParentElementFromClassName } from '../utils/domUtils';
49
51
  export { isNavigationKey } from '../utils/keyboardUtils';
50
52
  export { clamp, isDeepEqual } from '../utils/utils';
53
+ export type { GridApiCommunity } from '../models/api/gridApiCommunity';
@@ -4,6 +4,7 @@ export { GridVirtualScrollerRenderZone } from '../components/virtualization/Grid
4
4
  export { GridColumnHeaders } from '../components/columnHeaders/GridColumnHeaders';
5
5
  export { GridColumnHeadersInner } from '../components/columnHeaders/GridColumnHeadersInner';
6
6
  export { useGridRegisterPreProcessor } from '../hooks/core/preProcessing';
7
+ export { useGridRegisterStrategyProcessor } from '../hooks/core/strategyProcessing';
7
8
  export { useGridInitialization } from '../hooks/core/useGridInitialization';
8
9
  export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
9
10
  export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
@@ -13,20 +14,20 @@ export { useGridDensity, densityStateInitializer } from '../hooks/features/densi
13
14
  export { useGridCsvExport } from '../hooks/features/export/useGridCsvExport';
14
15
  export { useGridPrintExport } from '../hooks/features/export/useGridPrintExport';
15
16
  export { useGridFilter, filterStateInitializer } from '../hooks/features/filter/useGridFilter';
16
- export { useGridRegisterFilteringMethod } from '../hooks/features/filter/useGridRegisterFilteringMethod';
17
17
  export { useGridFocus, focusStateInitializer } from '../hooks/features/focus/useGridFocus';
18
18
  export { useGridKeyboard } from '../hooks/features/keyboard/useGridKeyboard';
19
19
  export { useGridKeyboardNavigation } from '../hooks/features/keyboard/useGridKeyboardNavigation';
20
20
  export { useGridPagination, paginationStateInitializer } from '../hooks/features/pagination/useGridPagination';
21
21
  export { useGridPreferencesPanel, preferencePanelStateInitializer } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
22
- export { useGridEditing, editingStateInitializer } from '../hooks/features/editRows/useGridEditing';
22
+ export { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new } from '../hooks/features/editRows/useGridEditing.new';
23
+ export { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old } from '../hooks/features/editRows/useGridEditing.old';
23
24
  export { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
25
+ export { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
24
26
  export { useGridRowsMeta, rowsMetaStateInitializer } from '../hooks/features/rows/useGridRowsMeta';
25
27
  export { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
26
28
  export { useGridSelection, selectionStateInitializer } from '../hooks/features/selection/useGridSelection';
27
29
  export { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
28
30
  export { useGridSorting, sortingStateInitializer } from '../hooks/features/sorting/useGridSorting';
29
- export { useGridRegisterSortingMethod } from '../hooks/features/sorting/useGridRegisterSortingMethod';
30
31
  export { useGridScroll } from '../hooks/features/scroll/useGridScroll';
31
32
  export { useGridEvents } from '../hooks/features/events/useGridEvents';
32
33
  export { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
@@ -185,6 +185,7 @@ DataGridRaw.propTypes = {
185
185
  * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
186
186
  */
187
187
  experimentalFeatures: PropTypes.shape({
188
+ newEditingApi: PropTypes.bool,
188
189
  preventCommitWhileValidating: PropTypes.bool,
189
190
  warnIfFocusStateIsNotSynced: PropTypes.bool
190
191
  }),
@@ -602,6 +603,15 @@ DataGridRaw.propTypes = {
602
603
  */
603
604
  paginationMode: PropTypes.oneOf(['client', 'server']),
604
605
 
606
+ /**
607
+ * Callback called before updating a row with new values in the row and cell editing.
608
+ * Only applied if `props.experimentalFeatures.newEditingApi: true`.
609
+ * @param {GridRowModel} newRow Row object with the new values.
610
+ * @param {GridRowModel} oldRow Row object with the old values.
611
+ * @returns {Promise<GridRowModel> | GridRowModel} The final values to update the row.
612
+ */
613
+ processRowUpdate: PropTypes.func,
614
+
605
615
  /**
606
616
  * Number of extra rows to be rendered before/after the visible slice.
607
617
  * @default 3
@@ -12,8 +12,10 @@ import { useGridKeyboard } from '../hooks/features/keyboard/useGridKeyboard';
12
12
  import { useGridKeyboardNavigation } from '../hooks/features/keyboard/useGridKeyboardNavigation';
13
13
  import { useGridPagination, paginationStateInitializer } from '../hooks/features/pagination/useGridPagination';
14
14
  import { useGridPreferencesPanel, preferencePanelStateInitializer } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
15
- import { useGridEditing, editingStateInitializer } from '../hooks/features/editRows/useGridEditing';
15
+ import { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old } from '../hooks/features/editRows/useGridEditing.old';
16
+ import { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new } from '../hooks/features/editRows/useGridEditing.new';
16
17
  import { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
18
+ import { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
17
19
  import { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
18
20
  import { selectionStateInitializer, useGridSelection } from '../hooks/features/selection/useGridSelection';
19
21
  import { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
@@ -24,12 +26,15 @@ import { useGridDimensions } from '../hooks/features/dimensions/useGridDimension
24
26
  import { rowsMetaStateInitializer, useGridRowsMeta } from '../hooks/features/rows/useGridRowsMeta';
25
27
  import { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
26
28
  export var useDataGridComponent = function useDataGridComponent(props) {
29
+ var _props$experimentalFe, _props$experimentalFe2;
30
+
27
31
  var apiRef = useGridInitialization(undefined, props);
28
32
  /**
29
33
  * Register all pre-processors called during state initialization here.
30
34
  */
31
35
 
32
36
  useGridSelectionPreProcessors(apiRef, props);
37
+ useGridRowsPreProcessors(apiRef);
33
38
  /**
34
39
  * Register all state initializers here.
35
40
  */
@@ -37,7 +42,7 @@ export var useDataGridComponent = function useDataGridComponent(props) {
37
42
  useGridInitializeState(selectionStateInitializer, apiRef, props);
38
43
  useGridInitializeState(columnsStateInitializer, apiRef, props);
39
44
  useGridInitializeState(rowsStateInitializer, apiRef, props);
40
- useGridInitializeState(editingStateInitializer, apiRef, props);
45
+ useGridInitializeState((_props$experimentalFe = props.experimentalFeatures) != null && _props$experimentalFe.newEditingApi ? editingStateInitializer_new : editingStateInitializer_old, apiRef, props);
41
46
  useGridInitializeState(focusStateInitializer, apiRef, props);
42
47
  useGridInitializeState(sortingStateInitializer, apiRef, props);
43
48
  useGridInitializeState(preferencePanelStateInitializer, apiRef, props);
@@ -50,6 +55,7 @@ export var useDataGridComponent = function useDataGridComponent(props) {
50
55
  useGridColumns(apiRef, props);
51
56
  useGridRows(apiRef, props);
52
57
  useGridParamsApi(apiRef);
58
+ var useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
53
59
  useGridEditing(apiRef, props);
54
60
  useGridFocus(apiRef, props);
55
61
  useGridSorting(apiRef, props);
@@ -4,6 +4,8 @@ var _excluded = ["message", "hasError", "errorInfo"];
4
4
  import * as React from 'react';
5
5
  import { useGridApiContext } from '../hooks/utils/useGridApiContext';
6
6
  import { GridOverlay } from './containers/GridOverlay';
7
+ import { useGridSelector } from '../hooks/utils/useGridSelector';
8
+ import { gridDensityRowHeightSelector } from '../hooks/features/density/densitySelector';
7
9
  import { jsx as _jsx } from "react/jsx-runtime";
8
10
  // TODO v6: rename to GridErrorOverlay
9
11
  export var ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(props, ref) {
@@ -14,8 +16,13 @@ export var ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(pr
14
16
 
15
17
  var apiRef = useGridApiContext();
16
18
  var defaultLabel = apiRef.current.getLocaleText('errorOverlayDefaultLabel');
19
+ var rowHeight = useGridSelector(apiRef, gridDensityRowHeightSelector);
17
20
  return /*#__PURE__*/_jsx(GridOverlay, _extends({
18
- ref: ref
21
+ ref: ref,
22
+ sx: {
23
+ width: '100%',
24
+ minHeight: 2 * rowHeight
25
+ }
19
26
  }, other, {
20
27
  children: message || defaultLabel
21
28
  }));