[59329aa] | 1 | import { ElementRef, AfterContentInit, EventEmitter, TemplateRef, QueryList, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
---|
| 2 | import { TreeNode } from 'primeng/api';
|
---|
| 3 | import { Subscription } from 'rxjs';
|
---|
| 4 | import * as i0 from "@angular/core";
|
---|
| 5 | import * as i1 from "@angular/common";
|
---|
| 6 | import * as i2 from "primeng/api";
|
---|
| 7 | export declare class OrganizationChartNode implements OnDestroy {
|
---|
| 8 | cd: ChangeDetectorRef;
|
---|
| 9 | node: TreeNode;
|
---|
| 10 | root: boolean;
|
---|
| 11 | first: boolean;
|
---|
| 12 | last: boolean;
|
---|
| 13 | chart: OrganizationChart;
|
---|
| 14 | subscription: Subscription;
|
---|
| 15 | constructor(chart: any, cd: ChangeDetectorRef);
|
---|
| 16 | get leaf(): boolean;
|
---|
| 17 | get colspan(): number;
|
---|
| 18 | onNodeClick(event: Event, node: TreeNode): void;
|
---|
| 19 | toggleNode(event: Event, node: TreeNode): void;
|
---|
| 20 | isSelected(): boolean;
|
---|
| 21 | ngOnDestroy(): void;
|
---|
| 22 | static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationChartNode, never>;
|
---|
| 23 | static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationChartNode, "[pOrganizationChartNode]", never, { "node": "node"; "root": "root"; "first": "first"; "last": "last"; }, {}, never, never>;
|
---|
| 24 | }
|
---|
| 25 | export declare class OrganizationChart implements AfterContentInit {
|
---|
| 26 | el: ElementRef;
|
---|
| 27 | cd: ChangeDetectorRef;
|
---|
| 28 | value: TreeNode[];
|
---|
| 29 | style: any;
|
---|
| 30 | styleClass: string;
|
---|
| 31 | selectionMode: string;
|
---|
| 32 | preserveSpace: boolean;
|
---|
| 33 | get selection(): any;
|
---|
| 34 | set selection(val: any);
|
---|
| 35 | selectionChange: EventEmitter<any>;
|
---|
| 36 | onNodeSelect: EventEmitter<any>;
|
---|
| 37 | onNodeUnselect: EventEmitter<any>;
|
---|
| 38 | onNodeExpand: EventEmitter<any>;
|
---|
| 39 | onNodeCollapse: EventEmitter<any>;
|
---|
| 40 | templates: QueryList<any>;
|
---|
| 41 | templateMap: any;
|
---|
| 42 | private selectionSource;
|
---|
| 43 | _selection: any;
|
---|
| 44 | initialized: boolean;
|
---|
| 45 | selectionSource$: import("rxjs").Observable<any>;
|
---|
| 46 | constructor(el: ElementRef, cd: ChangeDetectorRef);
|
---|
| 47 | get root(): TreeNode;
|
---|
| 48 | ngAfterContentInit(): void;
|
---|
| 49 | getTemplateForNode(node: TreeNode): TemplateRef<any>;
|
---|
| 50 | onNodeClick(event: Event, node: TreeNode): void;
|
---|
| 51 | findIndexInSelection(node: TreeNode): number;
|
---|
| 52 | isSelected(node: TreeNode): boolean;
|
---|
| 53 | static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationChart, never>;
|
---|
| 54 | static ɵcmp: i0.ɵɵComponentDeclaration<OrganizationChart, "p-organizationChart", never, { "value": "value"; "style": "style"; "styleClass": "styleClass"; "selectionMode": "selectionMode"; "preserveSpace": "preserveSpace"; "selection": "selection"; }, { "selectionChange": "selectionChange"; "onNodeSelect": "onNodeSelect"; "onNodeUnselect": "onNodeUnselect"; "onNodeExpand": "onNodeExpand"; "onNodeCollapse": "onNodeCollapse"; }, ["templates"], never>;
|
---|
| 55 | }
|
---|
| 56 | export declare class OrganizationChartModule {
|
---|
| 57 | static ɵfac: i0.ɵɵFactoryDeclaration<OrganizationChartModule, never>;
|
---|
| 58 | static ɵmod: i0.ɵɵNgModuleDeclaration<OrganizationChartModule, [typeof OrganizationChart, typeof OrganizationChartNode], [typeof i1.CommonModule], [typeof OrganizationChart, typeof i2.SharedModule]>;
|
---|
| 59 | static ɵinj: i0.ɵɵInjectorDeclaration<OrganizationChartModule>;
|
---|
| 60 | }
|
---|