@mui/x-charts-pro 8.0.0-beta.2 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChartPro/BarChartPro.js +788 -9
- package/CHANGELOG.md +423 -96
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/ChartDataProviderPro/ChartDataProviderPro.js +27 -22
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
- package/FunnelChart/FunnelChart.js +73 -4
- package/FunnelChart/categoryAxis.types.d.ts +3 -2
- package/FunnelChart/funnelSectionClasses.d.ts +5 -0
- package/FunnelChart/funnelSectionClasses.js +1 -1
- package/FunnelChart/index.d.ts +1 -0
- package/FunnelChart/index.js +12 -0
- package/FunnelChart/useFunnelChartProps.js +3 -3
- package/Heatmap/Heatmap.d.ts +1 -1
- package/Heatmap/Heatmap.js +4 -3
- package/Heatmap/{HeatmapTooltip.js → HeatmapTooltip/HeatmapTooltip.js} +30 -34
- package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +4 -0
- package/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.js +26 -0
- package/Heatmap/HeatmapTooltip/index.d.ts +1 -0
- package/Heatmap/HeatmapTooltip/index.js +16 -0
- package/Heatmap/heatmapClasses.d.ts +5 -0
- package/Heatmap/heatmapClasses.js +1 -1
- package/Heatmap/index.d.ts +1 -1
- package/LineChartPro/LineChartPro.js +788 -9
- package/ScatterChartPro/ScatterChartPro.js +788 -9
- package/esm/BarChartPro/BarChartPro.js +788 -9
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +28 -23
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -2
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.js +0 -2
- package/esm/FunnelChart/FunnelChart.js +73 -4
- package/esm/FunnelChart/categoryAxis.types.d.ts +3 -2
- package/esm/FunnelChart/funnelSectionClasses.d.ts +5 -0
- package/esm/FunnelChart/funnelSectionClasses.js +1 -1
- package/esm/FunnelChart/index.d.ts +1 -0
- package/esm/FunnelChart/index.js +1 -0
- package/esm/FunnelChart/useFunnelChartProps.js +3 -3
- package/esm/Heatmap/Heatmap.d.ts +1 -1
- package/esm/Heatmap/Heatmap.js +4 -3
- package/{modern/Heatmap → esm/Heatmap/HeatmapTooltip}/HeatmapTooltip.js +30 -34
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.d.ts +4 -0
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipAxesValue.js +22 -0
- package/esm/Heatmap/HeatmapTooltip/index.d.ts +1 -0
- package/esm/Heatmap/HeatmapTooltip/index.js +1 -0
- package/esm/Heatmap/heatmapClasses.d.ts +5 -0
- package/esm/Heatmap/heatmapClasses.js +1 -1
- package/esm/Heatmap/index.d.ts +1 -1
- package/esm/Heatmap/index.js +1 -1
- package/esm/LineChartPro/LineChartPro.js +788 -9
- package/esm/ScatterChartPro/ScatterChartPro.js +788 -9
- package/esm/index.js +1 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +28 -35
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +7 -7
- package/index.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.js +28 -34
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +7 -7
- package/package.json +9 -19
- package/esm/Heatmap/HeatmapTooltip.js +0 -288
- package/esm/internals/utils/releaseInfo.d.ts +0 -1
- package/esm/internals/utils/releaseInfo.js +0 -13
- package/internals/utils/releaseInfo.d.ts +0 -1
- package/internals/utils/releaseInfo.js +0 -21
- package/modern/BarChartPro/BarChartPro.d.ts +0 -18
- package/modern/BarChartPro/BarChartPro.js +0 -404
- package/modern/BarChartPro/BarChartPro.plugins.d.ts +0 -4
- package/modern/BarChartPro/BarChartPro.plugins.js +0 -3
- package/modern/BarChartPro/index.d.ts +0 -1
- package/modern/BarChartPro/index.js +0 -1
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +0 -35
- package/modern/ChartContainerPro/ChartContainerPro.js +0 -290
- package/modern/ChartContainerPro/index.d.ts +0 -2
- package/modern/ChartContainerPro/index.js +0 -2
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +0 -9
- package/modern/ChartContainerPro/useChartContainerProProps.js +0 -35
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +0 -37
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +0 -106
- package/modern/ChartDataProviderPro/index.d.ts +0 -2
- package/modern/ChartDataProviderPro/index.js +0 -2
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +0 -8
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.js +0 -15
- package/modern/FunnelChart/FunnelChart.d.ts +0 -37
- package/modern/FunnelChart/FunnelChart.js +0 -212
- package/modern/FunnelChart/FunnelPlot.d.ts +0 -16
- package/modern/FunnelChart/FunnelPlot.js +0 -184
- package/modern/FunnelChart/FunnelSection.d.ts +0 -15
- package/modern/FunnelChart/FunnelSection.js +0 -56
- package/modern/FunnelChart/categoryAxis.types.d.ts +0 -24
- package/modern/FunnelChart/categoryAxis.types.js +0 -1
- package/modern/FunnelChart/funnel.types.d.ts +0 -124
- package/modern/FunnelChart/funnel.types.js +0 -1
- package/modern/FunnelChart/funnelPlotSlots.types.d.ts +0 -20
- package/modern/FunnelChart/funnelPlotSlots.types.js +0 -1
- package/modern/FunnelChart/funnelSectionClasses.d.ts +0 -13
- package/modern/FunnelChart/funnelSectionClasses.js +0 -20
- package/modern/FunnelChart/funnelSlots.types.d.ts +0 -19
- package/modern/FunnelChart/funnelSlots.types.js +0 -1
- package/modern/FunnelChart/funnelStepCurve.d.ts +0 -4
- package/modern/FunnelChart/funnelStepCurve.js +0 -67
- package/modern/FunnelChart/index.d.ts +0 -7
- package/modern/FunnelChart/index.js +0 -5
- package/modern/FunnelChart/labelUtils.d.ts +0 -42
- package/modern/FunnelChart/labelUtils.js +0 -166
- package/modern/FunnelChart/seriesConfig/extremums.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/extremums.js +0 -42
- package/modern/FunnelChart/seriesConfig/getColor.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/getColor.js +0 -4
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +0 -11
- package/modern/FunnelChart/seriesConfig/index.d.ts +0 -2
- package/modern/FunnelChart/seriesConfig/index.js +0 -15
- package/modern/FunnelChart/seriesConfig/legend.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/legend.js +0 -25
- package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/seriesProcessor.js +0 -89
- package/modern/FunnelChart/seriesConfig/tooltip.d.ts +0 -3
- package/modern/FunnelChart/seriesConfig/tooltip.js +0 -29
- package/modern/FunnelChart/useFunnelChartProps.d.ts +0 -30
- package/modern/FunnelChart/useFunnelChartProps.js +0 -161
- package/modern/Heatmap/Heatmap.d.ts +0 -57
- package/modern/Heatmap/Heatmap.js +0 -387
- package/modern/Heatmap/Heatmap.plugins.d.ts +0 -3
- package/modern/Heatmap/Heatmap.plugins.js +0 -2
- package/modern/Heatmap/HeatmapItem.d.ts +0 -49
- package/modern/Heatmap/HeatmapItem.js +0 -106
- package/modern/Heatmap/HeatmapPlot.d.ts +0 -8
- package/modern/Heatmap/HeatmapPlot.js +0 -59
- package/modern/Heatmap/HeatmapTooltip.d.ts +0 -16
- package/modern/Heatmap/heatmapClasses.d.ts +0 -11
- package/modern/Heatmap/heatmapClasses.js +0 -14
- package/modern/Heatmap/index.d.ts +0 -4
- package/modern/Heatmap/index.js +0 -4
- package/modern/Heatmap/seriesConfig/extremums.d.ts +0 -2
- package/modern/Heatmap/seriesConfig/extremums.js +0 -8
- package/modern/Heatmap/seriesConfig/getColor.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/getColor.js +0 -15
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +0 -8
- package/modern/Heatmap/seriesConfig/index.d.ts +0 -2
- package/modern/Heatmap/seriesConfig/index.js +0 -14
- package/modern/Heatmap/seriesConfig/seriesProcessor.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/seriesProcessor.js +0 -21
- package/modern/Heatmap/seriesConfig/tooltip.d.ts +0 -3
- package/modern/Heatmap/seriesConfig/tooltip.js +0 -25
- package/modern/LineChartPro/LineChartPro.d.ts +0 -17
- package/modern/LineChartPro/LineChartPro.js +0 -401
- package/modern/LineChartPro/LineChartPro.plugins.d.ts +0 -4
- package/modern/LineChartPro/LineChartPro.plugins.js +0 -3
- package/modern/LineChartPro/index.d.ts +0 -1
- package/modern/LineChartPro/index.js +0 -1
- package/modern/ScatterChartPro/ScatterChartPro.d.ts +0 -17
- package/modern/ScatterChartPro/ScatterChartPro.js +0 -395
- package/modern/ScatterChartPro/ScatterChartPro.plugins.d.ts +0 -4
- package/modern/ScatterChartPro/ScatterChartPro.plugins.js +0 -3
- package/modern/ScatterChartPro/index.d.ts +0 -1
- package/modern/ScatterChartPro/index.js +0 -1
- package/modern/hooks/index.d.ts +0 -2
- package/modern/hooks/index.js +0 -2
- package/modern/hooks/useFunnelSeries.d.ts +0 -33
- package/modern/hooks/useFunnelSeries.js +0 -42
- package/modern/hooks/useHeatmapSeries.d.ts +0 -33
- package/modern/hooks/useHeatmapSeries.js +0 -42
- package/modern/hooks/zoom/index.d.ts +0 -1
- package/modern/hooks/zoom/index.js +0 -1
- package/modern/hooks/zoom/useIsZoomInteracting.d.ts +0 -6
- package/modern/hooks/zoom/useIsZoomInteracting.js +0 -14
- package/modern/index.d.ts +0 -34
- package/modern/index.js +0 -45
- package/modern/internals/plugins/allPlugins.d.ts +0 -8
- package/modern/internals/plugins/allPlugins.js +0 -6
- package/modern/internals/plugins/useChartProZoom/index.d.ts +0 -3
- package/modern/internals/plugins/useChartProZoom/index.js +0 -3
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.d.ts +0 -3
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +0 -350
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +0 -203
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +0 -4
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +0 -53
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.js +0 -1
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.d.ts +0 -45
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.utils.js +0 -126
- package/modern/internals/utils/releaseInfo.d.ts +0 -1
- package/modern/internals/utils/releaseInfo.js +0 -13
- package/modern/models/index.d.ts +0 -2
- package/modern/models/index.js +0 -2
- package/modern/models/seriesType/heatmap.d.ts +0 -28
- package/modern/models/seriesType/heatmap.js +0 -1
- package/modern/models/seriesType/index.d.ts +0 -1
- package/modern/models/seriesType/index.js +0 -1
- package/modern/package.json +0 -1
- package/modern/themeAugmentation/components.d.ts +0 -23
- package/modern/themeAugmentation/index.d.ts +0 -4
- package/modern/themeAugmentation/index.js +0 -0
- package/modern/themeAugmentation/overrides.d.ts +0 -11
- package/modern/themeAugmentation/props.d.ts +0 -20
- package/modern/typeOverloads/index.d.ts +0 -1
- package/modern/typeOverloads/index.js +0 -1
- package/modern/typeOverloads/modules.d.ts +0 -33
- package/modern/typeOverloads/modules.js +0 -1
- package/tsconfig.build.tsbuildinfo +0 -1
- /package/Heatmap/{HeatmapTooltip.d.ts → HeatmapTooltip/HeatmapTooltip.d.ts} +0 -0
- /package/esm/Heatmap/{HeatmapTooltip.d.ts → HeatmapTooltip/HeatmapTooltip.d.ts} +0 -0
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import clsx from 'clsx';
|
|
7
|
-
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
8
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
9
|
-
import { ChartsTooltipPaper, ChartsTooltipTable, ChartsTooltipRow, ChartsTooltipCell, useItemTooltip, getChartsTooltipUtilityClass, ChartsTooltipContainer } from '@mui/x-charts/ChartsTooltip';
|
|
10
|
-
import { useXAxis, useYAxis } from '@mui/x-charts/hooks';
|
|
11
|
-
import { getLabel, ChartsLabelMark } from '@mui/x-charts/internals';
|
|
12
|
-
import { useHeatmapSeriesContext } from "../hooks/useHeatmapSeries.js";
|
|
13
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
const useUtilityClasses = ownerState => {
|
|
15
|
-
const {
|
|
16
|
-
classes
|
|
17
|
-
} = ownerState;
|
|
18
|
-
const slots = {
|
|
19
|
-
root: ['root'],
|
|
20
|
-
paper: ['paper'],
|
|
21
|
-
table: ['table'],
|
|
22
|
-
row: ['row'],
|
|
23
|
-
cell: ['cell'],
|
|
24
|
-
mark: ['mark'],
|
|
25
|
-
markCell: ['markCell'],
|
|
26
|
-
labelCell: ['labelCell'],
|
|
27
|
-
valueCell: ['valueCell']
|
|
28
|
-
};
|
|
29
|
-
return composeClasses(slots, getChartsTooltipUtilityClass, classes);
|
|
30
|
-
};
|
|
31
|
-
function DefaultHeatmapTooltipContent(props) {
|
|
32
|
-
const {
|
|
33
|
-
classes
|
|
34
|
-
} = props;
|
|
35
|
-
const xAxis = useXAxis();
|
|
36
|
-
const yAxis = useYAxis();
|
|
37
|
-
const heatmapSeries = useHeatmapSeriesContext();
|
|
38
|
-
const tooltipData = useItemTooltip();
|
|
39
|
-
if (!tooltipData || !heatmapSeries || heatmapSeries.seriesOrder.length === 0) {
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
const {
|
|
43
|
-
series,
|
|
44
|
-
seriesOrder
|
|
45
|
-
} = heatmapSeries;
|
|
46
|
-
const seriesId = seriesOrder[0];
|
|
47
|
-
const {
|
|
48
|
-
color,
|
|
49
|
-
value,
|
|
50
|
-
identifier,
|
|
51
|
-
markType
|
|
52
|
-
} = tooltipData;
|
|
53
|
-
const [xIndex, yIndex] = value;
|
|
54
|
-
const formattedX = xAxis.valueFormatter?.(xAxis.data[xIndex], {
|
|
55
|
-
location: 'tooltip',
|
|
56
|
-
scale: xAxis.scale
|
|
57
|
-
}) ?? xAxis.data[xIndex].toLocaleString();
|
|
58
|
-
const formattedY = yAxis.valueFormatter?.(yAxis.data[yIndex], {
|
|
59
|
-
location: 'tooltip',
|
|
60
|
-
scale: yAxis.scale
|
|
61
|
-
}) ?? yAxis.data[yIndex].toLocaleString();
|
|
62
|
-
const formattedValue = series[seriesId].valueFormatter(value, {
|
|
63
|
-
dataIndex: identifier.dataIndex
|
|
64
|
-
});
|
|
65
|
-
const seriesLabel = getLabel(series[seriesId].label, 'tooltip');
|
|
66
|
-
return /*#__PURE__*/_jsx(ChartsTooltipPaper, {
|
|
67
|
-
className: classes?.paper,
|
|
68
|
-
children: /*#__PURE__*/_jsxs(ChartsTooltipTable, {
|
|
69
|
-
className: classes?.table,
|
|
70
|
-
children: [/*#__PURE__*/_jsx("thead", {
|
|
71
|
-
children: /*#__PURE__*/_jsxs(ChartsTooltipRow, {
|
|
72
|
-
className: classes?.row,
|
|
73
|
-
children: [/*#__PURE__*/_jsx(ChartsTooltipCell, {
|
|
74
|
-
className: classes?.cell,
|
|
75
|
-
children: formattedX
|
|
76
|
-
}), formattedX && formattedY && /*#__PURE__*/_jsx(ChartsTooltipCell, {}), /*#__PURE__*/_jsx(ChartsTooltipCell, {
|
|
77
|
-
className: classes?.cell,
|
|
78
|
-
children: formattedY
|
|
79
|
-
})]
|
|
80
|
-
})
|
|
81
|
-
}), /*#__PURE__*/_jsx("tbody", {
|
|
82
|
-
children: /*#__PURE__*/_jsxs(ChartsTooltipRow, {
|
|
83
|
-
className: classes?.row,
|
|
84
|
-
children: [/*#__PURE__*/_jsx(ChartsTooltipCell, {
|
|
85
|
-
className: clsx(classes?.markCell, classes?.cell),
|
|
86
|
-
children: /*#__PURE__*/_jsx(ChartsLabelMark, {
|
|
87
|
-
type: markType,
|
|
88
|
-
color: color,
|
|
89
|
-
className: classes?.mark
|
|
90
|
-
})
|
|
91
|
-
}), /*#__PURE__*/_jsx(ChartsTooltipCell, {
|
|
92
|
-
className: clsx(classes?.labelCell, classes?.cell),
|
|
93
|
-
children: seriesLabel
|
|
94
|
-
}), /*#__PURE__*/_jsx(ChartsTooltipCell, {
|
|
95
|
-
className: clsx(classes?.valueCell, classes?.cell),
|
|
96
|
-
children: formattedValue
|
|
97
|
-
})]
|
|
98
|
-
})
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltipContent.propTypes = {
|
|
104
|
-
// ----------------------------- Warning --------------------------------
|
|
105
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
106
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
107
|
-
// ----------------------------------------------------------------------
|
|
108
|
-
/**
|
|
109
|
-
* Override or extend the styles applied to the component.
|
|
110
|
-
*/
|
|
111
|
-
classes: PropTypes.object
|
|
112
|
-
} : void 0;
|
|
113
|
-
function HeatmapTooltip(props) {
|
|
114
|
-
const classes = useUtilityClasses({
|
|
115
|
-
classes: props.classes
|
|
116
|
-
});
|
|
117
|
-
return /*#__PURE__*/_jsx(ChartsTooltipContainer, _extends({
|
|
118
|
-
trigger: "item"
|
|
119
|
-
}, props, {
|
|
120
|
-
classes: classes,
|
|
121
|
-
children: /*#__PURE__*/_jsx(DefaultHeatmapTooltipContent, {
|
|
122
|
-
classes: classes
|
|
123
|
-
})
|
|
124
|
-
}));
|
|
125
|
-
}
|
|
126
|
-
process.env.NODE_ENV !== "production" ? HeatmapTooltip.propTypes = {
|
|
127
|
-
// ----------------------------- Warning --------------------------------
|
|
128
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
129
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
130
|
-
// ----------------------------------------------------------------------
|
|
131
|
-
/**
|
|
132
|
-
* An HTML element, [virtualElement](https://popper.js.org/docs/v2/virtual-elements/),
|
|
133
|
-
* or a function that returns either.
|
|
134
|
-
* It's used to set the position of the popper.
|
|
135
|
-
* The return value will passed as the reference object of the Popper instance.
|
|
136
|
-
*/
|
|
137
|
-
anchorEl: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([HTMLElementType, PropTypes.object, PropTypes.func]),
|
|
138
|
-
/**
|
|
139
|
-
* Override or extend the styles applied to the component.
|
|
140
|
-
*/
|
|
141
|
-
classes: PropTypes.object,
|
|
142
|
-
/**
|
|
143
|
-
* The component used for the root node.
|
|
144
|
-
* Either a string to use a HTML element or a component.
|
|
145
|
-
*/
|
|
146
|
-
component: PropTypes.elementType,
|
|
147
|
-
/**
|
|
148
|
-
* The components used for each slot inside the Popper.
|
|
149
|
-
* Either a string to use a HTML element or a component.
|
|
150
|
-
*
|
|
151
|
-
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
152
|
-
* @default {}
|
|
153
|
-
*/
|
|
154
|
-
components: PropTypes.shape({
|
|
155
|
-
Root: PropTypes.elementType
|
|
156
|
-
}),
|
|
157
|
-
/**
|
|
158
|
-
* The props used for each slot inside the Popper.
|
|
159
|
-
*
|
|
160
|
-
* @deprecated use the `slotProps` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
|
161
|
-
* @default {}
|
|
162
|
-
*/
|
|
163
|
-
componentsProps: PropTypes.shape({
|
|
164
|
-
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
165
|
-
}),
|
|
166
|
-
/**
|
|
167
|
-
* An HTML element or function that returns one.
|
|
168
|
-
* The `container` will have the portal children appended to it.
|
|
169
|
-
*
|
|
170
|
-
* You can also provide a callback, which is called in a React layout effect.
|
|
171
|
-
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
|
172
|
-
*
|
|
173
|
-
* By default, it uses the body of the top-level document object,
|
|
174
|
-
* so it's simply `document.body` most of the time.
|
|
175
|
-
*/
|
|
176
|
-
container: PropTypes.oneOfType([(props, propName) => {
|
|
177
|
-
if (props[propName] == null) {
|
|
178
|
-
return new Error(`Prop '${propName}' is required but wasn't specified`);
|
|
179
|
-
}
|
|
180
|
-
if (typeof props[propName] !== 'object' || props[propName].nodeType !== 1) {
|
|
181
|
-
return new Error(`Expected prop '${propName}' to be of type Element`);
|
|
182
|
-
}
|
|
183
|
-
return null;
|
|
184
|
-
}, PropTypes.func]),
|
|
185
|
-
/**
|
|
186
|
-
* The `children` will be under the DOM hierarchy of the parent component.
|
|
187
|
-
* @default false
|
|
188
|
-
*/
|
|
189
|
-
disablePortal: PropTypes.bool,
|
|
190
|
-
/**
|
|
191
|
-
* Always keep the children in the DOM.
|
|
192
|
-
* This prop can be useful in SEO situation or
|
|
193
|
-
* when you want to maximize the responsiveness of the Popper.
|
|
194
|
-
* @default false
|
|
195
|
-
*/
|
|
196
|
-
keepMounted: PropTypes.bool,
|
|
197
|
-
/**
|
|
198
|
-
* Popper.js is based on a "plugin-like" architecture,
|
|
199
|
-
* most of its features are fully encapsulated "modifiers".
|
|
200
|
-
*
|
|
201
|
-
* A modifier is a function that is called each time Popper.js needs to
|
|
202
|
-
* compute the position of the popper.
|
|
203
|
-
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
204
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://popper.js.org/docs/v2/modifiers/).
|
|
205
|
-
*/
|
|
206
|
-
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
207
|
-
data: PropTypes.object,
|
|
208
|
-
effect: PropTypes.func,
|
|
209
|
-
enabled: PropTypes.bool,
|
|
210
|
-
fn: PropTypes.func,
|
|
211
|
-
name: PropTypes.any,
|
|
212
|
-
options: PropTypes.object,
|
|
213
|
-
phase: PropTypes.oneOf(['afterMain', 'afterRead', 'afterWrite', 'beforeMain', 'beforeRead', 'beforeWrite', 'main', 'read', 'write']),
|
|
214
|
-
requires: PropTypes.arrayOf(PropTypes.string),
|
|
215
|
-
requiresIfExists: PropTypes.arrayOf(PropTypes.string)
|
|
216
|
-
})),
|
|
217
|
-
/**
|
|
218
|
-
* If `true`, the component is shown.
|
|
219
|
-
*/
|
|
220
|
-
open: PropTypes.bool,
|
|
221
|
-
/**
|
|
222
|
-
* Popper placement.
|
|
223
|
-
* @default 'bottom'
|
|
224
|
-
*/
|
|
225
|
-
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
226
|
-
/**
|
|
227
|
-
* Options provided to the [`Popper.js`](https://popper.js.org/docs/v2/constructors/#options) instance.
|
|
228
|
-
* @default {}
|
|
229
|
-
*/
|
|
230
|
-
popperOptions: PropTypes.shape({
|
|
231
|
-
modifiers: PropTypes.array,
|
|
232
|
-
onFirstUpdate: PropTypes.func,
|
|
233
|
-
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
234
|
-
strategy: PropTypes.oneOf(['absolute', 'fixed'])
|
|
235
|
-
}),
|
|
236
|
-
/**
|
|
237
|
-
* A ref that points to the used popper instance.
|
|
238
|
-
*/
|
|
239
|
-
popperRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
|
240
|
-
current: PropTypes.shape({
|
|
241
|
-
destroy: PropTypes.func.isRequired,
|
|
242
|
-
forceUpdate: PropTypes.func.isRequired,
|
|
243
|
-
setOptions: PropTypes.func.isRequired,
|
|
244
|
-
state: PropTypes.shape({
|
|
245
|
-
attributes: PropTypes.object.isRequired,
|
|
246
|
-
elements: PropTypes.object.isRequired,
|
|
247
|
-
modifiersData: PropTypes.object.isRequired,
|
|
248
|
-
options: PropTypes.object.isRequired,
|
|
249
|
-
orderedModifiers: PropTypes.arrayOf(PropTypes.object).isRequired,
|
|
250
|
-
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']).isRequired,
|
|
251
|
-
rects: PropTypes.object.isRequired,
|
|
252
|
-
reset: PropTypes.bool.isRequired,
|
|
253
|
-
scrollParents: PropTypes.object.isRequired,
|
|
254
|
-
strategy: PropTypes.oneOf(['absolute', 'fixed']).isRequired,
|
|
255
|
-
styles: PropTypes.object.isRequired
|
|
256
|
-
}).isRequired,
|
|
257
|
-
update: PropTypes.func.isRequired
|
|
258
|
-
})
|
|
259
|
-
})]),
|
|
260
|
-
/**
|
|
261
|
-
* The props used for each slot inside the Popper.
|
|
262
|
-
* @default {}
|
|
263
|
-
*/
|
|
264
|
-
slotProps: PropTypes.object,
|
|
265
|
-
/**
|
|
266
|
-
* The components used for each slot inside the Popper.
|
|
267
|
-
* Either a string to use a HTML element or a component.
|
|
268
|
-
* @default {}
|
|
269
|
-
*/
|
|
270
|
-
slots: PropTypes.object,
|
|
271
|
-
/**
|
|
272
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
273
|
-
*/
|
|
274
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
275
|
-
/**
|
|
276
|
-
* Help supporting a react-transition-group/Transition component.
|
|
277
|
-
* @default false
|
|
278
|
-
*/
|
|
279
|
-
transition: PropTypes.bool,
|
|
280
|
-
/**
|
|
281
|
-
* Select the kind of tooltip to display
|
|
282
|
-
* - 'item': Shows data about the item below the mouse.
|
|
283
|
-
* - 'none': Does not display tooltip
|
|
284
|
-
* @default 'item'
|
|
285
|
-
*/
|
|
286
|
-
trigger: PropTypes.oneOf(['item', 'none'])
|
|
287
|
-
} : void 0;
|
|
288
|
-
export { HeatmapTooltip };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getReleaseInfo: () => any;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import ponyfillGlobal from '@mui/utils/ponyfillGlobal';
|
|
2
|
-
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
4
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
5
|
-
// A simple hack to set the value in the test environment (has no build step).
|
|
6
|
-
// eslint-disable-next-line no-useless-concat
|
|
7
|
-
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
8
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
9
|
-
return ponyfillGlobal.__MUI_RELEASE_INFO__;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
return releaseInfo;
|
|
13
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getReleaseInfo: () => any;
|
|
@@ -1,21 +0,0 @@
|
|
|
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 = "MTc0MzExMjgwMDAwMA==";
|
|
11
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
12
|
-
// A simple hack to set the value in the test environment (has no build step).
|
|
13
|
-
// eslint-disable-next-line no-useless-concat
|
|
14
|
-
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
15
|
-
// eslint-disable-next-line no-underscore-dangle
|
|
16
|
-
return _ponyfillGlobal.default.__MUI_RELEASE_INFO__;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return releaseInfo;
|
|
20
|
-
};
|
|
21
|
-
exports.getReleaseInfo = getReleaseInfo;
|
|
@@ -1,18 +0,0 @@
|
|
|
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 };
|