@mui/x-data-grid 5.12.1 → 5.13.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 (315) hide show
  1. package/CHANGELOG.md +155 -8
  2. package/DataGrid/DataGrid.js +4 -4
  3. package/colDef/gridCheckboxSelectionColDef.d.ts +1 -0
  4. package/colDef/gridCheckboxSelectionColDef.js +2 -1
  5. package/colDef/gridDateOperators.d.ts +1 -1
  6. package/colDef/gridNumericColDef.js +1 -1
  7. package/colDef/gridStringOperators.d.ts +1 -1
  8. package/colDef/gridStringOperators.js +11 -6
  9. package/components/GridRow.js +1 -1
  10. package/components/cell/GridActionsCellItem.d.ts +2 -2
  11. package/components/cell/GridBooleanCell.js +4 -3
  12. package/components/cell/GridEditBooleanCell.js +4 -3
  13. package/components/cell/GridEditDateCell.js +4 -3
  14. package/components/cell/GridEditInputCell.js +4 -3
  15. package/components/cell/GridEditSingleSelectCell.js +9 -7
  16. package/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  17. package/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  18. package/components/columnSelection/GridHeaderCheckbox.js +0 -1
  19. package/components/containers/GridRootStyles.js +1 -1
  20. package/components/panel/GridColumnsPanel.js +3 -6
  21. package/components/panel/GridPanel.d.ts +1 -1
  22. package/components/panel/filterPanel/GridFilterForm.js +11 -4
  23. package/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  24. package/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  25. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +5 -9
  26. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +42 -19
  27. package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +3 -7
  28. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +32 -14
  29. package/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  30. package/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  31. package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +6 -3
  32. package/components/panel/filterPanel/GridFilterPanel.js +1 -2
  33. package/components/panel/filterPanel/filterPanelUtils.d.ts +1 -1
  34. package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
  35. package/components/toolbar/GridToolbarColumnsButton.js +0 -1
  36. package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
  37. package/components/toolbar/GridToolbarDensitySelector.js +0 -1
  38. package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
  39. package/components/toolbar/GridToolbarExportContainer.js +0 -1
  40. package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
  41. package/components/toolbar/GridToolbarFilterButton.js +0 -1
  42. package/constants/localeTextConstants.js +1 -0
  43. package/hooks/features/columns/useGridColumnSpanning.d.ts +1 -1
  44. package/hooks/features/columns/useGridColumnSpanning.js +1 -1
  45. package/hooks/features/columns/useGridColumns.d.ts +1 -1
  46. package/hooks/features/dimensions/gridDimensionsApi.d.ts +5 -0
  47. package/hooks/features/dimensions/useGridDimensions.js +37 -23
  48. package/hooks/features/editRows/useGridCellEditing.new.js +6 -0
  49. package/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  50. package/hooks/features/editRows/useGridRowEditing.new.js +6 -0
  51. package/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  52. package/hooks/features/filter/gridFilterState.d.ts +1 -1
  53. package/hooks/features/filter/gridFilterUtils.js +8 -5
  54. package/hooks/features/filter/useGridFilter.d.ts +1 -1
  55. package/hooks/features/rows/useGridRows.js +16 -3
  56. package/hooks/features/rows/useGridRowsMeta.js +79 -77
  57. package/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  58. package/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
  59. package/hooks/features/sorting/useGridSorting.d.ts +1 -1
  60. package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
  61. package/hooks/features/virtualization/useGridVirtualScroller.js +42 -8
  62. package/hooks/utils/useGridApiContext.js +1 -1
  63. package/hooks/utils/useGridRootProps.js +1 -1
  64. package/index.js +1 -1
  65. package/legacy/DataGrid/DataGrid.js +4 -4
  66. package/legacy/colDef/gridCheckboxSelectionColDef.js +2 -1
  67. package/legacy/colDef/gridNumericColDef.js +1 -1
  68. package/legacy/colDef/gridStringOperators.js +13 -5
  69. package/legacy/components/GridRow.js +1 -1
  70. package/legacy/components/cell/GridBooleanCell.js +3 -1
  71. package/legacy/components/cell/GridEditBooleanCell.js +4 -2
  72. package/legacy/components/cell/GridEditDateCell.js +4 -2
  73. package/legacy/components/cell/GridEditInputCell.js +4 -2
  74. package/legacy/components/cell/GridEditSingleSelectCell.js +9 -7
  75. package/legacy/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  76. package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  77. package/legacy/components/columnSelection/GridHeaderCheckbox.js +0 -1
  78. package/legacy/components/containers/GridRootStyles.js +1 -1
  79. package/legacy/components/panel/GridColumnsPanel.js +5 -6
  80. package/legacy/components/panel/filterPanel/GridFilterForm.js +9 -4
  81. package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  82. package/legacy/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  83. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +34 -12
  84. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +24 -7
  85. package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  86. package/legacy/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  87. package/legacy/components/panel/filterPanel/GridFilterPanel.js +1 -2
  88. package/legacy/components/toolbar/GridToolbarColumnsButton.js +0 -1
  89. package/legacy/components/toolbar/GridToolbarDensitySelector.js +0 -1
  90. package/legacy/components/toolbar/GridToolbarExportContainer.js +0 -1
  91. package/legacy/components/toolbar/GridToolbarFilterButton.js +0 -1
  92. package/legacy/constants/localeTextConstants.js +1 -0
  93. package/legacy/hooks/features/columns/useGridColumnSpanning.js +1 -1
  94. package/legacy/hooks/features/dimensions/useGridDimensions.js +36 -23
  95. package/legacy/hooks/features/editRows/useGridCellEditing.new.js +6 -0
  96. package/legacy/hooks/features/editRows/useGridCellEditing.old.js +16 -8
  97. package/legacy/hooks/features/editRows/useGridRowEditing.new.js +6 -0
  98. package/legacy/hooks/features/editRows/useGridRowEditing.old.js +22 -14
  99. package/legacy/hooks/features/filter/gridFilterUtils.js +8 -5
  100. package/legacy/hooks/features/rows/useGridRows.js +18 -3
  101. package/legacy/hooks/features/rows/useGridRowsMeta.js +81 -77
  102. package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  103. package/legacy/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
  104. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +42 -8
  105. package/legacy/hooks/utils/useGridApiContext.js +1 -1
  106. package/legacy/hooks/utils/useGridRootProps.js +1 -1
  107. package/legacy/index.js +1 -1
  108. package/legacy/locales/arSD.js +1 -0
  109. package/legacy/locales/bgBG.js +1 -0
  110. package/legacy/locales/csCZ.js +1 -0
  111. package/legacy/locales/daDK.js +1 -0
  112. package/legacy/locales/deDE.js +1 -0
  113. package/legacy/locales/elGR.js +1 -0
  114. package/legacy/locales/esES.js +1 -0
  115. package/legacy/locales/faIR.js +1 -0
  116. package/legacy/locales/fiFI.js +1 -0
  117. package/legacy/locales/frFR.js +1 -0
  118. package/legacy/locales/heIL.js +1 -0
  119. package/legacy/locales/huHU.js +1 -0
  120. package/legacy/locales/index.js +3 -0
  121. package/legacy/locales/itIT.js +1 -0
  122. package/legacy/locales/jaJP.js +1 -0
  123. package/legacy/locales/koKR.js +1 -0
  124. package/legacy/locales/nbNO.js +1 -0
  125. package/legacy/locales/nlNL.js +1 -0
  126. package/legacy/locales/plPL.js +1 -0
  127. package/legacy/locales/ptBR.js +1 -0
  128. package/legacy/locales/roRO.js +128 -0
  129. package/legacy/locales/ruRU.js +1 -0
  130. package/legacy/locales/skSK.js +16 -15
  131. package/legacy/locales/svSE.js +128 -0
  132. package/legacy/locales/trTR.js +1 -0
  133. package/legacy/locales/ukUA.js +1 -0
  134. package/legacy/locales/viVN.js +1 -0
  135. package/legacy/locales/zhCN.js +1 -0
  136. package/legacy/utils/keyboardUtils.js +4 -3
  137. package/locales/arSD.js +1 -0
  138. package/locales/bgBG.js +1 -0
  139. package/locales/csCZ.js +1 -0
  140. package/locales/daDK.js +1 -0
  141. package/locales/deDE.js +1 -0
  142. package/locales/elGR.js +1 -0
  143. package/locales/esES.js +1 -0
  144. package/locales/faIR.js +1 -0
  145. package/locales/fiFI.js +1 -0
  146. package/locales/frFR.js +1 -0
  147. package/locales/heIL.js +1 -0
  148. package/locales/huHU.js +1 -0
  149. package/locales/index.d.ts +3 -0
  150. package/locales/index.js +3 -0
  151. package/locales/itIT.js +1 -0
  152. package/locales/jaJP.js +1 -0
  153. package/locales/koKR.js +1 -0
  154. package/locales/nbNO.js +1 -0
  155. package/locales/nlNL.js +1 -0
  156. package/locales/plPL.js +1 -0
  157. package/locales/ptBR.js +1 -0
  158. package/locales/roRO.d.ts +2 -0
  159. package/locales/roRO.js +116 -0
  160. package/locales/ruRU.js +1 -0
  161. package/locales/skSK.js +16 -15
  162. package/locales/svSE.d.ts +2 -0
  163. package/locales/svSE.js +116 -0
  164. package/locales/trTR.js +1 -0
  165. package/locales/ukUA.js +1 -0
  166. package/locales/viVN.js +1 -0
  167. package/locales/zhCN.js +1 -0
  168. package/models/api/gridLocaleTextApi.d.ts +1 -0
  169. package/models/colDef/gridColDef.d.ts +1 -1
  170. package/modern/DataGrid/DataGrid.js +4 -4
  171. package/modern/colDef/gridCheckboxSelectionColDef.js +2 -1
  172. package/modern/colDef/gridNumericColDef.js +1 -1
  173. package/modern/colDef/gridStringOperators.js +11 -6
  174. package/modern/components/GridRow.js +1 -1
  175. package/modern/components/cell/GridBooleanCell.js +4 -3
  176. package/modern/components/cell/GridEditBooleanCell.js +4 -3
  177. package/modern/components/cell/GridEditDateCell.js +4 -3
  178. package/modern/components/cell/GridEditInputCell.js +4 -3
  179. package/modern/components/cell/GridEditSingleSelectCell.js +9 -7
  180. package/modern/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  181. package/modern/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  182. package/modern/components/columnSelection/GridHeaderCheckbox.js +0 -1
  183. package/modern/components/containers/GridRootStyles.js +1 -1
  184. package/modern/components/panel/GridColumnsPanel.js +3 -6
  185. package/modern/components/panel/filterPanel/GridFilterForm.js +11 -4
  186. package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  187. package/modern/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  188. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +32 -13
  189. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +22 -8
  190. package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  191. package/modern/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  192. package/modern/components/panel/filterPanel/GridFilterPanel.js +1 -2
  193. package/modern/components/toolbar/GridToolbarColumnsButton.js +0 -1
  194. package/modern/components/toolbar/GridToolbarDensitySelector.js +0 -1
  195. package/modern/components/toolbar/GridToolbarExportContainer.js +0 -1
  196. package/modern/components/toolbar/GridToolbarFilterButton.js +0 -1
  197. package/modern/constants/localeTextConstants.js +1 -0
  198. package/modern/hooks/features/columns/useGridColumnSpanning.js +1 -1
  199. package/modern/hooks/features/dimensions/useGridDimensions.js +37 -23
  200. package/modern/hooks/features/editRows/useGridCellEditing.new.js +6 -0
  201. package/modern/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  202. package/modern/hooks/features/editRows/useGridRowEditing.new.js +6 -0
  203. package/modern/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  204. package/modern/hooks/features/filter/gridFilterUtils.js +8 -5
  205. package/modern/hooks/features/rows/useGridRows.js +16 -3
  206. package/modern/hooks/features/rows/useGridRowsMeta.js +77 -75
  207. package/modern/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  208. package/modern/hooks/features/selection/useGridSelectionPreProcessors.js +8 -6
  209. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +42 -8
  210. package/modern/hooks/utils/useGridApiContext.js +1 -1
  211. package/modern/hooks/utils/useGridRootProps.js +1 -1
  212. package/modern/index.js +1 -1
  213. package/modern/locales/arSD.js +1 -0
  214. package/modern/locales/bgBG.js +1 -0
  215. package/modern/locales/csCZ.js +1 -0
  216. package/modern/locales/daDK.js +1 -0
  217. package/modern/locales/deDE.js +1 -0
  218. package/modern/locales/elGR.js +1 -0
  219. package/modern/locales/esES.js +1 -0
  220. package/modern/locales/faIR.js +1 -0
  221. package/modern/locales/fiFI.js +1 -0
  222. package/modern/locales/frFR.js +1 -0
  223. package/modern/locales/heIL.js +1 -0
  224. package/modern/locales/huHU.js +1 -0
  225. package/modern/locales/index.js +3 -0
  226. package/modern/locales/itIT.js +1 -0
  227. package/modern/locales/jaJP.js +1 -0
  228. package/modern/locales/koKR.js +1 -0
  229. package/modern/locales/nbNO.js +1 -0
  230. package/modern/locales/nlNL.js +1 -0
  231. package/modern/locales/plPL.js +1 -0
  232. package/modern/locales/ptBR.js +1 -0
  233. package/modern/locales/roRO.js +116 -0
  234. package/modern/locales/ruRU.js +1 -0
  235. package/modern/locales/skSK.js +16 -15
  236. package/modern/locales/svSE.js +116 -0
  237. package/modern/locales/trTR.js +1 -0
  238. package/modern/locales/ukUA.js +1 -0
  239. package/modern/locales/viVN.js +1 -0
  240. package/modern/locales/zhCN.js +1 -0
  241. package/modern/utils/keyboardUtils.js +4 -3
  242. package/node/DataGrid/DataGrid.js +4 -4
  243. package/node/colDef/gridCheckboxSelectionColDef.js +4 -2
  244. package/node/colDef/gridNumericColDef.js +1 -1
  245. package/node/colDef/gridStringOperators.js +11 -6
  246. package/node/components/GridRow.js +1 -1
  247. package/node/components/cell/GridBooleanCell.js +5 -3
  248. package/node/components/cell/GridEditBooleanCell.js +5 -3
  249. package/node/components/cell/GridEditDateCell.js +5 -3
  250. package/node/components/cell/GridEditInputCell.js +5 -3
  251. package/node/components/cell/GridEditSingleSelectCell.js +10 -7
  252. package/node/components/columnHeaders/GridColumnHeaderItem.js +5 -3
  253. package/node/components/columnSelection/GridCellCheckboxRenderer.js +0 -1
  254. package/node/components/columnSelection/GridHeaderCheckbox.js +0 -1
  255. package/node/components/containers/GridRootStyles.js +1 -1
  256. package/node/components/panel/GridColumnsPanel.js +3 -6
  257. package/node/components/panel/filterPanel/GridFilterForm.js +9 -4
  258. package/node/components/panel/filterPanel/GridFilterInputBoolean.js +1 -1
  259. package/node/components/panel/filterPanel/GridFilterInputDate.js +4 -2
  260. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +43 -20
  261. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +33 -15
  262. package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +8 -2
  263. package/node/components/panel/filterPanel/GridFilterInputValue.js +4 -2
  264. package/node/components/panel/filterPanel/GridFilterPanel.js +1 -2
  265. package/node/components/toolbar/GridToolbarColumnsButton.js +0 -1
  266. package/node/components/toolbar/GridToolbarDensitySelector.js +0 -1
  267. package/node/components/toolbar/GridToolbarExportContainer.js +0 -1
  268. package/node/components/toolbar/GridToolbarFilterButton.js +0 -1
  269. package/node/constants/localeTextConstants.js +1 -0
  270. package/node/hooks/features/columns/useGridColumnSpanning.js +11 -16
  271. package/node/hooks/features/dimensions/useGridDimensions.js +37 -23
  272. package/node/hooks/features/editRows/useGridCellEditing.new.js +6 -0
  273. package/node/hooks/features/editRows/useGridCellEditing.old.js +6 -0
  274. package/node/hooks/features/editRows/useGridRowEditing.new.js +6 -0
  275. package/node/hooks/features/editRows/useGridRowEditing.old.js +6 -0
  276. package/node/hooks/features/filter/gridFilterUtils.js +7 -4
  277. package/node/hooks/features/rows/useGridRows.js +16 -3
  278. package/node/hooks/features/rows/useGridRowsMeta.js +80 -77
  279. package/node/hooks/features/rows/useGridRowsPreProcessors.js +1 -1
  280. package/node/hooks/features/selection/useGridSelectionPreProcessors.js +7 -5
  281. package/node/hooks/features/virtualization/useGridVirtualScroller.js +42 -9
  282. package/node/hooks/utils/useGridApiContext.js +1 -1
  283. package/node/hooks/utils/useGridRootProps.js +1 -1
  284. package/node/index.js +1 -1
  285. package/node/locales/arSD.js +1 -0
  286. package/node/locales/bgBG.js +1 -0
  287. package/node/locales/csCZ.js +1 -0
  288. package/node/locales/daDK.js +1 -0
  289. package/node/locales/deDE.js +1 -0
  290. package/node/locales/elGR.js +1 -0
  291. package/node/locales/esES.js +1 -0
  292. package/node/locales/faIR.js +1 -0
  293. package/node/locales/fiFI.js +1 -0
  294. package/node/locales/frFR.js +1 -0
  295. package/node/locales/heIL.js +1 -0
  296. package/node/locales/huHU.js +1 -0
  297. package/node/locales/index.js +39 -0
  298. package/node/locales/itIT.js +1 -0
  299. package/node/locales/jaJP.js +1 -0
  300. package/node/locales/koKR.js +1 -0
  301. package/node/locales/nbNO.js +1 -0
  302. package/node/locales/nlNL.js +1 -0
  303. package/node/locales/plPL.js +1 -0
  304. package/node/locales/ptBR.js +1 -0
  305. package/node/locales/roRO.js +126 -0
  306. package/node/locales/ruRU.js +1 -0
  307. package/node/locales/skSK.js +16 -15
  308. package/node/locales/svSE.js +126 -0
  309. package/node/locales/trTR.js +1 -0
  310. package/node/locales/ukUA.js +1 -0
  311. package/node/locales/viVN.js +1 -0
  312. package/node/locales/zhCN.js +1 -0
  313. package/node/utils/keyboardUtils.js +4 -3
  314. package/package.json +3 -3
  315. package/utils/keyboardUtils.js +4 -3
