@mui/x-data-grid 6.0.1 → 6.0.3
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 +116 -10
- package/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/components/panel/GridPanel.d.ts +9 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -1
- package/hooks/features/columns/gridColumnsUtils.js +2 -9
- package/hooks/features/editing/useGridCellEditing.js +2 -2
- package/hooks/features/editing/useGridRowEditing.js +2 -2
- package/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
- package/hooks/utils/useGridApiEventHandler.js +3 -3
- package/index.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -1
- package/legacy/hooks/features/columns/gridColumnsUtils.js +2 -9
- package/legacy/hooks/features/editing/useGridCellEditing.js +2 -2
- package/legacy/hooks/features/editing/useGridRowEditing.js +2 -2
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
- package/legacy/hooks/utils/useGridApiEventHandler.js +3 -3
- package/legacy/index.js +1 -1
- package/legacy/locales/bgBG.js +9 -12
- package/legacy/locales/faIR.js +2 -2
- package/legacy/locales/nlNL.js +7 -9
- package/legacy/locales/ptBR.js +1 -1
- package/legacy/models/gridEditRowModel.js +9 -9
- package/legacy/models/gridFilterItem.js +3 -3
- package/legacy/models/params/gridEditCellParams.js +10 -10
- package/legacy/models/params/gridRowParams.js +9 -9
- package/locales/bgBG.js +9 -12
- package/locales/faIR.js +2 -2
- package/locales/nlNL.js +7 -9
- package/locales/ptBR.js +1 -1
- package/material/index.d.ts +9 -1
- package/models/gridEditRowModel.js +9 -9
- package/models/gridFilterItem.js +3 -3
- package/models/params/gridEditCellParams.js +10 -10
- package/models/params/gridRowParams.js +9 -9
- package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +6 -1
- package/modern/hooks/features/columns/gridColumnsUtils.js +2 -9
- package/modern/hooks/features/editing/useGridCellEditing.js +2 -2
- package/modern/hooks/features/editing/useGridRowEditing.js +2 -2
- package/modern/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +3 -3
- package/modern/hooks/utils/useGridApiEventHandler.js +3 -3
- package/modern/index.js +1 -1
- package/modern/locales/bgBG.js +9 -12
- package/modern/locales/faIR.js +2 -2
- package/modern/locales/nlNL.js +7 -9
- package/modern/locales/ptBR.js +1 -1
- package/modern/models/gridEditRowModel.js +9 -9
- package/modern/models/gridFilterItem.js +3 -3
- package/modern/models/params/gridEditCellParams.js +10 -10
- package/modern/models/params/gridRowParams.js +9 -9
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +4 -4
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +6 -1
- package/node/hooks/features/columns/gridColumnsUtils.js +3 -10
- package/node/hooks/features/editing/useGridCellEditing.js +2 -2
- package/node/hooks/features/editing/useGridRowEditing.js +2 -2
- package/node/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +4 -4
- package/node/hooks/utils/useGridApiEventHandler.js +4 -4
- package/node/index.js +1 -1
- package/node/locales/bgBG.js +9 -12
- package/node/locales/faIR.js +2 -2
- package/node/locales/nlNL.js +7 -9
- package/node/locales/ptBR.js +1 -1
- package/node/models/gridEditRowModel.js +12 -12
- package/node/models/gridFilterItem.js +4 -4
- package/node/models/params/gridEditCellParams.js +12 -12
- package/node/models/params/gridRowParams.js +11 -11
- package/package.json +3 -3
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Params passed to `apiRef.current.setEditCellValue`.
|
|
3
3
|
*/
|
|
4
|
-
var GridCellEditStartReasons
|
|
5
|
-
/**
|
|
6
|
-
* Params passed to the `cellEditStart` event.
|
|
7
|
-
*/
|
|
8
|
-
(function (GridCellEditStartReasons) {
|
|
4
|
+
var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
|
|
9
5
|
GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
10
6
|
GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
11
7
|
GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
12
8
|
GridCellEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
return GridCellEditStartReasons;
|
|
10
|
+
}(GridCellEditStartReasons || {});
|
|
15
11
|
/**
|
|
16
|
-
* Params passed to the `
|
|
12
|
+
* Params passed to the `cellEditStart` event.
|
|
17
13
|
*/
|
|
18
|
-
|
|
14
|
+
var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
|
|
19
15
|
GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
|
|
20
16
|
GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
21
17
|
GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
22
18
|
GridCellEditStopReasons["tabKeyDown"] = "tabKeyDown";
|
|
23
19
|
GridCellEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
24
|
-
|
|
20
|
+
return GridCellEditStopReasons;
|
|
21
|
+
}(GridCellEditStopReasons || {});
|
|
22
|
+
/**
|
|
23
|
+
* Params passed to the `cellEditStop event.
|
|
24
|
+
*/
|
|
25
25
|
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
26
26
|
export { GridCellEditStartReasons, GridCellEditStopReasons };
|
|
@@ -14,23 +14,23 @@
|
|
|
14
14
|
/**
|
|
15
15
|
* The getRowHeight return value.
|
|
16
16
|
*/
|
|
17
|
-
var GridRowEditStartReasons
|
|
18
|
-
/**
|
|
19
|
-
* Params passed to the `rowEditStart` event.
|
|
20
|
-
*/
|
|
21
|
-
(function (GridRowEditStartReasons) {
|
|
17
|
+
var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
|
|
22
18
|
GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
23
19
|
GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
24
20
|
GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
25
21
|
GridRowEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
22
|
+
return GridRowEditStartReasons;
|
|
23
|
+
}(GridRowEditStartReasons || {});
|
|
24
|
+
/**
|
|
25
|
+
* Params passed to the `rowEditStart` event.
|
|
26
|
+
*/
|
|
27
|
+
var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
|
|
29
28
|
GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
|
|
30
29
|
GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
31
30
|
GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
32
31
|
GridRowEditStopReasons["tabKeyDown"] = "tabKeyDown";
|
|
33
32
|
GridRowEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
34
|
-
|
|
33
|
+
return GridRowEditStopReasons;
|
|
34
|
+
}(GridRowEditStopReasons || {});
|
|
35
35
|
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
36
36
|
export { GridRowEditStartReasons, GridRowEditStopReasons };
|
|
@@ -16,12 +16,12 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
16
16
|
const _excluded = ["resizable", "resizing", "height", "side"];
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
-
var GridColumnHeaderSeparatorSides
|
|
20
|
-
exports.GridColumnHeaderSeparatorSides = GridColumnHeaderSeparatorSides;
|
|
21
|
-
(function (GridColumnHeaderSeparatorSides) {
|
|
19
|
+
var GridColumnHeaderSeparatorSides = /*#__PURE__*/function (GridColumnHeaderSeparatorSides) {
|
|
22
20
|
GridColumnHeaderSeparatorSides["Left"] = "left";
|
|
23
21
|
GridColumnHeaderSeparatorSides["Right"] = "right";
|
|
24
|
-
|
|
22
|
+
return GridColumnHeaderSeparatorSides;
|
|
23
|
+
}(GridColumnHeaderSeparatorSides || {});
|
|
24
|
+
exports.GridColumnHeaderSeparatorSides = GridColumnHeaderSeparatorSides;
|
|
25
25
|
const useUtilityClasses = ownerState => {
|
|
26
26
|
const {
|
|
27
27
|
resizable,
|
|
@@ -254,7 +254,12 @@ const useGridColumnHeaders = props => {
|
|
|
254
254
|
columnFields: groupStructure.columnFields.filter(field => columnVisibility[field] !== false)
|
|
255
255
|
});
|
|
256
256
|
}).filter(groupStructure => groupStructure.columnFields.length > 0);
|
|
257
|
-
const
|
|
257
|
+
const firstVisibleColumnIndex = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);
|
|
258
|
+
const hiddenGroupColumns = visibleColumnGroupHeader[0].columnFields.slice(0, firstVisibleColumnIndex);
|
|
259
|
+
const leftOverflow = hiddenGroupColumns.reduce((acc, field) => {
|
|
260
|
+
const column = apiRef.current.getColumn(field);
|
|
261
|
+
return acc + (column.computedWidth ?? 0);
|
|
262
|
+
}, 0);
|
|
258
263
|
let columnIndex = firstColumnToRender;
|
|
259
264
|
const elements = visibleColumnGroupHeader.map(({
|
|
260
265
|
groupId,
|
|
@@ -164,13 +164,12 @@ const hydrateColumnsWidth = (rawState, viewportInnerWidth) => {
|
|
|
164
164
|
lookup: columnsLookup
|
|
165
165
|
});
|
|
166
166
|
};
|
|
167
|
-
exports.hydrateColumnsWidth = hydrateColumnsWidth;
|
|
168
|
-
let columnTypeWarnedOnce = false;
|
|
169
167
|
|
|
170
168
|
/**
|
|
171
169
|
* Apply the order and the dimensions of the initial state.
|
|
172
170
|
* The columns not registered in `orderedFields` will be placed after the imported columns.
|
|
173
171
|
*/
|
|
172
|
+
exports.hydrateColumnsWidth = hydrateColumnsWidth;
|
|
174
173
|
const applyInitialState = (columnsState, initialState) => {
|
|
175
174
|
if (!initialState) {
|
|
176
175
|
return columnsState;
|
|
@@ -254,14 +253,8 @@ const createColumnsState = ({
|
|
|
254
253
|
let existingState = columnsState.lookup[field];
|
|
255
254
|
if (existingState == null) {
|
|
256
255
|
let colDef = columnTypes[_colDef.DEFAULT_GRID_COL_TYPE_KEY];
|
|
257
|
-
if (newColumn.type) {
|
|
258
|
-
|
|
259
|
-
console.warn([`MUI: The column type "${newColumn.type}" you are using is not supported.`, `Column type "string" is being used instead.`].join('\n'));
|
|
260
|
-
columnTypeWarnedOnce = true;
|
|
261
|
-
}
|
|
262
|
-
if (columnTypes[newColumn.type]) {
|
|
263
|
-
colDef = columnTypes[newColumn.type];
|
|
264
|
-
}
|
|
256
|
+
if (newColumn.type && columnTypes[newColumn.type]) {
|
|
257
|
+
colDef = columnTypes[newColumn.type];
|
|
265
258
|
}
|
|
266
259
|
existingState = (0, _extends2.default)({}, colDef, {
|
|
267
260
|
field,
|
|
@@ -99,8 +99,8 @@ const useGridCellEditing = (apiRef, props) => {
|
|
|
99
99
|
}
|
|
100
100
|
} else if (params.isEditable) {
|
|
101
101
|
let reason;
|
|
102
|
-
if (event.key === ' '
|
|
103
|
-
return; //
|
|
102
|
+
if (event.key === ' ') {
|
|
103
|
+
return; // Space scrolls to the last row
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
if ((0, _keyboardUtils.isPrintableKey)(event)) {
|
|
@@ -152,8 +152,8 @@ const useGridRowEditing = (apiRef, props) => {
|
|
|
152
152
|
}
|
|
153
153
|
} else if (params.isEditable) {
|
|
154
154
|
let reason;
|
|
155
|
-
if (event.key === ' '
|
|
156
|
-
return; //
|
|
155
|
+
if (event.key === ' ') {
|
|
156
|
+
return; // Space scrolls to the last row
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
if ((0, _keyboardUtils.isPrintableKey)(event)) {
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GridPreferencePanelsValue = void 0;
|
|
7
|
-
var GridPreferencePanelsValue
|
|
8
|
-
exports.GridPreferencePanelsValue = GridPreferencePanelsValue;
|
|
9
|
-
(function (GridPreferencePanelsValue) {
|
|
7
|
+
var GridPreferencePanelsValue = /*#__PURE__*/function (GridPreferencePanelsValue) {
|
|
10
8
|
GridPreferencePanelsValue["filters"] = "filters";
|
|
11
9
|
GridPreferencePanelsValue["columns"] = "columns";
|
|
12
|
-
|
|
10
|
+
return GridPreferencePanelsValue;
|
|
11
|
+
}(GridPreferencePanelsValue || {});
|
|
12
|
+
exports.GridPreferencePanelsValue = GridPreferencePanelsValue;
|
|
@@ -16,12 +16,12 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
16
16
|
* Signal to the underlying logic what version of the public component API
|
|
17
17
|
* of the data grid is exposed.
|
|
18
18
|
*/
|
|
19
|
-
var GridSignature
|
|
20
|
-
exports.GridSignature = GridSignature;
|
|
21
|
-
(function (GridSignature) {
|
|
19
|
+
var GridSignature = /*#__PURE__*/function (GridSignature) {
|
|
22
20
|
GridSignature["DataGrid"] = "DataGrid";
|
|
23
21
|
GridSignature["DataGridPro"] = "DataGridPro";
|
|
24
|
-
|
|
22
|
+
return GridSignature;
|
|
23
|
+
}(GridSignature || {});
|
|
24
|
+
exports.GridSignature = GridSignature;
|
|
25
25
|
// We use class to make it easier to detect in heap snapshots by name
|
|
26
26
|
class ObjectToBeRetainedByReact {}
|
|
27
27
|
|
package/node/index.js
CHANGED
package/node/locales/bgBG.js
CHANGED
|
@@ -26,17 +26,15 @@ const bgBGGrid = {
|
|
|
26
26
|
toolbarFiltersTooltipShow: 'Покажи Филтрите',
|
|
27
27
|
toolbarFiltersTooltipActive: count => `${count} активни филтри`,
|
|
28
28
|
// Quick filter toolbar field
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
toolbarQuickFilterPlaceholder: 'Търси…',
|
|
30
|
+
toolbarQuickFilterLabel: 'Търсене',
|
|
31
|
+
toolbarQuickFilterDeleteIconLabel: 'Изчисти',
|
|
33
32
|
// Export selector toolbar button text
|
|
34
33
|
toolbarExport: 'Изтегли',
|
|
35
34
|
toolbarExportLabel: 'Изтегли',
|
|
36
35
|
toolbarExportCSV: 'Изтегли като CSV',
|
|
37
36
|
toolbarExportPrint: 'Принтиране',
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
toolbarExportExcel: 'Изтегли като Excel',
|
|
40
38
|
// Columns panel text
|
|
41
39
|
columnsPanelTextFieldLabel: 'Намери колона',
|
|
42
40
|
columnsPanelTextFieldPlaceholder: 'Заглавие на колона',
|
|
@@ -45,9 +43,9 @@ const bgBGGrid = {
|
|
|
45
43
|
columnsPanelHideAllButton: 'Скрий Всички',
|
|
46
44
|
// Filter panel text
|
|
47
45
|
filterPanelAddFilter: 'Добави Филтър',
|
|
48
|
-
|
|
46
|
+
filterPanelRemoveAll: 'Премахни всички',
|
|
49
47
|
filterPanelDeleteIconLabel: 'Изтрий',
|
|
50
|
-
|
|
48
|
+
filterPanelLogicOperator: 'Логически оператор',
|
|
51
49
|
filterPanelOperator: 'Оператори',
|
|
52
50
|
filterPanelOperatorAnd: 'И',
|
|
53
51
|
filterPanelOperatorOr: 'Или',
|
|
@@ -75,7 +73,7 @@ const bgBGGrid = {
|
|
|
75
73
|
// Column menu text
|
|
76
74
|
columnMenuLabel: 'Меню',
|
|
77
75
|
columnMenuShowColumns: 'Покажи колоните',
|
|
78
|
-
|
|
76
|
+
columnMenuManageColumns: 'Управление на колони',
|
|
79
77
|
columnMenuFilter: 'Филтри',
|
|
80
78
|
columnMenuHideColumn: 'Скрий',
|
|
81
79
|
columnMenuUnsort: 'Отмени сортирането',
|
|
@@ -117,10 +115,9 @@ const bgBGGrid = {
|
|
|
117
115
|
// Master/detail
|
|
118
116
|
// detailPanelToggle: 'Detail panel toggle',
|
|
119
117
|
expandDetailPanel: 'Разгъване',
|
|
120
|
-
collapseDetailPanel: 'Свиване'
|
|
121
|
-
|
|
118
|
+
collapseDetailPanel: 'Свиване',
|
|
122
119
|
// Row reordering text
|
|
123
|
-
|
|
120
|
+
rowReorderingHeaderName: 'Подредба на редове'
|
|
124
121
|
|
|
125
122
|
// Aggregation
|
|
126
123
|
// aggregationMenuItemHeader: 'Aggregation',
|
package/node/locales/faIR.js
CHANGED
|
@@ -43,7 +43,7 @@ const faIRGrid = {
|
|
|
43
43
|
columnsPanelHideAllButton: 'مخفی همه',
|
|
44
44
|
// Filter panel text
|
|
45
45
|
filterPanelAddFilter: 'افزودن فیلتر',
|
|
46
|
-
|
|
46
|
+
filterPanelRemoveAll: 'حذف همه',
|
|
47
47
|
filterPanelDeleteIconLabel: 'حذف',
|
|
48
48
|
filterPanelLogicOperator: 'عملگر منطقی',
|
|
49
49
|
filterPanelOperator: 'عملگرها',
|
|
@@ -73,7 +73,7 @@ const faIRGrid = {
|
|
|
73
73
|
// Column menu text
|
|
74
74
|
columnMenuLabel: 'فهرست',
|
|
75
75
|
columnMenuShowColumns: 'نمایش ستونها',
|
|
76
|
-
|
|
76
|
+
columnMenuManageColumns: 'مدیریت ستونها',
|
|
77
77
|
columnMenuFilter: 'فیلتر',
|
|
78
78
|
columnMenuHideColumn: 'مخفی',
|
|
79
79
|
columnMenuUnsort: 'نامرتبکردن',
|
package/node/locales/nlNL.js
CHANGED
|
@@ -117,16 +117,14 @@ const nlNLGrid = {
|
|
|
117
117
|
expandDetailPanel: 'Uitklappen',
|
|
118
118
|
collapseDetailPanel: 'Inklappen',
|
|
119
119
|
// Row reordering text
|
|
120
|
-
rowReorderingHeaderName: 'Rijen hersorteren'
|
|
121
|
-
|
|
120
|
+
rowReorderingHeaderName: 'Rijen hersorteren',
|
|
122
121
|
// Aggregation
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
122
|
+
aggregationMenuItemHeader: 'Aggregatie',
|
|
123
|
+
aggregationFunctionLabelSum: 'som',
|
|
124
|
+
aggregationFunctionLabelAvg: 'gem',
|
|
125
|
+
aggregationFunctionLabelMin: 'min',
|
|
126
|
+
aggregationFunctionLabelMax: 'max',
|
|
127
|
+
aggregationFunctionLabelSize: 'grootte'
|
|
129
128
|
};
|
|
130
|
-
|
|
131
129
|
const nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid, _locale.nlNL);
|
|
132
130
|
exports.nlNL = nlNL;
|
package/node/locales/ptBR.js
CHANGED
|
@@ -73,7 +73,7 @@ const ptBRGrid = {
|
|
|
73
73
|
// Column menu text
|
|
74
74
|
columnMenuLabel: 'Menu',
|
|
75
75
|
columnMenuShowColumns: 'Exibir colunas',
|
|
76
|
-
|
|
76
|
+
columnMenuManageColumns: 'Gerir colunas',
|
|
77
77
|
columnMenuFilter: 'Filtrar',
|
|
78
78
|
columnMenuHideColumn: 'Ocultar',
|
|
79
79
|
columnMenuUnsort: 'Desfazer ordenação',
|
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.GridRowModes = exports.GridEditModes = exports.GridCellModes = void 0;
|
|
7
|
-
var GridEditModes
|
|
8
|
-
exports.GridEditModes = GridEditModes;
|
|
9
|
-
(function (GridEditModes) {
|
|
7
|
+
var GridEditModes = /*#__PURE__*/function (GridEditModes) {
|
|
10
8
|
GridEditModes["Cell"] = "cell";
|
|
11
9
|
GridEditModes["Row"] = "row";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.
|
|
15
|
-
|
|
10
|
+
return GridEditModes;
|
|
11
|
+
}(GridEditModes || {});
|
|
12
|
+
exports.GridEditModes = GridEditModes;
|
|
13
|
+
var GridCellModes = /*#__PURE__*/function (GridCellModes) {
|
|
16
14
|
GridCellModes["Edit"] = "edit";
|
|
17
15
|
GridCellModes["View"] = "view";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exports.
|
|
21
|
-
|
|
16
|
+
return GridCellModes;
|
|
17
|
+
}(GridCellModes || {});
|
|
18
|
+
exports.GridCellModes = GridCellModes;
|
|
19
|
+
var GridRowModes = /*#__PURE__*/function (GridRowModes) {
|
|
22
20
|
GridRowModes["Edit"] = "edit";
|
|
23
21
|
GridRowModes["View"] = "view";
|
|
24
|
-
|
|
22
|
+
return GridRowModes;
|
|
23
|
+
}(GridRowModes || {});
|
|
24
|
+
exports.GridRowModes = GridRowModes;
|
|
@@ -9,9 +9,9 @@ exports.GridLogicOperator = void 0;
|
|
|
9
9
|
* @demos
|
|
10
10
|
* - [Custom filter operator](/x/react-data-grid/filtering/#create-a-custom-operator)
|
|
11
11
|
*/
|
|
12
|
-
var GridLogicOperator
|
|
13
|
-
exports.GridLogicOperator = GridLogicOperator;
|
|
14
|
-
(function (GridLogicOperator) {
|
|
12
|
+
var GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
|
|
15
13
|
GridLogicOperator["And"] = "and";
|
|
16
14
|
GridLogicOperator["Or"] = "or";
|
|
17
|
-
|
|
15
|
+
return GridLogicOperator;
|
|
16
|
+
}(GridLogicOperator || {});
|
|
17
|
+
exports.GridLogicOperator = GridLogicOperator;
|
|
@@ -7,26 +7,26 @@ exports.GridCellEditStopReasons = exports.GridCellEditStartReasons = void 0;
|
|
|
7
7
|
/**
|
|
8
8
|
* Params passed to `apiRef.current.setEditCellValue`.
|
|
9
9
|
*/
|
|
10
|
-
var GridCellEditStartReasons
|
|
11
|
-
/**
|
|
12
|
-
* Params passed to the `cellEditStart` event.
|
|
13
|
-
*/
|
|
14
|
-
exports.GridCellEditStartReasons = GridCellEditStartReasons;
|
|
15
|
-
(function (GridCellEditStartReasons) {
|
|
10
|
+
var GridCellEditStartReasons = /*#__PURE__*/function (GridCellEditStartReasons) {
|
|
16
11
|
GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
17
12
|
GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
18
13
|
GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
19
14
|
GridCellEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
return GridCellEditStartReasons;
|
|
16
|
+
}(GridCellEditStartReasons || {});
|
|
22
17
|
/**
|
|
23
|
-
* Params passed to the `
|
|
18
|
+
* Params passed to the `cellEditStart` event.
|
|
24
19
|
*/
|
|
25
|
-
exports.
|
|
26
|
-
|
|
20
|
+
exports.GridCellEditStartReasons = GridCellEditStartReasons;
|
|
21
|
+
var GridCellEditStopReasons = /*#__PURE__*/function (GridCellEditStopReasons) {
|
|
27
22
|
GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
|
|
28
23
|
GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
29
24
|
GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
30
25
|
GridCellEditStopReasons["tabKeyDown"] = "tabKeyDown";
|
|
31
26
|
GridCellEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
32
|
-
|
|
27
|
+
return GridCellEditStopReasons;
|
|
28
|
+
}(GridCellEditStopReasons || {});
|
|
29
|
+
/**
|
|
30
|
+
* Params passed to the `cellEditStop event.
|
|
31
|
+
*/
|
|
32
|
+
exports.GridCellEditStopReasons = GridCellEditStopReasons;
|
|
@@ -20,23 +20,23 @@ exports.GridRowEditStopReasons = exports.GridRowEditStartReasons = void 0;
|
|
|
20
20
|
/**
|
|
21
21
|
* The getRowHeight return value.
|
|
22
22
|
*/
|
|
23
|
-
var GridRowEditStartReasons
|
|
24
|
-
/**
|
|
25
|
-
* Params passed to the `rowEditStart` event.
|
|
26
|
-
*/
|
|
27
|
-
exports.GridRowEditStartReasons = GridRowEditStartReasons;
|
|
28
|
-
(function (GridRowEditStartReasons) {
|
|
23
|
+
var GridRowEditStartReasons = /*#__PURE__*/function (GridRowEditStartReasons) {
|
|
29
24
|
GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
30
25
|
GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
31
26
|
GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
32
27
|
GridRowEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
return GridRowEditStartReasons;
|
|
29
|
+
}(GridRowEditStartReasons || {});
|
|
30
|
+
/**
|
|
31
|
+
* Params passed to the `rowEditStart` event.
|
|
32
|
+
*/
|
|
33
|
+
exports.GridRowEditStartReasons = GridRowEditStartReasons;
|
|
34
|
+
var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
|
|
37
35
|
GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
|
|
38
36
|
GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
39
37
|
GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
40
38
|
GridRowEditStopReasons["tabKeyDown"] = "tabKeyDown";
|
|
41
39
|
GridRowEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
42
|
-
|
|
40
|
+
return GridRowEditStopReasons;
|
|
41
|
+
}(GridRowEditStopReasons || {});
|
|
42
|
+
exports.GridRowEditStopReasons = GridRowEditStopReasons;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"directory": "packages/grid/x-data-grid"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.
|
|
39
|
-
"@mui/utils": "^5.11.
|
|
38
|
+
"@babel/runtime": "^7.21.0",
|
|
39
|
+
"@mui/utils": "^5.11.13",
|
|
40
40
|
"clsx": "^1.2.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^4.1.7"
|