@mui/x-date-pickers-pro 6.3.0 → 6.4.0
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 +105 -2
- package/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -0
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -0
- package/index.js +1 -1
- package/internal/models/dateTimeRange.d.ts +2 -10
- package/internal/utils/date-utils.d.ts +4 -4
- package/internal/utils/releaseInfo.js +1 -1
- package/internal/utils/valueManagers.js +1 -1
- package/legacy/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -0
- package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -0
- package/legacy/index.js +1 -1
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/legacy/internal/utils/valueManagers.js +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -0
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -0
- package/modern/index.js +1 -1
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/modern/internal/utils/valueManagers.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +2 -2
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +4 -0
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -0
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -0
- package/node/index.js +1 -1
- package/node/internal/utils/releaseInfo.js +1 -1
- package/node/internal/utils/valueManagers.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,109 @@
|
|
|
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
|
+
## v6.4.0
|
|
7
|
+
|
|
8
|
+
_May 12, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Introduce clipboard paste support for `DataGridPremium`:
|
|
13
|
+
|
|
14
|
+
https://github.com/mui/mui-x/assets/13808724/abfcb5c6-9db6-4677-9ba7-ae97de441080
|
|
15
|
+
|
|
16
|
+
See [the documentation](https://mui.com/x/react-data-grid/clipboard/#clipboard-paste) for more information
|
|
17
|
+
|
|
18
|
+
- 🌍 Improve French (fr-FR), German (de-DE), Portuguese (pt-BR) and Ukrainian (uk-UA) locales on the data grid
|
|
19
|
+
- 🌍 Add Slovak (sk-SK) locale on the pickers
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
- 📚 Documentation improvements
|
|
22
|
+
|
|
23
|
+
### `@mui/x-data-grid@v6.4.0` / `@mui/x-data-grid-pro@v6.4.0` / `@mui/x-data-grid-premium@v6.4.0`
|
|
24
|
+
|
|
25
|
+
#### Changes
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix DataGrid rendering in JSDOM (#8968) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix layout when rendered inside a parent with `display: grid` (#8577) @cherniavskii
|
|
29
|
+
- [DataGrid] Add Joy UI icon slots (#8940) @siriwatknp
|
|
30
|
+
- [DataGrid] Add Joy UI pagination slot (#8871) @cherniavskii
|
|
31
|
+
- [DataGrid] Extract `baseChip` slot (#8748) @cherniavskii
|
|
32
|
+
- [DataGridPremium] Implement Clipboard import (#7389) @cherniavskii
|
|
33
|
+
- [l10n] Improve French (fr-FR) locale (#8825) @vallereaugabriel
|
|
34
|
+
- [l10n] Improve German (de-DE) locale (#8898) @marcauberer
|
|
35
|
+
- [l10n] Improve Portuguese (pt-BR) locale (#8960) @Sorriso337
|
|
36
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#8863) @Neonin
|
|
37
|
+
|
|
38
|
+
### `@mui/x-date-pickers@v6.4.0` / `@mui/x-date-pickers-pro@v6.4.0`
|
|
39
|
+
|
|
40
|
+
#### Changes
|
|
41
|
+
|
|
42
|
+
- [pickers] Fix trailing zeros inconsistency in `LuxonAdapter` (#8955) @alexfauquette
|
|
43
|
+
- [pickers] Stop using deprecated adapter methods (#8735) @flaviendelangle
|
|
44
|
+
- [pickers] Strictly type the `adapterLocale` prop of `LocalizationProvider` (#8780) @flaviendelangle
|
|
45
|
+
- [l10n] Add Slovak (sk-SK) locale (#8875) @MatejFacko
|
|
46
|
+
|
|
47
|
+
### Docs
|
|
48
|
+
|
|
49
|
+
- [docs] Fix date pickers typo in the docs (#8939) @richbustos
|
|
50
|
+
- [docs] Fix master detail demo (#8894) @m4theushw
|
|
51
|
+
- [docs] Fix typo in clipboard docs (#8971) @MBilalShafi
|
|
52
|
+
- [docs] Reduce list of dependencies in Codesandbox/Stackblitz demos (#8535) @cherniavskii
|
|
53
|
+
|
|
54
|
+
### Core
|
|
55
|
+
|
|
56
|
+
- [core] Improve testing of the adapters (#8789) @flaviendelangle
|
|
57
|
+
- [core] Update license key for tests (#8917) @LukasTy
|
|
58
|
+
- [charts] Make introduction docs pages for each chart (#8869) @alexfauquette
|
|
59
|
+
- [charts] Document Tooltip and Highlighs (#8867) @alexfauquette
|
|
60
|
+
- [test] Cover row grouping regression with a unit test (#8870) @cherniavskii
|
|
61
|
+
- [test] Fix flaky regression tests (#8954) @cherniavskii
|
|
62
|
+
|
|
63
|
+
## 6.3.1
|
|
64
|
+
|
|
65
|
+
_May 5, 2023_
|
|
66
|
+
|
|
67
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
68
|
+
|
|
69
|
+
- 🐞 Bugfixes
|
|
70
|
+
- 📚 Documentation improvements
|
|
71
|
+
|
|
72
|
+
### `@mui/x-data-grid@v6.3.1` / `@mui/x-data-grid-pro@v6.3.1` / `@mui/x-data-grid-premium@v6.3.1`
|
|
73
|
+
|
|
74
|
+
#### Changes
|
|
75
|
+
|
|
76
|
+
- [DataGrid] Fix broken filtering in the value formatter demo (#8621) @cherniavskii
|
|
77
|
+
- [DataGrid] Fix falsy filter values not showing in filter button tooltip (#8550) @ithrforu
|
|
78
|
+
- [DataGrid] Fix missing watermark in Pro and Premium packages (#8797) @cherniavskii
|
|
79
|
+
- [DataGrid] Remove unwarranted warning log (#8847) @romgrk
|
|
80
|
+
- [DataGrid] Add Joy UI slots (`Select`, `SelectOption`, `InputLabel`, `FormControl`) (#8747) @cherniavskii
|
|
81
|
+
- [DataGridPremium] Fix expanded groups being collapsed after calling `updateRows` (#8823) @cherniavskii
|
|
82
|
+
|
|
83
|
+
### `@mui/x-date-pickers@v6.3.1` / `@mui/x-date-pickers-pro@v6.3.1`
|
|
84
|
+
|
|
85
|
+
#### Changes
|
|
86
|
+
|
|
87
|
+
- [pickers] Fix `minutesStep` validation prop behavior (#8794) @LukasTy
|
|
88
|
+
- [pickers] Fix time picker `viewRenderers` overriding (#8830) @LukasTy
|
|
89
|
+
- [pickers] Remove last additional character when using LTR (#8848) @alexfauquette
|
|
90
|
+
|
|
91
|
+
### Docs
|
|
92
|
+
|
|
93
|
+
- [docs] Fix controlled mode demo on Editing page (#8800) @yaredtsy
|
|
94
|
+
- [docs] Fix scrolling demo not working with React 18 (#6489) @cherniavskii
|
|
95
|
+
- [docs] Update demo to support agregation on popular feature cell (#8617) @BalaM314
|
|
96
|
+
- [docs] Clarify what `<path>` is (#8764) @alexfauquette
|
|
97
|
+
|
|
98
|
+
### Core
|
|
99
|
+
|
|
100
|
+
- [core] Do not include playground pages in `yarn typescript` script (#8822) @cherniavskii
|
|
101
|
+
- [core] Limit `typescript:ci` step memory limit (#8796) @LukasTy
|
|
102
|
+
- [core] Upgrade monorepo (#8835) @cherniavskii
|
|
103
|
+
- [test] Use `fake` clock on `MobileDateRangePicker` (#8861) @LukasTy
|
|
104
|
+
- [charts] Clean some styling (#8778) @alexfauquette
|
|
105
|
+
- [charts] Improve tooltip (#8792) @alexfauquette
|
|
106
|
+
- [charts] Improvement and docs on axis (#8654) @alexfauquette
|
|
107
|
+
- [charts] Defaultize attributes (#8788) @alexfauquette
|
|
108
|
+
|
|
6
109
|
## 6.3.0
|
|
7
110
|
|
|
8
111
|
_Apr 28, 2023_
|
|
@@ -264,9 +367,9 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
264
367
|
|
|
265
368
|
- [fields] Add missing tokens to `AdapterDateFnsJalali` (#8402) @flaviendelangle
|
|
266
369
|
- [fields] Clean the active date manager (#8370) @flaviendelangle
|
|
267
|
-
- [fields] Cleanup `useFieldState`
|
|
370
|
+
- [fields] Cleanup `useFieldState` (#8292) @flaviendelangle
|
|
268
371
|
- [fields] Only add RTL characters when needed (#8325) @flaviendelangle
|
|
269
|
-
- [pickers] Add support for single input fields in range pickers
|
|
372
|
+
- [pickers] Add support for single input fields in range pickers (#7927) @flaviendelangle
|
|
270
373
|
- [pickers] Allows non token characters in format (#8256) @alexfauquette
|
|
271
374
|
- [pickers] Avoid root imports and move public models to the models folder (#8337) @flaviendelangle
|
|
272
375
|
- [pickers] Update `view` when `views` or `openTo` changes (#8361) @LukasTy
|
|
@@ -276,10 +276,10 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
276
276
|
}, [rangePosition, value]); // eslint-disable-line
|
|
277
277
|
|
|
278
278
|
const selectNextMonth = React.useCallback(() => {
|
|
279
|
-
changeMonth(utils.
|
|
279
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, 1));
|
|
280
280
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
281
281
|
const selectPreviousMonth = React.useCallback(() => {
|
|
282
|
-
changeMonth(utils.
|
|
282
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, -1));
|
|
283
283
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
284
284
|
const isNextMonthDisabled = useNextMonthDisabled(calendarState.currentMonth, {
|
|
285
285
|
disableFuture,
|
|
@@ -206,6 +206,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
206
206
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
207
207
|
*/
|
|
208
208
|
onChange: PropTypes.func,
|
|
209
|
+
/**
|
|
210
|
+
* @ignore
|
|
211
|
+
*/
|
|
212
|
+
onClick: PropTypes.func,
|
|
209
213
|
/**
|
|
210
214
|
* Callback fired when the error associated to the current value changes.
|
|
211
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.
|
|
@@ -239,6 +239,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
239
239
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
240
240
|
*/
|
|
241
241
|
onChange: PropTypes.func,
|
|
242
|
+
/**
|
|
243
|
+
* @ignore
|
|
244
|
+
*/
|
|
245
|
+
onClick: PropTypes.func,
|
|
242
246
|
/**
|
|
243
247
|
* Callback fired when the error associated to the current value changes.
|
|
244
248
|
* @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.
|
|
@@ -223,6 +223,10 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
223
223
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
224
224
|
*/
|
|
225
225
|
onChange: PropTypes.func,
|
|
226
|
+
/**
|
|
227
|
+
* @ignore
|
|
228
|
+
*/
|
|
229
|
+
onClick: PropTypes.func,
|
|
226
230
|
/**
|
|
227
231
|
* Callback fired when the error associated to the current value changes.
|
|
228
232
|
* @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
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { BaseDateValidationProps, TimeValidationProps, DefaultizedProps, MakeOptional, UseFieldInternalProps } from '@mui/x-date-pickers/internals';
|
|
1
|
+
import { BaseDateValidationProps, TimeValidationProps, DefaultizedProps, MakeOptional, UseFieldInternalProps, DateTimeValidationProps } from '@mui/x-date-pickers/internals';
|
|
2
2
|
import { BaseRangeProps, DayRangeValidationProps } from './dateRange';
|
|
3
3
|
import { DateRange } from './range';
|
|
4
4
|
import { DateTimeRangeValidationError } from '../../models';
|
|
5
5
|
import { RangeFieldSection } from './fields';
|
|
6
|
-
export interface UseDateTimeRangeFieldProps<TDate> extends MakeOptional<UseFieldInternalProps<DateRange<TDate>, RangeFieldSection, DateTimeRangeValidationError>, 'format'>, DayRangeValidationProps<TDate>, TimeValidationProps<TDate>, BaseDateValidationProps<TDate>, BaseRangeProps {
|
|
7
|
-
/**
|
|
8
|
-
* Minimal selectable moment of time with binding to date, to set min time in each day use `minTime`.
|
|
9
|
-
*/
|
|
10
|
-
minDateTime?: TDate;
|
|
11
|
-
/**
|
|
12
|
-
* Maximal selectable moment of time with binding to date, to set max time in each day use `maxTime`.
|
|
13
|
-
*/
|
|
14
|
-
maxDateTime?: TDate;
|
|
6
|
+
export interface UseDateTimeRangeFieldProps<TDate> extends MakeOptional<UseFieldInternalProps<DateRange<TDate>, RangeFieldSection, DateTimeRangeValidationError>, 'format'>, DayRangeValidationProps<TDate>, TimeValidationProps<TDate>, BaseDateValidationProps<TDate>, DateTimeValidationProps<TDate>, BaseRangeProps {
|
|
15
7
|
/**
|
|
16
8
|
* 12h/24h view for hour selection clock.
|
|
17
9
|
* @default `utils.is12HourCycleInCurrentLocale()`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MuiPickersAdapter } from '@mui/x-date-pickers/models';
|
|
2
2
|
import { DateRange, NonEmptyDateRange } from '../models/range';
|
|
3
|
-
export declare const isRangeValid: <TDate>(utils: MuiPickersAdapter<TDate>, range: DateRange<TDate> | null) => range is NonEmptyDateRange<TDate>;
|
|
4
|
-
export declare const isWithinRange: <TDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
5
|
-
export declare const isStartOfRange: <TDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
6
|
-
export declare const isEndOfRange: <TDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
3
|
+
export declare const isRangeValid: <TDate>(utils: MuiPickersAdapter<TDate, any>, range: DateRange<TDate> | null) => range is NonEmptyDateRange<TDate>;
|
|
4
|
+
export declare const isWithinRange: <TDate>(utils: MuiPickersAdapter<TDate, any>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
5
|
+
export declare const isStartOfRange: <TDate>(utils: MuiPickersAdapter<TDate, any>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
6
|
+
export declare const isEndOfRange: <TDate>(utils: MuiPickersAdapter<TDate, any>, day: TDate, range: DateRange<TDate> | null) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
|
|
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
|
|
@@ -40,7 +40,7 @@ export const rangeFieldValueManager = {
|
|
|
40
40
|
if (sectionIndex === sections.length - 1 && position === 'start') {
|
|
41
41
|
return _extends({}, section, {
|
|
42
42
|
dateName: position,
|
|
43
|
-
endSeparator: `${section.endSeparator}\u2069 – \u2066`
|
|
43
|
+
endSeparator: `${section.endSeparator}${isRTL ? '\u2069 – \u2066' : ' – '}`
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
return _extends({}, section, {
|
|
@@ -281,10 +281,10 @@ var DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar
|
|
|
281
281
|
}, [rangePosition, value]); // eslint-disable-line
|
|
282
282
|
|
|
283
283
|
var selectNextMonth = React.useCallback(function () {
|
|
284
|
-
changeMonth(utils.
|
|
284
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, 1));
|
|
285
285
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
286
286
|
var selectPreviousMonth = React.useCallback(function () {
|
|
287
|
-
changeMonth(utils.
|
|
287
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, -1));
|
|
288
288
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
289
289
|
var isNextMonthDisabled = useNextMonthDisabled(calendarState.currentMonth, {
|
|
290
290
|
disableFuture: disableFuture,
|
|
@@ -200,6 +200,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
200
200
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
201
201
|
*/
|
|
202
202
|
onChange: PropTypes.func,
|
|
203
|
+
/**
|
|
204
|
+
* @ignore
|
|
205
|
+
*/
|
|
206
|
+
onClick: PropTypes.func,
|
|
203
207
|
/**
|
|
204
208
|
* Callback fired when the error associated to the current value changes.
|
|
205
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.
|
|
@@ -233,6 +233,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
233
233
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
234
234
|
*/
|
|
235
235
|
onChange: PropTypes.func,
|
|
236
|
+
/**
|
|
237
|
+
* @ignore
|
|
238
|
+
*/
|
|
239
|
+
onClick: PropTypes.func,
|
|
236
240
|
/**
|
|
237
241
|
* Callback fired when the error associated to the current value changes.
|
|
238
242
|
* @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.
|
|
@@ -217,6 +217,10 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
217
217
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
218
218
|
*/
|
|
219
219
|
onChange: PropTypes.func,
|
|
220
|
+
/**
|
|
221
|
+
* @ignore
|
|
222
|
+
*/
|
|
223
|
+
onClick: PropTypes.func,
|
|
220
224
|
/**
|
|
221
225
|
* Callback fired when the error associated to the current value changes.
|
|
222
226
|
* @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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
|
|
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
|
|
@@ -57,7 +57,7 @@ export var rangeFieldValueManager = {
|
|
|
57
57
|
if (sectionIndex === sections.length - 1 && position === 'start') {
|
|
58
58
|
return _extends({}, section, {
|
|
59
59
|
dateName: position,
|
|
60
|
-
endSeparator: "".concat(section.endSeparator
|
|
60
|
+
endSeparator: "".concat(section.endSeparator).concat(isRTL ? "\u2069 \u2013 \u2066" : ' – ')
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
return _extends({}, section, {
|
|
@@ -274,10 +274,10 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
274
274
|
}, [rangePosition, value]); // eslint-disable-line
|
|
275
275
|
|
|
276
276
|
const selectNextMonth = React.useCallback(() => {
|
|
277
|
-
changeMonth(utils.
|
|
277
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, 1));
|
|
278
278
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
279
279
|
const selectPreviousMonth = React.useCallback(() => {
|
|
280
|
-
changeMonth(utils.
|
|
280
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, -1));
|
|
281
281
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
282
282
|
const isNextMonthDisabled = useNextMonthDisabled(calendarState.currentMonth, {
|
|
283
283
|
disableFuture,
|
|
@@ -205,6 +205,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
205
205
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
206
206
|
*/
|
|
207
207
|
onChange: PropTypes.func,
|
|
208
|
+
/**
|
|
209
|
+
* @ignore
|
|
210
|
+
*/
|
|
211
|
+
onClick: PropTypes.func,
|
|
208
212
|
/**
|
|
209
213
|
* Callback fired when the error associated to the current value changes.
|
|
210
214
|
* @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.
|
|
@@ -238,6 +238,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
238
238
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
239
239
|
*/
|
|
240
240
|
onChange: PropTypes.func,
|
|
241
|
+
/**
|
|
242
|
+
* @ignore
|
|
243
|
+
*/
|
|
244
|
+
onClick: PropTypes.func,
|
|
241
245
|
/**
|
|
242
246
|
* Callback fired when the error associated to the current value changes.
|
|
243
247
|
* @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.
|
|
@@ -222,6 +222,10 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
222
222
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
223
223
|
*/
|
|
224
224
|
onChange: PropTypes.func,
|
|
225
|
+
/**
|
|
226
|
+
* @ignore
|
|
227
|
+
*/
|
|
228
|
+
onClick: PropTypes.func,
|
|
225
229
|
/**
|
|
226
230
|
* Callback fired when the error associated to the current value changes.
|
|
227
231
|
* @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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
|
|
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
|
|
@@ -40,7 +40,7 @@ export const rangeFieldValueManager = {
|
|
|
40
40
|
if (sectionIndex === sections.length - 1 && position === 'start') {
|
|
41
41
|
return _extends({}, section, {
|
|
42
42
|
dateName: position,
|
|
43
|
-
endSeparator: `${section.endSeparator}\u2069 – \u2066`
|
|
43
|
+
endSeparator: `${section.endSeparator}${isRTL ? '\u2069 – \u2066' : ' – '}`
|
|
44
44
|
});
|
|
45
45
|
}
|
|
46
46
|
return _extends({}, section, {
|
|
@@ -282,10 +282,10 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
|
|
|
282
282
|
}, [rangePosition, value]); // eslint-disable-line
|
|
283
283
|
|
|
284
284
|
const selectNextMonth = React.useCallback(() => {
|
|
285
|
-
changeMonth(utils.
|
|
285
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, 1));
|
|
286
286
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
287
287
|
const selectPreviousMonth = React.useCallback(() => {
|
|
288
|
-
changeMonth(utils.
|
|
288
|
+
changeMonth(utils.addMonths(calendarState.currentMonth, -1));
|
|
289
289
|
}, [changeMonth, calendarState.currentMonth, utils]);
|
|
290
290
|
const isNextMonthDisabled = (0, _internals.useNextMonthDisabled)(calendarState.currentMonth, {
|
|
291
291
|
disableFuture,
|
|
@@ -215,6 +215,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
215
215
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
216
216
|
*/
|
|
217
217
|
onChange: _propTypes.default.func,
|
|
218
|
+
/**
|
|
219
|
+
* @ignore
|
|
220
|
+
*/
|
|
221
|
+
onClick: _propTypes.default.func,
|
|
218
222
|
/**
|
|
219
223
|
* Callback fired when the error associated to the current value changes.
|
|
220
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.
|
|
@@ -248,6 +248,10 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
248
248
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
249
249
|
*/
|
|
250
250
|
onChange: _propTypes.default.func,
|
|
251
|
+
/**
|
|
252
|
+
* @ignore
|
|
253
|
+
*/
|
|
254
|
+
onClick: _propTypes.default.func,
|
|
251
255
|
/**
|
|
252
256
|
* Callback fired when the error associated to the current value changes.
|
|
253
257
|
* @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.
|
|
@@ -232,6 +232,10 @@ process.env.NODE_ENV !== "production" ? SingleInputTimeRangeField.propTypes = {
|
|
|
232
232
|
* @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
|
|
233
233
|
*/
|
|
234
234
|
onChange: _propTypes.default.func,
|
|
235
|
+
/**
|
|
236
|
+
* @ignore
|
|
237
|
+
*/
|
|
238
|
+
onClick: _propTypes.default.func,
|
|
235
239
|
/**
|
|
236
240
|
* Callback fired when the error associated to the current value changes.
|
|
237
241
|
* @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
|
@@ -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 = "MTY4Mzg0MjQwMDAwMA==";
|
|
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
|
|
@@ -48,7 +48,7 @@ const rangeFieldValueManager = {
|
|
|
48
48
|
if (sectionIndex === sections.length - 1 && position === 'start') {
|
|
49
49
|
return (0, _extends2.default)({}, section, {
|
|
50
50
|
dateName: position,
|
|
51
|
-
endSeparator: `${section.endSeparator}\u2069 – \u2066`
|
|
51
|
+
endSeparator: `${section.endSeparator}${isRTL ? '\u2069 – \u2066' : ' – '}`
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
return (0, _extends2.default)({}, section, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
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,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.21.0",
|
|
34
|
-
"@mui/utils": "^5.12.
|
|
35
|
-
"@mui/x-date-pickers": "6.
|
|
34
|
+
"@mui/utils": "^5.12.3",
|
|
35
|
+
"@mui/x-date-pickers": "6.4.0",
|
|
36
36
|
"@mui/x-license-pro": "6.0.4",
|
|
37
37
|
"clsx": "^1.2.1",
|
|
38
38
|
"prop-types": "^15.8.1",
|