@mui/x-data-grid 5.17.19 → 5.17.20

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,30 @@
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
+ ## 5.17.20
7
+
8
+ _Jan 19, 2023_
9
+
10
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Italian (it-IT) and Swedish (sv-SE) locales
13
+ - 🐞 Bugfixes
14
+
15
+ ### `@mui/x-data-grid@v5.17.20` / `@mui/x-data-grid-pro@v5.17.20` / `@mui/x-data-grid-premium@v5.17.20`
16
+
17
+ #### Changes
18
+
19
+ - [DataGrid] Fix flickering on grid scroll (#7609) @cherniavskii
20
+ - [DataGrid] Remove tag limit from `isAnyOf` operator input (#7616) @m4theushw
21
+ - [l10n] Improve Swedish (sv-SE) locale (#7463) @MaanTyringe
22
+
23
+ ### `@mui/x-date-pickers@v5.0.15` / `@mui/x-date-pickers-pro@v5.0.15`
24
+
25
+ #### Changes
26
+
27
+ - [pickers] Ensure `key` is passed without object spreading (#7584) @alexfauquette
28
+ - [l10n] Improve Italian (it-IT) locale (#7547) @marikadeveloper
29
+
6
30
  ## 5.17.19
7
31
 
8
32
  _Jan 16, 2023_
@@ -2,7 +2,7 @@
2
2
  import { AutocompleteProps } from '@mui/material/Autocomplete';
3
3
  import { GridFilterInputValueProps } from './GridFilterInputValueProps';
4
4
  import type { ValueOptions } from '../../../models/colDef/gridColDef';
5
- export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | 'limitTags' | 'multiple' | 'color'>, GridFilterInputValueProps {
5
+ export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | 'multiple' | 'color'>, GridFilterInputValueProps {
6
6
  type?: 'singleSelect';
7
7
  }
8
8
  declare function GridFilterInputMultipleSingleSelect(props: GridFilterInputMultipleSingleSelectProps): JSX.Element;
@@ -105,7 +105,6 @@ function GridFilterInputMultipleSingleSelect(props) {
105
105
  }, [applyValue, item]);
106
106
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
107
107
  multiple: true,
108
- limitTags: 1,
109
108
  options: resolvedValueOptions,
110
109
  isOptionEqualToValue: isOptionEqualToValue,
111
110
  filterOptions: filter,
@@ -49,7 +49,6 @@ function GridFilterInputMultipleValue(props) {
49
49
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
50
50
  multiple: true,
51
51
  freeSolo: true,
52
- limitTags: 1,
53
52
  options: [],
54
53
  filterOptions: (options, params) => {
55
54
  const {
@@ -217,13 +217,9 @@ export const useGridVirtualScroller = props => {
217
217
  });
218
218
  }
219
219
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
220
- React.useLayoutEffect(() => {
221
- if (renderContext) {
222
- updateRenderZonePosition(renderContext);
223
- }
224
- }, [renderContext, updateRenderZonePosition]);
225
220
  const updateRenderContext = React.useCallback(nextRenderContext => {
226
221
  setRenderContext(nextRenderContext);
222
+ updateRenderZonePosition(nextRenderContext);
227
223
  const [firstRowToRender, lastRowToRender] = getRenderableIndexes({
228
224
  firstIndex: nextRenderContext.firstRowIndex,
229
225
  lastIndex: nextRenderContext.lastRowIndex,
@@ -236,7 +232,7 @@ export const useGridVirtualScroller = props => {
236
232
  lastRowToRender
237
233
  });
238
234
  prevRenderContext.current = nextRenderContext;
239
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
235
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
240
236
  useEnhancedEffect(() => {
241
237
  if (containerDimensions.width == null) {
242
238
  return;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.19
1
+ /** @license MUI X v5.17.20
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.
@@ -115,7 +115,6 @@ function GridFilterInputMultipleSingleSelect(props) {
115
115
  }, [applyValue, item]);
116
116
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
117
117
  multiple: true,
118
- limitTags: 1,
119
118
  options: resolvedValueOptions,
120
119
  isOptionEqualToValue: isOptionEqualToValue,
121
120
  filterOptions: filter,
@@ -54,7 +54,6 @@ function GridFilterInputMultipleValue(props) {
54
54
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
55
55
  multiple: true,
56
56
  freeSolo: true,
57
- limitTags: 1,
58
57
  options: [],
59
58
  filterOptions: function filterOptions(options, params) {
60
59
  var inputValue = params.inputValue;
@@ -240,13 +240,9 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
240
240
  });
241
241
  }
242
242
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
243
- React.useLayoutEffect(function () {
244
- if (renderContext) {
245
- updateRenderZonePosition(renderContext);
246
- }
247
- }, [renderContext, updateRenderZonePosition]);
248
243
  var updateRenderContext = React.useCallback(function (nextRenderContext) {
249
244
  setRenderContext(nextRenderContext);
245
+ updateRenderZonePosition(nextRenderContext);
250
246
 
251
247
  var _getRenderableIndexes7 = getRenderableIndexes({
252
248
  firstIndex: nextRenderContext.firstRowIndex,
@@ -264,7 +260,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
264
260
  lastRowToRender: lastRowToRender
265
261
  });
266
262
  prevRenderContext.current = nextRenderContext;
267
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
263
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
268
264
  useEnhancedEffect(function () {
269
265
  if (containerDimensions.width == null) {
270
266
  return;
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.19
1
+ /** @license MUI X v5.17.20
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.
@@ -105,7 +105,7 @@ var svSEGrid = {
105
105
  // Column pinning text
106
106
  pinToLeft: 'Fäst till vänster',
107
107
  pinToRight: 'Fäst till höger',
108
- unpin: 'Ta bort fäste',
108
+ unpin: 'Ta bort fästning',
109
109
  // Tree Data
110
110
  treeDataGroupingHeaderName: 'Grupp',
111
111
  treeDataExpand: 'visa underordnade',
@@ -119,17 +119,17 @@ var svSEGrid = {
119
119
  return "Sluta gruppera efter ".concat(name);
120
120
  },
121
121
  // Master/detail
122
- // detailPanelToggle: 'Detail panel toggle',
122
+ detailPanelToggle: 'Växla detaljpanel',
123
123
  expandDetailPanel: 'Expandera',
124
124
  collapseDetailPanel: 'Kollapsa',
125
125
  // Row reordering text
126
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
127
- // aggregationMenuItemHeader: 'Aggregation',
128
- // aggregationFunctionLabelSum: 'sum',
129
- // aggregationFunctionLabelAvg: 'avg',
130
- // aggregationFunctionLabelMin: 'min',
131
- // aggregationFunctionLabelMax: 'max',
132
- // aggregationFunctionLabelSize: 'size',
133
-
126
+ rowReorderingHeaderName: 'Ordna om rader',
127
+ // Aggregation
128
+ aggregationMenuItemHeader: 'Aggregering',
129
+ aggregationFunctionLabelSum: 'sum',
130
+ aggregationFunctionLabelAvg: 'medel',
131
+ aggregationFunctionLabelMin: 'min',
132
+ aggregationFunctionLabelMax: 'max',
133
+ aggregationFunctionLabelSize: 'antal'
134
134
  };
135
135
  export var svSE = getGridLocalization(svSEGrid, svSECore);
package/locales/svSE.js CHANGED
@@ -97,7 +97,7 @@ const svSEGrid = {
97
97
  // Column pinning text
98
98
  pinToLeft: 'Fäst till vänster',
99
99
  pinToRight: 'Fäst till höger',
100
- unpin: 'Ta bort fäste',
100
+ unpin: 'Ta bort fästning',
101
101
  // Tree Data
102
102
  treeDataGroupingHeaderName: 'Grupp',
103
103
  treeDataExpand: 'visa underordnade',
@@ -107,17 +107,17 @@ const svSEGrid = {
107
107
  groupColumn: name => `Gruppera efter ${name}`,
108
108
  unGroupColumn: name => `Sluta gruppera efter ${name}`,
109
109
  // Master/detail
110
- // detailPanelToggle: 'Detail panel toggle',
110
+ detailPanelToggle: 'Växla detaljpanel',
111
111
  expandDetailPanel: 'Expandera',
112
112
  collapseDetailPanel: 'Kollapsa',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
115
- // aggregationMenuItemHeader: 'Aggregation',
116
- // aggregationFunctionLabelSum: 'sum',
117
- // aggregationFunctionLabelAvg: 'avg',
118
- // aggregationFunctionLabelMin: 'min',
119
- // aggregationFunctionLabelMax: 'max',
120
- // aggregationFunctionLabelSize: 'size',
121
-
114
+ rowReorderingHeaderName: 'Ordna om rader',
115
+ // Aggregation
116
+ aggregationMenuItemHeader: 'Aggregering',
117
+ aggregationFunctionLabelSum: 'sum',
118
+ aggregationFunctionLabelAvg: 'medel',
119
+ aggregationFunctionLabelMin: 'min',
120
+ aggregationFunctionLabelMax: 'max',
121
+ aggregationFunctionLabelSize: 'antal'
122
122
  };
123
123
  export const svSE = getGridLocalization(svSEGrid, svSECore);
@@ -105,7 +105,6 @@ function GridFilterInputMultipleSingleSelect(props) {
105
105
  }, [applyValue, item]);
106
106
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
107
107
  multiple: true,
108
- limitTags: 1,
109
108
  options: resolvedValueOptions,
110
109
  isOptionEqualToValue: isOptionEqualToValue,
111
110
  filterOptions: filter,
@@ -47,7 +47,6 @@ function GridFilterInputMultipleValue(props) {
47
47
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
48
48
  multiple: true,
49
49
  freeSolo: true,
50
- limitTags: 1,
51
50
  options: [],
52
51
  filterOptions: (options, params) => {
53
52
  const {
@@ -213,13 +213,9 @@ export const useGridVirtualScroller = props => {
213
213
  });
214
214
  }
215
215
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
216
- React.useLayoutEffect(() => {
217
- if (renderContext) {
218
- updateRenderZonePosition(renderContext);
219
- }
220
- }, [renderContext, updateRenderZonePosition]);
221
216
  const updateRenderContext = React.useCallback(nextRenderContext => {
222
217
  setRenderContext(nextRenderContext);
218
+ updateRenderZonePosition(nextRenderContext);
223
219
  const [firstRowToRender, lastRowToRender] = getRenderableIndexes({
224
220
  firstIndex: nextRenderContext.firstRowIndex,
225
221
  lastIndex: nextRenderContext.lastRowIndex,
@@ -232,7 +228,7 @@ export const useGridVirtualScroller = props => {
232
228
  lastRowToRender
233
229
  });
234
230
  prevRenderContext.current = nextRenderContext;
235
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
231
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
236
232
  useEnhancedEffect(() => {
237
233
  if (containerDimensions.width == null) {
238
234
  return;
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.19
1
+ /** @license MUI X v5.17.20
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.
@@ -97,7 +97,7 @@ const svSEGrid = {
97
97
  // Column pinning text
98
98
  pinToLeft: 'Fäst till vänster',
99
99
  pinToRight: 'Fäst till höger',
100
- unpin: 'Ta bort fäste',
100
+ unpin: 'Ta bort fästning',
101
101
  // Tree Data
102
102
  treeDataGroupingHeaderName: 'Grupp',
103
103
  treeDataExpand: 'visa underordnade',
@@ -107,17 +107,17 @@ const svSEGrid = {
107
107
  groupColumn: name => `Gruppera efter ${name}`,
108
108
  unGroupColumn: name => `Sluta gruppera efter ${name}`,
109
109
  // Master/detail
110
- // detailPanelToggle: 'Detail panel toggle',
110
+ detailPanelToggle: 'Växla detaljpanel',
111
111
  expandDetailPanel: 'Expandera',
112
112
  collapseDetailPanel: 'Kollapsa',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
115
- // aggregationMenuItemHeader: 'Aggregation',
116
- // aggregationFunctionLabelSum: 'sum',
117
- // aggregationFunctionLabelAvg: 'avg',
118
- // aggregationFunctionLabelMin: 'min',
119
- // aggregationFunctionLabelMax: 'max',
120
- // aggregationFunctionLabelSize: 'size',
121
-
114
+ rowReorderingHeaderName: 'Ordna om rader',
115
+ // Aggregation
116
+ aggregationMenuItemHeader: 'Aggregering',
117
+ aggregationFunctionLabelSum: 'sum',
118
+ aggregationFunctionLabelAvg: 'medel',
119
+ aggregationFunctionLabelMin: 'min',
120
+ aggregationFunctionLabelMax: 'max',
121
+ aggregationFunctionLabelSize: 'antal'
122
122
  };
123
123
  export const svSE = getGridLocalization(svSEGrid, svSECore);
@@ -127,7 +127,6 @@ function GridFilterInputMultipleSingleSelect(props) {
127
127
  }, [applyValue, item]);
128
128
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, (0, _extends2.default)({
129
129
  multiple: true,
130
- limitTags: 1,
131
130
  options: resolvedValueOptions,
132
131
  isOptionEqualToValue: isOptionEqualToValue,
133
132
  filterOptions: filter,
@@ -70,7 +70,6 @@ function GridFilterInputMultipleValue(props) {
70
70
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, (0, _extends2.default)({
71
71
  multiple: true,
72
72
  freeSolo: true,
73
- limitTags: 1,
74
73
  options: [],
75
74
  filterOptions: (options, params) => {
76
75
  const {
@@ -254,13 +254,9 @@ const useGridVirtualScroller = props => {
254
254
  });
255
255
  }
256
256
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
257
- React.useLayoutEffect(() => {
258
- if (renderContext) {
259
- updateRenderZonePosition(renderContext);
260
- }
261
- }, [renderContext, updateRenderZonePosition]);
262
257
  const updateRenderContext = React.useCallback(nextRenderContext => {
263
258
  setRenderContext(nextRenderContext);
259
+ updateRenderZonePosition(nextRenderContext);
264
260
  const [firstRowToRender, lastRowToRender] = getRenderableIndexes({
265
261
  firstIndex: nextRenderContext.firstRowIndex,
266
262
  lastIndex: nextRenderContext.lastRowIndex,
@@ -273,7 +269,7 @@ const useGridVirtualScroller = props => {
273
269
  lastRowToRender
274
270
  });
275
271
  prevRenderContext.current = nextRenderContext;
276
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
272
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
277
273
  (0, _utils.unstable_useEnhancedEffect)(() => {
278
274
  if (containerDimensions.width == null) {
279
275
  return;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.19
1
+ /** @license MUI X v5.17.20
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.
@@ -106,7 +106,7 @@ const svSEGrid = {
106
106
  // Column pinning text
107
107
  pinToLeft: 'Fäst till vänster',
108
108
  pinToRight: 'Fäst till höger',
109
- unpin: 'Ta bort fäste',
109
+ unpin: 'Ta bort fästning',
110
110
  // Tree Data
111
111
  treeDataGroupingHeaderName: 'Grupp',
112
112
  treeDataExpand: 'visa underordnade',
@@ -116,18 +116,18 @@ const svSEGrid = {
116
116
  groupColumn: name => `Gruppera efter ${name}`,
117
117
  unGroupColumn: name => `Sluta gruppera efter ${name}`,
118
118
  // Master/detail
119
- // detailPanelToggle: 'Detail panel toggle',
119
+ detailPanelToggle: 'Växla detaljpanel',
120
120
  expandDetailPanel: 'Expandera',
121
121
  collapseDetailPanel: 'Kollapsa',
122
122
  // Row reordering text
123
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
124
- // aggregationMenuItemHeader: 'Aggregation',
125
- // aggregationFunctionLabelSum: 'sum',
126
- // aggregationFunctionLabelAvg: 'avg',
127
- // aggregationFunctionLabelMin: 'min',
128
- // aggregationFunctionLabelMax: 'max',
129
- // aggregationFunctionLabelSize: 'size',
130
-
123
+ rowReorderingHeaderName: 'Ordna om rader',
124
+ // Aggregation
125
+ aggregationMenuItemHeader: 'Aggregering',
126
+ aggregationFunctionLabelSum: 'sum',
127
+ aggregationFunctionLabelAvg: 'medel',
128
+ aggregationFunctionLabelMin: 'min',
129
+ aggregationFunctionLabelMax: 'max',
130
+ aggregationFunctionLabelSize: 'antal'
131
131
  };
132
132
  const svSE = (0, _getGridLocalization.getGridLocalization)(svSEGrid, _locale.svSE);
133
133
  exports.svSE = svSE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "5.17.19",
3
+ "version": "5.17.20",
4
4
  "description": "The community edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",