@mui/x-data-grid 9.4.0 → 9.6.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 (234) hide show
  1. package/CHANGELOG.md +251 -0
  2. package/DataGrid/DataGrid.js +74 -13
  3. package/DataGrid/DataGrid.mjs +74 -13
  4. package/colDef/gridColumnTypesRegistry.d.mts +8 -0
  5. package/colDef/gridColumnTypesRegistry.d.ts +8 -0
  6. package/colDef/gridColumnTypesRegistry.js +44 -0
  7. package/colDef/gridColumnTypesRegistry.mjs +34 -0
  8. package/colDef/gridDefaultColumnTypes.d.mts +1 -1
  9. package/colDef/gridDefaultColumnTypes.d.ts +1 -1
  10. package/colDef/gridDefaultColumnTypes.js +11 -23
  11. package/colDef/gridDefaultColumnTypes.mjs +4 -22
  12. package/components/GridColumnHeaders.js +1 -1
  13. package/components/GridColumnHeaders.mjs +1 -1
  14. package/components/GridColumnUnsortedIcon.js +1 -1
  15. package/components/GridColumnUnsortedIcon.mjs +1 -1
  16. package/components/GridFooter.js +1 -1
  17. package/components/GridFooter.mjs +1 -1
  18. package/components/GridLoadingOverlay.js +1 -1
  19. package/components/GridLoadingOverlay.mjs +1 -1
  20. package/components/GridNoColumnsOverlay.js +1 -1
  21. package/components/GridNoColumnsOverlay.mjs +1 -1
  22. package/components/GridNoRowsOverlay.js +1 -1
  23. package/components/GridNoRowsOverlay.mjs +1 -1
  24. package/components/GridRow.js +1 -1
  25. package/components/GridRow.mjs +1 -1
  26. package/components/GridRowCount.js +1 -1
  27. package/components/GridRowCount.mjs +1 -1
  28. package/components/GridRowDragAndDropOverlay.d.mts +1 -1
  29. package/components/GridRowDragAndDropOverlay.d.ts +1 -1
  30. package/components/GridSelectedRowCount.js +1 -1
  31. package/components/GridSelectedRowCount.mjs +1 -1
  32. package/components/GridShadowScrollArea.js +1 -1
  33. package/components/GridShadowScrollArea.mjs +1 -1
  34. package/components/cell/GridActionsCell.js +84 -4
  35. package/components/cell/GridActionsCell.mjs +84 -4
  36. package/components/cell/GridActionsCellItem.js +75 -1
  37. package/components/cell/GridActionsCellItem.mjs +74 -0
  38. package/components/cell/GridBooleanCell.js +1 -1
  39. package/components/cell/GridBooleanCell.mjs +1 -1
  40. package/components/cell/GridCell.js +1 -1
  41. package/components/cell/GridCell.mjs +1 -1
  42. package/components/cell/GridEditBooleanCell.js +1 -1
  43. package/components/cell/GridEditBooleanCell.mjs +1 -1
  44. package/components/cell/GridEditDateCell.js +1 -1
  45. package/components/cell/GridEditDateCell.mjs +1 -1
  46. package/components/cell/GridEditInputCell.js +68 -0
  47. package/components/cell/GridEditInputCell.mjs +68 -0
  48. package/components/cell/GridEditLongTextCell.d.mts +3 -0
  49. package/components/cell/GridEditLongTextCell.d.ts +3 -0
  50. package/components/cell/GridEditLongTextCell.js +141 -0
  51. package/components/cell/GridEditLongTextCell.mjs +141 -0
  52. package/components/cell/GridEditSingleSelectCell.js +1 -1
  53. package/components/cell/GridEditSingleSelectCell.mjs +1 -1
  54. package/components/cell/GridLongTextCell.d.mts +3 -0
  55. package/components/cell/GridLongTextCell.d.ts +3 -0
  56. package/components/cell/GridLongTextCell.js +68 -0
  57. package/components/cell/GridLongTextCell.mjs +68 -0
  58. package/components/cell/GridSkeletonCell.js +3 -2
  59. package/components/cell/GridSkeletonCell.mjs +3 -2
  60. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +2 -2
  61. package/components/columnHeaders/GridColumnHeaderFilterIconButton.mjs +2 -2
  62. package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
  63. package/components/columnHeaders/GridColumnHeaderItem.mjs +1 -1
  64. package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
  65. package/components/columnHeaders/GridColumnHeaderSeparator.mjs +1 -1
  66. package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -1
  67. package/components/columnHeaders/GridColumnHeaderSortIcon.mjs +1 -1
  68. package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
  69. package/components/columnHeaders/GridColumnHeaderTitle.mjs +1 -1
  70. package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
  71. package/components/columnSelection/GridCellCheckboxRenderer.mjs +1 -1
  72. package/components/columnSelection/GridHeaderCheckbox.js +1 -1
  73. package/components/columnSelection/GridHeaderCheckbox.mjs +1 -1
  74. package/components/columnSelection/GridRowCheckbox.js +1 -1
  75. package/components/columnSelection/GridRowCheckbox.mjs +1 -1
  76. package/components/columnsManagement/GridColumnsManagement.js +1 -1
  77. package/components/columnsManagement/GridColumnsManagement.mjs +1 -1
  78. package/components/columnsPanel/ColumnsPanelTrigger.js +1 -1
  79. package/components/columnsPanel/ColumnsPanelTrigger.mjs +1 -1
  80. package/components/containers/GridFooterContainer.js +1 -1
  81. package/components/containers/GridFooterContainer.mjs +1 -1
  82. package/components/containers/GridOverlay.js +1 -1
  83. package/components/containers/GridOverlay.mjs +1 -1
  84. package/components/containers/GridRoot.js +1 -1
  85. package/components/containers/GridRoot.mjs +1 -1
  86. package/components/containers/GridRootStyles.js +32 -2
  87. package/components/containers/GridRootStyles.mjs +32 -2
  88. package/components/containers/GridToolbarContainer.js +1 -1
  89. package/components/containers/GridToolbarContainer.mjs +1 -1
  90. package/components/export/ExportCsv.js +1 -1
  91. package/components/export/ExportCsv.mjs +1 -1
  92. package/components/export/ExportPrint.js +1 -1
  93. package/components/export/ExportPrint.mjs +1 -1
  94. package/components/filterPanel/FilterPanelTrigger.js +1 -1
  95. package/components/filterPanel/FilterPanelTrigger.mjs +1 -1
  96. package/components/menu/GridMenu.js +1 -1
  97. package/components/menu/GridMenu.mjs +1 -1
  98. package/components/menu/columnMenu/GridColumnHeaderMenu.js +1 -1
  99. package/components/menu/columnMenu/GridColumnHeaderMenu.mjs +1 -1
  100. package/components/menu/columnMenu/GridColumnMenu.js +2 -2
  101. package/components/menu/columnMenu/GridColumnMenu.mjs +2 -2
  102. package/components/menu/columnMenu/GridColumnMenuContainer.js +1 -1
  103. package/components/menu/columnMenu/GridColumnMenuContainer.mjs +1 -1
  104. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +1 -1
  105. package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.mjs +1 -1
  106. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +1 -1
  107. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.mjs +1 -1
  108. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +1 -1
  109. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.mjs +1 -1
  110. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +1 -1
  111. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.mjs +1 -1
  112. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +1 -1
  113. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.mjs +1 -1
  114. package/components/panel/GridPanel.js +1 -1
  115. package/components/panel/GridPanel.mjs +1 -1
  116. package/components/panel/GridPanelContent.js +1 -1
  117. package/components/panel/GridPanelContent.mjs +1 -1
  118. package/components/panel/GridPanelFooter.js +1 -1
  119. package/components/panel/GridPanelFooter.mjs +1 -1
  120. package/components/panel/GridPanelHeader.js +1 -1
  121. package/components/panel/GridPanelHeader.mjs +1 -1
  122. package/components/panel/filterPanel/GridFilterForm.js +1 -1
  123. package/components/panel/filterPanel/GridFilterForm.mjs +1 -1
  124. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  125. package/components/panel/filterPanel/GridFilterInputBoolean.mjs +1 -1
  126. package/components/panel/filterPanel/GridFilterInputDate.js +1 -1
  127. package/components/panel/filterPanel/GridFilterInputDate.mjs +1 -1
  128. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +1 -1
  129. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +1 -1
  130. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +1 -1
  131. package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +1 -1
  132. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +3 -5
  133. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +3 -5
  134. package/components/panel/filterPanel/GridFilterInputValue.js +1 -1
  135. package/components/panel/filterPanel/GridFilterInputValue.mjs +1 -1
  136. package/components/panel/filterPanel/GridFilterPanel.js +1 -1
  137. package/components/panel/filterPanel/GridFilterPanel.mjs +1 -1
  138. package/components/panel/filterPanel/filterPanelUtils.d.mts +3 -2
  139. package/components/panel/filterPanel/filterPanelUtils.d.ts +3 -2
  140. package/components/panel/filterPanel/filterPanelUtils.js +4 -0
  141. package/components/panel/filterPanel/filterPanelUtils.mjs +3 -0
  142. package/components/quickFilter/QuickFilter.js +1 -1
  143. package/components/quickFilter/QuickFilter.mjs +1 -1
  144. package/components/quickFilter/QuickFilterClear.js +1 -1
  145. package/components/quickFilter/QuickFilterClear.mjs +1 -1
  146. package/components/quickFilter/QuickFilterControl.js +1 -1
  147. package/components/quickFilter/QuickFilterControl.mjs +1 -1
  148. package/components/quickFilter/QuickFilterTrigger.js +1 -1
  149. package/components/quickFilter/QuickFilterTrigger.mjs +1 -1
  150. package/components/toolbar/GridToolbar.js +1 -1
  151. package/components/toolbar/GridToolbar.mjs +1 -1
  152. package/components/toolbar/GridToolbarColumnsButton.js +1 -1
  153. package/components/toolbar/GridToolbarColumnsButton.mjs +1 -1
  154. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  155. package/components/toolbar/GridToolbarDensitySelector.mjs +1 -1
  156. package/components/toolbar/GridToolbarExport.js +3 -3
  157. package/components/toolbar/GridToolbarExport.mjs +3 -3
  158. package/components/toolbar/GridToolbarExportContainer.js +1 -1
  159. package/components/toolbar/GridToolbarExportContainer.mjs +1 -1
  160. package/components/toolbar/GridToolbarFilterButton.js +1 -1
  161. package/components/toolbar/GridToolbarFilterButton.mjs +1 -1
  162. package/components/toolbar/GridToolbarQuickFilter.js +1 -1
  163. package/components/toolbar/GridToolbarQuickFilter.mjs +1 -1
  164. package/components/toolbarV8/GridToolbar.js +8 -3
  165. package/components/toolbarV8/GridToolbar.mjs +8 -3
  166. package/components/toolbarV8/Toolbar.js +1 -1
  167. package/components/toolbarV8/Toolbar.mjs +1 -1
  168. package/components/toolbarV8/ToolbarButton.js +1 -1
  169. package/components/toolbarV8/ToolbarButton.mjs +1 -1
  170. package/components/virtualization/GridVirtualScrollbar.js +8 -1
  171. package/components/virtualization/GridVirtualScrollbar.mjs +8 -1
  172. package/components/virtualization/GridVirtualScroller.js +12 -0
  173. package/components/virtualization/GridVirtualScroller.mjs +12 -0
  174. package/constants/cssVariables.d.mts +3 -0
  175. package/constants/cssVariables.d.ts +3 -0
  176. package/constants/cssVariables.js +2 -1
  177. package/constants/cssVariables.mjs +2 -1
  178. package/constants/gridClasses.d.mts +48 -0
  179. package/constants/gridClasses.d.ts +48 -0
  180. package/constants/gridClasses.js +1 -1
  181. package/constants/gridClasses.mjs +1 -1
  182. package/hooks/core/useGridProps.js +5 -3
  183. package/hooks/core/useGridProps.mjs +5 -3
  184. package/hooks/features/columns/gridColumnsUtils.js +18 -10
  185. package/hooks/features/columns/gridColumnsUtils.mjs +19 -11
  186. package/hooks/features/columns/useGridColumns.js +11 -0
  187. package/hooks/features/columns/useGridColumns.mjs +11 -0
  188. package/hooks/features/dataSource/useGridDataSourceBase.js +2 -2
  189. package/hooks/features/dataSource/useGridDataSourceBase.mjs +2 -2
  190. package/hooks/features/editing/useGridCellEditing.js +1 -1
  191. package/hooks/features/editing/useGridCellEditing.mjs +1 -1
  192. package/hooks/features/editing/useGridRowEditing.js +1 -1
  193. package/hooks/features/editing/useGridRowEditing.mjs +1 -1
  194. package/hooks/features/export/serializers/csvSerializer.js +3 -1
  195. package/hooks/features/export/serializers/csvSerializer.mjs +3 -1
  196. package/hooks/features/filter/gridFilterUtils.js +5 -3
  197. package/hooks/features/filter/gridFilterUtils.mjs +5 -3
  198. package/hooks/features/listView/useGridListView.js +1 -1
  199. package/hooks/features/listView/useGridListView.mjs +1 -1
  200. package/hooks/features/sorting/gridSortingUtils.js +3 -1
  201. package/hooks/features/sorting/gridSortingUtils.mjs +3 -1
  202. package/hooks/utils/useGridSelector.js +27 -24
  203. package/hooks/utils/useGridSelector.mjs +26 -24
  204. package/index.js +1 -1
  205. package/index.mjs +1 -1
  206. package/internals/index.d.mts +9 -4
  207. package/internals/index.d.ts +9 -4
  208. package/internals/index.js +62 -2
  209. package/internals/index.mjs +8 -4
  210. package/internals/utils/propValidation.js +3 -0
  211. package/internals/utils/propValidation.mjs +3 -0
  212. package/material/augmentation.d.mts +4 -0
  213. package/material/augmentation.d.ts +4 -0
  214. package/material/index.js +42 -26
  215. package/material/index.mjs +42 -26
  216. package/material/variables.js +2 -1
  217. package/material/variables.mjs +2 -1
  218. package/models/colDef/gridColDef.d.mts +35 -3
  219. package/models/colDef/gridColDef.d.ts +35 -3
  220. package/models/colDef/gridColType.d.mts +1 -0
  221. package/models/colDef/gridColType.d.ts +1 -0
  222. package/models/colDef/gridColumnTypesRecord.d.mts +1 -1
  223. package/models/colDef/gridColumnTypesRecord.d.ts +1 -1
  224. package/models/colDef/index.d.mts +1 -1
  225. package/models/colDef/index.d.ts +1 -1
  226. package/models/gridBaseSlots.d.mts +46 -0
  227. package/models/gridBaseSlots.d.ts +46 -0
  228. package/models/gridSlotsComponent.d.mts +5 -0
  229. package/models/gridSlotsComponent.d.ts +5 -0
  230. package/models/gridSlotsComponentsProps.d.mts +3 -1
  231. package/models/gridSlotsComponentsProps.d.ts +3 -1
  232. package/models/gridStateCommunity.d.mts +1 -1
  233. package/models/gridStateCommunity.d.ts +1 -1
  234. package/package.json +7 -4
