@mui/x-data-grid 8.0.0 → 8.2.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.
- package/CHANGELOG.md +230 -5
- package/DataGrid/DataGrid.d.ts +1 -1
- package/DataGrid/useDataGridProps.js +5 -4
- package/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridStringOperators.d.ts +1 -1
- package/components/GridDetailPanels.d.ts +1 -1
- package/components/GridPinnedRows.d.ts +1 -1
- package/components/GridRow.d.ts +1 -1
- package/components/GridRowCount.js +1 -2
- package/components/GridSelectedRowCount.js +1 -2
- package/components/GridSkeletonLoadingOverlay.js +1 -2
- package/components/base/GridOverlays.js +2 -4
- package/components/cell/GridActionsCellItem.d.ts +1 -1
- package/components/cell/GridBooleanCell.d.ts +2 -2
- package/components/cell/GridEditInputCell.js +3 -3
- package/components/cell/GridEditSingleSelectCell.d.ts +1 -1
- package/components/cell/index.d.ts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.js +1 -2
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -2
- package/components/columnHeaders/GridIconButtonContainer.js +1 -2
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/components/columnsManagement/utils.d.ts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +1 -2
- package/components/containers/GridRootStyles.js +14 -12
- package/components/export/ExportCsv.d.ts +1 -1
- package/components/export/ExportPrint.d.ts +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/components/panel/GridPanel.js +0 -1
- package/components/panel/GridPanelFooter.js +1 -2
- package/components/panel/GridPanelHeader.js +1 -2
- package/components/panel/filterPanel/GridFilterForm.js +6 -12
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/components/panel/filterPanel/index.d.ts +2 -2
- package/components/quickFilter/QuickFilter.d.ts +1 -1
- package/components/quickFilter/QuickFilterClear.d.ts +1 -1
- package/components/quickFilter/QuickFilterControl.d.ts +1 -1
- package/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +1 -2
- package/components/toolbar/index.d.ts +1 -1
- package/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.js +1 -2
- package/constants/dataGridPropsDefaultValues.d.ts +1 -1
- package/esm/DataGrid/DataGrid.d.ts +1 -1
- package/esm/DataGrid/useDataGridProps.js +6 -5
- package/esm/colDef/gridDefaultColumnTypes.d.ts +1 -1
- package/esm/colDef/gridNumericOperators.d.ts +2 -2
- package/esm/colDef/gridStringOperators.d.ts +1 -1
- package/esm/components/GridDetailPanels.d.ts +1 -1
- package/esm/components/GridPinnedRows.d.ts +1 -1
- package/esm/components/GridRow.d.ts +1 -1
- package/esm/components/GridRowCount.js +1 -2
- package/esm/components/GridSelectedRowCount.js +1 -2
- package/esm/components/GridSkeletonLoadingOverlay.js +1 -2
- package/esm/components/base/GridOverlays.js +2 -4
- package/esm/components/cell/GridActionsCellItem.d.ts +1 -1
- package/esm/components/cell/GridBooleanCell.d.ts +2 -2
- package/esm/components/cell/GridEditInputCell.js +3 -3
- package/esm/components/cell/GridEditSingleSelectCell.d.ts +1 -1
- package/esm/components/cell/index.d.ts +1 -1
- package/esm/components/columnHeaders/GridBaseColumnHeaders.js +1 -2
- package/esm/components/columnHeaders/GridColumnHeaderTitle.js +1 -2
- package/esm/components/columnHeaders/GridIconButtonContainer.js +1 -2
- package/esm/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/esm/components/columnsManagement/GridColumnsManagement.d.ts +1 -1
- package/esm/components/columnsManagement/utils.d.ts +1 -1
- package/esm/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/esm/components/containers/GridFooterContainer.js +1 -2
- package/esm/components/containers/GridRootStyles.js +14 -12
- package/esm/components/export/ExportCsv.d.ts +1 -1
- package/esm/components/export/ExportPrint.d.ts +1 -1
- package/esm/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/esm/components/panel/GridPanel.js +0 -1
- package/esm/components/panel/GridPanelFooter.js +1 -2
- package/esm/components/panel/GridPanelHeader.js +1 -2
- package/esm/components/panel/filterPanel/GridFilterForm.js +6 -12
- package/esm/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/esm/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/esm/components/panel/filterPanel/index.d.ts +2 -2
- package/esm/components/quickFilter/QuickFilter.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterClear.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterControl.d.ts +1 -1
- package/esm/components/quickFilter/QuickFilterTrigger.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarExport.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/esm/components/toolbar/GridToolbarFilterButton.js +1 -2
- package/esm/components/toolbar/index.d.ts +1 -1
- package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/esm/components/virtualization/GridVirtualScrollerRenderZone.js +1 -2
- package/esm/constants/dataGridPropsDefaultValues.d.ts +1 -1
- package/esm/hooks/core/gridPropsSelectors.d.ts +2 -2
- package/esm/hooks/core/index.d.ts +1 -1
- package/esm/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/esm/hooks/core/useGridInitialization.d.ts +1 -1
- package/esm/hooks/core/useGridProps.d.ts +3 -3
- package/esm/hooks/core/useGridRefs.d.ts +1 -1
- package/esm/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/esm/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/esm/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +2 -2
- package/esm/hooks/features/columnGrouping/index.d.ts +1 -1
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/esm/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -2
- package/esm/hooks/features/columnResize/gridColumnResizeApi.d.ts +1 -1
- package/esm/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/esm/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/esm/hooks/features/columns/gridColumnsSelector.d.ts +9 -9
- package/esm/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/esm/hooks/features/dataSource/cache.d.ts +1 -1
- package/esm/hooks/features/dataSource/gridDataSourceError.d.ts +1 -1
- package/esm/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/esm/hooks/features/dataSource/models.d.ts +3 -3
- package/esm/hooks/features/dataSource/useGridDataSource.d.ts +2 -2
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +5 -5
- package/esm/hooks/features/dataSource/utils.d.ts +1 -1
- package/esm/hooks/features/dimensions/gridDimensionsApi.d.ts +1 -1
- package/esm/hooks/features/dimensions/index.d.ts +2 -2
- package/esm/hooks/features/export/serializers/csvSerializer.d.ts +4 -4
- package/esm/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/esm/hooks/features/export/useGridPrintExport.js +3 -34
- package/esm/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/esm/hooks/features/filter/gridFilterUtils.d.ts +1 -1
- package/esm/hooks/features/filter/index.d.ts +2 -2
- package/esm/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/esm/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/esm/hooks/features/listView/useGridListView.d.ts +1 -1
- package/esm/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/esm/hooks/features/pagination/index.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/esm/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +1 -1
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +7 -6
- package/esm/hooks/features/rowSelection/utils.d.ts +4 -4
- package/esm/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/esm/hooks/features/rows/gridRowSpanningUtils.d.ts +5 -5
- package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/esm/hooks/features/rows/gridRowsSelector.d.ts +3 -3
- package/esm/hooks/features/rows/index.d.ts +1 -1
- package/esm/hooks/features/rows/useGridParamsApi.js +1 -1
- package/esm/hooks/features/rows/useGridRowSpanning.d.ts +5 -5
- package/esm/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/esm/hooks/features/sorting/index.d.ts +2 -2
- package/esm/hooks/features/statePersistence/index.d.ts +1 -1
- package/esm/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +1 -1
- package/esm/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
- package/esm/hooks/utils/index.d.ts +1 -1
- package/esm/hooks/utils/useGridEvent.d.ts +1 -1
- package/esm/hooks/utils/useGridRootProps.d.ts +1 -1
- package/esm/hooks/utils/useGridSelector.d.ts +2 -2
- package/esm/hooks/utils/useGridVisibleRows.d.ts +1 -1
- package/esm/index.d.ts +5 -5
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +24 -24
- package/esm/locales/hrHR.d.ts +1 -1
- package/esm/locales/hyAM.d.ts +2 -0
- package/esm/locales/hyAM.js +296 -0
- package/esm/locales/index.d.ts +1 -0
- package/esm/locales/index.js +1 -0
- package/esm/locales/ptPT.d.ts +1 -1
- package/esm/locales/zhHK.d.ts +1 -1
- package/esm/material/index.d.ts +2 -2
- package/esm/material/index.js +6 -1
- package/esm/material/variables.js +2 -2
- package/esm/models/api/gridApiCommon.d.ts +32 -32
- package/esm/models/api/gridApiCommunity.d.ts +7 -7
- package/esm/models/api/gridCallbackDetails.d.ts +2 -2
- package/esm/models/api/gridColumnApi.d.ts +1 -1
- package/esm/models/api/gridCoreApi.d.ts +4 -4
- package/esm/models/api/gridFilterApi.d.ts +1 -1
- package/esm/models/api/gridLocaleTextApi.d.ts +1 -1
- package/esm/models/api/gridRowSelectionApi.d.ts +2 -2
- package/esm/models/api/index.d.ts +10 -10
- package/esm/models/colDef/gridColDef.d.ts +2 -2
- package/esm/models/colDef/index.d.ts +1 -1
- package/esm/models/configuration/gridConfiguration.d.ts +2 -2
- package/esm/models/controlStateItem.d.ts +4 -4
- package/esm/models/events/gridEventListener.d.ts +2 -2
- package/esm/models/events/gridEventLookup.d.ts +14 -8
- package/esm/models/events/gridEventPublisher.d.ts +1 -1
- package/esm/models/gridCell.d.ts +1 -1
- package/esm/models/gridColumnGrouping.d.ts +1 -1
- package/esm/models/gridDataSource.d.ts +1 -1
- package/esm/models/gridEditRowModel.d.ts +1 -1
- package/esm/models/gridExport.d.ts +2 -2
- package/esm/models/gridFilterInputComponent.d.ts +2 -2
- package/esm/models/gridFilterOperator.d.ts +4 -4
- package/esm/models/gridRowSelectionManager.d.ts +2 -2
- package/esm/models/gridRows.d.ts +1 -1
- package/esm/models/gridSlotsComponent.d.ts +3 -3
- package/esm/models/gridSlotsComponentsProps.d.ts +20 -20
- package/esm/models/gridStateCommunity.d.ts +9 -9
- package/esm/models/index.d.ts +5 -5
- package/esm/models/params/gridCellParams.d.ts +1 -1
- package/esm/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/esm/models/params/gridColumnOrderChangeParams.d.ts +1 -1
- package/esm/models/params/gridColumnResizeParams.d.ts +1 -1
- package/esm/models/params/gridRowParams.d.ts +1 -1
- package/esm/models/props/DataGridProps.d.ts +5 -5
- package/esm/utils/composeGridClasses.d.ts +1 -1
- package/esm/utils/domUtils.d.ts +2 -2
- package/esm/utils/getGridLocalization.d.ts +1 -1
- package/esm/utils/getPublicApiRef.d.ts +1 -1
- package/esm/utils/index.d.ts +1 -1
- package/hooks/core/gridPropsSelectors.d.ts +2 -2
- package/hooks/core/index.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.d.ts +1 -1
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridProps.d.ts +3 -3
- package/hooks/core/useGridRefs.d.ts +1 -1
- package/hooks/core/useGridStateInitialization.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +2 -2
- package/hooks/features/columnGrouping/index.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +1 -2
- package/hooks/features/columnResize/gridColumnResizeApi.d.ts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +2 -2
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +9 -9
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/hooks/features/dataSource/cache.d.ts +1 -1
- package/hooks/features/dataSource/gridDataSourceError.d.ts +1 -1
- package/hooks/features/dataSource/gridDataSourceSelector.d.ts +1 -1
- package/hooks/features/dataSource/models.d.ts +3 -3
- package/hooks/features/dataSource/useGridDataSource.d.ts +2 -2
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +5 -5
- package/hooks/features/dataSource/utils.d.ts +1 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +1 -1
- package/hooks/features/dimensions/index.d.ts +2 -2
- package/hooks/features/export/serializers/csvSerializer.d.ts +4 -4
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.js +3 -34
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +1 -1
- package/hooks/features/filter/index.d.ts +2 -2
- package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.d.ts +4 -4
- package/hooks/features/listView/gridListViewSelectors.d.ts +1 -1
- package/hooks/features/listView/useGridListView.d.ts +1 -1
- package/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/hooks/features/pagination/index.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +1 -1
- package/hooks/features/pivoting/gridPivotingSelectors.d.ts +3 -3
- package/hooks/features/rowSelection/gridRowSelectionSelector.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +7 -6
- package/hooks/features/rowSelection/utils.d.ts +4 -4
- package/hooks/features/rows/gridRowSpanningSelectors.d.ts +3 -3
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +5 -5
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -1
- package/hooks/features/rows/gridRowsSelector.d.ts +3 -3
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/useGridParamsApi.js +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +5 -5
- package/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/hooks/features/sorting/index.d.ts +2 -2
- package/hooks/features/statePersistence/index.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +1 -1
- package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
- package/hooks/utils/index.d.ts +1 -1
- package/hooks/utils/useGridEvent.d.ts +1 -1
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/hooks/utils/useGridSelector.d.ts +2 -2
- package/hooks/utils/useGridVisibleRows.d.ts +1 -1
- package/index.d.ts +5 -5
- package/index.js +1 -1
- package/internals/index.d.ts +24 -24
- package/locales/hrHR.d.ts +1 -1
- package/locales/hyAM.d.ts +2 -0
- package/locales/hyAM.js +302 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +11 -0
- package/locales/ptPT.d.ts +1 -1
- package/locales/zhHK.d.ts +1 -1
- package/material/index.d.ts +2 -2
- package/material/index.js +6 -1
- package/material/variables.js +1 -1
- package/models/api/gridApiCommon.d.ts +32 -32
- package/models/api/gridApiCommunity.d.ts +7 -7
- package/models/api/gridCallbackDetails.d.ts +2 -2
- package/models/api/gridColumnApi.d.ts +1 -1
- package/models/api/gridCoreApi.d.ts +4 -4
- package/models/api/gridFilterApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +1 -1
- package/models/api/gridRowSelectionApi.d.ts +2 -2
- package/models/api/index.d.ts +10 -10
- package/models/colDef/gridColDef.d.ts +2 -2
- package/models/colDef/index.d.ts +1 -1
- package/models/configuration/gridConfiguration.d.ts +2 -2
- package/models/controlStateItem.d.ts +4 -4
- package/models/events/gridEventListener.d.ts +2 -2
- package/models/events/gridEventLookup.d.ts +14 -8
- package/models/events/gridEventPublisher.d.ts +1 -1
- package/models/gridCell.d.ts +1 -1
- package/models/gridColumnGrouping.d.ts +1 -1
- package/models/gridDataSource.d.ts +1 -1
- package/models/gridEditRowModel.d.ts +1 -1
- package/models/gridExport.d.ts +2 -2
- package/models/gridFilterInputComponent.d.ts +2 -2
- package/models/gridFilterOperator.d.ts +4 -4
- package/models/gridRowSelectionManager.d.ts +2 -2
- package/models/gridRows.d.ts +1 -1
- package/models/gridSlotsComponent.d.ts +3 -3
- package/models/gridSlotsComponentsProps.d.ts +20 -20
- package/models/gridStateCommunity.d.ts +9 -9
- package/models/index.d.ts +5 -5
- package/models/params/gridCellParams.d.ts +1 -1
- package/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/models/params/gridColumnOrderChangeParams.d.ts +1 -1
- package/models/params/gridColumnResizeParams.d.ts +1 -1
- package/models/params/gridRowParams.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +5 -5
- package/package.json +2 -2
- package/utils/composeGridClasses.d.ts +1 -1
- package/utils/domUtils.d.ts +2 -2
- package/utils/getGridLocalization.d.ts +1 -1
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/index.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
export interface FilterPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the filter panel is open.
|
|
@@ -38,7 +38,6 @@ const GridPanelContent = (0, _styles.styled)('div', {
|
|
|
38
38
|
boxShadow: _cssVariables.vars.shadows.overlay,
|
|
39
39
|
display: 'flex',
|
|
40
40
|
maxWidth: `calc(100vw - ${_cssVariables.vars.spacing(2)})`,
|
|
41
|
-
margin: _cssVariables.vars.spacing(1),
|
|
42
41
|
overflow: 'auto'
|
|
43
42
|
});
|
|
44
43
|
const GridPanel = exports.GridPanel = (0, _forwardRef.forwardRef)((props, ref) => {
|
|
@@ -29,8 +29,7 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
const GridPanelFooterRoot = (0, _styles.styled)('div', {
|
|
31
31
|
name: 'MuiDataGrid',
|
|
32
|
-
slot: 'PanelFooter'
|
|
33
|
-
overridesResolver: (props, styles) => styles.panelFooter
|
|
32
|
+
slot: 'PanelFooter'
|
|
34
33
|
})({
|
|
35
34
|
padding: _cssVariables.vars.spacing(1),
|
|
36
35
|
display: 'flex',
|
|
@@ -29,8 +29,7 @@ const useUtilityClasses = ownerState => {
|
|
|
29
29
|
};
|
|
30
30
|
const GridPanelHeaderRoot = (0, _system.styled)('div', {
|
|
31
31
|
name: 'MuiDataGrid',
|
|
32
|
-
slot: 'PanelHeader'
|
|
33
|
-
overridesResolver: (props, styles) => styles.panelHeader
|
|
32
|
+
slot: 'PanelHeader'
|
|
34
33
|
})({
|
|
35
34
|
padding: _cssVariables.vars.spacing(1)
|
|
36
35
|
});
|
|
@@ -44,16 +44,14 @@ const useUtilityClasses = ownerState => {
|
|
|
44
44
|
};
|
|
45
45
|
const GridFilterFormRoot = (0, _styles.styled)('div', {
|
|
46
46
|
name: 'MuiDataGrid',
|
|
47
|
-
slot: 'FilterForm'
|
|
48
|
-
overridesResolver: (props, styles) => styles.filterForm
|
|
47
|
+
slot: 'FilterForm'
|
|
49
48
|
})({
|
|
50
49
|
display: 'flex',
|
|
51
50
|
gap: _cssVariables.vars.spacing(1.5)
|
|
52
51
|
});
|
|
53
52
|
const FilterFormDeleteIcon = (0, _styles.styled)('div', {
|
|
54
53
|
name: 'MuiDataGrid',
|
|
55
|
-
slot: 'FilterFormDeleteIcon'
|
|
56
|
-
overridesResolver: (_, styles) => styles.filterFormDeleteIcon
|
|
54
|
+
slot: 'FilterFormDeleteIcon'
|
|
57
55
|
})({
|
|
58
56
|
flexShrink: 0,
|
|
59
57
|
display: 'flex',
|
|
@@ -62,30 +60,26 @@ const FilterFormDeleteIcon = (0, _styles.styled)('div', {
|
|
|
62
60
|
});
|
|
63
61
|
const FilterFormLogicOperatorInput = (0, _styles.styled)('div', {
|
|
64
62
|
name: 'MuiDataGrid',
|
|
65
|
-
slot: 'FilterFormLogicOperatorInput'
|
|
66
|
-
overridesResolver: (_, styles) => styles.filterFormLogicOperatorInput
|
|
63
|
+
slot: 'FilterFormLogicOperatorInput'
|
|
67
64
|
})({
|
|
68
65
|
minWidth: 75,
|
|
69
66
|
justifyContent: 'end'
|
|
70
67
|
});
|
|
71
68
|
const FilterFormColumnInput = (0, _styles.styled)('div', {
|
|
72
69
|
name: 'MuiDataGrid',
|
|
73
|
-
slot: 'FilterFormColumnInput'
|
|
74
|
-
overridesResolver: (_, styles) => styles.filterFormColumnInput
|
|
70
|
+
slot: 'FilterFormColumnInput'
|
|
75
71
|
})({
|
|
76
72
|
width: 150
|
|
77
73
|
});
|
|
78
74
|
const FilterFormOperatorInput = (0, _styles.styled)('div', {
|
|
79
75
|
name: 'MuiDataGrid',
|
|
80
|
-
slot: 'FilterFormOperatorInput'
|
|
81
|
-
overridesResolver: (_, styles) => styles.filterFormOperatorInput
|
|
76
|
+
slot: 'FilterFormOperatorInput'
|
|
82
77
|
})({
|
|
83
78
|
width: 150
|
|
84
79
|
});
|
|
85
80
|
const FilterFormValueInput = (0, _styles.styled)('div', {
|
|
86
81
|
name: 'MuiDataGrid',
|
|
87
|
-
slot: 'FilterFormValueInput'
|
|
88
|
-
overridesResolver: (_, styles) => styles.filterFormValueInput
|
|
82
|
+
slot: 'FilterFormValueInput'
|
|
89
83
|
})({
|
|
90
84
|
width: 190
|
|
91
85
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AutocompleteProps } from "../../../models/gridBaseSlots.js";
|
|
3
3
|
import { GridFilterInputValueProps } from "../../../models/gridFilterInputComponent.js";
|
|
4
|
-
import type { ValueOptions } from
|
|
4
|
+
import type { ValueOptions } from "../../../models/colDef/gridColDef.js";
|
|
5
5
|
export type GridFilterInputMultipleSingleSelectProps = GridFilterInputValueProps<Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options'>> & {
|
|
6
6
|
type?: 'singleSelect';
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GridColDef, GridSingleSelectColDef } from
|
|
2
|
-
import type { GridValueOptionsParams } from
|
|
1
|
+
import type { GridColDef, GridSingleSelectColDef } from "../../../models/colDef/gridColDef.js";
|
|
2
|
+
import type { GridValueOptionsParams } from "../../../models/params/gridValueOptionsParams.js";
|
|
3
3
|
export declare function isSingleSelectColDef(colDef: GridColDef | null): colDef is GridSingleSelectColDef;
|
|
4
4
|
export declare function getValueOptions(column: GridSingleSelectColDef, additionalParams?: Omit<GridValueOptionsParams, 'field'>): import("@mui/x-data-grid").ValueOptions[] | undefined;
|
|
5
5
|
export declare function getValueFromValueOptions(value: string, valueOptions: any[] | undefined, getOptionValue: NonNullable<GridSingleSelectColDef['getOptionValue']>): any;
|
|
@@ -3,8 +3,8 @@ export { GridFilterInputValue, type GridTypeFilterInputValueProps } from "./Grid
|
|
|
3
3
|
export * from "./GridFilterInputDate.js";
|
|
4
4
|
export * from "./GridFilterInputSingleSelect.js";
|
|
5
5
|
export { GridFilterInputBoolean } from "./GridFilterInputBoolean.js";
|
|
6
|
-
export type { GridFilterInputBooleanProps } from
|
|
6
|
+
export type { GridFilterInputBooleanProps } from "./GridFilterInputBoolean.js";
|
|
7
7
|
export { GridFilterPanel } from "./GridFilterPanel.js";
|
|
8
|
-
export type { GetColumnForNewFilterArgs } from
|
|
8
|
+
export type { GetColumnForNewFilterArgs } from "./GridFilterPanel.js";
|
|
9
9
|
export * from "./GridFilterInputMultipleValue.js";
|
|
10
10
|
export * from "./GridFilterInputMultipleSingleSelect.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { QuickFilterState } from "./QuickFilterContext.js";
|
|
3
3
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
4
|
-
import type { GridFilterModel } from
|
|
4
|
+
import type { GridFilterModel } from "../../models/index.js";
|
|
5
5
|
export type QuickFilterProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'className'> & {
|
|
6
6
|
/**
|
|
7
7
|
* Function responsible for parsing text input in an array of independent values for quick filtering.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
import { QuickFilterState } from "./QuickFilterContext.js";
|
|
5
5
|
export type QuickFilterClearProps = Omit<GridSlotProps['baseIconButton'], 'className'> & {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
import { QuickFilterState } from "./QuickFilterContext.js";
|
|
5
5
|
export type QuickFilterControlProps = Omit<GridSlotProps['baseTextField'], 'className'> & {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
import { QuickFilterState } from "./QuickFilterContext.js";
|
|
5
5
|
export type QuickFilterTriggerProps = Omit<GridSlotProps['baseButton'], 'className'> & {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
interface GridToolbarColumnsButtonProps {
|
|
4
4
|
/**
|
|
5
5
|
* The props used for each slot inside.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
interface GridToolbarDensitySelectorProps {
|
|
4
4
|
/**
|
|
5
5
|
* The props used for each slot inside.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
import { GridCsvExportOptions, GridPrintExportOptions } from "../../models/gridExport.js";
|
|
4
4
|
export interface GridExportDisplayOptions {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
interface GridToolbarExportContainerProps {
|
|
4
4
|
/**
|
|
5
5
|
* The props used for each slot inside.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
export interface GridToolbarFilterButtonProps {
|
|
4
4
|
/**
|
|
5
5
|
* The props used for each slot inside.
|
|
@@ -35,8 +35,7 @@ const useUtilityClasses = ownerState => {
|
|
|
35
35
|
};
|
|
36
36
|
const GridToolbarFilterListRoot = (0, _styles.styled)('ul', {
|
|
37
37
|
name: 'MuiDataGrid',
|
|
38
|
-
slot: 'ToolbarFilterList'
|
|
39
|
-
overridesResolver: (_props, styles) => styles.toolbarFilterList
|
|
38
|
+
slot: 'ToolbarFilterList'
|
|
40
39
|
})({
|
|
41
40
|
margin: _cssVariables.vars.spacing(1, 1, 0.5),
|
|
42
41
|
padding: _cssVariables.vars.spacing(0, 1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./GridToolbar.js";
|
|
2
2
|
export * from "./GridToolbarColumnsButton.js";
|
|
3
3
|
export * from "./GridToolbarDensitySelector.js";
|
|
4
|
-
export type { GridExportDisplayOptions, GridExportMenuItemProps, GridCsvExportMenuItemProps, GridPrintExportMenuItemProps, GridToolbarExportProps } from
|
|
4
|
+
export type { GridExportDisplayOptions, GridExportMenuItemProps, GridCsvExportMenuItemProps, GridPrintExportMenuItemProps, GridToolbarExportProps } from "./GridToolbarExport.js";
|
|
5
5
|
export { GridCsvExportMenuItem, GridPrintExportMenuItem, GridToolbarExport } from "./GridToolbarExport.js";
|
|
6
6
|
export * from "./GridToolbarFilterButton.js";
|
|
7
7
|
export * from "./GridToolbarExportContainer.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
export type ToolbarButtonProps = GridSlotProps['baseIconButton'] & {
|
|
5
5
|
/**
|
|
6
6
|
* A function to customize rendering of the component.
|
|
@@ -32,8 +32,7 @@ const useUtilityClasses = ownerState => {
|
|
|
32
32
|
};
|
|
33
33
|
const VirtualScrollerRenderZoneRoot = (0, _system.styled)('div', {
|
|
34
34
|
name: 'MuiDataGrid',
|
|
35
|
-
slot: 'VirtualScrollerRenderZone'
|
|
36
|
-
overridesResolver: (props, styles) => styles.virtualScrollerRenderZone
|
|
35
|
+
slot: 'VirtualScrollerRenderZone'
|
|
37
36
|
})({
|
|
38
37
|
position: 'absolute',
|
|
39
38
|
display: 'flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DataGridPropsWithDefaultValues } from
|
|
1
|
+
import type { DataGridPropsWithDefaultValues } from "../models/props/DataGridProps.js";
|
|
2
2
|
/**
|
|
3
3
|
* The default values of `DataGridPropsWithDefaultValues` to inject in the props of DataGrid.
|
|
4
4
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DataGridProps } from "../models/props/DataGridProps.js";
|
|
3
3
|
import { GridValidRowModel } from "../models/gridRows.js";
|
|
4
|
-
export type { GridSlotsComponent as GridSlots } from
|
|
4
|
+
export type { GridSlotsComponent as GridSlots } from "../models/index.js";
|
|
5
5
|
interface DataGridComponent {
|
|
6
6
|
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
7
7
|
propTypes?: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
import { getThemeProps } from '@mui/system';
|
|
4
5
|
import { GRID_DEFAULT_LOCALE_TEXT } from "../constants/index.js";
|
|
5
6
|
import { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlotsComponents.js";
|
|
6
7
|
import { computeSlots } from "../internals/utils/index.js";
|
|
@@ -24,12 +25,12 @@ const getDataGridForcedProps = themedProps => _extends({}, DATA_GRID_FORCED_PROP
|
|
|
24
25
|
} : {});
|
|
25
26
|
const defaultSlots = DATA_GRID_DEFAULT_SLOTS_COMPONENTS;
|
|
26
27
|
export const useDataGridProps = inProps => {
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
useThemeProps({
|
|
28
|
+
const theme = useTheme();
|
|
29
|
+
const themedProps = React.useMemo(() => getThemeProps({
|
|
30
30
|
props: inProps,
|
|
31
|
+
theme,
|
|
31
32
|
name: 'MuiDataGrid'
|
|
32
|
-
});
|
|
33
|
+
}), [theme, inProps]);
|
|
33
34
|
const localeText = React.useMemo(() => _extends({}, GRID_DEFAULT_LOCALE_TEXT, themedProps.localeText), [themedProps.localeText]);
|
|
34
35
|
const slots = React.useMemo(() => computeSlots({
|
|
35
36
|
defaultSlots,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GridColumnTypesRecord } from
|
|
1
|
+
import type { GridColumnTypesRecord } from "../models/colDef/gridColumnTypesRecord.js";
|
|
2
2
|
export declare const DEFAULT_GRID_COL_TYPE_KEY = "string";
|
|
3
3
|
export declare const getGridDefaultColumnTypes: () => GridColumnTypesRecord;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridFilterOperator } from "../models/gridFilterOperator.js";
|
|
2
|
-
import type { GridFilterInputValueProps } from
|
|
3
|
-
import type { GetApplyQuickFilterFn } from
|
|
2
|
+
import type { GridFilterInputValueProps } from "../models/gridFilterInputComponent.js";
|
|
3
|
+
import type { GetApplyQuickFilterFn } from "../models/colDef/gridColDef.js";
|
|
4
4
|
export declare const getGridNumericQuickFilterFn: GetApplyQuickFilterFn<any, number | string | null>;
|
|
5
5
|
export declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any, GridFilterInputValueProps & {
|
|
6
6
|
type?: "number";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetApplyQuickFilterFn } from
|
|
1
|
+
import type { GetApplyQuickFilterFn } from "../models/colDef/gridColDef.js";
|
|
2
2
|
import { GridFilterOperator } from "../models/gridFilterOperator.js";
|
|
3
3
|
export declare const getGridStringQuickFilterFn: GetApplyQuickFilterFn<any, unknown>;
|
|
4
4
|
export declare const getGridStringOperators: (disableTrim?: boolean) => GridFilterOperator<any, number | string | null, any>[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VirtualScroller } from
|
|
1
|
+
import type { VirtualScroller } from "../hooks/features/virtualization/useGridVirtualScroller.js";
|
|
2
2
|
export interface GridDetailPanelsProps {
|
|
3
3
|
virtualScroller: VirtualScroller;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VirtualScroller } from
|
|
1
|
+
import type { VirtualScroller } from "../hooks/features/virtualization/useGridVirtualScroller.js";
|
|
2
2
|
export interface GridPinnedRowsProps {
|
|
3
3
|
position: 'top' | 'bottom';
|
|
4
4
|
virtualScroller: VirtualScroller;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridRowId, GridRowModel } from "../models/gridRows.js";
|
|
3
3
|
import { GridPinnedColumns } from "../hooks/features/columns/index.js";
|
|
4
|
-
import type { GridStateColDef } from
|
|
4
|
+
import type { GridStateColDef } from "../models/colDef/gridColDef.js";
|
|
5
5
|
export interface GridRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
row: GridRowModel;
|
|
7
7
|
rowId: GridRowId;
|
|
@@ -23,8 +23,7 @@ const useUtilityClasses = ownerState => {
|
|
|
23
23
|
};
|
|
24
24
|
const GridRowCountRoot = styled('div', {
|
|
25
25
|
name: 'MuiDataGrid',
|
|
26
|
-
slot: 'RowCount'
|
|
27
|
-
overridesResolver: (props, styles) => styles.rowCount
|
|
26
|
+
slot: 'RowCount'
|
|
28
27
|
})({
|
|
29
28
|
alignItems: 'center',
|
|
30
29
|
display: 'flex',
|
|
@@ -23,8 +23,7 @@ const useUtilityClasses = ownerState => {
|
|
|
23
23
|
};
|
|
24
24
|
const GridSelectedRowCountRoot = styled('div', {
|
|
25
25
|
name: 'MuiDataGrid',
|
|
26
|
-
slot: 'SelectedRowCount'
|
|
27
|
-
overridesResolver: (props, styles) => styles.selectedRowCount
|
|
26
|
+
slot: 'SelectedRowCount'
|
|
28
27
|
})({
|
|
29
28
|
alignItems: 'center',
|
|
30
29
|
display: 'flex',
|
|
@@ -23,8 +23,7 @@ import { attachPinnedStyle } from "../internals/utils/index.js";
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
const SkeletonOverlay = styled('div', {
|
|
25
25
|
name: 'MuiDataGrid',
|
|
26
|
-
slot: 'SkeletonLoadingOverlay'
|
|
27
|
-
overridesResolver: (props, styles) => styles.skeletonLoadingOverlay
|
|
26
|
+
slot: 'SkeletonLoadingOverlay'
|
|
28
27
|
})({
|
|
29
28
|
minWidth: '100%',
|
|
30
29
|
width: 'max-content',
|
|
@@ -14,8 +14,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
14
14
|
const GridOverlayWrapperRoot = styled('div', {
|
|
15
15
|
name: 'MuiDataGrid',
|
|
16
16
|
slot: 'OverlayWrapper',
|
|
17
|
-
shouldForwardProp: prop => prop !== 'overlayType' && prop !== 'loadingOverlayVariant' && prop !== 'right'
|
|
18
|
-
overridesResolver: (props, styles) => styles.overlayWrapper
|
|
17
|
+
shouldForwardProp: prop => prop !== 'overlayType' && prop !== 'loadingOverlayVariant' && prop !== 'right'
|
|
19
18
|
})(({
|
|
20
19
|
overlayType,
|
|
21
20
|
loadingOverlayVariant,
|
|
@@ -39,8 +38,7 @@ loadingOverlayVariant !== 'skeleton' ? {
|
|
|
39
38
|
const GridOverlayWrapperInner = styled('div', {
|
|
40
39
|
name: 'MuiDataGrid',
|
|
41
40
|
slot: 'OverlayWrapperInner',
|
|
42
|
-
shouldForwardProp: prop => prop !== 'overlayType' && prop !== 'loadingOverlayVariant'
|
|
43
|
-
overridesResolver: (props, styles) => styles.overlayWrapperInner
|
|
41
|
+
shouldForwardProp: prop => prop !== 'overlayType' && prop !== 'loadingOverlayVariant'
|
|
44
42
|
})({});
|
|
45
43
|
const useUtilityClasses = ownerState => {
|
|
46
44
|
const {
|
|
@@ -44,7 +44,7 @@ declare const GridActionsCellItem: React.ForwardRefExoticComponent<GridActionsCe
|
|
|
44
44
|
} & import("@mui/x-data-grid").BaseMenuItemPropsOverrides, "component">) | Omit<GridActionsCellItemCommonProps & {
|
|
45
45
|
showInMenu?: false;
|
|
46
46
|
icon: React.ReactElement<any>;
|
|
47
|
-
} & Omit<Omit<import("../../models/gridBaseSlots").ButtonProps, "startIcon"> & {
|
|
47
|
+
} & Omit<Omit<import("../../models/gridBaseSlots.js").ButtonProps, "startIcon"> & {
|
|
48
48
|
label?: string;
|
|
49
49
|
color?: "default" | "inherit" | "primary";
|
|
50
50
|
edge?: "start" | "end" | false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridColDef } from
|
|
3
|
-
import type { GridRenderCellParams } from
|
|
2
|
+
import type { GridColDef } from "../../models/colDef/gridColDef.js";
|
|
3
|
+
import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
|
|
4
4
|
interface GridBooleanCellProps extends GridRenderCellParams {
|
|
5
5
|
hideDescendantCount?: boolean;
|
|
6
6
|
}
|
|
@@ -52,9 +52,6 @@ const GridEditInputCell = forwardRef((props, ref) => {
|
|
|
52
52
|
const classes = useUtilityClasses(rootProps);
|
|
53
53
|
const handleChange = React.useCallback(async event => {
|
|
54
54
|
const newValue = event.target.value;
|
|
55
|
-
if (onValueChange) {
|
|
56
|
-
await onValueChange(event, newValue);
|
|
57
|
-
}
|
|
58
55
|
const column = apiRef.current.getColumn(field);
|
|
59
56
|
let parsedValue = newValue;
|
|
60
57
|
if (column.valueParser) {
|
|
@@ -68,6 +65,9 @@ const GridEditInputCell = forwardRef((props, ref) => {
|
|
|
68
65
|
debounceMs,
|
|
69
66
|
unstable_skipValueParser: true
|
|
70
67
|
}, event);
|
|
68
|
+
if (onValueChange) {
|
|
69
|
+
await onValueChange(event, newValue);
|
|
70
|
+
}
|
|
71
71
|
}, [apiRef, debounceMs, field, id, onValueChange]);
|
|
72
72
|
const meta = apiRef.current.unstable_getEditCellMeta(id, field);
|
|
73
73
|
React.useEffect(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridSlotProps } from
|
|
2
|
+
import type { GridSlotProps } from "../../models/gridSlotsComponentsProps.js";
|
|
3
3
|
import { GridRenderEditCellParams } from "../../models/params/gridCellParams.js";
|
|
4
4
|
export interface GridEditSingleSelectCellProps extends GridRenderEditCellParams {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { GridCell } from "./GridCell.js";
|
|
2
|
-
export type { GridCellProps } from
|
|
2
|
+
export type { GridCellProps } from "./GridCell.js";
|
|
3
3
|
export * from "./GridBooleanCell.js";
|
|
4
4
|
export * from "./GridEditBooleanCell.js";
|
|
5
5
|
export * from "./GridEditDateCell.js";
|
|
@@ -20,8 +20,7 @@ const useUtilityClasses = ownerState => {
|
|
|
20
20
|
};
|
|
21
21
|
const GridColumnHeadersRoot = styled('div', {
|
|
22
22
|
name: 'MuiDataGrid',
|
|
23
|
-
slot: 'ColumnHeaders'
|
|
24
|
-
overridesResolver: (props, styles) => styles.columnHeaders
|
|
23
|
+
slot: 'ColumnHeaders'
|
|
25
24
|
})({
|
|
26
25
|
display: 'flex',
|
|
27
26
|
flexDirection: 'column',
|
|
@@ -22,8 +22,7 @@ const useUtilityClasses = ownerState => {
|
|
|
22
22
|
};
|
|
23
23
|
const GridColumnHeaderTitleRoot = styled('div', {
|
|
24
24
|
name: 'MuiDataGrid',
|
|
25
|
-
slot: 'ColumnHeaderTitle'
|
|
26
|
-
overridesResolver: (props, styles) => styles.columnHeaderTitle
|
|
25
|
+
slot: 'ColumnHeaderTitle'
|
|
27
26
|
})({
|
|
28
27
|
textOverflow: 'ellipsis',
|
|
29
28
|
overflow: 'hidden',
|
|
@@ -20,8 +20,7 @@ const useUtilityClasses = ownerState => {
|
|
|
20
20
|
};
|
|
21
21
|
const GridIconButtonContainerRoot = styled('div', {
|
|
22
22
|
name: 'MuiDataGrid',
|
|
23
|
-
slot: 'IconButtonContainer'
|
|
24
|
-
overridesResolver: (props, styles) => styles.iconButtonContainer
|
|
23
|
+
slot: 'IconButtonContainer'
|
|
25
24
|
})(() => ({
|
|
26
25
|
display: 'flex',
|
|
27
26
|
visibility: 'hidden',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridRenderCellParams } from
|
|
2
|
+
import type { GridRenderCellParams } from "../../models/params/gridCellParams.js";
|
|
3
3
|
declare const GridCellCheckboxForwardRef: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
|
|
4
4
|
export { GridCellCheckboxForwardRef };
|
|
5
5
|
export declare const GridCellCheckboxRenderer: React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender>> | React.ForwardRefExoticComponent<GridRenderCellParams<any, any, any, import("@mui/x-data-grid").GridTreeNodeWithRender> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridColumnHeaderParams } from
|
|
2
|
+
import type { GridColumnHeaderParams } from "../../models/params/gridColumnHeaderParams.js";
|
|
3
3
|
declare const GridHeaderCheckbox: React.ForwardRefExoticComponent<GridColumnHeaderParams<import("@mui/x-data-grid").GridValidRowModel, any, any>> | React.ForwardRefExoticComponent<GridColumnHeaderParams<import("@mui/x-data-grid").GridValidRowModel, any, any> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export { GridHeaderCheckbox };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TextFieldProps } from "../../models/gridBaseSlots.js";
|
|
3
|
-
import type { GridColDef } from
|
|
3
|
+
import type { GridColDef } from "../../models/colDef/gridColDef.js";
|
|
4
4
|
export interface GridColumnsManagementProps {
|
|
5
5
|
sort?: 'asc' | 'desc';
|
|
6
6
|
searchPredicate?: (column: GridColDef, searchValue: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { GridColumnVisibilityModel } from "../../hooks/features/columns/gridColumnsInterfaces.js";
|
|
2
|
-
import type { GridColumnsManagementProps } from
|
|
2
|
+
import type { GridColumnsManagementProps } from "./GridColumnsManagement.js";
|
|
3
3
|
export declare const checkColumnVisibilityModelsSame: (a: GridColumnVisibilityModel, b: GridColumnVisibilityModel) => boolean;
|
|
4
4
|
export declare const defaultSearchPredicate: NonNullable<GridColumnsManagementProps['searchPredicate']>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
export interface ColumnsPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the columns panel is open.
|
|
@@ -21,8 +21,7 @@ const useUtilityClasses = ownerState => {
|
|
|
21
21
|
};
|
|
22
22
|
const GridFooterContainerRoot = styled('div', {
|
|
23
23
|
name: 'MuiDataGrid',
|
|
24
|
-
slot: 'FooterContainer'
|
|
25
|
-
overridesResolver: (props, styles) => styles.footerContainer
|
|
24
|
+
slot: 'FooterContainer'
|
|
26
25
|
})({
|
|
27
26
|
display: 'flex',
|
|
28
27
|
justifyContent: 'space-between',
|
|
@@ -3,16 +3,6 @@ import { gridClasses as c } from "../../constants/gridClasses.js";
|
|
|
3
3
|
import { vars } from "../../constants/cssVariables.js";
|
|
4
4
|
import { useGridSelector } from "../../hooks/utils/useGridSelector.js";
|
|
5
5
|
import { useGridPrivateApiContext } from "../../hooks/utils/useGridPrivateApiContext.js";
|
|
6
|
-
const columnHeaderStyles = {
|
|
7
|
-
[`& .${c.iconButtonContainer}`]: {
|
|
8
|
-
visibility: 'visible',
|
|
9
|
-
width: 'auto'
|
|
10
|
-
},
|
|
11
|
-
[`& .${c.menuIcon}`]: {
|
|
12
|
-
width: 'auto',
|
|
13
|
-
visibility: 'visible'
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
6
|
const columnSeparatorTargetSize = 10;
|
|
17
7
|
const columnSeparatorOffset = -5;
|
|
18
8
|
const focusOutlineWidth = 1;
|
|
@@ -514,7 +504,16 @@ export const GridRootStyles = styled('div', {
|
|
|
514
504
|
backgroundColor: headerBackground
|
|
515
505
|
},
|
|
516
506
|
'@media (hover: hover)': {
|
|
517
|
-
[`& .${c.columnHeader}:hover`]:
|
|
507
|
+
[`& .${c.columnHeader}:hover`]: {
|
|
508
|
+
[`& .${c.menuIcon}`]: {
|
|
509
|
+
width: 'auto',
|
|
510
|
+
visibility: 'visible'
|
|
511
|
+
},
|
|
512
|
+
[`& .${c.iconButtonContainer}`]: {
|
|
513
|
+
visibility: 'visible',
|
|
514
|
+
width: 'auto'
|
|
515
|
+
}
|
|
516
|
+
},
|
|
518
517
|
[`& .${c.columnHeader}:not(.${c['columnHeader--sorted']}):hover .${c.sortButton},
|
|
519
518
|
& .${c.pivotPanelField}:not(.${c['pivotPanelField--sorted']}):hover .${c.sortButton},
|
|
520
519
|
& .${c.pivotPanelField}:not(.${c['pivotPanelField--sorted']}) .${c.sortButton}:focus-visible`]: {
|
|
@@ -522,7 +521,10 @@ export const GridRootStyles = styled('div', {
|
|
|
522
521
|
}
|
|
523
522
|
},
|
|
524
523
|
'@media (hover: none)': {
|
|
525
|
-
[`& .${c.columnHeader}`]:
|
|
524
|
+
[`& .${c.columnHeader} .${c.menuIcon}`]: {
|
|
525
|
+
width: 'auto',
|
|
526
|
+
visibility: 'visible'
|
|
527
|
+
},
|
|
526
528
|
[`& .${c.columnHeader}:focus,
|
|
527
529
|
& .${c['columnHeader--siblingFocused']}`]: {
|
|
528
530
|
[`.${c['columnSeparator--resizable']}`]: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
3
|
import { GridCsvExportOptions } from "../../models/gridExport.js";
|
|
4
|
-
import type { GridSlotProps } from
|
|
4
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
5
5
|
export type ExportCsvProps = GridSlotProps['baseButton'] & {
|
|
6
6
|
/**
|
|
7
7
|
* A function to customize rendering of the component.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
3
|
import { GridPrintExportOptions } from "../../models/gridExport.js";
|
|
4
|
-
import type { GridSlotProps } from
|
|
4
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
5
5
|
export type ExportPrintProps = GridSlotProps['baseButton'] & {
|
|
6
6
|
/**
|
|
7
7
|
* A function to customize rendering of the component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RenderProp } from "../../hooks/utils/useGridComponentRenderer.js";
|
|
3
|
-
import type { GridSlotProps } from
|
|
3
|
+
import type { GridSlotProps } from "../../models/index.js";
|
|
4
4
|
export interface FilterPanelState {
|
|
5
5
|
/**
|
|
6
6
|
* If `true`, the filter panel is open.
|