1 | import { AfterViewInit, ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
2 | import * as TreeTypes from './tree.types';
|
3 | import { Tree } from './tree';
|
4 | import { TreeController } from './tree-controller';
|
5 | import { NodeMenuService } from './menu/node-menu.service';
|
6 | import { NodeMenuItemSelectedEvent } from './menu/menu.events';
|
7 | import { NodeEditableEvent } from './editable/editable.events';
|
8 | import { TreeService } from './tree.service';
|
9 | import * as i0 from "@angular/core";
|
10 | export declare class TreeInternalComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
11 | private nodeMenuService;
|
12 | treeService: TreeService;
|
13 | nodeElementRef: ElementRef;
|
14 | tree: Tree;
|
15 | settings: TreeTypes.Ng2TreeSettings;
|
16 | template: TemplateRef<any>;
|
17 | isSelected: boolean;
|
18 | isRightMenuVisible: boolean;
|
19 | isLeftMenuVisible: boolean;
|
20 | isReadOnly: boolean;
|
21 | controller: TreeController;
|
22 | checkboxElementRef: ElementRef;
|
23 | private subscriptions;
|
24 | constructor(nodeMenuService: NodeMenuService, treeService: TreeService, nodeElementRef: ElementRef);
|
25 | ngAfterViewInit(): void;
|
26 | ngOnInit(): void;
|
27 | ngOnChanges(changes: SimpleChanges): void;
|
28 | ngOnDestroy(): void;
|
29 | private swapWithSibling;
|
30 | private moveNodeToThisTreeAndRemoveFromPreviousOne;
|
31 | private moveNodeToParentTreeAndRemoveFromPreviousOne;
|
32 | onNodeSelected(e: {
|
33 | button: number;
|
34 | }): void;
|
35 | onNodeUnselected(e: {
|
36 | button: number;
|
37 | }): void;
|
38 | showRightMenu(e: MouseEvent): void;
|
39 | showLeftMenu(e: MouseEvent): void;
|
40 | onMenuItemSelected(e: NodeMenuItemSelectedEvent): void;
|
41 | private onNewSelected;
|
42 | private onRenameSelected;
|
43 | private onRemoveSelected;
|
44 | private onCustomSelected;
|
45 | onSwitchFoldingType(): void;
|
46 | applyNewValue(e: NodeEditableEvent): void;
|
47 | shouldShowInputForTreeValue(): boolean;
|
48 | isRootHidden(): boolean;
|
49 | hasCustomMenu(): boolean;
|
50 | switchNodeCheckStatus(): void;
|
51 | onNodeChecked(): void;
|
52 | onNodeUnchecked(): void;
|
53 | private executeOnChildController;
|
54 | updateCheckboxState(): void;
|
55 | private eventContainsId;
|
56 | static ɵfac: i0.ɵɵFactoryDeclaration<TreeInternalComponent, never>;
|
57 | static ɵcmp: i0.ɵɵComponentDeclaration<TreeInternalComponent, "tree-internal", never, { "tree": { "alias": "tree"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; "template": { "alias": "template"; "required": false; }; }, {}, never, never, false, never>;
|
58 | }
|