@mui/x-data-grid 8.14.1 → 8.16.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 (130) hide show
  1. package/CHANGELOG.md +207 -0
  2. package/DataGrid/DataGrid.js +2 -0
  3. package/DataGrid/useDataGridComponent.js +1 -1
  4. package/components/GridScrollShadows.js +23 -3
  5. package/constants/gridClasses.d.ts +12 -0
  6. package/constants/gridClasses.js +1 -1
  7. package/constants/localeTextConstants.js +2 -1
  8. package/esm/DataGrid/DataGrid.js +2 -0
  9. package/esm/DataGrid/useDataGridComponent.js +1 -1
  10. package/esm/components/GridScrollShadows.js +22 -3
  11. package/esm/constants/gridClasses.d.ts +12 -0
  12. package/esm/constants/gridClasses.js +1 -1
  13. package/esm/constants/localeTextConstants.js +2 -1
  14. package/esm/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +6 -4
  15. package/esm/hooks/features/dataSource/models.d.ts +28 -28
  16. package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  17. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +27 -14
  18. package/esm/hooks/features/dataSource/utils.d.ts +2 -1
  19. package/esm/hooks/features/dataSource/utils.js +2 -1
  20. package/esm/hooks/features/editing/useGridCellEditable.d.ts +5 -0
  21. package/esm/hooks/features/editing/useGridCellEditable.js +9 -0
  22. package/esm/hooks/features/editing/useGridEditing.d.ts +2 -1
  23. package/esm/hooks/features/editing/useGridEditing.js +4 -4
  24. package/esm/hooks/features/focus/useGridFocus.js +4 -2
  25. package/esm/hooks/features/rowSelection/useGridRowSelection.js +3 -1
  26. package/esm/index.js +1 -1
  27. package/esm/internals/index.d.ts +3 -1
  28. package/esm/internals/index.js +1 -0
  29. package/esm/locales/arSD.js +1 -0
  30. package/esm/locales/beBY.js +1 -0
  31. package/esm/locales/bgBG.js +1 -0
  32. package/esm/locales/bnBD.js +1 -0
  33. package/esm/locales/csCZ.js +1 -0
  34. package/esm/locales/daDK.js +1 -0
  35. package/esm/locales/deDE.js +1 -0
  36. package/esm/locales/elGR.js +1 -0
  37. package/esm/locales/esES.js +109 -119
  38. package/esm/locales/faIR.js +1 -0
  39. package/esm/locales/fiFI.js +1 -0
  40. package/esm/locales/frFR.js +1 -0
  41. package/esm/locales/heIL.js +1 -0
  42. package/esm/locales/hrHR.js +1 -0
  43. package/esm/locales/huHU.js +1 -0
  44. package/esm/locales/hyAM.js +1 -0
  45. package/esm/locales/idID.js +1 -0
  46. package/esm/locales/isIS.js +1 -0
  47. package/esm/locales/itIT.js +1 -0
  48. package/esm/locales/jaJP.js +1 -0
  49. package/esm/locales/koKR.js +1 -0
  50. package/esm/locales/nbNO.js +1 -0
  51. package/esm/locales/nlNL.js +1 -0
  52. package/esm/locales/nnNO.js +1 -0
  53. package/esm/locales/plPL.js +1 -0
  54. package/esm/locales/ptBR.js +1 -0
  55. package/esm/locales/ptPT.js +1 -0
  56. package/esm/locales/roRO.js +1 -0
  57. package/esm/locales/ruRU.js +1 -0
  58. package/esm/locales/skSK.js +1 -0
  59. package/esm/locales/svSE.js +1 -0
  60. package/esm/locales/trTR.js +1 -0
  61. package/esm/locales/ukUA.js +1 -0
  62. package/esm/locales/urPK.js +1 -0
  63. package/esm/locales/viVN.js +1 -0
  64. package/esm/locales/zhCN.js +1 -0
  65. package/esm/locales/zhHK.js +1 -0
  66. package/esm/locales/zhTW.js +1 -0
  67. package/esm/models/api/gridLocaleTextApi.d.ts +1 -0
  68. package/esm/models/configuration/gridCellEditableConfiguration.d.ts +19 -0
  69. package/esm/models/configuration/gridCellEditableConfiguration.js +1 -0
  70. package/esm/models/configuration/gridConfiguration.d.ts +2 -1
  71. package/esm/models/gridDataSource.d.ts +13 -0
  72. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +6 -4
  73. package/hooks/features/dataSource/models.d.ts +28 -28
  74. package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  75. package/hooks/features/dataSource/useGridDataSourceBase.js +27 -14
  76. package/hooks/features/dataSource/utils.d.ts +2 -1
  77. package/hooks/features/dataSource/utils.js +2 -1
  78. package/hooks/features/editing/useGridCellEditable.d.ts +5 -0
  79. package/hooks/features/editing/useGridCellEditable.js +15 -0
  80. package/hooks/features/editing/useGridEditing.d.ts +2 -1
  81. package/hooks/features/editing/useGridEditing.js +4 -4
  82. package/hooks/features/focus/useGridFocus.js +4 -2
  83. package/hooks/features/rowSelection/useGridRowSelection.js +3 -1
  84. package/index.js +1 -1
  85. package/internals/index.d.ts +3 -1
  86. package/internals/index.js +8 -0
  87. package/locales/arSD.js +1 -0
  88. package/locales/beBY.js +1 -0
  89. package/locales/bgBG.js +1 -0
  90. package/locales/bnBD.js +1 -0
  91. package/locales/csCZ.js +1 -0
  92. package/locales/daDK.js +1 -0
  93. package/locales/deDE.js +1 -0
  94. package/locales/elGR.js +1 -0
  95. package/locales/esES.js +109 -119
  96. package/locales/faIR.js +1 -0
  97. package/locales/fiFI.js +1 -0
  98. package/locales/frFR.js +1 -0
  99. package/locales/heIL.js +1 -0
  100. package/locales/hrHR.js +1 -0
  101. package/locales/huHU.js +1 -0
  102. package/locales/hyAM.js +1 -0
  103. package/locales/idID.js +1 -0
  104. package/locales/isIS.js +1 -0
  105. package/locales/itIT.js +1 -0
  106. package/locales/jaJP.js +1 -0
  107. package/locales/koKR.js +1 -0
  108. package/locales/nbNO.js +1 -0
  109. package/locales/nlNL.js +1 -0
  110. package/locales/nnNO.js +1 -0
  111. package/locales/plPL.js +1 -0
  112. package/locales/ptBR.js +1 -0
  113. package/locales/ptPT.js +1 -0
  114. package/locales/roRO.js +1 -0
  115. package/locales/ruRU.js +1 -0
  116. package/locales/skSK.js +1 -0
  117. package/locales/svSE.js +1 -0
  118. package/locales/trTR.js +1 -0
  119. package/locales/ukUA.js +1 -0
  120. package/locales/urPK.js +1 -0
  121. package/locales/viVN.js +1 -0
  122. package/locales/zhCN.js +1 -0
  123. package/locales/zhHK.js +1 -0
  124. package/locales/zhTW.js +1 -0
  125. package/models/api/gridLocaleTextApi.d.ts +1 -0
  126. package/models/configuration/gridCellEditableConfiguration.d.ts +19 -0
  127. package/models/configuration/gridCellEditableConfiguration.js +5 -0
  128. package/models/configuration/gridConfiguration.d.ts +2 -1
  129. package/models/gridDataSource.d.ts +13 -0
  130. package/package.json +3 -3
