@mui/x-charts 9.10.1 → 9.11.1
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/BarChart/BarChart.js +4 -2
- package/BarChart/BarChart.mjs +4 -2
- package/BarChart/BarPlot.d.mts +3 -3
- package/BarChart/BarPlot.d.ts +3 -3
- package/BarChart/BarPlot.js +1 -1
- package/BarChart/BarPlot.mjs +1 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -2
- package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -2
- package/BarChart/IndividualBarPlot.d.mts +2 -2
- package/BarChart/IndividualBarPlot.d.ts +2 -2
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +4 -4
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +4 -4
- package/BarChart/useRegisterItemClickHandlers.d.mts +2 -1
- package/BarChart/useRegisterItemClickHandlers.d.ts +2 -1
- package/BarChart/useRegisterItemClickHandlers.js +8 -0
- package/BarChart/useRegisterItemClickHandlers.mjs +8 -1
- package/CHANGELOG.md +157 -0
- package/ChartsContainer/ChartsContainer.js +4 -2
- package/ChartsContainer/ChartsContainer.mjs +4 -2
- package/ChartsDataProvider/ChartsDataProvider.js +3 -1
- package/ChartsDataProvider/ChartsDataProvider.mjs +3 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.js +3 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +101 -101
- package/ChartsXAxis/useAxisTicksProps.d.ts +101 -101
- package/ChartsYAxis/useAxisTicksProps.d.mts +101 -101
- package/ChartsYAxis/useAxisTicksProps.d.ts +101 -101
- package/LineChart/AreaPlot.d.mts +3 -2
- package/LineChart/AreaPlot.d.ts +3 -2
- package/LineChart/AreaPlot.js +8 -2
- package/LineChart/AreaPlot.mjs +9 -3
- package/LineChart/LineChart.js +2 -1
- package/LineChart/LineChart.mjs +2 -1
- package/LineChart/LinePlot.d.mts +3 -2
- package/LineChart/LinePlot.d.ts +3 -2
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/LinePlot.mjs +3 -3
- package/LineChart/MarkPlot.d.mts +5 -4
- package/LineChart/MarkPlot.d.ts +5 -4
- package/LineChart/MarkPlot.js +17 -8
- package/LineChart/MarkPlot.mjs +17 -8
- package/LineChart/useLineItemClickHandler.d.mts +25 -1
- package/LineChart/useLineItemClickHandler.d.ts +25 -1
- package/LineChart/useLineItemClickHandler.js +48 -1
- package/LineChart/useLineItemClickHandler.mjs +47 -1
- package/PieChart/PieArcPlot.d.mts +3 -2
- package/PieChart/PieArcPlot.d.ts +3 -2
- package/PieChart/PieArcPlot.js +16 -1
- package/PieChart/PieArcPlot.mjs +16 -1
- package/PieChart/PieChart.js +3 -1
- package/PieChart/PieChart.mjs +3 -1
- package/PieChart/PiePlot.js +1 -1
- package/PieChart/PiePlot.mjs +1 -1
- package/README.md +1 -11
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +1 -1
- package/RadarChart/RadarChart.js +3 -1
- package/RadarChart/RadarChart.mjs +3 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +3 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +3 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +4 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +4 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +5 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +5 -4
- package/RadarChart/RadarSeriesPlot/useRegisterRadarItemActivation.d.mts +15 -0
- package/RadarChart/RadarSeriesPlot/useRegisterRadarItemActivation.d.ts +15 -0
- package/RadarChart/RadarSeriesPlot/useRegisterRadarItemActivation.js +32 -0
- package/RadarChart/RadarSeriesPlot/useRegisterRadarItemActivation.mjs +26 -0
- package/RadarChart/useRadarChartProps.js +5 -1
- package/RadarChart/useRadarChartProps.mjs +5 -1
- package/ScatterChart/Scatter.d.mts +3 -2
- package/ScatterChart/Scatter.d.ts +3 -2
- package/ScatterChart/Scatter.js +10 -1
- package/ScatterChart/Scatter.mjs +10 -1
- package/ScatterChart/ScatterChart.js +1 -0
- package/ScatterChart/ScatterChart.mjs +1 -0
- package/ScatterChart/async/ScatterAsync.js +9 -0
- package/ScatterChart/async/ScatterAsync.mjs +9 -0
- package/SparkLineChart/SparkLineChart.js +2 -1
- package/SparkLineChart/SparkLineChart.mjs +2 -1
- package/Toolbar/ToolbarButton.js +1 -1
- package/Toolbar/ToolbarButton.mjs +1 -1
- package/hooks/useFocusedItem.d.mts +1 -1
- package/hooks/useFocusedItem.d.ts +1 -1
- package/hooks/useItemHighlightStateGetter.d.mts +1 -1
- package/hooks/useItemHighlightStateGetter.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/index.d.mts +1 -0
- package/internals/index.d.ts +1 -0
- package/internals/index.js +8 -0
- package/internals/index.mjs +1 -0
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +8 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +8 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +11 -3
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.mjs +11 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +1 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemWithData.types.d.mts +12 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemWithData.types.d.ts +12 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemWithData.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemWithData.types.mjs +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +6 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +6 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.d.mts +21 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.d.ts +21 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.js +46 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.mjs +40 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +13 -31
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +13 -31
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +11 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +11 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +19 -0
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +19 -0
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +5 -3
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +5 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +15 -0
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.mjs +14 -0
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +5 -2
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +5 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/index.d.mts +2 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/index.d.ts +2 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/index.js +10 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/index.mjs +2 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/itemActivation.d.mts +13 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/itemActivation.d.ts +13 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/itemActivation.js +39 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/itemActivation.mjs +32 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +47 -7
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +47 -7
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +3 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +2 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +39 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +39 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/getPolarAxisClickPayload.d.mts +27 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getPolarAxisClickPayload.d.ts +27 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getPolarAxisClickPayload.js +36 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getPolarAxisClickPayload.mjs +30 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +19 -20
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +19 -20
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +4 -4
- package/internals/seriesSelectorOfType.d.ts +4 -4
- package/internals/useRegisterItemActivation.d.mts +23 -0
- package/internals/useRegisterItemActivation.d.ts +23 -0
- package/internals/useRegisterItemActivation.js +53 -0
- package/internals/useRegisterItemActivation.mjs +46 -0
- package/models/axis.d.mts +1 -1
- package/models/axis.d.ts +1 -1
- package/models/events.d.mts +11 -0
- package/models/events.d.ts +11 -0
- package/models/events.js +5 -0
- package/models/events.mjs +1 -0
- package/models/index.d.mts +1 -0
- package/models/index.d.ts +1 -0
- package/moduleAugmentation/barChartBatchRendererOnItemClick.d.mts +3 -4
- package/moduleAugmentation/barChartBatchRendererOnItemClick.d.ts +3 -4
- package/moduleAugmentation/keyboardActivation.d.mts +7 -0
- package/moduleAugmentation/keyboardActivation.d.ts +7 -0
- package/moduleAugmentation/keyboardActivation.js +8 -0
- package/moduleAugmentation/keyboardActivation.mjs +2 -0
- package/package.json +18 -4
package/BarChart/BarChart.js
CHANGED
|
@@ -137,7 +137,9 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes /* remove-proptypes *
|
|
|
137
137
|
/**
|
|
138
138
|
* Options to enable features planned for the next major.
|
|
139
139
|
*/
|
|
140
|
-
experimentalFeatures: _propTypes.default.
|
|
140
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
141
|
+
keyboardActivation: _propTypes.default.bool
|
|
142
|
+
}),
|
|
141
143
|
/**
|
|
142
144
|
* Option to display a cartesian grid in the background.
|
|
143
145
|
*/
|
|
@@ -291,7 +293,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes /* remove-proptypes *
|
|
|
291
293
|
onHighlightedAxisChange: _propTypes.default.func,
|
|
292
294
|
/**
|
|
293
295
|
* Callback fired when a bar item is clicked.
|
|
294
|
-
* @param {
|
|
296
|
+
* @param {ChartsActivationEvent | ChartsActivationEvent<SVGElement>} event The event source of the callback.
|
|
295
297
|
* It is a native MouseEvent for `svg-batch` renderer and a React MouseEvent for `svg-single` renderer.
|
|
296
298
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
297
299
|
*/
|
package/BarChart/BarChart.mjs
CHANGED
|
@@ -130,7 +130,9 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes /* remove-proptypes *
|
|
|
130
130
|
/**
|
|
131
131
|
* Options to enable features planned for the next major.
|
|
132
132
|
*/
|
|
133
|
-
experimentalFeatures: PropTypes.
|
|
133
|
+
experimentalFeatures: PropTypes.shape({
|
|
134
|
+
keyboardActivation: PropTypes.bool
|
|
135
|
+
}),
|
|
134
136
|
/**
|
|
135
137
|
* Option to display a cartesian grid in the background.
|
|
136
138
|
*/
|
|
@@ -284,7 +286,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes /* remove-proptypes *
|
|
|
284
286
|
onHighlightedAxisChange: PropTypes.func,
|
|
285
287
|
/**
|
|
286
288
|
* Callback fired when a bar item is clicked.
|
|
287
|
-
* @param {
|
|
289
|
+
* @param {ChartsActivationEvent | ChartsActivationEvent<SVGElement>} event The event source of the callback.
|
|
288
290
|
* It is a native MouseEvent for `svg-batch` renderer and a React MouseEvent for `svg-single` renderer.
|
|
289
291
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
290
292
|
*/
|
package/BarChart/BarPlot.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BarElementSlotProps, BarElementSlots } from "./BarElement.mjs";
|
|
3
|
-
import type { BarItemIdentifier } from "../models/index.mjs";
|
|
3
|
+
import type { BarItemIdentifier, ChartsActivationEvent } from "../models/index.mjs";
|
|
4
4
|
import type { BarLabelSlotProps, BarLabelSlots } from "./BarLabel/BarLabelItem.mjs";
|
|
5
5
|
import type { RendererType } from "../ScatterChart/index.mjs";
|
|
6
6
|
export interface BarPlotSlots extends BarElementSlots, BarLabelSlots {}
|
|
@@ -17,10 +17,10 @@ export interface BarPlotProps {
|
|
|
17
17
|
skipAnimation?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Callback fired when a bar item is clicked.
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {ChartsActivationEvent} event The event source of the callback.
|
|
21
21
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
22
22
|
*/
|
|
23
|
-
onItemClick?(event:
|
|
23
|
+
onItemClick?(event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier): void;
|
|
24
24
|
/**
|
|
25
25
|
* Defines the border radius of the bar element.
|
|
26
26
|
*/
|
package/BarChart/BarPlot.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BarElementSlotProps, BarElementSlots } from "./BarElement.js";
|
|
3
|
-
import type { BarItemIdentifier } from "../models/index.js";
|
|
3
|
+
import type { BarItemIdentifier, ChartsActivationEvent } from "../models/index.js";
|
|
4
4
|
import type { BarLabelSlotProps, BarLabelSlots } from "./BarLabel/BarLabelItem.js";
|
|
5
5
|
import type { RendererType } from "../ScatterChart/index.js";
|
|
6
6
|
export interface BarPlotSlots extends BarElementSlots, BarLabelSlots {}
|
|
@@ -17,10 +17,10 @@ export interface BarPlotProps {
|
|
|
17
17
|
skipAnimation?: boolean;
|
|
18
18
|
/**
|
|
19
19
|
* Callback fired when a bar item is clicked.
|
|
20
|
-
* @param {
|
|
20
|
+
* @param {ChartsActivationEvent} event The event source of the callback.
|
|
21
21
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
22
22
|
*/
|
|
23
|
-
onItemClick?(event:
|
|
23
|
+
onItemClick?(event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier): void;
|
|
24
24
|
/**
|
|
25
25
|
* Defines the border radius of the bar element.
|
|
26
26
|
*/
|
package/BarChart/BarPlot.js
CHANGED
|
@@ -102,7 +102,7 @@ process.env.NODE_ENV !== "production" ? BarPlot.propTypes /* remove-proptypes */
|
|
|
102
102
|
className: _propTypes.default.string,
|
|
103
103
|
/**
|
|
104
104
|
* Callback fired when a bar item is clicked.
|
|
105
|
-
* @param {
|
|
105
|
+
* @param {ChartsActivationEvent | ChartsActivationEvent<SVGElement>} event The event source of the callback.
|
|
106
106
|
* It is a native MouseEvent for `svg-batch` renderer and a React MouseEvent for `svg-single` renderer.
|
|
107
107
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
108
108
|
*/
|
package/BarChart/BarPlot.mjs
CHANGED
|
@@ -95,7 +95,7 @@ process.env.NODE_ENV !== "production" ? BarPlot.propTypes /* remove-proptypes */
|
|
|
95
95
|
className: PropTypes.string,
|
|
96
96
|
/**
|
|
97
97
|
* Callback fired when a bar item is clicked.
|
|
98
|
-
* @param {
|
|
98
|
+
* @param {ChartsActivationEvent | ChartsActivationEvent<SVGElement>} event The event source of the callback.
|
|
99
99
|
* It is a native MouseEvent for `svg-batch` renderer and a React MouseEvent for `svg-single` renderer.
|
|
100
100
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
101
101
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BarItemIdentifier } from "../../models/index.mjs";
|
|
2
|
+
import type { BarItemIdentifier, ChartsActivationEvent } from "../../models/index.mjs";
|
|
3
3
|
import type { IndividualBarPlotProps } from "../IndividualBarPlot.mjs";
|
|
4
4
|
interface BatchBarPlotProps extends Omit<IndividualBarPlotProps, 'onItemClick'> {
|
|
5
|
-
onItemClick?: (event:
|
|
5
|
+
onItemClick?: (event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function BatchBarPlot({
|
|
8
8
|
completedData,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BarItemIdentifier } from "../../models/index.js";
|
|
2
|
+
import type { BarItemIdentifier, ChartsActivationEvent } from "../../models/index.js";
|
|
3
3
|
import type { IndividualBarPlotProps } from "../IndividualBarPlot.js";
|
|
4
4
|
interface BatchBarPlotProps extends Omit<IndividualBarPlotProps, 'onItemClick'> {
|
|
5
|
-
onItemClick?: (event:
|
|
5
|
+
onItemClick?: (event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare function BatchBarPlot({
|
|
8
8
|
completedData,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BarPlotSlotProps, BarPlotSlots } from "./BarPlot.mjs";
|
|
3
|
-
import type { BarItemIdentifier } from "../models/index.mjs";
|
|
3
|
+
import type { BarItemIdentifier, ChartsActivationEvent } from "../models/index.mjs";
|
|
4
4
|
import type { MaskData, ProcessedBarSeriesData } from "./types.mjs";
|
|
5
5
|
export interface IndividualBarPlotProps {
|
|
6
6
|
completedData: ProcessedBarSeriesData[];
|
|
7
7
|
masksData: MaskData[];
|
|
8
8
|
borderRadius?: number;
|
|
9
9
|
skipAnimation?: boolean;
|
|
10
|
-
onItemClick?: (event:
|
|
10
|
+
onItemClick?: (event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier) => void;
|
|
11
11
|
slotProps?: BarPlotSlotProps;
|
|
12
12
|
slots?: BarPlotSlots;
|
|
13
13
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { BarPlotSlotProps, BarPlotSlots } from "./BarPlot.js";
|
|
3
|
-
import type { BarItemIdentifier } from "../models/index.js";
|
|
3
|
+
import type { BarItemIdentifier, ChartsActivationEvent } from "../models/index.js";
|
|
4
4
|
import type { MaskData, ProcessedBarSeriesData } from "./types.js";
|
|
5
5
|
export interface IndividualBarPlotProps {
|
|
6
6
|
completedData: ProcessedBarSeriesData[];
|
|
7
7
|
masksData: MaskData[];
|
|
8
8
|
borderRadius?: number;
|
|
9
9
|
skipAnimation?: boolean;
|
|
10
|
-
onItemClick?: (event:
|
|
10
|
+
onItemClick?: (event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier) => void;
|
|
11
11
|
slotProps?: BarPlotSlotProps;
|
|
12
12
|
slots?: BarPlotSlots;
|
|
13
13
|
}
|
|
@@ -2,16 +2,16 @@ import type { AllSeriesType } from "../../../models/seriesType/index.mjs";
|
|
|
2
2
|
export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'bar'>, seriesIndex: number, colors: readonly string[]): {
|
|
3
3
|
id: string;
|
|
4
4
|
color: string;
|
|
5
|
-
data?: ReadonlyArray<import("
|
|
5
|
+
data?: ReadonlyArray<import("@mui/x-charts/models").BarValueType | null>;
|
|
6
6
|
dataKey?: string;
|
|
7
|
-
valueGetter?: (item: import("../../../internals/index.mjs").DatasetElementType<unknown>) => import("
|
|
7
|
+
valueGetter?: (item: import("../../../internals/index.mjs").DatasetElementType<unknown>) => import("@mui/x-charts/models").BarValueType | null;
|
|
8
8
|
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
9
9
|
layout?: 'horizontal' | 'vertical';
|
|
10
10
|
minBarSize?: number;
|
|
11
11
|
barLabel?: 'value' | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined);
|
|
12
12
|
type: 'bar';
|
|
13
13
|
barLabelPlacement?: 'center' | 'outside';
|
|
14
|
-
stackOffset?: import("
|
|
14
|
+
stackOffset?: import("@mui/x-charts/models").StackOffsetType;
|
|
15
15
|
colorGetter?: ((data: import("../../../internals/index.mjs").ColorCallbackValue<number | null>) => string) | undefined;
|
|
16
16
|
valueFormatter?: import("../../../internals/index.mjs").SeriesValueFormatter<number | null> | undefined;
|
|
17
17
|
highlightScope?: import("../../../internals/index.mjs").CommonHighlightScope | undefined;
|
|
@@ -19,5 +19,5 @@ export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'ba
|
|
|
19
19
|
xAxisId?: import("../../../internals/index.mjs").AxisId;
|
|
20
20
|
yAxisId?: import("../../../internals/index.mjs").AxisId;
|
|
21
21
|
stack?: string;
|
|
22
|
-
stackOrder?: import("
|
|
22
|
+
stackOrder?: import("@mui/x-charts/models").StackOrderType;
|
|
23
23
|
};
|
|
@@ -2,16 +2,16 @@ import type { AllSeriesType } from "../../../models/seriesType/index.js";
|
|
|
2
2
|
export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'bar'>, seriesIndex: number, colors: readonly string[]): {
|
|
3
3
|
id: string;
|
|
4
4
|
color: string;
|
|
5
|
-
data?: ReadonlyArray<import("
|
|
5
|
+
data?: ReadonlyArray<import("@mui/x-charts/models").BarValueType | null>;
|
|
6
6
|
dataKey?: string;
|
|
7
|
-
valueGetter?: (item: import("../../../internals/index.js").DatasetElementType<unknown>) => import("
|
|
7
|
+
valueGetter?: (item: import("../../../internals/index.js").DatasetElementType<unknown>) => import("@mui/x-charts/models").BarValueType | null;
|
|
8
8
|
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
9
9
|
layout?: 'horizontal' | 'vertical';
|
|
10
10
|
minBarSize?: number;
|
|
11
11
|
barLabel?: 'value' | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined);
|
|
12
12
|
type: 'bar';
|
|
13
13
|
barLabelPlacement?: 'center' | 'outside';
|
|
14
|
-
stackOffset?: import("
|
|
14
|
+
stackOffset?: import("@mui/x-charts/models").StackOffsetType;
|
|
15
15
|
colorGetter?: ((data: import("../../../internals/index.js").ColorCallbackValue<number | null>) => string) | undefined;
|
|
16
16
|
valueFormatter?: import("../../../internals/index.js").SeriesValueFormatter<number | null> | undefined;
|
|
17
17
|
highlightScope?: import("../../../internals/index.js").CommonHighlightScope | undefined;
|
|
@@ -19,5 +19,5 @@ export declare function getSeriesWithDefaultValues(seriesData: AllSeriesType<'ba
|
|
|
19
19
|
xAxisId?: import("../../../internals/index.js").AxisId;
|
|
20
20
|
yAxisId?: import("../../../internals/index.js").AxisId;
|
|
21
21
|
stack?: string;
|
|
22
|
-
stackOrder?: import("
|
|
22
|
+
stackOrder?: import("@mui/x-charts/models").StackOrderType;
|
|
23
23
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BarItemIdentifier } from "../models/seriesType/index.mjs";
|
|
2
|
+
import type { ChartsActivationEvent } from "../models/events.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* Hook that registers pointer event handlers for chart item clicking.
|
|
4
5
|
* @param onItemClick Callback for item click events.
|
|
5
6
|
*/
|
|
6
|
-
export declare function useRegisterItemClickHandlers(onItemClick: ((event:
|
|
7
|
+
export declare function useRegisterItemClickHandlers(onItemClick: ((event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier) => void) | undefined): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { BarItemIdentifier } from "../models/seriesType/index.js";
|
|
2
|
+
import type { ChartsActivationEvent } from "../models/events.js";
|
|
2
3
|
/**
|
|
3
4
|
* Hook that registers pointer event handlers for chart item clicking.
|
|
4
5
|
* @param onItemClick Callback for item click events.
|
|
5
6
|
*/
|
|
6
|
-
export declare function useRegisterItemClickHandlers(onItemClick: ((event:
|
|
7
|
+
export declare function useRegisterItemClickHandlers(onItemClick: ((event: ChartsActivationEvent, barItemIdentifier: BarItemIdentifier) => void) | undefined): void;
|
|
@@ -12,6 +12,7 @@ var _ChartsProvider = require("../context/ChartsProvider");
|
|
|
12
12
|
var _getChartPoint = require("../internals/getChartPoint");
|
|
13
13
|
var _useStore = require("../internals/store/useStore");
|
|
14
14
|
var _useChartCartesianAxisPosition = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors");
|
|
15
|
+
var _useRegisterItemActivation = require("../internals/useRegisterItemActivation");
|
|
15
16
|
/**
|
|
16
17
|
* Hook that registers pointer event handlers for chart item clicking.
|
|
17
18
|
* @param onItemClick Callback for item click events.
|
|
@@ -22,6 +23,13 @@ function useRegisterItemClickHandlers(onItemClick) {
|
|
|
22
23
|
} = (0, _ChartsProvider.useChartsContext)();
|
|
23
24
|
const chartsLayerContainerRef = (0, _useChartsLayerContainerRef.useChartsLayerContainerRef)();
|
|
24
25
|
const store = (0, _useStore.useStore)();
|
|
26
|
+
(0, _useRegisterItemActivation.useRegisterItemActivation)({
|
|
27
|
+
type: 'bar'
|
|
28
|
+
}, onItemClick && ((event, item) => onItemClick(event, {
|
|
29
|
+
type: 'bar',
|
|
30
|
+
seriesId: item.seriesId,
|
|
31
|
+
dataIndex: item.dataIndex
|
|
32
|
+
})));
|
|
25
33
|
React.useEffect(() => {
|
|
26
34
|
const element = chartsLayerContainerRef.current;
|
|
27
35
|
if (!element || !onItemClick) {
|
|
@@ -6,7 +6,7 @@ import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
|
6
6
|
import { getChartPoint } from "../internals/getChartPoint.mjs";
|
|
7
7
|
import { useStore } from "../internals/store/useStore.mjs";
|
|
8
8
|
import { selectorBarItemAtPosition } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs";
|
|
9
|
-
|
|
9
|
+
import { useRegisterItemActivation } from "../internals/useRegisterItemActivation.mjs";
|
|
10
10
|
/**
|
|
11
11
|
* Hook that registers pointer event handlers for chart item clicking.
|
|
12
12
|
* @param onItemClick Callback for item click events.
|
|
@@ -17,6 +17,13 @@ export function useRegisterItemClickHandlers(onItemClick) {
|
|
|
17
17
|
} = useChartsContext();
|
|
18
18
|
const chartsLayerContainerRef = useChartsLayerContainerRef();
|
|
19
19
|
const store = useStore();
|
|
20
|
+
useRegisterItemActivation({
|
|
21
|
+
type: 'bar'
|
|
22
|
+
}, onItemClick && ((event, item) => onItemClick(event, {
|
|
23
|
+
type: 'bar',
|
|
24
|
+
seriesId: item.seriesId,
|
|
25
|
+
dataIndex: item.dataIndex
|
|
26
|
+
})));
|
|
20
27
|
React.useEffect(() => {
|
|
21
28
|
const element = chartsLayerContainerRef.current;
|
|
22
29
|
if (!element || !onItemClick) {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,162 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.11.1
|
|
4
|
+
|
|
5
|
+
_Aug 6, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 🐛 Fix the empty `@mui/x-charts-vendor` package published in v9.11.0
|
|
10
|
+
|
|
11
|
+
The following team members contributed to this release:
|
|
12
|
+
@JCQuintas, @rita-codes
|
|
13
|
+
|
|
14
|
+
### Charts
|
|
15
|
+
|
|
16
|
+
#### `@mui/x-charts@9.11.1`
|
|
17
|
+
|
|
18
|
+
- [charts] Fix empty `@mui/x-charts-vendor` published package (#23310) @JCQuintas
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-charts-pro@9.11.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
21
|
+
|
|
22
|
+
Same changes as in `@mui/x-charts@9.11.1`.
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-charts-premium@9.11.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
25
|
+
|
|
26
|
+
Same changes as in `@mui/x-charts-pro@9.11.1`.
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-charts-vendor@9.11.1`
|
|
29
|
+
|
|
30
|
+
- [charts] Fix empty `@mui/x-charts-vendor` published package (#23310) @JCQuintas
|
|
31
|
+
|
|
32
|
+
### Scheduler
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-scheduler@9.0.0-beta.9`
|
|
35
|
+
|
|
36
|
+
- [scheduler] Show the range validation errors on the End date and End time fields (#23291) @rita-codes
|
|
37
|
+
|
|
38
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.9` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
39
|
+
|
|
40
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.9`.
|
|
41
|
+
|
|
42
|
+
## 9.11.0
|
|
43
|
+
|
|
44
|
+
_Aug 6, 2026_
|
|
45
|
+
|
|
46
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
47
|
+
|
|
48
|
+
- ✨ Add `addItems()` and `getItemSelection()` API methods to Tree View
|
|
49
|
+
|
|
50
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
51
|
+
@12joan, @Anexus5919, @kevincorizi-sbt, @mixelburg, @mustafajw07, @strazto
|
|
52
|
+
|
|
53
|
+
The following team members contributed to this release:
|
|
54
|
+
@flaviendelangle, @hasdfa, @JCQuintas, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes
|
|
55
|
+
|
|
56
|
+
### Data Grid
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-data-grid@9.11.0`
|
|
59
|
+
|
|
60
|
+
- [DataGrid] Fix `updateRows` stripping class prototypes from rows in datasource mode (#22288) @mixelburg
|
|
61
|
+
- [DataGrid] Do not re-fetch data when an `Activity` becomes visible (#22603) @12joan
|
|
62
|
+
- [DataGrid] Fix toolbar button stealing focus when a sibling's disabled state changes (#23204) @MBilalShafi
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-data-grid-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-data-grid@9.11.0`.
|
|
67
|
+
|
|
68
|
+
#### `@mui/x-data-grid-premium@9.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
69
|
+
|
|
70
|
+
Same changes as in `@mui/x-data-grid-pro@9.11.0`.
|
|
71
|
+
|
|
72
|
+
### Date and Time Pickers
|
|
73
|
+
|
|
74
|
+
#### `@mui/x-date-pickers@9.11.0`
|
|
75
|
+
|
|
76
|
+
- [pickers] Fix day shift when editing dates predating timezone standardization (#23296) @JCQuintas
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-date-pickers-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
79
|
+
|
|
80
|
+
Same changes as in `@mui/x-date-pickers@9.11.0`, plus:
|
|
81
|
+
|
|
82
|
+
- [DateRangePicker] Fix disabled filler cells showing the range highlight (#23293) @JCQuintas
|
|
83
|
+
|
|
84
|
+
### Charts
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-charts@9.11.0`
|
|
87
|
+
|
|
88
|
+
- [charts] Activate the focused item with `Enter`/`Space` (#23218) @JCQuintas
|
|
89
|
+
- [charts] Extract the axis click payload builders (#23215) @JCQuintas
|
|
90
|
+
- [charts] Fix `GestureManager` event listener leak on chart unmount (#23283) @kevincorizi-sbt
|
|
91
|
+
- [charts] Fix `slotProps.legend.position` and `direction` in `RadarChart` (#23254) @JCQuintas
|
|
92
|
+
- [charts] Fix axis clicks being discarded on slight pointer movement (#23244) @noraleonte
|
|
93
|
+
- [charts] Fix image export of charts sized by their parent element (#23255) @JCQuintas
|
|
94
|
+
- [charts] Forward `experimentalFeatures` on `RadarChart` and `Heatmap` (#23216) @JCQuintas
|
|
95
|
+
- [charts] Hide focus indicator when the chart loses focus (#23213) @JCQuintas
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-charts-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-charts@9.11.0`.
|
|
100
|
+
|
|
101
|
+
#### `@mui/x-charts-premium@9.11.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
102
|
+
|
|
103
|
+
Same changes as in `@mui/x-charts-pro@9.11.0`, plus:
|
|
104
|
+
|
|
105
|
+
- [charts-premium] Fix `RangeBar` type override (#23217) @JCQuintas
|
|
106
|
+
|
|
107
|
+
### Tree View
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-tree-view@9.11.0`
|
|
110
|
+
|
|
111
|
+
- [tree view] Add `addItems()` API method (#23159) @JCQuintas
|
|
112
|
+
- [tree view] Add `getItemSelection` API method (#23257) @noraleonte
|
|
113
|
+
- [tree view] Ignore `keepExistingSelection` when `multiSelect` is `false` (#23242) @JCQuintas
|
|
114
|
+
- [tree view] Prevent duplicate ids in multi-select arrow navigation (#23006) @Anexus5919
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-tree-view-pro@9.11.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
117
|
+
|
|
118
|
+
Same changes as in `@mui/x-tree-view@9.11.0`, plus:
|
|
119
|
+
|
|
120
|
+
- [tree view] Discard superseded lazy-loading responses (#23005) @Anexus5919
|
|
121
|
+
|
|
122
|
+
### Scheduler
|
|
123
|
+
|
|
124
|
+
#### `@mui/x-scheduler@9.0.0-beta.8`
|
|
125
|
+
|
|
126
|
+
- [scheduler] Add `localeText` prop to standalone views (#23210) @rita-codes
|
|
127
|
+
- [scheduler] Finetune touch experience for time grid events and introduce editing drawer (#22624) @noraleonte
|
|
128
|
+
- [scheduler] Introduce the edit dialog form context & lifecycle contract (#23284) @rita-codes
|
|
129
|
+
- [scheduler] Refactor edit dialog General tab into section components (#23206) @rita-codes
|
|
130
|
+
- [scheduler] Replace copied Base UI internals with `@base-ui/react/internals` imports (#21972) @flaviendelangle
|
|
131
|
+
- [scheduler] Hide resource picker when no resources are provided (#23290) @mustafajw07
|
|
132
|
+
- [scheduler] Support multi-resource occurrences in `EventTimeline` (#23240) @mustafajw07
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.8` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
135
|
+
|
|
136
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.8`.
|
|
137
|
+
|
|
138
|
+
### Codemod
|
|
139
|
+
|
|
140
|
+
#### `@mui/x-codemod@9.11.0`
|
|
141
|
+
|
|
142
|
+
- [codemod] Remove unused `@babel/core` and `@babel/traverse` dependencies (#23245) @LukasTy
|
|
143
|
+
|
|
144
|
+
### Docs
|
|
145
|
+
|
|
146
|
+
- [docs] Add recipe for adding new rows from clipboard copy (#22913) @michelengelen
|
|
147
|
+
- [docs] Clarify the package versions in v8 upgrade guides (#22376) @strazto
|
|
148
|
+
- [docs] Replace README peer dependency lists with an npm install command (#23256) @LukasTy
|
|
149
|
+
|
|
150
|
+
### Core
|
|
151
|
+
|
|
152
|
+
- [code-infra] Align action pin version comments (#23238) @LukasTy
|
|
153
|
+
|
|
154
|
+
### Miscellaneous
|
|
155
|
+
|
|
156
|
+
- [chat] Drop the undeclared `@mui/icons-material` dependency (#23252) @LukasTy
|
|
157
|
+
- [chat] Sanitize image part URLs and share the URL allow-list with markdown (#23058) @hasdfa
|
|
158
|
+
- [test] Type the `PickersTextField` test stub instead of `as any` (#23194) @LukasTy
|
|
159
|
+
|
|
3
160
|
## 9.10.1
|
|
4
161
|
|
|
5
162
|
_Jul 23, 2026_
|
|
@@ -108,7 +108,9 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes /* remove-prop
|
|
|
108
108
|
/**
|
|
109
109
|
* Options to enable features planned for the next major.
|
|
110
110
|
*/
|
|
111
|
-
experimentalFeatures: _propTypes.default.
|
|
111
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
112
|
+
keyboardActivation: _propTypes.default.bool
|
|
113
|
+
}),
|
|
112
114
|
/**
|
|
113
115
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
114
116
|
*/
|
|
@@ -248,7 +250,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes /* remove-prop
|
|
|
248
250
|
/**
|
|
249
251
|
* Callback fired when clicking close to an item.
|
|
250
252
|
* This is only available for scatter plot for now.
|
|
251
|
-
* @param {
|
|
253
|
+
* @param {ChartsActivationEvent} event Event caught at the svg level
|
|
252
254
|
* @param {ScatterItemIdentifier} scatterItemIdentifier Identify which item got clicked
|
|
253
255
|
*/
|
|
254
256
|
onItemClick: _propTypes.default.func,
|
|
@@ -101,7 +101,9 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes /* remove-prop
|
|
|
101
101
|
/**
|
|
102
102
|
* Options to enable features planned for the next major.
|
|
103
103
|
*/
|
|
104
|
-
experimentalFeatures: PropTypes.
|
|
104
|
+
experimentalFeatures: PropTypes.shape({
|
|
105
|
+
keyboardActivation: PropTypes.bool
|
|
106
|
+
}),
|
|
105
107
|
/**
|
|
106
108
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
107
109
|
*/
|
|
@@ -241,7 +243,7 @@ process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes /* remove-prop
|
|
|
241
243
|
/**
|
|
242
244
|
* Callback fired when clicking close to an item.
|
|
243
245
|
* This is only available for scatter plot for now.
|
|
244
|
-
* @param {
|
|
246
|
+
* @param {ChartsActivationEvent} event Event caught at the svg level
|
|
245
247
|
* @param {ScatterItemIdentifier} scatterItemIdentifier Identify which item got clicked
|
|
246
248
|
*/
|
|
247
249
|
onItemClick: PropTypes.func,
|
|
@@ -83,7 +83,9 @@ process.env.NODE_ENV !== "production" ? ChartsDataProvider.propTypes /* remove-p
|
|
|
83
83
|
/**
|
|
84
84
|
* Options to enable features planned for the next major.
|
|
85
85
|
*/
|
|
86
|
-
experimentalFeatures: _propTypes.default.
|
|
86
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
87
|
+
keyboardActivation: _propTypes.default.bool
|
|
88
|
+
}),
|
|
87
89
|
/**
|
|
88
90
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
89
91
|
*/
|
|
@@ -76,7 +76,9 @@ process.env.NODE_ENV !== "production" ? ChartsDataProvider.propTypes /* remove-p
|
|
|
76
76
|
/**
|
|
77
77
|
* Options to enable features planned for the next major.
|
|
78
78
|
*/
|
|
79
|
-
experimentalFeatures: PropTypes.
|
|
79
|
+
experimentalFeatures: PropTypes.shape({
|
|
80
|
+
keyboardActivation: PropTypes.bool
|
|
81
|
+
}),
|
|
80
82
|
/**
|
|
81
83
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
82
84
|
*/
|
|
@@ -70,7 +70,9 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes /* re
|
|
|
70
70
|
/**
|
|
71
71
|
* Options to enable features planned for the next major.
|
|
72
72
|
*/
|
|
73
|
-
experimentalFeatures: _propTypes.default.
|
|
73
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
74
|
+
keyboardActivation: _propTypes.default.bool
|
|
75
|
+
}),
|
|
74
76
|
/**
|
|
75
77
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
76
78
|
*/
|
|
@@ -63,7 +63,9 @@ process.env.NODE_ENV !== "production" ? ChartsRadialDataProvider.propTypes /* re
|
|
|
63
63
|
/**
|
|
64
64
|
* Options to enable features planned for the next major.
|
|
65
65
|
*/
|
|
66
|
-
experimentalFeatures: PropTypes.
|
|
66
|
+
experimentalFeatures: PropTypes.shape({
|
|
67
|
+
keyboardActivation: PropTypes.bool
|
|
68
|
+
}),
|
|
67
69
|
/**
|
|
68
70
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
69
71
|
*/
|