@mui/x-tree-view-pro 7.17.0 → 7.19.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 +208 -5
- package/RichTreeViewPro/RichTreeViewPro.js +2 -0
- package/RichTreeViewPro/RichTreeViewPro.plugins.d.ts +1 -1
- package/index.js +1 -1
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +18 -14
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/RichTreeViewPro/RichTreeViewPro.js +2 -0
- package/modern/index.js +1 -1
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +18 -14
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/node/RichTreeViewPro/RichTreeViewPro.js +1 -0
- package/node/index.js +1 -1
- package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +18 -14
- package/node/internals/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,209 @@
|
|
|
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.19.0
|
|
7
|
+
|
|
8
|
+
_Oct 4, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 26 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🔁 Automatic parents and children selection for Data Grid ["tree data"](https://mui.com/x/react-data-grid/tree-data/) and ["row grouping"](https://mui.com/x/react-data-grid/row-grouping/) features
|
|
13
|
+
- 💫 Support `minHeight` and `maxHeight` on flex parent container for the Data Grid component
|
|
14
|
+
- 🎁 Export `publicAPI` from the `useTreeItem2Utils` hook for the Tree View
|
|
15
|
+
- 🌍 Improve Bulgarian (bg-BG), Croatian (hr-HR), French (fr-FR), German (de-DE), Japanese (ja-JP) and Vietnamese (vi-VN) locales and add Portuguese (pt-PT) locale on the Data Grid component
|
|
16
|
+
- 🌏 Improve Czech (cs-CZ) and Portuguese (pt-BR) locales and add Bulgarian (bg-BG), Croatian (hr-HR) and Portuguese (pt-PT) locales on the Pickers components
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
- 📚 Documentation improvements
|
|
19
|
+
|
|
20
|
+
Special thanks goes out to our community contributors who have helped make this release possible:
|
|
21
|
+
@AWAIS97, @chucamphong, @GMchris, @JakubSveda, @k-rajat19, @k725, @lhilgert9, @ruiaraujo012, @Sanderand, @thomasmoon, @vallereaugabriel.
|
|
22
|
+
Following are all team members who have contributed to this release:
|
|
23
|
+
@alexfauquette, @arminmeh, @arthurbalduini, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @KenanYusuf, @MBilalShafi, @michelengelen, @noraleonte, @oliviertassinari, @romgrk, @sai6855, @samuelsycamore.
|
|
24
|
+
|
|
25
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
26
|
+
|
|
27
|
+
### Data Grid
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid@7.19.0`
|
|
30
|
+
|
|
31
|
+
- [DataGrid] Fix column definition `undefined` value (#14456) @sai6855
|
|
32
|
+
- [DataGrid] Fix `checkboxSelectionVisibleOnly` reset the selection on filtering (#14677) @MBilalShafi
|
|
33
|
+
- [DataGrid] Fix background colors when `CSSVarsProvider` is used (#12901) @cherniavskii
|
|
34
|
+
- [DataGrid] Fix error when initializing aggregation with row spanning (#14710) @MBilalShafi
|
|
35
|
+
- [DataGrid] Fix scroll to cell logic for keyboard navigating cells and drag selection with pinned columns (#14550) @KenanYusuf
|
|
36
|
+
- [DataGrid] Support `minHeight` and `maxHeight` on flex parent container (#14614) @cherniavskii
|
|
37
|
+
- [l10n] Add missing Portuguese (pt-PT) translations (#14707) @ruiaraujo012
|
|
38
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#14451) @GMchris
|
|
39
|
+
- [l10n] Improve Croatian (hr-HR) locale (#14794) @arminmeh
|
|
40
|
+
- [l10n] Improve French (fr-FR) locale (#14750) @vallereaugabriel
|
|
41
|
+
- [l10n] Improve German (de-DE) locale (#14755) @lhilgert9
|
|
42
|
+
- [l10n] Improve Japanese (ja-JP) locale (#14381) @k725
|
|
43
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#14769) @chucamphong
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-data-grid-pro@7.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
46
|
+
|
|
47
|
+
Same changes as in `@mui/x-data-grid@7.19.0`, plus:
|
|
48
|
+
|
|
49
|
+
- [DataGridPro] Fix dragging styles removal in column reorder (#14680) @k-rajat19
|
|
50
|
+
- [DataGridPro] Fix row pre-processing running with a stale data source (#14810) @MBilalShafi
|
|
51
|
+
- [DataGridPro] Fix `onRowsScrollEnd` not firing on very fast scrolling (#14171) @arminmeh
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid-premium@7.19.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-data-grid-pro@7.19.0`, plus:
|
|
56
|
+
|
|
57
|
+
- [DataGridPremium] Automatic parents and children selection (#13757) @MBilalShafi
|
|
58
|
+
|
|
59
|
+
### Date and Time Pickers
|
|
60
|
+
|
|
61
|
+
#### `@mui/x-date-pickers@7.19.0`
|
|
62
|
+
|
|
63
|
+
- [pickers] Fix left-right keyboard nav with `yearsOrder="desc"` and `direction="rtl"` (#14682) @thomasmoon
|
|
64
|
+
- [pickers] Improve `PickerValidDate` type (#14771) @flaviendelangle
|
|
65
|
+
- [pickers] Improve typing of the range pickers (#14716) @flaviendelangle
|
|
66
|
+
- [l10n] Add Bulgarian (bg-BG) locale (#14469) @GMchris
|
|
67
|
+
- [l10n] Add Croatian (hr-HR) locale (#14795) @arminmeh
|
|
68
|
+
- [l10n] Add Portuguese (pt-PT) locale (#14722) @ruiaraujo012
|
|
69
|
+
- [l10n] Improve Czech (cs-CZ) locale (#14732) @JakubSveda
|
|
70
|
+
- [l10n] Improve Portuguese (pt-BR) locale (#14725) @arthurbalduini
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-date-pickers-pro@7.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
|
+
|
|
74
|
+
Same changes as in `@mui/x-date-pickers@7.19.0`.
|
|
75
|
+
|
|
76
|
+
### Charts
|
|
77
|
+
|
|
78
|
+
#### `@mui/x-charts@7.19.0`
|
|
79
|
+
|
|
80
|
+
- [charts] Fix `LineChart` area animation being stuck when resizing container (#14711) @alexfauquette
|
|
81
|
+
- [charts] Improve types and start using `warnOnce` (#14792) @JCQuintas
|
|
82
|
+
|
|
83
|
+
#### `@mui/x-charts-pro@7.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
84
|
+
|
|
85
|
+
Same changes as in `@mui/x-charts@7.19.0`.
|
|
86
|
+
|
|
87
|
+
### Tree View
|
|
88
|
+
|
|
89
|
+
#### `@mui/x-tree-view@7.19.0`
|
|
90
|
+
|
|
91
|
+
- [TreeView] Apply experimental features in `getDefaultizedParams` instead of in the plugin render (#14661) @flaviendelangle
|
|
92
|
+
- [TreeView] Export `publicAPI` form `useTreeItem2Utils` (#14729) @noraleonte
|
|
93
|
+
- [TreeView] Fix cursor navigation interfering with browser shortcut keys (#14798) @sai6855
|
|
94
|
+
- [TreeView] Fix invalid test for items reordering (#14665) @flaviendelangle
|
|
95
|
+
- [TreeView] Remove `instance.getTreeItemIdAttribute` (#14667) @flaviendelangle
|
|
96
|
+
|
|
97
|
+
### Docs
|
|
98
|
+
|
|
99
|
+
- [docs] Added warning callout for Firefox reordering bug (#14516) @michelengelen
|
|
100
|
+
- [docs] Copyedit `pages.ts` navigation (#14782) @samuelsycamore
|
|
101
|
+
- [docs] Fix typo in row spanning doc (#14770) @flaviendelangle
|
|
102
|
+
- [docs] Fix typo in the Tree View migration guide to v7 (#14727) @Sanderand
|
|
103
|
+
- [docs] Fix typo in usage of Moment guide for UTC and timezones (#14780) @AWAIS97
|
|
104
|
+
- [docs] Fix what's new link to use absolute URL (#14543) @oliviertassinari
|
|
105
|
+
|
|
106
|
+
### Core
|
|
107
|
+
|
|
108
|
+
- [core] Fix class name composition order (#14775) @oliviertassinari
|
|
109
|
+
- [core] Replace minWidth, maxWidth with width (#14776) @oliviertassinari
|
|
110
|
+
- [code-infra] Remove custom playwright installation steps (#14728) @Janpot
|
|
111
|
+
- [code-infra] Replace or remove all instances of `e` identifier (#14724) @samuelsycamore
|
|
112
|
+
- [infra] Adds community contribution section to the changelog script (#14799) @michelengelen
|
|
113
|
+
- [infra] Fix line break in Stack Overflow message @oliviertassinari
|
|
114
|
+
- [test] Fix `Escape` event firing event (#14797) @oliviertassinari
|
|
115
|
+
|
|
116
|
+
## 7.18.0
|
|
117
|
+
|
|
118
|
+
_Sep 20, 2024_
|
|
119
|
+
|
|
120
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
121
|
+
|
|
122
|
+
- 💫 Support [Row spanning](https://mui.com/x/react-data-grid/row-spanning/) on the Data Grid that automatically merges the consecutive cells in a column based on the cell value
|
|
123
|
+
|
|
124
|
+
<img width="600" src="https://github.com/user-attachments/assets/d32ec936-d238-4c92-9e1a-af6788d74cdf" alt="data grid row spanning" />
|
|
125
|
+
|
|
126
|
+
- ⏰ Support `date-fns` v4 (#14673) @LukasTy
|
|
127
|
+
- 🎉 Add option for Pickers to change the order of displayed years (#11780) @thomasmoon
|
|
128
|
+
- 🐞 Bugfixes
|
|
129
|
+
- 📚 Documentation improvements
|
|
130
|
+
|
|
131
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
132
|
+
|
|
133
|
+
### Data Grid
|
|
134
|
+
|
|
135
|
+
#### `@mui/x-data-grid@7.18.0`
|
|
136
|
+
|
|
137
|
+
- [DataGrid] Add default reset value in row edit mode (#14050) @michelengelen
|
|
138
|
+
- [DataGrid] Add `columnGroupHeaderHeight` prop for sizing column group headers (#14637) @KenanYusuf
|
|
139
|
+
- [DataGrid] Fix `document` reference when the grid is rendered in a popup window (#14649) @arminmeh
|
|
140
|
+
- [DataGrid] Remove `minFirstColumn` from `GetHeadersParams` interface (#14450) @k-rajat19
|
|
141
|
+
- [DataGrid] Row spanning (#14124) @MBilalShafi
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-data-grid-pro@7.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
144
|
+
|
|
145
|
+
Same changes as in `@mui/x-data-grid@7.18.0`, plus:
|
|
146
|
+
|
|
147
|
+
- [DataGridPro] Fix `onRowsScrollEnd` being triggered instantly when bottom pinned row is present (#14602) @arminmeh
|
|
148
|
+
- [DataGridPro] Fix header filters rendering issue for `isEmpty` and `isNotEmpty` filter operators (#14493) @k-rajat19
|
|
149
|
+
- [DataGridPro] Fix pinned columns in RTL mode (#14586) @KenanYusuf
|
|
150
|
+
|
|
151
|
+
#### `@mui/x-data-grid-premium@7.18.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
152
|
+
|
|
153
|
+
Same changes as in `@mui/x-data-grid-pro@7.18.0`.
|
|
154
|
+
|
|
155
|
+
### Date and Time Pickers
|
|
156
|
+
|
|
157
|
+
#### `@mui/x-date-pickers@7.18.0`
|
|
158
|
+
|
|
159
|
+
- [pickers] Add option to change the order of displayed years (#11780) @thomasmoon
|
|
160
|
+
- [pickers] Support `date-fns` v4 (#14673) @LukasTy
|
|
161
|
+
|
|
162
|
+
#### `@mui/x-date-pickers-pro@7.18.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
163
|
+
|
|
164
|
+
Same changes as in `@mui/x-date-pickers@7.18.0`.
|
|
165
|
+
|
|
166
|
+
### Charts
|
|
167
|
+
|
|
168
|
+
#### `@mui/x-charts@7.18.0`
|
|
169
|
+
|
|
170
|
+
- [charts] Add a `PolarProvider` to manage polar axes (#14642) @alexfauquette
|
|
171
|
+
- [charts] Fix `LineChart` animation being stuck with initial drawing area value (#14553) @JCQuintas
|
|
172
|
+
- [charts] Fix legend slot typing (#14657) @alexfauquette
|
|
173
|
+
- [charts] Pass the axis index to extremum getter (#14641) @alexfauquette
|
|
174
|
+
- [charts] Provide hooks to create custom tooltip (#14377) @alexfauquette
|
|
175
|
+
|
|
176
|
+
#### `@mui/x-charts-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
177
|
+
|
|
178
|
+
Same changes as in `@mui/x-charts@7.18.0`.
|
|
179
|
+
|
|
180
|
+
### Tree View
|
|
181
|
+
|
|
182
|
+
#### `@mui/x-tree-view@7.18.0`
|
|
183
|
+
|
|
184
|
+
- [TreeView] Add `"use client"` directive to every public component and hook (#14579) @flaviendelangle
|
|
185
|
+
|
|
186
|
+
### Docs
|
|
187
|
+
|
|
188
|
+
- [docs] Add `groupingValueGetter` callout in column definition docs (#14599) @michelengelen
|
|
189
|
+
- [docs] Clean v6 => v7 migration guide (#14652) @flaviendelangle
|
|
190
|
+
- [docs] Copy `vale-action.yml` from main repo @oliviertassinari
|
|
191
|
+
- [docs] Edit the Pickers Getting started doc (#14555) @samuelsycamore
|
|
192
|
+
- [docs] Fix TypeScript capitalization @oliviertassinari
|
|
193
|
+
- [docs] Fix Vale error @oliviertassinari
|
|
194
|
+
- [docs] Make the migration guide diff a bit easier to read @oliviertassinari
|
|
195
|
+
- [docs] Report Vale at warning level (#14660) @oliviertassinari
|
|
196
|
+
- [docs] Warn about the `valueGetter` and `valueFormatter` signature change (#14613) @cherniavskii
|
|
197
|
+
- [docs] Polish code formatting (#14603) @oliviertassinari
|
|
198
|
+
- [test] Spy on `observe` method to avoid flaky wait for a callback (#14640) @arminmeh
|
|
199
|
+
|
|
200
|
+
### Core
|
|
201
|
+
|
|
202
|
+
- [core] Fix 301 link to Next.js and git diff @oliviertassinari
|
|
203
|
+
- [core] Fix failing CI on `master` (#14644) @cherniavskii
|
|
204
|
+
- [core] Fix `package.json` repository rule @oliviertassinari
|
|
205
|
+
- [core] MUI X repository moved to a new location @oliviertassinari
|
|
206
|
+
- [docs-infra] Strengthen CSP (#14581) @oliviertassinari
|
|
207
|
+
- [license] Finish renaming of LicensingModel (#14615) @oliviertassinari
|
|
208
|
+
|
|
6
209
|
## 7.17.0
|
|
7
210
|
|
|
8
211
|
_Sep 13, 2024_
|
|
@@ -75,7 +278,7 @@ Same changes as in `@mui/x-charts@7.17.0`.
|
|
|
75
278
|
### Docs
|
|
76
279
|
|
|
77
280
|
- [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
|
|
78
|
-
- [docs] Fix broken redirection to MUI
|
|
281
|
+
- [docs] Fix broken redirection to MUI X v5 @oliviertassinari
|
|
79
282
|
- [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
|
|
80
283
|
- [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
|
|
81
284
|
- [docs] Match title with blog posts @oliviertassinari
|
|
@@ -195,7 +398,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
195
398
|
|
|
196
399
|
- 💫 Support Material UI v6 (`@mui/material@6`) peer dependency (#14142) @cherniavskii
|
|
197
400
|
|
|
198
|
-
You can now use MUI
|
|
401
|
+
You can now use MUI X components with either v5 or v6 of `@mui/material` package 🎉
|
|
199
402
|
|
|
200
403
|
- 🐞 Bugfixes
|
|
201
404
|
|
|
@@ -240,7 +443,7 @@ Same changes as in `@mui/x-charts@7.15.0`, plus:
|
|
|
240
443
|
|
|
241
444
|
- [docs] Fix sentence case `h2` @oliviertassinari
|
|
242
445
|
- [docs] Clarify contribution guide references @oliviertassinari
|
|
243
|
-
- [docs] Fix Stack
|
|
446
|
+
- [docs] Fix Stack Overflow issue canned response @oliviertassinari
|
|
244
447
|
- [docs] Fix outdated link to support page @oliviertassinari
|
|
245
448
|
- [docs] Fix use of Material UI @oliviertassinari
|
|
246
449
|
- [docs] Update deprecated props in docs (#14295) @JCQuintas
|
|
@@ -498,7 +701,7 @@ The [Pro plan](https://mui.com/x/introduction/licensing/#pro-plan) is receiving
|
|
|
498
701
|
|
|
499
702
|
As always, every feature released as part of the MIT plan will remain free and MIT licensed forever.
|
|
500
703
|
|
|
501
|
-
This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI
|
|
704
|
+
This expansion of the Pro plan comes with some adjustments to our pricing strategy. Learn more about those in the [Upcoming changes to MUI X pricing in 2024](https://mui.com/blog/mui-x-sep-2024-price-update/) blog post.
|
|
502
705
|
|
|
503
706
|
### Highlights
|
|
504
707
|
|
|
@@ -563,7 +766,7 @@ Same changes as in `@mui/x-date-pickers@7.12.0`.
|
|
|
563
766
|
#### `@mui/x-charts@7.12.0`
|
|
564
767
|
|
|
565
768
|
- [charts] Fix incorrect `axisId` prop being allowed in xAxis/yAxis config. Use `id` instead. (#13986) @JCQuintas
|
|
566
|
-
- [charts] Use vendor to have
|
|
769
|
+
- [charts] Use vendor to have CommonJS bundle working out of the box (#13608) @alexfauquette
|
|
567
770
|
- [charts] Divide the `SeriesProvider` to use in filtering (#14026) @JCQuintas
|
|
568
771
|
|
|
569
772
|
### Tree View
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UseTreeViewItemsParameters, UseTreeViewExpansionParameters, UseTreeViewSelectionParameters, UseTreeViewFocusParameters, UseTreeViewIconsParameters, ConvertPluginsIntoSignatures, MergeSignaturesProperty, TreeViewCorePluginParameters, UseTreeViewLabelParameters } from '@mui/x-tree-view/internals';
|
|
2
2
|
import { UseTreeViewItemsReorderingParameters } from '../internals/plugins/useTreeViewItemsReordering';
|
|
3
|
-
export declare const RICH_TREE_VIEW_PRO_PLUGINS: readonly [import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewExpansionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewSelectionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewFocusSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewKeyboardNavigationSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewIconsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLabelSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("../internals
|
|
3
|
+
export declare const RICH_TREE_VIEW_PRO_PLUGINS: readonly [import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewItemsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewExpansionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewSelectionSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewFocusSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewKeyboardNavigationSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewIconsSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("@mui/x-tree-view/internals").UseTreeViewLabelSignature>, import("@mui/x-tree-view/internals").TreeViewPlugin<import("../internals").UseTreeViewItemsReorderingSignature>];
|
|
4
4
|
export type RichTreeViewProPluginSignatures = ConvertPluginsIntoSignatures<typeof RICH_TREE_VIEW_PRO_PLUGINS>;
|
|
5
5
|
export type RichTreeViewProPluginSlots = MergeSignaturesProperty<RichTreeViewProPluginSignatures, 'slots'>;
|
|
6
6
|
export type RichTreeViewProPluginSlotProps = MergeSignaturesProperty<RichTreeViewProPluginSignatures, 'slotProps'>;
|
package/index.js
CHANGED
|
@@ -7,17 +7,10 @@ export const useTreeViewItemsReordering = ({
|
|
|
7
7
|
params,
|
|
8
8
|
instance,
|
|
9
9
|
state,
|
|
10
|
-
setState
|
|
11
|
-
experimentalFeatures
|
|
10
|
+
setState
|
|
12
11
|
}) => {
|
|
13
|
-
const isItemsReorderingEnabled = params.itemsReordering && !!experimentalFeatures?.itemsReordering;
|
|
14
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
15
|
-
if (params.itemsReordering && (!experimentalFeatures?.indentationAtItemLevel || !experimentalFeatures?.itemsReordering)) {
|
|
16
|
-
warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
12
|
const canItemBeDragged = React.useCallback(itemId => {
|
|
20
|
-
if (!
|
|
13
|
+
if (!params.itemsReordering) {
|
|
21
14
|
return false;
|
|
22
15
|
}
|
|
23
16
|
const isItemReorderable = params.isItemReorderable;
|
|
@@ -25,7 +18,7 @@ export const useTreeViewItemsReordering = ({
|
|
|
25
18
|
return isItemReorderable(itemId);
|
|
26
19
|
}
|
|
27
20
|
return true;
|
|
28
|
-
}, [
|
|
21
|
+
}, [params.itemsReordering, params.isItemReorderable]);
|
|
29
22
|
const getDroppingTargetValidActions = React.useCallback(itemId => {
|
|
30
23
|
const itemsReordering = state.itemsReordering;
|
|
31
24
|
if (!itemsReordering) {
|
|
@@ -173,16 +166,27 @@ export const useTreeViewItemsReordering = ({
|
|
|
173
166
|
},
|
|
174
167
|
contextValue: {
|
|
175
168
|
itemsReordering: {
|
|
176
|
-
enabled:
|
|
169
|
+
enabled: params.itemsReordering,
|
|
177
170
|
currentDrag: state.itemsReordering
|
|
178
171
|
}
|
|
179
172
|
}
|
|
180
173
|
};
|
|
181
174
|
};
|
|
182
175
|
useTreeViewItemsReordering.itemPlugin = useTreeViewItemsReorderingItemPlugin;
|
|
183
|
-
useTreeViewItemsReordering.getDefaultizedParams =
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
useTreeViewItemsReordering.getDefaultizedParams = ({
|
|
177
|
+
params,
|
|
178
|
+
experimentalFeatures
|
|
179
|
+
}) => {
|
|
180
|
+
const canUseFeature = experimentalFeatures?.indentationAtItemLevel && experimentalFeatures?.itemsReordering;
|
|
181
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
182
|
+
if (params.itemsReordering && !canUseFeature) {
|
|
183
|
+
warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return _extends({}, params, {
|
|
187
|
+
itemsReordering: canUseFeature ? params.itemsReordering ?? false : false
|
|
188
|
+
});
|
|
189
|
+
};
|
|
186
190
|
useTreeViewItemsReordering.getInitialState = () => ({
|
|
187
191
|
itemsReordering: null
|
|
188
192
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyNzk4OTIwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/modern/index.js
CHANGED
|
@@ -7,17 +7,10 @@ export const useTreeViewItemsReordering = ({
|
|
|
7
7
|
params,
|
|
8
8
|
instance,
|
|
9
9
|
state,
|
|
10
|
-
setState
|
|
11
|
-
experimentalFeatures
|
|
10
|
+
setState
|
|
12
11
|
}) => {
|
|
13
|
-
const isItemsReorderingEnabled = params.itemsReordering && !!experimentalFeatures?.itemsReordering;
|
|
14
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
15
|
-
if (params.itemsReordering && (!experimentalFeatures?.indentationAtItemLevel || !experimentalFeatures?.itemsReordering)) {
|
|
16
|
-
warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
12
|
const canItemBeDragged = React.useCallback(itemId => {
|
|
20
|
-
if (!
|
|
13
|
+
if (!params.itemsReordering) {
|
|
21
14
|
return false;
|
|
22
15
|
}
|
|
23
16
|
const isItemReorderable = params.isItemReorderable;
|
|
@@ -25,7 +18,7 @@ export const useTreeViewItemsReordering = ({
|
|
|
25
18
|
return isItemReorderable(itemId);
|
|
26
19
|
}
|
|
27
20
|
return true;
|
|
28
|
-
}, [
|
|
21
|
+
}, [params.itemsReordering, params.isItemReorderable]);
|
|
29
22
|
const getDroppingTargetValidActions = React.useCallback(itemId => {
|
|
30
23
|
const itemsReordering = state.itemsReordering;
|
|
31
24
|
if (!itemsReordering) {
|
|
@@ -173,16 +166,27 @@ export const useTreeViewItemsReordering = ({
|
|
|
173
166
|
},
|
|
174
167
|
contextValue: {
|
|
175
168
|
itemsReordering: {
|
|
176
|
-
enabled:
|
|
169
|
+
enabled: params.itemsReordering,
|
|
177
170
|
currentDrag: state.itemsReordering
|
|
178
171
|
}
|
|
179
172
|
}
|
|
180
173
|
};
|
|
181
174
|
};
|
|
182
175
|
useTreeViewItemsReordering.itemPlugin = useTreeViewItemsReorderingItemPlugin;
|
|
183
|
-
useTreeViewItemsReordering.getDefaultizedParams =
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
useTreeViewItemsReordering.getDefaultizedParams = ({
|
|
177
|
+
params,
|
|
178
|
+
experimentalFeatures
|
|
179
|
+
}) => {
|
|
180
|
+
const canUseFeature = experimentalFeatures?.indentationAtItemLevel && experimentalFeatures?.itemsReordering;
|
|
181
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
182
|
+
if (params.itemsReordering && !canUseFeature) {
|
|
183
|
+
warnOnce(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return _extends({}, params, {
|
|
187
|
+
itemsReordering: canUseFeature ? params.itemsReordering ?? false : false
|
|
188
|
+
});
|
|
189
|
+
};
|
|
186
190
|
useTreeViewItemsReordering.getInitialState = () => ({
|
|
187
191
|
itemsReordering: null
|
|
188
192
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyNzk4OTIwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/node/index.js
CHANGED
|
@@ -15,17 +15,10 @@ const useTreeViewItemsReordering = ({
|
|
|
15
15
|
params,
|
|
16
16
|
instance,
|
|
17
17
|
state,
|
|
18
|
-
setState
|
|
19
|
-
experimentalFeatures
|
|
18
|
+
setState
|
|
20
19
|
}) => {
|
|
21
|
-
const isItemsReorderingEnabled = params.itemsReordering && !!experimentalFeatures?.itemsReordering;
|
|
22
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
23
|
-
if (params.itemsReordering && (!experimentalFeatures?.indentationAtItemLevel || !experimentalFeatures?.itemsReordering)) {
|
|
24
|
-
(0, _warning.warnOnce)(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
20
|
const canItemBeDragged = React.useCallback(itemId => {
|
|
28
|
-
if (!
|
|
21
|
+
if (!params.itemsReordering) {
|
|
29
22
|
return false;
|
|
30
23
|
}
|
|
31
24
|
const isItemReorderable = params.isItemReorderable;
|
|
@@ -33,7 +26,7 @@ const useTreeViewItemsReordering = ({
|
|
|
33
26
|
return isItemReorderable(itemId);
|
|
34
27
|
}
|
|
35
28
|
return true;
|
|
36
|
-
}, [
|
|
29
|
+
}, [params.itemsReordering, params.isItemReorderable]);
|
|
37
30
|
const getDroppingTargetValidActions = React.useCallback(itemId => {
|
|
38
31
|
const itemsReordering = state.itemsReordering;
|
|
39
32
|
if (!itemsReordering) {
|
|
@@ -181,7 +174,7 @@ const useTreeViewItemsReordering = ({
|
|
|
181
174
|
},
|
|
182
175
|
contextValue: {
|
|
183
176
|
itemsReordering: {
|
|
184
|
-
enabled:
|
|
177
|
+
enabled: params.itemsReordering,
|
|
185
178
|
currentDrag: state.itemsReordering
|
|
186
179
|
}
|
|
187
180
|
}
|
|
@@ -189,9 +182,20 @@ const useTreeViewItemsReordering = ({
|
|
|
189
182
|
};
|
|
190
183
|
exports.useTreeViewItemsReordering = useTreeViewItemsReordering;
|
|
191
184
|
useTreeViewItemsReordering.itemPlugin = _useTreeViewItemsReordering2.useTreeViewItemsReorderingItemPlugin;
|
|
192
|
-
useTreeViewItemsReordering.getDefaultizedParams =
|
|
193
|
-
|
|
194
|
-
|
|
185
|
+
useTreeViewItemsReordering.getDefaultizedParams = ({
|
|
186
|
+
params,
|
|
187
|
+
experimentalFeatures
|
|
188
|
+
}) => {
|
|
189
|
+
const canUseFeature = experimentalFeatures?.indentationAtItemLevel && experimentalFeatures?.itemsReordering;
|
|
190
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
191
|
+
if (params.itemsReordering && !canUseFeature) {
|
|
192
|
+
(0, _warning.warnOnce)(['MUI X: The items reordering feature requires the `indentationAtItemLevel` and `itemsReordering` experimental features to be enabled.', 'You can do it by passing `experimentalFeatures={{ indentationAtItemLevel: true, itemsReordering: true }}` to the `RichTreeViewPro` component.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/']);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return (0, _extends2.default)({}, params, {
|
|
196
|
+
itemsReordering: canUseFeature ? params.itemsReordering ?? false : false
|
|
197
|
+
});
|
|
198
|
+
};
|
|
195
199
|
useTreeViewItemsReordering.getInitialState = () => ({
|
|
196
200
|
itemsReordering: null
|
|
197
201
|
});
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTcyNzk4OTIwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.19.0",
|
|
4
4
|
"description": "The Pro plan edition of the Tree View components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
],
|
|
30
30
|
"repository": {
|
|
31
31
|
"type": "git",
|
|
32
|
-
"url": "https://github.com/mui/mui-x.git",
|
|
32
|
+
"url": "git+https://github.com/mui/mui-x.git",
|
|
33
33
|
"directory": "packages/x-tree-view-pro"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
@@ -39,9 +39,9 @@
|
|
|
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.
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-
|
|
42
|
+
"@mui/x-internals": "7.18.0",
|
|
43
|
+
"@mui/x-tree-view": "7.19.0",
|
|
44
|
+
"@mui/x-license": "7.18.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|