@mui/x-charts-pro 7.0.0-beta.1 → 7.0.0-beta.3

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 (38) hide show
  1. package/BarChartPro/BarChartPro.js +10 -0
  2. package/CHANGELOG.md +208 -5
  3. package/ChartContainerPro/useChartContainerProProps.d.ts +1 -1
  4. package/Heatmap/Heatmap.js +10 -0
  5. package/LineChartPro/LineChartPro.js +10 -0
  6. package/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +10 -0
  7. package/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.d.ts +3 -3
  8. package/ScatterChartPro/ScatterChartPro.js +10 -0
  9. package/context/CartesianProviderPro/CartesianProviderPro.js +3 -6
  10. package/context/CartesianProviderPro/createAxisFilterMapper.js +1 -1
  11. package/context/ZoomProvider/useSetupPan.js +1 -1
  12. package/context/ZoomProvider/useSetupZoom.js +1 -1
  13. package/index.js +1 -1
  14. package/internals/utils/releaseInfo.js +1 -1
  15. package/modern/BarChartPro/BarChartPro.js +10 -0
  16. package/modern/Heatmap/Heatmap.js +10 -0
  17. package/modern/LineChartPro/LineChartPro.js +10 -0
  18. package/modern/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +10 -0
  19. package/modern/ScatterChartPro/ScatterChartPro.js +10 -0
  20. package/modern/context/CartesianProviderPro/CartesianProviderPro.js +3 -6
  21. package/modern/context/CartesianProviderPro/createAxisFilterMapper.js +1 -1
  22. package/modern/context/ZoomProvider/useSetupPan.js +1 -1
  23. package/modern/context/ZoomProvider/useSetupZoom.js +1 -1
  24. package/modern/index.js +1 -1
  25. package/modern/internals/utils/releaseInfo.js +1 -1
  26. package/node/BarChartPro/BarChartPro.js +10 -0
  27. package/node/Heatmap/Heatmap.js +10 -0
  28. package/node/LineChartPro/LineChartPro.js +10 -0
  29. package/node/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +10 -0
  30. package/node/ScatterChartPro/ScatterChartPro.js +10 -0
  31. package/node/context/CartesianProviderPro/CartesianProviderPro.js +2 -5
  32. package/node/context/CartesianProviderPro/createAxisFilterMapper.js +1 -1
  33. package/node/context/ZoomProvider/useSetupPan.js +1 -1
  34. package/node/context/ZoomProvider/useSetupZoom.js +1 -1
  35. package/node/index.js +1 -1
  36. package/node/internals/utils/releaseInfo.js +1 -1
  37. package/package.json +6 -6
  38. package/typeOverloads/modules.d.ts +2 -1
@@ -221,6 +221,16 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
221
221
  * @param {ZoomData[]} zoomData Updated zoom data.
222
222
  */
223
223
  onZoomChange: PropTypes.func,
