@mui/x-charts-pro 8.0.0-alpha.0 → 8.0.0-alpha.2
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 +3 -35
- package/CHANGELOG.md +651 -6
- package/ChartContainerPro/ChartContainerPro.js +7 -25
- package/ChartContainerPro/useChartContainerProProps.d.ts +2 -39
- package/ChartContainerPro/useChartContainerProProps.js +4 -4
- package/Heatmap/Heatmap.d.ts +11 -4
- package/Heatmap/Heatmap.js +4 -39
- package/Heatmap/HeatmapTooltip.d.ts +9 -0
- package/Heatmap/HeatmapTooltip.js +272 -0
- package/Heatmap/heatmapClasses.js +2 -1
- package/Heatmap/index.d.ts +1 -1
- package/Heatmap/index.js +1 -1
- package/LineChartPro/LineChartPro.js +3 -36
- package/README.md +2 -2
- package/ScatterChartPro/ScatterChartPro.js +3 -36
- package/context/CartesianProviderPro/createAxisFilterMapper.d.ts +2 -1
- package/context/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/context/ChartDataProviderPro/ChartDataProviderPro.js +20 -268
- package/context/ChartDataProviderPro/useChartDataProviderProProps.d.ts +3 -5
- package/context/ChartDataProviderPro/useChartDataProviderProProps.js +6 -6
- package/index.js +1 -1
- package/internals/utils/releaseInfo.js +2 -2
- package/modern/BarChartPro/BarChartPro.js +3 -35
- package/modern/ChartContainerPro/ChartContainerPro.js +7 -25
- package/modern/ChartContainerPro/useChartContainerProProps.js +4 -4
- package/modern/Heatmap/Heatmap.js +4 -39
- package/modern/Heatmap/HeatmapTooltip.js +272 -0
- package/modern/Heatmap/heatmapClasses.js +2 -1
- package/modern/Heatmap/index.js +1 -1
- package/modern/LineChartPro/LineChartPro.js +3 -36
- package/modern/ScatterChartPro/ScatterChartPro.js +3 -36
- package/modern/context/ChartDataProviderPro/ChartDataProviderPro.js +20 -268
- package/modern/context/ChartDataProviderPro/useChartDataProviderProProps.js +6 -6
- package/modern/index.js +1 -1
- package/modern/internals/utils/releaseInfo.js +2 -2
- package/node/BarChartPro/BarChartPro.js +3 -35
- package/node/ChartContainerPro/ChartContainerPro.js +7 -25
- package/node/ChartContainerPro/useChartContainerProProps.js +4 -4
- package/node/Heatmap/Heatmap.js +4 -39
- package/node/Heatmap/HeatmapTooltip.js +278 -0
- package/node/Heatmap/heatmapClasses.js +5 -4
- package/node/Heatmap/index.js +4 -4
- package/node/LineChartPro/LineChartPro.js +3 -36
- package/node/ScatterChartPro/ScatterChartPro.js +3 -36
- package/node/context/ChartDataProviderPro/ChartDataProviderPro.js +19 -267
- package/node/context/ChartDataProviderPro/useChartDataProviderProProps.js +6 -6
- package/node/index.js +1 -1
- package/node/internals/utils/releaseInfo.js +4 -3
- package/package.json +7 -7
- package/Heatmap/DefaultHeatmapTooltip.d.ts +0 -7
- package/Heatmap/DefaultHeatmapTooltip.js +0 -99
- package/modern/Heatmap/DefaultHeatmapTooltip.js +0 -99
- package/node/Heatmap/DefaultHeatmapTooltip.js +0 -105
|
@@ -172,9 +172,9 @@ const LineChartPro = exports.LineChartPro = /*#__PURE__*/React.forwardRef(functi
|
|
|
172
172
|
axisHighlightProps,
|
|
173
173
|
lineHighlightPlotProps,
|
|
174
174
|
legendProps,
|
|
175
|
-
tooltipProps,
|
|
176
175
|
children
|
|
177
176
|
} = (0, _internals.useLineChartProps)(other);
|
|
177
|
+
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
178
178
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartContainerPro.ChartContainerPro, (0, _extends2.default)({
|
|
179
179
|
ref: ref
|
|
180
180
|
}, chartContainerProps, {
|
|
@@ -185,7 +185,7 @@ const LineChartPro = exports.LineChartPro = /*#__PURE__*/React.forwardRef(functi
|
|
|
185
185
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
186
186
|
"data-drawing-container": true,
|
|
187
187
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(MarkPlotZoom, (0, _extends2.default)({}, markPlotProps))
|
|
188
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LineChart.LineHighlightPlot, (0, _extends2.default)({}, lineHighlightPlotProps)), !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
188
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LineChart.LineHighlightPlot, (0, _extends2.default)({}, lineHighlightPlotProps)), !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props.slotProps?.tooltip)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsClipPath.ChartsClipPath, (0, _extends2.default)({}, clipPathProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ZoomSetup.ZoomSetup, {}), children]
|
|
189
189
|
}));
|
|
190
190
|
});
|
|
191
191
|
process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
@@ -195,7 +195,7 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
195
195
|
// ----------------------------------------------------------------------
|
|
196
196
|
/**
|
|
197
197
|
* The configuration of axes highlight.
|
|
198
|
-
* @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
|
|
198
|
+
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
199
199
|
* @default { x: 'line' }
|
|
200
200
|
*/
|
|
201
201
|
axisHighlight: _propTypes.default.shape({
|
|
@@ -310,16 +310,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
310
310
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
311
311
|
*/
|
|
312
312
|
onZoomChange: _propTypes.default.func,
|
|
313
|
-
/**
|
|
314
|
-
* The chart will try to wait for the parent container to resolve its size
|
|
315
|
-
* before it renders for the first time.
|
|
316
|
-
*
|
|
317
|
-
* This can be useful in some scenarios where the chart appear to grow after
|
|
318
|
-
* the first render, like when used inside a grid.
|
|
319
|
-
*
|
|
320
|
-
* @default false
|
|
321
|
-
*/
|
|
322
|
-
resolveSizeBeforeRender: _propTypes.default.bool,
|
|
323
313
|
/**
|
|
324
314
|
* Indicate which axis to display the right of the charts.
|
|
325
315
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -348,31 +338,12 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
348
338
|
slots: _propTypes.default.object,
|
|
349
339
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
350
340
|
title: _propTypes.default.string,
|
|
351
|
-
/**
|
|
352
|
-
* The configuration of the tooltip.
|
|
353
|
-
* @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
|
|
354
|
-
* @default { trigger: 'item' }
|
|
355
|
-
*/
|
|
356
|
-
tooltip: _propTypes.default.shape({
|
|
357
|
-
axisContent: _propTypes.default.elementType,
|
|
358
|
-
classes: _propTypes.default.object,
|
|
359
|
-
itemContent: _propTypes.default.elementType,
|
|
360
|
-
slotProps: _propTypes.default.object,
|
|
361
|
-
slots: _propTypes.default.object,
|
|
362
|
-
trigger: _propTypes.default.oneOf(['axis', 'item', 'none'])
|
|
363
|
-
}),
|
|
364
341
|
/**
|
|
365
342
|
* Indicate which axis to display the top of the charts.
|
|
366
343
|
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
367
344
|
* @default null
|
|
368
345
|
*/
|
|
369
346
|
topAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
370
|
-
viewBox: _propTypes.default.shape({
|
|
371
|
-
height: _propTypes.default.number,
|
|
372
|
-
width: _propTypes.default.number,
|
|
373
|
-
x: _propTypes.default.number,
|
|
374
|
-
y: _propTypes.default.number
|
|
375
|
-
}),
|
|
376
347
|
/**
|
|
377
348
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
378
349
|
*/
|
|
@@ -408,7 +379,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
408
379
|
hideTooltip: _propTypes.default.bool,
|
|
409
380
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
410
381
|
label: _propTypes.default.string,
|
|
411
|
-
labelFontSize: _propTypes.default.number,
|
|
412
382
|
labelStyle: _propTypes.default.object,
|
|
413
383
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
414
384
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -419,7 +389,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
419
389
|
slots: _propTypes.default.object,
|
|
420
390
|
stroke: _propTypes.default.string,
|
|
421
391
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
422
|
-
tickFontSize: _propTypes.default.number,
|
|
423
392
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
424
393
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
425
394
|
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
@@ -471,7 +440,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
471
440
|
hideTooltip: _propTypes.default.bool,
|
|
472
441
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
473
442
|
label: _propTypes.default.string,
|
|
474
|
-
labelFontSize: _propTypes.default.number,
|
|
475
443
|
labelStyle: _propTypes.default.object,
|
|
476
444
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
477
445
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -482,7 +450,6 @@ process.env.NODE_ENV !== "production" ? LineChartPro.propTypes = {
|
|
|
482
450
|
slots: _propTypes.default.object,
|
|
483
451
|
stroke: _propTypes.default.string,
|
|
484
452
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
485
|
-
tickFontSize: _propTypes.default.number,
|
|
486
453
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
487
454
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
488
455
|
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
@@ -56,9 +56,9 @@ const ScatterChartPro = exports.ScatterChartPro = /*#__PURE__*/React.forwardRef(
|
|
|
56
56
|
overlayProps,
|
|
57
57
|
legendProps,
|
|
58
58
|
axisHighlightProps,
|
|
59
|
-
tooltipProps,
|
|
60
59
|
children
|
|
61
60
|
} = (0, _internals.useScatterChartProps)(other);
|
|
61
|
+
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
62
62
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartContainerPro.ChartContainerPro, (0, _extends2.default)({
|
|
63
63
|
ref: ref
|
|
64
64
|
}, chartContainerProps, {
|
|
@@ -68,7 +68,7 @@ const ScatterChartPro = exports.ScatterChartPro = /*#__PURE__*/React.forwardRef(
|
|
|
68
68
|
children: [!props.disableVoronoi && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsVoronoiHandler.ChartsVoronoiHandler, (0, _extends2.default)({}, voronoiHandlerProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxis.ChartsAxis, (0, _extends2.default)({}, chartsAxisProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
69
69
|
"data-drawing-container": true,
|
|
70
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterChart.ScatterPlot, (0, _extends2.default)({}, scatterPlotProps))
|
|
71
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
71
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps)), !props.loading && /*#__PURE__*/(0, _jsxRuntime.jsx)(Tooltip, (0, _extends2.default)({}, props?.slotProps?.tooltip)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ZoomSetup.ZoomSetup, {}), children]
|
|
72
72
|
}))
|
|
73
73
|
}));
|
|
74
74
|
});
|
|
@@ -79,7 +79,7 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
79
79
|
// ----------------------------------------------------------------------
|
|
80
80
|
/**
|
|
81
81
|
* The configuration of axes highlight.
|
|
82
|
-
* @see See {@link https://mui.com/x/react-charts/highlighting highlighting docs} for more details.
|
|
82
|
+
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
83
83
|
* @default { x: 'none', y: 'none' }
|
|
84
84
|
*/
|
|
85
85
|
axisHighlight: _propTypes.default.shape({
|
|
@@ -178,16 +178,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
178
178
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
179
179
|
*/
|
|
180
180
|
onZoomChange: _propTypes.default.func,
|
|
181
|
-
/**
|
|
182
|
-
* The chart will try to wait for the parent container to resolve its size
|
|
183
|
-
* before it renders for the first time.
|
|
184
|
-
*
|
|
185
|
-
* This can be useful in some scenarios where the chart appear to grow after
|
|
186
|
-
* the first render, like when used inside a grid.
|
|
187
|
-
*
|
|
188
|
-
* @default false
|
|
189
|
-
*/
|
|
190
|
-
resolveSizeBeforeRender: _propTypes.default.bool,
|
|
191
181
|
/**
|
|
192
182
|
* Indicate which axis to display the right of the charts.
|
|
193
183
|
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
@@ -216,31 +206,12 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
216
206
|
slots: _propTypes.default.object,
|
|
217
207
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
218
208
|
title: _propTypes.default.string,
|
|
219
|
-
/**
|
|
220
|
-
* The configuration of the tooltip.
|
|
221
|
-
* @see See {@link https://mui.com/x/react-charts/tooltip/ tooltip docs} for more details.
|
|
222
|
-
* @default { trigger: 'item' }
|
|
223
|
-
*/
|
|
224
|
-
tooltip: _propTypes.default.shape({
|
|
225
|
-
axisContent: _propTypes.default.elementType,
|
|
226
|
-
classes: _propTypes.default.object,
|
|
227
|
-
itemContent: _propTypes.default.elementType,
|
|
228
|
-
slotProps: _propTypes.default.object,
|
|
229
|
-
slots: _propTypes.default.object,
|
|
230
|
-
trigger: _propTypes.default.oneOf(['axis', 'item', 'none'])
|
|
231
|
-
}),
|
|
232
209
|
/**
|
|
233
210
|
* Indicate which axis to display the top of the charts.
|
|
234
211
|
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
235
212
|
* @default null
|
|
236
213
|
*/
|
|
237
214
|
topAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
238
|
-
viewBox: _propTypes.default.shape({
|
|
239
|
-
height: _propTypes.default.number,
|
|
240
|
-
width: _propTypes.default.number,
|
|
241
|
-
x: _propTypes.default.number,
|
|
242
|
-
y: _propTypes.default.number
|
|
243
|
-
}),
|
|
244
215
|
/**
|
|
245
216
|
* Defines the maximal distance between a scatter point and the pointer that triggers the interaction.
|
|
246
217
|
* If `undefined`, the radius is assumed to be infinite.
|
|
@@ -281,7 +252,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
281
252
|
hideTooltip: _propTypes.default.bool,
|
|
282
253
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
283
254
|
label: _propTypes.default.string,
|
|
284
|
-
labelFontSize: _propTypes.default.number,
|
|
285
255
|
labelStyle: _propTypes.default.object,
|
|
286
256
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
287
257
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -292,7 +262,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
292
262
|
slots: _propTypes.default.object,
|
|
293
263
|
stroke: _propTypes.default.string,
|
|
294
264
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
295
|
-
tickFontSize: _propTypes.default.number,
|
|
296
265
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
297
266
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
298
267
|
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
@@ -344,7 +313,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
344
313
|
hideTooltip: _propTypes.default.bool,
|
|
345
314
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
346
315
|
label: _propTypes.default.string,
|
|
347
|
-
labelFontSize: _propTypes.default.number,
|
|
348
316
|
labelStyle: _propTypes.default.object,
|
|
349
317
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
350
318
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -355,7 +323,6 @@ process.env.NODE_ENV !== "production" ? ScatterChartPro.propTypes = {
|
|
|
355
323
|
slots: _propTypes.default.object,
|
|
356
324
|
stroke: _propTypes.default.string,
|
|
357
325
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
358
|
-
tickFontSize: _propTypes.default.number,
|
|
359
326
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
360
327
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
361
328
|
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
@@ -6,12 +6,10 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
|
-
exports.ChartDataProviderPro =
|
|
9
|
+
exports.ChartDataProviderPro = ChartDataProviderPro;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
12
|
var _internals = require("@mui/x-charts/internals");
|
|
14
|
-
var _ChartsSurface = require("@mui/x-charts/ChartsSurface");
|
|
15
13
|
var _context = require("@mui/x-charts/context");
|
|
16
14
|
var _useLicenseVerifier = require("@mui/x-license/useLicenseVerifier");
|
|
17
15
|
var _releaseInfo = require("../../internals/utils/releaseInfo");
|
|
@@ -20,285 +18,39 @@ var _ZoomProvider = require("../ZoomProvider");
|
|
|
20
18
|
var _useChartDataProviderProProps = require("./useChartDataProviderProProps");
|
|
21
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
20
|
const releaseInfo = (0, _releaseInfo.getReleaseInfo)();
|
|
23
|
-
|
|
21
|
+
function ChartDataProviderPro(props) {
|
|
24
22
|
const {
|
|
25
23
|
zoomProviderProps,
|
|
26
|
-
|
|
24
|
+
drawingAreaProviderProps,
|
|
27
25
|
seriesProviderProps,
|
|
28
26
|
zAxisContextProps,
|
|
29
27
|
highlightedProviderProps,
|
|
30
28
|
cartesianProviderProps,
|
|
31
|
-
|
|
29
|
+
sizeProviderProps,
|
|
32
30
|
pluginProviderProps,
|
|
33
31
|
animationProviderProps,
|
|
34
32
|
children
|
|
35
|
-
} = (0, _useChartDataProviderProProps.useChartContainerProProps)(props
|
|
33
|
+
} = (0, _useChartDataProviderProProps.useChartContainerProProps)(props);
|
|
36
34
|
(0, _useLicenseVerifier.useLicenseVerifier)('x-charts-pro', releaseInfo);
|
|
37
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.
|
|
38
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.
|
|
39
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.
|
|
40
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
41
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.
|
|
42
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
43
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
44
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
45
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.
|
|
46
|
-
children: /*#__PURE__*/(0, _jsxRuntime.
|
|
47
|
-
children:
|
|
35
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.ChartProvider, {
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.SizeProvider, (0, _extends2.default)({}, sizeProviderProps, {
|
|
37
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.DrawingAreaProvider, (0, _extends2.default)({}, drawingAreaProviderProps, {
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.AnimationProvider, (0, _extends2.default)({}, animationProviderProps, {
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.PluginProvider, (0, _extends2.default)({}, pluginProviderProps, {
|
|
40
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ZoomProvider.ZoomProvider, (0, _extends2.default)({}, zoomProviderProps, {
|
|
41
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.SeriesProvider, (0, _extends2.default)({}, seriesProviderProps, {
|
|
42
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CartesianProviderPro.CartesianProviderPro, (0, _extends2.default)({}, cartesianProviderProps, {
|
|
43
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.ZAxisContextProvider, (0, _extends2.default)({}, zAxisContextProps, {
|
|
44
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_context.HighlightedProvider, (0, _extends2.default)({}, highlightedProviderProps, {
|
|
45
|
+
children: children
|
|
48
46
|
}))
|
|
49
47
|
}))
|
|
50
|
-
})
|
|
48
|
+
}))
|
|
51
49
|
}))
|
|
52
50
|
}))
|
|
53
51
|
}))
|
|
54
52
|
}))
|
|
55
53
|
}))
|
|
56
54
|
}))
|
|
57
|
-
})
|
|
58
|
-
}
|
|
59
|
-
process.env.NODE_ENV !== "production" ? ChartDataProviderPro.propTypes = {
|
|
60
|
-
// ----------------------------- Warning --------------------------------
|
|
61
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
62
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
63
|
-
// ----------------------------------------------------------------------
|
|
64
|
-
children: _propTypes.default.node,
|
|
65
|
-
className: _propTypes.default.string,
|
|
66
|
-
/**
|
|
67
|
-
* Color palette used to colorize multiple series.
|
|
68
|
-
* @default blueberryTwilightPalette
|
|
69
|
-
*/
|
|
70
|
-
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
71
|
-
/**
|
|
72
|
-
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
73
|
-
*/
|
|
74
|
-
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
75
|
-
desc: _propTypes.default.string,
|
|
76
|
-
/**
|
|
77
|
-
* If `true`, the charts will not listen to the mouse move event.
|
|
78
|
-
* It might break interactive features, but will improve performance.
|
|
79
|
-
* @default false
|
|
80
|
-
*/
|
|
81
|
-
disableAxisListener: _propTypes.default.bool,
|
|
82
|
-
/**
|
|
83
|
-
* The height of the chart in px.
|
|
84
|
-
*/
|
|
85
|
-
height: _propTypes.default.number.isRequired,
|
|
86
|
-
/**
|
|
87
|
-
* The item currently highlighted. Turns highlighting into a controlled prop.
|
|
88
|
-
*/
|
|
89
|
-
highlightedItem: _propTypes.default.shape({
|
|
90
|
-
dataIndex: _propTypes.default.number,
|
|
91
|
-
seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
92
|
-
}),
|
|
93
|
-
/**
|
|
94
|
-
* The margin between the SVG and the drawing area.
|
|
95
|
-
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
96
|
-
* Accepts an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
97
|
-
* @default object Depends on the charts type.
|
|
98
|
-
*/
|
|
99
|
-
margin: _propTypes.default.shape({
|
|
100
|
-
bottom: _propTypes.default.number,
|
|
101
|
-
left: _propTypes.default.number,
|
|
102
|
-
right: _propTypes.default.number,
|
|
103
|
-
top: _propTypes.default.number
|
|
104
|
-
}),
|
|
105
|
-
/**
|
|
106
|
-
* The callback fired when the highlighted item changes.
|
|
107
|
-
*
|
|
108
|
-
* @param {HighlightItemData | null} highlightedItem The newly highlighted item.
|
|
109
|
-
*/
|
|
110
|
-
onHighlightChange: _propTypes.default.func,
|
|
111
|
-
/**
|
|
112
|
-
* Callback fired when the zoom has changed.
|
|
113
|
-
*
|
|
114
|
-
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
115
|
-
*/
|
|
116
|
-
onZoomChange: _propTypes.default.func,
|
|
117
|
-
/**
|
|
118
|
-
* An array of plugins defining how to preprocess data.
|
|
119
|
-
* If not provided, the container supports line, bar, scatter and pie charts.
|
|
120
|
-
*/
|
|
121
|
-
plugins: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
122
|
-
/**
|
|
123
|
-
* The array of series to display.
|
|
124
|
-
* Each type of series has its own specificity.
|
|
125
|
-
* Please refer to the appropriate docs page to learn more about it.
|
|
126
|
-
*/
|
|
127
|
-
series: _propTypes.default.arrayOf(_propTypes.default.object).isRequired,
|
|
128
|
-
/**
|
|
129
|
-
* If `true`, animations are skipped.
|
|
130
|
-
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
131
|
-
*/
|
|
132
|
-
skipAnimation: _propTypes.default.bool,
|
|
133
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
134
|
-
title: _propTypes.default.string,
|
|
135
|
-
viewBox: _propTypes.default.shape({
|
|
136
|
-
height: _propTypes.default.number,
|
|
137
|
-
width: _propTypes.default.number,
|
|
138
|
-
x: _propTypes.default.number,
|
|
139
|
-
y: _propTypes.default.number
|
|
140
|
-
}),
|
|
141
|
-
/**
|
|
142
|
-
* The width of the chart in px.
|
|
143
|
-
*/
|
|
144
|
-
width: _propTypes.default.number.isRequired,
|
|
145
|
-
/**
|
|
146
|
-
* The configuration of the x-axes.
|
|
147
|
-
* If not provided, a default axis config is used.
|
|
148
|
-
* An array of [[AxisConfig]] objects.
|
|
149
|
-
*/
|
|
150
|
-
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
151
|
-
classes: _propTypes.default.object,
|
|
152
|
-
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
153
|
-
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
154
|
-
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
155
|
-
unknownColor: _propTypes.default.string,
|
|
156
|
-
values: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number, _propTypes.default.string]).isRequired)
|
|
157
|
-
}), _propTypes.default.shape({
|
|
158
|
-
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
159
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
160
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
161
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
162
|
-
}), _propTypes.default.shape({
|
|
163
|
-
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
164
|
-
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
165
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
166
|
-
})]),
|
|
167
|
-
data: _propTypes.default.array,
|
|
168
|
-
dataKey: _propTypes.default.string,
|
|
169
|
-
disableLine: _propTypes.default.bool,
|
|
170
|
-
disableTicks: _propTypes.default.bool,
|
|
171
|
-
domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
|
|
172
|
-
fill: _propTypes.default.string,
|
|
173
|
-
hideTooltip: _propTypes.default.bool,
|
|
174
|
-
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
175
|
-
label: _propTypes.default.string,
|
|
176
|
-
labelFontSize: _propTypes.default.number,
|
|
177
|
-
labelStyle: _propTypes.default.object,
|
|
178
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
179
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
180
|
-
position: _propTypes.default.oneOf(['bottom', 'top']),
|
|
181
|
-
reverse: _propTypes.default.bool,
|
|
182
|
-
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
183
|
-
slotProps: _propTypes.default.object,
|
|
184
|
-
slots: _propTypes.default.object,
|
|
185
|
-
stroke: _propTypes.default.string,
|
|
186
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
187
|
-
tickFontSize: _propTypes.default.number,
|
|
188
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
189
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
190
|
-
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
191
|
-
tickLabelStyle: _propTypes.default.object,
|
|
192
|
-
tickMaxStep: _propTypes.default.number,
|
|
193
|
-
tickMinStep: _propTypes.default.number,
|
|
194
|
-
tickNumber: _propTypes.default.number,
|
|
195
|
-
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
196
|
-
tickSize: _propTypes.default.number,
|
|
197
|
-
valueFormatter: _propTypes.default.func,
|
|
198
|
-
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
199
|
-
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
200
|
-
maxEnd: _propTypes.default.number,
|
|
201
|
-
maxSpan: _propTypes.default.number,
|
|
202
|
-
minSpan: _propTypes.default.number,
|
|
203
|
-
minStart: _propTypes.default.number,
|
|
204
|
-
panning: _propTypes.default.bool,
|
|
205
|
-
step: _propTypes.default.number
|
|
206
|
-
}), _propTypes.default.bool])
|
|
207
|
-
})),
|
|
208
|
-
/**
|
|
209
|
-
* The configuration of the y-axes.
|
|
210
|
-
* If not provided, a default axis config is used.
|
|
211
|
-
* An array of [[AxisConfig]] objects.
|
|
212
|
-
*/
|
|
213
|
-
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
214
|
-
classes: _propTypes.default.object,
|
|
215
|
-
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
216
|
-
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
217
|
-
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
218
|
-
unknownColor: _propTypes.default.string,
|
|
219
|
-
values: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number, _propTypes.default.string]).isRequired)
|
|
220
|
-
}), _propTypes.default.shape({
|
|
221
|
-
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
222
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
223
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
224
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
225
|
-
}), _propTypes.default.shape({
|
|
226
|
-
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
227
|
-
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
228
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
229
|
-
})]),
|
|
230
|
-
data: _propTypes.default.array,
|
|
231
|
-
dataKey: _propTypes.default.string,
|
|
232
|
-
disableLine: _propTypes.default.bool,
|
|
233
|
-
disableTicks: _propTypes.default.bool,
|
|
234
|
-
domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
|
|
235
|
-
fill: _propTypes.default.string,
|
|
236
|
-
hideTooltip: _propTypes.default.bool,
|
|
237
|
-
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
238
|
-
label: _propTypes.default.string,
|
|
239
|
-
labelFontSize: _propTypes.default.number,
|
|
240
|
-
labelStyle: _propTypes.default.object,
|
|
241
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
242
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
243
|
-
position: _propTypes.default.oneOf(['left', 'right']),
|
|
244
|
-
reverse: _propTypes.default.bool,
|
|
245
|
-
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
246
|
-
slotProps: _propTypes.default.object,
|
|
247
|
-
slots: _propTypes.default.object,
|
|
248
|
-
stroke: _propTypes.default.string,
|
|
249
|
-
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
250
|
-
tickFontSize: _propTypes.default.number,
|
|
251
|
-
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
252
|
-
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
253
|
-
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
254
|
-
tickLabelStyle: _propTypes.default.object,
|
|
255
|
-
tickMaxStep: _propTypes.default.number,
|
|
256
|
-
tickMinStep: _propTypes.default.number,
|
|
257
|
-
tickNumber: _propTypes.default.number,
|
|
258
|
-
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
259
|
-
tickSize: _propTypes.default.number,
|
|
260
|
-
valueFormatter: _propTypes.default.func,
|
|
261
|
-
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
262
|
-
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
263
|
-
maxEnd: _propTypes.default.number,
|
|
264
|
-
maxSpan: _propTypes.default.number,
|
|
265
|
-
minSpan: _propTypes.default.number,
|
|
266
|
-
minStart: _propTypes.default.number,
|
|
267
|
-
panning: _propTypes.default.bool,
|
|
268
|
-
step: _propTypes.default.number
|
|
269
|
-
}), _propTypes.default.bool])
|
|
270
|
-
})),
|
|
271
|
-
/**
|
|
272
|
-
* The configuration of the z-axes.
|
|
273
|
-
*/
|
|
274
|
-
zAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
275
|
-
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
276
|
-
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
277
|
-
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
278
|
-
unknownColor: _propTypes.default.string,
|
|
279
|
-
values: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number, _propTypes.default.string]).isRequired)
|
|
280
|
-
}), _propTypes.default.shape({
|
|
281
|
-
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
282
|
-
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
283
|
-
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
284
|
-
type: _propTypes.default.oneOf(['continuous']).isRequired
|
|
285
|
-
}), _propTypes.default.shape({
|
|
286
|
-
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
287
|
-
thresholds: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]).isRequired).isRequired,
|
|
288
|
-
type: _propTypes.default.oneOf(['piecewise']).isRequired
|
|
289
|
-
})]),
|
|
290
|
-
data: _propTypes.default.array,
|
|
291
|
-
dataKey: _propTypes.default.string,
|
|
292
|
-
id: _propTypes.default.string,
|
|
293
|
-
max: _propTypes.default.number,
|
|
294
|
-
min: _propTypes.default.number
|
|
295
|
-
})),
|
|
296
|
-
/**
|
|
297
|
-
* The list of zoom data related to each axis.
|
|
298
|
-
*/
|
|
299
|
-
zoom: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
300
|
-
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
301
|
-
end: _propTypes.default.number.isRequired,
|
|
302
|
-
start: _propTypes.default.number.isRequired
|
|
303
|
-
}))
|
|
304
|
-
} : void 0;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
@@ -9,7 +9,7 @@ exports.useChartContainerProProps = void 0;
|
|
|
9
9
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
10
10
|
var _internals = require("@mui/x-charts/internals");
|
|
11
11
|
const _excluded = ["zoom", "onZoomChange"];
|
|
12
|
-
const useChartContainerProProps =
|
|
12
|
+
const useChartContainerProProps = props => {
|
|
13
13
|
const {
|
|
14
14
|
zoom,
|
|
15
15
|
onZoomChange
|
|
@@ -17,17 +17,17 @@ const useChartContainerProProps = (props, ref) => {
|
|
|
17
17
|
baseProps = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
18
18
|
const {
|
|
19
19
|
children,
|
|
20
|
-
|
|
20
|
+
drawingAreaProviderProps,
|
|
21
21
|
seriesProviderProps,
|
|
22
22
|
cartesianProviderProps,
|
|
23
23
|
zAxisContextProps,
|
|
24
24
|
highlightedProviderProps,
|
|
25
|
-
|
|
25
|
+
sizeProviderProps,
|
|
26
26
|
pluginProviderProps,
|
|
27
27
|
animationProviderProps,
|
|
28
28
|
xAxis,
|
|
29
29
|
yAxis
|
|
30
|
-
} = (0, _internals.useChartDataProviderProps)(baseProps
|
|
30
|
+
} = (0, _internals.useChartDataProviderProps)(baseProps);
|
|
31
31
|
const zoomProviderProps = {
|
|
32
32
|
zoom,
|
|
33
33
|
onZoomChange,
|
|
@@ -37,13 +37,13 @@ const useChartContainerProProps = (props, ref) => {
|
|
|
37
37
|
return {
|
|
38
38
|
zoomProviderProps,
|
|
39
39
|
children,
|
|
40
|
-
|
|
40
|
+
drawingAreaProviderProps,
|
|
41
41
|
pluginProviderProps,
|
|
42
42
|
seriesProviderProps,
|
|
43
43
|
cartesianProviderProps,
|
|
44
44
|
zAxisContextProps,
|
|
45
45
|
highlightedProviderProps,
|
|
46
|
-
|
|
46
|
+
sizeProviderProps,
|
|
47
47
|
animationProviderProps
|
|
48
48
|
};
|
|
49
49
|
};
|
package/node/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.getReleaseInfo = void 0;
|
|
7
|
-
var
|
|
8
|
+
var _ponyfillGlobal = _interopRequireDefault(require("@mui/utils/ponyfillGlobal"));
|
|
8
9
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
10
|
+
const releaseInfo = "MTczMjgzNDgwMDAwMA==";
|
|
10
11
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
12
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
13
|
// eslint-disable-next-line no-useless-concat
|
|
13
14
|
if (releaseInfo === '__RELEASE' + '_INFO__') {
|
|
14
15
|
// eslint-disable-next-line no-underscore-dangle
|
|
15
|
-
return
|
|
16
|
+
return _ponyfillGlobal.default.__MUI_RELEASE_INFO__;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
19
|
return releaseInfo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts-pro",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.2",
|
|
4
4
|
"description": "The Pro plan edition of the Charts components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -35,18 +35,18 @@
|
|
|
35
35
|
"@react-spring/web": "^9.7.5",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"prop-types": "^15.8.1",
|
|
38
|
-
"@mui/x-charts": "8.0.0-alpha.
|
|
39
|
-
"@mui/x-
|
|
40
|
-
"@mui/x-charts-vendor": "8.0.0-alpha.
|
|
41
|
-
"@mui/x-
|
|
38
|
+
"@mui/x-charts": "8.0.0-alpha.2",
|
|
39
|
+
"@mui/x-license": "8.0.0-alpha.2",
|
|
40
|
+
"@mui/x-charts-vendor": "8.0.0-alpha.1",
|
|
41
|
+
"@mui/x-internals": "8.0.0-alpha.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@emotion/react": "^11.9.0",
|
|
45
45
|
"@emotion/styled": "^11.8.1",
|
|
46
46
|
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
47
47
|
"@mui/system": "^5.15.14 || ^6.0.0",
|
|
48
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
49
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
48
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
49
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@emotion/react": {
|