@mui/x-date-pickers-pro 6.3.1 → 6.4.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 CHANGED
@@ -3,6 +3,63 @@
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
+ ## v6.4.0
7
+
8
+ _May 12, 2023_
9
+
10
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Introduce clipboard paste support for `DataGridPremium`:
13
+
14
+ https://github.com/mui/mui-x/assets/13808724/abfcb5c6-9db6-4677-9ba7-ae97de441080
15
+
16
+ See [the documentation](https://mui.com/x/react-data-grid/clipboard/#clipboard-paste) for more information
17
+
18
+ - 🌍 Improve French (fr-FR), German (de-DE), Portuguese (pt-BR) and Ukrainian (uk-UA) locales on the data grid
19
+ - 🌍 Add Slovak (sk-SK) locale on the pickers
20
+ - 🐞 Bugfixes
21
+ - 📚 Documentation improvements
22
+
23
+ ### `@mui/x-data-grid@v6.4.0` / `@mui/x-data-grid-pro@v6.4.0` / `@mui/x-data-grid-premium@v6.4.0`
24
+
25
+ #### Changes
26
+
27
+ - [DataGrid] Fix DataGrid rendering in JSDOM (#8968) @cherniavskii
28
+ - [DataGrid] Fix layout when rendered inside a parent with `display: grid` (#8577) @cherniavskii
29
+ - [DataGrid] Add Joy UI icon slots (#8940) @siriwatknp
30
+ - [DataGrid] Add Joy UI pagination slot (#8871) @cherniavskii
31
+ - [DataGrid] Extract `baseChip` slot (#8748) @cherniavskii
32
+ - [DataGridPremium] Implement Clipboard import (#7389) @cherniavskii
33
+ - [l10n] Improve French (fr-FR) locale (#8825) @vallereaugabriel
34
+ - [l10n] Improve German (de-DE) locale (#8898) @marcauberer
35
+ - [l10n] Improve Portuguese (pt-BR) locale (#8960) @Sorriso337
36
+ - [l10n] Improve Ukrainian (uk-UA) locale (#8863) @Neonin
37
+
38
+ ### `@mui/x-date-pickers@v6.4.0` / `@mui/x-date-pickers-pro@v6.4.0`
39
+
40
+ #### Changes
41
+
42
+ - [pickers] Fix trailing zeros inconsistency in `LuxonAdapter` (#8955) @alexfauquette
43
+ - [pickers] Stop using deprecated adapter methods (#8735) @flaviendelangle
44
+ - [pickers] Strictly type the `adapterLocale` prop of `LocalizationProvider` (#8780) @flaviendelangle
45
+ - [l10n] Add Slovak (sk-SK) locale (#8875) @MatejFacko
46
+
47
+ ### Docs
48
+
49
+ - [docs] Fix date pickers typo in the docs (#8939) @richbustos
50
+ - [docs] Fix master detail demo (#8894) @m4theushw
51
+ - [docs] Fix typo in clipboard docs (#8971) @MBilalShafi
52
+ - [docs] Reduce list of dependencies in Codesandbox/Stackblitz demos (#8535) @cherniavskii
53
+
54
+ ### Core
55
+
56
+ - [core] Improve testing of the adapters (#8789) @flaviendelangle
57
+ - [core] Update license key for tests (#8917) @LukasTy
58
+ - [charts] Make introduction docs pages for each chart (#8869) @alexfauquette
59
+ - [charts] Document Tooltip and Highlighs (#8867) @alexfauquette
60
+ - [test] Cover row grouping regression with a unit test (#8870) @cherniavskii
61
+ - [test] Fix flaky regression tests (#8954) @cherniavskii
62
+
6
63
  ## 6.3.1
7
64
 
8
65
  _May 5, 2023_
@@ -276,10 +276,10 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
276
276
  }, [rangePosition, value]); // eslint-disable-line
277
277
 
278
278
  const selectNextMonth = React.useCallback(() => {
279
- changeMonth(utils.getNextMonth(calendarState.currentMonth));
279
+ changeMonth(utils.addMonths(calendarState.currentMonth, 1));
280
280
  }, [changeMonth, calendarState.currentMonth, utils]);
281
281
  const selectPreviousMonth = React.useCallback(() => {
282
- changeMonth(utils.getPreviousMonth(calendarState.currentMonth));
282
+ changeMonth(utils.addMonths(calendarState.currentMonth, -1));
283
283
  }, [changeMonth, calendarState.currentMonth, utils]);
284
284
  const isNextMonthDisabled = useNextMonthDisabled(calendarState.currentMonth, {
285
285
  disableFuture,
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.3.1
2
+ * @mui/x-date-pickers-pro v6.4.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { MuiPickersAdapter } from '@mui/x-date-pickers/models';
2
2
  import { DateRange, NonEmptyDateRange } from '../models/range';
3
- export declare const isRangeValid: <TDate>(utils: MuiPickersAdapter<TDate>, range: DateRange<TDate> | null) => range is NonEmptyDateRange<TDate>;
4
- export declare const isWithinRange: <TDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
5
- export declare const isStartOfRange: <TDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
6
- export declare const isEndOfRange: <TDate>(utils: MuiPickersAdapter<TDate>, day: TDate, range: DateRange<TDate> | null) => boolean;
3
+ export declare const isRangeValid: <TDate>(utils: MuiPickersAdapter<TDate, any>, range: DateRange<TDate> | null) => range is NonEmptyDateRange<TDate>;
4
+ export declare const isWithinRange: <TDate>(utils: MuiPickersAdapter<TDate, any>, day: TDate, range: DateRange<TDate> | null) => boolean;
5
+ export declare const isStartOfRange: <TDate>(utils: MuiPickersAdapter<TDate, any>, day: TDate, range: DateRange<TDate> | null) => boolean;
6
+ export declare const isEndOfRange: <TDate>(utils: MuiPickersAdapter<TDate, any>, day: TDate, range: DateRange<TDate> | null) => boolean;
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY4MzIzNzYwMDAwMA==";
3
+ const releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
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
@@ -281,10 +281,10 @@ var DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar
281
281
  }, [rangePosition, value]); // eslint-disable-line
282
282
 
283
283
  var selectNextMonth = React.useCallback(function () {
284
- changeMonth(utils.getNextMonth(calendarState.currentMonth));
284
+ changeMonth(utils.addMonths(calendarState.currentMonth, 1));
285
285
  }, [changeMonth, calendarState.currentMonth, utils]);
286
286
  var selectPreviousMonth = React.useCallback(function () {
287
- changeMonth(utils.getPreviousMonth(calendarState.currentMonth));
287
+ changeMonth(utils.addMonths(calendarState.currentMonth, -1));
288
288
  }, [changeMonth, calendarState.currentMonth, utils]);
289
289
  var isNextMonthDisabled = useNextMonthDisabled(calendarState.currentMonth, {
290
290
  disableFuture: disableFuture,
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.3.1
2
+ * @mui/x-date-pickers-pro v6.4.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY4MzIzNzYwMDAwMA==";
3
+ var releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
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
@@ -274,10 +274,10 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
274
274
  }, [rangePosition, value]); // eslint-disable-line
275
275
 
276
276
  const selectNextMonth = React.useCallback(() => {
277
- changeMonth(utils.getNextMonth(calendarState.currentMonth));
277
+ changeMonth(utils.addMonths(calendarState.currentMonth, 1));
278
278
  }, [changeMonth, calendarState.currentMonth, utils]);
279
279
  const selectPreviousMonth = React.useCallback(() => {
280
- changeMonth(utils.getPreviousMonth(calendarState.currentMonth));
280
+ changeMonth(utils.addMonths(calendarState.currentMonth, -1));
281
281
  }, [changeMonth, calendarState.currentMonth, utils]);
282
282
  const isNextMonthDisabled = useNextMonthDisabled(calendarState.currentMonth, {
283
283
  disableFuture,
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.3.1
2
+ * @mui/x-date-pickers-pro v6.4.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY4MzIzNzYwMDAwMA==";
3
+ const releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
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
@@ -282,10 +282,10 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
282
282
  }, [rangePosition, value]); // eslint-disable-line
283
283
 
284
284
  const selectNextMonth = React.useCallback(() => {
285
- changeMonth(utils.getNextMonth(calendarState.currentMonth));
285
+ changeMonth(utils.addMonths(calendarState.currentMonth, 1));
286
286
  }, [changeMonth, calendarState.currentMonth, utils]);
287
287
  const selectPreviousMonth = React.useCallback(() => {
288
- changeMonth(utils.getPreviousMonth(calendarState.currentMonth));
288
+ changeMonth(utils.addMonths(calendarState.currentMonth, -1));
289
289
  }, [changeMonth, calendarState.currentMonth, utils]);
290
290
  const isNextMonthDisabled = (0, _internals.useNextMonthDisabled)(calendarState.currentMonth, {
291
291
  disableFuture,
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers-pro v6.3.1
2
+ * @mui/x-date-pickers-pro v6.4.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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 = "MTY4MzIzNzYwMDAwMA==";
9
+ const releaseInfo = "MTY4Mzg0MjQwMDAwMA==";
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.3.1",
3
+ "version": "6.4.0",
4
4
  "description": "The commercial edition of the date picker components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,7 +32,7 @@
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.21.0",
34
34
  "@mui/utils": "^5.12.3",
35
- "@mui/x-date-pickers": "6.3.1",
35
+ "@mui/x-date-pickers": "6.4.0",
36
36
  "@mui/x-license-pro": "6.0.4",
37
37
  "clsx": "^1.2.1",
38
38
  "prop-types": "^15.8.1",