@mui/x-data-grid 5.12.0 → 5.12.3

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 (289) hide show
  1. package/CHANGELOG.md +160 -7
  2. package/colDef/gridCheckboxSelectionColDef.d.ts +1 -0
  3. package/colDef/gridCheckboxSelectionColDef.js +2 -1
  4. package/colDef/gridDateOperators.d.ts +1 -1
  5. package/colDef/gridNumericColDef.js +1 -1
  6. package/components/cell/GridBooleanCell.js +4 -3
  7. package/components/cell/GridEditBooleanCell.js +4 -3
  8. package/components/cell/GridEditDateCell.js +4 -3
  9. package/components/cell/GridEditInputCell.js +4 -3
  10. package/components/cell/GridEditSingleSelectCell.js +9 -7
  11. package/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  12. package/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  13. package/components/columnSelection/GridHeaderCheckbox.js +0 -1
  14. package/components/containers/GridRootStyles.js +4 -1
  15. package/components/panel/GridColumnsPanel.js +3 -6
  16. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +3 -2
  17. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +12 -5
  18. package/components/panel/filterPanel/GridFilterPanel.js +2 -5
  19. package/components/toolbar/GridToolbarColumnsButton.js +0 -1
  20. package/components/toolbar/GridToolbarDensitySelector.js +0 -1
  21. package/components/toolbar/GridToolbarExportContainer.js +0 -1
  22. package/components/toolbar/GridToolbarFilterButton.js +0 -1
  23. package/components/toolbar/GridToolbarQuickFilter.d.ts +7 -0
  24. package/components/toolbar/GridToolbarQuickFilter.js +57 -4
  25. package/constants/defaultGridSlotsComponents.js +2 -1
  26. package/constants/localeTextConstants.js +1 -0
  27. package/hooks/core/useGridStateInitialization.js +19 -6
  28. package/hooks/features/columnMenu/useGridColumnMenu.js +22 -0
  29. package/hooks/features/columns/useGridColumnSpanning.d.ts +1 -1
  30. package/hooks/features/columns/useGridColumnSpanning.js +1 -1
  31. package/hooks/features/columns/useGridColumns.d.ts +1 -1
  32. package/hooks/features/columns/useGridColumns.js +1 -1
  33. package/hooks/features/dimensions/gridDimensionsApi.d.ts +5 -0
  34. package/hooks/features/dimensions/useGridDimensions.js +9 -8
  35. package/hooks/features/editRows/useGridEditing.old.js +1 -1
  36. package/hooks/features/filter/gridFilterSelector.d.ts +5 -0
  37. package/hooks/features/filter/gridFilterSelector.js +6 -0
  38. package/hooks/features/filter/gridFilterState.d.ts +1 -1
  39. package/hooks/features/filter/gridFilterUtils.d.ts +1 -1
  40. package/hooks/features/filter/gridFilterUtils.js +10 -9
  41. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  42. package/hooks/features/filter/useGridFilter.js +24 -7
  43. package/hooks/features/pagination/useGridPage.js +1 -1
  44. package/hooks/features/pagination/useGridPageSize.js +1 -1
  45. package/hooks/features/rows/useGridRows.js +15 -2
  46. package/hooks/features/rows/useGridRowsMeta.js +79 -77
  47. package/hooks/features/selection/useGridSelection.js +1 -1
  48. package/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
  49. package/hooks/features/sorting/useGridSorting.d.ts +1 -1
  50. package/hooks/features/sorting/useGridSorting.js +1 -1
  51. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
  52. package/hooks/features/virtualization/useGridVirtualScroller.js +42 -8
  53. package/index.js +1 -1
  54. package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -1
  55. package/legacy/colDef/gridNumericColDef.js +1 -1
  56. package/legacy/components/cell/GridBooleanCell.js +3 -1
  57. package/legacy/components/cell/GridEditBooleanCell.js +4 -2
  58. package/legacy/components/cell/GridEditDateCell.js +4 -2
  59. package/legacy/components/cell/GridEditInputCell.js +4 -2
  60. package/legacy/components/cell/GridEditSingleSelectCell.js +9 -7
  61. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  62. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  63. package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -1
  64. package/legacy/components/containers/GridRootStyles.js +7 -5
  65. package/legacy/components/panel/GridColumnsPanel.js +5 -6
  66. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +12 -5
  67. package/legacy/components/panel/filterPanel/GridFilterPanel.js +3 -6
  68. package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -1
  69. package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -1
  70. package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -1
  71. package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -1
  72. package/legacy/components/toolbar/GridToolbarQuickFilter.js +67 -6
  73. package/legacy/constants/defaultGridSlotsComponents.js +2 -1
  74. package/legacy/constants/localeTextConstants.js +1 -0
  75. package/legacy/hooks/core/useGridStateInitialization.js +18 -6
  76. package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +22 -0
  77. package/legacy/hooks/features/columns/useGridColumnSpanning.js +1 -1
  78. package/legacy/hooks/features/columns/useGridColumns.js +1 -1
  79. package/legacy/hooks/features/dimensions/useGridDimensions.js +9 -8
  80. package/legacy/hooks/features/editRows/useGridEditing.old.js +1 -1
  81. package/legacy/hooks/features/filter/gridFilterSelector.js +8 -0
  82. package/legacy/hooks/features/filter/gridFilterUtils.js +11 -10
  83. package/legacy/hooks/features/filter/useGridFilter.js +28 -7
  84. package/legacy/hooks/features/pagination/useGridPage.js +1 -1
  85. package/legacy/hooks/features/pagination/useGridPageSize.js +1 -1
  86. package/legacy/hooks/features/rows/useGridRows.js +17 -2
  87. package/legacy/hooks/features/rows/useGridRowsMeta.js +81 -77
  88. package/legacy/hooks/features/selection/useGridSelection.js +1 -1
  89. package/legacy/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
  90. package/legacy/hooks/features/sorting/useGridSorting.js +1 -1
  91. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +42 -8
  92. package/legacy/index.js +1 -1
  93. package/legacy/locales/arSD.js +1 -0
  94. package/legacy/locales/bgBG.js +1 -0
  95. package/legacy/locales/csCZ.js +1 -0
  96. package/legacy/locales/daDK.js +1 -0
  97. package/legacy/locales/deDE.js +1 -0
  98. package/legacy/locales/elGR.js +1 -0
  99. package/legacy/locales/esES.js +1 -0
  100. package/legacy/locales/faIR.js +1 -0
  101. package/legacy/locales/fiFI.js +1 -0
  102. package/legacy/locales/frFR.js +1 -0
  103. package/legacy/locales/heIL.js +1 -0
  104. package/legacy/locales/huHU.js +1 -0
  105. package/legacy/locales/index.js +1 -0
  106. package/legacy/locales/itIT.js +1 -0
  107. package/legacy/locales/jaJP.js +29 -24
  108. package/legacy/locales/koKR.js +1 -0
  109. package/legacy/locales/nbNO.js +1 -0
  110. package/legacy/locales/nlNL.js +1 -0
  111. package/legacy/locales/plPL.js +1 -0
  112. package/legacy/locales/ptBR.js +1 -0
  113. package/legacy/locales/ruRU.js +7 -6
  114. package/legacy/locales/skSK.js +1 -0
  115. package/legacy/locales/svSE.js +128 -0
  116. package/legacy/locales/trTR.js +1 -0
  117. package/legacy/locales/ukUA.js +1 -0
  118. package/legacy/locales/viVN.js +1 -0
  119. package/legacy/locales/zhCN.js +1 -0
  120. package/locales/arSD.js +1 -0
  121. package/locales/bgBG.js +1 -0
  122. package/locales/csCZ.js +1 -0
  123. package/locales/daDK.js +1 -0
  124. package/locales/deDE.js +1 -0
  125. package/locales/elGR.js +1 -0
  126. package/locales/esES.js +1 -0
  127. package/locales/faIR.js +1 -0
  128. package/locales/fiFI.js +1 -0
  129. package/locales/frFR.js +1 -0
  130. package/locales/heIL.js +1 -0
  131. package/locales/huHU.js +1 -0
  132. package/locales/index.d.ts +1 -0
  133. package/locales/index.js +1 -0
  134. package/locales/itIT.js +1 -0
  135. package/locales/jaJP.js +25 -24
  136. package/locales/koKR.js +1 -0
  137. package/locales/nbNO.js +1 -0
  138. package/locales/nlNL.js +1 -0
  139. package/locales/plPL.js +1 -0
  140. package/locales/ptBR.js +1 -0
  141. package/locales/ruRU.js +7 -6
  142. package/locales/skSK.js +1 -0
  143. package/locales/svSE.d.ts +2 -0
  144. package/locales/svSE.js +116 -0
  145. package/locales/trTR.js +1 -0
  146. package/locales/ukUA.js +1 -0
  147. package/locales/viVN.js +1 -0
  148. package/locales/zhCN.js +1 -0
  149. package/models/api/gridCallbackDetails.d.ts +6 -1
  150. package/models/api/gridFilterApi.d.ts +8 -1
  151. package/models/api/gridLocaleTextApi.d.ts +1 -0
  152. package/models/api/gridStateApi.d.ts +14 -3
  153. package/models/colDef/gridColDef.d.ts +1 -1
  154. package/models/events/gridEventLookup.d.ts +3 -0
  155. package/models/gridIconSlotsComponent.d.ts +5 -0
  156. package/models/props/DataGridProps.d.ts +1 -1
  157. package/modern/colDef/gridCheckboxSelectionColDef.js +2 -1
  158. package/modern/colDef/gridNumericColDef.js +1 -1
  159. package/modern/components/cell/GridBooleanCell.js +4 -3
  160. package/modern/components/cell/GridEditBooleanCell.js +4 -3
  161. package/modern/components/cell/GridEditDateCell.js +4 -3
  162. package/modern/components/cell/GridEditInputCell.js +4 -3
  163. package/modern/components/cell/GridEditSingleSelectCell.js +9 -7
  164. package/modern/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  165. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  166. package/modern/components/columnSelection/GridHeaderCheckbox.js +0 -1
  167. package/modern/components/containers/GridRootStyles.js +4 -1
  168. package/modern/components/panel/GridColumnsPanel.js +3 -6
  169. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +12 -5
  170. package/modern/components/panel/filterPanel/GridFilterPanel.js +2 -5
  171. package/modern/components/toolbar/GridToolbarColumnsButton.js +0 -1
  172. package/modern/components/toolbar/GridToolbarDensitySelector.js +0 -1
  173. package/modern/components/toolbar/GridToolbarExportContainer.js +0 -1
  174. package/modern/components/toolbar/GridToolbarFilterButton.js +0 -1
  175. package/modern/components/toolbar/GridToolbarQuickFilter.js +57 -4
  176. package/modern/constants/defaultGridSlotsComponents.js +2 -1
  177. package/modern/constants/localeTextConstants.js +1 -0
  178. package/modern/hooks/core/useGridStateInitialization.js +19 -6
  179. package/modern/hooks/features/columnMenu/useGridColumnMenu.js +22 -0
  180. package/modern/hooks/features/columns/useGridColumnSpanning.js +1 -1
  181. package/modern/hooks/features/columns/useGridColumns.js +1 -1
  182. package/modern/hooks/features/dimensions/useGridDimensions.js +9 -8
  183. package/modern/hooks/features/editRows/useGridEditing.old.js +1 -1
  184. package/modern/hooks/features/filter/gridFilterSelector.js +6 -0
  185. package/modern/hooks/features/filter/gridFilterUtils.js +10 -9
  186. package/modern/hooks/features/filter/useGridFilter.js +24 -7
  187. package/modern/hooks/features/pagination/useGridPage.js +1 -1
  188. package/modern/hooks/features/pagination/useGridPageSize.js +1 -1
  189. package/modern/hooks/features/rows/useGridRows.js +15 -2
  190. package/modern/hooks/features/rows/useGridRowsMeta.js +77 -75
  191. package/modern/hooks/features/selection/useGridSelection.js +1 -1
  192. package/modern/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
  193. package/modern/hooks/features/sorting/useGridSorting.js +1 -1
  194. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +42 -8
  195. package/modern/index.js +1 -1
  196. package/modern/locales/arSD.js +1 -0
  197. package/modern/locales/bgBG.js +1 -0
  198. package/modern/locales/csCZ.js +1 -0
  199. package/modern/locales/daDK.js +1 -0
  200. package/modern/locales/deDE.js +1 -0
  201. package/modern/locales/elGR.js +1 -0
  202. package/modern/locales/esES.js +1 -0
  203. package/modern/locales/faIR.js +1 -0
  204. package/modern/locales/fiFI.js +1 -0
  205. package/modern/locales/frFR.js +1 -0
  206. package/modern/locales/heIL.js +1 -0
  207. package/modern/locales/huHU.js +1 -0
  208. package/modern/locales/index.js +1 -0
  209. package/modern/locales/itIT.js +1 -0
  210. package/modern/locales/jaJP.js +25 -24
  211. package/modern/locales/koKR.js +1 -0
  212. package/modern/locales/nbNO.js +1 -0
  213. package/modern/locales/nlNL.js +1 -0
  214. package/modern/locales/plPL.js +1 -0
  215. package/modern/locales/ptBR.js +1 -0
  216. package/modern/locales/ruRU.js +7 -6
  217. package/modern/locales/skSK.js +1 -0
  218. package/modern/locales/svSE.js +116 -0
  219. package/modern/locales/trTR.js +1 -0
  220. package/modern/locales/ukUA.js +1 -0
  221. package/modern/locales/viVN.js +1 -0
  222. package/modern/locales/zhCN.js +1 -0
  223. package/node/colDef/gridCheckboxSelectionColDef.js +4 -2
  224. package/node/colDef/gridNumericColDef.js +1 -1
  225. package/node/components/cell/GridBooleanCell.js +5 -3
  226. package/node/components/cell/GridEditBooleanCell.js +5 -3
  227. package/node/components/cell/GridEditDateCell.js +5 -3
  228. package/node/components/cell/GridEditInputCell.js +5 -3
  229. package/node/components/cell/GridEditSingleSelectCell.js +10 -7
  230. package/node/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  231. package/node/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  232. package/node/components/columnSelection/GridHeaderCheckbox.js +0 -1
  233. package/node/components/containers/GridRootStyles.js +4 -1
  234. package/node/components/panel/GridColumnsPanel.js +3 -6
  235. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +12 -5
  236. package/node/components/panel/filterPanel/GridFilterPanel.js +2 -5
  237. package/node/components/toolbar/GridToolbarColumnsButton.js +0 -1
  238. package/node/components/toolbar/GridToolbarDensitySelector.js +0 -1
  239. package/node/components/toolbar/GridToolbarExportContainer.js +0 -1
  240. package/node/components/toolbar/GridToolbarFilterButton.js +0 -1
  241. package/node/components/toolbar/GridToolbarQuickFilter.js +61 -4
  242. package/node/constants/defaultGridSlotsComponents.js +2 -1
  243. package/node/constants/localeTextConstants.js +1 -0
  244. package/node/hooks/core/useGridStateInitialization.js +19 -6
  245. package/node/hooks/features/columnMenu/useGridColumnMenu.js +23 -0
  246. package/node/hooks/features/columns/useGridColumnSpanning.js +11 -16
  247. package/node/hooks/features/columns/useGridColumns.js +1 -1
  248. package/node/hooks/features/dimensions/useGridDimensions.js +9 -8
  249. package/node/hooks/features/editRows/useGridEditing.old.js +1 -1
  250. package/node/hooks/features/filter/gridFilterSelector.js +9 -2
  251. package/node/hooks/features/filter/gridFilterUtils.js +9 -8
  252. package/node/hooks/features/filter/useGridFilter.js +24 -7
  253. package/node/hooks/features/pagination/useGridPage.js +1 -1
  254. package/node/hooks/features/pagination/useGridPageSize.js +1 -1
  255. package/node/hooks/features/rows/useGridRows.js +15 -2
  256. package/node/hooks/features/rows/useGridRowsMeta.js +80 -77
  257. package/node/hooks/features/selection/useGridSelection.js +1 -1
  258. package/node/hooks/features/selection/useGridSelectionPreProcessors.js +7 -5
  259. package/node/hooks/features/sorting/useGridSorting.js +1 -1
  260. package/node/hooks/features/virtualization/useGridVirtualScroller.js +42 -9
  261. package/node/index.js +1 -1
  262. package/node/locales/arSD.js +1 -0
  263. package/node/locales/bgBG.js +1 -0
  264. package/node/locales/csCZ.js +1 -0
  265. package/node/locales/daDK.js +1 -0
  266. package/node/locales/deDE.js +1 -0
  267. package/node/locales/elGR.js +1 -0
  268. package/node/locales/esES.js +1 -0
  269. package/node/locales/faIR.js +1 -0
  270. package/node/locales/fiFI.js +1 -0
  271. package/node/locales/frFR.js +1 -0
  272. package/node/locales/heIL.js +1 -0
  273. package/node/locales/huHU.js +1 -0
  274. package/node/locales/index.js +13 -0
  275. package/node/locales/itIT.js +1 -0
  276. package/node/locales/jaJP.js +25 -24
  277. package/node/locales/koKR.js +1 -0
  278. package/node/locales/nbNO.js +1 -0
  279. package/node/locales/nlNL.js +1 -0
  280. package/node/locales/plPL.js +1 -0
  281. package/node/locales/ptBR.js +1 -0
  282. package/node/locales/ruRU.js +7 -6
  283. package/node/locales/skSK.js +1 -0
  284. package/node/locales/svSE.js +126 -0
  285. package/node/locales/trTR.js +1 -0
  286. package/node/locales/ukUA.js +1 -0
  287. package/node/locales/viVN.js +1 -0
  288. package/node/locales/zhCN.js +1 -0
  289. package/package.json +4 -3
