@mui/x-data-grid 5.8.0 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/CHANGELOG.md +141 -63
  2. package/DataGrid/DataGrid.js +1 -1
  3. package/DataGrid/useDataGridComponent.js +3 -1
  4. package/LICENSE +21 -0
  5. package/README.md +1 -1
  6. package/components/GridRow.d.ts +4 -0
  7. package/components/GridRow.js +49 -23
  8. package/components/base/GridOverlays.js +4 -3
  9. package/components/cell/GridActionsCell.d.ts +5 -1
  10. package/components/cell/GridActionsCell.js +170 -21
  11. package/components/cell/GridActionsCellItem.d.ts +66 -4
  12. package/components/cell/GridActionsCellItem.js +7 -5
  13. package/components/cell/GridCell.d.ts +1 -0
  14. package/components/cell/GridCell.js +28 -7
  15. package/components/cell/GridEditInputCell.js +1 -1
  16. package/components/cell/GridEditSingleSelectCell.js +22 -13
  17. package/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  18. package/components/columnHeaders/GridColumnHeaders.d.ts +0 -1
  19. package/components/columnHeaders/GridColumnHeaders.js +1 -1
  20. package/components/columnSelection/GridCellCheckboxRenderer.d.ts +3 -3
  21. package/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
  22. package/components/panel/GridPanel.js +1 -0
  23. package/components/panel/filterPanel/GridFilterForm.js +14 -10
  24. package/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
  25. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -15
  26. package/components/panel/filterPanel/GridFilterInputValue.js +22 -15
  27. package/components/toolbar/GridToolbarDensitySelector.js +1 -1
  28. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  29. package/components/virtualization/GridVirtualScroller.js +2 -0
  30. package/components/virtualization/GridVirtualScrollerContent.js +1 -3
  31. package/constants/gridDetailPanelToggleField.d.ts +1 -0
  32. package/constants/gridDetailPanelToggleField.js +2 -0
  33. package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +32 -15
  34. package/hooks/core/pipeProcessing/index.d.ts +1 -0
  35. package/hooks/core/pipeProcessing/index.js +2 -1
  36. package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +8 -3
  37. package/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
  38. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -0
  39. package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
  40. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +0 -3
  41. package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
  42. package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -1
  43. package/hooks/features/columnHeaders/useGridColumnHeaders.js +76 -10
  44. package/hooks/features/columns/gridColumnsInterfaces.d.ts +3 -1
  45. package/hooks/features/columns/gridColumnsUtils.d.ts +19 -1
  46. package/hooks/features/columns/gridColumnsUtils.js +61 -8
  47. package/hooks/features/columns/useGridColumnSpanning.d.ts +7 -0
  48. package/hooks/features/columns/useGridColumnSpanning.js +109 -0
  49. package/hooks/features/columns/useGridColumns.js +24 -18
  50. package/hooks/features/dimensions/useGridDimensions.js +3 -3
  51. package/hooks/features/editRows/useGridCellEditing.new.js +18 -10
  52. package/hooks/features/editRows/useGridEditing.new.js +7 -3
  53. package/hooks/features/editRows/useGridRowEditing.new.js +23 -15
  54. package/hooks/features/filter/useGridFilter.js +14 -9
  55. package/hooks/features/focus/useGridFocus.js +19 -9
  56. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -0
  57. package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +39 -7
  58. package/hooks/features/rows/gridRowsSelector.d.ts +1 -0
  59. package/hooks/features/rows/gridRowsSelector.js +1 -0
  60. package/hooks/features/rows/gridRowsState.d.ts +4 -0
  61. package/hooks/features/rows/useGridRows.d.ts +2 -2
  62. package/hooks/features/rows/useGridRows.js +5 -4
  63. package/hooks/features/rows/useGridRowsMeta.js +6 -13
  64. package/hooks/features/scroll/useGridScroll.d.ts +2 -0
  65. package/hooks/features/scroll/useGridScroll.js +25 -3
  66. package/hooks/features/selection/useGridSelection.js +3 -2
  67. package/hooks/features/sorting/useGridSorting.js +10 -10
  68. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +7 -0
  69. package/hooks/features/virtualization/useGridVirtualScroller.js +54 -27
  70. package/index.js +1 -1
  71. package/internals/index.d.ts +1 -0
  72. package/internals/index.js +1 -0
  73. package/legacy/DataGrid/DataGrid.js +1 -1
  74. package/legacy/DataGrid/useDataGridComponent.js +3 -1
  75. package/legacy/components/GridRow.js +47 -23
  76. package/legacy/components/base/GridOverlays.js +4 -3
  77. package/legacy/components/cell/GridActionsCell.js +188 -27
  78. package/legacy/components/cell/GridActionsCellItem.js +7 -5
  79. package/legacy/components/cell/GridCell.js +29 -7
  80. package/legacy/components/cell/GridEditInputCell.js +1 -1
  81. package/legacy/components/cell/GridEditSingleSelectCell.js +33 -24
  82. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  83. package/legacy/components/columnHeaders/GridColumnHeaders.js +2 -3
  84. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +21 -3
  85. package/legacy/components/panel/GridPanel.js +1 -0
  86. package/legacy/components/panel/filterPanel/GridFilterForm.js +14 -10
  87. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
  88. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -17
  89. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +22 -17
  90. package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
  91. package/legacy/components/virtualization/GridVirtualScroller.js +2 -0
  92. package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -3
  93. package/legacy/constants/gridDetailPanelToggleField.js +2 -0
  94. package/legacy/hooks/core/pipeProcessing/index.js +2 -1
  95. package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +60 -24
  96. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
  97. package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
  98. package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +89 -10
  99. package/legacy/hooks/features/columns/gridColumnsUtils.js +79 -22
  100. package/legacy/hooks/features/columns/useGridColumnSpanning.js +107 -0
  101. package/legacy/hooks/features/columns/useGridColumns.js +24 -18
  102. package/legacy/hooks/features/dimensions/useGridDimensions.js +3 -3
  103. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +14 -8
  104. package/legacy/hooks/features/editRows/useGridEditing.new.js +7 -3
  105. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +32 -24
  106. package/legacy/hooks/features/filter/useGridFilter.js +14 -9
  107. package/legacy/hooks/features/focus/useGridFocus.js +19 -9
  108. package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +39 -6
  109. package/legacy/hooks/features/rows/gridRowsSelector.js +3 -0
  110. package/legacy/hooks/features/rows/useGridRows.js +5 -4
  111. package/legacy/hooks/features/rows/useGridRowsMeta.js +6 -13
  112. package/legacy/hooks/features/scroll/useGridScroll.js +25 -3
  113. package/legacy/hooks/features/selection/useGridSelection.js +3 -2
  114. package/legacy/hooks/features/sorting/useGridSorting.js +5 -7
  115. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +65 -37
  116. package/legacy/index.js +1 -1
  117. package/legacy/internals/index.js +1 -0
  118. package/legacy/locales/huHU.js +120 -0
  119. package/legacy/locales/index.js +1 -0
  120. package/legacy/models/api/gridColumnSpanning.js +1 -0
  121. package/legacy/models/events/gridEvents.js +2 -3
  122. package/legacy/models/gridColumnSpanning.js +1 -0
  123. package/locales/huHU.d.ts +2 -0
  124. package/locales/huHU.js +108 -0
  125. package/locales/index.d.ts +1 -0
  126. package/locales/index.js +1 -0
  127. package/models/api/gridApiCommon.d.ts +2 -1
  128. package/models/api/gridColumnSpanning.d.ts +28 -0
  129. package/models/api/gridColumnSpanning.js +1 -0
  130. package/models/api/gridEditingApi.d.ts +49 -3
  131. package/models/colDef/gridColDef.d.ts +5 -0
  132. package/models/events/gridEventLookup.d.ts +3 -8
  133. package/models/events/gridEvents.d.ts +9 -14
  134. package/models/events/gridEvents.js +2 -3
  135. package/models/gridColumnSpanning.d.ts +12 -0
  136. package/models/gridColumnSpanning.js +1 -0
  137. package/models/gridEditRowModel.d.ts +1 -1
  138. package/models/params/gridCellParams.d.ts +12 -2
  139. package/models/params/gridRowParams.d.ts +5 -0
  140. package/models/props/DataGridProps.d.ts +1 -1
  141. package/modern/DataGrid/DataGrid.js +1 -1
  142. package/modern/DataGrid/useDataGridComponent.js +3 -1
  143. package/modern/components/GridRow.js +47 -21
  144. package/modern/components/base/GridOverlays.js +4 -3
  145. package/modern/components/cell/GridActionsCell.js +168 -21
  146. package/modern/components/cell/GridActionsCellItem.js +7 -5
  147. package/modern/components/cell/GridCell.js +28 -7
  148. package/modern/components/cell/GridEditInputCell.js +1 -1
  149. package/modern/components/cell/GridEditSingleSelectCell.js +20 -11
  150. package/modern/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  151. package/modern/components/columnHeaders/GridColumnHeaders.js +1 -1
  152. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
  153. package/modern/components/panel/GridPanel.js +1 -0
  154. package/modern/components/panel/filterPanel/GridFilterForm.js +10 -6
  155. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +11 -6
  156. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +20 -13
  157. package/modern/components/panel/filterPanel/GridFilterInputValue.js +20 -13
  158. package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
  159. package/modern/components/virtualization/GridVirtualScroller.js +2 -0
  160. package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -3
  161. package/modern/constants/gridDetailPanelToggleField.js +2 -0
  162. package/modern/hooks/core/pipeProcessing/index.js +2 -1
  163. package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
  164. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
  165. package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
  166. package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +76 -10
  167. package/modern/hooks/features/columns/gridColumnsUtils.js +61 -8
  168. package/modern/hooks/features/columns/useGridColumnSpanning.js +107 -0
  169. package/modern/hooks/features/columns/useGridColumns.js +24 -18
  170. package/modern/hooks/features/dimensions/useGridDimensions.js +3 -3
  171. package/modern/hooks/features/editRows/useGridCellEditing.new.js +18 -10
  172. package/modern/hooks/features/editRows/useGridEditing.new.js +7 -3
  173. package/modern/hooks/features/editRows/useGridRowEditing.new.js +23 -15
  174. package/modern/hooks/features/filter/useGridFilter.js +14 -9
  175. package/modern/hooks/features/focus/useGridFocus.js +19 -9
  176. package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +37 -7
  177. package/modern/hooks/features/rows/gridRowsSelector.js +1 -0
  178. package/modern/hooks/features/rows/useGridRows.js +5 -4
  179. package/modern/hooks/features/rows/useGridRowsMeta.js +6 -13
  180. package/modern/hooks/features/scroll/useGridScroll.js +23 -3
  181. package/modern/hooks/features/selection/useGridSelection.js +3 -2
  182. package/modern/hooks/features/sorting/useGridSorting.js +10 -10
  183. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +54 -23
  184. package/modern/index.js +1 -1
  185. package/modern/internals/index.js +1 -0
  186. package/modern/locales/huHU.js +108 -0
  187. package/modern/locales/index.js +1 -0
  188. package/modern/models/api/gridColumnSpanning.js +1 -0
  189. package/modern/models/events/gridEvents.js +2 -3
  190. package/modern/models/gridColumnSpanning.js +1 -0
  191. package/node/DataGrid/DataGrid.js +1 -1
  192. package/node/DataGrid/useDataGridComponent.js +4 -1
  193. package/node/components/GridRow.js +50 -23
  194. package/node/components/base/GridOverlays.js +3 -2
  195. package/node/components/cell/GridActionsCell.js +172 -21
  196. package/node/components/cell/GridActionsCellItem.js +7 -4
  197. package/node/components/cell/GridCell.js +28 -7
  198. package/node/components/cell/GridEditInputCell.js +1 -1
  199. package/node/components/cell/GridEditSingleSelectCell.js +23 -13
  200. package/node/components/columnHeaders/GridColumnHeaderItem.js +4 -7
  201. package/node/components/columnHeaders/GridColumnHeaders.js +1 -1
  202. package/node/components/columnSelection/GridCellCheckboxRenderer.js +20 -3
  203. package/node/components/panel/GridPanel.js +1 -0
  204. package/node/components/panel/filterPanel/GridFilterForm.js +15 -10
  205. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +14 -8
  206. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +23 -15
  207. package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -15
  208. package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
  209. package/node/components/virtualization/GridVirtualScroller.js +2 -0
  210. package/node/components/virtualization/GridVirtualScrollerContent.js +1 -3
  211. package/node/constants/gridDetailPanelToggleField.js +9 -0
  212. package/node/hooks/core/pipeProcessing/index.js +13 -0
  213. package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +51 -20
  214. package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +42 -0
  215. package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -3
  216. package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +80 -10
  217. package/node/hooks/features/columns/gridColumnsUtils.js +65 -9
  218. package/node/hooks/features/columns/useGridColumnSpanning.js +130 -0
  219. package/node/hooks/features/columns/useGridColumns.js +23 -17
  220. package/node/hooks/features/dimensions/useGridDimensions.js +3 -3
  221. package/node/hooks/features/editRows/useGridCellEditing.new.js +18 -10
  222. package/node/hooks/features/editRows/useGridEditing.new.js +6 -2
  223. package/node/hooks/features/editRows/useGridRowEditing.new.js +21 -14
  224. package/node/hooks/features/filter/useGridFilter.js +14 -9
  225. package/node/hooks/features/focus/useGridFocus.js +19 -9
  226. package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +40 -7
  227. package/node/hooks/features/rows/gridRowsSelector.js +3 -1
  228. package/node/hooks/features/rows/useGridRows.js +5 -4
  229. package/node/hooks/features/rows/useGridRowsMeta.js +6 -14
  230. package/node/hooks/features/scroll/useGridScroll.js +26 -2
  231. package/node/hooks/features/selection/useGridSelection.js +4 -2
  232. package/node/hooks/features/sorting/useGridSorting.js +10 -10
  233. package/node/hooks/features/virtualization/useGridVirtualScroller.js +59 -27
  234. package/node/index.js +1 -1
  235. package/node/internals/index.js +8 -0
  236. package/node/locales/huHU.js +118 -0
  237. package/node/locales/index.js +13 -0
  238. package/node/models/api/gridColumnSpanning.js +5 -0
  239. package/node/models/events/gridEvents.js +2 -3
  240. package/node/models/gridColumnSpanning.js +5 -0
  241. package/package.json +4 -4
  242. package/utils/domUtils.d.ts +2 -2
