@mui/x-data-grid-premium 9.0.0-rc.0 → 9.0.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 +114 -2
- package/DataGridPremium/DataGridPremium.js +9 -2
- package/DataGridPremium/DataGridPremium.mjs +9 -2
- package/DataGridPremium/useDataGridPremiumProps.js +1 -0
- package/DataGridPremium/useDataGridPremiumProps.mjs +1 -0
- package/hooks/features/cellSelection/useGridCellSelection.d.mts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.d.ts +1 -1
- package/hooks/features/cellSelection/useGridCellSelection.js +863 -3
- package/hooks/features/cellSelection/useGridCellSelection.mjs +864 -4
- package/hooks/features/clipboard/useGridClipboardImport.d.mts +22 -0
- package/hooks/features/clipboard/useGridClipboardImport.d.ts +22 -0
- package/hooks/features/clipboard/useGridClipboardImport.js +2 -1
- package/hooks/features/clipboard/useGridClipboardImport.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/models/dataGridPremiumProps.d.mts +7 -0
- package/models/dataGridPremiumProps.d.ts +7 -0
- package/package.json +8 -8
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridColDef, type GridRowId, type GridValidRowModel, type GridRowModel } from '@mui/x-data-grid';
|
|
2
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
3
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
5
|
+
export declare class CellValueUpdater {
|
|
6
|
+
rowsToUpdate: Map<GridRowId, GridValidRowModel>;
|
|
7
|
+
updateRow: (row: GridRowModel) => void;
|
|
8
|
+
options: {
|
|
9
|
+
apiRef: RefObject<GridPrivateApiPremium>;
|
|
10
|
+
processRowUpdate: DataGridPremiumProcessedProps['processRowUpdate'];
|
|
11
|
+
onProcessRowUpdateError: DataGridPremiumProcessedProps['onProcessRowUpdateError'];
|
|
12
|
+
getRowId: DataGridPremiumProcessedProps['getRowId'];
|
|
13
|
+
};
|
|
14
|
+
constructor(options: CellValueUpdater['options']);
|
|
15
|
+
updateCell({
|
|
16
|
+
rowId,
|
|
17
|
+
field,
|
|
18
|
+
pastedCellValue
|
|
19
|
+
}: {
|
|
20
|
+
rowId: GridRowId;
|
|
21
|
+
field: GridColDef['field'];
|
|
22
|
+
pastedCellValue: string;
|
|
23
|
+
}): void;
|
|
24
|
+
applyUpdates(): void;
|
|
25
|
+
}
|
|
4
26
|
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pagination" | "paginationMode" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId" | "onClipboardPasteStart" | "onClipboardPasteEnd" | "splitClipboardPastedText" | "disableClipboardPaste" | "onBeforeClipboardPasteStart" | "clipboardCopyCellDelimiter">) => void;
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import { type GridColDef, type GridRowId, type GridValidRowModel, type GridRowModel } from '@mui/x-data-grid';
|
|
2
3
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
3
4
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
5
|
+
export declare class CellValueUpdater {
|
|
6
|
+
rowsToUpdate: Map<GridRowId, GridValidRowModel>;
|
|
7
|
+
updateRow: (row: GridRowModel) => void;
|
|
8
|
+
options: {
|
|
9
|
+
apiRef: RefObject<GridPrivateApiPremium>;
|
|
10
|
+
processRowUpdate: DataGridPremiumProcessedProps['processRowUpdate'];
|
|
11
|
+
onProcessRowUpdateError: DataGridPremiumProcessedProps['onProcessRowUpdateError'];
|
|
12
|
+
getRowId: DataGridPremiumProcessedProps['getRowId'];
|
|
13
|
+
};
|
|
14
|
+
constructor(options: CellValueUpdater['options']);
|
|
15
|
+
updateCell({
|
|
16
|
+
rowId,
|
|
17
|
+
field,
|
|
18
|
+
pastedCellValue
|
|
19
|
+
}: {
|
|
20
|
+
rowId: GridRowId;
|
|
21
|
+
field: GridColDef['field'];
|
|
22
|
+
pastedCellValue: string;
|
|
23
|
+
}): void;
|
|
24
|
+
applyUpdates(): void;
|
|
25
|
+
}
|
|
4
26
|
export declare const useGridClipboardImport: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "pagination" | "paginationMode" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId" | "onClipboardPasteStart" | "onClipboardPasteEnd" | "splitClipboardPastedText" | "disableClipboardPaste" | "onBeforeClipboardPasteStart" | "clipboardCopyCellDelimiter">) => void;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.useGridClipboardImport = void 0;
|
|
8
|
+
exports.useGridClipboardImport = exports.CellValueUpdater = void 0;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
@@ -173,6 +173,7 @@ class CellValueUpdater {
|
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
+
exports.CellValueUpdater = CellValueUpdater;
|
|
176
177
|
function defaultPasteResolver({
|
|
177
178
|
pastedData,
|
|
178
179
|
apiRef,
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -100,6 +100,13 @@ export interface DataGridPremiumPropsWithDefaultValue<R extends GridValidRowMode
|
|
|
100
100
|
* @default false
|
|
101
101
|
*/
|
|
102
102
|
chartsIntegration: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* If `true`, a fill handle is shown at the bottom-right corner of the cell selection.
|
|
105
|
+
* Dragging the fill handle fills target cells with the values from selected cells.
|
|
106
|
+
* Requires `cellSelection` to be enabled.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
cellSelectionFillHandle: boolean;
|
|
103
110
|
/**
|
|
104
111
|
* The maximum size of the history stack.
|
|
105
112
|
* Set to 0 to disable the undo/redo feature.
|
|
@@ -100,6 +100,13 @@ export interface DataGridPremiumPropsWithDefaultValue<R extends GridValidRowMode
|
|
|
100
100
|
* @default false
|
|
101
101
|
*/
|
|
102
102
|
chartsIntegration: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* If `true`, a fill handle is shown at the bottom-right corner of the cell selection.
|
|
105
|
+
* Dragging the fill handle fills target cells with the values from selected cells.
|
|
106
|
+
* Requires `cellSelection` to be enabled.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
cellSelectionFillHandle: boolean;
|
|
103
110
|
/**
|
|
104
111
|
* The maximum size of the history stack.
|
|
105
112
|
* Set to 0 to disable the undo/redo feature.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "9.0.0
|
|
3
|
+
"version": "9.0.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Premium plan edition of the MUI X Data Grid Components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.28.6",
|
|
37
|
-
"@mui/utils": "9.0.0
|
|
37
|
+
"@mui/utils": "9.0.0",
|
|
38
38
|
"@mui/x-internal-exceljs-fork": "4.4.5",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
|
-
"@mui/x-data-grid": "9.0.0
|
|
42
|
-
"@mui/x-
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-
|
|
41
|
+
"@mui/x-data-grid-pro": "^9.0.0",
|
|
42
|
+
"@mui/x-internals": "^9.0.0",
|
|
43
|
+
"@mui/x-data-grid": "^9.0.0",
|
|
44
|
+
"@mui/x-license": "^9.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|
|
48
48
|
"@emotion/styled": "^11.8.1",
|
|
49
|
-
"@mui/material": "^7.3.0 || ^9.0.0
|
|
50
|
-
"@mui/system": "^7.3.0 || ^9.0.0
|
|
49
|
+
"@mui/material": "^7.3.0 || ^9.0.0",
|
|
50
|
+
"@mui/system": "^7.3.0 || ^9.0.0",
|
|
51
51
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
52
52
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
53
53
|
},
|