1 line
18 KiB
Plaintext
1 line
18 KiB
Plaintext
{"version":3,"file":"primeng-dragdrop.mjs","sources":["../../src/app/components/dragdrop/dragdrop.ts","../../src/app/components/dragdrop/primeng-dragdrop.ts"],"sourcesContent":["import { CommonModule } from '@angular/common';\nimport { AfterViewInit, Directive, ElementRef, EventEmitter, HostListener, Input, NgModule, NgZone, OnDestroy, Output, Renderer2, booleanAttribute } from '@angular/core';\nimport { DomHandler } from 'primeng/dom';\nimport { VoidListener } from 'primeng/ts-helpers';\n/**\n * pDraggable directive apply draggable behavior to any element.\n * @group Components\n */\n@Directive({\n selector: '[pDraggable]',\n host: {\n class: 'p-element'\n }\n})\nexport class Draggable implements AfterViewInit, OnDestroy {\n @Input('pDraggable') scope: string | undefined;\n /**\n * Defines the cursor style.\n * @group Props\n */\n @Input() dragEffect: 'none' | 'copy' | 'copyLink' | 'copyMove' | 'link' | 'linkMove' | 'move' | 'all' | 'uninitialized' | undefined;\n /**\n * Selector to define the drag handle, by default anywhere on the target element is a drag handle to start dragging.\n * @group Props\n */\n @Input() dragHandle: string | undefined;\n /**\n * Callback to invoke when drag begins.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n @Output() onDragStart: EventEmitter<DragEvent> = new EventEmitter();\n /**\n * Callback to invoke when drag ends.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n @Output() onDragEnd: EventEmitter<DragEvent> = new EventEmitter();\n /**\n * Callback to invoke on dragging.\n * @param {DragEvent} event - Drag event.\n * @group Emits\n */\n @Output() onDrag: EventEmitter<DragEvent> = new EventEmitter();\n\n handle: any;\n\n dragListener: VoidListener;\n\n mouseDownListener: VoidListener;\n\n mouseUpListener: VoidListener;\n\n _pDraggableDisabled: boolean = false;\n\n constructor(public el: ElementRef, public zone: NgZone, private renderer: Renderer2) {}\n\n @Input() get pDraggableDisabled(): boolean {\n return this._pDraggableDisabled;\n }\n set pDraggableDisabled(_pDraggableDisabled: boolean) {\n this._pDraggableDisabled = _pDraggableDisabled;\n\n if (this._pDraggableDisabled) {\n this.unbindMouseListeners();\n } else {\n this.el.nativeElement.draggable = true;\n this.bindMouseListeners();\n }\n }\n\n ngAfterViewInit() {\n if (!this.pDraggableDisabled) {\n this.el.nativeElement.draggable = true;\n this.bindMouseListeners();\n }\n }\n\n bindDragListener() {\n if (!this.dragListener) {\n this.zone.runOutsideAngular(() => {\n this.dragListener = this.renderer.listen(this.el.nativeElement, 'drag', this.drag.bind(this));\n });\n }\n }\n\n unbindDragListener() {\n if (this.dragListener) {\n this.zone.runOutsideAngular(() => {\n this.dragListener && this.dragListener();\n this.dragListener = null;\n });\n }\n }\n\n bindMouseListeners() {\n if (!this.mouseDownListener && !this.mouseUpListener) {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener = this.renderer.listen(this.el.nativeElement, 'mousedown', this.mousedown.bind(this));\n this.mouseUpListener = this.renderer.listen(this.el.nativeElement, 'mouseup', this.mouseup.bind(this));\n });\n }\n }\n\n unbindMouseListeners() {\n if (this.mouseDownListener && this.mouseUpListener) {\n this.zone.runOutsideAngular(() => {\n this.mouseDownListener && this.mouseDownListener();\n this.mouseUpListener && this.mouseUpListener();\n this.mouseDownListener = null;\n this.mouseUpListener = null;\n });\n }\n }\n\n drag(event: DragEvent) {\n this.onDrag.emit(event);\n }\n\n @HostListener('dragstart', ['$event'])\n dragStart(event: DragEvent) {\n if (this.allowDrag() && !this.pDraggableDisabled) {\n if (this.dragEffect) {\n (event.dataTransfer as DataTransfer).effectAllowed = this.dragEffect;\n }\n (event.dataTransfer as DataTransfer).setData('text', this.scope!);\n\n this.onDragStart.emit(event);\n\n this.bindDragListener();\n } else {\n event.preventDefault();\n }\n }\n\n @HostListener('dragend', ['$event'])\n dragEnd(event: DragEvent) {\n this.onDragEnd.emit(event);\n this.unbindDragListener();\n }\n\n mousedown(event: MouseEvent) {\n this.handle = event.target;\n }\n\n mouseup(event: MouseEvent) {\n this.handle = null;\n }\n\n allowDrag(): boolean {\n if (this.dragHandle && this.handle) return DomHandler.matches(this.handle, this.dragHandle);\n else return true;\n }\n\n ngOnDestroy() {\n this.unbindDragListener();\n this.unbindMouseListeners();\n }\n}\n/**\n * pDroppable directive apply droppable behavior to any element.\n * @group Components\n */\n@Directive({\n selector: '[pDroppable]',\n host: {\n class: 'p-element'\n }\n})\nexport class Droppable implements AfterViewInit, OnDestroy {\n @Input('pDroppable') scope: string | string[] | undefined;\n /**\n * Whether the element is droppable, useful for conditional cases.\n * @group Props\n */\n @Input({ transform: booleanAttribute }) pDroppableDisabled: boolean = false;\n /**\n * Defines the cursor style, valid values are none, copy, move, link, copyMove, copyLink, linkMove and all.\n * @group Props\n */\n @Input() dropEffect: 'none' | 'copy' | 'link' | 'move' | undefined;\n /**\n * Callback to invoke when a draggable enters drop area.\n * @group Emits\n */\n @Output() onDragEnter: EventEmitter<DragEvent> = new EventEmitter();\n /**\n * Callback to invoke when a draggable leave drop area.\n * @group Emits\n */\n @Output() onDragLeave: EventEmitter<DragEvent> = new EventEmitter();\n /**\n * Callback to invoke when a draggable is dropped onto drop area.\n * @group Emits\n */\n @Output() onDrop: EventEmitter<DragEvent> = new EventEmitter();\n\n constructor(public el: ElementRef, public zone: NgZone, private renderer: Renderer2) {}\n\n dragOverListener: VoidListener;\n\n ngAfterViewInit() {\n if (!this.pDroppableDisabled) {\n this.bindDragOverListener();\n }\n }\n\n bindDragOverListener() {\n if (!this.dragOverListener) {\n this.zone.runOutsideAngular(() => {\n this.dragOverListener = this.renderer.listen(this.el.nativeElement, 'dragover', this.dragOver.bind(this));\n });\n }\n }\n\n unbindDragOverListener() {\n if (this.dragOverListener) {\n this.zone.runOutsideAngular(() => {\n this.dragOverListener && this.dragOverListener();\n this.dragOverListener = null;\n });\n }\n }\n\n dragOver(event: DragEvent) {\n event.preventDefault();\n }\n\n @HostListener('drop', ['$event'])\n drop(event: DragEvent) {\n if (this.allowDrop(event)) {\n DomHandler.removeClass(this.el.nativeElement, 'p-draggable-enter');\n event.preventDefault();\n this.onDrop.emit(event);\n }\n }\n\n @HostListener('dragenter', ['$event'])\n dragEnter(event: DragEvent) {\n event.preventDefault();\n\n if (this.dropEffect) {\n (event.dataTransfer as DataTransfer).dropEffect = this.dropEffect;\n }\n\n DomHandler.addClass(this.el.nativeElement, 'p-draggable-enter');\n this.onDragEnter.emit(event);\n }\n\n @HostListener('dragleave', ['$event'])\n dragLeave(event: DragEvent) {\n event.preventDefault();\n\n if (!this.el.nativeElement.contains(event.relatedTarget)) {\n DomHandler.removeClass(this.el.nativeElement, 'p-draggable-enter');\n this.onDragLeave.emit(event);\n }\n }\n\n allowDrop(event: DragEvent): boolean {\n let dragScope = (event.dataTransfer as DataTransfer).getData('text');\n if (typeof this.scope == 'string' && dragScope == this.scope) {\n return true;\n } else if (Array.isArray(this.scope)) {\n for (let j = 0; j < this.scope.length; j++) {\n if (dragScope == this.scope[j]) {\n return true;\n }\n }\n }\n return false;\n }\n\n ngOnDestroy() {\n this.unbindDragOverListener();\n }\n}\n\n@NgModule({\n imports: [CommonModule],\n exports: [Draggable, Droppable],\n declarations: [Draggable, Droppable]\n})\nexport class DragDropModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;AAIA;;;AAGG;MAOU,SAAS,CAAA;AAyCC,IAAA,EAAA,CAAA;AAAuB,IAAA,IAAA,CAAA;AAAsB,IAAA,QAAA,CAAA;AAxC3C,IAAA,KAAK,CAAqB;AAC/C;;;AAGG;AACM,IAAA,UAAU,CAAiH;AACpI;;;AAGG;AACM,IAAA,UAAU,CAAqB;AACxC;;;;AAIG;AACO,IAAA,WAAW,GAA4B,IAAI,YAAY,EAAE,CAAC;AACpE;;;;AAIG;AACO,IAAA,SAAS,GAA4B,IAAI,YAAY,EAAE,CAAC;AAClE;;;;AAIG;AACO,IAAA,MAAM,GAA4B,IAAI,YAAY,EAAE,CAAC;AAE/D,IAAA,MAAM,CAAM;AAEZ,IAAA,YAAY,CAAe;AAE3B,IAAA,iBAAiB,CAA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