@mui/x-tree-view-pro 7.12.0 → 7.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{build/CHANGELOG.md → CHANGELOG.md} +70 -2
- package/{build/index.js → index.js} +1 -1
- package/{build/internals → internals}/utils/releaseInfo.js +1 -1
- package/{build/modern → modern}/index.js +1 -1
- package/{build/modern → modern}/internals/utils/releaseInfo.js +1 -1
- package/{build/node → node}/index.js +1 -1
- package/{build/node → node}/internals/utils/releaseInfo.js +1 -1
- package/package.json +16 -19
- package/build/LICENSE +0 -11
- package/build/README.md +0 -26
- package/build/package.json +0 -59
- package/src/RichTreeViewPro/RichTreeViewPro.plugins.ts +0 -54
- package/src/RichTreeViewPro/RichTreeViewPro.test.tsx +0 -20
- package/src/RichTreeViewPro/RichTreeViewPro.tsx +0 -383
- package/src/RichTreeViewPro/RichTreeViewPro.types.ts +0 -80
- package/src/RichTreeViewPro/index.ts +0 -8
- package/src/RichTreeViewPro/richTreeViewProClasses.ts +0 -18
- package/src/index.ts +0 -17
- package/src/internals/index.ts +0 -1
- package/src/internals/plugins/useTreeViewItemsReordering/index.ts +0 -7
- package/src/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.ts +0 -155
- package/src/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.test.tsx +0 -370
- package/src/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.ts +0 -278
- package/src/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.ts +0 -160
- package/src/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.ts +0 -199
- package/src/internals/utils/releaseInfo.ts +0 -15
- package/src/internals/zero-styled/index.ts +0 -8
- package/src/themeAugmentation/components.d.ts +0 -13
- package/src/themeAugmentation/index.js +0 -1
- package/src/themeAugmentation/index.ts +0 -3
- package/src/themeAugmentation/overrides.d.ts +0 -13
- package/src/themeAugmentation/props.d.ts +0 -12
- package/src/themeAugmentation/themeAugmentation.spec.ts +0 -26
- package/tsconfig.build.json +0 -21
- package/tsconfig.build.tsbuildinfo +0 -1
- package/tsconfig.json +0 -14
- /package/{build/RichTreeViewPro → RichTreeViewPro}/RichTreeViewPro.d.ts +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/RichTreeViewPro.js +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/RichTreeViewPro.plugins.d.ts +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/RichTreeViewPro.plugins.js +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/RichTreeViewPro.types.d.ts +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/RichTreeViewPro.types.js +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/index.d.ts +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/index.js +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/package.json +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/richTreeViewProClasses.d.ts +0 -0
- /package/{build/RichTreeViewPro → RichTreeViewPro}/richTreeViewProClasses.js +0 -0
- /package/{build/index.d.ts → index.d.ts} +0 -0
- /package/{build/internals → internals}/index.d.ts +0 -0
- /package/{build/internals → internals}/index.js +0 -0
- /package/{build/internals → internals}/package.json +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/index.d.ts +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/index.js +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.d.ts +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.d.ts +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.d.ts +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.js +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.d.ts +0 -0
- /package/{build/internals → internals}/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js +0 -0
- /package/{build/internals → internals}/utils/releaseInfo.d.ts +0 -0
- /package/{build/internals → internals}/zero-styled/index.d.ts +0 -0
- /package/{build/internals → internals}/zero-styled/index.js +0 -0
- /package/{build/modern → modern}/RichTreeViewPro/RichTreeViewPro.js +0 -0
- /package/{build/modern → modern}/RichTreeViewPro/RichTreeViewPro.plugins.js +0 -0
- /package/{build/modern → modern}/RichTreeViewPro/RichTreeViewPro.types.js +0 -0
- /package/{build/modern → modern}/RichTreeViewPro/index.js +0 -0
- /package/{build/modern → modern}/RichTreeViewPro/richTreeViewProClasses.js +0 -0
- /package/{build/modern → modern}/internals/index.js +0 -0
- /package/{build/modern → modern}/internals/plugins/useTreeViewItemsReordering/index.js +0 -0
- /package/{build/modern → modern}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +0 -0
- /package/{build/modern → modern}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +0 -0
- /package/{build/modern → modern}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.js +0 -0
- /package/{build/modern → modern}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js +0 -0
- /package/{build/modern → modern}/internals/zero-styled/index.js +0 -0
- /package/{build/modern → modern}/themeAugmentation/index.js +0 -0
- /package/{build/node → node}/RichTreeViewPro/RichTreeViewPro.js +0 -0
- /package/{build/node → node}/RichTreeViewPro/RichTreeViewPro.plugins.js +0 -0
- /package/{build/node → node}/RichTreeViewPro/RichTreeViewPro.types.js +0 -0
- /package/{build/node → node}/RichTreeViewPro/index.js +0 -0
- /package/{build/node → node}/RichTreeViewPro/richTreeViewProClasses.js +0 -0
- /package/{build/node → node}/internals/index.js +0 -0
- /package/{build/node → node}/internals/plugins/useTreeViewItemsReordering/index.js +0 -0
- /package/{build/node → node}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.itemPlugin.js +0 -0
- /package/{build/node → node}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.js +0 -0
- /package/{build/node → node}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.types.js +0 -0
- /package/{build/node → node}/internals/plugins/useTreeViewItemsReordering/useTreeViewItemsReordering.utils.js +0 -0
- /package/{build/node → node}/internals/zero-styled/index.js +0 -0
- /package/{build/node → node}/themeAugmentation/index.js +0 -0
- /package/{build/themeAugmentation → themeAugmentation}/components.d.ts +0 -0
- /package/{build/themeAugmentation → themeAugmentation}/index.d.ts +0 -0
- /package/{build/themeAugmentation → themeAugmentation}/index.js +0 -0
- /package/{build/themeAugmentation → themeAugmentation}/overrides.d.ts +0 -0
- /package/{build/themeAugmentation → themeAugmentation}/package.json +0 -0
- /package/{build/themeAugmentation → themeAugmentation}/props.d.ts +0 -0
|
@@ -3,6 +3,74 @@
|
|
|
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.12.1
|
|
7
|
+
|
|
8
|
+
_Aug 8, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎨 Charts get a new component to display color mapping in the legend
|
|
13
|
+
- 🚀 The `@mui/x-charts-pro` is released in alpha version 🧪. This new package introduces two main features:
|
|
14
|
+
- The Heatmap component
|
|
15
|
+
- The zoom interaction on the bar, line, and scatter charts
|
|
16
|
+
- 🌍 Improve Dutch (nl-NL) locale on the Date and Time Pickers
|
|
17
|
+
- 🐞 Bugfixes
|
|
18
|
+
|
|
19
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
20
|
+
|
|
21
|
+
### Data Grid
|
|
22
|
+
|
|
23
|
+
#### `@mui/x-data-grid@7.12.1`
|
|
24
|
+
|
|
25
|
+
- [DataGrid] Fix `checkboxSelectionVisibleOnly` behavior with server-side pagination (#14083) @MBilalShafi
|
|
26
|
+
- [DataGrid] Fix `columnHeadersContainerRef` being `undefined` before mount (#14051) @samwato
|
|
27
|
+
- [DataGrid] Support Yarn PnP (#14126) @cherniavskii
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-pro@7.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid@7.12.1`.
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-premium@7.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid-pro@7.12.1`.
|
|
36
|
+
|
|
37
|
+
### Date and Time Pickers
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers@7.12.1`
|
|
40
|
+
|
|
41
|
+
- [l10n] Improve Dutch (nlNL) locale (pickers) (#14036) @Robin1896
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers-pro@7.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
44
|
+
|
|
45
|
+
Same changes as in `@mui/x-date-pickers@7.12.1`.
|
|
46
|
+
|
|
47
|
+
### Charts
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-charts@7.12.1`
|
|
50
|
+
|
|
51
|
+
- [charts] Fix charts vendor publish config (#14073) @JCQuintas
|
|
52
|
+
- [charts] Move `plugins` to `PluginProvider` (#14056) @JCQuintas
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-date-charts-pro@7.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-charts@7.12.1`, plus:
|
|
57
|
+
|
|
58
|
+
- [charts-pro] Release the pro package in alpha (#13859) @alexfauquette
|
|
59
|
+
|
|
60
|
+
### Tree View
|
|
61
|
+
|
|
62
|
+
#### `@mui/x-tree-view@7.12.1`
|
|
63
|
+
|
|
64
|
+
### Docs
|
|
65
|
+
|
|
66
|
+
- [docs] Add a warning to promote the usage of `updateRows` (#14027) @MBilalShafi
|
|
67
|
+
- [docs] Disable ad in `Rich Tree View-Ordering` page (#14123) @oliviertassinari
|
|
68
|
+
- [docs] Redesign Date and Time Pickers overview page (#13241) @noraleonte
|
|
69
|
+
|
|
70
|
+
- [CHANGELOG] Polish details @oliviertassinari
|
|
71
|
+
- [code-infra] Use concurrency 1 in CircleCI (#14110) @JCQuintas
|
|
72
|
+
- [infra] Re-added the removal of `Latest Version` section (#14132) @michelengelen
|
|
73
|
+
|
|
6
74
|
## 7.12.0
|
|
7
75
|
|
|
8
76
|
_Aug 1, 2024_
|
|
@@ -24,9 +92,9 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
24
92
|
|
|
25
93
|
- 🎁 Introduce [item reordering using drag and drop](https://mui.com/x/react-tree-view/rich-tree-view/ordering/) on the `RichTreeViewPro` component
|
|
26
94
|
|
|
27
|
-
<img width="
|
|
95
|
+
<img width="287" src="https://github.com/user-attachments/assets/78bd83c5-7ce4-4ed7-acf9-be70b2dbce54" alt="Item reordering using drag and drop" />
|
|
28
96
|
|
|
29
|
-
- 📦 Support
|
|
97
|
+
- 📦 Support CommonJS bundle out of the box on `@mui/x-charts` by adding vendored D3 dependencies.
|
|
30
98
|
|
|
31
99
|
- This modifies how the package imports D3.js. It will impact you if you use `d3` packages installed by `@mui/x-charts` and don't have them in your `package.json`. You shouldn't be affected otherwise.
|
|
32
100
|
- For more context, the initial issue is caused by D3 only exporting ESM.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyMzE1NDQwMDAwMA==";
|
|
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,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcyMzE1NDQwMDAwMA==";
|
|
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
|
|
@@ -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 = "MTcyMzE1NDQwMDAwMA==";
|
|
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,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "7.12.
|
|
3
|
+
"version": "7.12.1",
|
|
4
4
|
"description": "The Pro plan edition of the Tree View components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "./node/index.js",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
8
8
|
"bugs": {
|
|
9
9
|
"url": "https://github.com/mui/mui-x/issues"
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"publishConfig": {
|
|
18
|
-
"access": "public"
|
|
18
|
+
"access": "public",
|
|
19
|
+
"directory": "build"
|
|
19
20
|
},
|
|
20
21
|
"keywords": [
|
|
21
22
|
"react",
|
|
@@ -39,9 +40,9 @@
|
|
|
39
40
|
"clsx": "^2.1.1",
|
|
40
41
|
"prop-types": "^15.8.1",
|
|
41
42
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-license": "7.12.0",
|
|
43
43
|
"@mui/x-internals": "7.12.0",
|
|
44
|
-
"@mui/x-
|
|
44
|
+
"@mui/x-license": "7.12.0",
|
|
45
|
+
"@mui/x-tree-view": "7.12.1"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
48
|
"@emotion/react": "^11.9.0",
|
|
@@ -50,22 +51,18 @@
|
|
|
50
51
|
"react": "^17.0.0 || ^18.0.0",
|
|
51
52
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
52
53
|
},
|
|
53
|
-
"
|
|
54
|
-
"@
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
"peerDependenciesMeta": {
|
|
55
|
+
"@emotion/react": {
|
|
56
|
+
"optional": true
|
|
57
|
+
},
|
|
58
|
+
"@emotion/styled": {
|
|
59
|
+
"optional": true
|
|
60
|
+
}
|
|
57
61
|
},
|
|
58
62
|
"engines": {
|
|
59
63
|
"node": ">=14.0.0"
|
|
60
64
|
},
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"build:modern": "node ../../scripts/build.mjs modern",
|
|
65
|
-
"build:node": "node ../../scripts/build.mjs node",
|
|
66
|
-
"build:stable": "node ../../scripts/build.mjs stable",
|
|
67
|
-
"build:copy-files": "node ../../scripts/copyFiles.mjs",
|
|
68
|
-
"build:types": "node ../../scripts/buildTypes.mjs",
|
|
69
|
-
"prebuild": "rimraf build tsconfig.build.tsbuildinfo"
|
|
70
|
-
}
|
|
65
|
+
"private": false,
|
|
66
|
+
"module": "./index.js",
|
|
67
|
+
"types": "./index.d.ts"
|
|
71
68
|
}
|
package/build/LICENSE
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Commercial License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Material-UI SAS
|
|
4
|
-
|
|
5
|
-
MUI X Pro (https://mui.com/pricing/) is commercial software. You MUST agree to the
|
|
6
|
-
End User License Agreement (EULA: https://mui.com/r/x-license-eula) to be able to
|
|
7
|
-
use the software.
|
|
8
|
-
|
|
9
|
-
This means that you either need to purchase a commercial license at
|
|
10
|
-
https://mui.com/r/x-get-license?scope=pro or be eligible for the Evaluation (trial)
|
|
11
|
-
licenses detailed at https://mui.com/r/x-license-trial.
|
package/build/README.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# MUI X Tree View
|
|
2
|
-
|
|
3
|
-
This package is the Pro plan edition of the Tree View components.
|
|
4
|
-
It's part of [MUI X](https://mui.com/x/), an open-core extension of MUI Core, with advanced components.
|
|
5
|
-
|
|
6
|
-
## Installation
|
|
7
|
-
|
|
8
|
-
Install the package in your project directory with:
|
|
9
|
-
|
|
10
|
-
```bash
|
|
11
|
-
npm install @mui/x-tree-view-pro
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
This component has the following peer dependencies that you will need to install as well.
|
|
15
|
-
|
|
16
|
-
```json
|
|
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"
|
|
21
|
-
},
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## Documentation
|
|
25
|
-
|
|
26
|
-
Visit [https://mui.com/x/react-tree-view/](https://mui.com/x/react-tree-view/) to view the full documentation.
|
package/build/package.json
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "7.12.0",
|
|
4
|
-
"description": "The Pro plan edition of the Tree View components (MUI X).",
|
|
5
|
-
"author": "MUI Team",
|
|
6
|
-
"main": "./node/index.js",
|
|
7
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
8
|
-
"bugs": {
|
|
9
|
-
"url": "https://github.com/mui/mui-x/issues"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://mui.com/x/react-tree-view/",
|
|
12
|
-
"funding": {
|
|
13
|
-
"type": "opencollective",
|
|
14
|
-
"url": "https://opencollective.com/mui-org"
|
|
15
|
-
},
|
|
16
|
-
"sideEffects": false,
|
|
17
|
-
"publishConfig": {
|
|
18
|
-
"access": "public"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"react",
|
|
22
|
-
"react-component",
|
|
23
|
-
"mui",
|
|
24
|
-
"mui-x",
|
|
25
|
-
"material-ui",
|
|
26
|
-
"material design",
|
|
27
|
-
"treeview"
|
|
28
|
-
],
|
|
29
|
-
"repository": {
|
|
30
|
-
"type": "git",
|
|
31
|
-
"url": "https://github.com/mui/mui-x.git",
|
|
32
|
-
"directory": "packages/x-tree-view-pro"
|
|
33
|
-
},
|
|
34
|
-
"dependencies": {
|
|
35
|
-
"@babel/runtime": "^7.25.0",
|
|
36
|
-
"@mui/system": "^5.16.5",
|
|
37
|
-
"@mui/utils": "^5.16.5",
|
|
38
|
-
"@mui/x-internals": "workspace:*",
|
|
39
|
-
"@mui/x-license": "workspace:*",
|
|
40
|
-
"@mui/x-tree-view": "workspace:*",
|
|
41
|
-
"@types/react-transition-group": "^4.4.10",
|
|
42
|
-
"clsx": "^2.1.1",
|
|
43
|
-
"prop-types": "^15.8.1",
|
|
44
|
-
"react-transition-group": "^4.4.5"
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@emotion/react": "^11.9.0",
|
|
48
|
-
"@emotion/styled": "^11.8.1",
|
|
49
|
-
"@mui/material": "^5.15.14",
|
|
50
|
-
"react": "^17.0.0 || ^18.0.0",
|
|
51
|
-
"react-dom": "^17.0.0 || ^18.0.0"
|
|
52
|
-
},
|
|
53
|
-
"engines": {
|
|
54
|
-
"node": ">=14.0.0"
|
|
55
|
-
},
|
|
56
|
-
"private": false,
|
|
57
|
-
"module": "./index.js",
|
|
58
|
-
"types": "./index.d.ts"
|
|
59
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useTreeViewItems,
|
|
3
|
-
UseTreeViewItemsParameters,
|
|
4
|
-
useTreeViewExpansion,
|
|
5
|
-
UseTreeViewExpansionParameters,
|
|
6
|
-
useTreeViewSelection,
|
|
7
|
-
UseTreeViewSelectionParameters,
|
|
8
|
-
useTreeViewFocus,
|
|
9
|
-
UseTreeViewFocusParameters,
|
|
10
|
-
useTreeViewKeyboardNavigation,
|
|
11
|
-
useTreeViewIcons,
|
|
12
|
-
UseTreeViewIconsParameters,
|
|
13
|
-
ConvertPluginsIntoSignatures,
|
|
14
|
-
MergeSignaturesProperty,
|
|
15
|
-
TreeViewCorePluginParameters,
|
|
16
|
-
} from '@mui/x-tree-view/internals';
|
|
17
|
-
import {
|
|
18
|
-
useTreeViewItemsReordering,
|
|
19
|
-
UseTreeViewItemsReorderingParameters,
|
|
20
|
-
} from '../internals/plugins/useTreeViewItemsReordering';
|
|
21
|
-
|
|
22
|
-
export const RICH_TREE_VIEW_PRO_PLUGINS = [
|
|
23
|
-
useTreeViewItems,
|
|
24
|
-
useTreeViewExpansion,
|
|
25
|
-
useTreeViewSelection,
|
|
26
|
-
useTreeViewFocus,
|
|
27
|
-
useTreeViewKeyboardNavigation,
|
|
28
|
-
useTreeViewIcons,
|
|
29
|
-
useTreeViewItemsReordering,
|
|
30
|
-
] as const;
|
|
31
|
-
|
|
32
|
-
export type RichTreeViewProPluginSignatures = ConvertPluginsIntoSignatures<
|
|
33
|
-
typeof RICH_TREE_VIEW_PRO_PLUGINS
|
|
34
|
-
>;
|
|
35
|
-
|
|
36
|
-
export type RichTreeViewProPluginSlots = MergeSignaturesProperty<
|
|
37
|
-
RichTreeViewProPluginSignatures,
|
|
38
|
-
'slots'
|
|
39
|
-
>;
|
|
40
|
-
|
|
41
|
-
export type RichTreeViewProPluginSlotProps = MergeSignaturesProperty<
|
|
42
|
-
RichTreeViewProPluginSignatures,
|
|
43
|
-
'slotProps'
|
|
44
|
-
>;
|
|
45
|
-
|
|
46
|
-
// We can't infer this type from the plugin, otherwise we would lose the generics.
|
|
47
|
-
export interface RichTreeViewProPluginParameters<R extends {}, Multiple extends boolean | undefined>
|
|
48
|
-
extends TreeViewCorePluginParameters,
|
|
49
|
-
UseTreeViewItemsParameters<R>,
|
|
50
|
-
UseTreeViewExpansionParameters,
|
|
51
|
-
UseTreeViewFocusParameters,
|
|
52
|
-
UseTreeViewSelectionParameters<Multiple>,
|
|
53
|
-
UseTreeViewIconsParameters,
|
|
54
|
-
UseTreeViewItemsReorderingParameters {}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { createRenderer } from '@mui/internal-test-utils';
|
|
3
|
-
import {
|
|
4
|
-
RichTreeViewPro,
|
|
5
|
-
richTreeViewProClasses as classes,
|
|
6
|
-
} from '@mui/x-tree-view-pro/RichTreeViewPro';
|
|
7
|
-
import { describeConformance } from 'test/utils/describeConformance';
|
|
8
|
-
|
|
9
|
-
describe('<RichTreeViewPro />', () => {
|
|
10
|
-
const { render } = createRenderer();
|
|
11
|
-
|
|
12
|
-
describeConformance(<RichTreeViewPro items={[]} />, () => ({
|
|
13
|
-
classes,
|
|
14
|
-
inheritComponent: 'ul',
|
|
15
|
-
render,
|
|
16
|
-
refInstanceof: window.HTMLUListElement,
|
|
17
|
-
muiName: 'MuiRichTreeViewPro',
|
|
18
|
-
skip: ['componentProp', 'componentsProp', 'themeVariants'],
|
|
19
|
-
}));
|
|
20
|
-
});
|