@mui/x-tree-view-pro 9.6.0 β 9.8.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 +241 -2
- package/RichTreeViewPro/RichTreeViewPro.d.mts +1 -1
- package/RichTreeViewPro/RichTreeViewPro.d.ts +1 -1
- package/RichTreeViewPro/RichTreeViewPro.js +2 -2
- package/RichTreeViewPro/RichTreeViewPro.mjs +2 -2
- package/RichTreeViewPro/RichTreeViewPro.types.d.mts +7 -7
- package/RichTreeViewPro/RichTreeViewPro.types.d.ts +7 -7
- package/RichTreeViewPro/richTreeViewProClasses.d.mts +1 -1
- package/RichTreeViewPro/richTreeViewProClasses.d.ts +1 -1
- package/RichTreeViewPro/useExtractRichTreeViewProParameters.d.mts +4 -4
- package/RichTreeViewPro/useExtractRichTreeViewProParameters.d.ts +4 -4
- package/components/RichTreeViewVirtualizedItems.d.mts +1 -1
- package/components/RichTreeViewVirtualizedItems.d.ts +1 -1
- package/hooks/useRichTreeViewProApiRef.d.mts +3 -3
- package/hooks/useRichTreeViewProApiRef.d.ts +3 -3
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/RichTreeViewProStore/RichTreeViewProStore.d.mts +3 -3
- package/internals/RichTreeViewProStore/RichTreeViewProStore.d.ts +3 -3
- package/internals/RichTreeViewProStore/RichTreeViewProStore.js +1 -2
- package/internals/RichTreeViewProStore/RichTreeViewProStore.mjs +1 -2
- package/internals/RichTreeViewProStore/RichTreeViewProStore.types.d.mts +5 -5
- package/internals/RichTreeViewProStore/RichTreeViewProStore.types.d.ts +5 -5
- package/internals/RichTreeViewProStore/RichTreeViewProStore.utils.d.mts +2 -2
- package/internals/RichTreeViewProStore/RichTreeViewProStore.utils.d.ts +2 -2
- package/internals/plugins/itemsReordering/TreeViewItemsReorderingPlugin.d.mts +3 -3
- package/internals/plugins/itemsReordering/TreeViewItemsReorderingPlugin.d.ts +3 -3
- package/internals/plugins/itemsReordering/itemPlugin.d.mts +3 -4
- package/internals/plugins/itemsReordering/itemPlugin.d.ts +3 -4
- package/internals/plugins/itemsReordering/itemPlugin.js +3 -4
- package/internals/plugins/itemsReordering/itemPlugin.mjs +2 -2
- package/internals/plugins/itemsReordering/selectors.d.mts +2 -2
- package/internals/plugins/itemsReordering/selectors.d.ts +2 -2
- package/internals/plugins/itemsReordering/types.d.mts +1 -1
- package/internals/plugins/itemsReordering/types.d.ts +1 -1
- package/internals/plugins/itemsReordering/utils.d.mts +3 -3
- package/internals/plugins/itemsReordering/utils.d.ts +3 -3
- package/internals/plugins/lazyLoading/TreeViewLazyLoadingPlugin.d.mts +2 -2
- package/internals/plugins/lazyLoading/TreeViewLazyLoadingPlugin.d.ts +2 -2
- package/internals/plugins/lazyLoading/types.d.mts +1 -1
- package/internals/plugins/lazyLoading/types.d.ts +1 -1
- package/internals/plugins/lazyLoading/utils.d.mts +2 -2
- package/internals/plugins/lazyLoading/utils.d.ts +2 -2
- package/internals/plugins/virtualization/selectors.d.mts +1 -1
- package/internals/plugins/virtualization/selectors.d.ts +1 -1
- package/package.json +7 -7
- package/themeAugmentation/components.d.mts +1 -1
- package/themeAugmentation/components.d.ts +1 -1
- package/themeAugmentation/overrides.d.mts +1 -1
- package/themeAugmentation/overrides.d.ts +1 -1
- package/themeAugmentation/props.d.mts +1 -1
- package/themeAugmentation/props.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,245 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.8.0
|
|
4
|
+
|
|
5
|
+
_Jul 2, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 18 contributors who made this release possible. Here are some highlights β¨:
|
|
8
|
+
|
|
9
|
+
- πΊοΈ New [`MapImagePlot`](https://mui.com/x/react-charts/map/) for rendering raster base maps, with `onItemClick` support on map shapes (Premium)
|
|
10
|
+
- π New [`usePolarGeometry`](https://mui.com/x/react-charts/hooks/use-polar-geometry/) hook to build custom radial overlays
|
|
11
|
+
- π Bugfixes
|
|
12
|
+
- π Documentation improvements
|
|
13
|
+
|
|
14
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
15
|
+
@Anexus5919, @aromanio, @greymoth-jp, @mustafajw07, @timbuckley, @voidmatcha
|
|
16
|
+
|
|
17
|
+
The following team members contributed to this release:
|
|
18
|
+
@alexfauquette, @arminmeh, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @joserodolfofreitas, @LukasTy, @mapache-salvaje, @michelengelen, @rita-codes, @sai6855
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@9.8.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Prevent cell editing from resurrecting a deleted row (#22958) @Anexus5919
|
|
25
|
+
- [DataGrid] Avoid reading `type` of `undefined` in `gridRowUtils` (#21808) @timbuckley
|
|
26
|
+
- [DataGrid] Improved get started tutorial (#22911) @joserodolfofreitas
|
|
27
|
+
- [l10n] Improve Japanese (ja-JP) locale (#23001) @greymoth-jp
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-pro@9.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid@9.8.0`.
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-premium@9.8.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid-pro@9.8.0`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPremium] Escape `singleSelect` values in Excel export with `escapeFormulas` enabled (#22851) @Anexus5919
|
|
38
|
+
|
|
39
|
+
### Date and Time Pickers
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers@9.8.0`
|
|
42
|
+
|
|
43
|
+
- [pickers] Fix localized digit crash (#22995) @alexfauquette
|
|
44
|
+
- [pickers] Flag the first and last visible day cell across year boundaries (#22981) @Anexus5919
|
|
45
|
+
- [pickers] Use calendar day tokens in `AdapterMomentHijri` and `AdapterMomentJalaali` formats (#22974) @Anexus5919
|
|
46
|
+
- [pickers] Use the Hijri day token in `AdapterMomentHijri` `normalDateWithWeekday` (#22972) @Anexus5919
|
|
47
|
+
- [l10n] Improve Romanian (ro-RO) locale (#22969) @aromanio
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers-pro@9.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-date-pickers@9.8.0`, plus:
|
|
52
|
+
|
|
53
|
+
- [DateRangeCalendar] Fix auto month-switch across the year boundary (#22987) @Anexus5919
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@9.8.0`
|
|
58
|
+
|
|
59
|
+
- [charts] Decouple `d3-geo` from the universal tooltip (#23011) @sai6855
|
|
60
|
+
- [charts] Deduplicate `getGroupingConfig` (#22889) @sai6855
|
|
61
|
+
- [charts] Expose `usePolarGeometry` hook for radial overlays (#22892) @mustafajw07
|
|
62
|
+
|
|
63
|
+
#### `@mui/x-charts-pro@9.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
64
|
+
|
|
65
|
+
Same changes as in `@mui/x-charts@9.8.0`.
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-premium@9.8.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts-pro@9.8.0`, plus:
|
|
70
|
+
|
|
71
|
+
- [charts-premium] Add `onItemClick` support for the Map shapes (#22876) @sai6855
|
|
72
|
+
- [charts-premium] Replace `dataIndex` with `name` in map identifier (#22891) @sai6855
|
|
73
|
+
- [charts-premium] Share helper function (#23030) @alexfauquette
|
|
74
|
+
- [charts-premium] Extract shared WebGL utilities across bar/scatter/heatmap renderers (#22466) @sai6855
|
|
75
|
+
- [charts-premium] Add `MapImagePlot` for raster base maps (#22977) @JCQuintas
|
|
76
|
+
|
|
77
|
+
### Tree View
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-tree-view@9.8.0`
|
|
80
|
+
|
|
81
|
+
- [TreeView] Fix extra selection event when clicking a collapsed parent item (#22249) @michelengelen
|
|
82
|
+
- [TreeView] Enforce top-level type imports (#23034) @Janpot
|
|
83
|
+
|
|
84
|
+
#### `@mui/x-tree-view-pro@9.8.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
85
|
+
|
|
86
|
+
Same changes as in `@mui/x-tree-view@9.8.0`.
|
|
87
|
+
|
|
88
|
+
### Scheduler
|
|
89
|
+
|
|
90
|
+
#### `@mui/x-scheduler@9.0.0-beta.4`
|
|
91
|
+
|
|
92
|
+
- [scheduler] Enforce top-level type imports (#22931) @Janpot
|
|
93
|
+
- [scheduler] Keep the occurrence date when editing only one recurring event (#23007) @Anexus5919
|
|
94
|
+
- [scheduler] Track bundle size of scheduler packages (#22682) @flaviendelangle
|
|
95
|
+
- [scheduler] Add `viewConfig` prop to limit displayed hours in the day and week views (#22929) @flaviendelangle
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.4`, plus:
|
|
100
|
+
|
|
101
|
+
- [scheduler] Collapsible resources in the timeline (#22920) @rita-codes
|
|
102
|
+
|
|
103
|
+
### Codemod
|
|
104
|
+
|
|
105
|
+
#### `@mui/x-codemod@9.8.0`
|
|
106
|
+
|
|
107
|
+
Internal changes.
|
|
108
|
+
|
|
109
|
+
### Docs
|
|
110
|
+
|
|
111
|
+
- [docs] Add recipe for conditional master-detail panels (#22971) @michelengelen
|
|
112
|
+
- [docs] Add recipe for describing active filters in the toolbar (#22970) @michelengelen
|
|
113
|
+
- [docs] Add recipe for triggering clipboard copy from a button (#22967) @michelengelen
|
|
114
|
+
- [docs] Clarify that `fieldRef.current.focusField()` is the canonical way to focus a field (#22937) @michelengelen
|
|
115
|
+
- [docs][scheduler] Another copyediting pass across the Scheduler docs (#22619) @mapache-salvaje
|
|
116
|
+
- [docs][charts] Add map example for arbitrary GeoJSON shapes (#22976) @JCQuintas
|
|
117
|
+
- [docs][charts] Double point count in `ScatterAsyncRenderer` demo (#22906) @JCQuintas
|
|
118
|
+
|
|
119
|
+
### Core
|
|
120
|
+
|
|
121
|
+
- [code-infra] Fix tracking branch bug in release script (#22956) @michelengelen
|
|
122
|
+
- [code-infra] Remove mark-duplicate workflow (#22994) @cherniavskii
|
|
123
|
+
- [code-infra] Revert `nanoid@3.3.15` `minimumReleaseAge` exemption (#22953) @LukasTy
|
|
124
|
+
|
|
125
|
+
### Miscellaneous
|
|
126
|
+
|
|
127
|
+
- [internals] Fix `ERR_UNSUPPORTED_DIR_IMPORT` for `core-js-pure` in Node ESM (#22985) @michelengelen
|
|
128
|
+
- [internals] Harden `useDisposable` React internals read with safeReact (#22986) @rita-codes
|
|
129
|
+
- [internals] Replace core-js `DisposableStack` ponyfill with a minimal fallback (#23002) @sai6855
|
|
130
|
+
- [test] Assert the edited `dateTime` cell value in the e2e edit test (#22982) @voidmatcha
|
|
131
|
+
- [virtualizer] Remeasure scrollbars when layout changes (#22914) @arminmeh
|
|
132
|
+
|
|
133
|
+
## 9.7.0
|
|
134
|
+
|
|
135
|
+
_Jun 25, 2026_
|
|
136
|
+
|
|
137
|
+
We'd like to extend a big thank you to the 13 contributors who made this release possible. Here are some highlights β¨:
|
|
138
|
+
|
|
139
|
+
- π Bugfixes
|
|
140
|
+
- π Documentation improvements
|
|
141
|
+
|
|
142
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
143
|
+
@Anexus5919, @mustafajw07
|
|
144
|
+
|
|
145
|
+
The following team members contributed to this release:
|
|
146
|
+
@alexfauquette, @arminmeh, @brijeshb42, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @michelengelen, @romgrk, @sai6855, @siriwatknp
|
|
147
|
+
|
|
148
|
+
### Data Grid
|
|
149
|
+
|
|
150
|
+
#### `@mui/x-data-grid@9.7.0`
|
|
151
|
+
|
|
152
|
+
- [DataGrid] Fix `CustomColumnMenuGrid` demo crashing (#22897) @sai6855
|
|
153
|
+
- [DataGrid] Fix crash in `getRowValue` when `colDef` is `undefined` (#22838) @LukasTy
|
|
154
|
+
- [DataGrid] Fix `longText` expand button submitting surrounding form (#22450) @siriwatknp
|
|
155
|
+
- [DataGrid] Remove filename ignore list from `removePropTypesPlugin` in Babel config (#22727) @sai6855
|
|
156
|
+
- [DataGrid] Deduplicate scroll-preserving focus logic (#22916) @sai6855
|
|
157
|
+
- [DataGrid] Fix `singleSelect` clearing to use empty string instead of `null` (#22881) @michelengelen
|
|
158
|
+
- [DataGrid] Wait for rows before reacting on `autosizeOnMount` (#22698) @MBilalShafi
|
|
159
|
+
|
|
160
|
+
#### `@mui/x-data-grid-pro@9.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
161
|
+
|
|
162
|
+
Same changes as in `@mui/x-data-grid@9.7.0`.
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-data-grid-premium@9.7.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
165
|
+
|
|
166
|
+
Same changes as in `@mui/x-data-grid-pro@9.7.0`.
|
|
167
|
+
|
|
168
|
+
### Date and Time Pickers
|
|
169
|
+
|
|
170
|
+
#### `@mui/x-date-pickers@9.7.0`
|
|
171
|
+
|
|
172
|
+
- [fields] Announce cardinal day in the day section `aria-valuetext` (#22922) @LukasTy
|
|
173
|
+
- [fields] Avoid focusing the field on blank space clicks (#22285) @LukasTy
|
|
174
|
+
- [pickers] Commit `TimeClock` value when the drag ends outside the clock (#22877) @LukasTy
|
|
175
|
+
- [pickers] Respect explicit `notched` prop on the outlined PickersTextField (#22875) @LukasTy
|
|
176
|
+
|
|
177
|
+
#### `@mui/x-date-pickers-pro@9.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
178
|
+
|
|
179
|
+
Same changes as in `@mui/x-date-pickers@9.7.0`.
|
|
180
|
+
|
|
181
|
+
### Charts
|
|
182
|
+
|
|
183
|
+
#### `@mui/x-charts@9.7.0`
|
|
184
|
+
|
|
185
|
+
- [charts] Add demo for displaying the sum of all values from the stacked series on top of the stacked bars (#22879) @sai6855
|
|
186
|
+
- [charts] Add `zAxis` custom scatter component demo (#22746) @mustafajw07
|
|
187
|
+
- [charts] Apply axis `colorMap` to radial bar fill (#22800) @JCQuintas
|
|
188
|
+
- [charts] Simplify classes type (#22626) @alexfauquette
|
|
189
|
+
- [charts] Stable progressive scatter batching + responsive zoom/pan (#22862) @JCQuintas
|
|
190
|
+
- [charts] Strip dev-only console diagnostics from production (#22917) @sai6855
|
|
191
|
+
- [docs] Fix scatter renderer table blocking column (#22904) @JCQuintas
|
|
192
|
+
- [docs] Make `ScatterAsyncRenderer` button bar responsive (#22905) @JCQuintas
|
|
193
|
+
|
|
194
|
+
#### `@mui/x-charts-pro@9.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
195
|
+
|
|
196
|
+
Same changes as in `@mui/x-charts@9.7.0`.
|
|
197
|
+
|
|
198
|
+
#### `@mui/x-charts-premium@9.7.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
199
|
+
|
|
200
|
+
Same changes as in `@mui/x-charts-pro@9.7.0`.
|
|
201
|
+
|
|
202
|
+
### Tree View
|
|
203
|
+
|
|
204
|
+
#### `@mui/x-tree-view@9.7.0`
|
|
205
|
+
|
|
206
|
+
Internal changes.
|
|
207
|
+
|
|
208
|
+
#### `@mui/x-tree-view-pro@9.7.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
209
|
+
|
|
210
|
+
Same changes as in `@mui/x-tree-view@9.7.0`.
|
|
211
|
+
|
|
212
|
+
### Scheduler
|
|
213
|
+
|
|
214
|
+
#### `@mui/x-scheduler@9.0.0-beta.3`
|
|
215
|
+
|
|
216
|
+
- [scheduler] Highlight only the edited occurrence of a recurring event (#22873) @Anexus5919
|
|
217
|
+
|
|
218
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
219
|
+
|
|
220
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.3`.
|
|
221
|
+
|
|
222
|
+
### Codemod
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-codemod@9.7.0`
|
|
225
|
+
|
|
226
|
+
Internal changes.
|
|
227
|
+
|
|
228
|
+
### Core
|
|
229
|
+
|
|
230
|
+
- [code-infra] Fix react@^18 CI failing on nanoid trust-downgrade (#22923) @LukasTy
|
|
231
|
+
- [code-infra] Reduce Netlify build parallelism to 2 (#22925) @LukasTy
|
|
232
|
+
- [code-infra] Use Turbopack for docs in dev (#22882) @brijeshb42
|
|
233
|
+
- [docs-infra] Pre-render API page descriptions (#22919) @brijeshb42
|
|
234
|
+
- [internal] Use `@base-ui/utils/platform` for platform detection (#22710) @romgrk
|
|
235
|
+
- [internal] Enforce top-level type imports (#22679) @Janpot
|
|
236
|
+
|
|
237
|
+
### Miscellaneous
|
|
238
|
+
|
|
239
|
+
- [internal] Enable mui/no-floating-cleanup and fix leaks (#22872) @romgrk
|
|
240
|
+
- [infra] Update `.gitignore` to exclude `.claude` sub-directories (#22435) @michelengelen
|
|
241
|
+
- [virtualizer] Improve the dimensions' initial state (#22885) @arminmeh
|
|
242
|
+
|
|
3
243
|
## 9.6.0
|
|
4
244
|
|
|
5
245
|
_Jun 18, 2026_
|
|
@@ -68,7 +308,6 @@ Same changes as in `@mui/x-charts-pro@9.6.0`, plus:
|
|
|
68
308
|
- [charts-premium] Support maps tooltip positioned on items (#22648) @alexfauquette
|
|
69
309
|
- [docs] Show how to export maps (#22837) @alexfauquette
|
|
70
310
|
|
|
71
|
-
|
|
72
311
|
### Tree View
|
|
73
312
|
|
|
74
313
|
#### `@mui/x-tree-view@9.6.0`
|
|
@@ -115,7 +354,7 @@ Same changes as in `@mui/x-scheduler@9.0.0-beta.2`, plus:
|
|
|
115
354
|
|
|
116
355
|
- [scheduler-premium] Expose premium model types through public API (#22798) @mustafajw07
|
|
117
356
|
- [scheduler-premium] Remove non-functional `onPreferencesChange` prop from `EventTimelinePremium` (#22777) @rita-codes
|
|
118
|
-
- [scheduler-premium] Validate the `FREQ` value in `parseRRule`] (#22786) @rita-codes
|
|
357
|
+
- [scheduler-premium] Validate the `FREQ` value in `parseRRule`] (#22786) @rita-codes
|
|
119
358
|
|
|
120
359
|
### Codemod
|
|
121
360
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { RichTreeViewProProps } from "./RichTreeViewPro.types.mjs";
|
|
2
|
+
import type { RichTreeViewProProps } from "./RichTreeViewPro.types.mjs";
|
|
3
3
|
export declare const RichTreeViewProRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
4
|
ownerState: RichTreeViewProProps<any, any>;
|
|
5
5
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, keyof React.ClassAttributes<HTMLUListElement> | keyof React.HTMLAttributes<HTMLUListElement>>, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { RichTreeViewProProps } from "./RichTreeViewPro.types.js";
|
|
2
|
+
import type { RichTreeViewProProps } from "./RichTreeViewPro.types.js";
|
|
3
3
|
export declare const RichTreeViewProRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
4
|
ownerState: RichTreeViewProProps<any, any>;
|
|
5
5
|
}, Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, keyof React.ClassAttributes<HTMLUListElement> | keyof React.HTMLAttributes<HTMLUListElement>>, {}>;
|
|
@@ -59,8 +59,8 @@ const RichTreeViewProRoot = exports.RichTreeViewProRoot = (0, _zeroStyled.styled
|
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
const packageInfo = {
|
|
62
|
-
releaseDate: "
|
|
63
|
-
version: "9.
|
|
62
|
+
releaseDate: "MTc4Mjk1MDQwMDAwMA==",
|
|
63
|
+
version: "9.8.0",
|
|
64
64
|
name: 'x-tree-view-pro'
|
|
65
65
|
};
|
|
66
66
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import { SxProps } from '@mui/system/styleFunctionSx';
|
|
4
|
-
import { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
5
|
-
import { RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps, UseTreeViewStoreParameters, TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
6
|
-
import { RichTreeViewProClasses } from "./richTreeViewProClasses.mjs";
|
|
7
|
-
import { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.mjs";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Theme } from '@mui/material/styles';
|
|
3
|
+
import type { SxProps } from '@mui/system/styleFunctionSx';
|
|
4
|
+
import type { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
5
|
+
import type { RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps, UseTreeViewStoreParameters, TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
6
|
+
import type { RichTreeViewProClasses } from "./richTreeViewProClasses.mjs";
|
|
7
|
+
import type { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.mjs";
|
|
8
8
|
export interface RichTreeViewProSlots extends TreeViewSlots, Omit<RichTreeViewItemsSlots, 'root'> {
|
|
9
9
|
/**
|
|
10
10
|
* Element rendered at the root.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { Theme } from '@mui/material/styles';
|
|
3
|
-
import { SxProps } from '@mui/system/styleFunctionSx';
|
|
4
|
-
import { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
5
|
-
import { RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps, UseTreeViewStoreParameters, TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
6
|
-
import { RichTreeViewProClasses } from "./richTreeViewProClasses.js";
|
|
7
|
-
import { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.js";
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { Theme } from '@mui/material/styles';
|
|
3
|
+
import type { SxProps } from '@mui/system/styleFunctionSx';
|
|
4
|
+
import type { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
5
|
+
import type { RichTreeViewItemsSlots, RichTreeViewItemsSlotProps, TreeViewSlots, TreeViewSlotProps, UseTreeViewStoreParameters, TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
6
|
+
import type { RichTreeViewProClasses } from "./richTreeViewProClasses.js";
|
|
7
|
+
import type { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.js";
|
|
8
8
|
export interface RichTreeViewProSlots extends TreeViewSlots, Omit<RichTreeViewItemsSlots, 'root'> {
|
|
9
9
|
/**
|
|
10
10
|
* Element rendered at the root.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TreeViewClasses } from '@mui/x-tree-view/internals';
|
|
1
|
+
import type { TreeViewClasses } from '@mui/x-tree-view/internals';
|
|
2
2
|
export interface RichTreeViewProClasses extends TreeViewClasses {}
|
|
3
3
|
export type RichTreeViewProClassKey = keyof RichTreeViewProClasses;
|
|
4
4
|
export declare function getRichTreeViewProUtilityClass(slot: string): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TreeViewClasses } from '@mui/x-tree-view/internals';
|
|
1
|
+
import type { TreeViewClasses } from '@mui/x-tree-view/internals';
|
|
2
2
|
export interface RichTreeViewProClasses extends TreeViewClasses {}
|
|
3
3
|
export type RichTreeViewProClassKey = keyof RichTreeViewProClasses;
|
|
4
4
|
export declare function getRichTreeViewProUtilityClass(slot: string): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
-
import { UseTreeViewStoreParameters } from '@mui/x-tree-view/internals';
|
|
4
|
-
import { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.mjs";
|
|
5
|
-
import { RichTreeViewProProps } from "./RichTreeViewPro.types.mjs";
|
|
2
|
+
import type { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { UseTreeViewStoreParameters } from '@mui/x-tree-view/internals';
|
|
4
|
+
import type { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.mjs";
|
|
5
|
+
import type { RichTreeViewProProps } from "./RichTreeViewPro.types.mjs";
|
|
6
6
|
export declare function useExtractRichTreeViewProParameters<R extends TreeViewValidItem<R>, Multiple extends boolean | undefined>(props: RichTreeViewProProps<R, Multiple>): {
|
|
7
7
|
apiRef: import("./RichTreeViewPro.types.mjs").RichTreeViewProApiRef<any, any> | undefined;
|
|
8
8
|
slots: import("./RichTreeViewPro.types.mjs").RichTreeViewProSlots | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
-
import { UseTreeViewStoreParameters } from '@mui/x-tree-view/internals';
|
|
4
|
-
import { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.js";
|
|
5
|
-
import { RichTreeViewProProps } from "./RichTreeViewPro.types.js";
|
|
2
|
+
import type { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { UseTreeViewStoreParameters } from '@mui/x-tree-view/internals';
|
|
4
|
+
import type { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.js";
|
|
5
|
+
import type { RichTreeViewProProps } from "./RichTreeViewPro.types.js";
|
|
6
6
|
export declare function useExtractRichTreeViewProParameters<R extends TreeViewValidItem<R>, Multiple extends boolean | undefined>(props: RichTreeViewProProps<R, Multiple>): {
|
|
7
7
|
apiRef: import("./RichTreeViewPro.types.js").RichTreeViewProApiRef<any, any> | undefined;
|
|
8
8
|
slots: import("./RichTreeViewPro.types.js").RichTreeViewProSlots | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RichTreeViewItemsProps } from '@mui/x-tree-view/internals';
|
|
1
|
+
import type { RichTreeViewItemsProps } from '@mui/x-tree-view/internals';
|
|
2
2
|
export declare function RichTreeViewVirtualizedItems<TProps extends object>(props: RichTreeViewItemsProps<TProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RichTreeViewItemsProps } from '@mui/x-tree-view/internals';
|
|
1
|
+
import type { RichTreeViewItemsProps } from '@mui/x-tree-view/internals';
|
|
2
2
|
export declare function RichTreeViewVirtualizedItems<TProps extends object>(props: RichTreeViewItemsProps<TProps>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
3
|
-
import { TreeViewDefaultItemModelProperties, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
4
|
-
import { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.mjs";
|
|
2
|
+
import type { TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
3
|
+
import type { TreeViewDefaultItemModelProperties, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
4
|
+
import type { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* Creates the ref to pass to the `apiRef` prop of the `RichTreeViewPro` component.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
3
|
-
import { TreeViewDefaultItemModelProperties, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
4
|
-
import { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.js";
|
|
2
|
+
import type { TreeViewPublicAPI } from '@mui/x-tree-view/internals';
|
|
3
|
+
import type { TreeViewDefaultItemModelProperties, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
4
|
+
import type { RichTreeViewProStore } from "../internals/RichTreeViewProStore/index.js";
|
|
5
5
|
/**
|
|
6
6
|
* Creates the ref to pass to the `apiRef` prop of the `RichTreeViewPro` component.
|
|
7
7
|
*/
|
package/index.js
CHANGED
package/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ExtendableRichTreeViewStore } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
-
import { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.mjs";
|
|
2
|
+
import type { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.mjs";
|
|
4
4
|
import { TreeViewLazyLoadingPlugin } from "../plugins/lazyLoading/index.mjs";
|
|
5
5
|
import { TreeViewItemsReorderingPlugin } from "../plugins/itemsReordering/index.mjs";
|
|
6
6
|
export declare class RichTreeViewProStore<R extends TreeViewValidItem<R>, Multiple extends boolean | undefined> extends ExtendableRichTreeViewStore<R, Multiple, RichTreeViewProState<R, Multiple>, RichTreeViewProStoreParameters<R, Multiple>> {
|
|
7
7
|
lazyLoading: TreeViewLazyLoadingPlugin<R>;
|
|
8
8
|
itemsReordering: TreeViewItemsReorderingPlugin;
|
|
9
|
-
|
|
9
|
+
mountEffect: () => void;
|
|
10
10
|
constructor(parameters: RichTreeViewProStoreParameters<R, Multiple>);
|
|
11
11
|
buildPublicAPI(): {
|
|
12
12
|
updateItemChildren: (itemId: import("@mui/x-tree-view").TreeViewItemId | null) => Promise<void>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ExtendableRichTreeViewStore } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
-
import { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.js";
|
|
2
|
+
import type { TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.js";
|
|
4
4
|
import { TreeViewLazyLoadingPlugin } from "../plugins/lazyLoading/index.js";
|
|
5
5
|
import { TreeViewItemsReorderingPlugin } from "../plugins/itemsReordering/index.js";
|
|
6
6
|
export declare class RichTreeViewProStore<R extends TreeViewValidItem<R>, Multiple extends boolean | undefined> extends ExtendableRichTreeViewStore<R, Multiple, RichTreeViewProState<R, Multiple>, RichTreeViewProStoreParameters<R, Multiple>> {
|
|
7
7
|
lazyLoading: TreeViewLazyLoadingPlugin<R>;
|
|
8
8
|
itemsReordering: TreeViewItemsReorderingPlugin;
|
|
9
|
-
|
|
9
|
+
mountEffect: () => void;
|
|
10
10
|
constructor(parameters: RichTreeViewProStoreParameters<R, Multiple>);
|
|
11
11
|
buildPublicAPI(): {
|
|
12
12
|
updateItemChildren: (itemId: import("@mui/x-tree-view").TreeViewItemId | null) => Promise<void>;
|
|
@@ -12,9 +12,8 @@ var _itemsReordering = require("../plugins/itemsReordering");
|
|
|
12
12
|
var _RichTreeViewProStore = require("./RichTreeViewProStore.utils");
|
|
13
13
|
class RichTreeViewProStore extends _internals.ExtendableRichTreeViewStore {
|
|
14
14
|
itemsReordering = new _itemsReordering.TreeViewItemsReorderingPlugin(this);
|
|
15
|
-
|
|
15
|
+
mountEffect = () => {
|
|
16
16
|
this.lazyLoading.initEffect();
|
|
17
|
-
return this.timeoutManager.clearAll;
|
|
18
17
|
};
|
|
19
18
|
constructor(parameters) {
|
|
20
19
|
super(parameters, 'RichTreeViewPro', _RichTreeViewProStore.parametersToStateMapper);
|
|
@@ -5,9 +5,8 @@ import { TreeViewItemsReorderingPlugin } from "../plugins/itemsReordering/index.
|
|
|
5
5
|
import { parametersToStateMapper } from "./RichTreeViewProStore.utils.mjs";
|
|
6
6
|
export class RichTreeViewProStore extends ExtendableRichTreeViewStore {
|
|
7
7
|
itemsReordering = new TreeViewItemsReorderingPlugin(this);
|
|
8
|
-
|
|
8
|
+
mountEffect = () => {
|
|
9
9
|
this.lazyLoading.initEffect();
|
|
10
|
-
return this.timeoutManager.clearAll;
|
|
11
10
|
};
|
|
12
11
|
constructor(parameters) {
|
|
13
12
|
super(parameters, 'RichTreeViewPro', parametersToStateMapper);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RichTreeViewStoreParameters, RichTreeViewState } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { TreeViewDOMStructure, TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
-
import { DataSourceCache } from '@mui/x-tree-view/utils';
|
|
4
|
-
import { TreeViewItemReorderPosition } from "../plugins/itemsReordering/index.mjs";
|
|
5
|
-
import { DataSource } from "../plugins/lazyLoading/index.mjs";
|
|
1
|
+
import type { RichTreeViewStoreParameters, RichTreeViewState } from '@mui/x-tree-view/internals';
|
|
2
|
+
import type { TreeViewDOMStructure, TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { DataSourceCache } from '@mui/x-tree-view/utils';
|
|
4
|
+
import type { TreeViewItemReorderPosition } from "../plugins/itemsReordering/index.mjs";
|
|
5
|
+
import type { DataSource } from "../plugins/lazyLoading/index.mjs";
|
|
6
6
|
export interface RichTreeViewProState<R extends TreeViewValidItem<R>, Multiple extends boolean | undefined> extends RichTreeViewState<R, Multiple> {
|
|
7
7
|
/**
|
|
8
8
|
* Determine if a given item can be reordered.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RichTreeViewStoreParameters, RichTreeViewState } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { TreeViewDOMStructure, TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
-
import { DataSourceCache } from '@mui/x-tree-view/utils';
|
|
4
|
-
import { TreeViewItemReorderPosition } from "../plugins/itemsReordering/index.js";
|
|
5
|
-
import { DataSource } from "../plugins/lazyLoading/index.js";
|
|
1
|
+
import type { RichTreeViewStoreParameters, RichTreeViewState } from '@mui/x-tree-view/internals';
|
|
2
|
+
import type { TreeViewDOMStructure, TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { DataSourceCache } from '@mui/x-tree-view/utils';
|
|
4
|
+
import type { TreeViewItemReorderPosition } from "../plugins/itemsReordering/index.js";
|
|
5
|
+
import type { DataSource } from "../plugins/lazyLoading/index.js";
|
|
6
6
|
export interface RichTreeViewProState<R extends TreeViewValidItem<R>, Multiple extends boolean | undefined> extends RichTreeViewState<R, Multiple> {
|
|
7
7
|
/**
|
|
8
8
|
* Determine if a given item can be reordered.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TreeViewParametersToStateMapper } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.mjs";
|
|
1
|
+
import type { TreeViewParametersToStateMapper } from '@mui/x-tree-view/internals';
|
|
2
|
+
import type { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.mjs";
|
|
3
3
|
export declare const parametersToStateMapper: TreeViewParametersToStateMapper<any, any, RichTreeViewProState<any, any>, RichTreeViewProStoreParameters<any, any>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TreeViewParametersToStateMapper } from '@mui/x-tree-view/internals';
|
|
2
|
-
import { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.js";
|
|
1
|
+
import type { TreeViewParametersToStateMapper } from '@mui/x-tree-view/internals';
|
|
2
|
+
import type { RichTreeViewProStoreParameters, RichTreeViewProState } from "./RichTreeViewProStore.types.js";
|
|
3
3
|
export declare const parametersToStateMapper: TreeViewParametersToStateMapper<any, any, RichTreeViewProState<any, any>, RichTreeViewProStoreParameters<any, any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
-
import { TreeViewItemItemReorderingValidActions } from "./types.mjs";
|
|
3
|
-
import { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.mjs";
|
|
1
|
+
import type { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { TreeViewItemItemReorderingValidActions } from "./types.mjs";
|
|
3
|
+
import type { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.mjs";
|
|
4
4
|
export declare class TreeViewItemsReorderingPlugin {
|
|
5
5
|
private store;
|
|
6
6
|
constructor(store: RichTreeViewProStore<any, any>);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
-
import { TreeViewItemItemReorderingValidActions } from "./types.js";
|
|
3
|
-
import { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.js";
|
|
1
|
+
import type { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { TreeViewItemItemReorderingValidActions } from "./types.js";
|
|
3
|
+
import type { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.js";
|
|
4
4
|
export declare class TreeViewItemsReorderingPlugin {
|
|
5
5
|
private store;
|
|
6
6
|
constructor(store: RichTreeViewProStore<any, any>);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TreeViewCancellableEventHandler } from '@mui/x-tree-view/models';
|
|
3
|
-
import { TreeViewItemPlugin } from '@mui/x-tree-view/internals';
|
|
4
|
-
import { TreeItemDragAndDropOverlayProps } from '@mui/x-tree-view/TreeItemDragAndDropOverlay';
|
|
5
|
-
export declare const isAndroid: () => boolean;
|
|
2
|
+
import type { TreeViewCancellableEventHandler } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { TreeViewItemPlugin } from '@mui/x-tree-view/internals';
|
|
4
|
+
import type { TreeItemDragAndDropOverlayProps } from '@mui/x-tree-view/TreeItemDragAndDropOverlay';
|
|
6
5
|
export declare const useTreeViewItemsReorderingItemPlugin: TreeViewItemPlugin;
|
|
7
6
|
interface UseTreeItemRootSlotPropsFromItemsReordering {
|
|
8
7
|
draggable?: true;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TreeViewCancellableEventHandler } from '@mui/x-tree-view/models';
|
|
3
|
-
import { TreeViewItemPlugin } from '@mui/x-tree-view/internals';
|
|
4
|
-
import { TreeItemDragAndDropOverlayProps } from '@mui/x-tree-view/TreeItemDragAndDropOverlay';
|
|
5
|
-
export declare const isAndroid: () => boolean;
|
|
2
|
+
import type { TreeViewCancellableEventHandler } from '@mui/x-tree-view/models';
|
|
3
|
+
import type { TreeViewItemPlugin } from '@mui/x-tree-view/internals';
|
|
4
|
+
import type { TreeItemDragAndDropOverlayProps } from '@mui/x-tree-view/TreeItemDragAndDropOverlay';
|
|
6
5
|
export declare const useTreeViewItemsReorderingItemPlugin: TreeViewItemPlugin;
|
|
7
6
|
interface UseTreeItemRootSlotPropsFromItemsReordering {
|
|
8
7
|
draggable?: true;
|
|
@@ -5,13 +5,12 @@ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWild
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.useTreeViewItemsReorderingItemPlugin =
|
|
8
|
+
exports.useTreeViewItemsReorderingItemPlugin = void 0;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _platform = require("@base-ui/utils/platform");
|
|
10
11
|
var _store = require("@mui/x-internals/store");
|
|
11
12
|
var _internals = require("@mui/x-tree-view/internals");
|
|
12
13
|
var _selectors = require("./selectors");
|
|
13
|
-
const isAndroid = () => navigator.userAgent.toLowerCase().includes('android');
|
|
14
|
-
exports.isAndroid = isAndroid;
|
|
15
14
|
const useTreeViewItemsReorderingItemPlugin = ({
|
|
16
15
|
props
|
|
17
16
|
}) => {
|
|
@@ -51,7 +50,7 @@ const useTreeViewItemsReorderingItemPlugin = ({
|
|
|
51
50
|
const {
|
|
52
51
|
types
|
|
53
52
|
} = event.dataTransfer;
|
|
54
|
-
if (
|
|
53
|
+
if (_platform.platform.os.android && !types.includes('text/plain') && !types.includes('text/uri-list')) {
|
|
55
54
|
event.dataTransfer.setData('text/plain', 'android-fallback');
|
|
56
55
|
}
|
|
57
56
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
+
import { platform } from '@base-ui/utils/platform';
|
|
4
5
|
import { useStore } from '@mui/x-internals/store';
|
|
5
6
|
import { useTreeViewContext, isTargetInDescendants } from '@mui/x-tree-view/internals';
|
|
6
7
|
import { itemsReorderingSelectors } from "./selectors.mjs";
|
|
7
|
-
export const isAndroid = () => navigator.userAgent.toLowerCase().includes('android');
|
|
8
8
|
export const useTreeViewItemsReorderingItemPlugin = ({
|
|
9
9
|
props
|
|
10
10
|
}) => {
|
|
@@ -44,7 +44,7 @@ export const useTreeViewItemsReorderingItemPlugin = ({
|
|
|
44
44
|
const {
|
|
45
45
|
types
|
|
46
46
|
} = event.dataTransfer;
|
|
47
|
-
if (
|
|
47
|
+
if (platform.os.android && !types.includes('text/plain') && !types.includes('text/uri-list')) {
|
|
48
48
|
event.dataTransfer.setData('text/plain', 'android-fallback');
|
|
49
49
|
}
|
|
50
50
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
-
import { RichTreeViewProState } from "../../RichTreeViewProStore/index.mjs";
|
|
1
|
+
import type { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { RichTreeViewProState } from "../../RichTreeViewProStore/index.mjs";
|
|
3
3
|
export declare const itemsReorderingSelectors: {
|
|
4
4
|
/**
|
|
5
5
|
* Gets the properties of the current reordering.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
-
import { RichTreeViewProState } from "../../RichTreeViewProStore/index.js";
|
|
1
|
+
import type { TreeViewItemId } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { RichTreeViewProState } from "../../RichTreeViewProStore/index.js";
|
|
3
3
|
export declare const itemsReorderingSelectors: {
|
|
4
4
|
/**
|
|
5
5
|
* Gets the properties of the current reordering.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
-
import { TreeViewItemItemReorderingValidActions, TreeViewItemReorderPosition } from "./types.mjs";
|
|
3
|
-
import { RichTreeViewProState, RichTreeViewProStore } from "../../RichTreeViewProStore/index.mjs";
|
|
1
|
+
import type { TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { TreeViewItemItemReorderingValidActions, TreeViewItemReorderPosition } from "./types.mjs";
|
|
3
|
+
import type { RichTreeViewProState, RichTreeViewProStore } from "../../RichTreeViewProStore/index.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the item with the id itemIdB is an ancestor of the item with the id itemIdA.
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
-
import { TreeViewItemItemReorderingValidActions, TreeViewItemReorderPosition } from "./types.js";
|
|
3
|
-
import { RichTreeViewProState, RichTreeViewProStore } from "../../RichTreeViewProStore/index.js";
|
|
1
|
+
import type { TreeViewItemId, TreeViewItemsReorderingAction, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { TreeViewItemItemReorderingValidActions, TreeViewItemReorderPosition } from "./types.js";
|
|
3
|
+
import type { RichTreeViewProState, RichTreeViewProStore } from "../../RichTreeViewProStore/index.js";
|
|
4
4
|
/**
|
|
5
5
|
* Checks if the item with the id itemIdB is an ancestor of the item with the id itemIdA.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
-
import { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.mjs";
|
|
1
|
+
import type { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.mjs";
|
|
3
3
|
export declare const TREE_VIEW_LAZY_LOADED_ITEMS_INITIAL_STATE: {
|
|
4
4
|
loading: {};
|
|
5
5
|
errors: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
-
import { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.js";
|
|
1
|
+
import type { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { RichTreeViewProStore } from "../../RichTreeViewProStore/RichTreeViewProStore.js";
|
|
3
3
|
export declare const TREE_VIEW_LAZY_LOADED_ITEMS_INITIAL_STATE: {
|
|
4
4
|
loading: {};
|
|
5
5
|
errors: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
-
import { TreeViewLazyLoadingPlugin } from "./TreeViewLazyLoadingPlugin.mjs";
|
|
1
|
+
import type { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { TreeViewLazyLoadingPlugin } from "./TreeViewLazyLoadingPlugin.mjs";
|
|
3
3
|
export declare enum RequestStatus {
|
|
4
4
|
QUEUED = 0,
|
|
5
5
|
PENDING = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
-
import { TreeViewLazyLoadingPlugin } from "./TreeViewLazyLoadingPlugin.js";
|
|
1
|
+
import type { TreeViewItemId, TreeViewValidItem } from '@mui/x-tree-view/models';
|
|
2
|
+
import type { TreeViewLazyLoadingPlugin } from "./TreeViewLazyLoadingPlugin.js";
|
|
3
3
|
export declare enum RequestStatus {
|
|
4
4
|
QUEUED = 0,
|
|
5
5
|
PENDING = 1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RichTreeViewProState } from "../../RichTreeViewProStore/index.mjs";
|
|
1
|
+
import type { RichTreeViewProState } from "../../RichTreeViewProStore/index.mjs";
|
|
2
2
|
export declare const virtualizationSelectors: {
|
|
3
3
|
enabled: (state: RichTreeViewProState<any, any>) => boolean;
|
|
4
4
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RichTreeViewProState } from "../../RichTreeViewProStore/index.js";
|
|
1
|
+
import type { RichTreeViewProState } from "../../RichTreeViewProStore/index.js";
|
|
2
2
|
export declare const virtualizationSelectors: {
|
|
3
3
|
enabled: (state: RichTreeViewProState<any, any>) => boolean;
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-tree-view-pro",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Tree View components.",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.29.7",
|
|
35
|
-
"@base-ui/utils": "^0.
|
|
36
|
-
"@mui/utils": "^9.
|
|
35
|
+
"@base-ui/utils": "^0.3.0",
|
|
36
|
+
"@mui/utils": "^9.1.1",
|
|
37
37
|
"@types/react-transition-group": "^4.4.12",
|
|
38
38
|
"clsx": "^2.1.1",
|
|
39
39
|
"prop-types": "^15.8.1",
|
|
40
40
|
"react-transition-group": "^4.4.5",
|
|
41
41
|
"reselect": "^5.2.0",
|
|
42
42
|
"use-sync-external-store": "^1.6.0",
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-
|
|
46
|
-
"@mui/x-virtualizer": "
|
|
43
|
+
"@mui/x-internals": "^9.8.0",
|
|
44
|
+
"@mui/x-license": "^9.8.0",
|
|
45
|
+
"@mui/x-tree-view": "^9.8.0",
|
|
46
|
+
"@mui/x-virtualizer": "0.5.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
|
|
1
|
+
import type { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
|
|
2
2
|
export interface TreeViewProComponents<Theme = unknown> {
|
|
3
3
|
MuiRichTreeViewPro?: {
|
|
4
4
|
defaultProps?: ComponentsProps['MuiRichTreeViewPro'];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
|
|
1
|
+
import type { ComponentsProps, ComponentsOverrides, ComponentsVariants } from '@mui/material/styles';
|
|
2
2
|
export interface TreeViewProComponents<Theme = unknown> {
|
|
3
3
|
MuiRichTreeViewPro?: {
|
|
4
4
|
defaultProps?: ComponentsProps['MuiRichTreeViewPro'];
|