@progress/kendo-react-treeview 13.3.0-develop.9 → 13.4.0-develop.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/index.d.ts CHANGED
@@ -5,1313 +5,19 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { BaseEvent } from '@progress/kendo-react-common';
9
- import { ComponentType } from 'react';
10
- import { CSSProperties } from 'react';
11
- import { default as default_2 } from 'prop-types';
12
- import { TreeFieldsService as FieldsService } from '@progress/kendo-react-common';
13
- import { ForwardRefExoticComponent } from 'react';
14
- import { JSX } from 'react/jsx-runtime';
15
- import * as React_2 from 'react';
16
- import { RefAttributes } from 'react';
17
-
18
- declare namespace events {
19
- export {
20
- TreeViewExpandChangeEvent,
21
- TreeViewItemClickEvent,
22
- TreeViewCheckChangeEvent,
23
- TreeViewContextMenuEvent,
24
- TreeViewItemDragStartEvent,
25
- TreeViewItemDragOverEvent,
26
- TreeViewItemDragEndEvent
27
- }
28
- }
29
-
30
- export { FieldsService }
31
-
32
- /**
33
- * @hidden
34
- */
35
- export declare function getItemIdUponKeyboardNavigation(item: any, itemId: string, items: any[], keyCode: number, fieldsSvc: FieldsService): any;
36
-
37
- /**
38
- * A helper function which updates the check descriptor.
39
- *
40
- * @param event - The event that triggered the change.
41
- * @param check - The check descriptor that will be updated.
42
- * @param data - The TreeView items.
43
- * @param settings - The additional settings that configure the update of the check descriptor.
44
- * @param childrenField - The field that points to the dataItem sub items. Defaults to `items`.
45
- * The default behavior allows the selection of multiple items.
46
- * @returns - The updated copy of the input check descriptor.
47
- *
48
- * @example
49
- * ```jsx
50
- * const App = () => {
51
- * const [check, setCheck] = React.useState([]);
52
- * const [items] = React.useState(tree);
53
- *
54
- * const onCheckChange = (event) => {
55
- * setCheck(handleTreeViewCheckChange(event, check, items));
56
- * }
57
- *
58
- * return (
59
- * <div>
60
- * <TreeView
61
- * checkboxes={true} onCheckChange={onCheckChange}
62
- * data={processTreeViewItems(items, { check })}
63
- * />
64
- * <div style={{ marginTop: 5 }}>
65
- * <i>Press SPACE to check/uncheck the active item</i>
66
- * <div className="example-config">
67
- * Checked Indices: {check.join(",")}
68
- * </div>
69
- * </div>
70
- * </div>
71
- * );
72
- * }
73
- *
74
- * const tree = [ {
75
- * text: 'Furniture', expanded: true, items: [
76
- * { text: 'Tables & Chairs' }, { text: 'Sofas' }, { text: 'Occasional Furniture' } ]
77
- * }, {
78
- * text: 'Decor', expanded: true, items: [
79
- * { text: 'Bed Linen' }, { text: 'Curtains & Blinds' }, { text: 'Carpets' } ]
80
- * } ];
81
- * ```
82
- */
83
- export declare function handleTreeViewCheckChange(event: TreeViewExpandChangeEvent, check: string[] | TreeViewCheckDescriptor, data?: any[] | null, settings?: TreeViewCheckChangeSettings, childrenField?: string): any[] | (TreeViewCheckDescriptor & {
84
- ids: any[];
85
- });
86
-
87
- /**
88
- * The props of the ItemRender component ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/custom-rendering)).
89
- */
90
- export declare interface ItemRenderProps {
91
- /**
92
- * The item that is rendered.
93
- */
94
- item: any;
95
- /**
96
- * The hierarchical index of the item. The indices are zero-based. The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
97
- */
98
- itemHierarchicalIndex: string;
99
- }
100
-
101
- /**
102
- * A helper function which moves a TreeView item in an immutable way.
103
- *
104
- * @param sourceItemHierarchicalIndex - The hierarchical index of the item that will be moved.
105
- * @param sourceData - The tree which contains the item that will be moved.
106
- * @param operation - The specific move operation.
107
- *
108
- * The available options are:
109
- * * `before`&mdash;Indicates that the source item will become the previous sibling of the target item.
110
- * * `after`&mdash;Indicates that the source item will become the next sibling of the target item.
111
- * * `child`&mdash;Indicates that the source item will become a child of the target item.
112
- * @param targetItemHierarchicalIndex - The hierarchical index of the item next to which the source item will be moved.
113
- * @param targetData - The tree which contains the target item.
114
- * If the argument is skipped, then the move operation will be executed within the same tree.
115
- * Setting the `sourceData` and `targetData` arguments to the same tree is also supported.
116
- * @param childrenField - The field that points to the dataItem sub items. Defaults to `items`.
117
- * @returns - The updated copies of the `sourceData` and `targetData` input arguments.
118
- * If `targetData` is not passed, then only the updated copy of the `sourceData` will be returned.
119
- *
120
- * @example
121
- * ```jsx
122
- * const App = () => {
123
- * const dragClueRef = React.useRef(null);
124
- * const [tree, setTree] = React.useState([{
125
- * text: 'Furniture', expanded: true, items: [
126
- * { text: 'Tables & Chairs', expanded: true },
127
- * { text: 'Sofas', expanded: true },
128
- * { text: 'Occasional Furniture', expanded: true }]
129
- * }, {
130
- * text: 'Decor', expanded: true, items: [
131
- * { text: 'Bed Linen', expanded: true },
132
- * { text: 'Curtains & Blinds', expanded: true },
133
- * { text: 'Carpets', expanded: true }]
134
- * }]);
135
- *
136
- * const SEPARATOR = '_';
137
- *
138
- * const getSiblings = (itemIndex, data) => {
139
- * let result = data;
140
- * const indices = itemIndex.split(SEPARATOR).map(index => Number(index));
141
- * for (let i = 0; i < indices.length - 1; i++) {
142
- * result = result[indices[i]].items;
143
- * }
144
- * return result;
145
- * };
146
- *
147
- * const getClueClassName = (event) => {
148
- * const eventAnalyzer = new TreeViewDragAnalyzer(event).init();
149
- * const itemIndex = eventAnalyzer.destinationMeta.itemHierarchicalIndex;
150
- *
151
- * if (eventAnalyzer.isDropAllowed) {
152
- * switch (eventAnalyzer.getDropOperation()) {
153
- * case 'child':
154
- * return 'k-i-plus';
155
- * case 'before':
156
- * return itemIndex === '0' || itemIndex.endsWith(`${SEPARATOR}0`) ?
157
- * 'k-i-insert-up' : 'k-i-insert-middle';
158
- * case 'after':
159
- * const siblings = getSiblings(itemIndex, tree);
160
- * const lastIndex = Number(itemIndex.split(SEPARATOR).pop());
161
- *
162
- * return lastIndex < siblings.length - 1 ? 'k-i-insert-middle' : 'k-i-insert-down';
163
- * default:
164
- * break;
165
- * }
166
- * }
167
- *
168
- * return 'k-i-cancel';
169
- * };
170
- *
171
- * const onItemDragOver = (event) => {
172
- * dragClueRef.current.show(event.pageY + 10, event.pageX, event.item.text, getClueClassName(event));
173
- * };
174
- *
175
- * const onItemDragEnd = (event) => {
176
- * dragClueRef.current.hide();
177
- * const eventAnalyzer = new TreeViewDragAnalyzer(event).init();
178
- *
179
- * if (eventAnalyzer.isDropAllowed) {
180
- * const updatedTree = moveTreeViewItem(
181
- * event.itemHierarchicalIndex,
182
- * tree,
183
- * eventAnalyzer.getDropOperation(),
184
- * eventAnalyzer.destinationMeta.itemHierarchicalIndex,
185
- * );
186
- *
187
- * setTree(updatedTree);
188
- * }
189
- * };
190
- *
191
- * return (
192
- * <div>
193
- * <TreeView data={tree} draggable={true}
194
- * onItemDragOver={onItemDragOver} onItemDragEnd={onItemDragEnd} />
195
- * <TreeViewDragClue ref={dragClueRef} />
196
- * </div>
197
- * );
198
- * }
199
- * ```
200
- */
201
- export declare function moveTreeViewItem(sourceItemHierarchicalIndex: string, sourceData: any[] | null | undefined, operation: 'before' | 'after' | 'child', targetItemHierarchicalIndex: string, targetData?: any[] | null, childrenField?: string): any[] | {
202
- sourceData: any[] | null | undefined;
203
- targetData: any[];
204
- } | null | undefined;
205
-
206
- /**
207
- * A helper function which applies the specified operation descriptors to the data.
208
- * * [Expanding and collapsing items](https://www.telerik.com/kendo-react-ui/components/treeview/expansion/update-expanded-items#toc-using-a-helper-function)
209
- * * [Selecting and deselecting items](https://www.telerik.com/kendo-react-ui/components/treeview/selection/update-selected-items#toc-using-a-helper-function)
210
- * * [Checking and unchecking items](https://www.telerik.com/kendo-react-ui/components/treeview/checkboxes/helper-functions)
211
- *
212
- * @param data - The data that will be processed.
213
- * @param operations - The operation descriptors that will be applied to the data.
214
- * @returns - The processed copy of the input data.
215
- *
216
- * @example
217
- * ```jsx
218
- * const App = () => {
219
- * const [items] = React.useState(tree);
220
- * const [expand, setExpand] = React.useState([]);
221
- * const [select, setSelect] = React.useState([]);
222
- * const [check, setCheck] = React.useState([]);
223
- *
224
- * const onExpandChange = (event) => {
225
- * let newExpand = expand.slice();
226
- * const index = newExpand.indexOf(event.itemHierarchicalIndex);
227
- * index === -1 ? newExpand.push(event.itemHierarchicalIndex) : newExpand.splice(index, 1);
228
- * setExpand(newExpand);
229
- * }
230
- *
231
- * return (
232
- * <TreeView
233
- * data={processTreeViewItems(items, { expand, select, check })}
234
- * expandIcons={true} onExpandChange={onExpandChange} checkboxes={true}
235
- * onCheckChange={event => setCheck([ event.itemHierarchicalIndex ])}
236
- * onItemClick={event => setSelect([ event.itemHierarchicalIndex ])}
237
- * />
238
- * );
239
- * }
240
- *
241
- * const tree = [{
242
- * text: 'Item1',
243
- * items: [
244
- * { text: 'Item1.1' },
245
- * { text: 'Item1.2' },
246
- * { text: 'Item1.3', items: [{ text: 'Item1.3.1' }] }]
247
- * }, {
248
- * text: 'Item2', disabled: true,
249
- * items: [{ text: 'Item2.1' }, { text: 'Item2.2' }, { text: 'Item2.3' }]
250
- * }, {
251
- * text: 'Item3'
252
- * }];
253
- * ```
254
- */
255
- export declare function processTreeViewItems(data: any[] | null | undefined, operations: TreeViewOperationDescriptors): any[];
256
-
257
- /** @hidden */
258
- export declare const TreeView: ForwardRefExoticComponent<TreeViewProps & RefAttributes<any>>;
259
-
260
- /**
261
- * Represents the object of the `onCheckChange` event ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/checkboxes/helper-functions)).
262
- */
263
- export declare interface TreeViewCheckChangeEvent extends BaseEvent<TreeViewClassComponent> {
264
- /**
265
- * The item that is selected or deselected.
266
- */
267
- item: any;
268
- /**
269
- * The hierarchical index of the item. The indices are zero-based.
270
- * The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
271
- */
272
- itemHierarchicalIndex: string;
273
- }
274
-
275
- /**
276
- * The settings that configure the update of the check descriptor.
277
- */
278
- export declare interface TreeViewCheckChangeSettings {
279
- /**
280
- * Determines a selection of a single node at a time.
281
- */
282
- singleMode?: boolean;
283
- /**
284
- * Determines if the children checkboxes will be selected when the user selects the parent checkbox.
285
- */
286
- checkChildren?: boolean;
287
- /**
288
- * Determines if the parent checkbox will be selected when the user selects all its children checkboxes.
289
- */
290
- checkParents?: boolean;
291
- }
292
-
293
- /**
294
- * The descriptor which is used for checking.
295
- */
296
- export declare interface TreeViewCheckDescriptor extends TreeViewOperationDescriptor {
297
- /**
298
- * Determines if a parent item will have an indeterminate state when not all its children are checked.
299
- */
300
- applyCheckIndeterminate?: boolean;
301
- /**
302
- * The name of the field which will provide a Boolean representation for the indeterminate state of a parent item.
303
- * Defaults to `checkIndeterminate`.
304
- */
305
- checkIndeterminateField?: string;
306
- }
307
-
308
- /**
309
- * Represents the [KendoReact TreeView component](https://www.telerik.com/kendo-react-ui/components/treeview).
310
- *
311
- * @example
312
- * ```jsx
313
- * const data = [{
314
- * text: 'Furniture', expanded: true, items: [
315
- * { text: 'Tables & Chairs' }, { text: 'Sofas' }, { text: 'Occasional Furniture' }]
316
- * }, {
317
- * text: 'Decor', expanded: true, items: [
318
- * { text: 'Bed Linen' }, { text: 'Curtains & Blinds' }, { text: 'Carpets' }]
319
- * }];
320
- * const App = () => {
321
- * return <TreeView data={data} />;
322
- * }
323
- * ```
324
- */
325
- export declare class TreeViewClassComponent extends React_2.Component<TreeViewProps, TreeViewState> {
326
- /**
327
- * @hidden
328
- */
329
- static propTypes: {
330
- data: default_2.Requireable<any[]>;
331
- animate: default_2.Requireable<boolean>;
332
- tabIndex: default_2.Requireable<number>;
333
- focusIdField: default_2.Requireable<string>;
334
- getHierarchicalIndexById: default_2.Requireable<(...args: any[]) => any>;
335
- onExpandChange: default_2.Requireable<(...args: any[]) => any>;
336
- onItemClick: default_2.Requireable<(...args: any[]) => any>;
337
- expandField: default_2.Requireable<string>;
338
- selectField: default_2.Requireable<string>;
339
- iconField: default_2.Requireable<string>;
340
- childrenField: default_2.Requireable<string>;
341
- hasChildrenField: default_2.Requireable<string>;
342
- textField: default_2.Requireable<string>;
343
- disableField: default_2.Requireable<string>;
344
- item: default_2.Requireable<any>;
345
- 'aria-multiselectable': (props: any, propName: string, componentName: string) => Error | null;
346
- 'aria-label': default_2.Requireable<string>;
347
- 'aria-labelledby': default_2.Requireable<string>;
348
- size: default_2.Requireable<"small" | "medium" | "large" | null | undefined>;
349
- dir: default_2.Requireable<string>;
350
- };
351
- /**
352
- * @hidden
353
- */
354
- static defaultProps: {
355
- animate: boolean;
356
- expandField: string;
357
- selectField: string;
358
- iconField: string;
359
- hasChildrenField: string;
360
- childrenField: string;
361
- textField: string;
362
- disableField: string;
363
- checkField: string;
364
- checkIndeterminateField: string;
365
- size: "small" | "medium" | "large" | null | undefined;
366
- };
367
- /**
368
- * @hidden
369
- */
370
- state: {
371
- focusedItemId: undefined;
372
- focusedItemPublicId: undefined;
373
- tabbableItemId: string;
374
- };
375
- private blurRequest;
376
- private fieldsSvc;
377
- private allowExplicitFocus;
378
- private readonly showLicenseWatermark;
379
- private readonly licenseMessage?;
380
- private get treeGuid();
381
- private _element;
382
- /**
383
- * @hidden
384
- */
385
- get element(): HTMLDivElement | null;
386
- constructor(props: TreeViewProps);
387
- /**
388
- * @hidden
389
- */
390
- render(): JSX.Element;
391
- /**
392
- * @hidden
393
- */
394
- componentDidUpdate(): void;
395
- private onFocusDomElNeeded;
396
- private onCheckChange;
397
- private onExpandChange;
398
- private onPress;
399
- private onDrag;
400
- private onRelease;
401
- private onItemClick;
402
- private onFocus;
403
- private onBlur;
404
- private onKeyDown;
405
- private dispatchEventsOnKeyDown;
406
- private setFocus;
407
- private onContextMenu;
408
- private getFocusedItem;
409
- private getItemById;
410
- private dispatchCheckChange;
411
- private dispatchExpandChange;
412
- private dispatchItemClick;
413
- private refocusDueToFocusIdField;
414
- private get ariaMultiSelectable();
415
- private get data();
416
- private focusDomItem;
417
- /**
418
- * Returns the `guid` which is associated with the TreeView.
419
- */
420
- get guid(): string;
421
- }
422
-
423
- /**
424
- * Represents the object of the `onContextMenu` event ([see example](https://www.telerik.com/kendo-react-ui/components/treeview)).
425
- */
426
- export declare interface TreeViewContextMenuEvent extends BaseEvent<TreeViewClassComponent> {
427
- /**
428
- * An event target.
429
- */
430
- target: TreeViewClassComponent;
431
- /**
432
- * The data object that represents the current item.
433
- */
434
- item: any;
435
- /**
436
- * The ID of the current item.
437
- */
438
- itemID: string;
439
- /**
440
- * A React Synthetic Event.
441
- */
442
- syntheticEvent: React.MouseEvent<any>;
443
- }
444
-
445
- /**
446
- * A class which provides an API for analyzing the `drag` events
447
- * of the TreeView.
448
- *
449
- * @example
450
- * ```jsx
451
- * const App = () => {
452
- * const dragClueRef = React.useRef(null);
453
- * const [tree, setTree] = React.useState([{
454
- * text: 'Furniture', expanded: true, items: [
455
- * { text: 'Tables & Chairs', expanded: true },
456
- * { text: 'Sofas', expanded: true },
457
- * { text: 'Occasional Furniture', expanded: true }]
458
- * }, {
459
- * text: 'Decor', expanded: true, items: [
460
- * { text: 'Bed Linen', expanded: true },
461
- * { text: 'Curtains & Blinds', expanded: true },
462
- * { text: 'Carpets', expanded: true }]
463
- * }]);
464
- *
465
- * const SEPARATOR = '_';
466
- *
467
- * const getSiblings = (itemIndex, data) => {
468
- * let result = data;
469
- * const indices = itemIndex.split(SEPARATOR).map(index => Number(index));
470
- * for (let i = 0; i < indices.length - 1; i++) {
471
- * result = result[indices[i]].items;
472
- * }
473
- * return result;
474
- * };
475
- *
476
- * const getClueClassName = (event) => {
477
- * const eventAnalyzer = new TreeViewDragAnalyzer(event).init();
478
- * const itemIndex = eventAnalyzer.destinationMeta.itemHierarchicalIndex;
479
- *
480
- * if (eventAnalyzer.isDropAllowed) {
481
- * switch (eventAnalyzer.getDropOperation()) {
482
- * case 'child':
483
- * return 'k-i-plus';
484
- * case 'before':
485
- * return itemIndex === '0' || itemIndex.endsWith(`${SEPARATOR}0`) ?
486
- * 'k-i-insert-up' : 'k-i-insert-middle';
487
- * case 'after':
488
- * const siblings = getSiblings(itemIndex, tree);
489
- * const lastIndex = Number(itemIndex.split(SEPARATOR).pop());
490
- *
491
- * return lastIndex < siblings.length - 1 ? 'k-i-insert-middle' : 'k-i-insert-down';
492
- * default:
493
- * break;
494
- * }
495
- * }
496
- *
497
- * return 'k-i-cancel';
498
- * };
499
- *
500
- * const onItemDragOver = (event) => {
501
- * dragClueRef.current.show(event.pageY + 10, event.pageX, event.item.text, getClueClassName(event));
502
- * };
503
- *
504
- * const onItemDragEnd = (event) => {
505
- * dragClueRef.current.hide();
506
- * const eventAnalyzer = new TreeViewDragAnalyzer(event).init();
507
- *
508
- * if (eventAnalyzer.isDropAllowed) {
509
- * const updatedTree = moveTreeViewItem(
510
- * event.itemHierarchicalIndex,
511
- * tree,
512
- * eventAnalyzer.getDropOperation(),
513
- * eventAnalyzer.destinationMeta.itemHierarchicalIndex,
514
- * );
515
- *
516
- * setTree(updatedTree);
517
- * }
518
- * };
519
- *
520
- * return (
521
- * <div>
522
- * <TreeView data={tree} draggable={true}
523
- * onItemDragOver={onItemDragOver} onItemDragEnd={onItemDragEnd} />
524
- * <TreeViewDragClue ref={dragClueRef} />
525
- * </div>
526
- * );
527
- * }
528
- * ```
529
- */
530
- export declare class TreeViewDragAnalyzer {
531
- private event;
532
- private itemId;
533
- private treeViewGuid;
534
- private initialized;
535
- private destDomNodeWithMeta;
536
- private destItemId;
537
- private destTreeViewGuid;
538
- /**
539
- * @param event - The event that will be analyzed.
540
- */
541
- constructor(event: TreeViewItemDragOverEvent | TreeViewItemDragEndEvent);
542
- /**
543
- * The method which initializes the analyzer.
544
- * Invoke the method before you call any other methods.
545
- *
546
- * @returns - The analyzer object of the `drag` event.
547
- */
548
- init(): this;
549
- /**
550
- * Returns `true` if dropping is allowed. Otherwise, returns `false`.
551
- */
552
- get isDropAllowed(): boolean;
553
- /**
554
- * Returns an object which contains:
555
- * * The `itemHierarchicalIndex` of the destination item (the item below the dragged item) and
556
- * * The `guid` of the destination TreeView (the TreeView which renders the destination item).
557
- */
558
- get destinationMeta(): {
559
- itemHierarchicalIndex: string;
560
- treeViewGuid: string;
561
- };
562
- /**
563
- * Returns the specific drop operation.
564
- *
565
- * @returns - The following values are returned:
566
- * * `before`&mdash;Indicates that the dragged item is positioned at the beginning of the destination item.
567
- * * `after`&mdash;Indicates that the dragged item is positioned at the end of the destination item.
568
- * * `child`&mdash;Indicates that the dragged item is positioned in the middle of the destination item.
569
- * * `undefined`&mdash;Indicates that dropping is not allowed.
570
- */
571
- getDropOperation(): "child" | "after" | "before" | undefined;
572
- private setDestimationMeta;
573
- }
574
-
575
- /**
576
- * Represents the KendoReact TreeViewDragClue component which renders a clue when an item is dragged.
577
- *
578
- * @example
579
- * ```jsx
580
- * const App = () => {
581
- * const dragClueRef = React.useRef(null);
582
- * const [tree, setTree] = React.useState([{
583
- * text: 'Furniture', expanded: true, items: [
584
- * { text: 'Tables & Chairs', expanded: true },
585
- * { text: 'Sofas', expanded: true },
586
- * { text: 'Occasional Furniture', expanded: true }]
587
- * }, {
588
- * text: 'Decor', expanded: true, items: [
589
- * { text: 'Bed Linen', expanded: true },
590
- * { text: 'Curtains & Blinds', expanded: true },
591
- * { text: 'Carpets', expanded: true }]
592
- * }]);
593
- *
594
- * const SEPARATOR = '_';
595
- *
596
- * const getSiblings = (itemIndex, data) => {
597
- * let result = data;
598
- * const indices = itemIndex.split(SEPARATOR).map(index => Number(index));
599
- * for (let i = 0; i < indices.length - 1; i++) {
600
- * result = result[indices[i]].items;
601
- * }
602
- * return result;
603
- * };
604
- *
605
- * const getClueClassName = (event) => {
606
- * const eventAnalyzer = new TreeViewDragAnalyzer(event).init();
607
- * const itemIndex = eventAnalyzer.destinationMeta.itemHierarchicalIndex;
608
- *
609
- * if (eventAnalyzer.isDropAllowed) {
610
- * switch (eventAnalyzer.getDropOperation()) {
611
- * case 'child':
612
- * return 'k-i-plus';
613
- * case 'before':
614
- * return itemIndex === '0' || itemIndex.endsWith(`${SEPARATOR}0`) ?
615
- * 'k-i-insert-up' : 'k-i-insert-middle';
616
- * case 'after':
617
- * const siblings = getSiblings(itemIndex, tree);
618
- * const lastIndex = Number(itemIndex.split(SEPARATOR).pop());
619
- *
620
- * return lastIndex < siblings.length - 1 ? 'k-i-insert-middle' : 'k-i-insert-down';
621
- * default:
622
- * break;
623
- * }
624
- * }
625
- *
626
- * return 'k-i-cancel';
627
- * };
628
- *
629
- * const onItemDragOver = (event) => {
630
- * dragClueRef.current.show(event.pageY + 10, event.pageX, event.item.text, getClueClassName(event));
631
- * };
632
- *
633
- * const onItemDragEnd = (event) => {
634
- * dragClueRef.current.hide();
635
- * const eventAnalyzer = new TreeViewDragAnalyzer(event).init();
636
- *
637
- * if (eventAnalyzer.isDropAllowed) {
638
- * const updatedTree = moveTreeViewItem(
639
- * event.itemHierarchicalIndex,
640
- * tree,
641
- * eventAnalyzer.getDropOperation(),
642
- * eventAnalyzer.destinationMeta.itemHierarchicalIndex,
643
- * );
644
- *
645
- * setTree(updatedTree);
646
- * }
647
- * };
648
- *
649
- * return (
650
- * <div>
651
- * <TreeView data={tree} draggable={true}
652
- * onItemDragOver={onItemDragOver} onItemDragEnd={onItemDragEnd} />
653
- * <TreeViewDragClue ref={dragClueRef} />
654
- * </div>
655
- * );
656
- * }
657
- * ```
658
- */
659
- export declare class TreeViewDragClue extends React_2.PureComponent<TreeViewDragClueProps, TreeViewDragClueState> {
660
- /**
661
- * @hidden
662
- */
663
- static defaultProps: {
664
- style: {
665
- display: string;
666
- position: string;
667
- zIndex: number;
668
- padding: string;
669
- };
670
- };
671
- /**
672
- * @hidden
673
- */
674
- readonly state: TreeViewDragClueState;
675
- /**
676
- * @hidden
677
- */
678
- render(): false | JSX.Element | undefined;
679
- /**
680
- * Displays the TreeViewDragClue component.
681
- *
682
- * @param top - The `top` CSS position of the component.
683
- * @param left - The `left` CSS position of the component.
684
- * @param text - The text of the component.
685
- * @param operationClassName - The CSS class name which is related to the specific drop operation.
686
- */
687
- show(top: number, left: number, text: string, operationClassName: string): void;
688
- /**
689
- * Hides the TreeViewDragClue component.
690
- */
691
- hide(): void;
692
- }
693
-
694
- /**
695
- * Represents the props of the KendoReact TreeViewDragClue component.
696
- */
697
- declare interface TreeViewDragClueProps {
698
- /**
699
- * Sets custom CSS styles to the component.
700
- * When specified, the default CSS styles are removed.
701
- */
702
- style?: React_2.CSSProperties;
703
- }
704
-
705
- /**
706
- * @hidden
707
- */
708
- declare interface TreeViewDragClueState {
709
- visible?: boolean;
710
- top?: number;
711
- left?: number;
712
- text?: string;
713
- operationClassName?: string;
714
- }
715
-
716
- /**
717
- * Represents the object of the `onExpandChange` event ([see example](https://www.telerik.com/kendo-react-ui/components/treeview)).
718
- */
719
- export declare interface TreeViewExpandChangeEvent extends BaseEvent<TreeViewClassComponent> {
720
- /**
721
- * The item that is expanded or collapsed.
722
- */
723
- item: any;
724
- /**
725
- * The hierarchical index of the item. The indices are zero-based. The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
726
- */
727
- itemHierarchicalIndex: string;
728
- }
729
-
730
- /**
731
- * Represent the `ref` of the TreeView component.
732
- */
733
- export declare interface TreeViewHandle extends Pick<TreeViewClassComponent, keyof TreeViewClassComponent> {
734
- }
735
-
736
- /**
737
- * Represents the object of the `onItemClick` event ([see example](https://www.telerik.com/kendo-react-ui/components/treeview)).
738
- */
739
- export declare interface TreeViewItemClickEvent extends BaseEvent<TreeViewClassComponent> {
740
- /**
741
- * The item that is clicked.
742
- */
743
- item: any;
744
- /**
745
- * The hierarchical index of the item. The indices are zero-based.
746
- * The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
747
- */
748
- itemHierarchicalIndex: string;
749
- }
750
-
751
- /**
752
- * Represents the object of the `onItemDragEnd` event ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/drag-drop)).
753
- */
754
- export declare interface TreeViewItemDragEndEvent {
755
- /**
756
- * The target that is associated with the dragged item.
757
- */
758
- target: TreeViewClassComponent;
759
- /**
760
- * The item that is dragged.
761
- */
762
- item: any;
763
- /**
764
- * The hierarchical index of the dragged item. The indices are zero-based.
765
- * The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
766
- */
767
- itemHierarchicalIndex: string;
768
- /**
769
- * The X (horizontal) coordinate (in pixels) at which the event occured that is relative to the left edge of the entire document.
770
- * `pageX` includes any portion of the document that is not currently visible.
771
- */
772
- pageX: number;
773
- /**
774
- * The Y (vertical) coordinate (in pixels) at which the event occured that is relative to the whole document.
775
- * `pageY` observes any vertical scrolling of the page.
776
- */
777
- pageY: number;
778
- /**
779
- * Provides the horizontal coordinate within the client area of the application at which the event occurred
780
- * (as opposed to the coordinate within the page).
781
- */
782
- clientX: number;
783
- /**
784
- * Provides the vertical coordinate within the client area of the application at which the event occurred
785
- * (as opposed to the coordinate within the page).
786
- */
787
- clientY: number;
788
- }
789
-
790
- /**
791
- * Represents the object of the `onItemDragOver` event ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/drag-drop)).
792
- */
793
- export declare interface TreeViewItemDragOverEvent {
794
- /**
795
- * The target that is associated with the dragged item.
796
- */
797
- target: TreeViewClassComponent;
798
- /**
799
- * The item that is dragged.
800
- */
801
- item: any;
802
- /**
803
- * The hierarchical index of the dragged item. The indices are zero-based.
804
- * The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
805
- */
806
- itemHierarchicalIndex: string;
807
- /**
808
- * The X (horizontal) coordinate (in pixels) at which the event occurred that is relative to the left edge of the entire document.
809
- * Includes any portion of the document which is not currently visible.
810
- */
811
- pageX: number;
812
- /**
813
- * The Y (vertical) coordinate (in pixels) at which the event occurred that is relative to the whole document.
814
- * `pageY` observes any vertical scrolling of the page.
815
- */
816
- pageY: number;
817
- /**
818
- * Provides the horizontal coordinate within the client area of the application at which the event occurred
819
- * (as opposed to the coordinate within the page).
820
- */
821
- clientX: number;
822
- /**
823
- * Provides the vertical coordinate within the client area of the application at which the event occurred
824
- * (as opposed to the coordinate within the page).
825
- */
826
- clientY: number;
827
- }
828
-
829
- /**
830
- * Represents the object of the `onItemDragStart` event.
831
- */
832
- export declare interface TreeViewItemDragStartEvent {
833
- /**
834
- * An event target.
835
- */
836
- target: TreeViewClassComponent;
837
- /**
838
- * The item that is dragged.
839
- */
840
- item: any;
841
- /**
842
- * The hierarchical index of the dragged item. The indices are zero-based.
843
- * The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
844
- */
845
- itemHierarchicalIndex: string;
846
- }
847
-
848
- /**
849
- * @hidden
850
- */
851
- declare interface TreeViewItemProps {
852
- item: any;
853
- itemId: string;
854
- treeGuid: string;
855
- animate: boolean;
856
- focusedItemId?: string;
857
- tabbableItemId: string;
858
- fieldsService: FieldsService;
859
- itemUI?: React_2.ComponentType<{
860
- item: any;
861
- itemHierarchicalIndex: string;
862
- }>;
863
- ariaMultiSelectable: boolean;
864
- onItemClick: any;
865
- expandIcons?: boolean;
866
- iconField?: string;
867
- onExpandChange: any;
868
- onCheckChange: any;
869
- checkboxes?: boolean;
870
- onFocusDomElNeeded: any;
871
- draggable?: boolean;
872
- onPress: any;
873
- onDrag: any;
874
- onRelease: any;
875
- size?: null | 'small' | 'medium' | 'large';
876
- /**
877
- * @hidden
878
- *
879
- * Internal usage!!!
880
- */
881
- position?: 'top' | 'mid' | 'bot';
882
- /**
883
- * Currently for internal usage only! Replicates the current behavior which disables all children
884
- * if the parent is disabled, which was previously achieved only though the kendo-themes,
885
- * but due to rendering changes had to be replicated programmatically!
886
- *
887
- * @hidden
888
- */
889
- disabled?: boolean;
890
- /**
891
- * @hidden
892
- */
893
- isRtl?: boolean;
894
- /**
895
- * @hidden
896
- */
897
- onContextMenu: (event: React_2.MouseEvent<HTMLElement>, item: any, itemId: string) => void;
898
- /**
899
- * @hidden
900
- * This prop comes from the `TreeView`component.
901
- * It replaces the previously used guid() function and is used to generate unique `id` for
902
- * the checkbox and label in the TreeViewItem.
903
- */
904
- id?: string;
905
- }
906
-
907
- /**
908
- * @hidden
909
- */
910
- export declare const TreeViewItemPropsContext: React_2.Context<(props: TreeViewItemProps) => TreeViewItemProps>;
911
-
912
- /**
913
- * The descriptor which is used for expanding, selecting, and checking.
914
- */
915
- export declare interface TreeViewOperationDescriptor {
916
- /**
917
- * The IDs of the items to which the operation will be applied. By default, the TreeView applies the hierarchical indices of the items. These indices are zero-based. The first root item has a `0` (zero) index. If the first root item has children, the first child acquires a `0_0` index and the second acquires a `0_1` index.
918
- */
919
- ids?: any[];
920
- /**
921
- * The name of the field which will provide a Boolean representation for the operation state of the item.
922
- *
923
- * The default fields are:
924
- * * `expanded`&mdash;Indicates that an item is expanded.
925
- * * `selected`&mdash;Indicates that an item is selected.
926
- * * `checked`&mdash;Indicates that an item is checked.
927
- */
928
- operationField?: string;
929
- /**
930
- * The name of the field which will uniquely describe an item as an alternative to its hierarchical index.
931
- */
932
- idField?: string;
933
- }
934
-
935
- /**
936
- * The descriptors of the data operations which are applied to the TreeView component.
937
- */
938
- export declare interface TreeViewOperationDescriptors {
939
- /**
940
- * The hierarchical indices of the items to which the expand operation will be applied, or the descriptor of the operation.
941
- */
942
- expand?: string[] | TreeViewOperationDescriptor;
943
- /**
944
- * The hierarchical indices of the items to which the select operation will be applied, or the descriptor of the operation.
945
- */
946
- select?: string[] | TreeViewOperationDescriptor;
947
- /**
948
- * The hierarchical indices of the items to which the check operation will be applied, or the descriptor of the operation.
949
- */
950
- check?: string[] | TreeViewCheckDescriptor;
951
- /**
952
- * When the operations are applied, the corresponding items and their parents are cloned.
953
- * For performance reasons, TreeView items are cloned only once.
954
- * The name of the field which provides a Boolean representation of whether an item is already cloned.
955
- * Defaults to `cloned`.
956
- */
957
- cloneField?: string;
958
- /**
959
- * The expand field of the item.
960
- */
961
- expandField?: string;
962
- /**
963
- * The select field of the item.
964
- */
965
- selectField?: string;
966
- /**
967
- * The check field of the item.
968
- */
969
- checkField?: string;
970
- /**
971
- * The children field of the item.
972
- */
973
- childrenField?: string;
974
- }
975
-
976
- /**
977
- * Represents the props of the [KendoReact TreeView component](https://www.telerik.com/kendo-react-ui/components/treeview).
978
- */
979
- export declare interface TreeViewProps {
980
- /**
981
- * Adds a custom CSS class to the TreeView container element.
982
- *
983
- * Example:
984
- * ```jsx
985
- * <TreeView className="custom-treeview-class" />
986
- * ```
987
- */
988
- className?: string;
989
- /**
990
- * Specifies the `id` attribute of the TreeView container element.
991
- *
992
- * Example:
993
- * ```jsx
994
- * <TreeView id="treeview-component" />
995
- * ```
996
- */
997
- id?: string;
998
- /**
999
- * Sets the inline styles for the TreeView container element.
1000
- *
1001
- * Example:
1002
- * ```jsx
1003
- * <TreeView style={{ width: '300px', height: '400px' }} />
1004
- * ```
1005
- */
1006
- style?: CSSProperties;
1007
- /**
1008
- * Provides the hierarchical data to be displayed in the TreeView.
1009
- *
1010
- * Example:
1011
- * ```jsx
1012
- * <TreeView data={[{ text: 'Item 1', items: [{ text: 'Sub-item 1' }] }]} />
1013
- * ```
1014
- */
1015
- data?: any[] | null;
1016
- /**
1017
- * Enables or disables the expand and collapse animations.
1018
- *
1019
- * @default true
1020
- *
1021
- * @example
1022
- * ```jsx
1023
- * <TreeView animate={false} />
1024
- * ```
1025
- */
1026
- animate?: boolean;
1027
- /**
1028
- * Specifies the `tabIndex` attribute of the TreeView container element.
1029
- *
1030
- * Example:
1031
- * ```jsx
1032
- * <TreeView tabIndex={0} />
1033
- * ```
1034
- */
1035
- tabIndex?: number;
1036
- /**
1037
- * The TreeView has a built-in implementation of focusing and keyboard navigation. By default, the component uses
1038
- * hierarchical indices to uniquely match the focused item. You can use the `focusIdField` prop for specifying the
1039
- * name of the field which will uniquely describe an
1040
- * item as an alternative to its hierarchical index ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/data-reload#toc-using-item-ids)).
1041
- *
1042
- * Example:
1043
- * ```jsx
1044
- * <TreeView focusIdField="id" />
1045
- * ```
1046
- */
1047
- focusIdField?: string;
1048
- /**
1049
- * When `focusIdField` is set, the TreeView executes a depth-first search on the data to find the currently focused item.
1050
- * The `getFocusHierarchicalIndex` prop specifies the function that will be used as an alternative to the default search algorithm.
1051
- *
1052
- * Example:
1053
- * ```jsx
1054
- * <TreeView getFocusHierarchicalIndex={(id) => `custom-index-${id}`} />
1055
- * ```
1056
- */
1057
- getFocusHierarchicalIndex?: (itemId: any) => string | undefined;
1058
- /**
1059
- * Controls the rendering of the expand (collapse) icons. By default, the icons are not rendered ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/expansion/update-expanded-items)).
1060
- *
1061
- * Example:
1062
- * ```jsx
1063
- * <TreeView expandIcons={true} />
1064
- * ```
1065
- */
1066
- expandIcons?: boolean;
1067
- /**
1068
- * Triggered when an item is expanded or collapsed.
1069
- *
1070
- * Example:
1071
- * ```jsx
1072
- * <TreeView onExpandChange={(event) => console.log(event.item)} />
1073
- * ```
1074
- */
1075
- onExpandChange?: (event: events.TreeViewExpandChangeEvent) => void;
1076
- /**
1077
- * Fires when an item is clicked or when `Enter` is pressed on a focused item ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/selection/update-selected-items)).
1078
- *
1079
- * Example:
1080
- * ```jsx
1081
- * <TreeView onItemClick={(event) => console.log(event.item)} />
1082
- * ```
1083
- */
1084
- onItemClick?: (event: events.TreeViewItemClickEvent) => void;
1085
- /**
1086
- * Specifies the name of the field which will provide a Boolean representation for the expanded state of the item.
1087
- *
1088
- * @default "expanded"
1089
- *
1090
- * @example
1091
- * ```jsx
1092
- * <TreeView expandField="isExpanded" />
1093
- * ```
1094
- */
1095
- expandField?: string;
1096
- /**
1097
- * Specifies the name of the field which will provide a Boolean representation for the selected state of the item.
1098
- *
1099
- * @default "selected"
1100
- *
1101
- * @example
1102
- * ```jsx
1103
- * <TreeView selectField="isSelected" />
1104
- * ```
1105
- */
1106
- selectField?: string;
1107
- /**
1108
- * Specifies the name of the field which will provide an icon for the specific TreeView item.
1109
- *
1110
- * @default "svgIcon"
1111
- *
1112
- * @example
1113
- * ```jsx
1114
- * <TreeView iconField="icon" />
1115
- * ```
1116
- */
1117
- iconField?: string;
1118
- /**
1119
- * Specifies the name of the field which indicates to the TreeView that an item has children even if the children are not initially passed. Used for implementing the load-on-demand feature ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/data-binding#toc-loading-data-on-demand)).
1120
- *
1121
- * @default "hasChildren"
1122
- *
1123
- * @example
1124
- * ```jsx
1125
- * <TreeView hasChildrenField="hasSubItems" />
1126
- * ```
1127
- */
1128
- hasChildrenField?: string;
1129
- /**
1130
- * Specifies the name of the field which will provide an array representation of the item children.
1131
- *
1132
- * @default "items"
1133
- *
1134
- * @example
1135
- * ```jsx
1136
- * <TreeView childrenField="subItems" />
1137
- * ```
1138
- */
1139
- childrenField?: string;
1140
- /**
1141
- * Specifies the name of the field which will provide a text representation for the item.
1142
- *
1143
- * @default "text"
1144
- *
1145
- * @example
1146
- * ```jsx
1147
- * <TreeView textField="label" />
1148
- * ```
1149
- */
1150
- textField?: string;
1151
- /**
1152
- * Specifies the name of the field which will provide a Boolean representation for the disabled state of the item.
1153
- *
1154
- * @default "disabled"
1155
- *
1156
- * @example
1157
- * ```jsx
1158
- * <TreeView disableField="isDisabled" />
1159
- * ```
1160
- */
1161
- disableField?: string;
1162
- /**
1163
- * Defines the component that will be used for rendering each of the TreeView items ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/custom-rendering)).
1164
- *
1165
- * Example:
1166
- * ```jsx
1167
- * <TreeView item={(props) => <CustomTreeViewItem {...props} />} />
1168
- * ```
1169
- */
1170
- item?: ComponentType<ItemRenderProps>;
1171
- /**
1172
- * Indicates that the user can select more than one TreeView items.
1173
- * If the TreeView is in a multiple selection mode, set the `aria-multiselectable`
1174
- * prop to `true` ([more on accessibility by the TreeView](https://www.telerik.com/kendo-react-ui/components/treeview/accessibility/wai-aria-support)).
1175
- *
1176
- * Example:
1177
- * ```jsx
1178
- * <TreeView aria-multiselectable={true} />
1179
- * ```
1180
- */
1181
- 'aria-multiselectable'?: boolean | 'false' | 'true';
1182
- /**
1183
- * Defines a string value that labels the TreeView ([more on accessibility by the TreeView](https://www.telerik.com/kendo-react-ui/components/treeview/accessibility/wai-aria-support)).
1184
- *
1185
- * Example:
1186
- * ```jsx
1187
- * <TreeView aria-label="TreeView Label" />
1188
- * ```
1189
- */
1190
- 'aria-label'?: string;
1191
- /**
1192
- * Identifies the element or elements which will label the TreeView ([more on accessibility by the TreeView](https://www.telerik.com/kendo-react-ui/components/treeview/accessibility/wai-aria-support)).
1193
- *
1194
- * Example:
1195
- * ```jsx
1196
- * <TreeView aria-labelledby="treeview-label" />
1197
- * ```
1198
- */
1199
- 'aria-labelledby'?: string;
1200
- /**
1201
- * Controls the rendering of checkboxes. By default, the checkboxes are not rendered.
1202
- *
1203
- * Example:
1204
- * ```jsx
1205
- * <TreeView checkboxes={true} />
1206
- * ```
1207
- */
1208
- checkboxes?: boolean;
1209
- /**
1210
- * Specifies the name of the field which will provide a Boolean representation for the checked state of the item.
1211
- *
1212
- * @default "checked"
1213
- *
1214
- * @example
1215
- * ```jsx
1216
- * <TreeView checkField="isChecked" />
1217
- * ```
1218
- */
1219
- checkField?: string;
1220
- /**
1221
- * Specifies the name of the field which will provide a Boolean representation for the check indeterminate state of the item.
1222
- *
1223
- * @default "checkIndeterminate"
1224
- *
1225
- * @example
1226
- * ```jsx
1227
- * <TreeView checkIndeterminateField="isPartiallyChecked" />
1228
- * ```
1229
- */
1230
- checkIndeterminateField?: string;
1231
- /**
1232
- * Fires when a checkbox is clicked or when `Space` is pressed on a focused item.
1233
- *
1234
- * Example:
1235
- * ```jsx
1236
- * <TreeView onCheckChange={(event) => console.log(event.item)} />
1237
- * ```
1238
- */
1239
- onCheckChange?: (event: events.TreeViewCheckChangeEvent) => void;
1240
- /**
1241
- * Controls the dispatching of the `drag` events. By default, the `drag` events are not dispatched ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/drag-drop)).
1242
- */
1243
- draggable?: boolean;
1244
- /**
1245
- * Fires when the dragging of an item has started.
1246
- *
1247
- * Example:
1248
- * ```jsx
1249
- * <TreeView onItemDragStart={(event) => console.log(event.item)} />
1250
- * ```
1251
- */
1252
- onItemDragStart?: (event: events.TreeViewItemDragStartEvent) => void;
1253
- /**
1254
- * Fires when a dragged item changes its position ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/drag-drop)).
1255
- *
1256
- * Example:
1257
- * ```jsx
1258
- * <TreeView onItemDragOver={(event) => console.log(event.item)} />
1259
- * ```
1260
- */
1261
- onItemDragOver?: (event: events.TreeViewItemDragOverEvent) => void;
1262
- /**
1263
- * Fires when a dragged item is dropped ([see example](https://www.telerik.com/kendo-react-ui/components/treeview/drag-drop)).
1264
- *
1265
- * Example:
1266
- * ```jsx
1267
- * <TreeView onItemDragEnd={(event) => console.log(event.item)} />
1268
- * ```
1269
- */
1270
- onItemDragEnd?: (event: events.TreeViewItemDragEndEvent) => void;
1271
- /**
1272
- * Configures the `size` of the TreeView.
1273
- *
1274
- * The available options are:
1275
- * - small
1276
- * - medium
1277
- * - large
1278
- * - null&mdash;Does not set a size `className`.
1279
- *
1280
- * @default "medium"
1281
- *
1282
- * @example
1283
- * ```jsx
1284
- * <TreeView size="large" />
1285
- * ```
1286
- */
1287
- size?: null | 'small' | 'medium' | 'large';
1288
- /**
1289
- * Sets the direction of the component.
1290
- *
1291
- * Example:
1292
- * ```jsx
1293
- * <TreeView dir="rtl" />
1294
- * ```
1295
- */
1296
- dir?: string;
1297
- /**
1298
- * The event that is fired when the ContextMenu is activated.
1299
- *
1300
- * Example:
1301
- * ```jsx
1302
- * <TreeView onContextMenu={(event) => console.log(event.item)} />
1303
- * ```
1304
- */
1305
- onContextMenu?: (event: TreeViewContextMenuEvent) => void;
1306
- }
1307
-
1308
- /**
1309
- * @hidden
1310
- */
1311
- declare interface TreeViewState {
1312
- focusedItemId?: string;
1313
- focusedItemPublicId?: any;
1314
- tabbableItemId?: string;
1315
- }
1316
-
1317
- export { }
8
+ import { TreeView as TreeViewClassComponent, TreeViewHandle } from './TreeView.js';
9
+ import { TreeViewItemClickEvent, TreeViewExpandChangeEvent, TreeViewCheckChangeEvent, TreeViewItemDragOverEvent, TreeViewItemDragStartEvent, TreeViewItemDragEndEvent, TreeViewContextMenuEvent } from './events.js';
10
+ import { processTreeViewItems } from './processTreeViewItems.js';
11
+ import { moveTreeViewItem } from './moveTreeViewItem.js';
12
+ import { handleTreeViewCheckChange, TreeViewCheckChangeSettings } from './handleTreeViewCheckChange.js';
13
+ import { TreeViewOperationDescriptor, TreeViewOperationDescriptors, TreeViewCheckDescriptor } from './TreeViewOperationDescriptors.js';
14
+ import { ItemRenderProps } from './ItemRenderProps.js';
15
+ import { TreeViewProps } from './TreeViewProps.js';
16
+ import { TreeViewDragClue } from './TreeViewDragClue.js';
17
+ import { TreeViewDragAnalyzer } from './TreeViewDragAnalyzer.js';
18
+ import { TreeViewItemPropsContext } from './TreeViewItem.js';
19
+ import { default as getItemIdUponKeyboardNavigation } from './utils/getItemIdUponKeyboardNavigation.js';
20
+ import { TreeFieldsService as FieldsService } from '@progress/kendo-react-common';
21
+ /** @hidden */
22
+ declare const TreeView: import('react').ForwardRefExoticComponent<TreeViewProps & import('react').RefAttributes<any>>;
23
+ export { TreeViewItemPropsContext, TreeViewClassComponent, TreeView, TreeViewHandle, processTreeViewItems, handleTreeViewCheckChange, TreeViewCheckChangeSettings, TreeViewItemClickEvent, TreeViewExpandChangeEvent, TreeViewCheckChangeEvent, TreeViewItemDragOverEvent, TreeViewItemDragStartEvent, TreeViewItemDragEndEvent, TreeViewContextMenuEvent, TreeViewOperationDescriptor, TreeViewOperationDescriptors, TreeViewCheckDescriptor, TreeViewProps, ItemRenderProps, TreeViewDragClue, moveTreeViewItem, TreeViewDragAnalyzer, getItemIdUponKeyboardNavigation, FieldsService };