@@ -125,11 +125,12 @@ export const GridRootStyles = styled('div', {
125
125
  minHeight: 0,
126
126
  flexDirection: 'column',
127
127
  overflow: 'hidden',
128
- overflowAnchor: 'none',
129
- // Keep the same scrolling position
130
128
  transform: 'translate(0, 0)',
131
129
  // Create a stacking context to keep scrollbars from showing on top
132
130
 
131
+ [`& .${c.virtualScroller}`]: {
132
+ overflowAnchor: 'none' // Keep the same scrolling position
133
+ },
133
134
  // Use `css` tagged template so the ignore-comment remains a sibling of the
134
135
  // `:first-child` rule in the stylis AST. Previously, the comment was embedded
135
136
  // in the object-key selector, which got separated from the rule during
@@ -169,6 +170,16 @@ export const GridRootStyles = styled('div', {
169
170
  [`& .${c['columnHeader--filter']}`]: {
170
171
  flex: 'none !important',
171
172
  width: 'unset !important'
173
+ },
174
+ [`& .${c.multiSelectCell}`]: {
175
+ width: 'max-content',
176
+ overflow: 'visible'
177
+ },
178
+ [`& .${c['multiSelectCellChip--hidden']}`]: {
179
+ display: 'inline-flex'
180
+ },
181
+ [`& .${c.multiSelectCellOverflow}`]: {
182
+ display: 'none'
172
183
  }
173
184
  },
174
185
  [`&.${c.withSidePanel}`]: {
@@ -517,6 +528,25 @@ export const GridRootStyles = styled('div', {
517
528
  whiteSpace: 'initial',
518
529
  lineHeight: 'inherit'
519
530
  },
531
+ [`& .${c['row--dynamicHeight']}`]: {
532
+ [`& .${c.multiSelectCell}, .${c.editMultiSelectCell}`]: {
533
+ flexWrap: 'wrap'
534
+ }
535
+ },
536
+ [`& .${c.cell}[aria-rowspan]:not([aria-rowspan="1"])`]: {
537
+ [`& .${c.multiSelectCell}`]: {
538
+ alignItems: 'flex-start',
539
+ alignContent: 'flex-start',
540
+ flexWrap: 'wrap',
541
+ paddingTop: 8
542
+ },
543
+ [`& .${c['multiSelectCellChip--hidden']}`]: {
544
+ display: 'inline-flex'
545
+ },
546
+ [`& .${c.multiSelectCellOverflow}`]: {
547
+ display: 'none'
548
+ }
549
+ },
520
550
  [`& .${c.cellEmpty}`]: {
521
551
  flex: 1,
522
552
  padding: 0,
@@ -66,7 +66,7 @@ const GridToolbarContainer = exports.GridToolbarContainer = (0, _forwardRef.forw
66
66
  }));
67
67
  });
68
68
  if (process.env.NODE_ENV !== "production") GridToolbarContainer.displayName = "GridToolbarContainer";
69
- process.env.NODE_ENV !== "production" ? GridToolbarContainer.propTypes = {
69
+ process.env.NODE_ENV !== "production" ? GridToolbarContainer.propTypes /* remove-proptypes */ = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
72
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -59,7 +59,7 @@ const GridToolbarContainer = forwardRef(function GridToolbarContainer(props, ref
59
59
  }));
60
60
  });
