@mui/x-tree-view 7.0.0-beta.3 → 7.0.0-beta.5
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 +357 -22
- package/RichTreeView/RichTreeView.js +8 -0
- package/RichTreeView/RichTreeView.types.d.ts +7 -1
- package/SimpleTreeView/SimpleTreeView.js +8 -0
- package/SimpleTreeView/SimpleTreeView.types.d.ts +7 -1
- package/TreeItem/TreeItem.js +1 -1
- package/TreeItem/TreeItem.types.d.ts +1 -1
- package/TreeView/TreeView.js +8 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +1 -0
- package/hooks/package.json +6 -0
- package/hooks/useTreeViewApiRef.d.ts +6 -0
- package/hooks/useTreeViewApiRef.js +5 -0
- package/index.d.ts +1 -0
- package/index.js +3 -2
- package/internals/TreeViewProvider/DescendantProvider.js +1 -11
- package/internals/hooks/useTimeout.d.ts +5 -3
- package/internals/hooks/useTimeout.js +13 -5
- package/internals/models/helpers.d.ts +1 -0
- package/internals/models/plugin.d.ts +12 -0
- package/internals/models/treeView.d.ts +1 -0
- package/internals/plugins/useTreeViewFocus/useTreeViewFocus.js +40 -22
- package/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.d.ts +5 -0
- package/internals/useTreeView/useTreeView.d.ts +2 -0
- package/internals/useTreeView/useTreeView.js +12 -0
- package/internals/useTreeView/useTreeView.types.d.ts +2 -1
- package/internals/useTreeView/useTreeView.utils.d.ts +2 -1
- package/internals/useTreeView/useTreeView.utils.js +3 -0
- package/internals/utils/extractPluginParamsFromProps.d.ts +3 -2
- package/internals/utils/extractPluginParamsFromProps.js +5 -3
- package/internals/utils/utils.d.ts +1 -0
- package/internals/utils/utils.js +10 -0
- package/modern/RichTreeView/RichTreeView.js +8 -0
- package/modern/SimpleTreeView/SimpleTreeView.js +8 -0
- package/modern/TreeItem/TreeItem.js +1 -1
- package/modern/TreeView/TreeView.js +8 -0
- package/modern/hooks/index.js +1 -0
- package/modern/hooks/useTreeViewApiRef.js +5 -0
- package/modern/index.js +3 -2
- package/modern/internals/TreeViewProvider/DescendantProvider.js +1 -11
- package/modern/internals/hooks/useTimeout.js +13 -5
- package/modern/internals/plugins/useTreeViewFocus/useTreeViewFocus.js +40 -22
- package/modern/internals/useTreeView/useTreeView.js +12 -0
- package/modern/internals/useTreeView/useTreeView.utils.js +3 -0
- package/modern/internals/utils/extractPluginParamsFromProps.js +5 -3
- package/modern/internals/utils/utils.js +10 -0
- package/node/RichTreeView/RichTreeView.js +8 -0
- package/node/SimpleTreeView/SimpleTreeView.js +8 -0
- package/node/TreeItem/TreeItem.js +1 -1
- package/node/TreeView/TreeView.js +8 -0
- package/node/hooks/index.js +12 -0
- package/node/hooks/useTreeViewApiRef.js +14 -0
- package/node/index.js +13 -1
- package/node/internals/TreeViewProvider/DescendantProvider.js +1 -10
- package/node/internals/hooks/useTimeout.js +13 -4
- package/node/internals/plugins/useTreeViewFocus/useTreeViewFocus.js +39 -21
- package/node/internals/useTreeView/useTreeView.js +13 -0
- package/node/internals/useTreeView/useTreeView.utils.js +6 -2
- package/node/internals/utils/extractPluginParamsFromProps.js +5 -3
- package/node/internals/utils/utils.js +17 -0
- package/package.json +1 -1
- package/legacy/RichTreeView/RichTreeView.js +0 -255
- package/legacy/RichTreeView/RichTreeView.types.js +0 -1
- package/legacy/RichTreeView/index.js +0 -3
- package/legacy/RichTreeView/richTreeViewClasses.js +0 -6
- package/legacy/SimpleTreeView/SimpleTreeView.js +0 -190
- package/legacy/SimpleTreeView/SimpleTreeView.plugins.js +0 -6
- package/legacy/SimpleTreeView/SimpleTreeView.types.js +0 -1
- package/legacy/SimpleTreeView/index.js +0 -3
- package/legacy/SimpleTreeView/simpleTreeViewClasses.js +0 -6
- package/legacy/TreeItem/TreeItem.js +0 -360
- package/legacy/TreeItem/TreeItem.types.js +0 -1
- package/legacy/TreeItem/TreeItemContent.js +0 -95
- package/legacy/TreeItem/index.js +0 -4
- package/legacy/TreeItem/treeItemClasses.js +0 -6
- package/legacy/TreeItem/useTreeItemState.js +0 -58
- package/legacy/TreeView/TreeView.js +0 -165
- package/legacy/TreeView/TreeView.types.js +0 -1
- package/legacy/TreeView/index.js +0 -3
- package/legacy/TreeView/treeViewClasses.js +0 -6
- package/legacy/icons/icons.js +0 -9
- package/legacy/icons/index.js +0 -1
- package/legacy/index.js +0 -14
- package/legacy/internals/TreeViewProvider/DescendantProvider.js +0 -199
- package/legacy/internals/TreeViewProvider/TreeViewContext.js +0 -8
- package/legacy/internals/TreeViewProvider/TreeViewProvider.js +0 -19
- package/legacy/internals/TreeViewProvider/TreeViewProvider.types.js +0 -1
- package/legacy/internals/TreeViewProvider/index.js +0 -1
- package/legacy/internals/TreeViewProvider/useTreeViewContext.js +0 -9
- package/legacy/internals/corePlugins/corePlugins.js +0 -6
- package/legacy/internals/corePlugins/index.js +0 -1
- package/legacy/internals/corePlugins/useTreeViewInstanceEvents/index.js +0 -1
- package/legacy/internals/corePlugins/useTreeViewInstanceEvents/useTreeViewInstanceEvents.js +0 -40
- package/legacy/internals/corePlugins/useTreeViewInstanceEvents/useTreeViewInstanceEvents.types.js +0 -1
- package/legacy/internals/hooks/useInstanceEventHandler.js +0 -87
- package/legacy/internals/hooks/useLazyRef.js +0 -11
- package/legacy/internals/hooks/useOnMount.js +0 -7
- package/legacy/internals/hooks/useTimeout.js +0 -38
- package/legacy/internals/index.js +0 -4
- package/legacy/internals/models/MuiCancellableEvent.js +0 -1
- package/legacy/internals/models/events.js +0 -1
- package/legacy/internals/models/helpers.js +0 -1
- package/legacy/internals/models/index.js +0 -3
- package/legacy/internals/models/plugin.js +0 -1
- package/legacy/internals/models/treeView.js +0 -1
- package/legacy/internals/plugins/defaultPlugins.js +0 -10
- package/legacy/internals/plugins/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewExpansion/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.js +0 -81
- package/legacy/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewFocus/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewFocus/useTreeViewFocus.js +0 -103
- package/legacy/internals/plugins/useTreeViewFocus/useTreeViewFocus.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewIcons/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewIcons/useTreeViewIcons.js +0 -21
- package/legacy/internals/plugins/useTreeViewIcons/useTreeViewIcons.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewId/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewId/useTreeViewId.js +0 -24
- package/legacy/internals/plugins/useTreeViewId/useTreeViewId.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewJSXNodes/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.js +0 -130
- package/legacy/internals/plugins/useTreeViewJSXNodes/useTreeViewJSXNodes.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewKeyboardNavigation/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.js +0 -284
- package/legacy/internals/plugins/useTreeViewKeyboardNavigation/useTreeViewKeyboardNavigation.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewNodes/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewNodes/useTreeViewNodes.js +0 -161
- package/legacy/internals/plugins/useTreeViewNodes/useTreeViewNodes.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewSelection/index.js +0 -1
- package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.js +0 -219
- package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.types.js +0 -1
- package/legacy/internals/plugins/useTreeViewSelection/useTreeViewSelection.utils.js +0 -55
- package/legacy/internals/useTreeView/index.js +0 -1
- package/legacy/internals/useTreeView/useTreeView.js +0 -111
- package/legacy/internals/useTreeView/useTreeView.types.js +0 -1
- package/legacy/internals/useTreeView/useTreeView.utils.js +0 -46
- package/legacy/internals/useTreeView/useTreeViewModels.js +0 -75
- package/legacy/internals/utils/EventManager.js +0 -91
- package/legacy/internals/utils/cleanupTracking/CleanupTracking.js +0 -1
- package/legacy/internals/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +0 -29
- package/legacy/internals/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -52
- package/legacy/internals/utils/extractPluginParamsFromProps.js +0 -36
- package/legacy/internals/utils/publishTreeViewEvent.js +0 -3
- package/legacy/internals/utils/warning.js +0 -15
- package/legacy/models/index.js +0 -1
- package/legacy/models/items.js +0 -1
- package/legacy/themeAugmentation/index.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,240 @@
|
|
|
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
|
-
##
|
|
6
|
+
## 7.0.0-beta.5
|
|
7
|
+
|
|
8
|
+
_Mar 1, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add `getSortComparator` for more advanced sorting behaviors (#12215) @cherniavskii
|
|
13
|
+
- 🚀 Add `use client` directive to the Grid packages (#11803) @MBilalShafi
|
|
14
|
+
- 🌍 Improve Korean (ko-KR) and Chinese (zh-CN) locales on the Pickers
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@7.0.0-beta.5`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add `getSortComparator` for more advanced sorting behaviors (#12215) @cherniavskii
|
|
23
|
+
- [DataGrid] Add `use client` directive to the Grid packages (#11803) @MBilalShafi
|
|
24
|
+
- [DataGrid] Fix `disableResetButton` and `disableShowHideToggle` flags to not exclude each other (#12169) @adyry
|
|
25
|
+
- [DataGrid] Fix cell range classnames (#12230) @romgrk
|
|
26
|
+
- [DataGrid] Fix wrong offset for right-pinned columns when toggling dark/light modes (#12233) @cherniavskii
|
|
27
|
+
- [DataGrid] Improve row virtualization and rendering performance (#12247) @romgrk
|
|
28
|
+
- [DataGrid] Improve performance by removing `querySelector` call (#12229) @romgrk
|
|
29
|
+
- [DataGrid] Fix `onColumnWidthChange` called before autosize affects column width (#12140) @shaharyar-shamshi
|
|
30
|
+
- [DataGrid] Fix boolean "is" filter (#12117) @shaharyar-shamshi
|
|
31
|
+
- [DataGrid] Fix `upsertFilterItems` removing filters that are not part of the update (#11954) @gitstart
|
|
32
|
+
- [DataGrid] Render scrollbars only if there is scroll (#12265) @cherniavskii
|
|
33
|
+
|
|
34
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
35
|
+
|
|
36
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.5`, plus:
|
|
37
|
+
|
|
38
|
+
- [DataGridPro] Fix column resize errors on MacOS with automatic scrollbars enabled (#12217) @cherniavskii
|
|
39
|
+
- [DataGridPro] Fix lazy-loading crash (#12080) @romgrk
|
|
40
|
+
- [DataGridPro] Fix useGridRows not giving error on reversed data (#10821) @martijn-basesoft
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.5`, plus:
|
|
45
|
+
|
|
46
|
+
- [DataGridPremium] Make clipboard copy respect the sorting during cell selection (#12235) @MBilalShafi
|
|
47
|
+
|
|
48
|
+
### Date Pickers
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers@7.0.0-beta.5`
|
|
51
|
+
|
|
52
|
+
- [pickers] Fix toolbar components props handling (#12211) @LukasTy
|
|
53
|
+
- [l10n] Improve Chinese (zh-CN) locale (#12245) @headironc
|
|
54
|
+
- [l10n] Improve Korean (ko-KR) locale (#12192) @Luzi
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
57
|
+
|
|
58
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.5`.
|
|
59
|
+
|
|
60
|
+
- [DateTimeRangePicker] Fix validation behavior (#12243) @LukasTy
|
|
61
|
+
|
|
62
|
+
### Charts / `@mui/x-charts@7.0.0-beta.5`
|
|
63
|
+
|
|
64
|
+
- [charts] Fix grid duplicated key (#12208) @alexfauquette
|
|
65
|
+
|
|
66
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.5`
|
|
67
|
+
|
|
68
|
+
- [TreeView] Add public API and expose focus method (#12143) @noraleonte
|
|
69
|
+
|
|
70
|
+
### Docs
|
|
71
|
+
|
|
72
|
+
- [docs] Fix image layout shift when loading @oliviertassinari
|
|
73
|
+
- [docs] Match Material UI repo comment for redirections @oliviertassinari
|
|
74
|
+
- [docs] Non breaking spaces @oliviertassinari
|
|
75
|
+
- [docs] Polish the Date Picker playground (#11869) @zanivan
|
|
76
|
+
- [docs] Standardize WAI-ARIA references @oliviertassinari
|
|
77
|
+
|
|
78
|
+
### Core
|
|
79
|
+
|
|
80
|
+
- [core] Allow local docs next.js settings (#12227) @romgrk
|
|
81
|
+
- [core] Remove grid folder from `getComponentInfo` RegExp (#12241) @flaviendelangle
|
|
82
|
+
- [core] Remove `window.` reference for common globals @oliviertassinari
|
|
83
|
+
- [core] Use runtime agnostic setTimeout type @oliviertassinari
|
|
84
|
+
- [docs-infra] Fix Stack Overflow breaking space @oliviertassinari
|
|
85
|
+
- [docs-infra] Fix missing non breaking spaces @oliviertassinari
|
|
86
|
+
- [github] Update `no-response` workflow (#12193) @MBilalShafi
|
|
87
|
+
- [infra] Fix missing permission reset @oliviertassinari
|
|
88
|
+
|
|
89
|
+
## 7.0.0-beta.4
|
|
90
|
+
|
|
91
|
+
_Feb 23, 2024_
|
|
92
|
+
|
|
93
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
94
|
+
|
|
95
|
+
- 🎁 Introduce a new DOM structure for the field components that provides a better accessibility
|
|
96
|
+
- 🚀 Simplify Data Grid DOM structure for improved performance (#12013) @romgrk
|
|
97
|
+
- 🕥 The support for IE11 has been removed (#12151) @flaviendelangle
|
|
98
|
+
- 🐞 Bugfixes
|
|
99
|
+
- 📚 Documentation improvements
|
|
100
|
+
|
|
101
|
+
### Breaking changes
|
|
102
|
+
|
|
103
|
+
- The support for IE11 has been removed from all MUI X packages. The `legacy` bundle that used to support old browsers like IE11 is no longer included.
|
|
104
|
+
|
|
105
|
+
### Data Grid
|
|
106
|
+
|
|
107
|
+
#### Breaking changes
|
|
108
|
+
|
|
109
|
+
- The cell inner wrapper `.MuiDataGrid-cellContent` has been removed, use `.MuiDataGrid-cell` to style the cells.
|
|
110
|
+
|
|
111
|
+
#### `@mui/x-data-grid@7.0.0-beta.4`
|
|
112
|
+
|
|
113
|
+
- [DataGrid] Simplify cell DOM structure (#12013) @romgrk
|
|
114
|
+
- [DataGrid] Fix values labels in `is any of` filter operator (#11939) @gitstart
|
|
115
|
+
|
|
116
|
+
#### `@mui/x-data-grid-pro@7.0.0-beta.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
117
|
+
|
|
118
|
+
Same changes as in `@mui/x-data-grid@7.0.0-beta.4`.
|
|
119
|
+
|
|
120
|
+
#### `@mui/x-data-grid-premium@7.0.0-beta.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
121
|
+
|
|
122
|
+
Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
|
|
123
|
+
|
|
124
|
+
### Date Pickers
|
|
125
|
+
|
|
126
|
+
#### Breaking changes
|
|
127
|
+
|
|
128
|
+
- The `selectedSections` prop no longer accepts start and end indexes.
|
|
129
|
+
When selecting several — but not all — sections, the field components were not behaving correctly, you can now only select one or all sections:
|
|
130
|
+
|
|
131
|
+
```diff
|
|
132
|
+
<DateField
|
|
133
|
+
- selectedSections={{ startIndex: 0, endIndex: 0 }}
|
|
134
|
+
+ selectedSections={0}
|
|
135
|
+
|
|
136
|
+
// If the field has 3 sections
|
|
137
|
+
- selectedSections={{ startIndex: 0, endIndex: 2 }}
|
|
138
|
+
+ selectedSections="all"
|
|
139
|
+
/>
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
- The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
|
|
143
|
+
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure. Learn more about this new [accessible DOM structure](/x/react-date-pickers/fields/#accessible-dom-structure).
|
|
144
|
+
|
|
145
|
+
When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
|
|
146
|
+
|
|
147
|
+
```diff
|
|
148
|
+
function MyCustomTextField(props) {
|
|
149
|
+
const {
|
|
150
|
+
+ // Should be ignored
|
|
151
|
+
+ enableAccessibleFieldDOMStructure,
|
|
152
|
+
// ... rest of the props you are using
|
|
153
|
+
} = props;
|
|
154
|
+
|
|
155
|
+
return ( /* Some UI to edit the date */ )
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function MyCustomField(props) {
|
|
159
|
+
const fieldResponse = useDateField<Dayjs, false, typeof textFieldProps>({
|
|
160
|
+
...props,
|
|
161
|
+
+ // If you only support one DOM structure, we advise you to hardcode it here to avoid unwanted switches in your application
|
|
162
|
+
+ enableAccessibleFieldDOMStructure: false,
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
return <MyCustomTextField ref={ref} {...fieldResponse} />;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
function App() {
|
|
169
|
+
return <DatePicker slots={{ field: MyCustomField }} />;
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
- The following internal types were exported by mistake and have been removed from the public API:
|
|
174
|
+
|
|
175
|
+
- `UseDateFieldDefaultizedProps`
|
|
176
|
+
- `UseTimeFieldDefaultizedProps`
|
|
177
|
+
- `UseDateTimeFieldDefaultizedProps`
|
|
178
|
+
- `UseSingleInputDateRangeFieldComponentProps`
|
|
179
|
+
- `UseSingleInputTimeRangeFieldComponentProps`
|
|
180
|
+
- `UseSingleInputDateTimeRangeFieldComponentProps`
|
|
181
|
+
|
|
182
|
+
#### `@mui/x-date-pickers@7.0.0-beta.4`
|
|
183
|
+
|
|
184
|
+
- [fields] Add a11y support to multi-HTML field (#12173) @LukasTy
|
|
185
|
+
- [fields] Use the `PickersTextField` component in the fields (#10649) @flaviendelangle
|
|
186
|
+
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12096) @LukasTy
|
|
187
|
+
|
|
188
|
+
#### `@mui/x-date-pickers-pro@7.0.0-beta.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
189
|
+
|
|
190
|
+
Same changes as in `@mui/x-date-pickers@7.0.0-beta.4`.
|
|
191
|
+
|
|
192
|
+
### Charts / `@mui/x-charts@7.0.0-beta.4`
|
|
193
|
+
|
|
194
|
+
#### Breaking changes
|
|
195
|
+
|
|
196
|
+
These components are no longer exported from `@mui/x-charts`:
|
|
197
|
+
|
|
198
|
+
- `CartesianContextProvider`
|
|
199
|
+
- `DrawingProvider`
|
|
200
|
+
|
|
201
|
+
#### `@mui/x-charts@7.0.0-beta.4`
|
|
202
|
+
|
|
203
|
+
- [charts] Don't display text if no value is provided (#12127) @alexfauquette
|
|
204
|
+
- [charts] Remove export of context providers (#12123) @oliviertassinari
|
|
205
|
+
|
|
206
|
+
### Tree View / `@mui/x-tree-view@7.0.0-beta.4`
|
|
207
|
+
|
|
208
|
+
- [TreeView] Stop using custom `findIndex` to support IE11 (#12129) @flaviendelangle
|
|
209
|
+
|
|
210
|
+
### Docs
|
|
211
|
+
|
|
212
|
+
- [docs] Add recipe for hiding separator on non-resizable columns (#12134) @michelengelen
|
|
213
|
+
- [docs] Add small improvements to the Gauge Chart page (#12076) @danilo-leal
|
|
214
|
+
- [docs] Add the 'point' scaleType to the axis documentation (#12179) @alexfauquette
|
|
215
|
+
- [docs] Clarify Pickers 'Component composition' section (#12097) @LukasTy
|
|
216
|
+
- [docs] Fix "Licensing" page link (#12156) @LukasTy
|
|
217
|
+
- [docs] Fix the Treemap illustration (#12185) @danilo-leal
|
|
218
|
+
- [docs] Fix error raised by Grammarly on the page @oliviertassinari
|
|
219
|
+
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
220
|
+
- [docs] Link to React Transition Group with https @oliviertassinari
|
|
221
|
+
- [docs] Move Heatmap to `pro` plan (#12047) @alexfauquette
|
|
222
|
+
- [docs] Reduce number of Vale errors @oliviertassinari
|
|
223
|
+
- [docs] Remove default value set to `undefined` (#12128) @alexfauquette
|
|
224
|
+
|
|
225
|
+
### Core
|
|
226
|
+
|
|
227
|
+
- [core] Fix docs link check (#12135) @LukasTy
|
|
228
|
+
- [core] Fix missing context display names (#12124) @oliviertassinari
|
|
229
|
+
- [core] Fix shortcuts when Caps Lock enabled (#12121) @oliviertassinari
|
|
230
|
+
- [core] Remove IE 11 compat logic (#12119) @oliviertassinari
|
|
231
|
+
- [core] Simplify key utils (#12120) @oliviertassinari
|
|
232
|
+
- [core] Use the @mui/internal-scripts package (#12142) @michaldudak
|
|
233
|
+
- [all components] Remove legacy IE 11 bundle (#12151) @flaviendelangle
|
|
234
|
+
- [code-infra] Bump monorepo (#11880) @Janpot
|
|
235
|
+
- [code-infra] Use `experimental.cpus` to control amount of export workers in Next.js (#12095) @Janpot
|
|
236
|
+
- [docs-infra] Remove randomized API page layout (#11876) @alexfauquette
|
|
237
|
+
- [test] Create local wrapper over `describeConformance` (#12130) @michaldudak
|
|
238
|
+
|
|
239
|
+
## 7.0.0-beta.3
|
|
7
240
|
|
|
8
241
|
_Feb 16, 2024_
|
|
9
242
|
|
|
@@ -67,7 +300,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.3`.
|
|
|
67
300
|
- [core] Sort prop asc (#12033) @oliviertassinari
|
|
68
301
|
- [core] Bump monorepo (#12055) @alexfauquette
|
|
69
302
|
|
|
70
|
-
##
|
|
303
|
+
## 7.0.0-beta.2
|
|
71
304
|
|
|
72
305
|
_Feb 9, 2024_
|
|
73
306
|
|
|
@@ -336,7 +569,7 @@ Same changes as in `@mui/x-date-pickers@7.0.0-beta.1`.
|
|
|
336
569
|
|
|
337
570
|
_Jan 26, 2024_
|
|
338
571
|
|
|
339
|
-
We are glad to announce MUI
|
|
572
|
+
We are glad to announce MUI X v7 beta!
|
|
340
573
|
This version has several improvements, bug fixes, and exciting features 🎉.
|
|
341
574
|
We want to offer a big thanks to the 7 contributors who made this release possible ✨:
|
|
342
575
|
|
|
@@ -1353,7 +1586,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
1353
1586
|
|
|
1354
1587
|
- The clipboard related exports `ignoreValueFormatterDuringExport` and `splitClipboardPastedText` are no longer prefixed with `unstable_`.
|
|
1355
1588
|
|
|
1356
|
-
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#
|
|
1589
|
+
- The deprecated constants `SUBMIT_FILTER_STROKE_TIME` and `SUBMIT_FILTER_DATE_STROKE_TIME` have been removed from the `DataGrid` exports. Use the [`filterDebounceMs`](https://next.mui.com/x/api/data-grid/data-grid/#data-grid-prop-filterDebounceMs) prop to customize filter debounce time.
|
|
1357
1590
|
|
|
1358
1591
|
- The `slots.preferencesPanel` slot and the `slotProps.preferencesPanel` prop were removed. Use `slots.panel` and `slotProps.panel` instead.
|
|
1359
1592
|
|
|
@@ -2202,7 +2435,109 @@ Here is an example of the renaming for the `<ChartsTooltip />` component.
|
|
|
2202
2435
|
- [core] Update release instructions as per v7 configuration (#10962) @MBilalShafi
|
|
2203
2436
|
- [license] Correctly throw errors (#10924) @oliviertassinari
|
|
2204
2437
|
|
|
2205
|
-
##
|
|
2438
|
+
## 6.19.6
|
|
2439
|
+
|
|
2440
|
+
_Mar 1, 2024_
|
|
2441
|
+
|
|
2442
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
2443
|
+
|
|
2444
|
+
- 🌍 Improve Korean (ko-KR) and Chinese (zh-CN) locales on the Pickers
|
|
2445
|
+
- 🐞 Bugfixes
|
|
2446
|
+
- 📚 Documentation improvements
|
|
2447
|
+
|
|
2448
|
+
### Data Grid
|
|
2449
|
+
|
|
2450
|
+
#### `@mui/x-data-grid@6.19.6`
|
|
2451
|
+
|
|
2452
|
+
- [DataGrid] Fix error when existing rows are passed to `replaceRows` (@martijn-basesoft)
|
|
2453
|
+
|
|
2454
|
+
#### `@mui/x-data-grid-pro@6.19.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2455
|
+
|
|
2456
|
+
Same changes as in `@mui/x-data-grid@6.19.6`.
|
|
2457
|
+
|
|
2458
|
+
#### `@mui/x-data-grid-premium@6.19.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2459
|
+
|
|
2460
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.6`, plus:
|
|
2461
|
+
|
|
2462
|
+
- [DataGridPremium] Make clipboard copy respect the sorting during cell selection (#12255) @MBilalShafi
|
|
2463
|
+
|
|
2464
|
+
### Date Pickers
|
|
2465
|
+
|
|
2466
|
+
#### `@mui/x-date-pickers@6.19.6`
|
|
2467
|
+
|
|
2468
|
+
- [l10n] Improve Chinese (zh-CN) locale (#12250) @headironc
|
|
2469
|
+
- [l10n] Improve Korean (ko-KR) locale (#12186) @Luzi
|
|
2470
|
+
|
|
2471
|
+
#### `@mui/x-date-pickers-pro@6.19.6` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2472
|
+
|
|
2473
|
+
Same changes as in `@mui/x-date-pickers@6.19.6`.
|
|
2474
|
+
|
|
2475
|
+
### Docs
|
|
2476
|
+
|
|
2477
|
+
- [docs] Update lazy loading demo to show skeleton rows during initial rows fetch (#12062) @cherniavskii
|
|
2478
|
+
|
|
2479
|
+
## 6.19.5
|
|
2480
|
+
|
|
2481
|
+
_Feb 23, 2024_
|
|
2482
|
+
|
|
2483
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
2484
|
+
|
|
2485
|
+
- 🐞 Bugfixes
|
|
2486
|
+
- 📚 Documentation improvements
|
|
2487
|
+
|
|
2488
|
+
### Data Grid
|
|
2489
|
+
|
|
2490
|
+
#### `@mui/x-data-grid@6.19.5`
|
|
2491
|
+
|
|
2492
|
+
- [DataGrid] Fix styling grid filter input single select (#12079) @FreakDroid
|
|
2493
|
+
|
|
2494
|
+
#### `@mui/x-data-grid-pro@6.19.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2495
|
+
|
|
2496
|
+
Same changes as in `@mui/x-data-grid@6.19.5`.
|
|
2497
|
+
|
|
2498
|
+
#### `@mui/x-data-grid-premium@6.19.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2499
|
+
|
|
2500
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.5`.
|
|
2501
|
+
|
|
2502
|
+
### Date Pickers
|
|
2503
|
+
|
|
2504
|
+
#### `@mui/x-date-pickers@6.19.5`
|
|
2505
|
+
|
|
2506
|
+
- [pickers] Fix `referenceDate` day calendar focus (#12136) @LukasTy
|
|
2507
|
+
- [pickers] Fix styling props propagation to `DateTimePickerTabs` (#12131) @LukasTy
|
|
2508
|
+
|
|
2509
|
+
#### `@mui/x-date-pickers-pro@6.19.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2510
|
+
|
|
2511
|
+
Same changes as in `@mui/x-date-pickers@6.19.5`.
|
|
2512
|
+
|
|
2513
|
+
### Charts / `@mui/x-charts@6.19.5`
|
|
2514
|
+
|
|
2515
|
+
- [charts] Allow to skip animation on sparkline bar (#12160) @alexfauquette
|
|
2516
|
+
|
|
2517
|
+
### Docs
|
|
2518
|
+
|
|
2519
|
+
- [docs] Clarify Pickers 'Component composition' section (#12147) @LukasTy
|
|
2520
|
+
- [docs] Fix 301 redirection to StackBlitz @oliviertassinari
|
|
2521
|
+
- [docs] Fix 301 to Material UI @oliviertassinari
|
|
2522
|
+
- [docs] Fix 301 to Material UI @oliviertassinari
|
|
2523
|
+
- [docs] Fix 404 links to translation source @oliviertassinari
|
|
2524
|
+
- [docs] Fix dead link to translations @oliviertassinari
|
|
2525
|
+
- [docs] Fix the Treemap illustration (#12189) @danilo-leal
|
|
2526
|
+
- [docs] Fix typo for `AdapterDateFnsV3` (#12037) @flaviendelangle
|
|
2527
|
+
- [docs] Improve performance on Charts entry point @oliviertassinari
|
|
2528
|
+
- [docs] Move Heatmap to pro (#12170) @alexfauquette
|
|
2529
|
+
- [docs] Remove Charts installation next tag call-out (#12133) @LukasTy
|
|
2530
|
+
- [docs] Removed `focused` prop from demo (#12126) @michelengelen
|
|
2531
|
+
- [docs] Add missing Heatmap pro icon @oliviertassinari
|
|
2532
|
+
- [docs] Add more illustrations to the Overview page (#12041) @danilo-leal
|
|
2533
|
+
- [docs] Avoid use of shorthand (#12009) @oliviertassinari
|
|
2534
|
+
|
|
2535
|
+
### Core
|
|
2536
|
+
|
|
2537
|
+
- [core] Fix CI @oliviertassinari
|
|
2538
|
+
- [core] Fix docs link check (#12137) @LukasTy
|
|
2539
|
+
|
|
2540
|
+
## 6.19.4
|
|
2206
2541
|
|
|
2207
2542
|
_Feb 9, 2024_
|
|
2208
2543
|
|
|
@@ -2214,7 +2549,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
2214
2549
|
|
|
2215
2550
|
### Data Grid
|
|
2216
2551
|
|
|
2217
|
-
#### `@mui/x-data-grid@
|
|
2552
|
+
#### `@mui/x-data-grid@6.19.4`
|
|
2218
2553
|
|
|
2219
2554
|
- [DataGrid] Add support for dialogs in menu actions (#11937) @cherniavskii
|
|
2220
2555
|
- [DataGrid] Allow passing readonly arrays to `pageSizeOptions` prop (#11992) @pcorpet
|
|
@@ -2222,28 +2557,28 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
|
|
|
2222
2557
|
- [DataGrid] Replace `eval` with `new Function` (#11962) @cherniavskii
|
|
2223
2558
|
- [l10n] Improve Danish (da-DK) locale (#11972) @ShahrazH
|
|
2224
2559
|
|
|
2225
|
-
#### `@mui/x-data-grid-pro@
|
|
2560
|
+
#### `@mui/x-data-grid-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2226
2561
|
|
|
2227
|
-
Same changes as in `@mui/x-data-grid@
|
|
2562
|
+
Same changes as in `@mui/x-data-grid@6.19.4`.
|
|
2228
2563
|
|
|
2229
|
-
#### `@mui/x-data-grid-premium@
|
|
2564
|
+
#### `@mui/x-data-grid-premium@6.19.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
2230
2565
|
|
|
2231
|
-
Same changes as in `@mui/x-data-grid-pro@
|
|
2566
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.4`, plus:
|
|
2232
2567
|
|
|
2233
2568
|
- [DataGridPremium] Fix autosize grouping cell (#11990) @romgrk
|
|
2234
2569
|
- [DataGridPremium] Fix error after closing print export (#11889) @cherniavskii
|
|
2235
2570
|
|
|
2236
2571
|
### Date Pickers
|
|
2237
2572
|
|
|
2238
|
-
#### `@mui/x-date-pickers@
|
|
2573
|
+
#### `@mui/x-date-pickers@6.19.4`
|
|
2239
2574
|
|
|
2240
2575
|
- [pickers] Avoid relying on locale in Luxon `isWithinRange` method (#11940) @LukasTy
|
|
2241
2576
|
|
|
2242
|
-
#### `@mui/x-date-pickers-pro@
|
|
2577
|
+
#### `@mui/x-date-pickers-pro@6.19.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
2243
2578
|
|
|
2244
|
-
Same changes as in `@mui/x-date-pickers@
|
|
2579
|
+
Same changes as in `@mui/x-date-pickers@6.19.4`.
|
|
2245
2580
|
|
|
2246
|
-
### Charts / `@mui/x-charts@
|
|
2581
|
+
### Charts / `@mui/x-charts@6.19.4`
|
|
2247
2582
|
|
|
2248
2583
|
- [charts] Add `reverse` property to axes (#11959) @alexfauquette
|
|
2249
2584
|
- [charts] Allow series ids to be numbers (#11960) @alexfauquette
|
|
@@ -2304,7 +2639,7 @@ Same changes as in `@mui/x-date-pickers@6.19.3`.
|
|
|
2304
2639
|
- [docs] Fix docs:api when typo in slots typing (#11861) @alexfauquette
|
|
2305
2640
|
- [docs] Improve Support page (#11556) @oliviertassinari
|
|
2306
2641
|
- [docs] Sync support page with core @oliviertassinari
|
|
2307
|
-
- [docs] These API don't exist in MUI
|
|
2642
|
+
- [docs] These API don't exist in MUI X v6 @oliviertassinari
|
|
2308
2643
|
- [docs] Update whats new page with v7 Beta blogpost content (#11886) @joserodolfofreitas
|
|
2309
2644
|
|
|
2310
2645
|
## 6.19.2
|
|
@@ -4053,7 +4388,7 @@ We'd like to offer a big thanks to the 13 contributors who made this release pos
|
|
|
4053
4388
|
|
|
4054
4389
|
#### `@mui/x-data-grid@6.9.1`
|
|
4055
4390
|
|
|
4056
|
-
- [DataGrid] Add Joy
|
|
4391
|
+
- [DataGrid] Add Joy UI `tooltip` and `loadingOverlay` slots (#9028) @cherniavskii
|
|
4057
4392
|
- [DataGrid] Add section about enabling pagination on Pro and Premium (#8759) @joserodolfofreitas
|
|
4058
4393
|
- [DataGrid] Don't forward `editCellState` prop to DOM element (#9501) @m4theushw
|
|
4059
4394
|
- [DataGrid] Add experimental API for faster filtering performance (#9254) @romgrk
|
|
@@ -4184,7 +4519,7 @@ Same changes as in `@mui/x-date-pickers@6.9.0`.
|
|
|
4184
4519
|
- [docs] Fix random screenshot generation (#9364) @cherniavskii
|
|
4185
4520
|
- [docs] Remove random generation from chart doc example (#9343) @flaviendelangle
|
|
4186
4521
|
- [docs] Sync h1 with sidenav link (#9252) @oliviertassinari
|
|
4187
|
-
- [docs] Use the mui-x Stack
|
|
4522
|
+
- [docs] Use the mui-x Stack Overflow tag (#9352) @oliviertassinari
|
|
4188
4523
|
|
|
4189
4524
|
### Core
|
|
4190
4525
|
|
|
@@ -4511,8 +4846,8 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
4511
4846
|
|
|
4512
4847
|
- [DataGrid] Fix DataGrid rendering in JSDOM (#8968) @cherniavskii
|
|
4513
4848
|
- [DataGrid] Fix layout when rendered inside a parent with `display: grid` (#8577) @cherniavskii
|
|
4514
|
-
- [DataGrid] Add Joy
|
|
4515
|
-
- [DataGrid] Add Joy
|
|
4849
|
+
- [DataGrid] Add Joy UI icon slots (#8940) @siriwatknp
|
|
4850
|
+
- [DataGrid] Add Joy UI pagination slot (#8871) @cherniavskii
|
|
4516
4851
|
- [DataGrid] Extract `baseChip` slot (#8748) @cherniavskii
|
|
4517
4852
|
- [DataGridPremium] Implement Clipboard import (#7389) @cherniavskii
|
|
4518
4853
|
- [l10n] Improve French (fr-FR) locale (#8825) @allereaugabriel
|
|
@@ -4562,7 +4897,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
|
|
|
4562
4897
|
- [DataGrid] Fix falsy filter values not showing in filter button tooltip (#8550) @ithrforu
|
|
4563
4898
|
- [DataGrid] Fix missing watermark in Pro and Premium packages (#8797) @cherniavskii
|
|
4564
4899
|
- [DataGrid] Remove unwarranted warning log (#8847) @romgrk
|
|
4565
|
-
- [DataGrid] Add Joy
|
|
4900
|
+
- [DataGrid] Add Joy UI slots (`Select`, `SelectOption`, `InputLabel`, `FormControl`) (#8747) @cherniavskii
|
|
4566
4901
|
- [DataGridPremium] Fix expanded groups being collapsed after calling `updateRows` (#8823) @cherniavskii
|
|
4567
4902
|
|
|
4568
4903
|
### `@mui/x-date-pickers@6.3.1` / `@mui/x-date-pickers-pro@6.3.1`
|
|
@@ -4613,7 +4948,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
4613
4948
|
- [DataGrid] Add overlay classes to `gridClasses` (#8686) @lindapaiste
|
|
4614
4949
|
- [DataGrid] Avoid passing `api` prop to div (#8679) @someden
|
|
4615
4950
|
- [DataGrid] Fix 'ResizeObserver loop limit exceeded' error (#8744) @m4theushw
|
|
4616
|
-
- [DataGrid] Add Joy
|
|
4951
|
+
- [DataGrid] Add Joy UI slots (button and switch) (#8699) @siriwatknp
|
|
4617
4952
|
- [DataGrid] Fix aggregation label alignment (#8694) @joserodolfofreitas
|
|
4618
4953
|
- [DataGridPremium] Fix infinite loop when updating grouped rows (#8693) @cherniavskii
|
|
4619
4954
|
- [DataGridPro] Fix error after updating `columns` and `columnGroupingModel` at once (#8730) @cherniavskii
|
|
@@ -4675,7 +5010,7 @@ We'd like to offer a big thanks to the 9 contributors who made this release poss
|
|
|
4675
5010
|
#### Changes
|
|
4676
5011
|
|
|
4677
5012
|
- [DataGrid] Add `getTogglableColumns` to `Hide all` and `Show all` actions (#8496) @MBilalShafi
|
|
4678
|
-
- [DataGrid] Add Grid + Joy
|
|
5013
|
+
- [DataGrid] Add Grid + Joy UI experiment page (#8067) @cherniavskii
|
|
4679
5014
|
- [DataGrid] Fix print style when rendering inside Shadow DOM (#8656) @Bwatermelon
|
|
4680
5015
|
- [DataGrid] Replace `GridAutoSizer` with `ResizeObserver` (#8091) @m4theushw
|
|
4681
5016
|
- [DataGrid] Use stable ID for the placeholder filter item (#8603) @m4theushw
|
|
@@ -134,6 +134,14 @@ process.env.NODE_ENV !== "production" ? RichTreeView.propTypes = {
|
|
|
134
134
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
135
135
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
136
136
|
// ----------------------------------------------------------------------
|
|
137
|
+
/**
|
|
138
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
|
|
139
|
+
*/
|
|
140
|
+
apiRef: PropTypes.shape({
|
|
141
|
+
current: PropTypes.shape({
|
|
142
|
+
focusNode: PropTypes.func.isRequired
|
|
143
|
+
})
|
|
144
|
+
}),
|
|
137
145
|
/**
|
|
138
146
|
* Override or extend the styles applied to the component.
|
|
139
147
|
*/
|
|
@@ -3,9 +3,10 @@ import { Theme } from '@mui/material/styles';
|
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
4
|
import { SlotComponentProps } from '@mui/base/utils';
|
|
5
5
|
import { RichTreeViewClasses } from './richTreeViewClasses';
|
|
6
|
-
import { DefaultTreeViewPluginParameters, DefaultTreeViewPluginSlotProps, DefaultTreeViewPluginSlots } from '../internals/plugins/defaultPlugins';
|
|
6
|
+
import { DefaultTreeViewPluginParameters, DefaultTreeViewPluginSlotProps, DefaultTreeViewPluginSlots, DefaultTreeViewPlugins } from '../internals/plugins/defaultPlugins';
|
|
7
7
|
import { TreeItem, TreeItemProps } from '../TreeItem';
|
|
8
8
|
import { TreeViewItemId } from '../models';
|
|
9
|
+
import { TreeViewPublicAPI } from '../internals/models';
|
|
9
10
|
interface RichTreeViewItemSlotOwnerState {
|
|
10
11
|
nodeId: TreeViewItemId;
|
|
11
12
|
label: string;
|
|
@@ -26,6 +27,7 @@ export interface RichTreeViewSlotProps<R extends {}, Multiple extends boolean |
|
|
|
26
27
|
root?: SlotComponentProps<'ul', {}, RichTreeViewProps<R, Multiple>>;
|
|
27
28
|
item?: SlotComponentProps<typeof TreeItem, {}, RichTreeViewItemSlotOwnerState>;
|
|
28
29
|
}
|
|
30
|
+
export type RichTreeViewApiRef = React.MutableRefObject<TreeViewPublicAPI<DefaultTreeViewPlugins> | undefined>;
|
|
29
31
|
export interface RichTreeViewPropsBase extends React.HTMLAttributes<HTMLUListElement> {
|
|
30
32
|
className?: string;
|
|
31
33
|
/**
|
|
@@ -48,5 +50,9 @@ export interface RichTreeViewProps<R extends {}, Multiple extends boolean | unde
|
|
|
48
50
|
* @default {}
|
|
49
51
|
*/
|
|
50
52
|
slotProps?: RichTreeViewSlotProps<R, Multiple>;
|
|
53
|
+
/**
|
|
54
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
|
|
55
|
+
*/
|
|
56
|
+
apiRef?: RichTreeViewApiRef;
|
|
51
57
|
}
|
|
52
58
|
export {};
|
|
@@ -91,6 +91,14 @@ process.env.NODE_ENV !== "production" ? SimpleTreeView.propTypes = {
|
|
|
91
91
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
92
92
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
93
93
|
// ----------------------------------------------------------------------
|
|
94
|
+
/**
|
|
95
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
|
|
96
|
+
*/
|
|
97
|
+
apiRef: PropTypes.shape({
|
|
98
|
+
current: PropTypes.shape({
|
|
99
|
+
focusNode: PropTypes.func.isRequired
|
|
100
|
+
})
|
|
101
|
+
}),
|
|
94
102
|
/**
|
|
95
103
|
* The content of the component.
|
|
96
104
|
*/
|
|
@@ -3,7 +3,8 @@ import { Theme } from '@mui/material/styles';
|
|
|
3
3
|
import { SlotComponentProps } from '@mui/base/utils';
|
|
4
4
|
import { SxProps } from '@mui/system';
|
|
5
5
|
import { SimpleTreeViewClasses } from './simpleTreeViewClasses';
|
|
6
|
-
import { SimpleTreeViewPluginParameters, SimpleTreeViewPluginSlotProps, SimpleTreeViewPluginSlots } from './SimpleTreeView.plugins';
|
|
6
|
+
import { SimpleTreeViewPluginParameters, SimpleTreeViewPluginSlotProps, SimpleTreeViewPluginSlots, SimpleTreeViewPlugins } from './SimpleTreeView.plugins';
|
|
7
|
+
import { TreeViewPublicAPI } from '../internals/models';
|
|
7
8
|
export interface SimpleTreeViewSlots extends SimpleTreeViewPluginSlots {
|
|
8
9
|
/**
|
|
9
10
|
* Element rendered at the root.
|
|
@@ -14,6 +15,7 @@ export interface SimpleTreeViewSlots extends SimpleTreeViewPluginSlots {
|
|
|
14
15
|
export interface SimpleTreeViewSlotProps extends SimpleTreeViewPluginSlotProps {
|
|
15
16
|
root?: SlotComponentProps<'ul', {}, {}>;
|
|
16
17
|
}
|
|
18
|
+
export type SimpleTreeViewApiRef = React.MutableRefObject<TreeViewPublicAPI<SimpleTreeViewPlugins> | undefined>;
|
|
17
19
|
export interface SimpleTreeViewProps<Multiple extends boolean | undefined> extends SimpleTreeViewPluginParameters<Multiple>, React.HTMLAttributes<HTMLUListElement> {
|
|
18
20
|
/**
|
|
19
21
|
* The content of the component.
|
|
@@ -36,4 +38,8 @@ export interface SimpleTreeViewProps<Multiple extends boolean | undefined> exten
|
|
|
36
38
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
37
39
|
*/
|
|
38
40
|
sx?: SxProps<Theme>;
|
|
41
|
+
/**
|
|
42
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
|
|
43
|
+
*/
|
|
44
|
+
apiRef?: SimpleTreeViewApiRef;
|
|
39
45
|
}
|
package/TreeItem/TreeItem.js
CHANGED
|
@@ -361,7 +361,7 @@ TreeItem.propTypes = {
|
|
|
361
361
|
TransitionComponent: PropTypes.elementType,
|
|
362
362
|
/**
|
|
363
363
|
* Props applied to the transition element.
|
|
364
|
-
* By default, the element is based on this [`Transition`](
|
|
364
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
365
365
|
*/
|
|
366
366
|
TransitionProps: PropTypes.object
|
|
367
367
|
};
|
|
@@ -85,7 +85,7 @@ export interface TreeItemProps extends Omit<React.HTMLAttributes<HTMLLIElement>,
|
|
|
85
85
|
TransitionComponent?: React.JSXElementConstructor<TransitionProps>;
|
|
86
86
|
/**
|
|
87
87
|
* Props applied to the transition element.
|
|
88
|
-
* By default, the element is based on this [`Transition`](
|
|
88
|
+
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
|
89
89
|
*/
|
|
90
90
|
TransitionProps?: TransitionProps;
|
|
91
91
|
/**
|
package/TreeView/TreeView.js
CHANGED
|
@@ -64,6 +64,14 @@ process.env.NODE_ENV !== "production" ? TreeView.propTypes = {
|
|
|
64
64
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
65
65
|
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
66
66
|
// ----------------------------------------------------------------------
|
|
67
|
+
/**
|
|
68
|
+
* The ref object that allows Tree View manipulation. Can be instantiated with `useTreeViewApiRef()`.
|
|
69
|
+
*/
|
|
70
|
+
apiRef: PropTypes.shape({
|
|
71
|
+
current: PropTypes.shape({
|
|
72
|
+
focusNode: PropTypes.func.isRequired
|
|
73
|
+
})
|
|
74
|
+
}),
|
|
67
75
|
/**
|
|
68
76
|
* The content of the component.
|
|
69
77
|
*/
|
package/hooks/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useTreeViewApiRef } from './useTreeViewApiRef';
|
package/hooks/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useTreeViewApiRef } from './useTreeViewApiRef';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TreeViewAnyPluginSignature, TreeViewUsedPublicAPI } from '../internals/models';
|
|
3
|
+
/**
|
|
4
|
+
* Hook that instantiates a [[TreeViewApiRef]].
|
|
5
|
+
*/
|
|
6
|
+
export declare const useTreeViewApiRef: <T extends TreeViewAnyPluginSignature, Api extends TreeViewUsedPublicAPI<T>>() => React.MutableRefObject<Api>;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view v7.0.0-beta.
|
|
2
|
+
* @mui/x-tree-view v7.0.0-beta.5
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -11,4 +11,5 @@ export * from './SimpleTreeView';
|
|
|
11
11
|
export * from './RichTreeView';
|
|
12
12
|
export { unstable_resetCleanupTracking } from './internals/hooks/useInstanceEventHandler';
|
|
13
13
|
export * from './models';
|
|
14
|
-
export * from './icons';
|
|
14
|
+
export * from './icons';
|
|
15
|
+
export * from './hooks';
|