@mui/x-data-grid-premium 8.9.1 → 8.10.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 (96) hide show
  1. package/CHANGELOG.md +217 -8
  2. package/DataGridPremium/DataGridPremium.js +27 -10
  3. package/DataGridPremium/useDataGridPremiumComponent.js +5 -0
  4. package/components/GridColumnMenuPivotItem.js +4 -3
  5. package/components/GridDataSourceGroupingCriteriaCell.js +3 -1
  6. package/components/pivotPanel/GridPivotPanelHeader.js +1 -1
  7. package/components/pivotPanel/PivotPanelTrigger.js +6 -1
  8. package/components/sidebar/Sidebar.d.ts +1 -1
  9. package/components/sidebar/Sidebar.js +20 -4
  10. package/esm/DataGridPremium/DataGridPremium.js +29 -12
  11. package/esm/DataGridPremium/useDataGridPremiumComponent.js +6 -1
  12. package/esm/components/GridColumnMenuPivotItem.js +3 -2
  13. package/esm/components/GridDataSourceGroupingCriteriaCell.js +3 -1
  14. package/esm/components/pivotPanel/GridPivotPanelHeader.js +1 -1
  15. package/esm/components/pivotPanel/PivotPanelTrigger.js +6 -1
  16. package/esm/components/sidebar/Sidebar.d.ts +1 -1
  17. package/esm/components/sidebar/Sidebar.js +21 -5
  18. package/esm/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -1
  19. package/esm/hooks/features/aiAssistant/api.d.ts +3 -3
  20. package/esm/hooks/features/aiAssistant/api.js +8 -4
  21. package/esm/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +11 -0
  22. package/esm/hooks/features/export/serializer/excelSerializer.js +1 -6
  23. package/esm/hooks/features/index.d.ts +2 -1
  24. package/esm/hooks/features/index.js +2 -1
  25. package/esm/hooks/features/pivoting/gridPivotingInterfaces.d.ts +5 -0
  26. package/esm/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -1
  27. package/esm/hooks/features/pivoting/gridPivotingSelectors.js +3 -1
  28. package/esm/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
  29. package/esm/hooks/features/pivoting/useGridPivoting.js +28 -9
  30. package/esm/hooks/features/pivoting/utils.js +7 -5
  31. package/esm/hooks/features/rowGrouping/createGroupingColDef.d.ts +1 -2
  32. package/esm/hooks/features/rowGrouping/createGroupingColDef.js +10 -3
  33. package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -5
  34. package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +1 -6
  35. package/esm/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +2 -2
  36. package/esm/hooks/features/rowGrouping/useGridRowGrouping.js +2 -2
  37. package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +2 -2
  38. package/esm/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
  39. package/esm/hooks/features/rows/useGridRowAriaAttributes.js +2 -2
  40. package/esm/hooks/features/sidebar/gridSidebarInterfaces.d.ts +16 -0
  41. package/esm/hooks/features/sidebar/gridSidebarInterfaces.js +4 -0
  42. package/esm/hooks/features/sidebar/gridSidebarSelector.d.ts +12 -0
  43. package/esm/hooks/features/sidebar/gridSidebarSelector.js +12 -0
  44. package/esm/hooks/features/sidebar/gridSidebarState.d.ts +8 -0
  45. package/esm/hooks/features/sidebar/gridSidebarState.js +1 -0
  46. package/esm/hooks/features/sidebar/index.d.ts +3 -0
  47. package/esm/hooks/features/sidebar/index.js +3 -0
  48. package/esm/hooks/features/sidebar/useGridSidebar.d.ts +6 -0
  49. package/esm/hooks/features/sidebar/useGridSidebar.js +72 -0
  50. package/esm/hooks/utils/useGridAriaAttributes.d.ts +1 -1
  51. package/esm/hooks/utils/useGridAriaAttributes.js +2 -2
  52. package/esm/index.js +1 -1
  53. package/esm/models/dataGridPremiumProps.d.ts +16 -0
  54. package/esm/models/gridApiPremium.d.ts +4 -2
  55. package/esm/models/gridStatePremium.d.ts +3 -0
  56. package/esm/typeOverloads/modules.d.ts +28 -1
  57. package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -1
  58. package/hooks/features/aiAssistant/api.d.ts +3 -3
  59. package/hooks/features/aiAssistant/api.js +8 -4
  60. package/hooks/features/aiAssistant/gridAiAssistantInterfaces.d.ts +11 -0
  61. package/hooks/features/export/serializer/excelSerializer.js +1 -6
  62. package/hooks/features/index.d.ts +2 -1
  63. package/hooks/features/index.js +11 -0
  64. package/hooks/features/pivoting/gridPivotingInterfaces.d.ts +5 -0
  65. package/hooks/features/pivoting/gridPivotingSelectors.d.ts +4 -1
  66. package/hooks/features/pivoting/gridPivotingSelectors.js +3 -8
  67. package/hooks/features/pivoting/useGridPivoting.d.ts +1 -1
  68. package/hooks/features/pivoting/useGridPivoting.js +28 -9
  69. package/hooks/features/pivoting/utils.js +7 -5
  70. package/hooks/features/rowGrouping/createGroupingColDef.d.ts +1 -2
  71. package/hooks/features/rowGrouping/createGroupingColDef.js +13 -6
  72. package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -5
  73. package/hooks/features/rowGrouping/gridRowGroupingUtils.js +3 -8
  74. package/hooks/features/rowGrouping/useGridDataSourceRowGroupingPreProcessors.js +6 -6
  75. package/hooks/features/rowGrouping/useGridRowGrouping.js +1 -1
  76. package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +7 -7
  77. package/hooks/features/rows/useGridRowAriaAttributes.d.ts +1 -1
  78. package/hooks/features/rows/useGridRowAriaAttributes.js +4 -4
  79. package/hooks/features/sidebar/gridSidebarInterfaces.d.ts +16 -0
  80. package/hooks/features/sidebar/gridSidebarInterfaces.js +10 -0
  81. package/hooks/features/sidebar/gridSidebarSelector.d.ts +12 -0
  82. package/hooks/features/sidebar/gridSidebarSelector.js +18 -0
  83. package/hooks/features/sidebar/gridSidebarState.d.ts +8 -0
  84. package/hooks/features/sidebar/gridSidebarState.js +5 -0
  85. package/hooks/features/sidebar/index.d.ts +3 -0
  86. package/hooks/features/sidebar/index.js +38 -0
  87. package/hooks/features/sidebar/useGridSidebar.d.ts +6 -0
  88. package/hooks/features/sidebar/useGridSidebar.js +82 -0
  89. package/hooks/utils/useGridAriaAttributes.d.ts +1 -1
  90. package/hooks/utils/useGridAriaAttributes.js +4 -4
  91. package/index.js +1 -1
  92. package/models/dataGridPremiumProps.d.ts +16 -0
  93. package/models/gridApiPremium.d.ts +4 -2
  94. package/models/gridStatePremium.d.ts +3 -0
  95. package/package.json +7 -9
  96. package/typeOverloads/modules.d.ts +28 -1
