@mui/x-data-grid 8.0.0-alpha.0 → 8.0.0-alpha.10

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 (762) hide show
  1. package/CHANGELOG.md +2215 -119
  2. package/DataGrid/DataGrid.js +20 -38
  3. package/DataGrid/useDataGridComponent.d.ts +2 -1
  4. package/DataGrid/useDataGridComponent.js +1 -1
  5. package/DataGrid/useDataGridProps.js +3 -3
  6. package/README.md +3 -3
  7. package/colDef/gridDateOperators.d.ts +2 -1
  8. package/colDef/gridNumericOperators.d.ts +4 -1
  9. package/components/GridApiContext.js +2 -0
  10. package/components/GridColumnHeaders.d.ts +1 -1
  11. package/components/GridColumnHeaders.js +4 -4
  12. package/components/GridConfigurationContext.js +2 -0
  13. package/components/GridFooter.d.ts +2 -1
  14. package/components/GridFooter.js +4 -4
  15. package/components/GridHeaders.js +2 -2
  16. package/components/GridLoadingOverlay.d.ts +3 -3
  17. package/components/GridLoadingOverlay.js +14 -12
  18. package/components/GridNoResultsOverlay.d.ts +2 -1
  19. package/components/GridNoResultsOverlay.js +4 -4
  20. package/components/GridNoRowsOverlay.d.ts +2 -1
  21. package/components/GridNoRowsOverlay.js +4 -4
  22. package/components/GridPagination.d.ts +1 -1
  23. package/components/GridPagination.js +7 -4
  24. package/components/GridRow.d.ts +6 -11
  25. package/components/GridRow.js +55 -87
  26. package/components/GridRowCount.d.ts +1 -1
  27. package/components/GridRowCount.js +3 -2
  28. package/components/GridScrollArea.js +2 -0
  29. package/components/GridSelectedRowCount.d.ts +4 -1
  30. package/components/GridSelectedRowCount.js +3 -2
  31. package/components/GridSkeletonLoadingOverlay.d.ts +1 -1
  32. package/components/GridSkeletonLoadingOverlay.js +22 -21
  33. package/components/base/GridOverlays.d.ts +4 -3
  34. package/components/base/GridOverlays.js +2 -24
  35. package/components/base/index.d.ts +0 -1
  36. package/components/base/index.js +1 -2
  37. package/components/cell/GridActionsCell.js +8 -1
  38. package/components/cell/GridActionsCellItem.d.ts +17 -10
  39. package/components/cell/GridActionsCellItem.js +9 -8
  40. package/components/cell/GridCell.d.ts +19 -23
  41. package/components/cell/GridCell.js +52 -92
  42. package/components/cell/GridEditDateCell.js +1 -1
  43. package/components/cell/GridEditInputCell.d.ts +1 -1
  44. package/components/cell/GridEditInputCell.js +73 -4
  45. package/components/cell/GridEditSingleSelectCell.js +2 -2
  46. package/components/cell/GridSkeletonCell.js +1 -2
  47. package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
  48. package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
  49. package/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
  50. package/components/columnHeaders/GridColumnGroupHeader.d.ts +5 -5
  51. package/components/columnHeaders/GridColumnGroupHeader.js +7 -10
  52. package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +3 -3
  53. package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +20 -7
  54. package/components/columnHeaders/GridColumnHeaderItem.d.ts +5 -5
  55. package/components/columnHeaders/GridColumnHeaderItem.js +13 -12
  56. package/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
  57. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
  58. package/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
  59. package/components/columnHeaders/GridIconButtonContainer.d.ts +1 -1
  60. package/components/columnHeaders/GridIconButtonContainer.js +5 -3
  61. package/components/columnSelection/GridCellCheckboxRenderer.d.ts +2 -2
  62. package/components/columnSelection/GridCellCheckboxRenderer.js +11 -9
  63. package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
  64. package/components/columnSelection/GridHeaderCheckbox.js +17 -9
  65. package/components/columnsManagement/GridColumnsManagement.d.ts +2 -0
  66. package/components/columnsManagement/GridColumnsManagement.js +81 -11
  67. package/components/containers/GridFooterContainer.d.ts +1 -1
  68. package/components/containers/GridFooterContainer.js +5 -3
  69. package/components/containers/GridOverlay.d.ts +1 -1
  70. package/components/containers/GridOverlay.js +5 -3
  71. package/components/containers/GridRoot.d.ts +2 -2
  72. package/components/containers/GridRoot.js +18 -8
  73. package/components/containers/GridRootStyles.js +160 -50
  74. package/components/containers/GridToolbarContainer.d.ts +1 -1
  75. package/components/containers/GridToolbarContainer.js +3 -2
  76. package/components/menu/columnMenu/GridColumnMenu.d.ts +2 -2
  77. package/components/menu/columnMenu/GridColumnMenu.js +5 -5
  78. package/components/menu/columnMenu/GridColumnMenuContainer.d.ts +1 -1
  79. package/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
  80. package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +6 -11
  81. package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +6 -11
  82. package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +6 -11
  83. package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
  84. package/components/panel/GridColumnsPanel.js +1 -2
  85. package/components/panel/GridPanel.d.ts +2 -2
  86. package/components/panel/GridPanel.js +5 -3
  87. package/components/panel/GridPanelContent.js +7 -3
  88. package/components/panel/GridPanelFooter.d.ts +1 -1
  89. package/components/panel/GridPanelFooter.js +4 -3
  90. package/components/panel/GridPanelWrapper.d.ts +1 -1
  91. package/components/panel/GridPanelWrapper.js +5 -3
  92. package/components/panel/filterPanel/GridFilterForm.d.ts +1 -1
  93. package/components/panel/filterPanel/GridFilterForm.js +22 -18
  94. package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +4 -11
  95. package/components/panel/filterPanel/GridFilterInputBoolean.js +41 -31
  96. package/components/panel/filterPanel/GridFilterInputDate.d.ts +3 -9
  97. package/components/panel/filterPanel/GridFilterInputDate.js +50 -31
  98. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +3 -3
  99. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +49 -24
  100. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -3
  101. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +55 -33
  102. package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +3 -9
  103. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -25
  104. package/components/panel/filterPanel/GridFilterInputValue.d.ts +3 -9
  105. package/components/panel/filterPanel/GridFilterInputValue.js +63 -38
  106. package/components/panel/filterPanel/GridFilterPanel.d.ts +1 -1
  107. package/components/panel/filterPanel/GridFilterPanel.js +4 -4
  108. package/components/panel/filterPanel/index.d.ts +2 -2
  109. package/components/panel/filterPanel/index.js +1 -2
  110. package/components/toolbar/GridToolbar.d.ts +1 -1
  111. package/components/toolbar/GridToolbar.js +11 -5
  112. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  113. package/components/toolbar/GridToolbarColumnsButton.js +12 -6
  114. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  115. package/components/toolbar/GridToolbarDensitySelector.js +9 -11
  116. package/components/toolbar/GridToolbarExport.d.ts +1 -1
  117. package/components/toolbar/GridToolbarExport.js +2 -1
  118. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  119. package/components/toolbar/GridToolbarExportContainer.js +6 -6
  120. package/components/toolbar/GridToolbarFilterButton.d.ts +3 -1
  121. package/components/toolbar/GridToolbarFilterButton.js +20 -9
  122. package/components/toolbar/GridToolbarQuickFilter.d.ts +6 -2
  123. package/components/toolbar/GridToolbarQuickFilter.js +39 -31
  124. package/components/virtualization/GridMainContainer.d.ts +13 -1
  125. package/components/virtualization/GridMainContainer.js +14 -5
  126. package/components/virtualization/GridVirtualScrollbar.d.ts +5 -1
  127. package/components/virtualization/GridVirtualScrollbar.js +17 -17
  128. package/components/virtualization/GridVirtualScroller.js +27 -12
  129. package/components/virtualization/GridVirtualScrollerContent.d.ts +2 -0
  130. package/components/virtualization/GridVirtualScrollerContent.js +15 -6
  131. package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +2 -0
  132. package/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
  133. package/constants/dataGridPropsDefaultValues.js +2 -4
  134. package/constants/gridClasses.d.ts +36 -12
  135. package/constants/gridClasses.js +1 -1
  136. package/constants/localeTextConstants.js +12 -0
  137. package/context/GridContextProvider.d.ts +2 -1
  138. package/context/GridRootPropsContext.js +2 -0
  139. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +9 -2
  140. package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +2 -2
  141. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +2 -2
  142. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
  143. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +2 -2
  144. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
  145. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +25 -9
  146. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
  147. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +2 -2
  148. package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +5 -8
  149. package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
  150. package/hooks/core/useGridApiInitialization.d.ts +2 -2
  151. package/hooks/core/useGridApiInitialization.js +2 -2
  152. package/hooks/core/useGridInitialization.d.ts +2 -2
  153. package/hooks/core/useGridIsRtl.d.ts +2 -2
  154. package/hooks/core/useGridLocaleText.d.ts +2 -2
  155. package/hooks/core/useGridLoggerFactory.d.ts +2 -2
  156. package/hooks/core/useGridRefs.d.ts +2 -2
  157. package/hooks/core/useGridStateInitialization.d.ts +2 -2
  158. package/hooks/core/useGridStateInitialization.js +3 -3
  159. package/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
  160. package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +4 -4
  161. package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +2 -2
  162. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +5 -7
  163. package/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -69
  164. package/hooks/features/columnMenu/useGridColumnMenu.d.ts +2 -2
  165. package/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
  166. package/hooks/features/columnResize/columnResizeSelector.d.ts +1 -1
  167. package/hooks/features/columnResize/gridColumnResizeApi.d.ts +6 -0
  168. package/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  169. package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
  170. package/hooks/features/columnResize/useGridColumnResize.js +17 -10
  171. package/hooks/features/columns/gridColumnsSelector.d.ts +12 -12
  172. package/hooks/features/columns/gridColumnsUtils.d.ts +4 -4
  173. package/hooks/features/columns/gridColumnsUtils.js +2 -1
  174. package/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
  175. package/hooks/features/columns/useGridColumns.d.ts +2 -2
  176. package/hooks/features/columns/useGridColumns.js +7 -3
  177. package/hooks/features/density/densitySelector.d.ts +1 -1
  178. package/hooks/features/density/useGridDensity.d.ts +2 -2
  179. package/hooks/features/dimensions/gridDimensionsApi.d.ts +0 -4
  180. package/hooks/features/dimensions/useGridDimensions.d.ts +2 -2
  181. package/hooks/features/dimensions/useGridDimensions.js +11 -32
  182. package/hooks/features/editing/gridEditingSelectors.d.ts +6 -0
  183. package/hooks/features/editing/gridEditingSelectors.js +7 -1
  184. package/hooks/features/editing/useGridCellEditing.d.ts +2 -2
  185. package/hooks/features/editing/useGridCellEditing.js +4 -4
  186. package/hooks/features/editing/useGridEditing.d.ts +2 -2
  187. package/hooks/features/editing/useGridRowEditing.d.ts +2 -2
  188. package/hooks/features/editing/useGridRowEditing.js +7 -8
  189. package/hooks/features/events/useGridEvents.d.ts +2 -2
  190. package/hooks/features/export/serializers/csvSerializer.d.ts +2 -1
  191. package/hooks/features/export/useGridCsvExport.d.ts +2 -2
  192. package/hooks/features/export/useGridPrintExport.d.ts +2 -2
  193. package/hooks/features/export/useGridPrintExport.js +1 -1
  194. package/hooks/features/export/utils.d.ts +2 -2
  195. package/hooks/features/filter/gridFilterSelector.d.ts +17 -17
  196. package/hooks/features/filter/gridFilterSelector.js +6 -1
  197. package/hooks/features/filter/gridFilterUtils.d.ts +7 -7
  198. package/hooks/features/filter/gridFilterUtils.js +3 -3
  199. package/hooks/features/filter/useGridFilter.d.ts +2 -2
  200. package/hooks/features/filter/useGridFilter.js +1 -1
  201. package/hooks/features/focus/gridFocusStateSelector.d.ts +8 -8
  202. package/hooks/features/focus/useGridFocus.d.ts +2 -2
  203. package/hooks/features/focus/useGridFocus.js +3 -2
  204. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +3 -3
  205. package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +2 -2
  206. package/hooks/features/index.d.ts +1 -0
  207. package/hooks/features/index.js +1 -0
  208. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +2 -2
  209. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +24 -16
  210. package/hooks/features/keyboardNavigation/utils.d.ts +3 -4
  211. package/hooks/features/keyboardNavigation/utils.js +0 -5
  212. package/hooks/features/listView/gridListViewSelectors.d.ts +3 -1
  213. package/hooks/features/listView/gridListViewSelectors.js +3 -1
  214. package/hooks/features/listView/index.d.ts +1 -0
  215. package/hooks/features/listView/index.js +1 -0
  216. package/hooks/features/listView/useGridListView.d.ts +2 -2
  217. package/hooks/features/listView/useGridListView.js +2 -1
  218. package/hooks/features/overlays/useGridOverlays.d.ts +7 -4
  219. package/hooks/features/overlays/useGridOverlays.js +22 -2
  220. package/hooks/features/pagination/gridPaginationInterfaces.d.ts +3 -0
  221. package/hooks/features/pagination/gridPaginationSelector.d.ts +34 -9
  222. package/hooks/features/pagination/gridPaginationSelector.js +39 -1
  223. package/hooks/features/pagination/useGridPagination.d.ts +3 -3
  224. package/hooks/features/pagination/useGridPagination.js +5 -3
  225. package/hooks/features/pagination/useGridPaginationMeta.d.ts +2 -2
  226. package/hooks/features/pagination/useGridPaginationModel.d.ts +2 -2
  227. package/hooks/features/pagination/useGridPaginationModel.js +23 -1
  228. package/hooks/features/pagination/useGridRowCount.d.ts +2 -2
  229. package/hooks/features/preferencesPanel/gridPreferencePanelSelector.d.ts +1 -0
  230. package/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +8 -1
  231. package/hooks/features/preferencesPanel/index.d.ts +1 -1
  232. package/hooks/features/preferencesPanel/index.js +1 -1
  233. package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +2 -2
  234. package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
  235. package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +3 -3
  236. package/hooks/features/rowSelection/useGridRowSelection.d.ts +2 -2
  237. package/hooks/features/rowSelection/useGridRowSelection.js +8 -16
  238. package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +2 -2
  239. package/hooks/features/rowSelection/utils.d.ts +4 -3
  240. package/hooks/features/rowSelection/utils.js +2 -2
  241. package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
  242. package/hooks/features/rows/gridRowSpanningUtils.d.ts +2 -2
  243. package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -8
  244. package/hooks/features/rows/gridRowsSelector.d.ts +23 -13
  245. package/hooks/features/rows/gridRowsSelector.js +1 -2
  246. package/hooks/features/rows/gridRowsUtils.d.ts +4 -4
  247. package/hooks/features/rows/gridRowsUtils.js +0 -9
  248. package/hooks/features/rows/index.d.ts +1 -1
  249. package/hooks/features/rows/index.js +1 -1
  250. package/hooks/features/rows/useGridParamsApi.d.ts +2 -2
  251. package/hooks/features/rows/useGridParamsApi.js +33 -14
  252. package/hooks/features/rows/useGridRowSpanning.d.ts +2 -2
  253. package/hooks/features/rows/useGridRowSpanning.js +97 -86
  254. package/hooks/features/rows/useGridRows.d.ts +2 -2
  255. package/hooks/features/rows/useGridRows.js +23 -27
  256. package/hooks/features/rows/useGridRowsMeta.d.ts +2 -2
  257. package/hooks/features/rows/useGridRowsMeta.js +3 -2
  258. package/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
  259. package/hooks/features/scroll/useGridScroll.d.ts +2 -2
  260. package/hooks/features/sorting/gridSortingSelector.d.ts +10 -5
  261. package/hooks/features/sorting/gridSortingSelector.js +11 -0
  262. package/hooks/features/sorting/gridSortingUtils.d.ts +3 -3
  263. package/hooks/features/sorting/gridSortingUtils.js +2 -2
  264. package/hooks/features/sorting/index.d.ts +2 -1
  265. package/hooks/features/sorting/index.js +1 -1
  266. package/hooks/features/sorting/useGridSorting.d.ts +2 -2
  267. package/hooks/features/sorting/useGridSorting.js +1 -1
  268. package/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
  269. package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +6 -0
  270. package/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +33 -0
  271. package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +5 -5
  272. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +15 -6
  273. package/hooks/features/virtualization/useGridVirtualScroller.js +169 -94
  274. package/hooks/features/virtualization/useGridVirtualization.d.ts +2 -2
  275. package/hooks/utils/useGridApiContext.d.ts +2 -2
  276. package/hooks/utils/useGridApiEventHandler.d.ts +4 -4
  277. package/hooks/utils/useGridApiEventHandler.js +1 -1
  278. package/hooks/utils/useGridApiMethod.d.ts +2 -2
  279. package/hooks/utils/useGridApiRef.d.ts +2 -2
  280. package/hooks/utils/useGridApiRef.js +1 -1
  281. package/hooks/utils/useGridInitializeState.d.ts +3 -3
  282. package/hooks/utils/useGridLogger.d.ts +2 -2
  283. package/hooks/utils/useGridNativeEventListener.d.ts +2 -1
  284. package/hooks/utils/useGridPrivateApiContext.d.ts +2 -1
  285. package/hooks/utils/useGridSelector.d.ts +5 -7
  286. package/hooks/utils/useGridSelector.js +6 -44
  287. package/hooks/utils/useGridVisibleRows.d.ts +8 -6
  288. package/hooks/utils/useGridVisibleRows.js +5 -28
  289. package/index.js +1 -1
  290. package/internals/constants.d.ts +6 -0
  291. package/internals/constants.js +8 -1
  292. package/internals/index.d.ts +7 -4
  293. package/internals/index.js +5 -3
  294. package/internals/utils/attachPinnedStyle.d.ts +2 -0
  295. package/internals/utils/attachPinnedStyle.js +9 -0
  296. package/internals/utils/getPinnedCellOffset.d.ts +3 -3
  297. package/internals/utils/getPinnedCellOffset.js +6 -7
  298. package/internals/utils/index.d.ts +1 -1
  299. package/internals/utils/index.js +2 -2
  300. package/locales/arSD.js +14 -0
  301. package/locales/beBY.js +13 -0
  302. package/locales/bgBG.js +15 -0
  303. package/locales/csCZ.js +15 -0
  304. package/locales/daDK.js +15 -0
  305. package/locales/deDE.js +13 -0
  306. package/locales/elGR.js +14 -0
  307. package/locales/esES.js +17 -4
  308. package/locales/faIR.js +18 -4
  309. package/locales/fiFI.js +15 -0
  310. package/locales/frFR.js +15 -0
  311. package/locales/heIL.js +17 -4
  312. package/locales/hrHR.js +15 -0
  313. package/locales/huHU.js +15 -0
  314. package/locales/isIS.js +14 -0
  315. package/locales/itIT.js +15 -0
  316. package/locales/jaJP.js +15 -0
  317. package/locales/koKR.js +47 -37
  318. package/locales/nbNO.js +15 -0
  319. package/locales/nlNL.js +18 -4
  320. package/locales/nnNO.js +15 -0
  321. package/locales/plPL.js +15 -0
  322. package/locales/ptBR.js +13 -0
  323. package/locales/ptPT.js +13 -0
  324. package/locales/roRO.js +21 -9
  325. package/locales/ruRU.js +15 -0
  326. package/locales/skSK.js +14 -0
  327. package/locales/svSE.js +19 -5
  328. package/locales/trTR.js +15 -2
  329. package/locales/ukUA.js +14 -0
  330. package/locales/urPK.js +22 -9
  331. package/locales/viVN.js +15 -0
  332. package/locales/zhCN.js +17 -4
  333. package/locales/zhHK.js +14 -0
  334. package/locales/zhTW.js +14 -0
  335. package/material/index.js +58 -7
  336. package/models/api/gridApiCommon.d.ts +2 -2
  337. package/models/api/gridCoreApi.d.ts +7 -7
  338. package/models/api/gridDensityApi.d.ts +1 -1
  339. package/models/api/gridLocaleTextApi.d.ts +11 -0
  340. package/models/api/gridParamsApi.d.ts +29 -2
  341. package/models/api/gridStateApi.d.ts +1 -1
  342. package/models/api/index.d.ts +1 -1
  343. package/models/api/index.js +0 -1
  344. package/models/colDef/gridColDef.d.ts +38 -33
  345. package/models/controlStateItem.d.ts +2 -2
  346. package/models/events/gridEventLookup.d.ts +7 -1
  347. package/models/gridBaseSlots.d.ts +95 -0
  348. package/models/gridDataSource.d.ts +13 -13
  349. package/models/gridExport.d.ts +2 -2
  350. package/models/gridFilterInputComponent.d.ts +32 -0
  351. package/models/gridFilterOperator.d.ts +6 -4
  352. package/models/gridIconSlotsComponent.d.ts +5 -0
  353. package/models/gridSlotsComponent.d.ts +16 -1
  354. package/models/gridSlotsComponentsProps.d.ts +45 -9
  355. package/models/gridStateCommunity.d.ts +4 -0
  356. package/models/index.d.ts +1 -0
  357. package/models/props/DataGridProps.d.ts +12 -24
  358. package/modern/DataGrid/DataGrid.js +20 -38
  359. package/modern/DataGrid/useDataGridComponent.js +1 -1
  360. package/modern/DataGrid/useDataGridProps.js +3 -3
  361. package/modern/components/GridApiContext.js +2 -0
  362. package/modern/components/GridColumnHeaders.js +4 -4
  363. package/modern/components/GridConfigurationContext.js +2 -0
  364. package/modern/components/GridFooter.js +4 -4
  365. package/modern/components/GridHeaders.js +2 -2
  366. package/modern/components/GridLoadingOverlay.js +14 -12
  367. package/modern/components/GridNoResultsOverlay.js +4 -4
  368. package/modern/components/GridNoRowsOverlay.js +4 -4
  369. package/modern/components/GridPagination.js +7 -4
  370. package/modern/components/GridRow.js +55 -87
  371. package/modern/components/GridRowCount.js +3 -2
  372. package/modern/components/GridScrollArea.js +2 -0
  373. package/modern/components/GridSelectedRowCount.js +3 -2
  374. package/modern/components/GridSkeletonLoadingOverlay.js +22 -21
  375. package/modern/components/base/GridOverlays.js +2 -24
  376. package/modern/components/base/index.js +1 -2
  377. package/modern/components/cell/GridActionsCell.js +8 -1
  378. package/modern/components/cell/GridActionsCellItem.js +9 -8
  379. package/modern/components/cell/GridCell.js +52 -92
  380. package/modern/components/cell/GridEditDateCell.js +1 -1
  381. package/modern/components/cell/GridEditInputCell.js +73 -4
  382. package/modern/components/cell/GridEditSingleSelectCell.js +2 -2
  383. package/modern/components/cell/GridSkeletonCell.js +1 -2
  384. package/modern/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
  385. package/modern/components/columnHeaders/GridColumnGroupHeader.js +7 -10
  386. package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +20 -7
  387. package/modern/components/columnHeaders/GridColumnHeaderItem.js +13 -12
  388. package/modern/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
  389. package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
  390. package/modern/components/columnHeaders/GridIconButtonContainer.js +5 -3
  391. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +11 -9
  392. package/modern/components/columnSelection/GridHeaderCheckbox.js +17 -9
  393. package/modern/components/columnsManagement/GridColumnsManagement.js +81 -11
  394. package/modern/components/containers/GridFooterContainer.js +5 -3
  395. package/modern/components/containers/GridOverlay.js +5 -3
  396. package/modern/components/containers/GridRoot.js +18 -8
  397. package/modern/components/containers/GridRootStyles.js +160 -50
  398. package/modern/components/containers/GridToolbarContainer.js +3 -2
  399. package/modern/components/menu/columnMenu/GridColumnMenu.js +5 -5
  400. package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
  401. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +6 -11
  402. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +6 -11
  403. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +6 -11
  404. package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
  405. package/modern/components/panel/GridColumnsPanel.js +1 -2
  406. package/modern/components/panel/GridPanel.js +5 -3
  407. package/modern/components/panel/GridPanelContent.js +7 -3
  408. package/modern/components/panel/GridPanelFooter.js +4 -3
  409. package/modern/components/panel/GridPanelWrapper.js +5 -3
  410. package/modern/components/panel/filterPanel/GridFilterForm.js +22 -18
  411. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +41 -31
  412. package/modern/components/panel/filterPanel/GridFilterInputDate.js +50 -31
  413. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +49 -24
  414. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +55 -33
  415. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -25
  416. package/modern/components/panel/filterPanel/GridFilterInputValue.js +63 -38
  417. package/modern/components/panel/filterPanel/GridFilterPanel.js +4 -4
  418. package/modern/components/panel/filterPanel/index.js +1 -2
  419. package/modern/components/toolbar/GridToolbar.js +11 -5
  420. package/modern/components/toolbar/GridToolbarColumnsButton.js +12 -6
  421. package/modern/components/toolbar/GridToolbarDensitySelector.js +9 -11
  422. package/modern/components/toolbar/GridToolbarExport.js +2 -1
  423. package/modern/components/toolbar/GridToolbarExportContainer.js +6 -6
  424. package/modern/components/toolbar/GridToolbarFilterButton.js +20 -9
  425. package/modern/components/toolbar/GridToolbarQuickFilter.js +39 -31
  426. package/modern/components/virtualization/GridMainContainer.js +14 -5
  427. package/modern/components/virtualization/GridVirtualScrollbar.js +17 -17
  428. package/modern/components/virtualization/GridVirtualScroller.js +27 -12
  429. package/modern/components/virtualization/GridVirtualScrollerContent.js +15 -6
  430. package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
  431. package/modern/constants/dataGridPropsDefaultValues.js +2 -4
  432. package/modern/constants/gridClasses.js +1 -1
  433. package/modern/constants/localeTextConstants.js +12 -0
  434. package/modern/context/GridRootPropsContext.js +2 -0
  435. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
  436. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
  437. package/modern/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
  438. package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
  439. package/modern/hooks/core/useGridApiInitialization.js +2 -2
  440. package/modern/hooks/core/useGridStateInitialization.js +3 -3
  441. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +34 -69
  442. package/modern/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
  443. package/modern/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  444. package/modern/hooks/features/columnResize/useGridColumnResize.js +17 -10
  445. package/modern/hooks/features/columns/gridColumnsUtils.js +2 -1
  446. package/modern/hooks/features/columns/useGridColumns.js +7 -3
  447. package/modern/hooks/features/dimensions/useGridDimensions.js +11 -32
  448. package/modern/hooks/features/editing/gridEditingSelectors.js +7 -1
  449. package/modern/hooks/features/editing/useGridCellEditing.js +4 -4
  450. package/modern/hooks/features/editing/useGridRowEditing.js +7 -8
  451. package/modern/hooks/features/export/useGridPrintExport.js +1 -1
  452. package/modern/hooks/features/filter/gridFilterSelector.js +6 -1
  453. package/modern/hooks/features/filter/gridFilterUtils.js +3 -3
  454. package/modern/hooks/features/filter/useGridFilter.js +1 -1
  455. package/modern/hooks/features/focus/useGridFocus.js +3 -2
  456. package/modern/hooks/features/index.js +1 -0
  457. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +24 -16
  458. package/modern/hooks/features/keyboardNavigation/utils.js +0 -5
  459. package/modern/hooks/features/listView/gridListViewSelectors.js +3 -1
  460. package/modern/hooks/features/listView/index.js +1 -0
  461. package/modern/hooks/features/listView/useGridListView.js +2 -1
  462. package/modern/hooks/features/overlays/useGridOverlays.js +22 -2
  463. package/modern/hooks/features/pagination/gridPaginationSelector.js +39 -1
  464. package/modern/hooks/features/pagination/useGridPagination.js +5 -3
  465. package/modern/hooks/features/pagination/useGridPaginationModel.js +23 -1
  466. package/modern/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +8 -1
  467. package/modern/hooks/features/preferencesPanel/index.js +1 -1
  468. package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
  469. package/modern/hooks/features/rowSelection/useGridRowSelection.js +8 -16
  470. package/modern/hooks/features/rowSelection/utils.js +2 -2
  471. package/modern/hooks/features/rows/gridRowsSelector.js +1 -2
  472. package/modern/hooks/features/rows/gridRowsUtils.js +0 -9
  473. package/modern/hooks/features/rows/index.js +1 -1
  474. package/modern/hooks/features/rows/useGridParamsApi.js +33 -14
  475. package/modern/hooks/features/rows/useGridRowSpanning.js +97 -86
  476. package/modern/hooks/features/rows/useGridRows.js +23 -27
  477. package/modern/hooks/features/rows/useGridRowsMeta.js +3 -2
  478. package/modern/hooks/features/sorting/gridSortingSelector.js +11 -0
  479. package/modern/hooks/features/sorting/gridSortingUtils.js +2 -2
  480. package/modern/hooks/features/sorting/index.js +1 -1
  481. package/modern/hooks/features/sorting/useGridSorting.js +1 -1
  482. package/modern/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +33 -0
  483. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +169 -94
  484. package/modern/hooks/utils/useGridApiEventHandler.js +1 -1
  485. package/modern/hooks/utils/useGridApiRef.js +1 -1
  486. package/modern/hooks/utils/useGridSelector.js +6 -44
  487. package/modern/hooks/utils/useGridVisibleRows.js +5 -28
  488. package/modern/index.js +1 -1
  489. package/modern/internals/constants.js +8 -1
  490. package/modern/internals/index.js +5 -3
  491. package/modern/internals/utils/attachPinnedStyle.js +9 -0
  492. package/modern/internals/utils/getPinnedCellOffset.js +6 -7
  493. package/modern/internals/utils/index.js +2 -2
  494. package/modern/locales/arSD.js +14 -0
  495. package/modern/locales/beBY.js +13 -0
  496. package/modern/locales/bgBG.js +15 -0
  497. package/modern/locales/csCZ.js +15 -0
  498. package/modern/locales/daDK.js +15 -0
  499. package/modern/locales/deDE.js +13 -0
  500. package/modern/locales/elGR.js +14 -0
  501. package/modern/locales/esES.js +17 -4
  502. package/modern/locales/faIR.js +18 -4
  503. package/modern/locales/fiFI.js +15 -0
  504. package/modern/locales/frFR.js +15 -0
  505. package/modern/locales/heIL.js +17 -4
  506. package/modern/locales/hrHR.js +15 -0
  507. package/modern/locales/huHU.js +15 -0
  508. package/modern/locales/isIS.js +14 -0
  509. package/modern/locales/itIT.js +15 -0
  510. package/modern/locales/jaJP.js +15 -0
  511. package/modern/locales/koKR.js +47 -37
  512. package/modern/locales/nbNO.js +15 -0
  513. package/modern/locales/nlNL.js +18 -4
  514. package/modern/locales/nnNO.js +15 -0
  515. package/modern/locales/plPL.js +15 -0
  516. package/modern/locales/ptBR.js +13 -0
  517. package/modern/locales/ptPT.js +13 -0
  518. package/modern/locales/roRO.js +21 -9
  519. package/modern/locales/ruRU.js +15 -0
  520. package/modern/locales/skSK.js +14 -0
  521. package/modern/locales/svSE.js +19 -5
  522. package/modern/locales/trTR.js +15 -2
  523. package/modern/locales/ukUA.js +14 -0
  524. package/modern/locales/urPK.js +22 -9
  525. package/modern/locales/viVN.js +15 -0
  526. package/modern/locales/zhCN.js +17 -4
  527. package/modern/locales/zhHK.js +14 -0
  528. package/modern/locales/zhTW.js +14 -0
  529. package/modern/material/index.js +58 -7
  530. package/modern/models/api/index.js +0 -1
  531. package/modern/models/gridBaseSlots.js +1 -0
  532. package/modern/models/gridFilterInputComponent.js +1 -0
  533. package/modern/utils/assert.js +3 -0
  534. package/modern/utils/cellBorderUtils.js +5 -5
  535. package/modern/utils/createSelector.js +1 -120
  536. package/modern/utils/domUtils.js +7 -2
  537. package/modern/utils/isJSDOM.js +1 -0
  538. package/modern/utils/roundToDecimalPlaces.js +3 -0
  539. package/modern/utils/rtlFlipSide.js +22 -0
  540. package/modern/utils/utils.js +6 -1
  541. package/node/DataGrid/DataGrid.js +18 -36
  542. package/node/DataGrid/useDataGridComponent.js +1 -1
  543. package/node/DataGrid/useDataGridProps.js +2 -2
  544. package/node/components/GridApiContext.js +1 -0
  545. package/node/components/GridColumnHeaders.js +4 -4
  546. package/node/components/GridConfigurationContext.js +1 -0
  547. package/node/components/GridFooter.js +4 -4
  548. package/node/components/GridHeaders.js +2 -2
  549. package/node/components/GridLoadingOverlay.js +14 -12
  550. package/node/components/GridNoResultsOverlay.js +4 -4
  551. package/node/components/GridNoRowsOverlay.js +4 -4
  552. package/node/components/GridPagination.js +7 -4
  553. package/node/components/GridRow.js +51 -84
  554. package/node/components/GridRowCount.js +3 -2
  555. package/node/components/GridScrollArea.js +1 -0
  556. package/node/components/GridSelectedRowCount.js +3 -2
  557. package/node/components/GridSkeletonLoadingOverlay.js +21 -20
  558. package/node/components/base/GridOverlays.js +2 -24
  559. package/node/components/base/index.js +0 -11
  560. package/node/components/cell/GridActionsCell.js +8 -1
  561. package/node/components/cell/GridActionsCellItem.js +7 -8
  562. package/node/components/cell/GridCell.js +51 -91
  563. package/node/components/cell/GridEditDateCell.js +1 -1
  564. package/node/components/cell/GridEditInputCell.js +73 -4
  565. package/node/components/cell/GridEditSingleSelectCell.js +2 -2
  566. package/node/components/cell/GridSkeletonCell.js +1 -2
  567. package/node/components/columnHeaders/GridBaseColumnHeaders.js +4 -3
  568. package/node/components/columnHeaders/GridColumnGroupHeader.js +7 -10
  569. package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +19 -6
  570. package/node/components/columnHeaders/GridColumnHeaderItem.js +13 -12
  571. package/node/components/columnHeaders/GridColumnHeaderTitle.js +5 -3
  572. package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +3 -2
  573. package/node/components/columnHeaders/GridIconButtonContainer.js +5 -3
  574. package/node/components/columnSelection/GridCellCheckboxRenderer.js +10 -8
  575. package/node/components/columnSelection/GridHeaderCheckbox.js +17 -9
  576. package/node/components/columnsManagement/GridColumnsManagement.js +81 -11
  577. package/node/components/containers/GridFooterContainer.js +5 -3
  578. package/node/components/containers/GridOverlay.js +5 -3
  579. package/node/components/containers/GridRoot.js +17 -7
  580. package/node/components/containers/GridRootStyles.js +160 -50
  581. package/node/components/containers/GridToolbarContainer.js +3 -2
  582. package/node/components/menu/columnMenu/GridColumnMenu.js +5 -5
  583. package/node/components/menu/columnMenu/GridColumnMenuContainer.js +3 -2
  584. package/node/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +5 -10
  585. package/node/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js +5 -10
  586. package/node/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +5 -10
  587. package/node/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +13 -22
  588. package/node/components/panel/GridColumnsPanel.js +1 -2
  589. package/node/components/panel/GridPanel.js +5 -3
  590. package/node/components/panel/GridPanelContent.js +7 -3
  591. package/node/components/panel/GridPanelFooter.js +5 -4
  592. package/node/components/panel/GridPanelWrapper.js +5 -3
  593. package/node/components/panel/filterPanel/GridFilterForm.js +22 -18
  594. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +42 -33
  595. package/node/components/panel/filterPanel/GridFilterInputDate.js +49 -30
  596. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +49 -24
  597. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +55 -33
  598. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +34 -25
  599. package/node/components/panel/filterPanel/GridFilterInputValue.js +62 -37
  600. package/node/components/panel/filterPanel/GridFilterPanel.js +4 -4
  601. package/node/components/panel/filterPanel/index.js +7 -23
  602. package/node/components/toolbar/GridToolbar.js +11 -5
  603. package/node/components/toolbar/GridToolbarColumnsButton.js +12 -6
  604. package/node/components/toolbar/GridToolbarDensitySelector.js +9 -11
  605. package/node/components/toolbar/GridToolbarExport.js +2 -1
  606. package/node/components/toolbar/GridToolbarExportContainer.js +6 -6
  607. package/node/components/toolbar/GridToolbarFilterButton.js +20 -9
  608. package/node/components/toolbar/GridToolbarQuickFilter.js +39 -31
  609. package/node/components/virtualization/GridMainContainer.js +14 -5
  610. package/node/components/virtualization/GridVirtualScrollbar.js +17 -17
  611. package/node/components/virtualization/GridVirtualScroller.js +27 -12
  612. package/node/components/virtualization/GridVirtualScrollerContent.js +15 -6
  613. package/node/components/virtualization/GridVirtualScrollerRenderZone.js +5 -3
  614. package/node/constants/dataGridPropsDefaultValues.js +2 -4
  615. package/node/constants/gridClasses.js +1 -1
  616. package/node/constants/localeTextConstants.js +12 -0
  617. package/node/context/GridRootPropsContext.js +1 -0
  618. package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -1
  619. package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -1
  620. package/node/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +7 -1
  621. package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
  622. package/node/hooks/core/useGridApiInitialization.js +2 -2
  623. package/node/hooks/core/useGridStateInitialization.js +3 -3
  624. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +32 -67
  625. package/node/hooks/features/columnMenu/useGridColumnMenu.js +0 -2
  626. package/node/hooks/features/columnResize/gridColumnResizeApi.js +2 -1
  627. package/node/hooks/features/columnResize/useGridColumnResize.js +17 -10
  628. package/node/hooks/features/columns/gridColumnsUtils.js +2 -1
  629. package/node/hooks/features/columns/useGridColumns.js +7 -3
  630. package/node/hooks/features/dimensions/useGridDimensions.js +12 -33
  631. package/node/hooks/features/editing/gridEditingSelectors.js +8 -2
  632. package/node/hooks/features/editing/useGridCellEditing.js +3 -3
  633. package/node/hooks/features/editing/useGridRowEditing.js +5 -6
  634. package/node/hooks/features/export/useGridPrintExport.js +1 -1
  635. package/node/hooks/features/filter/gridFilterSelector.js +6 -1
  636. package/node/hooks/features/filter/gridFilterUtils.js +3 -3
  637. package/node/hooks/features/filter/useGridFilter.js +1 -1
  638. package/node/hooks/features/focus/useGridFocus.js +3 -2
  639. package/node/hooks/features/index.js +11 -0
  640. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +24 -15
  641. package/node/hooks/features/keyboardNavigation/utils.js +0 -6
  642. package/node/hooks/features/listView/gridListViewSelectors.js +3 -1
  643. package/node/hooks/features/listView/index.js +16 -0
  644. package/node/hooks/features/listView/useGridListView.js +2 -1
  645. package/node/hooks/features/overlays/useGridOverlays.js +24 -2
  646. package/node/hooks/features/pagination/gridPaginationSelector.js +41 -3
  647. package/node/hooks/features/pagination/useGridPagination.js +5 -3
  648. package/node/hooks/features/pagination/useGridPaginationModel.js +23 -1
  649. package/node/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +9 -2
  650. package/node/hooks/features/preferencesPanel/index.js +11 -10
  651. package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +14 -38
  652. package/node/hooks/features/rowSelection/useGridRowSelection.js +7 -15
  653. package/node/hooks/features/rowSelection/utils.js +2 -2
  654. package/node/hooks/features/rows/gridRowsSelector.js +2 -3
  655. package/node/hooks/features/rows/gridRowsUtils.js +0 -9
  656. package/node/hooks/features/rows/index.js +0 -7
  657. package/node/hooks/features/rows/useGridParamsApi.js +33 -14
  658. package/node/hooks/features/rows/useGridRowSpanning.js +95 -84
  659. package/node/hooks/features/rows/useGridRows.js +21 -25
  660. package/node/hooks/features/rows/useGridRowsMeta.js +5 -4
  661. package/node/hooks/features/sorting/gridSortingSelector.js +12 -1
  662. package/node/hooks/features/sorting/gridSortingUtils.js +2 -2
  663. package/node/hooks/features/sorting/index.js +24 -16
  664. package/node/hooks/features/sorting/useGridSorting.js +1 -1
  665. package/node/hooks/features/virtualization/gridFocusedVirtualCellSelector.js +40 -0
  666. package/node/hooks/features/virtualization/useGridVirtualScroller.js +171 -96
  667. package/node/hooks/utils/useGridApiEventHandler.js +1 -1
  668. package/node/hooks/utils/useGridApiRef.js +1 -1
  669. package/node/hooks/utils/useGridSelector.js +8 -47
  670. package/node/hooks/utils/useGridVisibleRows.js +3 -28
  671. package/node/index.js +1 -1
  672. package/node/internals/constants.js +9 -2
  673. package/node/internals/index.js +36 -24
  674. package/node/internals/utils/attachPinnedStyle.js +15 -0
  675. package/node/internals/utils/getPinnedCellOffset.js +6 -7
  676. package/node/internals/utils/index.js +11 -11
  677. package/node/locales/arSD.js +14 -0
  678. package/node/locales/beBY.js +13 -0
  679. package/node/locales/bgBG.js +15 -0
  680. package/node/locales/csCZ.js +15 -0
  681. package/node/locales/daDK.js +15 -0
  682. package/node/locales/deDE.js +13 -0
  683. package/node/locales/elGR.js +14 -0
  684. package/node/locales/esES.js +17 -4
  685. package/node/locales/faIR.js +18 -4
  686. package/node/locales/fiFI.js +15 -0
  687. package/node/locales/frFR.js +15 -0
  688. package/node/locales/heIL.js +17 -4
  689. package/node/locales/hrHR.js +15 -0
  690. package/node/locales/huHU.js +15 -0
  691. package/node/locales/isIS.js +14 -0
  692. package/node/locales/itIT.js +15 -0
  693. package/node/locales/jaJP.js +15 -0
  694. package/node/locales/koKR.js +47 -37
  695. package/node/locales/nbNO.js +15 -0
  696. package/node/locales/nlNL.js +18 -4
  697. package/node/locales/nnNO.js +15 -0
  698. package/node/locales/plPL.js +15 -0
  699. package/node/locales/ptBR.js +13 -0
  700. package/node/locales/ptPT.js +13 -0
  701. package/node/locales/roRO.js +21 -9
  702. package/node/locales/ruRU.js +15 -0
  703. package/node/locales/skSK.js +14 -0
  704. package/node/locales/svSE.js +19 -5
  705. package/node/locales/trTR.js +15 -2
  706. package/node/locales/ukUA.js +14 -0
  707. package/node/locales/urPK.js +22 -9
  708. package/node/locales/viVN.js +15 -0
  709. package/node/locales/zhCN.js +17 -4
  710. package/node/locales/zhHK.js +14 -0
  711. package/node/locales/zhTW.js +14 -0
  712. package/node/material/index.js +59 -7
  713. package/node/models/api/index.js +0 -11
  714. package/node/models/gridFilterInputComponent.js +5 -0
  715. package/node/utils/assert.js +9 -0
  716. package/node/utils/cellBorderUtils.js +5 -5
  717. package/node/utils/createSelector.js +4 -125
  718. package/node/utils/domUtils.js +7 -2
  719. package/node/utils/isJSDOM.js +7 -0
  720. package/node/utils/roundToDecimalPlaces.js +9 -0
  721. package/node/utils/rtlFlipSide.js +29 -0
  722. package/node/utils/utils.js +8 -1
  723. package/package.json +5 -5
  724. package/themeAugmentation/overrides.d.ts +10 -5
  725. package/utils/assert.d.ts +2 -0
  726. package/utils/assert.js +3 -0
  727. package/utils/cellBorderUtils.d.ts +3 -3
  728. package/utils/cellBorderUtils.js +5 -5
  729. package/utils/createSelector.d.ts +7 -19
  730. package/utils/createSelector.js +1 -120
  731. package/utils/domUtils.js +7 -2
  732. package/utils/getPublicApiRef.d.ts +2 -1
  733. package/utils/isJSDOM.d.ts +1 -0
  734. package/utils/isJSDOM.js +1 -0
  735. package/utils/keyboardUtils.d.ts +1 -1
  736. package/utils/roundToDecimalPlaces.d.ts +1 -0
  737. package/utils/roundToDecimalPlaces.js +3 -0
  738. package/utils/rtlFlipSide.d.ts +2 -0
  739. package/utils/rtlFlipSide.js +22 -0
  740. package/utils/utils.d.ts +1 -0
  741. package/utils/utils.js +6 -1
  742. package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +0 -11
  743. package/internals/utils/useProps.d.ts +0 -1
  744. package/internals/utils/useProps.js +0 -24
  745. package/joy/icons.d.ts +0 -32
  746. package/joy/icons.js +0 -431
  747. package/joy/index.d.ts +0 -2
  748. package/joy/index.js +0 -2
  749. package/joy/joySlots.d.ts +0 -3
  750. package/joy/joySlots.js +0 -384
  751. package/joy/package.json +0 -6
  752. package/modern/internals/utils/useProps.js +0 -24
  753. package/modern/joy/icons.js +0 -431
  754. package/modern/joy/index.js +0 -2
  755. package/modern/joy/joySlots.js +0 -384
  756. package/node/internals/utils/useProps.js +0 -30
  757. package/node/joy/icons.js +0 -439
  758. package/node/joy/index.js +0 -13
  759. package/node/joy/joySlots.js +0 -392
  760. /package/{components/panel/filterPanel/GridFilterInputValueProps.js → models/gridBaseSlots.js} +0 -0
  761. /package/{modern/components/panel/filterPanel/GridFilterInputValueProps.js → models/gridFilterInputComponent.js} +0 -0
  762. /package/node/{components/panel/filterPanel/GridFilterInputValueProps.js → models/gridBaseSlots.js} +0 -0
