@mui/x-date-pickers-pro 6.3.0 → 6.3.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 +48 -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/releaseInfo.js +1 -1
- package/internal/utils/valueManagers.js +1 -1
- 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/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/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,52 @@
|
|
|
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.3.1
|
|
7
|
+
|
|
8
|
+
_May 5, 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
|
+
- 🐞 Bugfixes
|
|
13
|
+
- 📚 Documentation improvements
|
|
14
|
+
|
|
15
|
+
### `@mui/x-data-grid@v6.3.1` / `@mui/x-data-grid-pro@v6.3.1` / `@mui/x-data-grid-premium@v6.3.1`
|
|
16
|
+
|
|
17
|
+
#### Changes
|
|
18
|
+
|
|
19
|
+
- [DataGrid] Fix broken filtering in the value formatter demo (#8621) @cherniavskii
|
|
20
|
+
- [DataGrid] Fix falsy filter values not showing in filter button tooltip (#8550) @ithrforu
|
|
21
|
+
- [DataGrid] Fix missing watermark in Pro and Premium packages (#8797) @cherniavskii
|
|
22
|
+
- [DataGrid] Remove unwarranted warning log (#8847) @romgrk
|
|
23
|
+
- [DataGrid] Add Joy UI slots (`Select`, `SelectOption`, `InputLabel`, `FormControl`) (#8747) @cherniavskii
|
|
24
|
+
- [DataGridPremium] Fix expanded groups being collapsed after calling `updateRows` (#8823) @cherniavskii
|
|
25
|
+
|
|
26
|
+
### `@mui/x-date-pickers@v6.3.1` / `@mui/x-date-pickers-pro@v6.3.1`
|
|
27
|
+
|
|
28
|
+
#### Changes
|
|
29
|
+
|
|
30
|
+
- [pickers] Fix `minutesStep` validation prop behavior (#8794) @LukasTy
|
|
31
|
+
- [pickers] Fix time picker `viewRenderers` overriding (#8830) @LukasTy
|
|
32
|
+
- [pickers] Remove last additional character when using LTR (#8848) @alexfauquette
|
|
33
|
+
|
|
34
|
+
### Docs
|
|
35
|
+
|
|
36
|
+
- [docs] Fix controlled mode demo on Editing page (#8800) @yaredtsy
|
|
37
|
+
- [docs] Fix scrolling demo not working with React 18 (#6489) @cherniavskii
|
|
38
|
+
- [docs] Update demo to support agregation on popular feature cell (#8617) @BalaM314
|
|
39
|
+
- [docs] Clarify what `<path>` is (#8764) @alexfauquette
|
|
40
|
+
|
|
41
|
+
### Core
|
|
42
|
+
|
|
43
|
+
- [core] Do not include playground pages in `yarn typescript` script (#8822) @cherniavskii
|
|
44
|
+
- [core] Limit `typescript:ci` step memory limit (#8796) @LukasTy
|
|
45
|
+
- [core] Upgrade monorepo (#8835) @cherniavskii
|
|
46
|
+
- [test] Use `fake` clock on `MobileDateRangePicker` (#8861) @LukasTy
|
|
47
|
+
- [charts] Clean some styling (#8778) @alexfauquette
|
|
48
|
+
- [charts] Improve tooltip (#8792) @alexfauquette
|
|
49
|
+
- [charts] Improvement and docs on axis (#8654) @alexfauquette
|
|
50
|
+
- [charts] Defaultize attributes (#8788) @alexfauquette
|
|
51
|
+
|
|
6
52
|
## 6.3.0
|
|
7
53
|
|
|
8
54
|
_Apr 28, 2023_
|
|
@@ -264,9 +310,9 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
264
310
|
|
|
265
311
|
- [fields] Add missing tokens to `AdapterDateFnsJalali` (#8402) @flaviendelangle
|
|
266
312
|
- [fields] Clean the active date manager (#8370) @flaviendelangle
|
|
267
|
-
- [fields] Cleanup `useFieldState`
|
|
313
|
+
- [fields] Cleanup `useFieldState` (#8292) @flaviendelangle
|
|
268
314
|
- [fields] Only add RTL characters when needed (#8325) @flaviendelangle
|
|
269
|
-
- [pickers] Add support for single input fields in range pickers
|
|
315
|
+
- [pickers] Add support for single input fields in range pickers (#7927) @flaviendelangle
|
|
270
316
|
- [pickers] Allows non token characters in format (#8256) @alexfauquette
|
|
271
317
|
- [pickers] Avoid root imports and move public models to the models folder (#8337) @flaviendelangle
|
|
272
318
|
- [pickers] Update `view` when `views` or `openTo` changes (#8361) @LukasTy
|
|
@@ -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 { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY4MzIzNzYwMDAwMA==";
|
|
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, {
|
|
@@ -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 = "MTY4MzIzNzYwMDAwMA==";
|
|
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, {
|
|
@@ -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 = "MTY4MzIzNzYwMDAwMA==";
|
|
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, {
|
|
@@ -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 = "MTY4MzIzNzYwMDAwMA==";
|
|
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.
|
|
3
|
+
"version": "6.3.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,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.3.
|
|
34
|
+
"@mui/utils": "^5.12.3",
|
|
35
|
+
"@mui/x-date-pickers": "6.3.1",
|
|
36
36
|
"@mui/x-license-pro": "6.0.4",
|
|
37
37
|
"clsx": "^1.2.1",
|
|
38
38
|
"prop-types": "^15.8.1",
|