@mui/x-data-grid 9.6.0 → 9.7.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.
Files changed (233) hide show
  1. package/CHANGELOG.md +111 -1
  2. package/DataGrid/DataGrid.js +2 -2
  3. package/DataGrid/DataGrid.mjs +2 -2
  4. package/colDef/gridDateOperators.d.mts +1 -1
  5. package/colDef/gridDateOperators.d.ts +1 -1
  6. package/components/GridColumnHeaders.d.mts +1 -1
  7. package/components/GridColumnHeaders.d.ts +1 -1
  8. package/components/GridFooter.d.mts +1 -1
  9. package/components/GridFooter.d.ts +1 -1
  10. package/components/GridLoadingOverlay.d.mts +1 -1
  11. package/components/GridLoadingOverlay.d.ts +1 -1
  12. package/components/GridNoColumnsOverlay.d.mts +1 -1
  13. package/components/GridNoColumnsOverlay.d.ts +1 -1
  14. package/components/GridNoResultsOverlay.d.mts +1 -1
  15. package/components/GridNoResultsOverlay.d.ts +1 -1
  16. package/components/GridNoRowsOverlay.d.mts +1 -1
  17. package/components/GridNoRowsOverlay.d.ts +1 -1
  18. package/components/GridRowCount.d.mts +1 -1
  19. package/components/GridRowCount.d.ts +1 -1
  20. package/components/GridSelectedRowCount.d.mts +1 -1
  21. package/components/GridSelectedRowCount.d.ts +1 -1
  22. package/components/cell/GridActionsCell.d.mts +1 -1
  23. package/components/cell/GridActionsCell.d.ts +1 -1
  24. package/components/cell/GridCell.d.mts +1 -1
  25. package/components/cell/GridCell.d.ts +1 -1
  26. package/components/cell/GridCell.js +2 -10
  27. package/components/cell/GridCell.mjs +2 -10
  28. package/components/cell/GridFooterCell.d.mts +1 -1
  29. package/components/cell/GridFooterCell.d.ts +1 -1
  30. package/components/columnHeaders/GridBaseColumnHeaders.d.mts +1 -1
  31. package/components/columnHeaders/GridBaseColumnHeaders.d.ts +1 -1
  32. package/components/columnHeaders/GridColumnGroupHeader.js +2 -10
  33. package/components/columnHeaders/GridColumnGroupHeader.mjs +2 -10
  34. package/components/columnHeaders/GridColumnHeaderItem.js +2 -10
  35. package/components/columnHeaders/GridColumnHeaderItem.mjs +2 -10
  36. package/components/columnHeaders/GridColumnHeaderSortIcon.d.mts +1 -1
  37. package/components/columnHeaders/GridColumnHeaderSortIcon.d.ts +1 -1
  38. package/components/columnHeaders/GridGenericColumnHeaderItem.d.mts +1 -1
  39. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +1 -1
  40. package/components/columnsPanel/ColumnsPanelTrigger.d.mts +1 -1
  41. package/components/columnsPanel/ColumnsPanelTrigger.d.ts +1 -1
  42. package/components/columnsPanel/ColumnsPanelTrigger.js +2 -2
  43. package/components/columnsPanel/ColumnsPanelTrigger.mjs +2 -2
  44. package/components/containers/GridFooterContainer.d.mts +1 -1
  45. package/components/containers/GridFooterContainer.d.ts +1 -1
  46. package/components/containers/GridOverlay.d.mts +1 -1
  47. package/components/containers/GridOverlay.d.ts +1 -1
  48. package/components/containers/GridToolbarContainer.d.mts +1 -1
  49. package/components/containers/GridToolbarContainer.d.ts +1 -1
  50. package/components/export/ExportCsv.d.mts +1 -1
  51. package/components/export/ExportCsv.d.ts +1 -1
  52. package/components/export/ExportPrint.d.mts +1 -1
  53. package/components/export/ExportPrint.d.ts +1 -1
  54. package/components/filterPanel/FilterPanelTrigger.d.mts +1 -1
  55. package/components/filterPanel/FilterPanelTrigger.d.ts +1 -1
  56. package/components/filterPanel/FilterPanelTrigger.js +2 -2
  57. package/components/filterPanel/FilterPanelTrigger.mjs +2 -2
  58. package/components/menu/columnMenu/GridColumnHeaderMenu.d.mts +1 -1
  59. package/components/menu/columnMenu/GridColumnHeaderMenu.d.ts +1 -1
  60. package/components/panel/GridColumnsPanel.d.mts +1 -1
  61. package/components/panel/GridColumnsPanel.d.ts +1 -1
  62. package/components/panel/GridPanelContent.d.mts +1 -1
  63. package/components/panel/GridPanelContent.d.ts +1 -1
  64. package/components/panel/GridPanelContext.d.mts +9 -3
  65. package/components/panel/GridPanelContext.d.ts +9 -3
  66. package/components/panel/GridPanelContext.js +40 -7
  67. package/components/panel/GridPanelContext.mjs +40 -7
  68. package/components/panel/GridPanelFooter.d.mts +1 -1
  69. package/components/panel/GridPanelFooter.d.ts +1 -1
  70. package/components/panel/GridPanelHeader.d.mts +1 -1
  71. package/components/panel/GridPanelHeader.d.ts +1 -1
  72. package/components/panel/GridPanelWrapper.d.mts +1 -1
  73. package/components/panel/GridPanelWrapper.d.ts +1 -1
  74. package/components/panel/GridPreferencesPanel.js +4 -6
  75. package/components/panel/GridPreferencesPanel.mjs +4 -6
  76. package/components/panel/filterPanel/GridFilterForm.d.mts +2 -1
  77. package/components/panel/filterPanel/GridFilterForm.d.ts +2 -1
  78. package/components/panel/filterPanel/GridFilterPanel.d.mts +2 -2
  79. package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -2
  80. package/components/quickFilter/QuickFilter.d.mts +2 -2
  81. package/components/quickFilter/QuickFilter.d.ts +2 -2
  82. package/components/quickFilter/QuickFilterClear.d.mts +2 -2
  83. package/components/quickFilter/QuickFilterClear.d.ts +2 -2
  84. package/components/quickFilter/QuickFilterControl.d.mts +2 -2
  85. package/components/quickFilter/QuickFilterControl.d.ts +2 -2
  86. package/components/quickFilter/QuickFilterTrigger.d.mts +2 -2
  87. package/components/quickFilter/QuickFilterTrigger.d.ts +2 -2
  88. package/components/toolbar/GridToolbar.d.mts +3 -3
  89. package/components/toolbar/GridToolbar.d.ts +3 -3
  90. package/components/toolbar/GridToolbarColumnsButton.js +2 -2
  91. package/components/toolbar/GridToolbarColumnsButton.mjs +2 -2
  92. package/components/toolbar/GridToolbarFilterButton.js +2 -2
  93. package/components/toolbar/GridToolbarFilterButton.mjs +2 -2
  94. package/components/toolbarV8/Toolbar.d.mts +1 -1
  95. package/components/toolbarV8/Toolbar.d.ts +1 -1
  96. package/components/toolbarV8/ToolbarButton.d.mts +1 -1
  97. package/components/toolbarV8/ToolbarButton.d.ts +1 -1
  98. package/components/virtualization/GridVirtualScrollerContent.d.mts +1 -1
  99. package/components/virtualization/GridVirtualScrollerContent.d.ts +1 -1
  100. package/components/virtualization/GridVirtualScrollerRenderZone.d.mts +1 -1
  101. package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +1 -1
  102. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +7 -1
  103. package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.mjs +7 -1
  104. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.mts +1 -1
  105. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +1 -1
  106. package/hooks/features/columnHeaders/useGridColumnHeaders.d.mts +2 -1
  107. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +2 -1
  108. package/hooks/features/columnResize/useGridColumnResize.js +56 -2
  109. package/hooks/features/columnResize/useGridColumnResize.mjs +57 -3
  110. package/hooks/features/columns/gridColumnsSelector.d.mts +1 -1
  111. package/hooks/features/columns/gridColumnsSelector.d.ts +1 -1
  112. package/hooks/features/dimensions/useGridDimensions.js +3 -3
  113. package/hooks/features/dimensions/useGridDimensions.mjs +3 -3
  114. package/hooks/features/editing/gridEditingSelectors.d.mts +1 -1
  115. package/hooks/features/editing/gridEditingSelectors.d.ts +1 -1
  116. package/hooks/features/editing/gridEditingSelectors.mjs +0 -1
  117. package/hooks/features/editing/utils.d.mts +1 -1
  118. package/hooks/features/editing/utils.d.ts +1 -1
  119. package/hooks/features/editing/utils.js +1 -1
  120. package/hooks/features/editing/utils.mjs +1 -1
  121. package/hooks/features/filter/gridFilterState.d.mts +1 -1
  122. package/hooks/features/filter/gridFilterState.d.ts +1 -1
  123. package/hooks/features/filter/gridFilterUtils.d.mts +2 -2
  124. package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
  125. package/hooks/features/focus/useGridFocus.js +2 -10
  126. package/hooks/features/focus/useGridFocus.mjs +2 -10
  127. package/hooks/features/rowSelection/useGridRowSelection.js +0 -3
  128. package/hooks/features/rowSelection/useGridRowSelection.mjs +0 -3
  129. package/hooks/features/rows/gridRowSpanningUtils.d.mts +1 -1
  130. package/hooks/features/rows/gridRowSpanningUtils.d.ts +1 -1
  131. package/hooks/features/rows/gridRowSpanningUtils.js +1 -1
  132. package/hooks/features/rows/gridRowSpanningUtils.mjs +1 -1
  133. package/hooks/features/rows/gridRowsUtils.d.mts +1 -1
  134. package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
  135. package/hooks/features/rows/gridRowsUtils.js +5 -3
  136. package/hooks/features/rows/gridRowsUtils.mjs +5 -3
  137. package/hooks/features/virtualization/useGridVirtualization.d.mts +1 -1
  138. package/hooks/features/virtualization/useGridVirtualization.d.ts +1 -1
  139. package/hooks/features/virtualization/useGridVirtualization.js +2 -2
  140. package/hooks/features/virtualization/useGridVirtualization.mjs +2 -2
  141. package/index.js +1 -1
  142. package/index.mjs +1 -1
  143. package/locales/arSD.d.mts +1 -1
  144. package/locales/arSD.d.ts +1 -1
  145. package/locales/beBY.d.mts +1 -1
  146. package/locales/beBY.d.ts +1 -1
  147. package/locales/bgBG.d.mts +1 -1
  148. package/locales/bgBG.d.ts +1 -1
  149. package/locales/bnBD.d.mts +1 -1
  150. package/locales/bnBD.d.ts +1 -1
  151. package/locales/caES.d.mts +1 -1
  152. package/locales/caES.d.ts +1 -1
  153. package/locales/csCZ.d.mts +1 -1
  154. package/locales/csCZ.d.ts +1 -1
  155. package/locales/daDK.d.mts +1 -1
  156. package/locales/daDK.d.ts +1 -1
  157. package/locales/deDE.d.mts +1 -1
  158. package/locales/deDE.d.ts +1 -1
  159. package/locales/elGR.d.mts +1 -1
  160. package/locales/elGR.d.ts +1 -1
  161. package/locales/enUS.d.mts +1 -1
  162. package/locales/enUS.d.ts +1 -1
  163. package/locales/esES.d.mts +1 -1
  164. package/locales/esES.d.ts +1 -1
  165. package/locales/faIR.d.mts +1 -1
  166. package/locales/faIR.d.ts +1 -1
  167. package/locales/fiFI.d.mts +1 -1
  168. package/locales/fiFI.d.ts +1 -1
  169. package/locales/frFR.d.mts +1 -1
  170. package/locales/frFR.d.ts +1 -1
  171. package/locales/heIL.d.mts +1 -1
  172. package/locales/heIL.d.ts +1 -1
  173. package/locales/huHU.d.mts +1 -1
  174. package/locales/huHU.d.ts +1 -1
  175. package/locales/hyAM.d.mts +1 -1
  176. package/locales/hyAM.d.ts +1 -1
  177. package/locales/idID.d.mts +1 -1
  178. package/locales/idID.d.ts +1 -1
  179. package/locales/isIS.d.mts +1 -1
  180. package/locales/isIS.d.ts +1 -1
  181. package/locales/itIT.d.mts +1 -1
  182. package/locales/itIT.d.ts +1 -1
  183. package/locales/jaJP.d.mts +1 -1
  184. package/locales/jaJP.d.ts +1 -1
  185. package/locales/koKR.d.mts +1 -1
  186. package/locales/koKR.d.ts +1 -1
  187. package/locales/nbNO.d.mts +1 -1
  188. package/locales/nbNO.d.ts +1 -1
  189. package/locales/nlNL.d.mts +1 -1
  190. package/locales/nlNL.d.ts +1 -1
  191. package/locales/nnNO.d.mts +1 -1
  192. package/locales/nnNO.d.ts +1 -1
  193. package/locales/plPL.d.mts +1 -1
  194. package/locales/plPL.d.ts +1 -1
  195. package/locales/ptBR.d.mts +1 -1
  196. package/locales/ptBR.d.ts +1 -1
  197. package/locales/ptPT.d.mts +1 -1
  198. package/locales/ptPT.d.ts +1 -1
  199. package/locales/roRO.d.mts +1 -1
  200. package/locales/roRO.d.ts +1 -1
  201. package/locales/ruRU.d.mts +1 -1
  202. package/locales/ruRU.d.ts +1 -1
  203. package/locales/skSK.d.mts +1 -1
  204. package/locales/skSK.d.ts +1 -1
  205. package/locales/svSE.d.mts +1 -1
  206. package/locales/svSE.d.ts +1 -1
  207. package/locales/thTH.d.mts +1 -1
  208. package/locales/thTH.d.ts +1 -1
  209. package/locales/trTR.d.mts +1 -1
  210. package/locales/trTR.d.ts +1 -1
  211. package/locales/ukUA.d.mts +1 -1
  212. package/locales/ukUA.d.ts +1 -1
  213. package/locales/urPK.d.mts +1 -1
  214. package/locales/urPK.d.ts +1 -1
  215. package/locales/viVN.d.mts +1 -1
  216. package/locales/viVN.d.ts +1 -1
  217. package/locales/zhCN.d.mts +1 -1
  218. package/locales/zhCN.d.ts +1 -1
  219. package/locales/zhTW.d.mts +1 -1
  220. package/locales/zhTW.d.ts +1 -1
  221. package/material/variables.d.mts +1 -1
  222. package/material/variables.d.ts +1 -1
  223. package/package.json +5 -4
  224. package/utils/createSelector.d.mts +1 -1
  225. package/utils/createSelector.d.ts +1 -1
  226. package/utils/focusElement.d.mts +9 -0
  227. package/utils/focusElement.d.ts +9 -0
  228. package/utils/focusElement.js +24 -0
  229. package/utils/focusElement.mjs +19 -0
  230. package/utils/isJSDOM.d.mts +0 -1
  231. package/utils/isJSDOM.d.ts +0 -1
  232. package/utils/isJSDOM.js +0 -7
  233. package/utils/isJSDOM.mjs +0 -1
