@mui/x-data-grid 5.12.3 → 5.14.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 (370) hide show
  1. package/CHANGELOG.md +147 -1
  2. package/DataGrid/DataGrid.js +4 -4
  3. package/DataGrid/useDataGridComponent.js +1 -1
  4. package/colDef/gridActionsColDef.js +2 -0
  5. package/colDef/gridBooleanColDef.js +3 -1
  6. package/colDef/gridCheckboxSelectionColDef.js +2 -0
  7. package/colDef/gridDateOperators.d.ts +1 -1
  8. package/colDef/gridDateOperators.js +4 -2
  9. package/colDef/gridNumericOperators.js +4 -2
  10. package/colDef/gridStringColDef.d.ts +3 -0
  11. package/colDef/gridStringColDef.js +6 -0
  12. package/colDef/gridStringOperators.d.ts +1 -1
  13. package/colDef/gridStringOperators.js +15 -8
  14. package/components/GridRow.js +1 -1
  15. package/components/base/GridOverlays.js +4 -1
  16. package/components/cell/GridActionsCellItem.d.ts +2 -2
  17. package/components/cell/GridBooleanCell.d.ts +5 -2
  18. package/components/cell/GridBooleanCell.js +93 -2
  19. package/components/cell/GridEditDateCell.js +5 -1
  20. package/components/cell/index.d.ts +1 -0
  21. package/components/cell/index.js +1 -0
  22. package/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
  23. package/components/containers/GridRootStyles.js +10 -0
  24. package/components/panel/GridPanel.d.ts +1 -1
  25. package/components/panel/filterPanel/GridFilterForm.js +11 -4
  26. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  27. package/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  28. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +3 -8
  29. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +30 -14
  30. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -7
  31. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +32 -14
  32. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  33. package/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  34. package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +6 -3
  35. package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  36. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  37. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  38. package/components/toolbar/GridToolbarExport.js +20 -10
  39. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  40. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  41. package/constants/gridClasses.d.ts +25 -1
  42. package/constants/gridClasses.js +1 -1
  43. package/constants/localeTextConstants.js +8 -1
  44. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +2 -1
  45. package/hooks/features/columns/useGridColumnSpanning.js +9 -7
  46. package/hooks/features/columns/useGridColumns.d.ts +1 -1
  47. package/hooks/features/columns/useGridColumns.js +13 -6
  48. package/hooks/features/dimensions/useGridDimensions.js +28 -15
  49. package/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  50. package/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  51. package/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  52. package/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  53. package/hooks/features/export/utils.d.ts +1 -1
  54. package/hooks/features/export/utils.js +9 -2
  55. package/hooks/features/filter/gridFilterUtils.js +6 -0
  56. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  57. package/hooks/features/filter/useGridFilter.js +30 -5
  58. package/hooks/features/pagination/useGridPage.js +4 -3
  59. package/hooks/features/pagination/useGridPageSize.js +4 -3
  60. package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
  61. package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
  62. package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
  63. package/hooks/features/rows/useGridRows.js +1 -1
  64. package/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  65. package/hooks/features/selection/useGridSelection.js +24 -10
  66. package/hooks/features/sorting/gridSortingUtils.d.ts +1 -0
  67. package/hooks/features/sorting/gridSortingUtils.js +10 -11
  68. package/hooks/features/sorting/useGridSorting.d.ts +1 -1
  69. package/hooks/features/sorting/useGridSorting.js +34 -6
  70. package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +12 -1
  71. package/hooks/features/statePersistence/index.d.ts +1 -1
  72. package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
  73. package/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
  74. package/hooks/utils/useGridApiContext.js +1 -1
  75. package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
  76. package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
  77. package/hooks/utils/useGridNativeEventListener.js +1 -1
  78. package/hooks/utils/useGridRootProps.js +1 -1
  79. package/index.js +1 -1
  80. package/internals/index.d.ts +2 -2
  81. package/internals/index.js +2 -2
  82. package/legacy/DataGrid/DataGrid.js +4 -4
  83. package/legacy/DataGrid/useDataGridComponent.js +1 -1
  84. package/legacy/colDef/gridActionsColDef.js +2 -0
  85. package/legacy/colDef/gridBooleanColDef.js +3 -1
  86. package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -0
  87. package/legacy/colDef/gridDateOperators.js +4 -2
  88. package/legacy/colDef/gridNumericOperators.js +4 -2
  89. package/legacy/colDef/gridStringColDef.js +6 -0
  90. package/legacy/colDef/gridStringOperators.js +17 -7
  91. package/legacy/components/GridRow.js +1 -1
  92. package/legacy/components/base/GridOverlays.js +4 -1
  93. package/legacy/components/cell/GridBooleanCell.js +93 -2
  94. package/legacy/components/cell/GridEditDateCell.js +5 -1
  95. package/legacy/components/cell/index.js +1 -0
  96. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +6 -1
  97. package/legacy/components/containers/GridRootStyles.js +3 -3
  98. package/legacy/components/panel/filterPanel/GridFilterForm.js +9 -4
  99. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  100. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  101. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +22 -7
  102. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +24 -7
  103. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  104. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  105. package/legacy/components/toolbar/GridToolbarExport.js +20 -10
  106. package/legacy/constants/gridClasses.js +1 -1
  107. package/legacy/constants/localeTextConstants.js +8 -1
  108. package/legacy/hooks/features/columns/useGridColumnSpanning.js +9 -7
  109. package/legacy/hooks/features/columns/useGridColumns.js +13 -8
  110. package/legacy/hooks/features/dimensions/useGridDimensions.js +27 -15
  111. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  112. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +16 -8
  113. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  114. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +22 -14
  115. package/legacy/hooks/features/export/utils.js +9 -2
  116. package/legacy/hooks/features/filter/gridFilterUtils.js +6 -0
  117. package/legacy/hooks/features/filter/useGridFilter.js +30 -5
  118. package/legacy/hooks/features/pagination/useGridPage.js +4 -3
  119. package/legacy/hooks/features/pagination/useGridPageSize.js +4 -3
  120. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
  121. package/legacy/hooks/features/rows/useGridRows.js +1 -1
  122. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  123. package/legacy/hooks/features/selection/useGridSelection.js +26 -12
  124. package/legacy/hooks/features/sorting/gridSortingUtils.js +11 -12
  125. package/legacy/hooks/features/sorting/useGridSorting.js +34 -6
  126. package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -1
  127. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +22 -12
  128. package/legacy/hooks/utils/useGridApiContext.js +1 -1
  129. package/legacy/hooks/utils/useGridNativeEventListener.js +1 -1
  130. package/legacy/hooks/utils/useGridRootProps.js +1 -1
  131. package/legacy/index.js +1 -1
  132. package/legacy/internals/index.js +2 -2
  133. package/legacy/locales/arSD.js +7 -0
  134. package/legacy/locales/bgBG.js +7 -0
  135. package/legacy/locales/csCZ.js +7 -0
  136. package/legacy/locales/daDK.js +7 -0
  137. package/legacy/locales/deDE.js +12 -5
  138. package/legacy/locales/elGR.js +7 -0
  139. package/legacy/locales/esES.js +7 -0
  140. package/legacy/locales/faIR.js +7 -0
  141. package/legacy/locales/fiFI.js +7 -0
  142. package/legacy/locales/frFR.js +17 -10
  143. package/legacy/locales/heIL.js +8 -1
  144. package/legacy/locales/huHU.js +7 -0
  145. package/legacy/locales/index.js +4 -1
  146. package/legacy/locales/itIT.js +7 -0
  147. package/legacy/locales/jaJP.js +8 -1
  148. package/legacy/locales/koKR.js +7 -0
  149. package/legacy/locales/nbNO.js +8 -1
  150. package/legacy/locales/nlNL.js +21 -14
  151. package/legacy/locales/plPL.js +7 -0
  152. package/legacy/locales/ptBR.js +17 -10
  153. package/legacy/locales/roRO.js +135 -0
  154. package/legacy/locales/ruRU.js +7 -0
  155. package/legacy/locales/skSK.js +22 -15
  156. package/legacy/locales/svSE.js +8 -1
  157. package/legacy/locales/trTR.js +7 -0
  158. package/legacy/locales/ukUA.js +7 -0
  159. package/legacy/locales/viVN.js +7 -0
  160. package/legacy/locales/zhCN.js +7 -0
  161. package/legacy/locales/zhTW.js +135 -0
  162. package/legacy/models/events/gridEvents.js +1 -0
  163. package/legacy/utils/keyboardUtils.js +4 -3
  164. package/locales/arSD.js +7 -0
  165. package/locales/bgBG.js +7 -0
  166. package/locales/csCZ.js +7 -0
  167. package/locales/daDK.js +7 -0
  168. package/locales/deDE.js +12 -5
  169. package/locales/elGR.js +7 -0
  170. package/locales/esES.js +7 -0
  171. package/locales/faIR.js +7 -0
  172. package/locales/fiFI.js +7 -0
  173. package/locales/frFR.js +17 -10
  174. package/locales/heIL.js +8 -1
  175. package/locales/huHU.js +7 -0
  176. package/locales/index.d.ts +3 -0
  177. package/locales/index.js +4 -1
  178. package/locales/itIT.js +7 -0
  179. package/locales/jaJP.js +8 -1
  180. package/locales/koKR.js +7 -0
  181. package/locales/nbNO.js +8 -1
  182. package/locales/nlNL.js +21 -14
  183. package/locales/plPL.js +7 -0
  184. package/locales/ptBR.js +17 -10
  185. package/locales/roRO.d.ts +2 -0
  186. package/locales/roRO.js +123 -0
  187. package/locales/ruRU.js +7 -0
  188. package/locales/skSK.js +22 -15
  189. package/locales/svSE.js +8 -1
  190. package/locales/trTR.js +7 -0
  191. package/locales/ukUA.js +7 -0
  192. package/locales/viVN.js +7 -0
  193. package/locales/zhCN.js +7 -0
  194. package/locales/zhTW.d.ts +2 -0
  195. package/locales/zhTW.js +123 -0
  196. package/models/api/gridColumnSpanning.d.ts +2 -0
  197. package/models/api/gridLocaleTextApi.d.ts +8 -2
  198. package/models/api/gridSelectionApi.d.ts +6 -0
  199. package/models/events/gridEvents.d.ts +1 -0
  200. package/models/events/gridEvents.js +1 -0
  201. package/models/gridFilterOperator.d.ts +6 -0
  202. package/models/gridRows.d.ts +10 -1
  203. package/models/params/gridCellParams.d.ts +4 -4
  204. package/modern/DataGrid/DataGrid.js +4 -4
  205. package/modern/DataGrid/useDataGridComponent.js +1 -1
  206. package/modern/colDef/gridActionsColDef.js +2 -0
  207. package/modern/colDef/gridBooleanColDef.js +3 -1
  208. package/modern/colDef/gridCheckboxSelectionColDef.js +2 -0
  209. package/modern/colDef/gridDateOperators.js +4 -2
  210. package/modern/colDef/gridNumericOperators.js +4 -2
  211. package/modern/colDef/gridStringColDef.js +6 -0
  212. package/modern/colDef/gridStringOperators.js +15 -8
  213. package/modern/components/GridRow.js +1 -1
  214. package/modern/components/base/GridOverlays.js +4 -1
  215. package/modern/components/cell/GridBooleanCell.js +93 -2
  216. package/modern/components/cell/GridEditDateCell.js +5 -1
  217. package/modern/components/cell/index.js +1 -0
  218. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
  219. package/modern/components/containers/GridRootStyles.js +10 -0
  220. package/modern/components/panel/filterPanel/GridFilterForm.js +11 -4
  221. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  222. package/modern/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  223. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -8
  224. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +22 -8
  225. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  226. package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  227. package/modern/components/toolbar/GridToolbarExport.js +20 -10
  228. package/modern/constants/gridClasses.js +1 -1
  229. package/modern/constants/localeTextConstants.js +8 -1
  230. package/modern/hooks/features/columns/useGridColumnSpanning.js +9 -7
  231. package/modern/hooks/features/columns/useGridColumns.js +10 -5
  232. package/modern/hooks/features/dimensions/useGridDimensions.js +28 -15
  233. package/modern/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  234. package/modern/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  235. package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  236. package/modern/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  237. package/modern/hooks/features/export/utils.js +5 -2
  238. package/modern/hooks/features/filter/gridFilterUtils.js +6 -0
  239. package/modern/hooks/features/filter/useGridFilter.js +25 -4
  240. package/modern/hooks/features/pagination/useGridPage.js +4 -3
  241. package/modern/hooks/features/pagination/useGridPageSize.js +4 -3
  242. package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +8 -4
  243. package/modern/hooks/features/rows/useGridRows.js +1 -1
  244. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  245. package/modern/hooks/features/selection/useGridSelection.js +22 -10
  246. package/modern/hooks/features/sorting/gridSortingUtils.js +10 -11
  247. package/modern/hooks/features/sorting/useGridSorting.js +30 -6
  248. package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
  249. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +13 -7
  250. package/modern/hooks/utils/useGridApiContext.js +1 -1
  251. package/modern/hooks/utils/useGridNativeEventListener.js +1 -1
  252. package/modern/hooks/utils/useGridRootProps.js +1 -1
  253. package/modern/index.js +1 -1
  254. package/modern/internals/index.js +2 -2
  255. package/modern/locales/arSD.js +7 -0
  256. package/modern/locales/bgBG.js +7 -0
  257. package/modern/locales/csCZ.js +7 -0
  258. package/modern/locales/daDK.js +7 -0
  259. package/modern/locales/deDE.js +12 -5
  260. package/modern/locales/elGR.js +7 -0
  261. package/modern/locales/esES.js +7 -0
  262. package/modern/locales/faIR.js +7 -0
  263. package/modern/locales/fiFI.js +7 -0
  264. package/modern/locales/frFR.js +17 -10
  265. package/modern/locales/heIL.js +8 -1
  266. package/modern/locales/huHU.js +7 -0
  267. package/modern/locales/index.js +4 -1
  268. package/modern/locales/itIT.js +7 -0
  269. package/modern/locales/jaJP.js +8 -1
  270. package/modern/locales/koKR.js +7 -0
  271. package/modern/locales/nbNO.js +8 -1
  272. package/modern/locales/nlNL.js +21 -14
  273. package/modern/locales/plPL.js +7 -0
  274. package/modern/locales/ptBR.js +17 -10
  275. package/modern/locales/roRO.js +123 -0
  276. package/modern/locales/ruRU.js +7 -0
  277. package/modern/locales/skSK.js +22 -15
  278. package/modern/locales/svSE.js +8 -1
  279. package/modern/locales/trTR.js +7 -0
  280. package/modern/locales/ukUA.js +7 -0
  281. package/modern/locales/viVN.js +7 -0
  282. package/modern/locales/zhCN.js +7 -0
  283. package/modern/locales/zhTW.js +123 -0
  284. package/modern/models/events/gridEvents.js +1 -0
  285. package/modern/utils/keyboardUtils.js +4 -3
  286. package/node/DataGrid/DataGrid.js +4 -4
  287. package/node/DataGrid/useDataGridComponent.js +1 -1
  288. package/node/colDef/gridActionsColDef.js +2 -0
  289. package/node/colDef/gridBooleanColDef.js +3 -1
  290. package/node/colDef/gridCheckboxSelectionColDef.js +2 -0
  291. package/node/colDef/gridDateOperators.js +4 -2
  292. package/node/colDef/gridNumericOperators.js +4 -2
  293. package/node/colDef/gridStringColDef.js +5 -0
  294. package/node/colDef/gridStringOperators.js +15 -8
  295. package/node/components/GridRow.js +1 -1
  296. package/node/components/base/GridOverlays.js +4 -1
  297. package/node/components/cell/GridBooleanCell.js +93 -2
  298. package/node/components/cell/GridEditDateCell.js +7 -1
  299. package/node/components/cell/index.js +13 -0
  300. package/node/components/columnSelection/GridCellCheckboxRenderer.js +7 -1
  301. package/node/components/containers/GridRootStyles.js +10 -0
  302. package/node/components/panel/filterPanel/GridFilterForm.js +9 -4
  303. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  304. package/node/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  305. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +31 -15
  306. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +33 -15
  307. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  308. package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  309. package/node/components/toolbar/GridToolbarExport.js +16 -10
  310. package/node/constants/gridClasses.js +1 -1
  311. package/node/constants/localeTextConstants.js +8 -1
  312. package/node/hooks/features/columns/useGridColumnSpanning.js +9 -7
  313. package/node/hooks/features/columns/useGridColumns.js +13 -6
  314. package/node/hooks/features/dimensions/useGridDimensions.js +28 -15
  315. package/node/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  316. package/node/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  317. package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  318. package/node/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  319. package/node/hooks/features/export/utils.js +10 -2
  320. package/node/hooks/features/filter/gridFilterUtils.js +7 -0
  321. package/node/hooks/features/filter/useGridFilter.js +30 -5
  322. package/node/hooks/features/pagination/useGridPage.js +4 -3
  323. package/node/hooks/features/pagination/useGridPageSize.js +4 -3
  324. package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
  325. package/node/hooks/features/rows/useGridRows.js +1 -1
  326. package/node/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  327. package/node/hooks/features/selection/useGridSelection.js +24 -10
  328. package/node/hooks/features/sorting/gridSortingUtils.js +10 -11
  329. package/node/hooks/features/sorting/useGridSorting.js +34 -6
  330. package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
  331. package/node/hooks/features/virtualization/useGridVirtualScroller.js +17 -7
  332. package/node/hooks/utils/useGridApiContext.js +1 -1
  333. package/node/hooks/utils/useGridNativeEventListener.js +1 -1
  334. package/node/hooks/utils/useGridRootProps.js +1 -1
  335. package/node/index.js +1 -1
  336. package/node/internals/index.js +18 -0
  337. package/node/locales/arSD.js +7 -0
  338. package/node/locales/bgBG.js +7 -0
  339. package/node/locales/csCZ.js +7 -0
  340. package/node/locales/daDK.js +7 -0
  341. package/node/locales/deDE.js +12 -5
  342. package/node/locales/elGR.js +7 -0
  343. package/node/locales/esES.js +7 -0
  344. package/node/locales/faIR.js +7 -0
  345. package/node/locales/fiFI.js +7 -0
  346. package/node/locales/frFR.js +17 -10
  347. package/node/locales/heIL.js +8 -1
  348. package/node/locales/huHU.js +7 -0
  349. package/node/locales/index.js +39 -0
  350. package/node/locales/itIT.js +7 -0
  351. package/node/locales/jaJP.js +8 -1
  352. package/node/locales/koKR.js +7 -0
  353. package/node/locales/nbNO.js +8 -1
  354. package/node/locales/nlNL.js +21 -14
  355. package/node/locales/plPL.js +7 -0
  356. package/node/locales/ptBR.js +17 -10
  357. package/node/locales/roRO.js +133 -0
  358. package/node/locales/ruRU.js +7 -0
  359. package/node/locales/skSK.js +22 -15
  360. package/node/locales/svSE.js +8 -1
  361. package/node/locales/trTR.js +7 -0
  362. package/node/locales/ukUA.js +7 -0
  363. package/node/locales/viVN.js +7 -0
  364. package/node/locales/zhCN.js +7 -0
  365. package/node/locales/zhTW.js +133 -0
  366. package/node/models/events/gridEvents.js +1 -0
  367. package/node/utils/keyboardUtils.js +4 -3
  368. package/package.json +3 -3
  369. package/utils/getGridLocalization.d.ts +1 -1
  370. package/utils/keyboardUtils.js +4 -3