224
+ /**
225
+ * The chart will try to wait for the parent container to resolve its size
226
+ * before it renders for the first time.
227
+ *
228
+ * This can be useful in some scenarios where the chart appear to grow after
229
+ * the first render, like when used inside a grid.
230
+ *
231
+ * @default false
232
+ */
233
+ resolveSizeBeforeRender: PropTypes.bool,
224
234
  /**
225
235
  * Indicate which axis to display the right of the charts.
226
236
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,209 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.19.0
7
+
8
+ _Oct 4, 2024_
9
+
10
+ We'd like to offer a big thanks to the 26 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🔁 Automatic parents and children selection for Data Grid ["tree data"](https://mui.com/x/react-data-grid/tree-data/) and ["row grouping"](https://mui.com/x/react-data-grid/row-grouping/) features
13
+ - 💫 Support `minHeight` and `maxHeight` on flex parent container for the Data Grid component
14
+ - 🎁 Export `publicAPI` from the `useTreeItem2Utils` hook for the Tree View
15
+ - 🌍 Improve Bulgarian (bg-BG), Croatian (hr-HR), French (fr-FR), German (de-DE), Japanese (ja-JP) and Vietnamese (vi-VN) locales and add Portuguese (pt-PT) locale on the Data Grid component
16
+ - 🌏 Improve Czech (cs-CZ) and Portuguese (pt-BR) locales and add Bulgarian (bg-BG), Croatian (hr-HR) and Portuguese (pt-PT) locales on the Pickers components
17
+ - 🐞 Bugfixes
18
+ - 📚 Documentation improvements
19
+
20
+ Special thanks goes out to our community contributors who have helped make this release possible:
21
+ @AWAIS97, @chucamphong, @GMchris, @JakubSveda, @k-rajat19, @k725, @lhilgert9, @ruiaraujo012, @Sanderand, @thomasmoon, @vallereaugabriel.
22
+ Following are all team members who have contributed to this release:
23
+ @alexfauquette, @arminmeh, @arthurbalduini, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @KenanYusuf, @MBilalShafi, @michelengelen, @noraleonte, @oliviertassinari, @romgrk, @sai6855, @samuelsycamore.
24
+
25
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
26
+
27
+ ### Data Grid
28
+
29
+ #### `@mui/x-data-grid@7.19.0`
30
+
31
+ - [DataGrid] Fix column definition `undefined` value (#14456) @sai6855
32
+ - [DataGrid] Fix `checkboxSelectionVisibleOnly` reset the selection on filtering (#14677) @MBilalShafi
33
+ - [DataGrid] Fix background colors when `CSSVarsProvider` is used (#12901) @cherniavskii
34
+ - [DataGrid] Fix error when initializing aggregation with row spanning (#14710) @MBilalShafi
35
+ - [DataGrid] Fix scroll to cell logic for keyboard navigating cells and drag selection with pinned columns (#14550) @KenanYusuf
36
+ - [DataGrid] Support `minHeight` and `maxHeight` on flex parent container (#14614) @cherniavskii
37
+ - [l10n] Add missing Portuguese (pt-PT) translations (#14707) @ruiaraujo012
38
+ - [l10n] Improve Bulgarian (bg-BG) locale (#14451) @GMchris
39
+ - [l10n] Improve Croatian (hr-HR) locale (#14794) @arminmeh
40
+ - [l10n] Improve French (fr-FR) locale (#14750) @vallereaugabriel
41
+ - [l10n] Improve German (de-DE) locale (#14755) @lhilgert9
42
+ - [l10n] Improve Japanese (ja-JP) locale (#14381) @k725
43
+ - [l10n] Improve Vietnamese (vi-VN) locale (#14769) @chucamphong
44
+
45
+ #### `@mui/x-data-grid-pro@7.19.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
46
+
47
+ Same changes as in `@mui/x-data-grid@7.19.0`, plus:
48
+
49
+ - [DataGridPro] Fix dragging styles removal in column reorder (#14680) @k-rajat19
50
+ - [DataGridPro] Fix row pre-processing running with a stale data source (#14810) @MBilalShafi
51
+ - [DataGridPro] Fix `onRowsScrollEnd` not firing on very fast scrolling (#14171) @arminmeh
52
+
53
+ #### `@mui/x-data-grid-premium@7.19.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
54
+
55
+ Same changes as in `@mui/x-data-grid-pro@7.19.0`, plus:
56
+
57
+ - [DataGridPremium] Automatic parents and children selection (#13757) @MBilalShafi
58
+
59
+ ### Date and Time Pickers
60
+
61
+ #### `@mui/x-date-pickers@7.19.0`
62
+
63
+ - [pickers] Fix left-right keyboard nav with `yearsOrder="desc"` and `direction="rtl"` (#14682) @thomasmoon
64
+ - [pickers] Improve `PickerValidDate` type (#14771) @flaviendelangle
65
+ - [pickers] Improve typing of the range pickers (#14716) @flaviendelangle
66
+ - [l10n] Add Bulgarian (bg-BG) locale (#14469) @GMchris
67
+ - [l10n] Add Croatian (hr-HR) locale (#14795) @arminmeh
68
+ - [l10n] Add Portuguese (pt-PT) locale (#14722) @ruiaraujo012
69
+ - [l10n] Improve Czech (cs-CZ) locale (#14732) @JakubSveda
70
+ - [l10n] Improve Portuguese (pt-BR) locale (#14725) @arthurbalduini
71
+
72
+ #### `@mui/x-date-pickers-pro@7.19.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
73
+
74
+ Same changes as in `@mui/x-date-pickers@7.19.0`.
75
+
76
+ ### Charts
77
+
78
+ #### `@mui/x-charts@7.19.0`
79
+
80
+ - [charts] Fix `LineChart` area animation being stuck when resizing container (#14711) @alexfauquette
81
+ - [charts] Improve types and start using `warnOnce` (#14792) @JCQuintas
82
+
83
+ #### `@mui/x-charts-pro@7.0.0-beta.3` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
84
+
85
+ Same changes as in `@mui/x-charts@7.19.0`.
86
+
87
+ ### Tree View
88
+
89
+ #### `@mui/x-tree-view@7.19.0`
90
+
91
+ - [TreeView] Apply experimental features in `getDefaultizedParams` instead of in the plugin render (#14661) @flaviendelangle
92
+ - [TreeView] Export `publicAPI` form `useTreeItem2Utils` (#14729) @noraleonte
93
+ - [TreeView] Fix cursor navigation interfering with browser shortcut keys (#14798) @sai6855
94
+ - [TreeView] Fix invalid test for items reordering (#14665) @flaviendelangle
95
+ - [TreeView] Remove `instance.getTreeItemIdAttribute` (#14667) @flaviendelangle
96
+
97
+ ### Docs
98
+
99
+ - [docs] Added warning callout for Firefox reordering bug (#14516) @michelengelen
100
+ - [docs] Copyedit `pages.ts` navigation (#14782) @samuelsycamore
101
+ - [docs] Fix typo in row spanning doc (#14770) @flaviendelangle
102
+ - [docs] Fix typo in the Tree View migration guide to v7 (#14727) @Sanderand
103
+ - [docs] Fix typo in usage of Moment guide for UTC and timezones (#14780) @AWAIS97
104
+ - [docs] Fix what's new link to use absolute URL (#14543) @oliviertassinari
105
+
106
+ ### Core
107
+
108
+ - [core] Fix class name composition order (#14775) @oliviertassinari
109
+ - [core] Replace minWidth, maxWidth with width (#14776) @oliviertassinari
110
+ - [code-infra] Remove custom playwright installation steps (#14728) @Janpot
111
+ - [code-infra] Replace or remove all instances of `e` identifier (#14724) @samuelsycamore
112
+ - [infra] Adds community contribution section to the changelog script (#14799) @michelengelen
113
+ - [infra] Fix line break in Stack Overflow message @oliviertassinari
114
+ - [test] Fix `Escape` event firing event (#14797) @oliviertassinari
115
+
116
+ ## 7.18.0
117
+
118
+ _Sep 20, 2024_
119
+
120
+ We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
121
+
122
+ - 💫 Support [Row spanning](https://mui.com/x/react-data-grid/row-spanning/) on the Data Grid that automatically merges the consecutive cells in a column based on the cell value
123
+
124
+ <img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="data grid row spanning" />
125
+
126
+ - ⏰ Support `date-fns` v4 (#14673) @LukasTy
127
+ - 🎉 Add option for Pickers to change the order of displayed years (#11780) @thomasmoon
128
+ - 🐞 Bugfixes
129
+ - 📚 Documentation improvements
130
+
131
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
132
+
133
+ ### Data Grid
134
+
135
+ #### `@mui/x-data-grid@7.18.0`
136
+
137
+ - [DataGrid] Add default reset value in row edit mode (#14050) @michelengelen
138
+ - [DataGrid] Add `columnGroupHeaderHeight` prop for sizing column group headers (#14637) @KenanYusuf
139
+ - [DataGrid] Fix `document` reference when the grid is rendered in a popup window (#14649) @arminmeh
140
+ - [DataGrid] Remove `minFirstColumn` from `GetHeadersParams` interface (#14450) @k-rajat19
141
+ - [DataGrid] Row spanning (#14124) @MBilalShafi
142
+
143
+ #### `@mui/x-data-grid-pro@7.18.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
144
+
145
+ Same changes as in `@mui/x-data-grid@7.18.0`, plus:
146
+
147
+ - [DataGridPro] Fix `onRowsScrollEnd` being triggered instantly when bottom pinned row is present (#14602) @arminmeh
148
+ - [DataGridPro] Fix header filters rendering issue for `isEmpty` and `isNotEmpty` filter operators (#14493) @k-rajat19
149
+ - [DataGridPro] Fix pinned columns in RTL mode (#14586) @KenanYusuf
150
+
151
+ #### `@mui/x-data-grid-premium@7.18.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
152
+
153
+ Same changes as in `@mui/x-data-grid-pro@7.18.0`.
154
+
155
+ ### Date and Time Pickers
156
+
157
+ #### `@mui/x-date-pickers@7.18.0`
158
+
159
+ - [pickers] Add option to change the order of displayed years (#11780) @thomasmoon
160
+ - [pickers] Support `date-fns` v4 (#14673) @LukasTy
161
+
162
+ #### `@mui/x-date-pickers-pro@7.18.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
163
+
164
+ Same changes as in `@mui/x-date-pickers@7.18.0`.
165
+
166
+ ### Charts
167
+
168
+ #### `@mui/x-charts@7.18.0`
169
+
170
+ - [charts] Add a `PolarProvider` to manage polar axes (#14642) @alexfauquette
171
+ - [charts] Fix `LineChart` animation being stuck with initial drawing area value (#14553) @JCQuintas
172
+ - [charts] Fix legend slot typing (#14657) @alexfauquette
173
+ - [charts] Pass the axis index to extremum getter (#14641) @alexfauquette
174
+ - [charts] Provide hooks to create custom tooltip (#14377) @alexfauquette
175
+
176
+ #### `@mui/x-charts-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
177
+
178
+ Same changes as in `@mui/x-charts@7.18.0`.
179
+
180
+ ### Tree View
181
+
182
+ #### `@mui/x-tree-view@7.18.0`
183
+
184
+ - [TreeView] Add `"use client"` directive to every public component and hook (#14579) @flaviendelangle
185
+
186
+ ### Docs
187
+
188
+ - [docs] Add `groupingValueGetter` callout in column definition docs (#14599) @michelengelen
189
+ - [docs] Clean v6 => v7 migration guide (#14652) @flaviendelangle
190
+ - [docs] Copy `vale-action.yml` from main repo @oliviertassinari
191
+ - [docs] Edit the Pickers Getting started doc (#14555) @samuelsycamore
192
+ - [docs] Fix TypeScript capitalization @oliviertassinari
193
+ - [docs] Fix Vale error @oliviertassinari
194
+ - [docs] Make the migration guide diff a bit easier to read @oliviertassinari
195
+ - [docs] Report Vale at warning level (#14660) @oliviertassinari
196
+ - [docs] Warn about the `valueGetter` and `valueFormatter` signature change (#14613) @cherniavskii
197
+ - [docs] Polish code formatting (#14603) @oliviertassinari
198
+ - [test] Spy on `observe` method to avoid flaky wait for a callback (#14640) @arminmeh
199
+
200
+ ### Core
201
+
202
+ - [core] Fix 301 link to Next.js and git diff @oliviertassinari
203
+ - [core] Fix failing CI on `master` (#14644) @cherniavskii
204
+ - [core] Fix `package.json` repository rule @oliviertassinari
205
+ - [core] MUI X repository moved to a new location @oliviertassinari
206
+ - [docs-infra] Strengthen CSP (#14581) @oliviertassinari
207
+ - [license] Finish renaming of LicensingModel (#14615) @oliviertassinari
208
+
6
209
  ## 7.17.0
7
210
 
8
211
  _Sep 13, 2024_
@@ -75,7 +278,7 @@ Same changes as in `@mui/x-charts@7.17.0`.
75
278
  ### Docs
76
279
 
77
280
  - [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
78
- - [docs] Fix broken redirection to MUI X v5 @oliviertassinari
281
+ - [docs] Fix broken redirection to MUI X v5 @oliviertassinari
79
282
  - [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
80
283
  - [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
81
284
  - [docs] Match title with blog posts @oliviertassinari
@@ -195,7 +398,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
195
398
 
196
399
  - 💫 Support Material UI v6 (`@mui/material@6`) peer dependency (#14142) @cherniavskii
197
400
 
198
- You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
401
+ You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
199
402
 
200
403
  - 🐞 Bugfixes
201
404
 
@@ -240,7 +443,7 @@ Same changes as in `@mui/x-charts@7.15.0`, plus:
240
443
 
241
444
  - [docs] Fix sentence case `h2` @oliviertassinari
242
445
  - [docs] Clarify contribution guide references @oliviertassinari
243
- - [docs] Fix Stack Overflow issue canned response @oliviertassinari
446
+ - [docs] Fix Stack Overflow issue canned response @oliviertassinari
244
447
  - [docs] Fix outdated link to support page @oliviertassinari
245
448
  - [docs] Fix use of Material UI @oliviertassinari
246
449
  - [docs] Update deprecated props in docs (#14295) @JCQuintas
@@ -498,7 +701,7 @@ The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving
498
701
 
499
702
  As always, every feature released as part of the MIT plan will remain free and MIT licensed forever.
500
703
 
501
- This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
704
+ This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
502
705
 
503
706
  ### Highlights
504
707
 
@@ -563,7 +766,7 @@ Same changes as in `@mui/x-date-pickers@7.12.0`.
563
766
  #### `@mui/x-charts@7.12.0`
564
767
 
565
768
  - [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas
566
- - [charts] Use vendor to have Common JS bundle working out of the box (#13608) @alexfauquette
769
+ - [charts] Use vendor to have CommonJS bundle working out of the box (#13608) @alexfauquette
567
770
  - [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas
568
771
 
569
772
  ### Tree View
@@ -7,7 +7,7 @@ export declare const useChartContainerProProps: (props: ChartContainerProProps,
7
7
  pluginProviderProps: Omit<import("@mui/x-charts/internals").PluginProviderProps, "children">;
8
8
  seriesProviderProps: Omit<import("@mui/x-charts/internals").SeriesProviderProps, "children">;
9
9
  cartesianProviderProps: Omit<import("@mui/x-charts/internals").CartesianProviderProps, "children">;
10
- zAxisContextProps: Omit<import("@mui/x-charts/internals").ZAxisContextProviderProps, "children">;
10
+ zAxisContextProps: Omit<import("@mui/x-charts").ZAxisContextProviderProps, "children">;
11
11
  highlightedProviderProps: Omit<import("@mui/x-charts").HighlightedProviderProps, "children">;
12
12
  chartsSurfaceProps: import("@mui/x-charts").ChartsSurfaceProps & {
13
13
  ref: any;
@@ -190,6 +190,16 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
190
190
  * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
191
191
  */
