@mui/x-data-grid-pro 7.29.0 → 7.29.2

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 (308) hide show
  1. package/CHANGELOG.md +131 -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 +20 -28
  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/DataGridPro/useDataGridProProps.js +6 -5
  99. package/modern/components/GridDetailPanel.js +2 -0
  100. package/modern/components/GridDetailPanels.js +2 -0
  101. package/modern/components/headerFiltering/GridHeaderFilterMenu.js +2 -2
  102. package/modern/hooks/features/detailPanel/useGridDetailPanel.js +3 -2
  103. package/modern/index.js +1 -1
  104. package/modern/utils/releaseInfo.js +1 -1
  105. package/{esm → node}/DataGridPro/DataGrid.js +9 -2
  106. package/{esm → node}/DataGridPro/DataGridPro.js +238 -231
  107. package/node/DataGridPro/index.js +39 -0
  108. package/node/DataGridPro/useDataGridProComponent.js +111 -0
  109. package/node/DataGridPro/useDataGridProProps.js +62 -0
  110. package/node/components/GridColumnHeaderCollapseIcon.js +1 -0
  111. package/node/components/GridColumnHeaders.js +99 -0
  112. package/node/components/GridColumnMenuPinningItem.js +97 -0
  113. package/node/components/GridDataSourceTreeDataGroupingCell.js +118 -0
  114. package/{esm → node}/components/GridDetailPanel.js +20 -13
  115. package/node/components/GridDetailPanelToggleCell.js +128 -0
  116. package/node/components/GridDetailPanels.js +69 -0
  117. package/node/components/GridPinnedRows.js +48 -0
  118. package/node/components/GridProColumnMenu.js +29 -0
  119. package/{esm → node}/components/GridRowReorderCell.js +45 -36
  120. package/{esm → node}/components/GridTreeDataGroupingCell.js +44 -37
  121. package/{esm → node}/components/headerFiltering/GridHeaderFilterCell.js +78 -71
  122. package/node/components/headerFiltering/GridHeaderFilterClearButton.js +28 -0
  123. package/node/components/headerFiltering/GridHeaderFilterMenu.js +95 -0
  124. package/node/components/headerFiltering/GridHeaderFilterMenuContainer.js +106 -0
  125. package/node/components/headerFiltering/index.js +38 -0
  126. package/node/components/index.js +71 -0
  127. package/node/components/reexports.js +24 -0
  128. package/node/constants/dataGridProDefaultSlotsComponents.js +24 -0
  129. package/{esm → node}/hooks/features/columnHeaders/useGridColumnHeaders.js +39 -30
  130. package/node/hooks/features/columnPinning/gridColumnPinningInterface.js +5 -0
  131. package/node/hooks/features/columnPinning/index.js +16 -0
  132. package/{esm → node}/hooks/features/columnPinning/useGridColumnPinning.js +42 -32
  133. package/{esm → node}/hooks/features/columnPinning/useGridColumnPinningPreProcessors.js +19 -10
  134. package/node/hooks/features/columnReorder/columnReorderInterfaces.js +5 -0
  135. package/node/hooks/features/columnReorder/columnReorderSelector.js +10 -0
  136. package/node/hooks/features/columnReorder/index.js +16 -0
  137. package/{esm → node}/hooks/features/columnReorder/useGridColumnReorder.js +35 -25
  138. package/{esm → node}/hooks/features/dataSource/cache.js +11 -3
  139. package/node/hooks/features/dataSource/gridDataSourceSelector.js +32 -0
  140. package/node/hooks/features/dataSource/interfaces.js +5 -0
  141. package/{esm → node}/hooks/features/dataSource/useGridDataSource.js +44 -34
  142. package/{esm → node}/hooks/features/dataSource/utils.js +17 -9
  143. package/node/hooks/features/detailPanel/gridDetailPanelInterface.js +5 -0
  144. package/node/hooks/features/detailPanel/gridDetailPanelSelector.js +21 -0
  145. package/node/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +47 -0
  146. package/node/hooks/features/detailPanel/index.js +53 -0
  147. package/{esm → node}/hooks/features/detailPanel/useGridDetailPanel.js +49 -38
  148. package/node/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +52 -0
  149. package/node/hooks/features/index.js +99 -0
  150. package/{esm → node}/hooks/features/infiniteLoader/useGridInfiniteLoader.js +27 -18
  151. package/{esm → node}/hooks/features/lazyLoader/useGridLazyLoader.js +22 -14
  152. package/node/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +43 -0
  153. package/node/hooks/features/rowPinning/gridRowPinningInterface.js +5 -0
  154. package/node/hooks/features/rowPinning/gridRowPinningSelector.js +18 -0
  155. package/node/hooks/features/rowPinning/index.js +16 -0
  156. package/node/hooks/features/rowPinning/useGridRowPinning.js +62 -0
  157. package/{esm → node}/hooks/features/rowPinning/useGridRowPinningPreProcessors.js +34 -24
  158. package/node/hooks/features/rowReorder/gridRowReorderColDef.js +27 -0
  159. package/node/hooks/features/rowReorder/index.js +16 -0
  160. package/{esm → node}/hooks/features/rowReorder/useGridRowReorder.js +29 -20
  161. package/{esm → node}/hooks/features/rowReorder/useGridRowReorderPreProcessors.js +21 -12
  162. package/node/hooks/features/rows/index.js +16 -0
  163. package/node/hooks/features/rows/useGridRowAriaAttributes.js +45 -0
  164. package/{esm → node}/hooks/features/serverSideTreeData/useGridDataSourceTreeDataPreProcessors.js +46 -37
  165. package/node/hooks/features/serverSideTreeData/utils.js +27 -0
  166. package/node/hooks/features/treeData/gridTreeDataGroupColDef.js +38 -0
  167. package/{esm → node}/hooks/features/treeData/gridTreeDataUtils.js +12 -6
  168. package/node/hooks/features/treeData/index.js +12 -0
  169. package/node/hooks/features/treeData/useGridTreeData.js +30 -0
  170. package/{esm → node}/hooks/features/treeData/useGridTreeDataPreProcessors.js +46 -37
  171. package/node/hooks/index.js +16 -0
  172. package/node/hooks/utils/useGridApiContext.js +8 -0
  173. package/node/hooks/utils/useGridApiRef.js +8 -0
  174. package/node/hooks/utils/useGridAriaAttributes.js +19 -0
  175. package/node/hooks/utils/useGridPrivateApiContext.js +8 -0
  176. package/node/hooks/utils/useGridRootProps.js +8 -0
  177. package/node/index.js +220 -0
  178. package/node/internals/index.js +302 -0
  179. package/node/internals/propValidation.js +8 -0
  180. package/node/material/icons.js +24 -0
  181. package/node/material/index.js +15 -0
  182. package/node/models/dataGridProProps.js +5 -0
  183. package/node/models/gridApiPro.js +5 -0
  184. package/node/models/gridFetchRowsParams.js +5 -0
  185. package/node/models/gridGroupingColDefOverride.js +5 -0
  186. package/node/models/gridProIconSlotsComponent.js +5 -0
  187. package/node/models/gridProSlotProps.js +5 -0
  188. package/node/models/gridProSlotsComponent.js +5 -0
  189. package/node/models/gridRowOrderChangeParams.js +5 -0
  190. package/node/models/gridRowScrollEndParams.js +5 -0
  191. package/node/models/gridStatePro.js +5 -0
  192. package/node/models/index.js +82 -0
  193. package/node/themeAugmentation/index.js +27 -0
  194. package/node/themeAugmentation/overrides.js +5 -0
  195. package/node/themeAugmentation/props.js +5 -0
  196. package/node/typeOverloads/index.js +16 -0
  197. package/node/typeOverloads/modules.js +5 -0
  198. package/node/typeOverloads/reexports.js +26 -0
  199. package/node/utils/index.js +16 -0
  200. package/node/utils/releaseInfo.js +20 -0
  201. package/{esm → node}/utils/tree/createRowTree.js +14 -7
  202. package/node/utils/tree/index.js +12 -0
  203. package/{esm → node}/utils/tree/insertDataRowInTree.js +18 -11
  204. package/node/utils/tree/models.js +5 -0
  205. package/{esm → node}/utils/tree/removeDataRowFromTree.js +16 -9
  206. package/{esm → node}/utils/tree/sortRowTree.js +12 -5
  207. package/{esm → node}/utils/tree/updateRowTree.js +26 -18
  208. package/{esm → node}/utils/tree/utils.js +34 -18
  209. package/package.json +6 -6
  210. package/themeAugmentation/index.js +4 -27
  211. package/themeAugmentation/overrides.js +1 -5
  212. package/themeAugmentation/package.json +2 -2
  213. package/themeAugmentation/props.js +1 -5
  214. package/typeOverloads/index.js +1 -16
  215. package/typeOverloads/modules.js +1 -5
  216. package/typeOverloads/package.json +2 -2
  217. package/typeOverloads/reexports.js +14 -25
  218. package/utils/index.js +1 -16
  219. package/utils/package.json +2 -2
  220. package/utils/releaseInfo.js +5 -12
  221. package/utils/tree/createRowTree.js +7 -14
  222. package/utils/tree/index.js +1 -12
  223. package/utils/tree/insertDataRowInTree.js +11 -18
  224. package/utils/tree/models.js +1 -5
  225. package/utils/tree/removeDataRowFromTree.js +9 -16
  226. package/utils/tree/sortRowTree.js +5 -12
  227. package/utils/tree/updateRowTree.js +18 -26
  228. package/utils/tree/utils.js +18 -34
  229. package/esm/DataGridPro/index.js +0 -3
  230. package/esm/DataGridPro/useDataGridProComponent.js +0 -103
  231. package/esm/DataGridPro/useDataGridProProps.js +0 -52
  232. package/esm/components/GridColumnHeaderCollapseIcon.js +0 -0
  233. package/esm/components/GridColumnHeaders.js +0 -92
  234. package/esm/components/GridColumnMenuPinningItem.js +0 -90
  235. package/esm/components/GridDataSourceTreeDataGroupingCell.js +0 -110
  236. package/esm/components/GridDetailPanelToggleCell.js +0 -121
  237. package/esm/components/GridDetailPanels.js +0 -60
  238. package/esm/components/GridPinnedRows.js +0 -40
  239. package/esm/components/GridProColumnMenu.js +0 -21
  240. package/esm/components/headerFiltering/GridHeaderFilterClearButton.js +0 -21
  241. package/esm/components/headerFiltering/GridHeaderFilterMenu.js +0 -88
  242. package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +0 -99
  243. package/esm/components/headerFiltering/index.js +0 -3
  244. package/esm/components/index.js +0 -7
  245. package/esm/components/reexports.js +0 -1
  246. package/esm/constants/dataGridProDefaultSlotsComponents.js +0 -17
  247. package/esm/hooks/features/columnPinning/gridColumnPinningInterface.js +0 -1
  248. package/esm/hooks/features/columnPinning/index.js +0 -1
  249. package/esm/hooks/features/columnReorder/columnReorderInterfaces.js +0 -1
  250. package/esm/hooks/features/columnReorder/columnReorderSelector.js +0 -3
  251. package/esm/hooks/features/columnReorder/index.js +0 -2
  252. package/esm/hooks/features/dataSource/gridDataSourceSelector.js +0 -24
  253. package/esm/hooks/features/dataSource/interfaces.js +0 -1
  254. package/esm/hooks/features/detailPanel/gridDetailPanelInterface.js +0 -1
  255. package/esm/hooks/features/detailPanel/gridDetailPanelSelector.js +0 -12
  256. package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +0 -34
  257. package/esm/hooks/features/detailPanel/index.js +0 -3
  258. package/esm/hooks/features/detailPanel/useGridDetailPanelPreProcessors.js +0 -43
  259. package/esm/hooks/features/index.js +0 -9
  260. package/esm/hooks/features/lazyLoader/useGridLazyLoaderPreProcessors.js +0 -34
  261. package/esm/hooks/features/rowPinning/gridRowPinningInterface.js +0 -1
  262. package/esm/hooks/features/rowPinning/gridRowPinningSelector.js +0 -1
  263. package/esm/hooks/features/rowPinning/index.js +0 -1
  264. package/esm/hooks/features/rowPinning/useGridRowPinning.js +0 -52
  265. package/esm/hooks/features/rowReorder/gridRowReorderColDef.js +0 -20
  266. package/esm/hooks/features/rowReorder/index.js +0 -1
  267. package/esm/hooks/features/rows/index.js +0 -1
  268. package/esm/hooks/features/rows/useGridRowAriaAttributes.js +0 -37
  269. package/esm/hooks/features/serverSideTreeData/utils.js +0 -20
  270. package/esm/hooks/features/treeData/gridTreeDataGroupColDef.js +0 -27
  271. package/esm/hooks/features/treeData/index.js +0 -1
  272. package/esm/hooks/features/treeData/useGridTreeData.js +0 -22
  273. package/esm/hooks/index.js +0 -1
  274. package/esm/hooks/utils/useGridApiContext.js +0 -2
  275. package/esm/hooks/utils/useGridApiRef.js +0 -2
  276. package/esm/hooks/utils/useGridAriaAttributes.js +0 -11
  277. package/esm/hooks/utils/useGridPrivateApiContext.js +0 -2
  278. package/esm/hooks/utils/useGridRootProps.js +0 -2
  279. package/esm/index.js +0 -22
  280. package/esm/internals/index.js +0 -35
  281. package/esm/internals/propValidation.js +0 -2
  282. package/esm/material/icons.js +0 -17
  283. package/esm/material/index.js +0 -8
  284. package/esm/models/dataGridProProps.js +0 -1
  285. package/esm/models/gridApiPro.js +0 -1
  286. package/esm/models/gridFetchRowsParams.js +0 -1
  287. package/esm/models/gridGroupingColDefOverride.js +0 -1
  288. package/esm/models/gridProIconSlotsComponent.js +0 -1
  289. package/esm/models/gridProSlotProps.js +0 -1
  290. package/esm/models/gridProSlotsComponent.js +0 -1
  291. package/esm/models/gridRowOrderChangeParams.js +0 -1
  292. package/esm/models/gridRowScrollEndParams.js +0 -1
  293. package/esm/models/gridStatePro.js +0 -1
  294. package/esm/models/index.js +0 -8
  295. package/esm/themeAugmentation/index.js +0 -4
  296. package/esm/themeAugmentation/overrides.js +0 -1
  297. package/esm/themeAugmentation/props.js +0 -1
  298. package/esm/typeOverloads/index.js +0 -1
  299. package/esm/typeOverloads/modules.js +0 -1
  300. package/esm/typeOverloads/reexports.js +0 -15
  301. package/esm/utils/index.js +0 -1
  302. package/esm/utils/releaseInfo.js +0 -13
  303. package/esm/utils/tree/index.js +0 -1
  304. package/esm/utils/tree/models.js +0 -1
  305. /package/{locales.d.ts → locales/index.d.ts} +0 -0
  306. /package/{esm/locales.js → locales/index.js} +0 -0
  307. /package/modern/{locales.js → locales/index.js} +0 -0
  308. /package/{locales.js → node/locales/index.js} +0 -0
