@mui/x-data-grid 9.6.0 → 9.8.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 +241 -2
- package/DataGrid/DataGrid.js +2 -2
- package/DataGrid/DataGrid.mjs +2 -2
- package/colDef/gridDateOperators.d.mts +1 -1
- package/colDef/gridDateOperators.d.ts +1 -1
- package/components/GridColumnHeaders.d.mts +1 -1
- package/components/GridColumnHeaders.d.ts +1 -1
- package/components/GridFooter.d.mts +1 -1
- package/components/GridFooter.d.ts +1 -1
- package/components/GridLoadingOverlay.d.mts +1 -1
- package/components/GridLoadingOverlay.d.ts +1 -1
- package/components/GridNoColumnsOverlay.d.mts +1 -1
- package/components/GridNoColumnsOverlay.d.ts +1 -1
- package/components/GridNoResultsOverlay.d.mts +1 -1
- package/components/GridNoResultsOverlay.d.ts +1 -1
- package/components/GridNoRowsOverlay.d.mts +1 -1
- package/components/GridNoRowsOverlay.d.ts +1 -1
- package/components/GridRowCount.d.mts +1 -1
- package/components/GridRowCount.d.ts +1 -1
- package/components/GridSelectedRowCount.d.mts +1 -1
- package/components/GridSelectedRowCount.d.ts +1 -1
- package/components/cell/GridActionsCell.d.mts +1 -1
- package/components/cell/GridActionsCell.d.ts +1 -1
- package/components/cell/GridCell.d.mts +1 -1
- package/components/cell/GridCell.d.ts +1 -1
- package/components/cell/GridCell.js +2 -10
- package/components/cell/GridCell.mjs +2 -10
- package/components/cell/GridFooterCell.d.mts +1 -1
- package/components/cell/GridFooterCell.d.ts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.d.mts +1 -1
- package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.js +2 -10
- package/components/columnHeaders/GridColumnGroupHeader.mjs +2 -10
- package/components/columnHeaders/GridColumnHeaderItem.js +2 -10
- package/components/columnHeaders/GridColumnHeaderItem.mjs +2 -10
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.mts +1 -1
- package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.mts +1 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.mts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
- package/components/columnsPanel/ColumnsPanelTrigger.js +2 -2
- package/components/columnsPanel/ColumnsPanelTrigger.mjs +2 -2
- package/components/containers/GridFooterContainer.d.mts +1 -1
- package/components/containers/GridFooterContainer.d.ts +1 -1
- package/components/containers/GridOverlay.d.mts +1 -1
- package/components/containers/GridOverlay.d.ts +1 -1
- package/components/containers/GridToolbarContainer.d.mts +1 -1
- package/components/containers/GridToolbarContainer.d.ts +1 -1
- package/components/export/ExportCsv.d.mts +1 -1
- package/components/export/ExportCsv.d.ts +1 -1
- package/components/export/ExportPrint.d.mts +1 -1
- package/components/export/ExportPrint.d.ts +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.mts +1 -1
- package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
- package/components/filterPanel/FilterPanelTrigger.js +2 -2
- package/components/filterPanel/FilterPanelTrigger.mjs +2 -2
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.mts +1 -1
- package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
- package/components/panel/GridColumnsPanel.d.mts +1 -1
- package/components/panel/GridColumnsPanel.d.ts +1 -1
- package/components/panel/GridPanelContent.d.mts +1 -1
- package/components/panel/GridPanelContent.d.ts +1 -1
- package/components/panel/GridPanelContext.d.mts +9 -3
- package/components/panel/GridPanelContext.d.ts +9 -3
- package/components/panel/GridPanelContext.js +40 -7
- package/components/panel/GridPanelContext.mjs +40 -7
- package/components/panel/GridPanelFooter.d.mts +1 -1
- package/components/panel/GridPanelFooter.d.ts +1 -1
- package/components/panel/GridPanelHeader.d.mts +1 -1
- package/components/panel/GridPanelHeader.d.ts +1 -1
- package/components/panel/GridPanelWrapper.d.mts +1 -1
- package/components/panel/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.js +4 -6
- package/components/panel/GridPreferencesPanel.mjs +4 -6
- package/components/panel/filterPanel/GridFilterForm.d.mts +2 -1
- package/components/panel/filterPanel/GridFilterForm.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterPanel.d.mts +2 -2
- package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -2
- package/components/quickFilter/QuickFilter.d.mts +2 -2
- package/components/quickFilter/QuickFilter.d.ts +2 -2
- package/components/quickFilter/QuickFilterClear.d.mts +2 -2
- package/components/quickFilter/QuickFilterClear.d.ts +2 -2
- package/components/quickFilter/QuickFilterControl.d.mts +2 -2
- package/components/quickFilter/QuickFilterControl.d.ts +2 -2
- package/components/quickFilter/QuickFilterTrigger.d.mts +2 -2
- package/components/quickFilter/QuickFilterTrigger.d.ts +2 -2
- package/components/toolbar/GridToolbar.d.mts +3 -3
- package/components/toolbar/GridToolbar.d.ts +3 -3
- package/components/toolbar/GridToolbarColumnsButton.js +2 -2
- package/components/toolbar/GridToolbarColumnsButton.mjs +2 -2
- package/components/toolbar/GridToolbarFilterButton.js +2 -2
- package/components/toolbar/GridToolbarFilterButton.mjs +2 -2
- package/components/toolbarV8/Toolbar.d.mts +1 -1
- package/components/toolbarV8/Toolbar.d.ts +1 -1
- package/components/toolbarV8/ToolbarButton.d.mts +1 -1
- package/components/toolbarV8/ToolbarButton.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerContent.d.mts +1 -1
- package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.d.mts +1 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +7 -1
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +7 -1
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.mts +1 -1
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.mts +2 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +2 -1
- package/hooks/features/columnResize/useGridColumnResize.js +56 -2
- package/hooks/features/columnResize/useGridColumnResize.mjs +57 -3
- package/hooks/features/columns/gridColumnsSelector.d.mts +1 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +3 -3
- package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
- package/hooks/features/editing/gridEditingSelectors.d.mts +1 -1
- package/hooks/features/editing/gridEditingSelectors.d.ts +1 -1
- package/hooks/features/editing/gridEditingSelectors.mjs +0 -1
- package/hooks/features/editing/useGridCellEditing.js +14 -7
- package/hooks/features/editing/useGridCellEditing.mjs +14 -7
- package/hooks/features/editing/utils.d.mts +1 -1
- package/hooks/features/editing/utils.d.ts +1 -1
- package/hooks/features/editing/utils.js +1 -1
- package/hooks/features/editing/utils.mjs +1 -1
- package/hooks/features/filter/gridFilterState.d.mts +1 -1
- package/hooks/features/filter/gridFilterState.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.mts +2 -2
- package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
- package/hooks/features/focus/useGridFocus.js +2 -10
- package/hooks/features/focus/useGridFocus.mjs +2 -10
- package/hooks/features/rowSelection/useGridRowSelection.js +0 -3
- package/hooks/features/rowSelection/useGridRowSelection.mjs +0 -3
- package/hooks/features/rows/gridRowSpanningUtils.d.mts +1 -1
- package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowSpanningUtils.js +1 -1
- package/hooks/features/rows/gridRowSpanningUtils.mjs +1 -1
- package/hooks/features/rows/gridRowsUtils.d.mts +1 -1
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.js +6 -4
- package/hooks/features/rows/gridRowsUtils.mjs +6 -4
- package/hooks/features/virtualization/useGridVirtualization.d.mts +1 -1
- package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualization.js +2 -2
- package/hooks/features/virtualization/useGridVirtualization.mjs +2 -2
- package/hooks/utils/useGridEvent.js +1 -1
- package/hooks/utils/useGridEvent.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/locales/arSD.d.mts +1 -1
- package/locales/arSD.d.ts +1 -1
- package/locales/beBY.d.mts +1 -1
- package/locales/beBY.d.ts +1 -1
- package/locales/bgBG.d.mts +1 -1
- package/locales/bgBG.d.ts +1 -1
- package/locales/bnBD.d.mts +1 -1
- package/locales/bnBD.d.ts +1 -1
- package/locales/caES.d.mts +1 -1
- package/locales/caES.d.ts +1 -1
- package/locales/csCZ.d.mts +1 -1
- package/locales/csCZ.d.ts +1 -1
- package/locales/daDK.d.mts +1 -1
- package/locales/daDK.d.ts +1 -1
- package/locales/deDE.d.mts +1 -1
- package/locales/deDE.d.ts +1 -1
- package/locales/elGR.d.mts +1 -1
- package/locales/elGR.d.ts +1 -1
- package/locales/enUS.d.mts +1 -1
- package/locales/enUS.d.ts +1 -1
- package/locales/esES.d.mts +1 -1
- package/locales/esES.d.ts +1 -1
- package/locales/faIR.d.mts +1 -1
- package/locales/faIR.d.ts +1 -1
- package/locales/fiFI.d.mts +1 -1
- package/locales/fiFI.d.ts +1 -1
- package/locales/frFR.d.mts +1 -1
- package/locales/frFR.d.ts +1 -1
- package/locales/heIL.d.mts +1 -1
- package/locales/heIL.d.ts +1 -1
- package/locales/huHU.d.mts +1 -1
- package/locales/huHU.d.ts +1 -1
- package/locales/hyAM.d.mts +1 -1
- package/locales/hyAM.d.ts +1 -1
- package/locales/idID.d.mts +1 -1
- package/locales/idID.d.ts +1 -1
- package/locales/isIS.d.mts +1 -1
- package/locales/isIS.d.ts +1 -1
- package/locales/itIT.d.mts +1 -1
- package/locales/itIT.d.ts +1 -1
- package/locales/jaJP.d.mts +1 -1
- package/locales/jaJP.d.ts +1 -1
- package/locales/jaJP.js +4 -5
- package/locales/jaJP.mjs +4 -5
- package/locales/koKR.d.mts +1 -1
- package/locales/koKR.d.ts +1 -1
- package/locales/nbNO.d.mts +1 -1
- package/locales/nbNO.d.ts +1 -1
- package/locales/nlNL.d.mts +1 -1
- package/locales/nlNL.d.ts +1 -1
- package/locales/nnNO.d.mts +1 -1
- package/locales/nnNO.d.ts +1 -1
- package/locales/plPL.d.mts +1 -1
- package/locales/plPL.d.ts +1 -1
- package/locales/ptBR.d.mts +1 -1
- package/locales/ptBR.d.ts +1 -1
- package/locales/ptPT.d.mts +1 -1
- package/locales/ptPT.d.ts +1 -1
- package/locales/roRO.d.mts +1 -1
- package/locales/roRO.d.ts +1 -1
- package/locales/ruRU.d.mts +1 -1
- package/locales/ruRU.d.ts +1 -1
- package/locales/skSK.d.mts +1 -1
- package/locales/skSK.d.ts +1 -1
- package/locales/svSE.d.mts +1 -1
- package/locales/svSE.d.ts +1 -1
- package/locales/thTH.d.mts +1 -1
- package/locales/thTH.d.ts +1 -1
- package/locales/trTR.d.mts +1 -1
- package/locales/trTR.d.ts +1 -1
- package/locales/ukUA.d.mts +1 -1
- package/locales/ukUA.d.ts +1 -1
- package/locales/urPK.d.mts +1 -1
- package/locales/urPK.d.ts +1 -1
- package/locales/viVN.d.mts +1 -1
- package/locales/viVN.d.ts +1 -1
- package/locales/zhCN.d.mts +1 -1
- package/locales/zhCN.d.ts +1 -1
- package/locales/zhTW.d.mts +1 -1
- package/locales/zhTW.d.ts +1 -1
- package/material/variables.d.mts +1 -1
- package/material/variables.d.ts +1 -1
- package/package.json +5 -4
- package/utils/createSelector.d.mts +1 -1
- package/utils/createSelector.d.ts +1 -1
- package/utils/focusElement.d.mts +9 -0
- package/utils/focusElement.d.ts +9 -0
- package/utils/focusElement.js +24 -0
- package/utils/focusElement.mjs +19 -0
- package/utils/isJSDOM.d.mts +0 -1
- package/utils/isJSDOM.d.ts +0 -1
- package/utils/isJSDOM.js +0 -7
- package/utils/isJSDOM.mjs +0 -1
package/locales/jaJP.mjs
CHANGED
|
@@ -4,8 +4,8 @@ const jaJPGrid = {
|
|
|
4
4
|
// Root
|
|
5
5
|
noRowsLabel: '行がありません。',
|
|
6
6
|
noResultsOverlayLabel: '結果がありません。',
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
noColumnsOverlayLabel: '列がありません。',
|
|
8
|
+
noColumnsOverlayManageColumns: '列管理',
|
|
9
9
|
// emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
|
|
10
10
|
|
|
11
11
|
// Density selector toolbar button text
|
|
@@ -50,8 +50,7 @@ const jaJPGrid = {
|
|
|
50
50
|
columnsManagementNoColumns: 'カラムなし',
|
|
51
51
|
columnsManagementShowHideAllText: 'すべて表示/非表示',
|
|
52
52
|
columnsManagementReset: 'リセット',
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
columnsManagementDeleteIconLabel: 'クリア',
|
|
55
54
|
// Filter panel text
|
|
56
55
|
filterPanelAddFilter: 'フィルター追加',
|
|
57
56
|
filterPanelRemoveAll: 'すべて削除',
|
|
@@ -114,7 +113,7 @@ const jaJPGrid = {
|
|
|
114
113
|
filterValueFalse: '偽',
|
|
115
114
|
// Column menu text
|
|
116
115
|
columnMenuLabel: 'メニュー',
|
|
117
|
-
|
|
116
|
+
columnMenuAriaLabel: columnName => `${columnName} 列メニュー`,
|
|
118
117
|
columnMenuShowColumns: '列表示',
|
|
119
118
|
columnMenuManageColumns: '列管理',
|
|
120
119
|
columnMenuFilter: 'フィルター',
|
package/locales/koKR.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const koKR: Localization;
|
package/locales/koKR.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const koKR: Localization;
|
package/locales/nbNO.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const nbNO: Localization;
|
package/locales/nbNO.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const nbNO: Localization;
|
package/locales/nlNL.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const nlNL: Localization;
|
package/locales/nlNL.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const nlNL: Localization;
|
package/locales/nnNO.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const nnNO: Localization;
|
package/locales/nnNO.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const nnNO: Localization;
|
package/locales/plPL.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const plPL: Localization;
|
package/locales/plPL.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const plPL: Localization;
|
package/locales/ptBR.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const ptBR: Localization;
|
package/locales/ptBR.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const ptBR: Localization;
|
package/locales/ptPT.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const ptPT: Localization;
|
package/locales/ptPT.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const ptPT: Localization;
|
package/locales/roRO.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const roRO: Localization;
|
package/locales/roRO.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const roRO: Localization;
|
package/locales/ruRU.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const ruRU: Localization;
|
package/locales/ruRU.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const ruRU: Localization;
|
package/locales/skSK.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const skSK: Localization;
|
package/locales/skSK.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const skSK: Localization;
|
package/locales/svSE.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const svSE: Localization;
|
package/locales/svSE.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const svSE: Localization;
|
package/locales/thTH.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const thTH: Localization;
|
package/locales/thTH.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const thTH: Localization;
|
package/locales/trTR.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const trTR: Localization;
|
package/locales/trTR.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const trTR: Localization;
|
package/locales/ukUA.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const ukUA: Localization;
|
package/locales/ukUA.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const ukUA: Localization;
|
package/locales/urPK.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const urPK: Localization;
|
package/locales/urPK.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const urPK: Localization;
|
package/locales/viVN.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const viVN: Localization;
|
package/locales/viVN.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const viVN: Localization;
|
package/locales/zhCN.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const zhCN: Localization;
|
package/locales/zhCN.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const zhCN: Localization;
|
package/locales/zhTW.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.mjs";
|
|
2
2
|
export declare const zhTW: Localization;
|
package/locales/zhTW.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Localization } from "../utils/getGridLocalization.js";
|
|
2
2
|
export declare const zhTW: Localization;
|
package/material/variables.d.mts
CHANGED
package/material/variables.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Community plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,12 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime": "^7.29.7",
|
|
41
|
-
"@
|
|
41
|
+
"@base-ui/utils": "^0.3.0",
|
|
42
|
+
"@mui/utils": "^9.1.1",
|
|
42
43
|
"clsx": "^2.1.1",
|
|
43
44
|
"prop-types": "^15.8.1",
|
|
44
45
|
"use-sync-external-store": "^1.6.0",
|
|
45
|
-
"@mui/x-internals": "^9.
|
|
46
|
-
"@mui/x-virtualizer": "
|
|
46
|
+
"@mui/x-internals": "^9.8.0",
|
|
47
|
+
"@mui/x-virtualizer": "0.5.1"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
50
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { CreateSelectorFunction } from '@mui/x-internals/store';
|
|
3
3
|
export interface OutputSelector<State, Args, Result> {
|
|
4
4
|
(apiRef: RefObject<{
|
|
5
5
|
state: State;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { CreateSelectorFunction } from '@mui/x-internals/store';
|
|
3
3
|
export interface OutputSelector<State, Args, Result> {
|
|
4
4
|
(apiRef: RefObject<{
|
|
5
5
|
state: State;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridScrollApi } from "../models/api/gridScrollApi.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* Focuses an element while preserving the grid scroll position.
|
|
5
|
+
*
|
|
6
|
+
* Uses the native `preventScroll` focus option when supported, and otherwise
|
|
7
|
+
* restores the scroll position manually after focusing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function focusElement<Api extends GridScrollApi>(element: HTMLElement, apiRef: RefObject<Api>): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RefObject } from '@mui/x-internals/types';
|
|
2
|
+
import type { GridScrollApi } from "../models/api/gridScrollApi.js";
|
|
3
|
+
/**
|
|
4
|
+
* Focuses an element while preserving the grid scroll position.
|
|
5
|
+
*
|
|
6
|
+
* Uses the native `preventScroll` focus option when supported, and otherwise
|
|
7
|
+
* restores the scroll position manually after focusing.
|
|
8
|
+
*/
|
|
9
|
+
export declare function focusElement<Api extends GridScrollApi>(element: HTMLElement, apiRef: RefObject<Api>): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.focusElement = focusElement;
|
|
7
|
+
var _doesSupportPreventScroll = require("./doesSupportPreventScroll");
|
|
8
|
+
/**
|
|
9
|
+
* Focuses an element while preserving the grid scroll position.
|
|
10
|
+
*
|
|
11
|
+
* Uses the native `preventScroll` focus option when supported, and otherwise
|
|
12
|
+
* restores the scroll position manually after focusing.
|
|
13
|
+
*/
|
|
14
|
+
function focusElement(element, apiRef) {
|
|
15
|
+
if ((0, _doesSupportPreventScroll.doesSupportPreventScroll)()) {
|
|
16
|
+
element.focus({
|
|
17
|
+
preventScroll: true
|
|
18
|
+
});
|
|
19
|
+
} else {
|
|
20
|
+
const scrollPosition = apiRef.current.getScrollPosition();
|
|
21
|
+
element.focus();
|
|
22
|
+
apiRef.current.scroll(scrollPosition);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { doesSupportPreventScroll } from "./doesSupportPreventScroll.mjs";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Focuses an element while preserving the grid scroll position.
|
|
5
|
+
*
|
|
6
|
+
* Uses the native `preventScroll` focus option when supported, and otherwise
|
|
7
|
+
* restores the scroll position manually after focusing.
|
|
8
|
+
*/
|
|
9
|
+
export function focusElement(element, apiRef) {
|
|
10
|
+
if (doesSupportPreventScroll()) {
|
|
11
|
+
element.focus({
|
|
12
|
+
preventScroll: true
|
|
13
|
+
});
|
|
14
|
+
} else {
|
|
15
|
+
const scrollPosition = apiRef.current.getScrollPosition();
|
|
16
|
+
element.focus();
|
|
17
|
+
apiRef.current.scroll(scrollPosition);
|
|
18
|
+
}
|
|
19
|
+
}
|
package/utils/isJSDOM.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isJSDOM: boolean;
|
package/utils/isJSDOM.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isJSDOM: boolean;
|
package/utils/isJSDOM.js
DELETED
package/utils/isJSDOM.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const isJSDOM = typeof window !== 'undefined' && /jsdom|HappyDOM/.test(window.navigator.userAgent);
|