@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.
- package/BarChartPro/BarChartPro.js +41 -53
- package/BarChartPro/index.js +1 -1
- package/CHANGELOG.md +98 -1
- package/ChartContainerPro/ChartContainerPro.js +4 -4
- package/ChartContainerPro/index.js +1 -1
- package/Heatmap/DefaultHeatmapTooltip.js +1 -1
- package/Heatmap/Heatmap.js +4 -4
- package/Heatmap/HeatmapItem.js +1 -1
- package/Heatmap/HeatmapPlot.js +2 -2
- package/Heatmap/index.js +4 -4
- package/Heatmap/plugin.js +3 -3
- package/LineChartPro/LineChartPro.js +57 -111
- package/LineChartPro/index.js +1 -1
- package/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
- package/ResponsiveChartContainerPro/index.js +1 -1
- package/ScatterChartPro/ScatterChartPro.js +14 -3
- package/ScatterChartPro/index.js +1 -1
- package/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
- package/context/CartesianProviderPro/index.js +1 -1
- package/context/ZoomProvider/ZoomProvider.js +3 -3
- package/context/ZoomProvider/ZoomSetup.js +2 -2
- package/context/ZoomProvider/index.js +3 -3
- package/context/ZoomProvider/useSetupPan.js +1 -1
- package/context/ZoomProvider/useSetupZoom.js +1 -1
- package/context/ZoomProvider/useZoom.js +1 -1
- package/context/index.js +2 -2
- package/hooks/index.js +1 -1
- package/index.js +9 -9
- package/internals/utils/releaseInfo.js +1 -1
- package/models/index.js +1 -1
- package/models/seriesType/index.js +1 -1
- package/modern/BarChartPro/BarChartPro.js +41 -53
- package/modern/BarChartPro/index.js +1 -1
- package/modern/ChartContainerPro/ChartContainerPro.js +4 -4
- package/modern/ChartContainerPro/index.js +1 -1
- package/modern/Heatmap/DefaultHeatmapTooltip.js +1 -1
- package/modern/Heatmap/Heatmap.js +4 -4
- package/modern/Heatmap/HeatmapItem.js +1 -1
- package/modern/Heatmap/HeatmapPlot.js +2 -2
- package/modern/Heatmap/index.js +4 -4
- package/modern/Heatmap/plugin.js +3 -3
- package/modern/LineChartPro/LineChartPro.js +57 -111
- package/modern/LineChartPro/index.js +1 -1
- package/modern/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +3 -3
- package/modern/ResponsiveChartContainerPro/index.js +1 -1
- package/modern/ScatterChartPro/ScatterChartPro.js +14 -3
- package/modern/ScatterChartPro/index.js +1 -1
- package/modern/context/CartesianProviderPro/CartesianProviderPro.js +2 -2
- package/modern/context/CartesianProviderPro/index.js +1 -1
- package/modern/context/ZoomProvider/ZoomProvider.js +3 -3
- package/modern/context/ZoomProvider/ZoomSetup.js +2 -2
- package/modern/context/ZoomProvider/index.js +3 -3
- package/modern/context/ZoomProvider/useSetupPan.js +1 -1
- package/modern/context/ZoomProvider/useSetupZoom.js +1 -1
- package/modern/context/ZoomProvider/useZoom.js +1 -1
- package/modern/context/index.js +2 -2
- package/modern/hooks/index.js +1 -1
- package/modern/index.js +9 -9
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/index.js +1 -1
- package/modern/models/seriesType/index.js +1 -1
- package/modern/themeAugmentation/index.js +0 -4
- package/modern/typeOverloads/index.js +1 -1
- package/node/BarChartPro/BarChartPro.js +40 -53
- package/node/ChartContainerPro/ChartContainerPro.js +2 -3
- package/node/ChartContainerPro/useChartContainerProProps.js +1 -1
- package/node/Heatmap/DefaultHeatmapTooltip.js +3 -4
- package/node/Heatmap/Heatmap.js +2 -3
- package/node/Heatmap/HeatmapItem.js +2 -3
- package/node/Heatmap/HeatmapPlot.js +2 -3
- package/node/Heatmap/formatter.js +1 -1
- package/node/Heatmap/heatmapClasses.js +1 -1
- package/node/Heatmap/plugin.js +1 -1
- package/node/LineChartPro/LineChartPro.js +56 -111
- package/node/ResponsiveChartContainerPro/ResponsiveChartContainerPro.js +2 -3
- package/node/ResponsiveChartContainerPro/useResponsiveChartContainerProProps.js +1 -1
- package/node/ScatterChartPro/ScatterChartPro.js +14 -4
- package/node/context/CartesianProviderPro/CartesianProviderPro.js +2 -3
- package/node/context/ZoomProvider/ZoomContext.js +1 -2
- package/node/context/ZoomProvider/ZoomProvider.js +2 -3
- package/node/context/ZoomProvider/defaultizeZoom.js +1 -1
- package/node/context/ZoomProvider/useSetupPan.js +2 -3
- package/node/context/ZoomProvider/useSetupZoom.js +1 -2
- package/node/context/ZoomProvider/useZoom.js +1 -2
- package/node/hooks/useSeries.js +1 -2
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/node/themeAugmentation/index.js +1 -49
- package/package.json +6 -5
- package/themeAugmentation/index.d.ts +4 -4
- package/themeAugmentation/index.js +0 -4
- package/typeOverloads/index.js +1 -1
|
@@ -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
|
|
18
|
-
import { ZoomSetup } from
|
|
19
|
-
import { useZoom } from
|
|
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)),
|
|
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
|
-
*
|
|
418
|
-
* @default {}
|
|
402
|
+
* The list of zoom data related to each axis.
|
|
419
403
|
*/
|
|
420
|
-
|
|
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 };
|
package/BarChartPro/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./BarChartPro.js";
|
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,105 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.16.0
|
|
7
|
+
|
|
8
|
+
_Sep 5, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎨 Update the design of Data Grid column headers (#14293)
|
|
13
|
+
- 🧠 Add the `slots` concept introduction documentation page (#13881)
|
|
14
|
+
- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.16.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
|
|
25
|
+
- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
|
|
26
|
+
- [DataGrid] Column header design updates (#14293) @KenanYusuf
|
|
27
|
+
- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
|
|
28
|
+
- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
|
|
29
|
+
- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
|
|
30
|
+
- [DataGrid] Restore reselect behavior (#14410) @romgrk
|
|
31
|
+
- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
|
|
32
|
+
- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.16.0`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@7.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@7.16.0`.
|
|
43
|
+
|
|
44
|
+
### Date and Time Pickers
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers@7.16.0`
|
|
47
|
+
|
|
48
|
+
- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
|
|
49
|
+
- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
|
|
50
|
+
- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-date-pickers-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-date-pickers@7.16.0`.
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.16.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Fix JSDoc typos (#14497) @alexfauquette
|
|
61
|
+
- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
|
|
62
|
+
- [charts] Fix theme augmentation (#14372) @alexfauquette
|
|
63
|
+
- [charts] Pass all props to legend (#14392) @JCQuintas
|
|
64
|
+
- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
|
|
65
|
+
- [charts] Update `package.json` for vendor package (#14465) @alexfauquette
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@7.0.0-beta.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@7.16.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
|
|
72
|
+
|
|
73
|
+
### Tree View
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-tree-view@7.16.0`
|
|
76
|
+
|
|
77
|
+
- [TreeView] Clean label editing code (#14264) @flaviendelangle
|
|
78
|
+
|
|
79
|
+
### `@mui/x-codemod@7.16.0`
|
|
80
|
+
|
|
81
|
+
- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
|
|
82
|
+
|
|
83
|
+
### Docs
|
|
84
|
+
|
|
85
|
+
- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
|
|
86
|
+
- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
|
|
87
|
+
- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
|
|
88
|
+
- [docs] Remove notion of seats (#14351) @oliviertassinari
|
|
89
|
+
- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
|
|
90
|
+
|
|
91
|
+
### Core
|
|
92
|
+
|
|
93
|
+
- [core] Fix changelog spelling @oliviertassinari
|
|
94
|
+
- [core] Fix failing tests on the pickers (#14457) @flaviendelangle
|
|
95
|
+
- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
|
|
96
|
+
- [code-infra] Add babel runtime version check (#14483) @Janpot
|
|
97
|
+
- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
|
|
98
|
+
- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
|
|
99
|
+
- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
|
|
100
|
+
- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
|
|
101
|
+
- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
|
|
102
|
+
|
|
6
103
|
## 7.15.0
|
|
7
104
|
|
|
8
105
|
_Aug 29, 2024_
|
|
@@ -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
|
|
9
|
-
import { CartesianProviderPro } from
|
|
10
|
-
import { ZoomProvider } from
|
|
11
|
-
import { useChartContainerProProps } from
|
|
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
|
|
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
|
|
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])
|
package/Heatmap/Heatmap.js
CHANGED
|
@@ -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
|
|
13
|
-
import { HeatmapPlot } from
|
|
14
|
-
import { plugin as heatmapPlugin } from
|
|
15
|
-
import { DefaultHeatmapTooltip } from
|
|
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']);
|
package/Heatmap/HeatmapItem.js
CHANGED
|
@@ -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
|
|
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',
|
package/Heatmap/HeatmapPlot.js
CHANGED
|
@@ -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
|
|
5
|
-
import { HeatmapItem } from
|
|
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();
|
package/Heatmap/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Heatmap } from
|
|
2
|
-
export { HeatmapPlot } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export { Heatmap } from "./Heatmap.js";
|
|
2
|
+
export { HeatmapPlot } from "./HeatmapPlot.js";
|
|
3
|
+
export * from "./DefaultHeatmapTooltip.js";
|
|
4
|
+
export * from "./heatmapClasses.js";
|
package/Heatmap/plugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getBaseExtremum } from
|
|
2
|
-
import formatter from
|
|
3
|
-
import getColor from
|
|
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,
|
|
@@ -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,34 @@ import { ChartsLegend } from '@mui/x-charts/ChartsLegend';
|
|
|
14
14
|
import { ChartsTooltip } from '@mui/x-charts/ChartsTooltip';
|
|
15
15
|
import { ChartsClipPath } from '@mui/x-charts/ChartsClipPath';
|
|
16
16
|
import { useLineChartProps } from '@mui/x-charts/internals';
|
|
17
|
-
import { ResponsiveChartContainerPro } from
|
|
18
|
-
import { ZoomSetup } from
|
|
19
|
-
import { useZoom } from
|
|
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 AreaPlotZoom(props) {
|
|
22
|
+
const {
|
|
23
|
+
isInteracting
|
|
24
|
+
} = useZoom();
|
|
25
|
+
return /*#__PURE__*/_jsx(AreaPlot, _extends({}, props, {
|
|
26
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
27
|
+
}));
|
|
28
|
+
}
|
|
29
|
+
function LinePlotZoom(props) {
|
|
30
|
+
const {
|
|
31
|
+
isInteracting
|
|
32
|
+
} = useZoom();
|
|
33
|
+
return /*#__PURE__*/_jsx(LinePlot, _extends({}, props, {
|
|
34
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
function MarkPlotZoom(props) {
|
|
38
|
+
const {
|
|
39
|
+
isInteracting
|
|
40
|
+
} = useZoom();
|
|
41
|
+
return /*#__PURE__*/_jsx(MarkPlot, _extends({}, props, {
|
|
42
|
+
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
43
|
+
}));
|
|
44
|
+
}
|
|
21
45
|
/**
|
|
22
46
|
* Demos:
|
|
23
47
|
*
|
|
@@ -60,7 +84,7 @@ const LineChartPro = /*#__PURE__*/React.forwardRef(function LineChartPro(inProps
|
|
|
60
84
|
}, chartContainerProps, {
|
|
61
85
|
zoom: zoom,
|
|
62
86
|
onZoomChange: onZoomChange,
|
|
63
|
-
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)),
|
|
87
|
+
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
64
88
|
children: [/*#__PURE__*/_jsx(AreaPlotZoom, _extends({}, areaPlotProps)), /*#__PURE__*/_jsx(LinePlotZoom, _extends({}, linePlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
65
89
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx("g", {
|
|
66
90
|
"data-drawing-container": true,
|
|
@@ -141,6 +165,17 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
141
165
|
classes: PropTypes.object,
|
|
142
166
|
direction: PropTypes.oneOf(['column', 'row']),
|
|
143
167
|
hidden: PropTypes.bool,
|
|
168
|
+
itemGap: PropTypes.number,
|
|
169
|
+
itemMarkHeight: PropTypes.number,
|
|
170
|
+
itemMarkWidth: PropTypes.number,
|
|
171
|
+
labelStyle: PropTypes.object,
|
|
172
|
+
markGap: PropTypes.number,
|
|
173
|
+
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
174
|
+
bottom: PropTypes.number,
|
|
175
|
+
left: PropTypes.number,
|
|
176
|
+
right: PropTypes.number,
|
|
177
|
+
top: PropTypes.number
|
|
178
|
+
})]),
|
|
144
179
|
position: PropTypes.shape({
|
|
145
180
|
horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
|
|
146
181
|
vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
|
|
@@ -190,6 +225,12 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
190
225
|
* Callback fired when a mark element is clicked.
|
|
191
226
|
*/
|
|
192
227
|
onMarkClick: PropTypes.func,
|
|
228
|
+
/**
|
|
229
|
+
* Callback fired when the zoom has changed.
|
|
230
|
+
*
|
|
231
|
+
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
232
|
+
*/
|
|
233
|
+
onZoomChange: PropTypes.func,
|
|
193
234
|
/**
|
|
194
235
|
* Indicate which axis to display the right of the charts.
|
|
195
236
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -253,7 +294,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
253
294
|
* An array of [[AxisConfig]] objects.
|
|
254
295
|
*/
|
|
255
296
|
xAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
256
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
257
297
|
classes: PropTypes.object,
|
|
258
298
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
259
299
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -288,6 +328,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
288
328
|
slotProps: PropTypes.object,
|
|
289
329
|
slots: PropTypes.object,
|
|
290
330
|
stroke: PropTypes.string,
|
|
331
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
291
332
|
tickFontSize: PropTypes.number,
|
|
292
333
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
293
334
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -300,6 +341,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
300
341
|
tickSize: PropTypes.number,
|
|
301
342
|
valueFormatter: PropTypes.func,
|
|
302
343
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
344
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
303
345
|
maxEnd: PropTypes.number,
|
|
304
346
|
maxSpan: PropTypes.number,
|
|
305
347
|
minSpan: PropTypes.number,
|
|
@@ -314,7 +356,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
314
356
|
* An array of [[AxisConfig]] objects.
|
|
315
357
|
*/
|
|
316
358
|
yAxis: PropTypes.arrayOf(PropTypes.shape({
|
|
317
|
-
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
318
359
|
classes: PropTypes.object,
|
|
319
360
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
320
361
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
@@ -349,6 +390,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
349
390
|
slotProps: PropTypes.object,
|
|
350
391
|
slots: PropTypes.object,
|
|
351
392
|
stroke: PropTypes.string,
|
|
393
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
352
394
|
tickFontSize: PropTypes.number,
|
|
353
395
|
tickInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.array, PropTypes.func]),
|
|
354
396
|
tickLabelInterval: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.func]),
|
|
@@ -361,6 +403,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
361
403
|
tickSize: PropTypes.number,
|
|
362
404
|
valueFormatter: PropTypes.func,
|
|
363
405
|
zoom: PropTypes.oneOfType([PropTypes.shape({
|
|
406
|
+
filterMode: PropTypes.oneOf(['discard', 'keep']),
|
|
364
407
|
maxEnd: PropTypes.number,
|
|
365
408
|
maxSpan: PropTypes.number,
|
|
366
409
|
minSpan: PropTypes.number,
|
|
@@ -368,111 +411,14 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
368
411
|
panning: PropTypes.bool,
|
|
369
412
|
step: PropTypes.number
|
|
370
413
|
}), PropTypes.bool])
|
|
371
|
-
}))
|
|
372
|
-
} : void 0;
|
|
373
|
-
function MarkPlotZoom(props) {
|
|
374
|
-
const {
|
|
375
|
-
isInteracting
|
|
376
|
-
} = useZoom();
|
|
377
|
-
return /*#__PURE__*/_jsx(MarkPlot, _extends({}, props, {
|
|
378
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
379
|
-
}));
|
|
380
|
-
}
|
|
381
|
-
process.env.NODE_ENV !== "production" ? MarkPlotZoom.propTypes = {
|
|
382
|
-
// ----------------------------- Warning --------------------------------
|
|
383
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
384
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
385
|
-
// ----------------------------------------------------------------------
|
|
386
|
-
/**
|
|
387
|
-
* Callback fired when a line mark item is clicked.
|
|
388
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
389
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line mark item identifier.
|
|
390
|
-
*/
|
|
391
|
-
onItemClick: PropTypes.func,
|
|
392
|
-
/**
|
|
393
|
-
* If `true`, animations are skipped.
|
|
394
|
-
* @default false
|
|
395
|
-
*/
|
|
396
|
-
skipAnimation: PropTypes.bool,
|
|
397
|
-
/**
|
|
398
|
-
* The props used for each component slot.
|
|
399
|
-
* @default {}
|
|
400
|
-
*/
|
|
401
|
-
slotProps: PropTypes.object,
|
|
402
|
-
/**
|
|
403
|
-
* Overridable component slots.
|
|
404
|
-
* @default {}
|
|
405
|
-
*/
|
|
406
|
-
slots: PropTypes.object
|
|
407
|
-
} : void 0;
|
|
408
|
-
function LinePlotZoom(props) {
|
|
409
|
-
const {
|
|
410
|
-
isInteracting
|
|
411
|
-
} = useZoom();
|
|
412
|
-
return /*#__PURE__*/_jsx(LinePlot, _extends({}, props, {
|
|
413
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
414
|
-
}));
|
|
415
|
-
}
|
|
416
|
-
process.env.NODE_ENV !== "production" ? LinePlotZoom.propTypes = {
|
|
417
|
-
// ----------------------------- Warning --------------------------------
|
|
418
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
419
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
420
|
-
// ----------------------------------------------------------------------
|
|
421
|
-
/**
|
|
422
|
-
* Callback fired when a line item is clicked.
|
|
423
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
424
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
425
|
-
*/
|
|
426
|
-
onItemClick: PropTypes.func,
|
|
427
|
-
/**
|
|
428
|
-
* If `true`, animations are skipped.
|
|
429
|
-
* @default false
|
|
430
|
-
*/
|
|
431
|
-
skipAnimation: PropTypes.bool,
|
|
432
|
-
/**
|
|
433
|
-
* The props used for each component slot.
|
|
434
|
-
* @default {}
|
|
435
|
-
*/
|
|
436
|
-
slotProps: PropTypes.object,
|
|
437
|
-
/**
|
|
438
|
-
* Overridable component slots.
|
|
439
|
-
* @default {}
|
|
440
|
-
*/
|
|
441
|
-
slots: PropTypes.object
|
|
442
|
-
} : void 0;
|
|
443
|
-
function AreaPlotZoom(props) {
|
|
444
|
-
const {
|
|
445
|
-
isInteracting
|
|
446
|
-
} = useZoom();
|
|
447
|
-
return /*#__PURE__*/_jsx(AreaPlot, _extends({}, props, {
|
|
448
|
-
skipAnimation: isInteracting ? true : props.skipAnimation
|
|
449
|
-
}));
|
|
450
|
-
}
|
|
451
|
-
process.env.NODE_ENV !== "production" ? AreaPlotZoom.propTypes = {
|
|
452
|
-
// ----------------------------- Warning --------------------------------
|
|
453
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
454
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
455
|
-
// ----------------------------------------------------------------------
|
|
456
|
-
/**
|
|
457
|
-
* Callback fired when a line area item is clicked.
|
|
458
|
-
* @param {React.MouseEvent<SVGPathElement, MouseEvent>} event The event source of the callback.
|
|
459
|
-
* @param {LineItemIdentifier} lineItemIdentifier The line item identifier.
|
|
460
|
-
*/
|
|
461
|
-
onItemClick: PropTypes.func,
|
|
462
|
-
/**
|
|
463
|
-
* If `true`, animations are skipped.
|
|
464
|
-
* @default false
|
|
465
|
-
*/
|
|
466
|
-
skipAnimation: PropTypes.bool,
|
|
467
|
-
/**
|
|
468
|
-
* The props used for each component slot.
|
|
469
|
-
* @default {}
|
|
470
|
-
*/
|
|
471
|
-
slotProps: PropTypes.object,
|
|
414
|
+
})),
|
|
472
415
|
/**
|
|
473
|
-
*
|
|
474
|
-
* @default {}
|
|
416
|
+
* The list of zoom data related to each axis.
|
|
475
417
|
*/
|
|
476
|
-
|
|
418
|
+
zoom: PropTypes.arrayOf(PropTypes.shape({
|
|
419
|
+
axisId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,
|
|
420
|
+
end: PropTypes.number.isRequired,
|
|
421
|
+
start: PropTypes.number.isRequired
|
|
422
|
+
}))
|
|
477
423
|
} : void 0;
|
|
478
424
|
export { LineChartPro };
|
package/LineChartPro/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./LineChartPro.js";
|
|
@@ -3,9 +3,9 @@ import * as React from 'react';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { Watermark } from '@mui/x-license/Watermark';
|
|
5
5
|
import { ResizableContainer } from '@mui/x-charts/internals';
|
|
6
|
-
import { getReleaseInfo } from
|
|
7
|
-
import { ChartContainerPro } from
|
|
8
|
-
import { useResponsiveChartContainerProProps } from
|
|
6
|
+
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
7
|
+
import { ChartContainerPro } from "../ChartContainerPro/index.js";
|
|
8
|
+
import { useResponsiveChartContainerProProps } from "./useResponsiveChartContainerProProps.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
10
|
const releaseInfo = getReleaseInfo();
|
|
11
11
|
const ResponsiveChartContainerPro = /*#__PURE__*/React.forwardRef(function ResponsiveChartContainerPro(props, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from
|
|
1
|
+
export * from "./ResponsiveChartContainerPro.js";
|