@mui/x-data-grid 6.0.2 → 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 +58 -5
- package/components/columnHeaders/GridColumnHeaderSeparator.js +3 -3
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +7 -1
- 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/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/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/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/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/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/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/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 +2 -2
|
@@ -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 };
|
|
@@ -7,11 +7,11 @@ import { unstable_composeClasses as composeClasses, unstable_capitalize as capit
|
|
|
7
7
|
import { getDataGridUtilityClass } from '../../constants/gridClasses';
|
|
8
8
|
import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
|
|
9
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
var GridColumnHeaderSeparatorSides
|
|
11
|
-
(function (GridColumnHeaderSeparatorSides) {
|
|
10
|
+
var GridColumnHeaderSeparatorSides = /*#__PURE__*/function (GridColumnHeaderSeparatorSides) {
|
|
12
11
|
GridColumnHeaderSeparatorSides["Left"] = "left";
|
|
13
12
|
GridColumnHeaderSeparatorSides["Right"] = "right";
|
|
14
|
-
|
|
13
|
+
return GridColumnHeaderSeparatorSides;
|
|
14
|
+
}(GridColumnHeaderSeparatorSides || {});
|
|
15
15
|
const useUtilityClasses = ownerState => {
|
|
16
16
|
const {
|
|
17
17
|
resizable,
|
|
@@ -245,7 +245,12 @@ export const useGridColumnHeaders = props => {
|
|
|
245
245
|
columnFields: groupStructure.columnFields.filter(field => columnVisibility[field] !== false)
|
|
246
246
|
});
|
|
247
247
|
}).filter(groupStructure => groupStructure.columnFields.length > 0);
|
|
248
|
-
const
|
|
248
|
+
const firstVisibleColumnIndex = visibleColumnGroupHeader[0].columnFields.indexOf(firstColumnFieldToRender);
|
|
249
|
+
const hiddenGroupColumns = visibleColumnGroupHeader[0].columnFields.slice(0, firstVisibleColumnIndex);
|
|
250
|
+
const leftOverflow = hiddenGroupColumns.reduce((acc, field) => {
|
|
251
|
+
const column = apiRef.current.getColumn(field);
|
|
252
|
+
return acc + (column.computedWidth ?? 0);
|
|
253
|
+
}, 0);
|
|
249
254
|
let columnIndex = firstColumnToRender;
|
|
250
255
|
const elements = visibleColumnGroupHeader.map(({
|
|
251
256
|
groupId,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var GridPreferencePanelsValue
|
|
2
|
-
(function (GridPreferencePanelsValue) {
|
|
1
|
+
var GridPreferencePanelsValue = /*#__PURE__*/function (GridPreferencePanelsValue) {
|
|
3
2
|
GridPreferencePanelsValue["filters"] = "filters";
|
|
4
3
|
GridPreferencePanelsValue["columns"] = "columns";
|
|
5
|
-
|
|
4
|
+
return GridPreferencePanelsValue;
|
|
5
|
+
}(GridPreferencePanelsValue || {});
|
|
6
6
|
export { GridPreferencePanelsValue };
|
|
@@ -5,11 +5,11 @@ import { FinalizationRegistryBasedCleanupTracking } from '../../utils/cleanupTra
|
|
|
5
5
|
* Signal to the underlying logic what version of the public component API
|
|
6
6
|
* of the data grid is exposed.
|
|
7
7
|
*/
|
|
8
|
-
var GridSignature
|
|
9
|
-
(function (GridSignature) {
|
|
8
|
+
var GridSignature = /*#__PURE__*/function (GridSignature) {
|
|
10
9
|
GridSignature["DataGrid"] = "DataGrid";
|
|
11
10
|
GridSignature["DataGridPro"] = "DataGridPro";
|
|
12
|
-
|
|
11
|
+
return GridSignature;
|
|
12
|
+
}(GridSignature || {});
|
|
13
13
|
// We use class to make it easier to detect in heap snapshots by name
|
|
14
14
|
class ObjectToBeRetainedByReact {}
|
|
15
15
|
|
package/modern/index.js
CHANGED
package/modern/locales/bgBG.js
CHANGED
|
@@ -20,17 +20,15 @@ const bgBGGrid = {
|
|
|
20
20
|
toolbarFiltersTooltipShow: 'Покажи Филтрите',
|
|
21
21
|
toolbarFiltersTooltipActive: count => `${count} активни филтри`,
|
|
22
22
|
// Quick filter toolbar field
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Търси…',
|
|
24
|
+
toolbarQuickFilterLabel: 'Търсене',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Изчисти',
|
|
27
26
|
// Export selector toolbar button text
|
|
28
27
|
toolbarExport: 'Изтегли',
|
|
29
28
|
toolbarExportLabel: 'Изтегли',
|
|
30
29
|
toolbarExportCSV: 'Изтегли като CSV',
|
|
31
30
|
toolbarExportPrint: 'Принтиране',
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
toolbarExportExcel: 'Изтегли като Excel',
|
|
34
32
|
// Columns panel text
|
|
35
33
|
columnsPanelTextFieldLabel: 'Намери колона',
|
|
36
34
|
columnsPanelTextFieldPlaceholder: 'Заглавие на колона',
|
|
@@ -39,9 +37,9 @@ const bgBGGrid = {
|
|
|
39
37
|
columnsPanelHideAllButton: 'Скрий Всички',
|
|
40
38
|
// Filter panel text
|
|
41
39
|
filterPanelAddFilter: 'Добави Филтър',
|
|
42
|
-
|
|
40
|
+
filterPanelRemoveAll: 'Премахни всички',
|
|
43
41
|
filterPanelDeleteIconLabel: 'Изтрий',
|
|
44
|
-
|
|
42
|
+
filterPanelLogicOperator: 'Логически оператор',
|
|
45
43
|
filterPanelOperator: 'Оператори',
|
|
46
44
|
filterPanelOperatorAnd: 'И',
|
|
47
45
|
filterPanelOperatorOr: 'Или',
|
|
@@ -69,7 +67,7 @@ const bgBGGrid = {
|
|
|
69
67
|
// Column menu text
|
|
70
68
|
columnMenuLabel: 'Меню',
|
|
71
69
|
columnMenuShowColumns: 'Покажи колоните',
|
|
72
|
-
|
|
70
|
+
columnMenuManageColumns: 'Управление на колони',
|
|
73
71
|
columnMenuFilter: 'Филтри',
|
|
74
72
|
columnMenuHideColumn: 'Скрий',
|
|
75
73
|
columnMenuUnsort: 'Отмени сортирането',
|
|
@@ -111,10 +109,9 @@ const bgBGGrid = {
|
|
|
111
109
|
// Master/detail
|
|
112
110
|
// detailPanelToggle: 'Detail panel toggle',
|
|
113
111
|
expandDetailPanel: 'Разгъване',
|
|
114
|
-
collapseDetailPanel: 'Свиване'
|
|
115
|
-
|
|
112
|
+
collapseDetailPanel: 'Свиване',
|
|
116
113
|
// Row reordering text
|
|
117
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Подредба на редове'
|
|
118
115
|
|
|
119
116
|
// Aggregation
|
|
120
117
|
// aggregationMenuItemHeader: 'Aggregation',
|
package/modern/locales/faIR.js
CHANGED
|
@@ -37,7 +37,7 @@ const faIRGrid = {
|
|
|
37
37
|
columnsPanelHideAllButton: 'مخفی همه',
|
|
38
38
|
// Filter panel text
|
|
39
39
|
filterPanelAddFilter: 'افزودن فیلتر',
|
|
40
|
-
|
|
40
|
+
filterPanelRemoveAll: 'حذف همه',
|
|
41
41
|
filterPanelDeleteIconLabel: 'حذف',
|
|
42
42
|
filterPanelLogicOperator: 'عملگر منطقی',
|
|
43
43
|
filterPanelOperator: 'عملگرها',
|
|
@@ -67,7 +67,7 @@ const faIRGrid = {
|
|
|
67
67
|
// Column menu text
|
|
68
68
|
columnMenuLabel: 'فهرست',
|
|
69
69
|
columnMenuShowColumns: 'نمایش ستونها',
|
|
70
|
-
|
|
70
|
+
columnMenuManageColumns: 'مدیریت ستونها',
|
|
71
71
|
columnMenuFilter: 'فیلتر',
|
|
72
72
|
columnMenuHideColumn: 'مخفی',
|
|
73
73
|
columnMenuUnsort: 'نامرتبکردن',
|
package/modern/locales/nlNL.js
CHANGED
|
@@ -111,15 +111,13 @@ const nlNLGrid = {
|
|
|
111
111
|
expandDetailPanel: 'Uitklappen',
|
|
112
112
|
collapseDetailPanel: 'Inklappen',
|
|
113
113
|
// Row reordering text
|
|
114
|
-
rowReorderingHeaderName: 'Rijen hersorteren'
|
|
115
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Rijen hersorteren',
|
|
116
115
|
// Aggregation
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'Aggregatie',
|
|
117
|
+
aggregationFunctionLabelSum: 'som',
|
|
118
|
+
aggregationFunctionLabelAvg: 'gem',
|
|
119
|
+
aggregationFunctionLabelMin: 'min',
|
|
120
|
+
aggregationFunctionLabelMax: 'max',
|
|
121
|
+
aggregationFunctionLabelSize: 'grootte'
|
|
123
122
|
};
|
|
124
|
-
|
|
125
123
|
export const nlNL = getGridLocalization(nlNLGrid, nlNLCore);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var GridEditModes
|
|
2
|
-
(function (GridEditModes) {
|
|
1
|
+
var GridEditModes = /*#__PURE__*/function (GridEditModes) {
|
|
3
2
|
GridEditModes["Cell"] = "cell";
|
|
4
3
|
GridEditModes["Row"] = "row";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
return GridEditModes;
|
|
5
|
+
}(GridEditModes || {});
|
|
6
|
+
var GridCellModes = /*#__PURE__*/function (GridCellModes) {
|
|
8
7
|
GridCellModes["Edit"] = "edit";
|
|
9
8
|
GridCellModes["View"] = "view";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
return GridCellModes;
|
|
10
|
+
}(GridCellModes || {});
|
|
11
|
+
var GridRowModes = /*#__PURE__*/function (GridRowModes) {
|
|
13
12
|
GridRowModes["Edit"] = "edit";
|
|
14
13
|
GridRowModes["View"] = "view";
|
|
15
|
-
|
|
14
|
+
return GridRowModes;
|
|
15
|
+
}(GridRowModes || {});
|
|
16
16
|
export { GridEditModes, GridCellModes, GridRowModes };
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* @demos
|
|
4
4
|
* - [Custom filter operator](/x/react-data-grid/filtering/#create-a-custom-operator)
|
|
5
5
|
*/
|
|
6
|
-
var GridLogicOperator
|
|
7
|
-
(function (GridLogicOperator) {
|
|
6
|
+
var GridLogicOperator = /*#__PURE__*/function (GridLogicOperator) {
|
|
8
7
|
GridLogicOperator["And"] = "and";
|
|
9
8
|
GridLogicOperator["Or"] = "or";
|
|
10
|
-
|
|
9
|
+
return GridLogicOperator;
|
|
10
|
+
}(GridLogicOperator || {});
|
|
11
11
|
export { GridLogicOperator };
|
|
@@ -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,
|
|
@@ -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;
|
|
@@ -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,7 +35,7 @@
|
|
|
35
35
|
"directory": "packages/grid/x-data-grid"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/runtime": "^7.
|
|
38
|
+
"@babel/runtime": "^7.21.0",
|
|
39
39
|
"@mui/utils": "^5.11.13",
|
|
40
40
|
"clsx": "^1.2.1",
|
|
41
41
|
"prop-types": "^15.8.1",
|