@mui/x-data-grid 9.14.0 → 9.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/CHANGELOG.md +176 -0
  2. package/DataGrid/DataGrid.js +8 -0
  3. package/DataGrid/DataGrid.mjs +9 -1
  4. package/DataGrid/useDataGridComponent.js +2 -2
  5. package/DataGrid/useDataGridComponent.mjs +2 -2
  6. package/DataGrid/useDataGridProps.mjs +1 -1
  7. package/colDef/gridActionsColDef.mjs +1 -1
  8. package/colDef/gridBooleanColDef.mjs +1 -1
  9. package/colDef/gridCheckboxSelectionColDef.mjs +1 -1
  10. package/colDef/gridDateColDef.mjs +1 -1
  11. package/colDef/gridDefaultColumnTypes.mjs +1 -1
  12. package/colDef/gridLongTextColDef.mjs +1 -1
  13. package/colDef/gridNumericColDef.mjs +1 -1
  14. package/colDef/gridSingleSelectColDef.mjs +1 -1
  15. package/components/GridColumnHeaders.mjs +2 -2
  16. package/components/GridColumnSortButton.mjs +2 -2
  17. package/components/GridColumnUnsortedIcon.mjs +2 -2
  18. package/components/GridFooter.mjs +1 -1
  19. package/components/GridHeader.mjs +1 -1
  20. package/components/GridHeaders.mjs +1 -1
  21. package/components/GridLoadingOverlay.mjs +2 -2
  22. package/components/GridNoColumnsOverlay.mjs +1 -1
  23. package/components/GridNoResultsOverlay.mjs +1 -1
  24. package/components/GridNoRowsOverlay.mjs +1 -1
  25. package/components/GridPagination.js +9 -1
  26. package/components/GridPagination.mjs +10 -2
  27. package/components/GridRow.mjs +2 -2
  28. package/components/GridRowCount.mjs +2 -2
  29. package/components/GridRowDragAndDropOverlay.mjs +1 -1
  30. package/components/GridScrollArea.mjs +1 -1
  31. package/components/GridSelectedRowCount.mjs +2 -2
  32. package/components/GridShadowScrollArea.mjs +2 -2
  33. package/components/GridSkeletonLoadingOverlay.mjs +2 -2
  34. package/components/base/GridFooterPlaceholder.mjs +1 -1
  35. package/components/base/GridOverlays.mjs +1 -1
  36. package/components/cell/GridActionsCell.js +2 -2
  37. package/components/cell/GridActionsCell.mjs +5 -5
  38. package/components/cell/GridActionsCellItem.d.mts +20 -6
  39. package/components/cell/GridActionsCellItem.d.ts +20 -6
  40. package/components/cell/GridActionsCellItem.js +30 -7
  41. package/components/cell/GridActionsCellItem.mjs +32 -9
  42. package/components/cell/GridBooleanCell.mjs +2 -2
  43. package/components/cell/GridCell.js +1 -1
  44. package/components/cell/GridCell.mjs +3 -3
  45. package/components/cell/GridEditBooleanCell.mjs +2 -2
  46. package/components/cell/GridEditDateCell.mjs +2 -2
  47. package/components/cell/GridEditInputCell.mjs +2 -2
  48. package/components/cell/GridEditLongTextCell.mjs +1 -1
  49. package/components/cell/GridEditSingleSelectCell.mjs +2 -2
  50. package/components/cell/GridFooterCell.mjs +2 -2
  51. package/components/cell/GridLongTextCell.mjs +1 -1
  52. package/components/cell/GridSkeletonCell.mjs +2 -2
  53. package/components/columnHeaders/ColumnHeaderMenuIcon.mjs +1 -1
  54. package/components/columnHeaders/GridBaseColumnHeaders.mjs +2 -2
  55. package/components/columnHeaders/GridColumnGroupHeader.mjs +1 -1
  56. package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +1 -1
  57. package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
  58. package/components/columnHeaders/GridColumnHeaderSeparator.d.mts +1 -1
  59. package/components/columnHeaders/GridColumnHeaderSeparator.d.ts +1 -1
  60. package/components/columnHeaders/GridColumnHeaderSeparator.mjs +2 -2
  61. package/components/columnHeaders/GridColumnHeaderSortIcon.js +17 -0
  62. package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +18 -1
  63. package/components/columnHeaders/GridColumnHeaderTitle.mjs +2 -2
  64. package/components/columnHeaders/GridGenericColumnHeaderItem.mjs +2 -2
  65. package/components/columnHeaders/GridIconButtonContainer.mjs +2 -2
  66. package/components/columnSelection/GridCellCheckboxRenderer.mjs +2 -2
  67. package/components/columnSelection/GridHeaderCheckbox.mjs +2 -2
  68. package/components/columnSelection/GridRowCheckbox.js +1 -3
  69. package/components/columnSelection/GridRowCheckbox.mjs +3 -5
  70. package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
  71. package/components/columnsPanel/ColumnsPanelTrigger.mjs +2 -2
  72. package/components/containers/GridFooterContainer.mjs +2 -2
  73. package/components/containers/GridOverlay.mjs +2 -2
  74. package/components/containers/GridRoot.mjs +2 -2
  75. package/components/containers/GridRootStyles.js +22 -10
  76. package/components/containers/GridRootStyles.mjs +22 -10
  77. package/components/containers/GridToolbarContainer.mjs +2 -2
  78. package/components/export/ExportCsv.mjs +2 -2
  79. package/components/export/ExportPrint.js +4 -1
  80. package/components/export/ExportPrint.mjs +6 -3
  81. package/components/filterPanel/FilterPanelTrigger.mjs +2 -2
  82. package/components/menu/GridMenu.mjs +2 -2
  83. package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
  84. package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
  85. package/components/menu/columnMenu/GridColumnMenuContainer.mjs +2 -2
  86. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
  87. package/components/panel/GridColumnsPanel.mjs +1 -1
  88. package/components/panel/GridPanel.mjs +2 -2
  89. package/components/panel/GridPanelContent.mjs +2 -2
  90. package/components/panel/GridPanelContext.mjs +1 -1
  91. package/components/panel/GridPanelFooter.mjs +2 -2
  92. package/components/panel/GridPanelHeader.mjs +2 -2
  93. package/components/panel/GridPanelWrapper.mjs +2 -2
  94. package/components/panel/GridPreferencesPanel.mjs +1 -1
  95. package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
  96. package/components/panel/filterPanel/GridFilterFormBase.mjs +2 -2
  97. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -12
  98. package/components/panel/filterPanel/GridFilterInputBoolean.mjs +3 -14
  99. package/components/panel/filterPanel/GridFilterInputDate.mjs +2 -2
  100. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +2 -2
  101. package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +2 -2
  102. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +1 -12
  103. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +3 -14
  104. package/components/panel/filterPanel/GridFilterInputValue.mjs +2 -2
  105. package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
  106. package/components/panel/filterPanel/GridFilterPanelBase.mjs +2 -2
  107. package/components/panel/filterPanel/filterPanelUtils.mjs +1 -1
  108. package/components/quickFilter/QuickFilter.mjs +2 -2
  109. package/components/quickFilter/QuickFilterClear.js +17 -0
  110. package/components/quickFilter/QuickFilterClear.mjs +19 -2
  111. package/components/quickFilter/QuickFilterControl.mjs +2 -2
  112. package/components/quickFilter/QuickFilterTrigger.mjs +2 -2
  113. package/components/toolbar/GridToolbar.mjs +2 -2
  114. package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
  115. package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
  116. package/components/toolbar/GridToolbarExport.js +4 -1
  117. package/components/toolbar/GridToolbarExport.mjs +6 -3
  118. package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
  119. package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
  120. package/components/toolbar/GridToolbarQuickFilter.mjs +2 -2
  121. package/components/toolbarV8/GridToolbar.mjs +2 -2
  122. package/components/toolbarV8/Toolbar.mjs +2 -2
  123. package/components/toolbarV8/ToolbarButton.js +17 -0
  124. package/components/toolbarV8/ToolbarButton.mjs +19 -2
  125. package/components/virtualization/GridBottomContainer.mjs +1 -1
  126. package/components/virtualization/GridMainContainer.mjs +1 -1
  127. package/components/virtualization/GridTopContainer.mjs +1 -1
  128. package/components/virtualization/GridVirtualScrollbar.js +2 -2
  129. package/components/virtualization/GridVirtualScrollbar.mjs +2 -2
  130. package/components/virtualization/GridVirtualScroller.js +2 -2
  131. package/components/virtualization/GridVirtualScroller.mjs +3 -3
  132. package/components/virtualization/GridVirtualScrollerContent.mjs +1 -1
  133. package/components/virtualization/GridVirtualScrollerRenderZone.mjs +1 -1
  134. package/constants/cssVariables.mjs +1 -1
  135. package/constants/defaultGridSlotsComponents.mjs +1 -1
  136. package/constants/signature.d.mts +1 -1
  137. package/constants/signature.d.ts +1 -1
  138. package/hooks/core/pipeProcessing/useGridPipeProcessing.mjs +2 -2
  139. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +2 -2
  140. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.mjs +2 -2
  141. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +2 -2
  142. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.mjs +2 -2
  143. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.mts +1 -1
  144. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +1 -1
  145. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +2 -2
  146. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +2 -2
  147. package/hooks/core/strategyProcessing/useGridStrategyProcessing.mjs +2 -2
  148. package/hooks/core/useGridApiInitialization.js +1 -1
  149. package/hooks/core/useGridApiInitialization.mjs +1 -1
  150. package/hooks/core/useGridIsRtl.mjs +1 -1
  151. package/hooks/core/useGridProps.mjs +1 -1
  152. package/hooks/core/useGridStateInitialization.mjs +1 -1
  153. package/hooks/core/useGridVirtualizer.d.mts +2 -2
  154. package/hooks/core/useGridVirtualizer.d.ts +2 -2
  155. package/hooks/core/useGridVirtualizer.js +6 -6
  156. package/hooks/core/useGridVirtualizer.mjs +4 -4
  157. package/hooks/features/columnGrouping/gridColumnGroupsUtils.mjs +2 -2
  158. package/hooks/features/columnGrouping/useGridColumnGrouping.mjs +1 -1
  159. package/hooks/features/columnHeaders/useGridColumnHeaders.mjs +1 -1
  160. package/hooks/features/columnMenu/getColumnMenuItemKeys.mjs +1 -1
  161. package/hooks/features/columnMenu/useGridColumnMenu.mjs +1 -1
  162. package/hooks/features/columnMenu/useGridColumnMenuSlots.mjs +2 -2
  163. package/hooks/features/columnResize/useGridColumnResize.mjs +1 -1
  164. package/hooks/features/columns/gridColumnsInterfaces.d.mts +1 -1
  165. package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
  166. package/hooks/features/columns/gridColumnsUtils.d.mts +1 -1
  167. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  168. package/hooks/features/columns/gridColumnsUtils.mjs +1 -1
  169. package/hooks/features/columns/useGridColumns.js +1 -1
  170. package/hooks/features/columns/useGridColumns.mjs +2 -2
  171. package/hooks/features/dataSource/cache.js +1 -1
  172. package/hooks/features/dataSource/cache.mjs +1 -1
  173. package/hooks/features/dataSource/useGridDataSourceBase.js +13 -28
  174. package/hooks/features/dataSource/useGridDataSourceBase.mjs +16 -31
  175. package/hooks/features/dataSource/useGridDataSourcePolling.d.mts +29 -0
  176. package/hooks/features/dataSource/useGridDataSourcePolling.d.ts +29 -0
  177. package/hooks/features/dataSource/useGridDataSourcePolling.js +62 -0
  178. package/hooks/features/dataSource/useGridDataSourcePolling.mjs +54 -0
  179. package/hooks/features/dataSource/utils.d.mts +1 -1
  180. package/hooks/features/dataSource/utils.d.ts +1 -1
  181. package/hooks/features/dataSource/utils.mjs +1 -1
  182. package/hooks/features/density/useGridDensity.mjs +1 -1
  183. package/hooks/features/dimensions/useGridDimensions.d.mts +1 -1
  184. package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
  185. package/hooks/features/dimensions/useGridDimensions.js +3 -3
  186. package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
  187. package/hooks/features/editing/useGridCellEditing.js +1 -1
  188. package/hooks/features/editing/useGridCellEditing.mjs +5 -5
  189. package/hooks/features/editing/useGridEditing.mjs +1 -1
  190. package/hooks/features/editing/useGridRowEditing.js +1 -1
  191. package/hooks/features/editing/useGridRowEditing.mjs +5 -5
  192. package/hooks/features/export/serializers/csvSerializer.js +5 -5
  193. package/hooks/features/export/serializers/csvSerializer.mjs +5 -5
  194. package/hooks/features/export/useGridPrintExport.js +44 -20
  195. package/hooks/features/export/useGridPrintExport.mjs +45 -21
  196. package/hooks/features/filter/gridFilterUtils.js +3 -3
  197. package/hooks/features/filter/gridFilterUtils.mjs +5 -5
  198. package/hooks/features/filter/useGridFilter.js +2 -2
  199. package/hooks/features/filter/useGridFilter.mjs +3 -3
  200. package/hooks/features/focus/useGridFocus.mjs +1 -1
  201. package/hooks/features/headerFiltering/useGridHeaderFiltering.mjs +1 -1
  202. package/hooks/features/listView/useGridListView.d.mts +2 -2
  203. package/hooks/features/listView/useGridListView.d.ts +2 -2
  204. package/hooks/features/listView/useGridListView.js +1 -1
  205. package/hooks/features/listView/useGridListView.mjs +2 -2
  206. package/hooks/features/pagination/useGridPagination.mjs +1 -1
  207. package/hooks/features/pagination/useGridPaginationMeta.mjs +1 -1
  208. package/hooks/features/pagination/useGridPaginationModel.mjs +1 -1
  209. package/hooks/features/pagination/useGridRowCount.js +2 -2
  210. package/hooks/features/pagination/useGridRowCount.mjs +2 -2
  211. package/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.mts +1 -1
  212. package/hooks/features/preferencesPanel/gridPreferencePanelsValue.d.ts +1 -1
  213. package/hooks/features/preferencesPanel/useGridPreferencesPanel.mjs +1 -1
  214. package/hooks/features/rowSelection/useGridRowSelection.mjs +1 -1
  215. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.mjs +1 -1
  216. package/hooks/features/rows/gridRowsUtils.js +2 -2
  217. package/hooks/features/rows/gridRowsUtils.mjs +3 -3
  218. package/hooks/features/rows/useGridRowSpanning.mjs +1 -1
  219. package/hooks/features/rows/useGridRows.mjs +1 -1
  220. package/hooks/features/rows/useGridRowsMeta.mjs +1 -1
  221. package/hooks/features/rows/useGridRowsOverridableMethods.mjs +1 -1
  222. package/hooks/features/rows/useGridRowsPreProcessors.mjs +1 -1
  223. package/hooks/features/sorting/gridSortingUtils.js +1 -1
  224. package/hooks/features/sorting/gridSortingUtils.mjs +3 -3
  225. package/hooks/features/sorting/useGridSorting.js +2 -2
  226. package/hooks/features/sorting/useGridSorting.mjs +3 -3
  227. package/hooks/features/virtualization/gridFocusedVirtualCellSelector.mjs +1 -1
  228. package/hooks/features/virtualization/useGridVirtualization.mjs +1 -1
  229. package/hooks/utils/index.d.mts +1 -1
  230. package/hooks/utils/index.d.ts +1 -1
  231. package/hooks/utils/index.js +8 -12
  232. package/hooks/utils/index.mjs +2 -1
  233. package/hooks/utils/useGridSelector.js +2 -2
  234. package/hooks/utils/useGridSelector.mjs +2 -2
  235. package/index.js +1 -1
  236. package/index.mjs +1 -1
  237. package/internals/constants.d.mts +1 -1
  238. package/internals/constants.d.ts +1 -1
  239. package/internals/index.d.mts +1 -0
  240. package/internals/index.d.ts +1 -0
  241. package/internals/index.js +8 -0
  242. package/internals/index.mjs +1 -0
  243. package/internals/utils/cache.d.mts +0 -1
  244. package/internals/utils/cache.d.ts +0 -1
  245. package/internals/utils/cache.js +1 -3
  246. package/internals/utils/cache.mjs +1 -3
  247. package/internals/utils/computeSlots.mjs +1 -1
  248. package/internals/utils/propValidation.js +2 -2
  249. package/internals/utils/propValidation.mjs +3 -3
  250. package/material/index.mjs +2 -2
  251. package/models/api/gridCoreApi.d.mts +1 -1
  252. package/models/api/gridCoreApi.d.ts +1 -1
  253. package/models/api/gridEditingApi.d.mts +6 -6
  254. package/models/api/gridEditingApi.d.ts +6 -6
  255. package/models/api/gridPrintExportApi.d.mts +2 -1
  256. package/models/api/gridPrintExportApi.d.ts +2 -1
  257. package/models/events/gridEventLookup.d.mts +5 -5
  258. package/models/events/gridEventLookup.d.ts +5 -5
  259. package/models/gridBaseSlots.d.mts +18 -1
  260. package/models/gridBaseSlots.d.ts +18 -1
  261. package/models/gridEditRowModel.d.mts +3 -3
  262. package/models/gridEditRowModel.d.ts +3 -3
  263. package/models/gridExport.d.mts +13 -0
  264. package/models/gridExport.d.ts +13 -0
  265. package/models/gridFilterItem.d.mts +2 -2
  266. package/models/gridFilterItem.d.ts +2 -2
  267. package/models/index.d.mts +2 -1
  268. package/models/index.d.ts +2 -1
  269. package/models/params/gridEditCellParams.d.mts +2 -2
  270. package/models/params/gridEditCellParams.d.ts +2 -2
  271. package/models/params/gridRowParams.d.mts +2 -2
  272. package/models/params/gridRowParams.d.ts +2 -2
  273. package/models/props/DataGridProps.d.mts +8 -0
  274. package/models/props/DataGridProps.d.ts +8 -0
  275. package/package.json +5 -5
  276. package/utils/createSelector.d.mts +1 -1
  277. package/utils/createSelector.d.ts +1 -1
  278. package/utils/createSelector.js +1 -1
  279. package/utils/createSelector.mjs +1 -1
  280. package/hooks/utils/useFirstRender.d.mts +0 -1
  281. package/hooks/utils/useFirstRender.d.ts +0 -1
  282. package/hooks/utils/useFirstRender.js +0 -16
  283. package/hooks/utils/useFirstRender.mjs +0 -1
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["rowId", "material"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -15,9 +15,7 @@ const GridRowCheckbox = forwardRef(function GridRowCheckbox(props, ref) {
15
15
  other = _objectWithoutPropertiesLoose(props, _excluded);
16
16
  const rootProps = useGridRootProps();
17
17
  return /*#__PURE__*/_jsx(rootProps.slots.baseCheckbox, _extends({}, rootProps.slotProps?.baseCheckbox, other, {
18
- material: _extends({
19
- disableRipple: props.disabled
20
- }, material),
18
+ material: material,
21
19
  ref: ref
22
20
  }));
23
21
  });
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-use-before-define */
2
2
  'use client';
3
3
 
4
- import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import composeClasses from '@mui/utils/composeClasses';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["render", "className", "onClick", "onPointerUp"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className", "children", "sidePanel"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -48,7 +48,9 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
48
48
  });
