@mui/x-data-grid-premium 9.0.0-rc.0 → 9.0.1
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 +207 -6892
- 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/components/promptField/PromptField.d.mts +2 -2
- package/components/promptField/PromptField.d.ts +2 -2
- package/components/promptField/PromptField.js +1 -1
- package/components/promptField/PromptField.mjs +1 -1
- 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
|
@@ -51,8 +51,8 @@ const configuration = {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
const packageInfo = {
|
|
54
|
-
releaseDate: "
|
|
55
|
-
version: "9.0.
|
|
54
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
55
|
+
version: "9.0.1",
|
|
56
56
|
name: 'x-data-grid-premium'
|
|
57
57
|
};
|
|
58
58
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.Watermark, {
|
|
@@ -209,6 +209,13 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
209
209
|
* @default false
|
|
210
210
|
*/
|
|
211
211
|
cellSelection: _propTypes.default.bool,
|
|
212
|
+
/**
|
|
213
|
+
* If `true`, a fill handle is shown at the bottom-right corner of the cell selection.
|
|
214
|
+
* Dragging the fill handle fills target cells with the values from selected cells.
|
|
215
|
+
* Requires `cellSelection` to be enabled.
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
cellSelectionFillHandle: _propTypes.default.bool,
|
|
212
219
|
/**
|
|
213
220
|
* Set the cell selection model of the grid.
|
|
214
221
|
*/
|
|
@@ -44,8 +44,8 @@ const configuration = {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
const packageInfo = {
|
|
47
|
-
releaseDate: "
|
|
48
|
-
version: "9.0.
|
|
47
|
+
releaseDate: "MTc3NTYwNjQwMDAwMA==",
|
|
48
|
+
version: "9.0.1",
|
|
49
49
|
name: 'x-data-grid-premium'
|
|
50
50
|
};
|
|
51
51
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
@@ -202,6 +202,13 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
202
202
|
* @default false
|
|
203
203
|
*/
|
|
204
204
|
cellSelection: PropTypes.bool,
|
|
205
|
+
/**
|
|
206
|
+
* If `true`, a fill handle is shown at the bottom-right corner of the cell selection.
|
|
207
|
+
* Dragging the fill handle fills target cells with the values from selected cells.
|
|
208
|
+
* Requires `cellSelection` to be enabled.
|
|
209
|
+
* @default false
|
|
210
|
+
*/
|
|
211
|
+
cellSelectionFillHandle: PropTypes.bool,
|
|
205
212
|
/**
|
|
206
213
|
* Set the cell selection model of the grid.
|
|
207
214
|
*/
|
|
@@ -36,6 +36,7 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
|
|
|
36
36
|
aggregationFunctions: _aggregation.GRID_AGGREGATION_FUNCTIONS,
|
|
37
37
|
aggregationRowsScope: 'filtered',
|
|
38
38
|
getAggregationPosition: _gridAggregationUtils.defaultGetAggregationPosition,
|
|
39
|
+
cellSelectionFillHandle: false,
|
|
39
40
|
disableClipboardPaste: false,
|
|
40
41
|
splitClipboardPastedText: (pastedText, delimiter = '\t') => {
|
|
41
42
|
// Excel on Windows adds an empty line break at the end of the copied text.
|
|
@@ -28,6 +28,7 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
|
|
|
28
28
|
aggregationFunctions: GRID_AGGREGATION_FUNCTIONS,
|
|
29
29
|
aggregationRowsScope: 'filtered',
|
|
30
30
|
getAggregationPosition: defaultGetAggregationPosition,
|
|
31
|
+
cellSelectionFillHandle: false,
|
|
31
32
|
disableClipboardPaste: false,
|
|
32
33
|
splitClipboardPastedText: (pastedText, delimiter = '\t') => {
|
|
33
34
|
// Excel on Windows adds an empty line break at the end of the copied text.
|
|
@@ -16,7 +16,7 @@ export type PromptFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'class
|
|
|
16
16
|
*/
|
|
17
17
|
lang?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Called when
|
|
19
|
+
* Called when a speech recognition error occurs.
|
|
20
20
|
* @param {string} error The error message
|
|
21
21
|
*/
|
|
22
22
|
onRecordError?: (error: string) => void;
|
|
@@ -53,7 +53,7 @@ declare const PromptField: React.ForwardRefExoticComponent<PromptFieldProps> | R
|
|
|
53
53
|
*/
|
|
54
54
|
lang?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Called when
|
|
56
|
+
* Called when a speech recognition error occurs.
|
|
57
57
|
* @param {string} error The error message
|
|
58
58
|
*/
|
|
59
59
|
onRecordError?: (error: string) => void;
|
|
@@ -16,7 +16,7 @@ export type PromptFieldProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'class
|
|
|
16
16
|
*/
|
|
17
17
|
lang?: string;
|
|
18
18
|
/**
|
|
19
|
-
* Called when
|
|
19
|
+
* Called when a speech recognition error occurs.
|
|
20
20
|
* @param {string} error The error message
|
|
21
21
|
*/
|
|
22
22
|
onRecordError?: (error: string) => void;
|
|
@@ -53,7 +53,7 @@ declare const PromptField: React.ForwardRefExoticComponent<PromptFieldProps> | R
|
|
|
53
53
|
*/
|
|
54
54
|
lang?: string;
|
|
55
55
|
/**
|
|
56
|
-
* Called when
|
|
56
|
+
* Called when a speech recognition error occurs.
|
|
57
57
|
* @param {string} error The error message
|
|
58
58
|
*/
|
|
59
59
|
onRecordError?: (error: string) => void;
|
|
@@ -81,7 +81,7 @@ process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
|
|
|
81
81
|
*/
|
|
82
82
|
className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
|
|
83
83
|
/**
|
|
84
|
-
* Called when
|
|
84
|
+
* Called when a speech recognition error occurs.
|
|
85
85
|
* @param {string} error The error message
|
|
86
86
|
*/
|
|
87
87
|
onRecordError: _propTypes.default.func,
|
|
@@ -74,7 +74,7 @@ process.env.NODE_ENV !== "production" ? PromptField.propTypes = {
|
|
|
74
74
|
*/
|
|
75
75
|
className: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
|
|
76
76
|
/**
|
|
77
|
-
* Called when
|
|
77
|
+
* Called when a speech recognition error occurs.
|
|
78
78
|
* @param {string} error The error message
|
|
79
79
|
*/
|
|
80
80
|
onRecordError: PropTypes.func,
|
|
@@ -3,4 +3,4 @@ import { type GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.mjs";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.mjs";
|
|
5
5
|
export declare const cellSelectionStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'cellSelectionModel' | 'initialState'>>;
|
|
6
|
-
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "cellSelection" | "cellSelectionModel" | "onCellSelectionModelChange" | "pagination" | "paginationMode" | "ignoreValueFormatterDuringExport" | "clipboardCopyCellDelimiter" | "columnHeaderHeight">) => void;
|
|
6
|
+
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "cellSelection" | "cellSelectionModel" | "onCellSelectionModelChange" | "pagination" | "paginationMode" | "ignoreValueFormatterDuringExport" | "clipboardCopyCellDelimiter" | "columnHeaderHeight" | "cellSelectionFillHandle" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId">) => void;
|
|
@@ -3,4 +3,4 @@ import { type GridStateInitializer } from '@mui/x-data-grid-pro/internals';
|
|
|
3
3
|
import type { DataGridPremiumProcessedProps } from "../../../models/dataGridPremiumProps.js";
|
|
4
4
|
import type { GridPrivateApiPremium } from "../../../models/gridApiPremium.js";
|
|
5
5
|
export declare const cellSelectionStateInitializer: GridStateInitializer<Pick<DataGridPremiumProcessedProps, 'cellSelectionModel' | 'initialState'>>;
|
|
6
|
-
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "cellSelection" | "cellSelectionModel" | "onCellSelectionModelChange" | "pagination" | "paginationMode" | "ignoreValueFormatterDuringExport" | "clipboardCopyCellDelimiter" | "columnHeaderHeight">) => void;
|
|
6
|
+
export declare const useGridCellSelection: (apiRef: RefObject<GridPrivateApiPremium>, props: Pick<DataGridPremiumProcessedProps, "cellSelection" | "cellSelectionModel" | "onCellSelectionModelChange" | "pagination" | "paginationMode" | "ignoreValueFormatterDuringExport" | "clipboardCopyCellDelimiter" | "columnHeaderHeight" | "cellSelectionFillHandle" | "processRowUpdate" | "onProcessRowUpdateError" | "getRowId">) => void;
|