61
61
  if (process.env.NODE_ENV !== "production") GridToolbarContainer.displayName = "GridToolbarContainer";
62
- process.env.NODE_ENV !== "production" ? GridToolbarContainer.propTypes = {
62
+ process.env.NODE_ENV !== "production" ? GridToolbarContainer.propTypes /* remove-proptypes */ = {
63
63
  // ----------------------------- Warning --------------------------------
64
64
  // | These PropTypes are generated from the TypeScript type definitions |
65
65
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -51,7 +51,7 @@ const ExportCsv = exports.ExportCsv = (0, _forwardRef.forwardRef)(function Expor
51
51
  });
52
52
  });
53
53
  if (process.env.NODE_ENV !== "production") ExportCsv.displayName = "ExportCsv";
54
- process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
54
+ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes /* remove-proptypes */ = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
57
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -43,7 +43,7 @@ const ExportCsv = forwardRef(function ExportCsv(props, ref) {
43
43
  });
44
44
  });
45
45
  if (process.env.NODE_ENV !== "production") ExportCsv.displayName = "ExportCsv";
46
- process.env.NODE_ENV !== "production" ? ExportCsv.propTypes = {
46
+ process.env.NODE_ENV !== "production" ? ExportCsv.propTypes /* remove-proptypes */ = {
47
47
  // ----------------------------- Warning --------------------------------
48
48
  // | These PropTypes are generated from the TypeScript type definitions |
49
49
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -51,7 +51,7 @@ const ExportPrint = exports.ExportPrint = (0, _forwardRef.forwardRef)(function E
51
51
  });
52
52
  });
