@mui/x-data-grid 8.0.0-alpha.1 → 8.0.0-alpha.2
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 +228 -7
- package/DataGrid/DataGrid.js +9 -9
- 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 +2 -3
- 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 -3
- package/constants/localeTextConstants.js +0 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +0 -4
- package/hooks/features/dimensions/useGridDimensions.js +3 -19
- 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/virtualization/useGridVirtualScroller.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/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 +0 -1
- 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 +0 -1
- 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/props/DataGridProps.d.ts +9 -9
- package/modern/DataGrid/DataGrid.js +9 -9
- 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 +2 -3
- 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 -3
- package/modern/constants/localeTextConstants.js +0 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +3 -19
- 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/virtualization/useGridVirtualScroller.js +55 -15
- package/modern/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 +0 -1
- 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 +0 -1
- 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 -9
- 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 +2 -3
- 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 -3
- package/node/constants/localeTextConstants.js +0 -1
- package/node/hooks/features/dimensions/useGridDimensions.js +2 -18
- 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/virtualization/useGridVirtualScroller.js +55 -15
- package/node/index.js +1 -1
- 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 +0 -1
- 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 +0 -1
- 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
|
@@ -26,7 +26,6 @@ export const GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
26
26
|
toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
27
27
|
toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
28
28
|
toolbarPromptControlLabel: 'Prompt input',
|
|
29
|
-
toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
30
29
|
toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
31
30
|
toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
32
31
|
toolbarPromptControlSendActionLabel: 'Send',
|
|
@@ -83,10 +83,6 @@ export interface GridDimensions {
|
|
|
83
83
|
bottomContainerHeight: number;
|
|
84
84
|
}
|
|
85
85
|
export interface GridDimensionsApi {
|
|
86
|
-
/**
|
|
87
|
-
* Triggers a resize of the component and recalculation of width and height.
|
|
88
|
-
*/
|
|
89
|
-
resize: () => void;
|
|
90
86
|
/**
|
|
91
87
|
* Returns the dimensions of the grid
|
|
92
88
|
* @returns {GridDimensions} The dimension information of the grid. If `null`, the grid is not ready yet.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useEventCallback as useEventCallback
|
|
3
|
+
import { unstable_ownerDocument as ownerDocument, unstable_useEnhancedEffect as useEnhancedEffect, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
4
4
|
import { throttle } from '@mui/x-internals/throttle';
|
|
5
5
|
import { useGridApiEventHandler, useGridApiOptionHandler } from "../../utils/useGridApiEventHandler.js";
|
|
6
6
|
import { useGridApiMethod } from "../../utils/useGridApiMethod.js";
|
|
@@ -66,28 +66,13 @@ export function useGridDimensions(apiRef, props) {
|
|
|
66
66
|
const rightPinnedWidth = pinnedColumns.right.reduce((w, col) => w + col.computedWidth, 0);
|
|
67
67
|
const [savedSize, setSavedSize] = React.useState();
|
|
68
68
|
const debouncedSetSavedSize = React.useMemo(() => throttle(setSavedSize, props.resizeThrottleMs), [props.resizeThrottleMs]);
|
|
69
|
-
|
|
69
|
+
React.useEffect(() => debouncedSetSavedSize.clear, [debouncedSetSavedSize]);
|
|
70
70
|
const getRootDimensions = () => apiRef.current.state.dimensions;
|
|
71
71
|
const setDimensions = useEventCallback(dimensions => {
|
|
72
72
|
apiRef.current.setState(state => _extends({}, state, {
|
|
73
73
|
dimensions
|
|
74
74
|
}));
|
|
75
75
|
});
|
|
76
|
-
const resize = React.useCallback(() => {
|
|
77
|
-
const element = apiRef.current.mainElementRef.current;
|
|
78
|
-
if (!element) {
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
const computedStyle = ownerWindow(element).getComputedStyle(element);
|
|
82
|
-
const newSize = {
|
|
83
|
-
width: parseFloat(computedStyle.width) || 0,
|
|
84
|
-
height: parseFloat(computedStyle.height) || 0
|
|
85
|
-
};
|
|
86
|
-
if (!previousSize.current || !areElementSizesEqual(previousSize.current, newSize)) {
|
|
87
|
-
apiRef.current.publishEvent('resize', newSize);
|
|
88
|
-
previousSize.current = newSize;
|
|
89
|
-
}
|
|
90
|
-
}, [apiRef]);
|
|
91
76
|
const getViewportPageSize = React.useCallback(() => {
|
|
92
77
|
const dimensions = gridDimensionsSelector(apiRef.current.state);
|
|
93
78
|
if (!dimensions.isReady) {
|
|
@@ -198,7 +183,6 @@ export function useGridDimensions(apiRef, props) {
|
|
|
198
183
|
apiRef.current.updateRenderContext?.();
|
|
199
184
|
}, [apiRef, setDimensions, props.scrollbarSize, props.autoHeight, rowsMeta.currentPageTotalHeight, rowHeight, headerHeight, groupHeaderHeight, headerFilterHeight, columnsTotalWidth, headersTotalHeight, leftPinnedWidth, rightPinnedWidth]);
|
|
200
185
|
const apiPublic = {
|
|
201
|
-
resize,
|
|
202
186
|
getRootDimensions
|
|
203
187
|
};
|
|
204
188
|
const apiPrivate = {
|
|
@@ -238,7 +222,7 @@ export function useGridDimensions(apiRef, props) {
|
|
|
238
222
|
rootDimensionsRef.current = size;
|
|
239
223
|
|
|
240
224
|
// jsdom has no layout capabilities
|
|
241
|
-
const isJSDOM = /jsdom/.test(window.navigator.userAgent);
|
|
225
|
+
const isJSDOM = /jsdom|HappyDOM/.test(window.navigator.userAgent);
|
|
242
226
|
if (size.height === 0 && !errorShown.current && !props.autoHeight && !isJSDOM) {
|
|
243
227
|
logger.error(['The parent DOM element of the Data Grid has an empty height.', 'Please make sure that this element has an intrinsic height.', 'The grid displays with a height of 0px.', '', 'More details: https://mui.com/r/x-data-grid-no-dimensions.'].join('\n'));
|
|
244
228
|
errorShown.current = true;
|
package/hooks/features/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./density/index.js";
|
|
|
7
7
|
export * from "./editing/index.js";
|
|
8
8
|
export * from "./filter/index.js";
|
|
9
9
|
export * from "./focus/index.js";
|
|
10
|
+
export * from "./listView/index.js";
|
|
10
11
|
export * from "./pagination/index.js";
|
|
11
12
|
export * from "./preferencesPanel/index.js";
|
|
12
13
|
export * from "./rows/index.js";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { GridStateCommunity } from '../../../models/gridStateCommunity';
|
|
2
2
|
/**
|
|
3
|
-
* Get
|
|
3
|
+
* Get the list column definition
|
|
4
|
+
* @category List View
|
|
5
|
+
* @ignore - Do not document
|
|
4
6
|
*/
|
|
5
7
|
export declare const gridListColumnSelector: (state: GridStateCommunity) => import("./useGridListView").GridListViewState;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gridListViewSelectors';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./gridListViewSelectors.js";
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { GridLoadingOverlayVariant } from '../../../components/GridLoadingOverlay';
|
|
2
|
-
import {
|
|
3
|
-
export type GridOverlayType = keyof Pick<GridSlotsComponent, 'noRowsOverlay' | 'noResultsOverlay' | 'loadingOverlay'> | null;
|
|
3
|
+
import type { GridOverlayType } from '../../../components/base/GridOverlays';
|
|
4
4
|
/**
|
|
5
5
|
* Uses the grid state to determine which overlay to display.
|
|
6
6
|
* Returns the active overlay type and the active loading overlay variant.
|
|
7
7
|
*/
|
|
8
8
|
export declare const useGridOverlays: () => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
getOverlay: () => React.JSX.Element | null;
|
|
10
|
+
overlaysProps: {
|
|
11
|
+
overlayType: GridOverlayType;
|
|
12
|
+
loadingOverlayVariant: GridLoadingOverlayVariant | null;
|
|
13
|
+
};
|
|
11
14
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import * as React from 'react';
|
|
1
3
|
import { useGridSelector } from "../../utils/index.js";
|
|
2
4
|
import { useGridApiContext } from "../../utils/useGridApiContext.js";
|
|
3
5
|
import { useGridRootProps } from "../../utils/useGridRootProps.js";
|
|
4
6
|
import { gridExpandedRowCountSelector } from "../filter/index.js";
|
|
5
7
|
import { gridRowCountSelector, gridRowsLoadingSelector } from "../rows/index.js";
|
|
8
|
+
import { GridOverlayWrapper } from "../../../components/base/GridOverlays.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
10
|
/**
|
|
7
11
|
* Uses the grid state to determine which overlay to display.
|
|
8
12
|
* Returns the active overlay type and the active loading overlay variant.
|
|
@@ -28,8 +32,22 @@ export const useGridOverlays = () => {
|
|
|
28
32
|
overlayType = 'loadingOverlay';
|
|
29
33
|
loadingOverlayVariant = rootProps.slotProps?.loadingOverlay?.[noRows ? 'noRowsVariant' : 'variant'] || null;
|
|
30
34
|
}
|
|
31
|
-
|
|
35
|
+
const overlaysProps = {
|
|
32
36
|
overlayType,
|
|
33
37
|
loadingOverlayVariant
|
|
34
38
|
};
|
|
39
|
+
const getOverlay = () => {
|
|
40
|
+
if (!overlayType) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
const Overlay = rootProps.slots?.[overlayType];
|
|
44
|
+
const overlayProps = rootProps.slotProps?.[overlayType];
|
|
45
|
+
return /*#__PURE__*/_jsx(GridOverlayWrapper, _extends({}, overlaysProps, {
|
|
46
|
+
children: /*#__PURE__*/_jsx(Overlay, _extends({}, overlayProps))
|
|
47
|
+
}));
|
|
48
|
+
};
|
|
49
|
+
return {
|
|
50
|
+
getOverlay,
|
|
51
|
+
overlaysProps
|
|
52
|
+
};
|
|
35
53
|
};
|
|
@@ -248,11 +248,7 @@ export const useGridRowSelection = (apiRef, props) => {
|
|
|
248
248
|
/*
|
|
249
249
|
* EVENTS
|
|
250
250
|
*/
|
|
251
|
-
const isFirstRender = React.useRef(true);
|
|
252
251
|
const removeOutdatedSelection = React.useCallback((sortModelUpdated = false) => {
|
|
253
|
-
if (isFirstRender.current) {
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
252
|
const currentSelection = gridRowSelectionStateSelector(apiRef.current.state);
|
|
257
253
|
const rowsLookup = gridRowsLookupSelector(apiRef);
|
|
258
254
|
const filteredRowsLookup = gridFilteredRowsLookupSelector(apiRef);
|
|
@@ -480,9 +476,4 @@ export const useGridRowSelection = (apiRef, props) => {
|
|
|
480
476
|
React.useEffect(() => {
|
|
481
477
|
runIfRowSelectionIsEnabled(removeOutdatedSelection);
|
|
482
478
|
}, [removeOutdatedSelection, runIfRowSelectionIsEnabled]);
|
|
483
|
-
React.useEffect(() => {
|
|
484
|
-
if (isFirstRender.current) {
|
|
485
|
-
isFirstRender.current = false;
|
|
486
|
-
}
|
|
487
|
-
}, []);
|
|
488
479
|
};
|
|
@@ -6,8 +6,8 @@ import { selectedIdsLookupSelector } from "./gridRowSelectionSelector.js";
|
|
|
6
6
|
import { gridRowTreeSelector } from "../rows/gridRowsSelector.js";
|
|
7
7
|
import { createSelector } from "../../../utils/createSelector.js";
|
|
8
8
|
export const ROW_SELECTION_PROPAGATION_DEFAULT = {
|
|
9
|
-
parents:
|
|
10
|
-
descendants:
|
|
9
|
+
parents: true,
|
|
10
|
+
descendants: true
|
|
11
11
|
};
|
|
12
12
|
function getGridRowGroupSelectableDescendants(apiRef, groupId) {
|
|
13
13
|
const rowTree = gridRowTreeSelector(apiRef);
|
|
@@ -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/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
|
@@ -28,7 +28,6 @@ const heILGrid = {
|
|
|
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/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',
|
package/locales/koKR.js
CHANGED
|
@@ -28,7 +28,6 @@ const koKRGrid = {
|
|
|
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/nbNO.js
CHANGED
|
@@ -28,7 +28,6 @@ const nbNOGrid = {
|
|
|
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/nlNL.js
CHANGED
|
@@ -28,7 +28,6 @@ const nlNLGrid = {
|
|
|
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/nnNO.js
CHANGED
|
@@ -28,7 +28,6 @@ const nnNOGrid = {
|
|
|
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/plPL.js
CHANGED
|
@@ -28,7 +28,6 @@ const plPLGrid = {
|
|
|
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',
|