@mui/x-data-grid-premium 5.17.4 → 5.17.6

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,7 +3,67 @@
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
- ## v5.17.4
6
+ ## 5.17.6
7
+
8
+ _Oct 6, 2022_
9
+
10
+ We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
13
+ - 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Add missing `valueOptions` (#6400) @DanailH
21
+ - [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
22
+ - [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
23
+
24
+ ### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
25
+
26
+ #### Changes
27
+
28
+ - [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
29
+ - [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
30
+ - [pickers] Fix git repository location @oliviertassinari
31
+
32
+ ### Docs
33
+
34
+ - [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
35
+
36
+ ## 5.17.5
37
+
38
+ _Sep 29, 2022_
39
+
40
+ We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
41
+
42
+ - 🎁 Add theme augmentation module to DataGridPremium (#6316) @cherniavskii
43
+ - 👀 Fix blank space when changing page with dynamic row height (#6320) @m4theushw
44
+ - 📚 Improve controlled editing demo to make easier to reuse it (#6306) @cherniavskii
45
+ - 🐞 Bugfixes
46
+
47
+ ### `@mui/x-data-grid@v5.17.5` / `@mui/x-data-grid-pro@v5.17.5` / `@mui/x-data-grid-premium@v5.17.5`
48
+
49
+ #### Changes
50
+
51
+ - [DataGrid] Fix `GridPagination` props typing (#6295) @cherniavskii
52
+ - [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6303) @cherniavskii
53
+ - [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6271) @cherniavskii
54
+ - [DataGrid] Fix blank space when changing page with dynamic row height (#6320) @m4theushw
55
+ - [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6319) @m4theushw
56
+ - [DataGridPremium] Add missing `themeAugmentation` module (#6316) @cherniavskii
57
+
58
+ ### Docs
59
+
60
+ - [docs] Pass model change callbacks in controlled grid editing demos (#6306) @cherniavskii
61
+
62
+ ### Core
63
+
64
+ - [core] Reduce the amount of updated screenshots reported by Argos (#6310) @cherniavskii
65
+
66
+ ## 5.17.4
7
67
 
8
68
  _Sep 22, 2022_
9
69
 
@@ -57,6 +57,7 @@ const getLeafProperties = leafColDef => {
57
57
  headerName: (_leafColDef$headerNam = leafColDef.headerName) != null ? _leafColDef$headerNam : leafColDef.field,
58
58
  sortable: leafColDef.sortable,
59
59
  filterable: leafColDef.filterable,
60
+ valueOptions: leafColDef.valueOptions,
60
61
  filterOperators: (_leafColDef$filterOpe = leafColDef.filterOperators) == null ? void 0 : _leafColDef$filterOpe.map(operator => _extends({}, operator, {
61
62
  getApplyFilterFn: (filterItem, column) => {
62
63
  const originalFn = operator.getApplyFilterFn(filterItem, column);
@@ -87,6 +88,7 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
87
88
  const properties = {
88
89
  sortable: groupedByColDef.sortable,
89
90
  filterable: groupedByColDef.filterable,
91
+ valueOptions: groupedByColDef.valueOptions,
90
92
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
91
93
  // We only want to sort the groups of the current grouping criteria
92
94
  if (cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.4
1
+ /** @license MUI v5.17.6
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -58,6 +58,7 @@ var getLeafProperties = function getLeafProperties(leafColDef) {
58
58
  headerName: (_leafColDef$headerNam = leafColDef.headerName) != null ? _leafColDef$headerNam : leafColDef.field,
59
59
  sortable: leafColDef.sortable,
60
60
  filterable: leafColDef.filterable,
61
+ valueOptions: leafColDef.valueOptions,
61
62
  filterOperators: (_leafColDef$filterOpe = leafColDef.filterOperators) == null ? void 0 : _leafColDef$filterOpe.map(function (operator) {
62
63
  return _extends({}, operator, {
63
64
  getApplyFilterFn: function getApplyFilterFn(filterItem, column) {
@@ -90,6 +91,7 @@ var getGroupingCriteriaProperties = function getGroupingCriteriaProperties(group
90
91
  var properties = {
91
92
  sortable: groupedByColDef.sortable,
92
93
  filterable: groupedByColDef.filterable,
94
+ valueOptions: groupedByColDef.valueOptions,
93
95
  sortComparator: function sortComparator(v1, v2, cellParams1, cellParams2) {
94
96
  // We only want to sort the groups of the current grouping criteria
95
97
  if (cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.4
1
+ /** @license MUI v5.17.6
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1,3 @@
1
+ export * from './overrides';
2
+ export * from './props'; // TODO v5
3
+ // export * from './components';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY2Mzg4NDAwMDAwMA==";
3
+ var releaseInfo = "MTY2NTAwMzYwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -54,6 +54,7 @@ const getLeafProperties = leafColDef => ({
54
54
  headerName: leafColDef.headerName ?? leafColDef.field,
55
55
  sortable: leafColDef.sortable,
56
56
  filterable: leafColDef.filterable,
57
+ valueOptions: leafColDef.valueOptions,
57
58
  filterOperators: leafColDef.filterOperators?.map(operator => _extends({}, operator, {
58
59
  getApplyFilterFn: (filterItem, column) => {
59
60
  const originalFn = operator.getApplyFilterFn(filterItem, column);
@@ -81,6 +82,7 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
81
82
  const properties = {
82
83
  sortable: groupedByColDef.sortable,
83
84
  filterable: groupedByColDef.filterable,
85
+ valueOptions: groupedByColDef.valueOptions,
84
86
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
85
87
  // We only want to sort the groups of the current grouping criteria
86
88
  if (cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.4
1
+ /** @license MUI v5.17.6
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1,3 @@
1
+ export * from './overrides';
2
+ export * from './props'; // TODO v5
3
+ // export * from './components';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY2Mzg4NDAwMDAwMA==";
3
+ const releaseInfo = "MTY2NTAwMzYwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).
@@ -79,6 +79,7 @@ const getLeafProperties = leafColDef => {
79
79
  headerName: (_leafColDef$headerNam = leafColDef.headerName) != null ? _leafColDef$headerNam : leafColDef.field,
80
80
  sortable: leafColDef.sortable,
81
81
  filterable: leafColDef.filterable,
82
+ valueOptions: leafColDef.valueOptions,
82
83
  filterOperators: (_leafColDef$filterOpe = leafColDef.filterOperators) == null ? void 0 : _leafColDef$filterOpe.map(operator => (0, _extends2.default)({}, operator, {
83
84
  getApplyFilterFn: (filterItem, column) => {
84
85
  const originalFn = operator.getApplyFilterFn(filterItem, column);
@@ -109,6 +110,7 @@ const getGroupingCriteriaProperties = (groupedByColDef, applyHeaderName) => {
109
110
  const properties = {
110
111
  sortable: groupedByColDef.sortable,
111
112
  filterable: groupedByColDef.filterable,
113
+ valueOptions: groupedByColDef.valueOptions,
112
114
  sortComparator: (v1, v2, cellParams1, cellParams2) => {
113
115
  // We only want to sort the groups of the current grouping criteria
114
116
  if (cellParams1.rowNode.groupingField === groupedByColDef.field && cellParams2.rowNode.groupingField === groupedByColDef.field) {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.17.4
1
+ /** @license MUI v5.17.6
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _overrides = require("./overrides");
8
+
9
+ Object.keys(_overrides).forEach(function (key) {
10
+ if (key === "default" || key === "__esModule") return;
11
+ if (key in exports && exports[key] === _overrides[key]) return;
12
+ Object.defineProperty(exports, key, {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _overrides[key];
16
+ }
17
+ });
18
+ });
19
+
20
+ var _props = require("./props");
21
+
22
+ Object.keys(_props).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _props[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _props[key];
29
+ }
30
+ });
31
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
8
8
  var _utils = require("@mui/utils");
9
9
 
10
10
  const getReleaseInfo = () => {
11
- const releaseInfo = "MTY2Mzg4NDAwMDAwMA==";
11
+ const releaseInfo = "MTY2NTAwMzYwMDAwMA==";
12
12
 
13
13
  if (process.env.NODE_ENV !== 'production') {
14
14
  // A simple hack to set the value in the test environment (has no build step).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "5.17.4",
3
+ "version": "5.17.6",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -33,8 +33,8 @@
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.18.9",
35
35
  "@mui/utils": "^5.10.3",
36
- "@mui/x-data-grid": "5.17.4",
37
- "@mui/x-data-grid-pro": "5.17.4",
36
+ "@mui/x-data-grid": "5.17.6",
37
+ "@mui/x-data-grid-pro": "5.17.6",
38
38
  "@mui/x-license-pro": "5.17.0",
39
39
  "@types/format-util": "^1.0.2",
40
40
  "clsx": "^1.2.1",
@@ -0,0 +1,2 @@
1
+ export * from './overrides';
2
+ export * from './props';
@@ -0,0 +1,3 @@
1
+ export * from './overrides';
2
+ export * from './props'; // TODO v5
3
+ // export * from './components';
@@ -0,0 +1,8 @@
1
+ import { GridClassKey } from '@mui/x-data-grid';
2
+ export interface DataGridPremiumComponentNameToClassKey {
3
+ MuiDataGrid: GridClassKey;
4
+ }
5
+ declare module '@mui/material/styles/overrides' {
6
+ interface ComponentNameToClassKey extends DataGridPremiumComponentNameToClassKey {
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/themeAugmentation/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,19 @@
1
+ import { ComponentsOverrides, ComponentsProps, Theme } from '@mui/material/styles';
2
+ import { DataGridPremiumProps } from '../models/dataGridPremiumProps';
3
+ export interface DataGridPremiumComponentsPropsList {
4
+ MuiDataGrid: DataGridPremiumProps;
5
+ }
6
+ export interface DataGridPremiumComponents {
7
+ MuiDataGrid?: {
8
+ defaultProps?: ComponentsProps['MuiDataGrid'];
9
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDataGrid'];
10
+ };
11
+ }
12
+ declare module '@mui/material/styles' {
13
+ interface ComponentsPropsList extends DataGridPremiumComponentsPropsList {
14
+ }
15
+ }
16
+ declare module '@mui/material/styles/components' {
17
+ interface Components extends DataGridPremiumComponents {
18
+ }
19
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY2Mzg4NDAwMDAwMA==";
3
+ const releaseInfo = "MTY2NTAwMzYwMDAwMA==";
4
4
 
5
5
  if (process.env.NODE_ENV !== 'production') {
6
6
  // A simple hack to set the value in the test environment (has no build step).