53
53
  if (process.env.NODE_ENV !== "production") ExportPrint.displayName = "ExportPrint";
54
- process.env.NODE_ENV !== "production" ? ExportPrint.propTypes = {
54
+ process.env.NODE_ENV !== "production" ? ExportPrint.propTypes /* remove-proptypes */ = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
57
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -43,7 +43,7 @@ const ExportPrint = forwardRef(function ExportPrint(props, ref) {
43
43
  });
44
44
  });
45
45
  if (process.env.NODE_ENV !== "production") ExportPrint.displayName = "ExportPrint";
46
- process.env.NODE_ENV !== "production" ? ExportPrint.propTypes = {
46
+ process.env.NODE_ENV !== "production" ? ExportPrint.propTypes /* remove-proptypes */ = {
47
47
  // ----------------------------- Warning --------------------------------
48
48
  // | These PropTypes are generated from the TypeScript type definitions |
49
49
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -87,7 +87,7 @@ const FilterPanelTrigger = exports.FilterPanelTrigger = (0, _forwardRef.forwardR
87
87
  });
88
88
  });
89
89
  if (process.env.NODE_ENV !== "production") FilterPanelTrigger.displayName = "FilterPanelTrigger";
90
- process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes = {
90
+ process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes /* remove-proptypes */ = {
91
91
  // ----------------------------- Warning --------------------------------
92
92
  // | These PropTypes are generated from the TypeScript type definitions |
93
93
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -79,7 +79,7 @@ const FilterPanelTrigger = forwardRef(function FilterPanelTrigger(props, ref) {
79
79
  });
80
80
  });
81
81
  if (process.env.NODE_ENV !== "production") FilterPanelTrigger.displayName = "FilterPanelTrigger";