49
49
  return overrides;
50
50
  }
51
- })(() => {
51
+ })(({
52
+ ownerState
53
+ }) => {
52
54
  const apiRef = (0, _useGridPrivateApiContext.useGridPrivateApiContext)();
53
55
  const shouldShowBorderTopRightRadius = (0, _useGridSelector.useGridSelector)(apiRef, shouldShowBorderTopRightRadiusSelector);
54
56
  const baseBackground = _cssVariables.vars.colors.background.base;
@@ -63,21 +65,27 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
63
65
  const fallbackColors = {
64
66
  hover: _cssVariables.vars.colors.interactive.hover,
65
67
  selected: selectedColor,
66
- selectedHover: selectedColor
68
+ selectedHover: selectedColor,
69
+ // Pinned cells cover the scrolled cells behind them, so their fallback must
70
+ // stay opaque. Translucent overlay colors would let those cells bleed through
71
+ // in browsers without `color-mix()` support (https://github.com/mui/mui-x/issues/18273).
72
+ pinnedHover: pinnedBackground,
73
+ pinnedSelected: pinnedBackground,
74
+ pinnedSelectedHover: pinnedBackground
67
75
  };
68
76
  const hoverBackground = mix(baseBackground, hoverColor, hoverOpacity, fallbackColors.hover);
69
77
  const selectedBackground = mix(baseBackground, selectedColor, selectedOpacity, fallbackColors.selected);
70
78
  const selectedHoverBackground = mix(baseBackground, selectedHoverColor, selectedHoverOpacity, fallbackColors.selectedHover);
71
- const pinnedHoverBackground = mix(pinnedBackground, hoverColor, hoverOpacity, fallbackColors.hover);
72
- const pinnedSelectedBackground = mix(pinnedBackground, selectedColor, selectedOpacity, fallbackColors.selected);
73
- const pinnedSelectedHoverBackground = mix(pinnedBackground, selectedHoverColor, selectedHoverOpacity, fallbackColors.selectedHover);
79
+ const pinnedHoverBackground = mix(pinnedBackground, hoverColor, hoverOpacity, fallbackColors.pinnedHover);
80
+ const pinnedSelectedBackground = mix(pinnedBackground, selectedColor, selectedOpacity, fallbackColors.pinnedSelected);
81
+ const pinnedSelectedHoverBackground = mix(pinnedBackground, selectedHoverColor, selectedHoverOpacity, fallbackColors.pinnedSelectedHover);
74
82
  const getPinnedBackgroundStyles = backgroundColor => ({
75
83
  [`& .${_gridClasses.gridClasses['cell--pinnedLeft']}, & .${_gridClasses.gridClasses['cell--pinnedRight']}`]: {
76
84
  backgroundColor,
77
85
  '&.Mui-selected': {
78
- backgroundColor: mix(backgroundColor, selectedBackground, selectedOpacity, fallbackColors.selected),
86
+ backgroundColor: mix(backgroundColor, selectedBackground, selectedOpacity, backgroundColor),
79
87
  '&:hover': {
80
- backgroundColor: mix(backgroundColor, selectedHoverBackground, selectedHoverOpacity, fallbackColors.selectedHover)
88
+ backgroundColor: mix(backgroundColor, selectedHoverBackground, selectedHoverOpacity, backgroundColor)
81
89
  }
82
90
  }
83
91
  }
@@ -124,11 +132,14 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
124
132
  color: _cssVariables.vars.colors.foreground.base,
125
133
  font: _cssVariables.vars.typography.font.body,
126
134
  outline: 'none',
127
- height: '100%',
135
+ height: ownerState.height ?? '100%',
136
+ // Pin the `height` prop in a flex-column parent without flex-shrink: 0, which would make
137
+ // a flex-row parent overflow. See https://github.com/mui/mui-x/pull/23628#discussion_r4046270137
138
+ minHeight: ownerState.height ?? 0,
139
+ maxHeight: ownerState.height,
128
140
  display: 'flex',
129
141
  minWidth: 0,
130
142
  // See https://github.com/mui/mui-x/issues/8547
131
- minHeight: 0,
132
143
  flexDirection: 'column',
133
144
  overflow: 'hidden',
134
145
  transform: 'translate(0, 0)',
@@ -153,7 +164,8 @@ const GridRootStyles = exports.GridRootStyles = (0, _styles.styled)('div', {
153
164
  },
154
165
  [`&.${_gridClasses.gridClasses.autosizing}`]: {
155
166
  [`& .${_gridClasses.gridClasses.columnHeaderTitleContainerContent} > *`]: {
156
- overflow: 'visible !important'
167
+ overflow: 'visible !important',
168
+ whiteSpace: 'nowrap !important'
157
169
  },
158
170
  '@media (hover: hover)': {
159
171
  [`& .${_gridClasses.gridClasses.menuIcon}`]: {
@@ -42,7 +42,9 @@ export const GridRootStyles = styled('div', {
42
42
  });
43
43
  return overrides;
44
44
  }
45
- })(() => {
45
+ })(({
46
+ ownerState
47
+ }) => {
46
48
  const apiRef = useGridPrivateApiContext();
47
49
  const shouldShowBorderTopRightRadius = useGridSelector(apiRef, shouldShowBorderTopRightRadiusSelector);
48
50
  const baseBackground = vars.colors.background.base;
@@ -57,21 +59,27 @@ export const GridRootStyles = styled('div', {
57
59
  const fallbackColors = {
58
60
  hover: vars.colors.interactive.hover,
59
61
  selected: selectedColor,
60
- selectedHover: selectedColor
62
+ selectedHover: selectedColor,
63
+ // Pinned cells cover the scrolled cells behind them, so their fallback must
64
+ // stay opaque. Translucent overlay colors would let those cells bleed through
65
+ // in browsers without `color-mix()` support (https://github.com/mui/mui-x/issues/18273).
66
+ pinnedHover: pinnedBackground,
67
+ pinnedSelected: pinnedBackground,
68
+ pinnedSelectedHover: pinnedBackground
61
69
  };
62
70
  const hoverBackground = mix(baseBackground, hoverColor, hoverOpacity, fallbackColors.hover);
63
71
  const selectedBackground = mix(baseBackground, selectedColor, selectedOpacity, fallbackColors.selected);
64
72
  const selectedHoverBackground = mix(baseBackground, selectedHoverColor, selectedHoverOpacity, fallbackColors.selectedHover);
65
- const pinnedHoverBackground = mix(pinnedBackground, hoverColor, hoverOpacity, fallbackColors.hover);
66
- const pinnedSelectedBackground = mix(pinnedBackground, selectedColor, selectedOpacity, fallbackColors.selected);
67
- const pinnedSelectedHoverBackground = mix(pinnedBackground, selectedHoverColor, selectedHoverOpacity, fallbackColors.selectedHover);
73
+ const pinnedHoverBackground = mix(pinnedBackground, hoverColor, hoverOpacity, fallbackColors.pinnedHover);
74
+ const pinnedSelectedBackground = mix(pinnedBackground, selectedColor, selectedOpacity, fallbackColors.pinnedSelected);
75
+ const pinnedSelectedHoverBackground = mix(pinnedBackground, selectedHoverColor, selectedHoverOpacity, fallbackColors.pinnedSelectedHover);
68
76
  const getPinnedBackgroundStyles = backgroundColor => ({
69
77
  [`& .${c['cell--pinnedLeft']}, & .${c['cell--pinnedRight']}`]: {
70
78
  backgroundColor,
71
79
  '&.Mui-selected': {
72
- backgroundColor: mix(backgroundColor, selectedBackground, selectedOpacity, fallbackColors.selected),
80
+ backgroundColor: mix(backgroundColor, selectedBackground, selectedOpacity, backgroundColor),
73
81
  '&:hover': {
74
- backgroundColor: mix(backgroundColor, selectedHoverBackground, selectedHoverOpacity, fallbackColors.selectedHover)
82
+ backgroundColor: mix(backgroundColor, selectedHoverBackground, selectedHoverOpacity, backgroundColor)
75
83
  }
76
84
  }
77
85
  }
@@ -118,11 +126,14 @@ export const GridRootStyles = styled('div', {
118
126
  color: vars.colors.foreground.base,
119
127
  font: vars.typography.font.body,
120
128
  outline: 'none',
121
- height: '100%',
129
+ height: ownerState.height ?? '100%',
130
+ // Pin the `height` prop in a flex-column parent without flex-shrink: 0, which would make
131
+ // a flex-row parent overflow. See https://github.com/mui/mui-x/pull/23628#discussion_r4046270137
132
+ minHeight: ownerState.height ?? 0,
133
+ maxHeight: ownerState.height,
122
134
  display: 'flex',
123
135
  minWidth: 0,
124
136
  // See https://github.com/mui/mui-x/issues/8547
125
- minHeight: 0,
126
137
  flexDirection: 'column',
127
138
  overflow: 'hidden',
128
139
  transform: 'translate(0, 0)',
@@ -147,7 +158,8 @@ export const GridRootStyles = styled('div', {
147
158
  },
148
159
  [`&.${c.autosizing}`]: {
149
160
  [`& .${c.columnHeaderTitleContainerContent} > *`]: {
150
- overflow: 'visible !important'
161
+ overflow: 'visible !important',
162
+ whiteSpace: 'nowrap !important'
151
163
  },
152
164
  '@media (hover: hover)': {
153
165
  [`& .${c.menuIcon}`]: {
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className", "children"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["render", "options", "onClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -38,7 +38,9 @@ const ExportPrint = exports.ExportPrint = (0, _forwardRef.forwardRef)(function E
38
38
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
39
39
  const apiRef = (0, _useGridApiContext.useGridApiContext)();
40
40
  const handleClick = event => {
41
- apiRef.current.exportDataAsPrint(options);
41
+ apiRef.current.exportDataAsPrint(options).catch(error => {
42
+ console.error('MUI X Data Grid: Error exporting the grid as print:', error);
43
+ });
42
44
  onClick?.(event);
43
45
  };
44
46
  const element = (0, _useComponentRenderer.useComponentRenderer)(rootProps.slots.baseButton, render, (0, _extends2.default)({}, rootProps.slotProps?.baseButton, {
@@ -74,6 +76,7 @@ process.env.NODE_ENV !== "production" ? ExportPrint.propTypes /* remove-proptype
74
76
  hideFooter: _propTypes.default.bool,
75
77
  hideToolbar: _propTypes.default.bool,
76
78
  includeCheckboxes: _propTypes.default.bool,
79
+ onStylesheetError: _propTypes.default.func,
77
80
  pageStyle: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string])
78
81
  }),
79
82
  /**
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["render", "options", "onClick"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -30,7 +30,9 @@ const ExportPrint = forwardRef(function ExportPrint(props, ref) {
30
30
  const rootProps = useGridRootProps();
31
31
  const apiRef = useGridApiContext();
32
32
  const handleClick = event => {
33
- apiRef.current.exportDataAsPrint(options);
33
+ apiRef.current.exportDataAsPrint(options).catch(error => {
34
+ console.error('MUI X Data Grid: Error exporting the grid as print:', error);
35
+ });
34
36
  onClick?.(event);
35
37
  };
36
38
  const element = useComponentRenderer(rootProps.slots.baseButton, render, _extends({}, rootProps.slotProps?.baseButton, {
@@ -66,6 +68,7 @@ process.env.NODE_ENV !== "production" ? ExportPrint.propTypes /* remove-proptype
66
68
  hideFooter: PropTypes.bool,
67
69
  hideToolbar: PropTypes.bool,
68
70
  includeCheckboxes: PropTypes.bool,
71
+ onStylesheetError: PropTypes.func,
69
72
  pageStyle: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
70
73
  }),
71
74
  /**
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["render", "className", "onClick", "onPointerUp"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["open", "target", "onClose", "children", "position", "className", "onExited"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import useEventCallback from '@mui/utils/useEventCallback';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["defaultSlots", "defaultSlotProps", "slots", "slotProps"];
6
6
  import PropTypes from 'prop-types';
7
7
  import { forwardRef } from '@mui/x-internals/forwardRef';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["hideMenu", "colDef", "id", "labelledby", "className", "children", "open"];
6
6
  import clsx from 'clsx';
7
7
  import PropTypes from 'prop-types';
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
4
  import { GridColumnMenuHideItem } from "./GridColumnMenuHideItem.mjs";
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { GridPanelWrapper } from "./GridPanelWrapper.mjs";
3
3
  import { useGridRootProps } from "../../hooks/utils/useGridRootProps.mjs";
4
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["children", "className", "classes", "onClose"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["className"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
5
5
  import * as React from 'react';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["className"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
3
3
  const _excluded = ["className"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  const _excluded = ["className"];
6
6
  import * as React from 'react';
7
7
  import clsx from 'clsx';
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { gridColumnDefinitionsSelector } from "../../hooks/features/columns/gridColumnsSelector.mjs";
3
3
  import { useGridSelector } from "../../hooks/utils/useGridSelector.mjs";
4
4
  import { gridPreferencePanelStateSelector } from "../../hooks/features/preferencesPanel/gridPreferencePanelSelector.mjs";
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { forwardRef } from '@mui/x-internals/forwardRef';
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
4
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
5
5
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
6
6
  const _excluded = ["item", "hasMultipleFilters", "deleteFilter", "applyFilterChanges", "showMultiFilterOperators", "disableMultiFilterOperator", "applyMultiFilterOperatorChanges", "focusElementRef", "logicOperators", "columnsSort", "filterColumns", "deleteIconProps", "logicOperatorInputProps", "operatorInputProps", "columnInputProps", "valueInputProps", "disableDebounce", "readOnly", "filterModel", "children"],
7
7
  _excluded2 = ["InputComponentProps"];
@@ -8,7 +8,6 @@ Object.defineProperty(exports, "__esModule", {
8
8
  });
9
9
  exports.GridFilterInputBoolean = GridFilterInputBoolean;
10
10
  exports.sanitizeFilterItemValue = sanitizeFilterItemValue;
11
- var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
12
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
12
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
14
13
  var React = _interopRequireWildcard(require("react"));
@@ -109,17 +108,7 @@ process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes /* remo
109
108
  disableDebounce: _propTypes.default.bool,
110
109
  focusElementRef: _refType.default,
111
110
  headerFilterMenu: _propTypes.default.node,
112
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
113
- current: (props, propName) => {
114
- if (props[propName] == null) {
115
- return null;
116
- }
117
- if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
118
- return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(49, propName));
119
- }
120
- return null;
121
- }
122
- })]),
111
+ inputRef: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.func, _propTypes.default.object]),
123
112
  /**
124
113
  * It is `true` if the filter either has a value or an operator with no value
125
114
  * required is selected (for example `isEmpty`)
@@ -1,8 +1,7 @@
1
1
  'use client';
2
2
 
3
- import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
6
5
  const _excluded = ["item", "applyValue", "apiRef", "focusElementRef", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "slotProps", "disableDebounce"];
7
6
  import * as React from 'react';
8
7
  import PropTypes from 'prop-types';
@@ -101,17 +100,7 @@ process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes /* remo
101
100
  disableDebounce: PropTypes.bool,
102
101
  focusElementRef: refType,
103
102
  headerFilterMenu: PropTypes.node,
104
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
105
- current: (props, propName) => {
106
- if (props[propName] == null) {
107
- return null;
108
- }
109
- if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
110
- return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : _formatErrorMessage(49, propName));
111
- }
112
- return null;
113
- }
114
- })]),
103
+ inputRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
115
104
  /**
116
105
  * It is `true` if the filter either has a value or an operator with no value
117
106
  * required is selected (for example `isEmpty`)
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
6
6
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled", "disableDebounce"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
3
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
4
4
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "disableDebounce"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
6
6
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "disableDebounce"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.GridFilterInputSingleSelect = GridFilterInputSingleSelect;
9
- var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
10
9
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
11
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
11
  var _react = _interopRequireWildcard(require("react"));
@@ -134,17 +133,7 @@ process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes /*
134
133
  disableDebounce: _propTypes.default.bool,
135
134
  focusElementRef: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.func, _propTypes.default.object]),
136
135
  headerFilterMenu: _propTypes.default.node,
137
- inputRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
138
- current: (props, propName) => {
139
- if (props[propName] == null) {
140
- return null;
141
- }
142
- if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
143
- return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : (0, _formatErrorMessage2.default)(49, propName));
144
- }
145
- return null;
146
- }
147
- })]),
136
+ inputRef: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.func, _propTypes.default.object]),
148
137
  /**
149
138
  * It is `true` if the filter either has a value or an operator with no value
150
139
  * required is selected (for example `isEmpty`)
@@ -1,6 +1,5 @@
1
- import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/extends";
4
3
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps", "disableDebounce"];
5
4
  import * as React from 'react';
6
5
  import PropTypes from 'prop-types';
@@ -126,17 +125,7 @@ process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes /*
126
125
  disableDebounce: PropTypes.bool,
127
126
  focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
128
127
  headerFilterMenu: PropTypes.node,
129
- inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
130
- current: (props, propName) => {
131
- if (props[propName] == null) {
132
- return null;
133
- }
134
- if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
135
- return new Error(process.env.NODE_ENV !== "production" ? `Expected prop '${propName}' to be of type Element` : _formatErrorMessage(49, propName));
136
- }
137
- return null;
138
- }
139
- })]),
128
+ inputRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
140
129
  /**
141
130
  * It is `true` if the filter either has a value or an operator with no value
142
131
  * required is selected (for example `isEmpty`)
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
3
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
5
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
6
6
  const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "disabled", "disableDebounce", "isFilterActive", "slotProps", "clearButton", "headerFilterMenu"];
7
7
  import * as React from 'react';
8
8
  import PropTypes from 'prop-types';
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { forwardRef } from '@mui/x-internals/forwardRef';