@mui/x-data-grid 5.17.3 → 5.17.5
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 +65 -1
- package/components/GridPagination.d.ts +43 -1
- package/components/GridPagination.js +1 -2
- package/components/GridRow.d.ts +1 -4
- package/components/GridRow.js +5 -5
- package/components/toolbar/GridToolbarFilterButton.js +8 -4
- package/hooks/features/editRows/useGridCellEditing.new.js +12 -7
- package/hooks/features/editRows/useGridRowEditing.new.js +12 -7
- package/hooks/features/focus/useGridFocus.js +14 -15
- package/hooks/features/virtualization/useGridVirtualScroller.js +7 -7
- package/index.js +1 -1
- package/legacy/components/GridPagination.js +1 -2
- package/legacy/components/GridRow.js +5 -5
- package/legacy/components/toolbar/GridToolbarFilterButton.js +3 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +12 -7
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +12 -7
- package/legacy/hooks/features/focus/useGridFocus.js +14 -15
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +7 -7
- package/legacy/index.js +1 -1
- package/legacy/locales/faIR.js +14 -14
- package/legacy/locales/fiFI.js +32 -28
- package/legacy/locales/plPL.js +7 -7
- package/locales/faIR.js +14 -14
- package/locales/fiFI.js +28 -28
- package/locales/plPL.js +7 -7
- package/modern/components/GridPagination.js +1 -2
- package/modern/components/GridRow.js +5 -5
- package/modern/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +12 -7
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +12 -7
- package/modern/hooks/features/focus/useGridFocus.js +14 -15
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +6 -6
- package/modern/index.js +1 -1
- package/modern/locales/faIR.js +14 -14
- package/modern/locales/fiFI.js +28 -28
- package/modern/locales/plPL.js +7 -7
- package/node/components/GridPagination.js +1 -2
- package/node/components/GridRow.js +6 -5
- package/node/components/toolbar/GridToolbarFilterButton.js +8 -4
- package/node/hooks/features/editRows/useGridCellEditing.new.js +15 -9
- package/node/hooks/features/editRows/useGridRowEditing.new.js +15 -9
- package/node/hooks/features/focus/useGridFocus.js +14 -15
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +7 -7
- package/node/index.js +1 -1
- package/node/locales/faIR.js +14 -14
- package/node/locales/fiFI.js +28 -28
- package/node/locales/plPL.js +7 -7
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ var _excluded = ["id", "field"],
|
|
|
8
8
|
_excluded2 = ["id", "field"];
|
|
9
9
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
10
10
|
import * as React from 'react';
|
|
11
|
+
import { unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
11
12
|
import { useGridApiEventHandler, useGridApiOptionHandler, GridSignature } from '../../utils/useGridApiEventHandler';
|
|
12
13
|
import { GridEditModes, GridCellModes } from '../../../models/gridEditRowModel';
|
|
13
14
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
@@ -189,7 +190,7 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
189
190
|
var isEditing = editingState[id] && editingState[id][field];
|
|
190
191
|
return isEditing ? GridCellModes.Edit : GridCellModes.View;
|
|
191
192
|
}, [apiRef]);
|
|
192
|
-
var updateCellModesModel =
|
|
193
|
+
var updateCellModesModel = useEventCallback(function (newModel) {
|
|
193
194
|
var isNewModelDifferentFromProp = newModel !== props.cellModesModel;
|
|
194
195
|
|
|
195
196
|
if (onCellModesModelChange && isNewModelDifferentFromProp) {
|
|
@@ -206,7 +207,7 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
206
207
|
setCellModesModel(newModel);
|
|
207
208
|
cellModesModelRef.current = newModel;
|
|
208
209
|
apiRef.current.publishEvent('cellModesModelChange', newModel);
|
|
209
|
-
}
|
|
210
|
+
});
|
|
210
211
|
var updateFieldInCellModesModel = React.useCallback(function (id, field, newProps) {
|
|
211
212
|
// We use the ref because it always contain the up-to-date value, different from the state
|
|
212
213
|
// that needs a rerender to reflect the new value
|
|
@@ -260,7 +261,7 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
260
261
|
mode: GridCellModes.Edit
|
|
261
262
|
}, other));
|
|
262
263
|
}, [throwIfNotEditable, throwIfNotInMode, updateFieldInCellModesModel]);
|
|
263
|
-
var updateStateToStartCellEditMode =
|
|
264
|
+
var updateStateToStartCellEditMode = useEventCallback(function (params) {
|
|
264
265
|
var id = params.id,
|
|
265
266
|
field = params.field,
|
|
266
267
|
deleteValue = params.deleteValue;
|
|
@@ -271,7 +272,7 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
271
272
|
};
|
|
272
273
|
updateOrDeleteFieldState(id, field, newProps);
|
|
273
274
|
apiRef.current.setCellFocus(id, field);
|
|
274
|
-
}
|
|
275
|
+
});
|
|
275
276
|
var stopCellEditMode = React.useCallback(function (params) {
|
|
276
277
|
var id = params.id,
|
|
277
278
|
field = params.field,
|
|
@@ -282,7 +283,7 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
282
283
|
mode: GridCellModes.View
|
|
283
284
|
}, other));
|
|
284
285
|
}, [throwIfNotInMode, updateFieldInCellModesModel]);
|
|
285
|
-
var updateStateToStopCellEditMode =
|
|
286
|
+
var updateStateToStopCellEditMode = useEventCallback( /*#__PURE__*/function () {
|
|
286
287
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(params) {
|
|
287
288
|
var id, field, ignoreModifications, _params$cellToFocusAf, cellToFocusAfter, finishCellEditMode, editingState, _editingState$id$fiel, error, isProcessingProps, rowUpdate, handleError, row;
|
|
288
289
|
|
|
@@ -334,7 +335,11 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
334
335
|
|
|
335
336
|
if (processRowUpdate) {
|
|
336
337
|
handleError = function handleError(errorThrown) {
|
|
337
|
-
prevCellModesModel.current[id][field].mode = GridCellModes.Edit;
|
|
338
|
+
prevCellModesModel.current[id][field].mode = GridCellModes.Edit; // Revert the mode in the cellModesModel prop back to "edit"
|
|
339
|
+
|
|
340
|
+
updateFieldInCellModesModel(id, field, {
|
|
341
|
+
mode: GridCellModes.Edit
|
|
342
|
+
});
|
|
338
343
|
|
|
339
344
|
if (onProcessRowUpdateError) {
|
|
340
345
|
onProcessRowUpdateError(errorThrown);
|
|
@@ -368,7 +373,7 @@ export var useGridCellEditing = function useGridCellEditing(apiRef, props) {
|
|
|
368
373
|
return function (_x) {
|
|
369
374
|
return _ref.apply(this, arguments);
|
|
370
375
|
};
|
|
371
|
-
}()
|
|
376
|
+
}());
|
|
372
377
|
var setCellEditingEditCellValue = React.useCallback( /*#__PURE__*/function () {
|
|
373
378
|
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(params) {
|
|
374
379
|
var _editingState$id, _editingState$id$fiel2;
|
|
@@ -6,6 +6,7 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
6
6
|
var _excluded = ["id"],
|
|
7
7
|
_excluded2 = ["id"];
|
|
8
8
|
import * as React from 'react';
|
|
9
|
+
import { unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
9
10
|
import { useGridApiEventHandler, useGridApiOptionHandler, GridSignature } from '../../utils/useGridApiEventHandler';
|
|
10
11
|
import { GridEditModes, GridRowModes } from '../../../models/gridEditRowModel';
|
|
11
12
|
import { useGridApiMethod } from '../../utils/useGridApiMethod';
|
|
@@ -256,7 +257,7 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
256
257
|
var isEditing = editingState[id] && Object.keys(editingState[id]).length > 0;
|
|
257
258
|
return isEditing ? GridRowModes.Edit : GridRowModes.View;
|
|
258
259
|
}, [apiRef, props.editMode]);
|
|
259
|
-
var updateRowModesModel =
|
|
260
|
+
var updateRowModesModel = useEventCallback(function (newModel) {
|
|
260
261
|
var isNewModelDifferentFromProp = newModel !== props.rowModesModel;
|
|
261
262
|
|
|
262
263
|
if (onRowModesModelChange && isNewModelDifferentFromProp) {
|
|
@@ -273,7 +274,7 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
273
274
|
setRowModesModel(newModel);
|
|
274
275
|
rowModesModelRef.current = newModel;
|
|
275
276
|
apiRef.current.publishEvent('rowModesModelChange', newModel);
|
|
276
|
-
}
|
|
277
|
+
});
|
|
277
278
|
var updateRowInRowModesModel = React.useCallback(function (id, newProps) {
|
|
278
279
|
var newModel = _extends({}, rowModesModelRef.current);
|
|
279
280
|
|
|
@@ -330,7 +331,7 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
330
331
|
mode: GridRowModes.Edit
|
|
331
332
|
}, other));
|
|
332
333
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
333
|
-
var updateStateToStartRowEditMode =
|
|
334
|
+
var updateStateToStartRowEditMode = useEventCallback(function (params) {
|
|
334
335
|
var id = params.id,
|
|
335
336
|
fieldToFocus = params.fieldToFocus,
|
|
336
337
|
deleteValue = params.deleteValue;
|
|
@@ -355,7 +356,7 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
355
356
|
if (fieldToFocus) {
|
|
356
357
|
apiRef.current.setCellFocus(id, fieldToFocus);
|
|
357
358
|
}
|
|
358
|
-
}
|
|
359
|
+
});
|
|
359
360
|
var stopRowEditMode = React.useCallback(function (params) {
|
|
360
361
|
var id = params.id,
|
|
361
362
|
other = _objectWithoutProperties(params, _excluded2);
|
|
@@ -365,7 +366,7 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
365
366
|
mode: GridRowModes.View
|
|
366
367
|
}, other));
|
|
367
368
|
}, [throwIfNotInMode, updateRowInRowModesModel]);
|
|
368
|
-
var updateStateToStopRowEditMode =
|
|
369
|
+
var updateStateToStopRowEditMode = useEventCallback(function (params) {
|
|
369
370
|
var id = params.id,
|
|
370
371
|
ignoreModifications = params.ignoreModifications,
|
|
371
372
|
focusedField = params.field,
|
|
@@ -415,7 +416,11 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
415
416
|
|
|
416
417
|
if (processRowUpdate) {
|
|
417
418
|
var handleError = function handleError(errorThrown) {
|
|
418
|
-
prevRowModesModel.current[id].mode = GridRowModes.Edit;
|
|
419
|
+
prevRowModesModel.current[id].mode = GridRowModes.Edit; // Revert the mode in the rowModesModel prop back to "edit"
|
|
420
|
+
|
|
421
|
+
updateRowInRowModesModel(id, {
|
|
422
|
+
mode: GridRowModes.Edit
|
|
423
|
+
});
|
|
419
424
|
|
|
420
425
|
if (onProcessRowUpdateError) {
|
|
421
426
|
onProcessRowUpdateError(errorThrown);
|
|
@@ -436,7 +441,7 @@ export var useGridRowEditing = function useGridRowEditing(apiRef, props) {
|
|
|
436
441
|
apiRef.current.updateRows([rowUpdate]);
|
|
437
442
|
finishRowEditMode();
|
|
438
443
|
}
|
|
439
|
-
}
|
|
444
|
+
});
|
|
440
445
|
var setRowEditingEditCellValue = React.useCallback(function (params) {
|
|
441
446
|
var id = params.id,
|
|
442
447
|
field = params.field,
|
|
@@ -30,6 +30,14 @@ export var focusStateInitializer = function focusStateInitializer(state) {
|
|
|
30
30
|
export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
31
31
|
var logger = useGridLogger(apiRef, 'useGridFocus');
|
|
32
32
|
var lastClickedCell = React.useRef(null);
|
|
33
|
+
var publishCellFocusOut = React.useCallback(function (cell, event) {
|
|
34
|
+
if (cell) {
|
|
35
|
+
// The row might have been deleted
|
|
36
|
+
if (apiRef.current.getRow(cell.id)) {
|
|
37
|
+
apiRef.current.publishEvent('cellFocusOut', apiRef.current.getCellParams(cell.id, cell.field), event);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}, [apiRef]);
|
|
33
41
|
var setCellFocus = React.useCallback(function (id, field) {
|
|
34
42
|
var focusedCell = gridFocusCellSelector(apiRef);
|
|
35
43
|
|
|
@@ -65,19 +73,15 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
65
73
|
if (focusedCell) {
|
|
66
74
|
// There's a focused cell but another cell was clicked
|
|
67
75
|
// Publishes an event to notify that the focus was lost
|
|
68
|
-
|
|
76
|
+
publishCellFocusOut(focusedCell, {});
|
|
69
77
|
}
|
|
70
78
|
|
|
71
79
|
apiRef.current.publishEvent('cellFocusIn', apiRef.current.getCellParams(id, field));
|
|
72
|
-
}, [apiRef, logger]);
|
|
80
|
+
}, [apiRef, logger, publishCellFocusOut]);
|
|
73
81
|
var setColumnHeaderFocus = React.useCallback(function (field) {
|
|
74
82
|
var event = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
75
83
|
var cell = gridFocusCellSelector(apiRef);
|
|
76
|
-
|
|
77
|
-
if (cell) {
|
|
78
|
-
apiRef.current.publishEvent('cellFocusOut', apiRef.current.getCellParams(cell.id, cell.field), event);
|
|
79
|
-
}
|
|
80
|
-
|
|
84
|
+
publishCellFocusOut(cell, event);
|
|
81
85
|
apiRef.current.setState(function (state) {
|
|
82
86
|
logger.debug("Focusing on column header with colIndex=".concat(field));
|
|
83
87
|
return _extends({}, state, {
|
|
@@ -96,7 +100,7 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
96
100
|
});
|
|
97
101
|
});
|
|
98
102
|
apiRef.current.forceUpdate();
|
|
99
|
-
}, [apiRef, logger]);
|
|
103
|
+
}, [apiRef, logger, publishCellFocusOut]);
|
|
100
104
|
var moveFocusToRelativeCell = React.useCallback(function (id, field, direction) {
|
|
101
105
|
var columnIndexToFocus = apiRef.current.getColumnIndex(field);
|
|
102
106
|
var rowIndexToFocus = apiRef.current.getRowIndexRelativeToVisibleRows(id);
|
|
@@ -206,11 +210,6 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
206
210
|
|
|
207
211
|
if (cellElement != null && cellElement.contains(event.target)) {
|
|
208
212
|
return;
|
|
209
|
-
} // The row might have been deleted during the click
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if (!apiRef.current.getRow(focusedCell.id)) {
|
|
213
|
-
return;
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
if (cellParams) {
|
|
@@ -227,9 +226,9 @@ export var useGridFocus = function useGridFocus(apiRef, props) {
|
|
|
227
226
|
apiRef.current.forceUpdate(); // There's a focused cell but another element (not a cell) was clicked
|
|
228
227
|
// Publishes an event to notify that the focus was lost
|
|
229
228
|
|
|
230
|
-
|
|
229
|
+
publishCellFocusOut(focusedCell, event);
|
|
231
230
|
}
|
|
232
|
-
}, [apiRef]);
|
|
231
|
+
}, [apiRef, publishCellFocusOut]);
|
|
233
232
|
var handleCellModeChange = React.useCallback(function (params) {
|
|
234
233
|
if (params.cellMode === 'view') {
|
|
235
234
|
return;
|
|
@@ -104,16 +104,16 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
104
104
|
var _currentPage$range, _currentPage$range2;
|
|
105
105
|
|
|
106
106
|
var lastMeasuredIndexRelativeToAllRows = apiRef.current.unstable_getLastMeasuredRowIndex();
|
|
107
|
-
var
|
|
108
|
-
var lastMeasuredIndex = Math.max(0, lastMeasuredIndexRelativeToCurrentPage);
|
|
109
|
-
var allRowsMeasured = lastMeasuredIndex === Infinity;
|
|
107
|
+
var allRowsMeasured = lastMeasuredIndexRelativeToAllRows === Infinity;
|
|
110
108
|
|
|
111
|
-
if ((_currentPage$
|
|
109
|
+
if ((_currentPage$range = currentPage.range) != null && _currentPage$range.lastRowIndex && !allRowsMeasured) {
|
|
112
110
|
// Check if all rows in this page are already measured
|
|
113
|
-
allRowsMeasured =
|
|
111
|
+
allRowsMeasured = lastMeasuredIndexRelativeToAllRows >= currentPage.range.lastRowIndex;
|
|
114
112
|
}
|
|
115
113
|
|
|
116
|
-
|
|
114
|
+
var lastMeasuredIndexRelativeToCurrentPage = clamp(lastMeasuredIndexRelativeToAllRows - (((_currentPage$range2 = currentPage.range) == null ? void 0 : _currentPage$range2.firstRowIndex) || 0), 0, rowsMeta.positions.length);
|
|
115
|
+
|
|
116
|
+
if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndexRelativeToCurrentPage] >= offset) {
|
|
117
117
|
// If all rows were measured (when no row has "auto" as height) or all rows before the offset
|
|
118
118
|
// were measured, then use a binary search because it's faster.
|
|
119
119
|
return binarySearch(offset, rowsMeta.positions);
|
|
@@ -123,7 +123,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
123
123
|
// Inspired by https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/utils/CellSizeAndPositionManager.js
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
return exponentialSearch(offset, rowsMeta.positions,
|
|
126
|
+
return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndexRelativeToCurrentPage);
|
|
127
127
|
}, [apiRef, (_currentPage$range3 = currentPage.range) == null ? void 0 : _currentPage$range3.firstRowIndex, (_currentPage$range4 = currentPage.range) == null ? void 0 : _currentPage$range4.lastRowIndex, rowsMeta.positions]);
|
|
128
128
|
var computeRenderContext = React.useCallback(function () {
|
|
129
129
|
if (disableVirtualization) {
|
package/legacy/index.js
CHANGED
package/legacy/locales/faIR.js
CHANGED
|
@@ -23,15 +23,15 @@ var faIRGrid = {
|
|
|
23
23
|
return count !== 1 ? "".concat(count, " \u0641\u06CC\u0644\u062A\u0631\u0647\u0627\u06CC \u0641\u0639\u0627\u0644") : "".concat(count, " \u0641\u06CC\u0644\u062A\u0631 \u0641\u0639\u0627\u0644");
|
|
24
24
|
},
|
|
25
25
|
// Quick filter toolbar field
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
toolbarQuickFilterPlaceholder: 'جستجو...',
|
|
27
|
+
toolbarQuickFilterLabel: 'جستجو',
|
|
28
|
+
toolbarQuickFilterDeleteIconLabel: 'حذف',
|
|
29
29
|
// Export selector toolbar button text
|
|
30
30
|
toolbarExport: 'خروجی',
|
|
31
31
|
toolbarExportLabel: 'خروجی',
|
|
32
32
|
toolbarExportCSV: 'دانلود به صورت CSV',
|
|
33
33
|
toolbarExportPrint: 'چاپ',
|
|
34
|
-
|
|
34
|
+
toolbarExportExcel: 'دانلود به صورت اکسل',
|
|
35
35
|
// Columns panel text
|
|
36
36
|
columnsPanelTextFieldLabel: 'پیداکردن ستون',
|
|
37
37
|
columnsPanelTextFieldPlaceholder: 'عنوان ستون',
|
|
@@ -119,17 +119,17 @@ var faIRGrid = {
|
|
|
119
119
|
return "\u0644\u063A\u0648 \u06AF\u0631\u0648\u0647\u200C\u0628\u0646\u062F\u06CC \u0628\u0631\u0627\u0633\u0627\u0633 ".concat(name);
|
|
120
120
|
},
|
|
121
121
|
// Master/detail
|
|
122
|
-
|
|
122
|
+
detailPanelToggle: 'پنل جزئیات',
|
|
123
123
|
expandDetailPanel: 'بازکردن پنل جزئیات',
|
|
124
|
-
collapseDetailPanel: 'بستن پنل جزئیات'
|
|
125
|
-
//
|
|
124
|
+
collapseDetailPanel: 'بستن پنل جزئیات',
|
|
125
|
+
// Row reordering text
|
|
126
|
+
rowReorderingHeaderName: 'ترتیب مجدد سطر',
|
|
126
127
|
// Aggregation
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'تجمیع',
|
|
129
|
+
aggregationFunctionLabelSum: 'جمع',
|
|
130
|
+
aggregationFunctionLabelAvg: 'میانگین',
|
|
131
|
+
aggregationFunctionLabelMin: 'حداقل',
|
|
132
|
+
aggregationFunctionLabelMax: 'حداکثر',
|
|
133
|
+
aggregationFunctionLabelSize: 'اندازه'
|
|
134
134
|
};
|
|
135
135
|
export var faIR = getGridLocalization(faIRGrid, faIRCore);
|
package/legacy/locales/fiFI.js
CHANGED
|
@@ -6,7 +6,7 @@ var fiFIGrid = {
|
|
|
6
6
|
noResultsOverlayLabel: 'Ei tuloksia.',
|
|
7
7
|
errorOverlayDefaultLabel: 'Tapahtui virhe.',
|
|
8
8
|
// Density selector toolbar button text
|
|
9
|
-
toolbarDensity: '
|
|
9
|
+
toolbarDensity: 'Tiiveys',
|
|
10
10
|
toolbarDensityLabel: 'Tiiveys',
|
|
11
11
|
toolbarDensityCompact: 'Kompakti',
|
|
12
12
|
toolbarDensityStandard: 'Vakio',
|
|
@@ -23,15 +23,15 @@ var fiFIGrid = {
|
|
|
23
23
|
return count !== 1 ? "".concat(count, " aktiivista suodatinta") : "".concat(count, " aktiivinen suodatin");
|
|
24
24
|
},
|
|
25
25
|
// Quick filter toolbar field
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
toolbarQuickFilterPlaceholder: 'Hae…',
|
|
27
|
+
toolbarQuickFilterLabel: 'Hae',
|
|
28
|
+
toolbarQuickFilterDeleteIconLabel: 'Tyhjennä',
|
|
29
29
|
// Export selector toolbar button text
|
|
30
|
-
toolbarExport: '
|
|
31
|
-
toolbarExportLabel: '
|
|
30
|
+
toolbarExport: 'Vie',
|
|
31
|
+
toolbarExportLabel: 'Vie',
|
|
32
32
|
toolbarExportCSV: 'Lataa CSV-muodossa',
|
|
33
33
|
toolbarExportPrint: 'Tulosta',
|
|
34
|
-
|
|
34
|
+
toolbarExportExcel: 'Lataa Excel-muodossa',
|
|
35
35
|
// Columns panel text
|
|
36
36
|
columnsPanelTextFieldLabel: 'Etsi sarake',
|
|
37
37
|
columnsPanelTextFieldPlaceholder: 'Sarakkeen otsikko',
|
|
@@ -41,7 +41,7 @@ var fiFIGrid = {
|
|
|
41
41
|
// Filter panel text
|
|
42
42
|
filterPanelAddFilter: 'Lisää suodatin',
|
|
43
43
|
filterPanelDeleteIconLabel: 'Poista',
|
|
44
|
-
|
|
44
|
+
filterPanelLinkOperator: 'Logiikkaoperaattori',
|
|
45
45
|
filterPanelOperators: 'Operaattorit',
|
|
46
46
|
// TODO v6: rename to filterPanelOperator
|
|
47
47
|
filterPanelOperatorAnd: 'Ja',
|
|
@@ -62,7 +62,7 @@ var fiFIGrid = {
|
|
|
62
62
|
filterOperatorOnOrBefore: 'on sama tai ennen',
|
|
63
63
|
filterOperatorIsEmpty: 'on tyhjä',
|
|
64
64
|
filterOperatorIsNotEmpty: 'ei ole tyhjä',
|
|
65
|
-
|
|
65
|
+
filterOperatorIsAnyOf: 'mikä tahansa seuraavista',
|
|
66
66
|
// Filter values text
|
|
67
67
|
filterValueAny: 'mikä tahansa',
|
|
68
68
|
filterValueTrue: 'tosi',
|
|
@@ -93,10 +93,10 @@ var fiFIGrid = {
|
|
|
93
93
|
},
|
|
94
94
|
// Checkbox selection text
|
|
95
95
|
checkboxSelectionHeaderName: 'Valintaruutu',
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
checkboxSelectionSelectAllRows: 'Valitse kaikki rivit',
|
|
97
|
+
checkboxSelectionUnselectAllRows: 'Poista kaikkien rivien valinta',
|
|
98
|
+
checkboxSelectionSelectRow: 'Valitse rivi',
|
|
99
|
+
checkboxSelectionUnselectRow: 'Poista rivin valinta',
|
|
100
100
|
// Boolean cell text
|
|
101
101
|
booleanCellTrueLabel: 'tosi',
|
|
102
102
|
booleanCellFalseLabel: 'epätosi',
|
|
@@ -109,23 +109,27 @@ var fiFIGrid = {
|
|
|
109
109
|
// Tree Data
|
|
110
110
|
treeDataGroupingHeaderName: 'Ryhmä',
|
|
111
111
|
treeDataExpand: 'Laajenna',
|
|
112
|
-
treeDataCollapse: 'Supista'
|
|
113
|
-
//
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
treeDataCollapse: 'Supista',
|
|
113
|
+
// Grouping columns
|
|
114
|
+
groupingColumnHeaderName: 'Ryhmä',
|
|
115
|
+
groupColumn: function groupColumn(name) {
|
|
116
|
+
return "Ryhmittelyperuste ".concat(name);
|
|
117
|
+
},
|
|
118
|
+
unGroupColumn: function unGroupColumn(name) {
|
|
119
|
+
return "Poista ryhmittelyperuste ".concat(name);
|
|
120
|
+
},
|
|
116
121
|
// Master/detail
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
122
|
+
detailPanelToggle: 'Yksityiskohtapaneelin vaihto',
|
|
123
|
+
expandDetailPanel: 'Laajenna',
|
|
124
|
+
collapseDetailPanel: 'Tiivistä',
|
|
120
125
|
// Row reordering text
|
|
121
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Rivien uudelleenjärjestely',
|
|
122
127
|
// Aggregation
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Koostaminen',
|
|
129
|
+
aggregationFunctionLabelSum: 'summa',
|
|
130
|
+
aggregationFunctionLabelAvg: 'ka.',
|
|
131
|
+
aggregationFunctionLabelMin: 'min.',
|
|
132
|
+
aggregationFunctionLabelMax: 'maks.',
|
|
133
|
+
aggregationFunctionLabelSize: 'koko'
|
|
130
134
|
};
|
|
131
135
|
export var fiFI = getGridLocalization(fiFIGrid, fiFICore);
|
package/legacy/locales/plPL.js
CHANGED
|
@@ -23,15 +23,15 @@ var plPLGrid = {
|
|
|
23
23
|
return "Liczba aktywnych filtr\xF3w: ".concat(count);
|
|
24
24
|
},
|
|
25
25
|
// Quick filter toolbar field
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
toolbarQuickFilterPlaceholder: 'Wyszukaj…',
|
|
27
|
+
toolbarQuickFilterLabel: 'Szukaj',
|
|
28
|
+
toolbarQuickFilterDeleteIconLabel: 'Wyczyść',
|
|
29
29
|
// Export selector toolbar button text
|
|
30
30
|
toolbarExport: 'Eksportuj',
|
|
31
31
|
toolbarExportLabel: 'Eksportuj',
|
|
32
32
|
toolbarExportCSV: 'Pobierz jako plik CSV',
|
|
33
33
|
toolbarExportPrint: 'Drukuj',
|
|
34
|
-
|
|
34
|
+
toolbarExportExcel: 'Pobierz jako plik Excel',
|
|
35
35
|
// Columns panel text
|
|
36
36
|
columnsPanelTextFieldLabel: 'Znajdź kolumnę',
|
|
37
37
|
columnsPanelTextFieldPlaceholder: 'Tytuł kolumny',
|
|
@@ -121,9 +121,9 @@ var plPLGrid = {
|
|
|
121
121
|
// Master/detail
|
|
122
122
|
// detailPanelToggle: 'Detail panel toggle',
|
|
123
123
|
expandDetailPanel: 'Rozwiń',
|
|
124
|
-
collapseDetailPanel: 'Zwiń'
|
|
125
|
-
//
|
|
126
|
-
// Aggregation
|
|
124
|
+
collapseDetailPanel: 'Zwiń',
|
|
125
|
+
// Row reordering text
|
|
126
|
+
rowReorderingHeaderName: 'Porządkowanie wierszy' // Aggregation
|
|
127
127
|
// aggregationMenuItemHeader: 'Aggregation',
|
|
128
128
|
// aggregationFunctionLabelSum: 'sum',
|
|
129
129
|
// aggregationFunctionLabelAvg: 'avg',
|
package/locales/faIR.js
CHANGED
|
@@ -21,15 +21,15 @@ const faIRGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'نمایش فیلترها',
|
|
22
22
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} فیلترهای فعال` : `${count} فیلتر فعال`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'جستجو...',
|
|
25
|
+
toolbarQuickFilterLabel: 'جستجو',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'حذف',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'خروجی',
|
|
29
29
|
toolbarExportLabel: 'خروجی',
|
|
30
30
|
toolbarExportCSV: 'دانلود به صورت CSV',
|
|
31
31
|
toolbarExportPrint: 'چاپ',
|
|
32
|
-
|
|
32
|
+
toolbarExportExcel: 'دانلود به صورت اکسل',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'پیداکردن ستون',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: 'عنوان ستون',
|
|
@@ -107,17 +107,17 @@ const faIRGrid = {
|
|
|
107
107
|
groupColumn: name => `گروهبندی براساس ${name}`,
|
|
108
108
|
unGroupColumn: name => `لغو گروهبندی براساس ${name}`,
|
|
109
109
|
// Master/detail
|
|
110
|
-
|
|
110
|
+
detailPanelToggle: 'پنل جزئیات',
|
|
111
111
|
expandDetailPanel: 'بازکردن پنل جزئیات',
|
|
112
|
-
collapseDetailPanel: 'بستن پنل جزئیات'
|
|
113
|
-
//
|
|
112
|
+
collapseDetailPanel: 'بستن پنل جزئیات',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
rowReorderingHeaderName: 'ترتیب مجدد سطر',
|
|
114
115
|
// Aggregation
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'تجمیع',
|
|
117
|
+
aggregationFunctionLabelSum: 'جمع',
|
|
118
|
+
aggregationFunctionLabelAvg: 'میانگین',
|
|
119
|
+
aggregationFunctionLabelMin: 'حداقل',
|
|
120
|
+
aggregationFunctionLabelMax: 'حداکثر',
|
|
121
|
+
aggregationFunctionLabelSize: 'اندازه'
|
|
122
122
|
};
|
|
123
123
|
export const faIR = getGridLocalization(faIRGrid, faIRCore);
|
package/locales/fiFI.js
CHANGED
|
@@ -6,7 +6,7 @@ const fiFIGrid = {
|
|
|
6
6
|
noResultsOverlayLabel: 'Ei tuloksia.',
|
|
7
7
|
errorOverlayDefaultLabel: 'Tapahtui virhe.',
|
|
8
8
|
// Density selector toolbar button text
|
|
9
|
-
toolbarDensity: '
|
|
9
|
+
toolbarDensity: 'Tiiveys',
|
|
10
10
|
toolbarDensityLabel: 'Tiiveys',
|
|
11
11
|
toolbarDensityCompact: 'Kompakti',
|
|
12
12
|
toolbarDensityStandard: 'Vakio',
|
|
@@ -21,15 +21,15 @@ const fiFIGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'Näytä suodattimet',
|
|
22
22
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktiivista suodatinta` : `${count} aktiivinen suodatin`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Hae…',
|
|
25
|
+
toolbarQuickFilterLabel: 'Hae',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Tyhjennä',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
|
-
toolbarExport: '
|
|
29
|
-
toolbarExportLabel: '
|
|
28
|
+
toolbarExport: 'Vie',
|
|
29
|
+
toolbarExportLabel: 'Vie',
|
|
30
30
|
toolbarExportCSV: 'Lataa CSV-muodossa',
|
|
31
31
|
toolbarExportPrint: 'Tulosta',
|
|
32
|
-
|
|
32
|
+
toolbarExportExcel: 'Lataa Excel-muodossa',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'Etsi sarake',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: 'Sarakkeen otsikko',
|
|
@@ -39,7 +39,7 @@ const fiFIGrid = {
|
|
|
39
39
|
// Filter panel text
|
|
40
40
|
filterPanelAddFilter: 'Lisää suodatin',
|
|
41
41
|
filterPanelDeleteIconLabel: 'Poista',
|
|
42
|
-
|
|
42
|
+
filterPanelLinkOperator: 'Logiikkaoperaattori',
|
|
43
43
|
filterPanelOperators: 'Operaattorit',
|
|
44
44
|
// TODO v6: rename to filterPanelOperator
|
|
45
45
|
filterPanelOperatorAnd: 'Ja',
|
|
@@ -60,7 +60,7 @@ const fiFIGrid = {
|
|
|
60
60
|
filterOperatorOnOrBefore: 'on sama tai ennen',
|
|
61
61
|
filterOperatorIsEmpty: 'on tyhjä',
|
|
62
62
|
filterOperatorIsNotEmpty: 'ei ole tyhjä',
|
|
63
|
-
|
|
63
|
+
filterOperatorIsAnyOf: 'mikä tahansa seuraavista',
|
|
64
64
|
// Filter values text
|
|
65
65
|
filterValueAny: 'mikä tahansa',
|
|
66
66
|
filterValueTrue: 'tosi',
|
|
@@ -85,10 +85,10 @@ const fiFIGrid = {
|
|
|
85
85
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
|
|
86
86
|
// Checkbox selection text
|
|
87
87
|
checkboxSelectionHeaderName: 'Valintaruutu',
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
checkboxSelectionSelectAllRows: 'Valitse kaikki rivit',
|
|
89
|
+
checkboxSelectionUnselectAllRows: 'Poista kaikkien rivien valinta',
|
|
90
|
+
checkboxSelectionSelectRow: 'Valitse rivi',
|
|
91
|
+
checkboxSelectionUnselectRow: 'Poista rivin valinta',
|
|
92
92
|
// Boolean cell text
|
|
93
93
|
booleanCellTrueLabel: 'tosi',
|
|
94
94
|
booleanCellFalseLabel: 'epätosi',
|
|
@@ -101,23 +101,23 @@ const fiFIGrid = {
|
|
|
101
101
|
// Tree Data
|
|
102
102
|
treeDataGroupingHeaderName: 'Ryhmä',
|
|
103
103
|
treeDataExpand: 'Laajenna',
|
|
104
|
-
treeDataCollapse: 'Supista'
|
|
105
|
-
//
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
treeDataCollapse: 'Supista',
|
|
105
|
+
// Grouping columns
|
|
106
|
+
groupingColumnHeaderName: 'Ryhmä',
|
|
107
|
+
groupColumn: name => `Ryhmittelyperuste ${name}`,
|
|
108
|
+
unGroupColumn: name => `Poista ryhmittelyperuste ${name}`,
|
|
108
109
|
// Master/detail
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
detailPanelToggle: 'Yksityiskohtapaneelin vaihto',
|
|
111
|
+
expandDetailPanel: 'Laajenna',
|
|
112
|
+
collapseDetailPanel: 'Tiivistä',
|
|
112
113
|
// Row reordering text
|
|
113
|
-
|
|
114
|
+
rowReorderingHeaderName: 'Rivien uudelleenjärjestely',
|
|
114
115
|
// Aggregation
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
116
|
+
aggregationMenuItemHeader: 'Koostaminen',
|
|
117
|
+
aggregationFunctionLabelSum: 'summa',
|
|
118
|
+
aggregationFunctionLabelAvg: 'ka.',
|
|
119
|
+
aggregationFunctionLabelMin: 'min.',
|
|
120
|
+
aggregationFunctionLabelMax: 'maks.',
|
|
121
|
+
aggregationFunctionLabelSize: 'koko'
|
|
122
122
|
};
|
|
123
123
|
export const fiFI = getGridLocalization(fiFIGrid, fiFICore);
|
package/locales/plPL.js
CHANGED
|
@@ -21,15 +21,15 @@ const plPLGrid = {
|
|
|
21
21
|
toolbarFiltersTooltipShow: 'Pokaż filtry',
|
|
22
22
|
toolbarFiltersTooltipActive: count => `Liczba aktywnych filtrów: ${count}`,
|
|
23
23
|
// Quick filter toolbar field
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
toolbarQuickFilterPlaceholder: 'Wyszukaj…',
|
|
25
|
+
toolbarQuickFilterLabel: 'Szukaj',
|
|
26
|
+
toolbarQuickFilterDeleteIconLabel: 'Wyczyść',
|
|
27
27
|
// Export selector toolbar button text
|
|
28
28
|
toolbarExport: 'Eksportuj',
|
|
29
29
|
toolbarExportLabel: 'Eksportuj',
|
|
30
30
|
toolbarExportCSV: 'Pobierz jako plik CSV',
|
|
31
31
|
toolbarExportPrint: 'Drukuj',
|
|
32
|
-
|
|
32
|
+
toolbarExportExcel: 'Pobierz jako plik Excel',
|
|
33
33
|
// Columns panel text
|
|
34
34
|
columnsPanelTextFieldLabel: 'Znajdź kolumnę',
|
|
35
35
|
columnsPanelTextFieldPlaceholder: 'Tytuł kolumny',
|
|
@@ -109,9 +109,9 @@ const plPLGrid = {
|
|
|
109
109
|
// Master/detail
|
|
110
110
|
// detailPanelToggle: 'Detail panel toggle',
|
|
111
111
|
expandDetailPanel: 'Rozwiń',
|
|
112
|
-
collapseDetailPanel: 'Zwiń'
|
|
113
|
-
//
|
|
114
|
-
// Aggregation
|
|
112
|
+
collapseDetailPanel: 'Zwiń',
|
|
113
|
+
// Row reordering text
|
|
114
|
+
rowReorderingHeaderName: 'Porządkowanie wierszy' // Aggregation
|
|
115
115
|
// aggregationMenuItemHeader: 'Aggregation',
|
|
116
116
|
// aggregationFunctionLabelSum: 'sum',
|
|
117
117
|
// aggregationFunctionLabelAvg: 'avg',
|
|
@@ -47,8 +47,7 @@ export const GridPagination = /*#__PURE__*/React.forwardRef(function GridPaginat
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
return /*#__PURE__*/_jsx(GridPaginationRoot, _extends({
|
|
50
|
-
ref: ref
|
|
51
|
-
,
|
|
50
|
+
ref: ref,
|
|
52
51
|
component: "div",
|
|
53
52
|
count: paginationState.rowCount,
|
|
54
53
|
page: paginationState.page <= lastPage ? paginationState.page : lastPage,
|