@@ -0,0 +1,123 @@
1
+ import { roRO as roROCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const roROGrid = {
4
+ // Root
5
+ noRowsLabel: 'Lipsă date',
6
+ noResultsOverlayLabel: 'Nu au fost găsite rezultate.',
7
+ errorOverlayDefaultLabel: 'A apărut o eroare neașteptată.',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: 'Înălțime rând',
10
+ toolbarDensityLabel: 'Înălțime rând',
11
+ toolbarDensityCompact: 'Compact',
12
+ toolbarDensityStandard: 'Standard',
13
+ toolbarDensityComfortable: 'Lat',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: 'Coloane',
16
+ toolbarColumnsLabel: 'Afișează selecție coloane',
17
+ // Filters toolbar button text
18
+ toolbarFilters: 'Filtru',
19
+ toolbarFiltersLabel: 'Afișează filtru',
20
+ toolbarFiltersTooltipHide: 'Ascunde filtru',
21
+ toolbarFiltersTooltipShow: 'Afișează filtru',
22
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
23
+ // Quick filter toolbar field
24
+ toolbarQuickFilterPlaceholder: 'Căutare...',
25
+ toolbarQuickFilterLabel: 'Căutare',
26
+ toolbarQuickFilterDeleteIconLabel: 'Ștergere',
27
+ // Export selector toolbar button text
28
+ toolbarExport: 'Export',
29
+ toolbarExportLabel: 'Export',
30
+ toolbarExportCSV: 'Download în format CSV',
31
+ toolbarExportPrint: 'Printare',
32
+ toolbarExportExcel: 'Download în format Excel',
33
+ // Columns panel text
34
+ columnsPanelTextFieldLabel: 'Găsește coloana',
35
+ columnsPanelTextFieldPlaceholder: 'Titlu coloană',
36
+ columnsPanelDragIconLabel: 'Resortare coloană',
37
+ columnsPanelShowAllButton: 'Afișează tot',
38
+ columnsPanelHideAllButton: 'Ascunde tot',
39
+ // Filter panel text
40
+ filterPanelAddFilter: 'Adăugare filtru',
41
+ filterPanelDeleteIconLabel: 'Ștergere',
42
+ filterPanelLinkOperator: 'Operatori logici',
43
+ filterPanelOperators: 'Operatori',
44
+ // TODO v6: rename to filterPanelOperator
45
+ filterPanelOperatorAnd: 'Și',
46
+ filterPanelOperatorOr: 'Sau',
47
+ filterPanelColumns: 'Coloane',
48
+ filterPanelInputLabel: 'Valoare',
49
+ filterPanelInputPlaceholder: 'Filtrare valoare',
50
+ // Filter operators text
51
+ filterOperatorContains: 'conține',
52
+ filterOperatorEquals: 'este egal cu',
53
+ filterOperatorStartsWith: 'începe cu',
54
+ filterOperatorEndsWith: 'se termină cu',
55
+ filterOperatorIs: 'este',
56
+ filterOperatorNot: 'nu este',
57
+ filterOperatorAfter: 'este după',
58
+ filterOperatorOnOrAfter: 'este la sau după',
59
+ filterOperatorBefore: 'este înainte de',
60
+ filterOperatorOnOrBefore: 'este la sau înainte de',
61
+ filterOperatorIsEmpty: 'este gol',
62
+ filterOperatorIsNotEmpty: 'nu este gol',
63
+ filterOperatorIsAnyOf: 'este una din valori',
64
+ // Filter values text
65
+ filterValueAny: 'Aleatoriu',
66
+ filterValueTrue: 'Da',
67
+ filterValueFalse: 'Nu',
68
+ // Column menu text
69
+ columnMenuLabel: 'Meniu',
70
+ columnMenuShowColumns: 'Afișează toate coloanele',
71
+ columnMenuFilter: 'Filtru',
72
+ columnMenuHideColumn: 'Ascunde',
73
+ columnMenuUnsort: 'Dezactivare sortare',
74
+ columnMenuSortAsc: 'Sortează crescător',
75
+ columnMenuSortDesc: 'Sortează descrescător',
76
+ // Column header text
77
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
78
+ columnHeaderFiltersLabel: 'Afișează filtru',
79
+ columnHeaderSortIconLabel: 'Sortare',
80
+ // Rows selected footer text
81
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} Înregistrări selectate` : `${count.toLocaleString()} Înregistrare selectată`,
82
+ // Total row amount footer text
83
+ footerTotalRows: 'Total:',
84
+ // Total visible row amount footer text
85
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} din ${totalCount.toLocaleString()}`,
86
+ // Checkbox selection text
87
+ checkboxSelectionHeaderName: 'Checkbox Selecție',
88
+ checkboxSelectionSelectAllRows: 'Selectare toate rândurile',
89
+ checkboxSelectionUnselectAllRows: 'Deselectare toate rândurile',
90
+ checkboxSelectionSelectRow: 'Selectare rând',
91
+ checkboxSelectionUnselectRow: 'Deselectare rând',
92
+ // Boolean cell text
93
+ booleanCellTrueLabel: 'Da',
94
+ booleanCellFalseLabel: 'Nu',
95
+ // Actions cell more text
96
+ actionsCellMore: 'Mai multe',
97
+ // Column pinning text
98
+ pinToLeft: 'Fixare în stânga',
99
+ pinToRight: 'Fixare în dreapta',
100
+ unpin: 'Anulare fixare',
101
+ // Tree Data
102
+ treeDataGroupingHeaderName: 'Grup',
103
+ treeDataExpand: 'Afișare copii',
104
+ treeDataCollapse: 'Ascundere copii',
105
+ // Grouping columns
106
+ groupingColumnHeaderName: 'Grupare',
107
+ groupColumn: name => `Grupare după ${name}`,
108
+ unGroupColumn: name => `Anulare Grupare după ${name}`,
109
+ // Master/detail
110
+ detailPanelToggle: 'Comutare panou detalii',
111
+ expandDetailPanel: 'Extindere',
112
+ collapseDetailPanel: 'Restrângere',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: 'Reordonare rânduri' // Aggregation
115
+ // aggregationMenuItemHeader: 'Aggregation',
116
+ // aggregationFunctionLabelSum: 'sum',
117
+ // aggregationFunctionLabelAvg: 'avg',
118
+ // aggregationFunctionLabelMin: 'min',
119
+ // aggregationFunctionLabelMax: 'max',
120
+ // aggregationFunctionLabelSize: 'size',
121
+
122
+ };
123
+ export const roRO = getGridLocalization(roROGrid, roROCore);
package/locales/ruRU.js CHANGED
@@ -144,6 +144,13 @@ const ruRUGrid = {
144
144
  expandDetailPanel: 'Развернуть',
145
145
  collapseDetailPanel: 'Свернуть' // Row reordering text
146
146
  // rowReorderingHeaderName: 'Row reordering',
147
+ // Aggregation
148
+ // aggregationMenuItemHeader: 'Aggregation',
149
+ // aggregationFunctionLabelSum: 'sum',
150
+ // aggregationFunctionLabelAvg: 'avg',
151
+ // aggregationFunctionLabelMin: 'min',
152
+ // aggregationFunctionLabelMax: 'max',
153
+ // aggregationFunctionLabelSize: 'size',
147
154
 
148
155
  };
