@mui/x-date-pickers-pro 6.18.4 → 6.18.6
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 +91 -0
- package/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/DateRangePicker/DateRangePicker.js +5 -0
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/MobileDateRangePicker/MobileDateRangePicker.js +5 -0
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -1
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/internals/models/rangePickerProps.d.ts +5 -0
- package/internals/utils/releaseInfo.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/legacy/DateRangePicker/DateRangePicker.js +5 -0
- package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -0
- package/legacy/index.js +1 -1
- package/legacy/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -1
- package/legacy/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/legacy/internals/utils/releaseInfo.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/modern/DateRangePicker/DateRangePicker.js +5 -0
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -0
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -1
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +1 -1
- package/node/DateRangePicker/DateRangePicker.js +5 -0
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -0
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -0
- package/node/index.js +1 -1
- package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +3 -1
- package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +3 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,97 @@
|
|
|
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.6
|
|
7
|
+
|
|
8
|
+
_Dec 22, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Improve Russian (ru-RU) locale (#11429) @wensiet
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### Data Grid
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-data-grid@6.18.6`
|
|
18
|
+
|
|
19
|
+
- [DataGrid] Fix typos in the JSDoc (#11475) @flaviendelangle
|
|
20
|
+
- [l10n] Improve Russian (ru-RU) locale (#11429) @wensiet
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid-pro@6.18.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
23
|
+
|
|
24
|
+
Same changes as in `@mui/x-data-grid@6.18.6`.
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-premium@6.18.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.6`.
|
|
29
|
+
|
|
30
|
+
### Date Pickers
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-date-pickers@6.18.6`
|
|
33
|
+
|
|
34
|
+
- [fields] Fix section pasting (#11467) @LukasTy
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers-pro@6.18.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-date-pickers@6.18.6`.
|
|
39
|
+
|
|
40
|
+
### Charts / `@mui/x-charts@6.18.6`
|
|
41
|
+
|
|
42
|
+
- [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
|
|
43
|
+
- [charts] Make error message more explicit (#11457) @alexfauquette
|
|
44
|
+
- [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
|
|
45
|
+
- [charts] Improve dataset typing (#11372) @alexfauquette
|
|
46
|
+
- [charts] Fix size overflow (#11385) @alexfauquette
|
|
47
|
+
|
|
48
|
+
### Docs
|
|
49
|
+
|
|
50
|
+
- [docs] Document false default values for boolean props (#11489) @cherniavskii
|
|
51
|
+
- [docs] Improve Pickers `name` prop examples (#11442) @LukasTy
|
|
52
|
+
- [docs] Limit `date-fns` package to v2 in codesandbox (#11478) @LukasTy
|
|
53
|
+
- [test] Reload the page if its blank and there are no links to the remaining tests (#11471) @cherniavskii
|
|
54
|
+
|
|
55
|
+
## 6.18.5
|
|
56
|
+
|
|
57
|
+
_Dec 14, 2023_
|
|
58
|
+
|
|
59
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
60
|
+
|
|
61
|
+
- 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
|
|
62
|
+
- 🐞 Bugfixes
|
|
63
|
+
|
|
64
|
+
### Data Grid
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-data-grid@6.18.5`
|
|
67
|
+
|
|
68
|
+
- [l10n] Improve Swedish (sv-SE) locale (#11379) @fredrikcarlbom
|
|
69
|
+
- [l10n] Improve Urdu (ur-PK) locale for data grid (#11409) @MBilalShafi
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-data-grid-pro@6.18.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-data-grid@6.18.5`.
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-data-grid-premium@6.18.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.5`.
|
|
78
|
+
|
|
79
|
+
### Date Pickers
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-date-pickers@6.18.5`
|
|
82
|
+
|
|
83
|
+
- [pickers] Fix field types to avoid error on latest `@types/react` version (#11398) @LukasTy
|
|
84
|
+
- [pickers] Support name prop (#11380) @gitstart
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-date-pickers-pro@6.18.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
|
+
|
|
88
|
+
Same changes as in `@mui/x-date-pickers@6.18.5`, plus:
|
|
89
|
+
|
|
90
|
+
- [DateRangePicker] Fix `autoFocus` behavior (#11376) @kealjones-wk
|
|
91
|
+
|
|
92
|
+
### Docs
|
|
93
|
+
|
|
94
|
+
- [docs] Respect GoT books (#11294) @janoma
|
|
95
|
+
- [test] Fix flaky screenshots (#11391) @cherniavskii
|
|
96
|
+
|
|
6
97
|
## 6.18.4
|
|
7
98
|
|
|
8
99
|
_Dec 8, 2023_
|
|
@@ -473,7 +473,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
473
473
|
renderLoading: renderLoading,
|
|
474
474
|
slots: slotsForDayCalendar,
|
|
475
475
|
slotProps: slotPropsForDayCalendar,
|
|
476
|
-
autoFocus: month === focusedMonth,
|
|
476
|
+
autoFocus: visibleMonths[month] === focusedMonth,
|
|
477
477
|
fixedWeekNumber: fixedWeekNumber,
|
|
478
478
|
displayWeekNumber: displayWeekNumber,
|
|
479
479
|
timezone: timezone
|
|
@@ -200,6 +200,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
200
200
|
* Minimal selectable date.
|
|
201
201
|
*/
|
|
202
202
|
minDate: PropTypes.any,
|
|
203
|
+
/**
|
|
204
|
+
* Name attribute used by the `input` element in the Field.
|
|
205
|
+
* Ignored if the field has several inputs.
|
|
206
|
+
*/
|
|
207
|
+
name: PropTypes.string,
|
|
203
208
|
/**
|
|
204
209
|
* Callback fired when the value is accepted.
|
|
205
210
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -209,6 +209,11 @@ DesktopDateRangePicker.propTypes = {
|
|
|
209
209
|
* Minimal selectable date.
|
|
210
210
|
*/
|
|
211
211
|
minDate: PropTypes.any,
|
|
212
|
+
/**
|
|
213
|
+
* Name attribute used by the `input` element in the Field.
|
|
214
|
+
* Ignored if the field has several inputs.
|
|
215
|
+
*/
|
|
216
|
+
name: PropTypes.string,
|
|
212
217
|
/**
|
|
213
218
|
* Callback fired when the value is accepted.
|
|
214
219
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -209,6 +209,11 @@ MobileDateRangePicker.propTypes = {
|
|
|
209
209
|
* Minimal selectable date.
|
|
210
210
|
*/
|
|
211
211
|
minDate: PropTypes.any,
|
|
212
|
+
/**
|
|
213
|
+
* Name attribute used by the `input` element in the Field.
|
|
214
|
+
* Ignored if the field has several inputs.
|
|
215
|
+
*/
|
|
216
|
+
name: PropTypes.string,
|
|
212
217
|
/**
|
|
213
218
|
* Callback fired when the value is accepted.
|
|
214
219
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
package/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export const useDesktopRangePicker = _ref => {
|
|
|
30
30
|
timezone,
|
|
31
31
|
label,
|
|
32
32
|
inputRef,
|
|
33
|
+
name,
|
|
33
34
|
readOnly,
|
|
34
35
|
disabled,
|
|
35
36
|
autoFocus,
|
|
@@ -86,7 +87,8 @@ export const useDesktopRangePicker = _ref => {
|
|
|
86
87
|
autoFocus: autoFocus && !props.open,
|
|
87
88
|
ref: fieldContainerRef
|
|
88
89
|
}, fieldType === 'single-input' && {
|
|
89
|
-
inputRef
|
|
90
|
+
inputRef,
|
|
91
|
+
name
|
|
90
92
|
}),
|
|
91
93
|
ownerState: props
|
|
92
94
|
});
|
|
@@ -31,6 +31,7 @@ export const useMobileRangePicker = _ref => {
|
|
|
31
31
|
timezone,
|
|
32
32
|
label,
|
|
33
33
|
inputRef,
|
|
34
|
+
name,
|
|
34
35
|
readOnly,
|
|
35
36
|
disabled,
|
|
36
37
|
disableOpenPicker,
|
|
@@ -72,7 +73,8 @@ export const useMobileRangePicker = _ref => {
|
|
|
72
73
|
formatDensity,
|
|
73
74
|
timezone
|
|
74
75
|
}, fieldType === 'single-input' && {
|
|
75
|
-
inputRef
|
|
76
|
+
inputRef,
|
|
77
|
+
name
|
|
76
78
|
}),
|
|
77
79
|
ownerState: props
|
|
78
80
|
});
|
|
@@ -14,4 +14,9 @@ export interface BaseRangeNonStaticPickerProps {
|
|
|
14
14
|
* Ignored if the field has several inputs.
|
|
15
15
|
*/
|
|
16
16
|
inputRef?: React.Ref<HTMLInputElement>;
|
|
17
|
+
/**
|
|
18
|
+
* Name attribute used by the `input` element in the Field.
|
|
19
|
+
* Ignored if the field has several inputs.
|
|
20
|
+
*/
|
|
21
|
+
name?: string;
|
|
17
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
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
|
|
@@ -495,7 +495,7 @@ var DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar
|
|
|
495
495
|
renderLoading: renderLoading,
|
|
496
496
|
slots: slotsForDayCalendar,
|
|
497
497
|
slotProps: slotPropsForDayCalendar,
|
|
498
|
-
autoFocus: month === focusedMonth,
|
|
498
|
+
autoFocus: visibleMonths[month] === focusedMonth,
|
|
499
499
|
fixedWeekNumber: fixedWeekNumber,
|
|
500
500
|
displayWeekNumber: displayWeekNumber,
|
|
501
501
|
timezone: timezone
|
|
@@ -199,6 +199,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
199
199
|
* Minimal selectable date.
|
|
200
200
|
*/
|
|
201
201
|
minDate: PropTypes.any,
|
|
202
|
+
/**
|
|
203
|
+
* Name attribute used by the `input` element in the Field.
|
|
204
|
+
* Ignored if the field has several inputs.
|
|
205
|
+
*/
|
|
206
|
+
name: PropTypes.string,
|
|
202
207
|
/**
|
|
203
208
|
* Callback fired when the value is accepted.
|
|
204
209
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -208,6 +208,11 @@ DesktopDateRangePicker.propTypes = {
|
|
|
208
208
|
* Minimal selectable date.
|
|
209
209
|
*/
|
|
210
210
|
minDate: PropTypes.any,
|
|
211
|
+
/**
|
|
212
|
+
* Name attribute used by the `input` element in the Field.
|
|
213
|
+
* Ignored if the field has several inputs.
|
|
214
|
+
*/
|
|
215
|
+
name: PropTypes.string,
|
|
211
216
|
/**
|
|
212
217
|
* Callback fired when the value is accepted.
|
|
213
218
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -208,6 +208,11 @@ MobileDateRangePicker.propTypes = {
|
|
|
208
208
|
* Minimal selectable date.
|
|
209
209
|
*/
|
|
210
210
|
minDate: PropTypes.any,
|
|
211
|
+
/**
|
|
212
|
+
* Name attribute used by the `input` element in the Field.
|
|
213
|
+
* Ignored if the field has several inputs.
|
|
214
|
+
*/
|
|
215
|
+
name: PropTypes.string,
|
|
211
216
|
/**
|
|
212
217
|
* Callback fired when the value is accepted.
|
|
213
218
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
package/legacy/index.js
CHANGED
|
@@ -27,6 +27,7 @@ export var useDesktopRangePicker = function useDesktopRangePicker(_ref) {
|
|
|
27
27
|
timezone = props.timezone,
|
|
28
28
|
label = props.label,
|
|
29
29
|
inputRef = props.inputRef,
|
|
30
|
+
name = props.name,
|
|
30
31
|
readOnly = props.readOnly,
|
|
31
32
|
disabled = props.disabled,
|
|
32
33
|
autoFocus = props.autoFocus,
|
|
@@ -80,7 +81,8 @@ export var useDesktopRangePicker = function useDesktopRangePicker(_ref) {
|
|
|
80
81
|
autoFocus: autoFocus && !props.open,
|
|
81
82
|
ref: fieldContainerRef
|
|
82
83
|
}, fieldType === 'single-input' && {
|
|
83
|
-
inputRef: inputRef
|
|
84
|
+
inputRef: inputRef,
|
|
85
|
+
name: name
|
|
84
86
|
}),
|
|
85
87
|
ownerState: props
|
|
86
88
|
});
|
|
@@ -28,6 +28,7 @@ export var useMobileRangePicker = function useMobileRangePicker(_ref) {
|
|
|
28
28
|
timezone = props.timezone,
|
|
29
29
|
label = props.label,
|
|
30
30
|
inputRef = props.inputRef,
|
|
31
|
+
name = props.name,
|
|
31
32
|
readOnly = props.readOnly,
|
|
32
33
|
disabled = props.disabled,
|
|
33
34
|
disableOpenPicker = props.disableOpenPicker,
|
|
@@ -66,7 +67,8 @@ export var useMobileRangePicker = function useMobileRangePicker(_ref) {
|
|
|
66
67
|
formatDensity: formatDensity,
|
|
67
68
|
timezone: timezone
|
|
68
69
|
}, fieldType === 'single-input' && {
|
|
69
|
-
inputRef: inputRef
|
|
70
|
+
inputRef: inputRef,
|
|
71
|
+
name: name
|
|
70
72
|
}),
|
|
71
73
|
ownerState: props
|
|
72
74
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
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
|
|
@@ -469,7 +469,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
469
469
|
renderLoading: renderLoading,
|
|
470
470
|
slots: slotsForDayCalendar,
|
|
471
471
|
slotProps: slotPropsForDayCalendar,
|
|
472
|
-
autoFocus: month === focusedMonth,
|
|
472
|
+
autoFocus: visibleMonths[month] === focusedMonth,
|
|
473
473
|
fixedWeekNumber: fixedWeekNumber,
|
|
474
474
|
displayWeekNumber: displayWeekNumber,
|
|
475
475
|
timezone: timezone
|
|
@@ -200,6 +200,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
200
200
|
* Minimal selectable date.
|
|
201
201
|
*/
|
|
202
202
|
minDate: PropTypes.any,
|
|
203
|
+
/**
|
|
204
|
+
* Name attribute used by the `input` element in the Field.
|
|
205
|
+
* Ignored if the field has several inputs.
|
|
206
|
+
*/
|
|
207
|
+
name: PropTypes.string,
|
|
203
208
|
/**
|
|
204
209
|
* Callback fired when the value is accepted.
|
|
205
210
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -205,6 +205,11 @@ DesktopDateRangePicker.propTypes = {
|
|
|
205
205
|
* Minimal selectable date.
|
|
206
206
|
*/
|
|
207
207
|
minDate: PropTypes.any,
|
|
208
|
+
/**
|
|
209
|
+
* Name attribute used by the `input` element in the Field.
|
|
210
|
+
* Ignored if the field has several inputs.
|
|
211
|
+
*/
|
|
212
|
+
name: PropTypes.string,
|
|
208
213
|
/**
|
|
209
214
|
* Callback fired when the value is accepted.
|
|
210
215
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -205,6 +205,11 @@ MobileDateRangePicker.propTypes = {
|
|
|
205
205
|
* Minimal selectable date.
|
|
206
206
|
*/
|
|
207
207
|
minDate: PropTypes.any,
|
|
208
|
+
/**
|
|
209
|
+
* Name attribute used by the `input` element in the Field.
|
|
210
|
+
* Ignored if the field has several inputs.
|
|
211
|
+
*/
|
|
212
|
+
name: PropTypes.string,
|
|
208
213
|
/**
|
|
209
214
|
* Callback fired when the value is accepted.
|
|
210
215
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
package/modern/index.js
CHANGED
|
@@ -29,6 +29,7 @@ export const useDesktopRangePicker = _ref => {
|
|
|
29
29
|
timezone,
|
|
30
30
|
label,
|
|
31
31
|
inputRef,
|
|
32
|
+
name,
|
|
32
33
|
readOnly,
|
|
33
34
|
disabled,
|
|
34
35
|
autoFocus,
|
|
@@ -84,7 +85,8 @@ export const useDesktopRangePicker = _ref => {
|
|
|
84
85
|
autoFocus: autoFocus && !props.open,
|
|
85
86
|
ref: fieldContainerRef
|
|
86
87
|
}, fieldType === 'single-input' && {
|
|
87
|
-
inputRef
|
|
88
|
+
inputRef,
|
|
89
|
+
name
|
|
88
90
|
}),
|
|
89
91
|
ownerState: props
|
|
90
92
|
});
|
|
@@ -30,6 +30,7 @@ export const useMobileRangePicker = _ref => {
|
|
|
30
30
|
timezone,
|
|
31
31
|
label,
|
|
32
32
|
inputRef,
|
|
33
|
+
name,
|
|
33
34
|
readOnly,
|
|
34
35
|
disabled,
|
|
35
36
|
disableOpenPicker,
|
|
@@ -71,7 +72,8 @@ export const useMobileRangePicker = _ref => {
|
|
|
71
72
|
formatDensity,
|
|
72
73
|
timezone
|
|
73
74
|
}, fieldType === 'single-input' && {
|
|
74
|
-
inputRef
|
|
75
|
+
inputRef,
|
|
76
|
+
name
|
|
75
77
|
}),
|
|
76
78
|
ownerState: props
|
|
77
79
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwMzIyMTIwMDAwMA==";
|
|
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
|
|
@@ -477,7 +477,7 @@ const DateRangeCalendar = exports.DateRangeCalendar = /*#__PURE__*/React.forward
|
|
|
477
477
|
renderLoading: renderLoading,
|
|
478
478
|
slots: slotsForDayCalendar,
|
|
479
479
|
slotProps: slotPropsForDayCalendar,
|
|
480
|
-
autoFocus: month === focusedMonth,
|
|
480
|
+
autoFocus: visibleMonths[month] === focusedMonth,
|
|
481
481
|
fixedWeekNumber: fixedWeekNumber,
|
|
482
482
|
displayWeekNumber: displayWeekNumber,
|
|
483
483
|
timezone: timezone
|
|
@@ -209,6 +209,11 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
209
209
|
* Minimal selectable date.
|
|
210
210
|
*/
|
|
211
211
|
minDate: _propTypes.default.any,
|
|
212
|
+
/**
|
|
213
|
+
* Name attribute used by the `input` element in the Field.
|
|
214
|
+
* Ignored if the field has several inputs.
|
|
215
|
+
*/
|
|
216
|
+
name: _propTypes.default.string,
|
|
212
217
|
/**
|
|
213
218
|
* Callback fired when the value is accepted.
|
|
214
219
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -214,6 +214,11 @@ DesktopDateRangePicker.propTypes = {
|
|
|
214
214
|
* Minimal selectable date.
|
|
215
215
|
*/
|
|
216
216
|
minDate: _propTypes.default.any,
|
|
217
|
+
/**
|
|
218
|
+
* Name attribute used by the `input` element in the Field.
|
|
219
|
+
* Ignored if the field has several inputs.
|
|
220
|
+
*/
|
|
221
|
+
name: _propTypes.default.string,
|
|
217
222
|
/**
|
|
218
223
|
* Callback fired when the value is accepted.
|
|
219
224
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
|
@@ -214,6 +214,11 @@ MobileDateRangePicker.propTypes = {
|
|
|
214
214
|
* Minimal selectable date.
|
|
215
215
|
*/
|
|
216
216
|
minDate: _propTypes.default.any,
|
|
217
|
+
/**
|
|
218
|
+
* Name attribute used by the `input` element in the Field.
|
|
219
|
+
* Ignored if the field has several inputs.
|
|
220
|
+
*/
|
|
221
|
+
name: _propTypes.default.string,
|
|
217
222
|
/**
|
|
218
223
|
* Callback fired when the value is accepted.
|
|
219
224
|
* @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
|
package/node/index.js
CHANGED
|
@@ -37,6 +37,7 @@ const useDesktopRangePicker = _ref => {
|
|
|
37
37
|
timezone,
|
|
38
38
|
label,
|
|
39
39
|
inputRef,
|
|
40
|
+
name,
|
|
40
41
|
readOnly,
|
|
41
42
|
disabled,
|
|
42
43
|
autoFocus,
|
|
@@ -92,7 +93,8 @@ const useDesktopRangePicker = _ref => {
|
|
|
92
93
|
autoFocus: autoFocus && !props.open,
|
|
93
94
|
ref: fieldContainerRef
|
|
94
95
|
}, fieldType === 'single-input' && {
|
|
95
|
-
inputRef
|
|
96
|
+
inputRef,
|
|
97
|
+
name
|
|
96
98
|
}),
|
|
97
99
|
ownerState: props
|
|
98
100
|
});
|
|
@@ -38,6 +38,7 @@ const useMobileRangePicker = _ref => {
|
|
|
38
38
|
timezone,
|
|
39
39
|
label,
|
|
40
40
|
inputRef,
|
|
41
|
+
name,
|
|
41
42
|
readOnly,
|
|
42
43
|
disabled,
|
|
43
44
|
disableOpenPicker,
|
|
@@ -79,7 +80,8 @@ const useMobileRangePicker = _ref => {
|
|
|
79
80
|
formatDensity,
|
|
80
81
|
timezone
|
|
81
82
|
}, fieldType === 'single-input' && {
|
|
82
|
-
inputRef
|
|
83
|
+
inputRef,
|
|
84
|
+
name
|
|
83
85
|
}),
|
|
84
86
|
ownerState: props
|
|
85
87
|
});
|
|
@@ -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 = "MTcwMzIyMTIwMDAwMA==";
|
|
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.18.
|
|
3
|
+
"version": "6.18.6",
|
|
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,7 +33,7 @@
|
|
|
33
33
|
"@babel/runtime": "^7.23.2",
|
|
34
34
|
"@mui/base": "^5.0.0-beta.22",
|
|
35
35
|
"@mui/utils": "^5.14.16",
|
|
36
|
-
"@mui/x-date-pickers": "6.18.
|
|
36
|
+
"@mui/x-date-pickers": "6.18.6",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
39
39
|
"prop-types": "^15.8.1",
|