@mui/x-charts 9.15.0 → 9.16.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/CHANGELOG.md +162 -0
- package/ChartsContainer/ChartsContainer.js +1 -1
- package/ChartsContainer/ChartsContainer.mjs +1 -1
- package/ChartsLegend/PiecewiseColorLegend.js +1 -3
- package/ChartsLegend/PiecewiseColorLegend.mjs +1 -3
- package/ChartsOverlay/ChartsOverlay.js +4 -2
- package/ChartsOverlay/ChartsOverlay.mjs +4 -2
- package/ChartsTooltip/ChartsTooltip.js +3 -3
- package/ChartsTooltip/ChartsTooltip.mjs +3 -3
- package/ChartsTooltip/ChartsTooltipContainer.js +3 -3
- package/ChartsTooltip/ChartsTooltipContainer.mjs +3 -3
- package/hooks/useAxisTicks.js +1 -1
- package/hooks/useAxisTicks.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/Flatbush.js +1 -0
- package/internals/Flatbush.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.js +2 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.mjs +2 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.js +5 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.mjs +5 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +2 -2
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.mjs +2 -2
- package/internals/seriesHasData.js +2 -1
- package/internals/seriesHasData.mjs +2 -1
- package/internals/shallowEqual.js +1 -3
- package/internals/shallowEqual.mjs +1 -3
- package/locales/elGR.d.mts +1 -0
- package/locales/elGR.d.ts +1 -0
- package/locales/elGR.js +2 -0
- package/locales/elGR.mjs +2 -0
- package/locales/enUS.d.mts +1 -0
- package/locales/enUS.d.ts +1 -0
- package/locales/enUS.js +1 -0
- package/locales/enUS.mjs +1 -0
- package/locales/frFR.d.mts +1 -0
- package/locales/frFR.d.ts +1 -0
- package/locales/frFR.js +1 -0
- package/locales/frFR.mjs +1 -0
- package/locales/nbNO.d.mts +1 -0
- package/locales/nbNO.d.ts +1 -0
- package/locales/nbNO.js +2 -0
- package/locales/nbNO.mjs +2 -0
- package/locales/ptBR.d.mts +1 -0
- package/locales/ptBR.d.ts +1 -0
- package/locales/ptBR.js +2 -0
- package/locales/ptBR.mjs +2 -0
- package/locales/ptPT.d.mts +1 -0
- package/locales/ptPT.d.ts +1 -0
- package/locales/ptPT.js +2 -0
- package/locales/ptPT.mjs +2 -0
- package/locales/svSE.d.mts +1 -0
- package/locales/svSE.d.ts +1 -0
- package/locales/svSE.js +1 -0
- package/locales/svSE.mjs +1 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +4 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +4 -0
- package/locales/utils/getChartsLocalization.d.mts +1 -0
- package/locales/utils/getChartsLocalization.d.ts +1 -0
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,167 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.16.0
|
|
4
|
+
|
|
5
|
+
_Oct 20, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 📊 Excel export in the Charts Premium, with a toolbar entry
|
|
10
|
+
- 👆 Data Grid row reordering on touch and pen devices
|
|
11
|
+
- 🗑️ Confirmation dialog before deleting an event in the Scheduler
|
|
12
|
+
- 🌍 Improve Romanian (ro-RO) locale on the Data Grid and the Date and Time Pickers
|
|
13
|
+
- 🌍 Improve Turkish (tr-TR) locale on the Data Grid, the Date and Time Pickers, and the Scheduler
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
18
|
+
@aozmekik, @cpruijsen, @mustafajw07, @reckter, @vicuts
|
|
19
|
+
|
|
20
|
+
The following team members contributed to this release:
|
|
21
|
+
@arminmeh, @brijeshb42, @cherniavskii, @Janpot, @JCQuintas, @LukasTy, @michelengelen, @noraleonte, @rita-codes
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@9.16.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix `PropsFromSlot` resolving to `any` for `JSXElementConstructor` slots (#23856) @cpruijsen
|
|
28
|
+
- [DataGrid] Fix memory leak on row updates (#23779) @arminmeh
|
|
29
|
+
- [DataGrid] Fix the "is any of" prompt filter text in translated locales (#23833) @LukasTy
|
|
30
|
+
- [DataGrid] Keep keyboard focus after a click on the empty row space (#23862) @michelengelen
|
|
31
|
+
- [DataGrid] Extract column reorder utils (#23834) @noraleonte
|
|
32
|
+
- [DataGrid] Fix popover aria roles (#23878) @noraleonte
|
|
33
|
+
- [l10n] Improve Romanian (ro-RO) locale (#23816) @vicuts
|
|
34
|
+
- [l10n] Improve Turkish (tr-TR) locale (#23912) @aozmekik
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-pro@9.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid@9.16.0`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPro] Allow triggering infinite loading beyond row buffer (#23784) @arminmeh
|
|
41
|
+
- [DataGridPro] Fix toggling `treeData` and `getTreeDataPath` together (#23715) @michelengelen
|
|
42
|
+
- [DataGridPro] Row reorder pointer events for improved touch interaction (#23725) @noraleonte
|
|
43
|
+
- [DataGridPro] Skip the infinite loader when `IntersectionObserver` is unavailable (#23869) @michelengelen
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-data-grid-premium@9.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-data-grid-pro@9.16.0`, plus:
|
|
48
|
+
|
|
49
|
+
- [DataGridPremium] Re-apply aggregation when a column `valueGetter` changes (#23713) @michelengelen
|
|
50
|
+
|
|
51
|
+
### Date and Time Pickers
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-date-pickers@9.16.0`
|
|
54
|
+
|
|
55
|
+
- [l10n] Improve Romanian (ro-RO) locale (#23816) @vicuts
|
|
56
|
+
- [l10n] Improve Turkish (tr-TR) locale (#23912) @aozmekik
|
|
57
|
+
- [pickers] Fix `PropsFromSlot` resolving to `any` for `JSXElementConstructor` slots (#23856) @cpruijsen
|
|
58
|
+
- [pickers] Fix Day.js named-zone elapsed-time additions across DST (#23752) @LukasTy
|
|
59
|
+
- [pickers] Fix empty gap next to the digital clock columns (#23698) @michelengelen
|
|
60
|
+
- [pickers] Fix missing `onYearChange` and duplicate `onMonthChange` calls (#23874) @LukasTy
|
|
61
|
+
- [pickers] Memoize the year list in `YearCalendar` (#23867) @michelengelen
|
|
62
|
+
- [pickers] Use `monthsPerRow` for keyboard navigation in `MonthCalendar` (#23876) @vicuts
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-date-pickers-pro@9.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-date-pickers@9.16.0`.
|
|
67
|
+
|
|
68
|
+
### Charts
|
|
69
|
+
|
|
70
|
+
#### `@mui/x-charts@9.16.0`
|
|
71
|
+
|
|
72
|
+
- [charts] Fix `PropsFromSlot` resolving to `any` for `JSXElementConstructor` slots (#23856) @cpruijsen
|
|
73
|
+
- [charts] Fix aria role on popper (#23939) @noraleonte
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts-pro@9.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-charts@9.16.0`.
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-charts-premium@9.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-charts-pro@9.16.0`, plus:
|
|
82
|
+
|
|
83
|
+
- [charts-premium] Add the Excel export plugin (#23597) @JCQuintas
|
|
84
|
+
- [charts-premium] Add the Excel export toolbar entry (#23644) @JCQuintas
|
|
85
|
+
|
|
86
|
+
### Tree View
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-tree-view@9.16.0`
|
|
89
|
+
|
|
90
|
+
- [tree view] Fix `PropsFromSlot` resolving to `any` for `JSXElementConstructor` slots (#23856) @cpruijsen
|
|
91
|
+
- [TreeView] Fix infinite recursion when a mounted item suspends (#23668) @reckter
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-tree-view-pro@9.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-tree-view@9.16.0`.
|
|
96
|
+
|
|
97
|
+
### Scheduler
|
|
98
|
+
|
|
99
|
+
#### `@mui/x-scheduler@9.0.0-beta.14`
|
|
100
|
+
|
|
101
|
+
- [l10n] Improve Turkish (tr-TR) locale (#23912) @aozmekik
|
|
102
|
+
- [scheduler] Add confirmation dialog for event deletion (#23593) @mustafajw07
|
|
103
|
+
- [scheduler] Extract a generic form store from the event dialog form (#23781) @rita-codes
|
|
104
|
+
- [scheduler] Fix the style overrides key of the responsiveness example (#23838) @rita-codes
|
|
105
|
+
- [scheduler] Mark today with `aria-current="date"` (#23809) @rita-codes
|
|
106
|
+
- [scheduler] Remove duplicated and unused code from the stores (#23854) @rita-codes
|
|
107
|
+
- [scheduler] Show the end date of multi-day events in the read-only event details (#23846) @rita-codes
|
|
108
|
+
- [scheduler] Use `menuitemradio` for the view switcher items (#23807) @rita-codes
|
|
109
|
+
|
|
110
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.14` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
111
|
+
|
|
112
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.14`, plus:
|
|
113
|
+
|
|
114
|
+
- [scheduler-premium] Document `weekStartsOn` and export `EventTimelinePremiumPreferences` (#23811) @rita-codes
|
|
115
|
+
- [scheduler-premium] Include the community models and theme augmentation in the Premium package (#23813) @rita-codes
|
|
116
|
+
- [scheduler-premium] Dependencies - Edit the type and lag from the arrow, cascade on create and edit (#23726) @rita-codes
|
|
117
|
+
- [scheduler-premium] Fix agenda focus skipping surviving occurrences after deleting a recurring event (#23903) @mustafajw07
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
### Chat
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-chat@9.0.0-alpha.20`
|
|
123
|
+
|
|
124
|
+
Internal changes.
|
|
125
|
+
|
|
126
|
+
#### `@mui/x-chat-headless@9.0.0-alpha.20`
|
|
127
|
+
|
|
128
|
+
Internal changes.
|
|
129
|
+
|
|
130
|
+
### Codemod
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-codemod@9.16.0`
|
|
133
|
+
|
|
134
|
+
Internal changes.
|
|
135
|
+
|
|
136
|
+
### Docs
|
|
137
|
+
|
|
138
|
+
- [docs] Replace deprecated APIs in documentation (#23791) @brijeshb42
|
|
139
|
+
- [docs][charts] Fix dead Popper.js documentation links (#23832) @LukasTy
|
|
140
|
+
- [docs][pickers] Add a Year Range Picker placeholder section (#23794) @michelengelen
|
|
141
|
+
- [docs][scheduler] Fix the broken event model and resource snippets (#23840) @rita-codes
|
|
142
|
+
- [docs][scheduler] Point to the event dialog slot instead of promising a customizable form (#23803) @rita-codes
|
|
143
|
+
- [docs][scheduler] Remove the premium rrule from the title property demo (#23805) @rita-codes
|
|
144
|
+
- [docs][scheduler] Use the preset names in the Timeline navigation step table (#23836) @rita-codes
|
|
145
|
+
|
|
146
|
+
### Core
|
|
147
|
+
|
|
148
|
+
- [code-infra] Bump vitest to 5.0.4 and tune browser test concurrency (#23850) @Janpot
|
|
149
|
+
- [code-infra] Fix ts-ignore lint error in AdapterDayjs test (#23843) @LukasTy
|
|
150
|
+
- [code-infra] Group major and minor pragmatic-drag-and-drop renovate updates (#23782) @LukasTy
|
|
151
|
+
- [code-infra] Use flake-fix dry-run (#23849) @Janpot
|
|
152
|
+
- [code-infra] Skip `MUI.GoogleLatin` in changelogs (#23934) @Janpot
|
|
153
|
+
- [code-infra] Wait for `data-screenshot-pending` before regression screenshots (#23772) @Janpot
|
|
154
|
+
- [x-internals] Restore removed exports and pin internal dependencies (#23907) @LukasTy
|
|
155
|
+
- [x-internals] Fix `useStoreEffect` in Strict Mode (#23857) @cherniavskii
|
|
156
|
+
|
|
157
|
+
### Miscellaneous
|
|
158
|
+
|
|
159
|
+
- [infra] Fix package.json metadata (#23712) @Janpot
|
|
160
|
+
- [infra] Remove engines.node from UI packages (#23786) @Janpot
|
|
161
|
+
- [infra] Require explanations for TypeScript error suppressions (#23789) @brijeshb42
|
|
162
|
+
- [pnpm] Prune stale minimumReleaseAgeExclude entries (#23666) @Janpot
|
|
163
|
+
- [virtualizer] Render the rows and columns in view on small scrolls in controlled layout (#23865) @rita-codes
|
|
164
|
+
|
|
3
165
|
## 9.15.0
|
|
4
166
|
|
|
5
167
|
_Oct 6, 2026_
|
|
@@ -52,7 +52,7 @@ const ChartsContainer = exports.ChartsContainer = /*#__PURE__*/React.forwardRef(
|
|
|
52
52
|
}));
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
// @ts-
|
|
55
|
+
// @ts-expect-error The generic call signature does not declare the generated propTypes property.
|
|
56
56
|
if (process.env.NODE_ENV !== "production") ChartsContainer.displayName = "ChartsContainer";
|
|
57
57
|
process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes /* remove-proptypes */ = {
|
|
58
58
|
// ----------------------------- Warning --------------------------------
|
|
@@ -45,7 +45,7 @@ const ChartsContainer = /*#__PURE__*/React.forwardRef(function ChartsContainer(p
|
|
|
45
45
|
}));
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// @ts-
|
|
48
|
+
// @ts-expect-error The generic call signature does not declare the generated propTypes property.
|
|
49
49
|
if (process.env.NODE_ENV !== "production") ChartsContainer.displayName = "ChartsContainer";
|
|
50
50
|
process.env.NODE_ENV !== "production" ? ChartsContainer.propTypes /* remove-proptypes */ = {
|
|
51
51
|
// ----------------------------- Warning --------------------------------
|
|
@@ -211,9 +211,7 @@ const PiecewiseColorLegend = exports.PiecewiseColorLegend = (0, _consumeThemePro
|
|
|
211
211
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Element, {
|
|
212
212
|
role: onItemClick ? 'button' : undefined,
|
|
213
213
|
type: onItemClick ? 'button' : undefined,
|
|
214
|
-
onClick:
|
|
215
|
-
// @ts-ignore onClick is only attached to a button
|
|
216
|
-
onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
214
|
+
onClick: onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
217
215
|
className: (0, _clsx.default)(classes?.item, index === 0 && `${startClass}`, index === orderedColors.length - 1 && `${endClass}`),
|
|
218
216
|
children: [isTextBefore && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabel.ChartsLabel, {
|
|
219
217
|
className: classes?.label,
|
|
@@ -204,9 +204,7 @@ const PiecewiseColorLegend = consumeThemeProps('MuiPiecewiseColorLegend', {
|
|
|
204
204
|
children: /*#__PURE__*/_jsxs(Element, {
|
|
205
205
|
role: onItemClick ? 'button' : undefined,
|
|
206
206
|
type: onItemClick ? 'button' : undefined,
|
|
207
|
-
onClick:
|
|
208
|
-
// @ts-ignore onClick is only attached to a button
|
|
209
|
-
onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
207
|
+
onClick: onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
210
208
|
className: clsx(classes?.item, index === 0 && `${startClass}`, index === orderedColors.length - 1 && `${endClass}`),
|
|
211
209
|
children: [isTextBefore && /*#__PURE__*/_jsx(ChartsLabel, {
|
|
212
210
|
className: classes?.label,
|
|
@@ -28,9 +28,11 @@ function useNoData() {
|
|
|
28
28
|
const seriesItem = series[seriesId];
|
|
29
29
|
|
|
30
30
|
// These prevent a type error when building the package.
|
|
31
|
-
// @ts-
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent when building the community package.
|
|
32
|
+
// @ts-ignore Sankey is added by Premium augmentation, absent when building the community package.
|
|
32
33
|
if (seriesItem.type === 'sankey') {
|
|
33
|
-
// @ts-
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey data is added by Premium augmentation, absent in the community build.
|
|
35
|
+
// @ts-ignore Sankey data is added by Premium augmentation, absent in the community build.
|
|
34
36
|
return seriesItem.data.links.length === 0;
|
|
35
37
|
}
|
|
36
38
|
return seriesItem.data.length === 0;
|
|
@@ -20,9 +20,11 @@ export function useNoData() {
|
|
|
20
20
|
const seriesItem = series[seriesId];
|
|
21
21
|
|
|
22
22
|
// These prevent a type error when building the package.
|
|
23
|
-
// @ts-
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent when building the community package.
|
|
24
|
+
// @ts-ignore Sankey is added by Premium augmentation, absent when building the community package.
|
|
24
25
|
if (seriesItem.type === 'sankey') {
|
|
25
|
-
// @ts-
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey data is added by Premium augmentation, absent in the community build.
|
|
27
|
+
// @ts-ignore Sankey data is added by Premium augmentation, absent in the community build.
|
|
26
28
|
return seriesItem.data.links.length === 0;
|
|
27
29
|
}
|
|
28
30
|
return seriesItem.data.length === 0;
|
|
@@ -56,7 +56,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
56
56
|
*/
|
|
57
57
|
anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
|
|
58
58
|
/**
|
|
59
|
-
* An HTML element, [virtualElement](https://
|
|
59
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
60
60
|
* or a function that returns either.
|
|
61
61
|
* It's used to set the position of the popper.
|
|
62
62
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -109,7 +109,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
109
109
|
* A modifier is a function that is called each time Popper.js needs to
|
|
110
110
|
* compute the position of the popper.
|
|
111
111
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
112
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
112
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
113
113
|
*/
|
|
114
114
|
modifiers: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
115
115
|
data: _propTypes.default.object,
|
|
@@ -132,7 +132,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
132
132
|
*/
|
|
133
133
|
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
134
134
|
/**
|
|
135
|
-
* Options provided to the [`Popper.js`](https://
|
|
135
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
136
136
|
* @default {}
|
|
137
137
|
*/
|
|
138
138
|
popperOptions: _propTypes.default.shape({
|
|
@@ -50,7 +50,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
50
50
|
*/
|
|
51
51
|
anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
|
|
52
52
|
/**
|
|
53
|
-
* An HTML element, [virtualElement](https://
|
|
53
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
54
54
|
* or a function that returns either.
|
|
55
55
|
* It's used to set the position of the popper.
|
|
56
56
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -103,7 +103,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
103
103
|
* A modifier is a function that is called each time Popper.js needs to
|
|
104
104
|
* compute the position of the popper.
|
|
105
105
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
106
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
106
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
107
107
|
*/
|
|
108
108
|
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
109
109
|
data: PropTypes.object,
|
|
@@ -126,7 +126,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
126
126
|
*/
|
|
127
127
|
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
128
128
|
/**
|
|
129
|
-
* Options provided to the [`Popper.js`](https://
|
|
129
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
130
130
|
* @default {}
|
|
131
131
|
*/
|
|
132
132
|
popperOptions: PropTypes.shape({
|
|
@@ -258,7 +258,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
258
258
|
*/
|
|
259
259
|
anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
|
|
260
260
|
/**
|
|
261
|
-
* An HTML element, [virtualElement](https://
|
|
261
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
262
262
|
* or a function that returns either.
|
|
263
263
|
* It's used to set the position of the popper.
|
|
264
264
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -315,7 +315,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
315
315
|
* A modifier is a function that is called each time Popper.js needs to
|
|
316
316
|
* compute the position of the popper.
|
|
317
317
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
318
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
318
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
319
319
|
*/
|
|
320
320
|
modifiers: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
321
321
|
data: _propTypes.default.object,
|
|
@@ -338,7 +338,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
338
338
|
*/
|
|
339
339
|
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
340
340
|
/**
|
|
341
|
-
* Options provided to the [`Popper.js`](https://
|
|
341
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
342
342
|
* @default {}
|
|
343
343
|
*/
|
|
344
344
|
popperOptions: _propTypes.default.shape({
|
|
@@ -251,7 +251,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
251
251
|
*/
|
|
252
252
|
anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
|
|
253
253
|
/**
|
|
254
|
-
* An HTML element, [virtualElement](https://
|
|
254
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
255
255
|
* or a function that returns either.
|
|
256
256
|
* It's used to set the position of the popper.
|
|
257
257
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -308,7 +308,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
308
308
|
* A modifier is a function that is called each time Popper.js needs to
|
|
309
309
|
* compute the position of the popper.
|
|
310
310
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
311
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
311
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
312
312
|
*/
|
|
313
313
|
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
314
314
|
data: PropTypes.object,
|
|
@@ -331,7 +331,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
331
331
|
*/
|
|
332
332
|
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
333
333
|
/**
|
|
334
|
-
* Options provided to the [`Popper.js`](https://
|
|
334
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
335
335
|
* @default {}
|
|
336
336
|
*/
|
|
337
337
|
popperOptions: PropTypes.shape({
|
package/hooks/useAxisTicks.js
CHANGED
|
@@ -69,7 +69,7 @@ function useYAxisTicks(axisId) {
|
|
|
69
69
|
tickLabelPlacement: defaultizedProps.tickLabelPlacement,
|
|
70
70
|
tickSpacing: defaultizedProps.tickSpacing,
|
|
71
71
|
direction: 'y',
|
|
72
|
-
// @ts-expect-error
|
|
72
|
+
// @ts-expect-error The base axis props omit ordinalTimeTicks, which is added by the Pro axis types.
|
|
73
73
|
ordinalTimeTicks: defaultizedProps.ordinalTimeTicks
|
|
74
74
|
});
|
|
75
75
|
}
|
package/hooks/useAxisTicks.mjs
CHANGED
|
@@ -62,7 +62,7 @@ export function useYAxisTicks(axisId) {
|
|
|
62
62
|
tickLabelPlacement: defaultizedProps.tickLabelPlacement,
|
|
63
63
|
tickSpacing: defaultizedProps.tickSpacing,
|
|
64
64
|
direction: 'y',
|
|
65
|
-
// @ts-expect-error
|
|
65
|
+
// @ts-expect-error The base axis props omit ordinalTimeTicks, which is added by the Pro axis types.
|
|
66
66
|
ordinalTimeTicks: defaultizedProps.ordinalTimeTicks
|
|
67
67
|
});
|
|
68
68
|
}
|
package/index.js
CHANGED
package/index.mjs
CHANGED
package/internals/Flatbush.js
CHANGED
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.Flatbush = void 0;
|
|
8
8
|
var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
|
|
9
9
|
var _flatqueue = _interopRequireDefault(require("@mui/x-charts-vendor/flatqueue"));
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- The spatial index buffer and queue types do not yet cover all operations.
|
|
10
11
|
// @ts-nocheck
|
|
11
12
|
/* eslint-disable */
|
|
12
13
|
|
package/internals/Flatbush.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- The spatial index buffer and queue types do not yet cover all operations.
|
|
2
3
|
// @ts-nocheck
|
|
3
4
|
/* eslint-disable */
|
|
4
5
|
import FlatQueue from '@mui/x-charts-vendor/flatqueue';
|
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.createZoomLookup = void 0;
|
|
7
7
|
var _defaultizeZoom = require("./defaultizeZoom");
|
|
8
8
|
const createZoomLookup = axisDirection => (axes = []) => axes.reduce((acc, v) => {
|
|
9
|
-
// @ts-
|
|
9
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Zoom is added by Pro augmentation, absent in the community build.
|
|
10
|
+
// @ts-ignore Zoom is added by Pro augmentation, absent in the community build.
|
|
10
11
|
const {
|
|
11
12
|
zoom,
|
|
12
13
|
id: axisId,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defaultizeZoom, getEffectiveZoomReverse } from "./defaultizeZoom.mjs";
|
|
2
2
|
export const createZoomLookup = axisDirection => (axes = []) => axes.reduce((acc, v) => {
|
|
3
|
-
// @ts-
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Zoom is added by Pro augmentation, absent in the community build.
|
|
4
|
+
// @ts-ignore Zoom is added by Pro augmentation, absent in the community build.
|
|
4
5
|
const {
|
|
5
6
|
zoom,
|
|
6
7
|
id: axisId,
|
|
@@ -22,7 +22,8 @@ function getAxisClickPayload({
|
|
|
22
22
|
}
|
|
23
23
|
const seriesValues = {};
|
|
24
24
|
Object.keys(processedSeries).filter(seriesType => AXIS_CLICK_SERIES_TYPES.has(seriesType)).forEach(seriesType => {
|
|
25
|
-
// @ts-
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Range bar is added by Premium augmentation, absent in the community build.
|
|
26
|
+
// @ts-ignore Range bar is added by Premium augmentation, absent in the community build.
|
|
26
27
|
const seriesTypeConfig = processedSeries[seriesType];
|
|
27
28
|
seriesTypeConfig?.seriesOrder.forEach(seriesId => {
|
|
28
29
|
const seriesItem = seriesTypeConfig.series[seriesId];
|
|
@@ -30,8 +31,9 @@ function getAxisClickPayload({
|
|
|
30
31
|
const providedYAxisId = seriesItem.yAxisId;
|
|
31
32
|
const axisKey = isXAxis ? providedXAxisId : providedYAxisId;
|
|
32
33
|
if (axisKey === undefined || axisKey === axisId) {
|
|
33
|
-
// @ts-
|
|
34
|
-
//
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Range-bar click data is valid only with the opt-in axis-data augmentation.
|
|
35
|
+
// @ts-ignore Range-bar click data is valid only with the opt-in axis-data augmentation.
|
|
36
|
+
// In that case, they should import the module augmentation from `x-charts-premium/moduleAugmentation/rangeBarOnClick`
|
|
35
37
|
// Which adds the proper type to the series data.
|
|
36
38
|
// TODO(v10): Remove this ts-ignore when we can make the breaking change to ChartsAxisData.
|
|
37
39
|
seriesValues[seriesId] = seriesItem.data[dataIndex];
|
|
@@ -16,7 +16,8 @@ export function getAxisClickPayload({
|
|
|
16
16
|
}
|
|
17
17
|
const seriesValues = {};
|
|
18
18
|
Object.keys(processedSeries).filter(seriesType => AXIS_CLICK_SERIES_TYPES.has(seriesType)).forEach(seriesType => {
|
|
19
|
-
// @ts-
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Range bar is added by Premium augmentation, absent in the community build.
|
|
20
|
+
// @ts-ignore Range bar is added by Premium augmentation, absent in the community build.
|
|
20
21
|
const seriesTypeConfig = processedSeries[seriesType];
|
|
21
22
|
seriesTypeConfig?.seriesOrder.forEach(seriesId => {
|
|
22
23
|
const seriesItem = seriesTypeConfig.series[seriesId];
|
|
@@ -24,8 +25,9 @@ export function getAxisClickPayload({
|
|
|
24
25
|
const providedYAxisId = seriesItem.yAxisId;
|
|
25
26
|
const axisKey = isXAxis ? providedXAxisId : providedYAxisId;
|
|
26
27
|
if (axisKey === undefined || axisKey === axisId) {
|
|
27
|
-
// @ts-
|
|
28
|
-
//
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Range-bar click data is valid only with the opt-in axis-data augmentation.
|
|
29
|
+
// @ts-ignore Range-bar click data is valid only with the opt-in axis-data augmentation.
|
|
30
|
+
// In that case, they should import the module augmentation from `x-charts-premium/moduleAugmentation/rangeBarOnClick`
|
|
29
31
|
// Which adds the proper type to the series data.
|
|
30
32
|
// TODO(v10): Remove this ts-ignore when we can make the breaking change to ChartsAxisData.
|
|
31
33
|
seriesValues[seriesId] = seriesItem.data[dataIndex];
|
|
@@ -22,7 +22,7 @@ const useChartItemClick = ({
|
|
|
22
22
|
}
|
|
23
23
|
return instance.registerItemActivationHandler({}, (event, item) => {
|
|
24
24
|
const seriesTypeConfig = store.state.seriesConfig.config[item.type];
|
|
25
|
-
// @ts-
|
|
25
|
+
// @ts-expect-error The series-specific handler expects a narrowed store state and item type.
|
|
26
26
|
const itemWithData = seriesTypeConfig?.getItemWithData?.(store.state, item);
|
|
27
27
|
|
|
28
28
|
// The callback only describes the pointer event unless the user augments the types.
|
|
@@ -41,7 +41,7 @@ const useChartItemClick = ({
|
|
|
41
41
|
}
|
|
42
42
|
let item = undefined;
|
|
43
43
|
for (const seriesType of Object.keys(store.state.seriesConfig.config)) {
|
|
44
|
-
// @ts-
|
|
44
|
+
// @ts-expect-error The series handler requires its own plugin state, but the store type keeps the plugin union.
|
|
45
45
|
item = store.state.seriesConfig.config[seriesType].getItemAtPosition?.(store.state, {
|
|
46
46
|
x: svgPoint.x,
|
|
47
47
|
y: svgPoint.y
|
|
@@ -16,7 +16,7 @@ export const useChartItemClick = ({
|
|
|
16
16
|
}
|
|
17
17
|
return instance.registerItemActivationHandler({}, (event, item) => {
|
|
18
18
|
const seriesTypeConfig = store.state.seriesConfig.config[item.type];
|
|
19
|
-
// @ts-
|
|
19
|
+
// @ts-expect-error The series-specific handler expects a narrowed store state and item type.
|
|
20
20
|
const itemWithData = seriesTypeConfig?.getItemWithData?.(store.state, item);
|
|
21
21
|
|
|
22
22
|
// The callback only describes the pointer event unless the user augments the types.
|
|
@@ -35,7 +35,7 @@ export const useChartItemClick = ({
|
|
|
35
35
|
}
|
|
36
36
|
let item = undefined;
|
|
37
37
|
for (const seriesType of Object.keys(store.state.seriesConfig.config)) {
|
|
38
|
-
// @ts-
|
|
38
|
+
// @ts-expect-error The series handler requires its own plugin state, but the store type keeps the plugin union.
|
|
39
39
|
item = store.state.seriesConfig.config[seriesType].getItemAtPosition?.(store.state, {
|
|
40
40
|
x: svgPoint.x,
|
|
41
41
|
y: svgPoint.y
|
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.seriesHasData = seriesHasData;
|
|
7
7
|
function seriesHasData(series, type, seriesId) {
|
|
8
|
-
// @ts-
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent in the community build.
|
|
9
|
+
// @ts-ignore Sankey is added by Premium augmentation, absent in the community build.
|
|
9
10
|
if (type === 'sankey') {
|
|
10
11
|
return false;
|
|
11
12
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export function seriesHasData(series, type, seriesId) {
|
|
2
|
-
// @ts-
|
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent in the community build.
|
|
3
|
+
// @ts-ignore Sankey is added by Premium augmentation, absent in the community build.
|
|
3
4
|
if (type === 'sankey') {
|
|
4
5
|
return false;
|
|
5
6
|
}
|
|
@@ -27,9 +27,7 @@ function shallowEqual(objA, objB) {
|
|
|
27
27
|
// Test for A's keys different from B.
|
|
28
28
|
for (let i = 0; i < keysA.length; i += 1) {
|
|
29
29
|
const currentKey = keysA[i];
|
|
30
|
-
if (!Object.prototype.hasOwnProperty.call(objB, currentKey) ||
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
!Object.is(objA[currentKey], objB[currentKey])) {
|
|
30
|
+
if (!Object.prototype.hasOwnProperty.call(objB, currentKey) || !Object.is(objA[currentKey], objB[currentKey])) {
|
|
33
31
|
return false;
|
|
34
32
|
}
|
|
35
33
|
}
|
|
@@ -21,9 +21,7 @@ export function shallowEqual(objA, objB) {
|
|
|
21
21
|
// Test for A's keys different from B.
|
|
22
22
|
for (let i = 0; i < keysA.length; i += 1) {
|
|
23
23
|
const currentKey = keysA[i];
|
|
24
|
-
if (!Object.prototype.hasOwnProperty.call(objB, currentKey) ||
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
!Object.is(objA[currentKey], objB[currentKey])) {
|
|
24
|
+
if (!Object.prototype.hasOwnProperty.call(objB, currentKey) || !Object.is(objA[currentKey], objB[currentKey])) {
|
|
27
25
|
return false;
|
|
28
26
|
}
|
|
29
27
|
}
|
package/locales/elGR.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const elGR: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/elGR.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const elGR: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/elGR.js
CHANGED
|
@@ -17,6 +17,8 @@ const elGRLocaleText = exports.elGRLocaleText = {
|
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
toolbarExportPrint: 'Εκτύπωση',
|
|
19
19
|
toolbarExportImage: mimeType => `Εξαγωγή ως ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`,
|
|
20
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
21
|
+
|
|
20
22
|
// Charts renderer configuration
|
|
21
23
|
chartTypeBar: 'Μπάρα',
|
|
22
24
|
chartTypeColumn: 'Στήλη',
|
package/locales/elGR.mjs
CHANGED
|
@@ -11,6 +11,8 @@ export const elGRLocaleText = {
|
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
toolbarExportPrint: 'Εκτύπωση',
|
|
13
13
|
toolbarExportImage: mimeType => `Εξαγωγή ως ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
14
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
15
|
+
|
|
14
16
|
// Charts renderer configuration
|
|
15
17
|
chartTypeBar: 'Μπάρα',
|
|
16
18
|
chartTypeColumn: 'Στήλη',
|
package/locales/enUS.d.mts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const enUS: {
|
|
|
13
13
|
toolbarExport?: string | undefined;
|
|
14
14
|
toolbarExportPrint?: string | undefined;
|
|
15
15
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
16
|
+
toolbarExportExcel?: string | undefined;
|
|
16
17
|
chartTypeBar?: string | undefined;
|
|
17
18
|
chartTypeColumn?: string | undefined;
|
|
18
19
|
chartTypeLine?: string | undefined;
|
package/locales/enUS.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ export declare const enUS: {
|
|
|
13
13
|
toolbarExport?: string | undefined;
|
|
14
14
|
toolbarExportPrint?: string | undefined;
|
|
15
15
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
16
|
+
toolbarExportExcel?: string | undefined;
|
|
16
17
|
chartTypeBar?: string | undefined;
|
|
17
18
|
chartTypeColumn?: string | undefined;
|
|
18
19
|
chartTypeLine?: string | undefined;
|
package/locales/enUS.js
CHANGED
|
@@ -19,6 +19,7 @@ const enUSLocaleText = exports.enUSLocaleText = {
|
|
|
19
19
|
// Toolbar Export Menu
|
|
20
20
|
toolbarExportPrint: 'Print',
|
|
21
21
|
toolbarExportImage: mimeType => `Export as ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`,
|
|
22
|
+
toolbarExportExcel: 'Export as Excel',
|
|
22
23
|
// Charts renderer configuration
|
|
23
24
|
chartTypeBar: 'Bar',
|
|
24
25
|
chartTypeColumn: 'Column',
|
package/locales/enUS.mjs
CHANGED
|
@@ -14,6 +14,7 @@ export const enUSLocaleText = {
|
|
|
14
14
|
// Toolbar Export Menu
|
|
15
15
|
toolbarExportPrint: 'Print',
|
|
16
16
|
toolbarExportImage: mimeType => `Export as ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
17
|
+
toolbarExportExcel: 'Export as Excel',
|
|
17
18
|
// Charts renderer configuration
|
|
18
19
|
chartTypeBar: 'Bar',
|
|
19
20
|
chartTypeColumn: 'Column',
|
package/locales/frFR.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const frFR: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/frFR.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const frFR: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/frFR.js
CHANGED
|
@@ -17,6 +17,7 @@ const frFRLocalText = exports.frFRLocalText = {
|
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
// toolbarExportPrint: 'Print',
|
|
19
19
|
// toolbarExportImage: mimeType => `Export as ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
20
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
20
21
|
|
|
21
22
|
// Charts renderer configuration
|
|
22
23
|
chartTypeBar: 'Barre',
|
package/locales/frFR.mjs
CHANGED
|
@@ -11,6 +11,7 @@ export const frFRLocalText = {
|
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
// toolbarExportPrint: 'Print',
|
|
13
13
|
// toolbarExportImage: mimeType => `Export as ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
14
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
14
15
|
|
|
15
16
|
// Charts renderer configuration
|
|
16
17
|
chartTypeBar: 'Barre',
|
package/locales/nbNO.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const nbNO: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/nbNO.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const nbNO: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/nbNO.js
CHANGED
|
@@ -17,6 +17,8 @@ const nbNOLocaleText = exports.nbNOLocaleText = {
|
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
toolbarExportPrint: 'Skriv ut',
|
|
19
19
|
toolbarExportImage: mimeType => `Eksporter som ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`,
|
|
20
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
21
|
+
|
|
20
22
|
// Charts renderer configuration
|
|
21
23
|
chartTypeBar: 'Stolpe',
|
|
22
24
|
chartTypeColumn: 'Kolonne',
|
package/locales/nbNO.mjs
CHANGED
|
@@ -11,6 +11,8 @@ export const nbNOLocaleText = {
|
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
toolbarExportPrint: 'Skriv ut',
|
|
13
13
|
toolbarExportImage: mimeType => `Eksporter som ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
14
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
15
|
+
|
|
14
16
|
// Charts renderer configuration
|
|
15
17
|
chartTypeBar: 'Stolpe',
|
|
16
18
|
chartTypeColumn: 'Kolonne',
|
package/locales/ptBR.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ptBR: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/ptBR.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ptBR: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/ptBR.js
CHANGED
|
@@ -17,6 +17,8 @@ const ptBRLocaleText = exports.ptBRLocaleText = {
|
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
toolbarExportPrint: 'Imprimir',
|
|
19
19
|
toolbarExportImage: mimeType => `Exportar como ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`,
|
|
20
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
21
|
+
|
|
20
22
|
// Charts renderer configuration
|
|
21
23
|
chartTypeBar: 'Barra',
|
|
22
24
|
chartTypeColumn: 'Coluna',
|
package/locales/ptBR.mjs
CHANGED
|
@@ -11,6 +11,8 @@ export const ptBRLocaleText = {
|
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
toolbarExportPrint: 'Imprimir',
|
|
13
13
|
toolbarExportImage: mimeType => `Exportar como ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
14
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
15
|
+
|
|
14
16
|
// Charts renderer configuration
|
|
15
17
|
chartTypeBar: 'Barra',
|
|
16
18
|
chartTypeColumn: 'Coluna',
|
package/locales/ptPT.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ptPT: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/ptPT.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const ptPT: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/ptPT.js
CHANGED
|
@@ -17,6 +17,8 @@ const ptPTLocaleText = exports.ptPTLocaleText = {
|
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
toolbarExportPrint: 'Imprimir',
|
|
19
19
|
toolbarExportImage: mimeType => `Exportar como ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`,
|
|
20
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
21
|
+
|
|
20
22
|
// Charts renderer configuration
|
|
21
23
|
chartTypeBar: 'Barras',
|
|
22
24
|
chartTypeColumn: 'Colunas',
|
package/locales/ptPT.mjs
CHANGED
|
@@ -11,6 +11,8 @@ export const ptPTLocaleText = {
|
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
toolbarExportPrint: 'Imprimir',
|
|
13
13
|
toolbarExportImage: mimeType => `Exportar como ${imageMimeTypes[mimeType] ?? mimeType}`,
|
|
14
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
15
|
+
|
|
14
16
|
// Charts renderer configuration
|
|
15
17
|
chartTypeBar: 'Barras',
|
|
16
18
|
chartTypeColumn: 'Colunas',
|
package/locales/svSE.d.mts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const svSE: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/svSE.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const svSE: {
|
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
14
|
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
|
+
toolbarExportExcel?: string | undefined;
|
|
15
16
|
chartTypeBar?: string | undefined;
|
|
16
17
|
chartTypeColumn?: string | undefined;
|
|
17
18
|
chartTypeLine?: string | undefined;
|
package/locales/svSE.js
CHANGED
|
@@ -17,6 +17,7 @@ const svSELocaleText = exports.svSELocaleText = {
|
|
|
17
17
|
// Toolbar Export Menu
|
|
18
18
|
toolbarExportPrint: 'Skriv ut',
|
|
19
19
|
toolbarExportImage: mimeType => `Exportera som ${_imageMimeTypes.imageMimeTypes[mimeType] ?? mimeType}`
|
|
20
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
20
21
|
|
|
21
22
|
// Charts renderer configuration
|
|
22
23
|
// chartTypeBar: 'Bar',
|
package/locales/svSE.mjs
CHANGED
|
@@ -11,6 +11,7 @@ export const svSELocaleText = {
|
|
|
11
11
|
// Toolbar Export Menu
|
|
12
12
|
toolbarExportPrint: 'Skriv ut',
|
|
13
13
|
toolbarExportImage: mimeType => `Exportera som ${imageMimeTypes[mimeType] ?? mimeType}`
|
|
14
|
+
// toolbarExportExcel: 'Export as Excel',
|
|
14
15
|
|
|
15
16
|
// Charts renderer configuration
|
|
16
17
|
// chartTypeBar: 'Bar',
|
|
@@ -32,6 +32,10 @@ export interface ChartsLocaleText {
|
|
|
32
32
|
* @returns {string} The localized string for an export image button.
|
|
33
33
|
*/
|
|
34
34
|
toolbarExportImage: (mimeType: ChartImageExportMimeType | string & {}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Text for the Excel button in the toolbar's export menu.
|
|
37
|
+
*/
|
|
38
|
+
toolbarExportExcel: string;
|
|
35
39
|
/**
|
|
36
40
|
* Label for the bar chart type.
|
|
37
41
|
*/
|
|
@@ -32,6 +32,10 @@ export interface ChartsLocaleText {
|
|
|
32
32
|
* @returns {string} The localized string for an export image button.
|
|
33
33
|
*/
|
|
34
34
|
toolbarExportImage: (mimeType: ChartImageExportMimeType | string & {}) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Text for the Excel button in the toolbar's export menu.
|
|
37
|
+
*/
|
|
38
|
+
toolbarExportExcel: string;
|
|
35
39
|
/**
|
|
36
40
|
* Label for the bar chart type.
|
|
37
41
|
*/
|
|
@@ -16,6 +16,7 @@ export declare const getChartsLocalization: (chartsTranslations: Partial<ChartsL
|
|
|
16
16
|
toolbarExport?: string | undefined;
|
|
17
17
|
toolbarExportPrint?: string | undefined;
|
|
18
18
|
toolbarExportImage?: ((mimeType: import("./imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
19
|
+
toolbarExportExcel?: string | undefined;
|
|
19
20
|
chartTypeBar?: string | undefined;
|
|
20
21
|
chartTypeColumn?: string | undefined;
|
|
21
22
|
chartTypeLine?: string | undefined;
|
|
@@ -16,6 +16,7 @@ export declare const getChartsLocalization: (chartsTranslations: Partial<ChartsL
|
|
|
16
16
|
toolbarExport?: string | undefined;
|
|
17
17
|
toolbarExportPrint?: string | undefined;
|
|
18
18
|
toolbarExportImage?: ((mimeType: import("./imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
19
|
+
toolbarExportExcel?: string | undefined;
|
|
19
20
|
chartTypeBar?: string | undefined;
|
|
20
21
|
chartTypeColumn?: string | undefined;
|
|
21
22
|
chartTypeLine?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.16.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of MUI X Charts components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.29.7 || ^8.0.0",
|
|
31
|
-
"@base-ui/utils": "^0.
|
|
32
|
-
"@mui/utils": "^9.
|
|
33
|
-
"@mui/x-charts-vendor": "
|
|
34
|
-
"@mui/x-internal-gestures": "
|
|
35
|
-
"@mui/x-internals": "
|
|
36
|
-
"bezier-easing": "^3.
|
|
31
|
+
"@base-ui/utils": "^0.5.0",
|
|
32
|
+
"@mui/utils": "^9.5.0",
|
|
33
|
+
"@mui/x-charts-vendor": "9.15.0",
|
|
34
|
+
"@mui/x-internal-gestures": "9.16.0",
|
|
35
|
+
"@mui/x-internals": "9.16.0",
|
|
36
|
+
"bezier-easing": "^3.2.0",
|
|
37
37
|
"clsx": "^2.1.1",
|
|
38
38
|
"prop-types": "^15.8.1",
|
|
39
39
|
"reselect": "^5.3.0",
|
|
@@ -55,9 +55,6 @@
|
|
|
55
55
|
"optional": true
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
|
-
"engines": {
|
|
59
|
-
"node": ">=14.0.0"
|
|
60
|
-
},
|
|
61
58
|
"type": "commonjs",
|
|
62
59
|
"exports": {
|
|
63
60
|
"./package.json": "./package.json",
|