82
- process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes = {
82
+ process.env.NODE_ENV !== "production" ? FilterPanelTrigger.propTypes /* remove-proptypes */ = {
83
83
  // ----------------------------- Warning --------------------------------
84
84
  // | These PropTypes are generated from the TypeScript type definitions |
85
85
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -101,7 +101,7 @@ function GridMenu(props) {
101
101
  children: children
102
102
  }));
103
103
  }
104
- process.env.NODE_ENV !== "production" ? GridMenu.propTypes = {
104
+ process.env.NODE_ENV !== "production" ? GridMenu.propTypes /* remove-proptypes */ = {
105
105
  // ----------------------------- Warning --------------------------------
106
106
  // | These PropTypes are generated from the TypeScript type definitions |
107
107
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -94,7 +94,7 @@ function GridMenu(props) {
94
94
  children: children
95
95
  }));
96
96
  }
97
- process.env.NODE_ENV !== "production" ? GridMenu.propTypes = {
97
+ process.env.NODE_ENV !== "production" ? GridMenu.propTypes /* remove-proptypes */ = {
98
98
  // ----------------------------- Warning --------------------------------
99
99
  // | These PropTypes are generated from the TypeScript type definitions |
100
100
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -54,7 +54,7 @@ function GridColumnHeaderMenu({
54
54
  }, contentComponentProps))
55
55
  });
56
56
  }
57
- process.env.NODE_ENV !== "production" ? GridColumnHeaderMenu.propTypes = {
57
+ process.env.NODE_ENV !== "production" ? GridColumnHeaderMenu.propTypes /* remove-proptypes */ = {
58
58
  // ----------------------------- Warning --------------------------------
59
59
  // | These PropTypes are generated from the TypeScript type definitions |
60
60
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -46,7 +46,7 @@ function GridColumnHeaderMenu({
46
46
  }, contentComponentProps))
47
47
  });
48
48
  }
49
- process.env.NODE_ENV !== "production" ? GridColumnHeaderMenu.propTypes = {
49
+ process.env.NODE_ENV !== "production" ? GridColumnHeaderMenu.propTypes /* remove-proptypes */ = {
50
50
  // ----------------------------- Warning --------------------------------
51
51
  // | These PropTypes are generated from the TypeScript type definitions |
52
52
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -53,7 +53,7 @@ const GridGenericColumnMenu = exports.GridGenericColumnMenu = (0, _forwardRef.fo
53
53
  }));
54
54
  });
55
55
  if (process.env.NODE_ENV !== "production") GridGenericColumnMenu.displayName = "GridGenericColumnMenu";
56
- process.env.NODE_ENV !== "production" ? GridGenericColumnMenu.propTypes = {
56
+ process.env.NODE_ENV !== "production" ? GridGenericColumnMenu.propTypes /* remove-proptypes */ = {
57
57
  // ----------------------------- Warning --------------------------------
58
58
  // | These PropTypes are generated from the TypeScript type definitions |
59
59
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -95,7 +95,7 @@ const GridColumnMenu = exports.GridColumnMenu = (0, _forwardRef.forwardRef)(func
95
95
  if (process.env.NODE_ENV !== "production") GridColumnMenu.displayName = "GridColumnMenu";
96
96
  GridColumnMenu.defaultSlots = GRID_COLUMN_MENU_SLOTS;
97
97
  GridColumnMenu.defaultSlotProps = GRID_COLUMN_MENU_SLOT_PROPS;
98
- process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes = {
98
+ process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes /* remove-proptypes */ = {
99
99
  // ----------------------------- Warning --------------------------------
100
100
  // | These PropTypes are generated from the TypeScript type definitions |
101
101
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -47,7 +47,7 @@ const GridGenericColumnMenu = forwardRef(function GridGenericColumnMenu(props, r
47
47
  }));
48
48
  });
49
49
  if (process.env.NODE_ENV !== "production") GridGenericColumnMenu.displayName = "GridGenericColumnMenu";
50
- process.env.NODE_ENV !== "production" ? GridGenericColumnMenu.propTypes = {
50
+ process.env.NODE_ENV !== "production" ? GridGenericColumnMenu.propTypes /* remove-proptypes */ = {
51
51
  // ----------------------------- Warning --------------------------------
52
52
  // | These PropTypes are generated from the TypeScript type definitions |
53
53
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -89,7 +89,7 @@ const GridColumnMenu = forwardRef(function GridColumnMenu(props, ref) {
89
89
  if (process.env.NODE_ENV !== "production") GridColumnMenu.displayName = "GridColumnMenu";
90
90
  GridColumnMenu.defaultSlots = GRID_COLUMN_MENU_SLOTS;
91
91
  GridColumnMenu.defaultSlotProps = GRID_COLUMN_MENU_SLOT_PROPS;
92
- process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes = {
92
+ process.env.NODE_ENV !== "production" ? GridColumnMenu.propTypes /* remove-proptypes */ = {
93
93
  // ----------------------------- Warning --------------------------------
94
94
  // | These PropTypes are generated from the TypeScript type definitions |
95
95
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -65,7 +65,7 @@ const GridColumnMenuContainer = exports.GridColumnMenuContainer = (0, _forwardRe
65
65
  }));
66
66
  });
67
67
  if (process.env.NODE_ENV !== "production") GridColumnMenuContainer.displayName = "GridColumnMenuContainer";
68
- process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes = {
68
+ process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes /* remove-proptypes */ = {
69
69
  // ----------------------------- Warning --------------------------------
70
70
  // | These PropTypes are generated from the TypeScript type definitions |
71
71
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -58,7 +58,7 @@ const GridColumnMenuContainer = forwardRef(function GridColumnMenuContainer(prop
58
58
  }));
59
59
  });
60
60
  if (process.env.NODE_ENV !== "production") GridColumnMenuContainer.displayName = "GridColumnMenuContainer";
61
- process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes = {
61
+ process.env.NODE_ENV !== "production" ? GridColumnMenuContainer.propTypes /* remove-proptypes */ = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
64
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -17,7 +17,7 @@ function GridColumnMenuColumnsItem(props) {
17
17
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GridColumnMenuHideItem.GridColumnMenuHideItem, (0, _extends2.default)({}, props)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridColumnMenuManageItem.GridColumnMenuManageItem, (0, _extends2.default)({}, props))]
18
18
  });
19
19
  }
