ap-angular-sortablejs
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -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.4.0", | ||
"version": "1.4.1", | ||
"description": "SortableJS for Angular 2+", | ||
@@ -25,3 +25,2 @@ "main": "./dist/index.js", | ||
"angular-sortablejs", | ||
"ap-angular-sortablejs", | ||
"ng2-sortable", | ||
@@ -51,3 +50,3 @@ "ng2-sortablejs", | ||
"rxjs": "5.3.0", | ||
"tslint": "5.0.0", | ||
"tslint": "5.1.0", | ||
"typescript": "2.2.2" | ||
@@ -54,0 +53,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# ap-angular-sortablejs | ||
# angular-sortablejs | ||
@@ -8,3 +8,3 @@ This package is an Angular 2 binding for [Sortable.js](https://github.com/RubaXa/Sortable). Supports standard arrays and Angular `FormArray`. | ||
```sh | ||
npm install --save ap-angular-sortablejs | ||
npm install --save angular-sortablejs | ||
``` | ||
@@ -24,3 +24,3 @@ | ||
... | ||
'ap-angular-sortablejs': 'node_modules/ap-angular-sortablejs/dist/', | ||
'angular-sortablejs': 'node_modules/angular-sortablejs/dist/', | ||
'sortablejs': 'node_modules/sortablejs/Sortable.js', | ||
@@ -32,3 +32,3 @@ ... | ||
... | ||
'ap-angular-sortablejs': { main: 'index.js', defaultExtension: 'js' }, | ||
'angular-sortablejs': { main: 'index.js', defaultExtension: 'js' }, | ||
... | ||
@@ -126,3 +126,3 @@ }; | ||
import { Component } from '@angular/core'; | ||
import { SortablejsOptions } from 'ap-angular-sortablejs'; | ||
import { SortablejsOptions } from 'angular-sortablejs'; | ||
@@ -129,0 +129,0 @@ @Component({ |
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
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