@mui/x-data-grid-premium 8.11.3 → 8.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.
- package/CHANGELOG.md +151 -6
- package/DataGridPremium/DataGridPremium.js +29 -1
- package/DataGridPremium/useDataGridPremiumComponent.d.ts +1 -1
- package/DataGridPremium/useDataGridPremiumComponent.js +5 -2
- package/DataGridPremium/useDataGridPremiumProps.js +2 -1
- package/components/GridPremiumColumnMenu.d.ts +4 -4
- package/components/GridPremiumColumnMenu.js +6 -6
- package/components/GridPremiumToolbar.js +11 -0
- package/components/chartsIntegration/GridChartsIntegrationContext.d.ts +2 -0
- package/components/chartsIntegration/GridChartsIntegrationContext.js +11 -0
- package/components/chartsPanel/ChartsPanelTrigger.d.ts +33 -0
- package/components/chartsPanel/ChartsPanelTrigger.js +92 -0
- package/components/chartsPanel/GridChartsPanel.d.ts +21 -0
- package/components/chartsPanel/GridChartsPanel.js +243 -0
- package/components/chartsPanel/chart/GridChartsPanelChart.d.ts +12 -0
- package/components/chartsPanel/chart/GridChartsPanelChart.js +111 -0
- package/components/chartsPanel/customize/GridChartsPanelCustomize.d.ts +8 -0
- package/components/chartsPanel/customize/GridChartsPanelCustomize.js +147 -0
- package/components/chartsPanel/data/GridChartsPanelData.d.ts +4 -0
- package/components/chartsPanel/data/GridChartsPanelData.js +23 -0
- package/components/chartsPanel/data/GridChartsPanelDataBody.d.ts +12 -0
- package/components/chartsPanel/data/GridChartsPanelDataBody.js +380 -0
- package/components/chartsPanel/data/GridChartsPanelDataField.d.ts +25 -0
- package/components/chartsPanel/data/GridChartsPanelDataField.js +334 -0
- package/components/chartsPanel/data/GridChartsPanelDataFieldMenu.d.ts +11 -0
- package/components/chartsPanel/data/GridChartsPanelDataFieldMenu.js +179 -0
- package/components/chartsPanel/data/GridChartsPanelDataHeader.d.ts +7 -0
- package/components/chartsPanel/data/GridChartsPanelDataHeader.js +24 -0
- package/components/chartsPanel/data/GridChartsPanelDataSearch.d.ts +7 -0
- package/components/chartsPanel/data/GridChartsPanelDataSearch.js +80 -0
- package/components/chartsPanel/index.d.ts +2 -0
- package/components/chartsPanel/index.js +27 -0
- package/components/collapsible/Collapsible.d.ts +3 -1
- package/components/collapsible/Collapsible.js +4 -3
- package/components/{GridColumnMenuAggregationItem.js → columnMenu/menuItems/GridColumnMenuAggregationItem.js} +4 -4
- package/components/columnMenu/menuItems/GridColumnMenuChartsItem.d.ts +3 -0
- package/components/columnMenu/menuItems/GridColumnMenuChartsItem.js +36 -0
- package/components/columnMenu/menuItems/GridColumnMenuManagePanelItem.d.ts +4 -0
- package/components/columnMenu/menuItems/GridColumnMenuManagePanelItem.js +18 -0
- package/{esm/components → components/columnMenu/menuItems}/GridColumnMenuPivotItem.d.ts +1 -1
- package/components/{GridColumnMenuPivotItem.js → columnMenu/menuItems/GridColumnMenuPivotItem.js} +7 -4
- package/components/{GridColumnMenuRowGroupItem.js → columnMenu/menuItems/GridColumnMenuRowGroupItem.js} +4 -4
- package/components/{GridColumnMenuRowUngroupItem.js → columnMenu/menuItems/GridColumnMenuRowUngroupItem.js} +3 -3
- package/components/index.d.ts +3 -2
- package/components/index.js +13 -1
- package/components/pivotPanel/GridPivotPanelField.js +14 -2
- package/components/pivotPanel/GridPivotPanelHeader.js +1 -0
- package/components/pivotPanel/GridPivotPanelSearch.js +3 -0
- package/constants/columnGroups.d.ts +1 -0
- package/constants/columnGroups.js +7 -0
- package/constants/dataGridPremiumDefaultSlotsComponents.js +1 -0
- package/context/GridChartsIntegrationContextProvider.d.ts +7 -0
- package/context/GridChartsIntegrationContextProvider.js +35 -0
- package/context/GridChartsRendererProxy.d.ts +34 -0
- package/context/GridChartsRendererProxy.js +77 -0
- package/context/index.d.ts +2 -0
- package/context/index.js +27 -0
- package/esm/DataGridPremium/DataGridPremium.js +30 -2
- package/esm/DataGridPremium/useDataGridPremiumComponent.d.ts +1 -1
- package/esm/DataGridPremium/useDataGridPremiumComponent.js +5 -2
- package/esm/DataGridPremium/useDataGridPremiumProps.js +2 -1
- package/esm/components/GridPremiumColumnMenu.d.ts +4 -4
- package/esm/components/GridPremiumColumnMenu.js +6 -6
- package/esm/components/GridPremiumToolbar.js +11 -0
- package/esm/components/chartsIntegration/GridChartsIntegrationContext.d.ts +2 -0
- package/esm/components/chartsIntegration/GridChartsIntegrationContext.js +5 -0
- package/esm/components/chartsPanel/ChartsPanelTrigger.d.ts +33 -0
- package/esm/components/chartsPanel/ChartsPanelTrigger.js +85 -0
- package/esm/components/chartsPanel/GridChartsPanel.d.ts +21 -0
- package/esm/components/chartsPanel/GridChartsPanel.js +237 -0
- package/esm/components/chartsPanel/chart/GridChartsPanelChart.d.ts +12 -0
- package/esm/components/chartsPanel/chart/GridChartsPanelChart.js +104 -0
- package/esm/components/chartsPanel/customize/GridChartsPanelCustomize.d.ts +8 -0
- package/esm/components/chartsPanel/customize/GridChartsPanelCustomize.js +139 -0
- package/esm/components/chartsPanel/data/GridChartsPanelData.d.ts +4 -0
- package/esm/components/chartsPanel/data/GridChartsPanelData.js +18 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataBody.d.ts +12 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataBody.js +374 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataField.d.ts +25 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataField.js +327 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataFieldMenu.d.ts +11 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataFieldMenu.js +173 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataHeader.d.ts +7 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataHeader.js +18 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataSearch.d.ts +7 -0
- package/esm/components/chartsPanel/data/GridChartsPanelDataSearch.js +73 -0
- package/esm/components/chartsPanel/index.d.ts +2 -0
- package/esm/components/chartsPanel/index.js +2 -0
- package/esm/components/collapsible/Collapsible.d.ts +3 -1
- package/esm/components/collapsible/Collapsible.js +4 -3
- package/esm/components/{GridColumnMenuAggregationItem.js → columnMenu/menuItems/GridColumnMenuAggregationItem.js} +4 -4
- package/esm/components/columnMenu/menuItems/GridColumnMenuChartsItem.d.ts +3 -0
- package/esm/components/columnMenu/menuItems/GridColumnMenuChartsItem.js +29 -0
- package/esm/components/columnMenu/menuItems/GridColumnMenuManagePanelItem.d.ts +4 -0
- package/esm/components/columnMenu/menuItems/GridColumnMenuManagePanelItem.js +11 -0
- package/{components → esm/components/columnMenu/menuItems}/GridColumnMenuPivotItem.d.ts +1 -1
- package/esm/components/{GridColumnMenuPivotItem.js → columnMenu/menuItems/GridColumnMenuPivotItem.js} +7 -4
- package/esm/components/{GridColumnMenuRowGroupItem.js → columnMenu/menuItems/GridColumnMenuRowGroupItem.js} +4 -4
- package/esm/components/{GridColumnMenuRowUngroupItem.js → columnMenu/menuItems/GridColumnMenuRowUngroupItem.js} +3 -3
- package/esm/components/index.d.ts +3 -2
- package/esm/components/index.js +3 -2
- package/esm/components/pivotPanel/GridPivotPanelField.js +15 -3
- package/esm/components/pivotPanel/GridPivotPanelHeader.js +1 -0
- package/esm/components/pivotPanel/GridPivotPanelSearch.js +3 -0
- package/esm/constants/columnGroups.d.ts +1 -0
- package/esm/constants/columnGroups.js +1 -0
- package/esm/constants/dataGridPremiumDefaultSlotsComponents.js +1 -0
- package/esm/context/GridChartsIntegrationContextProvider.d.ts +7 -0
- package/esm/context/GridChartsIntegrationContextProvider.js +28 -0
- package/esm/context/GridChartsRendererProxy.d.ts +34 -0
- package/esm/context/GridChartsRendererProxy.js +71 -0
- package/esm/context/index.d.ts +2 -0
- package/esm/context/index.js +2 -0
- package/esm/hooks/features/aggregation/createAggregationLookup.js +5 -3
- package/esm/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -0
- package/esm/hooks/features/aggregation/gridAggregationSelectors.d.ts +1 -0
- package/esm/hooks/features/aggregation/gridAggregationSelectors.js +3 -0
- package/esm/hooks/features/aggregation/useGridAggregation.js +13 -1
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +2 -1
- package/esm/hooks/features/aggregation/wrapColumnWithAggregation.js +1 -45
- package/esm/hooks/features/chartsIntegration/gridChartsIntegrationInterfaces.d.ts +65 -0
- package/esm/hooks/features/chartsIntegration/gridChartsIntegrationInterfaces.js +1 -0
- package/esm/hooks/features/chartsIntegration/gridChartsIntegrationSelectors.d.ts +17 -0
- package/esm/hooks/features/chartsIntegration/gridChartsIntegrationSelectors.js +24 -0
- package/esm/hooks/features/chartsIntegration/useGridChartsIntegration.d.ts +8 -0
- package/esm/hooks/features/chartsIntegration/useGridChartsIntegration.js +525 -0
- package/esm/hooks/features/chartsIntegration/utils.d.ts +5 -0
- package/esm/hooks/features/chartsIntegration/utils.js +32 -0
- package/esm/hooks/features/pivoting/useGridPivoting.js +1 -1
- package/esm/hooks/features/pivoting/utils.js +9 -7
- package/esm/hooks/features/rowGrouping/createGroupingColDef.js +3 -1
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -0
- package/esm/hooks/features/rowGrouping/gridRowGroupingUtils.js +3 -2
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +1 -0
- package/esm/hooks/features/sidebar/gridSidebarInterfaces.d.ts +1 -0
- package/esm/hooks/features/sidebar/gridSidebarInterfaces.js +1 -0
- package/esm/hooks/utils/index.d.ts +2 -1
- package/esm/hooks/utils/index.js +2 -1
- package/esm/hooks/utils/useGridChartIntegration.d.ts +2 -0
- package/esm/hooks/utils/useGridChartIntegration.js +9 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/material/icons.d.ts +4 -1
- package/esm/material/icons.js +16 -2
- package/esm/material/index.d.ts +11 -0
- package/esm/material/index.js +13 -2
- package/esm/models/dataGridPremiumProps.d.ts +22 -1
- package/esm/models/gridApiPremium.d.ts +3 -2
- package/esm/models/gridChartsIntegration.d.ts +17 -0
- package/esm/models/gridChartsIntegration.js +1 -0
- package/esm/models/gridPremiumIconSlotsComponent.d.ts +55 -0
- package/esm/models/gridPremiumSlotProps.d.ts +8 -0
- package/esm/models/gridPremiumSlotProps.js +1 -0
- package/esm/models/gridPremiumSlotsComponent.d.ts +6 -0
- package/esm/models/gridStatePremium.d.ts +5 -2
- package/esm/typeOverloads/modules.d.ts +20 -0
- package/hooks/features/aggregation/createAggregationLookup.js +5 -3
- package/hooks/features/aggregation/gridAggregationInterfaces.d.ts +1 -0
- package/hooks/features/aggregation/gridAggregationSelectors.d.ts +1 -0
- package/hooks/features/aggregation/gridAggregationSelectors.js +3 -0
- package/hooks/features/aggregation/useGridAggregation.js +12 -0
- package/hooks/features/aggregation/wrapColumnWithAggregation.d.ts +2 -1
- package/hooks/features/aggregation/wrapColumnWithAggregation.js +0 -44
- package/hooks/features/chartsIntegration/gridChartsIntegrationInterfaces.d.ts +65 -0
- package/hooks/features/chartsIntegration/gridChartsIntegrationInterfaces.js +5 -0
- package/hooks/features/chartsIntegration/gridChartsIntegrationSelectors.d.ts +17 -0
- package/hooks/features/chartsIntegration/gridChartsIntegrationSelectors.js +30 -0
- package/hooks/features/chartsIntegration/useGridChartsIntegration.d.ts +8 -0
- package/hooks/features/chartsIntegration/useGridChartsIntegration.js +534 -0
- package/hooks/features/chartsIntegration/utils.d.ts +5 -0
- package/hooks/features/chartsIntegration/utils.js +40 -0
- package/hooks/features/pivoting/useGridPivoting.js +1 -1
- package/hooks/features/pivoting/utils.js +9 -7
- package/hooks/features/rowGrouping/createGroupingColDef.js +3 -1
- package/hooks/features/rowGrouping/gridRowGroupingUtils.d.ts +1 -0
- package/hooks/features/rowGrouping/gridRowGroupingUtils.js +3 -2
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +1 -0
- package/hooks/features/sidebar/gridSidebarInterfaces.d.ts +1 -0
- package/hooks/features/sidebar/gridSidebarInterfaces.js +1 -0
- package/hooks/utils/index.d.ts +2 -1
- package/hooks/utils/index.js +11 -0
- package/hooks/utils/useGridChartIntegration.d.ts +2 -0
- package/hooks/utils/useGridChartIntegration.js +17 -0
- package/index.d.ts +1 -0
- package/index.js +13 -1
- package/material/icons.d.ts +4 -1
- package/material/icons.js +16 -2
- package/material/index.d.ts +11 -0
- package/material/index.js +12 -1
- package/models/dataGridPremiumProps.d.ts +22 -1
- package/models/gridApiPremium.d.ts +3 -2
- package/models/gridChartsIntegration.d.ts +17 -0
- package/models/gridChartsIntegration.js +5 -0
- package/models/gridPremiumIconSlotsComponent.d.ts +55 -0
- package/models/gridPremiumSlotProps.d.ts +8 -0
- package/models/gridPremiumSlotProps.js +5 -0
- package/models/gridPremiumSlotsComponent.d.ts +6 -0
- package/models/gridStatePremium.d.ts +5 -2
- package/package.json +5 -5
- package/typeOverloads/modules.d.ts +20 -0
- /package/components/{GridColumnMenuAggregationItem.d.ts → columnMenu/menuItems/GridColumnMenuAggregationItem.d.ts} +0 -0
- /package/components/{GridColumnMenuRowGroupItem.d.ts → columnMenu/menuItems/GridColumnMenuRowGroupItem.d.ts} +0 -0
- /package/components/{GridColumnMenuRowUngroupItem.d.ts → columnMenu/menuItems/GridColumnMenuRowUngroupItem.d.ts} +0 -0
- /package/esm/components/{GridColumnMenuAggregationItem.d.ts → columnMenu/menuItems/GridColumnMenuAggregationItem.d.ts} +0 -0
- /package/esm/components/{GridColumnMenuRowGroupItem.d.ts → columnMenu/menuItems/GridColumnMenuRowGroupItem.d.ts} +0 -0
- /package/esm/components/{GridColumnMenuRowUngroupItem.d.ts → columnMenu/menuItems/GridColumnMenuRowUngroupItem.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,151 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.12.0
|
|
9
|
+
|
|
10
|
+
_Sep 25, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🤝 Grid-Charts integration
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
👉 [🎥 Watch the full video](https://github.com/user-attachments/assets/28f1848e-dc85-4077-8756-a3e88afd4e54)
|
|
19
|
+
|
|
20
|
+
- ⌨️ Charts keyboard navigation
|
|
21
|
+
- ⚡️ Charts: Add new `renderer="svg-batch"` prop to Scatter charts that provides improved performance for large datasets
|
|
22
|
+
- 🐞 Bugfixes
|
|
23
|
+
- 📚 Documentation improvements
|
|
24
|
+
- 🧰 Codemod requires Node >=20.19
|
|
25
|
+
|
|
26
|
+
`@mui/x-codemod` minimum supported Node version is `20.19`.
|
|
27
|
+
This was only the case due to using the v18 `yargs` package; this now explicitly aligns with it. (#18979)
|
|
28
|
+
|
|
29
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
30
|
+
@deade1e, @sai6855, @thomas-mcdonald
|
|
31
|
+
|
|
32
|
+
The following are all team members who have contributed to this release:
|
|
33
|
+
@alexfauquette, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @michelengelen, @prakhargupta1, @rita-codes, @siriwatknp, @arminmeh, @romgrk
|
|
34
|
+
|
|
35
|
+
### Data Grid
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid@8.12.0`
|
|
38
|
+
|
|
39
|
+
- [DataGrid] Fix flex column width diff calculation while resizing (#19667) @arminmeh
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-data-grid-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-data-grid@8.12.0`.
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-data-grid-premium@8.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-data-grid-pro@8.12.0`, plus:
|
|
48
|
+
|
|
49
|
+
- [DataGridPremium] Grid-Charts integration (#18021) @arminmeh
|
|
50
|
+
- [DataGridPremium] Fix sorting and filtering of the tree group columns with aggregation (#19607) @arminmeh
|
|
51
|
+
- [DataGridPremium] Disable aggregation on the grouping column by default (#19692) @arminmeh
|
|
52
|
+
- [DataGridPremium] Do not rely on the group separation constant to retrieve the column name for the charts panel (#19677) @arminmeh
|
|
53
|
+
- [DataGridPremium] Fix stale aggregation state (#19690) @arminmeh
|
|
54
|
+
- [DataGridPremium] Fix pivot column being hidden on autosizing (#19699) @cherniavskii
|
|
55
|
+
|
|
56
|
+
### Date and Time Pickers
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-date-pickers@8.12.0`
|
|
59
|
+
|
|
60
|
+
- [pickers] Ensure reference value is not updated for invalid values (#19635) @michelengelen
|
|
61
|
+
- [pickers] Fix `slotProps.textField.slotProps.htmlInput` resolution (#19713) @LukasTy
|
|
62
|
+
- [pickers] Preserve time format when using single column layout on Time Range Picker (#19626) @sai6855
|
|
63
|
+
- [pickers] Preserve time format when using single column layout on Date Time Picker and Date Time Range Picker (#19608) @sai6855
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-date-pickers-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-date-pickers@8.12.0`.
|
|
68
|
+
|
|
69
|
+
### Charts
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-charts@8.12.0`
|
|
72
|
+
|
|
73
|
+
- [charts] Add batch renderer for scatter chart (#19075) @bernardobelchior
|
|
74
|
+
- [charts] Add renderer suffix to performance benchmarks (#19620) @bernardobelchior
|
|
75
|
+
- [charts] Document how plugins can be used (#19343) @alexfauquette
|
|
76
|
+
- [charts] Export chart plugins per series type (#19337) @alexfauquette
|
|
77
|
+
- [charts] Export plugins (#19335) @alexfauquette
|
|
78
|
+
- [charts] Fix horizontal layout and toolbar (#19655) @alexfauquette
|
|
79
|
+
- [charts] Fix performance issue with JS animations (#19606) @bernardobelchior
|
|
80
|
+
- [charts] Fix piecewise scale causing wrong colors in axis with min/max (#19610) @bernardobelchior
|
|
81
|
+
- [charts] Fix zoom discard inconsistency (#19535) @bernardobelchior
|
|
82
|
+
- [charts] Introduce keyboard navigation (#19155) @alexfauquette
|
|
83
|
+
- [charts] Refactor `getAxisExtremum` (#19627) @bernardobelchior
|
|
84
|
+
- [charts] Remove unused code path from `getAxisScale` (#19673) @bernardobelchior
|
|
85
|
+
- [charts] Make new hideLegend prop on ChartWrapper optional (#19694) @thomas-mcdonald
|
|
86
|
+
- [charts] Fix chart crash in test environment (#19711) @JCQuintas
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-charts-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
89
|
+
|
|
90
|
+
Same changes as in `@mui/x-charts@8.12.0`, plus:
|
|
91
|
+
|
|
92
|
+
- [charts-pro] Add `valueFormatter` to sankey (#19636) @JCQuintas
|
|
93
|
+
- [charts-pro] Allow `source/target` keywords in sankey link color (#19634) @JCQuintas
|
|
94
|
+
- [charts-pro] Allow exporting `SankeyChart` (#19659) @JCQuintas
|
|
95
|
+
- [charts-pro] Fix axis inversion when using axis `max` and `filterMode: 'discard'` (#19200) @bernardobelchior
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-charts-premium@8.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-charts-pro@8.12.0`, plus:
|
|
100
|
+
|
|
101
|
+
- [charts-premium] Grid-Charts integration (#18021) @arminmeh
|
|
102
|
+
|
|
103
|
+
### Tree View
|
|
104
|
+
|
|
105
|
+
#### `@mui/x-tree-view@8.12.0`
|
|
106
|
+
|
|
107
|
+
- [tree view] Allow to pass `null` to the icon slots (#19569) @flaviendelangle
|
|
108
|
+
- [tree view] Fix `apiRef.current.isItemExpanded()` method (#19619) @flaviendelangle
|
|
109
|
+
|
|
110
|
+
#### `@mui/x-tree-view-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
111
|
+
|
|
112
|
+
Same changes as in `@mui/x-tree-view@8.12.0`.
|
|
113
|
+
|
|
114
|
+
### Codemod
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-codemod@8.12.0`
|
|
117
|
+
|
|
118
|
+
- [codemod] Bump `engines.node` to `>=20.19` to align with `yargs` package (#18979) @LukasTy
|
|
119
|
+
|
|
120
|
+
### Docs
|
|
121
|
+
|
|
122
|
+
- [docs] Add missing label to Charts example (#19616) @prakhargupta1
|
|
123
|
+
- [docs] Replace axis type and axis data with a table (#19618) @prakhargupta1
|
|
124
|
+
- [docs] Add Charts example collection page (#18353) @prakhargupta1
|
|
125
|
+
- [docs] Add a Charts demo showcasing bar and scatter composition (#19605) @prakhargupta1
|
|
126
|
+
- [docs] Add composition Charts demo for legends and tooltip (#19602) @prakhargupta1
|
|
127
|
+
- [docs] Add recipe about server-side data export (#19617) @siriwatknp
|
|
128
|
+
- [docs] Clarify DataGrid layout requirements (#19413) @romgrk
|
|
129
|
+
- [docs] Fix `ExportServerSideData` demo layout shift (#19669) @siriwatknp
|
|
130
|
+
- [docs] Improve server-side `updateRow()` description (#19554) @deade1e
|
|
131
|
+
- [docs] Show how to customize drawing area background (#19682) @alexfauquette
|
|
132
|
+
- [docs] Add hook documentation pages (#19334) @Copilot
|
|
133
|
+
|
|
134
|
+
### Core
|
|
135
|
+
|
|
136
|
+
- [code-infra] Add copilot instructions specific to x repo (#19623) @JCQuintas
|
|
137
|
+
- [code-infra] Load `tsx` files in visual regression (#19595) @JCQuintas
|
|
138
|
+
- [code-infra] Remove renovate automerge (#19501) @Janpot
|
|
139
|
+
- [code-infra] Update `DEFAULT_TIMESTAMP` format to ISO 8601 (#19624) @Janpot
|
|
140
|
+
- [code-infra] Update `findLatestTaggedVersion` to filter tags based on major version (#19693) @michelengelen
|
|
141
|
+
- [code-infra] Fix changelog generation for charts premium (#19701) @JCQuintas
|
|
142
|
+
- [code-infra] Run prettier on `createReleasePR.mjs` (#19702) @bernardobelchior
|
|
143
|
+
- [code-infra] Make `x-charts-premium` releasable (#18959) @JCQuintas
|
|
144
|
+
- [docs-infra] Ensure `create-playground` script only runs if target file is absent (#19603) @michelengelen
|
|
145
|
+
- [docs-infra] Add @prakhargupta1 as a codeowner of the docs (#19679) @alexfauquette
|
|
146
|
+
|
|
147
|
+
### Miscellaneous
|
|
148
|
+
|
|
149
|
+
- [test] Reduce time for wheel zoom test (#19571) @alexfauquette
|
|
150
|
+
- Change `matchPackageNames` to `matchDepNames` for date-fns-v2 @Janpot
|
|
151
|
+
- Remove groupName for date-fns-v2 in renovate.json @Janpot
|
|
152
|
+
|
|
8
153
|
## 8.11.3
|
|
9
154
|
|
|
10
155
|
_Sep 16, 2025_
|
|
@@ -27,11 +172,11 @@ The following are all team members who have contributed to this release:
|
|
|
27
172
|
- [DataGrid] Fix numeric font size not being applied (#19552) @cherniavskii
|
|
28
173
|
- [DataGrid] Improve `operator` types to display literal values (#19529) @siriwatknp
|
|
29
174
|
|
|
30
|
-
#### `@mui/x-data-grid-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
175
|
+
#### `@mui/x-data-grid-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
176
|
|
|
32
177
|
Same changes as in `@mui/x-data-grid@8.11.3`.
|
|
33
178
|
|
|
34
|
-
#### `@mui/x-data-grid-premium@8.11.3` [](https://mui.com/r/x-premium-svg-link
|
|
179
|
+
#### `@mui/x-data-grid-premium@8.11.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
180
|
|
|
36
181
|
Same changes as in `@mui/x-data-grid-pro@8.11.3`.
|
|
37
182
|
|
|
@@ -41,7 +186,7 @@ Same changes as in `@mui/x-data-grid-pro@8.11.3`.
|
|
|
41
186
|
|
|
42
187
|
- [pickers] Refactor `slots` and `slotProps` propagation strategy (#18867) @LukasTy
|
|
43
188
|
|
|
44
|
-
#### `@mui/x-date-pickers-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
189
|
+
#### `@mui/x-date-pickers-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
45
190
|
|
|
46
191
|
Same changes as in `@mui/x-date-pickers@8.11.3`.
|
|
47
192
|
|
|
@@ -55,7 +200,7 @@ Same changes as in `@mui/x-date-pickers@8.11.3`.
|
|
|
55
200
|
- [charts] Rename `isBandScale` to `isDiscreteScale` (#19514) @bernardobelchior
|
|
56
201
|
- [charts] Fix legend position affecting toolbar's position (#19257) @sai6855
|
|
57
202
|
|
|
58
|
-
#### `@mui/x-charts-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
203
|
+
#### `@mui/x-charts-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
59
204
|
|
|
60
205
|
Same changes as in `@mui/x-charts@8.11.3`, plus:
|
|
61
206
|
|
|
@@ -69,7 +214,7 @@ Same changes as in `@mui/x-charts@8.11.3`, plus:
|
|
|
69
214
|
- [tree view] Support flat DOM structure (#19350) @flaviendelangle
|
|
70
215
|
- [tree view] Update cursor styles for disabled TreeItem (#19548) @sai6855
|
|
71
216
|
|
|
72
|
-
#### `@mui/x-tree-view-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
217
|
+
#### `@mui/x-tree-view-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
218
|
|
|
74
219
|
Same changes as in `@mui/x-tree-view@8.11.3`.
|
|
75
220
|
|
|
@@ -83,7 +228,7 @@ Internal changes.
|
|
|
83
228
|
|
|
84
229
|
- [docs] Add styling row group recipe (#19349) @siriwatknp
|
|
85
230
|
- [docs] Group demos data into the dataset folder (#19549) @alexfauquette
|
|
86
|
-
- [docs] Add `shiny` bar chart example at the top
|
|
231
|
+
- [docs] Add `shiny` bar chart example at the top (#19416) @JCQuintas
|
|
87
232
|
|
|
88
233
|
### Core
|
|
89
234
|
|
|
@@ -37,10 +37,23 @@ const configuration = {
|
|
|
37
37
|
field
|
|
38
38
|
});
|
|
39
39
|
},
|
|
40
|
+
useSortValueGetter: apiRef => (id, field) => (0, _gridAggregationSelectors.gridCellAggregationResultSelector)(apiRef, {
|
|
41
|
+
id,
|
|
42
|
+
field
|
|
43
|
+
})?.value ?? apiRef.current.getCellValue(id, field),
|
|
44
|
+
useFilterValueGetter: (apiRef, props) => (row, column) => {
|
|
45
|
+
if (props.aggregationRowsScope === 'filtered') {
|
|
46
|
+
return apiRef.current.getRowValue(row, column);
|
|
47
|
+
}
|
|
48
|
+
return (0, _gridAggregationSelectors.gridCellAggregationResultSelector)(apiRef, {
|
|
49
|
+
id: (0, _xDataGridPro.gridRowIdSelector)(apiRef, row),
|
|
50
|
+
field: column.field
|
|
51
|
+
})?.value ?? apiRef.current.getRowValue(row, column);
|
|
52
|
+
},
|
|
40
53
|
useGridRowsOverridableMethods: _useGridRowsOverridableMethods.useGridRowsOverridableMethods
|
|
41
54
|
}
|
|
42
55
|
};
|
|
43
|
-
const releaseInfo = "
|
|
56
|
+
const releaseInfo = "MTc1ODc1MTIwMDAwMA==";
|
|
44
57
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
45
58
|
packageName: "x-data-grid-premium",
|
|
46
59
|
releaseInfo: releaseInfo
|
|
@@ -80,6 +93,10 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
80
93
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
81
94
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
82
95
|
// ----------------------------------------------------------------------
|
|
96
|
+
/**
|
|
97
|
+
* The id of the active chart.
|
|
98
|
+
*/
|
|
99
|
+
activeChartId: _propTypes.default.string,
|
|
83
100
|
/**
|
|
84
101
|
* Aggregation functions available on the grid.
|
|
85
102
|
* @default GRID_AGGREGATION_FUNCTIONS when `dataSource` is not provided, `{}` when `dataSource` is provided
|
|
@@ -196,6 +213,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
196
213
|
* Set the cell selection model of the grid.
|
|
197
214
|
*/
|
|
198
215
|
cellSelectionModel: _propTypes.default.object,
|
|
216
|
+
/**
|
|
217
|
+
* If `true`, the charts integration feature is enabled.
|
|
218
|
+
* @default false
|
|
219
|
+
*/
|
|
220
|
+
chartsIntegration: _propTypes.default.bool,
|
|
199
221
|
/**
|
|
200
222
|
* If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
|
|
201
223
|
* @default false
|
|
@@ -407,6 +429,7 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
407
429
|
* For each feature, if the flag is not explicitly set to `true`, then the feature is fully disabled, and neither property nor method calls will have any effect.
|
|
408
430
|
*/
|
|
409
431
|
experimentalFeatures: _propTypes.default.shape({
|
|
432
|
+
charts: _propTypes.default.bool,
|
|
410
433
|
warnIfFocusStateIsNotSynced: _propTypes.default.bool
|
|
411
434
|
}),
|
|
412
435
|
/**
|
|
@@ -667,6 +690,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
|
|
|
667
690
|
* Nonce of the inline styles for [Content Security Policy](https://www.w3.org/TR/2016/REC-CSP2-20161215/#script-src-the-nonce-attribute).
|
|
668
691
|
*/
|
|
669
692
|
nonce: _propTypes.default.string,
|
|
693
|
+
/**
|
|
694
|
+
* Callback fired when the active chart changes.
|
|
695
|
+
* @param {string} activeChartId The new active chart id.
|
|
696
|
+
*/
|
|
697
|
+
onActiveChartIdChange: _propTypes.default.func,
|
|
670
698
|
/**
|
|
671
699
|
* Callback fired when the row grouping model changes.
|
|
672
700
|
* @param {GridAggregationModel} model The aggregated columns.
|
|
@@ -2,4 +2,4 @@ import { RefObject } from '@mui/x-internals/types';
|
|
|
2
2
|
import { type GridConfiguration } from '@mui/x-data-grid-pro/internals';
|
|
3
3
|
import { GridPrivateApiPremium } from "../models/gridApiPremium.js";
|
|
4
4
|
import { DataGridPremiumProcessedProps } from "../models/dataGridPremiumProps.js";
|
|
5
|
-
export declare const useDataGridPremiumComponent: (apiRef: RefObject<GridPrivateApiPremium>, inProps: DataGridPremiumProcessedProps, configuration: GridConfiguration<GridPrivateApiPremium>) => DataGridPremiumProcessedProps;
|
|
5
|
+
export declare const useDataGridPremiumComponent: (apiRef: RefObject<GridPrivateApiPremium>, inProps: DataGridPremiumProcessedProps, configuration: GridConfiguration<GridPrivateApiPremium, DataGridPremiumProcessedProps>) => DataGridPremiumProcessedProps;
|
|
@@ -24,6 +24,7 @@ var _useGridPivoting = require("../hooks/features/pivoting/useGridPivoting");
|
|
|
24
24
|
var _gridPivotingSelectors = require("../hooks/features/pivoting/gridPivotingSelectors");
|
|
25
25
|
var _useGridAiAssistant = require("../hooks/features/aiAssistant/useGridAiAssistant");
|
|
26
26
|
var _useGridSidebar = require("../hooks/features/sidebar/useGridSidebar");
|
|
27
|
+
var _useGridChartsIntegration = require("../hooks/features/chartsIntegration/useGridChartsIntegration");
|
|
27
28
|
// Premium-only features
|
|
28
29
|
|
|
29
30
|
const useDataGridPremiumComponent = (apiRef, inProps, configuration) => {
|
|
@@ -98,6 +99,7 @@ const useDataGridPremiumComponent = (apiRef, inProps, configuration) => {
|
|
|
98
99
|
(0, _internals.useGridInitializeState)(_internals.rowsMetaStateInitializer, apiRef, props);
|
|
99
100
|
(0, _internals.useGridInitializeState)(_internals.listViewStateInitializer, apiRef, props);
|
|
100
101
|
(0, _internals.useGridInitializeState)(_useGridAiAssistant.aiAssistantStateInitializer, apiRef, props);
|
|
102
|
+
(0, _internals.useGridInitializeState)(_useGridChartsIntegration.chartsIntegrationStateInitializer, apiRef, props);
|
|
101
103
|
(0, _internals.useGridVirtualizer)(apiRef, props);
|
|
102
104
|
(0, _useGridSidebar.useGridSidebar)(apiRef, props);
|
|
103
105
|
(0, _useGridPivoting.useGridPivoting)(apiRef, props, inProps.columns, inProps.rows);
|
|
@@ -121,8 +123,8 @@ const useDataGridPremiumComponent = (apiRef, inProps, configuration) => {
|
|
|
121
123
|
(0, _internals.useGridEditing)(apiRef, props);
|
|
122
124
|
(0, _internals.useGridFocus)(apiRef, props);
|
|
123
125
|
(0, _internals.useGridPreferencesPanel)(apiRef, props);
|
|
124
|
-
(0, _internals.useGridFilter)(apiRef, props);
|
|
125
|
-
(0, _internals.useGridSorting)(apiRef, props);
|
|
126
|
+
(0, _internals.useGridFilter)(apiRef, props, configuration);
|
|
127
|
+
(0, _internals.useGridSorting)(apiRef, props, configuration);
|
|
126
128
|
(0, _internals.useGridDensity)(apiRef, props);
|
|
127
129
|
(0, _internals.useGridColumnReorder)(apiRef, props);
|
|
128
130
|
(0, _internals.useGridColumnResize)(apiRef, props);
|
|
@@ -146,6 +148,7 @@ const useDataGridPremiumComponent = (apiRef, inProps, configuration) => {
|
|
|
146
148
|
(0, _internals.useGridVirtualization)(apiRef, props);
|
|
147
149
|
(0, _internals.useGridListView)(apiRef, props);
|
|
148
150
|
(0, _useGridAiAssistant.useGridAiAssistant)(apiRef, props);
|
|
151
|
+
(0, _useGridChartsIntegration.useGridChartsIntegration)(apiRef, props);
|
|
149
152
|
(0, _useGridPivoting.useGridPivotingExportState)(apiRef);
|
|
150
153
|
|
|
151
154
|
// Should be the last thing to run, because all pre-processors should have been registered by now.
|
|
@@ -44,7 +44,8 @@ const DATA_GRID_PREMIUM_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PREMIUM_PROPS_D
|
|
|
44
44
|
},
|
|
45
45
|
disablePivoting: false,
|
|
46
46
|
getPivotDerivedColumns: _utils.defaultGetPivotDerivedColumns,
|
|
47
|
-
aiAssistant: false
|
|
47
|
+
aiAssistant: false,
|
|
48
|
+
chartsIntegration: false
|
|
48
49
|
});
|
|
49
50
|
const defaultSlots = _dataGridPremiumDefaultSlotsComponents.DATA_GRID_PREMIUM_DEFAULT_SLOTS_COMPONENTS;
|
|
50
51
|
const useDataGridPremiumProps = inProps => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GridColumnMenuProps, GridColumnMenuItemProps } from '@mui/x-data-grid-pro';
|
|
3
|
-
import { GridColumnMenuAggregationItem } from "./GridColumnMenuAggregationItem.js";
|
|
4
|
-
import {
|
|
3
|
+
import { GridColumnMenuAggregationItem } from "./columnMenu/menuItems/GridColumnMenuAggregationItem.js";
|
|
4
|
+
import { GridColumnMenuManagePanelItem } from "./columnMenu/menuItems/GridColumnMenuManagePanelItem.js";
|
|
5
5
|
export declare function GridColumnMenuGroupingItem(props: GridColumnMenuItemProps): React.JSX.Element;
|
|
6
6
|
export declare const GRID_COLUMN_MENU_SLOTS_PREMIUM: {
|
|
7
7
|
columnMenuAggregationItem: typeof GridColumnMenuAggregationItem;
|
|
8
8
|
columnMenuGroupingItem: typeof GridColumnMenuGroupingItem;
|
|
9
|
-
|
|
9
|
+
columnMenuManagePanelItem: typeof GridColumnMenuManagePanelItem;
|
|
10
10
|
columnMenuPinningItem: typeof import("@mui/x-data-grid-pro").GridColumnMenuPinningItem;
|
|
11
11
|
columnMenuSortItem: typeof import("@mui/x-data-grid").GridColumnMenuSortItem;
|
|
12
12
|
columnMenuFilterItem: typeof import("@mui/x-data-grid").GridColumnMenuFilterItem;
|
|
@@ -19,7 +19,7 @@ export declare const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM: {
|
|
|
19
19
|
columnMenuGroupingItem: {
|
|
20
20
|
displayOrder: number;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
columnMenuManagePanelItem: {
|
|
23
23
|
displayOrder: number;
|
|
24
24
|
};
|
|
25
25
|
columnMenuPinningItem: {
|
|
@@ -12,11 +12,11 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
14
14
|
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
15
|
-
var _GridColumnMenuAggregationItem = require("./GridColumnMenuAggregationItem");
|
|
15
|
+
var _GridColumnMenuAggregationItem = require("./columnMenu/menuItems/GridColumnMenuAggregationItem");
|
|
16
16
|
var _rowGrouping = require("../hooks/features/rowGrouping");
|
|
17
|
-
var _GridColumnMenuRowGroupItem = require("./GridColumnMenuRowGroupItem");
|
|
18
|
-
var _GridColumnMenuRowUngroupItem = require("./GridColumnMenuRowUngroupItem");
|
|
19
|
-
var
|
|
17
|
+
var _GridColumnMenuRowGroupItem = require("./columnMenu/menuItems/GridColumnMenuRowGroupItem");
|
|
18
|
+
var _GridColumnMenuRowUngroupItem = require("./columnMenu/menuItems/GridColumnMenuRowUngroupItem");
|
|
19
|
+
var _GridColumnMenuManagePanelItem = require("./columnMenu/menuItems/GridColumnMenuManagePanelItem");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
21
|
function GridColumnMenuGroupingItem(props) {
|
|
22
22
|
const {
|
|
@@ -30,7 +30,7 @@ function GridColumnMenuGroupingItem(props) {
|
|
|
30
30
|
const GRID_COLUMN_MENU_SLOTS_PREMIUM = exports.GRID_COLUMN_MENU_SLOTS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOTS, {
|
|
31
31
|
columnMenuAggregationItem: _GridColumnMenuAggregationItem.GridColumnMenuAggregationItem,
|
|
32
32
|
columnMenuGroupingItem: GridColumnMenuGroupingItem,
|
|
33
|
-
|
|
33
|
+
columnMenuManagePanelItem: _GridColumnMenuManagePanelItem.GridColumnMenuManagePanelItem
|
|
34
34
|
});
|
|
35
35
|
const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = exports.GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = (0, _extends2.default)({}, _xDataGridPro.GRID_COLUMN_MENU_SLOT_PROPS, {
|
|
36
36
|
columnMenuAggregationItem: {
|
|
@@ -39,7 +39,7 @@ const GRID_COLUMN_MENU_SLOT_PROPS_PREMIUM = exports.GRID_COLUMN_MENU_SLOT_PROPS_
|
|
|
39
39
|
columnMenuGroupingItem: {
|
|
40
40
|
displayOrder: 27
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
columnMenuManagePanelItem: {
|
|
43
43
|
displayOrder: 28
|
|
44
44
|
}
|
|
45
45
|
});
|
|
@@ -17,6 +17,7 @@ var _useGridApiContext = require("../hooks/utils/useGridApiContext");
|
|
|
17
17
|
var _PivotPanelTrigger = require("./pivotPanel/PivotPanelTrigger");
|
|
18
18
|
var _utils = require("../hooks/features/pivoting/utils");
|
|
19
19
|
var _aiAssistantPanel = require("./aiAssistantPanel");
|
|
20
|
+
var _ChartsPanelTrigger = require("./chartsPanel/ChartsPanelTrigger");
|
|
20
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
22
|
const _excluded = ["excelOptions"];
|
|
22
23
|
function GridPremiumToolbar(props) {
|
|
@@ -34,6 +35,16 @@ function GridPremiumToolbar(props) {
|
|
|
34
35
|
})
|
|
35
36
|
}))
|
|
36
37
|
})
|
|
38
|
+
}), rootProps.experimentalFeatures?.charts && rootProps.chartsIntegration && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsPanelTrigger.ChartsPanelTrigger, {
|
|
39
|
+
render: triggerProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, {
|
|
40
|
+
title: apiRef.current.getLocaleText('toolbarCharts'),
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_xDataGridPro.ToolbarButton, (0, _extends2.default)({}, triggerProps, {
|
|
42
|
+
color: "default",
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.chartsIcon, {
|
|
44
|
+
fontSize: "small"
|
|
45
|
+
})
|
|
46
|
+
}))
|
|
47
|
+
})
|
|
37
48
|
}), rootProps.aiAssistant && /*#__PURE__*/(0, _jsxRuntime.jsx)(_aiAssistantPanel.AiAssistantPanelTrigger, {
|
|
38
49
|
render: triggerProps => /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, {
|
|
39
50
|
title: apiRef.current.getLocaleText('toolbarAssistant'),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.GridChartsIntegrationContext = void 0;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
const GridChartsIntegrationContext = exports.GridChartsIntegrationContext = /*#__PURE__*/React.createContext(undefined);
|
|
11
|
+
if (process.env.NODE_ENV !== "production") GridChartsIntegrationContext.displayName = "GridChartsIntegrationContext";
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { RenderProp } from '@mui/x-data-grid-pro/internals';
|
|
3
|
+
import { GridSlotProps } from '@mui/x-data-grid-pro';
|
|
4
|
+
export interface ChartsPanelState {
|
|
5
|
+
/**
|
|
6
|
+
* If `true`, the charts integration panel is open.
|
|
7
|
+
*/
|
|
8
|
+
open: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type ChartsPanelTriggerProps = Omit<GridSlotProps['baseButton'], 'className'> & {
|
|
11
|
+
/**
|
|
12
|
+
* A function to customize rendering of the component.
|
|
13
|
+
*/
|
|
14
|
+
render?: RenderProp<GridSlotProps['baseButton'], ChartsPanelState>;
|
|
15
|
+
/**
|
|
16
|
+
* A function to customize rendering of the component.
|
|
17
|
+
*/
|
|
18
|
+
className?: string | ((state: ChartsPanelState) => string);
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A button that opens and closes the charts integration panel.
|
|
22
|
+
* It renders the `baseButton` slot.
|
|
23
|
+
*
|
|
24
|
+
* Demos:
|
|
25
|
+
*
|
|
26
|
+
* - [Charts Panel](https://mui.com/x/react-data-grid/components/charts-panel/)
|
|
27
|
+
*
|
|
28
|
+
* API:
|
|
29
|
+
*
|
|
30
|
+
* - [ChartsPanelTrigger API](https://mui.com/x/api/data-grid/charts-panel-trigger/)
|
|
31
|
+
*/
|
|
32
|
+
declare const ChartsPanelTrigger: React.ForwardRefExoticComponent<ChartsPanelTriggerProps> | React.ForwardRefExoticComponent<Omit<ChartsPanelTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
export { ChartsPanelTrigger };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ChartsPanelTrigger = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
12
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
14
|
+
var _forwardRef = require("@mui/x-internals/forwardRef");
|
|
15
|
+
var _useComponentRenderer = require("@mui/x-internals/useComponentRenderer");
|
|
16
|
+
var _xDataGridPro = require("@mui/x-data-grid-pro");
|
|
17
|
+
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
18
|
+
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
19
|
+
var _gridChartsIntegrationSelectors = require("../../hooks/features/chartsIntegration/gridChartsIntegrationSelectors");
|
|
20
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
+
const _excluded = ["render", "className", "onClick", "onPointerUp"];
|
|
22
|
+
/**
|
|
23
|
+
* A button that opens and closes the charts integration panel.
|
|
24
|
+
* It renders the `baseButton` slot.
|
|
25
|
+
*
|
|
26
|
+
* Demos:
|
|
27
|
+
*
|
|
28
|
+
* - [Charts Panel](https://mui.com/x/react-data-grid/components/charts-panel/)
|
|
29
|
+
*
|
|
30
|
+
* API:
|
|
31
|
+
*
|
|
32
|
+
* - [ChartsPanelTrigger API](https://mui.com/x/api/data-grid/charts-panel-trigger/)
|
|
33
|
+
*/
|
|
34
|
+
const ChartsPanelTrigger = exports.ChartsPanelTrigger = (0, _forwardRef.forwardRef)(function ChartsPanelTrigger(props, ref) {
|
|
35
|
+
const {
|
|
36
|
+
render,
|
|
37
|
+
className,
|
|
38
|
+
onClick
|
|
39
|
+
} = props,
|
|
40
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
41
|
+
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
42
|
+
const buttonId = (0, _useId.default)();
|
|
43
|
+
const panelId = (0, _useId.default)();
|
|
44
|
+
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
45
|
+
const open = (0, _xDataGridPro.useGridSelector)(apiRef, _gridChartsIntegrationSelectors.gridChartsPanelOpenSelector);
|
|
46
|
+
const state = {
|
|
47
|
+
open
|
|
48
|
+
};
|
|
49
|
+
const resolvedClassName = typeof className === 'function' ? className(state) : className;
|
|
50
|
+
const handleClick = event => {
|
|
51
|
+
apiRef.current.setChartsPanelOpen(!open);
|
|
52
|
+
onClick?.(event);
|
|
53
|
+
};
|
|
54
|
+
const element = (0, _useComponentRenderer.useComponentRenderer)(rootProps.slots.baseButton, render, (0, _extends2.default)({}, rootProps.slotProps?.baseButton, {
|
|
55
|
+
id: buttonId,
|
|
56
|
+
// TODO: Hook up the panel/trigger IDs to the charts configuration panel
|
|
57
|
+
'aria-haspopup': 'true',
|
|
58
|
+
'aria-expanded': open ? 'true' : undefined,
|
|
59
|
+
'aria-controls': open ? panelId : undefined,
|
|
60
|
+
onClick: handleClick,
|
|
61
|
+
className: resolvedClassName
|
|
62
|
+
}, other, {
|
|
63
|
+
ref
|
|
64
|
+
}), state);
|
|
65
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(React.Fragment, {
|
|
66
|
+
children: element
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
if (process.env.NODE_ENV !== "production") ChartsPanelTrigger.displayName = "ChartsPanelTrigger";
|
|
70
|
+
process.env.NODE_ENV !== "production" ? ChartsPanelTrigger.propTypes = {
|
|
71
|
+
// ----------------------------- Warning --------------------------------
|
|
72
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
73
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
74
|
+
// ----------------------------------------------------------------------
|
|
75
|
+
/**
|
|
76
|
+
* A function to customize rendering of the component.
|
|
77
|
+
*/
|
|
78
|
+
className: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.string]),
|
|
79
|
+
disabled: _propTypes.default.bool,
|
|
80
|
+
id: _propTypes.default.string,
|
|
81
|
+
/**
|
|
82
|
+
* A function to customize rendering of the component.
|
|
83
|
+
*/
|
|
84
|
+
render: _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.func]),
|
|
85
|
+
role: _propTypes.default.string,
|
|
86
|
+
size: _propTypes.default.oneOf(['large', 'medium', 'small']),
|
|
87
|
+
startIcon: _propTypes.default.node,
|
|
88
|
+
style: _propTypes.default.object,
|
|
89
|
+
tabIndex: _propTypes.default.number,
|
|
90
|
+
title: _propTypes.default.string,
|
|
91
|
+
touchRippleRef: _propTypes.default.any
|
|
92
|
+
} : void 0;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { GridChartsConfigurationOptions } from '@mui/x-internals/types';
|
|
3
|
+
export interface GridChartsPanelProps {
|
|
4
|
+
/**
|
|
5
|
+
* The schema of the charts configuration.
|
|
6
|
+
* @type {GridChartsConfigurationOptions}
|
|
7
|
+
* @default {}
|
|
8
|
+
*/
|
|
9
|
+
schema?: GridChartsConfigurationOptions;
|
|
10
|
+
/**
|
|
11
|
+
* Override the default column name generation logic. Use field in combination with the grid state to determine the name of the column that will be shown to the user.
|
|
12
|
+
* @param {string} field The field name
|
|
13
|
+
* @returns {string | undefined} The name of the column or undefined if the column name should be determined by the grid
|
|
14
|
+
*/
|
|
15
|
+
getColumnName?: (field: string) => string | undefined;
|
|
16
|
+
}
|
|
17
|
+
declare function GridChartsPanel(props: GridChartsPanelProps): React.JSX.Element;
|
|
18
|
+
declare namespace GridChartsPanel {
|
|
19
|
+
var propTypes: any;
|
|
20
|
+
}
|
|
21
|
+
export { GridChartsPanel };
|