@mui/x-date-pickers-pro 7.11.1 → 7.12.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 +110 -4
- package/DateRangeCalendar/DateRangeCalendar.js +4 -1
- package/DateRangeCalendar/DateRangeCalendar.types.d.ts +1 -1
- package/DateRangePicker/DateRangePicker.js +2 -0
- package/DateRangePicker/DateRangePickerToolbar.js +1 -1
- package/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/DateTimeRangePicker/DateTimeRangePicker.js +2 -0
- package/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
- package/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -1
- package/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +3 -1
- package/MobileDateRangePicker/MobileDateRangePicker.js +3 -1
- package/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +3 -1
- package/MultiInputDateRangeField/MultiInputDateRangeField.js +3 -1
- package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +1 -1
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +3 -1
- package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +1 -1
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
- package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +1 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.js +3 -1
- package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +1 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +3 -1
- package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +1 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +1 -1
- package/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/index.js +1 -1
- package/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +1 -1
- package/internals/hooks/useEnrichedRangePickerFieldProps.js +1 -1
- package/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/models/fields.d.ts +1 -1
- package/modern/DateRangeCalendar/DateRangeCalendar.js +4 -1
- package/modern/DateRangePicker/DateRangePicker.js +2 -0
- package/modern/DateRangePicker/DateRangePickerToolbar.js +1 -1
- package/modern/DateRangePickerDay/DateRangePickerDay.js +1 -1
- package/modern/DateTimeRangePicker/DateTimeRangePicker.js +2 -0
- package/modern/DateTimeRangePicker/DateTimeRangePickerToolbar.js +1 -1
- package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +3 -1
- package/modern/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +3 -1
- package/modern/MobileDateRangePicker/MobileDateRangePicker.js +3 -1
- package/modern/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +3 -1
- package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +3 -1
- package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +3 -1
- package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +1 -1
- package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +3 -1
- package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +3 -1
- package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +1 -1
- package/modern/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/modern/index.js +1 -1
- package/modern/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +1 -1
- package/modern/internals/hooks/useEnrichedRangePickerFieldProps.js +1 -1
- package/modern/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/DateRangeCalendar/DateRangeCalendar.js +6 -3
- package/node/DateRangePicker/DateRangePicker.js +2 -0
- package/node/DateRangePicker/DateRangePickerToolbar.js +2 -2
- package/node/DateRangePickerDay/DateRangePickerDay.js +2 -2
- package/node/DateTimeRangePicker/DateTimeRangePicker.js +2 -0
- package/node/DateTimeRangePicker/DateTimeRangePickerToolbar.js +2 -2
- package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +6 -4
- package/node/DesktopDateTimeRangePicker/DesktopDateTimeRangePicker.js +7 -5
- package/node/MobileDateRangePicker/MobileDateRangePicker.js +6 -4
- package/node/MobileDateTimeRangePicker/MobileDateTimeRangePicker.js +4 -2
- package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +11 -9
- package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +11 -9
- package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +9 -9
- package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +6 -4
- package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +4 -2
- package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +4 -4
- package/node/StaticDateRangePicker/StaticDateRangePicker.js +2 -0
- package/node/index.js +1 -1
- package/node/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +2 -2
- package/node/internals/hooks/useEnrichedRangePickerFieldProps.js +4 -4
- package/node/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +2 -2
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,112 @@
|
|
|
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.12.0
|
|
7
|
+
|
|
8
|
+
_Aug 1, 2024_
|
|
9
|
+
|
|
10
|
+
### 💵 Our commercial offering is evolving
|
|
11
|
+
|
|
12
|
+
The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving two new packages:
|
|
13
|
+
|
|
14
|
+
- `@mui/x-tree-view-pro` (available today!)
|
|
15
|
+
- `@mui/x-charts-pro` (available in the coming weeks)
|
|
16
|
+
|
|
17
|
+
As always, every feature released as part of the MIT plan will remain free and MIT licensed forever.
|
|
18
|
+
|
|
19
|
+
This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
|
|
20
|
+
|
|
21
|
+
### Highlights
|
|
22
|
+
|
|
23
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
24
|
+
|
|
25
|
+
- 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component
|
|
26
|
+
|
|
27
|
+
<img width="384" src="https://github.com/user-attachments/assets/78bd83c5-7ce4-4ed7-acf9-be70b2dbce54" alt="Item reordering using drag and drop" />
|
|
28
|
+
|
|
29
|
+
- 📦 Support Common JS bundle out of the box on `@mui/x-charts` by adding vendored D3 dependencies.
|
|
30
|
+
|
|
31
|
+
- This modifies how the package imports D3.js. It will impact you if you use `d3` packages installed by `@mui/x-charts` and don't have them in your `package.json`. You shouldn't be affected otherwise.
|
|
32
|
+
- For more context, the initial issue is caused by D3 only exporting ESM.
|
|
33
|
+
|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
- The solution up until now was to export charts with only ESM. But some frameworks are confused by this configuration.
|
|
37
|
+
|
|
38
|
+

