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

112 lines (111 loc) 4.4 kB
import { ElementRef, AfterContentInit, AfterViewChecked, QueryList, TemplateRef, EventEmitter, ChangeDetectorRef } from '@angular/core'; import { FilterService } from 'primeng/api'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; export declare class PickList implements AfterViewChecked, AfterContentInit { el: ElementRef; cd: ChangeDetectorRef; filterService: FilterService; source: any[]; target: any[]; sourceHeader: string; targetHeader: string; responsive: boolean; filterBy: string; filterLocale: string; trackBy: Function; sourceTrackBy: Function; targetTrackBy: Function; showSourceFilter: boolean; showTargetFilter: boolean; metaKeySelection: boolean; dragdrop: boolean; style: any; styleClass: string; sourceStyle: any; targetStyle: any; showSourceControls: boolean; showTargetControls: boolean; sourceFilterPlaceholder: string; targetFilterPlaceholder: string; disabled: boolean; ariaSourceFilterLabel: string; ariaTargetFilterLabel: string; filterMatchMode: string; breakpoint: string; onMoveToSource: EventEmitter<any>; onMoveAllToSource: EventEmitter<any>; onMoveAllToTarget: EventEmitter<any>; onMoveToTarget: EventEmitter<any>; onSourceReorder: EventEmitter<any>; onTargetReorder: EventEmitter<any>; onSourceSelect: EventEmitter<any>; onTargetSelect: EventEmitter<any>; onSourceFilter: EventEmitter<any>; onTargetFilter: EventEmitter<any>; listViewSourceChild: ElementRef; listViewTargetChild: ElementRef; sourceFilterViewChild: ElementRef; targetFilterViewChild: ElementRef; templates: QueryList<any>; itemTemplate: TemplateRef<any>; visibleOptionsSource: any[]; visibleOptionsTarget: any[]; selectedItemsSource: any[]; selectedItemsTarget: any[]; reorderedListElement: any; movedUp: boolean; movedDown: boolean; itemTouched: boolean; styleElement: any; id: string; filterValueSource: string; filterValueTarget: string; fromListType: number; emptyMessageSourceTemplate: TemplateRef<any>; emptyFilterMessageSourceTemplate: TemplateRef<any>; emptyMessageTargetTemplate: TemplateRef<any>; emptyFilterMessageTargetTemplate: TemplateRef<any>; sourceHeaderTemplate: TemplateRef<any>; targetHeaderTemplate: TemplateRef<any>; readonly SOURCE_LIST = -1; readonly TARGET_LIST = 1; constructor(el: ElementRef, cd: ChangeDetectorRef, filterService: FilterService); ngOnInit(): void; ngAfterContentInit(): void; ngAfterViewChecked(): void; onItemClick(event: any, item: any, selectedItems: any[], callback: EventEmitter<any>): void; onSourceItemDblClick(): void; onTargetItemDblClick(): void; onFilter(event: KeyboardEvent, data: any[], listType: number): void; filter(data: any[], listType: number): void; isItemVisible(item: any, listType: number): boolean; isEmpty(listType: number): boolean; isVisibleInList(data: any[], item: any, filterValue: string): boolean; onItemTouchEnd(): void; private sortByIndexInList; moveUp(listElement: any, list: any, selectedItems: any, callback: any, listType: any): void; moveTop(listElement: any, list: any, selectedItems: any, callback: any, listType: any): void; moveDown(listElement: any, list: any, selectedItems: any, callback: any, listType: any): void; moveBottom(listElement: any, list: any, selectedItems: any, callback: any, listType: any): void; moveRight(): void; moveAllRight(): void; moveLeft(): void; moveAllLeft(): void; isSelected(item: any, selectedItems: any[]): boolean; findIndexInSelection(item: any, selectedItems: any[]): number; onDrop(event: CdkDragDrop<string[]>, listType: number): void; getDropIndexes(fromIndex: any, toIndex: any, droppedList: any, isTransfer: any, data: any): { previousIndex: any; currentIndex: any; }; findFilteredCurrentIndex(visibleOptions: any, index: any, options: any): number; resetFilter(): void; onItemKeydown(event: KeyboardEvent, item: any, selectedItems: any[], callback: EventEmitter<any>): void; findNextItem(item: any): any; findPrevItem(item: any): any; createStyle(): void; destroyStyle(): void; ngOnDestroy(): void; } export declare class PickListModule { }