@@ -1,12 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "InputProps", "isFilterActive", "clearButton", "tabIndex", "disabled"];
3
+ const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps", "isFilterActive", "headerFilterMenu", "clearButton", "tabIndex", "disabled"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { unstable_useId as useId } from '@mui/utils';
7
7
  import { useTimeout } from "../../../hooks/utils/useTimeout.js";
8
8
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
9
- import { jsx as _jsx } from "react/jsx-runtime";
9
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
10
  function convertFilterItemValueToInputValue(itemValue, inputType) {
11
11
  if (itemValue == null) {
12
12
  return '';
@@ -34,12 +34,14 @@ function GridFilterInputDate(props) {
34
34
  type,
35
35
  apiRef,
36
36
  focusElementRef,
37
- InputProps,
37
+ slotProps,
38
+ headerFilterMenu,
38
39
  clearButton,
39
40
  tabIndex,
40
41
  disabled
41
42
  } = props,
42
43
  other = _objectWithoutPropertiesLoose(props, _excluded);
44
+ const rootSlotProps = slotProps?.root.slotProps;
43
45
  const filterTimeout = useTimeout();
44
46
  const [filterValueState, setFilterValueState] = React.useState(() => convertFilterItemValueToInputValue(item.value, type));
45
47
  const [applying, setIsApplying] = React.useState(false);
@@ -62,33 +64,31 @@ function GridFilterInputDate(props) {
62
64
  const value = convertFilterItemValueToInputValue(item.value, type);
63
65
  setFilterValueState(value);
64
66
  }, [item.value, type]);
65
- return /*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({
66
- fullWidth: true,
67
- id: id,
68
- label: apiRef.current.getLocaleText('filterPanelInputLabel'),
69
- placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),
70
- value: filterValueState,
71
- onChange: onFilterChange,
72
- variant: "standard",
73
- type: type || 'text',
74
- InputLabelProps: {
75
- shrink: true
76
- },
77
- inputRef: focusElementRef,
78
- InputProps: _extends({}, applying || clearButton ? {
79
- endAdornment: applying ? /*#__PURE__*/_jsx(rootProps.slots.loadIcon, {
80
- fontSize: "small",
81
- color: "action"
82
- }) : clearButton
83
- } : {}, {
84
- disabled
85
- }, InputProps, {
86
- inputProps: _extends({
87
- max: type === 'datetime-local' ? '9999-12-31T23:59' : '9999-12-31',
88
- tabIndex
89
- }, InputProps?.inputProps)
90
- })
91
- }, other, rootProps.slotProps?.baseTextField));
67
+ return /*#__PURE__*/_jsxs(React.Fragment, {
68
+ children: [/*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({
69
+ fullWidth: true,
70
+ id: id,
71
+ label: apiRef.current.getLocaleText('filterPanelInputLabel'),
72
+ placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),
73
+ value: filterValueState,
74
+ onChange: onFilterChange,
75
+ type: type || 'text',
76
+ disabled: disabled,
77
+ inputRef: focusElementRef,
78
+ slotProps: _extends({}, rootSlotProps, {
79
+ input: _extends({
80
+ endAdornment: applying ? /*#__PURE__*/_jsx(rootProps.slots.loadIcon, {
81
+ fontSize: "small",
82
+ color: "action"
83
+ }) : null
84
+ }, rootSlotProps?.input),
85
+ htmlInput: _extends({
86
+ max: type === 'datetime-local' ? '9999-12-31T23:59' : '9999-12-31',
87
+ tabIndex
88
+ }, rootSlotProps?.htmlInput)
89
+ })
90
+ }, rootProps.slotProps?.baseTextField, other, slotProps?.root)), headerFilterMenu, clearButton]
91
+ });
92
92
  }
