@mui/x-data-grid 6.11.1 → 6.12.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 +154 -31
- package/DataGrid/DataGrid.d.ts +10 -0
- package/DataGrid/DataGrid.js +24 -1
- package/DataGrid/useDataGridProps.js +2 -0
- package/README.md +1 -1
- package/components/cell/GridActionsCell.js +1 -1
- package/components/cell/GridEditSingleSelectCell.js +1 -1
- package/components/columnHeaders/GridColumnGroupHeader.js +1 -1
- package/components/columnHeaders/GridColumnHeaderItem.js +1 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.js +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/components/panel/GridPanel.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +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/GridToolbarColumnsButton.js +1 -1
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarExport.js +2 -2
- package/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.js +5 -5
- package/hooks/features/export/useGridPrintExport.js +11 -8
- 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/pagination/useGridPagination.d.ts +5 -0
- package/hooks/features/pagination/useGridPagination.js +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +1 -1
- package/hooks/features/rows/useGridRows.js +11 -0
- package/hooks/features/rows/useGridRowsMeta.js +2 -2
- package/hooks/utils/useGridApiEventHandler.js +5 -5
- package/hooks/utils/useLazyRef.js +2 -0
- package/hooks/utils/useTimeout.d.ts +9 -0
- package/hooks/utils/useTimeout.js +28 -0
- package/index.js +1 -1
- package/joy/joySlots.js +2 -2
- package/legacy/DataGrid/DataGrid.js +24 -1
- package/legacy/DataGrid/useDataGridProps.js +2 -0
- package/legacy/components/cell/GridActionsCell.js +1 -1
- package/legacy/components/cell/GridEditSingleSelectCell.js +1 -1
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +1 -1
- package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +1 -1
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterForm.js +1 -1
- 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/GridToolbarColumnsButton.js +1 -1
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/legacy/components/toolbar/GridToolbarExport.js +2 -2
- package/legacy/components/toolbar/GridToolbarExportContainer.js +1 -1
- package/legacy/components/toolbar/GridToolbarFilterButton.js +1 -1
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +5 -5
- package/legacy/hooks/features/export/useGridPrintExport.js +12 -9
- 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/pagination/useGridPagination.js +1 -1
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +1 -1
- package/legacy/hooks/features/rows/useGridRows.js +11 -0
- package/legacy/hooks/features/rows/useGridRowsMeta.js +2 -2
- package/legacy/hooks/utils/useGridApiEventHandler.js +5 -5
- package/legacy/hooks/utils/useLazyRef.js +2 -0
- package/legacy/hooks/utils/useTimeout.js +38 -0
- package/legacy/index.js +1 -1
- package/legacy/joy/joySlots.js +2 -2
- package/legacy/locales/esES.js +26 -28
- package/legacy/locales/ukUA.js +25 -27
- package/legacy/locales/zhCN.js +25 -27
- package/legacy/locales/zhTW.js +34 -38
- package/legacy/utils/createSelector.js +1 -1
- package/locales/esES.js +26 -28
- package/locales/ukUA.js +25 -27
- 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 +9 -6
- 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/pagination/useGridPagination.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +11 -0
- package/modern/hooks/utils/useLazyRef.js +2 -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/ukUA.js +25 -27
- 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 +9 -6
- 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/pagination/useGridPagination.js +2 -1
- package/node/hooks/features/rows/useGridRows.js +11 -0
- package/node/hooks/utils/useLazyRef.js +2 -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/ukUA.js +25 -27
- package/node/locales/zhCN.js +25 -27
- package/node/locales/zhTW.js +34 -38
- package/package.json +3 -3
- package/utils/createSelector.js +1 -1
package/legacy/locales/esES.js
CHANGED
|
@@ -59,37 +59,35 @@ var esESGrid = {
|
|
|
59
59
|
filterOperatorOnOrAfter: 'es en o posterior',
|
|
60
60
|
filterOperatorBefore: 'es anterior',
|
|
61
61
|
filterOperatorOnOrBefore: 'es en o anterior',
|
|
62
|
-
filterOperatorIsEmpty: '
|
|
62
|
+
filterOperatorIsEmpty: 'esta vacío',
|
|
63
63
|
filterOperatorIsNotEmpty: 'no esta vacío',
|
|
64
64
|
filterOperatorIsAnyOf: 'es cualquiera de',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
72
71
|
// Header filter operators text
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
headerFilterOperatorContains: 'Contiene',
|
|
73
|
+
headerFilterOperatorEquals: 'Es igual a',
|
|
74
|
+
headerFilterOperatorStartsWith: 'Comienza con',
|
|
75
|
+
headerFilterOperatorEndsWith: 'Termina con',
|
|
76
|
+
headerFilterOperatorIs: 'Es',
|
|
77
|
+
headerFilterOperatorNot: 'No es',
|
|
78
|
+
headerFilterOperatorAfter: 'Esta después de',
|
|
79
|
+
headerFilterOperatorOnOrAfter: 'Esta en o después de',
|
|
80
|
+
headerFilterOperatorBefore: 'Esta antes de',
|
|
81
|
+
headerFilterOperatorOnOrBefore: 'Esta en o antes de',
|
|
82
|
+
headerFilterOperatorIsEmpty: 'Esta vacío',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: 'No esta vacío',
|
|
84
|
+
headerFilterOperatorIsAnyOf: 'Es cualquiera de',
|
|
85
|
+
'headerFilterOperator=': 'Es igual a',
|
|
86
|
+
'headerFilterOperator!=': 'Es diferente a',
|
|
87
|
+
'headerFilterOperator>': 'Es mayor que',
|
|
88
|
+
'headerFilterOperator>=': 'Es mayor o igual que',
|
|
89
|
+
'headerFilterOperator<': 'Es menor que',
|
|
90
|
+
'headerFilterOperator<=': 'Es menor o igual que',
|
|
93
91
|
// Filter values text
|
|
94
92
|
filterValueAny: 'cualquiera',
|
|
95
93
|
filterValueTrue: 'verdadero',
|
package/legacy/locales/ukUA.js
CHANGED
|
@@ -76,34 +76,32 @@ var ukUAGrid = {
|
|
|
76
76
|
filterOperatorIsEmpty: 'порожній',
|
|
77
77
|
filterOperatorIsNotEmpty: 'не порожній',
|
|
78
78
|
filterOperatorIsAnyOf: 'будь-що із',
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
'filterOperator=': '=',
|
|
80
|
+
'filterOperator!=': '!=',
|
|
81
|
+
'filterOperator>': '>',
|
|
82
|
+
'filterOperator>=': '>=',
|
|
83
|
+
'filterOperator<': '<',
|
|
84
|
+
'filterOperator<=': '<=',
|
|
86
85
|
// Header filter operators text
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
86
|
+
headerFilterOperatorContains: 'Містить',
|
|
87
|
+
headerFilterOperatorEquals: 'Дорівнює',
|
|
88
|
+
headerFilterOperatorStartsWith: 'Починається з',
|
|
89
|
+
headerFilterOperatorEndsWith: 'Закінчується на',
|
|
90
|
+
headerFilterOperatorIs: 'Дорівнює',
|
|
91
|
+
headerFilterOperatorNot: 'Не дорівнює',
|
|
92
|
+
headerFilterOperatorAfter: 'Після',
|
|
93
|
+
headerFilterOperatorOnOrAfter: 'Після (включаючи)',
|
|
94
|
+
headerFilterOperatorBefore: 'Раніше',
|
|
95
|
+
headerFilterOperatorOnOrBefore: 'Раніше (включаючи)',
|
|
96
|
+
headerFilterOperatorIsEmpty: 'Порожнє',
|
|
97
|
+
headerFilterOperatorIsNotEmpty: 'Не порожнє',
|
|
98
|
+
headerFilterOperatorIsAnyOf: 'Будь-що із',
|
|
99
|
+
'headerFilterOperator=': 'Дорівнює',
|
|
100
|
+
'headerFilterOperator!=': 'Не дорівнює',
|
|
101
|
+
'headerFilterOperator>': 'Більше ніж',
|
|
102
|
+
'headerFilterOperator>=': 'Більше або дорівнює',
|
|
103
|
+
'headerFilterOperator<': 'Менше ніж',
|
|
104
|
+
'headerFilterOperator<=': 'Менше або дорівнює',
|
|
107
105
|
// Filter values text
|
|
108
106
|
filterValueAny: 'будь-який',
|
|
109
107
|
filterValueTrue: 'так',
|
package/legacy/locales/zhCN.js
CHANGED
|
@@ -62,34 +62,32 @@ var zhCNGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: '为空',
|
|
63
63
|
filterOperatorIsNotEmpty: '不为空',
|
|
64
64
|
filterOperatorIsAnyOf: '属于',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
72
71
|
// Header filter operators text
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
headerFilterOperatorContains: '包含',
|
|
73
|
+
headerFilterOperatorEquals: '等于',
|
|
74
|
+
headerFilterOperatorStartsWith: '开始于',
|
|
75
|
+
headerFilterOperatorEndsWith: '结束于',
|
|
76
|
+
headerFilterOperatorIs: '是',
|
|
77
|
+
headerFilterOperatorNot: '不是',
|
|
78
|
+
headerFilterOperatorAfter: '在后面',
|
|
79
|
+
headerFilterOperatorOnOrAfter: '在当前或后面',
|
|
80
|
+
headerFilterOperatorBefore: '在前面',
|
|
81
|
+
headerFilterOperatorOnOrBefore: '在当前或前面',
|
|
82
|
+
headerFilterOperatorIsEmpty: '为空',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: '不为空',
|
|
84
|
+
headerFilterOperatorIsAnyOf: '属于',
|
|
85
|
+
'headerFilterOperator=': '等于',
|
|
86
|
+
'headerFilterOperator!=': '不等于',
|
|
87
|
+
'headerFilterOperator>': '大于',
|
|
88
|
+
'headerFilterOperator>=': '大于或等于',
|
|
89
|
+
'headerFilterOperator<': '小雨',
|
|
90
|
+
'headerFilterOperator<=': '小于或等于',
|
|
93
91
|
// Filter values text
|
|
94
92
|
filterValueAny: '任何',
|
|
95
93
|
filterValueTrue: '真',
|
package/legacy/locales/zhTW.js
CHANGED
|
@@ -39,7 +39,7 @@ var zhTWGrid = {
|
|
|
39
39
|
columnsPanelHideAllButton: '隱藏所有',
|
|
40
40
|
// Filter panel text
|
|
41
41
|
filterPanelAddFilter: '增加篩選器',
|
|
42
|
-
|
|
42
|
+
filterPanelRemoveAll: '清除所有',
|
|
43
43
|
filterPanelDeleteIconLabel: '刪除',
|
|
44
44
|
filterPanelLogicOperator: '邏輯運算子',
|
|
45
45
|
filterPanelOperator: '運算子',
|
|
@@ -62,34 +62,32 @@ var zhTWGrid = {
|
|
|
62
62
|
filterOperatorIsEmpty: '為空',
|
|
63
63
|
filterOperatorIsNotEmpty: '不為空',
|
|
64
64
|
filterOperatorIsAnyOf: '是其中之一',
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
72
71
|
// Header filter operators text
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
72
|
+
headerFilterOperatorContains: '包含',
|
|
73
|
+
headerFilterOperatorEquals: '等於',
|
|
74
|
+
headerFilterOperatorStartsWith: '以...開頭',
|
|
75
|
+
headerFilterOperatorEndsWith: '以...結束',
|
|
76
|
+
headerFilterOperatorIs: '為',
|
|
77
|
+
headerFilterOperatorNot: '不為',
|
|
78
|
+
headerFilterOperatorAfter: '...之後',
|
|
79
|
+
headerFilterOperatorOnOrAfter: '...(含)之後',
|
|
80
|
+
headerFilterOperatorBefore: '...之前',
|
|
81
|
+
headerFilterOperatorOnOrBefore: '...(含)之前',
|
|
82
|
+
headerFilterOperatorIsEmpty: '為空',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: '不為空',
|
|
84
|
+
headerFilterOperatorIsAnyOf: '是其中之一',
|
|
85
|
+
'headerFilterOperator=': '等於',
|
|
86
|
+
'headerFilterOperator!=': '不等於',
|
|
87
|
+
'headerFilterOperator>': '大於',
|
|
88
|
+
'headerFilterOperator>=': '大於或等於',
|
|
89
|
+
'headerFilterOperator<': '小於',
|
|
90
|
+
'headerFilterOperator<=': '小於或等於',
|
|
93
91
|
// Filter values text
|
|
94
92
|
filterValueAny: '任何值',
|
|
95
93
|
filterValueTrue: '真',
|
|
@@ -97,7 +95,7 @@ var zhTWGrid = {
|
|
|
97
95
|
// Column menu text
|
|
98
96
|
columnMenuLabel: '選單',
|
|
99
97
|
columnMenuShowColumns: '顯示欄位',
|
|
100
|
-
|
|
98
|
+
columnMenuManageColumns: '管理欄位',
|
|
101
99
|
columnMenuFilter: '篩選器',
|
|
102
100
|
columnMenuHideColumn: '隱藏',
|
|
103
101
|
columnMenuUnsort: '預設排序',
|
|
@@ -151,15 +149,13 @@ var zhTWGrid = {
|
|
|
151
149
|
expandDetailPanel: '展開',
|
|
152
150
|
collapseDetailPanel: '摺疊',
|
|
153
151
|
// Row reordering text
|
|
154
|
-
rowReorderingHeaderName: '排序'
|
|
155
|
-
|
|
152
|
+
rowReorderingHeaderName: '排序',
|
|
156
153
|
// Aggregation
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
154
|
+
aggregationMenuItemHeader: '集合',
|
|
155
|
+
aggregationFunctionLabelSum: '總數',
|
|
156
|
+
aggregationFunctionLabelAvg: '平均數',
|
|
157
|
+
aggregationFunctionLabelMin: '最小',
|
|
158
|
+
aggregationFunctionLabelMax: '最大',
|
|
159
|
+
aggregationFunctionLabelSize: '尺寸'
|
|
163
160
|
};
|
|
164
|
-
|
|
165
161
|
export var zhTW = getGridLocalization(zhTWGrid, zhTWCore);
|
|
@@ -104,7 +104,7 @@ export var createSelectorMemoized = function createSelectorMemoized() {
|
|
|
104
104
|
if (!cache.get(cacheKey)) {
|
|
105
105
|
cache.set(cacheKey, new Map());
|
|
106
106
|
}
|
|
107
|
-
(_cache$get3 = cache.get(cacheKey)) == null
|
|
107
|
+
(_cache$get3 = cache.get(cacheKey)) == null || _cache$get3.set(args, newSelector);
|
|
108
108
|
return newSelector(state, cacheKey);
|
|
109
109
|
};
|
|
110
110
|
|
package/locales/esES.js
CHANGED
|
@@ -57,37 +57,35 @@ const esESGrid = {
|
|
|
57
57
|
filterOperatorOnOrAfter: 'es en o posterior',
|
|
58
58
|
filterOperatorBefore: 'es anterior',
|
|
59
59
|
filterOperatorOnOrBefore: 'es en o anterior',
|
|
60
|
-
filterOperatorIsEmpty: '
|
|
60
|
+
filterOperatorIsEmpty: 'esta vacío',
|
|
61
61
|
filterOperatorIsNotEmpty: 'no esta vacío',
|
|
62
62
|
filterOperatorIsAnyOf: 'es cualquiera de',
|
|
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: 'Contiene',
|
|
71
|
+
headerFilterOperatorEquals: 'Es igual a',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Comienza con',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Termina con',
|
|
74
|
+
headerFilterOperatorIs: 'Es',
|
|
75
|
+
headerFilterOperatorNot: 'No es',
|
|
76
|
+
headerFilterOperatorAfter: 'Esta después de',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Esta en o después de',
|
|
78
|
+
headerFilterOperatorBefore: 'Esta antes de',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Esta en o antes de',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Esta vacío',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'No esta vacío',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Es cualquiera de',
|
|
83
|
+
'headerFilterOperator=': 'Es igual a',
|
|
84
|
+
'headerFilterOperator!=': 'Es diferente a',
|
|
85
|
+
'headerFilterOperator>': 'Es mayor que',
|
|
86
|
+
'headerFilterOperator>=': 'Es mayor o igual que',
|
|
87
|
+
'headerFilterOperator<': 'Es menor que',
|
|
88
|
+
'headerFilterOperator<=': 'Es menor o igual que',
|
|
91
89
|
// Filter values text
|
|
92
90
|
filterValueAny: 'cualquiera',
|
|
93
91
|
filterValueTrue: 'verdadero',
|
package/locales/ukUA.js
CHANGED
|
@@ -74,34 +74,32 @@ const ukUAGrid = {
|
|
|
74
74
|
filterOperatorIsEmpty: 'порожній',
|
|
75
75
|
filterOperatorIsNotEmpty: 'не порожній',
|
|
76
76
|
filterOperatorIsAnyOf: 'будь-що із',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
77
|
+
'filterOperator=': '=',
|
|
78
|
+
'filterOperator!=': '!=',
|
|
79
|
+
'filterOperator>': '>',
|
|
80
|
+
'filterOperator>=': '>=',
|
|
81
|
+
'filterOperator<': '<',
|
|
82
|
+
'filterOperator<=': '<=',
|
|
84
83
|
// Header filter operators text
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
84
|
+
headerFilterOperatorContains: 'Містить',
|
|
85
|
+
headerFilterOperatorEquals: 'Дорівнює',
|
|
86
|
+
headerFilterOperatorStartsWith: 'Починається з',
|
|
87
|
+
headerFilterOperatorEndsWith: 'Закінчується на',
|
|
88
|
+
headerFilterOperatorIs: 'Дорівнює',
|
|
89
|
+
headerFilterOperatorNot: 'Не дорівнює',
|
|
90
|
+
headerFilterOperatorAfter: 'Після',
|
|
91
|
+
headerFilterOperatorOnOrAfter: 'Після (включаючи)',
|
|
92
|
+
headerFilterOperatorBefore: 'Раніше',
|
|
93
|
+
headerFilterOperatorOnOrBefore: 'Раніше (включаючи)',
|
|
94
|
+
headerFilterOperatorIsEmpty: 'Порожнє',
|
|
95
|
+
headerFilterOperatorIsNotEmpty: 'Не порожнє',
|
|
96
|
+
headerFilterOperatorIsAnyOf: 'Будь-що із',
|
|
97
|
+
'headerFilterOperator=': 'Дорівнює',
|
|
98
|
+
'headerFilterOperator!=': 'Не дорівнює',
|
|
99
|
+
'headerFilterOperator>': 'Більше ніж',
|
|
100
|
+
'headerFilterOperator>=': 'Більше або дорівнює',
|
|
101
|
+
'headerFilterOperator<': 'Менше ніж',
|
|
102
|
+
'headerFilterOperator<=': 'Менше або дорівнює',
|
|
105
103
|
// Filter values text
|
|
106
104
|
filterValueAny: 'будь-який',
|
|
107
105
|
filterValueTrue: 'так',
|
package/locales/zhCN.js
CHANGED
|
@@ -60,34 +60,32 @@ const zhCNGrid = {
|
|
|
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: '真',
|
package/locales/zhTW.js
CHANGED
|
@@ -37,7 +37,7 @@ const zhTWGrid = {
|
|
|
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 zhTWGrid = {
|
|
|
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: '真',
|
|
@@ -95,7 +93,7 @@ const zhTWGrid = {
|
|
|
95
93
|
// Column menu text
|
|
96
94
|
columnMenuLabel: '選單',
|
|
97
95
|
columnMenuShowColumns: '顯示欄位',
|
|
98
|
-
|
|
96
|
+
columnMenuManageColumns: '管理欄位',
|
|
99
97
|
columnMenuFilter: '篩選器',
|
|
100
98
|
columnMenuHideColumn: '隱藏',
|
|
101
99
|
columnMenuUnsort: '預設排序',
|
|
@@ -139,15 +137,13 @@ const zhTWGrid = {
|
|
|
139
137
|
expandDetailPanel: '展開',
|
|
140
138
|
collapseDetailPanel: '摺疊',
|
|
141
139
|
// Row reordering text
|
|
142
|
-
rowReorderingHeaderName: '排序'
|
|
143
|
-
|
|
140
|
+
rowReorderingHeaderName: '排序',
|
|
144
141
|
// Aggregation
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
142
|
+
aggregationMenuItemHeader: '集合',
|
|
143
|
+
aggregationFunctionLabelSum: '總數',
|
|
144
|
+
aggregationFunctionLabelAvg: '平均數',
|
|
145
|
+
aggregationFunctionLabelMin: '最小',
|
|
146
|
+
aggregationFunctionLabelMax: '最大',
|
|
147
|
+
aggregationFunctionLabelSize: '尺寸'
|
|
151
148
|
};
|
|
152
|
-
|
|
153
149
|
export const zhTW = getGridLocalization(zhTWGrid, zhTWCore);
|
|
@@ -56,6 +56,12 @@ export interface GridRowApi {
|
|
|
56
56
|
* @returns {GridRowModel} The row data.
|
|
57
57
|
*/
|
|
58
58
|
getRow: <R extends GridValidRowModel = any>(id: GridRowId) => R | null;
|
|
59
|
+
/**
|
|
60
|
+
* Gets the ID of a row given its data.
|
|
61
|
+
* @param {GridRowModel} row The row data.
|
|
62
|
+
* @returns {GridRowId} The id of the row.
|
|
63
|
+
*/
|
|
64
|
+
getRowId: <R extends GridValidRowModel = any>(row: R) => GridRowId;
|
|
59
65
|
/**
|
|
60
66
|
* Gets the row node from the internal tree structure.
|
|
61
67
|
* TODO rows v6: Rename `getTreeNode`
|