package/locales/skSK.js CHANGED
@@ -141,6 +141,7 @@ const skSKGrid = {
141
141
  groupingColumnHeaderName: 'Skupina',
142
142
  groupColumn: name => `Zoskupiť podľa ${name}`,
143
143
  unGroupColumn: name => `Prestať zoskupovať podľa ${name}` // Master/detail
144
+ // detailPanelToggle: 'Detail panel toggle',
144
145
  // expandDetailPanel: 'Expand',
145
146
  // collapseDetailPanel: 'Collapse',
146
147
  // Row reordering text
@@ -0,0 +1,2 @@
1
+ import { Localization } from '../utils/getGridLocalization';
2
+ export declare const svSE: Localization;
@@ -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);
package/locales/trTR.js CHANGED
@@ -107,6 +107,7 @@ const trTRGrid = {
107
107
  groupColumn: name => `${name} için grupla`,
108
108
  unGroupColumn: name => `${name} için gruplamayı kaldır`,
109
109
  // Master/detail
110
+ // detailPanelToggle: 'Detail panel toggle',
110
111
  expandDetailPanel: 'Genişlet',
111
112
  collapseDetailPanel: 'Gizle' // Row reordering text
112
113
  // rowReorderingHeaderName: 'Row reordering',
package/locales/ukUA.js CHANGED
@@ -132,6 +132,7 @@ const ukUAGrid = {
132
132
  // groupColumn: name => `Group by ${name}`,
133
133
  // unGroupColumn: name => `Stop grouping by ${name}`,
134
134
  // Master/detail
135
+ // detailPanelToggle: 'Detail panel toggle',
135
136
  // expandDetailPanel: 'Expand',
136
137
  // collapseDetailPanel: 'Collapse',
137
138
  // Row reordering text
package/locales/viVN.js CHANGED
@@ -106,6 +106,7 @@ const viVNGrid = {
106
106
  // groupColumn: name => `Group by ${name}`,
107
107
  // unGroupColumn: name => `Stop grouping by ${name}`,
108
108
  // Master/detail
109
+ // detailPanelToggle: 'Detail panel toggle',
109
110
  // expandDetailPanel: 'Expand',
110
111
  // collapseDetailPanel: 'Collapse',
111
112
  // Row reordering text
package/locales/zhCN.js CHANGED
@@ -106,6 +106,7 @@ const zhCNGrid = {
106
106
  // groupColumn: name => `Group by ${name}`,
107
107
  // unGroupColumn: name => `Stop grouping by ${name}`,
108
108
  // Master/detail
109
+ // detailPanelToggle: 'Detail panel toggle',
109
110
  // expandDetailPanel: 'Expand',
110
111
  // collapseDetailPanel: 'Collapse',
111
112
  // Row reordering text
@@ -1,10 +1,15 @@
1
+ import { GridControlledStateReasonLookup } from '../events/gridEventLookup';
1
2
  /**
2
3
  * Additional details passed to the callbacks
3
4
  */
4
- export interface GridCallbackDetails {
5
+ export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLookup = any> {
5
6
  /**
6
7
  * Provided only if `DataGridPro` is being used.
7
8
  * @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
8
9
  */
9
10
  api?: any;
11
+ /**
12
+ * The reason for this callback to have been called.
13
+ */
14
+ reason?: GridControlledStateReasonLookup[K];
10
15
  }
@@ -1,6 +1,7 @@
1
1
  import { GridRowId, GridRowModel } from '../gridRows';
2
2
  import { GridFilterModel } from '../gridFilterModel';
3
3
  import { GridFilterItem, GridLinkOperator } from '../gridFilterItem';
4
+ import { GridControlledStateReasonLookup } from '../events';
4
5
  /**
5
6
  * The filter API interface that is available in the grid [[apiRef]].
6
7
  */
@@ -19,6 +20,11 @@ export interface GridFilterApi {
19
20
  * @param {GridFilterItem} item The filter to update.
20
21
  */
21
22
  upsertFilterItem: (item: GridFilterItem) => void;
23
+ /**
24
+ * Updates or inserts many [[GridFilterItem]].
25
+ * @param {GridFilterItem[]} items The filters to update.
26
+ */
27
+ upsertFilterItems: (items: GridFilterItem[]) => void;
22
28
  /**
23
29
  * Applies all filters on all rows.
24
30
  * @ignore - do not document.
@@ -37,8 +43,9 @@ export interface GridFilterApi {
37
43
  /**
38
44
  * Sets the filter model to the one given by `model`.
39
45
  * @param {GridFilterModel} model The new filter model.
46
+ * @param {string} reason The reason for the model to have changed.
40
47
  */
41
- setFilterModel: (model: GridFilterModel) => void;
48
+ setFilterModel: (model: GridFilterModel, reason?: GridControlledStateReasonLookup['filter']) => void;
42
49
  /**
43
50
  * Returns a sorted `Map` containing only the visible rows.
44
51
  * @returns {Map<GridRowId, GridRowModel>} The sorted `Map`.
@@ -87,6 +87,7 @@ export interface GridLocaleText {
87
87
  groupingColumnHeaderName: string;
88
88
  groupColumn: (name: string) => string;
89
89
  unGroupColumn: (name: string) => string;
90
+ detailPanelToggle: string;
90
91
  expandDetailPanel: string;
91
92
  collapseDetailPanel: string;
92
93
  MuiTablePagination: Omit<ComponentsPropsList['MuiTablePagination'], 'page' | 'count' | 'onChangePage' | 'rowsPerPage' | 'onPageChange'>;
@@ -1,5 +1,5 @@
1
1
  import { GridStateCommunity } from '../gridStateCommunity';
2
- import { GridControlledStateEventLookup } from '../events';
2
+ import { GridControlledStateEventLookup, GridControlledStateReasonLookup } from '../events';
3
3
  import { GridControlStateItem } from '../controlStateItem';
4
4
  export interface GridStateApi<State extends GridStateCommunity> {
5
5
  /**
@@ -13,14 +13,25 @@ export interface GridStateApi<State extends GridStateCommunity> {
13
13
  /**
14
14
  * Sets the whole state of the grid.
15
15
  * @param {GridState | (oldState: GridState) => GridState} state The new state or the callback creating the new state.
16
+ * @param {string} reason The reason for this change to happen.
16
17
  * @returns {boolean} Has the state been updated.
17
18
  * @ignore - do not document.
18
19
  */
19
- setState: <S extends State>(state: S | ((previousState: S) => S)) => boolean;
20
+ setState: <S extends State, K extends keyof GridControlledStateReasonLookup>(state: S | ((previousState: S) => S), reason?: GridControlledStateReasonLookup[K]) => boolean;
21
+ /**
22
+ * Updates a single sub-state.
23
+ * Publishes the `xxxChange` event and calls the `onXXXChange` prop.
24
+ * @param {K} key Which key of the state to update.
25
+ * @param {(oldState: GridState) => GridState} state The new state of the sub-state to update.
26
+ * @param {GridControlledStateReasonLookup[K]} reason The reason to pass to the callback prop and event.
27
+ * @returns {boolean} `true` if the state has been successfully updated.
28
+ * @ignore - do not document.
29
+ */
30
+ unstable_updateControlState: <K extends keyof GridControlledStateReasonLookup>(key: K, state: (oldState: State[K]) => State[K], reason?: GridControlledStateReasonLookup[K]) => boolean;
20
31
  /**
21
32
  * Updates a control state that binds the model, the onChange prop, and the grid state together.
22
33
  * @param {GridControlStateItem>} controlState The [[GridControlStateItem]] to be registered.
23
34
  * @ignore - do not document.
24
35
  */
25
- unstable_updateControlState: <E extends keyof GridControlledStateEventLookup>(controlState: GridControlStateItem<State, E>) => void;
36
+ unstable_registerControlState: <E extends keyof GridControlledStateEventLookup>(controlState: GridControlStateItem<State, E>) => void;
26
37
  }
@@ -248,7 +248,7 @@ export interface GridActionsColDef<R extends GridValidRowModel = any, V = any, F
248
248
  }
249
249
  export declare type GridEnrichedColDef<R extends GridValidRowModel = any, V = any, F = V> = GridColDef<R, V, F> | GridActionsColDef<R, V, F>;
250
250
  export declare type GridColumns<R extends GridValidRowModel = any> = GridEnrichedColDef<R>[];
251
- export declare type GridColTypeDef<V = any, F = V> = Omit<GridColDef<V, any, F>, 'field'> & {
251
+ export declare type GridColTypeDef<V = any, F = V> = Omit<GridColDef<any, V, F>, 'field'> & {
252
252
  extendType?: GridNativeColTypes;
253
253
  };
254
254
  export declare type GridStateColDef<R extends GridValidRowModel = any, V = any, F = V> = GridEnrichedColDef<R, V, F> & {
@@ -280,6 +280,9 @@ export interface GridControlledStateEventLookup {
280
280
  params: GridColumnVisibilityModel;
281
281
  };
282
282
  }
283
+ export interface GridControlledStateReasonLookup {
284
+ filter: 'upsertFilterItem' | 'upsertFilterItems' | 'deleteFilterItem' | 'changeLogicOperator' | 'restoreState';
285
+ }
283
286
  export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
284
287
  /**
285
288
  * Fired when the grid is unmounted.
@@ -124,4 +124,9 @@ export interface GridIconSlotsComponent {
124
124
  * @default GridSearchIcon
125
125
  */
126
126
  QuickFilterIcon: React.JSXElementConstructor<any>;
127
+ /**
128
+ * Icon displayed on the quick filter reset input.
129
+ * @default GridCloseIcon
130
+ */
131
+ QuickFilterClearIcon: React.JSXElementConstructor<any>;
127
132
  }
@@ -639,7 +639,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
639
639
  * @param {GridFilterModel} model With all properties from [[GridFilterModel]].
640
640
  * @param {GridCallbackDetails} details Additional details for this callback.
641
641
  */
642
- onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails) => void;
642
+ onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
643
643
  /**
644
644
  * Set the selection model of the grid.
645
645
  */
@@ -5,8 +5,9 @@ import { GridHeaderCheckbox } from '../components/columnSelection/GridHeaderChec
5
5
  import { selectedIdsLookupSelector } from '../hooks/features/selection/gridSelectionSelector';
6
6
  import { GRID_BOOLEAN_COL_DEF } from './gridBooleanColDef';
7
7
  import { jsx as _jsx } from "react/jsx-runtime";
8
+ export const GRID_CHECKBOX_SELECTION_FIELD = '__check__';
8
9
  export const GRID_CHECKBOX_SELECTION_COL_DEF = _extends({}, GRID_BOOLEAN_COL_DEF, {
9
- field: '__check__',
10
+ field: GRID_CHECKBOX_SELECTION_FIELD,
10
11
  type: 'checkboxSelection',
11
12
  width: 50,
12
13
  resizable: false,
@@ -11,7 +11,7 @@ export const GRID_NUMERIC_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
11
11
  valueParser: value => value === '' ? null : Number(value),
12
12
  valueFormatter: ({
13
13
  value
14
- }) => value && isNumber(value) && value.toLocaleString() || value,
14
+ }) => isNumber(value) ? value.toLocaleString() : value || '',
15
15
  filterOperators: getGridNumericOperators(),
16
16
  getApplyQuickFilterFn: getGridNumericQuickFilterFn
17
17
  });
@@ -5,6 +5,7 @@ import * as React from 'react';
5
5
  import { unstable_composeClasses as composeClasses } from '@mui/material';
6
6
  import { getDataGridUtilityClass } from '../../constants/gridClasses';
7
7
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
8
+ import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
10
 
10
11
  const useUtilityClasses = ownerState => {
@@ -19,11 +20,11 @@ const useUtilityClasses = ownerState => {
19
20
 
20
21
  export const GridBooleanCell = /*#__PURE__*/React.memo(props => {
21
22
  const {
22
- value,
23
- api
23
+ value
24
24
  } = props,
25
25
  other = _objectWithoutPropertiesLoose(props, _excluded);
26
26
 
27
+ const apiRef = useGridApiContext();
27
28
  const rootProps = useGridRootProps();
28
29
  const ownerState = {
29
30
  classes: rootProps.classes
@@ -33,7 +34,7 @@ export const GridBooleanCell = /*#__PURE__*/React.memo(props => {
33
34
  return /*#__PURE__*/_jsx(Icon, _extends({
34
35
  fontSize: "small",
35
36
  className: classes.root,
36
- titleAccess: api.getLocaleText(value ? 'booleanCellTrueLabel' : 'booleanCellFalseLabel'),
37
+ titleAccess: apiRef.current.getLocaleText(value ? 'booleanCellTrueLabel' : 'booleanCellFalseLabel'),
37
38
  "data-value": Boolean(value)
38
39
  }, other));
39
40
  });
@@ -8,6 +8,7 @@ import { unstable_composeClasses as composeClasses } from '@mui/material';
8
8
  import { unstable_useId as useId, unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/material/utils';
9
9
  import { getDataGridUtilityClass } from '../../constants/gridClasses';
10
10
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
11
+ import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
 
13
14
  const useUtilityClasses = ownerState => {
@@ -24,7 +25,6 @@ function GridEditBooleanCell(props) {
24
25
  const {
25
26
  id: idProp,
26
27
  value,
27
- api,
28
28
  field,
29
29
  className,
30
30
  hasFocus,
@@ -32,6 +32,7 @@ function GridEditBooleanCell(props) {
32
32
  } = props,
33
33
  other = _objectWithoutPropertiesLoose(props, _excluded);
34
34
 
35
+ const apiRef = useGridApiContext();
35
36
  const inputRef = React.useRef(null);
36
37
  const id = useId();
37
38
  const [valueState, setValueState] = React.useState(value);
@@ -48,12 +49,12 @@ function GridEditBooleanCell(props) {
48
49
  }
49
50
 
50
51
  setValueState(newValue);
51
- await api.setEditCellValue({
52
+ await apiRef.current.setEditCellValue({
52
53
  id: idProp,
53
54
  field,
54
55
  value: newValue
55
56
  }, event);
56
- }, [api, field, idProp, onValueChange]);
57
+ }, [apiRef, field, idProp, onValueChange]);
57
58
  React.useEffect(() => {
58
59
  setValueState(value);
59
60
  }, [value]);
@@ -8,6 +8,7 @@ import { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/material/u
8
8
  import InputBase from '@mui/material/InputBase';
9
9
  import { getDataGridUtilityClass } from '../../constants/gridClasses';
10
10
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
11
+ import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
 
13
14
  const useUtilityClasses = ownerState => {
@@ -24,7 +25,6 @@ function GridEditDateCell(props) {
24
25
  const {
25
26
  id,
26
27
  value: valueProp,
27
- api,
28
28
  field,
29
29
  colDef,
30
30
  hasFocus,
@@ -34,6 +34,7 @@ function GridEditDateCell(props) {
34
34
  other = _objectWithoutPropertiesLoose(props, _excluded);
35
35
 
36
36
  const isDateTime = colDef.type === 'dateTime';
37
+ const apiRef = useGridApiContext();
37
38
  const inputRef = React.useRef();
38
39
  const valueTransformed = React.useMemo(() => {
39
40
  let parsedDate;
@@ -93,12 +94,12 @@ function GridEditDateCell(props) {
93
94
  parsed: newParsedDate,
94
95
  formatted: newFormattedDate
95
96
  });
96
- api.setEditCellValue({
97
+ apiRef.current.setEditCellValue({
97
98
  id,
98
99
  field,
99
100
  value: newParsedDate
100
101
  }, event);
101
- }, [api, field, id, onValueChange]);
102
+ }, [apiRef, field, id, onValueChange]);
102
103
  React.useEffect(() => {
103
104
  setValueState(state => {
104
105
  if (valueTransformed.parsed !== state.parsed && valueTransformed.parsed?.getTime() !== state.parsed?.getTime()) {
@@ -11,6 +11,7 @@ import { getDataGridUtilityClass } from '../../constants/gridClasses';
11
11
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
12
12
  import { GridLoadIcon } from '../icons/index';
13
13
  import { SUBMIT_FILTER_STROKE_TIME } from '../panel/filterPanel/GridFilterInputValue';
14
+ import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
14
15
  import { jsx as _jsx } from "react/jsx-runtime";
15
16
 
16
17
  const useUtilityClasses = ownerState => {
@@ -43,7 +44,6 @@ function GridEditInputCell(props) {
43
44
  const {
44
45
  id,
45
46
  value,
46
- api,
47
47
  field,
48
48
  colDef,
49
49
  hasFocus,
@@ -53,6 +53,7 @@ function GridEditInputCell(props) {
53
53
  } = props,
54
54
  other = _objectWithoutPropertiesLoose(props, _excluded);
55
55
 
56
+ const apiRef = useGridApiContext();
56
57
  const inputRef = React.useRef();
57
58
  const [valueState, setValueState] = React.useState(value);
58
59
  const ownerState = {
@@ -67,13 +68,13 @@ function GridEditInputCell(props) {
67
68
  }
68
69
 
69
70
  setValueState(newValue);
70
- api.setEditCellValue({
71
+ apiRef.current.setEditCellValue({
71
72
  id,
72
73
  field,
73
74
  value: newValue,
74
75
  debounceMs
75
76
  }, event);
76
- }, [api, debounceMs, field, id, onValueChange]);
77
+ }, [apiRef, debounceMs, field, id, onValueChange]);
77
78
  React.useEffect(() => {
78
79
  setValueState(value);
79
80
  }, [value]);
@@ -9,6 +9,7 @@ import { isEscapeKey } from '../../utils/keyboardUtils';
9
9
  import { useGridRootProps } from '../../hooks/utils/useGridRootProps';
10
10
  import { GridEditModes } from '../../models/gridEditRowModel';
11
11
  import { getValueFromValueOptions } from '../panel/filterPanel/filterPanelUtils';
12
+ import { useGridApiContext } from '../../hooks/utils/useGridApiContext';
12
13
  import { jsx as _jsx } from "react/jsx-runtime";
13
14
 
14
15
  const renderSingleSelectOptions = (option, OptionComponent) => {
@@ -36,6 +37,7 @@ function GridEditSingleSelectCell(props) {
36
37
  } = props,
37
38
  other = _objectWithoutPropertiesLoose(props, _excluded);
38
39
 
40
+ const apiRef = useGridApiContext();
39
41
  const ref = React.useRef();
40
42
  const inputRef = React.useRef();
41
43
  const rootProps = useGridRootProps();
@@ -82,7 +84,7 @@ function GridEditSingleSelectCell(props) {
82
84
  await onValueChange(event, formattedTargetValue);
83
85
  }
84
86
 
85
- const isValid = await api.setEditCellValue({
87
+ const isValid = await apiRef.current.setEditCellValue({
86
88
  id,
87
89
  field,
88
90
  value: formattedTargetValue
@@ -97,18 +99,18 @@ function GridEditSingleSelectCell(props) {
97
99
  return;
98
100
  }
99
101
 
100
- const canCommit = await Promise.resolve(api.commitCellChange({
102
+ const canCommit = await Promise.resolve(apiRef.current.commitCellChange({
101
103
  id,
102
104
  field
103
105
  }, event));
104
106
 
105
107
  if (canCommit) {
106
- api.setCellMode(id, field, 'view');
108
+ apiRef.current.setCellMode(id, field, 'view');
107
109
 
108
110
  if (event.key) {
109
111
  // TODO v6: remove once we stop ignoring events fired from portals
110
- const params = api.getCellParams(id, field);
111
- api.publishEvent('cellNavigationKeyDown', params, event);
112
+ const params = apiRef.current.getCellParams(id, field);
113
+ apiRef.current.publishEvent('cellNavigationKeyDown', params, event);
112
114
  }
113
115
  }
114
116
  };
@@ -121,13 +123,13 @@ function GridEditSingleSelectCell(props) {
121
123
 
122
124
  if (reason === 'backdropClick' || isEscapeKey(event.key)) {
123
125
  if (rootProps.experimentalFeatures?.newEditingApi) {
124
- api.stopCellEditMode({
126
+ apiRef.current.stopCellEditMode({
125
127
  id,
126
128
  field,
127
129
  ignoreModifications: true
128
130
  });
129
131
  } else {
130
- api.setCellMode(id, field, 'view');
132
+ apiRef.current.setCellMode(id, field, 'view');
131
133
  }
132
134
  }
133
135
  };
@@ -165,6 +165,7 @@ function GridColumnHeaderItem(props) {
165
165
  field: column.field,
166
166
  colDef: column
167
167
  }) : column.headerClassName;
168
+ const label = column.headerName ?? column.field;
168
169
  return /*#__PURE__*/_jsxs("div", _extends({
169
170
  ref: headerCellRef,
170
171
  className: clsx(classes.root, headerClassName),
@@ -177,7 +178,8 @@ function GridColumnHeaderItem(props) {
177
178
  role: "columnheader",
178
179
  tabIndex: tabIndex,
179
180
  "aria-colindex": colIndex + 1,
180
- "aria-sort": ariaSort
181
+ "aria-sort": ariaSort,
182
+ "aria-label": column.renderHeader && headerComponent == null ? label : undefined
181
183
  }, mouseEventsHandlers, {
182
184
  children: [/*#__PURE__*/_jsxs("div", _extends({
183
185
  className: classes.draggableContainer,
@@ -187,8 +189,8 @@ function GridColumnHeaderItem(props) {
187
189
  className: classes.titleContainer,
188
190
  children: [/*#__PURE__*/_jsx("div", {
189
191
  className: classes.titleContainerContent,
190
- children: headerComponent || /*#__PURE__*/_jsx(GridColumnHeaderTitle, {
191
- label: column.headerName ?? column.field,
192
+ children: column.renderHeader ? headerComponent : /*#__PURE__*/_jsx(GridColumnHeaderTitle, {
193
+ label: label,
192
194
  description: column.description,
193
195
  columnWidth: width
194
196
  })
@@ -81,7 +81,6 @@ const GridCellCheckboxForwardRef = /*#__PURE__*/React.forwardRef(function GridCe
81
81
  checked: isChecked,
82
82
  onChange: handleChange,
83
83
  className: classes.root,
84
- color: "primary",
85
84
  inputProps: {
86
85
  'aria-label': label
87
86
  },
@@ -109,7 +109,6 @@ const GridHeaderCheckbox = /*#__PURE__*/React.forwardRef(function GridHeaderChec
109
109
  checked: isChecked,
110
110
  onChange: handleChange,
111
111
  className: classes.root,
112
- color: "primary",
113
112
  inputProps: {
114
113
  'aria-label': label
115
114
  },
@@ -165,7 +165,7 @@ export const GridRootStyles = styled('div', {
165
165
  minWidth: 0,
166
166
  flex: 1,
167
167
  whiteSpace: 'nowrap',
168
- overflow: 'hidden'
168
+ overflowX: 'hidden'
169
169
  },
170
170
  [`& .${gridClasses.columnHeaderTitleContainerContent}`]: {
171
171
  overflow: 'hidden',
@@ -221,6 +221,9 @@ export const GridRootStyles = styled('div', {
221
221
  },
222
222
  [`&.${gridClasses['columnSeparator--resizing']}`]: {
223
223
  color: theme.palette.text.primary
224
+ },
225
+ '& svg': {
226
+ pointerEvents: 'none'
224
227
  }
225
228
  },
226
229
  [`& .${gridClasses.iconSeparator}`]: {
@@ -79,7 +79,7 @@ export function GridColumnsPanel(props) {
79
79
  return apiRef.current.setColumnVisibilityModel({});
80
80
  }
81
81
 
82
- return apiRef.current.setColumnVisibilityModel(Object.fromEntries(columns.map(col => [col.field, false])));
82
+ return apiRef.current.setColumnVisibilityModel(Object.fromEntries(columns.filter(col => col.hideable !== false).map(col => [col.field, false])));
83
83
  } // TODO v6: Remove
84
84
 
85
85
 
@@ -130,7 +130,6 @@ export function GridColumnsPanel(props) {
130
130
  checked: columnVisibilityModel[column.field] !== false,
131
131
  onClick: toggleColumn,
132
132
  name: column.field,
133
- color: "primary",
134
133
  size: "small"
135
134
  }, rootProps.componentsProps?.baseSwitch)),
136
135
  label: column.headerName || column.field
@@ -146,13 +145,11 @@ export function GridColumnsPanel(props) {
146
145
  })
147
146
  }), /*#__PURE__*/_jsxs(GridPanelFooter, {
148
147
  children: [/*#__PURE__*/_jsx(rootProps.components.BaseButton, _extends({
149
- onClick: () => toggleAllColumns(false),
150
- color: "primary"
148
+ onClick: () => toggleAllColumns(false)
151
149
  }, rootProps.componentsProps?.baseButton, {
152
150
  children: apiRef.current.getLocaleText('columnsPanelHideAllButton')
153
151
  })), /*#__PURE__*/_jsx(rootProps.components.BaseButton, _extends({
154
- onClick: () => toggleAllColumns(true),
155
- color: "primary"
152
+ onClick: () => toggleAllColumns(true)
156
153
  }, rootProps.componentsProps?.baseButton, {
157
154
  children: apiRef.current.getLocaleText('columnsPanelShowAllButton')
158
155
  }))]