@mui/x-data-grid-pro 7.29.0 → 7.29.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 (307) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/DataGridPro/DataGrid.js +2 -9
  3. package/DataGridPro/DataGridPro.js +231 -238
  4. package/DataGridPro/index.js +3 -39
  5. package/DataGridPro/package.json +2 -2
  6. package/DataGridPro/useDataGridProComponent.js +91 -99
  7. package/DataGridPro/useDataGridProProps.js +17 -26
  8. package/components/GridColumnHeaderCollapseIcon.js +0 -1
  9. package/components/GridColumnHeaders.js +39 -46
  10. package/components/GridColumnMenuPinningItem.js +39 -46
  11. package/components/GridDataSourceTreeDataGroupingCell.js +30 -38
  12. package/components/GridDetailPanel.js +14 -18
  13. package/components/GridDetailPanelToggleCell.js +35 -42
  14. package/components/GridDetailPanels.js +19 -25
  15. package/components/GridPinnedRows.js +12 -20
  16. package/components/GridProColumnMenu.js +11 -19
  17. package/components/GridRowReorderCell.js +36 -45
  18. package/components/GridTreeDataGroupingCell.js +37 -44
  19. package/components/headerFiltering/GridHeaderFilterCell.js +71 -78
  20. package/components/headerFiltering/GridHeaderFilterClearButton.js +9 -16
  21. package/components/headerFiltering/GridHeaderFilterMenu.js +36 -43
  22. package/components/headerFiltering/GridHeaderFilterMenuContainer.js +41 -48
  23. package/components/headerFiltering/index.js +3 -38
  24. package/components/index.js +7 -71
  25. package/components/package.json +2 -2
  26. package/components/reexports.js +1 -24
  27. package/constants/dataGridProDefaultSlotsComponents.js +16 -23
  28. package/hooks/features/columnHeaders/useGridColumnHeaders.js +30 -39
  29. package/hooks/features/columnPinning/gridColumnPinningInterface.js +1 -5
  30. package/hooks/features/columnPinning/index.js +1 -16
  31. package/hooks/features/columnPinning/useGridColumnPinning.js +32 -42
  32. package/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +10 -19
  33. package/hooks/features/columnReorder/columnReorderInterfaces.js +1 -5
  34. package/hooks/features/columnReorder/columnReorderSelector.js +3 -10
  35. package/hooks/features/columnReorder/index.js +2 -16
  36. package/hooks/features/columnReorder/useGridColumnReorder.js +25 -35
  37. package/hooks/features/dataSource/cache.js +3 -11
  38. package/hooks/features/dataSource/gridDataSourceSelector.js +10 -18
  39. package/hooks/features/dataSource/interfaces.js +1 -5
  40. package/hooks/features/dataSource/useGridDataSource.js +34 -44
  41. package/hooks/features/dataSource/utils.js +9 -17
  42. package/hooks/features/detailPanel/gridDetailPanelInterface.js +1 -5
  43. package/hooks/features/detailPanel/gridDetailPanelSelector.js +5 -14
  44. package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +14 -27
  45. package/hooks/features/detailPanel/index.js +3 -53
  46. package/hooks/features/detailPanel/useGridDetailPanel.js +39 -48
  47. package/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +18 -27
  48. package/hooks/features/index.js +9 -99
  49. package/hooks/features/infiniteLoader/useGridInfiniteLoader.js +18 -27
  50. package/hooks/features/lazyLoader/useGridLazyLoader.js +14 -22
  51. package/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +13 -22
  52. package/hooks/features/rowPinning/gridRowPinningInterface.js +1 -5
  53. package/hooks/features/rowPinning/gridRowPinningSelector.js +1 -18
  54. package/hooks/features/rowPinning/index.js +1 -16
  55. package/hooks/features/rowPinning/useGridRowPinning.js +13 -23
  56. package/hooks/features/rowPinning/useGridRowPinningPreProcessors.d.ts +1 -1
  57. package/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +24 -34
  58. package/hooks/features/rowReorder/gridRowReorderColDef.js +5 -12
  59. package/hooks/features/rowReorder/index.js +1 -16
  60. package/hooks/features/rowReorder/useGridRowReorder.js +20 -29
  61. package/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +12 -21
  62. package/hooks/features/rows/index.js +1 -16
  63. package/hooks/features/rows/useGridRowAriaAttributes.js +14 -22
  64. package/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +37 -46
  65. package/hooks/features/serverSideTreeData/utils.js +6 -13
  66. package/hooks/features/treeData/gridTreeDataGroupColDef.js +9 -20
  67. package/hooks/features/treeData/gridTreeDataUtils.js +6 -12
  68. package/hooks/features/treeData/index.js +1 -12
  69. package/hooks/features/treeData/useGridTreeData.js +7 -15
  70. package/hooks/features/treeData/useGridTreeDataPreProcessors.js +37 -46
  71. package/hooks/index.js +1 -16
  72. package/hooks/package.json +2 -2
  73. package/hooks/utils/useGridApiContext.js +2 -8
  74. package/hooks/utils/useGridApiRef.js +2 -8
  75. package/hooks/utils/useGridAriaAttributes.js +8 -16
  76. package/hooks/utils/useGridPrivateApiContext.js +2 -8
  77. package/hooks/utils/useGridRootProps.js +2 -8
  78. package/index.js +19 -210
  79. package/internals/index.js +34 -301
  80. package/internals/package.json +2 -2
  81. package/internals/propValidation.js +2 -8
  82. package/locales/package.json +6 -0
  83. package/material/icons.js +7 -14
  84. package/material/index.js +6 -13
  85. package/material/package.json +2 -2
  86. package/models/dataGridProProps.js +1 -5
  87. package/models/gridApiPro.js +1 -5
  88. package/models/gridFetchRowsParams.js +1 -5
  89. package/models/gridGroupingColDefOverride.js +1 -5
  90. package/models/gridProIconSlotsComponent.js +1 -5
  91. package/models/gridProSlotProps.js +1 -5
  92. package/models/gridProSlotsComponent.js +1 -5
  93. package/models/gridRowOrderChangeParams.js +1 -5
  94. package/models/gridRowScrollEndParams.js +1 -5
  95. package/models/gridStatePro.js +1 -5
  96. package/models/index.js +8 -82
  97. package/models/package.json +2 -2
  98. package/modern/components/GridDetailPanel.js +2 -0
  99. package/modern/components/GridDetailPanels.js +2 -0
  100. package/modern/components/headerFiltering/GridHeaderFilterMenu.js +2 -2
  101. package/modern/hooks/features/detailPanel/useGridDetailPanel.js +3 -2
  102. package/modern/index.js +1 -1
  103. package/modern/utils/releaseInfo.js +1 -1
  104. package/{esm → node}/DataGridPro/DataGrid.js +9 -2
  105. package/{esm → node}/DataGridPro/DataGridPro.js +238 -231
  106. package/node/DataGridPro/index.js +39 -0
  107. package/node/DataGridPro/useDataGridProComponent.js +111 -0
  108. package/node/DataGridPro/useDataGridProProps.js +61 -0
  109. package/node/components/GridColumnHeaderCollapseIcon.js +1 -0
  110. package/node/components/GridColumnHeaders.js +99 -0
  111. package/node/components/GridColumnMenuPinningItem.js +97 -0
  112. package/node/components/GridDataSourceTreeDataGroupingCell.js +118 -0
  113. package/{esm → node}/components/GridDetailPanel.js +20 -13
  114. package/node/components/GridDetailPanelToggleCell.js +128 -0
  115. package/node/components/GridDetailPanels.js +69 -0
  116. package/node/components/GridPinnedRows.js +48 -0
  117. package/node/components/GridProColumnMenu.js +29 -0
  118. package/{esm → node}/components/GridRowReorderCell.js +45 -36
  119. package/{esm → node}/components/GridTreeDataGroupingCell.js +44 -37
  120. package/{esm → node}/components/headerFiltering/GridHeaderFilterCell.js +78 -71
  121. package/node/components/headerFiltering/GridHeaderFilterClearButton.js +28 -0
  122. package/node/components/headerFiltering/GridHeaderFilterMenu.js +95 -0
  123. package/node/components/headerFiltering/GridHeaderFilterMenuContainer.js +106 -0
  124. package/node/components/headerFiltering/index.js +38 -0
  125. package/node/components/index.js +71 -0
  126. package/node/components/reexports.js +24 -0
  127. package/node/constants/dataGridProDefaultSlotsComponents.js +24 -0
  128. package/{esm → node}/hooks/features/columnHeaders/useGridColumnHeaders.js +39 -30
  129. package/node/hooks/features/columnPinning/gridColumnPinningInterface.js +5 -0
  130. package/node/hooks/features/columnPinning/index.js +16 -0
  131. package/{esm → node}/hooks/features/columnPinning/useGridColumnPinning.js +42 -32
  132. package/{esm → node}/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +19 -10
  133. package/node/hooks/features/columnReorder/columnReorderInterfaces.js +5 -0
  134. package/node/hooks/features/columnReorder/columnReorderSelector.js +10 -0
  135. package/node/hooks/features/columnReorder/index.js +16 -0
  136. package/{esm → node}/hooks/features/columnReorder/useGridColumnReorder.js +35 -25
  137. package/{esm → node}/hooks/features/dataSource/cache.js +11 -3
  138. package/node/hooks/features/dataSource/gridDataSourceSelector.js +32 -0
  139. package/node/hooks/features/dataSource/interfaces.js +5 -0
  140. package/{esm → node}/hooks/features/dataSource/useGridDataSource.js +44 -34
  141. package/{esm → node}/hooks/features/dataSource/utils.js +17 -9
  142. package/node/hooks/features/detailPanel/gridDetailPanelInterface.js +5 -0
  143. package/node/hooks/features/detailPanel/gridDetailPanelSelector.js +21 -0
  144. package/node/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +47 -0
  145. package/node/hooks/features/detailPanel/index.js +53 -0
  146. package/{esm → node}/hooks/features/detailPanel/useGridDetailPanel.js +49 -38
  147. package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +52 -0
  148. package/node/hooks/features/index.js +99 -0
  149. package/{esm → node}/hooks/features/infiniteLoader/useGridInfiniteLoader.js +27 -18
  150. package/{esm → node}/hooks/features/lazyLoader/useGridLazyLoader.js +22 -14
  151. package/node/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +43 -0
  152. package/node/hooks/features/rowPinning/gridRowPinningInterface.js +5 -0
  153. package/node/hooks/features/rowPinning/gridRowPinningSelector.js +18 -0
  154. package/node/hooks/features/rowPinning/index.js +16 -0
  155. package/node/hooks/features/rowPinning/useGridRowPinning.js +62 -0
  156. package/{esm → node}/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +34 -24
  157. package/node/hooks/features/rowReorder/gridRowReorderColDef.js +27 -0
  158. package/node/hooks/features/rowReorder/index.js +16 -0
  159. package/{esm → node}/hooks/features/rowReorder/useGridRowReorder.js +29 -20
  160. package/{esm → node}/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +21 -12
  161. package/node/hooks/features/rows/index.js +16 -0
  162. package/node/hooks/features/rows/useGridRowAriaAttributes.js +45 -0
  163. package/{esm → node}/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +46 -37
  164. package/node/hooks/features/serverSideTreeData/utils.js +27 -0
  165. package/node/hooks/features/treeData/gridTreeDataGroupColDef.js +38 -0
  166. package/{esm → node}/hooks/features/treeData/gridTreeDataUtils.js +12 -6
  167. package/node/hooks/features/treeData/index.js +12 -0
  168. package/node/hooks/features/treeData/useGridTreeData.js +30 -0
  169. package/{esm → node}/hooks/features/treeData/useGridTreeDataPreProcessors.js +46 -37
  170. package/node/hooks/index.js +16 -0
  171. package/node/hooks/utils/useGridApiContext.js +8 -0
  172. package/node/hooks/utils/useGridApiRef.js +8 -0
  173. package/node/hooks/utils/useGridAriaAttributes.js +19 -0
  174. package/node/hooks/utils/useGridPrivateApiContext.js +8 -0
  175. package/node/hooks/utils/useGridRootProps.js +8 -0
  176. package/node/index.js +220 -0
  177. package/node/internals/index.js +302 -0
  178. package/node/internals/propValidation.js +8 -0
  179. package/node/material/icons.js +24 -0
  180. package/node/material/index.js +15 -0
  181. package/node/models/dataGridProProps.js +5 -0
  182. package/node/models/gridApiPro.js +5 -0
  183. package/node/models/gridFetchRowsParams.js +5 -0
  184. package/node/models/gridGroupingColDefOverride.js +5 -0
  185. package/node/models/gridProIconSlotsComponent.js +5 -0
  186. package/node/models/gridProSlotProps.js +5 -0
  187. package/node/models/gridProSlotsComponent.js +5 -0
  188. package/node/models/gridRowOrderChangeParams.js +5 -0
  189. package/node/models/gridRowScrollEndParams.js +5 -0
  190. package/node/models/gridStatePro.js +5 -0
  191. package/node/models/index.js +82 -0
  192. package/node/themeAugmentation/index.js +27 -0
  193. package/node/themeAugmentation/overrides.js +5 -0
  194. package/node/themeAugmentation/props.js +5 -0
  195. package/node/typeOverloads/index.js +16 -0
  196. package/node/typeOverloads/modules.js +5 -0
  197. package/node/typeOverloads/reexports.js +26 -0
  198. package/node/utils/index.js +16 -0
  199. package/node/utils/releaseInfo.js +20 -0
  200. package/{esm → node}/utils/tree/createRowTree.js +14 -7
  201. package/node/utils/tree/index.js +12 -0
  202. package/{esm → node}/utils/tree/insertDataRowInTree.js +18 -11
  203. package/node/utils/tree/models.js +5 -0
  204. package/{esm → node}/utils/tree/removeDataRowFromTree.js +16 -9
  205. package/{esm → node}/utils/tree/sortRowTree.js +12 -5
  206. package/{esm → node}/utils/tree/updateRowTree.js +26 -18
  207. package/{esm → node}/utils/tree/utils.js +34 -18
  208. package/package.json +6 -6
  209. package/themeAugmentation/index.js +4 -27
  210. package/themeAugmentation/overrides.js +1 -5
  211. package/themeAugmentation/package.json +2 -2
  212. package/themeAugmentation/props.js +1 -5
  213. package/typeOverloads/index.js +1 -16
  214. package/typeOverloads/modules.js +1 -5
  215. package/typeOverloads/package.json +2 -2
  216. package/typeOverloads/reexports.js +14 -25
  217. package/utils/index.js +1 -16
  218. package/utils/package.json +2 -2
  219. package/utils/releaseInfo.js +5 -12
  220. package/utils/tree/createRowTree.js +7 -14
  221. package/utils/tree/index.js +1 -12
  222. package/utils/tree/insertDataRowInTree.js +11 -18
  223. package/utils/tree/models.js +1 -5
  224. package/utils/tree/removeDataRowFromTree.js +9 -16
  225. package/utils/tree/sortRowTree.js +5 -12
  226. package/utils/tree/updateRowTree.js +18 -26
  227. package/utils/tree/utils.js +18 -34
  228. package/esm/DataGridPro/index.js +0 -3
  229. package/esm/DataGridPro/useDataGridProComponent.js +0 -103
  230. package/esm/DataGridPro/useDataGridProProps.js +0 -52
  231. package/esm/components/GridColumnHeaderCollapseIcon.js +0 -0
  232. package/esm/components/GridColumnHeaders.js +0 -92
  233. package/esm/components/GridColumnMenuPinningItem.js +0 -90
  234. package/esm/components/GridDataSourceTreeDataGroupingCell.js +0 -110
  235. package/esm/components/GridDetailPanelToggleCell.js +0 -121
  236. package/esm/components/GridDetailPanels.js +0 -60
  237. package/esm/components/GridPinnedRows.js +0 -40
  238. package/esm/components/GridProColumnMenu.js +0 -21
  239. package/esm/components/headerFiltering/GridHeaderFilterClearButton.js +0 -21
  240. package/esm/components/headerFiltering/GridHeaderFilterMenu.js +0 -88
  241. package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +0 -99
  242. package/esm/components/headerFiltering/index.js +0 -3
  243. package/esm/components/index.js +0 -7
  244. package/esm/components/reexports.js +0 -1
  245. package/esm/constants/dataGridProDefaultSlotsComponents.js +0 -17
  246. package/esm/hooks/features/columnPinning/gridColumnPinningInterface.js +0 -1
  247. package/esm/hooks/features/columnPinning/index.js +0 -1
  248. package/esm/hooks/features/columnReorder/columnReorderInterfaces.js +0 -1
  249. package/esm/hooks/features/columnReorder/columnReorderSelector.js +0 -3
  250. package/esm/hooks/features/columnReorder/index.js +0 -2
  251. package/esm/hooks/features/dataSource/gridDataSourceSelector.js +0 -24
  252. package/esm/hooks/features/dataSource/interfaces.js +0 -1
  253. package/esm/hooks/features/detailPanel/gridDetailPanelInterface.js +0 -1
  254. package/esm/hooks/features/detailPanel/gridDetailPanelSelector.js +0 -12
  255. package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +0 -34
  256. package/esm/hooks/features/detailPanel/index.js +0 -3
  257. package/esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +0 -43
  258. package/esm/hooks/features/index.js +0 -9
  259. package/esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +0 -34
  260. package/esm/hooks/features/rowPinning/gridRowPinningInterface.js +0 -1
  261. package/esm/hooks/features/rowPinning/gridRowPinningSelector.js +0 -1
  262. package/esm/hooks/features/rowPinning/index.js +0 -1
  263. package/esm/hooks/features/rowPinning/useGridRowPinning.js +0 -52
  264. package/esm/hooks/features/rowReorder/gridRowReorderColDef.js +0 -20
  265. package/esm/hooks/features/rowReorder/index.js +0 -1
  266. package/esm/hooks/features/rows/index.js +0 -1
  267. package/esm/hooks/features/rows/useGridRowAriaAttributes.js +0 -37
  268. package/esm/hooks/features/serverSideTreeData/utils.js +0 -20
  269. package/esm/hooks/features/treeData/gridTreeDataGroupColDef.js +0 -27
  270. package/esm/hooks/features/treeData/index.js +0 -1
  271. package/esm/hooks/features/treeData/useGridTreeData.js +0 -22
  272. package/esm/hooks/index.js +0 -1
  273. package/esm/hooks/utils/useGridApiContext.js +0 -2
  274. package/esm/hooks/utils/useGridApiRef.js +0 -2
  275. package/esm/hooks/utils/useGridAriaAttributes.js +0 -11
  276. package/esm/hooks/utils/useGridPrivateApiContext.js +0 -2
  277. package/esm/hooks/utils/useGridRootProps.js +0 -2
  278. package/esm/index.js +0 -22
  279. package/esm/internals/index.js +0 -35
  280. package/esm/internals/propValidation.js +0 -2
  281. package/esm/material/icons.js +0 -17
  282. package/esm/material/index.js +0 -8
  283. package/esm/models/dataGridProProps.js +0 -1
  284. package/esm/models/gridApiPro.js +0 -1
  285. package/esm/models/gridFetchRowsParams.js +0 -1
  286. package/esm/models/gridGroupingColDefOverride.js +0 -1
  287. package/esm/models/gridProIconSlotsComponent.js +0 -1
  288. package/esm/models/gridProSlotProps.js +0 -1
  289. package/esm/models/gridProSlotsComponent.js +0 -1
  290. package/esm/models/gridRowOrderChangeParams.js +0 -1
  291. package/esm/models/gridRowScrollEndParams.js +0 -1
  292. package/esm/models/gridStatePro.js +0 -1
  293. package/esm/models/index.js +0 -8
  294. package/esm/themeAugmentation/index.js +0 -4
  295. package/esm/themeAugmentation/overrides.js +0 -1
  296. package/esm/themeAugmentation/props.js +0 -1
  297. package/esm/typeOverloads/index.js +0 -1
  298. package/esm/typeOverloads/modules.js +0 -1
  299. package/esm/typeOverloads/reexports.js +0 -15
  300. package/esm/utils/index.js +0 -1
  301. package/esm/utils/releaseInfo.js +0 -13
  302. package/esm/utils/tree/index.js +0 -1
  303. package/esm/utils/tree/models.js +0 -1
  304. /package/{locales.d.ts → locales/index.d.ts} +0 -0
  305. /package/{esm/locales.js → locales/index.js} +0 -0
  306. /package/modern/{locales.js → locales/index.js} +0 -0
  307. /package/{locales.js → node/locales/index.js} +0 -0
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _gridApiPro = require("./gridApiPro");
7
+ Object.keys(_gridApiPro).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _gridApiPro[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _gridApiPro[key];
14
+ }
15
+ });
16
+ });
17
+ var _gridGroupingColDefOverride = require("./gridGroupingColDefOverride");
18
+ Object.keys(_gridGroupingColDefOverride).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _gridGroupingColDefOverride[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _gridGroupingColDefOverride[key];
25
+ }
26
+ });
27
+ });
28
+ var _gridRowScrollEndParams = require("./gridRowScrollEndParams");
29
+ Object.keys(_gridRowScrollEndParams).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _gridRowScrollEndParams[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _gridRowScrollEndParams[key];
36
+ }
37
+ });
38
+ });
39
+ var _gridRowOrderChangeParams = require("./gridRowOrderChangeParams");
40
+ Object.keys(_gridRowOrderChangeParams).forEach(function (key) {
41
+ if (key === "default" || key === "__esModule") return;
42
+ if (key in exports && exports[key] === _gridRowOrderChangeParams[key]) return;
43
+ Object.defineProperty(exports, key, {
44
+ enumerable: true,
45
+ get: function () {
46
+ return _gridRowOrderChangeParams[key];
47
+ }
48
+ });
49
+ });
50
+ var _gridFetchRowsParams = require("./gridFetchRowsParams");
51
+ Object.keys(_gridFetchRowsParams).forEach(function (key) {
52
+ if (key === "default" || key === "__esModule") return;
53
+ if (key in exports && exports[key] === _gridFetchRowsParams[key]) return;
54
+ Object.defineProperty(exports, key, {
55
+ enumerable: true,
56
+ get: function () {
57
+ return _gridFetchRowsParams[key];
58
+ }
59
+ });
60
+ });
61
+ var _gridProSlotsComponent = require("./gridProSlotsComponent");
62
+ Object.keys(_gridProSlotsComponent).forEach(function (key) {
63
+ if (key === "default" || key === "__esModule") return;
64
+ if (key in exports && exports[key] === _gridProSlotsComponent[key]) return;
65
+ Object.defineProperty(exports, key, {
66
+ enumerable: true,
67
+ get: function () {
68
+ return _gridProSlotsComponent[key];
69
+ }
70
+ });
71
+ });
72
+ var _gridProIconSlotsComponent = require("./gridProIconSlotsComponent");
73
+ Object.keys(_gridProIconSlotsComponent).forEach(function (key) {
74
+ if (key === "default" || key === "__esModule") return;
75
+ if (key in exports && exports[key] === _gridProIconSlotsComponent[key]) return;
76
+ Object.defineProperty(exports, key, {
77
+ enumerable: true,
78
+ get: function () {
79
+ return _gridProIconSlotsComponent[key];
80
+ }
81
+ });
82
+ });
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _overrides = require("./overrides");
7
+ Object.keys(_overrides).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _overrides[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _overrides[key];
14
+ }
15
+ });
16
+ });
17
+ var _props = require("./props");
18
+ Object.keys(_props).forEach(function (key) {
19
+ if (key === "default" || key === "__esModule") return;
20
+ if (key in exports && exports[key] === _props[key]) return;
21
+ Object.defineProperty(exports, key, {
22
+ enumerable: true,
23
+ get: function () {
24
+ return _props[key];
25
+ }
26
+ });
27
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _modules = require("./modules");
7
+ Object.keys(_modules).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _modules[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _modules[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "useGridApiContext", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _useGridApiContext.useGridApiContext;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "useGridApiRef", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _useGridApiRef.useGridApiRef;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "useGridRootProps", {
19
+ enumerable: true,
20
+ get: function () {
21
+ return _useGridRootProps.useGridRootProps;
22
+ }
23
+ });
24
+ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
25
+ var _useGridApiRef = require("../hooks/utils/useGridApiRef");
26
+ var _useGridRootProps = require("../hooks/utils/useGridRootProps");
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _tree = require("./tree");
7
+ Object.keys(_tree).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _tree[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _tree[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getReleaseInfo = void 0;
7
+ var _utils = require("@mui/utils");
8
+ const getReleaseInfo = () => {
9
+ const releaseInfo = "MTc0NTM1OTIwMDAwMA==";
10
+ if (process.env.NODE_ENV !== 'production') {
11
+ // A simple hack to set the value in the test environment (has no build step).
12
+ // eslint-disable-next-line no-useless-concat
13
+ if (releaseInfo === '__RELEASE' + '_INFO__') {
14
+ // eslint-disable-next-line no-underscore-dangle
15
+ return _utils.ponyfillGlobal.__MUI_RELEASE_INFO__;
16
+ }
17
+ }
18
+ return releaseInfo;
19
+ };
20
+ exports.getReleaseInfo = getReleaseInfo;
@@ -1,20 +1,26 @@
1
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
2
- import { buildRootGroup } from '@mui/x-data-grid/internals';
3
- import { insertDataRowInTree } from "./insertDataRowInTree.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.createRowTree = void 0;
7
+ var _xDataGrid = require("@mui/x-data-grid");
8
+ var _internals = require("@mui/x-data-grid/internals");
9
+ var _insertDataRowInTree = require("./insertDataRowInTree");
4
10
  /**
5
11
  * Transform a list of rows into a tree structure where each row references its parent and children.
6
12
  */
7
- export const createRowTree = params => {
13
+ const createRowTree = params => {
8
14
  const dataRowIds = [];
9
15
  const tree = {
10
- [GRID_ROOT_GROUP_ID]: buildRootGroup()
16
+ [_xDataGrid.GRID_ROOT_GROUP_ID]: (0, _internals.buildRootGroup)()
11
17
  };
12
18
  const treeDepths = {};
13
19
  const groupsToFetch = new Set();
14
20
  for (let i = 0; i < params.nodes.length; i += 1) {
15
21
  const node = params.nodes[i];
16
22
  dataRowIds.push(node.id);
17
- insertDataRowInTree({
23
+ (0, _insertDataRowInTree.insertDataRowInTree)({
18
24
  tree,
19
25
  previousTree: params.previousTree,
20
26
  id: node.id,
@@ -34,4 +40,5 @@ export const createRowTree = params => {
34
40
  dataRowIds,
35
41
  groupsToFetch: Array.from(groupsToFetch)
36
42
  };
37
- };
43
+ };
44
+ exports.createRowTree = createRowTree;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "getGroupRowIdFromPath", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _utils.getGroupRowIdFromPath;
10
+ }
11
+ });
12
+ var _utils = require("./utils");
@@ -1,12 +1,18 @@
1
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
2
- import { updateGroupDefaultExpansion, checkGroupChildrenExpansion, getGroupRowIdFromPath, insertNodeInTree, updateGroupNodeIdAndAutoGenerated } from "./utils.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.insertDataRowInTree = void 0;
7
+ var _xDataGrid = require("@mui/x-data-grid");
8
+ var _utils = require("./utils");
3
9
  /**
4
10
  * Inserts a data row in a tree.
5
11
  * For each steps of its path:
6
12
  * - if a node exists with the same partial path, it will register this node as the ancestor of the data row.
7
13
  * - if not, it will create an auto-generated node and register it as ancestor of the data row.
8
14
  */
9
- export const insertDataRowInTree = ({
15
+ const insertDataRowInTree = ({
10
16
  id,
11
17
  path,
12
18
  updatedGroupsManager,
@@ -19,7 +25,7 @@ export const insertDataRowInTree = ({
19
25
  serverChildrenCount,
20
26
  groupsToFetch
21
27
  }) => {
22
- let parentNodeId = GRID_ROOT_GROUP_ID;
28
+ let parentNodeId = _xDataGrid.GRID_ROOT_GROUP_ID;
23
29
  for (let depth = 0; depth < path.length; depth += 1) {
24
30
  const {
25
31
  key,
@@ -51,7 +57,7 @@ export const insertDataRowInTree = ({
51
57
  childrenExpanded: false,
52
58
  serverChildrenCount
53
59
  };
54
- const shouldFetchChildren = checkGroupChildrenExpansion(node, defaultGroupingExpansionDepth, isGroupExpandedByDefault);
60
+ const shouldFetchChildren = (0, _utils.checkGroupChildrenExpansion)(node, defaultGroupingExpansionDepth, isGroupExpandedByDefault);
55
61
  if (shouldFetchChildren) {
56
62
  groupsToFetch?.add(id);
57
63
  }
@@ -65,7 +71,7 @@ export const insertDataRowInTree = ({
65
71
  };
66
72
  }
67
73
  updatedGroupsManager?.addAction(parentNodeId, 'insertChildren');
68
- insertNodeInTree(node, tree, treeDepths, previousTree);
74
+ (0, _utils.insertNodeInTree)(node, tree, treeDepths, previousTree);
69
75
  } else {
70
76
  const existingNodeWithPartialPath = tree[existingNodeIdWithPartialPath];
71
77
 
@@ -74,7 +80,7 @@ export const insertDataRowInTree = ({
74
80
  if (existingNodeWithPartialPath.type === 'group' && existingNodeWithPartialPath.isAutoGenerated) {
75
81
  updatedGroupsManager?.addAction(parentNodeId, 'removeChildren');
76
82
  updatedGroupsManager?.addAction(parentNodeId, 'insertChildren');
77
- updateGroupNodeIdAndAutoGenerated({
83
+ (0, _utils.updateGroupNodeIdAndAutoGenerated)({
78
84
  tree,
79
85
  previousTree,
80
86
  treeDepths,
@@ -97,7 +103,7 @@ export const insertDataRowInTree = ({
97
103
  // If no node matches the partial path,
98
104
  // We create an auto-generated group node.
99
105
  else if (existingNodeIdWithPartialPath == null) {
100
- const nodeId = getGroupRowIdFromPath(path.slice(0, depth + 1));
106
+ const nodeId = (0, _utils.getGroupRowIdFromPath)(path.slice(0, depth + 1));
101
107
  const autoGeneratedGroupNode = {
102
108
  type: 'group',
103
109
  id: nodeId,
@@ -111,7 +117,7 @@ export const insertDataRowInTree = ({
111
117
  childrenExpanded: false
112
118
  };
113
119
  updatedGroupsManager?.addAction(parentNodeId, 'insertChildren');
114
- insertNodeInTree(updateGroupDefaultExpansion(autoGeneratedGroupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault), tree, treeDepths, previousTree);
120
+ (0, _utils.insertNodeInTree)((0, _utils.updateGroupDefaultExpansion)(autoGeneratedGroupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault), tree, treeDepths, previousTree);
115
121
  parentNodeId = nodeId;
116
122
  }
117
123
  // For the intermediary steps of the path
@@ -133,9 +139,10 @@ export const insertDataRowInTree = ({
133
139
  childrenFromPath: {},
134
140
  childrenExpanded: false
135
141
  };
136
- tree[existingNodeIdWithPartialPath] = updateGroupDefaultExpansion(groupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault);
142
+ tree[existingNodeIdWithPartialPath] = (0, _utils.updateGroupDefaultExpansion)(groupNode, defaultGroupingExpansionDepth, isGroupExpandedByDefault);
137
143
  }
138
144
  parentNodeId = currentGroupNode.id;
139
145
  }
140
146
  }
141
- };
147
+ };
148
+ exports.insertDataRowInTree = insertDataRowInTree;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,18 +1,24 @@
1
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
2
- import { getNodePathInTree, getGroupRowIdFromPath, removeNodeFromTree, updateGroupNodeIdAndAutoGenerated } from "./utils.js";
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.removeDataRowFromTree = void 0;
7
+ var _xDataGrid = require("@mui/x-data-grid");
8
+ var _utils = require("./utils");
3
9
  const removeNodeAndCleanParent = ({
4
10
  node,
5
11
  tree,
6
12
  treeDepths,
7
13
  updatedGroupsManager
8
14
  }) => {
9
- removeNodeFromTree({
15
+ (0, _utils.removeNodeFromTree)({
10
16
  node,
11
17
  tree,
12
18
  treeDepths
13
19
  });
14
20
  if (node.type === 'group' && node.footerId != null) {
15
- removeNodeFromTree({
21
+ (0, _utils.removeNodeFromTree)({
16
22
  node: tree[node.footerId],
17
23
  tree,
18
24
  treeDepths
@@ -20,7 +26,7 @@ const removeNodeAndCleanParent = ({
20
26
  }
21
27
  const parentNode = tree[node.parent];
22
28
  updatedGroupsManager?.addAction(parentNode.id, 'removeChildren');
23
- const shouldDeleteGroup = parentNode.id !== GRID_ROOT_GROUP_ID && parentNode.children.length === 0;
29
+ const shouldDeleteGroup = parentNode.id !== _xDataGrid.GRID_ROOT_GROUP_ID && parentNode.children.length === 0;
24
30
  if (shouldDeleteGroup) {
25
31
  if (parentNode.isAutoGenerated) {
26
32
  removeNodeAndCleanParent({
@@ -47,13 +53,13 @@ const replaceDataGroupWithAutoGeneratedGroup = ({
47
53
  }) => {
48
54
  updatedGroupsManager?.addAction(node.parent, 'removeChildren');
49
55
  updatedGroupsManager?.addAction(node.parent, 'insertChildren');
50
- updateGroupNodeIdAndAutoGenerated({
56
+ (0, _utils.updateGroupNodeIdAndAutoGenerated)({
51
57
  previousTree: null,
52
58
  tree,
53
59
  treeDepths,
54
60
  node,
55
61
  updatedNode: {
56
- id: getGroupRowIdFromPath(getNodePathInTree({
62
+ id: (0, _utils.getGroupRowIdFromPath)((0, _utils.getNodePathInTree)({
57
63
  id: node.id,
58
64
  tree
59
65
  })),
@@ -69,7 +75,7 @@ const replaceDataGroupWithAutoGeneratedGroup = ({
69
75
  * - An empty auto-generated should be removed from the tree
70
76
  * - An empty non-auto-generated should be turned into a leaf
71
77
  */
72
- export const removeDataRowFromTree = ({
78
+ const removeDataRowFromTree = ({
73
79
  id,
74
80
  tree,
75
81
  treeDepths,
@@ -91,4 +97,5 @@ export const removeDataRowFromTree = ({
91
97
  updatedGroupsManager
92
98
  });
93
99
  }
94
- };
100
+ };
101
+ exports.removeDataRowFromTree = removeDataRowFromTree;
@@ -1,4 +1,10 @@
1
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.sortRowTree = void 0;
7
+ var _xDataGrid = require("@mui/x-data-grid");
2
8
  // Single-linked list node
3
9
  class Node {
4
10
  constructor(data, next) {
@@ -55,7 +61,7 @@ class List {
55
61
  return new List(first, current);
56
62
  }
57
63
  }
58
- export const sortRowTree = params => {
64
+ const sortRowTree = params => {
59
65
  const {
60
66
  rowTree,
61
67
  disableChildrenSorting,
@@ -102,8 +108,8 @@ export const sortRowTree = params => {
102
108
  }
103
109
  sortedGroupedByParentRows.set(node.id, sortedRowIds);
104
110
  };
105
- sortGroup(rowTree[GRID_ROOT_GROUP_ID]);
106
- const rootList = List.from(sortedGroupedByParentRows.get(GRID_ROOT_GROUP_ID));
111
+ sortGroup(rowTree[_xDataGrid.GRID_ROOT_GROUP_ID]);
112
+ const rootList = List.from(sortedGroupedByParentRows.get(_xDataGrid.GRID_ROOT_GROUP_ID));
107
113
  rootList.forEach(node => {
108
114
  const children = sortedGroupedByParentRows.get(node.data);
109
115
  if (children?.length) {
@@ -111,4 +117,5 @@ export const sortRowTree = params => {
111
117
  }
112
118
  });
113
119
  return rootList.data();
114
- };
120
+ };
121
+ exports.sortRowTree = sortRowTree;
@@ -1,13 +1,20 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
3
- import { isDeepEqual, getTreeNodeDescendants } from '@mui/x-data-grid/internals';
4
- import { insertDataRowInTree } from "./insertDataRowInTree.js";
5
- import { removeDataRowFromTree } from "./removeDataRowFromTree.js";
6
- import { createUpdatedGroupsManager, getNodePathInTree } from "./utils.js";
7
- export const updateRowTree = params => {
8
- const tree = _extends({}, params.previousTree);
9
- const treeDepths = _extends({}, params.previousTreeDepth);
10
- const updatedGroupsManager = createUpdatedGroupsManager();
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.updateRowTree = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _xDataGrid = require("@mui/x-data-grid");
10
+ var _internals = require("@mui/x-data-grid/internals");
11
+ var _insertDataRowInTree = require("./insertDataRowInTree");
12
+ var _removeDataRowFromTree = require("./removeDataRowFromTree");
13
+ var _utils = require("./utils");
14
+ const updateRowTree = params => {
15
+ const tree = (0, _extends2.default)({}, params.previousTree);
16
+ const treeDepths = (0, _extends2.default)({}, params.previousTreeDepth);
17
+ const updatedGroupsManager = (0, _utils.createUpdatedGroupsManager)();
11
18
  const groupsToFetch = params.previousGroupsToFetch ? new Set([...params.previousGroupsToFetch]) : new Set([]);
12
19
  for (let i = 0; i < params.nodes.inserted.length; i += 1) {
13
20
  const {
@@ -15,7 +22,7 @@ export const updateRowTree = params => {
15
22
  path,
16
23
  serverChildrenCount
17
24
  } = params.nodes.inserted[i];
18
- insertDataRowInTree({
25
+ (0, _insertDataRowInTree.insertDataRowInTree)({
19
26
  previousTree: params.previousTree,
20
27
  tree,
21
28
  treeDepths,
@@ -31,7 +38,7 @@ export const updateRowTree = params => {
31
38
  }
32
39
  for (let i = 0; i < params.nodes.removed.length; i += 1) {
33
40
  const nodeId = params.nodes.removed[i];
34
- removeDataRowFromTree({
41
+ (0, _removeDataRowFromTree.removeDataRowFromTree)({
35
42
  tree,
36
43
  treeDepths,
37
44
  updatedGroupsManager,
@@ -44,19 +51,19 @@ export const updateRowTree = params => {
44
51
  path,
45
52
  serverChildrenCount
46
53
  } = params.nodes.modified[i];
47
- const pathInPreviousTree = getNodePathInTree({
54
+ const pathInPreviousTree = (0, _utils.getNodePathInTree)({
48
55
  tree,
49
56
  id
50
57
  });
51
- const isInSameGroup = isDeepEqual(pathInPreviousTree, path);
58
+ const isInSameGroup = (0, _internals.isDeepEqual)(pathInPreviousTree, path);
52
59
  if (!isInSameGroup) {
53
- removeDataRowFromTree({
60
+ (0, _removeDataRowFromTree.removeDataRowFromTree)({
54
61
  tree,
55
62
  treeDepths,
56
63
  updatedGroupsManager,
57
64
  id
58
65
  });
59
- insertDataRowInTree({
66
+ (0, _insertDataRowInTree.insertDataRowInTree)({
60
67
  previousTree: params.previousTree,
61
68
  tree,
62
69
  treeDepths,
@@ -75,7 +82,7 @@ export const updateRowTree = params => {
75
82
  }
76
83
 
77
84
  // TODO rows v6: Avoid walking the whole tree, we should be able to generate the new list only using slices.
78
- const dataRowIds = getTreeNodeDescendants(tree, GRID_ROOT_GROUP_ID, true);
85
+ const dataRowIds = (0, _internals.getTreeNodeDescendants)(tree, _xDataGrid.GRID_ROOT_GROUP_ID, true);
79
86
  return {
80
87
  tree,
81
88
  treeDepths,
@@ -84,4 +91,5 @@ export const updateRowTree = params => {
84
91
  updatedGroupsManager,
85
92
  groupsToFetch: Array.from(groupsToFetch)
86
93
  };
87
- };
94
+ };
95
+ exports.updateRowTree = updateRowTree;