@mui/x-data-grid 5.9.0 → 5.10.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 +36 -0
- package/README.md +5 -3
- package/components/GridRow.js +5 -0
- package/components/containers/GridRootStyles.js +36 -1
- package/components/menu/GridMenu.js +1 -0
- package/constants/defaultGridSlotsComponents.js +3 -2
- package/constants/gridClasses.d.ts +20 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +3 -1
- package/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/rows/useGridRows.js +19 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +2 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +10 -0
- package/index.js +1 -1
- package/legacy/components/GridRow.js +5 -0
- package/legacy/components/containers/GridRootStyles.js +26 -5
- package/legacy/components/menu/GridMenu.js +1 -0
- package/legacy/constants/defaultGridSlotsComponents.js +3 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +3 -1
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/legacy/hooks/features/rows/useGridRows.js +25 -0
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +10 -0
- package/legacy/index.js +1 -1
- package/legacy/locales/arSD.js +3 -1
- package/legacy/locales/bgBG.js +3 -1
- package/legacy/locales/csCZ.js +2 -0
- package/legacy/locales/daDK.js +3 -1
- package/legacy/locales/deDE.js +3 -1
- package/legacy/locales/elGR.js +2 -0
- package/legacy/locales/esES.js +2 -0
- package/legacy/locales/faIR.js +3 -1
- package/legacy/locales/fiFI.js +2 -0
- package/legacy/locales/frFR.js +2 -0
- package/legacy/locales/heIL.js +3 -1
- package/legacy/locales/huHU.js +3 -1
- package/legacy/locales/itIT.js +2 -0
- package/legacy/locales/jaJP.js +2 -0
- package/legacy/locales/koKR.js +2 -0
- package/legacy/locales/nlNL.js +2 -0
- package/legacy/locales/plPL.js +3 -1
- package/legacy/locales/ptBR.js +3 -1
- package/legacy/locales/ruRU.js +2 -0
- package/legacy/locales/skSK.js +2 -0
- package/legacy/locales/trTR.js +3 -1
- package/legacy/locales/ukUA.js +2 -0
- package/legacy/locales/viVN.js +2 -0
- package/legacy/locales/zhCN.js +2 -0
- package/legacy/models/events/gridEvents.js +6 -0
- package/locales/arSD.js +3 -1
- package/locales/bgBG.js +3 -1
- package/locales/csCZ.js +2 -0
- package/locales/daDK.js +3 -1
- package/locales/deDE.js +3 -1
- package/locales/elGR.js +2 -0
- package/locales/esES.js +2 -0
- package/locales/faIR.js +3 -1
- package/locales/fiFI.js +2 -0
- package/locales/frFR.js +2 -0
- package/locales/heIL.js +3 -1
- package/locales/huHU.js +3 -1
- package/locales/itIT.js +2 -0
- package/locales/jaJP.js +2 -0
- package/locales/koKR.js +2 -0
- package/locales/nlNL.js +2 -0
- package/locales/plPL.js +3 -1
- package/locales/ptBR.js +3 -1
- package/locales/ruRU.js +2 -0
- package/locales/skSK.js +2 -0
- package/locales/trTR.js +3 -1
- package/locales/ukUA.js +2 -0
- package/locales/viVN.js +2 -0
- package/locales/zhCN.js +2 -0
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/api/gridRowApi.d.ts +6 -0
- package/models/events/gridEventLookup.d.ts +20 -0
- package/models/events/gridEvents.d.ts +32 -0
- package/models/events/gridEvents.js +6 -0
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/modern/components/GridRow.js +5 -0
- package/modern/components/containers/GridRootStyles.js +36 -1
- package/modern/components/menu/GridMenu.js +1 -0
- package/modern/constants/defaultGridSlotsComponents.js +3 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +3 -1
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/modern/hooks/features/rows/useGridRows.js +19 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +10 -0
- package/modern/index.js +1 -1
- package/modern/locales/arSD.js +3 -1
- package/modern/locales/bgBG.js +3 -1
- package/modern/locales/csCZ.js +2 -0
- package/modern/locales/daDK.js +3 -1
- package/modern/locales/deDE.js +3 -1
- package/modern/locales/elGR.js +2 -0
- package/modern/locales/esES.js +2 -0
- package/modern/locales/faIR.js +3 -1
- package/modern/locales/fiFI.js +2 -0
- package/modern/locales/frFR.js +2 -0
- package/modern/locales/heIL.js +3 -1
- package/modern/locales/huHU.js +3 -1
- package/modern/locales/itIT.js +2 -0
- package/modern/locales/jaJP.js +2 -0
- package/modern/locales/koKR.js +2 -0
- package/modern/locales/nlNL.js +2 -0
- package/modern/locales/plPL.js +3 -1
- package/modern/locales/ptBR.js +3 -1
- package/modern/locales/ruRU.js +2 -0
- package/modern/locales/skSK.js +2 -0
- package/modern/locales/trTR.js +3 -1
- package/modern/locales/ukUA.js +2 -0
- package/modern/locales/viVN.js +2 -0
- package/modern/locales/zhCN.js +2 -0
- package/modern/models/events/gridEvents.js +6 -0
- package/node/components/GridRow.js +5 -0
- package/node/components/containers/GridRootStyles.js +36 -1
- package/node/components/menu/GridMenu.js +1 -0
- package/node/constants/defaultGridSlotsComponents.js +2 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +3 -1
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/node/hooks/features/rows/useGridRows.js +19 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +10 -0
- package/node/index.js +1 -1
- package/node/locales/arSD.js +3 -1
- package/node/locales/bgBG.js +3 -1
- package/node/locales/csCZ.js +2 -0
- package/node/locales/daDK.js +3 -1
- package/node/locales/deDE.js +3 -1
- package/node/locales/elGR.js +2 -0
- package/node/locales/esES.js +2 -0
- package/node/locales/faIR.js +3 -1
- package/node/locales/fiFI.js +2 -0
- package/node/locales/frFR.js +2 -0
- package/node/locales/heIL.js +3 -1
- package/node/locales/huHU.js +3 -1
- package/node/locales/itIT.js +2 -0
- package/node/locales/jaJP.js +2 -0
- package/node/locales/koKR.js +2 -0
- package/node/locales/nlNL.js +2 -0
- package/node/locales/plPL.js +3 -1
- package/node/locales/ptBR.js +3 -1
- package/node/locales/ruRU.js +2 -0
- package/node/locales/skSK.js +2 -0
- package/node/locales/trTR.js +3 -1
- package/node/locales/ukUA.js +2 -0
- package/node/locales/viVN.js +2 -0
- package/node/locales/zhCN.js +2 -0
- package/node/models/events/gridEvents.js +6 -0
- package/package.json +2 -2
|
@@ -255,12 +255,31 @@ const useGridRows = (apiRef, props) => {
|
|
|
255
255
|
|
|
256
256
|
return (_gridRowTreeSelector$ = (0, _gridRowsSelector.gridRowTreeSelector)(apiRef)[id]) != null ? _gridRowTreeSelector$ : null;
|
|
257
257
|
}, [apiRef]);
|
|
258
|
+
const setRowIndex = React.useCallback((rowId, targetIndex) => {
|
|
259
|
+
const allRows = (0, _gridRowsSelector.gridRowIdsSelector)(apiRef);
|
|
260
|
+
const oldIndex = allRows.findIndex(row => row === rowId);
|
|
261
|
+
|
|
262
|
+
if (oldIndex === targetIndex) {
|
|
263
|
+
return;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
logger.debug(`Moving row ${rowId} to index ${targetIndex}`);
|
|
267
|
+
const updatedRows = [...allRows];
|
|
268
|
+
updatedRows.splice(targetIndex, 0, updatedRows.splice(oldIndex, 1)[0]);
|
|
269
|
+
apiRef.current.setState(state => (0, _extends2.default)({}, state, {
|
|
270
|
+
rows: (0, _extends2.default)({}, state.rows, {
|
|
271
|
+
ids: updatedRows
|
|
272
|
+
})
|
|
273
|
+
}));
|
|
274
|
+
apiRef.current.applySorting();
|
|
275
|
+
}, [apiRef, logger]);
|
|
258
276
|
const rowApi = {
|
|
259
277
|
getRow,
|
|
260
278
|
getRowModels,
|
|
261
279
|
getRowsCount,
|
|
262
280
|
getAllRowIds,
|
|
263
281
|
setRows,
|
|
282
|
+
setRowIndex,
|
|
264
283
|
updateRows,
|
|
265
284
|
setRowChildrenExpansion,
|
|
266
285
|
getRowNode,
|
|
@@ -253,6 +253,14 @@ const useGridVirtualScroller = props => {
|
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
const handleWheel = event => {
|
|
257
|
+
apiRef.current.publishEvent(_events.GridEvents.virtualScrollerWheel, {}, event);
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
const handleTouchMove = event => {
|
|
261
|
+
apiRef.current.publishEvent(_events.GridEvents.virtualScrollerTouchMove, {}, event);
|
|
262
|
+
};
|
|
263
|
+
|
|
256
264
|
const getRows = (params = {
|
|
257
265
|
renderContext
|
|
258
266
|
}) => {
|
|
@@ -402,6 +410,8 @@ const useGridVirtualScroller = props => {
|
|
|
402
410
|
return (0, _extends2.default)({
|
|
403
411
|
ref: handleRef,
|
|
404
412
|
onScroll: handleScroll,
|
|
413
|
+
onWheel: handleWheel,
|
|
414
|
+
onTouchMove: handleTouchMove,
|
|
405
415
|
style: (0, _extends2.default)({}, style, rootStyle)
|
|
406
416
|
}, other);
|
|
407
417
|
},
|
package/node/index.js
CHANGED
package/node/locales/arSD.js
CHANGED
|
@@ -112,7 +112,9 @@ const arSDGrid = {
|
|
|
112
112
|
unGroupColumn: name => `إيقاف التجميع حسب ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'توسيع',
|
|
115
|
-
collapseDetailPanel: 'طوي'
|
|
115
|
+
collapseDetailPanel: 'طوي' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const arSD = (0, _getGridLocalization.getGridLocalization)(arSDGrid, _locale.arSD);
|
|
118
120
|
exports.arSD = arSD;
|
package/node/locales/bgBG.js
CHANGED
|
@@ -112,7 +112,9 @@ const bgBGGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Спри групиране по ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Разгъване',
|
|
115
|
-
collapseDetailPanel: 'Свиване'
|
|
115
|
+
collapseDetailPanel: 'Свиване' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const bgBG = (0, _getGridLocalization.getGridLocalization)(bgBGGrid, _locale.bgBG);
|
|
118
120
|
exports.bgBG = bgBG;
|
package/node/locales/csCZ.js
CHANGED
|
@@ -147,6 +147,8 @@ const csCZGrid = {
|
|
|
147
147
|
unGroupColumn: name => `Přestat zoskupovat podle ${name}` // Master/detail
|
|
148
148
|
// expandDetailPanel: 'Expand',
|
|
149
149
|
// collapseDetailPanel: 'Collapse',
|
|
150
|
+
// Row reordering text
|
|
151
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
150
152
|
|
|
151
153
|
};
|
|
152
154
|
const csCZ = (0, _getGridLocalization.getGridLocalization)(csCZGrid, _locale.csCZ);
|
package/node/locales/daDK.js
CHANGED
|
@@ -112,7 +112,9 @@ const daDKGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Fjern gruppéring efter ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Udvid',
|
|
115
|
-
collapseDetailPanel: 'Kollaps'
|
|
115
|
+
collapseDetailPanel: 'Kollaps' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const daDK = (0, _getGridLocalization.getGridLocalization)(daDKGrid, _locale.daDK);
|
|
118
120
|
exports.daDK = daDK;
|
package/node/locales/deDE.js
CHANGED
|
@@ -112,7 +112,9 @@ const deDEGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Gruppierung nach ${name} aufheben`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Aufklappen',
|
|
115
|
-
collapseDetailPanel: 'Zuklappen'
|
|
115
|
+
collapseDetailPanel: 'Zuklappen' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const deDE = (0, _getGridLocalization.getGridLocalization)(deDEGrid, _locale.deDE);
|
|
118
120
|
exports.deDE = deDE;
|
package/node/locales/elGR.js
CHANGED
|
@@ -110,6 +110,8 @@ const elGRGrid = {
|
|
|
110
110
|
// Master/detail
|
|
111
111
|
// expandDetailPanel: 'Expand',
|
|
112
112
|
// collapseDetailPanel: 'Collapse',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
113
115
|
|
|
114
116
|
};
|
|
115
117
|
const elGR = (0, _getGridLocalization.getGridLocalization)(elGRGrid);
|
package/node/locales/esES.js
CHANGED
|
@@ -112,6 +112,8 @@ const esESGrid = {
|
|
|
112
112
|
// Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const esES = (0, _getGridLocalization.getGridLocalization)(esESGrid, _locale.esES);
|
package/node/locales/faIR.js
CHANGED
|
@@ -112,7 +112,9 @@ const faIRGrid = {
|
|
|
112
112
|
unGroupColumn: name => `لغو گروهبندی براساس ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'بازکردن پنل جزئیات',
|
|
115
|
-
collapseDetailPanel: 'بستن پنل جزئیات'
|
|
115
|
+
collapseDetailPanel: 'بستن پنل جزئیات' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const faIR = (0, _getGridLocalization.getGridLocalization)(faIRGrid, _locale.faIR);
|
|
118
120
|
exports.faIR = faIR;
|
package/node/locales/fiFI.js
CHANGED
|
@@ -112,6 +112,8 @@ const fiFIGrid = {
|
|
|
112
112
|
// Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const fiFI = (0, _getGridLocalization.getGridLocalization)(fiFIGrid, _locale.fiFI);
|
package/node/locales/frFR.js
CHANGED
|
@@ -112,6 +112,8 @@ const frFRGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Arrêter de grouper par ${name}` // Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const frFR = (0, _getGridLocalization.getGridLocalization)(frFRGrid, _locale.frFR);
|
package/node/locales/heIL.js
CHANGED
|
@@ -112,7 +112,9 @@ const heILGrid = {
|
|
|
112
112
|
unGroupColumn: name => `הפסק לקבץ לפי ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'הרחב',
|
|
115
|
-
collapseDetailPanel: 'כווץ'
|
|
115
|
+
collapseDetailPanel: 'כווץ' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const heIL = (0, _getGridLocalization.getGridLocalization)(heILGrid, _locale.heIL);
|
|
118
120
|
exports.heIL = heIL;
|
package/node/locales/huHU.js
CHANGED
|
@@ -112,7 +112,9 @@ const huHUGrid = {
|
|
|
112
112
|
unGroupColumn: name => `${name} szerinti csoportosítás törlése`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Kibontás',
|
|
115
|
-
collapseDetailPanel: 'Összecsukás'
|
|
115
|
+
collapseDetailPanel: 'Összecsukás' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const huHU = (0, _getGridLocalization.getGridLocalization)(huHUGrid, _locale.huHU);
|
|
118
120
|
exports.huHU = huHU;
|
package/node/locales/itIT.js
CHANGED
|
@@ -112,6 +112,8 @@ const itITGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Annulla raggruppamento per ${name}` // Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const itIT = (0, _getGridLocalization.getGridLocalization)(itITGrid, _locale.itIT);
|
package/node/locales/jaJP.js
CHANGED
|
@@ -112,6 +112,8 @@ const jaJPGrid = {
|
|
|
112
112
|
// Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const jaJP = (0, _getGridLocalization.getGridLocalization)(jaJPGrid, _locale.jaJP);
|
package/node/locales/koKR.js
CHANGED
|
@@ -112,6 +112,8 @@ const koKRGrid = {
|
|
|
112
112
|
// Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const koKR = (0, _getGridLocalization.getGridLocalization)(koKRGrid, _locale.koKR);
|
package/node/locales/nlNL.js
CHANGED
|
@@ -112,6 +112,8 @@ const nlNLGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Stop groeperen op ${name}` // Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid, _locale.nlNL);
|
package/node/locales/plPL.js
CHANGED
|
@@ -112,7 +112,9 @@ const plPLGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Rozgrupuj ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Rozwiń',
|
|
115
|
-
collapseDetailPanel: 'Zwiń'
|
|
115
|
+
collapseDetailPanel: 'Zwiń' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const plPL = (0, _getGridLocalization.getGridLocalization)(plPLGrid, _locale.plPL);
|
|
118
120
|
exports.plPL = plPL;
|
package/node/locales/ptBR.js
CHANGED
|
@@ -112,7 +112,9 @@ const ptBRGrid = {
|
|
|
112
112
|
unGroupColumn: name => `Parar agrupamento por ${name}`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Expandir',
|
|
115
|
-
collapseDetailPanel: 'Esconder'
|
|
115
|
+
collapseDetailPanel: 'Esconder' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const ptBR = (0, _getGridLocalization.getGridLocalization)(ptBRGrid, _locale.ptBR);
|
|
118
120
|
exports.ptBR = ptBR;
|
package/node/locales/ruRU.js
CHANGED
|
@@ -145,6 +145,8 @@ const ruRUGrid = {
|
|
|
145
145
|
unGroupColumn: name => `Разгруппировать по ${name}` // Master/detail
|
|
146
146
|
// expandDetailPanel: 'Expand',
|
|
147
147
|
// collapseDetailPanel: 'Collapse',
|
|
148
|
+
// Row reordering text
|
|
149
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
148
150
|
|
|
149
151
|
};
|
|
150
152
|
const ruRU = (0, _getGridLocalization.getGridLocalization)(ruRUGrid, _locale.ruRU);
|
package/node/locales/skSK.js
CHANGED
|
@@ -147,6 +147,8 @@ const skSKGrid = {
|
|
|
147
147
|
unGroupColumn: name => `Prestať zoskupovať podľa ${name}` // Master/detail
|
|
148
148
|
// expandDetailPanel: 'Expand',
|
|
149
149
|
// collapseDetailPanel: 'Collapse',
|
|
150
|
+
// Row reordering text
|
|
151
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
150
152
|
|
|
151
153
|
};
|
|
152
154
|
const skSK = (0, _getGridLocalization.getGridLocalization)(skSKGrid, _locale.skSK);
|
package/node/locales/trTR.js
CHANGED
|
@@ -112,7 +112,9 @@ const trTRGrid = {
|
|
|
112
112
|
unGroupColumn: name => `${name} için gruplamayı kaldır`,
|
|
113
113
|
// Master/detail
|
|
114
114
|
expandDetailPanel: 'Genişlet',
|
|
115
|
-
collapseDetailPanel: 'Gizle'
|
|
115
|
+
collapseDetailPanel: 'Gizle' // Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
117
|
+
|
|
116
118
|
};
|
|
117
119
|
const trTR = (0, _getGridLocalization.getGridLocalization)(trTRGrid, _locale.trTR);
|
|
118
120
|
exports.trTR = trTR;
|
package/node/locales/ukUA.js
CHANGED
|
@@ -137,6 +137,8 @@ const ukUAGrid = {
|
|
|
137
137
|
// Master/detail
|
|
138
138
|
// expandDetailPanel: 'Expand',
|
|
139
139
|
// collapseDetailPanel: 'Collapse',
|
|
140
|
+
// Row reordering text
|
|
141
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
140
142
|
|
|
141
143
|
};
|
|
142
144
|
const ukUA = (0, _getGridLocalization.getGridLocalization)(ukUAGrid, _locale.ukUA);
|
package/node/locales/viVN.js
CHANGED
|
@@ -112,6 +112,8 @@ const viVNGrid = {
|
|
|
112
112
|
// Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const viVN = (0, _getGridLocalization.getGridLocalization)(viVNGrid, _locale.viVN);
|
package/node/locales/zhCN.js
CHANGED
|
@@ -112,6 +112,8 @@ const zhCNGrid = {
|
|
|
112
112
|
// Master/detail
|
|
113
113
|
// expandDetailPanel: 'Expand',
|
|
114
114
|
// collapseDetailPanel: 'Collapse',
|
|
115
|
+
// Row reordering text
|
|
116
|
+
// rowReorderingHeaderName: 'Row reordering',
|
|
115
117
|
|
|
116
118
|
};
|
|
117
119
|
const zhCN = (0, _getGridLocalization.getGridLocalization)(zhCNGrid, _locale.zhCN);
|
|
@@ -36,6 +36,9 @@ exports.GridEvents = GridEvents;
|
|
|
36
36
|
GridEvents["rowMouseEnter"] = "rowMouseEnter";
|
|
37
37
|
GridEvents["rowMouseLeave"] = "rowMouseLeave";
|
|
38
38
|
GridEvents["editRowsModelChange"] = "editRowsModelChange";
|
|
39
|
+
GridEvents["rowDragStart"] = "rowDragStart";
|
|
40
|
+
GridEvents["rowDragOver"] = "rowDragOver";
|
|
41
|
+
GridEvents["rowDragEnd"] = "rowDragEnd";
|
|
39
42
|
GridEvents["columnHeaderBlur"] = "columnHeaderBlur";
|
|
40
43
|
GridEvents["columnHeaderFocus"] = "columnHeaderFocus";
|
|
41
44
|
GridEvents["columnHeaderNavigationKeyDown"] = "columnHeaderNavigationKeyDown";
|
|
@@ -64,6 +67,7 @@ exports.GridEvents = GridEvents;
|
|
|
64
67
|
GridEvents["columnResizeStart"] = "columnResizeStart";
|
|
65
68
|
GridEvents["columnResizeStop"] = "columnResizeStop";
|
|
66
69
|
GridEvents["columnOrderChange"] = "columnOrderChange";
|
|
70
|
+
GridEvents["rowOrderChange"] = "rowOrderChange";
|
|
67
71
|
GridEvents["rowsSet"] = "rowsSet";
|
|
68
72
|
GridEvents["rowExpansionChange"] = "rowExpansionChange";
|
|
69
73
|
GridEvents["sortedRowsSet"] = "sortedRowsSet";
|
|
@@ -79,6 +83,8 @@ exports.GridEvents = GridEvents;
|
|
|
79
83
|
GridEvents["stateChange"] = "stateChange";
|
|
80
84
|
GridEvents["columnVisibilityChange"] = "columnVisibilityChange";
|
|
81
85
|
GridEvents["virtualScrollerContentSizeChange"] = "virtualScrollerContentSizeChange";
|
|
86
|
+
GridEvents["virtualScrollerWheel"] = "virtualScrollerWheel";
|
|
87
|
+
GridEvents["virtualScrollerTouchMove"] = "virtualScrollerTouchMove";
|
|
82
88
|
GridEvents["preferencePanelClose"] = "preferencePanelClose";
|
|
83
89
|
GridEvents["preferencePanelOpen"] = "preferencePanelOpen";
|
|
84
90
|
})(GridEvents || (exports.GridEvents = GridEvents = {}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.10.0",
|
|
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
|
-
"@mui/utils": "^5.6.
|
|
38
|
+
"@mui/utils": "^5.6.1",
|
|
39
39
|
"clsx": "^1.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"reselect": "^4.1.5"
|