192
192
  onHighlightChange: PropTypes.func,
193
+ /**
194
+ * The chart will try to wait for the parent container to resolve its size
195
+ * before it renders for the first time.
196
+ *
197
+ * This can be useful in some scenarios where the chart appear to grow after
198
+ * the first render, like when used inside a grid.
199
+ *
200
+ * @default false
201
+ */
202
+ resolveSizeBeforeRender: PropTypes.bool,
193
203
  /**
194
204
  * Indicate which axis to display the right of the charts.
195
205
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -238,6 +238,16 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
238
238
  * @param {ZoomData[]} zoomData Updated zoom data.
239
239
  */
240
240
  onZoomChange: PropTypes.func,
241
+ /**
242
+ * The chart will try to wait for the parent container to resolve its size
243
+ * before it renders for the first time.
244
+ *
245
+ * This can be useful in some scenarios where the chart appear to grow after
246
+ * the first render, like when used inside a grid.
247
+ *
248
+ * @default false
249
+ */
250
+ resolveSizeBeforeRender: PropTypes.bool,
241
251
  /**
242
252
  * Indicate which axis to display the right of the charts.
243
253
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -86,6 +86,16 @@ process.env.NODE_ENV !== "production" ? ResponsiveChartContainerPro.propTypes =
86
86
  * If not provided, the container supports line, bar, scatter and pie charts.
87
87
  */
