{"version":3,"sources":["../../src/app/components/picklist/picklist.ts"],"names":["PickList","el","cd","filterService","this","trackBy","index","item","showSourceFilter","showTargetFilter","metaKeySelection","showSourceControls","showTargetControls","disabled","filterMatchMode","onMoveToSource","EventEmitter","onMoveAllToSource","onMoveAllToTarget","onMoveToTarget","onSourceReorder","onTargetReorder","onSourceSelect","onTargetSelect","onSourceFilter","onTargetFilter","selectedItemsSource","selectedItemsTarget","SOURCE_LIST","TARGET_LIST","prototype","ngAfterContentInit","_this","templates","forEach","getType","itemTemplate","template","emptyMessageSourceTemplate","emptyMessageTargetTemplate","ngAfterViewChecked","movedUp","movedDown","listItems","DomHandler","find","reorderedListElement","listItem","length","scrollInView","onItemClick","event","selectedItems","callback","findIndexInSelection","selected","itemTouched","metaKey","ctrlKey","shiftKey","splice","push","emit","originalEvent","items","onSourceItemDblClick","moveRight","onTargetItemDblClick","moveLeft","onFilter","data","listType","query","target","value","trim","toLocaleLowerCase","filterLocale","filter","searchFields","filterBy","split","filterValueSource","visibleOptionsSource","filterValueTarget","visibleOptionsTarget","isItemVisible","isVisibleInList","filterValue","i","onItemTouchEnd","sortByIndexInList","list","sort","item1","item2","findIndexInList","moveUp","listElement","selectedItem","selectedItemIndex","movedItem","temp","moveTop","unshift","scrollTop","moveDown","moveBottom","scrollHeight","source","moveAllRight","movedItems","removedItem","moveAllLeft","isSelected","onDragStart","dataTransfer","setData","blur","dragging","fromListType","draggedItemIndexSource","draggedItemIndexTarget","onDragOver","dragOverItemIndexSource","preventDefault","dragOverItemIndexTarget","onListItemDroppoint","onDragLeave","onDrop","insert","ObjectUtils","reorderArray","listHighlightTarget","listHighlightSource","onDragEnd","onListDrop","fromIndex","fromList","toIndex","toList","elementtomove","onListMouseMove","moveListType","listViewSourceChild","listViewTargetChild","offsetY","nativeElement","getBoundingClientRect","top","document","body","bottomDiff","clientHeight","pageY","topDiff","onListDragLeave","resetFilter","sourceFilterViewChild","targetFilterViewChild","onItemKeydown","currentTarget","which","nextItem","findNextItem","focus","prevItem","findPrevItem","nextElementSibling","hasClass","isHidden","previousElementSibling","Component","args","selector","changeDetection","ChangeDetectionStrategy","OnPush","encapsulation","ViewEncapsulation","None","ElementRef","ChangeDetectorRef","FilterService","Input","Output","ViewChild","ContentChildren","PrimeTemplate","NgModule","imports","CommonModule","ButtonModule","SharedModule","RippleModule","exports","declarations"],"mappings":"usBAyOI,SAAAA,EAAmBC,EAAuBC,EAA8BC,GAArDC,KAAAH,GAAAA,EAAuBG,KAAAF,GAAAA,EAA8BE,KAAAD,cAAAA,EAtH/DC,KAAAC,QAAoB,SAACC,EAAeC,GAAc,OAAAA,GAMlDH,KAAAI,kBAA4B,EAE5BJ,KAAAK,kBAA4B,EAE5BL,KAAAM,kBAA4B,EAY5BN,KAAAO,oBAA8B,EAE9BP,KAAAQ,oBAA8B,EAM9BR,KAAAS,UAAoB,EAMpBT,KAAAU,gBAA0B,WAEzBV,KAAAW,eAAoC,IAAIC,EAAAA,aAExCZ,KAAAa,kBAAuC,IAAID,EAAAA,aAE3CZ,KAAAc,kBAAuC,IAAIF,EAAAA,aAE3CZ,KAAAe,eAAoC,IAAIH,EAAAA,aAExCZ,KAAAgB,gBAAqC,IAAIJ,EAAAA,aAEzCZ,KAAAiB,gBAAqC,IAAIL,EAAAA,aAEzCZ,KAAAkB,eAAoC,IAAIN,EAAAA,aAExCZ,KAAAmB,eAAoC,IAAIP,EAAAA,aAExCZ,KAAAoB,eAAoC,IAAIR,EAAAA,aAExCZ,KAAAqB,eAAoC,IAAIT,EAAAA,aAkBlDZ,KAAAsB,oBAA6B,GAE7BtB,KAAAuB,oBAA6B,GAsCpBvB,KAAAwB,aAAe,EAEfxB,KAAAyB,YAAc,SAIvB7B,EAAA8B,UAAAC,mBAAA,WAAA,IAAAC,EAAA5B,KACIA,KAAK6B,UAAUC,SAAQ,SAAC3B,GACpB,OAAOA,EAAK4B,WACR,IAAK,OACDH,EAAKI,aAAe7B,EAAK8B,SAC7B,MAEA,IAAK,qBACDL,EAA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,wBAAwBC,OACzCC,cAAeC,EAAAA,kBAAkBC,ilBAhGPC,EAAAA,kBAA6KC,EAAAA,yBAGxKC,EAAAA,iDAkG9BC,EAAAA,sBAEAA,EAAAA,4BAEAA,EAAAA,4BAEAA,EAAAA,0BAEAA,EAAAA,wBAEAA,EAAAA,4BAEAA,EAAAA,uBAEAA,EAAAA,6BAEAA,EAAAA,6BAEAA,EAAAA,gCAEAA,EAAAA,gCAEAA,EAAAA,gCAEAA,EAAAA,wBAEAA,EAAAA,qBAEAA,EAAAA,0BAEAA,EAAAA,2BAEAA,EAAAA,2BAEAA,EAAAA,kCAEAA,EAAAA,kCAEAA,EAAAA,uCAEAA,EAAAA,uCAEAA,EAAAA,wBAEAA,EAAAA,qCAEAA,EAAAA,qCAEAA,EAAAA,+BAEAA,EAAAA,8BAEAC,EAAAA,kCAEAA,EAAAA,kCAEAA,EAAAA,+BAEAA,EAAAA,gCAEAA,EAAAA,gCAEAA,EAAAA,+BAEAA,EAAAA,+BAEAA,EAAAA,+BAEAA,EAAAA,+BAEAA,EAAAA,oCAEAC,EAAAA,UAASb,KAAA,CAAC,2CAEVa,EAAAA,UAASb,KAAA,CAAC,6CAEVa,EAAAA,UAASb,KAAA,CAAC,+CAEVa,EAAAA,UAASb,KAAA,CAAC,mCAEVc,EAAAA,gBAAed,KAAA,CAACe,EAAAA,wBAqlBrB,iCALCC,EAAAA,SAAQhB,KAAA,CAAC,CACNiB,QAAS,CAACC,EAAAA,aAAaC,EAAAA,aAAaC,EAAAA,aAAaC,EAAAA,cACjDC,QAAS,CAACnM,EAASiM,EAAAA,cACnBG,aAAc,CAACpM","sourcesContent":["import { NgModule, Component, ElementRef, AfterContentInit, AfterViewChecked, Input, Output, ContentChildren, QueryList, TemplateRef, EventEmitter, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, ChangeDetectorRef} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ButtonModule} from 'primeng/button';\nimport {SharedModule,PrimeTemplate,FilterService} from 'primeng/api';\nimport {DomHandler} from 'primeng/dom';\nimport {RippleModule} from 'primeng/ripple';\nimport {ObjectUtils} from 'primeng/utils';\n\n@Component({\n selector: 'p-pickList',\n template: `\n
\n
\n \n \n \n \n
\n
\n
\n
{{sourceHeader}}
\n
\n
\n
\n \n \n
\n
\n \n \n
\n
\n \n \n \n \n
\n
\n
\n
{{targetHeader}}
\n
\n
\n
\n \n \n
\n
\n \n
\n
\n \n \n \n \n
\n
\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrls: ['./picklist.css']\n})\nexport class PickList implements AfterViewChecked,AfterContentInit {\n\n @Input() source: any[];\n\n @Input() target: any[];\n\n @Input() sourceHeader: string;\n\n @Input() targetHeader: string;\n\n @Input() responsive: boolean;\n\n @Input() filterBy: string;\n\n @Input() filterLocale: string;\n\n @Input() trackBy: Function = (index: number, item: any) => item;\n\n @Input() sourceTrackBy: Function;\n\n @Input() targetTrackBy: Function;\n\n @Input() showSourceFilter: boolean = true;\n\n @Input() showTargetFilter: boolean = true;\n\n @Input() metaKeySelection: boolean = true;\n\n @Input() dragdrop: boolean;\n\n @Input() style: any;\n\n @Input() styleClass: string;\n\n @Input() sourceStyle: any;\n\n @Input() targetStyle: any;\n\n @Input() showSourceControls: boolean = true;\n\n @Input() showTargetControls: boolean = true;\n\n @Input() sourceFilterPlaceholder: string;\n\n @Input() targetFilterPlaceholder: string;\n\n @Input() disabled: boolean = false;\n\n @Input() ariaSourceFilterLabel: string;\n\n @Input() ariaTargetFilterLabel: string;\n\n @Input() filterMatchMode: string = \"contains\";\n\n @Output() onMoveToSource: EventEmitter = new EventEmitter();\n\n @Output() onMoveAllToSource: EventEmitter = new EventEmitter();\n\n @Output() onMoveAllToTarget: EventEmitter = new EventEmitter();\n\n @Output() onMoveToTarget: EventEmitter = new EventEmitter();\n\n @Output() onSourceReorder: EventEmitter = new EventEmitter();\n\n @Output() onTargetReorder: EventEmitter = new EventEmitter();\n\n @Output() onSourceSelect: EventEmitter = new EventEmitter();\n\n @Output() onTargetSelect: EventEmitter = new EventEmitter();\n\n @Output() onSourceFilter: EventEmitter = new EventEmitter();\n\n @Output() onTargetFilter: EventEmitter = new EventEmitter();\n\n @ViewChild('sourcelist') listViewSourceChild: ElementRef;\n\n @ViewChild('targetlist') listViewTargetChild: ElementRef;\n\n @ViewChild('sourceFilter') sourceFilterViewChild: ElementRef;\n\n @ViewChild('targetFilter') targetFilterViewChild: ElementRef;\n\n @ContentChildren(PrimeTemplate) templates: QueryList;\n\n public itemTemplate: TemplateRef;\n\n public visibleOptionsSource: any[];\n\n public visibleOptionsTarget: any[];\n\n selectedItemsSource: any[] = [];\n\n selectedItemsTarget: any[] = [];\n\n reorderedListElement: any;\n\n draggedItemIndexSource: number;\n\n draggedItemIndexTarget: number;\n\n dragOverItemIndexSource: number;\n\n dragOverItemIndexTarget: number;\n\n dragging: boolean;\n\n movedUp: boolean;\n\n movedDown: boolean;\n\n itemTouched: boolean;\n\n filterValueSource: string;\n\n filterValueTarget: string;\n\n fromListType: number;\n\n toListType: number;\n\n onListItemDroppoint: boolean;\n\n listHighlightTarget: boolean;\n\n listHighlightSource: boolean;\n\n emptyMessageSourceTemplate: TemplateRef;\n\n emptyMessageTargetTemplate: TemplateRef;\n\n readonly SOURCE_LIST = -1;\n\n readonly TARGET_LIST = 1;\n\n constructor(public el: ElementRef, public cd: ChangeDetectorRef, public filterService: FilterService) {}\n\n ngAfterContentInit() {\n this.templates.forEach((item) => {\n switch(item.getType()) {\n case 'item':\n this.itemTemplate = item.template;\n break;\n\n case 'emptymessagesource':\n this.emptyMessageSourceTemplate = item.template;\n break;\n\n case 'emptymessagetarget':\n this.emptyMessageTargetTemplate = item.template;\n break;\n\n default:\n this.itemTemplate = item.template;\n break;\n }\n });\n }\n\n ngAfterViewChecked() {\n if (this.movedUp||this.movedDown) {\n let listItems = DomHandler.find(this.reorderedListElement, 'li.p-highlight');\n let listItem;\n\n if (this.movedUp)\n listItem = listItems[0];\n else\n listItem = listItems[listItems.length - 1];\n\n DomHandler.scrollInView(this.reorderedListElement, listItem);\n this.movedUp = false;\n this.movedDown = false;\n this.reorderedListElement = null;\n }\n }\n\n onItemClick(event, item: any, selectedItems: any[], callback: EventEmitter) {\n if (this.disabled) {\n return;\n }\n\n let index = this.findIndexInSelection(item,selectedItems);\n let selected = (index != -1);\n let metaSelection = this.itemTouched ? false : this.metaKeySelection;\n\n if (metaSelection) {\n let metaKey = (event.metaKey||event.ctrlKey||event.shiftKey);\n\n if (selected && metaKey) {\n selectedItems.splice(index, 1);\n }\n else {\n if (!metaKey) {\n selectedItems.length = 0;\n }\n selectedItems.push(item);\n }\n }\n else {\n if (selected)\n selectedItems.splice(index, 1);\n else\n selectedItems.push(item);\n }\n\n callback.emit({originalEvent: event, items: selectedItems});\n\n this.itemTouched = false;\n }\n\n onSourceItemDblClick() {\n if (this.disabled) {\n return;\n }\n\n this.moveRight();\n }\n\n onTargetItemDblClick() {\n if (this.disabled) {\n return;\n }\n\n this.moveLeft();\n }\n\n onFilter(event: KeyboardEvent, data: any[], listType: number) {\n let query = (( event.target).value.trim() as any).toLocaleLowerCase(this.filterLocale);\n this.filter(query, data, listType);\n }\n\n filter(query: string, data: any[], listType: number) {\n let searchFields = this.filterBy.split(',');\n\n if (listType === this.SOURCE_LIST) {\n this.filterValueSource = query;\n this.visibleOptionsSource = this.filterService.filter(data, searchFields, this.filterValueSource, this.filterMatchMode, this.filterLocale);\n this.onSourceFilter.emit({query: this.filterValueSource, value: this.visibleOptionsSource});\n }\n else if (listType === this.TARGET_LIST) {\n this.filterValueTarget = query;\n this.visibleOptionsTarget = this.filterService.filter(data, searchFields, this.filterValueTarget, this.filterMatchMode, this.filterLocale);\n this.onTargetFilter.emit({query: this.filterValueTarget, value: this.visibleOptionsTarget});\n }\n }\n\n isItemVisible(item: any, listType: number): boolean {\n if (listType == this.SOURCE_LIST)\n return this.isVisibleInList(this.visibleOptionsSource, item, this.filterValueSource);\n else\n return this.isVisibleInList(this.visibleOptionsTarget, item, this.filterValueTarget);\n }\n\n isVisibleInList(data: any[], item: any, filterValue: string): boolean {\n if (filterValue && filterValue.trim().length) {\n for(let i = 0; i < data.length; i++) {\n if (item == data[i]) {\n return true;\n }\n }\n }\n else {\n return true;\n }\n }\n\n onItemTouchEnd(event) {\n if (this.disabled) {\n return;\n }\n\n this.itemTouched = true;\n }\n\n private sortByIndexInList(items: any[], list: any) {\n return items.sort((item1, item2) =>\n this.findIndexInList(item1, list) - this.findIndexInList(item2, list));\n }\n\n moveUp(listElement, list, selectedItems, callback) {\n if (selectedItems && selectedItems.length) {\n selectedItems = this.sortByIndexInList(selectedItems, list);\n for(let i = 0; i < selectedItems.length; i++) {\n let selectedItem = selectedItems[i];\n let selectedItemIndex: number = this.findIndexInList(selectedItem, list);\n\n if (selectedItemIndex != 0) {\n let movedItem = list[selectedItemIndex];\n let temp = list[selectedItemIndex-1];\n list[selectedItemIndex-1] = movedItem;\n list[selectedItemIndex] = temp;\n }\n else {\n break;\n }\n }\n\n this.movedUp = true;\n this.reorderedListElement = listElement;\n callback.emit({items: selectedItems});\n }\n }\n\n moveTop(listElement, list, selectedItems, callback) {\n if (selectedItems && selectedItems.length) {\n selectedItems = this.sortByIndexInList(selectedItems, list);\n for(let i = 0; i < selectedItems.length; i++) {\n let selectedItem = selectedItems[i];\n let selectedItemIndex: number = this.findIndexInList(selectedItem, list);\n\n if (selectedItemIndex != 0) {\n let movedItem = list.splice(selectedItemIndex,1)[0];\n list.unshift(movedItem);\n }\n else {\n break;\n }\n }\n\n listElement.scrollTop = 0;\n callback.emit({items: selectedItems});\n }\n }\n\n moveDown(listElement, list, selectedItems, callback) {\n if (selectedItems && selectedItems.length) {\n selectedItems = this.sortByIndexInList(selectedItems, list);\n for(let i = selectedItems.length - 1; i >= 0; i--) {\n let selectedItem = selectedItems[i];\n let selectedItemIndex: number = this.findIndexInList(selectedItem, list);\n\n if (selectedItemIndex != (list.length - 1)) {\n let movedItem = list[selectedItemIndex];\n let temp = list[selectedItemIndex+1];\n list[selectedItemIndex+1] = movedItem;\n list[selectedItemIndex] = temp;\n }\n else {\n break;\n }\n }\n\n this.movedDown = true;\n this.reorderedListElement = listElement;\n callback.emit({items: selectedItems});\n }\n }\n\n moveBottom(listElement, list, selectedItems, callback) {\n if (selectedItems && selectedItems.length) {\n selectedItems = this.sortByIndexInList(selectedItems, list);\n for(let i = selectedItems.length - 1; i >= 0; i--) {\n let selectedItem = selectedItems[i];\n let selectedItemIndex: number = this.findIndexInList(selectedItem, list);\n\n if (selectedItemIndex != (list.length - 1)) {\n let movedItem = list.splice(selectedItemIndex,1)[0];\n list.push(movedItem);\n }\n else {\n break;\n }\n }\n\n listElement.scrollTop = listElement.scrollHeight;\n callback.emit({items: selectedItems});\n }\n }\n\n moveRight() {\n if (this.selectedItemsSource && this.selectedItemsSource.length) {\n for(let i = 0; i < this.selectedItemsSource.length; i++) {\n let selectedItem = this.selectedItemsSource[i];\n if (this.findIndexInList(selectedItem, this.target) == -1) {\n this.target.push(this.source.splice(this.findIndexInList(selectedItem, this.source),1)[0]);\n }\n }\n this.onMoveToTarget.emit({\n items: this.selectedItemsSource\n });\n this.selectedItemsSource = [];\n\n if (this.filterValueTarget) {\n this.filter(this.filterValueTarget, this.target, this.TARGET_LIST);\n }\n }\n }\n\n moveAllRight() {\n if (this.source) {\n let movedItems = [];\n\n for(let i = 0; i < this.source.length; i++) {\n if (this.isItemVisible(this.source[i], this.SOURCE_LIST)) {\n let removedItem = this.source.splice(i, 1)[0];\n this.target.push(removedItem);\n movedItems.push(removedItem);\n i--;\n }\n }\n\n this.onMoveAllToTarget.emit({\n items: movedItems\n });\n\n this.selectedItemsSource = [];\n\n if (this.filterValueTarget) {\n this.filter(this.filterValueTarget, this.target, this.TARGET_LIST);\n }\n }\n }\n\n moveLeft() {\n if (this.selectedItemsTarget && this.selectedItemsTarget.length) {\n for(let i = 0; i < this.selectedItemsTarget.length; i++) {\n let selectedItem = this.selectedItemsTarget[i];\n if (this.findIndexInList(selectedItem, this.source) == -1) {\n this.source.push(this.target.splice(this.findIndexInList(selectedItem, this.target),1)[0]);\n }\n }\n this.onMoveToSource.emit({\n items: this.selectedItemsTarget\n });\n\n this.selectedItemsTarget = [];\n\n if (this.filterValueSource) {\n this.filter(this.filterValueSource, this.source, this.SOURCE_LIST);\n }\n }\n }\n\n moveAllLeft() {\n if (this.target) {\n let movedItems = [];\n\n for(let i = 0; i < this.target.length; i++) {\n if (this.isItemVisible(this.target[i], this.TARGET_LIST)) {\n let removedItem = this.target.splice(i, 1)[0];\n this.source.push(removedItem);\n movedItems.push(removedItem);\n i--;\n }\n }\n\n this.onMoveAllToSource.emit({\n items: movedItems\n });\n\n this.selectedItemsTarget = [];\n\n if (this.filterValueSource) {\n this.filter(this.filterValueSource, this.source, this.SOURCE_LIST);\n }\n }\n }\n\n isSelected(item: any, selectedItems: any[]) {\n return this.findIndexInSelection(item, selectedItems) != -1;\n }\n\n findIndexInSelection(item: any, selectedItems: any[]): number {\n return this.findIndexInList(item, selectedItems);\n }\n\n findIndexInList(item: any, list: any): number {\n let index: number = -1;\n\n if (list) {\n for(let i = 0; i < list.length; i++) {\n if (list[i] == item) {\n index = i;\n break;\n }\n }\n }\n\n return index;\n }\n\n onDragStart(event: DragEvent, index: number, listType: number) {\n event.dataTransfer.setData('text', 'b'); // For firefox\n ( event.target).blur();\n this.dragging = true;\n this.fromListType = listType;\n\n if (listType === this.SOURCE_LIST)\n this.draggedItemIndexSource = index;\n else\n this.draggedItemIndexTarget = index;\n }\n\n onDragOver(event: DragEvent, index: number, listType: number) {\n if (this.dragging) {\n if (listType == this.SOURCE_LIST) {\n if (this.draggedItemIndexSource !== index && this.draggedItemIndexSource + 1 !== index || (this.fromListType === this.TARGET_LIST)) {\n this.dragOverItemIndexSource = index;\n event.preventDefault();\n }\n }\n else {\n if (this.draggedItemIndexTarget !== index && this.draggedItemIndexTarget + 1 !== index || (this.fromListType === this.SOURCE_LIST)) {\n this.dragOverItemIndexTarget = index;\n event.preventDefault();\n }\n }\n this.onListItemDroppoint = true;\n }\n }\n\n onDragLeave(event: DragEvent, listType: number) {\n this.dragOverItemIndexSource = null;\n this.dragOverItemIndexTarget = null;\n this.onListItemDroppoint = false;\n }\n\n onDrop(event: DragEvent, index: number, listType: number) {\n if (this.onListItemDroppoint) {\n if (listType === this.SOURCE_LIST) {\n if (this.fromListType === this.TARGET_LIST) {\n this.insert(this.draggedItemIndexTarget, this.target, index, this.source, this.onMoveToSource);\n }\n else {\n ObjectUtils.reorderArray(this.source, this.draggedItemIndexSource, (this.draggedItemIndexSource > index) ? index : (index === 0) ? 0 : index - 1);\n this.onSourceReorder.emit({items: this.source[this.draggedItemIndexSource]});\n }\n\n this.dragOverItemIndexSource = null;\n }\n else {\n if (this.fromListType === this.SOURCE_LIST) {\n this.insert(this.draggedItemIndexSource, this.source, index, this.target, this.onMoveToTarget);\n }\n else {\n ObjectUtils.reorderArray(this.target, this.draggedItemIndexTarget, (this.draggedItemIndexTarget > index) ? index : (index === 0) ? 0 : index - 1);\n this.onTargetReorder.emit({items: this.target[this.draggedItemIndexTarget]});\n }\n\n this.dragOverItemIndexTarget = null;\n }\n\n this.listHighlightTarget = false;\n this.listHighlightSource = false;\n event.preventDefault();\n }\n }\n\n onDragEnd(event: DragEvent) {\n this.dragging = false;\n }\n\n onListDrop(event: DragEvent, listType: number) {\n if (!this.onListItemDroppoint) {\n if (listType === this.SOURCE_LIST) {\n if (this.fromListType === this.TARGET_LIST) {\n this.insert(this.draggedItemIndexTarget, this.target, null, this.source, this.onMoveToSource);\n }\n }\n else {\n if (this.fromListType === this.SOURCE_LIST) {\n this.insert(this.draggedItemIndexSource, this.source, null, this.target, this.onMoveToTarget);\n }\n }\n\n this.listHighlightTarget = false;\n this.listHighlightSource = false;\n event.preventDefault();\n }\n }\n\n insert(fromIndex, fromList, toIndex, toList, callback) {\n const elementtomove = fromList[fromIndex];\n\n if (toIndex === null)\n toList.push(fromList.splice(fromIndex, 1)[0]);\n else\n toList.splice(toIndex, 0, fromList.splice(fromIndex, 1)[0]);\n\n callback.emit({\n items: [elementtomove]\n });\n }\n\n onListMouseMove(event: MouseEvent, listType: number) {\n if (this.dragging) {\n let moveListType = (listType == 0 ? this.listViewSourceChild : this.listViewTargetChild);\n let offsetY = moveListType.nativeElement.getBoundingClientRect().top + document.body.scrollTop;\n let bottomDiff = (offsetY + moveListType.nativeElement.clientHeight) - event.pageY;\n let topDiff = (event.pageY - offsetY);\n\n if (bottomDiff < 25 && bottomDiff > 0)\n moveListType.nativeElement.scrollTop += 15;\n else if (topDiff < 25 && topDiff > 0)\n moveListType.nativeElement.scrollTop -= 15;\n\n if (listType === this.SOURCE_LIST) {\n if (this.fromListType === this.TARGET_LIST)\n this.listHighlightSource = true;\n }\n else {\n if (this.fromListType === this.SOURCE_LIST)\n this.listHighlightTarget = true;\n }\n\n event.preventDefault();\n }\n }\n\n onListDragLeave() {\n this.listHighlightTarget = false;\n this.listHighlightSource = false;\n }\n\n resetFilter() {\n this.visibleOptionsSource = null;\n this.filterValueSource = null;\n this.visibleOptionsTarget = null;\n this.filterValueTarget = null;\n\n ( this.sourceFilterViewChild.nativeElement).value = '';\n ( this.targetFilterViewChild.nativeElement).value = '';\n }\n\n onItemKeydown(event: KeyboardEvent, item: any, selectedItems: any[], callback: EventEmitter) {\n let listItem = event.currentTarget;\n\n switch(event.which) {\n //down\n case 40:\n var nextItem = this.findNextItem(listItem);\n if (nextItem) {\n nextItem.focus();\n }\n\n event.preventDefault();\n break;\n\n //up\n case 38:\n var prevItem = this.findPrevItem(listItem);\n if (prevItem) {\n prevItem.focus();\n }\n\n event.preventDefault();\n break;\n\n //enter\n case 13:\n this.onItemClick(event, item, selectedItems, callback);\n event.preventDefault();\n break;\n }\n }\n\n findNextItem(item) {\n let nextItem = item.nextElementSibling;\n\n if (nextItem)\n return !DomHandler.hasClass(nextItem, 'p-picklist-item') || DomHandler.isHidden(nextItem) ? this.findNextItem(nextItem) : nextItem;\n else\n return null;\n }\n\n findPrevItem(item) {\n let prevItem = item.previousElementSibling;\n\n if (prevItem)\n return !DomHandler.hasClass(prevItem, 'p-picklist-item') || DomHandler.isHidden(prevItem) ? this.findPrevItem(prevItem) : prevItem;\n else\n return null;\n }\n}\n\n@NgModule({\n imports: [CommonModule,ButtonModule,SharedModule,RippleModule],\n exports: [PickList,SharedModule],\n declarations: [PickList]\n})\nexport class PickListModule { }\n"]}