20
- process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes = {
20
+ process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes /* remove-proptypes */ = {
21
21
  // ----------------------------- Warning --------------------------------
22
22
  // | These PropTypes are generated from the TypeScript type definitions |
23
23
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -9,7 +9,7 @@ function GridColumnMenuColumnsItem(props) {
9
9
  children: [/*#__PURE__*/_jsx(GridColumnMenuHideItem, _extends({}, props)), /*#__PURE__*/_jsx(GridColumnMenuManageItem, _extends({}, props))]
10
10
  });
11
11
  }
12
- process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes = {
12
+ process.env.NODE_ENV !== "production" ? GridColumnMenuColumnsItem.propTypes /* remove-proptypes */ = {
13
13
  // ----------------------------- Warning --------------------------------
14
14
  // | These PropTypes are generated from the TypeScript type definitions |
15
15
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -33,7 +33,7 @@ function GridColumnMenuFilterItem(props) {
33
33
  children: apiRef.current.getLocaleText('columnMenuFilter')
34
34
  });
35
35
  }
36
- process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes = {
36
+ process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes /* remove-proptypes */ = {
37
37
  // ----------------------------- Warning --------------------------------
38
38
  // | These PropTypes are generated from the TypeScript type definitions |
39
39
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -25,7 +25,7 @@ function GridColumnMenuFilterItem(props) {
25
25
  children: apiRef.current.getLocaleText('columnMenuFilter')
26
26
  });
27
27
  }
28
- process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes = {
28
+ process.env.NODE_ENV !== "production" ? GridColumnMenuFilterItem.propTypes /* remove-proptypes */ = {
29
29
  // ----------------------------- Warning --------------------------------
30
30
  // | These PropTypes are generated from the TypeScript type definitions |
31
31
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -50,7 +50,7 @@ function GridColumnMenuHideItem(props) {
50
50
  children: apiRef.current.getLocaleText('columnMenuHideColumn')
51
51
  });
52
52
  }
53
- process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes = {
53
+ process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes /* remove-proptypes */ = {
54
54
  // ----------------------------- Warning --------------------------------
55
55
  // | These PropTypes are generated from the TypeScript type definitions |
56
56
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -42,7 +42,7 @@ function GridColumnMenuHideItem(props) {
42
42
  children: apiRef.current.getLocaleText('columnMenuHideColumn')
43
43
  });
44
44
  }
45
- process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes = {
45
+ process.env.NODE_ENV !== "production" ? GridColumnMenuHideItem.propTypes /* remove-proptypes */ = {
46
46
  // ----------------------------- Warning --------------------------------
47
47
  // | These PropTypes are generated from the TypeScript type definitions |
48
48
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -33,7 +33,7 @@ function GridColumnMenuManageItem(props) {
33
33
  children: apiRef.current.getLocaleText('columnMenuManageColumns')
34
34
  });
35
35
  }
36
- process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes = {
36
+ process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes /* remove-proptypes */ = {
37
37
  // ----------------------------- Warning --------------------------------
38
38
  // | These PropTypes are generated from the TypeScript type definitions |
39
39
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -25,7 +25,7 @@ function GridColumnMenuManageItem(props) {
25
25
  children: apiRef.current.getLocaleText('columnMenuManageColumns')
26
26
  });
27
27
  }
28
- process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes = {
28
+ process.env.NODE_ENV !== "production" ? GridColumnMenuManageItem.propTypes /* remove-proptypes */ = {
29
29
  // ----------------------------- Warning --------------------------------
30
30
  // | These PropTypes are generated from the TypeScript type definitions |
31
31
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -66,7 +66,7 @@ function GridColumnMenuSortItem(props) {
66
66
  }) : null]
67
67
  });
68
68
  }
69
- process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes = {
69
+ process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes /* remove-proptypes */ = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
72
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -58,7 +58,7 @@ function GridColumnMenuSortItem(props) {
58
58
  }) : null]
59
59
  });
60
60
  }
61
- process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes = {
61
+ process.env.NODE_ENV !== "production" ? GridColumnMenuSortItem.propTypes /* remove-proptypes */ = {
62
62
  // ----------------------------- Warning --------------------------------
63
63
  // | These PropTypes are generated from the TypeScript type definitions |
64
64
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -97,7 +97,7 @@ const GridPanel = exports.GridPanel = (0, _forwardRef.forwardRef)((props, ref) =
97
97
  }));
98
98
  });
99
99
  if (process.env.NODE_ENV !== "production") GridPanel.displayName = "GridPanel";
100
- process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
100
+ process.env.NODE_ENV !== "production" ? GridPanel.propTypes /* remove-proptypes */ = {
101
101
  // ----------------------------- Warning --------------------------------
102
102
  // | These PropTypes are generated from the TypeScript type definitions |
103
103
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -90,7 +90,7 @@ const GridPanel = forwardRef((props, ref) => {
90
90
  }));
