@mui/x-date-pickers-pro 6.17.0 → 6.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +124 -5
- package/DateRangeCalendar/DateRangeCalendar.d.ts +10 -0
- package/DateRangeCalendar/DateRangeCalendar.js +10 -0
- package/index.js +1 -1
- package/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +10 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +10 -0
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +10 -0
- package/node/index.js +1 -1
- package/node/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +9 -3
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,125 @@
|
|
|
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
|
+
## 6.18.1
|
|
7
|
+
|
|
8
|
+
_Nov 9, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- ✨ Fix aggregation label not showing when `renderHeader` is used (#10961) @cherniavskii
|
|
13
|
+
- 📘 Server side data source [early documentation](https://mui.com/x/react-data-grid/server-side-data/) published
|
|
14
|
+
- 📈 `<ChartsReferenceLine />` component is now available
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@6.18.1`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Fix cell value type in quick filtering v7 (#10884) @cherniavskii
|
|
23
|
+
- [DataGrid] Fix keyboard navigation for actions cell with disabled buttons (#10947) @michelengelen
|
|
24
|
+
- [DataGrid] Fix `undefined` slot values (#10934) @romgrk
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@6.18.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@6.18.1`, plus:
|
|
29
|
+
|
|
30
|
+
- [DataGridPro] Add data source interface and basic documentation (#10543) @MBilalShafi
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-premium@6.18.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.1`, plus:
|
|
35
|
+
|
|
36
|
+
- [DataGridPremium] Render aggregation label when `renderHeader` is used (#10961) @cherniavskii
|
|
37
|
+
|
|
38
|
+
### Date Pickers
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-date-pickers@6.18.1`
|
|
41
|
+
|
|
42
|
+
- [fields] Fix multi input date time field section selection (#10915) @noraleonte
|
|
43
|
+
- [pickers] Always use up-to-date `defaultView` (#10889) @LukasTy
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers-pro@6.18.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-date-pickers@6.18.1`.
|
|
48
|
+
|
|
49
|
+
### Charts / `@mui/x-charts@6.18.1`
|
|
50
|
+
|
|
51
|
+
- [charts] Add `<ChartsReferenceLine />` component (#10597) @wascou
|
|
52
|
+
- [charts] Improve properties JSDoc (#10931) @alexfauquette
|
|
53
|
+
|
|
54
|
+
### Docs
|
|
55
|
+
|
|
56
|
+
- [docs] Fix charts docs as stable (#10888) @alexfauquette
|
|
57
|
+
- [docs] Document how to hide the legend (#10954) @alexfauquette
|
|
58
|
+
|
|
59
|
+
### Core
|
|
60
|
+
|
|
61
|
+
- [core] Adds new alpha version to version select on the docs (#10944) @michelengelen
|
|
62
|
+
- [core] Fix GitHub title tag consistency @oliviertassinari
|
|
63
|
+
|
|
64
|
+
## 6.18.0
|
|
65
|
+
|
|
66
|
+
_Nov 3, 2023_
|
|
67
|
+
|
|
68
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
69
|
+
|
|
70
|
+
- 🎁 The Charts package is now officially stable!
|
|
71
|
+
- 🥧 Pie charts are now animated.
|
|
72
|
+
- 📈 Line charts now support partial data, and can interpolate missing data.
|
|
73
|
+
|
|
74
|
+
<img width="380" alt="line charts with partial data" src="https://github.com/mui/mui-x/assets/45398769/385ecf77-19b2-4a03-8aef-5d547db1d9ad">
|
|
75
|
+
|
|
76
|
+
- ✨ Allow to ignore [diacritics](https://en.wikipedia.org/wiki/Diacritic) when filtering
|
|
77
|
+
- 📚 Documentation improvements
|
|
78
|
+
|
|
79
|
+
### Data Grid
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-data-grid@6.18.0`
|
|
82
|
+
|
|
83
|
+
- [DataGrid] Allow to ignore [diacritics](https://en.wikipedia.org/wiki/Diacritic) when filtering (#10569) @cherniavskii
|
|
84
|
+
- [DataGrid] Fix a typo in `gridFilterApi` (#10786) @vu-dao-93
|
|
85
|
+
- [DataGrid] Fix `undefined` row id (#10670) @romgrk
|
|
86
|
+
- [DataGrid] Make column autosizing work with dynamic row height (#10693) @cherniavskii
|
|
87
|
+
- [l10n] Allow to customize sorting label per column (#10839) @JerryWu1234
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-data-grid-pro@6.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
90
|
+
|
|
91
|
+
Same changes as in `@mui/x-data-grid@6.18.0`.
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-data-grid-premium@6.18.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.0`.
|
|
96
|
+
|
|
97
|
+
### Date Pickers
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-date-pickers@6.18.0`
|
|
100
|
+
|
|
101
|
+
- [pickers] Add reference links to calendar components (#10644) @michelengelen
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-date-pickers-pro@6.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
104
|
+
|
|
105
|
+
Same changes as in `@mui/x-date-pickers@6.18.0`.
|
|
106
|
+
|
|
107
|
+
### Charts / `@mui/x-charts@6.18.0`
|
|
108
|
+
|
|
109
|
+
- [charts] Add animation on pie chart (#10782) @alexfauquette
|
|
110
|
+
- [charts] Add reference links to shared/misc chart components (#10660) @michelengelen
|
|
111
|
+
- [charts] Allows to connect nulls (#10803) @alexfauquette
|
|
112
|
+
- [charts] Fix axis highlight in dark mode (#10820) @LukasTy
|
|
113
|
+
|
|
114
|
+
### Docs
|
|
115
|
+
|
|
116
|
+
- [docs] Add a data grid recipe for autosizing columns after fetching row-data (#10822) @michelengelen
|
|
117
|
+
- [docs] Add a data grid recipe showing how to remove cell outline on `focus` (#10843) @michelengelen
|
|
118
|
+
- [docs] Add demo about how to use charts margin (#10886) @alexfauquette
|
|
119
|
+
- [docs] Improve custom field input demos readability (#10559) @LukasTy
|
|
120
|
+
|
|
121
|
+
### Core
|
|
122
|
+
|
|
123
|
+
- [core] Generate `slot` API descriptions based on `slots` or `components` (#10879) @LukasTy
|
|
124
|
+
|
|
6
125
|
## 6.17.0
|
|
7
126
|
|
|
8
127
|
_Oct 27, 2023_
|
|
@@ -296,7 +415,7 @@ Same changes as in `@mui/x-date-pickers@6.16.1`, plus:
|
|
|
296
415
|
|
|
297
416
|
- [core] Fix casing consistency with legal and marketing content @oliviertassinari
|
|
298
417
|
- [core] Revert the link in the priority support ticket description (#10517) @michelengelen
|
|
299
|
-
- [
|
|
418
|
+
- [changelog] Polish image @oliviertassinari
|
|
300
419
|
|
|
301
420
|
## 6.16.0
|
|
302
421
|
|
|
@@ -1088,7 +1207,7 @@ Same changes as in `@mui/x-date-pickers@6.10.1`.
|
|
|
1088
1207
|
### Core
|
|
1089
1208
|
|
|
1090
1209
|
- [core] Add `validate` command (#9714) @romgrk
|
|
1091
|
-
- [
|
|
1210
|
+
- [changelog] Update generator to new format @oliviertassinari
|
|
1092
1211
|
|
|
1093
1212
|
## 6.10.0
|
|
1094
1213
|
|
|
@@ -1146,7 +1265,7 @@ Same changes as in `@mui/x-date-pickers@6.10.0`.
|
|
|
1146
1265
|
|
|
1147
1266
|
- [core] Disambiguate eslint plugin name @oliviertassinari
|
|
1148
1267
|
- [core] Update priority support issue template and prompt (#9574) @DanailH
|
|
1149
|
-
- [
|
|
1268
|
+
- [changelog] Clarify each plan (#9446) @oliviertassinari
|
|
1150
1269
|
- [license] Fix error terminology (#9614) @oliviertassinari
|
|
1151
1270
|
|
|
1152
1271
|
## 6.9.2
|
|
@@ -1295,8 +1414,8 @@ Same changes as in `@mui/x-date-pickers@6.9.1`.
|
|
|
1295
1414
|
- [core] Fix priority support prompt action (#9472) @DanailH
|
|
1296
1415
|
- [core] Update `uses` for priority support action (#9480) @DanailH
|
|
1297
1416
|
- [core] Bumb update monorepo (#9476) @alexfauquette
|
|
1298
|
-
- [
|
|
1299
|
-
- [
|
|
1417
|
+
- [changelog] Fix media quality (#9439) @oliviertassinari
|
|
1418
|
+
- [changelog] Remove height img attribute @oliviertassinari
|
|
1300
1419
|
- [test] Skip flaky row pinning tests in JSDOM (#9511) @cherniavskii
|
|
1301
1420
|
|
|
1302
1421
|
## 6.9.0
|
|
@@ -3,5 +3,15 @@ import { DateRangeCalendarProps } from './DateRangeCalendar.types';
|
|
|
3
3
|
type DateRangeCalendarComponent = (<TDate>(props: DateRangeCalendarProps<TDate> & React.RefAttributes<HTMLDivElement>) => React.JSX.Element) & {
|
|
4
4
|
propTypes?: any;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
10
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
11
|
+
*
|
|
12
|
+
* API:
|
|
13
|
+
*
|
|
14
|
+
* - [DateRangeCalendar API](https://mui.com/x/api/date-pickers/date-range-calendar/)
|
|
15
|
+
*/
|
|
6
16
|
declare const DateRangeCalendar: DateRangeCalendarComponent;
|
|
7
17
|
export { DateRangeCalendar };
|
|
@@ -109,6 +109,16 @@ const useUtilityClasses = ownerState => {
|
|
|
109
109
|
};
|
|
110
110
|
return composeClasses(slots, getDateRangeCalendarUtilityClass, classes);
|
|
111
111
|
};
|
|
112
|
+
/**
|
|
113
|
+
* Demos:
|
|
114
|
+
*
|
|
115
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
116
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
117
|
+
*
|
|
118
|
+
* API:
|
|
119
|
+
*
|
|
120
|
+
* - [DateRangeCalendar API](https://mui.com/x/api/date-pickers/date-range-calendar/)
|
|
121
|
+
*/
|
|
112
122
|
const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar(inProps, ref) {
|
|
113
123
|
const props = useDateRangeCalendarDefaultizedProps(inProps, 'MuiDateRangeCalendar');
|
|
114
124
|
const shouldHavePreview = useMediaQuery(DEFAULT_DESKTOP_MODE_MEDIA_QUERY, {
|
package/index.js
CHANGED
|
@@ -41,7 +41,9 @@ export const useMultiInputDateTimeRangeField = ({
|
|
|
41
41
|
timezone: timezoneProp,
|
|
42
42
|
onChange,
|
|
43
43
|
disabled,
|
|
44
|
-
readOnly
|
|
44
|
+
readOnly,
|
|
45
|
+
selectedSections,
|
|
46
|
+
onSelectedSectionsChange
|
|
45
47
|
} = sharedProps;
|
|
46
48
|
const {
|
|
47
49
|
value,
|
|
@@ -89,7 +91,9 @@ export const useMultiInputDateTimeRangeField = ({
|
|
|
89
91
|
unstableFieldRef: unstableStartFieldRef,
|
|
90
92
|
value: valueProp === undefined ? undefined : valueProp[0],
|
|
91
93
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
|
|
92
|
-
onChange: handleStartDateChange
|
|
94
|
+
onChange: handleStartDateChange,
|
|
95
|
+
selectedSections,
|
|
96
|
+
onSelectedSectionsChange
|
|
93
97
|
});
|
|
94
98
|
const endFieldProps = _extends({
|
|
95
99
|
error: !!validationError[1]
|
|
@@ -102,7 +106,9 @@ export const useMultiInputDateTimeRangeField = ({
|
|
|
102
106
|
unstableFieldRef: unstableEndFieldRef,
|
|
103
107
|
value: valueProp === undefined ? undefined : valueProp[1],
|
|
104
108
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
|
|
105
|
-
onChange: handleEndDateChange
|
|
109
|
+
onChange: handleEndDateChange,
|
|
110
|
+
selectedSections,
|
|
111
|
+
onSelectedSectionsChange
|
|
106
112
|
});
|
|
107
113
|
const startDateResponse = useDateTimeField({
|
|
108
114
|
props: startFieldProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
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
|
|
@@ -113,6 +113,16 @@ var useUtilityClasses = function useUtilityClasses(ownerState) {
|
|
|
113
113
|
};
|
|
114
114
|
return composeClasses(slots, getDateRangeCalendarUtilityClass, classes);
|
|
115
115
|
};
|
|
116
|
+
/**
|
|
117
|
+
* Demos:
|
|
118
|
+
*
|
|
119
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
120
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
121
|
+
*
|
|
122
|
+
* API:
|
|
123
|
+
*
|
|
124
|
+
* - [DateRangeCalendar API](https://mui.com/x/api/date-pickers/date-range-calendar/)
|
|
125
|
+
*/
|
|
116
126
|
var DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar(inProps, ref) {
|
|
117
127
|
var props = useDateRangeCalendarDefaultizedProps(inProps, 'MuiDateRangeCalendar');
|
|
118
128
|
var shouldHavePreview = useMediaQuery(DEFAULT_DESKTOP_MODE_MEDIA_QUERY, {
|
package/legacy/index.js
CHANGED
|
@@ -39,7 +39,9 @@ export var useMultiInputDateTimeRangeField = function useMultiInputDateTimeRange
|
|
|
39
39
|
timezoneProp = sharedProps.timezone,
|
|
40
40
|
onChange = sharedProps.onChange,
|
|
41
41
|
disabled = sharedProps.disabled,
|
|
42
|
-
readOnly = sharedProps.readOnly
|
|
42
|
+
readOnly = sharedProps.readOnly,
|
|
43
|
+
selectedSections = sharedProps.selectedSections,
|
|
44
|
+
onSelectedSectionsChange = sharedProps.onSelectedSectionsChange;
|
|
43
45
|
var _useControlledValueWi = useControlledValueWithTimezone({
|
|
44
46
|
name: 'useMultiInputDateRangeField',
|
|
45
47
|
timezone: timezoneProp,
|
|
@@ -85,7 +87,9 @@ export var useMultiInputDateTimeRangeField = function useMultiInputDateTimeRange
|
|
|
85
87
|
unstableFieldRef: unstableStartFieldRef,
|
|
86
88
|
value: valueProp === undefined ? undefined : valueProp[0],
|
|
87
89
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
|
|
88
|
-
onChange: handleStartDateChange
|
|
90
|
+
onChange: handleStartDateChange,
|
|
91
|
+
selectedSections: selectedSections,
|
|
92
|
+
onSelectedSectionsChange: onSelectedSectionsChange
|
|
89
93
|
});
|
|
90
94
|
var endFieldProps = _extends({
|
|
91
95
|
error: !!validationError[1]
|
|
@@ -98,7 +102,9 @@ export var useMultiInputDateTimeRangeField = function useMultiInputDateTimeRange
|
|
|
98
102
|
unstableFieldRef: unstableEndFieldRef,
|
|
99
103
|
value: valueProp === undefined ? undefined : valueProp[1],
|
|
100
104
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
|
|
101
|
-
onChange: handleEndDateChange
|
|
105
|
+
onChange: handleEndDateChange,
|
|
106
|
+
selectedSections: selectedSections,
|
|
107
|
+
onSelectedSectionsChange: onSelectedSectionsChange
|
|
102
108
|
});
|
|
103
109
|
var startDateResponse = useDateTimeField({
|
|
104
110
|
props: startFieldProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
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
|
|
@@ -108,6 +108,16 @@ const useUtilityClasses = ownerState => {
|
|
|
108
108
|
};
|
|
109
109
|
return composeClasses(slots, getDateRangeCalendarUtilityClass, classes);
|
|
110
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Demos:
|
|
113
|
+
*
|
|
114
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
115
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
116
|
+
*
|
|
117
|
+
* API:
|
|
118
|
+
*
|
|
119
|
+
* - [DateRangeCalendar API](https://mui.com/x/api/date-pickers/date-range-calendar/)
|
|
120
|
+
*/
|
|
111
121
|
const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar(inProps, ref) {
|
|
112
122
|
const props = useDateRangeCalendarDefaultizedProps(inProps, 'MuiDateRangeCalendar');
|
|
113
123
|
const shouldHavePreview = useMediaQuery(DEFAULT_DESKTOP_MODE_MEDIA_QUERY, {
|
package/modern/index.js
CHANGED
|
@@ -40,7 +40,9 @@ export const useMultiInputDateTimeRangeField = ({
|
|
|
40
40
|
timezone: timezoneProp,
|
|
41
41
|
onChange,
|
|
42
42
|
disabled,
|
|
43
|
-
readOnly
|
|
43
|
+
readOnly,
|
|
44
|
+
selectedSections,
|
|
45
|
+
onSelectedSectionsChange
|
|
44
46
|
} = sharedProps;
|
|
45
47
|
const {
|
|
46
48
|
value,
|
|
@@ -88,7 +90,9 @@ export const useMultiInputDateTimeRangeField = ({
|
|
|
88
90
|
unstableFieldRef: unstableStartFieldRef,
|
|
89
91
|
value: valueProp === undefined ? undefined : valueProp[0],
|
|
90
92
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
|
|
91
|
-
onChange: handleStartDateChange
|
|
93
|
+
onChange: handleStartDateChange,
|
|
94
|
+
selectedSections,
|
|
95
|
+
onSelectedSectionsChange
|
|
92
96
|
});
|
|
93
97
|
const endFieldProps = _extends({
|
|
94
98
|
error: !!validationError[1]
|
|
@@ -101,7 +105,9 @@ export const useMultiInputDateTimeRangeField = ({
|
|
|
101
105
|
unstableFieldRef: unstableEndFieldRef,
|
|
102
106
|
value: valueProp === undefined ? undefined : valueProp[1],
|
|
103
107
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
|
|
104
|
-
onChange: handleEndDateChange
|
|
108
|
+
onChange: handleEndDateChange,
|
|
109
|
+
selectedSections,
|
|
110
|
+
onSelectedSectionsChange
|
|
105
111
|
});
|
|
106
112
|
const startDateResponse = useDateTimeField({
|
|
107
113
|
props: startFieldProps,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY5OTQ4NDQwMDAwMA==";
|
|
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
|
|
@@ -116,6 +116,16 @@ const useUtilityClasses = ownerState => {
|
|
|
116
116
|
};
|
|
117
117
|
return (0, _utils2.unstable_composeClasses)(slots, _dateRangeCalendarClasses.getDateRangeCalendarUtilityClass, classes);
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Demos:
|
|
121
|
+
*
|
|
122
|
+
* - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)
|
|
123
|
+
* - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)
|
|
124
|
+
*
|
|
125
|
+
* API:
|
|
126
|
+
*
|
|
127
|
+
* - [DateRangeCalendar API](https://mui.com/x/api/date-pickers/date-range-calendar/)
|
|
128
|
+
*/
|
|
119
129
|
const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar(inProps, ref) {
|
|
120
130
|
const props = useDateRangeCalendarDefaultizedProps(inProps, 'MuiDateRangeCalendar');
|
|
121
131
|
const shouldHavePreview = (0, _useMediaQuery.default)(_internals.DEFAULT_DESKTOP_MODE_MEDIA_QUERY, {
|
package/node/index.js
CHANGED
|
@@ -48,7 +48,9 @@ const useMultiInputDateTimeRangeField = ({
|
|
|
48
48
|
timezone: timezoneProp,
|
|
49
49
|
onChange,
|
|
50
50
|
disabled,
|
|
51
|
-
readOnly
|
|
51
|
+
readOnly,
|
|
52
|
+
selectedSections,
|
|
53
|
+
onSelectedSectionsChange
|
|
52
54
|
} = sharedProps;
|
|
53
55
|
const {
|
|
54
56
|
value,
|
|
@@ -96,7 +98,9 @@ const useMultiInputDateTimeRangeField = ({
|
|
|
96
98
|
unstableFieldRef: unstableStartFieldRef,
|
|
97
99
|
value: valueProp === undefined ? undefined : valueProp[0],
|
|
98
100
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[0],
|
|
99
|
-
onChange: handleStartDateChange
|
|
101
|
+
onChange: handleStartDateChange,
|
|
102
|
+
selectedSections,
|
|
103
|
+
onSelectedSectionsChange
|
|
100
104
|
});
|
|
101
105
|
const endFieldProps = (0, _extends2.default)({
|
|
102
106
|
error: !!validationError[1]
|
|
@@ -109,7 +113,9 @@ const useMultiInputDateTimeRangeField = ({
|
|
|
109
113
|
unstableFieldRef: unstableEndFieldRef,
|
|
110
114
|
value: valueProp === undefined ? undefined : valueProp[1],
|
|
111
115
|
defaultValue: defaultValue === undefined ? undefined : defaultValue[1],
|
|
112
|
-
onChange: handleEndDateChange
|
|
116
|
+
onChange: handleEndDateChange,
|
|
117
|
+
selectedSections,
|
|
118
|
+
onSelectedSectionsChange
|
|
113
119
|
});
|
|
114
120
|
const startDateResponse = (0, _DateTimeField.unstable_useDateTimeField)({
|
|
115
121
|
props: startFieldProps,
|
|
@@ -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 = "MTY5OTQ4NDQwMDAwMA==";
|
|
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": "6.
|
|
3
|
+
"version": "6.18.1",
|
|
4
4
|
"description": "The commercial edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.23.2",
|
|
34
|
-
"@mui/base": "^5.0.0-beta.
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
36
|
-
"@mui/x-date-pickers": "6.
|
|
34
|
+
"@mui/base": "^5.0.0-beta.22",
|
|
35
|
+
"@mui/utils": "^5.14.16",
|
|
36
|
+
"@mui/x-date-pickers": "6.18.1",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
39
39
|
"prop-types": "^15.8.1",
|