93
93
  process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
94
94
  // ----------------------------- Warning --------------------------------
@@ -99,8 +99,22 @@ process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
99
99
  current: PropTypes.object.isRequired
100
100
  }).isRequired,
101
101
  applyValue: PropTypes.func.isRequired,
102
+ className: PropTypes.string,
102
103
  clearButton: PropTypes.node,
104
+ disabled: PropTypes.bool,
103
105
  focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
106
+ headerFilterMenu: PropTypes.node,
107
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
108
+ current: (props, propName) => {
109
+ if (props[propName] == null) {
110
+ return null;
111
+ }
112
+ if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
113
+ return new Error(`Expected prop '${propName}' to be of type Element`);
114
+ }
115
+ return null;
116
+ }
117
+ })]),
104
118
  /**
105
119
  * It is `true` if the filter either has a value or an operator with no value
106
120
  * required is selected (for example `isEmpty`)
@@ -111,6 +125,11 @@ process.env.NODE_ENV !== "production" ? GridFilterInputDate.propTypes = {
111
125
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
112
126
  operator: PropTypes.string.isRequired,
113
127
  value: PropTypes.any
114
- }).isRequired
128
+ }).isRequired,
129
+ onBlur: PropTypes.func,
130
+ onFocus: PropTypes.func,
131
+ slotProps: PropTypes.object,
132
+ tabIndex: PropTypes.number,
133
+ type: PropTypes.oneOf(['date', 'datetime-local'])
115
134
  } : void 0;
116
135
  export { GridFilterInputDate };
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import { AutocompleteProps } from '@mui/material/Autocomplete';
3
- import { GridFilterInputValueProps } from './GridFilterInputValueProps';
3
+ import { GridFilterInputValueProps } from '../../../models/gridFilterInputComponent';
4
4
  import type { ValueOptions } from '../../../models/colDef/gridColDef';
5
- export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | 'multiple' | 'color' | 'getOptionLabel'>, GridFilterInputValueProps {
5
+ export type GridFilterInputMultipleSingleSelectProps = GridFilterInputValueProps<Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput'>> & {
6
6
  type?: 'singleSelect';
7
- }
7
+ };
8
8
  declare function GridFilterInputMultipleSingleSelect(props: GridFilterInputMultipleSingleSelectProps): React.JSX.Element;
9
9
  declare namespace GridFilterInputMultipleSingleSelect {
10
10
  var propTypes: any;
@@ -1,7 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "color", "error", "helperText", "size", "variant"],
4
- _excluded2 = ["key"];
3
+ const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "slotProps"],
4
+ _excluded2 = ["key"],
5
+ _excluded3 = ["inputProps", "InputProps", "InputLabelProps"];
5
6
  import * as React from 'react';
6
7
  import PropTypes from 'prop-types';
7
8
  import Autocomplete, { createFilterOptions } from '@mui/material/Autocomplete';
@@ -14,22 +15,12 @@ function GridFilterInputMultipleSingleSelect(props) {
14
15
  const {
15
16
  item,
16
17
  applyValue,
18
+ type,
17
19
  apiRef,
18
20
  focusElementRef,
19
- color,
20
- error,
21
- helperText,
22
- size,
23
- variant = 'standard'
21
+ slotProps
24
22
  } = props,
25
23
  other = _objectWithoutPropertiesLoose(props, _excluded);
26
- const TextFieldProps = {
27
- color,
28
- error,
29
- helperText,
30
- size,
31
- variant
32
- };
33
24
  const id = useId();
34
25
  const rootProps = useGridRootProps();
35
26
  let resolvedColumn = null;
@@ -88,16 +79,26 @@ function GridFilterInputMultipleSingleSelect(props) {
88
79
  label: getOptionLabel(option)
89
80
  }, tagProps), key);
90
81
  }),
91
- renderInput: params => /*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({}, params, {
92
- label: apiRef.current.getLocaleText('filterPanelInputLabel'),
93
- placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),
94
- InputLabelProps: _extends({}, params.InputLabelProps, {
95
- shrink: true
96
- }),
97
- inputRef: focusElementRef,
98
- type: "singleSelect"
99
- }, TextFieldProps, rootProps.slotProps?.baseTextField))
100
- }, other));
82
+ renderInput: params => {
83
+ const {
84
+ inputProps,
85
+ InputProps,
86
+ InputLabelProps
87
+ } = params,
88
+ rest = _objectWithoutPropertiesLoose(params, _excluded3);
89
+ return /*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({}, rest, {
90
+ label: apiRef.current.getLocaleText('filterPanelInputLabel'),
91
+ placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),
92
+ inputRef: focusElementRef,
93
+ type: type || 'text',
94
+ slotProps: {
95
+ input: InputProps,
96
+ inputLabel: InputLabelProps,
97
+ htmlInput: inputProps
98
+ }
99
+ }, rootProps.slotProps?.baseTextField));
100
+ }
101
+ }, other, slotProps?.root));
101
102
  }
102
103
  process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.propTypes = {
103
104
  // ----------------------------- Warning --------------------------------
@@ -108,13 +109,37 @@ process.env.NODE_ENV !== "production" ? GridFilterInputMultipleSingleSelect.prop
108
109
  current: PropTypes.object.isRequired
109
110
  }).isRequired,
110
111
  applyValue: PropTypes.func.isRequired,
112
+ className: PropTypes.string,
113
+ clearButton: PropTypes.node,
114
+ disabled: PropTypes.bool,
111
115
  focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
116
+ headerFilterMenu: PropTypes.node,
117
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
118
+ current: (props, propName) => {
119
+ if (props[propName] == null) {
120
+ return null;
121
+ }
122
+ if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
123
+ return new Error(`Expected prop '${propName}' to be of type Element`);
124
+ }
125
+ return null;
126
+ }
127
+ })]),
128
+ /**
129
+ * It is `true` if the filter either has a value or an operator with no value
130
+ * required is selected (for example `isEmpty`)
131
+ */
132
+ isFilterActive: PropTypes.bool,
112
133
  item: PropTypes.shape({
113
134
  field: PropTypes.string.isRequired,
114
135
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
115
136
  operator: PropTypes.string.isRequired,
116
137
  value: PropTypes.any
117
138
  }).isRequired,
