@mui/x-tree-view 7.22.0 → 7.23.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 +295 -0
- package/README.md +3 -3
- package/TreeItem2/TreeItem2.d.ts +1 -1
- package/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.d.ts +3 -0
- package/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.js +19 -16
- package/TreeItem2LabelInput/TreeItem2LabelInput.d.ts +3 -0
- package/TreeItem2LabelInput/TreeItem2LabelInput.js +4 -0
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/modern/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.js +19 -16
- package/modern/TreeItem2LabelInput/TreeItem2LabelInput.js +4 -0
- package/modern/index.js +3 -1
- package/node/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.js +20 -17
- package/node/TreeItem2LabelInput/TreeItem2LabelInput.js +3 -0
- package/node/index.js +25 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,301 @@
|
|
|
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.23.0
|
|
7
|
+
|
|
8
|
+
_Nov 29, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- ✨ Support for a new display mode on the Data Grid with the [List View feature](https://mui.com/x/react-data-grid/list-view/), offering an extremely flexible way to render datasets and enabling developers to adapt how data is displayed across different screen sizes.
|
|
13
|
+
|
|
14
|
+
https://github.com/user-attachments/assets/61286adc-03fc-4323-9739-8ca726fcc16c
|
|
15
|
+
|
|
16
|
+
- ⚛️ React 19 support
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🌍 Improve Spanish, Portuguese, Chinese locales on the Data Grid component.
|
|
19
|
+
- 🌍 Improve Dutch locale on the Date and Time Picker components.
|
|
20
|
+
- 🐞 Bugfixes
|
|
21
|
+
|
|
22
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
23
|
+
@dloeda, @headironc, @mathzdev, @nphmuller, @lhilgert9, @lauri865.
|
|
24
|
+
Following are all team members who have contributed to this release:
|
|
25
|
+
@oliviertassinari, @arminmeh, @KenanYusuf, @flaviendelangle, @MBilalShafi.
|
|
26
|
+
|
|
27
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
28
|
+
|
|
29
|
+
### Data Grid
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid@v7.23.0`
|
|
32
|
+
|
|
33
|
+
- [DataGrid] React 19 support (#15557) @arminmeh
|
|
34
|
+
- [DataGrid] Change test dom check from `/jsdom/` to `/jsdom|HappyDOM/`. (#15642) @jedesroches
|
|
35
|
+
- [DataGrid] Fix last separator not being hidden when grid is scrollable (#15551) @KenanYusuf
|
|
36
|
+
- [DataGrid] Fix order of spread props on toolbar items (#15556) @KenanYusuf
|
|
37
|
+
- [DataGrid] Fix row-spanning in combination with column-pinning (#15460) @lhilgert9
|
|
38
|
+
- [DataGrid] Improve resize performance (#15592) @lauri865
|
|
39
|
+
- [DataGrid] Support column virtualization with dynamic row height (#15567) @cherniavskii
|
|
40
|
+
- [DataGrid] Improve `GridCell` performance (#15621) @lauri865
|
|
41
|
+
- [l10n] Improve Chinese (zh-CN) locale (#15570) @headironc
|
|
42
|
+
- [l10n] Improve Portuguese (pt-PT) locale (#15561) @mathzdev
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-data-grid-pro@v7.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
45
|
+
|
|
46
|
+
Same changes as in `@mui/x-data-grid@v7.23.0`, plus:
|
|
47
|
+
|
|
48
|
+
- [DataGridPro] Fix header filtering with `boolean` column type (#15640) @k-rajat19
|
|
49
|
+
- [DataGridPro] Fix pagination state not updating if the data source response has no rows (#15643) @zinoroman
|
|
50
|
+
- [DataGridPro] Fix selection propagation issue on initialization (#15593) @MBilalShafi
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-data-grid-premium@v7.23.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-data-grid-pro@v7.23.0`.
|
|
55
|
+
|
|
56
|
+
### Date and Time Pickers
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-date-pickers@v7.23.0`
|
|
59
|
+
|
|
60
|
+
- [pickers] React 19 support (#15557) @arminmeh
|
|
61
|
+
- [pickers] Fix DST issue with `America/Asuncion` timezone and `AdapterMoment` (#15653) @flaviendelangle
|
|
62
|
+
- [pickers] Use `props.referenceDate` timezone when `props.value` and `props.defaultValue` are not defined (#15544) @flaviendelangle
|
|
63
|
+
- [l10n] Improve Dutch (nl-NL) locale (#15564) @nphmuller
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-date-pickers-pro@v7.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-date-pickers@v7.23.0`.
|
|
68
|
+
|
|
69
|
+
### Charts
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-charts@v7.23.0`
|
|
72
|
+
|
|
73
|
+
- [charts] React 19 support (#15557) @arminmeh
|
|
74
|
+
- [charts] Prevent invalid `releasePointerCapture` (#15609) @alexfauquette
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-charts-pro@v7.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
77
|
+
|
|
78
|
+
Same changes as in `@mui/x-charts@v7.23.0`.
|
|
79
|
+
|
|
80
|
+
### Tree View
|
|
81
|
+
|
|
82
|
+
#### `@mui/x-tree-view@v7.23.0`
|
|
83
|
+
|
|
84
|
+
- [TreeView] React 19 support (#15557) @arminmeh
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-tree-view-pro@7.23.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
|
+
|
|
88
|
+
Same changes as in `@mui/x-tree-view@7.23.0`.
|
|
89
|
+
|
|
90
|
+
### Docs
|
|
91
|
+
|
|
92
|
+
- [docs] Add data caching to lazy loaded detail panel demo (#15555) @cherniavskii
|
|
93
|
+
- [docs] Remove selectors section from list view docs (#15639) @KenanYusuf
|
|
94
|
+
- [docs] Add documentation for the list view feature (#15344) @KenanYusuf
|
|
95
|
+
|
|
96
|
+
### Core
|
|
97
|
+
|
|
98
|
+
- [core] Update @mui/monorepo (#15574) @oliviertassinari
|
|
99
|
+
|
|
100
|
+
## 7.22.3
|
|
101
|
+
|
|
102
|
+
_Nov 21, 2024_
|
|
103
|
+
|
|
104
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
105
|
+
|
|
106
|
+
- 📊 Charts Pro get stable. The [zoom](https://mui.com/x/react-charts/zoom-and-pan/) and [Heatmap](https://mui.com/x/react-charts/heatmap/) are now stable.
|
|
107
|
+
- 🌍 Improve Chinese, Spanish, Swedish, and Turkish locales on the Data Grid
|
|
108
|
+
- 🐞 Bugfixes
|
|
109
|
+
|
|
110
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
111
|
+
@CarlosLopezLg, @headironc, @viktormelin, @qerkules, @DungTiger, @hendrikpeilke, @k-rajat19.
|
|
112
|
+
Following are all team members who have contributed to this release:
|
|
113
|
+
@alexfauquette, @LukasTy, @MBilalShafi, @flaviendelangle.
|
|
114
|
+
|
|
115
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
116
|
+
|
|
117
|
+
### Data Grid
|
|
118
|
+
|
|
119
|
+
#### `@mui/x-data-grid@7.22.3`
|
|
120
|
+
|
|
121
|
+
- [DataGrid] Add prop to override search input props in `GridColumnsManagement` (#15476) @k-rajat19
|
|
122
|
+
- [DataGrid] Add test coverage for issues fixed in #15184 @MBilalShafi
|
|
123
|
+
- [DataGrid] Fix memoized selectors with arguments (#15336) @MBilalShafi
|
|
124
|
+
- [DataGrid] Fix right column group header border with virtualization (#15503) @hendrikpeilke
|
|
125
|
+
- [DataGrid] Pass reason to `onPaginationModelChange` (#15402) @DungTiger
|
|
126
|
+
- [DataGrid] Set default overlay height in flex parent layout (#15535) @cherniavskii
|
|
127
|
+
- [l10n] Improve Chinese (zh-CN) locale (#15365) @headironc
|
|
128
|
+
- [l10n] Improve Spanish (es-ES) locale (#15369) @CarlosLopezLg
|
|
129
|
+
- [l10n] Improve Swedish (sv-SE) locale (#15371) @viktormelin
|
|
130
|
+
- [l10n] Improve Turkish (tr-TR) locale (#15414) @qerkules
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid-pro@7.22.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
133
|
+
|
|
134
|
+
Same changes as in `@mui/x-data-grid@7.22.3`.
|
|
135
|
+
|
|
136
|
+
#### `@mui/x-data-grid-premium@7.22.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
137
|
+
|
|
138
|
+
Same changes as in `@mui/x-data-grid-pro@7.22.3`.
|
|
139
|
+
|
|
140
|
+
### Date and Time Pickers
|
|
141
|
+
|
|
142
|
+
#### `@mui/x-date-pickers@7.22.3`
|
|
143
|
+
|
|
144
|
+
- [pickers] Always use `props.value` when it changes (#15500) @flaviendelangle
|
|
145
|
+
- [pickers] Ensure internal value timezone is updated (#15491) @LukasTy
|
|
146
|
+
- [pickers] Fix `DateTimeRangePicker` error when using format without time (#15341) @fxnoob
|
|
147
|
+
- [pickers] Fix unused code in `PickersToolbar` component (#15525) @LukasTy
|
|
148
|
+
|
|
149
|
+
#### `@mui/x-date-pickers-pro@7.22.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
150
|
+
|
|
151
|
+
Same changes as in `@mui/x-date-pickers@7.22.3`, plus:
|
|
152
|
+
|
|
153
|
+
- [DateTimeRangePicker] Use time in `referenceDate` when selecting date (#15431) @LukasTy
|
|
154
|
+
|
|
155
|
+
### Charts
|
|
156
|
+
|
|
157
|
+
#### `@mui/x-charts@7.22.3`
|
|
158
|
+
|
|
159
|
+
No changes since `@mui/x-charts@7.22.2`.
|
|
160
|
+
|
|
161
|
+
#### `@mui/x-charts-pro@7.22.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
162
|
+
|
|
163
|
+
- [charts-pro] Fix missing typeOverload (#15400) @alexfauquette
|
|
164
|
+
|
|
165
|
+
### Docs
|
|
166
|
+
|
|
167
|
+
- [docs] Add `PickersPopper` component to customization playground (#15397) @LukasTy
|
|
168
|
+
- [docs] Add `next` version links (#15423) @LukasTy
|
|
169
|
+
- [docs] Use the `loading` state in the demos (#15538) @cherniavskii
|
|
170
|
+
|
|
171
|
+
- [code-infra] Tentative fix for Argos flaky screenshot tests (#15399) @JCQuintas
|
|
172
|
+
- [docs-infra] Transpile `.ts` demo files (#15421) @KenanYusuf
|
|
173
|
+
- [core] Clarify release version bump strategy (#15536) @cherniavskii
|
|
174
|
+
|
|
175
|
+
## 7.22.2
|
|
176
|
+
|
|
177
|
+
_Nov 8, 2024_
|
|
178
|
+
|
|
179
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
180
|
+
|
|
181
|
+
- 👨🏽💻 API enhancements
|
|
182
|
+
- 🐞 Bugfixes
|
|
183
|
+
|
|
184
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
185
|
+
@clins1994, @GuillaumeMeheut, @k-rajat19.
|
|
186
|
+
Following are all team members who have contributed to this release:
|
|
187
|
+
@LukasTy, @MBilalShafi, @KenanYusuf, @arminmeh.
|
|
188
|
+
|
|
189
|
+
### Upcoming alpha
|
|
190
|
+
|
|
191
|
+
Keep an eye out for the MUI⠀X `v8.0.0-aplha.0` release soon. It will follow a weekly release schedule as always until it is stable.
|
|
192
|
+
|
|
193
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
194
|
+
|
|
195
|
+
### Data Grid
|
|
196
|
+
|
|
197
|
+
#### `@mui/x-data-grid@7.22.2`
|
|
198
|
+
|
|
199
|
+
- [DataGrid] Fix `null` reference error in `GridVirtualScrollbar` (#15289) @MBilalShafi
|
|
200
|
+
- [DataGrid] Fix filtering with `boolean` column type (#15257) @k-rajat19
|
|
201
|
+
- [DataGrid] Improve row selection propagation trigger (#15274) @MBilalShafi
|
|
202
|
+
- [DataGrid] Preprocess edit cell props on backspace/delete (#15223) @KenanYusuf
|
|
203
|
+
- [DataGrid] Add a recipe to persist column width and order (#15309) @MBilalShafi
|
|
204
|
+
|
|
205
|
+
#### `@mui/x-data-grid-pro@7.22.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
206
|
+
|
|
207
|
+
Same changes as in `@mui/x-data-grid@7.22.2`, plus:
|
|
208
|
+
|
|
209
|
+
- [DataGridPro] Apply default properties if they are not passed in a reorder column (#15320) @k-rajat19
|
|
210
|
+
- [DataGridPro] Toggle row expansion with `Enter` key in Tree data (#15313) @k-rajat19
|
|
211
|
+
|
|
212
|
+
#### `@mui/x-data-grid-premium@7.22.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
213
|
+
|
|
214
|
+
Same changes as in `@mui/x-data-grid-pro@7.22.2`, plus:
|
|
215
|
+
|
|
216
|
+
- [DataGridPremium] Fix incorrect rows selection count when selection propagation is enabled with row grouping (#15222) @arminmeh
|
|
217
|
+
|
|
218
|
+
### Date and Time Pickers
|
|
219
|
+
|
|
220
|
+
#### `@mui/x-date-pickers@7.22.2`
|
|
221
|
+
|
|
222
|
+
- [pickers] Add support for `moment-hijri@3.0.0` (#15248) @LukasTy
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-date-pickers-pro@7.22.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
225
|
+
|
|
226
|
+
Same changes as in `@mui/x-date-pickers@7.22.2`.
|
|
227
|
+
|
|
228
|
+
### Charts
|
|
229
|
+
|
|
230
|
+
#### `@mui/x-charts@7.22.2`
|
|
231
|
+
|
|
232
|
+
- [charts] Allow `SeriesValueFormatter` to return `null` value (#15295) @clins1994
|
|
233
|
+
- [charts] Allow configuring the `domainLimit` for each axis. (#15325) @GuillaumeMeheut
|
|
234
|
+
|
|
235
|
+
#### `@mui/x-charts-pro@7.0.0-beta.7` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
236
|
+
|
|
237
|
+
Same changes as in `@mui/x-charts@7.22.2`.
|
|
238
|
+
|
|
239
|
+
## 7.22.1
|
|
240
|
+
|
|
241
|
+
_Nov 1, 2024_
|
|
242
|
+
|
|
243
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
244
|
+
|
|
245
|
+
- 🐞 Bugfixes
|
|
246
|
+
- 📚 Documentation improvements
|
|
247
|
+
- 🌍 Improve Polish (pl-PL) locale on the Date Pickers
|
|
248
|
+
|
|
249
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
250
|
+
@wojtkolos, @dpak-maurya, @k-rajat19.
|
|
251
|
+
Following are all team members who have contributed to this release:
|
|
252
|
+
@LukasTy, @arminmeh, @MBilalShafi, @KenanYusuf, @flaviendelangle.
|
|
253
|
+
|
|
254
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
255
|
+
|
|
256
|
+
### Data Grid
|
|
257
|
+
|
|
258
|
+
#### `@mui/x-data-grid@7.22.1`
|
|
259
|
+
|
|
260
|
+
- [DataGrid] Fix right column group header border (#15152) @KenanYusuf
|
|
261
|
+
- [DataGrid] Fix scroll jump when holding down arrow keys (#15167) @arminmeh
|
|
262
|
+
- [DataGrid] Move `rowGroupingModelChange` handler to respective hook (#15127) @MBilalShafi
|
|
263
|
+
- [DataGrid] Prevent error when deleting the last row (#15153) @dpak-maurya
|
|
264
|
+
- [DataGrid] Fix overlay height in autoHeight mode (#15205) @cherniavskii
|
|
265
|
+
|
|
266
|
+
#### `@mui/x-data-grid-pro@7.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
267
|
+
|
|
268
|
+
Same changes as in `@mui/x-data-grid@7.22.1`, plus:
|
|
269
|
+
|
|
270
|
+
- [DataGridPro] Add list view tests (#15166) @KenanYusuf
|
|
271
|
+
|
|
272
|
+
#### `@mui/x-data-grid-premium@7.22.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
273
|
+
|
|
274
|
+
- [DataGridPremium] Keep focus on the grouping cell on space bar press #15155 @k-rajat19
|
|
275
|
+
|
|
276
|
+
### Date and Time Pickers
|
|
277
|
+
|
|
278
|
+
#### `@mui/x-date-pickers@7.22.1`
|
|
279
|
+
|
|
280
|
+
- [l10n] Improve Polish (pl-PL) locale (#15177) @wojtkolos
|
|
281
|
+
|
|
282
|
+
#### `@mui/x-date-pickers-pro@7.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
283
|
+
|
|
284
|
+
Same changes as in `@mui/x-date-pickers@7.22.1`.
|
|
285
|
+
|
|
286
|
+
### Tree View
|
|
287
|
+
|
|
288
|
+
#### `@mui/x-tree-view@7.22.1`
|
|
289
|
+
|
|
290
|
+
- [TreeView] Export `TreeItem2DragAndDropOverlay` and `TreeItem2LabelInput` from the root of each package (#15208) @flaviendelangle
|
|
291
|
+
- [TreeView] Fix drag and drop color usage (#15149) @LukasTy
|
|
292
|
+
|
|
293
|
+
#### `@mui/x-tree-view-pro@7.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
294
|
+
|
|
295
|
+
Same changes as in `@mui/x-tree-view@7.22.1`.
|
|
296
|
+
|
|
297
|
+
### Docs
|
|
298
|
+
|
|
299
|
+
- [docs] Add section explaining how to keep the selection while filtering in Data grid docs (#15199) @arminmeh
|
|
300
|
+
|
|
6
301
|
## 7.22.0
|
|
7
302
|
|
|
8
303
|
_Oct 25, 2024_
|
package/README.md
CHANGED
|
@@ -15,9 +15,9 @@ This component has the following peer dependencies that you will need to install
|
|
|
15
15
|
|
|
16
16
|
```json
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@mui/material": "^5.15.14",
|
|
19
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
20
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
18
|
+
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
19
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
20
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
21
21
|
},
|
|
22
22
|
```
|
|
23
23
|
|
package/TreeItem2/TreeItem2.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const TreeItem2GroupTransition: import("@emotion/styled").StyledC
|
|
|
16
16
|
}, {}, {}>;
|
|
17
17
|
export declare const TreeItem2Checkbox: import("@emotion/styled").StyledComponent<Pick<Omit<CheckboxProps & {
|
|
18
18
|
visible: boolean;
|
|
19
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>, "hidden" | "visible" | "color" | "content" | "size" | "style" | "icon" | "translate" | "disabled" | "form" | "slot" | "title" | "suppressHydrationWarning" | "className" | "id" | "lang" | "name" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "
|
|
19
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>, "hidden" | "visible" | "color" | "content" | "size" | "style" | "icon" | "translate" | "disabled" | "form" | "slot" | "title" | "suppressHydrationWarning" | "className" | "id" | "lang" | "name" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "nonce" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "readOnly" | "required" | "action" | "checked" | "component" | "sx" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "checkedIcon" | "inputProps" | "inputRef" | "indeterminate" | "indeterminateIcon" | keyof React.RefAttributes<HTMLButtonElement>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
20
20
|
type TreeItem2Component = ((props: TreeItem2Props & React.RefAttributes<HTMLLIElement>) => React.JSX.Element) & {
|
|
21
21
|
propTypes?: any;
|
|
22
22
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TreeItem2DragAndDropOverlayProps } from './TreeItem2DragAndDropOverlay.types';
|
|
3
3
|
declare function TreeItem2DragAndDropOverlay(props: TreeItem2DragAndDropOverlayProps): React.JSX.Element | null;
|
|
4
|
+
declare namespace TreeItem2DragAndDropOverlay {
|
|
5
|
+
var propTypes: any;
|
|
6
|
+
}
|
|
4
7
|
export { TreeItem2DragAndDropOverlay };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
3
4
|
import { alpha } from '@mui/material/styles';
|
|
4
5
|
import { shouldForwardProp } from '@mui/system';
|
|
5
6
|
import { styled } from "../internals/zero-styled/index.js";
|
|
@@ -26,38 +27,32 @@ const TreeItem2DragAndDropOverlayRoot = styled('div', {
|
|
|
26
27
|
style: {
|
|
27
28
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
28
29
|
borderRadius: theme.shape.borderRadius,
|
|
29
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.
|
|
30
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.darkChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.dark, theme.palette.action.focusOpacity)
|
|
30
31
|
}
|
|
31
32
|
}, {
|
|
32
33
|
props: {
|
|
33
34
|
action: 'reorder-above'
|
|
34
35
|
},
|
|
35
|
-
style:
|
|
36
|
+
style: {
|
|
36
37
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
37
|
-
borderTop:
|
|
38
|
-
}
|
|
39
|
-
borderTopColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : alpha(theme.palette.grey[100], 0.6)
|
|
40
|
-
}))
|
|
38
|
+
borderTop: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
39
|
+
}
|
|
41
40
|
}, {
|
|
42
41
|
props: {
|
|
43
42
|
action: 'reorder-below'
|
|
44
43
|
},
|
|
45
|
-
style:
|
|
44
|
+
style: {
|
|
46
45
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
47
|
-
borderBottom:
|
|
48
|
-
}
|
|
49
|
-
borderBottomColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : alpha(theme.palette.grey[100], 0.6)
|
|
50
|
-
}))
|
|
46
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
47
|
+
}
|
|
51
48
|
}, {
|
|
52
49
|
props: {
|
|
53
50
|
action: 'move-to-parent'
|
|
54
51
|
},
|
|
55
|
-
style:
|
|
52
|
+
style: {
|
|
56
53
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))',
|
|
57
|
-
borderBottom:
|
|
58
|
-
}
|
|
59
|
-
borderBottomColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : alpha(theme.palette.grey[100], 0.6)
|
|
60
|
-
}))
|
|
54
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
55
|
+
}
|
|
61
56
|
}]
|
|
62
57
|
}));
|
|
63
58
|
function TreeItem2DragAndDropOverlay(props) {
|
|
@@ -66,4 +61,12 @@ function TreeItem2DragAndDropOverlay(props) {
|
|
|
66
61
|
}
|
|
67
62
|
return /*#__PURE__*/_jsx(TreeItem2DragAndDropOverlayRoot, _extends({}, props));
|
|
68
63
|
}
|
|
64
|
+
process.env.NODE_ENV !== "production" ? TreeItem2DragAndDropOverlay.propTypes = {
|
|
65
|
+
// ----------------------------- Warning --------------------------------
|
|
66
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
68
|
+
// ----------------------------------------------------------------------
|
|
69
|
+
action: PropTypes.oneOf(['make-child', 'move-to-parent', 'reorder-above', 'reorder-below']),
|
|
70
|
+
style: PropTypes.object
|
|
71
|
+
} : void 0;
|
|
69
72
|
export { TreeItem2DragAndDropOverlay };
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @ignore - internal component.
|
|
3
|
+
*/
|
|
1
4
|
declare const TreeItem2LabelInput: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, Pick<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, keyof import("react").ClassAttributes<HTMLInputElement> | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, {}>;
|
|
2
5
|
export { TreeItem2LabelInput };
|
package/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './TreeItem2';
|
|
|
6
6
|
export * from './useTreeItem2';
|
|
7
7
|
export * from './TreeItem2Icon';
|
|
8
8
|
export * from './TreeItem2Provider';
|
|
9
|
+
export * from './TreeItem2DragAndDropOverlay';
|
|
10
|
+
export * from './TreeItem2LabelInput';
|
|
9
11
|
export { unstable_resetCleanupTracking } from './internals/hooks/useInstanceEventHandler';
|
|
10
12
|
export * from './models';
|
|
11
13
|
export * from './icons';
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view v7.
|
|
2
|
+
* @mui/x-tree-view v7.23.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -16,6 +16,8 @@ export * from "./TreeItem2/index.js";
|
|
|
16
16
|
export * from "./useTreeItem2/index.js";
|
|
17
17
|
export * from "./TreeItem2Icon/index.js";
|
|
18
18
|
export * from "./TreeItem2Provider/index.js";
|
|
19
|
+
export * from "./TreeItem2DragAndDropOverlay/index.js";
|
|
20
|
+
export * from "./TreeItem2LabelInput/index.js";
|
|
19
21
|
export { unstable_resetCleanupTracking } from "./internals/hooks/useInstanceEventHandler.js";
|
|
20
22
|
export * from "./models/index.js";
|
|
21
23
|
export * from "./icons/index.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
3
4
|
import { alpha } from '@mui/material/styles';
|
|
4
5
|
import { shouldForwardProp } from '@mui/system';
|
|
5
6
|
import { styled } from "../internals/zero-styled/index.js";
|
|
@@ -26,38 +27,32 @@ const TreeItem2DragAndDropOverlayRoot = styled('div', {
|
|
|
26
27
|
style: {
|
|
27
28
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
28
29
|
borderRadius: theme.shape.borderRadius,
|
|
29
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.
|
|
30
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.darkChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.dark, theme.palette.action.focusOpacity)
|
|
30
31
|
}
|
|
31
32
|
}, {
|
|
32
33
|
props: {
|
|
33
34
|
action: 'reorder-above'
|
|
34
35
|
},
|
|
35
|
-
style:
|
|
36
|
+
style: {
|
|
36
37
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
37
|
-
borderTop:
|
|
38
|
-
}
|
|
39
|
-
borderTopColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : alpha(theme.palette.grey[100], 0.6)
|
|
40
|
-
}))
|
|
38
|
+
borderTop: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
39
|
+
}
|
|
41
40
|
}, {
|
|
42
41
|
props: {
|
|
43
42
|
action: 'reorder-below'
|
|
44
43
|
},
|
|
45
|
-
style:
|
|
44
|
+
style: {
|
|
46
45
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
47
|
-
borderBottom:
|
|
48
|
-
}
|
|
49
|
-
borderBottomColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : alpha(theme.palette.grey[100], 0.6)
|
|
50
|
-
}))
|
|
46
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
47
|
+
}
|
|
51
48
|
}, {
|
|
52
49
|
props: {
|
|
53
50
|
action: 'move-to-parent'
|
|
54
51
|
},
|
|
55
|
-
style:
|
|
52
|
+
style: {
|
|
56
53
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))',
|
|
57
|
-
borderBottom:
|
|
58
|
-
}
|
|
59
|
-
borderBottomColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : alpha(theme.palette.grey[100], 0.6)
|
|
60
|
-
}))
|
|
54
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
55
|
+
}
|
|
61
56
|
}]
|
|
62
57
|
}));
|
|
63
58
|
function TreeItem2DragAndDropOverlay(props) {
|
|
@@ -66,4 +61,12 @@ function TreeItem2DragAndDropOverlay(props) {
|
|
|
66
61
|
}
|
|
67
62
|
return /*#__PURE__*/_jsx(TreeItem2DragAndDropOverlayRoot, _extends({}, props));
|
|
68
63
|
}
|
|
64
|
+
process.env.NODE_ENV !== "production" ? TreeItem2DragAndDropOverlay.propTypes = {
|
|
65
|
+
// ----------------------------- Warning --------------------------------
|
|
66
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
67
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
68
|
+
// ----------------------------------------------------------------------
|
|
69
|
+
action: PropTypes.oneOf(['make-child', 'move-to-parent', 'reorder-above', 'reorder-below']),
|
|
70
|
+
style: PropTypes.object
|
|
71
|
+
} : void 0;
|
|
69
72
|
export { TreeItem2DragAndDropOverlay };
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view v7.
|
|
2
|
+
* @mui/x-tree-view v7.23.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -16,6 +16,8 @@ export * from "./TreeItem2/index.js";
|
|
|
16
16
|
export * from "./useTreeItem2/index.js";
|
|
17
17
|
export * from "./TreeItem2Icon/index.js";
|
|
18
18
|
export * from "./TreeItem2Provider/index.js";
|
|
19
|
+
export * from "./TreeItem2DragAndDropOverlay/index.js";
|
|
20
|
+
export * from "./TreeItem2LabelInput/index.js";
|
|
19
21
|
export { unstable_resetCleanupTracking } from "./internals/hooks/useInstanceEventHandler.js";
|
|
20
22
|
export * from "./models/index.js";
|
|
21
23
|
export * from "./icons/index.js";
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.TreeItem2DragAndDropOverlay = TreeItem2DragAndDropOverlay;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
12
|
var _styles = require("@mui/material/styles");
|
|
12
13
|
var _system = require("@mui/system");
|
|
13
14
|
var _zeroStyled = require("../internals/zero-styled");
|
|
@@ -34,38 +35,32 @@ const TreeItem2DragAndDropOverlayRoot = (0, _zeroStyled.styled)('div', {
|
|
|
34
35
|
style: {
|
|
35
36
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
36
37
|
borderRadius: theme.shape.borderRadius,
|
|
37
|
-
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.
|
|
38
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.darkChannel} / ${theme.vars.palette.action.focusOpacity})` : (0, _styles.alpha)(theme.palette.primary.dark, theme.palette.action.focusOpacity)
|
|
38
39
|
}
|
|
39
40
|
}, {
|
|
40
41
|
props: {
|
|
41
42
|
action: 'reorder-above'
|
|
42
43
|
},
|
|
43
|
-
style:
|
|
44
|
+
style: {
|
|
44
45
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
45
|
-
borderTop:
|
|
46
|
-
}
|
|
47
|
-
borderTopColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : (0, _styles.alpha)(theme.palette.grey[100], 0.6)
|
|
48
|
-
}))
|
|
46
|
+
borderTop: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
47
|
+
}
|
|
49
48
|
}, {
|
|
50
49
|
props: {
|
|
51
50
|
action: 'reorder-below'
|
|
52
51
|
},
|
|
53
|
-
style:
|
|
52
|
+
style: {
|
|
54
53
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))',
|
|
55
|
-
borderBottom:
|
|
56
|
-
}
|
|
57
|
-
borderBottomColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : (0, _styles.alpha)(theme.palette.grey[100], 0.6)
|
|
58
|
-
}))
|
|
54
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
55
|
+
}
|
|
59
56
|
}, {
|
|
60
57
|
props: {
|
|
61
58
|
action: 'move-to-parent'
|
|
62
59
|
},
|
|
63
|
-
style:
|
|
60
|
+
style: {
|
|
64
61
|
marginLeft: 'calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))',
|
|
65
|
-
borderBottom:
|
|
66
|
-
}
|
|
67
|
-
borderBottomColor: theme.vars ? `rgba(${theme.vars.palette.grey[100]} / ${0.6})` : (0, _styles.alpha)(theme.palette.grey[100], 0.6)
|
|
68
|
-
}))
|
|
62
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.action.active}`
|
|
63
|
+
}
|
|
69
64
|
}]
|
|
70
65
|
}));
|
|
71
66
|
function TreeItem2DragAndDropOverlay(props) {
|
|
@@ -73,4 +68,12 @@ function TreeItem2DragAndDropOverlay(props) {
|
|
|
73
68
|
return null;
|
|
74
69
|
}
|
|
75
70
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(TreeItem2DragAndDropOverlayRoot, (0, _extends2.default)({}, props));
|
|
76
|
-
}
|
|
71
|
+
}
|
|
72
|
+
process.env.NODE_ENV !== "production" ? TreeItem2DragAndDropOverlay.propTypes = {
|
|
73
|
+
// ----------------------------- Warning --------------------------------
|
|
74
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
75
|
+
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
76
|
+
// ----------------------------------------------------------------------
|
|
77
|
+
action: _propTypes.default.oneOf(['make-child', 'move-to-parent', 'reorder-above', 'reorder-below']),
|
|
78
|
+
style: _propTypes.default.object
|
|
79
|
+
} : void 0;
|
|
@@ -7,6 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.TreeItem2LabelInput = void 0;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _zeroStyled = require("../internals/zero-styled");
|
|
10
|
+
/**
|
|
11
|
+
* @ignore - internal component.
|
|
12
|
+
*/
|
|
10
13
|
const TreeItem2LabelInput = exports.TreeItem2LabelInput = (0, _zeroStyled.styled)('input', {
|
|
11
14
|
name: 'MuiTreeItem2',
|
|
12
15
|
slot: 'LabelInput',
|
package/node/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view v7.
|
|
2
|
+
* @mui/x-tree-view v7.23.0
|
|
3
3
|
*
|
|
4
4
|
* @license MIT
|
|
5
5
|
* This source code is licensed under the MIT license found in the
|
|
@@ -115,6 +115,30 @@ Object.keys(_TreeItem2Provider).forEach(function (key) {
|
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
});
|
|
118
|
+
var _TreeItem2DragAndDropOverlay = require("./TreeItem2DragAndDropOverlay");
|
|
119
|
+
Object.keys(_TreeItem2DragAndDropOverlay).forEach(function (key) {
|
|
120
|
+
if (key === "default" || key === "__esModule") return;
|
|
121
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
122
|
+
if (key in exports && exports[key] === _TreeItem2DragAndDropOverlay[key]) return;
|
|
123
|
+
Object.defineProperty(exports, key, {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
get: function () {
|
|
126
|
+
return _TreeItem2DragAndDropOverlay[key];
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
});
|
|
130
|
+
var _TreeItem2LabelInput = require("./TreeItem2LabelInput");
|
|
131
|
+
Object.keys(_TreeItem2LabelInput).forEach(function (key) {
|
|
132
|
+
if (key === "default" || key === "__esModule") return;
|
|
133
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
134
|
+
if (key in exports && exports[key] === _TreeItem2LabelInput[key]) return;
|
|
135
|
+
Object.defineProperty(exports, key, {
|
|
136
|
+
enumerable: true,
|
|
137
|
+
get: function () {
|
|
138
|
+
return _TreeItem2LabelInput[key];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
118
142
|
var _useInstanceEventHandler = require("./internals/hooks/useInstanceEventHandler");
|
|
119
143
|
var _models = require("./models");
|
|
120
144
|
Object.keys(_models).forEach(function (key) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.23.0",
|
|
4
4
|
"description": "The community edition of the Tree View components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -39,15 +39,15 @@
|
|
|
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.23.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|
|
46
46
|
"@emotion/styled": "^11.8.1",
|
|
47
47
|
"@mui/material": "^5.15.14 || ^6.0.0",
|
|
48
48
|
"@mui/system": "^5.15.14 || ^6.0.0",
|
|
49
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
50
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
49
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
50
|
+
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"@emotion/react": {
|