@mui/x-tree-view-pro 7.15.0 → 7.17.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 +185 -1
- package/RichTreeViewPro/RichTreeViewPro.js +6 -5
- package/RichTreeViewPro/RichTreeViewPro.plugins.js +1 -1
- package/RichTreeViewPro/index.js +2 -2
- package/index.js +2 -2
- package/internals/index.js +1 -1
- package/internals/plugins/useTreeViewItemsReordering/index.js +1 -1
- package/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +3 -3
- package/internals/utils/releaseInfo.js +1 -1
- package/modern/RichTreeViewPro/RichTreeViewPro.js +6 -5
- package/modern/RichTreeViewPro/RichTreeViewPro.plugins.js +1 -1
- package/modern/RichTreeViewPro/index.js +2 -2
- package/modern/index.js +2 -2
- package/modern/internals/index.js +1 -1
- package/modern/internals/plugins/useTreeViewItemsReordering/index.js +1 -1
- package/modern/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +3 -3
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/themeAugmentation/index.js +0 -3
- package/node/RichTreeViewPro/RichTreeViewPro.js +4 -4
- package/node/RichTreeViewPro/richTreeViewProClasses.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +1 -2
- package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +4 -5
- package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js +1 -1
- package/node/internals/utils/releaseInfo.js +1 -1
- package/node/themeAugmentation/index.js +1 -38
- package/package.json +5 -5
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/index.js +0 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,192 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
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.17.0
|
|
7
|
+
|
|
8
|
+
_Sep 13, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 📊 Charts performance improvement
|
|
13
|
+
- 🧑💻 New Data Grid [custom columns demo](https://mui.com/x/react-data-grid/custom-columns/#full-example)
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
- 🌍 Improve Hungarian (hu-HU) locale on the Data Grid
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.17.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add "does not equal" and "does not contain" filter operators (#14489) @KenanYusuf
|
|
25
|
+
- [DataGrid] Add demo to the "Custom columns" page that does not use generator (#13695) @arminmeh
|
|
26
|
+
- [DataGrid] Fix Voice Over reading the column name twice (#14482) @arminmeh
|
|
27
|
+
- [DataGrid] Fix bug in CRUD example (#14513) @michelengelen
|
|
28
|
+
- [DataGrid] Fix failing jsdom tests caused by `:has()` selectors (#14559) @KenanYusuf
|
|
29
|
+
- [DataGrid] Refactor string operator filter functions (#14564) @KenanYusuf
|
|
30
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#14506) @ntamas
|
|
31
|
+
|
|
32
|
+
#### `@mui/x-data-grid-pro@7.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
33
|
+
|
|
34
|
+
Same changes as in `@mui/x-data-grid@7.17.0`.
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@7.17.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@7.17.0`.
|
|
39
|
+
|
|
40
|
+
### Date and Time Pickers
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers@7.17.0`
|
|
43
|
+
|
|
44
|
+
- [fields] Improve `useSplitFieldProps` and make it public (#14514) @flaviendelangle
|
|
45
|
+
- [pickers] Improve clear action label (#14243) @oliviertassinari
|
|
46
|
+
- [pickers] Add `"use client"` directive to every public component and hook (#14562) @flaviendelangle
|
|
47
|
+
- [pickers] Allow custom fields to validate the value (#14486) @flaviendelangle
|
|
48
|
+
- [pickers] Stop using utils in locales (#14505) @flaviendelangle
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-date-pickers-pro@7.17.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-date-pickers@7.17.0`, plus:
|
|
53
|
+
|
|
54
|
+
- [DateRangePicker] Fix `currentMonthCalendarPosition` not scrolling to future sibling (#14442) @GMchris
|
|
55
|
+
|
|
56
|
+
### Charts
|
|
57
|
+
|
|
58
|
+
#### `@mui/x-charts@7.17.0`
|
|
59
|
+
|
|
60
|
+
- [charts] Add `"use client"` directive to every public component and hook (#14578) @flaviendelangle
|
|
61
|
+
- [charts] Allow `onItemClick` on the `Legend` component (#14231) @JCQuintas
|
|
62
|
+
- [charts] Fix `onAxisClick` with `layout='horizontal'` (#14547) @alexfauquette
|
|
63
|
+
- [charts] Replace `path` with `circle` for performance improvement (#14518) @alexfauquette
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-charts-pro@7.0.0-beta.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
66
|
+
|
|
67
|
+
Same changes as in `@mui/x-charts@7.17.0`.
|
|
68
|
+
|
|
69
|
+
### Tree View
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-tree-view@7.17.0`
|
|
72
|
+
|
|
73
|
+
- [TreeView] Make `useTreeItem2` stable (#14498) @flaviendelangle
|
|
74
|
+
|
|
75
|
+
### Docs
|
|
76
|
+
|
|
77
|
+
- [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
|
|
78
|
+
- [docs] Fix broken redirection to MUI X v5 @oliviertassinari
|
|
79
|
+
- [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
|
|
80
|
+
- [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
|
|
81
|
+
- [docs] Match title with blog posts @oliviertassinari
|
|
82
|
+
|
|
83
|
+
### Core
|
|
84
|
+
|
|
85
|
+
- [core] Move warning methods to `@mui/x-internals` (#14528) @k-rajat19
|
|
86
|
+
- [core] Sync with core release flow @oliviertassinari
|
|
87
|
+
- [code-infra] Fix charts benchmark workflow (#14573) @JCQuintas
|
|
88
|
+
- [docs-infra] Type interface API pages (#14138) @alexfauquette
|
|
89
|
+
- [infra] Create `ESLint plugins` renovate group (#14574) @LukasTy
|
|
90
|
+
- [license] Clean-up terminology to match codebase (#14531) @oliviertassinari
|
|
91
|
+
- [test] Remove dead `act()` logic (#14529) @oliviertassinari
|
|
92
|
+
|
|
93
|
+
## 7.16.0
|
|
94
|
+
|
|
95
|
+
_Sep 5, 2024_
|
|
96
|
+
|
|
97
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
98
|
+
|
|
99
|
+
- 🎨 Update the design of Data Grid column headers (#14293)
|
|
100
|
+
- 🧠 Add the `slots` concept introduction documentation page (#13881)
|
|
101
|
+
- 🌍 Improve Chinese (zh-CN) and Dutch (nl-NL) locales on the Data Grid
|
|
102
|
+
- 🐞 Bugfixes
|
|
103
|
+
- 📚 Documentation improvements
|
|
104
|
+
|
|
105
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
106
|
+
|
|
107
|
+
### Data Grid
|
|
108
|
+
|
|
109
|
+
#### `@mui/x-data-grid@7.16.0`
|
|
110
|
+
|
|
111
|
+
- [DataGrid] Add key prop to `GridFilterInputMultipleValue` (#14302) @sai6855
|
|
112
|
+
- [DataGrid] Allow to control the indeterminate checkbox behavior (#14247) @MBilalShafi
|
|
113
|
+
- [DataGrid] Column header design updates (#14293) @KenanYusuf
|
|
114
|
+
- [DataGrid] Fix error on simultaneous `columns` and `columnGroupingModel` update (#14368) @cherniavskii
|
|
115
|
+
- [DataGrid] Fix first row flickering with `autoHeight` prop enabled (#14235) @KenanYusuf
|
|
116
|
+
- [DataGrid] Remove cell min-width / max-width styles (#14448) @oliviertassinari
|
|
117
|
+
- [DataGrid] Restore reselect behavior (#14410) @romgrk
|
|
118
|
+
- [l10n] Improve Chinese (zh-CN) locale (#14394) @lawvs
|
|
119
|
+
- [l10n] Improve Dutch (nl-NL) locale (#14398) @Janpot
|
|
120
|
+
|
|
121
|
+
#### `@mui/x-data-grid-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
122
|
+
|
|
123
|
+
Same changes as in `@mui/x-data-grid@7.16.0`, plus:
|
|
124
|
+
|
|
125
|
+
- [DataGridPro] Fix duplicate top border in header filters (#14375) @MBilalShafi
|
|
126
|
+
|
|
127
|
+
#### `@mui/x-data-grid-premium@7.16.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
128
|
+
|
|
129
|
+
Same changes as in `@mui/x-data-grid-pro@7.16.0`.
|
|
130
|
+
|
|
131
|
+
### Date and Time Pickers
|
|
132
|
+
|
|
133
|
+
#### `@mui/x-date-pickers@7.16.0`
|
|
134
|
+
|
|
135
|
+
- [pickers] Improve `onError` JSDoc (#14492) @flaviendelangle
|
|
136
|
+
- [pickers] Keep the calendar header and content in sync when switching locale (#14125) @flaviendelangle
|
|
137
|
+
- [pickers] Move multi input range field validation tests to the describe test file (#14501) @flaviendelangle
|
|
138
|
+
|
|
139
|
+
#### `@mui/x-date-pickers-pro@7.16.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
140
|
+
|
|
141
|
+
Same changes as in `@mui/x-date-pickers@7.16.0`.
|
|
142
|
+
|
|
143
|
+
### Charts
|
|
144
|
+
|
|
145
|
+
#### `@mui/x-charts@7.16.0`
|
|
146
|
+
|
|
147
|
+
- [charts] Fix JSDoc typos (#14497) @alexfauquette
|
|
148
|
+
- [charts] Fix `LineChart` not properly animating when hydrating (#14355) @JCQuintas
|
|
149
|
+
- [charts] Fix theme augmentation (#14372) @alexfauquette
|
|
150
|
+
- [charts] Pass all props to legend (#14392) @JCQuintas
|
|
151
|
+
- [charts] Use `.mjs` extension for ESM build (#14387) @alexfauquette
|
|
152
|
+
- [charts] Update `package.json` for vendor package (#14465) @alexfauquette
|
|
153
|
+
|
|
154
|
+
#### `@mui/x-charts-pro@7.0.0-beta.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
155
|
+
|
|
156
|
+
Same changes as in `@mui/x-charts@7.16.0`, plus:
|
|
157
|
+
|
|
158
|
+
- [charts-pro] Fix props and automated documentation on `BarChartPro` and `LineChartPro` (#14391) @JCQuintas
|
|
159
|
+
|
|
160
|
+
### Tree View
|
|
161
|
+
|
|
162
|
+
#### `@mui/x-tree-view@7.16.0`
|
|
163
|
+
|
|
164
|
+
- [TreeView] Clean label editing code (#14264) @flaviendelangle
|
|
165
|
+
|
|
166
|
+
### `@mui/x-codemod@7.16.0`
|
|
167
|
+
|
|
168
|
+
- [codemod] Fix `experimentalFeatures` codemod for typescript parser (#14150) @MBilalShafi
|
|
169
|
+
|
|
170
|
+
### Docs
|
|
171
|
+
|
|
172
|
+
- [docs] Add RTL documentation for the pickers (#13855) @flaviendelangle
|
|
173
|
+
- [docs] Add the `slots` concept introduction page (#13881) @flaviendelangle
|
|
174
|
+
- [docs] Remove TypeScript v3 outdated version mentions (#14443) @k-rajat19
|
|
175
|
+
- [docs] Remove notion of seats (#14351) @oliviertassinari
|
|
176
|
+
- [docs] Use real world data for `PieChart` examples (#14297) @JCQuintas
|
|
177
|
+
|
|
178
|
+
### Core
|
|
179
|
+
|
|
180
|
+
- [core] Fix changelog spelling @oliviertassinari
|
|
181
|
+
- [core] Fix failing tests on the pickers (#14457) @flaviendelangle
|
|
182
|
+
- [core] Reset permissions for codspeed GitHub Action (#14420) @oliviertassinari
|
|
183
|
+
- [code-infra] Add babel runtime version check (#14483) @Janpot
|
|
184
|
+
- [code-infra] Fully resolve imports in ESM target (#14234) @Janpot
|
|
185
|
+
- [code-infra] Update runners from node 18 to 20 (#14466) @JCQuintas
|
|
186
|
+
- [infra] Added `secrets: inherit` to workflow call (#14454) @michelengelen
|
|
187
|
+
- [infra] Switch "add closing message" to reusable workflow (#14499) @michelengelen
|
|
188
|
+
- [infra] Switch "issue triage workflow" to reusable workflows (#14390) @michelengelen
|
|
189
|
+
|
|
6
190
|
## 7.15.0
|
|
7
191
|
|
|
8
192
|
_Aug 29, 2024_
|
|
@@ -5,11 +5,12 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
5
5
|
import { useLicenseVerifier, Watermark } from '@mui/x-license';
|
|
6
6
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
7
7
|
import { TreeItem } from '@mui/x-tree-view/TreeItem';
|
|
8
|
-
import { useTreeView, TreeViewProvider
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { useTreeView, TreeViewProvider } from '@mui/x-tree-view/internals';
|
|
9
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
10
|
+
import { styled, createUseThemeProps } from "../internals/zero-styled/index.js";
|
|
11
|
+
import { getRichTreeViewProUtilityClass } from "./richTreeViewProClasses.js";
|
|
12
|
+
import { RICH_TREE_VIEW_PRO_PLUGINS } from "./RichTreeViewPro.plugins.js";
|
|
13
|
+
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
const useThemeProps = createUseThemeProps('MuiRichTreeViewPro');
|
|
15
16
|
const useUtilityClasses = ownerState => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeViewItems, useTreeViewExpansion, useTreeViewSelection, useTreeViewFocus, useTreeViewKeyboardNavigation, useTreeViewIcons, useTreeViewLabel } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { useTreeViewItemsReordering } from
|
|
2
|
+
import { useTreeViewItemsReordering } from "../internals/plugins/useTreeViewItemsReordering/index.js";
|
|
3
3
|
export const RICH_TREE_VIEW_PRO_PLUGINS = [useTreeViewItems, useTreeViewExpansion, useTreeViewSelection, useTreeViewFocus, useTreeViewKeyboardNavigation, useTreeViewIcons, useTreeViewLabel, useTreeViewItemsReordering];
|
|
4
4
|
|
|
5
5
|
// We can't infer this type from the plugin, otherwise we would lose the generics.
|
package/RichTreeViewPro/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./RichTreeViewPro.js";
|
|
2
|
+
export * from "./richTreeViewProClasses.js";
|
|
3
3
|
export {};
|
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view-pro v7.
|
|
2
|
+
* @mui/x-tree-view-pro v7.17.0
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// Tree View
|
|
9
9
|
export * from '@mui/x-tree-view/TreeView';
|
|
10
10
|
export * from '@mui/x-tree-view/SimpleTreeView';
|
|
11
|
-
export * from
|
|
11
|
+
export * from "./RichTreeViewPro/index.js";
|
|
12
12
|
|
|
13
13
|
// Tree Item
|
|
14
14
|
export * from '@mui/x-tree-view/TreeItem';
|
package/internals/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { UseTreeViewItemsReorderingSignature } from
|
|
1
|
+
export { UseTreeViewItemsReorderingSignature } from "./plugins/useTreeViewItemsReordering/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useTreeViewItemsReordering } from
|
|
1
|
+
export { useTreeViewItemsReordering } from "./useTreeViewItemsReordering.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { warnOnce } from '@mui/x-
|
|
4
|
-
import { chooseActionToApply, isAncestor, moveItemInTree } from
|
|
5
|
-
import { useTreeViewItemsReorderingItemPlugin } from
|
|
3
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
4
|
+
import { chooseActionToApply, isAncestor, moveItemInTree } from "./useTreeViewItemsReordering.utils.js";
|
|
5
|
+
import { useTreeViewItemsReorderingItemPlugin } from "./useTreeViewItemsReordering.itemPlugin.js";
|
|
6
6
|
export const useTreeViewItemsReordering = ({
|
|
7
7
|
params,
|
|
8
8
|
instance,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyNjE5NjQwMDAwMA==";
|
|
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
|
|
@@ -5,11 +5,12 @@ import composeClasses from '@mui/utils/composeClasses';
|
|
|
5
5
|
import { useLicenseVerifier, Watermark } from '@mui/x-license';
|
|
6
6
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
7
7
|
import { TreeItem } from '@mui/x-tree-view/TreeItem';
|
|
8
|
-
import { useTreeView, TreeViewProvider
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
8
|
+
import { useTreeView, TreeViewProvider } from '@mui/x-tree-view/internals';
|
|
9
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
10
|
+
import { styled, createUseThemeProps } from "../internals/zero-styled/index.js";
|
|
11
|
+
import { getRichTreeViewProUtilityClass } from "./richTreeViewProClasses.js";
|
|
12
|
+
import { RICH_TREE_VIEW_PRO_PLUGINS } from "./RichTreeViewPro.plugins.js";
|
|
13
|
+
import { getReleaseInfo } from "../internals/utils/releaseInfo.js";
|
|
13
14
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
15
|
const useThemeProps = createUseThemeProps('MuiRichTreeViewPro');
|
|
15
16
|
const useUtilityClasses = ownerState => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeViewItems, useTreeViewExpansion, useTreeViewSelection, useTreeViewFocus, useTreeViewKeyboardNavigation, useTreeViewIcons, useTreeViewLabel } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { useTreeViewItemsReordering } from
|
|
2
|
+
import { useTreeViewItemsReordering } from "../internals/plugins/useTreeViewItemsReordering/index.js";
|
|
3
3
|
export const RICH_TREE_VIEW_PRO_PLUGINS = [useTreeViewItems, useTreeViewExpansion, useTreeViewSelection, useTreeViewFocus, useTreeViewKeyboardNavigation, useTreeViewIcons, useTreeViewLabel, useTreeViewItemsReordering];
|
|
4
4
|
|
|
5
5
|
// We can't infer this type from the plugin, otherwise we would lose the generics.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from "./RichTreeViewPro.js";
|
|
2
|
+
export * from "./richTreeViewProClasses.js";
|
|
3
3
|
export {};
|
package/modern/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @mui/x-tree-view-pro v7.
|
|
2
|
+
* @mui/x-tree-view-pro v7.17.0
|
|
3
3
|
*
|
|
4
4
|
* @license MUI X Commercial
|
|
5
5
|
* This source code is licensed under the commercial license found in the
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// Tree View
|
|
9
9
|
export * from '@mui/x-tree-view/TreeView';
|
|
10
10
|
export * from '@mui/x-tree-view/SimpleTreeView';
|
|
11
|
-
export * from
|
|
11
|
+
export * from "./RichTreeViewPro/index.js";
|
|
12
12
|
|
|
13
13
|
// Tree Item
|
|
14
14
|
export * from '@mui/x-tree-view/TreeItem';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { UseTreeViewItemsReorderingSignature } from
|
|
1
|
+
export { UseTreeViewItemsReorderingSignature } from "./plugins/useTreeViewItemsReordering/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { useTreeViewItemsReordering } from
|
|
1
|
+
export { useTreeViewItemsReordering } from "./useTreeViewItemsReordering.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { warnOnce } from '@mui/x-
|
|
4
|
-
import { chooseActionToApply, isAncestor, moveItemInTree } from
|
|
5
|
-
import { useTreeViewItemsReorderingItemPlugin } from
|
|
3
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
4
|
+
import { chooseActionToApply, isAncestor, moveItemInTree } from "./useTreeViewItemsReordering.utils.js";
|
|
5
|
+
import { useTreeViewItemsReorderingItemPlugin } from "./useTreeViewItemsReordering.itemPlugin.js";
|
|
6
6
|
export const useTreeViewItemsReordering = ({
|
|
7
7
|
params,
|
|
8
8
|
instance,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyNjE5NjQwMDAwMA==";
|
|
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
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -13,13 +14,12 @@ var _xLicense = require("@mui/x-license");
|
|
|
13
14
|
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
14
15
|
var _TreeItem = require("@mui/x-tree-view/TreeItem");
|
|
15
16
|
var _internals = require("@mui/x-tree-view/internals");
|
|
17
|
+
var _warning = require("@mui/x-internals/warning");
|
|
16
18
|
var _zeroStyled = require("../internals/zero-styled");
|
|
17
19
|
var _richTreeViewProClasses = require("./richTreeViewProClasses");
|
|
18
20
|
var _RichTreeViewPro = require("./RichTreeViewPro.plugins");
|
|
19
21
|
var _releaseInfo = require("../internals/utils/releaseInfo");
|
|
20
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
23
23
|
const useThemeProps = (0, _zeroStyled.createUseThemeProps)('MuiRichTreeViewPro');
|
|
24
24
|
const useUtilityClasses = ownerState => {
|
|
25
25
|
const {
|
|
@@ -112,7 +112,7 @@ const RichTreeViewPro = exports.RichTreeViewPro = /*#__PURE__*/React.forwardRef(
|
|
|
112
112
|
(0, _xLicense.useLicenseVerifier)('x-tree-view-pro', releaseInfo);
|
|
113
113
|
if (process.env.NODE_ENV !== 'production') {
|
|
114
114
|
if (props.children != null) {
|
|
115
|
-
(0,
|
|
115
|
+
(0, _warning.warnOnce)(['MUI X: The `RichTreeViewPro` component does not support JSX children.', 'If you want to add items, you need to use the `items` prop.', 'Check the documentation for more details: https://mui.com/x/react-tree-view/rich-tree-view/items/.']);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
const {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
package/node/index.js
CHANGED
package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports.useTreeViewItemsReorderingItemPlugin = exports.isAndroid = void 0;
|
|
7
8
|
var React = _interopRequireWildcard(require("react"));
|
|
8
9
|
var _internals = require("@mui/x-tree-view/internals");
|
|
9
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
10
|
const isAndroid = () => navigator.userAgent.toLowerCase().includes('android');
|
|
12
11
|
exports.isAndroid = isAndroid;
|
|
13
12
|
const useTreeViewItemsReorderingItemPlugin = ({
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.useTreeViewItemsReordering = void 0;
|
|
8
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
10
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
11
|
+
var _warning = require("@mui/x-internals/warning");
|
|
11
12
|
var _useTreeViewItemsReordering = require("./useTreeViewItemsReordering.utils");
|
|
12
13
|
var _useTreeViewItemsReordering2 = require("./useTreeViewItemsReordering.itemPlugin");
|
|
13
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
15
14
|
const useTreeViewItemsReordering = ({
|
|
16
15
|
params,
|
|
17
16
|
instance,
|
|
@@ -22,7 +21,7 @@ const useTreeViewItemsReordering = ({
|
|
|
22
21
|
const isItemsReorderingEnabled = params.itemsReordering && !!experimentalFeatures?.itemsReordering;
|
|
23
22
|
if (process.env.NODE_ENV !== 'production') {
|
|
24
23
|
if (params.itemsReordering && (!experimentalFeatures?.indentationAtItemLevel || !experimentalFeatures?.itemsReordering)) {
|
|
25
|
-
(0,
|
|
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/']);
|
|
26
25
|
}
|
|
27
26
|
}
|
|
28
27
|
const canItemBeDragged = React.useCallback(itemId => {
|
package/node/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
@@ -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 = "MTcyNjE5NjQwMDAwMA==";
|
|
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
|
|
@@ -1,38 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _overrides = require("./overrides");
|
|
7
|
-
Object.keys(_overrides).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _overrides[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _overrides[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _props = require("./props");
|
|
18
|
-
Object.keys(_props).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _props[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _props[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _components = require("./components");
|
|
29
|
-
Object.keys(_components).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _components[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _components[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
1
|
+
"use strict";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.17.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",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"directory": "packages/x-tree-view-pro"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.25.
|
|
36
|
+
"@babel/runtime": "^7.25.6",
|
|
37
37
|
"@mui/utils": "^5.16.6",
|
|
38
38
|
"@types/react-transition-group": "^4.4.11",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-internals": "7.
|
|
43
|
-
"@mui/x-license": "7.
|
|
44
|
-
"@mui/x-tree-view": "7.
|
|
42
|
+
"@mui/x-internals": "7.17.0",
|
|
43
|
+
"@mui/x-license": "7.17.0",
|
|
44
|
+
"@mui/x-tree-view": "7.17.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './overrides';
|
|
2
|
-
export * from './props';
|
|
3
|
-
export * from './components';
|
|
1
|
+
export type * from './overrides';
|
|
2
|
+
export type * from './props';
|
|
3
|
+
export type * from './components';
|