@mui/x-date-pickers-pro 6.0.1 → 6.0.2
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 +58 -5
- package/index.js +1 -1
- package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +3 -1
- package/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/internal/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +3 -1
- package/internal/utils/releaseInfo.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/legacy/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/legacy/internal/utils/releaseInfo.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/modern/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/modern/internal/utils/releaseInfo.js +1 -1
- package/node/index.js +1 -1
- package/node/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/node/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/node/internal/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,59 @@
|
|
|
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.0.2
|
|
7
|
+
|
|
8
|
+
_Mar 16, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
13
|
+
- 🎁 Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
14
|
+
- 🌍 Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
15
|
+
- 🌍 Improve Brazilian Portuguese (pt-BR), German (de-DE), and French (fr-FR) locales
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
|
|
19
|
+
### `@mui/x-data-grid@v6.0.2` / `@mui/x-data-grid-pro@v6.0.2` / `@mui/x-data-grid-premium@v6.0.2`
|
|
20
|
+
|
|
21
|
+
#### Changes
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Fix <kbd>Space</kbd> triggering edit mode (#8180) @m4theushw
|
|
24
|
+
- [DataGrid] Remove warning when adding a custom column type (#8227) @m4theushw
|
|
25
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#8198) @JoaoSerafim3001
|
|
26
|
+
|
|
27
|
+
### `@mui/x-date-pickers@v6.0.2` / `@mui/x-date-pickers-pro@v6.0.2`
|
|
28
|
+
|
|
29
|
+
#### Changes
|
|
30
|
+
|
|
31
|
+
- [l10n] Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
32
|
+
- [l10n] Improve German (de-DE) locale (#8204) @sebkasanzew
|
|
33
|
+
- [l10n] Improve French (fr-FR) locale (#8229) @marvinroger
|
|
34
|
+
- [DateRangePicker] Allow overriding `slotProps.textField` (#8201) @LukasTy
|
|
35
|
+
- [fields] Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
36
|
+
- [fields] Fix editing in shadow dom (#8254) @flaviendelangle
|
|
37
|
+
- [fields] Remove the duplicated warning about invalid adapter (#8187) @flaviendelangle
|
|
38
|
+
- [fields] Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
39
|
+
- [pickers] Fix to avoid selecting sections on mobile picker field (#8228) @LukasTy
|
|
40
|
+
- [pickers] Inherit previous and next icons size from their parent button (#8218) @flaviendelangle
|
|
41
|
+
|
|
42
|
+
### Docs
|
|
43
|
+
|
|
44
|
+
- [docs] Add a warning in the migration guide for people re-enabling the clock on desktop (#8184) @flaviendelangle
|
|
45
|
+
- [docs] Add a warning for `luxon` macro tokens (#8245) @flaviendelangle
|
|
46
|
+
- [docs] Complete pickers customization pages (#8066) @alexfauquette
|
|
47
|
+
- [docs] Fix 301 redirection @oliviertassinari
|
|
48
|
+
- [docs] Fix 404 links to customization Material UI APIs (#8200) @oliviertassinari
|
|
49
|
+
- [docs] Fix `moment-hijri` demo (#8255) @LukasTy
|
|
50
|
+
- [docs] Improve migration diff (#8240) @oliviertassinari
|
|
51
|
+
- [docs] Change **What's new** page url to point to announcement blog post (#8186) @joserodolfofreitas
|
|
52
|
+
- [docs] Resolve 301 in changelog @oliviertassinari
|
|
53
|
+
|
|
54
|
+
### Core
|
|
55
|
+
|
|
56
|
+
- [core] Regen api docs (#8220) @flaviendelangle
|
|
57
|
+
- [core] Remove duplicated `/` (#8223) @alexfauquette
|
|
58
|
+
|
|
6
59
|
## 6.0.1
|
|
7
60
|
|
|
8
61
|
_Mar 9, 2023_
|
|
@@ -1025,7 +1078,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
1025
1078
|
<DataGridPremium unstable_cellSelection />
|
|
1026
1079
|
```
|
|
1027
1080
|
|
|
1028
|
-
See [the documentation](https://mui.com/x/react-data-grid/
|
|
1081
|
+
See [the documentation](https://mui.com/x/react-data-grid/cell-selection/) for more information
|
|
1029
1082
|
|
|
1030
1083
|
- 🌍 Support the Right To Left orientation on the fields components
|
|
1031
1084
|
- 📚 Documentation improvements
|
|
@@ -3082,7 +3135,7 @@ _Sep 2, 2022_
|
|
|
3082
3135
|
|
|
3083
3136
|
🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
|
|
3084
3137
|
|
|
3085
|
-
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/
|
|
3138
|
+
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
3086
3139
|
|
|
3087
3140
|
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
3088
3141
|
|
|
@@ -4133,7 +4186,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4133
4186
|
|
|
4134
4187
|
Date and time picker components have been moved to the MUI X repository.
|
|
4135
4188
|
They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
|
|
4136
|
-
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/
|
|
4189
|
+
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
4137
4190
|
|
|
4138
4191
|
- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
4139
4192
|
- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
@@ -6781,7 +6834,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
6781
6834
|
- 💅 Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
|
|
6782
6835
|
- ✅ Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
|
|
6783
6836
|
|
|
6784
|
-
See the documentation for [more details](https://mui.com/
|
|
6837
|
+
See the documentation for [more details](https://v4.mui.com/components/data-grid/selection/#disable-selection-on-certain-rows).
|
|
6785
6838
|
|
|
6786
6839
|
- ⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
|
|
6787
6840
|
- ⚙ Improve consistency of the API to prepare for the first beta release
|
|
@@ -7309,7 +7362,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
7309
7362
|
- 📍 Add support for default locales (#983) @DanailH
|
|
7310
7363
|
We have built the infrastructure to support around 100 [default locales](https://mui.com/x/react-data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material UI by opening a pull request.
|
|
7311
7364
|
- 🎁 Add new `selectionModel` prop (#986) @dtassone
|
|
7312
|
-
The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/
|
|
7365
|
+
The prop can be used to control the selected rows in the data grid. [See the docs](https://v4.mui.com/components/data-grid/selection/#controlled-selection).
|
|
7313
7366
|
- 💅 Add support for default props from theme (#1019) @DanailH
|
|
7314
7367
|
- 🙌 Fix scrollbar size on windows (#1061) @dtassone
|
|
7315
7368
|
- 🐛 Polish existing features, fix 9 issues.
|
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ export const useDesktopRangePicker = ({
|
|
|
98
98
|
const slotPropsForField = _extends({}, fieldProps.slotProps, {
|
|
99
99
|
textField: ownerState => {
|
|
100
100
|
const externalInputProps = resolveComponentProps(slotProps == null ? void 0 : slotProps.textField, ownerState);
|
|
101
|
-
return _extends({},
|
|
101
|
+
return _extends({}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
102
102
|
},
|
|
103
103
|
root: ownerState => {
|
|
104
104
|
const externalRootProps = resolveComponentProps(slotProps == null ? void 0 : slotProps.fieldRoot, ownerState);
|
|
@@ -24,7 +24,9 @@ export interface UseDesktopRangePickerSlotsComponentsProps<TDate, TView extends
|
|
|
24
24
|
field?: SlotComponentProps<React.ElementType<BaseMultiInputFieldProps<DateRange<TDate>, unknown>>, {}, unknown>;
|
|
25
25
|
fieldRoot?: SlotComponentProps<typeof Stack, {}, unknown>;
|
|
26
26
|
fieldSeparator?: SlotComponentProps<typeof Typography, {}, unknown>;
|
|
27
|
-
textField?: SlotComponentProps<typeof TextField, {},
|
|
27
|
+
textField?: SlotComponentProps<typeof TextField, {}, {
|
|
28
|
+
position?: 'start' | 'end';
|
|
29
|
+
} & Record<string, any>>;
|
|
28
30
|
toolbar?: ExportedBaseToolbarProps;
|
|
29
31
|
}
|
|
30
32
|
export interface DesktopRangeOnlyPickerProps<TDate> extends BaseNonStaticPickerProps, UsePickerValueNonStaticProps<TDate | null>, UsePickerViewsNonStaticProps, UseRangePositionProps {
|
|
@@ -86,7 +86,7 @@ export const useMobileRangePicker = ({
|
|
|
86
86
|
const externalInputProps = resolveComponentProps(innerSlotProps == null ? void 0 : innerSlotProps.textField, ownerState);
|
|
87
87
|
return _extends({}, isToolbarHidden && {
|
|
88
88
|
id: `${labelId}-${ownerState.position}`
|
|
89
|
-
},
|
|
89
|
+
}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
90
90
|
},
|
|
91
91
|
root: ownerState => {
|
|
92
92
|
const externalRootProps = resolveComponentProps(innerSlotProps == null ? void 0 : innerSlotProps.fieldRoot, ownerState);
|
|
@@ -23,7 +23,9 @@ export interface UseMobileRangePickerSlotsComponentsProps<TDate, TView extends D
|
|
|
23
23
|
field?: SlotComponentProps<React.ElementType<BaseMultiInputFieldProps<DateRange<TDate>, unknown>>, {}, unknown>;
|
|
24
24
|
fieldRoot?: SlotComponentProps<typeof Stack, {}, unknown>;
|
|
25
25
|
fieldSeparator?: SlotComponentProps<typeof Typography, {}, unknown>;
|
|
26
|
-
textField?: SlotComponentProps<typeof TextField, {},
|
|
26
|
+
textField?: SlotComponentProps<typeof TextField, {}, {
|
|
27
|
+
position?: 'start' | 'end';
|
|
28
|
+
} & Record<string, any>>;
|
|
27
29
|
toolbar?: ExportedBaseToolbarProps;
|
|
28
30
|
}
|
|
29
31
|
export interface MobileRangeOnlyPickerProps<TDate> extends BaseNonStaticPickerProps, UsePickerValueNonStaticProps<TDate | null>, UsePickerViewsNonStaticProps, UseRangePositionProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY3ODkxNzYwMDAwMA==";
|
|
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
|
package/legacy/index.js
CHANGED
|
@@ -93,7 +93,7 @@ export var useDesktopRangePicker = function useDesktopRangePicker(_ref) {
|
|
|
93
93
|
var slotPropsForField = _extends({}, fieldProps.slotProps, {
|
|
94
94
|
textField: function textField(ownerState) {
|
|
95
95
|
var externalInputProps = resolveComponentProps(slotProps == null ? void 0 : slotProps.textField, ownerState);
|
|
96
|
-
return _extends({},
|
|
96
|
+
return _extends({}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
97
97
|
},
|
|
98
98
|
root: function root(ownerState) {
|
|
99
99
|
var externalRootProps = resolveComponentProps(slotProps == null ? void 0 : slotProps.fieldRoot, ownerState);
|
|
@@ -81,7 +81,7 @@ export var useMobileRangePicker = function useMobileRangePicker(_ref) {
|
|
|
81
81
|
var externalInputProps = resolveComponentProps(innerSlotProps == null ? void 0 : innerSlotProps.textField, ownerState);
|
|
82
82
|
return _extends({}, isToolbarHidden && {
|
|
83
83
|
id: "".concat(labelId, "-").concat(ownerState.position)
|
|
84
|
-
},
|
|
84
|
+
}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
85
85
|
},
|
|
86
86
|
root: function root(ownerState) {
|
|
87
87
|
var externalRootProps = resolveComponentProps(innerSlotProps == null ? void 0 : innerSlotProps.fieldRoot, ownerState);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY3ODkxNzYwMDAwMA==";
|
|
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
|
package/modern/index.js
CHANGED
|
@@ -96,7 +96,7 @@ export const useDesktopRangePicker = ({
|
|
|
96
96
|
const slotPropsForField = _extends({}, fieldProps.slotProps, {
|
|
97
97
|
textField: ownerState => {
|
|
98
98
|
const externalInputProps = resolveComponentProps(slotProps?.textField, ownerState);
|
|
99
|
-
return _extends({},
|
|
99
|
+
return _extends({}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
100
100
|
},
|
|
101
101
|
root: ownerState => {
|
|
102
102
|
const externalRootProps = resolveComponentProps(slotProps?.fieldRoot, ownerState);
|
|
@@ -85,7 +85,7 @@ export const useMobileRangePicker = ({
|
|
|
85
85
|
const externalInputProps = resolveComponentProps(innerSlotProps?.textField, ownerState);
|
|
86
86
|
return _extends({}, isToolbarHidden && {
|
|
87
87
|
id: `${labelId}-${ownerState.position}`
|
|
88
|
-
},
|
|
88
|
+
}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
89
89
|
},
|
|
90
90
|
root: ownerState => {
|
|
91
91
|
const externalRootProps = resolveComponentProps(innerSlotProps?.fieldRoot, ownerState);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTY3ODkxNzYwMDAwMA==";
|
|
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
|
package/node/index.js
CHANGED
|
@@ -104,7 +104,7 @@ const useDesktopRangePicker = ({
|
|
|
104
104
|
const slotPropsForField = (0, _extends2.default)({}, fieldProps.slotProps, {
|
|
105
105
|
textField: ownerState => {
|
|
106
106
|
const externalInputProps = (0, _utils.resolveComponentProps)(slotProps?.textField, ownerState);
|
|
107
|
-
return (0, _extends2.default)({},
|
|
107
|
+
return (0, _extends2.default)({}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
108
108
|
},
|
|
109
109
|
root: ownerState => {
|
|
110
110
|
const externalRootProps = (0, _utils.resolveComponentProps)(slotProps?.fieldRoot, ownerState);
|
|
@@ -93,7 +93,7 @@ const useMobileRangePicker = ({
|
|
|
93
93
|
const externalInputProps = (0, _utils.resolveComponentProps)(innerSlotProps?.textField, ownerState);
|
|
94
94
|
return (0, _extends2.default)({}, isToolbarHidden && {
|
|
95
95
|
id: `${labelId}-${ownerState.position}`
|
|
96
|
-
},
|
|
96
|
+
}, ownerState.position === 'start' ? fieldSlotProps.startInput : fieldSlotProps.endInput, externalInputProps);
|
|
97
97
|
},
|
|
98
98
|
root: ownerState => {
|
|
99
99
|
const externalRootProps = (0, _utils.resolveComponentProps)(innerSlotProps?.fieldRoot, ownerState);
|
|
@@ -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 = "MTY3ODkxNzYwMDAwMA==";
|
|
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.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"description": "The commercial edition of the date picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@date-io/dayjs": "^2.16.0",
|
|
36
36
|
"@date-io/luxon": "^2.16.1",
|
|
37
37
|
"@date-io/moment": "^2.16.1",
|
|
38
|
-
"@mui/utils": "^5.11.
|
|
39
|
-
"@mui/x-date-pickers": "6.0.
|
|
40
|
-
"@mui/x-license-pro": "6.0.
|
|
38
|
+
"@mui/utils": "^5.11.13",
|
|
39
|
+
"@mui/x-date-pickers": "6.0.2",
|
|
40
|
+
"@mui/x-license-pro": "6.0.2",
|
|
41
41
|
"clsx": "^1.2.1",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
43
43
|
"react-transition-group": "^4.4.5"
|