@mui/x-data-grid-pro 6.0.2 → 6.0.3

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,60 @@
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.0.3
7
+
8
+ _Mar 23, 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
+ - 🌍 Improve Bulgarian (bg-BG), Persian (fa-IR), Polish (pl-PL), and Dutch (nl-NL) locales
13
+ - 🐞 Bugfixes
14
+ - 📚 Documentation improvements
15
+
16
+ ### `@mui/x-data-grid@v6.0.3` / `@mui/x-data-grid-pro@v6.0.3` / `@mui/x-data-grid-premium@v6.0.3`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Fix overflow calculation issue in column group headers (#8246) @MBilalShafi
21
+ - [DataGridPro] Fix column reorder glitches (#8335) @cherniavskii
22
+ - [l10n] Improve Bulgarian (bg-BG) locale (#8315) @todevmilen
23
+ - [l10n] Improve Persian (fa-IR) locale (#8268) @fakhamatia
24
+ - [l10n] improve Dutch (nl-NL) locale (#8317) @developenguin
25
+
26
+ ### `@mui/x-date-pickers@v6.0.3` / `@mui/x-date-pickers-pro@v6.0.3`
27
+
28
+ #### Changes
29
+
30
+ - [fields] Allow to reset the value from the outside (#8287) @flaviendelangle
31
+ - [fields] Cleanup section order generation (#8290) @flaviendelangle
32
+ - [fields] Fix Safari input selection resetting regression (#8295) @LukasTy
33
+ - [fields] Fix editing when all sections are selected (#8330) @flaviendelangle
34
+ - [fields] Fix iOS browser scroll jumping when entering data (#8328) @LukasTy
35
+ - [fields] New prop `unstableFieldRef` to imperatively interact with the selected sections (#8235) @flaviendelangle
36
+ - [pickers] Align date calendar colors (#8318) @LukasTy
37
+ - [pickers] Support invalid dates from the field (#8298) @flaviendelangle
38
+ - [l10n] Improve Persian (fa-IR) locale (#8268) @fakhamatia
39
+ - [l10n] Improve Polish (pl-PL) locale (#8344) @drmats
40
+ - [l10n] improve Dutch (nl-NL) locale (#8317) @developenguin
41
+
42
+ ### Docs
43
+
44
+ - [docs] Create examples of pickers with custom fields (#8034) @flaviendelangle
45
+ - [docs] Fix 301 redirections @oliviertassinari
46
+ - [docs] Fix link to React's docs @oliviertassinari
47
+ - [docs] Fix pro license links to point to the same page (#8303) @LukasTy
48
+ - [docs] Give an incentive to upgrade (#8269) @oliviertassinari
49
+ - [docs] Improve contrast on data grid navigation (#8239) @oliviertassinari
50
+ - [docs] Update shortcuts page to use slotProps (#8288) @dcorb
51
+ - [docs] Explain the `shouldDisableTime` migration in more depth (#8348) @LukasTy
52
+
53
+ ### Core
54
+
55
+ - [core] Remove unused `visx` chart package (#8259) @LukasTy
56
+ - [core] Upgrade monorepo (#8331) @cherniavskii
57
+ - [charts] Project setup (#8308) @alexfauquette
58
+ - [test] Track visual regressions of column menu and filter/column panels (#8095) @cherniavskii
59
+
6
60
  ## 6.0.2
7
61
 
8
62
  _Mar 16, 2023_
@@ -98,11 +152,9 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
98
152
 
99
153
  _Mar 3, 2023_
100
154
 
101
- We're happy to announce the first v6 stable release! 🎉🚀
155
+ We're excited to [announce the first v6 stable release](https://mui.com/blog/mui-x-v6/)! 🎉🚀
102
156
 
103
157
  This is now the officially supported major version, where we'll keep rolling out new features, bug fixes, and improvements.
104
- Head over to the [what's new](https://mui.com/x/whats-new/) page to check the highlighted new features.
105
-
106
158
  Migration guides are available with a complete list of the breaking changes:
107
159
 
108
160
  - [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/)
@@ -119,6 +171,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
119
171
  - experimentalFeatures={{ rowPinning: true }}
120
172
  />
121
173
  ```
174
+
122
175
  - ⚡️ Improved grid performance by rows and cells memoization (#7846) @m4theushw
123
176
  - ✨ Fields have a distinct visual state when empty (#8069) @LukasTy
124
177
  - 🌍 Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
@@ -556,14 +609,14 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
556
609
  ```
557
610
 
558
611
  - The `error` and `onError` props were removed - the grid no longer catches errors during rendering.
559
- To catch errors that happen during rendering use the [error boundary](https://reactjs.org/docs/error-boundaries.html).
612
+ To catch errors that happen during rendering use the [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary).
560
613
 
561
614
  - The `components.ErrorOverlay` slot was removed.
562
615
 
563
616
  - The `GridErrorOverlay` component was removed.
564
617
 
565
618
  - The `componentError` event was removed.
566
- Use the [error boundary](https://reactjs.org/docs/error-boundaries.html) to catch errors thrown during rendering.
619
+ Use the [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) to catch errors thrown during rendering.
567
620
 
568
621
  - The `apiRef.current.showError` method was removed.
569
622
  The UI for errors is no longer handled by the grid.
@@ -110,11 +110,11 @@ const VirtualScrollerPinnedColumns = styled('div', {
110
110
  borderLeftStyle: 'solid'
111
111
  });
112
112
  });
113
- var PinnedRowsPosition;
114
- (function (PinnedRowsPosition) {
113
+ var PinnedRowsPosition = /*#__PURE__*/function (PinnedRowsPosition) {
115
114
  PinnedRowsPosition["top"] = "top";
116
115
  PinnedRowsPosition["bottom"] = "bottom";
117
- })(PinnedRowsPosition || (PinnedRowsPosition = {}));
116
+ return PinnedRowsPosition;
117
+ }(PinnedRowsPosition || {});
118
118
  const VirtualScrollerPinnedRows = styled('div', {
119
119
  name: 'MuiDataGrid',
120
120
  slot: 'PinnedRows',
@@ -1,9 +1,9 @@
1
- var GridPinnedPosition;
1
+ var GridPinnedPosition = /*#__PURE__*/function (GridPinnedPosition) {
2
+ GridPinnedPosition["left"] = "left";
3
+ GridPinnedPosition["right"] = "right";
4
+ return GridPinnedPosition;
5
+ }(GridPinnedPosition || {});
2
6
  /**
3
7
  * The column pinning API interface that is available in the grid [[apiRef]].
4
8
  */
5
- (function (GridPinnedPosition) {
6
- GridPinnedPosition["left"] = "left";
7
- GridPinnedPosition["right"] = "right";
8
- })(GridPinnedPosition || (GridPinnedPosition = {}));
9
9
  export { GridPinnedPosition };
@@ -154,8 +154,8 @@ export const useGridColumnReorder = (apiRef, props) => {
154
154
  const visibleColumns = apiRef.current.getVisibleColumns();
155
155
  const allColumns = apiRef.current.getAllColumns();
156
156
  const cursorMoveDirectionX = getCursorMoveDirectionX(cursorPosition.current, coordinates);
157
- const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex;
158
- const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex;
157
+ const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && (theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex);
158
+ const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && (theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex);
159
159
  if (hasMovedLeft || hasMovedRight) {
160
160
  let canBeReordered;
161
161
  let indexOffsetInHiddenColumns = 0;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.0.2
2
+ * @mui/x-data-grid-pro v6.0.3
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -114,11 +114,11 @@ var VirtualScrollerPinnedColumns = styled('div', {
114
114
  borderLeftStyle: 'solid'
115
115
  });
116
116
  });
117
- var PinnedRowsPosition;
118
- (function (PinnedRowsPosition) {
117
+ var PinnedRowsPosition = /*#__PURE__*/function (PinnedRowsPosition) {
119
118
  PinnedRowsPosition["top"] = "top";
120
119
  PinnedRowsPosition["bottom"] = "bottom";
121
- })(PinnedRowsPosition || (PinnedRowsPosition = {}));
120
+ return PinnedRowsPosition;
121
+ }(PinnedRowsPosition || {});
122
122
  var VirtualScrollerPinnedRows = styled('div', {
123
123
  name: 'MuiDataGrid',
124
124
  slot: 'PinnedRows',
@@ -1,9 +1,9 @@
1
- var GridPinnedPosition;
1
+ var GridPinnedPosition = /*#__PURE__*/function (GridPinnedPosition) {
2
+ GridPinnedPosition["left"] = "left";
3
+ GridPinnedPosition["right"] = "right";
4
+ return GridPinnedPosition;
5
+ }(GridPinnedPosition || {});
2
6
  /**
3
7
  * The column pinning API interface that is available in the grid [[apiRef]].
4
8
  */
5
- (function (GridPinnedPosition) {
6
- GridPinnedPosition["left"] = "left";
7
- GridPinnedPosition["right"] = "right";
8
- })(GridPinnedPosition || (GridPinnedPosition = {}));
9
9
  export { GridPinnedPosition };
@@ -161,8 +161,8 @@ export var useGridColumnReorder = function useGridColumnReorder(apiRef, props) {
161
161
  var visibleColumns = apiRef.current.getVisibleColumns();
162
162
  var allColumns = apiRef.current.getAllColumns();
163
163
  var cursorMoveDirectionX = getCursorMoveDirectionX(cursorPosition.current, coordinates);
164
- var hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex;
165
- var hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex;
164
+ var hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && (theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex);
165
+ var hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && (theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex);
166
166
  if (hasMovedLeft || hasMovedRight) {
167
167
  var canBeReordered;
168
168
  var indexOffsetInHiddenColumns = 0;
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.0.2
2
+ * @mui/x-data-grid-pro v6.0.3
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 = "MTY3ODkxNzYwMDAwMA==";
3
+ var releaseInfo = "MTY3OTUyNjAwMDAwMA==";
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
@@ -108,11 +108,11 @@ const VirtualScrollerPinnedColumns = styled('div', {
108
108
  borderLeftStyle: 'solid'
109
109
  });
110
110
  });
111
- var PinnedRowsPosition;
112
- (function (PinnedRowsPosition) {
111
+ var PinnedRowsPosition = /*#__PURE__*/function (PinnedRowsPosition) {
113
112
  PinnedRowsPosition["top"] = "top";
114
113
  PinnedRowsPosition["bottom"] = "bottom";
115
- })(PinnedRowsPosition || (PinnedRowsPosition = {}));
114
+ return PinnedRowsPosition;
115
+ }(PinnedRowsPosition || {});
116
116
  const VirtualScrollerPinnedRows = styled('div', {
117
117
  name: 'MuiDataGrid',
118
118
  slot: 'PinnedRows',
@@ -1,9 +1,9 @@
1
- var GridPinnedPosition;
1
+ var GridPinnedPosition = /*#__PURE__*/function (GridPinnedPosition) {
2
+ GridPinnedPosition["left"] = "left";
3
+ GridPinnedPosition["right"] = "right";
4
+ return GridPinnedPosition;
5
+ }(GridPinnedPosition || {});
2
6
  /**
3
7
  * The column pinning API interface that is available in the grid [[apiRef]].
4
8
  */
5
- (function (GridPinnedPosition) {
6
- GridPinnedPosition["left"] = "left";
7
- GridPinnedPosition["right"] = "right";
8
- })(GridPinnedPosition || (GridPinnedPosition = {}));
9
9
  export { GridPinnedPosition };
@@ -152,8 +152,8 @@ export const useGridColumnReorder = (apiRef, props) => {
152
152
  const visibleColumns = apiRef.current.getVisibleColumns();
153
153
  const allColumns = apiRef.current.getAllColumns();
154
154
  const cursorMoveDirectionX = getCursorMoveDirectionX(cursorPosition.current, coordinates);
155
- const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex;
156
- const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex;
155
+ const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && (theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex);
156
+ const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && (theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex);
157
157
  if (hasMovedLeft || hasMovedRight) {
158
158
  let canBeReordered;
159
159
  let indexOffsetInHiddenColumns = 0;
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.0.2
2
+ * @mui/x-data-grid-pro v6.0.3
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 = "MTY3ODkxNzYwMDAwMA==";
3
+ const releaseInfo = "MTY3OTUyNjAwMDAwMA==";
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
@@ -117,11 +117,11 @@ const VirtualScrollerPinnedColumns = (0, _styles.styled)('div', {
117
117
  borderLeftStyle: 'solid'
118
118
  });
119
119
  });
120
- var PinnedRowsPosition;
121
- (function (PinnedRowsPosition) {
120
+ var PinnedRowsPosition = /*#__PURE__*/function (PinnedRowsPosition) {
122
121
  PinnedRowsPosition["top"] = "top";
123
122
  PinnedRowsPosition["bottom"] = "bottom";
124
- })(PinnedRowsPosition || (PinnedRowsPosition = {}));
123
+ return PinnedRowsPosition;
124
+ }(PinnedRowsPosition || {});
125
125
  const VirtualScrollerPinnedRows = (0, _styles.styled)('div', {
126
126
  name: 'MuiDataGrid',
127
127
  slot: 'PinnedRows',
@@ -4,12 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.GridPinnedPosition = void 0;
7
- var GridPinnedPosition;
7
+ var GridPinnedPosition = /*#__PURE__*/function (GridPinnedPosition) {
8
+ GridPinnedPosition["left"] = "left";
9
+ GridPinnedPosition["right"] = "right";
10
+ return GridPinnedPosition;
11
+ }(GridPinnedPosition || {});
8
12
  /**
9
13
  * The column pinning API interface that is available in the grid [[apiRef]].
10
14
  */
11
- exports.GridPinnedPosition = GridPinnedPosition;
12
- (function (GridPinnedPosition) {
13
- GridPinnedPosition["left"] = "left";
14
- GridPinnedPosition["right"] = "right";
15
- })(GridPinnedPosition || (exports.GridPinnedPosition = GridPinnedPosition = {}));
15
+ exports.GridPinnedPosition = GridPinnedPosition;
@@ -162,8 +162,8 @@ const useGridColumnReorder = (apiRef, props) => {
162
162
  const visibleColumns = apiRef.current.getVisibleColumns();
163
163
  const allColumns = apiRef.current.getAllColumns();
164
164
  const cursorMoveDirectionX = getCursorMoveDirectionX(cursorPosition.current, coordinates);
165
- const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex;
166
- const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex;
165
+ const hasMovedLeft = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_LEFT && (theme.direction === 'rtl' ? dragColIndex < targetColIndex : targetColIndex < dragColIndex);
166
+ const hasMovedRight = cursorMoveDirectionX === CURSOR_MOVE_DIRECTION_RIGHT && (theme.direction === 'rtl' ? targetColIndex < dragColIndex : dragColIndex < targetColIndex);
167
167
  if (hasMovedLeft || hasMovedRight) {
168
168
  let canBeReordered;
169
169
  let indexOffsetInHiddenColumns = 0;
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.0.2
2
+ * @mui/x-data-grid-pro v6.0.3
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 = "MTY3ODkxNzYwMDAwMA==";
9
+ const releaseInfo = "MTY3OTUyNjAwMDAwMA==";
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.0.2",
3
+ "version": "6.0.3",
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",
@@ -31,10 +31,10 @@
31
31
  "directory": "packages/grid/x-data-grid-pro"
32
32
  },
33
33
  "dependencies": {
34
- "@babel/runtime": "^7.20.13",
34
+ "@babel/runtime": "^7.21.0",
35
35
  "@mui/utils": "^5.11.13",
36
- "@mui/x-data-grid": "6.0.2",
37
- "@mui/x-license-pro": "6.0.2",
36
+ "@mui/x-data-grid": "6.0.3",
37
+ "@mui/x-license-pro": "6.0.3",
38
38
  "@types/format-util": "^1.0.2",
39
39
  "clsx": "^1.2.1",
40
40
  "prop-types": "^15.8.1",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY3ODkxNzYwMDAwMA==";
3
+ const releaseInfo = "MTY3OTUyNjAwMDAwMA==";
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