@mui/x-data-grid 8.1.0 → 8.3.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 +233 -7
- 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/GridScrollArea.js +1 -2
- package/components/base/GridOverlays.js +2 -3
- 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/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +4 -0
- 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/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/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/index.d.ts +1 -1
- package/components/toolbarV8/ToolbarButton.d.ts +1 -1
- 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/GridScrollArea.js +1 -2
- package/esm/components/base/GridOverlays.js +2 -3
- 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/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/esm/components/columnSelection/GridHeaderCheckbox.js +4 -0
- 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/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/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/index.d.ts +1 -1
- package/esm/components/toolbarV8/ToolbarButton.d.ts +1 -1
- 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/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/editing/useGridCellEditing.js +2 -1
- package/esm/hooks/features/editing/useGridRowEditing.js +7 -6
- 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/utils.d.ts +4 -4
- package/esm/hooks/features/rowSelection/utils.js +1 -1
- 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/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/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 +30 -25
- 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/cleanupTracking/TimerBasedCleanupTracking.d.ts +1 -1
- package/esm/utils/composeGridClasses.d.ts +1 -1
- package/esm/utils/css/context.js +4 -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/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/editing/useGridCellEditing.js +2 -1
- package/hooks/features/editing/useGridRowEditing.js +6 -5
- 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/utils.d.ts +4 -4
- package/hooks/features/rowSelection/utils.js +1 -1
- 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/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/ptPT.d.ts +1 -1
- package/locales/zhHK.d.ts +1 -1
- package/material/index.d.ts +2 -2
- package/material/index.js +30 -25
- 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 +4 -4
- package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +1 -1
- package/utils/composeGridClasses.d.ts +1 -1
- package/utils/css/context.js +4 -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
|
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.
|
|
@@ -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.
|
|
@@ -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;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import clsx from 'clsx';
|
|
6
5
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
7
6
|
import composeClasses from '@mui/utils/composeClasses';
|
|
8
7
|
import { styled } from '@mui/system';
|
|
@@ -142,7 +141,7 @@ function GridScrollAreaContent(props) {
|
|
|
142
141
|
}
|
|
143
142
|
return /*#__PURE__*/_jsx(GridScrollAreaRawRoot, {
|
|
144
143
|
ref: rootRef,
|
|
145
|
-
className:
|
|
144
|
+
className: classes.root,
|
|
146
145
|
ownerState: ownerState,
|
|
147
146
|
onDragOver: handleDragOver,
|
|
148
147
|
style: style
|
|
@@ -3,7 +3,6 @@ import * as React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { styled } from '@mui/system';
|
|
5
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
6
|
import { minimalContentHeight } from "../../hooks/features/rows/gridRowsUtils.js";
|
|
8
7
|
import { useGridSelector } from "../../hooks/utils/useGridSelector.js";
|
|
9
8
|
import { gridDimensionsSelector } from "../../hooks/features/dimensions/index.js";
|
|
@@ -62,11 +61,11 @@ export function GridOverlayWrapper(props) {
|
|
|
62
61
|
classes: rootProps.classes
|
|
63
62
|
}));
|
|
64
63
|
return /*#__PURE__*/_jsx(GridOverlayWrapperRoot, _extends({
|
|
65
|
-
className:
|
|
64
|
+
className: classes.root
|
|
66
65
|
}, props, {
|
|
67
66
|
right: dimensions.columnsTotalWidth - dimensions.viewportOuterSize.width,
|
|
68
67
|
children: /*#__PURE__*/_jsx(GridOverlayWrapperInner, _extends({
|
|
69
|
-
className:
|
|
68
|
+
className: classes.inner,
|
|
70
69
|
style: {
|
|
71
70
|
height,
|
|
72
71
|
width: dimensions.viewportOuterSize.width
|
|
@@ -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";
|
|
@@ -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 };
|
|
@@ -75,6 +75,10 @@ const GridHeaderCheckbox = forwardRef(function GridHeaderCheckbox(props, ref) {
|
|
|
75
75
|
const candidates = new Set();
|
|
76
76
|
for (let i = 0; i < rowIds.length; i += 1) {
|
|
77
77
|
const id = rowIds[i];
|
|
78
|
+
if (!apiRef.current.getRow(id)) {
|
|
79
|
+
// The row could have been removed
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
78
82
|
if (apiRef.current.isRowSelectable(id)) {
|
|
79
83
|
candidates.add(id);
|
|
80
84
|
}
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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.
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import type { GridStateCommunity } from
|
|
2
|
-
import type { GridRowId } from
|
|
1
|
+
import type { GridStateCommunity } from "../../models/gridStateCommunity.js";
|
|
2
|
+
import type { GridRowId } from "../../models/gridRows.js";
|
|
3
3
|
/**
|
|
4
4
|
* Get the row id for a given row
|
|
5
5
|
* @param apiRef - The grid api reference
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { GridPipeProcessingLookup } from
|
|
1
|
+
export type { GridPipeProcessingLookup } from "./pipeProcessing/index.js";
|
|
2
2
|
export { gridRowIdSelector } from "./gridPropsSelectors.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { DataGridProcessedProps } from "../../models/props/DataGridProps.js";
|
|
3
|
-
import type { GridApiCommon, GridPrivateApiCommon } from
|
|
3
|
+
import type { GridApiCommon, GridPrivateApiCommon } from "../../models/api/gridApiCommon.js";
|
|
4
4
|
export declare function unwrapPrivateAPI<PrivateApi extends GridPrivateApiCommon, Api extends GridApiCommon>(publicApi: Api): PrivateApi;
|
|
5
5
|
export declare function useGridApiInitialization<PrivateApi extends GridPrivateApiCommon, Api extends GridApiCommon>(inputApiRef: RefObject<Api | null> | undefined, props: Pick<DataGridProcessedProps, 'signature'>): RefObject<PrivateApi>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiCommon } from
|
|
2
|
+
import type { GridPrivateApiCommon } from "../../models/api/gridApiCommon.js";
|
|
3
3
|
import { DataGridProcessedProps } from "../../models/props/DataGridProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* Initialize the technical pieces of the DataGrid (logger, state, ...) that any DataGrid implementation needs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { DataGridProps } from
|
|
3
|
-
import type { GridPrivateApiCommon } from
|
|
4
|
-
import type { GridStateInitializer } from
|
|
2
|
+
import type { DataGridProps } from "../../models/props/DataGridProps.js";
|
|
3
|
+
import type { GridPrivateApiCommon } from "../../models/api/gridApiCommon.js";
|
|
4
|
+
import type { GridStateInitializer } from "../utils/useGridInitializeState.js";
|
|
5
5
|
type Props = Pick<DataGridProps, 'getRowId'>;
|
|
6
6
|
export declare const propsStateInitializer: GridStateInitializer<Props>;
|
|
7
7
|
export declare const useGridProps: <PrivateApi extends GridPrivateApiCommon>(apiRef: RefObject<PrivateApi>, props: Props) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiCommon } from
|
|
2
|
+
import type { GridPrivateApiCommon } from "../../models/api/gridApiCommon.js";
|
|
3
3
|
export declare const useGridRefs: <PrivateApi extends GridPrivateApiCommon>(apiRef: RefObject<PrivateApi>) => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import type { GridPrivateApiCommon } from
|
|
2
|
+
import type { GridPrivateApiCommon } from "../../models/api/gridApiCommon.js";
|
|
3
3
|
export declare const useGridStateInitialization: <PrivateApi extends GridPrivateApiCommon>(apiRef: RefObject<PrivateApi>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from '@mui/x-internals/types';
|
|
2
2
|
import { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
|
|
3
|
-
import type { DataGridProcessedProps } from
|
|
3
|
+
import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
4
4
|
/**
|
|
5
5
|
* @requires useGridCsvExport (method)
|
|
6
6
|
* @requires useGridSelection (method)
|
|
@@ -7,6 +7,6 @@ export declare const gridColumnGroupingSelector: import("@mui/x-data-grid").Outp
|
|
|
7
7
|
export declare const gridColumnGroupsUnwrappedModelSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnsGroupingState, {
|
|
8
8
|
[columnField: string]: string[];
|
|
9
9
|
}>;
|
|
10
|
-
export declare const gridColumnGroupsLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnsGroupingState, import("./gridColumnGroupsInterfaces").GridColumnGroupLookup>;
|
|
11
|
-
export declare const gridColumnGroupsHeaderStructureSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnsGroupingState, import("./gridColumnGroupsInterfaces").GridGroupingStructure[][]>;
|
|
10
|
+
export declare const gridColumnGroupsLookupSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnsGroupingState, import("./gridColumnGroupsInterfaces.js").GridColumnGroupLookup>;
|
|
11
|
+
export declare const gridColumnGroupsHeaderStructureSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnsGroupingState, import("./gridColumnGroupsInterfaces.js").GridGroupingStructure[][]>;
|
|
12
12
|
export declare const gridColumnGroupsHeaderMaxDepthSelector: import("@mui/x-data-grid").OutputSelector<GridStateCommunity, import("@mui/x-data-grid").GridColumnsGroupingState, number>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./gridColumnGroupsSelector.js";
|
|
2
|
-
export type { GridColumnsGroupingState } from
|
|
2
|
+
export type { GridColumnsGroupingState } from "./gridColumnGroupsInterfaces.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
|
|
3
|
-
import type { GridColumnsRenderContext } from
|
|
3
|
+
import type { GridColumnsRenderContext } from "../../../models/params/gridScrollParams.js";
|
|
4
4
|
import { GridStateColDef } from "../../../models/colDef/gridColDef.js";
|
|
5
5
|
import { GridSortColumnLookup } from "../sorting/index.js";
|
|
6
6
|
import { GridFilterActiveItemsLookup } from "../filter/index.js";
|