@mui/x-data-grid-premium 8.0.0-alpha.0 → 8.0.0-alpha.10

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 (157) hide show
  1. package/CHANGELOG.md +2215 -119
  2. package/DataGridPremium/DataGridPremium.js +40 -40
  3. package/DataGridPremium/useDataGridPremiumComponent.d.ts +2 -2
  4. package/DataGridPremium/useDataGridPremiumComponent.js +4 -2
  5. package/DataGridPremium/useDataGridPremiumProps.js +5 -3
  6. package/README.md +3 -3
  7. package/components/GridAggregationHeader.js +6 -1
  8. package/components/GridColumnMenuAggregationItem.js +77 -49
  9. package/components/GridColumnMenuRowGroupItem.js +5 -11
  10. package/components/GridColumnMenuRowUngroupItem.js +10 -19
  11. package/components/GridDataSourceGroupingCriteriaCell.js +1 -2
  12. package/components/GridPremiumColumnMenu.d.ts +1 -1
  13. package/components/GridPremiumColumnMenu.js +5 -5
  14. package/components/index.d.ts +1 -0
  15. package/components/index.js +12 -0
  16. package/components/promptControl/GridToolbarPromptControl.d.ts +26 -0
  17. package/components/promptControl/GridToolbarPromptControl.js +220 -0
  18. package/components/promptControl/RecordButton.d.ts +16 -0
  19. package/components/promptControl/RecordButton.js +119 -0
  20. package/components/promptControl/index.d.ts +1 -0
  21. package/components/promptControl/index.js +12 -0
  22. package/esm/DataGridPremium/DataGridPremium.js +42 -42
  23. package/esm/DataGridPremium/useDataGridPremiumComponent.js +5 -3
  24. package/esm/DataGridPremium/useDataGridPremiumProps.js +6 -4
  25. package/esm/components/GridAggregationHeader.js +6 -1
  26. package/esm/components/GridColumnMenuAggregationItem.js +75 -47
  27. package/esm/components/GridColumnMenuRowGroupItem.js +6 -11
  28. package/esm/components/GridColumnMenuRowUngroupItem.js +11 -19
  29. package/esm/components/GridDataSourceGroupingCriteriaCell.js +1 -2
  30. package/esm/components/GridPremiumColumnMenu.js +5 -5
  31. package/esm/components/index.js +1 -0
  32. package/esm/components/promptControl/GridToolbarPromptControl.js +213 -0
  33. package/esm/components/promptControl/RecordButton.js +111 -0
  34. package/esm/components/promptControl/index.js +1 -0
  35. package/esm/hooks/features/aggregation/createAggregationLookup.js +52 -55
  36. package/esm/hooks/features/aggregation/gridAggregationUtils.js +17 -13
  37. package/esm/hooks/features/aggregation/index.js +0 -1
  38. package/esm/hooks/features/aggregation/useGridAggregation.js +22 -10
  39. package/esm/hooks/features/aggregation/useGridAggregationPreProcessors.js +8 -14
  40. package/esm/hooks/features/cellSelection/useGridCellSelection.js +5 -6
  41. package/esm/hooks/features/clipboard/useGridClipboardImport.js +1 -1
  42. package/esm/hooks/features/dataSource/cache.js +3 -0
  43. package/esm/hooks/features/dataSource/models.js +1 -0
  44. package/esm/hooks/features/dataSource/useGridDataSourcePremium.js +53 -0
  45. package/esm/hooks/features/index.js +2 -1
  46. package/esm/hooks/features/promptControl/api.js +22 -0
  47. package/esm/hooks/features/promptControl/index.js +1 -0
  48. package/esm/hooks/features/promptControl/types.js +1 -0
  49. package/esm/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
  50. package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +2 -2
  51. package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
  52. package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +9 -4
  53. package/esm/hooks/utils/useGridAriaAttributes.js +1 -3
  54. package/esm/hooks/utils/useKeepGroupedColumnsHidden.js +2 -2
  55. package/esm/material/icons.js +7 -1
  56. package/esm/material/index.js +4 -2
  57. package/esm/utils/releaseInfo.js +1 -1
  58. package/hooks/features/aggregation/createAggregationLookup.d.ts +7 -6
  59. package/hooks/features/aggregation/createAggregationLookup.js +52 -55
  60. package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +18 -5
  61. package/hooks/features/aggregation/gridAggregationSelectors.d.ts +2 -2
  62. package/hooks/features/aggregation/gridAggregationUtils.d.ts +12 -13
  63. package/hooks/features/aggregation/gridAggregationUtils.js +17 -13
  64. package/hooks/features/aggregation/index.d.ts +1 -1
  65. package/hooks/features/aggregation/index.js +0 -12
  66. package/hooks/features/aggregation/useGridAggregation.d.ts +2 -2
  67. package/hooks/features/aggregation/useGridAggregation.js +22 -10
  68. package/hooks/features/aggregation/useGridAggregationPreProcessors.d.ts +2 -2
  69. package/hooks/features/aggregation/useGridAggregationPreProcessors.js +8 -14
  70. package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +4 -2
  71. package/hooks/features/cellSelection/gridCellSelectionInterfaces.d.ts +3 -3
  72. package/hooks/features/cellSelection/useGridCellSelection.d.ts +2 -2
  73. package/hooks/features/cellSelection/useGridCellSelection.js +4 -5
  74. package/hooks/features/clipboard/useGridClipboardImport.d.ts +2 -2
  75. package/hooks/features/clipboard/useGridClipboardImport.js +1 -1
  76. package/hooks/features/dataSource/cache.d.ts +2 -0
  77. package/hooks/features/dataSource/cache.js +9 -0
  78. package/hooks/features/dataSource/models.d.ts +47 -0
  79. package/hooks/features/dataSource/models.js +5 -0
  80. package/hooks/features/dataSource/useGridDataSourcePremium.d.ts +4 -0
  81. package/hooks/features/dataSource/useGridDataSourcePremium.js +62 -0
  82. package/hooks/features/export/serializer/excelSerializer.d.ts +3 -2
  83. package/hooks/features/export/useGridExcelExport.d.ts +2 -2
  84. package/hooks/features/index.d.ts +1 -0
  85. package/hooks/features/index.js +11 -0
  86. package/hooks/features/promptControl/api.d.ts +2 -0
  87. package/hooks/features/promptControl/api.js +28 -0
  88. package/hooks/features/promptControl/index.d.ts +2 -0
  89. package/hooks/features/promptControl/index.js +12 -0
  90. package/hooks/features/promptControl/types.d.ts +25 -0
  91. package/hooks/features/promptControl/types.js +5 -0
  92. package/hooks/features/rowGrouping/createGroupingColDef.d.ts +2 -2
  93. package/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
  94. package/hooks/features/rowGrouping/gridRowGroupingSelector.d.ts +2 -2
  95. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +4 -4
  96. package/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -1
  97. package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.d.ts +2 -2
  98. package/hooks/features/rowGrouping/useGridRowGrouping.d.ts +2 -2
  99. package/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  100. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.d.ts +2 -2
  101. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +9 -4
  102. package/hooks/utils/useGridApiContext.d.ts +1 -1
  103. package/hooks/utils/useGridApiRef.d.ts +3 -1
  104. package/hooks/utils/useGridAriaAttributes.js +1 -3
  105. package/hooks/utils/useGridPrivateApiContext.d.ts +1 -1
  106. package/hooks/utils/useKeepGroupedColumnsHidden.d.ts +2 -2
  107. package/hooks/utils/useKeepGroupedColumnsHidden.js +2 -2
  108. package/index.d.ts +2 -0
  109. package/index.js +1 -1
  110. package/material/icons.d.ts +6 -0
  111. package/material/icons.js +8 -2
  112. package/material/index.d.ts +2 -0
  113. package/material/index.js +3 -1
  114. package/models/dataGridPremiumProps.d.ts +8 -12
  115. package/models/gridApiPremium.d.ts +5 -3
  116. package/models/gridGroupingValueGetter.d.ts +2 -1
  117. package/models/gridPastedValueParser.d.ts +2 -1
  118. package/models/gridPremiumIconSlotsComponent.d.ts +10 -0
  119. package/modern/DataGridPremium/DataGridPremium.js +42 -42
  120. package/modern/DataGridPremium/useDataGridPremiumComponent.js +5 -3
  121. package/modern/DataGridPremium/useDataGridPremiumProps.js +6 -4
  122. package/modern/components/GridAggregationHeader.js +6 -1
  123. package/modern/components/GridColumnMenuAggregationItem.js +75 -47
  124. package/modern/components/GridColumnMenuRowGroupItem.js +6 -11
  125. package/modern/components/GridColumnMenuRowUngroupItem.js +11 -19
  126. package/modern/components/GridDataSourceGroupingCriteriaCell.js +1 -2
  127. package/modern/components/GridPremiumColumnMenu.js +5 -5
  128. package/modern/components/index.js +1 -0
  129. package/modern/components/promptControl/GridToolbarPromptControl.js +213 -0
  130. package/modern/components/promptControl/RecordButton.js +111 -0
  131. package/modern/components/promptControl/index.js +1 -0
  132. package/modern/hooks/features/aggregation/createAggregationLookup.js +52 -55
  133. package/modern/hooks/features/aggregation/gridAggregationUtils.js +17 -13
  134. package/modern/hooks/features/aggregation/index.js +0 -1
  135. package/modern/hooks/features/aggregation/useGridAggregation.js +22 -10
  136. package/modern/hooks/features/aggregation/useGridAggregationPreProcessors.js +8 -14
  137. package/modern/hooks/features/cellSelection/useGridCellSelection.js +5 -6
  138. package/modern/hooks/features/clipboard/useGridClipboardImport.js +1 -1
  139. package/modern/hooks/features/dataSource/cache.js +3 -0
  140. package/modern/hooks/features/dataSource/models.js +1 -0
  141. package/modern/hooks/features/dataSource/useGridDataSourcePremium.js +53 -0
  142. package/modern/hooks/features/index.js +2 -1
  143. package/modern/hooks/features/promptControl/api.js +22 -0
  144. package/modern/hooks/features/promptControl/index.js +1 -0
  145. package/modern/hooks/features/promptControl/types.js +1 -0
  146. package/modern/hooks/features/rowGrouping/createGroupingColDef.js +5 -1
  147. package/modern/hooks/features/rowGrouping/gridRowGroupingUtils.js +2 -2
  148. package/modern/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
  149. package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +9 -4
  150. package/modern/hooks/utils/useGridAriaAttributes.js +1 -3
  151. package/modern/hooks/utils/useKeepGroupedColumnsHidden.js +2 -2
  152. package/modern/index.js +1 -1
  153. package/modern/material/icons.js +7 -1
  154. package/modern/material/index.js +4 -2
  155. package/modern/utils/releaseInfo.js +1 -1
  156. package/package.json +8 -8
  157. package/utils/releaseInfo.js +1 -1
