@mui/x-tree-view 7.0.0-beta.2 → 7.0.0-beta.3
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 +73 -9
- package/TreeItem/useTreeItemState.js +2 -2
- package/index.js +1 -1
- package/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
- package/legacy/TreeItem/useTreeItemState.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
- package/modern/TreeItem/useTreeItemState.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
- package/node/TreeItem/useTreeItemState.js +2 -2
- package/node/index.js +1 -1
- package/node/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,70 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## v7.0.0-beta.3
|
|
7
|
+
|
|
8
|
+
_Feb 16, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Charts get a [built in grid](https://next.mui.com/x/react-charts/axis/#grid)
|
|
13
|
+
|
|
14
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/74299f54-f020-4135-b38c-dc88a230db30" width="510" alt="Charts Grid" />
|
|
15
|
+
|
|
16
|
+
- 🎛️ Charts get a [Gauge component](https://next.mui.com/x/react-charts/gauge/).
|
|
17
|
+
|
|
18
|
+
<img src="https://github.com/mui/mui-x/assets/45398769/fb7a94b5-bef6-4fc2-a0cd-d6ff5b60fa8b" width="510" alt="Guage Chart" />
|
|
19
|
+
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
|
|
22
|
+
- 📚 Documentation improvements
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### Breaking changes
|
|
27
|
+
|
|
28
|
+
- The `rowEditCommit` event and the related prop `onRowEditCommit` was removed. The [`processRowUpdate`](https://next.mui.com/x/react-data-grid/editing/#the-processrowupdate-callback) prop can be used in place.
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid@7.0.0-beta.3`
|
|
31
|
+
|
|
32
|
+
- [DataGrid] Performance: avoid style invalidation (#12019) @romgrk
|
|
33
|
+
- [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12073) @MBilalShafi
|
|
34
|
+
- [DataGrid] Fix styling grid filter input single select (#11520) @FreakDroid
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.3`.
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
|
|
43
|
+
|
|
44
|
+
### Charts / `@mui/x-charts@7.0.0-beta.3`
|
|
45
|
+
|
|
46
|
+
- [charts] Add Gauge component (#11996) @alexfauquette
|
|
47
|
+
- [charts] Add a `ChartsGrid` component (#11034) @alexfauquette
|
|
48
|
+
|
|
49
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.3`
|
|
50
|
+
|
|
51
|
+
- [TreeView] Remove instance existence checks (#12066) @flaviendelangle
|
|
52
|
+
|
|
53
|
+
### Docs
|
|
54
|
+
|
|
55
|
+
- [docs] Complete charts API pages (#12038) @alexfauquette
|
|
56
|
+
- [docs] Add more illustrations to the charts overview page (#12041) @danilo-leal
|
|
57
|
+
- [docs] Fix 301 redirection to StackBlitz @oliviertassinari
|
|
58
|
+
- [docs] Fix Tree space to match the reset of the docs @oliviertassinari
|
|
59
|
+
- [docs] Fix `dayOfWeekFormatter` typo in the pickers v6 to v7 migration document (#12043) @StylesTrip
|
|
60
|
+
- [docs] Fix redirection @oliviertassinari
|
|
61
|
+
- [docs] Fix typo for `AdapterDateFnsV3` (#12036) @flaviendelangle
|
|
62
|
+
- [docs] Removed `focused` prop from demo (#12092) @michelengelen
|
|
63
|
+
|
|
64
|
+
### Core
|
|
65
|
+
|
|
66
|
+
- [core] Fix CodeSandbox CI template @oliviertassinari
|
|
67
|
+
- [core] Sort prop asc (#12033) @oliviertassinari
|
|
68
|
+
- [core] Bump monorepo (#12055) @alexfauquette
|
|
69
|
+
|
|
6
70
|
## v7.0.0-beta.2
|
|
7
71
|
|
|
8
72
|
_Feb 9, 2024_
|
|
@@ -17,7 +81,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
17
81
|
|
|
18
82
|
### Data Grid
|
|
19
83
|
|
|
20
|
-
#### `@mui/x-data-grid@
|
|
84
|
+
#### `@mui/x-data-grid@7.0.0-beta.2`
|
|
21
85
|
|
|
22
86
|
- [DataGrid] Add `removeAllFilterItems` as a reason of `onFilterModelChange` callback (#11911) @shaharyar-shamshi
|
|
23
87
|
- [DataGrid] Add slot typings (#11795) @romgrk
|
|
@@ -27,35 +91,35 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
27
91
|
- [DataGrid] Improve vertical scrolling performance (#11924) @romgrk
|
|
28
92
|
- [l10n] Improve Danish (da-DK) locale (#11877) @ShahrazH
|
|
29
93
|
|
|
30
|
-
#### `@mui/x-data-grid-pro@
|
|
94
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
95
|
|
|
32
96
|
Same changes as in `@mui/x-data-grid@v7.0.0-beta.2`.
|
|
33
97
|
|
|
34
98
|
#### `@mui/x-data-grid-premium@v7.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
99
|
|
|
36
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
100
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.2`, plus:
|
|
37
101
|
|
|
38
102
|
- [DataGridPremium] Fix autosize grouping cell (#11870) @romgrk
|
|
39
103
|
- [DataGridPremium] Fix clipboard paste not working with Caps Lock enabled (#11965) @shaharyar-shamshi
|
|
40
104
|
|
|
41
105
|
### Date Pickers
|
|
42
106
|
|
|
43
|
-
#### `@mui/x-date-pickers@
|
|
107
|
+
#### `@mui/x-date-pickers@7.0.0-beta.2`
|
|
44
108
|
|
|
45
109
|
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11936) @LukasTy
|
|
46
110
|
- [pickers] Limit the valid values of `TDate` (#11791) @flaviendelangle
|
|
47
111
|
|
|
48
|
-
#### `@mui/x-date-pickers-pro@
|
|
112
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
113
|
|
|
50
|
-
Same changes as in `@mui/x-date-pickers@
|
|
114
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.2`.
|
|
51
115
|
|
|
52
|
-
### Charts / `@mui/x-charts@
|
|
116
|
+
### Charts / `@mui/x-charts@7.0.0-beta.2`
|
|
53
117
|
|
|
54
118
|
- [charts] Add `reverse` property to axes (#11899) @alexfauquette
|
|
55
119
|
- [charts] Allow series ids to be numbers (#11941) @alexfauquette
|
|
56
120
|
- [charts] Support UTC date formatting in tooltip (#11943) @shaharyar-shamshi
|
|
57
121
|
|
|
58
|
-
### Tree View / `@mui/x-tree-view@
|
|
122
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.2`
|
|
59
123
|
|
|
60
124
|
- [TreeView] Correctly detect if an item is expandable (#11963) @swalker326
|
|
61
125
|
- [TreeView] Polish the default design & revise the simple version pages (#11529) @danilo-leal
|
|
@@ -71,7 +135,7 @@ Same changes as in `@mui/x-date-pickers@v7.0.0-beta.2`.
|
|
|
71
135
|
+import { LicenseInfo } from '@mui/x-license';
|
|
72
136
|
```
|
|
73
137
|
|
|
74
|
-
`@mui/x-license@
|
|
138
|
+
`@mui/x-license@7.0.0-beta.2`
|
|
75
139
|
|
|
76
140
|
- [license] Rename `@mui/x-license-pro` to `@mui/x-license` (#11938) @cherniavskii
|
|
77
141
|
|
|
@@ -12,7 +12,7 @@ export function useTreeItemState(nodeId) {
|
|
|
12
12
|
const selected = instance.isNodeSelected(nodeId);
|
|
13
13
|
const disabled = instance.isNodeDisabled(nodeId);
|
|
14
14
|
const handleExpansion = event => {
|
|
15
|
-
if (
|
|
15
|
+
if (!disabled) {
|
|
16
16
|
if (!focused) {
|
|
17
17
|
instance.focusNode(event, nodeId);
|
|
18
18
|
}
|
|
@@ -25,7 +25,7 @@ export function useTreeItemState(nodeId) {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
const handleSelection = event => {
|
|
28
|
-
if (
|
|
28
|
+
if (!disabled) {
|
|
29
29
|
if (!focused) {
|
|
30
30
|
instance.focusNode(event, nodeId);
|
|
31
31
|
}
|
package/index.js
CHANGED
|
@@ -89,7 +89,7 @@ const useTreeViewJSXNodesItemPlugin = ({
|
|
|
89
89
|
} = useDescendant(descendant);
|
|
90
90
|
React.useEffect(() => {
|
|
91
91
|
// On the first render a node's index will be -1. We want to wait for the real index.
|
|
92
|
-
if (
|
|
92
|
+
if (index !== -1) {
|
|
93
93
|
instance.insertJSXNode({
|
|
94
94
|
id: nodeId,
|
|
95
95
|
idAttribute: id,
|
|
@@ -103,7 +103,7 @@ const useTreeViewJSXNodesItemPlugin = ({
|
|
|
103
103
|
return undefined;
|
|
104
104
|
}, [instance, parentId, index, nodeId, expandable, disabled, id]);
|
|
105
105
|
React.useEffect(() => {
|
|
106
|
-
if (
|
|
106
|
+
if (label) {
|
|
107
107
|
var _contentRef$current$t, _contentRef$current;
|
|
108
108
|
return instance.mapFirstCharFromJSX(nodeId, ((_contentRef$current$t = (_contentRef$current = contentRef.current) == null ? void 0 : _contentRef$current.textContent) != null ? _contentRef$current$t : '').substring(0, 1).toLowerCase());
|
|
109
109
|
}
|
|
@@ -9,7 +9,7 @@ export function useTreeItemState(nodeId) {
|
|
|
9
9
|
var selected = instance.isNodeSelected(nodeId);
|
|
10
10
|
var disabled = instance.isNodeDisabled(nodeId);
|
|
11
11
|
var handleExpansion = function handleExpansion(event) {
|
|
12
|
-
if (
|
|
12
|
+
if (!disabled) {
|
|
13
13
|
if (!focused) {
|
|
14
14
|
instance.focusNode(event, nodeId);
|
|
15
15
|
}
|
|
@@ -22,7 +22,7 @@ export function useTreeItemState(nodeId) {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
var handleSelection = function handleSelection(event) {
|
|
25
|
-
if (
|
|
25
|
+
if (!disabled) {
|
|
26
26
|
if (!focused) {
|
|
27
27
|
instance.focusNode(event, nodeId);
|
|
28
28
|
}
|
package/legacy/index.js
CHANGED
|
@@ -89,7 +89,7 @@ var useTreeViewJSXNodesItemPlugin = function useTreeViewJSXNodesItemPlugin(_ref2
|
|
|
89
89
|
parentId = _useDescendant.parentId;
|
|
90
90
|
React.useEffect(function () {
|
|
91
91
|
// On the first render a node's index will be -1. We want to wait for the real index.
|
|
92
|
-
if (
|
|
92
|
+
if (index !== -1) {
|
|
93
93
|
instance.insertJSXNode({
|
|
94
94
|
id: nodeId,
|
|
95
95
|
idAttribute: id,
|
|
@@ -105,7 +105,7 @@ var useTreeViewJSXNodesItemPlugin = function useTreeViewJSXNodesItemPlugin(_ref2
|
|
|
105
105
|
return undefined;
|
|
106
106
|
}, [instance, parentId, index, nodeId, expandable, disabled, id]);
|
|
107
107
|
React.useEffect(function () {
|
|
108
|
-
if (
|
|
108
|
+
if (label) {
|
|
109
109
|
var _contentRef$current$t, _contentRef$current;
|
|
110
110
|
return instance.mapFirstCharFromJSX(nodeId, ((_contentRef$current$t = (_contentRef$current = contentRef.current) == null ? void 0 : _contentRef$current.textContent) != null ? _contentRef$current$t : '').substring(0, 1).toLowerCase());
|
|
111
111
|
}
|
|
@@ -12,7 +12,7 @@ export function useTreeItemState(nodeId) {
|
|
|
12
12
|
const selected = instance.isNodeSelected(nodeId);
|
|
13
13
|
const disabled = instance.isNodeDisabled(nodeId);
|
|
14
14
|
const handleExpansion = event => {
|
|
15
|
-
if (
|
|
15
|
+
if (!disabled) {
|
|
16
16
|
if (!focused) {
|
|
17
17
|
instance.focusNode(event, nodeId);
|
|
18
18
|
}
|
|
@@ -25,7 +25,7 @@ export function useTreeItemState(nodeId) {
|
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
const handleSelection = event => {
|
|
28
|
-
if (
|
|
28
|
+
if (!disabled) {
|
|
29
29
|
if (!focused) {
|
|
30
30
|
instance.focusNode(event, nodeId);
|
|
31
31
|
}
|
package/modern/index.js
CHANGED
|
@@ -89,7 +89,7 @@ const useTreeViewJSXNodesItemPlugin = ({
|
|
|
89
89
|
} = useDescendant(descendant);
|
|
90
90
|
React.useEffect(() => {
|
|
91
91
|
// On the first render a node's index will be -1. We want to wait for the real index.
|
|
92
|
-
if (
|
|
92
|
+
if (index !== -1) {
|
|
93
93
|
instance.insertJSXNode({
|
|
94
94
|
id: nodeId,
|
|
95
95
|
idAttribute: id,
|
|
@@ -103,7 +103,7 @@ const useTreeViewJSXNodesItemPlugin = ({
|
|
|
103
103
|
return undefined;
|
|
104
104
|
}, [instance, parentId, index, nodeId, expandable, disabled, id]);
|
|
105
105
|
React.useEffect(() => {
|
|
106
|
-
if (
|
|
106
|
+
if (label) {
|
|
107
107
|
return instance.mapFirstCharFromJSX(nodeId, (contentRef.current?.textContent ?? '').substring(0, 1).toLowerCase());
|
|
108
108
|
}
|
|
109
109
|
return undefined;
|
|
@@ -18,7 +18,7 @@ function useTreeItemState(nodeId) {
|
|
|
18
18
|
const selected = instance.isNodeSelected(nodeId);
|
|
19
19
|
const disabled = instance.isNodeDisabled(nodeId);
|
|
20
20
|
const handleExpansion = event => {
|
|
21
|
-
if (
|
|
21
|
+
if (!disabled) {
|
|
22
22
|
if (!focused) {
|
|
23
23
|
instance.focusNode(event, nodeId);
|
|
24
24
|
}
|
|
@@ -31,7 +31,7 @@ function useTreeItemState(nodeId) {
|
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
const handleSelection = event => {
|
|
34
|
-
if (
|
|
34
|
+
if (!disabled) {
|
|
35
35
|
if (!focused) {
|
|
36
36
|
instance.focusNode(event, nodeId);
|
|
37
37
|
}
|
package/node/index.js
CHANGED
|
@@ -99,7 +99,7 @@ const useTreeViewJSXNodesItemPlugin = ({
|
|
|
99
99
|
} = (0, _DescendantProvider.useDescendant)(descendant);
|
|
100
100
|
React.useEffect(() => {
|
|
101
101
|
// On the first render a node's index will be -1. We want to wait for the real index.
|
|
102
|
-
if (
|
|
102
|
+
if (index !== -1) {
|
|
103
103
|
instance.insertJSXNode({
|
|
104
104
|
id: nodeId,
|
|
105
105
|
idAttribute: id,
|
|
@@ -113,7 +113,7 @@ const useTreeViewJSXNodesItemPlugin = ({
|
|
|
113
113
|
return undefined;
|
|
114
114
|
}, [instance, parentId, index, nodeId, expandable, disabled, id]);
|
|
115
115
|
React.useEffect(() => {
|
|
116
|
-
if (
|
|
116
|
+
if (label) {
|
|
117
117
|
return instance.mapFirstCharFromJSX(nodeId, (contentRef.current?.textContent ?? '').substring(0, 1).toLowerCase());
|
|
118
118
|
}
|
|
119
119
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view",
|
|
3
|
-
"version": "7.0.0-beta.
|
|
3
|
+
"version": "7.0.0-beta.3",
|
|
4
4
|
"description": "The community edition of the tree view components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.23.9",
|
|
36
|
-
"@mui/base": "^5.0.0-beta.
|
|
37
|
-
"@mui/system": "^5.15.
|
|
38
|
-
"@mui/utils": "^5.15.
|
|
36
|
+
"@mui/base": "^5.0.0-beta.36",
|
|
37
|
+
"@mui/system": "^5.15.9",
|
|
38
|
+
"@mui/utils": "^5.15.9",
|
|
39
39
|
"@types/react-transition-group": "^4.4.10",
|
|
40
40
|
"clsx": "^2.1.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|