@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
@@ -146,10 +146,15 @@ export const useGridSorting = (apiRef, props) => {
146
146
  * PRE-PROCESSING
147
147
  */
148
148
 
149
- const stateExportPreProcessing = React.useCallback(prevState => {
149
+ const stateExportPreProcessing = React.useCallback((prevState, context) => {
150
150
  const sortModelToExport = gridSortModelSelector(apiRef);
151
+ const shouldExportSortModel = // Always export if the `exportOnlyDirtyModels` property is activated
152
+ !context.exportOnlyDirtyModels || // Always export if the model is controlled
153
+ props.sortModel != null || // Always export if the model has been initialized
154
+ props.initialState?.sorting?.sortModel != null || // Export if the model is not empty
155
+ sortModelToExport.length > 0;
151
156
 
152
- if (sortModelToExport.length === 0) {
157
+ if (!shouldExportSortModel) {
153
158
  return prevState;
154
159
  }
155
160
 
@@ -158,7 +163,7 @@ export const useGridSorting = (apiRef, props) => {
158
163
  sortModel: sortModelToExport
159
164
  }
160
165
  });
161
- }, [apiRef]);
166
+ }, [apiRef, props.sortModel, props.initialState?.sorting?.sortModel]);
162
167
  const stateRestorePreProcessing = React.useCallback((params, context) => {
163
168
  const sortModel = context.stateToRestore.sorting?.sortModel;
164
169
 
@@ -172,12 +177,31 @@ export const useGridSorting = (apiRef, props) => {
172
177
  });
173
178
  }, [apiRef, props.disableMultipleColumnsSorting]);
174
179
  const flatSortingMethod = React.useCallback(params => {
180
+ const rowTree = gridRowTreeSelector(apiRef);
181
+
175
182
  if (!params.sortRowList) {
176
- return gridRowIdsSelector(apiRef);
183
+ const bodyRowIds = [];
184
+ const footerRowIds = [];
185
+ gridRowIdsSelector(apiRef).forEach(rowId => {
186
+ if (rowTree[rowId].position === 'footer') {
187
+ footerRowIds.push(rowId);
188
+ } else {
189
+ bodyRowIds.push(rowId);
190
+ }
191
+ });
192
+ return [...bodyRowIds, ...footerRowIds];
177
193
  }
178
194
 
179
- const rowTree = gridRowTreeSelector(apiRef);
180
- return params.sortRowList(Object.values(rowTree));
195
+ const bodyRows = [];
196
+ const footerRowIds = [];
197
+ Object.values(rowTree).forEach(rowNode => {
198
+ if (rowNode.position === 'footer') {
199
+ footerRowIds.push(rowNode.id);
200
+ } else {
201
+ bodyRows.push(rowNode);
202
+ }
203
+ });
204
+ return [...params.sortRowList(bodyRows), ...footerRowIds];
181
205
  }, [apiRef]);
182
206
  useGridRegisterPipeProcessor(apiRef, 'exportState', stateExportPreProcessing);
