@ali-hm/angular-tree-component 20.3.3 → 21.0.0
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ali-hm/angular-tree-component",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A simple yet powerful tree component for Angular
|
|
3
|
+
"version": "21.0.0",
|
|
4
|
+
"description": "A simple yet powerful tree component for Angular 12+",
|
|
5
5
|
"author": "ali-hm",
|
|
6
6
|
"homepage": "https://github.com/ali-hm/angular-tree-component",
|
|
7
7
|
"license": "MIT",
|
|
@@ -25,12 +25,10 @@
|
|
|
25
25
|
"angular tree component"
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": ">=
|
|
29
|
-
"@angular/core": ">=
|
|
30
|
-
"mobx": "~4.14.1"
|
|
28
|
+
"@angular/common": ">=21.0",
|
|
29
|
+
"@angular/core": ">=21.0"
|
|
31
30
|
},
|
|
32
31
|
"dependencies": {
|
|
33
|
-
"mobx": "~4.14.1",
|
|
34
32
|
"tslib": "^2.5.0"
|
|
35
33
|
},
|
|
36
34
|
"exports": {
|
|
@@ -41,11 +39,11 @@
|
|
|
41
39
|
"default": "./package.json"
|
|
42
40
|
},
|
|
43
41
|
".": {
|
|
44
|
-
"types": "./
|
|
42
|
+
"types": "./types/ali-hm-angular-tree-component.d.ts",
|
|
45
43
|
"default": "./fesm2022/ali-hm-angular-tree-component.mjs"
|
|
46
44
|
}
|
|
47
45
|
},
|
|
48
46
|
"module": "fesm2022/ali-hm-angular-tree-component.mjs",
|
|
49
|
-
"typings": "
|
|
47
|
+
"typings": "types/ali-hm-angular-tree-component.d.ts",
|
|
50
48
|
"sideEffects": false
|
|
51
49
|
}
|
|
@@ -1,34 +1,26 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Injector, OnDestroy, TemplateRef, AfterViewInit, OnInit, OnChanges, DoCheck } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
|
|
5
|
-
declare class TreeMobxAutorunDirective implements OnInit, OnDestroy {
|
|
6
|
-
protected templateRef: TemplateRef<any>;
|
|
7
|
-
protected viewContainer: ViewContainerRef;
|
|
8
|
-
protected templateBindings: {};
|
|
9
|
-
protected dispose: any;
|
|
10
|
-
protected view: EmbeddedViewRef<any>;
|
|
11
|
-
treeMobxAutorun: any;
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
shouldDetach(): any;
|
|
14
|
-
autoDetect(view: EmbeddedViewRef<any>): void;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TreeMobxAutorunDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeMobxAutorunDirective, "[treeMobxAutorun]", never, { "treeMobxAutorun": { "alias": "treeMobxAutorun"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
5
|
declare class TreeVirtualScroll {
|
|
21
6
|
private treeModel;
|
|
22
7
|
private _dispose;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
private _yBlocks;
|
|
9
|
+
private _x;
|
|
10
|
+
private _viewportHeight;
|
|
26
11
|
viewport: any;
|
|
12
|
+
get yBlocks(): number;
|
|
13
|
+
set yBlocks(value: number);
|
|
14
|
+
get x(): number;
|
|
15
|
+
set x(value: number);
|
|
16
|
+
get viewportHeight(): number | null;
|
|
17
|
+
set viewportHeight(value: number | null);
|
|
27
18
|
get y(): number;
|
|
28
19
|
get totalHeight(): number;
|
|
29
20
|
constructor();
|
|
30
21
|
fireEvent(event: any): void;
|
|
31
22
|
init(): void;
|
|
23
|
+
setupWatchers(injector: Injector): void;
|
|
32
24
|
isEnabled(): boolean;
|
|
33
25
|
private _setYBlocks;
|
|
34
26
|
recalcPositions(): void;
|
|
@@ -39,8 +31,8 @@ declare class TreeVirtualScroll {
|
|
|
39
31
|
scrollIntoView(node: any, force: any, scrollToMiddle?: boolean): void;
|
|
40
32
|
getViewportNodes(nodes: any): any;
|
|
41
33
|
fixScroll(): void;
|
|
42
|
-
static ɵfac:
|
|
43
|
-
static ɵprov:
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeVirtualScroll, never>;
|
|
35
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TreeVirtualScroll>;
|
|
44
36
|
}
|
|
45
37
|
|
|
46
38
|
/**
|
|
@@ -647,13 +639,21 @@ declare class TreeModel implements ITreeModel, OnDestroy {
|
|
|
647
639
|
nodes: any[];
|
|
648
640
|
eventNames: string[];
|
|
649
641
|
virtualScroll: TreeVirtualScroll;
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
642
|
+
private _roots;
|
|
643
|
+
private _expandedNodeIds;
|
|
644
|
+
private _selectedLeafNodeIds;
|
|
645
|
+
private _activeNodeIds;
|
|
646
|
+
private _hiddenNodeIds;
|
|
647
|
+
private _focusedNodeId;
|
|
648
|
+
private _virtualRoot;
|
|
649
|
+
get roots(): TreeNode[];
|
|
650
|
+
private set roots(value);
|
|
651
|
+
get virtualRoot(): TreeNode;
|
|
652
|
+
get focusedNode(): TreeNode;
|
|
653
|
+
get expandedNodes(): TreeNode[];
|
|
654
|
+
get activeNodes(): TreeNode[];
|
|
655
|
+
get hiddenNodes(): TreeNode[];
|
|
656
|
+
get selectedLeafNodes(): TreeNode[];
|
|
657
657
|
private firstUpdate;
|
|
658
658
|
private events;
|
|
659
659
|
private subscriptions;
|
|
@@ -668,11 +668,6 @@ declare class TreeModel implements ITreeModel, OnDestroy {
|
|
|
668
668
|
get isFocused(): boolean;
|
|
669
669
|
isNodeFocused(node: any): boolean;
|
|
670
670
|
isEmptyTree(): boolean;
|
|
671
|
-
get focusedNode(): any;
|
|
672
|
-
get expandedNodes(): any[];
|
|
673
|
-
get activeNodes(): any[];
|
|
674
|
-
get hiddenNodes(): any[];
|
|
675
|
-
get selectedLeafNodes(): any[];
|
|
676
671
|
getNodeByPath(path: any[], startNode?: any): TreeNode;
|
|
677
672
|
getNodeById(id: any): any;
|
|
678
673
|
getNodeBy(predicate: any, startNode?: any): any;
|
|
@@ -723,15 +718,27 @@ declare class TreeModel implements ITreeModel, OnDestroy {
|
|
|
723
718
|
private _calculateExpandedNodes;
|
|
724
719
|
private _setActiveNodeSingle;
|
|
725
720
|
private _setActiveNodeMulti;
|
|
726
|
-
static ɵfac:
|
|
727
|
-
static ɵprov:
|
|
721
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeModel, never>;
|
|
722
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TreeModel>;
|
|
728
723
|
}
|
|
729
724
|
|
|
730
725
|
declare class TreeNode implements ITreeNode {
|
|
731
726
|
data: any;
|
|
732
727
|
parent: TreeNode;
|
|
733
728
|
treeModel: TreeModel;
|
|
734
|
-
private
|
|
729
|
+
private _isLoadingChildren;
|
|
730
|
+
private _children;
|
|
731
|
+
private _index;
|
|
732
|
+
private _position;
|
|
733
|
+
private _height;
|
|
734
|
+
get children(): TreeNode[];
|
|
735
|
+
set children(value: TreeNode[]);
|
|
736
|
+
get index(): number;
|
|
737
|
+
set index(value: number);
|
|
738
|
+
get position(): number;
|
|
739
|
+
set position(value: number);
|
|
740
|
+
get height(): number;
|
|
741
|
+
set height(value: number);
|
|
735
742
|
get isHidden(): boolean;
|
|
736
743
|
get isExpanded(): boolean;
|
|
737
744
|
get isActive(): boolean;
|
|
@@ -739,10 +746,6 @@ declare class TreeNode implements ITreeNode {
|
|
|
739
746
|
get isSelected(): boolean;
|
|
740
747
|
get isAllSelected(): boolean;
|
|
741
748
|
get isPartiallySelected(): boolean;
|
|
742
|
-
children: TreeNode[];
|
|
743
|
-
index: number;
|
|
744
|
-
position: number;
|
|
745
|
-
height: number;
|
|
746
749
|
get level(): number;
|
|
747
750
|
get path(): string[];
|
|
748
751
|
get elementRef(): any;
|
|
@@ -898,30 +901,33 @@ declare class TreeDraggedElement {
|
|
|
898
901
|
set(draggedElement: any): void;
|
|
899
902
|
get(): any;
|
|
900
903
|
isDragging(): boolean;
|
|
901
|
-
static ɵfac:
|
|
902
|
-
static ɵprov:
|
|
904
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeDraggedElement, never>;
|
|
905
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TreeDraggedElement>;
|
|
903
906
|
}
|
|
904
907
|
|
|
905
908
|
declare class LoadingComponent {
|
|
906
|
-
template: TemplateRef<any
|
|
907
|
-
node: TreeNode
|
|
908
|
-
static ɵfac:
|
|
909
|
-
static ɵcmp:
|
|
909
|
+
readonly template: _angular_core.InputSignal<TemplateRef<any>>;
|
|
910
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
911
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LoadingComponent, never>;
|
|
912
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoadingComponent, "tree-loading-component", never, { "template": { "alias": "template"; "required": false; "isSignal": true; }; "node": { "alias": "node"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
910
913
|
}
|
|
911
914
|
|
|
912
915
|
declare class TreeViewportComponent implements AfterViewInit, OnInit, OnDestroy {
|
|
913
916
|
private elementRef;
|
|
914
917
|
virtualScroll: TreeVirtualScroll;
|
|
918
|
+
private injector;
|
|
919
|
+
private renderer;
|
|
915
920
|
setViewport: () => void;
|
|
916
921
|
private readonly scrollEventHandler;
|
|
922
|
+
private removeScrollListener;
|
|
917
923
|
constructor();
|
|
918
924
|
ngOnInit(): void;
|
|
919
925
|
ngAfterViewInit(): void;
|
|
920
926
|
ngOnDestroy(): void;
|
|
921
927
|
getTotalHeight(): string;
|
|
922
928
|
private throttle;
|
|
923
|
-
static ɵfac:
|
|
924
|
-
static ɵcmp:
|
|
929
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeViewportComponent, never>;
|
|
930
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeViewportComponent, "tree-viewport", never, {}, {}, never, ["*"], true, never>;
|
|
925
931
|
}
|
|
926
932
|
|
|
927
933
|
declare class TreeComponent implements OnChanges {
|
|
@@ -961,93 +967,109 @@ declare class TreeComponent implements OnChanges {
|
|
|
961
967
|
ngOnChanges(changes: any): void;
|
|
962
968
|
sizeChanged(): void;
|
|
963
969
|
private pick;
|
|
964
|
-
static ɵfac:
|
|
965
|
-
static ɵcmp:
|
|
970
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeComponent, never>;
|
|
971
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeComponent, "Tree, tree-root", never, { "nodes": { "alias": "nodes"; "required": false; }; "options": { "alias": "options"; "required": false; }; "focused": { "alias": "focused"; "required": false; }; "state": { "alias": "state"; "required": false; }; }, { "toggleExpanded": "toggleExpanded"; "activate": "activate"; "deactivate": "deactivate"; "nodeActivate": "nodeActivate"; "nodeDeactivate": "nodeDeactivate"; "select": "select"; "deselect": "deselect"; "focus": "focus"; "blur": "blur"; "updateData": "updateData"; "initialized": "initialized"; "moveNode": "moveNode"; "copyNode": "copyNode"; "loadNodeChildren": "loadNodeChildren"; "changeFilter": "changeFilter"; "event": "event"; "stateChange": "stateChange"; }, ["loadingTemplate", "treeNodeTemplate", "treeNodeWrapperTemplate", "treeNodeFullTemplate"], never, true, never>;
|
|
966
972
|
}
|
|
967
973
|
|
|
968
974
|
declare class TreeNodeChildrenComponent {
|
|
969
|
-
node: TreeNode
|
|
970
|
-
templates: any
|
|
971
|
-
|
|
972
|
-
static
|
|
975
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
976
|
+
readonly templates: _angular_core.InputSignal<any>;
|
|
977
|
+
children: _angular_core.Signal<TreeNode[]>;
|
|
978
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeChildrenComponent, never>;
|
|
979
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeChildrenComponent, "tree-node-children", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
973
980
|
}
|
|
974
981
|
declare class TreeNodeCollectionComponent implements OnInit, OnDestroy {
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
_nodes: any;
|
|
982
|
+
readonly nodes: _angular_core.InputSignal<TreeNode[]>;
|
|
983
|
+
readonly treeModel: _angular_core.InputSignal<TreeModel>;
|
|
984
|
+
private injector;
|
|
979
985
|
private virtualScroll;
|
|
980
|
-
templates: any
|
|
981
|
-
viewportNodes: TreeNode[]
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
setNodes(nodes: any): void;
|
|
986
|
+
readonly templates: _angular_core.InputSignal<any>;
|
|
987
|
+
viewportNodes: _angular_core.WritableSignal<TreeNode[]>;
|
|
988
|
+
marginTop: _angular_core.Signal<string>;
|
|
989
|
+
private _disposeEffects;
|
|
985
990
|
ngOnInit(): void;
|
|
986
991
|
ngOnDestroy(): void;
|
|
987
992
|
trackNode(index: any, node: any): any;
|
|
988
|
-
static ɵfac:
|
|
989
|
-
static ɵcmp:
|
|
993
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeCollectionComponent, never>;
|
|
994
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeCollectionComponent, "tree-node-collection", never, { "nodes": { "alias": "nodes"; "required": false; "isSignal": true; }; "treeModel": { "alias": "treeModel"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
990
995
|
}
|
|
991
996
|
declare class TreeNodeComponent {
|
|
992
|
-
node: TreeNode
|
|
993
|
-
index: number
|
|
994
|
-
templates: any
|
|
995
|
-
|
|
996
|
-
static
|
|
997
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
998
|
+
readonly index: _angular_core.InputSignal<number>;
|
|
999
|
+
readonly templates: _angular_core.InputSignal<any>;
|
|
1000
|
+
treeNodeFullTemplate: _angular_core.Signal<any>;
|
|
1001
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeComponent, never>;
|
|
1002
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeComponent, "TreeNode, tree-node", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
997
1003
|
}
|
|
998
1004
|
|
|
999
1005
|
declare class TreeNodeContent {
|
|
1000
|
-
node: TreeNode
|
|
1001
|
-
index: number
|
|
1002
|
-
template: TemplateRef<any
|
|
1003
|
-
static ɵfac:
|
|
1004
|
-
static ɵcmp:
|
|
1006
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
1007
|
+
readonly index: _angular_core.InputSignal<number>;
|
|
1008
|
+
readonly template: _angular_core.InputSignal<TemplateRef<any>>;
|
|
1009
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeContent, never>;
|
|
1010
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeContent, "tree-node-content", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "template": { "alias": "template"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1005
1011
|
}
|
|
1006
1012
|
|
|
1007
1013
|
declare class TreeNodeDropSlot {
|
|
1008
|
-
node: TreeNode
|
|
1009
|
-
dropIndex: number
|
|
1014
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
1015
|
+
readonly dropIndex: _angular_core.InputSignal<number>;
|
|
1010
1016
|
onDrop($event: any): void;
|
|
1011
1017
|
allowDrop(element: any, $event: any): boolean;
|
|
1012
|
-
static ɵfac:
|
|
1013
|
-
static ɵcmp:
|
|
1018
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeDropSlot, never>;
|
|
1019
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeDropSlot, "TreeNodeDropSlot, tree-node-drop-slot", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; "dropIndex": { "alias": "dropIndex"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1014
1020
|
}
|
|
1015
1021
|
|
|
1016
1022
|
declare class TreeNodeExpanderComponent {
|
|
1017
|
-
node: TreeNode
|
|
1018
|
-
|
|
1019
|
-
static
|
|
1023
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
1024
|
+
readonly hasChildren: _angular_core.Signal<boolean>;
|
|
1025
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeExpanderComponent, never>;
|
|
1026
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeExpanderComponent, "tree-node-expander", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1020
1027
|
}
|
|
1021
1028
|
|
|
1022
1029
|
declare class TreeNodeWrapperComponent {
|
|
1023
|
-
node: TreeNode
|
|
1024
|
-
index: number
|
|
1025
|
-
templates: any
|
|
1026
|
-
|
|
1027
|
-
static
|
|
1030
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
1031
|
+
readonly index: _angular_core.InputSignal<number>;
|
|
1032
|
+
readonly templates: _angular_core.InputSignal<any>;
|
|
1033
|
+
treeNodeWrapperTemplate: _angular_core.Signal<any>;
|
|
1034
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeWrapperComponent, never>;
|
|
1035
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeWrapperComponent, "tree-node-wrapper", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "templates": { "alias": "templates"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1028
1036
|
}
|
|
1029
1037
|
|
|
1030
1038
|
declare class TreeNodeCheckboxComponent {
|
|
1031
|
-
node: TreeNode
|
|
1032
|
-
static ɵfac:
|
|
1033
|
-
static ɵcmp:
|
|
1039
|
+
readonly node: _angular_core.InputSignal<TreeNode>;
|
|
1040
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeNodeCheckboxComponent, never>;
|
|
1041
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TreeNodeCheckboxComponent, "tree-node-checkbox", never, { "node": { "alias": "node"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1034
1042
|
}
|
|
1035
1043
|
|
|
1036
1044
|
declare class TreeDropDirective implements AfterViewInit, OnDestroy {
|
|
1037
1045
|
private el;
|
|
1038
1046
|
private renderer;
|
|
1039
1047
|
private treeDraggedElement;
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
onDropCallback:
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1048
|
+
readonly allowDragoverStyling: _angular_core.InputSignal<boolean>;
|
|
1049
|
+
readonly treeAllowDrop: _angular_core.InputSignal<boolean | Function>;
|
|
1050
|
+
readonly onDropCallback: _angular_core.OutputEmitterRef<{
|
|
1051
|
+
event: DragEvent;
|
|
1052
|
+
element: any;
|
|
1053
|
+
}>;
|
|
1054
|
+
readonly onDragOverCallback: _angular_core.OutputEmitterRef<{
|
|
1055
|
+
event: DragEvent;
|
|
1056
|
+
element: any;
|
|
1057
|
+
}>;
|
|
1058
|
+
readonly onDragLeaveCallback: _angular_core.OutputEmitterRef<{
|
|
1059
|
+
event: DragEvent;
|
|
1060
|
+
element: any;
|
|
1061
|
+
}>;
|
|
1062
|
+
readonly onDragEnterCallback: _angular_core.OutputEmitterRef<{
|
|
1063
|
+
event: DragEvent;
|
|
1064
|
+
element: any;
|
|
1065
|
+
}>;
|
|
1046
1066
|
private readonly dragOverEventHandler;
|
|
1047
1067
|
private readonly dragEnterEventHandler;
|
|
1048
1068
|
private readonly dragLeaveEventHandler;
|
|
1069
|
+
private dragOverUnlisten;
|
|
1070
|
+
private dragEnterUnlisten;
|
|
1071
|
+
private dragLeaveUnlisten;
|
|
1049
1072
|
private _allowDrop;
|
|
1050
|
-
set treeAllowDrop(allowDrop: any);
|
|
1051
1073
|
allowDrop($event: any): boolean;
|
|
1052
1074
|
constructor();
|
|
1053
1075
|
ngAfterViewInit(): void;
|
|
@@ -1060,18 +1082,18 @@ declare class TreeDropDirective implements AfterViewInit, OnDestroy {
|
|
|
1060
1082
|
private removeClass;
|
|
1061
1083
|
private addDisabledClass;
|
|
1062
1084
|
private removeDisabledClass;
|
|
1063
|
-
static ɵfac:
|
|
1064
|
-
static ɵdir:
|
|
1085
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeDropDirective, never>;
|
|
1086
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeDropDirective, "[treeDrop]", never, { "allowDragoverStyling": { "alias": "allowDragoverStyling"; "required": false; "isSignal": true; }; "treeAllowDrop": { "alias": "treeAllowDrop"; "required": false; "isSignal": true; }; }, { "onDropCallback": "treeDrop"; "onDragOverCallback": "treeDropDragOver"; "onDragLeaveCallback": "treeDropDragLeave"; "onDragEnterCallback": "treeDropDragEnter"; }, never, never, true, never>;
|
|
1065
1087
|
}
|
|
1066
1088
|
|
|
1067
1089
|
declare class TreeDragDirective implements AfterViewInit, DoCheck, OnDestroy {
|
|
1068
1090
|
private el;
|
|
1069
1091
|
private renderer;
|
|
1070
1092
|
private treeDraggedElement;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
treeDragEnabled: any;
|
|
1093
|
+
readonly draggedElement: _angular_core.InputSignal<any>;
|
|
1094
|
+
readonly treeDragEnabled: _angular_core.InputSignal<any>;
|
|
1074
1095
|
private readonly dragEventHandler;
|
|
1096
|
+
private dragUnlisten;
|
|
1075
1097
|
constructor();
|
|
1076
1098
|
ngAfterViewInit(): void;
|
|
1077
1099
|
ngDoCheck(): void;
|
|
@@ -1079,33 +1101,41 @@ declare class TreeDragDirective implements AfterViewInit, DoCheck, OnDestroy {
|
|
|
1079
1101
|
onDragStart(ev: any): void;
|
|
1080
1102
|
onDrag(ev: any): void;
|
|
1081
1103
|
onDragEnd(): void;
|
|
1082
|
-
static ɵfac:
|
|
1083
|
-
static ɵdir:
|
|
1104
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeDragDirective, never>;
|
|
1105
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeDragDirective, "[treeDrag]", never, { "draggedElement": { "alias": "treeDrag"; "required": false; "isSignal": true; }; "treeDragEnabled": { "alias": "treeDragEnabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1084
1106
|
}
|
|
1085
1107
|
|
|
1086
|
-
declare class TreeAnimateOpenDirective {
|
|
1108
|
+
declare class TreeAnimateOpenDirective implements OnDestroy {
|
|
1087
1109
|
private renderer;
|
|
1088
1110
|
private templateRef;
|
|
1089
1111
|
private viewContainerRef;
|
|
1090
|
-
|
|
1091
|
-
animateSpeed: number
|
|
1092
|
-
animateAcceleration: number
|
|
1093
|
-
isEnabled: boolean
|
|
1094
|
-
set isOpen(value: boolean);
|
|
1112
|
+
readonly isOpen: _angular_core.InputSignal<boolean>;
|
|
1113
|
+
readonly animateSpeed: _angular_core.InputSignal<number>;
|
|
1114
|
+
readonly animateAcceleration: _angular_core.InputSignal<number>;
|
|
1115
|
+
readonly isEnabled: _angular_core.InputSignal<boolean>;
|
|
1095
1116
|
private innerElement;
|
|
1117
|
+
private previousIsOpen;
|
|
1118
|
+
private startOpenTimeout;
|
|
1119
|
+
private openInterval;
|
|
1120
|
+
private closeInterval;
|
|
1121
|
+
constructor();
|
|
1096
1122
|
private _show;
|
|
1097
1123
|
private _hide;
|
|
1098
1124
|
private _animateOpen;
|
|
1099
1125
|
private _animateClose;
|
|
1100
|
-
|
|
1101
|
-
|
|
1126
|
+
ngOnDestroy(): void;
|
|
1127
|
+
private clearTimers;
|
|
1128
|
+
private clearOpenInterval;
|
|
1129
|
+
private clearCloseInterval;
|
|
1130
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeAnimateOpenDirective, never>;
|
|
1131
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TreeAnimateOpenDirective, "[treeAnimateOpen]", never, { "isOpen": { "alias": "treeAnimateOpen"; "required": false; "isSignal": true; }; "animateSpeed": { "alias": "treeAnimateOpenSpeed"; "required": false; "isSignal": true; }; "animateAcceleration": { "alias": "treeAnimateOpenAcceleration"; "required": false; "isSignal": true; }; "isEnabled": { "alias": "treeAnimateOpenEnabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1102
1132
|
}
|
|
1103
1133
|
|
|
1104
1134
|
declare class TreeModule {
|
|
1105
|
-
static ɵfac:
|
|
1106
|
-
static ɵmod:
|
|
1107
|
-
static ɵinj:
|
|
1135
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TreeModule, never>;
|
|
1136
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TreeModule, never, [typeof i1.CommonModule, typeof TreeComponent, typeof TreeNodeComponent, typeof TreeNodeContent, typeof LoadingComponent, typeof TreeDropDirective, typeof TreeDragDirective, typeof TreeNodeExpanderComponent, typeof TreeNodeChildrenComponent, typeof TreeNodeDropSlot, typeof TreeNodeCollectionComponent, typeof TreeViewportComponent, typeof TreeNodeWrapperComponent, typeof TreeNodeCheckboxComponent, typeof TreeAnimateOpenDirective], [typeof TreeComponent, typeof TreeNodeComponent, typeof TreeNodeContent, typeof LoadingComponent, typeof TreeDropDirective, typeof TreeDragDirective, typeof TreeNodeExpanderComponent, typeof TreeNodeChildrenComponent, typeof TreeNodeDropSlot, typeof TreeNodeCollectionComponent, typeof TreeViewportComponent, typeof TreeNodeWrapperComponent, typeof TreeNodeCheckboxComponent, typeof TreeAnimateOpenDirective]>;
|
|
1137
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TreeModule>;
|
|
1108
1138
|
}
|
|
1109
1139
|
|
|
1110
|
-
export { KEYS, LoadingComponent, TREE_ACTIONS, TreeAnimateOpenDirective, TreeComponent, TreeDragDirective, TreeDraggedElement, TreeDropDirective,
|
|
1140
|
+
export { KEYS, LoadingComponent, TREE_ACTIONS, TreeAnimateOpenDirective, TreeComponent, TreeDragDirective, TreeDraggedElement, TreeDropDirective, TreeModel, TreeModule, TreeNode, TreeNodeCheckboxComponent, TreeNodeChildrenComponent, TreeNodeCollectionComponent, TreeNodeComponent, TreeNodeContent, TreeNodeDropSlot, TreeNodeExpanderComponent, TreeNodeWrapperComponent, TreeViewportComponent, TreeVirtualScroll };
|
|
1111
1141
|
export type { IActionHandler, IActionMapping, IAllowDragFn, IAllowDropFn, ITreeOptions, ITreeState };
|