@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.
Files changed (76) hide show
  1. package/CHANGELOG.md +57 -1
  2. package/DataGrid/DataGrid.d.ts +10 -0
  3. package/DataGrid/DataGrid.js +24 -1
  4. package/DataGrid/useDataGridProps.js +2 -0
  5. package/components/panel/GridPanel.d.ts +1 -1
  6. package/components/panel/filterPanel/GridFilterInputDate.d.ts +0 -1
  7. package/components/panel/filterPanel/GridFilterInputDate.js +5 -11
  8. package/components/panel/filterPanel/GridFilterInputValue.d.ts +0 -1
  9. package/components/panel/filterPanel/GridFilterInputValue.js +16 -18
  10. package/components/panel/filterPanel/GridFilterPanel.js +1 -3
  11. package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
  12. package/components/toolbar/GridToolbarQuickFilter.js +5 -5
  13. package/hooks/features/export/useGridPrintExport.js +0 -5
  14. package/hooks/features/export/utils.js +7 -1
  15. package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
  16. package/hooks/features/filter/gridFilterUtils.js +23 -19
  17. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  18. package/hooks/features/filter/useGridFilter.js +2 -2
  19. package/hooks/features/rows/useGridRows.js +11 -0
  20. package/hooks/utils/useTimeout.d.ts +9 -0
  21. package/hooks/utils/useTimeout.js +28 -0
  22. package/index.js +1 -1
  23. package/legacy/DataGrid/DataGrid.js +24 -1
  24. package/legacy/DataGrid/useDataGridProps.js +2 -0
  25. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +5 -11
  26. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +16 -18
  27. package/legacy/components/panel/filterPanel/GridFilterPanel.js +1 -3
  28. package/legacy/components/toolbar/GridToolbarQuickFilter.js +5 -5
  29. package/legacy/hooks/features/export/useGridPrintExport.js +0 -5
  30. package/legacy/hooks/features/export/utils.js +8 -6
  31. package/legacy/hooks/features/filter/gridFilterUtils.js +23 -19
  32. package/legacy/hooks/features/filter/useGridFilter.js +2 -2
  33. package/legacy/hooks/features/rows/useGridRows.js +11 -0
  34. package/legacy/hooks/utils/useTimeout.js +38 -0
  35. package/legacy/index.js +1 -1
  36. package/legacy/locales/esES.js +26 -28
  37. package/legacy/locales/zhCN.js +25 -27
  38. package/legacy/locales/zhTW.js +34 -38
  39. package/locales/esES.js +26 -28
  40. package/locales/zhCN.js +25 -27
  41. package/locales/zhTW.js +34 -38
  42. package/models/api/gridRowApi.d.ts +6 -0
  43. package/models/props/DataGridProps.d.ts +11 -0
  44. package/modern/DataGrid/DataGrid.js +24 -1
  45. package/modern/DataGrid/useDataGridProps.js +2 -0
  46. package/modern/components/panel/filterPanel/GridFilterInputDate.js +5 -11
  47. package/modern/components/panel/filterPanel/GridFilterInputValue.js +15 -17
  48. package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -3
  49. package/modern/components/toolbar/GridToolbarQuickFilter.js +5 -5
  50. package/modern/hooks/features/export/useGridPrintExport.js +0 -5
  51. package/modern/hooks/features/export/utils.js +7 -1
  52. package/modern/hooks/features/filter/gridFilterUtils.js +23 -19
  53. package/modern/hooks/features/filter/useGridFilter.js +2 -2
  54. package/modern/hooks/features/rows/useGridRows.js +11 -0
  55. package/modern/hooks/utils/useTimeout.js +28 -0
  56. package/modern/index.js +1 -1
  57. package/modern/locales/esES.js +26 -28
  58. package/modern/locales/zhCN.js +25 -27
  59. package/modern/locales/zhTW.js +34 -38
  60. package/node/DataGrid/DataGrid.js +26 -1
  61. package/node/DataGrid/useDataGridProps.js +2 -0
  62. package/node/components/panel/filterPanel/GridFilterInputDate.js +5 -13
  63. package/node/components/panel/filterPanel/GridFilterInputValue.js +15 -19
  64. package/node/components/panel/filterPanel/GridFilterPanel.js +1 -3
  65. package/node/components/toolbar/GridToolbarQuickFilter.js +5 -5
  66. package/node/hooks/features/export/useGridPrintExport.js +0 -5
  67. package/node/hooks/features/export/utils.js +7 -1
  68. package/node/hooks/features/filter/gridFilterUtils.js +23 -19
  69. package/node/hooks/features/filter/useGridFilter.js +2 -2
  70. package/node/hooks/features/rows/useGridRows.js +11 -0
  71. package/node/hooks/utils/useTimeout.js +34 -0
  72. package/node/index.js +1 -1
  73. package/node/locales/esES.js +26 -28
  74. package/node/locales/zhCN.js +25 -27
  75. package/node/locales/zhTW.js +34 -38
  76. package/package.json +2 -2
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.11.1
2
+ * @mui/x-data-grid v6.11.2
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -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: 'está vacío',
66
+ filterOperatorIsEmpty: 'esta vacío',
67
67
  filterOperatorIsNotEmpty: 'no esta vacío',
68
68
  filterOperatorIsAnyOf: 'es cualquiera de',
69
- // 'filterOperator=': '=',
70
- // 'filterOperator!=': '!=',
71
- // 'filterOperator>': '>',
72
- // 'filterOperator>=': '>=',
73
- // 'filterOperator<': '<',
74
- // 'filterOperator<=': '<=',
75
-
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
76
75
  // Header filter operators text
