@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,26 +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
|
-
import { PreventableEvent } from './preventable-event';
|
|
7
|
-
/**
|
|
8
|
-
* Arguments for the TreeView [`nodeDragStart`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedragstart) event.
|
|
9
|
-
*/
|
|
10
|
-
export declare class TreeItemDragStartEvent extends PreventableEvent {
|
|
11
|
-
/**
|
|
12
|
-
* Lookup information for the dragged item.
|
|
13
|
-
*/
|
|
14
|
-
sourceItem: TreeItemLookup;
|
|
15
|
-
/**
|
|
16
|
-
* The original pointer event containing details about the pointer position.
|
|
17
|
-
*/
|
|
18
|
-
originalEvent: PointerEvent;
|
|
19
|
-
/**
|
|
20
|
-
* @hidden
|
|
21
|
-
*/
|
|
22
|
-
constructor(initializer: {
|
|
23
|
-
sourceItem: TreeItemLookup;
|
|
24
|
-
originalEvent: PointerEvent;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
@@ -1,52 +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
|
-
import { PreventableEvent } from './preventable-event';
|
|
9
|
-
import { TreeItemAddRemoveArgs } from './treeitem-add-remove-args';
|
|
10
|
-
/**
|
|
11
|
-
* Arguments for the TreeView [`nodeDrop`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#nodedrop) event.
|
|
12
|
-
*/
|
|
13
|
-
export declare class TreeItemDropEvent extends PreventableEvent implements TreeItemAddRemoveArgs {
|
|
14
|
-
/**
|
|
15
|
-
* Reference to the TreeView from which the dragged item originates.
|
|
16
|
-
*/
|
|
17
|
-
sourceTree: TreeViewComponent;
|
|
18
|
-
/**
|
|
19
|
-
* Reference to the TreeView onto which the dragged item is dropped.
|
|
20
|
-
*/
|
|
21
|
-
destinationTree: TreeViewComponent;
|
|
22
|
-
/**
|
|
23
|
-
* Lookup information for the dragged item.
|
|
24
|
-
*/
|
|
25
|
-
sourceItem: TreeItemLookup;
|
|
26
|
-
/**
|
|
27
|
-
* Lookup information for the item onto which the dragged item is dropped.
|
|
28
|
-
*/
|
|
29
|
-
destinationItem: TreeItemLookup;
|
|
30
|
-
/**
|
|
31
|
-
* Represents the drop position relative to the target item.
|
|
32
|
-
*/
|
|
33
|
-
dropPosition: DropPosition;
|
|
34
|
-
/**
|
|
35
|
-
* The original pointer event containing details about the pointer position.
|
|
36
|
-
*/
|
|
37
|
-
originalEvent: PointerEvent;
|
|
38
|
-
/**
|
|
39
|
-
* @hidden
|
|
40
|
-
*/
|
|
41
|
-
isValid: boolean;
|
|
42
|
-
/**
|
|
43
|
-
* @hidden
|
|
44
|
-
*/
|
|
45
|
-
constructor(initializer: TreeItemAddRemoveArgs, originalEvent: PointerEvent);
|
|
46
|
-
/**
|
|
47
|
-
* Sets whether the drop action is valid.
|
|
48
|
-
* If set to `false`, the `addItem` and `removeItem` events will not be fired and the drag clue
|
|
49
|
-
* will animate back to the source item to indicate the action is invalid.
|
|
50
|
-
*/
|
|
51
|
-
setValid(isValid: boolean): void;
|
|
52
|
-
}
|
|
@@ -1,14 +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
|
-
export * from './models/drop-action';
|
|
6
|
-
export * from './models/drop-position';
|
|
7
|
-
export * from './models/scroll-direction';
|
|
8
|
-
export * from './models/scroll-settings';
|
|
9
|
-
export * from './models/preventable-event';
|
|
10
|
-
export * from './models/treeitem-add-remove-args';
|
|
11
|
-
export * from './models/treeitem-drop-event';
|
|
12
|
-
export * from './models/treeitem-drag-start-event';
|
|
13
|
-
export * from './models/treeitem-drag-event';
|
|
14
|
-
export * from './models/editing-service';
|
|
@@ -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 { Subject } from "rxjs";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class ExpandStateService {
|
|
11
|
-
changes: Subject<{
|
|
12
|
-
dataItem: any;
|
|
13
|
-
expand: boolean;
|
|
14
|
-
index: string;
|
|
15
|
-
}>;
|
|
16
|
-
expand(index: any, dataItem: any): void;
|
|
17
|
-
collapse(index: any, dataItem: any): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandStateService, never>;
|
|
19
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ExpandStateService>;
|
|
20
|
-
}
|
package/expand.directive.d.ts
DELETED
|
@@ -1,92 +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 { EventEmitter, OnDestroy, SimpleChanges, OnChanges } from '@angular/core';
|
|
6
|
-
import { ExpandableComponent } from './expandable-component';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { TreeItem } from './treeitem.interface';
|
|
9
|
-
import { FilterExpandSettings } from './filter-expand-settings.interface';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
interface ExpandTreeItem extends TreeItem {
|
|
15
|
-
expand: boolean;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Represents a directive that manages the expanded state of the TreeView
|
|
19
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treelist/expanded-state)).
|
|
20
|
-
*
|
|
21
|
-
* @example
|
|
22
|
-
* ```html
|
|
23
|
-
* <kendo-treeview
|
|
24
|
-
* kendoTreeViewExpandable
|
|
25
|
-
* expandBy="id"
|
|
26
|
-
* [(expandedKeys)]="expandedKeys"
|
|
27
|
-
* [expandOnFilter]="true"
|
|
28
|
-
* [nodes]="data">
|
|
29
|
-
* </kendo-treeview>
|
|
30
|
-
* ```
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Applied to: {@link TreeViewComponent}
|
|
34
|
-
*/
|
|
35
|
-
export declare class ExpandDirective implements OnDestroy, OnChanges {
|
|
36
|
-
protected component: ExpandableComponent;
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
set isExpanded(value: (item: object, index: string) => boolean);
|
|
41
|
-
/**
|
|
42
|
-
* Defines the item key stored in the `expandedKeys` collection.
|
|
43
|
-
*/
|
|
44
|
-
expandKey: string | ((context: TreeItem) => any);
|
|
45
|
-
/**
|
|
46
|
-
* Specifies whether to auto-expand the nodes leading from the root node to each filter result.
|
|
47
|
-
* To fine-tune this behavior, pass a [`FilterExpandSettings`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/filterexpandsettings) object to this input.
|
|
48
|
-
* @default false
|
|
49
|
-
*/
|
|
50
|
-
expandOnFilter: boolean | FilterExpandSettings;
|
|
51
|
-
get filterExpandSettings(): FilterExpandSettings;
|
|
52
|
-
/**
|
|
53
|
-
* Fires when the `expandedKeys` collection updates.
|
|
54
|
-
*/
|
|
55
|
-
expandedKeysChange: EventEmitter<any[]>;
|
|
56
|
-
/**
|
|
57
|
-
* Defines the collection that stores the expanded keys.
|
|
58
|
-
*/
|
|
59
|
-
expandedKeys: any[];
|
|
60
|
-
protected subscriptions: Subscription;
|
|
61
|
-
/**
|
|
62
|
-
* Reflects the internal `expandedKeys` state.
|
|
63
|
-
*/
|
|
64
|
-
private state;
|
|
65
|
-
private originalExpandedKeys;
|
|
66
|
-
private isFiltered;
|
|
67
|
-
/**
|
|
68
|
-
* Holds the last emitted `expandedKeys` collection.
|
|
69
|
-
*/
|
|
70
|
-
private lastChange;
|
|
71
|
-
constructor(component: ExpandableComponent);
|
|
72
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
73
|
-
ngOnDestroy(): void;
|
|
74
|
-
/**
|
|
75
|
-
* @hidden
|
|
76
|
-
*/
|
|
77
|
-
itemKey(e: TreeItem): string;
|
|
78
|
-
protected toggleExpand({ index, dataItem, expand }: ExpandTreeItem): void;
|
|
79
|
-
private handleAutoExpand;
|
|
80
|
-
/**
|
|
81
|
-
* Fills array with the correct expand keys according to wrapper metadata.
|
|
82
|
-
*/
|
|
83
|
-
private updateExpandedNodes;
|
|
84
|
-
/**
|
|
85
|
-
* Fills array with the expand key of every node.
|
|
86
|
-
*/
|
|
87
|
-
private getEveryExpandKey;
|
|
88
|
-
private notify;
|
|
89
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandDirective, never>;
|
|
90
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ExpandDirective, "[kendoTreeViewExpandable]", never, { "isExpanded": { "alias": "isExpanded"; "required": false; }; "expandKey": { "alias": "expandBy"; "required": false; }; "expandOnFilter": { "alias": "expandOnFilter"; "required": false; }; "expandedKeys": { "alias": "expandedKeys"; "required": false; }; }, { "expandedKeysChange": "expandedKeysChange"; }, never, never, true, never>;
|
|
91
|
-
}
|
|
92
|
-
export {};
|
|
@@ -1,35 +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 { EventEmitter } from '@angular/core';
|
|
6
|
-
import { FilterState } from './filter-state.interface';
|
|
7
|
-
import { TreeItem } from './treeitem.interface';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*
|
|
12
|
-
* An injection token used by the expand-directive to interface with
|
|
13
|
-
* the TreeView or the DropDownTree components.
|
|
14
|
-
*/
|
|
15
|
-
export declare abstract class ExpandableComponent {
|
|
16
|
-
/**
|
|
17
|
-
* A function which determines if a specific node is expanded.
|
|
18
|
-
*/
|
|
19
|
-
abstract isExpanded: (item: object, index: string) => boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Fires when the user expands a TreeView node.
|
|
22
|
-
*/
|
|
23
|
-
abstract expand: EventEmitter<TreeItem>;
|
|
24
|
-
/**
|
|
25
|
-
* Fires when the user collapses a TreeView node.
|
|
26
|
-
*/
|
|
27
|
-
abstract collapse: EventEmitter<TreeItem>;
|
|
28
|
-
/**
|
|
29
|
-
* Emits when the built-in filtering mechanism in the data-binding directives updates the node visibility.
|
|
30
|
-
* Used for the built-in auto-expand functionalities of the component and available for custom implementations.
|
|
31
|
-
*/
|
|
32
|
-
abstract filterStateChange?: EventEmitter<FilterState>;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandableComponent, never>;
|
|
34
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ExpandableComponent>;
|
|
35
|
-
}
|
|
@@ -1,35 +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
|
-
* Configures the auto-expansion behavior of nodes when filtering the TreeView.
|
|
7
|
-
*/
|
|
8
|
-
export interface FilterExpandSettings {
|
|
9
|
-
/**
|
|
10
|
-
* The maximum number of filter results that will be auto-expanded.
|
|
11
|
-
* If the number of results exceeds this value, the expanded state will be reverted according to the `expandedOnClear` setting.
|
|
12
|
-
* The default value of -1 allows any number of results to be auto-expanded.
|
|
13
|
-
* @default -1
|
|
14
|
-
*/
|
|
15
|
-
maxAutoExpandResults?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Determines whether matching nodes expand to display their children.
|
|
18
|
-
* Only applicable in `"lenient"` filter mode.
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
expandMatches?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Determines which nodes should remain expanded when the filter is cleared. The possible values are:
|
|
24
|
-
* * `"none"`—Collapse all nodes.
|
|
25
|
-
* * `"all"`—Expand all nodes.
|
|
26
|
-
* * `"initial"`—Restore the expanded state from before filtering.
|
|
27
|
-
* * `"unchanged"`—Leave the expanded state unchanged.
|
|
28
|
-
* @default "none"
|
|
29
|
-
*/
|
|
30
|
-
expandedOnClear?: "all" | "none" | "initial" | "unchanged";
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
enabled?: boolean;
|
|
35
|
-
}
|
|
@@ -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
|
-
import { TreeItemFilterState } from "./drag-and-drop/models/tree-item-filter-state";
|
|
6
|
-
import { TreeViewFilterSettings } from "./treeview-filter-settings";
|
|
7
|
-
/**
|
|
8
|
-
* Represents the current filter state of the TreeView.
|
|
9
|
-
* Emitted by the [`filterStateChange`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#filterstatechange) event.
|
|
10
|
-
*/
|
|
11
|
-
export interface FilterState {
|
|
12
|
-
/**
|
|
13
|
-
* The list of TreeView node wrappers containing metadata about the current filtered state.
|
|
14
|
-
* Useful for custom implementations of auto-expanding nodes triggered by filtering.
|
|
15
|
-
*/
|
|
16
|
-
nodes: TreeItemFilterState[];
|
|
17
|
-
/**
|
|
18
|
-
* The number of nodes that match the current filter term.
|
|
19
|
-
*/
|
|
20
|
-
matchCount: number;
|
|
21
|
-
/**
|
|
22
|
-
* The current filter term applied to the TreeView.
|
|
23
|
-
*/
|
|
24
|
-
term: string;
|
|
25
|
-
/**
|
|
26
|
-
* The filter settings used for the current filter operation.
|
|
27
|
-
*/
|
|
28
|
-
filterSettings: TreeViewFilterSettings;
|
|
29
|
-
}
|
package/filtering-base.d.ts
DELETED
|
@@ -1,39 +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 { DataBoundComponent } from "./data-bound-component";
|
|
6
|
-
import { TreeItemFilterState } from "./drag-and-drop/models/tree-item-filter-state";
|
|
7
|
-
import { TreeViewFilterSettings } from "./treeview-filter-settings";
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare abstract class FilteringBase {
|
|
13
|
-
protected component: DataBoundComponent;
|
|
14
|
-
/**
|
|
15
|
-
* Stores the unfiltered nodes
|
|
16
|
-
*/
|
|
17
|
-
protected filterData: TreeItemFilterState[];
|
|
18
|
-
protected visibleNodes: Set<any>;
|
|
19
|
-
protected currentFilterTerm: string;
|
|
20
|
-
/**
|
|
21
|
-
* The settings which are applied when performing a filter on the component's data.
|
|
22
|
-
*/
|
|
23
|
-
set filterSettings(settings: TreeViewFilterSettings);
|
|
24
|
-
get filterSettings(): TreeViewFilterSettings;
|
|
25
|
-
private _filterSettings;
|
|
26
|
-
/**
|
|
27
|
-
* Applies a filter and changes the visibility of the component's nodes accordingly.
|
|
28
|
-
*/
|
|
29
|
-
set filter(term: string);
|
|
30
|
-
constructor(component: DataBoundComponent);
|
|
31
|
-
/**
|
|
32
|
-
* @hidden
|
|
33
|
-
*/
|
|
34
|
-
handleFilterChange(term: string): void;
|
|
35
|
-
protected updateVisibleNodes(items: TreeItemFilterState[]): void;
|
|
36
|
-
protected resetNodesVisibility(items: TreeItemFilterState[]): void;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilteringBase, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FilteringBase, never, never, { "filterSettings": { "alias": "filterSettings"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
-
}
|
|
@@ -1,74 +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 { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
6
|
-
import { DataBoundComponent } from './data-bound-component';
|
|
7
|
-
import { FilteringBase } from './filtering-base';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Represents a directive that handles flat data binding and provides built-in filtering functionality for the TreeView.
|
|
11
|
-
*
|
|
12
|
-
* Use this directive to bind flat data where parent-child relationships are defined by ID fields.
|
|
13
|
-
* The directive also enables the built-in filter input and automatic filter handling when used with the `filterable` property.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```html
|
|
17
|
-
* <kendo-treeview
|
|
18
|
-
* kendoTreeViewFlatDataBinding
|
|
19
|
-
* idField="id"
|
|
20
|
-
* parentIdField="parentId"
|
|
21
|
-
* textField="text"
|
|
22
|
-
* [nodes]="data"
|
|
23
|
-
* [filterable]="true">
|
|
24
|
-
* </kendo-treeview>
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* Applied to: {@link TreeViewComponent}
|
|
29
|
-
*/
|
|
30
|
-
export declare class FlatDataBindingDirective extends FilteringBase implements OnInit, OnChanges {
|
|
31
|
-
protected component: DataBoundComponent;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies the flat data collection that renders as nodes in the TreeView.
|
|
34
|
-
*/
|
|
35
|
-
set nodes(nodes: any[]);
|
|
36
|
-
get nodes(): any[];
|
|
37
|
-
protected _nodes: any[];
|
|
38
|
-
/**
|
|
39
|
-
* Specifies the field name that contains the parent node identifier.
|
|
40
|
-
*/
|
|
41
|
-
parentIdField: string;
|
|
42
|
-
/**
|
|
43
|
-
* Specifies the field name that contains the unique node identifier.
|
|
44
|
-
*/
|
|
45
|
-
idField: string;
|
|
46
|
-
/**
|
|
47
|
-
* @hidden
|
|
48
|
-
*/
|
|
49
|
-
loadOnDemand: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* @hidden
|
|
52
|
-
* A callback which determines whether a TreeView node should be rendered as hidden.
|
|
53
|
-
*/
|
|
54
|
-
set isVisible(fn: (item: object, index: string) => boolean);
|
|
55
|
-
/**
|
|
56
|
-
* @hidden
|
|
57
|
-
*/
|
|
58
|
-
originalData: any[];
|
|
59
|
-
constructor(component: DataBoundComponent);
|
|
60
|
-
/**
|
|
61
|
-
* @hidden
|
|
62
|
-
*/
|
|
63
|
-
ngOnInit(): void;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
68
|
-
/**
|
|
69
|
-
* @hidden
|
|
70
|
-
*/
|
|
71
|
-
updateNodes(values: any[]): void;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FlatDataBindingDirective, never>;
|
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FlatDataBindingDirective, "[kendoTreeViewFlatDataBinding]", never, { "nodes": { "alias": "nodes"; "required": false; }; "parentIdField": { "alias": "parentIdField"; "required": false; }; "idField": { "alias": "idField"; "required": false; }; "loadOnDemand": { "alias": "loadOnDemand"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; }, {}, never, never, true, never>;
|
|
74
|
-
}
|
package/funcs.d.ts
DELETED
|
@@ -1,9 +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
|
-
* Performs the right-to-left function composition. Functions must have a unary.
|
|
8
|
-
*/
|
|
9
|
-
export declare const compose: (...args: any[]) => (data: any) => any;
|
|
@@ -1,70 +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 { OnInit, SimpleChanges } from '@angular/core';
|
|
6
|
-
import { DataBoundComponent } from './data-bound-component';
|
|
7
|
-
import { DragAndDropDirective } from './drag-and-drop/drag-and-drop.directive';
|
|
8
|
-
import { FilteringBase } from './filtering-base';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Represents a directive that handles hierarchical data binding and provides built-in filtering functionality for the TreeView.
|
|
12
|
-
*
|
|
13
|
-
* Use this directive to bind hierarchical data where child nodes are nested within parent nodes.
|
|
14
|
-
* The directive also enables the built-in filter input and automatic filter handling when used with the `filterable` property.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```html
|
|
18
|
-
* <kendo-treeview
|
|
19
|
-
* kendoTreeViewHierarchyBinding
|
|
20
|
-
* childrenField="items"
|
|
21
|
-
* textField="text"
|
|
22
|
-
* [nodes]="data"
|
|
23
|
-
* [filterable]="true">
|
|
24
|
-
* </kendo-treeview>
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* Applied to: {@link TreeViewComponent}
|
|
29
|
-
*/
|
|
30
|
-
export declare class HierarchyBindingDirective extends FilteringBase implements OnInit {
|
|
31
|
-
protected component: DataBoundComponent;
|
|
32
|
-
private dragAndDropDirective?;
|
|
33
|
-
/**
|
|
34
|
-
* Specifies the field name of the parent node that holds the child data items.
|
|
35
|
-
*/
|
|
36
|
-
set childrenField(value: string);
|
|
37
|
-
/**
|
|
38
|
-
* Specifies the field name of the parent node that holds the child data items.
|
|
39
|
-
*/
|
|
40
|
-
get childrenField(): string;
|
|
41
|
-
/**
|
|
42
|
-
* Specifies the hierarchical data displayed by the TreeView.
|
|
43
|
-
*/
|
|
44
|
-
set nodes(nodes: any[]);
|
|
45
|
-
get nodes(): any[];
|
|
46
|
-
protected _nodes: any[];
|
|
47
|
-
/**
|
|
48
|
-
* @hidden
|
|
49
|
-
* A callback which determines whether a TreeView node should be rendered as hidden.
|
|
50
|
-
*/
|
|
51
|
-
set isVisible(fn: (item: object, index: string) => boolean);
|
|
52
|
-
/**
|
|
53
|
-
* @hidden
|
|
54
|
-
*/
|
|
55
|
-
loadOnDemand: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* @hidden
|
|
58
|
-
*/
|
|
59
|
-
originalData: any[];
|
|
60
|
-
private _childrenField;
|
|
61
|
-
constructor(component: DataBoundComponent, dragAndDropDirective?: DragAndDropDirective);
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
64
|
-
/**
|
|
65
|
-
* @hidden
|
|
66
|
-
*/
|
|
67
|
-
updateNodes(values: any[]): void;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HierarchyBindingDirective, [null, { optional: true; host: true; }]>;
|
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HierarchyBindingDirective, "[kendoTreeViewHierarchyBinding]", never, { "childrenField": { "alias": "childrenField"; "required": false; }; "nodes": { "alias": "nodes"; "required": false; }; "isVisible": { "alias": "isVisible"; "required": false; }; "loadOnDemand": { "alias": "loadOnDemand"; "required": false; }; }, {}, never, never, true, never>;
|
|
70
|
-
}
|
|
@@ -1,17 +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 * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare class IndexBuilderService {
|
|
10
|
-
private INDEX_SEPARATOR;
|
|
11
|
-
nodeIndex(index?: string, parentIndex?: string): string;
|
|
12
|
-
indexForLevel(index: string, level: number): string;
|
|
13
|
-
lastLevelIndex(index?: string): number;
|
|
14
|
-
level(index: string): number;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IndexBuilderService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IndexBuilderService>;
|
|
17
|
-
}
|
|
@@ -1,30 +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 a directive for customizing the load more button in the TreeView.
|
|
9
|
-
*
|
|
10
|
-
* To define the template, nest an `<ng-template>` tag with the `kendoTreeViewLoadMoreButtonTemplate` directive inside a `<kendo-treeview>` tag
|
|
11
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#button-template)).
|
|
12
|
-
*
|
|
13
|
-
* The template context provides the following variable:
|
|
14
|
-
* - `let-index="index"`—The hierarchical index of the load more button node.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```html
|
|
18
|
-
* <kendo-treeview>
|
|
19
|
-
* <ng-template kendoTreeViewLoadMoreButtonTemplate let-index="index">
|
|
20
|
-
* Load more at {{ index }}
|
|
21
|
-
* </ng-template>
|
|
22
|
-
* </kendo-treeview>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare class LoadMoreButtonTemplateDirective {
|
|
26
|
-
templateRef: TemplateRef<any>;
|
|
27
|
-
constructor(templateRef: TemplateRef<any>);
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadMoreButtonTemplateDirective, [{ optional: true; }]>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LoadMoreButtonTemplateDirective, "[kendoTreeViewLoadMoreButtonTemplate]", never, {}, {}, never, never, true, never>;
|
|
30
|
-
}
|
|
@@ -1,23 +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 arguments that the [`loadMoreNodes`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective#kendotreeviewloadmore) function receives when the load more button is pressed.
|
|
7
|
-
*/
|
|
8
|
-
export interface LoadMoreRequestArgs {
|
|
9
|
-
/**
|
|
10
|
-
* Provides the data item for which you request more child nodes.
|
|
11
|
-
*/
|
|
12
|
-
dataItem: any;
|
|
13
|
-
/**
|
|
14
|
-
* The number of items currently rendered.
|
|
15
|
-
*/
|
|
16
|
-
skip: number;
|
|
17
|
-
/**
|
|
18
|
-
* The recommended number of new items to load.
|
|
19
|
-
* This value matches the [`pageSize`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective#pagesize) set in the [`kendoTreeViewLoadMore`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective) directive.
|
|
20
|
-
* You can return any number of items—the page size automatically adjusts based on how many items the [`loadMoreNodes`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/loadmoredirective#kendotreeviewloadmore) function actually returns.
|
|
21
|
-
*/
|
|
22
|
-
take: number;
|
|
23
|
-
}
|
|
@@ -1,17 +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
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const copyPageSize: (treeview: TreeViewComponent, source: any, target: any) => void;
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
export declare const incrementPageSize: (treeview: TreeViewComponent, dataItem: any) => void;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
export declare const decrementPageSize: (treeview: TreeViewComponent, dataItem: any) => void;
|