149
156
  export const ruRU = getGridLocalization(ruRUGrid, ruRUCore);
package/locales/skSK.js CHANGED
@@ -31,15 +31,15 @@ const skSKGrid = {
31
31
  return `${count} ${pluralForm}`;
32
32
  },
33
33
  // Quick filter toolbar field
34
- // toolbarQuickFilterPlaceholder: 'Search...',
35
- // toolbarQuickFilterLabel: 'Search',
36
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
34
+ toolbarQuickFilterPlaceholder: 'Vyhľadať...',
35
+ toolbarQuickFilterLabel: 'Vyhľadať',
36
+ toolbarQuickFilterDeleteIconLabel: 'Vymazať',
37
37
  // Export selector toolbar button text
38
38
  toolbarExport: 'Export',
39
39
  toolbarExportLabel: 'Export',
40
40
  toolbarExportCSV: 'Stiahnuť ako CSV',
41
41
  toolbarExportPrint: 'Vytlačiť',
42
- // toolbarExportExcel: 'Download as Excel',
42
+ toolbarExportExcel: 'Stiahnuť ako Excel',
43
43
  // Columns panel text
44
44
  columnsPanelTextFieldLabel: 'Nájsť stĺpec',
45
45
  columnsPanelTextFieldPlaceholder: 'Názov stĺpca',
