@mui/x-data-grid 9.0.0-alpha.3 → 9.0.0-beta.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 +229 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +3 -5
- package/components/columnSelection/GridCellCheckboxRenderer.mjs +3 -5
- package/components/columnSelection/GridRowCheckbox.d.mts +4 -0
- package/components/columnSelection/GridRowCheckbox.d.ts +4 -0
- package/components/columnSelection/GridRowCheckbox.js +59 -0
- package/components/columnSelection/GridRowCheckbox.mjs +53 -0
- package/components/columnSelection/index.d.mts +2 -1
- package/components/columnSelection/index.d.ts +2 -1
- package/components/columnSelection/index.js +11 -0
- package/components/columnSelection/index.mjs +2 -1
- package/components/containers/GridRootStyles.js +2 -6
- package/components/containers/GridRootStyles.mjs +3 -7
- package/constants/defaultGridSlotsComponents.js +2 -1
- package/constants/defaultGridSlotsComponents.mjs +3 -2
- package/constants/gridClasses.d.mts +16 -0
- package/constants/gridClasses.d.ts +16 -0
- package/constants/gridClasses.js +21 -4
- package/constants/gridClasses.mjs +20 -3
- package/constants/index.d.mts +1 -1
- package/constants/index.d.ts +1 -1
- package/constants/index.js +19 -10
- package/constants/index.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/material/augmentation.d.mts +3 -0
- package/material/augmentation.d.ts +3 -0
- package/material/index.js +57 -36
- package/material/index.mjs +57 -36
- package/models/gridSlotsComponent.d.mts +5 -0
- package/models/gridSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.mts +9 -0
- package/models/gridSlotsComponentsProps.d.ts +9 -0
- package/package.json +3 -3
|
@@ -232,4 +232,9 @@ export interface GridSlotsComponent extends GridBaseSlots, GridIconSlotsComponen
|
|
|
232
232
|
* @default GridRow
|
|
233
233
|
*/
|
|
234
234
|
row: React.JSXElementConstructor<GridSlotProps['row']>;
|
|
235
|
+
/**
|
|
236
|
+
* Component rendered for each row selection checkbox.
|
|
237
|
+
* @default GridRowCheckbox
|
|
238
|
+
*/
|
|
239
|
+
rowCheckbox: React.JSXElementConstructor<GridSlotProps['rowCheckbox']>;
|
|
235
240
|
}
|
|
@@ -18,6 +18,7 @@ import type { GridLoadingOverlayProps } from "../components/GridLoadingOverlay.m
|
|
|
18
18
|
import type { GridRowCountProps } from "../components/GridRowCount.mjs";
|
|
19
19
|
import type { GridColumnHeaderSortIconProps } from "../components/columnHeaders/GridColumnHeaderSortIcon.mjs";
|
|
20
20
|
import type { GridBottomContainerProps } from "../components/virtualization/GridBottomContainer.mjs";
|
|
21
|
+
import type { GridRowId } from "./gridRows.mjs";
|
|
21
22
|
import type { AutocompleteProps, BadgeProps, ButtonProps, CheckboxProps, ChipProps, CircularProgressProps, DividerProps, IconButtonProps, InputProps, LinearProgressProps, MenuListProps, MenuItemProps, PaginationProps, PopperProps, SelectProps, SelectOptionProps, SkeletonProps, SwitchProps, TextareaProps, TooltipProps, TextFieldProps, IconProps, TabsProps, ToggleButtonProps } from "./gridBaseSlots.mjs";
|
|
22
23
|
type RootProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
23
24
|
type MainProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
@@ -46,6 +47,7 @@ export interface BaseSelectOptionPropsOverrides {}
|
|
|
46
47
|
export interface BaseSkeletonPropsOverrides {}
|
|
47
48
|
export interface BaseIconPropsOverrides {}
|
|
48
49
|
export interface BaseToggleButtonPropsOverrides {}
|
|
50
|
+
export interface RowCheckboxPropsOverrides {}
|
|
49
51
|
export interface CellPropsOverrides {}
|
|
50
52
|
export interface ToolbarPropsOverrides {}
|
|
51
53
|
export interface ColumnHeaderFilterIconButtonPropsOverrides {}
|
|
@@ -114,6 +116,7 @@ interface ElementSlotProps {
|
|
|
114
116
|
panel: GridPanelProps & PanelPropsOverrides;
|
|
115
117
|
pinnedRows: GridPinnedRowsProps & PinnedRowsPropsOverrides;
|
|
116
118
|
row: GridRowProps & RowPropsOverrides;
|
|
119
|
+
rowCheckbox: GridRowCheckboxProps;
|
|
117
120
|
skeletonCell: GridSkeletonCellProps & SkeletonCellPropsOverrides;
|
|
118
121
|
toolbar: GridToolbarProps & ToolbarPropsOverrides;
|
|
119
122
|
/**
|
|
@@ -126,6 +129,12 @@ interface ElementSlotProps {
|
|
|
126
129
|
root: RootProps;
|
|
127
130
|
}
|
|
128
131
|
export type GridSlotProps = BaseSlotProps & ElementSlotProps;
|
|
132
|
+
export interface GridRowCheckboxProps extends CheckboxProps, RowCheckboxPropsOverrides {
|
|
133
|
+
/**
|
|
134
|
+
* The grid row id.
|
|
135
|
+
*/
|
|
136
|
+
rowId: GridRowId;
|
|
137
|
+
}
|
|
129
138
|
/**
|
|
130
139
|
* Overridable components props dynamically passed to the component at rendering.
|
|
131
140
|
*/
|
|
@@ -18,6 +18,7 @@ import type { GridLoadingOverlayProps } from "../components/GridLoadingOverlay.j
|
|
|
18
18
|
import type { GridRowCountProps } from "../components/GridRowCount.js";
|
|
19
19
|
import type { GridColumnHeaderSortIconProps } from "../components/columnHeaders/GridColumnHeaderSortIcon.js";
|
|
20
20
|
import type { GridBottomContainerProps } from "../components/virtualization/GridBottomContainer.js";
|
|
21
|
+
import type { GridRowId } from "./gridRows.js";
|
|
21
22
|
import type { AutocompleteProps, BadgeProps, ButtonProps, CheckboxProps, ChipProps, CircularProgressProps, DividerProps, IconButtonProps, InputProps, LinearProgressProps, MenuListProps, MenuItemProps, PaginationProps, PopperProps, SelectProps, SelectOptionProps, SkeletonProps, SwitchProps, TextareaProps, TooltipProps, TextFieldProps, IconProps, TabsProps, ToggleButtonProps } from "./gridBaseSlots.js";
|
|
22
23
|
type RootProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
23
24
|
type MainProps = React.HTMLAttributes<HTMLDivElement> & Record<`data-${string}`, string>;
|
|
@@ -46,6 +47,7 @@ export interface BaseSelectOptionPropsOverrides {}
|
|
|
46
47
|
export interface BaseSkeletonPropsOverrides {}
|
|
47
48
|
export interface BaseIconPropsOverrides {}
|
|
48
49
|
export interface BaseToggleButtonPropsOverrides {}
|
|
50
|
+
export interface RowCheckboxPropsOverrides {}
|
|
49
51
|
export interface CellPropsOverrides {}
|
|
50
52
|
export interface ToolbarPropsOverrides {}
|
|
51
53
|
export interface ColumnHeaderFilterIconButtonPropsOverrides {}
|
|
@@ -114,6 +116,7 @@ interface ElementSlotProps {
|
|
|
114
116
|
panel: GridPanelProps & PanelPropsOverrides;
|
|
115
117
|
pinnedRows: GridPinnedRowsProps & PinnedRowsPropsOverrides;
|
|
116
118
|
row: GridRowProps & RowPropsOverrides;
|
|
119
|
+
rowCheckbox: GridRowCheckboxProps;
|
|
117
120
|
skeletonCell: GridSkeletonCellProps & SkeletonCellPropsOverrides;
|
|
118
121
|
toolbar: GridToolbarProps & ToolbarPropsOverrides;
|
|
119
122
|
/**
|
|
@@ -126,6 +129,12 @@ interface ElementSlotProps {
|
|
|
126
129
|
root: RootProps;
|
|
127
130
|
}
|
|
128
131
|
export type GridSlotProps = BaseSlotProps & ElementSlotProps;
|
|
132
|
+
export interface GridRowCheckboxProps extends CheckboxProps, RowCheckboxPropsOverrides {
|
|
133
|
+
/**
|
|
134
|
+
* The grid row id.
|
|
135
|
+
*/
|
|
136
|
+
rowId: GridRowId;
|
|
137
|
+
}
|
|
129
138
|
/**
|
|
130
139
|
* Overridable components props dynamically passed to the component at rendering.
|
|
131
140
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "9.0.0-
|
|
3
|
+
"version": "9.0.0-beta.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Community plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
44
|
"use-sync-external-store": "^1.6.0",
|
|
45
|
-
"@mui/x-virtualizer": "1.0.0-
|
|
46
|
-
"@mui/x-internals": "9.0.0-alpha.
|
|
45
|
+
"@mui/x-virtualizer": "1.0.0-beta.1",
|
|
46
|
+
"@mui/x-internals": "9.0.0-alpha.4"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|