@@ -1,43 +1,50 @@
1
+ "use strict";
1
2
  'use client';
2
3
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import * as React from 'react';
5
- import PropTypes from 'prop-types';
6
- import { useLicenseVerifier, Watermark } from '@mui/x-license';
7
- import { GridRoot, GridContextProvider } from '@mui/x-data-grid';
8
- import { validateProps } from '@mui/x-data-grid/internals';
9
- import { forwardRef } from '@mui/x-internals/forwardRef';
10
- import { useDataGridProComponent } from "./useDataGridProComponent.js";
11
- import { useDataGridProProps } from "./useDataGridProProps.js";
12
- import { getReleaseInfo } from "../utils/releaseInfo.js";
13
- import { propValidatorsDataGridPro } from "../internals/propValidation.js";
14
- import { useGridAriaAttributes } from "../hooks/utils/useGridAriaAttributes.js";
15
- import { useGridRowAriaAttributes } from "../hooks/features/rows/useGridRowAriaAttributes.js";
16
- import { jsx as _jsx } from "react/jsx-runtime";
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
6
+ Object.defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.DataGridPro = void 0;
10
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
+ var React = _interopRequireWildcard(require("react"));
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+ var _xLicense = require("@mui/x-license");
14
+ var _xDataGrid = require("@mui/x-data-grid");
15
+ var _internals = require("@mui/x-data-grid/internals");
16
+ var _forwardRef = require("@mui/x-internals/forwardRef");
17
+ var _useDataGridProComponent = require("./useDataGridProComponent");
18
+ var _useDataGridProProps = require("./useDataGridProProps");
19
+ var _releaseInfo = require("../utils/releaseInfo");
20
+ var _propValidation = require("../internals/propValidation");
21
+ var _useGridAriaAttributes = require("../hooks/utils/useGridAriaAttributes");
22
+ var _useGridRowAriaAttributes = require("../hooks/features/rows/useGridRowAriaAttributes");
23
+ var _jsxRuntime = require("react/jsx-runtime");
17
24
  const configuration = {
18
25
  hooks: {
19
- useGridAriaAttributes,
20
- useGridRowAriaAttributes,
26
+ useGridAriaAttributes: _useGridAriaAttributes.useGridAriaAttributes,
27
+ useGridRowAriaAttributes: _useGridRowAriaAttributes.useGridRowAriaAttributes,
21
28
  useCellAggregationResult: () => null
22
29
  }
23
30
  };
24
- const releaseInfo = getReleaseInfo();
25
- const watermark = /*#__PURE__*/_jsx(Watermark, {
31
+ const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
32
+ const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
26
33
  packageName: "x-data-grid-pro",
27
34
  releaseInfo: releaseInfo
28
35
  });
