1 | import { LoadNextLevelEvent, MenuItemSelectedEvent, NodeCheckedEvent, NodeCollapsedEvent, NodeCreatedEvent, NodeExpandedEvent, NodeIndeterminedEvent, NodeMovedEvent, NodeRemovedEvent, NodeRenamedEvent, NodeSelectedEvent, NodeUncheckedEvent, NodeUnselectedEvent } from './tree.events';
|
2 | import { RenamableNode } from './tree.types';
|
3 | import { Tree } from './tree';
|
4 | import { TreeController } from './tree-controller';
|
5 | import { ElementRef } from '@angular/core';
|
6 | import { NodeDraggableService } from './draggable/node-draggable.service';
|
7 | import { NodeDraggableEvent } from './draggable/draggable.events';
|
8 | import { Observable, Subject } from 'rxjs';
|
9 | import * as i0 from "@angular/core";
|
10 | export declare class TreeService {
|
11 | private nodeDraggableService;
|
12 | nodeMoved$: Subject<NodeMovedEvent>;
|
13 | nodeRemoved$: Subject<NodeRemovedEvent>;
|
14 | nodeRenamed$: Subject<NodeRenamedEvent>;
|
15 | nodeCreated$: Subject<NodeCreatedEvent>;
|
16 | nodeSelected$: Subject<NodeSelectedEvent>;
|
17 | nodeUnselected$: Subject<NodeUnselectedEvent>;
|
18 | nodeExpanded$: Subject<NodeExpandedEvent>;
|
19 | nodeCollapsed$: Subject<NodeCollapsedEvent>;
|
20 | menuItemSelected$: Subject<MenuItemSelectedEvent>;
|
21 | loadNextLevel$: Subject<LoadNextLevelEvent>;
|
22 | nodeChecked$: Subject<NodeCheckedEvent>;
|
23 | nodeUnchecked$: Subject<NodeUncheckedEvent>;
|
24 | nodeIndetermined$: Subject<NodeIndeterminedEvent>;
|
25 | private controllers;
|
26 | constructor(nodeDraggableService: NodeDraggableService);
|
27 | unselectStream(tree: Tree): Observable<NodeSelectedEvent>;
|
28 | fireNodeRemoved(tree: Tree): void;
|
29 | fireNodeCreated(tree: Tree): void;
|
30 | fireNodeSelected(tree: Tree): void;
|
31 | fireNodeUnselected(tree: Tree): void;
|
32 | fireNodeRenamed(oldValue: RenamableNode | string, tree: Tree): void;
|
33 | fireNodeMoved(tree: Tree, parent: Tree): void;
|
34 | fireMenuItemSelected(tree: Tree, selectedItem: string): void;
|
35 | fireNodeSwitchFoldingType(tree: Tree): void;
|
36 | private fireNodeExpanded;
|
37 | private fireNodeCollapsed;
|
38 | private fireLoadNextLevel;
|
39 | fireNodeChecked(tree: Tree): void;
|
40 | fireNodeUnchecked(tree: Tree): void;
|
41 | draggedStream(tree: Tree, element: ElementRef): Observable<NodeDraggableEvent>;
|
42 | setController(id: string | number, controller: TreeController): void;
|
43 | deleteController(id: string | number): void;
|
44 | getController(id: string | number): TreeController;
|
45 | hasController(id: string | number): boolean;
|
46 | private shouldFireLoadNextLevel;
|
47 | fireNodeIndetermined(tree: Tree): void;
|
48 | static ɵfac: i0.ɵɵFactoryDeclaration<TreeService, never>;
|
49 | static ɵprov: i0.ɵɵInjectableDeclaration<TreeService>;
|
50 | }
|