@mui/x-data-grid 5.14.0 → 5.15.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 +62 -5
- package/DataGrid/DataGrid.js +6 -0
- package/DataGrid/useDataGridProps.js +1 -0
- package/colDef/gridStringColDef.js +1 -1
- package/components/GridRow.js +5 -1
- package/components/base/GridOverlays.js +2 -2
- package/components/columnSelection/GridCellCheckboxRenderer.js +5 -0
- package/components/containers/GridRoot.js +4 -2
- package/constants/gridClasses.d.ts +16 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +6 -1
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridCellEditing.new.js +6 -3
- package/hooks/features/editRows/useGridEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.js +2 -2
- package/hooks/features/export/utils.js +8 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +42 -34
- package/hooks/features/pagination/useGridPageSize.js +3 -1
- package/hooks/features/rows/gridRowsSelector.d.ts +14 -0
- package/hooks/features/rows/gridRowsSelector.js +20 -1
- package/hooks/features/rows/gridRowsState.d.ts +8 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +4 -0
- package/hooks/features/rows/gridRowsUtils.js +21 -3
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridRowsMeta.js +19 -4
- package/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/hooks/features/scroll/useGridScroll.js +7 -2
- package/hooks/features/selection/useGridSelection.js +7 -3
- package/hooks/features/sorting/useGridSorting.js +8 -0
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +3 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +31 -16
- package/index.js +1 -1
- package/internals/index.d.ts +4 -1
- package/internals/index.js +3 -0
- package/legacy/DataGrid/DataGrid.js +6 -0
- package/legacy/DataGrid/useDataGridProps.js +1 -0
- package/legacy/colDef/gridStringColDef.js +1 -1
- package/legacy/components/GridRow.js +5 -1
- package/legacy/components/base/GridOverlays.js +2 -2
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +5 -0
- package/legacy/components/containers/GridRoot.js +4 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +1 -1
- package/legacy/hooks/features/dimensions/useGridDimensions.js +6 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +6 -3
- package/legacy/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/legacy/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +2 -2
- package/legacy/hooks/features/export/utils.js +13 -1
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +47 -34
- package/legacy/hooks/features/pagination/useGridPageSize.js +3 -1
- package/legacy/hooks/features/rows/gridRowsSelector.js +23 -0
- package/legacy/hooks/features/rows/gridRowsUtils.js +21 -3
- package/legacy/hooks/features/rows/index.js +1 -1
- package/legacy/hooks/features/rows/useGridRowsMeta.js +19 -4
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/legacy/hooks/features/scroll/useGridScroll.js +7 -2
- package/legacy/hooks/features/selection/useGridSelection.js +7 -3
- package/legacy/hooks/features/sorting/useGridSorting.js +8 -0
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +32 -16
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +3 -0
- package/legacy/locales/arSD.js +1 -1
- package/legacy/locales/bgBG.js +1 -1
- package/legacy/locales/csCZ.js +1 -1
- package/legacy/locales/daDK.js +1 -1
- package/legacy/locales/deDE.js +1 -1
- package/legacy/locales/elGR.js +1 -1
- package/legacy/locales/esES.js +1 -1
- package/legacy/locales/faIR.js +1 -1
- package/legacy/locales/fiFI.js +1 -1
- package/legacy/locales/frFR.js +1 -1
- package/legacy/locales/heIL.js +1 -1
- package/legacy/locales/huHU.js +1 -1
- package/legacy/locales/itIT.js +1 -1
- package/legacy/locales/jaJP.js +3 -3
- package/legacy/locales/koKR.js +1 -1
- package/legacy/locales/nbNO.js +1 -1
- package/legacy/locales/nlNL.js +1 -1
- package/legacy/locales/plPL.js +1 -1
- package/legacy/locales/ptBR.js +1 -1
- package/legacy/locales/roRO.js +1 -1
- package/legacy/locales/ruRU.js +1 -1
- package/legacy/locales/skSK.js +1 -1
- package/legacy/locales/svSE.js +1 -1
- package/legacy/locales/trTR.js +1 -1
- package/legacy/locales/ukUA.js +1 -1
- package/legacy/locales/viVN.js +1 -1
- package/legacy/locales/zhCN.js +37 -33
- package/legacy/locales/zhTW.js +1 -1
- package/locales/arSD.js +1 -1
- package/locales/bgBG.js +1 -1
- package/locales/csCZ.js +1 -1
- package/locales/daDK.js +1 -1
- package/locales/deDE.js +1 -1
- package/locales/elGR.js +1 -1
- package/locales/esES.js +1 -1
- package/locales/faIR.js +1 -1
- package/locales/fiFI.js +1 -1
- package/locales/frFR.js +1 -1
- package/locales/heIL.js +1 -1
- package/locales/huHU.js +1 -1
- package/locales/itIT.js +1 -1
- package/locales/jaJP.js +3 -3
- package/locales/koKR.js +1 -1
- package/locales/nbNO.js +1 -1
- package/locales/nlNL.js +1 -1
- package/locales/plPL.js +1 -1
- package/locales/ptBR.js +1 -1
- package/locales/roRO.js +1 -1
- package/locales/ruRU.js +1 -1
- package/locales/skSK.js +1 -1
- package/locales/svSE.js +1 -1
- package/locales/trTR.js +1 -1
- package/locales/ukUA.js +1 -1
- package/locales/viVN.js +1 -1
- package/locales/zhCN.js +33 -33
- package/locales/zhTW.js +1 -1
- package/models/gridRows.d.ts +5 -0
- package/models/props/DataGridProps.d.ts +5 -0
- package/modern/DataGrid/DataGrid.js +6 -0
- package/modern/DataGrid/useDataGridProps.js +1 -0
- package/modern/colDef/gridStringColDef.js +1 -1
- package/modern/components/GridRow.js +5 -1
- package/modern/components/base/GridOverlays.js +2 -2
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +5 -0
- package/modern/components/containers/GridRoot.js +4 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +1 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +6 -1
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +4 -3
- package/modern/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/modern/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +2 -2
- package/modern/hooks/features/export/utils.js +6 -1
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +42 -30
- package/modern/hooks/features/pagination/useGridPageSize.js +3 -1
- package/modern/hooks/features/rows/gridRowsSelector.js +18 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +19 -3
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRowsMeta.js +17 -4
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/modern/hooks/features/scroll/useGridScroll.js +5 -2
- package/modern/hooks/features/selection/useGridSelection.js +7 -1
- package/modern/hooks/features/sorting/useGridSorting.js +8 -0
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +30 -15
- package/modern/index.js +1 -1
- package/modern/internals/index.js +3 -0
- package/modern/locales/arSD.js +1 -1
- package/modern/locales/bgBG.js +1 -1
- package/modern/locales/csCZ.js +1 -1
- package/modern/locales/daDK.js +1 -1
- package/modern/locales/deDE.js +1 -1
- package/modern/locales/elGR.js +1 -1
- package/modern/locales/esES.js +1 -1
- package/modern/locales/faIR.js +1 -1
- package/modern/locales/fiFI.js +1 -1
- package/modern/locales/frFR.js +1 -1
- package/modern/locales/heIL.js +1 -1
- package/modern/locales/huHU.js +1 -1
- package/modern/locales/itIT.js +1 -1
- package/modern/locales/jaJP.js +3 -3
- package/modern/locales/koKR.js +1 -1
- package/modern/locales/nbNO.js +1 -1
- package/modern/locales/nlNL.js +1 -1
- package/modern/locales/plPL.js +1 -1
- package/modern/locales/ptBR.js +1 -1
- package/modern/locales/roRO.js +1 -1
- package/modern/locales/ruRU.js +1 -1
- package/modern/locales/skSK.js +1 -1
- package/modern/locales/svSE.js +1 -1
- package/modern/locales/trTR.js +1 -1
- package/modern/locales/ukUA.js +1 -1
- package/modern/locales/viVN.js +1 -1
- package/modern/locales/zhCN.js +33 -33
- package/modern/locales/zhTW.js +1 -1
- package/node/DataGrid/DataGrid.js +6 -0
- package/node/DataGrid/useDataGridProps.js +1 -0
- package/node/colDef/gridStringColDef.js +1 -1
- package/node/components/GridRow.js +5 -1
- package/node/components/base/GridOverlays.js +2 -2
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +5 -0
- package/node/components/containers/GridRoot.js +3 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +1 -1
- package/node/hooks/features/dimensions/useGridDimensions.js +7 -1
- package/node/hooks/features/editRows/useGridCellEditing.new.js +6 -3
- package/node/hooks/features/editRows/useGridEditing.new.js +4 -0
- package/node/hooks/features/editRows/useGridEditing.old.js +1 -1
- package/node/hooks/features/editRows/useGridRowEditing.new.js +2 -2
- package/node/hooks/features/export/utils.js +7 -0
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +43 -34
- package/node/hooks/features/pagination/useGridPageSize.js +4 -1
- package/node/hooks/features/rows/gridRowsSelector.js +24 -2
- package/node/hooks/features/rows/gridRowsUtils.js +23 -2
- package/node/hooks/features/rows/index.js +70 -12
- package/node/hooks/features/rows/useGridRowsMeta.js +20 -4
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -1
- package/node/hooks/features/scroll/useGridScroll.js +7 -1
- package/node/hooks/features/selection/useGridSelection.js +7 -3
- package/node/hooks/features/sorting/useGridSorting.js +8 -0
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +31 -16
- package/node/index.js +1 -1
- package/node/internals/index.js +28 -0
- package/node/locales/arSD.js +1 -1
- package/node/locales/bgBG.js +1 -1
- package/node/locales/csCZ.js +1 -1
- package/node/locales/daDK.js +1 -1
- package/node/locales/deDE.js +1 -1
- package/node/locales/elGR.js +1 -1
- package/node/locales/esES.js +1 -1
- package/node/locales/faIR.js +1 -1
- package/node/locales/fiFI.js +1 -1
- package/node/locales/frFR.js +1 -1
- package/node/locales/heIL.js +1 -1
- package/node/locales/huHU.js +1 -1
- package/node/locales/itIT.js +1 -1
- package/node/locales/jaJP.js +3 -3
- package/node/locales/koKR.js +1 -1
- package/node/locales/nbNO.js +1 -1
- package/node/locales/nlNL.js +1 -1
- package/node/locales/plPL.js +1 -1
- package/node/locales/ptBR.js +1 -1
- package/node/locales/roRO.js +1 -1
- package/node/locales/ruRU.js +1 -1
- package/node/locales/skSK.js +1 -1
- package/node/locales/svSE.js +1 -1
- package/node/locales/trTR.js +1 -1
- package/node/locales/ukUA.js +1 -1
- package/node/locales/viVN.js +1 -1
- package/node/locales/zhCN.js +33 -33
- package/node/locales/zhTW.js +1 -1
- package/package.json +1 -1
|
@@ -23,6 +23,8 @@ var _useGridApiMethod = require("../../utils/useGridApiMethod");
|
|
|
23
23
|
|
|
24
24
|
var _gridFilterSelector = require("../filter/gridFilterSelector");
|
|
25
25
|
|
|
26
|
+
var _gridClasses = require("../../../constants/gridClasses");
|
|
27
|
+
|
|
26
28
|
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); }
|
|
27
29
|
|
|
28
30
|
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; }
|
|
@@ -108,13 +110,17 @@ const useGridScroll = (apiRef, props) => {
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
if (params.rowIndex != null) {
|
|
113
|
+
var _querySelector, _querySelector2;
|
|
114
|
+
|
|
111
115
|
const rowsMeta = (0, _gridRowsMetaSelector.gridRowsMetaSelector)(apiRef.current.state);
|
|
112
116
|
const page = (0, _gridPaginationSelector.gridPageSelector)(apiRef);
|
|
113
117
|
const pageSize = (0, _gridPaginationSelector.gridPageSizeSelector)(apiRef);
|
|
114
118
|
const elementIndex = !props.pagination ? params.rowIndex : params.rowIndex - page * pageSize;
|
|
115
119
|
const targetOffsetHeight = rowsMeta.positions[elementIndex + 1] ? rowsMeta.positions[elementIndex + 1] - rowsMeta.positions[elementIndex] : rowsMeta.currentPageTotalHeight - rowsMeta.positions[elementIndex];
|
|
120
|
+
const topPinnedRowsHeight = ((_querySelector = windowRef.current.querySelector(`.${_gridClasses.gridClasses['pinnedRows--top']}`)) == null ? void 0 : _querySelector.clientHeight) || 0;
|
|
121
|
+
const bottomPinnedRowsHeight = ((_querySelector2 = windowRef.current.querySelector(`.${_gridClasses.gridClasses['pinnedRows--bottom']}`)) == null ? void 0 : _querySelector2.clientHeight) || 0;
|
|
116
122
|
scrollCoordinates.top = scrollIntoView({
|
|
117
|
-
clientHeight: windowRef.current.clientHeight,
|
|
123
|
+
clientHeight: windowRef.current.clientHeight - topPinnedRowsHeight - bottomPinnedRowsHeight,
|
|
118
124
|
scrollTop: windowRef.current.scrollTop,
|
|
119
125
|
offsetHeight: targetOffsetHeight,
|
|
120
126
|
offsetTop: rowsMeta.positions[elementIndex]
|
|
@@ -143,13 +143,13 @@ const useGridSelection = (apiRef, props) => {
|
|
|
143
143
|
}, [apiRef, logger]);
|
|
144
144
|
const isRowSelected = React.useCallback(id => (0, _gridSelectionSelector.gridSelectionStateSelector)(apiRef.current.state).includes(id), [apiRef]);
|
|
145
145
|
const isRowSelectable = React.useCallback(id => {
|
|
146
|
-
var _apiRef$current$getRo;
|
|
147
|
-
|
|
148
146
|
if (propIsRowSelectable && !propIsRowSelectable(apiRef.current.getRowParams(id))) {
|
|
149
147
|
return false;
|
|
150
148
|
}
|
|
151
149
|
|
|
152
|
-
|
|
150
|
+
const rowNode = apiRef.current.getRowNode(id);
|
|
151
|
+
|
|
152
|
+
if ((rowNode == null ? void 0 : rowNode.position) === 'footer' || rowNode != null && rowNode.isPinned) {
|
|
153
153
|
return false;
|
|
154
154
|
}
|
|
155
155
|
|
|
@@ -299,6 +299,10 @@ const useGridSelection = (apiRef, props) => {
|
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
+
if (params.rowNode.isPinned) {
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
|
|
302
306
|
if (event.shiftKey && (canHaveMultipleSelection || checkboxSelection)) {
|
|
303
307
|
expandMouseRowRangeSelection(params.id);
|
|
304
308
|
} else {
|
|
@@ -225,6 +225,10 @@ const useGridSorting = (apiRef, props) => {
|
|
|
225
225
|
const bodyRowIds = [];
|
|
226
226
|
const footerRowIds = [];
|
|
227
227
|
(0, _rows.gridRowIdsSelector)(apiRef).forEach(rowId => {
|
|
228
|
+
if (rowTree[rowId].isPinned) {
|
|
229
|
+
return;
|
|
230
|
+
}
|
|
231
|
+
|
|
228
232
|
if (rowTree[rowId].position === 'footer') {
|
|
229
233
|
footerRowIds.push(rowId);
|
|
230
234
|
} else {
|
|
@@ -237,6 +241,10 @@ const useGridSorting = (apiRef, props) => {
|
|
|
237
241
|
const bodyRows = [];
|
|
238
242
|
const footerRowIds = [];
|
|
239
243
|
Object.values(rowTree).forEach(rowNode => {
|
|
244
|
+
if (rowNode.isPinned) {
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
|
|
240
248
|
if (rowNode.position === 'footer') {
|
|
241
249
|
footerRowIds.push(rowNode.id);
|
|
242
250
|
} else {
|
|
@@ -207,10 +207,8 @@ const useGridVirtualScroller = props => {
|
|
|
207
207
|
React.useEffect(() => {
|
|
208
208
|
setContainerWidth(rootRef.current.clientWidth);
|
|
209
209
|
}, [rowsMeta.currentPageTotalHeight]);
|
|
210
|
-
const handleResize = React.useCallback(
|
|
211
|
-
|
|
212
|
-
setContainerWidth(rootRef.current.clientWidth);
|
|
213
|
-
}
|
|
210
|
+
const handleResize = React.useCallback(params => {
|
|
211
|
+
setContainerWidth(params.width);
|
|
214
212
|
}, []);
|
|
215
213
|
(0, _useGridApiEventHandler.useGridApiEventHandler)(apiRef, 'resize', handleResize);
|
|
216
214
|
const updateRenderZonePosition = React.useCallback(nextRenderContext => {
|
|
@@ -326,10 +324,11 @@ const useGridVirtualScroller = props => {
|
|
|
326
324
|
minFirstColumn = renderZoneMinColumnIndex,
|
|
327
325
|
maxLastColumn = renderZoneMaxColumnIndex,
|
|
328
326
|
availableSpace = containerWidth,
|
|
329
|
-
ignoreAutoHeight
|
|
327
|
+
ignoreAutoHeight,
|
|
328
|
+
rowIndexOffset = 0
|
|
330
329
|
} = params;
|
|
331
330
|
|
|
332
|
-
if (!
|
|
331
|
+
if (!nextRenderContext || availableSpace == null) {
|
|
333
332
|
return null;
|
|
334
333
|
}
|
|
335
334
|
|
|
@@ -344,15 +343,31 @@ const useGridVirtualScroller = props => {
|
|
|
344
343
|
});
|
|
345
344
|
const renderedRows = [];
|
|
346
345
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
346
|
+
if (params.rows) {
|
|
347
|
+
params.rows.forEach(row => {
|
|
348
|
+
renderedRows.push(row);
|
|
349
|
+
apiRef.current.unstable_calculateColSpan({
|
|
350
|
+
rowId: row.id,
|
|
351
|
+
minFirstColumn,
|
|
352
|
+
maxLastColumn,
|
|
353
|
+
columns: visibleColumns
|
|
354
|
+
});
|
|
355
355
|
});
|
|
356
|
+
} else {
|
|
357
|
+
if (!currentPage.range) {
|
|
358
|
+
return null;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
for (let i = firstRowToRender; i < lastRowToRender; i += 1) {
|
|
362
|
+
const row = currentPage.rows[i];
|
|
363
|
+
renderedRows.push(row);
|
|
364
|
+
apiRef.current.unstable_calculateColSpan({
|
|
365
|
+
rowId: row.id,
|
|
366
|
+
minFirstColumn,
|
|
367
|
+
maxLastColumn,
|
|
368
|
+
columns: visibleColumns
|
|
369
|
+
});
|
|
370
|
+
}
|
|
356
371
|
}
|
|
357
372
|
|
|
358
373
|
const [initialFirstColumnToRender, lastColumnToRender] = getRenderableIndexes({
|
|
@@ -373,7 +388,7 @@ const useGridVirtualScroller = props => {
|
|
|
373
388
|
const rows = [];
|
|
374
389
|
|
|
375
390
|
for (let i = 0; i < renderedRows.length; i += 1) {
|
|
376
|
-
var _rootProps$components;
|
|
391
|
+
var _currentPage$range5, _rootProps$components;
|
|
377
392
|
|
|
378
393
|
const {
|
|
379
394
|
id,
|
|
@@ -404,7 +419,7 @@ const useGridVirtualScroller = props => {
|
|
|
404
419
|
firstColumnToRender: firstColumnToRender,
|
|
405
420
|
lastColumnToRender: lastColumnToRender,
|
|
406
421
|
selected: isSelected,
|
|
407
|
-
index: currentPage.range.firstRowIndex + firstRowToRender + i,
|
|
422
|
+
index: rowIndexOffset + ((currentPage == null ? void 0 : (_currentPage$range5 = currentPage.range) == null ? void 0 : _currentPage$range5.firstRowIndex) || 0) + firstRowToRender + i,
|
|
408
423
|
containerWidth: availableSpace,
|
|
409
424
|
isLastVisible: lastVisibleRowIndex
|
|
410
425
|
}, typeof getRowProps === 'function' ? getRowProps(id, model) : {}, (_rootProps$components = rootProps.componentsProps) == null ? void 0 : _rootProps$components.row), id));
|
package/node/index.js
CHANGED
package/node/internals/index.js
CHANGED
|
@@ -45,6 +45,12 @@ Object.defineProperty(exports, "buildWarning", {
|
|
|
45
45
|
return _warning.buildWarning;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "calculatePinnedRowsHeight", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _gridRowsUtils.calculatePinnedRowsHeight;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
48
54
|
Object.defineProperty(exports, "clamp", {
|
|
49
55
|
enumerable: true,
|
|
50
56
|
get: function () {
|
|
@@ -123,6 +129,24 @@ Object.defineProperty(exports, "getColumnsToExport", {
|
|
|
123
129
|
return _utils.getColumnsToExport;
|
|
124
130
|
}
|
|
125
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "getRowIdFromRowModel", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function () {
|
|
135
|
+
return _gridRowsUtils.getRowIdFromRowModel;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "gridAdditionalRowGroupsSelector", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () {
|
|
141
|
+
return _gridRowsSelector.gridAdditionalRowGroupsSelector;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
Object.defineProperty(exports, "gridPinnedRowsSelector", {
|
|
145
|
+
enumerable: true,
|
|
146
|
+
get: function () {
|
|
147
|
+
return _gridRowsSelector.gridPinnedRowsSelector;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
126
150
|
Object.defineProperty(exports, "isDeepEqual", {
|
|
127
151
|
enumerable: true,
|
|
128
152
|
get: function () {
|
|
@@ -436,6 +460,10 @@ var _useGridRowsMeta = require("../hooks/features/rows/useGridRowsMeta");
|
|
|
436
460
|
|
|
437
461
|
var _useGridParamsApi = require("../hooks/features/rows/useGridParamsApi");
|
|
438
462
|
|
|
463
|
+
var _gridRowsUtils = require("../hooks/features/rows/gridRowsUtils");
|
|
464
|
+
|
|
465
|
+
var _gridRowsSelector = require("../hooks/features/rows/gridRowsSelector");
|
|
466
|
+
|
|
439
467
|
var _useGridSelection = require("../hooks/features/selection/useGridSelection");
|
|
440
468
|
|
|
441
469
|
var _useGridSelectionPreProcessors = require("../hooks/features/selection/useGridSelectionPreProcessors");
|
package/node/locales/arSD.js
CHANGED
|
@@ -30,7 +30,7 @@ const arSDGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'اظهر المرشِحات',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} من المرشِحات النشطة` : `مرشِح نشط`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/bgBG.js
CHANGED
|
@@ -30,7 +30,7 @@ const bgBGGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Покажи Филтрите',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} активни филтри`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/csCZ.js
CHANGED
|
@@ -40,7 +40,7 @@ const csCZGrid = {
|
|
|
40
40
|
return `${count} ${pluralForm}`;
|
|
41
41
|
},
|
|
42
42
|
// Quick filter toolbar field
|
|
43
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
43
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
44
44
|
// toolbarQuickFilterLabel: 'Search',
|
|
45
45
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
46
46
|
// Export selector toolbar button text
|
package/node/locales/daDK.js
CHANGED
|
@@ -30,7 +30,7 @@ const daDKGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Vis filtre',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filtre` : `${count} aktivt filter`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/deDE.js
CHANGED
|
@@ -30,7 +30,7 @@ const deDEGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Zeige Filter',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive Filter` : `${count} aktiver Filter`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Suchen
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Suchen…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Suchen',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Löschen',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/elGR.js
CHANGED
|
@@ -28,7 +28,7 @@ const elGRGrid = {
|
|
|
28
28
|
toolbarFiltersTooltipShow: 'Εμφάνιση φίλτρων',
|
|
29
29
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} ενεργά φίλτρα` : `${count} ενεργό φίλτρο`,
|
|
30
30
|
// Quick filter toolbar field
|
|
31
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
31
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
32
32
|
// toolbarQuickFilterLabel: 'Search',
|
|
33
33
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
34
34
|
// Export selector toolbar button text
|
package/node/locales/esES.js
CHANGED
|
@@ -30,7 +30,7 @@ const esESGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Mostrar filtros',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} filtros activos` : `${count} filtro activo`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/faIR.js
CHANGED
|
@@ -30,7 +30,7 @@ const faIRGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'نمایش فیلترها',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} فیلترهای فعال` : `${count} فیلتر فعال`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/fiFI.js
CHANGED
|
@@ -30,7 +30,7 @@ const fiFIGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Näytä suodattimet',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktiivista suodatinta` : `${count} aktiivinen suodatin`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/frFR.js
CHANGED
|
@@ -30,7 +30,7 @@ const frFRGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Afficher les filtres',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} filtres actifs` : `${count} filtre actif`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Recherche
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Recherche…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Recherche',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Supprimer',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/heIL.js
CHANGED
|
@@ -30,7 +30,7 @@ const heILGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'הצג מסננים',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} מסננים פעילים` : `מסנן אחד פעיל`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: '
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'חיפוש…',
|
|
34
34
|
toolbarQuickFilterLabel: 'חיפוש',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'ניקוי',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/huHU.js
CHANGED
|
@@ -30,7 +30,7 @@ const huHUGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Szűrők megjelenítése',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} aktív szűrő`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/itIT.js
CHANGED
|
@@ -30,7 +30,7 @@ const itITGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Mostra i filtri',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} filtri attivi` : `${count} filtro attivo`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/jaJP.js
CHANGED
|
@@ -30,7 +30,7 @@ const jaJPGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'フィルター表示',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count}件のフィルターを適用中`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: '
|
|
33
|
+
toolbarQuickFilterPlaceholder: '検索…',
|
|
34
34
|
toolbarQuickFilterLabel: '検索',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'クリア',
|
|
36
36
|
// Export selector toolbar button text
|
|
@@ -41,7 +41,7 @@ const jaJPGrid = {
|
|
|
41
41
|
toolbarExportExcel: 'Excelダウンロード',
|
|
42
42
|
// Columns panel text
|
|
43
43
|
columnsPanelTextFieldLabel: '列検索',
|
|
44
|
-
columnsPanelTextFieldPlaceholder: '
|
|
44
|
+
columnsPanelTextFieldPlaceholder: '検索クエリを入力…',
|
|
45
45
|
columnsPanelDragIconLabel: '列並べ替え',
|
|
46
46
|
columnsPanelShowAllButton: 'すべて表示',
|
|
47
47
|
columnsPanelHideAllButton: 'すべて非表示',
|
|
@@ -55,7 +55,7 @@ const jaJPGrid = {
|
|
|
55
55
|
filterPanelOperatorOr: 'Or',
|
|
56
56
|
filterPanelColumns: '列',
|
|
57
57
|
filterPanelInputLabel: '値',
|
|
58
|
-
filterPanelInputPlaceholder: '
|
|
58
|
+
filterPanelInputPlaceholder: '値を入力…',
|
|
59
59
|
// Filter operators text
|
|
60
60
|
filterOperatorContains: '...を含む',
|
|
61
61
|
filterOperatorEquals: '...に等しい',
|
package/node/locales/koKR.js
CHANGED
|
@@ -30,7 +30,7 @@ const koKRGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: '필터 표시',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count}건의 필터를 적용중`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/nbNO.js
CHANGED
|
@@ -30,7 +30,7 @@ const nbNOGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Vis filter',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Søk
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Søk…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Søk',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Slett',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/nlNL.js
CHANGED
|
@@ -30,7 +30,7 @@ const nlNLGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Toon filters',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} actieve filters` : `${count} filter actief`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Zoeken
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Zoeken…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Zoeken',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Wissen',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/plPL.js
CHANGED
|
@@ -30,7 +30,7 @@ const plPLGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Pokaż filtry',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `Liczba aktywnych filtrów: ${count}`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/ptBR.js
CHANGED
|
@@ -30,7 +30,7 @@ const ptBRGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Exibir filtros',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Procurar
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Procurar',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Limpar',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/roRO.js
CHANGED
|
@@ -30,7 +30,7 @@ const roROGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Afișează filtru',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Căutare
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Căutare…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Căutare',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Ștergere',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/ruRU.js
CHANGED
|
@@ -41,7 +41,7 @@ const ruRUGrid = {
|
|
|
41
41
|
return `${count} ${pluralForm}`;
|
|
42
42
|
},
|
|
43
43
|
// Quick filter toolbar field
|
|
44
|
-
toolbarQuickFilterPlaceholder: '
|
|
44
|
+
toolbarQuickFilterPlaceholder: 'Поиск…',
|
|
45
45
|
toolbarQuickFilterLabel: 'Поиск',
|
|
46
46
|
toolbarQuickFilterDeleteIconLabel: 'Очистить',
|
|
47
47
|
// Export selector toolbar button text
|
package/node/locales/skSK.js
CHANGED
|
@@ -40,7 +40,7 @@ const skSKGrid = {
|
|
|
40
40
|
return `${count} ${pluralForm}`;
|
|
41
41
|
},
|
|
42
42
|
// Quick filter toolbar field
|
|
43
|
-
toolbarQuickFilterPlaceholder: 'Vyhľada
|
|
43
|
+
toolbarQuickFilterPlaceholder: 'Vyhľadať…',
|
|
44
44
|
toolbarQuickFilterLabel: 'Vyhľadať',
|
|
45
45
|
toolbarQuickFilterDeleteIconLabel: 'Vymazať',
|
|
46
46
|
// Export selector toolbar button text
|
package/node/locales/svSE.js
CHANGED
|
@@ -30,7 +30,7 @@ const svSEGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Visa filter',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktiva filter` : `${count} aktivt filter`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Sök
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Sök…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Sök',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Rensa',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/trTR.js
CHANGED
|
@@ -30,7 +30,7 @@ const trTRGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Filtreleri göster',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} aktif filtre`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: 'Ara
|
|
33
|
+
toolbarQuickFilterPlaceholder: 'Ara…',
|
|
34
34
|
toolbarQuickFilterLabel: 'Ara',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: 'Temizle',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/ukUA.js
CHANGED
|
@@ -47,7 +47,7 @@ const ukUAGrid = {
|
|
|
47
47
|
many: 'активних фільтрів'
|
|
48
48
|
}),
|
|
49
49
|
// Quick filter toolbar field
|
|
50
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
50
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
51
51
|
// toolbarQuickFilterLabel: 'Search',
|
|
52
52
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
53
53
|
// Export selector toolbar button text
|
package/node/locales/viVN.js
CHANGED
|
@@ -30,7 +30,7 @@ const viVNGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: 'Hiện',
|
|
31
31
|
toolbarFiltersTooltipActive: count => count > 1 ? `${count} bộ lọc hoạt động` : `${count} bộ lọc hoạt động`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
// toolbarQuickFilterPlaceholder: 'Search
|
|
33
|
+
// toolbarQuickFilterPlaceholder: 'Search…',
|
|
34
34
|
// toolbarQuickFilterLabel: 'Search',
|
|
35
35
|
// toolbarQuickFilterDeleteIconLabel: 'Clear',
|
|
36
36
|
// Export selector toolbar button text
|
package/node/locales/zhCN.js
CHANGED
|
@@ -30,15 +30,15 @@ const zhCNGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: '显示筛选器',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} 个筛选器`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
toolbarQuickFilterPlaceholder: '搜索…',
|
|
34
|
+
toolbarQuickFilterLabel: '搜索',
|
|
35
|
+
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
36
36
|
// Export selector toolbar button text
|
|
37
37
|
toolbarExport: '导出',
|
|
38
38
|
toolbarExportLabel: '导出',
|
|
39
39
|
toolbarExportCSV: '导出至CSV',
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
toolbarExportPrint: '打印',
|
|
41
|
+
toolbarExportExcel: '导出至Excel',
|
|
42
42
|
// Columns panel text
|
|
43
43
|
columnsPanelTextFieldLabel: '搜索列',
|
|
44
44
|
columnsPanelTextFieldPlaceholder: '列名',
|
|
@@ -48,7 +48,7 @@ const zhCNGrid = {
|
|
|
48
48
|
// Filter panel text
|
|
49
49
|
filterPanelAddFilter: '添加筛选器',
|
|
50
50
|
filterPanelDeleteIconLabel: '删除',
|
|
51
|
-
|
|
51
|
+
filterPanelLinkOperator: '逻辑操作器',
|
|
52
52
|
filterPanelOperators: '操作器',
|
|
53
53
|
// TODO v6: rename to filterPanelOperator
|
|
54
54
|
filterPanelOperatorAnd: '与',
|
|
@@ -69,7 +69,7 @@ const zhCNGrid = {
|
|
|
69
69
|
filterOperatorOnOrBefore: '正在前面',
|
|
70
70
|
filterOperatorIsEmpty: '为空',
|
|
71
71
|
filterOperatorIsNotEmpty: '不为空',
|
|
72
|
-
|
|
72
|
+
filterOperatorIsAnyOf: '属于',
|
|
73
73
|
// Filter values text
|
|
74
74
|
filterValueAny: '任何',
|
|
75
75
|
filterValueTrue: '真',
|
|
@@ -94,40 +94,40 @@ const zhCNGrid = {
|
|
|
94
94
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
|
|
95
95
|
// Checkbox selection text
|
|
96
96
|
checkboxSelectionHeaderName: '多选框',
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
checkboxSelectionSelectAllRows: '全选行',
|
|
98
|
+
checkboxSelectionUnselectAllRows: '反选所有行',
|
|
99
|
+
checkboxSelectionSelectRow: '选择行',
|
|
100
|
+
checkboxSelectionUnselectRow: '反选行',
|
|
101
101
|
// Boolean cell text
|
|
102
102
|
booleanCellTrueLabel: '真',
|
|
103
|
-
booleanCellFalseLabel: '假'
|
|
104
|
-
//
|
|
103
|
+
booleanCellFalseLabel: '假',
|
|
104
|
+
// Actions cell more text
|
|
105
|
+
actionsCellMore: '更多',
|
|
105
106
|
// Column pinning text
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
pinToLeft: '固定到左侧',
|
|
108
|
+
pinToRight: '固定到右侧',
|
|
109
|
+
unpin: '取消固定',
|
|
109
110
|
// Tree Data
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
treeDataGroupingHeaderName: '组',
|
|
112
|
+
treeDataExpand: '查看子项目',
|
|
113
|
+
treeDataCollapse: '隐藏子项目',
|
|
113
114
|
// Grouping columns
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
115
|
+
groupingColumnHeaderName: '组',
|
|
116
|
+
groupColumn: name => `用${name}分组`,
|
|
117
|
+
unGroupColumn: name => `不再用${name}分组`,
|
|
117
118
|
// Master/detail
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
detailPanelToggle: '详细信息',
|
|
120
|
+
expandDetailPanel: '显示',
|
|
121
|
+
collapseDetailPanel: '折叠',
|
|
121
122
|
// Row reordering text
|
|
122
|
-
|
|
123
|
+
rowReorderingHeaderName: '重新排列行',
|
|
123
124
|
// Aggregation
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
aggregationMenuItemHeader: '集合',
|
|
126
|
+
aggregationFunctionLabelSum: '总数',
|
|
127
|
+
aggregationFunctionLabelAvg: '平均',
|
|
128
|
+
aggregationFunctionLabelMin: '最小',
|
|
129
|
+
aggregationFunctionLabelMax: '最大',
|
|
130
|
+
aggregationFunctionLabelSize: '大小'
|
|
131
131
|
};
|
|
132
132
|
const zhCN = (0, _getGridLocalization.getGridLocalization)(zhCNGrid, _locale.zhCN);
|
|
133
133
|
exports.zhCN = zhCN;
|
package/node/locales/zhTW.js
CHANGED
|
@@ -30,7 +30,7 @@ const zhTWGrid = {
|
|
|
30
30
|
toolbarFiltersTooltipShow: '顯示篩選器',
|
|
31
31
|
toolbarFiltersTooltipActive: count => `${count} 個篩選器`,
|
|
32
32
|
// Quick filter toolbar field
|
|
33
|
-
toolbarQuickFilterPlaceholder: '
|
|
33
|
+
toolbarQuickFilterPlaceholder: '搜尋…',
|
|
34
34
|
toolbarQuickFilterLabel: '搜尋',
|
|
35
35
|
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
36
36
|
// Export selector toolbar button text
|