@mui/x-data-grid-premium 7.0.0-beta.1 → 7.0.0-beta.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,172 @@
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.3
7
+
8
+ _Feb 16, 2024_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
13
+
14
+ <img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
15
+
16
+ - 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
17
+
18
+ <img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
19
+
20
+ - 🐞 Bugfixes
21
+
22
+ - 📚 Documentation improvements
23
+
24
+ ### Data Grid
25
+
26
+ #### Breaking changes
27
+
28
+ - The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
29
+
30
+ #### `@mui/x-data-grid@7.0.0-beta.3`
31
+
32
+ - [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
33
+ - [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
34
+ - [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
35
+
36
+ #### `@mui/x-data-grid-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
39
+
40
+ #### `@mui/x-data-grid-premium@7.0.0-beta.3` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
41
+
42
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
43
+
44
+ ### Charts / `@mui/x-charts@7.0.0-beta.3`
45
+
46
+ - [charts] Add Gauge component (#11996) @alexfauquette
47
+ - [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
48
+
49
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
50
+
51
+ - [TreeView] Remove instance existence checks (#12066) @flaviendelangle
52
+
53
+ ### Docs
54
+
55
+ - [docs] Complete charts API pages (#12038) @alexfauquette
56
+ - [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
57
+ - [docs] Fix 301 redirection to StackBlitz @oliviertassinari
58
+ - [docs] Fix Tree space to match the reset of the docs @oliviertassinari
59
+ - [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
60
+ - [docs] Fix redirection @oliviertassinari
61
+ - [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
62
+ - [docs] Removed `focused` prop from demo (#12092) @michelengelen
63
+
64
+ ### Core
65
+
66
+ - [core] Fix CodeSandbox CI template @oliviertassinari
67
+ - [core] Sort prop asc (#12033) @oliviertassinari
68
+ - [core] Bump monorepo (#12055) @alexfauquette
69
+
70
+ ## v7.0.0-beta.2
71
+
72
+ _Feb 9, 2024_
73
+
74
+ We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
75
+
76
+ - 🚀 Add slot typings on the Data Grid components (#11795) @romgrk
77
+ - 🎁 Support UTC date formatting in Charts tooltip (#11943) @shaharyar-shamshi
78
+ - 🌍 Improve Danish (da-DK) locale Data Grid (#11877) @ShahrazH
79
+ - 🐞 Bugfixes
80
+ - 📚 Documentation improvements
81
+
82
+ ### Data Grid
83
+
84
+ #### `@mui/x-data-grid@7.0.0-beta.2`
85
+
86
+ - [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
87
+ - [DataGrid] Add slot typings (#11795) @romgrk
88
+ - [DataGrid] Add support for dialogs in menu actions (#11909) @cherniavskii
89
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11609) @pcorpet
90
+ - [DataGrid] Fix incorrect computation of `lastPage` in `GridPagination` (#11958) @MBilalShafi
91
+ - [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
92
+ - [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
93
+
94
+ #### `@mui/x-data-grid-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
95
+
96
+ Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
97
+
98
+ #### `@mui/x-data-grid-premium@v7.0.0-beta.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
99
+
100
+ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
101
+
102
+ - [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
103
+ - [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
104
+
105
+ ### Date Pickers
106
+
107
+ #### `@mui/x-date-pickers@7.0.0-beta.2`
108
+
109
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
110
+ - [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
111
+
112
+ #### `@mui/x-date-pickers-pro@7.0.0-beta.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
113
+
114
+ Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
115
+
116
+ ### Charts / `@mui/x-charts@7.0.0-beta.2`
117
+
118
+ - [charts] Add `reverse` property to axes (#11899) @alexfauquette
119
+ - [charts] Allow series ids to be numbers (#11941) @alexfauquette
120
+ - [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
121
+
122
+ ### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
123
+
124
+ - [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
125
+ - [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
126
+
127
+ ### License
128
+
129
+ #### Breaking changes
130
+
131
+ - If you're using the [commercial license](https://next.mui.com/x/introduction/licensing), you need to update the import path:
132
+
133
+ ```diff
134
+ -import { LicenseInfo } from '@mui/x-license-pro';
135
+ +import { LicenseInfo } from '@mui/x-license';
136
+ ```
137
+
138
+ `@mui/x-license@7.0.0-beta.2`
139
+
140
+ - [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
141
+
142
+ ### Docs
143
+
144
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11985) @flaviendelangle
145
+ - [docs] Add missing `Charts` breaking change steps (#11971) @alexfauquette
146
+ - [docs] Fix `ChartsTooltip` typo (#11961) @thisisharsh7
147
+ - [docs] Refactor `Localization` documentation sections (#11989) @LukasTy
148
+ - [docs] Use "cannot" instead of "can't" or "can not" (#11986) @flaviendelangle
149
+ - [docs] Add quick fixes to the migration guide (#11806) @danilo-leal
150
+ - [docs] Avoid use of shorthand (#12000) @oliviertassinari
151
+ - [docs] Avoid the use of MUI Core @oliviertassinari
152
+ - [docs] Fix image size and dark mode @oliviertassinari
153
+ - [docs] Follow blank line convention with use client @oliviertassinari
154
+ - [docs] Stable layout between light and dark mode @oliviertassinari
155
+
156
+ ### Core
157
+
158
+ - [core] Add `docs:serve` script (#11935) @cherniavskii
159
+ - [core] Bump monorepo (#12001) @cherniavskii
160
+ - [core] Deprecate `LicenseInfo` re-exports (#11956) @cherniavskii
161
+ - [core] Fix `test_types` failing on the `next` branch (#11944) @cherniavskii
162
+ - [core] Fix failing `test_static` on the next branch (#11977) @cherniavskii
163
+ - [core] Flatten grid packages folder (#11946) @cherniavskii
164
+ - [core] Improve license info deprecation message (#11974) @cherniavskii
165
+ - [core] Integrate changes from Core #40842 PR (#11801) @michaldudak
166
+ - [core] Move next config to ESM (#11882) @Janpot
167
+ - [core] Add auto-message on closed issues (#11805) @michelengelen
168
+ - [core] Simplify bug reproduction (#11849) @oliviertassinari
169
+ - [core] Fix npm reference @oliviertassinari
170
+ - [core] Normalize issue template @oliviertassinari
171
+
6
172
  ## 7.0.0-beta.1
7
173
 
8
174
  _Feb 1, 2024_
@@ -2036,6 +2202,62 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
2036
2202
  - [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
2037
2203
  - [license] Correctly throw errors (#10924) @oliviertassinari
2038
2204
 
2205
+ ## v6.19.4
2206
+
2207
+ _Feb 9, 2024_
2208
+
2209
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
2210
+
2211
+ - 🌍 Improve Danish (da-DK) locale on the Data Grid (#11972) @ShahrazH
2212
+ - 🐞 Bugfixes
2213
+ - 📚 Documentation improvements
2214
+
2215
+ ### Data Grid
2216
+
2217
+ #### `@mui/x-data-grid@v6.19.4`
2218
+
2219
+ - [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
2220
+ - [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
2221
+ - [DataGrid] Fix row reorder with cell selection (#11878) @PEsteves8
2222
+ - [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
2223
+ - [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
2224
+
2225
+ #### `@mui/x-data-grid-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2226
+
2227
+ Same changes as in `@mui/x-data-grid@v6.19.4`.
2228
+
2229
+ #### `@mui/x-data-grid-premium@v6.19.4` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
2230
+
2231
+ Same changes as in `@mui/x-data-grid-pro@v6.19.4`, plus:
2232
+
2233
+ - [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
2234
+ - [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
2235
+
2236
+ ### Date Pickers
2237
+
2238
+ #### `@mui/x-date-pickers@v6.19.4`
2239
+
2240
+ - [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
2241
+
2242
+ #### `@mui/x-date-pickers-pro@v6.19.4` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
2243
+
2244
+ Same changes as in `@mui/x-date-pickers@v6.19.4`.
2245
+
2246
+ ### Charts / `@mui/x-charts@v6.19.4`
2247
+
2248
+ - [charts] Add `reverse` property to axes (#11959) @alexfauquette
2249
+ - [charts] Allow series ids to be numbers (#11960) @alexfauquette
2250
+ - [charts] Fix Proptypes error by supporting string values for axes (#11953) @alexfauquette
2251
+
2252
+ ### Docs
2253
+
2254
+ - [docs] Add a note about `AdapterDateFnsV3` on the Getting Started page (#11987) @flaviendelangle
2255
+ - [docs] Avoid the use of MUI Core @oliviertassinari
2256
+ - [docs] Fix API links (#11930) @alexfauquette
2257
+ - [docs] Fix `ChartsTooltip` typo (#11967) @thisisharsh7
2258
+ - [docs] Refactor `Localization` documentation sections (#11997) @LukasTy
2259
+ - [code] Simplify bug reproduction (#11932) @alexfauquette
2260
+
2039
2261
  ## 6.19.3
2040
2262
 
2041
2263
  _Feb 1, 2024_
@@ -7123,7 +7345,7 @@ You can find more information about the new api, including how to set those tran
7123
7345
  - [core] Add link to the security page on the `README` (#6073) @oliviertassinari
7124
7346
  - [core] Fix scroll restoration in the docs (#5938) @oliviertassinari
7125
7347
  - [core] Remove the Storybook (#6099) @flaviendelangle
7126
- - [core] Tag release as `next` in NPM (#6256) @m4theushw
7348
+ - [core] Tag release as `next` in npm (#6256) @m4theushw
7127
7349
  - [core] Update monorepo (#6180) @flaviendelangle
7128
7350
  - [core] Use the `next` branch for Prettier (#6097) @flaviendelangle
7129
7351
  - [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-pro';
3
3
  import { DataGridPremiumProps } from '../models/dataGridPremiumProps';
4
+ export type { GridPremiumSlotsComponent as GridSlots } from '../models';
4
5
  interface DataGridPremiumComponent {
5
6
  <R extends GridValidRowModel = any>(props: DataGridPremiumProps<R> & React.RefAttributes<HTMLDivElement>): React.JSX.Element;
6
7
  propTypes?: any;
@@ -13,4 +14,3 @@ interface DataGridPremiumComponent {
13
14
  * - [DataGridPremium API](https://mui.com/x/api/data-grid/data-grid-premium/)
14
15
  */
15
16
  export declare const DataGridPremium: DataGridPremiumComponent;
16
- export {};
@@ -8,7 +8,7 @@ exports.DataGridPremium = 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 _xLicensePro = require("@mui/x-license-pro");
11
+ var _xLicense = require("@mui/x-license");
12
12
  var _xDataGridPro = require("@mui/x-data-grid-pro");
13
13
  var _internals = require("@mui/x-data-grid-pro/internals");
14
14
  var _useDataGridPremiumComponent = require("./useDataGridPremiumComponent");
@@ -22,7 +22,7 @@ const dataGridPremiumPropValidators = [..._internals.propValidatorsDataGrid, ...
22
22
  const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremium(inProps, ref) {
23
23
  const props = (0, _useDataGridPremiumProps.useDataGridPremiumProps)(inProps);
24
24
  const privateApiRef = (0, _useDataGridPremiumComponent.useDataGridPremiumComponent)(props.apiRef, props);
25
- (0, _xLicensePro.useLicenseVerifier)('x-data-grid-premium', releaseInfo);
25
+ (0, _xLicense.useLicenseVerifier)('x-data-grid-premium', releaseInfo);
26
26
  (0, _internals.validateProps)(props, dataGridPremiumPropValidators);
27
27
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridContextProvider, {
28
28
  privateApiRef: privateApiRef,
@@ -34,7 +34,7 @@ const DataGridPremiumRaw = /*#__PURE__*/React.forwardRef(function DataGridPremiu
34
34
  ref: ref
35
35
  }, props.forwardedProps, {
36
36
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridHeader, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.GridBody, {
37
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicensePro.Watermark, {
37
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
38
38
  packageName: "x-data-grid-premium",
39
39
  releaseInfo: releaseInfo
40
40
  })
@@ -482,7 +482,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
482
482
  loading: _propTypes.default.bool,
483
483
  /**
484
484
  * Set the locale text of the Data Grid.
485
- * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
485
+ * 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.
486
486
  */
487
487
  localeText: _propTypes.default.object,
488
488
  /**
@@ -728,12 +728,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
728
728
  * @param {GridCallbackDetails} details Additional details for this callback.
729
729
  */
730
730
  onRowDoubleClick: _propTypes.default.func,
731
- /**
732
- * Callback fired when the row changes are committed.
733
- * @param {GridRowId} id The row id.
734
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
735
- */
736
- onRowEditCommit: _propTypes.default.func,
737
731
  /**
738
732
  * Callback fired when the row turns to edit mode.
739
733
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -35,7 +35,9 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
35
35
  });
36
36
  const defaultSlots = _dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
37
37
  const useDataGridPremiumProps = inProps => {
38
- const themedProps = (0, _internals.useProps)((0, _styles.useThemeProps)({
38
+ const themedProps = (0, _internals.useProps)(
39
+ // eslint-disable-next-line material-ui/mui-name-matches-component-name
40
+ (0, _styles.useThemeProps)({
39
41
  props: inProps,
40
42
  name: 'MuiDataGrid'
41
43
  }));
@@ -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-pro';
4
+ import { useLicenseVerifier, Watermark } from '@mui/x-license';
5
5
  import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid-pro';
6
6
  import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from '@mui/x-data-grid-pro/internals';
7
7
  import { useDataGridPremiumComponent } from './useDataGridPremiumComponent';
@@ -474,7 +474,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
474
474
  loading: PropTypes.bool,
475
475
  /**
476
476
  * Set the locale text of the Data Grid.
477
- * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
477
+ * 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.
478
478
  */
479
479
  localeText: PropTypes.object,
480
480
  /**
@@ -720,12 +720,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
720
720
  * @param {GridCallbackDetails} details Additional details for this callback.
721
721
  */
722
722
  onRowDoubleClick: PropTypes.func,
723
- /**
724
- * Callback fired when the row changes are committed.
725
- * @param {GridRowId} id The row id.
726
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
727
- */
728
- onRowEditCommit: PropTypes.func,
729
723
  /**
730
724
  * Callback fired when the row turns to edit mode.
731
725
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -27,7 +27,9 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
27
27
  });
28
28
  const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
29
29
  export const useDataGridPremiumProps = inProps => {
30
- const themedProps = useProps(useThemeProps({
30
+ const 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
  }));
@@ -235,9 +235,15 @@ function defaultPasteResolver({
235
235
  }
236
236
  });
237
237
  }
238
- function isPasteShortcut(event) {
239
- return (event.ctrlKey || event.metaKey) && event.key === 'v';
240
- }
238
+ const isPasteShortcut = event => {
239
+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'v') {
240
+ if (event.shiftKey || event.altKey) {
241
+ return false;
242
+ }
243
+ return true;
244
+ }
245
+ return false;
246
+ };
241
247
  export const useGridClipboardImport = (apiRef, props) => {
242
248
  var _apiRef$current$rootE;
243
249
  const processRowUpdate = props.processRowUpdate;
package/esm/index.js CHANGED
@@ -1,5 +1,10 @@
1
1
  import './typeOverloads';
2
- export { LicenseInfo } from '@mui/x-license-pro';
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-pro/components';
5
10
  export * from '@mui/x-data-grid/constants';
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNjczODQwMDAwMA==";
3
+ const releaseInfo = "MTcwODAyMzYwMDAwMA==";
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
@@ -243,9 +243,15 @@ function defaultPasteResolver({
243
243
  }
244
244
  });
245
245
  }
246
- function isPasteShortcut(event) {
247
- return (event.ctrlKey || event.metaKey) && event.key === 'v';
248
- }
246
+ const isPasteShortcut = event => {
247
+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'v') {
248
+ if (event.shiftKey || event.altKey) {
249
+ return false;
250
+ }
251
+ return true;
252
+ }
253
+ return false;
254
+ };
249
255
  const useGridClipboardImport = (apiRef, props) => {
250
256
  const processRowUpdate = props.processRowUpdate;
251
257
  const onProcessRowUpdateError = props.onProcessRowUpdateError;
package/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import './typeOverloads';
2
- export { LicenseInfo } from '@mui/x-license-pro';
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-pro/components';
5
11
  export * from '@mui/x-data-grid/constants';
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.0.0-beta.1
2
+ * @mui/x-data-grid-premium v7.0.0-beta.3
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
- Object.defineProperty(exports, "LicenseInfo", {
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 _xLicensePro = require("@mui/x-license-pro");
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;
@@ -252,4 +247,10 @@ Object.keys(_components3).forEach(function (key) {
252
247
  });
253
248
  var _xDataGridPro = require("@mui/x-data-grid-pro");
254
249
  var _reexports = require("./typeOverloads/reexports");
255
- var _reexports2 = require("./components/reexports");
250
+ var _reexports2 = require("./components/reexports");
251
+ /**
252
+ * @deprecated Use `@mui/x-license` package instead:
253
+ * @example import { LicenseInfo } from '@mui/x-license';
254
+ */
255
+ class LicenseInfo extends _xLicense.LicenseInfo {}
256
+ exports.LicenseInfo = LicenseInfo;
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
3
  import * as React from 'react';
4
4
  import PropTypes from 'prop-types';
5
- import { useLicenseVerifier, Watermark } from '@mui/x-license-pro';
5
+ import { useLicenseVerifier, Watermark } from '@mui/x-license';
6
6
  import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid-pro';
7
7
  import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from '@mui/x-data-grid-pro/internals';
8
8
  import { useDataGridPremiumComponent } from './useDataGridPremiumComponent';
@@ -475,7 +475,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
475
475
  loading: PropTypes.bool,
476
476
  /**
477
477
  * Set the locale text of the Data Grid.
478
- * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
478
+ * 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.
479
479
  */
480
480
  localeText: PropTypes.object,
481
481
  /**
@@ -721,12 +721,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
721
721
  * @param {GridCallbackDetails} details Additional details for this callback.
722
722
  */
723
723
  onRowDoubleClick: PropTypes.func,
724
- /**
725
- * Callback fired when the row changes are committed.
726
- * @param {GridRowId} id The row id.
727
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
728
- */
729
- onRowEditCommit: PropTypes.func,
730
724
  /**
731
725
  * Callback fired when the row turns to edit mode.
732
726
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -31,7 +31,9 @@ export var DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO_P
31
31
  });
32
32
  var defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
33
33
  export var useDataGridPremiumProps = function useDataGridPremiumProps(inProps) {
34
- var themedProps = useProps(useThemeProps({
34
+ var themedProps = useProps(
35
+ // eslint-disable-next-line material-ui/mui-name-matches-component-name
36
+ useThemeProps({
35
37
  props: inProps,
36
38
  name: 'MuiDataGrid'
37
39
  }));
@@ -280,9 +280,15 @@ function defaultPasteResolver(_ref3) {
280
280
  }
281
281
  });
282
282
  }
283
- function isPasteShortcut(event) {
284
- return (event.ctrlKey || event.metaKey) && event.key === 'v';
285
- }
283
+ var isPasteShortcut = function isPasteShortcut(event) {
284
+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'v') {
285
+ if (event.shiftKey || event.altKey) {
286
+ return false;
287
+ }
288
+ return true;
289
+ }
290
+ return false;
291
+ };
286
292
  export var useGridClipboardImport = function useGridClipboardImport(apiRef, props) {
287
293
  var _apiRef$current$rootE;
288
294
  var processRowUpdate = props.processRowUpdate;
package/legacy/index.js CHANGED
@@ -1,12 +1,31 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.0.0-beta.1
2
+ * @mui/x-data-grid-premium v7.0.0-beta.3
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
- export { LicenseInfo } from '@mui/x-license-pro';
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-pro/components';
12
31
  export * from '@mui/x-data-grid/constants';
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTcwNjczODQwMDAwMA==";
3
+ var releaseInfo = "MTcwODAyMzYwMDAwMA==";
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
@@ -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-pro';
4
+ import { useLicenseVerifier, Watermark } from '@mui/x-license';
5
5
  import { GridBody, GridFooterPlaceholder, GridHeader, GridRoot, GridContextProvider } from '@mui/x-data-grid-pro';
6
6
  import { propValidatorsDataGrid, propValidatorsDataGridPro, validateProps } from '@mui/x-data-grid-pro/internals';
7
7
  import { useDataGridPremiumComponent } from './useDataGridPremiumComponent';
@@ -474,7 +474,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
474
474
  loading: PropTypes.bool,
475
475
  /**
476
476
  * Set the locale text of the Data Grid.
477
- * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
477
+ * 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.
478
478
  */
479
479
  localeText: PropTypes.object,
480
480
  /**
@@ -720,12 +720,6 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
720
720
  * @param {GridCallbackDetails} details Additional details for this callback.
721
721
  */
722
722
  onRowDoubleClick: PropTypes.func,
723
- /**
724
- * Callback fired when the row changes are committed.
725
- * @param {GridRowId} id The row id.
726
- * @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
727
- */
728
- onRowEditCommit: PropTypes.func,
729
723
  /**
730
724
  * Callback fired when the row turns to edit mode.
731
725
  * @param {GridRowParams} params With all properties from [[GridRowParams]].
@@ -27,7 +27,9 @@ export const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = _extends({}, DATA_GRID_PRO
27
27
  });
28
28
  const defaultSlots = DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
29
29
  export const useDataGridPremiumProps = inProps => {
30
- const themedProps = useProps(useThemeProps({
30
+ const 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
  }));
@@ -234,9 +234,15 @@ function defaultPasteResolver({
234
234
  }
235
235
  });
236
236
  }
237
- function isPasteShortcut(event) {
238
- return (event.ctrlKey || event.metaKey) && event.key === 'v';
239
- }
237
+ const isPasteShortcut = event => {
238
+ if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'v') {
239
+ if (event.shiftKey || event.altKey) {
240
+ return false;
241
+ }
242
+ return true;
243
+ }
244
+ return false;
245
+ };
240
246
  export const useGridClipboardImport = (apiRef, props) => {
241
247
  const processRowUpdate = props.processRowUpdate;
242
248
  const onProcessRowUpdateError = props.onProcessRowUpdateError;
package/modern/index.js CHANGED
@@ -1,12 +1,17 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v7.0.0-beta.1
2
+ * @mui/x-data-grid-premium v7.0.0-beta.3
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
- export { LicenseInfo } from '@mui/x-license-pro';
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-pro/components';
12
17
  export * from '@mui/x-data-grid/constants';
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcwNjczODQwMDAwMA==";
3
+ const releaseInfo = "MTcwODAyMzYwMDAwMA==";
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-premium",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.3",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -29,15 +29,15 @@
29
29
  "repository": {
30
30
  "type": "git",
31
31
  "url": "https://github.com/mui/mui-x.git",
32
- "directory": "packages/grid/x-data-grid-premium"
32
+ "directory": "packages/x-data-grid-premium"
33
33
  },
34
34
  "dependencies": {
35
35
  "@babel/runtime": "^7.23.9",
36
- "@mui/system": "^5.15.7",
37
- "@mui/utils": "^5.15.7",
38
- "@mui/x-data-grid": "7.0.0-beta.1",
39
- "@mui/x-data-grid-pro": "7.0.0-beta.1",
40
- "@mui/x-license-pro": "7.0.0-beta.0",
36
+ "@mui/system": "^5.15.9",
37
+ "@mui/utils": "^5.15.9",
38
+ "@mui/x-data-grid": "7.0.0-beta.3",
39
+ "@mui/x-data-grid-pro": "7.0.0-beta.3",
40
+ "@mui/x-license": "7.0.0-beta.2",
41
41
  "@types/format-util": "^1.0.4",
42
42
  "clsx": "^2.1.0",
43
43
  "exceljs": "^4.4.0",
@@ -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 = "MTcwNjczODQwMDAwMA==";
9
+ const releaseInfo = "MTcwODAyMzYwMDAwMA==";
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