88
88
  plugins: PropTypes.arrayOf(PropTypes.object),
89
+ /**
90
+ * The chart will try to wait for the parent container to resolve its size
91
+ * before it renders for the first time.
92
+ *
93
+ * This can be useful in some scenarios where the chart appear to grow after
94
+ * the first render, like when used inside a grid.
95
+ *
96
+ * @default false
97
+ */
98
+ resolveSizeBeforeRender: PropTypes.bool,
89
99
  /**
90
100
  * The array of series to display.
91
101
  * Each type of series has its own specificity.
@@ -24,9 +24,9 @@ export declare const useResponsiveChartContainerProProps: (props: ResponsiveChar
24
24
  colors?: import("@mui/x-charts").ChartsColorPalette | undefined;
25
25
  disableAxisListener?: boolean | undefined;
26
26
  highlightedItem?: (import("@mui/x-charts").HighlightItemData | null) | undefined;
27
- xAxis?: import("@mui/x-charts/internals").MakeOptional<import("@mui/x-charts/internals").AxisConfig<import("@mui/x-charts/internals").ScaleName, any, import("@mui/x-charts/internals").ChartsXAxisProps>, "id">[];
28
- yAxis?: import("@mui/x-charts/internals").MakeOptional<import("@mui/x-charts/internals").AxisConfig<import("@mui/x-charts/internals").ScaleName, any, import("@mui/x-charts/internals").ChartsYAxisProps>, "id">[];
29
- children?: import("react").ReactNode;
27
+ xAxis?: import("@mui/x-charts/internals").MakeOptional<import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsXAxisProps>, "id">[];
28
+ yAxis?: import("@mui/x-charts/internals").MakeOptional<import("@mui/x-charts").AxisConfig<import("@mui/x-charts").ScaleName, any, import("@mui/x-charts").ChartsYAxisProps>, "id">[];
29
+ children?: React.ReactNode;
30
30
  ref: React.ForwardedRef<unknown>;
31
31
  };
32
32
  resizableChartContainerProps: {
@@ -193,6 +193,16 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
193
193
  * @param {ZoomData[]} zoomData Updated zoom data.
194
194
  */
