@mui/x-date-pickers-pro 5.0.0-beta.3 → 5.0.0-beta.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.
- package/CHANGELOG.md +42 -1
- package/DateRangePicker/DateRangePicker.js +8 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +8 -0
- package/MobileDateRangePicker/MobileDateRangePicker.js +8 -0
- package/StaticDateRangePicker/StaticDateRangePicker.js +8 -0
- package/index.js +1 -1
- package/internal/utils/releaseInfo.js +1 -1
- package/legacy/DateRangePicker/DateRangePicker.js +8 -0
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +8 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +8 -0
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +8 -0
- package/legacy/index.js +1 -1
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/modern/DateRangePicker/DateRangePicker.js +8 -0
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +8 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +8 -0
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +8 -0
- package/modern/index.js +1 -1
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +8 -0
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +8 -0
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +8 -0
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +8 -0
- package/node/index.js +1 -1
- package/node/internal/utils/releaseInfo.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,47 @@
|
|
|
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.1
|
|
7
|
+
|
|
8
|
+
_Aug 4, 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
|
+
- 📚 New [page presenting the `apiRef`](https://mui.com/x/react-data-grid/api-object/) (#5273) @flaviendelangle
|
|
13
|
+
- ✨ Better keyboard support for start editing cells (#5511) @oliviertassinari
|
|
14
|
+
- 🌍 Improvements to different locales
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
### `@mui/x-data-grid@v5.15.1` / `@mui/x-data-grid-pro@v5.15.1` / `@mui/x-data-grid-premium@v5.15.1`
|
|
18
|
+
|
|
19
|
+
#### Changes
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Improve start edit UX (#5511) @oliviertassinari
|
|
22
|
+
- [DataGrid] Add `initialOpen` prop to `GridEditSingleSelectCell` to allow overriding initial open state (#5645) @shapaaa
|
|
23
|
+
- [DataGrid] Forward `ref` to root element in `GridEditInputCell` (#5631) @Zenoo
|
|
24
|
+
- [DataGrid] Toggle open state when clicking on buttons in the `GridToolbar` (#5503) @cherniavskii
|
|
25
|
+
- [DataGrid] Improve German (de-DE) locale (#5586) @sebastianfrey
|
|
26
|
+
- [DataGrid] Improve Korean (ko-KR) locale (#5668) @Einere
|
|
27
|
+
- [DataGrid] Complete Italian (it-IT) locale (#5487) @mamodev
|
|
28
|
+
|
|
29
|
+
### `@mui/x-date-pickers@v5.0.0-beta.4` / `@mui/x-date-picker-pro@5.0.0-beta.4`
|
|
30
|
+
|
|
31
|
+
#### Changes
|
|
32
|
+
|
|
33
|
+
- [DatePicker] Customize day formatter in the calendar (#5373) @alexfauquette
|
|
34
|
+
|
|
35
|
+
### Docs
|
|
36
|
+
|
|
37
|
+
- [docs] New location for the legal content (#5595) @oliviertassinari
|
|
38
|
+
- [docs] Update description of `maxDateTime` prop (#5639) @jurecuhalev
|
|
39
|
+
- [docs] Add missing `date-fns` dependency when opening Codesandbox demo (#5692) @cherniavskii
|
|
40
|
+
|
|
41
|
+
### Core
|
|
42
|
+
|
|
43
|
+
- [core] Drop usage of `GRID_EXPERIMENTAL_ENABLED` env variable (#5669) @ar7casper
|
|
44
|
+
- [core] Isolate asset loading under /x/ (#5594) @oliviertassinari
|
|
45
|
+
- [core] Upgrade node to v14 (#4999) @cherniavskii
|
|
46
|
+
|
|
6
47
|
## 5.15.0
|
|
7
48
|
|
|
8
49
|
_Jul 29, 2022_
|
|
@@ -13,7 +54,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
13
54
|
|
|
14
55
|
Premium users can now aggregate data in the grid.
|
|
15
56
|
Extract information like sum, average, count, and others with a couple of clicks.
|
|
16
|
-
|
|
57
|
+
|
|
17
58
|
https://user-images.githubusercontent.com/45398769/181581503-77cc412e-9d9e-4de1-8bc3-c3bccc54cdaa.mp4
|
|
18
59
|
|
|
19
60
|
To enable this feature, add `experimentalFeatures={{ aggregation: true }}`.
|
|
@@ -95,6 +95,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
95
95
|
*/
|
|
96
96
|
componentsProps: PropTypes.object,
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Formats the day of week displayed in the calendar header.
|
|
100
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
101
|
+
* @returns {string} The name to display.
|
|
102
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
103
|
+
*/
|
|
104
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
105
|
+
|
|
98
106
|
/**
|
|
99
107
|
* Default calendar month displayed when `value={null}`.
|
|
100
108
|
*/
|
|
@@ -113,6 +113,14 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes = {
|
|
|
113
113
|
*/
|
|
114
114
|
componentsProps: PropTypes.object,
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Formats the day of week displayed in the calendar header.
|
|
118
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
119
|
+
* @returns {string} The name to display.
|
|
120
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
121
|
+
*/
|
|
122
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
123
|
+
|
|
116
124
|
/**
|
|
117
125
|
* Default calendar month displayed when `value={null}`.
|
|
118
126
|
*/
|
|
@@ -118,6 +118,14 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes = {
|
|
|
118
118
|
*/
|
|
119
119
|
componentsProps: PropTypes.object,
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Formats the day of week displayed in the calendar header.
|
|
123
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
124
|
+
* @returns {string} The name to display.
|
|
125
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
126
|
+
*/
|
|
127
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
128
|
+
|
|
121
129
|
/**
|
|
122
130
|
* Default calendar month displayed when `value={null}`.
|
|
123
131
|
*/
|
|
@@ -106,6 +106,14 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes = {
|
|
|
106
106
|
*/
|
|
107
107
|
componentsProps: PropTypes.object,
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Formats the day of week displayed in the calendar header.
|
|
111
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
112
|
+
* @returns {string} The name to display.
|
|
113
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
114
|
+
*/
|
|
115
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
116
|
+
|
|
109
117
|
/**
|
|
110
118
|
* Default calendar month displayed when `value={null}`.
|
|
111
119
|
*/
|
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY1OTU2NDAwMDAwMA==";
|
|
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).
|
|
@@ -94,6 +94,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
94
94
|
*/
|
|
95
95
|
componentsProps: PropTypes.object,
|
|
96
96
|
|
|
97
|
+
/**
|
|
98
|
+
* Formats the day of week displayed in the calendar header.
|
|
99
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
100
|
+
* @returns {string} The name to display.
|
|
101
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
102
|
+
*/
|
|
103
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
104
|
+
|
|
97
105
|
/**
|
|
98
106
|
* Default calendar month displayed when `value={null}`.
|
|
99
107
|
*/
|
|
@@ -119,6 +119,14 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes = {
|
|
|
119
119
|
*/
|
|
120
120
|
componentsProps: PropTypes.object,
|
|
121
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Formats the day of week displayed in the calendar header.
|
|
124
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
125
|
+
* @returns {string} The name to display.
|
|
126
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
127
|
+
*/
|
|
128
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
129
|
+
|
|
122
130
|
/**
|
|
123
131
|
* Default calendar month displayed when `value={null}`.
|
|
124
132
|
*/
|
|
@@ -120,6 +120,14 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes = {
|
|
|
120
120
|
*/
|
|
121
121
|
componentsProps: PropTypes.object,
|
|
122
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Formats the day of week displayed in the calendar header.
|
|
125
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
126
|
+
* @returns {string} The name to display.
|
|
127
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
128
|
+
*/
|
|
129
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
130
|
+
|
|
123
131
|
/**
|
|
124
132
|
* Default calendar month displayed when `value={null}`.
|
|
125
133
|
*/
|
|
@@ -113,6 +113,14 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes = {
|
|
|
113
113
|
*/
|
|
114
114
|
componentsProps: PropTypes.object,
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Formats the day of week displayed in the calendar header.
|
|
118
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
119
|
+
* @returns {string} The name to display.
|
|
120
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
121
|
+
*/
|
|
122
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
123
|
+
|
|
116
124
|
/**
|
|
117
125
|
* Default calendar month displayed when `value={null}`.
|
|
118
126
|
*/
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY1OTU2NDAwMDAwMA==";
|
|
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).
|
|
@@ -95,6 +95,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
95
95
|
*/
|
|
96
96
|
componentsProps: PropTypes.object,
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
* Formats the day of week displayed in the calendar header.
|
|
100
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
101
|
+
* @returns {string} The name to display.
|
|
102
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
103
|
+
*/
|
|
104
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
105
|
+
|
|
98
106
|
/**
|
|
99
107
|
* Default calendar month displayed when `value={null}`.
|
|
100
108
|
*/
|
|
@@ -113,6 +113,14 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes = {
|
|
|
113
113
|
*/
|
|
114
114
|
componentsProps: PropTypes.object,
|
|
115
115
|
|
|
116
|
+
/**
|
|
117
|
+
* Formats the day of week displayed in the calendar header.
|
|
118
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
119
|
+
* @returns {string} The name to display.
|
|
120
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
121
|
+
*/
|
|
122
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
123
|
+
|
|
116
124
|
/**
|
|
117
125
|
* Default calendar month displayed when `value={null}`.
|
|
118
126
|
*/
|
|
@@ -118,6 +118,14 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes = {
|
|
|
118
118
|
*/
|
|
119
119
|
componentsProps: PropTypes.object,
|
|
120
120
|
|
|
121
|
+
/**
|
|
122
|
+
* Formats the day of week displayed in the calendar header.
|
|
123
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
124
|
+
* @returns {string} The name to display.
|
|
125
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
126
|
+
*/
|
|
127
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
128
|
+
|
|
121
129
|
/**
|
|
122
130
|
* Default calendar month displayed when `value={null}`.
|
|
123
131
|
*/
|
|
@@ -106,6 +106,14 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes = {
|
|
|
106
106
|
*/
|
|
107
107
|
componentsProps: PropTypes.object,
|
|
108
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Formats the day of week displayed in the calendar header.
|
|
111
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
112
|
+
* @returns {string} The name to display.
|
|
113
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
114
|
+
*/
|
|
115
|
+
dayOfWeekFormatter: PropTypes.func,
|
|
116
|
+
|
|
109
117
|
/**
|
|
110
118
|
* Default calendar month displayed when `value={null}`.
|
|
111
119
|
*/
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY1OTU2NDAwMDAwMA==";
|
|
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).
|
|
@@ -119,6 +119,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
119
119
|
*/
|
|
120
120
|
componentsProps: _propTypes.default.object,
|
|
121
121
|
|
|
122
|
+
/**
|
|
123
|
+
* Formats the day of week displayed in the calendar header.
|
|
124
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
125
|
+
* @returns {string} The name to display.
|
|
126
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
127
|
+
*/
|
|
128
|
+
dayOfWeekFormatter: _propTypes.default.func,
|
|
129
|
+
|
|
122
130
|
/**
|
|
123
131
|
* Default calendar month displayed when `value={null}`.
|
|
124
132
|
*/
|
|
@@ -137,6 +137,14 @@ process.env.NODE_ENV !== "production" ? DesktopDateRangePicker.propTypes = {
|
|
|
137
137
|
*/
|
|
138
138
|
componentsProps: _propTypes.default.object,
|
|
139
139
|
|
|
140
|
+
/**
|
|
141
|
+
* Formats the day of week displayed in the calendar header.
|
|
142
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
143
|
+
* @returns {string} The name to display.
|
|
144
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
145
|
+
*/
|
|
146
|
+
dayOfWeekFormatter: _propTypes.default.func,
|
|
147
|
+
|
|
140
148
|
/**
|
|
141
149
|
* Default calendar month displayed when `value={null}`.
|
|
142
150
|
*/
|
|
@@ -139,6 +139,14 @@ process.env.NODE_ENV !== "production" ? MobileDateRangePicker.propTypes = {
|
|
|
139
139
|
*/
|
|
140
140
|
componentsProps: _propTypes.default.object,
|
|
141
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Formats the day of week displayed in the calendar header.
|
|
144
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
145
|
+
* @returns {string} The name to display.
|
|
146
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
147
|
+
*/
|
|
148
|
+
dayOfWeekFormatter: _propTypes.default.func,
|
|
149
|
+
|
|
142
150
|
/**
|
|
143
151
|
* Default calendar month displayed when `value={null}`.
|
|
144
152
|
*/
|
|
@@ -129,6 +129,14 @@ process.env.NODE_ENV !== "production" ? StaticDateRangePicker.propTypes = {
|
|
|
129
129
|
*/
|
|
130
130
|
componentsProps: _propTypes.default.object,
|
|
131
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Formats the day of week displayed in the calendar header.
|
|
134
|
+
* @param {string} day The day of week provided by the adapter's method `getWeekdays`.
|
|
135
|
+
* @returns {string} The name to display.
|
|
136
|
+
* @default (day) => day.charAt(0).toUpperCase()
|
|
137
|
+
*/
|
|
138
|
+
dayOfWeekFormatter: _propTypes.default.func,
|
|
139
|
+
|
|
132
140
|
/**
|
|
133
141
|
* Default calendar month displayed when `value={null}`.
|
|
134
142
|
*/
|
package/node/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
|
|
|
8
8
|
var _utils = require("@mui/utils");
|
|
9
9
|
|
|
10
10
|
const getReleaseInfo = () => {
|
|
11
|
-
const releaseInfo = "
|
|
11
|
+
const releaseInfo = "MTY1OTU2NDAwMDAwMA==";
|
|
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.
|
|
3
|
+
"version": "5.0.0-beta.4",
|
|
4
4
|
"description": "The commercial edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
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.
|
|
39
|
+
"@mui/x-date-pickers": "5.0.0-beta.4",
|
|
40
40
|
"@mui/x-license-pro": "5.12.1",
|
|
41
41
|
"clsx": "^1.2.1",
|
|
42
42
|
"prop-types": "^15.7.2",
|