139
+ onBlur: PropTypes.func,
140
+ onFocus: PropTypes.func,
141
+ slotProps: PropTypes.object,
142
+ tabIndex: PropTypes.number,
118
143
  type: PropTypes.oneOf(['singleSelect'])
119
144
  } : void 0;
120
145
  export { GridFilterInputMultipleSingleSelect };
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { AutocompleteProps } from '@mui/material/Autocomplete';
3
- import { GridFilterInputValueProps } from './GridFilterInputValueProps';
4
- export type GridFilterInputMultipleValueProps = {
3
+ import { GridFilterInputValueProps } from '../../../models/gridFilterInputComponent';
4
+ export type GridFilterInputMultipleValueProps = GridFilterInputValueProps<Omit<AutocompleteProps<string, true, false, true>, 'options' | 'renderInput'>> & {
5
5
  type?: 'text' | 'number' | 'date' | 'datetime-local';
6
- } & GridFilterInputValueProps & Omit<AutocompleteProps<string, true, false, true>, 'options' | 'renderInput'>;
6
+ };
7
7
  declare function GridFilterInputMultipleValue(props: GridFilterInputMultipleValueProps): React.JSX.Element;
8
8
  declare namespace GridFilterInputMultipleValue {
9
9
  var propTypes: any;
@@ -1,7 +1,7 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "color", "error", "helperText", "size", "variant"],
4
- _excluded2 = ["key"];
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
+ const _excluded = ["key"],
4
+ _excluded2 = ["inputProps", "InputProps", "InputLabelProps"];
5
5
  import * as React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import Autocomplete from '@mui/material/Autocomplete';
