@mui/x-charts 8.0.0-beta.0 → 8.0.0-beta.1

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.
@@ -42,8 +42,8 @@ const getValueExtremum = direction => params => {
42
42
  isDefaultAxis
43
43
  } = params;
44
44
  return Object.keys(series).filter(seriesId => {
45
- const yAxisId = series[seriesId].yAxisId;
46
- return yAxisId === axis.id || isDefaultAxis && yAxisId === undefined;
45
+ const axisId = direction === 'x' ? series[seriesId].xAxisId : series[seriesId].yAxisId;
46
+ return axisId === axis.id || isDefaultAxis && axisId === undefined;
47
47
  }).reduce((acc, seriesId) => {
48
48
  const {
49
49
  stackedData
package/CHANGELOG.md CHANGED
@@ -5,6 +5,83 @@
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.0.0-beta.1
9
+
10
+ _Mar 21, 2025_
11
+
12
+ We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 🐞 Bugfixes
15
+
16
+ Special thanks go out to the community members for their valuable contributions:
17
+ @jyash97.
18
+ Following are all team members who have contributed to this release:
19
+ @alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf.
20
+
21
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
22
+
23
+ ### Data Grid
24
+
25
+ #### `@mui/x-data-grid@8.0.0-beta.1`
26
+
27
+ - [DataGrid] Fix error caused by `forwardRef` to `ClickAwayListener` (#17049) @arminmeh
28
+ - [DataGrid] Fix error while editing rows with custom id (#17048) @arminmeh
29
+
30
+ #### `@mui/x-data-grid-pro@8.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
+
32
+ Same changes as in `@mui/x-data-grid@8.0.0-beta.1`, plus:
33
+
34
+ - [DataGridPro] Fix header select checkbox state with `checkboxSelectionVisibleOnly` and `paginationMode="server"` (#17026) @arminmeh
35
+
36
+ #### `@mui/x-data-grid-premium@8.0.0-beta.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
37
+
38
+ Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.1`, plus:
39
+
40
+ - [DataGridPremium] Update column state correctly when grouping mode is updated with one grouping column (#17069) @arminmeh
41
+
42
+ ### Date and Time Pickers
43
+
44
+ #### `@mui/x-date-pickers@8.0.0-beta.1`
45
+
46
+ - [fields] Clean the `useField` hook (part 1) (#16944) @flaviendelangle
47
+ - [fields] Improve the check for year in `doesSectionFormatHaveLeadingZeros` (#17051) @flaviendelangle
48
+ - [pickers] Deprecate the `disableOpenPicker` prop (#17040) @flaviendelangle
49
+ - [pickers] Simplify the `cleanLeadingZeros` method (#17063) @flaviendelangle
50
+ - [pickers] Use the new `ownerState` in `PickersDay` and `DateRangePickerDay` (#17035) @flaviendelangle
51
+
52
+ #### `@mui/x-date-pickers-pro@8.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
53
+
54
+ Same changes as in `@mui/x-date-pickers@8.0.0-beta.1`, plus:
55
+
56
+ - [DateRangePicker] Use desktop media query constant on range pickers (#17052) @flaviendelangle
57
+
58
+ ### Charts
59
+
60
+ #### `@mui/x-charts@8.0.0-beta.1`
61
+
62
+ - [charts] Fix horizontal bar with multiple axes (#17059) @alexfauquette
63
+
64
+ #### `@mui/x-charts-pro@8.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-charts@8.0.0-beta.1`, plus:
67
+
68
+ - [charts-pro] Allow disabling Heatmap tooltip (#17060) @JCQuintas
69
+
70
+ ### Tree View
71
+
72
+ #### `@mui/x-tree-view@8.0.0-beta.1`
73
+
74
+ Internal changes.
75
+
76
+ #### `@mui/x-tree-view-pro@8.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
77
+
78
+ Same changes as in `@mui/x-tree-view@8.0.0-beta.1`.
79
+
80
+ ### Docs
81
+
82
+ - [docs] Fix 404 (#17033) @alexfauquette
83
+ - [docs] Fix Data Grid advanced list view demo (#17064) @KenanYusuf
84
+
8
85
  ## 8.0.0-beta.0
9
86
 
10
87
  <img width="100%" alt="MUI X v8 Beta is live" src="https://github.com/user-attachments/assets/61ec4dd8-c946-456b-8b45-d51de8772f5d">
@@ -36,8 +36,8 @@ const getValueExtremum = direction => params => {
36
36
  isDefaultAxis
37
37
  } = params;
38
38
  return Object.keys(series).filter(seriesId => {
39
- const yAxisId = series[seriesId].yAxisId;
40
- return yAxisId === axis.id || isDefaultAxis && yAxisId === undefined;
39
+ const axisId = direction === 'x' ? series[seriesId].xAxisId : series[seriesId].yAxisId;
40
+ return axisId === axis.id || isDefaultAxis && axisId === undefined;
41
41
  }).reduce((acc, seriesId) => {
42
42
  const {
43
43
  stackedData
@@ -3,7 +3,7 @@
3
3
  import * as React from 'react';
4
4
  import { useChartContext } from "../context/ChartProvider/index.js";
5
5
  const onPointerDown = event => {
6
- if (event.currentTarget.hasPointerCapture(event.pointerId)) {
6
+ if ('hasPointerCapture' in event.currentTarget && event.currentTarget.hasPointerCapture(event.pointerId)) {
7
7
  event.currentTarget.releasePointerCapture(event.pointerId);
8
8
  }
9
9
  };
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v8.0.0-beta.0
2
+ * @mui/x-charts v8.0.0-beta.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -96,7 +96,7 @@ export const useChartCartesianAxis = ({
96
96
  if (!target) {
97
97
  return;
98
98
  }
99
- if (target.hasPointerCapture(event.pointerId)) {
99
+ if ('hasPointerCapture' in target && target.hasPointerCapture(event.pointerId)) {
100
100
  target.releasePointerCapture(event.pointerId);
101
101
  }
102
102
  };
@@ -141,7 +141,7 @@ export const useChartPolarAxis = ({
141
141
  if (!target) {
142
142
  return;
143
143
  }
144
- if (target.hasPointerCapture(event.pointerId)) {
144
+ if ('hasPointerCapture' in target && target.hasPointerCapture(event.pointerId)) {
145
145
  target.releasePointerCapture(event.pointerId);
146
146
  }
147
147
  };
@@ -9,7 +9,7 @@ exports.useInteractionItemProps = exports.useInteractionAllItemProps = void 0;
9
9
  var React = _interopRequireWildcard(require("react"));
10
10
  var _ChartProvider = require("../context/ChartProvider");
11
11
  const onPointerDown = event => {
12
- if (event.currentTarget.hasPointerCapture(event.pointerId)) {
12
+ if ('hasPointerCapture' in event.currentTarget && event.currentTarget.hasPointerCapture(event.pointerId)) {
13
13
  event.currentTarget.releasePointerCapture(event.pointerId);
14
14
  }
15
15
  };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v8.0.0-beta.0
2
+ * @mui/x-charts v8.0.0-beta.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -103,7 +103,7 @@ const useChartCartesianAxis = ({
103
103
  if (!target) {
104
104
  return;
105
105
  }
106
- if (target.hasPointerCapture(event.pointerId)) {
106
+ if ('hasPointerCapture' in target && target.hasPointerCapture(event.pointerId)) {
107
107
  target.releasePointerCapture(event.pointerId);
108
108
  }
109
109
  };
@@ -148,7 +148,7 @@ const useChartPolarAxis = ({
148
148
  if (!target) {
149
149
  return;
150
150
  }
151
- if (target.hasPointerCapture(event.pointerId)) {
151
+ if ('hasPointerCapture' in target && target.hasPointerCapture(event.pointerId)) {
152
152
  target.releasePointerCapture(event.pointerId);
153
153
  }
154
154
  };
@@ -36,8 +36,8 @@ const getValueExtremum = direction => params => {
36
36
  isDefaultAxis
37
37
  } = params;
38
38
  return Object.keys(series).filter(seriesId => {
39
- const yAxisId = series[seriesId].yAxisId;
40
- return yAxisId === axis.id || isDefaultAxis && yAxisId === undefined;
39
+ const axisId = direction === 'x' ? series[seriesId].xAxisId : series[seriesId].yAxisId;
40
+ return axisId === axis.id || isDefaultAxis && axisId === undefined;
41
41
  }).reduce((acc, seriesId) => {
42
42
  const {
43
43
  stackedData
@@ -3,7 +3,7 @@
3
3
  import * as React from 'react';
4
4
  import { useChartContext } from "../context/ChartProvider/index.js";
5
5
  const onPointerDown = event => {
6
- if (event.currentTarget.hasPointerCapture(event.pointerId)) {
6
+ if ('hasPointerCapture' in event.currentTarget && event.currentTarget.hasPointerCapture(event.pointerId)) {
7
7
  event.currentTarget.releasePointerCapture(event.pointerId);
8
8
  }
9
9
  };
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts v8.0.0-beta.0
2
+ * @mui/x-charts v8.0.0-beta.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -96,7 +96,7 @@ export const useChartCartesianAxis = ({
96
96
  if (!target) {
97
97
  return;
98
98
  }
99
- if (target.hasPointerCapture(event.pointerId)) {
99
+ if ('hasPointerCapture' in target && target.hasPointerCapture(event.pointerId)) {
100
100
  target.releasePointerCapture(event.pointerId);
101
101
  }
102
102
  };
@@ -141,7 +141,7 @@ export const useChartPolarAxis = ({
141
141
  if (!target) {
142
142
  return;
143
143
  }
144
- if (target.hasPointerCapture(event.pointerId)) {
144
+ if ('hasPointerCapture' in target && target.hasPointerCapture(event.pointerId)) {
145
145
  target.releasePointerCapture(event.pointerId);
146
146
  }
147
147
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts",
3
- "version": "8.0.0-beta.0",
3
+ "version": "8.0.0-beta.1",
4
4
  "description": "The community edition of the Charts components (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./index.js",
@@ -38,8 +38,8 @@
38
38
  "react-is": "^18.3.1 || ^19.0.0",
39
39
  "reselect": "^5.1.1",
40
40
  "use-sync-external-store": "^1.4.0",
41
- "@mui/x-charts-vendor": "8.0.0-beta.0",
42
- "@mui/x-internals": "8.0.0-beta.0"
41
+ "@mui/x-internals": "8.0.0-beta.0",
42
+ "@mui/x-charts-vendor": "8.0.0-beta.1"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@emotion/react": "^11.9.0",