@salamander.be/vue-kanban-board
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -1,2 +0,2 @@ | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-kanban-board"]=e(require("vue")):t["vue-kanban-board"]=e(t["Vue"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"0702":function(t,e,n){},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),c=n("6a99"),u=n("69a8"),a=n("c69a"),f=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?f:function(t,e){if(t=i(t),e=c(e,!0),a)try{return f(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),u=c.length,a=0;while(u>a)r.f(t,n=c[a++],e[n]);return t}},"1a3b":function(t,e){var n,r="function"===typeof setImmediate;n=r?function(t){setImmediate(t)}:function(t){setTimeout(t,0)},t.exports=n},"21b7":function(t,e,n){"use strict";var r=n("1a3b");t.exports=function(t,e,n){t&&r(function(){t.apply(n||null,e||[])})}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),c=n("ca5a")("src"),u="toString",a=Function[u],f=(""+a).split(u);n("8378").inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,n,u){var a="function"==typeof n;a&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(a&&(i(n,c)||o(n,c,t[e]?""+t[e]:f.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,u,function(){return"function"==typeof this&&this[c]||a.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),c=n("613b")("IE_PROTO"),u=function(){},a="prototype",f=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),f=t.F;while(r--)delete f[a][i[r]];return f()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[a]=r(t),n=new u,u[a]=null,n[c]=t):n=f(),void 0===e?n:o(n,e)}},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"3f31":function(t,e,n){"use strict";(function(e){var r=n("6c1b"),o=n("62cf"),i=e.document,c=f,u=l,a=[];function f(t,e,n,r){return t.addEventListener(e,n,r)}function s(t,e,n){return t.attachEvent("on"+e,m(t,e,n))}function l(t,e,n,r){return t.removeEventListener(e,n,r)}function d(t,e,n){var r=h(t,e,n);if(r)return t.detachEvent("on"+e,r)}function p(t,e,n){var c=-1===o.indexOf(e)?a():u();function u(){var t;return i.createEvent?(t=i.createEvent("Event"),t.initEvent(e,!0,!0)):i.createEventObject&&(t=i.createEventObject()),t}function a(){return new r(e,{detail:n})}t.dispatchEvent?t.dispatchEvent(c):t.fireEvent("on"+e,c)}function v(t,n,r){return function(n){var o=n||e.event;o.target=o.target||o.srcElement,o.preventDefault=o.preventDefault||function(){o.returnValue=!1},o.stopPropagation=o.stopPropagation||function(){o.cancelBubble=!0},o.which=o.which||o.keyCode,r.call(t,o)}}function m(t,e,n){var r=h(t,e,n)||v(t,e,n);return a.push({wrapper:r,element:t,type:e,fn:n}),r}function h(t,e,n){var r=g(t,e,n);if(r){var o=a[r].wrapper;return a.splice(r,1),o}}function g(t,e,n){var r,o;for(r=0;r<a.length;r++)if(o=a[r],o.element===t&&o.type===e&&o.fn===n)return r}e.addEventListener||(c=s,u=d),t.exports={add:c,remove:u,fabricate:p}}).call(this,n("c8ba"))},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),c=n("2aba"),u=n("9b43"),a="prototype",f=function(t,e,n){var s,l,d,p,v=t&f.F,m=t&f.G,h=t&f.S,g=t&f.P,b=t&f.B,y=m?r:h?r[e]||(r[e]={}):(r[e]||{})[a],x=m?o:o[e]||(o[e]={}),_=x[a]||(x[a]={});for(s in m&&(n=e),n)l=!v&&y&&void 0!==y[s],d=(l?y:n)[s],p=b&&l?u(d,r):g&&"function"==typeof d?u(Function.call,d):d,y&&c(y,s,d,t&f.U),x[s]!=d&&i(x,s,p),g&&_[s]!=d&&(_[s]=d)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,c=e.constructor;return c!==n&&"function"==typeof c&&(i=c.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"612e":function(t,e,n){"use strict";(function(e){var r=n("f3f2"),o=n("3f31"),i=n("9fac"),c=document,u=c.documentElement;function a(t,e){var n,a,d,x,w,S,C,O,k,N,T,j=arguments.length;1===j&&!1===Array.isArray(t)&&(e=t,t=[]);var I,P=null,M=e||{};void 0===M.moves&&(M.moves=m),void 0===M.accepts&&(M.accepts=m),void 0===M.invalid&&(M.invalid=z),void 0===M.containers&&(M.containers=t||[]),void 0===M.isContainer&&(M.isContainer=v),void 0===M.copy&&(M.copy=!1),void 0===M.copySortSource&&(M.copySortSource=!1),void 0===M.revertOnSpill&&(M.revertOnSpill=!1),void 0===M.removeOnSpill&&(M.removeOnSpill=!1),void 0===M.direction&&(M.direction="vertical"),void 0===M.ignoreInputTextSelection&&(M.ignoreInputTextSelection=!0),void 0===M.mirrorContainer&&(M.mirrorContainer=c.body);var F=r({containers:M.containers,start:q,end:K,cancel:Z,remove:Q,destroy:X,canMove:V,dragging:!1});return!0===M.removeOnSpill&&F.on("over",ot).on("out",it),R(),F;function A(t){return-1!==F.containers.indexOf(t)||M.isContainer(t)}function R(t){var e=t?"remove":"add";f(u,e,"mousedown",Y),f(u,e,"mouseup",H)}function B(t){var e=t?"remove":"add";f(u,e,"mousemove",D)}function $(t){var e=t?"remove":"add";o[e](u,"selectstart",L),o[e](u,"click",L)}function X(){R(!0),H({})}function L(t){I&&t.preventDefault()}function Y(t){S=t.clientX,C=t.clientY;var e=1!==s(t)||t.metaKey||t.ctrlKey;if(!e){var n=t.target,r=U(n);r&&(I=r,B(),"mousedown"===t.type&&(y(n)?n.focus():t.preventDefault()))}}function D(t){if(I)if(0!==s(t)){if(void 0===t.clientX||t.clientX!==S||void 0===t.clientY||t.clientY!==C){if(M.ignoreInputTextSelection){var e=E("clientX",t),n=E("clientY",t),r=c.elementFromPoint(e,n);if(y(r))return}var o=I;B(!0),$(),K(),G(o);var u=l(d);x=E("pageX",t)-u.left,w=E("pageY",t)-u.top,i.add(N||d,"gu-transit"),ct(),rt(t)}}else H({})}function U(t){if((!F.dragging||!n)&&!A(t)){var e=t;while(b(t)&&!1===A(b(t))){if(M.invalid(t,e))return;if(t=b(t),!t)return}var r=b(t);if(r&&!M.invalid(t,e)){var o=M.moves(t,r,e,_(t));if(o)return{item:t,source:r}}}}function V(t){return!!U(t)}function q(t){var e=U(t);e&&G(e)}function G(t){st(t.item,t.source)&&(N=t.item.cloneNode(!0),F.emit("cloned",N,t.item,"copy")),a=t.source,d=t.item,O=k=_(t.item),F.dragging=!0,F.emit("drag",d,a)}function z(){return!1}function K(){if(F.dragging){var t=N||d;J(t,b(t))}}function W(){I=!1,B(!0),$(!0)}function H(t){if(W(),F.dragging){var e=N||d,r=E("clientX",t),o=E("clientY",t),i=p(n,r,o),c=nt(i,r,o);c&&(N&&M.copySortSource||!N||c!==a)?J(e,c):M.removeOnSpill?Q():Z()}}function J(t,e){var n=b(t);N&&M.copySortSource&&e===a&&n.removeChild(d),et(e)?F.emit("cancel",t,a,a):F.emit("drop",t,e,a,k),tt()}function Q(){if(F.dragging){var t=N||d,e=b(t);e&&e.removeChild(t),F.emit(N?"cancel":"remove",t,e,a),tt()}}function Z(t){if(F.dragging){var e=arguments.length>0?t:M.revertOnSpill,n=N||d,r=b(n),o=et(r);!1===o&&e&&(N?r&&r.removeChild(N):a.insertBefore(n,O)),o||e?F.emit("cancel",n,a,a):F.emit("drop",n,r,a,k),tt()}}function tt(){var t=N||d;W(),ut(),t&&i.rm(t,"gu-transit"),T&&clearTimeout(T),F.dragging=!1,P&&F.emit("out",t,P,a),F.emit("dragend",t),a=d=N=O=k=T=P=null}function et(t,e){var r;return r=void 0!==e?e:n?k:_(N||d),t===a&&r===O}function nt(t,e,n){var r=t;while(r&&!o())r=b(r);return r;function o(){var o=A(r);if(!1===o)return!1;var i=at(r,t),c=ft(r,i,e,n),u=et(r,c);return!!u||M.accepts(d,r,a,c)}}function rt(t){if(n){t.preventDefault();var e=E("clientX",t),r=E("clientY",t),o=e-x,i=r-w;n.style.left=o+"px",n.style.top=i+"px";var c=N||d,u=p(n,e,r),f=nt(u,e,r),s=null!==f&&f!==P;(s||null===f)&&(y(),P=f,g());var l=b(c);if(f!==a||!N||M.copySortSource){var v,m=at(f,u);if(null!==m)v=ft(f,m,e,r);else{if(!0!==M.revertOnSpill||N)return void(N&&l&&l.removeChild(c));v=O,f=a}(null===v&&s||v!==c&&v!==_(c))&&(k=v,f.insertBefore(c,v),F.emit("shadow",c,f,a))}else l&&l.removeChild(c)}function h(t){F.emit(t,c,P,a)}function g(){s&&h("over")}function y(){P&&h("out")}}function ot(t){i.rm(t,"gu-hide")}function it(t){F.dragging&&i.add(t,"gu-hide")}function ct(){if(!n){var t=d.getBoundingClientRect();n=d.cloneNode(!0),n.style.width=h(t)+"px",n.style.height=g(t)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),M.mirrorContainer.appendChild(n),f(u,"add","mousemove",rt),i.add(M.mirrorContainer,"gu-unselectable"),F.emit("cloned",n,d,"mirror")}}function ut(){n&&(i.rm(M.mirrorContainer,"gu-unselectable"),f(u,"remove","mousemove",rt),b(n).removeChild(n),n=null)}function at(t,e){var n=e;while(n!==t&&b(n)!==t)n=b(n);return n===u?null:n}function ft(t,e,n,r){var o="horizontal"===M.direction,i=e!==t?u():c();return i;function c(){var e,i,c,u=t.children.length;for(e=0;e<u;e++){if(i=t.children[e],c=i.getBoundingClientRect(),o&&c.left+c.width/2>n)return i;if(!o&&c.top+c.height/2>r)return i}return null}function u(){var t=e.getBoundingClientRect();return a(o?n>t.left+h(t)/2:r>t.top+g(t)/2)}function a(t){return t?_(e):e}}function st(t,e){return"boolean"===typeof M.copy?M.copy:M.copy(t,e)}}function f(t,n,r,i){var c={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},u={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},a={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};e.navigator.pointerEnabled?o[n](t,u[r],i):e.navigator.msPointerEnabled?o[n](t,a[r],i):(o[n](t,c[r],i),o[n](t,r,i))}function s(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function l(t){var e=t.getBoundingClientRect();return{left:e.left+d("scrollLeft","pageXOffset"),top:e.top+d("scrollTop","pageYOffset")}}function d(t,n){return"undefined"!==typeof e[n]?e[n]:u.clientHeight?u[t]:c.body[t]}function p(t,e,n){var r,o=t||{},i=o.className;return o.className+=" gu-hide",r=c.elementFromPoint(e,n),o.className=i,r}function v(){return!1}function m(){return!0}function h(t){return t.width||t.right-t.left}function g(t){return t.height||t.bottom-t.top}function b(t){return t.parentNode===c?null:t.parentNode}function y(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||x(t)}function x(t){return!!t&&("false"!==t.contentEditable&&("true"===t.contentEditable||x(b(t))))}function _(t){return t.nextElementSibling||e();function e(){var e=t;do{e=e.nextSibling}while(e&&1!==e.nodeType);return e}}function w(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function E(t,e){var n=w(e),r={pageX:"clientX",pageY:"clientY"};return t in r&&!(t in n)&&r[t]in n&&(t=r[t]),n[t]}t.exports=a}).call(this,n("c8ba"))},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62cf":function(t,e,n){"use strict";(function(e){var n=[],r="",o=/^on/;for(r in e)o.test(r)&&n.push(r.slice(2));t.exports=n}).call(this,n("c8ba"))},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6c1b":function(t,e,n){(function(e){var n=e.CustomEvent;function r(){try{var t=new n("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}t.exports=r()?n:"function"===typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n("c8ba"))},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),c=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},"8bbf":function(e,n){e.exports=t},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9fac":function(t,e,n){"use strict";var r={},o="(?:^|\\s)",i="(?:\\s|$)";function c(t){var e=r[t];return e?e.lastIndex=0:r[t]=e=new RegExp(o+t+i,"g"),e}function u(t,e){var n=t.className;n.length?c(e).test(n)||(t.className+=" "+e):t.className=e}function a(t,e){t.className=t.className.replace(c(e)," ").trim()}t.exports={add:u,rm:a}},a1fc:function(t,e,n){"use strict";var r=n("0702"),o=n.n(r);o.a},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),c=n("fdef"),u="["+c+"]",a=" ",f=RegExp("^"+u+u+"*"),s=RegExp(u+u+"*$"),l=function(t,e,n){var o={},u=i(function(){return!!c[t]()||a[t]()!=a}),f=o[t]=u?e(d):c[t];n&&(o[n]=f),r(r.P+r.F*u,"String",o)},d=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(f,"")),2&e&&(t=t.replace(s,"")),t};t.exports=l},b851:function(t,e,n){"use strict";var r=n("f4ae"),o=n.n(r);o.a},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,c){var u,a=r(e),f=o(a.length),s=i(c,f);if(t&&n!=n){while(f>s)if(u=a[s++],u!=u)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),c=n("5dbc"),u=n("6a99"),a=n("79e5"),f=n("9093").f,s=n("11e9").f,l=n("86cc").f,d=n("aa77").trim,p="Number",v=r[p],m=v,h=v.prototype,g=i(n("2aeb")(h))==p,b="trim"in String.prototype,y=function(t){var e=u(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():d(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var c,a=e.slice(2),f=0,s=a.length;f<s;f++)if(c=a.charCodeAt(f),c<48||c>o)return NaN;return parseInt(a,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(g?a(function(){h.valueOf.call(n)}):i(n)!=p)?c(new m(y(e)),n,v):y(e)};for(var x,_=n("9e1e")?f(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;_.length>w;w++)o(m,x=_[w])&&!o(v,x)&&l(v,x,s(m,x));v.prototype=h,h.constructor=v,n("2aba")(r,p,v)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),c=n("613b")("IE_PROTO");t.exports=function(t,e){var n,u=o(t),a=0,f=[];for(n in u)n!=c&&r(u,n)&&f.push(n);while(e.length>a)r(u,n=e[a++])&&(~i(f,n)||f.push(n));return f}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f13f:function(t,e){t.exports=function(t,e){return Array.prototype.slice.call(t,e)}},f3f2:function(t,e,n){"use strict";var r=n("f13f"),o=n("21b7");t.exports=function(t,e){var n=e||{},i={};return void 0===t&&(t={}),t.on=function(e,n){return i[e]?i[e].push(n):i[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete i[e];else if(0===r)i={};else{var o=i[e];if(!o)return t;o.splice(o.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var c=(i[e]||[]).slice(0);return function(){var i=r(arguments),u=this||t;if("error"===e&&!1!==n.throws&&!c.length)throw 1===i.length?i[0]:i;return c.forEach(function(r){n.async?o(r,i,u):r.apply(u,i),r._once&&t.off(e,r)}),t}},t}},f4ae:function(t,e,n){},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));var o=n("8bbf"),i=n.n(o),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"board-container"},[n("ul",{staticClass:"drag-list"},t._l(t.lanes,function(e){return n("li",{key:e.slug,staticClass:"drag-column",class:(r={},r["drag-column-"+e.slug]=!0,r),style:{margin:"0 "+t.gap/2+"px"}},[e.hidden?n("div",{staticClass:"board-locked-header"}):n("div",{staticClass:"board-header"},[n("p",{staticClass:"stage-title"},[t._v(t._s(e.name))]),n("div",{staticClass:"add-task-container"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.taskSummary[e.slug],expression:"taskSummary[lane.slug]"}],staticClass:"stage-input",attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.taskSummary[e.slug]},on:{keyup:function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;t.createNewTask(e.slug)},input:function(n){n.target.composing||t.$set(t.taskSummary,e.slug,n.target.value)}}}),n("div",{staticClass:"add-cta"},[t._v("+")])])]),n("ul",{ref:"list",refInFor:!0,staticClass:"drag-inner-list",attrs:{"data-status":e.slug}},t._l(t.getBlocks(e.slug),function(e){return n("card",{key:e.id,staticClass:"drag-item",attrs:{"data-block-id":e.id,task:e},on:{"block-clicked":t.cardClicked}},[[t._t("default",null,{data:e})]],2)}))]);var r}))])},u=[],a=(n("c5f6"),n("612e")),f=n.n(a),s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kb-card",on:{click:t.cardClicked}},[n("div",{staticClass:"d-flex flex-wrap"},[t._t("default")],2)])},l=[],d={props:{task:{required:!0}},methods:{cardClicked:function(){this.$emit("block-clicked",this.task)}}},p=d;n("a1fc");function v(t,e,n,r,o,i,c,u){var a,f="function"===typeof t?t.options:t;if(e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),c?(a=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},f._ssrRegister=a):o&&(a=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(t,e){return a.call(e),s(t,e)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}var m=v(p,s,l,!1,null,null,null);m.options.__file="kanban-card.vue";var h=m.exports,g={name:"kanban-board",props:{lanes:{required:!1,default:function(){return[{name:"Todo",slug:"todo"},{name:"In progress",slug:"in-progress"},{name:"Done",slug:"done"}]}},items:{required:!1,default:function(){return[]}},placeholder:{type:String,default:"Add a new task..."},gap:{type:Number,default:40}},components:{Card:h},data:function(){return{taskSummary:{}}},mounted:function(){var t=this;f()(this.$refs.list).on("drag",function(t){t.classList.add("is-moving")}).on("drop",function(e,n){var r=0;for(r=0;r<n.children.length;r+=1)if(n.children[r].classList.contains("is-moving"))break;t.$emit("item-updated",e.dataset.blockId,n.dataset.status,r)}).on("dragend",function(t){t.classList.remove("is-moving"),window.setTimeout(function(){t.classList.add("is-moved"),window.setTimeout(function(){t.classList.remove("is-moved")},600)},100)})},methods:{getBlocks:function(t){return this.localBlocks.filter(function(e){return e.status===t})},cardClicked:function(t){this.$emit("item-clicked",t)}},computed:{localBlocks:function(){return this.items}}},b=g,y=(n("b851"),v(b,c,u,!1,null,null,null));y.options.__file="kanban-board.vue";var x=y.exports;i.a.component("KanbanBoard",x);var _=x;e["default"]=_},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["vue-kanban-board"]=e(require("vue")):t["vue-kanban-board"]=e(t["Vue"])})("undefined"!==typeof self?self:this,function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),o=n("5ca1"),i=n("2aba"),c=n("32e9"),a=n("84f2"),u=n("41a0"),s=n("7f20"),f=n("38fd"),l=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",v="keys",m="values",h=function(){return this};t.exports=function(t,e,n,g,b,y,x){u(n,e,g);var S,w,_,E=function(t){if(!d&&t in T)return T[t];switch(t){case v:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this,t)}},C=e+" Iterator",O=b==m,k=!1,T=t.prototype,L=T[l]||T[p]||b&&T[b],I=L||E(b),N=b?O?E("entries"):I:void 0,j="Array"==e&&T.entries||L;if(j&&(_=f(j.call(new t)),_!==Object.prototype&&_.next&&(s(_,C,!0),r||"function"==typeof _[l]||c(_,l,h))),O&&L&&L.name!==m&&(k=!0,I=function(){return L.call(this)}),r&&!x||!d&&!k&&T[l]||c(T,l,I),a[e]=I,a[C]=h,b)if(S={values:O?I:E(m),keys:y?I:E(v),entries:N},x)for(w in S)w in T||i(T,w,S[w]);else o(o.P+o.F*(d||k),e,S);return S}},"0702":function(t,e,n){},"0d58":function(t,e,n){var r=n("ce10"),o=n("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"11e9":function(t,e,n){var r=n("52a7"),o=n("4630"),i=n("6821"),c=n("6a99"),a=n("69a8"),u=n("c69a"),s=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?s:function(t,e){if(t=i(t),e=c(e,!0),u)try{return s(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),o=n("cb7c"),i=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){o(t);var n,c=i(e),a=c.length,u=0;while(a>u)r.f(t,n=c[u++],e[n]);return t}},"1a3b":function(t,e){var n,r="function"===typeof setImmediate;n=r?function(t){setImmediate(t)}:function(t){setTimeout(t,0)},t.exports=n},"21b7":function(t,e,n){"use strict";var r=n("1a3b");t.exports=function(t,e,n){t&&r(function(){t.apply(n||null,e||[])})}},"230e":function(t,e,n){var r=n("d3f4"),o=n("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"2aba":function(t,e,n){var r=n("7726"),o=n("32e9"),i=n("69a8"),c=n("ca5a")("src"),a="toString",u=Function[a],s=(""+u).split(a);n("8378").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,a){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,c)||o(n,c,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[c]||u.call(this)})},"2aeb":function(t,e,n){var r=n("cb7c"),o=n("1495"),i=n("e11e"),c=n("613b")("IE_PROTO"),a=function(){},u="prototype",s=function(){var t,e=n("230e")("iframe"),r=i.length,o="<",c=">";e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+c+"document.F=Object"+o+"/script"+c),t.close(),s=t.F;while(r--)delete s[u][i[r]];return s()};t.exports=Object.create||function(t,e){var n;return null!==t?(a[u]=r(t),n=new a,a[u]=null,n[c]=t):n=s(),void 0===e?n:o(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),o=n("ca5a"),i=n("7726").Symbol,c="function"==typeof i,a=t.exports=function(t){return r[t]||(r[t]=c&&i[t]||(c?i:o)("Symbol."+t))};a.store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"32e9":function(t,e,n){var r=n("86cc"),o=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),o=n("4bf8"),i=n("613b")("IE_PROTO"),c=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?c:null}},"3f31":function(t,e,n){"use strict";(function(e){var r=n("6c1b"),o=n("62cf"),i=e.document,c=s,a=l,u=[];function s(t,e,n,r){return t.addEventListener(e,n,r)}function f(t,e,n){return t.attachEvent("on"+e,m(t,e,n))}function l(t,e,n,r){return t.removeEventListener(e,n,r)}function d(t,e,n){var r=h(t,e,n);if(r)return t.detachEvent("on"+e,r)}function p(t,e,n){var c=-1===o.indexOf(e)?u():a();function a(){var t;return i.createEvent?(t=i.createEvent("Event"),t.initEvent(e,!0,!0)):i.createEventObject&&(t=i.createEventObject()),t}function u(){return new r(e,{detail:n})}t.dispatchEvent?t.dispatchEvent(c):t.fireEvent("on"+e,c)}function v(t,n,r){return function(n){var o=n||e.event;o.target=o.target||o.srcElement,o.preventDefault=o.preventDefault||function(){o.returnValue=!1},o.stopPropagation=o.stopPropagation||function(){o.cancelBubble=!0},o.which=o.which||o.keyCode,r.call(t,o)}}function m(t,e,n){var r=h(t,e,n)||v(t,e,n);return u.push({wrapper:r,element:t,type:e,fn:n}),r}function h(t,e,n){var r=g(t,e,n);if(r){var o=u[r].wrapper;return u.splice(r,1),o}}function g(t,e,n){var r,o;for(r=0;r<u.length;r++)if(o=u[r],o.element===t&&o.type===e&&o.fn===n)return r}e.addEventListener||(c=f,a=d),t.exports={add:c,remove:a,fabricate:p}}).call(this,n("c8ba"))},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),o=n("4630"),i=n("7f20"),c={};n("32e9")(c,n("2b4c")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(c,{next:o(1,n)}),i(t,e+" Iterator")}},"456d":function(t,e,n){var r=n("4bf8"),o=n("0d58");n("5eda")("keys",function(){return function(t){return o(r(t))}})},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5537:function(t,e,n){var r=n("8378"),o=n("7726"),i="__core-js_shared__",c=o[i]||(o[i]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,e,n){var r=n("7726"),o=n("8378"),i=n("32e9"),c=n("2aba"),a=n("9b43"),u="prototype",s=function(t,e,n){var f,l,d,p,v=t&s.F,m=t&s.G,h=t&s.S,g=t&s.P,b=t&s.B,y=m?r:h?r[e]||(r[e]={}):(r[e]||{})[u],x=m?o:o[e]||(o[e]={}),S=x[u]||(x[u]={});for(f in m&&(n=e),n)l=!v&&y&&void 0!==y[f],d=(l?y:n)[f],p=b&&l?a(d,r):g&&"function"==typeof d?a(Function.call,d):d,y&&c(y,f,d,t&s.U),x[f]!=d&&i(x,f,p),g&&S[f]!=d&&(S[f]=d)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},"5dbc":function(t,e,n){var r=n("d3f4"),o=n("8b97").set;t.exports=function(t,e,n){var i,c=e.constructor;return c!==n&&"function"==typeof c&&(i=c.prototype)!==n.prototype&&r(i)&&o&&o(t,i),t}},"5eda":function(t,e,n){var r=n("5ca1"),o=n("8378"),i=n("79e5");t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],c={};c[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",c)}},"612e":function(t,e,n){"use strict";(function(e){var r=n("f3f2"),o=n("3f31"),i=n("9fac"),c=document,a=c.documentElement;function u(t,e){var n,u,d,x,w,E,C,O,k,T,L,I=arguments.length;1===I&&!1===Array.isArray(t)&&(e=t,t=[]);var N,j=null,P=e||{};void 0===P.moves&&(P.moves=m),void 0===P.accepts&&(P.accepts=m),void 0===P.invalid&&(P.invalid=H),void 0===P.containers&&(P.containers=t||[]),void 0===P.isContainer&&(P.isContainer=v),void 0===P.copy&&(P.copy=!1),void 0===P.copySortSource&&(P.copySortSource=!1),void 0===P.revertOnSpill&&(P.revertOnSpill=!1),void 0===P.removeOnSpill&&(P.removeOnSpill=!1),void 0===P.direction&&(P.direction="vertical"),void 0===P.ignoreInputTextSelection&&(P.ignoreInputTextSelection=!0),void 0===P.mirrorContainer&&(P.mirrorContainer=c.body);var A=r({containers:P.containers,start:G,end:z,cancel:Z,remove:Q,destroy:U,canMove:Y,dragging:!1});return!0===P.removeOnSpill&&A.on("over",ot).on("out",it),F(),A;function M(t){return-1!==A.containers.indexOf(t)||P.isContainer(t)}function F(t){var e=t?"remove":"add";s(a,e,"mousedown",V),s(a,e,"mouseup",W)}function R(t){var e=t?"remove":"add";s(a,e,"mousemove",X)}function B(t){var e=t?"remove":"add";o[e](a,"selectstart",$),o[e](a,"click",$)}function U(){F(!0),W({})}function $(t){N&&t.preventDefault()}function V(t){E=t.clientX,C=t.clientY;var e=1!==f(t)||t.metaKey||t.ctrlKey;if(!e){var n=t.target,r=D(n);r&&(N=r,R(),"mousedown"===t.type&&(y(n)?n.focus():t.preventDefault()))}}function X(t){if(N)if(0!==f(t)){if(void 0===t.clientX||t.clientX!==E||void 0===t.clientY||t.clientY!==C){if(P.ignoreInputTextSelection){var e=_("clientX",t),n=_("clientY",t),r=c.elementFromPoint(e,n);if(y(r))return}var o=N;R(!0),B(),z(),q(o);var a=l(d);x=_("pageX",t)-a.left,w=_("pageY",t)-a.top,i.add(T||d,"gu-transit"),ct(),rt(t)}}else W({})}function D(t){if((!A.dragging||!n)&&!M(t)){var e=t;while(b(t)&&!1===M(b(t))){if(P.invalid(t,e))return;if(t=b(t),!t)return}var r=b(t);if(r&&!P.invalid(t,e)){var o=P.moves(t,r,e,S(t));if(o)return{item:t,source:r}}}}function Y(t){return!!D(t)}function G(t){var e=D(t);e&&q(e)}function q(t){ft(t.item,t.source)&&(T=t.item.cloneNode(!0),A.emit("cloned",T,t.item,"copy")),u=t.source,d=t.item,O=k=S(t.item),A.dragging=!0,A.emit("drag",d,u)}function H(){return!1}function z(){if(A.dragging){var t=T||d;J(t,b(t))}}function K(){N=!1,R(!0),B(!0)}function W(t){if(K(),A.dragging){var e=T||d,r=_("clientX",t),o=_("clientY",t),i=p(n,r,o),c=nt(i,r,o);c&&(T&&P.copySortSource||!T||c!==u)?J(e,c):P.removeOnSpill?Q():Z()}}function J(t,e){var n=b(t);T&&P.copySortSource&&e===u&&n.removeChild(d),et(e)?A.emit("cancel",t,u,u):A.emit("drop",t,e,u,k),tt()}function Q(){if(A.dragging){var t=T||d,e=b(t);e&&e.removeChild(t),A.emit(T?"cancel":"remove",t,e,u),tt()}}function Z(t){if(A.dragging){var e=arguments.length>0?t:P.revertOnSpill,n=T||d,r=b(n),o=et(r);!1===o&&e&&(T?r&&r.removeChild(T):u.insertBefore(n,O)),o||e?A.emit("cancel",n,u,u):A.emit("drop",n,r,u,k),tt()}}function tt(){var t=T||d;K(),at(),t&&i.rm(t,"gu-transit"),L&&clearTimeout(L),A.dragging=!1,j&&A.emit("out",t,j,u),A.emit("dragend",t),u=d=T=O=k=L=j=null}function et(t,e){var r;return r=void 0!==e?e:n?k:S(T||d),t===u&&r===O}function nt(t,e,n){var r=t;while(r&&!o())r=b(r);return r;function o(){var o=M(r);if(!1===o)return!1;var i=ut(r,t),c=st(r,i,e,n),a=et(r,c);return!!a||P.accepts(d,r,u,c)}}function rt(t){if(n){t.preventDefault();var e=_("clientX",t),r=_("clientY",t),o=e-x,i=r-w;n.style.left=o+"px",n.style.top=i+"px";var c=T||d,a=p(n,e,r),s=nt(a,e,r),f=null!==s&&s!==j;(f||null===s)&&(y(),j=s,g());var l=b(c);if(s!==u||!T||P.copySortSource){var v,m=ut(s,a);if(null!==m)v=st(s,m,e,r);else{if(!0!==P.revertOnSpill||T)return void(T&&l&&l.removeChild(c));v=O,s=u}(null===v&&f||v!==c&&v!==S(c))&&(k=v,s.insertBefore(c,v),A.emit("shadow",c,s,u))}else l&&l.removeChild(c)}function h(t){A.emit(t,c,j,u)}function g(){f&&h("over")}function y(){j&&h("out")}}function ot(t){i.rm(t,"gu-hide")}function it(t){A.dragging&&i.add(t,"gu-hide")}function ct(){if(!n){var t=d.getBoundingClientRect();n=d.cloneNode(!0),n.style.width=h(t)+"px",n.style.height=g(t)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),P.mirrorContainer.appendChild(n),s(a,"add","mousemove",rt),i.add(P.mirrorContainer,"gu-unselectable"),A.emit("cloned",n,d,"mirror")}}function at(){n&&(i.rm(P.mirrorContainer,"gu-unselectable"),s(a,"remove","mousemove",rt),b(n).removeChild(n),n=null)}function ut(t,e){var n=e;while(n!==t&&b(n)!==t)n=b(n);return n===a?null:n}function st(t,e,n,r){var o="horizontal"===P.direction,i=e!==t?a():c();return i;function c(){var e,i,c,a=t.children.length;for(e=0;e<a;e++){if(i=t.children[e],c=i.getBoundingClientRect(),o&&c.left+c.width/2>n)return i;if(!o&&c.top+c.height/2>r)return i}return null}function a(){var t=e.getBoundingClientRect();return u(o?n>t.left+h(t)/2:r>t.top+g(t)/2)}function u(t){return t?S(e):e}}function ft(t,e){return"boolean"===typeof P.copy?P.copy:P.copy(t,e)}}function s(t,n,r,i){var c={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},a={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},u={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};e.navigator.pointerEnabled?o[n](t,a[r],i):e.navigator.msPointerEnabled?o[n](t,u[r],i):(o[n](t,c[r],i),o[n](t,r,i))}function f(t){if(void 0!==t.touches)return t.touches.length;if(void 0!==t.which&&0!==t.which)return t.which;if(void 0!==t.buttons)return t.buttons;var e=t.button;return void 0!==e?1&e?1:2&e?3:4&e?2:0:void 0}function l(t){var e=t.getBoundingClientRect();return{left:e.left+d("scrollLeft","pageXOffset"),top:e.top+d("scrollTop","pageYOffset")}}function d(t,n){return"undefined"!==typeof e[n]?e[n]:a.clientHeight?a[t]:c.body[t]}function p(t,e,n){var r,o=t||{},i=o.className;return o.className+=" gu-hide",r=c.elementFromPoint(e,n),o.className=i,r}function v(){return!1}function m(){return!0}function h(t){return t.width||t.right-t.left}function g(t){return t.height||t.bottom-t.top}function b(t){return t.parentNode===c?null:t.parentNode}function y(t){return"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||x(t)}function x(t){return!!t&&("false"!==t.contentEditable&&("true"===t.contentEditable||x(b(t))))}function S(t){return t.nextElementSibling||e();function e(){var e=t;do{e=e.nextSibling}while(e&&1!==e.nodeType);return e}}function w(t){return t.targetTouches&&t.targetTouches.length?t.targetTouches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t}function _(t,e){var n=w(e),r={pageX:"clientX",pageY:"clientY"};return t in r&&!(t in n)&&r[t]in n&&(t=r[t]),n[t]}t.exports=u}).call(this,n("c8ba"))},"613b":function(t,e,n){var r=n("5537")("keys"),o=n("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"62cf":function(t,e,n){"use strict";(function(e){var n=[],r="",o=/^on/;for(r in e)o.test(r)&&n.push(r.slice(2));t.exports=n}).call(this,n("c8ba"))},6821:function(t,e,n){var r=n("626a"),o=n("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6c1b":function(t,e,n){(function(e){var n=e.CustomEvent;function r(){try{var t=new n("cat",{detail:{foo:"bar"}});return"cat"===t.type&&"bar"===t.detail.foo}catch(t){}return!1}t.exports=r()?n:"function"===typeof document.createEvent?function(t,e){var n=document.createEvent("CustomEvent");return e?n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail):n.initCustomEvent(t,!1,!1,void 0),n}:function(t,e){var n=document.createEventObject();return n.type=t,e?(n.bubbles=Boolean(e.bubbles),n.cancelable=Boolean(e.cancelable),n.detail=e.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n("c8ba"))},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,o=n("69a8"),i=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"86cc":function(t,e,n){var r=n("cb7c"),o=n("c69a"),i=n("6a99"),c=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8b97":function(t,e,n){var r=n("d3f4"),o=n("cb7c"),i=function(t,e){if(o(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return i(t,n),e?t.__proto__=n:r(t,n),t}}({},!1):void 0),check:i}},"8bbf":function(e,n){e.exports=t},9093:function(t,e,n){var r=n("ce10"),o=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),o=Array.prototype;void 0==o[r]&&n("32e9")(o,r,{}),t.exports=function(t){o[r][t]=!0}},"9def":function(t,e,n){var r=n("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9fac":function(t,e,n){"use strict";var r={},o="(?:^|\\s)",i="(?:\\s|$)";function c(t){var e=r[t];return e?e.lastIndex=0:r[t]=e=new RegExp(o+t+i,"g"),e}function a(t,e){var n=t.className;n.length?c(e).test(n)||(t.className+=" "+e):t.className=e}function u(t,e){t.className=t.className.replace(c(e)," ").trim()}t.exports={add:a,rm:u}},a1fc:function(t,e,n){"use strict";var r=n("0702"),o=n.n(r);o.a},aa77:function(t,e,n){var r=n("5ca1"),o=n("be13"),i=n("79e5"),c=n("fdef"),a="["+c+"]",u=" ",s=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var o={},a=i(function(){return!!c[t]()||u[t]()!=u}),s=o[t]=a?e(d):c[t];n&&(o[n]=s),r(r.P+r.F*a,"String",o)},d=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},ac6a:function(t,e,n){for(var r=n("cadf"),o=n("0d58"),i=n("2aba"),c=n("7726"),a=n("32e9"),u=n("84f2"),s=n("2b4c"),f=s("iterator"),l=s("toStringTag"),d=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},v=o(p),m=0;m<v.length;m++){var h,g=v[m],b=p[g],y=c[g],x=y&&y.prototype;if(x&&(x[f]||a(x,f,d),x[l]||a(x,l,g),u[g]=d,b))for(h in r)x[h]||i(x,h,r[h],!0)}},b851:function(t,e,n){"use strict";var r=n("f4ae"),o=n.n(r);o.a},be13:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c366:function(t,e,n){var r=n("6821"),o=n("9def"),i=n("77f1");t.exports=function(t){return function(e,n,c){var a,u=r(e),s=o(u.length),f=i(c,s);if(t&&n!=n){while(s>f)if(a=u[f++],a!=a)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},c5f6:function(t,e,n){"use strict";var r=n("7726"),o=n("69a8"),i=n("2d95"),c=n("5dbc"),a=n("6a99"),u=n("79e5"),s=n("9093").f,f=n("11e9").f,l=n("86cc").f,d=n("aa77").trim,p="Number",v=r[p],m=v,h=v.prototype,g=i(n("2aeb")(h))==p,b="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){e=b?e.trim():d(e,3);var n,r,o,i=e.charCodeAt(0);if(43===i||45===i){if(n=e.charCodeAt(2),88===n||120===n)return NaN}else if(48===i){switch(e.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+e}for(var c,u=e.slice(2),s=0,f=u.length;s<f;s++)if(c=u.charCodeAt(s),c<48||c>o)return NaN;return parseInt(u,r)}}return+e};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof v&&(g?u(function(){h.valueOf.call(n)}):i(n)!=p)?c(new m(y(e)),n,v):y(e)};for(var x,S=n("9e1e")?s(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)o(m,x=S[w])&&!o(v,x)&&l(v,x,f(m,x));v.prototype=h,h.constructor=v,n("2aba")(r,p,v)}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),o=n("d53b"),i=n("84f2"),c=n("6821");t.exports=n("01f9")(Array,"Array",function(t,e){this._t=c(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),o=n("6821"),i=n("c366")(!1),c=n("613b")("IE_PROTO");t.exports=function(t,e){var n,a=o(t),u=0,s=[];for(n in a)n!=c&&r(a,n)&&s.push(n);while(e.length>u)r(a,n=e[u++])&&(~i(s,n)||s.push(n));return s}},d3f4:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},f13f:function(t,e){t.exports=function(t,e){return Array.prototype.slice.call(t,e)}},f3f2:function(t,e,n){"use strict";var r=n("f13f"),o=n("21b7");t.exports=function(t,e){var n=e||{},i={};return void 0===t&&(t={}),t.on=function(e,n){return i[e]?i[e].push(n):i[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete i[e];else if(0===r)i={};else{var o=i[e];if(!o)return t;o.splice(o.indexOf(n),1)}return t},t.emit=function(){var e=r(arguments);return t.emitterSnapshot(e.shift()).apply(this,e)},t.emitterSnapshot=function(e){var c=(i[e]||[]).slice(0);return function(){var i=r(arguments),a=this||t;if("error"===e&&!1!==n.throws&&!c.length)throw 1===i.length?i[0]:i;return c.forEach(function(r){n.async?o(r,i,a):r.apply(a,i),r._once&&t.off(e,r)}),t}},t}},f4ae:function(t,e,n){},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));var o=n("8bbf"),i=n.n(o),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"board-container"},[n("ul",{staticClass:"drag-list"},t._l(t.lanes,function(e){return n("li",{key:e.slug,staticClass:"drag-column",class:(r={},r["drag-column-"+e.slug]=!0,r),style:{margin:"0 "+t.gap/2+"px"}},[e.hidden?n("div",{staticClass:"board-locked-header"}):n("div",{staticClass:"board-header"},[n("p",{staticClass:"stage-title"},[t._v(t._s(e.name))]),n("div",{staticClass:"add-task-container",class:{errors:t.showLaneErrors===e.slug}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.itemSummary[e.slug],expression:"itemSummary[lane.slug]"}],staticClass:"stage-input",attrs:{type:"text",placeholder:t.placeholder},domProps:{value:t.itemSummary[e.slug]},on:{keyup:function(n){if(!("button"in n)&&t._k(n.keyCode,"enter",13,n.key,"Enter"))return null;t.maybeAddItem(e.slug)},input:function(n){n.target.composing||t.$set(t.itemSummary,e.slug,n.target.value)}}}),n("div",{staticClass:"add-cta",class:{active:t.showLaneUsers===e.slug},on:{click:function(n){t.maybeAddItem(e.slug)}}},[t._v("+")]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.showLaneUsers===e.slug,expression:"showLaneUsers === lane.slug"}],staticClass:"add-users"},t._l(t.users,function(r){return n("div",{key:r.id,staticClass:"add-user-item",on:{click:function(n){t.addItem(e.slug,r)}}},[n("img",{staticClass:"add-user-image",attrs:{src:r.image}}),n("span",{staticClass:"add-user-text"},[t._v(t._s(r.name))])])}))])]),n("ul",{ref:"list",refInFor:!0,staticClass:"drag-inner-list",attrs:{"data-status":e.slug}},t._l(t.getBlocks(e.slug),function(e){return n("card",{key:e.id,staticClass:"drag-item",attrs:{"data-block-id":e.id,task:e},on:{"block-clicked":t.cardClicked}},[[t._t("default",null,{data:e})]],2)}))]);var r}))])},a=[],u=(n("ac6a"),n("cadf"),n("456d"),n("c5f6"),n("612e")),s=n.n(u),f=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"kb-card",on:{click:t.cardClicked}},[n("div",{staticClass:"d-flex flex-wrap"},[t._t("default")],2)])},l=[],d={props:{task:{required:!0}},methods:{cardClicked:function(){this.$emit("block-clicked",this.task)}}},p=d;n("a1fc");function v(t,e,n,r,o,i,c,a){var u,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),c?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(c)},s._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(t,e){return u.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:s}}var m=v(p,f,l,!1,null,null,null);m.options.__file="kanban-card.vue";var h=m.exports,g={name:"kanban-board",props:{lanes:{required:!1,default:function(){return[{name:"Todo",slug:"todo"},{name:"In progress",slug:"in-progress"},{name:"Done",slug:"done"}]}},items:{required:!1,default:function(){return[]}},placeholder:{type:String,default:"Add a new task..."},gap:{type:Number,default:40},hasUsers:{type:Boolean,default:!0},users:{type:Array,default:function(){return[]}}},components:{Card:h},data:function(){return{itemSummary:{},itemUser:{},showLaneUsers:"",showLaneErrors:"",unsavedItems:[]}},mounted:function(){var t=this;s()(this.$refs.list).on("drag",function(t){t.classList.add("is-moving")}).on("drop",function(e,n){var r=0;for(r=0;r<n.children.length;r+=1)if(n.children[r].classList.contains("is-moving"))break;t.$emit("item-updated",e.dataset.blockId,n.dataset.status,r)}).on("dragend",function(t){t.classList.remove("is-moving"),window.setTimeout(function(){t.classList.add("is-moved"),window.setTimeout(function(){t.classList.remove("is-moved")},600)},100)})},methods:{getBlocks:function(t){return this.localBlocks.filter(function(e){return e.status===t})},cardClicked:function(t){this.$emit("item-clicked",t)},maybeAddItem:function(t){if(this.showLaneErrors="",0===Object.keys(this.itemSummary).length||0===this.itemSummary[t].length)return this.showLaneErrors=t,!1;this.hasUsers?this.showLaneUsers=t:this.addItem(t)},addItem:function(t,e){var n={summary:this.itemSummary[t],status:t};this.hasUsers&&(n["user"]=e),this.showLaneUsers="",this.itemSummary[t]="",this.unsavedItems.push(n),this.$emit("item-created",n)}},computed:{localBlocks:function(){return this.unsavedItems.concat(this.items)}}},b=g,y=(n("b851"),v(b,c,a,!1,null,null,null));y.options.__file="kanban-board.vue";var x=y.exports;i.a.component("KanbanBoard",x);var S=x;e["default"]=S},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
//# sourceMappingURL=vue-kanban-board.umd.min.js.map |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"main": "./dist/vue-kanban-board.common.js", | ||
@@ -9,0 +9,0 @@ "keywords": [ |
@@ -42,5 +42,5 @@ # Vue kanban board | ||
items: [ | ||
{ status: 'todo', summary: 'This is a TODO task', description: 'Quisque non tellus orci ac auctor augue mauris augue neque. Vitae tortor condimentum lacinia quis vel.' }, | ||
{ status: 'todo', summary: 'This is a longer TODO task', description: 'Quisque non tellus orci ac auctor augue mauris augue neque. Vitae tortor condimentum lacinia quis vel.' }, | ||
{ status: 'todo', summary: 'This is an even longer TODO task', description: 'Quisque non tellus orci ac auctor augue mauris augue neque. Vitae tortor condimentum lacinia quis vel.' } | ||
{ status: 'todo', summary: 'This is a TODO task', description: 'Quisque non tellus orci ac auctor augue mauris.' }, | ||
{ status: 'todo', summary: 'This is a longer TODO task', description: 'Quisque non tellus orci ac auctor augue mauris.' }, | ||
{ status: 'todo', summary: 'This is an even longer TODO task', description: 'Quisque non tellus orci ac auctor augue mauris.' } | ||
] | ||
@@ -58,6 +58,14 @@ } | ||
```js | ||
lanes: [{ name: 'Lane name', slug: 'lane-slug', hidden: true }] | ||
blocks: [ | ||
/* Any object is fine */ | ||
lanes: [ | ||
{ | ||
name: 'Lane name', // The display name of the lane | ||
slug: 'lane-slug', // required unique slug | ||
hidden: true // IF the lane has a create task option | ||
} | ||
] | ||
items: [{ status: 'lane-slug' /* ... */ }] // the items shown on the board | ||
placeholder: 'Add a new task... ' // The placeholder of the create option | ||
gap: 30 // The gap between lanes | ||
hasUsers: true // wether or not users should be added to an item | ||
users: [{ id: 1, image: '...', name: '...' }] // The available users that can be added to a item | ||
``` | ||
@@ -69,3 +77,3 @@ | ||
<template> | ||
<kanban-board v-on:item-updated="handleBlockUpdated" v-on:item-clicked="handleBlockClicked"><kanban-board> | ||
<kanban-board v-on:item-updated="handleItemUpdated" v-on:item-clicked="handleItemClicked" v-on:item-created="handleItemCreated"><kanban-board> | ||
</template> | ||
@@ -76,7 +84,10 @@ | ||
methods: { | ||
handleBlockUpdated(itemId, status, index) { | ||
handleItemUpdated(itemId, status, index) { | ||
// Update code | ||
}, | ||
handleBlockClicked(item) { | ||
handleItemClicked(item) { | ||
// Clicked code | ||
}, | ||
handleItemCreated(item) { | ||
// Created code | ||
} | ||
@@ -83,0 +94,0 @@ } |
Sorry, the diff of this file is too big to display
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 too big to display
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
Sorry, the diff of this file is not supported yet
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
3098682
27
5016
94
11