@@ -10,25 +10,13 @@ import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  function GridFilterInputMultipleValue(props) {
12
12
  const {
13
- item,
14
- applyValue,
15
- type,
16
- apiRef,
17
- focusElementRef,
18
- color,
19
- error,
20
- helperText,
21
- size,
22
- variant = 'standard'
23
- } = props,
24
- other = _objectWithoutPropertiesLoose(props, _excluded);
25
- const TextFieldProps = {
26
- color,
27
- error,
28
- helperText,
29
- size,
30
- variant
31
- };
13
+ item,
14
+ applyValue,
15
+ type,
16
+ apiRef,
17
+ focusElementRef,
18
+ slotProps
19
+ } = props;
32
20
  const [filterValueState, setFilterValueState] = React.useState(item.value || []);
33
21
  const id = useId();
34
22
  const rootProps = useGridRootProps();
@@ -62,23 +50,33 @@ function GridFilterInputMultipleValue(props) {
62
50
  {
63
51
  key
64
52
  } = _getTagProps,
65
- tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded2);
53
+ tagProps = _objectWithoutPropertiesLoose(_getTagProps, _excluded);
66
54
  return /*#__PURE__*/_jsx(rootProps.slots.baseChip, _extends({
67
55
  variant: "outlined",
68
56
  size: "small",
69
57
  label: option
70
58
  }, tagProps), key);
