@progress/kendo-angular-treeview 24.2.2 → 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,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 { Observable } from 'rxjs';
|
|
6
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
7
|
-
import { LoadMoreRequestArgs } from './load-more-request-args';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* Represents the directive that enables you to display only a limited number of nodes per level
|
|
11
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button)).
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <kendo-treeview
|
|
16
|
-
* ...
|
|
17
|
-
* kendoTreeViewLoadMore
|
|
18
|
-
* [pageSize]="10"
|
|
19
|
-
* [totalRootNodes]="100"
|
|
20
|
-
* totalField="totalChildren">
|
|
21
|
-
* </kendo-treeview>
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* @remarks
|
|
25
|
-
* Applied to: {@link TreeViewComponent}
|
|
26
|
-
*/
|
|
27
|
-
export declare class LoadMoreDirective {
|
|
28
|
-
private treeview;
|
|
29
|
-
/**
|
|
30
|
-
* Sets the callback function that runs when the load more button is clicked.
|
|
31
|
-
* Provide a function when you fetch additional nodes on demand
|
|
32
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#remote-data)).
|
|
33
|
-
*
|
|
34
|
-
*/
|
|
35
|
-
set loadMoreNodes(loadMoreNodes: ((loadMoreArgs: LoadMoreRequestArgs) => Observable<any[]>) | string);
|
|
36
|
-
/**
|
|
37
|
-
* Sets the initial number of nodes to render on each level.
|
|
38
|
-
* Each time the load more button is clicked, the page size increases by this number.
|
|
39
|
-
*/
|
|
40
|
-
pageSize: number;
|
|
41
|
-
/**
|
|
42
|
-
* Sets the total number of root nodes.
|
|
43
|
-
* Use this property when you fetch additional nodes on demand
|
|
44
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#remote-data)).
|
|
45
|
-
*/
|
|
46
|
-
totalRootNodes: number;
|
|
47
|
-
/**
|
|
48
|
-
* Sets the field that contains the total number of child nodes for the data item.
|
|
49
|
-
* Use this property when you fetch additional nodes on demand
|
|
50
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button#remote-data)).
|
|
51
|
-
*/
|
|
52
|
-
totalField: string;
|
|
53
|
-
/**
|
|
54
|
-
* Keeps track of the current page size of each node over expand/collapse cycles.
|
|
55
|
-
*/
|
|
56
|
-
private pageSizes;
|
|
57
|
-
/**
|
|
58
|
-
* Used as an identifier for the root page size as the root collection of nodes is not associated with a data item.
|
|
59
|
-
*/
|
|
60
|
-
private rootLevelId;
|
|
61
|
-
constructor(treeview: TreeViewComponent);
|
|
62
|
-
ngOnChanges(): void;
|
|
63
|
-
private verifySettings;
|
|
64
|
-
private getGroupSize;
|
|
65
|
-
private setGroupSize;
|
|
66
|
-
private getTotalNodesCount;
|
|
67
|
-
private getInitalPageSize;
|
|
68
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadMoreDirective, never>;
|
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LoadMoreDirective, "[kendoTreeViewLoadMore]", never, { "loadMoreNodes": { "alias": "kendoTreeViewLoadMore"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "totalRootNodes": { "alias": "totalRootNodes"; "required": false; }; "totalField": { "alias": "totalField"; "required": false; }; }, {}, never, never, true, never>;
|
|
70
|
-
}
|
|
@@ -1,36 +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 { Observable } from 'rxjs';
|
|
6
|
-
import { LoadMoreRequestArgs } from './load-more-request-args';
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export interface LoadMoreService {
|
|
11
|
-
/**
|
|
12
|
-
* Specifies the callback that will be executed when the load more button is clicked.
|
|
13
|
-
* Providing a `loadMoreNodes` function is only required when additional nodes are fetched from the server on demand.
|
|
14
|
-
*/
|
|
15
|
-
loadMoreNodes?: (loadMoreArgs: LoadMoreRequestArgs) => Observable<any[]>;
|
|
16
|
-
/**
|
|
17
|
-
* Specifies the initial number of nodes that will be rendered for the specified data item children group.
|
|
18
|
-
* Every time the load more button is clicked, the data item page size will be incremented with this number.
|
|
19
|
-
*/
|
|
20
|
-
getInitialPageSize: (dataItem: any) => number;
|
|
21
|
-
/**
|
|
22
|
-
* Gets the current page size for the targeted data item children collection.
|
|
23
|
-
*/
|
|
24
|
-
getGroupSize: (dataItem: any) => number;
|
|
25
|
-
/**
|
|
26
|
-
* Sets the current page size for the targeted data item children collection.
|
|
27
|
-
*/
|
|
28
|
-
setGroupSize: (dataItem: any, pageSize: number) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves the total number of child nodes for the targeted data item.
|
|
31
|
-
*
|
|
32
|
-
* @param dataItem The parent item of the checked group.
|
|
33
|
-
* @param loadedNodesCount The number of already loaded nodes via the `children` function.
|
|
34
|
-
*/
|
|
35
|
-
getTotalNodesCount: (dataItem: any, loadedNodesCount: number) => number;
|
|
36
|
-
}
|
|
@@ -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 { ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
|
6
|
-
import { ExpandStateService } from './expand-state.service';
|
|
7
|
-
import { LoadingNotificationService } from './loading-notification.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export declare class LoadingIndicatorDirective implements OnInit, OnDestroy {
|
|
13
|
-
protected expandService: ExpandStateService;
|
|
14
|
-
protected loadingService: LoadingNotificationService;
|
|
15
|
-
protected cd: ChangeDetectorRef;
|
|
16
|
-
get loading(): boolean;
|
|
17
|
-
set loading(value: boolean);
|
|
18
|
-
set index(value: string);
|
|
19
|
-
get index(): string;
|
|
20
|
-
private _index;
|
|
21
|
-
private _loading;
|
|
22
|
-
private cancelLoading$;
|
|
23
|
-
private subscription;
|
|
24
|
-
constructor(expandService: ExpandStateService, loadingService: LoadingNotificationService, cd: ChangeDetectorRef);
|
|
25
|
-
ngOnInit(): void;
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicatorDirective, never>;
|
|
28
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LoadingIndicatorDirective, "[kendoTreeViewLoading]", ["kendoTreeViewLoading"], { "index": { "alias": "kendoTreeViewLoading"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,15 +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 LoadingNotificationService {
|
|
11
|
-
changes: Subject<string>;
|
|
12
|
-
notifyLoaded(index: string): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingNotificationService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoadingNotificationService>;
|
|
15
|
-
}
|
|
@@ -1,28 +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 { TreeViewMessages } from "./messages";
|
|
6
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Represents the custom messages component of the TreeView.
|
|
10
|
-
*
|
|
11
|
-
* Use this component to override default messages for the TreeView.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```html
|
|
15
|
-
* <kendo-treeview>
|
|
16
|
-
* <kendo-treeview-messages
|
|
17
|
-
* loadMore="Load more items">
|
|
18
|
-
* </kendo-treeview-messages>
|
|
19
|
-
* </kendo-treeview>
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
export declare class CustomMessagesComponent extends TreeViewMessages {
|
|
23
|
-
protected service: LocalizationService;
|
|
24
|
-
constructor(service: LocalizationService);
|
|
25
|
-
protected get override(): boolean;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CustomMessagesComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomMessagesComponent, "kendo-treeview-messages", never, {}, {}, never, never, true, never>;
|
|
28
|
-
}
|
|
@@ -1,16 +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 { TreeViewMessages } from "./messages";
|
|
6
|
-
import { LocalizationService } from "@progress/kendo-angular-l10n";
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class LocalizedMessagesDirective extends TreeViewMessages {
|
|
12
|
-
protected service: LocalizationService;
|
|
13
|
-
constructor(service: LocalizationService);
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedMessagesDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LocalizedMessagesDirective, "[kendoTreeViewLocalizedMessages]", never, {}, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -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 { ComponentMessages } from "@progress/kendo-angular-l10n";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class TreeViewMessages extends ComponentMessages {
|
|
11
|
-
/**
|
|
12
|
-
* Sets the text for the `Load More` button title.
|
|
13
|
-
*/
|
|
14
|
-
loadMore: string;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TreeViewMessages, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeViewMessages, "kendo-treeview-messages-base", never, { "loadMore": { "alias": "loadMore"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,16 +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 interface NavigationItem {
|
|
9
|
-
id: number;
|
|
10
|
-
children: NavigationItem[];
|
|
11
|
-
index: string;
|
|
12
|
-
parent: NavigationItem;
|
|
13
|
-
disabled: boolean;
|
|
14
|
-
visible: boolean;
|
|
15
|
-
loadMoreButton: boolean;
|
|
16
|
-
}
|
|
@@ -1,28 +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 { NavigationItem } from './navigation-item.interface';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare class NavigationModel {
|
|
10
|
-
private ib;
|
|
11
|
-
private nodes;
|
|
12
|
-
firstVisibleNode(): NavigationItem;
|
|
13
|
-
lastVisibleNode(): NavigationItem;
|
|
14
|
-
closestNode(index: string): NavigationItem;
|
|
15
|
-
firstFocusableNode(): NavigationItem;
|
|
16
|
-
findNode(index: string): NavigationItem;
|
|
17
|
-
findParent(index: string): NavigationItem;
|
|
18
|
-
findVisibleChild(index: string): NavigationItem;
|
|
19
|
-
findVisiblePrev(item: NavigationItem): NavigationItem;
|
|
20
|
-
findVisibleNext(item: NavigationItem): NavigationItem;
|
|
21
|
-
registerItem(id: number, index: string, disabled: boolean, loadMoreButton?: boolean, visible?: boolean): void;
|
|
22
|
-
unregisterItem(id: number, index: string): void;
|
|
23
|
-
private childLevel;
|
|
24
|
-
private container;
|
|
25
|
-
private find;
|
|
26
|
-
private insert;
|
|
27
|
-
private visibleSibling;
|
|
28
|
-
}
|
|
@@ -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
|
-
/**
|
|
6
|
-
* @hidden
|
|
7
|
-
*/
|
|
8
|
-
export interface NavigationState {
|
|
9
|
-
expand: boolean;
|
|
10
|
-
isFocused: boolean;
|
|
11
|
-
index: string;
|
|
12
|
-
shouldScroll: boolean;
|
|
13
|
-
shouldFocus: boolean;
|
|
14
|
-
}
|
|
@@ -1,68 +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 { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
|
-
import { Subject } from 'rxjs';
|
|
7
|
-
import { NavigationItem } from './navigation-item.interface';
|
|
8
|
-
import { NavigationModel } from './navigation-model';
|
|
9
|
-
import { NavigationState } from './navigation-state.interface';
|
|
10
|
-
import { SelectionMode } from '../selection/selection-mode';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
export declare class NavigationService {
|
|
16
|
-
private localization;
|
|
17
|
-
readonly expands: Subject<NavigationState>;
|
|
18
|
-
readonly moves: Subject<NavigationState>;
|
|
19
|
-
readonly checks: Subject<string>;
|
|
20
|
-
readonly selects: Subject<string>;
|
|
21
|
-
readonly deselectAllButCurrentItem: Subject<any>;
|
|
22
|
-
readonly loadMore: Subject<string>;
|
|
23
|
-
navigable: boolean;
|
|
24
|
-
selection: SelectionMode;
|
|
25
|
-
isTreeViewActive: boolean;
|
|
26
|
-
get model(): NavigationModel;
|
|
27
|
-
set model(model: NavigationModel);
|
|
28
|
-
actions: {
|
|
29
|
-
[x: string]: Function;
|
|
30
|
-
};
|
|
31
|
-
private activeItem;
|
|
32
|
-
private isFocused;
|
|
33
|
-
private shouldScroll;
|
|
34
|
-
private shouldFocus;
|
|
35
|
-
private _model;
|
|
36
|
-
private get activeIndex();
|
|
37
|
-
private get isActiveExpanded();
|
|
38
|
-
private get isLoadMoreButton();
|
|
39
|
-
get focusableItem(): NavigationItem;
|
|
40
|
-
constructor(localization: LocalizationService);
|
|
41
|
-
activate(item: NavigationItem, shouldScroll?: boolean, shouldFocus?: boolean): void;
|
|
42
|
-
activateParent(index: string, shouldFocus?: boolean): void;
|
|
43
|
-
activateIndex(index: string, shouldFocus?: boolean): void;
|
|
44
|
-
activateClosest(index: string): void;
|
|
45
|
-
activateFocusable(): void;
|
|
46
|
-
setFocusableItem(index: string): void;
|
|
47
|
-
deactivate(): void;
|
|
48
|
-
checkIndex(index: string): void;
|
|
49
|
-
selectIndex(index: string): void;
|
|
50
|
-
notifyLoadMore(index: string): void;
|
|
51
|
-
isActive(index: string): boolean;
|
|
52
|
-
isFocusable(index: string): boolean;
|
|
53
|
-
isDisabled(index: string): boolean;
|
|
54
|
-
registerItem(id: number, index: string, disabled: boolean, loadMoreButton?: boolean, visible?: boolean): void;
|
|
55
|
-
updateItem(index: string, disabled: boolean, visible?: boolean): void;
|
|
56
|
-
unregisterItem(id: number, index: string): void;
|
|
57
|
-
move(e: any): void;
|
|
58
|
-
private expand;
|
|
59
|
-
private moveToParent;
|
|
60
|
-
private moveToFirstVisibleChild;
|
|
61
|
-
private notifyExpand;
|
|
62
|
-
private notifyMove;
|
|
63
|
-
private navigationState;
|
|
64
|
-
private handleEnter;
|
|
65
|
-
private handleSpace;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationService, never>;
|
|
67
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NavigationService>;
|
|
68
|
-
}
|
|
@@ -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 { Subject } from "rxjs";
|
|
6
|
-
import { TreeItem } from './treeitem.interface';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export declare class NodeChildrenService {
|
|
12
|
-
changes: Subject<{
|
|
13
|
-
item: TreeItem;
|
|
14
|
-
children: TreeItem[];
|
|
15
|
-
}>;
|
|
16
|
-
childrenLoaded(item: TreeItem, children: TreeItem[]): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NodeChildrenService, never>;
|
|
18
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NodeChildrenService>;
|
|
19
|
-
}
|
|
@@ -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 { TreeItem } from './treeitem.interface';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the arguments for the `nodeClick` event.
|
|
8
|
-
*/
|
|
9
|
-
export interface NodeClickEvent {
|
|
10
|
-
/**
|
|
11
|
-
* The clicked `TreeItem`.
|
|
12
|
-
*/
|
|
13
|
-
item?: TreeItem;
|
|
14
|
-
/**
|
|
15
|
-
* The DOM event that triggers the node click event.
|
|
16
|
-
*/
|
|
17
|
-
originalEvent?: any;
|
|
18
|
-
/**
|
|
19
|
-
* The type of click event that occurred.
|
|
20
|
-
*/
|
|
21
|
-
type?: 'click' | 'contextmenu';
|
|
22
|
-
}
|
|
@@ -1,34 +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 TreeView nodes ([more information and example](https://www.telerik.com/kendo-angular-ui/components/treeview/node-template)).
|
|
9
|
-
*
|
|
10
|
-
* Use this template to customize the content of the nodes. To define the node template, nest an `<ng-template>`
|
|
11
|
-
* tag with the `kendoTreeViewNodeTemplate` directive inside a `<kendo-treeview>` tag.
|
|
12
|
-
*
|
|
13
|
-
* The template context provides the node data item and its hierarchical index as variables:
|
|
14
|
-
*
|
|
15
|
-
* - `let-dataItem`—The data item for the current node.
|
|
16
|
-
* - `let-index="index"`—The hierarchical index of the current node.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```html
|
|
20
|
-
* <kendo-treeview>
|
|
21
|
-
* <ng-template kendoTreeViewNodeTemplate let-dataItem let-index="index">
|
|
22
|
-
* <span [style.fontWeight]="dataItem.items ? 'bolder': 'normal' ">
|
|
23
|
-
* {{ index }}: {{ dataItem.text }}
|
|
24
|
-
* </span>
|
|
25
|
-
* </ng-template>
|
|
26
|
-
* </kendo-treeview>
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare class NodeTemplateDirective {
|
|
30
|
-
templateRef: TemplateRef<any>;
|
|
31
|
-
constructor(templateRef: TemplateRef<any>);
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NodeTemplateDirective, [{ optional: true; }]>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NodeTemplateDirective, "[kendoTreeViewNodeTemplate]", never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
package/package-metadata.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
|
-
import { type PackageMetadata } from '@progress/kendo-licensing';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export declare const packageMetadata: PackageMetadata;
|
|
@@ -1,77 +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, OnChanges, SimpleChanges } from '@angular/core';
|
|
6
|
-
import { TreeViewComponent } from '../treeview.component';
|
|
7
|
-
import { SelectableSettings } from './selectable-settings';
|
|
8
|
-
import { Subscription } from 'rxjs';
|
|
9
|
-
import { TreeItem } from '../treeitem.interface';
|
|
10
|
-
import { NavigationService } from '../navigation/navigation.service';
|
|
11
|
-
import * as i0 from "@angular/core";
|
|
12
|
-
/**
|
|
13
|
-
* Manages the in-memory selection state of TreeView nodes
|
|
14
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection)).
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```html
|
|
18
|
-
* <kendo-treeview
|
|
19
|
-
* ...
|
|
20
|
-
* kendoTreeViewSelectable
|
|
21
|
-
* selectBy="id"
|
|
22
|
-
* [(selectedKeys)]="selectedKeys"
|
|
23
|
-
* >
|
|
24
|
-
* </kendo-treeview>
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* Applied to: {@link TreeViewComponent}
|
|
29
|
-
*/
|
|
30
|
-
export declare class SelectDirective implements OnDestroy, OnChanges {
|
|
31
|
-
protected treeView: TreeViewComponent;
|
|
32
|
-
private navigationService;
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
set isSelected(value: (item: object, index: string) => boolean);
|
|
37
|
-
/**
|
|
38
|
-
* Sets the item key stored in the `selectedKeys` collection.
|
|
39
|
-
*/
|
|
40
|
-
selectKey: string | ((context: TreeItem) => any);
|
|
41
|
-
/**
|
|
42
|
-
* Sets the current selection mode
|
|
43
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection)).
|
|
44
|
-
*/
|
|
45
|
-
selection: boolean | SelectableSettings | string;
|
|
46
|
-
/**
|
|
47
|
-
* Defines the collection that stores the selected keys
|
|
48
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection)).
|
|
49
|
-
*/
|
|
50
|
-
selectedKeys: any[];
|
|
51
|
-
/**
|
|
52
|
-
* Emits when the `selectedKeys` collection updates.
|
|
53
|
-
*/
|
|
54
|
-
selectedKeysChange: EventEmitter<any[]>;
|
|
55
|
-
get getAriaMultiselectable(): boolean;
|
|
56
|
-
protected subscriptions: Subscription;
|
|
57
|
-
private get options();
|
|
58
|
-
private selectActions;
|
|
59
|
-
/**
|
|
60
|
-
* Reflects the internal `selectedKeys` state.
|
|
61
|
-
*/
|
|
62
|
-
private state;
|
|
63
|
-
/**
|
|
64
|
-
* Holds the last emitted `selectedKeys` collection.
|
|
65
|
-
*/
|
|
66
|
-
private lastChange;
|
|
67
|
-
constructor(treeView: TreeViewComponent, navigationService: NavigationService);
|
|
68
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
69
|
-
ngOnDestroy(): void;
|
|
70
|
-
protected itemKey(e: any): any;
|
|
71
|
-
protected select(e: any): void;
|
|
72
|
-
protected selectSingle(node: any): void;
|
|
73
|
-
protected selectMultiple(node: any): void;
|
|
74
|
-
private notify;
|
|
75
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectDirective, never>;
|
|
76
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectDirective, "[kendoTreeViewSelectable]", never, { "isSelected": { "alias": "isSelected"; "required": false; }; "selectKey": { "alias": "selectBy"; "required": false; }; "selection": { "alias": "kendoTreeViewSelectable"; "required": false; }; "selectedKeys": { "alias": "selectedKeys"; "required": false; }; }, { "selectedKeysChange": "selectedKeysChange"; }, never, never, true, never>;
|
|
77
|
-
}
|
|
@@ -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 { SelectionMode } from './selection-mode';
|
|
6
|
-
/**
|
|
7
|
-
* Represents the selection settings for the TreeView component.
|
|
8
|
-
*/
|
|
9
|
-
export interface SelectableSettings {
|
|
10
|
-
/**
|
|
11
|
-
* Determines whether TreeView nodes can be selected.
|
|
12
|
-
* @default true
|
|
13
|
-
*/
|
|
14
|
-
enabled?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Specifies whether single or multiple nodes can be selected.
|
|
17
|
-
* @default 'single'
|
|
18
|
-
*/
|
|
19
|
-
mode?: SelectionMode;
|
|
20
|
-
}
|
|
@@ -1,12 +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 available selection modes of the TreeView component.
|
|
7
|
-
*
|
|
8
|
-
* The possible values are:
|
|
9
|
-
* * `"single"`—Only one item can be selected at a time.
|
|
10
|
-
* * `"multiple"`—Multiple items can be selected.
|
|
11
|
-
*/
|
|
12
|
-
export type SelectionMode = "single" | "multiple";
|
|
@@ -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 { Subject } from "rxjs";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* @hidden
|
|
9
|
-
*/
|
|
10
|
-
export declare class SelectionService {
|
|
11
|
-
readonly changes: Subject<{
|
|
12
|
-
dataItem: any;
|
|
13
|
-
index: string;
|
|
14
|
-
}>;
|
|
15
|
-
private firstIndex;
|
|
16
|
-
isFirstSelected(index: string): boolean;
|
|
17
|
-
setFirstSelected(index: string, selected: boolean): void;
|
|
18
|
-
select(index: string, dataItem: any): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SelectionService>;
|
|
21
|
-
}
|
package/size.d.ts
DELETED
|
@@ -1,8 +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 possible size options for the TreeView.
|
|
7
|
-
*/
|
|
8
|
-
export type TreeViewSize = 'small' | 'medium' | 'large';
|
|
@@ -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
|
-
import { TreeItem } from './treeitem.interface';
|
|
6
|
-
/**
|
|
7
|
-
* Represents a node-tree lookup structure that stores information about the current node, its parent, and its children
|
|
8
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/checkboxes#modifying-the-checked-state)).
|
|
9
|
-
*/
|
|
10
|
-
export interface ItemLookup {
|
|
11
|
-
/**
|
|
12
|
-
* The current `TreeItem` instance.
|
|
13
|
-
*/
|
|
14
|
-
item: TreeItem;
|
|
15
|
-
/**
|
|
16
|
-
* The children of the current node.
|
|
17
|
-
*/
|
|
18
|
-
children?: TreeItem[];
|
|
19
|
-
/**
|
|
20
|
-
* The parent of the current node.
|
|
21
|
-
*/
|
|
22
|
-
parent?: ItemLookup;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Represents a node-tree lookup structure that stores information about the current node, its parent, and its children.
|
|
26
|
-
* Used in the [`checkedChange`](https://www.telerik.com/kendo-angular-ui/components/treeview/api/treeviewcomponent#checkedchange) event of the TreeView ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/checkboxes#modifying-the-checked-state)).
|
|
27
|
-
*/
|
|
28
|
-
export interface TreeItemLookup {
|
|
29
|
-
/**
|
|
30
|
-
* The current `TreeItem` instance.
|
|
31
|
-
*/
|
|
32
|
-
item: TreeItem;
|
|
33
|
-
/**
|
|
34
|
-
* The lookup details for the parent of the current TreeView node.
|
|
35
|
-
*/
|
|
36
|
-
parent?: ItemLookup;
|
|
37
|
-
/**
|
|
38
|
-
* The lookup details for the children of the current TreeView node.
|
|
39
|
-
*/
|
|
40
|
-
children?: TreeItemLookup[];
|
|
41
|
-
}
|
package/treeitem.interface.d.ts
DELETED
|
@@ -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
|
-
/**
|
|
6
|
-
* Represents a TreeView node.
|
|
7
|
-
*/
|
|
8
|
-
export interface TreeItem {
|
|
9
|
-
/**
|
|
10
|
-
* The data item associated with the TreeView node
|
|
11
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection#modifying-the-selection-behavior)).
|
|
12
|
-
*/
|
|
13
|
-
dataItem: any;
|
|
14
|
-
/**
|
|
15
|
-
* The auto-generated hierarchical index of the TreeView node
|
|
16
|
-
* ([see example](https://www.telerik.com/kendo-angular-ui/components/treeview/selection#modifying-the-selection-behavior)).
|
|
17
|
-
*/
|
|
18
|
-
index: string;
|
|
19
|
-
}
|