@mui/x-charts-pro 8.0.0-alpha.9 → 8.0.0-beta.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.d.ts +4 -4
- package/BarChartPro/BarChartPro.js +240 -284
- package/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/BarChartPro/BarChartPro.plugins.js +9 -0
- package/BarChartPro/index.d.ts +1 -1
- package/BarChartPro/index.js +16 -1
- package/CHANGELOG.md +1446 -0
- package/ChartContainerPro/ChartContainerPro.d.ts +8 -9
- package/ChartContainerPro/ChartContainerPro.js +181 -174
- package/ChartContainerPro/index.d.ts +2 -1
- package/ChartContainerPro/index.js +17 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +5 -5
- package/ChartContainerPro/useChartContainerProProps.js +28 -19
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +7 -7
- package/ChartDataProviderPro/ChartDataProviderPro.js +40 -220
- package/ChartDataProviderPro/index.d.ts +2 -1
- package/ChartDataProviderPro/index.js +17 -1
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +7 -7
- package/ChartDataProviderPro/useChartDataProviderProProps.js +10 -6
- package/FunnelChart/FunnelChart.d.ts +37 -0
- package/FunnelChart/FunnelChart.js +218 -0
- package/FunnelChart/FunnelPlot.d.ts +16 -0
- package/FunnelChart/FunnelPlot.js +191 -0
- package/FunnelChart/FunnelSection.d.ts +15 -0
- package/FunnelChart/FunnelSection.js +62 -0
- package/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/FunnelChart/funnel.types.d.ts +124 -0
- package/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/FunnelChart/funnelSectionClasses.js +28 -0
- package/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/FunnelChart/funnelStepCurve.js +74 -0
- package/FunnelChart/index.d.ts +7 -0
- package/FunnelChart/index.js +59 -0
- package/FunnelChart/labelUtils.d.ts +42 -0
- package/FunnelChart/labelUtils.js +174 -0
- package/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/FunnelChart/seriesConfig/extremums.js +50 -0
- package/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/FunnelChart/seriesConfig/getColor.js +10 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +18 -0
- package/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/FunnelChart/seriesConfig/index.js +22 -0
- package/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/FunnelChart/seriesConfig/legend.js +31 -0
- package/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/FunnelChart/seriesConfig/seriesProcessor.js +96 -0
- package/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/FunnelChart/seriesConfig/tooltip.js +36 -0
- package/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/FunnelChart/useFunnelChartProps.js +168 -0
- package/Heatmap/Heatmap.d.ts +45 -45
- package/Heatmap/Heatmap.js +236 -244
- package/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/Heatmap/Heatmap.plugins.js +8 -0
- package/Heatmap/HeatmapItem.d.ts +33 -33
- package/Heatmap/HeatmapItem.js +43 -36
- package/Heatmap/HeatmapPlot.d.ts +4 -5
- package/Heatmap/HeatmapPlot.js +22 -16
- package/Heatmap/HeatmapTooltip.d.ts +3 -4
- package/Heatmap/HeatmapTooltip.js +101 -89
- package/Heatmap/heatmapClasses.d.ts +7 -7
- package/Heatmap/heatmapClasses.js +15 -7
- package/Heatmap/index.d.ts +4 -4
- package/Heatmap/index.js +47 -4
- package/Heatmap/{extremums.d.ts → seriesConfig/extremums.d.ts} +1 -1
- package/Heatmap/{getColor.d.ts → seriesConfig/getColor.d.ts} +1 -1
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/Heatmap/seriesConfig/index.d.ts +2 -0
- package/Heatmap/seriesConfig/index.js +21 -0
- package/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{node/Heatmap/formatter.js → Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/Heatmap/seriesConfig/tooltip.js +31 -0
- package/LineChartPro/LineChartPro.d.ts +4 -4
- package/LineChartPro/LineChartPro.js +242 -340
- package/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/LineChartPro/LineChartPro.plugins.js +9 -0
- package/LineChartPro/index.d.ts +1 -1
- package/LineChartPro/index.js +16 -1
- package/README.md +1 -1
- package/ScatterChartPro/ScatterChartPro.d.ts +4 -4
- package/ScatterChartPro/ScatterChartPro.js +244 -235
- package/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/ScatterChartPro/ScatterChartPro.plugins.js +9 -0
- package/ScatterChartPro/index.d.ts +1 -1
- package/ScatterChartPro/index.js +16 -1
- package/esm/BarChartPro/BarChartPro.d.ts +18 -0
- package/esm/BarChartPro/BarChartPro.js +404 -0
- package/esm/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/esm/BarChartPro/BarChartPro.plugins.js +3 -0
- package/esm/BarChartPro/index.d.ts +1 -0
- package/esm/BarChartPro/index.js +1 -0
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/esm/ChartContainerPro/ChartContainerPro.js +290 -0
- package/esm/ChartContainerPro/index.d.ts +2 -0
- package/esm/ChartContainerPro/index.js +2 -0
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/esm/ChartContainerPro/useChartContainerProProps.js +35 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +106 -0
- package/esm/ChartDataProviderPro/index.d.ts +2 -0
- package/esm/ChartDataProviderPro/index.js +2 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +15 -0
- package/esm/FunnelChart/FunnelChart.d.ts +37 -0
- package/esm/FunnelChart/FunnelChart.js +212 -0
- package/esm/FunnelChart/FunnelPlot.d.ts +16 -0
- package/esm/FunnelChart/FunnelPlot.js +184 -0
- package/esm/FunnelChart/FunnelSection.d.ts +15 -0
- package/esm/FunnelChart/FunnelSection.js +56 -0
- package/esm/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/esm/FunnelChart/funnel.types.d.ts +124 -0
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/esm/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/esm/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/esm/FunnelChart/funnelSectionClasses.js +20 -0
- package/esm/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/esm/FunnelChart/funnelSlots.types.js +1 -0
- package/esm/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/esm/FunnelChart/funnelStepCurve.js +67 -0
- package/esm/FunnelChart/index.d.ts +7 -0
- package/esm/FunnelChart/index.js +5 -0
- package/esm/FunnelChart/labelUtils.d.ts +42 -0
- package/esm/FunnelChart/labelUtils.js +166 -0
- package/esm/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/extremums.js +42 -0
- package/esm/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getColor.js +4 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/esm/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/esm/FunnelChart/seriesConfig/index.js +15 -0
- package/esm/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/legend.js +25 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/esm/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/esm/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/esm/FunnelChart/useFunnelChartProps.js +161 -0
- package/esm/Heatmap/Heatmap.d.ts +57 -0
- package/esm/Heatmap/Heatmap.js +387 -0
- package/esm/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/esm/Heatmap/Heatmap.plugins.js +2 -0
- package/esm/Heatmap/HeatmapItem.d.ts +49 -0
- package/esm/Heatmap/HeatmapItem.js +106 -0
- package/esm/Heatmap/HeatmapPlot.d.ts +8 -0
- package/{node → esm}/Heatmap/HeatmapPlot.js +16 -22
- package/esm/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/esm/Heatmap/HeatmapTooltip.js +280 -0
- package/esm/Heatmap/heatmapClasses.d.ts +11 -0
- package/esm/Heatmap/heatmapClasses.js +14 -0
- package/esm/Heatmap/index.d.ts +4 -0
- package/esm/Heatmap/index.js +4 -0
- package/esm/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/Heatmap/seriesConfig/index.d.ts +2 -0
- package/esm/Heatmap/seriesConfig/index.js +14 -0
- package/esm/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/{Heatmap/formatter.js → esm/Heatmap/seriesConfig/seriesProcessor.js} +2 -2
- package/esm/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/tooltip.js +25 -0
- package/esm/LineChartPro/LineChartPro.d.ts +17 -0
- package/esm/LineChartPro/LineChartPro.js +401 -0
- package/esm/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/esm/LineChartPro/LineChartPro.plugins.js +3 -0
- package/esm/LineChartPro/index.d.ts +1 -0
- package/esm/LineChartPro/index.js +1 -0
- package/esm/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/esm/ScatterChartPro/ScatterChartPro.js +395 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/esm/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/esm/ScatterChartPro/index.d.ts +1 -0
- package/esm/ScatterChartPro/index.js +1 -0
- package/esm/hooks/index.d.ts +2 -0
- package/esm/hooks/index.js +2 -0
- package/esm/hooks/useFunnelSeries.d.ts +33 -0
- package/esm/hooks/useFunnelSeries.js +42 -0
- package/esm/hooks/useHeatmapSeries.d.ts +33 -0
- package/esm/hooks/useHeatmapSeries.js +42 -0
- package/esm/hooks/zoom/index.d.ts +1 -0
- package/esm/hooks/zoom/index.js +1 -0
- package/esm/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/esm/hooks/zoom/useIsZoomInteracting.js +14 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.js +45 -0
- package/esm/internals/plugins/allPlugins.d.ts +8 -0
- package/esm/internals/plugins/allPlugins.js +6 -0
- package/esm/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/esm/internals/plugins/useChartProZoom/index.js +3 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.js +94 -54
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +4 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.js +1 -0
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/{node → esm}/internals/plugins/useChartProZoom/useChartProZoom.utils.js +8 -22
- package/esm/internals/utils/releaseInfo.d.ts +1 -0
- package/esm/internals/utils/releaseInfo.js +13 -0
- package/esm/models/index.d.ts +2 -0
- package/esm/models/index.js +2 -0
- package/esm/models/seriesType/heatmap.d.ts +28 -0
- package/esm/models/seriesType/heatmap.js +1 -0
- package/esm/models/seriesType/index.d.ts +1 -0
- package/esm/models/seriesType/index.js +1 -0
- package/esm/package.json +1 -0
- package/esm/themeAugmentation/components.d.ts +23 -0
- package/esm/themeAugmentation/index.d.ts +4 -0
- package/esm/themeAugmentation/index.js +0 -0
- package/esm/themeAugmentation/overrides.d.ts +11 -0
- package/esm/themeAugmentation/props.d.ts +20 -0
- package/esm/typeOverloads/index.d.ts +1 -0
- package/esm/typeOverloads/index.js +1 -0
- package/esm/typeOverloads/modules.d.ts +33 -0
- package/esm/typeOverloads/modules.js +1 -0
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +27 -2
- package/hooks/useFunnelSeries.d.ts +33 -0
- package/hooks/useFunnelSeries.js +48 -0
- package/hooks/useHeatmapSeries.d.ts +33 -0
- package/hooks/useHeatmapSeries.js +48 -0
- package/hooks/zoom/index.d.ts +1 -1
- package/hooks/zoom/index.js +16 -1
- package/hooks/zoom/useIsZoomInteracting.d.ts +1 -1
- package/hooks/zoom/useIsZoomInteracting.js +10 -5
- package/index.d.ts +10 -8
- package/index.js +369 -37
- package/internals/plugins/allPlugins.d.ts +7 -9
- package/internals/plugins/allPlugins.js +10 -3
- package/internals/plugins/useChartProZoom/index.d.ts +3 -3
- package/internals/plugins/useChartProZoom/index.js +38 -3
- package/internals/plugins/useChartProZoom/useChartProZoom.d.ts +2 -2
- package/internals/plugins/useChartProZoom/useChartProZoom.js +101 -47
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +154 -328
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +11 -10
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +42 -39
- package/internals/plugins/useChartProZoom/useChartProZoom.types.js +5 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +13 -13
- package/internals/plugins/useChartProZoom/useChartProZoom.utils.js +22 -8
- package/internals/utils/releaseInfo.d.ts +1 -1
- package/internals/utils/releaseInfo.js +13 -5
- package/models/index.d.ts +1 -1
- package/models/index.js +16 -2
- package/models/seriesType/heatmap.d.ts +18 -19
- package/models/seriesType/heatmap.js +5 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/index.js +16 -1
- package/modern/BarChartPro/BarChartPro.d.ts +18 -0
- package/modern/BarChartPro/BarChartPro.js +35 -85
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +4 -0
- package/modern/BarChartPro/BarChartPro.plugins.js +3 -0
- package/modern/BarChartPro/index.d.ts +1 -0
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +35 -0
- package/modern/ChartContainerPro/ChartContainerPro.js +4 -3
- package/modern/ChartContainerPro/index.d.ts +2 -0
- package/modern/ChartContainerPro/index.js +1 -0
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +9 -0
- package/modern/ChartContainerPro/useChartContainerProProps.js +15 -13
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +37 -0
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +18 -204
- package/modern/ChartDataProviderPro/index.d.ts +2 -0
- package/modern/ChartDataProviderPro/index.js +1 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +8 -0
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
- package/modern/FunnelChart/FunnelChart.d.ts +37 -0
- package/modern/FunnelChart/FunnelChart.js +212 -0
- package/modern/FunnelChart/FunnelPlot.d.ts +16 -0
- package/modern/FunnelChart/FunnelPlot.js +184 -0
- package/modern/FunnelChart/FunnelSection.d.ts +15 -0
- package/modern/FunnelChart/FunnelSection.js +56 -0
- package/modern/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/modern/FunnelChart/categoryAxis.types.js +1 -0
- package/modern/FunnelChart/funnel.types.d.ts +124 -0
- package/modern/FunnelChart/funnel.types.js +1 -0
- package/modern/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/modern/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/modern/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/modern/FunnelChart/funnelSectionClasses.js +20 -0
- package/modern/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/modern/FunnelChart/funnelSlots.types.js +1 -0
- package/modern/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/modern/FunnelChart/funnelStepCurve.js +67 -0
- package/modern/FunnelChart/index.d.ts +7 -0
- package/modern/FunnelChart/index.js +5 -0
- package/modern/FunnelChart/labelUtils.d.ts +42 -0
- package/modern/FunnelChart/labelUtils.js +166 -0
- package/modern/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/extremums.js +42 -0
- package/modern/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getColor.js +4 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/modern/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/modern/FunnelChart/seriesConfig/index.js +15 -0
- package/modern/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/legend.js +25 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/modern/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/modern/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/modern/FunnelChart/useFunnelChartProps.js +161 -0
- package/modern/Heatmap/Heatmap.d.ts +57 -0
- package/modern/Heatmap/Heatmap.js +47 -61
- package/modern/Heatmap/Heatmap.plugins.d.ts +3 -0
- package/modern/Heatmap/Heatmap.plugins.js +2 -0
- package/modern/Heatmap/HeatmapItem.d.ts +49 -0
- package/modern/Heatmap/HeatmapItem.js +7 -7
- package/modern/Heatmap/HeatmapPlot.d.ts +8 -0
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/HeatmapTooltip.d.ts +8 -0
- package/modern/Heatmap/HeatmapTooltip.js +10 -4
- package/modern/Heatmap/heatmapClasses.d.ts +11 -0
- package/modern/Heatmap/index.d.ts +4 -0
- package/modern/Heatmap/seriesConfig/extremums.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/getColor.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/Heatmap/seriesConfig/index.d.ts +2 -0
- package/modern/Heatmap/seriesConfig/index.js +14 -0
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/Heatmap/{formatter.js → seriesConfig/seriesProcessor.js} +2 -2
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/tooltip.js +25 -0
- package/modern/LineChartPro/LineChartPro.d.ts +17 -0
- package/modern/LineChartPro/LineChartPro.js +36 -140
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +4 -0
- package/modern/LineChartPro/LineChartPro.plugins.js +3 -0
- package/modern/LineChartPro/index.d.ts +1 -0
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +17 -0
- package/modern/ScatterChartPro/ScatterChartPro.js +40 -37
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +4 -0
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +3 -0
- package/modern/ScatterChartPro/index.d.ts +1 -0
- package/modern/hooks/index.d.ts +2 -0
- package/modern/hooks/index.js +1 -1
- package/modern/hooks/useFunnelSeries.d.ts +33 -0
- package/modern/hooks/useFunnelSeries.js +42 -0
- package/modern/hooks/useHeatmapSeries.d.ts +33 -0
- package/modern/hooks/useHeatmapSeries.js +42 -0
- package/modern/hooks/zoom/index.d.ts +1 -0
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +6 -0
- package/modern/index.d.ts +34 -0
- package/modern/index.js +5 -4
- package/modern/internals/plugins/allPlugins.d.ts +8 -0
- package/modern/internals/plugins/allPlugins.js +3 -2
- package/modern/internals/plugins/useChartProZoom/index.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +3 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +65 -18
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +203 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -7
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +53 -0
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +45 -0
- package/modern/internals/utils/releaseInfo.d.ts +1 -0
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.d.ts +2 -0
- package/modern/models/seriesType/heatmap.d.ts +28 -0
- package/modern/models/seriesType/index.d.ts +1 -0
- package/modern/package.json +1 -0
- package/modern/themeAugmentation/components.d.ts +23 -0
- package/modern/themeAugmentation/index.d.ts +4 -0
- package/modern/themeAugmentation/overrides.d.ts +11 -0
- package/modern/themeAugmentation/props.d.ts +20 -0
- package/modern/typeOverloads/index.d.ts +1 -0
- package/modern/typeOverloads/modules.d.ts +33 -0
- package/package.json +44 -11
- package/themeAugmentation/components.d.ts +1 -3
- package/themeAugmentation/index.d.ts +1 -1
- package/themeAugmentation/index.js +1 -0
- package/themeAugmentation/overrides.d.ts +2 -4
- package/themeAugmentation/props.d.ts +5 -7
- package/tsconfig.build.tsbuildinfo +1 -0
- package/typeOverloads/index.d.ts +1 -1
- package/typeOverloads/index.js +6 -1
- package/typeOverloads/modules.d.ts +32 -24
- package/typeOverloads/modules.js +5 -1
- package/BarChartPro/package.json +0 -6
- package/ChartContainerPro/package.json +0 -6
- package/ChartDataProviderPro/package.json +0 -6
- package/Heatmap/formatter.d.ts +0 -3
- package/Heatmap/package.json +0 -6
- package/Heatmap/plugin.d.ts +0 -2
- package/Heatmap/plugin.js +0 -10
- package/LineChartPro/package.json +0 -6
- package/ScatterChartPro/package.json +0 -6
- package/hooks/package.json +0 -6
- package/hooks/useSeries.d.ts +0 -11
- package/hooks/useSeries.js +0 -16
- package/internals/plugins/useChartProZoom/creatZoomLookup.d.ts +0 -3
- package/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/internals/plugins/useChartProZoom/defaultizeZoom.d.ts +0 -2
- package/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/internals/plugins/useChartProZoom/zoom.types.d.ts +0 -53
- package/models/package.json +0 -6
- package/modern/Heatmap/plugin.js +0 -10
- package/modern/hooks/useSeries.js +0 -16
- package/modern/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -12
- package/modern/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -25
- package/node/BarChartPro/BarChartPro.js +0 -460
- package/node/BarChartPro/index.js +0 -16
- package/node/ChartContainerPro/ChartContainerPro.js +0 -295
- package/node/ChartContainerPro/index.js +0 -16
- package/node/ChartContainerPro/useChartContainerProProps.js +0 -40
- package/node/ChartDataProviderPro/ChartDataProviderPro.js +0 -298
- package/node/ChartDataProviderPro/index.js +0 -16
- package/node/ChartDataProviderPro/useChartDataProviderProProps.js +0 -23
- package/node/Heatmap/Heatmap.js +0 -407
- package/node/Heatmap/HeatmapItem.js +0 -113
- package/node/Heatmap/HeatmapTooltip.js +0 -280
- package/node/Heatmap/heatmapClasses.js +0 -22
- package/node/Heatmap/index.js +0 -47
- package/node/Heatmap/plugin.js +0 -17
- package/node/LineChartPro/LineChartPro.js +0 -511
- package/node/LineChartPro/index.js +0 -16
- package/node/ScatterChartPro/ScatterChartPro.js +0 -398
- package/node/ScatterChartPro/index.js +0 -16
- package/node/hooks/index.js +0 -27
- package/node/hooks/useSeries.js +0 -21
- package/node/hooks/zoom/index.js +0 -16
- package/node/hooks/zoom/useIsZoomInteracting.js +0 -19
- package/node/index.js +0 -365
- package/node/internals/plugins/allPlugins.js +0 -11
- package/node/internals/plugins/useChartProZoom/creatZoomLookup.js +0 -19
- package/node/internals/plugins/useChartProZoom/defaultizeZoom.js +0 -33
- package/node/internals/plugins/useChartProZoom/index.js +0 -38
- package/node/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -18
- package/node/internals/utils/releaseInfo.js +0 -21
- package/node/models/index.js +0 -16
- package/node/models/seriesType/index.js +0 -16
- package/node/themeAugmentation/index.js +0 -1
- package/node/typeOverloads/index.js +0 -6
- package/themeAugmentation/package.json +0 -6
- package/typeOverloads/package.json +0 -6
- /package/{node/internals/plugins/useChartProZoom/useChartProZoom.types.js → FunnelChart/categoryAxis.types.js} +0 -0
- /package/{node/internals/plugins/useChartProZoom/zoom.types.js → FunnelChart/funnel.types.js} +0 -0
- /package/{node/models/seriesType/heatmap.js → FunnelChart/funnelPlotSlots.types.js} +0 -0
- /package/{node/typeOverloads/modules.js → FunnelChart/funnelSlots.types.js} +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{node/Heatmap → Heatmap/seriesConfig}/getColor.js +0 -0
- /package/{internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/categoryAxis.types.js} +0 -0
- /package/{modern/internals/plugins/useChartProZoom/zoom.types.js → esm/FunnelChart/funnel.types.js} +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/extremums.js +0 -0
- /package/{Heatmap → esm/Heatmap/seriesConfig}/getColor.js +0 -0
- /package/modern/Heatmap/{extremums.js → seriesConfig/extremums.js} +0 -0
- /package/modern/Heatmap/{getColor.js → seriesConfig/getColor.js} +0 -0
|
@@ -1,50 +1,53 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UseChartSeriesSignature, ChartPluginSignature, UseChartCartesianAxisSignature, UseChartCartesianAxisDefaultizedParameters, ZoomData } from '@mui/x-charts/internals';
|
|
2
2
|
export interface UseChartProZoomParameters {
|
|
3
|
+
/**
|
|
4
|
+
* The list of zoom data related to each axis.
|
|
5
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
6
|
+
*/
|
|
7
|
+
initialZoom?: readonly ZoomData[];
|
|
8
|
+
/**
|
|
9
|
+
* Callback fired when the zoom has changed.
|
|
10
|
+
*
|
|
11
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
12
|
+
*/
|
|
13
|
+
onZoomChange?: (zoomData: ZoomData[]) => void;
|
|
14
|
+
/**
|
|
15
|
+
* The list of zoom data related to each axis.
|
|
16
|
+
*/
|
|
17
|
+
zoomData?: readonly ZoomData[];
|
|
18
|
+
}
|
|
19
|
+
export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & UseChartCartesianAxisDefaultizedParameters;
|
|
20
|
+
export interface UseChartProZoomState {
|
|
21
|
+
zoom: {
|
|
3
22
|
/**
|
|
4
|
-
*
|
|
23
|
+
* Whether the user is currently interacting with the chart.
|
|
24
|
+
* This is useful to disable animations while the user is interacting.
|
|
5
25
|
*/
|
|
6
|
-
|
|
26
|
+
isInteracting: boolean;
|
|
7
27
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
28
|
+
* Mapping of axis id to the zoom data.
|
|
11
29
|
*/
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
export type UseChartProZoomDefaultizedParameters = UseChartProZoomParameters & UseChartCartesianAxisDefaultizedParameters & {
|
|
30
|
+
zoomData: readonly ZoomData[];
|
|
15
31
|
/**
|
|
16
|
-
*
|
|
32
|
+
* Internal information to know if the user control the state or not.
|
|
17
33
|
*/
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
export interface UseChartProZoomState {
|
|
21
|
-
zoom: {
|
|
22
|
-
/**
|
|
23
|
-
* Whether the user is currently interacting with the chart.
|
|
24
|
-
* This is useful to disable animations while the user is interacting.
|
|
25
|
-
*/
|
|
26
|
-
isInteracting: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Mapping of axis id to the zoom data.
|
|
29
|
-
*/
|
|
30
|
-
zoomData: ZoomData[];
|
|
31
|
-
};
|
|
34
|
+
isControlled: boolean;
|
|
35
|
+
};
|
|
32
36
|
}
|
|
33
37
|
export interface UseChartProZoomPublicApi {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {
|
|
38
|
+
/**
|
|
39
|
+
* Set the zoom data state.
|
|
40
|
+
* @param {ZoomData[] | ((prev: ZoomData[]) => ZoomData[])} value The new value. Can either be the new zoom data, or an updater function.
|
|
41
|
+
* @returns {void}
|
|
42
|
+
*/
|
|
43
|
+
setZoomData: (value: ZoomData[] | ((prev: ZoomData[]) => ZoomData[])) => void;
|
|
42
44
|
}
|
|
45
|
+
export interface UseChartProZoomInstance extends UseChartProZoomPublicApi {}
|
|
43
46
|
export type UseChartProZoomSignature = ChartPluginSignature<{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}>;
|
|
47
|
+
params: UseChartProZoomParameters;
|
|
48
|
+
defaultizedParams: UseChartProZoomDefaultizedParameters;
|
|
49
|
+
state: UseChartProZoomState;
|
|
50
|
+
publicAPI: UseChartProZoomPublicApi;
|
|
51
|
+
instance: UseChartProZoomInstance;
|
|
52
|
+
dependencies: [UseChartSeriesSignature, UseChartCartesianAxisSignature];
|
|
53
|
+
}>;
|
|
@@ -14,32 +14,32 @@ export declare function isSpanValid(minRange: number, maxRange: number, isZoomIn
|
|
|
14
14
|
* Get the scale ratio and if it's a zoom in or out from a wheel event.
|
|
15
15
|
*/
|
|
16
16
|
export declare function getWheelScaleRatio(event: WheelEvent, step: number): {
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
scaleRatio: number;
|
|
18
|
+
isZoomIn: boolean;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* Get the scale ratio and if it's a zoom in or out from a pinch gesture.
|
|
22
22
|
*/
|
|
23
23
|
export declare function getPinchScaleRatio(curDiff: number, prevDiff: number, step: number): {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
scaleRatio: number;
|
|
25
|
+
isZoomIn: boolean;
|
|
26
26
|
};
|
|
27
27
|
export declare function getDiff(eventCache: PointerEvent[]): number;
|
|
28
28
|
/**
|
|
29
29
|
* Get the ratio of the point in the horizontal center of the area.
|
|
30
30
|
*/
|
|
31
31
|
export declare function getHorizontalCenterRatio(point: {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
34
|
}, area: {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
left: number;
|
|
36
|
+
width: number;
|
|
37
37
|
}): number;
|
|
38
38
|
export declare function preventDefault(event: TouchEvent): void;
|
|
39
39
|
export declare function getVerticalCenterRatio(point: {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
x: number;
|
|
41
|
+
y: number;
|
|
42
42
|
}, area: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}): number;
|
|
43
|
+
top: number;
|
|
44
|
+
height: number;
|
|
45
|
+
}): number;
|
|
@@ -1,10 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDiff = getDiff;
|
|
7
|
+
exports.getHorizontalCenterRatio = getHorizontalCenterRatio;
|
|
8
|
+
exports.getPinchScaleRatio = getPinchScaleRatio;
|
|
9
|
+
exports.getVerticalCenterRatio = getVerticalCenterRatio;
|
|
10
|
+
exports.getWheelScaleRatio = getWheelScaleRatio;
|
|
11
|
+
exports.isSpanValid = isSpanValid;
|
|
12
|
+
exports.preventDefault = preventDefault;
|
|
13
|
+
exports.zoomAtPoint = void 0;
|
|
1
14
|
/**
|
|
2
15
|
* Helper to get the range (in percents of a reference range) corresponding to a given scale.
|
|
3
16
|
* @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
|
|
4
17
|
* @param scaleRatio {number} The target scale ratio.
|
|
5
18
|
* @returns The range to display.
|
|
6
19
|
*/
|
|
7
|
-
|
|
20
|
+
const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) => {
|
|
8
21
|
const MIN_RANGE = options.minStart;
|
|
9
22
|
const MAX_RANGE = options.maxEnd;
|
|
10
23
|
const MIN_ALLOWED_SPAN = options.minSpan;
|
|
@@ -36,7 +49,8 @@ export const zoomAtPoint = (centerRatio, scaleRatio, currentZoomData, options) =
|
|
|
36
49
|
/**
|
|
37
50
|
* Checks if the new span is valid.
|
|
38
51
|
*/
|
|
39
|
-
|
|
52
|
+
exports.zoomAtPoint = zoomAtPoint;
|
|
53
|
+
function isSpanValid(minRange, maxRange, isZoomIn, option) {
|
|
40
54
|
const newSpanPercent = maxRange - minRange;
|
|
41
55
|
if (isZoomIn && newSpanPercent < option.minSpan || !isZoomIn && newSpanPercent > option.maxSpan) {
|
|
42
56
|
return false;
|
|
@@ -63,7 +77,7 @@ function getMultiplier(event) {
|
|
|
63
77
|
/**
|
|
64
78
|
* Get the scale ratio and if it's a zoom in or out from a wheel event.
|
|
65
79
|
*/
|
|
66
|
-
|
|
80
|
+
function getWheelScaleRatio(event, step) {
|
|
67
81
|
const deltaY = -event.deltaY;
|
|
68
82
|
const multiplier = getMultiplier(event);
|
|
69
83
|
const scaledStep = step * multiplier * deltaY / 1000;
|
|
@@ -79,7 +93,7 @@ export function getWheelScaleRatio(event, step) {
|
|
|
79
93
|
/**
|
|
80
94
|
* Get the scale ratio and if it's a zoom in or out from a pinch gesture.
|
|
81
95
|
*/
|
|
82
|
-
|
|
96
|
+
function getPinchScaleRatio(curDiff, prevDiff, step) {
|
|
83
97
|
const scaledStep = step / 1000;
|
|
84
98
|
let scaleRatio = 0;
|
|
85
99
|
let isZoomIn = false;
|
|
@@ -99,7 +113,7 @@ export function getPinchScaleRatio(curDiff, prevDiff, step) {
|
|
|
99
113
|
isZoomIn
|
|
100
114
|
};
|
|
101
115
|
}
|
|
102
|
-
|
|
116
|
+
function getDiff(eventCache) {
|
|
103
117
|
const [firstEvent, secondEvent] = eventCache;
|
|
104
118
|
return Math.hypot(firstEvent.pageX - secondEvent.pageX, firstEvent.pageY - secondEvent.pageY);
|
|
105
119
|
}
|
|
@@ -107,17 +121,17 @@ export function getDiff(eventCache) {
|
|
|
107
121
|
/**
|
|
108
122
|
* Get the ratio of the point in the horizontal center of the area.
|
|
109
123
|
*/
|
|
110
|
-
|
|
124
|
+
function getHorizontalCenterRatio(point, area) {
|
|
111
125
|
const {
|
|
112
126
|
left,
|
|
113
127
|
width
|
|
114
128
|
} = area;
|
|
115
129
|
return (point.x - left) / width;
|
|
116
130
|
}
|
|
117
|
-
|
|
131
|
+
function preventDefault(event) {
|
|
118
132
|
event.preventDefault();
|
|
119
133
|
}
|
|
120
|
-
|
|
134
|
+
function getVerticalCenterRatio(point, area) {
|
|
121
135
|
const {
|
|
122
136
|
top,
|
|
123
137
|
height
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getReleaseInfo: () => any;
|
|
1
|
+
export declare const getReleaseInfo: () => any;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getReleaseInfo = void 0;
|
|
8
|
+
var _ponyfillGlobal = _interopRequireDefault(require("@mui/utils/ponyfillGlobal"));
|
|
9
|
+
const getReleaseInfo = () => {
|
|
10
|
+
const releaseInfo = "MTc0MjI0ODgwMDAwMA==";
|
|
4
11
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
12
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
13
|
// eslint-disable-next-line no-useless-concat
|
|
7
14
|
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
8
15
|
// eslint-disable-next-line no-underscore-dangle
|
|
9
|
-
return
|
|
16
|
+
return _ponyfillGlobal.default.__MUI_RELEASE_INFO__;
|
|
10
17
|
}
|
|
11
18
|
}
|
|
12
19
|
return releaseInfo;
|
|
13
|
-
};
|
|
20
|
+
};
|
|
21
|
+
exports.getReleaseInfo = getReleaseInfo;
|
package/models/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type { ZoomData } from '@mui/x-charts/internals';
|
|
2
|
-
export * from
|
|
2
|
+
export * from "./seriesType/index.js";
|
package/models/index.js
CHANGED
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _seriesType = require("./seriesType");
|
|
7
|
+
Object.keys(_seriesType).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _seriesType[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _seriesType[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
2
2
|
import { CommonDefaultizedProps, CommonSeriesType, CartesianSeriesType } from '@mui/x-charts/internals';
|
|
3
|
-
export type HeatmapValueType = [number, number, number];
|
|
3
|
+
export type HeatmapValueType = readonly [number, number, number];
|
|
4
4
|
export interface HeatmapSeriesType extends Omit<CommonSeriesType<HeatmapValueType>, 'color'>, CartesianSeriesType {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
type: 'heatmap';
|
|
6
|
+
/**
|
|
7
|
+
* Data associated to each bar.
|
|
8
|
+
*/
|
|
9
|
+
data?: readonly HeatmapValueType[];
|
|
10
|
+
/**
|
|
11
|
+
* The key used to retrieve data from the dataset.
|
|
12
|
+
*/
|
|
13
|
+
dataKey?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The label to display on the tooltip or the legend. It can be a string or a function.
|
|
16
|
+
*/
|
|
17
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* An object that allows to identify a single bar.
|
|
21
21
|
* Used for item interaction
|
|
22
22
|
*/
|
|
23
23
|
export type HeatmapItemIdentifier = {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
type: 'heatmap';
|
|
25
|
+
seriesId: DefaultizedHeatmapSeriesType['id'];
|
|
26
|
+
dataIndex: number;
|
|
27
27
|
};
|
|
28
|
-
export interface DefaultizedHeatmapSeriesType extends DefaultizedProps<HeatmapSeriesType, CommonDefaultizedProps> {
|
|
29
|
-
}
|
|
28
|
+
export interface DefaultizedHeatmapSeriesType extends DefaultizedProps<HeatmapSeriesType, CommonDefaultizedProps> {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./heatmap.js";
|
|
@@ -1 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _heatmap = require("./heatmap");
|
|
7
|
+
Object.keys(_heatmap).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _heatmap[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _heatmap[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BarChartProps } from '@mui/x-charts/BarChart';
|
|
3
|
+
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
4
|
+
import { BarChartProPluginsSignatures } from "./BarChartPro.plugins.js";
|
|
5
|
+
export interface BarChartProProps extends Omit<BarChartProps, 'apiRef'>, Omit<ChartContainerProProps<'bar', BarChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig'> {}
|
|
6
|
+
/**
|
|
7
|
+
* Demos:
|
|
8
|
+
*
|
|
9
|
+
* - [Bars](https://mui.com/x/react-charts/bars/)
|
|
10
|
+
* - [Bar demonstration](https://mui.com/x/react-charts/bar-demo/)
|
|
11
|
+
* - [Stacking](https://mui.com/x/react-charts/stacking/)
|
|
12
|
+
*
|
|
13
|
+
* API:
|
|
14
|
+
*
|
|
15
|
+
* - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
|
|
16
|
+
*/
|
|
17
|
+
declare const BarChartPro: React.ForwardRefExoticComponent<BarChartProProps & React.RefAttributes<SVGSVGElement>>;
|
|
18
|
+
export { BarChartPro };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
4
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
5
|
-
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useThemeProps } from '@mui/material/styles';
|
|
9
9
|
import { BarPlot } from '@mui/x-charts/BarChart';
|
|
10
|
-
import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
|
|
11
10
|
import { ChartsGrid } from '@mui/x-charts/ChartsGrid';
|
|
12
11
|
import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
|
|
13
12
|
import { ChartsAxis } from '@mui/x-charts/ChartsAxis';
|
|
@@ -17,55 +16,10 @@ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
|
17
16
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
18
17
|
import { useBarChartProps, ChartsWrapper } from '@mui/x-charts/internals';
|
|
19
18
|
import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
|
|
20
|
-
import { useIsZoomInteracting } from "../hooks/zoom/index.js";
|
|
21
19
|
import { useChartContainerProProps } from "../ChartContainerPro/useChartContainerProProps.js";
|
|
22
20
|
import { ChartDataProviderPro } from "../ChartDataProviderPro/index.js";
|
|
21
|
+
import { BAR_CHART_PRO_PLUGINS } from "./BarChartPro.plugins.js";
|
|
23
22
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
function BarChartPlotZoom(props) {
|
|
25
|
-
const isInteracting = useIsZoomInteracting();
|
|
26
|
-
return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
|
|
27
|
-
skipAnimation: isInteracting || props.skipAnimation
|
|
28
|
-
}));
|
|
29
|
-
}
|
|
30
|
-
process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
|
|
31
|
-
// ----------------------------- Warning --------------------------------
|
|
32
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
33
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
34
|
-
// ----------------------------------------------------------------------
|
|
35
|
-
/**
|
|
36
|
-
* If provided, the function will be used to format the label of the bar.
|
|
37
|
-
* It can be set to 'value' to display the current value.
|
|
38
|
-
* @param {BarItem} item The item to format.
|
|
39
|
-
* @param {BarLabelContext} context data about the bar.
|
|
40
|
-
* @returns {string} The formatted label.
|
|
41
|
-
*/
|
|
42
|
-
barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
|
|
43
|
-
/**
|
|
44
|
-
* Defines the border radius of the bar element.
|
|
45
|
-
*/
|
|
46
|
-
borderRadius: PropTypes.number,
|
|
47
|
-
/**
|
|
48
|
-
* Callback fired when a bar item is clicked.
|
|
49
|
-
* @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
|
|
50
|
-
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
51
|
-
*/
|
|
52
|
-
onItemClick: PropTypes.func,
|
|
53
|
-
/**
|
|
54
|
-
* If `true`, animations are skipped.
|
|
55
|
-
* @default undefined
|
|
56
|
-
*/
|
|
57
|
-
skipAnimation: PropTypes.bool,
|
|
58
|
-
/**
|
|
59
|
-
* The props used for each component slot.
|
|
60
|
-
* @default {}
|
|
61
|
-
*/
|
|
62
|
-
slotProps: PropTypes.object,
|
|
63
|
-
/**
|
|
64
|
-
* Overridable component slots.
|
|
65
|
-
* @default {}
|
|
66
|
-
*/
|
|
67
|
-
slots: PropTypes.object
|
|
68
|
-
} : void 0;
|
|
69
23
|
/**
|
|
70
24
|
* Demos:
|
|
71
25
|
*
|
|
@@ -84,6 +38,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
84
38
|
});
|
|
85
39
|
const {
|
|
86
40
|
initialZoom,
|
|
41
|
+
zoomData,
|
|
87
42
|
onZoomChange,
|
|
88
43
|
apiRef
|
|
89
44
|
} = props,
|
|
@@ -92,7 +47,6 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
92
47
|
chartsWrapperProps,
|
|
93
48
|
chartContainerProps,
|
|
94
49
|
barPlotProps,
|
|
95
|
-
axisClickHandlerProps,
|
|
96
50
|
gridProps,
|
|
97
51
|
clipPathProps,
|
|
98
52
|
clipPathGroupProps,
|
|
@@ -107,15 +61,17 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
|
|
|
107
61
|
chartsSurfaceProps
|
|
108
62
|
} = useChartContainerProProps(_extends({}, chartContainerProps, {
|
|
109
63
|
initialZoom,
|
|
64
|
+
zoomData,
|
|
110
65
|
onZoomChange,
|
|
111
|
-
apiRef
|
|
66
|
+
apiRef,
|
|
67
|
+
plugins: BAR_CHART_PRO_PLUGINS
|
|
112
68
|
}), ref);
|
|
113
69
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
114
70
|
return /*#__PURE__*/_jsx(ChartDataProviderPro, _extends({}, chartDataProviderProProps, {
|
|
115
71
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
116
72
|
children: [!props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
117
|
-
children: [
|
|
118
|
-
children: [/*#__PURE__*/_jsx(
|
|
73
|
+
children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
74
|
+
children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
119
75
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
120
76
|
}))]
|
|
121
77
|
}))
|
|
@@ -153,17 +109,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
153
109
|
* Defines the border radius of the bar element.
|
|
154
110
|
*/
|
|
155
111
|
borderRadius: PropTypes.number,
|
|
156
|
-
/**
|
|
157
|
-
* Indicate which axis to display the bottom of the charts.
|
|
158
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
159
|
-
* @default xAxisIds[0] The id of the first provided axis
|
|
160
|
-
*/
|
|
161
|
-
bottomAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
162
112
|
children: PropTypes.node,
|
|
163
113
|
className: PropTypes.string,
|
|
164
114
|
/**
|
|
165
115
|
* Color palette used to colorize multiple series.
|
|
166
|
-
* @default
|
|
116
|
+
* @default rainbowSurgePalette
|
|
167
117
|
*/
|
|
168
118
|
colors: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
169
119
|
/**
|
|
@@ -193,11 +143,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
193
143
|
*/
|
|
194
144
|
hideLegend: PropTypes.bool,
|
|
195
145
|
/**
|
|
196
|
-
* The
|
|
146
|
+
* The highlighted item.
|
|
147
|
+
* Used when the highlight is controlled.
|
|
197
148
|
*/
|
|
198
149
|
highlightedItem: PropTypes.shape({
|
|
199
150
|
dataIndex: PropTypes.number,
|
|
200
|
-
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
151
|
+
seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired
|
|
201
152
|
}),
|
|
202
153
|
/**
|
|
203
154
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -206,6 +157,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
206
157
|
id: PropTypes.string,
|
|
207
158
|
/**
|
|
208
159
|
* The list of zoom data related to each axis.
|
|
160
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
209
161
|
*/
|
|
210
162
|
initialZoom: PropTypes.arrayOf(PropTypes.shape({
|
|
211
163
|
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
@@ -217,12 +169,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
217
169
|
* @default 'vertical'
|
|
218
170
|
*/
|
|
219
171
|
layout: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
220
|
-
/**
|
|
221
|
-
* Indicate which axis to display the left of the charts.
|
|
222
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
223
|
-
* @default yAxisIds[0] The id of the first provided axis
|
|
224
|
-
*/
|
|
225
|
-
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
226
172
|
/**
|
|
227
173
|
* If `true`, a loading overlay is displayed.
|
|
228
174
|
* @default false
|
|
@@ -231,14 +177,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
231
177
|
/**
|
|
232
178
|
* The margin between the SVG and the drawing area.
|
|
233
179
|
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
234
|
-
*
|
|
180
|
+
*
|
|
181
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
235
182
|
*/
|
|
236
|
-
margin: PropTypes.shape({
|
|
183
|
+
margin: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
237
184
|
bottom: PropTypes.number,
|
|
238
185
|
left: PropTypes.number,
|
|
239
186
|
right: PropTypes.number,
|
|
240
187
|
top: PropTypes.number
|
|
241
|
-
}),
|
|
188
|
+
})]),
|
|
242
189
|
/**
|
|
243
190
|
* The function called for onClick events.
|
|
244
191
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
@@ -264,12 +211,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
264
211
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
265
212
|
*/
|
|
266
213
|
onZoomChange: PropTypes.func,
|
|
267
|
-
/**
|
|
268
|
-
* Indicate which axis to display the right of the charts.
|
|
269
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
270
|
-
* @default null
|
|
271
|
-
*/
|
|
272
|
-
rightAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
273
214
|
/**
|
|
274
215
|
* The series to display in the bar chart.
|
|
275
216
|
* An array of [[BarSeriesType]] objects.
|
|
@@ -293,12 +234,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
293
234
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
294
235
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
295
236
|
title: PropTypes.string,
|
|
296
|
-
/**
|
|
297
|
-
* Indicate which axis to display the top of the charts.
|
|
298
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
299
|
-
* @default null
|
|
300
|
-
*/
|
|
301
|
-
topAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
302
237
|
/**
|
|
303
238
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
304
239
|
*/
|
|
@@ -309,6 +244,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
309
244
|
* An array of [[AxisConfig]] objects.
|
|
310
245
|
*/
|
|
311
246
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
247
|
+
axis: PropTypes.oneOf(['x']),
|
|
312
248
|
classes: PropTypes.object,
|
|
313
249
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
314
250
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -331,13 +267,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
331
267
|
disableTicks: PropTypes.bool,
|
|
332
268
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
333
269
|
fill: PropTypes.string,
|
|
270
|
+
height: PropTypes.number,
|
|
334
271
|
hideTooltip: PropTypes.bool,
|
|
335
272
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
336
273
|
label: PropTypes.string,
|
|
337
274
|
labelStyle: PropTypes.object,
|
|
338
275
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
339
276
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
340
|
-
|
|
277
|
+
offset: PropTypes.number,
|
|
278
|
+
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
341
279
|
reverse: PropTypes.bool,
|
|
342
280
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
343
281
|
slotProps: PropTypes.object,
|
|
@@ -346,6 +284,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
346
284
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
347
285
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
348
286
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
287
|
+
tickLabelMinGap: PropTypes.number,
|
|
349
288
|
tickLabelPlacement: PropTypes.oneOf(['middle', 'tick']),
|
|
350
289
|
tickLabelStyle: PropTypes.object,
|
|
351
290
|
tickMaxStep: PropTypes.number,
|
|
@@ -370,6 +309,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
370
309
|
* An array of [[AxisConfig]] objects.
|
|
371
310
|
*/
|
|
372
311
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
312
|
+
axis: PropTypes.oneOf(['y']),
|
|
373
313
|
classes: PropTypes.object,
|
|
374
314
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
375
315
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -398,7 +338,8 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
398
338
|
labelStyle: PropTypes.object,
|
|
399
339
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
400
340
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
401
|
-
|
|
341
|
+
offset: PropTypes.number,
|
|
342
|
+
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
402
343
|
reverse: PropTypes.bool,
|
|
403
344
|
scaleType: PropTypes.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
404
345
|
slotProps: PropTypes.object,
|
|
@@ -415,6 +356,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
415
356
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
416
357
|
tickSize: PropTypes.number,
|
|
417
358
|
valueFormatter: PropTypes.func,
|
|
359
|
+
width: PropTypes.number,
|
|
418
360
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
419
361
|
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
420
362
|
maxEnd: PropTypes.number,
|
|
@@ -449,6 +391,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
449
391
|
id: PropTypes.string,
|
|
450
392
|
max: PropTypes.number,
|
|
451
393
|
min: PropTypes.number
|
|
394
|
+
})),
|
|
395
|
+
/**
|
|
396
|
+
* The list of zoom data related to each axis.
|
|
397
|
+
*/
|
|
398
|
+
zoomData: PropTypes.arrayOf(PropTypes.shape({
|
|
399
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
400
|
+
end: PropTypes.number.isRequired,
|
|
401
|
+
start: PropTypes.number.isRequired
|
|
452
402
|
}))
|
|
453
403
|
} : void 0;
|
|
454
404
|
export { BarChartPro };
|