@mui/x-data-grid 9.8.0 → 9.10.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 -0
- package/DataGrid/DataGrid.js +7 -0
- package/DataGrid/DataGrid.mjs +7 -0
- package/colDef/gridNumericOperators.d.mts +1 -1
- package/colDef/gridNumericOperators.d.ts +1 -1
- package/components/GridColumnSortButton.d.mts +1 -1
- package/components/GridColumnSortButton.d.ts +1 -1
- package/components/GridColumnUnsortedIcon.d.mts +2 -1
- package/components/GridColumnUnsortedIcon.d.ts +2 -1
- package/components/GridHeader.d.mts +2 -1
- package/components/GridHeader.d.ts +2 -1
- package/components/GridHeaders.d.mts +1 -1
- package/components/GridHeaders.d.ts +1 -1
- package/components/GridPagination.d.mts +2 -1
- package/components/GridPagination.d.ts +2 -1
- package/components/GridRowDragAndDropOverlay.d.mts +1 -1
- package/components/GridRowDragAndDropOverlay.d.ts +1 -1
- package/components/GridScrollArea.d.mts +2 -1
- package/components/GridScrollArea.d.ts +2 -1
- package/components/GridScrollShadows.d.mts +2 -1
- package/components/GridScrollShadows.d.ts +2 -1
- package/components/GridScrollbarFillerCell.d.mts +1 -1
- package/components/GridScrollbarFillerCell.d.ts +1 -1
- package/components/GridSkeletonLoadingOverlay.d.mts +1 -1
- package/components/GridSkeletonLoadingOverlay.d.ts +1 -1
- package/components/base/GridFooterPlaceholder.d.mts +1 -1
- package/components/base/GridFooterPlaceholder.d.ts +1 -1
- package/components/base/GridFooterPlaceholder.js +1 -1
- package/components/base/GridFooterPlaceholder.mjs +1 -1
- package/components/base/GridOverlays.d.mts +1 -1
- package/components/base/GridOverlays.d.ts +1 -1
- package/components/cell/GridActionsCell.d.mts +2 -2
- package/components/cell/GridActionsCell.d.ts +2 -2
- package/components/cell/GridActionsCellItem.d.mts +10 -10
- package/components/cell/GridActionsCellItem.d.ts +10 -10
- package/components/cell/GridActionsCellItem.js +1 -58
- package/components/cell/GridActionsCellItem.mjs +1 -58
- package/components/cell/GridBooleanCell.d.mts +1 -4
- package/components/cell/GridBooleanCell.d.ts +1 -4
- package/components/cell/GridEditBooleanCell.d.mts +2 -2
- package/components/cell/GridEditBooleanCell.d.ts +2 -2
- package/components/cell/GridEditDateCell.d.mts +2 -2
- package/components/cell/GridEditDateCell.d.ts +2 -2
- package/components/cell/GridEditInputCell.d.mts +1 -1
- package/components/cell/GridEditInputCell.d.ts +1 -1
- package/components/cell/GridEditLongTextCell.d.mts +2 -2
- package/components/cell/GridEditLongTextCell.d.ts +2 -2
- package/components/cell/GridEditSingleSelectCell.d.mts +3 -2
- package/components/cell/GridEditSingleSelectCell.d.ts +3 -2
- package/components/cell/GridFooterCell.d.mts +1 -1
- package/components/cell/GridFooterCell.d.ts +1 -1
- package/components/cell/GridLongTextCell.d.mts +2 -2
- package/components/cell/GridLongTextCell.d.ts +2 -2
- package/components/cell/GridSkeletonCell.d.mts +1 -4
- package/components/cell/GridSkeletonCell.d.ts +1 -4
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.mts +1 -1
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.d.mts +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.mts +1 -1
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +1 -1
- package/components/columnHeaders/GridColumnHeaderItem.d.mts +1 -4
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +1 -4
- package/components/columnHeaders/GridColumnHeaderSeparator.d.mts +1 -4
- package/components/columnHeaders/GridColumnHeaderSeparator.d.ts +1 -4
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.mts +1 -4
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -4
- package/components/columnHeaders/GridColumnHeaderTitle.d.mts +1 -1
- package/components/columnHeaders/GridColumnHeaderTitle.d.ts +1 -1
- package/components/columnsManagement/GridColumnsManagement.d.mts +2 -1
- package/components/columnsManagement/GridColumnsManagement.d.ts +2 -1
- package/components/menu/GridMenu.d.mts +1 -1
- package/components/menu/GridMenu.d.ts +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.mts +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.mts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.mts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.mts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.mts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.mts +2 -1
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +2 -1
- package/components/panel/GridColumnsPanel.d.mts +1 -1
- package/components/panel/GridColumnsPanel.d.ts +1 -1
- package/components/panel/GridPanelContent.d.mts +1 -1
- package/components/panel/GridPanelContent.d.ts +1 -1
- package/components/panel/GridPanelContext.d.mts +1 -1
- package/components/panel/GridPanelContext.d.ts +1 -1
- package/components/panel/GridPanelFooter.d.mts +1 -1
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelHeader.d.mts +1 -1
- package/components/panel/GridPanelHeader.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.d.mts +1 -1
- package/components/panel/GridPreferencesPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterForm.d.mts +1 -98
- package/components/panel/filterPanel/GridFilterForm.d.ts +1 -98
- package/components/panel/filterPanel/GridFilterForm.js +9 -355
- package/components/panel/filterPanel/GridFilterForm.mjs +8 -354
- package/components/panel/filterPanel/GridFilterFormBase.d.mts +119 -0
- package/components/panel/filterPanel/GridFilterFormBase.d.ts +119 -0
- package/components/panel/filterPanel/GridFilterFormBase.js +497 -0
- package/components/panel/filterPanel/GridFilterFormBase.mjs +491 -0
- package/components/panel/filterPanel/GridFilterInputBoolean.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.js +6 -1
- package/components/panel/filterPanel/GridFilterInputBoolean.mjs +6 -1
- package/components/panel/filterPanel/GridFilterInputDate.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +21 -9
- package/components/panel/filterPanel/GridFilterInputDate.mjs +21 -9
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +6 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.mjs +6 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +6 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.mjs +6 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +6 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +6 -1
- package/components/panel/filterPanel/GridFilterInputValue.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputValue.js +19 -8
- package/components/panel/filterPanel/GridFilterInputValue.mjs +19 -8
- package/components/panel/filterPanel/GridFilterPanel.d.mts +3 -40
- package/components/panel/filterPanel/GridFilterPanel.d.ts +3 -40
- package/components/panel/filterPanel/GridFilterPanel.js +19 -174
- package/components/panel/filterPanel/GridFilterPanel.mjs +14 -173
- package/components/panel/filterPanel/GridFilterPanelBase.d.mts +79 -0
- package/components/panel/filterPanel/GridFilterPanelBase.d.ts +79 -0
- package/components/panel/filterPanel/GridFilterPanelBase.js +304 -0
- package/components/panel/filterPanel/GridFilterPanelBase.mjs +297 -0
- package/components/panel/filterPanel/index.d.mts +3 -1
- package/components/panel/filterPanel/index.d.ts +3 -1
- package/components/panel/filterPanel/index.js +9 -1
- package/components/panel/filterPanel/index.mjs +3 -0
- package/components/quickFilter/QuickFilter.d.mts +1 -1
- package/components/quickFilter/QuickFilter.d.ts +1 -1
- package/components/toolbar/GridToolbarExport.d.mts +2 -2
- package/components/toolbar/GridToolbarExport.d.ts +2 -2
- package/components/toolbar/GridToolbarQuickFilter.d.mts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
- package/components/toolbarV8/GridToolbar.d.mts +3 -3
- package/components/toolbarV8/GridToolbar.d.ts +3 -3
- package/components/toolbarV8/utils.d.mts +1 -1
- package/components/toolbarV8/utils.d.ts +1 -1
- package/components/virtualization/GridBottomContainer.d.mts +1 -1
- package/components/virtualization/GridBottomContainer.d.ts +1 -1
- package/components/virtualization/GridTopContainer.d.mts +1 -1
- package/components/virtualization/GridTopContainer.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.d.mts +1 -1
- package/components/virtualization/GridVirtualScroller.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerFiller.d.mts +2 -1
- package/components/virtualization/GridVirtualScrollerFiller.d.ts +2 -1
- package/constants/cssVariables.d.mts +120 -120
- package/constants/cssVariables.d.ts +120 -120
- package/constants/dataGridPropsDefaultValues.js +1 -0
- package/constants/dataGridPropsDefaultValues.mjs +1 -0
- package/context/GridContextProvider.d.mts +1 -1
- package/context/GridContextProvider.d.ts +1 -1
- package/hooks/core/useGridLocaleText.d.mts +1 -1
- package/hooks/core/useGridLocaleText.d.ts +1 -1
- package/hooks/core/useGridLoggerFactory.d.mts +1 -1
- package/hooks/core/useGridLoggerFactory.d.ts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.mts +1 -1
- package/hooks/features/clipboard/useGridClipboard.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.mts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.mts +4 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +4 -4
- package/hooks/features/columnResize/useGridColumnResize.d.mts +1 -1
- package/hooks/features/columnResize/useGridColumnResize.d.ts +1 -1
- package/hooks/features/columns/gridColumnsUtils.d.mts +1 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.d.mts +2 -2
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +2 -2
- package/hooks/features/dataSource/useGridDataSourceBase.js +39 -10
- package/hooks/features/dataSource/useGridDataSourceBase.mjs +39 -10
- package/hooks/features/density/useGridDensity.d.mts +1 -1
- package/hooks/features/density/useGridDensity.d.ts +1 -1
- package/hooks/features/editing/useGridCellEditing.d.mts +1 -1
- package/hooks/features/editing/useGridCellEditing.d.ts +1 -1
- package/hooks/features/editing/useGridEditing.d.mts +1 -1
- package/hooks/features/editing/useGridEditing.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.d.mts +1 -1
- package/hooks/features/editing/useGridRowEditing.d.ts +1 -1
- package/hooks/features/editing/utils.d.mts +1 -1
- package/hooks/features/editing/utils.d.ts +1 -1
- package/hooks/features/export/useGridCsvExport.d.mts +1 -1
- package/hooks/features/export/useGridCsvExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.d.mts +1 -1
- package/hooks/features/export/useGridPrintExport.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.mts +13 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +13 -1
- package/hooks/features/filter/gridFilterUtils.js +56 -1
- package/hooks/features/filter/gridFilterUtils.mjs +52 -0
- package/hooks/features/filter/useGridFilter.d.mts +1 -1
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +4 -35
- package/hooks/features/filter/useGridFilter.mjs +5 -36
- package/hooks/features/focus/useGridFocus.d.mts +1 -1
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.mts +1 -1
- package/hooks/features/headerFiltering/useGridHeaderFiltering.d.ts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.mts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/hooks/features/overlays/useGridOverlays.d.mts +1 -1
- package/hooks/features/overlays/useGridOverlays.d.ts +1 -1
- package/hooks/features/pagination/gridPaginationUtils.d.mts +1 -1
- package/hooks/features/pagination/gridPaginationUtils.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationMeta.d.mts +1 -1
- package/hooks/features/pagination/useGridPaginationMeta.d.ts +1 -1
- package/hooks/features/pagination/useGridPaginationModel.d.mts +2 -2
- package/hooks/features/pagination/useGridPaginationModel.d.ts +2 -2
- package/hooks/features/pagination/useGridRowCount.d.mts +1 -1
- package/hooks/features/pagination/useGridRowCount.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.mts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.d.mts +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.d.mts +4 -4
- package/hooks/features/rows/gridRowsUtils.d.ts +4 -4
- package/hooks/features/rows/useGridRowSpanning.d.mts +1 -1
- package/hooks/features/rows/useGridRowSpanning.d.ts +1 -1
- package/hooks/features/rows/useGridRows.d.mts +1 -1
- package/hooks/features/rows/useGridRows.d.ts +1 -1
- package/hooks/features/rows/useGridRowsMeta.d.mts +1 -1
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/scroll/useGridScroll.d.mts +1 -1
- package/hooks/features/scroll/useGridScroll.d.ts +1 -1
- package/hooks/features/sorting/useGridSorting.d.mts +1 -1
- package/hooks/features/sorting/useGridSorting.d.ts +1 -1
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.mts +2 -2
- package/hooks/features/virtualization/gridFocusedVirtualCellSelector.d.ts +2 -2
- package/hooks/utils/useGridEvent.d.mts +1 -1
- package/hooks/utils/useGridEvent.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.mts +2 -2
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/demo/TailwindDemoContainer.d.mts +1 -1
- package/internals/demo/TailwindDemoContainer.d.ts +1 -1
- package/models/api/gridApiCommon.d.mts +1 -1
- package/models/api/gridApiCommon.d.ts +1 -1
- package/models/gridFilterInputComponent.d.mts +5 -0
- package/models/gridFilterInputComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.mts +1 -1
- package/models/gridSlotsComponentsProps.d.ts +1 -1
- package/models/props/DataGridProps.d.mts +7 -0
- package/models/props/DataGridProps.d.ts +7 -0
- package/package.json +5 -5
- package/utils/cellBorderUtils.d.mts +2 -2
- package/utils/cellBorderUtils.d.ts +2 -2
- package/utils/css/context.d.mts +3 -3
- package/utils/css/context.d.ts +3 -3
- package/utils/getPublicApiRef.d.mts +1 -1
- package/utils/getPublicApiRef.d.ts +1 -1
- package/utils/keyboardUtils.d.mts +1 -1
- package/utils/keyboardUtils.d.ts +1 -1
- package/utils/rtlFlipSide.d.mts +1 -1
- package/utils/rtlFlipSide.d.ts +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { GridColumnMenuItemProps } from "../GridColumnMenuItemProps.js";
|
|
2
|
-
declare function GridColumnMenuHideItem(props: GridColumnMenuItemProps):
|
|
3
|
+
declare function GridColumnMenuHideItem(props: GridColumnMenuItemProps): React.JSX.Element | null;
|
|
3
4
|
declare namespace GridColumnMenuHideItem {
|
|
4
5
|
var propTypes: any;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { GridColumnMenuItemProps } from "../GridColumnMenuItemProps.mjs";
|
|
2
|
-
declare function GridColumnMenuManageItem(props: GridColumnMenuItemProps):
|
|
3
|
+
declare function GridColumnMenuManageItem(props: GridColumnMenuItemProps): React.JSX.Element | null;
|
|
3
4
|
declare namespace GridColumnMenuManageItem {
|
|
4
5
|
var propTypes: any;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { GridColumnMenuItemProps } from "../GridColumnMenuItemProps.js";
|
|
2
|
-
declare function GridColumnMenuManageItem(props: GridColumnMenuItemProps):
|
|
3
|
+
declare function GridColumnMenuManageItem(props: GridColumnMenuItemProps): React.JSX.Element | null;
|
|
3
4
|
declare namespace GridColumnMenuManageItem {
|
|
4
5
|
var propTypes: any;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { GridColumnMenuItemProps } from "../GridColumnMenuItemProps.mjs";
|
|
2
|
-
declare function GridColumnMenuSortItem(props: GridColumnMenuItemProps):
|
|
3
|
+
declare function GridColumnMenuSortItem(props: GridColumnMenuItemProps): React.JSX.Element | null;
|
|
3
4
|
declare namespace GridColumnMenuSortItem {
|
|
4
5
|
var propTypes: any;
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { GridColumnMenuItemProps } from "../GridColumnMenuItemProps.js";
|
|
2
|
-
declare function GridColumnMenuSortItem(props: GridColumnMenuItemProps):
|
|
3
|
+
declare function GridColumnMenuSortItem(props: GridColumnMenuItemProps): React.JSX.Element | null;
|
|
3
4
|
declare namespace GridColumnMenuSortItem {
|
|
4
5
|
var propTypes: any;
|
|
5
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GridPanelWrapperProps } from "./GridPanelWrapper.mjs";
|
|
2
2
|
export interface GridColumnsPanelProps extends GridPanelWrapperProps {}
|
|
3
|
-
declare function GridColumnsPanel(props: GridColumnsPanelProps): import("react
|
|
3
|
+
declare function GridColumnsPanel(props: GridColumnsPanelProps): import("react").JSX.Element;
|
|
4
4
|
export { GridColumnsPanel };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { GridPanelWrapperProps } from "./GridPanelWrapper.js";
|
|
2
2
|
export interface GridColumnsPanelProps extends GridPanelWrapperProps {}
|
|
3
|
-
declare function GridColumnsPanel(props: GridColumnsPanelProps): import("react
|
|
3
|
+
declare function GridColumnsPanel(props: GridColumnsPanelProps): import("react").JSX.Element;
|
|
4
4
|
export { GridColumnsPanel };
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SxProps, Theme } from '@mui/system';
|
|
3
3
|
declare function GridPanelContent(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
declare namespace GridPanelContent {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SxProps, Theme } from '@mui/system';
|
|
3
3
|
declare function GridPanelContent(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
declare namespace GridPanelContent {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
declare function GridPanelFooter(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
declare namespace GridPanelFooter {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
3
|
declare function GridPanelFooter(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
sx?: SxProps<Theme>;
|
|
5
|
-
}):
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
declare namespace GridPanelFooter {
|
|
7
7
|
var propTypes: any;
|
|
8
8
|
}
|
|
@@ -5,7 +5,7 @@ import type { SxProps, Theme } from '@mui/system';
|
|
|
5
5
|
*/
|
|
6
6
|
declare function GridPanelHeader(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
sx?: SxProps<Theme>;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
declare namespace GridPanelHeader {
|
|
10
10
|
var propTypes: any;
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ import type { SxProps, Theme } from '@mui/system';
|
|
|
5
5
|
*/
|
|
6
6
|
declare function GridPanelHeader(props: React.HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
sx?: SxProps<Theme>;
|
|
8
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
9
9
|
declare namespace GridPanelHeader {
|
|
10
10
|
var propTypes: any;
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function GridPreferencesPanel(): import("react
|
|
1
|
+
export declare function GridPreferencesPanel(): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function GridPreferencesPanel(): import("react
|
|
1
|
+
export declare function GridPreferencesPanel(): import("react").JSX.Element;
|
|
@@ -1,102 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type { GridFilterItem } from "../../../models/gridFilterItem.mjs";
|
|
4
|
-
import type { GridColDef, GridStateColDef } from "../../../models/colDef/gridColDef.mjs";
|
|
5
|
-
export interface FilterColumnsArgs {
|
|
6
|
-
field: GridColDef['field'];
|
|
7
|
-
columns: GridStateColDef[];
|
|
8
|
-
currentFilters: GridFilterItem[];
|
|
9
|
-
}
|
|
10
|
-
export interface GridFilterFormProps {
|
|
11
|
-
/**
|
|
12
|
-
* The [[GridFilterItem]] representing this form.
|
|
13
|
-
*/
|
|
14
|
-
item: GridFilterItem;
|
|
15
|
-
/**
|
|
16
|
-
* If `true`, the logic operator field is rendered.
|
|
17
|
-
* The field will be invisible if `showMultiFilterOperators` is also `true`.
|
|
18
|
-
*/
|
|
19
|
-
hasMultipleFilters: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* If `true`, the logic operator field is visible.
|
|
22
|
-
*/
|
|
23
|
-
showMultiFilterOperators?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* If `true`, disables the logic operator field but still renders it.
|
|
26
|
-
*/
|
|
27
|
-
disableMultiFilterOperator?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* A ref allowing to set imperative focus.
|
|
30
|
-
* It can be passed to the el
|
|
31
|
-
*/
|
|
32
|
-
focusElementRef?: React.Ref<any>;
|
|
33
|
-
/**
|
|
34
|
-
* Callback called when the operator, column field or value is changed.
|
|
35
|
-
* @param {GridFilterItem} item The updated [[GridFilterItem]].
|
|
36
|
-
*/
|
|
37
|
-
applyFilterChanges: (item: GridFilterItem) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Callback called when the logic operator is changed.
|
|
40
|
-
* @param {GridLogicOperator} operator The new logic operator.
|
|
41
|
-
*/
|
|
42
|
-
applyMultiFilterOperatorChanges: (operator: GridLogicOperator) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Callback called when the delete button is clicked.
|
|
45
|
-
* @param {GridFilterItem} item The deleted [[GridFilterItem]].
|
|
46
|
-
*/
|
|
47
|
-
deleteFilter: (item: GridFilterItem) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Allows to filter the columns displayed in the filter form.
|
|
50
|
-
* @param {FilterColumnsArgs} args The columns of the grid and name of field.
|
|
51
|
-
* @returns {GridColDef['field'][]} The filtered fields array.
|
|
52
|
-
*/
|
|
53
|
-
filterColumns?: (args: FilterColumnsArgs) => GridColDef['field'][];
|
|
54
|
-
/**
|
|
55
|
-
* Sets the available logic operators.
|
|
56
|
-
* @default [GridLogicOperator.And, GridLogicOperator.Or]
|
|
57
|
-
*/
|
|
58
|
-
logicOperators?: GridLogicOperator[];
|
|
59
|
-
/**
|
|
60
|
-
* Changes how the options in the columns selector should be ordered.
|
|
61
|
-
* If not specified, the order is derived from the `columns` prop.
|
|
62
|
-
*/
|
|
63
|
-
columnsSort?: 'asc' | 'desc';
|
|
64
|
-
/**
|
|
65
|
-
* Props passed to the delete icon.
|
|
66
|
-
* @default {}
|
|
67
|
-
*/
|
|
68
|
-
deleteIconProps?: any;
|
|
69
|
-
/**
|
|
70
|
-
* Props passed to the logic operator input component.
|
|
71
|
-
* @default {}
|
|
72
|
-
*/
|
|
73
|
-
logicOperatorInputProps?: any;
|
|
74
|
-
/**
|
|
75
|
-
* Props passed to the operator input component.
|
|
76
|
-
* @default {}
|
|
77
|
-
*/
|
|
78
|
-
operatorInputProps?: any;
|
|
79
|
-
/**
|
|
80
|
-
* Props passed to the column input component.
|
|
81
|
-
* @default {}
|
|
82
|
-
*/
|
|
83
|
-
columnInputProps?: any;
|
|
84
|
-
/**
|
|
85
|
-
* `true` if the filter is disabled/read only.
|
|
86
|
-
* i.e. `colDef.fiterable = false` but passed in `filterModel`
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
readOnly?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Props passed to the value input component.
|
|
92
|
-
* @default {}
|
|
93
|
-
*/
|
|
94
|
-
valueInputProps?: any;
|
|
95
|
-
/**
|
|
96
|
-
* @ignore - do not document.
|
|
97
|
-
*/
|
|
98
|
-
children?: React.ReactNode;
|
|
99
|
-
}
|
|
2
|
+
import type { GridFilterFormProps } from "./GridFilterFormBase.mjs";
|
|
100
3
|
declare const GridFilterForm: React.ForwardRefExoticComponent<GridFilterFormProps> | React.ForwardRefExoticComponent<GridFilterFormProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
4
|
/**
|
|
102
5
|
* Demos:
|
|
@@ -1,102 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import type { GridFilterItem } from "../../../models/gridFilterItem.js";
|
|
4
|
-
import type { GridColDef, GridStateColDef } from "../../../models/colDef/gridColDef.js";
|
|
5
|
-
export interface FilterColumnsArgs {
|
|
6
|
-
field: GridColDef['field'];
|
|
7
|
-
columns: GridStateColDef[];
|
|
8
|
-
currentFilters: GridFilterItem[];
|
|
9
|
-
}
|
|
10
|
-
export interface GridFilterFormProps {
|
|
11
|
-
/**
|
|
12
|
-
* The [[GridFilterItem]] representing this form.
|
|
13
|
-
*/
|
|
14
|
-
item: GridFilterItem;
|
|
15
|
-
/**
|
|
16
|
-
* If `true`, the logic operator field is rendered.
|
|
17
|
-
* The field will be invisible if `showMultiFilterOperators` is also `true`.
|
|
18
|
-
*/
|
|
19
|
-
hasMultipleFilters: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* If `true`, the logic operator field is visible.
|
|
22
|
-
*/
|
|
23
|
-
showMultiFilterOperators?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* If `true`, disables the logic operator field but still renders it.
|
|
26
|
-
*/
|
|
27
|
-
disableMultiFilterOperator?: boolean;
|
|
28
|
-
/**
|
|
29
|
-
* A ref allowing to set imperative focus.
|
|
30
|
-
* It can be passed to the el
|
|
31
|
-
*/
|
|
32
|
-
focusElementRef?: React.Ref<any>;
|
|
33
|
-
/**
|
|
34
|
-
* Callback called when the operator, column field or value is changed.
|
|
35
|
-
* @param {GridFilterItem} item The updated [[GridFilterItem]].
|
|
36
|
-
*/
|
|
37
|
-
applyFilterChanges: (item: GridFilterItem) => void;
|
|
38
|
-
/**
|
|
39
|
-
* Callback called when the logic operator is changed.
|
|
40
|
-
* @param {GridLogicOperator} operator The new logic operator.
|
|
41
|
-
*/
|
|
42
|
-
applyMultiFilterOperatorChanges: (operator: GridLogicOperator) => void;
|
|
43
|
-
/**
|
|
44
|
-
* Callback called when the delete button is clicked.
|
|
45
|
-
* @param {GridFilterItem} item The deleted [[GridFilterItem]].
|
|
46
|
-
*/
|
|
47
|
-
deleteFilter: (item: GridFilterItem) => void;
|
|
48
|
-
/**
|
|
49
|
-
* Allows to filter the columns displayed in the filter form.
|
|
50
|
-
* @param {FilterColumnsArgs} args The columns of the grid and name of field.
|
|
51
|
-
* @returns {GridColDef['field'][]} The filtered fields array.
|
|
52
|
-
*/
|
|
53
|
-
filterColumns?: (args: FilterColumnsArgs) => GridColDef['field'][];
|
|
54
|
-
/**
|
|
55
|
-
* Sets the available logic operators.
|
|
56
|
-
* @default [GridLogicOperator.And, GridLogicOperator.Or]
|
|
57
|
-
*/
|
|
58
|
-
logicOperators?: GridLogicOperator[];
|
|
59
|
-
/**
|
|
60
|
-
* Changes how the options in the columns selector should be ordered.
|
|
61
|
-
* If not specified, the order is derived from the `columns` prop.
|
|
62
|
-
*/
|
|
63
|
-
columnsSort?: 'asc' | 'desc';
|
|
64
|
-
/**
|
|
65
|
-
* Props passed to the delete icon.
|
|
66
|
-
* @default {}
|
|
67
|
-
*/
|
|
68
|
-
deleteIconProps?: any;
|
|
69
|
-
/**
|
|
70
|
-
* Props passed to the logic operator input component.
|
|
71
|
-
* @default {}
|
|
72
|
-
*/
|
|
73
|
-
logicOperatorInputProps?: any;
|
|
74
|
-
/**
|
|
75
|
-
* Props passed to the operator input component.
|
|
76
|
-
* @default {}
|
|
77
|
-
*/
|
|
78
|
-
operatorInputProps?: any;
|
|
79
|
-
/**
|
|
80
|
-
* Props passed to the column input component.
|
|
81
|
-
* @default {}
|
|
82
|
-
*/
|
|
83
|
-
columnInputProps?: any;
|
|
84
|
-
/**
|
|
85
|
-
* `true` if the filter is disabled/read only.
|
|
86
|
-
* i.e. `colDef.fiterable = false` but passed in `filterModel`
|
|
87
|
-
* @default false
|
|
88
|
-
*/
|
|
89
|
-
readOnly?: boolean;
|
|
90
|
-
/**
|
|
91
|
-
* Props passed to the value input component.
|
|
92
|
-
* @default {}
|
|
93
|
-
*/
|
|
94
|
-
valueInputProps?: any;
|
|
95
|
-
/**
|
|
96
|
-
* @ignore - do not document.
|
|
97
|
-
*/
|
|
98
|
-
children?: React.ReactNode;
|
|
99
|
-
}
|
|
2
|
+
import type { GridFilterFormProps } from "./GridFilterFormBase.js";
|
|
100
3
|
declare const GridFilterForm: React.ForwardRefExoticComponent<GridFilterFormProps> | React.ForwardRefExoticComponent<GridFilterFormProps & React.RefAttributes<HTMLDivElement>>;
|
|
101
4
|
/**
|
|
102
5
|
* Demos:
|