@mui/x-charts-pro 9.0.0-alpha.2 → 9.0.0-alpha.4
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.mts +2 -2
- package/BarChartPro/BarChartPro.d.ts +2 -2
- package/BarChartPro/BarChartPro.js +43 -10
- package/BarChartPro/BarChartPro.mjs +43 -10
- package/CHANGELOG.md +246 -1
- package/ChartsContainerPro/ChartsContainerPro.d.mts +2 -2
- package/ChartsContainerPro/ChartsContainerPro.d.ts +2 -2
- package/ChartsContainerPro/ChartsContainerPro.js +2 -2
- package/ChartsContainerPro/ChartsContainerPro.mjs +2 -2
- package/ChartsContainerPro/useChartsContainerProProps.d.mts +4 -4
- package/ChartsContainerPro/useChartsContainerProProps.d.ts +4 -4
- package/ChartsContainerPro/useChartsContainerProProps.js +3 -3
- package/ChartsContainerPro/useChartsContainerProProps.mjs +3 -3
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.mts +2 -2
- package/ChartsDataProviderPro/ChartsDataProviderPro.d.ts +2 -2
- package/ChartsDataProviderPro/ChartsDataProviderPro.js +8 -11
- package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +8 -11
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +1 -1
- package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarPro.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomInTrigger.mjs +2 -2
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.js +1 -1
- package/ChartsToolbarPro/ChartsToolbarZoomOutTrigger.mjs +2 -2
- package/ChartsToolbarPro/index.d.mts +2 -1
- package/ChartsToolbarPro/index.d.ts +2 -1
- package/ChartsToolbarPro/index.mjs +2 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderActiveTrack.mjs +2 -2
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.js +1 -1
- package/ChartsZoomSlider/internals/ChartsAxisZoomSliderTrack.mjs +2 -2
- package/FunnelChart/FunnelChart.d.mts +2 -2
- package/FunnelChart/FunnelChart.d.ts +2 -2
- package/FunnelChart/FunnelChart.js +23 -8
- package/FunnelChart/FunnelChart.mjs +23 -8
- package/FunnelChart/FunnelPlot.js +8 -3
- package/FunnelChart/FunnelPlot.mjs +8 -3
- package/FunnelChart/FunnelSection.d.mts +3 -3
- package/FunnelChart/FunnelSection.d.ts +3 -3
- package/FunnelChart/FunnelSection.js +8 -9
- package/FunnelChart/FunnelSection.mjs +8 -9
- package/FunnelChart/FunnelSectionLabel.d.mts +9 -3
- package/FunnelChart/FunnelSectionLabel.d.ts +9 -3
- package/FunnelChart/FunnelSectionLabel.js +15 -6
- package/FunnelChart/FunnelSectionLabel.mjs +15 -6
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.mts +3 -3
- package/FunnelChart/funnelAxisPlugin/computeAxisValue.d.ts +3 -3
- package/FunnelChart/funnelClasses.d.mts +29 -0
- package/FunnelChart/funnelClasses.d.ts +29 -0
- package/FunnelChart/funnelClasses.js +29 -0
- package/FunnelChart/funnelClasses.mjs +19 -0
- package/FunnelChart/index.d.mts +2 -2
- package/FunnelChart/index.d.ts +2 -2
- package/FunnelChart/index.js +4 -4
- package/FunnelChart/index.mjs +1 -1
- package/FunnelChart/seriesConfig/legend.js +0 -2
- package/FunnelChart/seriesConfig/legend.mjs +0 -2
- package/FunnelChart/useFunnelChartProps.d.mts +2 -2
- package/FunnelChart/useFunnelChartProps.d.ts +2 -2
- package/FunnelChart/useFunnelChartProps.js +2 -2
- package/FunnelChart/useFunnelChartProps.mjs +2 -2
- package/Heatmap/Heatmap.d.mts +2 -11
- package/Heatmap/Heatmap.d.ts +2 -11
- package/Heatmap/Heatmap.js +25 -19
- package/Heatmap/Heatmap.mjs +25 -19
- package/Heatmap/HeatmapCell.d.mts +33 -0
- package/Heatmap/HeatmapCell.d.ts +33 -0
- package/Heatmap/HeatmapCell.js +62 -0
- package/Heatmap/HeatmapCell.mjs +55 -0
- package/Heatmap/HeatmapItem.d.mts +1 -9
- package/Heatmap/HeatmapItem.d.ts +1 -9
- package/Heatmap/HeatmapItem.js +5 -23
- package/Heatmap/HeatmapItem.mjs +5 -23
- package/Heatmap/HeatmapSVGPlot.js +14 -7
- package/Heatmap/HeatmapSVGPlot.mjs +15 -8
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.js +2 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.mjs +1 -1
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +16 -13
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.mjs +16 -13
- package/Heatmap/heatmapClasses.d.mts +6 -1
- package/Heatmap/heatmapClasses.d.ts +6 -1
- package/Heatmap/heatmapClasses.js +18 -3
- package/Heatmap/heatmapClasses.mjs +16 -2
- package/Heatmap/index.d.mts +4 -2
- package/Heatmap/index.d.ts +4 -2
- package/Heatmap/index.js +17 -13
- package/Heatmap/index.mjs +2 -1
- package/Heatmap/seriesConfig/getColor.js +5 -3
- package/Heatmap/seriesConfig/getColor.mjs +5 -3
- package/Heatmap/seriesConfig/getItemAtPosition.d.mts +2 -2
- package/Heatmap/seriesConfig/getItemAtPosition.d.ts +2 -2
- package/Heatmap/seriesConfig/getItemAtPosition.js +3 -11
- package/Heatmap/seriesConfig/getItemAtPosition.mjs +3 -11
- package/Heatmap/seriesConfig/identifierCleaner.d.mts +3 -0
- package/Heatmap/seriesConfig/identifierCleaner.d.ts +3 -0
- package/Heatmap/seriesConfig/identifierCleaner.js +15 -0
- package/Heatmap/seriesConfig/identifierCleaner.mjs +9 -0
- package/Heatmap/seriesConfig/identifierSerializer.d.mts +3 -0
- package/Heatmap/seriesConfig/identifierSerializer.d.ts +3 -0
- package/Heatmap/seriesConfig/identifierSerializer.js +11 -0
- package/Heatmap/seriesConfig/identifierSerializer.mjs +5 -0
- package/Heatmap/seriesConfig/index.js +4 -2
- package/Heatmap/seriesConfig/index.mjs +5 -3
- package/Heatmap/seriesConfig/keyboardFocusHandler.js +6 -19
- package/Heatmap/seriesConfig/keyboardFocusHandler.mjs +6 -19
- package/Heatmap/seriesConfig/seriesProcessor.js +8 -3
- package/Heatmap/seriesConfig/seriesProcessor.mjs +8 -3
- package/Heatmap/seriesConfig/tooltip.js +7 -6
- package/Heatmap/seriesConfig/tooltip.mjs +7 -6
- package/Heatmap/seriesConfig/tooltipPosition.js +3 -4
- package/Heatmap/seriesConfig/tooltipPosition.mjs +3 -4
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.js +1 -1
- package/Heatmap/shouldRegisterPointerInteractionsGlobally.mjs +1 -1
- package/Heatmap/useHeatmapProps.d.mts +2 -2
- package/Heatmap/useHeatmapProps.d.ts +2 -2
- package/Heatmap/useHeatmapProps.js +4 -6
- package/Heatmap/useHeatmapProps.mjs +4 -6
- package/LineChartPro/LineChartPro.d.mts +2 -2
- package/LineChartPro/LineChartPro.d.ts +2 -2
- package/LineChartPro/LineChartPro.js +40 -13
- package/LineChartPro/LineChartPro.mjs +40 -13
- package/PieChartPro/PieChartPro.d.mts +2 -2
- package/PieChartPro/PieChartPro.d.ts +2 -2
- package/PieChartPro/PieChartPro.js +22 -7
- package/PieChartPro/PieChartPro.mjs +22 -7
- package/RadarChartPro/RadarChartPro.d.mts +1 -1
- package/RadarChartPro/RadarChartPro.d.ts +1 -1
- package/RadarChartPro/RadarChartPro.js +20 -2
- package/RadarChartPro/RadarChartPro.mjs +20 -2
- package/SankeyChart/SankeyChart.d.mts +2 -2
- package/SankeyChart/SankeyChart.d.ts +2 -2
- package/SankeyChart/SankeyChart.js +21 -12
- package/SankeyChart/SankeyChart.mjs +21 -12
- package/SankeyChart/SankeyDataProvider.d.mts +2 -2
- package/SankeyChart/SankeyDataProvider.d.ts +2 -2
- package/SankeyChart/SankeyDataProvider.js +2 -2
- package/SankeyChart/SankeyDataProvider.mjs +2 -2
- package/SankeyChart/SankeyLinkElement.js +7 -3
- package/SankeyChart/SankeyLinkElement.mjs +8 -4
- package/SankeyChart/SankeyLinkLabel.js +3 -0
- package/SankeyChart/SankeyLinkLabel.mjs +3 -0
- package/SankeyChart/SankeyLinkLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkLabelPlot.js +1 -1
- package/SankeyChart/SankeyLinkLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyLinkPlot.d.mts +2 -2
- package/SankeyChart/SankeyLinkPlot.d.ts +2 -2
- package/SankeyChart/SankeyLinkPlot.js +1 -1
- package/SankeyChart/SankeyLinkPlot.mjs +1 -1
- package/SankeyChart/SankeyNodeElement.d.mts +1 -1
- package/SankeyChart/SankeyNodeElement.d.ts +1 -1
- package/SankeyChart/SankeyNodeElement.js +20 -18
- package/SankeyChart/SankeyNodeElement.mjs +21 -19
- package/SankeyChart/SankeyNodeLabel.js +3 -0
- package/SankeyChart/SankeyNodeLabel.mjs +3 -0
- package/SankeyChart/SankeyNodeLabelPlot.d.mts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.d.ts +2 -2
- package/SankeyChart/SankeyNodeLabelPlot.js +1 -1
- package/SankeyChart/SankeyNodeLabelPlot.mjs +1 -1
- package/SankeyChart/SankeyNodePlot.d.mts +2 -2
- package/SankeyChart/SankeyNodePlot.d.ts +2 -2
- package/SankeyChart/SankeyNodePlot.js +1 -1
- package/SankeyChart/SankeyNodePlot.mjs +1 -1
- package/SankeyChart/SankeyPlot.d.mts +2 -2
- package/SankeyChart/SankeyPlot.d.ts +2 -2
- package/SankeyChart/SankeyPlot.js +3 -3
- package/SankeyChart/SankeyPlot.mjs +3 -3
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.js +2 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.mjs +1 -1
- package/SankeyChart/index.d.mts +2 -1
- package/SankeyChart/index.d.ts +2 -1
- package/SankeyChart/index.js +3 -3
- package/SankeyChart/index.mjs +1 -1
- package/SankeyChart/sankeyClasses.d.mts +15 -6
- package/SankeyChart/sankeyClasses.d.ts +15 -6
- package/SankeyChart/sankeyClasses.js +12 -8
- package/SankeyChart/sankeyClasses.mjs +10 -6
- package/SankeyChart/sankeyHighlightHooks.d.mts +2 -2
- package/SankeyChart/sankeyHighlightHooks.d.ts +2 -2
- package/SankeyChart/sankeyHighlightHooks.js +2 -10
- package/SankeyChart/sankeyHighlightHooks.mjs +3 -11
- package/SankeyChart/useSankeyChartProps.d.mts +2 -2
- package/SankeyChart/useSankeyChartProps.d.ts +2 -2
- package/SankeyChart/useSankeyChartProps.js +2 -2
- package/SankeyChart/useSankeyChartProps.mjs +2 -2
- package/ScatterChartPro/ScatterChartPro.d.mts +2 -2
- package/ScatterChartPro/ScatterChartPro.d.ts +2 -2
- package/ScatterChartPro/ScatterChartPro.js +62 -17
- package/ScatterChartPro/ScatterChartPro.mjs +62 -17
- package/context/useChartProApiContext.d.mts +1 -1
- package/context/useChartProApiContext.d.ts +1 -1
- package/context/useChartProApiContext.js +1 -1
- package/context/useChartProApiContext.mjs +1 -1
- package/index.d.mts +0 -4
- package/index.d.ts +0 -4
- package/index.js +2 -34
- package/index.mjs +1 -4
- package/internals/ChartsWatermark.d.mts +2 -2
- package/internals/ChartsWatermark.d.ts +2 -2
- package/internals/ChartsWatermark.js +5 -8
- package/internals/ChartsWatermark.mjs +3 -6
- package/internals/index.d.mts +0 -1
- package/internals/index.d.ts +0 -1
- package/internals/index.js +0 -8
- package/internals/index.mjs +0 -1
- package/internals/plugins/allPlugins.d.mts +4 -4
- package/internals/plugins/allPlugins.d.ts +4 -4
- package/internals/plugins/useChartProExport/common.js +4 -8
- package/internals/plugins/useChartProExport/common.mjs +4 -8
- package/internals/plugins/useChartProExport/exportImage.js +1 -1
- package/internals/plugins/useChartProExport/exportImage.mjs +1 -1
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.mts +1 -1
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.types.d.ts +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +16 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.mjs +16 -1
- package/models/seriesType/heatmap.d.mts +36 -9
- package/models/seriesType/heatmap.d.ts +36 -9
- package/models/seriesType/heatmap.js +28 -1
- package/models/seriesType/heatmap.mjs +25 -1
- package/package.json +5 -61
- package/plugins/selectors/useChartHeatmapPosition.selectors.d.mts +2 -2
- package/plugins/selectors/useChartHeatmapPosition.selectors.d.ts +2 -2
- package/plugins/selectors/useChartHeatmapPosition.selectors.js +4 -4
- package/plugins/selectors/useChartHeatmapPosition.selectors.mjs +4 -4
- package/themeAugmentation/components.d.mts +19 -1
- package/themeAugmentation/components.d.ts +19 -1
- package/themeAugmentation/overrides.d.mts +5 -2
- package/themeAugmentation/overrides.d.ts +5 -2
- package/themeAugmentation/props.d.mts +8 -0
- package/themeAugmentation/props.d.ts +8 -0
- package/typeOverloads/modules.d.mts +2 -2
- package/typeOverloads/modules.d.ts +2 -2
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -2
- package/ChartContainerPro/ChartContainerPro.d.mts +0 -21
- package/ChartContainerPro/ChartContainerPro.d.ts +0 -21
- package/ChartContainerPro/ChartContainerPro.js +0 -24
- package/ChartContainerPro/ChartContainerPro.mjs +0 -20
- package/ChartContainerPro/index.d.mts +0 -9
- package/ChartContainerPro/index.d.ts +0 -9
- package/ChartContainerPro/index.js +0 -17
- package/ChartContainerPro/index.mjs +0 -6
- package/ChartContainerPro/useChartContainerProProps.d.mts +0 -12
- package/ChartContainerPro/useChartContainerProProps.d.ts +0 -12
- package/ChartContainerPro/useChartContainerProProps.js +0 -19
- package/ChartContainerPro/useChartContainerProProps.mjs +0 -14
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -2
- package/ChartDataProviderPro/ChartDataProviderPro.d.mts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -20
- package/ChartDataProviderPro/ChartDataProviderPro.js +0 -30
- package/ChartDataProviderPro/ChartDataProviderPro.mjs +0 -21
- package/ChartDataProviderPro/index.d.mts +0 -2
- package/ChartDataProviderPro/index.d.ts +0 -2
- package/ChartDataProviderPro/index.js +0 -13
- package/ChartDataProviderPro/index.mjs +0 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.d.mts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -10
- package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -12
- package/ChartDataProviderPro/useChartDataProviderProProps.mjs +0 -8
- package/FunnelChart/funnelSectionClasses.d.mts +0 -30
- package/FunnelChart/funnelSectionClasses.d.ts +0 -30
- package/FunnelChart/funnelSectionClasses.js +0 -44
- package/FunnelChart/funnelSectionClasses.mjs +0 -35
- package/Heatmap/internals/HeatmapCell.d.mts +0 -21
- package/Heatmap/internals/HeatmapCell.d.ts +0 -21
- package/Heatmap/internals/HeatmapCell.js +0 -18
- package/Heatmap/internals/HeatmapCell.mjs +0 -12
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
|
@@ -2,25 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["classes", "color", "onClick", "className", "label", "seriesId", "dataIndex"];
|
|
5
|
+
const _excluded = ["classes", "color", "onClick", "className", "label", "variant", "seriesId", "dataIndex"];
|
|
6
6
|
import * as React from 'react';
|
|
7
|
-
import { useTheme } from '@mui/material/styles';
|
|
7
|
+
import { styled, useTheme } from '@mui/material/styles';
|
|
8
8
|
import { consumeSlots } from '@mui/x-charts/internals';
|
|
9
|
-
import
|
|
9
|
+
import clsx from 'clsx';
|
|
10
|
+
import { useUtilityClasses } from "./funnelClasses.mjs";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
export const FunnelSectionLabelText = styled('text', {
|
|
13
|
+
name: 'MuiFunnelChart',
|
|
14
|
+
slot: 'SectionLabel'
|
|
15
|
+
})(() => ({
|
|
16
|
+
transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
|
|
17
|
+
}));
|
|
18
|
+
|
|
11
19
|
/**
|
|
12
20
|
* @ignore - internal component.
|
|
13
21
|
*/
|
|
14
22
|
const FunnelSectionLabel = consumeSlots('MuiFunnelSectionLabel', 'funnelSectionLabel', {
|
|
15
|
-
classesResolver:
|
|
23
|
+
classesResolver: useUtilityClasses
|
|
16
24
|
}, /*#__PURE__*/React.forwardRef(function FunnelSectionLabel(props, ref) {
|
|
17
25
|
const {
|
|
18
26
|
classes,
|
|
27
|
+
className,
|
|
19
28
|
label
|
|
20
29
|
} = props,
|
|
21
30
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
22
31
|
const theme = useTheme();
|
|
23
|
-
return /*#__PURE__*/_jsx(
|
|
32
|
+
return /*#__PURE__*/_jsx(FunnelSectionLabelText, _extends({
|
|
24
33
|
stroke: "none",
|
|
25
34
|
pointerEvents: "none",
|
|
26
35
|
fontFamily: theme.typography.body2.fontFamily,
|
|
@@ -32,7 +41,7 @@ const FunnelSectionLabel = consumeSlots('MuiFunnelSectionLabel', 'funnelSectionL
|
|
|
32
41
|
fontStyle: theme.typography.body2.fontStyle,
|
|
33
42
|
fontVariant: theme.typography.body2.fontVariant,
|
|
34
43
|
fill: (theme.vars || theme)?.palette?.text?.primary,
|
|
35
|
-
className: classes?.
|
|
44
|
+
className: clsx(classes?.sectionLabel, className),
|
|
36
45
|
x: label.x,
|
|
37
46
|
y: label.y,
|
|
38
47
|
textAnchor: label.textAnchor ?? 'middle',
|
|
@@ -8,10 +8,10 @@ export type ComputeResult<T extends ChartsAxisProps> = {
|
|
|
8
8
|
axis: ComputedAxisConfig<T>;
|
|
9
9
|
axisIds: string[];
|
|
10
10
|
};
|
|
11
|
-
type ComputeCommonParams<
|
|
11
|
+
type ComputeCommonParams<SeriesType extends ChartSeriesType = 'funnel'> = {
|
|
12
12
|
drawingArea: ChartDrawingArea;
|
|
13
|
-
formattedSeries: ProcessedSeries<
|
|
14
|
-
seriesConfig: ChartSeriesConfig<
|
|
13
|
+
formattedSeries: ProcessedSeries<SeriesType>;
|
|
14
|
+
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
15
15
|
gap: number;
|
|
16
16
|
};
|
|
17
17
|
export declare function computeAxisValue(options: ComputeCommonParams<'funnel'> & {
|
|
@@ -8,10 +8,10 @@ export type ComputeResult<T extends ChartsAxisProps> = {
|
|
|
8
8
|
axis: ComputedAxisConfig<T>;
|
|
9
9
|
axisIds: string[];
|
|
10
10
|
};
|
|
11
|
-
type ComputeCommonParams<
|
|
11
|
+
type ComputeCommonParams<SeriesType extends ChartSeriesType = 'funnel'> = {
|
|
12
12
|
drawingArea: ChartDrawingArea;
|
|
13
|
-
formattedSeries: ProcessedSeries<
|
|
14
|
-
seriesConfig: ChartSeriesConfig<
|
|
13
|
+
formattedSeries: ProcessedSeries<SeriesType>;
|
|
14
|
+
seriesConfig: ChartSeriesConfig<SeriesType>;
|
|
15
15
|
gap: number;
|
|
16
16
|
};
|
|
17
17
|
export declare function computeAxisValue(options: ComputeCommonParams<'funnel'> & {
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SeriesId } from '@mui/x-charts/internals';
|
|
2
|
+
export interface FunnelClasses {
|
|
3
|
+
/** Styles applied to the funnel plot element. */
|
|
4
|
+
root: string;
|
|
5
|
+
/** Styles applied to an individual funnel section element. */
|
|
6
|
+
section: string;
|
|
7
|
+
/** Styles applied to a funnel section element if `variant="filled"`. */
|
|
8
|
+
sectionFilled: string;
|
|
9
|
+
/** Styles applied to a funnel section element if `variant="outlined"`. */
|
|
10
|
+
sectionOutlined: string;
|
|
11
|
+
/** Styles applied to a funnel section label element. */
|
|
12
|
+
sectionLabel: string;
|
|
13
|
+
}
|
|
14
|
+
export type FunnelClassKey = keyof FunnelClasses;
|
|
15
|
+
export interface FunnelSectionOwnerState {
|
|
16
|
+
seriesId: SeriesId;
|
|
17
|
+
dataIndex: number;
|
|
18
|
+
color: string;
|
|
19
|
+
isFaded: boolean;
|
|
20
|
+
isHighlighted: boolean;
|
|
21
|
+
classes?: Partial<FunnelClasses>;
|
|
22
|
+
}
|
|
23
|
+
export declare function getFunnelUtilityClass(slot: string): string;
|
|
24
|
+
export declare const funnelClasses: FunnelClasses;
|
|
25
|
+
export interface UseUtilityClassesOptions {
|
|
26
|
+
variant?: 'filled' | 'outlined';
|
|
27
|
+
classes?: Partial<FunnelClasses>;
|
|
28
|
+
}
|
|
29
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"section" | "sectionLabel" | "root", string>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SeriesId } from '@mui/x-charts/internals';
|
|
2
|
+
export interface FunnelClasses {
|
|
3
|
+
/** Styles applied to the funnel plot element. */
|
|
4
|
+
root: string;
|
|
5
|
+
/** Styles applied to an individual funnel section element. */
|
|
6
|
+
section: string;
|
|
7
|
+
/** Styles applied to a funnel section element if `variant="filled"`. */
|
|
8
|
+
sectionFilled: string;
|
|
9
|
+
/** Styles applied to a funnel section element if `variant="outlined"`. */
|
|
10
|
+
sectionOutlined: string;
|
|
11
|
+
/** Styles applied to a funnel section label element. */
|
|
12
|
+
sectionLabel: string;
|
|
13
|
+
}
|
|
14
|
+
export type FunnelClassKey = keyof FunnelClasses;
|
|
15
|
+
export interface FunnelSectionOwnerState {
|
|
16
|
+
seriesId: SeriesId;
|
|
17
|
+
dataIndex: number;
|
|
18
|
+
color: string;
|
|
19
|
+
isFaded: boolean;
|
|
20
|
+
isHighlighted: boolean;
|
|
21
|
+
classes?: Partial<FunnelClasses>;
|
|
22
|
+
}
|
|
23
|
+
export declare function getFunnelUtilityClass(slot: string): string;
|
|
24
|
+
export declare const funnelClasses: FunnelClasses;
|
|
25
|
+
export interface UseUtilityClassesOptions {
|
|
26
|
+
variant?: 'filled' | 'outlined';
|
|
27
|
+
classes?: Partial<FunnelClasses>;
|
|
28
|
+
}
|
|
29
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"section" | "sectionLabel" | "root", string>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.funnelClasses = void 0;
|
|
8
|
+
exports.getFunnelUtilityClass = getFunnelUtilityClass;
|
|
9
|
+
exports.useUtilityClasses = void 0;
|
|
10
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
11
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
12
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
13
|
+
function getFunnelUtilityClass(slot) {
|
|
14
|
+
return (0, _generateUtilityClass.default)('MuiFunnelChart', slot);
|
|
15
|
+
}
|
|
16
|
+
const funnelClasses = exports.funnelClasses = (0, _generateUtilityClasses.default)('MuiFunnelChart', ['root', 'section', 'sectionFilled', 'sectionOutlined', 'sectionLabel', 'sectionLabelFilled', 'sectionLabelOutlined']);
|
|
17
|
+
const useUtilityClasses = options => {
|
|
18
|
+
const {
|
|
19
|
+
variant = 'filled',
|
|
20
|
+
classes
|
|
21
|
+
} = options ?? {};
|
|
22
|
+
const slots = {
|
|
23
|
+
root: ['root'],
|
|
24
|
+
section: ['section', variant === 'filled' && 'sectionFilled', variant === 'outlined' && 'sectionOutlined'],
|
|
25
|
+
sectionLabel: ['sectionLabel', variant === 'filled' && 'sectionLabelFilled', variant === 'outlined' && 'sectionLabelOutlined']
|
|
26
|
+
};
|
|
27
|
+
return (0, _composeClasses.default)(slots, getFunnelUtilityClass, classes);
|
|
28
|
+
};
|
|
29
|
+
exports.useUtilityClasses = useUtilityClasses;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
3
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
4
|
+
export function getFunnelUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiFunnelChart', slot);
|
|
6
|
+
}
|
|
7
|
+
export const funnelClasses = generateUtilityClasses('MuiFunnelChart', ['root', 'section', 'sectionFilled', 'sectionOutlined', 'sectionLabel', 'sectionLabelFilled', 'sectionLabelOutlined']);
|
|
8
|
+
export const useUtilityClasses = options => {
|
|
9
|
+
const {
|
|
10
|
+
variant = 'filled',
|
|
11
|
+
classes
|
|
12
|
+
} = options ?? {};
|
|
13
|
+
const slots = {
|
|
14
|
+
root: ['root'],
|
|
15
|
+
section: ['section', variant === 'filled' && 'sectionFilled', variant === 'outlined' && 'sectionOutlined'],
|
|
16
|
+
sectionLabel: ['sectionLabel', variant === 'filled' && 'sectionLabelFilled', variant === 'outlined' && 'sectionLabelOutlined']
|
|
17
|
+
};
|
|
18
|
+
return composeClasses(slots, getFunnelUtilityClass, classes);
|
|
19
|
+
};
|
package/FunnelChart/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ export * from "./categoryAxis.types.mjs";
|
|
|
12
12
|
export * from "./funnelSlots.types.mjs";
|
|
13
13
|
export * from "./FunnelChart.plugins.mjs";
|
|
14
14
|
export type { FunnelCurveType } from "./curves/index.mjs";
|
|
15
|
-
export {
|
|
16
|
-
export type {
|
|
15
|
+
export { funnelClasses } from "./funnelClasses.mjs";
|
|
16
|
+
export type { FunnelClassKey, FunnelClasses } from "./funnelClasses.mjs";
|
|
17
17
|
export { FunnelSection } from "./FunnelSection.mjs";
|
|
18
18
|
export { FunnelSectionLabel } from "./FunnelSectionLabel.mjs";
|
package/FunnelChart/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export * from "./categoryAxis.types.js";
|
|
|
12
12
|
export * from "./funnelSlots.types.js";
|
|
13
13
|
export * from "./FunnelChart.plugins.js";
|
|
14
14
|
export type { FunnelCurveType } from "./curves/index.js";
|
|
15
|
-
export {
|
|
16
|
-
export type {
|
|
15
|
+
export { funnelClasses } from "./funnelClasses.js";
|
|
16
|
+
export type { FunnelClassKey, FunnelClasses } from "./funnelClasses.js";
|
|
17
17
|
export { FunnelSection } from "./FunnelSection.js";
|
|
18
18
|
export { FunnelSectionLabel } from "./FunnelSectionLabel.js";
|
package/FunnelChart/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
var _exportNames = {
|
|
7
7
|
Unstable_FunnelChart: true,
|
|
8
8
|
FunnelChart: true,
|
|
9
|
-
|
|
9
|
+
funnelClasses: true,
|
|
10
10
|
FunnelSection: true,
|
|
11
11
|
FunnelSectionLabel: true
|
|
12
12
|
};
|
|
@@ -29,10 +29,10 @@ Object.defineProperty(exports, "FunnelSectionLabel", {
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
exports.Unstable_FunnelChart = void 0;
|
|
32
|
-
Object.defineProperty(exports, "
|
|
32
|
+
Object.defineProperty(exports, "funnelClasses", {
|
|
33
33
|
enumerable: true,
|
|
34
34
|
get: function () {
|
|
35
|
-
return
|
|
35
|
+
return _funnelClasses.funnelClasses;
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
var _FunnelChart = require("./FunnelChart");
|
|
@@ -120,7 +120,7 @@ Object.keys(_FunnelChart2).forEach(function (key) {
|
|
|
120
120
|
}
|
|
121
121
|
});
|
|
122
122
|
});
|
|
123
|
-
var
|
|
123
|
+
var _funnelClasses = require("./funnelClasses");
|
|
124
124
|
var _FunnelSection = require("./FunnelSection");
|
|
125
125
|
var _FunnelSectionLabel = require("./FunnelSectionLabel");
|
|
126
126
|
/**
|
package/FunnelChart/index.mjs
CHANGED
|
@@ -12,6 +12,6 @@ export * from "./funnel.types.mjs";
|
|
|
12
12
|
export * from "./categoryAxis.types.mjs";
|
|
13
13
|
export * from "./funnelSlots.types.mjs";
|
|
14
14
|
export * from "./FunnelChart.plugins.mjs";
|
|
15
|
-
export {
|
|
15
|
+
export { funnelClasses } from "./funnelClasses.mjs";
|
|
16
16
|
export { FunnelSection } from "./FunnelSection.mjs";
|
|
17
17
|
export { FunnelSectionLabel } from "./FunnelSectionLabel.mjs";
|
|
@@ -16,12 +16,10 @@ const legendGetter = params => {
|
|
|
16
16
|
if (formattedLabel === undefined) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
const id = item.id ?? dataIndex;
|
|
20
19
|
acc.push({
|
|
21
20
|
type: 'funnel',
|
|
22
21
|
markType: item.labelMarkType ?? series[seriesId].labelMarkType,
|
|
23
22
|
seriesId,
|
|
24
|
-
itemId: id,
|
|
25
23
|
dataIndex,
|
|
26
24
|
color: item.color,
|
|
27
25
|
label: formattedLabel
|
|
@@ -10,12 +10,10 @@ const legendGetter = params => {
|
|
|
10
10
|
if (formattedLabel === undefined) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
|
-
const id = item.id ?? dataIndex;
|
|
14
13
|
acc.push({
|
|
15
14
|
type: 'funnel',
|
|
16
15
|
markType: item.labelMarkType ?? series[seriesId].labelMarkType,
|
|
17
16
|
seriesId,
|
|
18
|
-
itemId: id,
|
|
19
17
|
dataIndex,
|
|
20
18
|
color: item.color,
|
|
21
19
|
label: formattedLabel
|
|
@@ -6,7 +6,7 @@ import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
|
|
|
6
6
|
import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.mjs";
|
|
7
7
|
import { type FunnelPlotProps } from "./FunnelPlot.mjs";
|
|
8
8
|
import type { FunnelChartProps } from "./FunnelChart.mjs";
|
|
9
|
-
import { type
|
|
9
|
+
import { type ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
|
|
10
10
|
/**
|
|
11
11
|
* A helper function that extracts FunnelChartProps from the input props
|
|
12
12
|
* and returns an object with props for the children components of FunnelChart.
|
|
@@ -15,7 +15,7 @@ import { type ChartContainerProProps } from "../ChartContainerPro/index.mjs";
|
|
|
15
15
|
* @returns An object with props for the children components of FunnelChart
|
|
16
16
|
*/
|
|
17
17
|
export declare const useFunnelChartProps: (props: FunnelChartProps) => {
|
|
18
|
-
|
|
18
|
+
chartsContainerProps: ChartsContainerProProps<"funnel", FunnelChartPluginSignatures>;
|
|
19
19
|
funnelPlotProps: FunnelPlotProps;
|
|
20
20
|
overlayProps: ChartsOverlayProps;
|
|
21
21
|
chartsAxisProps: ChartsAxisProps;
|
|
@@ -6,7 +6,7 @@ import type { ChartsWrapperProps } from '@mui/x-charts/ChartsWrapper';
|
|
|
6
6
|
import { type FunnelChartPluginSignatures } from "./FunnelChart.plugins.js";
|
|
7
7
|
import { type FunnelPlotProps } from "./FunnelPlot.js";
|
|
8
8
|
import type { FunnelChartProps } from "./FunnelChart.js";
|
|
9
|
-
import { type
|
|
9
|
+
import { type ChartsContainerProProps } from "../ChartsContainerPro/index.js";
|
|
10
10
|
/**
|
|
11
11
|
* A helper function that extracts FunnelChartProps from the input props
|
|
12
12
|
* and returns an object with props for the children components of FunnelChart.
|
|
@@ -15,7 +15,7 @@ import { type ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
|
15
15
|
* @returns An object with props for the children components of FunnelChart
|
|
16
16
|
*/
|
|
17
17
|
export declare const useFunnelChartProps: (props: FunnelChartProps) => {
|
|
18
|
-
|
|
18
|
+
chartsContainerProps: ChartsContainerProProps<"funnel", FunnelChartPluginSignatures>;
|
|
19
19
|
funnelPlotProps: FunnelPlotProps;
|
|
20
20
|
overlayProps: ChartsOverlayProps;
|
|
21
21
|
chartsAxisProps: ChartsAxisProps;
|
|
@@ -104,7 +104,7 @@ const useFunnelChartProps = props => {
|
|
|
104
104
|
};
|
|
105
105
|
const xAxis = isHorizontal ? getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'x') : valueAxisConfig;
|
|
106
106
|
const yAxis = isHorizontal ? valueAxisConfig : getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'y');
|
|
107
|
-
const
|
|
107
|
+
const chartsContainerProps = (0, _extends2.default)({}, other, {
|
|
108
108
|
series: series.map(s => (0, _extends2.default)({
|
|
109
109
|
type: 'funnel',
|
|
110
110
|
layout: isHorizontal ? 'horizontal' : 'vertical'
|
|
@@ -148,7 +148,7 @@ const useFunnelChartProps = props => {
|
|
|
148
148
|
};
|
|
149
149
|
const axisHighlightProps = (0, _extends2.default)({}, axisHighlight);
|
|
150
150
|
return {
|
|
151
|
-
|
|
151
|
+
chartsContainerProps,
|
|
152
152
|
funnelPlotProps,
|
|
153
153
|
overlayProps,
|
|
154
154
|
chartsAxisProps,
|
|
@@ -98,7 +98,7 @@ export const useFunnelChartProps = props => {
|
|
|
98
98
|
};
|
|
99
99
|
const xAxis = isHorizontal ? getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'x') : valueAxisConfig;
|
|
100
100
|
const yAxis = isHorizontal ? valueAxisConfig : getCategoryAxisConfig(categoryAxis, series, isHorizontal, 'y');
|
|
101
|
-
const
|
|
101
|
+
const chartsContainerProps = _extends({}, other, {
|
|
102
102
|
series: series.map(s => _extends({
|
|
103
103
|
type: 'funnel',
|
|
104
104
|
layout: isHorizontal ? 'horizontal' : 'vertical'
|
|
@@ -142,7 +142,7 @@ export const useFunnelChartProps = props => {
|
|
|
142
142
|
};
|
|
143
143
|
const axisHighlightProps = _extends({}, axisHighlight);
|
|
144
144
|
return {
|
|
145
|
-
|
|
145
|
+
chartsContainerProps,
|
|
146
146
|
funnelPlotProps,
|
|
147
147
|
overlayProps,
|
|
148
148
|
chartsAxisProps,
|
package/Heatmap/Heatmap.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { type ChartsAxisSlots, type ChartsAxisSlotProps, type XAxis, type YAxis
|
|
|
6
6
|
import { type ChartsOverlayProps, type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
|
|
7
7
|
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
|
|
8
8
|
import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.mjs";
|
|
9
|
-
import { type
|
|
9
|
+
import { type ChartsContainerProProps } from "../ChartsContainerPro/index.mjs";
|
|
10
10
|
import { type HeatmapSeriesType } from "../models/seriesType/heatmap.mjs";
|
|
11
11
|
import { type HeatmapTooltipProps } from "./HeatmapTooltip/index.mjs";
|
|
12
12
|
import { type HeatmapItemSlotProps, type HeatmapItemSlots } from "./HeatmapItem.mjs";
|
|
@@ -28,16 +28,7 @@ export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlot
|
|
|
28
28
|
tooltip?: Partial<HeatmapTooltipProps>;
|
|
29
29
|
}
|
|
30
30
|
export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
|
|
31
|
-
export interface HeatmapProps extends Omit<
|
|
32
|
-
/**
|
|
33
|
-
* The function called for onClick events.
|
|
34
|
-
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
35
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
36
|
-
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
37
|
-
*
|
|
38
|
-
* @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
|
|
39
|
-
*/
|
|
40
|
-
onAxisClick?: ChartContainerProProps<'heatmap', HeatmapPluginSignatures>['onAxisClick'];
|
|
31
|
+
export interface HeatmapProps extends Omit<ChartsContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
|
|
41
32
|
/**
|
|
42
33
|
* The configuration of the x-axes.
|
|
43
34
|
* If not provided, a default axis config is used.
|
package/Heatmap/Heatmap.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type ChartsAxisSlots, type ChartsAxisSlotProps, type XAxis, type YAxis
|
|
|
6
6
|
import { type ChartsOverlayProps, type ChartsOverlaySlotProps, type ChartsOverlaySlots } from '@mui/x-charts/ChartsOverlay';
|
|
7
7
|
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from '@mui/x-charts/ChartsLegend';
|
|
8
8
|
import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.js";
|
|
9
|
-
import { type
|
|
9
|
+
import { type ChartsContainerProProps } from "../ChartsContainerPro/index.js";
|
|
10
10
|
import { type HeatmapSeriesType } from "../models/seriesType/heatmap.js";
|
|
11
11
|
import { type HeatmapTooltipProps } from "./HeatmapTooltip/index.js";
|
|
12
12
|
import { type HeatmapItemSlotProps, type HeatmapItemSlots } from "./HeatmapItem.js";
|
|
@@ -28,16 +28,7 @@ export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlot
|
|
|
28
28
|
tooltip?: Partial<HeatmapTooltipProps>;
|
|
29
29
|
}
|
|
30
30
|
export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
|
|
31
|
-
export interface HeatmapProps extends Omit<
|
|
32
|
-
/**
|
|
33
|
-
* The function called for onClick events.
|
|
34
|
-
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
35
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
36
|
-
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
37
|
-
*
|
|
38
|
-
* @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
|
|
39
|
-
*/
|
|
40
|
-
onAxisClick?: ChartContainerProProps<'heatmap', HeatmapPluginSignatures>['onAxisClick'];
|
|
31
|
+
export interface HeatmapProps extends Omit<ChartsContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
|
|
41
32
|
/**
|
|
42
33
|
* The configuration of the x-axes.
|
|
43
34
|
* If not provided, a default axis config is used.
|
package/Heatmap/Heatmap.js
CHANGED
|
@@ -20,7 +20,7 @@ var _ChartsBrushOverlay = require("@mui/x-charts/ChartsBrushOverlay");
|
|
|
20
20
|
var _ChartsLayerContainer = require("@mui/x-charts/ChartsLayerContainer");
|
|
21
21
|
var _HeatmapPlot = require("./HeatmapPlot");
|
|
22
22
|
var _HeatmapTooltip = require("./HeatmapTooltip");
|
|
23
|
-
var
|
|
23
|
+
var _ChartsDataProviderPro = require("../ChartsDataProviderPro");
|
|
24
24
|
var _ChartsToolbarPro = require("../ChartsToolbarPro");
|
|
25
25
|
var _FocusedHeatmapCell = require("./FocusedHeatmapCell");
|
|
26
26
|
var _useHeatmapProps = require("./useHeatmapProps");
|
|
@@ -40,7 +40,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
|
|
|
40
40
|
showToolbar = false
|
|
41
41
|
} = props;
|
|
42
42
|
const {
|
|
43
|
-
|
|
43
|
+
chartsDataProviderProProps,
|
|
44
44
|
chartsWrapperProps,
|
|
45
45
|
chartsAxisProps,
|
|
46
46
|
clipPathProps,
|
|
@@ -52,7 +52,7 @@ const Heatmap = exports.Heatmap = /*#__PURE__*/React.forwardRef(function Heatmap
|
|
|
52
52
|
} = (0, _useHeatmapProps.useHeatmapProps)(props);
|
|
53
53
|
const Tooltip = slots?.tooltip ?? _HeatmapTooltip.HeatmapTooltip;
|
|
54
54
|
const Toolbar = slots?.toolbar ?? _ChartsToolbarPro.ChartsToolbarPro;
|
|
55
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProviderPro.ChartsDataProviderPro, (0, _extends2.default)({}, chartsDataProviderProProps, {
|
|
56
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
57
57
|
ref: ref,
|
|
58
58
|
children: [showToolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLayerContainer.ChartsLayerContainer, {
|
|
@@ -102,6 +102,10 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
102
102
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
103
103
|
*/
|
|
104
104
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
105
|
+
/**
|
|
106
|
+
* The description of the chart.
|
|
107
|
+
* Used to provide an accessible description for the chart.
|
|
108
|
+
*/
|
|
105
109
|
desc: _propTypes.default.string,
|
|
106
110
|
/**
|
|
107
111
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -109,7 +113,14 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
109
113
|
* @default false
|
|
110
114
|
*/
|
|
111
115
|
disableAxisListener: _propTypes.default.bool,
|
|
112
|
-
|
|
116
|
+
/**
|
|
117
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
118
|
+
*/
|
|
119
|
+
disableKeyboardNavigation: _propTypes.default.bool,
|
|
120
|
+
/**
|
|
121
|
+
* Options to enable features planned for the next major.
|
|
122
|
+
*/
|
|
123
|
+
experimentalFeatures: _propTypes.default.object,
|
|
113
124
|
/**
|
|
114
125
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
115
126
|
*/
|
|
@@ -167,15 +178,6 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
167
178
|
right: _propTypes.default.number,
|
|
168
179
|
top: _propTypes.default.number
|
|
169
180
|
})]),
|
|
170
|
-
/**
|
|
171
|
-
* The function called for onClick events.
|
|
172
|
-
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
173
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
174
|
-
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
175
|
-
*
|
|
176
|
-
* @deprecated Use `onItemClick` instead to get access to both x- and y-axis values.
|
|
177
|
-
*/
|
|
178
|
-
onAxisClick: _propTypes.default.func,
|
|
179
181
|
/**
|
|
180
182
|
* The callback fired when the highlighted item changes.
|
|
181
183
|
*
|
|
@@ -185,7 +187,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
185
187
|
/**
|
|
186
188
|
* The callback fired when an item is clicked.
|
|
187
189
|
*
|
|
188
|
-
* @param {React.MouseEvent<
|
|
190
|
+
* @param {React.MouseEvent<HTMLDivElement, MouseEvent>} event The click event.
|
|
189
191
|
* @param {SeriesItemIdentifierWithType<SeriesType>} item The clicked item.
|
|
190
192
|
*/
|
|
191
193
|
onItemClick: _propTypes.default.func,
|
|
@@ -200,7 +202,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
200
202
|
/**
|
|
201
203
|
* The callback fired when the tooltip item changes.
|
|
202
204
|
*
|
|
203
|
-
* @param {SeriesItemIdentifier<
|
|
205
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
204
206
|
*/
|
|
205
207
|
onTooltipItemChange: _propTypes.default.func,
|
|
206
208
|
/**
|
|
@@ -231,6 +233,10 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
231
233
|
slots: _propTypes.default.object,
|
|
232
234
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
233
235
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
236
|
+
/**
|
|
237
|
+
* The title of the chart.
|
|
238
|
+
* Used to provide an accessible label for the chart.
|
|
239
|
+
*/
|
|
234
240
|
title: _propTypes.default.string,
|
|
235
241
|
/**
|
|
236
242
|
* The configuration of the tooltip.
|
|
@@ -250,13 +256,11 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
250
256
|
* Used when the tooltip is controlled.
|
|
251
257
|
*/
|
|
252
258
|
tooltipItem: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
253
|
-
dataIndex: _propTypes.default.number,
|
|
254
259
|
seriesId: _propTypes.default.string.isRequired,
|
|
255
260
|
type: _propTypes.default.oneOf(['heatmap']).isRequired,
|
|
256
261
|
xIndex: _propTypes.default.number.isRequired,
|
|
257
262
|
yIndex: _propTypes.default.number.isRequired
|
|
258
263
|
}), _propTypes.default.shape({
|
|
259
|
-
dataIndex: _propTypes.default.number,
|
|
260
264
|
seriesId: _propTypes.default.string.isRequired,
|
|
261
265
|
xIndex: _propTypes.default.number.isRequired,
|
|
262
266
|
yIndex: _propTypes.default.number.isRequired
|
|
@@ -275,6 +279,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
275
279
|
barGapRatio: _propTypes.default.number,
|
|
276
280
|
categoryGapRatio: _propTypes.default.number,
|
|
277
281
|
classes: _propTypes.default.object,
|
|
282
|
+
className: _propTypes.default.string,
|
|
278
283
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
279
284
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
280
285
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -356,6 +361,7 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
356
361
|
barGapRatio: _propTypes.default.number,
|
|
357
362
|
categoryGapRatio: _propTypes.default.number,
|
|
358
363
|
classes: _propTypes.default.object,
|
|
364
|
+
className: _propTypes.default.string,
|
|
359
365
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
360
366
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
361
367
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -494,8 +500,8 @@ process.env.NODE_ENV !== "production" ? Heatmap.propTypes = {
|
|
|
494
500
|
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
495
501
|
type: _propTypes.default.oneOf(['doubleTapReset']).isRequired
|
|
496
502
|
}), _propTypes.default.shape({
|
|
497
|
-
pointerMode: _propTypes.default.
|
|
498
|
-
requiredKeys: _propTypes.default.
|
|
503
|
+
pointerMode: _propTypes.default.oneOf(['mouse', 'touch']),
|
|
504
|
+
requiredKeys: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
499
505
|
type: _propTypes.default.oneOf(['brush']).isRequired
|
|
500
506
|
})]).isRequired)
|
|
501
507
|
})
|