@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
@@ -21,14 +21,14 @@ const ptBRGrid = {
21
21
  toolbarFiltersTooltipShow: 'Exibir filtros',
22
22
  toolbarFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
23
23
  // Quick filter toolbar field
24
- // toolbarQuickFilterPlaceholder: 'Search...',
25
- // toolbarQuickFilterLabel: 'Search',
26
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ toolbarQuickFilterPlaceholder: 'Procurar...',
25
+ toolbarQuickFilterLabel: 'Procurar',
26
+ toolbarQuickFilterDeleteIconLabel: 'Limpar',
27
27
  // Export selector toolbar button text
28
28
  toolbarExport: 'Exportar',
29
29
  toolbarExportLabel: 'Exportar',
30
30
  toolbarExportCSV: 'Baixar como CSV',
31
- toolbarExportPrint: 'Print',
31
+ toolbarExportPrint: 'Imprimir',
32
32
  toolbarExportExcel: 'Baixar como Excel',
33
33
  // Columns panel text
34
34
  columnsPanelTextFieldLabel: 'Localizar coluna',
@@ -60,7 +60,7 @@ const ptBRGrid = {
60
60
  filterOperatorOnOrBefore: 'em ou antes de',
61
61
  filterOperatorIsEmpty: 'está vazio',
62
62
  filterOperatorIsNotEmpty: 'não está vazio',
63
- // filterOperatorIsAnyOf: 'is any of',
63
+ filterOperatorIsAnyOf: 'é qualquer um dos',
64
64
  // Filter values text
65
65
  filterValueAny: 'qualquer',
66
66
  filterValueTrue: 'verdadeiro',
@@ -99,9 +99,9 @@ const ptBRGrid = {
99
99
  pinToRight: 'Fixar à direita',
100
100
  unpin: 'Desafixar',
101
101
  // Tree Data
102
- // treeDataGroupingHeaderName: 'Group',
103
- // treeDataExpand: 'see children',
104
- // treeDataCollapse: 'hide children',
102
+ treeDataGroupingHeaderName: 'Grupo',
103
+ treeDataExpand: 'mostrar filhos',
104
+ treeDataCollapse: 'esconder filhos',
105
105
  // Grouping columns
106
106
  groupingColumnHeaderName: 'Grupo',
107
107
  groupColumn: name => `Agrupar por ${name}`,
@@ -109,8 +109,15 @@ const ptBRGrid = {
109
109
  // Master/detail
110
110
  detailPanelToggle: 'Painel de detalhes',
111
111
  expandDetailPanel: 'Expandir',
112
- collapseDetailPanel: 'Esconder' // Row reordering text
113
- // rowReorderingHeaderName: 'Row reordering',
112
+ collapseDetailPanel: 'Esconder',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: 'Reorganizar linhas' // 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 ptBR = getGridLocalization(ptBRGrid, ptBRCore);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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,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);
@@ -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";
@@ -8,9 +8,10 @@ export const isSpaceKey = key => key === ' ';
8
8
  export const isArrowKeys = key => key.indexOf('Arrow') === 0;
9
9
  export const isHomeOrEndKeys = key => key === 'Home' || key === 'End';
10
10
  export const isPageKeys = key => key.indexOf('Page') === 0;
11
- export const isDeleteKeys = key => key === 'Delete' || key === 'Backspace';
12
- const printableCharRegex = /^(\p{L}|\p{M}\p{L}|\p{M}|\p{N}|\p{Z}|\p{S}|\p{P})$/iu;
13
- export const isPrintableKey = key => printableCharRegex.test(key);
11
+ export const isDeleteKeys = key => key === 'Delete' || key === 'Backspace'; // Non printable keys have a name, e.g. "ArrowRight", see the whole list:
12
+ // https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
13
+
14
+ export const isPrintableKey = key => key.length === 1;
14
15
  export const GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
15
16
  export const GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];
16
17
  export const GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
@@ -109,7 +109,7 @@ DataGridRaw.propTypes = {
109
109
  columns: (0, _utils.chainPropTypes)(_propTypes.default.array.isRequired, props => {
110
110
  // @ts-ignore because otherwise `build:api` doesn't work
111
111
  if (props.columns && props.columns.some(column => column.resizable)) {
112
- 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'));
112
+ 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'));
113
113
  }
114
114
 
115
115
  return null;
@@ -679,14 +679,14 @@ DataGridRaw.propTypes = {
679
679
  */
680
680
  pageSize: (0, _utils.chainPropTypes)(_propTypes.default.number, props => {
681
681
  if (props.pageSize && props.pageSize > _useDataGridProps.MAX_PAGE_SIZE) {
682
- return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${_useDataGridProps.MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
682
+ return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${_useDataGridProps.MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
683
683
  }
684
684
 
685
685
  return null;
686
686
  }),
687
687
  pagination: props => {
688
688
  if (props.pagination === false) {
689
- 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'));
689
+ 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'));
690
690
  }
691
691
 
692
692
  return null;
@@ -766,7 +766,7 @@ DataGridRaw.propTypes = {
766
766
  */
767
767
  selectionModel: (0, _utils.chainPropTypes)(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.array]), props => {
768
768
  if (!props.checkboxSelection && Array.isArray(props.selectionModel) && props.selectionModel.length > 1) {
769
- 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'));
769
+ 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'));
770
770
  }
771
771
 
772
772
  return null;
@@ -94,7 +94,7 @@ const useDataGridComponent = props => {
94
94
  const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? _useGridEditing2.useGridEditing : _useGridEditing.useGridEditing;
95
95
  useGridEditing(apiRef, props);
96
96
  (0, _useGridFocus.useGridFocus)(apiRef, props);
97
- (0, _useGridPreferencesPanel.useGridPreferencesPanel)(apiRef);
97
+ (0, _useGridPreferencesPanel.useGridPreferencesPanel)(apiRef, props);
98
98
  (0, _useGridFilter.useGridFilter)(apiRef, props);
99
99
  (0, _useGridSorting.useGridSorting)(apiRef, props);
100
100
  (0, _useGridDensity.useGridDensity)(apiRef, props);
@@ -18,6 +18,8 @@ exports.GRID_ACTIONS_COLUMN_TYPE = GRID_ACTIONS_COLUMN_TYPE;
18
18
  const GRID_ACTIONS_COL_DEF = (0, _extends2.default)({}, _gridStringColDef.GRID_STRING_COL_DEF, {
19
19
  sortable: false,
20
20
  filterable: false,
21
+ // @ts-ignore
22
+ aggregable: false,
21
23
  width: 100,
22
24
  align: 'center',
23
25
  headerAlign: 'center',
@@ -35,6 +35,8 @@ const GRID_BOOLEAN_COL_DEF = (0, _extends2.default)({}, _gridStringColDef.GRID_S
35
35
  sortComparator: _gridSortingUtils.gridNumberComparator,
36
36
  valueFormatter: gridBooleanFormatter,
37
37
  filterOperators: (0, _gridBooleanOperators.getGridBooleanOperators)(),
38
- getApplyQuickFilterFn: undefined
38
+ getApplyQuickFilterFn: undefined,
39
+ // @ts-ignore
40
+ aggregable: false
39
41
  });
40
42
  exports.GRID_BOOLEAN_COL_DEF = GRID_BOOLEAN_COL_DEF;
@@ -34,6 +34,8 @@ const GRID_CHECKBOX_SELECTION_COL_DEF = (0, _extends2.default)({}, _gridBooleanC
34
34
  resizable: false,
35
35
  sortable: false,
36
36
  filterable: false,
37
+ // @ts-ignore
38
+ aggregable: false,
37
39
  disableColumnMenu: true,
38
40
  disableReorder: true,
39
41
  disableExport: true,
@@ -99,7 +99,8 @@ const getGridDateOperators = showTime => [{
99
99
  }) => {
100
100
  return value == null;
101
101
  };
102
- }
102
+ },
103
+ requiresFilterValue: false
103
104
  }, {
104
105
  value: 'isNotEmpty',
105
106
  getApplyFilterFn: () => {
@@ -108,7 +109,8 @@ const getGridDateOperators = showTime => [{
108
109
  }) => {
109
110
  return value != null;
110
111
  };
111
- }
112
+ },
113
+ requiresFilterValue: false
112
114
  }];
113
115
 
114
116
  exports.getGridDateOperators = getGridDateOperators;
@@ -165,7 +165,8 @@ const getGridNumericOperators = () => [{
165
165
  }) => {
166
166
  return value == null;
167
167
  };
168
- }
168
+ },
169
+ requiresFilterValue: false
169
170
  }, {
170
171
  value: 'isNotEmpty',
171
172
  getApplyFilterFn: () => {
@@ -174,7 +175,8 @@ const getGridNumericOperators = () => [{
174
175
  }) => {
175
176
  return value != null;
176
177
  };
177
- }
178
+ },
179
+ requiresFilterValue: false
178
180
  }, {
179
181
  value: 'isAnyOf',
180
182
  getApplyFilterFn: filterItem => {
@@ -11,6 +11,9 @@ var _gridSortingUtils = require("../hooks/features/sorting/gridSortingUtils");
11
11
 
12
12
  var _gridStringOperators = require("./gridStringOperators");
13
13
 
14
+ /**
15
+ * TODO: Move pro and premium properties outside of this Community file
16
+ */
14
17
  const GRID_STRING_COL_DEF = {
15
18
  width: 100,
16
19
  minWidth: 50,
@@ -22,6 +25,8 @@ const GRID_STRING_COL_DEF = {
22
25
  filterable: true,
23
26
  groupable: true,
24
27
  pinnable: true,
28
+ // @ts-ignore
29
+ private_aggregable: true,
25
30
  editable: false,
26
31
  sortComparator: _gridSortingUtils.gridStringOrNumberComparator,
27
32
  type: 'string',