oribella-aurelia-sortable
Advanced tools
Comparing version 0.5.2 to 0.5.3
@@ -0,1 +1,11 @@ | ||
<a name="0.5.3"></a> | ||
## [0.5.3](https://github.com/oribella/aurelia-sortable/compare/v0.5.2...v0.5.3) (2015-12-13) | ||
### Bug Fixes | ||
* **dist:** update `dist` ([c0d8e31](https://github.com/oribella/aurelia-sortable/commit/c0d8e31)) | ||
<a name="0.5.2"></a> | ||
@@ -2,0 +12,0 @@ ## [0.5.2](https://github.com/oribella/aurelia-sortable/compare/v0.5.1...v0.5.2) (2015-12-10) |
@@ -1,38 +0,15 @@ | ||
"use strict"; | ||
define(["exports", "aurelia-dependency-injection"], function (exports, _aureliaDependencyInjection) { | ||
"use strict"; | ||
define(["exports", "aurelia-dependency-injection"], function (exports, _aureliaDependencyInjection) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.AutoScroll = undefined; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _createClass = (function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
})(); | ||
var _dec, _class; | ||
var AutoScroll = exports.AutoScroll = (_dec = (0, _aureliaDependencyInjection.transient)(), _dec(_class = (function () { | ||
var AutoScroll = (function () { | ||
function AutoScroll() { | ||
_classCallCheck(this, AutoScroll); | ||
_classCallCheck(this, _AutoScroll); | ||
@@ -146,4 +123,8 @@ this.ticks = [0, 0]; | ||
var _AutoScroll = AutoScroll; | ||
AutoScroll = (0, _aureliaDependencyInjection.transient)()(AutoScroll) || AutoScroll; | ||
return AutoScroll; | ||
})()) || _class); | ||
})(); | ||
exports.AutoScroll = AutoScroll; | ||
}); |
@@ -1,38 +0,15 @@ | ||
"use strict"; | ||
define(["exports", "aurelia-dependency-injection"], function (exports, _aureliaDependencyInjection) { | ||
"use strict"; | ||
define(["exports", "aurelia-dependency-injection"], function (exports, _aureliaDependencyInjection) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.Drag = undefined; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _createClass = (function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
})(); | ||
var _dec, _class; | ||
var Drag = exports.Drag = (_dec = (0, _aureliaDependencyInjection.transient)(), _dec(_class = (function () { | ||
var Drag = (function () { | ||
function Drag() { | ||
_classCallCheck(this, Drag); | ||
_classCallCheck(this, _Drag); | ||
@@ -130,4 +107,8 @@ this.startLeft = 0; | ||
var _Drag = Drag; | ||
Drag = (0, _aureliaDependencyInjection.transient)()(Drag) || Drag; | ||
return Drag; | ||
})()) || _class); | ||
})(); | ||
exports.Drag = Drag; | ||
}); |
@@ -1,4 +0,4 @@ | ||
"use strict"; | ||
define(["exports"], function (exports) { | ||
"use strict"; | ||
define(["exports"], function (exports) { | ||
Object.defineProperty(exports, "__esModule", { | ||
@@ -5,0 +5,0 @@ value: true |
@@ -1,42 +0,148 @@ | ||
"use strict"; | ||
define(["exports", "aurelia-pal", "aurelia-templating", "aurelia-dependency-injection", "oribella-default-gestures", "./drag", "./auto-scroll"], function (exports, _aureliaPal, _aureliaTemplating, _aureliaDependencyInjection, _oribellaDefaultGestures, _drag, _autoScroll) { | ||
"use strict"; | ||
define(["exports", "aurelia-pal", "aurelia-templating", "aurelia-dependency-injection", "oribella-default-gestures", "./drag", "./auto-scroll"], function (exports, _aureliaPal, _aureliaTemplating, _aureliaDependencyInjection, _oribellaDefaultGestures, _drag, _autoScroll) { | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.SortableItem = exports.Sortable = exports.PLACEHOLDER = undefined; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var _createDecoratedClass = (function () { function defineProperties(target, descriptors, initializers) { for (var i = 0; i < descriptors.length; i++) { var descriptor = descriptors[i]; var decorators = descriptor.decorators; var key = descriptor.key; delete descriptor.key; delete descriptor.decorators; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor || descriptor.initializer) descriptor.writable = true; if (decorators) { for (var f = 0; f < decorators.length; f++) { var decorator = decorators[f]; if (typeof decorator === "function") { descriptor = decorator(target, key, descriptor) || descriptor; } else { throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator); } } if (descriptor.initializer !== undefined) { initializers[key] = descriptor; continue; } } Object.defineProperty(target, key, descriptor); } } return function (Constructor, protoProps, staticProps, protoInitializers, staticInitializers) { if (protoProps) defineProperties(Constructor.prototype, protoProps, protoInitializers); if (staticProps) defineProperties(Constructor, staticProps, staticInitializers); return Constructor; }; })(); | ||
var _createClass = (function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
})(); | ||
function _defineDecoratedPropertyDescriptor(target, key, descriptors) { var _descriptor = descriptors[key]; if (!_descriptor) return; var descriptor = {}; for (var _key in _descriptor) descriptor[_key] = _descriptor[_key]; descriptor.value = descriptor.initializer ? descriptor.initializer.call(target) : undefined; Object.defineProperty(target, key, descriptor); } | ||
var _dec, _dec2, _dec3, _class, _dec4, _class2; | ||
var PLACEHOLDER = "__placeholder__"; | ||
var PLACEHOLDER = exports.PLACEHOLDER = "__placeholder__"; | ||
var Sortable = exports.Sortable = (_dec = (0, _aureliaTemplating.customAttribute)("sortable"), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _drag.Drag, _autoScroll.AutoScroll), _dec3 = (0, _aureliaDependencyInjection.transient)(), _dec(_class = _dec2(_class = _dec3(_class = (function () { | ||
//{ left, top, right, bottom } | ||
exports.PLACEHOLDER = PLACEHOLDER; | ||
var Sortable = (function () { | ||
var _instanceInitializers = {}; | ||
var _instanceInitializers = {}; | ||
_createDecoratedClass(Sortable, [{ | ||
key: "scroll", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "scrollSpeed", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return 10; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "scrollSensitivity", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return 10; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "items", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return []; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "placeholderClass", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return "placeholder"; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "axis", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return ""; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "boundingRect", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
//{ left, top, right, bottom } | ||
enumerable: true | ||
}, { | ||
key: "moved", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return function () {}; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "dragZIndex", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return 1; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "disallowedDragTagNames", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return ["INPUT", "SELECT", "TEXTAREA"]; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "allowDrag", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
var _this = this; | ||
return function (args) { | ||
if (_this.disallowedDragTagNames.indexOf(args.event.target.tagName) !== -1) { | ||
return false; | ||
} | ||
if (args.event.target.isContentEditable) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "allowMove", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return function () { | ||
return true; | ||
}; | ||
}, | ||
enumerable: true | ||
}], null, _instanceInitializers); | ||
function Sortable(element, drag, autoScroll) { | ||
_classCallCheck(this, Sortable); | ||
_classCallCheck(this, _Sortable); | ||
_defineDecoratedPropertyDescriptor(this, "scroll", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "scrollSpeed", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "scrollSensitivity", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "items", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "placeholderClass", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "axis", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "boundingRect", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "moved", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "dragZIndex", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "disallowedDragTagNames", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "allowDrag", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "allowMove", _instanceInitializers); | ||
this.selector = "[sortable-item]"; | ||
@@ -58,3 +164,3 @@ this.fromIx = -1; | ||
_createClass(Sortable, [{ | ||
_createDecoratedClass(Sortable, [{ | ||
key: "activate", | ||
@@ -319,12 +425,23 @@ value: function activate() { | ||
} | ||
}]); | ||
}], null, _instanceInitializers); | ||
var _Sortable = Sortable; | ||
Sortable = (0, _aureliaDependencyInjection.transient)()(Sortable) || Sortable; | ||
Sortable = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _drag.Drag, _autoScroll.AutoScroll)(Sortable) || Sortable; | ||
Sortable = (0, _aureliaTemplating.customAttribute)("sortable")(Sortable) || Sortable; | ||
return Sortable; | ||
})()) || _class) || _class) || _class); | ||
var SortableItem = exports.SortableItem = (_dec4 = (0, _aureliaTemplating.customAttribute)("sortable-item"), _dec4(_class2 = (function () { | ||
})(); | ||
exports.Sortable = Sortable; | ||
var SortableItem = (function () { | ||
var _instanceInitializers2 = {}; | ||
function SortableItem() { | ||
_classCallCheck(this, SortableItem); | ||
_classCallCheck(this, _SortableItem); | ||
_defineDecoratedPropertyDescriptor(this, "item", _instanceInitializers2); | ||
} | ||
_createClass(SortableItem, [{ | ||
_createDecoratedClass(SortableItem, [{ | ||
key: "bind", | ||
@@ -334,6 +451,17 @@ value: function bind(ctx, overrideCtx) { | ||
} | ||
}]); | ||
}, { | ||
key: "item", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
enumerable: true | ||
}], null, _instanceInitializers2); | ||
var _SortableItem = SortableItem; | ||
SortableItem = (0, _aureliaTemplating.customAttribute)("sortable-item")(SortableItem) || SortableItem; | ||
return SortableItem; | ||
})()) || _class2); | ||
})(); | ||
exports.SortableItem = SortableItem; | ||
}); |
"use strict"; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _dec, _class; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.AutoScroll = undefined; | ||
var _aureliaDependencyInjection = require("aurelia-dependency-injection"); | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var AutoScroll = exports.AutoScroll = (_dec = (0, _aureliaDependencyInjection.transient)(), _dec(_class = (function () { | ||
var _aureliaDependencyInjection = require("aurelia-dependency-injection"); | ||
var AutoScroll = (function () { | ||
function AutoScroll() { | ||
_classCallCheck(this, AutoScroll); | ||
_classCallCheck(this, _AutoScroll); | ||
@@ -127,3 +124,7 @@ this.ticks = [0, 0]; | ||
var _AutoScroll = AutoScroll; | ||
AutoScroll = (0, _aureliaDependencyInjection.transient)()(AutoScroll) || AutoScroll; | ||
return AutoScroll; | ||
})()) || _class); | ||
})(); | ||
exports.AutoScroll = AutoScroll; |
"use strict"; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _dec, _class; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.Drag = undefined; | ||
var _aureliaDependencyInjection = require("aurelia-dependency-injection"); | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var Drag = exports.Drag = (_dec = (0, _aureliaDependencyInjection.transient)(), _dec(_class = (function () { | ||
var _aureliaDependencyInjection = require("aurelia-dependency-injection"); | ||
var Drag = (function () { | ||
function Drag() { | ||
_classCallCheck(this, Drag); | ||
_classCallCheck(this, _Drag); | ||
@@ -111,3 +108,7 @@ this.startLeft = 0; | ||
var _Drag = Drag; | ||
Drag = (0, _aureliaDependencyInjection.transient)()(Drag) || Drag; | ||
return Drag; | ||
})()) || _class); | ||
})(); | ||
exports.Drag = Drag; |
@@ -7,4 +7,5 @@ "use strict"; | ||
exports.configure = configure; | ||
function configure(config) { | ||
config.globalResources("./sortable"); | ||
} |
"use strict"; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
var _dec, _dec2, _dec3, _class, _dec4, _class2; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.SortableItem = exports.Sortable = exports.PLACEHOLDER = undefined; | ||
var _createDecoratedClass = (function () { function defineProperties(target, descriptors, initializers) { for (var i = 0; i < descriptors.length; i++) { var descriptor = descriptors[i]; var decorators = descriptor.decorators; var key = descriptor.key; delete descriptor.key; delete descriptor.decorators; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor || descriptor.initializer) descriptor.writable = true; if (decorators) { for (var f = 0; f < decorators.length; f++) { var decorator = decorators[f]; if (typeof decorator === "function") { descriptor = decorator(target, key, descriptor) || descriptor; } else { throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator); } } if (descriptor.initializer !== undefined) { initializers[key] = descriptor; continue; } } Object.defineProperty(target, key, descriptor); } } return function (Constructor, protoProps, staticProps, protoInitializers, staticInitializers) { if (protoProps) defineProperties(Constructor.prototype, protoProps, protoInitializers); if (staticProps) defineProperties(Constructor, staticProps, staticInitializers); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _defineDecoratedPropertyDescriptor(target, key, descriptors) { var _descriptor = descriptors[key]; if (!_descriptor) return; var descriptor = {}; for (var _key in _descriptor) descriptor[_key] = _descriptor[_key]; descriptor.value = descriptor.initializer ? descriptor.initializer.call(target) : undefined; Object.defineProperty(target, key, descriptor); } | ||
var _aureliaPal = require("aurelia-pal"); | ||
@@ -24,12 +25,136 @@ | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
var PLACEHOLDER = "__placeholder__"; | ||
var PLACEHOLDER = exports.PLACEHOLDER = "__placeholder__"; | ||
exports.PLACEHOLDER = PLACEHOLDER; | ||
var Sortable = exports.Sortable = (_dec = (0, _aureliaTemplating.customAttribute)("sortable"), _dec2 = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _drag.Drag, _autoScroll.AutoScroll), _dec3 = (0, _aureliaDependencyInjection.transient)(), _dec(_class = _dec2(_class = _dec3(_class = (function () { | ||
//{ left, top, right, bottom } | ||
var Sortable = (function () { | ||
var _instanceInitializers = {}; | ||
var _instanceInitializers = {}; | ||
_createDecoratedClass(Sortable, [{ | ||
key: "scroll", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "scrollSpeed", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return 10; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "scrollSensitivity", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return 10; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "items", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return []; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "placeholderClass", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return "placeholder"; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "axis", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return ""; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "boundingRect", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
//{ left, top, right, bottom } | ||
enumerable: true | ||
}, { | ||
key: "moved", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return function () {}; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "dragZIndex", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return 1; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "disallowedDragTagNames", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return ["INPUT", "SELECT", "TEXTAREA"]; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "allowDrag", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
var _this = this; | ||
return function (args) { | ||
if (_this.disallowedDragTagNames.indexOf(args.event.target.tagName) !== -1) { | ||
return false; | ||
} | ||
if (args.event.target.isContentEditable) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "allowMove", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return function () { | ||
return true; | ||
}; | ||
}, | ||
enumerable: true | ||
}], null, _instanceInitializers); | ||
function Sortable(element, drag, autoScroll) { | ||
_classCallCheck(this, Sortable); | ||
_classCallCheck(this, _Sortable); | ||
_defineDecoratedPropertyDescriptor(this, "scroll", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "scrollSpeed", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "scrollSensitivity", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "items", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "placeholderClass", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "axis", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "boundingRect", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "moved", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "dragZIndex", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "disallowedDragTagNames", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "allowDrag", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "allowMove", _instanceInitializers); | ||
this.selector = "[sortable-item]"; | ||
@@ -51,3 +176,3 @@ this.fromIx = -1; | ||
_createClass(Sortable, [{ | ||
_createDecoratedClass(Sortable, [{ | ||
key: "activate", | ||
@@ -312,12 +437,23 @@ value: function activate() { | ||
} | ||
}]); | ||
}], null, _instanceInitializers); | ||
var _Sortable = Sortable; | ||
Sortable = (0, _aureliaDependencyInjection.transient)()(Sortable) || Sortable; | ||
Sortable = (0, _aureliaDependencyInjection.inject)(_aureliaPal.DOM.Element, _drag.Drag, _autoScroll.AutoScroll)(Sortable) || Sortable; | ||
Sortable = (0, _aureliaTemplating.customAttribute)("sortable")(Sortable) || Sortable; | ||
return Sortable; | ||
})()) || _class) || _class) || _class); | ||
var SortableItem = exports.SortableItem = (_dec4 = (0, _aureliaTemplating.customAttribute)("sortable-item"), _dec4(_class2 = (function () { | ||
})(); | ||
exports.Sortable = Sortable; | ||
var SortableItem = (function () { | ||
var _instanceInitializers2 = {}; | ||
function SortableItem() { | ||
_classCallCheck(this, SortableItem); | ||
_classCallCheck(this, _SortableItem); | ||
_defineDecoratedPropertyDescriptor(this, "item", _instanceInitializers2); | ||
} | ||
_createClass(SortableItem, [{ | ||
_createDecoratedClass(SortableItem, [{ | ||
key: "bind", | ||
@@ -327,5 +463,16 @@ value: function bind(ctx, overrideCtx) { | ||
} | ||
}]); | ||
}, { | ||
key: "item", | ||
decorators: [_aureliaTemplating.bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
enumerable: true | ||
}], null, _instanceInitializers2); | ||
var _SortableItem = SortableItem; | ||
SortableItem = (0, _aureliaTemplating.customAttribute)("sortable-item")(SortableItem) || SortableItem; | ||
return SortableItem; | ||
})()) || _class2); | ||
})(); | ||
exports.SortableItem = SortableItem; |
@@ -1,12 +0,10 @@ | ||
"use strict"; | ||
System.register(["aurelia-dependency-injection"], function (_export) { | ||
var transient, _createClass, _dec, _class, AutoScroll; | ||
"use strict"; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var transient, AutoScroll; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
return { | ||
@@ -17,23 +15,5 @@ setters: [function (_aureliaDependencyInjection) { | ||
execute: function () { | ||
_createClass = (function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
})(); | ||
_export("AutoScroll", AutoScroll = (_dec = transient(), _dec(_class = (function () { | ||
AutoScroll = (function () { | ||
function AutoScroll() { | ||
_classCallCheck(this, AutoScroll); | ||
_classCallCheck(this, _AutoScroll); | ||
@@ -54,2 +34,3 @@ this.ticks = [0, 0]; | ||
var sensitivity = arguments.length <= 2 || arguments[2] === undefined ? 10 : arguments[2]; | ||
this.axis = axis; | ||
@@ -66,4 +47,4 @@ this.speed = speed; | ||
var cAF = arguments.length <= 7 || arguments[7] === undefined ? cancelAnimationFrame : arguments[7]; | ||
var d = this.getScrollDirection(x, y, scrollRect); | ||
if (this.active) { | ||
@@ -74,6 +55,4 @@ if (d[0] === 0 && d[1] === 0) { | ||
} | ||
return; | ||
} | ||
if (d[0] === 0 && d[1] === 0) { | ||
@@ -84,3 +63,2 @@ return; | ||
this.ticks = this.getTicks(d, element.scrollLeft, element.scrollTop, scrollWidth, scrollHeight, scrollRect.width, scrollRect.height); | ||
if (this.ticks[0] <= 0 && this.ticks[1] <= 0) { | ||
@@ -94,6 +72,6 @@ return; | ||
var autoScroll = function autoScroll() { | ||
if (_this.ticks[0] > 0) { | ||
element.scrollLeft += scrollDeltaX; | ||
} | ||
if (_this.ticks[1] > 0) { | ||
@@ -105,3 +83,2 @@ element.scrollTop += scrollDeltaY; | ||
--_this.ticks[1]; | ||
if (_this.ticks[0] <= 0 && _this.ticks[1] <= 0) { | ||
@@ -122,2 +99,3 @@ _this.active = false; | ||
var cAF = arguments.length <= 0 || arguments[0] === undefined ? cancelAnimationFrame : arguments[0]; | ||
cAF(this.rAFId); | ||
@@ -130,4 +108,7 @@ this.ticks = [0, 0]; | ||
var ticks = []; | ||
ticks[0] = d[0] > 0 ? Math.ceil((scrollWidth - width - scrollLeft) / this.speed) : d[0] < 0 ? scrollLeft / this.speed : 0; | ||
ticks[1] = d[1] > 0 ? Math.ceil((scrollHeight - height - scrollTop) / this.speed) : d[1] < 0 ? scrollTop / this.speed : 0; | ||
return ticks; | ||
@@ -143,5 +124,9 @@ } | ||
var bottom = _scrollRect$bottom === undefined ? 0 : _scrollRect$bottom; | ||
var d = [0, 0]; | ||
d[0] = this.axis === "y" ? 0 : x >= right - this.sensitivity ? 1 : x <= left + this.sensitivity ? -1 : 0; | ||
d[1] = this.axis === "x" ? 0 : y >= bottom - this.sensitivity ? 1 : y <= top + this.sensitivity ? -1 : 0; | ||
return d; | ||
@@ -151,4 +136,6 @@ } | ||
var _AutoScroll = AutoScroll; | ||
AutoScroll = transient()(AutoScroll) || AutoScroll; | ||
return AutoScroll; | ||
})()) || _class)); | ||
})(); | ||
@@ -155,0 +142,0 @@ _export("AutoScroll", AutoScroll); |
@@ -1,12 +0,10 @@ | ||
"use strict"; | ||
System.register(["aurelia-dependency-injection"], function (_export) { | ||
var transient, _createClass, _dec, _class, Drag; | ||
"use strict"; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var transient, Drag; | ||
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
return { | ||
@@ -17,32 +15,9 @@ setters: [function (_aureliaDependencyInjection) { | ||
execute: function () { | ||
_createClass = (function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
})(); | ||
_export("Drag", Drag = (_dec = transient(), _dec(_class = (function () { | ||
Drag = (function () { | ||
function Drag() { | ||
_classCallCheck(this, Drag); | ||
_classCallCheck(this, _Drag); | ||
this.startLeft = 0; | ||
this.startTop = 0; | ||
this.rect = { | ||
left: 0, | ||
top: 0, | ||
width: 0, | ||
height: 0 | ||
}; | ||
this.rect = { left: 0, top: 0, width: 0, height: 0 }; | ||
this.offsetX = 0; | ||
@@ -56,2 +31,3 @@ this.offsetY = 0; | ||
this.element = element; | ||
var style = {}; | ||
@@ -65,2 +41,3 @@ style.position = element.style.position; | ||
style.zIndex = element.style.zIndex; | ||
element.style.position = "absolute"; | ||
@@ -71,2 +48,3 @@ element.style.width = rect.width + "px"; | ||
element.style.zIndex = dragZIndex; | ||
return function () { | ||
@@ -93,7 +71,11 @@ Object.keys(style).forEach(function (key) { | ||
var offsetParentRect = element.offsetParent.getBoundingClientRect(); | ||
this.startLeft = rect.left - offsetParentRect.left; | ||
this.startTop = rect.top - offsetParentRect.top; | ||
this.offsetX = this.startLeft - pageX - scrollLeft; | ||
this.offsetY = this.startTop - pageY - scrollTop; | ||
this.unpin = this.pin(element, rect, dragZIndex); | ||
this.update(pageX, pageY, scrollLeft, scrollTop); | ||
@@ -111,7 +93,5 @@ } | ||
break; | ||
case "y": | ||
left = this.startLeft; | ||
break; | ||
default: | ||
@@ -131,3 +111,2 @@ break; | ||
} | ||
this.element = null; | ||
@@ -138,4 +117,6 @@ } | ||
var _Drag = Drag; | ||
Drag = transient()(Drag) || Drag; | ||
return Drag; | ||
})()) || _class)); | ||
})(); | ||
@@ -142,0 +123,0 @@ _export("Drag", Drag); |
@@ -1,14 +0,14 @@ | ||
"use strict"; | ||
System.register([], function (_export) { | ||
"use strict"; | ||
System.register([], function (_export) { | ||
_export("configure", configure); | ||
function configure(config) { | ||
config.globalResources("./sortable"); | ||
} | ||
return { | ||
setters: [], | ||
execute: function () { | ||
function configure(config) { | ||
config.globalResources("./sortable"); | ||
} | ||
_export("configure", configure); | ||
} | ||
execute: function () {} | ||
}; | ||
}); |
@@ -1,12 +0,12 @@ | ||
"use strict"; | ||
System.register(["aurelia-pal", "aurelia-templating", "aurelia-dependency-injection", "oribella-default-gestures", "./drag", "./auto-scroll"], function (_export) { | ||
var DOM, customAttribute, bindable, inject, transient, oribella, matchesSelector, STRATEGY_FLAG, Drag, AutoScroll, _createClass, _dec, _dec2, _dec3, _class, _dec4, _class2, PLACEHOLDER, Sortable, SortableItem; | ||
"use strict"; | ||
function _classCallCheck(instance, Constructor) { | ||
if (!(instance instanceof Constructor)) { | ||
throw new TypeError("Cannot call a class as a function"); | ||
} | ||
} | ||
var DOM, customAttribute, bindable, inject, transient, oribella, matchesSelector, STRATEGY_FLAG, Drag, AutoScroll, PLACEHOLDER, Sortable, SortableItem; | ||
var _createDecoratedClass = (function () { function defineProperties(target, descriptors, initializers) { for (var i = 0; i < descriptors.length; i++) { var descriptor = descriptors[i]; var decorators = descriptor.decorators; var key = descriptor.key; delete descriptor.key; delete descriptor.decorators; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor || descriptor.initializer) descriptor.writable = true; if (decorators) { for (var f = 0; f < decorators.length; f++) { var decorator = decorators[f]; if (typeof decorator === "function") { descriptor = decorator(target, key, descriptor) || descriptor; } else { throw new TypeError("The decorator for method " + descriptor.key + " is of the invalid type " + typeof decorator); } } if (descriptor.initializer !== undefined) { initializers[key] = descriptor; continue; } } Object.defineProperty(target, key, descriptor); } } return function (Constructor, protoProps, staticProps, protoInitializers, staticInitializers) { if (protoProps) defineProperties(Constructor.prototype, protoProps, protoInitializers); if (staticProps) defineProperties(Constructor, staticProps, staticInitializers); return Constructor; }; })(); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
function _defineDecoratedPropertyDescriptor(target, key, descriptors) { var _descriptor = descriptors[key]; if (!_descriptor) return; var descriptor = {}; for (var _key in _descriptor) descriptor[_key] = _descriptor[_key]; descriptor.value = descriptor.initializer ? descriptor.initializer.call(target) : undefined; Object.defineProperty(target, key, descriptor); } | ||
return { | ||
@@ -31,30 +31,136 @@ setters: [function (_aureliaPal) { | ||
execute: function () { | ||
_createClass = (function () { | ||
function defineProperties(target, props) { | ||
for (var i = 0; i < props.length; i++) { | ||
var descriptor = props[i]; | ||
descriptor.enumerable = descriptor.enumerable || false; | ||
descriptor.configurable = true; | ||
if ("value" in descriptor) descriptor.writable = true; | ||
Object.defineProperty(target, descriptor.key, descriptor); | ||
} | ||
} | ||
PLACEHOLDER = "__placeholder__"; | ||
return function (Constructor, protoProps, staticProps) { | ||
if (protoProps) defineProperties(Constructor.prototype, protoProps); | ||
if (staticProps) defineProperties(Constructor, staticProps); | ||
return Constructor; | ||
}; | ||
})(); | ||
_export("PLACEHOLDER", PLACEHOLDER); | ||
_export("PLACEHOLDER", PLACEHOLDER = "__placeholder__"); | ||
Sortable = (function () { | ||
var _instanceInitializers = {}; | ||
var _instanceInitializers = {}; | ||
_export("PLACEHOLDER", PLACEHOLDER); | ||
_createDecoratedClass(Sortable, [{ | ||
key: "scroll", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "scrollSpeed", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return 10; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "scrollSensitivity", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return 10; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "items", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return []; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "placeholderClass", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return "placeholder"; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "axis", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return ""; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "boundingRect", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
//{ left, top, right, bottom } | ||
enumerable: true | ||
}, { | ||
key: "moved", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return function () {}; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "dragZIndex", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return 1; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "disallowedDragTagNames", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return ["INPUT", "SELECT", "TEXTAREA"]; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "allowDrag", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
var _this = this; | ||
_export("Sortable", Sortable = (_dec = customAttribute("sortable"), _dec2 = inject(DOM.Element, Drag, AutoScroll), _dec3 = transient(), _dec(_class = _dec2(_class = _dec3(_class = (function () { | ||
//{ left, top, right, bottom } | ||
return function (args) { | ||
if (_this.disallowedDragTagNames.indexOf(args.event.target.tagName) !== -1) { | ||
return false; | ||
} | ||
if (args.event.target.isContentEditable) { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
}, | ||
enumerable: true | ||
}, { | ||
key: "allowMove", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return function () { | ||
return true; | ||
}; | ||
}, | ||
enumerable: true | ||
}], null, _instanceInitializers); | ||
function Sortable(element, drag, autoScroll) { | ||
_classCallCheck(this, Sortable); | ||
_classCallCheck(this, _Sortable); | ||
_defineDecoratedPropertyDescriptor(this, "scroll", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "scrollSpeed", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "scrollSensitivity", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "items", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "placeholderClass", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "axis", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "boundingRect", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "moved", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "dragZIndex", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "disallowedDragTagNames", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "allowDrag", _instanceInitializers); | ||
_defineDecoratedPropertyDescriptor(this, "allowMove", _instanceInitializers); | ||
this.selector = "[sortable-item]"; | ||
@@ -76,3 +182,3 @@ this.fromIx = -1; | ||
_createClass(Sortable, [{ | ||
_createDecoratedClass(Sortable, [{ | ||
key: "activate", | ||
@@ -337,23 +443,40 @@ value: function activate() { | ||
} | ||
}]); | ||
}], null, _instanceInitializers); | ||
var _Sortable = Sortable; | ||
Sortable = transient()(Sortable) || Sortable; | ||
Sortable = inject(DOM.Element, Drag, AutoScroll)(Sortable) || Sortable; | ||
Sortable = customAttribute("sortable")(Sortable) || Sortable; | ||
return Sortable; | ||
})()) || _class) || _class) || _class)); | ||
})(); | ||
_export("Sortable", Sortable); | ||
_export("SortableItem", SortableItem = (_dec4 = customAttribute("sortable-item"), _dec4(_class2 = (function () { | ||
SortableItem = (function () { | ||
var _instanceInitializers2 = {}; | ||
function SortableItem() { | ||
_classCallCheck(this, SortableItem); | ||
_classCallCheck(this, _SortableItem); | ||
_defineDecoratedPropertyDescriptor(this, "item", _instanceInitializers2); | ||
} | ||
_createClass(SortableItem, [{ | ||
_createDecoratedClass(SortableItem, [{ | ||
key: "bind", | ||
value: function bind(ctx, overrideCtx) { | ||
this.ctx = overrideCtx; | ||
this.ctx = overrideCtx; //Need a reference to the item's $index | ||
} | ||
}]); | ||
}, { | ||
key: "item", | ||
decorators: [bindable], | ||
initializer: function initializer() { | ||
return null; | ||
}, | ||
enumerable: true | ||
}], null, _instanceInitializers2); | ||
var _SortableItem = SortableItem; | ||
SortableItem = customAttribute("sortable-item")(SortableItem) || SortableItem; | ||
return SortableItem; | ||
})()) || _class2)); | ||
})(); | ||
@@ -360,0 +483,0 @@ _export("SortableItem", SortableItem); |
{ | ||
"name": "oribella-aurelia-sortable", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
135849
3258
27