91
91
  });
92
92
  if (process.env.NODE_ENV !== "production") GridPanel.displayName = "GridPanel";
93
- process.env.NODE_ENV !== "production" ? GridPanel.propTypes = {
93
+ process.env.NODE_ENV !== "production" ? GridPanel.propTypes /* remove-proptypes */ = {
94
94
  // ----------------------------- Warning --------------------------------
95
95
  // | These PropTypes are generated from the TypeScript type definitions |
96
96
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -51,7 +51,7 @@ function GridPanelContent(props) {
51
51
  ownerState: rootProps
52
52
  }, other));
53
53
  }
54
- process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes = {
54
+ process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes /* remove-proptypes */ = {
55
55
  // ----------------------------- Warning --------------------------------
56
56
  // | These PropTypes are generated from the TypeScript type definitions |
57
57
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -43,7 +43,7 @@ function GridPanelContent(props) {
43
43
  ownerState: rootProps
44
44
  }, other));
45
45
  }
46
- process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes = {
46
+ process.env.NODE_ENV !== "production" ? GridPanelContent.propTypes /* remove-proptypes */ = {
47
47
  // ----------------------------- Warning --------------------------------
48
48
  // | These PropTypes are generated from the TypeScript type definitions |
49
49
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -48,7 +48,7 @@ function GridPanelFooter(props) {
48
48
  ownerState: rootProps
49
49
  }, other));
50
50
  }
51
- process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes = {
51
+ process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes /* remove-proptypes */ = {
52
52
  // ----------------------------- Warning --------------------------------
53
53
  // | These PropTypes are generated from the TypeScript type definitions |
54
54
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -40,7 +40,7 @@ function GridPanelFooter(props) {
40
40
  ownerState: rootProps
41
41
  }, other));
42
42
  }
43
- process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes = {
43
+ process.env.NODE_ENV !== "production" ? GridPanelFooter.propTypes /* remove-proptypes */ = {
44
44
  // ----------------------------- Warning --------------------------------
45
45
  // | These PropTypes are generated from the TypeScript type definitions |
46
46
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -49,7 +49,7 @@ function GridPanelHeader(props) {
49
49
  ownerState: rootProps
50
50
  }, other));
51
51
  }
52
- process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes = {
52
+ process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes /* remove-proptypes */ = {
53
53
  // ----------------------------- Warning --------------------------------
54
54
  // | These PropTypes are generated from the TypeScript type definitions |
55
55
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -41,7 +41,7 @@ function GridPanelHeader(props) {
41
41
  ownerState: rootProps
42
42
  }, other));
43
43
  }
44
- process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes = {
44
+ process.env.NODE_ENV !== "production" ? GridPanelHeader.propTypes /* remove-proptypes */ = {
45
45
  // ----------------------------- Warning --------------------------------
46
46
  // | These PropTypes are generated from the TypeScript type definitions |
47
47
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -372,7 +372,7 @@ const GridFilterForm = exports.GridFilterForm = (0, _forwardRef.forwardRef)(func
372
372
  }));
373
373
  });
374
374
  if (process.env.NODE_ENV !== "production") GridFilterForm.displayName = "GridFilterForm";
375
- process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
375
+ process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes /* remove-proptypes */ = {
376
376
  // ----------------------------- Warning --------------------------------
377
377
  // | These PropTypes are generated from the TypeScript type definitions |
378
378
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -365,7 +365,7 @@ const GridFilterForm = forwardRef(function GridFilterForm(props, ref) {
365
365
  }));
366
366
  });
367
367
  if (process.env.NODE_ENV !== "production") GridFilterForm.displayName = "GridFilterForm";
368
- process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes = {
368
+ process.env.NODE_ENV !== "production" ? GridFilterForm.propTypes /* remove-proptypes */ = {
369
369
  // ----------------------------- Warning --------------------------------
370
370
  // | These PropTypes are generated from the TypeScript type definitions |
371
371
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -90,7 +90,7 @@ function sanitizeFilterItemValue(value) {
90
90
  }
91
91
  return undefined;
92
92
  }
93
- process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes = {
93
+ process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes /* remove-proptypes */ = {
94
94
  // ----------------------------- Warning --------------------------------
95
95
  // | These PropTypes are generated from the TypeScript type definitions |
96
96
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -82,7 +82,7 @@ export function sanitizeFilterItemValue(value) {
82
82
  }
83
83
  return undefined;
84
84
  }
85
- process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes = {
85
+ process.env.NODE_ENV !== "production" ? GridFilterInputBoolean.propTypes /* remove-proptypes */ = {
86
86
  // ----------------------------- Warning --------------------------------
87
87
  // | These PropTypes are generated from the TypeScript type definitions |
88
88
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -100,7 +100,7 @@ function GridFilterInputDate(props) {
100
100
  }, rootProps.slotProps?.baseTextField, other, slotProps?.root)), headerFilterMenu, clearButton]
101
101
  });
102
102
  }
103
- process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
103
+ process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes /* remove-proptypes */ = {
104
104
  // ----------------------------- Warning --------------------------------
105
105
  // | These PropTypes are generated from the TypeScript type definitions |
106
106
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -93,7 +93,7 @@ function GridFilterInputDate(props) {
93
93
  }, rootProps.slotProps?.baseTextField, other, slotProps?.root)), headerFilterMenu, clearButton]
94
94
  });
95
95
  }
