@mui/x-tree-view 7.28.1 → 7.29.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 +240 -0
- package/TreeItem/useTreeItemState.js +1 -1
- package/hooks/useTreeItem2Utils/useTreeItem2Utils.js +1 -1
- package/hooks/useTreeViewApiRef.d.ts +2 -1
- package/index.js +1 -1
- package/modern/TreeItem/useTreeItemState.js +1 -1
- package/modern/hooks/useTreeItem2Utils/useTreeItem2Utils.js +1 -1
- package/modern/index.js +1 -1
- package/node/TreeItem/useTreeItemState.js +1 -1
- package/node/hooks/useTreeItem2Utils/useTreeItem2Utils.js +1 -1
- package/node/index.js +1 -1
- package/package.json +5 -5
- package/useTreeItem2/useTreeItem2.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,246 @@
|
|
|
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
|
+
## 7.29.1
|
|
7
|
+
|
|
8
|
+
_Apr 23, 2025_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
|
|
14
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
15
|
+
@lhilgert9
|
|
16
|
+
|
|
17
|
+
Following are all team members who have contributed to this release:
|
|
18
|
+
@arminmeh, @cherniavskii, @flaviendelangle, @LukasTy, @romgrk.
|
|
19
|
+
|
|
20
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
21
|
+
|
|
22
|
+
### Data Grid
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-data-grid@7.29.1`
|
|
25
|
+
|
|
26
|
+
- [DataGrid] Prevent scrollbars from showing on top (#17410) @romgrk
|
|
27
|
+
|
|
28
|
+
#### `@mui/x-data-grid-pro@7.29.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
29
|
+
|
|
30
|
+
Same changes as in `@mui/x-data-grid@7.29.1`, plus:
|
|
31
|
+
|
|
32
|
+
- [DataGridPro] Avoid proptypes warnings with header filters in React 17 (#17492) @cherniavskii
|
|
33
|
+
- [DataGridPro] Fix expandable rows detail content height updates (#17509) @arminmeh
|
|
34
|
+
- [DataGridPro] Fix row virtualization not working in list view (#17404) @cherniavskii
|
|
35
|
+
- [DataGridPro] Move locales re-export to allow proper tree shaking (#17438) @lhilgert9
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@7.29.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@7.29.1`, plus:
|
|
40
|
+
|
|
41
|
+
- [DataGridPremium] Use `groupingValueGetter` for row grouping on the server (#17423) @cherniavskii
|
|
42
|
+
|
|
43
|
+
### Date and Time Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@7.29.1`
|
|
46
|
+
|
|
47
|
+
Internal changes.
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers-pro@7.29.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-date-pickers@7.29.1`.
|
|
52
|
+
|
|
53
|
+
### Charts
|
|
54
|
+
|
|
55
|
+
#### `@mui/x-charts@7.29.1`
|
|
56
|
+
|
|
57
|
+
Internal changes.
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-charts-pro@7.29.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
60
|
+
|
|
61
|
+
Same changes as in `@mui/x-charts@7.29.1`.
|
|
62
|
+
|
|
63
|
+
### Tree View
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-tree-view@7.29.1`
|
|
66
|
+
|
|
67
|
+
Internal changes.
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-tree-view-pro@7.29.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-tree-view@7.29.1`, plus:
|
|
72
|
+
|
|
73
|
+
- [RichTreeViewPro] Fix drag and drop issue with label editing (#17415) @flaviendelangle
|
|
74
|
+
|
|
75
|
+
### Docs
|
|
76
|
+
|
|
77
|
+
- [docs] Use MUI X v7 packages in CodeSandbox and StackBlitz (#17516) @cherniavskii
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
|
|
81
|
+
- [core] Bump monorepo (#17437) @LukasTy
|
|
82
|
+
|
|
83
|
+
## 7.29.0
|
|
84
|
+
|
|
85
|
+
_Apr 16, 2025_
|
|
86
|
+
|
|
87
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
88
|
+
|
|
89
|
+
- 🐞 Bugfixes
|
|
90
|
+
- 🌍 Improve Hebrew (he-IL), Polish (pl-PL), and Swedish (sv-SE) locales on the Data Grid
|
|
91
|
+
- 🌍 Improve Czech (cs-CZ) and Slovak (sk-SK) locales on the Date and Time Pickers
|
|
92
|
+
|
|
93
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
94
|
+
@lubka272, @ptuukkan, @iddan, @sofortdagmbh
|
|
95
|
+
|
|
96
|
+
Following are all team members who have contributed to this release:
|
|
97
|
+
@michelengelen, @oliviertassinari, @michelengelen, @LukasTy.
|
|
98
|
+
|
|
99
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
100
|
+
|
|
101
|
+
### Data Grid
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-data-grid@7.29.0`
|
|
104
|
+
|
|
105
|
+
- [l10n] Improve Swedish (sv-SE) locale (#17306) @ptuukkan
|
|
106
|
+
- [l10n] Improve Hebrew (he-IL) locale (#16516) @iddan
|
|
107
|
+
- [l10n] Improve Polish (pl-PL) locale (#17306) @sofortdagmbh
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-data-grid-pro@7.29.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
110
|
+
|
|
111
|
+
Same changes as in `@mui/x-data-grid@7.29.0`.
|
|
112
|
+
|
|
113
|
+
#### `@mui/x-data-grid-premium@7.29.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
114
|
+
|
|
115
|
+
Same changes as in `@mui/x-data-grid-pro@7.29.0`, plus:
|
|
116
|
+
|
|
117
|
+
- [DataGridPremium] Fix stale aggregation results after filtering (#17303) @cherniavskii
|
|
118
|
+
- [DataGridPremium] Fix aggregated values sorting (#17382) @cherniavskii
|
|
119
|
+
|
|
120
|
+
### Date and Time Pickers
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-date-pickers@7.29.0`
|
|
123
|
+
|
|
124
|
+
- [l10n] Improve Slovak (sk-SK) locale (#17204) @lubka272
|
|
125
|
+
- [l10n] Improve Czech (cs-CZ) locale (#17205) @lubka272
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-date-pickers-pro@7.29.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
128
|
+
|
|
129
|
+
Same changes as in `@mui/x-date-pickers@7.29.0`.
|
|
130
|
+
|
|
131
|
+
### Charts
|
|
132
|
+
|
|
133
|
+
#### `@mui/x-charts@7.29.0`
|
|
134
|
+
|
|
135
|
+
Internal changes.
|
|
136
|
+
|
|
137
|
+
#### `@mui/x-charts-pro@7.29.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
138
|
+
|
|
139
|
+
Same changes as in `@mui/x-charts@7.29.0`.
|
|
140
|
+
|
|
141
|
+
### Tree View
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-tree-view@7.29.0`
|
|
144
|
+
|
|
145
|
+
Internal changes.
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-tree-view-pro@7.29.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
148
|
+
|
|
149
|
+
Same changes as in `@mui/x-tree-view@7.29.0`.
|
|
150
|
+
|
|
151
|
+
### Core
|
|
152
|
+
|
|
153
|
+
- [core] Cleanup `@mui` dependency versions (#17390) @LukasTy
|
|
154
|
+
|
|
155
|
+
### Docs
|
|
156
|
+
|
|
157
|
+
- [docs] Fix 404 link on the marketing page (#17276) @oliviertassinari
|
|
158
|
+
- [docs] Fix country columns throwing on grouping (#17317) @cherniavskii
|
|
159
|
+
- [release] Changes to v7 for major release (#17320) @michelengelen
|
|
160
|
+
|
|
161
|
+
## 7.28.3
|
|
162
|
+
|
|
163
|
+
_Apr 3, 2025_
|
|
164
|
+
|
|
165
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
166
|
+
|
|
167
|
+
- 🐞 Bugfixes
|
|
168
|
+
|
|
169
|
+
Team members who have contributed to this release:
|
|
170
|
+
@cherniavskii, @LukasTy, @MBilalShafi.
|
|
171
|
+
|
|
172
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
173
|
+
|
|
174
|
+
### Data Grid
|
|
175
|
+
|
|
176
|
+
#### `@mui/x-data-grid@7.28.3`
|
|
177
|
+
|
|
178
|
+
Internal changes.
|
|
179
|
+
|
|
180
|
+
#### `@mui/x-data-grid-pro@7.28.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
181
|
+
|
|
182
|
+
Same changes as in `@mui/x-data-grid@7.28.3`, plus:
|
|
183
|
+
|
|
184
|
+
- [DataGridPro] Data source: Allow expanding groups with unknown children count (#17149) @MBilalShafi
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-data-grid-premium@7.28.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
187
|
+
|
|
188
|
+
Same changes as in `@mui/x-data-grid-pro@7.28.3`.
|
|
189
|
+
|
|
190
|
+
### Date and Time Pickers
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-date-pickers@7.28.3`
|
|
193
|
+
|
|
194
|
+
Internal changes.
|
|
195
|
+
|
|
196
|
+
#### `@mui/x-date-pickers-pro@7.28.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
197
|
+
|
|
198
|
+
Same changes as in `@mui/x-date-pickers@7.28.3`.
|
|
199
|
+
|
|
200
|
+
### Docs
|
|
201
|
+
|
|
202
|
+
- [docs] Update Localization Provider JSDoc link (#17208) @LukasTy
|
|
203
|
+
- [docs] Use v6 core packages in MUI X v7 docs (#17171) @cherniavskii
|
|
204
|
+
|
|
205
|
+
## 7.28.2
|
|
206
|
+
|
|
207
|
+
_Mar 28, 2025_
|
|
208
|
+
|
|
209
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
210
|
+
|
|
211
|
+
- 🐞 Bugfixes
|
|
212
|
+
|
|
213
|
+
Team members who have contributed to this release:
|
|
214
|
+
@flaviendelangle, @LukasTy, @arminmeh.
|
|
215
|
+
|
|
216
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
217
|
+
|
|
218
|
+
### Data Grid
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-data-grid@7.28.2`
|
|
221
|
+
|
|
222
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17117) @arminmeh
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-data-grid-pro@7.28.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
225
|
+
|
|
226
|
+
Same changes as in `@mui/x-data-grid@7.28.2`.
|
|
227
|
+
|
|
228
|
+
#### `@mui/x-data-grid-premium@7.28.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
229
|
+
|
|
230
|
+
Same changes as in `@mui/x-data-grid-pro@7.28.2`.
|
|
231
|
+
|
|
232
|
+
### Date and Time Pickers
|
|
233
|
+
|
|
234
|
+
#### `@mui/x-date-pickers@7.28.2`
|
|
235
|
+
|
|
236
|
+
- [fields] Improve the check for year in `doesSectionFormatHaveLeadingZeros` (#17112) @flaviendelangle
|
|
237
|
+
|
|
238
|
+
#### `@mui/x-date-pickers-pro@7.28.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
239
|
+
|
|
240
|
+
Same changes as in `@mui/x-date-pickers@7.28.2`.
|
|
241
|
+
|
|
242
|
+
### Core
|
|
243
|
+
|
|
244
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17109) @LukasTy
|
|
245
|
+
|
|
6
246
|
## 7.28.1
|
|
7
247
|
|
|
8
248
|
_Mar 21, 2025_
|
|
@@ -40,7 +40,7 @@ export function useTreeItemState(itemId) {
|
|
|
40
40
|
};
|
|
41
41
|
const handleSelection = event => {
|
|
42
42
|
if (!disabled) {
|
|
43
|
-
if (!focused) {
|
|
43
|
+
if (!focused && !editing) {
|
|
44
44
|
instance.focusItem(event, itemId);
|
|
45
45
|
}
|
|
46
46
|
const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
|
|
@@ -54,7 +54,7 @@ export const useTreeItem2Utils = ({
|
|
|
54
54
|
if (status.disabled) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
if (!status.focused) {
|
|
57
|
+
if (!status.focused && !status.editing) {
|
|
58
58
|
instance.focusItem(event, itemId);
|
|
59
59
|
}
|
|
60
60
|
const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TreeViewAnyPluginSignature, TreeViewPublicAPI } from '../internals/models';
|
|
3
|
+
import { RichTreeViewPluginSignatures } from '../RichTreeView/RichTreeView.plugins';
|
|
3
4
|
/**
|
|
4
5
|
* Hook that instantiates a [[TreeViewApiRef]].
|
|
5
6
|
*/
|
|
6
|
-
export declare const useTreeViewApiRef: <TSignatures extends readonly TreeViewAnyPluginSignature[] =
|
|
7
|
+
export declare const useTreeViewApiRef: <TSignatures extends readonly TreeViewAnyPluginSignature[] = RichTreeViewPluginSignatures>() => React.RefObject<TreeViewPublicAPI<TSignatures> | undefined>;
|
package/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export function useTreeItemState(itemId) {
|
|
|
40
40
|
};
|
|
41
41
|
const handleSelection = event => {
|
|
42
42
|
if (!disabled) {
|
|
43
|
-
if (!focused) {
|
|
43
|
+
if (!focused && !editing) {
|
|
44
44
|
instance.focusItem(event, itemId);
|
|
45
45
|
}
|
|
46
46
|
const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
|
|
@@ -54,7 +54,7 @@ export const useTreeItem2Utils = ({
|
|
|
54
54
|
if (status.disabled) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
if (!status.focused) {
|
|
57
|
+
if (!status.focused && !status.editing) {
|
|
58
58
|
instance.focusItem(event, itemId);
|
|
59
59
|
}
|
|
60
60
|
const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
|
package/modern/index.js
CHANGED
|
@@ -45,7 +45,7 @@ function useTreeItemState(itemId) {
|
|
|
45
45
|
};
|
|
46
46
|
const handleSelection = event => {
|
|
47
47
|
if (!disabled) {
|
|
48
|
-
if (!focused) {
|
|
48
|
+
if (!focused && !editing) {
|
|
49
49
|
instance.focusItem(event, itemId);
|
|
50
50
|
}
|
|
51
51
|
const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
|
|
@@ -59,7 +59,7 @@ const useTreeItem2Utils = ({
|
|
|
59
59
|
if (status.disabled) {
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (!status.focused) {
|
|
62
|
+
if (!status.focused && !status.editing) {
|
|
63
63
|
instance.focusItem(event, itemId);
|
|
64
64
|
}
|
|
65
65
|
const multiple = multiSelect && (event.shiftKey || event.ctrlKey || event.metaKey);
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.29.1",
|
|
4
4
|
"description": "The community edition of the Tree View components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@babel/runtime": "^7.25.7",
|
|
37
|
-
"@mui/utils": "^5.16.6 || ^6.0.0 || ^7.0.0
|
|
37
|
+
"@mui/utils": "^5.16.6 || ^6.0.0 || ^7.0.0",
|
|
38
38
|
"@types/react-transition-group": "^4.4.11",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-internals": "7.
|
|
42
|
+
"@mui/x-internals": "7.29.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|
|
46
46
|
"@emotion/styled": "^11.8.1",
|
|
47
|
-
"@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0
|
|
48
|
-
"@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0
|
|
47
|
+
"@mui/material": "^5.15.14 || ^6.0.0 || ^7.0.0",
|
|
48
|
+
"@mui/system": "^5.15.14 || ^6.0.0 || ^7.0.0",
|
|
49
49
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
50
50
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
51
51
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { UseTreeItem2Parameters, UseTreeItem2ReturnValue, UseTreeItem2MinimalPlugins, UseTreeItem2OptionalPlugins } from './useTreeItem2.types';
|
|
2
|
-
export declare const useTreeItem2: <TSignatures extends UseTreeItem2MinimalPlugins = UseTreeItem2MinimalPlugins, TOptionalSignatures extends UseTreeItem2OptionalPlugins =
|
|
2
|
+
export declare const useTreeItem2: <TSignatures extends UseTreeItem2MinimalPlugins = UseTreeItem2MinimalPlugins, TOptionalSignatures extends UseTreeItem2OptionalPlugins = UseTreeItem2OptionalPlugins>(parameters: UseTreeItem2Parameters) => UseTreeItem2ReturnValue<TSignatures, TOptionalSignatures>;
|