@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.
- package/CHANGELOG.md +86 -0
- package/README.md +1 -1
- package/components/cell/GridActionsCell.js +3 -1
- package/components/cell/GridCell.js +2 -2
- package/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -1
- package/components/containers/GridRootStyles.js +3 -3
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +4 -0
- package/components/panel/filterPanel/index.d.ts +1 -1
- package/components/panel/filterPanel/index.js +1 -1
- package/components/virtualization/GridBottomContainer.js +1 -1
- package/components/virtualization/GridTopContainer.js +1 -1
- package/components/virtualization/GridVirtualScrollbar.js +2 -2
- package/constants/localeTextConstants.js +1 -0
- package/hooks/features/editing/useGridRowEditing.js +19 -10
- package/hooks/features/export/useGridPrintExport.js +4 -4
- package/hooks/features/filter/useGridFilter.js +5 -0
- package/hooks/features/rowSelection/useGridRowSelection.js +47 -11
- package/hooks/features/rowSelection/utils.d.ts +2 -2
- package/hooks/features/rowSelection/utils.js +8 -6
- package/index.js +1 -1
- package/locales/arSD.js +1 -0
- package/locales/beBY.js +1 -0
- package/locales/bgBG.js +1 -0
- package/locales/bnBD.js +1 -0
- package/locales/csCZ.js +6 -6
- package/locales/daDK.js +1 -0
- package/locales/deDE.js +1 -0
- package/locales/elGR.js +1 -0
- package/locales/esES.js +1 -0
- package/locales/faIR.js +1 -0
- package/locales/fiFI.js +1 -0
- package/locales/frFR.js +1 -0
- package/locales/heIL.js +1 -0
- package/locales/hrHR.js +1 -0
- package/locales/huHU.js +1 -0
- package/locales/isIS.js +1 -0
- package/locales/itIT.js +1 -0
- package/locales/jaJP.js +1 -0
- package/locales/koKR.js +2 -1
- package/locales/nbNO.js +1 -0
- package/locales/nlNL.js +1 -0
- package/locales/nnNO.js +1 -0
- package/locales/plPL.js +1 -0
- package/locales/ptBR.js +1 -0
- package/locales/ptPT.js +1 -0
- package/locales/roRO.js +1 -0
- package/locales/ruRU.js +1 -0
- package/locales/skSK.js +7 -7
- package/locales/svSE.js +1 -0
- package/locales/trTR.js +1 -0
- package/locales/ukUA.js +1 -0
- package/locales/urPK.js +1 -0
- package/locales/viVN.js +1 -0
- package/locales/zhCN.js +1 -0
- package/locales/zhHK.js +11 -11
- package/locales/zhTW.js +10 -10
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/api/gridRowSelectionApi.d.ts +15 -4
- package/modern/components/cell/GridActionsCell.js +3 -1
- package/modern/components/cell/GridCell.js +2 -2
- package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -1
- package/modern/components/containers/GridRootStyles.js +3 -3
- package/modern/components/panel/filterPanel/index.js +1 -1
- package/modern/components/virtualization/GridBottomContainer.js +1 -1
- package/modern/components/virtualization/GridTopContainer.js +1 -1
- package/modern/components/virtualization/GridVirtualScrollbar.js +2 -2
- package/modern/constants/localeTextConstants.js +1 -0
- package/modern/hooks/features/editing/useGridRowEditing.js +19 -10
- package/modern/hooks/features/export/useGridPrintExport.js +4 -4
- package/modern/hooks/features/filter/useGridFilter.js +5 -0
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +47 -11
- package/modern/hooks/features/rowSelection/utils.js +8 -6
- package/modern/index.js +1 -1
- package/modern/locales/arSD.js +1 -0
- package/modern/locales/beBY.js +1 -0
- package/modern/locales/bgBG.js +1 -0
- package/modern/locales/bnBD.js +1 -0
- package/modern/locales/csCZ.js +6 -6
- package/modern/locales/daDK.js +1 -0
- package/modern/locales/deDE.js +1 -0
- package/modern/locales/elGR.js +1 -0
- package/modern/locales/esES.js +1 -0
- package/modern/locales/faIR.js +1 -0
- package/modern/locales/fiFI.js +1 -0
- package/modern/locales/frFR.js +1 -0
- package/modern/locales/heIL.js +1 -0
- package/modern/locales/hrHR.js +1 -0
- package/modern/locales/huHU.js +1 -0
- package/modern/locales/isIS.js +1 -0
- package/modern/locales/itIT.js +1 -0
- package/modern/locales/jaJP.js +1 -0
- package/modern/locales/koKR.js +2 -1
- package/modern/locales/nbNO.js +1 -0
- package/modern/locales/nlNL.js +1 -0
- package/modern/locales/nnNO.js +1 -0
- package/modern/locales/plPL.js +1 -0
- package/modern/locales/ptBR.js +1 -0
- package/modern/locales/ptPT.js +1 -0
- package/modern/locales/roRO.js +1 -0
- package/modern/locales/ruRU.js +1 -0
- package/modern/locales/skSK.js +7 -7
- package/modern/locales/svSE.js +1 -0
- package/modern/locales/trTR.js +1 -0
- package/modern/locales/ukUA.js +1 -0
- package/modern/locales/urPK.js +1 -0
- package/modern/locales/viVN.js +1 -0
- package/modern/locales/zhCN.js +1 -0
- package/modern/locales/zhHK.js +11 -11
- package/modern/locales/zhTW.js +10 -10
- package/node/components/cell/GridActionsCell.js +3 -1
- package/node/components/cell/GridCell.js +2 -2
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -1
- package/node/components/containers/GridRootStyles.js +3 -3
- package/node/components/panel/filterPanel/index.js +7 -11
- package/node/components/virtualization/GridBottomContainer.js +1 -1
- package/node/components/virtualization/GridTopContainer.js +1 -1
- package/node/components/virtualization/GridVirtualScrollbar.js +2 -2
- package/node/constants/localeTextConstants.js +1 -0
- package/node/hooks/features/editing/useGridRowEditing.js +19 -10
- package/node/hooks/features/export/useGridPrintExport.js +4 -4
- package/node/hooks/features/filter/useGridFilter.js +5 -0
- package/node/hooks/features/rowSelection/useGridRowSelection.js +55 -19
- package/node/hooks/features/rowSelection/utils.js +7 -5
- package/node/index.js +1 -1
- package/node/locales/arSD.js +1 -0
- package/node/locales/beBY.js +1 -0
- package/node/locales/bgBG.js +1 -0
- package/node/locales/bnBD.js +1 -0
- package/node/locales/csCZ.js +6 -6
- package/node/locales/daDK.js +1 -0
- package/node/locales/deDE.js +1 -0
- package/node/locales/elGR.js +1 -0
- package/node/locales/esES.js +1 -0
- package/node/locales/faIR.js +1 -0
- package/node/locales/fiFI.js +1 -0
- package/node/locales/frFR.js +1 -0
- package/node/locales/heIL.js +1 -0
- package/node/locales/hrHR.js +1 -0
- package/node/locales/huHU.js +1 -0
- package/node/locales/isIS.js +1 -0
- package/node/locales/itIT.js +1 -0
- package/node/locales/jaJP.js +1 -0
- package/node/locales/koKR.js +2 -1
- package/node/locales/nbNO.js +1 -0
- package/node/locales/nlNL.js +1 -0
- package/node/locales/nnNO.js +1 -0
- package/node/locales/plPL.js +1 -0
- package/node/locales/ptBR.js +1 -0
- package/node/locales/ptPT.js +1 -0
- package/node/locales/roRO.js +1 -0
- package/node/locales/ruRU.js +1 -0
- package/node/locales/skSK.js +7 -7
- package/node/locales/svSE.js +1 -0
- package/node/locales/trTR.js +1 -0
- package/node/locales/ukUA.js +1 -0
- package/node/locales/urPK.js +1 -0
- package/node/locales/viVN.js +1 -0
- package/node/locales/zhCN.js +1 -0
- package/node/locales/zhHK.js +11 -11
- package/node/locales/zhTW.js +10 -10
- 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
|
-
|
|
45
|
-
|
|
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
|
-
|
|
59
|
+
filterOperatorDoesNotContain: 'neobsahuje',
|
|
61
60
|
filterOperatorEquals: 'rovná sa',
|
|
62
|
-
|
|
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
|
-
|
|
81
|
+
headerFilterOperatorDoesNotContain: 'Neobsahuje',
|
|
83
82
|
headerFilterOperatorEquals: 'Rovná sa',
|
|
84
|
-
|
|
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
package/locales/zhHK.js
CHANGED
|
@@ -30,12 +30,11 @@ const zhHKGrid = {
|
|
|
30
30
|
toolbarExportPrint: '列印',
|
|
31
31
|
toolbarExportExcel: '下載為 Excel',
|
|
32
32
|
// Columns management text
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
51
|
+
filterOperatorDoesNotContain: '不包含',
|
|
53
52
|
filterOperatorEquals: '等於',
|
|
54
|
-
|
|
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
|
-
|
|
73
|
+
headerFilterOperatorDoesNotContain: '不包含',
|
|
75
74
|
headerFilterOperatorEquals: '等於',
|
|
76
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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
|
-
|
|
51
|
+
filterOperatorDoesNotContain: '不包含',
|
|
53
52
|
filterOperatorEquals: '等於',
|
|
54
|
-
|
|
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
|
-
|
|
73
|
+
headerFilterOperatorDoesNotContain: '不包含',
|
|
75
74
|
headerFilterOperatorEquals: '等於',
|
|
76
|
-
|
|
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
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
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: (
|
|
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
|
/**
|
|
@@ -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 =
|
|
196
|
+
cellStyle.zIndex = 10;
|
|
197
197
|
if (isLeftPinned || isRightPinned) {
|
|
198
|
-
cellStyle.zIndex =
|
|
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('
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
2
|
+
export { GridFilterInputValue } from "./GridFilterInputValue.js";
|
|
3
3
|
export * from "./GridFilterInputDate.js";
|
|
4
4
|
export * from "./GridFilterInputSingleSelect.js";
|
|
5
5
|
export * from "./GridFilterInputBoolean.js";
|
|
@@ -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:
|
|
24
|
+
zIndex: 60,
|
|
25
25
|
'&:hover': {
|
|
26
|
-
zIndex:
|
|
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',
|