@@ -1,9 +1,11 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- import { GridWorkspacesIcon, GridGroupWorkIcon, GridFunctionsIcon } from "./icons.js";
2
+ import { GridWorkspacesIcon, GridGroupWorkIcon, GridFunctionsIcon, GridSendPromptIcon, GridRecordPromptIcon } from "./icons.js";
3
3
  const iconsSlots = {
4
4
  columnMenuUngroupIcon: GridWorkspacesIcon,
5
5
  columnMenuGroupIcon: GridGroupWorkIcon,
6
- columnMenuAggregationIcon: GridFunctionsIcon
6
+ columnMenuAggregationIcon: GridFunctionsIcon,
7
+ toolbarPromptSendIcon: GridSendPromptIcon,
8
+ toolbarPromptRecordIcon: GridRecordPromptIcon
7
9
  };
8
10
  const materialSlots = _extends({}, iconsSlots);
9
11
  export default materialSlots;
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTczMTUzODgwMDAwMA==";
3
+ const releaseInfo = "MTczODI5OTYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid-premium",
3
- "version": "8.0.0-alpha.0",
3
+ "version": "8.0.0-alpha.10",
4
4
  "description": "The Premium plan edition of the Data Grid Components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -33,25 +33,25 @@
33
33
  "directory": "packages/x-data-grid-premium"
