UNPKG

primeng

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/primeng.svg)](https://badge.fury.io/js/primeng) [![npm downloads](https://img.shields.io/npm/dm/primeng.sv

122 lines (121 loc) 5.46 kB
import { ElementRef, EventEmitter, AfterContentInit, QueryList, TemplateRef, ChangeDetectorRef, OnInit, OnDestroy } from '@angular/core'; import { FilterService, PrimeNGConfig } from 'primeng/api'; import { ControlValueAccessor } from '@angular/forms'; import { Subscription } from 'rxjs'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common"; import * as i2 from "primeng/api"; import * as i3 from "primeng/ripple"; export declare const LISTBOX_VALUE_ACCESSOR: any; export interface ListboxFilterOptions { filter?: (value?: any) => void; reset?: () => void; } export declare class Listbox implements AfterContentInit, OnInit, ControlValueAccessor, OnDestroy { el: ElementRef; cd: ChangeDetectorRef; filterService: FilterService; config: PrimeNGConfig; multiple: boolean; style: any; styleClass: string; listStyle: any; listStyleClass: string; readonly: boolean; disabled: boolean; checkbox: boolean; filter: boolean; filterBy: string; filterMatchMode: string; filterLocale: string; metaKeySelection: boolean; dataKey: string; showToggleAll: boolean; optionLabel: string; optionValue: string; optionGroupChildren: string; optionGroupLabel: string; optionDisabled: string; ariaFilterLabel: string; filterPlaceHolder: string; emptyFilterMessage: string; emptyMessage: string; group: boolean; onChange: EventEmitter<any>; onClick: EventEmitter<any>; onDblClick: EventEmitter<any>; headerCheckboxViewChild: ElementRef; filterViewChild: ElementRef; headerFacet: any; footerFacet: any; templates: QueryList<any>; _options: any[]; itemTemplate: TemplateRef<any>; groupTemplate: TemplateRef<any>; headerTemplate: TemplateRef<any>; filterTemplate: TemplateRef<any>; footerTemplate: TemplateRef<any>; emptyFilterTemplate: TemplateRef<any>; emptyTemplate: TemplateRef<any>; _filterValue: string; _filteredOptions: any[]; filterOptions: ListboxFilterOptions; filtered: boolean; value: any; onModelChange: Function; onModelTouched: Function; optionTouched: boolean; focus: boolean; headerCheckboxFocus: boolean; translationSubscription: Subscription; constructor(el: ElementRef, cd: ChangeDetectorRef, filterService: FilterService, config: PrimeNGConfig); get options(): any[]; set options(val: any[]); get filterValue(): string; set filterValue(val: string); ngOnInit(): void; ngAfterContentInit(): void; getOptionLabel(option: any): any; getOptionGroupChildren(optionGroup: any): any; getOptionGroupLabel(optionGroup: any): any; getOptionValue(option: any): any; isOptionDisabled(option: any): any; writeValue(value: any): void; registerOnChange(fn: Function): void; registerOnTouched(fn: Function): void; setDisabledState(val: boolean): void; onOptionClick(event: Event, option: any): void; onOptionTouchEnd(option: any): void; onOptionDoubleClick(event: Event, option: any): any; onOptionClickSingle(event: any, option: any): void; onOptionClickMultiple(event: any, option: any): void; onOptionClickCheckbox(event: any, option: any): void; removeOption(option: any): void; isSelected(option: any): boolean; get allChecked(): boolean; get optionsToRender(): any[]; get emptyMessageLabel(): string; get emptyFilterMessageLabel(): string; hasFilter(): boolean; isEmpty(): boolean; onFilter(event: KeyboardEvent): void; activateFilter(): void; resetFilter(): void; get toggleAllDisabled(): boolean; toggleAll(event: any): void; checkAll(): void; uncheckAll(): void; onOptionKeyDown(event: KeyboardEvent, option: any): void; findNextItem(item: any): any; findPrevItem(item: any): any; onHeaderCheckboxFocus(): void; onHeaderCheckboxBlur(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<Listbox, never>; 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"; "filterBy": "filterBy"; "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"], false>; } export declare class ListboxModule { static ɵfac: i0.ɵɵFactoryDeclaration<ListboxModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<ListboxModule, [typeof Listbox], [typeof i1.CommonModule, typeof i2.SharedModule, typeof i3.RippleModule], [typeof Listbox, typeof i2.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<ListboxModule>; }