@mui/x-date-pickers-pro 7.6.1 → 7.6.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 +66 -0
- package/index.js +1 -1
- package/internals/utils/date-fields-utils.d.ts +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/internals/utils/valueManagers.js +2 -2
- package/models/fields.d.ts +5 -3
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/internals/utils/valueManagers.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/node/internals/utils/valueManagers.js +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,72 @@
|
|
|
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
|
+
## 7.6.2
|
|
7
|
+
|
|
8
|
+
_Jun 6, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 📚 Adds Date and Time Pickers accessibility page
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
- 📚 Documentation improvements
|
|
15
|
+
|
|
16
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@7.6.2`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add the `areElementSizesEqual` utility to improve code readability (#13254) @layerok
|
|
23
|
+
- [DataGrid] Clean up IE remnants from the codebase (#13390) @MBilalShafi
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@7.6.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@7.6.2`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@7.6.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@7.6.2`.
|
|
32
|
+
|
|
33
|
+
### Date and Time Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@7.6.2`
|
|
36
|
+
|
|
37
|
+
- [fields] Fix `PageUp` and `PageDown` editing on letter sections (#13310) @arthurbalduini
|
|
38
|
+
- [pickers] Fix `AdapterDayjs` timezone behavior (#13362) @LukasTy
|
|
39
|
+
- [pickers] Use `useRtl` instead of `useTheme` to access direction (#13363) @flaviendelangle
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@7.6.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@7.6.2`.
|
|
44
|
+
|
|
45
|
+
### Charts
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-charts@7.6.2`
|
|
48
|
+
|
|
49
|
+
- [charts] Add `Initializable` type and behaviour to allow checking if a complex context has been initialized. (#13365) @JCQuintas
|
|
50
|
+
- [charts] Fix some props not working in `xAxis` and `yAxis` (#13372) @Valyok26
|
|
51
|
+
- [charts] Harmonize charts types (#13366) @alexfauquette
|
|
52
|
+
- [charts] Introduce plugins system (#13367) @alexfauquette
|
|
53
|
+
- [charts] Simplify plugin types (#13396) @JCQuintas
|
|
54
|
+
|
|
55
|
+
### Docs
|
|
56
|
+
|
|
57
|
+
- [docs] Add badges like in Material UI @oliviertassinari
|
|
58
|
+
- [docs] Update twitter.com to x.com @oliviertassinari
|
|
59
|
+
- [docs] Fix the description of `tickInterval` (#13355) @alexfauquette
|
|
60
|
+
- [docs] Adjust the code example for `quickFilterValues` (#12919) @michelengelen
|
|
61
|
+
- [docs] Create Pickers accessibility page (#13274) @arthurbalduini
|
|
62
|
+
|
|
63
|
+
### Core
|
|
64
|
+
|
|
65
|
+
- [core] Comment on `CSS.escape` for the future @oliviertassinari
|
|
66
|
+
- [core] Fix `l10n` action setup (#13382) @LukasTy
|
|
67
|
+
- [core] Fixes in preparation for React 18.3 (#13378) @LukasTy
|
|
68
|
+
- [core] Remove explicit `marked` dependency (#13383) @LukasTy
|
|
69
|
+
- [core] Remove unused `@types/prettier` dependency (#13389) @LukasTy
|
|
70
|
+
- [core] Add `docs/.env.local` to `.gitignore` (#13377) @KenanYusuf
|
|
71
|
+
|
|
6
72
|
## 7.6.1
|
|
7
73
|
|
|
8
74
|
_May 31, 2024_
|
package/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export declare const splitDateRangeSections: (sections: RangeFieldSection[]) =>
|
|
|
5
5
|
};
|
|
6
6
|
export declare const removeLastSeparator: (dateSections: RangeFieldSection[]) => (RangeFieldSection | {
|
|
7
7
|
separator: null;
|
|
8
|
-
dateName: "
|
|
8
|
+
dateName: import("../../models").RangePosition;
|
|
9
9
|
value: string;
|
|
10
10
|
format: string;
|
|
11
11
|
maxLength: number | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcxNzYyNDgwMDAwMA==";
|
|
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
|
|
@@ -82,9 +82,9 @@ export const getRangeFieldValueManager = ({
|
|
|
82
82
|
const dateRangeSections = splitDateRangeSections(sections);
|
|
83
83
|
return createDateStrForV7HiddenInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate]);
|
|
84
84
|
},
|
|
85
|
-
getV6InputValueFromSections: (sections, localizedDigits,
|
|
85
|
+
getV6InputValueFromSections: (sections, localizedDigits, isRtl) => {
|
|
86
86
|
const dateRangeSections = splitDateRangeSections(sections);
|
|
87
|
-
return createDateStrForV6InputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits,
|
|
87
|
+
return createDateStrForV6InputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRtl);
|
|
88
88
|
},
|
|
89
89
|
parseValueStr: (valueStr, referenceValue, parseDate) => {
|
|
90
90
|
// TODO: Improve because it would not work if some section have the same separator as the dateSeparator.
|
package/models/fields.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ import { BaseFieldProps, UseFieldResponse } from '@mui/x-date-pickers/internals'
|
|
|
4
4
|
import { BaseSingleInputPickersTextFieldProps, FieldRef, FieldSection, PickerValidDate } from '@mui/x-date-pickers/models';
|
|
5
5
|
import { UseClearableFieldResponse } from '@mui/x-date-pickers/hooks';
|
|
6
6
|
import { SxProps } from '@mui/material/styles';
|
|
7
|
+
import TextField from '@mui/material/TextField';
|
|
8
|
+
import { RangePosition } from './range';
|
|
7
9
|
export interface RangeFieldSection extends FieldSection {
|
|
8
|
-
dateName:
|
|
10
|
+
dateName: RangePosition;
|
|
9
11
|
}
|
|
10
12
|
export type FieldType = 'single-input' | 'multi-input';
|
|
11
13
|
/**
|
|
@@ -59,8 +61,8 @@ export interface BaseMultiInputFieldProps<TValue, TDate extends PickerValidDate,
|
|
|
59
61
|
};
|
|
60
62
|
slotProps?: {
|
|
61
63
|
root?: SlotComponentProps<React.ElementType<MultiInputFieldSlotRootProps>, {}, Record<string, any>>;
|
|
62
|
-
textField?: SlotComponentProps<
|
|
63
|
-
position?:
|
|
64
|
+
textField?: SlotComponentProps<typeof TextField, {}, {
|
|
65
|
+
position?: RangePosition;
|
|
64
66
|
} & Record<string, any>>;
|
|
65
67
|
};
|
|
66
68
|
}
|
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 = "MTcxNzYyNDgwMDAwMA==";
|
|
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
|
|
@@ -82,9 +82,9 @@ export const getRangeFieldValueManager = ({
|
|
|
82
82
|
const dateRangeSections = splitDateRangeSections(sections);
|
|
83
83
|
return createDateStrForV7HiddenInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate]);
|
|
84
84
|
},
|
|
85
|
-
getV6InputValueFromSections: (sections, localizedDigits,
|
|
85
|
+
getV6InputValueFromSections: (sections, localizedDigits, isRtl) => {
|
|
86
86
|
const dateRangeSections = splitDateRangeSections(sections);
|
|
87
|
-
return createDateStrForV6InputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits,
|
|
87
|
+
return createDateStrForV6InputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRtl);
|
|
88
88
|
},
|
|
89
89
|
parseValueStr: (valueStr, referenceValue, parseDate) => {
|
|
90
90
|
// TODO: Improve because it would not work if some section have the same separator as the dateSeparator.
|
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 = "MTcxNzYyNDgwMDAwMA==";
|
|
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
|
|
@@ -89,9 +89,9 @@ const getRangeFieldValueManager = ({
|
|
|
89
89
|
const dateRangeSections = (0, _dateFieldsUtils.splitDateRangeSections)(sections);
|
|
90
90
|
return (0, _internals.createDateStrForV7HiddenInputFromSections)([...dateRangeSections.startDate, ...dateRangeSections.endDate]);
|
|
91
91
|
},
|
|
92
|
-
getV6InputValueFromSections: (sections, localizedDigits,
|
|
92
|
+
getV6InputValueFromSections: (sections, localizedDigits, isRtl) => {
|
|
93
93
|
const dateRangeSections = (0, _dateFieldsUtils.splitDateRangeSections)(sections);
|
|
94
|
-
return (0, _internals.createDateStrForV6InputFromSections)([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits,
|
|
94
|
+
return (0, _internals.createDateStrForV6InputFromSections)([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRtl);
|
|
95
95
|
},
|
|
96
96
|
parseValueStr: (valueStr, referenceValue, parseDate) => {
|
|
97
97
|
// TODO: Improve because it would not work if some section have the same separator as the dateSeparator.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers-pro",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.2",
|
|
4
4
|
"description": "The Pro plan edition of the Date and Time Picker components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-date-pickers": "7.6.
|
|
42
|
+
"@mui/x-date-pickers": "7.6.2",
|
|
43
43
|
"@mui/x-license": "7.6.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|