34
34
  },
35
35
  "dependencies": {
36
- "@babel/runtime": "^7.26.0",
36
+ "@babel/runtime": "^7.26.7",
37
37
  "@mui/utils": "^5.16.6 || ^6.0.0",
38
38
  "@types/format-util": "^1.0.4",
39
39
  "clsx": "^2.1.1",
40
40
  "exceljs": "^4.4.0",
41
41
  "prop-types": "^15.8.1",
42
42
  "reselect": "^5.1.1",
43
- "@mui/x-data-grid": "8.0.0-alpha.0",
44
- "@mui/x-data-grid-pro": "8.0.0-alpha.0",
45
- "@mui/x-internals": "8.0.0-alpha.0",
46
- "@mui/x-license": "8.0.0-alpha.0"
43
+ "@mui/x-data-grid": "8.0.0-alpha.10",
44
+ "@mui/x-data-grid-pro": "8.0.0-alpha.10",
45
+ "@mui/x-license": "8.0.0-alpha.10",
46
+ "@mui/x-internals": "8.0.0-alpha.10"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@emotion/react": "^11.9.0",
50
50
  "@emotion/styled": "^11.8.1",
51
51
  "@mui/material": "^5.15.14 || ^6.0.0",
52
52
  "@mui/system": "^5.15.14 || ^6.0.0",
53
- "react": "^17.0.0 || ^18.0.0",
54
- "react-dom": "^17.0.0 || ^18.0.0"
53
+ "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
54
+ "react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "@emotion/react": {
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getReleaseInfo = void 0;
7
7
  var _utils = require("@mui/utils");
8
8
  const getReleaseInfo = () => {
9
- const releaseInfo = "MTczMTUzODgwMDAwMA==";
9
+ const releaseInfo = "MTczODI5OTYwMDAwMA==";
10
10
  if (process.env.NODE_ENV !== 'production') {
11
11
  // A simple hack to set the value in the test environment (has no build step).
12
12
  // eslint-disable-next-line no-useless-concat