@mui/x-charts-premium 8.22.0 → 8.23.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/BarChartPremium/BarChartPremium.d.ts +16 -0
- package/BarChartPremium/BarChartPremium.js +1523 -0
- package/BarChartPremium/BarChartPremium.plugins.d.ts +4 -0
- package/BarChartPremium/BarChartPremium.plugins.js +8 -0
- package/BarChartPremium/index.d.ts +2 -0
- package/BarChartPremium/index.js +27 -0
- package/BarChartPremium/useBarChartPremiumProps.d.ts +23 -0
- package/BarChartPremium/useBarChartPremiumProps.js +17 -0
- package/CHANGELOG.md +202 -0
- package/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +46 -0
- package/ChartDataProviderPremium/ChartDataProviderPremium.js +145 -0
- package/ChartDataProviderPremium/index.d.ts +1 -0
- package/ChartDataProviderPremium/index.js +16 -0
- package/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +10 -0
- package/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +25 -0
- package/esm/BarChartPremium/BarChartPremium.d.ts +16 -0
- package/esm/BarChartPremium/BarChartPremium.js +1517 -0
- package/esm/BarChartPremium/BarChartPremium.plugins.d.ts +4 -0
- package/esm/BarChartPremium/BarChartPremium.plugins.js +2 -0
- package/esm/BarChartPremium/index.d.ts +2 -0
- package/esm/BarChartPremium/index.js +2 -0
- package/esm/BarChartPremium/useBarChartPremiumProps.d.ts +23 -0
- package/esm/BarChartPremium/useBarChartPremiumProps.js +11 -0
- package/esm/ChartDataProviderPremium/ChartDataProviderPremium.d.ts +46 -0
- package/esm/ChartDataProviderPremium/ChartDataProviderPremium.js +140 -0
- package/esm/ChartDataProviderPremium/index.d.ts +1 -0
- package/esm/ChartDataProviderPremium/index.js +1 -0
- package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.d.ts +10 -0
- package/esm/ChartDataProviderPremium/useChartDataProviderPremiumProps.js +19 -0
- package/esm/index.js +1 -1
- package/esm/internals/plugins/allPlugins.d.ts +8 -0
- package/esm/internals/plugins/allPlugins.js +6 -0
- package/index.js +1 -1
- package/internals/plugins/allPlugins.d.ts +8 -0
- package/internals/plugins/allPlugins.js +12 -0
- package/package.json +6 -6
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
|
|
2
|
+
import { type BarChartProPluginSignatures } from '@mui/x-charts-pro/BarChartPro';
|
|
3
|
+
export type BarChartPremiumPluginSignatures = BarChartProPluginSignatures;
|
|
4
|
+
export declare const BAR_CHART_PREMIUM_PLUGINS: ConvertSignaturesIntoPlugins<BarChartPremiumPluginSignatures>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BAR_CHART_PREMIUM_PLUGINS = void 0;
|
|
7
|
+
var _BarChartPro = require("@mui/x-charts-pro/BarChartPro");
|
|
8
|
+
const BAR_CHART_PREMIUM_PLUGINS = exports.BAR_CHART_PREMIUM_PLUGINS = _BarChartPro.BAR_CHART_PRO_PLUGINS;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _BarChartPremium = require("./BarChartPremium");
|
|
7
|
+
Object.keys(_BarChartPremium).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _BarChartPremium[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _BarChartPremium[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _BarChartPremium2 = require("./BarChartPremium.plugins");
|
|
18
|
+
Object.keys(_BarChartPremium2).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _BarChartPremium2[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _BarChartPremium2[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type BarChartPremiumProps } from "./BarChartPremium.js";
|
|
2
|
+
/**
|
|
3
|
+
* A helper function that extracts BarChartPremiumProps from the input props
|
|
4
|
+
* and returns an object with props for the children components of BarChartPremium.
|
|
5
|
+
*
|
|
6
|
+
* @param props The input props for BarChartPremium
|
|
7
|
+
* @returns An object with props for the children components of BarChartPremium
|
|
8
|
+
*/
|
|
9
|
+
export declare function useBarChartPremiumProps(props: BarChartPremiumProps): {
|
|
10
|
+
chartsWrapperProps: Omit<import("@mui/x-charts").ChartsWrapperProps, "children">;
|
|
11
|
+
chartContainerProps: import("@mui/x-charts").ChartContainerProps<"bar", import("@mui/x-charts").BarChartPluginSignatures>;
|
|
12
|
+
barPlotProps: import("@mui/x-charts").BarPlotProps;
|
|
13
|
+
gridProps: import("@mui/x-charts").ChartsGridProps;
|
|
14
|
+
clipPathProps: import("@mui/x-charts").ChartsClipPathProps;
|
|
15
|
+
clipPathGroupProps: {
|
|
16
|
+
clipPath: string;
|
|
17
|
+
};
|
|
18
|
+
overlayProps: import("@mui/x-charts/ChartsOverlay").ChartsOverlayProps;
|
|
19
|
+
chartsAxisProps: import("@mui/x-charts").ChartsAxisProps;
|
|
20
|
+
axisHighlightProps: import("@mui/x-charts").ChartsAxisHighlightProps;
|
|
21
|
+
legendProps: import("@mui/x-charts").ChartsLegendSlotExtension;
|
|
22
|
+
children: React.ReactNode;
|
|
23
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useBarChartPremiumProps = useBarChartPremiumProps;
|
|
7
|
+
var _internals = require("@mui/x-charts/internals");
|
|
8
|
+
/**
|
|
9
|
+
* A helper function that extracts BarChartPremiumProps from the input props
|
|
10
|
+
* and returns an object with props for the children components of BarChartPremium.
|
|
11
|
+
*
|
|
12
|
+
* @param props The input props for BarChartPremium
|
|
13
|
+
* @returns An object with props for the children components of BarChartPremium
|
|
14
|
+
*/
|
|
15
|
+
function useBarChartPremiumProps(props) {
|
|
16
|
+
return (0, _internals.useBarChartProps)(props);
|
|
17
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,208 @@
|
|
|
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.23.0
|
|
9
|
+
|
|
10
|
+
_Dec 23, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🧮 Support Data Grid `size`, `size(true)`, and `size(false)` [aggregations for `'boolean'` column type](https://mui.com/x/react-data-grid/aggregation/#usage-with-row-grouping)
|
|
15
|
+
- 🔎 Allow zooming a heatmap
|
|
16
|
+
|
|
17
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
18
|
+
@henkerik, @sai6855
|
|
19
|
+
|
|
20
|
+
The following team members contributed to this release:
|
|
21
|
+
@alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @flaviendelangle, @JCQuintas, @mapache-salvaje, @MBilalShafi, @siriwatknp
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@8.23.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix columns state and columns prop sync issue (#20703) @arminmeh
|
|
28
|
+
- [DataGrid] Fix filter datetime with seconds (#20557) @siriwatknp
|
|
29
|
+
- [DataGrid] Add new `includeHeaderFilters` flag to include header filters when autosizing columns (#20510) @siriwatknp
|
|
30
|
+
- [DataGrid] Prevent default on `Enter` key down when starting editing (#20751) @siriwatknp
|
|
31
|
+
- [l10n] Improve Portuguese from Portugal (pt-PT) locale (#20722) @Copilot
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@8.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@8.23.0`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPro] Fix crash on rows change in tree data with pagination (#20215) @Copilot
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@8.23.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid-pro@8.23.0`, plus:
|
|
42
|
+
|
|
43
|
+
- [DataGridPremium] Add aggregation for `'boolean'` column type (#20683) @arminmeh
|
|
44
|
+
- [DataGridPremium] Fix strategy value computation with row grouping (#20725) @MBilalShafi
|
|
45
|
+
- [DataGridPremium] Handle `isRowSelectable()` checks for the rows missing due to `keepNonExistentRowsSelected` (#20668) @arminmeh
|
|
46
|
+
|
|
47
|
+
### Date and Time Pickers
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers@8.23.0`
|
|
50
|
+
|
|
51
|
+
Internal changes.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-date-pickers-pro@8.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-date-pickers@8.23.0`.
|
|
56
|
+
|
|
57
|
+
### Charts
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-charts@8.23.0`
|
|
60
|
+
|
|
61
|
+
- [charts] Custom stack functions implementation (#20679) @JCQuintas
|
|
62
|
+
- [charts] Extract keyboard focus navigation to the series config (#20693) @alexfauquette
|
|
63
|
+
- [charts] Fix demo not wrapping in mobile (#20713) @JCQuintas
|
|
64
|
+
- [charts] Fix missing dependencies in `x-charts-vendor` (#20685) @henkerik
|
|
65
|
+
- [charts] Remove webkit test differences (#20707) @JCQuintas
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@8.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@8.23.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-pro] Allow registering preview plots from higher tier packages (#20716) @bernardobelchior
|
|
72
|
+
- [charts-pro] Fix erroneous behavior when adding/removing pointers from zoom&pan gestures (#20698) @JCQuintas
|
|
73
|
+
- [charts-pro] Move heatmap highlight handling to plot component (#20701) @bernardobelchior
|
|
74
|
+
- [charts-pro] Add zoom to heatmap (#20708) @bernardobelchior
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-charts-premium@8.23.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
77
|
+
|
|
78
|
+
Same changes as in `@mui/x-charts-pro@8.23.0`.
|
|
79
|
+
|
|
80
|
+
### Tree View
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-tree-view@8.23.0`
|
|
83
|
+
|
|
84
|
+
- [tree view] Add new APIs to disable selection feature for tree view item (#20666) @siriwatknp
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-tree-view-pro@8.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
|
+
|
|
88
|
+
Same changes as in `@mui/x-tree-view@8.23.0`.
|
|
89
|
+
|
|
90
|
+
### Codemod
|
|
91
|
+
|
|
92
|
+
#### `@mui/x-codemod@8.23.0`
|
|
93
|
+
|
|
94
|
+
Internal changes.
|
|
95
|
+
|
|
96
|
+
### Docs
|
|
97
|
+
|
|
98
|
+
- [docs] Clarify feature availability and relationship between Community and Pro/Premium docs (#20714) @mapache-salvaje
|
|
99
|
+
- [docs] Copyedit Tree View docs and apply new component style rules (DX-19) (#20652) @mapache-salvaje
|
|
100
|
+
- [docs] Fix `ColumnPinningDynamicRowHeight` demo (#20750) @sai6855
|
|
101
|
+
- [docs] Clean up Charts docs sidebar (DX-97) (#20700) @alelthomas
|
|
102
|
+
- [docs] Fix tick labels not being shown on a demo (#20718) @sai6855
|
|
103
|
+
|
|
104
|
+
### Core
|
|
105
|
+
|
|
106
|
+
- [code-infra] Bump prettier to 3.7.4 (#20709) @JCQuintas
|
|
107
|
+
- [code-infra] Fix contributor generation logic in changelog script (#20705) @brijeshb42
|
|
108
|
+
|
|
109
|
+
## 8.22.1
|
|
110
|
+
|
|
111
|
+
_Dec 17, 2025_
|
|
112
|
+
|
|
113
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
114
|
+
|
|
115
|
+
- 🌎 Improve Swedish (sv-SE) locale on the Data Grid
|
|
116
|
+
- 🐞 Bugfixes
|
|
117
|
+
|
|
118
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
119
|
+
@KyeongJooni, @VismaAndreasIvarsson
|
|
120
|
+
|
|
121
|
+
The following team members contributed to this release:
|
|
122
|
+
@alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @Janpot, @JCQuintas, @mapache-salvaje, @michelengelen, @mj12albert, @prakhargupta1, @romgrk, @siriwatknp
|
|
123
|
+
|
|
124
|
+
### Data Grid
|
|
125
|
+
|
|
126
|
+
#### `@mui/x-data-grid@8.22.1`
|
|
127
|
+
|
|
128
|
+
- [data grid] Fix column menu keyboard shortcut (#20621) @mj12albert
|
|
129
|
+
- [data grid] Fix row checkbox disabled state on first render and keep cell focusable (ARIA) (#20641) @michelengelen
|
|
130
|
+
- [data grid] Fix tree data selection bug (#20528) @michelengelen
|
|
131
|
+
- [data grid] Prevent clear cell selection on edit mode (#20544) @siriwatknp
|
|
132
|
+
- [data grid] Refactor column merge logic to prioritize defined properties only (#20640) @michelengelen
|
|
133
|
+
- [data grid] Reset row spanning on row expansion change (#20661) @siriwatknp
|
|
134
|
+
- [data grid] Resize newly added rows while resize action is happening (#20676)
|
|
135
|
+
- [l10n] Improve Swedish (sv-SE) locale (#20682) @VismaAndreasIvarsson
|
|
136
|
+
|
|
137
|
+
#### `@mui/x-data-grid-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
138
|
+
|
|
139
|
+
Same changes as in `@mui/x-data-grid@8.22.1`.
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-data-grid-premium@8.22.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
142
|
+
|
|
143
|
+
Same changes as in `@mui/x-data-grid-pro@8.22.1`, plus:
|
|
144
|
+
|
|
145
|
+
- [DataGridPremium] Import `useId()` from `@mui/utils` to maintain React 17 compatibility (#20635) @arminmeh
|
|
146
|
+
|
|
147
|
+
### Date and Time Pickers
|
|
148
|
+
|
|
149
|
+
#### `@mui/x-date-pickers@8.22.1`
|
|
150
|
+
|
|
151
|
+
- [pickers] Add minutesStep validation test (#20672) @KyeongJooni
|
|
152
|
+
- [pickers] Fix `onAccept()` returning wrong year after selecting year then month (#20639) @michelengelen
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-date-pickers-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
|
+
|
|
156
|
+
Same changes as in `@mui/x-date-pickers@8.22.1`.
|
|
157
|
+
|
|
158
|
+
### Charts
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-charts@8.22.1`
|
|
161
|
+
|
|
162
|
+
- [charts] Extract `FocusedPieArc` from `PieArcPlot` (#20613) @alexfauquette
|
|
163
|
+
- [charts] Fix regression on the highlight control (#20627) @alexfauquette
|
|
164
|
+
- [charts] Refactor: `useSelector()` => `store.use()` (#20681) @romgrk
|
|
165
|
+
- [charts] Remove duplicated types (#20694) @alexfauquette
|
|
166
|
+
- [charts] Remove unused generics from bar charts (#20642) @bernardobelchior
|
|
167
|
+
- [charts] Simplify tooltip position getter for pie chart (#20625) @alexfauquette
|
|
168
|
+
|
|
169
|
+
#### `@mui/x-charts-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
170
|
+
|
|
171
|
+
Same changes as in `@mui/x-charts@8.22.1`, plus:
|
|
172
|
+
|
|
173
|
+
- [charts-pro] Add heatmap performance benchmark (#20695) @bernardobelchior
|
|
174
|
+
|
|
175
|
+
#### `@mui/x-charts-premium@8.22.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
176
|
+
|
|
177
|
+
Same changes as in `@mui/x-charts-pro@8.22.1`, plus:
|
|
178
|
+
|
|
179
|
+
- [charts-premium] Create `BarChartPremium` (#20643) @bernardobelchior
|
|
180
|
+
|
|
181
|
+
### Tree View
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-tree-view@8.22.1`
|
|
184
|
+
|
|
185
|
+
Internal changes.
|
|
186
|
+
|
|
187
|
+
#### `@mui/x-tree-view-pro@8.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
188
|
+
|
|
189
|
+
Same changes as in `@mui/x-tree-view@8.22.1`.
|
|
190
|
+
|
|
191
|
+
### Codemod
|
|
192
|
+
|
|
193
|
+
#### `@mui/x-codemod@8.22.1`
|
|
194
|
+
|
|
195
|
+
Internal changes.
|
|
196
|
+
|
|
197
|
+
### Docs
|
|
198
|
+
|
|
199
|
+
- [docs] Add button to GitHub source code for the Data Grid advanced demos (DX-50) (#20633) @alelthomas
|
|
200
|
+
- [docs] Remove `seriesConfig` to prevent future confusion (#20678) @alexfauquette
|
|
201
|
+
- [docs] Revise the Data Grid's API object doc for clarity and style (#20649) @mapache-salvaje
|
|
202
|
+
- [docs] Update list of charts (#20479) @prakhargupta1
|
|
203
|
+
|
|
204
|
+
### Core
|
|
205
|
+
|
|
206
|
+
- [code-infra] Regression tests improvements (#20441) @Janpot
|
|
207
|
+
- [code-infra] Test utils upgrade (#20592) @Janpot
|
|
208
|
+
- [code-infra] Try to fix the Tree View flacky tests (#20573) @JCQuintas
|
|
209
|
+
|
|
8
210
|
## 8.22.0
|
|
9
211
|
|
|
10
212
|
_Dec 11, 2025_
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartProviderProps } from '@mui/x-charts/internals';
|
|
2
|
+
import { type ChartDataProviderProProps } from '@mui/x-charts-pro/ChartDataProviderPro';
|
|
3
|
+
import { type ChartsSlotPropsPro, type ChartsSlotsPro } from '@mui/x-charts-pro/internals';
|
|
4
|
+
import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
5
|
+
export type ChartDataProviderPremiumProps<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>> = ChartDataProviderProProps<TSeries, TSignatures> & ChartProviderProps<TSeries, TSignatures>['pluginParams'] & {
|
|
6
|
+
/**
|
|
7
|
+
* Slots to customize charts' components.
|
|
8
|
+
*/
|
|
9
|
+
slots?: Partial<ChartsSlotsPro>;
|
|
10
|
+
/**
|
|
11
|
+
* The props for the slots.
|
|
12
|
+
*/
|
|
13
|
+
slotProps?: Partial<ChartsSlotPropsPro>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Orchestrates the data providers for the chart components and hooks.
|
|
17
|
+
*
|
|
18
|
+
* Use this component if you have custom HTML components that need to access the chart data.
|
|
19
|
+
*
|
|
20
|
+
* Demos:
|
|
21
|
+
*
|
|
22
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
23
|
+
*
|
|
24
|
+
* API:
|
|
25
|
+
*
|
|
26
|
+
* - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```jsx
|
|
30
|
+
* <ChartDataProviderPro
|
|
31
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
32
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
33
|
+
* >
|
|
34
|
+
* <ChartsSurface>
|
|
35
|
+
* <BarPlot />
|
|
36
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
37
|
+
* </ChartsSurface>
|
|
38
|
+
* {'Custom Legend Component'}
|
|
39
|
+
* </ChartDataProviderPro>
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function ChartDataProviderPremium<TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderPremiumProps<TSeries, TSignatures>): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare namespace ChartDataProviderPremium {
|
|
44
|
+
var propTypes: any;
|
|
45
|
+
}
|
|
46
|
+
export { ChartDataProviderPremium };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.ChartDataProviderPremium = ChartDataProviderPremium;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _Watermark = require("@mui/x-license/Watermark");
|
|
12
|
+
var _internals = require("@mui/x-charts/internals");
|
|
13
|
+
var _ChartsLocalizationProvider = require("@mui/x-charts/ChartsLocalizationProvider");
|
|
14
|
+
var _useLicenseVerifier = require("@mui/x-license/useLicenseVerifier");
|
|
15
|
+
var _allPlugins = require("../internals/plugins/allPlugins");
|
|
16
|
+
var _useChartDataProviderPremiumProps = require("./useChartDataProviderPremiumProps");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
|
+
const releaseInfo = "MTc2NjUzNDQwMDAwMA==";
|
|
19
|
+
const packageIdentifier = 'x-charts-premium';
|
|
20
|
+
/**
|
|
21
|
+
* Orchestrates the data providers for the chart components and hooks.
|
|
22
|
+
*
|
|
23
|
+
* Use this component if you have custom HTML components that need to access the chart data.
|
|
24
|
+
*
|
|
25
|
+
* Demos:
|
|
26
|
+
*
|
|
27
|
+
* - [Composition](https://mui.com/x/api/charts/composition/)
|
|
28
|
+
*
|
|
29
|
+
* API:
|
|
30
|
+
*
|
|
31
|
+
* - [ChartDataProviderPro API](https://mui.com/x/api/charts/chart-data-provider/)
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```jsx
|
|
35
|
+
* <ChartDataProviderPro
|
|
36
|
+
* series={[{ label: "Label", type: "bar", data: [10, 20] }]}
|
|
37
|
+
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
38
|
+
* >
|
|
39
|
+
* <ChartsSurface>
|
|
40
|
+
* <BarPlot />
|
|
41
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
42
|
+
* </ChartsSurface>
|
|
43
|
+
* {'Custom Legend Component'}
|
|
44
|
+
* </ChartDataProviderPro>
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
function ChartDataProviderPremium(props) {
|
|
48
|
+
const {
|
|
49
|
+
children,
|
|
50
|
+
localeText,
|
|
51
|
+
chartProviderProps,
|
|
52
|
+
slots,
|
|
53
|
+
slotProps
|
|
54
|
+
} = (0, _useChartDataProviderPremiumProps.useChartDataProviderPremiumProps)((0, _extends2.default)({}, props, {
|
|
55
|
+
plugins: props.plugins ?? _allPlugins.DEFAULT_PLUGINS
|
|
56
|
+
}));
|
|
57
|
+
(0, _useLicenseVerifier.useLicenseVerifier)(packageIdentifier, releaseInfo);
|
|
58
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_internals.ChartProvider, (0, _extends2.default)({}, chartProviderProps, {
|
|
59
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLocalizationProvider.ChartsLocalizationProvider, {
|
|
60
|
+
localeText: localeText,
|
|
61
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_internals.ChartsSlotsProvider, {
|
|
62
|
+
slots: slots,
|
|
63
|
+
slotProps: slotProps,
|
|
64
|
+
defaultSlots: _internals.defaultSlotsMaterial,
|
|
65
|
+
children: children
|
|
66
|
+
})
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Watermark.Watermark, {
|
|
68
|
+
packageName: packageIdentifier,
|
|
69
|
+
releaseInfo: releaseInfo
|
|
70
|
+
})]
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
process.env.NODE_ENV !== "production" ? ChartDataProviderPremium.propTypes = {
|
|
74
|
+
// ----------------------------- Warning --------------------------------
|
|
75
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
76
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
77
|
+
// ----------------------------------------------------------------------
|
|
78
|
+
apiRef: _propTypes.default.shape({
|
|
79
|
+
current: _propTypes.default.any
|
|
80
|
+
}),
|
|
81
|
+
/**
|
|
82
|
+
* Color palette used to colorize multiple series.
|
|
83
|
+
* @default rainbowSurgePalette
|
|
84
|
+
*/
|
|
85
|
+
colors: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string), _propTypes.default.func]),
|
|
86
|
+
/**
|
|
87
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
88
|
+
*/
|
|
89
|
+
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
90
|
+
/**
|
|
91
|
+
* Options to enable features planned for the next major.
|
|
92
|
+
*/
|
|
93
|
+
experimentalFeatures: _propTypes.default.shape({
|
|
94
|
+
preferStrictDomainInLineCharts: _propTypes.default.bool
|
|
95
|
+
}),
|
|
96
|
+
/**
|
|
97
|
+
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
98
|
+
*/
|
|
99
|
+
height: _propTypes.default.number,
|
|
100
|
+
/**
|
|
101
|
+
* This prop is used to help implement the accessibility logic.
|
|
102
|
+
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
103
|
+
*/
|
|
104
|
+
id: _propTypes.default.string,
|
|
105
|
+
/**
|
|
106
|
+
* Localized text for chart components.
|
|
107
|
+
*/
|
|
108
|
+
localeText: _propTypes.default.object,
|
|
109
|
+
/**
|
|
110
|
+
* The margin between the SVG and the drawing area.
|
|
111
|
+
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
112
|
+
*
|
|
113
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
114
|
+
*/
|
|
115
|
+
margin: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
116
|
+
bottom: _propTypes.default.number,
|
|
117
|
+
left: _propTypes.default.number,
|
|
118
|
+
right: _propTypes.default.number,
|
|
119
|
+
top: _propTypes.default.number
|
|
120
|
+
})]),
|
|
121
|
+
/**
|
|
122
|
+
* The array of series to display.
|
|
123
|
+
* Each type of series has its own specificity.
|
|
124
|
+
* Please refer to the appropriate docs page to learn more about it.
|
|
125
|
+
*/
|
|
126
|
+
series: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
127
|
+
/**
|
|
128
|
+
* If `true`, animations are skipped.
|
|
129
|
+
* If unset or `false`, the animations respects the user's `prefers-reduced-motion` setting.
|
|
130
|
+
*/
|
|
131
|
+
skipAnimation: _propTypes.default.bool,
|
|
132
|
+
/**
|
|
133
|
+
* The props for the slots.
|
|
134
|
+
*/
|
|
135
|
+
slotProps: _propTypes.default.object,
|
|
136
|
+
/**
|
|
137
|
+
* Slots to customize charts' components.
|
|
138
|
+
*/
|
|
139
|
+
slots: _propTypes.default.object,
|
|
140
|
+
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
141
|
+
/**
|
|
142
|
+
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
143
|
+
*/
|
|
144
|
+
width: _propTypes.default.number
|
|
145
|
+
} : void 0;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ChartDataProviderPremium.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _ChartDataProviderPremium = require("./ChartDataProviderPremium");
|
|
7
|
+
Object.keys(_ChartDataProviderPremium).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _ChartDataProviderPremium[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ChartDataProviderPremium[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ChartAnyPluginSignature, type ChartSeriesType } from '@mui/x-charts/internals';
|
|
2
|
+
import type { ChartDataProviderPremiumProps } from "./ChartDataProviderPremium.js";
|
|
3
|
+
import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
4
|
+
export declare const useChartDataProviderPremiumProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderPremiumProps<TSeries, TSignatures>) => {
|
|
5
|
+
children: import("react").ReactNode;
|
|
6
|
+
localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
|
|
7
|
+
chartProviderProps: import("@mui/x-charts/internals").ChartProviderProps<TSeries, TSignatures>;
|
|
8
|
+
slots: Partial<import("@mui/x-charts/internals").ChartsSlots> | undefined;
|
|
9
|
+
slotProps: Partial<import("@mui/x-charts/internals").ChartsSlotProps> | undefined;
|
|
10
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useChartDataProviderPremiumProps = void 0;
|
|
8
|
+
var _internals = require("@mui/x-charts/internals");
|
|
9
|
+
const useChartDataProviderPremiumProps = props => {
|
|
10
|
+
const {
|
|
11
|
+
chartProviderProps,
|
|
12
|
+
localeText,
|
|
13
|
+
slots,
|
|
14
|
+
slotProps,
|
|
15
|
+
children
|
|
16
|
+
} = (0, _internals.useChartDataProviderProps)(props);
|
|
17
|
+
return {
|
|
18
|
+
children,
|
|
19
|
+
localeText,
|
|
20
|
+
chartProviderProps,
|
|
21
|
+
slots,
|
|
22
|
+
slotProps
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
exports.useChartDataProviderPremiumProps = useChartDataProviderPremiumProps;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type BarChartProProps } from '@mui/x-charts-pro/BarChartPro';
|
|
3
|
+
export interface BarChartPremiumProps extends BarChartProProps {}
|
|
4
|
+
/**
|
|
5
|
+
* Demos:
|
|
6
|
+
*
|
|
7
|
+
* - [Bars](https://mui.com/x/react-charts/bars/)
|
|
8
|
+
* - [Bar demonstration](https://mui.com/x/react-charts/bar-demo/)
|
|
9
|
+
* - [Stacking](https://mui.com/x/react-charts/stacking/)
|
|
10
|
+
*
|
|
11
|
+
* API:
|
|
12
|
+
*
|
|
13
|
+
* - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
|
|
14
|
+
*/
|
|
15
|
+
declare const BarChartPremium: React.ForwardRefExoticComponent<BarChartPremiumProps & React.RefAttributes<SVGSVGElement>>;
|
|
16
|
+
export { BarChartPremium };
|