@mui/x-data-grid 7.27.3 → 7.28.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.
Files changed (161) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +1 -1
  3. package/components/cell/GridActionsCell.js +3 -1
  4. package/components/cell/GridCell.js +2 -2
  5. package/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -1
  6. package/components/containers/GridRootStyles.js +3 -3
  7. package/components/panel/filterPanel/GridFilterInputValue.d.ts +4 -0
  8. package/components/panel/filterPanel/index.d.ts +1 -1
  9. package/components/panel/filterPanel/index.js +1 -1
  10. package/components/virtualization/GridBottomContainer.js +1 -1
  11. package/components/virtualization/GridTopContainer.js +1 -1
  12. package/components/virtualization/GridVirtualScrollbar.js +2 -2
  13. package/constants/localeTextConstants.js +1 -0
  14. package/hooks/features/editing/useGridRowEditing.js +19 -10
  15. package/hooks/features/export/useGridPrintExport.js +4 -4
  16. package/hooks/features/filter/useGridFilter.js +5 -0
  17. package/hooks/features/rowSelection/useGridRowSelection.js +47 -11
  18. package/hooks/features/rowSelection/utils.d.ts +2 -2
  19. package/hooks/features/rowSelection/utils.js +8 -6
  20. package/index.js +1 -1
  21. package/locales/arSD.js +1 -0
  22. package/locales/beBY.js +1 -0
  23. package/locales/bgBG.js +1 -0
  24. package/locales/bnBD.js +1 -0
  25. package/locales/csCZ.js +6 -6
  26. package/locales/daDK.js +1 -0
  27. package/locales/deDE.js +1 -0
  28. package/locales/elGR.js +1 -0
  29. package/locales/esES.js +1 -0
  30. package/locales/faIR.js +1 -0
  31. package/locales/fiFI.js +1 -0
  32. package/locales/frFR.js +1 -0
  33. package/locales/heIL.js +1 -0
  34. package/locales/hrHR.js +1 -0
  35. package/locales/huHU.js +1 -0
  36. package/locales/isIS.js +1 -0
  37. package/locales/itIT.js +1 -0
  38. package/locales/jaJP.js +1 -0
  39. package/locales/koKR.js +2 -1
  40. package/locales/nbNO.js +1 -0
  41. package/locales/nlNL.js +1 -0
  42. package/locales/nnNO.js +1 -0
  43. package/locales/plPL.js +1 -0
  44. package/locales/ptBR.js +1 -0
  45. package/locales/ptPT.js +1 -0
  46. package/locales/roRO.js +1 -0
  47. package/locales/ruRU.js +1 -0
  48. package/locales/skSK.js +7 -7
  49. package/locales/svSE.js +1 -0
  50. package/locales/trTR.js +1 -0
  51. package/locales/ukUA.js +1 -0
  52. package/locales/urPK.js +1 -0
  53. package/locales/viVN.js +1 -0
  54. package/locales/zhCN.js +1 -0
  55. package/locales/zhHK.js +11 -11
  56. package/locales/zhTW.js +10 -10
  57. package/models/api/gridLocaleTextApi.d.ts +1 -0
  58. package/models/api/gridRowSelectionApi.d.ts +15 -4
  59. package/modern/components/cell/GridActionsCell.js +3 -1
  60. package/modern/components/cell/GridCell.js +2 -2
  61. package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -1
  62. package/modern/components/containers/GridRootStyles.js +3 -3
  63. package/modern/components/panel/filterPanel/index.js +1 -1
  64. package/modern/components/virtualization/GridBottomContainer.js +1 -1
  65. package/modern/components/virtualization/GridTopContainer.js +1 -1
  66. package/modern/components/virtualization/GridVirtualScrollbar.js +2 -2
  67. package/modern/constants/localeTextConstants.js +1 -0
  68. package/modern/hooks/features/editing/useGridRowEditing.js +19 -10
  69. package/modern/hooks/features/export/useGridPrintExport.js +4 -4
  70. package/modern/hooks/features/filter/useGridFilter.js +5 -0
  71. package/modern/hooks/features/rowSelection/useGridRowSelection.js +47 -11
  72. package/modern/hooks/features/rowSelection/utils.js +8 -6
  73. package/modern/index.js +1 -1
  74. package/modern/locales/arSD.js +1 -0
  75. package/modern/locales/beBY.js +1 -0
  76. package/modern/locales/bgBG.js +1 -0
  77. package/modern/locales/bnBD.js +1 -0
  78. package/modern/locales/csCZ.js +6 -6
  79. package/modern/locales/daDK.js +1 -0
  80. package/modern/locales/deDE.js +1 -0
  81. package/modern/locales/elGR.js +1 -0
  82. package/modern/locales/esES.js +1 -0
  83. package/modern/locales/faIR.js +1 -0
  84. package/modern/locales/fiFI.js +1 -0
  85. package/modern/locales/frFR.js +1 -0
  86. package/modern/locales/heIL.js +1 -0
  87. package/modern/locales/hrHR.js +1 -0
  88. package/modern/locales/huHU.js +1 -0
  89. package/modern/locales/isIS.js +1 -0
  90. package/modern/locales/itIT.js +1 -0
  91. package/modern/locales/jaJP.js +1 -0
  92. package/modern/locales/koKR.js +2 -1
  93. package/modern/locales/nbNO.js +1 -0
  94. package/modern/locales/nlNL.js +1 -0
  95. package/modern/locales/nnNO.js +1 -0
  96. package/modern/locales/plPL.js +1 -0
  97. package/modern/locales/ptBR.js +1 -0
  98. package/modern/locales/ptPT.js +1 -0
  99. package/modern/locales/roRO.js +1 -0
  100. package/modern/locales/ruRU.js +1 -0
  101. package/modern/locales/skSK.js +7 -7
  102. package/modern/locales/svSE.js +1 -0
  103. package/modern/locales/trTR.js +1 -0
  104. package/modern/locales/ukUA.js +1 -0
  105. package/modern/locales/urPK.js +1 -0
  106. package/modern/locales/viVN.js +1 -0
  107. package/modern/locales/zhCN.js +1 -0
  108. package/modern/locales/zhHK.js +11 -11
  109. package/modern/locales/zhTW.js +10 -10
  110. package/node/components/cell/GridActionsCell.js +3 -1
  111. package/node/components/cell/GridCell.js +2 -2
  112. package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -1
  113. package/node/components/containers/GridRootStyles.js +3 -3
  114. package/node/components/panel/filterPanel/index.js +7 -11
  115. package/node/components/virtualization/GridBottomContainer.js +1 -1
  116. package/node/components/virtualization/GridTopContainer.js +1 -1
  117. package/node/components/virtualization/GridVirtualScrollbar.js +2 -2
  118. package/node/constants/localeTextConstants.js +1 -0
  119. package/node/hooks/features/editing/useGridRowEditing.js +19 -10
  120. package/node/hooks/features/export/useGridPrintExport.js +4 -4
  121. package/node/hooks/features/filter/useGridFilter.js +5 -0
  122. package/node/hooks/features/rowSelection/useGridRowSelection.js +55 -19
  123. package/node/hooks/features/rowSelection/utils.js +7 -5
  124. package/node/index.js +1 -1
  125. package/node/locales/arSD.js +1 -0
  126. package/node/locales/beBY.js +1 -0
  127. package/node/locales/bgBG.js +1 -0
  128. package/node/locales/bnBD.js +1 -0
  129. package/node/locales/csCZ.js +6 -6
  130. package/node/locales/daDK.js +1 -0
  131. package/node/locales/deDE.js +1 -0
  132. package/node/locales/elGR.js +1 -0
  133. package/node/locales/esES.js +1 -0
  134. package/node/locales/faIR.js +1 -0
  135. package/node/locales/fiFI.js +1 -0
  136. package/node/locales/frFR.js +1 -0
  137. package/node/locales/heIL.js +1 -0
  138. package/node/locales/hrHR.js +1 -0
  139. package/node/locales/huHU.js +1 -0
  140. package/node/locales/isIS.js +1 -0
  141. package/node/locales/itIT.js +1 -0
  142. package/node/locales/jaJP.js +1 -0
  143. package/node/locales/koKR.js +2 -1
  144. package/node/locales/nbNO.js +1 -0
  145. package/node/locales/nlNL.js +1 -0
  146. package/node/locales/nnNO.js +1 -0
  147. package/node/locales/plPL.js +1 -0
  148. package/node/locales/ptBR.js +1 -0
  149. package/node/locales/ptPT.js +1 -0
  150. package/node/locales/roRO.js +1 -0
  151. package/node/locales/ruRU.js +1 -0
  152. package/node/locales/skSK.js +7 -7
  153. package/node/locales/svSE.js +1 -0
  154. package/node/locales/trTR.js +1 -0
  155. package/node/locales/ukUA.js +1 -0
  156. package/node/locales/urPK.js +1 -0
  157. package/node/locales/viVN.js +1 -0
  158. package/node/locales/zhCN.js +1 -0
  159. package/node/locales/zhHK.js +11 -11
  160. package/node/locales/zhTW.js +10 -10
  161. package/package.json +5 -5
