@mui/x-data-grid-premium 6.0.0-alpha.1 → 6.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,82 @@
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
+ ## v6.0.0-alpha.2
7
+
8
+ _Oct 7, 2022_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🚀 Further progress on stabilizing new date field components
13
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6269) @cherniavskii
14
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
15
+ - 📚 Documentation improvements
16
+ - 🐞 Bugfixes
17
+
18
+ ### `@mui/x-data-grid@v6.0.0-alpha.2` / `@mui/x-data-grid-pro@v6.0.0-alpha.2` / `@mui/x-data-grid-premium@v6.0.0-alpha.2`
19
+
20
+ #### Breaking changes
21
+
22
+ - 🎁 The aggregation is no longer experimental.
23
+
24
+ You can now use the aggregation without the `experimentalFeatures.aggregation` flag enabled.
25
+
26
+ ```diff
27
+ <DataGridPremium
28
+ - experimentalFeatures={{ aggregation: true }}
29
+ />
30
+ ```
31
+
32
+ The aggregation of the columns through the column menu is now enabled by default on `DataGridPremium`. You can set `disableAggregation={true}` to disable it.
33
+
34
+ #### Changes
35
+
36
+ - [DataGrid] Add filter item ID to `.MuiDataGrid-filterForm` (#6313) @m4theushw
37
+ - [DataGrid] Add missing `valueOptions` (#6401) @DanailH
38
+ - [DataGrid] Don't start edit mode when pressing Shift + Space (#6228) @m4theushw
39
+ - [DataGrid] Fix error when using column grouping with all columns hidden (#6405) @alexfauquette
40
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6269) @cherniavskii
41
+ - [DataGridPremium] Remove the aggregation from the experimental features (#6372) @flaviendelangle
42
+
43
+ ### `@mui/x-date-pickers@v6.0.0-alpha.2` / `@mui/x-date-pickers-pro@v6.0.0-alpha.2`
44
+
45
+ #### Breaking changes
46
+
47
+ - The `renderDay` prop has been replaced by a `Day` component slot.
48
+ You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
49
+
50
+ ```diff
51
+ // Same for any other date, date time or date range picker.
52
+ <DatePicker
53
+ - renderDay={(_, dayProps) => <CustomDay {...dayProps} />}
54
+ + components={{ Day: CustomDay }}
55
+ />
56
+ ```
57
+
58
+ #### Changes
59
+
60
+ - [DateRangePicker] Fix the shape of the first selected day when the start date has an hour set (#6403) @flaviendelangle
61
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) @sho918
62
+ - [DateRangePicker] Force focus to stay on inputs (#6324) @alexfauquette
63
+ - [pickers] Improve edition on field components (#6339) @flaviendelangle
64
+ - [pickers] Improve field selection behaviors (#6317) @flaviendelangle
65
+ - [pickers] Replace the `renderDay` prop with a `Day` component slot (#6293) @flaviendelangle
66
+
67
+ ### Docs
68
+
69
+ - [docs] Apply style guide to Data Grid Aggregation page (#5781) @samuelsycamore
70
+ - [docs] Fix code examples of editing cells (#6004) @TiagoPortfolio
71
+ - [docs] Fix customized day rendering demo style (#6342) (#6399) @Ambrish-git
72
+ - [docs] Implement Style Guide on "Advanced" Data Grid doc pages (#6331) @samuelsycamore
73
+ - [docs] Use components instead of demos for `SelectorsDocs` (#6103) @flaviendelangle
74
+ - [license] Add new license status 'Out of scope' (#5260) @flaviendelangle
75
+
76
+ ### Core
77
+
78
+ - [core] Speedup of yarn install in the CI (#6395) @oliviertassinari
79
+ - [test] Remove redundant test clean-ups (#6377) @oliviertassinari
80
+ - [test] Replace `React.render` with `React.createRoot` in e2e tests (#6393) @m4theushw
81
+
6
82
  ## 6.0.0-alpha.1
7
83
 
8
84
  _Sep 29, 2022_
@@ -305,7 +305,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
305
305
  * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
306
306
  */
307
307
  experimentalFeatures: PropTypes.shape({
308
- aggregation: PropTypes.bool,
309
308
  columnGrouping: PropTypes.bool,
310
309
  lazyLoading: PropTypes.bool,
311
310
  newEditingApi: PropTypes.bool,
@@ -34,14 +34,9 @@ export const useDataGridPremiumProps = inProps => {
34
34
  });
35
35
  return mergedComponents;
36
36
  }, [themedProps.components]);
37
- return React.useMemo(() => {
38
- var _themedProps$experime;
39
-
40
- return _extends({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps, {
41
- disableAggregation: themedProps.disableAggregation || !((_themedProps$experime = themedProps.experimentalFeatures) != null && _themedProps$experime.aggregation),
42
- localeText,
43
- components,
44
- signature: 'DataGridPremium'
45
- });
46
- }, [themedProps, localeText, components]);
37
+ return React.useMemo(() => _extends({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps, {
38
+ localeText,
39
+ components,
40
+ signature: 'DataGridPremium'
41
+ }), [themedProps, localeText, components]);
47
42
  };
@@ -59,6 +59,7 @@ const getLeafProperties = leafColDef => {
59
59
  headerName: (_leafColDef$headerNam = leafColDef.headerName) != null ? _leafColDef$headerNam : leafColDef.field,
60
60
  sortable: leafColDef.sortable,
61
61
  filterable: leafColDef.filterable,
62
+ valueOptions: leafColDef.valueOptions,
62
63
  filterOperators: (_leafColDef$filterOpe = leafColDef.filterOperators) == null ? void 0 : _leafColDef$filterOpe.map(operator => _extends({}, operator, {
63
64
  getApplyFilterFn: (filterItem, column) => {
64
65
  const originalFn = operator.getApplyFilterFn(filterItem, column);
@@ -89,6 +90,7 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
89
90
  const properties = {
90
91
  sortable: groupedByColDef.sortable,
91
92
  filterable: groupedByColDef.filterable,
93
+ valueOptions: groupedByColDef.valueOptions,
92
94
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
93
95
  // We only want to sort the groups of the current grouping criteria
94
96
  if (cellParams1.rowNode.type === 'group' && cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.type === 'group' && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.1
1
+ /** @license MUI v6.0.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -305,7 +305,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
305
305
  * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
306
306
  */
307
307
  experimentalFeatures: PropTypes.shape({
308
- aggregation: PropTypes.bool,
309
308
  columnGrouping: PropTypes.bool,
310
309
  lazyLoading: PropTypes.bool,
311
310
  newEditingApi: PropTypes.bool,
@@ -44,10 +44,7 @@ export var useDataGridPremiumProps = function useDataGridPremiumProps(inProps) {
44
44
  return mergedComponents;
45
45
  }, [themedProps.components]);
46
46
  return React.useMemo(function () {
47
- var _themedProps$experime;
48
-
49
47
  return _extends({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps, {
50
- disableAggregation: themedProps.disableAggregation || !((_themedProps$experime = themedProps.experimentalFeatures) != null && _themedProps$experime.aggregation),
51
48
  localeText: localeText,
52
49
  components: components,
53
50
  signature: 'DataGridPremium'
@@ -60,6 +60,7 @@ var getLeafProperties = function getLeafProperties(leafColDef) {
60
60
  headerName: (_leafColDef$headerNam = leafColDef.headerName) != null ? _leafColDef$headerNam : leafColDef.field,
61
61
  sortable: leafColDef.sortable,
62
62
  filterable: leafColDef.filterable,
63
+ valueOptions: leafColDef.valueOptions,
63
64
  filterOperators: (_leafColDef$filterOpe = leafColDef.filterOperators) == null ? void 0 : _leafColDef$filterOpe.map(function (operator) {
64
65
  return _extends({}, operator, {
65
66
  getApplyFilterFn: function getApplyFilterFn(filterItem, column) {
@@ -92,6 +93,7 @@ var getGroupingCriteriaProperties = function getGroupingCriteriaProperties(group
92
93
  var properties = {
93
94
  sortable: groupedByColDef.sortable,
94
95
  filterable: groupedByColDef.filterable,
96
+ valueOptions: groupedByColDef.valueOptions,
95
97
  sortComparator: function sortComparator(v1, v2, cellParams1, cellParams2) {
96
98
  // We only want to sort the groups of the current grouping criteria
97
99
  if (cellParams1.rowNode.type === 'group' && cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.type === 'group' && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.1
1
+ /** @license MUI v6.0.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY2NDQyMDQwMDAwMA==";
3
+ var releaseInfo = "MTY2NTA5MDAwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -6,10 +6,6 @@ import type { GridAggregationModel, GridAggregationFunction, GridAggregationPosi
6
6
  import { GridInitialStatePremium } from './gridStatePremium';
7
7
  import { GridApiPremium } from './gridApiPremium';
8
8
  export interface GridExperimentalPremiumFeatures extends GridExperimentalProFeatures {
9
- /**
10
- * Enables the aggregation feature.
11
- */
12
- aggregation: boolean;
13
9
  }
14
10
  /**
15
11
  * The props users can give to the `DataGridProProps` component.
@@ -305,7 +305,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
305
305
  * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
306
306
  */
307
307
  experimentalFeatures: PropTypes.shape({
308
- aggregation: PropTypes.bool,
309
308
  columnGrouping: PropTypes.bool,
310
309
  lazyLoading: PropTypes.bool,
311
310
  newEditingApi: PropTypes.bool,
@@ -35,7 +35,6 @@ export const useDataGridPremiumProps = inProps => {
35
35
  return mergedComponents;
36
36
  }, [themedProps.components]);
37
37
  return React.useMemo(() => _extends({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps, {
38
- disableAggregation: themedProps.disableAggregation || !themedProps.experimentalFeatures?.aggregation,
39
38
  localeText,
40
39
  components,
41
40
  signature: 'DataGridPremium'
@@ -54,6 +54,7 @@ const getLeafProperties = leafColDef => ({
54
54
  headerName: leafColDef.headerName ?? leafColDef.field,
55
55
  sortable: leafColDef.sortable,
56
56
  filterable: leafColDef.filterable,
57
+ valueOptions: leafColDef.valueOptions,
57
58
  filterOperators: leafColDef.filterOperators?.map(operator => _extends({}, operator, {
58
59
  getApplyFilterFn: (filterItem, column) => {
59
60
  const originalFn = operator.getApplyFilterFn(filterItem, column);
@@ -81,6 +82,7 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
81
82
  const properties = {
82
83
  sortable: groupedByColDef.sortable,
83
84
  filterable: groupedByColDef.filterable,
85
+ valueOptions: groupedByColDef.valueOptions,
84
86
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
85
87
  // We only want to sort the groups of the current grouping criteria
86
88
  if (cellParams1.rowNode.type === 'group' && cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.type === 'group' && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.1
1
+ /** @license MUI v6.0.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY2NDQyMDQwMDAwMA==";
3
+ const releaseInfo = "MTY2NTA5MDAwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -328,7 +328,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
328
328
  * For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
329
329
  */
330
330
  experimentalFeatures: _propTypes.default.shape({
331
- aggregation: _propTypes.default.bool,
332
331
  columnGrouping: _propTypes.default.bool,
333
332
  lazyLoading: _propTypes.default.bool,
334
333
  newEditingApi: _propTypes.default.bool,
@@ -53,16 +53,11 @@ const useDataGridPremiumProps = inProps => {
53
53
  });
54
54
  return mergedComponents;
55
55
  }, [themedProps.components]);
56
- return React.useMemo(() => {
57
- var _themedProps$experime;
58
-
59
- return (0, _extends2.default)({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps, {
60
- disableAggregation: themedProps.disableAggregation || !((_themedProps$experime = themedProps.experimentalFeatures) != null && _themedProps$experime.aggregation),
61
- localeText,
62
- components,
63
- signature: 'DataGridPremium'
64
- });
65
- }, [themedProps, localeText, components]);
56
+ return React.useMemo(() => (0, _extends2.default)({}, DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES, themedProps, {
57
+ localeText,
58
+ components,
59
+ signature: 'DataGridPremium'
60
+ }), [themedProps, localeText, components]);
66
61
  };
67
62
 
68
63
  exports.useDataGridPremiumProps = useDataGridPremiumProps;
@@ -81,6 +81,7 @@ const getLeafProperties = leafColDef => {
81
81
  headerName: (_leafColDef$headerNam = leafColDef.headerName) != null ? _leafColDef$headerNam : leafColDef.field,
82
82
  sortable: leafColDef.sortable,
83
83
  filterable: leafColDef.filterable,
84
+ valueOptions: leafColDef.valueOptions,
84
85
  filterOperators: (_leafColDef$filterOpe = leafColDef.filterOperators) == null ? void 0 : _leafColDef$filterOpe.map(operator => (0, _extends2.default)({}, operator, {
85
86
  getApplyFilterFn: (filterItem, column) => {
86
87
  const originalFn = operator.getApplyFilterFn(filterItem, column);
@@ -111,6 +112,7 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
111
112
  const properties = {
112
113
  sortable: groupedByColDef.sortable,
113
114
  filterable: groupedByColDef.filterable,
115
+ valueOptions: groupedByColDef.valueOptions,
114
116
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
115
117
  // We only want to sort the groups of the current grouping criteria
116
118
  if (cellParams1.rowNode.type === 'group' && cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.type === 'group' && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v6.0.0-alpha.1
1
+ /** @license MUI v6.0.0-alpha.2
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
8
8
  var _utils = require("@mui/utils");
9
9
 
10
10
  const getReleaseInfo = () => {
11
- const releaseInfo = "MTY2NDQyMDQwMDAwMA==";
11
+ const releaseInfo = "MTY2NTA5MDAwMDAwMA==";
12
12
 
13
13
  if (process.env.NODE_ENV !== 'production') {
14
14
  // A simple hack to set the value in the test environment (has no build step).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "6.0.0-alpha.1",
3
+ "version": "6.0.0-alpha.2",
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,9 +33,9 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.19.0",
35
35
  "@mui/utils": "^5.10.6",
36
- "@mui/x-data-grid": "6.0.0-alpha.1",
37
- "@mui/x-data-grid-pro": "6.0.0-alpha.1",
38
- "@mui/x-license-pro": "6.0.0-alpha.0",
36
+ "@mui/x-data-grid": "6.0.0-alpha.2",
37
+ "@mui/x-data-grid-pro": "6.0.0-alpha.2",
38
+ "@mui/x-license-pro": "6.0.0-alpha.2",
39
39
  "@types/format-util": "^1.0.2",
40
40
  "clsx": "^1.2.1",
41
41
  "exceljs": "^4.3.0",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY2NDQyMDQwMDAwMA==";
3
+ const releaseInfo = "MTY2NTA5MDAwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).