195
195
  onZoomChange: PropTypes.func,
196
+ /**
197
+ * The chart will try to wait for the parent container to resolve its size
198
+ * before it renders for the first time.
199
+ *
200
+ * This can be useful in some scenarios where the chart appear to grow after
201
+ * the first render, like when used inside a grid.
202
+ *
203
+ * @default false
204
+ */
205
+ resolveSizeBeforeRender: PropTypes.bool,
196
206
  /**
197
207
  * Indicate which axis to display the right of the charts.
198
208
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -2,13 +2,10 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
- import { useDrawingArea, useSeries, CartesianContext, cartesianProviderUtils, useXExtremumGetter, useYExtremumGetter } from '@mui/x-charts/internals';
5
+ import { useDrawingArea, useSeries, CartesianContext, computeAxisValue, useXExtremumGetter, useYExtremumGetter } from '@mui/x-charts/internals';
6
6
  import { useZoom } from "../ZoomProvider/useZoom.js";
7
7
  import { createAxisFilterMapper, createGetAxisFilters } from "./createAxisFilterMapper.js";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
- const {
10
- computeValue
11
- } = cartesianProviderUtils;
12
9
  function CartesianProviderPro(props) {
13
10
  const {
14
11
  xAxis,
@@ -55,7 +52,7 @@ function CartesianProviderPro(props) {
55
52
  }
56
53
  return createGetAxisFilters(_extends({}, xFilters, yFilters));
57
54
  }, [formattedSeries, xAxis, xExtremumGetters, yAxis, yExtremumGetters, zoomData]);
58
- const xValues = React.useMemo(() => computeValue({
55
+ const xValues = React.useMemo(() => computeAxisValue({
59
56
  drawingArea,
60
57
  formattedSeries,
61
58
  axis: xAxis,
@@ -65,7 +62,7 @@ function CartesianProviderPro(props) {
65
62
  zoomOptions: options,
66
63
  getFilters
67
64
  }), [drawingArea, formattedSeries, xAxis, xExtremumGetters, zoomData, options, getFilters]);
68
- const yValues = React.useMemo(() => computeValue({
65
+ const yValues = React.useMemo(() => computeAxisValue({
69
66
  drawingArea,
70
67
  formattedSeries,
71
68
  axis: yAxis,
@@ -20,7 +20,7 @@ export const createAxisFilterMapper = ({
20
20
  if (scaleType === 'point' || scaleType === 'band') {
21
21
  extremums = [0, (axis.data?.length ?? 1) - 1];
22
22
  } else {
23
- extremums = getAxisExtremum(axis, extremumGetter, axisIndex === 0, formattedSeries);
23
+ extremums = getAxisExtremum(axis, extremumGetter, axisIndex, formattedSeries);
24
24
  }
25
25
  let min;
26
26
  let max;
@@ -85,7 +85,7 @@ export const useSetupPan = () => {
85
85
  };
86
86
  };
87
87
  const handleUp = event => {
88
- eventCacheRef.current.splice(eventCacheRef.current.findIndex(e => e.pointerId === event.pointerId), 1);
88
+ eventCacheRef.current.splice(eventCacheRef.current.findIndex(cachedEvent => cachedEvent.pointerId === event.pointerId), 1);
89
89
  setIsInteracting(false);
90
90
  isDraggingRef.current = false;
91
91
  touchStartRef.current = null;
@@ -145,7 +145,7 @@ export const useSetupZoom = () => {
145
145
  });
146
146
  }
147
147
  function pointerUpHandler(event) {
148
- eventCacheRef.current.splice(eventCacheRef.current.findIndex(e => e.pointerId === event.pointerId), 1);
148
+ eventCacheRef.current.splice(eventCacheRef.current.findIndex(cachedEvent => cachedEvent.pointerId === event.pointerId), 1);
149
149
  if (eventCacheRef.current.length < 2) {
150
150
  eventPrevDiff.current = 0;
151
151
  }
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v7.0.0-beta.1
2
+ * @mui/x-charts-pro v7.0.0-beta.3
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyNjE5NjQwMDAwMA==";
3
+ const releaseInfo = "MTcyNzk4OTIwMDAwMA==";
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
@@ -221,6 +221,16 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
221
221
  * @param {ZoomData[]} zoomData Updated zoom data.
222
222
  */
