@mui/x-date-pickers 6.9.1 → 6.9.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 +62 -0
- package/DigitalClock/DigitalClock.js +8 -1
- package/README.md +2 -2
- package/index.js +1 -1
- package/legacy/DigitalClock/DigitalClock.js +8 -1
- package/legacy/index.js +1 -1
- package/modern/DigitalClock/DigitalClock.js +8 -1
- package/modern/index.js +1 -1
- package/node/DigitalClock/DigitalClock.js +8 -1
- package/node/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,68 @@
|
|
|
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.9.2
|
|
7
|
+
|
|
8
|
+
_Jul 6, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Auto-scroll when making range selection (#8661) @m4theushw
|
|
13
|
+
|
|
14
|
+
- 📚 New page: Components lifecycle (#8372) @flaviendelangle
|
|
15
|
+
|
|
16
|
+
Clarify pickers events and value updates in a [single docs page](https://mui.com/x/react-date-pickers/lifecycle/).
|
|
17
|
+
|
|
18
|
+
- 🥧 Add pie chart component
|
|
19
|
+
|
|
20
|
+
They are fresh from the code editor. You can visit [pie charts docs](https://mui.com/x/react-charts/pie/) or their [demo page](https://mui.com/x/react-charts/pie-demo/).
|
|
21
|
+
|
|
22
|
+
<img width="380" alt="pie-charts" src="https://github.com/mui/mui-x/assets/13808724/fe908c45-803c-4316-b913-dbd2f9f0551e">
|
|
23
|
+
|
|
24
|
+
- 🐞 Bugfixes
|
|
25
|
+
|
|
26
|
+
- 📚 Documentation improvements
|
|
27
|
+
|
|
28
|
+
### `@mui/x-data-grid@v6.9.2` / `@mui/x-data-grid-pro@v6.9.2` / `@mui/x-data-grid-premium@v6.9.2`
|
|
29
|
+
|
|
30
|
+
#### Changes
|
|
31
|
+
|
|
32
|
+
- [DataGrid] Fix `RangeError` when using flex columns (#9554) @cherniavskii
|
|
33
|
+
- [DataGrid] Fix React 17 editing bug (#9530) @romgrk
|
|
34
|
+
- [DataGrid] Use `getRowId` in filtering (#9564) @romgrk
|
|
35
|
+
- [DataGrid] Correctly reflect `TablePagination`'s `rowsPerPageOptions` shape to `pageSizeOptions` (#9438) @burakkgunduzz
|
|
36
|
+
- [DataGridPremium] Auto-scroll when making range selection (#8661) @m4theushw
|
|
37
|
+
- [l10n] Improve Spanish (es-ES) locale (#9500) @fufex
|
|
38
|
+
|
|
39
|
+
### `@mui/x-date-pickers@v6.9.2` / `@mui/x-date-pickers-pro@v6.9.2`
|
|
40
|
+
|
|
41
|
+
#### Changes
|
|
42
|
+
|
|
43
|
+
- [pickers] Forward digital clock classes (#9555) @YoonjiJang
|
|
44
|
+
- [pickers] Rename `internal` folder to `internals` on `@mui/x-date-picker-pro` (#9571) @flaviendelangle
|
|
45
|
+
|
|
46
|
+
### `@mui/x-charts@6.0.0-alpha.2`
|
|
47
|
+
|
|
48
|
+
#### Changes
|
|
49
|
+
|
|
50
|
+
- [charts] Add pie chart component (#9395) @alexfauquette
|
|
51
|
+
|
|
52
|
+
### Docs
|
|
53
|
+
|
|
54
|
+
- [docs] Add pickers playground (#9164) @LukasTy
|
|
55
|
+
- [docs] Fix API links for pickers (#9573) @alexfauquette
|
|
56
|
+
- [docs] Fix demos with `ToggleButtonGroup` (#9548) @flaviendelangle
|
|
57
|
+
- [docs] Fix typos in pagination documentation page (#9332) @RatherBeLunar
|
|
58
|
+
- [docs] Hide ads on paid content @oliviertassinari
|
|
59
|
+
- [docs] Move the charts in the sidebar (#9437) @flaviendelangle
|
|
60
|
+
- [docs] New page: Components lifecycle (#8372) @flaviendelangle
|
|
61
|
+
- [docs] Remove outdated header tag @oliviertassinari
|
|
62
|
+
|
|
63
|
+
### Core
|
|
64
|
+
|
|
65
|
+
- [core] Fix typo in priority support @oliviertassinari
|
|
66
|
+
- [core] Remove mention of Crowdin @oliviertassinari
|
|
67
|
+
|
|
6
68
|
## 6.9.1
|
|
7
69
|
|
|
8
70
|
_Jun 30, 2023_
|
|
@@ -4,6 +4,7 @@ const _excluded = ["ampm", "timeStep", "autoFocus", "components", "componentsPro
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import { useSlotProps } from '@mui/base/utils';
|
|
7
8
|
import { alpha, styled, useThemeProps } from '@mui/material/styles';
|
|
8
9
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
9
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
@@ -137,7 +138,12 @@ export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(
|
|
|
137
138
|
}), [props]);
|
|
138
139
|
const classes = useUtilityClasses(ownerState);
|
|
139
140
|
const ClockItem = (_ref = (_slots$digitalClockIt = slots == null ? void 0 : slots.digitalClockItem) != null ? _slots$digitalClockIt : components == null ? void 0 : components.DigitalClockItem) != null ? _ref : DigitalClockItem;
|
|
140
|
-
const clockItemProps = (
|
|
141
|
+
const clockItemProps = useSlotProps({
|
|
142
|
+
elementType: ClockItem,
|
|
143
|
+
externalSlotProps: (_slotProps$digitalClo = slotProps == null ? void 0 : slotProps.digitalClockItem) != null ? _slotProps$digitalClo : componentsProps == null ? void 0 : componentsProps.digitalClockItem,
|
|
144
|
+
ownerState: {},
|
|
145
|
+
className: classes.item
|
|
146
|
+
});
|
|
141
147
|
const valueOrReferenceDate = useClockReferenceDate({
|
|
142
148
|
value,
|
|
143
149
|
referenceDate: referenceDateProp,
|
|
@@ -219,6 +225,7 @@ export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(
|
|
|
219
225
|
autoFocusItem: autoFocus || !!focusedView,
|
|
220
226
|
role: "listbox",
|
|
221
227
|
"aria-label": localeText.timePickerToolbarTitle,
|
|
228
|
+
className: classes.list,
|
|
222
229
|
children: timeOptions.map(option => {
|
|
223
230
|
if (skipDisabled && isTimeDisabled(option)) {
|
|
224
231
|
return null;
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ It's part of MUI X, an open-core extension of MUI, with advanced components.
|
|
|
7
7
|
|
|
8
8
|
Install the package in your project directory with:
|
|
9
9
|
|
|
10
|
-
```
|
|
10
|
+
```bash
|
|
11
11
|
npm install @mui/x-date-pickers
|
|
12
12
|
```
|
|
13
13
|
|
|
@@ -19,7 +19,7 @@ We currently support 4 different date libraries:
|
|
|
19
19
|
- [Luxon](https://moment.github.io/luxon/#/)
|
|
20
20
|
- [Moment.js](https://momentjs.com/)
|
|
21
21
|
|
|
22
|
-
```
|
|
22
|
+
```bash
|
|
23
23
|
// date-fns
|
|
24
24
|
npm install date-fns
|
|
25
25
|
// or dayjs
|
package/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var _excluded = ["ampm", "timeStep", "autoFocus", "components", "componentsProps
|
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
+
import { useSlotProps } from '@mui/base/utils';
|
|
8
9
|
import { alpha, styled, useThemeProps } from '@mui/material/styles';
|
|
9
10
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
10
11
|
import composeClasses from '@mui/utils/composeClasses';
|
|
@@ -149,7 +150,12 @@ export var DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(in
|
|
|
149
150
|
}, [props]);
|
|
150
151
|
var classes = useUtilityClasses(ownerState);
|
|
151
152
|
var ClockItem = (_ref3 = (_slots$digitalClockIt = slots == null ? void 0 : slots.digitalClockItem) != null ? _slots$digitalClockIt : components == null ? void 0 : components.DigitalClockItem) != null ? _ref3 : DigitalClockItem;
|
|
152
|
-
var clockItemProps = (
|
|
153
|
+
var clockItemProps = useSlotProps({
|
|
154
|
+
elementType: ClockItem,
|
|
155
|
+
externalSlotProps: (_slotProps$digitalClo = slotProps == null ? void 0 : slotProps.digitalClockItem) != null ? _slotProps$digitalClo : componentsProps == null ? void 0 : componentsProps.digitalClockItem,
|
|
156
|
+
ownerState: {},
|
|
157
|
+
className: classes.item
|
|
158
|
+
});
|
|
153
159
|
var valueOrReferenceDate = useClockReferenceDate({
|
|
154
160
|
value: value,
|
|
155
161
|
referenceDate: referenceDateProp,
|
|
@@ -234,6 +240,7 @@ export var DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(in
|
|
|
234
240
|
autoFocusItem: autoFocus || !!focusedView,
|
|
235
241
|
role: "listbox",
|
|
236
242
|
"aria-label": localeText.timePickerToolbarTitle,
|
|
243
|
+
className: classes.list,
|
|
237
244
|
children: timeOptions.map(function (option) {
|
|
238
245
|
if (skipDisabled && isTimeDisabled(option)) {
|
|
239
246
|
return null;
|
package/legacy/index.js
CHANGED
|
@@ -4,6 +4,7 @@ const _excluded = ["ampm", "timeStep", "autoFocus", "components", "componentsPro
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
|
+
import { useSlotProps } from '@mui/base/utils';
|
|
7
8
|
import { alpha, styled, useThemeProps } from '@mui/material/styles';
|
|
8
9
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
9
10
|
import composeClasses from '@mui/utils/composeClasses';
|
|
@@ -136,7 +137,12 @@ export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(
|
|
|
136
137
|
}), [props]);
|
|
137
138
|
const classes = useUtilityClasses(ownerState);
|
|
138
139
|
const ClockItem = slots?.digitalClockItem ?? components?.DigitalClockItem ?? DigitalClockItem;
|
|
139
|
-
const clockItemProps =
|
|
140
|
+
const clockItemProps = useSlotProps({
|
|
141
|
+
elementType: ClockItem,
|
|
142
|
+
externalSlotProps: slotProps?.digitalClockItem ?? componentsProps?.digitalClockItem,
|
|
143
|
+
ownerState: {},
|
|
144
|
+
className: classes.item
|
|
145
|
+
});
|
|
140
146
|
const valueOrReferenceDate = useClockReferenceDate({
|
|
141
147
|
value,
|
|
142
148
|
referenceDate: referenceDateProp,
|
|
@@ -218,6 +224,7 @@ export const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(
|
|
|
218
224
|
autoFocusItem: autoFocus || !!focusedView,
|
|
219
225
|
role: "listbox",
|
|
220
226
|
"aria-label": localeText.timePickerToolbarTitle,
|
|
227
|
+
className: classes.list,
|
|
221
228
|
children: timeOptions.map(option => {
|
|
222
229
|
if (skipDisabled && isTimeDisabled(option)) {
|
|
223
230
|
return null;
|
package/modern/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runt
|
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _utils = require("@mui/base/utils");
|
|
13
14
|
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
15
16
|
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
@@ -145,7 +146,12 @@ const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(inProps
|
|
|
145
146
|
}), [props]);
|
|
146
147
|
const classes = useUtilityClasses(ownerState);
|
|
147
148
|
const ClockItem = slots?.digitalClockItem ?? components?.DigitalClockItem ?? DigitalClockItem;
|
|
148
|
-
const clockItemProps =
|
|
149
|
+
const clockItemProps = (0, _utils.useSlotProps)({
|
|
150
|
+
elementType: ClockItem,
|
|
151
|
+
externalSlotProps: slotProps?.digitalClockItem ?? componentsProps?.digitalClockItem,
|
|
152
|
+
ownerState: {},
|
|
153
|
+
className: classes.item
|
|
154
|
+
});
|
|
149
155
|
const valueOrReferenceDate = (0, _useClockReferenceDate.useClockReferenceDate)({
|
|
150
156
|
value,
|
|
151
157
|
referenceDate: referenceDateProp,
|
|
@@ -227,6 +233,7 @@ const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(inProps
|
|
|
227
233
|
autoFocusItem: autoFocus || !!focusedView,
|
|
228
234
|
role: "listbox",
|
|
229
235
|
"aria-label": localeText.timePickerToolbarTitle,
|
|
236
|
+
className: classes.list,
|
|
230
237
|
children: timeOptions.map(option => {
|
|
231
238
|
if (skipDisabled && isTimeDisabled(option)) {
|
|
232
239
|
return null;
|
package/node/index.js
CHANGED