angular-sortablejs
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -31,3 +31,2 @@ import { Directive, ElementRef, Input, NgZone } from '@angular/core'; | ||
if (currentOptions_1[optionName] !== previousOptions_1[optionName]) { | ||
// use low-level option setter | ||
_this._sortable.option(optionName, currentOptions_1[optionName]); | ||
@@ -54,3 +53,2 @@ } | ||
Object.defineProperty(SortablejsDirective.prototype, "bindingEnabled", { | ||
// returns whether the items are currently set | ||
get: function () { | ||
@@ -63,6 +61,3 @@ return !!this.items; | ||
Object.defineProperty(SortablejsDirective.prototype, "isItemsFormArray", { | ||
// we need this to identify that the input is a FormArray | ||
// we don't want to have a dependency on @angular/forms just for that | ||
get: function () { | ||
// just checking for random FormArray methods not available on a standard array | ||
return !!this.items.at && !!this.items.insert && !!this.items.reset; | ||
@@ -76,4 +71,2 @@ }, | ||
var _this = this; | ||
// always intercept standard events but act only in case items are set (bindingEnabled) | ||
// allows to forget about tracking this.items changes | ||
return { | ||
@@ -134,3 +127,2 @@ onAdd: function (event) { | ||
]; | ||
/** @nocollapse */ | ||
SortablejsDirective.ctorParameters = function () { return [ | ||
@@ -137,0 +129,0 @@ { type: SortablejsService, }, |
@@ -27,4 +27,3 @@ import { NgModule } from '@angular/core'; | ||
]; | ||
/** @nocollapse */ | ||
SortablejsModule.ctorParameters = function () { return []; }; | ||
//# sourceMappingURL=sortablejs.module.js.map |
export declare class SortablejsService { | ||
constructor(); | ||
onremove: (item: any) => void; | ||
} |
@@ -1,2 +0,2 @@ | ||
import { Injectable } from "@angular/core"; | ||
import { Injectable } from '@angular/core'; | ||
var SortablejsService = (function () { | ||
@@ -11,4 +11,3 @@ function SortablejsService() { | ||
]; | ||
/** @nocollapse */ | ||
SortablejsService.ctorParameters = function () { return []; }; | ||
//# sourceMappingURL=sortablejs.service.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"SortablejsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}},{"__symbolic":"module","version":1,"metadata":{"SortablejsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"__ctor__":[{"__symbolic":"constructor"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"SortablejsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}]}}},{"__symbolic":"module","version":1,"metadata":{"SortablejsService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}]}}}] |
{ | ||
"name": "angular-sortablejs", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "SortableJS for Angular", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
27948
243