@mui/x-data-grid 8.3.0 → 8.3.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.
- package/CHANGELOG.md +96 -10
- package/components/columnSelection/GridCellCheckboxRenderer.js +4 -2
- package/esm/components/columnSelection/GridCellCheckboxRenderer.js +6 -4
- package/esm/hooks/features/columns/gridColumnsUtils.js +15 -7
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +6 -6
- package/esm/hooks/features/rowSelection/utils.d.ts +4 -1
- package/esm/hooks/features/rowSelection/utils.js +33 -32
- package/esm/hooks/features/virtualization/useGridVirtualScroller.js +7 -6
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/locales/koKR.js +68 -76
- package/esm/locales/nbNO.js +22 -24
- package/esm/models/api/gridRowSelectionApi.d.ts +4 -2
- package/esm/models/events/gridEventLookup.d.ts +1 -0
- package/hooks/features/columns/gridColumnsUtils.js +15 -7
- package/hooks/features/rowSelection/useGridRowSelection.js +6 -6
- package/hooks/features/rowSelection/utils.d.ts +4 -1
- package/hooks/features/rowSelection/utils.js +34 -34
- package/hooks/features/virtualization/useGridVirtualScroller.js +7 -6
- package/index.d.ts +1 -0
- package/index.js +2 -1
- package/locales/koKR.js +68 -76
- package/locales/nbNO.js +22 -24
- package/models/api/gridRowSelectionApi.d.ts +4 -2
- package/models/events/gridEventLookup.d.ts +1 -0
- package/package.json +2 -2
package/locales/nbNO.js
CHANGED
|
@@ -9,8 +9,8 @@ const nbNOGrid = {
|
|
|
9
9
|
// Root
|
|
10
10
|
noRowsLabel: 'Ingen rader',
|
|
11
11
|
noResultsOverlayLabel: 'Fant ingen resultat.',
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
noColumnsOverlayLabel: 'Ingen kolonner',
|
|
13
|
+
noColumnsOverlayManageColumns: 'Velg kolonner',
|
|
14
14
|
// emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
|
|
15
15
|
|
|
16
16
|
// Density selector toolbar button text
|
|
@@ -49,8 +49,7 @@ const nbNOGrid = {
|
|
|
49
49
|
columnsManagementNoColumns: 'Ingen kolonner',
|
|
50
50
|
columnsManagementShowHideAllText: 'Vis/skjul alle',
|
|
51
51
|
columnsManagementReset: 'Nullstill',
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
columnsManagementDeleteIconLabel: 'Tøm',
|
|
54
53
|
// Filter panel text
|
|
55
54
|
filterPanelAddFilter: 'Legg til filter',
|
|
56
55
|
filterPanelRemoveAll: 'Fjern alle',
|
|
@@ -64,9 +63,9 @@ const nbNOGrid = {
|
|
|
64
63
|
filterPanelInputPlaceholder: 'Filter verdi',
|
|
65
64
|
// Filter operators text
|
|
66
65
|
filterOperatorContains: 'inneholder',
|
|
67
|
-
|
|
66
|
+
filterOperatorDoesNotContain: 'inneholder ikke',
|
|
68
67
|
filterOperatorEquals: 'er lik',
|
|
69
|
-
|
|
68
|
+
filterOperatorDoesNotEqual: 'er ikke lik',
|
|
70
69
|
filterOperatorStartsWith: 'starter med',
|
|
71
70
|
filterOperatorEndsWith: 'slutter med',
|
|
72
71
|
filterOperatorIs: 'er',
|
|
@@ -86,9 +85,9 @@ const nbNOGrid = {
|
|
|
86
85
|
'filterOperator<=': '<=',
|
|
87
86
|
// Header filter operators text
|
|
88
87
|
headerFilterOperatorContains: 'Inneholder',
|
|
89
|
-
|
|
90
|
-
headerFilterOperatorEquals: '
|
|
91
|
-
|
|
88
|
+
headerFilterOperatorDoesNotContain: 'Inneholder ikke',
|
|
89
|
+
headerFilterOperatorEquals: 'Er lik',
|
|
90
|
+
headerFilterOperatorDoesNotEqual: 'Er ikke lik',
|
|
92
91
|
headerFilterOperatorStartsWith: 'Starter på',
|
|
93
92
|
headerFilterOperatorEndsWith: 'Slutter på',
|
|
94
93
|
headerFilterOperatorIs: 'Er',
|
|
@@ -106,15 +105,14 @@ const nbNOGrid = {
|
|
|
106
105
|
'headerFilterOperator>=': 'Større enn eller lik',
|
|
107
106
|
'headerFilterOperator<': 'Mindre enn',
|
|
108
107
|
'headerFilterOperator<=': 'Mindre enn eller lik',
|
|
109
|
-
|
|
110
|
-
|
|
108
|
+
headerFilterClear: 'Tøm filter',
|
|
111
109
|
// Filter values text
|
|
112
110
|
filterValueAny: 'noen',
|
|
113
111
|
filterValueTrue: 'sant',
|
|
114
112
|
filterValueFalse: 'usant',
|
|
115
113
|
// Column menu text
|
|
116
114
|
columnMenuLabel: 'Meny',
|
|
117
|
-
|
|
115
|
+
columnMenuAriaLabel: columnName => `${columnName} kolonnemeny`,
|
|
118
116
|
columnMenuShowColumns: 'Vis kolonner',
|
|
119
117
|
columnMenuManageColumns: 'Administrer kolonner',
|
|
120
118
|
columnMenuFilter: 'Filter',
|
|
@@ -163,18 +161,18 @@ const nbNOGrid = {
|
|
|
163
161
|
collapseDetailPanel: 'Kollaps',
|
|
164
162
|
// Pagination
|
|
165
163
|
paginationRowsPerPage: 'Rader per side:',
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
164
|
+
paginationDisplayedRows: ({
|
|
165
|
+
from,
|
|
166
|
+
to,
|
|
167
|
+
count,
|
|
168
|
+
estimated
|
|
169
|
+
}) => {
|
|
170
|
+
if (!estimated) {
|
|
171
|
+
return `${from}–${to} av ${count !== -1 ? count : `mer enn ${to}`}`;
|
|
172
|
+
}
|
|
173
|
+
const estimatedLabel = estimated && estimated > to ? `omtrent ${estimated}` : `mer enn ${to}`;
|
|
174
|
+
return `${from}–${to} av ${count !== -1 ? count : estimatedLabel}`;
|
|
175
|
+
},
|
|
178
176
|
paginationItemAriaLabel: type => {
|
|
179
177
|
if (type === 'first') {
|
|
180
178
|
return 'Gå til første side';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { GridRowId, GridRowModel } from "../gridRows.js";
|
|
2
2
|
import type { GridRowSelectionModel } from "../gridRowSelectionModel.js";
|
|
3
|
+
import { GridControlledStateReasonLookup } from "../events/index.js";
|
|
3
4
|
/**
|
|
4
5
|
* The selection API interface that is available in the grid [[apiRef]].
|
|
5
6
|
*/
|
|
@@ -34,9 +35,10 @@ export interface GridRowSelectionApi {
|
|
|
34
35
|
*
|
|
35
36
|
* ⚠️ Caution: `setRowSelectionModel` doesn't apply the selection propagation automatically.
|
|
36
37
|
* Pass model returned by API method `getPropagatedRowSelectionModel` instead to apply the selection propagation.
|
|
37
|
-
* @param {gridRowSelectionModel} rowSelectionModel The new row selection model
|
|
38
|
+
* @param {gridRowSelectionModel} rowSelectionModel The new row selection model.
|
|
39
|
+
* @param {string} reason The reason for the state change.
|
|
38
40
|
*/
|
|
39
|
-
setRowSelectionModel: (rowSelectionModel: GridRowSelectionModel) => void;
|
|
41
|
+
setRowSelectionModel: (rowSelectionModel: GridRowSelectionModel, reason?: GridControlledStateReasonLookup['rowSelection']) => void;
|
|
40
42
|
}
|
|
41
43
|
export interface GridRowMultiSelectionApi {
|
|
42
44
|
/**
|
|
@@ -400,6 +400,7 @@ export interface GridControlledStateReasonLookup {
|
|
|
400
400
|
filter: 'upsertFilterItem' | 'upsertFilterItems' | 'deleteFilterItem' | 'changeLogicOperator' | 'restoreState' | 'removeAllFilterItems';
|
|
401
401
|
pagination: 'setPaginationModel' | 'stateRestorePreProcessing';
|
|
402
402
|
rows: 'addSkeletonRows';
|
|
403
|
+
rowSelection: 'singleRowSelection' | 'multipleRowsSelection';
|
|
403
404
|
}
|
|
404
405
|
export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridHeaderFilterEventLookup, GridColumnGroupHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
|
|
405
406
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.1",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Community plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"prop-types": "^15.8.1",
|
|
46
46
|
"reselect": "^5.1.1",
|
|
47
47
|
"use-sync-external-store": "^1.5.0",
|
|
48
|
-
"@mui/x-internals": "8.3.
|
|
48
|
+
"@mui/x-internals": "8.3.1"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@emotion/react": "^11.9.0",
|