@mui/x-charts-pro 8.16.0 → 8.17.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 +1 -0
- package/CHANGELOG.md +108 -1
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/ChartDataProviderPro/ChartDataProviderPro.js +1 -3
- package/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -4
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/FunnelChart/FunnelChart.js +1 -1
- package/FunnelChart/FunnelPlot.d.ts +1 -1
- package/FunnelChart/funnel.types.d.ts +1 -1
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/FunnelChart/seriesConfig/index.js +2 -2
- package/Heatmap/Heatmap.js +1 -1
- package/Heatmap/HeatmapItem.d.ts +1 -1
- package/Heatmap/HeatmapPlot.d.ts +1 -2
- package/Heatmap/HeatmapPlot.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -2
- package/Heatmap/seriesConfig/index.d.ts +1 -1
- package/Heatmap/seriesConfig/index.js +2 -2
- package/SankeyChart/SankeyChart.js +1 -1
- package/SankeyChart/SankeyLinkElement.js +2 -2
- package/SankeyChart/SankeyNodeElement.js +2 -2
- package/SankeyChart/SankeyPlot.d.ts +1 -1
- package/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -2
- package/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/SankeyChart/seriesConfig/index.js +2 -2
- package/esm/BarChartPro/BarChartPro.js +1 -0
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -2
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -2
- package/esm/ChartZoomSlider/ChartZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSlider.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -1
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +2 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/ChartsTooltipZoomSliderValue.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/BarPreviewPlot.js +2 -3
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +1 -1
- package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.js +2 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.d.ts +1 -2
- package/esm/ChartZoomSlider/internals/previews/ScatterPreviewPlot.js +2 -2
- package/esm/ChartsToolbarPro/ChartsToolbarPro.d.ts +1 -2
- package/esm/ChartsToolbarPro/internals/ChartsMenu.d.ts +1 -1
- package/esm/FunnelChart/FunnelChart.js +1 -1
- package/esm/FunnelChart/FunnelPlot.d.ts +1 -1
- package/esm/FunnelChart/funnel.types.d.ts +1 -1
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxis.js +7 -7
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.d.ts +6 -44
- package/esm/FunnelChart/funnelAxisPlugin/useChartFunnelAxisRendering.selectors.js +3 -2
- package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
- package/esm/FunnelChart/seriesConfig/index.js +1 -1
- package/esm/Heatmap/Heatmap.js +1 -1
- package/esm/Heatmap/HeatmapItem.d.ts +1 -1
- package/esm/Heatmap/HeatmapPlot.d.ts +1 -2
- package/esm/Heatmap/HeatmapPlot.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltip.js +0 -1
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.d.ts +1 -2
- package/esm/Heatmap/HeatmapTooltip/HeatmapTooltipContent.js +0 -1
- package/esm/Heatmap/seriesConfig/index.d.ts +1 -1
- package/esm/Heatmap/seriesConfig/index.js +1 -1
- package/esm/SankeyChart/SankeyChart.js +1 -1
- package/esm/SankeyChart/SankeyLinkElement.js +2 -2
- package/esm/SankeyChart/SankeyNodeElement.js +2 -2
- package/esm/SankeyChart/SankeyPlot.d.ts +1 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltip.js +0 -1
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.d.ts +1 -2
- package/esm/SankeyChart/SankeyTooltip/SankeyTooltipContent.js +0 -1
- package/esm/SankeyChart/plugins/useSankeyHighlight.js +8 -12
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.d.ts +19 -23
- package/esm/SankeyChart/plugins/useSankeyHighlight.selectors.js +3 -3
- package/esm/SankeyChart/seriesConfig/index.d.ts +1 -1
- package/esm/SankeyChart/seriesConfig/index.js +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/esm/internals/material/components/BaseMenuItem.js +0 -1
- package/esm/internals/material/components/BasePopper.d.ts +1 -2
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
- package/esm/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
- package/esm/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
- package/esm/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/esm/models/seriesType/heatmap.d.ts +1 -1
- package/index.js +1 -1
- package/internals/material/components/BaseMenuItem.d.ts +1 -2
- package/internals/material/components/BaseMenuItem.js +0 -2
- package/internals/material/components/BasePopper.d.ts +1 -2
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +12 -6
- package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.js +2 -2
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.js +22 -14
- package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.js +26 -14
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.js +1 -1
- package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.js +30 -54
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +10 -26
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.js +1 -1
- package/models/seriesType/heatmap.d.ts +1 -1
- package/package.json +5 -5
|
@@ -115,6 +115,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
115
115
|
y: _propTypes.default.oneOf(['band', 'line', 'none'])
|
|
116
116
|
}),
|
|
117
117
|
/**
|
|
118
|
+
* @deprecated Use `barLabel` in the chart series instead.
|
|
118
119
|
* If provided, the function will be used to format the label of the bar.
|
|
119
120
|
* It can be set to 'value' to display the current value.
|
|
120
121
|
* @param {BarItem} item The item to format.
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,113 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.17.0
|
|
9
|
+
|
|
10
|
+
_Nov 5, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- Add `colorGetter` prop to cartesian charts series
|
|
15
|
+
|
|
16
|
+
<img width="400" alt="Image" src="https://github.com/user-attachments/assets/d8b1263f-794e-4939-b17e-87350fdd1746" />
|
|
17
|
+
|
|
18
|
+
- 🌎 Add Catalan (ca-ES) locale on the Data Grid
|
|
19
|
+
- 🌎 Add Norwegian Bokmål (nb-NO) locale on the Charts
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
- 📚 Documentation improvements
|
|
22
|
+
|
|
23
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
24
|
+
@frncesc, @Methuselah96, @samuelwalk, @htollefsen
|
|
25
|
+
|
|
26
|
+
The following team members contributed to this release:
|
|
27
|
+
@alexfauquette, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @mnajdova, @rita-codes, @arminmeh, @brijeshb42
|
|
28
|
+
|
|
29
|
+
### Data Grid
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid@8.17.0`
|
|
32
|
+
|
|
33
|
+
- [DataGrid] Stop event propagation on data grid action buttons (GridActionsCellItem) (#19513) @Copilot
|
|
34
|
+
- [DataGrid] Update cell editable state if `editable` prop is updated in the column definition (#20147) @arminmeh
|
|
35
|
+
- [DataGrid] Wait for external model updates before resetting pagination after sort/filter (#20162) @arminmeh
|
|
36
|
+
- [l10n] Add Catalan (ca-ES) locale (#20154) @frncesc
|
|
37
|
+
- [l10n] Improve Arabic (ar-SD) locale (#20185) @samuelwalk
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid@8.17.0`.
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-data-grid-premium@8.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
44
|
+
|
|
45
|
+
Same changes as in `@mui/x-data-grid-pro@8.17.0`.
|
|
46
|
+
|
|
47
|
+
### Date and Time Pickers
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers@8.17.0`
|
|
50
|
+
|
|
51
|
+
Internal changes.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-date-pickers-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-date-pickers@8.17.0`.
|
|
56
|
+
|
|
57
|
+
### Charts
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-charts@8.17.0`
|
|
60
|
+
|
|
61
|
+
- [charts] Add `barLabel` to bar series. Deprecate `barLabel` in `BarPlot`. (#20184) @bernardobelchior
|
|
62
|
+
- [charts] Add series color callback (#20084) @bernardobelchior
|
|
63
|
+
- [charts] Expose `ChartsSurface` classes (#20180) @bernardobelchior
|
|
64
|
+
- [charts] Fix chart cut off when inside `overflow: scroll` container (#20182) @bernardobelchior
|
|
65
|
+
- [charts] Fix tick label overflow on multiple axes and series demo (#20152) @bernardobelchior
|
|
66
|
+
- [charts] Organize series config (#20155) @bernardobelchior
|
|
67
|
+
- [charts] Use selectors from `@mui/x-internals` (#20052) @alexfauquette
|
|
68
|
+
- [charts] Use store from `@mui/x-internals` (#20121) @alexfauquette
|
|
69
|
+
- [charts] Add `useDataset` hook (#20205) @JCQuintas
|
|
70
|
+
- [l10n] Add Norwegian Bokmål (nb-NO) locale (#20197) @htollefsen
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-charts-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
|
+
|
|
74
|
+
Same changes as in `@mui/x-charts@8.17.0`, plus:
|
|
75
|
+
|
|
76
|
+
- [charts-pro] Fix zoom pan issue when controlled (#20163) @JCQuintas
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-charts-premium@8.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
79
|
+
|
|
80
|
+
Same changes as in `@mui/x-charts-pro@8.17.0`.
|
|
81
|
+
|
|
82
|
+
### Tree View
|
|
83
|
+
|
|
84
|
+
#### `@mui/x-tree-view@8.17.0`
|
|
85
|
+
|
|
86
|
+
- [tree view] Accept read only arrays in `expandedItems` prop (#20181) @Methuselah96
|
|
87
|
+
- [tree view] Use `aria-checked` instead of `aria-selected` on items (#19851) @flaviendelangle
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-tree-view-pro@8.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
90
|
+
|
|
91
|
+
Same changes as in `@mui/x-tree-view@8.17.0`.
|
|
92
|
+
|
|
93
|
+
### Codemod
|
|
94
|
+
|
|
95
|
+
#### `@mui/x-codemod@8.17.0`
|
|
96
|
+
|
|
97
|
+
Internal changes.
|
|
98
|
+
|
|
99
|
+
### Docs
|
|
100
|
+
|
|
101
|
+
- [docs] Fix focus issues in the action column demo (#20178) @arminmeh
|
|
102
|
+
- [docs] Remove hidden Tree View headless page (#20119) @flaviendelangle
|
|
103
|
+
- [docs] Fix some external redirects (#20211) @Janpot
|
|
104
|
+
|
|
105
|
+
### Core
|
|
106
|
+
|
|
107
|
+
- [code-infra] Fix cci job timeout due to buffered test output (#20193) @Janpot
|
|
108
|
+
- [code-infra] Fix publish workflow (#20140) @bernardobelchior
|
|
109
|
+
- [code-infra] Increase JSDOM test parallelism (#20179) @Janpot
|
|
110
|
+
- [code-infra] Remove React import requirement for jsx (#20144) @brijeshb42
|
|
111
|
+
- [code-infra] Replace `getInitialProps` with `getStaticProps` (#20192) @Janpot
|
|
112
|
+
- [code-infra] git-ignore next-env.d.ts (#20177) @Janpot
|
|
113
|
+
- [code-infra] Stabilize screenshot testing (#19868) @Janpot
|
|
114
|
+
|
|
8
115
|
## 8.16.0
|
|
9
116
|
|
|
10
117
|
_Oct 29, 2025_
|
|
@@ -39,7 +146,7 @@ Same changes as in `@mui/x-data-grid@8.16.0`, plus:
|
|
|
39
146
|
Same changes as in `@mui/x-data-grid-pro@8.16.0`, plus:
|
|
40
147
|
|
|
41
148
|
- [DataGridPremium] Export and restore chart integration state (#20079) @arminmeh
|
|
42
|
-
- [DataGridPremium] Fix grouping column `valueFormatter()` crash
|
|
149
|
+
- [DataGridPremium] Fix grouping column `valueFormatter()` crash (#20070) @sai6855
|
|
43
150
|
- [DataGridPremium] Refetch aggregation data after row update with server-side aggregation (#20039) @arminmeh
|
|
44
151
|
|
|
45
152
|
### Date and Time Pickers
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ChartSeriesType, ChartAnyPluginSignature, ChartProviderProps } from '@mui/x-charts/internals';
|
|
3
2
|
import { ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
|
|
4
3
|
import { ChartsSlotPropsPro, ChartsSlotsPro } from "../internals/material/index.js";
|
|
@@ -40,7 +39,7 @@ export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSer
|
|
|
40
39
|
* </ChartDataProviderPro>
|
|
41
40
|
* ```
|
|
42
41
|
*/
|
|
43
|
-
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>):
|
|
42
|
+
declare function ChartDataProviderPro<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
|
|
44
43
|
declare namespace ChartDataProviderPro {
|
|
45
44
|
var propTypes: any;
|
|
46
45
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.ChartDataProviderPro = ChartDataProviderPro;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
var React = _interopRequireWildcard(require("react"));
|
|
12
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
11
|
var _Watermark = require("@mui/x-license/Watermark");
|
|
14
12
|
var _internals = require("@mui/x-charts/internals");
|
|
@@ -18,7 +16,7 @@ var _material = require("../internals/material");
|
|
|
18
16
|
var _allPlugins = require("../internals/plugins/allPlugins");
|
|
19
17
|
var _useChartDataProviderProProps = require("./useChartDataProviderProProps");
|
|
20
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const releaseInfo = "
|
|
19
|
+
const releaseInfo = "MTc2MjMwMDgwMDAwMA==";
|
|
22
20
|
const packageIdentifier = 'x-charts-pro';
|
|
23
21
|
/**
|
|
24
22
|
* Orchestrates the data providers for the chart components and hooks.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartZoomSliderProps {
|
|
4
3
|
/**
|
|
@@ -17,5 +16,5 @@ interface ChartZoomSliderProps {
|
|
|
17
16
|
export declare function ChartAxisZoomSlider({
|
|
18
17
|
axisDirection,
|
|
19
18
|
axisId
|
|
20
|
-
}: ChartZoomSliderProps):
|
|
19
|
+
}: ChartZoomSliderProps): import("react/jsx-runtime").JSX.Element | null;
|
|
21
20
|
export {};
|
|
@@ -25,8 +25,8 @@ function ChartAxisZoomSlider({
|
|
|
25
25
|
}) {
|
|
26
26
|
const store = (0, _internals.useStore)();
|
|
27
27
|
const drawingArea = (0, _internals.useDrawingArea)();
|
|
28
|
-
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData,
|
|
29
|
-
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup,
|
|
28
|
+
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, axisId);
|
|
29
|
+
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, axisId);
|
|
30
30
|
const [showTooltip, setShowTooltip] = React.useState(false);
|
|
31
31
|
const {
|
|
32
32
|
xAxis
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AxisId, ZoomData } from '@mui/x-charts/internals';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
export interface ChartAxisZoomSliderActiveTrackProps {
|
|
4
3
|
axisId: AxisId;
|
|
5
4
|
axisDirection: 'x' | 'y';
|
|
@@ -23,4 +22,4 @@ export declare function ChartAxisZoomSliderActiveTrack({
|
|
|
23
22
|
showTooltip,
|
|
24
23
|
onPointerEnter,
|
|
25
24
|
onPointerLeave
|
|
26
|
-
}: ChartAxisZoomSliderActiveTrackProps):
|
|
25
|
+
}: ChartAxisZoomSliderActiveTrackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -56,7 +56,7 @@ function ChartAxisZoomSliderActiveTrack({
|
|
|
56
56
|
svgRef
|
|
57
57
|
} = (0, _internals.useChartContext)();
|
|
58
58
|
const store = (0, _internals.useStore)();
|
|
59
|
-
const axis = (0, _internals.useSelector)(store, _internals.selectorChartAxis,
|
|
59
|
+
const axis = (0, _internals.useSelector)(store, _internals.selectorChartAxis, axisId);
|
|
60
60
|
const drawingArea = (0, _internals.useDrawingArea)();
|
|
61
61
|
const activePreviewRectRef = React.useRef(null);
|
|
62
62
|
const [startThumbEl, setStartThumbEl] = React.useState(null);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartAxisZoomSliderPreviewProps {
|
|
4
3
|
axisId: AxisId;
|
|
@@ -14,5 +13,5 @@ export declare function ChartAxisZoomSliderPreview({
|
|
|
14
13
|
axisDirection,
|
|
15
14
|
reverse,
|
|
16
15
|
...props
|
|
17
|
-
}: ChartAxisZoomSliderPreviewProps):
|
|
16
|
+
}: ChartAxisZoomSliderPreviewProps): import("react/jsx-runtime").JSX.Element;
|
|
18
17
|
export {};
|
|
@@ -50,8 +50,8 @@ function PreviewRectangles(props) {
|
|
|
50
50
|
axisDirection
|
|
51
51
|
} = props;
|
|
52
52
|
const store = (0, _internals.useStore)();
|
|
53
|
-
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData,
|
|
54
|
-
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup,
|
|
53
|
+
const zoomData = (0, _internals.useSelector)(store, _useChartProZoom.selectorChartAxisZoomData, axisId);
|
|
54
|
+
const zoomOptions = (0, _internals.useSelector)(store, _internals.selectorChartAxisZoomOptionsLookup, axisId);
|
|
55
55
|
const id = (0, _useId.default)();
|
|
56
56
|
if (!zoomData) {
|
|
57
57
|
return null;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { AxisId } from '@mui/x-charts/internals';
|
|
3
2
|
interface ChartAxisZoomSliderPreviewContentProps {
|
|
4
3
|
axisId: AxisId;
|
|
@@ -7,5 +6,5 @@ interface ChartAxisZoomSliderPreviewContentProps {
|
|
|
7
6
|
height: number;
|
|
8
7
|
width: number;
|
|
9
8
|
}
|
|
10
|
-
export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps):
|
|
9
|
+
export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export {};
|
|
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
|
4
4
|
interface AreaPreviewPlotProps extends PreviewPlotProps {}
|
|
5
5
|
export declare function AreaPreviewPlot({
|
|
6
6
|
axisId
|
|
7
|
-
}: AreaPreviewPlotProps):
|
|
7
|
+
}: AreaPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export interface PreviewAreaElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
|
|
9
9
|
id: SeriesId;
|
|
10
10
|
gradientId?: string;
|
|
@@ -55,7 +55,7 @@ function PreviewAreaElement(_ref) {
|
|
|
55
55
|
}
|
|
56
56
|
function useAreaPreviewData(axisId) {
|
|
57
57
|
const store = (0, _internals.useStore)();
|
|
58
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
59
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
58
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
59
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
60
60
|
return (0, _internals.useAreaPlotData)(xAxes, yAxes);
|
|
61
61
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
3
2
|
interface BarPreviewPlotProps extends PreviewPlotProps {
|
|
4
3
|
x: number;
|
|
@@ -6,5 +5,5 @@ interface BarPreviewPlotProps extends PreviewPlotProps {
|
|
|
6
5
|
height: number;
|
|
7
6
|
width: number;
|
|
8
7
|
}
|
|
9
|
-
export declare function BarPreviewPlot(props: BarPreviewPlotProps):
|
|
8
|
+
export declare function BarPreviewPlot(props: BarPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.BarPreviewPlot = BarPreviewPlot;
|
|
8
|
-
var React = _interopRequireWildcard(require("react"));
|
|
9
7
|
var _internals = require("@mui/x-charts/internals");
|
|
10
8
|
var _BarChart = require("@mui/x-charts/BarChart");
|
|
11
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -56,7 +54,7 @@ function BarPreviewPlot(props) {
|
|
|
56
54
|
}
|
|
57
55
|
function useBarPreviewData(axisId, drawingArea) {
|
|
58
56
|
const store = (0, _internals.useStore)();
|
|
59
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
60
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
57
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
58
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
61
59
|
return (0, _internals.useBarPlotData)(drawingArea, xAxes, yAxes);
|
|
62
60
|
}
|
|
@@ -4,7 +4,7 @@ import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
|
4
4
|
interface LinePreviewPlotProps extends PreviewPlotProps {}
|
|
5
5
|
export declare function LinePreviewPlot({
|
|
6
6
|
axisId
|
|
7
|
-
}: LinePreviewPlotProps):
|
|
7
|
+
}: LinePreviewPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export interface PreviewLineElementProps extends Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color' | 'id'> {
|
|
9
9
|
id: SeriesId;
|
|
10
10
|
gradientId?: string;
|
|
@@ -53,7 +53,7 @@ function PreviewLineElement(_ref) {
|
|
|
53
53
|
}
|
|
54
54
|
function useLinePreviewData(axisId) {
|
|
55
55
|
const store = (0, _internals.useStore)();
|
|
56
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
57
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
56
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
57
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
58
58
|
return (0, _internals.useLinePlotData)(xAxes, yAxes);
|
|
59
59
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { PreviewPlotProps } from "./PreviewPlot.types.js";
|
|
3
2
|
interface ScatterPreviewPlotProps extends PreviewPlotProps {
|
|
4
3
|
x: number;
|
|
@@ -12,5 +11,5 @@ export declare function ScatterPreviewPlot({
|
|
|
12
11
|
y,
|
|
13
12
|
height,
|
|
14
13
|
width
|
|
15
|
-
}: ScatterPreviewPlotProps):
|
|
14
|
+
}: ScatterPreviewPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
15
|
export {};
|
|
@@ -19,8 +19,8 @@ function ScatterPreviewPlot({
|
|
|
19
19
|
}) {
|
|
20
20
|
const store = (0, _internals.useStore)();
|
|
21
21
|
const seriesData = (0, _hooks.useScatterSeriesContext)();
|
|
22
|
-
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis,
|
|
23
|
-
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis,
|
|
22
|
+
const xAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedXAxis, axisId);
|
|
23
|
+
const yAxes = (0, _internals.useSelector)(store, _internals.selectorChartPreviewComputedYAxis, axisId);
|
|
24
24
|
const defaultXAxisId = (0, _hooks.useXAxes)().xAxisIds[0];
|
|
25
25
|
const defaultYAxisId = (0, _hooks.useYAxes)().yAxisIds[0];
|
|
26
26
|
const {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { ChartsToolbarProps } from '@mui/x-charts/Toolbar';
|
|
3
2
|
import { ChartsToolbarPrintExportOptions } from "./ChartsToolbarPrintExportTrigger.js";
|
|
4
3
|
import { ChartsToolbarImageExportOptions } from "./ChartsToolbarImageExportTrigger.js";
|
|
@@ -13,7 +12,7 @@ declare function ChartsToolbarPro({
|
|
|
13
12
|
printOptions,
|
|
14
13
|
imageExportOptions: rawImageExportOptions,
|
|
15
14
|
...other
|
|
16
|
-
}: ChartsToolbarProProps):
|
|
15
|
+
}: ChartsToolbarProProps): import("react/jsx-runtime").JSX.Element | null;
|
|
17
16
|
declare namespace ChartsToolbarPro {
|
|
18
17
|
var propTypes: any;
|
|
19
18
|
}
|
|
@@ -7,7 +7,7 @@ export interface ChartsMenuProps extends Pick<ChartBasePopperProps, 'className'
|
|
|
7
7
|
position?: Placement;
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare function ChartsMenu(props: ChartsMenuProps):
|
|
10
|
+
declare function ChartsMenu(props: ChartsMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
declare namespace ChartsMenu {
|
|
12
12
|
var propTypes: any;
|
|
13
13
|
}
|
|
@@ -26,7 +26,7 @@ var _ChartDataProviderPro = require("../ChartDataProviderPro");
|
|
|
26
26
|
var _FunnelChart2 = require("./FunnelChart.plugins");
|
|
27
27
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
28
28
|
const seriesConfig = {
|
|
29
|
-
funnel: _seriesConfig.
|
|
29
|
+
funnel: _seriesConfig.funnelSeriesConfig
|
|
30
30
|
};
|
|
31
31
|
const FunnelChart = exports.FunnelChart = /*#__PURE__*/React.forwardRef(function FunnelChart(props, ref) {
|
|
32
32
|
const themedProps = (0, _styles.useThemeProps)({
|
|
@@ -9,7 +9,7 @@ export interface FunnelPlotProps extends FunnelPlotSlotExtension {
|
|
|
9
9
|
*/
|
|
10
10
|
onItemClick?: (event: React.MouseEvent<SVGElement, MouseEvent>, funnelItemIdentifier: FunnelItemIdentifier) => void;
|
|
11
11
|
}
|
|
12
|
-
declare function FunnelPlot(props: FunnelPlotProps):
|
|
12
|
+
declare function FunnelPlot(props: FunnelPlotProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
declare namespace FunnelPlot {
|
|
14
14
|
var propTypes: any;
|
|
15
15
|
}
|
|
@@ -27,7 +27,7 @@ export type FunnelValueType = {
|
|
|
27
27
|
*/
|
|
28
28
|
labelMarkType?: ChartsLabelMarkProps['type'];
|
|
29
29
|
};
|
|
30
|
-
export interface FunnelSeriesType extends Omit<CommonSeriesType<FunnelValueType>, 'color'>, CartesianSeriesType {
|
|
30
|
+
export interface FunnelSeriesType extends Omit<CommonSeriesType<FunnelValueType>, 'color' | 'colorGetter'>, CartesianSeriesType {
|
|
31
31
|
type: 'funnel';
|
|
32
32
|
/**
|
|
33
33
|
* Data associated to the funnel section.
|
|
@@ -40,15 +40,15 @@ const useChartFunnelAxis = ({
|
|
|
40
40
|
isFirstRender.current = false;
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
|
-
store.update(
|
|
43
|
+
store.update({
|
|
44
44
|
funnel: {
|
|
45
45
|
gap: gap ?? 0
|
|
46
46
|
},
|
|
47
|
-
cartesianAxis:
|
|
47
|
+
cartesianAxis: {
|
|
48
48
|
x: (0, _internals.defaultizeXAxis)(xAxis, dataset),
|
|
49
49
|
y: (0, _internals.defaultizeYAxis)(yAxis, dataset)
|
|
50
|
-
}
|
|
51
|
-
})
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
52
|
}, [seriesConfig, drawingArea, xAxis, yAxis, dataset, store, gap]);
|
|
53
53
|
React.useEffect(() => {
|
|
54
54
|
const element = svgRef.current;
|
|
@@ -109,12 +109,12 @@ const useChartFunnelAxis = ({
|
|
|
109
109
|
const {
|
|
110
110
|
axis: xAxisWithScale,
|
|
111
111
|
axisIds: xAxisIds
|
|
112
|
-
} = (0, _useChartFunnelAxisRendering.selectorChartXAxis)(store.
|
|
112
|
+
} = (0, _useChartFunnelAxisRendering.selectorChartXAxis)(store.state);
|
|
113
113
|
const {
|
|
114
114
|
axis: yAxisWithScale,
|
|
115
115
|
axisIds: yAxisIds
|
|
116
|
-
} = (0, _useChartFunnelAxisRendering.selectorChartYAxis)(store.
|
|
117
|
-
const processedSeries = (0, _internals.selectorChartSeriesProcessed)(store.
|
|
116
|
+
} = (0, _useChartFunnelAxisRendering.selectorChartYAxis)(store.state);
|
|
117
|
+
const processedSeries = (0, _internals.selectorChartSeriesProcessed)(store.state);
|
|
118
118
|
const usedXAxis = xAxisIds[0];
|
|
119
119
|
const usedYAxis = yAxisIds[0];
|
|
120
120
|
let dataIndex = null;
|
|
@@ -3,54 +3,16 @@ import { UseChartFunnelAxisSignature } from "./useChartFunnelAxis.types.js";
|
|
|
3
3
|
export declare const selectorFunnel: (state: ChartState<[], [UseChartFunnelAxisSignature]>) => {
|
|
4
4
|
gap: number;
|
|
5
5
|
} | undefined;
|
|
6
|
-
export declare const selectorFunnelGap:
|
|
6
|
+
export declare const selectorFunnelGap: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
|
|
7
7
|
funnel: {
|
|
8
8
|
gap: number;
|
|
9
9
|
};
|
|
10
10
|
}> & {
|
|
11
11
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
12
|
-
}
|
|
12
|
+
}) => number;
|
|
13
|
+
export declare const selectorChartXAxis: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
|
|
13
14
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
14
|
-
}
|
|
15
|
-
export declare const
|
|
15
|
+
}) => import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsXAxisProps>;
|
|
16
|
+
export declare const selectorChartYAxis: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
|
|
16
17
|
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
17
|
-
}
|
|
18
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
19
|
-
} & {
|
|
20
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
21
|
-
} & {
|
|
22
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
23
|
-
} & {
|
|
24
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
25
|
-
} & {
|
|
26
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
27
|
-
} & {
|
|
28
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
29
|
-
} & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
|
|
30
|
-
funnel: {
|
|
31
|
-
gap: number;
|
|
32
|
-
};
|
|
33
|
-
}> & {
|
|
34
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
35
|
-
}, import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsXAxisProps>, []>;
|
|
36
|
-
export declare const selectorChartYAxis: import("reselect").Selector<import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & Partial<import("@mui/x-charts/internals").UseChartCartesianAxisState> & {
|
|
37
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
38
|
-
} & Partial<{}> & {
|
|
39
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
40
|
-
} & {
|
|
41
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
42
|
-
} & {
|
|
43
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
44
|
-
} & {
|
|
45
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
46
|
-
} & {
|
|
47
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
48
|
-
} & {
|
|
49
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
50
|
-
} & Partial<Pick<import("@mui/x-charts/internals").UseChartCartesianAxisState, "cartesianAxis"> & {
|
|
51
|
-
funnel: {
|
|
52
|
-
gap: number;
|
|
53
|
-
};
|
|
54
|
-
}> & {
|
|
55
|
-
cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
|
|
56
|
-
}, import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsYAxisProps>, []>;
|
|
18
|
+
}) => import("./computeAxisValue.js").ComputeResult<import("@mui/x-charts").ChartsYAxisProps>;
|
|
@@ -4,12 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorFunnelGap = exports.selectorFunnel = exports.selectorChartYAxis = exports.selectorChartXAxis = void 0;
|
|
7
|
+
var _store = require("@mui/x-internals/store");
|
|
7
8
|
var _internals = require("@mui/x-charts/internals");
|
|
8
9
|
var _computeAxisValue = require("./computeAxisValue");
|
|
9
10
|
const selectorFunnel = state => state.funnel;
|
|
10
11
|
exports.selectorFunnel = selectorFunnel;
|
|
11
12
|
const selectorFunnelGap = exports.selectorFunnelGap = (0, _internals.createSelector)([selectorFunnel], funnel => funnel?.gap ?? 0);
|
|
12
|
-
const selectorChartXAxis = exports.selectorChartXAxis = (0,
|
|
13
|
+
const selectorChartXAxis = exports.selectorChartXAxis = (0, _store.createSelectorMemoized)(_internals.selectorChartRawXAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap, (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
|
|
13
14
|
drawingArea,
|
|
14
15
|
formattedSeries,
|
|
15
16
|
axis,
|
|
@@ -17,7 +18,7 @@ const selectorChartXAxis = exports.selectorChartXAxis = (0, _internals.createSel
|
|
|
17
18
|
axisDirection: 'x',
|
|
18
19
|
gap
|
|
19
20
|
}));
|
|
20
|
-
const selectorChartYAxis = exports.selectorChartYAxis = (0,
|
|
21
|
+
const selectorChartYAxis = exports.selectorChartYAxis = (0, _store.createSelectorMemoized)(_internals.selectorChartRawYAxis, _internals.selectorChartDrawingArea, _internals.selectorChartSeriesProcessed, _internals.selectorChartSeriesConfig, selectorFunnelGap, (axis, drawingArea, formattedSeries, seriesConfig, gap) => (0, _computeAxisValue.computeAxisValue)({
|
|
21
22
|
drawingArea,
|
|
22
23
|
formattedSeries,
|
|
23
24
|
axis,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const funnelSeriesConfig: ChartSeriesTypeConfig<'funnel'>;
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.funnelSeriesConfig = void 0;
|
|
8
8
|
var _extremums = require("./extremums");
|
|
9
9
|
var _seriesProcessor = _interopRequireDefault(require("./seriesProcessor"));
|
|
10
10
|
var _getColor = _interopRequireDefault(require("./getColor"));
|
|
@@ -12,7 +12,7 @@ var _legend = _interopRequireDefault(require("./legend"));
|
|
|
12
12
|
var _tooltip = _interopRequireDefault(require("./tooltip"));
|
|
13
13
|
var _getSeriesWithDefaultValues = _interopRequireDefault(require("./getSeriesWithDefaultValues"));
|
|
14
14
|
var _tooltipPosition = _interopRequireDefault(require("./tooltipPosition"));
|
|
15
|
-
const
|
|
15
|
+
const funnelSeriesConfig = exports.funnelSeriesConfig = {
|
|
16
16
|
seriesProcessor: _seriesProcessor.default,
|
|
17
17
|
colorProcessor: _getColor.default,
|
|
18
18
|
legendGetter: _legend.default,
|
package/Heatmap/Heatmap.js
CHANGED
|
@@ -30,7 +30,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
30
30
|
// The GnBu: https://github.com/d3/d3-scale-chromatic/blob/main/src/sequential-multi/GnBu.js
|
|
31
31
|
const defaultColorMap = (0, _d3Interpolate.interpolateRgbBasis)(['#f7fcf0', '#e0f3db', '#ccebc5', '#a8ddb5', '#7bccc4', '#4eb3d3', '#2b8cbe', '#0868ac', '#084081']);
|
|
32
32
|
const seriesConfig = {
|
|
33
|
-
heatmap: _seriesConfig.
|
|
33
|
+
heatmap: _seriesConfig.heatmapSeriesConfig
|
|
34
34
|
};
|
|
35
35
|
function getDefaultDataForAxis(series, dimension) {
|
|
36
36
|
if (series?.[0]?.data === undefined || series[0].data.length === 0) {
|
package/Heatmap/HeatmapItem.d.ts
CHANGED
|
@@ -42,7 +42,7 @@ export interface HeatmapItemOwnerState {
|
|
|
42
42
|
/**
|
|
43
43
|
* @ignore - internal component.
|
|
44
44
|
*/
|
|
45
|
-
declare function HeatmapItem(props: HeatmapItemProps):
|
|
45
|
+
declare function HeatmapItem(props: HeatmapItemProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
declare namespace HeatmapItem {
|
|
47
47
|
var propTypes: any;
|
|
48
48
|
}
|
package/Heatmap/HeatmapPlot.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
1
|
import { HeatmapItemProps } from "./HeatmapItem.js";
|
|
3
2
|
export interface HeatmapPlotProps extends Pick<HeatmapItemProps, 'slots' | 'slotProps'> {}
|
|
4
|
-
declare function HeatmapPlot(props: HeatmapPlotProps):
|
|
3
|
+
declare function HeatmapPlot(props: HeatmapPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
4
|
declare namespace HeatmapPlot {
|
|
6
5
|
var propTypes: any;
|
|
7
6
|
}
|