@mui/x-data-grid-pro 5.5.1 โ†’ 5.7.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 (356) hide show
  1. package/CHANGELOG.md +229 -0
  2. package/DataGridPro/DataGridPro.d.ts +3 -0
  3. package/DataGridPro/DataGridPro.js +915 -0
  4. package/DataGridPro/index.d.ts +2 -0
  5. package/DataGridPro/index.js +2 -0
  6. package/DataGridPro/package.json +6 -0
  7. package/DataGridPro/useDataGridProComponent.d.ts +4 -0
  8. package/DataGridPro/useDataGridProComponent.js +84 -0
  9. package/DataGridPro/useDataGridProProps.d.ts +6 -0
  10. package/DataGridPro/useDataGridProProps.js +49 -0
  11. package/components/DataGridProColumnHeaders.d.ts +6 -0
  12. package/components/DataGridProColumnHeaders.js +165 -0
  13. package/components/DataGridProVirtualScroller.d.ts +8 -0
  14. package/components/DataGridProVirtualScroller.js +270 -0
  15. package/components/GridColumnPinningMenuItems.d.ts +11 -0
  16. package/components/GridColumnPinningMenuItems.js +71 -0
  17. package/components/GridDetailPanelToggleCell.d.ts +7 -0
  18. package/components/GridDetailPanelToggleCell.js +125 -0
  19. package/components/GridGroupingColumnLeafCell.d.ts +4 -0
  20. package/components/GridGroupingColumnLeafCell.js +22 -0
  21. package/components/GridGroupingCriteriaCell.d.ts +10 -0
  22. package/components/GridGroupingCriteriaCell.js +150 -0
  23. package/components/GridRowGroupableColumnMenuItems.d.ts +11 -0
  24. package/components/GridRowGroupableColumnMenuItems.js +63 -0
  25. package/components/GridRowGroupingColumnMenuItems.d.ts +11 -0
  26. package/components/GridRowGroupingColumnMenuItems.js +58 -0
  27. package/components/GridTreeDataGroupingCell.d.ts +10 -0
  28. package/components/GridTreeDataGroupingCell.js +160 -0
  29. package/components/index.d.ts +3 -0
  30. package/components/index.js +4 -0
  31. package/components/package.json +6 -0
  32. package/hooks/features/columnPinning/gridColumnPinningInterface.d.ts +42 -0
  33. package/hooks/features/columnPinning/gridColumnPinningInterface.js +11 -0
  34. package/hooks/features/columnPinning/gridColumnPinningSelector.d.ts +2 -0
  35. package/hooks/features/columnPinning/gridColumnPinningSelector.js +1 -0
  36. package/hooks/features/columnPinning/index.d.ts +2 -0
  37. package/hooks/features/columnPinning/index.js +2 -0
  38. package/hooks/features/columnPinning/useGridColumnPinning.d.ts +6 -0
  39. package/hooks/features/columnPinning/useGridColumnPinning.js +274 -0
  40. package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.d.ts +4 -0
  41. package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +45 -0
  42. package/hooks/features/columnReorder/columnReorderInterfaces.d.ts +6 -0
  43. package/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
  44. package/hooks/features/columnReorder/columnReorderSelector.d.ts +3 -0
  45. package/hooks/features/columnReorder/columnReorderSelector.js +3 -0
  46. package/hooks/features/columnReorder/index.d.ts +2 -0
  47. package/hooks/features/columnReorder/index.js +2 -0
  48. package/hooks/features/columnReorder/useGridColumnReorder.d.ts +10 -0
  49. package/hooks/features/columnReorder/useGridColumnReorder.js +165 -0
  50. package/hooks/features/columnResize/columnResizeSelector.d.ts +3 -0
  51. package/hooks/features/columnResize/columnResizeSelector.js +3 -0
  52. package/hooks/features/columnResize/columnResizeState.d.ts +3 -0
  53. package/hooks/features/columnResize/columnResizeState.js +1 -0
  54. package/hooks/features/columnResize/index.d.ts +2 -0
  55. package/hooks/features/columnResize/index.js +2 -0
  56. package/hooks/features/columnResize/useGridColumnResize.d.ts +11 -0
  57. package/hooks/features/columnResize/useGridColumnResize.js +305 -0
  58. package/hooks/features/detailPanel/gridDetailPanelInterface.d.ts +28 -0
  59. package/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
  60. package/hooks/features/detailPanel/gridDetailPanelSelector.d.ts +5 -0
  61. package/hooks/features/detailPanel/gridDetailPanelSelector.js +3 -0
  62. package/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts +3 -0
  63. package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +26 -0
  64. package/hooks/features/detailPanel/index.d.ts +3 -0
  65. package/hooks/features/detailPanel/index.js +3 -0
  66. package/hooks/features/detailPanel/useGridDetailPanel.d.ts +6 -0
  67. package/hooks/features/detailPanel/useGridDetailPanel.js +109 -0
  68. package/hooks/features/detailPanel/useGridDetailPanelCache.d.ts +4 -0
  69. package/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
  70. package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.d.ts +4 -0
  71. package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +28 -0
  72. package/hooks/features/index.d.ts +6 -0
  73. package/hooks/features/index.js +7 -0
  74. package/hooks/features/infiniteLoader/useGridInfiniteLoader.d.ts +10 -0
  75. package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +52 -0
  76. package/hooks/features/rowGrouping/createGroupingColDef.d.ts +43 -0
  77. package/hooks/features/rowGrouping/createGroupingColDef.js +318 -0
  78. package/hooks/features/rowGrouping/gridRowGroupingInterfaces.d.ts +37 -0
  79. package/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
  80. package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +4 -0
  81. package/hooks/features/rowGrouping/gridRowGroupingSelector.js +5 -0
  82. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +27 -0
  83. package/hooks/features/rowGrouping/gridRowGroupingUtils.js +139 -0
  84. package/hooks/features/rowGrouping/index.d.ts +3 -0
  85. package/hooks/features/rowGrouping/index.js +3 -0
  86. package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +13 -0
  87. package/hooks/features/rowGrouping/useGridRowGrouping.js +204 -0
  88. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +4 -0
  89. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +203 -0
  90. package/hooks/features/treeData/gridTreeDataGroupColDef.d.ts +7 -0
  91. package/hooks/features/treeData/gridTreeDataGroupColDef.js +22 -0
  92. package/hooks/features/treeData/gridTreeDataUtils.d.ts +15 -0
  93. package/hooks/features/treeData/gridTreeDataUtils.js +88 -0
  94. package/hooks/features/treeData/index.d.ts +1 -0
  95. package/hooks/features/treeData/index.js +1 -0
  96. package/hooks/features/treeData/useGridTreeData.d.ts +6 -0
  97. package/hooks/features/treeData/useGridTreeData.js +29 -0
  98. package/hooks/features/treeData/useGridTreeDataPreProcessors.d.ts +4 -0
  99. package/hooks/features/treeData/useGridTreeDataPreProcessors.js +138 -0
  100. package/hooks/index.d.ts +1 -0
  101. package/hooks/index.js +1 -0
  102. package/hooks/package.json +6 -0
  103. package/hooks/utils/useGridApiContext.d.ts +4 -0
  104. package/hooks/utils/useGridApiContext.js +2 -0
  105. package/hooks/utils/useGridApiRef.d.ts +4 -0
  106. package/hooks/utils/useGridApiRef.js +2 -0
  107. package/hooks/utils/useGridRootProps.d.ts +2 -0
  108. package/hooks/utils/useGridRootProps.js +2 -0
  109. package/index.d.ts +16 -0
  110. package/index.js +20 -0
  111. package/legacy/DataGridPro/DataGridPro.js +915 -0
  112. package/legacy/DataGridPro/index.js +2 -0
  113. package/legacy/DataGridPro/useDataGridProComponent.js +84 -0
  114. package/legacy/DataGridPro/useDataGridProProps.js +58 -0
  115. package/legacy/components/DataGridProColumnHeaders.js +173 -0
  116. package/legacy/components/DataGridProVirtualScroller.js +287 -0
  117. package/legacy/components/GridColumnPinningMenuItems.js +71 -0
  118. package/legacy/components/GridDetailPanelToggleCell.js +121 -0
  119. package/legacy/components/GridGroupingColumnLeafCell.js +20 -0
  120. package/legacy/components/GridGroupingCriteriaCell.js +146 -0
  121. package/legacy/components/GridRowGroupableColumnMenuItems.js +61 -0
  122. package/legacy/components/GridRowGroupingColumnMenuItems.js +56 -0
  123. package/legacy/components/GridTreeDataGroupingCell.js +156 -0
  124. package/legacy/components/index.js +4 -0
  125. package/legacy/hooks/features/columnPinning/gridColumnPinningInterface.js +11 -0
  126. package/legacy/hooks/features/columnPinning/gridColumnPinningSelector.js +3 -0
  127. package/legacy/hooks/features/columnPinning/index.js +2 -0
  128. package/legacy/hooks/features/columnPinning/useGridColumnPinning.js +298 -0
  129. package/legacy/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +48 -0
  130. package/legacy/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
  131. package/legacy/hooks/features/columnReorder/columnReorderSelector.js +7 -0
  132. package/legacy/hooks/features/columnReorder/index.js +2 -0
  133. package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +171 -0
  134. package/legacy/hooks/features/columnResize/columnResizeSelector.js +7 -0
  135. package/legacy/hooks/features/columnResize/columnResizeState.js +1 -0
  136. package/legacy/hooks/features/columnResize/index.js +2 -0
  137. package/legacy/hooks/features/columnResize/useGridColumnResize.js +310 -0
  138. package/legacy/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
  139. package/legacy/hooks/features/detailPanel/gridDetailPanelSelector.js +9 -0
  140. package/legacy/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +28 -0
  141. package/legacy/hooks/features/detailPanel/index.js +3 -0
  142. package/legacy/hooks/features/detailPanel/useGridDetailPanel.js +114 -0
  143. package/legacy/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
  144. package/legacy/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +31 -0
  145. package/legacy/hooks/features/index.js +7 -0
  146. package/legacy/hooks/features/infiniteLoader/useGridInfiniteLoader.js +51 -0
  147. package/legacy/hooks/features/rowGrouping/createGroupingColDef.js +319 -0
  148. package/legacy/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
  149. package/legacy/hooks/features/rowGrouping/gridRowGroupingSelector.js +13 -0
  150. package/legacy/hooks/features/rowGrouping/gridRowGroupingUtils.js +147 -0
  151. package/legacy/hooks/features/rowGrouping/index.js +3 -0
  152. package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +210 -0
  153. package/legacy/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +217 -0
  154. package/legacy/hooks/features/treeData/gridTreeDataGroupColDef.js +24 -0
  155. package/legacy/hooks/features/treeData/gridTreeDataUtils.js +86 -0
  156. package/legacy/hooks/features/treeData/index.js +1 -0
  157. package/legacy/hooks/features/treeData/useGridTreeData.js +29 -0
  158. package/legacy/hooks/features/treeData/useGridTreeDataPreProcessors.js +153 -0
  159. package/legacy/hooks/index.js +1 -0
  160. package/legacy/hooks/utils/useGridApiContext.js +2 -0
  161. package/legacy/hooks/utils/useGridApiRef.js +2 -0
  162. package/legacy/hooks/utils/useGridRootProps.js +2 -0
  163. package/legacy/index.js +20 -0
  164. package/legacy/models/dataGridProProps.js +1 -0
  165. package/legacy/models/gridApiPro.js +1 -0
  166. package/legacy/models/gridGroupingColDefOverride.js +1 -0
  167. package/legacy/models/gridGroupingValueGetterParams.js +1 -0
  168. package/legacy/models/gridRowScrollEndParams.js +1 -0
  169. package/legacy/models/gridStatePro.js +1 -0
  170. package/legacy/models/index.js +4 -0
  171. package/legacy/themeAugmentation/index.js +3 -0
  172. package/legacy/themeAugmentation/overrides.js +1 -0
  173. package/legacy/themeAugmentation/props.js +1 -0
  174. package/legacy/typeOverloads/modules.js +1 -0
  175. package/legacy/typeOverloads/reexports.js +6 -0
  176. package/legacy/utils/domUtils.js +19 -0
  177. package/legacy/utils/releaseInfo.js +15 -0
  178. package/legacy/utils/tree/buildRowTree.js +188 -0
  179. package/legacy/utils/tree/sortRowTree.js +63 -0
  180. package/models/dataGridProProps.d.ts +174 -0
  181. package/models/dataGridProProps.js +1 -0
  182. package/models/gridApiPro.d.ts +12 -0
  183. package/models/gridApiPro.js +1 -0
  184. package/models/gridGroupingColDefOverride.d.ts +30 -0
  185. package/models/gridGroupingColDefOverride.js +1 -0
  186. package/models/gridGroupingValueGetterParams.d.ts +31 -0
  187. package/models/gridGroupingValueGetterParams.js +1 -0
  188. package/models/gridRowScrollEndParams.d.ts +18 -0
  189. package/models/gridRowScrollEndParams.js +1 -0
  190. package/models/gridStatePro.d.ts +20 -0
  191. package/models/gridStatePro.js +1 -0
  192. package/models/index.d.ts +4 -0
  193. package/models/index.js +4 -0
  194. package/models/package.json +6 -0
  195. package/modern/DataGridPro/DataGridPro.js +915 -0
  196. package/modern/DataGridPro/index.js +2 -0
  197. package/modern/DataGridPro/useDataGridProComponent.js +82 -0
  198. package/modern/DataGridPro/useDataGridProProps.js +45 -0
  199. package/modern/components/DataGridProColumnHeaders.js +163 -0
  200. package/modern/components/DataGridProVirtualScroller.js +268 -0
  201. package/modern/components/GridColumnPinningMenuItems.js +71 -0
  202. package/modern/components/GridDetailPanelToggleCell.js +125 -0
  203. package/modern/components/GridGroupingColumnLeafCell.js +20 -0
  204. package/modern/components/GridGroupingCriteriaCell.js +148 -0
  205. package/modern/components/GridRowGroupableColumnMenuItems.js +61 -0
  206. package/modern/components/GridRowGroupingColumnMenuItems.js +56 -0
  207. package/modern/components/GridTreeDataGroupingCell.js +158 -0
  208. package/modern/components/index.js +4 -0
  209. package/modern/hooks/features/columnPinning/gridColumnPinningInterface.js +11 -0
  210. package/modern/hooks/features/columnPinning/gridColumnPinningSelector.js +1 -0
  211. package/modern/hooks/features/columnPinning/index.js +2 -0
  212. package/modern/hooks/features/columnPinning/useGridColumnPinning.js +268 -0
  213. package/modern/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +45 -0
  214. package/modern/hooks/features/columnReorder/columnReorderInterfaces.js +1 -0
  215. package/modern/hooks/features/columnReorder/columnReorderSelector.js +3 -0
  216. package/modern/hooks/features/columnReorder/index.js +2 -0
  217. package/modern/hooks/features/columnReorder/useGridColumnReorder.js +165 -0
  218. package/modern/hooks/features/columnResize/columnResizeSelector.js +3 -0
  219. package/modern/hooks/features/columnResize/columnResizeState.js +1 -0
  220. package/modern/hooks/features/columnResize/index.js +2 -0
  221. package/modern/hooks/features/columnResize/useGridColumnResize.js +295 -0
  222. package/modern/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -0
  223. package/modern/hooks/features/detailPanel/gridDetailPanelSelector.js +3 -0
  224. package/modern/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +26 -0
  225. package/modern/hooks/features/detailPanel/index.js +3 -0
  226. package/modern/hooks/features/detailPanel/useGridDetailPanel.js +105 -0
  227. package/modern/hooks/features/detailPanel/useGridDetailPanelCache.js +57 -0
  228. package/modern/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +28 -0
  229. package/modern/hooks/features/index.js +7 -0
  230. package/modern/hooks/features/infiniteLoader/useGridInfiniteLoader.js +52 -0
  231. package/modern/hooks/features/rowGrouping/createGroupingColDef.js +302 -0
  232. package/modern/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +1 -0
  233. package/modern/hooks/features/rowGrouping/gridRowGroupingSelector.js +5 -0
  234. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +137 -0
  235. package/modern/hooks/features/rowGrouping/index.js +3 -0
  236. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +196 -0
  237. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +203 -0
  238. package/modern/hooks/features/treeData/gridTreeDataGroupColDef.js +22 -0
  239. package/modern/hooks/features/treeData/gridTreeDataUtils.js +84 -0
  240. package/modern/hooks/features/treeData/index.js +1 -0
  241. package/modern/hooks/features/treeData/useGridTreeData.js +27 -0
  242. package/modern/hooks/features/treeData/useGridTreeDataPreProcessors.js +136 -0
  243. package/modern/hooks/index.js +1 -0
  244. package/modern/hooks/utils/useGridApiContext.js +2 -0
  245. package/modern/hooks/utils/useGridApiRef.js +2 -0
  246. package/modern/hooks/utils/useGridRootProps.js +2 -0
  247. package/modern/index.js +20 -0
  248. package/modern/models/dataGridProProps.js +1 -0
  249. package/modern/models/gridApiPro.js +1 -0
  250. package/modern/models/gridGroupingColDefOverride.js +1 -0
  251. package/modern/models/gridGroupingValueGetterParams.js +1 -0
  252. package/modern/models/gridRowScrollEndParams.js +1 -0
  253. package/modern/models/gridStatePro.js +1 -0
  254. package/modern/models/index.js +4 -0
  255. package/modern/themeAugmentation/index.js +3 -0
  256. package/modern/themeAugmentation/overrides.js +1 -0
  257. package/modern/themeAugmentation/props.js +1 -0
  258. package/modern/typeOverloads/modules.js +1 -0
  259. package/modern/typeOverloads/reexports.js +6 -0
  260. package/modern/utils/domUtils.js +19 -0
  261. package/modern/utils/releaseInfo.js +15 -0
  262. package/modern/utils/tree/buildRowTree.js +167 -0
  263. package/modern/utils/tree/sortRowTree.js +60 -0
  264. package/node/DataGridPro/DataGridPro.js +939 -0
  265. package/node/DataGridPro/index.js +30 -0
  266. package/node/DataGridPro/useDataGridProComponent.js +106 -0
  267. package/node/DataGridPro/useDataGridProProps.js +69 -0
  268. package/node/components/DataGridProColumnHeaders.js +189 -0
  269. package/node/components/DataGridProVirtualScroller.js +297 -0
  270. package/node/components/GridColumnPinningMenuItems.js +88 -0
  271. package/node/components/GridDetailPanelToggleCell.js +146 -0
  272. package/node/components/GridGroupingColumnLeafCell.js +38 -0
  273. package/node/components/GridGroupingCriteriaCell.js +170 -0
  274. package/node/components/GridRowGroupableColumnMenuItems.js +82 -0
  275. package/node/components/GridRowGroupingColumnMenuItems.js +78 -0
  276. package/node/components/GridTreeDataGroupingCell.js +181 -0
  277. package/node/components/index.js +44 -0
  278. package/node/hooks/features/columnPinning/gridColumnPinningInterface.js +17 -0
  279. package/node/hooks/features/columnPinning/gridColumnPinningSelector.js +10 -0
  280. package/node/hooks/features/columnPinning/index.js +31 -0
  281. package/node/hooks/features/columnPinning/useGridColumnPinning.js +297 -0
  282. package/node/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +66 -0
  283. package/node/hooks/features/columnReorder/columnReorderInterfaces.js +5 -0
  284. package/node/hooks/features/columnReorder/columnReorderSelector.js +14 -0
  285. package/node/hooks/features/columnReorder/index.js +18 -0
  286. package/node/hooks/features/columnReorder/useGridColumnReorder.js +188 -0
  287. package/node/hooks/features/columnResize/columnResizeSelector.js +14 -0
  288. package/node/hooks/features/columnResize/columnResizeState.js +5 -0
  289. package/node/hooks/features/columnResize/index.js +31 -0
  290. package/node/hooks/features/columnResize/useGridColumnResize.js +329 -0
  291. package/node/hooks/features/detailPanel/gridDetailPanelInterface.js +5 -0
  292. package/node/hooks/features/detailPanel/gridDetailPanelSelector.js +18 -0
  293. package/node/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +47 -0
  294. package/node/hooks/features/detailPanel/index.js +44 -0
  295. package/node/hooks/features/detailPanel/useGridDetailPanel.js +133 -0
  296. package/node/hooks/features/detailPanel/useGridDetailPanelCache.js +74 -0
  297. package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +44 -0
  298. package/node/hooks/features/index.js +83 -0
  299. package/node/hooks/features/infiniteLoader/useGridInfiniteLoader.js +67 -0
  300. package/node/hooks/features/rowGrouping/createGroupingColDef.js +341 -0
  301. package/node/hooks/features/rowGrouping/gridRowGroupingInterfaces.js +5 -0
  302. package/node/hooks/features/rowGrouping/gridRowGroupingSelector.js +18 -0
  303. package/node/hooks/features/rowGrouping/gridRowGroupingUtils.js +172 -0
  304. package/node/hooks/features/rowGrouping/index.js +51 -0
  305. package/node/hooks/features/rowGrouping/useGridRowGrouping.js +232 -0
  306. package/node/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +227 -0
  307. package/node/hooks/features/treeData/gridTreeDataGroupColDef.js +35 -0
  308. package/node/hooks/features/treeData/gridTreeDataUtils.js +98 -0
  309. package/node/hooks/features/treeData/index.js +13 -0
  310. package/node/hooks/features/treeData/useGridTreeData.js +43 -0
  311. package/node/hooks/features/treeData/useGridTreeDataPreProcessors.js +164 -0
  312. package/node/hooks/index.js +18 -0
  313. package/node/hooks/utils/useGridApiContext.js +11 -0
  314. package/node/hooks/utils/useGridApiRef.js +11 -0
  315. package/node/hooks/utils/useGridRootProps.js +11 -0
  316. package/node/index.js +214 -0
  317. package/node/models/dataGridProProps.js +5 -0
  318. package/node/models/gridApiPro.js +5 -0
  319. package/node/models/gridGroupingColDefOverride.js +5 -0
  320. package/node/models/gridGroupingValueGetterParams.js +5 -0
  321. package/node/models/gridRowScrollEndParams.js +5 -0
  322. package/node/models/gridStatePro.js +5 -0
  323. package/node/models/index.js +44 -0
  324. package/node/themeAugmentation/index.js +31 -0
  325. package/node/themeAugmentation/overrides.js +5 -0
  326. package/node/themeAugmentation/props.js +5 -0
  327. package/node/typeOverloads/modules.js +5 -0
  328. package/node/typeOverloads/reexports.js +29 -0
  329. package/node/utils/domUtils.js +32 -0
  330. package/node/utils/releaseInfo.js +25 -0
  331. package/node/utils/tree/buildRowTree.js +185 -0
  332. package/node/utils/tree/sortRowTree.js +69 -0
  333. package/package.json +11 -12
  334. package/themeAugmentation/index.d.ts +2 -2
  335. package/themeAugmentation/index.js +3 -0
  336. package/themeAugmentation/overrides.d.ts +8 -8
  337. package/themeAugmentation/overrides.js +1 -0
  338. package/themeAugmentation/package.json +6 -0
  339. package/themeAugmentation/props.d.ts +19 -19
  340. package/themeAugmentation/props.js +1 -0
  341. package/typeOverloads/modules.d.ts +41 -0
  342. package/typeOverloads/modules.js +1 -0
  343. package/typeOverloads/reexports.d.ts +22 -0
  344. package/typeOverloads/reexports.js +6 -0
  345. package/utils/domUtils.d.ts +3 -0
  346. package/utils/domUtils.js +19 -0
  347. package/utils/releaseInfo.d.ts +1 -0
  348. package/utils/releaseInfo.js +15 -0
  349. package/utils/tree/buildRowTree.d.ts +47 -0
  350. package/utils/tree/buildRowTree.js +179 -0
  351. package/utils/tree/sortRowTree.d.ts +10 -0
  352. package/utils/tree/sortRowTree.js +60 -0
  353. package/LICENSE +0 -12
  354. package/index-cjs.js +0 -15
  355. package/index-esm.js +0 -15
  356. package/x-data-grid-pro.d.ts +0 -5495
