@mui/x-date-pickers-pro 5.0.0-beta.0 โ†’ 5.0.0-beta.3

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,156 @@
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
+ ## 5.15.0
7
+
8
+ _Jul 29, 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
+ - ๐ŸŽ Introduce aggregation (#5592) @flaviendelangle
13
+
14
+ Premium users can now aggregate data in the grid.
15
+ Extract information like sum, average, count, and others with a couple of clicks.
16
+
17
+ https://user-images.githubusercontent.com/45398769/181581503-77cc412e-9d9e-4de1-8bc3-c3bccc54cdaa.mp4
18
+
19
+ To enable this feature, add `experimentalFeatures={{ aggregation: true }}`.
20
+ Aggregation functions are customizable and they combine well with row grouping.
21
+ See the [documentation](https://mui.com/x/react-data-grid/aggregation/) to explore everything it has to offer.
22
+
23
+ - ๐Ÿš€ Introduce row pinning (#4863) @cherniavskii
24
+
25
+ Pro users can now pin rows on top or bottom of the grid.
26
+
27
+ https://user-images.githubusercontent.com/45398769/181581493-56c733a3-6dd5-4546-bf8d-3f2dff72b14a.mp4
28
+
29
+ To do so, enable the feature with `experimentalFeatures={{ rowPinning: true }}` and provide the pinned rows data to the `pinnedRows` prop.
30
+ For more details, see the [documentation](https://mui.com/x/react-data-grid/row-pinning/).
31
+
32
+ - ๐ŸŒ Add simplified Chinese (zh-CN) locale to pickers (#5584) @gamecss
33
+ - ๐Ÿ“š Documentation improvements
34
+
35
+ ### `@mui/x-data-grid@v5.15.0` / `@mui/x-data-grid-pro@v5.15.0` / `@mui/x-data-grid-premium@v5.15.0`
36
+
37
+ #### Changes
38
+
39
+ - [DataGrid] Add prop to keep modifications while processing props (#5309) @m4theushw
40
+ - [DataGrid] Fix container width change on React 18 (#5566) @m4theushw
41
+ - [DataGrid] Fix ellipsis style convention (#5587) @oliviertassinari
42
+ - [DataGridPro] Implement row pinning (#4863) @cherniavskii
43
+ - [DataGridPremium] Make aggregation public (#5592) @cherniavskii
44
+ - [l10n] Improve simplified Chinese (zh-CN) locale (#5584) @gamecss
45
+
46
+ ### `@mui/x-date-pickers@v5.0.0-beta.3` / `@mui/x-date-picker-pro@5.0.0-beta.3`
47
+
48
+ #### Changes
49
+
50
+ - [l10n] Add simplified Chinese (zh-CN) locale (#5584) @gamecss
51
+
52
+ ### Docs
53
+
54
+ - [docs] Split docs page about rows (#5195) @flaviendelangle
55
+ - [docs] Add warning clarifications (#5399) @alexfauquette
56
+ - [docs] Correct slot CSS classes for Pro and Premium components (#5452) @alexfauquette
57
+ - [docs] Fix internal link to `valueParser` (#5450) @alexfauquette
58
+
59
+ ### Core
60
+
61
+ - [core] Upgrade monorepo (#5560) @m4theushw
62
+
63
+ ## 5.14.0
64
+
65
+ _Jul 21, 2022_
66
+
67
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights โœจ:
68
+
69
+ - ๐Ÿงช Export `GridBooleanCell` component from data grid (#5537) @cliedeman
70
+ - โš™๏ธ Improve accessibility of the Export menu (#5486) @nogalpaulina
71
+ - ๐ŸŒ Improvements to different locales
72
+ - ๐Ÿ“š Documentation improvements
73
+ - ๐Ÿž Bugfixes
74
+
75
+ ### `@mui/x-data-grid@5.14.0` / `@mui/x-data-grid-pro@5.14.0` / `@mui/x-data-grid-premium@5.14.0`
76
+
77
+ #### Changes
78
+
79
+ - [DataGrid] Add generics to `GridPreProcessEditCellProps` (#5510) @YunosukeY
80
+ - [DataGrid] Avoid inconsistent state export (#5390) @flaviendelangle
81
+ - [DataGrid] Export `GridBooleanCell` component (#5537) @cliedeman
82
+ - [DataGrid] Fix `date`/`dateTime` edit input font size to match view mode (#5304) @cherniavskii
83
+ - [DataGrid] Fix loading overlay position (#5558) @DanailH
84
+ - [DataGrid] Improve accessibility of the Export menu in the toolbar (#5486) @nogalpaulina
85
+ - [DataGridPremium] Implement Aggregation - not publicly released (#4208) @flaviendelangle
86
+ - [DataGridPremium] Fix crash when exporting all columns to Excel (#5425) @cherniavskii
87
+ - [l10n] Add Traditional Chinese (zh-TW) locale (#5498) @happyincent
88
+
89
+ ### `@mui/x-date-pickers@v5.0.0-beta.2` / `@mui/x-date-picker-pro@5.0.0-beta.2`
90
+
91
+ #### Changes
92
+
93
+ - [l10n] Add Norwegian (nb-NO) locale (#5475) @elkebab
94
+
95
+ ### Docs
96
+
97
+ - [docs] New page presenting the `apiRef` (#5273) @flaviendelangle
98
+ - [docs] Remove blank line @oliviertassinari
99
+
100
+ ### Core
101
+
102
+ - [core] Add missing comments on zh-TW translation (#5559) @flaviendelangle
103
+ - [core] Polish on the bug issue template (#5525) @oliviertassinari
104
+ - [test] Add more tests related to `isPrintableKey` (#5458) @mnajdova
105
+
106
+ ## 5.13.1
107
+
108
+ _Jul 15, 2022_
109
+
110
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights โœจ:
111
+
112
+ - โœ๏ธ Enter edit mode when pasting in a cell with Ctrl+V (Cmd+V on macOS) (#5405) @alexfauquette
113
+ - ๐ŸŒ Many improvements to the locales
114
+ - ๐Ÿ“š Documentation improvements
115
+ - ๐Ÿž Bugfixes
116
+
117
+ ### `@mui/x-data-grid@v5.13.1` / `@mui/x-data-grid-pro@v5.13.1` / `@mui/x-data-grid-premium@v5.13.1`
118
+
119
+ #### Changes
120
+
121
+ - [DataGrid] Fix blank space when using dynamic row height with pagination (#5315) @m4theushw
122
+ - [DataGrid] Start editing with uppercase letter and Ctrl+V (#5405) @alexfauquette
123
+ - [DataGrid] Fix some filters being removed from filter model on filter panel open (#5403) @cherniavskii
124
+ - [DataGridPro] Improve pinned column headers accessibility (#5370) @cherniavskii
125
+ - [l10n] Improve Dutch (nl-NL) locale (#5464) @developenguin
126
+ - [l10n] Improve French (fr-FR) locale (#3211) (#5420) @Zenoo
127
+ - [l10n] Improve German (de-DE) locale (#5448) @sebastianfrey
128
+ - [l10n] Improve Brazilian Portuguese (pt-BR) locale (#5394) @andrepxa
129
+ - [l10n] Improve Romanian (ro-RO) locale (#5449) @rolule
130
+
131
+ ### `@mui/x-date-pickers@v5.0.0-beta.1` / `@mui/x-date-picker-pro@5.0.0-beta.1`
132
+
133
+ #### Changes
134
+
135
+ - [pickers] Add Italian (it-IT) locale (#5467) @felixh10r
136
+ - [pickers] Add Spanish (es-ES) locale (#5468) @felixh10r
137
+ - [pickers] Improve French (fr-FR) locale (#5446) @Zenoo
138
+ - [pickers] Improve German (de-DE) locale (#5447) @sebastianfrey
139
+
140
+ ### Docs
141
+
142
+ - [docs] Fix typo in the sorting page (#5431) @JosephMarinier
143
+ - [docs] Fix description for "Striped rows" example (#5432) @lindapaiste
144
+ - [docs] Make a clear difference between the license and license key (#5316) @oliviertassinari
145
+ - [docs] Update pickers README files (#5456) @cherniavskii
146
+ - [docs] Clarify the scope of support for MUI X (#5423) @joserodolfofreitas
147
+
148
+ ### Core
149
+
150
+ - [core] Add technical support link to \_redirects (#5428) @joserodolfofreitas
151
+ - [core] Improve GitHub bug reproduction template (#5067) @joserodolfofreitas
152
+ - [core] Include playground pages in tsconfig (#5367) @cherniavskii
153
+ - [core] Sort keys like in material-ui @oliviertassinari
154
+ - [test] Wait for flags to load on regression tests (#5473) @m4theushw
155
+
6
156
  ## 5.13.0
7
157
 
8
158
  _Jul 7, 2022_
@@ -213,7 +363,7 @@ _May 31, 2022_
213
363
 
214
364
  We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights โœจ:
215
365
 
216
- - ๐ŸŽ Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/rows/#dynamic-row-height) (#4859) @m4theushw
366
+ - ๐ŸŽ Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/row-height/#dynamic-row-height) (#4859) @m4theushw
217
367
 
218
368
  <img src="https://user-images.githubusercontent.com/42154031/171183167-718d7bcd-ec0f-459e-97fe-0f650abb4a99.gif" width="800">
219
369
 
@@ -530,7 +680,7 @@ _Apr 25, 2022_
530
680
 
531
681
  We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights โœจ:
532
682
 
533
- - ๐ŸŽ Introduce [Row reorder](https://mui.com/x/react-data-grid/rows/#row-reorder) (#4034) @DanailH
683
+ - ๐ŸŽ Introduce [Row reorder](https://mui.com/x/react-data-grid/row-ordering/) (#4034) @DanailH
534
684
 
535
685
  <img src="https://user-images.githubusercontent.com/5858539/165091263-23472fbb-a989-44b8-849a-d2185adfe13b.gif" width="800">
536
686
 
@@ -794,7 +944,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
794
944
  <DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
795
945
  ```
796
946
 
797
- Check the [documentation](https://mui.com/x/react-data-grid/rows/#row-spacing) for more information.
947
+ Check the [documentation](https://mui.com/x/react-data-grid/row-height/#row-spacing) for more information.
798
948
 
799
949
  ### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
800
950
 
@@ -1048,7 +1198,7 @@ _Jan 28, 2022_
1048
1198
 
1049
1199
  A big thanks to the 9 contributors who made this release possible. Here are some highlights โœจ:
1050
1200
 
1051
- - ๐Ÿšฃ Introduce [variable row height](https://mui.com/x/react-data-grid/rows/#variable-row-height) (#438) @DanailH
1201
+ - ๐Ÿšฃ Introduce [variable row height](https://mui.com/x/react-data-grid/row-height/#variable-row-height) (#438) @DanailH
1052
1202
 
1053
1203
  Allows for setting a row-specific height.
1054
1204
  By default, all rows have the same height, but now you can set the height on a per-row basis.
@@ -1416,7 +1566,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
1416
1566
  - [core] Fix `yarn prettier` script (#3292) @oliviertassinari
1417
1567
  - [core] Improve tests for Tree Data (#3366) @flaviendelangle
1418
1568
  - [core] Never import directly from the `__modules__` folder in the `x-data-grid-generator` package (#3379) @flaviendelangle
1419
- - [core] Transition to a new StackOverflow tag (#3308) @oliviertassinari
1569
+ - [core] Transition to a new Stack Overflow tag (#3308) @oliviertassinari
1420
1570
  - [core] Update monorepo (#3370) @flaviendelangle
1421
1571
  - [core] Use pre-processors for sorting and filtering (#3318) @flaviendelangle
1422
1572
  - [test] Replace `useFakeTimers` (#3323) @m4theushw
@@ -3700,7 +3850,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
3700
3850
  - ๐ŸŽ Add `onRowsScrollEnd` to support infinite loading (#1199) @DanailH
3701
3851
  This is an XGrid feature. Provides the ability to tap into the `onRowsScrollEnd` which is called when the scroll reaches the bottom of the grid viewport allowing developers to load additional data. It can be used with a combination of `scrollBottomThreshold` to control the area in which the `onRowsScrollEnd` is called.
3702
3852
 
3703
- See the documentation for [more details](https://mui.com/x/react-data-grid/rows/#infinite-loading).
3853
+ See the documentation for [more details](https://mui.com/x/react-data-grid/row-updates/#infinite-loading).
3704
3854
 
3705
3855
  - ๐Ÿ•น Provide the ability to sort by multiple columns using Shift+click (#1203) @dtassone
3706
3856
  - ๐Ÿ‡ต๐Ÿ‡ฑ Added pl-PL locale (#1117) @LarsKumbier
package/README.md CHANGED
@@ -8,11 +8,26 @@ It's part of MUI X, an open core extension of MUI, with advanced components.
8
8
  Install the package in your project directory with:
9
9
 
10
10
  ```sh
11
- // with npm
12
11
  npm install @mui/x-date-pickers-pro
12
+ ```
13
+
14
+ Then install the date library of your choice (if not already installed).
15
+ We currently support 4 different date-libraries:
13
16
 
14
- // with yarn
15
- yarn add @mui/x-date-pickers-pro
17
+ - [date-fns](https://date-fns.org/)
18
+ - [Day.js](https://day.js.org/)
19
+ - [Luxon](https://moment.github.io/luxon/#/)
20
+ - [Moment.js](https://momentjs.com/)
21
+
22
+ ```sh
23
+ // date-fns
24
+ npm install date-fns
25
+ // or dayjs
26
+ npm install dayjs
27
+ // or luxon
28
+ npm install luxon
29
+ // or moment
30
+ npm install moment
16
31
  ```
17
32
 
18
33
  This component has the following peer dependencies that you will need to install as well.
@@ -25,41 +40,28 @@ This component has the following peer dependencies that you will need to install
25
40
  },
26
41
  ```
27
42
 
28
- You need to provide a date-library that is used by the pickers by setting the `dateAdapter` to an adapter of your choosing.
29
-
30
- We currently support 4 different date-libraries:
31
-
32
- - [date-fns](https://date-fns.org/)
33
- - [Day.js](https://day.js.org/)
34
- - [Luxon](https://moment.github.io/luxon/#/)
35
- - [Moment.js](https://momentjs.com/)
36
-
37
43
  If you need to use `js-joda`, `date-fns-jalali`, `jalaali`, or `hijri` library, you should be able to find the corresponding date-library from [`@date-io`](https://github.com/dmtrKovalenko/date-io#projects).
44
+ In such a case, you will have to install both the date-library and the corresponding @date-io adapter.
38
45
 
39
- First, you have to install the adapter package for the date-library you want to use:
40
-
41
- ```sh
42
- // date-fns
43
- npm install @date-io/date-fns
44
- // or for Day.js
45
- npm install @date-io/dayjs
46
- // or for Luxon
47
- npm install @date-io/luxon
48
- // or for Moment.js
49
- npm install @date-io/moment
46
+ ```jsx
47
+ // To use moment-jalaali
48
+ npm install moment-jalaali
49
+ npm install @date-io/jalaali
50
50
  ```
51
51
 
52
- Then you have to set the `dateAdapter` prop of the `LocalizationProvider` accordingly:
52
+ After installation completed, you have to set the `dateAdapter` prop of the `LocalizationProvider` accordingly.
53
+ The supported adapters are exported from `@mui/x-date-pickers-pro`.
53
54
 
54
55
  ```js
56
+ import { LocalizationProvider } from '@mui/x-date-pickers-pro';
55
57
  // date-fns
56
- import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
57
- // or for Day.js
58
- import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
59
- // or for Luxon
60
- import { AdapterLuxon } from '@mui/x-date-pickers/AdapterLuxon';
61
- // or for Moment.js
62
- import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment';
58
+ import { AdapterDateFns } from '@mui/x-date-pickers-pro/AdapterDateFns';
59
+ // or for dayjs
60
+ import { AdapterDayjs } from '@mui/x-date-pickers-pro/AdapterDayjs';
61
+ // or for luxon
62
+ import { AdapterLuxon } from '@mui/x-date-pickers-pro/AdapterLuxon';
63
+ // or for moment
64
+ import { AdapterMoment } from '@mui/x-date-pickers-pro/AdapterMoment';
63
65
 
64
66
  function App({ children }) {
65
67
  return <LocalizationProvider dateAdapter={AdapterDateFns}>{children}</LocalizationProvider>;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-beta.0
1
+ /** @license MUI v5.0.0-beta.3
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 = "MTY1NzE0NDgwMDAwMA==";
3
+ const releaseInfo = "MTY1OTA0NTYwMDAwMA==";
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/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-beta.0
1
+ /** @license MUI v5.0.0-beta.3
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 = "MTY1NzE0NDgwMDAwMA==";
3
+ var releaseInfo = "MTY1OTA0NTYwMDAwMA==";
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.0.0-beta.0
1
+ /** @license MUI v5.0.0-beta.3
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 = "MTY1NzE0NDgwMDAwMA==";
3
+ const releaseInfo = "MTY1OTA0NTYwMDAwMA==";
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.0.0-beta.0
1
+ /** @license MUI v5.0.0-beta.3
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 = "MTY1NzE0NDgwMDAwMA==";
11
+ const releaseInfo = "MTY1OTA0NTYwMDAwMA==";
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-date-pickers-pro",
3
- "version": "5.0.0-beta.0",
3
+ "version": "5.0.0-beta.3",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -30,13 +30,13 @@
30
30
  "directory": "packages/x-date-pickers-pro"
31
31
  },
32
32
  "dependencies": {
33
- "@babel/runtime": "^7.17.2",
33
+ "@babel/runtime": "^7.18.6",
34
34
  "@date-io/date-fns": "^2.14.0",
35
35
  "@date-io/dayjs": "^2.14.0",
36
36
  "@date-io/luxon": "^2.14.0",
37
37
  "@date-io/moment": "^2.14.0",
38
38
  "@mui/utils": "^5.4.1",
39
- "@mui/x-date-pickers": "5.0.0-beta.0",
39
+ "@mui/x-date-pickers": "5.0.0-beta.3",
40
40
  "@mui/x-license-pro": "5.12.1",
41
41
  "clsx": "^1.2.1",
42
42
  "prop-types": "^15.7.2",
@@ -48,7 +48,7 @@
48
48
  "@mui/system": "^5.4.1",
49
49
  "date-fns": "^2.25.0",
50
50
  "dayjs": "^1.10.7",
51
- "luxon": "^1.28.0 || ^2.0.0",
51
+ "luxon": "^1.28.0 || ^2.0.0 || ^3.0.0",
52
52
  "moment": "^2.29.1",
53
53
  "react": "^17.0.2 || ^18.0.0"
54
54
  },