@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
@@ -1,34 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import { GRID_STRING_COL_DEF, gridRowIdSelector } from '@mui/x-data-grid';
4
- import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
5
- import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.js";
6
- import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
7
- import { jsx as _jsx } from "react/jsx-runtime";
8
- export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
9
- export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
10
- type: 'custom',
11
- field: GRID_DETAIL_PANEL_TOGGLE_FIELD,
12
- editable: false,
13
- sortable: false,
14
- filterable: false,
15
- resizable: false,
16
- // @ts-ignore
17
- aggregable: false,
18
- disableColumnMenu: true,
19
- disableReorder: true,
20
- disableExport: true,
21
- align: 'left',
22
- width: 40,
23
- valueGetter: (value, row, column, apiRef) => {
24
- const rowId = gridRowIdSelector(apiRef.current.state, row);
25
- const expandedRowIds = gridDetailPanelExpandedRowIdsSelector(apiRef.current.state);
26
- return expandedRowIds.includes(rowId);
27
- },
28
- renderCell: params => /*#__PURE__*/_jsx(GridDetailPanelToggleCell, _extends({}, params)),
29
- renderHeader: ({
30
- colDef
31
- }) => /*#__PURE__*/_jsx("div", {
32
- "aria-label": colDef.headerName
33
- })
34
- });
@@ -1,3 +0,0 @@
1
- export * from "./gridDetailPanelToggleColDef.js";
2
- export { gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridDetailPanelExpandedRowsHeightCacheSelector } from "./gridDetailPanelSelector.js";
3
- export * from "./gridDetailPanelInterface.js";
@@ -1,43 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import { gridClasses } from '@mui/x-data-grid';
4
- import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
5
- import { GRID_DETAIL_PANEL_TOGGLE_FIELD, GRID_DETAIL_PANEL_TOGGLE_COL_DEF } from "./gridDetailPanelToggleColDef.js";
6
- import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
7
- export const useGridDetailPanelPreProcessors = (privateApiRef, props) => {
8
- const addToggleColumn = React.useCallback(columnsState => {
9
- if (props.getDetailPanelContent == null) {
10
- // Remove the toggle column, when it exists
11
- if (columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD]) {
12
- delete columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD];
13
- columnsState.orderedFields = columnsState.orderedFields.filter(field => field !== GRID_DETAIL_PANEL_TOGGLE_FIELD);
14
- }
15
- return columnsState;
16
- }
17
-
18
- // Don't add the toggle column if there's already one
19
- // The user might have manually added it to have it in a custom position
20
- if (columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD]) {
21
- return columnsState;
22
- }
23
-
24
- // Otherwise, add the toggle column at the beginning
25
- columnsState.orderedFields = [GRID_DETAIL_PANEL_TOGGLE_FIELD, ...columnsState.orderedFields];
26
- columnsState.lookup[GRID_DETAIL_PANEL_TOGGLE_FIELD] = _extends({}, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, {
27
- headerName: privateApiRef.current.getLocaleText('detailPanelToggle')
28
- });
29
- return columnsState;
30
- }, [privateApiRef, props.getDetailPanelContent]);
31
- const addExpandedClassToRow = React.useCallback((classes, id) => {
32
- if (props.getDetailPanelContent == null) {
33
- return classes;
34
- }
35
- const expandedRowIds = gridDetailPanelExpandedRowIdsSelector(privateApiRef.current.state);
36
- if (!expandedRowIds.includes(id)) {
37
- return classes;
38
- }
39
- return [...classes, gridClasses['row--detailPanelExpanded']];
40
- }, [privateApiRef, props.getDetailPanelContent]);
41
- useGridRegisterPipeProcessor(privateApiRef, 'hydrateColumns', addToggleColumn);
42
- useGridRegisterPipeProcessor(privateApiRef, 'rowClassName', addExpandedClassToRow);
43
- };
@@ -1,9 +0,0 @@
1
- // Only export the variable and types that should be publicly exposed and re-exported from `@mui/x-data-grid-pro`
2
- export * from "./columnPinning/index.js";
3
- export * from "./columnReorder/index.js";
4
- export * from "./rowReorder/index.js";
5
- export * from "./treeData/index.js";
6
- export * from "./detailPanel/index.js";
7
- export * from "./rowPinning/index.js";
8
- export * from "./dataSource/interfaces.js";
9
- export { GridDataSourceCacheDefault } from "./dataSource/cache.js";
@@ -1,34 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import { useGridRegisterPipeProcessor } from '@mui/x-data-grid/internals';
4
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
5
- export const GRID_SKELETON_ROW_ROOT_ID = 'auto-generated-skeleton-row-root';
6
- const getSkeletonRowId = index => `${GRID_SKELETON_ROW_ROOT_ID}-${index}`;
7
- export const useGridLazyLoaderPreProcessors = (privateApiRef, props) => {
8
- const addSkeletonRows = React.useCallback(groupingParams => {
9
- const rootGroup = groupingParams.tree[GRID_ROOT_GROUP_ID];
10
- if (props.rowsLoadingMode !== 'server' || !props.rowCount || rootGroup.children.length >= props.rowCount) {
11
- return groupingParams;
12
- }
13
- const tree = _extends({}, groupingParams.tree);
14
- const rootGroupChildren = [...rootGroup.children];
15
- for (let i = 0; i < props.rowCount - rootGroup.children.length; i += 1) {
16
- const skeletonId = getSkeletonRowId(i);
17
- rootGroupChildren.push(skeletonId);
18
- const skeletonRowNode = {
19
- type: 'skeletonRow',
20
- id: skeletonId,
21
- parent: GRID_ROOT_GROUP_ID,
22
- depth: 0
23
- };
24
- tree[skeletonId] = skeletonRowNode;
25
- }
26
- tree[GRID_ROOT_GROUP_ID] = _extends({}, rootGroup, {
27
- children: rootGroupChildren
28
- });
29
- return _extends({}, groupingParams, {
30
- tree
31
- });
32
- }, [props.rowCount, props.rowsLoadingMode]);
33
- useGridRegisterPipeProcessor(privateApiRef, 'hydrateRows', addSkeletonRows);
34
- };
@@ -1 +0,0 @@
1
- export { gridAdditionalRowGroupsSelector, gridPinnedRowsSelector } from '@mui/x-data-grid/internals';
@@ -1 +0,0 @@
1
- export * from "./gridRowPinningInterface.js";
@@ -1,52 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import * as React from 'react';
3
- import { useGridApiMethod } from '@mui/x-data-grid';
4
- import { getRowIdFromRowModel } from '@mui/x-data-grid/internals';
5
- function createPinnedRowsInternalCache(pinnedRows, getRowId) {
6
- const cache = {
7
- topIds: [],
8
- bottomIds: [],
9
- idLookup: {}
10
- };
11
- pinnedRows?.top?.forEach(rowModel => {
12
- const id = getRowIdFromRowModel(rowModel, getRowId);
13
- cache.topIds.push(id);
14
- cache.idLookup[id] = rowModel;
15
- });
16
- pinnedRows?.bottom?.forEach(rowModel => {
17
- const id = getRowIdFromRowModel(rowModel, getRowId);
18
- cache.bottomIds.push(id);
19
- cache.idLookup[id] = rowModel;
20
- });
21
- return cache;
22
- }
23
- export const rowPinningStateInitializer = (state, props, apiRef) => {
24
- apiRef.current.caches.pinnedRows = createPinnedRowsInternalCache(props.pinnedRows, props.getRowId);
25
- return _extends({}, state, {
26
- rows: _extends({}, state.rows, {
27
- additionalRowGroups: _extends({}, state.rows?.additionalRowGroups, {
28
- pinnedRows: {
29
- top: [],
30
- bottom: []
31
- }
32
- })
33
- })
34
- });
35
- };
36
- export const useGridRowPinning = (apiRef, props) => {
37
- const setPinnedRows = React.useCallback(newPinnedRows => {
38
- apiRef.current.caches.pinnedRows = createPinnedRowsInternalCache(newPinnedRows, props.getRowId);
39
- apiRef.current.requestPipeProcessorsApplication('hydrateRows');
40
- }, [apiRef, props.getRowId]);
41
- useGridApiMethod(apiRef, {
42
- unstable_setPinnedRows: setPinnedRows
43
- }, 'public');
44
- const isFirstRender = React.useRef(true);
45
- React.useEffect(() => {
46
- if (isFirstRender.current) {
47
- isFirstRender.current = false;
48
- return;
49
- }
50
- apiRef.current.unstable_setPinnedRows(props.pinnedRows);
51
- }, [apiRef, props.pinnedRows]);
52
- };
@@ -1,20 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
3
- import { renderRowReorderCell } from "../../../components/GridRowReorderCell.js";
4
- export const GRID_REORDER_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
5
- type: 'custom',
6
- field: '__reorder__',
7
- sortable: false,
8
- filterable: false,
9
- width: 50,
10
- align: 'center',
11
- headerAlign: 'center',
12
- disableColumnMenu: true,
13
- disableExport: true,
14
- disableReorder: true,
15
- resizable: false,
16
- // @ts-ignore
17
- aggregable: false,
18
- renderHeader: () => ' ',
19
- renderCell: renderRowReorderCell
20
- });
@@ -1 +0,0 @@
1
- export * from "./gridRowReorderColDef.js";
@@ -1 +0,0 @@
1
- export * from "./useGridRowAriaAttributes.js";
@@ -1,37 +0,0 @@
1
- import * as React from 'react';
2
- import { useGridSelector, gridFilteredTopLevelRowCountSelector, GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
3
- import { useGridRowAriaAttributes as useGridRowAriaAttributesCommunity, gridFilteredChildrenCountLookupSelector, gridExpandedSortedRowTreeLevelPositionLookupSelector } from '@mui/x-data-grid/internals';
4
- import { useGridPrivateApiContext } from "../../utils/useGridPrivateApiContext.js";
5
- import { useGridRootProps } from "../../utils/useGridRootProps.js";
6
- export const useGridRowAriaAttributes = addTreeDataAttributes => {
7
- const apiRef = useGridPrivateApiContext();
8
- const props = useGridRootProps();
9
- const getRowAriaAttributesCommunity = useGridRowAriaAttributesCommunity();
10
- const filteredTopLevelRowCount = useGridSelector(apiRef, gridFilteredTopLevelRowCountSelector);
11
- const filteredChildrenCountLookup = useGridSelector(apiRef, gridFilteredChildrenCountLookupSelector);
12
- const sortedVisibleRowPositionsLookup = useGridSelector(apiRef, gridExpandedSortedRowTreeLevelPositionLookupSelector);
13
- return React.useCallback((rowNode, index) => {
14
- const ariaAttributes = getRowAriaAttributesCommunity(rowNode, index);
15
- if (rowNode === null || !(props.treeData || addTreeDataAttributes)) {
16
- return ariaAttributes;
17
- }
18
-
19
- // pinned and footer rows are not part of the rowgroup and should not get the set specific aria attributes
20
- if (rowNode.type === 'footer' || rowNode.type === 'pinnedRow') {
21
- return ariaAttributes;
22
- }
23
- ariaAttributes['aria-level'] = rowNode.depth + 1;
24
- const filteredChildrenCount = filteredChildrenCountLookup[rowNode.id] ?? 0;
25
- // aria-expanded should only be added to the rows that contain children
26
- if (rowNode.type === 'group' && filteredChildrenCount > 0) {
27
- ariaAttributes['aria-expanded'] = Boolean(rowNode.childrenExpanded);
28
- }
29
-
30
- // if the parent is null, set size and position cannot be determined
31
- if (rowNode.parent !== null) {
32
- ariaAttributes['aria-setsize'] = rowNode.parent === GRID_ROOT_GROUP_ID ? filteredTopLevelRowCount : filteredChildrenCountLookup[rowNode.parent];
33
- ariaAttributes['aria-posinset'] = sortedVisibleRowPositionsLookup[rowNode.id];
34
- }
35
- return ariaAttributes;
36
- }, [props.treeData, addTreeDataAttributes, filteredTopLevelRowCount, filteredChildrenCountLookup, sortedVisibleRowPositionsLookup, getRowAriaAttributesCommunity]);
37
- };
@@ -1,20 +0,0 @@
1
- import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
2
- import { defaultGridFilterLookup, getTreeNodeDescendants } from '@mui/x-data-grid/internals';
3
- export function skipFiltering(rowTree) {
4
- const filteredRowsLookup = {};
5
- const filteredChildrenCountLookup = {};
6
- const nodes = Object.values(rowTree);
7
- for (let i = 0; i < nodes.length; i += 1) {
8
- const node = nodes[i];
9
- filteredRowsLookup[node.id] = true;
10
- filteredChildrenCountLookup[node.id] = node.serverChildrenCount ?? 0;
11
- }
12
- return {
13
- filteredRowsLookup,
14
- filteredChildrenCountLookup,
15
- filteredDescendantCountLookup: defaultGridFilterLookup.filteredDescendantCountLookup
16
- };
17
- }
18
- export function skipSorting(rowTree) {
19
- return getTreeNodeDescendants(rowTree, GRID_ROOT_GROUP_ID, false);
20
- }
@@ -1,27 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { GRID_STRING_COL_DEF, gridRowIdSelector, gridRowTreeSelector } from '@mui/x-data-grid';
3
- import { GRID_TREE_DATA_GROUPING_FIELD } from '@mui/x-data-grid/internals';
4
-
5
- /**
6
- * TODO: Add sorting and filtering on the value and the filteredDescendantCount
7
- */
8
- export const GRID_TREE_DATA_GROUPING_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
9
- type: 'custom',
10
- sortable: false,
11
- filterable: false,
12
- disableColumnMenu: true,
13
- disableReorder: true,
14
- align: 'left',
15
- width: 200,
16
- valueGetter: (value, row, column, apiRef) => {
17
- const rowId = gridRowIdSelector(apiRef.current.state, row);
18
- const rowNode = gridRowTreeSelector(apiRef)[rowId];
19
- return rowNode?.type === 'group' || rowNode?.type === 'leaf' ? rowNode.groupingKey : undefined;
20
- }
21
- });
22
- export { GRID_TREE_DATA_GROUPING_FIELD };
23
- export const GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = {
24
- field: GRID_TREE_DATA_GROUPING_FIELD,
25
- editable: false,
26
- groupable: false
27
- };
@@ -1 +0,0 @@
1
- export { GRID_TREE_DATA_GROUPING_FIELD } from "./gridTreeDataGroupColDef.js";
@@ -1,22 +0,0 @@
1
- import * as React from 'react';
2
- import { useGridApiEventHandler } from '@mui/x-data-grid';
3
- import { GRID_TREE_DATA_GROUPING_FIELD } from "./gridTreeDataGroupColDef.js";
4
- export const useGridTreeData = (apiRef, props) => {
5
- /**
6
- * EVENTS
7
- */
8
- const handleCellKeyDown = React.useCallback((params, event) => {
9
- const cellParams = apiRef.current.getCellParams(params.id, params.field);
10
- if (cellParams.colDef.field === GRID_TREE_DATA_GROUPING_FIELD && (event.key === ' ' || event.key === 'Enter') && !event.shiftKey) {
11
- if (params.rowNode.type !== 'group') {
12
- return;
13
- }
14
- if (props.unstable_dataSource && !params.rowNode.childrenExpanded) {
15
- apiRef.current.unstable_dataSource.fetchRows(params.id);
16
- return;
17
- }
18
- apiRef.current.setRowChildrenExpansion(params.id, !params.rowNode.childrenExpanded);
19
- }
20
- }, [apiRef, props.unstable_dataSource]);
21
- useGridApiEventHandler(apiRef, 'cellKeyDown', handleCellKeyDown);
22
- };
@@ -1 +0,0 @@
1
- export * from "./features/index.js";
@@ -1,2 +0,0 @@
1
- import { useGridApiContext as useCommunityGridApiContext } from '@mui/x-data-grid';
2
- export const useGridApiContext = useCommunityGridApiContext;
@@ -1,2 +0,0 @@
1
- import { useGridApiRef as useCommunityGridApiRef } from '@mui/x-data-grid';
2
- export const useGridApiRef = useCommunityGridApiRef;
@@ -1,11 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { useGridAriaAttributes as useGridAriaAttributesCommunity } from '@mui/x-data-grid/internals';
3
- import { useGridRootProps } from "./useGridRootProps.js";
4
- export const useGridAriaAttributes = () => {
5
- const ariaAttributesCommunity = useGridAriaAttributesCommunity();
6
- const rootProps = useGridRootProps();
7
- const ariaAttributesPro = rootProps.treeData ? {
8
- role: 'treegrid'
9
- } : {};
10
- return _extends({}, ariaAttributesCommunity, ariaAttributesPro);
11
- };
@@ -1,2 +0,0 @@
1
- import { useGridPrivateApiContext as useCommunityGridPrivateApiContext } from '@mui/x-data-grid/internals';
2
- export const useGridPrivateApiContext = useCommunityGridPrivateApiContext;
@@ -1,2 +0,0 @@
1
- import { useGridRootProps as useCommunityGridRootProps } from '@mui/x-data-grid';
2
- export const useGridRootProps = useCommunityGridRootProps;
package/esm/index.js DELETED
@@ -1,22 +0,0 @@
1
- import "./typeOverloads/index.js";
2
- import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
3
- /**
4
- * @deprecated Use `@mui/x-license` package instead:
5
- * @example import { LicenseInfo } from '@mui/x-license';
6
- */
7
- export class LicenseInfo extends LicenseInfoExport {}
8
- export * from '@mui/x-data-grid/components';
9
- export * from '@mui/x-data-grid/constants';
10
- export * from '@mui/x-data-grid/hooks';
11
- export * from '@mui/x-data-grid/models';
12
- export * from '@mui/x-data-grid/context';
13
- export * from '@mui/x-data-grid/utils';
14
- export * from '@mui/x-data-grid/colDef';
15
- export * from "./DataGridPro/index.js";
16
- export * from "./hooks/index.js";
17
- export * from "./models/index.js";
18
- export * from "./components/index.js";
19
- export * from "./utils/index.js";
20
- export { useGridApiContext, useGridApiRef, useGridRootProps } from "./typeOverloads/reexports.js";
21
- export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from "./components/reexports.js";
22
- export { GridColumnHeaders } from "./components/GridColumnHeaders.js";
@@ -1,35 +0,0 @@
1
- // eslint-disable-next-line import/export
2
- export * from '@mui/x-data-grid/internals';
3
- export { GridColumnHeaders } from "../components/GridColumnHeaders.js";
4
- export { DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS } from "../constants/dataGridProDefaultSlotsComponents.js";
5
-
6
- /* eslint-disable import/export --
7
- * x-data-grid-pro internals that are overriding the x-data-grid internals
8
- */
9
- export { useGridColumnHeaders } from "../hooks/features/columnHeaders/useGridColumnHeaders.js";
10
- export { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
11
- export { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
12
- // eslint-enable import/export
13
-
14
- export { useGridColumnPinning, columnPinningStateInitializer } from "../hooks/features/columnPinning/useGridColumnPinning.js";
15
- export { useGridColumnPinningPreProcessors } from "../hooks/features/columnPinning/useGridColumnPinningPreProcessors.js";
16
- export { useGridColumnReorder, columnReorderStateInitializer } from "../hooks/features/columnReorder/useGridColumnReorder.js";
17
- export { useGridDataSourceTreeDataPreProcessors } from "../hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js";
18
- export { useGridDetailPanel, detailPanelStateInitializer } from "../hooks/features/detailPanel/useGridDetailPanel.js";
19
- export { useGridDetailPanelPreProcessors } from "../hooks/features/detailPanel/useGridDetailPanelPreProcessors.js";
20
- export { useGridInfiniteLoader } from "../hooks/features/infiniteLoader/useGridInfiniteLoader.js";
21
- export { useGridRowReorder } from "../hooks/features/rowReorder/useGridRowReorder.js";
22
- export { useGridRowReorderPreProcessors } from "../hooks/features/rowReorder/useGridRowReorderPreProcessors.js";
23
- export { useGridTreeData } from "../hooks/features/treeData/useGridTreeData.js";
24
- export { useGridTreeDataPreProcessors } from "../hooks/features/treeData/useGridTreeDataPreProcessors.js";
25
- export { useGridRowPinning, rowPinningStateInitializer } from "../hooks/features/rowPinning/useGridRowPinning.js";
26
- export { useGridRowPinningPreProcessors, addPinnedRow } from "../hooks/features/rowPinning/useGridRowPinningPreProcessors.js";
27
- export { useGridLazyLoader } from "../hooks/features/lazyLoader/useGridLazyLoader.js";
28
- export { useGridLazyLoaderPreProcessors } from "../hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js";
29
- export { useGridDataSource, dataSourceStateInitializer } from "../hooks/features/dataSource/useGridDataSource.js";
30
- export { createRowTree } from "../utils/tree/createRowTree.js";
31
- export { updateRowTree } from "../utils/tree/updateRowTree.js";
32
- export { sortRowTree } from "../utils/tree/sortRowTree.js";
33
- export { insertNodeInTree, removeNodeFromTree, getVisibleRowsLookup } from "../utils/tree/utils.js";
34
- export { skipSorting, skipFiltering } from "../hooks/features/serverSideTreeData/utils.js";
35
- export * from "./propValidation.js";
@@ -1,2 +0,0 @@
1
- import { GridSignature, isNumber, propValidatorsDataGrid } from '@mui/x-data-grid/internals';
2
- export const propValidatorsDataGridPro = [...propValidatorsDataGrid, props => props.pagination && props.hideFooterRowCount && 'MUI X: The `hideFooterRowCount` prop has no effect when the pagination is enabled.' || undefined, props => props.treeData && props.filterMode === 'server' && !props.unstable_dataSource && 'MUI X: The `filterMode="server"` prop is not available when the `treeData` is enabled.' || undefined, props => !props.pagination && props.checkboxSelectionVisibleOnly && 'MUI X: The `checkboxSelectionVisibleOnly` prop has no effect when the pagination is not enabled.' || undefined, props => props.signature !== GridSignature.DataGrid && props.paginationMode === 'client' && props.rowsLoadingMode !== 'server' && isNumber(props.rowCount) && 'MUI X: Usage of the `rowCount` prop with client side pagination (`paginationMode="client"`) has no effect. `rowCount` is only meant to be used with `paginationMode="server"`.' || undefined];
@@ -1,17 +0,0 @@
1
- import * as React from 'react';
2
- import { createSvgIcon } from '@mui/material/utils';
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- export const GridPushPinRightIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
5
- transform: "rotate(-30 15 10)",
6
- children: /*#__PURE__*/_jsx("path", {
7
- d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
8
- fillRule: "evenodd"
9
- })
10
- }), 'PushPinRight');
11
- export const GridPushPinLeftIcon = createSvgIcon(/*#__PURE__*/_jsx("g", {
12
- transform: "rotate(30 8 12)",
13
- children: /*#__PURE__*/_jsx("path", {
14
- d: "M16,9V4l1,0c0.55,0,1-0.45,1-1v0c0-0.55-0.45-1-1-1H7C6.45,2,6,2.45,6,3v0 c0,0.55,0.45,1,1,1l1,0v5c0,1.66-1.34,3-3,3h0v2h5.97v7l1,1l1-1v-7H19v-2h0C17.34,12,16,10.66,16,9z",
15
- fillRule: "evenodd"
16
- })
17
- }), 'PushPinLeft');
@@ -1,8 +0,0 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { GridPushPinRightIcon, GridPushPinLeftIcon } from "./icons.js";
3
- const iconSlots = {
4
- columnMenuPinRightIcon: GridPushPinRightIcon,
5
- columnMenuPinLeftIcon: GridPushPinLeftIcon
6
- };
7
- const materialSlots = _extends({}, iconSlots);
8
- export default materialSlots;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +0,0 @@
1
- export * from "./gridApiPro.js";
2
- export * from "./gridGroupingColDefOverride.js";
3
- export * from "./gridRowScrollEndParams.js";
4
- export * from "./gridRowOrderChangeParams.js";
5
- export * from "./gridFetchRowsParams.js";
6
- export * from "./gridProSlotsComponent.js";
7
- export * from "./gridProIconSlotsComponent.js";
8
- export {};
@@ -1,4 +0,0 @@
1
- export * from "./overrides.js";
2
- export * from "./props.js";
3
- // TODO v5
4
- // export * from './components';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export * from "./modules.js";
@@ -1 +0,0 @@
1
- export {};
@@ -1,15 +0,0 @@
1
- export { useGridApiContext } from "../hooks/utils/useGridApiContext.js";
2
- export { useGridApiRef } from "../hooks/utils/useGridApiRef.js";
3
- export { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
4
-
5
- /**
6
- * The full grid API.
7
- */
8
-
9
- /**
10
- * The state of Data Grid Pro.
11
- */
12
-
13
- /**
14
- * The initial state of Data Grid Pro.
15
- */
@@ -1 +0,0 @@
1
- export * from "./tree/index.js";
@@ -1,13 +0,0 @@
1
- import { ponyfillGlobal } from '@mui/utils';
2
- export const getReleaseInfo = () => {
3
- const releaseInfo = "MTc0NDc1NDQwMDAwMA==";
4
- if (process.env.NODE_ENV !== 'production') {
5
- // A simple hack to set the value in the test environment (has no build step).
6
- // eslint-disable-next-line no-useless-concat
7
- if (releaseInfo === '__RELEASE' + '_INFO__') {
8
- // eslint-disable-next-line no-underscore-dangle
9
- return ponyfillGlobal.__MUI_RELEASE_INFO__;
10
- }
11
- }
12
- return releaseInfo;
13
- };
@@ -1 +0,0 @@
1
- export { getGroupRowIdFromPath } from "./utils.js";
@@ -1 +0,0 @@
1
- export {};
File without changes
File without changes
File without changes
File without changes