@mui/x-tree-view 8.14.0 → 8.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +95 -0
- package/RichTreeView/RichTreeView.js +2 -2
- package/SimpleTreeView/SimpleTreeView.js +2 -2
- package/TreeItemIcon/TreeItemIcon.js +11 -8
- package/esm/RichTreeView/RichTreeView.js +2 -2
- package/esm/SimpleTreeView/SimpleTreeView.js +2 -2
- package/esm/TreeItemIcon/TreeItemIcon.js +9 -6
- package/esm/index.js +1 -1
- package/esm/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.types.d.ts +1 -1
- package/esm/internals/plugins/useTreeViewSelection/useTreeViewSelection.types.d.ts +1 -1
- package/index.js +1 -1
- package/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.types.d.ts +1 -1
- package/internals/plugins/useTreeViewSelection/useTreeViewSelection.types.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,101 @@
|
|
|
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.14.1
|
|
9
|
+
|
|
10
|
+
_Oct 16, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚀 Charts have optimized data structures for closest point calculations — initial render times reduced by ~25% for 1,000+ data points, with greater gains at larger scales (#19790) @bernardobelchior
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
19
|
+
@djpremier, @jacknot, @justdoit1897, @mellis481, @sai6855
|
|
20
|
+
|
|
21
|
+
The following are all team members who have contributed to this release:
|
|
22
|
+
@arminmeh, @bernardobelchior, @brijeshb42, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @noraleonte, @siriwatknp
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid@8.14.1`
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Fix cell not rerendering on `isCellEditable` prop change (#19898) @cherniavskii
|
|
29
|
+
- [DataGrid] Fix virtualizer memory leaks (#19886) @cherniavskii
|
|
30
|
+
- [DataGrid] Fix tree data unable to deselect row for exclude model (#19846) @siriwatknp
|
|
31
|
+
- [l10n] Improve Italian (it-IT) locale (#19322) @jacknot and (#19940) @justdoit1897
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@8.14.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@8.14.1`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPro] Clear cache before new request to the nested request queue after a row has been edited (#19873) @arminmeh
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@8.14.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid-pro@8.14.1`.
|
|
42
|
+
|
|
43
|
+
### Date and Time Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@8.14.1`
|
|
46
|
+
|
|
47
|
+
Internal changes.
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers-pro@8.14.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-date-pickers@8.14.1`.
|
|
52
|
+
|
|
53
|
+
### Charts
|
|
54
|
+
|
|
55
|
+
#### `@mui/x-charts@8.14.1`
|
|
56
|
+
|
|
57
|
+
- [charts] Fix `minBarSize` when y-axis is reversed (#19932) @bernardobelchior
|
|
58
|
+
- [charts] Fix bar chart border radius when axis is reversed (#19895) @bernardobelchior
|
|
59
|
+
- [charts] Fix scatter chart `datasetKeys.id` not being optional (#19897) @bernardobelchior
|
|
60
|
+
- [charts] Use more performant data structure for closest point (#19790) @bernardobelchior
|
|
61
|
+
- [charts] Fix `GaugeValueArc` having wrong class (#19965) @bernardobelchior
|
|
62
|
+
- [charts] Fix `undefined` path when highlight empty line chart axis (#19969) @bernardobelchior
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-charts-pro@8.14.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-charts@8.14.1`, plus:
|
|
67
|
+
|
|
68
|
+
- [charts-pro] Add `highlighting` to Sankey chart (#19662) @JCQuintas
|
|
69
|
+
|
|
70
|
+
#### `@mui/x-charts-premium@8.14.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
71
|
+
|
|
72
|
+
Same changes as in `@mui/x-charts-pro@8.14.1`.
|
|
73
|
+
|
|
74
|
+
### Tree View
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-tree-view@8.14.1`
|
|
77
|
+
|
|
78
|
+
- [tree view] Do not forward the `ownerState` to the icon (#19772) @flaviendelangle
|
|
79
|
+
|
|
80
|
+
#### `@mui/x-tree-view-pro@8.14.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
81
|
+
|
|
82
|
+
Same changes as in `@mui/x-tree-view@8.14.1`.
|
|
83
|
+
|
|
84
|
+
### Codemod
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-codemod@8.14.0`
|
|
87
|
+
|
|
88
|
+
Internal changes.
|
|
89
|
+
|
|
90
|
+
### Docs
|
|
91
|
+
|
|
92
|
+
- [docs] Add `'bumpX'` and `'bumpY'` curve types to the interpolation demo (#19676) @djpremier
|
|
93
|
+
- [docs] Add scatter chart with linear regression demo (#19900) @bernardobelchior
|
|
94
|
+
- [docs] Correctly describe Data Grid's row selection behavior (#19968) @arminmeh
|
|
95
|
+
- [docs] Fix `isExpanded` type in tree view docs (#19092) @mellis481
|
|
96
|
+
|
|
97
|
+
### Core
|
|
98
|
+
|
|
99
|
+
- [code-infra] Disable Netlify cache plugin (#19950) @Janpot
|
|
100
|
+
- [code-infra] Lint json through eslint (#19890) @Janpot
|
|
101
|
+
- [docs-infra] Use published netlify cache plugin package (#19929) @brijeshb42
|
|
102
|
+
|
|
8
103
|
## 8.14.0
|
|
9
104
|
|
|
10
105
|
_Oct 9, 2025_
|
|
@@ -267,7 +267,7 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
267
267
|
* Callback fired when a Tree Item is expanded or collapsed.
|
|
268
268
|
* @param {React.SyntheticEvent | null} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemExpansion()` method.
|
|
269
269
|
* @param {array} itemId The itemId of the modified item.
|
|
270
|
-
* @param {
|
|
270
|
+
* @param {boolean} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
|
|
271
271
|
*/
|
|
272
272
|
onItemExpansionToggle: _propTypes.default.func,
|
|
273
273
|
/**
|
|
@@ -286,7 +286,7 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
286
286
|
* Callback fired when a Tree Item is selected or deselected.
|
|
287
287
|
* @param {React.SyntheticEvent} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemSelection()` method.
|
|
288
288
|
* @param {array} itemId The itemId of the modified item.
|
|
289
|
-
* @param {
|
|
289
|
+
* @param {boolean} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
|
|
290
290
|
*/
|
|
291
291
|
onItemSelectionToggle: _propTypes.default.func,
|
|
292
292
|
/**
|
|
@@ -207,7 +207,7 @@ process.env.NODE_ENV !== "production" ? SimpleTreeView.propTypes = {
|
|
|
207
207
|
* Callback fired when a Tree Item is expanded or collapsed.
|
|
208
208
|
* @param {React.SyntheticEvent | null} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemExpansion()` method.
|
|
209
209
|
* @param {array} itemId The itemId of the modified item.
|
|
210
|
-
* @param {
|
|
210
|
+
* @param {boolean} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
|
|
211
211
|
*/
|
|
212
212
|
onItemExpansionToggle: _propTypes.default.func,
|
|
213
213
|
/**
|
|
@@ -220,7 +220,7 @@ process.env.NODE_ENV !== "production" ? SimpleTreeView.propTypes = {
|
|
|
220
220
|
* Callback fired when a Tree Item is selected or deselected.
|
|
221
221
|
* @param {React.SyntheticEvent} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemSelection()` method.
|
|
222
222
|
* @param {array} itemId The itemId of the modified item.
|
|
223
|
-
* @param {
|
|
223
|
+
* @param {boolean} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
|
|
224
224
|
*/
|
|
225
225
|
onItemSelectionToggle: _propTypes.default.func,
|
|
226
226
|
/**
|
|
@@ -1,20 +1,22 @@
|
|
|
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;
|
|
5
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", {
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.TreeItemIcon = TreeItemIcon;
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
12
|
var React = _interopRequireWildcard(require("react"));
|
|
12
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
14
|
var _resolveComponentProps = _interopRequireDefault(require("@mui/utils/resolveComponentProps"));
|
|
14
|
-
var
|
|
15
|
+
var _useSlotProps2 = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
15
16
|
var _TreeViewStyleContext = require("../internals/TreeViewProvider/TreeViewStyleContext");
|
|
16
17
|
var _icons = require("../icons");
|
|
17
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
+
const _excluded = ["ownerState"];
|
|
18
20
|
function pickIcon(treeItemIcon, treeViewIcon, fallback) {
|
|
19
21
|
if (treeItemIcon !== undefined) {
|
|
20
22
|
return treeItemIcon;
|
|
@@ -53,12 +55,13 @@ function TreeItemIcon(props) {
|
|
|
53
55
|
iconName = 'endIcon';
|
|
54
56
|
}
|
|
55
57
|
const Icon = slots[iconName];
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
const _useSlotProps = (0, _useSlotProps2.default)({
|
|
59
|
+
elementType: Icon,
|
|
60
|
+
externalSlotProps: tempOwnerState => (0, _extends2.default)({}, (0, _resolveComponentProps.default)(slotPropsFromTreeView[iconName], tempOwnerState), (0, _resolveComponentProps.default)(slotPropsFromTreeItem?.[iconName], tempOwnerState)),
|
|
61
|
+
// TODO: Add proper ownerState
|
|
62
|
+
ownerState: {}
|
|
63
|
+
}),
|
|
64
|
+
iconProps = (0, _objectWithoutPropertiesLoose2.default)(_useSlotProps, _excluded);
|
|
62
65
|
if (!Icon) {
|
|
63
66
|
return null;
|
|
64
67
|
}
|
|
@@ -260,7 +260,7 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
260
260
|
* Callback fired when a Tree Item is expanded or collapsed.
|
|
261
261
|
* @param {React.SyntheticEvent | null} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemExpansion()` method.
|
|
262
262
|
* @param {array} itemId The itemId of the modified item.
|
|
263
|
-
* @param {
|
|
263
|
+
* @param {boolean} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
|
|
264
264
|
*/
|
|
265
265
|
onItemExpansionToggle: PropTypes.func,
|
|
266
266
|
/**
|
|
@@ -279,7 +279,7 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
279
279
|
* Callback fired when a Tree Item is selected or deselected.
|
|
280
280
|
* @param {React.SyntheticEvent} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemSelection()` method.
|
|
281
281
|
* @param {array} itemId The itemId of the modified item.
|
|
282
|
-
* @param {
|
|
282
|
+
* @param {boolean} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
|
|
283
283
|
*/
|
|
284
284
|
onItemSelectionToggle: PropTypes.func,
|
|
285
285
|
/**
|
|
@@ -200,7 +200,7 @@ process.env.NODE_ENV !== "production" ? SimpleTreeView.propTypes = {
|
|
|
200
200
|
* Callback fired when a Tree Item is expanded or collapsed.
|
|
201
201
|
* @param {React.SyntheticEvent | null} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemExpansion()` method.
|
|
202
202
|
* @param {array} itemId The itemId of the modified item.
|
|
203
|
-
* @param {
|
|
203
|
+
* @param {boolean} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
|
|
204
204
|
*/
|
|
205
205
|
onItemExpansionToggle: PropTypes.func,
|
|
206
206
|
/**
|
|
@@ -213,7 +213,7 @@ process.env.NODE_ENV !== "production" ? SimpleTreeView.propTypes = {
|
|
|
213
213
|
* Callback fired when a Tree Item is selected or deselected.
|
|
214
214
|
* @param {React.SyntheticEvent} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemSelection()` method.
|
|
215
215
|
* @param {array} itemId The itemId of the modified item.
|
|
216
|
-
* @param {
|
|
216
|
+
* @param {boolean} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
|
|
217
217
|
*/
|
|
218
218
|
onItemSelectionToggle: PropTypes.func,
|
|
219
219
|
/**
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
+
const _excluded = ["ownerState"];
|
|
4
6
|
import * as React from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import resolveComponentProps from '@mui/utils/resolveComponentProps';
|
|
@@ -46,12 +48,13 @@ function TreeItemIcon(props) {
|
|
|
46
48
|
iconName = 'endIcon';
|
|
47
49
|
}
|
|
48
50
|
const Icon = slots[iconName];
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
const _useSlotProps = useSlotProps({
|
|
52
|
+
elementType: Icon,
|
|
53
|
+
externalSlotProps: tempOwnerState => _extends({}, resolveComponentProps(slotPropsFromTreeView[iconName], tempOwnerState), resolveComponentProps(slotPropsFromTreeItem?.[iconName], tempOwnerState)),
|
|
54
|
+
// TODO: Add proper ownerState
|
|
55
|
+
ownerState: {}
|
|
56
|
+
}),
|
|
57
|
+
iconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded);
|
|
55
58
|
if (!Icon) {
|
|
56
59
|
return null;
|
|
57
60
|
}
|
package/esm/index.js
CHANGED
|
@@ -72,7 +72,7 @@ export interface UseTreeViewExpansionParameters {
|
|
|
72
72
|
* Callback fired when a Tree Item is expanded or collapsed.
|
|
73
73
|
* @param {React.SyntheticEvent | null} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemExpansion()` method.
|
|
74
74
|
* @param {array} itemId The itemId of the modified item.
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {boolean} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
|
|
76
76
|
*/
|
|
77
77
|
onItemExpansionToggle?: (event: React.SyntheticEvent | null, itemId: string, isExpanded: boolean) => void;
|
|
78
78
|
/**
|
|
@@ -108,7 +108,7 @@ export interface UseTreeViewSelectionParameters<Multiple extends boolean | undef
|
|
|
108
108
|
* Callback fired when a Tree Item is selected or deselected.
|
|
109
109
|
* @param {React.SyntheticEvent} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemSelection()` method.
|
|
110
110
|
* @param {array} itemId The itemId of the modified item.
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {boolean} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
|
|
112
112
|
*/
|
|
113
113
|
onItemSelectionToggle?: (event: React.SyntheticEvent | null, itemId: string, isSelected: boolean) => void;
|
|
114
114
|
}
|
package/index.js
CHANGED
|
@@ -72,7 +72,7 @@ export interface UseTreeViewExpansionParameters {
|
|
|
72
72
|
* Callback fired when a Tree Item is expanded or collapsed.
|
|
73
73
|
* @param {React.SyntheticEvent | null} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemExpansion()` method.
|
|
74
74
|
* @param {array} itemId The itemId of the modified item.
|
|
75
|
-
* @param {
|
|
75
|
+
* @param {boolean} isExpanded `true` if the item has just been expanded, `false` if it has just been collapsed.
|
|
76
76
|
*/
|
|
77
77
|
onItemExpansionToggle?: (event: React.SyntheticEvent | null, itemId: string, isExpanded: boolean) => void;
|
|
78
78
|
/**
|
|
@@ -108,7 +108,7 @@ export interface UseTreeViewSelectionParameters<Multiple extends boolean | undef
|
|
|
108
108
|
* Callback fired when a Tree Item is selected or deselected.
|
|
109
109
|
* @param {React.SyntheticEvent} event The DOM event that triggered the change. Can be null when the change is caused by the `publicAPI.setItemSelection()` method.
|
|
110
110
|
* @param {array} itemId The itemId of the modified item.
|
|
111
|
-
* @param {
|
|
111
|
+
* @param {boolean} isSelected `true` if the item has just been selected, `false` if it has just been deselected.
|
|
112
112
|
*/
|
|
113
113
|
onItemSelectionToggle?: (event: React.SyntheticEvent | null, itemId: string, isSelected: boolean) => void;
|
|
114
114
|
}
|