From 1549ba68b3fb6f6159992f832e05f5835c9d92e3 Mon Sep 17 00:00:00 2001 From: Michael Malone Date: Mon, 16 Jan 2017 22:47:42 +1300 Subject: [PATCH] v1.3.3 --- dist/amd/dragula-and-drop.js | 4 ++-- dist/aurelia-dragula.js | 22 +++++++++++----------- dist/commonjs/dragula-and-drop.js | 4 ++-- dist/es2015/dragula-and-drop.js | 22 +++++++++++----------- dist/system/dragula-and-drop.js | 4 ++-- dist/temp/aurelia-dragula.js | 4 ++-- package.json | 2 +- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/dist/amd/dragula-and-drop.js b/dist/amd/dragula-and-drop.js index b76596d..0d67a9c 100644 --- a/dist/amd/dragula-and-drop.js +++ b/dist/amd/dragula-and-drop.js @@ -47,8 +47,8 @@ define(['exports', 'aurelia-templating', 'aurelia-binding', 'aurelia-dependency- if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM }); }); - this.dragula.on('cloned', function (copy, item, itemVM) { - if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM }); + this.dragula.on('cloned', function (copy, item, type, itemVM) { + if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM }); }); this.dragula.on('over', function (item, target, source, itemVM) { diff --git a/dist/aurelia-dragula.js b/dist/aurelia-dragula.js index 68ded8e..1247952 100644 --- a/dist/aurelia-dragula.js +++ b/dist/aurelia-dragula.js @@ -87,32 +87,32 @@ export class DragulaAndDrop { this.dragula.on('drag', (item, source, itemVM) => { if (typeof this.dragFn === 'function') - this.dragFn({ item: item, source: source, itemVM: itemVM }); + this.dragFn({ item, source, itemVM }); }); this.dragula.on('dragend', (item, itemVM) => { if (typeof this.dragEndFn === 'function') - this.dragEndFn({ item: item, itemVM: itemVM }); + this.dragEndFn({ item, itemVM }); }); - this.dragula.on('cloned', (copy, item, itemVM) => { + this.dragula.on('cloned', (copy, item, type, itemVM) => { if (typeof this.clonedFn === 'function') - this.clonedFn({ copy: copy, item: item, itemVM: itemVM }); + this.clonedFn({ copy, item, type, itemVM }); }); this.dragula.on('over', (item, target, source, itemVM) => { if (typeof this.overFn === 'function') - this.overFn({ item: item, target: target, source: source, itemVM: itemVM }); + this.overFn({ item, target, source, itemVM }); }); this.dragula.on('out', (item, target, source, itemVM) => { if (typeof this.outFn === 'function') - this.outFn({ item: item, target: target, source: source, itemVM: itemVM }); + this.outFn({ item, target, source, itemVM }); }); this.dragula.on('shadow', (item, target, source, itemVM) => { if (typeof this.shadowFn === 'function') - this.shadowFn({ item: item, target: target, source: source, itemVM: itemVM }); + this.shadowFn({ item, target, source, itemVM }); }); } @@ -123,7 +123,7 @@ export class DragulaAndDrop { _dropFunction(item, target, source, sibling, itemVM, siblingVM) { this.dragula.cancel(); if (typeof this.dropFn === 'function') - this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM }); + this.dropFn({ item, target, source, sibling, itemVM, siblingVM }); } _isContainer(el) { @@ -142,7 +142,7 @@ export class DragulaAndDrop { _moves(item, source, handle, sibling) { if (typeof this.moves === 'function') { - return this.moves({ item: item, source: source, handle: handle, sibling: sibling }); + return this.moves({ item, source, handle, sibling }); } else { return this.globalOptions.moves(item, source, handle, sibling); @@ -151,7 +151,7 @@ export class DragulaAndDrop { _accepts(item, target, source, sibling) { if (typeof this.accepts === 'function') { - return this.accepts({ item: item, target: target, source: source, sibling: sibling }); + return this.accepts({ item, target, source, sibling }); } else { return this.globalOptions.accepts(item, target, source, sibling); @@ -160,7 +160,7 @@ export class DragulaAndDrop { _invalid(item, handle) { if (typeof this.invalid === 'function') { - return this.invalid({ item: item, handle: handle }); + return this.invalid({ item, handle }); } else { return this.globalOptions.invalid(item, handle); diff --git a/dist/commonjs/dragula-and-drop.js b/dist/commonjs/dragula-and-drop.js index 8235cd9..591bdb1 100644 --- a/dist/commonjs/dragula-and-drop.js +++ b/dist/commonjs/dragula-and-drop.js @@ -52,8 +52,8 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM }); }); - this.dragula.on('cloned', function (copy, item, itemVM) { - if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM }); + this.dragula.on('cloned', function (copy, item, type, itemVM) { + if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM }); }); this.dragula.on('over', function (item, target, source, itemVM) { diff --git a/dist/es2015/dragula-and-drop.js b/dist/es2015/dragula-and-drop.js index 63fd05a..485240c 100644 --- a/dist/es2015/dragula-and-drop.js +++ b/dist/es2015/dragula-and-drop.js @@ -30,27 +30,27 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode this.dragula.on('drop', this._dropFunction.bind(this)); this.dragula.on('drag', (item, source, itemVM) => { - if (typeof this.dragFn === 'function') this.dragFn({ item: item, source: source, itemVM: itemVM }); + if (typeof this.dragFn === 'function') this.dragFn({ item, source, itemVM }); }); this.dragula.on('dragend', (item, itemVM) => { - if (typeof this.dragEndFn === 'function') this.dragEndFn({ item: item, itemVM: itemVM }); + if (typeof this.dragEndFn === 'function') this.dragEndFn({ item, itemVM }); }); - this.dragula.on('cloned', (copy, item, itemVM) => { - if (typeof this.clonedFn === 'function') this.clonedFn({ copy: copy, item: item, itemVM: itemVM }); + this.dragula.on('cloned', (copy, item, type, itemVM) => { + if (typeof this.clonedFn === 'function') this.clonedFn({ copy, item, type, itemVM }); }); this.dragula.on('over', (item, target, source, itemVM) => { - if (typeof this.overFn === 'function') this.overFn({ item: item, target: target, source: source, itemVM: itemVM }); + if (typeof this.overFn === 'function') this.overFn({ item, target, source, itemVM }); }); this.dragula.on('out', (item, target, source, itemVM) => { - if (typeof this.outFn === 'function') this.outFn({ item: item, target: target, source: source, itemVM: itemVM }); + if (typeof this.outFn === 'function') this.outFn({ item, target, source, itemVM }); }); this.dragula.on('shadow', (item, target, source, itemVM) => { - if (typeof this.shadowFn === 'function') this.shadowFn({ item: item, target: target, source: source, itemVM: itemVM }); + if (typeof this.shadowFn === 'function') this.shadowFn({ item, target, source, itemVM }); }); } @@ -60,7 +60,7 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode _dropFunction(item, target, source, sibling, itemVM, siblingVM) { this.dragula.cancel(); - if (typeof this.dropFn === 'function') this.dropFn({ item: item, target: target, source: source, sibling: sibling, itemVM: itemVM, siblingVM: siblingVM }); + if (typeof this.dropFn === 'function') this.dropFn({ item, target, source, sibling, itemVM, siblingVM }); } _isContainer(el) { @@ -79,7 +79,7 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode _moves(item, source, handle, sibling) { if (typeof this.moves === 'function') { - return this.moves({ item: item, source: source, handle: handle, sibling: sibling }); + return this.moves({ item, source, handle, sibling }); } else { return this.globalOptions.moves(item, source, handle, sibling); } @@ -87,7 +87,7 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode _accepts(item, target, source, sibling) { if (typeof this.accepts === 'function') { - return this.accepts({ item: item, target: target, source: source, sibling: sibling }); + return this.accepts({ item, target, source, sibling }); } else { return this.globalOptions.accepts(item, target, source, sibling); } @@ -95,7 +95,7 @@ export let DragulaAndDrop = (_dec = bindable({ name: 'moves', defaultBindingMode _invalid(item, handle) { if (typeof this.invalid === 'function') { - return this.invalid({ item: item, handle: handle }); + return this.invalid({ item, handle }); } else { return this.globalOptions.invalid(item, handle); } diff --git a/dist/system/dragula-and-drop.js b/dist/system/dragula-and-drop.js index 2d77e0d..4455897 100644 --- a/dist/system/dragula-and-drop.js +++ b/dist/system/dragula-and-drop.js @@ -60,8 +60,8 @@ System.register(['aurelia-templating', 'aurelia-binding', 'aurelia-dependency-in if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM }); }); - this.dragula.on('cloned', function (copy, item, itemVM) { - if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM }); + this.dragula.on('cloned', function (copy, item, type, itemVM) { + if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM }); }); this.dragula.on('over', function (item, target, source, itemVM) { diff --git a/dist/temp/aurelia-dragula.js b/dist/temp/aurelia-dragula.js index 24397bf..da44cf4 100644 --- a/dist/temp/aurelia-dragula.js +++ b/dist/temp/aurelia-dragula.js @@ -98,8 +98,8 @@ var DragulaAndDrop = exports.DragulaAndDrop = (_dec = (0, _aureliaTemplating.bin if (typeof _this.dragEndFn === 'function') _this.dragEndFn({ item: item, itemVM: itemVM }); }); - this.dragula.on('cloned', function (copy, item, itemVM) { - if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, itemVM: itemVM }); + this.dragula.on('cloned', function (copy, item, type, itemVM) { + if (typeof _this.clonedFn === 'function') _this.clonedFn({ copy: copy, item: item, type: type, itemVM: itemVM }); }); this.dragula.on('over', function (item, target, source, itemVM) { diff --git a/package.json b/package.json index 768a2e8..7d8cd01 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-dragula", - "version": "1.3.2", + "version": "1.3.3", "description": "An aurelia compatible version of Dragula", "keywords": [ "aurelia",