@@ -49,7 +49,7 @@ const skSKGrid = {
49
49
  // Filter panel text
50
50
  filterPanelAddFilter: 'Pridať filter',
51
51
  filterPanelDeleteIconLabel: 'Odstrániť',
52
- // filterPanelLinkOperator: 'Logic operator',
52
+ filterPanelLinkOperator: 'Logický operátor',
53
53
  filterPanelOperators: 'Operátory',
54
54
  // TODO v6: rename to filterPanelOperator
55
55
  filterPanelOperatorAnd: 'A',
@@ -70,7 +70,7 @@ const skSKGrid = {
70
70
  filterOperatorOnOrBefore: 'je na alebo skôr',
71
71
  filterOperatorIsEmpty: 'je prázdny',
72
72
  filterOperatorIsNotEmpty: 'nie je prázdny',
73
- // filterOperatorIsAnyOf: 'is any of',
73
+ filterOperatorIsAnyOf: 'je jeden z',
74
74
  // Filter values text
75
75
  filterValueAny: 'akýkoľvek',
76
76
  filterValueTrue: 'áno',
@@ -120,10 +120,10 @@ const skSKGrid = {
120
120
  },
121
121
  // Checkbox selection text
122
122
  checkboxSelectionHeaderName: 'Výber riadku',
123
- // checkboxSelectionSelectAllRows: 'Select all rows',
124
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
125
- // checkboxSelectionSelectRow: 'Select row',
126
- // checkboxSelectionUnselectRow: 'Unselect row',
123
+ checkboxSelectionSelectAllRows: 'Vybrať všetky riadky',
124
+ checkboxSelectionUnselectAllRows: 'Zrušiť výber všetkých riadkov',
125
+ checkboxSelectionSelectRow: 'Vyber riadok',
126
+ checkboxSelectionUnselectRow: 'Zruš výber riadku',
127
127
  // Boolean cell text
128
128
  booleanCellTrueLabel: 'áno',
129
129
  booleanCellFalseLabel: 'nie',
@@ -140,12 +140,19 @@ const skSKGrid = {
140
140
  // Grouping columns
141
141
  groupingColumnHeaderName: 'Skupina',
142
142
  groupColumn: name => `Zoskupiť podľa ${name}`,
143
- unGroupColumn: name => `Prestať zoskupovať podľa ${name}` // Master/detail
144
- // detailPanelToggle: 'Detail panel toggle',
145
- // expandDetailPanel: 'Expand',
146
- // collapseDetailPanel: 'Collapse',
143
+ unGroupColumn: name => `Prestať zoskupovať podľa ${name}`,
144
+ // Master/detail
145
+ detailPanelToggle: 'Prepnúť detail panelu',
146
+ expandDetailPanel: 'Rozbaliť',
147
+ collapseDetailPanel: 'Zbaliť',
147
148
  // Row reordering text
148
- // rowReorderingHeaderName: 'Row reordering',
149
+ rowReorderingHeaderName: 'Preusporiadávanie riadkov' // Aggregation
150
+ // aggregationMenuItemHeader: 'Aggregation',
151
+ // aggregationFunctionLabelSum: 'sum',
152
+ // aggregationFunctionLabelAvg: 'avg',
153
+ // aggregationFunctionLabelMin: 'min',
154
+ // aggregationFunctionLabelMax: 'max',
155
+ // aggregationFunctionLabelSize: 'size',
149
156
 
150
157
  };
151
158
  export const skSK = getGridLocalization(skSKGrid, skSKCore);
package/locales/svSE.js CHANGED
@@ -111,6 +111,13 @@ const svSEGrid = {
111
111
  expandDetailPanel: 'Expandera',
112
112
  collapseDetailPanel: 'Kollapsa',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'Ordna om rader'
114
+ rowReorderingHeaderName: 'Ordna om rader' // Aggregation
115
+ // aggregationMenuItemHeader: 'Aggregation',
116
+ // aggregationFunctionLabelSum: 'sum',
117
+ // aggregationFunctionLabelAvg: 'avg',
118
+ // aggregationFunctionLabelMin: 'min',
119
+ // aggregationFunctionLabelMax: 'max',
120
+ // aggregationFunctionLabelSize: 'size',
121
+
115
122
  };
116
123
  export const svSE = getGridLocalization(svSEGrid, svSECore);
package/locales/trTR.js CHANGED
@@ -111,6 +111,13 @@ const trTRGrid = {
111
111
  expandDetailPanel: 'Genişlet',
112
112
  collapseDetailPanel: 'Gizle' // Row reordering text
113
113
  // rowReorderingHeaderName: 'Row reordering',
114
+ // Aggregation
115
+ // aggregationMenuItemHeader: 'Aggregation',
116
+ // aggregationFunctionLabelSum: 'sum',
117
+ // aggregationFunctionLabelAvg: 'avg',
118
+ // aggregationFunctionLabelMin: 'min',
119
+ // aggregationFunctionLabelMax: 'max',
120
+ // aggregationFunctionLabelSize: 'size',
114
121
 
115
122
  };
116
123
  export const trTR = getGridLocalization(trTRGrid, trTRCore);
package/locales/ukUA.js CHANGED
@@ -137,6 +137,13 @@ const ukUAGrid = {
137
137
  // collapseDetailPanel: 'Collapse',
138
138
  // Row reordering text
139
139
  // rowReorderingHeaderName: 'Row reordering',
140
+ // Aggregation
141
+ // aggregationMenuItemHeader: 'Aggregation',
142
+ // aggregationFunctionLabelSum: 'sum',
143
+ // aggregationFunctionLabelAvg: 'avg',
144
+ // aggregationFunctionLabelMin: 'min',
145
+ // aggregationFunctionLabelMax: 'max',
146
+ // aggregationFunctionLabelSize: 'size',
140
147
 
141
148
  };
142
149
  export const ukUA = getGridLocalization(ukUAGrid, ukUACore);
package/locales/viVN.js CHANGED
@@ -111,6 +111,13 @@ const viVNGrid = {
111
111
  // collapseDetailPanel: 'Collapse',
112
112
  // Row reordering text
113
113
  // rowReorderingHeaderName: 'Row reordering',
114
+ // Aggregation
115
+ // aggregationMenuItemHeader: 'Aggregation',
116
+ // aggregationFunctionLabelSum: 'sum',
117
+ // aggregationFunctionLabelAvg: 'avg',
118
+ // aggregationFunctionLabelMin: 'min',
119
+ // aggregationFunctionLabelMax: 'max',
120
+ // aggregationFunctionLabelSize: 'size',
114
121
 
115
122
  };
116
123
  export const viVN = getGridLocalization(viVNGrid, viVNCore);
package/locales/zhCN.js CHANGED
@@ -111,6 +111,13 @@ const zhCNGrid = {
111
111
  // collapseDetailPanel: 'Collapse',
112
112
  // Row reordering text
113
113
  // rowReorderingHeaderName: 'Row reordering',
114
+ // Aggregation
115
+ // aggregationMenuItemHeader: 'Aggregation',
116
+ // aggregationFunctionLabelSum: 'sum',
117
+ // aggregationFunctionLabelAvg: 'avg',
118
+ // aggregationFunctionLabelMin: 'min',
119
+ // aggregationFunctionLabelMax: 'max',
120
+ // aggregationFunctionLabelSize: 'size',
114
121
 
115
122
  };
116
123
  export const zhCN = getGridLocalization(zhCNGrid, zhCNCore);
@@ -0,0 +1,2 @@
1
+ import { Localization } from '../utils/getGridLocalization';
2
+ export declare const zhTW: Localization;
@@ -0,0 +1,123 @@
1
+ import { zhTW as zhTWCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const zhTWGrid = {
4
+ // Root
5
+ noRowsLabel: '沒有資料',
6
+ noResultsOverlayLabel: '沒有結果',
7
+ errorOverlayDefaultLabel: '發生錯誤',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: '表格密度',
10
+ toolbarDensityLabel: '表格密度',
11
+ toolbarDensityCompact: '緊湊',
12
+ toolbarDensityStandard: '標準',
13
+ toolbarDensityComfortable: '舒適',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: '欄位',
16
+ toolbarColumnsLabel: '選擇欄位',
17
+ // Filters toolbar button text
18
+ toolbarFilters: '篩選器',
19
+ toolbarFiltersLabel: '顯示篩選器',
20
+ toolbarFiltersTooltipHide: '隱藏篩選器',
21
+ toolbarFiltersTooltipShow: '顯示篩選器',
22
+ toolbarFiltersTooltipActive: count => `${count} 個篩選器`,
23
+ // Quick filter toolbar field
24
+ toolbarQuickFilterPlaceholder: '搜尋...',
25
+ toolbarQuickFilterLabel: '搜尋',
26
+ toolbarQuickFilterDeleteIconLabel: '清除',
27
+ // Export selector toolbar button text
28
+ toolbarExport: '匯出',
29
+ toolbarExportLabel: '匯出',
30
+ toolbarExportCSV: '匯出 CSV',
31
+ toolbarExportPrint: '列印',
32
+ toolbarExportExcel: '匯出 Excel',
33
+ // Columns panel text
34
+ columnsPanelTextFieldLabel: '欄位搜尋',
35
+ columnsPanelTextFieldPlaceholder: '欄位名稱',
36
+ columnsPanelDragIconLabel: '排序欄位',
37
+ columnsPanelShowAllButton: '顯示所有',
38
+ columnsPanelHideAllButton: '隱藏所有',
39
+ // Filter panel text
40
+ filterPanelAddFilter: '增加篩選器',
41
+ filterPanelDeleteIconLabel: '刪除',
42
+ filterPanelLinkOperator: '邏輯運算子',
43
+ filterPanelOperators: '運算子',
44
+ // TODO v6: rename to filterPanelOperator
45
+ filterPanelOperatorAnd: '且',
46
+ filterPanelOperatorOr: '或',
47
+ filterPanelColumns: '欄位',
48
+ filterPanelInputLabel: '值',
49
+ filterPanelInputPlaceholder: '篩選值',
50
+ // Filter operators text
51
+ filterOperatorContains: '包含',
52
+ filterOperatorEquals: '等於',
53
+ filterOperatorStartsWith: '以...開頭',
54
+ filterOperatorEndsWith: '以...結束',
55
+ filterOperatorIs: '為',
56
+ filterOperatorNot: '不為',
57
+ filterOperatorAfter: '...之後',
58
+ filterOperatorOnOrAfter: '...(含)之後',
59
+ filterOperatorBefore: '...之前',
60
+ filterOperatorOnOrBefore: '...(含)之前',
61
+ filterOperatorIsEmpty: '為空',
62
+ filterOperatorIsNotEmpty: '不為空',
63
+ filterOperatorIsAnyOf: '是其中之一',
64
+ // Filter values text
65
+ filterValueAny: '任何值',
66
+ filterValueTrue: '真',
67
+ filterValueFalse: '假',
68
+ // Column menu text
69
+ columnMenuLabel: '選單',
70
+ columnMenuShowColumns: '顯示欄位',
71
+ columnMenuFilter: '篩選器',
72
+ columnMenuHideColumn: '隱藏',
73
+ columnMenuUnsort: '預設排序',
74
+ columnMenuSortAsc: '升序',
75
+ columnMenuSortDesc: '降序',
76
+ // Column header text
77
+ columnHeaderFiltersTooltipActive: count => `${count} 個篩選器`,
78
+ columnHeaderFiltersLabel: '顯示篩選器',
79
+ columnHeaderSortIconLabel: '排序',
80
+ // Rows selected footer text
81
+ footerRowSelected: count => `已選取 ${count.toLocaleString()} 個`,
82
+ // Total row amount footer text
83
+ footerTotalRows: '總數:',
84
+ // Total visible row amount footer text
85
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
86
+ // Checkbox selection text
87
+ checkboxSelectionHeaderName: '核取方塊',
88
+ checkboxSelectionSelectAllRows: '全選',
89
+ checkboxSelectionUnselectAllRows: '取消全選',
90
+ checkboxSelectionSelectRow: '選取',
91
+ checkboxSelectionUnselectRow: '取消選取',
92
+ // Boolean cell text
93
+ booleanCellTrueLabel: '真',
94
+ booleanCellFalseLabel: '假',
95
+ // Actions cell more text
96
+ actionsCellMore: '查看更多',
97
+ // Column pinning text
98
+ pinToLeft: '釘選在左側',
99
+ pinToRight: '釘選在右側',
100
+ unpin: '取消釘選',
101
+ // Tree Data
102
+ treeDataGroupingHeaderName: '群組',
103
+ treeDataExpand: '查看子項目',
104
+ treeDataCollapse: '隱藏子項目',
105
+ // Grouping columns
106
+ groupingColumnHeaderName: '群組',
107
+ groupColumn: name => `以 ${name} 分組`,
108
+ unGroupColumn: name => `取消以 ${name} 分組`,
109
+ // Master/detail
110
+ detailPanelToggle: '切換顯示詳細資訊',
111
+ expandDetailPanel: '展開',
112
+ collapseDetailPanel: '摺疊',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: '排序' // Aggregation
115
+ // aggregationMenuItemHeader: 'Aggregation',
116
+ // aggregationFunctionLabelSum: 'sum',
117
+ // aggregationFunctionLabelAvg: 'avg',
118
+ // aggregationFunctionLabelMin: 'min',
119
+ // aggregationFunctionLabelMax: 'max',
120
+ // aggregationFunctionLabelSize: 'size',
121
+
122
+ };
123
+ export const zhTW = getGridLocalization(zhTWGrid, zhTWCore);
@@ -1,3 +1,4 @@
1
+ import { GridStateColDef } from '../colDef';
1
2
  import { GridColumnIndex, GridCellColSpanInfo } from '../gridColumnSpanning';
2
3
  import { GridRowId } from '../gridRows';
3
4
  /**
@@ -24,5 +25,6 @@ export interface GridColumnSpanningApi {
24
25
  rowId: GridRowId;
25
26
  minFirstColumn: number;
26
27
  maxLastColumn: number;
28
+ columns: GridStateColDef[];
27
29
  }) => void;
28
30
  }
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import * as React from 'react';
2
2
  import { ComponentsPropsList } from '@mui/material/styles';
3
3
  /**
4
4
  * Set the types of the texts in the grid.
@@ -90,8 +90,14 @@ export interface GridLocaleText {
90
90
  detailPanelToggle: string;
91
91
  expandDetailPanel: string;
92
92
  collapseDetailPanel: string;
93
- MuiTablePagination: Omit<ComponentsPropsList['MuiTablePagination'], 'page' | 'count' | 'onChangePage' | 'rowsPerPage' | 'onPageChange'>;
94
93
  rowReorderingHeaderName: string;
94
+ aggregationMenuItemHeader: string;
95
+ aggregationFunctionLabelSum: string;
96
+ aggregationFunctionLabelAvg: string;
97
+ aggregationFunctionLabelMin: string;
98
+ aggregationFunctionLabelMax: string;
99
+ aggregationFunctionLabelSize: string;
100
+ MuiTablePagination: Omit<ComponentsPropsList['MuiTablePagination'], 'page' | 'count' | 'onChangePage' | 'rowsPerPage' | 'onPageChange'>;
95
101
  }
96
102
  export declare type GridTranslationKeys = keyof GridLocaleText;
97
103
  /**
@@ -35,6 +35,12 @@ export interface GridSelectionApi {
35
35
  * @returns {boolean} A boolean indicating if the row is selected.
36
36
  */
37
37
  isRowSelected: (id: GridRowId) => boolean;
38
+ /**
39
+ * Determines if a row can be selected or not.
40
+ * @param {GridRowId} id The id of the row.
41
+ * @returns {boolean} A boolean indicating if the row can be selected.
42
+ */
43
+ isRowSelectable: (id: GridRowId) => boolean;
38
44
  /**
39
45
  * Returns an array of the selected rows.
40
46
  * @returns {Map<GridRowId, GridRowModel>} A `Map` with the selected rows.
@@ -53,6 +53,7 @@ declare enum GridEvents {
53
53
  pageChange = "pageChange",
54
54
  pageSizeChange = "pageSizeChange",
55
55
  rowGroupingModelChange = "rowGroupingModelChange",
56
+ aggregationModelChange = "aggregationModelChange",
56
57
  rowsScroll = "rowsScroll",
57
58
  rowsScrollEnd = "rowsScrollEnd",
58
59
  columnSeparatorMouseDown = "columnSeparatorMouseDown",
@@ -54,6 +54,7 @@ var GridEvents;
54
54
  GridEvents["pageChange"] = "pageChange";
55
55
  GridEvents["pageSizeChange"] = "pageSizeChange";
56
56
  GridEvents["rowGroupingModelChange"] = "rowGroupingModelChange";
57
+ GridEvents["aggregationModelChange"] = "aggregationModelChange";
57
58
  GridEvents["rowsScroll"] = "rowsScroll";
58
59
  GridEvents["rowsScrollEnd"] = "rowsScrollEnd";
59
60
  GridEvents["columnSeparatorMouseDown"] = "columnSeparatorMouseDown";
@@ -35,4 +35,10 @@ export interface GridFilterOperator<R extends GridValidRowModel = any, V = any,
35
35
  * The props to pass to the input component in the filter panel for this filter operator.
36
36
  */
37
37
  InputComponentProps?: Record<string, any>;
38
+ /**
39
+ * If `false`, filter operator doesn't require user-entered value to work.
40
+ * Usually should be set to `false` for filter operators that don't have `InputComponent` (for example `isEmpty`)
41
+ * @default true
42
+ */
43
+ requiresFilterValue?: boolean;
38
44
  }
@@ -25,6 +25,10 @@ export interface GridRowTreeNodeConfig {
25
25
  * @default []
26
26
  */
27
27
  children?: GridRowId[];
28
+ /**
29
+ * The id of the footer
30
+ */
31
+ footerId?: GridRowId | null;
28
32
  /**
29
33
  * The row id of the parent (null if this row is a top level row).
30
34
  */
@@ -41,7 +45,7 @@ export interface GridRowTreeNodeConfig {
41
45
  /**
42
46
  * The key used to group the children of this row.
43
47
  */
44
- groupingKey: GridKeyValue;
48
+ groupingKey: GridKeyValue | null;
45
49
  /**
46
50
  * The field used to group the children of this row.
47
51
  * Is `null` if no field has been used to group the children of this row.
@@ -52,6 +56,11 @@ export interface GridRowTreeNodeConfig {
52
56
  * @default false
53
57
  */
54
58
  isAutoGenerated?: boolean;
59
+ /**
60
+ * Position of the row among its sibling.
61
+ * @default 'body'
62
+ */
63
+ position?: 'body' | 'footer';
55
64
  }
56
65
  /**
57
66
  * The grid rows total height and row positions.
@@ -142,7 +142,7 @@ export interface GridValueFormatterParams<V = any> {
142
142
  /**
143
143
  * Object passed as parameter in the column [[GridColDef]] edit cell props change callback.
144
144
  */
145
- export interface GridPreProcessEditCellProps {
145
+ export interface GridPreProcessEditCellProps<V = any, R extends GridValidRowModel = any> {
146
146
  /**
147
147
  * The grid row id.
148
148
  */
@@ -150,11 +150,11 @@ export interface GridPreProcessEditCellProps {
150
150
  /**
151
151
  * The row that is being edited.
152
152
  */
153
- row: GridRowModel;
153
+ row: GridRowModel<R>;
154
154
  /**
155
155
  * The edit cell props.
156
156
  */
157
- props: GridEditCellProps;
157
+ props: GridEditCellProps<V>;
158
158
  /**
159
159
  * Whether the new value is different from the stored value or not.
160
160
  */
@@ -163,5 +163,5 @@ export interface GridPreProcessEditCellProps {
163
163
  * Object containing the props of the other fields.
164
164
  * Only available for row editing and when using the new editing API.
165
165
  */
166
- otherFieldsProps?: Record<string, GridEditCellProps>;
166
+ otherFieldsProps?: Record<string, GridEditCellProps<V>>;
167
167
  }
@@ -86,7 +86,7 @@ DataGridRaw.propTypes = {
86
86
  columns: chainPropTypes(PropTypes.array.isRequired, props => {
87
87
  // @ts-ignore because otherwise `build:api` doesn't work
88
88
  if (props.columns && props.columns.some(column => column.resizable)) {
89
- return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
89
+ return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
90
90
  }
91
91
 
92
92
  return null;
@@ -656,14 +656,14 @@ DataGridRaw.propTypes = {
656
656
  */
657
657
  pageSize: chainPropTypes(PropTypes.number, props => {
658
658
  if (props.pageSize && props.pageSize > MAX_PAGE_SIZE) {
659
- return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
659
+ return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
660
660
  }
661
661
 
662
662
  return null;
663
663
  }),
664
664
  pagination: props => {
665
665
  if (props.pagination === false) {
666
- return new Error(['MUI: `<DataGrid pagination={false} />` is not a valid prop.', 'Infinite scrolling is not available in the MIT version.', '', 'You need to upgrade to the DataGridPro component to disable the pagination.'].join('\n'));
666
+ return new Error(['MUI: `<DataGrid pagination={false} />` is not a valid prop.', 'Infinite scrolling is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination.'].join('\n'));
667
667
  }
668
668
 
669
669
  return null;
@@ -743,7 +743,7 @@ DataGridRaw.propTypes = {
743
743
  */
744
744
  selectionModel: chainPropTypes(PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.array]), props => {
745
745
  if (!props.checkboxSelection && Array.isArray(props.selectionModel) && props.selectionModel.length > 1) {
746
- return new Error([`MUI: \`<DataGrid selectionModel={${JSON.stringify(props.selectionModel)}} />\` is not a valid prop.`, 'selectionModel can only be of 1 item in DataGrid.', '', 'You need to upgrade to the DataGridPro component to unlock multiple selection.'].join('\n'));
746
+ return new Error([`MUI: \`<DataGrid selectionModel={${JSON.stringify(props.selectionModel)}} />\` is not a valid prop.`, 'selectionModel can only be of 1 item in DataGrid.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection.'].join('\n'));
747
747
  }
748
748
 
749
749
  return null;
@@ -58,7 +58,7 @@ export const useDataGridComponent = props => {
58
58
  const useGridEditing = props.experimentalFeatures?.newEditingApi ? useGridEditing_new : useGridEditing_old;
59
59
  useGridEditing(apiRef, props);
60
60
  useGridFocus(apiRef, props);
61
- useGridPreferencesPanel(apiRef);
61
+ useGridPreferencesPanel(apiRef, props);
62
62
  useGridFilter(apiRef, props);
63
63
  useGridSorting(apiRef, props);
64
64
  useGridDensity(apiRef, props);
@@ -5,6 +5,8 @@ export const GRID_ACTIONS_COLUMN_TYPE = 'actions';
5
5
  export const GRID_ACTIONS_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
6
6
  sortable: false,
7
7
  filterable: false,
8
+ // @ts-ignore
9
+ aggregable: false,
8
10
  width: 100,
9
11
  align: 'center',
10
12
  headerAlign: 'center',
@@ -21,5 +21,7 @@ export const GRID_BOOLEAN_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
21
21
  sortComparator: gridNumberComparator,
22
22
  valueFormatter: gridBooleanFormatter,
23
23
  filterOperators: getGridBooleanOperators(),
24
- getApplyQuickFilterFn: undefined
24
+ getApplyQuickFilterFn: undefined,
25
+ // @ts-ignore
26
+ aggregable: false
25
27
  });
@@ -13,6 +13,8 @@ export const GRID_CHECKBOX_SELECTION_COL_DEF = _extends({}, GRID_BOOLEAN_COL_DEF
13
13
  resizable: false,
14
14
  sortable: false,
15
15
  filterable: false,
16
+ // @ts-ignore
17
+ aggregable: false,
16
18
  disableColumnMenu: true,
17
19
  disableReorder: true,
18
20
  disableExport: true,
@@ -91,7 +91,8 @@ export const getGridDateOperators = showTime => [{
91
91
  }) => {
92
92
  return value == null;
93
93
  };
94
- }
94
+ },
95
+ requiresFilterValue: false
95
96
  }, {
96
97
  value: 'isNotEmpty',
97
98
  getApplyFilterFn: () => {
@@ -100,5 +101,6 @@ export const getGridDateOperators = showTime => [{
100
101
  }) => {
101
102
  return value != null;
102
103
  };
103
- }
104
+ },
105
+ requiresFilterValue: false
104
106
  }];