77
- // headerFilterOperatorContains: 'Contains',
78
- // headerFilterOperatorEquals: 'Equals',
79
- // headerFilterOperatorStartsWith: 'Starts with',
80
- // headerFilterOperatorEndsWith: 'Ends with',
81
- // headerFilterOperatorIs: 'Is',
82
- // headerFilterOperatorNot: 'Is not',
83
- // headerFilterOperatorAfter: 'Is after',
84
- // headerFilterOperatorOnOrAfter: 'Is on or after',
85
- // headerFilterOperatorBefore: 'Is before',
86
- // headerFilterOperatorOnOrBefore: 'Is on or before',
87
- // headerFilterOperatorIsEmpty: 'Is empty',
88
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
89
- // headerFilterOperatorIsAnyOf: 'Is any of',
90
- // 'headerFilterOperator=': 'Equals',
91
- // 'headerFilterOperator!=': 'Not equals',
92
- // 'headerFilterOperator>': 'Greater than',
93
- // 'headerFilterOperator>=': 'Greater than or equal to',
94
- // 'headerFilterOperator<': 'Less than',
95
- // 'headerFilterOperator<=': 'Less than or equal to',
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',
@@ -66,34 +66,32 @@ const zhCNGrid = {
66
66
  filterOperatorIsEmpty: '为空',
67
67
  filterOperatorIsNotEmpty: '不为空',
68
68
  filterOperatorIsAnyOf: '属于',
69
- // 'filterOperator=': '=',
70
- // 'filterOperator!=': '!=',
71
- // 'filterOperator>': '>',
72
- // 'filterOperator>=': '>=',
73
- // 'filterOperator<': '<',
74
- // 'filterOperator<=': '<=',
75
-
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
76
75
  // Header filter operators text
77
- // headerFilterOperatorContains: 'Contains',
78
- // headerFilterOperatorEquals: 'Equals',
79
- // headerFilterOperatorStartsWith: 'Starts with',
80
- // headerFilterOperatorEndsWith: 'Ends with',
81
- // headerFilterOperatorIs: 'Is',
82
- // headerFilterOperatorNot: 'Is not',
83
- // headerFilterOperatorAfter: 'Is after',
84
- // headerFilterOperatorOnOrAfter: 'Is on or after',
85
- // headerFilterOperatorBefore: 'Is before',
86
- // headerFilterOperatorOnOrBefore: 'Is on or before',
87
- // headerFilterOperatorIsEmpty: 'Is empty',
88
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
89
- // headerFilterOperatorIsAnyOf: 'Is any of',
90
- // 'headerFilterOperator=': 'Equals',
91
- // 'headerFilterOperator!=': 'Not equals',
92
- // 'headerFilterOperator>': 'Greater than',
93
- // 'headerFilterOperator>=': 'Greater than or equal to',
94
- // 'headerFilterOperator<': 'Less than',
95
- // 'headerFilterOperator<=': 'Less than or equal to',
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: '真',
@@ -43,7 +43,7 @@ const zhTWGrid = {
43
43
  columnsPanelHideAllButton: '隱藏所有',
44
44
  // Filter panel text
45
45
  filterPanelAddFilter: '增加篩選器',
46
- // filterPanelRemoveAll: 'Remove all',
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
- // 'filterOperator=': '=',
70
- // 'filterOperator!=': '!=',
71
- // 'filterOperator>': '>',
72
- // 'filterOperator>=': '>=',
73
- // 'filterOperator<': '<',
74
- // 'filterOperator<=': '<=',
75
-
69
+ 'filterOperator=': '=',
70
+ 'filterOperator!=': '!=',
71
+ 'filterOperator>': '>',
72
+ 'filterOperator>=': '>=',
73
+ 'filterOperator<': '<',
74
+ 'filterOperator<=': '<=',
76
75
  // Header filter operators text
77
- // headerFilterOperatorContains: 'Contains',
78
- // headerFilterOperatorEquals: 'Equals',
79
- // headerFilterOperatorStartsWith: 'Starts with',
80
- // headerFilterOperatorEndsWith: 'Ends with',
81
- // headerFilterOperatorIs: 'Is',
82
- // headerFilterOperatorNot: 'Is not',
83
- // headerFilterOperatorAfter: 'Is after',
84
- // headerFilterOperatorOnOrAfter: 'Is on or after',
85
- // headerFilterOperatorBefore: 'Is before',
86
- // headerFilterOperatorOnOrBefore: 'Is on or before',
87
- // headerFilterOperatorIsEmpty: 'Is empty',
88
- // headerFilterOperatorIsNotEmpty: 'Is not empty',
89
- // headerFilterOperatorIsAnyOf: 'Is any of',
90
- // 'headerFilterOperator=': 'Equals',
91
- // 'headerFilterOperator!=': 'Not equals',
92
- // 'headerFilterOperator>': 'Greater than',
93
- // 'headerFilterOperator>=': 'Greater than or equal to',
94
- // 'headerFilterOperator<': 'Less than',
95
- // 'headerFilterOperator<=': 'Less than or equal to',
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
- // columnMenuManageColumns: 'Manage columns',
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
- // aggregationMenuItemHeader: 'Aggregation',
152
- // aggregationFunctionLabelSum: 'sum',
153
- // aggregationFunctionLabelAvg: 'avg',
154
- // aggregationFunctionLabelMin: 'min',
155
- // aggregationFunctionLabelMax: 'max',
156
- // aggregationFunctionLabelSize: 'size',
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.1",
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.3",
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"