@mui/x-charts-pro 8.4.0 → 8.5.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.d.ts +13 -5
- package/BarChartPro/BarChartPro.js +19 -1
- package/CHANGELOG.md +215 -0
- package/ChartContainerPro/ChartContainerPro.d.ts +0 -1
- package/ChartContainerPro/ChartProApi.d.ts +28 -0
- package/ChartContainerPro/ChartProApi.js +5 -0
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +11 -0
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +11 -1
- package/ChartDataProviderPro/ChartDataProviderPro.js +19 -3
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +2 -0
- package/ChartDataProviderPro/useChartDataProviderProProps.js +5 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -3
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +25 -315
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +22 -0
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +283 -0
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +18 -0
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +138 -0
- package/ChartZoomSlider/internals/constants.d.ts +5 -0
- package/ChartZoomSlider/internals/constants.js +11 -0
- package/ChartZoomSlider/internals/zoom-utils.d.ts +4 -0
- package/ChartZoomSlider/internals/zoom-utils.js +48 -0
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +5 -1
- package/ChartsToolbarPro/ChartsToolbarPro.js +35 -7
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +17 -0
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +57 -0
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +17 -0
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +57 -0
- package/ChartsToolbarPro/index.d.ts +3 -1
- package/ChartsToolbarPro/index.js +22 -0
- package/FunnelChart/FunnelChart.d.ts +2 -1
- package/FunnelChart/FunnelChart.js +2 -20
- package/FunnelChart/FunnelChart.plugins.d.ts +4 -0
- package/FunnelChart/FunnelChart.plugins.js +9 -0
- package/FunnelChart/FunnelPlot.js +10 -22
- package/FunnelChart/FunnelSection.d.ts +1 -1
- package/FunnelChart/FunnelSectionLabel.d.ts +21 -0
- package/FunnelChart/FunnelSectionLabel.js +52 -0
- package/FunnelChart/curves/bump.d.ts +10 -4
- package/FunnelChart/curves/bump.js +73 -41
- package/FunnelChart/curves/curve.types.d.ts +6 -1
- package/FunnelChart/curves/getFunnelCurve.js +3 -0
- package/FunnelChart/curves/linear.d.ts +9 -1
- package/FunnelChart/curves/linear.js +82 -5
- package/FunnelChart/funnel.types.d.ts +1 -0
- package/FunnelChart/funnelPlotSlots.types.d.ts +11 -0
- package/FunnelChart/funnelSectionClasses.d.ts +2 -0
- package/FunnelChart/funnelSectionClasses.js +17 -4
- package/FunnelChart/funnelSlots.types.d.ts +4 -3
- package/FunnelChart/index.d.ts +3 -1
- package/FunnelChart/index.js +18 -2
- package/FunnelChart/useFunnelChartProps.d.ts +2 -1
- package/FunnelChart/useFunnelChartProps.js +3 -1
- package/Heatmap/Heatmap.d.ts +22 -4
- package/Heatmap/Heatmap.js +64 -22
- package/Heatmap/Heatmap.plugins.d.ts +2 -1
- package/Heatmap/Heatmap.plugins.js +2 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +1 -1
- package/LineChartPro/LineChartPro.d.ts +13 -5
- package/LineChartPro/LineChartPro.js +19 -1
- package/PieChartPro/PieChartPro.d.ts +21 -0
- package/PieChartPro/PieChartPro.js +204 -0
- package/PieChartPro/PieChartPro.plugins.d.ts +4 -0
- package/PieChartPro/PieChartPro.plugins.js +9 -0
- package/PieChartPro/index.d.ts +1 -0
- package/PieChartPro/index.js +16 -0
- package/RadarChartPro/RadarChartPro.d.ts +15 -0
- package/RadarChartPro/RadarChartPro.js +202 -0
- package/RadarChartPro/RadarChartPro.plugins.d.ts +4 -0
- package/RadarChartPro/RadarChartPro.plugins.js +9 -0
- package/RadarChartPro/index.d.ts +1 -0
- package/RadarChartPro/index.js +16 -0
- package/ScatterChartPro/ScatterChartPro.d.ts +13 -5
- package/ScatterChartPro/ScatterChartPro.js +19 -1
- package/context/index.d.ts +1 -0
- package/context/index.js +16 -0
- package/context/useChartApiContext.d.ts +9 -0
- package/context/useChartApiContext.js +17 -0
- package/esm/BarChartPro/BarChartPro.d.ts +13 -5
- package/esm/BarChartPro/BarChartPro.js +19 -1
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +0 -1
- package/esm/ChartContainerPro/ChartProApi.d.ts +28 -0
- package/esm/ChartContainerPro/ChartProApi.js +1 -0
- package/esm/ChartContainerPro/index.d.ts +2 -1
- package/esm/ChartContainerPro/index.js +2 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +11 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +20 -4
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +2 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +5 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -3
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +19 -306
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +22 -0
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +275 -0
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +18 -0
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +130 -0
- package/esm/ChartZoomSlider/internals/constants.d.ts +5 -0
- package/esm/ChartZoomSlider/internals/constants.js +5 -0
- package/esm/ChartZoomSlider/internals/zoom-utils.d.ts +4 -0
- package/esm/ChartZoomSlider/internals/zoom-utils.js +40 -0
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +5 -1
- package/esm/ChartsToolbarPro/ChartsToolbarPro.js +36 -9
- package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.d.ts +17 -0
- package/esm/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +51 -0
- package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.d.ts +17 -0
- package/esm/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +51 -0
- package/esm/ChartsToolbarPro/index.d.ts +3 -1
- package/esm/ChartsToolbarPro/index.js +3 -1
- package/esm/FunnelChart/FunnelChart.d.ts +2 -1
- package/esm/FunnelChart/FunnelChart.js +2 -20
- package/esm/FunnelChart/FunnelChart.plugins.d.ts +4 -0
- package/esm/FunnelChart/FunnelChart.plugins.js +3 -0
- package/esm/FunnelChart/FunnelPlot.js +10 -22
- package/esm/FunnelChart/FunnelSection.d.ts +1 -1
- package/esm/FunnelChart/FunnelSectionLabel.d.ts +21 -0
- package/esm/FunnelChart/FunnelSectionLabel.js +46 -0
- package/esm/FunnelChart/curves/bump.d.ts +10 -4
- package/esm/FunnelChart/curves/bump.js +73 -41
- package/esm/FunnelChart/curves/curve.types.d.ts +6 -1
- package/esm/FunnelChart/curves/getFunnelCurve.js +3 -0
- package/esm/FunnelChart/curves/linear.d.ts +9 -1
- package/esm/FunnelChart/curves/linear.js +82 -5
- package/esm/FunnelChart/funnel.types.d.ts +1 -0
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +11 -0
- package/esm/FunnelChart/funnelSectionClasses.d.ts +2 -0
- package/esm/FunnelChart/funnelSectionClasses.js +15 -3
- package/esm/FunnelChart/funnelSlots.types.d.ts +4 -3
- package/esm/FunnelChart/index.d.ts +3 -1
- package/esm/FunnelChart/index.js +3 -1
- package/esm/FunnelChart/useFunnelChartProps.d.ts +2 -1
- package/esm/FunnelChart/useFunnelChartProps.js +3 -1
- package/esm/Heatmap/Heatmap.d.ts +22 -4
- package/esm/Heatmap/Heatmap.js +64 -22
- package/esm/Heatmap/Heatmap.plugins.d.ts +2 -1
- package/esm/Heatmap/Heatmap.plugins.js +2 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +1 -1
- package/esm/LineChartPro/LineChartPro.d.ts +13 -5
- package/esm/LineChartPro/LineChartPro.js +19 -1
- package/esm/PieChartPro/PieChartPro.d.ts +21 -0
- package/esm/PieChartPro/PieChartPro.js +197 -0
- package/esm/PieChartPro/PieChartPro.plugins.d.ts +4 -0
- package/esm/PieChartPro/PieChartPro.plugins.js +3 -0
- package/esm/PieChartPro/index.d.ts +1 -0
- package/esm/PieChartPro/index.js +1 -0
- package/esm/RadarChartPro/RadarChartPro.d.ts +15 -0
- package/esm/RadarChartPro/RadarChartPro.js +195 -0
- package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +4 -0
- package/esm/RadarChartPro/RadarChartPro.plugins.js +3 -0
- package/esm/RadarChartPro/index.d.ts +1 -0
- package/esm/RadarChartPro/index.js +1 -0
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +13 -5
- package/esm/ScatterChartPro/ScatterChartPro.js +19 -1
- package/esm/context/index.d.ts +1 -0
- package/esm/context/index.js +1 -0
- package/esm/context/useChartApiContext.d.ts +9 -0
- package/esm/context/useChartApiContext.js +11 -0
- package/esm/hooks/index.d.ts +2 -1
- package/esm/hooks/index.js +2 -1
- package/esm/index.d.ts +3 -1
- package/esm/index.js +3 -1
- package/esm/internals/material/index.d.ts +1 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +10 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +358 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +15 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +7 -0
- package/esm/models/index.d.ts +1 -1
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +21 -10
- package/index.d.ts +3 -1
- package/index.js +23 -1
- package/internals/material/index.d.ts +1 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.js +10 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +358 -0
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +16 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +7 -0
- package/models/index.d.ts +1 -1
- package/package.json +7 -7
- package/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.d.ts +0 -13
- package/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.js +0 -36
- package/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.d.ts +0 -13
- package/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.js +0 -36
- package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.d.ts +0 -13
- package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomInButton.js +0 -29
- package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.d.ts +0 -13
- package/esm/ChartsToolbarPro/internal/ChartsToolbarZoomOutButton.js +0 -29
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BarChartProps } from '@mui/x-charts/BarChart';
|
|
2
|
+
import { BarChartProps, BarChartSlotProps, BarChartSlots } from '@mui/x-charts/BarChart';
|
|
3
|
+
import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
|
|
3
4
|
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
4
5
|
import { BarChartProPluginsSignatures } from "./BarChartPro.plugins.js";
|
|
5
|
-
export interface
|
|
6
|
+
export interface BarChartProSlots extends BarChartSlots, Partial<ChartsSlotsPro> {}
|
|
7
|
+
export interface BarChartProSlotProps extends BarChartSlotProps, Partial<ChartsSlotPropsPro> {}
|
|
8
|
+
export interface BarChartProProps extends Omit<BarChartProps, 'apiRef' | 'slots' | 'slotProps'>, Omit<ChartContainerProProps<'bar', BarChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig' | 'slots' | 'slotProps'> {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
* @default
|
|
10
|
+
* Overridable component slots.
|
|
11
|
+
* @default {}
|
|
9
12
|
*/
|
|
10
|
-
|
|
13
|
+
slots?: BarChartProSlots;
|
|
14
|
+
/**
|
|
15
|
+
* The props used for each component slot.
|
|
16
|
+
* @default {}
|
|
17
|
+
*/
|
|
18
|
+
slotProps?: BarChartProSlotProps;
|
|
11
19
|
}
|
|
12
20
|
/**
|
|
13
21
|
* Demos:
|
|
@@ -77,9 +77,10 @@ const BarChartPro = exports.BarChartPro = /*#__PURE__*/React.forwardRef(function
|
|
|
77
77
|
plugins: _BarChartPro2.BAR_CHART_PRO_PLUGINS
|
|
78
78
|
}), ref);
|
|
79
79
|
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
80
|
+
const Toolbar = props.slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
|
|
80
81
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProviderPro.ChartDataProviderPro, (0, _extends2.default)({}, chartDataProviderProProps, {
|
|
81
82
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
82
|
-
children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
83
|
+
children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
83
84
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
|
|
84
85
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, (0, _extends2.default)({}, barPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps))]
|
|
85
86
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartZoomSlider.ChartZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
|
|
@@ -97,6 +98,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
97
98
|
current: _propTypes.default.shape({
|
|
98
99
|
exportAsImage: _propTypes.default.func.isRequired,
|
|
99
100
|
exportAsPrint: _propTypes.default.func.isRequired,
|
|
101
|
+
setAxisZoomData: _propTypes.default.func.isRequired,
|
|
100
102
|
setZoomData: _propTypes.default.func.isRequired
|
|
101
103
|
})
|
|
102
104
|
}),
|
|
@@ -327,6 +329,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
327
329
|
panning: _propTypes.default.bool,
|
|
328
330
|
slider: _propTypes.default.shape({
|
|
329
331
|
enabled: _propTypes.default.bool,
|
|
332
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
330
333
|
size: _propTypes.default.number
|
|
331
334
|
}),
|
|
332
335
|
step: _propTypes.default.number
|
|
@@ -391,6 +394,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
391
394
|
panning: _propTypes.default.bool,
|
|
392
395
|
slider: _propTypes.default.shape({
|
|
393
396
|
enabled: _propTypes.default.bool,
|
|
397
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
394
398
|
size: _propTypes.default.number
|
|
395
399
|
}),
|
|
396
400
|
step: _propTypes.default.number
|
|
@@ -450,6 +454,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
450
454
|
panning: _propTypes.default.bool,
|
|
451
455
|
slider: _propTypes.default.shape({
|
|
452
456
|
enabled: _propTypes.default.bool,
|
|
457
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
453
458
|
size: _propTypes.default.number
|
|
454
459
|
}),
|
|
455
460
|
step: _propTypes.default.number
|
|
@@ -509,6 +514,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
509
514
|
panning: _propTypes.default.bool,
|
|
510
515
|
slider: _propTypes.default.shape({
|
|
511
516
|
enabled: _propTypes.default.bool,
|
|
517
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
512
518
|
size: _propTypes.default.number
|
|
513
519
|
}),
|
|
514
520
|
step: _propTypes.default.number
|
|
@@ -568,6 +574,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
568
574
|
panning: _propTypes.default.bool,
|
|
569
575
|
slider: _propTypes.default.shape({
|
|
570
576
|
enabled: _propTypes.default.bool,
|
|
577
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
571
578
|
size: _propTypes.default.number
|
|
572
579
|
}),
|
|
573
580
|
step: _propTypes.default.number
|
|
@@ -627,6 +634,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
627
634
|
panning: _propTypes.default.bool,
|
|
628
635
|
slider: _propTypes.default.shape({
|
|
629
636
|
enabled: _propTypes.default.bool,
|
|
637
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
630
638
|
size: _propTypes.default.number
|
|
631
639
|
}),
|
|
632
640
|
step: _propTypes.default.number
|
|
@@ -686,6 +694,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
686
694
|
panning: _propTypes.default.bool,
|
|
687
695
|
slider: _propTypes.default.shape({
|
|
688
696
|
enabled: _propTypes.default.bool,
|
|
697
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
689
698
|
size: _propTypes.default.number
|
|
690
699
|
}),
|
|
691
700
|
step: _propTypes.default.number
|
|
@@ -745,6 +754,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
745
754
|
panning: _propTypes.default.bool,
|
|
746
755
|
slider: _propTypes.default.shape({
|
|
747
756
|
enabled: _propTypes.default.bool,
|
|
757
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
748
758
|
size: _propTypes.default.number
|
|
749
759
|
}),
|
|
750
760
|
step: _propTypes.default.number
|
|
@@ -816,6 +826,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
816
826
|
panning: _propTypes.default.bool,
|
|
817
827
|
slider: _propTypes.default.shape({
|
|
818
828
|
enabled: _propTypes.default.bool,
|
|
829
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
819
830
|
size: _propTypes.default.number
|
|
820
831
|
}),
|
|
821
832
|
step: _propTypes.default.number
|
|
@@ -879,6 +890,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
879
890
|
panning: _propTypes.default.bool,
|
|
880
891
|
slider: _propTypes.default.shape({
|
|
881
892
|
enabled: _propTypes.default.bool,
|
|
893
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
882
894
|
size: _propTypes.default.number
|
|
883
895
|
}),
|
|
884
896
|
step: _propTypes.default.number
|
|
@@ -937,6 +949,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
937
949
|
panning: _propTypes.default.bool,
|
|
938
950
|
slider: _propTypes.default.shape({
|
|
939
951
|
enabled: _propTypes.default.bool,
|
|
952
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
940
953
|
size: _propTypes.default.number
|
|
941
954
|
}),
|
|
942
955
|
step: _propTypes.default.number
|
|
@@ -995,6 +1008,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
995
1008
|
panning: _propTypes.default.bool,
|
|
996
1009
|
slider: _propTypes.default.shape({
|
|
997
1010
|
enabled: _propTypes.default.bool,
|
|
1011
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
998
1012
|
size: _propTypes.default.number
|
|
999
1013
|
}),
|
|
1000
1014
|
step: _propTypes.default.number
|
|
@@ -1053,6 +1067,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
1053
1067
|
panning: _propTypes.default.bool,
|
|
1054
1068
|
slider: _propTypes.default.shape({
|
|
1055
1069
|
enabled: _propTypes.default.bool,
|
|
1070
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
1056
1071
|
size: _propTypes.default.number
|
|
1057
1072
|
}),
|
|
1058
1073
|
step: _propTypes.default.number
|
|
@@ -1111,6 +1126,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
1111
1126
|
panning: _propTypes.default.bool,
|
|
1112
1127
|
slider: _propTypes.default.shape({
|
|
1113
1128
|
enabled: _propTypes.default.bool,
|
|
1129
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
1114
1130
|
size: _propTypes.default.number
|
|
1115
1131
|
}),
|
|
1116
1132
|
step: _propTypes.default.number
|
|
@@ -1169,6 +1185,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
1169
1185
|
panning: _propTypes.default.bool,
|
|
1170
1186
|
slider: _propTypes.default.shape({
|
|
1171
1187
|
enabled: _propTypes.default.bool,
|
|
1188
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
1172
1189
|
size: _propTypes.default.number
|
|
1173
1190
|
}),
|
|
1174
1191
|
step: _propTypes.default.number
|
|
@@ -1227,6 +1244,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
1227
1244
|
panning: _propTypes.default.bool,
|
|
1228
1245
|
slider: _propTypes.default.shape({
|
|
1229
1246
|
enabled: _propTypes.default.bool,
|
|
1247
|
+
showTooltip: _propTypes.default.oneOf(['always', 'hover', 'never']),
|
|
1230
1248
|
size: _propTypes.default.number
|
|
1231
1249
|
}),
|
|
1232
1250
|
step: _propTypes.default.number
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,221 @@
|
|
|
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.5.1
|
|
9
|
+
|
|
10
|
+
<!-- generated comparing v8.5.0..master -->
|
|
11
|
+
|
|
12
|
+
_Jun 5, 2025_
|
|
13
|
+
|
|
14
|
+
We'd like to extend a big thank you to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
15
|
+
|
|
16
|
+
- 📊 Allow exporting pie charts
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🌎 Improve Portuguese (ptPT) translations on the Data Grid
|
|
19
|
+
- 🌎 Improve Portuguese (ptPT, ptBR) translations on Charts
|
|
20
|
+
- 🌎 Improve Arabic (ar-SD) locale
|
|
21
|
+
- 🐞 Bugfixes
|
|
22
|
+
|
|
23
|
+
Special thanks go out to the community members for their valuable contributions: @moosekebab, @TiagoPortfolio.
|
|
24
|
+
The following are all team members who have contributed to this release:
|
|
25
|
+
@alexfauquette, @bernardobelchior, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @arminmeh.
|
|
26
|
+
|
|
27
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
28
|
+
|
|
29
|
+
### Data Grid
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid@8.5.1`
|
|
32
|
+
|
|
33
|
+
- [DataGrid] Fix `registerPipeProcessor()` for Node v20 (#18241) @arminmeh
|
|
34
|
+
- [DataGrid] Fix background color in column header filler cells (#18188) @KenanYusuf
|
|
35
|
+
- [DataGrid] Keep pipe pre-processors execution order when callback reference changes (#17558) @arminmeh
|
|
36
|
+
- [DataGrid] Use `useComponentRenderer` from x-internals (#18203) @bernardobelchior
|
|
37
|
+
- [l10n] Improve Arabic (ar-SD) locale (#17959) @moosekebab
|
|
38
|
+
- [l10n] Improve Portuguese from Portugal (pt-PT) locale (#18064) @TiagoPortfolio
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-pro@8.5.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid@8.5.1`, plus:
|
|
43
|
+
|
|
44
|
+
- [DataGridPro] Skip rendering detail panels of the rows turned into skeleton rows with lazy loading (#17958) @arminmeh
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-data-grid-premium@8.5.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
47
|
+
|
|
48
|
+
Same changes as in `@mui/x-data-grid-pro@8.5.1`.
|
|
49
|
+
|
|
50
|
+
### Date and Time Pickers
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-date-pickers@8.5.1`
|
|
53
|
+
|
|
54
|
+
- [pickers] Fix `transformOrigin` resolving based on popper `placement` (#18206) @LukasTy
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-date-pickers-pro@8.5.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
57
|
+
|
|
58
|
+
Same changes as in `@mui/x-date-pickers@8.5.1`.
|
|
59
|
+
|
|
60
|
+
### Charts
|
|
61
|
+
|
|
62
|
+
#### `@mui/x-charts@8.5.1`
|
|
63
|
+
|
|
64
|
+
- [charts] Allow skipping tooltip render (#18050) @alexfauquette
|
|
65
|
+
- [charts] Fix act warnings in toolbar tests (#18212) @JCQuintas
|
|
66
|
+
- [charts] Fix prop typo in `extendVertically` (#18211) @JCQuintas
|
|
67
|
+
- [charts] Fix responsive height for ChartsWrapper (#18183) @alexfauquette
|
|
68
|
+
- [charts] Improve charts toolbar accessibility (#18056) @bernardobelchior
|
|
69
|
+
- [charts] Let line series propagate null from the dataset (#18223) @alexfauquette
|
|
70
|
+
- [l10n] Add Portuguese locales for charts (pt-PT, pt-BR) (#18069) @bernardobelchior
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-charts-pro@8.5.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
|
+
|
|
74
|
+
Same changes as in `@mui/x-charts@8.5.1`, plus:
|
|
75
|
+
|
|
76
|
+
- [charts-pro] Add `linear-sharp` curve as alternative to square edge (#17966) @JCQuintas
|
|
77
|
+
- [charts-pro] Add correct classes to `FunnelSectionLabel` (#18061) @JCQuintas
|
|
78
|
+
- [charts-pro] Allow exporting a pie chart (#18063) @bernardobelchior
|
|
79
|
+
- [charts-pro] Fix initial render for zoom slider selection (#18208) @bernardobelchior
|
|
80
|
+
- [charts-pro] Fix props being passed to DOM in FunnelChart (#18192) @JCQuintas
|
|
81
|
+
- [charts-pro] Show axis value in zoom slider tooltip (#18054) @bernardobelchior
|
|
82
|
+
- [charts-pro] Render the toolbar in the heatmap chart (#18247) @bernardobelchior
|
|
83
|
+
|
|
84
|
+
### Tree View
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-tree-view@8.5.1`
|
|
87
|
+
|
|
88
|
+
Internal changes.
|
|
89
|
+
|
|
90
|
+
#### `@mui/x-tree-view-pro@8.5.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
91
|
+
|
|
92
|
+
Same changes as in `@mui/x-tree-view@8.5.1`.
|
|
93
|
+
|
|
94
|
+
### Docs
|
|
95
|
+
|
|
96
|
+
- [docs] Update `valueFormatter` signature in migration guide (#18226) @michelengelen
|
|
97
|
+
|
|
98
|
+
### Core
|
|
99
|
+
|
|
100
|
+
- chore(deps): bump @next/eslint-plugin-next to 15.3.3 (#18155) @renovate[bot]
|
|
101
|
+
- chore(deps): bump @types/lodash to ^4.17.17 (#17990) @renovate[bot]
|
|
102
|
+
- chore(deps): bump babel (#18157) @renovate[bot]
|
|
103
|
+
- chore(deps): bump eslint to ^9.28.0 (#17352) @renovate[bot]
|
|
104
|
+
- chore(deps): bump material ui (#17802) @renovate[bot]
|
|
105
|
+
- chore(deps): bump next to ^15.3.3 (#18159) @renovate[bot]
|
|
106
|
+
- chore(deps): bump ossf/scorecard-action action to v2.4.2 (#18160) @renovate[bot]
|
|
107
|
+
- chore(deps): bump react-router to ^7.6.1 (#18162) @renovate[bot]
|
|
108
|
+
- chore(deps): bump yargs to ^18.0.0 (#18169) @renovate[bot]
|
|
109
|
+
- [code-infra] Different approach to console testing for `processRowUpdate` (#18213) @JCQuintas
|
|
110
|
+
- [code-infra] Fix act warnings in DataGrid/toolbar (#18207) @JCQuintas
|
|
111
|
+
- [code-infra] Remove `istanbul` references (#18194) @JCQuintas
|
|
112
|
+
- [code-infra] Remove codesandbox:ci (#18179) @JCQuintas
|
|
113
|
+
- [code-infra] Replace `mocha` with `vitest` on e2e and regression tests (#18071) @JCQuintas
|
|
114
|
+
- [code-infra] Upgrade @mui/internal-test-utils (#18191) @JCQuintas
|
|
115
|
+
- [code-infra] Use vitest for `no-direct-state-access` tests (#18209) @JCQuintas
|
|
116
|
+
- [infra] Improve test setup (#18228) @LukasTy
|
|
117
|
+
- [infra] Update bug and feature request templates to standardize label types (#18198) @michelengelen
|
|
118
|
+
- [infra] Use `playwright` docker image (#18186) @LukasTy
|
|
119
|
+
|
|
120
|
+
## 8.5.0
|
|
121
|
+
|
|
122
|
+
_May 29, 2025_
|
|
123
|
+
|
|
124
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
125
|
+
|
|
126
|
+
- 📊 Add support for exporting `RadarChartPro`, `FunnelChart` and `Heatmap` as image and PDF.
|
|
127
|
+
- 📊 `RadarChart` is now stable.
|
|
128
|
+
|
|
129
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
130
|
+
@xBlizZer, @sai6855, @alisasanib.
|
|
131
|
+
Following are all team members who have contributed to this release:
|
|
132
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @oliviertassinari.
|
|
133
|
+
|
|
134
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
135
|
+
|
|
136
|
+
### Data Grid
|
|
137
|
+
|
|
138
|
+
#### `@mui/x-data-grid@8.5.0`
|
|
139
|
+
|
|
140
|
+
- [DataGrid] Avoid ResizeObserver loop error (#17984) @cherniavskii
|
|
141
|
+
- [DataGrid] Fix column management `toggleColumn` event type (#18023) @KenanYusuf
|
|
142
|
+
- [DataGrid] Remove unnecessary `any` type (#17979) @sai6855
|
|
143
|
+
|
|
144
|
+
#### `@mui/x-data-grid-pro@8.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
145
|
+
|
|
146
|
+
Same changes as in `@mui/x-data-grid@8.5.0`, plus:
|
|
147
|
+
|
|
148
|
+
- [DataGridPro] Allow multi sorting without modifier key (#17925) @cherniavskii
|
|
149
|
+
- [DataGridPro] Row reordering icon improvements (#17947) @KenanYusuf
|
|
150
|
+
- [DataGridPro] Fix pinned columns order in column management (#17950) @alisasanib
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-data-grid-premium@8.5.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
153
|
+
|
|
154
|
+
Same changes as in `@mui/x-data-grid-pro@8.5.0`, plus:
|
|
155
|
+
|
|
156
|
+
- [DataGridPremium] Export `GridApiPremium` type (#18037) @arminmeh
|
|
157
|
+
|
|
158
|
+
### Date and Time Pickers
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-date-pickers@8.5.0`
|
|
161
|
+
|
|
162
|
+
Internal changes.
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-date-pickers-pro@8.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
165
|
+
|
|
166
|
+
Same changes as in `@mui/x-date-pickers@8.5.0`, plus:
|
|
167
|
+
|
|
168
|
+
- [DateRangePicker] Allow to override the format in the field (#17972) @flaviendelangle
|
|
169
|
+
|
|
170
|
+
### Charts
|
|
171
|
+
|
|
172
|
+
#### `@mui/x-charts@8.5.0`
|
|
173
|
+
|
|
174
|
+
- [charts] Add `render` prop to charts toolbar components (#17649) @bernardobelchior
|
|
175
|
+
- [charts] Add configurable slots to toolbar (#17712) @bernardobelchior
|
|
176
|
+
- [charts] Export `useFunnelSeries` and `useRadarSeries` (#18034) @JCQuintas
|
|
177
|
+
- [charts] Expose `ChartApi` through context (#18004) @bernardobelchior
|
|
178
|
+
- [charts] Mark Radar chart as stable (#17946) @alexfauquette
|
|
179
|
+
- [charts] Only update store if interaction item is different (#17851) @bernardobelchior
|
|
180
|
+
- [charts] Reuse shared date utils (#18014) @JCQuintas
|
|
181
|
+
- [charts] Use Map for string cache instead of object (#17982) @bernardobelchior
|
|
182
|
+
- [charts] Fix Population pyramid demo (#17987) @oliviertassinari
|
|
183
|
+
|
|
184
|
+
#### `@mui/x-charts-pro@8.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
185
|
+
|
|
186
|
+
Same changes as in `@mui/x-charts@8.5.0`, plus:
|
|
187
|
+
|
|
188
|
+
- [charts-pro] Add range selection to zoom slider (#17949) @bernardobelchior
|
|
189
|
+
- [charts-pro] Allow configuring zoom slider tooltip (#18030) @bernardobelchior
|
|
190
|
+
- [charts-pro] Allow exporting a funnel chart (#17957) @bernardobelchior
|
|
191
|
+
- [charts-pro] Allow exporting a heatmap chart (#17916) @bernardobelchior
|
|
192
|
+
- [charts-pro] Allow exporting a radar chart (#17968) @bernardobelchior
|
|
193
|
+
- [charts-pro] Always show both zoom slider tooltips (#18027) @bernardobelchior
|
|
194
|
+
- [charts-pro] Show zoom slider tooltip when selecting range (#18028) @bernardobelchior
|
|
195
|
+
- [charts-pro] Split `ChartAxisZoomSlider` into smaller files (#18011) @bernardobelchior
|
|
196
|
+
- [charts-pro] Update zoom slider range selection cursor (#17977) @bernardobelchior
|
|
197
|
+
- [charts-pro] Add support for Heatmap legend (#17943) @alexfauquette
|
|
198
|
+
|
|
199
|
+
### Tree View
|
|
200
|
+
|
|
201
|
+
#### `@mui/x-tree-view@8.5.0`
|
|
202
|
+
|
|
203
|
+
Internal changes.
|
|
204
|
+
|
|
205
|
+
#### `@mui/x-tree-view-pro@8.5.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
206
|
+
|
|
207
|
+
Same changes as in `@mui/x-tree-view@8.5.0`.
|
|
208
|
+
|
|
209
|
+
### Docs
|
|
210
|
+
|
|
211
|
+
- [docs] Fix derived column pivoting demo crash (#17944) @arminmeh
|
|
212
|
+
- [docs] Fix light/dark mode blink on pickers overview (#18002) @alexfauquette
|
|
213
|
+
- [docs] Fix scatter shape demo causing horizontal overflow (#17974) @bernardobelchior
|
|
214
|
+
|
|
215
|
+
### Core
|
|
216
|
+
|
|
217
|
+
- [code-infra] Add bundle size monitor (#17754) @Janpot
|
|
218
|
+
- [code-infra] Enable `babel-plugin-display-name` in vitest (#17903) @JCQuintas
|
|
219
|
+
- [infra] Remove last deprecated `ponyfillGlobal` usage (#18003) @LukasTy
|
|
220
|
+
- [infra] Use `babel-plugin-display-name` from npm (#18040) @LukasTy
|
|
221
|
+
- [x-telemetry] Remove deprecated `ponyfillGlobal` (#17986) @xBlizZer
|
|
222
|
+
|
|
8
223
|
## 8.4.0
|
|
9
224
|
|
|
10
225
|
_May 21, 2025_
|
|
@@ -7,7 +7,6 @@ export type ChartContainerProProps<TSeries extends ChartSeriesType = ChartSeries
|
|
|
7
7
|
type ChartContainerProComponent = <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures> & {
|
|
8
8
|
ref?: React.ForwardedRef<SVGSVGElement>;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
|
-
export type ChartProApi = NonNullable<NonNullable<ChartContainerProProps['apiRef']>['current']>;
|
|
11
10
|
/**
|
|
12
11
|
* It sets up the data providers as well as the `<svg>` for the chart.
|
|
13
12
|
*
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChartAnyPluginSignature, ChartPublicAPI } from '@mui/x-charts/internals';
|
|
2
|
+
import { HeatmapPluginsSignatures } from "../Heatmap/Heatmap.plugins.js";
|
|
3
|
+
import { LineChartProPluginsSignatures } from "../LineChartPro/LineChartPro.plugins.js";
|
|
4
|
+
import { ScatterChartProPluginsSignatures } from "../ScatterChartPro/ScatterChartPro.plugins.js";
|
|
5
|
+
import { BarChartProPluginsSignatures } from "../BarChartPro/BarChartPro.plugins.js";
|
|
6
|
+
import { AllPluginSignatures, DefaultPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
7
|
+
import { FunnelChartPluginsSignatures } from "../FunnelChart/FunnelChart.plugins.js";
|
|
8
|
+
import { RadarChartProPluginsSignatures } from "../RadarChartPro/RadarChartPro.plugins.js";
|
|
9
|
+
import { PieChartProPluginSignatures } from "../PieChartPro/PieChartPro.plugins.js";
|
|
10
|
+
type PluginsPerSeriesType = {
|
|
11
|
+
heatmap: HeatmapPluginsSignatures;
|
|
12
|
+
line: LineChartProPluginsSignatures;
|
|
13
|
+
scatter: ScatterChartProPluginsSignatures;
|
|
14
|
+
bar: BarChartProPluginsSignatures;
|
|
15
|
+
funnel: FunnelChartPluginsSignatures;
|
|
16
|
+
radar: RadarChartProPluginsSignatures;
|
|
17
|
+
pie: PieChartProPluginSignatures;
|
|
18
|
+
composition: DefaultPluginSignatures;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* The API of the chart `apiRef` object.
|
|
22
|
+
* The chart type can be passed as the first generic parameter to narrow down the API to the specific chart type.
|
|
23
|
+
* @example ChartProApi<'bar'>
|
|
24
|
+
* If the chart is being created using composition, the `composition` value can be used.
|
|
25
|
+
* @example ChartProApi<'composition'>
|
|
26
|
+
*/
|
|
27
|
+
export type ChartProApi<TSeries extends keyof PluginsPerSeriesType | undefined = undefined, TSignatures extends readonly ChartAnyPluginSignature[] = (TSeries extends keyof PluginsPerSeriesType ? PluginsPerSeriesType[TSeries] : AllPluginSignatures)> = ChartPublicAPI<TSignatures>;
|
|
28
|
+
export {};
|
|
@@ -14,4 +14,15 @@ Object.keys(_ChartContainerPro).forEach(function (key) {
|
|
|
14
14
|
return _ChartContainerPro[key];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
|
+
});
|
|
18
|
+
var _ChartProApi = require("./ChartProApi");
|
|
19
|
+
Object.keys(_ChartProApi).forEach(function (key) {
|
|
20
|
+
if (key === "default" || key === "__esModule") return;
|
|
21
|
+
if (key in exports && exports[key] === _ChartProApi[key]) return;
|
|
22
|
+
Object.defineProperty(exports, key, {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return _ChartProApi[key];
|
|
26
|
+
}
|
|
27
|
+
});
|
|
17
28
|
});
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartSeriesType, ChartAnyPluginSignature, ChartProviderProps } from '@mui/x-charts/internals';
|
|
3
3
|
import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
|
|
4
|
+
import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
|
|
4
5
|
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
-
export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProps<TSeries, TSignatures> & ChartProviderProps<TSeries, TSignatures>['pluginParams']
|
|
6
|
+
export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProps<TSeries, TSignatures> & ChartProviderProps<TSeries, TSignatures>['pluginParams'] & {
|
|
7
|
+
/**
|
|
8
|
+
* Slots to customize charts' components.
|
|
9
|
+
*/
|
|
10
|
+
slots?: Partial<ChartsSlotsPro>;
|
|
11
|
+
/**
|
|
12
|
+
* The props for the slots.
|
|
13
|
+
*/
|
|
14
|
+
slotProps?: Partial<ChartsSlotPropsPro>;
|
|
15
|
+
};
|
|
6
16
|
/**
|
|
7
17
|
* Orchestrates the data providers for the chart components and hooks.
|
|
8
18
|
*
|
|
@@ -14,10 +14,11 @@ var _Watermark = require("@mui/x-license/Watermark");
|
|
|
14
14
|
var _internals = require("@mui/x-charts/internals");
|
|
15
15
|
var _ChartsLocalizationProvider = require("@mui/x-charts/ChartsLocalizationProvider");
|
|
16
16
|
var _useLicenseVerifier = require("@mui/x-license/useLicenseVerifier");
|
|
17
|
+
var _material = require("../internals/material");
|
|
17
18
|
var _allPlugins = require("../internals/plugins/allPlugins");
|
|
18
19
|
var _useChartDataProviderProProps = require("./useChartDataProviderProProps");
|
|
19
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
|
-
const releaseInfo = "
|
|
21
|
+
const releaseInfo = "MTc0OTA3MDgwMDAwMA==";
|
|
21
22
|
const packageIdentifier = 'x-charts-pro';
|
|
22
23
|
/**
|
|
23
24
|
* Orchestrates the data providers for the chart components and hooks.
|
|
@@ -50,7 +51,9 @@ function ChartDataProviderPro(props) {
|
|
|
50
51
|
const {
|
|
51
52
|
children,
|
|
52
53
|
localeText,
|
|
53
|
-
chartProviderProps
|
|
54
|
+
chartProviderProps,
|
|
55
|
+
slots,
|
|
56
|
+
slotProps
|
|
54
57
|
} = (0, _useChartDataProviderProProps.useChartDataProviderProProps)((0, _extends2.default)({}, props, {
|
|
55
58
|
plugins: props.plugins ?? _allPlugins.DEFAULT_PLUGINS
|
|
56
59
|
}));
|
|
@@ -58,7 +61,12 @@ function ChartDataProviderPro(props) {
|
|
|
58
61
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartProvider, (0, _extends2.default)({}, chartProviderProps, {
|
|
59
62
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLocalizationProvider.ChartsLocalizationProvider, {
|
|
60
63
|
localeText: localeText,
|
|
61
|
-
children:
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.ChartsSlotsProvider, {
|
|
65
|
+
slots: slots,
|
|
66
|
+
slotProps: slotProps,
|
|
67
|
+
defaultSlots: _material.defaultSlotsMaterial,
|
|
68
|
+
children: children
|
|
69
|
+
})
|
|
62
70
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Watermark.Watermark, {
|
|
63
71
|
packageName: packageIdentifier,
|
|
64
72
|
releaseInfo: releaseInfo
|
|
@@ -118,6 +126,14 @@ process.env.NODE_ENV !== "production" ? ChartDataProviderPro.propTypes = {
|
|
|
118
126
|
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
119
127
|
*/
|
|
120
128
|
skipAnimation: _propTypes.default.bool,
|
|
129
|
+
/**
|
|
130
|
+
* The props for the slots.
|
|
131
|
+
*/
|
|
132
|
+
slotProps: _propTypes.default.object,
|
|
133
|
+
/**
|
|
134
|
+
* Slots to customize charts' components.
|
|
135
|
+
*/
|
|
136
|
+
slots: _propTypes.default.object,
|
|
121
137
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
122
138
|
/**
|
|
123
139
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
@@ -5,4 +5,6 @@ export declare const useChartDataProviderProProps: <TSeries extends ChartSeriesT
|
|
|
5
5
|
children: import("react").ReactNode;
|
|
6
6
|
localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
|
|
7
7
|
chartProviderProps: import("@mui/x-charts/internals").ChartProviderProps<TSeries, TSignatures>;
|
|
8
|
+
slots: Partial<import("@mui/x-charts/internals").ChartsSlots> | undefined;
|
|
9
|
+
slotProps: Partial<import("@mui/x-charts/internals").ChartsSlotProps> | undefined;
|
|
8
10
|
};
|
|
@@ -10,12 +10,16 @@ const useChartDataProviderProProps = props => {
|
|
|
10
10
|
const {
|
|
11
11
|
chartProviderProps,
|
|
12
12
|
localeText,
|
|
13
|
+
slots,
|
|
14
|
+
slotProps,
|
|
13
15
|
children
|
|
14
16
|
} = (0, _internals.useChartDataProviderProps)(props);
|
|
15
17
|
return {
|
|
16
18
|
children,
|
|
17
19
|
localeText,
|
|
18
|
-
chartProviderProps
|
|
20
|
+
chartProviderProps,
|
|
21
|
+
slots,
|
|
22
|
+
slotProps
|
|
19
23
|
};
|
|
20
24
|
};
|
|
21
25
|
exports.useChartDataProviderProProps = useChartDataProviderProProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { AxisId
|
|
2
|
+
import { AxisId } from '@mui/x-charts/internals';
|
|
3
3
|
interface ChartZoomSliderProps {
|
|
4
4
|
/**
|
|
5
5
|
* The ID of the axis this overview refers to.
|
|
@@ -18,6 +18,4 @@ export declare function ChartAxisZoomSlider({
|
|
|
18
18
|
axisDirection,
|
|
19
19
|
axisId
|
|
20
20
|
}: ChartZoomSliderProps): React.JSX.Element | null;
|
|
21
|
-
export declare function calculateZoomStart(newStart: number, currentZoom: ZoomData, options: Pick<DefaultizedZoomOptions, 'minStart' | 'minSpan' | 'maxSpan'>): number;
|
|
22
|
-
export declare function calculateZoomEnd(newEnd: number, currentZoom: ZoomData, options: Pick<DefaultizedZoomOptions, 'maxEnd' | 'minSpan' | 'maxSpan'>): number;
|
|
23
21
|
export {};
|