ap-angular-sortablejs
Advanced tools
Comparing version 1.3.3 to 1.3.5
@@ -6,2 +6,3 @@ export interface SortablejsOptions { | ||
disabled?: boolean; | ||
disableBinding?: boolean; | ||
store?: { | ||
@@ -8,0 +9,0 @@ get: (sortable: any) => any[]; |
@@ -75,3 +75,3 @@ import { Directive, ElementRef, Input, NgZone } from '@angular/core'; | ||
onAdd: function (event) { | ||
if (_this.bindingEnabled) { | ||
if (!_this.inputOptions.disableBinding && _this.bindingEnabled) { | ||
_this.onremove = function (item) { | ||
@@ -89,3 +89,3 @@ if (_this.isItemsFormArray) { | ||
onRemove: function (event) { | ||
if (_this.bindingEnabled) { | ||
if (!_this.inputOptions.disableBinding && _this.bindingEnabled) { | ||
var item = void 0; | ||
@@ -105,3 +105,3 @@ if (_this.isItemsFormArray) { | ||
onUpdate: function (event) { | ||
if (_this.bindingEnabled) { | ||
if (!_this.inputOptions.disableBinding && _this.bindingEnabled) { | ||
if (_this.isItemsFormArray) { | ||
@@ -108,0 +108,0 @@ var relocated = _this.items.at(event.oldIndex); |
{ | ||
"name": "ap-angular-sortablejs", | ||
"version": "1.3.3", | ||
"version": "1.3.5", | ||
"description": "SortableJS for Angular 2+", | ||
@@ -18,3 +18,3 @@ "main": "./dist/index.js", | ||
"type": "git", | ||
"url": "git+https://github.com/SortableJS/angular-sortablejs.git" | ||
"url": "git+https://github.com/lbertenasco/ap-angular-sortablejs.git" | ||
}, | ||
@@ -34,5 +34,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/SortableJS/angular-sortablejs/issues" | ||
"url": "https://github.com/lbertenasco/ap-angular-sortablejs/issues" | ||
}, | ||
"homepage": "https://github.com/SortableJS/angular-sortablejs#readme", | ||
"homepage": "https://github.com/lbertenasco/ap-angular-sortablejs#readme", | ||
"dependencies": { | ||
@@ -51,3 +51,3 @@ "sortablejs": "1.5.1" | ||
"rxjs": "5.3.0", | ||
"tslint": "5.0.0", | ||
"tslint": "5.1.0", | ||
"typescript": "2.2.2" | ||
@@ -54,0 +54,0 @@ }, |
@@ -160,4 +160,4 @@ # angular-sortablejs | ||
By default, the boolean parameter **runInsideAngular** is set to **false**. | ||
This means that the initial binding of all mouse events of the component will be set so that they **will not** trigger Angular's change detection. | ||
By default, the boolean parameter **runInsideAngular** is set to **false**. | ||
This means that the initial binding of all mouse events of the component will be set so that they **will not** trigger Angular's change detection. | ||
@@ -164,0 +164,0 @@ If this parameter is set to true, then for large components - with a lot of data bindings - the UI will function in a staggered and lagging way (mainly when dragging items), while every event will trigger the change detection (which might be needed in some special edge cases). |
Sorry, the diff of this file is not supported yet
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
24909
219
2
1