@mui/x-date-pickers-pro 7.0.0-alpha.2 → 7.0.0-alpha.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 +241 -0
- package/DateRangeCalendar/DateRangeCalendar.js +3 -3
- package/DateRangePicker/DateRangePicker.js +3 -3
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -3
- package/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/README.md +0 -1
- package/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +3 -3
- package/legacy/DateRangePicker/DateRangePicker.js +3 -3
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -3
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/legacy/index.js +1 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +3 -3
- package/modern/DateRangePicker/DateRangePicker.js +3 -3
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -3
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +3 -3
- package/node/DateRangePicker/DateRangePicker.js +3 -3
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -3
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +3 -3
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +3 -3
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,188 @@
|
|
|
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
|
+
## 7.0.0-alpha.3
|
|
7
|
+
|
|
8
|
+
_Dec 4, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Support localized start of the week on pickers' `AdapterLuxon`
|
|
13
|
+
|
|
14
|
+
When using Luxon 3.4.4 or higher, the start of the week will be defined by the date locale (e.g.: Sunday for `en-US`, Monday for `fr-FR`).
|
|
15
|
+
|
|
16
|
+
- 📈 Fix a lot of Charts package issues
|
|
17
|
+
- 🎉 The Data Grid features Cell selection and Clipboard paste are now stable
|
|
18
|
+
- 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
|
|
19
|
+
- 🐞 Bugfixes
|
|
20
|
+
- 📚 Documentation improvements
|
|
21
|
+
|
|
22
|
+
### Data Grid
|
|
23
|
+
|
|
24
|
+
#### Breaking changes
|
|
25
|
+
|
|
26
|
+
- The clipboard paste feature is now enabled by default. The flag `clipboardPaste` is no longer needed to be passed to the `experimentalFeatures` prop.
|
|
27
|
+
|
|
28
|
+
- The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
|
|
29
|
+
|
|
30
|
+
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#DataGrid-prop-filterDebounceMs) prop to customize filter debounce time.
|
|
31
|
+
|
|
32
|
+
- The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
|
|
33
|
+
|
|
34
|
+
- The `GridPreferencesPanel` component is not exported anymore as it wasn't meant to be used outside of the Data Grid.
|
|
35
|
+
|
|
36
|
+
- The `unstable_` prefix has been removed from the cell selection props listed below.
|
|
37
|
+
|
|
38
|
+
| Old name | New name |
|
|
39
|
+
| :------------------------------------ | :--------------------------- |
|
|
40
|
+
| `unstable_cellSelection` | `cellSelection` |
|
|
41
|
+
| `unstable_cellSelectionModel` | `cellSelectionModel` |
|
|
42
|
+
| `unstable_onCellSelectionModelChange` | `onCellSelectionModelChange` |
|
|
43
|
+
|
|
44
|
+
- The `unstable_` prefix has been removed from the cell selection API methods listed below.
|
|
45
|
+
|
|
46
|
+
| Old name | New name |
|
|
47
|
+
| :--------------------------------- | :------------------------ |
|
|
48
|
+
| `unstable_getCellSelectionModel` | `getCellSelectionModel` |
|
|
49
|
+
| `unstable_getSelectedCellsAsArray` | `getSelectedCellsAsArray` |
|
|
50
|
+
| `unstable_isCellSelected` | `isCellSelected` |
|
|
51
|
+
| `unstable_selectCellRange` | `selectCellRange` |
|
|
52
|
+
| `unstable_setCellSelectionModel` | `setCellSelectionModel` |
|
|
53
|
+
|
|
54
|
+
- The Quick Filter now ignores hidden columns by default.
|
|
55
|
+
See [including hidden columns](https://next.mui.com/x/react-data-grid/filtering/quick-filter/#including-hidden-columns) section for more details.
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-data-grid@7.0.0-alpha.3`
|
|
58
|
+
|
|
59
|
+
- [DataGrid] Fix cell editing adding a leading "v" on paste (#9205) @prasad5795
|
|
60
|
+
- [DataGrid] Exclude hidden columns from quick filtering by default (#11229) @cherniavskii
|
|
61
|
+
- [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11000) @gitstart
|
|
62
|
+
- [DataGrid] Fix handling of event target in portal (#11174) @cherniavskii
|
|
63
|
+
- [DataGrid] Remove deprecated constants (#11233) @michelengelen
|
|
64
|
+
- [DataGrid] Remove the `preferencesPanel` slot (#11228) @cherniavskii
|
|
65
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#10856) @Kristiqn95
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-data-grid-pro@7.0.0-alpha.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-data-grid@7.0.0-alpha.3`.
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-data-grid-premium@7.0.0-alpha.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-alpha.3`, plus:
|
|
74
|
+
|
|
75
|
+
- [DataGridPremium] Fix aggregated column ignoring column definition changes (#11129) @cherniavskii
|
|
76
|
+
- [DataGridPremium] Make Cell selection feature stable (#11246) @MBilalShafi
|
|
77
|
+
- [DataGridPremium] Make Clipboard paste feature stable (#11248) @MBilalShafi
|
|
78
|
+
|
|
79
|
+
### Date Pickers
|
|
80
|
+
|
|
81
|
+
#### Breaking changes
|
|
82
|
+
|
|
83
|
+
- The Date and Time Pickers now use the localized week when using `AdapterLuxon` and Luxon v3.4.4 or higher is installed.
|
|
84
|
+
This new behavior allows `AdapterLuxon` to have the same behavior as the other adapters.
|
|
85
|
+
If you want to keep the start of the week on Monday even if your locale says otherwise, you can hardcode the week settings as follows:
|
|
86
|
+
The Firefox browser currently does not support this behavior because the [getWeekInfo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) API is not yet implemented.
|
|
87
|
+
|
|
88
|
+
```ts
|
|
89
|
+
import { Settings } from 'luxon';
|
|
90
|
+
|
|
91
|
+
Settings.defaultWeekSettings = {
|
|
92
|
+
firstDay: 1,
|
|
93
|
+
minimalDays: Info.getMinimumDaysInFirstWeek(),
|
|
94
|
+
weekend: [6, 7],
|
|
95
|
+
};
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
- Add new parameters to the `shortcuts` slot `onChange` callback
|
|
99
|
+
|
|
100
|
+
The `onChange` callback fired when selecting a shortcut now requires two new parameters (previously they were optional):
|
|
101
|
+
|
|
102
|
+
- The [`changeImportance`](/x/react-date-pickers/shortcuts/#behavior-when-selecting-a-shortcut) of the shortcut.
|
|
103
|
+
- The `item` containing the entire shortcut object.
|
|
104
|
+
|
|
105
|
+
```diff
|
|
106
|
+
const CustomShortcuts = (props) => {
|
|
107
|
+
return (
|
|
108
|
+
<React.Fragment>
|
|
109
|
+
{props.items.map(item => {
|
|
110
|
+
const value = item.getValue({ isValid: props.isValid });
|
|
111
|
+
return (
|
|
112
|
+
<button
|
|
113
|
+
- onClick={() => onChange(value)}
|
|
114
|
+
+ onClick={() => onChange(value, props.changeImportance ?? 'accept', item)}
|
|
115
|
+
>
|
|
116
|
+
{value}
|
|
117
|
+
</button>
|
|
118
|
+
)
|
|
119
|
+
}}
|
|
120
|
+
</React.Fragment>
|
|
121
|
+
)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
<DatePicker slots={{ shortcuts: CustomShortcuts }} />
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
- Usage of `AdapterDayjs` with the `customParseFormat` plugin
|
|
128
|
+
The call to `dayjs.extend(customParseFormatPlugin)` has been moved to the `AdapterDayjs` constructor. This allows users to pass custom options to this plugin before the adapter uses it.
|
|
129
|
+
|
|
130
|
+
If you are using this plugin before the rendering of the first `LocalizationProvider` component and did not call `dayjs.extend` in your own codebase, you will need to manually extend `dayjs`:
|
|
131
|
+
|
|
132
|
+
```tsx
|
|
133
|
+
import dayjs from 'dayjs';
|
|
134
|
+
import customParseFormatPlugin from 'dayjs/plugin/customParseFormat';
|
|
135
|
+
|
|
136
|
+
dayjs.extend(customParseFormatPlugin);
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
The other plugins are still added before the adapter initialization.
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-date-pickers@7.0.0-alpha.3`
|
|
142
|
+
|
|
143
|
+
- [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11130) @LukasTy
|
|
144
|
+
- [pickers] Make `changeImportance` and `shortcut` mandatory in `PickersShortcuts` (#10941) @flaviendelangle
|
|
145
|
+
- [pickers] Moved extend with `customParseFormat` to constructor (#11151) @michelengelen
|
|
146
|
+
- [pickers] POC: `PickersTextField` styling - outlined variant (#10778) @noraleonte
|
|
147
|
+
- [pickers] Support localized start of the week on `AdapterLuxon` (#10964) @flaviendelangle
|
|
148
|
+
- [pickers] Use adapter methods instead of date library ones whenever possible (#11142) @flaviendelangle
|
|
149
|
+
|
|
150
|
+
#### `@mui/x-date-pickers-pro@7.0.0-alpha.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
151
|
+
|
|
152
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-alpha.3`.
|
|
153
|
+
|
|
154
|
+
### Charts / `@mui/x-charts@7.0.0-alpha.3`
|
|
155
|
+
|
|
156
|
+
- [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11144) @michelengelen
|
|
157
|
+
- [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
|
|
158
|
+
- [charts] Fix TS config (#11259) @alexfauquette
|
|
159
|
+
- [charts] Fix error with empty dataset (#11063) @alexfauquette
|
|
160
|
+
- [charts] Fix export strategy (#11235) @alexfauquette
|
|
161
|
+
- [charts] Remove outdated prop-types (#11045) @alexfauquette
|
|
162
|
+
|
|
163
|
+
### Docs
|
|
164
|
+
|
|
165
|
+
- [docs] Add `TextField` styling example to customization playground (#10812) @noraleonte
|
|
166
|
+
- [docs] Add a card grid to the installation page (#11177) @danilo-leal
|
|
167
|
+
- [docs] Add end v6 blogpost to whats new page (#10999) @joserodolfofreitas
|
|
168
|
+
- [docs] Add small formatting improvements to the licensing page (#11178) @danilo-leal
|
|
169
|
+
- [docs] Document charts composition (#10710) (#11239) @alexfauquette
|
|
170
|
+
- [docs] Fix <title> generation (#11182) @oliviertassinari
|
|
171
|
+
- [docs] Fix dead anchor link (#11265) @oliviertassinari
|
|
172
|
+
- [docs] Improve Data Grid togglable columns example (#11238) @MBilalShafi
|
|
173
|
+
- [docs] Improve the prop descriptions of `DayCalendar` (#11158) @flaviendelangle
|
|
174
|
+
- [docs] Move the adapter breaking changes in a collapsable block (#11205) @flaviendelangle
|
|
175
|
+
- [docs] Polish Next.js header description @oliviertassinari
|
|
176
|
+
- [docs] Remove the `newFeature` flag on v6 features (#11168) @flaviendelangle
|
|
177
|
+
- [docs] Simplify a bit chart demo (#11173) @oliviertassinari
|
|
178
|
+
- [docs] Standardize the usage of callouts in the MUI X docs (#7127) @samuelsycamore
|
|
179
|
+
- [docs] Adjust the Data Grid demo page design (#11231) @danilo-leal
|
|
180
|
+
|
|
181
|
+
### Core
|
|
182
|
+
|
|
183
|
+
- [core] Make `@mui/system` a direct dependency (#11128) @LukasTy
|
|
184
|
+
- [core] Remove blank lines, coding style @oliviertassinari
|
|
185
|
+
- [core] Remove outdated `ENABLE_AD` env variable (#11181) @oliviertassinari
|
|
186
|
+
- [github] Do not add `plan: Pro` and `plan: Premium` labels on pro / premium issue templates (#10183) @flaviendelangle
|
|
187
|
+
|
|
6
188
|
## 7.0.0-alpha.2
|
|
7
189
|
|
|
8
190
|
_Nov 23, 2023_
|
|
@@ -684,6 +866,65 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
684
866
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
685
867
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
686
868
|
|
|
869
|
+
## 6.18.3
|
|
870
|
+
|
|
871
|
+
_Dec 4, 2023_
|
|
872
|
+
|
|
873
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
874
|
+
|
|
875
|
+
- 📈 Fix a lot of Charts package issues
|
|
876
|
+
- 🌍 Improve Bulgarian (bg-BG) locale on Data Grid
|
|
877
|
+
- 🐞 Bugfixes
|
|
878
|
+
- 📚 Documentation improvements
|
|
879
|
+
|
|
880
|
+
### Data Grid
|
|
881
|
+
|
|
882
|
+
#### `@mui/x-data-grid@6.18.3`
|
|
883
|
+
|
|
884
|
+
- [DataGrid] Fix cell editing adding a leading "v" on paste (#11166) @prasad5795
|
|
885
|
+
- [DataGrid] Fix handling of event target in portal (#11209) @cherniavskii
|
|
886
|
+
- [DataGrid] Fix `onFilterModelChange` being fired with stale field value (#11244) @gitstart
|
|
887
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#10856) (#11206) @Kristiqn95
|
|
888
|
+
|
|
889
|
+
#### `@mui/x-data-grid-pro@6.18.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
890
|
+
|
|
891
|
+
Same changes as in `@mui/x-data-grid@6.18.3`.
|
|
892
|
+
|
|
893
|
+
#### `@mui/x-data-grid-premium@6.18.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
894
|
+
|
|
895
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.3`, plus:
|
|
896
|
+
|
|
897
|
+
- [DataGridPremium] Fix aggregated column ignoring column definition changes (#11176) @cherniavskii
|
|
898
|
+
- [DataGridPremium] Fix custom filter operators not working on aggregated column (#11201) @cherniavskii
|
|
899
|
+
|
|
900
|
+
### Date Pickers
|
|
901
|
+
|
|
902
|
+
#### `@mui/x-date-pickers@6.18.3`
|
|
903
|
+
|
|
904
|
+
- [pickers] Correctly format `MultiSectionDigitalClock` number sections (#11297) @LukasTy
|
|
905
|
+
- [pickers] Expand field placeholder methods flexibility by providing `format` parameter (#11254) @LukasTy
|
|
906
|
+
|
|
907
|
+
#### `@mui/x-date-pickers-pro@6.18.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
908
|
+
|
|
909
|
+
Same changes as in `@mui/x-date-pickers@6.18.3`.
|
|
910
|
+
|
|
911
|
+
### Charts / `@mui/x-charts@6.18.3`
|
|
912
|
+
|
|
913
|
+
- [charts] Adjusted `defaultizeValueFormatter` util to accept an optional `series.valueFormatter` value (#11213) @michelengelen
|
|
914
|
+
- [charts] Apply `labelStyle` and `tickLabelStyle` props on `<ChartsYAxis />` (#11180) @akamfoad
|
|
915
|
+
- [charts] Fix TS config (#11259) @alexfauquette
|
|
916
|
+
- [charts] Fix error with empty dataset (#11063) @alexfauquette
|
|
917
|
+
- [charts] Fix export strategy (#11235) @alexfauquette
|
|
918
|
+
|
|
919
|
+
### Docs
|
|
920
|
+
|
|
921
|
+
- [docs] Add LTS section to support page (#11300) @joserodolfofreitas
|
|
922
|
+
- [docs] Add end v6 blogpost to whats new page (#11299) @joserodolfofreitas
|
|
923
|
+
- [docs] Document charts composition (#10710) @alexfauquette
|
|
924
|
+
- [docs] Fix version links (#11167) @LukasTy
|
|
925
|
+
- [docs] Improve Data Grid togglable columns example (#11241) @MBilalShafi
|
|
926
|
+
- [docs] Split charts overview and getting started in distinct pages (#10910) @alexfauquette
|
|
927
|
+
|
|
687
928
|
## 6.18.2
|
|
688
929
|
|
|
689
930
|
_Nov 23, 2023_
|
|
@@ -563,8 +563,8 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
563
563
|
*/
|
|
564
564
|
displayWeekNumber: PropTypes.bool,
|
|
565
565
|
/**
|
|
566
|
-
*
|
|
567
|
-
* Put it to 6
|
|
566
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
567
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
568
568
|
* @default undefined
|
|
569
569
|
*/
|
|
570
570
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -621,7 +621,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
621
621
|
*/
|
|
622
622
|
referenceDate: PropTypes.any,
|
|
623
623
|
/**
|
|
624
|
-
* Component
|
|
624
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
625
625
|
* @returns {React.ReactNode} The node to render when loading.
|
|
626
626
|
* @default () => "..."
|
|
627
627
|
*/
|
|
@@ -137,8 +137,8 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
137
137
|
*/
|
|
138
138
|
displayWeekNumber: PropTypes.bool,
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
141
|
-
* Put it to 6
|
|
140
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
141
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
142
142
|
* @default undefined
|
|
143
143
|
*/
|
|
144
144
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -254,7 +254,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
254
254
|
*/
|
|
255
255
|
referenceDate: PropTypes.any,
|
|
256
256
|
/**
|
|
257
|
-
* Component
|
|
257
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
258
258
|
* @returns {React.ReactNode} The node to render when loading.
|
|
259
259
|
* @default () => "..."
|
|
260
260
|
*/
|
|
@@ -146,8 +146,8 @@ DesktopDateRangePicker.propTypes = {
|
|
|
146
146
|
*/
|
|
147
147
|
displayWeekNumber: PropTypes.bool,
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Put it to 6
|
|
149
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
150
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
151
151
|
* @default undefined
|
|
152
152
|
*/
|
|
153
153
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -263,7 +263,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
263
263
|
*/
|
|
264
264
|
referenceDate: PropTypes.any,
|
|
265
265
|
/**
|
|
266
|
-
* Component
|
|
266
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
267
267
|
* @returns {React.ReactNode} The node to render when loading.
|
|
268
268
|
* @default () => "..."
|
|
269
269
|
*/
|
|
@@ -146,8 +146,8 @@ MobileDateRangePicker.propTypes = {
|
|
|
146
146
|
*/
|
|
147
147
|
displayWeekNumber: PropTypes.bool,
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Put it to 6
|
|
149
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
150
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
151
151
|
* @default undefined
|
|
152
152
|
*/
|
|
153
153
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -263,7 +263,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
263
263
|
*/
|
|
264
264
|
referenceDate: PropTypes.any,
|
|
265
265
|
/**
|
|
266
|
-
* Component
|
|
266
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
267
267
|
* @returns {React.ReactNode} The node to render when loading.
|
|
268
268
|
* @default () => "..."
|
|
269
269
|
*/
|
package/README.md
CHANGED
|
@@ -132,8 +132,8 @@ StaticDateRangePicker.propTypes = {
|
|
|
132
132
|
*/
|
|
133
133
|
displayWeekNumber: PropTypes.bool,
|
|
134
134
|
/**
|
|
135
|
-
*
|
|
136
|
-
* Put it to 6
|
|
135
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
136
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
137
137
|
* @default undefined
|
|
138
138
|
*/
|
|
139
139
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -214,7 +214,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
214
214
|
*/
|
|
215
215
|
referenceDate: PropTypes.any,
|
|
216
216
|
/**
|
|
217
|
-
* Component
|
|
217
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
218
218
|
* @returns {React.ReactNode} The node to render when loading.
|
|
219
219
|
* @default () => "..."
|
|
220
220
|
*/
|
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 = "MTcwMTY0MDgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -583,8 +583,8 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
583
583
|
*/
|
|
584
584
|
displayWeekNumber: PropTypes.bool,
|
|
585
585
|
/**
|
|
586
|
-
*
|
|
587
|
-
* Put it to 6
|
|
586
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
587
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
588
588
|
* @default undefined
|
|
589
589
|
*/
|
|
590
590
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -641,7 +641,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
641
641
|
*/
|
|
642
642
|
referenceDate: PropTypes.any,
|
|
643
643
|
/**
|
|
644
|
-
* Component
|
|
644
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
645
645
|
* @returns {React.ReactNode} The node to render when loading.
|
|
646
646
|
* @default () => "..."
|
|
647
647
|
*/
|
|
@@ -136,8 +136,8 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
136
136
|
*/
|
|
137
137
|
displayWeekNumber: PropTypes.bool,
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
140
|
-
* Put it to 6
|
|
139
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
140
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
141
141
|
* @default undefined
|
|
142
142
|
*/
|
|
143
143
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -253,7 +253,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
253
253
|
*/
|
|
254
254
|
referenceDate: PropTypes.any,
|
|
255
255
|
/**
|
|
256
|
-
* Component
|
|
256
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
257
257
|
* @returns {React.ReactNode} The node to render when loading.
|
|
258
258
|
* @default () => "..."
|
|
259
259
|
*/
|
|
@@ -145,8 +145,8 @@ DesktopDateRangePicker.propTypes = {
|
|
|
145
145
|
*/
|
|
146
146
|
displayWeekNumber: PropTypes.bool,
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
* Put it to 6
|
|
148
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
149
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
150
150
|
* @default undefined
|
|
151
151
|
*/
|
|
152
152
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -262,7 +262,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
262
262
|
*/
|
|
263
263
|
referenceDate: PropTypes.any,
|
|
264
264
|
/**
|
|
265
|
-
* Component
|
|
265
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
266
266
|
* @returns {React.ReactNode} The node to render when loading.
|
|
267
267
|
* @default () => "..."
|
|
268
268
|
*/
|
|
@@ -145,8 +145,8 @@ MobileDateRangePicker.propTypes = {
|
|
|
145
145
|
*/
|
|
146
146
|
displayWeekNumber: PropTypes.bool,
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
149
|
-
* Put it to 6
|
|
148
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
149
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
150
150
|
* @default undefined
|
|
151
151
|
*/
|
|
152
152
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -262,7 +262,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
262
262
|
*/
|
|
263
263
|
referenceDate: PropTypes.any,
|
|
264
264
|
/**
|
|
265
|
-
* Component
|
|
265
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
266
266
|
* @returns {React.ReactNode} The node to render when loading.
|
|
267
267
|
* @default () => "..."
|
|
268
268
|
*/
|
|
@@ -131,8 +131,8 @@ StaticDateRangePicker.propTypes = {
|
|
|
131
131
|
*/
|
|
132
132
|
displayWeekNumber: PropTypes.bool,
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
135
|
-
* Put it to 6
|
|
134
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
135
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
136
136
|
* @default undefined
|
|
137
137
|
*/
|
|
138
138
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -213,7 +213,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
213
213
|
*/
|
|
214
214
|
referenceDate: PropTypes.any,
|
|
215
215
|
/**
|
|
216
|
-
* Component
|
|
216
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
217
217
|
* @returns {React.ReactNode} The node to render when loading.
|
|
218
218
|
* @default () => "..."
|
|
219
219
|
*/
|
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 = "MTcwMTY0MDgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -555,8 +555,8 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
555
555
|
*/
|
|
556
556
|
displayWeekNumber: PropTypes.bool,
|
|
557
557
|
/**
|
|
558
|
-
*
|
|
559
|
-
* Put it to 6
|
|
558
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
559
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
560
560
|
* @default undefined
|
|
561
561
|
*/
|
|
562
562
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -613,7 +613,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
613
613
|
*/
|
|
614
614
|
referenceDate: PropTypes.any,
|
|
615
615
|
/**
|
|
616
|
-
* Component
|
|
616
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
617
617
|
* @returns {React.ReactNode} The node to render when loading.
|
|
618
618
|
* @default () => "..."
|
|
619
619
|
*/
|
|
@@ -137,8 +137,8 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
137
137
|
*/
|
|
138
138
|
displayWeekNumber: PropTypes.bool,
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
141
|
-
* Put it to 6
|
|
140
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
141
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
142
142
|
* @default undefined
|
|
143
143
|
*/
|
|
144
144
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -254,7 +254,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
254
254
|
*/
|
|
255
255
|
referenceDate: PropTypes.any,
|
|
256
256
|
/**
|
|
257
|
-
* Component
|
|
257
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
258
258
|
* @returns {React.ReactNode} The node to render when loading.
|
|
259
259
|
* @default () => "..."
|
|
260
260
|
*/
|
|
@@ -142,8 +142,8 @@ DesktopDateRangePicker.propTypes = {
|
|
|
142
142
|
*/
|
|
143
143
|
displayWeekNumber: PropTypes.bool,
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
146
|
-
* Put it to 6
|
|
145
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
146
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
147
147
|
* @default undefined
|
|
148
148
|
*/
|
|
149
149
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -259,7 +259,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
259
259
|
*/
|
|
260
260
|
referenceDate: PropTypes.any,
|
|
261
261
|
/**
|
|
262
|
-
* Component
|
|
262
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
263
263
|
* @returns {React.ReactNode} The node to render when loading.
|
|
264
264
|
* @default () => "..."
|
|
265
265
|
*/
|
|
@@ -142,8 +142,8 @@ MobileDateRangePicker.propTypes = {
|
|
|
142
142
|
*/
|
|
143
143
|
displayWeekNumber: PropTypes.bool,
|
|
144
144
|
/**
|
|
145
|
-
*
|
|
146
|
-
* Put it to 6
|
|
145
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
146
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
147
147
|
* @default undefined
|
|
148
148
|
*/
|
|
149
149
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -259,7 +259,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
259
259
|
*/
|
|
260
260
|
referenceDate: PropTypes.any,
|
|
261
261
|
/**
|
|
262
|
-
* Component
|
|
262
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
263
263
|
* @returns {React.ReactNode} The node to render when loading.
|
|
264
264
|
* @default () => "..."
|
|
265
265
|
*/
|
|
@@ -131,8 +131,8 @@ StaticDateRangePicker.propTypes = {
|
|
|
131
131
|
*/
|
|
132
132
|
displayWeekNumber: PropTypes.bool,
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
135
|
-
* Put it to 6
|
|
134
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
135
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
136
136
|
* @default undefined
|
|
137
137
|
*/
|
|
138
138
|
fixedWeekNumber: PropTypes.number,
|
|
@@ -213,7 +213,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
213
213
|
*/
|
|
214
214
|
referenceDate: PropTypes.any,
|
|
215
215
|
/**
|
|
216
|
-
* Component
|
|
216
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
217
217
|
* @returns {React.ReactNode} The node to render when loading.
|
|
218
218
|
* @default () => "..."
|
|
219
219
|
*/
|
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 = "MTcwMTY0MDgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -563,8 +563,8 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
563
563
|
*/
|
|
564
564
|
displayWeekNumber: _propTypes.default.bool,
|
|
565
565
|
/**
|
|
566
|
-
*
|
|
567
|
-
* Put it to 6
|
|
566
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
567
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
568
568
|
* @default undefined
|
|
569
569
|
*/
|
|
570
570
|
fixedWeekNumber: _propTypes.default.number,
|
|
@@ -621,7 +621,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
621
621
|
*/
|
|
622
622
|
referenceDate: _propTypes.default.any,
|
|
623
623
|
/**
|
|
624
|
-
* Component
|
|
624
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
625
625
|
* @returns {React.ReactNode} The node to render when loading.
|
|
626
626
|
* @default () => "..."
|
|
627
627
|
*/
|
|
@@ -146,8 +146,8 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
146
146
|
*/
|
|
147
147
|
displayWeekNumber: _propTypes.default.bool,
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* Put it to 6
|
|
149
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
150
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
151
151
|
* @default undefined
|
|
152
152
|
*/
|
|
153
153
|
fixedWeekNumber: _propTypes.default.number,
|
|
@@ -263,7 +263,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
263
263
|
*/
|
|
264
264
|
referenceDate: _propTypes.default.any,
|
|
265
265
|
/**
|
|
266
|
-
* Component
|
|
266
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
267
267
|
* @returns {React.ReactNode} The node to render when loading.
|
|
268
268
|
* @default () => "..."
|
|
269
269
|
*/
|
|
@@ -151,8 +151,8 @@ DesktopDateRangePicker.propTypes = {
|
|
|
151
151
|
*/
|
|
152
152
|
displayWeekNumber: _propTypes.default.bool,
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
* Put it to 6
|
|
154
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
155
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
156
156
|
* @default undefined
|
|
157
157
|
*/
|
|
158
158
|
fixedWeekNumber: _propTypes.default.number,
|
|
@@ -268,7 +268,7 @@ DesktopDateRangePicker.propTypes = {
|
|
|
268
268
|
*/
|
|
269
269
|
referenceDate: _propTypes.default.any,
|
|
270
270
|
/**
|
|
271
|
-
* Component
|
|
271
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
272
272
|
* @returns {React.ReactNode} The node to render when loading.
|
|
273
273
|
* @default () => "..."
|
|
274
274
|
*/
|
|
@@ -151,8 +151,8 @@ MobileDateRangePicker.propTypes = {
|
|
|
151
151
|
*/
|
|
152
152
|
displayWeekNumber: _propTypes.default.bool,
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
155
|
-
* Put it to 6
|
|
154
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
155
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
156
156
|
* @default undefined
|
|
157
157
|
*/
|
|
158
158
|
fixedWeekNumber: _propTypes.default.number,
|
|
@@ -268,7 +268,7 @@ MobileDateRangePicker.propTypes = {
|
|
|
268
268
|
*/
|
|
269
269
|
referenceDate: _propTypes.default.any,
|
|
270
270
|
/**
|
|
271
|
-
* Component
|
|
271
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
272
272
|
* @returns {React.ReactNode} The node to render when loading.
|
|
273
273
|
* @default () => "..."
|
|
274
274
|
*/
|
|
@@ -140,8 +140,8 @@ StaticDateRangePicker.propTypes = {
|
|
|
140
140
|
*/
|
|
141
141
|
displayWeekNumber: _propTypes.default.bool,
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
144
|
-
* Put it to 6
|
|
143
|
+
* The day view will show as many weeks as needed after the end of the current month to match this value.
|
|
144
|
+
* Put it to 6 to have a fixed number of weeks in Gregorian calendars
|
|
145
145
|
* @default undefined
|
|
146
146
|
*/
|
|
147
147
|
fixedWeekNumber: _propTypes.default.number,
|
|
@@ -222,7 +222,7 @@ StaticDateRangePicker.propTypes = {
|
|
|
222
222
|
*/
|
|
223
223
|
referenceDate: _propTypes.default.any,
|
|
224
224
|
/**
|
|
225
|
-
* Component
|
|
225
|
+
* Component rendered on the "day" view when `props.loading` is true.
|
|
226
226
|
* @returns {React.ReactNode} The node to render when loading.
|
|
227
227
|
* @default () => "..."
|
|
228
228
|
*/
|
package/node/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTcwMTY0MDgwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "7.0.0-alpha.
|
|
3
|
+
"version": "7.0.0-alpha.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",
|
|
@@ -33,8 +33,9 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.23.4",
|
|
35
35
|
"@mui/base": "^5.0.0-beta.24",
|
|
36
|
+
"@mui/system": "^5.14.18",
|
|
36
37
|
"@mui/utils": "^5.14.18",
|
|
37
|
-
"@mui/x-date-pickers": "7.0.0-alpha.
|
|
38
|
+
"@mui/x-date-pickers": "7.0.0-alpha.3",
|
|
38
39
|
"@mui/x-license-pro": "7.0.0-alpha.1",
|
|
39
40
|
"clsx": "^2.0.0",
|
|
40
41
|
"prop-types": "^15.8.1",
|
|
@@ -44,7 +45,6 @@
|
|
|
44
45
|
"@emotion/react": "^11.9.0",
|
|
45
46
|
"@emotion/styled": "^11.8.1",
|
|
46
47
|
"@mui/material": "^5.8.6",
|
|
47
|
-
"@mui/system": "^5.8.0",
|
|
48
48
|
"date-fns": "^2.25.0",
|
|
49
49
|
"date-fns-jalali": "^2.13.0-0",
|
|
50
50
|
"dayjs": "^1.10.7",
|