@@ -50,9 +50,11 @@ const getRowIdFromRowModel = (rowModel, getRowId, detailErrorMessage) => {
50
50
  };
51
51
  exports.getRowIdFromRowModel = getRowIdFromRowModel;
52
52
  const getRowValue = (row, colDef, apiRef) => {
53
- const field = colDef.field;
54
- if (!colDef || !colDef.valueGetter) {
55
- return row[field];
53
+ if (!colDef) {
54
+ return undefined;
55
+ }
56
+ if (!colDef.valueGetter) {
57
+ return row[colDef.field];
56
58
  }
57
59
  const value = row[colDef.field];
58
60
  return colDef.valueGetter(value, row, colDef, apiRef);
@@ -38,9 +38,11 @@ export const getRowIdFromRowModel = (rowModel, getRowId, detailErrorMessage) =>
38
38
  return id;
39
39
  };
40
40
  export const getRowValue = (row, colDef, apiRef) => {
41
- const field = colDef.field;
42
- if (!colDef || !colDef.valueGetter) {
43
- return row[field];
41
+ if (!colDef) {
42
+ return undefined;
43
+ }
44
+ if (!colDef.valueGetter) {
45
+ return row[colDef.field];
44
46
  }
45
47
  const value = row[colDef.field];
46
48
  return colDef.valueGetter(value, row, colDef, apiRef);
@@ -1,5 +1,5 @@
1
1
  import type { RefObject } from '@mui/x-internals/types';
2
- import { type Virtualization, type LayoutDataGrid } from '@mui/x-virtualizer';
2
+ import type { Virtualization, LayoutDataGrid } from '@mui/x-virtualizer';
3
3
  import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.mjs";
4
4
  import type { GridStateInitializer } from "../../utils/useGridInitializeState.mjs";
5
5
  import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.mjs";
@@ -1,5 +1,5 @@
1
1
  import type { RefObject } from '@mui/x-internals/types';
2
- import { type Virtualization, type LayoutDataGrid } from '@mui/x-virtualizer';
2
+ import type { Virtualization, LayoutDataGrid } from '@mui/x-virtualizer';
3
3
  import type { GridPrivateApiCommunity } from "../../../models/api/gridApiCommunity.js";
4
4
  import type { GridStateInitializer } from "../../utils/useGridInitializeState.js";
5
5
  import type { DataGridProcessedProps } from "../../../models/props/DataGridProps.js";
@@ -11,10 +11,10 @@ exports.virtualizationStateInitializer = void 0;
11
11
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
  var _xVirtualizer = require("@mui/x-virtualizer");
14
- var _isJSDOM = require("../../../utils/isJSDOM");
14
+ var _platform = require("@base-ui/utils/platform");
15
15
  var _useGridApiMethod = require("../../utils/useGridApiMethod");
16
16
  var _utils = require("../../utils");
17
- const HAS_LAYOUT = !_isJSDOM.isJSDOM;
17
+ const HAS_LAYOUT = !_platform.platform.env.jsdom;
18
18
 
19
19
  // HACK: Typescript doesn't use the alias name ("GridVirtualizationState") and changes
20
20
  // the autogenerated docs result, but this would otherwise be just:
@@ -3,10 +3,10 @@
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
5
  import { EMPTY_RENDER_CONTEXT } from '@mui/x-virtualizer';
6
- import { isJSDOM } from "../../../utils/isJSDOM.mjs";
6
+ import { platform } from '@base-ui/utils/platform';
7
7
  import { useGridApiMethod } from "../../utils/useGridApiMethod.mjs";
8
8
  import { useGridEventPriority } from "../../utils/index.mjs";
9
- const HAS_LAYOUT = !isJSDOM;
9
+ const HAS_LAYOUT = !platform.env.jsdom;
10
10
 
11
11
  // HACK: Typescript doesn't use the alias name ("GridVirtualizationState") and changes
12
12
  // the autogenerated docs result, but this would otherwise be just:
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v9.6.0
2
+ * @mui/x-data-grid v9.7.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v9.6.0
2
+ * @mui/x-data-grid v9.7.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const arSD: Localization;
package/locales/arSD.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const arSD: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const beBY: Localization;
package/locales/beBY.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const beBY: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const bgBG: Localization;
package/locales/bgBG.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const bgBG: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const bnBD: Localization;
package/locales/bnBD.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const bnBD: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const caES: Localization;
package/locales/caES.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const caES: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const csCZ: Localization;
package/locales/csCZ.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const csCZ: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const daDK: Localization;
package/locales/daDK.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const daDK: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const deDE: Localization;
package/locales/deDE.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const deDE: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const elGR: Localization;
package/locales/elGR.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const elGR: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const enUS: Localization;
package/locales/enUS.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const enUS: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const esES: Localization;
package/locales/esES.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const esES: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const faIR: Localization;
package/locales/faIR.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const faIR: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const fiFI: Localization;
package/locales/fiFI.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const fiFI: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const frFR: Localization;
package/locales/frFR.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const frFR: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const heIL: Localization;
package/locales/heIL.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const heIL: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const huHU: Localization;
package/locales/huHU.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const huHU: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const hyAM: Localization;
package/locales/hyAM.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const hyAM: Localization;
@@ -1,4 +1,4 @@
1
1
  import type { GridLocaleText } from "../models/api/gridLocaleTextApi.mjs";
2
- import { type Localization } from "../utils/getGridLocalization.mjs";
2
+ import type { Localization } from "../utils/getGridLocalization.mjs";
3
3
  export declare const idIDGrid: Partial<GridLocaleText>;
4
4
  export declare const idID: Localization;
package/locales/idID.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import type { GridLocaleText } from "../models/api/gridLocaleTextApi.js";
2
- import { type Localization } from "../utils/getGridLocalization.js";
2
+ import type { Localization } from "../utils/getGridLocalization.js";
3
3
  export declare const idIDGrid: Partial<GridLocaleText>;
4
4
  export declare const idID: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const isIS: Localization;
package/locales/isIS.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const isIS: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const itIT: Localization;
package/locales/itIT.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const itIT: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
1
+ import type { Localization } from "../utils/getGridLocalization.mjs";
2
2
  export declare const jaJP: Localization;
package/locales/jaJP.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const jaJP: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const koKR: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const nbNO: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const nlNL: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const nnNO: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const plPL: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const ptBR: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const ptPT: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const roRO: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const ruRU: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const skSK: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const svSE: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const thTH: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const trTR: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const ukUA: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const urPK: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const viVN: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const zhCN: Localization;
@@ -1,2 +1,2 @@
1
- import { type Localization } from "../utils/getGridLocalization.mjs";
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 { type Localization } from "../utils/getGridLocalization.js";
1
+ import type { Localization } from "../utils/getGridLocalization.js";
2
2
  export declare const zhTW: Localization;
@@ -1,4 +1,4 @@
1
- import { type GridCSSVariablesInterface } from "../constants/cssVariables.mjs";
1
+ import type { GridCSSVariablesInterface } from "../constants/cssVariables.mjs";
2
2
  export declare function useMaterialCSSVariables(): {
3
3
  id: string;
4
4
  variables: GridCSSVariablesInterface;
@@ -1,4 +1,4 @@
1
- import { type GridCSSVariablesInterface } from "../constants/cssVariables.js";
1
+ import type { GridCSSVariablesInterface } from "../constants/cssVariables.js";
2
2
  export declare function useMaterialCSSVariables(): {
3
3
  id: string;
4
4
  variables: GridCSSVariablesInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "9.6.0",
3
+ "version": "9.7.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
- "@mui/utils": "^9.0.1",
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.6.0",
46
- "@mui/x-virtualizer": "9.0.0-alpha.10"
46
+ "@mui/x-internals": "^9.7.0",
47
+ "@mui/x-virtualizer": "0.5.0"
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 { type CreateSelectorFunction } from '@mui/x-internals/store';
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 { type CreateSelectorFunction } from '@mui/x-internals/store';
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;