@mui/x-data-grid-pro 7.0.0-beta.1 β 7.0.0-beta.2
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 +159 -1
- package/DataGridPro/DataGridPro.d.ts +1 -1
- package/DataGridPro/DataGridPro.js +4 -4
- package/DataGridPro/useDataGridProProps.js +3 -1
- package/components/headerFiltering/GridHeaderFilterMenuContainer.js +4 -2
- package/esm/DataGridPro/DataGridPro.js +2 -2
- package/esm/DataGridPro/useDataGridProProps.js +3 -1
- package/esm/components/headerFiltering/GridHeaderFilterMenuContainer.js +4 -2
- package/esm/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/esm/index.js +6 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/index.d.ts +7 -1
- package/index.js +10 -9
- package/legacy/DataGridPro/DataGridPro.js +2 -2
- package/legacy/DataGridPro/useDataGridProProps.js +3 -1
- package/legacy/components/headerFiltering/GridHeaderFilterMenuContainer.js +4 -2
- package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/legacy/index.js +21 -2
- package/legacy/utils/releaseInfo.js +1 -1
- package/models/dataGridProProps.d.ts +1 -1
- package/modern/DataGridPro/DataGridPro.js +2 -2
- package/modern/DataGridPro/useDataGridProProps.js +3 -1
- package/modern/components/headerFiltering/GridHeaderFilterMenuContainer.js +4 -2
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +1 -1
- package/modern/index.js +7 -2
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +4 -4
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,108 @@
|
|
|
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
|
+
## v7.0.0-beta.2
|
|
7
|
+
|
|
8
|
+
_Feb 9, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights β¨:
|
|
11
|
+
|
|
12
|
+
- π Add slot typings on the Data Grid components (#11795) @romgrk
|
|
13
|
+
- π Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
|
|
14
|
+
- π Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
|
|
15
|
+
- π Bugfixes
|
|
16
|
+
- π Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v7.0.0-beta.2`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
|
|
23
|
+
- [DataGrid] Add slot typings (#11795) @romgrk
|
|
24
|
+
- [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
|
|
25
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
|
|
26
|
+
- [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
|
|
27
|
+
- [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
|
|
28
|
+
- [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-premium@v7.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid-pro@v7.0.0-beta.2`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
|
|
39
|
+
- [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
|
|
40
|
+
|
|
41
|
+
### Date Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@v7.0.0-beta.2`
|
|
44
|
+
|
|
45
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
|
|
46
|
+
- [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@v7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
|
|
51
|
+
|
|
52
|
+
### Charts / `@mui/x-charts@v7.0.0-beta.2`
|
|
53
|
+
|
|
54
|
+
- [charts] Add `reverse` property to axes (#11899) @alexfauquette
|
|
55
|
+
- [charts] Allow series ids to be numbers (#11941) @alexfauquette
|
|
56
|
+
- [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
|
|
57
|
+
|
|
58
|
+
### Tree View / `@mui/x-tree-view@v7.0.0-beta.2`
|
|
59
|
+
|
|
60
|
+
- [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
|
|
61
|
+
- [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
|
|
62
|
+
|
|
63
|
+
### License
|
|
64
|
+
|
|
65
|
+
#### Breaking changes
|
|
66
|
+
|
|
67
|
+
- If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
|
|
68
|
+
|
|
69
|
+
```diff
|
|
70
|
+
-import { LicenseInfo } from '@mui/x-license-pro';
|
|
71
|
+
+import { LicenseInfo } from '@mui/x-license';
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`@mui/x-license@v7.0.0-beta.2`
|
|
75
|
+
|
|
76
|
+
- [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
|
|
81
|
+
- [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
|
|
82
|
+
- [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
|
|
83
|
+
- [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
|
|
84
|
+
- [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
|
|
85
|
+
- [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
|
|
86
|
+
- [docs] Avoid use of shorthand (#12000) @oliviertassinari
|
|
87
|
+
- [docs] Avoid the use of MUIΒ Core @oliviertassinari
|
|
88
|
+
- [docs] Fix image size and dark mode @oliviertassinari
|
|
89
|
+
- [docs] Follow blank line convention with use client @oliviertassinari
|
|
90
|
+
- [docs] Stable layout between light and dark mode @oliviertassinari
|
|
91
|
+
|
|
92
|
+
### Core
|
|
93
|
+
|
|
94
|
+
- [core] Add `docs:serve` script (#11935) @cherniavskii
|
|
95
|
+
- [core] Bump monorepo (#12001) @cherniavskii
|
|
96
|
+
- [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
|
|
97
|
+
- [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
|
|
98
|
+
- [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
|
|
99
|
+
- [core] Flatten grid packages folder (#11946) @cherniavskii
|
|
100
|
+
- [core] Improve license info deprecation message (#11974) @cherniavskii
|
|
101
|
+
- [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
|
|
102
|
+
- [core] Move next config to ESM (#11882) @Janpot
|
|
103
|
+
- [core] Add auto-message on closed issues (#11805) @michelengelen
|
|
104
|
+
- [core] Simplify bug reproduction (#11849) @oliviertassinari
|
|
105
|
+
- [core] Fix npm reference @oliviertassinari
|
|
106
|
+
- [core] Normalize issue template @oliviertassinari
|
|
107
|
+
|
|
6
108
|
## 7.0.0-beta.1
|
|
7
109
|
|
|
8
110
|
_Feb 1, 2024_
|
|
@@ -2036,6 +2138,62 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2036
2138
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2037
2139
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2038
2140
|
|
|
2141
|
+
## v6.19.4
|
|
2142
|
+
|
|
2143
|
+
_Feb 9, 2024_
|
|
2144
|
+
|
|
2145
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights β¨:
|
|
2146
|
+
|
|
2147
|
+
- π Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
|
|
2148
|
+
- π Bugfixes
|
|
2149
|
+
- π Documentation improvements
|
|
2150
|
+
|
|
2151
|
+
### Data Grid
|
|
2152
|
+
|
|
2153
|
+
#### `@mui/x-data-grid@v6.19.4`
|
|
2154
|
+
|
|
2155
|
+
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2156
|
+
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
2157
|
+
- [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
|
|
2158
|
+
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2159
|
+
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2160
|
+
|
|
2161
|
+
#### `@mui/x-data-grid-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2162
|
+
|
|
2163
|
+
Same changes as in `@mui/x-data-grid@v6.19.4`.
|
|
2164
|
+
|
|
2165
|
+
#### `@mui/x-data-grid-premium@v6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2166
|
+
|
|
2167
|
+
Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
|
|
2168
|
+
|
|
2169
|
+
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2170
|
+
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2171
|
+
|
|
2172
|
+
### Date Pickers
|
|
2173
|
+
|
|
2174
|
+
#### `@mui/x-date-pickers@v6.19.4`
|
|
2175
|
+
|
|
2176
|
+
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2177
|
+
|
|
2178
|
+
#### `@mui/x-date-pickers-pro@v6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2179
|
+
|
|
2180
|
+
Same changes as in `@mui/x-date-pickers@v6.19.4`.
|
|
2181
|
+
|
|
2182
|
+
### Charts / `@mui/x-charts@v6.19.4`
|
|
2183
|
+
|
|
2184
|
+
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2185
|
+
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
2186
|
+
- [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
|
|
2187
|
+
|
|
2188
|
+
### Docs
|
|
2189
|
+
|
|
2190
|
+
- [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
|
|
2191
|
+
- [docs] Avoid the use of MUI Core @oliviertassinari
|
|
2192
|
+
- [docs] Fix API links (#11930) @alexfauquette
|
|
2193
|
+
- [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
|
|
2194
|
+
- [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
|
|
2195
|
+
- [code] Simplify bug reproduction (#11932) @alexfauquette
|
|
2196
|
+
|
|
2039
2197
|
## 6.19.3
|
|
2040
2198
|
|
|
2041
2199
|
_Feb 1, 2024_
|
|
@@ -7123,7 +7281,7 @@ You can find more information about the new api, including how to set those tran
|
|
|
7123
7281
|
- [core] Add link to the security page on the `README` (#6073) @oliviertassinari
|
|
7124
7282
|
- [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
|
|
7125
7283
|
- [core] Remove the Storybook (#6099) @flaviendelangle
|
|
7126
|
-
- [core] Tag release as `next` in
|
|
7284
|
+
- [core] Tag release as `next` in npm (#6256) @m4theushw
|
|
7127
7285
|
- [core] Update monorepo (#6180) @flaviendelangle
|
|
7128
7286
|
- [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
|
|
7129
7287
|
- [core] Use the official repository for `@mui/monorepo` instead of a fork (#6189) @oliviertassinari
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridValidRowModel } from '@mui/x-data-grid';
|
|
3
3
|
import { DataGridProProps } from '../models/dataGridProProps';
|
|
4
|
+
export type { GridProSlotsComponent as GridSlots } from '../models';
|
|
4
5
|
interface DataGridProComponent {
|
|
5
6
|
<R extends GridValidRowModel = any>(props: DataGridProProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
|
|
6
7
|
propTypes?: any;
|
|
@@ -13,4 +14,3 @@ interface DataGridProComponent {
|
|
|
13
14
|
* - [DataGridPro API](https://mui.com/x/api/data-grid/data-grid-pro/)
|
|
14
15
|
*/
|
|
15
16
|
export declare const DataGridPro: DataGridProComponent;
|
|
16
|
-
export {};
|
|
@@ -8,7 +8,7 @@ exports.DataGridPro = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
var
|
|
11
|
+
var _xLicense = require("@mui/x-license");
|
|
12
12
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
13
13
|
var _internals = require("@mui/x-data-grid/internals");
|
|
14
14
|
var _useDataGridProComponent = require("./useDataGridProComponent");
|
|
@@ -22,7 +22,7 @@ const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
|
22
22
|
const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProps, ref) {
|
|
23
23
|
const props = (0, _useDataGridProProps.useDataGridProProps)(inProps);
|
|
24
24
|
const privateApiRef = (0, _useDataGridProComponent.useDataGridProComponent)(props.apiRef, props);
|
|
25
|
-
(0,
|
|
25
|
+
(0, _xLicense.useLicenseVerifier)('x-data-grid-pro', releaseInfo);
|
|
26
26
|
(0, _internals.validateProps)(props, _propValidation.propValidatorsDataGridPro);
|
|
27
27
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridContextProvider, {
|
|
28
28
|
privateApiRef: privateApiRef,
|
|
@@ -34,7 +34,7 @@ const DataGridProRaw = /*#__PURE__*/React.forwardRef(function DataGridPro(inProp
|
|
|
34
34
|
ref: ref
|
|
35
35
|
}, props.forwardedProps, {
|
|
36
36
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridHeader, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGrid.GridBody, {
|
|
37
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
38
38
|
packageName: "x-data-grid-pro",
|
|
39
39
|
releaseInfo: releaseInfo
|
|
40
40
|
})
|
|
@@ -435,7 +435,7 @@ DataGridProRaw.propTypes = {
|
|
|
435
435
|
loading: _propTypes.default.bool,
|
|
436
436
|
/**
|
|
437
437
|
* Set the locale text of the Data Grid.
|
|
438
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/
|
|
438
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
439
439
|
*/
|
|
440
440
|
localeText: _propTypes.default.object,
|
|
441
441
|
/**
|
|
@@ -33,7 +33,9 @@ const DATA_GRID_PRO_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PRO_PROPS_DEFAULT_V
|
|
|
33
33
|
});
|
|
34
34
|
const defaultSlots = _dataGridProDefaultSlotsComponents.DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
|
|
35
35
|
const useDataGridProProps = inProps => {
|
|
36
|
-
const themedProps = (0, _internals.useProps)(
|
|
36
|
+
const themedProps = (0, _internals.useProps)(
|
|
37
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
38
|
+
(0, _styles.useThemeProps)({
|
|
37
39
|
props: inProps,
|
|
38
40
|
name: 'MuiDataGrid'
|
|
39
41
|
}));
|
|
@@ -45,12 +45,14 @@ function GridHeaderFilterMenuContainer(props) {
|
|
|
45
45
|
if (!rootProps.slots.headerFilterMenu) {
|
|
46
46
|
return null;
|
|
47
47
|
}
|
|
48
|
+
const label = apiRef.current.getLocaleText('filterPanelOperator');
|
|
49
|
+
const labelString = label ? String(label) : undefined;
|
|
48
50
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
49
51
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
|
|
50
52
|
id: buttonId,
|
|
51
53
|
ref: buttonRef,
|
|
52
|
-
"aria-label":
|
|
53
|
-
title:
|
|
54
|
+
"aria-label": labelString,
|
|
55
|
+
title: labelString,
|
|
54
56
|
"aria-controls": menuId,
|
|
55
57
|
"aria-expanded": open ? 'true' : undefined,
|
|
56
58
|
"aria-haspopup": "true",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useLicenseVerifier, Watermark } from '@mui/x-license
|
|
4
|
+
import { useLicenseVerifier, Watermark } from '@mui/x-license';
|
|
5
5
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid';
|
|
6
6
|
import { validateProps } from '@mui/x-data-grid/internals';
|
|
7
7
|
import { useDataGridProComponent } from './useDataGridProComponent';
|
|
@@ -427,7 +427,7 @@ DataGridProRaw.propTypes = {
|
|
|
427
427
|
loading: PropTypes.bool,
|
|
428
428
|
/**
|
|
429
429
|
* Set the locale text of the Data Grid.
|
|
430
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/
|
|
430
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
431
431
|
*/
|
|
432
432
|
localeText: PropTypes.object,
|
|
433
433
|
/**
|
|
@@ -25,7 +25,9 @@ export const DATA_GRID_PRO_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PROPS_D
|
|
|
25
25
|
});
|
|
26
26
|
const defaultSlots = DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
|
|
27
27
|
export const useDataGridProProps = inProps => {
|
|
28
|
-
const themedProps = useProps(
|
|
28
|
+
const themedProps = useProps(
|
|
29
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
30
|
+
useThemeProps({
|
|
29
31
|
props: inProps,
|
|
30
32
|
name: 'MuiDataGrid'
|
|
31
33
|
}));
|
|
@@ -38,12 +38,14 @@ function GridHeaderFilterMenuContainer(props) {
|
|
|
38
38
|
if (!rootProps.slots.headerFilterMenu) {
|
|
39
39
|
return null;
|
|
40
40
|
}
|
|
41
|
+
const label = apiRef.current.getLocaleText('filterPanelOperator');
|
|
42
|
+
const labelString = label ? String(label) : undefined;
|
|
41
43
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
42
44
|
children: [/*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
43
45
|
id: buttonId,
|
|
44
46
|
ref: buttonRef,
|
|
45
|
-
"aria-label":
|
|
46
|
-
title:
|
|
47
|
+
"aria-label": labelString,
|
|
48
|
+
title: labelString,
|
|
47
49
|
"aria-controls": menuId,
|
|
48
50
|
"aria-expanded": open ? 'true' : undefined,
|
|
49
51
|
"aria-haspopup": "true",
|
|
@@ -183,7 +183,7 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
if (forbiddenIndexes.current[indexWithOffset] || allColumns[indexWithOffset].field === nextVisibleColumnField) {
|
|
186
|
-
// If we ended up on a visible column, or a forbidden one, we
|
|
186
|
+
// If we ended up on a visible column, or a forbidden one, we cannot do the reorder
|
|
187
187
|
canBeReordered = false;
|
|
188
188
|
}
|
|
189
189
|
}
|
package/esm/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import './typeOverloads';
|
|
2
|
-
|
|
2
|
+
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `@mui/x-license` package instead:
|
|
5
|
+
* @example import { LicenseInfo } from '@mui/x-license';
|
|
6
|
+
*/
|
|
7
|
+
export class LicenseInfo extends LicenseInfoExport {}
|
|
3
8
|
export * from '@mui/x-data-grid/components';
|
|
4
9
|
export * from '@mui/x-data-grid/constants';
|
|
5
10
|
export * from '@mui/x-data-grid/hooks';
|
package/esm/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 = "MTcwNzQyOTYwMDAwMA==";
|
|
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
|
|
@@ -191,7 +191,7 @@ const useGridColumnReorder = (apiRef, props) => {
|
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
if (forbiddenIndexes.current[indexWithOffset] || allColumns[indexWithOffset].field === nextVisibleColumnField) {
|
|
194
|
-
// If we ended up on a visible column, or a forbidden one, we
|
|
194
|
+
// If we ended up on a visible column, or a forbidden one, we cannot do the reorder
|
|
195
195
|
canBeReordered = false;
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DataGridProProcessedProps } from '../../models/dataGridProProps';
|
|
1
|
+
import type { DataGridProProcessedProps } from '../../models/dataGridProProps';
|
|
2
2
|
export declare const useGridRootProps: () => DataGridProProcessedProps;
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import './typeOverloads';
|
|
2
|
-
|
|
2
|
+
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Use `@mui/x-license` package instead:
|
|
5
|
+
* @example import { LicenseInfo } from '@mui/x-license';
|
|
6
|
+
*/
|
|
7
|
+
export declare class LicenseInfo extends LicenseInfoExport {
|
|
8
|
+
}
|
|
3
9
|
export * from '@mui/x-data-grid/components';
|
|
4
10
|
export * from '@mui/x-data-grid/constants';
|
|
5
11
|
export * from '@mui/x-data-grid/hooks';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid-pro v7.0.0-beta.
|
|
2
|
+
* @mui/x-data-grid-pro v7.0.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -44,12 +44,7 @@ Object.defineProperty(exports, "GridColumnMenu", {
|
|
|
44
44
|
return _reexports2.GridColumnMenu;
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () {
|
|
50
|
-
return _xLicensePro.LicenseInfo;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
47
|
+
exports.LicenseInfo = void 0;
|
|
53
48
|
Object.defineProperty(exports, "useGridApiContext", {
|
|
54
49
|
enumerable: true,
|
|
55
50
|
get: function () {
|
|
@@ -69,7 +64,7 @@ Object.defineProperty(exports, "useGridRootProps", {
|
|
|
69
64
|
}
|
|
70
65
|
});
|
|
71
66
|
require("./typeOverloads");
|
|
72
|
-
var
|
|
67
|
+
var _xLicense = require("@mui/x-license");
|
|
73
68
|
var _components = require("@mui/x-data-grid/components");
|
|
74
69
|
Object.keys(_components).forEach(function (key) {
|
|
75
70
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -216,4 +211,10 @@ Object.keys(_utils2).forEach(function (key) {
|
|
|
216
211
|
});
|
|
217
212
|
var _reexports = require("./typeOverloads/reexports");
|
|
218
213
|
var _reexports2 = require("./components/reexports");
|
|
219
|
-
var _GridColumnHeaders = require("./components/GridColumnHeaders");
|
|
214
|
+
var _GridColumnHeaders = require("./components/GridColumnHeaders");
|
|
215
|
+
/**
|
|
216
|
+
* @deprecated Use `@mui/x-license` package instead:
|
|
217
|
+
* @example import { LicenseInfo } from '@mui/x-license';
|
|
218
|
+
*/
|
|
219
|
+
class LicenseInfo extends _xLicense.LicenseInfo {}
|
|
220
|
+
exports.LicenseInfo = LicenseInfo;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useLicenseVerifier, Watermark } from '@mui/x-license
|
|
4
|
+
import { useLicenseVerifier, Watermark } from '@mui/x-license';
|
|
5
5
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid';
|
|
6
6
|
import { validateProps } from '@mui/x-data-grid/internals';
|
|
7
7
|
import { useDataGridProComponent } from './useDataGridProComponent';
|
|
@@ -427,7 +427,7 @@ DataGridProRaw.propTypes = {
|
|
|
427
427
|
loading: PropTypes.bool,
|
|
428
428
|
/**
|
|
429
429
|
* Set the locale text of the Data Grid.
|
|
430
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/
|
|
430
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
431
431
|
*/
|
|
432
432
|
localeText: PropTypes.object,
|
|
433
433
|
/**
|
|
@@ -27,7 +27,9 @@ export var DATA_GRID_PRO_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PROPS_DEF
|
|
|
27
27
|
});
|
|
28
28
|
var defaultSlots = DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
|
|
29
29
|
export var useDataGridProProps = function useDataGridProProps(inProps) {
|
|
30
|
-
var themedProps = useProps(
|
|
30
|
+
var themedProps = useProps(
|
|
31
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
32
|
+
useThemeProps({
|
|
31
33
|
props: inProps,
|
|
32
34
|
name: 'MuiDataGrid'
|
|
33
35
|
}));
|
|
@@ -37,12 +37,14 @@ function GridHeaderFilterMenuContainer(props) {
|
|
|
37
37
|
if (!rootProps.slots.headerFilterMenu) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
+
var label = apiRef.current.getLocaleText('filterPanelOperator');
|
|
41
|
+
var labelString = label ? String(label) : undefined;
|
|
40
42
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
41
43
|
children: [/*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
42
44
|
id: buttonId,
|
|
43
45
|
ref: buttonRef,
|
|
44
|
-
"aria-label":
|
|
45
|
-
title:
|
|
46
|
+
"aria-label": labelString,
|
|
47
|
+
title: labelString,
|
|
46
48
|
"aria-controls": menuId,
|
|
47
49
|
"aria-expanded": open ? 'true' : undefined,
|
|
48
50
|
"aria-haspopup": "true",
|
|
@@ -190,7 +190,7 @@ export var useGridColumnReorder = function useGridColumnReorder(apiRef, props) {
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
if (forbiddenIndexes.current[indexWithOffset] || allColumns[indexWithOffset].field === nextVisibleColumnField) {
|
|
193
|
-
// If we ended up on a visible column, or a forbidden one, we
|
|
193
|
+
// If we ended up on a visible column, or a forbidden one, we cannot do the reorder
|
|
194
194
|
canBeReordered = false;
|
|
195
195
|
}
|
|
196
196
|
}
|
package/legacy/index.js
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid-pro v7.0.0-beta.
|
|
2
|
+
* @mui/x-data-grid-pro v7.0.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
9
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
10
|
+
import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
|
|
11
|
+
import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
|
|
12
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
13
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
14
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
8
15
|
import './typeOverloads';
|
|
9
|
-
|
|
16
|
+
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `@mui/x-license` package instead:
|
|
19
|
+
* @example import { LicenseInfo } from '@mui/x-license';
|
|
20
|
+
*/
|
|
21
|
+
export var LicenseInfo = /*#__PURE__*/function (_LicenseInfoExport) {
|
|
22
|
+
_inherits(LicenseInfo, _LicenseInfoExport);
|
|
23
|
+
function LicenseInfo() {
|
|
24
|
+
_classCallCheck(this, LicenseInfo);
|
|
25
|
+
return _callSuper(this, LicenseInfo, arguments);
|
|
26
|
+
}
|
|
27
|
+
return _createClass(LicenseInfo);
|
|
28
|
+
}(LicenseInfoExport);
|
|
10
29
|
export * from '@mui/x-data-grid/components';
|
|
11
30
|
export * from '@mui/x-data-grid/constants';
|
|
12
31
|
export * from '@mui/x-data-grid/hooks';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcwNzQyOTYwMDAwMA==";
|
|
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
|
|
@@ -7,7 +7,7 @@ import { GridGroupingColDefOverride, GridGroupingColDefOverrideParams } from './
|
|
|
7
7
|
import { GridInitialStatePro } from './gridStatePro';
|
|
8
8
|
import { GridProSlotsComponent } from './gridProSlotsComponent';
|
|
9
9
|
import type { GridProSlotProps } from './gridProSlotProps';
|
|
10
|
-
import { GridAutosizeOptions } from '../hooks';
|
|
10
|
+
import type { GridAutosizeOptions } from '../hooks';
|
|
11
11
|
export interface GridExperimentalProFeatures extends GridExperimentalFeatures {
|
|
12
12
|
/**
|
|
13
13
|
* Enables the data grid to lazy load rows while scrolling.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
-
import { useLicenseVerifier, Watermark } from '@mui/x-license
|
|
4
|
+
import { useLicenseVerifier, Watermark } from '@mui/x-license';
|
|
5
5
|
import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid';
|
|
6
6
|
import { validateProps } from '@mui/x-data-grid/internals';
|
|
7
7
|
import { useDataGridProComponent } from './useDataGridProComponent';
|
|
@@ -427,7 +427,7 @@ DataGridProRaw.propTypes = {
|
|
|
427
427
|
loading: PropTypes.bool,
|
|
428
428
|
/**
|
|
429
429
|
* Set the locale text of the Data Grid.
|
|
430
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/
|
|
430
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
431
431
|
*/
|
|
432
432
|
localeText: PropTypes.object,
|
|
433
433
|
/**
|
|
@@ -25,7 +25,9 @@ export const DATA_GRID_PRO_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PROPS_D
|
|
|
25
25
|
});
|
|
26
26
|
const defaultSlots = DATA_GRID_PRO_DEFAULT_SLOTS_COMPONENTS;
|
|
27
27
|
export const useDataGridProProps = inProps => {
|
|
28
|
-
const themedProps = useProps(
|
|
28
|
+
const themedProps = useProps(
|
|
29
|
+
// eslint-disable-next-line material-ui/mui-name-matches-component-name
|
|
30
|
+
useThemeProps({
|
|
29
31
|
props: inProps,
|
|
30
32
|
name: 'MuiDataGrid'
|
|
31
33
|
}));
|
|
@@ -37,12 +37,14 @@ function GridHeaderFilterMenuContainer(props) {
|
|
|
37
37
|
if (!rootProps.slots.headerFilterMenu) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
+
const label = apiRef.current.getLocaleText('filterPanelOperator');
|
|
41
|
+
const labelString = label ? String(label) : undefined;
|
|
40
42
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|
|
41
43
|
children: [/*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
42
44
|
id: buttonId,
|
|
43
45
|
ref: buttonRef,
|
|
44
|
-
"aria-label":
|
|
45
|
-
title:
|
|
46
|
+
"aria-label": labelString,
|
|
47
|
+
title: labelString,
|
|
46
48
|
"aria-controls": menuId,
|
|
47
49
|
"aria-expanded": open ? 'true' : undefined,
|
|
48
50
|
"aria-haspopup": "true",
|
|
@@ -181,7 +181,7 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
if (forbiddenIndexes.current[indexWithOffset] || allColumns[indexWithOffset].field === nextVisibleColumnField) {
|
|
184
|
-
// If we ended up on a visible column, or a forbidden one, we
|
|
184
|
+
// If we ended up on a visible column, or a forbidden one, we cannot do the reorder
|
|
185
185
|
canBeReordered = false;
|
|
186
186
|
}
|
|
187
187
|
}
|
package/modern/index.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-data-grid-pro v7.0.0-beta.
|
|
2
|
+
* @mui/x-data-grid-pro v7.0.0-beta.2
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import './typeOverloads';
|
|
9
|
-
|
|
9
|
+
import { LicenseInfo as LicenseInfoExport } from '@mui/x-license';
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use `@mui/x-license` package instead:
|
|
12
|
+
* @example import { LicenseInfo } from '@mui/x-license';
|
|
13
|
+
*/
|
|
14
|
+
export class LicenseInfo extends LicenseInfoExport {}
|
|
10
15
|
export * from '@mui/x-data-grid/components';
|
|
11
16
|
export * from '@mui/x-data-grid/constants';
|
|
12
17
|
export * from '@mui/x-data-grid/hooks';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcwNzQyOTYwMDAwMA==";
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.2",
|
|
4
4
|
"description": "The Pro plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
31
31
|
"url": "https://github.com/mui/mui-x.git",
|
|
32
|
-
"directory": "packages/
|
|
32
|
+
"directory": "packages/x-data-grid-pro"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.23.9",
|
|
36
36
|
"@mui/system": "^5.15.7",
|
|
37
37
|
"@mui/utils": "^5.15.7",
|
|
38
|
-
"@mui/x-data-grid": "7.0.0-beta.
|
|
39
|
-
"@mui/x-license
|
|
38
|
+
"@mui/x-data-grid": "7.0.0-beta.2",
|
|
39
|
+
"@mui/x-license": "7.0.0-beta.2",
|
|
40
40
|
"@types/format-util": "^1.0.4",
|
|
41
41
|
"clsx": "^2.1.0",
|
|
42
42
|
"prop-types": "^15.8.1",
|
package/utils/releaseInfo.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 = "MTcwNzQyOTYwMDAwMA==";
|
|
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
|