96
- process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
96
+ process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes /* remove-proptypes */ = {
97
97
  // ----------------------------- Warning --------------------------------
98
98
  // | These PropTypes are generated from the TypeScript type definitions |
99
99
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -77,7 +77,7 @@ function GridFilterInputMultipleSingleSelect(props) {
77
77
  }
78
78
  }, other, slotProps?.root));
79
79
  }
80
- process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
80
+ process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes /* remove-proptypes */ = {
81
81
  // ----------------------------- Warning --------------------------------
82
82
  // | These PropTypes are generated from the TypeScript type definitions |
83
83
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -69,7 +69,7 @@ function GridFilterInputMultipleSingleSelect(props) {
69
69
  }
70
70
  }, other, slotProps?.root));
71
71
  }
72
- process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
72
+ process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes /* remove-proptypes */ = {
73
73
  // ----------------------------- Warning --------------------------------
74
74
  // | These PropTypes are generated from the TypeScript type definitions |
75
75
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -66,7 +66,7 @@ function GridFilterInputMultipleValue(props) {
66
66
  }
67
67
  }, other, slotProps?.root));
68
68
  }
69
- process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
69
+ process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes /* remove-proptypes */ = {
70
70
  // ----------------------------- Warning --------------------------------
71
71
  // | These PropTypes are generated from the TypeScript type definitions |
72
72
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -59,7 +59,7 @@ function GridFilterInputMultipleValue(props) {
59
59
  }
60
60
  }, other, slotProps?.root));
61
61
  }
62
- process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
62
+ process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes /* remove-proptypes */ = {
63
63
  // ----------------------------- Warning --------------------------------
64
64
  // | These PropTypes are generated from the TypeScript type definitions |
65
65
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -64,10 +64,8 @@ function GridFilterInputSingleSelect(props) {
64
64
  return (0, _filterPanelUtils.getValueOptions)(resolvedColumn);
65
65
  }, [resolvedColumn]);
66
66
  const onFilterChange = React.useCallback(event => {
67
- let value = event.target.value;
68
-
69
- // NativeSelect casts the value to a string.
70
- value = (0, _filterPanelUtils.getValueFromValueOptions)(value, currentValueOptions, getOptionValue);
67
+ // NativeSelect casts the value to a string, convert it back to the original type.
68
+ const value = (0, _filterPanelUtils.getValueFromValueOptions)(event.target.value, currentValueOptions, getOptionValue);
71
69
  applyValue((0, _extends2.default)({}, item, {
72
70
  value
73
71
  }));
@@ -105,7 +103,7 @@ function GridFilterInputSingleSelect(props) {
105
103
  })), headerFilterMenu, clearButton]
106
104
  });
107
105
  }
108
- process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
106
+ process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes /* remove-proptypes */ = {
109
107
  // ----------------------------- Warning --------------------------------
110
108
  // | These PropTypes are generated from the TypeScript type definitions |
111
109
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -56,10 +56,8 @@ function GridFilterInputSingleSelect(props) {
56
56
  return getValueOptions(resolvedColumn);
57
57
  }, [resolvedColumn]);
58
58
  const onFilterChange = React.useCallback(event => {
59
- let value = event.target.value;
60
-
61
- // NativeSelect casts the value to a string.
62
- value = getValueFromValueOptions(value, currentValueOptions, getOptionValue);
59
+ // NativeSelect casts the value to a string, convert it back to the original type.
60
+ const value = getValueFromValueOptions(event.target.value, currentValueOptions, getOptionValue);
63
61
  applyValue(_extends({}, item, {
64
62
  value
65
63
  }));
@@ -97,7 +95,7 @@ function GridFilterInputSingleSelect(props) {
97
95
  })), headerFilterMenu, clearButton]
98
96
  });
99
97
  }
100
- process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
98
+ process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes /* remove-proptypes */ = {
101
99
  // ----------------------------- Warning --------------------------------
102
100
  // | These PropTypes are generated from the TypeScript type definitions |
103
101
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -86,7 +86,7 @@ function sanitizeFilterItemValue(value) {
86
86
  }
87
87
  return String(value);
88
88
  }
89
- process.env.NODE_ENV !== "production" ? GridFilterInputValue.propTypes = {
89
+ process.env.NODE_ENV !== "production" ? GridFilterInputValue.propTypes /* remove-proptypes */ = {
90
90
  // ----------------------------- Warning --------------------------------
91
91
  // | These PropTypes are generated from the TypeScript type definitions |
92
92
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -79,7 +79,7 @@ function sanitizeFilterItemValue(value) {
79
79
  }
80
80
  return String(value);
81
81
  }
82
- process.env.NODE_ENV !== "production" ? GridFilterInputValue.propTypes = {
82
+ process.env.NODE_ENV !== "production" ? GridFilterInputValue.propTypes /* remove-proptypes */ = {
83
83
  // ----------------------------- Warning --------------------------------
84
84
  // | These PropTypes are generated from the TypeScript type definitions |
85
85
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -195,7 +195,7 @@ const GridFilterPanel = exports.GridFilterPanel = (0, _forwardRef.forwardRef)(fu
195
195
  }));
196
196
  });
197
197
  if (process.env.NODE_ENV !== "production") GridFilterPanel.displayName = "GridFilterPanel";
198
- process.env.NODE_ENV !== "production" ? GridFilterPanel.propTypes = {
198
+ process.env.NODE_ENV !== "production" ? GridFilterPanel.propTypes /* remove-proptypes */ = {
199
199
  // ----------------------------- Warning --------------------------------
200
200
  // | These PropTypes are generated from the TypeScript type definitions |
201
201
  // | To update them edit the TypeScript types and run "pnpm proptypes" |