@mui/x-date-pickers-pro 7.5.1 → 7.6.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 +87 -1
- package/DateRangeCalendar/DateRangeCalendar.types.d.ts +2 -3
- package/DateRangeCalendar/useDragRange.d.ts +3 -4
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,92 @@
|
|
|
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.0
|
|
7
|
+
|
|
8
|
+
_May 30, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Allow to define and customize the indentation of nested items in the Tree View
|
|
13
|
+
- ✨ Allow charts highlights to be controlled
|
|
14
|
+
- 🌍 Improve Persian (fa-IR) locale on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.6.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Avoid re-rendering all cells on column change (#12980) @romgrk
|
|
25
|
+
- [DataGrid] Export `GridColumnHeadersProps` (#13229) @cherniavskii
|
|
26
|
+
- [DataGrid] Fix header filters' issue with custom filters (#13255) @MBilalShafi
|
|
27
|
+
- [DataGrid] Remove dead logic to support Safari < 13 (#13249) @oliviertassinari
|
|
28
|
+
- [l10n] Improve Persian (fa-IR) locale (#12994) @amiryxe
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@7.6.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@7.6.0`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@7.6.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@7.6.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix excel export causing column with wrong width (#13191) @romgrk
|
|
39
|
+
|
|
40
|
+
### Date and Time Pickers
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers@7.6.0`
|
|
43
|
+
|
|
44
|
+
- [pickers] Fix `DateBuilderReturnType` when the date is `undefined` (#13244) @alexey-kozlenkov
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers-pro@7.6.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
47
|
+
|
|
48
|
+
Same changes as in `@mui/x-date-pickers@7.6.0`.
|
|
49
|
+
|
|
50
|
+
### Charts
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-charts@7.6.0`
|
|
53
|
+
|
|
54
|
+
- [charts] Allow charts highlights to be controlled (#12828) @JCQuintas
|
|
55
|
+
- [charts] Refactor axis band scaleType check (#13295) @JCQuintas
|
|
56
|
+
- [charts] Refactor checkScaleErrors to improve readability and simplify axis message logic (#13305) @JCQuintas
|
|
57
|
+
|
|
58
|
+
### Tree View
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-tree-view@7.6.0`
|
|
61
|
+
|
|
62
|
+
- [TreeView] Add JSDoc to every instance method (#13219) @flaviendelangle
|
|
63
|
+
- [TreeView] Allow to customize the indentation of nested items (#13225) @flaviendelangle
|
|
64
|
+
- [TreeView] Allow to define indentation at the item level (#13126) @flaviendelangle
|
|
65
|
+
|
|
66
|
+
### Docs
|
|
67
|
+
|
|
68
|
+
- [docs] Add Bulk editing demo for the Community plan (#12800) @cherniavskii
|
|
69
|
+
- [docs] Add conditional label formatting on tooltip page and link to label page (#13235) @JCQuintas
|
|
70
|
+
- [docs] Add information about key combinations on a11y sections (#13234) @arthurbalduini
|
|
71
|
+
- [docs] Cleanup of the Tree View demos (#13237) @flaviendelangle
|
|
72
|
+
- [docs] Document how to customize a subsection of a line chart (#13210) @alexfauquette
|
|
73
|
+
- [docs] Fix Pickers FAQ callout (#13238) @LukasTy
|
|
74
|
+
- [docs] Fix Vale errors @oliviertassinari
|
|
75
|
+
- [docs] Fix a small typo in property comment (#13245) @Janpot
|
|
76
|
+
- [docs] Improve the Data Grid FAQ page (#13258) @MBilalShafi
|
|
77
|
+
- [docs] Removes unused lines in TreeItem2 styling (#13264) @arthurbalduini
|
|
78
|
+
- [docs] Small improvements on accessibility data grid doc (#13233) @arthurbalduini
|
|
79
|
+
- [docs] Update Pickers demo configurations (#13303) @LukasTy
|
|
80
|
+
|
|
81
|
+
### Core
|
|
82
|
+
|
|
83
|
+
- [core] Add comment on why logic to sync column header (#13248) @oliviertassinari
|
|
84
|
+
- [core] Fix `l10n` script execution with arguments (#13297) @LukasTy
|
|
85
|
+
- [core] Prevent "Add reviewers" workflow from triggering since it doesn't work (#13236) @JCQuintas
|
|
86
|
+
- [docs-infra] Fix `@mui/material` version used in sandboxes (#13260) @LukasTy
|
|
87
|
+
- [test] Use `describeTreeView` for keyboard navigation tests on disabled items (#13184) @flaviendelangle
|
|
88
|
+
- [test] Use `describeTreeView` for remaining items tests (#13262) @flaviendelangle
|
|
89
|
+
- [test] Use test-utils from npm (#12880) @michaldudak
|
|
90
|
+
- [typescript] Remove duplicate `DateRangePosition` type in favor of `RangePosition` (#13288) @LukasTy
|
|
91
|
+
|
|
6
92
|
## v7.5.1
|
|
7
93
|
|
|
8
94
|
_May 23, 2024_
|
|
@@ -339,7 +425,7 @@ Same changes as in `@mui/x-date-pickers@7.3.1`.
|
|
|
339
425
|
### Core
|
|
340
426
|
|
|
341
427
|
- [core] Fix `l10n` GH workflow (#12895) @LukasTy
|
|
342
|
-
- [core] Match Base
|
|
428
|
+
- [core] Match Base UI and Toolpad @oliviertassinari
|
|
343
429
|
- [core] Remove redundant `setupFiles` entries in `package.json` (#12899) @LukasTy
|
|
344
430
|
- [core] Use `describeTreeView` for focus tests (#12698) @flaviendelangle
|
|
345
431
|
- [core] Use `describeTreeView` for type-ahead tests (#12811) @flaviendelangle
|
|
@@ -6,12 +6,11 @@ import { PickerValidDate, TimezoneProps } from '@mui/x-date-pickers/models';
|
|
|
6
6
|
import { PickersCalendarHeader, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps } from '@mui/x-date-pickers/PickersCalendarHeader';
|
|
7
7
|
import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlots, DayCalendarSlotProps, PickersArrowSwitcherSlots, PickersArrowSwitcherSlotProps, DayCalendarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
|
|
8
8
|
import { DayRangeValidationProps } from '../internals/models/dateRange';
|
|
9
|
-
import { DateRange } from '../models';
|
|
9
|
+
import { DateRange, RangePosition } from '../models';
|
|
10
10
|
import { DateRangeCalendarClasses } from './dateRangeCalendarClasses';
|
|
11
11
|
import { DateRangePickerDay, DateRangePickerDayProps } from '../DateRangePickerDay';
|
|
12
12
|
import { UseRangePositionProps } from '../internals/hooks/useRangePosition';
|
|
13
13
|
import { PickersRangeCalendarHeaderProps } from '../PickersRangeCalendarHeader';
|
|
14
|
-
export type DateRangePosition = 'start' | 'end';
|
|
15
14
|
export interface DateRangeCalendarSlots<TDate extends PickerValidDate> extends PickersArrowSwitcherSlots, Omit<DayCalendarSlots<TDate>, 'day'>, PickersCalendarHeaderSlots {
|
|
16
15
|
/**
|
|
17
16
|
* Custom component for calendar header.
|
|
@@ -118,7 +117,7 @@ export interface DateRangeCalendarProps<TDate extends PickerValidDate> extends E
|
|
|
118
117
|
* Used on Date Time Range pickers with current `rangePosition` to force a `finish` selection after just one range position selection.
|
|
119
118
|
* @default ['start', 'end']
|
|
120
119
|
*/
|
|
121
|
-
availableRangePositions?:
|
|
120
|
+
availableRangePositions?: RangePosition[];
|
|
122
121
|
}
|
|
123
122
|
export interface DateRangeCalendarOwnerState<TDate extends PickerValidDate> extends DateRangeCalendarProps<TDate> {
|
|
124
123
|
isDragging: boolean;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MuiPickersAdapter, PickersTimezone, PickerValidDate } from '@mui/x-date-pickers/models';
|
|
3
|
-
import {
|
|
4
|
-
import { DateRange } from '../models';
|
|
3
|
+
import { DateRange, RangePosition } from '../models';
|
|
5
4
|
interface UseDragRangeParams<TDate extends PickerValidDate> {
|
|
6
5
|
disableDragEditing?: boolean;
|
|
7
6
|
utils: MuiPickersAdapter<TDate>;
|
|
8
7
|
setRangeDragDay: (value: TDate | null) => void;
|
|
9
8
|
setIsDragging: (value: boolean) => void;
|
|
10
9
|
isDragging: boolean;
|
|
11
|
-
onDatePositionChange: (position:
|
|
10
|
+
onDatePositionChange: (position: RangePosition) => void;
|
|
12
11
|
onDrop: (newDate: TDate) => void;
|
|
13
12
|
dateRange: DateRange<TDate>;
|
|
14
13
|
timezone: PickersTimezone;
|
|
@@ -27,7 +26,7 @@ interface UseDragRangeEvents {
|
|
|
27
26
|
interface UseDragRangeResponse<TDate extends PickerValidDate> extends UseDragRangeEvents {
|
|
28
27
|
isDragging: boolean;
|
|
29
28
|
rangeDragDay: TDate | null;
|
|
30
|
-
draggingDatePosition:
|
|
29
|
+
draggingDatePosition: RangePosition | null;
|
|
31
30
|
}
|
|
32
31
|
export declare const useDragRange: <TDate extends PickerValidDate>({ disableDragEditing, utils, onDatePositionChange, onDrop, dateRange, timezone, }: Omit<UseDragRangeParams<TDate>, 'setRangeDragDay' | 'setIsDragging' | 'isDragging'>) => UseDragRangeResponse<TDate>;
|
|
33
32
|
export {};
|
package/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 = "MTcxNzAxNjQwMDAwMA==";
|
|
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcxNzAxNjQwMDAwMA==";
|
|
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
|
@@ -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 = "MTcxNzAxNjQwMDAwMA==";
|
|
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": "7.
|
|
3
|
+
"version": "7.6.0",
|
|
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",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"directory": "packages/x-date-pickers-pro"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.24.
|
|
35
|
+
"@babel/runtime": "^7.24.6",
|
|
36
36
|
"@mui/base": "^5.0.0-beta.40",
|
|
37
|
-
"@mui/system": "^5.15.
|
|
37
|
+
"@mui/system": "^5.15.15",
|
|
38
38
|
"@mui/utils": "^5.15.14",
|
|
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.
|
|
43
|
-
"@mui/x-license": "7.
|
|
42
|
+
"@mui/x-date-pickers": "7.6.0",
|
|
43
|
+
"@mui/x-license": "7.6.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@emotion/react": "^11.9.0",
|