[59329aa] | 1 | import { ElementRef, EventEmitter, AfterContentInit, QueryList, TemplateRef, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core';
|
---|
| 2 | import { FilterService, PrimeNGConfig } from 'primeng/api';
|
---|
| 3 | import { ControlValueAccessor } from '@angular/forms';
|
---|
| 4 | import { Subscription } from 'rxjs';
|
---|
| 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 "primeng/ripple";
|
---|
| 9 | export declare const LISTBOX_VALUE_ACCESSOR: any;
|
---|
| 10 | export declare class Listbox implements AfterContentInit, OnInit, ControlValueAccessor, OnDestroy {
|
---|
| 11 | el: ElementRef;
|
---|
| 12 | cd: ChangeDetectorRef;
|
---|
| 13 | filterService: FilterService;
|
---|
| 14 | config: PrimeNGConfig;
|
---|
| 15 | multiple: boolean;
|
---|
| 16 | style: any;
|
---|
| 17 | styleClass: string;
|
---|
| 18 | listStyle: any;
|
---|
| 19 | listStyleClass: string;
|
---|
| 20 | readonly: boolean;
|
---|
| 21 | disabled: boolean;
|
---|
| 22 | checkbox: boolean;
|
---|
| 23 | filter: boolean;
|
---|
| 24 | filterMatchMode: string;
|
---|
| 25 | filterLocale: string;
|
---|
| 26 | metaKeySelection: boolean;
|
---|
| 27 | dataKey: string;
|
---|
| 28 | showToggleAll: boolean;
|
---|
| 29 | optionLabel: string;
|
---|
| 30 | optionValue: string;
|
---|
| 31 | optionGroupChildren: string;
|
---|
| 32 | optionGroupLabel: string;
|
---|
| 33 | optionDisabled: string;
|
---|
| 34 | ariaFilterLabel: string;
|
---|
| 35 | filterPlaceHolder: string;
|
---|
| 36 | emptyFilterMessage: string;
|
---|
| 37 | emptyMessage: string;
|
---|
| 38 | group: boolean;
|
---|
| 39 | onChange: EventEmitter<any>;
|
---|
| 40 | onClick: EventEmitter<any>;
|
---|
| 41 | onDblClick: EventEmitter<any>;
|
---|
| 42 | headerCheckboxViewChild: ElementRef;
|
---|
| 43 | headerFacet: any;
|
---|
| 44 | footerFacet: any;
|
---|
| 45 | templates: QueryList<any>;
|
---|
| 46 | _options: any[];
|
---|
| 47 | itemTemplate: TemplateRef<any>;
|
---|
| 48 | groupTemplate: TemplateRef<any>;
|
---|
| 49 | headerTemplate: TemplateRef<any>;
|
---|
| 50 | footerTemplate: TemplateRef<any>;
|
---|
| 51 | emptyFilterTemplate: TemplateRef<any>;
|
---|
| 52 | emptyTemplate: TemplateRef<any>;
|
---|
| 53 | _filterValue: string;
|
---|
| 54 | _filteredOptions: any[];
|
---|
| 55 | filtered: boolean;
|
---|
| 56 | value: any;
|
---|
| 57 | onModelChange: Function;
|
---|
| 58 | onModelTouched: Function;
|
---|
| 59 | optionTouched: boolean;
|
---|
| 60 | focus: boolean;
|
---|
| 61 | headerCheckboxFocus: boolean;
|
---|
| 62 | translationSubscription: Subscription;
|
---|
| 63 | constructor(el: ElementRef, cd: ChangeDetectorRef, filterService: FilterService, config: PrimeNGConfig);
|
---|
| 64 | get options(): any[];
|
---|
| 65 | set options(val: any[]);
|
---|
| 66 | get filterValue(): string;
|
---|
| 67 | set filterValue(val: string);
|
---|
| 68 | ngOnInit(): void;
|
---|
| 69 | ngAfterContentInit(): void;
|
---|
| 70 | getOptionLabel(option: any): any;
|
---|
| 71 | getOptionGroupChildren(optionGroup: any): any;
|
---|
| 72 | getOptionGroupLabel(optionGroup: any): any;
|
---|
| 73 | getOptionValue(option: any): any;
|
---|
| 74 | isOptionDisabled(option: any): any;
|
---|
| 75 | writeValue(value: any): void;
|
---|
| 76 | registerOnChange(fn: Function): void;
|
---|
| 77 | registerOnTouched(fn: Function): void;
|
---|
| 78 | setDisabledState(val: boolean): void;
|
---|
| 79 | onOptionClick(event: Event, option: any): void;
|
---|
| 80 | onOptionTouchEnd(option: any): void;
|
---|
| 81 | onOptionDoubleClick(event: Event, option: any): any;
|
---|
| 82 | onOptionClickSingle(event: any, option: any): void;
|
---|
| 83 | onOptionClickMultiple(event: any, option: any): void;
|
---|
| 84 | onOptionClickCheckbox(event: any, option: any): void;
|
---|
| 85 | removeOption(option: any): void;
|
---|
| 86 | isSelected(option: any): boolean;
|
---|
| 87 | get allChecked(): boolean;
|
---|
| 88 | get optionsToRender(): any[];
|
---|
| 89 | get emptyMessageLabel(): string;
|
---|
| 90 | get emptyFilterMessageLabel(): string;
|
---|
| 91 | hasFilter(): boolean;
|
---|
| 92 | isEmpty(optionsToDisplay: any): boolean;
|
---|
| 93 | onFilter(event: KeyboardEvent): void;
|
---|
| 94 | activateFilter(): void;
|
---|
| 95 | get toggleAllDisabled(): boolean;
|
---|
| 96 | toggleAll(event: any): void;
|
---|
| 97 | checkAll(): void;
|
---|
| 98 | uncheckAll(): void;
|
---|
| 99 | onOptionKeyDown(event: KeyboardEvent, option: any): void;
|
---|
| 100 | findNextItem(item: any): any;
|
---|
| 101 | findPrevItem(item: any): any;
|
---|
| 102 | onHeaderCheckboxFocus(): void;
|
---|
| 103 | onHeaderCheckboxBlur(): void;
|
---|
| 104 | ngOnDestroy(): void;
|
---|
| 105 | static ɵfac: i0.ɵɵFactoryDeclaration<Listbox, never>;
|
---|
| 106 | static ɵcmp: i0.ɵɵComponentDeclaration<Listbox, "p-listbox", never, { "multiple": "multiple"; "style": "style"; "styleClass": "styleClass"; "listStyle": "listStyle"; "listStyleClass": "listStyleClass"; "readonly": "readonly"; "disabled": "disabled"; "checkbox": "checkbox"; "filter": "filter"; "filterMatchMode": "filterMatchMode"; "filterLocale": "filterLocale"; "metaKeySelection": "metaKeySelection"; "dataKey": "dataKey"; "showToggleAll": "showToggleAll"; "optionLabel": "optionLabel"; "optionValue": "optionValue"; "optionGroupChildren": "optionGroupChildren"; "optionGroupLabel": "optionGroupLabel"; "optionDisabled": "optionDisabled"; "ariaFilterLabel": "ariaFilterLabel"; "filterPlaceHolder": "filterPlaceHolder"; "emptyFilterMessage": "emptyFilterMessage"; "emptyMessage": "emptyMessage"; "group": "group"; "options": "options"; "filterValue": "filterValue"; }, { "onChange": "onChange"; "onClick": "onClick"; "onDblClick": "onDblClick"; }, ["headerFacet", "footerFacet", "templates"], ["p-header", "p-footer"]>;
|
---|
| 107 | }
|
---|
| 108 | export declare class ListboxModule {
|
---|
| 109 | static ɵfac: i0.ɵɵFactoryDeclaration<ListboxModule, never>;
|
---|
| 110 | static ɵmod: i0.ɵɵNgModuleDeclaration<ListboxModule, [typeof Listbox], [typeof i1.CommonModule, typeof i2.SharedModule, typeof i3.RippleModule], [typeof Listbox, typeof i2.SharedModule]>;
|
---|
| 111 | static ɵinj: i0.ɵɵInjectorDeclaration<ListboxModule>;
|
---|
| 112 | }
|
---|