@mui/x-data-grid 9.10.1 → 9.12.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 (193) hide show
  1. package/CHANGELOG.md +283 -0
  2. package/DataGrid/DataGrid.js +3 -1
  3. package/DataGrid/DataGrid.mjs +3 -1
  4. package/DataGrid/useDataGridProps.d.mts +1 -1
  5. package/DataGrid/useDataGridProps.d.ts +1 -1
  6. package/README.md +1 -11
  7. package/components/cell/GridCell.js +14 -1
  8. package/components/cell/GridCell.mjs +14 -1
  9. package/components/columnHeaders/GridBaseColumnHeaders.js +1 -1
  10. package/components/columnHeaders/GridBaseColumnHeaders.mjs +1 -1
  11. package/components/columnHeaders/GridColumnHeaderItem.js +4 -0
  12. package/components/columnHeaders/GridColumnHeaderItem.mjs +4 -0
  13. package/components/columnHeaders/GridGenericColumnHeaderItem.d.mts +7 -0
  14. package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +7 -0
  15. package/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -4
  16. package/components/columnHeaders/GridGenericColumnHeaderItem.mjs +5 -4
  17. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -6
  18. package/components/panel/filterPanel/GridFilterInputSingleSelect.mjs +18 -6
  19. package/components/toolbarV8/Toolbar.js +2 -125
  20. package/components/toolbarV8/Toolbar.mjs +2 -125
  21. package/components/toolbarV8/ToolbarButton.js +11 -50
  22. package/components/toolbarV8/ToolbarButton.mjs +11 -50
  23. package/constants/gridClasses.d.mts +12 -0
  24. package/constants/gridClasses.d.ts +12 -0
  25. package/constants/gridClasses.js +1 -1
  26. package/constants/gridClasses.mjs +1 -1
  27. package/constants/localeTextConstants.js +4 -0
  28. package/constants/localeTextConstants.mjs +4 -0
  29. package/hooks/core/useGridApiInitialization.js +5 -1
  30. package/hooks/core/useGridApiInitialization.mjs +5 -1
  31. package/hooks/core/useGridStateInitialization.js +3 -1
  32. package/hooks/core/useGridStateInitialization.mjs +3 -1
  33. package/hooks/core/useGridVirtualizer.js +3 -0
  34. package/hooks/core/useGridVirtualizer.mjs +3 -0
  35. package/hooks/features/columnResize/useGridColumnResize.js +5 -0
  36. package/hooks/features/columnResize/useGridColumnResize.mjs +5 -0
  37. package/hooks/features/columns/gridColumnsUtils.d.mts +1 -1
  38. package/hooks/features/columns/gridColumnsUtils.d.ts +1 -1
  39. package/hooks/features/columns/gridColumnsUtils.js +2 -2
  40. package/hooks/features/columns/gridColumnsUtils.mjs +2 -2
  41. package/hooks/features/dataSource/gridDataSourceSelector.js +6 -2
  42. package/hooks/features/dataSource/gridDataSourceSelector.mjs +6 -2
  43. package/hooks/features/dataSource/useGridDataSourceBase.js +47 -5
  44. package/hooks/features/dataSource/useGridDataSourceBase.mjs +47 -5
  45. package/hooks/features/dataSource/useGridDataSourceFilterModelChange.d.mts +9 -0
  46. package/hooks/features/dataSource/useGridDataSourceFilterModelChange.d.ts +9 -0
  47. package/hooks/features/dataSource/useGridDataSourceFilterModelChange.js +57 -0
  48. package/hooks/features/dataSource/useGridDataSourceFilterModelChange.mjs +49 -0
  49. package/hooks/features/editing/useGridCellEditing.js +3 -1
  50. package/hooks/features/editing/useGridCellEditing.mjs +3 -1
  51. package/hooks/features/editing/useGridRowEditing.js +3 -1
  52. package/hooks/features/editing/useGridRowEditing.mjs +3 -1
  53. package/hooks/features/filter/gridFilterUtils.d.mts +13 -0
  54. package/hooks/features/filter/gridFilterUtils.d.ts +13 -0
  55. package/hooks/features/filter/gridFilterUtils.js +32 -1
  56. package/hooks/features/filter/gridFilterUtils.mjs +29 -1
  57. package/hooks/features/filter/useGridFilter.js +1 -21
  58. package/hooks/features/filter/useGridFilter.mjs +2 -22
  59. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.js +1 -1
  60. package/hooks/features/headerFiltering/gridHeaderFilteringSelectors.mjs +1 -1
  61. package/hooks/features/rows/gridRowsUtils.js +17 -1
  62. package/hooks/features/rows/gridRowsUtils.mjs +17 -1
  63. package/hooks/features/rows/useGridRowSpanning.js +5 -0
  64. package/hooks/features/rows/useGridRowSpanning.mjs +5 -0
  65. package/hooks/features/virtualization/gridVirtualizationSelectors.d.mts +1 -1
  66. package/hooks/features/virtualization/gridVirtualizationSelectors.d.ts +1 -1
  67. package/hooks/utils/useGridEvent.d.mts +2 -2
  68. package/hooks/utils/useGridEvent.d.ts +2 -2
  69. package/hooks/utils/useGridEvent.js +2 -0
  70. package/hooks/utils/useGridEvent.mjs +2 -0
  71. package/index.js +1 -1
  72. package/index.mjs +1 -1
  73. package/internals/index.d.mts +2 -0
  74. package/internals/index.d.ts +2 -0
  75. package/internals/index.js +20 -0
  76. package/internals/index.mjs +2 -0
  77. package/locales/arSD.js +5 -0
  78. package/locales/arSD.mjs +5 -0
  79. package/locales/beBY.js +5 -0
  80. package/locales/beBY.mjs +5 -0
  81. package/locales/bgBG.js +5 -0
  82. package/locales/bgBG.mjs +5 -0
  83. package/locales/bnBD.js +5 -0
  84. package/locales/bnBD.mjs +5 -0
  85. package/locales/caES.js +5 -0
  86. package/locales/caES.mjs +5 -0
  87. package/locales/csCZ.js +5 -0
  88. package/locales/csCZ.mjs +5 -0
  89. package/locales/daDK.js +5 -0
  90. package/locales/daDK.mjs +5 -0
  91. package/locales/deDE.js +5 -0
  92. package/locales/deDE.mjs +5 -0
  93. package/locales/elGR.js +5 -0
  94. package/locales/elGR.mjs +5 -0
  95. package/locales/esES.js +5 -0
  96. package/locales/esES.mjs +5 -0
  97. package/locales/faIR.js +5 -0
  98. package/locales/faIR.mjs +5 -0
  99. package/locales/fiFI.js +5 -0
  100. package/locales/fiFI.mjs +5 -0
  101. package/locales/frFR.js +5 -0
  102. package/locales/frFR.mjs +5 -0
  103. package/locales/heIL.js +5 -0
  104. package/locales/heIL.mjs +5 -0
  105. package/locales/hrHR.js +5 -0
  106. package/locales/hrHR.mjs +5 -0
  107. package/locales/huHU.js +5 -0
  108. package/locales/huHU.mjs +5 -0
  109. package/locales/hyAM.js +5 -0
  110. package/locales/hyAM.mjs +5 -0
  111. package/locales/idID.js +5 -0
  112. package/locales/idID.mjs +5 -0
  113. package/locales/isIS.js +5 -0
  114. package/locales/isIS.mjs +5 -0
  115. package/locales/itIT.js +5 -0
  116. package/locales/itIT.mjs +5 -0
  117. package/locales/jaJP.js +5 -0
  118. package/locales/jaJP.mjs +5 -0
  119. package/locales/koKR.js +5 -0
  120. package/locales/koKR.mjs +5 -0
  121. package/locales/nbNO.js +5 -0
  122. package/locales/nbNO.mjs +5 -0
  123. package/locales/nlNL.js +5 -0
  124. package/locales/nlNL.mjs +5 -0
  125. package/locales/nnNO.js +5 -0
  126. package/locales/nnNO.mjs +5 -0
  127. package/locales/plPL.js +5 -0
  128. package/locales/plPL.mjs +5 -0
  129. package/locales/ptBR.js +5 -0
  130. package/locales/ptBR.mjs +5 -0
  131. package/locales/ptPT.js +5 -0
  132. package/locales/ptPT.mjs +5 -0
  133. package/locales/roRO.js +5 -0
  134. package/locales/roRO.mjs +5 -0
  135. package/locales/ruRU.js +5 -0
  136. package/locales/ruRU.mjs +5 -0
  137. package/locales/skSK.js +5 -0
  138. package/locales/skSK.mjs +5 -0
  139. package/locales/svSE.js +5 -0
  140. package/locales/svSE.mjs +5 -0
  141. package/locales/thTH.js +5 -0
  142. package/locales/thTH.mjs +5 -0
  143. package/locales/trTR.js +5 -0
  144. package/locales/trTR.mjs +5 -0
  145. package/locales/ukUA.js +5 -0
  146. package/locales/ukUA.mjs +5 -0
  147. package/locales/urPK.js +5 -0
  148. package/locales/urPK.mjs +5 -0
  149. package/locales/viVN.js +5 -0
  150. package/locales/viVN.mjs +5 -0
  151. package/locales/zhCN.js +5 -0
  152. package/locales/zhCN.mjs +5 -0
  153. package/locales/zhHK.js +5 -0
  154. package/locales/zhHK.mjs +5 -0
  155. package/locales/zhTW.js +5 -0
  156. package/locales/zhTW.mjs +5 -0
  157. package/models/api/gridApiCommon.d.mts +2 -2
  158. package/models/api/gridApiCommon.d.ts +2 -2
  159. package/models/api/gridCallbackDetails.d.mts +11 -1
  160. package/models/api/gridCallbackDetails.d.ts +11 -1
  161. package/models/api/gridLocaleTextApi.d.mts +3 -0
  162. package/models/api/gridLocaleTextApi.d.ts +3 -0
  163. package/models/api/gridRowApi.d.mts +12 -0
  164. package/models/api/gridRowApi.d.ts +12 -0
  165. package/models/api/gridStateApi.d.mts +3 -2
  166. package/models/api/gridStateApi.d.ts +3 -2
  167. package/models/api/index.d.mts +1 -1
  168. package/models/api/index.d.ts +1 -1
  169. package/models/colDef/gridColDef.d.mts +5 -0
  170. package/models/colDef/gridColDef.d.ts +5 -0
  171. package/models/configuration/gridConfiguration.d.mts +13 -1
  172. package/models/configuration/gridConfiguration.d.ts +13 -1
  173. package/models/controlStateItem.d.mts +3 -2
  174. package/models/controlStateItem.d.ts +3 -2
  175. package/models/events/gridEventListener.d.mts +3 -2
  176. package/models/events/gridEventListener.d.ts +3 -2
  177. package/models/props/DataGridProps.d.mts +38 -35
  178. package/models/props/DataGridProps.d.ts +38 -35
  179. package/package.json +4 -4
  180. package/utils/domUtils.js +1 -1
  181. package/utils/domUtils.mjs +1 -1
  182. package/utils/getPublicApiRef.d.mts +2 -2
  183. package/utils/getPublicApiRef.d.ts +2 -2
  184. package/utils/getPublicApiRef.js +15 -3
  185. package/utils/getPublicApiRef.mjs +15 -3
  186. package/components/toolbarV8/ToolbarContext.d.mts +0 -11
  187. package/components/toolbarV8/ToolbarContext.d.ts +0 -11
  188. package/components/toolbarV8/ToolbarContext.js +0 -21
  189. package/components/toolbarV8/ToolbarContext.mjs +0 -13
  190. package/components/toolbarV8/utils.d.mts +0 -5
  191. package/components/toolbarV8/utils.d.ts +0 -5
  192. package/components/toolbarV8/utils.js +0 -23
  193. package/components/toolbarV8/utils.mjs +0 -17
