@mui/x-data-grid 6.18.4 → 6.18.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 +91 -0
- package/DataGrid/DataGrid.js +19 -19
- package/index.js +1 -1
- package/legacy/DataGrid/DataGrid.js +19 -19
- package/legacy/index.js +1 -1
- package/legacy/locales/svSE.js +31 -33
- package/legacy/locales/urPK.js +26 -28
- package/locales/svSE.js +31 -33
- package/locales/urPK.js +26 -28
- package/models/props/DataGridProps.d.ts +22 -22
- package/modern/DataGrid/DataGrid.js +19 -19
- package/modern/index.js +1 -1
- package/modern/locales/svSE.js +31 -33
- package/modern/locales/urPK.js +26 -28
- package/node/DataGrid/DataGrid.js +19 -19
- package/node/index.js +1 -1
- package/node/locales/svSE.js +31 -33
- package/node/locales/urPK.js +26 -28
- package/package.json +1 -1
package/locales/svSE.js
CHANGED
|
@@ -9,7 +9,7 @@ const svSEGrid = {
|
|
|
9
9
|
toolbarDensityLabel: 'Densitet',
|
|
10
10
|
toolbarDensityCompact: 'Kompakt',
|
|
11
11
|
toolbarDensityStandard: 'Standard',
|
|
12
|
-
toolbarDensityComfortable: '
|
|
12
|
+
toolbarDensityComfortable: 'Luftig',
|
|
13
13
|
// Columns selector toolbar button text
|
|
14
14
|
toolbarColumns: 'Kolumner',
|
|
15
15
|
toolbarColumnsLabel: 'Välj kolumner',
|
|
@@ -39,8 +39,8 @@ const svSEGrid = {
|
|
|
39
39
|
filterPanelAddFilter: 'Lägg till filter',
|
|
40
40
|
filterPanelRemoveAll: 'Ta bort alla',
|
|
41
41
|
filterPanelDeleteIconLabel: 'Ta bort',
|
|
42
|
-
filterPanelLogicOperator: 'Logisk
|
|
43
|
-
filterPanelOperator: '
|
|
42
|
+
filterPanelLogicOperator: 'Logisk operator',
|
|
43
|
+
filterPanelOperator: 'Operator',
|
|
44
44
|
filterPanelOperatorAnd: 'Och',
|
|
45
45
|
filterPanelOperatorOr: 'Eller',
|
|
46
46
|
filterPanelColumns: 'Kolumner',
|
|
@@ -48,7 +48,7 @@ const svSEGrid = {
|
|
|
48
48
|
filterPanelInputPlaceholder: 'Filtervärde',
|
|
49
49
|
// Filter operators text
|
|
50
50
|
filterOperatorContains: 'innehåller',
|
|
51
|
-
filterOperatorEquals: '
|
|
51
|
+
filterOperatorEquals: 'lika med',
|
|
52
52
|
filterOperatorStartsWith: 'börjar med',
|
|
53
53
|
filterOperatorEndsWith: 'slutar med',
|
|
54
54
|
filterOperatorIs: 'är',
|
|
@@ -60,34 +60,32 @@ const svSEGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'är tom',
|
|
61
61
|
filterOperatorIsNotEmpty: 'är inte tom',
|
|
62
62
|
filterOperatorIsAnyOf: 'är någon av',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
70
69
|
// Header filter operators text
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
headerFilterOperatorContains: 'Innehåller',
|
|
71
|
+
headerFilterOperatorEquals: 'Lika med',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Börjar med',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Slutar med',
|
|
74
|
+
headerFilterOperatorIs: 'Är',
|
|
75
|
+
headerFilterOperatorNot: 'Är inte',
|
|
76
|
+
headerFilterOperatorAfter: 'Är efter',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Är på eller efter',
|
|
78
|
+
headerFilterOperatorBefore: 'Är innan',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Är på eller innan',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Är tom',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Är inte tom',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Innehåller någon av',
|
|
83
|
+
'headerFilterOperator=': 'Lika med',
|
|
84
|
+
'headerFilterOperator!=': 'Inte lika med',
|
|
85
|
+
'headerFilterOperator>': 'Större än',
|
|
86
|
+
'headerFilterOperator>=': 'Större eller lika med',
|
|
87
|
+
'headerFilterOperator<': 'Mindre än',
|
|
88
|
+
'headerFilterOperator<=': 'Mindre eller lika med',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'något',
|
|
93
91
|
filterValueTrue: 'sant',
|
|
@@ -98,7 +96,7 @@ const svSEGrid = {
|
|
|
98
96
|
columnMenuManageColumns: 'Hantera kolumner',
|
|
99
97
|
columnMenuFilter: 'Filtrera',
|
|
100
98
|
columnMenuHideColumn: 'Dölj',
|
|
101
|
-
columnMenuUnsort: '
|
|
99
|
+
columnMenuUnsort: 'Ta bort sortering',
|
|
102
100
|
columnMenuSortAsc: 'Sortera stigande',
|
|
103
101
|
columnMenuSortDesc: 'Sortera fallande',
|
|
104
102
|
// Column header text
|
|
@@ -142,7 +140,7 @@ const svSEGrid = {
|
|
|
142
140
|
rowReorderingHeaderName: 'Ordna om rader',
|
|
143
141
|
// Aggregation
|
|
144
142
|
aggregationMenuItemHeader: 'Aggregering',
|
|
145
|
-
aggregationFunctionLabelSum: '
|
|
143
|
+
aggregationFunctionLabelSum: 'summa',
|
|
146
144
|
aggregationFunctionLabelAvg: 'medel',
|
|
147
145
|
aggregationFunctionLabelMin: 'min',
|
|
148
146
|
aggregationFunctionLabelMax: 'max',
|
package/locales/urPK.js
CHANGED
|
@@ -37,7 +37,7 @@ const urPKGrid = {
|
|
|
37
37
|
columnsPanelHideAllButton: 'سارے چھپائیں',
|
|
38
38
|
// Filter panel text
|
|
39
39
|
filterPanelAddFilter: 'نیا فلٹر',
|
|
40
|
-
|
|
40
|
+
filterPanelRemoveAll: 'سارے ختم کریں',
|
|
41
41
|
filterPanelDeleteIconLabel: 'ختم کریں',
|
|
42
42
|
filterPanelLogicOperator: 'لاجک آپریٹر',
|
|
43
43
|
filterPanelOperator: 'آپریٹر',
|
|
@@ -60,34 +60,32 @@ const urPKGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'خالی ہے',
|
|
61
61
|
filterOperatorIsNotEmpty: 'خالی نہیں ہے',
|
|
62
62
|
filterOperatorIsAnyOf: 'ان میں سے کوئی ہے',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
70
69
|
// Header filter operators text
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
headerFilterOperatorContains: 'شامل ہے',
|
|
71
|
+
headerFilterOperatorEquals: 'برابر ہے',
|
|
72
|
+
headerFilterOperatorStartsWith: 'شروع ہوتا ہے',
|
|
73
|
+
headerFilterOperatorEndsWith: 'ختم ہوتا ہے',
|
|
74
|
+
headerFilterOperatorIs: 'ہے',
|
|
75
|
+
headerFilterOperatorNot: 'نہیں ہے',
|
|
76
|
+
headerFilterOperatorAfter: 'بعد میں ہے',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'پر یا بعد میں ہے',
|
|
78
|
+
headerFilterOperatorBefore: 'پہلے ہے',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'پر یا پہلے ہے',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'خالی ہے',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'خالی نہیں ہے',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'ان میں سے کوئی ہے',
|
|
83
|
+
'headerFilterOperator=': 'برابر ہے',
|
|
84
|
+
'headerFilterOperator!=': 'برابر نہیں ہے',
|
|
85
|
+
'headerFilterOperator>': 'ذیادہ ہے',
|
|
86
|
+
'headerFilterOperator>=': 'ذیادہ یا برابر ہے',
|
|
87
|
+
'headerFilterOperator<': 'کم ہے',
|
|
88
|
+
'headerFilterOperator<=': 'کم یا برابر ہے',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'کوئی بھی',
|
|
93
91
|
filterValueTrue: 'صحیح',
|
|
@@ -79,7 +79,7 @@ export interface DataGridPropsWithComplexDefaultValueBeforeProcessing {
|
|
|
79
79
|
*/
|
|
80
80
|
slots?: UncapitalizeObjectKeys<Partial<GridSlotsComponent>>;
|
|
81
81
|
/**
|
|
82
|
-
* Set the locale text of the
|
|
82
|
+
* Set the locale text of the Data Grid.
|
|
83
83
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
84
84
|
*/
|
|
85
85
|
localeText?: Partial<GridLocaleText>;
|
|
@@ -92,7 +92,7 @@ export interface DataGridPropsWithComplexDefaultValueBeforeProcessing {
|
|
|
92
92
|
*/
|
|
93
93
|
export interface DataGridPropsWithDefaultValues {
|
|
94
94
|
/**
|
|
95
|
-
* If `true`, the
|
|
95
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
96
96
|
* @default false
|
|
97
97
|
*/
|
|
98
98
|
autoHeight: boolean;
|
|
@@ -102,7 +102,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
102
102
|
*/
|
|
103
103
|
autoPageSize: boolean;
|
|
104
104
|
/**
|
|
105
|
-
* If `true`, the
|
|
105
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
106
106
|
* @default false
|
|
107
107
|
*/
|
|
108
108
|
checkboxSelection: boolean;
|
|
@@ -138,7 +138,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
138
138
|
*/
|
|
139
139
|
columnThreshold: number;
|
|
140
140
|
/**
|
|
141
|
-
* Set the density of the
|
|
141
|
+
* Set the density of the Data Grid.
|
|
142
142
|
* @default "standard"
|
|
143
143
|
*/
|
|
144
144
|
density: GridDensity;
|
|
@@ -210,7 +210,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
210
210
|
*/
|
|
211
211
|
filterDebounceMs: number;
|
|
212
212
|
/**
|
|
213
|
-
* Sets the height in pixel of the column headers in the
|
|
213
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
214
214
|
* @default 56
|
|
215
215
|
*/
|
|
216
216
|
columnHeaderHeight: number;
|
|
@@ -271,7 +271,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
271
271
|
*/
|
|
272
272
|
paginationMode: GridFeatureMode;
|
|
273
273
|
/**
|
|
274
|
-
* Sets the height in pixel of a row in the
|
|
274
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
275
275
|
* @default 52
|
|
276
276
|
*/
|
|
277
277
|
rowHeight: number;
|
|
@@ -311,7 +311,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
311
311
|
*/
|
|
312
312
|
sortingMode: GridFeatureMode;
|
|
313
313
|
/**
|
|
314
|
-
* If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
314
|
+
* If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
|
|
315
315
|
* It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
|
|
316
316
|
* @default 0
|
|
317
317
|
*/
|
|
@@ -327,13 +327,13 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
327
327
|
*/
|
|
328
328
|
disableColumnResize: boolean;
|
|
329
329
|
/**
|
|
330
|
-
* If `true`, moving the mouse pointer outside the
|
|
330
|
+
* If `true`, moving the mouse pointer outside the Data Grid before releasing the mouse button
|
|
331
331
|
* in a column re-order action will not cause the column to jump back to its original position.
|
|
332
332
|
* @default false
|
|
333
333
|
*/
|
|
334
334
|
keepColumnPositionIfDraggedOutside: boolean;
|
|
335
335
|
/**
|
|
336
|
-
* If `true`, the
|
|
336
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
337
337
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
338
338
|
* @default false
|
|
339
339
|
*/
|
|
@@ -359,17 +359,17 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
359
359
|
*/
|
|
360
360
|
export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel = any> extends CommonProps {
|
|
361
361
|
/**
|
|
362
|
-
* The ref object that allows
|
|
362
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
363
363
|
*/
|
|
364
364
|
apiRef?: React.MutableRefObject<GridApiCommunity>;
|
|
365
365
|
/**
|
|
366
|
-
* Forwarded props for the
|
|
366
|
+
* Forwarded props for the Data Grid root element.
|
|
367
367
|
* @ignore - do not document.
|
|
368
368
|
*/
|
|
369
369
|
forwardedProps?: Record<string, unknown>;
|
|
370
370
|
/**
|
|
371
371
|
* Signal to the underlying logic what version of the public component API
|
|
372
|
-
* of the
|
|
372
|
+
* of the Data Grid is exposed [[GridSignature]].
|
|
373
373
|
* @ignore - do not document.
|
|
374
374
|
*/
|
|
375
375
|
signature?: string;
|
|
@@ -383,7 +383,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
383
383
|
*/
|
|
384
384
|
rowCount?: number;
|
|
385
385
|
/**
|
|
386
|
-
* Override the height/width of the
|
|
386
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
387
387
|
*/
|
|
388
388
|
scrollbarSize?: number;
|
|
389
389
|
/**
|
|
@@ -552,14 +552,14 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
552
552
|
*/
|
|
553
553
|
onRowDoubleClick?: GridEventListener<'rowDoubleClick'>;
|
|
554
554
|
/**
|
|
555
|
-
* Callback fired when the
|
|
555
|
+
* Callback fired when the Data Grid is resized.
|
|
556
556
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
557
557
|
* @param {MuiEvent<{}>} event The event object.
|
|
558
558
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
559
559
|
*/
|
|
560
560
|
onResize?: GridEventListener<'debouncedResize'>;
|
|
561
561
|
/**
|
|
562
|
-
* Callback fired when the state of the
|
|
562
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
563
563
|
* @param {GridState} state The new state.
|
|
564
564
|
* @param {MuiEvent<{}>} event The event object.
|
|
565
565
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -625,7 +625,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
625
625
|
*/
|
|
626
626
|
onRowModesModelChange?: (rowModesModel: GridRowModesModel, details: GridCallbackDetails) => void;
|
|
627
627
|
/**
|
|
628
|
-
* Set the filter model of the
|
|
628
|
+
* Set the filter model of the Data Grid.
|
|
629
629
|
*/
|
|
630
630
|
filterModel?: GridFilterModel;
|
|
631
631
|
/**
|
|
@@ -635,7 +635,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
635
635
|
*/
|
|
636
636
|
onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
|
|
637
637
|
/**
|
|
638
|
-
* Sets the row selection model of the
|
|
638
|
+
* Sets the row selection model of the Data Grid.
|
|
639
639
|
*/
|
|
640
640
|
rowSelectionModel?: GridInputRowSelectionModel;
|
|
641
641
|
/**
|
|
@@ -645,8 +645,8 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
645
645
|
*/
|
|
646
646
|
onRowSelectionModelChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
|
|
647
647
|
/**
|
|
648
|
-
* Set the column visibility model of the
|
|
649
|
-
* If defined, the
|
|
648
|
+
* Set the column visibility model of the Data Grid.
|
|
649
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
650
650
|
*/
|
|
651
651
|
columnVisibilityModel?: GridColumnVisibilityModel;
|
|
652
652
|
/**
|
|
@@ -656,7 +656,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
656
656
|
*/
|
|
657
657
|
onColumnVisibilityModelChange?: (model: GridColumnVisibilityModel, details: GridCallbackDetails) => void;
|
|
658
658
|
/**
|
|
659
|
-
* Set the sort model of the
|
|
659
|
+
* Set the sort model of the Data Grid.
|
|
660
660
|
*/
|
|
661
661
|
sortModel?: GridSortModel;
|
|
662
662
|
/**
|
|
@@ -666,11 +666,11 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
|
|
|
666
666
|
*/
|
|
667
667
|
onSortModelChange?: (model: GridSortModel, details: GridCallbackDetails) => void;
|
|
668
668
|
/**
|
|
669
|
-
* The label of the
|
|
669
|
+
* The label of the Data Grid.
|
|
670
670
|
*/
|
|
671
671
|
'aria-label'?: string;
|
|
672
672
|
/**
|
|
673
|
-
* The id of the element containing a label for the
|
|
673
|
+
* The id of the element containing a label for the Data Grid.
|
|
674
674
|
*/
|
|
675
675
|
'aria-labelledby'?: string;
|
|
676
676
|
/**
|
|
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
|
|
|
53
53
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
54
54
|
// ----------------------------------------------------------------------
|
|
55
55
|
/**
|
|
56
|
-
* The ref object that allows
|
|
56
|
+
* The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
|
|
57
57
|
*/
|
|
58
58
|
apiRef: PropTypes.shape({
|
|
59
59
|
current: PropTypes.object.isRequired
|
|
60
60
|
}),
|
|
61
61
|
/**
|
|
62
|
-
* The label of the
|
|
62
|
+
* The label of the Data Grid.
|
|
63
63
|
*/
|
|
64
64
|
'aria-label': PropTypes.string,
|
|
65
65
|
/**
|
|
66
|
-
* The id of the element containing a label for the
|
|
66
|
+
* The id of the element containing a label for the Data Grid.
|
|
67
67
|
*/
|
|
68
68
|
'aria-labelledby': PropTypes.string,
|
|
69
69
|
/**
|
|
70
|
-
* If `true`, the
|
|
70
|
+
* If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
autoHeight: PropTypes.bool,
|
|
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
|
|
|
81
81
|
*/
|
|
82
82
|
cellModesModel: PropTypes.object,
|
|
83
83
|
/**
|
|
84
|
-
* If `true`, the
|
|
84
|
+
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
85
85
|
* @default false
|
|
86
86
|
*/
|
|
87
87
|
checkboxSelection: PropTypes.bool,
|
|
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
|
|
|
101
101
|
columnBuffer: PropTypes.number,
|
|
102
102
|
columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
|
|
103
103
|
/**
|
|
104
|
-
* Sets the height in pixel of the column headers in the
|
|
104
|
+
* Sets the height in pixel of the column headers in the Data Grid.
|
|
105
105
|
* @default 56
|
|
106
106
|
*/
|
|
107
107
|
columnHeaderHeight: PropTypes.number,
|
|
@@ -121,8 +121,8 @@ DataGridRaw.propTypes = {
|
|
|
121
121
|
*/
|
|
122
122
|
columnThreshold: PropTypes.number,
|
|
123
123
|
/**
|
|
124
|
-
* Set the column visibility model of the
|
|
125
|
-
* If defined, the
|
|
124
|
+
* Set the column visibility model of the Data Grid.
|
|
125
|
+
* If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
|
|
126
126
|
*/
|
|
127
127
|
columnVisibilityModel: PropTypes.object,
|
|
128
128
|
/**
|
|
@@ -136,7 +136,7 @@ DataGridRaw.propTypes = {
|
|
|
136
136
|
*/
|
|
137
137
|
componentsProps: PropTypes.object,
|
|
138
138
|
/**
|
|
139
|
-
* Set the density of the
|
|
139
|
+
* Set the density of the Data Grid.
|
|
140
140
|
* @default "standard"
|
|
141
141
|
*/
|
|
142
142
|
density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
|
|
@@ -202,7 +202,7 @@ DataGridRaw.propTypes = {
|
|
|
202
202
|
*/
|
|
203
203
|
filterMode: PropTypes.oneOf(['client', 'server']),
|
|
204
204
|
/**
|
|
205
|
-
* Set the filter model of the
|
|
205
|
+
* Set the filter model of the Data Grid.
|
|
206
206
|
*/
|
|
207
207
|
filterModel: PropTypes.shape({
|
|
208
208
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
@@ -217,7 +217,7 @@ DataGridRaw.propTypes = {
|
|
|
217
217
|
quickFilterValues: PropTypes.array
|
|
218
218
|
}),
|
|
219
219
|
/**
|
|
220
|
-
* Forwarded props for the
|
|
220
|
+
* Forwarded props for the Data Grid root element.
|
|
221
221
|
* @ignore - do not document.
|
|
222
222
|
*/
|
|
223
223
|
forwardedProps: PropTypes.object,
|
|
@@ -314,7 +314,7 @@ DataGridRaw.propTypes = {
|
|
|
314
314
|
*/
|
|
315
315
|
loading: PropTypes.bool,
|
|
316
316
|
/**
|
|
317
|
-
* Set the locale text of the
|
|
317
|
+
* Set the locale text of the Data Grid.
|
|
318
318
|
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
319
319
|
*/
|
|
320
320
|
localeText: PropTypes.object,
|
|
@@ -482,7 +482,7 @@ DataGridRaw.propTypes = {
|
|
|
482
482
|
*/
|
|
483
483
|
onProcessRowUpdateError: PropTypes.func,
|
|
484
484
|
/**
|
|
485
|
-
* Callback fired when the
|
|
485
|
+
* Callback fired when the Data Grid is resized.
|
|
486
486
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
487
487
|
* @param {MuiEvent<{}>} event The event object.
|
|
488
488
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -540,7 +540,7 @@ DataGridRaw.propTypes = {
|
|
|
540
540
|
*/
|
|
541
541
|
onSortModelChange: PropTypes.func,
|
|
542
542
|
/**
|
|
543
|
-
* Callback fired when the state of the
|
|
543
|
+
* Callback fired when the state of the Data Grid is updated.
|
|
544
544
|
* @param {GridState} state The new state.
|
|
545
545
|
* @param {MuiEvent<{}>} event The event object.
|
|
546
546
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
@@ -594,7 +594,7 @@ DataGridRaw.propTypes = {
|
|
|
594
594
|
*/
|
|
595
595
|
rowCount: PropTypes.number,
|
|
596
596
|
/**
|
|
597
|
-
* Sets the height in pixel of a row in the
|
|
597
|
+
* Sets the height in pixel of a row in the Data Grid.
|
|
598
598
|
* @default 52
|
|
599
599
|
*/
|
|
600
600
|
rowHeight: PropTypes.number,
|
|
@@ -619,7 +619,7 @@ DataGridRaw.propTypes = {
|
|
|
619
619
|
*/
|
|
620
620
|
rowSelection: PropTypes.bool,
|
|
621
621
|
/**
|
|
622
|
-
* Sets the row selection model of the
|
|
622
|
+
* Sets the row selection model of the Data Grid.
|
|
623
623
|
*/
|
|
624
624
|
rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
|
|
625
625
|
/**
|
|
@@ -633,7 +633,7 @@ DataGridRaw.propTypes = {
|
|
|
633
633
|
*/
|
|
634
634
|
rowThreshold: PropTypes.number,
|
|
635
635
|
/**
|
|
636
|
-
* Override the height/width of the
|
|
636
|
+
* Override the height/width of the Data Grid inner scrollbar.
|
|
637
637
|
*/
|
|
638
638
|
scrollbarSize: PropTypes.number,
|
|
639
639
|
/**
|
|
@@ -667,7 +667,7 @@ DataGridRaw.propTypes = {
|
|
|
667
667
|
*/
|
|
668
668
|
sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
|
|
669
669
|
/**
|
|
670
|
-
* Set the sort model of the
|
|
670
|
+
* Set the sort model of the Data Grid.
|
|
671
671
|
*/
|
|
672
672
|
sortModel: PropTypes.arrayOf(PropTypes.shape({
|
|
673
673
|
field: PropTypes.string.isRequired,
|
|
@@ -678,7 +678,7 @@ DataGridRaw.propTypes = {
|
|
|
678
678
|
*/
|
|
679
679
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
680
680
|
/**
|
|
681
|
-
* If `true`, the
|
|
681
|
+
* If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
|
|
682
682
|
* If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
|
|
683
683
|
* @default false
|
|
684
684
|
*/
|
package/modern/index.js
CHANGED
package/modern/locales/svSE.js
CHANGED
|
@@ -9,7 +9,7 @@ const svSEGrid = {
|
|
|
9
9
|
toolbarDensityLabel: 'Densitet',
|
|
10
10
|
toolbarDensityCompact: 'Kompakt',
|
|
11
11
|
toolbarDensityStandard: 'Standard',
|
|
12
|
-
toolbarDensityComfortable: '
|
|
12
|
+
toolbarDensityComfortable: 'Luftig',
|
|
13
13
|
// Columns selector toolbar button text
|
|
14
14
|
toolbarColumns: 'Kolumner',
|
|
15
15
|
toolbarColumnsLabel: 'Välj kolumner',
|
|
@@ -39,8 +39,8 @@ const svSEGrid = {
|
|
|
39
39
|
filterPanelAddFilter: 'Lägg till filter',
|
|
40
40
|
filterPanelRemoveAll: 'Ta bort alla',
|
|
41
41
|
filterPanelDeleteIconLabel: 'Ta bort',
|
|
42
|
-
filterPanelLogicOperator: 'Logisk
|
|
43
|
-
filterPanelOperator: '
|
|
42
|
+
filterPanelLogicOperator: 'Logisk operator',
|
|
43
|
+
filterPanelOperator: 'Operator',
|
|
44
44
|
filterPanelOperatorAnd: 'Och',
|
|
45
45
|
filterPanelOperatorOr: 'Eller',
|
|
46
46
|
filterPanelColumns: 'Kolumner',
|
|
@@ -48,7 +48,7 @@ const svSEGrid = {
|
|
|
48
48
|
filterPanelInputPlaceholder: 'Filtervärde',
|
|
49
49
|
// Filter operators text
|
|
50
50
|
filterOperatorContains: 'innehåller',
|
|
51
|
-
filterOperatorEquals: '
|
|
51
|
+
filterOperatorEquals: 'lika med',
|
|
52
52
|
filterOperatorStartsWith: 'börjar med',
|
|
53
53
|
filterOperatorEndsWith: 'slutar med',
|
|
54
54
|
filterOperatorIs: 'är',
|
|
@@ -60,34 +60,32 @@ const svSEGrid = {
|
|
|
60
60
|
filterOperatorIsEmpty: 'är tom',
|
|
61
61
|
filterOperatorIsNotEmpty: 'är inte tom',
|
|
62
62
|
filterOperatorIsAnyOf: 'är någon av',
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
70
69
|
// Header filter operators text
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
headerFilterOperatorContains: 'Innehåller',
|
|
71
|
+
headerFilterOperatorEquals: 'Lika med',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Börjar med',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Slutar med',
|
|
74
|
+
headerFilterOperatorIs: 'Är',
|
|
75
|
+
headerFilterOperatorNot: 'Är inte',
|
|
76
|
+
headerFilterOperatorAfter: 'Är efter',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Är på eller efter',
|
|
78
|
+
headerFilterOperatorBefore: 'Är innan',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Är på eller innan',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Är tom',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Är inte tom',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Innehåller någon av',
|
|
83
|
+
'headerFilterOperator=': 'Lika med',
|
|
84
|
+
'headerFilterOperator!=': 'Inte lika med',
|
|
85
|
+
'headerFilterOperator>': 'Större än',
|
|
86
|
+
'headerFilterOperator>=': 'Större eller lika med',
|
|
87
|
+
'headerFilterOperator<': 'Mindre än',
|
|
88
|
+
'headerFilterOperator<=': 'Mindre eller lika med',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'något',
|
|
93
91
|
filterValueTrue: 'sant',
|
|
@@ -98,7 +96,7 @@ const svSEGrid = {
|
|
|
98
96
|
columnMenuManageColumns: 'Hantera kolumner',
|
|
99
97
|
columnMenuFilter: 'Filtrera',
|
|
100
98
|
columnMenuHideColumn: 'Dölj',
|
|
101
|
-
columnMenuUnsort: '
|
|
99
|
+
columnMenuUnsort: 'Ta bort sortering',
|
|
102
100
|
columnMenuSortAsc: 'Sortera stigande',
|
|
103
101
|
columnMenuSortDesc: 'Sortera fallande',
|
|
104
102
|
// Column header text
|
|
@@ -142,7 +140,7 @@ const svSEGrid = {
|
|
|
142
140
|
rowReorderingHeaderName: 'Ordna om rader',
|
|
143
141
|
// Aggregation
|
|
144
142
|
aggregationMenuItemHeader: 'Aggregering',
|
|
145
|
-
aggregationFunctionLabelSum: '
|
|
143
|
+
aggregationFunctionLabelSum: 'summa',
|
|
146
144
|
aggregationFunctionLabelAvg: 'medel',
|
|
147
145
|
aggregationFunctionLabelMin: 'min',
|
|
148
146
|
aggregationFunctionLabelMax: 'max',
|