@@ -15,6 +15,19 @@ export interface GridGetRowsParams {
15
15
  */
16
16
  end: number;
17
17
  }
18
+ export interface GridGetRowsOptions {
19
+ /**
20
+ * If `true`, bypasses the cache and forces a refetch of the rows from the server.
21
+ * The response will be used to refresh the cache.
22
+ */
23
+ skipCache?: boolean;
24
+ /**
25
+ * By default, the grid tries to keep the children expanded and attached to the parent with the same ID after the data is re-fetched.
26
+ * If `keepChildrenExpanded` is `false`, the children of the parent with the `parentId` (all children for the root level data fetch) will be collapsed and removed from the tree.
27
+ * @default true
28
+ */
29
+ keepChildrenExpanded?: boolean;
30
+ }
18
31
  export interface GridUpdateRowParams {
19
32
  rowId: GridRowId;
20
33
  updatedRow: GridRowModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "8.14.1",
3
+ "version": "8.16.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Community plan edition of the MUI X Data Grid components.",
6
6
  "license": "MIT",
@@ -42,8 +42,8 @@
42
42
  "clsx": "^2.1.1",
43
43
  "prop-types": "^15.8.1",
44
44
  "use-sync-external-store": "^1.6.0",
45
- "@mui/x-internals": "8.14.0",
46
- "@mui/x-virtualizer": "0.2.4"
45
+ "@mui/x-internals": "8.16.0",
46
+ "@mui/x-virtualizer": "0.2.6"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",