@@ -0,0 +1,120 @@
1
+ import { huHU as huHUCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ var huHUGrid = {
4
+ // Root
5
+ noRowsLabel: 'Nincsenek sorok',
6
+ noResultsOverlayLabel: 'Nincs találat.',
7
+ errorOverlayDefaultLabel: 'Váratlan hiba történt.',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: 'Sormagasság',
10
+ toolbarDensityLabel: 'Sormagasság',
11
+ toolbarDensityCompact: 'Kompakt',
12
+ toolbarDensityStandard: 'Normál',
13
+ toolbarDensityComfortable: 'Kényelmes',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: 'Oszlopok',
16
+ toolbarColumnsLabel: 'Oszlopok kiválasztása',
17
+ // Filters toolbar button text
18
+ toolbarFilters: 'Szűrők',
19
+ toolbarFiltersLabel: 'Szűrők megjelenítése',
20
+ toolbarFiltersTooltipHide: 'Szűrők elrejtése',
21
+ toolbarFiltersTooltipShow: 'Szűrők megjelenítése',
22
+ toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
23
+ return "".concat(count, " akt\xEDv sz\u0171r\u0151");
24
+ },
25
+ // Export selector toolbar button text
26
+ toolbarExport: 'Exportálás',
27
+ toolbarExportLabel: 'Exportálás',
28
+ toolbarExportCSV: 'Mentés CSV fájlként',
29
+ toolbarExportPrint: 'Nyomtatás',
30
+ // Columns panel text
31
+ columnsPanelTextFieldLabel: 'Oszlop keresése',
32
+ columnsPanelTextFieldPlaceholder: 'Oszlop neve',
33
+ columnsPanelDragIconLabel: 'Oszlop átrendezése',
34
+ columnsPanelShowAllButton: 'Összes megjelenítése',
35
+ columnsPanelHideAllButton: 'Összes elrejtése',
36
+ // Filter panel text
37
+ filterPanelAddFilter: 'Szűrő hozzáadása',
38
+ filterPanelDeleteIconLabel: 'Törlés',
39
+ filterPanelLinkOperator: 'Logikai operátor',
40
+ filterPanelOperators: 'Operátorok',
41
+ // TODO v6: rename to filterPanelOperator
42
+ filterPanelOperatorAnd: 'És',
43
+ filterPanelOperatorOr: 'Vagy',
44
+ filterPanelColumns: 'Oszlopok',
45
+ filterPanelInputLabel: 'Érték',
46
+ filterPanelInputPlaceholder: 'Érték szűrése',
47
+ // Filter operators text
48
+ filterOperatorContains: 'tartalmazza:',
49
+ filterOperatorEquals: 'egyenlő ezzel:',
50
+ filterOperatorStartsWith: 'ezzel kezdődik:',
51
+ filterOperatorEndsWith: 'ezzel végződik:',
52
+ filterOperatorIs: 'a következő:',
53
+ filterOperatorNot: 'nem a következő:',
54
+ filterOperatorAfter: 'ezutáni:',
55
+ filterOperatorOnOrAfter: 'ekkori vagy ezutáni:',
56
+ filterOperatorBefore: 'ezelőtti:',
57
+ filterOperatorOnOrBefore: 'ekkori vagy ezelőtti:',
58
+ filterOperatorIsEmpty: 'üres',
59
+ filterOperatorIsNotEmpty: 'nem üres',
60
+ filterOperatorIsAnyOf: 'a következők egyike:',
61
+ // Filter values text
62
+ filterValueAny: 'bármilyen',
63
+ filterValueTrue: 'igaz',
64
+ filterValueFalse: 'hamis',
65
+ // Column menu text
66
+ columnMenuLabel: 'Menü',
67
+ columnMenuShowColumns: 'Oszlopok megjelenítése',
68
+ columnMenuFilter: 'Szűrők',
69
+ columnMenuHideColumn: 'Elrejtés',
70
+ columnMenuUnsort: 'Sorrend visszaállítása',
71
+ columnMenuSortAsc: 'Növekvő sorrendbe',
72
+ columnMenuSortDesc: 'Csökkenő sorrendbe',
73
+ // Column header text
74
+ columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
75
+ return "".concat(count, " akt\xEDv sz\u0171r\u0151");
76
+ },
77
+ columnHeaderFiltersLabel: 'Szűrők megjelenítése',
78
+ columnHeaderSortIconLabel: 'Átrendezés',
79
+ // Rows selected footer text
80
+ footerRowSelected: function footerRowSelected(count) {
81
+ return "".concat(count.toLocaleString(), " sor kiv\xE1lasztva");
82
+ },
83
+ // Total row amount footer text
84
+ footerTotalRows: 'Összesen:',
85
+ // Total visible row amount footer text
86
+ footerTotalVisibleRows: function footerTotalVisibleRows(visibleCount, totalCount) {
87
+ return "".concat(visibleCount.toLocaleString(), " (\xF6sszesen: ").concat(totalCount.toLocaleString(), ")");
88
+ },
89
+ // Checkbox selection text
90
+ checkboxSelectionHeaderName: 'Jelölőnégyzetes kijelölés',
91
+ checkboxSelectionSelectAllRows: 'Minden sor kijelölése',
92
+ checkboxSelectionUnselectAllRows: 'Minden sor kijelölésének törlése',
93
+ checkboxSelectionSelectRow: 'Sor kijelölése',
94
+ checkboxSelectionUnselectRow: 'Sor kijelölésének törlése',
95
+ // Boolean cell text
96
+ booleanCellTrueLabel: 'igen',
97
+ booleanCellFalseLabel: 'nem',
98
+ // Actions cell more text
99
+ actionsCellMore: 'további',
100
+ // Column pinning text
101
+ pinToLeft: 'Rögzítés balra',
102
+ pinToRight: 'Rögzítés jobbra',
103
+ unpin: 'Rögzítés törlése',
104
+ // Tree Data
105
+ treeDataGroupingHeaderName: 'Csoport',
106
+ treeDataExpand: 'gyermekek megjelenítése',
107
+ treeDataCollapse: 'gyermekek elrejtése',
108
+ // Grouping columns
109
+ groupingColumnHeaderName: 'Csoportosítás',
110
+ groupColumn: function groupColumn(name) {
111
+ return "Csoportos\xEDt\xE1s ".concat(name, " szerint");
112
+ },
113
+ unGroupColumn: function unGroupColumn(name) {
114
+ return "".concat(name, " szerinti csoportos\xEDt\xE1s t\xF6rl\xE9se");
115
+ },
116
+ // Master/detail
117
+ expandDetailPanel: 'Kibontás',
118
+ collapseDetailPanel: 'Összecsukás'
119
+ };
120
+ export var huHU = getGridLocalization(huHUGrid, huHUCore);
@@ -11,6 +11,7 @@ export * from './faIR';
11
11
  export * from './fiFI';