223
223
  onZoomChange: PropTypes.func,
224
+ /**
225
+ * The chart will try to wait for the parent container to resolve its size
226
+ * before it renders for the first time.
227
+ *
228
+ * This can be useful in some scenarios where the chart appear to grow after
229
+ * the first render, like when used inside a grid.
230
+ *
231
+ * @default false
232
+ */
233
+ resolveSizeBeforeRender: PropTypes.bool,
224
234
  /**
225
235
  * Indicate which axis to display the right of the charts.
226
236
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -190,6 +190,16 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
190
190
  * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
191
191
  */
192
192
  onHighlightChange: PropTypes.func,
193
+ /**
194
+ * The chart will try to wait for the parent container to resolve its size
195
+ * before it renders for the first time.
196
+ *
197
+ * This can be useful in some scenarios where the chart appear to grow after
198
+ * the first render, like when used inside a grid.
199
+ *
200
+ * @default false
201
+ */
202
+ resolveSizeBeforeRender: PropTypes.bool,
193
203
  /**
194
204
  * Indicate which axis to display the right of the charts.
195
205
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -238,6 +238,16 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
238
238
  * @param {ZoomData[]} zoomData Updated zoom data.
239
239
  */
240
240
  onZoomChange: PropTypes.func,
241
+ /**
242
+ * The chart will try to wait for the parent container to resolve its size
243
+ * before it renders for the first time.
244
+ *
245
+ * This can be useful in some scenarios where the chart appear to grow after
246
+ * the first render, like when used inside a grid.
247
+ *
248
+ * @default false
249
+ */
250
+ resolveSizeBeforeRender: PropTypes.bool,
241
251
  /**
242
252
  * Indicate which axis to display the right of the charts.
243
253
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -86,6 +86,16 @@ process.env.NODE_ENV !== "production" ? ResponsiveChartContainerPro.propTypes =
86
86
  * If not provided, the container supports line, bar, scatter and pie charts.
87
87
  */
88
88
  plugins: PropTypes.arrayOf(PropTypes.object),
89
+ /**
90
+ * The chart will try to wait for the parent container to resolve its size
91
+ * before it renders for the first time.
92
+ *
93
+ * This can be useful in some scenarios where the chart appear to grow after
94
+ * the first render, like when used inside a grid.
95
+ *
96
+ * @default false
97
+ */
98
+ resolveSizeBeforeRender: PropTypes.bool,
89
99
  /**
90
100
  * The array of series to display.
91
101
  * Each type of series has its own specificity.
@@ -193,6 +193,16 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
193
193
  * @param {ZoomData[]} zoomData Updated zoom data.
194
194
  */
195
195
  onZoomChange: PropTypes.func,
196
+ /**
197
+ * The chart will try to wait for the parent container to resolve its size
198
+ * before it renders for the first time.
199
+ *
200
+ * This can be useful in some scenarios where the chart appear to grow after
201
+ * the first render, like when used inside a grid.
202
+ *
203
+ * @default false
204
+ */
205
+ resolveSizeBeforeRender: PropTypes.bool,
196
206
  /**
197
207
  * Indicate which axis to display the right of the charts.
198
208
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -2,13 +2,10 @@
2
2
 
3
3
  import _extends from "@babel/runtime/helpers/esm/extends";
4
4
  import * as React from 'react';
5
- import { useDrawingArea, useSeries, CartesianContext, cartesianProviderUtils, useXExtremumGetter, useYExtremumGetter } from '@mui/x-charts/internals';
5
+ import { useDrawingArea, useSeries, CartesianContext, computeAxisValue, useXExtremumGetter, useYExtremumGetter } from '@mui/x-charts/internals';
6
6
  import { useZoom } from "../ZoomProvider/useZoom.js";
7
7
  import { createAxisFilterMapper, createGetAxisFilters } from "./createAxisFilterMapper.js";
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
- const {
10
- computeValue
11
- } = cartesianProviderUtils;
12
9
  function CartesianProviderPro(props) {
13
10
  const {
14
11
  xAxis,
@@ -55,7 +52,7 @@ function CartesianProviderPro(props) {
55
52
  }
56
53
  return createGetAxisFilters(_extends({}, xFilters, yFilters));
57
54
  }, [formattedSeries, xAxis, xExtremumGetters, yAxis, yExtremumGetters, zoomData]);
58
- const xValues = React.useMemo(() => computeValue({
55
+ const xValues = React.useMemo(() => computeAxisValue({
59
56
  drawingArea,
60
57
  formattedSeries,
61
58
  axis: xAxis,
@@ -65,7 +62,7 @@ function CartesianProviderPro(props) {
65
62
  zoomOptions: options,
66
63
  getFilters
67
64
  }), [drawingArea, formattedSeries, xAxis, xExtremumGetters, zoomData, options, getFilters]);
68
- const yValues = React.useMemo(() => computeValue({
65
+ const yValues = React.useMemo(() => computeAxisValue({
69
66
  drawingArea,
70
67
  formattedSeries,
71
68
  axis: yAxis,
@@ -20,7 +20,7 @@ export const createAxisFilterMapper = ({
20
20
  if (scaleType === 'point' || scaleType === 'band') {
21
21
  extremums = [0, (axis.data?.length ?? 1) - 1];
22
22
  } else {
23
- extremums = getAxisExtremum(axis, extremumGetter, axisIndex === 0, formattedSeries);
23
+ extremums = getAxisExtremum(axis, extremumGetter, axisIndex, formattedSeries);
24
24
  }
25
25
  let min;
26
26
  let max;
@@ -85,7 +85,7 @@ export const useSetupPan = () => {
85
85
  };
86
86
  };
87
87
  const handleUp = event => {
88
- eventCacheRef.current.splice(eventCacheRef.current.findIndex(e => e.pointerId === event.pointerId), 1);
88
+ eventCacheRef.current.splice(eventCacheRef.current.findIndex(cachedEvent => cachedEvent.pointerId === event.pointerId), 1);
89
89
  setIsInteracting(false);
90
90
  isDraggingRef.current = false;
91
91
  touchStartRef.current = null;
@@ -145,7 +145,7 @@ export const useSetupZoom = () => {
145
145
  });
146
146
  }
147
147
  function pointerUpHandler(event) {
148
- eventCacheRef.current.splice(eventCacheRef.current.findIndex(e => e.pointerId === event.pointerId), 1);
148
+ eventCacheRef.current.splice(eventCacheRef.current.findIndex(cachedEvent => cachedEvent.pointerId === event.pointerId), 1);
149
149
  if (eventCacheRef.current.length < 2) {
150
150
  eventPrevDiff.current = 0;
151
151
  }
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v7.0.0-beta.1
2
+ * @mui/x-charts-pro v7.0.0-beta.3
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyNjE5NjQwMDAwMA==";
3
+ const releaseInfo = "MTcyNzk4OTIwMDAwMA==";
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
@@ -228,6 +228,16 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
228
228
  * @param {ZoomData[]} zoomData Updated zoom data.
229
229
  */
