@mui/x-charts-pro 7.0.0-alpha.3 → 7.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.
Files changed (92) hide show
  1. package/BarChartPro/BarChartPro.js +41 -53
  2. package/BarChartPro/index.js +1 -1
  3. package/CHANGELOG.md +98 -1
  4. package/ChartContainerPro/ChartContainerPro.js +4 -4
  5. package/ChartContainerPro/index.js +1 -1
  6. package/Heatmap/DefaultHeatmapTooltip.js +1 -1
  7. package/Heatmap/Heatmap.js +4 -4
  8. package/Heatmap/HeatmapItem.js +1 -1
  9. package/Heatmap/HeatmapPlot.js +2 -2
  10. package/Heatmap/index.js +4 -4
  11. package/Heatmap/plugin.js +3 -3
  12. package/LineChartPro/LineChartPro.js +57 -111
  13. package/LineChartPro/index.js +1 -1
  14. package/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
  15. package/ResponsiveChartContainerPro/index.js +1 -1
  16. package/ScatterChartPro/ScatterChartPro.js +14 -3
  17. package/ScatterChartPro/index.js +1 -1
  18. package/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
  19. package/context/CartesianProviderPro/index.js +1 -1
  20. package/context/ZoomProvider/ZoomProvider.js +3 -3
  21. package/context/ZoomProvider/ZoomSetup.js +2 -2
  22. package/context/ZoomProvider/index.js +3 -3
  23. package/context/ZoomProvider/useSetupPan.js +1 -1
  24. package/context/ZoomProvider/useSetupZoom.js +1 -1
  25. package/context/ZoomProvider/useZoom.js +1 -1
  26. package/context/index.js +2 -2
  27. package/hooks/index.js +1 -1
  28. package/index.js +9 -9
  29. package/internals/utils/releaseInfo.js +1 -1
  30. package/models/index.js +1 -1
  31. package/models/seriesType/index.js +1 -1
  32. package/modern/BarChartPro/BarChartPro.js +41 -53
  33. package/modern/BarChartPro/index.js +1 -1
  34. package/modern/ChartContainerPro/ChartContainerPro.js +4 -4
  35. package/modern/ChartContainerPro/index.js +1 -1
  36. package/modern/Heatmap/DefaultHeatmapTooltip.js +1 -1
  37. package/modern/Heatmap/Heatmap.js +4 -4
  38. package/modern/Heatmap/HeatmapItem.js +1 -1
  39. package/modern/Heatmap/HeatmapPlot.js +2 -2
  40. package/modern/Heatmap/index.js +4 -4
  41. package/modern/Heatmap/plugin.js +3 -3
  42. package/modern/LineChartPro/LineChartPro.js +57 -111
  43. package/modern/LineChartPro/index.js +1 -1
  44. package/modern/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
  45. package/modern/ResponsiveChartContainerPro/index.js +1 -1
  46. package/modern/ScatterChartPro/ScatterChartPro.js +14 -3
  47. package/modern/ScatterChartPro/index.js +1 -1
  48. package/modern/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
  49. package/modern/context/CartesianProviderPro/index.js +1 -1
  50. package/modern/context/ZoomProvider/ZoomProvider.js +3 -3
  51. package/modern/context/ZoomProvider/ZoomSetup.js +2 -2
  52. package/modern/context/ZoomProvider/index.js +3 -3
  53. package/modern/context/ZoomProvider/useSetupPan.js +1 -1
  54. package/modern/context/ZoomProvider/useSetupZoom.js +1 -1
  55. package/modern/context/ZoomProvider/useZoom.js +1 -1
  56. package/modern/context/index.js +2 -2
  57. package/modern/hooks/index.js +1 -1
  58. package/modern/index.js +9 -9
  59. package/modern/internals/utils/releaseInfo.js +1 -1
  60. package/modern/models/index.js +1 -1
  61. package/modern/models/seriesType/index.js +1 -1
  62. package/modern/themeAugmentation/index.js +0 -4
  63. package/modern/typeOverloads/index.js +1 -1
  64. package/node/BarChartPro/BarChartPro.js +40 -53
  65. package/node/ChartContainerPro/ChartContainerPro.js +2 -3
  66. package/node/ChartContainerPro/useChartContainerProProps.js +1 -1
  67. package/node/Heatmap/DefaultHeatmapTooltip.js +3 -4
  68. package/node/Heatmap/Heatmap.js +2 -3
  69. package/node/Heatmap/HeatmapItem.js +2 -3
  70. package/node/Heatmap/HeatmapPlot.js +2 -3
  71. package/node/Heatmap/formatter.js +1 -1
  72. package/node/Heatmap/heatmapClasses.js +1 -1
  73. package/node/Heatmap/plugin.js +1 -1
  74. package/node/LineChartPro/LineChartPro.js +56 -111
  75. package/node/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +2 -3
  76. package/node/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +1 -1
  77. package/node/ScatterChartPro/ScatterChartPro.js +14 -4
  78. package/node/context/CartesianProviderPro/CartesianProviderPro.js +2 -3
  79. package/node/context/ZoomProvider/ZoomContext.js +1 -2
  80. package/node/context/ZoomProvider/ZoomProvider.js +2 -3
  81. package/node/context/ZoomProvider/defaultizeZoom.js +1 -1
  82. package/node/context/ZoomProvider/useSetupPan.js +2 -3
  83. package/node/context/ZoomProvider/useSetupZoom.js +1 -2
  84. package/node/context/ZoomProvider/useZoom.js +1 -2
  85. package/node/hooks/useSeries.js +1 -2
  86. package/node/index.js +1 -1
  87. package/node/internals/utils/releaseInfo.js +1 -1
  88. package/node/themeAugmentation/index.js +1 -49
  89. package/package.json +6 -5
  90. package/themeAugmentation/index.d.ts +4 -4
  91. package/themeAugmentation/index.js +0 -4
  92. package/typeOverloads/index.js +1 -1