12
12
  export * from './frFR';
13
13
  export * from './heIL';
14
+ export * from './huHU';
14
15
  export * from './itIT';
15
16
  export * from './jaJP';
16
17
  export * from './koKR';
@@ -0,0 +1 @@
1
+ export {};
@@ -59,12 +59,11 @@ var GridEvents;
59
59
  GridEvents["columnOrderChange"] = "columnOrderChange";
60
60
  GridEvents["rowsSet"] = "rowsSet";
61
61
  GridEvents["rowExpansionChange"] = "rowExpansionChange";
62
- GridEvents["visibleRowsSet"] = "visibleRowsSet";
62
+ GridEvents["sortedRowsSet"] = "sortedRowsSet";
63
+ GridEvents["filteredRowsSet"] = "filteredRowsSet";
63
64
  GridEvents["columnsChange"] = "columnsChange";
64
65
  GridEvents["detailPanelsExpandedRowIdsChange"] = "detailPanelsExpandedRowIdsChange";
65
66
  GridEvents["pinnedColumnsChange"] = "pinnedColumnsChange";
66
- GridEvents["pipeProcessorRegister"] = "pipeProcessorRegister";
67
- GridEvents["pipeProcessorUnregister"] = "pipeProcessorUnregister";
68
67
  GridEvents["activeStrategyProcessorChange"] = "activeStrategyProcessorChange";