@@ -11,6 +11,8 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
 
12
12
  var React = _interopRequireWildcard(require("react"));
13
13
 
14
+ var _utils = require("@mui/material/utils");
15
+
14
16
  var _useGridVisibleRows = require("../../utils/useGridVisibleRows");
15
17
 
16
18
  var _useGridApiMethod = require("../../utils/useGridApiMethod");
@@ -62,86 +64,86 @@ const useGridRowsMeta = (apiRef, props) => {
62
64
  const currentPage = (0, _useGridVisibleRows.useGridVisibleRows)(apiRef, props);
63
65
  const hydrateRowsMeta = React.useCallback(() => {
64
66
  hasRowWithAutoHeight.current = false;
65
- apiRef.current.setState(state => {
66
- const densityFactor = (0, _densitySelector.gridDensityFactorSelector)(state, apiRef.current.instanceId);
67
- const positions = [];
68
- const currentPageTotalHeight = currentPage.rows.reduce((acc, row) => {
69
- positions.push(acc);
70
-
71
- if (!rowsHeightLookup.current[row.id]) {
72
- rowsHeightLookup.current[row.id] = {
73
- sizes: {
74
- base: rowHeightFromDensity
75
- },
76
- isResized: false,
77
- autoHeight: false,
78
- needsFirstMeasurement: true // Assume all rows will need to be measured by default
79
-
80
- };
81
- }
67
+ const densityFactor = (0, _densitySelector.gridDensityFactorSelector)(apiRef.current.state, apiRef.current.instanceId);
68
+ const positions = [];
69
+ const currentPageTotalHeight = currentPage.rows.reduce((acc, row) => {
70
+ positions.push(acc);
71
+
72
+ if (!rowsHeightLookup.current[row.id]) {
73
+ rowsHeightLookup.current[row.id] = {
74
+ sizes: {
75
+ base: rowHeightFromDensity
76
+ },
77
+ isResized: false,
78
+ autoHeight: false,
79
+ needsFirstMeasurement: true // Assume all rows will need to be measured by default
82
80
 
83
- const {
84
- isResized,
85
- needsFirstMeasurement,
86
- sizes
87
- } = rowsHeightLookup.current[row.id];
88
- let baseRowHeight = rowHeightFromDensity;
89
- const existingBaseRowHeight = sizes.base;
90
-
91
- if (isResized) {
92
- // Do not recalculate resized row height and use the value from the lookup
93
- baseRowHeight = existingBaseRowHeight;
94
- } else if (getRowHeightProp) {
95
- const rowHeightFromUser = getRowHeightProp((0, _extends2.default)({}, row, {
96
- densityFactor
97
- }));
98
-
99
- if (rowHeightFromUser === 'auto') {
100
- if (needsFirstMeasurement) {
101
- const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight((0, _extends2.default)({}, row, {
102
- densityFactor
103
- })) : rowHeightFromDensity; // If the row was not measured yet use the estimated row height
104
-
105
- baseRowHeight = estimatedRowHeight != null ? estimatedRowHeight : rowHeightFromDensity;
106
- } else {
107
- baseRowHeight = existingBaseRowHeight;
108
- }
109
-
110
- hasRowWithAutoHeight.current = true;
111
- rowsHeightLookup.current[row.id].autoHeight = true;
81
+ };
82
+ }
83
+
84
+ const {
85
+ isResized,
86
+ needsFirstMeasurement,
87
+ sizes
88
+ } = rowsHeightLookup.current[row.id];
89
+ let baseRowHeight = rowHeightFromDensity;
90
+ const existingBaseRowHeight = sizes.base;
91
+
92
+ if (isResized) {
93
+ // Do not recalculate resized row height and use the value from the lookup
94
+ baseRowHeight = existingBaseRowHeight;
95
+ } else if (getRowHeightProp) {
96
+ const rowHeightFromUser = getRowHeightProp((0, _extends2.default)({}, row, {
97
+ densityFactor
98
+ }));
99
+
100
+ if (rowHeightFromUser === 'auto') {
101
+ if (needsFirstMeasurement) {
102
+ const estimatedRowHeight = getEstimatedRowHeight ? getEstimatedRowHeight((0, _extends2.default)({}, row, {
103
+ densityFactor
104
+ })) : rowHeightFromDensity; // If the row was not measured yet use the estimated row height
105
+
106
+ baseRowHeight = estimatedRowHeight != null ? estimatedRowHeight : rowHeightFromDensity;
112
107
  } else {
113
- // Default back to base rowHeight if getRowHeight returns null or undefined.
114
- baseRowHeight = rowHeightFromUser != null ? rowHeightFromUser : rowHeightFromDensity;
115
- rowsHeightLookup.current[row.id].needsFirstMeasurement = false;
116
- rowsHeightLookup.current[row.id].autoHeight = false;
108
+ baseRowHeight = existingBaseRowHeight;
117
109
  }
110
+
111
+ hasRowWithAutoHeight.current = true;
112
+ rowsHeightLookup.current[row.id].autoHeight = true;
118
113
  } else {
114
+ // Default back to base rowHeight if getRowHeight returns null or undefined.
115
+ baseRowHeight = rowHeightFromUser != null ? rowHeightFromUser : rowHeightFromDensity;
119
116
  rowsHeightLookup.current[row.id].needsFirstMeasurement = false;
120
- } // We use an object to make simple to check if a height is already added or not
121
-
122
-
123
- const initialHeights = {
124
- base: baseRowHeight
125
- };
126
-
127
- if (getRowSpacing) {
128
- var _spacing$top, _spacing$bottom;
129
-
130
- const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
131
- const spacing = getRowSpacing((0, _extends2.default)({}, row, {
132
- isFirstVisible: indexRelativeToCurrentPage === 0,
133
- isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
134
- indexRelativeToCurrentPage
135
- }));
136
- initialHeights.spacingTop = (_spacing$top = spacing.top) != null ? _spacing$top : 0;
137
- initialHeights.spacingBottom = (_spacing$bottom = spacing.bottom) != null ? _spacing$bottom : 0;
117
+ rowsHeightLookup.current[row.id].autoHeight = false;
138
118
  }
139
-
140
- const processedSizes = apiRef.current.unstable_applyPipeProcessors('rowHeight', initialHeights, row);
141
- rowsHeightLookup.current[row.id].sizes = processedSizes;
142
- const finalRowHeight = Object.values(processedSizes).reduce((acc2, value) => acc2 + value, 0);
143
- return acc + finalRowHeight;
144
- }, 0);
119
+ } else {
120
+ rowsHeightLookup.current[row.id].needsFirstMeasurement = false;
121
+ } // We use an object to make simple to check if a height is already added or not
122
+
123
+
124
+ const initialHeights = {
125
+ base: baseRowHeight
126
+ };
127
+
128
+ if (getRowSpacing) {
129
+ var _spacing$top, _spacing$bottom;
130
+
131
+ const indexRelativeToCurrentPage = apiRef.current.getRowIndexRelativeToVisibleRows(row.id);
132
+ const spacing = getRowSpacing((0, _extends2.default)({}, row, {
133
+ isFirstVisible: indexRelativeToCurrentPage === 0,
134
+ isLastVisible: indexRelativeToCurrentPage === currentPage.rows.length - 1,
135
+ indexRelativeToCurrentPage
136
+ }));
137
+ initialHeights.spacingTop = (_spacing$top = spacing.top) != null ? _spacing$top : 0;
138
+ initialHeights.spacingBottom = (_spacing$bottom = spacing.bottom) != null ? _spacing$bottom : 0;
139
+ }
140
+
141
+ const processedSizes = apiRef.current.unstable_applyPipeProcessors('rowHeight', initialHeights, row);
142
+ rowsHeightLookup.current[row.id].sizes = processedSizes;
143
+ const finalRowHeight = Object.values(processedSizes).reduce((acc2, value) => acc2 + value, 0);
144
+ return acc + finalRowHeight;
145
+ }, 0);
146
+ apiRef.current.setState(state => {
145
147
  return (0, _extends2.default)({}, state, {
146
148
  rowsMeta: {
147
149
  currentPageTotalHeight,
@@ -174,6 +176,7 @@ const useGridRowsMeta = (apiRef, props) => {
174
176
  rowsHeightLookup.current[id].needsFirstMeasurement = false;
175
177
  hydrateRowsMeta();
176
178
  }, [hydrateRowsMeta]);
179
+ const debouncedHydrateRowsMeta = React.useMemo(() => (0, _utils.debounce)(hydrateRowsMeta), [hydrateRowsMeta]);
177
180
  const storeMeasuredRowHeight = React.useCallback((id, height) => {
178
181
  if (!rowsHeightLookup.current[id] || !rowsHeightLookup.current[id].autoHeight) {
179
182
  return;
@@ -185,9 +188,9 @@ const useGridRowsMeta = (apiRef, props) => {
185
188
  rowsHeightLookup.current[id].sizes.base = height;
186
189
 
187
190
  if (needsHydration) {
188
- hydrateRowsMeta();
191
+ debouncedHydrateRowsMeta();
189
192
  }
190
- }, [hydrateRowsMeta]);
193
+ }, [debouncedHydrateRowsMeta]);
191
194
  const rowHasAutoHeight = React.useCallback(id => {
192
195
  var _rowsHeightLookup$cur2;
193
196
 
@@ -197,7 +200,7 @@ const useGridRowsMeta = (apiRef, props) => {
197
200
  return lastMeasuredRowIndex.current;
198
201
  }, []);
199
202
  const setLastMeasuredRowIndex = React.useCallback(index => {
200
- if (hasRowWithAutoHeight.current) {
203
+ if (hasRowWithAutoHeight.current && index > lastMeasuredRowIndex.current) {
201
204
  lastMeasuredRowIndex.current = index;
202
205
  }
203
206
  }, []); // The effect is used to build the rows meta data - currentPageTotalHeight and positions.
@@ -18,7 +18,7 @@ const flatRowTreeCreationMethod = ({
18
18
  for (let i = 0; i < ids.length; i += 1) {
19
19
  const rowId = ids[i];
20
20
 
21
- if (previousTree && previousTree[rowId]) {
21
+ if (previousTree && previousTree[rowId] && previousTree[rowId].depth === 0 && previousTree[rowId].parent == null) {
22
22
  tree[rowId] = previousTree[rowId];
23
23
  } else {
24
24
  tree[rowId] = {
@@ -48,14 +48,16 @@ const useGridSelectionPreProcessors = (apiRef, props) => {
48
48
  headerName: apiRef.current.getLocaleText('checkboxSelectionHeaderName')
49
49
  });
50
50
  const shouldHaveSelectionColumn = props.checkboxSelection;
51
- const haveSelectionColumn = columnsState.lookup[selectionColumn.field] != null;
51
+ const haveSelectionColumn = columnsState.lookup[_colDef.GRID_CHECKBOX_SELECTION_FIELD] != null;
52
52
 
53
53
  if (shouldHaveSelectionColumn && !haveSelectionColumn) {
54
- columnsState.lookup[selectionColumn.field] = selectionColumn;
55
- columnsState.all = [selectionColumn.field, ...columnsState.all];
54
+ columnsState.lookup[_colDef.GRID_CHECKBOX_SELECTION_FIELD] = selectionColumn;
55
+ columnsState.all = [_colDef.GRID_CHECKBOX_SELECTION_FIELD, ...columnsState.all];
56
56
  } else if (!shouldHaveSelectionColumn && haveSelectionColumn) {
57
- delete columnsState.lookup[selectionColumn.field];
58
- columnsState.all = columnsState.all.filter(field => field !== selectionColumn.field);
57
+ delete columnsState.lookup[_colDef.GRID_CHECKBOX_SELECTION_FIELD];
58
+ columnsState.all = columnsState.all.filter(field => field !== _colDef.GRID_CHECKBOX_SELECTION_FIELD);
59
+ } else if (shouldHaveSelectionColumn && haveSelectionColumn) {
60
+ columnsState.lookup[_colDef.GRID_CHECKBOX_SELECTION_FIELD] = (0, _extends2.default)({}, selectionColumn, columnsState.lookup[_colDef.GRID_CHECKBOX_SELECTION_FIELD]);
59
61
  }
60
62
 
61
63
  return columnsState;
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
- exports.getIndexFromScroll = getIndexFromScroll;
8
+ exports.binarySearch = binarySearch;
9
9
  exports.useGridVirtualScroller = exports.getRenderableIndexes = void 0;
10
10
 
11
11
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
@@ -53,7 +53,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
53
53
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
54
54
 
55
55
  // Uses binary search to avoid looping through all possible positions
56
- function getIndexFromScroll(offset, positions, sliceStart = 0, sliceEnd = positions.length) {
56
+ function binarySearch(offset, positions, sliceStart = 0, sliceEnd = positions.length) {
57
57
  if (positions.length <= 0) {
58
58
  return -1;
59
59
  }
@@ -64,7 +64,18 @@ function getIndexFromScroll(offset, positions, sliceStart = 0, sliceEnd = positi
64
64
 
65
65
  const pivot = sliceStart + Math.floor((sliceEnd - sliceStart) / 2);
66
66
  const itemOffset = positions[pivot];
67
- return offset <= itemOffset ? getIndexFromScroll(offset, positions, sliceStart, pivot) : getIndexFromScroll(offset, positions, pivot + 1, sliceEnd);
67
+ return offset <= itemOffset ? binarySearch(offset, positions, sliceStart, pivot) : binarySearch(offset, positions, pivot + 1, sliceEnd);
68
+ }
69
+
70
+ function exponentialSearch(offset, positions, index) {
71
+ let interval = 1;
72
+
73
+ while (index < positions.length && positions[index] < offset) {
74
+ index += interval;
75
+ interval *= 2;
76
+ }
77
+
78
+ return binarySearch(offset, positions, Math.floor(index / 2), Math.min(index, positions.length));
68
79
  }
69
80
 
70
81
  const getRenderableIndexes = ({
@@ -111,6 +122,22 @@ const useGridVirtualScroller = props => {
111
122
  });
112
123
  const [containerWidth, setContainerWidth] = React.useState(null);
113
124
  const prevTotalWidth = React.useRef(columnsTotalWidth);
125
+ const getNearestIndexToRender = React.useCallback(offset => {
126
+ const lastMeasuredIndex = Math.max(0, apiRef.current.unstable_getLastMeasuredRowIndex());
127
+ const allRowsMeasured = lastMeasuredIndex === Infinity;
128
+
129
+ if (allRowsMeasured || rowsMeta.positions[lastMeasuredIndex] >= offset) {
130
+ // If all rows were measured (when no row has "auto" as height) or all rows before the offset
131
+ // were measured, then use a binary search because it's faster.
132
+ return binarySearch(offset, rowsMeta.positions);
133
+ } // Otherwise, use an exponential search.
134
+ // If rows have "auto" as height, their positions will be based on estimated heights.
135
+ // In this case, we can skip several steps until we find a position higher than the offset.
136
+ // Inspired by https://github.com/bvaughn/react-virtualized/blob/master/source/Grid/utils/CellSizeAndPositionManager.js
137
+
138
+
139
+ return exponentialSearch(offset, rowsMeta.positions, lastMeasuredIndex);
140
+ }, [apiRef, rowsMeta.positions]);
114
141
  const computeRenderContext = React.useCallback(() => {
115
142
  if (disableVirtualization) {
116
143
  return {
@@ -124,9 +151,11 @@ const useGridVirtualScroller = props => {
124
151
  const {
125
152
  top,
126
153
  left
127
- } = scrollPosition.current;
128
- const firstRowIndex = Math.min(Math.max(0, apiRef.current.unstable_getLastMeasuredRowIndex()), getIndexFromScroll(top, rowsMeta.positions));
129
- const lastRowIndex = rootProps.autoHeight ? firstRowIndex + currentPage.rows.length : getIndexFromScroll(top + rootRef.current.clientHeight, rowsMeta.positions);
154
+ } = scrollPosition.current; // Clamp the value because the search may return an index out of bounds.
155
+ // In the last index, this is not needed because Array.slice doesn't include it.
156
+
157
+ const firstRowIndex = Math.min(getNearestIndexToRender(top), rowsMeta.positions.length - 1);
158
+ const lastRowIndex = rootProps.autoHeight ? firstRowIndex + currentPage.rows.length : getNearestIndexToRender(top + rootRef.current.clientHeight);
130
159
  let hasRowWithAutoHeight = false;
131
160
  let firstColumnIndex = 0;
132
161
  let lastColumnIndex = columnPositions.length;
@@ -144,8 +173,8 @@ const useGridVirtualScroller = props => {
144
173
  }
145
174
 
146
175
  if (!hasRowWithAutoHeight) {
147
- firstColumnIndex = getIndexFromScroll(left, columnPositions);
148
- lastColumnIndex = getIndexFromScroll(left + containerWidth, columnPositions);
176
+ firstColumnIndex = binarySearch(left, columnPositions);
177
+ lastColumnIndex = binarySearch(left + containerWidth, columnPositions);
149
178
  }
150
179
 
151
180
  return {
@@ -154,7 +183,7 @@ const useGridVirtualScroller = props => {
154
183
  firstColumnIndex,
155
184
  lastColumnIndex
156
185
  };
157
- }, [disableVirtualization, rowsMeta.positions, rootProps.autoHeight, rootProps.rowBuffer, currentPage.rows, columnPositions, visibleColumns.length, apiRef, containerWidth]);
186
+ }, [disableVirtualization, getNearestIndexToRender, rowsMeta.positions.length, rootProps.autoHeight, rootProps.rowBuffer, currentPage.rows, columnPositions, visibleColumns.length, apiRef, containerWidth]);
158
187
  React.useEffect(() => {
159
188
  if (disableVirtualization) {
160
189
  renderZoneRef.current.style.transform = `translate3d(0px, 0px, 0px)`;
@@ -412,6 +441,10 @@ const useGridVirtualScroller = props => {
412
441
  rootStyle.overflowX = 'hidden';
413
442
  }
414
443
 
444
+ if (rootProps.autoHeight) {
445
+ rootStyle.overflowY = 'hidden';
446
+ }
447
+
415
448
  const getRenderContext = React.useCallback(() => {
416
449
  return prevRenderContext.current;
417
450
  }, []);
@@ -17,7 +17,7 @@ function useGridApiContext() {
17
17
  const apiRef = React.useContext(_GridApiContext.GridApiContext);
18
18
 
19
19
  if (apiRef === undefined) {
20
- throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid or DataGridPro parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
20
+ throw new Error(['MUI: Could not find the data grid context.', 'It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.', 'This can also happen if you are bundling multiple versions of the data grid.'].join('\n'));
21
21
  }
22
22
 
23
23
  return apiRef;
@@ -17,7 +17,7 @@ const useGridRootProps = () => {
17
17
  const contextValue = React.useContext(_GridRootPropsContext.GridRootPropsContext);
18
18
 
19
19
  if (!contextValue) {
20
- throw new Error('MUI: useGridRootProps should only be used inside the DataGrid/DataGridPro component.');
20
+ throw new Error('MUI: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.');
21
21
  }
22
22
 
23
23
  return contextValue;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI v5.12.1
1
+ /** @license MUI v5.13.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -116,6 +116,7 @@ const arSDGrid = {
116
116
  groupColumn: name => `تجميع حسب ${name}`,
117
117
  unGroupColumn: name => `إيقاف التجميع حسب ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'توسيع',
120
121
  collapseDetailPanel: 'طوي' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',
@@ -116,6 +116,7 @@ const bgBGGrid = {
116
116
  groupColumn: name => `Групирай по ${name}`,
117
117
  unGroupColumn: name => `Спри групиране по ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'Разгъване',
120
121
  collapseDetailPanel: 'Свиване' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',
@@ -150,6 +150,7 @@ const csCZGrid = {
150
150
  groupingColumnHeaderName: 'Skupina',
151
151
  groupColumn: name => `Zoskupit podle ${name}`,
152
152
  unGroupColumn: name => `Přestat zoskupovat podle ${name}` // Master/detail
153
+ // detailPanelToggle: 'Detail panel toggle',
153
154
  // expandDetailPanel: 'Expand',
154
155
  // collapseDetailPanel: 'Collapse',
155
156
  // Row reordering text
@@ -116,6 +116,7 @@ const daDKGrid = {
116
116
  groupColumn: name => `Gruppér efter ${name}`,
117
117
  unGroupColumn: name => `Fjern gruppéring efter ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'Udvid',
120
121
  collapseDetailPanel: 'Kollaps' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',
@@ -116,6 +116,7 @@ const deDEGrid = {
116
116
  groupColumn: name => `Gruppieren nach ${name}`,
117
117
  unGroupColumn: name => `Gruppierung nach ${name} aufheben`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'Aufklappen',
120
121
  collapseDetailPanel: 'Zuklappen',
121
122
  // Row reordering text
@@ -113,6 +113,7 @@ const elGRGrid = {
113
113
  // groupColumn: name => `Group by ${name}`,
114
114
  // unGroupColumn: name => `Stop grouping by ${name}`,
115
115
  // Master/detail
116
+ // detailPanelToggle: 'Detail panel toggle',
116
117
  // expandDetailPanel: 'Expand',
117
118
  // collapseDetailPanel: 'Collapse',
118
119
  // Row reordering text
@@ -115,6 +115,7 @@ const esESGrid = {
115
115
  // groupColumn: name => `Group by ${name}`,
116
116
  // unGroupColumn: name => `Stop grouping by ${name}`,
117
117
  // Master/detail
118
+ // detailPanelToggle: 'Detail panel toggle',
118
119
  // expandDetailPanel: 'Expand',
119
120
  // collapseDetailPanel: 'Collapse',
120
121
  // Row reordering text
@@ -116,6 +116,7 @@ const faIRGrid = {
116
116
  groupColumn: name => `گروه‌بندی براساس ${name}`,
117
117
  unGroupColumn: name => `لغو گروه‌بندی براساس ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'بازکردن پنل جزئیات',
120
121
  collapseDetailPanel: 'بستن پنل جزئیات' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',
@@ -115,6 +115,7 @@ const fiFIGrid = {
115
115
  // groupColumn: name => `Group by ${name}`,
116
116
  // unGroupColumn: name => `Stop grouping by ${name}`,
117
117
  // Master/detail
118
+ // detailPanelToggle: 'Detail panel toggle',
118
119
  // expandDetailPanel: 'Expand',
119
120
  // collapseDetailPanel: 'Collapse',
120
121
  // Row reordering text
@@ -115,6 +115,7 @@ const frFRGrid = {
115
115
  groupingColumnHeaderName: 'Groupe',
116
116
  groupColumn: name => `Grouper par ${name}`,
117
117
  unGroupColumn: name => `Arrêter de grouper par ${name}` // Master/detail
118
+ // detailPanelToggle: 'Detail panel toggle',
118
119
  // expandDetailPanel: 'Expand',
119
120
  // collapseDetailPanel: 'Collapse',
120
121
  // Row reordering text
@@ -116,6 +116,7 @@ const heILGrid = {
116
116
  groupColumn: name => `קבץ לפי ${name}`,
117
117
  unGroupColumn: name => `הפסק לקבץ לפי ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'הרחב',
120
121
  collapseDetailPanel: 'כווץ',
121
122
  // Row reordering text
@@ -116,6 +116,7 @@ const huHUGrid = {
116
116
  groupColumn: name => `Csoportosítás ${name} szerint`,
117
117
  unGroupColumn: name => `${name} szerinti csoportosítás törlése`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'Kibontás',
120
121
  collapseDetailPanel: 'Összecsukás' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',
@@ -212,6 +212,19 @@ Object.keys(_koKR).forEach(function (key) {
212
212
  });
213
213
  });
214
214
 
215
+ var _nbNO = require("./nbNO");
216
+
217
+ Object.keys(_nbNO).forEach(function (key) {
218
+ if (key === "default" || key === "__esModule") return;
219
+ if (key in exports && exports[key] === _nbNO[key]) return;
220
+ Object.defineProperty(exports, key, {
221
+ enumerable: true,
222
+ get: function () {
223
+ return _nbNO[key];
224
+ }
225
+ });
226
+ });
227
+
215
228
  var _nlNL = require("./nlNL");
216
229
 
217
230
  Object.keys(_nlNL).forEach(function (key) {
@@ -251,6 +264,19 @@ Object.keys(_ptBR).forEach(function (key) {
251
264
  });
252
265
  });
253
266
 
267
+ var _roRO = require("./roRO");
268
+
269
+ Object.keys(_roRO).forEach(function (key) {
270
+ if (key === "default" || key === "__esModule") return;
271
+ if (key in exports && exports[key] === _roRO[key]) return;
272
+ Object.defineProperty(exports, key, {
273
+ enumerable: true,
274
+ get: function () {
275
+ return _roRO[key];
276
+ }
277
+ });
278
+ });
279
+
254
280
  var _ruRU = require("./ruRU");
255
281
 
256
282
  Object.keys(_ruRU).forEach(function (key) {
@@ -277,6 +303,19 @@ Object.keys(_skSK).forEach(function (key) {
277
303
  });
278
304
  });
279
305
 
306
+ var _svSE = require("./svSE");
307
+
308
+ Object.keys(_svSE).forEach(function (key) {
309
+ if (key === "default" || key === "__esModule") return;
310
+ if (key in exports && exports[key] === _svSE[key]) return;
311
+ Object.defineProperty(exports, key, {
312
+ enumerable: true,
313
+ get: function () {
314
+ return _svSE[key];
315
+ }
316
+ });
317
+ });
318
+
280
319
  var _trTR = require("./trTR");
281
320
 
282
321
  Object.keys(_trTR).forEach(function (key) {
@@ -115,6 +115,7 @@ const itITGrid = {
115
115
  groupingColumnHeaderName: 'Gruppo',
116
116
  groupColumn: name => `Raggruppa per ${name}`,
117
117
  unGroupColumn: name => `Annulla raggruppamento per ${name}` // Master/detail
118
+ // detailPanelToggle: 'Detail panel toggle',
118
119
  // expandDetailPanel: 'Expand',
119
120
  // collapseDetailPanel: 'Collapse',
120
121
  // Row reordering text
@@ -116,6 +116,7 @@ const jaJPGrid = {
116
116
  groupColumn: name => `${name}でグループ化`,
117
117
  unGroupColumn: name => `${name}のグループを解除`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: '展開',
120
121
  collapseDetailPanel: '折りたたみ',
121
122
  // Row reordering text
@@ -115,6 +115,7 @@ const koKRGrid = {
115
115
  // groupColumn: name => `Group by ${name}`,
116
116
  // unGroupColumn: name => `Stop grouping by ${name}`,
117
117
  // Master/detail
118
+ // detailPanelToggle: 'Detail panel toggle',
118
119
  // expandDetailPanel: 'Expand',
119
120
  // collapseDetailPanel: 'Collapse',
120
121
  // Row reordering text
@@ -116,6 +116,7 @@ const nbNOGrid = {
116
116
  groupColumn: name => `Grupper på ${name}`,
117
117
  unGroupColumn: name => `Stopp å grupper på ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'Utvid',
120
121
  collapseDetailPanel: 'Kollaps',
121
122
  // Row reordering text
@@ -115,6 +115,7 @@ const nlNLGrid = {
115
115
  groupingColumnHeaderName: 'Groep',
116
116
  groupColumn: name => `Groepeer op ${name}`,
117
117
  unGroupColumn: name => `Stop groeperen op ${name}` // Master/detail
118
+ // detailPanelToggle: 'Detail panel toggle',
118
119
  // expandDetailPanel: 'Expand',
119
120
  // collapseDetailPanel: 'Collapse',
120
121
  // Row reordering text
@@ -116,6 +116,7 @@ const plPLGrid = {
116
116
  groupColumn: name => `Grupuj według ${name}`,
117
117
  unGroupColumn: name => `Rozgrupuj ${name}`,
118
118
  // Master/detail
119
+ // detailPanelToggle: 'Detail panel toggle',
119
120
  expandDetailPanel: 'Rozwiń',
120
121
  collapseDetailPanel: 'Zwiń' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',
@@ -116,6 +116,7 @@ const ptBRGrid = {
116
116
  groupColumn: name => `Agrupar por ${name}`,
117
117
  unGroupColumn: name => `Parar agrupamento por ${name}`,
118
118
  // Master/detail
119
+ detailPanelToggle: 'Painel de detalhes',
119
120
  expandDetailPanel: 'Expandir',
120
121
  collapseDetailPanel: 'Esconder' // Row reordering text
121
122
  // rowReorderingHeaderName: 'Row reordering',