@mui/x-data-grid 5.13.1 → 5.15.1

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 (374) hide show
  1. package/CHANGELOG.md +147 -6
  2. package/DataGrid/DataGrid.js +6 -0
  3. package/DataGrid/useDataGridComponent.js +1 -1
  4. package/DataGrid/useDataGridProps.js +1 -0
  5. package/colDef/gridActionsColDef.js +2 -0
  6. package/colDef/gridBooleanColDef.js +3 -1
  7. package/colDef/gridCheckboxSelectionColDef.js +2 -0
  8. package/colDef/gridDateOperators.d.ts +1 -1
  9. package/colDef/gridStringColDef.d.ts +3 -0
  10. package/colDef/gridStringColDef.js +6 -0
  11. package/components/GridRow.js +5 -1
  12. package/components/base/GridOverlays.js +4 -1
  13. package/components/cell/GridBooleanCell.d.ts +5 -2
  14. package/components/cell/GridBooleanCell.js +93 -2
  15. package/components/cell/GridEditDateCell.js +5 -1
  16. package/components/cell/GridEditInputCell.d.ts +2 -5
  17. package/components/cell/GridEditInputCell.js +13 -14
  18. package/components/cell/GridEditSingleSelectCell.d.ts +4 -0
  19. package/components/cell/GridEditSingleSelectCell.js +11 -4
  20. package/components/cell/index.d.ts +1 -0
  21. package/components/cell/index.js +1 -0
  22. package/components/columnSelection/GridCellCheckboxRenderer.js +12 -1
  23. package/components/containers/GridRoot.js +4 -2
  24. package/components/containers/GridRootStyles.js +10 -0
  25. package/components/toolbar/GridToolbarDensitySelector.js +13 -4
  26. package/components/toolbar/GridToolbarExport.js +20 -10
  27. package/components/toolbar/GridToolbarExportContainer.js +13 -2
  28. package/constants/envConstants.d.ts +1 -1
  29. package/constants/envConstants.js +2 -11
  30. package/constants/gridClasses.d.ts +41 -1
  31. package/constants/gridClasses.js +1 -1
  32. package/constants/localeTextConstants.js +9 -2
  33. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +2 -1
  34. package/hooks/features/columns/useGridColumnSpanning.js +9 -7
  35. package/hooks/features/columns/useGridColumns.d.ts +1 -1
  36. package/hooks/features/columns/useGridColumns.js +13 -6
  37. package/hooks/features/dimensions/useGridDimensions.js +6 -1
  38. package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
  39. package/hooks/features/editRows/useGridCellEditing.new.js +11 -9
  40. package/hooks/features/editRows/useGridCellEditing.old.js +2 -2
  41. package/hooks/features/editRows/useGridEditing.new.d.ts +1 -1
  42. package/hooks/features/editRows/useGridEditing.new.js +4 -0
  43. package/hooks/features/editRows/useGridEditing.old.js +1 -1
  44. package/hooks/features/editRows/useGridRowEditing.new.d.ts +1 -1
  45. package/hooks/features/editRows/useGridRowEditing.new.js +7 -8
  46. package/hooks/features/export/utils.d.ts +1 -1
  47. package/hooks/features/export/utils.js +16 -2
  48. package/hooks/features/filter/gridFilterUtils.js +6 -0
  49. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  50. package/hooks/features/filter/useGridFilter.js +11 -4
  51. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
  52. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +42 -34
  53. package/hooks/features/pagination/useGridPage.js +4 -3
  54. package/hooks/features/pagination/useGridPageSize.js +7 -4
  55. package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
  56. package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
  57. package/hooks/features/rows/gridRowsSelector.d.ts +14 -0
  58. package/hooks/features/rows/gridRowsSelector.js +20 -1
  59. package/hooks/features/rows/gridRowsState.d.ts +8 -1
  60. package/hooks/features/rows/gridRowsUtils.d.ts +5 -1
  61. package/hooks/features/rows/gridRowsUtils.js +21 -3
  62. package/hooks/features/rows/index.d.ts +1 -1
  63. package/hooks/features/rows/index.js +1 -1
  64. package/hooks/features/rows/useGridRowsMeta.js +19 -4
  65. package/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
  66. package/hooks/features/scroll/useGridScroll.js +7 -2
  67. package/hooks/features/selection/useGridSelection.js +28 -10
  68. package/hooks/features/sorting/gridSortingUtils.d.ts +1 -0
  69. package/hooks/features/sorting/gridSortingUtils.js +10 -11
  70. package/hooks/features/sorting/useGridSorting.d.ts +1 -1
  71. package/hooks/features/sorting/useGridSorting.js +42 -6
  72. package/hooks/features/statePersistence/gridStatePersistenceInterface.d.ts +12 -1
  73. package/hooks/features/statePersistence/index.d.ts +1 -1
  74. package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
  75. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +3 -1
  76. package/hooks/features/virtualization/useGridVirtualScroller.js +32 -18
  77. package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
  78. package/hooks/utils/useGridNativeEventListener.d.ts +1 -1
  79. package/hooks/utils/useGridNativeEventListener.js +1 -1
  80. package/index.js +1 -1
  81. package/internals/index.d.ts +6 -3
  82. package/internals/index.js +5 -2
  83. package/legacy/DataGrid/DataGrid.js +6 -0
  84. package/legacy/DataGrid/useDataGridComponent.js +1 -1
  85. package/legacy/DataGrid/useDataGridProps.js +1 -0
  86. package/legacy/colDef/gridActionsColDef.js +2 -0
  87. package/legacy/colDef/gridBooleanColDef.js +3 -1
  88. package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -0
  89. package/legacy/colDef/gridStringColDef.js +6 -0
  90. package/legacy/components/GridRow.js +5 -1
  91. package/legacy/components/base/GridOverlays.js +4 -1
  92. package/legacy/components/cell/GridBooleanCell.js +93 -2
  93. package/legacy/components/cell/GridEditDateCell.js +5 -1
  94. package/legacy/components/cell/GridEditInputCell.js +13 -14
  95. package/legacy/components/cell/GridEditSingleSelectCell.js +11 -3
  96. package/legacy/components/cell/index.js +1 -0
  97. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +11 -1
  98. package/legacy/components/containers/GridRoot.js +4 -2
  99. package/legacy/components/containers/GridRootStyles.js +3 -3
  100. package/legacy/components/toolbar/GridToolbarDensitySelector.js +14 -5
  101. package/legacy/components/toolbar/GridToolbarExport.js +20 -10
  102. package/legacy/components/toolbar/GridToolbarExportContainer.js +15 -2
  103. package/legacy/constants/envConstants.js +2 -11
  104. package/legacy/constants/gridClasses.js +1 -1
  105. package/legacy/constants/localeTextConstants.js +9 -2
  106. package/legacy/hooks/features/columns/useGridColumnSpanning.js +9 -7
  107. package/legacy/hooks/features/columns/useGridColumns.js +13 -8
  108. package/legacy/hooks/features/dimensions/useGridDimensions.js +6 -1
  109. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +11 -9
  110. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +2 -2
  111. package/legacy/hooks/features/editRows/useGridEditing.new.js +4 -0
  112. package/legacy/hooks/features/editRows/useGridEditing.old.js +1 -1
  113. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -8
  114. package/legacy/hooks/features/export/utils.js +21 -2
  115. package/legacy/hooks/features/filter/gridFilterUtils.js +6 -0
  116. package/legacy/hooks/features/filter/useGridFilter.js +11 -4
  117. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +47 -34
  118. package/legacy/hooks/features/pagination/useGridPage.js +4 -3
  119. package/legacy/hooks/features/pagination/useGridPageSize.js +7 -4
  120. package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
  121. package/legacy/hooks/features/rows/gridRowsSelector.js +23 -0
  122. package/legacy/hooks/features/rows/gridRowsUtils.js +21 -3
  123. package/legacy/hooks/features/rows/index.js +1 -1
  124. package/legacy/hooks/features/rows/useGridRowsMeta.js +19 -4
  125. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
  126. package/legacy/hooks/features/scroll/useGridScroll.js +7 -2
  127. package/legacy/hooks/features/selection/useGridSelection.js +30 -12
  128. package/legacy/hooks/features/sorting/gridSortingUtils.js +11 -12
  129. package/legacy/hooks/features/sorting/useGridSorting.js +42 -6
  130. package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -1
  131. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +33 -18
  132. package/legacy/hooks/utils/useGridNativeEventListener.js +1 -1
  133. package/legacy/index.js +1 -1
  134. package/legacy/internals/index.js +5 -2
  135. package/legacy/locales/arSD.js +8 -1
  136. package/legacy/locales/bgBG.js +8 -1
  137. package/legacy/locales/csCZ.js +8 -1
  138. package/legacy/locales/daDK.js +8 -1
  139. package/legacy/locales/deDE.js +9 -2
  140. package/legacy/locales/elGR.js +8 -1
  141. package/legacy/locales/esES.js +8 -1
  142. package/legacy/locales/faIR.js +8 -1
  143. package/legacy/locales/fiFI.js +8 -1
  144. package/legacy/locales/frFR.js +9 -2
  145. package/legacy/locales/heIL.js +9 -2
  146. package/legacy/locales/huHU.js +8 -1
  147. package/legacy/locales/index.js +2 -1
  148. package/legacy/locales/itIT.js +21 -14
  149. package/legacy/locales/jaJP.js +11 -4
  150. package/legacy/locales/koKR.js +35 -24
  151. package/legacy/locales/nbNO.js +9 -2
  152. package/legacy/locales/nlNL.js +9 -2
  153. package/legacy/locales/plPL.js +8 -1
  154. package/legacy/locales/ptBR.js +9 -2
  155. package/legacy/locales/roRO.js +9 -2
  156. package/legacy/locales/ruRU.js +8 -1
  157. package/legacy/locales/skSK.js +9 -2
  158. package/legacy/locales/svSE.js +9 -2
  159. package/legacy/locales/trTR.js +8 -1
  160. package/legacy/locales/ukUA.js +8 -1
  161. package/legacy/locales/viVN.js +8 -1
  162. package/legacy/locales/zhCN.js +38 -27
  163. package/legacy/locales/zhTW.js +135 -0
  164. package/legacy/models/events/gridEvents.js +1 -0
  165. package/legacy/utils/keyboardUtils.js +8 -5
  166. package/locales/arSD.js +8 -1
  167. package/locales/bgBG.js +8 -1
  168. package/locales/csCZ.js +8 -1
  169. package/locales/daDK.js +8 -1
  170. package/locales/deDE.js +9 -2
  171. package/locales/elGR.js +8 -1
  172. package/locales/esES.js +8 -1
  173. package/locales/faIR.js +8 -1
  174. package/locales/fiFI.js +8 -1
  175. package/locales/frFR.js +9 -2
  176. package/locales/heIL.js +9 -2
  177. package/locales/huHU.js +8 -1
  178. package/locales/index.d.ts +1 -0
  179. package/locales/index.js +2 -1
  180. package/locales/itIT.js +21 -14
  181. package/locales/jaJP.js +11 -4
  182. package/locales/koKR.js +31 -24
  183. package/locales/nbNO.js +9 -2
  184. package/locales/nlNL.js +9 -2
  185. package/locales/plPL.js +8 -1
  186. package/locales/ptBR.js +9 -2
  187. package/locales/roRO.js +9 -2
  188. package/locales/ruRU.js +8 -1
  189. package/locales/skSK.js +9 -2
  190. package/locales/svSE.js +9 -2
  191. package/locales/trTR.js +8 -1
  192. package/locales/ukUA.js +8 -1
  193. package/locales/viVN.js +8 -1
  194. package/locales/zhCN.js +34 -27
  195. package/locales/zhTW.d.ts +2 -0
  196. package/locales/zhTW.js +123 -0
  197. package/models/api/gridColumnSpanning.d.ts +2 -0
  198. package/models/api/gridLocaleTextApi.d.ts +8 -2
  199. package/models/api/gridSelectionApi.d.ts +6 -0
  200. package/models/events/gridEvents.d.ts +1 -0
  201. package/models/events/gridEvents.js +1 -0
  202. package/models/gridRows.d.ts +15 -1
  203. package/models/params/gridCellParams.d.ts +4 -4
  204. package/models/props/DataGridProps.d.ts +5 -0
  205. package/modern/DataGrid/DataGrid.js +6 -0
  206. package/modern/DataGrid/useDataGridComponent.js +1 -1
  207. package/modern/DataGrid/useDataGridProps.js +1 -0
  208. package/modern/colDef/gridActionsColDef.js +2 -0
  209. package/modern/colDef/gridBooleanColDef.js +3 -1
  210. package/modern/colDef/gridCheckboxSelectionColDef.js +2 -0
  211. package/modern/colDef/gridStringColDef.js +6 -0
  212. package/modern/components/GridRow.js +5 -1
  213. package/modern/components/base/GridOverlays.js +4 -1
  214. package/modern/components/cell/GridBooleanCell.js +93 -2
  215. package/modern/components/cell/GridEditDateCell.js +5 -1
  216. package/modern/components/cell/GridEditInputCell.js +13 -14
  217. package/modern/components/cell/GridEditSingleSelectCell.js +11 -4
  218. package/modern/components/cell/index.js +1 -0
  219. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +12 -1
  220. package/modern/components/containers/GridRoot.js +4 -2
  221. package/modern/components/containers/GridRootStyles.js +10 -0
  222. package/modern/components/toolbar/GridToolbarDensitySelector.js +11 -4
  223. package/modern/components/toolbar/GridToolbarExport.js +20 -10
  224. package/modern/components/toolbar/GridToolbarExportContainer.js +11 -2
  225. package/modern/constants/envConstants.js +2 -11
  226. package/modern/constants/gridClasses.js +1 -1
  227. package/modern/constants/localeTextConstants.js +9 -2
  228. package/modern/hooks/features/columns/useGridColumnSpanning.js +9 -7
  229. package/modern/hooks/features/columns/useGridColumns.js +10 -5
  230. package/modern/hooks/features/dimensions/useGridDimensions.js +6 -1
  231. package/modern/hooks/features/editRows/useGridCellEditing.new.js +9 -9
  232. package/modern/hooks/features/editRows/useGridCellEditing.old.js +2 -2
  233. package/modern/hooks/features/editRows/useGridEditing.new.js +4 -0
  234. package/modern/hooks/features/editRows/useGridEditing.old.js +1 -1
  235. package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -8
  236. package/modern/hooks/features/export/utils.js +10 -2
  237. package/modern/hooks/features/filter/gridFilterUtils.js +6 -0
  238. package/modern/hooks/features/filter/useGridFilter.js +8 -3
  239. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +42 -30
  240. package/modern/hooks/features/pagination/useGridPage.js +4 -3
  241. package/modern/hooks/features/pagination/useGridPageSize.js +7 -4
  242. package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +8 -4
  243. package/modern/hooks/features/rows/gridRowsSelector.js +18 -1
  244. package/modern/hooks/features/rows/gridRowsUtils.js +19 -3
  245. package/modern/hooks/features/rows/index.js +1 -1
  246. package/modern/hooks/features/rows/useGridRowsMeta.js +17 -4
  247. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
  248. package/modern/hooks/features/scroll/useGridScroll.js +5 -2
  249. package/modern/hooks/features/selection/useGridSelection.js +28 -10
  250. package/modern/hooks/features/sorting/gridSortingUtils.js +10 -11
  251. package/modern/hooks/features/sorting/useGridSorting.js +38 -6
  252. package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
  253. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +31 -17
  254. package/modern/hooks/utils/useGridNativeEventListener.js +1 -1
  255. package/modern/index.js +1 -1
  256. package/modern/internals/index.js +5 -2
  257. package/modern/locales/arSD.js +8 -1
  258. package/modern/locales/bgBG.js +8 -1
  259. package/modern/locales/csCZ.js +8 -1
  260. package/modern/locales/daDK.js +8 -1
  261. package/modern/locales/deDE.js +9 -2
  262. package/modern/locales/elGR.js +8 -1
  263. package/modern/locales/esES.js +8 -1
  264. package/modern/locales/faIR.js +8 -1
  265. package/modern/locales/fiFI.js +8 -1
  266. package/modern/locales/frFR.js +9 -2
  267. package/modern/locales/heIL.js +9 -2
  268. package/modern/locales/huHU.js +8 -1
  269. package/modern/locales/index.js +2 -1
  270. package/modern/locales/itIT.js +21 -14
  271. package/modern/locales/jaJP.js +11 -4
  272. package/modern/locales/koKR.js +31 -24
  273. package/modern/locales/nbNO.js +9 -2
  274. package/modern/locales/nlNL.js +9 -2
  275. package/modern/locales/plPL.js +8 -1
  276. package/modern/locales/ptBR.js +9 -2
  277. package/modern/locales/roRO.js +9 -2
  278. package/modern/locales/ruRU.js +8 -1
  279. package/modern/locales/skSK.js +9 -2
  280. package/modern/locales/svSE.js +9 -2
  281. package/modern/locales/trTR.js +8 -1
  282. package/modern/locales/ukUA.js +8 -1
  283. package/modern/locales/viVN.js +8 -1
  284. package/modern/locales/zhCN.js +34 -27
  285. package/modern/locales/zhTW.js +123 -0
  286. package/modern/models/events/gridEvents.js +1 -0
  287. package/modern/utils/keyboardUtils.js +7 -2
  288. package/node/DataGrid/DataGrid.js +6 -0
  289. package/node/DataGrid/useDataGridComponent.js +1 -1
  290. package/node/DataGrid/useDataGridProps.js +1 -0
  291. package/node/colDef/gridActionsColDef.js +2 -0
  292. package/node/colDef/gridBooleanColDef.js +3 -1
  293. package/node/colDef/gridCheckboxSelectionColDef.js +2 -0
  294. package/node/colDef/gridStringColDef.js +5 -0
  295. package/node/components/GridRow.js +5 -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/GridEditInputCell.js +15 -16
  300. package/node/components/cell/GridEditSingleSelectCell.js +10 -4
  301. package/node/components/cell/index.js +13 -0
  302. package/node/components/columnSelection/GridCellCheckboxRenderer.js +12 -1
  303. package/node/components/containers/GridRoot.js +3 -1
  304. package/node/components/containers/GridRootStyles.js +10 -0
  305. package/node/components/toolbar/GridToolbarDensitySelector.js +13 -4
  306. package/node/components/toolbar/GridToolbarExport.js +16 -10
  307. package/node/components/toolbar/GridToolbarExportContainer.js +13 -2
  308. package/node/constants/envConstants.js +2 -13
  309. package/node/constants/gridClasses.js +1 -1
  310. package/node/constants/localeTextConstants.js +9 -2
  311. package/node/hooks/features/columns/useGridColumnSpanning.js +9 -7
  312. package/node/hooks/features/columns/useGridColumns.js +13 -6
  313. package/node/hooks/features/dimensions/useGridDimensions.js +7 -1
  314. package/node/hooks/features/editRows/useGridCellEditing.new.js +11 -9
  315. package/node/hooks/features/editRows/useGridCellEditing.old.js +2 -2
  316. package/node/hooks/features/editRows/useGridEditing.new.js +4 -0
  317. package/node/hooks/features/editRows/useGridEditing.old.js +1 -1
  318. package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -8
  319. package/node/hooks/features/export/utils.js +17 -2
  320. package/node/hooks/features/filter/gridFilterUtils.js +7 -0
  321. package/node/hooks/features/filter/useGridFilter.js +11 -4
  322. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +43 -34
  323. package/node/hooks/features/pagination/useGridPage.js +4 -3
  324. package/node/hooks/features/pagination/useGridPageSize.js +8 -4
  325. package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +12 -4
  326. package/node/hooks/features/rows/gridRowsSelector.js +24 -2
  327. package/node/hooks/features/rows/gridRowsUtils.js +23 -2
  328. package/node/hooks/features/rows/index.js +70 -12
  329. package/node/hooks/features/rows/useGridRowsMeta.js +20 -4
  330. package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
  331. package/node/hooks/features/scroll/useGridScroll.js +7 -1
  332. package/node/hooks/features/selection/useGridSelection.js +28 -10
  333. package/node/hooks/features/sorting/gridSortingUtils.js +10 -11
  334. package/node/hooks/features/sorting/useGridSorting.js +42 -6
  335. package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
  336. package/node/hooks/features/virtualization/useGridVirtualScroller.js +32 -18
  337. package/node/hooks/utils/useGridNativeEventListener.js +1 -1
  338. package/node/index.js +1 -1
  339. package/node/internals/index.js +46 -0
  340. package/node/locales/arSD.js +8 -1
  341. package/node/locales/bgBG.js +8 -1
  342. package/node/locales/csCZ.js +8 -1
  343. package/node/locales/daDK.js +8 -1
  344. package/node/locales/deDE.js +9 -2
  345. package/node/locales/elGR.js +8 -1
  346. package/node/locales/esES.js +8 -1
  347. package/node/locales/faIR.js +8 -1
  348. package/node/locales/fiFI.js +8 -1
  349. package/node/locales/frFR.js +9 -2
  350. package/node/locales/heIL.js +9 -2
  351. package/node/locales/huHU.js +8 -1
  352. package/node/locales/index.js +13 -0
  353. package/node/locales/itIT.js +21 -14
  354. package/node/locales/jaJP.js +11 -4
  355. package/node/locales/koKR.js +31 -24
  356. package/node/locales/nbNO.js +9 -2
  357. package/node/locales/nlNL.js +9 -2
  358. package/node/locales/plPL.js +8 -1
  359. package/node/locales/ptBR.js +9 -2
  360. package/node/locales/roRO.js +9 -2
  361. package/node/locales/ruRU.js +8 -1
  362. package/node/locales/skSK.js +9 -2
  363. package/node/locales/svSE.js +9 -2
  364. package/node/locales/trTR.js +8 -1
  365. package/node/locales/ukUA.js +8 -1
  366. package/node/locales/viVN.js +8 -1
  367. package/node/locales/zhCN.js +34 -27
  368. package/node/locales/zhTW.js +133 -0
  369. package/node/models/events/gridEvents.js +1 -0
  370. package/node/utils/keyboardUtils.js +10 -4
  371. package/package.json +1 -1
  372. package/utils/getGridLocalization.d.ts +1 -1
  373. package/utils/keyboardUtils.d.ts +2 -2
  374. package/utils/keyboardUtils.js +7 -2