29
- const DataGridProRaw = forwardRef(function DataGridPro(inProps, ref) {
30
- const props = useDataGridProProps(inProps);
31
- const privateApiRef = useDataGridProComponent(props.apiRef, props);
32
- useLicenseVerifier('x-data-grid-pro', releaseInfo);
36
+ const DataGridProRaw = (0, _forwardRef.forwardRef)(function DataGridPro(inProps, ref) {
37
+ const props = (0, _useDataGridProProps.useDataGridProProps)(inProps);
38
+ const privateApiRef = (0, _useDataGridProComponent.useDataGridProComponent)(props.apiRef, props);
39
+ (0, _xLicense.useLicenseVerifier)('x-data-grid-pro', releaseInfo);
33
40
  if (process.env.NODE_ENV !== 'production') {
34
- validateProps(props, propValidatorsDataGridPro);
41
+ (0, _internals.validateProps)(props, _propValidation.propValidatorsDataGridPro);
35
42
  }
36
- return /*#__PURE__*/_jsx(GridContextProvider, {
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridContextProvider, {
37
44
  privateApiRef: privateApiRef,
38
45
  configuration: configuration,
39
46
  props: props,
40
- children: /*#__PURE__*/_jsx(GridRoot, _extends({
47
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridRoot, (0, _extends2.default)({
41
48
  className: props.className,
42
49
  style: props.style,
43
50
  sx: props.sx
@@ -54,7 +61,7 @@ const DataGridProRaw = forwardRef(function DataGridPro(inProps, ref) {
54
61
  * API:
55
62
  * - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
56
63
  */
57
- export const DataGridPro = /*#__PURE__*/React.memo(DataGridProRaw);
64
+ const DataGridPro = exports.DataGridPro = /*#__PURE__*/React.memo(DataGridProRaw);
58
65
  DataGridProRaw.propTypes = {
59
66
  // ----------------------------- Warning --------------------------------
60
67
  // | These PropTypes are generated from the TypeScript type definitions |
@@ -63,17 +70,17 @@ DataGridProRaw.propTypes = {
63
70
  /**
64
71
  * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
65
72
  */
66
- apiRef: PropTypes.shape({
67
- current: PropTypes.object.isRequired
73
+ apiRef: _propTypes.default.shape({
74
+ current: _propTypes.default.object.isRequired
68
75
  }),
69
76
  /**
70
77
  * The label of the Data Grid.
71
78
  */
72
- 'aria-label': PropTypes.string,
79
+ 'aria-label': _propTypes.default.string,
73
80
  /**
74
81
  * The id of the element containing a label for the Data Grid.
75
82
  */
76
- 'aria-labelledby': PropTypes.string,
83
+ 'aria-labelledby': _propTypes.default.string,
77
84
  /**
78
85
  * If `true`, the Data Grid height is dynamic and follows the number of rows in the Data Grid.
79
86
  * @default false
@@ -83,246 +90,246 @@ DataGridProRaw.propTypes = {
83
90
  * <DataGrid />
84
91
  * </div>
85
92
  */
86
- autoHeight: PropTypes.bool,
93
+ autoHeight: _propTypes.default.bool,
87
94
  /**
88
95
  * If `true`, the pageSize is calculated according to the container size and the max number of rows to avoid rendering a vertical scroll bar.
89
96
  * @default false
90
97
  */
91
- autoPageSize: PropTypes.bool,
98
+ autoPageSize: _propTypes.default.bool,
92
99
  /**
93
100
  * If `true`, columns are autosized after the datagrid is mounted.
94
101
  * @default false
95
102
  */
96
- autosizeOnMount: PropTypes.bool,
103
+ autosizeOnMount: _propTypes.default.bool,
97
104
  /**
98
105
  * The options for autosize when user-initiated.
99
106
  */
100
- autosizeOptions: PropTypes.shape({
101
- columns: PropTypes.arrayOf(PropTypes.string),
102
- disableColumnVirtualization: PropTypes.bool,
103
- expand: PropTypes.bool,
104
- includeHeaders: PropTypes.bool,
105
- includeOutliers: PropTypes.bool,
106
- outliersFactor: PropTypes.number
107
+ autosizeOptions: _propTypes.default.shape({
108
+ columns: _propTypes.default.arrayOf(_propTypes.default.string),
109
+ disableColumnVirtualization: _propTypes.default.bool,
110
+ expand: _propTypes.default.bool,
111
+ includeHeaders: _propTypes.default.bool,
112
+ includeOutliers: _propTypes.default.bool,
113
+ outliersFactor: _propTypes.default.number
107
114
  }),
108
115
  /**
109
116
  * Controls the modes of the cells.
110
117
  */
111
- cellModesModel: PropTypes.object,
118
+ cellModesModel: _propTypes.default.object,
112
119
  /**
113
120
  * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
114
121
  * @default false
115
122
  */
116
- checkboxSelection: PropTypes.bool,
123
+ checkboxSelection: _propTypes.default.bool,
117
124
  /**
118
125
  * If `true`, the "Select All" header checkbox selects only the rows on the current page. To be used in combination with `checkboxSelection`.
119
126
  * It only works if the pagination is enabled.
120
127
  * @default false
121
128
  */
122
- checkboxSelectionVisibleOnly: PropTypes.bool,
129
+ checkboxSelectionVisibleOnly: _propTypes.default.bool,
123
130
  /**
124
131
  * Override or extend the styles applied to the component.
125
132
  */
126
- classes: PropTypes.object,
133
+ classes: _propTypes.default.object,
127
134
  /**
128
135
  * The character used to separate cell values when copying to the clipboard.
129
136
  * @default '\t'
130
137
  */
131
- clipboardCopyCellDelimiter: PropTypes.string,
138
+ clipboardCopyCellDelimiter: _propTypes.default.string,
132
139
  /**
133
140
  * Column region in pixels to render before/after the viewport
134
141
  * @default 150
135
142
  */
136
- columnBufferPx: PropTypes.number,
143
+ columnBufferPx: _propTypes.default.number,
137
144
  /**
138
145
  * Sets the height in pixels of the column group headers in the Data Grid.
139
146
  * Inherits the `columnHeaderHeight` value if not set.
140
147
  */
141
- columnGroupHeaderHeight: PropTypes.number,
142
- columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
148
+ columnGroupHeaderHeight: _propTypes.default.number,
149
+ columnGroupingModel: _propTypes.default.arrayOf(_propTypes.default.object),
143
150
  /**
144
151
  * Sets the height in pixel of the column headers in the Data Grid.
145
152
  * @default 56
146
153
  */
147
- columnHeaderHeight: PropTypes.number,
154
+ columnHeaderHeight: _propTypes.default.number,
148
155
  /**
149
156
  * Set of columns of type [[GridColDef]][].
150
157
  */
151
- columns: PropTypes.arrayOf(PropTypes.object).isRequired,
158
+ columns: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
152
159
  /**
153
160
  * Set the column visibility model of the Data Grid.
154
161
  * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
155
162
  */
156
- columnVisibilityModel: PropTypes.object,
163
+ columnVisibilityModel: _propTypes.default.object,
157
164
  /**
158
165
  * If above 0, the row children will be expanded up to this depth.
159
166
  * If equal to -1, all the row children will be expanded.
160
167
  * @default 0
161
168
  */
162
- defaultGroupingExpansionDepth: PropTypes.number,
169
+ defaultGroupingExpansionDepth: _propTypes.default.number,
163
170
  /**
164
171
  * Set the density of the Data Grid.
165
172
  * @default "standard"
166
173
  */
167
- density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
174
+ density: _propTypes.default.oneOf(['comfortable', 'compact', 'standard']),
168
175
  /**
169
176
  * The row ids to show the detail panel.
170
177
  */
171
- detailPanelExpandedRowIds: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired),
178
+ detailPanelExpandedRowIds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired),
172
179
  /**
173
180
  * If `true`, column autosizing on header separator double-click is disabled.
174
181
  * @default false
175
182
  */
176
- disableAutosize: PropTypes.bool,
183
+ disableAutosize: _propTypes.default.bool,
177
184
  /**
178
185
  * If `true`, the filtering will only be applied to the top level rows when grouping rows with the `treeData` prop.
179
186
  * @default false
180
187
  */
181
- disableChildrenFiltering: PropTypes.bool,
188
+ disableChildrenFiltering: _propTypes.default.bool,
182
189
  /**
183
190
  * If `true`, the sorting will only be applied to the top level rows when grouping rows with the `treeData` prop.
184
191
  * @default false
185
192
  */
186
- disableChildrenSorting: PropTypes.bool,
193
+ disableChildrenSorting: _propTypes.default.bool,
187
194
  /**
188
195
  * If `true`, column filters are disabled.
189
196
  * @default false
190
197
  */
191
- disableColumnFilter: PropTypes.bool,
198
+ disableColumnFilter: _propTypes.default.bool,
192
199
  /**
193
200
  * If `true`, the column menu is disabled.
194
201
  * @default false
195
202
  */
196
- disableColumnMenu: PropTypes.bool,
203
+ disableColumnMenu: _propTypes.default.bool,
197
204
  /**
198
205
  * If `true`, the column pinning is disabled.
199
206
  * @default false
200
207
  */
201
- disableColumnPinning: PropTypes.bool,
208
+ disableColumnPinning: _propTypes.default.bool,
202
209
  /**
203
210
  * If `true`, reordering columns is disabled.
204
211
  * @default false
205
212
  */
206
- disableColumnReorder: PropTypes.bool,
213
+ disableColumnReorder: _propTypes.default.bool,
207
214
  /**
208
215
  * If `true`, resizing columns is disabled.
209
216
  * @default false
210
217
  */
211
- disableColumnResize: PropTypes.bool,
218
+ disableColumnResize: _propTypes.default.bool,
212
219
  /**
213
220
  * If `true`, hiding/showing columns is disabled.
214
221
  * @default false
215
222
  */
216
- disableColumnSelector: PropTypes.bool,
223
+ disableColumnSelector: _propTypes.default.bool,
217
224
  /**
218
225
  * If `true`, the column sorting feature will be disabled.
219
226
  * @default false
220
227
  */
221
- disableColumnSorting: PropTypes.bool,
228
+ disableColumnSorting: _propTypes.default.bool,
222
229
  /**
223
230
  * If `true`, the density selector is disabled.
224
231
  * @default false
225
232
  */
226
- disableDensitySelector: PropTypes.bool,
233
+ disableDensitySelector: _propTypes.default.bool,
227
234
  /**
228
235
  * If `true`, `eval()` is not used for performance optimization.
229
236
  * @default false
230
237
  */
231
- disableEval: PropTypes.bool,
238
+ disableEval: _propTypes.default.bool,
232
239
  /**
233
240
  * If `true`, filtering with multiple columns is disabled.
234
241
  * @default false
235
242
  */
236
- disableMultipleColumnsFiltering: PropTypes.bool,
243
+ disableMultipleColumnsFiltering: _propTypes.default.bool,
237
244
  /**
238
245
  * If `true`, the sorting with multiple columns is disabled.
239
246
  * @default false
240
247
  */
241
- disableMultipleColumnsSorting: PropTypes.bool,
248
+ disableMultipleColumnsSorting: _propTypes.default.bool,
242
249
  /**
243
250
  * If `true`, multiple selection using the Ctrl/CMD or Shift key is disabled.
244
251
  * The MIT DataGrid will ignore this prop, unless `checkboxSelection` is enabled.
245
252
  * @default false (`!props.checkboxSelection` for MIT Data Grid)
246
253
  */
247
- disableMultipleRowSelection: PropTypes.bool,
254
+ disableMultipleRowSelection: _propTypes.default.bool,
248
255
  /**
249
256
  * If `true`, the selection on click on a row or cell is disabled.
250
257
  * @default false
251
258
  */
252
- disableRowSelectionOnClick: PropTypes.bool,
259
+ disableRowSelectionOnClick: _propTypes.default.bool,
253
260
  /**
254
261
  * If `true`, the virtualization is disabled.
255
262
  * @default false
256
263
  */
257
- disableVirtualization: PropTypes.bool,
264
+ disableVirtualization: _propTypes.default.bool,
258
265
  /**
259
266
  * Controls whether to use the cell or row editing.
260
267
  * @default "cell"
261
268
  */
262
- editMode: PropTypes.oneOf(['cell', 'row']),
269
+ editMode: _propTypes.default.oneOf(['cell', 'row']),
263
270
  /**
264
271
  * Use if the actual rowCount is not known upfront, but an estimation is available.
265
272
  * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
266
273
  * Applicable only with `paginationMode="server"` and when `rowCount="-1"`
267
274
  */
268
- estimatedRowCount: PropTypes.number,
275
+ estimatedRowCount: _propTypes.default.number,
269
276
  /**
270
277
  * Unstable features, breaking changes might be introduced.
271
278
  * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
272
279
  */
273
- experimentalFeatures: PropTypes.shape({
274
- warnIfFocusStateIsNotSynced: PropTypes.bool
280
+ experimentalFeatures: _propTypes.default.shape({
281
+ warnIfFocusStateIsNotSynced: _propTypes.default.bool
275
282
  }),
276
283
  /**
277
284
  * The milliseconds delay to wait after a keystroke before triggering filtering.
278
285
  * @default 150
279
286
  */
280
- filterDebounceMs: PropTypes.number,
287
+ filterDebounceMs: _propTypes.default.number,
281
288
  /**
282
289
  * Filtering can be processed on the server or client-side.
283
290
  * Set it to 'server' if you would like to handle filtering on the server-side.
284
291
  * @default "client"
285
292
  */
286
- filterMode: PropTypes.oneOf(['client', 'server']),
293
+ filterMode: _propTypes.default.oneOf(['client', 'server']),
287
294
  /**
288
295
  * Set the filter model of the Data Grid.
289
296
  */
290
- filterModel: PropTypes.shape({
291
- items: PropTypes.arrayOf(PropTypes.shape({
292
- field: PropTypes.string.isRequired,
293
- id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
294
- operator: PropTypes.string.isRequired,
295
- value: PropTypes.any
297
+ filterModel: _propTypes.default.shape({
298
+ items: _propTypes.default.arrayOf(_propTypes.default.shape({
299
+ field: _propTypes.default.string.isRequired,
300
+ id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
301
+ operator: _propTypes.default.string.isRequired,
302
+ value: _propTypes.default.any
296
303
  })).isRequired,
297
- logicOperator: PropTypes.oneOf(['and', 'or']),
298
- quickFilterExcludeHiddenColumns: PropTypes.bool,
299
- quickFilterLogicOperator: PropTypes.oneOf(['and', 'or']),
300
- quickFilterValues: PropTypes.array
304
+ logicOperator: _propTypes.default.oneOf(['and', 'or']),
305
+ quickFilterExcludeHiddenColumns: _propTypes.default.bool,
306
+ quickFilterLogicOperator: _propTypes.default.oneOf(['and', 'or']),
307
+ quickFilterValues: _propTypes.default.array
301
308
  }),
302
309
  /**
303
310
  * Forwarded props for the Data Grid root element.
304
311
  * @ignore - do not document.
305
312
  */
306
- forwardedProps: PropTypes.object,
313
+ forwardedProps: _propTypes.default.object,
307
314
  /**
308
315
  * Function that applies CSS classes dynamically on cells.
309
316
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
310
317
  * @returns {string} The CSS class to apply to the cell.
311
318
  */
312
- getCellClassName: PropTypes.func,
319
+ getCellClassName: _propTypes.default.func,
313
320
  /**
314
321
  * Function that returns the element to render in row detail.
315
322
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
316
323
  * @returns {React.JSX.Element} The row detail element.
317
324
  */
318
- getDetailPanelContent: PropTypes.func,
325
+ getDetailPanelContent: _propTypes.default.func,
319
326
  /**
320
327
  * Function that returns the height of the row detail panel.
321
328
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
322
329
  * @returns {number | string} The height in pixels or "auto" to use the content height.
323
330
  * @default "() => 500"
324
331
  */
325
- getDetailPanelHeight: PropTypes.func,
332
+ getDetailPanelHeight: _propTypes.default.func,
326
333
  /**
327
334
  * Function that returns the estimated height for a row.
328
335
  * Only works if dynamic row height is used.
@@ -330,31 +337,31 @@ DataGridProRaw.propTypes = {
330
337
  * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
331
338
  * @returns {number | null} The estimated row height value. If `null` or `undefined` then the default row height, based on the density, is applied.
332
339
  */
333
- getEstimatedRowHeight: PropTypes.func,
340
+ getEstimatedRowHeight: _propTypes.default.func,
334
341
  /**
335
342
  * Function that applies CSS classes dynamically on rows.
336
343
  * @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].
337
344
  * @returns {string} The CSS class to apply to the row.
338
345
  */
339
- getRowClassName: PropTypes.func,
346
+ getRowClassName: _propTypes.default.func,
340
347
  /**
341
348
  * Function that sets the row height per row.
342
349
  * @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
343
350
  * @returns {GridRowHeightReturnValue} The row height value. If `null` or `undefined` then the default row height is applied. If "auto" then the row height is calculated based on the content.
344
351
  */
345
- getRowHeight: PropTypes.func,
352
+ getRowHeight: _propTypes.default.func,
346
353
  /**
347
354
  * Return the id of a given [[GridRowModel]].
348
355
  * Ensure the reference of this prop is stable to avoid performance implications.
349
356
  * It could be done by either defining the prop outside of the component or by memoizing it.
350
357
  */
351
- getRowId: PropTypes.func,
358
+ getRowId: _propTypes.default.func,
352
359
  /**
353
360
  * Function that allows to specify the spacing between rows.
354
361
  * @param {GridRowSpacingParams} params With all properties from [[GridRowSpacingParams]].
355
362
  * @returns {GridRowSpacing} The row spacing values.
356
363
  */
357
- getRowSpacing: PropTypes.func,
364
+ getRowSpacing: _propTypes.default.func,
358
365
  /**
359
366
  * Determines the path of a row in the tree data.
360
367
  * For instance, a row with the path ["A", "B"] is the child of the row with the path ["A"].
@@ -363,56 +370,56 @@ DataGridProRaw.propTypes = {
363
370
  * @param {R} row The row from which we want the path.
364
371
  * @returns {string[]} The path to the row.
365
372
  */
366
- getTreeDataPath: PropTypes.func,
373
+ getTreeDataPath: _propTypes.default.func,
367
374
  /**
368
375
  * The grouping column used by the tree data.
369
376
  */
370
- groupingColDef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
377
+ groupingColDef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
371
378
  /**
372
379
  * Override the height of the header filters.
373
380
  */
374
- headerFilterHeight: PropTypes.number,
381
+ headerFilterHeight: _propTypes.default.number,
375
382
  /**
376
383
  * If `true`, the header filters feature is enabled.
377
384
  * @default false
378
385
  */
379
- headerFilters: PropTypes.bool,
386
+ headerFilters: _propTypes.default.bool,
380
387
  /**
381
388
  * If `true`, the footer component is hidden.
382
389
  * @default false
383
390
  */
384
- hideFooter: PropTypes.bool,
391
+ hideFooter: _propTypes.default.bool,
385
392
  /**
386
393
  * If `true`, the pagination component in the footer is hidden.
387
394
  * @default false
388
395
  */
389
- hideFooterPagination: PropTypes.bool,
396
+ hideFooterPagination: _propTypes.default.bool,
390
397
  /**
391
398
  * If `true`, the row count in the footer is hidden.
392
399
  * It has no effect if the pagination is enabled.
393
400
  * @default false
394
401
  */
395
- hideFooterRowCount: PropTypes.bool,
402
+ hideFooterRowCount: _propTypes.default.bool,
396
403
  /**
397
404
  * If `true`, the selected row count in the footer is hidden.
398
405
  * @default false
399
406
  */
400
- hideFooterSelectedRowCount: PropTypes.bool,
407
+ hideFooterSelectedRowCount: _propTypes.default.bool,
401
408
  /**
402
409
  * If `true`, the diacritics (accents) are ignored when filtering or quick filtering.
403
410
  * E.g. when filter value is `cafe`, the rows with `café` will be visible.
404
411
  * @default false
405
412
  */
406
- ignoreDiacritics: PropTypes.bool,
413
+ ignoreDiacritics: _propTypes.default.bool,
407
414
  /**
408
415
  * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
409
416
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
410
417
  * @default false
411
418
  */
412
- ignoreValueFormatterDuringExport: PropTypes.oneOfType([PropTypes.shape({
413
- clipboardExport: PropTypes.bool,
414
- csvExport: PropTypes.bool
415
- }), PropTypes.bool]),
419
+ ignoreValueFormatterDuringExport: _propTypes.default.oneOfType([_propTypes.default.shape({
420
+ clipboardExport: _propTypes.default.bool,
421
+ csvExport: _propTypes.default.bool
422
+ }), _propTypes.default.bool]),
416
423
  /**
417
424
  * If `select`, a group header checkbox in indeterminate state (like "Select All" checkbox)
418
425
  * will select all the rows under it.
@@ -421,274 +428,274 @@ DataGridProRaw.propTypes = {
421
428
  * @default "deselect"
422
429
  * @deprecated `select` will be the default behavior from v8 onwards
423
430
  */
424
- indeterminateCheckboxAction: PropTypes.oneOf(['deselect', 'select']),
431
+ indeterminateCheckboxAction: _propTypes.default.oneOf(['deselect', 'select']),
425
432
  /**
426
433
  * The initial state of the DataGridPro.
427
434
  * The data in it will be set in the state on initialization but will not be controlled.
428
435
  * If one of the data in `initialState` is also being controlled, then the control state wins.
429
436
  */
430
- initialState: PropTypes.object,
437
+ initialState: _propTypes.default.object,
431
438
  /**
432
439
  * Callback fired when a cell is rendered, returns true if the cell is editable.
433
440
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
434
441
  * @returns {boolean} A boolean indicating if the cell is editable.
435
442
  */
436
- isCellEditable: PropTypes.func,
443
+ isCellEditable: _propTypes.default.func,
437
444
  /**
438
445
  * Determines if a group should be expanded after its creation.
439
446
  * This prop takes priority over the `defaultGroupingExpansionDepth` prop.
440
447
  * @param {GridGroupNode} node The node of the group to test.
441
448
  * @returns {boolean} A boolean indicating if the group is expanded.
442
449
  */
443
- isGroupExpandedByDefault: PropTypes.func,
450
+ isGroupExpandedByDefault: _propTypes.default.func,
444
451
  /**
445
452
  * Determines if a row can be selected.
446
453
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
447
454
  * @returns {boolean} A boolean indicating if the row is selectable.
448
455
  */
449
- isRowSelectable: PropTypes.func,
456
+ isRowSelectable: _propTypes.default.func,
450
457
  /**
451
458
  * If `true`, moving the mouse pointer outside the grid before releasing the mouse button
452
459
  * in a column re-order action will not cause the column to jump back to its original position.
453
460
  * @default false
454
461
  */
455
- keepColumnPositionIfDraggedOutside: PropTypes.bool,
462
+ keepColumnPositionIfDraggedOutside: _propTypes.default.bool,
456
463
  /**
457
464
  * If `true`, the selection model will retain selected rows that do not exist.
458
465
  * Useful when using server side pagination and row selections need to be retained
459
466
  * when changing pages.
460
467
  * @default false
461
468
  */
462
- keepNonExistentRowsSelected: PropTypes.bool,
469
+ keepNonExistentRowsSelected: _propTypes.default.bool,
463
470
  /**
464
471
  * If `true`, a loading overlay is displayed.
465
472
  * @default false
466
473
  */
467
- loading: PropTypes.bool,
474
+ loading: _propTypes.default.bool,
468
475
  /**
469
476
  * Set the locale text of the Data Grid.
470
477
  * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
471
478
  */
472
- localeText: PropTypes.object,
479
+ localeText: _propTypes.default.object,
473
480
  /**
474
481
  * Pass a custom logger in the components that implements the [[Logger]] interface.
475
482
  * @default console
476
483
  */
477
- logger: PropTypes.shape({
478
- debug: PropTypes.func.isRequired,
479
- error: PropTypes.func.isRequired,
480
- info: PropTypes.func.isRequired,
481
- warn: PropTypes.func.isRequired
484
+ logger: _propTypes.default.shape({
485
+ debug: _propTypes.default.func.isRequired,
486
+ error: _propTypes.default.func.isRequired,
487
+ info: _propTypes.default.func.isRequired,
488
+ warn: _propTypes.default.func.isRequired
482
489
  }),
483
490
  /**
484
491
  * Allows to pass the logging level or false to turn off logging.
485
492
  * @default "error" ("warn" in dev mode)
486
493
  */
487
- logLevel: PropTypes.oneOf(['debug', 'error', 'info', 'warn', false]),
494
+ logLevel: _propTypes.default.oneOf(['debug', 'error', 'info', 'warn', false]),
488
495
  /**
489
496
  * Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
490
497
  */
491
- nonce: PropTypes.string,
498
+ nonce: _propTypes.default.string,
492
499
  /**
493
500
  * Callback fired when any cell is clicked.
494
501
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
495
502
  * @param {MuiEvent<React.MouseEvent>} event The event object.
496
503
  * @param {GridCallbackDetails} details Additional details for this callback.
497
504
  */
498
- onCellClick: PropTypes.func,
505
+ onCellClick: _propTypes.default.func,
499
506
  /**
500
507
  * Callback fired when a double click event comes from a cell element.
501
508
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
502
509
  * @param {MuiEvent<React.MouseEvent>} event The event object.
503
510
  * @param {GridCallbackDetails} details Additional details for this callback.
504
511
  */
505
- onCellDoubleClick: PropTypes.func,
512
+ onCellDoubleClick: _propTypes.default.func,
506
513
  /**
507
514
  * Callback fired when the cell turns to edit mode.
508
515
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
509
516
  * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
510
517
  */
511
- onCellEditStart: PropTypes.func,
518
+ onCellEditStart: _propTypes.default.func,
512
519
  /**
513
520
  * Callback fired when the cell turns to view mode.
514
521
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
515
522
  * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
516
523
  */
517
- onCellEditStop: PropTypes.func,
524
+ onCellEditStop: _propTypes.default.func,
518
525
  /**
519
526
  * Callback fired when a keydown event comes from a cell element.
520
527
  * @param {GridCellParams} params With all properties from [[GridCellParams]].
521
528
  * @param {MuiEvent<React.KeyboardEvent>} event The event object.
522
529
  * @param {GridCallbackDetails} details Additional details for this callback.
523
530
  */
524
- onCellKeyDown: PropTypes.func,
531
+ onCellKeyDown: _propTypes.default.func,
525
532
  /**
526
533
  * Callback fired when the `cellModesModel` prop changes.
527
534
  * @param {GridCellModesModel} cellModesModel Object containing which cells are in "edit" mode.
528
535
  * @param {GridCallbackDetails} details Additional details for this callback.
529
536
  */
530
- onCellModesModelChange: PropTypes.func,
537
+ onCellModesModelChange: _propTypes.default.func,
531
538
  /**
532
539
  * Callback called when the data is copied to the clipboard.
533
540
  * @param {string} data The data copied to the clipboard.
534
541
  */
535
- onClipboardCopy: PropTypes.func,
542
+ onClipboardCopy: _propTypes.default.func,
536
543
  /**
537
544
  * Callback fired when a click event comes from a column header element.
538
545
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
539
546
  * @param {MuiEvent<React.MouseEvent>} event The event object.
540
547
  * @param {GridCallbackDetails} details Additional details for this callback.
541
548
  */
542
- onColumnHeaderClick: PropTypes.func,
549
+ onColumnHeaderClick: _propTypes.default.func,
543
550
  /**
544
551
  * Callback fired when a contextmenu event comes from a column header element.
545
552
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
546
553
  * @param {MuiEvent<React.MouseEvent>} event The event object.
547
554
  */
548
- onColumnHeaderContextMenu: PropTypes.func,
555
+ onColumnHeaderContextMenu: _propTypes.default.func,
549
556
  /**
550
557
  * Callback fired when a double click event comes from a column header element.
551
558
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
552
559
  * @param {MuiEvent<React.MouseEvent>} event The event object.
553
560
  * @param {GridCallbackDetails} details Additional details for this callback.
554
561
  */
555
- onColumnHeaderDoubleClick: PropTypes.func,
562
+ onColumnHeaderDoubleClick: _propTypes.default.func,
556
563
  /**
557
564
  * Callback fired when a mouse enter event comes from a column header element.
558
565
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
559
566
  * @param {MuiEvent<React.MouseEvent>} event The event object.
560
567
  * @param {GridCallbackDetails} details Additional details for this callback.
561
568
  */
562
- onColumnHeaderEnter: PropTypes.func,
569
+ onColumnHeaderEnter: _propTypes.default.func,
563
570
  /**
564
571
  * Callback fired when a mouse leave event comes from a column header element.
565
572
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
566
573
  * @param {MuiEvent<React.MouseEvent>} event The event object.
567
574
  * @param {GridCallbackDetails} details Additional details for this callback.
568
575
  */
569
- onColumnHeaderLeave: PropTypes.func,
576
+ onColumnHeaderLeave: _propTypes.default.func,
570
577
  /**
571
578
  * Callback fired when a mouseout event comes from a column header element.
572
579
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
573
580
  * @param {MuiEvent<React.MouseEvent>} event The event object.
574
581
  * @param {GridCallbackDetails} details Additional details for this callback.
575
582
  */
576
- onColumnHeaderOut: PropTypes.func,
583
+ onColumnHeaderOut: _propTypes.default.func,
577
584
  /**
578
585
  * Callback fired when a mouseover event comes from a column header element.
579
586
  * @param {GridColumnHeaderParams} params With all properties from [[GridColumnHeaderParams]].
580
587
  * @param {MuiEvent<React.MouseEvent>} event The event object.
581
588
  * @param {GridCallbackDetails} details Additional details for this callback.
582
589
  */
583
- onColumnHeaderOver: PropTypes.func,
590
+ onColumnHeaderOver: _propTypes.default.func,
584
591
  /**
585
592
  * Callback fired when a column is reordered.
586
593
  * @param {GridColumnOrderChangeParams} params With all properties from [[GridColumnOrderChangeParams]].
587
594
  * @param {MuiEvent<{}>} event The event object.
588
595
  * @param {GridCallbackDetails} details Additional details for this callback.
589
596
  */
590
- onColumnOrderChange: PropTypes.func,
597
+ onColumnOrderChange: _propTypes.default.func,
591
598
  /**
592
599
  * Callback fired while a column is being resized.
593
600
  * @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].
594
601
  * @param {MuiEvent<React.MouseEvent>} event The event object.
595
602
  * @param {GridCallbackDetails} details Additional details for this callback.
596
603
  */
597
- onColumnResize: PropTypes.func,
604
+ onColumnResize: _propTypes.default.func,
598
605
  /**
599
606
  * Callback fired when the column visibility model changes.
600
607
  * @param {GridColumnVisibilityModel} model The new model.
601
608
  * @param {GridCallbackDetails} details Additional details for this callback.
602
609
  */
603
- onColumnVisibilityModelChange: PropTypes.func,
610
+ onColumnVisibilityModelChange: _propTypes.default.func,
604
611
  /**
605
612
  * Callback fired when the width of a column is changed.
606
613
  * @param {GridColumnResizeParams} params With all properties from [[GridColumnResizeParams]].
607
614
  * @param {MuiEvent<React.MouseEvent>} event The event object.
608
615
  * @param {GridCallbackDetails} details Additional details for this callback.
609
616
  */
610
- onColumnWidthChange: PropTypes.func,
617
+ onColumnWidthChange: _propTypes.default.func,
611
618
  /**
612
619
  * Callback fired when the density changes.
613
620
  * @param {GridDensity} density New density value.
614
621
  */
615
- onDensityChange: PropTypes.func,
622
+ onDensityChange: _propTypes.default.func,
616
623
  /**
617
624
  * Callback fired when the detail panel of a row is opened or closed.
618
625
  * @param {GridRowId[]} ids The ids of the rows which have the detail panel open.
619
626
  * @param {GridCallbackDetails} details Additional details for this callback.
620
627
  */
621
- onDetailPanelExpandedRowIdsChange: PropTypes.func,
628
+ onDetailPanelExpandedRowIdsChange: _propTypes.default.func,
622
629
  /**
623
630
  * Callback fired when rowCount is set and the next batch of virtualized rows is rendered.
624
631
  * @param {GridFetchRowsParams} params With all properties from [[GridFetchRowsParams]].
625
632
  * @param {MuiEvent<{}>} event The event object.
626
633
  * @param {GridCallbackDetails} details Additional details for this callback.
627
634
  */
628
- onFetchRows: PropTypes.func,
635
+ onFetchRows: _propTypes.default.func,
629
636
  /**
630
637
  * Callback fired when the Filter model changes before the filters are applied.
631
638
  * @param {GridFilterModel} model With all properties from [[GridFilterModel]].
632
639
  * @param {GridCallbackDetails} details Additional details for this callback.
633
640
  */
634
- onFilterModelChange: PropTypes.func,
641
+ onFilterModelChange: _propTypes.default.func,
635
642
  /**
636
643
  * Callback fired when the menu is closed.
637
644
  * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
638
645
  * @param {MuiEvent<{}>} event The event object.
639
646
  * @param {GridCallbackDetails} details Additional details for this callback.
640
647
  */
641
- onMenuClose: PropTypes.func,
648
+ onMenuClose: _propTypes.default.func,
642
649
  /**
643
650
  * Callback fired when the menu is opened.
644
651
  * @param {GridMenuParams} params With all properties from [[GridMenuParams]].
645
652
  * @param {MuiEvent<{}>} event The event object.
646
653
  * @param {GridCallbackDetails} details Additional details for this callback.
647
654
  */
648
- onMenuOpen: PropTypes.func,
655
+ onMenuOpen: _propTypes.default.func,
649
656
  /**
650
657
  * Callback fired when the pagination meta has changed.
651
658
  * @param {GridPaginationMeta} paginationMeta Updated pagination meta.
652
659
  */
653
- onPaginationMetaChange: PropTypes.func,
660
+ onPaginationMetaChange: _propTypes.default.func,
654
661
  /**
655
662
  * Callback fired when the pagination model has changed.
656
663
  * @param {GridPaginationModel} model Updated pagination model.
657
664
  * @param {GridCallbackDetails} details Additional details for this callback.
658
665
  */
659
- onPaginationModelChange: PropTypes.func,
666
+ onPaginationModelChange: _propTypes.default.func,
660
667
  /**
661
668
  * Callback fired when the pinned columns have changed.
662
669
  * @param {GridPinnedColumnFields} pinnedColumns The changed pinned columns.
663
670
  * @param {GridCallbackDetails} details Additional details for this callback.
664
671
  */
665
- onPinnedColumnsChange: PropTypes.func,
672
+ onPinnedColumnsChange: _propTypes.default.func,
666
673
  /**
667
674
  * Callback fired when the preferences panel is closed.
668
675
  * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
669
676
  * @param {MuiEvent<{}>} event The event object.
670
677
  * @param {GridCallbackDetails} details Additional details for this callback.
671
678
  */
672
- onPreferencePanelClose: PropTypes.func,
679
+ onPreferencePanelClose: _propTypes.default.func,
673
680
  /**
674
681
  * Callback fired when the preferences panel is opened.
675
682
  * @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
676
683
  * @param {MuiEvent<{}>} event The event object.
677
684
  * @param {GridCallbackDetails} details Additional details for this callback.
678
685
  */
679
- onPreferencePanelOpen: PropTypes.func,
686
+ onPreferencePanelOpen: _propTypes.default.func,
680
687
  /**
681
688
  * Callback called when `processRowUpdate` throws an error or rejects.
682
689
  * @param {any} error The error thrown.
683
690
  */
684
- onProcessRowUpdateError: PropTypes.func,
691
+ onProcessRowUpdateError: _propTypes.default.func,
685
692
  /**
686
693
  * Callback fired when the Data Grid is resized.
687
694
  * @param {ElementSize} containerSize With all properties from [[ElementSize]].
688
695
  * @param {MuiEvent<{}>} event The event object.
689
696
  * @param {GridCallbackDetails} details Additional details for this callback.
690
697
  */
691
- onResize: PropTypes.func,
698
+ onResize: _propTypes.default.func,
692
699
  /**
693
700
  * Callback fired when a row is clicked.
694
701
  * Not called if the target clicked is an interactive element added by the built-in columns.
@@ -696,63 +703,63 @@ DataGridProRaw.propTypes = {
696
703
  * @param {MuiEvent<React.MouseEvent>} event The event object.
697
704
  * @param {GridCallbackDetails} details Additional details for this callback.
698
705
  */
699
- onRowClick: PropTypes.func,
706
+ onRowClick: _propTypes.default.func,
700
707
  /**
701
708
  * Callback fired when the row count has changed.
702
709
  * @param {number} count Updated row count.
703
710
  */
704
- onRowCountChange: PropTypes.func,
711
+ onRowCountChange: _propTypes.default.func,
705
712
  /**
706
713
  * Callback fired when a double click event comes from a row container element.
707
714
  * @param {GridRowParams} params With all properties from [[RowParams]].
708
715
  * @param {MuiEvent<React.MouseEvent>} event The event object.
709
716
  * @param {GridCallbackDetails} details Additional details for this callback.
710
717
  */
711
- onRowDoubleClick: PropTypes.func,
718
+ onRowDoubleClick: _propTypes.default.func,
712
719
  /**
713
720
  * Callback fired when the row turns to edit mode.
714
721
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
715
722
  * @param {MuiEvent<React.KeyboardEvent | React.MouseEvent>} event The event that caused this prop to be called.
716
723
  */
717
- onRowEditStart: PropTypes.func,
724
+ onRowEditStart: _propTypes.default.func,
718
725
  /**
719
726
  * Callback fired when the row turns to view mode.
720
727
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
721
728
  * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
722
729
  */
723
- onRowEditStop: PropTypes.func,
730
+ onRowEditStop: _propTypes.default.func,
724
731
  /**
725
732
  * Callback fired when the `rowModesModel` prop changes.
726
733
  * @param {GridRowModesModel} rowModesModel Object containing which rows are in "edit" mode.
727
734
  * @param {GridCallbackDetails} details Additional details for this callback.
728
735
  */
729
- onRowModesModelChange: PropTypes.func,
736
+ onRowModesModelChange: _propTypes.default.func,
730
737
  /**
731
738
  * Callback fired when a row is being reordered.
732
739
  * @param {GridRowOrderChangeParams} params With all properties from [[GridRowOrderChangeParams]].
733
740
  * @param {MuiEvent<{}>} event The event object.
734
741
  * @param {GridCallbackDetails} details Additional details for this callback.
735
742
  */
736
- onRowOrderChange: PropTypes.func,
743
+ onRowOrderChange: _propTypes.default.func,
737
744
  /**
738
745
  * Callback fired when the selection state of one or multiple rows changes.
739
746
  * @param {GridRowSelectionModel} rowSelectionModel With all the row ids [[GridSelectionModel]].
740
747
  * @param {GridCallbackDetails} details Additional details for this callback.
741
748
  */
742
- onRowSelectionModelChange: PropTypes.func,
749
+ onRowSelectionModelChange: _propTypes.default.func,
743
750
  /**
744
751
  * Callback fired when scrolling to the bottom of the grid viewport.
745
752
  * @param {GridRowScrollEndParams} params With all properties from [[GridRowScrollEndParams]].
746
753
  * @param {MuiEvent<{}>} event The event object.
747
754
  * @param {GridCallbackDetails} details Additional details for this callback.
748
755
  */
749
- onRowsScrollEnd: PropTypes.func,
756
+ onRowsScrollEnd: _propTypes.default.func,
750
757
  /**
751
758
  * Callback fired when the sort model changes before a column is sorted.
752
759
  * @param {GridSortModel} model With all properties from [[GridSortModel]].
753
760
  * @param {GridCallbackDetails} details Additional details for this callback.
754
761
  */
755
- onSortModelChange: PropTypes.func,
762
+ onSortModelChange: _propTypes.default.func,
756
763
  /**
757
764
  * Callback fired when the state of the Data Grid is updated.
758
765
  * @param {GridState} state The new state.
@@ -760,26 +767,26 @@ DataGridProRaw.propTypes = {
760
767
  * @param {GridCallbackDetails} details Additional details for this callback.
761
768
  * @ignore - do not document.
762
769
  */
763
- onStateChange: PropTypes.func,
770
+ onStateChange: _propTypes.default.func,
764
771
  /**
765
772
  * Select the pageSize dynamically using the component UI.
766
773
  * @default [25, 50, 100]
767
774
  */
768
- pageSizeOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
769
- label: PropTypes.string.isRequired,
770
- value: PropTypes.number.isRequired
775
+ pageSizeOptions: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
776
+ label: _propTypes.default.string.isRequired,
777
+ value: _propTypes.default.number.isRequired
771
778
  })]).isRequired),
772
779
  /**
773
780
  * If `true`, pagination is enabled.
774
781
  * @default false
775
782
  */
776
- pagination: PropTypes.bool,
783
+ pagination: _propTypes.default.bool,
777
784
  /**
778
785
  * The extra information about the pagination state of the Data Grid.
779
786
  * Only applicable with `paginationMode="server"`.
780
787
  */
781
- paginationMeta: PropTypes.shape({
782
- hasNextPage: PropTypes.bool
788
+ paginationMeta: _propTypes.default.shape({
789
+ hasNextPage: _propTypes.default.bool
783
790
  }),
784
791
  /**
785
792
  * Pagination can be processed on the server or client-side.
@@ -787,24 +794,24 @@ DataGridProRaw.propTypes = {
787
794
  * Set it to 'server' if you would like to handle the pagination on the server-side.
788
795
  * @default "client"
789
796
  */
790
- paginationMode: PropTypes.oneOf(['client', 'server']),
797
+ paginationMode: _propTypes.default.oneOf(['client', 'server']),
791
798
  /**
792
799
  * The pagination model of type [[GridPaginationModel]] which refers to current `page` and `pageSize`.
793
800
  */
794
- paginationModel: PropTypes.shape({
795
- page: PropTypes.number.isRequired,
796
- pageSize: PropTypes.number.isRequired
801
+ paginationModel: _propTypes.default.shape({
802
+ page: _propTypes.default.number.isRequired,
803
+ pageSize: _propTypes.default.number.isRequired
797
804
  }),
798
805
  /**
799
806
  * The column fields to display pinned to left or right.
800
807
  */
801
- pinnedColumns: PropTypes.object,
808
+ pinnedColumns: _propTypes.default.object,
802
809
  /**
803
810
  * Rows data to pin on top or bottom.
804
811
  */
805
- pinnedRows: PropTypes.shape({
806
- bottom: PropTypes.arrayOf(PropTypes.object),
807
- top: PropTypes.arrayOf(PropTypes.object)
812
+ pinnedRows: _propTypes.default.shape({
813
+ bottom: _propTypes.default.arrayOf(_propTypes.default.object),
814
+ top: _propTypes.default.arrayOf(_propTypes.default.object)
808
815
  }),
809
816
  /**
810
817
  * Callback called before updating a row with new values in the row and cell editing.
@@ -814,38 +821,38 @@ DataGridProRaw.propTypes = {
814
821
  * @param {{ rowId: GridRowId }} params Additional parameters.
815
822
  * @returns {Promise<R> | R} The final values to update the row.
816
823
  */
817
- processRowUpdate: PropTypes.func,
824
+ processRowUpdate: _propTypes.default.func,
818
825
  /**
819
826
  * If `true`, the page is set to 0 after each sorting or filtering.
820
827
  * This prop will be removed in the next major version and resetting the page will become the default behavior.
821
828
  * @default false
822
829
  */
823
- resetPageOnSortFilter: PropTypes.bool,
830
+ resetPageOnSortFilter: _propTypes.default.bool,
824
831
  /**
825
832
  * The milliseconds throttle delay for resizing the grid.
826
833
  * @default 60
827
834
  */
828
- resizeThrottleMs: PropTypes.number,
835
+ resizeThrottleMs: _propTypes.default.number,
829
836
  /**
830
837
  * Row region in pixels to render before/after the viewport
831
838
  * @default 150
832
839
  */
833
- rowBufferPx: PropTypes.number,
840
+ rowBufferPx: _propTypes.default.number,
834
841
  /**
835
842
  * Set the total number of rows, if it is different from the length of the value `rows` prop.
836
843
  * If some rows have children (for instance in the tree data), this number represents the amount of top level rows.
837
844
  * Only works with `paginationMode="server"`, ignored when `paginationMode="client"`.
838
845
  */
839
- rowCount: PropTypes.number,
846
+ rowCount: _propTypes.default.number,
840
847
  /**
841
848
  * Sets the height in pixel of a row in the Data Grid.
842
849
  * @default 52
843
850
  */
844
- rowHeight: PropTypes.number,
851
+ rowHeight: _propTypes.default.number,
845
852
  /**
846
853
  * Controls the modes of the rows.
847
854
  */
848
- rowModesModel: PropTypes.object,
855
+ rowModesModel: _propTypes.default.object,
849
856
  /**
850
857
  * The milliseconds delay to wait after measuring the row height before recalculating row positions.
851
858
  * Setting it to a lower value could be useful when using dynamic row height,
@@ -853,26 +860,26 @@ DataGridProRaw.propTypes = {
853
860
  * @default 166
854
861
  * @deprecated
855
862
  */
856
- rowPositionsDebounceMs: PropTypes.number,
863
+ rowPositionsDebounceMs: _propTypes.default.number,
857
864
  /**
858
865
  * If `true`, the reordering of rows is enabled.
859
866
  * @default false
860
867
  */
861
- rowReordering: PropTypes.bool,
868
+ rowReordering: _propTypes.default.bool,
862
869
  /**
863
870
  * Set of rows of type [[GridRowsProp]].
864
871
  * @default []
865
872
  */
866
- rows: PropTypes.arrayOf(PropTypes.object),
873
+ rows: _propTypes.default.arrayOf(_propTypes.default.object),
867
874
  /**
868
875
  * If `false`, the row selection mode is disabled.
869
876
  * @default true
870
877
  */
871
- rowSelection: PropTypes.bool,
878
+ rowSelection: _propTypes.default.bool,
872
879
  /**
873
880
  * Sets the row selection model of the Data Grid.
874
881
  */
875
- rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
882
+ rowSelectionModel: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired), _propTypes.default.number, _propTypes.default.string]),
876
883
  /**
877
884
  * When `rowSelectionPropagation.descendants` is set to `true`.
878
885
  * - Selecting a parent selects all its filtered descendants automatically.
@@ -885,9 +892,9 @@ DataGridProRaw.propTypes = {
885
892
  * Works with tree data and row grouping on the client-side only.
886
893
  * @default { parents: false, descendants: false }
887
894
  */
888
- rowSelectionPropagation: PropTypes.shape({
889
- descendants: PropTypes.bool,
890
- parents: PropTypes.bool
895
+ rowSelectionPropagation: _propTypes.default.shape({
896
+ descendants: _propTypes.default.bool,
897
+ parents: _propTypes.default.bool
891
898
  }),
892
899
  /**
893
900
  * Loading rows can be processed on the server or client-side.
@@ -895,105 +902,105 @@ DataGridProRaw.propTypes = {
895
902
  * Set it to 'server' if you would like to enable lazy loading.
896
903
  * * @default "client"
897
904
  */
898
- rowsLoadingMode: PropTypes.oneOf(['client', 'server']),
905
+ rowsLoadingMode: _propTypes.default.oneOf(['client', 'server']),
899
906
  /**
900
907
  * Sets the type of space between rows added by `getRowSpacing`.
901
908
  * @default "margin"
902
909
  */
903
- rowSpacingType: PropTypes.oneOf(['border', 'margin']),
910
+ rowSpacingType: _propTypes.default.oneOf(['border', 'margin']),
904
911
  /**
905
912
  * Override the height/width of the Data Grid inner scrollbar.
906
913
  */
907
- scrollbarSize: PropTypes.number,
914
+ scrollbarSize: _propTypes.default.number,
908
915
  /**
909
916
  * Set the area in `px` at the bottom of the grid viewport where onRowsScrollEnd is called.
910
917
  * @default 80
911
918
  */
912
- scrollEndThreshold: PropTypes.number,
919
+ scrollEndThreshold: _propTypes.default.number,
913
920
  /**
914
921
  * If `true`, vertical borders will be displayed between cells.
915
922
  * @default false
916
923
  */
917
- showCellVerticalBorder: PropTypes.bool,
924
+ showCellVerticalBorder: _propTypes.default.bool,
918
925
  /**
919
926
  * If `true`, vertical borders will be displayed between column header items.
920
927
  * @default false
921
928
  */
922
- showColumnVerticalBorder: PropTypes.bool,
929
+ showColumnVerticalBorder: _propTypes.default.bool,
923
930
  /**
924
931
  * Overridable components props dynamically passed to the component at rendering.
925
932
  */
926
- slotProps: PropTypes.object,
933
+ slotProps: _propTypes.default.object,
927
934
  /**
928
935
  * Overridable components.
929
936
  */
930
- slots: PropTypes.object,
937
+ slots: _propTypes.default.object,
931
938
  /**
932
939
  * Sorting can be processed on the server or client-side.
933
940
  * Set it to 'client' if you would like to handle sorting on the client-side.
934
941
  * Set it to 'server' if you would like to handle sorting on the server-side.
935
942
  * @default "client"
936
943
  */
937
- sortingMode: PropTypes.oneOf(['client', 'server']),
944
+ sortingMode: _propTypes.default.oneOf(['client', 'server']),
938
945
  /**
939
946
  * The order of the sorting sequence.
940
947
  * @default ['asc', 'desc', null]
941
948
  */
942
- sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
949
+ sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])),
943
950
  /**
944
951
  * Set the sort model of the Data Grid.
945
952
  */
946
- sortModel: PropTypes.arrayOf(PropTypes.shape({
947
- field: PropTypes.string.isRequired,
948
- sort: PropTypes.oneOf(['asc', 'desc'])
953
+ sortModel: _propTypes.default.arrayOf(_propTypes.default.shape({
954
+ field: _propTypes.default.string.isRequired,
955
+ sort: _propTypes.default.oneOf(['asc', 'desc'])
949
956
  })),
950
957
  /**
951
958
  * The system prop that allows defining system overrides as well as additional CSS styles.
952
959
  */
953
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
960
+ sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
954
961
  /**
955
962
  * If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
956
963
  * It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
957
964
  * @default 0
958
965
  */
959
- throttleRowsMs: PropTypes.number,
966
+ throttleRowsMs: _propTypes.default.number,
960
967
  /**
961
968
  * If `true`, the rows will be gathered in a tree structure according to the `getTreeDataPath` prop.
962
969
  * @default false
963
970
  */
964
- treeData: PropTypes.bool,
965
- unstable_dataSource: PropTypes.shape({
966
- getChildrenCount: PropTypes.func,
967
- getGroupKey: PropTypes.func,
968
- getRows: PropTypes.func.isRequired,
969
- updateRow: PropTypes.func
971
+ treeData: _propTypes.default.bool,
972
+ unstable_dataSource: _propTypes.default.shape({
973
+ getChildrenCount: _propTypes.default.func,
974
+ getGroupKey: _propTypes.default.func,
975
+ getRows: _propTypes.default.func.isRequired,
976
+ updateRow: _propTypes.default.func
970
977
  }),
971
- unstable_dataSourceCache: PropTypes.shape({
972
- clear: PropTypes.func.isRequired,
973
- get: PropTypes.func.isRequired,
974
- set: PropTypes.func.isRequired
978
+ unstable_dataSourceCache: _propTypes.default.shape({
979
+ clear: _propTypes.default.func.isRequired,
980
+ get: _propTypes.default.func.isRequired,
981
+ set: _propTypes.default.func.isRequired
975
982
  }),
976
983
  /**
977
984
  * Definition of the column rendered when the `unstable_listView` prop is enabled.
978
985
  */
979
- unstable_listColumn: PropTypes.shape({
980
- align: PropTypes.oneOf(['center', 'left', 'right']),
981
- cellClassName: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
982
- display: PropTypes.oneOf(['flex', 'text']),
983
- field: PropTypes.string.isRequired,
984
- renderCell: PropTypes.func
986
+ unstable_listColumn: _propTypes.default.shape({
987
+ align: _propTypes.default.oneOf(['center', 'left', 'right']),
988
+ cellClassName: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
989
+ display: _propTypes.default.oneOf(['flex', 'text']),
990
+ field: _propTypes.default.string.isRequired,
991
+ renderCell: _propTypes.default.func
985
992
  }),
986
993
  /**
987
994
  * If `true`, displays the data in a list view.
988
995
  * Use in combination with `unstable_listColumn`.
989
996
  */
990
- unstable_listView: PropTypes.bool,
991
- unstable_onDataSourceError: PropTypes.func,
997
+ unstable_listView: _propTypes.default.bool,
998
+ unstable_onDataSourceError: _propTypes.default.func,
992
999
  /**
993
1000
  * If `true`, the Data Grid will auto span the cells over the rows having the same value.
994
1001
  * @default false
995
1002
  */
996
- unstable_rowSpanning: PropTypes.bool,
1003
+ unstable_rowSpanning: _propTypes.default.bool,
997
1004
  /**
998
1005
  * If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
999
1006
  * By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
@@ -1001,5 +1008,5 @@ DataGridProRaw.propTypes = {
1001
1008
  * The downside of enabling this prop is that the row height will be estimated based the cells that are currently rendered, which can cause row height change when scrolling horizontally.
1002
1009
  * @default false
1003
1010
  */
1004
- virtualizeColumnsWithAutoRowHeight: PropTypes.bool
1011
+ virtualizeColumnsWithAutoRowHeight: _propTypes.default.bool
1005
1012
  };