@mui/x-data-grid 5.12.2 → 5.13.1

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.
Files changed (177) hide show
  1. package/CHANGELOG.md +160 -6
  2. package/DataGrid/DataGrid.js +4 -4
  3. package/colDef/gridDateOperators.js +4 -2
  4. package/colDef/gridNumericOperators.js +4 -2
  5. package/colDef/gridStringOperators.d.ts +1 -1
  6. package/colDef/gridStringOperators.js +15 -8
  7. package/components/GridRow.js +1 -1
  8. package/components/cell/GridActionsCellItem.d.ts +2 -2
  9. package/components/cell/GridBooleanCell.js +4 -3
  10. package/components/cell/GridEditBooleanCell.js +4 -3
  11. package/components/cell/GridEditDateCell.js +4 -3
  12. package/components/cell/GridEditInputCell.js +4 -3
  13. package/components/cell/GridEditSingleSelectCell.js +9 -7
  14. package/components/panel/GridColumnsPanel.js +1 -1
  15. package/components/panel/GridPanel.d.ts +1 -1
  16. package/components/panel/filterPanel/GridFilterForm.js +11 -4
  17. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  18. package/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  19. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +5 -9
  20. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +42 -19
  21. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -7
  22. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +32 -14
  23. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  24. package/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  25. package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +6 -3
  26. package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  27. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  28. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  29. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  30. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  31. package/hooks/features/dimensions/useGridDimensions.js +28 -15
  32. package/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  33. package/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  34. package/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  35. package/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  36. package/hooks/features/filter/gridFilterUtils.js +8 -5
  37. package/hooks/features/filter/useGridFilter.js +19 -1
  38. package/hooks/features/rows/useGridRows.js +16 -3
  39. package/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  40. package/hooks/features/virtualization/useGridVirtualScroller.js +14 -3
  41. package/hooks/utils/useGridApiContext.js +1 -1
  42. package/hooks/utils/useGridRootProps.js +1 -1
  43. package/index.js +1 -1
  44. package/legacy/DataGrid/DataGrid.js +4 -4
  45. package/legacy/colDef/gridDateOperators.js +4 -2
  46. package/legacy/colDef/gridNumericOperators.js +4 -2
  47. package/legacy/colDef/gridStringOperators.js +17 -7
  48. package/legacy/components/GridRow.js +1 -1
  49. package/legacy/components/cell/GridBooleanCell.js +3 -1
  50. package/legacy/components/cell/GridEditBooleanCell.js +4 -2
  51. package/legacy/components/cell/GridEditDateCell.js +4 -2
  52. package/legacy/components/cell/GridEditInputCell.js +4 -2
  53. package/legacy/components/cell/GridEditSingleSelectCell.js +9 -7
  54. package/legacy/components/panel/GridColumnsPanel.js +3 -1
  55. package/legacy/components/panel/filterPanel/GridFilterForm.js +9 -4
  56. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  57. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  58. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +34 -12
  59. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +24 -7
  60. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  61. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  62. package/legacy/hooks/features/dimensions/useGridDimensions.js +27 -15
  63. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  64. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +16 -8
  65. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  66. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +22 -14
  67. package/legacy/hooks/features/filter/gridFilterUtils.js +8 -5
  68. package/legacy/hooks/features/filter/useGridFilter.js +19 -1
  69. package/legacy/hooks/features/rows/useGridRows.js +18 -3
  70. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  71. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +19 -8
  72. package/legacy/hooks/utils/useGridApiContext.js +1 -1
  73. package/legacy/hooks/utils/useGridRootProps.js +1 -1
  74. package/legacy/index.js +1 -1
  75. package/legacy/locales/deDE.js +4 -4
  76. package/legacy/locales/frFR.js +11 -11
  77. package/legacy/locales/index.js +3 -0
  78. package/legacy/locales/nlNL.js +15 -15
  79. package/legacy/locales/ptBR.js +11 -11
  80. package/legacy/locales/roRO.js +128 -0
  81. package/legacy/locales/skSK.js +16 -16
  82. package/legacy/locales/svSE.js +128 -0
  83. package/legacy/utils/keyboardUtils.js +4 -3
  84. package/locales/deDE.js +4 -4
  85. package/locales/frFR.js +11 -11
  86. package/locales/index.d.ts +3 -0
  87. package/locales/index.js +3 -0
  88. package/locales/nlNL.js +15 -15
  89. package/locales/ptBR.js +11 -11
  90. package/locales/roRO.d.ts +2 -0
  91. package/locales/roRO.js +116 -0
  92. package/locales/skSK.js +16 -16
  93. package/locales/svSE.d.ts +2 -0
  94. package/locales/svSE.js +116 -0
  95. package/models/gridFilterOperator.d.ts +6 -0
  96. package/modern/DataGrid/DataGrid.js +4 -4
  97. package/modern/colDef/gridDateOperators.js +4 -2
  98. package/modern/colDef/gridNumericOperators.js +4 -2
  99. package/modern/colDef/gridStringOperators.js +15 -8
  100. package/modern/components/GridRow.js +1 -1
  101. package/modern/components/cell/GridBooleanCell.js +4 -3
  102. package/modern/components/cell/GridEditBooleanCell.js +4 -3
  103. package/modern/components/cell/GridEditDateCell.js +4 -3
  104. package/modern/components/cell/GridEditInputCell.js +4 -3
  105. package/modern/components/cell/GridEditSingleSelectCell.js +9 -7
  106. package/modern/components/panel/GridColumnsPanel.js +1 -1
  107. package/modern/components/panel/filterPanel/GridFilterForm.js +11 -4
  108. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  109. package/modern/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  110. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +32 -13
  111. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +22 -8
  112. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  113. package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  114. package/modern/hooks/features/dimensions/useGridDimensions.js +28 -15
  115. package/modern/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  116. package/modern/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  117. package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  118. package/modern/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  119. package/modern/hooks/features/filter/gridFilterUtils.js +8 -5
  120. package/modern/hooks/features/filter/useGridFilter.js +17 -1
  121. package/modern/hooks/features/rows/useGridRows.js +16 -3
  122. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  123. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +10 -3
  124. package/modern/hooks/utils/useGridApiContext.js +1 -1
  125. package/modern/hooks/utils/useGridRootProps.js +1 -1
  126. package/modern/index.js +1 -1
  127. package/modern/locales/deDE.js +4 -4
  128. package/modern/locales/frFR.js +11 -11
  129. package/modern/locales/index.js +3 -0
  130. package/modern/locales/nlNL.js +15 -15
  131. package/modern/locales/ptBR.js +11 -11
  132. package/modern/locales/roRO.js +116 -0
  133. package/modern/locales/skSK.js +16 -16
  134. package/modern/locales/svSE.js +116 -0
  135. package/modern/utils/keyboardUtils.js +4 -3
  136. package/node/DataGrid/DataGrid.js +4 -4
  137. package/node/colDef/gridDateOperators.js +4 -2
  138. package/node/colDef/gridNumericOperators.js +4 -2
  139. package/node/colDef/gridStringOperators.js +15 -8
  140. package/node/components/GridRow.js +1 -1
  141. package/node/components/cell/GridBooleanCell.js +5 -3
  142. package/node/components/cell/GridEditBooleanCell.js +5 -3
  143. package/node/components/cell/GridEditDateCell.js +5 -3
  144. package/node/components/cell/GridEditInputCell.js +5 -3
  145. package/node/components/cell/GridEditSingleSelectCell.js +10 -7
  146. package/node/components/panel/GridColumnsPanel.js +1 -1
  147. package/node/components/panel/filterPanel/GridFilterForm.js +9 -4
  148. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  149. package/node/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  150. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +43 -20
  151. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +33 -15
  152. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  153. package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  154. package/node/hooks/features/dimensions/useGridDimensions.js +28 -15
  155. package/node/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  156. package/node/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  157. package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  158. package/node/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  159. package/node/hooks/features/filter/gridFilterUtils.js +7 -4
  160. package/node/hooks/features/filter/useGridFilter.js +19 -1
  161. package/node/hooks/features/rows/useGridRows.js +16 -3
  162. package/node/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  163. package/node/hooks/features/virtualization/useGridVirtualScroller.js +14 -3
  164. package/node/hooks/utils/useGridApiContext.js +1 -1
  165. package/node/hooks/utils/useGridRootProps.js +1 -1
  166. package/node/index.js +1 -1
  167. package/node/locales/deDE.js +4 -4
  168. package/node/locales/frFR.js +11 -11
  169. package/node/locales/index.js +39 -0
  170. package/node/locales/nlNL.js +15 -15
  171. package/node/locales/ptBR.js +11 -11
  172. package/node/locales/roRO.js +126 -0
  173. package/node/locales/skSK.js +16 -16
  174. package/node/locales/svSE.js +126 -0
  175. package/node/utils/keyboardUtils.js +4 -3
  176. package/package.json +4 -4
  177. package/utils/keyboardUtils.js +4 -3
