@mui/x-date-pickers-pro 5.0.0-alpha.7 → 5.0.0-beta.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,59 @@
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
+ ## 5.13.0
7
+
8
+ _Jul 7, 2022_
9
+
10
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` are now in beta!
13
+
14
+ - ✨ Allow detail panel's height to match its content (#5163) @m4theushw
15
+
16
+ ```tsx
17
+ <DataGridPro getDetailPanelHeight={() => 'auto'} />
18
+ ```
19
+
20
+ - 🌍 Add Romanian (ro-RO) locale on the data grid (#5345) @rolule
21
+ - 📚 Documentation improvements
22
+ - 🐞 Bugfixes
23
+
24
+ ### `@mui/x-data-grid@v5.13.0` / `@mui/x-data-grid-pro@v5.13.0` / `@mui/x-data-grid-premium@v5.13.0`
25
+
26
+ #### Changes
27
+
28
+ - [DataGrid] Allows to customize variant of value input in filter panel (#4826) @alexfauquette
29
+ - [DataGrid] Add Romanian (ro-RO) locale (#5345) @rolule
30
+ - [DataGrid] Export Norwegian (nb-NO) locale (#5407) @cherniavskii
31
+ - [DataGrid] Fix broken "start editing" integration with Japanese (#5414) @mnajdova
32
+ - [DataGrid] Fix "stop editing" integration with IME e.g. Japanese (#5257) @Gumichocopengin8
33
+ - [DataGrid] Fix dimensions computation with `autoHeight` and scroll x (#5401) @flaviendelangle
34
+ - [DataGrid] Improve Slovak (sk-SK) locale (#5332) @msidlo
35
+ - [DataGrid] Mention Premium plan in error messages and docs warnings (#5328) @cherniavskii
36
+ - [DataGrid] Remove trailing spaces in filter input (#5279) @alexfauquette
37
+ - [DataGridPro] Allow to infer detail panel height from content (#5163) @m4theushw
38
+ - [DataGridPro] Fix the depth of nodes when switching from a non-flat tree to a flat tree (#5362) @flaviendelangle
39
+
40
+ ### `@mui/x-date-pickers@v5.0.0-beta.0` / `@mui/x-date-picker-pro@5.0.0-beta.0`
41
+
42
+ #### Changes
43
+
44
+ - [DateRangePicker] Fix keyboard selection (#5265) @alexfauquette
45
+ - [DayPicker] Remove empty space at the bottom of the day view (#5073) @flaviendelangle
46
+ - [pickers] Add missing type dependencies (#5331) @Methuselah96
47
+ - [pickers] Pass the generics to the components in the theme augmentation (#5199) @toruticas
48
+
49
+ ### Docs
50
+
51
+ - [docs] Explain how to use hooks inside a cell renderer (#5158) @flaviendelangle
52
+ - [docs] Fix server-side pagination demo (#5361) @cherniavskii
53
+ - [docs] Fix typo in the quick filter docs (#5313) @alexfauquette
54
+ - [docs] Improve the "Getting started" page (#5293) @alexfauquette
55
+ - [docs] New page for the pickers action bar customization (#5267) @flaviendelangle
56
+ - [docs] Revise and split up "Overview" page into "Introduction" (#4692) @samuelsycamore
57
+ - [docs] Use `useKeepGroupedColumnsHiddren` from the grid package on remaining demo (#5382) @flaviendelangle
58
+
6
59
  ## v5.12.3
7
60
 
8
61
  _Jun 23, 2022_
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["calendars", "changeMonth", "components", "componentsProps", "currentlySelectingRangeEnd", "currentMonth", "parsedValue", "disableFuture", "disablePast", "leftArrowButtonText", "maxDate", "minDate", "onSelectedDaysChange", "renderDay", "rightArrowButtonText"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
- import { useDefaultDates, useUtils, useLocaleText, PickersArrowSwitcher, usePreviousMonthDisabled, useNextMonthDisabled, DayPicker, buildDeprecatedPropsWarning } from '@mui/x-date-pickers/internals';
6
+ import { useDefaultDates, useUtils, useLocaleText, PickersArrowSwitcher, usePreviousMonthDisabled, useNextMonthDisabled, DayPicker, buildDeprecatedPropsWarning, DAY_MARGIN } from '@mui/x-date-pickers/internals';
7
7
  import { calculateRangePreview } from './date-range-manager';
8
8
  import { DateRangePickerDay } from '../DateRangePickerDay';
9
9
  import { isWithinRange, isStartOfRange, isEndOfRange } from '../internal/utils/date-utils';
@@ -22,9 +22,11 @@ const DateRangePickerViewDesktopContainer = styled('div')(({
22
22
  borderRight: `2px solid ${theme.palette.divider}`
23
23
  }
24
24
  }));
25
+ const DAY_RANGE_SIZE = 40;
26
+ const weeksContainerHeight = (DAY_RANGE_SIZE + DAY_MARGIN * 2) * 6;
25
27
  const DateRangePickerViewDesktopCalendar = styled(DayPicker)({
26
28
  minWidth: 312,
27
- minHeight: 288
29
+ minHeight: weeksContainerHeight
28
30
  });
29
31
  const DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher)({
30
32
  padding: '16px 16px 8px 16px',
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.7
1
+ /** @license MUI v5.0.0-beta.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY1NjAyMTYwMDAwMA==";
3
+ const releaseInfo = "MTY1NzE0NDgwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -4,7 +4,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
4
4
  var _excluded = ["calendars", "changeMonth", "components", "componentsProps", "currentlySelectingRangeEnd", "currentMonth", "parsedValue", "disableFuture", "disablePast", "leftArrowButtonText", "maxDate", "minDate", "onSelectedDaysChange", "renderDay", "rightArrowButtonText"];
5
5
  import * as React from 'react';
6
6
  import { styled } from '@mui/material/styles';
7
- import { useDefaultDates, useUtils, useLocaleText, PickersArrowSwitcher, usePreviousMonthDisabled, useNextMonthDisabled, DayPicker, buildDeprecatedPropsWarning } from '@mui/x-date-pickers/internals';
7
+ import { useDefaultDates, useUtils, useLocaleText, PickersArrowSwitcher, usePreviousMonthDisabled, useNextMonthDisabled, DayPicker, buildDeprecatedPropsWarning, DAY_MARGIN } from '@mui/x-date-pickers/internals';
8
8
  import { calculateRangePreview } from './date-range-manager';
9
9
  import { DateRangePickerDay } from '../DateRangePickerDay';
10
10
  import { isWithinRange, isStartOfRange, isEndOfRange } from '../internal/utils/date-utils';
@@ -24,9 +24,11 @@ var DateRangePickerViewDesktopContainer = styled('div')(function (_ref) {
24
24
  }
25
25
  };
26
26
  });
27
+ var DAY_RANGE_SIZE = 40;
28
+ var weeksContainerHeight = (DAY_RANGE_SIZE + DAY_MARGIN * 2) * 6;
27
29
  var DateRangePickerViewDesktopCalendar = styled(DayPicker)({
28
30
  minWidth: 312,
29
- minHeight: 288
31
+ minHeight: weeksContainerHeight
30
32
  });
31
33
  var DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher)({
32
34
  padding: '16px 16px 8px 16px',
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.7
1
+ /** @license MUI v5.0.0-beta.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY1NjAyMTYwMDAwMA==";
3
+ var releaseInfo = "MTY1NzE0NDgwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -3,7 +3,7 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
3
3
  const _excluded = ["calendars", "changeMonth", "components", "componentsProps", "currentlySelectingRangeEnd", "currentMonth", "parsedValue", "disableFuture", "disablePast", "leftArrowButtonText", "maxDate", "minDate", "onSelectedDaysChange", "renderDay", "rightArrowButtonText"];
4
4
  import * as React from 'react';
5
5
  import { styled } from '@mui/material/styles';
6
- import { useDefaultDates, useUtils, useLocaleText, PickersArrowSwitcher, usePreviousMonthDisabled, useNextMonthDisabled, DayPicker, buildDeprecatedPropsWarning } from '@mui/x-date-pickers/internals';
6
+ import { useDefaultDates, useUtils, useLocaleText, PickersArrowSwitcher, usePreviousMonthDisabled, useNextMonthDisabled, DayPicker, buildDeprecatedPropsWarning, DAY_MARGIN } from '@mui/x-date-pickers/internals';
7
7
  import { calculateRangePreview } from './date-range-manager';
8
8
  import { DateRangePickerDay } from '../DateRangePickerDay';
9
9
  import { isWithinRange, isStartOfRange, isEndOfRange } from '../internal/utils/date-utils';
@@ -22,9 +22,11 @@ const DateRangePickerViewDesktopContainer = styled('div')(({
22
22
  borderRight: `2px solid ${theme.palette.divider}`
23
23
  }
24
24
  }));
25
+ const DAY_RANGE_SIZE = 40;
26
+ const weeksContainerHeight = (DAY_RANGE_SIZE + DAY_MARGIN * 2) * 6;
25
27
  const DateRangePickerViewDesktopCalendar = styled(DayPicker)({
26
28
  minWidth: 312,
27
- minHeight: 288
29
+ minHeight: weeksContainerHeight
28
30
  });
29
31
  const DateRangePickerViewDesktopArrowSwitcher = styled(PickersArrowSwitcher)({
30
32
  padding: '16px 16px 8px 16px',
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.7
1
+ /** @license MUI v5.0.0-beta.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY1NjAyMTYwMDAwMA==";
3
+ const releaseInfo = "MTY1NzE0NDgwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -44,9 +44,11 @@ const DateRangePickerViewDesktopContainer = (0, _styles.styled)('div')(({
44
44
  borderRight: `2px solid ${theme.palette.divider}`
45
45
  }
46
46
  }));
47
+ const DAY_RANGE_SIZE = 40;
48
+ const weeksContainerHeight = (DAY_RANGE_SIZE + _internals.DAY_MARGIN * 2) * 6;
47
49
  const DateRangePickerViewDesktopCalendar = (0, _styles.styled)(_internals.DayPicker)({
48
50
  minWidth: 312,
49
- minHeight: 288
51
+ minHeight: weeksContainerHeight
50
52
  });
51
53
  const DateRangePickerViewDesktopArrowSwitcher = (0, _styles.styled)(_internals.PickersArrowSwitcher)({
52
54
  padding: '16px 16px 8px 16px',
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.0.0-alpha.7
1
+ /** @license MUI v5.0.0-beta.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
8
8
  var _utils = require("@mui/utils");
9
9
 
10
10
  const getReleaseInfo = () => {
11
- const releaseInfo = "MTY1NjAyMTYwMDAwMA==";
11
+ const releaseInfo = "MTY1NzE0NDgwMDAwMA==";
12
12
 
13
13
  if (process.env.NODE_ENV !== 'production') {
14
14
  // A simple hack to set the value in the test environment (has no build step).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers-pro",
3
- "version": "5.0.0-alpha.7",
3
+ "version": "5.0.0-beta.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",
@@ -36,9 +36,9 @@
36
36
  "@date-io/luxon": "^2.14.0",
37
37
  "@date-io/moment": "^2.14.0",
38
38
  "@mui/utils": "^5.4.1",
39
- "@mui/x-date-pickers": "5.0.0-alpha.7",
39
+ "@mui/x-date-pickers": "5.0.0-beta.0",
40
40
  "@mui/x-license-pro": "5.12.1",
41
- "clsx": "^1.1.1",
41
+ "clsx": "^1.2.1",
42
42
  "prop-types": "^15.7.2",
43
43
  "react-transition-group": "^4.4.2",
44
44
  "rifm": "^0.12.1"