@mui/x-data-grid 5.12.2 → 5.13.1

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 (177) hide show
  1. package/CHANGELOG.md +160 -6
  2. package/DataGrid/DataGrid.js +4 -4
  3. package/colDef/gridDateOperators.js +4 -2
  4. package/colDef/gridNumericOperators.js +4 -2
  5. package/colDef/gridStringOperators.d.ts +1 -1
  6. package/colDef/gridStringOperators.js +15 -8
  7. package/components/GridRow.js +1 -1
  8. package/components/cell/GridActionsCellItem.d.ts +2 -2
  9. package/components/cell/GridBooleanCell.js +4 -3
  10. package/components/cell/GridEditBooleanCell.js +4 -3
  11. package/components/cell/GridEditDateCell.js +4 -3
  12. package/components/cell/GridEditInputCell.js +4 -3
  13. package/components/cell/GridEditSingleSelectCell.js +9 -7
  14. package/components/panel/GridColumnsPanel.js +1 -1
  15. package/components/panel/GridPanel.d.ts +1 -1
  16. package/components/panel/filterPanel/GridFilterForm.js +11 -4
  17. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  18. package/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  19. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +5 -9
  20. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +42 -19
  21. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -7
  22. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +32 -14
  23. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  24. package/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  25. package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +6 -3
  26. package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  27. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  28. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  29. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  30. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  31. package/hooks/features/dimensions/useGridDimensions.js +28 -15
  32. package/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  33. package/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  34. package/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  35. package/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  36. package/hooks/features/filter/gridFilterUtils.js +8 -5
  37. package/hooks/features/filter/useGridFilter.js +19 -1
  38. package/hooks/features/rows/useGridRows.js +16 -3
  39. package/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  40. package/hooks/features/virtualization/useGridVirtualScroller.js +14 -3
  41. package/hooks/utils/useGridApiContext.js +1 -1
  42. package/hooks/utils/useGridRootProps.js +1 -1
  43. package/index.js +1 -1
  44. package/legacy/DataGrid/DataGrid.js +4 -4
  45. package/legacy/colDef/gridDateOperators.js +4 -2
  46. package/legacy/colDef/gridNumericOperators.js +4 -2
  47. package/legacy/colDef/gridStringOperators.js +17 -7
  48. package/legacy/components/GridRow.js +1 -1
  49. package/legacy/components/cell/GridBooleanCell.js +3 -1
  50. package/legacy/components/cell/GridEditBooleanCell.js +4 -2
  51. package/legacy/components/cell/GridEditDateCell.js +4 -2
  52. package/legacy/components/cell/GridEditInputCell.js +4 -2
  53. package/legacy/components/cell/GridEditSingleSelectCell.js +9 -7
  54. package/legacy/components/panel/GridColumnsPanel.js +3 -1
  55. package/legacy/components/panel/filterPanel/GridFilterForm.js +9 -4
  56. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  57. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  58. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +34 -12
  59. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +24 -7
  60. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  61. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  62. package/legacy/hooks/features/dimensions/useGridDimensions.js +27 -15
  63. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  64. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +16 -8
  65. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  66. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +22 -14
  67. package/legacy/hooks/features/filter/gridFilterUtils.js +8 -5
  68. package/legacy/hooks/features/filter/useGridFilter.js +19 -1
  69. package/legacy/hooks/features/rows/useGridRows.js +18 -3
  70. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  71. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +19 -8
  72. package/legacy/hooks/utils/useGridApiContext.js +1 -1
  73. package/legacy/hooks/utils/useGridRootProps.js +1 -1
  74. package/legacy/index.js +1 -1
  75. package/legacy/locales/deDE.js +4 -4
  76. package/legacy/locales/frFR.js +11 -11
  77. package/legacy/locales/index.js +3 -0
  78. package/legacy/locales/nlNL.js +15 -15
  79. package/legacy/locales/ptBR.js +11 -11
  80. package/legacy/locales/roRO.js +128 -0
  81. package/legacy/locales/skSK.js +16 -16
  82. package/legacy/locales/svSE.js +128 -0
  83. package/legacy/utils/keyboardUtils.js +4 -3
  84. package/locales/deDE.js +4 -4
  85. package/locales/frFR.js +11 -11
  86. package/locales/index.d.ts +3 -0
  87. package/locales/index.js +3 -0
  88. package/locales/nlNL.js +15 -15
  89. package/locales/ptBR.js +11 -11
  90. package/locales/roRO.d.ts +2 -0
  91. package/locales/roRO.js +116 -0
  92. package/locales/skSK.js +16 -16
  93. package/locales/svSE.d.ts +2 -0
  94. package/locales/svSE.js +116 -0
  95. package/models/gridFilterOperator.d.ts +6 -0
  96. package/modern/DataGrid/DataGrid.js +4 -4
  97. package/modern/colDef/gridDateOperators.js +4 -2
  98. package/modern/colDef/gridNumericOperators.js +4 -2
  99. package/modern/colDef/gridStringOperators.js +15 -8
  100. package/modern/components/GridRow.js +1 -1
  101. package/modern/components/cell/GridBooleanCell.js +4 -3
  102. package/modern/components/cell/GridEditBooleanCell.js +4 -3
  103. package/modern/components/cell/GridEditDateCell.js +4 -3
  104. package/modern/components/cell/GridEditInputCell.js +4 -3
  105. package/modern/components/cell/GridEditSingleSelectCell.js +9 -7
  106. package/modern/components/panel/GridColumnsPanel.js +1 -1
  107. package/modern/components/panel/filterPanel/GridFilterForm.js +11 -4
  108. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  109. package/modern/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  110. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +32 -13
  111. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +22 -8
  112. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  113. package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  114. package/modern/hooks/features/dimensions/useGridDimensions.js +28 -15
  115. package/modern/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  116. package/modern/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  117. package/modern/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  118. package/modern/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  119. package/modern/hooks/features/filter/gridFilterUtils.js +8 -5
  120. package/modern/hooks/features/filter/useGridFilter.js +17 -1
  121. package/modern/hooks/features/rows/useGridRows.js +16 -3
  122. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  123. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +10 -3
  124. package/modern/hooks/utils/useGridApiContext.js +1 -1
  125. package/modern/hooks/utils/useGridRootProps.js +1 -1
  126. package/modern/index.js +1 -1
  127. package/modern/locales/deDE.js +4 -4
  128. package/modern/locales/frFR.js +11 -11
  129. package/modern/locales/index.js +3 -0
  130. package/modern/locales/nlNL.js +15 -15
  131. package/modern/locales/ptBR.js +11 -11
  132. package/modern/locales/roRO.js +116 -0
  133. package/modern/locales/skSK.js +16 -16
  134. package/modern/locales/svSE.js +116 -0
  135. package/modern/utils/keyboardUtils.js +4 -3
  136. package/node/DataGrid/DataGrid.js +4 -4
  137. package/node/colDef/gridDateOperators.js +4 -2
  138. package/node/colDef/gridNumericOperators.js +4 -2
  139. package/node/colDef/gridStringOperators.js +15 -8
  140. package/node/components/GridRow.js +1 -1
  141. package/node/components/cell/GridBooleanCell.js +5 -3
  142. package/node/components/cell/GridEditBooleanCell.js +5 -3
  143. package/node/components/cell/GridEditDateCell.js +5 -3
  144. package/node/components/cell/GridEditInputCell.js +5 -3
  145. package/node/components/cell/GridEditSingleSelectCell.js +10 -7
  146. package/node/components/panel/GridColumnsPanel.js +1 -1
  147. package/node/components/panel/filterPanel/GridFilterForm.js +9 -4
  148. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  149. package/node/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  150. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +43 -20
  151. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +33 -15
  152. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  153. package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  154. package/node/hooks/features/dimensions/useGridDimensions.js +28 -15
  155. package/node/hooks/features/editRows/useGridCellEditing.new.js +7 -1
  156. package/node/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  157. package/node/hooks/features/editRows/useGridRowEditing.new.js +7 -1
  158. package/node/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  159. package/node/hooks/features/filter/gridFilterUtils.js +7 -4
  160. package/node/hooks/features/filter/useGridFilter.js +19 -1
  161. package/node/hooks/features/rows/useGridRows.js +16 -3
  162. package/node/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  163. package/node/hooks/features/virtualization/useGridVirtualScroller.js +14 -3
  164. package/node/hooks/utils/useGridApiContext.js +1 -1
  165. package/node/hooks/utils/useGridRootProps.js +1 -1
  166. package/node/index.js +1 -1
  167. package/node/locales/deDE.js +4 -4
  168. package/node/locales/frFR.js +11 -11
  169. package/node/locales/index.js +39 -0
  170. package/node/locales/nlNL.js +15 -15
  171. package/node/locales/ptBR.js +11 -11
  172. package/node/locales/roRO.js +126 -0
  173. package/node/locales/skSK.js +16 -16
  174. package/node/locales/svSE.js +126 -0
  175. package/node/utils/keyboardUtils.js +4 -3
  176. package/package.json +4 -4
  177. package/utils/keyboardUtils.js +4 -3
