@mui/x-data-grid 6.18.3 → 6.18.5
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 +84 -1
- package/components/cell/GridCell.js +15 -15
- package/index.js +1 -1
- package/legacy/components/cell/GridCell.js +14 -14
- package/legacy/index.js +1 -1
- package/legacy/locales/daDK.js +37 -39
- package/legacy/locales/svSE.js +31 -33
- package/legacy/locales/urPK.js +26 -28
- package/locales/daDK.js +37 -39
- package/locales/svSE.js +31 -33
- package/locales/urPK.js +26 -28
- package/modern/components/cell/GridCell.js +15 -15
- package/modern/index.js +1 -1
- package/modern/locales/daDK.js +37 -39
- package/modern/locales/svSE.js +31 -33
- package/modern/locales/urPK.js +26 -28
- package/node/components/cell/GridCell.js +15 -15
- package/node/index.js +1 -1
- package/node/locales/daDK.js +37 -39
- 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: 'صحیح',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
3
|
const _excluded = ["changeReason", "unstable_updateValueOnRender"],
|
|
4
|
-
_excluded2 = ["align", "children", "editCellState", "colIndex", "column", "cellMode", "field", "formattedValue", "hasFocus", "height", "isEditable", "isSelected", "rowId", "tabIndex", "value", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
5
|
-
_excluded3 = ["column", "rowId", "editCellState", "align", "children", "colIndex", "height", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
4
|
+
_excluded2 = ["align", "children", "editCellState", "colIndex", "column", "cellMode", "field", "formattedValue", "hasFocus", "height", "isEditable", "isSelected", "rowId", "tabIndex", "style", "value", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
5
|
+
_excluded3 = ["column", "rowId", "editCellState", "align", "children", "colIndex", "height", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver", "style"],
|
|
6
6
|
_excluded4 = ["changeReason", "unstable_updateValueOnRender"];
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
@@ -170,6 +170,7 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
170
170
|
isSelected,
|
|
171
171
|
rowId,
|
|
172
172
|
tabIndex,
|
|
173
|
+
style: styleProp,
|
|
173
174
|
value,
|
|
174
175
|
width,
|
|
175
176
|
className,
|
|
@@ -236,15 +237,14 @@ const GridCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
236
237
|
border: 0
|
|
237
238
|
};
|
|
238
239
|
}
|
|
239
|
-
const cellStyle = {
|
|
240
|
+
const cellStyle = _extends({
|
|
240
241
|
minWidth: width,
|
|
241
242
|
maxWidth: width,
|
|
242
243
|
minHeight: height,
|
|
243
|
-
maxHeight: height === 'auto' ? 'none' : height
|
|
244
|
-
};
|
|
245
|
-
|
|
244
|
+
maxHeight: height === 'auto' ? 'none' : height
|
|
245
|
+
}, styleProp);
|
|
246
246
|
return cellStyle;
|
|
247
|
-
}, [width, height, isNotVisible]);
|
|
247
|
+
}, [width, height, isNotVisible, styleProp]);
|
|
248
248
|
React.useEffect(() => {
|
|
249
249
|
if (!hasFocus || cellMode === GridCellModes.Edit) {
|
|
250
250
|
return;
|
|
@@ -406,7 +406,8 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
406
406
|
onKeyDown,
|
|
407
407
|
onKeyUp,
|
|
408
408
|
onDragEnter,
|
|
409
|
-
onDragOver
|
|
409
|
+
onDragOver,
|
|
410
|
+
style: styleProp
|
|
410
411
|
} = props,
|
|
411
412
|
other = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
412
413
|
const apiRef = useGridApiContext();
|
|
@@ -497,22 +498,21 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
497
498
|
}, [apiRef, field, rowId]);
|
|
498
499
|
const style = React.useMemo(() => {
|
|
499
500
|
if (isNotVisible) {
|
|
500
|
-
return {
|
|
501
|
+
return _extends({
|
|
501
502
|
padding: 0,
|
|
502
503
|
opacity: 0,
|
|
503
504
|
width: 0,
|
|
504
505
|
border: 0
|
|
505
|
-
};
|
|
506
|
+
}, styleProp);
|
|
506
507
|
}
|
|
507
|
-
const cellStyle = {
|
|
508
|
+
const cellStyle = _extends({
|
|
508
509
|
minWidth: width,
|
|
509
510
|
maxWidth: width,
|
|
510
511
|
minHeight: height,
|
|
511
|
-
maxHeight: height === 'auto' ? 'none' : height
|
|
512
|
-
};
|
|
513
|
-
|
|
512
|
+
maxHeight: height === 'auto' ? 'none' : height
|
|
513
|
+
}, styleProp);
|
|
514
514
|
return cellStyle;
|
|
515
|
-
}, [width, height, isNotVisible]);
|
|
515
|
+
}, [width, height, isNotVisible, styleProp]);
|
|
516
516
|
React.useEffect(() => {
|
|
517
517
|
if (!hasFocus || cellMode === GridCellModes.Edit) {
|
|
518
518
|
return;
|
package/modern/index.js
CHANGED
package/modern/locales/daDK.js
CHANGED
|
@@ -47,47 +47,45 @@ const daDKGrid = {
|
|
|
47
47
|
filterPanelInputLabel: 'Værdi',
|
|
48
48
|
filterPanelInputPlaceholder: 'Filter værdi',
|
|
49
49
|
// Filter operators text
|
|
50
|
-
filterOperatorContains: '
|
|
51
|
-
filterOperatorEquals: '
|
|
52
|
-
filterOperatorStartsWith: '
|
|
53
|
-
filterOperatorEndsWith: '
|
|
54
|
-
filterOperatorIs: '
|
|
55
|
-
filterOperatorNot: '
|
|
56
|
-
filterOperatorAfter: '
|
|
57
|
-
filterOperatorOnOrAfter: '
|
|
58
|
-
filterOperatorBefore: '
|
|
59
|
-
filterOperatorOnOrBefore: '
|
|
60
|
-
filterOperatorIsEmpty: '
|
|
61
|
-
filterOperatorIsNotEmpty: '
|
|
50
|
+
filterOperatorContains: 'indeholder',
|
|
51
|
+
filterOperatorEquals: 'lig med',
|
|
52
|
+
filterOperatorStartsWith: 'begynder med',
|
|
53
|
+
filterOperatorEndsWith: 'ender med',
|
|
54
|
+
filterOperatorIs: 'er lig med',
|
|
55
|
+
filterOperatorNot: 'er ikke lig med',
|
|
56
|
+
filterOperatorAfter: 'efter',
|
|
57
|
+
filterOperatorOnOrAfter: 'på eller efter',
|
|
58
|
+
filterOperatorBefore: 'før',
|
|
59
|
+
filterOperatorOnOrBefore: 'på eller før',
|
|
60
|
+
filterOperatorIsEmpty: 'indeholder ikke data',
|
|
61
|
+
filterOperatorIsNotEmpty: 'indeholder data',
|
|
62
62
|
filterOperatorIsAnyOf: 'indeholder en af',
|
|
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: 'Indeholder',
|
|
71
|
+
headerFilterOperatorEquals: 'Lig med',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Begynder med',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Ender med',
|
|
74
|
+
headerFilterOperatorIs: 'Er lig med',
|
|
75
|
+
headerFilterOperatorNot: 'Er ikke lig med',
|
|
76
|
+
headerFilterOperatorAfter: 'Efter',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'På eller efter',
|
|
78
|
+
headerFilterOperatorBefore: 'Før',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'På eller før',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Indeholder ikke data',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Indeholder data',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Indeholder en af',
|
|
83
|
+
'headerFilterOperator=': 'Lig med',
|
|
84
|
+
'headerFilterOperator!=': 'Ikke lig med',
|
|
85
|
+
'headerFilterOperator>': 'Større end',
|
|
86
|
+
'headerFilterOperator>=': 'Større end eller lig med',
|
|
87
|
+
'headerFilterOperator<': 'Mindre end',
|
|
88
|
+
'headerFilterOperator<=': 'Mindre end eller lig med',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'hvilken som helst',
|
|
93
91
|
filterValueTrue: 'positiv',
|
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',
|
package/modern/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: 'صحیح',
|
|
@@ -22,8 +22,8 @@ var _gridFocusStateSelector = require("../../hooks/features/focus/gridFocusState
|
|
|
22
22
|
var _useGridParamsApi = require("../../hooks/features/rows/useGridParamsApi");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
24
|
const _excluded = ["changeReason", "unstable_updateValueOnRender"],
|
|
25
|
-
_excluded2 = ["align", "children", "editCellState", "colIndex", "column", "cellMode", "field", "formattedValue", "hasFocus", "height", "isEditable", "isSelected", "rowId", "tabIndex", "value", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
26
|
-
_excluded3 = ["column", "rowId", "editCellState", "align", "children", "colIndex", "height", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
25
|
+
_excluded2 = ["align", "children", "editCellState", "colIndex", "column", "cellMode", "field", "formattedValue", "hasFocus", "height", "isEditable", "isSelected", "rowId", "tabIndex", "style", "value", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver"],
|
|
26
|
+
_excluded3 = ["column", "rowId", "editCellState", "align", "children", "colIndex", "height", "width", "className", "showRightBorder", "extendRowFullWidth", "row", "colSpan", "disableDragEvents", "isNotVisible", "onClick", "onDoubleClick", "onMouseDown", "onMouseUp", "onMouseOver", "onKeyDown", "onKeyUp", "onDragEnter", "onDragOver", "style"],
|
|
27
27
|
_excluded4 = ["changeReason", "unstable_updateValueOnRender"];
|
|
28
28
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
29
29
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -179,6 +179,7 @@ const GridCell = exports.GridCell = /*#__PURE__*/React.forwardRef((props, ref) =
|
|
|
179
179
|
isSelected,
|
|
180
180
|
rowId,
|
|
181
181
|
tabIndex,
|
|
182
|
+
style: styleProp,
|
|
182
183
|
value,
|
|
183
184
|
width,
|
|
184
185
|
className,
|
|
@@ -245,15 +246,14 @@ const GridCell = exports.GridCell = /*#__PURE__*/React.forwardRef((props, ref) =
|
|
|
245
246
|
border: 0
|
|
246
247
|
};
|
|
247
248
|
}
|
|
248
|
-
const cellStyle = {
|
|
249
|
+
const cellStyle = (0, _extends2.default)({
|
|
249
250
|
minWidth: width,
|
|
250
251
|
maxWidth: width,
|
|
251
252
|
minHeight: height,
|
|
252
|
-
maxHeight: height === 'auto' ? 'none' : height
|
|
253
|
-
};
|
|
254
|
-
|
|
253
|
+
maxHeight: height === 'auto' ? 'none' : height
|
|
254
|
+
}, styleProp);
|
|
255
255
|
return cellStyle;
|
|
256
|
-
}, [width, height, isNotVisible]);
|
|
256
|
+
}, [width, height, isNotVisible, styleProp]);
|
|
257
257
|
React.useEffect(() => {
|
|
258
258
|
if (!hasFocus || cellMode === _models.GridCellModes.Edit) {
|
|
259
259
|
return;
|
|
@@ -414,7 +414,8 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
414
414
|
onKeyDown,
|
|
415
415
|
onKeyUp,
|
|
416
416
|
onDragEnter,
|
|
417
|
-
onDragOver
|
|
417
|
+
onDragOver,
|
|
418
|
+
style: styleProp
|
|
418
419
|
} = props,
|
|
419
420
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded3);
|
|
420
421
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
@@ -505,22 +506,21 @@ const GridCellV7 = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
505
506
|
}, [apiRef, field, rowId]);
|
|
506
507
|
const style = React.useMemo(() => {
|
|
507
508
|
if (isNotVisible) {
|
|
508
|
-
return {
|
|
509
|
+
return (0, _extends2.default)({
|
|
509
510
|
padding: 0,
|
|
510
511
|
opacity: 0,
|
|
511
512
|
width: 0,
|
|
512
513
|
border: 0
|
|
513
|
-
};
|
|
514
|
+
}, styleProp);
|
|
514
515
|
}
|
|
515
|
-
const cellStyle = {
|
|
516
|
+
const cellStyle = (0, _extends2.default)({
|
|
516
517
|
minWidth: width,
|
|
517
518
|
maxWidth: width,
|
|
518
519
|
minHeight: height,
|
|
519
|
-
maxHeight: height === 'auto' ? 'none' : height
|
|
520
|
-
};
|
|
521
|
-
|
|
520
|
+
maxHeight: height === 'auto' ? 'none' : height
|
|
521
|
+
}, styleProp);
|
|
522
522
|
return cellStyle;
|
|
523
|
-
}, [width, height, isNotVisible]);
|
|
523
|
+
}, [width, height, isNotVisible, styleProp]);
|
|
524
524
|
React.useEffect(() => {
|
|
525
525
|
if (!hasFocus || cellMode === _models.GridCellModes.Edit) {
|
|
526
526
|
return;
|
package/node/index.js
CHANGED