@@ -30,8 +30,9 @@ const cleanFilterItem = (item, apiRef) => {
30
30
  }
31
31
 
32
32
  if (cleanItem.operatorValue == null) {
33
- // we select a default operator
34
- const column = apiRef.current.getColumn(cleanItem.columnField);
33
+ // Selects a default operator
34
+ // We don't use `apiRef.current.getColumn` because it is not ready during state initialization
35
+ const column = (0, _columns.gridColumnLookupSelector)(apiRef)[cleanItem.columnField];
35
36
  cleanItem.operatorValue = column && column.filterOperators[0].value;
36
37
  }
37
38
 
@@ -208,14 +209,16 @@ const buildAggregatedQuickFilterApplier = (filterModel, apiRef) => {
208
209
  const sanitizedQuickFilterValues = quickFilterValues.filter((value, index) => Object.keys(appliersPerColumnField).some(field => appliersPerColumnField[field][index] != null));
209
210
  return (rowId, shouldApplyFilter) => {
210
211
  const usedCellParams = {};
212
+ const columnsFieldsToFilter = [];
211
213
  Object.keys(appliersPerColumnField).forEach(columnField => {
212
214
  if (!shouldApplyFilter || shouldApplyFilter(columnField)) {
213
215
  usedCellParams[columnField] = apiRef.current.getCellParams(rowId, columnField);
216
+ columnsFieldsToFilter.push(columnField);
214
217
  }
215
218
  }); // Return `false` as soon as we have a quick filter value that does not match any column
216
219
 
217
220
  if (quickFilterLogicOperator === _models.GridLinkOperator.And) {
218
- return sanitizedQuickFilterValues.every((value, index) => Object.keys(appliersPerColumnField).some(field => {
221
+ return sanitizedQuickFilterValues.every((value, index) => columnsFieldsToFilter.some(field => {
219
222
  var _appliersPerColumnFie, _appliersPerColumnFie2;
220
223
 
221
224
  if (appliersPerColumnField[field][index] == null) {
@@ -227,7 +230,7 @@ const buildAggregatedQuickFilterApplier = (filterModel, apiRef) => {
227
230
  } // Return `true` as soon as we have have a quick filter value that match any column
228
231
 
229
232
 
230
- return sanitizedQuickFilterValues.some((value, index) => Object.keys(appliersPerColumnField).some(field => {
233
+ return sanitizedQuickFilterValues.some((value, index) => columnsFieldsToFilter.some(field => {
231
234
  var _appliersPerColumnFie3, _appliersPerColumnFie4;
232
235
 
233
236
  if (appliersPerColumnField[field][index] == null) {
@@ -146,7 +146,25 @@ const useGridFilter = (apiRef, props) => {
146
146
 
147
147
  if (targetColumnField) {
148
148
  const filterModel = (0, _gridFilterSelector.gridFilterModelSelector)(apiRef);
149
- const filterItemsWithValue = filterModel.items.filter(item => item.value !== undefined);
149
+ const filterItemsWithValue = filterModel.items.filter(item => {
150
+ var _column$filterOperato;
151
+
152
+ if (item.value !== undefined) {
153
+ return true;
154
+ }
155
+
156
+ const column = apiRef.current.getColumn(item.columnField);
157
+ const filterOperator = (_column$filterOperato = column.filterOperators) == null ? void 0 : _column$filterOperato.find(operator => operator.value === item.operatorValue);
158
+ const requiresFilterValue = typeof (filterOperator == null ? void 0 : filterOperator.requiresFilterValue) === 'undefined' ? true : filterOperator == null ? void 0 : filterOperator.requiresFilterValue; // Operators like `isEmpty` don't have and don't require `item.value`.
159
+ // So we don't want to remove them from the filter model if `item.value === undefined`.
160
+ // See https://github.com/mui/mui-x/issues/5402
161
+
162
+ if (requiresFilterValue) {
163
+ return false;
164
+ }
165
+
166
+ return true;
167
+ });
150
168
  let newFilterItems;
151
169
  const filterItemOnTarget = filterItemsWithValue.find(item => item.columnField === targetColumnField);
152
170
 
@@ -124,7 +124,7 @@ const useGridRows = (apiRef, props) => {
124
124
  const updateRows = React.useCallback(updates => {
125
125
  if (props.signature === _useGridApiEventHandler.GridSignature.DataGrid && updates.length > 1) {
126
126
  // TODO: Add test with direct call to `apiRef.current.updateRows` in DataGrid after enabling the `apiRef` on the free plan.
127
- throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.", 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
127
+ throw new Error(["MUI: You can't update several rows at once in `apiRef.current.updateRows` on the DataGrid.", 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
128
128
  } // we remove duplicate updates. A server can batch updates, and send several updates for the same row in one fn call.
129
129
 
130
130
 
@@ -349,10 +349,23 @@ const useGridRows = (apiRef, props) => {
349
349
  if (isFirstRender.current) {
350
350
  isFirstRender.current = false;
351
351
  return;
352
- } // The new rows have already been applied (most likely in the `'rowGroupsPreProcessingChange'` listener)
352
+ }
353
+
354
+ const areNewRowsAlreadyInState = apiRef.current.unstable_caches.rows.rowsBeforePartialUpdates === props.rows;
355
+ const isNewLoadingAlreadyInState = apiRef.current.unstable_caches.rows.loadingPropBeforePartialUpdates === props.loading; // The new rows have already been applied (most likely in the `'rowGroupsPreProcessingChange'` listener)
353
356
 
357
+ if (areNewRowsAlreadyInState) {
358
+ // If the loading prop has changed, we need to update its value in the state because it won't be done by `throttledRowsChange`
359
+ if (!isNewLoadingAlreadyInState) {
360
+ apiRef.current.setState(state => (0, _extends2.default)({}, state, {
361
+ rows: (0, _extends2.default)({}, state.rows, {
362
+ loading: props.loading
363
+ })
364
+ }));
365
+ apiRef.current.unstable_caches.rows.loadingPropBeforePartialUpdates = props.loading;
366
+ apiRef.current.forceUpdate();
367
+ }
354
368
 
355
- if (apiRef.current.unstable_caches.rows.rowsBeforePartialUpdates === props.rows && apiRef.current.unstable_caches.rows.loadingPropBeforePartialUpdates === props.loading) {
356
369
  return;
357
370
  }
358
371
 
@@ -18,7 +18,7 @@ const flatRowTreeCreationMethod = ({
18
18
  for (let i = 0; i < ids.length; i += 1) {
19
19
  const rowId = ids[i];
20
20
 
21
- if (previousTree && previousTree[rowId]) {
21
+ if (previousTree && previousTree[rowId] && previousTree[rowId].depth === 0 && previousTree[rowId].parent == null) {
22
22
  tree[rowId] = previousTree[rowId];
23
23
  } else {
24
24
  tree[rowId] = {
@@ -91,6 +91,8 @@ const getRenderableIndexes = ({
91
91
  exports.getRenderableIndexes = getRenderableIndexes;
92
92
 
93
93
  const useGridVirtualScroller = props => {
94
+ var _currentPage$range3, _currentPage$range4;
95
+
94
96
  const apiRef = (0, _useGridApiContext.useGridApiContext)();
95
97
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
96
98
  const visibleColumns = (0, _useGridSelector.useGridSelector)(apiRef, _gridColumnsSelector.gridVisibleColumnDefinitionsSelector);
@@ -123,8 +125,17 @@ const useGridVirtualScroller = props => {
123
125
  const [containerWidth, setContainerWidth] = React.useState(null);
124
126
  const prevTotalWidth = React.useRef(columnsTotalWidth);
125
127
  const getNearestIndexToRender = React.useCallback(offset => {
126
- const lastMeasuredIndex = Math.max(0, apiRef.current.unstable_getLastMeasuredRowIndex());
127
- const allRowsMeasured = lastMeasuredIndex === Infinity;
128
+ var _currentPage$range, _currentPage$range2;
129
+
130
+ const lastMeasuredIndexRelativeToAllRows = apiRef.current.unstable_getLastMeasuredRowIndex();
131
+ const lastMeasuredIndexRelativeToCurrentPage = lastMeasuredIndexRelativeToAllRows - (((_currentPage$range = currentPage.range) == null ? void 0 : _currentPage$range.firstRowIndex) || 0);
132
+ const lastMeasuredIndex = Math.max(0, lastMeasuredIndexRelativeToCurrentPage);
133
+ let allRowsMeasured = lastMeasuredIndex === Infinity;
134
+
135
+ if ((_currentPage$range2 = currentPage.range) != null && _currentPage$range2.lastRowIndex && !allRowsMeasured) {
136
+ // Check if all rows in this page are already measured
137
+ allRowsMeasured = lastMeasuredIndex >= currentPage.range.lastRowIndex;
138
+ }
128
139
 
129
140
  if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndex] >= offset) {
130
141
  // If all rows were measured (when no row has "auto" as height) or all rows before the offset
@@ -137,7 +148,7 @@ const useGridVirtualScroller = props => {
137
148
 
138
149
 
139
150
  return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndex);
140
- }, [apiRef, rowsMeta.positions]);
151
+ }, [apiRef, (_currentPage$range3 = currentPage.range) == null ? void 0 : _currentPage$range3.firstRowIndex, (_currentPage$range4 = currentPage.range) == null ? void 0 : _currentPage$range4.lastRowIndex, rowsMeta.positions]);
141
152
  const computeRenderContext = React.useCallback(() => {
142
153
  if (disableVirtualization) {
143
154
  return {
@@ -17,7 +17,7 @@ function useGridApiContext() {
17
17
  const apiRef = React.useContext(_GridApiContext.GridApiContext);
18
18
 
19
19
  if (apiRef === undefined) {
20
- throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
20
+ throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
21
21
  }
22
22
 
23
23
  return apiRef;
@@ -17,7 +17,7 @@ const useGridRootProps = () => {
17
17
  const contextValue = React.useContext(_GridRootPropsContext.GridRootPropsContext);
18
18
 
19
19
  if (!contextValue) {
20
- throw new Error('MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.');
20
+ throw new Error('MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
21
21
  }
22
22
 
23
23
  return contextValue;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.2
1
+ /** @license MUI v5.13.1
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.
@@ -30,9 +30,9 @@ const deDEGrid = {
30
30
  toolbarFiltersTooltipShow: 'Zeige Filter',
31
31
  toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktive Filter` : `${count} aktiver Filter`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
34
- // toolbarQuickFilterLabel: 'Search',
35
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
33
+ toolbarQuickFilterPlaceholder: 'Suchen...',
34
+ toolbarQuickFilterLabel: 'Suchen',
35
+ toolbarQuickFilterDeleteIconLabel: 'Löschen',
36
36
  // Export selector toolbar button text
37
37
  toolbarExport: 'Exportieren',
38
38
  toolbarExportLabel: 'Exportieren',
@@ -116,7 +116,7 @@ const deDEGrid = {
116
116
  groupColumn: name => `Gruppieren nach ${name}`,
117
117
  unGroupColumn: name => `Gruppierung nach ${name} aufheben`,
118
118
  // Master/detail
119
- // detailPanelToggle: 'Detail panel toggle',
119
+ detailPanelToggle: 'Detailansicht Kippschalter',
120
120
  expandDetailPanel: 'Aufklappen',
121
121
  collapseDetailPanel: 'Zuklappen',
122
122
  // Row reordering text
@@ -38,7 +38,7 @@ const frFRGrid = {
38
38
  toolbarExportLabel: 'Exporter',
39
39
  toolbarExportCSV: 'Télécharger en CSV',
40
40
  toolbarExportPrint: 'Imprimer',
41
- // toolbarExportExcel: 'Download as Excel',
41
+ toolbarExportExcel: 'Télécharger pour Excel',
42
42
  // Columns panel text
43
43
  columnsPanelTextFieldLabel: 'Chercher colonne',
44
44
  columnsPanelTextFieldPlaceholder: 'Titre de la colonne',
@@ -94,10 +94,10 @@ const frFRGrid = {
94
94
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} sur ${totalCount.toLocaleString()}`,
95
95
  // Checkbox selection text
96
96
  checkboxSelectionHeaderName: 'Sélection',
97
- // checkboxSelectionSelectAllRows: 'Select all rows',
98
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
99
- // checkboxSelectionSelectRow: 'Select row',
100
- // checkboxSelectionUnselectRow: 'Unselect row',
97
+ checkboxSelectionSelectAllRows: 'Sélectionner toutes les lignes',
98
+ checkboxSelectionUnselectAllRows: 'Désélectionner toutes les lignes',
99
+ checkboxSelectionSelectRow: 'Sélectionner la ligne',
100
+ checkboxSelectionUnselectRow: 'Désélectionner la ligne',
101
101
  // Boolean cell text
102
102
  booleanCellTrueLabel: 'vrai',
103
103
  booleanCellFalseLabel: 'faux',
@@ -114,13 +114,13 @@ const frFRGrid = {
114
114
  // Grouping columns
115
115
  groupingColumnHeaderName: 'Groupe',
116
116
  groupColumn: name => `Grouper par ${name}`,
117
- unGroupColumn: name => `Arrêter de grouper par ${name}` // Master/detail
118
- // detailPanelToggle: 'Detail panel toggle',
119
- // expandDetailPanel: 'Expand',
120
- // collapseDetailPanel: 'Collapse',
117
+ unGroupColumn: name => `Arrêter de grouper par ${name}`,
118
+ // Master/detail
119
+ detailPanelToggle: 'Afficher/masquer les détails',
120
+ expandDetailPanel: 'Afficher',
121
+ collapseDetailPanel: 'Masquer',
121
122
  // Row reordering text
122
- // rowReorderingHeaderName: 'Row reordering',
123
-
123
+ rowReorderingHeaderName: 'Positionnement des lignes'
124
124
  };
125
125
  const frFR = (0, _getGridLocalization.getGridLocalization)(frFRGrid, _locale.frFR);
126
126
  exports.frFR = frFR;
@@ -212,6 +212,19 @@ Object.keys(_koKR).forEach(function (key) {
212
212
  });
213
213
  });
214
214
 
215
+ var _nbNO = require("./nbNO");
216
+
217
+ Object.keys(_nbNO).forEach(function (key) {
218
+ if (key === "default" || key === "__esModule") return;
219
+ if (key in exports && exports[key] === _nbNO[key]) return;
220
+ Object.defineProperty(exports, key, {
221
+ enumerable: true,
222
+ get: function () {
223
+ return _nbNO[key];
224
+ }
225
+ });
226
+ });
227
+
215
228
  var _nlNL = require("./nlNL");
216
229
 
217
230
  Object.keys(_nlNL).forEach(function (key) {
@@ -251,6 +264,19 @@ Object.keys(_ptBR).forEach(function (key) {
251
264
  });
252
265
  });
253
266
 
267
+ var _roRO = require("./roRO");
268
+
269
+ Object.keys(_roRO).forEach(function (key) {
270
+ if (key === "default" || key === "__esModule") return;
271
+ if (key in exports && exports[key] === _roRO[key]) return;
272
+ Object.defineProperty(exports, key, {
273
+ enumerable: true,
274
+ get: function () {
275
+ return _roRO[key];
276
+ }
277
+ });
278
+ });
279
+
254
280
  var _ruRU = require("./ruRU");
255
281
 
256
282
  Object.keys(_ruRU).forEach(function (key) {
@@ -277,6 +303,19 @@ Object.keys(_skSK).forEach(function (key) {
277
303
  });
278
304
  });
279
305
 
306
+ var _svSE = require("./svSE");
307
+
308
+ Object.keys(_svSE).forEach(function (key) {
309
+ if (key === "default" || key === "__esModule") return;
310
+ if (key in exports && exports[key] === _svSE[key]) return;
311
+ Object.defineProperty(exports, key, {
312
+ enumerable: true,
313
+ get: function () {
314
+ return _svSE[key];
315
+ }
316
+ });
317
+ });
318
+
280
319
  var _trTR = require("./trTR");
281
320
 
282
321
  Object.keys(_trTR).forEach(function (key) {
@@ -30,15 +30,15 @@ const nlNLGrid = {
30
30
  toolbarFiltersTooltipShow: 'Toon filters',
31
31
  toolbarFiltersTooltipActive: count => count > 1 ? `${count} actieve filters` : `${count} filter actief`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
34
- // toolbarQuickFilterLabel: 'Search',
35
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
33
+ toolbarQuickFilterPlaceholder: 'Zoeken...',
34
+ toolbarQuickFilterLabel: 'Zoeken',
35
+ toolbarQuickFilterDeleteIconLabel: 'Wissen',
36
36
  // Export selector toolbar button text
37
37
  toolbarExport: 'Exporteren',
38
38
  toolbarExportLabel: 'Exporteren',
39
39
  toolbarExportCSV: 'Exporteer naar CSV',
40
40
  toolbarExportPrint: 'Print',
41
- // toolbarExportExcel: 'Download as Excel',
41
+ toolbarExportExcel: 'Downloaden als Excel-bestand',
42
42
  // Columns panel text
43
43
  columnsPanelTextFieldLabel: 'Zoek kolom',
44
44
  columnsPanelTextFieldPlaceholder: 'Kolomtitel',
@@ -48,7 +48,7 @@ const nlNLGrid = {
48
48
  // Filter panel text
49
49
  filterPanelAddFilter: 'Filter toevoegen',
50
50
  filterPanelDeleteIconLabel: 'Verwijderen',
51
- // filterPanelLinkOperator: 'Logic operator',
51
+ filterPanelLinkOperator: 'Logische operator',
52
52
  filterPanelOperators: 'Operatoren',
53
53
  // TODO v6: rename to filterPanelOperator
54
54
  filterPanelOperatorAnd: 'En',
@@ -69,7 +69,7 @@ const nlNLGrid = {
69
69
  filterOperatorOnOrBefore: 'is gelijk of er voor',
70
70
  filterOperatorIsEmpty: 'is leeg',
71
71
  filterOperatorIsNotEmpty: 'is niet leeg',
72
- // filterOperatorIsAnyOf: 'is any of',
72
+ filterOperatorIsAnyOf: 'is een van',
73
73
  // Filter values text
74
74
  filterValueAny: 'alles',
75
75
  filterValueTrue: 'waar',
@@ -94,10 +94,10 @@ const nlNLGrid = {
94
94
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`,
95
95
  // Checkbox selection text
96
96
  checkboxSelectionHeaderName: 'Checkbox selectie',
97
- // checkboxSelectionSelectAllRows: 'Select all rows',
98
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
99
- // checkboxSelectionSelectRow: 'Select row',
100
- // checkboxSelectionUnselectRow: 'Unselect row',
97
+ checkboxSelectionSelectAllRows: 'Alle rijen selecteren',
98
+ checkboxSelectionUnselectAllRows: 'Alle rijen de-selecteren',
99
+ checkboxSelectionSelectRow: 'Rij selecteren',
100
+ checkboxSelectionUnselectRow: 'Rij de-selecteren',
101
101
  // Boolean cell text
102
102
  booleanCellTrueLabel: 'waar',
103
103
  booleanCellFalseLabel: 'onwaar',
@@ -114,13 +114,13 @@ const nlNLGrid = {
114
114
  // Grouping columns
115
115
  groupingColumnHeaderName: 'Groep',
116
116
  groupColumn: name => `Groepeer op ${name}`,
117
- unGroupColumn: name => `Stop groeperen op ${name}` // Master/detail
117
+ unGroupColumn: name => `Stop groeperen op ${name}`,
118
+ // Master/detail
118
119
  // detailPanelToggle: 'Detail panel toggle',
119
- // expandDetailPanel: 'Expand',
120
- // collapseDetailPanel: 'Collapse',
120
+ expandDetailPanel: 'Uitklappen',
121
+ collapseDetailPanel: 'Inklappen',
121
122
  // Row reordering text
122
- // rowReorderingHeaderName: 'Row reordering',
123
-
123
+ rowReorderingHeaderName: 'Rijen hersorteren'
124
124
  };
125
125
  const nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid, _locale.nlNL);
126
126
  exports.nlNL = nlNL;
@@ -30,14 +30,14 @@ const ptBRGrid = {
30
30
  toolbarFiltersTooltipShow: 'Exibir filtros',
31
31
  toolbarFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
32
32
  // Quick filter toolbar field
33
- // toolbarQuickFilterPlaceholder: 'Search...',
34
- // toolbarQuickFilterLabel: 'Search',
35
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
33
+ toolbarQuickFilterPlaceholder: 'Procurar...',
34
+ toolbarQuickFilterLabel: 'Procurar',
35
+ toolbarQuickFilterDeleteIconLabel: 'Limpar',
36
36
  // Export selector toolbar button text
37
37
  toolbarExport: 'Exportar',
38
38
  toolbarExportLabel: 'Exportar',
39
39
  toolbarExportCSV: 'Baixar como CSV',
40
- toolbarExportPrint: 'Print',
40
+ toolbarExportPrint: 'Imprimir',
41
41
  toolbarExportExcel: 'Baixar como Excel',
42
42
  // Columns panel text
43
43
  columnsPanelTextFieldLabel: 'Localizar coluna',
@@ -69,7 +69,7 @@ const ptBRGrid = {
69
69
  filterOperatorOnOrBefore: 'em ou antes de',
70
70
  filterOperatorIsEmpty: 'está vazio',
71
71
  filterOperatorIsNotEmpty: 'não está vazio',
72
- // filterOperatorIsAnyOf: 'is any of',
72
+ filterOperatorIsAnyOf: 'é qualquer um dos',
73
73
  // Filter values text
74
74
  filterValueAny: 'qualquer',
75
75
  filterValueTrue: 'verdadeiro',
@@ -108,9 +108,9 @@ const ptBRGrid = {
108
108
  pinToRight: 'Fixar à direita',
109
109
  unpin: 'Desafixar',
110
110
  // Tree Data
111
- // treeDataGroupingHeaderName: 'Group',
112
- // treeDataExpand: 'see children',
113
- // treeDataCollapse: 'hide children',
111
+ treeDataGroupingHeaderName: 'Grupo',
112
+ treeDataExpand: 'mostrar filhos',
113
+ treeDataCollapse: 'esconder filhos',
114
114
  // Grouping columns
115
115
  groupingColumnHeaderName: 'Grupo',
116
116
  groupColumn: name => `Agrupar por ${name}`,
@@ -118,9 +118,9 @@ const ptBRGrid = {
118
118
  // Master/detail
119
119
  detailPanelToggle: 'Painel de detalhes',
120
120
  expandDetailPanel: 'Expandir',
121
- collapseDetailPanel: 'Esconder' // Row reordering text
122
- // rowReorderingHeaderName: 'Row reordering',
123
-
121
+ collapseDetailPanel: 'Esconder',
122
+ // Row reordering text
123
+ rowReorderingHeaderName: 'Reorganizar linhas'
124
124
  };
125
125
  const ptBR = (0, _getGridLocalization.getGridLocalization)(ptBRGrid, _locale.ptBR);
126
126
  exports.ptBR = ptBR;
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.roRO = void 0;
7
+
8
+ var _locale = require("@mui/material/locale");
9
+
10
+ var _getGridLocalization = require("../utils/getGridLocalization");
11
+
12
+ const roROGrid = {
13
+ // Root
14
+ noRowsLabel: 'Lipsă date',
15
+ noResultsOverlayLabel: 'Nu au fost găsite rezultate.',
16
+ errorOverlayDefaultLabel: 'A apărut o eroare neașteptată.',
17
+ // Density selector toolbar button text
18
+ toolbarDensity: 'Înălțime rând',
19
+ toolbarDensityLabel: 'Înălțime rând',
20
+ toolbarDensityCompact: 'Compact',
21
+ toolbarDensityStandard: 'Standard',
22
+ toolbarDensityComfortable: 'Lat',
23
+ // Columns selector toolbar button text
24
+ toolbarColumns: 'Coloane',
25
+ toolbarColumnsLabel: 'Afișează selecție coloane',
26
+ // Filters toolbar button text
27
+ toolbarFilters: 'Filtru',
28
+ toolbarFiltersLabel: 'Afișează filtru',
29
+ toolbarFiltersTooltipHide: 'Ascunde filtru',
30
+ toolbarFiltersTooltipShow: 'Afișează filtru',
31
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
32
+ // Quick filter toolbar field
33
+ toolbarQuickFilterPlaceholder: 'Căutare...',
34
+ toolbarQuickFilterLabel: 'Căutare',
35
+ toolbarQuickFilterDeleteIconLabel: 'Ștergere',
36
+ // Export selector toolbar button text
37
+ toolbarExport: 'Export',
38
+ toolbarExportLabel: 'Export',
39
+ toolbarExportCSV: 'Download în format CSV',
40
+ toolbarExportPrint: 'Printare',
41
+ toolbarExportExcel: 'Download în format Excel',
42
+ // Columns panel text
43
+ columnsPanelTextFieldLabel: 'Găsește coloana',
44
+ columnsPanelTextFieldPlaceholder: 'Titlu coloană',
45
+ columnsPanelDragIconLabel: 'Resortare coloană',
46
+ columnsPanelShowAllButton: 'Afișează tot',
47
+ columnsPanelHideAllButton: 'Ascunde tot',
48
+ // Filter panel text
49
+ filterPanelAddFilter: 'Adăugare filtru',
50
+ filterPanelDeleteIconLabel: 'Ștergere',
51
+ filterPanelLinkOperator: 'Operatori logici',
52
+ filterPanelOperators: 'Operatori',
53
+ // TODO v6: rename to filterPanelOperator
54
+ filterPanelOperatorAnd: 'Și',
55
+ filterPanelOperatorOr: 'Sau',
56
+ filterPanelColumns: 'Coloane',
57
+ filterPanelInputLabel: 'Valoare',
58
+ filterPanelInputPlaceholder: 'Filtrare valoare',
59
+ // Filter operators text
60
+ filterOperatorContains: 'conține',
61
+ filterOperatorEquals: 'este egal cu',
62
+ filterOperatorStartsWith: 'începe cu',
63
+ filterOperatorEndsWith: 'se termină cu',
64
+ filterOperatorIs: 'este',
65
+ filterOperatorNot: 'nu este',
66
+ filterOperatorAfter: 'este după',
67
+ filterOperatorOnOrAfter: 'este la sau după',
68
+ filterOperatorBefore: 'este înainte de',
69
+ filterOperatorOnOrBefore: 'este la sau înainte de',
70
+ filterOperatorIsEmpty: 'este gol',
71
+ filterOperatorIsNotEmpty: 'nu este gol',
72
+ filterOperatorIsAnyOf: 'este una din valori',
73
+ // Filter values text
74
+ filterValueAny: 'Aleatoriu',
75
+ filterValueTrue: 'Da',
76
+ filterValueFalse: 'Nu',
77
+ // Column menu text
78
+ columnMenuLabel: 'Meniu',
79
+ columnMenuShowColumns: 'Afișează toate coloanele',
80
+ columnMenuFilter: 'Filtru',
81
+ columnMenuHideColumn: 'Ascunde',
82
+ columnMenuUnsort: 'Dezactivare sortare',
83
+ columnMenuSortAsc: 'Sortează crescător',
84
+ columnMenuSortDesc: 'Sortează descrescător',
85
+ // Column header text
86
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
87
+ columnHeaderFiltersLabel: 'Afișează filtru',
88
+ columnHeaderSortIconLabel: 'Sortare',
89
+ // Rows selected footer text
90
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} Înregistrări selectate` : `${count.toLocaleString()} Înregistrare selectată`,
91
+ // Total row amount footer text
92
+ footerTotalRows: 'Total:',
93
+ // Total visible row amount footer text
94
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} din ${totalCount.toLocaleString()}`,
95
+ // Checkbox selection text
96
+ checkboxSelectionHeaderName: 'Checkbox Selecție',
97
+ checkboxSelectionSelectAllRows: 'Selectare toate rândurile',
98
+ checkboxSelectionUnselectAllRows: 'Deselectare toate rândurile',
99
+ checkboxSelectionSelectRow: 'Selectare rând',
100
+ checkboxSelectionUnselectRow: 'Deselectare rând',
101
+ // Boolean cell text
102
+ booleanCellTrueLabel: 'Da',
103
+ booleanCellFalseLabel: 'Nu',
104
+ // Actions cell more text
105
+ actionsCellMore: 'Mai multe',
106
+ // Column pinning text
107
+ pinToLeft: 'Fixare în stânga',
108
+ pinToRight: 'Fixare în dreapta',
109
+ unpin: 'Anulare fixare',
110
+ // Tree Data
111
+ treeDataGroupingHeaderName: 'Grup',
112
+ treeDataExpand: 'Afișare copii',
113
+ treeDataCollapse: 'Ascundere copii',
114
+ // Grouping columns
115
+ groupingColumnHeaderName: 'Grupare',
116
+ groupColumn: name => `Grupare după ${name}`,
117
+ unGroupColumn: name => `Anulare Grupare după ${name}`,
118
+ // Master/detail
119
+ detailPanelToggle: 'Comutare panou detalii',
120
+ expandDetailPanel: 'Extindere',
121
+ collapseDetailPanel: 'Restrângere',
122
+ // Row reordering text
123
+ rowReorderingHeaderName: 'Reordonare rânduri'
124
+ };
125
+ const roRO = (0, _getGridLocalization.getGridLocalization)(roROGrid, _locale.roRO);
126
+ exports.roRO = roRO;
@@ -40,15 +40,15 @@ const skSKGrid = {
40
40
  return `${count} ${pluralForm}`;
41
41
  },
42
42
  // Quick filter toolbar field
43
- // toolbarQuickFilterPlaceholder: 'Search...',
44
- // toolbarQuickFilterLabel: 'Search',
45
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
43
+ toolbarQuickFilterPlaceholder: 'Vyhľadať...',
44
+ toolbarQuickFilterLabel: 'Vyhľadať',
45
+ toolbarQuickFilterDeleteIconLabel: 'Vymazať',
46
46
  // Export selector toolbar button text
47
47
  toolbarExport: 'Export',
48
48
  toolbarExportLabel: 'Export',
49
49
  toolbarExportCSV: 'Stiahnuť ako CSV',
50
50
  toolbarExportPrint: 'Vytlačiť',
51
- // toolbarExportExcel: 'Download as Excel',
51
+ toolbarExportExcel: 'Stiahnuť ako Excel',
52
52
  // Columns panel text
53
53
  columnsPanelTextFieldLabel: 'Nájsť stĺpec',
54
54
  columnsPanelTextFieldPlaceholder: 'Názov stĺpca',
@@ -58,7 +58,7 @@ const skSKGrid = {
58
58
  // Filter panel text
59
59
  filterPanelAddFilter: 'Pridať filter',
60
60
  filterPanelDeleteIconLabel: 'Odstrániť',
61
- // filterPanelLinkOperator: 'Logic operator',
61
+ filterPanelLinkOperator: 'Logický operátor',
62
62
  filterPanelOperators: 'Operátory',
63
63
  // TODO v6: rename to filterPanelOperator
64
64
  filterPanelOperatorAnd: 'A',
@@ -79,7 +79,7 @@ const skSKGrid = {
79
79
  filterOperatorOnOrBefore: 'je na alebo skôr',
80
80
  filterOperatorIsEmpty: 'je prázdny',
81
81
  filterOperatorIsNotEmpty: 'nie je prázdny',
82
- // filterOperatorIsAnyOf: 'is any of',
82
+ filterOperatorIsAnyOf: 'je jeden z',
83
83
  // Filter values text
84
84
  filterValueAny: 'akýkoľvek',
85
85
  filterValueTrue: 'áno',
@@ -129,10 +129,10 @@ const skSKGrid = {
129
129
  },
130
130
  // Checkbox selection text
131
131
  checkboxSelectionHeaderName: 'Výber riadku',
132
- // checkboxSelectionSelectAllRows: 'Select all rows',
133
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
134
- // checkboxSelectionSelectRow: 'Select row',
135
- // checkboxSelectionUnselectRow: 'Unselect row',
132
+ checkboxSelectionSelectAllRows: 'Vybrať všetky riadky',
133
+ checkboxSelectionUnselectAllRows: 'Zrušiť výber všetkých riadkov',
134
+ checkboxSelectionSelectRow: 'Vyber riadok',
135
+ checkboxSelectionUnselectRow: 'Zruš výber riadku',
136
136
  // Boolean cell text
137
137
  booleanCellTrueLabel: 'áno',
138
138
  booleanCellFalseLabel: 'nie',
@@ -149,13 +149,13 @@ const skSKGrid = {
149
149
  // Grouping columns
150
150
  groupingColumnHeaderName: 'Skupina',
151
151
  groupColumn: name => `Zoskupiť podľa ${name}`,
152
- unGroupColumn: name => `Prestať zoskupovať podľa ${name}` // Master/detail
153
- // detailPanelToggle: 'Detail panel toggle',
154
- // expandDetailPanel: 'Expand',
155
- // collapseDetailPanel: 'Collapse',
152
+ unGroupColumn: name => `Prestať zoskupovať podľa ${name}`,
153
+ // Master/detail
154
+ detailPanelToggle: 'Prepnúť detail panelu',
155
+ expandDetailPanel: 'Rozbaliť',
156
+ collapseDetailPanel: 'Zbaliť',
156
157
  // Row reordering text
157
- // rowReorderingHeaderName: 'Row reordering',
158
-
158
+ rowReorderingHeaderName: 'Preusporiadávanie riadkov'
159
159
  };
160
160
  const skSK = (0, _getGridLocalization.getGridLocalization)(skSKGrid, _locale.skSK);
161
161
  exports.skSK = skSK;