@mui/x-data-grid-pro 6.13.0 → 6.14.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,83 @@
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.14.0
7
+
8
+ _Sep 14, 2023_
9
+
10
+ We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Fix `YearCalendar` and `MonthCalendar` accessibility (#10312) @LukasTy
13
+
14
+ The `YearCalendar` and `MonthCalendar` items role has been changed from `button` to `radio` in order to improve the component's a11y support.
15
+ If you were relying on the mentioned components having a `button` role for items, you will need to update your usage to expect a `radio` role instead.
16
+
17
+ - 🌍 Improve Japanese (ja-JP), Persian (fa-IR), and Vietnamese (vi-VN) locales on the data grid
18
+ - 🐞 Bugfixes
19
+ - 📚 Documentation improvements
20
+
21
+ ### Data Grid
22
+
23
+ #### `@mui/x-data-grid@6.14.0`
24
+
25
+ - [l10n] Improve Japanese (ja-JP) locale (#10299) @makoto14
26
+ - [l10n] Improve Persian (fa-IR) locale (#10277) @aminsaedi
27
+ - [l10n] Improve Vietnamese (vi-VN) locale (#10280) @khangnguyen2100
28
+
29
+ #### `@mui/x-data-grid-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
30
+
31
+ Same changes as in `@mui/x-data-grid@6.14.0`.
32
+
33
+ #### `@mui/x-data-grid-premium@6.14.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
34
+
35
+ Same changes as in `@mui/x-data-grid-pro@6.14.0`, plus:
36
+
37
+ - [DataGridPremium] Fix clipboard import cutting off at 100 rows (#9930) @gitstart
38
+
39
+ ### Date Pickers
40
+
41
+ #### `@mui/x-date-pickers@6.14.0`
42
+
43
+ - [pickers] Fix `YearCalendar` and `MonthCalendar` a11y (#10312) @LukasTy
44
+ - [pickers] Localize `TimeClock` meridiem text (#10324) @LukasTy
45
+
46
+ #### `@mui/x-date-pickers-pro@6.14.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
+
48
+ Same changes as in `@mui/x-date-pickers@6.14.0`.
49
+
50
+ ### Charts / `@mui/x-charts@6.0.0-alpha.11`
51
+
52
+ - [charts] Add default `barGapRatio` and increase `categoryGapRatio` (#10317) @LukasTy
53
+ - [charts] Enable `eslint` on the package (#10330) @LukasTy
54
+
55
+ ### Tree View / `@mui/x-tree-view@6.0.0-alpha.3`
56
+
57
+ - [TreeView] Fix box-sizing dependency (#10255) @oliviertassinari
58
+
59
+ ### Docs
60
+
61
+ - [docs] Add conditional range picker props example (#10227) @LukasTy
62
+ - [docs] Add toolbar to the multi-filters demo (#10223) @MBilalShafi
63
+ - [docs] Avoid the use of "We" @oliviertassinari
64
+ - [docs] Clarify MUI vs. MUI Core difference @oliviertassinari
65
+ - [docs] Enable `ariaV7` flag for demos using `useDemoData` hook (#10204) @cherniavskii
66
+ - [docs] Fix Tree View link to API references (#10282) @oliviertassinari
67
+ - [docs] Fix image layout shift (#10313) @oliviertassinari
68
+ - [docs] Fix link to MUI X from readme logo @oliviertassinari
69
+ - [docs] Fix redirection to Base UI URLs @oliviertassinari
70
+ - [docs] Improve Tree View demos (#10268) @oliviertassinari
71
+ - [docs] Improve docs for ref type props (#10273) @michelengelen
72
+ - [docs] Improve npm package README (#10269) @oliviertassinari
73
+ - [docs] Improve the clarity of the npm links @oliviertassinari
74
+ - [docs] Keep installation readme simple @oliviertassinari
75
+ - [docs] Make each component feel more standalone @oliviertassinari
76
+
77
+ ### Core
78
+
79
+ - [core] Add types extension for clarity @oliviertassinari
80
+ - [core] Set logo height to fix layout shift in GitHub @oliviertassinari
81
+ - [core] TrapFocus was renamed to FocusTrap @oliviertassinari
82
+
6
83
  ## 6.13.0
7
84
 
8
85
  _Sep 8, 2023_
@@ -12,6 +89,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
12
89
  - 🎁 Fix `anchorRef` behavior on range pickers (#10077) @LukasTy
13
90
 
14
91
  The range picker popup will now be anchored to the first input element and left aligned like other pickers.
92
+
15
93
  - 🌍 Improve Slovak (sk-SK) locale on the data grid
16
94
  - 🐞 Bugfixes
17
95
  - 📚 Documentation improvements
@@ -1838,7 +1916,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
1838
1916
  #### Changes
1839
1917
 
1840
1918
  - [DataGrid] Add interface for `singleSelect` column (#7685) @m4theushw
1841
- - [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7733) @ivek-Prajapatii
1919
+ - [DataGrid] Allow to pass props to the `FocusTrap` inside the panel wrapper (#7733) @ivek-Prajapatii
1842
1920
  - [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7857) @cherniavskii
1843
1921
  - [DataGridPro] Change cursor when dragging a column (#7725) @sai6855
1844
1922
  - [DataGridPremium] Fix `leafField` to have correct focus value (#7950) @MBilalShafi
package/README.md CHANGED
@@ -1,18 +1,14 @@
1
- # @mui/x-data-grid-pro
1
+ # MUI X Data Grid Pro
2
2
 
3
3
  This package is the Pro plan edition of the data grid component.
4
- It's part of MUI X, an open core extension of MUI, with advanced components.
4
+ It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
5
5
 
6
6
  ## Installation
7
7
 
8
8
  Install the package in your project directory with:
9
9
 
10
10
  ```bash
11
- // with npm
12
11
  npm install @mui/x-data-grid-pro
13
-
14
- // with yarn
15
- yarn add @mui/x-data-grid-pro
16
12
  ```
17
13
 
18
14
  This component has the following peer dependencies that you will need to install as well.
@@ -28,4 +24,4 @@ This component has the following peer dependencies that you will need to install
28
24
 
29
25
  ## Documentation
30
26
 
31
- [The documentation](https://mui.com/x/react-data-grid/)
27
+ Visit [https://mui.com/x/react-data-grid/](https://mui.com/x/react-data-grid/) to view the full documentation.
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["style", "className", "innerRef", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence", "pinnedColumns"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
6
+ import { refType, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
7
7
  import { styled, alpha, useTheme } from '@mui/material/styles';
8
8
  import { getDataGridUtilityClass, gridClasses, useGridApiEventHandler, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
9
9
  import { GridBaseColumnHeaders, GridColumnHeadersInner } from '@mui/x-data-grid/internals';
@@ -271,9 +271,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
271
271
  filterColumnLookup: PropTypes.object.isRequired,
272
272
  hasOtherElementInTabSequence: PropTypes.bool.isRequired,
273
273
  headerGroupingMaxDepth: PropTypes.number.isRequired,
274
- innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
275
- current: PropTypes.object
276
- })]),
274
+ innerRef: refType,
277
275
  minColumnIndex: PropTypes.number,
278
276
  pinnedColumns: PropTypes.shape({
279
277
  left: PropTypes.arrayOf(PropTypes.string),
@@ -4,7 +4,7 @@ const _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuR
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useGridApiContext } from '@mui/x-data-grid';
7
- import { unstable_useId as useId } from '@mui/utils';
7
+ import { refType, unstable_useId as useId } from '@mui/utils';
8
8
  import { unstable_gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
9
9
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -70,9 +70,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
70
70
  // | To update them edit the TypeScript types and run "yarn proptypes" |
71
71
  // ----------------------------------------------------------------------
72
72
  applyFilterChanges: PropTypes.func.isRequired,
73
- buttonRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
74
- current: PropTypes.object
75
- })]),
73
+ buttonRef: refType,
76
74
  field: PropTypes.string.isRequired,
77
75
  headerFilterMenuRef: PropTypes.shape({
78
76
  current: PropTypes.object
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.13.0
2
+ * @mui/x-data-grid-pro v6.14.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
5
  var _excluded = ["style", "className", "innerRef", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence", "pinnedColumns"];
6
6
  import * as React from 'react';
7
7
  import PropTypes from 'prop-types';
8
- import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
8
+ import { refType, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
9
9
  import { styled, alpha, useTheme } from '@mui/material/styles';
10
10
  import { getDataGridUtilityClass, gridClasses, useGridApiEventHandler, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
11
11
  import { GridBaseColumnHeaders, GridColumnHeadersInner } from '@mui/x-data-grid/internals';
@@ -275,9 +275,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
275
275
  filterColumnLookup: PropTypes.object.isRequired,
276
276
  hasOtherElementInTabSequence: PropTypes.bool.isRequired,
277
277
  headerGroupingMaxDepth: PropTypes.number.isRequired,
278
- innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
279
- current: PropTypes.object
280
- })]),
278
+ innerRef: refType,
281
279
  minColumnIndex: PropTypes.number,
282
280
  pinnedColumns: PropTypes.shape({
283
281
  left: PropTypes.arrayOf(PropTypes.string),
@@ -4,7 +4,7 @@ var _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuRef
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useGridApiContext } from '@mui/x-data-grid';
7
- import { unstable_useId as useId } from '@mui/utils';
7
+ import { refType, unstable_useId as useId } from '@mui/utils';
8
8
  import { unstable_gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
9
9
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -68,9 +68,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
68
68
  // | To update them edit the TypeScript types and run "yarn proptypes" |
69
69
  // ----------------------------------------------------------------------
70
70
  applyFilterChanges: PropTypes.func.isRequired,
71
- buttonRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
72
- current: PropTypes.object
73
- })]),
71
+ buttonRef: refType,
74
72
  field: PropTypes.string.isRequired,
75
73
  headerFilterMenuRef: PropTypes.shape({
76
74
  current: PropTypes.object
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.13.0
2
+ * @mui/x-data-grid-pro v6.14.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 = "MTY5NDEyMDQwMDAwMA==";
3
+ var releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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
@@ -3,7 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["style", "className", "innerRef", "visibleColumns", "sortColumnLookup", "filterColumnLookup", "columnPositions", "columnHeaderTabIndexState", "columnGroupHeaderTabIndexState", "columnHeaderFocus", "columnGroupHeaderFocus", "densityFactor", "headerGroupingMaxDepth", "columnMenuState", "columnVisibility", "columnGroupsHeaderStructure", "hasOtherElementInTabSequence", "pinnedColumns"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
- import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
6
+ import { refType, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
7
7
  import { styled, alpha, useTheme } from '@mui/material/styles';
8
8
  import { getDataGridUtilityClass, gridClasses, useGridApiEventHandler, GridColumnHeaderSeparatorSides } from '@mui/x-data-grid';
9
9
  import { GridBaseColumnHeaders, GridColumnHeadersInner } from '@mui/x-data-grid/internals';
@@ -268,9 +268,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
268
268
  filterColumnLookup: PropTypes.object.isRequired,
269
269
  hasOtherElementInTabSequence: PropTypes.bool.isRequired,
270
270
  headerGroupingMaxDepth: PropTypes.number.isRequired,
271
- innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
272
- current: PropTypes.object
273
- })]),
271
+ innerRef: refType,
274
272
  minColumnIndex: PropTypes.number,
275
273
  pinnedColumns: PropTypes.shape({
276
274
  left: PropTypes.arrayOf(PropTypes.string),
@@ -4,7 +4,7 @@ const _excluded = ["operators", "item", "field", "buttonRef", "headerFilterMenuR
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { useGridApiContext } from '@mui/x-data-grid';
7
- import { unstable_useId as useId } from '@mui/utils';
7
+ import { refType, unstable_useId as useId } from '@mui/utils';
8
8
  import { unstable_gridHeaderFilteringMenuSelector } from '@mui/x-data-grid/internals';
9
9
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -69,9 +69,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
69
69
  // | To update them edit the TypeScript types and run "yarn proptypes" |
70
70
  // ----------------------------------------------------------------------
71
71
  applyFilterChanges: PropTypes.func.isRequired,
72
- buttonRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
73
- current: PropTypes.object
74
- })]),
72
+ buttonRef: refType,
75
73
  field: PropTypes.string.isRequired,
76
74
  headerFilterMenuRef: PropTypes.shape({
77
75
  current: PropTypes.object
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.13.0
2
+ * @mui/x-data-grid-pro v6.14.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 = "MTY5NDEyMDQwMDAwMA==";
3
+ const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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
@@ -277,9 +277,7 @@ process.env.NODE_ENV !== "production" ? GridColumnHeaders.propTypes = {
277
277
  filterColumnLookup: _propTypes.default.object.isRequired,
278
278
  hasOtherElementInTabSequence: _propTypes.default.bool.isRequired,
279
279
  headerGroupingMaxDepth: _propTypes.default.number.isRequired,
280
- innerRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
281
- current: _propTypes.default.object
282
- })]),
280
+ innerRef: _utils.refType,
283
281
  minColumnIndex: _propTypes.default.number,
284
282
  pinnedColumns: _propTypes.default.shape({
285
283
  left: _propTypes.default.arrayOf(_propTypes.default.string),
@@ -77,9 +77,7 @@ process.env.NODE_ENV !== "production" ? GridHeaderFilterMenuContainer.propTypes
77
77
  // | To update them edit the TypeScript types and run "yarn proptypes" |
78
78
  // ----------------------------------------------------------------------
79
79
  applyFilterChanges: _propTypes.default.func.isRequired,
80
- buttonRef: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.shape({
81
- current: _propTypes.default.object
82
- })]),
80
+ buttonRef: _utils.refType,
83
81
  field: _propTypes.default.string.isRequired,
84
82
  headerFilterMenuRef: _propTypes.default.shape({
85
83
  current: _propTypes.default.object
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.13.0
2
+ * @mui/x-data-grid-pro v6.14.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 = "MTY5NDEyMDQwMDAwMA==";
9
+ const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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-data-grid-pro",
3
- "version": "6.13.0",
3
+ "version": "6.14.0",
4
4
  "description": "The Pro plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.22.15",
35
- "@mui/utils": "^5.14.7",
36
- "@mui/x-data-grid": "6.13.0",
35
+ "@mui/utils": "^5.14.8",
36
+ "@mui/x-data-grid": "6.14.0",
37
37
  "@mui/x-license-pro": "6.10.2",
38
38
  "@types/format-util": "^1.0.2",
39
39
  "clsx": "^2.0.0",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5NDEyMDQwMDAwMA==";
3
+ const releaseInfo = "MTY5NDY0MjQwMDAwMA==";
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