@mui/x-tree-view 8.0.0-alpha.2 → 8.0.0-alpha.4
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 +376 -0
- package/README.md +1 -1
- package/hooks/useTreeItemUtils/useTreeItemUtils.d.ts +4 -4
- package/index.js +1 -1
- package/internals/plugins/useTreeViewExpansion/useTreeViewExpansion.selectors.d.ts +30 -10
- package/internals/plugins/useTreeViewItems/useTreeViewItems.selectors.d.ts +252 -84
- package/internals/plugins/useTreeViewItems/useTreeViewItems.types.d.ts +26 -8
- package/internals/plugins/useTreeViewSelection/useTreeViewSelection.itemPlugin.js +13 -16
- package/modern/index.js +1 -1
- package/modern/internals/plugins/useTreeViewSelection/useTreeViewSelection.itemPlugin.js +13 -16
- package/node/index.js +1 -1
- package/node/internals/plugins/useTreeViewSelection/useTreeViewSelection.itemPlugin.js +13 -16
- package/package.json +2 -2
|
@@ -8,15 +8,21 @@ import { UseTreeViewItemsSignature } from './useTreeViewItems.types';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const selectorItemMetaLookup: ((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
10
10
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
11
|
-
}) =>
|
|
11
|
+
}) => {
|
|
12
|
+
[itemId: string]: TreeViewItemMeta;
|
|
13
|
+
}) & {
|
|
12
14
|
clearCache: () => void;
|
|
13
15
|
resultsCount: () => number;
|
|
14
16
|
resetResultsCount: () => void;
|
|
15
17
|
} & {
|
|
16
18
|
resultFunc: (resultFuncArgs_0: {
|
|
17
19
|
disabledItemsFocusable: boolean;
|
|
18
|
-
itemModelLookup:
|
|
19
|
-
|
|
20
|
+
itemModelLookup: {
|
|
21
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
22
|
+
};
|
|
23
|
+
itemMetaLookup: {
|
|
24
|
+
[itemId: string]: TreeViewItemMeta;
|
|
25
|
+
};
|
|
20
26
|
itemOrderedChildrenIdsLookup: {
|
|
21
27
|
[parentItemId: string]: string[];
|
|
22
28
|
};
|
|
@@ -25,11 +31,17 @@ export declare const selectorItemMetaLookup: ((state: import("../../corePlugins/
|
|
|
25
31
|
[itemId: string]: number;
|
|
26
32
|
};
|
|
27
33
|
};
|
|
28
|
-
}) =>
|
|
34
|
+
}) => {
|
|
35
|
+
[itemId: string]: TreeViewItemMeta;
|
|
36
|
+
};
|
|
29
37
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
30
38
|
disabledItemsFocusable: boolean;
|
|
31
|
-
itemModelLookup:
|
|
32
|
-
|
|
39
|
+
itemModelLookup: {
|
|
40
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
41
|
+
};
|
|
42
|
+
itemMetaLookup: {
|
|
43
|
+
[itemId: string]: TreeViewItemMeta;
|
|
44
|
+
};
|
|
33
45
|
itemOrderedChildrenIdsLookup: {
|
|
34
46
|
[parentItemId: string]: string[];
|
|
35
47
|
};
|
|
@@ -38,12 +50,16 @@ export declare const selectorItemMetaLookup: ((state: import("../../corePlugins/
|
|
|
38
50
|
[itemId: string]: number;
|
|
39
51
|
};
|
|
40
52
|
};
|
|
41
|
-
}) =>
|
|
53
|
+
}) => {
|
|
54
|
+
[itemId: string]: TreeViewItemMeta;
|
|
55
|
+
}) & {
|
|
42
56
|
clearCache: () => void;
|
|
43
57
|
resultsCount: () => number;
|
|
44
58
|
resetResultsCount: () => void;
|
|
45
59
|
};
|
|
46
|
-
lastResult: () =>
|
|
60
|
+
lastResult: () => {
|
|
61
|
+
[itemId: string]: TreeViewItemMeta;
|
|
62
|
+
};
|
|
47
63
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
48
64
|
recomputations: () => number;
|
|
49
65
|
resetRecomputations: () => void;
|
|
@@ -66,8 +82,12 @@ export declare const selectorItemOrderedChildrenIds: ((state: any, itemId: strin
|
|
|
66
82
|
} & {
|
|
67
83
|
resultFunc: (resultFuncArgs_0: {
|
|
68
84
|
disabledItemsFocusable: boolean;
|
|
69
|
-
itemModelLookup:
|
|
70
|
-
|
|
85
|
+
itemModelLookup: {
|
|
86
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
87
|
+
};
|
|
88
|
+
itemMetaLookup: {
|
|
89
|
+
[itemId: string]: TreeViewItemMeta;
|
|
90
|
+
};
|
|
71
91
|
itemOrderedChildrenIdsLookup: {
|
|
72
92
|
[parentItemId: string]: string[];
|
|
73
93
|
};
|
|
@@ -79,8 +99,12 @@ export declare const selectorItemOrderedChildrenIds: ((state: any, itemId: strin
|
|
|
79
99
|
}, resultFuncArgs_1: string | null) => string[];
|
|
80
100
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
81
101
|
disabledItemsFocusable: boolean;
|
|
82
|
-
itemModelLookup:
|
|
83
|
-
|
|
102
|
+
itemModelLookup: {
|
|
103
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
104
|
+
};
|
|
105
|
+
itemMetaLookup: {
|
|
106
|
+
[itemId: string]: TreeViewItemMeta;
|
|
107
|
+
};
|
|
84
108
|
itemOrderedChildrenIdsLookup: {
|
|
85
109
|
[parentItemId: string]: string[];
|
|
86
110
|
};
|
|
@@ -117,8 +141,12 @@ export declare const selectorItemModel: ((state: any, itemId: string) => import(
|
|
|
117
141
|
} & {
|
|
118
142
|
resultFunc: (resultFuncArgs_0: {
|
|
119
143
|
disabledItemsFocusable: boolean;
|
|
120
|
-
itemModelLookup:
|
|
121
|
-
|
|
144
|
+
itemModelLookup: {
|
|
145
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
146
|
+
};
|
|
147
|
+
itemMetaLookup: {
|
|
148
|
+
[itemId: string]: TreeViewItemMeta;
|
|
149
|
+
};
|
|
122
150
|
itemOrderedChildrenIdsLookup: {
|
|
123
151
|
[parentItemId: string]: string[];
|
|
124
152
|
};
|
|
@@ -130,8 +158,12 @@ export declare const selectorItemModel: ((state: any, itemId: string) => import(
|
|
|
130
158
|
}, resultFuncArgs_1: string) => import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
131
159
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
132
160
|
disabledItemsFocusable: boolean;
|
|
133
|
-
itemModelLookup:
|
|
134
|
-
|
|
161
|
+
itemModelLookup: {
|
|
162
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
163
|
+
};
|
|
164
|
+
itemMetaLookup: {
|
|
165
|
+
[itemId: string]: TreeViewItemMeta;
|
|
166
|
+
};
|
|
135
167
|
itemOrderedChildrenIdsLookup: {
|
|
136
168
|
[parentItemId: string]: string[];
|
|
137
169
|
};
|
|
@@ -167,8 +199,12 @@ export declare const selectorItemMeta: ((state: any, itemId: string | null) => T
|
|
|
167
199
|
resultsCount: () => number;
|
|
168
200
|
resetResultsCount: () => void;
|
|
169
201
|
} & {
|
|
170
|
-
resultFunc: (resultFuncArgs_0:
|
|
171
|
-
|
|
202
|
+
resultFunc: (resultFuncArgs_0: {
|
|
203
|
+
[itemId: string]: TreeViewItemMeta;
|
|
204
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null;
|
|
205
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
206
|
+
[itemId: string]: TreeViewItemMeta;
|
|
207
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null) & {
|
|
172
208
|
clearCache: () => void;
|
|
173
209
|
resultsCount: () => number;
|
|
174
210
|
resetResultsCount: () => void;
|
|
@@ -176,15 +212,21 @@ export declare const selectorItemMeta: ((state: any, itemId: string | null) => T
|
|
|
176
212
|
lastResult: () => TreeViewItemMeta | null;
|
|
177
213
|
dependencies: [((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
178
214
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
179
|
-
}) =>
|
|
215
|
+
}) => {
|
|
216
|
+
[itemId: string]: TreeViewItemMeta;
|
|
217
|
+
}) & {
|
|
180
218
|
clearCache: () => void;
|
|
181
219
|
resultsCount: () => number;
|
|
182
220
|
resetResultsCount: () => void;
|
|
183
221
|
} & {
|
|
184
222
|
resultFunc: (resultFuncArgs_0: {
|
|
185
223
|
disabledItemsFocusable: boolean;
|
|
186
|
-
itemModelLookup:
|
|
187
|
-
|
|
224
|
+
itemModelLookup: {
|
|
225
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
226
|
+
};
|
|
227
|
+
itemMetaLookup: {
|
|
228
|
+
[itemId: string]: TreeViewItemMeta;
|
|
229
|
+
};
|
|
188
230
|
itemOrderedChildrenIdsLookup: {
|
|
189
231
|
[parentItemId: string]: string[];
|
|
190
232
|
};
|
|
@@ -193,11 +235,17 @@ export declare const selectorItemMeta: ((state: any, itemId: string | null) => T
|
|
|
193
235
|
[itemId: string]: number;
|
|
194
236
|
};
|
|
195
237
|
};
|
|
196
|
-
}) =>
|
|
238
|
+
}) => {
|
|
239
|
+
[itemId: string]: TreeViewItemMeta;
|
|
240
|
+
};
|
|
197
241
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
198
242
|
disabledItemsFocusable: boolean;
|
|
199
|
-
itemModelLookup:
|
|
200
|
-
|
|
243
|
+
itemModelLookup: {
|
|
244
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
245
|
+
};
|
|
246
|
+
itemMetaLookup: {
|
|
247
|
+
[itemId: string]: TreeViewItemMeta;
|
|
248
|
+
};
|
|
201
249
|
itemOrderedChildrenIdsLookup: {
|
|
202
250
|
[parentItemId: string]: string[];
|
|
203
251
|
};
|
|
@@ -206,12 +254,16 @@ export declare const selectorItemMeta: ((state: any, itemId: string | null) => T
|
|
|
206
254
|
[itemId: string]: number;
|
|
207
255
|
};
|
|
208
256
|
};
|
|
209
|
-
}) =>
|
|
257
|
+
}) => {
|
|
258
|
+
[itemId: string]: TreeViewItemMeta;
|
|
259
|
+
}) & {
|
|
210
260
|
clearCache: () => void;
|
|
211
261
|
resultsCount: () => number;
|
|
212
262
|
resetResultsCount: () => void;
|
|
213
263
|
};
|
|
214
|
-
lastResult: () =>
|
|
264
|
+
lastResult: () => {
|
|
265
|
+
[itemId: string]: TreeViewItemMeta;
|
|
266
|
+
};
|
|
215
267
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
216
268
|
recomputations: () => number;
|
|
217
269
|
resetRecomputations: () => void;
|
|
@@ -240,8 +292,12 @@ export declare const selectorIsItemDisabled: ((state: any, itemId: string) => bo
|
|
|
240
292
|
resultsCount: () => number;
|
|
241
293
|
resetResultsCount: () => void;
|
|
242
294
|
} & {
|
|
243
|
-
resultFunc: (resultFuncArgs_0:
|
|
244
|
-
|
|
295
|
+
resultFunc: (resultFuncArgs_0: {
|
|
296
|
+
[itemId: string]: TreeViewItemMeta;
|
|
297
|
+
}, resultFuncArgs_1: string) => boolean;
|
|
298
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
299
|
+
[itemId: string]: TreeViewItemMeta;
|
|
300
|
+
}, resultFuncArgs_1: string) => boolean) & {
|
|
245
301
|
clearCache: () => void;
|
|
246
302
|
resultsCount: () => number;
|
|
247
303
|
resetResultsCount: () => void;
|
|
@@ -249,15 +305,21 @@ export declare const selectorIsItemDisabled: ((state: any, itemId: string) => bo
|
|
|
249
305
|
lastResult: () => boolean;
|
|
250
306
|
dependencies: [((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
251
307
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
252
|
-
}) =>
|
|
308
|
+
}) => {
|
|
309
|
+
[itemId: string]: TreeViewItemMeta;
|
|
310
|
+
}) & {
|
|
253
311
|
clearCache: () => void;
|
|
254
312
|
resultsCount: () => number;
|
|
255
313
|
resetResultsCount: () => void;
|
|
256
314
|
} & {
|
|
257
315
|
resultFunc: (resultFuncArgs_0: {
|
|
258
316
|
disabledItemsFocusable: boolean;
|
|
259
|
-
itemModelLookup:
|
|
260
|
-
|
|
317
|
+
itemModelLookup: {
|
|
318
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
319
|
+
};
|
|
320
|
+
itemMetaLookup: {
|
|
321
|
+
[itemId: string]: TreeViewItemMeta;
|
|
322
|
+
};
|
|
261
323
|
itemOrderedChildrenIdsLookup: {
|
|
262
324
|
[parentItemId: string]: string[];
|
|
263
325
|
};
|
|
@@ -266,11 +328,17 @@ export declare const selectorIsItemDisabled: ((state: any, itemId: string) => bo
|
|
|
266
328
|
[itemId: string]: number;
|
|
267
329
|
};
|
|
268
330
|
};
|
|
269
|
-
}) =>
|
|
331
|
+
}) => {
|
|
332
|
+
[itemId: string]: TreeViewItemMeta;
|
|
333
|
+
};
|
|
270
334
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
271
335
|
disabledItemsFocusable: boolean;
|
|
272
|
-
itemModelLookup:
|
|
273
|
-
|
|
336
|
+
itemModelLookup: {
|
|
337
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
338
|
+
};
|
|
339
|
+
itemMetaLookup: {
|
|
340
|
+
[itemId: string]: TreeViewItemMeta;
|
|
341
|
+
};
|
|
274
342
|
itemOrderedChildrenIdsLookup: {
|
|
275
343
|
[parentItemId: string]: string[];
|
|
276
344
|
};
|
|
@@ -279,12 +347,16 @@ export declare const selectorIsItemDisabled: ((state: any, itemId: string) => bo
|
|
|
279
347
|
[itemId: string]: number;
|
|
280
348
|
};
|
|
281
349
|
};
|
|
282
|
-
}) =>
|
|
350
|
+
}) => {
|
|
351
|
+
[itemId: string]: TreeViewItemMeta;
|
|
352
|
+
}) & {
|
|
283
353
|
clearCache: () => void;
|
|
284
354
|
resultsCount: () => number;
|
|
285
355
|
resetResultsCount: () => void;
|
|
286
356
|
};
|
|
287
|
-
lastResult: () =>
|
|
357
|
+
lastResult: () => {
|
|
358
|
+
[itemId: string]: TreeViewItemMeta;
|
|
359
|
+
};
|
|
288
360
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
289
361
|
recomputations: () => number;
|
|
290
362
|
resetRecomputations: () => void;
|
|
@@ -315,8 +387,12 @@ export declare const selectorItemIndex: ((state: any, itemId: string | null) =>
|
|
|
315
387
|
} & {
|
|
316
388
|
resultFunc: (resultFuncArgs_0: {
|
|
317
389
|
disabledItemsFocusable: boolean;
|
|
318
|
-
itemModelLookup:
|
|
319
|
-
|
|
390
|
+
itemModelLookup: {
|
|
391
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
392
|
+
};
|
|
393
|
+
itemMetaLookup: {
|
|
394
|
+
[itemId: string]: TreeViewItemMeta;
|
|
395
|
+
};
|
|
320
396
|
itemOrderedChildrenIdsLookup: {
|
|
321
397
|
[parentItemId: string]: string[];
|
|
322
398
|
};
|
|
@@ -328,8 +404,12 @@ export declare const selectorItemIndex: ((state: any, itemId: string | null) =>
|
|
|
328
404
|
}, resultFuncArgs_1: TreeViewItemMeta | null) => number;
|
|
329
405
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
330
406
|
disabledItemsFocusable: boolean;
|
|
331
|
-
itemModelLookup:
|
|
332
|
-
|
|
407
|
+
itemModelLookup: {
|
|
408
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
409
|
+
};
|
|
410
|
+
itemMetaLookup: {
|
|
411
|
+
[itemId: string]: TreeViewItemMeta;
|
|
412
|
+
};
|
|
333
413
|
itemOrderedChildrenIdsLookup: {
|
|
334
414
|
[parentItemId: string]: string[];
|
|
335
415
|
};
|
|
@@ -349,8 +429,12 @@ export declare const selectorItemIndex: ((state: any, itemId: string | null) =>
|
|
|
349
429
|
resultsCount: () => number;
|
|
350
430
|
resetResultsCount: () => void;
|
|
351
431
|
} & {
|
|
352
|
-
resultFunc: (resultFuncArgs_0:
|
|
353
|
-
|
|
432
|
+
resultFunc: (resultFuncArgs_0: {
|
|
433
|
+
[itemId: string]: TreeViewItemMeta;
|
|
434
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null;
|
|
435
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
436
|
+
[itemId: string]: TreeViewItemMeta;
|
|
437
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null) & {
|
|
354
438
|
clearCache: () => void;
|
|
355
439
|
resultsCount: () => number;
|
|
356
440
|
resetResultsCount: () => void;
|
|
@@ -358,15 +442,21 @@ export declare const selectorItemIndex: ((state: any, itemId: string | null) =>
|
|
|
358
442
|
lastResult: () => TreeViewItemMeta | null;
|
|
359
443
|
dependencies: [((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
360
444
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
361
|
-
}) =>
|
|
445
|
+
}) => {
|
|
446
|
+
[itemId: string]: TreeViewItemMeta;
|
|
447
|
+
}) & {
|
|
362
448
|
clearCache: () => void;
|
|
363
449
|
resultsCount: () => number;
|
|
364
450
|
resetResultsCount: () => void;
|
|
365
451
|
} & {
|
|
366
452
|
resultFunc: (resultFuncArgs_0: {
|
|
367
453
|
disabledItemsFocusable: boolean;
|
|
368
|
-
itemModelLookup:
|
|
369
|
-
|
|
454
|
+
itemModelLookup: {
|
|
455
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
456
|
+
};
|
|
457
|
+
itemMetaLookup: {
|
|
458
|
+
[itemId: string]: TreeViewItemMeta;
|
|
459
|
+
};
|
|
370
460
|
itemOrderedChildrenIdsLookup: {
|
|
371
461
|
[parentItemId: string]: string[];
|
|
372
462
|
};
|
|
@@ -375,11 +465,17 @@ export declare const selectorItemIndex: ((state: any, itemId: string | null) =>
|
|
|
375
465
|
[itemId: string]: number;
|
|
376
466
|
};
|
|
377
467
|
};
|
|
378
|
-
}) =>
|
|
468
|
+
}) => {
|
|
469
|
+
[itemId: string]: TreeViewItemMeta;
|
|
470
|
+
};
|
|
379
471
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
380
472
|
disabledItemsFocusable: boolean;
|
|
381
|
-
itemModelLookup:
|
|
382
|
-
|
|
473
|
+
itemModelLookup: {
|
|
474
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
475
|
+
};
|
|
476
|
+
itemMetaLookup: {
|
|
477
|
+
[itemId: string]: TreeViewItemMeta;
|
|
478
|
+
};
|
|
383
479
|
itemOrderedChildrenIdsLookup: {
|
|
384
480
|
[parentItemId: string]: string[];
|
|
385
481
|
};
|
|
@@ -388,12 +484,16 @@ export declare const selectorItemIndex: ((state: any, itemId: string | null) =>
|
|
|
388
484
|
[itemId: string]: number;
|
|
389
485
|
};
|
|
390
486
|
};
|
|
391
|
-
}) =>
|
|
487
|
+
}) => {
|
|
488
|
+
[itemId: string]: TreeViewItemMeta;
|
|
489
|
+
}) & {
|
|
392
490
|
clearCache: () => void;
|
|
393
491
|
resultsCount: () => number;
|
|
394
492
|
resetResultsCount: () => void;
|
|
395
493
|
};
|
|
396
|
-
lastResult: () =>
|
|
494
|
+
lastResult: () => {
|
|
495
|
+
[itemId: string]: TreeViewItemMeta;
|
|
496
|
+
};
|
|
397
497
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
398
498
|
recomputations: () => number;
|
|
399
499
|
resetRecomputations: () => void;
|
|
@@ -442,8 +542,12 @@ export declare const selectorItemParentId: ((state: any, itemId: string | null)
|
|
|
442
542
|
resultsCount: () => number;
|
|
443
543
|
resetResultsCount: () => void;
|
|
444
544
|
} & {
|
|
445
|
-
resultFunc: (resultFuncArgs_0:
|
|
446
|
-
|
|
545
|
+
resultFunc: (resultFuncArgs_0: {
|
|
546
|
+
[itemId: string]: TreeViewItemMeta;
|
|
547
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null;
|
|
548
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
549
|
+
[itemId: string]: TreeViewItemMeta;
|
|
550
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null) & {
|
|
447
551
|
clearCache: () => void;
|
|
448
552
|
resultsCount: () => number;
|
|
449
553
|
resetResultsCount: () => void;
|
|
@@ -451,15 +555,21 @@ export declare const selectorItemParentId: ((state: any, itemId: string | null)
|
|
|
451
555
|
lastResult: () => TreeViewItemMeta | null;
|
|
452
556
|
dependencies: [((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
453
557
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
454
|
-
}) =>
|
|
558
|
+
}) => {
|
|
559
|
+
[itemId: string]: TreeViewItemMeta;
|
|
560
|
+
}) & {
|
|
455
561
|
clearCache: () => void;
|
|
456
562
|
resultsCount: () => number;
|
|
457
563
|
resetResultsCount: () => void;
|
|
458
564
|
} & {
|
|
459
565
|
resultFunc: (resultFuncArgs_0: {
|
|
460
566
|
disabledItemsFocusable: boolean;
|
|
461
|
-
itemModelLookup:
|
|
462
|
-
|
|
567
|
+
itemModelLookup: {
|
|
568
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
569
|
+
};
|
|
570
|
+
itemMetaLookup: {
|
|
571
|
+
[itemId: string]: TreeViewItemMeta;
|
|
572
|
+
};
|
|
463
573
|
itemOrderedChildrenIdsLookup: {
|
|
464
574
|
[parentItemId: string]: string[];
|
|
465
575
|
};
|
|
@@ -468,11 +578,17 @@ export declare const selectorItemParentId: ((state: any, itemId: string | null)
|
|
|
468
578
|
[itemId: string]: number;
|
|
469
579
|
};
|
|
470
580
|
};
|
|
471
|
-
}) =>
|
|
581
|
+
}) => {
|
|
582
|
+
[itemId: string]: TreeViewItemMeta;
|
|
583
|
+
};
|
|
472
584
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
473
585
|
disabledItemsFocusable: boolean;
|
|
474
|
-
itemModelLookup:
|
|
475
|
-
|
|
586
|
+
itemModelLookup: {
|
|
587
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
588
|
+
};
|
|
589
|
+
itemMetaLookup: {
|
|
590
|
+
[itemId: string]: TreeViewItemMeta;
|
|
591
|
+
};
|
|
476
592
|
itemOrderedChildrenIdsLookup: {
|
|
477
593
|
[parentItemId: string]: string[];
|
|
478
594
|
};
|
|
@@ -481,12 +597,16 @@ export declare const selectorItemParentId: ((state: any, itemId: string | null)
|
|
|
481
597
|
[itemId: string]: number;
|
|
482
598
|
};
|
|
483
599
|
};
|
|
484
|
-
}) =>
|
|
600
|
+
}) => {
|
|
601
|
+
[itemId: string]: TreeViewItemMeta;
|
|
602
|
+
}) & {
|
|
485
603
|
clearCache: () => void;
|
|
486
604
|
resultsCount: () => number;
|
|
487
605
|
resetResultsCount: () => void;
|
|
488
606
|
};
|
|
489
|
-
lastResult: () =>
|
|
607
|
+
lastResult: () => {
|
|
608
|
+
[itemId: string]: TreeViewItemMeta;
|
|
609
|
+
};
|
|
490
610
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
491
611
|
recomputations: () => number;
|
|
492
612
|
resetRecomputations: () => void;
|
|
@@ -535,8 +655,12 @@ export declare const selectorItemDepth: ((state: any, itemId: string | null) =>
|
|
|
535
655
|
resultsCount: () => number;
|
|
536
656
|
resetResultsCount: () => void;
|
|
537
657
|
} & {
|
|
538
|
-
resultFunc: (resultFuncArgs_0:
|
|
539
|
-
|
|
658
|
+
resultFunc: (resultFuncArgs_0: {
|
|
659
|
+
[itemId: string]: TreeViewItemMeta;
|
|
660
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null;
|
|
661
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
662
|
+
[itemId: string]: TreeViewItemMeta;
|
|
663
|
+
}, resultFuncArgs_1: string | null) => TreeViewItemMeta | null) & {
|
|
540
664
|
clearCache: () => void;
|
|
541
665
|
resultsCount: () => number;
|
|
542
666
|
resetResultsCount: () => void;
|
|
@@ -544,15 +668,21 @@ export declare const selectorItemDepth: ((state: any, itemId: string | null) =>
|
|
|
544
668
|
lastResult: () => TreeViewItemMeta | null;
|
|
545
669
|
dependencies: [((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
546
670
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
547
|
-
}) =>
|
|
671
|
+
}) => {
|
|
672
|
+
[itemId: string]: TreeViewItemMeta;
|
|
673
|
+
}) & {
|
|
548
674
|
clearCache: () => void;
|
|
549
675
|
resultsCount: () => number;
|
|
550
676
|
resetResultsCount: () => void;
|
|
551
677
|
} & {
|
|
552
678
|
resultFunc: (resultFuncArgs_0: {
|
|
553
679
|
disabledItemsFocusable: boolean;
|
|
554
|
-
itemModelLookup:
|
|
555
|
-
|
|
680
|
+
itemModelLookup: {
|
|
681
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
682
|
+
};
|
|
683
|
+
itemMetaLookup: {
|
|
684
|
+
[itemId: string]: TreeViewItemMeta;
|
|
685
|
+
};
|
|
556
686
|
itemOrderedChildrenIdsLookup: {
|
|
557
687
|
[parentItemId: string]: string[];
|
|
558
688
|
};
|
|
@@ -561,11 +691,17 @@ export declare const selectorItemDepth: ((state: any, itemId: string | null) =>
|
|
|
561
691
|
[itemId: string]: number;
|
|
562
692
|
};
|
|
563
693
|
};
|
|
564
|
-
}) =>
|
|
694
|
+
}) => {
|
|
695
|
+
[itemId: string]: TreeViewItemMeta;
|
|
696
|
+
};
|
|
565
697
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
566
698
|
disabledItemsFocusable: boolean;
|
|
567
|
-
itemModelLookup:
|
|
568
|
-
|
|
699
|
+
itemModelLookup: {
|
|
700
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
701
|
+
};
|
|
702
|
+
itemMetaLookup: {
|
|
703
|
+
[itemId: string]: TreeViewItemMeta;
|
|
704
|
+
};
|
|
569
705
|
itemOrderedChildrenIdsLookup: {
|
|
570
706
|
[parentItemId: string]: string[];
|
|
571
707
|
};
|
|
@@ -574,12 +710,16 @@ export declare const selectorItemDepth: ((state: any, itemId: string | null) =>
|
|
|
574
710
|
[itemId: string]: number;
|
|
575
711
|
};
|
|
576
712
|
};
|
|
577
|
-
}) =>
|
|
713
|
+
}) => {
|
|
714
|
+
[itemId: string]: TreeViewItemMeta;
|
|
715
|
+
}) & {
|
|
578
716
|
clearCache: () => void;
|
|
579
717
|
resultsCount: () => number;
|
|
580
718
|
resetResultsCount: () => void;
|
|
581
719
|
};
|
|
582
|
-
lastResult: () =>
|
|
720
|
+
lastResult: () => {
|
|
721
|
+
[itemId: string]: TreeViewItemMeta;
|
|
722
|
+
};
|
|
583
723
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
584
724
|
recomputations: () => number;
|
|
585
725
|
resetRecomputations: () => void;
|
|
@@ -612,8 +752,12 @@ export declare const selectorCanItemBeFocused: ((state: any, itemId: string) =>
|
|
|
612
752
|
} & {
|
|
613
753
|
resultFunc: (resultFuncArgs_0: {
|
|
614
754
|
disabledItemsFocusable: boolean;
|
|
615
|
-
itemModelLookup:
|
|
616
|
-
|
|
755
|
+
itemModelLookup: {
|
|
756
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
757
|
+
};
|
|
758
|
+
itemMetaLookup: {
|
|
759
|
+
[itemId: string]: TreeViewItemMeta;
|
|
760
|
+
};
|
|
617
761
|
itemOrderedChildrenIdsLookup: {
|
|
618
762
|
[parentItemId: string]: string[];
|
|
619
763
|
};
|
|
@@ -625,8 +769,12 @@ export declare const selectorCanItemBeFocused: ((state: any, itemId: string) =>
|
|
|
625
769
|
}, resultFuncArgs_1: boolean) => boolean;
|
|
626
770
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
627
771
|
disabledItemsFocusable: boolean;
|
|
628
|
-
itemModelLookup:
|
|
629
|
-
|
|
772
|
+
itemModelLookup: {
|
|
773
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
774
|
+
};
|
|
775
|
+
itemMetaLookup: {
|
|
776
|
+
[itemId: string]: TreeViewItemMeta;
|
|
777
|
+
};
|
|
630
778
|
itemOrderedChildrenIdsLookup: {
|
|
631
779
|
[parentItemId: string]: string[];
|
|
632
780
|
};
|
|
@@ -646,8 +794,12 @@ export declare const selectorCanItemBeFocused: ((state: any, itemId: string) =>
|
|
|
646
794
|
resultsCount: () => number;
|
|
647
795
|
resetResultsCount: () => void;
|
|
648
796
|
} & {
|
|
649
|
-
resultFunc: (resultFuncArgs_0:
|
|
650
|
-
|
|
797
|
+
resultFunc: (resultFuncArgs_0: {
|
|
798
|
+
[itemId: string]: TreeViewItemMeta;
|
|
799
|
+
}, resultFuncArgs_1: string) => boolean;
|
|
800
|
+
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
801
|
+
[itemId: string]: TreeViewItemMeta;
|
|
802
|
+
}, resultFuncArgs_1: string) => boolean) & {
|
|
651
803
|
clearCache: () => void;
|
|
652
804
|
resultsCount: () => number;
|
|
653
805
|
resetResultsCount: () => void;
|
|
@@ -655,15 +807,21 @@ export declare const selectorCanItemBeFocused: ((state: any, itemId: string) =>
|
|
|
655
807
|
lastResult: () => boolean;
|
|
656
808
|
dependencies: [((state: import("../../corePlugins/useTreeViewId/useTreeViewId.types").UseTreeViewIdState & import("./useTreeViewItems.types").UseTreeViewItemsState<import("../../..").TreeViewDefaultItemModelProperties> & Partial<{}> & {
|
|
657
809
|
cacheKey: import("../../models").TreeViewStateCacheKey;
|
|
658
|
-
}) =>
|
|
810
|
+
}) => {
|
|
811
|
+
[itemId: string]: TreeViewItemMeta;
|
|
812
|
+
}) & {
|
|
659
813
|
clearCache: () => void;
|
|
660
814
|
resultsCount: () => number;
|
|
661
815
|
resetResultsCount: () => void;
|
|
662
816
|
} & {
|
|
663
817
|
resultFunc: (resultFuncArgs_0: {
|
|
664
818
|
disabledItemsFocusable: boolean;
|
|
665
|
-
itemModelLookup:
|
|
666
|
-
|
|
819
|
+
itemModelLookup: {
|
|
820
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
821
|
+
};
|
|
822
|
+
itemMetaLookup: {
|
|
823
|
+
[itemId: string]: TreeViewItemMeta;
|
|
824
|
+
};
|
|
667
825
|
itemOrderedChildrenIdsLookup: {
|
|
668
826
|
[parentItemId: string]: string[];
|
|
669
827
|
};
|
|
@@ -672,11 +830,17 @@ export declare const selectorCanItemBeFocused: ((state: any, itemId: string) =>
|
|
|
672
830
|
[itemId: string]: number;
|
|
673
831
|
};
|
|
674
832
|
};
|
|
675
|
-
}) =>
|
|
833
|
+
}) => {
|
|
834
|
+
[itemId: string]: TreeViewItemMeta;
|
|
835
|
+
};
|
|
676
836
|
memoizedResultFunc: ((resultFuncArgs_0: {
|
|
677
837
|
disabledItemsFocusable: boolean;
|
|
678
|
-
itemModelLookup:
|
|
679
|
-
|
|
838
|
+
itemModelLookup: {
|
|
839
|
+
[itemId: string]: import("../../..").TreeViewBaseItem<import("../../..").TreeViewDefaultItemModelProperties>;
|
|
840
|
+
};
|
|
841
|
+
itemMetaLookup: {
|
|
842
|
+
[itemId: string]: TreeViewItemMeta;
|
|
843
|
+
};
|
|
680
844
|
itemOrderedChildrenIdsLookup: {
|
|
681
845
|
[parentItemId: string]: string[];
|
|
682
846
|
};
|
|
@@ -685,12 +849,16 @@ export declare const selectorCanItemBeFocused: ((state: any, itemId: string) =>
|
|
|
685
849
|
[itemId: string]: number;
|
|
686
850
|
};
|
|
687
851
|
};
|
|
688
|
-
}) =>
|
|
852
|
+
}) => {
|
|
853
|
+
[itemId: string]: TreeViewItemMeta;
|
|
854
|
+
}) & {
|
|
689
855
|
clearCache: () => void;
|
|
690
856
|
resultsCount: () => number;
|
|
691
857
|
resetResultsCount: () => void;
|
|
692
858
|
};
|
|
693
|
-
lastResult: () =>
|
|
859
|
+
lastResult: () => {
|
|
860
|
+
[itemId: string]: TreeViewItemMeta;
|
|
861
|
+
};
|
|
694
862
|
dependencies: [TreeViewRootSelector<UseTreeViewItemsSignature>];
|
|
695
863
|
recomputations: () => number;
|
|
696
864
|
resetRecomputations: () => void;
|