230
230
  onZoomChange: _propTypes.default.func,
231
+ /**
232
+ * The chart will try to wait for the parent container to resolve its size
233
+ * before it renders for the first time.
234
+ *
235
+ * This can be useful in some scenarios where the chart appear to grow after
236
+ * the first render, like when used inside a grid.
237
+ *
238
+ * @default false
239
+ */
240
+ resolveSizeBeforeRender: _propTypes.default.bool,
231
241
  /**
232
242
  * Indicate which axis to display the right of the charts.
233
243
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -197,6 +197,16 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
197
197
  * @param {HighlightItemData | null} highlightedItem The newly highlighted item.
198
198
  */
199
199
  onHighlightChange: _propTypes.default.func,
200
+ /**
201
+ * The chart will try to wait for the parent container to resolve its size
202
+ * before it renders for the first time.
203
+ *
204
+ * This can be useful in some scenarios where the chart appear to grow after
205
+ * the first render, like when used inside a grid.
206
+ *
207
+ * @default false
208
+ */
209
+ resolveSizeBeforeRender: _propTypes.default.bool,
200
210
  /**
201
211
  * Indicate which axis to display the right of the charts.
202
212
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -245,6 +245,16 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
245
245
  * @param {ZoomData[]} zoomData Updated zoom data.
246
246
  */
247
247
  onZoomChange: _propTypes.default.func,
248
+ /**
249
+ * The chart will try to wait for the parent container to resolve its size
250
+ * before it renders for the first time.
251
+ *
252
+ * This can be useful in some scenarios where the chart appear to grow after
253
+ * the first render, like when used inside a grid.
254
+ *
255
+ * @default false
256
+ */
257
+ resolveSizeBeforeRender: _propTypes.default.bool,
248
258
  /**
249
259
  * Indicate which axis to display the right of the charts.
250
260
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -93,6 +93,16 @@ process.env.NODE_ENV !== "production" ? ResponsiveChartContainerPro.propTypes =
93
93
  * If not provided, the container supports line, bar, scatter and pie charts.
94
94
  */
95
95
  plugins: _propTypes.default.arrayOf(_propTypes.default.object),
96
+ /**
97
+ * The chart will try to wait for the parent container to resolve its size
98
+ * before it renders for the first time.
99
+ *
100
+ * This can be useful in some scenarios where the chart appear to grow after
101
+ * the first render, like when used inside a grid.
102
+ *
103
+ * @default false
104
+ */
105
+ resolveSizeBeforeRender: _propTypes.default.bool,
96
106
  /**
97
107
  * The array of series to display.
98
108
  * Each type of series has its own specificity.
@@ -200,6 +200,16 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
200
200
  * @param {ZoomData[]} zoomData Updated zoom data.
201
201
  */
202
202
  onZoomChange: _propTypes.default.func,
203
+ /**
204
+ * The chart will try to wait for the parent container to resolve its size
205
+ * before it renders for the first time.
206
+ *
207
+ * This can be useful in some scenarios where the chart appear to grow after
208
+ * the first render, like when used inside a grid.
209
+ *
210
+ * @default false
211
+ */
212
+ resolveSizeBeforeRender: _propTypes.default.bool,
203
213
  /**
204
214
  * Indicate which axis to display the right of the charts.
205
215
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -13,9 +13,6 @@ var _internals = require("@mui/x-charts/internals");
13
13
  var _useZoom = require("../ZoomProvider/useZoom");
14
14
  var _createAxisFilterMapper = require("./createAxisFilterMapper");
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
- const {
17
- computeValue
18
- } = _internals.cartesianProviderUtils;
19
16
  function CartesianProviderPro(props) {
20
17
  const {
21
18
  xAxis,
@@ -62,7 +59,7 @@ function CartesianProviderPro(props) {
62
59
  }
63
60
  return (0, _createAxisFilterMapper.createGetAxisFilters)((0, _extends2.default)({}, xFilters, yFilters));
64
61
  }, [formattedSeries, xAxis, xExtremumGetters, yAxis, yExtremumGetters, zoomData]);
65
- const xValues = React.useMemo(() => computeValue({
62
+ const xValues = React.useMemo(() => (0, _internals.computeAxisValue)({
66
63
  drawingArea,
67
64
  formattedSeries,
68
65
  axis: xAxis,
@@ -72,7 +69,7 @@ function CartesianProviderPro(props) {
72
69
  zoomOptions: options,
73
70
  getFilters
74
71
  }), [drawingArea, formattedSeries, xAxis, xExtremumGetters, zoomData, options, getFilters]);
75
- const yValues = React.useMemo(() => computeValue({
72
+ const yValues = React.useMemo(() => (0, _internals.computeAxisValue)({
76
73
  drawingArea,
77
74
  formattedSeries,
78
75
  axis: yAxis,
@@ -26,7 +26,7 @@ const createAxisFilterMapper = ({
26
26
  if (scaleType === 'point' || scaleType === 'band') {
27
27
  extremums = [0, (axis.data?.length ?? 1) - 1];
28
28
  } else {
29
- extremums = (0, _internals.getAxisExtremum)(axis, extremumGetter, axisIndex === 0, formattedSeries);
29
+ extremums = (0, _internals.getAxisExtremum)(axis, extremumGetter, axisIndex, formattedSeries);
30
30
  }
31
31
  let min;
32
32
  let max;
@@ -92,7 +92,7 @@ const useSetupPan = () => {
92
92
  };
93
93
  };
94
94
  const handleUp = event => {
95
- eventCacheRef.current.splice(eventCacheRef.current.findIndex(e => e.pointerId === event.pointerId), 1);
95
+ eventCacheRef.current.splice(eventCacheRef.current.findIndex(cachedEvent => cachedEvent.pointerId === event.pointerId), 1);
96
96
  setIsInteracting(false);
97
97
  isDraggingRef.current = false;
98
98
  touchStartRef.current = null;
@@ -151,7 +151,7 @@ const useSetupZoom = () => {
151
151
  });
152
152
  }
153
153
  function pointerUpHandler(event) {
154
- eventCacheRef.current.splice(eventCacheRef.current.findIndex(e => e.pointerId === event.pointerId), 1);
154
+ eventCacheRef.current.splice(eventCacheRef.current.findIndex(cachedEvent => cachedEvent.pointerId === event.pointerId), 1);
155
155
  if (eventCacheRef.current.length < 2) {
156
156
  eventPrevDiff.current = 0;
157
157
  }
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v7.0.0-beta.1
2
+ * @mui/x-charts-pro v7.0.0-beta.3
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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 = "MTcyNjE5NjQwMDAwMA==";
9
+ const releaseInfo = "MTcyNzk4OTIwMDAwMA==";
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "7.0.0-beta.1",
3
+ "version": "7.0.0-beta.3",
4
4
  "description": "The Pro plan edition of the Charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -25,7 +25,7 @@
25
25
  ],
26
26
  "repository": {
27
27
  "type": "git",
28
- "url": "https://github.com/mui/mui-x.git",
28
+ "url": "git+https://github.com/mui/mui-x.git",
29
29
  "directory": "packages/x-charts-pro"
30
30
  },
31
31
  "dependencies": {
@@ -35,10 +35,10 @@
35
35
  "@react-spring/web": "^9.7.4",
36
36
  "clsx": "^2.1.1",
37
37
  "prop-types": "^15.8.1",
38
- "@mui/x-charts": "7.17.0",
39
- "@mui/x-charts-vendor": "7.16.0",
40
- "@mui/x-internals": "7.17.0",
41
- "@mui/x-license": "7.17.0"
38
+ "@mui/x-charts": "7.19.0",
39
+ "@mui/x-charts-vendor": "7.19.0",
40
+ "@mui/x-license": "7.18.0",
41
+ "@mui/x-internals": "7.18.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@emotion/react": "^11.9.0",
@@ -1,5 +1,5 @@
1
1
  import { DefaultizedProps } from '@mui/x-charts/internals';
2
- import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType } from '../models/seriesType/heatmap';
2
+ import { HeatmapItemIdentifier, HeatmapSeriesType, DefaultizedHeatmapSeriesType, HeatmapValueType } from '../models/seriesType/heatmap';
3
3
  import { ZoomOptions } from '../context/ZoomProvider';
4
4
  declare module '@mui/x-charts/internals' {
5
5
  interface ChartsSeriesConfig {
@@ -8,6 +8,7 @@ declare module '@mui/x-charts/internals' {
8
8
  series: DefaultizedHeatmapSeriesType;
9
9
  seriesProp: HeatmapSeriesType;
10
10
  itemIdentifier: HeatmapItemIdentifier;
11
+ valueType: HeatmapValueType;
11
12
  cartesian: true;
12
13
  };
13
14
  }