@mui/x-charts-pro 7.0.0-alpha.3 → 7.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.
- package/BarChartPro/BarChartPro.js +44 -53
- package/BarChartPro/index.js +1 -1
- package/CHANGELOG.md +185 -1
- package/ChartContainerPro/ChartContainerPro.js +6 -4
- package/ChartContainerPro/index.js +1 -1
- package/ChartContainerPro/useChartContainerProProps.js +2 -0
- package/Heatmap/DefaultHeatmapTooltip.js +3 -1
- package/Heatmap/Heatmap.js +6 -4
- package/Heatmap/HeatmapItem.js +1 -1
- package/Heatmap/HeatmapPlot.js +4 -2
- package/Heatmap/index.js +4 -4
- package/Heatmap/plugin.js +3 -3
- package/LineChartPro/LineChartPro.js +64 -111
- package/LineChartPro/index.js +1 -1
- package/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +5 -3
- package/ResponsiveChartContainerPro/index.js +1 -1
- package/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +2 -0
- package/ScatterChartPro/ScatterChartPro.js +17 -3
- package/ScatterChartPro/index.js +1 -1
- package/context/CartesianProviderPro/CartesianProviderPro.js +4 -2
- package/context/CartesianProviderPro/index.js +1 -1
- package/context/ZoomProvider/ZoomProvider.js +5 -3
- package/context/ZoomProvider/ZoomSetup.js +2 -2
- package/context/ZoomProvider/index.js +3 -3
- package/context/ZoomProvider/useSetupPan.js +3 -1
- package/context/ZoomProvider/useSetupZoom.js +3 -1
- package/context/ZoomProvider/useZoom.js +3 -1
- package/context/index.js +2 -2
- package/hooks/index.js +1 -1
- package/hooks/useSeries.js +2 -0
- package/index.js +9 -9
- package/internals/utils/releaseInfo.js +1 -1
- package/models/index.js +1 -1
- package/models/seriesType/index.js +1 -1
- package/modern/BarChartPro/BarChartPro.js +44 -53
- package/modern/BarChartPro/index.js +1 -1
- package/modern/ChartContainerPro/ChartContainerPro.js +6 -4
- package/modern/ChartContainerPro/index.js +1 -1
- package/modern/ChartContainerPro/useChartContainerProProps.js +2 -0
- package/modern/Heatmap/DefaultHeatmapTooltip.js +3 -1
- package/modern/Heatmap/Heatmap.js +6 -4
- package/modern/Heatmap/HeatmapItem.js +1 -1
- package/modern/Heatmap/HeatmapPlot.js +4 -2
- package/modern/Heatmap/index.js +4 -4
- package/modern/Heatmap/plugin.js +3 -3
- package/modern/LineChartPro/LineChartPro.js +64 -111
- package/modern/LineChartPro/index.js +1 -1
- package/modern/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +5 -3
- package/modern/ResponsiveChartContainerPro/index.js +1 -1
- package/modern/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +2 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +17 -3
- package/modern/ScatterChartPro/index.js +1 -1
- package/modern/context/CartesianProviderPro/CartesianProviderPro.js +4 -2
- package/modern/context/CartesianProviderPro/index.js +1 -1
- package/modern/context/ZoomProvider/ZoomProvider.js +5 -3
- package/modern/context/ZoomProvider/ZoomSetup.js +2 -2
- package/modern/context/ZoomProvider/index.js +3 -3
- package/modern/context/ZoomProvider/useSetupPan.js +3 -1
- package/modern/context/ZoomProvider/useSetupZoom.js +3 -1
- package/modern/context/ZoomProvider/useZoom.js +3 -1
- package/modern/context/index.js +2 -2
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/useSeries.js +2 -0
- package/modern/index.js +9 -9
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.js +1 -1
- package/modern/models/seriesType/index.js +1 -1
- package/modern/themeAugmentation/index.js +0 -4
- package/modern/typeOverloads/index.js +1 -1
- package/node/BarChartPro/BarChartPro.js +42 -53
- package/node/ChartContainerPro/ChartContainerPro.js +3 -3
- package/node/ChartContainerPro/useChartContainerProProps.js +2 -1
- package/node/Heatmap/DefaultHeatmapTooltip.js +4 -4
- package/node/Heatmap/Heatmap.js +3 -3
- package/node/Heatmap/HeatmapItem.js +2 -3
- package/node/Heatmap/HeatmapPlot.js +3 -3
- package/node/Heatmap/formatter.js +1 -1
- package/node/Heatmap/heatmapClasses.js +1 -1
- package/node/Heatmap/plugin.js +1 -1
- package/node/LineChartPro/LineChartPro.js +62 -111
- package/node/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
- package/node/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +2 -1
- package/node/ScatterChartPro/ScatterChartPro.js +16 -4
- package/node/context/CartesianProviderPro/CartesianProviderPro.js +3 -3
- package/node/context/ZoomProvider/ZoomContext.js +1 -2
- package/node/context/ZoomProvider/ZoomProvider.js +3 -3
- package/node/context/ZoomProvider/defaultizeZoom.js +1 -1
- package/node/context/ZoomProvider/useSetupPan.js +3 -3
- package/node/context/ZoomProvider/useSetupZoom.js +2 -2
- package/node/context/ZoomProvider/useZoom.js +2 -2
- package/node/hooks/useSeries.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/node/themeAugmentation/index.js +1 -49
- package/package.json +6 -5
- package/themeAugmentation/index.d.ts +4 -4
- package/themeAugmentation/index.js +0 -4
- package/typeOverloads/index.js +1 -1
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
2
3
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
3
5
|
const _excluded = ["zoom", "onZoomChange"];
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
@@ -14,10 +16,18 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
|
|
|
14
16
|
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
15
17
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
16
18
|
import { useBarChartProps } from '@mui/x-charts/internals';
|
|
17
|
-
import { ResponsiveChartContainerPro } from
|
|
18
|
-
import { ZoomSetup } from
|
|
19
|
-
import { useZoom } from
|
|
19
|
+
import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
|
|
20
|
+
import { ZoomSetup } from "../context/ZoomProvider/ZoomSetup.js";
|
|
21
|
+
import { useZoom } from "../context/ZoomProvider/useZoom.js";
|
|
20
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
|
+
function BarChartPlotZoom(props) {
|
|
24
|
+
const {
|
|
25
|
+
isInteracting
|
|
26
|
+
} = useZoom();
|
|
27
|
+
return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
|
|
28
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
29
|
+
}));
|
|
30
|
+
}
|
|
21
31
|
/**
|
|
22
32
|
* Demos:
|
|
23
33
|
*
|
|
@@ -58,7 +68,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
58
68
|
}, chartContainerProps, {
|
|
59
69
|
zoom: zoom,
|
|
60
70
|
onZoomChange: onZoomChange,
|
|
61
|
-
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)),
|
|
71
|
+
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
62
72
|
children: [/*#__PURE__*/_jsx(BarChartPlotZoom, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
63
73
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
|
|
64
74
|
}));
|
|
@@ -150,6 +160,18 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
150
160
|
classes: PropTypes.object,
|
|
151
161
|
direction: PropTypes.oneOf(['column', 'row']),
|
|
152
162
|
hidden: PropTypes.bool,
|
|
163
|
+
itemGap: PropTypes.number,
|
|
164
|
+
itemMarkHeight: PropTypes.number,
|
|
165
|
+
itemMarkWidth: PropTypes.number,
|
|
166
|
+
labelStyle: PropTypes.object,
|
|
167
|
+
markGap: PropTypes.number,
|
|
168
|
+
onItemClick: PropTypes.func,
|
|
169
|
+
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
170
|
+
bottom: PropTypes.number,
|
|
171
|
+
left: PropTypes.number,
|
|
172
|
+
right: PropTypes.number,
|
|
173
|
+
top: PropTypes.number
|
|
174
|
+
})]),
|
|
153
175
|
position: PropTypes.shape({
|
|
154
176
|
horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
|
|
155
177
|
vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
|
|
@@ -193,6 +215,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
193
215
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
194
216
|
*/
|
|
195
217
|
onItemClick: PropTypes.func,
|
|
218
|
+
/**
|
|
219
|
+
* Callback fired when the zoom has changed.
|
|
220
|
+
*
|
|
221
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
222
|
+
*/
|
|
223
|
+
onZoomChange: PropTypes.func,
|
|
196
224
|
/**
|
|
197
225
|
* Indicate which axis to display the right of the charts.
|
|
198
226
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -255,7 +283,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
255
283
|
* An array of [[AxisConfig]] objects.
|
|
256
284
|
*/
|
|
257
285
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
258
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
259
286
|
classes: PropTypes.object,
|
|
260
287
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
261
288
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -290,6 +317,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
290
317
|
slotProps: PropTypes.object,
|
|
291
318
|
slots: PropTypes.object,
|
|
292
319
|
stroke: PropTypes.string,
|
|
320
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
293
321
|
tickFontSize: PropTypes.number,
|
|
294
322
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
295
323
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -302,6 +330,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
302
330
|
tickSize: PropTypes.number,
|
|
303
331
|
valueFormatter: PropTypes.func,
|
|
304
332
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
333
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
305
334
|
maxEnd: PropTypes.number,
|
|
306
335
|
maxSpan: PropTypes.number,
|
|
307
336
|
minSpan: PropTypes.number,
|
|
@@ -316,7 +345,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
316
345
|
* An array of [[AxisConfig]] objects.
|
|
317
346
|
*/
|
|
318
347
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
319
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
320
348
|
classes: PropTypes.object,
|
|
321
349
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
322
350
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -351,6 +379,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
351
379
|
slotProps: PropTypes.object,
|
|
352
380
|
slots: PropTypes.object,
|
|
353
381
|
stroke: PropTypes.string,
|
|
382
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
354
383
|
tickFontSize: PropTypes.number,
|
|
355
384
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
356
385
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -363,6 +392,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
363
392
|
tickSize: PropTypes.number,
|
|
364
393
|
valueFormatter: PropTypes.func,
|
|
365
394
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
395
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
366
396
|
maxEnd: PropTypes.number,
|
|
367
397
|
maxSpan: PropTypes.number,
|
|
368
398
|
minSpan: PropTypes.number,
|
|
@@ -370,53 +400,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
370
400
|
panning: PropTypes.bool,
|
|
371
401
|
step: PropTypes.number
|
|
372
402
|
}), PropTypes.bool])
|
|
373
|
-
}))
|
|
374
|
-
} : void 0;
|
|
375
|
-
function BarChartPlotZoom(props) {
|
|
376
|
-
const {
|
|
377
|
-
isInteracting
|
|
378
|
-
} = useZoom();
|
|
379
|
-
return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
|
|
380
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
381
|
-
}));
|
|
382
|
-
}
|
|
383
|
-
process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
|
|
384
|
-
// ----------------------------- Warning --------------------------------
|
|
385
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
386
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
387
|
-
// ----------------------------------------------------------------------
|
|
388
|
-
/**
|
|
389
|
-
* If provided, the function will be used to format the label of the bar.
|
|
390
|
-
* It can be set to 'value' to display the current value.
|
|
391
|
-
* @param {BarItem} item The item to format.
|
|
392
|
-
* @param {BarLabelContext} context data about the bar.
|
|
393
|
-
* @returns {string} The formatted label.
|
|
394
|
-
*/
|
|
395
|
-
barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
|
|
396
|
-
/**
|
|
397
|
-
* Defines the border radius of the bar element.
|
|
398
|
-
*/
|
|
399
|
-
borderRadius: PropTypes.number,
|
|
400
|
-
/**
|
|
401
|
-
* Callback fired when a bar item is clicked.
|
|
402
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
403
|
-
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
404
|
-
*/
|
|
405
|
-
onItemClick: PropTypes.func,
|
|
406
|
-
/**
|
|
407
|
-
* If `true`, animations are skipped.
|
|
408
|
-
* @default false
|
|
409
|
-
*/
|
|
410
|
-
skipAnimation: PropTypes.bool,
|
|
411
|
-
/**
|
|
412
|
-
* The props used for each component slot.
|
|
413
|
-
* @default {}
|
|
414
|
-
*/
|
|
415
|
-
slotProps: PropTypes.object,
|
|
403
|
+
})),
|
|
416
404
|
/**
|
|
417
|
-
*
|
|
418
|
-
* @default {}
|
|
405
|
+
* The list of zoom data related to each axis.
|
|
419
406
|
*/
|
|
420
|
-
|
|
407
|
+
zoom: PropTypes.arrayOf(PropTypes.shape({
|
|
408
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
409
|
+
end: PropTypes.number.isRequired,
|
|
410
|
+
start: PropTypes.number.isRequired
|
|
411
|
+
}))
|
|
421
412
|
} : void 0;
|
|
422
413
|
export { BarChartPro };
|
package/BarChartPro/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./BarChartPro.js";
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,192 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
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.17.0
|
|
7
|
+
|
|
8
|
+
_Sep 13, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 📊 Charts performance improvement
|
|
13
|
+
- 🧑💻 New Data Grid [custom columns demo](https://mui.com/x/react-data-grid/custom-columns/#full-example)
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
- 🌍 Improve Hungarian (hu-HU) locale on the Data Grid
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.17.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add "does not equal" and "does not contain" filter operators (#14489) @KenanYusuf
|
|
25
|
+
- [DataGrid] Add demo to the "Custom columns" page that does not use generator (#13695) @arminmeh
|
|
26
|
+
- [DataGrid] Fix Voice Over reading the column name twice (#14482) @arminmeh
|
|
27
|
+
- [DataGrid] Fix bug in CRUD example (#14513) @michelengelen
|
|
28
|
+
- [DataGrid] Fix failing jsdom tests caused by `:has()` selectors (#14559) @KenanYusuf
|
|
29
|
+
- [DataGrid] Refactor string operator filter functions (#14564) @KenanYusuf
|
|
30
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#14506) @ntamas
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-pro@7.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid@7.17.0`.
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@7.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@7.17.0`.
|
|
39
|
+
|
|
40
|
+
### Date and Time Pickers
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers@7.17.0`
|
|
43
|
+
|
|
44
|
+
- [fields] Improve `useSplitFieldProps` and make it public (#14514) @flaviendelangle
|
|
45
|
+
- [pickers] Improve clear action label (#14243) @oliviertassinari
|
|
46
|
+
- [pickers] Add `"use client"` directive to every public component and hook (#14562) @flaviendelangle
|
|
47
|
+
- [pickers] Allow custom fields to validate the value (#14486) @flaviendelangle
|
|
48
|
+
- [pickers] Stop using utils in locales (#14505) @flaviendelangle
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers-pro@7.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-date-pickers@7.17.0`, plus:
|
|
53
|
+
|
|
54
|
+
- [DateRangePicker] Fix `currentMonthCalendarPosition` not scrolling to future sibling (#14442) @GMchris
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.17.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Add `"use client"` directive to every public component and hook (#14578) @flaviendelangle
|
|
61
|
+
- [charts] Allow `onItemClick` on the `Legend` component (#14231) @JCQuintas
|
|
62
|
+
- [charts] Fix `onAxisClick` with `layout='horizontal'` (#14547) @alexfauquette
|
|
63
|
+
- [charts] Replace `path` with `circle` for performance improvement (#14518) @alexfauquette
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-charts-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-charts@7.17.0`.
|
|
68
|
+
|
|
69
|
+
### Tree View
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-tree-view@7.17.0`
|
|
72
|
+
|
|
73
|
+
- [TreeView] Make `useTreeItem2` stable (#14498) @flaviendelangle
|
|
74
|
+
|
|
75
|
+
### Docs
|
|
76
|
+
|
|
77
|
+
- [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
|
|
78
|
+
- [docs] Fix broken redirection to MUI X v5 @oliviertassinari
|
|
79
|
+
- [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
|
|
80
|
+
- [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
|
|
81
|
+
- [docs] Match title with blog posts @oliviertassinari
|
|
82
|
+
|
|
83
|
+
### Core
|
|
84
|
+
|
|
85
|
+
- [core] Move warning methods to `@mui/x-internals` (#14528) @k-rajat19
|
|
86
|
+
- [core] Sync with core release flow @oliviertassinari
|
|
87
|
+
- [code-infra] Fix charts benchmark workflow (#14573) @JCQuintas
|
|
88
|
+
- [docs-infra] Type interface API pages (#14138) @alexfauquette
|
|
89
|
+
- [infra] Create `ESLint plugins` renovate group (#14574) @LukasTy
|
|
90
|
+
- [license] Clean-up terminology to match codebase (#14531) @oliviertassinari
|
|
91
|
+
- [test] Remove dead `act()` logic (#14529) @oliviertassinari
|
|
92
|
+
|
|
93
|
+
## 7.16.0
|
|
94
|
+
|
|
95
|
+
_Sep 5, 2024_
|
|
96
|
+
|
|
97
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
98
|
+
|
|
99
|
+
- 🎨 Update the design of Data Grid column headers (#14293)
|
|
100
|
+
- 🧠 Add the `slots` concept introduction documentation page (#13881)
|
|
101
|
+
- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
|
|
102
|
+
- 🐞 Bugfixes
|
|
103
|
+
- 📚 Documentation improvements
|
|
104
|
+
|
|
105
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
106
|
+
|
|
107
|
+
### Data Grid
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-data-grid@7.16.0`
|
|
110
|
+
|
|
111
|
+
- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
|
|
112
|
+
- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
|
|
113
|
+
- [DataGrid] Column header design updates (#14293) @KenanYusuf
|
|
114
|
+
- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
|
|
115
|
+
- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
|
|
116
|
+
- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
|
|
117
|
+
- [DataGrid] Restore reselect behavior (#14410) @romgrk
|
|
118
|
+
- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
|
|
119
|
+
- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
|
|
120
|
+
|
|
121
|
+
#### `@mui/x-data-grid-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
122
|
+
|
|
123
|
+
Same changes as in `@mui/x-data-grid@7.16.0`, plus:
|
|
124
|
+
|
|
125
|
+
- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-data-grid-premium@7.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
128
|
+
|
|
129
|
+
Same changes as in `@mui/x-data-grid-pro@7.16.0`.
|
|
130
|
+
|
|
131
|
+
### Date and Time Pickers
|
|
132
|
+
|
|
133
|
+
#### `@mui/x-date-pickers@7.16.0`
|
|
134
|
+
|
|
135
|
+
- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
|
|
136
|
+
- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
|
|
137
|
+
- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
|
|
138
|
+
|
|
139
|
+
#### `@mui/x-date-pickers-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
140
|
+
|
|
141
|
+
Same changes as in `@mui/x-date-pickers@7.16.0`.
|
|
142
|
+
|
|
143
|
+
### Charts
|
|
144
|
+
|
|
145
|
+
#### `@mui/x-charts@7.16.0`
|
|
146
|
+
|
|
147
|
+
- [charts] Fix JSDoc typos (#14497) @alexfauquette
|
|
148
|
+
- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
|
|
149
|
+
- [charts] Fix theme augmentation (#14372) @alexfauquette
|
|
150
|
+
- [charts] Pass all props to legend (#14392) @JCQuintas
|
|
151
|
+
- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
|
|
152
|
+
- [charts] Update `package.json` for vendor package (#14465) @alexfauquette
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-charts-pro@7.0.0-beta.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
|
+
|
|
156
|
+
Same changes as in `@mui/x-charts@7.16.0`, plus:
|
|
157
|
+
|
|
158
|
+
- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
|
|
159
|
+
|
|
160
|
+
### Tree View
|
|
161
|
+
|
|
162
|
+
#### `@mui/x-tree-view@7.16.0`
|
|
163
|
+
|
|
164
|
+
- [TreeView] Clean label editing code (#14264) @flaviendelangle
|
|
165
|
+
|
|
166
|
+
### `@mui/x-codemod@7.16.0`
|
|
167
|
+
|
|
168
|
+
- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
|
|
169
|
+
|
|
170
|
+
### Docs
|
|
171
|
+
|
|
172
|
+
- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
|
|
173
|
+
- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
|
|
174
|
+
- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
|
|
175
|
+
- [docs] Remove notion of seats (#14351) @oliviertassinari
|
|
176
|
+
- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
|
|
177
|
+
|
|
178
|
+
### Core
|
|
179
|
+
|
|
180
|
+
- [core] Fix changelog spelling @oliviertassinari
|
|
181
|
+
- [core] Fix failing tests on the pickers (#14457) @flaviendelangle
|
|
182
|
+
- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
|
|
183
|
+
- [code-infra] Add babel runtime version check (#14483) @Janpot
|
|
184
|
+
- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
|
|
185
|
+
- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
|
|
186
|
+
- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
|
|
187
|
+
- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
|
|
188
|
+
- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
|
|
189
|
+
|
|
6
190
|
## 7.15.0
|
|
7
191
|
|
|
8
192
|
_Aug 29, 2024_
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
@@ -5,10 +7,10 @@ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
|
5
7
|
import { HighlightedProvider, ZAxisContextProvider } from '@mui/x-charts/context';
|
|
6
8
|
import { ChartsAxesGradients, DrawingProvider, InteractionProvider, PluginProvider, SeriesProvider } from '@mui/x-charts/internals';
|
|
7
9
|
import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
|
|
8
|
-
import { getReleaseInfo } from
|
|
9
|
-
import { CartesianProviderPro } from
|
|
10
|
-
import { ZoomProvider } from
|
|
11
|
-
import { useChartContainerProProps } from
|
|
10
|
+
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
11
|
+
import { CartesianProviderPro } from "../context/CartesianProviderPro/index.js";
|
|
12
|
+
import { ZoomProvider } from "../context/ZoomProvider/index.js";
|
|
13
|
+
import { useChartContainerProProps } from "./useChartContainerProProps.js";
|
|
12
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
15
|
const releaseInfo = getReleaseInfo();
|
|
14
16
|
const ChartContainerPro = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ChartContainerPro.js";
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import clsx from 'clsx';
|
|
@@ -89,7 +91,7 @@ process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltip.propTypes = {
|
|
|
89
91
|
type: PropTypes.oneOf(['heatmap']).isRequired
|
|
90
92
|
}).isRequired,
|
|
91
93
|
/**
|
|
92
|
-
* The series linked to the triggered
|
|
94
|
+
* The series linked to the triggered item.
|
|
93
95
|
*/
|
|
94
96
|
series: PropTypes.object.isRequired,
|
|
95
97
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
package/Heatmap/Heatmap.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
4
|
import * as React from 'react';
|
|
3
5
|
import PropTypes from 'prop-types';
|
|
@@ -9,10 +11,10 @@ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
|
9
11
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
10
12
|
import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
|
|
11
13
|
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
12
|
-
import { ResponsiveChartContainerPro } from
|
|
13
|
-
import { HeatmapPlot } from
|
|
14
|
-
import { plugin as heatmapPlugin } from
|
|
15
|
-
import { DefaultHeatmapTooltip } from
|
|
14
|
+
import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
|
|
15
|
+
import { HeatmapPlot } from "./HeatmapPlot.js";
|
|
16
|
+
import { plugin as heatmapPlugin } from "./plugin.js";
|
|
17
|
+
import { DefaultHeatmapTooltip } from "./DefaultHeatmapTooltip.js";
|
|
16
18
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
19
|
// The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
|
|
18
20
|
const defaultColorMap = interpolateRgbBasis(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
|
package/Heatmap/HeatmapItem.js
CHANGED
|
@@ -8,7 +8,7 @@ import useSlotProps from '@mui/utils/useSlotProps';
|
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
9
9
|
import { useItemHighlighted } from '@mui/x-charts/context';
|
|
10
10
|
import { useInteractionItemProps } from '@mui/x-charts/internals';
|
|
11
|
-
import { getHeatmapUtilityClass } from
|
|
11
|
+
import { getHeatmapUtilityClass } from "./heatmapClasses.js";
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
const HeatmapCell = styled('rect', {
|
|
14
14
|
name: 'MuiHeatmap',
|
package/Heatmap/HeatmapPlot.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
1
3
|
import * as React from 'react';
|
|
2
4
|
import PropTypes from 'prop-types';
|
|
3
5
|
import { useXScale, useYScale, useZColorScale } from '@mui/x-charts/hooks';
|
|
4
|
-
import { useHeatmapSeries } from
|
|
5
|
-
import { HeatmapItem } from
|
|
6
|
+
import { useHeatmapSeries } from "../hooks/useSeries.js";
|
|
7
|
+
import { HeatmapItem } from "./HeatmapItem.js";
|
|
6
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
9
|
function HeatmapPlot(props) {
|
|
8
10
|
const xScale = useXScale();
|
package/Heatmap/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Heatmap } from
|
|
2
|
-
export { HeatmapPlot } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export { Heatmap } from "./Heatmap.js";
|
|
2
|
+
export { HeatmapPlot } from "./HeatmapPlot.js";
|
|
3
|
+
export * from "./DefaultHeatmapTooltip.js";
|
|
4
|
+
export * from "./heatmapClasses.js";
|
package/Heatmap/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getBaseExtremum } from
|
|
2
|
-
import formatter from
|
|
3
|
-
import getColor from
|
|
1
|
+
import { getBaseExtremum } from "./extremums.js";
|
|
2
|
+
import formatter from "./formatter.js";
|
|
3
|
+
import getColor from "./getColor.js";
|
|
4
4
|
export const plugin = {
|
|
5
5
|
seriesType: 'heatmap',
|
|
6
6
|
seriesFormatter: formatter,
|