@progress/kendo-angular-treeview 24.2.2-develop.9 → 25.0.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/fesm2022/progress-kendo-angular-treeview.mjs +114 -114
- package/index.d.ts +2149 -45
- package/package-metadata.mjs +2 -2
- package/package.json +11 -11
- package/schematics/ngAdd/index.js +4 -4
- package/check-mode.d.ts +0 -12
- package/check.directive.d.ts +0 -87
- package/checkable-settings.d.ts +0 -50
- package/checkbox/checked-state.d.ts +0 -8
- package/data-bound-component.d.ts +0 -65
- package/data-change-notification.service.d.ts +0 -12
- package/default-callbacks.d.ts +0 -38
- package/directives.d.ts +0 -37
- package/disable.directive.d.ts +0 -48
- package/drag-and-drop/drag-and-drop-editing.directive.d.ts +0 -47
- package/drag-and-drop/drag-and-drop-utils.d.ts +0 -77
- package/drag-and-drop/drag-and-drop.directive.d.ts +0 -129
- package/drag-and-drop/drag-clue/drag-clue-template.directive.d.ts +0 -33
- package/drag-and-drop/drag-clue/drag-clue.component.d.ts +0 -43
- package/drag-and-drop/drag-clue/drag-clue.service.d.ts +0 -44
- package/drag-and-drop/drop-hint/drop-hint-template.directive.d.ts +0 -32
- package/drag-and-drop/drop-hint/drop-hint.component.d.ts +0 -37
- package/drag-and-drop/drop-hint/drop-hint.service.d.ts +0 -20
- package/drag-and-drop/editing-services/drag-and-drop-asset.service.d.ts +0 -22
- package/drag-and-drop/editing-services/flat-editing.service.d.ts +0 -22
- package/drag-and-drop/editing-services/hierarchy-editing.service.d.ts +0 -19
- package/drag-and-drop/models/drop-action.d.ts +0 -31
- package/drag-and-drop/models/drop-position.d.ts +0 -21
- package/drag-and-drop/models/editing-service.d.ts +0 -21
- package/drag-and-drop/models/preventable-event.d.ts +0 -21
- package/drag-and-drop/models/scroll-direction.d.ts +0 -11
- package/drag-and-drop/models/scroll-settings.d.ts +0 -29
- package/drag-and-drop/models/tree-item-filter-state.d.ts +0 -41
- package/drag-and-drop/models/treeitem-add-remove-args.d.ts +0 -33
- package/drag-and-drop/models/treeitem-drag-event.d.ts +0 -25
- package/drag-and-drop/models/treeitem-drag-start-event.d.ts +0 -26
- package/drag-and-drop/models/treeitem-drop-event.d.ts +0 -52
- package/drag-and-drop/models.d.ts +0 -14
- package/expand-state.service.d.ts +0 -20
- package/expand.directive.d.ts +0 -92
- package/expandable-component.d.ts +0 -35
- package/filter-expand-settings.interface.d.ts +0 -35
- package/filter-state.interface.d.ts +0 -29
- package/filtering-base.d.ts +0 -39
- package/flat-binding.directive.d.ts +0 -74
- package/funcs.d.ts +0 -9
- package/hierarchy-binding.directive.d.ts +0 -70
- package/index-builder.service.d.ts +0 -17
- package/load-more/load-more-button-template.directive.d.ts +0 -30
- package/load-more/load-more-request-args.d.ts +0 -23
- package/load-more/load-more-utils.d.ts +0 -17
- package/load-more/load-more.directive.d.ts +0 -70
- package/load-more/load-more.service.d.ts +0 -36
- package/loading-indicator.directive.d.ts +0 -29
- package/loading-notification.service.d.ts +0 -15
- package/localization/custom-messages.component.d.ts +0 -28
- package/localization/localized-messages.directive.d.ts +0 -16
- package/localization/messages.d.ts +0 -17
- package/navigation/navigation-item.interface.d.ts +0 -16
- package/navigation/navigation-model.d.ts +0 -28
- package/navigation/navigation-state.interface.d.ts +0 -14
- package/navigation/navigation.service.d.ts +0 -68
- package/node-children.service.d.ts +0 -19
- package/node-click-event.interface.d.ts +0 -22
- package/node-template.directive.d.ts +0 -34
- package/package-metadata.d.ts +0 -9
- package/selection/select.directive.d.ts +0 -77
- package/selection/selectable-settings.d.ts +0 -20
- package/selection/selection-mode.d.ts +0 -12
- package/selection/selection.service.d.ts +0 -21
- package/size.d.ts +0 -8
- package/treeitem-lookup.interface.d.ts +0 -41
- package/treeitem.interface.d.ts +0 -19
- package/treeview-filter-settings.d.ts +0 -41
- package/treeview-group.component.d.ts +0 -130
- package/treeview-item-content-wrapper.directive.d.ts +0 -32
- package/treeview-item.directive.d.ts +0 -70
- package/treeview-lookup.service.d.ts +0 -25
- package/treeview.component.d.ts +0 -380
- package/treeview.module.d.ts +0 -43
- package/utils.d.ts +0 -138
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { AfterContentInit, ElementRef, NgZone, OnDestroy } from '@angular/core';
|
|
6
|
-
import { Draggable } from '@progress/kendo-draggable';
|
|
7
|
-
import { DragClueService } from './drag-clue/drag-clue.service';
|
|
8
|
-
import { DropHintService } from './drop-hint/drop-hint.service';
|
|
9
|
-
import { DragClueTemplateDirective } from './drag-clue/drag-clue-template.directive';
|
|
10
|
-
import { DropHintTemplateDirective } from './drop-hint/drop-hint-template.directive';
|
|
11
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
12
|
-
import { DragAndDropScrollSettings } from './models';
|
|
13
|
-
import * as i0 from "@angular/core";
|
|
14
|
-
/**
|
|
15
|
-
* Represents the directive that enables you to drag and drop items inside the current TreeView or between multiple linked TreeView component instances
|
|
16
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop)).
|
|
17
|
-
*
|
|
18
|
-
* Triggers the [`nodeDragStart`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedragstart),
|
|
19
|
-
* [`nodeDrag`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedrag),
|
|
20
|
-
* [`nodeDrop`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedrop),
|
|
21
|
-
* [`nodeDragEnd`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedragend),
|
|
22
|
-
* [`addItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#additem) and
|
|
23
|
-
* [`removeItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#removeitem)
|
|
24
|
-
* events when you perform the corresponding actions.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```html
|
|
28
|
-
* <kendo-treeview
|
|
29
|
-
* kendoTreeViewDragAndDrop
|
|
30
|
-
* [dropZoneTreeViews]="treeView"
|
|
31
|
-
* >
|
|
32
|
-
* </kendo-treeview>
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @remarks
|
|
36
|
-
* Applied to: {@link TreeViewComponent}
|
|
37
|
-
*/
|
|
38
|
-
export declare class DragAndDropDirective implements AfterContentInit, OnDestroy {
|
|
39
|
-
private element;
|
|
40
|
-
private zone;
|
|
41
|
-
private treeview;
|
|
42
|
-
private dragClueService;
|
|
43
|
-
private dropHintService;
|
|
44
|
-
/**
|
|
45
|
-
* Specifies whether the `removeItem` event fires after the user drops an item while pressing the `ctrl` key.
|
|
46
|
-
* If enabled, the `removeItem` event does not fire on the source TreeView
|
|
47
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#multiple-treeviews)).
|
|
48
|
-
*
|
|
49
|
-
* @default false
|
|
50
|
-
*/
|
|
51
|
-
allowCopy: boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Specifies the `TreeViewComponent` instances into which the user can drop dragged items from the current `TreeViewComponent`
|
|
54
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#multiple-treeviews)).
|
|
55
|
-
*/
|
|
56
|
-
dropZoneTreeViews: TreeViewComponent[];
|
|
57
|
-
/**
|
|
58
|
-
* Specifies the distance in pixels from the initial item `pointerdown` event before dragging starts.
|
|
59
|
-
* The `nodeDragStart` and all subsequent TreeView drag events do not fire until dragging begins.
|
|
60
|
-
*
|
|
61
|
-
* @default 5
|
|
62
|
-
*/
|
|
63
|
-
startDragAfter: number;
|
|
64
|
-
/**
|
|
65
|
-
* Controls the auto-scrolling behavior during drag-and-drop ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#auto-scrolling)).
|
|
66
|
-
* Enabled by default. To turn off auto-scrolling, set this property to `false`.
|
|
67
|
-
*
|
|
68
|
-
* By default, scrolling occurs by 1 pixel every 1 millisecond when the dragged item reaches the top or bottom of the scrollable container.
|
|
69
|
-
* You can override the `step` and `interval` by providing a `DragAndDropScrollSettings` object.
|
|
70
|
-
*
|
|
71
|
-
* @default true
|
|
72
|
-
*/
|
|
73
|
-
autoScroll: boolean | DragAndDropScrollSettings;
|
|
74
|
-
/**
|
|
75
|
-
* @hidden
|
|
76
|
-
*/
|
|
77
|
-
dragClueTemplate: DragClueTemplateDirective;
|
|
78
|
-
/**
|
|
79
|
-
* @hidden
|
|
80
|
-
*/
|
|
81
|
-
dropHintTemplate: DropHintTemplateDirective;
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
userSelectStyle: string;
|
|
86
|
-
protected draggable: Draggable;
|
|
87
|
-
protected draggedItem: HTMLElement;
|
|
88
|
-
/**
|
|
89
|
-
* The pointer event of the last successful item pointerdown event (the draggable `press` event).
|
|
90
|
-
* Used for determining whether the `startDragAfter` distance is covered and for the `nodeDragStart` event args.
|
|
91
|
-
* Used also as a flag for whether a drag attempt is pending. Should be set to `null` once the dragging begins.
|
|
92
|
-
*/
|
|
93
|
-
protected pendingDragStartEvent: PointerEvent;
|
|
94
|
-
private get scrollSettings();
|
|
95
|
-
/**
|
|
96
|
-
* Describes the offset of the parent element if the latter has the `transform` CSS prop applied.
|
|
97
|
-
* Transformed parents create new stacking context and the fixed children must be position based on the transformed parent.
|
|
98
|
-
* https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context
|
|
99
|
-
*/
|
|
100
|
-
private containerOffset;
|
|
101
|
-
constructor(element: ElementRef<HTMLElement>, zone: NgZone, treeview: TreeViewComponent, dragClueService: DragClueService, dropHintService: DropHintService);
|
|
102
|
-
ngAfterContentInit(): void;
|
|
103
|
-
ngOnDestroy(): void;
|
|
104
|
-
/**
|
|
105
|
-
* @hidden
|
|
106
|
-
*/
|
|
107
|
-
handlePress({ originalEvent }: any): void;
|
|
108
|
-
/**
|
|
109
|
-
* @hidden
|
|
110
|
-
*/
|
|
111
|
-
handleDrag({ originalEvent, clientX, clientY }: any): void;
|
|
112
|
-
/**
|
|
113
|
-
* @hidden
|
|
114
|
-
*/
|
|
115
|
-
handleRelease({ originalEvent, clientY }: any): void;
|
|
116
|
-
private updateDropHintState;
|
|
117
|
-
private updateDragClueState;
|
|
118
|
-
private initalizeDraggable;
|
|
119
|
-
private notifyDragStart;
|
|
120
|
-
private notifyDrag;
|
|
121
|
-
private notifyDrop;
|
|
122
|
-
private notifyDragEnd;
|
|
123
|
-
private getTargetTreeView;
|
|
124
|
-
private disableAnimationsForNextTick;
|
|
125
|
-
private shouldInitiateDragStart;
|
|
126
|
-
private initiateDragStart;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropDirective, never>;
|
|
128
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DragAndDropDirective, "[kendoTreeViewDragAndDrop]", never, { "allowCopy": { "alias": "allowCopy"; "required": false; }; "dropZoneTreeViews": { "alias": "dropZoneTreeViews"; "required": false; }; "startDragAfter": { "alias": "startDragAfter"; "required": false; }; "autoScroll": { "alias": "autoScroll"; "required": false; }; }, {}, ["dragClueTemplate", "dropHintTemplate"], never, true, never>;
|
|
129
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the template for the TreeView drag clue when you drag an item.
|
|
9
|
-
*
|
|
10
|
-
* To define the drag clue template, nest an `<ng-template>` tag with the `kendoTreeViewDragClueTemplate` directive inside a `<kendo-treeview>` tag
|
|
11
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#templates)).
|
|
12
|
-
*
|
|
13
|
-
* The template context provides the following variables:
|
|
14
|
-
* - `let-text="text"` (`string`)—The display text of the item being dragged.
|
|
15
|
-
* - `let-action="action"` ([`DropAction`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/dropaction))—The type of drop action that will occur.
|
|
16
|
-
* - `let-sourceItem="sourceItem"` ([`TreeItemLookup`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeitemlookup))—The TreeView item that is being dragged from its original position.
|
|
17
|
-
* - `let-destinationItem="destinationItem"` ([`TreeItemLookup`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeitemlookup))—The TreeView item that serves as the target for the drop operation.
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```html
|
|
21
|
-
* <kendo-treeview>
|
|
22
|
-
* <ng-template kendoTreeViewDragClueTemplate let-text="text">
|
|
23
|
-
* Dragging: {{ text }}
|
|
24
|
-
* </ng-template>
|
|
25
|
-
* </kendo-treeview>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare class DragClueTemplateDirective {
|
|
29
|
-
templateRef: TemplateRef<any>;
|
|
30
|
-
constructor(templateRef: TemplateRef<any>);
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragClueTemplateDirective, [{ optional: true; }]>;
|
|
32
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DragClueTemplateDirective, "[kendoTreeViewDragClueTemplate]", never, {}, {}, never, never, true, never>;
|
|
33
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef, ChangeDetectorRef } from "@angular/core";
|
|
6
|
-
import { DropAction } from '../models';
|
|
7
|
-
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
8
|
-
import { SVGIcon } from "@progress/kendo-svg-icons";
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare class DragClueComponent {
|
|
14
|
-
private cdr;
|
|
15
|
-
hostClasses: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* The text value of the dragged TreeView item.
|
|
18
|
-
*/
|
|
19
|
-
text: string;
|
|
20
|
-
/**
|
|
21
|
-
* The attempted operation according to the current drop target.
|
|
22
|
-
*/
|
|
23
|
-
action: DropAction;
|
|
24
|
-
/**
|
|
25
|
-
* The look-up info for the currently dragged item.
|
|
26
|
-
*/
|
|
27
|
-
sourceItem: TreeItemLookup;
|
|
28
|
-
/**
|
|
29
|
-
* The look-up info for the destination item (if hovering a valid drop target).
|
|
30
|
-
*/
|
|
31
|
-
destinationItem: TreeItemLookup;
|
|
32
|
-
/**
|
|
33
|
-
* Defines the drag clue content template.
|
|
34
|
-
*/
|
|
35
|
-
template: TemplateRef<any>;
|
|
36
|
-
posistionStyle: string;
|
|
37
|
-
get statusIconClass(): string;
|
|
38
|
-
get statusSVGIcon(): SVGIcon;
|
|
39
|
-
constructor(cdr: ChangeDetectorRef);
|
|
40
|
-
detectChanges(): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragClueComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DragClueComponent, "kendo-treeview-drag-clue", never, {}, {}, never, never, true, never>;
|
|
43
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ViewContainerRef, TemplateRef } from '@angular/core';
|
|
6
|
-
import { DragClueComponent } from './drag-clue.component';
|
|
7
|
-
import { DragAndDropScrollSettings, DropAction } from '../models';
|
|
8
|
-
import { DragAndDropAssetService } from '../editing-services/drag-and-drop-asset.service';
|
|
9
|
-
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare const CLUE_OFFSET = 10;
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export declare const RETURN_ANIMATION_DURATION = 200;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
export declare class DragClueService extends DragAndDropAssetService<DragClueComponent> {
|
|
23
|
-
private returnAnimation;
|
|
24
|
-
private scrollInterval;
|
|
25
|
-
constructor();
|
|
26
|
-
initialize(container: ViewContainerRef, template?: TemplateRef<any>): void;
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
|
-
move(left: number, top: number): void;
|
|
29
|
-
animateDragClueToElementPosition(target: HTMLElement): void;
|
|
30
|
-
cancelReturnAnimation(): void;
|
|
31
|
-
updateDragClueData(action: DropAction, sourceItem: TreeItemLookup, destinationItem: TreeItemLookup): void;
|
|
32
|
-
updateText(text: string): void;
|
|
33
|
-
/**
|
|
34
|
-
* Triggers the first scrollable parent to scroll upwards or downwards.
|
|
35
|
-
* Uses setInterval, so should be called outside the angular zone.
|
|
36
|
-
*/
|
|
37
|
-
scrollIntoView({ step, interval }: DragAndDropScrollSettings): void;
|
|
38
|
-
/**
|
|
39
|
-
* Cancels out the on-going scroll animation, if present.
|
|
40
|
-
*/
|
|
41
|
-
cancelScroll(): void;
|
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragClueService, never>;
|
|
43
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DragClueService>;
|
|
44
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the template for the TreeView drop hint when you drag an item.
|
|
9
|
-
*
|
|
10
|
-
* To define the hint template, nest an `<ng-template>` tag with the `kendoTreeViewDropHintTemplate` directive inside a `<kendo-treeview>` tag
|
|
11
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/drag-and-drop#templates)).
|
|
12
|
-
*
|
|
13
|
-
* The template context provides the following variables:
|
|
14
|
-
* - `let-action="action"` ([`DropAction`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/dropaction))—The drop action being performed.
|
|
15
|
-
* - `let-sourceItem="sourceItem"` ([`TreeItemLookup`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeitemlookup))—The item being dragged.
|
|
16
|
-
* - `let-destinationItem="destinationItem"` ([`TreeItemLookup`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeitemlookup))—The target item for the drop operation.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```html
|
|
20
|
-
* <kendo-treeview>
|
|
21
|
-
* <ng-template kendoTreeViewDropHintTemplate let-action="action">
|
|
22
|
-
* Drop action: {{ action }}
|
|
23
|
-
* </ng-template>
|
|
24
|
-
* </kendo-treeview>
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export declare class DropHintTemplateDirective {
|
|
28
|
-
templateRef: TemplateRef<any>;
|
|
29
|
-
constructor(templateRef: TemplateRef<any>);
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropHintTemplateDirective, [{ optional: true; }]>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DropHintTemplateDirective, "[kendoTreeViewDropHintTemplate]", never, {}, {}, never, never, true, never>;
|
|
32
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TemplateRef, ChangeDetectorRef } from '@angular/core';
|
|
6
|
-
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
7
|
-
import { DropAction } from '../models';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class DropHintComponent {
|
|
13
|
-
private changeDetectorRef;
|
|
14
|
-
hostClass: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Defines the drag hint content template.
|
|
17
|
-
*/
|
|
18
|
-
template: TemplateRef<any>;
|
|
19
|
-
position: string;
|
|
20
|
-
pointerEvents: string;
|
|
21
|
-
/**
|
|
22
|
-
* The attempted operation according to the current drop target.
|
|
23
|
-
*/
|
|
24
|
-
action: DropAction;
|
|
25
|
-
/**
|
|
26
|
-
* The look-up info for the currently dragged item.
|
|
27
|
-
*/
|
|
28
|
-
sourceItem: TreeItemLookup;
|
|
29
|
-
/**
|
|
30
|
-
* The look-up info for the destination item.
|
|
31
|
-
*/
|
|
32
|
-
destinationItem: TreeItemLookup;
|
|
33
|
-
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
34
|
-
detectChanges(): void;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropHintComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropHintComponent, "kendo-treeview-drop-hint", never, {}, {}, never, never, true, never>;
|
|
37
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ViewContainerRef, TemplateRef } from '@angular/core';
|
|
6
|
-
import { DropHintComponent } from './drop-hint.component';
|
|
7
|
-
import { DragAndDropAssetService } from '../editing-services/drag-and-drop-asset.service';
|
|
8
|
-
import { DropAction } from '../models';
|
|
9
|
-
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
export declare class DropHintService extends DragAndDropAssetService<DropHintComponent> {
|
|
15
|
-
constructor();
|
|
16
|
-
initialize(container: ViewContainerRef, template?: TemplateRef<any>): void;
|
|
17
|
-
updateDropHintData(action: DropAction, sourceItem: TreeItemLookup, destinationItem: TreeItemLookup): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropHintService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DropHintService>;
|
|
20
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { ComponentRef, ViewContainerRef, TemplateRef, OnDestroy } from '@angular/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare abstract class DragAndDropAssetService<T> implements OnDestroy {
|
|
11
|
-
protected get componentRef(): ComponentRef<T>;
|
|
12
|
-
protected set componentRef(componentRef: ComponentRef<T>);
|
|
13
|
-
protected get element(): HTMLElement;
|
|
14
|
-
protected _componentRef: ComponentRef<T>;
|
|
15
|
-
abstract initialize(container: ViewContainerRef, template?: TemplateRef<any>): void;
|
|
16
|
-
ngOnDestroy(): void;
|
|
17
|
-
show(): void;
|
|
18
|
-
hide(): void;
|
|
19
|
-
move(left: number, top: number, offset?: number): void;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropAssetService<any>, never>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DragAndDropAssetService<any>>;
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { FlatDataBindingDirective } from '../../flat-binding.directive';
|
|
6
|
-
import { TreeItemAddRemoveArgs, EditService } from '../models';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class FlatEditingService implements EditService {
|
|
11
|
-
private flatBinding;
|
|
12
|
-
private movedItemNewIndex;
|
|
13
|
-
constructor(flatBinding: FlatDataBindingDirective);
|
|
14
|
-
add({ sourceItem, destinationItem, dropPosition, sourceTree, destinationTree }: TreeItemAddRemoveArgs): void;
|
|
15
|
-
remove({ sourceItem, sourceTree, destinationTree }: TreeItemAddRemoveArgs): void;
|
|
16
|
-
private addChildNodes;
|
|
17
|
-
private removeChildNodes;
|
|
18
|
-
private fetchAllDescendantNodes;
|
|
19
|
-
private fetchChildNodes;
|
|
20
|
-
private getLastVisibleChildNodeIndex;
|
|
21
|
-
private rebindData;
|
|
22
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { HierarchyBindingDirective } from '../../hierarchy-binding.directive';
|
|
6
|
-
import { TreeItemAddRemoveArgs, EditService } from '../models';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class HierarchyEditingService implements EditService {
|
|
11
|
-
private hierarchyBinding;
|
|
12
|
-
private movedItemNewIndex;
|
|
13
|
-
constructor(hierarchyBinding: HierarchyBindingDirective);
|
|
14
|
-
add({ sourceItem, destinationItem, dropPosition, sourceTree, destinationTree }: TreeItemAddRemoveArgs): void;
|
|
15
|
-
remove({ sourceItem, sourceTree, destinationTree }: TreeItemAddRemoveArgs): void;
|
|
16
|
-
private getParentNodes;
|
|
17
|
-
private childrenFor;
|
|
18
|
-
private rebindData;
|
|
19
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents the attempted drop action during dragging.
|
|
7
|
-
* Passed as `action` value to the [`kendoTreeViewDragClueTemplate`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/dragcluetemplatedirective) directive.
|
|
8
|
-
* By default, this value defines the rendered icon in the drag clue.
|
|
9
|
-
*/
|
|
10
|
-
export declare enum DropAction {
|
|
11
|
-
/**
|
|
12
|
-
* The dragged item is added as a child to the target node.
|
|
13
|
-
*/
|
|
14
|
-
Add = 0,
|
|
15
|
-
/**
|
|
16
|
-
* The dragged item is inserted above the target node at the same level.
|
|
17
|
-
*/
|
|
18
|
-
InsertTop = 1,
|
|
19
|
-
/**
|
|
20
|
-
* The dragged item is inserted below the target node at the same level.
|
|
21
|
-
*/
|
|
22
|
-
InsertBottom = 2,
|
|
23
|
-
/**
|
|
24
|
-
* The dragged item is inserted in the middle position relative to the target node.
|
|
25
|
-
*/
|
|
26
|
-
InsertMiddle = 3,
|
|
27
|
-
/**
|
|
28
|
-
* The drop action is not valid for the current target location.
|
|
29
|
-
*/
|
|
30
|
-
Invalid = 4
|
|
31
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Specifies where a dragged item is dropped relative to the target item.
|
|
7
|
-
*/
|
|
8
|
-
export declare enum DropPosition {
|
|
9
|
-
/**
|
|
10
|
-
* The item is dropped over the target item.
|
|
11
|
-
*/
|
|
12
|
-
Over = 0,
|
|
13
|
-
/**
|
|
14
|
-
* The item is dropped before the target item.
|
|
15
|
-
*/
|
|
16
|
-
Before = 1,
|
|
17
|
-
/**
|
|
18
|
-
* The item is dropped after the target item.
|
|
19
|
-
*/
|
|
20
|
-
After = 2
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TreeItemAddRemoveArgs } from './treeitem-add-remove-args';
|
|
6
|
-
/**
|
|
7
|
-
* Specifies the handlers called on drag-and-drop [`addItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#additem)
|
|
8
|
-
* and [`removeItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#removeitem) events.
|
|
9
|
-
*
|
|
10
|
-
* Implement this interface to handle the addition and removal of items during drag-and-drop operations in the TreeView.
|
|
11
|
-
*/
|
|
12
|
-
export interface EditService {
|
|
13
|
-
/**
|
|
14
|
-
* Called when an item is added via drag-and-drop. Represents the event handler of the [`addItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#additem) event.
|
|
15
|
-
*/
|
|
16
|
-
add: (args: TreeItemAddRemoveArgs) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Called when an item is removed via drag-and-drop. Represents the event handler of the [`removeItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#removeitem) event.
|
|
19
|
-
*/
|
|
20
|
-
remove: (args: TreeItemAddRemoveArgs) => void;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare class PreventableEvent {
|
|
9
|
-
private prevented;
|
|
10
|
-
/**
|
|
11
|
-
* Prevents the default action for a specified event.
|
|
12
|
-
* In this way, the source component suppresses the built-in behavior that follows the event.
|
|
13
|
-
*/
|
|
14
|
-
preventDefault(): void;
|
|
15
|
-
/**
|
|
16
|
-
* If the event is prevented by any of its subscribers, returns `true`.
|
|
17
|
-
*
|
|
18
|
-
* @returns `true` if the default action was prevented. Otherwise, returns `false`.
|
|
19
|
-
*/
|
|
20
|
-
isDefaultPrevented(): boolean;
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export declare enum ScrollDirection {
|
|
9
|
-
Up = -1,
|
|
10
|
-
Down = 1
|
|
11
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Defines the auto-scrolling behavior during drag-and-drop operations in the TreeView.
|
|
7
|
-
* When enabled, the first scrollable container above the TreeView will scroll automatically
|
|
8
|
-
* when the dragged item reaches the top or bottom edge of that container.
|
|
9
|
-
*/
|
|
10
|
-
export interface DragAndDropScrollSettings {
|
|
11
|
-
/**
|
|
12
|
-
* Determines whether auto-scrolling is enabled during drag-and-drop.
|
|
13
|
-
*
|
|
14
|
-
* @default true
|
|
15
|
-
*/
|
|
16
|
-
enabled?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* The number of pixels to scroll per step.
|
|
19
|
-
*
|
|
20
|
-
* @default 1
|
|
21
|
-
*/
|
|
22
|
-
step?: number;
|
|
23
|
-
/**
|
|
24
|
-
* The interval in milliseconds between scroll steps.
|
|
25
|
-
*
|
|
26
|
-
* @default 1
|
|
27
|
-
*/
|
|
28
|
-
interval?: number;
|
|
29
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
/**
|
|
6
|
-
* Represents a hierarchical node in the TreeView filter state.
|
|
7
|
-
* Used as a lookup structure to persist information about the current node, its filter state, parent, and child nodes.
|
|
8
|
-
* Utilized in the [`filterStateChange`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#filterstatechange) event.
|
|
9
|
-
*/
|
|
10
|
-
export interface TreeItemFilterState {
|
|
11
|
-
/**
|
|
12
|
-
* The data item associated with the node.
|
|
13
|
-
*/
|
|
14
|
-
dataItem: any;
|
|
15
|
-
/**
|
|
16
|
-
* The hierarchical index of the node.
|
|
17
|
-
*/
|
|
18
|
-
index: string;
|
|
19
|
-
/**
|
|
20
|
-
* The parent of the current node.
|
|
21
|
-
*/
|
|
22
|
-
parent: TreeItemFilterState;
|
|
23
|
-
/**
|
|
24
|
-
* The child nodes of the current node.
|
|
25
|
-
*/
|
|
26
|
-
children?: TreeItemFilterState[];
|
|
27
|
-
/**
|
|
28
|
-
* Indicates whether the node matches the current filter.
|
|
29
|
-
*/
|
|
30
|
-
isMatch?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Determines whether the node is visible or hidden by the filter.
|
|
33
|
-
* A node can be visible even if it does not directly match the filter.
|
|
34
|
-
* For example, the node is visible if it is a parent of a matching node or a child of a matching node in `"lenient"` filter mode.
|
|
35
|
-
*/
|
|
36
|
-
visible: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Determines whether any child node matches the filter or contains matching nodes.
|
|
39
|
-
*/
|
|
40
|
-
containsMatches?: boolean;
|
|
41
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TreeViewComponent } from '../../treeview.component';
|
|
6
|
-
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
7
|
-
import { DropPosition } from './drop-position';
|
|
8
|
-
/**
|
|
9
|
-
* Provides information for TreeView drag-and-drop [`addItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#additem)
|
|
10
|
-
* and [`removeItem`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#removeitem) events.
|
|
11
|
-
*/
|
|
12
|
-
export interface TreeItemAddRemoveArgs {
|
|
13
|
-
/**
|
|
14
|
-
* Reference to the TreeView from which the dragged item originates.
|
|
15
|
-
*/
|
|
16
|
-
sourceTree: TreeViewComponent;
|
|
17
|
-
/**
|
|
18
|
-
* Reference to the TreeView onto which the dragged item is dropped.
|
|
19
|
-
*/
|
|
20
|
-
destinationTree: TreeViewComponent;
|
|
21
|
-
/**
|
|
22
|
-
* Lookup information for the dragged item.
|
|
23
|
-
*/
|
|
24
|
-
sourceItem: TreeItemLookup;
|
|
25
|
-
/**
|
|
26
|
-
* Lookup information for the item onto which the dragged item is dropped.
|
|
27
|
-
*/
|
|
28
|
-
destinationItem: TreeItemLookup;
|
|
29
|
-
/**
|
|
30
|
-
* Represents the drop position relative to the target item.
|
|
31
|
-
*/
|
|
32
|
-
dropPosition: DropPosition;
|
|
33
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import { TreeItemLookup } from '../../treeitem-lookup.interface';
|
|
6
|
-
/**
|
|
7
|
-
* Arguments for the TreeView [`nodeDrag`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedrag) and
|
|
8
|
-
* [`nodeDragEnd`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedragend) events.
|
|
9
|
-
*/
|
|
10
|
-
export declare class TreeItemDragEvent {
|
|
11
|
-
/** @hidden */
|
|
12
|
-
constructor();
|
|
13
|
-
/**
|
|
14
|
-
* Lookup information for the dragged item.
|
|
15
|
-
*/
|
|
16
|
-
sourceItem: TreeItemLookup;
|
|
17
|
-
/**
|
|
18
|
-
* Lookup information for the item currently under the dragged node, if any.
|
|
19
|
-
*/
|
|
20
|
-
destinationItem: TreeItemLookup;
|
|
21
|
-
/**
|
|
22
|
-
* The original pointer event containing details about the pointer position.
|
|
23
|
-
*/
|
|
24
|
-
originalEvent: PointerEvent;
|
|
25
|
-
}
|