@mui/x-charts-pro 8.0.0-beta.0 → 8.0.0-beta.2
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 +171 -0
- package/Heatmap/Heatmap.js +6 -6
- package/Heatmap/HeatmapTooltip.d.ts +9 -1
- package/Heatmap/HeatmapTooltip.js +11 -3
- package/esm/Heatmap/Heatmap.js +6 -6
- package/esm/Heatmap/HeatmapTooltip.d.ts +9 -1
- package/esm/Heatmap/HeatmapTooltip.js +11 -3
- package/esm/index.js +1 -1
- package/esm/internals/utils/releaseInfo.js +1 -1
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/Heatmap/Heatmap.js +6 -6
- package/modern/Heatmap/HeatmapTooltip.d.ts +9 -1
- package/modern/Heatmap/HeatmapTooltip.js +11 -3
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
- package/tsconfig.build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,177 @@
|
|
|
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.2
|
|
9
|
+
|
|
10
|
+
_Mar 27, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🔍 Update the Data Grid quick filter to be collapsed when not in use
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
18
|
+
@lhilgert9.
|
|
19
|
+
Following are all team members who have contributed to this release:
|
|
20
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @hasdfa, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @mnajdova, @romgrk.
|
|
21
|
+
|
|
22
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid@8.0.0-beta.2`
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17057) @arminmeh
|
|
29
|
+
- [DataGrid] Refactor: remove more material (#16922) @romgrk
|
|
30
|
+
- [DataGrid] Update Quick Filter component to be expandable (#16862) @KenanYusuf
|
|
31
|
+
- [DataGrid] Fix crash when used with `@mui/styled-engine-sc` (#17154) @KenanYusuf
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.2`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPro] Data source: Allow expanding groups with unknown children (#17144) @MBilalShafi
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.2`.
|
|
42
|
+
|
|
43
|
+
### Date and Time Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@8.0.0-beta.2`
|
|
46
|
+
|
|
47
|
+
- [fields] Extract the props of each field slot into a standalone hook for easier re-use (#17114) @flaviendelangle
|
|
48
|
+
- [pickers] Fix visual regression in Date Range Calendar's day (#17148) @flaviendelangle
|
|
49
|
+
- [pickers] Remove all code duplication to apply default values to validation props (#17038) @flaviendelangle
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
52
|
+
|
|
53
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.2`.
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@8.0.0-beta.2`
|
|
58
|
+
|
|
59
|
+
- [charts] Memoize axes and series with default (#17156) @alexfauquette
|
|
60
|
+
- [charts] Add pie benchmark (#17115) @JCQuintas
|
|
61
|
+
- [charts] Fix CSS vars support for dark theme (#17106) @alexfauquette
|
|
62
|
+
- [charts] Fix radar hover (#17134) @alexfauquette
|
|
63
|
+
- [charts] Move axis interaction to selectors (#17039) @alexfauquette
|
|
64
|
+
- [charts] Fix Pie benchmark (#17125) @JCQuintas
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-charts-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
67
|
+
|
|
68
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.2`.
|
|
69
|
+
|
|
70
|
+
### Tree View
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-tree-view@8.0.0-beta.2`
|
|
73
|
+
|
|
74
|
+
Internal changes.
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
77
|
+
|
|
78
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.2`.
|
|
79
|
+
|
|
80
|
+
### `@mui/x-codemod@8.0.0-beta.1`
|
|
81
|
+
|
|
82
|
+
- [codemod] Add Data Grid codemods (#17121, #17124) @MBilalShafi
|
|
83
|
+
|
|
84
|
+
### Docs
|
|
85
|
+
|
|
86
|
+
- [docs] Fix example import for `ExportExcel` component (#17110) @KenanYusuf
|
|
87
|
+
|
|
88
|
+
### Core
|
|
89
|
+
|
|
90
|
+
- [code-infra] Remove `@mui/styles` dependency & patches (#17071) @mnajdova
|
|
91
|
+
- [code-infra] Add more tests to slow screenshot tests (#17075) @JCQuintas
|
|
92
|
+
- [code-infra] Fix pickers codecov (#17120) @JCQuintas
|
|
93
|
+
- [code-infra] Move `isDeepEqual` to @mui/x-internals (#17129) @JCQuintas
|
|
94
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17108) @LukasTy
|
|
95
|
+
- [code-infra] Update some data-grid tests for vitest (#17078, #17104, #17146) @JCQuintas
|
|
96
|
+
- [code-infra] Update some date-pickers tests for vitest (#17083) @JCQuintas
|
|
97
|
+
- [infra] Update `issue-status-label-handler.yml` @michelengelen
|
|
98
|
+
- [infra] Added reusable issue status label handler workflow (#17145) @michelengelen
|
|
99
|
+
- [infra] Switch to reusable 'stale issues/PRs' workflow (#17107) @michelengelen
|
|
100
|
+
- [telemetry] Improve request body size, update dependencies, and optimize SSR handling (#17008) @hasdfa
|
|
101
|
+
|
|
102
|
+
## 8.0.0-beta.1
|
|
103
|
+
|
|
104
|
+
_Mar 21, 2025_
|
|
105
|
+
|
|
106
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
107
|
+
|
|
108
|
+
- 🐞 Bugfixes
|
|
109
|
+
|
|
110
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
111
|
+
@jyash97.
|
|
112
|
+
Following are all team members who have contributed to this release:
|
|
113
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @JCQuintas, @KenanYusuf.
|
|
114
|
+
|
|
115
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
116
|
+
|
|
117
|
+
### Data Grid
|
|
118
|
+
|
|
119
|
+
#### `@mui/x-data-grid@8.0.0-beta.1`
|
|
120
|
+
|
|
121
|
+
- [DataGrid] Fix error caused by `forwardRef` to `ClickAwayListener` (#17049) @arminmeh
|
|
122
|
+
- [DataGrid] Fix error while editing rows with custom id (#17048) @arminmeh
|
|
123
|
+
|
|
124
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
125
|
+
|
|
126
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.1`, plus:
|
|
127
|
+
|
|
128
|
+
- [DataGridPro] Fix header select checkbox state with `checkboxSelectionVisibleOnly` and `paginationMode="server"` (#17026) @arminmeh
|
|
129
|
+
|
|
130
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
131
|
+
|
|
132
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.1`, plus:
|
|
133
|
+
|
|
134
|
+
- [DataGridPremium] Update column state correctly when grouping mode is updated with one grouping column (#17069) @arminmeh
|
|
135
|
+
|
|
136
|
+
### Date and Time Pickers
|
|
137
|
+
|
|
138
|
+
#### `@mui/x-date-pickers@8.0.0-beta.1`
|
|
139
|
+
|
|
140
|
+
- [fields] Clean the `useField` hook (part 1) (#16944) @flaviendelangle
|
|
141
|
+
- [fields] Improve the check for year in `doesSectionFormatHaveLeadingZeros` (#17051) @flaviendelangle
|
|
142
|
+
- [pickers] Deprecate the `disableOpenPicker` prop (#17040) @flaviendelangle
|
|
143
|
+
- [pickers] Simplify the `cleanLeadingZeros` method (#17063) @flaviendelangle
|
|
144
|
+
- [pickers] Use the new `ownerState` in `PickersDay` and `DateRangePickerDay` (#17035) @flaviendelangle
|
|
145
|
+
|
|
146
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
147
|
+
|
|
148
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.1`, plus:
|
|
149
|
+
|
|
150
|
+
- [DateRangePicker] Use desktop media query constant on range pickers (#17052) @flaviendelangle
|
|
151
|
+
|
|
152
|
+
### Charts
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-charts@8.0.0-beta.1`
|
|
155
|
+
|
|
156
|
+
- [charts] Fix horizontal bar with multiple axes (#17059) @alexfauquette
|
|
157
|
+
|
|
158
|
+
#### `@mui/x-charts-pro@8.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
159
|
+
|
|
160
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.1`, plus:
|
|
161
|
+
|
|
162
|
+
- [charts-pro] Allow disabling Heatmap tooltip (#17060) @JCQuintas
|
|
163
|
+
|
|
164
|
+
### Tree View
|
|
165
|
+
|
|
166
|
+
#### `@mui/x-tree-view@8.0.0-beta.1`
|
|
167
|
+
|
|
168
|
+
Internal changes.
|
|
169
|
+
|
|
170
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
171
|
+
|
|
172
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.1`.
|
|
173
|
+
|
|
174
|
+
### Docs
|
|
175
|
+
|
|
176
|
+
- [docs] Fix 404 (#17033) @alexfauquette
|
|
177
|
+
- [docs] Fix Data Grid advanced list view demo (#17064) @KenanYusuf
|
|
178
|
+
|
|
8
179
|
## 8.0.0-beta.0
|
|
9
180
|
|
|
10
181
|
<img width="100%" alt="MUI X v8 Beta is live" src="https://github.com/user-attachments/assets/61ec4dd8-c946-456b-8b45-d51de8772f5d">
|
package/Heatmap/Heatmap.js
CHANGED
|
@@ -64,7 +64,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
|
|
|
64
64
|
} = props;
|
|
65
65
|
const id = (0, _useId.default)();
|
|
66
66
|
const clipPathId = `${id}-clip-path`;
|
|
67
|
-
const
|
|
67
|
+
const xAxisWithDefault = React.useMemo(() => (xAxis && xAxis.length > 0 ? xAxis : [{
|
|
68
68
|
id: _constants.DEFAULT_X_AXIS_KEY
|
|
69
69
|
}]).map(axis => (0, _extends2.default)({
|
|
70
70
|
scaleType: 'band',
|
|
@@ -72,7 +72,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
|
|
|
72
72
|
}, axis, {
|
|
73
73
|
data: axis.data ?? getDefaultDataForXAxis(series)
|
|
74
74
|
})), [series, xAxis]);
|
|
75
|
-
const
|
|
75
|
+
const yAxisWithDefault = React.useMemo(() => (yAxis && yAxis.length > 0 ? yAxis : [{
|
|
76
76
|
id: _constants.DEFAULT_Y_AXIS_KEY
|
|
77
77
|
}]).map(axis => (0, _extends2.default)({
|
|
78
78
|
scaleType: 'band',
|
|
@@ -80,7 +80,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
|
|
|
80
80
|
}, axis, {
|
|
81
81
|
data: axis.data ?? getDefaultDataForYAxis(series)
|
|
82
82
|
})), [series, yAxis]);
|
|
83
|
-
const
|
|
83
|
+
const zAxisWithDefault = React.useMemo(() => zAxis ?? [{
|
|
84
84
|
colorMap: {
|
|
85
85
|
type: 'continuous',
|
|
86
86
|
min: 0,
|
|
@@ -98,9 +98,9 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
|
|
|
98
98
|
width: width,
|
|
99
99
|
height: height,
|
|
100
100
|
margin: margin,
|
|
101
|
-
xAxis:
|
|
102
|
-
yAxis:
|
|
103
|
-
zAxis:
|
|
101
|
+
xAxis: xAxisWithDefault,
|
|
102
|
+
yAxis: yAxisWithDefault,
|
|
103
|
+
zAxis: zAxisWithDefault,
|
|
104
104
|
colors: colors,
|
|
105
105
|
dataset: dataset,
|
|
106
106
|
sx: sx,
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartsTooltipContainerProps } from '@mui/x-charts/ChartsTooltip';
|
|
3
|
-
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
3
|
+
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Select the kind of tooltip to display
|
|
6
|
+
* - 'item': Shows data about the item below the mouse.
|
|
7
|
+
* - 'none': Does not display tooltip
|
|
8
|
+
* @default 'item'
|
|
9
|
+
*/
|
|
10
|
+
trigger?: 'item' | 'none';
|
|
11
|
+
}
|
|
4
12
|
declare function HeatmapTooltip(props: HeatmapTooltipProps): React.JSX.Element;
|
|
5
13
|
declare namespace HeatmapTooltip {
|
|
6
14
|
var propTypes: any;
|
|
@@ -121,9 +121,10 @@ function HeatmapTooltip(props) {
|
|
|
121
121
|
const classes = useUtilityClasses({
|
|
122
122
|
classes: props.classes
|
|
123
123
|
});
|
|
124
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipContainer, (0, _extends2.default)({
|
|
124
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltip.ChartsTooltipContainer, (0, _extends2.default)({
|
|
125
|
+
trigger: "item"
|
|
126
|
+
}, props, {
|
|
125
127
|
classes: classes,
|
|
126
|
-
trigger: "item",
|
|
127
128
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(DefaultHeatmapTooltipContent, {
|
|
128
129
|
classes: classes
|
|
129
130
|
})
|
|
@@ -282,5 +283,12 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
282
283
|
* Help supporting a react-transition-group/Transition component.
|
|
283
284
|
* @default false
|
|
284
285
|
*/
|
|
285
|
-
transition: _propTypes.default.bool
|
|
286
|
+
transition: _propTypes.default.bool,
|
|
287
|
+
/**
|
|
288
|
+
* Select the kind of tooltip to display
|
|
289
|
+
* - 'item': Shows data about the item below the mouse.
|
|
290
|
+
* - 'none': Does not display tooltip
|
|
291
|
+
* @default 'item'
|
|
292
|
+
*/
|
|
293
|
+
trigger: _propTypes.default.oneOf(['item', 'none'])
|
|
286
294
|
} : void 0;
|
package/esm/Heatmap/Heatmap.js
CHANGED
|
@@ -57,7 +57,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
57
57
|
} = props;
|
|
58
58
|
const id = useId();
|
|
59
59
|
const clipPathId = `${id}-clip-path`;
|
|
60
|
-
const
|
|
60
|
+
const xAxisWithDefault = React.useMemo(() => (xAxis && xAxis.length > 0 ? xAxis : [{
|
|
61
61
|
id: DEFAULT_X_AXIS_KEY
|
|
62
62
|
}]).map(axis => _extends({
|
|
63
63
|
scaleType: 'band',
|
|
@@ -65,7 +65,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
65
65
|
}, axis, {
|
|
66
66
|
data: axis.data ?? getDefaultDataForXAxis(series)
|
|
67
67
|
})), [series, xAxis]);
|
|
68
|
-
const
|
|
68
|
+
const yAxisWithDefault = React.useMemo(() => (yAxis && yAxis.length > 0 ? yAxis : [{
|
|
69
69
|
id: DEFAULT_Y_AXIS_KEY
|
|
70
70
|
}]).map(axis => _extends({
|
|
71
71
|
scaleType: 'band',
|
|
@@ -73,7 +73,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
73
73
|
}, axis, {
|
|
74
74
|
data: axis.data ?? getDefaultDataForYAxis(series)
|
|
75
75
|
})), [series, yAxis]);
|
|
76
|
-
const
|
|
76
|
+
const zAxisWithDefault = React.useMemo(() => zAxis ?? [{
|
|
77
77
|
colorMap: {
|
|
78
78
|
type: 'continuous',
|
|
79
79
|
min: 0,
|
|
@@ -91,9 +91,9 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
91
91
|
width: width,
|
|
92
92
|
height: height,
|
|
93
93
|
margin: margin,
|
|
94
|
-
xAxis:
|
|
95
|
-
yAxis:
|
|
96
|
-
zAxis:
|
|
94
|
+
xAxis: xAxisWithDefault,
|
|
95
|
+
yAxis: yAxisWithDefault,
|
|
96
|
+
zAxis: zAxisWithDefault,
|
|
97
97
|
colors: colors,
|
|
98
98
|
dataset: dataset,
|
|
99
99
|
sx: sx,
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartsTooltipContainerProps } from '@mui/x-charts/ChartsTooltip';
|
|
3
|
-
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
3
|
+
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Select the kind of tooltip to display
|
|
6
|
+
* - 'item': Shows data about the item below the mouse.
|
|
7
|
+
* - 'none': Does not display tooltip
|
|
8
|
+
* @default 'item'
|
|
9
|
+
*/
|
|
10
|
+
trigger?: 'item' | 'none';
|
|
11
|
+
}
|
|
4
12
|
declare function HeatmapTooltip(props: HeatmapTooltipProps): React.JSX.Element;
|
|
5
13
|
declare namespace HeatmapTooltip {
|
|
6
14
|
var propTypes: any;
|
|
@@ -114,9 +114,10 @@ function HeatmapTooltip(props) {
|
|
|
114
114
|
const classes = useUtilityClasses({
|
|
115
115
|
classes: props.classes
|
|
116
116
|
});
|
|
117
|
-
return /*#__PURE__*/_jsx(ChartsTooltipContainer, _extends({
|
|
117
|
+
return /*#__PURE__*/_jsx(ChartsTooltipContainer, _extends({
|
|
118
|
+
trigger: "item"
|
|
119
|
+
}, props, {
|
|
118
120
|
classes: classes,
|
|
119
|
-
trigger: "item",
|
|
120
121
|
children: /*#__PURE__*/_jsx(DefaultHeatmapTooltipContent, {
|
|
121
122
|
classes: classes
|
|
122
123
|
})
|
|
@@ -275,6 +276,13 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
275
276
|
* Help supporting a react-transition-group/Transition component.
|
|
276
277
|
* @default false
|
|
277
278
|
*/
|
|
278
|
-
transition: PropTypes.bool
|
|
279
|
+
transition: PropTypes.bool,
|
|
280
|
+
/**
|
|
281
|
+
* Select the kind of tooltip to display
|
|
282
|
+
* - 'item': Shows data about the item below the mouse.
|
|
283
|
+
* - 'none': Does not display tooltip
|
|
284
|
+
* @default 'item'
|
|
285
|
+
*/
|
|
286
|
+
trigger: PropTypes.oneOf(['item', 'none'])
|
|
279
287
|
} : void 0;
|
|
280
288
|
export { HeatmapTooltip };
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getReleaseInfo = void 0;
|
|
8
8
|
var _ponyfillGlobal = _interopRequireDefault(require("@mui/utils/ponyfillGlobal"));
|
|
9
9
|
const getReleaseInfo = () => {
|
|
10
|
-
const releaseInfo = "
|
|
10
|
+
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
11
11
|
if (process.env.NODE_ENV !== 'production') {
|
|
12
12
|
// A simple hack to set the value in the test environment (has no build step).
|
|
13
13
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -57,7 +57,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
57
57
|
} = props;
|
|
58
58
|
const id = useId();
|
|
59
59
|
const clipPathId = `${id}-clip-path`;
|
|
60
|
-
const
|
|
60
|
+
const xAxisWithDefault = React.useMemo(() => (xAxis && xAxis.length > 0 ? xAxis : [{
|
|
61
61
|
id: DEFAULT_X_AXIS_KEY
|
|
62
62
|
}]).map(axis => _extends({
|
|
63
63
|
scaleType: 'band',
|
|
@@ -65,7 +65,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
65
65
|
}, axis, {
|
|
66
66
|
data: axis.data ?? getDefaultDataForXAxis(series)
|
|
67
67
|
})), [series, xAxis]);
|
|
68
|
-
const
|
|
68
|
+
const yAxisWithDefault = React.useMemo(() => (yAxis && yAxis.length > 0 ? yAxis : [{
|
|
69
69
|
id: DEFAULT_Y_AXIS_KEY
|
|
70
70
|
}]).map(axis => _extends({
|
|
71
71
|
scaleType: 'band',
|
|
@@ -73,7 +73,7 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
73
73
|
}, axis, {
|
|
74
74
|
data: axis.data ?? getDefaultDataForYAxis(series)
|
|
75
75
|
})), [series, yAxis]);
|
|
76
|
-
const
|
|
76
|
+
const zAxisWithDefault = React.useMemo(() => zAxis ?? [{
|
|
77
77
|
colorMap: {
|
|
78
78
|
type: 'continuous',
|
|
79
79
|
min: 0,
|
|
@@ -91,9 +91,9 @@ const Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap(inProps, ref) {
|
|
|
91
91
|
width: width,
|
|
92
92
|
height: height,
|
|
93
93
|
margin: margin,
|
|
94
|
-
xAxis:
|
|
95
|
-
yAxis:
|
|
96
|
-
zAxis:
|
|
94
|
+
xAxis: xAxisWithDefault,
|
|
95
|
+
yAxis: yAxisWithDefault,
|
|
96
|
+
zAxis: zAxisWithDefault,
|
|
97
97
|
colors: colors,
|
|
98
98
|
dataset: dataset,
|
|
99
99
|
sx: sx,
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartsTooltipContainerProps } from '@mui/x-charts/ChartsTooltip';
|
|
3
|
-
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
3
|
+
export interface HeatmapTooltipProps extends Omit<ChartsTooltipContainerProps, 'trigger' | 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Select the kind of tooltip to display
|
|
6
|
+
* - 'item': Shows data about the item below the mouse.
|
|
7
|
+
* - 'none': Does not display tooltip
|
|
8
|
+
* @default 'item'
|
|
9
|
+
*/
|
|
10
|
+
trigger?: 'item' | 'none';
|
|
11
|
+
}
|
|
4
12
|
declare function HeatmapTooltip(props: HeatmapTooltipProps): React.JSX.Element;
|
|
5
13
|
declare namespace HeatmapTooltip {
|
|
6
14
|
var propTypes: any;
|
|
@@ -114,9 +114,10 @@ function HeatmapTooltip(props) {
|
|
|
114
114
|
const classes = useUtilityClasses({
|
|
115
115
|
classes: props.classes
|
|
116
116
|
});
|
|
117
|
-
return /*#__PURE__*/_jsx(ChartsTooltipContainer, _extends({
|
|
117
|
+
return /*#__PURE__*/_jsx(ChartsTooltipContainer, _extends({
|
|
118
|
+
trigger: "item"
|
|
119
|
+
}, props, {
|
|
118
120
|
classes: classes,
|
|
119
|
-
trigger: "item",
|
|
120
121
|
children: /*#__PURE__*/_jsx(DefaultHeatmapTooltipContent, {
|
|
121
122
|
classes: classes
|
|
122
123
|
})
|
|
@@ -275,6 +276,13 @@ process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
|
275
276
|
* Help supporting a react-transition-group/Transition component.
|
|
276
277
|
* @default false
|
|
277
278
|
*/
|
|
278
|
-
transition: PropTypes.bool
|
|
279
|
+
transition: PropTypes.bool,
|
|
280
|
+
/**
|
|
281
|
+
* Select the kind of tooltip to display
|
|
282
|
+
* - 'item': Shows data about the item below the mouse.
|
|
283
|
+
* - 'none': Does not display tooltip
|
|
284
|
+
* @default 'item'
|
|
285
|
+
*/
|
|
286
|
+
trigger: PropTypes.oneOf(['item', 'none'])
|
|
279
287
|
} : void 0;
|
|
280
288
|
export { HeatmapTooltip };
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts-pro",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
4
|
"description": "The Pro plan edition of the Charts components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@react-spring/web": "^9.7.5",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"prop-types": "^15.8.1",
|
|
38
|
-
"@mui/x-
|
|
39
|
-
"@mui/x-charts": "8.0.0-beta.
|
|
40
|
-
"@mui/x-
|
|
41
|
-
"@mui/x-
|
|
38
|
+
"@mui/x-internals": "8.0.0-beta.2",
|
|
39
|
+
"@mui/x-charts": "8.0.0-beta.2",
|
|
40
|
+
"@mui/x-charts-vendor": "8.0.0-beta.1",
|
|
41
|
+
"@mui/x-license": "8.0.0-beta.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.9.0",
|