@mui/x-charts-pro 8.15.0 → 8.17.0
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 +12 -2
- package/BarChartPro/BarChartPro.plugins.d.ts +1 -1
- package/BarChartPro/BarChartPro.plugins.js +1 -1
- package/CHANGELOG.md +207 -0
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -3
- package/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -4
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/FunnelChart/FunnelChart.js +1 -1
- package/FunnelChart/FunnelPlot.d.ts +1 -1
- package/FunnelChart/FunnelPlot.js +3 -23
- package/FunnelChart/coordinateMapper.d.ts +3 -0
- package/FunnelChart/coordinateMapper.js +18 -0
- package/FunnelChart/funnel.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.js +1 -2
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +5 -6
- package/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/FunnelChart/seriesConfig/index.js +4 -2
- package/FunnelChart/seriesConfig/tooltipPosition.d.ts +3 -0
- package/FunnelChart/seriesConfig/tooltipPosition.js +62 -0
- package/Heatmap/Heatmap.js +1 -1
- package/Heatmap/Heatmap.plugins.d.ts +1 -1
- package/Heatmap/Heatmap.plugins.js +1 -1
- package/Heatmap/HeatmapItem.d.ts +1 -1
- package/Heatmap/HeatmapPlot.d.ts +1 -2
- package/Heatmap/HeatmapPlot.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +9 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -2
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +3 -2
- package/Heatmap/seriesConfig/index.d.ts +1 -1
- package/Heatmap/seriesConfig/index.js +4 -2
- package/Heatmap/seriesConfig/tooltipPosition.d.ts +3 -0
- package/Heatmap/seriesConfig/tooltipPosition.js +57 -0
- package/LineChartPro/LineChartPro.js +11 -2
- package/LineChartPro/LineChartPro.plugins.d.ts +1 -1
- package/LineChartPro/LineChartPro.plugins.js +1 -1
- package/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.plugins.js +1 -1
- package/SankeyChart/SankeyChart.js +1 -1
- package/SankeyChart/SankeyLinkElement.js +2 -2
- package/SankeyChart/SankeyNodeElement.js +2 -2
- package/SankeyChart/SankeyPlot.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +9 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -2
- package/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/SankeyChart/seriesConfig/index.js +2 -2
- package/ScatterChartPro/ScatterChartPro.js +11 -2
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
- package/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
- package/esm/BarChartPro/BarChartPro.js +12 -2
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +1 -1
- package/esm/BarChartPro/BarChartPro.plugins.js +1 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -2
- package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -3
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/esm/FunnelChart/FunnelChart.js +1 -1
- package/esm/FunnelChart/FunnelPlot.d.ts +1 -1
- package/esm/FunnelChart/FunnelPlot.js +4 -24
- package/esm/FunnelChart/coordinateMapper.d.ts +3 -0
- package/esm/FunnelChart/coordinateMapper.js +11 -0
- package/esm/FunnelChart/funnel.types.d.ts +1 -1
- package/esm/FunnelChart/funnelAxisPlugin/computeAxisValue.js +1 -2
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +5 -6
- package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/index.js +3 -1
- package/esm/FunnelChart/seriesConfig/tooltipPosition.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/tooltipPosition.js +56 -0
- package/esm/Heatmap/Heatmap.js +1 -1
- package/esm/Heatmap/Heatmap.plugins.d.ts +1 -1
- package/esm/Heatmap/Heatmap.plugins.js +1 -1
- package/esm/Heatmap/HeatmapItem.d.ts +1 -1
- package/esm/Heatmap/HeatmapPlot.d.ts +1 -2
- package/esm/Heatmap/HeatmapPlot.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +9 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -1
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +3 -2
- package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/index.js +3 -1
- package/esm/Heatmap/seriesConfig/tooltipPosition.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/tooltipPosition.js +51 -0
- package/esm/LineChartPro/LineChartPro.js +11 -2
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +1 -1
- package/esm/LineChartPro/LineChartPro.plugins.js +1 -1
- package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +1 -1
- package/esm/RadarChartPro/RadarChartPro.plugins.js +1 -1
- package/esm/SankeyChart/SankeyChart.js +1 -1
- package/esm/SankeyChart/SankeyLinkElement.js +2 -2
- package/esm/SankeyChart/SankeyNodeElement.js +2 -2
- package/esm/SankeyChart/SankeyPlot.d.ts +1 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +9 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -1
- package/esm/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/esm/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/esm/SankeyChart/seriesConfig/index.js +1 -1
- package/esm/ScatterChartPro/ScatterChartPro.js +11 -2
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +1 -1
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/esm/internals/material/components/BaseMenuItem.js +0 -1
- package/esm/internals/material/components/BasePopper.d.ts +1 -2
- package/esm/internals/plugins/allPlugins.d.ts +5 -5
- package/esm/internals/plugins/allPlugins.js +3 -3
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +19 -4
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +4 -3
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +11 -3
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +23 -15
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +27 -15
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +8 -0
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +100 -0
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +8 -0
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +57 -0
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +2 -2
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +34 -54
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +11 -27
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
- package/esm/models/seriesType/heatmap.d.ts +1 -1
- package/index.js +1 -1
- package/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/internals/material/components/BaseMenuItem.js +0 -2
- package/internals/material/components/BasePopper.d.ts +1 -2
- package/internals/plugins/allPlugins.d.ts +5 -5
- package/internals/plugins/allPlugins.js +2 -2
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +19 -4
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +4 -3
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +11 -3
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +23 -15
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +27 -15
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.d.ts +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoom.utils.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +8 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +107 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +8 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +64 -0
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +34 -54
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +11 -27
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +2 -2
- package/models/seriesType/heatmap.d.ts +1 -1
- package/package.json +4 -4
|
@@ -23,6 +23,7 @@ var _ChartsClipPath = require("@mui/x-charts/ChartsClipPath");
|
|
|
23
23
|
var _internals = require("@mui/x-charts/internals");
|
|
24
24
|
var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
|
|
25
25
|
var _ChartsWrapper = require("@mui/x-charts/ChartsWrapper");
|
|
26
|
+
var _ChartsBrushOverlay = require("@mui/x-charts/ChartsBrushOverlay");
|
|
26
27
|
var _ChartZoomSlider = require("../ChartZoomSlider");
|
|
27
28
|
var _ChartsToolbarPro = require("../ChartsToolbarPro");
|
|
28
29
|
var _useChartContainerProProps = require("../ChartContainerPro/useChartContainerProProps");
|
|
@@ -84,7 +85,7 @@ const BarChartPro = exports.BarChartPro = /*#__PURE__*/React.forwardRef(function
|
|
|
84
85
|
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, {
|
|
85
86
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
|
|
86
87
|
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))]
|
|
87
|
-
})), /*#__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]
|
|
88
|
+
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartZoomSlider.ChartZoomSlider, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsBrushOverlay.ChartsBrushOverlay, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), children]
|
|
88
89
|
})), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props.slotProps?.tooltip))]
|
|
89
90
|
}))
|
|
90
91
|
}));
|
|
@@ -114,6 +115,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
114
115
|
y: _propTypes.default.oneOf(['band', 'line', 'none'])
|
|
115
116
|
}),
|
|
116
117
|
/**
|
|
118
|
+
* @deprecated Use `barLabel` in the chart series instead.
|
|
117
119
|
* If provided, the function will be used to format the label of the bar.
|
|
118
120
|
* It can be set to 'value' to display the current value.
|
|
119
121
|
* @param {BarItem} item The item to format.
|
|
@@ -1453,7 +1455,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
1453
1455
|
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
1454
1456
|
type: _propTypes.default.oneOf(['pressAndDrag']).isRequired
|
|
1455
1457
|
})]).isRequired),
|
|
1456
|
-
zoom: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf(['pinch', 'tapAndDrag', 'wheel']), _propTypes.default.shape({
|
|
1458
|
+
zoom: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.oneOf(['brush', 'doubleTapReset', 'pinch', 'tapAndDrag', 'wheel']), _propTypes.default.shape({
|
|
1457
1459
|
pointerMode: _propTypes.default.any,
|
|
1458
1460
|
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
1459
1461
|
type: _propTypes.default.oneOf(['wheel']).isRequired
|
|
@@ -1465,6 +1467,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
1465
1467
|
pointerMode: _propTypes.default.oneOf(['mouse', 'touch']),
|
|
1466
1468
|
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
1467
1469
|
type: _propTypes.default.oneOf(['tapAndDrag']).isRequired
|
|
1470
|
+
}), _propTypes.default.shape({
|
|
1471
|
+
pointerMode: _propTypes.default.oneOf(['mouse', 'touch']),
|
|
1472
|
+
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
1473
|
+
type: _propTypes.default.oneOf(['doubleTapReset']).isRequired
|
|
1474
|
+
}), _propTypes.default.shape({
|
|
1475
|
+
pointerMode: _propTypes.default.any,
|
|
1476
|
+
requiredKeys: _propTypes.default.array,
|
|
1477
|
+
type: _propTypes.default.oneOf(['brush']).isRequired
|
|
1468
1478
|
})]).isRequired)
|
|
1469
1479
|
})
|
|
1470
1480
|
} : void 0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UseChartZAxisSignature, UseChartCartesianAxisSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartBrushSignature, ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
2
|
import { UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
|
|
3
3
|
import { UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
|
|
4
|
-
export type BarChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartCartesianAxisSignature<'bar'>,
|
|
4
|
+
export type BarChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<'bar'>, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
|
|
5
5
|
export declare const BAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<BarChartProPluginSignatures>;
|
|
@@ -7,4 +7,4 @@ exports.BAR_CHART_PRO_PLUGINS = void 0;
|
|
|
7
7
|
var _internals = require("@mui/x-charts/internals");
|
|
8
8
|
var _useChartProExport = require("../internals/plugins/useChartProExport");
|
|
9
9
|
var _useChartProZoom = require("../internals/plugins/useChartProZoom");
|
|
10
|
-
const BAR_CHART_PRO_PLUGINS = exports.BAR_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.
|
|
10
|
+
const BAR_CHART_PRO_PLUGINS = exports.BAR_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _internals.useChartKeyboardNavigation, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,213 @@
|
|
|
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.17.0
|
|
9
|
+
|
|
10
|
+
_Nov 5, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- Add `colorGetter` prop to cartesian charts series
|
|
15
|
+
|
|
16
|
+
<img width="400" alt="Image" src="https://github.com/user-attachments/assets/d8b1263f-794e-4939-b17e-87350fdd1746" />
|
|
17
|
+
|
|
18
|
+
- 🌎 Add Catalan (ca-ES) locale on the Data Grid
|
|
19
|
+
- 🌎 Add Norwegian Bokmål (nb-NO) locale on the Charts
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
- 📚 Documentation improvements
|
|
22
|
+
|
|
23
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
24
|
+
@frncesc, @Methuselah96, @samuelwalk, @htollefsen
|
|
25
|
+
|
|
26
|
+
The following team members contributed to this release:
|
|
27
|
+
@alexfauquette, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @mnajdova, @rita-codes, @arminmeh, @brijeshb42
|
|
28
|
+
|
|
29
|
+
### Data Grid
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid@8.17.0`
|
|
32
|
+
|
|
33
|
+
- [DataGrid] Stop event propagation on data grid action buttons (GridActionsCellItem) (#19513) @Copilot
|
|
34
|
+
- [DataGrid] Update cell editable state if `editable` prop is updated in the column definition (#20147) @arminmeh
|
|
35
|
+
- [DataGrid] Wait for external model updates before resetting pagination after sort/filter (#20162) @arminmeh
|
|
36
|
+
- [l10n] Add Catalan (ca-ES) locale (#20154) @frncesc
|
|
37
|
+
- [l10n] Improve Arabic (ar-SD) locale (#20185) @samuelwalk
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid@8.17.0`.
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-data-grid-premium@8.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
44
|
+
|
|
45
|
+
Same changes as in `@mui/x-data-grid-pro@8.17.0`.
|
|
46
|
+
|
|
47
|
+
### Date and Time Pickers
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers@8.17.0`
|
|
50
|
+
|
|
51
|
+
Internal changes.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-date-pickers-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-date-pickers@8.17.0`.
|
|
56
|
+
|
|
57
|
+
### Charts
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-charts@8.17.0`
|
|
60
|
+
|
|
61
|
+
- [charts] Add `barLabel` to bar series. Deprecate `barLabel` in `BarPlot`. (#20184) @bernardobelchior
|
|
62
|
+
- [charts] Add series color callback (#20084) @bernardobelchior
|
|
63
|
+
- [charts] Expose `ChartsSurface` classes (#20180) @bernardobelchior
|
|
64
|
+
- [charts] Fix chart cut off when inside `overflow: scroll` container (#20182) @bernardobelchior
|
|
65
|
+
- [charts] Fix tick label overflow on multiple axes and series demo (#20152) @bernardobelchior
|
|
66
|
+
- [charts] Organize series config (#20155) @bernardobelchior
|
|
67
|
+
- [charts] Use selectors from `@mui/x-internals` (#20052) @alexfauquette
|
|
68
|
+
- [charts] Use store from `@mui/x-internals` (#20121) @alexfauquette
|
|
69
|
+
- [charts] Add `useDataset` hook (#20205) @JCQuintas
|
|
70
|
+
- [l10n] Add Norwegian Bokmål (nb-NO) locale (#20197) @htollefsen
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-charts-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
|
+
|
|
74
|
+
Same changes as in `@mui/x-charts@8.17.0`, plus:
|
|
75
|
+
|
|
76
|
+
- [charts-pro] Fix zoom pan issue when controlled (#20163) @JCQuintas
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-charts-premium@8.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
79
|
+
|
|
80
|
+
Same changes as in `@mui/x-charts-pro@8.17.0`.
|
|
81
|
+
|
|
82
|
+
### Tree View
|
|
83
|
+
|
|
84
|
+
#### `@mui/x-tree-view@8.17.0`
|
|
85
|
+
|
|
86
|
+
- [tree view] Accept read only arrays in `expandedItems` prop (#20181) @Methuselah96
|
|
87
|
+
- [tree view] Use `aria-checked` instead of `aria-selected` on items (#19851) @flaviendelangle
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-tree-view-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
90
|
+
|
|
91
|
+
Same changes as in `@mui/x-tree-view@8.17.0`.
|
|
92
|
+
|
|
93
|
+
### Codemod
|
|
94
|
+
|
|
95
|
+
#### `@mui/x-codemod@8.17.0`
|
|
96
|
+
|
|
97
|
+
Internal changes.
|
|
98
|
+
|
|
99
|
+
### Docs
|
|
100
|
+
|
|
101
|
+
- [docs] Fix focus issues in the action column demo (#20178) @arminmeh
|
|
102
|
+
- [docs] Remove hidden Tree View headless page (#20119) @flaviendelangle
|
|
103
|
+
- [docs] Fix some external redirects (#20211) @Janpot
|
|
104
|
+
|
|
105
|
+
### Core
|
|
106
|
+
|
|
107
|
+
- [code-infra] Fix cci job timeout due to buffered test output (#20193) @Janpot
|
|
108
|
+
- [code-infra] Fix publish workflow (#20140) @bernardobelchior
|
|
109
|
+
- [code-infra] Increase JSDOM test parallelism (#20179) @Janpot
|
|
110
|
+
- [code-infra] Remove React import requirement for jsx (#20144) @brijeshb42
|
|
111
|
+
- [code-infra] Replace `getInitialProps` with `getStaticProps` (#20192) @Janpot
|
|
112
|
+
- [code-infra] git-ignore next-env.d.ts (#20177) @Janpot
|
|
113
|
+
- [code-infra] Stabilize screenshot testing (#19868) @Janpot
|
|
114
|
+
|
|
115
|
+
## 8.16.0
|
|
116
|
+
|
|
117
|
+
_Oct 29, 2025_
|
|
118
|
+
|
|
119
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
120
|
+
|
|
121
|
+
- 🖌️ Add `brush` zoom interaction to charts
|
|
122
|
+
- 🔁 [Server-side update](https://mui.com/x/react-data-grid/server-side-data/#updating-server-side-data) in a grid with tree data/row grouping and aggregation will trigger re-fetch for all parent levels of that row to update aggregated values. See the [demo](https://mui.com/x/react-data-grid/server-side-data/aggregation/#usage-with-tree-data).
|
|
123
|
+
|
|
124
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
125
|
+
@felix-wg, @frncesc, @sai6855
|
|
126
|
+
|
|
127
|
+
The following are all team members who have contributed to this release:
|
|
128
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @flaviendelangle, @JCQuintas, @MBilalShafi, @mbrookes, @michelengelen, @noraleonte, @rita-codes
|
|
129
|
+
|
|
130
|
+
### Data Grid
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid@8.16.0`
|
|
133
|
+
|
|
134
|
+
- [DataGrid] Ignore `Ctrl+A` key combination for the row selection in the community version (#20110) @felix-wg
|
|
135
|
+
- [DataGrid][l10n] Improve Spanish (es-ES) locale (#20134) @frncesc
|
|
136
|
+
|
|
137
|
+
#### `@mui/x-data-grid-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
138
|
+
|
|
139
|
+
Same changes as in `@mui/x-data-grid@8.16.0`, plus:
|
|
140
|
+
|
|
141
|
+
- [DataGridPro] Add explicit return type to `getVisibleRowsLookup()` to fix the build with `tsc` (#20116) @arminmeh
|
|
142
|
+
- [DataGridPro] Retain the expansion state with expansion configuration props (#20126) @MBilalShafi
|
|
143
|
+
|
|
144
|
+
#### `@mui/x-data-grid-premium@8.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
145
|
+
|
|
146
|
+
Same changes as in `@mui/x-data-grid-pro@8.16.0`, plus:
|
|
147
|
+
|
|
148
|
+
- [DataGridPremium] Export and restore chart integration state (#20079) @arminmeh
|
|
149
|
+
- [DataGridPremium] Fix grouping column `valueFormatter()` crash (#20070) @sai6855
|
|
150
|
+
- [DataGridPremium] Refetch aggregation data after row update with server-side aggregation (#20039) @arminmeh
|
|
151
|
+
|
|
152
|
+
### Date and Time Pickers
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-date-pickers@8.16.0`
|
|
155
|
+
|
|
156
|
+
- [pickers] Prevent blur event propagation on individual sections (#19825) @michelengelen
|
|
157
|
+
|
|
158
|
+
#### `@mui/x-date-pickers-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
159
|
+
|
|
160
|
+
Same changes as in `@mui/x-date-pickers@8.16.0`.
|
|
161
|
+
|
|
162
|
+
### Charts
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-charts@8.16.0`
|
|
165
|
+
|
|
166
|
+
- [charts] Allow tooltip to anchor items (#19954) @alexfauquette
|
|
167
|
+
- [charts] Fix behavior of grouped axis (#20118) @JCQuintas
|
|
168
|
+
- [charts] Move scale symlog inside scales (#20137) @JCQuintas
|
|
169
|
+
- [charts] Fix AreaChartConnectNulls demo height not correctly resizing (#20078) @sai6855
|
|
170
|
+
- [charts] Fix charts resizing overflow (#20080) @alexfauquette
|
|
171
|
+
- [charts] Fix tooltip not showing on first render (#20115) @bernardobelchior
|
|
172
|
+
- [charts] Handle `undefined` id and color in series (#20087) @bernardobelchior
|
|
173
|
+
- [charts] Remove `useMemo` from isZoomOn*Enabled and isPanOn*Enabled hooks (#20132) @Copilot
|
|
174
|
+
- [charts] Use static data for perf (#20072) @JCQuintas
|
|
175
|
+
- [charts] Move scale symlog inside scales (#20137) @JCQuintas
|
|
176
|
+
|
|
177
|
+
#### `@mui/x-charts-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
178
|
+
|
|
179
|
+
Same changes as in `@mui/x-charts@8.16.0`, plus:
|
|
180
|
+
|
|
181
|
+
- [charts-pro] Add `brush` zoom interaction (#19899) @JCQuintas
|
|
182
|
+
- [charts-pro] Add sankey performance check (#20069) @JCQuintas
|
|
183
|
+
|
|
184
|
+
#### `@mui/x-charts-premium@8.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
185
|
+
|
|
186
|
+
Same changes as in `@mui/x-charts-pro@8.16.0`.
|
|
187
|
+
|
|
188
|
+
### Tree View
|
|
189
|
+
|
|
190
|
+
#### `@mui/x-tree-view@8.16.0`
|
|
191
|
+
|
|
192
|
+
Internal changes.
|
|
193
|
+
|
|
194
|
+
#### `@mui/x-tree-view-pro@8.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
195
|
+
|
|
196
|
+
Same changes as in `@mui/x-tree-view@8.16.0`.
|
|
197
|
+
|
|
198
|
+
### Codemod
|
|
199
|
+
|
|
200
|
+
#### `@mui/x-codemod@8.16.0`
|
|
201
|
+
|
|
202
|
+
Internal changes.
|
|
203
|
+
|
|
204
|
+
### Core
|
|
205
|
+
|
|
206
|
+
- [code-infra] Setup eslint compat plugin (#20105) @brijeshb42
|
|
207
|
+
- [code-infra] Improve store types (#20129) @JCQuintas
|
|
208
|
+
- [docs] Update the callout in `rows` prop documentation (#20127) @MBilalShafi
|
|
209
|
+
- [docs-infra] Refine changelog contributor acknowledgment messages (#20123) @mbrookes
|
|
210
|
+
|
|
211
|
+
### Miscellaneous
|
|
212
|
+
|
|
213
|
+
- [x-telemetry] Skip telemetry tests on browser mode (#20122) @bernardobelchior
|
|
214
|
+
|
|
8
215
|
## 8.15.0
|
|
9
216
|
|
|
10
217
|
_Oct 23, 2025_
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ChartSeriesType, ChartAnyPluginSignature, ChartProviderProps } from '@mui/x-charts/internals';
|
|
3
2
|
import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
|
|
4
3
|
import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
|
|
@@ -40,7 +39,7 @@ export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSer
|
|
|
40
39
|
* </ChartDataProviderPro>
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
43
|
-
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>):
|
|
42
|
+
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
|
|
44
43
|
declare namespace ChartDataProviderPro {
|
|
45
44
|
var propTypes: any;
|
|
46
45
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.ChartDataProviderPro = ChartDataProviderPro;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _Watermark = require("@mui/x-license/Watermark");
|
|
14
12
|
var _internals = require("@mui/x-charts/internals");
|
|
@@ -18,7 +16,7 @@ var _material = require("../internals/material");
|
|
|
18
16
|
var _allPlugins = require("../internals/plugins/allPlugins");
|
|
19
17
|
var _useChartDataProviderProProps = require("./useChartDataProviderProProps");
|
|
20
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const releaseInfo = "
|
|
19
|
+
const releaseInfo = "MTc2MjMwMDgwMDAwMA==";
|
|
22
20
|
const packageIdentifier = 'x-charts-pro';
|
|
23
21
|
/**
|
|
24
22
|
* Orchestrates the data providers for the chart components and hooks.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartZoomSliderProps {
|
|
4
3
|
/**
|
|
@@ -17,5 +16,5 @@ interface ChartZoomSliderProps {
|
|
|
17
16
|
export declare function ChartAxisZoomSlider({
|
|
18
17
|
axisDirection,
|
|
19
18
|
axisId
|
|
20
|
-
}: ChartZoomSliderProps):
|
|
19
|
+
}: ChartZoomSliderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
20
|
export {};
|
|
@@ -25,8 +25,8 @@ function ChartAxisZoomSlider({
|
|
|
25
25
|
}) {
|
|
26
26
|
const store = (0, _internals.useStore)();
|
|
27
27
|
const drawingArea = (0, _internals.useDrawingArea)();
|
|
28
|
-
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData,
|
|
29
|
-
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup,
|
|
28
|
+
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, axisId);
|
|
29
|
+
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, axisId);
|
|
30
30
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
31
31
|
const {
|
|
32
32
|
xAxis
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AxisId, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
export interface ChartAxisZoomSliderActiveTrackProps {
|
|
4
3
|
axisId: AxisId;
|
|
5
4
|
axisDirection: 'x' | 'y';
|
|
@@ -23,4 +22,4 @@ export declare function ChartAxisZoomSliderActiveTrack({
|
|
|
23
22
|
showTooltip,
|
|
24
23
|
onPointerEnter,
|
|
25
24
|
onPointerLeave
|
|
26
|
-
}: ChartAxisZoomSliderActiveTrackProps):
|
|
25
|
+
}: ChartAxisZoomSliderActiveTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -56,7 +56,7 @@ function ChartAxisZoomSliderActiveTrack({
|
|
|
56
56
|
svgRef
|
|
57
57
|
} = (0, _internals.useChartContext)();
|
|
58
58
|
const store = (0, _internals.useStore)();
|
|
59
|
-
const axis = (0, _internals.useSelector)(store, _internals.selectorChartAxis,
|
|
59
|
+
const axis = (0, _internals.useSelector)(store, _internals.selectorChartAxis, axisId);
|
|
60
60
|
const drawingArea = (0, _internals.useDrawingArea)();
|
|
61
61
|
const activePreviewRectRef = React.useRef(null);
|
|
62
62
|
const [startThumbEl, setStartThumbEl] = React.useState(null);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartAxisZoomSliderPreviewProps {
|
|
4
3
|
axisId: AxisId;
|
|
@@ -14,5 +13,5 @@ export declare function ChartAxisZoomSliderPreview({
|
|
|
14
13
|
axisDirection,
|
|
15
14
|
reverse,
|
|
16
15
|
...props
|
|
17
|
-
}: ChartAxisZoomSliderPreviewProps):
|
|
16
|
+
}: ChartAxisZoomSliderPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -50,8 +50,8 @@ function PreviewRectangles(props) {
|
|
|
50
50
|
axisDirection
|
|
51
51
|
} = props;
|
|
52
52
|
const store = (0, _internals.useStore)();
|
|
53
|
-
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData,
|
|
54
|
-
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup,
|
|
53
|
+
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, axisId);
|
|
54
|
+
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, axisId);
|
|
55
55
|
const id = (0, _useId.default)();
|
|
56
56
|
if (!zoomData) {
|
|
57
57
|
return null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartAxisZoomSliderPreviewContentProps {
|
|
4
3
|
axisId: AxisId;
|
|
@@ -7,5 +6,5 @@ interface ChartAxisZoomSliderPreviewContentProps {
|
|
|
7
6
|
height: number;
|
|
8
7
|
width: number;
|
|
9
8
|
}
|
|
10
|
-
export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps):
|
|
9
|
+
export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
|
4
4
|
interface AreaPreviewPlotProps extends PreviewPlotProps {}
|
|
5
5
|
export declare function AreaPreviewPlot({
|
|
6
6
|
axisId
|
|
7
|
-
}: AreaPreviewPlotProps):
|
|
7
|
+
}: AreaPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export interface PreviewAreaElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
|
|
9
9
|
id: SeriesId;
|
|
10
10
|
gradientId?: string;
|
|
@@ -55,7 +55,7 @@ function PreviewAreaElement(_ref) {
|
|
|
55
55
|
}
|
|
56
56
|
function useAreaPreviewData(axisId) {
|
|
57
57
|
const store = (0, _internals.useStore)();
|
|
58
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
59
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
58
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
59
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
60
60
|
return (0, _internals.useAreaPlotData)(xAxes, yAxes);
|
|
61
61
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
3
2
|
interface BarPreviewPlotProps extends PreviewPlotProps {
|
|
4
3
|
x: number;
|
|
@@ -6,5 +5,5 @@ interface BarPreviewPlotProps extends PreviewPlotProps {
|
|
|
6
5
|
height: number;
|
|
7
6
|
width: number;
|
|
8
7
|
}
|
|
9
|
-
export declare function BarPreviewPlot(props: BarPreviewPlotProps):
|
|
8
|
+
export declare function BarPreviewPlot(props: BarPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.BarPreviewPlot = BarPreviewPlot;
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
7
|
var _internals = require("@mui/x-charts/internals");
|
|
10
8
|
var _BarChart = require("@mui/x-charts/BarChart");
|
|
11
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -56,7 +54,7 @@ function BarPreviewPlot(props) {
|
|
|
56
54
|
}
|
|
57
55
|
function useBarPreviewData(axisId, drawingArea) {
|
|
58
56
|
const store = (0, _internals.useStore)();
|
|
59
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
60
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
57
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
58
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
61
59
|
return (0, _internals.useBarPlotData)(drawingArea, xAxes, yAxes);
|
|
62
60
|
}
|
|
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
|
4
4
|
interface LinePreviewPlotProps extends PreviewPlotProps {}
|
|
5
5
|
export declare function LinePreviewPlot({
|
|
6
6
|
axisId
|
|
7
|
-
}: LinePreviewPlotProps):
|
|
7
|
+
}: LinePreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export interface PreviewLineElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
|
|
9
9
|
id: SeriesId;
|
|
10
10
|
gradientId?: string;
|
|
@@ -53,7 +53,7 @@ function PreviewLineElement(_ref) {
|
|
|
53
53
|
}
|
|
54
54
|
function useLinePreviewData(axisId) {
|
|
55
55
|
const store = (0, _internals.useStore)();
|
|
56
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
57
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
56
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
57
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
58
58
|
return (0, _internals.useLinePlotData)(xAxes, yAxes);
|
|
59
59
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
3
2
|
interface ScatterPreviewPlotProps extends PreviewPlotProps {
|
|
4
3
|
x: number;
|
|
@@ -12,5 +11,5 @@ export declare function ScatterPreviewPlot({
|
|
|
12
11
|
y,
|
|
13
12
|
height,
|
|
14
13
|
width
|
|
15
|
-
}: ScatterPreviewPlotProps):
|
|
14
|
+
}: ScatterPreviewPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
15
|
export {};
|
|
@@ -19,8 +19,8 @@ function ScatterPreviewPlot({
|
|
|
19
19
|
}) {
|
|
20
20
|
const store = (0, _internals.useStore)();
|
|
21
21
|
const seriesData = (0, _hooks.useScatterSeriesContext)();
|
|
22
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
23
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
22
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
23
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
24
24
|
const defaultXAxisId = (0, _hooks.useXAxes)().xAxisIds[0];
|
|
25
25
|
const defaultYAxisId = (0, _hooks.useYAxes)().yAxisIds[0];
|
|
26
26
|
const {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ChartsToolbarProps } from '@mui/x-charts/Toolbar';
|
|
3
2
|
import { ChartsToolbarPrintExportOptions } from "./ChartsToolbarPrintExportTrigger.js";
|
|
4
3
|
import { ChartsToolbarImageExportOptions } from "./ChartsToolbarImageExportTrigger.js";
|
|
@@ -13,7 +12,7 @@ declare function ChartsToolbarPro({
|
|
|
13
12
|
printOptions,
|
|
14
13
|
imageExportOptions: rawImageExportOptions,
|
|
15
14
|
...other
|
|
16
|
-
}: ChartsToolbarProProps):
|
|
15
|
+
}: ChartsToolbarProProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
16
|
declare namespace ChartsToolbarPro {
|
|
18
17
|
var propTypes: any;
|
|
19
18
|
}
|
|
@@ -7,7 +7,7 @@ export interface ChartsMenuProps extends Pick<ChartBasePopperProps, 'className'
|
|
|
7
7
|
position?: Placement;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare function ChartsMenu(props: ChartsMenuProps):
|
|
10
|
+
declare function ChartsMenu(props: ChartsMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare namespace ChartsMenu {
|
|
12
12
|
var propTypes: any;
|
|
13
13
|
}
|
|
@@ -26,7 +26,7 @@ var _ChartDataProviderPro = require("../ChartDataProviderPro");
|
|
|
26
26
|
var _FunnelChart2 = require("./FunnelChart.plugins");
|
|
27
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
28
|
const seriesConfig = {
|
|
29
|
-
funnel: _seriesConfig.
|
|
29
|
+
funnel: _seriesConfig.funnelSeriesConfig
|
|
30
30
|
};
|
|
31
31
|
const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, ref) {
|
|
32
32
|
const themedProps = (0, _styles.useThemeProps)({
|
|
@@ -9,7 +9,7 @@ export interface FunnelPlotProps extends FunnelPlotSlotExtension {
|
|
|
9
9
|
*/
|
|
10
10
|
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, funnelItemIdentifier: FunnelItemIdentifier) => void;
|
|
11
11
|
}
|
|
12
|
-
declare function FunnelPlot(props: FunnelPlotProps):
|
|
12
|
+
declare function FunnelPlot(props: FunnelPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare namespace FunnelPlot {
|
|
14
14
|
var propTypes: any;
|
|
15
15
|
}
|
|
@@ -19,6 +19,7 @@ var _useFunnelSeries = require("../hooks/useFunnelSeries");
|
|
|
19
19
|
var _curves = require("./curves");
|
|
20
20
|
var _FunnelSectionLabel = require("./FunnelSectionLabel");
|
|
21
21
|
var _useChartFunnelAxisRendering = require("./funnelAxisPlugin/useChartFunnelAxisRendering.selectors");
|
|
22
|
+
var _coordinateMapper = require("./coordinateMapper");
|
|
22
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
24
|
const _excluded = ["onItemClick"];
|
|
24
25
|
_internals.cartesianSeriesTypes.addType('funnel');
|
|
@@ -51,31 +52,10 @@ const useAggregatedData = () => {
|
|
|
51
52
|
const yAxisId = currentSeries.yAxisId ?? defaultYAxisId;
|
|
52
53
|
const valueFormatter = currentSeries.valueFormatter;
|
|
53
54
|
const baseScaleConfig = isHorizontal ? xAxis[xAxisId] : yAxis[yAxisId];
|
|
54
|
-
const isXAxisBand = xAxis[xAxisId].scaleType === 'band';
|
|
55
|
-
const isYAxisBand = yAxis[yAxisId].scaleType === 'band';
|
|
56
|
-
const bandWidth = (isXAxisBand || isYAxisBand) && baseScaleConfig.scale?.bandwidth() || 0;
|
|
57
55
|
const xScale = xAxis[xAxisId].scale;
|
|
58
56
|
const yScale = yAxis[yAxisId].scale;
|
|
59
|
-
const xPosition = (
|
|
60
|
-
|
|
61
|
-
const position = xScale(bandIdentifier);
|
|
62
|
-
return useBand ? position + bandWidth : position;
|
|
63
|
-
}
|
|
64
|
-
if (isHorizontal) {
|
|
65
|
-
return xScale(value + (stackOffset || 0)) + bandIndex * gap;
|
|
66
|
-
}
|
|
67
|
-
return xScale(value);
|
|
68
|
-
};
|
|
69
|
-
const yPosition = (value, bandIndex, bandIdentifier, stackOffset, useBand) => {
|
|
70
|
-
if ((0, _internals.isOrdinalScale)(yScale)) {
|
|
71
|
-
const position = yScale(bandIdentifier);
|
|
72
|
-
return useBand ? position + bandWidth : position;
|
|
73
|
-
}
|
|
74
|
-
if (isHorizontal) {
|
|
75
|
-
return yScale(value);
|
|
76
|
-
}
|
|
77
|
-
return yScale(value + (stackOffset || 0)) + bandIndex * gap;
|
|
78
|
-
};
|
|
57
|
+
const xPosition = (0, _coordinateMapper.createPositionGetter)(xScale, isHorizontal, gap);
|
|
58
|
+
const yPosition = (0, _coordinateMapper.createPositionGetter)(yScale, !isHorizontal, gap);
|
|
79
59
|
const allY = currentSeries.dataPoints.flatMap((d, dataIndex) => d.flatMap(v => yPosition(v.y, dataIndex, baseScaleConfig.data?.[dataIndex], v.stackOffset, v.useBandWidth)));
|
|
80
60
|
const allX = currentSeries.dataPoints.flatMap((d, dataIndex) => d.flatMap(v => xPosition(v.x, dataIndex, baseScaleConfig.data?.[dataIndex], v.stackOffset, v.useBandWidth)));
|
|
81
61
|
const minPoint = {
|