@@ -91,9 +91,9 @@ const useGridSelection = (apiRef, props) => {
91
91
  checkboxSelection,
92
92
  disableMultipleSelection,
93
93
  disableSelectionOnClick,
94
- isRowSelectable,
95
94
  pagination,
96
- paginationMode
95
+ paginationMode,
96
+ isRowSelectable: propIsRowSelectable
97
97
  } = props;
98
98
  const canHaveMultipleSelection = !disableMultipleSelection || checkboxSelection;
99
99
  const visibleRows = (0, _useGridVisibleRows.useGridVisibleRows)(apiRef, props);
@@ -142,9 +142,22 @@ const useGridSelection = (apiRef, props) => {
142
142
  }
143
143
  }, [apiRef, logger]);
144
144
  const isRowSelected = React.useCallback(id => (0, _gridSelectionSelector.gridSelectionStateSelector)(apiRef.current.state).includes(id), [apiRef]);
145
+ const isRowSelectable = React.useCallback(id => {
146
+ if (propIsRowSelectable && !propIsRowSelectable(apiRef.current.getRowParams(id))) {
147
+ return false;
148
+ }
149
+
150
+ const rowNode = apiRef.current.getRowNode(id);
151
+
152
+ if ((rowNode == null ? void 0 : rowNode.position) === 'footer' || rowNode != null && rowNode.isPinned) {
153
+ return false;
154
+ }
155
+
156
+ return true;
157
+ }, [apiRef, propIsRowSelectable]);
145
158
  const getSelectedRows = React.useCallback(() => (0, _gridSelectionSelector.selectedGridRowsSelector)(apiRef), [apiRef]);
146
159
  const selectRow = React.useCallback((id, isSelected = true, resetSelection = false) => {
147
- if (isRowSelectable && !isRowSelectable(apiRef.current.getRowParams(id))) {
160
+ if (!apiRef.current.isRowSelectable(id)) {
148
161
  return;
149
162
  }
150
163
 
@@ -168,10 +181,10 @@ const useGridSelection = (apiRef, props) => {
168
181
  apiRef.current.setSelectionModel(newSelection);
169
182
  }
170
183
  }
171
- }, [apiRef, isRowSelectable, logger, canHaveMultipleSelection]);
184
+ }, [apiRef, logger, canHaveMultipleSelection]);
172
185
  const selectRows = React.useCallback((ids, isSelected = true, resetSelection = false) => {
173
186
  logger.debug(`Setting selection for several rows`);
174
- const selectableIds = isRowSelectable ? ids.filter(id => isRowSelectable(apiRef.current.getRowParams(id))) : ids;
187
+ const selectableIds = ids.filter(id => apiRef.current.isRowSelectable(id));
175
188
  let newSelection;
176
189
 
177
190
  if (resetSelection) {
@@ -194,7 +207,7 @@ const useGridSelection = (apiRef, props) => {
194
207
  if (isSelectionValid) {
195
208
  apiRef.current.setSelectionModel(newSelection);
196
209
  }
197
- }, [apiRef, isRowSelectable, logger, canHaveMultipleSelection]);
210
+ }, [apiRef, logger, canHaveMultipleSelection]);
198
211
  const selectRowRange = React.useCallback(({
199
212
  startId,
200
213
  endId
@@ -218,7 +231,8 @@ const useGridSelection = (apiRef, props) => {
218
231
  selectRowRange,
219
232
  setSelectionModel,
220
233
  getSelectedRows,
221
- isRowSelected
234
+ isRowSelected,
235
+ isRowSelectable
222
236
  };
223
237
  (0, _useGridApiMethod.useGridApiMethod)(apiRef, selectionApi, 'GridSelectionApi');
224
238
  /**
@@ -285,6 +299,10 @@ const useGridSelection = (apiRef, props) => {
285
299
  }
286
300
  }
287
301
 
302
+ if (params.rowNode.isPinned) {
303
+ return;
304
+ }
305
+
288
306
  if (event.shiftKey && (canHaveMultipleSelection || checkboxSelection)) {
289
307
  expandMouseRowRangeSelection(params.id);
290
308
  } else {
@@ -399,13 +417,13 @@ const useGridSelection = (apiRef, props) => {
399
417
  React.useEffect(() => {
400
418
  if (isStateControlled) {
401
419
  return;
402
- } // isRowSelectable changed
420
+ } // props.isRowSelectable changed
403
421
 
404
422
 
405
423
  const currentSelection = (0, _gridSelectionSelector.gridSelectionStateSelector)(apiRef.current.state);
406
424
 
407
425
  if (isRowSelectable) {
408
- const newSelection = currentSelection.filter(id => isRowSelectable(apiRef.current.getRowParams(id)));
426
+ const newSelection = currentSelection.filter(id => isRowSelectable(id));
409
427
 
410
428
  if (newSelection.length < currentSelection.length) {
411
429
  apiRef.current.setSelectionModel(newSelection);
@@ -432,7 +450,7 @@ const useGridSelection = (apiRef, props) => {
432
450
  let isSelectable = true;
433
451
 
434
452
  if (isRowSelectable) {
435
- isSelectable = isRowSelectable(apiRef.current.getRowParams(id));
453
+ isSelectable = isRowSelectable(id);
436
454
  }
437
455
 
438
456
  return isSelectable && currentPageRowsLookup[id]; // Check if the row is in the current page
@@ -63,25 +63,24 @@ const parseSortItem = (sortItem, apiRef) => {
63
63
  comparator
64
64
  };
65
65
  };
66
+
66
67
  /**
67
68
  * Compare two rows according to a list of valid sort items.
68
69
  * The `row1Params` and `row2Params` must have the same length as `parsedSortItems`,
69
70
  * and each of their index must contain the `GridSortCellParams` of the sort item with the same index.
70
71
  * @param {GridParsedSortItem[]} parsedSortItems All the sort items with which we want to compare the rows.
71
- * @param {GridSortCellParams} row1Params The params of the 1st row for each sort item.
72
- * @param {GridSortCellParams} row2Params The params of the 2nd row for each sort item.
72
+ * @param {GridRowAggregatedSortingParams} row1 The node and params of the 1st row for each sort item.
73
+ * @param {GridRowAggregatedSortingParams} row2 The node and params of the 2nd row for each sort item.
73
74
  */
74
-
75
-
76
- const compareRows = (parsedSortItems, row1Params, row2Params) => {
75
+ const compareRows = (parsedSortItems, row1, row2) => {
77
76
  return parsedSortItems.reduce((res, item, index) => {
78
77
  if (res !== 0) {
79
78
  // return the results of the first comparator which distinguish the two rows
80
79
  return res;
81
80
  }
82
81
 
83
- const sortCellParams1 = row1Params[index];
84
- const sortCellParams2 = row2Params[index];
82
+ const sortCellParams1 = row1.params[index];
83
+ const sortCellParams2 = row2.params[index];
85
84
  res = item.comparator(sortCellParams1.value, sortCellParams2.value, sortCellParams1, sortCellParams2);
86
85
  return res;
87
86
  }, 0);
@@ -101,10 +100,10 @@ const buildAggregatedSortingApplier = (sortModel, apiRef) => {
101
100
  return null;
102
101
  }
103
102
 
104
- return rowList => rowList.map(value => ({
105
- value,
106
- params: comparatorList.map(el => el.getSortCellParams(value.id))
107
- })).sort((a, b) => compareRows(comparatorList, a.params, b.params)).map(row => row.value.id);
103
+ return rowList => rowList.map(node => ({
104
+ node,
105
+ params: comparatorList.map(el => el.getSortCellParams(node.id))
106
+ })).sort((a, b) => compareRows(comparatorList, a, b)).map(row => row.node.id);
108
107
  };
109
108
 
110
109
  exports.buildAggregatedSortingApplier = buildAggregatedSortingApplier;
@@ -59,6 +59,8 @@ const sortingStateInitializer = (state, props) => {
59
59
  exports.sortingStateInitializer = sortingStateInitializer;
60
60
 
61
61
  const useGridSorting = (apiRef, props) => {
62
+ var _props$initialState3, _props$initialState3$;
63
+
62
64
  const logger = (0, _useGridLogger.useGridLogger)(apiRef, 'useGridSorting');
63
65
  apiRef.current.unstable_registerControlState({
64
66
  stateId: 'sortModel',
@@ -182,10 +184,17 @@ const useGridSorting = (apiRef, props) => {
182
184
  * PRE-PROCESSING
183
185
  */
184
186
 
185
- const stateExportPreProcessing = React.useCallback(prevState => {
187
+ const stateExportPreProcessing = React.useCallback((prevState, context) => {
188
+ var _props$initialState2, _props$initialState2$;
189
+
186
190
  const sortModelToExport = (0, _gridSortingSelector.gridSortModelSelector)(apiRef);
191
+ const shouldExportSortModel = // Always export if the `exportOnlyDirtyModels` property is activated
192
+ !context.exportOnlyDirtyModels || // Always export if the model is controlled
193
+ props.sortModel != null || // Always export if the model has been initialized
194
+ ((_props$initialState2 = props.initialState) == null ? void 0 : (_props$initialState2$ = _props$initialState2.sorting) == null ? void 0 : _props$initialState2$.sortModel) != null || // Export if the model is not empty
195
+ sortModelToExport.length > 0;
187
196
 
188
- if (sortModelToExport.length === 0) {
197
+ if (!shouldExportSortModel) {
189
198
  return prevState;
190
199
  }
191
200
 
@@ -194,7 +203,7 @@ const useGridSorting = (apiRef, props) => {
194
203
  sortModel: sortModelToExport
195
204
  }
196
205
  });
197
- }, [apiRef]);
206
+ }, [apiRef, props.sortModel, (_props$initialState3 = props.initialState) == null ? void 0 : (_props$initialState3$ = _props$initialState3.sorting) == null ? void 0 : _props$initialState3$.sortModel]);
198
207
  const stateRestorePreProcessing = React.useCallback((params, context) => {
199
208
  var _context$stateToResto;
200
209
 
@@ -210,12 +219,39 @@ const useGridSorting = (apiRef, props) => {
210
219
  });
211
220
  }, [apiRef, props.disableMultipleColumnsSorting]);
212
221
  const flatSortingMethod = React.useCallback(params => {
222
+ const rowTree = (0, _rows.gridRowTreeSelector)(apiRef);
223
+
213
224
  if (!params.sortRowList) {
214
- return (0, _rows.gridRowIdsSelector)(apiRef);
225
+ const bodyRowIds = [];
226
+ const footerRowIds = [];
227
+ (0, _rows.gridRowIdsSelector)(apiRef).forEach(rowId => {
228
+ if (rowTree[rowId].isPinned) {
229
+ return;
230
+ }
231
+
232
+ if (rowTree[rowId].position === 'footer') {
233
+ footerRowIds.push(rowId);
234
+ } else {
235
+ bodyRowIds.push(rowId);
236
+ }
237
+ });
238
+ return [...bodyRowIds, ...footerRowIds];
215
239
  }
216
240
 
217
- const rowTree = (0, _rows.gridRowTreeSelector)(apiRef);
218
- return params.sortRowList(Object.values(rowTree));
241
+ const bodyRows = [];
242
+ const footerRowIds = [];
243
+ Object.values(rowTree).forEach(rowNode => {
244
+ if (rowNode.isPinned) {
245
+ return;
246
+ }
247
+
248
+ if (rowNode.position === 'footer') {
249
+ footerRowIds.push(rowNode.id);
250
+ } else {
251
+ bodyRows.push(rowNode);
252
+ }
253
+ });
254
+ return [...params.sortRowList(bodyRows), ...footerRowIds];
219
255
  }, [apiRef]);
220
256
  (0, _pipeProcessing.useGridRegisterPipeProcessor)(apiRef, 'exportState', stateExportPreProcessing);
221
257
  (0, _pipeProcessing.useGridRegisterPipeProcessor)(apiRef, 'restoreState', stateRestorePreProcessing);
@@ -14,8 +14,8 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
14
14
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
 
16
16
  const useGridStatePersistence = apiRef => {
17
- const exportState = React.useCallback(() => {
18
- const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {});
17
+ const exportState = React.useCallback((params = {}) => {
18
+ const stateToExport = apiRef.current.unstable_applyPipeProcessors('exportState', {}, params);
19
19
  return stateToExport;
20
20
  }, [apiRef]);
21
21
  const restoreState = React.useCallback(stateToRestore => {
@@ -207,10 +207,8 @@ const useGridVirtualScroller = props => {
207
207
  React.useEffect(() => {
208
208
  setContainerWidth(rootRef.current.clientWidth);
209
209
  }, [rowsMeta.currentPageTotalHeight]);
210
- const handleResize = React.useCallback(() => {
211
- if (rootRef.current) {
212
- setContainerWidth(rootRef.current.clientWidth);
213
- }
210
+ const handleResize = React.useCallback(params => {
211
+ setContainerWidth(params.width);
214
212
  }, []);
215
213
  (0, _useGridApiEventHandler.useGridApiEventHandler)(apiRef, 'resize', handleResize);
216
214
  const updateRenderZonePosition = React.useCallback(nextRenderContext => {
@@ -326,10 +324,11 @@ const useGridVirtualScroller = props => {
326
324
  minFirstColumn = renderZoneMinColumnIndex,
327
325
  maxLastColumn = renderZoneMaxColumnIndex,
328
326
  availableSpace = containerWidth,
329
- ignoreAutoHeight
327
+ ignoreAutoHeight,
328
+ rowIndexOffset = 0
330
329
  } = params;
331
330
 
332
- if (!currentPage.range || !nextRenderContext || availableSpace == null) {
331
+ if (!nextRenderContext || availableSpace == null) {
333
332
  return null;
334
333
  }
335
334
 
@@ -344,14 +343,31 @@ const useGridVirtualScroller = props => {
344
343
  });
345
344
  const renderedRows = [];
346
345
 
347
- for (let i = firstRowToRender; i < lastRowToRender; i += 1) {
348
- const row = currentPage.rows[i];
349
- renderedRows.push(row);
350
- apiRef.current.unstable_calculateColSpan({
351
- rowId: row.id,
352
- minFirstColumn,
353
- maxLastColumn
346
+ if (params.rows) {
347
+ params.rows.forEach(row => {
348
+ renderedRows.push(row);
349
+ apiRef.current.unstable_calculateColSpan({
350
+ rowId: row.id,
351
+ minFirstColumn,
352
+ maxLastColumn,
353
+ columns: visibleColumns
354
+ });
354
355
  });
356
+ } else {
357
+ if (!currentPage.range) {
358
+ return null;
359
+ }
360
+
361
+ for (let i = firstRowToRender; i < lastRowToRender; i += 1) {
362
+ const row = currentPage.rows[i];
363
+ renderedRows.push(row);
364
+ apiRef.current.unstable_calculateColSpan({
365
+ rowId: row.id,
366
+ minFirstColumn,
367
+ maxLastColumn,
368
+ columns: visibleColumns
369
+ });
370
+ }
355
371
  }
356
372
 
357
373
  const [initialFirstColumnToRender, lastColumnToRender] = getRenderableIndexes({
@@ -372,7 +388,7 @@ const useGridVirtualScroller = props => {
372
388
  const rows = [];
373
389
 
374
390
  for (let i = 0; i < renderedRows.length; i += 1) {
375
- var _rootProps$components;
391
+ var _currentPage$range5, _rootProps$components;
376
392
 
377
393
  const {
378
394
  id,
@@ -384,10 +400,8 @@ const useGridVirtualScroller = props => {
384
400
 
385
401
  if (selectedRowsLookup[id] == null) {
386
402
  isSelected = false;
387
- } else if (typeof rootProps.isRowSelectable === 'function') {
388
- isSelected = rootProps.isRowSelectable(apiRef.current.getRowParams(id));
389
403
  } else {
390
- isSelected = true;
404
+ isSelected = apiRef.current.isRowSelectable(id);
391
405
  }
392
406
 
393
407
  rows.push( /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.components.Row, (0, _extends2.default)({
@@ -405,7 +419,7 @@ const useGridVirtualScroller = props => {
405
419
  firstColumnToRender: firstColumnToRender,
406
420
  lastColumnToRender: lastColumnToRender,
407
421
  selected: isSelected,
408
- index: currentPage.range.firstRowIndex + firstRowToRender + i,
422
+ index: rowIndexOffset + ((currentPage == null ? void 0 : (_currentPage$range5 = currentPage.range) == null ? void 0 : _currentPage$range5.firstRowIndex) || 0) + firstRowToRender + i,
409
423
  containerWidth: availableSpace,
410
424
  isLastVisible: lastVisibleRowIndex
411
425
  }, typeof getRowProps === 'function' ? getRowProps(id, model) : {}, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.row), id));
@@ -34,7 +34,7 @@ const useGridNativeEventListener = (apiRef, ref, eventName, handler, options) =>
34
34
  targetElement = ref && ref.current ? ref.current : null;
35
35
  }
36
36
 
37
- if (targetElement && wrapHandler && eventName && !added) {
37
+ if (targetElement && eventName && !added) {
38
38
  logger.debug(`Binding native ${eventName} event`);
39
39
  targetElement.addEventListener(eventName, wrapHandler, options);
40
40
  const boundElem = targetElement;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.13.1
1
+ /** @license MUI v5.15.1
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.
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "GRID_DEFAULT_STRATEGY", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _strategyProcessing.GRID_DEFAULT_STRATEGY;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "GridColumnHeaders", {
7
13
  enumerable: true,
8
14
  get: function () {
@@ -39,6 +45,12 @@ Object.defineProperty(exports, "buildWarning", {
39
45
  return _warning.buildWarning;
40
46
  }
41
47
  });
48
+ Object.defineProperty(exports, "calculatePinnedRowsHeight", {
49
+ enumerable: true,
50
+ get: function () {
51
+ return _gridRowsUtils.calculatePinnedRowsHeight;
52
+ }
53
+ });
42
54
  Object.defineProperty(exports, "clamp", {
43
55
  enumerable: true,
44
56
  get: function () {
@@ -117,18 +129,48 @@ Object.defineProperty(exports, "getColumnsToExport", {
117
129
  return _utils.getColumnsToExport;
118
130
  }
119
131
  });
132
+ Object.defineProperty(exports, "getRowIdFromRowModel", {
133
+ enumerable: true,
134
+ get: function () {
135
+ return _gridRowsUtils.getRowIdFromRowModel;
136
+ }
137
+ });
138
+ Object.defineProperty(exports, "gridAdditionalRowGroupsSelector", {
139
+ enumerable: true,
140
+ get: function () {
141
+ return _gridRowsSelector.gridAdditionalRowGroupsSelector;
142
+ }
143
+ });
144
+ Object.defineProperty(exports, "gridPinnedRowsSelector", {
145
+ enumerable: true,
146
+ get: function () {
147
+ return _gridRowsSelector.gridPinnedRowsSelector;
148
+ }
149
+ });
120
150
  Object.defineProperty(exports, "isDeepEqual", {
121
151
  enumerable: true,
122
152
  get: function () {
123
153
  return _utils2.isDeepEqual;
124
154
  }
125
155
  });
156
+ Object.defineProperty(exports, "isFunction", {
157
+ enumerable: true,
158
+ get: function () {
159
+ return _utils2.isFunction;
160
+ }
161
+ });
126
162
  Object.defineProperty(exports, "isNavigationKey", {
127
163
  enumerable: true,
128
164
  get: function () {
129
165
  return _keyboardUtils.isNavigationKey;
130
166
  }
131
167
  });
168
+ Object.defineProperty(exports, "isNumber", {
169
+ enumerable: true,
170
+ get: function () {
171
+ return _utils2.isNumber;
172
+ }
173
+ });
132
174
  Object.defineProperty(exports, "paginationStateInitializer", {
133
175
  enumerable: true,
134
176
  get: function () {
@@ -418,6 +460,10 @@ var _useGridRowsMeta = require("../hooks/features/rows/useGridRowsMeta");
418
460
 
419
461
  var _useGridParamsApi = require("../hooks/features/rows/useGridParamsApi");
420
462
 
463
+ var _gridRowsUtils = require("../hooks/features/rows/gridRowsUtils");
464
+
465
+ var _gridRowsSelector = require("../hooks/features/rows/gridRowsSelector");
466
+
421
467
  var _useGridSelection = require("../hooks/features/selection/useGridSelection");
422
468
 
423
469
  var _useGridSelectionPreProcessors = require("../hooks/features/selection/useGridSelectionPreProcessors");
@@ -30,7 +30,7 @@ const arSDGrid = {
30
30
  toolbarFiltersTooltipShow: 'اظهر المرشِحات',
31
31
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} من المرشِحات النشطة` : `مرشِح نشط`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
33
+ // toolbarQuickFilterPlaceholder: 'Search',
34
34
  // toolbarQuickFilterLabel: 'Search',
35
35
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
36
36
  // Export selector toolbar button text
@@ -120,6 +120,13 @@ const arSDGrid = {
120
120
  expandDetailPanel: 'توسيع',
121
121
  collapseDetailPanel: 'طوي' // Row reordering text
122
122
  // rowReorderingHeaderName: 'Row reordering',
123
+ // Aggregation
124
+ // aggregationMenuItemHeader: 'Aggregation',
125
+ // aggregationFunctionLabelSum: 'sum',
126
+ // aggregationFunctionLabelAvg: 'avg',
127
+ // aggregationFunctionLabelMin: 'min',
128
+ // aggregationFunctionLabelMax: 'max',
129
+ // aggregationFunctionLabelSize: 'size',
123
130
 
124
131
  };
125
132
  const arSD = (0, _getGridLocalization.getGridLocalization)(arSDGrid, _locale.arSD);
@@ -30,7 +30,7 @@ const bgBGGrid = {
30
30
  toolbarFiltersTooltipShow: 'Покажи Филтрите',
31
31
  toolbarFiltersTooltipActive: count => `${count} активни филтри`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
33
+ // toolbarQuickFilterPlaceholder: 'Search',
34
34
  // toolbarQuickFilterLabel: 'Search',
35
35
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
36
36
  // Export selector toolbar button text
@@ -120,6 +120,13 @@ const bgBGGrid = {
120
120
  expandDetailPanel: 'Разгъване',
121
121
  collapseDetailPanel: 'Свиване' // Row reordering text
122
122
  // rowReorderingHeaderName: 'Row reordering',
123
+ // Aggregation
124
+ // aggregationMenuItemHeader: 'Aggregation',
125
+ // aggregationFunctionLabelSum: 'sum',
126
+ // aggregationFunctionLabelAvg: 'avg',
127
+ // aggregationFunctionLabelMin: 'min',
128
+ // aggregationFunctionLabelMax: 'max',
129
+ // aggregationFunctionLabelSize: 'size',
123
130
 
124
131
  };
125
132
  const bgBG = (0, _getGridLocalization.getGridLocalization)(bgBGGrid, _locale.bgBG);
@@ -40,7 +40,7 @@ const csCZGrid = {
40
40
  return `${count} ${pluralForm}`;
41
41
  },
42
42
  // Quick filter toolbar field
43
- // toolbarQuickFilterPlaceholder: 'Search...',
43
+ // toolbarQuickFilterPlaceholder: 'Search',
44
44
  // toolbarQuickFilterLabel: 'Search',
45
45
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
46
46
  // Export selector toolbar button text
@@ -155,6 +155,13 @@ const csCZGrid = {
155
155
  // collapseDetailPanel: 'Collapse',
156
156
  // Row reordering text
157
157
  // rowReorderingHeaderName: 'Row reordering',
158
+ // Aggregation
159
+ // aggregationMenuItemHeader: 'Aggregation',
160
+ // aggregationFunctionLabelSum: 'sum',
161
+ // aggregationFunctionLabelAvg: 'avg',
162
+ // aggregationFunctionLabelMin: 'min',
163
+ // aggregationFunctionLabelMax: 'max',
164
+ // aggregationFunctionLabelSize: 'size',
158
165
 
159
166
  };
160
167
  const csCZ = (0, _getGridLocalization.getGridLocalization)(csCZGrid, _locale.csCZ);
@@ -30,7 +30,7 @@ const daDKGrid = {
30
30
  toolbarFiltersTooltipShow: 'Vis filtre',
31
31
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filtre` : `${count} aktivt filter`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
33
+ // toolbarQuickFilterPlaceholder: 'Search',
34
34
  // toolbarQuickFilterLabel: 'Search',
35
35
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
36
36
  // Export selector toolbar button text
@@ -120,6 +120,13 @@ const daDKGrid = {
120
120
  expandDetailPanel: 'Udvid',
121
121
  collapseDetailPanel: 'Kollaps' // Row reordering text
122
122
  // rowReorderingHeaderName: 'Row reordering',
123
+ // Aggregation
124
+ // aggregationMenuItemHeader: 'Aggregation',
125
+ // aggregationFunctionLabelSum: 'sum',
126
+ // aggregationFunctionLabelAvg: 'avg',
127
+ // aggregationFunctionLabelMin: 'min',
128
+ // aggregationFunctionLabelMax: 'max',
129
+ // aggregationFunctionLabelSize: 'size',
123
130
 
124
131
  };
125
132
  const daDK = (0, _getGridLocalization.getGridLocalization)(daDKGrid, _locale.daDK);
@@ -30,7 +30,7 @@ const deDEGrid = {
30
30
  toolbarFiltersTooltipShow: 'Zeige Filter',
31
31
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive Filter` : `${count} aktiver Filter`,
32
32
  // Quick filter toolbar field
33
- toolbarQuickFilterPlaceholder: 'Suchen...',
33
+ toolbarQuickFilterPlaceholder: 'Suchen',
34
34
  toolbarQuickFilterLabel: 'Suchen',
35
35
  toolbarQuickFilterDeleteIconLabel: 'Löschen',
36
36
  // Export selector toolbar button text
@@ -120,7 +120,14 @@ const deDEGrid = {
120
120
  expandDetailPanel: 'Aufklappen',
121
121
  collapseDetailPanel: 'Zuklappen',
122
122
  // Row reordering text
123
- rowReorderingHeaderName: 'Reihen neu ordnen'
123
+ rowReorderingHeaderName: 'Reihen neu ordnen',
124
+ // Aggregation
125
+ aggregationMenuItemHeader: 'Aggregation',
126
+ aggregationFunctionLabelSum: 'Summe',
127
+ aggregationFunctionLabelAvg: 'Mittelwert',
128
+ aggregationFunctionLabelMin: 'Minimum',
129
+ aggregationFunctionLabelMax: 'Maximum',
130
+ aggregationFunctionLabelSize: 'Anzahl'
124
131
  };
125
132
  const deDE = (0, _getGridLocalization.getGridLocalization)(deDEGrid, _locale.deDE);
126
133
  exports.deDE = deDE;
@@ -28,7 +28,7 @@ const elGRGrid = {
28
28
  toolbarFiltersTooltipShow: 'Εμφάνιση φίλτρων',
29
29
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} ενεργά φίλτρα` : `${count} ενεργό φίλτρο`,
30
30
  // Quick filter toolbar field
31
- // toolbarQuickFilterPlaceholder: 'Search...',
31
+ // toolbarQuickFilterPlaceholder: 'Search',
32
32
  // toolbarQuickFilterLabel: 'Search',
33
33
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
34
34
  // Export selector toolbar button text
@@ -118,6 +118,13 @@ const elGRGrid = {
118
118
  // collapseDetailPanel: 'Collapse',
119
119
  // Row reordering text
120
120
  // rowReorderingHeaderName: 'Row reordering',
121
+ // Aggregation
122
+ // aggregationMenuItemHeader: 'Aggregation',
123
+ // aggregationFunctionLabelSum: 'sum',
124
+ // aggregationFunctionLabelAvg: 'avg',
125
+ // aggregationFunctionLabelMin: 'min',
126
+ // aggregationFunctionLabelMax: 'max',
127
+ // aggregationFunctionLabelSize: 'size',
121
128
 
122
129
  };
123
130
  const elGR = (0, _getGridLocalization.getGridLocalization)(elGRGrid);
@@ -30,7 +30,7 @@ const esESGrid = {
30
30
  toolbarFiltersTooltipShow: 'Mostrar filtros',
31
31
  toolbarFiltersTooltipActive: count => count > 1 ? `${count} filtros activos` : `${count} filtro activo`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
33
+ // toolbarQuickFilterPlaceholder: 'Search',
34
34
  // toolbarQuickFilterLabel: 'Search',
35
35
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
36
36
  // Export selector toolbar button text
@@ -120,6 +120,13 @@ const esESGrid = {
120
120
  // collapseDetailPanel: 'Collapse',
121
121
  // Row reordering text
122
122
  // rowReorderingHeaderName: 'Row reordering',
123
+ // Aggregation
124
+ // aggregationMenuItemHeader: 'Aggregation',
125
+ // aggregationFunctionLabelSum: 'sum',
126
+ // aggregationFunctionLabelAvg: 'avg',
127
+ // aggregationFunctionLabelMin: 'min',
128
+ // aggregationFunctionLabelMax: 'max',
129
+ // aggregationFunctionLabelSize: 'size',
123
130
 
124
131
  };
125
132
  const esES = (0, _getGridLocalization.getGridLocalization)(esESGrid, _locale.esES);
@@ -30,7 +30,7 @@ const faIRGrid = {
30
30
  toolbarFiltersTooltipShow: 'نمایش فیلترها',
31
31
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} فیلترهای فعال` : `${count} فیلتر فعال`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
33
+ // toolbarQuickFilterPlaceholder: 'Search',
34
34
  // toolbarQuickFilterLabel: 'Search',
35
35
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
36
36
  // Export selector toolbar button text
@@ -120,6 +120,13 @@ const faIRGrid = {
120
120
  expandDetailPanel: 'بازکردن پنل جزئیات',
121
121
  collapseDetailPanel: 'بستن پنل جزئیات' // Row reordering text
122
122
  // rowReorderingHeaderName: 'Row reordering',
123
+ // Aggregation
124
+ // aggregationMenuItemHeader: 'Aggregation',
125
+ // aggregationFunctionLabelSum: 'sum',
126
+ // aggregationFunctionLabelAvg: 'avg',
127
+ // aggregationFunctionLabelMin: 'min',
128
+ // aggregationFunctionLabelMax: 'max',
129
+ // aggregationFunctionLabelSize: 'size',
123
130
 
124
131
  };
125
132
  const faIR = (0, _getGridLocalization.getGridLocalization)(faIRGrid, _locale.faIR);
@@ -30,7 +30,7 @@ const fiFIGrid = {
30
30
  toolbarFiltersTooltipShow: 'Näytä suodattimet',
31
31
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktiivista suodatinta` : `${count} aktiivinen suodatin`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
33
+ // toolbarQuickFilterPlaceholder: 'Search',
34
34
  // toolbarQuickFilterLabel: 'Search',
35
35
  // toolbarQuickFilterDeleteIconLabel: 'Clear',
36
36
  // Export selector toolbar button text
@@ -120,6 +120,13 @@ const fiFIGrid = {
120
120
  // collapseDetailPanel: 'Collapse',
121
121
  // Row reordering text
122
122
  // rowReorderingHeaderName: 'Row reordering',
123
+ // Aggregation
124
+ // aggregationMenuItemHeader: 'Aggregation',
125
+ // aggregationFunctionLabelSum: 'sum',
126
+ // aggregationFunctionLabelAvg: 'avg',
127
+ // aggregationFunctionLabelMin: 'min',
128
+ // aggregationFunctionLabelMax: 'max',
129
+ // aggregationFunctionLabelSize: 'size',
123
130
 
124
131
  };
125
132
  const fiFI = (0, _getGridLocalization.getGridLocalization)(fiFIGrid, _locale.fiFI);