@mui/x-data-grid-pro 5.11.0 β†’ 5.11.1

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,21 +3,111 @@
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
+ ## v5.11.1
7
+
8
+ _May 20, 2022_
9
+
10
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Support localization on the date and time picker components (#4517) @alexfauquette
13
+
14
+ Texts can be translated in the pickers components, similar to what can be done in the data grid component. Check the [documentation](https://mui.com/x/react-date-pickers/localization/) for more information.
15
+
16
+ - πŸ“ƒ Add support for column spanning when exporting to Excel (#4830) @cherniavskii
17
+
18
+ <img src="https://user-images.githubusercontent.com/13808724/167691417-bf6baeb9-d409-4134-acb6-aadaf6434de9.png" width="800">
19
+
20
+ - 🐞 Bugs fixes
21
+
22
+ ### `@mui/x-data-grid@v5.11.1` / `@mui/x-data-grid-pro@v5.11.1` / `@mui/x-data-grid-premium@v5.11.1`
23
+
24
+ #### Changes
25
+
26
+ - [DataGrid] Add a CSS class corresponding to current density (#4858) @m4theushw
27
+ - [DataGrid] Execute the pipe-processors in their initialization order (#4913) @flaviendelangle
28
+ - [DataGrid] Fix rendering of the no rows overlay when the `loading` prop is changed (#4910) @m4theushw
29
+ - [DataGridPremium] Add `exceljs` to the dependencies (#4939) @alexfauquette
30
+ - [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
31
+ - [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
32
+
33
+ ### `@mui/x-date-pickers@5.0.0-alpha.4` / `@mui/x-date-pickers-pro@5.0.0-alpha.4`
34
+
35
+ #### Breaking changes
36
+
37
+ - The props related to the action bar buttons have been removed (`clearable`, `showTodayButton`, `cancelText`, `okText`)
38
+
39
+ To decide which button must be displayed and in which order, you can now use the `actions` prop of the `actionBar` component slot props.
40
+
41
+ ```jsx
42
+ <DatePicker
43
+ componentsProps={{
44
+ actionBar: {
45
+ // The actions will be the same between desktop and mobile
46
+ actions: ['clear'],
47
+
48
+ // The actions will be different between desktop and mobile
49
+ actions: (variant) => variant === 'desktop' ? [] : ['clear'],
50
+ }
51
+ }}
52
+ />
53
+ ```
54
+
55
+ The build-in `ActionBar` component supports 4 different actions: `'clear'`, `'cancel'`, `'accept'`, and `'today'`.
56
+ By default, the pickers will render the cancel and accept button on mobile and no action on desktop.
57
+
58
+ If you need other actions, you can provide your own component to the `ActionBar` component slot
59
+
60
+ ```jsx
61
+ <DatePicker
62
+ components={{ ActionBar: CustomActionBar }}
63
+ />
64
+ ```
65
+
66
+ #### Changes
67
+
68
+ - [DatePicker] Fix keyboard accessibility for first and last year (#4807) @alexfauquette
69
+ - [pickers] Add component slot for action bar (#4778) @alexfauquette
70
+ - [pickers] Add l10n support (#4517) @alexfauquette
71
+ - [pickers] Close Popper when pressing <kbd>Esc</kbd> inside a modal (#4499) @alexfauquette
72
+ - [pickers] Support class slots on toolbar components (#4855) @flaviendelangle
73
+ - [TimePicker] Fix time validation when current date is `null` (#4867) @flaviendelangle
74
+
75
+ ### Docs
76
+
77
+ - [docs] Add 301 redirect for columns page (#4940) @alexfauquette
78
+ - [docs] Avoid confusion with license key installation (#4891) @oliviertassinari
79
+ - [docs] Complete the instructions for pickers installation in readme (#4852) @alexfauquette
80
+ - [docs] Disable ads on paid-only pages (#4842) @flaviendelangle
81
+ - [docs] Don't redirect to localized doc on deploy preview (#4818) @m4theushw
82
+ - [docs] Limit `LICENSE` file to 80 char per line (#4873) @oliviertassinari
83
+ - [docs] Typo on OrderId @oliviertassinari
84
+ - [docs] Update feature comparison table (#4918) @cherniavskii
85
+
86
+ ### Core
87
+
88
+ - [core] Add new script to generate tree data rows from file tree (#4902) @flaviendelangle
89
+ - [core] Fix code style (#4874) @oliviertassinari
90
+ - [core] Fix React 18 peer dependency (#4908) @oliviertassinari
91
+ - [core] Fix link to the LICENSE file (#4875) @oliviertassinari
92
+ - [core] Fix transitive babel dependency (#4793) @oliviertassinari
93
+ - [core] New pipe processing `rowHydration` (#4896) @flaviendelangle
94
+ - [core] Remove dead code for the docs (#4791) @oliviertassinari
95
+ - [core] Run `yarn prettier` @oliviertassinari
96
+ - [core] Polishes on `CHANGELOG.md` (#4876) @oliviertassinari
97
+ - [core] Simplify rows cache management (#4933) @flaviendelangle
98
+ - [core] Use internal icons for quick filter (#4912) @alexfauquette
99
+
6
100
  ## v5.11.0
7
101
 
8
102
  _May 13, 2022_
9
103
 
10
104
  We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
11
105
 
12
- - πŸš€ Premium plan release
13
-
14
- We’re happy to announce that the Premium plan is [finally out](https://mui.com/blog/premium-plan-release/)!
15
- With it, MUI X officially steps up to the next level, supporting the most advanced use cases for UI components.
106
+ - πŸš€ **Premium plan release**. We're happy to announce that the Premium plan is [finally out](https://mui.com/blog/premium-plan-release/)! With it, MUI X officially steps up to the next level, supporting the most advanced use cases for UI components.
16
107
 
17
108
  This plan is available through the new `@mui/x-data-grid-premium` package, which contains the row grouping and the Excel export features.
18
109
 
19
- If you were already using the row grouping feature, you can upgrade by [installing](https://mui.com/x/react-data-grid/getting-started/#installation) `@mui/x-data-grid-premium` and replace `DataGridPro` with `DataGridPremium`, as follows.
20
- Note that the experimental flag is not required anymore to use the row grouping.
110
+ If you were already using the row grouping feature, you can upgrade by [installing](https://mui.com/x/react-data-grid/getting-started/#installation) `@mui/x-data-grid-premium` and replace `DataGridPro` with `DataGridPremium`, as follows. Note that the experimental flag is not required anymore to use the row grouping.
21
111
 
22
112
  ```diff
23
113
  -import { DataGridPro } from '@mui/x-data-grid-pro';
@@ -29,16 +119,11 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
29
119
 
30
120
  For more information about the revised pricing model please have a look at the [blog post](https://mui.com/blog/premium-plan-release/#the-new-licensing-model).
31
121
 
32
- - πŸ‘” Add Excel export
33
-
34
- - πŸ”Ž Quick filtering
35
-
36
- You can now add a quick filtering search bar to your grid.
37
- To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar.
122
+ - πŸ‘” **Excel export**. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
38
123
 
39
- More information about how to customize the filtering logic is in the [documentation](https://mui.com/x/react-data-grid/filtering/#quick-filter)
124
+ - πŸ”Ž **Quick filtering**. You can now add a quick filtering search bar to your grid. To do so, either pass `showQuickFilter` prop to the `<GridToolbar />` or use the `<GridToolbarQuickFilter />` component in your custom toolbar. More information about how to customize the filtering logic is in the [documentation]( https://mui.com/x/react-data-grid/filtering/#quick-filter).
40
125
 
41
- ![image](https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png)
126
+ <img src="https://user-images.githubusercontent.com/13808724/167700105-5a5acc7c-5463-4871-8514-3d09e2f365ae.png" width="724">
42
127
 
43
128
  - 🐞 Bugs fixes
44
129
 
@@ -46,7 +131,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
46
131
 
47
132
  #### Breaking changes
48
133
 
49
- - Moving row grouping to premium package
134
+ - Move row grouping to the premium package (#4223) @flaviendelangle
50
135
 
51
136
  The use of `rowGrouping` in the `@mui/x-data-grid-pro` package is deprecated. The experimental flag will be removed in an upcoming release.
52
137
 
@@ -76,7 +161,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
76
161
 
77
162
  #### Breaking changes
78
163
 
79
- - Rework the auto-closing behavior of the pickers.
164
+ - Rework the auto-closing behavior of the pickers (#4408) @flaviendelangle
80
165
 
81
166
  The `disableCloseOnSelect` prop has been replaced by a new `closeOnSelect` prop which has the opposite behavior.
82
167
  The default behavior remains the same (close after the last step on desktop but not on mobile).
package/LICENSE CHANGED
@@ -2,9 +2,9 @@ Commercial License
2
2
 
3
3
  Copyright (c) 2020 Material-UI SAS
4
4
 
5
- MUI X Pro (https://mui.com/pricing/) is commercial software. You must purchase
6
- a license and agree to the End User License Agreement (EULA: https://mui.com/r/x-license-eula)
7
- to be able to use the software.
5
+ MUI X Pro (https://mui.com/pricing/) is commercial software.
6
+ You must purchase a license and agree to the End User License Agreement
7
+ (EULA: https://mui.com/r/x-license-eula) to be able to use the software.
8
8
 
9
9
  Commercial licenses can be obtained at https://mui.com/r/x-get-license?scope=pro.
10
10
  You are free to install and try the software without a license key as long as it
package/README.md CHANGED
@@ -21,8 +21,7 @@ This component has the following peer dependencies that you will need to install
21
21
  "peerDependencies": {
22
22
  "@mui/material": "^5.2.8",
23
23
  "@mui/system": "^5.2.8",
24
- "react": "^17.0.2 || ^18.0.0",
25
- "react-dom": "^17.0.2 || ^18.0.0"
24
+ "react": "^17.0.2 || ^18.0.0"
26
25
  },
27
26
  ```
28
27
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.1
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.
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.1
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 = "MTY1MjM5MjgwMDAwMA==";
3
+ var releaseInfo = "MTY1Mjk5NzYwMDAwMA==";
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).
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.1
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 = "MTY1MjM5MjgwMDAwMA==";
3
+ const releaseInfo = "MTY1Mjk5NzYwMDAwMA==";
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).
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.11.0
1
+ /** @license MUI v5.11.1
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 = "MTY1MjM5MjgwMDAwMA==";
11
+ const releaseInfo = "MTY1Mjk5NzYwMDAwMA==";
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-pro",
3
- "version": "5.11.0",
3
+ "version": "5.11.1",
4
4
  "description": "The Pro plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -31,9 +31,10 @@
31
31
  "directory": "packages/grid/x-data-grid-pro"
32
32
  },
33
33
  "dependencies": {
34
- "@mui/utils": "^5.6.1",
35
- "@mui/x-data-grid": "5.11.0",
36
- "@mui/x-license-pro": "5.11.0",
34
+ "@babel/runtime": "^7.17.2",
35
+ "@mui/utils": "^5.7.0",
36
+ "@mui/x-data-grid": "5.11.1",
37
+ "@mui/x-license-pro": "5.11.1",
37
38
  "@types/format-util": "^1.0.2",
38
39
  "clsx": "^1.0.4",
39
40
  "prop-types": "^15.8.1",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY1MjM5MjgwMDAwMA==";
3
+ const releaseInfo = "MTY1Mjk5NzYwMDAwMA==";
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).