package/CHANGELOG.md CHANGED
@@ -3,6 +3,235 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 5.7.0
7
+
8
+ _Mar 24, 2022_
9
+
10
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights โœจ:
11
+
12
+ - โœ Add a new editing API with better support for server-side persistence and validation (#3963, #4060) @m4theushw
13
+
14
+ The new API is stable, but to avoid any breaking changes or conflicts with the old API, you must add the following flag to access it:
15
+
16
+ ```tsx
17
+ <DataGrid experimentalFeatures={{ newEditingApi: true }} />
18
+ ```
19
+
20
+ โš  Users relying on the old API (legacy) don't need to worry as it will continue to work until v6.
21
+
22
+ The new API also features brand new documentation with more useful demos and guides explaining how to create custom edit components.
23
+ Visit the new [documentation](https://mui.com/components/data-grid/editing/) for more information.
24
+
25
+ - ๐Ÿ“š Documentation improvements
26
+ - ๐Ÿž Bug and typo fixes
27
+
28
+ ### `@mui/x-data-grid@v5.7.0` / `@mui/x-data-grid-pro@v5.7.0`
29
+
30
+ #### Changes
31
+
32
+ - [DataGrid] Add column order and dimensions to the portable state (#3816) @flaviendelangle
33
+ - [DataGrid] Add new editing API (#3963) @m4theushw
34
+ - [DataGrid] Allow to customize `ColumnsPanel` with `componentsProps` prop (#4207) @alexfauquette
35
+ - [DataGrid] Do not unselect row when <kbd>Shift</kbd> + click on the last selected row of a range (#4196) @flaviendelangle
36
+ - [DataGrid] Fix `showCellRightBorder` not working in the last row (#4140) @cherniavskii
37
+ - [DataGrid] Fix error overlay not visible when `autoHeight` is enabled (#4110) @cherniavskii
38
+ - [DataGrid] Fix white blank when scrolling (#4158) @alexfauquette
39
+ - [DataGrid] Adjust type of the `description` prop in `GridColumnHeaderTitle` (#4247) @baahrens
40
+ - [DataGrid] Fix focus after stopping row edit mode (#4252) @m4theushw
41
+ - [DataGridPro] Fix pinned columns edge overflow with custom `borderRadius` (#4188) @socramm9
42
+ - [DataGridPro] Fix tab switching order with pinned columns and `editMode="row"` (#4198) @cherniavskii
43
+ - [l10n] Improve Persian (fa-IR) locale (#4227) @SaeedZhiany
44
+ - [l10n] Improve Polish (pl-PL) locale (#4153) @pbmchc
45
+ - [l10n] Improve Arabic (ar-SD) locale (#4212) @shadigaafar
46
+ - [l10n] Improve Korean (ko-KR) locale (#4245) @kyeongsoosoo
47
+
48
+ ### Docs
49
+
50
+ - [docs] Clean demo (#4073) @alexfauquette
51
+ - [docs] Delete restore state demos (#4220) @flaviendelangle
52
+ - [docs] Document Print export `X-Frame-Options` limitation (#4222) @DanailH
53
+ - [docs] Add docs for the new editing API (#4060) @m4theushw
54
+ - [docs] Explain how to use `printOptions.pageStyle` (#4138) @alexfauquette
55
+ - [docs] Fix 301 links (#4165) @oliviertassinari
56
+ - [docs] Fix 404 API links (#4164) @oliviertassinari
57
+ - [docs] Fix broken anchor links (#4162) @alexfauquette
58
+ - [docs] Remove useless `apiRef` from demos (#4221) @flaviendelangle
59
+ - [docs] Sync the headers with core (#4195) @oliviertassinari
60
+
61
+ ### Core
62
+
63
+ - [core] Add CLI to decode license key (#4126) @flaviendelangle
64
+ - [core] Fix Lerna package change detection (#4202) @oliviertassinari
65
+ - [core] Implement strategy pattern for pre-processors (#4030) @flaviendelangle
66
+ - [core] Keep same reference to the column visibility model if no column has changed (#4154) @m4theushw
67
+ - [core] Prepare `@mui/x-license-pro` for date pickers (#4123) @flaviendelangle
68
+ - [core] Remove datagen from `@mui/x-data-grid-generator` bundle (#4163) @m4theushw
69
+ - [core] Remove lodash `isDeepEqual` (#4159) @flaviendelangle
70
+ - [core] Use a pipe processor for `GridPreferencePanel` children (#4216) @flaviendelangle
71
+ - [core] Add markdown documentation for contributors (#3447) @alexfauquette
72
+ - [test] Add regression test for `showCellRightBorder` (#4191) @cherniavskii
73
+ - [test] Mock `getComputedStyle` to speed up unit tests (#4142) @m4theushw
74
+ - [test] Upgrade CircleCI convenience image (#4143) @m4theushw
75
+
76
+ ## 5.6.1
77
+
78
+ _Mar 10, 2022_
79
+
80
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights โœจ:
81
+
82
+ - โœจ Allow to add margins or borders between rows (#3848) @m4theushw
83
+
84
+ ```tsx
85
+ <DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
86
+ ```
87
+
88
+ Check the [documentation](https://mui.com/components/data-grid/rows/#row-spacing) for more information.
89
+
90
+ ### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
91
+
92
+ #### Changes
93
+
94
+ - [DataGrid] Display column's filter icon if a filter is applied (#4120) @DanailH
95
+ - [DataGrid] Do not loop through rows to compute top level rows count when the tree is flat (#4081) @flaviendelangle
96
+ - [DataGrid] Rename API method (#4148) @m4theushw
97
+ - [DataGrid] Support extending built-in column types (#4114) @cherniavskii
98
+ - [DataGridPro] Re-export the components removed by mistake during bundle split (#4134) @flaviendelangle
99
+
100
+ ### Docs
101
+
102
+ - [docs] Fix links to prevent duplicate search result (#4130) @siriwatknp
103
+ - [docs] Fix outdated links to `localeTextConstants.ts` (#4080) @patilvishal755
104
+ - [docs] Neglect e2e tests related to search (#4118) @siriwatknp
105
+ - [docs] Use regex instead of specific url in e2e-website-tests (#4121) @siriwatknp
106
+
107
+ ### Core
108
+
109
+ - [core] Enforce `noImplicitAny` (#4084) @cherniavskii
110
+ - [core] Improve the Pro support issue template (#4082) @oliviertassinari
111
+ - [core] Initialize remaining states before feature hooks (#4036) @m4theushw
112
+ - [core] Merge `page` and `pageSize` state initializer into a single `pagination` state initializer (#4087) @flaviendelangle
113
+ - [core] Prepare `yarn docs:api:build` scripts for multi packages support (#4111) @flaviendelangle
114
+ - [core] Upgrade `@mui/monorepo` (#4149) @cherniavskii
115
+ - [core] Use `buildWarning` and `wrapWithWarningOnCall` for deprecated methods and wrong usages (#4056) @flaviendelangle
116
+ - [test] Make focus state out-of-sync warning opt-in (#4129) @m4theushw
117
+ - [test] Only test custom input keyboard event in edit mode (#4075) @alexfauquette
118
+
119
+ ## 5.6.0
120
+
121
+ _Mar 4, 2022_
122
+
123
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights โœจ:
124
+
125
+ - ๐Ÿ“ฆ Use the same bundling scripts as those in the [material-ui](https://github.com/mui/material-ui) repository (#3965) @flaviendelangle
126
+
127
+ The code structure and the bundling strategy have been modified to provide better isolation between components.
128
+ The bundle size is slightly reduced, but with tree shaking, the doors are open for significant gains in the future. ๐Ÿ‹
129
+ We predict that such modifications could potentially impact edge cases.
130
+ If you encounter problems with your build, please open an issue.
131
+ These issues will have high priority as part of our risk mitigation strategy.
132
+
133
+ - ๐Ÿงผ Clean and document the column selectors (#4010) @flaviendelangle
134
+
135
+ Column selectors have been renamed to improve clarity.
136
+ The old names have been deprecated and will be removed in v6.
137
+ Here are the new names and the modifications needed to get the same information with the new selectors.
138
+
139
+ | Old name | New name |
140
+ | ------------------------------- | ----------------------------------------- |
141
+ | `allGridColumnsFieldsSelector` | `gridColumnFieldsSelector` |
142
+ | `allGridColumnsSelector` | `gridColumnDefinitionsSelector` |
143
+ | `visibleGridColumnsSelector` | `gridVisibleColumnDefinitionsSelector` |
144
+ | `filterableGridColumnsSelector` | `gridFilterableColumnDefinitionsSelector` |
145
+
146
+ ```diff
147
+ -const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef)
148
+ +const all = gridColumnFieldsSelector(apiRef)
149
+ +const lookup = gridColumnLookupSelector(apiRef)
150
+ +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef)
151
+
152
+ -const filterableFields = filterableGridColumnsIdsSelector(apiRef);
153
+ +const lookup = gridFilterableColumnLookupSelector(apiRef);
154
+ +const filterableFields = gridColumnFieldsSelector(apiRef).filter(field => lookup[field]);
155
+
156
+ -const visibleColumnsNumber = visibleGridColumnsLengthSelector(apiRef);
157
+ +const visibleColumnsNumber = gridVisibleColumnDefinitionsSelector(apiRef).length;
158
+
159
+ -const { totalWidth, positions } = gridColumnsMetaSelector(apiRef);
160
+ +const totalWidth = gridColumnsTotalWidthSelector(apiRef);
161
+ +const positions = gridColumnPositionsSelector(apiRef);
162
+ ```
163
+
164
+ - ๐Ÿ“š Documentation improvements
165
+ - ๐Ÿž Bug and typo fixes
166
+
167
+ ### `@mui/x-data-grid@v5.6.0` / `@mui/x-data-grid-pro@v5.6.0`
168
+
169
+ #### Changes
170
+
171
+ - [DataGrid] Add slot for filter panel delete icon (#4069) @Hameezr
172
+ - [DataGrid] Add specific label for `linkOperator` (#3915) @alexfauquette
173
+ - [DataGrid] Allow for truncated and multiline content in grid cells (#3955) @DanailH
174
+ - [DataGrid] Allow to navigate between cells with keyboard once inside an `actions` column (#3375) @m4theushw
175
+ - [DataGrid] Fix desynchronization between rows and header when sorting (#4058) @alexfauquette
176
+ - [DataGrid] Clean and document the columns selector (#4010) @flaviendelangle
177
+ - [DataGrid] Deprecate and stop typing the api params of `GridCellParams`/`GridValueGetterParams` and affiliated (#4089) @ flaviendelangle
178
+ - [DataGrid] Differentiate the Pro and Community versions of `GridState`, `GridApi` and `GridApiRef` (#3648) @flaviendelangle
179
+ - [DataGrid] Fix column selection for print export (#3917) @alexfauquette
180
+ - [DataGrid] Fix horizontal scroll not working on empty grid (#3821) @cherniavskii
181
+ - [DataGrid] Fix input element in custom header (#3624) @alexfauquette
182
+ - [DataGrid] Improve `singleSelect` filter performance (#3956) @cherniavskii
183
+ - [DataGrid] Improve custom overlay slots positioning (#3832) @cherniavskii
184
+ - [DataGrid] Improve `flex` implementation match the W3C standard (#4006) @cherniavskii
185
+ - [DataGrid] Improve the invalid `sortModel` and `filterModel` warnings (#3671) @flaviendelangle
186
+ - [DataGrid] Memoize `Popper` modifiers passed to panel (#3975) @m4theushw
187
+ - [DataGrid] Prevent focus while `Popper` is not fully positioned (#4067) @m4theushw
188
+ - [DataGrid] Remove `GridCell`'s `borderBottom` when it is the last row (#3519) @DanailH
189
+ - [DataGrid] Remove padding from the header title (#3691) @valenfv
190
+ - [DataGrid] Reuse previous `rowNode` when building tree and the new `rowNode` is equal to the previous one (#3961) @flaviendelangle
191
+ - [DataGrid] Remove last filter item when no value to clean and close the filter panel (#3910) @alexfauquette
192
+ - [DataGrid] Send warning when the `rowCount` is not provided while using server pagination (#3902) @alexfauquette
193
+ - [DataGrid] Stop checkbox ripple on blur (#3835) @m4theushw
194
+ - [DataGrid] Stop calling `onRowClick` when clicking in cells with interactive elements (#3929) @m4theushw
195
+ - [DataGrid] Use only `headerName` when available to search column (#3959) @pkratz
196
+ - [DataGrid] Use the bundling scripts as the packages published by the [https://github.com/mui/material-ui](material-ui) repository (#3965) @flaviendelangle
197
+ - [DataGridPro] Add `unstable_setRowHeight` method to `apiRef` (#3751) @cherniavskii
198
+ - [DataGridPro] Always export the `pageSize` and `page` when it has been initialized or is being controlled (#3908) @flaviendelangle
199
+ - [DataGridPro] Disable export for detail panel column (#4057) @gustavhagland
200
+ - [DataGridPremium] Support `valueFormatter` on the grouping column (#4022) @flaviendelangle
201
+ - [l10n] Improve Bulgarian (bg-BG) locale (#3949) @DanailH
202
+ - [l10n] Improve German (de-DE) locale (#4077) @sebastianfrey
203
+ - [l10n] Improve Hebrew (he-IL) locale (#3930) @ColdAtNight
204
+
205
+ ### Docs
206
+
207
+ - [docs] Add example of custom operator based on built-in ones (#3911) @flaviendelangle
208
+ - [docs] Add missing words in the filtering page (#4079) @flaviendelangle
209
+ - [docs] Avoid crash in demos using row grouping and custom formatted cells (#4065) @m4theushw
210
+ - [docs] Fix `Commodity` and `Employee` CSV export of the `country` column (#3912) @DanailH
211
+ - [docs] Fix links to the GitHub repository (#4005) @oliviertassinari
212
+ - [docs] Fix typo (#3923) @oliviertassinari
213
+ - [docs] Fix typo (#4016) @MathisBurger
214
+ - [docs] Fix typo in client-side validation example (#4066) @krallj
215
+ - [docs] Remove useless hide id column (#4021) @alexfauquette
216
+
217
+ ### Core
218
+
219
+ - [core] Allows to add custom export item (#3891) @alexfauquette
220
+ - [core] Remove the `_modules_` folder (#3953) @flaviendelangle
221
+ - [core] Fix typo in `useGridScroll.ts` (#3973) @HexM7
222
+ - [core] Fix typos, improve wordings and other various fixes (#4062) @flaviendelangle
223
+ - [core] Initialize states before feature hooks (#3896) @m4theushw
224
+ - [code] Make `@mui/x-data-grid-pro` import shared code from `@mui/x-data-grid` (#3688) @flaviendelangle
225
+ - [core] Migrate `@mui/x-license-pro` to the new bundling strategy (#3738) @flaviendelangle
226
+ - [core] Reduce usage of `useGridSelector` inside feature hooks (#3978) @flaviendelangle
227
+ - [core] Retry l10n CI if 502 returned (#3977) @alexfauquette
228
+ - [core] Update release instructions (#3920) @cherniavskii
229
+ - [core] Use international locale format (#3921) @oliviertassinari
230
+ - [core] Fix license generating script (#4055) @Janpot
231
+ - [test] Add screenshot of the filter panel (#4072) @alexfauquette
232
+ - [test] Reduce memory usage to run unit tests (#4031) @m4theushw
233
+ - [test] Skip test on Firefox (#3926) @m4theushw
234
+
6
235
  ## 5.5.1
7
236
 
8
237
  _Feb 10, 2022_
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ import { DataGridProProps } from '../models';
3
+ export declare const DataGridPro: React.MemoExoticComponent<React.ForwardRefExoticComponent<DataGridProProps & React.RefAttributes<HTMLDivElement>>>;