@mui/x-data-grid-premium 6.0.3 → 6.0.4

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 (33) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/components/GridPremiumColumnMenu.d.ts +8 -8
  3. package/components/GridPremiumColumnMenu.js +7 -7
  4. package/components/reexports.d.ts +1 -1
  5. package/components/reexports.js +1 -1
  6. package/hooks/features/aggregation/useGridAggregationPreProcessors.js +1 -1
  7. package/hooks/features/aggregation/wrapColumnWithAggregation.js +2 -2
  8. package/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  9. package/index.d.ts +1 -1
  10. package/index.js +2 -2
  11. package/legacy/components/GridPremiumColumnMenu.js +7 -7
  12. package/legacy/components/reexports.js +1 -1
  13. package/legacy/hooks/features/aggregation/useGridAggregationPreProcessors.js +1 -1
  14. package/legacy/hooks/features/aggregation/wrapColumnWithAggregation.js +2 -2
  15. package/legacy/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  16. package/legacy/index.js +2 -2
  17. package/legacy/utils/releaseInfo.js +1 -1
  18. package/modern/components/GridPremiumColumnMenu.js +7 -7
  19. package/modern/components/reexports.js +1 -1
  20. package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +1 -1
  21. package/modern/hooks/features/aggregation/wrapColumnWithAggregation.js +1 -1
  22. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  23. package/modern/index.js +2 -2
  24. package/modern/utils/releaseInfo.js +1 -1
  25. package/node/components/GridPremiumColumnMenu.js +9 -9
  26. package/node/components/reexports.js +4 -4
  27. package/node/hooks/features/aggregation/useGridAggregationPreProcessors.js +1 -1
  28. package/node/hooks/features/aggregation/wrapColumnWithAggregation.js +1 -1
  29. package/node/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  30. package/node/index.js +7 -7
  31. package/node/utils/releaseInfo.js +1 -1
  32. package/package.json +3 -3
  33. package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,67 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 6.0.4
