@mui/x-data-grid 6.0.0-alpha.2 → 6.0.0-alpha.4

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 (293) hide show
  1. package/CHANGELOG.md +493 -141
  2. package/DataGrid/DataGrid.js +14 -34
  3. package/DataGrid/useDataGridComponent.js +8 -14
  4. package/DataGrid/useDataGridProps.js +3 -3
  5. package/colDef/gridCheckboxSelectionColDef.js +1 -1
  6. package/colDef/gridNumericOperators.d.ts +1 -1
  7. package/colDef/gridSingleSelectOperators.d.ts +1 -1
  8. package/colDef/gridStringOperators.d.ts +1 -1
  9. package/components/GridFooter.js +1 -1
  10. package/components/GridRow.js +2 -2
  11. package/components/base/GridBody.js +2 -2
  12. package/components/cell/GridEditInputCell.js +3 -8
  13. package/components/cell/GridEditSingleSelectCell.js +6 -38
  14. package/components/columnHeaders/GridColumnGroupHeader.d.ts +2 -0
  15. package/components/columnHeaders/GridColumnGroupHeader.js +32 -5
  16. package/components/columnSelection/GridHeaderCheckbox.js +3 -3
  17. package/components/containers/GridRoot.js +4 -3
  18. package/components/panel/GridColumnsPanel.d.ts +2 -0
  19. package/components/panel/GridColumnsPanel.js +10 -4
  20. package/components/panel/filterPanel/GridFilterForm.d.ts +12 -0
  21. package/components/panel/filterPanel/GridFilterForm.js +29 -7
  22. package/components/panel/filterPanel/GridFilterPanel.d.ts +12 -0
  23. package/components/panel/filterPanel/GridFilterPanel.js +64 -19
  24. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +1 -1
  25. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +1 -1
  26. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +1 -1
  27. package/hooks/core/useGridInitialization.d.ts +1 -1
  28. package/hooks/core/useGridStateInitialization.d.ts +1 -1
  29. package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +10 -1
  30. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +6 -0
  31. package/hooks/features/columnGrouping/gridColumnGroupsSelector.js +34 -1
  32. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +15 -0
  33. package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +89 -0
  34. package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -15
  35. package/hooks/features/columnGrouping/useGridColumnGrouping.js +66 -66
  36. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
  37. package/hooks/features/columnHeaders/useGridColumnHeaders.js +60 -116
  38. package/hooks/features/density/densitySelector.d.ts +0 -2
  39. package/hooks/features/density/densitySelector.js +1 -3
  40. package/hooks/features/density/densityState.d.ts +0 -1
  41. package/hooks/features/density/useGridDensity.d.ts +1 -1
  42. package/hooks/features/density/useGridDensity.js +9 -45
  43. package/hooks/features/dimensions/useGridDimensions.js +3 -2
  44. package/hooks/features/{editRows/gridEditRowsSelector.d.ts → editing/gridEditingSelectors.d.ts} +0 -0
  45. package/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  46. package/hooks/features/editing/index.d.ts +1 -0
  47. package/hooks/features/editing/index.js +1 -0
  48. package/hooks/features/{editRows/useGridCellEditing.new.d.ts → editing/useGridCellEditing.d.ts} +0 -0
  49. package/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +21 -6
  50. package/hooks/features/{editRows/useGridEditing.new.d.ts → editing/useGridEditing.d.ts} +0 -0
  51. package/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +3 -3
  52. package/hooks/features/{editRows/useGridRowEditing.new.d.ts → editing/useGridRowEditing.d.ts} +0 -0
  53. package/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +20 -6
  54. package/hooks/features/export/useGridPrintExport.js +2 -2
  55. package/hooks/features/focus/gridFocusState.d.ts +6 -0
  56. package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -0
  57. package/hooks/features/focus/gridFocusStateSelector.js +6 -2
  58. package/hooks/features/focus/useGridFocus.js +69 -11
  59. package/hooks/features/index.d.ts +2 -2
  60. package/hooks/features/index.js +2 -2
  61. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +135 -1
  62. package/hooks/features/{selection/gridSelectionSelector.d.ts → rowSelection/gridRowSelectionSelector.d.ts} +1 -1
  63. package/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
  64. package/hooks/features/rowSelection/index.d.ts +1 -0
  65. package/hooks/features/rowSelection/index.js +1 -0
  66. package/hooks/features/rowSelection/useGridRowSelection.d.ts +12 -0
  67. package/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +37 -37
  68. package/hooks/features/{selection/useGridSelectionPreProcessors.d.ts → rowSelection/useGridRowSelectionPreProcessors.d.ts} +1 -1
  69. package/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +1 -1
  70. package/hooks/features/rows/gridRowsInterfaces.d.ts +4 -0
  71. package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
  72. package/hooks/features/rows/gridRowsUtils.js +5 -2
  73. package/hooks/features/rows/useGridRows.js +23 -7
  74. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
  75. package/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
  76. package/hooks/utils/useGridApi.d.ts +1 -1
  77. package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
  78. package/hooks/utils/useGridApiRef.d.ts +1 -1
  79. package/hooks/utils/useGridInitializeState.d.ts +1 -1
  80. package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
  81. package/hooks/utils/useGridSelector.d.ts +1 -1
  82. package/hooks/utils/useGridState.d.ts +1 -1
  83. package/hooks/utils/useGridVisibleRows.d.ts +2 -2
  84. package/index.js +1 -1
  85. package/internals/index.d.ts +3 -5
  86. package/internals/index.js +3 -5
  87. package/legacy/DataGrid/DataGrid.js +14 -34
  88. package/legacy/DataGrid/useDataGridComponent.js +8 -14
  89. package/legacy/DataGrid/useDataGridProps.js +3 -3
  90. package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -1
  91. package/legacy/components/GridFooter.js +1 -1
  92. package/legacy/components/GridRow.js +2 -2
  93. package/legacy/components/base/GridBody.js +2 -2
  94. package/legacy/components/cell/GridEditInputCell.js +3 -8
  95. package/legacy/components/cell/GridEditSingleSelectCell.js +6 -52
  96. package/legacy/components/columnHeaders/GridColumnGroupHeader.js +46 -13
  97. package/legacy/components/columnSelection/GridHeaderCheckbox.js +3 -3
  98. package/legacy/components/containers/GridRoot.js +4 -3
  99. package/legacy/components/panel/GridColumnsPanel.js +10 -3
  100. package/legacy/components/panel/filterPanel/GridFilterForm.js +31 -7
  101. package/legacy/components/panel/filterPanel/GridFilterPanel.js +67 -18
  102. package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +33 -1
  103. package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +96 -0
  104. package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +64 -64
  105. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +70 -122
  106. package/legacy/hooks/features/density/densitySelector.js +0 -6
  107. package/legacy/hooks/features/density/useGridDensity.js +6 -44
  108. package/legacy/hooks/features/dimensions/useGridDimensions.js +3 -2
  109. package/legacy/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  110. package/legacy/hooks/features/editing/index.js +1 -0
  111. package/legacy/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +21 -6
  112. package/legacy/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +3 -3
  113. package/legacy/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +20 -6
  114. package/legacy/hooks/features/export/useGridPrintExport.js +2 -2
  115. package/legacy/hooks/features/focus/gridFocusStateSelector.js +8 -0
  116. package/legacy/hooks/features/focus/useGridFocus.js +72 -11
  117. package/legacy/hooks/features/index.js +2 -2
  118. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +129 -1
  119. package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +19 -0
  120. package/legacy/hooks/features/rowSelection/index.js +1 -0
  121. package/legacy/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +37 -37
  122. package/legacy/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +1 -1
  123. package/legacy/hooks/features/rows/gridRowsUtils.js +5 -2
  124. package/legacy/hooks/features/rows/useGridRows.js +25 -7
  125. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
  126. package/legacy/index.js +1 -1
  127. package/legacy/internals/index.js +3 -5
  128. package/legacy/locales/trTR.js +17 -17
  129. package/legacy/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
  130. package/legacy/models/api/index.js +1 -1
  131. package/legacy/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
  132. package/legacy/models/index.js +1 -1
  133. package/{models/api/gridSelectionApi.js → legacy/models/params/gridColumnGroupHeaderParams.js} +0 -0
  134. package/legacy/models/params/gridEditCellParams.js +0 -4
  135. package/legacy/models/params/index.js +1 -0
  136. package/locales/trTR.js +17 -17
  137. package/models/api/gridApiCommon.d.ts +3 -6
  138. package/models/api/gridApiCommunity.d.ts +1 -7
  139. package/models/api/gridEditingApi.d.ts +36 -121
  140. package/models/api/gridFocusApi.d.ts +13 -0
  141. package/models/api/{gridSelectionApi.d.ts → gridRowSelectionApi.d.ts} +2 -2
  142. package/models/{gridSelectionModel.js → api/gridRowSelectionApi.js} +0 -0
  143. package/models/api/index.d.ts +2 -2
  144. package/models/api/index.js +1 -1
  145. package/models/colDef/gridColDef.d.ts +0 -8
  146. package/models/events/gridEventLookup.d.ts +30 -19
  147. package/models/gridColumnGrouping.d.ts +1 -26
  148. package/models/gridRowSelectionModel.d.ts +3 -0
  149. package/{modern/models/api/gridSelectionApi.js → models/gridRowSelectionModel.js} +0 -0
  150. package/models/gridStateCommunity.d.ts +2 -2
  151. package/models/index.d.ts +1 -1
  152. package/models/index.js +1 -1
  153. package/models/params/gridColumnGroupHeaderParams.d.ts +30 -0
  154. package/{modern/models/gridSelectionModel.js → models/params/gridColumnGroupHeaderParams.js} +0 -0
  155. package/models/params/gridEditCellParams.d.ts +4 -17
  156. package/models/params/gridEditCellParams.js +0 -4
  157. package/models/params/gridRowParams.d.ts +4 -4
  158. package/models/params/index.d.ts +1 -0
  159. package/models/params/index.js +1 -0
  160. package/models/props/DataGridProps.d.ts +8 -32
  161. package/modern/DataGrid/DataGrid.js +14 -34
  162. package/modern/DataGrid/useDataGridComponent.js +8 -12
  163. package/modern/DataGrid/useDataGridProps.js +3 -3
  164. package/modern/colDef/gridCheckboxSelectionColDef.js +1 -1
  165. package/modern/components/GridFooter.js +1 -1
  166. package/modern/components/GridRow.js +2 -2
  167. package/modern/components/base/GridBody.js +2 -2
  168. package/modern/components/cell/GridEditInputCell.js +3 -4
  169. package/modern/components/cell/GridEditSingleSelectCell.js +6 -34
  170. package/modern/components/columnHeaders/GridColumnGroupHeader.js +32 -5
  171. package/modern/components/columnSelection/GridHeaderCheckbox.js +3 -3
  172. package/modern/components/containers/GridRoot.js +4 -3
  173. package/modern/components/panel/GridColumnsPanel.js +10 -4
  174. package/modern/components/panel/filterPanel/GridFilterForm.js +29 -7
  175. package/modern/components/panel/filterPanel/GridFilterPanel.js +62 -17
  176. package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.js +14 -1
  177. package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +83 -0
  178. package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +50 -62
  179. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +58 -98
  180. package/modern/hooks/features/density/densitySelector.js +1 -3
  181. package/modern/hooks/features/density/useGridDensity.js +9 -37
  182. package/modern/hooks/features/dimensions/useGridDimensions.js +3 -2
  183. package/modern/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  184. package/modern/hooks/features/editing/index.js +1 -0
  185. package/modern/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +21 -6
  186. package/modern/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +3 -3
  187. package/modern/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +20 -6
  188. package/modern/hooks/features/export/useGridPrintExport.js +2 -2
  189. package/modern/hooks/features/focus/gridFocusStateSelector.js +6 -2
  190. package/modern/hooks/features/focus/useGridFocus.js +69 -11
  191. package/modern/hooks/features/index.js +2 -2
  192. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +135 -1
  193. package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
  194. package/modern/hooks/features/rowSelection/index.js +1 -0
  195. package/modern/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +37 -37
  196. package/modern/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +1 -1
  197. package/modern/hooks/features/rows/gridRowsUtils.js +5 -2
  198. package/modern/hooks/features/rows/useGridRows.js +23 -7
  199. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +2 -2
  200. package/modern/index.js +1 -1
  201. package/modern/internals/index.js +3 -5
  202. package/modern/locales/trTR.js +17 -17
  203. package/modern/models/api/gridRowSelectionApi.js +1 -0
  204. package/modern/models/api/index.js +1 -1
  205. package/modern/models/gridRowSelectionModel.js +1 -0
  206. package/modern/models/index.js +1 -1
  207. package/modern/models/params/gridColumnGroupHeaderParams.js +1 -0
  208. package/modern/models/params/gridEditCellParams.js +0 -4
  209. package/modern/models/params/index.js +1 -0
  210. package/node/DataGrid/DataGrid.js +14 -34
  211. package/node/DataGrid/useDataGridComponent.js +9 -17
  212. package/node/DataGrid/useDataGridProps.js +3 -3
  213. package/node/colDef/gridCheckboxSelectionColDef.js +2 -2
  214. package/node/components/GridFooter.js +2 -2
  215. package/node/components/GridRow.js +2 -2
  216. package/node/components/base/GridBody.js +2 -2
  217. package/node/components/cell/GridEditInputCell.js +3 -9
  218. package/node/components/cell/GridEditSingleSelectCell.js +6 -38
  219. package/node/components/columnHeaders/GridColumnGroupHeader.js +32 -5
  220. package/node/components/columnSelection/GridHeaderCheckbox.js +3 -3
  221. package/node/components/containers/GridRoot.js +4 -2
  222. package/node/components/panel/GridColumnsPanel.js +10 -4
  223. package/node/components/panel/filterPanel/GridFilterForm.js +30 -7
  224. package/node/components/panel/filterPanel/GridFilterPanel.js +63 -19
  225. package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +40 -3
  226. package/node/hooks/features/columnGrouping/gridColumnGroupsUtils.js +102 -0
  227. package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +68 -71
  228. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +57 -113
  229. package/node/hooks/features/density/densitySelector.js +2 -6
  230. package/node/hooks/features/density/useGridDensity.js +9 -48
  231. package/node/hooks/features/dimensions/useGridDimensions.js +3 -1
  232. package/node/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
  233. package/node/hooks/features/{editRows → editing}/index.js +4 -4
  234. package/node/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +28 -13
  235. package/node/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +4 -4
  236. package/node/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +28 -14
  237. package/node/hooks/features/export/useGridPrintExport.js +2 -2
  238. package/node/hooks/features/focus/gridFocusStateSelector.js +10 -4
  239. package/node/hooks/features/focus/useGridFocus.js +68 -10
  240. package/node/hooks/features/index.js +8 -8
  241. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +138 -1
  242. package/node/hooks/features/{selection/gridSelectionSelector.js → rowSelection/gridRowSelectionSelector.js} +6 -6
  243. package/node/hooks/features/rowSelection/index.js +18 -0
  244. package/node/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +43 -43
  245. package/node/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +3 -3
  246. package/node/hooks/features/rows/gridRowsUtils.js +5 -2
  247. package/node/hooks/features/rows/useGridRows.js +23 -7
  248. package/node/hooks/features/virtualization/useGridVirtualScroller.js +4 -4
  249. package/node/index.js +1 -1
  250. package/node/internals/index.js +23 -45
  251. package/node/locales/trTR.js +17 -17
  252. package/node/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
  253. package/node/models/api/index.js +4 -4
  254. package/node/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
  255. package/node/models/index.js +4 -4
  256. package/node/models/params/gridColumnGroupHeaderParams.js +5 -0
  257. package/node/models/params/gridEditCellParams.js +0 -3
  258. package/node/models/params/index.js +13 -0
  259. package/package.json +2 -2
  260. package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.d.ts +0 -4
  261. package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
  262. package/hooks/features/editRows/index.d.ts +0 -1
  263. package/hooks/features/editRows/index.js +0 -1
  264. package/hooks/features/editRows/useGridCellEditing.old.d.ts +0 -4
  265. package/hooks/features/editRows/useGridCellEditing.old.js +0 -359
  266. package/hooks/features/editRows/useGridEditing.old.d.ts +0 -11
  267. package/hooks/features/editRows/useGridEditing.old.js +0 -167
  268. package/hooks/features/editRows/useGridRowEditing.old.d.ts +0 -4
  269. package/hooks/features/editRows/useGridRowEditing.old.js +0 -334
  270. package/hooks/features/selection/gridSelectionSelector.js +0 -9
  271. package/hooks/features/selection/index.d.ts +0 -1
  272. package/hooks/features/selection/index.js +0 -1
  273. package/hooks/features/selection/useGridSelection.d.ts +0 -12
  274. package/legacy/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
  275. package/legacy/hooks/features/editRows/index.js +0 -1
  276. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +0 -411
  277. package/legacy/hooks/features/editRows/useGridEditing.old.js +0 -184
  278. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +0 -505
  279. package/legacy/hooks/features/selection/gridSelectionSelector.js +0 -19
  280. package/legacy/hooks/features/selection/index.js +0 -1
  281. package/models/gridSelectionModel.d.ts +0 -3
  282. package/modern/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -29
  283. package/modern/hooks/features/editRows/index.js +0 -1
  284. package/modern/hooks/features/editRows/useGridCellEditing.old.js +0 -355
  285. package/modern/hooks/features/editRows/useGridEditing.old.js +0 -163
  286. package/modern/hooks/features/editRows/useGridRowEditing.old.js +0 -326
  287. package/modern/hooks/features/selection/gridSelectionSelector.js +0 -9
  288. package/modern/hooks/features/selection/index.js +0 -1
  289. package/node/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -55
  290. package/node/hooks/features/editRows/useGridCellEditing.old.js +0 -380
  291. package/node/hooks/features/editRows/useGridEditing.old.js +0 -193
  292. package/node/hooks/features/editRows/useGridRowEditing.old.js +0 -358
  293. package/node/hooks/features/selection/index.js +0 -18
@@ -99,18 +99,12 @@ Object.defineProperty(exports, "densityStateInitializer", {
99
99
  return _useGridDensity.densityStateInitializer;
100
100
  }
101
101
  });
102
- Object.defineProperty(exports, "editingStateInitializer_new", {
102
+ Object.defineProperty(exports, "editingStateInitializer", {
103
103
  enumerable: true,
104
104
  get: function () {
105
105
  return _useGridEditing.editingStateInitializer;
106
106
  }
107
107
  });
108
- Object.defineProperty(exports, "editingStateInitializer_old", {
109
- enumerable: true,
110
- get: function () {
111
- return _useGridEditing2.editingStateInitializer;
112
- }
113
- });
114
108
  Object.defineProperty(exports, "exportAs", {
115
109
  enumerable: true,
116
110
  get: function () {
@@ -213,22 +207,22 @@ Object.defineProperty(exports, "preferencePanelStateInitializer", {
213
207
  return _useGridPreferencesPanel.preferencePanelStateInitializer;
214
208
  }
215
209
  });
216
- Object.defineProperty(exports, "rowsMetaStateInitializer", {
210
+ Object.defineProperty(exports, "rowSelectionStateInitializer", {
217
211
  enumerable: true,
218
212
  get: function () {
219
- return _useGridRowsMeta.rowsMetaStateInitializer;
213
+ return _useGridRowSelection.rowSelectionStateInitializer;
220
214
  }
221
215
  });
222
- Object.defineProperty(exports, "rowsStateInitializer", {
216
+ Object.defineProperty(exports, "rowsMetaStateInitializer", {
223
217
  enumerable: true,
224
218
  get: function () {
225
- return _useGridRows.rowsStateInitializer;
219
+ return _useGridRowsMeta.rowsMetaStateInitializer;
226
220
  }
227
221
  });
228
- Object.defineProperty(exports, "selectionStateInitializer", {
222
+ Object.defineProperty(exports, "rowsStateInitializer", {
229
223
  enumerable: true,
230
224
  get: function () {
231
- return _useGridSelection.selectionStateInitializer;
225
+ return _useGridRows.rowsStateInitializer;
232
226
  }
233
227
  });
234
228
  Object.defineProperty(exports, "sortingStateInitializer", {
@@ -255,12 +249,6 @@ Object.defineProperty(exports, "useGridColumnGrouping", {
255
249
  return _useGridColumnGrouping.useGridColumnGrouping;
256
250
  }
257
251
  });
258
- Object.defineProperty(exports, "useGridColumnGroupingPreProcessors", {
259
- enumerable: true,
260
- get: function () {
261
- return _useGridColumnGroupingPreProcessors.useGridColumnGroupingPreProcessors;
262
- }
263
- });
264
252
  Object.defineProperty(exports, "useGridColumnHeaders", {
265
253
  enumerable: true,
266
254
  get: function () {
@@ -303,18 +291,12 @@ Object.defineProperty(exports, "useGridDimensions", {
303
291
  return _useGridDimensions.useGridDimensions;
304
292
  }
305
293
  });
306
- Object.defineProperty(exports, "useGridEditing_new", {
294
+ Object.defineProperty(exports, "useGridEditing", {
307
295
  enumerable: true,
308
296
  get: function () {
309
297
  return _useGridEditing.useGridEditing;
310
298
  }
311
299
  });
312
- Object.defineProperty(exports, "useGridEditing_old", {
313
- enumerable: true,
314
- get: function () {
315
- return _useGridEditing2.useGridEditing;
316
- }
317
- });
318
300
  Object.defineProperty(exports, "useGridEvents", {
319
301
  enumerable: true,
320
302
  get: function () {
@@ -387,40 +369,40 @@ Object.defineProperty(exports, "useGridRegisterStrategyProcessor", {
387
369
  return _strategyProcessing.useGridRegisterStrategyProcessor;
388
370
  }
389
371
  });
390
- Object.defineProperty(exports, "useGridRows", {
372
+ Object.defineProperty(exports, "useGridRowSelection", {
391
373
  enumerable: true,
392
374
  get: function () {
393
- return _useGridRows.useGridRows;
375
+ return _useGridRowSelection.useGridRowSelection;
394
376
  }
395
377
  });
396
- Object.defineProperty(exports, "useGridRowsMeta", {
378
+ Object.defineProperty(exports, "useGridRowSelectionPreProcessors", {
397
379
  enumerable: true,
398
380
  get: function () {
399
- return _useGridRowsMeta.useGridRowsMeta;
381
+ return _useGridRowSelectionPreProcessors.useGridRowSelectionPreProcessors;
400
382
  }
401
383
  });
402
- Object.defineProperty(exports, "useGridRowsPreProcessors", {
384
+ Object.defineProperty(exports, "useGridRows", {
403
385
  enumerable: true,
404
386
  get: function () {
405
- return _useGridRowsPreProcessors.useGridRowsPreProcessors;
387
+ return _useGridRows.useGridRows;
406
388
  }
407
389
  });
408
- Object.defineProperty(exports, "useGridScroll", {
390
+ Object.defineProperty(exports, "useGridRowsMeta", {
409
391
  enumerable: true,
410
392
  get: function () {
411
- return _useGridScroll.useGridScroll;
393
+ return _useGridRowsMeta.useGridRowsMeta;
412
394
  }
413
395
  });
414
- Object.defineProperty(exports, "useGridSelection", {
396
+ Object.defineProperty(exports, "useGridRowsPreProcessors", {
415
397
  enumerable: true,
416
398
  get: function () {
417
- return _useGridSelection.useGridSelection;
399
+ return _useGridRowsPreProcessors.useGridRowsPreProcessors;
418
400
  }
419
401
  });
420
- Object.defineProperty(exports, "useGridSelectionPreProcessors", {
402
+ Object.defineProperty(exports, "useGridScroll", {
421
403
  enumerable: true,
422
404
  get: function () {
423
- return _useGridSelectionPreProcessors.useGridSelectionPreProcessors;
405
+ return _useGridScroll.useGridScroll;
424
406
  }
425
407
  });
426
408
  Object.defineProperty(exports, "useGridSorting", {
@@ -476,8 +458,6 @@ var _useGridColumnSpanning = require("../hooks/features/columns/useGridColumnSpa
476
458
 
477
459
  var _useGridColumnGrouping = require("../hooks/features/columnGrouping/useGridColumnGrouping");
478
460
 
479
- var _useGridColumnGroupingPreProcessors = require("../hooks/features/columnGrouping/useGridColumnGroupingPreProcessors");
480
-
481
461
  var _useGridDensity = require("../hooks/features/density/useGridDensity");
482
462
 
483
463
  var _useGridCsvExport = require("../hooks/features/export/useGridCsvExport");
@@ -496,9 +476,7 @@ var _useGridPagination = require("../hooks/features/pagination/useGridPagination
496
476
 
497
477
  var _useGridPreferencesPanel = require("../hooks/features/preferencesPanel/useGridPreferencesPanel");
498
478
 
499
- var _useGridEditing = require("../hooks/features/editRows/useGridEditing.new");
500
-
501
- var _useGridEditing2 = require("../hooks/features/editRows/useGridEditing.old");
479
+ var _useGridEditing = require("../hooks/features/editing/useGridEditing");
502
480
 
503
481
  var _useGridRows = require("../hooks/features/rows/useGridRows");
504
482
 
@@ -512,9 +490,9 @@ var _useGridParamsApi = require("../hooks/features/rows/useGridParamsApi");
512
490
 
513
491
  var _gridRowsSelector = require("../hooks/features/rows/gridRowsSelector");
514
492
 
515
- var _useGridSelection = require("../hooks/features/selection/useGridSelection");
493
+ var _useGridRowSelection = require("../hooks/features/rowSelection/useGridRowSelection");
516
494
 
517
- var _useGridSelectionPreProcessors = require("../hooks/features/selection/useGridSelectionPreProcessors");
495
+ var _useGridRowSelectionPreProcessors = require("../hooks/features/rowSelection/useGridRowSelectionPreProcessors");
518
496
 
519
497
  var _useGridSorting = require("../hooks/features/sorting/useGridSorting");
520
498
 
@@ -48,7 +48,7 @@ const trTRGrid = {
48
48
  // Filter panel text
49
49
  filterPanelAddFilter: 'Filtre Ekle',
50
50
  filterPanelDeleteIconLabel: 'Kaldır',
51
- // filterPanelLinkOperator: 'Logic operator',
51
+ filterPanelLinkOperator: 'Mantıksal operatörler',
52
52
  filterPanelOperators: 'Operatör',
53
53
  // TODO v6: rename to filterPanelOperator
54
54
  filterPanelOperatorAnd: 'Ve',
@@ -94,13 +94,13 @@ const trTRGrid = {
94
94
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
95
95
  // Checkbox selection text
96
96
  checkboxSelectionHeaderName: 'Seçim',
97
- // checkboxSelectionSelectAllRows: 'Select all rows',
98
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
99
- // checkboxSelectionSelectRow: 'Select row',
100
- // checkboxSelectionUnselectRow: 'Unselect row',
97
+ checkboxSelectionSelectAllRows: 'Tüm satırları seç',
98
+ checkboxSelectionUnselectAllRows: 'Tüm satırların seçimini kaldır',
99
+ checkboxSelectionSelectRow: 'Satırı seç',
100
+ checkboxSelectionUnselectRow: 'Satır seçimini bırak',
101
101
  // Boolean cell text
102
- // booleanCellTrueLabel: 'yes',
103
- // booleanCellFalseLabel: 'no',
102
+ booleanCellTrueLabel: 'Evet',
103
+ booleanCellFalseLabel: 'Hayır',
104
104
  // Actions cell more text
105
105
  actionsCellMore: 'daha fazla',
106
106
  // Column pinning text
@@ -116,18 +116,18 @@ const trTRGrid = {
116
116
  groupColumn: name => `${name} için grupla`,
117
117
  unGroupColumn: name => `${name} için gruplamayı kaldır`,
118
118
  // Master/detail
119
- // detailPanelToggle: 'Detail panel toggle',
119
+ detailPanelToggle: 'Detay görünümüne geçiş',
120
120
  expandDetailPanel: 'Genişlet',
121
- collapseDetailPanel: 'Gizle' // Row reordering text
122
- // rowReorderingHeaderName: 'Row reordering',
121
+ collapseDetailPanel: 'Gizle',
122
+ // Row reordering text
123
+ rowReorderingHeaderName: 'Satırı yeniden sırala',
123
124
  // Aggregation
124
- // aggregationMenuItemHeader: 'Aggregation',
125
- // aggregationFunctionLabelSum: 'sum',
126
- // aggregationFunctionLabelAvg: 'avg',
127
- // aggregationFunctionLabelMin: 'min',
128
- // aggregationFunctionLabelMax: 'max',
129
- // aggregationFunctionLabelSize: 'size',
130
-
125
+ aggregationMenuItemHeader: 'Toplama',
126
+ aggregationFunctionLabelSum: 'top',
127
+ aggregationFunctionLabelAvg: 'ort',
128
+ aggregationFunctionLabelMin: 'min',
129
+ aggregationFunctionLabelMax: 'maks',
130
+ aggregationFunctionLabelSize: 'boyut'
131
131
  };
132
132
  const trTR = (0, _getGridLocalization.getGridLocalization)(trTRGrid, _locale.trTR);
133
133
  exports.trTR = trTR;
@@ -82,15 +82,15 @@ Object.keys(_gridRowsMetaApi).forEach(function (key) {
82
82
  });
83
83
  });
84
84
 
85
- var _gridSelectionApi = require("./gridSelectionApi");
85
+ var _gridRowSelectionApi = require("./gridRowSelectionApi");
86
86
 
87
- Object.keys(_gridSelectionApi).forEach(function (key) {
87
+ Object.keys(_gridRowSelectionApi).forEach(function (key) {
88
88
  if (key === "default" || key === "__esModule") return;
89
- if (key in exports && exports[key] === _gridSelectionApi[key]) return;
89
+ if (key in exports && exports[key] === _gridRowSelectionApi[key]) return;
90
90
  Object.defineProperty(exports, key, {
91
91
  enumerable: true,
92
92
  get: function () {
93
- return _gridSelectionApi[key];
93
+ return _gridRowSelectionApi[key];
94
94
  }
95
95
  });
96
96
  });
@@ -134,15 +134,15 @@ Object.keys(_gridRows).forEach(function (key) {
134
134
  });
135
135
  });
136
136
 
137
- var _gridSelectionModel = require("./gridSelectionModel");
137
+ var _gridRowSelectionModel = require("./gridRowSelectionModel");
138
138
 
139
- Object.keys(_gridSelectionModel).forEach(function (key) {
139
+ Object.keys(_gridRowSelectionModel).forEach(function (key) {
140
140
  if (key === "default" || key === "__esModule") return;
141
- if (key in exports && exports[key] === _gridSelectionModel[key]) return;
141
+ if (key in exports && exports[key] === _gridRowSelectionModel[key]) return;
142
142
  Object.defineProperty(exports, key, {
143
143
  enumerable: true,
144
144
  get: function () {
145
- return _gridSelectionModel[key];
145
+ return _gridRowSelectionModel[key];
146
146
  }
147
147
  });
148
148
  });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GridCellEditStopReasons = exports.GridCellEditStartReasons = void 0;
7
- // TODO v6 - remove
8
7
 
9
8
  /**
10
9
  * Params passed to `apiRef.current.setEditCellValue`.
11
10
  */
12
- // TODO v6 - remove
13
- // TODO v6 - remove
14
11
  var GridCellEditStartReasons;
15
12
  /**
16
13
  * Params passed to the `cellEditStart` event.
@@ -17,6 +17,19 @@ Object.keys(_gridColumnHeaderParams).forEach(function (key) {
17
17
  });
18
18
  });
19
19
 
20
+ var _gridColumnGroupHeaderParams = require("./gridColumnGroupHeaderParams");
21
+
22
+ Object.keys(_gridColumnGroupHeaderParams).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _gridColumnGroupHeaderParams[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _gridColumnGroupHeaderParams[key];
29
+ }
30
+ });
31
+ });
32
+
20
33
  var _gridColumnOrderChangeParams = require("./gridColumnOrderChangeParams");
21
34
 
22
35
  Object.keys(_gridColumnOrderChangeParams).forEach(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "6.0.0-alpha.2",
3
+ "version": "6.0.0-alpha.4",
4
4
  "description": "The community edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@babel/runtime": "^7.19.0",
39
- "@mui/utils": "^5.10.6",
39
+ "@mui/utils": "^5.10.9",
40
40
  "clsx": "^1.2.1",
41
41
  "prop-types": "^15.8.1",
42
42
  "reselect": "^4.1.6"
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
3
- import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
4
- export declare const useGridColumnGroupingPreProcessors: (apiRef: React.MutableRefObject<GridApiCommunity>, props: DataGridProcessedProps) => void;
@@ -1,35 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import { useGridRegisterPipeProcessor } from '../../core/pipeProcessing';
4
- import { isDeepEqual } from '../../../utils/utils';
5
- import { unwrapGroupingColumnModel, hasGroupPath } from './useGridColumnGrouping';
6
- export const useGridColumnGroupingPreProcessors = (apiRef, props) => {
7
- var _props$experimentalFe2;
8
-
9
- const addHeaderGroups = React.useCallback(columnsState => {
10
- var _props$experimentalFe;
11
-
12
- if (!((_props$experimentalFe = props.experimentalFeatures) != null && _props$experimentalFe.columnGrouping)) {
13
- return columnsState;
14
- }
15
-
16
- const unwrappedGroupingModel = unwrapGroupingColumnModel(props.columnGroupingModel);
17
- columnsState.all.forEach(field => {
18
- var _unwrappedGroupingMod, _unwrappedGroupingMod2;
19
-
20
- const newGroupPath = (_unwrappedGroupingMod = unwrappedGroupingModel[field]) != null ? _unwrappedGroupingMod : [];
21
- const lookupElement = columnsState.lookup[field];
22
-
23
- if (hasGroupPath(lookupElement) && isDeepEqual(newGroupPath, lookupElement == null ? void 0 : lookupElement.groupPath)) {
24
- // Avoid modifying the pointer to allow shadow comparison in https://github.com/mui/mui-x/blob/f90afbf10a1264ee8b453d7549dd7cdd6110a4ed/packages/grid/x-data-grid/src/hooks/features/columns/gridColumnsUtils.ts#L446:L453
25
- return;
26
- }
27
-
28
- columnsState.lookup[field] = _extends({}, columnsState.lookup[field], {
29
- groupPath: (_unwrappedGroupingMod2 = unwrappedGroupingModel[field]) != null ? _unwrappedGroupingMod2 : []
30
- });
31
- });
32
- return columnsState;
33
- }, [props.columnGroupingModel, (_props$experimentalFe2 = props.experimentalFeatures) == null ? void 0 : _props$experimentalFe2.columnGrouping]);
34
- useGridRegisterPipeProcessor(apiRef, 'hydrateColumns', addHeaderGroups);
35
- };
@@ -1 +0,0 @@
1
- export * from './gridEditRowsSelector';
@@ -1 +0,0 @@
1
- export * from './gridEditRowsSelector';
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { GridApiCommunity } from '../../../models/api/gridApiCommunity';
3
- import { DataGridProcessedProps } from '../../../models/props/DataGridProps';
4
- export declare const useCellEditing: (apiRef: React.MutableRefObject<GridApiCommunity>, props: Pick<DataGridProcessedProps, 'editMode' | 'onCellEditCommit' | 'onCellEditStart' | 'onCellEditStop' | 'experimentalFeatures'>) => void;