@mui/x-date-pickers-pro 6.18.3 → 6.18.5
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 +84 -1
- 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,88 @@
|
|
|
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.5
|
|
7
|
+
|
|
8
|
+
_Dec 14, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Improve Swedish (sv-SE) and Urdu (ur-PK) locales on the Data Grid
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### Data Grid
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-data-grid@6.18.5`
|
|
18
|
+
|
|
19
|
+
- [l10n] Improve Swedish (sv-SE) locale (#11379) @fredrikcarlbom
|
|
20
|
+
- [l10n] Improve Urdu (ur-PK) locale for data grid (#11409) @MBilalShafi
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid-pro@6.18.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
23
|
+
|
|
24
|
+
Same changes as in `@mui/x-data-grid@6.18.5`.
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-premium@6.18.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.5`.
|
|
29
|
+
|
|
30
|
+
### Date Pickers
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-date-pickers@6.18.5`
|
|
33
|
+
|
|
34
|
+
- [pickers] Fix field types to avoid error on latest `@types/react` version (#11398) @LukasTy
|
|
35
|
+
- [pickers] Support name prop (#11380) @gitstart
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-date-pickers-pro@6.18.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-date-pickers@6.18.5`, plus:
|
|
40
|
+
|
|
41
|
+
- [DateRangePicker] Fix `autoFocus` behavior (#11376) @kealjones-wk
|
|
42
|
+
|
|
43
|
+
### Docs
|
|
44
|
+
|
|
45
|
+
- [docs] Respect GoT books (#11294) @janoma
|
|
46
|
+
- [test] Fix flaky screenshots (#11391) @cherniavskii
|
|
47
|
+
|
|
48
|
+
## 6.18.4
|
|
49
|
+
|
|
50
|
+
_Dec 8, 2023_
|
|
51
|
+
|
|
52
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
53
|
+
|
|
54
|
+
- 📚 Add [Pickers FAQ page](https://mui.com/x/react-date-pickers/faq/)
|
|
55
|
+
- 🌍 Improve Danish (da-DK) locale on Data Grid
|
|
56
|
+
- 🐞 Bugfixes
|
|
57
|
+
|
|
58
|
+
### Data Grid
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-data-grid@6.18.4`
|
|
61
|
+
|
|
62
|
+
- [DataGrid] Fix cell slot style override (#11215) @oliviertassinari
|
|
63
|
+
- [l10n] Improve Danish (da-DK) locale (#11346) @goibon
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-data-grid-pro@6.18.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-data-grid@6.18.4`.
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-data-grid-premium@6.18.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.4`.
|
|
72
|
+
|
|
73
|
+
### Date Pickers
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-date-pickers@6.18.4`
|
|
76
|
+
|
|
77
|
+
- [pickers] Fix `MultiSectionDigitalClock` issues (#11308) @LukasTy
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-date-pickers-pro@6.18.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-date-pickers@6.18.4`.
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Fix typo (#11323) @cadam11
|
|
86
|
+
- [docs] Add FAQ page (#11347) @noraleonte
|
|
87
|
+
|
|
6
88
|
## 6.18.3
|
|
7
89
|
|
|
8
90
|
_Dec 4, 2023_
|
|
@@ -347,7 +429,7 @@ Same changes as in `@mui/x-date-pickers@6.16.3`, plus:
|
|
|
347
429
|
|
|
348
430
|
- [charts] Add reference links to area + bar chart components (#10652) @michelengelen
|
|
349
431
|
- [charts] Add reference links to line chart + sparkline components (#10650) @michelengelen
|
|
350
|
-
- [charts] Add reference links to pie + scatter chart components
|
|
432
|
+
- [charts] Add reference links to pie + scatter chart components (#10653) @michelengelen
|
|
351
433
|
- [charts] Render only when `width` and `height` are resolved (#10714) @alexfauquette
|
|
352
434
|
- [charts] Support animation on `BarChart` (#9926) @alexfauquette
|
|
353
435
|
- [charts] Use new text component to avoid tick label overflow on x-axis (#10648) @alexfauquette
|
|
@@ -423,6 +505,7 @@ It adds line break support and avoids overlapping text in the legend.
|
|
|
423
505
|
This comes with some breaking changes.
|
|
424
506
|
|
|
425
507
|
- The DOM structure is modified. An intermediary `<tspan />` element has been added. This can impact how your style is applied.
|
|
508
|
+
|
|
426
509
|
```diff
|
|
427
510
|
- <text>The label</text>
|
|
428
511
|
+ <text><tspan>The label</tspan></text>
|
|
@@ -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 = "MTcwMjQ5NDAwMDAwMA==";
|
|
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 = "MTcwMjQ5NDAwMDAwMA==";
|
|
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 = "MTcwMjQ5NDAwMDAwMA==";
|
|
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 = "MTcwMjQ5NDAwMDAwMA==";
|
|
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.5",
|
|
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.5",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"clsx": "^2.0.0",
|
|
39
39
|
"prop-types": "^15.8.1",
|