@mui/x-data-grid 6.0.3 → 6.1.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 +119 -0
- package/components/GridAutoSizer.js +3 -0
- package/components/GridPagination.d.ts +6 -6
- package/components/GridRow.js +4 -2
- package/components/cell/GridActionsCellItem.d.ts +2 -2
- package/components/cell/GridEditDateCell.js +37 -16
- package/components/columnHeaders/ColumnHeaderMenuIcon.js +20 -16
- package/components/columnHeaders/GridColumnHeaderTitle.js +5 -5
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -2
- package/components/menu/columnMenu/GridColumnMenu.d.ts +5 -5
- package/components/menu/columnMenu/GridColumnMenu.js +30 -30
- package/components/menu/columnMenu/GridColumnMenuProps.d.ts +1 -1
- package/components/panel/GridColumnsPanel.d.ts +8 -0
- package/components/panel/GridColumnsPanel.js +18 -6
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/components/reexportable.d.ts +1 -1
- package/components/reexportable.js +1 -1
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/hooks/core/useGridApiInitialization.js +3 -3
- package/hooks/features/columnMenu/columnMenuInterfaces.d.ts +11 -11
- package/hooks/features/columnMenu/{useGridColumnMenuComponents.d.ts → useGridColumnMenuSlots.d.ts} +4 -4
- package/hooks/features/columnMenu/{useGridColumnMenuComponents.js → useGridColumnMenuSlots.js} +21 -26
- package/hooks/features/columns/gridColumnsSelector.d.ts +3 -3
- package/hooks/features/columns/useGridColumns.js +1 -1
- package/hooks/features/editing/useGridCellEditing.js +5 -1
- package/hooks/features/editing/useGridEditing.js +1 -3
- package/hooks/features/editing/useGridRowEditing.js +5 -1
- package/hooks/features/filter/gridFilterState.js +6 -1
- package/hooks/features/filter/useGridFilter.js +6 -1
- package/hooks/features/sorting/useGridSorting.js +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +10 -2
- package/legacy/components/GridAutoSizer.js +3 -0
- package/legacy/components/GridRow.js +5 -2
- package/legacy/components/cell/GridEditBooleanCell.js +19 -21
- package/legacy/components/cell/GridEditDateCell.js +69 -39
- package/legacy/components/cell/GridEditInputCell.js +25 -27
- package/legacy/components/cell/GridEditSingleSelectCell.js +26 -28
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +20 -16
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +5 -5
- package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -2
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +32 -32
- package/legacy/components/panel/GridColumnsPanel.js +19 -6
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/legacy/components/reexportable.js +1 -1
- package/legacy/hooks/core/useGridApiInitialization.js +3 -3
- package/legacy/hooks/features/columnMenu/{useGridColumnMenuComponents.js → useGridColumnMenuSlots.js} +25 -30
- package/legacy/hooks/features/columns/gridColumnsUtils.js +2 -2
- package/legacy/hooks/features/columns/useGridColumns.js +1 -1
- package/legacy/hooks/features/editing/useGridCellEditing.js +120 -120
- package/legacy/hooks/features/editing/useGridEditing.js +17 -21
- package/legacy/hooks/features/editing/useGridRowEditing.js +5 -1
- package/legacy/hooks/features/export/useGridPrintExport.js +45 -47
- package/legacy/hooks/features/filter/gridFilterState.js +6 -1
- package/legacy/hooks/features/filter/useGridFilter.js +6 -1
- package/legacy/hooks/features/rows/gridRowsUtils.js +2 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +1 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +7 -7
- package/legacy/index.js +10 -2
- package/legacy/locales/coreLocales.js +0 -1
- package/legacy/locales/daDK.js +16 -21
- package/legacy/locales/esES.js +1 -1
- package/legacy/locales/huHU.js +15 -20
- package/legacy/locales/jaJP.js +1 -1
- package/legacy/locales/nbNO.js +10 -12
- package/legacy/locales/nlNL.js +3 -3
- package/legacy/locales/ptBR.js +7 -9
- package/legacy/locales/ruRU.js +1 -1
- package/legacy/locales/svSE.js +2 -2
- package/legacy/models/gridColumnGrouping.js +4 -0
- package/legacy/models/params/gridRowParams.js +8 -0
- package/legacy/utils/createSelector.js +14 -22
- package/locales/coreLocales.js +0 -1
- package/locales/daDK.js +16 -21
- package/locales/esES.js +1 -1
- package/locales/huHU.js +15 -20
- package/locales/jaJP.js +1 -1
- package/locales/nbNO.js +10 -12
- package/locales/nlNL.js +3 -3
- package/locales/ptBR.js +7 -9
- package/locales/ruRU.js +1 -1
- package/locales/svSE.js +2 -2
- package/models/api/gridCoreApi.d.ts +3 -1
- package/models/api/gridEditingApi.d.ts +4 -0
- package/models/gridColumnGrouping.js +4 -0
- package/models/params/gridRowParams.js +8 -0
- package/modern/components/GridAutoSizer.js +3 -0
- package/modern/components/GridRow.js +4 -2
- package/modern/components/cell/GridEditDateCell.js +37 -16
- package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +19 -15
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +5 -5
- package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -2
- package/modern/components/menu/columnMenu/GridColumnMenu.js +30 -30
- package/modern/components/panel/GridColumnsPanel.js +18 -6
- package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/modern/components/reexportable.js +1 -1
- package/modern/hooks/core/useGridApiInitialization.js +3 -3
- package/modern/hooks/features/columnMenu/{useGridColumnMenuComponents.js → useGridColumnMenuSlots.js} +21 -26
- package/modern/hooks/features/columns/useGridColumns.js +1 -1
- package/modern/hooks/features/editing/useGridCellEditing.js +5 -1
- package/modern/hooks/features/editing/useGridEditing.js +1 -3
- package/modern/hooks/features/editing/useGridRowEditing.js +5 -1
- package/modern/hooks/features/filter/gridFilterState.js +6 -1
- package/modern/hooks/features/filter/useGridFilter.js +6 -1
- package/modern/hooks/features/sorting/useGridSorting.js +1 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +1 -1
- package/modern/index.js +10 -2
- package/modern/locales/coreLocales.js +0 -1
- package/modern/locales/daDK.js +16 -21
- package/modern/locales/esES.js +1 -1
- package/modern/locales/huHU.js +15 -20
- package/modern/locales/jaJP.js +1 -1
- package/modern/locales/nbNO.js +10 -12
- package/modern/locales/nlNL.js +3 -3
- package/modern/locales/ptBR.js +7 -9
- package/modern/locales/ruRU.js +1 -1
- package/modern/locales/svSE.js +2 -2
- package/modern/models/gridColumnGrouping.js +4 -0
- package/modern/models/params/gridRowParams.js +8 -0
- package/modern/utils/createSelector.js +12 -22
- package/node/components/GridAutoSizer.js +3 -1
- package/node/components/GridRow.js +4 -2
- package/node/components/cell/GridCell.js +1 -0
- package/node/components/cell/GridEditDateCell.js +37 -16
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +19 -15
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +5 -5
- package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +4 -2
- package/node/components/menu/columnMenu/GridColumnMenu.js +33 -33
- package/node/components/panel/GridColumnsPanel.js +18 -6
- package/node/components/panel/filterPanel/GridFilterPanel.js +1 -1
- package/node/components/reexportable.js +4 -4
- package/node/hooks/core/useGridApiInitialization.js +3 -3
- package/node/hooks/features/columnMenu/{useGridColumnMenuComponents.js → useGridColumnMenuSlots.js} +22 -27
- package/node/hooks/features/columns/useGridColumns.js +1 -1
- package/node/hooks/features/editing/useGridCellEditing.js +5 -1
- package/node/hooks/features/editing/useGridEditing.js +1 -3
- package/node/hooks/features/editing/useGridRowEditing.js +5 -1
- package/node/hooks/features/filter/gridFilterState.js +5 -0
- package/node/hooks/features/filter/useGridFilter.js +6 -1
- package/node/hooks/features/sorting/useGridSorting.js +1 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +1 -1
- package/node/index.js +7 -7
- package/node/locales/daDK.js +16 -21
- package/node/locales/esES.js +1 -1
- package/node/locales/huHU.js +15 -20
- package/node/locales/jaJP.js +1 -1
- package/node/locales/nbNO.js +10 -12
- package/node/locales/nlNL.js +3 -3
- package/node/locales/ptBR.js +7 -9
- package/node/locales/ruRU.js +1 -1
- package/node/locales/svSE.js +2 -2
- package/node/models/gridColumnGrouping.js +4 -0
- package/node/models/params/gridEditCellParams.js +1 -0
- package/node/models/params/gridRowParams.js +9 -0
- package/node/utils/createSelector.js +12 -22
- package/package.json +1 -1
- package/utils/createSelector.d.ts +4 -4
- package/utils/createSelector.js +14 -22
|
@@ -401,12 +401,12 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
401
401
|
rowStyleCache.current = {};
|
|
402
402
|
}
|
|
403
403
|
var rows = [];
|
|
404
|
-
for (var
|
|
404
|
+
for (var _i = 0; _i < renderedRows.length; _i += 1) {
|
|
405
405
|
var _currentPage$range5;
|
|
406
|
-
var _renderedRows$
|
|
407
|
-
_id = _renderedRows$
|
|
408
|
-
_model = _renderedRows$
|
|
409
|
-
var lastVisibleRowIndex = firstRowToRender +
|
|
406
|
+
var _renderedRows$_i = renderedRows[_i],
|
|
407
|
+
_id = _renderedRows$_i.id,
|
|
408
|
+
_model = _renderedRows$_i.model;
|
|
409
|
+
var lastVisibleRowIndex = firstRowToRender + _i === currentPage.rows.length - 1;
|
|
410
410
|
var baseRowHeight = !apiRef.current.rowHasAutoHeight(_id) ? apiRef.current.unstable_getRowHeight(_id) : 'auto';
|
|
411
411
|
var isSelected = void 0;
|
|
412
412
|
if (selectedRowsLookup[_id] == null) {
|
|
@@ -438,7 +438,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
438
438
|
firstColumnToRender: firstColumnToRender,
|
|
439
439
|
lastColumnToRender: lastColumnToRender,
|
|
440
440
|
selected: isSelected,
|
|
441
|
-
index: rowIndexOffset + ((currentPage == null ? void 0 : (_currentPage$range5 = currentPage.range) == null ? void 0 : _currentPage$range5.firstRowIndex) || 0) + firstRowToRender +
|
|
441
|
+
index: rowIndexOffset + ((currentPage == null ? void 0 : (_currentPage$range5 = currentPage.range) == null ? void 0 : _currentPage$range5.firstRowIndex) || 0) + firstRowToRender + _i,
|
|
442
442
|
containerWidth: availableSpace,
|
|
443
443
|
isLastVisible: lastVisibleRowIndex,
|
|
444
444
|
position: position
|
|
@@ -450,7 +450,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
450
450
|
prevRootRowStyle.current = rootRowStyle;
|
|
451
451
|
return rows;
|
|
452
452
|
};
|
|
453
|
-
var needsHorizontalScrollbar = containerDimensions.width && columnsTotalWidth
|
|
453
|
+
var needsHorizontalScrollbar = containerDimensions.width && columnsTotalWidth >= containerDimensions.width;
|
|
454
454
|
var contentSize = React.useMemo(function () {
|
|
455
455
|
// In cases where the columns exceed the available width,
|
|
456
456
|
// the horizontal scrollbar should be shown even when there're no rows.
|
package/legacy/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid v6.0
|
|
2
|
+
* @mui/x-data-grid v6.1.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -22,10 +22,18 @@ export { GridColumnHeaders } from './components/GridColumnHeaders';
|
|
|
22
22
|
/**
|
|
23
23
|
* Reexportable components.
|
|
24
24
|
*/
|
|
25
|
-
export { GridColumnMenu,
|
|
25
|
+
export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from './components/reexportable';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* The full grid API.
|
|
29
29
|
* @demos
|
|
30
30
|
* - [API object](/x/react-data-grid/api-object/)
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The state of `DataGrid`.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The initial state of `DataGrid`.
|
|
31
39
|
*/
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
|
|
4
4
|
// in broader compatibility between the packages.
|
|
5
5
|
// See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
|
|
6
|
-
|
|
7
6
|
export var beBYCore = {
|
|
8
7
|
components: {
|
|
9
8
|
MuiTablePagination: {
|
package/legacy/locales/daDK.js
CHANGED
|
@@ -22,17 +22,15 @@ var daDKGrid = {
|
|
|
22
22
|
return count !== 1 ? "".concat(count, " aktive filtre") : "".concat(count, " aktivt filter");
|
|
23
23
|
},
|
|
24
24
|
// Quick filter toolbar field
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
toolbarQuickFilterPlaceholder: 'Søg…',
|
|
26
|
+
toolbarQuickFilterLabel: 'Søg',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: 'Ryd',
|
|
29
28
|
// Export selector toolbar button text
|
|
30
|
-
|
|
29
|
+
toolbarExport: 'Eksport',
|
|
31
30
|
toolbarExportLabel: 'Eksporter',
|
|
32
31
|
toolbarExportCSV: 'Download som CSV',
|
|
33
32
|
toolbarExportPrint: 'Print',
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
toolbarExportExcel: 'Download som Excel',
|
|
36
34
|
// Columns panel text
|
|
37
35
|
columnsPanelTextFieldLabel: 'Find kolonne',
|
|
38
36
|
columnsPanelTextFieldPlaceholder: 'Kolonne titel',
|
|
@@ -41,7 +39,7 @@ var daDKGrid = {
|
|
|
41
39
|
columnsPanelHideAllButton: 'Skjul alle',
|
|
42
40
|
// Filter panel text
|
|
43
41
|
filterPanelAddFilter: 'Tilføj filter',
|
|
44
|
-
|
|
42
|
+
filterPanelRemoveAll: 'Fjern alle',
|
|
45
43
|
filterPanelDeleteIconLabel: 'Slet',
|
|
46
44
|
filterPanelLogicOperator: 'Logisk operator',
|
|
47
45
|
filterPanelOperator: 'Operatorer',
|
|
@@ -71,7 +69,7 @@ var daDKGrid = {
|
|
|
71
69
|
// Column menu text
|
|
72
70
|
columnMenuLabel: 'Menu',
|
|
73
71
|
columnMenuShowColumns: 'Vis Kolonner',
|
|
74
|
-
|
|
72
|
+
columnMenuManageColumns: 'Administrer kolonner',
|
|
75
73
|
columnMenuFilter: 'Filtre',
|
|
76
74
|
columnMenuHideColumn: 'Skjul',
|
|
77
75
|
columnMenuUnsort: 'Fjern sortering',
|
|
@@ -121,20 +119,17 @@ var daDKGrid = {
|
|
|
121
119
|
return "Fjern grupp\xE9ring efter ".concat(name);
|
|
122
120
|
},
|
|
123
121
|
// Master/detail
|
|
124
|
-
|
|
122
|
+
detailPanelToggle: 'Udvid/kollaps detaljepanel',
|
|
125
123
|
expandDetailPanel: 'Udvid',
|
|
126
|
-
collapseDetailPanel: 'Kollaps'
|
|
127
|
-
|
|
124
|
+
collapseDetailPanel: 'Kollaps',
|
|
128
125
|
// Row reordering text
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Omarrangering af rækker',
|
|
131
127
|
// Aggregation
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Aggregation',
|
|
129
|
+
aggregationFunctionLabelSum: 'sum',
|
|
130
|
+
aggregationFunctionLabelAvg: 'gns',
|
|
131
|
+
aggregationFunctionLabelMin: 'min',
|
|
132
|
+
aggregationFunctionLabelMax: 'max',
|
|
133
|
+
aggregationFunctionLabelSize: 'størrelse'
|
|
138
134
|
};
|
|
139
|
-
|
|
140
135
|
export var daDK = getGridLocalization(daDKGrid, daDKCore);
|
package/legacy/locales/esES.js
CHANGED
|
@@ -69,7 +69,7 @@ var esESGrid = {
|
|
|
69
69
|
// Column menu text
|
|
70
70
|
columnMenuLabel: 'Menú',
|
|
71
71
|
columnMenuShowColumns: 'Mostrar columnas',
|
|
72
|
-
|
|
72
|
+
columnMenuManageColumns: 'Administrar columnas',
|
|
73
73
|
columnMenuFilter: 'Filtro',
|
|
74
74
|
columnMenuHideColumn: 'Ocultar',
|
|
75
75
|
columnMenuUnsort: 'Desordenar',
|
package/legacy/locales/huHU.js
CHANGED
|
@@ -22,17 +22,15 @@ var huHUGrid = {
|
|
|
22
22
|
return "".concat(count, " akt\xEDv sz\u0171r\u0151");
|
|
23
23
|
},
|
|
24
24
|
// Quick filter toolbar field
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
toolbarQuickFilterPlaceholder: 'Keresés…',
|
|
26
|
+
toolbarQuickFilterLabel: 'Keresés',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: 'Törlés',
|
|
29
28
|
// Export selector toolbar button text
|
|
30
29
|
toolbarExport: 'Exportálás',
|
|
31
30
|
toolbarExportLabel: 'Exportálás',
|
|
32
31
|
toolbarExportCSV: 'Mentés CSV fájlként',
|
|
33
32
|
toolbarExportPrint: 'Nyomtatás',
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
toolbarExportExcel: 'Mentés Excel fájlként',
|
|
36
34
|
// Columns panel text
|
|
37
35
|
columnsPanelTextFieldLabel: 'Oszlop keresése',
|
|
38
36
|
columnsPanelTextFieldPlaceholder: 'Oszlop neve',
|
|
@@ -41,7 +39,7 @@ var huHUGrid = {
|
|
|
41
39
|
columnsPanelHideAllButton: 'Összes elrejtése',
|
|
42
40
|
// Filter panel text
|
|
43
41
|
filterPanelAddFilter: 'Szűrő hozzáadása',
|
|
44
|
-
|
|
42
|
+
filterPanelRemoveAll: 'Összes törlése',
|
|
45
43
|
filterPanelDeleteIconLabel: 'Törlés',
|
|
46
44
|
filterPanelLogicOperator: 'Logikai operátor',
|
|
47
45
|
filterPanelOperator: 'Operátorok',
|
|
@@ -71,7 +69,7 @@ var huHUGrid = {
|
|
|
71
69
|
// Column menu text
|
|
72
70
|
columnMenuLabel: 'Menü',
|
|
73
71
|
columnMenuShowColumns: 'Oszlopok megjelenítése',
|
|
74
|
-
|
|
72
|
+
columnMenuManageColumns: 'Oszlopok kezelése',
|
|
75
73
|
columnMenuFilter: 'Szűrők',
|
|
76
74
|
columnMenuHideColumn: 'Elrejtés',
|
|
77
75
|
columnMenuUnsort: 'Sorrend visszaállítása',
|
|
@@ -121,20 +119,17 @@ var huHUGrid = {
|
|
|
121
119
|
return "".concat(name, " szerinti csoportos\xEDt\xE1s t\xF6rl\xE9se");
|
|
122
120
|
},
|
|
123
121
|
// Master/detail
|
|
124
|
-
|
|
122
|
+
detailPanelToggle: 'Részletek panel váltása',
|
|
125
123
|
expandDetailPanel: 'Kibontás',
|
|
126
|
-
collapseDetailPanel: 'Összecsukás'
|
|
127
|
-
|
|
124
|
+
collapseDetailPanel: 'Összecsukás',
|
|
128
125
|
// Row reordering text
|
|
129
|
-
|
|
130
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Sorok újrarendezése',
|
|
131
127
|
// Aggregation
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Összesítés',
|
|
129
|
+
aggregationFunctionLabelSum: 'Összeg',
|
|
130
|
+
aggregationFunctionLabelAvg: 'Átlag',
|
|
131
|
+
aggregationFunctionLabelMin: 'Minimum',
|
|
132
|
+
aggregationFunctionLabelMax: 'Maximum',
|
|
133
|
+
aggregationFunctionLabelSize: 'Darabszám'
|
|
138
134
|
};
|
|
139
|
-
|
|
140
135
|
export var huHU = getGridLocalization(huHUGrid, huHUCore);
|
package/legacy/locales/jaJP.js
CHANGED
|
@@ -39,7 +39,7 @@ var jaJPGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: 'すべて非表示',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: 'フィルター追加',
|
|
42
|
-
|
|
42
|
+
filterPanelRemoveAll: 'すべて削除',
|
|
43
43
|
filterPanelDeleteIconLabel: '削除',
|
|
44
44
|
filterPanelLogicOperator: '論理演算子',
|
|
45
45
|
filterPanelOperator: '演算子',
|
package/legacy/locales/nbNO.js
CHANGED
|
@@ -39,7 +39,7 @@ var nbNOGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: 'Skjul alle',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: 'Legg til filter',
|
|
42
|
-
|
|
42
|
+
filterPanelRemoveAll: 'Fjern alle',
|
|
43
43
|
filterPanelDeleteIconLabel: 'Slett',
|
|
44
44
|
filterPanelLogicOperator: 'Logisk operator',
|
|
45
45
|
filterPanelOperator: 'Operatører',
|
|
@@ -69,7 +69,7 @@ var nbNOGrid = {
|
|
|
69
69
|
// Column menu text
|
|
70
70
|
columnMenuLabel: 'Meny',
|
|
71
71
|
columnMenuShowColumns: 'Vis kolonner',
|
|
72
|
-
|
|
72
|
+
columnMenuManageColumns: 'Administrer kolonner',
|
|
73
73
|
columnMenuFilter: 'Filter',
|
|
74
74
|
columnMenuHideColumn: 'Skjul',
|
|
75
75
|
columnMenuUnsort: 'Usorter',
|
|
@@ -119,19 +119,17 @@ var nbNOGrid = {
|
|
|
119
119
|
return "Stopp \xE5 grupper p\xE5 ".concat(name);
|
|
120
120
|
},
|
|
121
121
|
// Master/detail
|
|
122
|
-
|
|
122
|
+
detailPanelToggle: 'Utvid/kollaps detalj panel',
|
|
123
123
|
expandDetailPanel: 'Utvid',
|
|
124
124
|
collapseDetailPanel: 'Kollaps',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: 'Rad reorganisering'
|
|
127
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Rad reorganisering',
|
|
128
127
|
// Aggregation
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Aggregering',
|
|
129
|
+
aggregationFunctionLabelSum: 'sum',
|
|
130
|
+
aggregationFunctionLabelAvg: 'snitt',
|
|
131
|
+
aggregationFunctionLabelMin: 'min',
|
|
132
|
+
aggregationFunctionLabelMax: 'maks',
|
|
133
|
+
aggregationFunctionLabelSize: 'størrelse'
|
|
135
134
|
};
|
|
136
|
-
|
|
137
135
|
export var nbNO = getGridLocalization(nbNOGrid, nbNOCore);
|
package/legacy/locales/nlNL.js
CHANGED
|
@@ -39,7 +39,7 @@ var nlNLGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: 'Alles verbergen',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: 'Filter toevoegen',
|
|
42
|
-
|
|
42
|
+
filterPanelRemoveAll: 'Alles verwijderen',
|
|
43
43
|
filterPanelDeleteIconLabel: 'Verwijderen',
|
|
44
44
|
filterPanelLogicOperator: 'Logische operator',
|
|
45
45
|
filterPanelOperator: 'Operatoren',
|
|
@@ -69,7 +69,7 @@ var nlNLGrid = {
|
|
|
69
69
|
// Column menu text
|
|
70
70
|
columnMenuLabel: 'Menu',
|
|
71
71
|
columnMenuShowColumns: 'Toon kolommen',
|
|
72
|
-
|
|
72
|
+
columnMenuManageColumns: 'Kolommen beheren',
|
|
73
73
|
columnMenuFilter: 'Filteren',
|
|
74
74
|
columnMenuHideColumn: 'Verbergen',
|
|
75
75
|
columnMenuUnsort: 'Annuleer sortering',
|
|
@@ -119,7 +119,7 @@ var nlNLGrid = {
|
|
|
119
119
|
return "Stop groeperen op ".concat(name);
|
|
120
120
|
},
|
|
121
121
|
// Master/detail
|
|
122
|
-
|
|
122
|
+
detailPanelToggle: 'Detailmenu in- of uitklappen',
|
|
123
123
|
expandDetailPanel: 'Uitklappen',
|
|
124
124
|
collapseDetailPanel: 'Inklappen',
|
|
125
125
|
// Row reordering text
|
package/legacy/locales/ptBR.js
CHANGED
|
@@ -123,15 +123,13 @@ var ptBRGrid = {
|
|
|
123
123
|
expandDetailPanel: 'Expandir',
|
|
124
124
|
collapseDetailPanel: 'Esconder',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: 'Reorganizar linhas'
|
|
127
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Reorganizar linhas',
|
|
128
127
|
// Aggregation
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Agrupar',
|
|
129
|
+
aggregationFunctionLabelSum: 'soma',
|
|
130
|
+
aggregationFunctionLabelAvg: 'média',
|
|
131
|
+
aggregationFunctionLabelMin: 'mín',
|
|
132
|
+
aggregationFunctionLabelMax: 'máx',
|
|
133
|
+
aggregationFunctionLabelSize: 'tamanho'
|
|
135
134
|
};
|
|
136
|
-
|
|
137
135
|
export var ptBR = getGridLocalization(ptBRGrid, ptBRCore);
|
package/legacy/locales/ruRU.js
CHANGED
|
@@ -76,7 +76,7 @@ var ruRUGrid = {
|
|
|
76
76
|
// Column menu text
|
|
77
77
|
columnMenuLabel: 'Меню',
|
|
78
78
|
columnMenuShowColumns: 'Показать столбцы',
|
|
79
|
-
|
|
79
|
+
columnMenuManageColumns: 'Управление колонками',
|
|
80
80
|
columnMenuFilter: 'Фильтр',
|
|
81
81
|
columnMenuHideColumn: 'Скрыть',
|
|
82
82
|
columnMenuUnsort: 'Отменить сортировку',
|
package/legacy/locales/svSE.js
CHANGED
|
@@ -39,7 +39,7 @@ var svSEGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: 'Dölj alla',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: 'Lägg till filter',
|
|
42
|
-
|
|
42
|
+
filterPanelRemoveAll: 'Ta bort alla',
|
|
43
43
|
filterPanelDeleteIconLabel: 'Ta bort',
|
|
44
44
|
filterPanelLogicOperator: 'Logisk operatör',
|
|
45
45
|
filterPanelOperator: 'Operatör',
|
|
@@ -69,7 +69,7 @@ var svSEGrid = {
|
|
|
69
69
|
// Column menu text
|
|
70
70
|
columnMenuLabel: 'Meny',
|
|
71
71
|
columnMenuShowColumns: 'Visa kolumner',
|
|
72
|
-
|
|
72
|
+
columnMenuManageColumns: 'Hantera kolumner',
|
|
73
73
|
columnMenuFilter: 'Filtrera',
|
|
74
74
|
columnMenuHideColumn: 'Dölj',
|
|
75
75
|
columnMenuUnsort: 'Osortera',
|
|
@@ -32,5 +32,13 @@ var GridRowEditStopReasons = /*#__PURE__*/function (GridRowEditStopReasons) {
|
|
|
32
32
|
GridRowEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
33
33
|
return GridRowEditStopReasons;
|
|
34
34
|
}(GridRowEditStopReasons || {});
|
|
35
|
+
/**
|
|
36
|
+
* Object passed as parameter in the row `getRowSpacing` callback prop.
|
|
37
|
+
* @demos
|
|
38
|
+
* - [Row spacing](/x/react-data-grid/row-height/#row-spacing)
|
|
39
|
+
*/
|
|
40
|
+
/**
|
|
41
|
+
* The getRowSpacing return value.
|
|
42
|
+
*/
|
|
35
43
|
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
36
44
|
export { GridRowEditStartReasons, GridRowEditStopReasons };
|
|
@@ -1,44 +1,42 @@
|
|
|
1
1
|
import { createSelector as reselectCreateSelector } from 'reselect';
|
|
2
2
|
import { buildWarning } from './warning';
|
|
3
3
|
var cacheContainer = {
|
|
4
|
-
cache:
|
|
4
|
+
cache: new WeakMap()
|
|
5
5
|
};
|
|
6
6
|
var missingInstanceIdWarning = buildWarning(['MUI: A selector was called without passing the instance ID, which may impact the performance of the grid.', 'To fix, call it with `apiRef`, e.g. `mySelector(apiRef)`, or pass the instance ID explicitly, e.g `mySelector(state, apiRef.current.instanceId)`.']);
|
|
7
7
|
export var createSelector = function createSelector() {
|
|
8
8
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9
9
|
args[_key] = arguments[_key];
|
|
10
10
|
}
|
|
11
|
-
if (cacheContainer.cache === null) {
|
|
12
|
-
cacheContainer.cache = {};
|
|
13
|
-
}
|
|
14
11
|
var selector = function selector() {
|
|
12
|
+
var _cache$get, _cache$get3;
|
|
15
13
|
for (var _len2 = arguments.length, selectorArgs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
16
14
|
selectorArgs[_key2] = arguments[_key2];
|
|
17
15
|
}
|
|
18
16
|
var stateOrApiRef = selectorArgs[0],
|
|
19
17
|
instanceId = selectorArgs[1];
|
|
20
18
|
var isApiRef = !!stateOrApiRef.current;
|
|
21
|
-
var cacheKey = isApiRef ? stateOrApiRef.current.instanceId : instanceId != null ? instanceId :
|
|
19
|
+
var cacheKey = isApiRef ? stateOrApiRef.current.instanceId : instanceId != null ? instanceId : {
|
|
20
|
+
id: 'default'
|
|
21
|
+
};
|
|
22
22
|
var state = isApiRef ? stateOrApiRef.current.state : stateOrApiRef;
|
|
23
23
|
if (process.env.NODE_ENV !== 'production') {
|
|
24
|
-
if (cacheKey === 'default') {
|
|
24
|
+
if (cacheKey.id === 'default') {
|
|
25
25
|
missingInstanceIdWarning();
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
if (cacheContainer.cache === null) {
|
|
29
|
-
cacheContainer.cache = {};
|
|
30
|
-
}
|
|
31
28
|
var cache = cacheContainer.cache;
|
|
32
|
-
if (cache
|
|
29
|
+
if (cache.get(cacheKey) && (_cache$get = cache.get(cacheKey)) != null && _cache$get.get(args)) {
|
|
30
|
+
var _cache$get2;
|
|
33
31
|
// We pass the cache key because the called selector might have as
|
|
34
32
|
// dependency another selector created with this `createSelector`.
|
|
35
|
-
return cache
|
|
33
|
+
return (_cache$get2 = cache.get(cacheKey)) == null ? void 0 : _cache$get2.get(args)(state, cacheKey);
|
|
36
34
|
}
|
|
37
35
|
var newSelector = reselectCreateSelector.apply(void 0, args);
|
|
38
|
-
if (!cache
|
|
39
|
-
cache
|
|
36
|
+
if (!cache.get(cacheKey)) {
|
|
37
|
+
cache.set(cacheKey, new Map());
|
|
40
38
|
}
|
|
41
|
-
cache
|
|
39
|
+
(_cache$get3 = cache.get(cacheKey)) == null ? void 0 : _cache$get3.set(args, newSelector);
|
|
42
40
|
return newSelector(state, cacheKey);
|
|
43
41
|
};
|
|
44
42
|
|
|
@@ -49,12 +47,6 @@ export var createSelector = function createSelector() {
|
|
|
49
47
|
};
|
|
50
48
|
|
|
51
49
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
52
|
-
export var unstable_resetCreateSelectorCache = function unstable_resetCreateSelectorCache(
|
|
53
|
-
|
|
54
|
-
if (cacheContainer.cache && cacheContainer.cache[cacheKey]) {
|
|
55
|
-
delete cacheContainer.cache[cacheKey];
|
|
56
|
-
}
|
|
57
|
-
} else {
|
|
58
|
-
cacheContainer.cache = null;
|
|
59
|
-
}
|
|
50
|
+
export var unstable_resetCreateSelectorCache = function unstable_resetCreateSelectorCache() {
|
|
51
|
+
cacheContainer.cache = new WeakMap();
|
|
60
52
|
};
|
package/locales/coreLocales.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
// This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
|
|
4
4
|
// in broader compatibility between the packages.
|
|
5
5
|
// See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
|
|
6
|
-
|
|
7
6
|
export const beBYCore = {
|
|
8
7
|
components: {
|
|
9
8
|
MuiTablePagination: {
|
package/locales/daDK.js
CHANGED
|
@@ -20,17 +20,15 @@ const daDKGrid = {
|
|
|
20
20
|
toolbarFiltersTooltipShow: 'Vis filtre',
|
|
21
21
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filtre` : `${count} aktivt filter`,
|
|
22
22
|
// Quick filter toolbar field
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Søg…',
|
|
24
|
+
toolbarQuickFilterLabel: 'Søg',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Ryd',
|
|
27
26
|
// Export selector toolbar button text
|
|
28
|
-
|
|
27
|
+
toolbarExport: 'Eksport',
|
|
29
28
|
toolbarExportLabel: 'Eksporter',
|
|
30
29
|
toolbarExportCSV: 'Download som CSV',
|
|
31
30
|
toolbarExportPrint: 'Print',
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
toolbarExportExcel: 'Download som Excel',
|
|
34
32
|
// Columns panel text
|
|
35
33
|
columnsPanelTextFieldLabel: 'Find kolonne',
|
|
36
34
|
columnsPanelTextFieldPlaceholder: 'Kolonne titel',
|
|
@@ -39,7 +37,7 @@ const daDKGrid = {
|
|
|
39
37
|
columnsPanelHideAllButton: 'Skjul alle',
|
|
40
38
|
// Filter panel text
|
|
41
39
|
filterPanelAddFilter: 'Tilføj filter',
|
|
42
|
-
|
|
40
|
+
filterPanelRemoveAll: 'Fjern alle',
|
|
43
41
|
filterPanelDeleteIconLabel: 'Slet',
|
|
44
42
|
filterPanelLogicOperator: 'Logisk operator',
|
|
45
43
|
filterPanelOperator: 'Operatorer',
|
|
@@ -69,7 +67,7 @@ const daDKGrid = {
|
|
|
69
67
|
// Column menu text
|
|
70
68
|
columnMenuLabel: 'Menu',
|
|
71
69
|
columnMenuShowColumns: 'Vis Kolonner',
|
|
72
|
-
|
|
70
|
+
columnMenuManageColumns: 'Administrer kolonner',
|
|
73
71
|
columnMenuFilter: 'Filtre',
|
|
74
72
|
columnMenuHideColumn: 'Skjul',
|
|
75
73
|
columnMenuUnsort: 'Fjern sortering',
|
|
@@ -109,20 +107,17 @@ const daDKGrid = {
|
|
|
109
107
|
groupColumn: name => `Gruppér efter ${name}`,
|
|
110
108
|
unGroupColumn: name => `Fjern gruppéring efter ${name}`,
|
|
111
109
|
// Master/detail
|
|
112
|
-
|
|
110
|
+
detailPanelToggle: 'Udvid/kollaps detaljepanel',
|
|
113
111
|
expandDetailPanel: 'Udvid',
|
|
114
|
-
collapseDetailPanel: 'Kollaps'
|
|
115
|
-
|
|
112
|
+
collapseDetailPanel: 'Kollaps',
|
|
116
113
|
// Row reordering text
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Omarrangering af rækker',
|
|
119
115
|
// Aggregation
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'Aggregation',
|
|
117
|
+
aggregationFunctionLabelSum: 'sum',
|
|
118
|
+
aggregationFunctionLabelAvg: 'gns',
|
|
119
|
+
aggregationFunctionLabelMin: 'min',
|
|
120
|
+
aggregationFunctionLabelMax: 'max',
|
|
121
|
+
aggregationFunctionLabelSize: 'størrelse'
|
|
126
122
|
};
|
|
127
|
-
|
|
128
123
|
export const daDK = getGridLocalization(daDKGrid, daDKCore);
|
package/locales/esES.js
CHANGED
|
@@ -67,7 +67,7 @@ const esESGrid = {
|
|
|
67
67
|
// Column menu text
|
|
68
68
|
columnMenuLabel: 'Menú',
|
|
69
69
|
columnMenuShowColumns: 'Mostrar columnas',
|
|
70
|
-
|
|
70
|
+
columnMenuManageColumns: 'Administrar columnas',
|
|
71
71
|
columnMenuFilter: 'Filtro',
|
|
72
72
|
columnMenuHideColumn: 'Ocultar',
|
|
73
73
|
columnMenuUnsort: 'Desordenar',
|
package/locales/huHU.js
CHANGED
|
@@ -20,17 +20,15 @@ const huHUGrid = {
|
|
|
20
20
|
toolbarFiltersTooltipShow: 'Szűrők megjelenítése',
|
|
21
21
|
toolbarFiltersTooltipActive: count => `${count} aktív szűrő`,
|
|
22
22
|
// Quick filter toolbar field
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Keresés…',
|
|
24
|
+
toolbarQuickFilterLabel: 'Keresés',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Törlés',
|
|
27
26
|
// Export selector toolbar button text
|
|
28
27
|
toolbarExport: 'Exportálás',
|
|
29
28
|
toolbarExportLabel: 'Exportálás',
|
|
30
29
|
toolbarExportCSV: 'Mentés CSV fájlként',
|
|
31
30
|
toolbarExportPrint: 'Nyomtatás',
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
toolbarExportExcel: 'Mentés Excel fájlként',
|
|
34
32
|
// Columns panel text
|
|
35
33
|
columnsPanelTextFieldLabel: 'Oszlop keresése',
|
|
36
34
|
columnsPanelTextFieldPlaceholder: 'Oszlop neve',
|
|
@@ -39,7 +37,7 @@ const huHUGrid = {
|
|
|
39
37
|
columnsPanelHideAllButton: 'Összes elrejtése',
|
|
40
38
|
// Filter panel text
|
|
41
39
|
filterPanelAddFilter: 'Szűrő hozzáadása',
|
|
42
|
-
|
|
40
|
+
filterPanelRemoveAll: 'Összes törlése',
|
|
43
41
|
filterPanelDeleteIconLabel: 'Törlés',
|
|
44
42
|
filterPanelLogicOperator: 'Logikai operátor',
|
|
45
43
|
filterPanelOperator: 'Operátorok',
|
|
@@ -69,7 +67,7 @@ const huHUGrid = {
|
|
|
69
67
|
// Column menu text
|
|
70
68
|
columnMenuLabel: 'Menü',
|
|
71
69
|
columnMenuShowColumns: 'Oszlopok megjelenítése',
|
|
72
|
-
|
|
70
|
+
columnMenuManageColumns: 'Oszlopok kezelése',
|
|
73
71
|
columnMenuFilter: 'Szűrők',
|
|
74
72
|
columnMenuHideColumn: 'Elrejtés',
|
|
75
73
|
columnMenuUnsort: 'Sorrend visszaállítása',
|
|
@@ -109,20 +107,17 @@ const huHUGrid = {
|
|
|
109
107
|
groupColumn: name => `Csoportosítás ${name} szerint`,
|
|
110
108
|
unGroupColumn: name => `${name} szerinti csoportosítás törlése`,
|
|
111
109
|
// Master/detail
|
|
112
|
-
|
|
110
|
+
detailPanelToggle: 'Részletek panel váltása',
|
|
113
111
|
expandDetailPanel: 'Kibontás',
|
|
114
|
-
collapseDetailPanel: 'Összecsukás'
|
|
115
|
-
|
|
112
|
+
collapseDetailPanel: 'Összecsukás',
|
|
116
113
|
// Row reordering text
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Sorok újrarendezése',
|
|
119
115
|
// Aggregation
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'Összesítés',
|
|
117
|
+
aggregationFunctionLabelSum: 'Összeg',
|
|
118
|
+
aggregationFunctionLabelAvg: 'Átlag',
|
|
119
|
+
aggregationFunctionLabelMin: 'Minimum',
|
|
120
|
+
aggregationFunctionLabelMax: 'Maximum',
|
|
121
|
+
aggregationFunctionLabelSize: 'Darabszám'
|
|
126
122
|
};
|
|
127
|
-
|
|
128
123
|
export const huHU = getGridLocalization(huHUGrid, huHUCore);
|
package/locales/jaJP.js
CHANGED
|
@@ -37,7 +37,7 @@ const jaJPGrid = {
|
|
|
37
37
|
columnsPanelHideAllButton: 'すべて非表示',
|
|
38
38
|
// Filter panel text
|
|
39
39
|
filterPanelAddFilter: 'フィルター追加',
|
|
40
|
-
|
|
40
|
+
filterPanelRemoveAll: 'すべて削除',
|
|
41
41
|
filterPanelDeleteIconLabel: '削除',
|
|
42
42
|
filterPanelLogicOperator: '論理演算子',
|
|
43
43
|
filterPanelOperator: '演算子',
|