package/locales/ptPT.js CHANGED
@@ -47,6 +47,11 @@ const ptPTGrid = {
47
47
  toolbarCharts: 'Gráficos',
48
48
  // Toolbar AI Assistant button
49
49
  toolbarAssistant: 'Assistente de IA',
50
+ // Formula bar (Premium formulas)
51
+ // formulaBarLabel: 'Formula bar',
52
+ // formulaBarInputLabel: 'Formula',
53
+ // formulaBarAddressLabel: 'Active cell',
54
+
50
55
  // Columns management text
51
56
  columnsManagementSearchTitle: 'Procurar',
52
57
  columnsManagementNoColumns: 'Sem colunas',
package/locales/ptPT.mjs CHANGED
@@ -41,6 +41,11 @@ const ptPTGrid = {
41
41
  toolbarCharts: 'Gráficos',
42
42
  // Toolbar AI Assistant button
43
43
  toolbarAssistant: 'Assistente de IA',
44
+ // Formula bar (Premium formulas)
45
+ // formulaBarLabel: 'Formula bar',
46
+ // formulaBarInputLabel: 'Formula',
47
+ // formulaBarAddressLabel: 'Active cell',
48
+
44
49
  // Columns management text
45
50
  columnsManagementSearchTitle: 'Procurar',
46
51
  columnsManagementNoColumns: 'Sem colunas',
package/locales/roRO.js CHANGED
@@ -50,6 +50,11 @@ const roROGrid = {
50
50
  // Toolbar AI Assistant button
51
51
  // toolbarAssistant: 'AI Assistant',
52
52
 
53
+ // Formula bar (Premium formulas)
54
+ // formulaBarLabel: 'Formula bar',
55
+ // formulaBarInputLabel: 'Formula',
56
+ // formulaBarAddressLabel: 'Active cell',
57
+
53
58
  // Columns management text
54
59
  columnsManagementSearchTitle: 'Caută',
55
60
  columnsManagementNoColumns: 'Nicio coloană',
package/locales/roRO.mjs CHANGED
@@ -44,6 +44,11 @@ const roROGrid = {
44
44
  // Toolbar AI Assistant button
45
45
  // toolbarAssistant: 'AI Assistant',
46
46
 
47
+ // Formula bar (Premium formulas)
48
+ // formulaBarLabel: 'Formula bar',
49
+ // formulaBarInputLabel: 'Formula',
50
+ // formulaBarAddressLabel: 'Active cell',
51
+
47
52
  // Columns management text
48
53
  columnsManagementSearchTitle: 'Caută',
49
54
  columnsManagementNoColumns: 'Nicio coloană',
package/locales/ruRU.js CHANGED
@@ -65,6 +65,11 @@ const ruRUGrid = {
65
65
  // Toolbar AI Assistant button
66
66
  // toolbarAssistant: 'AI Assistant',
67
67
 
68
+ // Formula bar (Premium formulas)
69
+ // formulaBarLabel: 'Formula bar',
70
+ // formulaBarInputLabel: 'Formula',
71
+ // formulaBarAddressLabel: 'Active cell',
72
+
68
73
  // Columns management text
69
74
  columnsManagementSearchTitle: 'Поиск',
70
75
  columnsManagementNoColumns: 'Нет столбцов',
package/locales/ruRU.mjs CHANGED
@@ -59,6 +59,11 @@ const ruRUGrid = {
59
59
  // Toolbar AI Assistant button
60
60
  // toolbarAssistant: 'AI Assistant',
61
61
 
62
+ // Formula bar (Premium formulas)
63
+ // formulaBarLabel: 'Formula bar',
64
+ // formulaBarInputLabel: 'Formula',
65
+ // formulaBarAddressLabel: 'Active cell',
66
+
62
67
  // Columns management text
63
68
  columnsManagementSearchTitle: 'Поиск',
64
69
  columnsManagementNoColumns: 'Нет столбцов',
package/locales/skSK.js CHANGED
@@ -59,6 +59,11 @@ const skSKGrid = {
59
59
  // Toolbar AI Assistant button
60
60
  // toolbarAssistant: 'AI Assistant',
61
61
 
62
+ // Formula bar (Premium formulas)
63
+ // formulaBarLabel: 'Formula bar',
64
+ // formulaBarInputLabel: 'Formula',
65
+ // formulaBarAddressLabel: 'Active cell',
66
+
62
67
  // Columns management text
63
68
  columnsManagementSearchTitle: 'Vyhľadať',
64
69
  columnsManagementNoColumns: 'Žiadne stĺpce',
package/locales/skSK.mjs CHANGED
@@ -53,6 +53,11 @@ const skSKGrid = {
53
53
  // Toolbar AI Assistant button
54
54
  // toolbarAssistant: 'AI Assistant',
55
55
 
56
+ // Formula bar (Premium formulas)
57
+ // formulaBarLabel: 'Formula bar',
58
+ // formulaBarInputLabel: 'Formula',
59
+ // formulaBarAddressLabel: 'Active cell',
60
+
56
61
  // Columns management text
57
62
  columnsManagementSearchTitle: 'Vyhľadať',
58
63
  columnsManagementNoColumns: 'Žiadne stĺpce',
package/locales/svSE.js CHANGED
@@ -46,6 +46,11 @@ const svSEGrid = {
46
46
  toolbarCharts: 'Diagram',
47
47
  // Toolbar AI Assistant button
48
48
  toolbarAssistant: 'AI assistent',
49
+ // Formula bar (Premium formulas)
50
+ // formulaBarLabel: 'Formula bar',
51
+ // formulaBarInputLabel: 'Formula',
52
+ // formulaBarAddressLabel: 'Active cell',
53
+
49
54
  // Columns management text
50
55
  columnsManagementSearchTitle: 'Sök',
51
56
  columnsManagementNoColumns: 'Inga kolumner',
package/locales/svSE.mjs CHANGED
@@ -40,6 +40,11 @@ const svSEGrid = {
40
40
  toolbarCharts: 'Diagram',
41
41
  // Toolbar AI Assistant button
42
42
  toolbarAssistant: 'AI assistent',
43
+ // Formula bar (Premium formulas)
44
+ // formulaBarLabel: 'Formula bar',
45
+ // formulaBarInputLabel: 'Formula',
46
+ // formulaBarAddressLabel: 'Active cell',
47
+
43
48
  // Columns management text
44
49
  columnsManagementSearchTitle: 'Sök',
45
50
  columnsManagementNoColumns: 'Inga kolumner',
package/locales/thTH.js CHANGED
@@ -47,6 +47,11 @@ const thTHGrid = {
47
47
  toolbarCharts: 'แผนภูมิ',
48
48
  // Toolbar AI Assistant button
49
49
  toolbarAssistant: 'ผู้ช่วย AI',
50
+ // Formula bar (Premium formulas)
51
+ // formulaBarLabel: 'Formula bar',
52
+ // formulaBarInputLabel: 'Formula',
53
+ // formulaBarAddressLabel: 'Active cell',
54
+
50
55
  // Columns management text
51
56
  columnsManagementSearchTitle: 'ค้นหา',
52
57
  columnsManagementNoColumns: 'ไม่มีคอลัมน์',
package/locales/thTH.mjs CHANGED
@@ -41,6 +41,11 @@ const thTHGrid = {
41
41
  toolbarCharts: 'แผนภูมิ',
42
42
  // Toolbar AI Assistant button
43
43
  toolbarAssistant: 'ผู้ช่วย AI',
44
+ // Formula bar (Premium formulas)
45
+ // formulaBarLabel: 'Formula bar',
46
+ // formulaBarInputLabel: 'Formula',
47
+ // formulaBarAddressLabel: 'Active cell',
48
+
44
49
  // Columns management text
45
50
  columnsManagementSearchTitle: 'ค้นหา',
46
51
  columnsManagementNoColumns: 'ไม่มีคอลัมน์',
package/locales/trTR.js CHANGED
@@ -50,6 +50,11 @@ const trTRGrid = {
50
50
  // Toolbar AI Assistant button
51
51
  // toolbarAssistant: 'AI Assistant',
52
52
 
53
+ // Formula bar (Premium formulas)
54
+ // formulaBarLabel: 'Formula bar',
55
+ // formulaBarInputLabel: 'Formula',
56
+ // formulaBarAddressLabel: 'Active cell',
57
+
53
58
  // Columns management text
54
59
  columnsManagementSearchTitle: 'Arama',
55
60
  columnsManagementNoColumns: 'Kolon yok',
package/locales/trTR.mjs CHANGED
@@ -44,6 +44,11 @@ const trTRGrid = {
44
44
  // Toolbar AI Assistant button
45
45
  // toolbarAssistant: 'AI Assistant',
46
46
 
47
+ // Formula bar (Premium formulas)
48
+ // formulaBarLabel: 'Formula bar',
49
+ // formulaBarInputLabel: 'Formula',
50
+ // formulaBarAddressLabel: 'Active cell',
51
+
47
52
  // Columns management text
48
53
  columnsManagementSearchTitle: 'Arama',
49
54
  columnsManagementNoColumns: 'Kolon yok',
package/locales/ukUA.js CHANGED
@@ -65,6 +65,11 @@ const ukUAGrid = {
65
65
  // Toolbar AI Assistant button
66
66
  // toolbarAssistant: 'AI Assistant',
67
67
 
68
+ // Formula bar (Premium formulas)
69
+ // formulaBarLabel: 'Formula bar',
70
+ // formulaBarInputLabel: 'Formula',
71
+ // formulaBarAddressLabel: 'Active cell',
72
+
68
73
  // Columns management text
69
74
  columnsManagementSearchTitle: 'Пошук',
70
75
  columnsManagementNoColumns: 'Немає стовпців',
package/locales/ukUA.mjs CHANGED
@@ -59,6 +59,11 @@ const ukUAGrid = {
59
59
  // Toolbar AI Assistant button
60
60
  // toolbarAssistant: 'AI Assistant',
61
61
 
62
+ // Formula bar (Premium formulas)
63
+ // formulaBarLabel: 'Formula bar',
64
+ // formulaBarInputLabel: 'Formula',
65
+ // formulaBarAddressLabel: 'Active cell',
66
+
62
67
  // Columns management text
63
68
  columnsManagementSearchTitle: 'Пошук',
64
69
  columnsManagementNoColumns: 'Немає стовпців',
package/locales/urPK.js CHANGED
@@ -50,6 +50,11 @@ const urPKGrid = {
50
50
  // Toolbar AI Assistant button
51
51
  // toolbarAssistant: 'AI Assistant',
52
52
 
53
+ // Formula bar (Premium formulas)
54
+ // formulaBarLabel: 'Formula bar',
55
+ // formulaBarInputLabel: 'Formula',
56
+ // formulaBarAddressLabel: 'Active cell',
57
+
53
58
  // Columns management text
54
59
  columnsManagementSearchTitle: 'تلاش',
55
60
  columnsManagementNoColumns: 'کوئی کالم نہیں',
package/locales/urPK.mjs CHANGED
@@ -44,6 +44,11 @@ const urPKGrid = {
44
44
  // Toolbar AI Assistant button
45
45
  // toolbarAssistant: 'AI Assistant',
46
46
 
47
+ // Formula bar (Premium formulas)
48
+ // formulaBarLabel: 'Formula bar',
49
+ // formulaBarInputLabel: 'Formula',
50
+ // formulaBarAddressLabel: 'Active cell',
51
+
47
52
  // Columns management text
48
53
  columnsManagementSearchTitle: 'تلاش',
49
54
  columnsManagementNoColumns: 'کوئی کالم نہیں',
package/locales/viVN.js CHANGED
@@ -50,6 +50,11 @@ const viVNGrid = {
50
50
  // Toolbar AI Assistant button
51
51
  // toolbarAssistant: 'AI Assistant',
52
52
 
53
+ // Formula bar (Premium formulas)
54
+ // formulaBarLabel: 'Formula bar',
55
+ // formulaBarInputLabel: 'Formula',
56
+ // formulaBarAddressLabel: 'Active cell',
57
+
53
58
  // Columns management text
54
59
  columnsManagementSearchTitle: 'Tìm kiếm',
55
60
  columnsManagementNoColumns: 'Không có cột',
package/locales/viVN.mjs CHANGED
@@ -44,6 +44,11 @@ const viVNGrid = {
44
44
  // Toolbar AI Assistant button
45
45
  // toolbarAssistant: 'AI Assistant',
46
46
 
47
+ // Formula bar (Premium formulas)
48
+ // formulaBarLabel: 'Formula bar',
49
+ // formulaBarInputLabel: 'Formula',
50
+ // formulaBarAddressLabel: 'Active cell',
51
+
47
52
  // Columns management text
48
53
  columnsManagementSearchTitle: 'Tìm kiếm',
49
54
  columnsManagementNoColumns: 'Không có cột',
package/locales/zhCN.js CHANGED
@@ -51,6 +51,11 @@ const zhCNGrid = {
51
51
  // Toolbar AI Assistant button
52
52
  // toolbarAssistant: 'AI Assistant',
53
53
 
54
+ // Formula bar (Premium formulas)
55
+ // formulaBarLabel: 'Formula bar',
56
+ // formulaBarInputLabel: 'Formula',
57
+ // formulaBarAddressLabel: 'Active cell',
58
+
54
59
  // Columns management text
55
60
  columnsManagementSearchTitle: '搜索',
56
61
  columnsManagementNoColumns: '没有列',
package/locales/zhCN.mjs CHANGED
@@ -45,6 +45,11 @@ const zhCNGrid = {
45
45
  // Toolbar AI Assistant button
46
46
  // toolbarAssistant: 'AI Assistant',
47
47
 
48
+ // Formula bar (Premium formulas)
49
+ // formulaBarLabel: 'Formula bar',
50
+ // formulaBarInputLabel: 'Formula',
51
+ // formulaBarAddressLabel: 'Active cell',
52
+
48
53
  // Columns management text
49
54
  columnsManagementSearchTitle: '搜索',
50
55
  columnsManagementNoColumns: '没有列',
package/locales/zhHK.js CHANGED
@@ -51,6 +51,11 @@ const zhHKGrid = {
51
51
  // Toolbar AI Assistant button
52
52
  // toolbarAssistant: 'AI Assistant',
53
53
 
54
+ // Formula bar (Premium formulas)
55
+ // formulaBarLabel: 'Formula bar',
56
+ // formulaBarInputLabel: 'Formula',
57
+ // formulaBarAddressLabel: 'Active cell',
58
+
54
59
  // Columns management text
55
60
  columnsManagementSearchTitle: '搜尋',
56
61
  columnsManagementNoColumns: '沒有列',
package/locales/zhHK.mjs CHANGED
@@ -45,6 +45,11 @@ const zhHKGrid = {
45
45
  // Toolbar AI Assistant button
46
46
  // toolbarAssistant: 'AI Assistant',
47
47
 
48
+ // Formula bar (Premium formulas)
49
+ // formulaBarLabel: 'Formula bar',
50
+ // formulaBarInputLabel: 'Formula',
51
+ // formulaBarAddressLabel: 'Active cell',
52
+
48
53
  // Columns management text
49
54
  columnsManagementSearchTitle: '搜尋',
50
55
  columnsManagementNoColumns: '沒有列',
package/locales/zhTW.js CHANGED
@@ -51,6 +51,11 @@ const zhTWGrid = {
51
51
  // Toolbar AI Assistant button
52
52
  // toolbarAssistant: 'AI Assistant',
53
53
 
54
+ // Formula bar (Premium formulas)
55
+ // formulaBarLabel: 'Formula bar',
56
+ // formulaBarInputLabel: 'Formula',
57
+ // formulaBarAddressLabel: 'Active cell',
58
+
54
59
  // Columns management text
55
60
  columnsManagementSearchTitle: '搜尋',
56
61
  columnsManagementNoColumns: '沒有欄位',
package/locales/zhTW.mjs CHANGED
@@ -45,6 +45,11 @@ const zhTWGrid = {
45
45
  // Toolbar AI Assistant button
46
46
  // toolbarAssistant: 'AI Assistant',
47
47
 
48
+ // Formula bar (Premium formulas)
49
+ // formulaBarLabel: 'Formula bar',
50
+ // formulaBarInputLabel: 'Formula',
51
+ // formulaBarAddressLabel: 'Active cell',
52
+
48
53
  // Columns management text
49
54
  columnsManagementSearchTitle: '搜尋',
50
55
  columnsManagementNoColumns: '沒有欄位',
@@ -11,7 +11,7 @@ import type { GridLocaleTextApi } from "./gridLocaleTextApi.mjs";
11
11
  import type { GridParamsApi, GridParamsPrivateApi } from "./gridParamsApi.mjs";
12
12
  import type { GridPreferencesPanelApi } from "./gridPreferencesPanelApi.mjs";
13
13
  import type { GridPrintExportApi } from "./gridPrintExportApi.mjs";
14
- import type { GridRowApi, GridRowProPrivateApi } from "./gridRowApi.mjs";
14
+ import type { GridRowApi, GridRowProPrivateApi, GridRowSpanningPrivateApi } from "./gridRowApi.mjs";
15
15
  import type { GridRowsMetaApi, GridRowsMetaPrivateApi } from "./gridRowsMetaApi.mjs";
16
16
  import type { GridRowSelectionApi } from "./gridRowSelectionApi.mjs";
17
17
  import type { GridSortApi } from "./gridSortApi.mjs";
@@ -32,7 +32,7 @@ import type { DataGridProcessedProps } from "../props/DataGridProps.mjs";
32
32
  import type { GridColumnResizeApi } from "../../hooks/features/columnResize/index.mjs";
33
33
  import type { GridPivotingPrivateApiCommunity } from "../../hooks/features/pivoting/gridPivotingInterfaces.mjs";
34
34
  export interface GridApiCommon<GridState extends GridStateCommunity = GridStateCommunity, GridInitialState extends GridInitialStateCommunity = GridInitialStateCommunity> extends GridCoreApi, GridPipeProcessingApi, GridDensityApi, GridDimensionsApi, GridRowApi, GridRowsMetaApi, GridEditingApi, GridParamsApi, GridColumnApi, GridRowSelectionApi, GridSortApi, GridPaginationApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridVirtualizationApi, GridLocaleTextApi, GridScrollApi, GridColumnSpanningApi, GridStateApi<GridState>, GridStatePersistenceApi<GridInitialState>, GridColumnGroupingApi, GridHeaderFilteringApi, GridColumnResizeApi {}
35
- export interface GridPrivateOnlyApiCommon<Api extends GridApiCommon, PrivateApi extends GridPrivateApiCommon, Props extends DataGridProcessedProps> extends GridCorePrivateApi<Api, PrivateApi, Props>, GridStatePrivateApi<Api['state']>, GridPipeProcessingPrivateApi, GridStrategyProcessingApi, GridColumnSpanningPrivateApi, GridRowsMetaPrivateApi, GridDimensionsPrivateApi, GridEditingPrivateApi, GridLoggerApi, GridFocusPrivateApi, GridHeaderFilteringPrivateApi, GridVirtualizationPrivateApi, GridRowProPrivateApi, GridParamsPrivateApi, GridPivotingPrivateApiCommunity {
35
+ export interface GridPrivateOnlyApiCommon<Api extends GridApiCommon, PrivateApi extends GridPrivateApiCommon, Props extends DataGridProcessedProps> extends GridCorePrivateApi<Api, PrivateApi, Props>, GridStatePrivateApi<Api['state'], Api>, GridPipeProcessingPrivateApi, GridStrategyProcessingApi, GridColumnSpanningPrivateApi, GridRowsMetaPrivateApi, GridDimensionsPrivateApi, GridEditingPrivateApi, GridLoggerApi, GridFocusPrivateApi, GridHeaderFilteringPrivateApi, GridVirtualizationPrivateApi, GridRowProPrivateApi, GridRowSpanningPrivateApi, GridParamsPrivateApi, GridPivotingPrivateApiCommunity {
36
36
  virtualizer: Virtualizer;
37
37
  }
38
38
  export interface GridPrivateApiCommon extends GridApiCommon, GridPrivateOnlyApiCommon<GridApiCommon, GridPrivateApiCommon, DataGridProcessedProps> {}
@@ -11,7 +11,7 @@ import type { GridLocaleTextApi } from "./gridLocaleTextApi.js";
11
11
  import type { GridParamsApi, GridParamsPrivateApi } from "./gridParamsApi.js";
12
12
  import type { GridPreferencesPanelApi } from "./gridPreferencesPanelApi.js";
13
13
  import type { GridPrintExportApi } from "./gridPrintExportApi.js";
14
- import type { GridRowApi, GridRowProPrivateApi } from "./gridRowApi.js";
14
+ import type { GridRowApi, GridRowProPrivateApi, GridRowSpanningPrivateApi } from "./gridRowApi.js";
15
15
  import type { GridRowsMetaApi, GridRowsMetaPrivateApi } from "./gridRowsMetaApi.js";
16
16
  import type { GridRowSelectionApi } from "./gridRowSelectionApi.js";
17
17
  import type { GridSortApi } from "./gridSortApi.js";
@@ -32,7 +32,7 @@ import type { DataGridProcessedProps } from "../props/DataGridProps.js";
32
32
  import type { GridColumnResizeApi } from "../../hooks/features/columnResize/index.js";
33
33
  import type { GridPivotingPrivateApiCommunity } from "../../hooks/features/pivoting/gridPivotingInterfaces.js";
34
34
  export interface GridApiCommon<GridState extends GridStateCommunity = GridStateCommunity, GridInitialState extends GridInitialStateCommunity = GridInitialStateCommunity> extends GridCoreApi, GridPipeProcessingApi, GridDensityApi, GridDimensionsApi, GridRowApi, GridRowsMetaApi, GridEditingApi, GridParamsApi, GridColumnApi, GridRowSelectionApi, GridSortApi, GridPaginationApi, GridCsvExportApi, GridFocusApi, GridFilterApi, GridColumnMenuApi, GridPreferencesPanelApi, GridPrintExportApi, GridVirtualizationApi, GridLocaleTextApi, GridScrollApi, GridColumnSpanningApi, GridStateApi<GridState>, GridStatePersistenceApi<GridInitialState>, GridColumnGroupingApi, GridHeaderFilteringApi, GridColumnResizeApi {}
35
- export interface GridPrivateOnlyApiCommon<Api extends GridApiCommon, PrivateApi extends GridPrivateApiCommon, Props extends DataGridProcessedProps> extends GridCorePrivateApi<Api, PrivateApi, Props>, GridStatePrivateApi<Api['state']>, GridPipeProcessingPrivateApi, GridStrategyProcessingApi, GridColumnSpanningPrivateApi, GridRowsMetaPrivateApi, GridDimensionsPrivateApi, GridEditingPrivateApi, GridLoggerApi, GridFocusPrivateApi, GridHeaderFilteringPrivateApi, GridVirtualizationPrivateApi, GridRowProPrivateApi, GridParamsPrivateApi, GridPivotingPrivateApiCommunity {
35
+ export interface GridPrivateOnlyApiCommon<Api extends GridApiCommon, PrivateApi extends GridPrivateApiCommon, Props extends DataGridProcessedProps> extends GridCorePrivateApi<Api, PrivateApi, Props>, GridStatePrivateApi<Api['state'], Api>, GridPipeProcessingPrivateApi, GridStrategyProcessingApi, GridColumnSpanningPrivateApi, GridRowsMetaPrivateApi, GridDimensionsPrivateApi, GridEditingPrivateApi, GridLoggerApi, GridFocusPrivateApi, GridHeaderFilteringPrivateApi, GridVirtualizationPrivateApi, GridRowProPrivateApi, GridRowSpanningPrivateApi, GridParamsPrivateApi, GridPivotingPrivateApiCommunity {
36
36
  virtualizer: Virtualizer;
37
37
  }
38
38
  export interface GridPrivateApiCommon extends GridApiCommon, GridPrivateOnlyApiCommon<GridApiCommon, GridPrivateApiCommon, DataGridProcessedProps> {}
@@ -1,9 +1,10 @@
1
+ import type { RefObject } from '@mui/x-internals/types';
1
2
  import type { GridControlledStateReasonLookup } from "../events/gridEventLookup.mjs";
2
3
  import type { GridApiCommon } from "./gridApiCommon.mjs";
3
4
  /**
4
5
  * Additional details passed to the callbacks
5
6
  */
6
- export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLookup = any> {
7
+ export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLookup = any, Api extends GridApiCommon = GridApiCommon> {
7
8
  /**
8
9
  * The reason for this callback to have been called.
9
10
  */
@@ -12,4 +13,13 @@ export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLo
12
13
  * GridApi that let you manipulate the grid.
13
14
  */
14
15
  api: GridApiCommon;
16
+ /**
17
+ * A ref to the GridApi that let you manipulate the grid.
18
+ * Can be used to call selectors without a separate `useGridApiRef`.
19
+ * @example
20
+ * onRowSelectionModelChange={(model, details) => {
21
+ * const rows = gridRowSelectionIdsSelector(details.apiRef);
22
+ * }}
23
+ */
24
+ apiRef: Readonly<RefObject<Api>>;
15
25
  }
@@ -1,9 +1,10 @@
1
+ import type { RefObject } from '@mui/x-internals/types';
1
2
  import type { GridControlledStateReasonLookup } from "../events/gridEventLookup.js";
2
3
  import type { GridApiCommon } from "./gridApiCommon.js";
3
4
  /**
4
5
  * Additional details passed to the callbacks
5
6
  */
6
- export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLookup = any> {
7
+ export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLookup = any, Api extends GridApiCommon = GridApiCommon> {
7
8
  /**
8
9
  * The reason for this callback to have been called.
9
10
  */
@@ -12,4 +13,13 @@ export interface GridCallbackDetails<K extends keyof GridControlledStateReasonLo
12
13
  * GridApi that let you manipulate the grid.
13
14
  */
14
15
  api: GridApiCommon;
16
+ /**
17
+ * A ref to the GridApi that let you manipulate the grid.
18
+ * Can be used to call selectors without a separate `useGridApiRef`.
19
+ * @example
20
+ * onRowSelectionModelChange={(model, details) => {
21
+ * const rows = gridRowSelectionIdsSelector(details.apiRef);
22
+ * }}
23
+ */
24
+ apiRef: Readonly<RefObject<Api>>;
15
25
  }
@@ -34,6 +34,9 @@ export interface GridLocaleText {
34
34
  toolbarPivot: string;
35
35
  toolbarCharts: string;
36
36
  toolbarAssistant: React.ReactNode;
37
+ formulaBarLabel: string;
38
+ formulaBarInputLabel: string;
39
+ formulaBarAddressLabel: string;
37
40
  columnsManagementSearchTitle: string;
38
41
  columnsManagementNoColumns: string;
39
42
  columnsManagementShowHideAllText: string;
@@ -34,6 +34,9 @@ export interface GridLocaleText {
34
34
  toolbarPivot: string;
35
35
  toolbarCharts: string;
36
36
  toolbarAssistant: React.ReactNode;
37
+ formulaBarLabel: string;
38
+ formulaBarInputLabel: string;
39
+ formulaBarAddressLabel: string;
37
40
  columnsManagementSearchTitle: string;
38
41
  columnsManagementNoColumns: string;
39
42
  columnsManagementShowHideAllText: string;
@@ -144,4 +144,16 @@ export interface GridRowProPrivateApi {
144
144
  * @param {string[]} nestedLevel The nested level of the rows to update, it represents the path to the row in the tree based on `node.groupingKey`.
145
145
  */
146
146
  updateNestedRows: (updates: GridRowModelUpdate[], nestedLevel?: string[]) => void;
147
+ }
148
+ export interface GridRowSpanningPrivateApi {
149
+ /**
150
+ * Recomputes the row spanning state from scratch.
151
+ * Row spanning recomputes on its own after row, sort, filter, pagination,
152
+ * and column updates. Features that change the values cells resolve to
153
+ * without emitting any of those events (for example a formula evaluation
154
+ * pass, whose value overlay changes evaluated results in place) call this
155
+ * method to keep the spans in sync. No-op when the `rowSpanning` prop is
156
+ * not enabled.
157
+ */
158
+ resetRowSpanningState: () => void;
147
159
  }
@@ -144,4 +144,16 @@ export interface GridRowProPrivateApi {
144
144
  * @param {string[]} nestedLevel The nested level of the rows to update, it represents the path to the row in the tree based on `node.groupingKey`.
145
145
  */
146
146
  updateNestedRows: (updates: GridRowModelUpdate[], nestedLevel?: string[]) => void;
147
+ }
148
+ export interface GridRowSpanningPrivateApi {
149
+ /**
150
+ * Recomputes the row spanning state from scratch.
151
+ * Row spanning recomputes on its own after row, sort, filter, pagination,
152
+ * and column updates. Features that change the values cells resolve to
153
+ * without emitting any of those events (for example a formula evaluation
154
+ * pass, whose value overlay changes evaluated results in place) call this
155
+ * method to keep the spans in sync. No-op when the `rowSpanning` prop is
156
+ * not enabled.
157
+ */
158
+ resetRowSpanningState: () => void;
147
159
  }
@@ -1,6 +1,7 @@
1
1
  import type { GridStateCommunity } from "../gridStateCommunity.mjs";
2
2
  import type { GridControlledStateEventLookup, GridControlledStateReasonLookup } from "../events/index.mjs";
3
3
  import type { GridControlStateItem } from "../controlStateItem.mjs";
4
+ import type { GridApiCommon } from "./gridApiCommon.mjs";
4
5
  export interface GridStateApi<State extends GridStateCommunity> {
5
6
  /**
6
7
  * Property that contains the whole state of the grid.
@@ -15,7 +16,7 @@ export interface GridStateApi<State extends GridStateCommunity> {
15
16
  */
16
17
  setState: <S extends State, K extends keyof GridControlledStateReasonLookup>(state: S | ((previousState: S) => S), reason?: GridControlledStateReasonLookup[K]) => boolean;
17
18
  }
18
- export interface GridStatePrivateApi<State extends GridStateCommunity> {
19
+ export interface GridStatePrivateApi<State extends GridStateCommunity, Api extends GridApiCommon = GridApiCommon> {
19
20
  /**
20
21
  * Updates a single sub-state.
21
22
  * Publishes the `xxxChange` event and calls the `onXXXChange` prop.
@@ -29,5 +30,5 @@ export interface GridStatePrivateApi<State extends GridStateCommunity> {
29
30
  * Updates a control state that binds the model, the onChange prop, and the grid state together.
30
31
  * @param {GridControlStateItem>} controlState The [[GridControlStateItem]] to be registered.
31
32
  */
32
- registerControlState: <E extends keyof GridControlledStateEventLookup, Args>(controlState: GridControlStateItem<State, Args, E>) => void;
33
+ registerControlState: <E extends keyof GridControlledStateEventLookup, Args>(controlState: GridControlStateItem<State, Args, E, Api>) => void;
33
34
  }
@@ -1,6 +1,7 @@
1
1
  import type { GridStateCommunity } from "../gridStateCommunity.js";
2
2
  import type { GridControlledStateEventLookup, GridControlledStateReasonLookup } from "../events/index.js";
3
3
  import type { GridControlStateItem } from "../controlStateItem.js";
4
+ import type { GridApiCommon } from "./gridApiCommon.js";
4
5
  export interface GridStateApi<State extends GridStateCommunity> {
5
6
  /**
6
7
  * Property that contains the whole state of the grid.
@@ -15,7 +16,7 @@ export interface GridStateApi<State extends GridStateCommunity> {
15
16
  */
16
17
  setState: <S extends State, K extends keyof GridControlledStateReasonLookup>(state: S | ((previousState: S) => S), reason?: GridControlledStateReasonLookup[K]) => boolean;
17
18
  }
18
- export interface GridStatePrivateApi<State extends GridStateCommunity> {
19
+ export interface GridStatePrivateApi<State extends GridStateCommunity, Api extends GridApiCommon = GridApiCommon> {
19
20
  /**
20
21
  * Updates a single sub-state.
21
22
  * Publishes the `xxxChange` event and calls the `onXXXChange` prop.
@@ -29,5 +30,5 @@ export interface GridStatePrivateApi<State extends GridStateCommunity> {
29
30
  * Updates a control state that binds the model, the onChange prop, and the grid state together.
30
31
  * @param {GridControlStateItem>} controlState The [[GridControlStateItem]] to be registered.
31
32
  */
32
- registerControlState: <E extends keyof GridControlledStateEventLookup, Args>(controlState: GridControlStateItem<State, Args, E>) => void;
33
+ registerControlState: <E extends keyof GridControlledStateEventLookup, Args>(controlState: GridControlStateItem<State, Args, E, Api>) => void;
33
34
  }
@@ -3,7 +3,7 @@ export type { GridParamsApi } from "./gridParamsApi.mjs";
3
3
  export type { GridCoreApi } from "./gridCoreApi.mjs";
4
4
  export * from "./gridColumnApi.mjs";
5
5
  export * from "./gridDensityApi.mjs";
6
- export type { GridRowGroupChildrenGetterParams, GridRowApi, GridRowProApi, GridRowProPrivateApi } from "./gridRowApi.mjs";
6
+ export type { GridRowGroupChildrenGetterParams, GridRowApi, GridRowProApi, GridRowProPrivateApi, GridRowSpanningPrivateApi } from "./gridRowApi.mjs";
7
7
  export type { GridRowsMetaApi } from "./gridRowsMetaApi.mjs";
8
8
  export * from "./gridRowSelectionApi.mjs";
9
9
  export * from "./gridSortApi.mjs";
@@ -3,7 +3,7 @@ export type { GridParamsApi } from "./gridParamsApi.js";
3
3
  export type { GridCoreApi } from "./gridCoreApi.js";
4
4
  export * from "./gridColumnApi.js";
5
5
  export * from "./gridDensityApi.js";
6
- export type { GridRowGroupChildrenGetterParams, GridRowApi, GridRowProApi, GridRowProPrivateApi } from "./gridRowApi.js";
6
+ export type { GridRowGroupChildrenGetterParams, GridRowApi, GridRowProApi, GridRowProPrivateApi, GridRowSpanningPrivateApi } from "./gridRowApi.js";
7
7
  export type { GridRowsMetaApi } from "./gridRowsMetaApi.js";
8
8
  export * from "./gridRowSelectionApi.js";
9
9
  export * from "./gridSortApi.js";
@@ -44,6 +44,11 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
44
44
  * The title displayed in the column header cell.
45
45
  */
46
46
  headerName?: string;
47
+ /**
48
+ * If `true`, the cells in this column identify their respective rows and receive the `rowheader` ARIA role.
49
+ * @default false
50
+ */
51
+ rowHeader?: boolean;
47
52
  /**
48
53
  * The tooltip text shown when the column header name is truncated.
49
54
  */
@@ -44,6 +44,11 @@ export interface GridBaseColDef<R extends GridValidRowModel = GridValidRowModel,
44
44
  * The title displayed in the column header cell.
45
45
  */
46
46
  headerName?: string;
47
+ /**
48
+ * If `true`, the cells in this column identify their respective rows and receive the `rowheader` ARIA role.
49
+ * @default false
50
+ */
51
+ rowHeader?: boolean;
47
52
  /**
48
53
  * The tooltip text shown when the column header name is truncated.
49
54
  */
@@ -10,7 +10,19 @@ import type { GridParamsOverridableMethodsInternalHook } from "./gridParamsConfi
10
10
  export interface GridAriaAttributesInternalHook {
11
11
  useGridAriaAttributes: () => React.HTMLAttributes<HTMLElement>;
12
12
  }
13
- export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api, Props>, GridParamsOverridableMethodsInternalHook<Api> {
13
+ export interface GridColumnHeaderAdornmentInternalHook {
14
+ /**
15
+ * Returns an optional adornment rendered inside a column header's title
16
+ * content, at the start, before the title label. Placing it inside the
17
+ * (non-reversed) title content keeps it on the same side of the title for
18
+ * both left- and right-aligned headers. Called once per rendered header
19
+ * cell, so the implementation may use hooks.
20
+ * @param {string} field The column field.
21
+ * @returns {React.ReactNode} The adornment node, or `null` for none.
22
+ */
23
+ useColumnHeaderAdornment: (field: string) => React.ReactNode;
24
+ }
25
+ export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridColumnHeaderAdornmentInternalHook, GridRowsOverridableMethodsInternalHook<Api, Props>, GridParamsOverridableMethodsInternalHook<Api> {
14
26
  useCSSVariables: () => {
15
27
  id: string;
16
28
  variables: GridCSSVariablesInterface;
@@ -10,7 +10,19 @@ import type { GridParamsOverridableMethodsInternalHook } from "./gridParamsConfi
10
10
  export interface GridAriaAttributesInternalHook {
11
11
  useGridAriaAttributes: () => React.HTMLAttributes<HTMLElement>;
12
12
  }
13
- export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api, Props>, GridParamsOverridableMethodsInternalHook<Api> {
13
+ export interface GridColumnHeaderAdornmentInternalHook {
14
+ /**
15
+ * Returns an optional adornment rendered inside a column header's title
16
+ * content, at the start, before the title label. Placing it inside the
17
+ * (non-reversed) title content keeps it on the same side of the title for
18
+ * both left- and right-aligned headers. Called once per rendered header
19
+ * cell, so the implementation may use hooks.
20
+ * @param {string} field The column field.
21
+ * @returns {React.ReactNode} The adornment node, or `null` for none.
22
+ */
23
+ useColumnHeaderAdornment: (field: string) => React.ReactNode;
24
+ }
25
+ export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridColumnHeaderAdornmentInternalHook, GridRowsOverridableMethodsInternalHook<Api, Props>, GridParamsOverridableMethodsInternalHook<Api> {
14
26
  useCSSVariables: () => {
15
27
  id: string;
16
28
  variables: GridCSSVariablesInterface;