@@ -14,8 +14,8 @@ import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
14
14
  import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
15
15
  import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
16
16
  import { useScatterChartProps } from '@mui/x-charts/internals';
17
- import { ResponsiveChartContainerPro } from '../ResponsiveChartContainerPro';
18
- import { ZoomSetup } from '../context/ZoomProvider/ZoomSetup';
17
+ import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
18
+ import { ZoomSetup } from "../context/ZoomProvider/ZoomSetup.js";
19
19
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
20
  /**
21
21
  * Demos:
@@ -56,7 +56,7 @@ const ScatterChartPro = /*#__PURE__*/React.forwardRef(function ScatterChartPro(i
56
56
  zoom: zoom,
57
57
  onZoomChange: onZoomChange,
58
58
  children: /*#__PURE__*/_jsxs(ZAxisContextProvider, _extends({}, zAxisProps, {
59
- children: [!props.disableVoronoi && /*#__PURE__*/_jsx(ChartsVoronoiHandler, _extends({}, voronoiHandlerProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), props.grid && /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
59
+ children: [!props.disableVoronoi && /*#__PURE__*/_jsx(ChartsVoronoiHandler, _extends({}, voronoiHandlerProps)), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsx("g", {
60
60
  "data-drawing-container": true,
61
61
  children: /*#__PURE__*/_jsx(ScatterPlot, _extends({}, scatterPlotProps))
62
62
  }), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
@@ -137,6 +137,17 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
137
137
  classes: PropTypes.object,
138
138
  direction: PropTypes.oneOf(['column', 'row']),
139
139
  hidden: PropTypes.bool,
140
+ itemGap: PropTypes.number,
141
+ itemMarkHeight: PropTypes.number,
142
+ itemMarkWidth: PropTypes.number,
143
+ labelStyle: PropTypes.object,
144
+ markGap: PropTypes.number,
145
+ padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
146
+ bottom: PropTypes.number,
147
+ left: PropTypes.number,
148
+ right: PropTypes.number,
149
+ top: PropTypes.number
150
+ })]),
140
151
  position: PropTypes.shape({
141
152
  horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
142
153
  vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
@@ -1 +1 @@
1
- export * from './ScatterChartPro';
1
+ export * from "./ScatterChartPro.js";
@@ -1,8 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import { useDrawingArea, useSeries, CartesianContext, cartesianProviderUtils, useXExtremumGetter, useYExtremumGetter } from '@mui/x-charts/internals';
4
- import { useZoom } from '../ZoomProvider/useZoom';
5
- import { createAxisFilterMapper, createGetAxisFilters } from './createAxisFilterMapper';
4
+ import { useZoom } from "../ZoomProvider/useZoom.js";
5
+ import { createAxisFilterMapper, createGetAxisFilters } from "./createAxisFilterMapper.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  const {
8
8
  computeValue
@@ -1 +1 @@
1
- export * from './CartesianProviderPro';
1
+ export * from "./CartesianProviderPro.js";
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import useControlled from '@mui/utils/useControlled';
3
- import { ZoomContext } from './ZoomContext';
4
- import { defaultizeZoom } from './defaultizeZoom';
5
- import { initializeZoomData } from './initializeZoomData';
3
+ import { ZoomContext } from "./ZoomContext.js";
4
+ import { defaultizeZoom } from "./defaultizeZoom.js";
5
+ import { initializeZoomData } from "./initializeZoomData.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  export function ZoomProvider({
8
8
  children,
@@ -1,5 +1,5 @@
1
- import { useSetupPan } from './useSetupPan';
2
- import { useSetupZoom } from './useSetupZoom';
1
+ import { useSetupPan } from "./useSetupPan.js";
2
+ import { useSetupZoom } from "./useSetupZoom.js";
3
3
 
4
4
  /**
5
5
  * Sets up the zoom functionality if using composition or a custom chart.
@@ -1,3 +1,3 @@
1
- export * from './ZoomContext';
2
- export * from './ZoomProvider';
3
- export * from './Zoom.types';
1
+ export * from "./ZoomContext.js";
2
+ export * from "./ZoomProvider.js";
3
+ export * from "./Zoom.types.js";
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import * as React from 'react';
3
3
  import { useDrawingArea, useSvgRef } from '@mui/x-charts/hooks';
4
4
  import { getSVGPoint } from '@mui/x-charts/internals';
5
- import { useZoom } from './useZoom';
5
+ import { useZoom } from "./useZoom.js";
6
6
  export const useSetupPan = () => {
7
7
  const {
8
8
  zoomData,
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { useDrawingArea, useSvgRef } from '@mui/x-charts/hooks';
3
3
  import { getSVGPoint } from '@mui/x-charts/internals';
4
- import { useZoom } from './useZoom';
4
+ import { useZoom } from "./useZoom.js";
5
5
  /**
6
6
  * Helper to get the range (in percents of a reference range) corresponding to a given scale.
7
7
  * @param centerRatio {number} The ratio of the point that should not move between the previous and next range.
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ZoomContext } from './ZoomContext';
2
+ import { ZoomContext } from "./ZoomContext.js";
3
3
  /**
4
4
  * Get access to the zoom state.
5
5
  *
package/context/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // # Zoom & Pan
2
2
 
3
- export * from './ZoomProvider/useZoom';
4
- export * from './ZoomProvider/ZoomSetup';
3
+ export * from "./ZoomProvider/useZoom.js";
4
+ export * from "./ZoomProvider/ZoomSetup.js";
5
5
  export {};
package/hooks/index.js CHANGED
@@ -1 +1 @@
1
- export { useHeatmapSeries as unstable_useHeatmapSeries } from './useSeries';
1
+ export { useHeatmapSeries as unstable_useHeatmapSeries } from "./useSeries.js";
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @mui/x-charts-pro v7.0.0-alpha.3
2
+ * @mui/x-charts-pro v7.0.0-beta.0
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- import './typeOverloads/modules';
8
+ import "./typeOverloads/modules.js";
9
9
 
10
10
  // exports from MIT package
11
11
  export * from '@mui/x-charts/constants';
@@ -34,12 +34,12 @@ export * from '@mui/x-charts/Gauge';
34
34
  export * from '@mui/x-charts/ChartsSurface';
35
35
 
36
36
  // Pro components
37
- export * from './Heatmap';
38
- export * from './ResponsiveChartContainerPro';
39
- export * from './ChartContainerPro';
40
- export * from './ScatterChartPro';
41
- export * from './BarChartPro';
42
- export * from './LineChartPro';
37
+ export * from "./Heatmap/index.js";
38
+ export * from "./ResponsiveChartContainerPro/index.js";
39
+ export * from "./ChartContainerPro/index.js";
40
+ export * from "./ScatterChartPro/index.js";
41
+ export * from "./BarChartPro/index.js";
42
+ export * from "./LineChartPro/index.js";
43
43
 
44
44
  // Pro context
45
- export * from './context';
45
+ export * from "./context/index.js";
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTcyNDg4MjQwMDAwMA==";
3
+ const releaseInfo = "MTcyNTQ4MzYwMDAwMA==";
4
4
  if (process.env.NODE_ENV !== 'production') {
5
5
  // A simple hack to set the value in the test environment (has no build step).
6
6
  // eslint-disable-next-line no-useless-concat
package/models/index.js CHANGED
@@ -1 +1 @@
1
- export * from './seriesType';
1
+ export * from "./seriesType/index.js";
@@ -1 +1 @@
1
- export * from './heatmap';
1
+ export * from "./heatmap.js";
@@ -1,5 +1,5 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
2
1
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
2
+ import _extends from "@babel/runtime/helpers/esm/extends";
3
3
  const _excluded = ["zoom", "onZoomChange"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
@@ -14,10 +14,18 @@ import { ChartsAxisHighlight } from '@mui/x-charts/ChartsAxisHighlight';
14
14
  import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
15
15
  import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
16
16
  import { useBarChartProps } from '@mui/x-charts/internals';
17
- import { ResponsiveChartContainerPro } from '../ResponsiveChartContainerPro';
18
- import { ZoomSetup } from '../context/ZoomProvider/ZoomSetup';
19
- import { useZoom } from '../context/ZoomProvider/useZoom';
17
+ import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
18
+ import { ZoomSetup } from "../context/ZoomProvider/ZoomSetup.js";
19
+ import { useZoom } from "../context/ZoomProvider/useZoom.js";
20
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ function BarChartPlotZoom(props) {
22
+ const {
23
+ isInteracting
24
+ } = useZoom();
25
+ return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
26
+ skipAnimation: isInteracting ? true : props.skipAnimation
27
+ }));
28
+ }
21
29
  /**
22
30
  * Demos:
23
31
  *
@@ -58,7 +66,7 @@ const BarChartPro = /*#__PURE__*/React.forwardRef(function BarChartPro(inProps,
58
66
  }, chartContainerProps, {
59
67
  zoom: zoom,
60
68
  onZoomChange: onZoomChange,
61
- children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), props.grid && /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
69
+ children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
62
70
  children: [/*#__PURE__*/_jsx(BarChartPlotZoom, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
63
71
  })), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), /*#__PURE__*/_jsx(ZoomSetup, {}), children]
64
72
  }));
@@ -150,6 +158,17 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
150
158
  classes: PropTypes.object,
151
159
  direction: PropTypes.oneOf(['column', 'row']),
152
160
  hidden: PropTypes.bool,
161
+ itemGap: PropTypes.number,
162
+ itemMarkHeight: PropTypes.number,
163
+ itemMarkWidth: PropTypes.number,
164
+ labelStyle: PropTypes.object,
165
+ markGap: PropTypes.number,
166
+ padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
167
+ bottom: PropTypes.number,
168
+ left: PropTypes.number,
169
+ right: PropTypes.number,
170
+ top: PropTypes.number
171
+ })]),
153
172
  position: PropTypes.shape({
154
173
  horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
155
174
  vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
@@ -193,6 +212,12 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
193
212
  * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
194
213
  */
195
214
  onItemClick: PropTypes.func,
215
+ /**
216
+ * Callback fired when the zoom has changed.
217
+ *
218
+ * @param {ZoomData[]} zoomData Updated zoom data.
219
+ */
220
+ onZoomChange: PropTypes.func,
196
221
  /**
197
222
  * Indicate which axis to display the right of the charts.
198
223
  * Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
@@ -255,7 +280,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
255
280
  * An array of [[AxisConfig]] objects.
256
281
  */
257
282
  xAxis: PropTypes.arrayOf(PropTypes.shape({
258
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
259
283
  classes: PropTypes.object,
260
284
  colorMap: PropTypes.oneOfType([PropTypes.shape({
261
285
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -290,6 +314,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
290
314
  slotProps: PropTypes.object,
291
315
  slots: PropTypes.object,
292
316
  stroke: PropTypes.string,
317
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
293
318
  tickFontSize: PropTypes.number,
294
319
  tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
295
320
  tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
@@ -302,6 +327,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
302
327
  tickSize: PropTypes.number,
303
328
  valueFormatter: PropTypes.func,
304
329
  zoom: PropTypes.oneOfType([PropTypes.shape({
330
+ filterMode: PropTypes.oneOf(['discard', 'keep']),
305
331
  maxEnd: PropTypes.number,
306
332
  maxSpan: PropTypes.number,
307
333
  minSpan: PropTypes.number,
@@ -316,7 +342,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
316
342
  * An array of [[AxisConfig]] objects.
317
343
  */
318
344
  yAxis: PropTypes.arrayOf(PropTypes.shape({
319
- axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
320
345
  classes: PropTypes.object,
321
346
  colorMap: PropTypes.oneOfType([PropTypes.shape({
322
347
  colors: PropTypes.arrayOf(PropTypes.string).isRequired,
@@ -351,6 +376,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
351
376
  slotProps: PropTypes.object,
352
377
  slots: PropTypes.object,
353
378
  stroke: PropTypes.string,
379
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
354
380
  tickFontSize: PropTypes.number,
355
381
  tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
356
382
  tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
@@ -363,6 +389,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
363
389
  tickSize: PropTypes.number,
364
390
  valueFormatter: PropTypes.func,
365
391
  zoom: PropTypes.oneOfType([PropTypes.shape({
392
+ filterMode: PropTypes.oneOf(['discard', 'keep']),
366
393
  maxEnd: PropTypes.number,
367
394
  maxSpan: PropTypes.number,
368
395
  minSpan: PropTypes.number,
@@ -370,53 +397,14 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
370
397
  panning: PropTypes.bool,
371
398
  step: PropTypes.number
372
399
  }), PropTypes.bool])
373
- }))
374
- } : void 0;
375
- function BarChartPlotZoom(props) {
376
- const {
377
- isInteracting
378
- } = useZoom();
379
- return /*#__PURE__*/_jsx(BarPlot, _extends({}, props, {
380
- skipAnimation: isInteracting ? true : props.skipAnimation
381
- }));
382
- }
383
- process.env.NODE_ENV !== "production" ? BarChartPlotZoom.propTypes = {
384
- // ----------------------------- Warning --------------------------------
385
- // | These PropTypes are generated from the TypeScript type definitions |
386
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
387
- // ----------------------------------------------------------------------
388
- /**
389
- * If provided, the function will be used to format the label of the bar.
390
- * It can be set to 'value' to display the current value.
391
- * @param {BarItem} item The item to format.
392
- * @param {BarLabelContext} context data about the bar.
393
- * @returns {string} The formatted label.
394
- */
395
- barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
396
- /**
397
- * Defines the border radius of the bar element.
398
- */
399
- borderRadius: PropTypes.number,
400
- /**
401
- * Callback fired when a bar item is clicked.
402
- * @param {React.MouseEvent<SVGElement, MouseEvent>} event The event source of the callback.
403
- * @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
404
- */
405
- onItemClick: PropTypes.func,
406
- /**
407
- * If `true`, animations are skipped.
408
- * @default false
409
- */
410
- skipAnimation: PropTypes.bool,
411
- /**
412
- * The props used for each component slot.
413
- * @default {}
414
- */
415
- slotProps: PropTypes.object,
400
+ })),
416
401
  /**
417
- * Overridable component slots.
418
- * @default {}
402
+ * The list of zoom data related to each axis.
419
403
  */
420
- slots: PropTypes.object
404
+ zoom: PropTypes.arrayOf(PropTypes.shape({
405
+ axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
406
+ end: PropTypes.number.isRequired,
407
+ start: PropTypes.number.isRequired
408
+ }))
421
409
  } : void 0;
422
410
  export { BarChartPro };
@@ -1 +1 @@
1
- export * from './BarChartPro';
1
+ export * from "./BarChartPro.js";
@@ -5,10 +5,10 @@ import { ChartsSurface } from '@mui/x-charts/ChartsSurface';
5
5
  import { HighlightedProvider, ZAxisContextProvider } from '@mui/x-charts/context';
6
6
  import { ChartsAxesGradients, DrawingProvider, InteractionProvider, PluginProvider, SeriesProvider } from '@mui/x-charts/internals';
7
7
  import { useLicenseVerifier } from '@mui/x-license/useLicenseVerifier';
8
- import { getReleaseInfo } from '../internals/utils/releaseInfo';
9
- import { CartesianProviderPro } from '../context/CartesianProviderPro';
10
- import { ZoomProvider } from '../context/ZoomProvider';
11
- import { useChartContainerProProps } from './useChartContainerProProps';
8
+ import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
9
+ import { CartesianProviderPro } from "../context/CartesianProviderPro/index.js";
10
+ import { ZoomProvider } from "../context/ZoomProvider/index.js";
11
+ import { useChartContainerProProps } from "./useChartContainerProProps.js";
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  const releaseInfo = getReleaseInfo();
14
14
  const ChartContainerPro = /*#__PURE__*/React.forwardRef(function ChartContainer(props, ref) {
@@ -1 +1 @@
1
- export * from './ChartContainerPro';
1
+ export * from "./ChartContainerPro.js";
@@ -89,7 +89,7 @@ process.env.NODE_ENV !== "production" ? DefaultHeatmapTooltip.propTypes = {
89
89
  type: PropTypes.oneOf(['heatmap']).isRequired
90
90
  }).isRequired,
91
91
  /**
92
- * The series linked to the triggered axis.
92
+ * The series linked to the triggered item.
93
93
  */
94
94
  series: PropTypes.object.isRequired,
95
95
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
@@ -9,10 +9,10 @@ import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
9
9
  import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
10
10
  import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
11
11
  import { ChartsOverlay } from '@mui/x-charts/ChartsOverlay';
12
- import { ResponsiveChartContainerPro } from '../ResponsiveChartContainerPro';
13
- import { HeatmapPlot } from './HeatmapPlot';
14
- import { plugin as heatmapPlugin } from './plugin';
15
- import { DefaultHeatmapTooltip } from './DefaultHeatmapTooltip';
12
+ import { ResponsiveChartContainerPro } from "../ResponsiveChartContainerPro/index.js";
13
+ import { HeatmapPlot } from "./HeatmapPlot.js";
14
+ import { plugin as heatmapPlugin } from "./plugin.js";
15
+ import { DefaultHeatmapTooltip } from "./DefaultHeatmapTooltip.js";
16
16
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
17
17
  // The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
18
18
  const defaultColorMap = interpolateRgbBasis(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
@@ -8,7 +8,7 @@ import useSlotProps from '@mui/utils/useSlotProps';
8
8
  import composeClasses from '@mui/utils/composeClasses';
9
9
  import { useItemHighlighted } from '@mui/x-charts/context';
10
10
  import { useInteractionItemProps } from '@mui/x-charts/internals';
11
- import { getHeatmapUtilityClass } from './heatmapClasses';
11
+ import { getHeatmapUtilityClass } from "./heatmapClasses.js";
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  const HeatmapCell = styled('rect', {
14
14
  name: 'MuiHeatmap',
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { useXScale, useYScale, useZColorScale } from '@mui/x-charts/hooks';
4
- import { useHeatmapSeries } from '../hooks/useSeries';
5
- import { HeatmapItem } from './HeatmapItem';
4
+ import { useHeatmapSeries } from "../hooks/useSeries.js";
5
+ import { HeatmapItem } from "./HeatmapItem.js";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  function HeatmapPlot(props) {
8
8
  const xScale = useXScale();
@@ -1,4 +1,4 @@
1
- export { Heatmap } from './Heatmap';
2
- export { HeatmapPlot } from './HeatmapPlot';
3
- export * from './DefaultHeatmapTooltip';
4
- export * from './heatmapClasses';
1
+ export { Heatmap } from "./Heatmap.js";
2
+ export { HeatmapPlot } from "./HeatmapPlot.js";
3
+ export * from "./DefaultHeatmapTooltip.js";
4
+ export * from "./heatmapClasses.js";
@@ -1,6 +1,6 @@
1
- import { getBaseExtremum } from './extremums';
2
- import formatter from './formatter';
3
- import getColor from './getColor';
1
+ import { getBaseExtremum } from "./extremums.js";
2
+ import formatter from "./formatter.js";
3
+ import getColor from "./getColor.js";
4
4
  export const plugin = {
5
5
  seriesType: 'heatmap',
6
6
  seriesFormatter: formatter,