|
|
39
|
+
|
|
40
|
+
- So in order to fix this, we are providing a CJS version of D3.
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
- 🌍 Improve Turkish (tr-TR) locale on the Data Grid
|
|
45
|
+
- 🌍 Improve Finnish (fi-FI) locale on the Date and Time Pickers
|
|
46
|
+
- 🐞 Bugfixes
|
|
47
|
+
- 📚 Documentation improvements
|
|
48
|
+
|
|
49
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
50
|
+
|
|
51
|
+
### Data Grid
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid@7.12.0`
|
|
54
|
+
|
|
55
|
+
- [DataGrid] Fix crash when updating columns immediately after scrolling (#13781) @cherniavskii
|
|
56
|
+
- [DataGrid] Fix `role=presentation` a11y issue (#13891) @romgrk
|
|
57
|
+
- [DataGrid] Fix top corner pixels & outline radius (#13943) @romgrk
|
|
58
|
+
- [DataGrid] Refactor: remove useless copy (#14039) @romgrk
|
|
59
|
+
- [l10n] Improve Turkish (tr-TR) locale (#13996) @bagcivan
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-data-grid-pro@7.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
62
|
+
|
|
63
|
+
Same changes as in `@mui/x-data-grid@7.12.0`.
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-data-grid-premium@7.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-data-grid-pro@7.12.0`.
|
|
68
|
+
|
|
69
|
+
### Date and Time Pickers
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-date-pickers@7.12.0`
|
|
72
|
+
|
|
73
|
+
- [l10n] Improve Finnish (fi-FI) locale (#14054) @frozenzia
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-date-pickers-pro@7.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-date-pickers@7.12.0`.
|
|
78
|
+
|
|
79
|
+
### Charts
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-charts@7.12.0`
|
|
82
|
+
|
|
83
|
+
- [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas
|
|
84
|
+
- [charts] Use vendor to have Common JS bundle working out of the box (#13608) @alexfauquette
|
|
85
|
+
- [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas
|
|
86
|
+
|
|
87
|
+
### Tree View
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-tree-view@7.12.0`
|
|
90
|
+
|
|
91
|
+
- [TreeView] Add new prop `onItemClick` on the Tree View components (#14018) @flaviendelangle
|
|
92
|
+
- [TreeView] Add new utility function `isEventTargetInDescendants` (#13982) @flaviendelangle
|
|
93
|
+
- [TreeView] Support item reordering using drag and drop (#12213) @flaviendelangle
|
|
94
|
+
|
|
95
|
+
### Docs
|
|
96
|
+
|
|
97
|
+
- [docs] Add Pickers `minDate` and `maxDate` `default` description (#14024) @LukasTy
|
|
98
|
+
- [docs] Fix 404 (#13989) @alexfauquette
|
|
99
|
+
- [docs] Fix Vale errors (#14025) @oliviertassinari
|
|
100
|
+
- [docs] Update on `renderCell` & autogenerated rows (#13879) @romgrk
|
|
101
|
+
|
|
102
|
+
### Core
|
|
103
|
+
|
|
104
|
+
- [core] Fix event naming convention @oliviertassinari
|
|
105
|
+
- [core] Replace @mui/base with @mui/utils + @mui/material (#13823) @mnajdova
|
|
106
|
+
- [core] Test `charts` performance with codspeed (#13952) @JCQuintas
|
|
107
|
+
- [infra] Consolidate issue cleanup and support labeling action (#14031) @michelengelen
|
|
108
|
+
- [infra] Revert `vale` action `paths` filtering (#14038) @LukasTy
|
|
109
|
+
- [test] Fix adapters code coverage (#13969) @alexfauquette
|
|
110
|
+
- [test] Fix mocha config to run charts tests (#14041) @alexfauquette
|
|
111
|
+
|
|
6
112
|
## 7.11.1
|
|
7
113
|
|
|
8
114
|
_Jul 25, 2024_
|
|
@@ -143,8 +249,8 @@ Same changes as in `@mui/x-date-pickers@7.11.0`, plus:
|
|
|
143
249
|
- [charts] Defaultize axis on top level `useChartContainerProps` (#13817) @JCQuintas
|
|
144
250
|
- [charts] Fix charts not passing `className` to root element (#13647) @JCQuintas
|
|
145
251
|
- [charts] Generate API documentation for pro components (#13822) @alexfauquette
|
|
146
|
-
- [charts] Improve zoomed highlight
|
|
147
|
-
- [charts] Allow zoom on Y axis and add zoom options to configure zooming
|
|
252
|
+
- [charts] Improve zoomed highlight behavior (unreleased) (#13868) @JCQuintas
|
|
253
|
+
- [charts] Allow zoom on Y axis and add zoom options to configure zooming behavior (unreleased) (#13726) @JCQuintas
|
|
148
254
|
- [charts] Disable animations while zooming (unreleased) (#13807) @JCQuintas
|
|
149
255
|
|
|
150
256
|
### Tree View
|
|
@@ -617,7 +723,7 @@ Same changes as in `@mui/x-date-pickers@7.6.2`.
|
|
|
617
723
|
|
|
618
724
|
#### `@mui/x-charts@7.6.2`
|
|
619
725
|
|
|
620
|
-
- [charts] Add `Initializable` type and
|
|
726
|
+
- [charts] Add `Initializable` type and behavior to allow checking if a complex context has been initialized. (#13365) @JCQuintas
|
|
621
727
|
- [charts] Fix some props not working in `xAxis` and `yAxis` (#13372) @Valyok26
|
|
622
728
|
- [charts] Harmonize charts types (#13366) @alexfauquette
|
|
623
729
|
- [charts] Introduce plugins system (#13367) @alexfauquette
|
|
@@ -625,7 +731,7 @@ Same changes as in `@mui/x-date-pickers@7.6.2`.
|
|
|
625
731
|
|
|
626
732
|
### Docs
|
|
627
733
|
|
|
628
|
-
- [docs] Add badges like in Material
|
|
734
|
+
- [docs] Add badges like in Material UI @oliviertassinari
|
|
629
735
|
- [docs] Update twitter.com to x.com @oliviertassinari
|
|
630
736
|
- [docs] Fix the description of `tickInterval` (#13355) @alexfauquette
|
|
631
737
|
- [docs] Adjust the code example for `quickFilterValues` (#12919) @michelengelen
|
|
@@ -7,7 +7,8 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
9
9
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
10
|
-
import
|
|
10
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
11
12
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
12
13
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
14
|
import useId from '@mui/utils/useId';
|
|
@@ -576,10 +577,12 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
576
577
|
loading: PropTypes.bool,
|
|
577
578
|
/**
|
|
578
579
|
* Maximal selectable date.
|
|
580
|
+
* @default 2099-12-31
|
|
579
581
|
*/
|
|
580
582
|
maxDate: PropTypes.object,
|
|
581
583
|
/**
|
|
582
584
|
* Minimal selectable date.
|
|
585
|
+
* @default 1900-01-01
|
|
583
586
|
*/
|
|
584
587
|
minDate: PropTypes.object,
|
|
585
588
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/system';
|
|
3
|
-
import { SlotComponentProps } from '@mui/
|
|
3
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
4
4
|
import { Theme } from '@mui/material/styles';
|
|
5
5
|
import { PickerValidDate, TimezoneProps } from '@mui/x-date-pickers/models';
|
|
6
6
|
import { PickersCalendarHeader, PickersCalendarHeaderSlots, PickersCalendarHeaderSlotProps } from '@mui/x-date-pickers/PickersCalendarHeader';
|
|
@@ -176,10 +176,12 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
176
176
|
localeText: PropTypes.object,
|
|
177
177
|
/**
|
|
178
178
|
* Maximal selectable date.
|
|
179
|
+
* @default 2099-12-31
|
|
179
180
|
*/
|
|
180
181
|
maxDate: PropTypes.object,
|
|
181
182
|
/**
|
|
182
183
|
* Minimal selectable date.
|
|
184
|
+
* @default 1900-01-01
|
|
183
185
|
*/
|
|
184
186
|
minDate: PropTypes.object,
|
|
185
187
|
/**
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import Typography from '@mui/material/Typography';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import
|
|
9
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { PickersToolbar, PickersToolbarButton, useUtils } from '@mui/x-date-pickers/internals';
|
|
11
11
|
import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
|
|
12
12
|
import { getDateRangePickerToolbarUtilityClass } from './dateRangePickerToolbarClasses';
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { useLicenseVerifier } from '@mui/x-license';
|
|
8
8
|
import { alpha, styled, useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import
|
|
9
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { useUtils } from '@mui/x-date-pickers/internals';
|
|
11
11
|
import { PickersDay } from '@mui/x-date-pickers/PickersDay';
|
|
12
12
|
import { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from './dateRangePickerDayClasses';
|
|
@@ -186,6 +186,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
186
186
|
localeText: PropTypes.object,
|
|
187
187
|
/**
|
|
188
188
|
* Maximal selectable date.
|
|
189
|
+
* @default 2099-12-31
|
|
189
190
|
*/
|
|
190
191
|
maxDate: PropTypes.object,
|
|
191
192
|
/**
|
|
@@ -199,6 +200,7 @@ process.env.NODE_ENV !== "production" ? DateTimeRangePicker.propTypes = {
|
|
|
199
200
|
maxTime: PropTypes.object,
|
|
200
201
|
/**
|
|
201
202
|
* Minimal selectable date.
|
|
203
|
+
* @default 1900-01-01
|
|
202
204
|
*/
|
|
203
205
|
minDate: PropTypes.object,
|
|
204
206
|
/**
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
|
-
import
|
|
8
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import { useUtils } from '@mui/x-date-pickers/internals';
|
|
10
10
|
import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
|
|
11
11
|
import { DateTimePickerToolbar } from '@mui/x-date-pickers/DateTimePicker';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { extractValidationProps } from '@mui/x-date-pickers/internals';
|
|
5
|
-
import
|
|
5
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
6
6
|
import { refType } from '@mui/utils';
|
|
7
7
|
import { rangeValueManager } from '../internals/utils/valueManagers';
|
|
8
8
|
import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
|
|
@@ -181,10 +181,12 @@ DesktopDateRangePicker.propTypes = {
|
|
|
181
181
|
localeText: PropTypes.object,
|
|
182
182
|
/**
|
|
183
183
|
* Maximal selectable date.
|
|
184
|
+
* @default 2099-12-31
|
|
184
185
|
*/
|
|
185
186
|
maxDate: PropTypes.object,
|
|
186
187
|
/**
|
|
187
188
|
* Minimal selectable date.
|
|
189
|
+
* @default 1900-01-01
|
|
188
190
|
*/
|
|
189
191
|
minDate: PropTypes.object,
|
|
190
192
|
/**
|
|
@@ -4,7 +4,7 @@ const _excluded = ["openTo", "rangePosition"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { extractValidationProps, isDatePickerView, isInternalTimeView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
|
|
7
|
-
import
|
|
7
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
8
8
|
import { refType } from '@mui/utils';
|
|
9
9
|
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';
|
|
10
10
|
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '@mui/x-date-pickers/MultiSectionDigitalClock';
|
|
@@ -266,6 +266,7 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
266
266
|
localeText: PropTypes.object,
|
|
267
267
|
/**
|
|
268
268
|
* Maximal selectable date.
|
|
269
|
+
* @default 2099-12-31
|
|
269
270
|
*/
|
|
270
271
|
maxDate: PropTypes.object,
|
|
271
272
|
/**
|
|
@@ -279,6 +280,7 @@ DesktopDateTimeRangePicker.propTypes = {
|
|
|
279
280
|
maxTime: PropTypes.object,
|
|
280
281
|
/**
|
|
281
282
|
* Minimal selectable date.
|
|
283
|
+
* @default 1900-01-01
|
|
282
284
|
*/
|
|
283
285
|
minDate: PropTypes.object,
|
|
284
286
|
/**
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { extractValidationProps } from '@mui/x-date-pickers/internals';
|
|
5
|
-
import
|
|
5
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
6
6
|
import { refType } from '@mui/utils';
|
|
7
7
|
import { rangeValueManager } from '../internals/utils/valueManagers';
|
|
8
8
|
import { useDateRangePickerDefaultizedProps } from '../DateRangePicker/shared';
|
|
@@ -177,10 +177,12 @@ MobileDateRangePicker.propTypes = {
|
|
|
177
177
|
localeText: PropTypes.object,
|
|
178
178
|
/**
|
|
179
179
|
* Maximal selectable date.
|
|
180
|
+
* @default 2099-12-31
|
|
180
181
|
*/
|
|
181
182
|
maxDate: PropTypes.object,
|
|
182
183
|
/**
|
|
183
184
|
* Minimal selectable date.
|
|
185
|
+
* @default 1900-01-01
|
|
184
186
|
*/
|
|
185
187
|
minDate: PropTypes.object,
|
|
186
188
|
/**
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { refType } from '@mui/utils';
|
|
7
7
|
import { DIALOG_WIDTH, VIEW_HEIGHT, extractValidationProps, isInternalTimeView, isDatePickerView, resolveDateTimeFormat, useUtils } from '@mui/x-date-pickers/internals';
|
|
8
|
-
import
|
|
8
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
9
9
|
import { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from '@mui/x-date-pickers/timeViewRenderers';
|
|
10
10
|
import { multiSectionDigitalClockClasses, multiSectionDigitalClockSectionClasses } from '@mui/x-date-pickers/MultiSectionDigitalClock';
|
|
11
11
|
import { digitalClockClasses } from '@mui/x-date-pickers/DigitalClock';
|
|
@@ -260,6 +260,7 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
260
260
|
localeText: PropTypes.object,
|
|
261
261
|
/**
|
|
262
262
|
* Maximal selectable date.
|
|
263
|
+
* @default 2099-12-31
|
|
263
264
|
*/
|
|
264
265
|
maxDate: PropTypes.object,
|
|
265
266
|
/**
|
|
@@ -273,6 +274,7 @@ MobileDateTimeRangePicker.propTypes = {
|
|
|
273
274
|
maxTime: PropTypes.object,
|
|
274
275
|
/**
|
|
275
276
|
* Minimal selectable date.
|
|
277
|
+
* @default 1900-01-01
|
|
276
278
|
*/
|
|
277
279
|
minDate: PropTypes.object,
|
|
278
280
|
/**
|
|
@@ -8,7 +8,7 @@ import Stack from '@mui/material/Stack';
|
|
|
8
8
|
import MuiTextField from '@mui/material/TextField';
|
|
9
9
|
import Typography from '@mui/material/Typography';
|
|
10
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
11
|
-
import
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
12
12
|
import { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
13
13
|
import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
14
14
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
@@ -190,10 +190,12 @@ process.env.NODE_ENV !== "production" ? MultiInputDateRangeField.propTypes = {
|
|
|
190
190
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
191
191
|
/**
|
|
192
192
|
* Maximal selectable date.
|
|
193
|
+
* @default 2099-12-31
|
|
193
194
|
*/
|
|
194
195
|
maxDate: PropTypes.object,
|
|
195
196
|
/**
|
|
196
197
|
* Minimal selectable date.
|
|
198
|
+
* @default 1900-01-01
|
|
197
199
|
*/
|
|
198
200
|
minDate: PropTypes.object,
|
|
199
201
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { PickerValidDate } from '@mui/x-date-pickers/models';
|
|
3
|
-
import { SlotComponentProps } from '@mui/
|
|
3
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
5
|
import Stack, { StackProps } from '@mui/material/Stack';
|
|
6
6
|
import TextField from '@mui/material/TextField';
|
|
@@ -8,7 +8,7 @@ import Stack from '@mui/material/Stack';
|
|
|
8
8
|
import MuiTextField from '@mui/material/TextField';
|
|
9
9
|
import Typography from '@mui/material/Typography';
|
|
10
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
11
|
-
import
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
12
12
|
import { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
13
13
|
import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
14
14
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
@@ -200,6 +200,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
200
200
|
formatDensity: PropTypes.oneOf(['dense', 'spacious']),
|
|
201
201
|
/**
|
|
202
202
|
* Maximal selectable date.
|
|
203
|
+
* @default 2099-12-31
|
|
203
204
|
*/
|
|
204
205
|
maxDate: PropTypes.object,
|
|
205
206
|
/**
|
|
@@ -213,6 +214,7 @@ process.env.NODE_ENV !== "production" ? MultiInputDateTimeRangeField.propTypes =
|
|
|
213
214
|
maxTime: PropTypes.object,
|
|
214
215
|
/**
|
|
215
216
|
* Minimal selectable date.
|
|
217
|
+
* @default 1900-01-01
|
|
216
218
|
*/
|
|
217
219
|
minDate: PropTypes.object,
|
|
218
220
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
import Typography from '@mui/material/Typography';
|
|
4
4
|
import Stack, { StackProps } from '@mui/material/Stack';
|
|
5
5
|
import TextField from '@mui/material/TextField';
|
|
@@ -8,7 +8,7 @@ import Stack from '@mui/material/Stack';
|
|
|
8
8
|
import MuiTextField from '@mui/material/TextField';
|
|
9
9
|
import Typography from '@mui/material/Typography';
|
|
10
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
11
|
-
import
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
12
12
|
import { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';
|
|
13
13
|
import { splitFieldInternalAndForwardedProps, convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
14
14
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
import Typography from '@mui/material/Typography';
|
|
4
4
|
import Stack, { StackProps } from '@mui/material/Stack';
|
|
5
5
|
import TextField from '@mui/material/TextField';
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import MuiTextField from '@mui/material/TextField';
|
|
7
7
|
import { useThemeProps } from '@mui/material/styles';
|
|
8
|
-
import
|
|
8
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
9
9
|
import { refType } from '@mui/utils';
|
|
10
10
|
import { useClearableField } from '@mui/x-date-pickers/hooks';
|
|
11
11
|
import { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
@@ -180,10 +180,12 @@ process.env.NODE_ENV !== "production" ? SingleInputDateRangeField.propTypes = {
|
|
|
180
180
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
181
181
|
/**
|
|
182
182
|
* Maximal selectable date.
|
|
183
|
+
* @default 2099-12-31
|
|
183
184
|
*/
|
|
184
185
|
maxDate: PropTypes.object,
|
|
185
186
|
/**
|
|
186
187
|
* Minimal selectable date.
|
|
188
|
+
* @default 1900-01-01
|
|
187
189
|
*/
|
|
188
190
|
minDate: PropTypes.object,
|
|
189
191
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
import TextField from '@mui/material/TextField';
|
|
4
4
|
import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { BuiltInFieldTextFieldProps, PickerValidDate } from '@mui/x-date-pickers/models';
|
|
@@ -8,7 +8,7 @@ import { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/i
|
|
|
8
8
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
9
9
|
import { useThemeProps } from '@mui/material/styles';
|
|
10
10
|
import { refType } from '@mui/utils';
|
|
11
|
-
import
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
12
12
|
import { useClearableField } from '@mui/x-date-pickers/hooks';
|
|
13
13
|
import { useSingleInputDateTimeRangeField } from './useSingleInputDateTimeRangeField';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -190,6 +190,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
190
190
|
margin: PropTypes.oneOf(['dense', 'none', 'normal']),
|
|
191
191
|
/**
|
|
192
192
|
* Maximal selectable date.
|
|
193
|
+
* @default 2099-12-31
|
|
193
194
|
*/
|
|
194
195
|
maxDate: PropTypes.object,
|
|
195
196
|
/**
|
|
@@ -203,6 +204,7 @@ process.env.NODE_ENV !== "production" ? SingleInputDateTimeRangeField.propTypes
|
|
|
203
204
|
maxTime: PropTypes.object,
|
|
204
205
|
/**
|
|
205
206
|
* Minimal selectable date.
|
|
207
|
+
* @default 1900-01-01
|
|
206
208
|
*/
|
|
207
209
|
minDate: PropTypes.object,
|
|
208
210
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
import TextField from '@mui/material/TextField';
|
|
4
4
|
import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { BuiltInFieldTextFieldProps, PickerValidDate } from '@mui/x-date-pickers/models';
|
|
@@ -8,7 +8,7 @@ import { useClearableField } from '@mui/x-date-pickers/hooks';
|
|
|
8
8
|
import { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';
|
|
9
9
|
import { PickersTextField } from '@mui/x-date-pickers/PickersTextField';
|
|
10
10
|
import { useThemeProps } from '@mui/material/styles';
|
|
11
|
-
import
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
12
12
|
import { refType } from '@mui/utils';
|
|
13
13
|
import { useSingleInputTimeRangeField } from './useSingleInputTimeRangeField';
|
|
14
14
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
import TextField from '@mui/material/TextField';
|
|
4
4
|
import { UseFieldInternalProps } from '@mui/x-date-pickers/internals';
|
|
5
5
|
import { PickerValidDate, BuiltInFieldTextFieldProps } from '@mui/x-date-pickers/models';
|
|
@@ -145,10 +145,12 @@ StaticDateRangePicker.propTypes = {
|
|
|
145
145
|
localeText: PropTypes.object,
|
|
146
146
|
/**
|
|
147
147
|
* Maximal selectable date.
|
|
148
|
+
* @default 2099-12-31
|
|
148
149
|
*/
|
|
149
150
|
maxDate: PropTypes.object,
|
|
150
151
|
/**
|
|
151
152
|
* Minimal selectable date.
|
|
153
|
+
* @default 1900-01-01
|
|
152
154
|
*/
|
|
153
155
|
minDate: PropTypes.object,
|
|
154
156
|
/**
|
package/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["props"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
6
6
|
import { useLicenseVerifier } from '@mui/x-license';
|
|
7
7
|
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
|
|
8
8
|
import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import Stack, { StackProps } from '@mui/material/Stack';
|
|
3
3
|
import Typography, { TypographyProps } from '@mui/material/Typography';
|
|
4
4
|
import TextField from '@mui/material/TextField';
|
|
5
|
-
import { SlotComponentProps } from '@mui/
|
|
5
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
6
6
|
import { BaseSingleInputFieldProps, FieldRef, PickerValidDate } from '@mui/x-date-pickers/models';
|
|
7
7
|
import { UseClearableFieldSlots, UseClearableFieldSlotProps } from '@mui/x-date-pickers/hooks';
|
|
8
8
|
import { PickersInputLocaleText } from '@mui/x-date-pickers/locales';
|
|
@@ -2,7 +2,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
2
2
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
3
|
const _excluded = ["clearable", "onClear"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
6
6
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
7
7
|
import useForkRef from '@mui/utils/useForkRef';
|
|
8
8
|
import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["props"];
|
|
4
4
|
import * as React from 'react';
|
|
5
|
-
import
|
|
5
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
6
6
|
import { useLicenseVerifier } from '@mui/x-license';
|
|
7
7
|
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
|
|
8
8
|
import { PickersLayout } from '@mui/x-date-pickers/PickersLayout';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyMjQ2MzIwMDAwMA==";
|
|
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/models/fields.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentProps } from '@mui/
|
|
2
|
+
import { SlotComponentProps } from '@mui/utils';
|
|
3
3
|
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';
|
|
@@ -7,7 +7,8 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
9
9
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
10
|
-
import
|
|
10
|
+
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
11
|
+
import useSlotProps from '@mui/utils/useSlotProps';
|
|
11
12
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
12
13
|
import composeClasses from '@mui/utils/composeClasses';
|
|
13
14
|
import useId from '@mui/utils/useId';
|
|
@@ -576,10 +577,12 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
|
|
|
576
577
|
loading: PropTypes.bool,
|
|
577
578
|
/**
|
|
578
579
|
* Maximal selectable date.
|
|
580
|
+
* @default 2099-12-31
|
|
579
581
|
*/
|
|
580
582
|
maxDate: PropTypes.object,
|
|
581
583
|
/**
|
|
582
584
|
* Minimal selectable date.
|
|
585
|
+
* @default 1900-01-01
|
|
583
586
|
*/
|
|
584
587
|
minDate: PropTypes.object,
|
|
585
588
|
/**
|
|
@@ -176,10 +176,12 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
|
|
|
176
176
|
localeText: PropTypes.object,
|
|
177
177
|
/**
|
|
178
178
|
* Maximal selectable date.
|
|
179
|
+
* @default 2099-12-31
|
|
179
180
|
*/
|
|
180
181
|
maxDate: PropTypes.object,
|
|
181
182
|
/**
|
|
182
183
|
* Minimal selectable date.
|
|
184
|
+
* @default 1900-01-01
|
|
183
185
|
*/
|
|
184
186
|
minDate: PropTypes.object,
|
|
185
187
|
/**
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import Typography from '@mui/material/Typography';
|
|
8
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
9
|
-
import
|
|
9
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
10
10
|
import { PickersToolbar, PickersToolbarButton, useUtils } from '@mui/x-date-pickers/internals';
|
|
11
11
|
import { usePickersTranslations } from '@mui/x-date-pickers/hooks';
|
|
12
12
|
import { getDateRangePickerToolbarUtilityClass } from './dateRangePickerToolbarClasses';
|