183
207
  useGridRegisterPipeProcessor(apiRef, 'restoreState', stateRestorePreProcessing);
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { useGridApiMethod } from '../../utils';
3
3
  export const useGridStatePersistence = apiRef => {
4
- const exportState = React.useCallback(() => {
5
- const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {});
4
+ const exportState = React.useCallback((params = {}) => {
5
+ const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {}, params);
6
6
  return stateToExport;
7
7
  }, [apiRef]);
8
8
  const restoreState = React.useCallback(stateToRestore => {
@@ -86,8 +86,15 @@ export const useGridVirtualScroller = props => {
86
86
  const [containerWidth, setContainerWidth] = React.useState(null);
87
87
  const prevTotalWidth = React.useRef(columnsTotalWidth);
88
88
  const getNearestIndexToRender = React.useCallback(offset => {
89
- const lastMeasuredIndex = Math.max(0, apiRef.current.unstable_getLastMeasuredRowIndex());
90
- const allRowsMeasured = lastMeasuredIndex === Infinity;
89
+ const lastMeasuredIndexRelativeToAllRows = apiRef.current.unstable_getLastMeasuredRowIndex();
90
+ const lastMeasuredIndexRelativeToCurrentPage = lastMeasuredIndexRelativeToAllRows - (currentPage.range?.firstRowIndex || 0);
91
+ const lastMeasuredIndex = Math.max(0, lastMeasuredIndexRelativeToCurrentPage);
92
+ let allRowsMeasured = lastMeasuredIndex === Infinity;
93
+
94
+ if (currentPage.range?.lastRowIndex && !allRowsMeasured) {
95
+ // Check if all rows in this page are already measured
96
+ allRowsMeasured = lastMeasuredIndex >= currentPage.range.lastRowIndex;
97
+ }
91
98
 
92
99
  if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndex] >= offset) {
93
100
  // If all rows were measured (when no row has "auto" as height) or all rows before the offset
@@ -100,7 +107,7 @@ export const useGridVirtualScroller = props => {
100
107
 
101
108
 
102
109
  return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndex);
103
- }, [apiRef, rowsMeta.positions]);
110
+ }, [apiRef, currentPage.range?.firstRowIndex, currentPage.range?.lastRowIndex, rowsMeta.positions]);
104
111
  const computeRenderContext = React.useCallback(() => {
105
112
  if (disableVirtualization) {
106
113
  return {
@@ -302,7 +309,8 @@ export const useGridVirtualScroller = props => {
302
309
  apiRef.current.unstable_calculateColSpan({
303
310
  rowId: row.id,
304
311
  minFirstColumn,
305
- maxLastColumn
312
+ maxLastColumn,
313
+ columns: visibleColumns
306
314
  });
307
315
  }
308
316
 
@@ -334,10 +342,8 @@ export const useGridVirtualScroller = props => {
334
342
 
335
343
  if (selectedRowsLookup[id] == null) {
336
344
  isSelected = false;
337
- } else if (typeof rootProps.isRowSelectable === 'function') {
338
- isSelected = rootProps.isRowSelectable(apiRef.current.getRowParams(id));
339
345
  } else {
340
- isSelected = true;
346
+ isSelected = apiRef.current.isRowSelectable(id);
341
347
  }
342
348
 
343
349
  rows.push( /*#__PURE__*/_jsx(rootProps.components.Row, _extends({
@@ -4,7 +4,7 @@ export function useGridApiContext() {
4
4
  const apiRef = React.useContext(GridApiContext);
5
5
 
6
6
  if (apiRef === undefined) {
7
- throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
7
+ throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
8
8
  }
9
9
 
10
10
  return apiRef;
@@ -20,7 +20,7 @@ export const useGridNativeEventListener = (apiRef, ref, eventName, handler, opti
20
20
  targetElement = ref && ref.current ? ref.current : null;
21
21
  }
22
22
 
23
- if (targetElement && wrapHandler && eventName && !added) {
23
+ if (targetElement && eventName && !added) {
24
24
  logger.debug(`Binding native ${eventName} event`);
25
25
  targetElement.addEventListener(eventName, wrapHandler, options);
26
26
  const boundElem = targetElement;
@@ -4,7 +4,7 @@ export const useGridRootProps = () => {
4
4
  const contextValue = React.useContext(GridRootPropsContext);
5
5
 
6
6
  if (!contextValue) {
7
- throw new Error('MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.');
7
+ throw new Error('MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
8
8
  }
9
9
 
10
10
  return contextValue;
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.3
1
+ /** @license MUI v5.14.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.
@@ -4,7 +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 { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
7
- export { useGridRegisterStrategyProcessor } from '../hooks/core/strategyProcessing';
7
+ export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from '../hooks/core/strategyProcessing';
8
8
  export { useGridInitialization } from '../hooks/core/useGridInitialization';
9
9
  export { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
10
10
  export { useGridColumnHeaders } from '../hooks/features/columnHeaders/useGridColumnHeaders';
@@ -39,6 +39,6 @@ export { getColumnsToExport, defaultGetRowsToExport } from '../hooks/features/ex
39
39
  export { createSelector, unstable_resetCreateSelectorCache } from '../utils/createSelector';
40
40
  export { findParentElementFromClassName } from '../utils/domUtils';
41
41
  export { isNavigationKey } from '../utils/keyboardUtils';
42
- export { clamp, isDeepEqual } from '../utils/utils';
42
+ export { clamp, isDeepEqual, isNumber, isFunction } from '../utils/utils';
43
43
  export { buildWarning } from '../utils/warning';
44
44
  export { exportAs } from '../utils/exportAs';
@@ -111,6 +111,13 @@ const arSDGrid = {
111
111
  expandDetailPanel: 'توسيع',
112
112
  collapseDetailPanel: 'طوي' // 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 arSD = getGridLocalization(arSDGrid, arSDCore);
@@ -111,6 +111,13 @@ const bgBGGrid = {
111
111
  expandDetailPanel: 'Разгъване',
112
112
  collapseDetailPanel: 'Свиване' // 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 bgBG = getGridLocalization(bgBGGrid, bgBGCore);
@@ -146,6 +146,13 @@ const csCZGrid = {
146
146
  // collapseDetailPanel: 'Collapse',
147
147
  // Row reordering text
148
148
  // rowReorderingHeaderName: 'Row reordering',
149
+ // 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 csCZ = getGridLocalization(csCZGrid, csCZCore);
@@ -111,6 +111,13 @@ const daDKGrid = {
111
111
  expandDetailPanel: 'Udvid',
112
112
  collapseDetailPanel: 'Kollaps' // 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 daDK = getGridLocalization(daDKGrid, daDKCore);
@@ -21,9 +21,9 @@ const deDEGrid = {
21
21
  toolbarFiltersTooltipShow: 'Zeige Filter',
22
22
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive Filter` : `${count} aktiver Filter`,
23
23
  // Quick filter toolbar field
24
- // toolbarQuickFilterPlaceholder: 'Search...',
25
- // toolbarQuickFilterLabel: 'Search',
26
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ toolbarQuickFilterPlaceholder: 'Suchen...',
25
+ toolbarQuickFilterLabel: 'Suchen',
26
+ toolbarQuickFilterDeleteIconLabel: 'Löschen',
27
27
  // Export selector toolbar button text
28
28
  toolbarExport: 'Exportieren',
29
29
  toolbarExportLabel: 'Exportieren',
@@ -107,10 +107,17 @@ const deDEGrid = {
107
107
  groupColumn: name => `Gruppieren nach ${name}`,
108
108
  unGroupColumn: name => `Gruppierung nach ${name} aufheben`,
109
109
  // Master/detail
110
- // detailPanelToggle: 'Detail panel toggle',
110
+ detailPanelToggle: 'Detailansicht Kippschalter',
111
111
  expandDetailPanel: 'Aufklappen',
112
112
  collapseDetailPanel: 'Zuklappen',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'Reihen neu ordnen'
114
+ rowReorderingHeaderName: 'Reihen neu ordnen' // 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 deDE = getGridLocalization(deDEGrid, deDECore);
@@ -110,6 +110,13 @@ const elGRGrid = {
110
110
  // collapseDetailPanel: 'Collapse',
111
111
  // Row reordering text
112
112
  // rowReorderingHeaderName: 'Row reordering',
113
+ // Aggregation
114
+ // aggregationMenuItemHeader: 'Aggregation',
115
+ // aggregationFunctionLabelSum: 'sum',
116
+ // aggregationFunctionLabelAvg: 'avg',
117
+ // aggregationFunctionLabelMin: 'min',
118
+ // aggregationFunctionLabelMax: 'max',
119
+ // aggregationFunctionLabelSize: 'size',
113
120
 
114
121
  };
115
122
  export const elGR = getGridLocalization(elGRGrid);
@@ -111,6 +111,13 @@ const esESGrid = {
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 esES = getGridLocalization(esESGrid, esESCore);
@@ -111,6 +111,13 @@ const faIRGrid = {
111
111
  expandDetailPanel: 'بازکردن پنل جزئیات',
112
112
  collapseDetailPanel: 'بستن پنل جزئیات' // 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 faIR = getGridLocalization(faIRGrid, faIRCore);
@@ -111,6 +111,13 @@ const fiFIGrid = {
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 fiFI = getGridLocalization(fiFIGrid, fiFICore);
@@ -29,7 +29,7 @@ const frFRGrid = {
29
29
  toolbarExportLabel: 'Exporter',
30
30
  toolbarExportCSV: 'Télécharger en CSV',
31
31
  toolbarExportPrint: 'Imprimer',
32
- // toolbarExportExcel: 'Download as Excel',
32
+ toolbarExportExcel: 'Télécharger pour Excel',
33
33
  // Columns panel text
34
34
  columnsPanelTextFieldLabel: 'Chercher colonne',
35
35
  columnsPanelTextFieldPlaceholder: 'Titre de la colonne',
@@ -85,10 +85,10 @@ const frFRGrid = {
85
85
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} sur ${totalCount.toLocaleString()}`,
86
86
  // Checkbox selection text
87
87
  checkboxSelectionHeaderName: 'Sélection',
88
- // checkboxSelectionSelectAllRows: 'Select all rows',
89
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
90
- // checkboxSelectionSelectRow: 'Select row',
91
- // checkboxSelectionUnselectRow: 'Unselect row',
88
+ checkboxSelectionSelectAllRows: 'Sélectionner toutes les lignes',
89
+ checkboxSelectionUnselectAllRows: 'Désélectionner toutes les lignes',
90
+ checkboxSelectionSelectRow: 'Sélectionner la ligne',
91
+ checkboxSelectionUnselectRow: 'Désélectionner la ligne',
92
92
  // Boolean cell text
93
93
  booleanCellTrueLabel: 'vrai',
94
94
  booleanCellFalseLabel: 'faux',
@@ -105,12 +105,19 @@ const frFRGrid = {
105
105
  // Grouping columns
106
106
  groupingColumnHeaderName: 'Groupe',
107
107
  groupColumn: name => `Grouper par ${name}`,
108
- unGroupColumn: name => `Arrêter de grouper par ${name}` // Master/detail
109
- // detailPanelToggle: 'Detail panel toggle',
110
- // expandDetailPanel: 'Expand',
111
- // collapseDetailPanel: 'Collapse',
108
+ unGroupColumn: name => `Arrêter de grouper par ${name}`,
109
+ // Master/detail
110
+ detailPanelToggle: 'Afficher/masquer les détails',
111
+ expandDetailPanel: 'Afficher',
112
+ collapseDetailPanel: 'Masquer',
112
113
  // Row reordering text
113
- // rowReorderingHeaderName: 'Row reordering',
114
+ rowReorderingHeaderName: 'Positionnement des lignes' // 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 frFR = getGridLocalization(frFRGrid, frFRCore);
@@ -111,6 +111,13 @@ const heILGrid = {
111
111
  expandDetailPanel: 'הרחב',
112
112
  collapseDetailPanel: 'כווץ',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'סידור שורות'
114
+ rowReorderingHeaderName: 'סידור שורות' // 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 heIL = getGridLocalization(heILGrid, heILCore);
@@ -111,6 +111,13 @@ const huHUGrid = {
111
111
  expandDetailPanel: 'Kibontás',
112
112
  collapseDetailPanel: 'Összecsukás' // 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 huHU = getGridLocalization(huHUGrid, huHUCore);
@@ -15,13 +15,16 @@ export * from './huHU';
15
15
  export * from './itIT';
16
16
  export * from './jaJP';
17
17
  export * from './koKR';
18
+ export * from './nbNO';
18
19
  export * from './nlNL';
19
20
  export * from './plPL';
20
21
  export * from './ptBR';
22
+ export * from './roRO';
21
23
  export * from './ruRU';
22
24
  export * from './skSK';
23
25
  export * from './svSE';
24
26
  export * from './trTR';
25
27
  export * from './ukUA';
26
28
  export * from './viVN';
27
- export * from './zhCN';
29
+ export * from './zhCN';
30
+ export * from './zhTW';
@@ -111,6 +111,13 @@ const itITGrid = {
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 itIT = getGridLocalization(itITGrid, itITCore);
@@ -111,6 +111,13 @@ const jaJPGrid = {
111
111
  expandDetailPanel: '展開',
112
112
  collapseDetailPanel: '折りたたみ',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: '行並び替え'
114
+ rowReorderingHeaderName: '行並び替え' // 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 jaJP = getGridLocalization(jaJPGrid, jaJPCore);
@@ -111,6 +111,13 @@ const koKRGrid = {
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 koKR = getGridLocalization(koKRGrid, koKRCore);
@@ -111,6 +111,13 @@ const nbNOGrid = {
111
111
  expandDetailPanel: 'Utvid',
112
112
  collapseDetailPanel: 'Kollaps',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'Rad reorganisering'
114
+ rowReorderingHeaderName: 'Rad reorganisering' // 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 nbNO = getGridLocalization(nbNOGrid, nbNOCore);
@@ -21,15 +21,15 @@ const nlNLGrid = {
21
21
  toolbarFiltersTooltipShow: 'Toon filters',
22
22
  toolbarFiltersTooltipActive: count => count > 1 ? `${count} actieve filters` : `${count} filter actief`,
23
23
  // Quick filter toolbar field
24
- // toolbarQuickFilterPlaceholder: 'Search...',
25
- // toolbarQuickFilterLabel: 'Search',
26
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ toolbarQuickFilterPlaceholder: 'Zoeken...',
25
+ toolbarQuickFilterLabel: 'Zoeken',
26
+ toolbarQuickFilterDeleteIconLabel: 'Wissen',
27
27
  // Export selector toolbar button text
28
28
  toolbarExport: 'Exporteren',
29
29
  toolbarExportLabel: 'Exporteren',
30
30
  toolbarExportCSV: 'Exporteer naar CSV',
31
31
  toolbarExportPrint: 'Print',
32
- // toolbarExportExcel: 'Download as Excel',
32
+ toolbarExportExcel: 'Downloaden als Excel-bestand',
33
33
  // Columns panel text
34
34
  columnsPanelTextFieldLabel: 'Zoek kolom',
35
35
  columnsPanelTextFieldPlaceholder: 'Kolomtitel',
@@ -39,7 +39,7 @@ const nlNLGrid = {
39
39
  // Filter panel text
40
40
  filterPanelAddFilter: 'Filter toevoegen',
41
41
  filterPanelDeleteIconLabel: 'Verwijderen',
42
- // filterPanelLinkOperator: 'Logic operator',
42
+ filterPanelLinkOperator: 'Logische operator',
43
43
  filterPanelOperators: 'Operatoren',
44
44
  // TODO v6: rename to filterPanelOperator
45
45
  filterPanelOperatorAnd: 'En',
@@ -60,7 +60,7 @@ const nlNLGrid = {
60
60
  filterOperatorOnOrBefore: 'is gelijk of er voor',
61
61
  filterOperatorIsEmpty: 'is leeg',
62
62
  filterOperatorIsNotEmpty: 'is niet leeg',
63
- // filterOperatorIsAnyOf: 'is any of',
63
+ filterOperatorIsAnyOf: 'is een van',
64
64
  // Filter values text
65
65
  filterValueAny: 'alles',
66
66
  filterValueTrue: 'waar',
@@ -85,10 +85,10 @@ const nlNLGrid = {
85
85
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`,
86
86
  // Checkbox selection text
87
87
  checkboxSelectionHeaderName: 'Checkbox selectie',
88
- // checkboxSelectionSelectAllRows: 'Select all rows',
89
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
90
- // checkboxSelectionSelectRow: 'Select row',
91
- // checkboxSelectionUnselectRow: 'Unselect row',
88
+ checkboxSelectionSelectAllRows: 'Alle rijen selecteren',
89
+ checkboxSelectionUnselectAllRows: 'Alle rijen de-selecteren',
90
+ checkboxSelectionSelectRow: 'Rij selecteren',
91
+ checkboxSelectionUnselectRow: 'Rij de-selecteren',
92
92
  // Boolean cell text
93
93
  booleanCellTrueLabel: 'waar',
94
94
  booleanCellFalseLabel: 'onwaar',
@@ -105,12 +105,19 @@ const nlNLGrid = {
105
105
  // Grouping columns
106
106
  groupingColumnHeaderName: 'Groep',
107
107
  groupColumn: name => `Groepeer op ${name}`,
108
- unGroupColumn: name => `Stop groeperen op ${name}` // Master/detail
108
+ unGroupColumn: name => `Stop groeperen op ${name}`,
109
+ // Master/detail
109
110
  // detailPanelToggle: 'Detail panel toggle',
110
- // expandDetailPanel: 'Expand',
111
- // collapseDetailPanel: 'Collapse',
111
+ expandDetailPanel: 'Uitklappen',
112
+ collapseDetailPanel: 'Inklappen',
112
113
  // Row reordering text
113
- // rowReorderingHeaderName: 'Row reordering',
114
+ rowReorderingHeaderName: 'Rijen hersorteren' // 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 nlNL = getGridLocalization(nlNLGrid, nlNLCore);
@@ -111,6 +111,13 @@ const plPLGrid = {
111
111
  expandDetailPanel: 'Rozwiń',
112
112
  collapseDetailPanel: 'Zwiń' // 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 plPL = getGridLocalization(plPLGrid, plPLCore);