@mui/x-data-grid 8.9.2 → 8.10.0
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 +121 -6
- package/components/GridFooter.js +1 -1
- package/components/GridPagination.js +4 -3
- package/components/GridRow.js +3 -1
- package/esm/components/GridFooter.js +1 -1
- package/esm/components/GridPagination.js +3 -2
- package/esm/components/GridRow.js +3 -1
- package/esm/hooks/features/dataSource/models.d.ts +11 -2
- package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +9 -2
- package/esm/hooks/features/editing/useGridRowEditing.js +4 -1
- package/esm/hooks/features/rowReorder/gridRowReorderInterfaces.d.ts +9 -0
- package/esm/hooks/features/rowReorder/gridRowReorderInterfaces.js +1 -0
- package/esm/hooks/features/rowReorder/gridRowReorderSelector.d.ts +5 -0
- package/esm/hooks/features/rowReorder/gridRowReorderSelector.js +3 -0
- package/esm/hooks/features/rowSelection/useGridRowSelection.js +2 -2
- package/esm/hooks/features/rowSelection/utils.js +5 -0
- package/esm/index.js +1 -1
- package/esm/internals/index.d.ts +2 -0
- package/esm/internals/index.js +1 -0
- package/esm/locales/nnNO.js +96 -107
- package/esm/material/index.js +2 -2
- package/esm/models/gridStateCommunity.d.ts +2 -0
- package/hooks/features/dataSource/models.d.ts +11 -2
- package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
- package/hooks/features/dataSource/useGridDataSourceBase.js +10 -3
- package/hooks/features/editing/useGridRowEditing.js +4 -1
- package/hooks/features/rowReorder/gridRowReorderInterfaces.d.ts +9 -0
- package/hooks/features/rowReorder/gridRowReorderInterfaces.js +5 -0
- package/hooks/features/rowReorder/gridRowReorderSelector.d.ts +5 -0
- package/hooks/features/rowReorder/gridRowReorderSelector.js +9 -0
- package/hooks/features/rowSelection/useGridRowSelection.js +2 -2
- package/hooks/features/rowSelection/utils.js +5 -0
- package/index.js +1 -1
- package/internals/index.d.ts +2 -0
- package/internals/index.js +8 -0
- package/locales/nnNO.js +96 -107
- package/material/index.js +2 -2
- package/models/gridStateCommunity.d.ts +2 -0
- package/package.json +3 -4
package/locales/nnNO.js
CHANGED
|
@@ -9,10 +9,9 @@ const nnNOGrid = {
|
|
|
9
9
|
// Root
|
|
10
10
|
noRowsLabel: 'Ingen rader',
|
|
11
11
|
noResultsOverlayLabel: 'Fann ingen resultat.',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
noColumnsOverlayLabel: 'Ingen kolonner',
|
|
13
|
+
noColumnsOverlayManageColumns: 'Vel kolonner',
|
|
14
|
+
emptyPivotOverlayLabel: 'Legg til felt i rader, kolonner og verdiar for å opprette ein pivot-tabell',
|
|
16
15
|
// Density selector toolbar button text
|
|
17
16
|
toolbarDensity: 'Tettheit',
|
|
18
17
|
toolbarDensityLabel: 'Tettheit',
|
|
@@ -39,18 +38,15 @@ const nnNOGrid = {
|
|
|
39
38
|
toolbarExportPrint: 'Skriv ut',
|
|
40
39
|
toolbarExportExcel: 'Last ned som Excel',
|
|
41
40
|
// Toolbar pivot button
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
toolbarPivot: 'Pivot',
|
|
44
42
|
// Toolbar AI Assistant button
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
toolbarAssistant: 'AI Assistent',
|
|
47
44
|
// Columns management text
|
|
48
45
|
columnsManagementSearchTitle: 'Søk',
|
|
49
46
|
columnsManagementNoColumns: 'Ingen kolonner',
|
|
50
47
|
columnsManagementShowHideAllText: 'Vis/skjul alle',
|
|
51
48
|
columnsManagementReset: 'Nullstill',
|
|
52
|
-
|
|
53
|
-
|
|
49
|
+
columnsManagementDeleteIconLabel: 'Tøm',
|
|
54
50
|
// Filter panel text
|
|
55
51
|
filterPanelAddFilter: 'Legg til filter',
|
|
56
52
|
filterPanelRemoveAll: 'Fjern alle',
|
|
@@ -64,9 +60,9 @@ const nnNOGrid = {
|
|
|
64
60
|
filterPanelInputPlaceholder: 'Filter verdi',
|
|
65
61
|
// Filter operators text
|
|
66
62
|
filterOperatorContains: 'inneheld',
|
|
67
|
-
|
|
63
|
+
filterOperatorDoesNotContain: 'inneheld ikkje',
|
|
68
64
|
filterOperatorEquals: 'er lik',
|
|
69
|
-
|
|
65
|
+
filterOperatorDoesNotEqual: 'er ikkje lik',
|
|
70
66
|
filterOperatorStartsWith: 'startar med',
|
|
71
67
|
filterOperatorEndsWith: 'sluttar med',
|
|
72
68
|
filterOperatorIs: 'er',
|
|
@@ -86,9 +82,9 @@ const nnNOGrid = {
|
|
|
86
82
|
'filterOperator<=': '<=',
|
|
87
83
|
// Header filter operators text
|
|
88
84
|
headerFilterOperatorContains: 'Inneheld',
|
|
89
|
-
|
|
85
|
+
headerFilterOperatorDoesNotContain: 'Inneheld ikkje',
|
|
90
86
|
headerFilterOperatorEquals: 'Lik',
|
|
91
|
-
|
|
87
|
+
headerFilterOperatorDoesNotEqual: 'Er ikkje lik',
|
|
92
88
|
headerFilterOperatorStartsWith: 'Startar på',
|
|
93
89
|
headerFilterOperatorEndsWith: 'Sluttar på',
|
|
94
90
|
headerFilterOperatorIs: 'Er',
|
|
@@ -106,15 +102,14 @@ const nnNOGrid = {
|
|
|
106
102
|
'headerFilterOperator>=': 'Større enn eller lik',
|
|
107
103
|
'headerFilterOperator<': 'Mindre enn',
|
|
108
104
|
'headerFilterOperator<=': 'Mindre enn eller lik',
|
|
109
|
-
|
|
110
|
-
|
|
105
|
+
headerFilterClear: 'Tøm filter',
|
|
111
106
|
// Filter values text
|
|
112
107
|
filterValueAny: 'nokon',
|
|
113
108
|
filterValueTrue: 'sant',
|
|
114
109
|
filterValueFalse: 'usant',
|
|
115
110
|
// Column menu text
|
|
116
111
|
columnMenuLabel: 'Meny',
|
|
117
|
-
|
|
112
|
+
columnMenuAriaLabel: columnName => `${columnName} kolonne meny`,
|
|
118
113
|
columnMenuShowColumns: 'Vis kolonner',
|
|
119
114
|
columnMenuManageColumns: 'Administrer kolonner',
|
|
120
115
|
columnMenuFilter: 'Filter',
|
|
@@ -122,8 +117,7 @@ const nnNOGrid = {
|
|
|
122
117
|
columnMenuUnsort: 'Usorter',
|
|
123
118
|
columnMenuSortAsc: 'Sorter AUKANDE',
|
|
124
119
|
columnMenuSortDesc: 'Sorter SYNKANDE',
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
columnMenuManagePivot: 'Behandle pivot',
|
|
127
121
|
// Column header text
|
|
128
122
|
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktive filter` : `${count} aktivt filter`,
|
|
129
123
|
columnHeaderFiltersLabel: 'Vis filter',
|
|
@@ -158,23 +152,23 @@ const nnNOGrid = {
|
|
|
158
152
|
groupColumn: name => `Grupper på ${name}`,
|
|
159
153
|
unGroupColumn: name => `Slutt å grupper på ${name}`,
|
|
160
154
|
// Master/detail
|
|
161
|
-
detailPanelToggle: '
|
|
162
|
-
expandDetailPanel: '
|
|
163
|
-
collapseDetailPanel: '
|
|
155
|
+
detailPanelToggle: 'Vis/gøym detaljpanel',
|
|
156
|
+
expandDetailPanel: 'Vis',
|
|
157
|
+
collapseDetailPanel: 'Gøym',
|
|
164
158
|
// Pagination
|
|
165
159
|
paginationRowsPerPage: 'Rader per side:',
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
160
|
+
paginationDisplayedRows: ({
|
|
161
|
+
from,
|
|
162
|
+
to,
|
|
163
|
+
count,
|
|
164
|
+
estimated
|
|
165
|
+
}) => {
|
|
166
|
+
if (!estimated) {
|
|
167
|
+
return `${from}–${to} av ${count !== -1 ? count : `flere enn ${to}`}`;
|
|
168
|
+
}
|
|
169
|
+
const estimatedLabel = estimated && estimated > to ? `omtrent ${estimated}` : `flere enn ${to}`;
|
|
170
|
+
return `${from}–${to} av ${count !== -1 ? count : estimatedLabel}`;
|
|
171
|
+
},
|
|
178
172
|
paginationItemAriaLabel: type => {
|
|
179
173
|
if (type === 'first') {
|
|
180
174
|
return 'Gå til første side';
|
|
@@ -196,83 +190,78 @@ const nnNOGrid = {
|
|
|
196
190
|
aggregationFunctionLabelAvg: 'snitt',
|
|
197
191
|
aggregationFunctionLabelMin: 'min',
|
|
198
192
|
aggregationFunctionLabelMax: 'maks',
|
|
199
|
-
aggregationFunctionLabelSize: 'størrelse'
|
|
200
|
-
|
|
193
|
+
aggregationFunctionLabelSize: 'størrelse',
|
|
201
194
|
// Pivot panel
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
195
|
+
pivotToggleLabel: 'Pivot',
|
|
196
|
+
pivotRows: 'Rader',
|
|
197
|
+
pivotColumns: 'Kolonner',
|
|
198
|
+
pivotValues: 'Verdiar',
|
|
199
|
+
pivotCloseButton: 'Lukk pivotinnstillingar',
|
|
200
|
+
pivotSearchButton: 'Søk felt',
|
|
201
|
+
pivotSearchControlPlaceholder: 'Søk felt',
|
|
202
|
+
pivotSearchControlLabel: 'Søk felt',
|
|
203
|
+
pivotSearchControlClear: 'Tøm søk',
|
|
204
|
+
pivotNoFields: 'Ingen felt',
|
|
205
|
+
pivotMenuMoveUp: 'Flytt opp',
|
|
206
|
+
pivotMenuMoveDown: 'Flytt ned',
|
|
207
|
+
pivotMenuMoveToTop: 'Flytt til toppen',
|
|
208
|
+
pivotMenuMoveToBottom: 'Flytt til botnen',
|
|
209
|
+
pivotMenuRows: 'Rader',
|
|
210
|
+
pivotMenuColumns: 'Kolonner',
|
|
211
|
+
pivotMenuValues: 'Verdiar',
|
|
212
|
+
pivotMenuOptions: 'Feltalternativ',
|
|
213
|
+
pivotMenuAddToRows: 'Legg til i Rader',
|
|
214
|
+
pivotMenuAddToColumns: 'Legg til i Kolonner',
|
|
215
|
+
pivotMenuAddToValues: 'Legg til i Verdiar',
|
|
216
|
+
pivotMenuRemove: 'Fjern',
|
|
217
|
+
pivotDragToRows: 'Dra hit for å opprette rader',
|
|
218
|
+
pivotDragToColumns: 'Dra hit for å opprette kolonner',
|
|
219
|
+
pivotDragToValues: 'Dra hit for å opprette verdiar',
|
|
220
|
+
pivotYearColumnHeaderName: '(År)',
|
|
221
|
+
pivotQuarterColumnHeaderName: '(Kvartal)',
|
|
230
222
|
// AI Assistant panel
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
223
|
+
aiAssistantPanelTitle: 'AI Assistent',
|
|
224
|
+
aiAssistantPanelClose: 'Lukk AI Assistent',
|
|
225
|
+
aiAssistantPanelNewConversation: 'Ny samtale',
|
|
226
|
+
aiAssistantPanelConversationHistory: 'Samtalehistorikk',
|
|
227
|
+
aiAssistantPanelEmptyConversation: 'Ingen prompt-historikk',
|
|
228
|
+
aiAssistantSuggestions: 'Forslag',
|
|
238
229
|
// Prompt field
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
230
|
+
promptFieldLabel: 'Prompt',
|
|
231
|
+
promptFieldPlaceholder: 'Skriv ein prompt…',
|
|
232
|
+
promptFieldPlaceholderWithRecording: 'Skriv eller spel inn ein prompt…',
|
|
233
|
+
promptFieldPlaceholderListening: 'Lyttar etter prompt…',
|
|
234
|
+
promptFieldSpeechRecognitionNotSupported: 'Talegjenkjenning er ikkje støtta i denne nettlesaren',
|
|
235
|
+
promptFieldSend: 'Send',
|
|
236
|
+
promptFieldRecord: 'Spel inn',
|
|
237
|
+
promptFieldStopRecording: 'Stopp opptak',
|
|
248
238
|
// Prompt
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
239
|
+
promptRerun: 'Kjør på nytt',
|
|
240
|
+
promptProcessing: 'Behandlar…',
|
|
241
|
+
promptAppliedChanges: 'Brukte endringar',
|
|
253
242
|
// Prompt changes
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
243
|
+
promptChangeGroupDescription: column => `Grupper etter ${column}`,
|
|
244
|
+
promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
|
|
245
|
+
promptChangeAggregationDescription: (column, aggregation) => `Aggreger ${column} (${aggregation})`,
|
|
246
|
+
promptChangeFilterLabel: (column, operator, value) => {
|
|
247
|
+
if (operator === 'is any of') {
|
|
248
|
+
return `${column} er ein av: ${value}`;
|
|
249
|
+
}
|
|
250
|
+
return `${column} ${operator} ${value}`;
|
|
251
|
+
},
|
|
252
|
+
promptChangeFilterDescription: (column, operator, value) => {
|
|
253
|
+
if (operator === 'is any of') {
|
|
254
|
+
return `Filter der ${column} er ein av: ${value}`;
|
|
255
|
+
}
|
|
256
|
+
return `Filter der ${column} ${operator} ${value}`;
|
|
257
|
+
},
|
|
258
|
+
promptChangeSortDescription: (column, direction) => `Sorter etter ${column} (${direction})`,
|
|
259
|
+
promptChangePivotEnableLabel: 'Pivot',
|
|
260
|
+
promptChangePivotEnableDescription: 'Aktiver pivot',
|
|
261
|
+
promptChangePivotColumnsLabel: count => `Kolonner (${count})`,
|
|
262
|
+
promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ''}`,
|
|
263
|
+
promptChangePivotRowsLabel: count => `Rader (${count})`,
|
|
264
|
+
promptChangePivotValuesLabel: count => `Verdiar (${count})`,
|
|
265
|
+
promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
|
|
277
266
|
};
|
|
278
267
|
const nnNO = exports.nnNO = (0, _getGridLocalization.getGridLocalization)(nnNOGrid);
|
package/material/index.js
CHANGED
|
@@ -172,9 +172,9 @@ const BaseSelect = (0, _forwardRef.forwardRef)(function BaseSelect(props, ref) {
|
|
|
172
172
|
labelId: labelId,
|
|
173
173
|
label: label,
|
|
174
174
|
displayEmpty: true,
|
|
175
|
-
onChange: onChange
|
|
175
|
+
onChange: onChange,
|
|
176
|
+
variant: "outlined"
|
|
176
177
|
}, rest, {
|
|
177
|
-
variant: "outlined",
|
|
178
178
|
notched: true,
|
|
179
179
|
inputProps: slotProps?.htmlInput,
|
|
180
180
|
onOpen: onOpen,
|
|
@@ -8,6 +8,7 @@ import type { GridVisibleRowsLookupState } from "../hooks/features/filter/gridFi
|
|
|
8
8
|
import type { GridColumnResizeState } from "../hooks/features/columnResize/index.js";
|
|
9
9
|
import type { GridRowSpanningState } from "../hooks/features/rows/useGridRowSpanning.js";
|
|
10
10
|
import type { GridListViewState } from "../hooks/features/listView/useGridListView.js";
|
|
11
|
+
import type { GridRowReorderState } from "../hooks/features/rowReorder/gridRowReorderInterfaces.js";
|
|
11
12
|
/**
|
|
12
13
|
* Some props are passed on the state to enable grid selectors to select
|
|
13
14
|
* and react to them.
|
|
@@ -41,6 +42,7 @@ export interface GridStateCommunity {
|
|
|
41
42
|
columnResize: GridColumnResizeState;
|
|
42
43
|
rowSpanning: GridRowSpanningState;
|
|
43
44
|
listViewColumn: GridListViewState;
|
|
45
|
+
rowReorder: GridRowReorderState;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* The initial state of Data Grid.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.10.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Community plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"clsx": "^2.1.1",
|
|
44
44
|
"prop-types": "^15.8.1",
|
|
45
45
|
"use-sync-external-store": "^1.5.0",
|
|
46
|
-
"@mui/x-internals": "8.
|
|
47
|
-
"@mui/x-virtualizer": "0.1.
|
|
46
|
+
"@mui/x-internals": "8.10.0",
|
|
47
|
+
"@mui/x-virtualizer": "0.1.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@emotion/react": "^11.9.0",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"node": ">=14.0.0"
|
|
67
67
|
},
|
|
68
68
|
"private": false,
|
|
69
|
-
"module": "./esm/index.js",
|
|
70
69
|
"exports": {
|
|
71
70
|
"./package.json": "./package.json",
|
|
72
71
|
".": {
|