c2s-ngx-dnd
Advanced tools
Comparing version 1.2.10 to 1.2.11
@@ -43,7 +43,8 @@ import { Directive, Input, Output, ElementRef, HostListener, EventEmitter } from '@angular/core'; | ||
if(this.dndComparer === undefined) { | ||
this.dndComparer = __jsonComparer; | ||
let comparer = _this.dndComparer; | ||
if (comparer === undefined) { | ||
comparer = __jsonComparer; | ||
} | ||
if ( this.dndComparer(_this.dndObject, item)) { | ||
if (comparer(_this.dndObject, item)) { | ||
var cb = { copy: 'dndCopied', link: 'dndLinked', move: 'dndMoved', none: 'dndCanceled' }; | ||
@@ -50,0 +51,0 @@ if (_this.dragState) { |
@@ -1,1 +0,375 @@ | ||
[{"__symbolic":"module","version":4,"metadata":{"DndDraggable":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":12,"character":1},"arguments":[{"selector":"[dndDraggable]"}]}],"members":{"option":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":5},"arguments":["dndDraggable"]}]}],"dndType":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":5},"arguments":["dndType"]}]}],"dndObject":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":5},"arguments":["dndObject"]}]}],"disableDrag":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":5},"arguments":["dndDragDisabled"]}]}],"dndDragStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":24,"character":5},"arguments":["dndDragStart"]}]}],"dndDragEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":25,"character":5},"arguments":["dndDragEnd"]}]}],"dndCopied":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":5},"arguments":["dndCopied"]}]}],"dndLinked":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":5},"arguments":["dndLinked"]}]}],"dndMoved":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":28,"character":5},"arguments":["dndMoved"]}]}],"dndCanceled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":29,"character":5},"arguments":["dndCanceled"]}]}],"dndSelected":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":30,"character":5},"arguments":["dndSelected"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":37,"character":25},{"__symbolic":"reference","module":"../services","name":"DndState","line":38,"character":26}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"handleDragStart":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":68,"character":5},"arguments":["dragstart",["$event"]]}]}],"handleDragEnd":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":122,"character":5},"arguments":["dragend",["$event"]]}]}],"handleClick":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"HostListener","line":133,"character":5},"arguments":["click",["$event"]]}]}],"findElementWithAttribute":[{"__symbolic":"method"}]}}}}] | ||
[ | ||
{ | ||
"__symbolic": "module", | ||
"version": 4, | ||
"metadata": { | ||
"DndDraggable": { | ||
"__symbolic": "class", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Directive", | ||
"line": 12, | ||
"character": 1 | ||
}, | ||
"arguments": [ | ||
{ | ||
"selector": "[dndDraggable]" | ||
} | ||
] | ||
} | ||
], | ||
"members": { | ||
"option": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Input", | ||
"line": 16, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndDraggable" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndType": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Input", | ||
"line": 17, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndType" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndObject": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Input", | ||
"line": 18, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndObject" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndComparer": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Input", | ||
"line": 19, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndComparer" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"disableDrag": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Input", | ||
"line": 19, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndDragDisabled" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndDragStart": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 24, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndDragStart" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndDragEnd": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 25, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndDragEnd" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndCopied": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 26, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndCopied" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndLinked": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 27, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndLinked" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndMoved": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 28, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndMoved" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndCanceled": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 29, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndCanceled" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"dndSelected": [ | ||
{ | ||
"__symbolic": "property", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "Output", | ||
"line": 30, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dndSelected" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"__ctor__": [ | ||
{ | ||
"__symbolic": "constructor", | ||
"parameters": [ | ||
{ | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "ElementRef", | ||
"line": 37, | ||
"character": 25 | ||
}, | ||
{ | ||
"__symbolic": "reference", | ||
"module": "../services", | ||
"name": "DndState", | ||
"line": 38, | ||
"character": 26 | ||
} | ||
] | ||
} | ||
], | ||
"ngOnInit": [ | ||
{ | ||
"__symbolic": "method" | ||
} | ||
], | ||
"ngOnDestroy": [ | ||
{ | ||
"__symbolic": "method" | ||
} | ||
], | ||
"handleDragStart": [ | ||
{ | ||
"__symbolic": "method", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "HostListener", | ||
"line": 68, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dragstart", | ||
[ | ||
"$event" | ||
] | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"handleDragEnd": [ | ||
{ | ||
"__symbolic": "method", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "HostListener", | ||
"line": 122, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"dragend", | ||
[ | ||
"$event" | ||
] | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"handleClick": [ | ||
{ | ||
"__symbolic": "method", | ||
"decorators": [ | ||
{ | ||
"__symbolic": "call", | ||
"expression": { | ||
"__symbolic": "reference", | ||
"module": "@angular/core", | ||
"name": "HostListener", | ||
"line": 133, | ||
"character": 5 | ||
}, | ||
"arguments": [ | ||
"click", | ||
[ | ||
"$event" | ||
] | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"findElementWithAttribute": [ | ||
{ | ||
"__symbolic": "method" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] |
@@ -53,3 +53,3 @@ { | ||
}, | ||
"version": "1.2.10" | ||
"version": "1.2.11" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90462
1486