71
59
  }),
72
- renderInput: params => /*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({}, params, {
73
- label: apiRef.current.getLocaleText('filterPanelInputLabel'),
74
- placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),
75
- InputLabelProps: _extends({}, params.InputLabelProps, {
76
- shrink: true
77
- }),
78
- inputRef: focusElementRef,
79
- type: type || 'text'
80
- }, TextFieldProps, rootProps.slotProps?.baseTextField))
81
- }, other));
60
+ renderInput: params => {
61
+ const {
62
+ inputProps,
63
+ InputProps,
64
+ InputLabelProps
65
+ } = params,
66
+ rest = _objectWithoutPropertiesLoose(params, _excluded2);
67
+ return /*#__PURE__*/_jsx(rootProps.slots.baseTextField, _extends({}, rest, {
68
+ label: apiRef.current.getLocaleText('filterPanelInputLabel'),
69
+ placeholder: apiRef.current.getLocaleText('filterPanelInputPlaceholder'),
70
+ inputRef: focusElementRef,
71
+ type: type || 'text',
72
+ slotProps: {
73
+ input: InputProps,
74
+ inputLabel: InputLabelProps,
75
+ htmlInput: inputProps
76
+ }
77
+ }, rootProps.slotProps?.baseTextField));
78
+ }
79
+ }, slotProps?.root));
82
80
  }