@@ -1,11 +1,12 @@
1
1
  import { GridExportDisplayOptions, GridValidRowModel } from '@mui/x-data-grid-pro';
2
- import type { GridControlledStateEventLookupPro, GridApiCachesPro, GridEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
2
+ import type { GridPipeProcessingLookupPro, GridControlledStateEventLookupPro, GridApiCachesPro, GridEventLookupPro } from '@mui/x-data-grid-pro/typeOverloads';
3
3
  import type { GridGroupingValueGetter, GridPastedValueParser } from "../models/index.js";
4
4
  import type { GridRowGroupingModel, GridAggregationModel, GridAggregationCellMeta, GridAggregationHeaderMeta, GridCellSelectionModel, Conversation } from "../hooks/index.js";
5
5
  import { GridRowGroupingInternalCache } from "../hooks/features/rowGrouping/gridRowGroupingInterfaces.js";
6
6
  import { GridAggregationInternalCache } from "../hooks/features/aggregation/gridAggregationInterfaces.js";
7
7
  import type { GridExcelExportOptions } from "../hooks/features/export/gridExcelExportInterface.js";
8
8
  import type { GridPivotingInternalCache, GridPivotModel } from "../hooks/features/pivoting/gridPivotingInterfaces.js";
9
+ import { GridSidebarValue } from "../hooks/features/sidebar/gridSidebarInterfaces.js";
9
10
  export interface GridControlledStateEventLookupPremium {
10
11
  /**
11
12
  * Fired when the aggregation model changes.
@@ -40,6 +41,9 @@ export interface GridControlledStateEventLookupPremium {
40
41
  pivotModeChange: {
41
42
  params: boolean;
42
43
  };
44
+ /**
45
+ * @deprecated Use the `sidebarOpen` and `sidebarClose` events instead.
46
+ */
43
47
  pivotPanelOpenChange: {
44
48
  params: boolean;
45
49
  };
@@ -69,6 +73,22 @@ interface GridEventLookupPremium extends GridEventLookupPro {
69
73
  * Fired when the clipboard paste operation ends.
70
74
  */
71
75
  clipboardPasteEnd: {};
76
+ /**
77
+ * Fired when the sidebar is opened.
78
+ */
79
+ sidebarOpen: {
80
+ params: {
81
+ value: GridSidebarValue;
82
+ };
83
+ };
84
+ /**
85
+ * Fired when the sidebar is closed.
86
+ */
87
+ sidebarClose: {
88
+ params: {
89
+ value: GridSidebarValue;
90
+ };
91
+ };
72
92
  }
73
93
  export interface GridColDefPremium<R extends GridValidRowModel = any, V = any, F = V> {
74
94
  /**
@@ -109,8 +129,15 @@ export interface GridApiCachesPremium extends GridApiCachesPro {
109
129
  rowGrouping: GridRowGroupingInternalCache;
110
130
  aggregation: GridAggregationInternalCache;
111
131
  }
132
+ export interface GridPipeProcessingLookupPremium {
133
+ sidebar: {
134
+ value: React.ReactNode;
135
+ context: GridSidebarValue;
136
+ };
137
+ }
112
138
  declare module '@mui/x-data-grid-pro' {
113
139
  interface GridEventLookup extends GridEventLookupPremium {}
140
+ interface GridPipeProcessingLookup extends GridPipeProcessingLookupPro, GridPipeProcessingLookupPremium {}
114
141
  interface GridControlledStateEventLookup extends GridControlledStateEventLookupPro, GridControlledStateEventLookupPremium {}
115
142
  interface GridRenderCellParams<R, V, F> extends GridRenderCellParamsPremium<R, V, F> {}
116
143
  interface GridColumnHeaderParams<R, V, F> extends GridColumnHeaderParamsPremium<R, V, F> {}