@mui/x-date-pickers-pro 5.0.0-beta.1 → 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 +147 -6
- 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,147 @@
|
|
|
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
|
+
|
|
47
|
+
## 5.15.0
|
|
48
|
+
|
|
49
|
+
_Jul 29, 2022_
|
|
50
|
+
|
|
51
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
52
|
+
|
|
53
|
+
- 🎁 Introduce aggregation (#5592) @flaviendelangle
|
|
54
|
+
|
|
55
|
+
Premium users can now aggregate data in the grid.
|
|
56
|
+
Extract information like sum, average, count, and others with a couple of clicks.
|
|
57
|
+
|
|
58
|
+
https://user-images.githubusercontent.com/45398769/181581503-77cc412e-9d9e-4de1-8bc3-c3bccc54cdaa.mp4
|
|
59
|
+
|
|
60
|
+
To enable this feature, add `experimentalFeatures={{ aggregation: true }}`.
|
|
61
|
+
Aggregation functions are customizable and they combine well with row grouping.
|
|
62
|
+
See the [documentation](https://mui.com/x/react-data-grid/aggregation/) to explore everything it has to offer.
|
|
63
|
+
|
|
64
|
+
- 🚀 Introduce row pinning (#4863) @cherniavskii
|
|
65
|
+
|
|
66
|
+
Pro users can now pin rows on top or bottom of the grid.
|
|
67
|
+
|
|
68
|
+
https://user-images.githubusercontent.com/45398769/181581493-56c733a3-6dd5-4546-bf8d-3f2dff72b14a.mp4
|
|
69
|
+
|
|
70
|
+
To do so, enable the feature with `experimentalFeatures={{ rowPinning: true }}` and provide the pinned rows data to the `pinnedRows` prop.
|
|
71
|
+
For more details, see the [documentation](https://mui.com/x/react-data-grid/row-pinning/).
|
|
72
|
+
|
|
73
|
+
- 🌍 Add simplified Chinese (zh-CN) locale to pickers (#5584) @gamecss
|
|
74
|
+
- 📚 Documentation improvements
|
|
75
|
+
|
|
76
|
+
### `@mui/x-data-grid@v5.15.0` / `@mui/x-data-grid-pro@v5.15.0` / `@mui/x-data-grid-premium@v5.15.0`
|
|
77
|
+
|
|
78
|
+
#### Changes
|
|
79
|
+
|
|
80
|
+
- [DataGrid] Add prop to keep modifications while processing props (#5309) @m4theushw
|
|
81
|
+
- [DataGrid] Fix container width change on React 18 (#5566) @m4theushw
|
|
82
|
+
- [DataGrid] Fix ellipsis style convention (#5587) @oliviertassinari
|
|
83
|
+
- [DataGridPro] Implement row pinning (#4863) @cherniavskii
|
|
84
|
+
- [DataGridPremium] Make aggregation public (#5592) @cherniavskii
|
|
85
|
+
- [l10n] Improve simplified Chinese (zh-CN) locale (#5584) @gamecss
|
|
86
|
+
|
|
87
|
+
### `@mui/x-date-pickers@v5.0.0-beta.3` / `@mui/x-date-picker-pro@5.0.0-beta.3`
|
|
88
|
+
|
|
89
|
+
#### Changes
|
|
90
|
+
|
|
91
|
+
- [l10n] Add simplified Chinese (zh-CN) locale (#5584) @gamecss
|
|
92
|
+
|
|
93
|
+
### Docs
|
|
94
|
+
|
|
95
|
+
- [docs] Split docs page about rows (#5195) @flaviendelangle
|
|
96
|
+
- [docs] Add warning clarifications (#5399) @alexfauquette
|
|
97
|
+
- [docs] Correct slot CSS classes for Pro and Premium components (#5452) @alexfauquette
|
|
98
|
+
- [docs] Fix internal link to `valueParser` (#5450) @alexfauquette
|
|
99
|
+
|
|
100
|
+
### Core
|
|
101
|
+
|
|
102
|
+
- [core] Upgrade monorepo (#5560) @m4theushw
|
|
103
|
+
|
|
104
|
+
## 5.14.0
|
|
105
|
+
|
|
106
|
+
_Jul 21, 2022_
|
|
107
|
+
|
|
108
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
109
|
+
|
|
110
|
+
- 🧪 Export `GridBooleanCell` component from data grid (#5537) @cliedeman
|
|
111
|
+
- ⚙️ Improve accessibility of the Export menu (#5486) @nogalpaulina
|
|
112
|
+
- 🌍 Improvements to different locales
|
|
113
|
+
- 📚 Documentation improvements
|
|
114
|
+
- 🐞 Bugfixes
|
|
115
|
+
|
|
116
|
+
### `@mui/x-data-grid@5.14.0` / `@mui/x-data-grid-pro@5.14.0` / `@mui/x-data-grid-premium@5.14.0`
|
|
117
|
+
|
|
118
|
+
#### Changes
|
|
119
|
+
|
|
120
|
+
- [DataGrid] Add generics to `GridPreProcessEditCellProps` (#5510) @YunosukeY
|
|
121
|
+
- [DataGrid] Avoid inconsistent state export (#5390) @flaviendelangle
|
|
122
|
+
- [DataGrid] Export `GridBooleanCell` component (#5537) @cliedeman
|
|
123
|
+
- [DataGrid] Fix `date`/`dateTime` edit input font size to match view mode (#5304) @cherniavskii
|
|
124
|
+
- [DataGrid] Fix loading overlay position (#5558) @DanailH
|
|
125
|
+
- [DataGrid] Improve accessibility of the Export menu in the toolbar (#5486) @nogalpaulina
|
|
126
|
+
- [DataGridPremium] Implement Aggregation - not publicly released (#4208) @flaviendelangle
|
|
127
|
+
- [DataGridPremium] Fix crash when exporting all columns to Excel (#5425) @cherniavskii
|
|
128
|
+
- [l10n] Add Traditional Chinese (zh-TW) locale (#5498) @happyincent
|
|
129
|
+
|
|
130
|
+
### `@mui/x-date-pickers@v5.0.0-beta.2` / `@mui/x-date-picker-pro@5.0.0-beta.2`
|
|
131
|
+
|
|
132
|
+
#### Changes
|
|
133
|
+
|
|
134
|
+
- [l10n] Add Norwegian (nb-NO) locale (#5475) @elkebab
|
|
135
|
+
|
|
136
|
+
### Docs
|
|
137
|
+
|
|
138
|
+
- [docs] New page presenting the `apiRef` (#5273) @flaviendelangle
|
|
139
|
+
- [docs] Remove blank line @oliviertassinari
|
|
140
|
+
|
|
141
|
+
### Core
|
|
142
|
+
|
|
143
|
+
- [core] Add missing comments on zh-TW translation (#5559) @flaviendelangle
|
|
144
|
+
- [core] Polish on the bug issue template (#5525) @oliviertassinari
|
|
145
|
+
- [test] Add more tests related to `isPrintableKey` (#5458) @mnajdova
|
|
146
|
+
|
|
6
147
|
## 5.13.1
|
|
7
148
|
|
|
8
149
|
_Jul 15, 2022_
|
|
@@ -263,7 +404,7 @@ _May 31, 2022_
|
|
|
263
404
|
|
|
264
405
|
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
265
406
|
|
|
266
|
-
- 🎁 Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/
|
|
407
|
+
- 🎁 Introduce support for [dynamic row height](https://mui.com/x/react-data-grid/row-height/#dynamic-row-height) (#4859) @m4theushw
|
|
267
408
|
|
|
268
409
|
<img src="https://user-images.githubusercontent.com/42154031/171183167-718d7bcd-ec0f-459e-97fe-0f650abb4a99.gif" width="800">
|
|
269
410
|
|
|
@@ -580,7 +721,7 @@ _Apr 25, 2022_
|
|
|
580
721
|
|
|
581
722
|
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
582
723
|
|
|
583
|
-
- 🎁 Introduce [Row reorder](https://mui.com/x/react-data-grid/
|
|
724
|
+
- 🎁 Introduce [Row reorder](https://mui.com/x/react-data-grid/row-ordering/) (#4034) @DanailH
|
|
584
725
|
|
|
585
726
|
<img src="https://user-images.githubusercontent.com/5858539/165091263-23472fbb-a989-44b8-849a-d2185adfe13b.gif" width="800">
|
|
586
727
|
|
|
@@ -844,7 +985,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
844
985
|
<DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
|
|
845
986
|
```
|
|
846
987
|
|
|
847
|
-
Check the [documentation](https://mui.com/x/react-data-grid/
|
|
988
|
+
Check the [documentation](https://mui.com/x/react-data-grid/row-height/#row-spacing) for more information.
|
|
848
989
|
|
|
849
990
|
### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
|
|
850
991
|
|
|
@@ -1098,7 +1239,7 @@ _Jan 28, 2022_
|
|
|
1098
1239
|
|
|
1099
1240
|
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
1100
1241
|
|
|
1101
|
-
- 🚣 Introduce [variable row height](https://mui.com/x/react-data-grid/
|
|
1242
|
+
- 🚣 Introduce [variable row height](https://mui.com/x/react-data-grid/row-height/#variable-row-height) (#438) @DanailH
|
|
1102
1243
|
|
|
1103
1244
|
Allows for setting a row-specific height.
|
|
1104
1245
|
By default, all rows have the same height, but now you can set the height on a per-row basis.
|
|
@@ -1466,7 +1607,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
1466
1607
|
- [core] Fix `yarn prettier` script (#3292) @oliviertassinari
|
|
1467
1608
|
- [core] Improve tests for Tree Data (#3366) @flaviendelangle
|
|
1468
1609
|
- [core] Never import directly from the `__modules__` folder in the `x-data-grid-generator` package (#3379) @flaviendelangle
|
|
1469
|
-
- [core] Transition to a new
|
|
1610
|
+
- [core] Transition to a new Stack Overflow tag (#3308) @oliviertassinari
|
|
1470
1611
|
- [core] Update monorepo (#3370) @flaviendelangle
|
|
1471
1612
|
- [core] Use pre-processors for sorting and filtering (#3318) @flaviendelangle
|
|
1472
1613
|
- [test] Replace `useFakeTimers` (#3323) @m4theushw
|
|
@@ -3750,7 +3891,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
|
|
|
3750
3891
|
- 🎁 Add `onRowsScrollEnd` to support infinite loading (#1199) @DanailH
|
|
3751
3892
|
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.
|
|
3752
3893
|
|
|
3753
|
-
See the documentation for [more details](https://mui.com/x/react-data-grid/
|
|
3894
|
+
See the documentation for [more details](https://mui.com/x/react-data-grid/row-updates/#infinite-loading).
|
|
3754
3895
|
|
|
3755
3896
|
- 🕹 Provide the ability to sort by multiple columns using Shift+click (#1203) @dtassone
|
|
3756
3897
|
- 🇵🇱 Added pl-PL locale (#1117) @LarsKumbier
|
|
@@ -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",
|