1 | import { EventEmitter, AfterContentInit, TemplateRef, QueryList, ChangeDetectorRef, ElementRef } from '@angular/core';
|
---|
2 | import { OverlayService, PrimeNGConfig, TreeNode } from 'primeng/api';
|
---|
3 | import { AnimationEvent } from '@angular/animations';
|
---|
4 | import * as i0 from "@angular/core";
|
---|
5 | import * as i1 from "@angular/common";
|
---|
6 | import * as i2 from "primeng/ripple";
|
---|
7 | import * as i3 from "primeng/api";
|
---|
8 | import * as i4 from "primeng/tree";
|
---|
9 | export declare const TREESELECT_VALUE_ACCESSOR: any;
|
---|
10 | export declare class TreeSelect implements AfterContentInit {
|
---|
11 | config: PrimeNGConfig;
|
---|
12 | cd: ChangeDetectorRef;
|
---|
13 | el: ElementRef;
|
---|
14 | overlayService: OverlayService;
|
---|
15 | type: string;
|
---|
16 | inputId: string;
|
---|
17 | scrollHeight: string;
|
---|
18 | disabled: boolean;
|
---|
19 | metaKeySelection: boolean;
|
---|
20 | display: string;
|
---|
21 | selectionMode: string;
|
---|
22 | tabindex: string;
|
---|
23 | ariaLabelledBy: string;
|
---|
24 | placeholder: string;
|
---|
25 | panelClass: string;
|
---|
26 | emptyMessage: string;
|
---|
27 | appendTo: any;
|
---|
28 | propagateSelectionDown: boolean;
|
---|
29 | propagateSelectionUp: boolean;
|
---|
30 | get options(): any[];
|
---|
31 | set options(options: any[]);
|
---|
32 | showTransitionOptions: string;
|
---|
33 | hideTransitionOptions: string;
|
---|
34 | templates: QueryList<any>;
|
---|
35 | containerEl: ElementRef;
|
---|
36 | focusInput: ElementRef;
|
---|
37 | onNodeExpand: EventEmitter<any>;
|
---|
38 | onNodeCollapse: EventEmitter<any>;
|
---|
39 | onShow: EventEmitter<any>;
|
---|
40 | onHide: EventEmitter<any>;
|
---|
41 | onNodeUnselect: EventEmitter<any>;
|
---|
42 | onNodeSelect: EventEmitter<any>;
|
---|
43 | valueTemplate: TemplateRef<any>;
|
---|
44 | headerTemplate: TemplateRef<any>;
|
---|
45 | emptyTemplate: TemplateRef<any>;
|
---|
46 | footerTemplate: TemplateRef<any>;
|
---|
47 | focused: boolean;
|
---|
48 | overlayVisible: boolean;
|
---|
49 | selfChange: boolean;
|
---|
50 | value: any;
|
---|
51 | expandedNodes: any[];
|
---|
52 | _options: any[];
|
---|
53 | outsideClickListener: any;
|
---|
54 | scrollHandler: any;
|
---|
55 | resizeListener: any;
|
---|
56 | overlayEl: any;
|
---|
57 | onModelChange: Function;
|
---|
58 | onModelTouched: Function;
|
---|
59 | constructor(config: PrimeNGConfig, cd: ChangeDetectorRef, el: ElementRef, overlayService: OverlayService);
|
---|
60 | ngOnInit(): void;
|
---|
61 | ngAfterContentInit(): void;
|
---|
62 | onOverlayAnimationStart(event: AnimationEvent): void;
|
---|
63 | onOverlayAnimationDone(event: AnimationEvent): void;
|
---|
64 | onSelectionChange(event: any): void;
|
---|
65 | onClick(event: any): void;
|
---|
66 | onKeyDown(event: any): void;
|
---|
67 | show(): void;
|
---|
68 | hide(): void;
|
---|
69 | onOverlayClick(event: any): void;
|
---|
70 | updateTreeState(): void;
|
---|
71 | updateTreeBranchState(node: any, path: any, selectedNodes: any): void;
|
---|
72 | expandPath(expandedNodes: any): void;
|
---|
73 | nodeExpand(event: any): void;
|
---|
74 | nodeCollapse(event: any): void;
|
---|
75 | resetExpandedNodes(): void;
|
---|
76 | findSelectedNodes(node: any, keys: any, selectedNodes: any): void;
|
---|
77 | isSelected(node: TreeNode): boolean;
|
---|
78 | findIndexInSelection(node: TreeNode): number;
|
---|
79 | onSelect(node: any): void;
|
---|
80 | onUnselect(node: any): void;
|
---|
81 | onOverlayEnter(): void;
|
---|
82 | onOverlayLeave(): void;
|
---|
83 | onFocus(): void;
|
---|
84 | onBlur(): void;
|
---|
85 | writeValue(value: any): void;
|
---|
86 | registerOnChange(fn: Function): void;
|
---|
87 | registerOnTouched(fn: Function): void;
|
---|
88 | setDisabledState(val: boolean): void;
|
---|
89 | appendContainer(): void;
|
---|
90 | restoreAppend(): void;
|
---|
91 | alignOverlay(): void;
|
---|
92 | bindOutsideClickListener(): void;
|
---|
93 | unbindOutsideClickListener(): void;
|
---|
94 | bindScrollListener(): void;
|
---|
95 | unbindScrollListener(): void;
|
---|
96 | bindResizeListener(): void;
|
---|
97 | unbindResizeListener(): void;
|
---|
98 | ngOnDestroy(): void;
|
---|
99 | containerClass(): {
|
---|
100 | 'p-treeselect p-component p-inputwrapper': boolean;
|
---|
101 | 'p-treeselect-chip': boolean;
|
---|
102 | 'p-disabled': boolean;
|
---|
103 | 'p-focus': boolean;
|
---|
104 | };
|
---|
105 | labelClass(): {
|
---|
106 | 'p-treeselect-label': boolean;
|
---|
107 | 'p-placeholder': boolean;
|
---|
108 | 'p-treeselect-label-empty': boolean;
|
---|
109 | };
|
---|
110 | get emptyMessageText(): any;
|
---|
111 | get emptyValue(): boolean;
|
---|
112 | get emptyOptions(): boolean;
|
---|
113 | get label(): any;
|
---|
114 | static ɵfac: i0.ɵɵFactoryDeclaration<TreeSelect, never>;
|
---|
115 | static ɵcmp: i0.ɵɵComponentDeclaration<TreeSelect, "p-treeSelect", never, { "type": "type"; "inputId": "inputId"; "scrollHeight": "scrollHeight"; "disabled": "disabled"; "metaKeySelection": "metaKeySelection"; "display": "display"; "selectionMode": "selectionMode"; "tabindex": "tabindex"; "ariaLabelledBy": "ariaLabelledBy"; "placeholder": "placeholder"; "panelClass": "panelClass"; "emptyMessage": "emptyMessage"; "appendTo": "appendTo"; "propagateSelectionDown": "propagateSelectionDown"; "propagateSelectionUp": "propagateSelectionUp"; "options": "options"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; }, { "onNodeExpand": "onNodeExpand"; "onNodeCollapse": "onNodeCollapse"; "onShow": "onShow"; "onHide": "onHide"; "onNodeUnselect": "onNodeUnselect"; "onNodeSelect": "onNodeSelect"; }, ["templates"], never>;
|
---|
116 | }
|
---|
117 | export declare class TreeSelectModule {
|
---|
118 | static ɵfac: i0.ɵɵFactoryDeclaration<TreeSelectModule, never>;
|
---|
119 | static ɵmod: i0.ɵɵNgModuleDeclaration<TreeSelectModule, [typeof TreeSelect], [typeof i1.CommonModule, typeof i2.RippleModule, typeof i3.SharedModule, typeof i4.TreeModule], [typeof TreeSelect, typeof i3.SharedModule, typeof i4.TreeModule]>;
|
---|
120 | static ɵinj: i0.ɵɵInjectorDeclaration<TreeSelectModule>;
|
---|
121 | }
|
---|