package/locales/elGR.js CHANGED
@@ -97,6 +97,7 @@ const elGRGrid = {
97
97
  filterValueFalse: 'ψευδές',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Μενού',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Εμφάνιση στηλών',
101
102
  columnMenuManageColumns: 'Διαχείριση στηλών',
102
103
  columnMenuFilter: 'Φίλτρο',
package/locales/esES.js CHANGED
@@ -96,6 +96,7 @@ const esESGrid = {
96
96
  filterValueFalse: 'falso',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menú',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Mostrar columnas',
100
101
  columnMenuManageColumns: 'Administrar columnas',
101
102
  columnMenuFilter: 'Filtro',
package/locales/faIR.js CHANGED
@@ -96,6 +96,7 @@ const faIRGrid = {
96
96
  filterValueFalse: 'غلط',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'فهرست',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'نمایش ستون‌ها',
100
101
  columnMenuManageColumns: 'مدیریت ستون‌ها',
101
102
  columnMenuFilter: 'فیلتر',
package/locales/fiFI.js CHANGED
@@ -97,6 +97,7 @@ const fiFIGrid = {
97
97
  filterValueFalse: 'epätosi',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Valikko',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Näytä sarakkeet',
101
102
  columnMenuManageColumns: 'Hallitse sarakkeita',
102
103
  columnMenuFilter: 'Suodata',
package/locales/frFR.js CHANGED
@@ -97,6 +97,7 @@ const frFRGrid = {
97
97
  filterValueFalse: 'faux',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Menu',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Afficher les colonnes',
101
102
  columnMenuManageColumns: 'Gérer les colonnes',
102
103
  columnMenuFilter: 'Filtrer',
package/locales/heIL.js CHANGED
@@ -97,6 +97,7 @@ const heILGrid = {
97
97
  filterValueFalse: 'לא',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'תפריט',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'הצג עמודות',
101
102
  columnMenuManageColumns: 'נהל עמודות',
102
103
  columnMenuFilter: 'סנן',
package/locales/hrHR.js CHANGED
@@ -105,6 +105,7 @@ const hrHRGrid = {
105
105
  filterValueFalse: 'netačno',
106
106
  // Column menu text
107
107
  columnMenuLabel: 'Izbornik',
108
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
108
109
  columnMenuShowColumns: 'Prikaži stupce',
109
110
  columnMenuManageColumns: 'Upravljanje stupcima',
110
111
  columnMenuFilter: 'Filter',
package/locales/huHU.js CHANGED
@@ -96,6 +96,7 @@ const huHUGrid = {
96
96
  filterValueFalse: 'hamis',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menü',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Oszlopok megjelenítése',
100
101
  columnMenuManageColumns: 'Oszlopok kezelése',
101
102
  columnMenuFilter: 'Szűrők',
package/locales/isIS.js CHANGED
@@ -97,6 +97,7 @@ const isISGrid = {
97
97
  filterValueFalse: 'falskt',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Valmynd',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Sýna dálka',
101
102
  columnMenuManageColumns: 'Stjórna dálkum',
102
103
  columnMenuFilter: 'Síur',
package/locales/itIT.js CHANGED
@@ -97,6 +97,7 @@ const itITGrid = {
97
97
  filterValueFalse: 'falso',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Menu',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Mostra le colonne',
101
102
  columnMenuManageColumns: 'Gestisci colonne',
102
103
  columnMenuFilter: 'Filtra',
package/locales/jaJP.js CHANGED
@@ -97,6 +97,7 @@ const jaJPGrid = {
97
97
  filterValueFalse: '偽',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'メニュー',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: '列表示',
101
102
  columnMenuManageColumns: '列管理',
102
103
  columnMenuFilter: 'フィルター',
package/locales/koKR.js CHANGED
@@ -96,6 +96,7 @@ const koKRGrid = {
96
96
  filterValueFalse: '거짓',
97
97
  // Column menu text
98
98
  columnMenuLabel: '메뉴',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: '열 표시',
100
101
  columnMenuManageColumns: '열 관리',
101
102
  columnMenuFilter: '필터',
@@ -143,7 +144,7 @@ const koKRGrid = {
143
144
  // Row reordering text
144
145
  rowReorderingHeaderName: '행 재배치',
145
146
  // Aggregation
146
- aggregationMenuItemHeader: '총계',
147
+ aggregationMenuItemHeader: '집계',
147
148
  aggregationFunctionLabelSum: '합',
148
149
  aggregationFunctionLabelAvg: '평균',
149
150
  aggregationFunctionLabelMin: '최소값',
package/locales/nbNO.js CHANGED
@@ -97,6 +97,7 @@ const nbNOGrid = {
97
97
  filterValueFalse: 'usant',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Meny',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Vis kolonner',
101
102
  columnMenuManageColumns: 'Administrer kolonner',
102
103
  columnMenuFilter: 'Filter',
package/locales/nlNL.js CHANGED
@@ -96,6 +96,7 @@ const nlNLGrid = {
96
96
  filterValueFalse: 'onwaar',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menu',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Toon kolommen',
100
101
  columnMenuManageColumns: 'Kolommen beheren',
101
102
  columnMenuFilter: 'Filteren',
package/locales/nnNO.js CHANGED
@@ -97,6 +97,7 @@ const nnNOGrid = {
97
97
  filterValueFalse: 'usant',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Meny',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Vis kolonner',
101
102
  columnMenuManageColumns: 'Administrer kolonner',
102
103
  columnMenuFilter: 'Filter',
package/locales/plPL.js CHANGED
@@ -96,6 +96,7 @@ const plPLGrid = {
96
96
  filterValueFalse: 'fałsz',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menu',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Pokaż wszystkie kolumny',
100
101
  columnMenuManageColumns: 'Zarządzaj kolumnami',
101
102
  columnMenuFilter: 'Filtr',
package/locales/ptBR.js CHANGED
@@ -96,6 +96,7 @@ const ptBRGrid = {
96
96
  filterValueFalse: 'falso',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menu',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Exibir colunas',
100
101
  columnMenuManageColumns: 'Gerir colunas',
101
102
  columnMenuFilter: 'Filtrar',
package/locales/ptPT.js CHANGED
@@ -96,6 +96,7 @@ const ptPTGrid = {
96
96
  filterValueFalse: 'falso',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menu',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Mostrar colunas',
100
101
  columnMenuManageColumns: 'Gerir colunas',
101
102
  columnMenuFilter: 'Filtro',
package/locales/roRO.js CHANGED
@@ -96,6 +96,7 @@ const roROGrid = {
96
96
  filterValueFalse: 'Nu',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Meniu',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Afișează toate coloanele',
100
101
  columnMenuManageColumns: 'Gestionează coloane',
101
102
  columnMenuFilter: 'Filtru',
package/locales/ruRU.js CHANGED
@@ -111,6 +111,7 @@ const ruRUGrid = {
111
111
  filterValueFalse: 'ложь',
112
112
  // Column menu text
113
113
  columnMenuLabel: 'Меню',
114
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
114
115
  columnMenuShowColumns: 'Показать столбцы',
115
116
  columnMenuManageColumns: 'Управление колонками',
116
117
  columnMenuFilter: 'Фильтр',
package/locales/skSK.js CHANGED
@@ -41,9 +41,8 @@ const skSKGrid = {
41
41
  columnsManagementSearchTitle: 'Vyhľadať',
42
42
  columnsManagementNoColumns: 'Žiadne stĺpce',
43
43
  columnsManagementShowHideAllText: 'Zobraziť/Skryť všetko',
44
- // columnsManagementReset: 'Reset',
45
- // columnsManagementDeleteIconLabel: 'Clear',
46
-
44
+ columnsManagementReset: 'Resetovať',
45
+ columnsManagementDeleteIconLabel: 'Vymazať',
47
46
  // Filter panel text
48
47
  filterPanelAddFilter: 'Pridať filter',
49
48
  filterPanelRemoveAll: 'Odstrániť všetky',
@@ -57,9 +56,9 @@ const skSKGrid = {
57
56
  filterPanelInputPlaceholder: 'Hodnota filtra',
58
57
  // Filter operators text
59
58
  filterOperatorContains: 'obsahuje',
60
- // filterOperatorDoesNotContain: 'does not contain',
59
+ filterOperatorDoesNotContain: 'neobsahuje',
61
60
  filterOperatorEquals: 'rovná sa',
62
- // filterOperatorDoesNotEqual: 'does not equal',
61
+ filterOperatorDoesNotEqual: 'nerovná sa',
63
62
  filterOperatorStartsWith: 'začína s',
64
63
  filterOperatorEndsWith: 'končí na',
65
64
  filterOperatorIs: 'je',
@@ -79,9 +78,9 @@ const skSKGrid = {
79
78
  'filterOperator<=': '<=',
80
79
  // Header filter operators text
81
80
  headerFilterOperatorContains: 'Obsahuje',
82
- // headerFilterOperatorDoesNotContain: 'Does not contain',
81
+ headerFilterOperatorDoesNotContain: 'Neobsahuje',
83
82
  headerFilterOperatorEquals: 'Rovná sa',
84
- // headerFilterOperatorDoesNotEqual: 'Does not equal',
83
+ headerFilterOperatorDoesNotEqual: 'Nerovná sa',
85
84
  headerFilterOperatorStartsWith: 'Začína s',
86
85
  headerFilterOperatorEndsWith: 'Končí na',
87
86
  headerFilterOperatorIs: 'Je',
@@ -105,6 +104,7 @@ const skSKGrid = {
105
104
  filterValueFalse: 'nie',
106
105
  // Column menu text
107
106
  columnMenuLabel: 'Menu',
107
+ columnMenuAriaLabel: columnName => `Ponuka stĺpca ${columnName}`,
108
108
  columnMenuShowColumns: 'Zobraziť stĺpce',
109
109
  columnMenuManageColumns: 'Spravovať stĺpce',
110
110
  columnMenuFilter: 'Filter',
package/locales/svSE.js CHANGED
@@ -97,6 +97,7 @@ const svSEGrid = {
97
97
  filterValueFalse: 'falskt',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Meny',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Visa kolumner',
101
102
  columnMenuManageColumns: 'Hantera kolumner',
102
103
  columnMenuFilter: 'Filtrera',
package/locales/trTR.js CHANGED
@@ -96,6 +96,7 @@ const trTRGrid = {
96
96
  filterValueFalse: 'yanlış',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'Menü',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'Sütunları göster',
100
101
  columnMenuManageColumns: 'Sütunları yönet',
101
102
  columnMenuFilter: 'Filtre Ekle',
package/locales/ukUA.js CHANGED
@@ -111,6 +111,7 @@ const ukUAGrid = {
111
111
  filterValueFalse: 'ні',
112
112
  // Column menu text
113
113
  columnMenuLabel: 'Меню',
114
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
114
115
  columnMenuShowColumns: 'Показати стовпці',
115
116
  columnMenuManageColumns: 'Керування стовпцями',
116
117
  columnMenuFilter: 'Фільтр',
package/locales/urPK.js CHANGED
@@ -96,6 +96,7 @@ const urPKGrid = {
96
96
  filterValueFalse: 'غلط',
97
97
  // Column menu text
98
98
  columnMenuLabel: 'مینیو',
99
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
99
100
  columnMenuShowColumns: 'کالم دکھائیں',
100
101
  columnMenuManageColumns: 'کالم مینج کریں',
101
102
  columnMenuFilter: 'فلٹر',
package/locales/viVN.js CHANGED
@@ -97,6 +97,7 @@ const viVNGrid = {
97
97
  filterValueFalse: 'Không',
98
98
  // Column menu text
99
99
  columnMenuLabel: 'Danh mục',
100
+ // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
100
101
  columnMenuShowColumns: 'Danh sách cột',
101
102
  columnMenuManageColumns: 'Quản lý cột',
102
103
  columnMenuFilter: 'Bộ lọc',
package/locales/zhCN.js CHANGED
@@ -96,6 +96,7 @@ const zhCNGrid = {
96
96
  filterValueFalse: '假',
97
97
  // Column menu text
98
98
  columnMenuLabel: '菜单',
99
+ columnMenuAriaLabel: columnName => `${columnName} 列菜单`,
99
100
  columnMenuShowColumns: '显示',
100
101
  columnMenuManageColumns: '管理列',
101
102
  columnMenuFilter: '筛选器',
package/locales/zhHK.js CHANGED
@@ -30,12 +30,11 @@ const zhHKGrid = {
30
30
  toolbarExportPrint: '列印',
31
31
  toolbarExportExcel: '下載為 Excel',
32
32
  // Columns management text
33
- // columnsManagementSearchTitle: 'Search',
34
- // columnsManagementNoColumns: 'No columns',
35
- // columnsManagementShowHideAllText: 'Show/Hide All',
36
- // columnsManagementReset: 'Reset',
37
- // columnsManagementDeleteIconLabel: 'Clear',
38
-
33
+ columnsManagementSearchTitle: '搜尋',
34
+ columnsManagementNoColumns: '沒有列',
35
+ columnsManagementShowHideAllText: '顯示/隱藏所有',
36
+ columnsManagementReset: '重置',
37
+ columnsManagementDeleteIconLabel: '清除',
39
38
  // Filter panel text
40
39
  filterPanelAddFilter: '新增過濾器',
41
40
  filterPanelRemoveAll: '移除所有',
@@ -49,9 +48,9 @@ const zhHKGrid = {
49
48
  filterPanelInputPlaceholder: '過濾值',
50
49
  // Filter operators text
51
50
  filterOperatorContains: '包含',
52
- // filterOperatorDoesNotContain: 'does not contain',
51
+ filterOperatorDoesNotContain: '不包含',
53
52
  filterOperatorEquals: '等於',
54
- // filterOperatorDoesNotEqual: 'does not equal',
53
+ filterOperatorDoesNotEqual: '不等於',
55
54
  filterOperatorStartsWith: '以。。開始',
56
55
  filterOperatorEndsWith: '以。。結束',
57
56
  filterOperatorIs: '是',
@@ -71,9 +70,9 @@ const zhHKGrid = {
71
70
  'filterOperator<=': '<=',
72
71
  // Header filter operators text
73
72
  headerFilterOperatorContains: '包含',
74
- // headerFilterOperatorDoesNotContain: 'Does not contain',
73
+ headerFilterOperatorDoesNotContain: '不包含',
75
74
  headerFilterOperatorEquals: '等於',
76
- // headerFilterOperatorDoesNotEqual: 'Does not equal',
75
+ headerFilterOperatorDoesNotEqual: '不等於',
77
76
  headerFilterOperatorStartsWith: '以。。開始',
78
77
  headerFilterOperatorEndsWith: '以。。結束',
79
78
  headerFilterOperatorIs: '是',
@@ -87,7 +86,7 @@ const zhHKGrid = {
87
86
  headerFilterOperatorIsAnyOf: '是以下任一個',
88
87
  'headerFilterOperator=': '等於',
89
88
  'headerFilterOperator!=': '不等於',
90
- 'headerFilterOperator>': '比...更棒',
89
+ 'headerFilterOperator>': '大於',
91
90
  'headerFilterOperator>=': '大於或等於',
92
91
  'headerFilterOperator<': '少於',
93
92
  'headerFilterOperator<=': '小於或等於',
@@ -97,6 +96,7 @@ const zhHKGrid = {
97
96
  filterValueFalse: '錯誤的',
98
97
  // Column menu text
99
98
  columnMenuLabel: '選單',
99
+ columnMenuAriaLabel: columnName => `${columnName} 欄目選單`,
100
100
  columnMenuShowColumns: '顯示欄目',
101
101
  columnMenuManageColumns: '管理欄目',
102
102
  columnMenuFilter: '篩選',
package/locales/zhTW.js CHANGED
@@ -30,12 +30,11 @@ const zhTWGrid = {
30
30
  toolbarExportPrint: '列印',
31
31
  toolbarExportExcel: '匯出 Excel',
32
32
  // Columns management text
33
- // columnsManagementSearchTitle: 'Search',
34
- // columnsManagementNoColumns: 'No columns',
35
- // columnsManagementShowHideAllText: 'Show/Hide All',
36
- // columnsManagementReset: 'Reset',
37
- // columnsManagementDeleteIconLabel: 'Clear',
38
-
33
+ columnsManagementSearchTitle: '搜尋',
34
+ columnsManagementNoColumns: '沒有欄位',
35
+ columnsManagementShowHideAllText: '顯示/隱藏所有',
36
+ columnsManagementReset: '重置',
37
+ columnsManagementDeleteIconLabel: '清除',
39
38
  // Filter panel text
40
39
  filterPanelAddFilter: '增加篩選器',
41
40
  filterPanelRemoveAll: '清除所有',
@@ -49,9 +48,9 @@ const zhTWGrid = {
49
48
  filterPanelInputPlaceholder: '篩選值',
50
49
  // Filter operators text
51
50
  filterOperatorContains: '包含',
52
- // filterOperatorDoesNotContain: 'does not contain',
51
+ filterOperatorDoesNotContain: '不包含',
53
52
  filterOperatorEquals: '等於',
54
- // filterOperatorDoesNotEqual: 'does not equal',
53
+ filterOperatorDoesNotEqual: '不等於',
55
54
  filterOperatorStartsWith: '以...開頭',
56
55
  filterOperatorEndsWith: '以...結束',
57
56
  filterOperatorIs: '為',
@@ -71,9 +70,9 @@ const zhTWGrid = {
71
70
  'filterOperator<=': '<=',
72
71
  // Header filter operators text
73
72
  headerFilterOperatorContains: '包含',
74
- // headerFilterOperatorDoesNotContain: 'Does not contain',
73
+ headerFilterOperatorDoesNotContain: '不包含',
75
74
  headerFilterOperatorEquals: '等於',
76
- // headerFilterOperatorDoesNotEqual: 'Does not equal',
75
+ headerFilterOperatorDoesNotEqual: '不等於',
77
76
  headerFilterOperatorStartsWith: '以...開頭',
78
77
  headerFilterOperatorEndsWith: '以...結束',
79
78
  headerFilterOperatorIs: '為',
@@ -97,6 +96,7 @@ const zhTWGrid = {
97
96
  filterValueFalse: '假',
98
97
  // Column menu text
99
98
  columnMenuLabel: '選單',
99
+ columnMenuAriaLabel: columnName => `${columnName} 欄位選單`,
100
100
  columnMenuShowColumns: '顯示欄位',
101
101
  columnMenuManageColumns: '管理欄位',
102
102
  columnMenuFilter: '篩選器',
@@ -92,6 +92,7 @@ export interface GridLocaleText {
92
92
  filterValueTrue: string;
93
93
  filterValueFalse: string;
94
94
  columnMenuLabel: string;
95
+ columnMenuAriaLabel: (columnName: string) => string;
95
96
  columnMenuShowColumns: React.ReactNode;
96
97
  columnMenuManageColumns: React.ReactNode;
97
98
  columnMenuFilter: React.ReactNode;
@@ -1,4 +1,5 @@
1
1
  import { GridRowId, GridRowModel } from '../gridRows';
2
+ import { GridRowSelectionModel } from '../gridRowSelectionModel';
2
3
  /**
3
4
  * The selection API interface that is available in the grid [[apiRef]].
4
5
  */
@@ -28,11 +29,13 @@ export interface GridRowSelectionApi {
28
29
  */
29
30
  getSelectedRows: () => Map<GridRowId, GridRowModel>;
30
31
  /**
31
- * Updates the selected rows to be those passed to the `rowIds` argument.
32
- * Any row already selected will be unselected.
33
- * @param {readonly GridRowId[]} rowIds The row ids to select.
32
+ * Sets the new row selection model.
33
+ *
34
+ * ⚠️ Caution: `setRowSelectionModel` doesn't apply the selection propagation automatically.
35
+ * Pass model returned by API method `getPropagatedRowSelectionModel` instead to apply the selection propagation.
36
+ * @param {gridRowSelectionModel} rowSelectionModel The new row selection model
34
37
  */
35
- setRowSelectionModel: (rowIds: readonly GridRowId[]) => void;
38
+ setRowSelectionModel: (rowSelectionModel: GridRowSelectionModel) => void;
36
39
  }
37
40
  export interface GridRowMultiSelectionApi {
38
41
  /**
@@ -54,6 +57,14 @@ export interface GridRowMultiSelectionApi {
54
57
  startId: GridRowId;
55
58
  endId: GridRowId;
56
59
  }, isSelected?: boolean, resetSelection?: boolean) => void;
60
+ /**
61
+ * Returns the modified selection model after applying row selection propagation.
62
+ *
63
+ * Use this to achieve proper `rowSelectionPropagation` behavior when setting the selection model using `setRowSelectionModel`.
64
+ * @param {GridRowSelectionModel} inputSelectionModel The selection model to propagate.
65
+ * @returns {GridRowSelectionModel} The modified selection model.
66
+ */
67
+ getPropagatedRowSelectionModel: (inputSelectionModel: GridRowSelectionModel) => GridRowSelectionModel;
57
68
  }
58
69
  export interface GridMultiSelectionApi {
59
70
  /**
@@ -90,7 +90,9 @@ function GridActionsCell(props) {
90
90
  const hideMenu = () => {
91
91
  setOpen(false);
92
92
  };
93
- const toggleMenu = () => {
93
+ const toggleMenu = event => {
94
+ event.stopPropagation();
95
+ event.preventDefault();
94
96
  if (open) {
95
97
  hideMenu();
96
98
  } else {
@@ -193,9 +193,9 @@ const GridCell = forwardRef(function GridCell(props, ref) {
193
193
  const isRightPinned = pinnedPosition === PinnedColumnPosition.RIGHT;
194
194
  if (rowSpan > 1) {
195
195
  cellStyle.height = `calc(var(--height) * ${rowSpan})`;
196
- cellStyle.zIndex = 5;
196
+ cellStyle.zIndex = 10;
197
197
  if (isLeftPinned || isRightPinned) {
198
- cellStyle.zIndex = 6;
198
+ cellStyle.zIndex = 40;
199
199
  }
200
200
  }
201
201
  return cellStyle;
@@ -35,6 +35,7 @@ export const ColumnHeaderMenuIcon = /*#__PURE__*/React.memo(props => {
35
35
  event.stopPropagation();
36
36
  apiRef.current.toggleColumnMenu(colDef.field);
37
37
  }, [apiRef, colDef.field]);
38
+ const columnName = colDef.headerName ?? colDef.field;
38
39
  return /*#__PURE__*/_jsx("div", {
39
40
  className: classes.root,
40
41
  children: /*#__PURE__*/_jsx(rootProps.slots.baseTooltip, _extends({
@@ -45,7 +46,7 @@ export const ColumnHeaderMenuIcon = /*#__PURE__*/React.memo(props => {
45
46
  ref: iconButtonRef,
46
47
  tabIndex: -1,
47
48
  className: classes.button,
48
- "aria-label": apiRef.current.getLocaleText('columnMenuLabel'),
49
+ "aria-label": apiRef.current.getLocaleText('columnMenuAriaLabel')(columnName),
49
50
  size: "small",
50
51
  onClick: handleMenuIconClick,
51
52
  "aria-haspopup": "menu",
@@ -485,14 +485,14 @@ export const GridRootStyles = styled('div', {
485
485
  },
486
486
  [`& .${c['columnHeader--pinnedLeft']}, & .${c['columnHeader--pinnedRight']}`]: {
487
487
  position: 'sticky',
488
- zIndex: 4,
488
+ zIndex: 40,
489
489
  // Should be above the column separator
490
490
  background: 'var(--DataGrid-pinnedBackground)'
491
491
  },
492
492
  [`& .${c.columnSeparator}`]: {
493
493
  position: 'absolute',
494
494
  overflow: 'hidden',
495
- zIndex: 3,
495
+ zIndex: 30,
496
496
  display: 'flex',
497
497
  flexDirection: 'column',
498
498
  justifyContent: 'center',
@@ -732,7 +732,7 @@ export const GridRootStyles = styled('div', {
732
732
  },
733
733
  [`& .${c['cell--pinnedLeft']}, & .${c['cell--pinnedRight']}`]: {
734
734
  position: 'sticky',
735
- zIndex: 3,
735
+ zIndex: 30,
736
736
  background: 'var(--DataGrid-pinnedBackground)',
737
737
  '&.Mui-selected': {
738
738
  backgroundColor: pinnedSelectedBackgroundColor
@@ -1,5 +1,5 @@
1
1
  export * from "./GridFilterForm.js";
2
- export * from "./GridFilterInputValue.js";
2
+ export { GridFilterInputValue } from "./GridFilterInputValue.js";
3
3
  export * from "./GridFilterInputDate.js";
4
4
  export * from "./GridFilterInputSingleSelect.js";
5
5
  export * from "./GridFilterInputBoolean.js";
@@ -13,7 +13,7 @@ const useUtilityClasses = () => {
13
13
  };
14
14
  const Element = styled('div')({
15
15
  position: 'sticky',
16
- zIndex: 4,
16
+ zIndex: 40,
17
17
  bottom: 'calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))'
18
18
  });
19
19
  export function GridBottomContainer(props) {
@@ -13,7 +13,7 @@ const useUtilityClasses = () => {
13
13
  };
14
14
  const Element = styled('div')({
15
15
  position: 'sticky',
16
- zIndex: 4,
16
+ zIndex: 40,
17
17
  top: 0
18
18
  });
19
19
  export function GridTopContainer(props) {
@@ -21,9 +21,9 @@ const useUtilityClasses = (ownerState, position) => {
21
21
  const Scrollbar = styled('div')({
22
22
  position: 'absolute',
23
23
  display: 'inline-block',
24
- zIndex: 6,
24
+ zIndex: 60,
25
25
  '&:hover': {
26
- zIndex: 7
26
+ zIndex: 70
27
27
  },
28
28
  // In macOS Safari and Gnome Web, scrollbars are overlaid and don't affect the layout. So we consider
29
29
  // their size to be 0px throughout all the calculations, but the floating scrollbar container does need
@@ -94,6 +94,7 @@ export const GRID_DEFAULT_LOCALE_TEXT = {
94
94
  filterValueFalse: 'false',
95
95
  // Column menu text
96
96
  columnMenuLabel: 'Menu',
97
+ columnMenuAriaLabel: columnName => `${columnName} column menu`,
97
98
  columnMenuShowColumns: 'Show columns',
98
99
  columnMenuManageColumns: 'Manage columns',
99
100
  columnMenuFilter: 'Filter',