@mui/x-data-grid-pro 6.0.1 → 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 +116 -10
- package/components/DataGridProVirtualScroller.js +3 -3
- package/hooks/features/columnPinning/gridColumnPinningInterface.js +5 -5
- package/hooks/features/columnReorder/useGridColumnReorder.js +2 -2
- package/index.js +1 -1
- package/legacy/components/DataGridProVirtualScroller.js +3 -3
- package/legacy/hooks/features/columnPinning/gridColumnPinningInterface.js +5 -5
- package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/components/DataGridProVirtualScroller.js +3 -3
- package/modern/hooks/features/columnPinning/gridColumnPinningInterface.js +5 -5
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +2 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/components/DataGridProVirtualScroller.js +3 -3
- package/node/hooks/features/columnPinning/gridColumnPinningInterface.js +6 -6
- package/node/hooks/features/columnReorder/useGridColumnReorder.js +2 -2
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,113 @@
|
|
|
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
|
+
|
|
60
|
+
## 6.0.2
|
|
61
|
+
|
|
62
|
+
_Mar 16, 2023_
|
|
63
|
+
|
|
64
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
65
|
+
|
|
66
|
+
- 🚀 Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
67
|
+
- 🎁 Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
68
|
+
- 🌍 Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
69
|
+
- 🌍 Improve Brazilian Portuguese (pt-BR), German (de-DE), and French (fr-FR) locales
|
|
70
|
+
- 📚 Documentation improvements
|
|
71
|
+
- 🐞 Bugfixes
|
|
72
|
+
|
|
73
|
+
### `@mui/x-data-grid@v6.0.2` / `@mui/x-data-grid-pro@v6.0.2` / `@mui/x-data-grid-premium@v6.0.2`
|
|
74
|
+
|
|
75
|
+
#### Changes
|
|
76
|
+
|
|
77
|
+
- [DataGrid] Fix <kbd>Space</kbd> triggering edit mode (#8180) @m4theushw
|
|
78
|
+
- [DataGrid] Remove warning when adding a custom column type (#8227) @m4theushw
|
|
79
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#8198) @JoaoSerafim3001
|
|
80
|
+
|
|
81
|
+
### `@mui/x-date-pickers@v6.0.2` / `@mui/x-date-pickers-pro@v6.0.2`
|
|
82
|
+
|
|
83
|
+
#### Changes
|
|
84
|
+
|
|
85
|
+
- [l10n] Add Hebrew (he-IL) locale (#8222) @ylarom
|
|
86
|
+
- [l10n] Improve German (de-DE) locale (#8204) @sebkasanzew
|
|
87
|
+
- [l10n] Improve French (fr-FR) locale (#8229) @marvinroger
|
|
88
|
+
- [DateRangePicker] Allow overriding `slotProps.textField` (#8201) @LukasTy
|
|
89
|
+
- [fields] Fire `onChange` when filling a partial date (#8082) @flaviendelangle
|
|
90
|
+
- [fields] Fix editing in shadow dom (#8254) @flaviendelangle
|
|
91
|
+
- [fields] Remove the duplicated warning about invalid adapter (#8187) @flaviendelangle
|
|
92
|
+
- [fields] Support date format like `1st` (`do`) (#8188) @flaviendelangle
|
|
93
|
+
- [pickers] Fix to avoid selecting sections on mobile picker field (#8228) @LukasTy
|
|
94
|
+
- [pickers] Inherit previous and next icons size from their parent button (#8218) @flaviendelangle
|
|
95
|
+
|
|
96
|
+
### Docs
|
|
97
|
+
|
|
98
|
+
- [docs] Add a warning in the migration guide for people re-enabling the clock on desktop (#8184) @flaviendelangle
|
|
99
|
+
- [docs] Add a warning for `luxon` macro tokens (#8245) @flaviendelangle
|
|
100
|
+
- [docs] Complete pickers customization pages (#8066) @alexfauquette
|
|
101
|
+
- [docs] Fix 301 redirection @oliviertassinari
|
|
102
|
+
- [docs] Fix 404 links to customization Material UI APIs (#8200) @oliviertassinari
|
|
103
|
+
- [docs] Fix `moment-hijri` demo (#8255) @LukasTy
|
|
104
|
+
- [docs] Improve migration diff (#8240) @oliviertassinari
|
|
105
|
+
- [docs] Change **What's new** page url to point to announcement blog post (#8186) @joserodolfofreitas
|
|
106
|
+
- [docs] Resolve 301 in changelog @oliviertassinari
|
|
107
|
+
|
|
108
|
+
### Core
|
|
109
|
+
|
|
110
|
+
- [core] Regen api docs (#8220) @flaviendelangle
|
|
111
|
+
- [core] Remove duplicated `/` (#8223) @alexfauquette
|
|
112
|
+
|
|
6
113
|
## 6.0.1
|
|
7
114
|
|
|
8
115
|
_Mar 9, 2023_
|
|
@@ -45,11 +152,9 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
45
152
|
|
|
46
153
|
_Mar 3, 2023_
|
|
47
154
|
|
|
48
|
-
We're
|
|
155
|
+
We're excited to [announce the first v6 stable release](https://mui.com/blog/mui-x-v6/)! 🎉🚀
|
|
49
156
|
|
|
50
157
|
This is now the officially supported major version, where we'll keep rolling out new features, bug fixes, and improvements.
|
|
51
|
-
Head over to the [what's new](https://mui.com/x/whats-new/) page to check the highlighted new features.
|
|
52
|
-
|
|
53
158
|
Migration guides are available with a complete list of the breaking changes:
|
|
54
159
|
|
|
55
160
|
- [Data Grid](https://mui.com/x/migration/migration-data-grid-v5/)
|
|
@@ -66,6 +171,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
66
171
|
- experimentalFeatures={{ rowPinning: true }}
|
|
67
172
|
/>
|
|
68
173
|
```
|
|
174
|
+
|
|
69
175
|
- ⚡️ Improved grid performance by rows and cells memoization (#7846) @m4theushw
|
|
70
176
|
- ✨ Fields have a distinct visual state when empty (#8069) @LukasTy
|
|
71
177
|
- 🌍 Improve Czech (cs-CZ) locale (#8113) @BlastyCZ
|
|
@@ -503,14 +609,14 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
503
609
|
```
|
|
504
610
|
|
|
505
611
|
- The `error` and `onError` props were removed - the grid no longer catches errors during rendering.
|
|
506
|
-
To catch errors that happen during rendering use the [error boundary](https://
|
|
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).
|
|
507
613
|
|
|
508
614
|
- The `components.ErrorOverlay` slot was removed.
|
|
509
615
|
|
|
510
616
|
- The `GridErrorOverlay` component was removed.
|
|
511
617
|
|
|
512
618
|
- The `componentError` event was removed.
|
|
513
|
-
Use the [error boundary](https://
|
|
619
|
+
Use the [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) to catch errors thrown during rendering.
|
|
514
620
|
|
|
515
621
|
- The `apiRef.current.showError` method was removed.
|
|
516
622
|
The UI for errors is no longer handled by the grid.
|
|
@@ -1025,7 +1131,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
|
|
|
1025
1131
|
<DataGridPremium unstable_cellSelection />
|
|
1026
1132
|
```
|
|
1027
1133
|
|
|
1028
|
-
See [the documentation](https://mui.com/x/react-data-grid/
|
|
1134
|
+
See [the documentation](https://mui.com/x/react-data-grid/cell-selection/) for more information
|
|
1029
1135
|
|
|
1030
1136
|
- 🌍 Support the Right To Left orientation on the fields components
|
|
1031
1137
|
- 📚 Documentation improvements
|
|
@@ -3082,7 +3188,7 @@ _Sep 2, 2022_
|
|
|
3082
3188
|
|
|
3083
3189
|
🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
|
|
3084
3190
|
|
|
3085
|
-
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/
|
|
3191
|
+
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
3086
3192
|
|
|
3087
3193
|
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
3088
3194
|
|
|
@@ -4133,7 +4239,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4133
4239
|
|
|
4134
4240
|
Date and time picker components have been moved to the MUI X repository.
|
|
4135
4241
|
They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
|
|
4136
|
-
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/
|
|
4242
|
+
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/migration/migration-pickers-lab/).
|
|
4137
4243
|
|
|
4138
4244
|
- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
4139
4245
|
- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
@@ -6781,7 +6887,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
6781
6887
|
- 💅 Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
|
|
6782
6888
|
- ✅ Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
|
|
6783
6889
|
|
|
6784
|
-
See the documentation for [more details](https://mui.com/
|
|
6890
|
+
See the documentation for [more details](https://v4.mui.com/components/data-grid/selection/#disable-selection-on-certain-rows).
|
|
6785
6891
|
|
|
6786
6892
|
- ⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
|
|
6787
6893
|
- ⚙ Improve consistency of the API to prepare for the first beta release
|
|
@@ -7309,7 +7415,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
7309
7415
|
- 📍 Add support for default locales (#983) @DanailH
|
|
7310
7416
|
We have built the infrastructure to support around 100 [default locales](https://mui.com/x/react-data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material UI by opening a pull request.
|
|
7311
7417
|
- 🎁 Add new `selectionModel` prop (#986) @dtassone
|
|
7312
|
-
The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/
|
|
7418
|
+
The prop can be used to control the selected rows in the data grid. [See the docs](https://v4.mui.com/components/data-grid/selection/#controlled-selection).
|
|
7313
7419
|
- 💅 Add support for default props from theme (#1019) @DanailH
|
|
7314
7420
|
- 🙌 Fix scrollbar size on windows (#1061) @dtassone
|
|
7315
7421
|
- 🐛 Polish existing features, fix 9 issues.
|
|
@@ -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
|
-
|
|
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
|
@@ -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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
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
|
-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
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
|
-
|
|
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
|
@@ -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 = "
|
|
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.
|
|
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.
|
|
35
|
-
"@mui/utils": "^5.11.
|
|
36
|
-
"@mui/x-data-grid": "6.0.
|
|
37
|
-
"@mui/x-license-pro": "6.0.
|
|
34
|
+
"@babel/runtime": "^7.21.0",
|
|
35
|
+
"@mui/utils": "^5.11.13",
|
|
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",
|
package/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
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
|