@@ -21,15 +21,15 @@ const nlNLGrid = {
21
21
  toolbarFiltersTooltipShow: 'Toon filters',
22
22
  toolbarFiltersTooltipActive: count => count > 1 ? `${count} actieve filters` : `${count} filter actief`,
23
23
  // Quick filter toolbar field
24
- // toolbarQuickFilterPlaceholder: 'Search...',
25
- // toolbarQuickFilterLabel: 'Search',
26
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ toolbarQuickFilterPlaceholder: 'Zoeken...',
25
+ toolbarQuickFilterLabel: 'Zoeken',
26
+ toolbarQuickFilterDeleteIconLabel: 'Wissen',
27
27
  // Export selector toolbar button text
28
28
  toolbarExport: 'Exporteren',
29
29
  toolbarExportLabel: 'Exporteren',
30
30
  toolbarExportCSV: 'Exporteer naar CSV',
31
31
  toolbarExportPrint: 'Print',
32
- // toolbarExportExcel: 'Download as Excel',
32
+ toolbarExportExcel: 'Downloaden als Excel-bestand',
33
33
  // Columns panel text
34
34
  columnsPanelTextFieldLabel: 'Zoek kolom',
35
35
  columnsPanelTextFieldPlaceholder: 'Kolomtitel',
@@ -39,7 +39,7 @@ const nlNLGrid = {
39
39
  // Filter panel text
40
40
  filterPanelAddFilter: 'Filter toevoegen',
41
41
  filterPanelDeleteIconLabel: 'Verwijderen',
42
- // filterPanelLinkOperator: 'Logic operator',
42
+ filterPanelLinkOperator: 'Logische operator',
43
43
  filterPanelOperators: 'Operatoren',
44
44
  // TODO v6: rename to filterPanelOperator
45
45
  filterPanelOperatorAnd: 'En',
@@ -60,7 +60,7 @@ const nlNLGrid = {
60
60
  filterOperatorOnOrBefore: 'is gelijk of er voor',
61
61
  filterOperatorIsEmpty: 'is leeg',
62
62
  filterOperatorIsNotEmpty: 'is niet leeg',
63
- // filterOperatorIsAnyOf: 'is any of',
63
+ filterOperatorIsAnyOf: 'is een van',
64
64
  // Filter values text
65
65
  filterValueAny: 'alles',
66
66
  filterValueTrue: 'waar',
@@ -85,10 +85,10 @@ const nlNLGrid = {
85
85
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} van ${totalCount.toLocaleString()}`,
86
86
  // Checkbox selection text
87
87
  checkboxSelectionHeaderName: 'Checkbox selectie',
88
- // checkboxSelectionSelectAllRows: 'Select all rows',
89
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
90
- // checkboxSelectionSelectRow: 'Select row',
91
- // checkboxSelectionUnselectRow: 'Unselect row',
88
+ checkboxSelectionSelectAllRows: 'Alle rijen selecteren',
89
+ checkboxSelectionUnselectAllRows: 'Alle rijen de-selecteren',
90
+ checkboxSelectionSelectRow: 'Rij selecteren',
91
+ checkboxSelectionUnselectRow: 'Rij de-selecteren',
92
92
  // Boolean cell text
93
93
  booleanCellTrueLabel: 'waar',
94
94
  booleanCellFalseLabel: 'onwaar',
@@ -105,12 +105,12 @@ const nlNLGrid = {
105
105
  // Grouping columns
106
106
  groupingColumnHeaderName: 'Groep',
107
107
  groupColumn: name => `Groepeer op ${name}`,
108
- unGroupColumn: name => `Stop groeperen op ${name}` // Master/detail
108
+ unGroupColumn: name => `Stop groeperen op ${name}`,
109
+ // Master/detail
109
110
  // detailPanelToggle: 'Detail panel toggle',
110
- // expandDetailPanel: 'Expand',
111
- // collapseDetailPanel: 'Collapse',
111
+ expandDetailPanel: 'Uitklappen',
112
+ collapseDetailPanel: 'Inklappen',
112
113
  // Row reordering text
113
- // rowReorderingHeaderName: 'Row reordering',
114
-
114
+ rowReorderingHeaderName: 'Rijen hersorteren'
115
115
  };
116
116
  export const nlNL = getGridLocalization(nlNLGrid, nlNLCore);
@@ -21,14 +21,14 @@ const ptBRGrid = {
21
21
  toolbarFiltersTooltipShow: 'Exibir filtros',
22
22
  toolbarFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
23
23
  // Quick filter toolbar field
24
- // toolbarQuickFilterPlaceholder: 'Search...',
25
- // toolbarQuickFilterLabel: 'Search',
26
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ toolbarQuickFilterPlaceholder: 'Procurar...',
25
+ toolbarQuickFilterLabel: 'Procurar',
26
+ toolbarQuickFilterDeleteIconLabel: 'Limpar',
27
27
  // Export selector toolbar button text
28
28
  toolbarExport: 'Exportar',
29
29
  toolbarExportLabel: 'Exportar',
30
30
  toolbarExportCSV: 'Baixar como CSV',
31
- toolbarExportPrint: 'Print',
31
+ toolbarExportPrint: 'Imprimir',
32
32
  toolbarExportExcel: 'Baixar como Excel',
33
33
  // Columns panel text
34
34
  columnsPanelTextFieldLabel: 'Localizar coluna',
@@ -60,7 +60,7 @@ const ptBRGrid = {
60
60
  filterOperatorOnOrBefore: 'em ou antes de',
61
61
  filterOperatorIsEmpty: 'está vazio',
62
62
  filterOperatorIsNotEmpty: 'não está vazio',
63
- // filterOperatorIsAnyOf: 'is any of',
63
+ filterOperatorIsAnyOf: 'é qualquer um dos',
64
64
  // Filter values text
65
65
  filterValueAny: 'qualquer',
66
66
  filterValueTrue: 'verdadeiro',
@@ -99,9 +99,9 @@ const ptBRGrid = {
99
99
  pinToRight: 'Fixar à direita',
100
100
  unpin: 'Desafixar',
101
101
  // Tree Data
102
- // treeDataGroupingHeaderName: 'Group',
103
- // treeDataExpand: 'see children',
104
- // treeDataCollapse: 'hide children',
102
+ treeDataGroupingHeaderName: 'Grupo',
103
+ treeDataExpand: 'mostrar filhos',
104
+ treeDataCollapse: 'esconder filhos',
105
105
  // Grouping columns
106
106
  groupingColumnHeaderName: 'Grupo',
107
107
  groupColumn: name => `Agrupar por ${name}`,
@@ -109,8 +109,8 @@ const ptBRGrid = {
109
109
  // Master/detail
110
110
  detailPanelToggle: 'Painel de detalhes',
111
111
  expandDetailPanel: 'Expandir',
112
- collapseDetailPanel: 'Esconder' // Row reordering text
113
- // rowReorderingHeaderName: 'Row reordering',
114
-
112
+ collapseDetailPanel: 'Esconder',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: 'Reorganizar linhas'
115
115
  };
116
116
  export const ptBR = getGridLocalization(ptBRGrid, ptBRCore);
@@ -0,0 +1,116 @@
1
+ import { roRO as roROCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const roROGrid = {
4
+ // Root
5
+ noRowsLabel: 'Lipsă date',
6
+ noResultsOverlayLabel: 'Nu au fost găsite rezultate.',
7
+ errorOverlayDefaultLabel: 'A apărut o eroare neașteptată.',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: 'Înălțime rând',
10
+ toolbarDensityLabel: 'Înălțime rând',
11
+ toolbarDensityCompact: 'Compact',
12
+ toolbarDensityStandard: 'Standard',
13
+ toolbarDensityComfortable: 'Lat',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: 'Coloane',
16
+ toolbarColumnsLabel: 'Afișează selecție coloane',
17
+ // Filters toolbar button text
18
+ toolbarFilters: 'Filtru',
19
+ toolbarFiltersLabel: 'Afișează filtru',
20
+ toolbarFiltersTooltipHide: 'Ascunde filtru',
21
+ toolbarFiltersTooltipShow: 'Afișează filtru',
22
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
23
+ // Quick filter toolbar field
24
+ toolbarQuickFilterPlaceholder: 'Căutare...',
25
+ toolbarQuickFilterLabel: 'Căutare',
26
+ toolbarQuickFilterDeleteIconLabel: 'Ștergere',
27
+ // Export selector toolbar button text
28
+ toolbarExport: 'Export',
29
+ toolbarExportLabel: 'Export',
30
+ toolbarExportCSV: 'Download în format CSV',
31
+ toolbarExportPrint: 'Printare',
32
+ toolbarExportExcel: 'Download în format Excel',
33
+ // Columns panel text
34
+ columnsPanelTextFieldLabel: 'Găsește coloana',
35
+ columnsPanelTextFieldPlaceholder: 'Titlu coloană',
36
+ columnsPanelDragIconLabel: 'Resortare coloană',
37
+ columnsPanelShowAllButton: 'Afișează tot',
38
+ columnsPanelHideAllButton: 'Ascunde tot',
39
+ // Filter panel text
40
+ filterPanelAddFilter: 'Adăugare filtru',
41
+ filterPanelDeleteIconLabel: 'Ștergere',
42
+ filterPanelLinkOperator: 'Operatori logici',
43
+ filterPanelOperators: 'Operatori',
44
+ // TODO v6: rename to filterPanelOperator
45
+ filterPanelOperatorAnd: 'Și',
46
+ filterPanelOperatorOr: 'Sau',
47
+ filterPanelColumns: 'Coloane',
48
+ filterPanelInputLabel: 'Valoare',
49
+ filterPanelInputPlaceholder: 'Filtrare valoare',
50
+ // Filter operators text
51
+ filterOperatorContains: 'conține',
52
+ filterOperatorEquals: 'este egal cu',
53
+ filterOperatorStartsWith: 'începe cu',
54
+ filterOperatorEndsWith: 'se termină cu',
55
+ filterOperatorIs: 'este',
56
+ filterOperatorNot: 'nu este',
57
+ filterOperatorAfter: 'este după',
58
+ filterOperatorOnOrAfter: 'este la sau după',
59
+ filterOperatorBefore: 'este înainte de',
60
+ filterOperatorOnOrBefore: 'este la sau înainte de',
61
+ filterOperatorIsEmpty: 'este gol',
62
+ filterOperatorIsNotEmpty: 'nu este gol',
63
+ filterOperatorIsAnyOf: 'este una din valori',
64
+ // Filter values text
65
+ filterValueAny: 'Aleatoriu',
66
+ filterValueTrue: 'Da',
67
+ filterValueFalse: 'Nu',
68
+ // Column menu text
69
+ columnMenuLabel: 'Meniu',
70
+ columnMenuShowColumns: 'Afișează toate coloanele',
71
+ columnMenuFilter: 'Filtru',
72
+ columnMenuHideColumn: 'Ascunde',
73
+ columnMenuUnsort: 'Dezactivare sortare',
74
+ columnMenuSortAsc: 'Sortează crescător',
75
+ columnMenuSortDesc: 'Sortează descrescător',
76
+ // Column header text
77
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtru activ` : `${count} filtru activ`,
78
+ columnHeaderFiltersLabel: 'Afișează filtru',
79
+ columnHeaderSortIconLabel: 'Sortare',
80
+ // Rows selected footer text
81
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} Înregistrări selectate` : `${count.toLocaleString()} Înregistrare selectată`,
82
+ // Total row amount footer text
83
+ footerTotalRows: 'Total:',
84
+ // Total visible row amount footer text
85
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} din ${totalCount.toLocaleString()}`,
86
+ // Checkbox selection text
87
+ checkboxSelectionHeaderName: 'Checkbox Selecție',
88
+ checkboxSelectionSelectAllRows: 'Selectare toate rândurile',
89
+ checkboxSelectionUnselectAllRows: 'Deselectare toate rândurile',
90
+ checkboxSelectionSelectRow: 'Selectare rând',
91
+ checkboxSelectionUnselectRow: 'Deselectare rând',
92
+ // Boolean cell text
93
+ booleanCellTrueLabel: 'Da',
94
+ booleanCellFalseLabel: 'Nu',
95
+ // Actions cell more text
96
+ actionsCellMore: 'Mai multe',
97
+ // Column pinning text
98
+ pinToLeft: 'Fixare în stânga',
99
+ pinToRight: 'Fixare în dreapta',
100
+ unpin: 'Anulare fixare',
101
+ // Tree Data
102
+ treeDataGroupingHeaderName: 'Grup',
103
+ treeDataExpand: 'Afișare copii',
104
+ treeDataCollapse: 'Ascundere copii',
105
+ // Grouping columns
106
+ groupingColumnHeaderName: 'Grupare',
107
+ groupColumn: name => `Grupare după ${name}`,
108
+ unGroupColumn: name => `Anulare Grupare după ${name}`,
109
+ // Master/detail
110
+ detailPanelToggle: 'Comutare panou detalii',
111
+ expandDetailPanel: 'Extindere',
112
+ collapseDetailPanel: 'Restrângere',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: 'Reordonare rânduri'
115
+ };
116
+ export const roRO = getGridLocalization(roROGrid, roROCore);
@@ -31,15 +31,15 @@ const skSKGrid = {
31
31
  return `${count} ${pluralForm}`;
32
32
  },
33
33
  // Quick filter toolbar field
34
- // toolbarQuickFilterPlaceholder: 'Search...',
35
- // toolbarQuickFilterLabel: 'Search',
36
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
34
+ toolbarQuickFilterPlaceholder: 'Vyhľadať...',
35
+ toolbarQuickFilterLabel: 'Vyhľadať',
36
+ toolbarQuickFilterDeleteIconLabel: 'Vymazať',
37
37
  // Export selector toolbar button text
38
38
  toolbarExport: 'Export',
39
39
  toolbarExportLabel: 'Export',
40
40
  toolbarExportCSV: 'Stiahnuť ako CSV',
41
41
  toolbarExportPrint: 'Vytlačiť',
42
- // toolbarExportExcel: 'Download as Excel',
42
+ toolbarExportExcel: 'Stiahnuť ako Excel',
43
43
  // Columns panel text
44
44
  columnsPanelTextFieldLabel: 'Nájsť stĺpec',
45
45
  columnsPanelTextFieldPlaceholder: 'Názov stĺpca',
@@ -49,7 +49,7 @@ const skSKGrid = {
49
49
  // Filter panel text
50
50
  filterPanelAddFilter: 'Pridať filter',
51
51
  filterPanelDeleteIconLabel: 'Odstrániť',
52
- // filterPanelLinkOperator: 'Logic operator',
52
+ filterPanelLinkOperator: 'Logický operátor',
53
53
  filterPanelOperators: 'Operátory',
54
54
  // TODO v6: rename to filterPanelOperator
55
55
  filterPanelOperatorAnd: 'A',
@@ -70,7 +70,7 @@ const skSKGrid = {
70
70
  filterOperatorOnOrBefore: 'je na alebo skôr',
71
71
  filterOperatorIsEmpty: 'je prázdny',
72
72
  filterOperatorIsNotEmpty: 'nie je prázdny',
73
- // filterOperatorIsAnyOf: 'is any of',
73
+ filterOperatorIsAnyOf: 'je jeden z',
74
74
  // Filter values text
75
75
  filterValueAny: 'akýkoľvek',
76
76
  filterValueTrue: 'áno',
@@ -120,10 +120,10 @@ const skSKGrid = {
120
120
  },
121
121
  // Checkbox selection text
122
122
  checkboxSelectionHeaderName: 'Výber riadku',
123
- // checkboxSelectionSelectAllRows: 'Select all rows',
124
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
125
- // checkboxSelectionSelectRow: 'Select row',
126
- // checkboxSelectionUnselectRow: 'Unselect row',
123
+ checkboxSelectionSelectAllRows: 'Vybrať všetky riadky',
124
+ checkboxSelectionUnselectAllRows: 'Zrušiť výber všetkých riadkov',
125
+ checkboxSelectionSelectRow: 'Vyber riadok',
126
+ checkboxSelectionUnselectRow: 'Zruš výber riadku',
127
127
  // Boolean cell text
128
128
  booleanCellTrueLabel: 'áno',
129
129
  booleanCellFalseLabel: 'nie',
@@ -140,12 +140,12 @@ const skSKGrid = {
140
140
  // Grouping columns
141
141
  groupingColumnHeaderName: 'Skupina',
142
142
  groupColumn: name => `Zoskupiť podľa ${name}`,
143
- unGroupColumn: name => `Prestať zoskupovať podľa ${name}` // Master/detail
144
- // detailPanelToggle: 'Detail panel toggle',
145
- // expandDetailPanel: 'Expand',
146
- // collapseDetailPanel: 'Collapse',
143
+ unGroupColumn: name => `Prestať zoskupovať podľa ${name}`,
144
+ // Master/detail
145
+ detailPanelToggle: 'Prepnúť detail panelu',
146
+ expandDetailPanel: 'Rozbaliť',
147
+ collapseDetailPanel: 'Zbaliť',
147
148
  // Row reordering text
148
- // rowReorderingHeaderName: 'Row reordering',
149
-
149
+ rowReorderingHeaderName: 'Preusporiadávanie riadkov'
150
150
  };
151
151
  export const skSK = getGridLocalization(skSKGrid, skSKCore);
@@ -0,0 +1,116 @@
1
+ import { svSE as svSECore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const svSEGrid = {
4
+ // Root
5
+ noRowsLabel: 'Inga rader',
6
+ noResultsOverlayLabel: 'Inga resultat funna.',
7
+ errorOverlayDefaultLabel: 'Ett fel uppstod.',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: 'Densitet',
10
+ toolbarDensityLabel: 'Densitet',
11
+ toolbarDensityCompact: 'Kompakt',
12
+ toolbarDensityStandard: 'Standard',
13
+ toolbarDensityComfortable: 'Bekväm',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: 'Kolumner',
16
+ toolbarColumnsLabel: 'Välj kolumner',
17
+ // Filters toolbar button text
18
+ toolbarFilters: 'Filter',
19
+ toolbarFiltersLabel: 'Visa filter',
20
+ toolbarFiltersTooltipHide: 'Dölj filter',
21
+ toolbarFiltersTooltipShow: 'Visa filter',
22
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} aktiva filter` : `${count} aktivt filter`,
23
+ // Quick filter toolbar field
24
+ toolbarQuickFilterPlaceholder: 'Sök...',
25
+ toolbarQuickFilterLabel: 'Sök',
26
+ toolbarQuickFilterDeleteIconLabel: 'Rensa',
27
+ // Export selector toolbar button text
28
+ toolbarExport: 'Exportera',
29
+ toolbarExportLabel: 'Exportera',
30
+ toolbarExportCSV: 'Ladda ner som CSV',
31
+ toolbarExportPrint: 'Skriv ut',
32
+ toolbarExportExcel: 'Ladda ner som Excel',
33
+ // Columns panel text
34
+ columnsPanelTextFieldLabel: 'Hitta kolumn',
35
+ columnsPanelTextFieldPlaceholder: 'Kolumntitel',
36
+ columnsPanelDragIconLabel: 'Ordna om kolumnen',
37
+ columnsPanelShowAllButton: 'Visa alla',
38
+ columnsPanelHideAllButton: 'Dölj alla',
39
+ // Filter panel text
40
+ filterPanelAddFilter: 'Lägg till filter',
41
+ filterPanelDeleteIconLabel: 'Ta bort',
42
+ filterPanelLinkOperator: 'Logisk operatör',
43
+ filterPanelOperators: 'Operatör',
44
+ // TODO v6: rename to filterPanelOperator
45
+ filterPanelOperatorAnd: 'Och',
46
+ filterPanelOperatorOr: 'Eller',
47
+ filterPanelColumns: 'Kolumner',
48
+ filterPanelInputLabel: 'Värde',
49
+ filterPanelInputPlaceholder: 'Filtervärde',
50
+ // Filter operators text
51
+ filterOperatorContains: 'innehåller',
52
+ filterOperatorEquals: 'är lika med',
53
+ filterOperatorStartsWith: 'börjar med',
54
+ filterOperatorEndsWith: 'slutar med',
55
+ filterOperatorIs: 'är',
56
+ filterOperatorNot: 'är inte',
57
+ filterOperatorAfter: 'är efter',
58
+ filterOperatorOnOrAfter: 'är på eller efter',
59
+ filterOperatorBefore: 'är innan',
60
+ filterOperatorOnOrBefore: 'är på eller innan',
61
+ filterOperatorIsEmpty: 'är tom',
62
+ filterOperatorIsNotEmpty: 'är inte tom',
63
+ filterOperatorIsAnyOf: 'är någon av',
64
+ // Filter values text
65
+ filterValueAny: 'något',
66
+ filterValueTrue: 'sant',
67
+ filterValueFalse: 'falskt',
68
+ // Column menu text
69
+ columnMenuLabel: 'Meny',
70
+ columnMenuShowColumns: 'Visa kolumner',
71
+ columnMenuFilter: 'Filtrera',
72
+ columnMenuHideColumn: 'Dölj',
73
+ columnMenuUnsort: 'Osortera',
74
+ columnMenuSortAsc: 'Sortera stigande',
75
+ columnMenuSortDesc: 'Sortera fallande',
76
+ // Column header text
77
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktiva filter` : `${count} aktivt filter`,
78
+ columnHeaderFiltersLabel: 'Visa filter',
79
+ columnHeaderSortIconLabel: 'Sortera',
80
+ // Rows selected footer text
81
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} rader markerade` : `${count.toLocaleString()} rad markerad`,
82
+ // Total row amount footer text
83
+ footerTotalRows: 'Totalt antal rader:',
84
+ // Total visible row amount footer text
85
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} av ${totalCount.toLocaleString()}`,
86
+ // Checkbox selection text
87
+ checkboxSelectionHeaderName: 'Markering med kryssruta',
88
+ checkboxSelectionSelectAllRows: 'Markera alla rader',
89
+ checkboxSelectionUnselectAllRows: 'Avmarkera alla rader',
90
+ checkboxSelectionSelectRow: 'Markera rad',
91
+ checkboxSelectionUnselectRow: 'Avmarkera rad',
92
+ // Boolean cell text
93
+ booleanCellTrueLabel: 'ja',
94
+ booleanCellFalseLabel: 'nej',
95
+ // Actions cell more text
96
+ actionsCellMore: 'mer',
97
+ // Column pinning text
98
+ pinToLeft: 'Fäst till vänster',
99
+ pinToRight: 'Fäst till höger',
100
+ unpin: 'Ta bort fäste',
101
+ // Tree Data
102
+ treeDataGroupingHeaderName: 'Grupp',
103
+ treeDataExpand: 'visa underordnade',
104
+ treeDataCollapse: 'dölj underordnade',
105
+ // Grouping columns
106
+ groupingColumnHeaderName: 'Grupp',
107
+ groupColumn: name => `Gruppera efter ${name}`,
108
+ unGroupColumn: name => `Sluta gruppera efter ${name}`,
109
+ // Master/detail
110
+ // detailPanelToggle: 'Detail panel toggle',
111
+ expandDetailPanel: 'Expandera',
112
+ collapseDetailPanel: 'Kollapsa',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: 'Ordna om rader'
115
+ };
116
+ export const svSE = getGridLocalization(svSEGrid, svSECore);
@@ -8,9 +8,10 @@ export const isSpaceKey = key => key === ' ';
8
8
  export const isArrowKeys = key => key.indexOf('Arrow') === 0;
9
9
  export const isHomeOrEndKeys = key => key === 'Home' || key === 'End';
10
10
  export const isPageKeys = key => key.indexOf('Page') === 0;
11
- export const isDeleteKeys = key => key === 'Delete' || key === 'Backspace';
12
- const printableCharRegex = /^(\p{L}|\p{M}\p{L}|\p{M}|\p{N}|\p{Z}|\p{S}|\p{P})$/iu;
13
- export const isPrintableKey = key => printableCharRegex.test(key);
11
+ export const isDeleteKeys = key => key === 'Delete' || key === 'Backspace'; // Non printable keys have a name, e.g. "ArrowRight", see the whole list:
12
+ // https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
13
+
14
+ export const isPrintableKey = key => key.length === 1;
14
15
  export const GRID_MULTIPLE_SELECTION_KEYS = ['Meta', 'Control', 'Shift'];
15
16
  export const GRID_CELL_EXIT_EDIT_MODE_KEYS = ['Enter', 'Escape', 'Tab'];
16
17
  export const GRID_CELL_EDIT_COMMIT_KEYS = ['Enter', 'Tab'];
@@ -109,7 +109,7 @@ DataGridRaw.propTypes = {
109
109
  columns: (0, _utils.chainPropTypes)(_propTypes.default.array.isRequired, props => {
110
110
  // @ts-ignore because otherwise `build:api` doesn't work
111
111
  if (props.columns && props.columns.some(column => column.resizable)) {
112
- return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
112
+ return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
113
113
  }
114
114
 
115
115
  return null;
@@ -679,14 +679,14 @@ DataGridRaw.propTypes = {
679
679
  */
680
680
  pageSize: (0, _utils.chainPropTypes)(_propTypes.default.number, props => {
681
681
  if (props.pageSize && props.pageSize > _useDataGridProps.MAX_PAGE_SIZE) {
682
- return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${_useDataGridProps.MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
682
+ return new Error([`MUI: \`<DataGrid pageSize={${props.pageSize}} />\` is not a valid prop.`, `Only page size below ${_useDataGridProps.MAX_PAGE_SIZE} is available in the MIT version.`, '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature.'].join('\n'));
683
683
  }
684
684
 
685
685
  return null;
686
686
  }),
687
687
  pagination: props => {
688
688
  if (props.pagination === false) {
689
- return new Error(['MUI: `<DataGrid pagination={false} />` is not a valid prop.', 'Infinite scrolling is not available in the MIT version.', '', 'You need to upgrade to the DataGridPro component to disable the pagination.'].join('\n'));
689
+ return new Error(['MUI: `<DataGrid pagination={false} />` is not a valid prop.', 'Infinite scrolling is not available in the MIT version.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to disable the pagination.'].join('\n'));
690
690
  }
691
691
 
692
692
  return null;
@@ -766,7 +766,7 @@ DataGridRaw.propTypes = {
766
766
  */
767
767
  selectionModel: (0, _utils.chainPropTypes)(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string, _propTypes.default.array]), props => {
768
768
  if (!props.checkboxSelection && Array.isArray(props.selectionModel) && props.selectionModel.length > 1) {
769
- return new Error([`MUI: \`<DataGrid selectionModel={${JSON.stringify(props.selectionModel)}} />\` is not a valid prop.`, 'selectionModel can only be of 1 item in DataGrid.', '', 'You need to upgrade to the DataGridPro component to unlock multiple selection.'].join('\n'));
769
+ return new Error([`MUI: \`<DataGrid selectionModel={${JSON.stringify(props.selectionModel)}} />\` is not a valid prop.`, 'selectionModel can only be of 1 item in DataGrid.', '', 'You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection.'].join('\n'));
770
770
  }
771
771
 
772
772
  return null;
@@ -99,7 +99,8 @@ const getGridDateOperators = showTime => [{
99
99
  }) => {
100
100
  return value == null;
101
101
  };
102
- }
102
+ },
103
+ requiresFilterValue: false
103
104
  }, {
104
105
  value: 'isNotEmpty',
105
106
  getApplyFilterFn: () => {
@@ -108,7 +109,8 @@ const getGridDateOperators = showTime => [{
108
109
  }) => {
109
110
  return value != null;
110
111
  };
111
- }
112
+ },
113
+ requiresFilterValue: false
112
114
  }];
113
115
 
114
116
  exports.getGridDateOperators = getGridDateOperators;
@@ -165,7 +165,8 @@ const getGridNumericOperators = () => [{
165
165
  }) => {
166
166
  return value == null;
167
167
  };
168
- }
168
+ },
169
+ requiresFilterValue: false
169
170
  }, {
170
171
  value: 'isNotEmpty',
171
172
  getApplyFilterFn: () => {
@@ -174,7 +175,8 @@ const getGridNumericOperators = () => [{
174
175
  }) => {
175
176
  return value != null;
176
177
  };
177
- }
178
+ },
179
+ requiresFilterValue: false
178
180
  }, {
179
181
  value: 'isAnyOf',
180
182
  getApplyFilterFn: filterItem => {
@@ -26,14 +26,15 @@ const getGridStringQuickFilterFn = value => {
26
26
 
27
27
  exports.getGridStringQuickFilterFn = getGridStringQuickFilterFn;
28
28
 
29
- const getGridStringOperators = () => [{
29
+ const getGridStringOperators = (disableTrim = false) => [{
30
30
  value: 'contains',
31
31
  getApplyFilterFn: filterItem => {
32
32
  if (!filterItem.value) {
33
33
  return null;
34
34
  }
35
35
 
36
- const filterRegex = new RegExp((0, _utils.escapeRegExp)(filterItem.value), 'i');
36
+ const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim();
37
+ const filterRegex = new RegExp((0, _utils.escapeRegExp)(filterItemValue), 'i');
37
38
  return ({
38
39
  value
39
40
  }) => {
@@ -48,6 +49,7 @@ const getGridStringOperators = () => [{
48
49
  return null;
49
50
  }
50
51
 
52
+ const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim();
51
53
  const collator = new Intl.Collator(undefined, {
52
54
  sensitivity: 'base',
53
55
  usage: 'search'
@@ -55,7 +57,7 @@ const getGridStringOperators = () => [{
55
57
  return ({
56
58
  value
57
59
  }) => {
58
- return value != null ? collator.compare(filterItem.value, value.toString()) === 0 : false;
60
+ return value != null ? collator.compare(filterItemValue, value.toString()) === 0 : false;
59
61
  };
60
62
  },
61
63
  InputComponent: _GridFilterInputValue.GridFilterInputValue
@@ -66,7 +68,8 @@ const getGridStringOperators = () => [{
66
68
  return null;
67
69
  }
68
70
 
69
- const filterRegex = new RegExp(`^${(0, _utils.escapeRegExp)(filterItem.value)}.*$`, 'i');
71
+ const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim();
72
+ const filterRegex = new RegExp(`^${(0, _utils.escapeRegExp)(filterItemValue)}.*$`, 'i');
70
73
  return ({
71
74
  value
72
75
  }) => {
@@ -81,7 +84,8 @@ const getGridStringOperators = () => [{
81
84
  return null;
82
85
  }
83
86
 
84
- const filterRegex = new RegExp(`.*${(0, _utils.escapeRegExp)(filterItem.value)}$`, 'i');
87
+ const filterItemValue = disableTrim ? filterItem.value : filterItem.value.trim();
88
+ const filterRegex = new RegExp(`.*${(0, _utils.escapeRegExp)(filterItemValue)}$`, 'i');
85
89
  return ({
86
90
  value
87
91
  }) => {
@@ -97,7 +101,8 @@ const getGridStringOperators = () => [{
97
101
  }) => {
98
102
  return value === '' || value == null;
99
103
  };
100
- }
104
+ },
105
+ requiresFilterValue: false
101
106
  }, {
102
107
  value: 'isNotEmpty',
103
108
  getApplyFilterFn: () => {
@@ -106,7 +111,8 @@ const getGridStringOperators = () => [{
106
111
  }) => {
107
112
  return value !== '' && value != null;
108
113
  };
109
- }
114
+ },
115
+ requiresFilterValue: false
110
116
  }, {
111
117
  value: 'isAnyOf',
112
118
  getApplyFilterFn: filterItem => {
@@ -114,13 +120,14 @@ const getGridStringOperators = () => [{
114
120
  return null;
115
121
  }
116
122
 
123
+ const filterItemValue = disableTrim ? filterItem.value : filterItem.value.map(val => val.trim());
117
124
  const collator = new Intl.Collator(undefined, {
118
125
  sensitivity: 'base',
119
126
  usage: 'search'
120
127
  });
121
128
  return ({
122
129
  value
123
- }) => value != null ? filterItem.value.some(filterValue => {
130
+ }) => value != null ? filterItemValue.some(filterValue => {
124
131
  return collator.compare(filterValue, value.toString() || '') === 0;
125
132
  }) : false;
126
133
  },
@@ -139,7 +139,7 @@ function GridRow(props) {
139
139
  // Fallback for IE
140
140
  apiRef.current.unstable_storeRowHeightMeasurement(rowId, ref.current.clientHeight);
141
141
  }
142
- });
142
+ }, [apiRef, rowHeight, rowId]);
143
143
  React.useLayoutEffect(() => {
144
144
  if (currentPage.range) {
145
145
  // The index prop is relative to the rows from all pages. As example, the index prop of the
@@ -19,6 +19,8 @@ var _gridClasses = require("../../constants/gridClasses");
19
19
 
20
20
  var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
21
21
 
22
+ var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
23
+
22
24
  var _jsxRuntime = require("react/jsx-runtime");
23
25
 
24
26
  const _excluded = ["id", "value", "formattedValue", "api", "field", "row", "rowNode", "colDef", "cellMode", "isEditable", "hasFocus", "tabIndex", "getValue"];
@@ -39,10 +41,10 @@ const useUtilityClasses = ownerState => {
39
41
 
40
42
  const GridBooleanCell = /*#__PURE__*/React.memo(props => {
41
43
  const {
42
- value,
43
- api
44
+ value
44
45
  } = props,
45
46
  other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
47
+ const apiRef = (0, _useGridApiContext.useGridApiContext)();
46
48
  const rootProps = (0, _useGridRootProps.useGridRootProps)();
47
49
  const ownerState = {
48
50
  classes: rootProps.classes
@@ -52,7 +54,7 @@ const GridBooleanCell = /*#__PURE__*/React.memo(props => {
52
54
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, (0, _extends2.default)({
53
55
  fontSize: "small",
54
56
  className: classes.root,
55
- titleAccess: api.getLocaleText(value ? 'booleanCellTrueLabel' : 'booleanCellFalseLabel'),
57
+ titleAccess: apiRef.current.getLocaleText(value ? 'booleanCellTrueLabel' : 'booleanCellFalseLabel'),
56
58
  "data-value": Boolean(value)
57
59
  }, other));
58
60
  });