@mui/x-data-grid 6.11.1 → 6.11.2
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 +57 -1
- package/DataGrid/DataGrid.d.ts +10 -0
- package/DataGrid/DataGrid.js +24 -1
- package/DataGrid/useDataGridProps.js +2 -0
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +0 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +5 -11
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +0 -1
- package/components/panel/filterPanel/GridFilterInputValue.js +16 -18
- package/components/panel/filterPanel/GridFilterPanel.js +1 -3
- package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +5 -5
- package/hooks/features/export/useGridPrintExport.js +0 -5
- package/hooks/features/export/utils.js +7 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
- package/hooks/features/filter/gridFilterUtils.js +23 -19
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +2 -2
- package/hooks/features/rows/useGridRows.js +11 -0
- package/hooks/utils/useTimeout.d.ts +9 -0
- package/hooks/utils/useTimeout.js +28 -0
- package/index.js +1 -1
- package/legacy/DataGrid/DataGrid.js +24 -1
- package/legacy/DataGrid/useDataGridProps.js +2 -0
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +5 -11
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +16 -18
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +1 -3
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +5 -5
- package/legacy/hooks/features/export/useGridPrintExport.js +0 -5
- package/legacy/hooks/features/export/utils.js +8 -6
- package/legacy/hooks/features/filter/gridFilterUtils.js +23 -19
- package/legacy/hooks/features/filter/useGridFilter.js +2 -2
- package/legacy/hooks/features/rows/useGridRows.js +11 -0
- package/legacy/hooks/utils/useTimeout.js +38 -0
- package/legacy/index.js +1 -1
- package/legacy/locales/esES.js +26 -28
- package/legacy/locales/zhCN.js +25 -27
- package/legacy/locales/zhTW.js +34 -38
- package/locales/esES.js +26 -28
- package/locales/zhCN.js +25 -27
- package/locales/zhTW.js +34 -38
- package/models/api/gridRowApi.d.ts +6 -0
- package/models/props/DataGridProps.d.ts +11 -0
- package/modern/DataGrid/DataGrid.js +24 -1
- package/modern/DataGrid/useDataGridProps.js +2 -0
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +5 -11
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +15 -17
- package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -3
- package/modern/components/toolbar/GridToolbarQuickFilter.js +5 -5
- package/modern/hooks/features/export/useGridPrintExport.js +0 -5
- package/modern/hooks/features/export/utils.js +7 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +23 -19
- package/modern/hooks/features/filter/useGridFilter.js +2 -2
- package/modern/hooks/features/rows/useGridRows.js +11 -0
- package/modern/hooks/utils/useTimeout.js +28 -0
- package/modern/index.js +1 -1
- package/modern/locales/esES.js +26 -28
- package/modern/locales/zhCN.js +25 -27
- package/modern/locales/zhTW.js +34 -38
- package/node/DataGrid/DataGrid.js +26 -1
- package/node/DataGrid/useDataGridProps.js +2 -0
- package/node/components/panel/filterPanel/GridFilterInputDate.js +5 -13
- package/node/components/panel/filterPanel/GridFilterInputValue.js +15 -19
- package/node/components/panel/filterPanel/GridFilterPanel.js +1 -3
- package/node/components/toolbar/GridToolbarQuickFilter.js +5 -5
- package/node/hooks/features/export/useGridPrintExport.js +0 -5
- package/node/hooks/features/export/utils.js +7 -1
- package/node/hooks/features/filter/gridFilterUtils.js +23 -19
- package/node/hooks/features/filter/useGridFilter.js +2 -2
- package/node/hooks/features/rows/useGridRows.js +11 -0
- package/node/hooks/utils/useTimeout.js +34 -0
- package/node/index.js +1 -1
- package/node/locales/esES.js +26 -28
- package/node/locales/zhCN.js +25 -27
- package/node/locales/zhTW.js +34 -38
- package/package.json +2 -2
package/node/index.js
CHANGED
package/node/locales/esES.js
CHANGED
|
@@ -63,37 +63,35 @@ const esESGrid = {
|
|
|
63
63
|
filterOperatorOnOrAfter: 'es en o posterior',
|
|
64
64
|
filterOperatorBefore: 'es anterior',
|
|
65
65
|
filterOperatorOnOrBefore: 'es en o anterior',
|
|
66
|
-
filterOperatorIsEmpty: '
|
|
66
|
+
filterOperatorIsEmpty: 'esta vacío',
|
|
67
67
|
filterOperatorIsNotEmpty: 'no esta vacío',
|
|
68
68
|
filterOperatorIsAnyOf: 'es cualquiera de',
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
'filterOperator=': '=',
|
|
70
|
+
'filterOperator!=': '!=',
|
|
71
|
+
'filterOperator>': '>',
|
|
72
|
+
'filterOperator>=': '>=',
|
|
73
|
+
'filterOperator<': '<',
|
|
74
|
+
'filterOperator<=': '<=',
|
|
76
75
|
// Header filter operators text
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
headerFilterOperatorContains: 'Contiene',
|
|
77
|
+
headerFilterOperatorEquals: 'Es igual a',
|
|
78
|
+
headerFilterOperatorStartsWith: 'Comienza con',
|
|
79
|
+
headerFilterOperatorEndsWith: 'Termina con',
|
|
80
|
+
headerFilterOperatorIs: 'Es',
|
|
81
|
+
headerFilterOperatorNot: 'No es',
|
|
82
|
+
headerFilterOperatorAfter: 'Esta después de',
|
|
83
|
+
headerFilterOperatorOnOrAfter: 'Esta en o después de',
|
|
84
|
+
headerFilterOperatorBefore: 'Esta antes de',
|
|
85
|
+
headerFilterOperatorOnOrBefore: 'Esta en o antes de',
|
|
86
|
+
headerFilterOperatorIsEmpty: 'Esta vacío',
|
|
87
|
+
headerFilterOperatorIsNotEmpty: 'No esta vacío',
|
|
88
|
+
headerFilterOperatorIsAnyOf: 'Es cualquiera de',
|
|
89
|
+
'headerFilterOperator=': 'Es igual a',
|
|
90
|
+
'headerFilterOperator!=': 'Es diferente a',
|
|
91
|
+
'headerFilterOperator>': 'Es mayor que',
|
|
92
|
+
'headerFilterOperator>=': 'Es mayor o igual que',
|
|
93
|
+
'headerFilterOperator<': 'Es menor que',
|
|
94
|
+
'headerFilterOperator<=': 'Es menor o igual que',
|
|
97
95
|
// Filter values text
|
|
98
96
|
filterValueAny: 'cualquiera',
|
|
99
97
|
filterValueTrue: 'verdadero',
|
package/node/locales/zhCN.js
CHANGED
|
@@ -66,34 +66,32 @@ const zhCNGrid = {
|
|
|
66
66
|
filterOperatorIsEmpty: '为空',
|
|
67
67
|
filterOperatorIsNotEmpty: '不为空',
|
|
68
68
|
filterOperatorIsAnyOf: '属于',
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
'filterOperator=': '=',
|
|
70
|
+
'filterOperator!=': '!=',
|
|
71
|
+
'filterOperator>': '>',
|
|
72
|
+
'filterOperator>=': '>=',
|
|
73
|
+
'filterOperator<': '<',
|
|
74
|
+
'filterOperator<=': '<=',
|
|
76
75
|
// Header filter operators text
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
headerFilterOperatorContains: '包含',
|
|
77
|
+
headerFilterOperatorEquals: '等于',
|
|
78
|
+
headerFilterOperatorStartsWith: '开始于',
|
|
79
|
+
headerFilterOperatorEndsWith: '结束于',
|
|
80
|
+
headerFilterOperatorIs: '是',
|
|
81
|
+
headerFilterOperatorNot: '不是',
|
|
82
|
+
headerFilterOperatorAfter: '在后面',
|
|
83
|
+
headerFilterOperatorOnOrAfter: '在当前或后面',
|
|
84
|
+
headerFilterOperatorBefore: '在前面',
|
|
85
|
+
headerFilterOperatorOnOrBefore: '在当前或前面',
|
|
86
|
+
headerFilterOperatorIsEmpty: '为空',
|
|
87
|
+
headerFilterOperatorIsNotEmpty: '不为空',
|
|
88
|
+
headerFilterOperatorIsAnyOf: '属于',
|
|
89
|
+
'headerFilterOperator=': '等于',
|
|
90
|
+
'headerFilterOperator!=': '不等于',
|
|
91
|
+
'headerFilterOperator>': '大于',
|
|
92
|
+
'headerFilterOperator>=': '大于或等于',
|
|
93
|
+
'headerFilterOperator<': '小雨',
|
|
94
|
+
'headerFilterOperator<=': '小于或等于',
|
|
97
95
|
// Filter values text
|
|
98
96
|
filterValueAny: '任何',
|
|
99
97
|
filterValueTrue: '真',
|
package/node/locales/zhTW.js
CHANGED
|
@@ -43,7 +43,7 @@ const zhTWGrid = {
|
|
|
43
43
|
columnsPanelHideAllButton: '隱藏所有',
|
|
44
44
|
// Filter panel text
|
|
45
45
|
filterPanelAddFilter: '增加篩選器',
|
|
46
|
-
|
|
46
|
+
filterPanelRemoveAll: '清除所有',
|
|
47
47
|
filterPanelDeleteIconLabel: '刪除',
|
|
48
48
|
filterPanelLogicOperator: '邏輯運算子',
|
|
49
49
|
filterPanelOperator: '運算子',
|
|
@@ -66,34 +66,32 @@ const zhTWGrid = {
|
|
|
66
66
|
filterOperatorIsEmpty: '為空',
|
|
67
67
|
filterOperatorIsNotEmpty: '不為空',
|
|
68
68
|
filterOperatorIsAnyOf: '是其中之一',
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
69
|
+
'filterOperator=': '=',
|
|
70
|
+
'filterOperator!=': '!=',
|
|
71
|
+
'filterOperator>': '>',
|
|
72
|
+
'filterOperator>=': '>=',
|
|
73
|
+
'filterOperator<': '<',
|
|
74
|
+
'filterOperator<=': '<=',
|
|
76
75
|
// Header filter operators text
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
76
|
+
headerFilterOperatorContains: '包含',
|
|
77
|
+
headerFilterOperatorEquals: '等於',
|
|
78
|
+
headerFilterOperatorStartsWith: '以...開頭',
|
|
79
|
+
headerFilterOperatorEndsWith: '以...結束',
|
|
80
|
+
headerFilterOperatorIs: '為',
|
|
81
|
+
headerFilterOperatorNot: '不為',
|
|
82
|
+
headerFilterOperatorAfter: '...之後',
|
|
83
|
+
headerFilterOperatorOnOrAfter: '...(含)之後',
|
|
84
|
+
headerFilterOperatorBefore: '...之前',
|
|
85
|
+
headerFilterOperatorOnOrBefore: '...(含)之前',
|
|
86
|
+
headerFilterOperatorIsEmpty: '為空',
|
|
87
|
+
headerFilterOperatorIsNotEmpty: '不為空',
|
|
88
|
+
headerFilterOperatorIsAnyOf: '是其中之一',
|
|
89
|
+
'headerFilterOperator=': '等於',
|
|
90
|
+
'headerFilterOperator!=': '不等於',
|
|
91
|
+
'headerFilterOperator>': '大於',
|
|
92
|
+
'headerFilterOperator>=': '大於或等於',
|
|
93
|
+
'headerFilterOperator<': '小於',
|
|
94
|
+
'headerFilterOperator<=': '小於或等於',
|
|
97
95
|
// Filter values text
|
|
98
96
|
filterValueAny: '任何值',
|
|
99
97
|
filterValueTrue: '真',
|
|
@@ -101,7 +99,7 @@ const zhTWGrid = {
|
|
|
101
99
|
// Column menu text
|
|
102
100
|
columnMenuLabel: '選單',
|
|
103
101
|
columnMenuShowColumns: '顯示欄位',
|
|
104
|
-
|
|
102
|
+
columnMenuManageColumns: '管理欄位',
|
|
105
103
|
columnMenuFilter: '篩選器',
|
|
106
104
|
columnMenuHideColumn: '隱藏',
|
|
107
105
|
columnMenuUnsort: '預設排序',
|
|
@@ -145,16 +143,14 @@ const zhTWGrid = {
|
|
|
145
143
|
expandDetailPanel: '展開',
|
|
146
144
|
collapseDetailPanel: '摺疊',
|
|
147
145
|
// Row reordering text
|
|
148
|
-
rowReorderingHeaderName: '排序'
|
|
149
|
-
|
|
146
|
+
rowReorderingHeaderName: '排序',
|
|
150
147
|
// Aggregation
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
148
|
+
aggregationMenuItemHeader: '集合',
|
|
149
|
+
aggregationFunctionLabelSum: '總數',
|
|
150
|
+
aggregationFunctionLabelAvg: '平均數',
|
|
151
|
+
aggregationFunctionLabelMin: '最小',
|
|
152
|
+
aggregationFunctionLabelMax: '最大',
|
|
153
|
+
aggregationFunctionLabelSize: '尺寸'
|
|
157
154
|
};
|
|
158
|
-
|
|
159
155
|
const zhTW = (0, _getGridLocalization.getGridLocalization)(zhTWGrid, _locale.zhTW);
|
|
160
156
|
exports.zhTW = zhTW;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.2",
|
|
4
4
|
"description": "The community edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@babel/runtime": "^7.22.6",
|
|
39
|
-
"@mui/utils": "^5.14.
|
|
39
|
+
"@mui/utils": "^5.14.5",
|
|
40
40
|
"clsx": "^2.0.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^4.1.8"
|