1 | import { ElementRef, OnInit, AfterViewInit, AfterContentInit, AfterViewChecked, OnDestroy, Renderer2, EventEmitter, ChangeDetectorRef, TemplateRef, QueryList } from '@angular/core';
|
---|
2 | import { AnimationEvent } from '@angular/animations';
|
---|
3 | import { FilterService, PrimeNGConfig, OverlayService } from 'primeng/api';
|
---|
4 | import { ControlValueAccessor } from '@angular/forms';
|
---|
5 | import * as i0 from "@angular/core";
|
---|
6 | import * as i1 from "@angular/common";
|
---|
7 | import * as i2 from "primeng/api";
|
---|
8 | import * as i3 from "@angular/cdk/scrolling";
|
---|
9 | import * as i4 from "primeng/tooltip";
|
---|
10 | import * as i5 from "primeng/ripple";
|
---|
11 | export declare const MULTISELECT_VALUE_ACCESSOR: any;
|
---|
12 | export declare class MultiSelectItem {
|
---|
13 | option: any;
|
---|
14 | selected: boolean;
|
---|
15 | label: any;
|
---|
16 | disabled: boolean;
|
---|
17 | itemSize: number;
|
---|
18 | template: TemplateRef<any>;
|
---|
19 | onClick: EventEmitter<any>;
|
---|
20 | onKeydown: EventEmitter<any>;
|
---|
21 | onOptionClick(event: Event): void;
|
---|
22 | onOptionKeydown(event: Event): void;
|
---|
23 | static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectItem, never>;
|
---|
24 | static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectItem, "p-multiSelectItem", never, { "option": "option"; "selected": "selected"; "label": "label"; "disabled": "disabled"; "itemSize": "itemSize"; "template": "template"; }, { "onClick": "onClick"; "onKeydown": "onKeydown"; }, never, never>;
|
---|
25 | }
|
---|
26 | export declare class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, AfterViewChecked, OnDestroy, ControlValueAccessor {
|
---|
27 | el: ElementRef;
|
---|
28 | renderer: Renderer2;
|
---|
29 | cd: ChangeDetectorRef;
|
---|
30 | filterService: FilterService;
|
---|
31 | config: PrimeNGConfig;
|
---|
32 | overlayService: OverlayService;
|
---|
33 | style: any;
|
---|
34 | styleClass: string;
|
---|
35 | panelStyle: any;
|
---|
36 | panelStyleClass: string;
|
---|
37 | inputId: string;
|
---|
38 | disabled: boolean;
|
---|
39 | readonly: boolean;
|
---|
40 | group: boolean;
|
---|
41 | filter: boolean;
|
---|
42 | filterPlaceHolder: string;
|
---|
43 | filterLocale: string;
|
---|
44 | overlayVisible: boolean;
|
---|
45 | tabindex: number;
|
---|
46 | appendTo: any;
|
---|
47 | dataKey: string;
|
---|
48 | name: string;
|
---|
49 | ariaLabelledBy: string;
|
---|
50 | displaySelectedLabel: boolean;
|
---|
51 | maxSelectedLabels: number;
|
---|
52 | selectionLimit: number;
|
---|
53 | selectedItemsLabel: string;
|
---|
54 | showToggleAll: boolean;
|
---|
55 | emptyFilterMessage: string;
|
---|
56 | emptyMessage: string;
|
---|
57 | resetFilterOnHide: boolean;
|
---|
58 | dropdownIcon: string;
|
---|
59 | optionLabel: string;
|
---|
60 | optionValue: string;
|
---|
61 | optionDisabled: string;
|
---|
62 | optionGroupLabel: string;
|
---|
63 | optionGroupChildren: string;
|
---|
64 | showHeader: boolean;
|
---|
65 | autoZIndex: boolean;
|
---|
66 | baseZIndex: number;
|
---|
67 | filterBy: string;
|
---|
68 | virtualScroll: boolean;
|
---|
69 | itemSize: number;
|
---|
70 | showTransitionOptions: string;
|
---|
71 | hideTransitionOptions: string;
|
---|
72 | ariaFilterLabel: string;
|
---|
73 | filterMatchMode: string;
|
---|
74 | tooltip: string;
|
---|
75 | tooltipPosition: string;
|
---|
76 | tooltipPositionStyle: string;
|
---|
77 | tooltipStyleClass: string;
|
---|
78 | autofocusFilter: boolean;
|
---|
79 | display: string;
|
---|
80 | containerViewChild: ElementRef;
|
---|
81 | filterInputChild: ElementRef;
|
---|
82 | accessibleViewChild: ElementRef;
|
---|
83 | footerFacet: any;
|
---|
84 | headerFacet: any;
|
---|
85 | templates: QueryList<any>;
|
---|
86 | onChange: EventEmitter<any>;
|
---|
87 | onFilter: EventEmitter<any>;
|
---|
88 | onFocus: EventEmitter<any>;
|
---|
89 | onBlur: EventEmitter<any>;
|
---|
90 | onClick: EventEmitter<any>;
|
---|
91 | onPanelShow: EventEmitter<any>;
|
---|
92 | onPanelHide: EventEmitter<any>;
|
---|
93 | scrollHeight: string;
|
---|
94 | _defaultLabel: string;
|
---|
95 | set defaultLabel(val: string);
|
---|
96 | get defaultLabel(): string;
|
---|
97 | _placeholder: string;
|
---|
98 | set placeholder(val: string);
|
---|
99 | get placeholder(): string;
|
---|
100 | get options(): any[];
|
---|
101 | set options(val: any[]);
|
---|
102 | get filterValue(): string;
|
---|
103 | set filterValue(val: string);
|
---|
104 | value: any[];
|
---|
105 | _filteredOptions: any[];
|
---|
106 | onModelChange: Function;
|
---|
107 | onModelTouched: Function;
|
---|
108 | overlay: HTMLDivElement;
|
---|
109 | valuesAsString: string;
|
---|
110 | focus: boolean;
|
---|
111 | filled: boolean;
|
---|
112 | documentClickListener: any;
|
---|
113 | _filterValue: string;
|
---|
114 | filtered: boolean;
|
---|
115 | itemTemplate: TemplateRef<any>;
|
---|
116 | groupTemplate: TemplateRef<any>;
|
---|
117 | headerTemplate: TemplateRef<any>;
|
---|
118 | footerTemplate: TemplateRef<any>;
|
---|
119 | emptyFilterTemplate: TemplateRef<any>;
|
---|
120 | emptyTemplate: TemplateRef<any>;
|
---|
121 | selectedItemsTemplate: TemplateRef<any>;
|
---|
122 | headerCheckboxFocus: boolean;
|
---|
123 | _options: any[];
|
---|
124 | maxSelectionLimitReached: boolean;
|
---|
125 | scrollHandler: any;
|
---|
126 | documentResizeListener: any;
|
---|
127 | preventModelTouched: boolean;
|
---|
128 | constructor(el: ElementRef, renderer: Renderer2, cd: ChangeDetectorRef, filterService: FilterService, config: PrimeNGConfig, overlayService: OverlayService);
|
---|
129 | ngOnInit(): void;
|
---|
130 | ngAfterContentInit(): void;
|
---|
131 | ngAfterViewInit(): void;
|
---|
132 | ngAfterViewChecked(): void;
|
---|
133 | getOptionLabel(option: any): any;
|
---|
134 | getOptionValue(option: any): any;
|
---|
135 | getOptionGroupLabel(optionGroup: any): any;
|
---|
136 | getOptionGroupChildren(optionGroup: any): any;
|
---|
137 | isOptionDisabled(option: any): any;
|
---|
138 | writeValue(value: any): void;
|
---|
139 | checkSelectionLimit(): void;
|
---|
140 | updateFilledState(): void;
|
---|
141 | registerOnChange(fn: Function): void;
|
---|
142 | registerOnTouched(fn: Function): void;
|
---|
143 | setDisabledState(val: boolean): void;
|
---|
144 | onOptionClick(event: any): void;
|
---|
145 | isSelected(option: any): boolean;
|
---|
146 | findSelectionIndex(val: any): number;
|
---|
147 | get toggleAllDisabled(): boolean;
|
---|
148 | toggleAll(event: any): void;
|
---|
149 | checkAll(): void;
|
---|
150 | uncheckAll(): void;
|
---|
151 | show(): void;
|
---|
152 | onOverlayClick(event: any): void;
|
---|
153 | onOverlayAnimationStart(event: AnimationEvent): void;
|
---|
154 | onOverlayAnimationEnd(event: AnimationEvent): void;
|
---|
155 | appendOverlay(): void;
|
---|
156 | restoreOverlayAppend(): void;
|
---|
157 | alignOverlay(): void;
|
---|
158 | hide(): void;
|
---|
159 | close(event: any): void;
|
---|
160 | onMouseclick(event: MouseEvent, input: any): void;
|
---|
161 | removeChip(chip: any, event: MouseEvent): void;
|
---|
162 | isOverlayClick(event: MouseEvent): boolean;
|
---|
163 | isOutsideClicked(event: MouseEvent): boolean;
|
---|
164 | onInputFocus(event: any): void;
|
---|
165 | onInputBlur(event: any): void;
|
---|
166 | onOptionKeydown(event: any): void;
|
---|
167 | findNextItem(item: any): any;
|
---|
168 | findPrevItem(item: any): any;
|
---|
169 | onKeydown(event: KeyboardEvent): void;
|
---|
170 | updateLabel(): void;
|
---|
171 | findLabelByValue(val: any): string;
|
---|
172 | searchLabelByValue(val: any, options: any[]): string;
|
---|
173 | get allChecked(): boolean;
|
---|
174 | get optionsToRender(): any[];
|
---|
175 | get emptyOptions(): boolean;
|
---|
176 | get emptyMessageLabel(): string;
|
---|
177 | get emptyFilterMessageLabel(): string;
|
---|
178 | hasFilter(): boolean;
|
---|
179 | onFilterInputChange(event: KeyboardEvent): void;
|
---|
180 | activateFilter(): void;
|
---|
181 | onHeaderCheckboxFocus(): void;
|
---|
182 | onHeaderCheckboxBlur(): void;
|
---|
183 | bindDocumentClickListener(): void;
|
---|
184 | unbindDocumentClickListener(): void;
|
---|
185 | bindDocumentResizeListener(): void;
|
---|
186 | unbindDocumentResizeListener(): void;
|
---|
187 | onWindowResize(): void;
|
---|
188 | bindScrollListener(): void;
|
---|
189 | unbindScrollListener(): void;
|
---|
190 | onOverlayHide(): void;
|
---|
191 | ngOnDestroy(): void;
|
---|
192 | static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelect, never>;
|
---|
193 | static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelect, "p-multiSelect", never, { "style": "style"; "styleClass": "styleClass"; "panelStyle": "panelStyle"; "panelStyleClass": "panelStyleClass"; "inputId": "inputId"; "disabled": "disabled"; "readonly": "readonly"; "group": "group"; "filter": "filter"; "filterPlaceHolder": "filterPlaceHolder"; "filterLocale": "filterLocale"; "overlayVisible": "overlayVisible"; "tabindex": "tabindex"; "appendTo": "appendTo"; "dataKey": "dataKey"; "name": "name"; "ariaLabelledBy": "ariaLabelledBy"; "displaySelectedLabel": "displaySelectedLabel"; "maxSelectedLabels": "maxSelectedLabels"; "selectionLimit": "selectionLimit"; "selectedItemsLabel": "selectedItemsLabel"; "showToggleAll": "showToggleAll"; "emptyFilterMessage": "emptyFilterMessage"; "emptyMessage": "emptyMessage"; "resetFilterOnHide": "resetFilterOnHide"; "dropdownIcon": "dropdownIcon"; "optionLabel": "optionLabel"; "optionValue": "optionValue"; "optionDisabled": "optionDisabled"; "optionGroupLabel": "optionGroupLabel"; "optionGroupChildren": "optionGroupChildren"; "showHeader": "showHeader"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "filterBy": "filterBy"; "virtualScroll": "virtualScroll"; "itemSize": "itemSize"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; "ariaFilterLabel": "ariaFilterLabel"; "filterMatchMode": "filterMatchMode"; "tooltip": "tooltip"; "tooltipPosition": "tooltipPosition"; "tooltipPositionStyle": "tooltipPositionStyle"; "tooltipStyleClass": "tooltipStyleClass"; "autofocusFilter": "autofocusFilter"; "display": "display"; "scrollHeight": "scrollHeight"; "defaultLabel": "defaultLabel"; "placeholder": "placeholder"; "options": "options"; "filterValue": "filterValue"; }, { "onChange": "onChange"; "onFilter": "onFilter"; "onFocus": "onFocus"; "onBlur": "onBlur"; "onClick": "onClick"; "onPanelShow": "onPanelShow"; "onPanelHide": "onPanelHide"; }, ["footerFacet", "headerFacet", "templates"], ["p-header", "p-footer"]>;
|
---|
194 | }
|
---|
195 | export declare class MultiSelectModule {
|
---|
196 | static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectModule, never>;
|
---|
197 | static ɵmod: i0.ɵɵNgModuleDeclaration<MultiSelectModule, [typeof MultiSelect, typeof MultiSelectItem], [typeof i1.CommonModule, typeof i2.SharedModule, typeof i3.ScrollingModule, typeof i4.TooltipModule, typeof i5.RippleModule], [typeof MultiSelect, typeof i2.SharedModule, typeof i3.ScrollingModule]>;
|
---|
198 | static ɵinj: i0.ɵɵInjectorDeclaration<MultiSelectModule>;
|
---|
199 | }
|
---|