83
81
  process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes = {
84
82
  // ----------------------------- Warning --------------------------------
@@ -89,13 +87,37 @@ process.env.NODE_ENV !== "production" ? GridFilterInputMultipleValue.propTypes =
89
87
  current: PropTypes.object.isRequired
90
88
  }).isRequired,
91
89
  applyValue: PropTypes.func.isRequired,
90
+ className: PropTypes.string,
91
+ clearButton: PropTypes.node,
92
+ disabled: PropTypes.bool,
92
93
  focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
94
+ headerFilterMenu: PropTypes.node,
95
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
96
+ current: (props, propName) => {
97
+ if (props[propName] == null) {
98
+ return null;
99
+ }
100
+ if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
101
+ return new Error(`Expected prop '${propName}' to be of type Element`);
102
+ }
103
+ return null;
104
+ }
105
+ })]),
106
+ /**
107
+ * It is `true` if the filter either has a value or an operator with no value
108
+ * required is selected (for example `isEmpty`)
109
+ */
110
+ isFilterActive: PropTypes.bool,
93
111
  item: PropTypes.shape({
94
112
  field: PropTypes.string.isRequired,
95
113
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
96
114
  operator: PropTypes.string.isRequired,
97
115
  value: PropTypes.any
98
116
  }).isRequired,