69
68
  GridEvents["strategyAvailabilityChange"] = "strategyAvailabilityChange";
70
69
  GridEvents["sortModelChange"] = "sortModelChange";
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Localization } from '../utils/getGridLocalization';
2
+ export declare const huHU: Localization;
@@ -0,0 +1,108 @@
1
+ import { huHU as huHUCore } from '@mui/material/locale';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const huHUGrid = {
4
+ // Root
5
+ noRowsLabel: 'Nincsenek sorok',
6
+ noResultsOverlayLabel: 'Nincs találat.',
7
+ errorOverlayDefaultLabel: 'Váratlan hiba történt.',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: 'Sormagasság',
10
+ toolbarDensityLabel: 'Sormagasság',
11
+ toolbarDensityCompact: 'Kompakt',
12
+ toolbarDensityStandard: 'Normál',
13
+ toolbarDensityComfortable: 'Kényelmes',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: 'Oszlopok',
16
+ toolbarColumnsLabel: 'Oszlopok kiválasztása',
17
+ // Filters toolbar button text
18
+ toolbarFilters: 'Szűrők',
19
+ toolbarFiltersLabel: 'Szűrők megjelenítése',
20
+ toolbarFiltersTooltipHide: 'Szűrők elrejtése',
21
+ toolbarFiltersTooltipShow: 'Szűrők megjelenítése',
22
+ toolbarFiltersTooltipActive: count => `${count} aktív szűrő`,
23
+ // Export selector toolbar button text
24
+ toolbarExport: 'Exportálás',
25
+ toolbarExportLabel: 'Exportálás',
26
+ toolbarExportCSV: 'Mentés CSV fájlként',
27
+ toolbarExportPrint: 'Nyomtatás',
28
+ // Columns panel text
29
+ columnsPanelTextFieldLabel: 'Oszlop keresése',
30
+ columnsPanelTextFieldPlaceholder: 'Oszlop neve',
31
+ columnsPanelDragIconLabel: 'Oszlop átrendezése',
32
+ columnsPanelShowAllButton: 'Összes megjelenítése',
33
+ columnsPanelHideAllButton: 'Összes elrejtése',
34
+ // Filter panel text
35
+ filterPanelAddFilter: 'Szűrő hozzáadása',
36
+ filterPanelDeleteIconLabel: 'Törlés',
37
+ filterPanelLinkOperator: 'Logikai operátor',
38
+ filterPanelOperators: 'Operátorok',
39
+ // TODO v6: rename to filterPanelOperator
40
+ filterPanelOperatorAnd: 'És',
41
+ filterPanelOperatorOr: 'Vagy',
42
+ filterPanelColumns: 'Oszlopok',
43
+ filterPanelInputLabel: 'Érték',
44
+ filterPanelInputPlaceholder: 'Érték szűrése',
45
+ // Filter operators text
46
+ filterOperatorContains: 'tartalmazza:',
47
+ filterOperatorEquals: 'egyenlő ezzel:',
48
+ filterOperatorStartsWith: 'ezzel kezdődik:',
49
+ filterOperatorEndsWith: 'ezzel végződik:',
50
+ filterOperatorIs: 'a következő:',
51
+ filterOperatorNot: 'nem a következő:',
52
+ filterOperatorAfter: 'ezutáni:',
53
+ filterOperatorOnOrAfter: 'ekkori vagy ezutáni:',
54
+ filterOperatorBefore: 'ezelőtti:',
55
+ filterOperatorOnOrBefore: 'ekkori vagy ezelőtti:',
56
+ filterOperatorIsEmpty: 'üres',
57
+ filterOperatorIsNotEmpty: 'nem üres',
58
+ filterOperatorIsAnyOf: 'a következők egyike:',
59
+ // Filter values text
60
+ filterValueAny: 'bármilyen',
61
+ filterValueTrue: 'igaz',
62
+ filterValueFalse: 'hamis',
63
+ // Column menu text
64
+ columnMenuLabel: 'Menü',
65
+ columnMenuShowColumns: 'Oszlopok megjelenítése',
66
+ columnMenuFilter: 'Szűrők',
67
+ columnMenuHideColumn: 'Elrejtés',
68
+ columnMenuUnsort: 'Sorrend visszaállítása',
69
+ columnMenuSortAsc: 'Növekvő sorrendbe',
70
+ columnMenuSortDesc: 'Csökkenő sorrendbe',
71
+ // Column header text
72
+ columnHeaderFiltersTooltipActive: count => `${count} aktív szűrő`,
73
+ columnHeaderFiltersLabel: 'Szűrők megjelenítése',
74
+ columnHeaderSortIconLabel: 'Átrendezés',
75
+ // Rows selected footer text
76
+ footerRowSelected: count => `${count.toLocaleString()} sor kiválasztva`,
77
+ // Total row amount footer text
78
+ footerTotalRows: 'Összesen:',
79
+ // Total visible row amount footer text
80
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} (összesen: ${totalCount.toLocaleString()})`,
81
+ // Checkbox selection text
82
+ checkboxSelectionHeaderName: 'Jelölőnégyzetes kijelölés',
83
+ checkboxSelectionSelectAllRows: 'Minden sor kijelölése',
84
+ checkboxSelectionUnselectAllRows: 'Minden sor kijelölésének törlése',
85
+ checkboxSelectionSelectRow: 'Sor kijelölése',
86
+ checkboxSelectionUnselectRow: 'Sor kijelölésének törlése',
87
+ // Boolean cell text
88
+ booleanCellTrueLabel: 'igen',
89
+ booleanCellFalseLabel: 'nem',
90
+ // Actions cell more text
91
+ actionsCellMore: 'további',
92
+ // Column pinning text
93
+ pinToLeft: 'Rögzítés balra',
94
+ pinToRight: 'Rögzítés jobbra',
95
+ unpin: 'Rögzítés törlése',
96
+ // Tree Data
97
+ treeDataGroupingHeaderName: 'Csoport',
98
+ treeDataExpand: 'gyermekek megjelenítése',
99
+ treeDataCollapse: 'gyermekek elrejtése',
100
+ // Grouping columns
101
+ groupingColumnHeaderName: 'Csoportosítás',
102
+ groupColumn: name => `Csoportosítás ${name} szerint`,
103
+ unGroupColumn: name => `${name} szerinti csoportosítás törlése`,
104
+ // Master/detail
105
+ expandDetailPanel: 'Kibontás',
106
+ collapseDetailPanel: 'Összecsukás'
107
+ };
108
+ export const huHU = getGridLocalization(huHUGrid, huHUCore);
@@ -10,6 +10,7 @@ export * from './faIR';
10
10
  export * from './fiFI';
11
11
  export * from './frFR';
12
12
  export * from './heIL';
13
+ export * from './huHU';
13
14
  export * from './itIT';
14
15
  export * from './jaJP';
15
16
  export * from './koKR';
package/locales/index.js CHANGED
@@ -11,6 +11,7 @@ export * from './faIR';
11
11
  export * from './fiFI';
12
12
  export * from './frFR';
13
13
  export * from './heIL';
14
+ export * from './huHU';
14
15
  export * from './itIT';
15
16
  export * from './jaJP';
16
17
  export * from './koKR';
@@ -21,6 +21,7 @@ import { GridLoggerApi } from './gridLoggerApi';
21
21
  import { GridScrollApi } from './gridScrollApi';
22
22
  import { GridVirtualScrollerApi } from './gridVirtualScrollerApi';
23
23
  import type { GridPipeProcessingApi } from '../../hooks/core/pipeProcessing';
24
+ import { GridColumnSpanningApi } from './gridColumnSpanning';
24
25
  import type { GridStrategyProcessingApi } from '../../hooks/core/strategyProcessing';
25
26
  import type { GridDimensionsApi } from '../../hooks/features/dimensions';
26
27
  import type { GridPaginationApi } from '../../hooks/features/pagination';
@@ -28,6 +29,6 @@ import type { GridStatePersistenceApi } from '../../hooks/features/statePersiste
28
29
  declare type GridStateApiUntyped = {
29
30
  [key in keyof (GridStateApi<any> & GridStatePersistenceApi<any>)]: any;
30
31
  };
31
- export interface GridApiCommon extends GridCoreApi, GridLoggerApi, GridPipeProcessingApi, GridStrategyProcessingApi, GridDensityApi, GridDimensionsApi, GridRowApi, GridRowsMetaApi, GridEditingApi, GridParamsApi, GridColumnApi, GridSelectionApi, GridSortApi, GridPaginationApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridDisableVirtualizationApi, GridVirtualScrollerApi, GridLocaleTextApi, GridClipboardApi, GridScrollApi, GridStateApiUntyped {
32
+ export interface GridApiCommon extends GridCoreApi, GridLoggerApi, GridPipeProcessingApi, GridStrategyProcessingApi, GridDensityApi, GridDimensionsApi, GridRowApi, GridRowsMetaApi, GridEditingApi, GridParamsApi, GridColumnApi, GridSelectionApi, GridSortApi, GridPaginationApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridDisableVirtualizationApi, GridVirtualScrollerApi, GridLocaleTextApi, GridClipboardApi, GridScrollApi, GridColumnSpanningApi, GridStateApiUntyped {
32
33
  }
33
34
  export {};
@@ -0,0 +1,28 @@
1
+ import { GridColumnIndex, GridCellColSpanInfo } from '../gridColumnSpanning';
2
+ import { GridRowId } from '../gridRows';
3
+ /**
4
+ * The Column Spanning API interface that is available in the grid `apiRef`.
5
+ */
6
+ export interface GridColumnSpanningApi {
7
+ /**
8
+ * Returns cell colSpan info.
9
+ * @param {GridRowId} rowId The row id
10
+ * @param {number} columnIndex The column index (0-based)
11
+ * @returns {GridCellColSpanInfo|undefined} Cell colSpan info
12
+ * @ignore - do not document.
13
+ */
14
+ unstable_getCellColSpanInfo: (rowId: GridRowId, columnIndex: GridColumnIndex) => GridCellColSpanInfo | undefined;
15
+ /**
16
+ * Calculate column spanning for each cell in the row
17
+ * @param {Object} options The options to apply on the calculation.
18
+ * @param {GridRowId} options.rowId The row id
19
+ * @param {number} options.minFirstColumn First visible column index
20
+ * @param {number} options.maxLastColumn Last visible column index
21
+ * @ignore - do not document.
22
+ */
23
+ unstable_calculateColSpan: (options: {
24
+ rowId: GridRowId;
25
+ minFirstColumn: number;
26
+ maxLastColumn: number;
27
+ }) => void;
28
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,9 +1,40 @@
1
1
  import { GridCellMode, GridRowMode } from '../gridCell';
2
2
  import { GridEditRowsModel, GridEditCellProps } from '../gridEditRowModel';
3
- import { GridRowId } from '../gridRows';
3
+ import { GridRowId, GridRowModel } from '../gridRows';
4
4
  import { GridCellParams } from '../params/gridCellParams';
5
5
  import { GridCommitCellChangeParams, GridEditCellValueParams, GridEditCellPropsParams } from '../params/gridEditCellParams';
6
6
  import { MuiBaseEvent } from '../muiEvent';
7
+ export interface GridNewEditingSharedApi {
8
+ /**
9
+ * Controls if a cell is editable.
10
+ * @param {GridCellParams} params The cell params.
11
+ * @returns {boolean} A boolean value determining if the cell is editable.
12
+ */
13
+ isCellEditable: (params: GridCellParams) => boolean;
14
+ /**
15
+ * Sets the value of the edit cell.
16
+ * Commonly used inside the edit cell component.
17
+ * @param {GridEditCellValueParams} params Contains the id, field and value to set.
18
+ * @param {React.SyntheticEvent} event The event to pass forward.
19
+ * @returns {Promise<boolean> | void} A promise with the validation status if `preventCommitWhileValidating` is `true`. Otherwise, void.
20
+ */
21
+ setEditCellValue: (params: GridEditCellValueParams, event?: MuiBaseEvent) => Promise<boolean> | void;
22
+ /**
23
+ * Immediatelly updates the value of the cell, without waiting for the debounce.
24
+ * @param {GridRowId} id The row id.
25
+ * @param {string} field The field to update. If not passed, updates all fields in the given row id.
26
+ * @ignore - do not document.
27
+ */
28
+ unstable_runPendingEditCellValueMutation: (id: GridRowId, field?: string) => void;
29
+ /**
30
+ * Returns the row with the values that were set by editing the cells.
31
+ * In row editing, `field` is ignored and all fields are considered.
32
+ * @param {GridRowId} id The row id being edited.
33
+ * @param {string} field The field being edited.
34
+ * @ignore - do not document.
35
+ */
36
+ unstable_getRowWithUpdatedValues: (id: GridRowId, field: string) => GridRowModel;
37
+ }
7
38
  /**
8
39
  * The shared methods used by the cell and row editing API.
9
40
  */
@@ -11,11 +42,13 @@ export interface GridEditingSharedApi {
11
42
  /**
12
43
  * Set the edit rows model of the grid.
13
44
  * @param {GridEditRowsModel} model The new edit rows model.
45
+ * @deprecated Prefer the new editing API.
14
46
  */
15
47
  setEditRowsModel: (model: GridEditRowsModel) => void;
16
48
  /**
17
49
  * Gets the edit rows model of the grid.
18
50
  * @returns {GridEditRowsModel} The edit rows model.
51
+ * @deprecated Prefer the new editing API.
19
52
  */
20
53
  getEditRowsModel: () => GridEditRowsModel;
21
54
  /**
@@ -186,7 +219,7 @@ export interface GridStopRowEditModeParams {
186
219
  */
187
220
  cellToFocusAfter?: 'none' | 'below' | 'right' | 'left';
188
221
  }
189
- export interface GridNewCellEditingApi extends Omit<GridEditingSharedApi, 'getEditRowsModel' | 'setEditRowsModel'>, Pick<GridCellEditingApi, 'getCellMode'> {
222
+ export interface GridNewCellEditingApi extends GridNewEditingSharedApi, Pick<GridCellEditingApi, 'getCellMode'> {
190
223
  /**
191
224
  * Puts the cell corresponding to the given row id and field into edit mode.
192
225
  * @param {GridStartCellEditModeParams} params The row id and field of the cell to edit.
@@ -206,8 +239,15 @@ export interface GridNewCellEditingApi extends Omit<GridEditingSharedApi, 'getEd
206
239
  * @ignore - do not document.
207
240
  */
208
241
  unstable_setCellEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
242
+ /**
243
+ * Returns the row with the new value that was set by editing the cell.
244
+ * @param {GridRowId} id The row id being edited.
245
+ * @param {string} field The field being edited.
246
+ * @ignore - do not document.
247
+ */
248
+ unstable_getRowWithUpdatedValuesFromCellEditing: (id: GridRowId, field: string) => GridRowModel;
209
249
  }
210
- export interface GridNewRowEditingApi extends Omit<GridEditingSharedApi, 'getEditRowsModel' | 'setEditRowsModel'>, Pick<GridRowEditingApi, 'getRowMode'> {
250
+ export interface GridNewRowEditingApi extends GridNewEditingSharedApi, Pick<GridRowEditingApi, 'getRowMode'> {
211
251
  /**
212
252
  * Puts the row corresponding to the given id into edit mode.
213
253
  * @param {GridStartCellEditModeParams} params The row id edit.
@@ -227,6 +267,12 @@ export interface GridNewRowEditingApi extends Omit<GridEditingSharedApi, 'getEdi
227
267
  * @ignore - do not document.
228
268
  */
229
269
  unstable_setRowEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
270
+ /**
271
+ * Returns the row with the values that were set by editing all cells.
272
+ * @param {GridRowId} id The row id being edited.
273
+ * @ignore - do not document.
274
+ */
275
+ unstable_getRowWithUpdatedValuesFromRowEditing: (id: GridRowId) => GridRowModel;
230
276
  }
231
277
  /**
232
278
  * The editing API interface that is available in the grid `apiRef`.
@@ -214,6 +214,11 @@ export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V> {
214
214
  * @default false
215
215
  */
216
216
  disableExport?: boolean;
217
+ /**
218
+ * Number of columns a cell should span.
219
+ * @default 1
220
+ */
221
+ colSpan?: number | ((params: GridCellParams<V, R, F>) => number | undefined);
217
222
  }
218
223
  export interface GridActionsColDef extends GridColDef {
219
224
  /**
@@ -9,7 +9,6 @@ import type { GridSelectionModel } from '../gridSelectionModel';
9
9
  import type { ElementSize } from '../elementSize';
10
10
  import type { MuiBaseEvent } from '../muiEvent';
11
11
  import type { GridRowId, GridRowTreeNodeConfig } from '../gridRows';
12
- import type { GridPipeProcessorGroup } from '../../hooks/core/pipeProcessing';
13
12
  import type { GridColumnVisibilityModel } from '../../hooks/features/columns';
14
13
  import type { GridStrategyProcessorName } from '../../hooks/core/strategyProcessing';
15
14
  import { GridRowEditStartParams, GridRowEditStopParams } from '../params/gridRowParams';
@@ -162,12 +161,6 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
162
161
  debouncedResize: {
163
162
  params: ElementSize;
164
163
  };
165
- pipeProcessorRegister: {
166
- params: GridPipeProcessorGroup;
167
- };
168
- pipeProcessorUnregister: {
169
- params: GridPipeProcessorGroup;
170
- };
171
164
  activeStrategyProcessorChange: {
172
165
  params: GridStrategyProcessorName;
173
166
  };
@@ -200,7 +193,8 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
200
193
  params: GridColumnOrderChangeParams;
201
194
  };
202
195
  rowsSet: {};
203
- visibleRowsSet: {};
196
+ filteredRowsSet: {};
197
+ sortedRowsSet: {};
204
198
  rowExpansionChange: {
205
199
  params: GridRowTreeNodeConfig;
206
200
  };
@@ -252,6 +246,7 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
252
246
  };
253
247
  rowsScroll: {
254
248
  params: GridScrollParams;
249
+ event: React.UIEvent | MuiBaseEvent;
255
250
  };
256
251
  virtualScrollerContentSizeChange: {};
257
252
  headerSelectionCheckboxChange: {
@@ -93,7 +93,7 @@ declare enum GridEvents {
93
93
  */
94
94
  rowEditCommit = "rowEditCommit",
95
95
  /**
96
- * Fired when a [navigation key](/components/data-grid/accessibility#keyboard-navigation) is pressed in a cell.
96
+ * Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a cell.
97
97
  * @ignore - do not document.
98
98
  */
99
99
  cellNavigationKeyDown = "cellNavigationKeyDown",
@@ -129,7 +129,7 @@ declare enum GridEvents {
129
129
  */
130
130
  columnHeaderFocus = "columnHeaderFocus",
131
131
  /**
132
- * Fired when a [navigation key](/components/data-grid/accessibility#keyboard-navigation) is pressed in a column header.
132
+ * Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a column header.
133
133
  * @ignore - do not document.
134
134
  */
135
135
  columnHeaderNavigationKeyDown = "columnHeaderNavigationKeyDown",
@@ -255,10 +255,15 @@ declare enum GridEvents {
255
255
  */
256
256
  rowExpansionChange = "rowExpansionChange",
257
257
  /**
258
- * Fired when the visible rows are updated
258
+ * Fired when the sorted rows are updated
259
+ * @ignore - do not document
260
+ */
261
+ sortedRowsSet = "sortedRowsSet",
262
+ /**
263
+ * Fired when the filtered rows are updated
259
264
  * @ignore - do not document.
260
265
  */
261
- visibleRowsSet = "visibleRowsSet",
266
+ filteredRowsSet = "filteredRowsSet",
262
267
  /**
263
268
  * Fired when the columns state is changed.
264
269
  */
@@ -273,16 +278,6 @@ declare enum GridEvents {
273
278
  * @ignore - do not document.
274
279
  */
275
280
  pinnedColumnsChange = "pinnedColumnsChange",
276
- /**
277
- * Fired when a pre-processor is registered.
278
- * @ignore - do not document.
279
- */
280
- pipeProcessorRegister = "pipeProcessorRegister",
281
- /**
282
- * Fired when a pre-processor is unregistered.
283
- * @ignore - do not document.
284
- */
285
- pipeProcessorUnregister = "pipeProcessorUnregister",
286
281
  /**
287
282
  * Fired when a processor of the active strategy changes.
288
283
  * @ignore - do not document.
@@ -59,12 +59,11 @@ var GridEvents;
59
59
  GridEvents["columnOrderChange"] = "columnOrderChange";
60
60
  GridEvents["rowsSet"] = "rowsSet";
61
61
  GridEvents["rowExpansionChange"] = "rowExpansionChange";
62
- GridEvents["visibleRowsSet"] = "visibleRowsSet";
62
+ GridEvents["sortedRowsSet"] = "sortedRowsSet";
63
+ GridEvents["filteredRowsSet"] = "filteredRowsSet";
63
64
  GridEvents["columnsChange"] = "columnsChange";
64
65
  GridEvents["detailPanelsExpandedRowIdsChange"] = "detailPanelsExpandedRowIdsChange";
65
66
  GridEvents["pinnedColumnsChange"] = "pinnedColumnsChange";
66
- GridEvents["pipeProcessorRegister"] = "pipeProcessorRegister";
67
- GridEvents["pipeProcessorUnregister"] = "pipeProcessorUnregister";
68
67
  GridEvents["activeStrategyProcessorChange"] = "activeStrategyProcessorChange";
69
68
  GridEvents["strategyAvailabilityChange"] = "strategyAvailabilityChange";
70
69
  GridEvents["sortModelChange"] = "sortModelChange";
@@ -0,0 +1,12 @@
1
+ export declare type GridColumnIndex = number;
2
+ export declare type GridCellColSpanInfo = {
3
+ spannedByColSpan: true;
4
+ rightVisibleCellIndex: GridColumnIndex;
5
+ leftVisibleCellIndex: GridColumnIndex;
6
+ } | {
7
+ spannedByColSpan: false;
8
+ cellProps: {
9
+ colSpan: number;
10
+ width: number;
11
+ };
12
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,5 @@
1
1
  export interface GridEditCellProps<V = any> {
2
- value: V | undefined;
2
+ value?: V | undefined;
3
3
  isValidating?: boolean;
4
4
  isProcessingProps?: boolean;
5
5
  [prop: string]: any;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { GridCellMode } from '../gridCell';
2
3
  import { GridRowId, GridRowModel, GridRowTreeNodeConfig, GridValidRowModel } from '../gridRows';
3
4
  import type { GridStateColDef } from '../colDef/gridColDef';
@@ -17,11 +18,11 @@ export interface GridCellParams<V = any, R extends GridValidRowModel = any, F =
17
18
  /**
18
19
  * The cell value, but if the column has valueGetter, use getValue.
19
20
  */
20
- value: V | undefined;
21
+ value?: V | undefined;
21
22
  /**
22
23
  * The cell value formatted with the column valueFormatter.
23
24
  */
24
- formattedValue: F;
25
+ formattedValue?: F | undefined;
25
26
  /**
26
27
  * The row model of the row that the current cell belongs to.
27
28
  */
@@ -59,6 +60,9 @@ export interface GridCellParams<V = any, R extends GridValidRowModel = any, F =
59
60
  */
60
61
  getValue: (id: GridRowId, field: string) => any;
61
62
  }
63
+ export interface FocusElement {
64
+ focus(): void;
65
+ }
62
66
  /**
63
67
  * GridCellParams containing api.
64
68
  */
@@ -68,6 +72,12 @@ export interface GridRenderCellParams<V = any, R extends GridValidRowModel = any
68
72
  * @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
69
73
  */
70
74
  api: any;
75
+ /**
76
+ * A ref allowing to set imperative focus.
77
+ * It can be passed to the element that should receive focus.
78
+ * @ignore - do not document.
79
+ */
80
+ focusElementRef?: React.Ref<FocusElement>;
71
81
  }
72
82
  /**
73
83
  * GridEditCellProps containing api.
@@ -34,6 +34,11 @@ interface GridRowVisibilityParams {
34
34
  * Whether this row is the last visible or not.
35
35
  */
36
36
  isLastVisible: boolean;
37
+ /**
38
+ * Index of the row in the current page.
39
+ * If the pagination is disabled, it will be the index relative to all filtered rows.
40
+ */
41
+ indexRelativeToCurrentPage: number;
37
42
  }
38
43
  /**
39
44
  * Object passed as parameter in the row `getRowClassName` callback prop.
@@ -370,7 +370,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
370
370
  * @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
371
371
  * @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
372
372
  * @param {GridCallbackDetails} details Additional details for this callback.
373
- * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
373
+ * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
374
374
  */
375
375
  onEditCellPropsChange?: GridEventListener<GridEvents.editCellPropsChange>;
376
376
  /**
@@ -458,7 +458,7 @@ DataGridRaw.propTypes = {
458
458
  * @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
459
459
  * @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
460
460
  * @param {GridCallbackDetails} details Additional details for this callback.
461
- * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
461
+ * @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
462
462
  */
463
463
  onEditCellPropsChange: PropTypes.func,
464
464