@mui/x-data-grid 8.0.0-alpha.1 → 8.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +330 -7
- package/DataGrid/DataGrid.js +9 -17
- package/components/GridPagination.js +2 -1
- package/components/base/GridOverlays.d.ts +4 -3
- package/components/base/GridOverlays.js +2 -24
- package/components/base/index.d.ts +0 -1
- package/components/base/index.js +1 -2
- package/components/cell/GridCell.js +7 -10
- package/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/components/columnSelection/GridHeaderCheckbox.js +6 -4
- package/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/components/toolbar/GridToolbarFilterButton.d.ts +2 -0
- package/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/components/virtualization/GridVirtualScroller.js +5 -3
- package/constants/dataGridPropsDefaultValues.js +2 -4
- package/constants/localeTextConstants.js +0 -1
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +25 -9
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +3 -6
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +0 -4
- package/hooks/features/dimensions/useGridDimensions.js +3 -19
- package/hooks/features/editing/useGridCellEditing.js +3 -3
- package/hooks/features/editing/useGridRowEditing.js +3 -3
- package/hooks/features/index.d.ts +1 -0
- package/hooks/features/index.js +1 -0
- package/hooks/features/listView/gridListViewSelectors.d.ts +3 -1
- package/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/hooks/features/listView/index.d.ts +1 -0
- package/hooks/features/listView/index.js +1 -0
- package/hooks/features/overlays/useGridOverlays.d.ts +7 -4
- package/hooks/features/overlays/useGridOverlays.js +19 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/hooks/features/rowSelection/utils.js +2 -2
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -8
- package/hooks/features/rows/gridRowsSelector.d.ts +0 -1
- package/hooks/features/rows/gridRowsSelector.js +0 -1
- package/hooks/features/rows/gridRowsUtils.js +0 -9
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridRows.js +12 -14
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/index.js +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +1 -1
- package/locales/arSD.js +0 -1
- package/locales/beBY.js +0 -1
- package/locales/bgBG.js +0 -1
- package/locales/csCZ.js +0 -1
- package/locales/daDK.js +0 -1
- package/locales/deDE.js +10 -13
- package/locales/elGR.js +0 -1
- package/locales/esES.js +10 -13
- package/locales/faIR.js +0 -1
- package/locales/fiFI.js +0 -1
- package/locales/frFR.js +0 -1
- package/locales/heIL.js +14 -17
- package/locales/hrHR.js +0 -1
- package/locales/huHU.js +0 -1
- package/locales/isIS.js +0 -1
- package/locales/itIT.js +0 -1
- package/locales/jaJP.js +0 -1
- package/locales/koKR.js +0 -1
- package/locales/nbNO.js +0 -1
- package/locales/nlNL.js +0 -1
- package/locales/nnNO.js +0 -1
- package/locales/plPL.js +0 -1
- package/locales/ptBR.js +10 -13
- package/locales/ptPT.js +10 -13
- package/locales/roRO.js +0 -1
- package/locales/ruRU.js +0 -1
- package/locales/skSK.js +0 -1
- package/locales/svSE.js +0 -1
- package/locales/trTR.js +12 -15
- package/locales/ukUA.js +0 -1
- package/locales/urPK.js +0 -1
- package/locales/viVN.js +0 -1
- package/locales/zhCN.js +10 -13
- package/locales/zhHK.js +0 -1
- package/locales/zhTW.js +0 -1
- package/models/api/gridCoreApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +0 -1
- package/models/colDef/gridColDef.d.ts +24 -24
- package/models/events/gridEventLookup.d.ts +1 -0
- package/models/gridDataSource.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +9 -17
- package/modern/DataGrid/DataGrid.js +9 -17
- package/modern/components/GridPagination.js +2 -1
- package/modern/components/base/GridOverlays.js +2 -24
- package/modern/components/base/index.js +1 -2
- package/modern/components/cell/GridCell.js +7 -10
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +6 -4
- package/modern/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/modern/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/modern/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/modern/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/modern/components/virtualization/GridVirtualScroller.js +5 -3
- package/modern/constants/dataGridPropsDefaultValues.js +2 -4
- package/modern/constants/localeTextConstants.js +0 -1
- package/modern/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +3 -19
- package/modern/hooks/features/editing/useGridCellEditing.js +3 -3
- package/modern/hooks/features/editing/useGridRowEditing.js +3 -3
- package/modern/hooks/features/index.js +1 -0
- package/modern/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/modern/hooks/features/listView/index.js +1 -0
- package/modern/hooks/features/overlays/useGridOverlays.js +19 -1
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/modern/hooks/features/rowSelection/utils.js +2 -2
- package/modern/hooks/features/rows/gridRowsSelector.js +0 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +0 -9
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +12 -14
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -1
- package/modern/locales/arSD.js +0 -1
- package/modern/locales/beBY.js +0 -1
- package/modern/locales/bgBG.js +0 -1
- package/modern/locales/csCZ.js +0 -1
- package/modern/locales/daDK.js +0 -1
- package/modern/locales/deDE.js +10 -13
- package/modern/locales/elGR.js +0 -1
- package/modern/locales/esES.js +10 -13
- package/modern/locales/faIR.js +0 -1
- package/modern/locales/fiFI.js +0 -1
- package/modern/locales/frFR.js +0 -1
- package/modern/locales/heIL.js +14 -17
- package/modern/locales/hrHR.js +0 -1
- package/modern/locales/huHU.js +0 -1
- package/modern/locales/isIS.js +0 -1
- package/modern/locales/itIT.js +0 -1
- package/modern/locales/jaJP.js +0 -1
- package/modern/locales/koKR.js +0 -1
- package/modern/locales/nbNO.js +0 -1
- package/modern/locales/nlNL.js +0 -1
- package/modern/locales/nnNO.js +0 -1
- package/modern/locales/plPL.js +0 -1
- package/modern/locales/ptBR.js +10 -13
- package/modern/locales/ptPT.js +10 -13
- package/modern/locales/roRO.js +0 -1
- package/modern/locales/ruRU.js +0 -1
- package/modern/locales/skSK.js +0 -1
- package/modern/locales/svSE.js +0 -1
- package/modern/locales/trTR.js +12 -15
- package/modern/locales/ukUA.js +0 -1
- package/modern/locales/urPK.js +0 -1
- package/modern/locales/viVN.js +0 -1
- package/modern/locales/zhCN.js +10 -13
- package/modern/locales/zhHK.js +0 -1
- package/modern/locales/zhTW.js +0 -1
- package/node/DataGrid/DataGrid.js +9 -17
- package/node/components/GridPagination.js +2 -1
- package/node/components/base/GridOverlays.js +2 -24
- package/node/components/base/index.js +0 -11
- package/node/components/cell/GridCell.js +7 -10
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/node/components/columnSelection/GridHeaderCheckbox.js +6 -4
- package/node/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/node/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/node/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/node/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/node/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/node/components/virtualization/GridVirtualScroller.js +5 -3
- package/node/constants/dataGridPropsDefaultValues.js +2 -4
- package/node/constants/localeTextConstants.js +0 -1
- package/node/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +7 -1
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/node/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/node/hooks/features/dimensions/useGridDimensions.js +2 -18
- package/node/hooks/features/editing/useGridCellEditing.js +2 -2
- package/node/hooks/features/editing/useGridRowEditing.js +2 -2
- package/node/hooks/features/index.js +11 -0
- package/node/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/node/hooks/features/listView/index.js +16 -0
- package/node/hooks/features/overlays/useGridOverlays.js +21 -1
- package/node/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/node/hooks/features/rowSelection/utils.js +2 -2
- package/node/hooks/features/rows/gridRowsSelector.js +1 -2
- package/node/hooks/features/rows/gridRowsUtils.js +0 -9
- package/node/hooks/features/rows/index.js +0 -7
- package/node/hooks/features/rows/useGridRows.js +11 -13
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/node/index.js +1 -1
- package/node/internals/index.js +7 -0
- package/node/locales/arSD.js +0 -1
- package/node/locales/beBY.js +0 -1
- package/node/locales/bgBG.js +0 -1
- package/node/locales/csCZ.js +0 -1
- package/node/locales/daDK.js +0 -1
- package/node/locales/deDE.js +10 -13
- package/node/locales/elGR.js +0 -1
- package/node/locales/esES.js +10 -13
- package/node/locales/faIR.js +0 -1
- package/node/locales/fiFI.js +0 -1
- package/node/locales/frFR.js +0 -1
- package/node/locales/heIL.js +14 -17
- package/node/locales/hrHR.js +0 -1
- package/node/locales/huHU.js +0 -1
- package/node/locales/isIS.js +0 -1
- package/node/locales/itIT.js +0 -1
- package/node/locales/jaJP.js +0 -1
- package/node/locales/koKR.js +0 -1
- package/node/locales/nbNO.js +0 -1
- package/node/locales/nlNL.js +0 -1
- package/node/locales/nnNO.js +0 -1
- package/node/locales/plPL.js +0 -1
- package/node/locales/ptBR.js +10 -13
- package/node/locales/ptPT.js +10 -13
- package/node/locales/roRO.js +0 -1
- package/node/locales/ruRU.js +0 -1
- package/node/locales/skSK.js +0 -1
- package/node/locales/svSE.js +0 -1
- package/node/locales/trTR.js +12 -15
- package/node/locales/ukUA.js +0 -1
- package/node/locales/urPK.js +0 -1
- package/node/locales/viVN.js +0 -1
- package/node/locales/zhCN.js +10 -13
- package/node/locales/zhHK.js +0 -1
- package/node/locales/zhTW.js +0 -1
- package/package.json +2 -2
|
@@ -42,12 +42,10 @@ export const createRowsInternalCache = ({
|
|
|
42
42
|
rows: []
|
|
43
43
|
};
|
|
44
44
|
const dataRowIdToModelLookup = {};
|
|
45
|
-
const dataRowIdToIdLookup = {};
|
|
46
45
|
for (let i = 0; i < rows.length; i += 1) {
|
|
47
46
|
const model = rows[i];
|
|
48
47
|
const id = getRowIdFromRowModel(model, getRowId);
|
|
49
48
|
dataRowIdToModelLookup[id] = model;
|
|
50
|
-
dataRowIdToIdLookup[id] = id;
|
|
51
49
|
updates.rows.push(id);
|
|
52
50
|
}
|
|
53
51
|
return {
|
|
@@ -55,7 +53,6 @@ export const createRowsInternalCache = ({
|
|
|
55
53
|
loadingPropBeforePartialUpdates: loading,
|
|
56
54
|
rowCountPropBeforePartialUpdates: rowCount,
|
|
57
55
|
updates,
|
|
58
|
-
dataRowIdToIdLookup,
|
|
59
56
|
dataRowIdToModelLookup
|
|
60
57
|
};
|
|
61
58
|
};
|
|
@@ -87,7 +84,6 @@ export const getRowsStateFromCache = ({
|
|
|
87
84
|
previousTree,
|
|
88
85
|
previousTreeDepths,
|
|
89
86
|
updates: cache.updates,
|
|
90
|
-
dataRowIdToIdLookup: cache.dataRowIdToIdLookup,
|
|
91
87
|
dataRowIdToModelLookup: cache.dataRowIdToModelLookup,
|
|
92
88
|
previousGroupsToFetch
|
|
93
89
|
});
|
|
@@ -96,7 +92,6 @@ export const getRowsStateFromCache = ({
|
|
|
96
92
|
const groupingParamsWithHydrateRows = apiRef.current.unstable_applyPipeProcessors('hydrateRows', {
|
|
97
93
|
tree: unProcessedTree,
|
|
98
94
|
treeDepths: unProcessedTreeDepths,
|
|
99
|
-
dataRowIdToIdLookup: cache.dataRowIdToIdLookup,
|
|
100
95
|
dataRowIds: unProcessedDataRowIds,
|
|
101
96
|
dataRowIdToModelLookup: cache.dataRowIdToModelLookup
|
|
102
97
|
});
|
|
@@ -177,7 +172,6 @@ export const updateCacheWithNewRows = ({
|
|
|
177
172
|
groupKeys
|
|
178
173
|
};
|
|
179
174
|
const dataRowIdToModelLookup = _extends({}, previousCache.dataRowIdToModelLookup);
|
|
180
|
-
const dataRowIdToIdLookup = _extends({}, previousCache.dataRowIdToIdLookup);
|
|
181
175
|
const alreadyAppliedActionsToRemove = {
|
|
182
176
|
insert: {},
|
|
183
177
|
modify: {},
|
|
@@ -210,7 +204,6 @@ export const updateCacheWithNewRows = ({
|
|
|
210
204
|
// Remove the data row from the lookups and add it to the "delete" update.
|
|
211
205
|
partialUpdates.actions.remove.push(id);
|
|
212
206
|
delete dataRowIdToModelLookup[id];
|
|
213
|
-
delete dataRowIdToIdLookup[id];
|
|
214
207
|
return;
|
|
215
208
|
}
|
|
216
209
|
const oldRow = dataRowIdToModelLookup[id];
|
|
@@ -250,7 +243,6 @@ export const updateCacheWithNewRows = ({
|
|
|
250
243
|
|
|
251
244
|
// Update the data row lookups.
|
|
252
245
|
dataRowIdToModelLookup[id] = partialRow;
|
|
253
|
-
dataRowIdToIdLookup[id] = id;
|
|
254
246
|
});
|
|
255
247
|
const actionTypeWithActionsToRemove = Object.keys(alreadyAppliedActionsToRemove);
|
|
256
248
|
for (let i = 0; i < actionTypeWithActionsToRemove.length; i += 1) {
|
|
@@ -262,7 +254,6 @@ export const updateCacheWithNewRows = ({
|
|
|
262
254
|
}
|
|
263
255
|
return {
|
|
264
256
|
dataRowIdToModelLookup,
|
|
265
|
-
dataRowIdToIdLookup,
|
|
266
257
|
updates: partialUpdates,
|
|
267
258
|
rowsBeforePartialUpdates: previousCache.rowsBeforePartialUpdates,
|
|
268
259
|
loadingPropBeforePartialUpdates: previousCache.loadingPropBeforePartialUpdates,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './gridRowsMetaSelector';
|
|
2
2
|
export * from './gridRowsMetaState';
|
|
3
|
-
export { gridRowCountSelector, gridRowsLoadingSelector, gridTopLevelRowCountSelector, gridRowsLookupSelector,
|
|
3
|
+
export { gridRowCountSelector, gridRowsLoadingSelector, gridTopLevelRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowGroupingNameSelector, gridRowTreeDepthsSelector, gridRowMaximumTreeDepthSelector, gridDataRowIdsSelector, } from './gridRowsSelector';
|
|
4
4
|
export type { GridRowsState, GridRowIdToModelLookup } from './gridRowsInterfaces';
|
|
5
5
|
export { GRID_ROOT_GROUP_ID, checkGridRowIdIsValid, isAutogeneratedRow } from './gridRowsUtils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from "./gridRowsMetaSelector.js";
|
|
2
2
|
export * from "./gridRowsMetaState.js";
|
|
3
|
-
export { gridRowCountSelector, gridRowsLoadingSelector, gridTopLevelRowCountSelector, gridRowsLookupSelector,
|
|
3
|
+
export { gridRowCountSelector, gridRowsLoadingSelector, gridTopLevelRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowGroupingNameSelector, gridRowTreeDepthsSelector, gridRowMaximumTreeDepthSelector, gridDataRowIdsSelector } from "./gridRowsSelector.js";
|
|
4
4
|
export { GRID_ROOT_GROUP_ID, checkGridRowIdIsValid, isAutogeneratedRow } from "./gridRowsUtils.js";
|
|
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
|
3
3
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
4
4
|
import { useGridApiMethod } from "../../utils/useGridApiMethod.js";
|
|
5
5
|
import { useGridLogger } from "../../utils/useGridLogger.js";
|
|
6
|
-
import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowGroupingNameSelector, gridRowTreeDepthsSelector, gridDataRowIdsSelector,
|
|
6
|
+
import { gridRowCountSelector, gridRowsLookupSelector, gridRowTreeSelector, gridRowGroupingNameSelector, gridRowTreeDepthsSelector, gridDataRowIdsSelector, gridRowMaximumTreeDepthSelector, gridRowGroupsToFetchSelector } from "./gridRowsSelector.js";
|
|
7
7
|
import { useTimeout } from "../../utils/useTimeout.js";
|
|
8
8
|
import { GridSignature, useGridApiEventHandler } from "../../utils/useGridApiEventHandler.js";
|
|
9
9
|
import { useGridVisibleRows } from "../../utils/useGridVisibleRows.js";
|
|
@@ -11,6 +11,7 @@ import { gridSortedRowIdsSelector } from "../sorting/gridSortingSelector.js";
|
|
|
11
11
|
import { gridFilteredRowsLookupSelector } from "../filter/gridFilterSelector.js";
|
|
12
12
|
import { getTreeNodeDescendants, createRowsInternalCache, getRowsStateFromCache, isAutogeneratedRowNode, GRID_ROOT_GROUP_ID, GRID_ID_AUTOGENERATED, updateCacheWithNewRows, getTopLevelRowCount, getRowIdFromRowModel, computeRowsUpdates } from "./gridRowsUtils.js";
|
|
13
13
|
import { useGridRegisterPipeApplier } from "../../core/pipeProcessing/index.js";
|
|
14
|
+
import { GridStrategyGroup } from "../../core/strategyProcessing/index.js";
|
|
14
15
|
export const rowsStateInitializer = (state, props, apiRef) => {
|
|
15
16
|
const isDataSourceAvailable = !!props.unstable_dataSource;
|
|
16
17
|
apiRef.current.caches.rows = createRowsInternalCache({
|
|
@@ -272,7 +273,6 @@ export const useGridRows = (apiRef, props) => {
|
|
|
272
273
|
}
|
|
273
274
|
const tree = _extends({}, gridRowTreeSelector(apiRef));
|
|
274
275
|
const dataRowIdToModelLookup = _extends({}, gridRowsLookupSelector(apiRef));
|
|
275
|
-
const dataRowIdToIdLookup = _extends({}, gridRowsDataRowIdToIdLookupSelector(apiRef));
|
|
276
276
|
const rootGroup = tree[GRID_ROOT_GROUP_ID];
|
|
277
277
|
const rootGroupChildren = [...rootGroup.children];
|
|
278
278
|
const seenIds = new Set();
|
|
@@ -282,7 +282,6 @@ export const useGridRows = (apiRef, props) => {
|
|
|
282
282
|
const [removedRowId] = rootGroupChildren.splice(firstRowToRender + i, 1, rowId);
|
|
283
283
|
if (!seenIds.has(removedRowId)) {
|
|
284
284
|
delete dataRowIdToModelLookup[removedRowId];
|
|
285
|
-
delete dataRowIdToIdLookup[removedRowId];
|
|
286
285
|
delete tree[removedRowId];
|
|
287
286
|
}
|
|
288
287
|
const rowTreeNodeConfig = {
|
|
@@ -293,7 +292,6 @@ export const useGridRows = (apiRef, props) => {
|
|
|
293
292
|
groupingKey: null
|
|
294
293
|
};
|
|
295
294
|
dataRowIdToModelLookup[rowId] = rowModel;
|
|
296
|
-
dataRowIdToIdLookup[rowId] = rowId;
|
|
297
295
|
tree[rowId] = rowTreeNodeConfig;
|
|
298
296
|
seenIds.add(rowId);
|
|
299
297
|
}
|
|
@@ -304,17 +302,17 @@ export const useGridRows = (apiRef, props) => {
|
|
|
304
302
|
// Removes potential remaining skeleton rows from the dataRowIds.
|
|
305
303
|
const dataRowIds = rootGroupChildren.filter(childId => tree[childId]?.type === 'leaf');
|
|
306
304
|
apiRef.current.caches.rows.dataRowIdToModelLookup = dataRowIdToModelLookup;
|
|
307
|
-
apiRef.current.caches.rows.dataRowIdToIdLookup = dataRowIdToIdLookup;
|
|
308
305
|
apiRef.current.setState(state => _extends({}, state, {
|
|
309
306
|
rows: _extends({}, state.rows, {
|
|
307
|
+
loading: props.loading,
|
|
308
|
+
totalRowCount: Math.max(props.rowCount || 0, rootGroupChildren.length),
|
|
310
309
|
dataRowIdToModelLookup,
|
|
311
|
-
dataRowIdToIdLookup,
|
|
312
310
|
dataRowIds,
|
|
313
311
|
tree
|
|
314
312
|
})
|
|
315
313
|
}));
|
|
316
314
|
apiRef.current.publishEvent('rowsSet');
|
|
317
|
-
}, [apiRef, props.signature, props.getRowId]);
|
|
315
|
+
}, [apiRef, props.signature, props.getRowId, props.loading, props.rowCount]);
|
|
318
316
|
const rowApi = {
|
|
319
317
|
getRow,
|
|
320
318
|
setLoading,
|
|
@@ -381,7 +379,7 @@ export const useGridRows = (apiRef, props) => {
|
|
|
381
379
|
const handleStrategyActivityChange = React.useCallback(() => {
|
|
382
380
|
// `rowTreeCreation` is the only processor ran when `strategyAvailabilityChange` is fired.
|
|
383
381
|
// All the other processors listen to `rowsSet` which will be published by the `groupRows` method below.
|
|
384
|
-
if (apiRef.current.getActiveStrategy(
|
|
382
|
+
if (apiRef.current.getActiveStrategy(GridStrategyGroup.RowTree) !== gridRowGroupingNameSelector(apiRef)) {
|
|
385
383
|
groupRows();
|
|
386
384
|
}
|
|
387
385
|
}, [apiRef, groupRows]);
|
|
@@ -397,8 +395,7 @@ export const useGridRows = (apiRef, props) => {
|
|
|
397
395
|
tree: gridRowTreeSelector(state, apiRef.current.instanceId),
|
|
398
396
|
treeDepths: gridRowTreeDepthsSelector(state, apiRef.current.instanceId),
|
|
399
397
|
dataRowIds: gridDataRowIdsSelector(state, apiRef.current.instanceId),
|
|
400
|
-
dataRowIdToModelLookup: gridRowsLookupSelector(state, apiRef.current.instanceId)
|
|
401
|
-
dataRowIdToIdLookup: gridRowsDataRowIdToIdLookupSelector(state, apiRef.current.instanceId)
|
|
398
|
+
dataRowIdToModelLookup: gridRowsLookupSelector(state, apiRef.current.instanceId)
|
|
402
399
|
});
|
|
403
400
|
return _extends({}, state, {
|
|
404
401
|
rows: _extends({}, state.rows, response, {
|
|
@@ -430,7 +427,8 @@ export const useGridRows = (apiRef, props) => {
|
|
|
430
427
|
isRowCountPropUpdated = true;
|
|
431
428
|
lastRowCount.current = props.rowCount;
|
|
432
429
|
}
|
|
433
|
-
const
|
|
430
|
+
const currentRows = props.unstable_dataSource ? Array.from(apiRef.current.getRowModels().values()) : props.rows;
|
|
431
|
+
const areNewRowsAlreadyInState = apiRef.current.caches.rows.rowsBeforePartialUpdates === currentRows;
|
|
434
432
|
const isNewLoadingAlreadyInState = apiRef.current.caches.rows.loadingPropBeforePartialUpdates === props.loading;
|
|
435
433
|
const isNewRowCountAlreadyInState = apiRef.current.caches.rows.rowCountPropBeforePartialUpdates === props.rowCount;
|
|
436
434
|
|
|
@@ -460,15 +458,15 @@ export const useGridRows = (apiRef, props) => {
|
|
|
460
458
|
return;
|
|
461
459
|
}
|
|
462
460
|
}
|
|
463
|
-
logger.debug(`Updating all rows, new length ${
|
|
461
|
+
logger.debug(`Updating all rows, new length ${currentRows?.length}`);
|
|
464
462
|
throttledRowsChange({
|
|
465
463
|
cache: createRowsInternalCache({
|
|
466
|
-
rows:
|
|
464
|
+
rows: currentRows,
|
|
467
465
|
getRowId: props.getRowId,
|
|
468
466
|
loading: props.loading,
|
|
469
467
|
rowCount: props.rowCount
|
|
470
468
|
}),
|
|
471
469
|
throttle: false
|
|
472
470
|
});
|
|
473
|
-
}, [props.rows, props.rowCount, props.getRowId, props.loading, logger, throttledRowsChange, apiRef]);
|
|
471
|
+
}, [props.rows, props.rowCount, props.getRowId, props.loading, props.unstable_dataSource, logger, throttledRowsChange, apiRef]);
|
|
474
472
|
};
|
|
@@ -7,4 +7,4 @@ export declare const rowsMetaStateInitializer: GridStateInitializer;
|
|
|
7
7
|
* @requires useGridPageSize (method)
|
|
8
8
|
* @requires useGridPage (method)
|
|
9
9
|
*/
|
|
10
|
-
export declare const useGridRowsMeta: (apiRef: React.MutableRefObject<GridPrivateApiCommunity>, props: Pick<DataGridProcessedProps, "getRowHeight" | "getEstimatedRowHeight" | "getRowSpacing" | "pagination" | "paginationMode" | "rowHeight"
|
|
10
|
+
export declare const useGridRowsMeta: (apiRef: React.MutableRefObject<GridPrivateApiCommunity>, props: Pick<DataGridProcessedProps, "getRowHeight" | "getEstimatedRowHeight" | "getRowSpacing" | "pagination" | "paginationMode" | "rowHeight">) => void;
|
|
@@ -12,7 +12,7 @@ export declare const useGridVirtualScroller: () => {
|
|
|
12
12
|
renderContext?: GridRenderContext;
|
|
13
13
|
}) => React.ReactNode[];
|
|
14
14
|
getContainerProps: () => {
|
|
15
|
-
ref:
|
|
15
|
+
ref: (node: HTMLDivElement | null) => (() => void) | undefined;
|
|
16
16
|
};
|
|
17
17
|
getScrollerProps: () => {
|
|
18
18
|
ref: React.RefObject<HTMLDivElement>;
|
|
@@ -4,8 +4,8 @@ import * as ReactDOM from 'react-dom';
|
|
|
4
4
|
import { unstable_useEnhancedEffect as useEnhancedEffect, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
5
5
|
import useLazyRef from '@mui/utils/useLazyRef';
|
|
6
6
|
import useTimeout from '@mui/utils/useTimeout';
|
|
7
|
-
import { useResizeObserver } from '@mui/x-internals/useResizeObserver';
|
|
8
7
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
8
|
+
import reactMajor from '@mui/x-internals/reactMajor';
|
|
9
9
|
import { useGridPrivateApiContext } from "../../utils/useGridPrivateApiContext.js";
|
|
10
10
|
import { useGridRootProps } from "../../utils/useGridRootProps.js";
|
|
11
11
|
import { useGridSelector } from "../../utils/useGridSelector.js";
|
|
@@ -48,7 +48,7 @@ const createScrollCache = (isRtl, rowBufferPx, columnBufferPx, verticalBuffer, h
|
|
|
48
48
|
let isJSDOM = false;
|
|
49
49
|
try {
|
|
50
50
|
if (typeof window !== 'undefined') {
|
|
51
|
-
isJSDOM = /jsdom/.test(window.navigator.userAgent);
|
|
51
|
+
isJSDOM = /jsdom|HappyDOM/.test(window.navigator.userAgent);
|
|
52
52
|
}
|
|
53
53
|
} catch (_) {
|
|
54
54
|
/* ignore */
|
|
@@ -86,7 +86,44 @@ export const useGridVirtualScroller = () => {
|
|
|
86
86
|
const contentHeight = dimensions.contentSize.height;
|
|
87
87
|
const columnsTotalWidth = dimensions.columnsTotalWidth;
|
|
88
88
|
const hasColSpan = useGridSelector(apiRef, gridHasColSpanSelector);
|
|
89
|
-
|
|
89
|
+
const mainRefCallback = React.useCallback(node => {
|
|
90
|
+
mainRef.current = node;
|
|
91
|
+
if (!node) {
|
|
92
|
+
return undefined;
|
|
93
|
+
}
|
|
94
|
+
const initialRect = node.getBoundingClientRect();
|
|
95
|
+
let lastSize = {
|
|
96
|
+
width: initialRect.width,
|
|
97
|
+
height: initialRect.height
|
|
98
|
+
};
|
|
99
|
+
apiRef.current.publishEvent('resize', lastSize);
|
|
100
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
const observer = new ResizeObserver(entries => {
|
|
104
|
+
const entry = entries[0];
|
|
105
|
+
if (!entry) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
const newSize = {
|
|
109
|
+
width: entry.contentRect.width,
|
|
110
|
+
height: entry.contentRect.height
|
|
111
|
+
};
|
|
112
|
+
if (newSize.width === lastSize.width && newSize.height === lastSize.height) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
apiRef.current.publishEvent('resize', newSize);
|
|
116
|
+
lastSize = newSize;
|
|
117
|
+
});
|
|
118
|
+
observer.observe(node);
|
|
119
|
+
if (reactMajor >= 19) {
|
|
120
|
+
return () => {
|
|
121
|
+
mainRef.current = null;
|
|
122
|
+
observer.disconnect();
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
return undefined;
|
|
126
|
+
}, [apiRef, mainRef]);
|
|
90
127
|
|
|
91
128
|
/*
|
|
92
129
|
* Scroll context logic
|
|
@@ -137,9 +174,13 @@ export const useGridVirtualScroller = () => {
|
|
|
137
174
|
previousContextScrollPosition.current = scrollPosition.current;
|
|
138
175
|
}, [apiRef, dimensions.isReady]);
|
|
139
176
|
const triggerUpdateRenderContext = useEventCallback(() => {
|
|
177
|
+
const scroller = scrollerRef.current;
|
|
178
|
+
if (!scroller) {
|
|
179
|
+
return undefined;
|
|
180
|
+
}
|
|
140
181
|
const newScroll = {
|
|
141
|
-
top:
|
|
142
|
-
left:
|
|
182
|
+
top: scroller.scrollTop,
|
|
183
|
+
left: scroller.scrollLeft
|
|
143
184
|
};
|
|
144
185
|
const dx = newScroll.left - scrollPosition.current.left;
|
|
145
186
|
const dy = newScroll.top - scrollPosition.current.top;
|
|
@@ -389,10 +430,6 @@ export const useGridVirtualScroller = () => {
|
|
|
389
430
|
React.useEffect(() => {
|
|
390
431
|
apiRef.current.publishEvent('virtualScrollerContentSizeChange');
|
|
391
432
|
}, [apiRef, contentSize]);
|
|
392
|
-
useEnhancedEffect(() => {
|
|
393
|
-
// FIXME: Is this really necessary?
|
|
394
|
-
apiRef.current.resize();
|
|
395
|
-
}, [apiRef, rowsMeta.currentPageTotalHeight]);
|
|
396
433
|
useEnhancedEffect(() => {
|
|
397
434
|
// TODO a scroll reset should not be necessary
|
|
398
435
|
if (enabledForColumns) {
|
|
@@ -428,7 +465,7 @@ export const useGridVirtualScroller = () => {
|
|
|
428
465
|
setPanels,
|
|
429
466
|
getRows,
|
|
430
467
|
getContainerProps: () => ({
|
|
431
|
-
ref:
|
|
468
|
+
ref: mainRefCallback
|
|
432
469
|
}),
|
|
433
470
|
getScrollerProps: () => ({
|
|
434
471
|
ref: scrollerRef,
|
|
@@ -485,7 +522,8 @@ function inputsSelector(apiRef, rootProps, enabledForRows, enabledForColumns) {
|
|
|
485
522
|
pinnedColumns: gridVisiblePinnedColumnDefinitionsSelector(apiRef),
|
|
486
523
|
visibleColumns,
|
|
487
524
|
hiddenCellsOriginMap,
|
|
488
|
-
listView: rootProps.unstable_listView ?? false
|
|
525
|
+
listView: rootProps.unstable_listView ?? false,
|
|
526
|
+
virtualizeColumnsWithAutoRowHeight: rootProps.virtualizeColumnsWithAutoRowHeight
|
|
489
527
|
};
|
|
490
528
|
}
|
|
491
529
|
function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
@@ -533,11 +571,13 @@ function computeRenderContext(inputs, scrollPosition, scrollCache) {
|
|
|
533
571
|
positions: inputs.rowsMeta.positions,
|
|
534
572
|
lastSize: inputs.lastRowHeight
|
|
535
573
|
});
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
574
|
+
if (!inputs.virtualizeColumnsWithAutoRowHeight) {
|
|
575
|
+
for (let i = firstRowToRender; i < lastRowToRender && !hasRowWithAutoHeight; i += 1) {
|
|
576
|
+
const row = inputs.rows[i];
|
|
577
|
+
hasRowWithAutoHeight = inputs.apiRef.current.rowHasAutoHeight(row.id);
|
|
578
|
+
}
|
|
539
579
|
}
|
|
540
|
-
if (!hasRowWithAutoHeight) {
|
|
580
|
+
if (!hasRowWithAutoHeight || inputs.virtualizeColumnsWithAutoRowHeight) {
|
|
541
581
|
firstColumnIndex = binarySearch(realLeft, inputs.columnPositions, {
|
|
542
582
|
atStart: true,
|
|
543
583
|
lastPosition: inputs.columnsTotalWidth
|
package/index.js
CHANGED
package/internals/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { getGridFilter } from '../components/panel/filterPanel/GridFilterPanel';
|
|
|
11
11
|
export { getValueOptions } from '../components/panel/filterPanel/filterPanelUtils';
|
|
12
12
|
export { useGridRegisterPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
13
13
|
export type { GridPipeProcessor } from '../hooks/core/pipeProcessing';
|
|
14
|
-
export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY, } from '../hooks/core/strategyProcessing';
|
|
14
|
+
export { GridStrategyGroup, useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY, } from '../hooks/core/strategyProcessing';
|
|
15
15
|
export type { GridStrategyProcessor } from '../hooks/core/strategyProcessing';
|
|
16
16
|
export { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
17
17
|
export { unwrapPrivateAPI } from '../hooks/core/useGridApiInitialization';
|
package/internals/index.js
CHANGED
|
@@ -7,7 +7,7 @@ export { DATA_GRID_DEFAULT_SLOTS_COMPONENTS } from "../constants/defaultGridSlot
|
|
|
7
7
|
export { getGridFilter } from "../components/panel/filterPanel/GridFilterPanel.js";
|
|
8
8
|
export { getValueOptions } from "../components/panel/filterPanel/filterPanelUtils.js";
|
|
9
9
|
export { useGridRegisterPipeProcessor } from "../hooks/core/pipeProcessing/index.js";
|
|
10
|
-
export { useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from "../hooks/core/strategyProcessing/index.js";
|
|
10
|
+
export { GridStrategyGroup, useGridRegisterStrategyProcessor, GRID_DEFAULT_STRATEGY } from "../hooks/core/strategyProcessing/index.js";
|
|
11
11
|
export { useGridInitialization } from "../hooks/core/useGridInitialization.js";
|
|
12
12
|
export { unwrapPrivateAPI } from "../hooks/core/useGridApiInitialization.js";
|
|
13
13
|
export { useGridClipboard } from "../hooks/features/clipboard/useGridClipboard.js";
|
package/locales/arSD.js
CHANGED
|
@@ -28,7 +28,6 @@ const arSDGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/beBY.js
CHANGED
|
@@ -42,7 +42,6 @@ const beBYGrid = {
|
|
|
42
42
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
43
43
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
44
44
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
45
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
46
45
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
47
46
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
48
47
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/bgBG.js
CHANGED
|
@@ -28,7 +28,6 @@ const bgBGGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/csCZ.js
CHANGED
|
@@ -36,7 +36,6 @@ const csCZGrid = {
|
|
|
36
36
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
37
37
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
38
38
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
39
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
40
39
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
41
40
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
42
41
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/daDK.js
CHANGED
|
@@ -28,7 +28,6 @@ const daDKGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/deDE.js
CHANGED
|
@@ -24,17 +24,15 @@ const deDEGrid = {
|
|
|
24
24
|
toolbarQuickFilterLabel: 'Suchen',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Löschen',
|
|
26
26
|
// Prompt toolbar field
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
37
|
-
|
|
27
|
+
toolbarPromptControlPlaceholder: 'Prompt eingeben…',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: 'Prompt eingeben oder aufnehmen…',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: 'Hört Prompteingabe zu…',
|
|
30
|
+
toolbarPromptControlLabel: 'Prompteingabe',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'Aufnahme starten',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: 'Aufnahme stoppen',
|
|
33
|
+
toolbarPromptControlSendActionLabel: 'Senden',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: 'Prompt senden',
|
|
35
|
+
toolbarPromptControlErrorMessage: 'Ein Fehler ist während der Bearbeitung der Anfrage aufgetreten. Bitte versuche es nochmal mit einem anderen Prompt.',
|
|
38
36
|
// Export selector toolbar button text
|
|
39
37
|
toolbarExport: 'Exportieren',
|
|
40
38
|
toolbarExportLabel: 'Exportieren',
|
|
@@ -46,8 +44,7 @@ const deDEGrid = {
|
|
|
46
44
|
columnsManagementNoColumns: 'Keine Spalten',
|
|
47
45
|
columnsManagementShowHideAllText: 'Alle anzeigen/verbergen',
|
|
48
46
|
columnsManagementReset: 'Zurücksetzen',
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
columnsManagementDeleteIconLabel: 'Löschen',
|
|
51
48
|
// Filter panel text
|
|
52
49
|
filterPanelAddFilter: 'Filter hinzufügen',
|
|
53
50
|
filterPanelRemoveAll: 'Alle entfernen',
|
package/locales/elGR.js
CHANGED
|
@@ -28,7 +28,6 @@ const elGRGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/esES.js
CHANGED
|
@@ -24,17 +24,15 @@ const esESGrid = {
|
|
|
24
24
|
toolbarQuickFilterLabel: 'Buscar',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Limpiar',
|
|
26
26
|
// Prompt toolbar field
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
37
|
-
|
|
27
|
+
toolbarPromptControlPlaceholder: 'Escriba un prompt…',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: 'Escriba o grabe un prompt…',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: 'Esperando por un prompt…',
|
|
30
|
+
toolbarPromptControlLabel: 'Introduzca un prompt',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'Grabar',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: 'Parar de grabar',
|
|
33
|
+
toolbarPromptControlSendActionLabel: 'Enviar',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: 'Enviar prompt',
|
|
35
|
+
toolbarPromptControlErrorMessage: 'Ocurrió un error mientras se procesaba la petición. Por favor, intente de nuevo con otro prompt.',
|
|
38
36
|
// Export selector toolbar button text
|
|
39
37
|
toolbarExport: 'Exportar',
|
|
40
38
|
toolbarExportLabel: 'Exportar',
|
|
@@ -46,8 +44,7 @@ const esESGrid = {
|
|
|
46
44
|
columnsManagementNoColumns: 'Sin columnas',
|
|
47
45
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar todas',
|
|
48
46
|
columnsManagementReset: 'Restablecer',
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
columnsManagementDeleteIconLabel: 'Limpiar',
|
|
51
48
|
// Filter panel text
|
|
52
49
|
filterPanelAddFilter: 'Agregar filtro',
|
|
53
50
|
filterPanelRemoveAll: 'Remover todos',
|
package/locales/faIR.js
CHANGED
|
@@ -28,7 +28,6 @@ const faIRGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/fiFI.js
CHANGED
|
@@ -28,7 +28,6 @@ const fiFIGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/frFR.js
CHANGED
|
@@ -28,7 +28,6 @@ const frFRGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/heIL.js
CHANGED
|
@@ -24,17 +24,15 @@ const heILGrid = {
|
|
|
24
24
|
toolbarQuickFilterLabel: 'חיפוש',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'ניקוי',
|
|
26
26
|
// Prompt toolbar field
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
37
|
-
|
|
27
|
+
toolbarPromptControlPlaceholder: 'הקלד ערך…',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: 'הקלד או הקלט ערך…',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: 'ממתין להנחיה…',
|
|
30
|
+
toolbarPromptControlLabel: 'הזן ערך',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'הקלטה',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: 'הפסק הקלטה',
|
|
33
|
+
toolbarPromptControlSendActionLabel: 'שלח',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: 'שלח ערך',
|
|
35
|
+
toolbarPromptControlErrorMessage: 'התרחשה שגיאה בזמן העיבוד של הבקשה. נסה שוב עם ערך אחר בבקשה.',
|
|
38
36
|
// Export selector toolbar button text
|
|
39
37
|
toolbarExport: 'ייצוא',
|
|
40
38
|
toolbarExportLabel: 'ייצוא',
|
|
@@ -46,8 +44,7 @@ const heILGrid = {
|
|
|
46
44
|
columnsManagementNoColumns: 'אין עמודות',
|
|
47
45
|
columnsManagementShowHideAllText: 'הצג/הסתר הכל',
|
|
48
46
|
columnsManagementReset: 'אתחול',
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
columnsManagementDeleteIconLabel: 'נקה',
|
|
51
48
|
// Filter panel text
|
|
52
49
|
filterPanelAddFilter: 'הוסף מסנן',
|
|
53
50
|
filterPanelRemoveAll: 'מחק הכל',
|
|
@@ -61,9 +58,9 @@ const heILGrid = {
|
|
|
61
58
|
filterPanelInputPlaceholder: 'ערך מסנן',
|
|
62
59
|
// Filter operators text
|
|
63
60
|
filterOperatorContains: 'מכיל',
|
|
64
|
-
|
|
61
|
+
filterOperatorDoesNotContain: 'לא מכיל',
|
|
65
62
|
filterOperatorEquals: 'שווה',
|
|
66
|
-
|
|
63
|
+
filterOperatorDoesNotEqual: 'לא שווה',
|
|
67
64
|
filterOperatorStartsWith: 'מתחיל ב-',
|
|
68
65
|
filterOperatorEndsWith: 'נגמר ב-',
|
|
69
66
|
filterOperatorIs: 'הינו',
|
|
@@ -83,9 +80,9 @@ const heILGrid = {
|
|
|
83
80
|
'filterOperator<=': '<=',
|
|
84
81
|
// Header filter operators text
|
|
85
82
|
headerFilterOperatorContains: 'מכיל',
|
|
86
|
-
|
|
83
|
+
headerFilterOperatorDoesNotContain: 'לא מכיל',
|
|
87
84
|
headerFilterOperatorEquals: 'שווה',
|
|
88
|
-
|
|
85
|
+
headerFilterOperatorDoesNotEqual: 'לא שווה',
|
|
89
86
|
headerFilterOperatorStartsWith: 'מתחיל ב-',
|
|
90
87
|
headerFilterOperatorEndsWith: 'נגמר ב-',
|
|
91
88
|
headerFilterOperatorIs: 'הינו',
|
package/locales/hrHR.js
CHANGED
|
@@ -36,7 +36,6 @@ const hrHRGrid = {
|
|
|
36
36
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
37
37
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
38
38
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
39
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
40
39
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
41
40
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
42
41
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/huHU.js
CHANGED
|
@@ -28,7 +28,6 @@ const huHUGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/isIS.js
CHANGED
|
@@ -28,7 +28,6 @@ const isISGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/itIT.js
CHANGED
|
@@ -28,7 +28,6 @@ const itITGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/locales/jaJP.js
CHANGED
|
@@ -28,7 +28,6 @@ const jaJPGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|