117
+ onBlur: PropTypes.func,
118
+ onFocus: PropTypes.func,
119
+ slotProps: PropTypes.object,
120
+ tabIndex: PropTypes.number,
99
121
  type: PropTypes.oneOf(['date', 'datetime-local', 'number', 'text'])
100
122
  } : void 0;
101
123
  export { GridFilterInputMultipleValue };
@@ -1,13 +1,7 @@
1
1
  import * as React from 'react';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import { GridFilterInputValueProps } from './GridFilterInputValueProps';
4
- export type GridFilterInputSingleSelectProps = GridFilterInputValueProps & TextFieldProps & {
5
- clearButton?: React.ReactNode | null;
6
- /**
7
- * It is `true` if the filter either has a value or an operator with no value
8
- * required is selected (for example `isEmpty`)
9
- */
10
- isFilterActive?: boolean;
2
+ import { TextFieldProps } from '../../../models/gridBaseSlots';
3
+ import { GridFilterInputValueProps } from '../../../models/gridFilterInputComponent';
4
+ export type GridFilterInputSingleSelectProps = GridFilterInputValueProps<TextFieldProps> & {
11
5
  type?: 'singleSelect';
12
6
  };
13
7
  declare function GridFilterInputSingleSelect(props: GridFilterInputSingleSelectProps): React.JSX.Element | null;
@@ -1,10 +1,9 @@
1
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
2
  import _extends from "@babel/runtime/helpers/esm/extends";
3
- const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "placeholder", "tabIndex", "label", "variant", "isFilterActive", "clearButton", "InputLabelProps"];
3
+ const _excluded = ["item", "applyValue", "type", "apiRef", "focusElementRef", "tabIndex", "isFilterActive", "clearButton", "headerFilterMenu", "slotProps"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { unstable_useId as useId } from '@mui/utils';
7
- import { styled } from '@mui/material/styles';
8
7
  import { useGridRootProps } from "../../../hooks/utils/useGridRootProps.js";
9
8
  import { getValueFromValueOptions, getValueOptions, isSingleSelectColDef } from "./filterPanelUtils.js";
10
9
  import { createElement as _createElement } from "react";
@@ -31,14 +30,6 @@ const renderSingleSelectOptions = ({
31
30
  }), label);
32
31
  });
33
32
  };
34
- const SingleSelectOperatorContainer = styled('div')({
35
- display: 'flex',
36
- alignItems: 'flex-end',
37
- width: '100%',
38
- [`& button`]: {
39
- margin: 'auto 0px 5px 5px'
40
- }
41
- });
42
33
  function GridFilterInputSingleSelect(props) {
43
34
  const {
44
35
  item,
@@ -46,11 +37,10 @@ function GridFilterInputSingleSelect(props) {
46
37
  type,
47
38
  apiRef,
48
39
  focusElementRef,
49
- placeholder,
50
40
  tabIndex,
51
- label: labelProp,
52
- variant = 'standard',
53
- clearButton
41
+ clearButton,
42
+ headerFilterMenu,
43
+ slotProps
54
44
  } = props,
55
45
  others = _objectWithoutPropertiesLoose(props, _excluded);
56
46
  const filterValue = item.value ?? '';
@@ -82,15 +72,15 @@ function GridFilterInputSingleSelect(props) {
82
72
  if (!isSingleSelectColDef(resolvedColumn)) {
83
73
  return null;
84
74
  }
85
- const label = labelProp ?? apiRef.current.getLocaleText('filterPanelInputLabel');
86
- return /*#__PURE__*/_jsxs(SingleSelectOperatorContainer, {
75
+ const label = slotProps?.root.label ?? apiRef.current.getLocaleText('filterPanelInputLabel');
76
+ return /*#__PURE__*/_jsxs(React.Fragment, {
87
77
  children: [/*#__PURE__*/_jsxs(rootProps.slots.baseFormControl, {
88
78
  fullWidth: true,
89
79
  children: [/*#__PURE__*/_jsx(rootProps.slots.baseInputLabel, _extends({}, rootProps.slotProps?.baseInputLabel, {
90
80
  id: labelId,
91
81
  htmlFor: id,
92
82
  shrink: true,
93
- variant: variant,
83
+ variant: "outlined",
94
84
  children: label
95
85
  })), /*#__PURE__*/_jsx(rootProps.slots.baseSelect, _extends({
96
86
  id: id,
@@ -98,16 +88,16 @@ function GridFilterInputSingleSelect(props) {
98
88
  labelId: labelId,
99
89
  value: filterValue,
100
90
  onChange: onFilterChange,
101
- variant: variant,
91
+ variant: "outlined",
102
92
  type: type || 'text',
103
- inputProps: {
93
+ inputProps: _extends({
104
94
  tabIndex,
105
95
  ref: focusElementRef,
106
- placeholder: placeholder ?? apiRef.current.getLocaleText('filterPanelInputPlaceholder')
107
- },
96
+ placeholder: slotProps?.root.placeholder ?? apiRef.current.getLocaleText('filterPanelInputPlaceholder')
97
+ }, slotProps?.root.slotProps?.htmlInput),
108
98
  native: isSelectNative,
109
- notched: variant === 'outlined' ? true : undefined
110
- }, others /* FIXME: typing error */, rootProps.slotProps?.baseSelect, {
99
+ notched: true
100
+ }, rootProps.slotProps?.baseSelect, others /* FIXME: typing error */, slotProps?.root, {
111
101
  children: renderSingleSelectOptions({
112
102
  column: resolvedColumn,
113
103
  OptionComponent: rootProps.slots.baseSelectOption,
@@ -117,7 +107,7 @@ function GridFilterInputSingleSelect(props) {
117
107
  baseSelectOptionProps: rootProps.slotProps?.baseSelectOption
118
108
  })
119
109
  }))]
120
- }), clearButton]
110
+ }), headerFilterMenu, clearButton]
121
111
  });
122
112
  }
123
113
  process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes = {
@@ -129,8 +119,22 @@ process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes =
129
119
  current: PropTypes.object.isRequired
130
120
  }).isRequired,
131
121
  applyValue: PropTypes.func.isRequired,
122
+ className: PropTypes.string,
132
123
  clearButton: PropTypes.node,
124
+ disabled: PropTypes.bool,
133
125
  focusElementRef: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.func, PropTypes.object]),
126
+ headerFilterMenu: PropTypes.node,
127
+ inputRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
128
+ current: (props, propName) => {
129
+ if (props[propName] == null) {
130
+ return null;
131
+ }
132
+ if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
133
+ return new Error(`Expected prop '${propName}' to be of type Element`);
134
+ }
135
+ return null;
136
+ }
137
+ })]),
134
138
  /**
135
139
  * It is `true` if the filter either has a value or an operator with no value
136
140
  * required is selected (for example `isEmpty`)
@@ -141,6 +145,11 @@ process.env.NODE_ENV !== "production" ? GridFilterInputSingleSelect.propTypes =
141
145
  id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
142
146
  operator: PropTypes.string.isRequired,
143
147
  value: PropTypes.any
144
- }).isRequired
148
+ }).isRequired,
149
+ onBlur: PropTypes.func,
150
+ onFocus: PropTypes.func,
151
+ slotProps: PropTypes.object,
152
+ tabIndex: PropTypes.number,
153
+ type: PropTypes.oneOf(['singleSelect'])
145
154
  } : void 0;
146
155
  export { GridFilterInputSingleSelect };
@@ -1,14 +1,8 @@
1
1
  import * as React from 'react';
2
- import { TextFieldProps } from '@mui/material/TextField';
3
- import { GridFilterInputValueProps } from './GridFilterInputValueProps';
4
- export type GridTypeFilterInputValueProps = GridFilterInputValueProps & TextFieldProps & {
2
+ import { TextFieldProps } from '../../../models/gridBaseSlots';
3
+ import { GridFilterInputValueProps } from '../../../models/gridFilterInputComponent';
4
+ export type GridTypeFilterInputValueProps = GridFilterInputValueProps<TextFieldProps> & {
5
5
  type?: 'text' | 'number' | 'date' | 'datetime-local';
6
- clearButton?: React.ReactNode | null;
7
- /**
8
- * It is `true` if the filter either has a value or an operator with no value
9
- * required is selected (for example `isEmpty`)
10
- */
11
- isFilterActive?: boolean;
12
6
  };
13
7
  declare function GridFilterInputValue(props: GridTypeFilterInputValueProps): React.JSX.Element;
14
8
  declare namespace GridFilterInputValue {