7
+
8
+ _Mar 30, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Danish (da-DK), and improve Norwegian (nb-NO), Spanish (es-ES), and Swedish (sv-SE) locales
13
+ - 🐞 Bugfixes
14
+ - 📚 Documentation improvements
15
+
16
+ ### `@mui/x-data-grid@v6.0.4` / `@mui/x-data-grid-pro@v6.0.4` / `@mui/x-data-grid-premium@v6.0.4`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Fix column header tooltip not showing when the title is truncated (#8433) @rohitnatesh
21
+ - [DataGrid] Fix filter model buttons' display condition (#8415) @MBilalShafi
22
+ - [DataGrid] Fix infinite rerender in a flex parent (#8436) @cherniavskii
23
+ - [DataGrid] Prevent reopening column menu when clicking in the button while it is open (#8286) @tanuj-22
24
+ - [DataGrid] Rename `components` by `slots` in column menu API (#7999) @MBilalShafi
25
+ - [DataGrid] Remove hardcoded CSS classes' usages (#8444) @MBilalShafi
26
+ - [DataGridPremium] Fix aggregation initial state causing issue with quick filter (#8441) @MBilalShafi
27
+ - [l10n] Improve Danish (da-DK) locale (#8368) @BossElijah
28
+ - [l10n] Improve Danish (da-DK) locale (#8378) @BossElijah
29
+ - [l10n] Improve Norwegian (nb-NO) locale (#8367) @BossElijah
30
+ - [l10n] Improve Norwegian (nb-NO) locale (#8409) @BossElijah
31
+ - [l10n] Improve Spanish (es-ES) locale (#8420) @martjanz
32
+ - [l10n] Improve Swedish (sv-SE) locale (#8381) @BossElijah
33
+
34
+ ### `@mui/x-date-pickers@v6.0.4` / `@mui/x-date-pickers-pro@v6.0.4`
35
+
36
+ #### Changes
37
+
38
+ - [fields] Add missing tokens to `AdapterDateFnsJalali` (#8402) @flaviendelangle
39
+ - [fields] Clean the active date manager (#8370) @flaviendelangle
40
+ - [fields] Cleanup `useFieldState` (#8292) @flaviendelangle
41
+ - [fields] Only add RTL characters when needed (#8325) @flaviendelangle
42
+ - [pickers] Add support for single input fields in range pickers (#7927) @flaviendelangle
43
+ - [pickers] Allows non token characters in format (#8256) @alexfauquette
44
+ - [pickers] Avoid root imports and move public models to the models folder (#8337) @flaviendelangle
45
+ - [pickers] Update `view` when `views` or `openTo` changes (#8361) @LukasTy
46
+ - [l10n] Improve Norwegian (nb-NO) locale (#8382) @BossElijah
47
+ - [l10n] Add Danish (da-DK) locale (#8379) @BossElijah
48
+ - [l10n] Improve Swedish (sv-SE) locale (#8381) @BossElijah
49
+
50
+ ### `@mui/x-codemod@v6.0.4`
51
+
52
+ #### Changes
53
+
54
+ - [codemod] Fix `remove-stabilized-experimentalFeatures` codemod (#8289) @alexfauquette
55
+
56
+ ### Docs
57
+
58
+ - [docs] Fix `GridCellParams` signature in migration guide (#8427) @cherniavskii
59
+ - [docs] Fix "Custom field" demos responsive styles (#8408) @LukasTy
60
+ - [docs] Remove `label` from demos where it reduces clarity (#8416) @LukasTy
61
+ - [docs] Update slots' references in Data Grid migration guide (#8159) @MBilalShafi
62
+
63
+ ### Core
64
+
65
+ - [charts] Work on typing (#8421) @flaviendelangle
66
+
6
67
  ## 6.0.3
7
68
 
8
69
  _Mar 23, 2023_
@@ -2,15 +2,15 @@ import * as React from 'react';
2
2
  import { GridColumnMenuProps, GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
3
3
  import { GridColumnMenuAggregationItem } from './GridColumnMenuAggregationItem';
4
4
  export declare function GridColumnMenuGroupingItem(props: GridColumnMenuItemProps): JSX.Element | null;
5
- export declare const GRID_COLUMN_MENU_COMPONENTS_PREMIUM: {
6
- ColumnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
7
- ColumnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
8
- ColumnMenuPinningItem: typeof import("@mui/x-data-grid-pro/components/GridColumnMenuPinningItem").GridColumnMenuPinningItem;
9
- ColumnMenuSortItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuSortItem").GridColumnMenuSortItem;
10
- ColumnMenuFilterItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem").GridColumnMenuFilterItem;
11
- ColumnMenuColumnsItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem").GridColumnMenuColumnsItem;
5
+ export declare const GRID_COLUMN_MENU_SLOTS_PREMIUM: {
6
+ columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
7
+ columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
8
+ columnMenuPinningItem: typeof import("@mui/x-data-grid-pro/components/GridColumnMenuPinningItem").GridColumnMenuPinningItem;
9
+ columnMenuSortItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuSortItem").GridColumnMenuSortItem;
10
+ columnMenuFilterItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem").GridColumnMenuFilterItem;
11
+ columnMenuColumnsItem: typeof import("@mui/x-data-grid/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem").GridColumnMenuColumnsItem;
12
12
  };
13
- export declare const GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM: {
13
+ export declare const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM: {
14
14
  columnMenuAggregationItem: {
15
15
  displayOrder: number;
16
16
  };
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { GridGenericColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS } from '@mui/x-data-grid-pro';
4
+ import { GridGenericColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from '@mui/x-data-grid-pro';
5
5
  import { GridColumnMenuAggregationItem } from './GridColumnMenuAggregationItem';
6
6
  import { isGroupingColumn } from '../hooks/features/rowGrouping';
7
7
  import { GridColumnMenuRowGroupItem } from './GridColumnMenuRowGroupItem';
@@ -19,11 +19,11 @@ export function GridColumnMenuGroupingItem(props) {
19
19
  }
20
20
  return null;
21
21
  }
22
- export const GRID_COLUMN_MENU_COMPONENTS_PREMIUM = _extends({}, GRID_COLUMN_MENU_COMPONENTS, {
23
- ColumnMenuAggregationItem: GridColumnMenuAggregationItem,
24
- ColumnMenuGroupingItem: GridColumnMenuGroupingItem
22
+ export const GRID_COLUMN_MENU_SLOTS_PREMIUM = _extends({}, GRID_COLUMN_MENU_SLOTS, {
23
+ columnMenuAggregationItem: GridColumnMenuAggregationItem,
24
+ columnMenuGroupingItem: GridColumnMenuGroupingItem
25
25
  });
26
- export const GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = _extends({}, GRID_COLUMN_MENU_COMPONENTS_PROPS, {
26
+ export const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = _extends({}, GRID_COLUMN_MENU_SLOT_PROPS, {
27
27
  columnMenuAggregationItem: {
28
28
  displayOrder: 23
29
29
  },
@@ -35,8 +35,8 @@ const GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremium
35
35
  return /*#__PURE__*/_jsx(GridGenericColumnMenu, _extends({
36
36
  ref: ref
37
37
  }, props, {
38
- defaultComponents: GRID_COLUMN_MENU_COMPONENTS_PREMIUM,
39
- defaultComponentsProps: GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM
38
+ defaultSlots: GRID_COLUMN_MENU_SLOTS_PREMIUM,
39
+ defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM
40
40
  }));
41
41
  });
42
42
  process.env.NODE_ENV !== "production" ? GridPremiumColumnMenu.propTypes = {
@@ -1 +1 @@
1
- export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS_PROPS, } from './GridPremiumColumnMenu';
1
+ export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PREMIUM as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM as GRID_COLUMN_MENU_SLOT_PROPS, } from './GridPremiumColumnMenu';
@@ -1 +1 @@
1
- export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS_PROPS } from './GridPremiumColumnMenu';
1
+ export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PREMIUM as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM as GRID_COLUMN_MENU_SLOT_PROPS } from './GridPremiumColumnMenu';
@@ -68,7 +68,7 @@ export const useGridAggregationPreProcessors = (apiRef, props) => {
68
68
  if (availableAggregationFunctions.length === 0) {
69
69
  return columnMenuItems;
70
70
  }
71
- return [...columnMenuItems, 'ColumnMenuAggregationItem'];
71
+ return [...columnMenuItems, 'columnMenuAggregationItem'];
72
72
  }, [props.aggregationFunctions, props.disableAggregation]);
73
73
  const stateExportPreProcessing = React.useCallback(prevState => {
74
74
  if (props.disableAggregation) {
@@ -132,7 +132,7 @@ export const wrapColumnWithAggregationValue = ({
132
132
  aggregationRule
133
133
  }) => {
134
134
  const getCellAggregationResult = (id, field) => {
135
- var _rowNode$parent, _gridAggregationLooku;
135
+ var _rowNode$parent, _gridAggregationLooku, _gridAggregationLooku2;
136
136
  let cellAggregationPosition = null;
137
137
  const rowNode = apiRef.current.getRowNode(id);
138
138
  if (rowNode.type === 'group') {
@@ -146,7 +146,7 @@ export const wrapColumnWithAggregationValue = ({
146
146
 
147
147
  // TODO: Add custom root id
148
148
  const groupId = cellAggregationPosition === 'inline' ? id : (_rowNode$parent = rowNode.parent) != null ? _rowNode$parent : '';
149
- const aggregationResult = (_gridAggregationLooku = gridAggregationLookupSelector(apiRef)[groupId]) == null ? void 0 : _gridAggregationLooku[field];
149
+ const aggregationResult = (_gridAggregationLooku = gridAggregationLookupSelector(apiRef)) == null ? void 0 : (_gridAggregationLooku2 = _gridAggregationLooku[groupId]) == null ? void 0 : _gridAggregationLooku2[field];
150
150
  if (!aggregationResult || aggregationResult.position !== cellAggregationPosition) {
151
151
  return null;
152
152
  }
@@ -84,7 +84,7 @@ export const useGridRowGrouping = (apiRef, props) => {
84
84
  return columnMenuItems;
85
85
  }
86
86
  if (isGroupingColumn(colDef.field) || colDef.groupable) {
87
- return [...columnMenuItems, 'ColumnMenuGroupingItem'];
87
+ return [...columnMenuItems, 'columnMenuGroupingItem'];
88
88
  }
89
89
  return columnMenuItems;
90
90
  }, [props.disableRowGrouping]);
package/index.d.ts CHANGED
@@ -20,4 +20,4 @@ export { GridColumnHeaders } from '@mui/x-data-grid-pro';
20
20
  export type { DataGridPremiumProps, GridExperimentalPremiumFeatures, } from './models/dataGridPremiumProps';
21
21
  export { useGridApiContext, useGridApiRef, useGridRootProps } from './typeOverloads/reexports';
22
22
  export type { GridApi, GridInitialState, GridState } from './typeOverloads/reexports';
23
- export { GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS, } from './components/reexports';
23
+ export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS, } from './components/reexports';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.0.3
2
+ * @mui/x-data-grid-premium v6.0.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -25,4 +25,4 @@ export * from './models';
25
25
  export * from './components';
26
26
  export { GridColumnHeaders } from '@mui/x-data-grid-pro';
27
27
  export { useGridApiContext, useGridApiRef, useGridRootProps } from './typeOverloads/reexports';
28
- export { GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS } from './components/reexports';
28
+ export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from './components/reexports';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { GridGenericColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS } from '@mui/x-data-grid-pro';
4
+ import { GridGenericColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from '@mui/x-data-grid-pro';
5
5
  import { GridColumnMenuAggregationItem } from './GridColumnMenuAggregationItem';
6
6
  import { isGroupingColumn } from '../hooks/features/rowGrouping';
7
7
  import { GridColumnMenuRowGroupItem } from './GridColumnMenuRowGroupItem';
@@ -17,11 +17,11 @@ export function GridColumnMenuGroupingItem(props) {
17
17
  }
18
18
  return null;
19
19
  }
20
- export var GRID_COLUMN_MENU_COMPONENTS_PREMIUM = _extends({}, GRID_COLUMN_MENU_COMPONENTS, {
21
- ColumnMenuAggregationItem: GridColumnMenuAggregationItem,
22
- ColumnMenuGroupingItem: GridColumnMenuGroupingItem
20
+ export var GRID_COLUMN_MENU_SLOTS_PREMIUM = _extends({}, GRID_COLUMN_MENU_SLOTS, {
21
+ columnMenuAggregationItem: GridColumnMenuAggregationItem,
22
+ columnMenuGroupingItem: GridColumnMenuGroupingItem
23
23
  });
24
- export var GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = _extends({}, GRID_COLUMN_MENU_COMPONENTS_PROPS, {
24
+ export var GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = _extends({}, GRID_COLUMN_MENU_SLOT_PROPS, {
25
25
  columnMenuAggregationItem: {
26
26
  displayOrder: 23
27
27
  },
@@ -33,8 +33,8 @@ var GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremiumCo
33
33
  return /*#__PURE__*/_jsx(GridGenericColumnMenu, _extends({
34
34
  ref: ref
35
35
  }, props, {
36
- defaultComponents: GRID_COLUMN_MENU_COMPONENTS_PREMIUM,
37
- defaultComponentsProps: GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM
36
+ defaultSlots: GRID_COLUMN_MENU_SLOTS_PREMIUM,
37
+ defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM
38
38
  }));
39
39
  });
40
40
  process.env.NODE_ENV !== "production" ? GridPremiumColumnMenu.propTypes = {
@@ -1 +1 @@
1
- export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS_PROPS } from './GridPremiumColumnMenu';
1
+ export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PREMIUM as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM as GRID_COLUMN_MENU_SLOT_PROPS } from './GridPremiumColumnMenu';
@@ -69,7 +69,7 @@ export var useGridAggregationPreProcessors = function useGridAggregationPreProce
69
69
  if (availableAggregationFunctions.length === 0) {
70
70
  return columnMenuItems;
71
71
  }
72
- return [].concat(_toConsumableArray(columnMenuItems), ['ColumnMenuAggregationItem']);
72
+ return [].concat(_toConsumableArray(columnMenuItems), ['columnMenuAggregationItem']);
73
73
  }, [props.aggregationFunctions, props.disableAggregation]);
74
74
  var stateExportPreProcessing = React.useCallback(function (prevState) {
75
75
  if (props.disableAggregation) {
@@ -129,7 +129,7 @@ export var wrapColumnWithAggregationValue = function wrapColumnWithAggregationVa
129
129
  apiRef = _ref6.apiRef,
130
130
  aggregationRule = _ref6.aggregationRule;
131
131
  var getCellAggregationResult = function getCellAggregationResult(id, field) {
132
- var _rowNode$parent, _gridAggregationLooku;
132
+ var _rowNode$parent, _gridAggregationLooku, _gridAggregationLooku2;
133
133
  var cellAggregationPosition = null;
134
134
  var rowNode = apiRef.current.getRowNode(id);
135
135
  if (rowNode.type === 'group') {
@@ -143,7 +143,7 @@ export var wrapColumnWithAggregationValue = function wrapColumnWithAggregationVa
143
143
 
144
144
  // TODO: Add custom root id
145
145
  var groupId = cellAggregationPosition === 'inline' ? id : (_rowNode$parent = rowNode.parent) != null ? _rowNode$parent : '';
146
- var aggregationResult = (_gridAggregationLooku = gridAggregationLookupSelector(apiRef)[groupId]) == null ? void 0 : _gridAggregationLooku[field];
146
+ var aggregationResult = (_gridAggregationLooku = gridAggregationLookupSelector(apiRef)) == null ? void 0 : (_gridAggregationLooku2 = _gridAggregationLooku[groupId]) == null ? void 0 : _gridAggregationLooku2[field];
147
147
  if (!aggregationResult || aggregationResult.position !== cellAggregationPosition) {
148
148
  return null;
149
149
  }
@@ -87,7 +87,7 @@ export var useGridRowGrouping = function useGridRowGrouping(apiRef, props) {
87
87
  return columnMenuItems;
88
88
  }
89
89
  if (isGroupingColumn(colDef.field) || colDef.groupable) {
90
- return [].concat(_toConsumableArray(columnMenuItems), ['ColumnMenuGroupingItem']);
90
+ return [].concat(_toConsumableArray(columnMenuItems), ['columnMenuGroupingItem']);
91
91
  }
92
92
  return columnMenuItems;
93
93
  }, [props.disableRowGrouping]);
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.0.3
2
+ * @mui/x-data-grid-premium v6.0.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -25,4 +25,4 @@ export * from './models';
25
25
  export * from './components';
26
26
  export { GridColumnHeaders } from '@mui/x-data-grid-pro';
27
27
  export { useGridApiContext, useGridApiRef, useGridRootProps } from './typeOverloads/reexports';
28
- export { GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS } from './components/reexports';
28
+ export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from './components/reexports';
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY3OTUyNjAwMDAwMA==";
3
+ var releaseInfo = "MTY4MDEyNzIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import PropTypes from 'prop-types';
4
- import { GridGenericColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS } from '@mui/x-data-grid-pro';
4
+ import { GridGenericColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from '@mui/x-data-grid-pro';
5
5
  import { GridColumnMenuAggregationItem } from './GridColumnMenuAggregationItem';
6
6
  import { isGroupingColumn } from '../hooks/features/rowGrouping';
7
7
  import { GridColumnMenuRowGroupItem } from './GridColumnMenuRowGroupItem';
@@ -19,11 +19,11 @@ export function GridColumnMenuGroupingItem(props) {
19
19
  }
20
20
  return null;
21
21
  }
22
- export const GRID_COLUMN_MENU_COMPONENTS_PREMIUM = _extends({}, GRID_COLUMN_MENU_COMPONENTS, {
23
- ColumnMenuAggregationItem: GridColumnMenuAggregationItem,
24
- ColumnMenuGroupingItem: GridColumnMenuGroupingItem
22
+ export const GRID_COLUMN_MENU_SLOTS_PREMIUM = _extends({}, GRID_COLUMN_MENU_SLOTS, {
23
+ columnMenuAggregationItem: GridColumnMenuAggregationItem,
24
+ columnMenuGroupingItem: GridColumnMenuGroupingItem
25
25
  });
26
- export const GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = _extends({}, GRID_COLUMN_MENU_COMPONENTS_PROPS, {
26
+ export const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = _extends({}, GRID_COLUMN_MENU_SLOT_PROPS, {
27
27
  columnMenuAggregationItem: {
28
28
  displayOrder: 23
29
29
  },
@@ -35,8 +35,8 @@ const GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremium
35
35
  return /*#__PURE__*/_jsx(GridGenericColumnMenu, _extends({
36
36
  ref: ref
37
37
  }, props, {
38
- defaultComponents: GRID_COLUMN_MENU_COMPONENTS_PREMIUM,
39
- defaultComponentsProps: GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM
38
+ defaultSlots: GRID_COLUMN_MENU_SLOTS_PREMIUM,
39
+ defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM
40
40
  }));
41
41
  });
42
42
  process.env.NODE_ENV !== "production" ? GridPremiumColumnMenu.propTypes = {
@@ -1 +1 @@
1
- export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM as GRID_COLUMN_MENU_COMPONENTS_PROPS } from './GridPremiumColumnMenu';
1
+ export { GridPremiumColumnMenu as GridColumnMenu, GRID_COLUMN_MENU_SLOTS_PREMIUM as GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM as GRID_COLUMN_MENU_SLOT_PROPS } from './GridPremiumColumnMenu';
@@ -68,7 +68,7 @@ export const useGridAggregationPreProcessors = (apiRef, props) => {
68
68
  if (availableAggregationFunctions.length === 0) {
69
69
  return columnMenuItems;
70
70
  }
71
- return [...columnMenuItems, 'ColumnMenuAggregationItem'];
71
+ return [...columnMenuItems, 'columnMenuAggregationItem'];
72
72
  }, [props.aggregationFunctions, props.disableAggregation]);
73
73
  const stateExportPreProcessing = React.useCallback(prevState => {
74
74
  if (props.disableAggregation) {
@@ -143,7 +143,7 @@ export const wrapColumnWithAggregationValue = ({
143
143
 
144
144
  // TODO: Add custom root id
145
145
  const groupId = cellAggregationPosition === 'inline' ? id : rowNode.parent ?? '';
146
- const aggregationResult = gridAggregationLookupSelector(apiRef)[groupId]?.[field];
146
+ const aggregationResult = gridAggregationLookupSelector(apiRef)?.[groupId]?.[field];
147
147
  if (!aggregationResult || aggregationResult.position !== cellAggregationPosition) {
148
148
  return null;
149
149
  }
@@ -82,7 +82,7 @@ export const useGridRowGrouping = (apiRef, props) => {
82
82
  return columnMenuItems;
83
83
  }
84
84
  if (isGroupingColumn(colDef.field) || colDef.groupable) {
85
- return [...columnMenuItems, 'ColumnMenuGroupingItem'];
85
+ return [...columnMenuItems, 'columnMenuGroupingItem'];
86
86
  }
87
87
  return columnMenuItems;
88
88
  }, [props.disableRowGrouping]);
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.0.3
2
+ * @mui/x-data-grid-premium v6.0.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -25,4 +25,4 @@ export * from './models';
25
25
  export * from './components';
26
26
  export { GridColumnHeaders } from '@mui/x-data-grid-pro';
27
27
  export { useGridApiContext, useGridApiRef, useGridRootProps } from './typeOverloads/reexports';
28
- export { GridColumnMenu, GRID_COLUMN_MENU_COMPONENTS, GRID_COLUMN_MENU_COMPONENTS_PROPS } from './components/reexports';
28
+ export { GridColumnMenu, GRID_COLUMN_MENU_SLOTS, GRID_COLUMN_MENU_SLOT_PROPS } from './components/reexports';
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY3OTUyNjAwMDAwMA==";
3
+ const releaseInfo = "MTY4MDEyNzIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = exports.GRID_COLUMN_MENU_COMPONENTS_PREMIUM = void 0;
7
+ exports.GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = exports.GRID_COLUMN_MENU_SLOTS_PREMIUM = void 0;
8
8
  exports.GridColumnMenuGroupingItem = GridColumnMenuGroupingItem;
9
9
  exports.GridPremiumColumnMenu = void 0;
10
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
@@ -30,12 +30,12 @@ function GridColumnMenuGroupingItem(props) {
30
30
  }
31
31
  return null;
32
32
  }
33
- const GRID_COLUMN_MENU_COMPONENTS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_COMPONENTS, {
34
- ColumnMenuAggregationItem: _GridColumnMenuAggregationItem.GridColumnMenuAggregationItem,
35
- ColumnMenuGroupingItem: GridColumnMenuGroupingItem
33
+ const GRID_COLUMN_MENU_SLOTS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOTS, {
34
+ columnMenuAggregationItem: _GridColumnMenuAggregationItem.GridColumnMenuAggregationItem,
35
+ columnMenuGroupingItem: GridColumnMenuGroupingItem
36
36
  });
37
- exports.GRID_COLUMN_MENU_COMPONENTS_PREMIUM = GRID_COLUMN_MENU_COMPONENTS_PREMIUM;
38
- const GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_COMPONENTS_PROPS, {
37
+ exports.GRID_COLUMN_MENU_SLOTS_PREMIUM = GRID_COLUMN_MENU_SLOTS_PREMIUM;
38
+ const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOT_PROPS, {
39
39
  columnMenuAggregationItem: {
40
40
  displayOrder: 23
41
41
  },
@@ -43,13 +43,13 @@ const GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = (0, _extends2.default)({}, _xD
43
43
  displayOrder: 27
44
44
  }
45
45
  });
46
- exports.GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM = GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM;
46
+ exports.GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM;
47
47
  const GridPremiumColumnMenu = /*#__PURE__*/React.forwardRef(function GridPremiumColumnMenuSimple(props, ref) {
48
48
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridGenericColumnMenu, (0, _extends2.default)({
49
49
  ref: ref
50
50
  }, props, {
51
- defaultComponents: GRID_COLUMN_MENU_COMPONENTS_PREMIUM,
52
- defaultComponentsProps: GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM
51
+ defaultSlots: GRID_COLUMN_MENU_SLOTS_PREMIUM,
52
+ defaultSlotProps: GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM
53
53
  }));
54
54
  });
55
55
  exports.GridPremiumColumnMenu = GridPremiumColumnMenu;
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "GRID_COLUMN_MENU_COMPONENTS", {
6
+ Object.defineProperty(exports, "GRID_COLUMN_MENU_SLOTS", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _GridPremiumColumnMenu.GRID_COLUMN_MENU_COMPONENTS_PREMIUM;
9
+ return _GridPremiumColumnMenu.GRID_COLUMN_MENU_SLOTS_PREMIUM;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "GRID_COLUMN_MENU_COMPONENTS_PROPS", {
12
+ Object.defineProperty(exports, "GRID_COLUMN_MENU_SLOT_PROPS", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _GridPremiumColumnMenu.GRID_COLUMN_MENU_COMPONENTS_PROPS_PREMIUM;
15
+ return _GridPremiumColumnMenu.GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM;
16
16
  }
17
17
  });
18
18
  Object.defineProperty(exports, "GridColumnMenu", {
@@ -77,7 +77,7 @@ const useGridAggregationPreProcessors = (apiRef, props) => {
77
77
  if (availableAggregationFunctions.length === 0) {
78
78
  return columnMenuItems;
79
79
  }
80
- return [...columnMenuItems, 'ColumnMenuAggregationItem'];
80
+ return [...columnMenuItems, 'columnMenuAggregationItem'];
81
81
  }, [props.aggregationFunctions, props.disableAggregation]);
82
82
  const stateExportPreProcessing = React.useCallback(prevState => {
83
83
  if (props.disableAggregation) {
@@ -152,7 +152,7 @@ const wrapColumnWithAggregationValue = ({
152
152
 
153
153
  // TODO: Add custom root id
154
154
  const groupId = cellAggregationPosition === 'inline' ? id : rowNode.parent ?? '';
155
- const aggregationResult = (0, _gridAggregationSelectors.gridAggregationLookupSelector)(apiRef)[groupId]?.[field];
155
+ const aggregationResult = (0, _gridAggregationSelectors.gridAggregationLookupSelector)(apiRef)?.[groupId]?.[field];
156
156
  if (!aggregationResult || aggregationResult.position !== cellAggregationPosition) {
157
157
  return null;
158
158
  }
@@ -92,7 +92,7 @@ const useGridRowGrouping = (apiRef, props) => {
92
92
  return columnMenuItems;
93
93
  }
94
94
  if ((0, _gridRowGroupingUtils.isGroupingColumn)(colDef.field) || colDef.groupable) {
95
- return [...columnMenuItems, 'ColumnMenuGroupingItem'];
95
+ return [...columnMenuItems, 'columnMenuGroupingItem'];
96
96
  }
97
97
  return columnMenuItems;
98
98
  }, [props.disableRowGrouping]);
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.0.3
2
+ * @mui/x-data-grid-premium v6.0.4
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -17,19 +17,19 @@ var _exportNames = {
17
17
  useGridApiRef: true,
18
18
  useGridRootProps: true,
19
19
  GridColumnMenu: true,
20
- GRID_COLUMN_MENU_COMPONENTS: true,
21
- GRID_COLUMN_MENU_COMPONENTS_PROPS: true
20
+ GRID_COLUMN_MENU_SLOTS: true,
21
+ GRID_COLUMN_MENU_SLOT_PROPS: true
22
22
  };
23
- Object.defineProperty(exports, "GRID_COLUMN_MENU_COMPONENTS", {
23
+ Object.defineProperty(exports, "GRID_COLUMN_MENU_SLOTS", {
24
24
  enumerable: true,
25
25
  get: function () {
26
- return _reexports2.GRID_COLUMN_MENU_COMPONENTS;
26
+ return _reexports2.GRID_COLUMN_MENU_SLOTS;
27
27
  }
28
28
  });
29
- Object.defineProperty(exports, "GRID_COLUMN_MENU_COMPONENTS_PROPS", {
29
+ Object.defineProperty(exports, "GRID_COLUMN_MENU_SLOT_PROPS", {
30
30
  enumerable: true,
31
31
  get: function () {
32
- return _reexports2.GRID_COLUMN_MENU_COMPONENTS_PROPS;
32
+ return _reexports2.GRID_COLUMN_MENU_SLOT_PROPS;
33
33
  }
34
34
  });
35
35
  Object.defineProperty(exports, "GridColumnHeaders", {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTY3OTUyNjAwMDAwMA==";
9
+ const releaseInfo = "MTY4MDEyNzIwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "6.0.3",
3
+ "version": "6.0.4",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.21.0",
35
35
  "@mui/utils": "^5.11.13",
36
- "@mui/x-data-grid": "6.0.3",
37
- "@mui/x-data-grid-pro": "6.0.3",
36
+ "@mui/x-data-grid": "6.0.4",
37
+ "@mui/x-data-grid-pro": "6.0.4",
38
38
  "@mui/x-license-pro": "6.0.3",
39
39
  "@types/format-util": "^1.0.2",
40
40
  "clsx": "^1.2.1",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY3OTUyNjAwMDAwMA==";
3
+ const releaseInfo = "MTY4MDEyNzIwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat