@salamander.be/vue-kanban-board
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -90,2 +90,9 @@ module.exports = | ||
/***/ "0702": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "1a3b": | ||
@@ -123,13 +130,2 @@ /***/ (function(module, exports) { | ||
/***/ "3abc": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("60f3"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); | ||
/* unused harmony reexport * */ | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/***/ "3f31": | ||
@@ -245,9 +241,2 @@ /***/ (function(module, exports, __webpack_require__) { | ||
/***/ "60f3": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "612e": | ||
@@ -948,9 +937,2 @@ /***/ (function(module, exports, __webpack_require__) { | ||
/***/ "89c7": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "8bbf": | ||
@@ -1004,13 +986,24 @@ /***/ (function(module, exports) { | ||
/***/ "c65a": | ||
/***/ "a1fc": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("89c7"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0702"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); | ||
/* unused harmony reexport * */ | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/***/ "b851": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f4ae"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); | ||
/* unused harmony reexport * */ | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/***/ "c8ba": | ||
@@ -1113,2 +1106,9 @@ /***/ (function(module, exports) { | ||
/***/ "f4ae": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "fb15": | ||
@@ -1137,3 +1137,3 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-board.vue?vue&type=template&id=5cffec89&scoped=true& | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-board.vue?vue&type=template&id=a5a83986& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"board-container"},[_c('ul',{staticClass:"drag-list"},_vm._l((_vm.stages),function(name,stage){return _c('li',{key:stage,staticClass:"drag-column",class:( _obj = {}, _obj['drag-column-' + stage] = true, _obj )},[_c('div',{staticClass:"board-header"},[_c('p',{staticClass:"stage-title"},[_vm._v(_vm._s(name))]),_c('div',{staticClass:"add-task-container"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.taskSummary[stage]),expression:"taskSummary[stage]"}],staticClass:"stage-input",attrs:{"type":"text","placeholder":"Add a new task ..."},domProps:{"value":(_vm.taskSummary[stage])},on:{"keyup":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }_vm.createNewTask(stage)},"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.taskSummary, stage, $event.target.value)}}}),_c('div',{staticClass:"add-cta"},[_vm._v("+")])])]),_c('ul',{ref:"list",refInFor:true,staticClass:"drag-inner-list",attrs:{"data-status":stage}},_vm._l((_vm.getBlocks(stage)),function(block){return _c('card',{key:block.id,staticClass:"drag-item",attrs:{"data-block-id":block.id,"task":block}},[[_vm._t("default",null,{data:block})]],2)}))]) | ||
@@ -1144,3 +1144,3 @@ var _obj;}))])} | ||
// CONCATENATED MODULE: ./src/components/kanban-board.vue?vue&type=template&id=5cffec89&scoped=true& | ||
// CONCATENATED MODULE: ./src/components/kanban-board.vue?vue&type=template&id=a5a83986& | ||
@@ -1151,8 +1151,8 @@ // EXTERNAL MODULE: ./node_modules/dragula/dragula.js | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-card.vue?vue&type=template&id=5b3bbc9b&scoped=true& | ||
var kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kb-card"},[_c('div',{staticClass:"d-flex flex-wrap"},[_vm._t("default")],2)])} | ||
var kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-card.vue?vue&type=template&id=6f6f85db& | ||
var kanban_cardvue_type_template_id_6f6f85db_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kb-card"},[_c('div',{staticClass:"d-flex flex-wrap"},[_vm._t("default")],2)])} | ||
var kanban_cardvue_type_template_id_6f6f85db_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/kanban-card.vue?vue&type=template&id=5b3bbc9b&scoped=true& | ||
// CONCATENATED MODULE: ./src/components/kanban-card.vue?vue&type=template&id=6f6f85db& | ||
@@ -1186,4 +1186,4 @@ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-card.vue?vue&type=script&lang=js& | ||
/* harmony default export */ var components_kanban_cardvue_type_script_lang_js_ = (kanban_cardvue_type_script_lang_js_); | ||
// EXTERNAL MODULE: ./src/components/kanban-card.vue?vue&type=style&index=0&id=5b3bbc9b&lang=scss&scoped=true& | ||
var kanban_cardvue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true_ = __webpack_require__("3abc"); | ||
// EXTERNAL MODULE: ./src/components/kanban-card.vue?vue&type=style&index=0&lang=scss& | ||
var kanban_cardvue_type_style_index_0_lang_scss_ = __webpack_require__("a1fc"); | ||
@@ -1296,7 +1296,7 @@ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
components_kanban_cardvue_type_script_lang_js_, | ||
kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_render, | ||
kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_staticRenderFns, | ||
kanban_cardvue_type_template_id_6f6f85db_render, | ||
kanban_cardvue_type_template_id_6f6f85db_staticRenderFns, | ||
false, | ||
null, | ||
"5b3bbc9b", | ||
null, | ||
null | ||
@@ -1553,4 +1553,4 @@ | ||
/* harmony default export */ var components_kanban_boardvue_type_script_lang_js_ = (kanban_boardvue_type_script_lang_js_); | ||
// EXTERNAL MODULE: ./src/components/kanban-board.vue?vue&type=style&index=0&id=5cffec89&lang=scss&scoped=true& | ||
var kanban_boardvue_type_style_index_0_id_5cffec89_lang_scss_scoped_true_ = __webpack_require__("c65a"); | ||
// EXTERNAL MODULE: ./src/components/kanban-board.vue?vue&type=style&index=0&lang=scss& | ||
var kanban_boardvue_type_style_index_0_lang_scss_ = __webpack_require__("b851"); | ||
@@ -1572,3 +1572,3 @@ // CONCATENATED MODULE: ./src/components/kanban-board.vue | ||
null, | ||
"5cffec89", | ||
null, | ||
null | ||
@@ -1575,0 +1575,0 @@ |
@@ -99,2 +99,9 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/***/ "0702": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "1a3b": | ||
@@ -132,13 +139,2 @@ /***/ (function(module, exports) { | ||
/***/ "3abc": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("60f3"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); | ||
/* unused harmony reexport * */ | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/***/ "3f31": | ||
@@ -254,9 +250,2 @@ /***/ (function(module, exports, __webpack_require__) { | ||
/***/ "60f3": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "612e": | ||
@@ -957,9 +946,2 @@ /***/ (function(module, exports, __webpack_require__) { | ||
/***/ "89c7": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "8bbf": | ||
@@ -1013,13 +995,24 @@ /***/ (function(module, exports) { | ||
/***/ "c65a": | ||
/***/ "a1fc": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("89c7"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0702"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); | ||
/* unused harmony reexport * */ | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_id_5cffec89_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_card_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/***/ "b851": | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f4ae"); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); | ||
/* unused harmony reexport * */ | ||
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_index_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_lib_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_lib_loader_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_kanban_board_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/***/ "c8ba": | ||
@@ -1122,2 +1115,9 @@ /***/ (function(module, exports) { | ||
/***/ "f4ae": | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
/***/ }), | ||
/***/ "fb15": | ||
@@ -1146,3 +1146,3 @@ /***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-board.vue?vue&type=template&id=5cffec89&scoped=true& | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-board.vue?vue&type=template&id=a5a83986& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"board-container"},[_c('ul',{staticClass:"drag-list"},_vm._l((_vm.stages),function(name,stage){return _c('li',{key:stage,staticClass:"drag-column",class:( _obj = {}, _obj['drag-column-' + stage] = true, _obj )},[_c('div',{staticClass:"board-header"},[_c('p',{staticClass:"stage-title"},[_vm._v(_vm._s(name))]),_c('div',{staticClass:"add-task-container"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.taskSummary[stage]),expression:"taskSummary[stage]"}],staticClass:"stage-input",attrs:{"type":"text","placeholder":"Add a new task ..."},domProps:{"value":(_vm.taskSummary[stage])},on:{"keyup":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }_vm.createNewTask(stage)},"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.taskSummary, stage, $event.target.value)}}}),_c('div',{staticClass:"add-cta"},[_vm._v("+")])])]),_c('ul',{ref:"list",refInFor:true,staticClass:"drag-inner-list",attrs:{"data-status":stage}},_vm._l((_vm.getBlocks(stage)),function(block){return _c('card',{key:block.id,staticClass:"drag-item",attrs:{"data-block-id":block.id,"task":block}},[[_vm._t("default",null,{data:block})]],2)}))]) | ||
@@ -1153,3 +1153,3 @@ var _obj;}))])} | ||
// CONCATENATED MODULE: ./src/components/kanban-board.vue?vue&type=template&id=5cffec89&scoped=true& | ||
// CONCATENATED MODULE: ./src/components/kanban-board.vue?vue&type=template&id=a5a83986& | ||
@@ -1160,8 +1160,8 @@ // EXTERNAL MODULE: ./node_modules/dragula/dragula.js | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-card.vue?vue&type=template&id=5b3bbc9b&scoped=true& | ||
var kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kb-card"},[_c('div',{staticClass:"d-flex flex-wrap"},[_vm._t("default")],2)])} | ||
var kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules//.cache//vue-loader","cacheIdentifier":"cb29a978-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-card.vue?vue&type=template&id=6f6f85db& | ||
var kanban_cardvue_type_template_id_6f6f85db_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"kb-card"},[_c('div',{staticClass:"d-flex flex-wrap"},[_vm._t("default")],2)])} | ||
var kanban_cardvue_type_template_id_6f6f85db_staticRenderFns = [] | ||
// CONCATENATED MODULE: ./src/components/kanban-card.vue?vue&type=template&id=5b3bbc9b&scoped=true& | ||
// CONCATENATED MODULE: ./src/components/kanban-card.vue?vue&type=template&id=6f6f85db& | ||
@@ -1195,4 +1195,4 @@ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/kanban-card.vue?vue&type=script&lang=js& | ||
/* harmony default export */ var components_kanban_cardvue_type_script_lang_js_ = (kanban_cardvue_type_script_lang_js_); | ||
// EXTERNAL MODULE: ./src/components/kanban-card.vue?vue&type=style&index=0&id=5b3bbc9b&lang=scss&scoped=true& | ||
var kanban_cardvue_type_style_index_0_id_5b3bbc9b_lang_scss_scoped_true_ = __webpack_require__("3abc"); | ||
// EXTERNAL MODULE: ./src/components/kanban-card.vue?vue&type=style&index=0&lang=scss& | ||
var kanban_cardvue_type_style_index_0_lang_scss_ = __webpack_require__("a1fc"); | ||
@@ -1305,7 +1305,7 @@ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
components_kanban_cardvue_type_script_lang_js_, | ||
kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_render, | ||
kanban_cardvue_type_template_id_5b3bbc9b_scoped_true_staticRenderFns, | ||
kanban_cardvue_type_template_id_6f6f85db_render, | ||
kanban_cardvue_type_template_id_6f6f85db_staticRenderFns, | ||
false, | ||
null, | ||
"5b3bbc9b", | ||
null, | ||
null | ||
@@ -1562,4 +1562,4 @@ | ||
/* harmony default export */ var components_kanban_boardvue_type_script_lang_js_ = (kanban_boardvue_type_script_lang_js_); | ||
// EXTERNAL MODULE: ./src/components/kanban-board.vue?vue&type=style&index=0&id=5cffec89&lang=scss&scoped=true& | ||
var kanban_boardvue_type_style_index_0_id_5cffec89_lang_scss_scoped_true_ = __webpack_require__("c65a"); | ||
// EXTERNAL MODULE: ./src/components/kanban-board.vue?vue&type=style&index=0&lang=scss& | ||
var kanban_boardvue_type_style_index_0_lang_scss_ = __webpack_require__("b851"); | ||
@@ -1581,3 +1581,3 @@ // CONCATENATED MODULE: ./src/components/kanban-board.vue | ||
null, | ||
"5cffec89", | ||
null, | ||
null | ||
@@ -1584,0 +1584,0 @@ |
@@ -1,2 +0,2 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-kanban-board"]=t(require("vue")):e["vue-kanban-board"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"1a3b":function(e,t){var n,r="function"===typeof setImmediate;n=r?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=n},"21b7":function(e,t,n){"use strict";var r=n("1a3b");e.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},"3abc":function(e,t,n){"use strict";var r=n("60f3"),o=n.n(r);o.a},"3f31":function(e,t,n){"use strict";(function(t){var r=n("6c1b"),o=n("62cf"),i=t.document,a=s,c=f,u=[];function s(e,t,n,r){return e.addEventListener(t,n,r)}function l(e,t,n){return e.attachEvent("on"+t,m(e,t,n))}function f(e,t,n,r){return e.removeEventListener(t,n,r)}function d(e,t,n){var r=g(e,t,n);if(r)return e.detachEvent("on"+t,r)}function v(e,t,n){var a=-1===o.indexOf(t)?u():c();function c(){var e;return i.createEvent?(e=i.createEvent("Event"),e.initEvent(t,!0,!0)):i.createEventObject&&(e=i.createEventObject()),e}function u(){return new r(t,{detail:n})}e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+t,a)}function p(e,n,r){return function(n){var o=n||t.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(e,o)}}function m(e,t,n){var r=g(e,t,n)||p(e,t,n);return u.push({wrapper:r,element:e,type:t,fn:n}),r}function g(e,t,n){var r=h(e,t,n);if(r){var o=u[r].wrapper;return u.splice(r,1),o}}function h(e,t,n){var r,o;for(r=0;r<u.length;r++)if(o=u[r],o.element===e&&o.type===t&&o.fn===n)return r}t.addEventListener||(a=l,c=d),e.exports={add:a,remove:c,fabricate:v}}).call(this,n("c8ba"))},"60f3":function(e,t,n){},"612e":function(e,t,n){"use strict";(function(t){var r=n("f3f2"),o=n("3f31"),i=n("9fac"),a=document,c=a.documentElement;function u(e,t){var n,u,d,C,S,_,E,k,T,O,N,j=arguments.length;1===j&&!1===Array.isArray(e)&&(t=e,e=[]);var P,B=null,X=t||{};void 0===X.moves&&(X.moves=m),void 0===X.accepts&&(X.accepts=m),void 0===X.invalid&&(X.invalid=z),void 0===X.containers&&(X.containers=e||[]),void 0===X.isContainer&&(X.isContainer=p),void 0===X.copy&&(X.copy=!1),void 0===X.copySortSource&&(X.copySortSource=!1),void 0===X.revertOnSpill&&(X.revertOnSpill=!1),void 0===X.removeOnSpill&&(X.removeOnSpill=!1),void 0===X.direction&&(X.direction="vertical"),void 0===X.ignoreInputTextSelection&&(X.ignoreInputTextSelection=!0),void 0===X.mirrorContainer&&(X.mirrorContainer=a.body);var $=r({containers:X.containers,start:V,end:H,cancel:Z,remove:W,destroy:M,canMove:U,dragging:!1});return!0===X.removeOnSpill&&$.on("over",oe).on("out",ie),R(),$;function I(e){return-1!==$.containers.indexOf(e)||X.isContainer(e)}function R(e){var t=e?"remove":"add";s(c,t,"mousedown",A),s(c,t,"mouseup",J)}function L(e){var t=e?"remove":"add";s(c,t,"mousemove",q)}function Y(e){var t=e?"remove":"add";o[t](c,"selectstart",D),o[t](c,"click",D)}function M(){R(!0),J({})}function D(e){P&&e.preventDefault()}function A(e){_=e.clientX,E=e.clientY;var t=1!==l(e)||e.metaKey||e.ctrlKey;if(!t){var n=e.target,r=F(n);r&&(P=r,L(),"mousedown"===e.type&&(y(n)?n.focus():e.preventDefault()))}}function q(e){if(P)if(0!==l(e)){if(void 0===e.clientX||e.clientX!==_||void 0===e.clientY||e.clientY!==E){if(X.ignoreInputTextSelection){var t=x("clientX",e),n=x("clientY",e),r=a.elementFromPoint(t,n);if(y(r))return}var o=P;L(!0),Y(),H(),K(o);var c=f(d);C=x("pageX",e)-c.left,S=x("pageY",e)-c.top,i.add(O||d,"gu-transit"),ae(),re(e)}}else J({})}function F(e){if((!$.dragging||!n)&&!I(e)){var t=e;while(b(e)&&!1===I(b(e))){if(X.invalid(e,t))return;if(e=b(e),!e)return}var r=b(e);if(r&&!X.invalid(e,t)){var o=X.moves(e,r,t,w(e));if(o)return{item:e,source:r}}}}function U(e){return!!F(e)}function V(e){var t=F(e);t&&K(t)}function K(e){le(e.item,e.source)&&(O=e.item.cloneNode(!0),$.emit("cloned",O,e.item,"copy")),u=e.source,d=e.item,k=T=w(e.item),$.dragging=!0,$.emit("drag",d,u)}function z(){return!1}function H(){if($.dragging){var e=O||d;Q(e,b(e))}}function G(){P=!1,L(!0),Y(!0)}function J(e){if(G(),$.dragging){var t=O||d,r=x("clientX",e),o=x("clientY",e),i=v(n,r,o),a=ne(i,r,o);a&&(O&&X.copySortSource||!O||a!==u)?Q(t,a):X.removeOnSpill?W():Z()}}function Q(e,t){var n=b(e);O&&X.copySortSource&&t===u&&n.removeChild(d),te(t)?$.emit("cancel",e,u,u):$.emit("drop",e,t,u,T),ee()}function W(){if($.dragging){var e=O||d,t=b(e);t&&t.removeChild(e),$.emit(O?"cancel":"remove",e,t,u),ee()}}function Z(e){if($.dragging){var t=arguments.length>0?e:X.revertOnSpill,n=O||d,r=b(n),o=te(r);!1===o&&t&&(O?r&&r.removeChild(O):u.insertBefore(n,k)),o||t?$.emit("cancel",n,u,u):$.emit("drop",n,r,u,T),ee()}}function ee(){var e=O||d;G(),ce(),e&&i.rm(e,"gu-transit"),N&&clearTimeout(N),$.dragging=!1,B&&$.emit("out",e,B,u),$.emit("dragend",e),u=d=O=k=T=N=B=null}function te(e,t){var r;return r=void 0!==t?t:n?T:w(O||d),e===u&&r===k}function ne(e,t,n){var r=e;while(r&&!o())r=b(r);return r;function o(){var o=I(r);if(!1===o)return!1;var i=ue(r,e),a=se(r,i,t,n),c=te(r,a);return!!c||X.accepts(d,r,u,a)}}function re(e){if(n){e.preventDefault();var t=x("clientX",e),r=x("clientY",e),o=t-C,i=r-S;n.style.left=o+"px",n.style.top=i+"px";var a=O||d,c=v(n,t,r),s=ne(c,t,r),l=null!==s&&s!==B;(l||null===s)&&(y(),B=s,h());var f=b(a);if(s!==u||!O||X.copySortSource){var p,m=ue(s,c);if(null!==m)p=se(s,m,t,r);else{if(!0!==X.revertOnSpill||O)return void(O&&f&&f.removeChild(a));p=k,s=u}(null===p&&l||p!==a&&p!==w(a))&&(T=p,s.insertBefore(a,p),$.emit("shadow",a,s,u))}else f&&f.removeChild(a)}function g(e){$.emit(e,a,B,u)}function h(){l&&g("over")}function y(){B&&g("out")}}function oe(e){i.rm(e,"gu-hide")}function ie(e){$.dragging&&i.add(e,"gu-hide")}function ae(){if(!n){var e=d.getBoundingClientRect();n=d.cloneNode(!0),n.style.width=g(e)+"px",n.style.height=h(e)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),X.mirrorContainer.appendChild(n),s(c,"add","mousemove",re),i.add(X.mirrorContainer,"gu-unselectable"),$.emit("cloned",n,d,"mirror")}}function ce(){n&&(i.rm(X.mirrorContainer,"gu-unselectable"),s(c,"remove","mousemove",re),b(n).removeChild(n),n=null)}function ue(e,t){var n=t;while(n!==e&&b(n)!==e)n=b(n);return n===c?null:n}function se(e,t,n,r){var o="horizontal"===X.direction,i=t!==e?c():a();return i;function a(){var t,i,a,c=e.children.length;for(t=0;t<c;t++){if(i=e.children[t],a=i.getBoundingClientRect(),o&&a.left+a.width/2>n)return i;if(!o&&a.top+a.height/2>r)return i}return null}function c(){var e=t.getBoundingClientRect();return u(o?n>e.left+g(e)/2:r>e.top+h(e)/2)}function u(e){return e?w(t):t}}function le(e,t){return"boolean"===typeof X.copy?X.copy:X.copy(e,t)}}function s(e,n,r,i){var a={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},c={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},u={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};t.navigator.pointerEnabled?o[n](e,c[r],i):t.navigator.msPointerEnabled?o[n](e,u[r],i):(o[n](e,a[r],i),o[n](e,r,i))}function l(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function f(e){var t=e.getBoundingClientRect();return{left:t.left+d("scrollLeft","pageXOffset"),top:t.top+d("scrollTop","pageYOffset")}}function d(e,n){return"undefined"!==typeof t[n]?t[n]:c.clientHeight?c[e]:a.body[e]}function v(e,t,n){var r,o=e||{},i=o.className;return o.className+=" gu-hide",r=a.elementFromPoint(t,n),o.className=i,r}function p(){return!1}function m(){return!0}function g(e){return e.width||e.right-e.left}function h(e){return e.height||e.bottom-e.top}function b(e){return e.parentNode===a?null:e.parentNode}function y(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||C(e)}function C(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||C(b(e))))}function w(e){return e.nextElementSibling||t();function t(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}}function S(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}function x(e,t){var n=S(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}e.exports=u}).call(this,n("c8ba"))},"62cf":function(e,t,n){"use strict";(function(t){var n=[],r="",o=/^on/;for(r in t)o.test(r)&&n.push(r.slice(2));e.exports=n}).call(this,n("c8ba"))},"6c1b":function(e,t,n){(function(t){var n=t.CustomEvent;function r(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}e.exports=r()?n:"function"===typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n("c8ba"))},"89c7":function(e,t,n){},"8bbf":function(t,n){t.exports=e},"9fac":function(e,t,n){"use strict";var r={},o="(?:^|\\s)",i="(?:\\s|$)";function a(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp(o+e+i,"g"),t}function c(e,t){var n=e.className;n.length?a(t).test(n)||(e.className+=" "+t):e.className=t}function u(e,t){e.className=e.className.replace(a(t)," ").trim()}e.exports={add:c,rm:u}},c65a:function(e,t,n){"use strict";var r=n("89c7"),o=n.n(r);o.a},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},f13f:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},f3f2:function(e,t,n){"use strict";var r=n("f13f"),o=n("21b7");e.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete i[t];else if(0===r)i={};else{var o=i[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(i[t]||[]).slice(0);return function(){var i=r(arguments),c=this||e;if("error"===t&&!1!==n.throws&&!a.length)throw 1===i.length?i[0]:i;return a.forEach(function(r){n.async?o(r,i,c):r.apply(c,i),r._once&&e.off(t,r)}),e}},e}},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));var o=n("8bbf"),i=n.n(o),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"board-container"},[n("ul",{staticClass:"drag-list"},e._l(e.stages,function(t,r){return n("li",{key:r,staticClass:"drag-column",class:(o={},o["drag-column-"+r]=!0,o)},[n("div",{staticClass:"board-header"},[n("p",{staticClass:"stage-title"},[e._v(e._s(t))]),n("div",{staticClass:"add-task-container"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.taskSummary[r],expression:"taskSummary[stage]"}],staticClass:"stage-input",attrs:{type:"text",placeholder:"Add a new task ..."},domProps:{value:e.taskSummary[r]},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.createNewTask(r)},input:function(t){t.target.composing||e.$set(e.taskSummary,r,t.target.value)}}}),n("div",{staticClass:"add-cta"},[e._v("+")])])]),n("ul",{ref:"list",refInFor:!0,staticClass:"drag-inner-list",attrs:{"data-status":r}},e._l(e.getBlocks(r),function(t){return n("card",{key:t.id,staticClass:"drag-item",attrs:{"data-block-id":t.id,task:t}},[[e._t("default",null,{data:t})]],2)}))]);var o}))])},c=[],u=n("612e"),s=n.n(u),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kb-card"},[n("div",{staticClass:"d-flex flex-wrap"},[e._t("default")],2)])},f=[],d={props:{task:{required:!0}}},v=d;n("3abc");function p(e,t,n,r,o,i,a,c){var u,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},s._ssrRegister=u):o&&(u=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var l=s.render;s.render=function(e,t){return u.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,u):[u]}return{exports:e,options:s}}var m=p(v,l,f,!1,null,"5b3bbc9b",null);m.options.__file="kanban-card.vue";var g=m.exports,h={name:"kanban-board",props:{stages:{required:!1,default:function(){return{todo:"Todo","in-progress":"In progress",done:"Done"}}},blocks:{required:!1,default:function(){return[]}}},components:{Card:g},data:function(){return{taskSummary:{}}},mounted:function(){var e=this;s()(this.$refs.list).on("drag",function(e){e.classList.add("is-moving")}).on("drop",function(t,n){var r=0;for(r=0;r<n.children.length;r+=1)if(n.children[r].classList.contains("is-moving"))break;e.$emit("update-block",t.dataset.blockId,n.dataset.status,r)}).on("dragend",function(e){e.classList.remove("is-moving"),window.setTimeout(function(){e.classList.add("is-moved"),window.setTimeout(function(){e.classList.remove("is-moved")},600)},100)})},methods:{getBlocks:function(e){return this.localBlocks.filter(function(t){return t.status===e})}},computed:{localBlocks:function(){return this.blocks}}},b=h,y=(n("c65a"),p(b,a,c,!1,null,"5cffec89",null));y.options.__file="kanban-board.vue";var C=y.exports;i.a.component("KanbanBoard",C);var w=C;t["default"]=w}})}); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["vue-kanban-board"]=t(require("vue")):e["vue-kanban-board"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"0702":function(e,t,n){},"1a3b":function(e,t){var n,r="function"===typeof setImmediate;n=r?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=n},"21b7":function(e,t,n){"use strict";var r=n("1a3b");e.exports=function(e,t,n){e&&r(function(){e.apply(n||null,t||[])})}},"3f31":function(e,t,n){"use strict";(function(t){var r=n("6c1b"),o=n("62cf"),i=t.document,a=s,u=f,c=[];function s(e,t,n,r){return e.addEventListener(t,n,r)}function l(e,t,n){return e.attachEvent("on"+t,m(e,t,n))}function f(e,t,n,r){return e.removeEventListener(t,n,r)}function d(e,t,n){var r=g(e,t,n);if(r)return e.detachEvent("on"+t,r)}function v(e,t,n){var a=-1===o.indexOf(t)?c():u();function u(){var e;return i.createEvent?(e=i.createEvent("Event"),e.initEvent(t,!0,!0)):i.createEventObject&&(e=i.createEventObject()),e}function c(){return new r(t,{detail:n})}e.dispatchEvent?e.dispatchEvent(a):e.fireEvent("on"+t,a)}function p(e,n,r){return function(n){var o=n||t.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(e,o)}}function m(e,t,n){var r=g(e,t,n)||p(e,t,n);return c.push({wrapper:r,element:e,type:t,fn:n}),r}function g(e,t,n){var r=h(e,t,n);if(r){var o=c[r].wrapper;return c.splice(r,1),o}}function h(e,t,n){var r,o;for(r=0;r<c.length;r++)if(o=c[r],o.element===e&&o.type===t&&o.fn===n)return r}t.addEventListener||(a=l,u=d),e.exports={add:a,remove:u,fabricate:v}}).call(this,n("c8ba"))},"612e":function(e,t,n){"use strict";(function(t){var r=n("f3f2"),o=n("3f31"),i=n("9fac"),a=document,u=a.documentElement;function c(e,t){var n,c,d,C,S,_,E,k,T,O,N,j=arguments.length;1===j&&!1===Array.isArray(e)&&(t=e,e=[]);var P,B=null,X=t||{};void 0===X.moves&&(X.moves=m),void 0===X.accepts&&(X.accepts=m),void 0===X.invalid&&(X.invalid=z),void 0===X.containers&&(X.containers=e||[]),void 0===X.isContainer&&(X.isContainer=p),void 0===X.copy&&(X.copy=!1),void 0===X.copySortSource&&(X.copySortSource=!1),void 0===X.revertOnSpill&&(X.revertOnSpill=!1),void 0===X.removeOnSpill&&(X.removeOnSpill=!1),void 0===X.direction&&(X.direction="vertical"),void 0===X.ignoreInputTextSelection&&(X.ignoreInputTextSelection=!0),void 0===X.mirrorContainer&&(X.mirrorContainer=a.body);var $=r({containers:X.containers,start:V,end:H,cancel:Z,remove:W,destroy:M,canMove:U,dragging:!1});return!0===X.removeOnSpill&&$.on("over",oe).on("out",ie),R(),$;function I(e){return-1!==$.containers.indexOf(e)||X.isContainer(e)}function R(e){var t=e?"remove":"add";s(u,t,"mousedown",A),s(u,t,"mouseup",J)}function L(e){var t=e?"remove":"add";s(u,t,"mousemove",q)}function Y(e){var t=e?"remove":"add";o[t](u,"selectstart",D),o[t](u,"click",D)}function M(){R(!0),J({})}function D(e){P&&e.preventDefault()}function A(e){_=e.clientX,E=e.clientY;var t=1!==l(e)||e.metaKey||e.ctrlKey;if(!t){var n=e.target,r=F(n);r&&(P=r,L(),"mousedown"===e.type&&(y(n)?n.focus():e.preventDefault()))}}function q(e){if(P)if(0!==l(e)){if(void 0===e.clientX||e.clientX!==_||void 0===e.clientY||e.clientY!==E){if(X.ignoreInputTextSelection){var t=x("clientX",e),n=x("clientY",e),r=a.elementFromPoint(t,n);if(y(r))return}var o=P;L(!0),Y(),H(),K(o);var u=f(d);C=x("pageX",e)-u.left,S=x("pageY",e)-u.top,i.add(O||d,"gu-transit"),ae(),re(e)}}else J({})}function F(e){if((!$.dragging||!n)&&!I(e)){var t=e;while(b(e)&&!1===I(b(e))){if(X.invalid(e,t))return;if(e=b(e),!e)return}var r=b(e);if(r&&!X.invalid(e,t)){var o=X.moves(e,r,t,w(e));if(o)return{item:e,source:r}}}}function U(e){return!!F(e)}function V(e){var t=F(e);t&&K(t)}function K(e){le(e.item,e.source)&&(O=e.item.cloneNode(!0),$.emit("cloned",O,e.item,"copy")),c=e.source,d=e.item,k=T=w(e.item),$.dragging=!0,$.emit("drag",d,c)}function z(){return!1}function H(){if($.dragging){var e=O||d;Q(e,b(e))}}function G(){P=!1,L(!0),Y(!0)}function J(e){if(G(),$.dragging){var t=O||d,r=x("clientX",e),o=x("clientY",e),i=v(n,r,o),a=ne(i,r,o);a&&(O&&X.copySortSource||!O||a!==c)?Q(t,a):X.removeOnSpill?W():Z()}}function Q(e,t){var n=b(e);O&&X.copySortSource&&t===c&&n.removeChild(d),te(t)?$.emit("cancel",e,c,c):$.emit("drop",e,t,c,T),ee()}function W(){if($.dragging){var e=O||d,t=b(e);t&&t.removeChild(e),$.emit(O?"cancel":"remove",e,t,c),ee()}}function Z(e){if($.dragging){var t=arguments.length>0?e:X.revertOnSpill,n=O||d,r=b(n),o=te(r);!1===o&&t&&(O?r&&r.removeChild(O):c.insertBefore(n,k)),o||t?$.emit("cancel",n,c,c):$.emit("drop",n,r,c,T),ee()}}function ee(){var e=O||d;G(),ue(),e&&i.rm(e,"gu-transit"),N&&clearTimeout(N),$.dragging=!1,B&&$.emit("out",e,B,c),$.emit("dragend",e),c=d=O=k=T=N=B=null}function te(e,t){var r;return r=void 0!==t?t:n?T:w(O||d),e===c&&r===k}function ne(e,t,n){var r=e;while(r&&!o())r=b(r);return r;function o(){var o=I(r);if(!1===o)return!1;var i=ce(r,e),a=se(r,i,t,n),u=te(r,a);return!!u||X.accepts(d,r,c,a)}}function re(e){if(n){e.preventDefault();var t=x("clientX",e),r=x("clientY",e),o=t-C,i=r-S;n.style.left=o+"px",n.style.top=i+"px";var a=O||d,u=v(n,t,r),s=ne(u,t,r),l=null!==s&&s!==B;(l||null===s)&&(y(),B=s,h());var f=b(a);if(s!==c||!O||X.copySortSource){var p,m=ce(s,u);if(null!==m)p=se(s,m,t,r);else{if(!0!==X.revertOnSpill||O)return void(O&&f&&f.removeChild(a));p=k,s=c}(null===p&&l||p!==a&&p!==w(a))&&(T=p,s.insertBefore(a,p),$.emit("shadow",a,s,c))}else f&&f.removeChild(a)}function g(e){$.emit(e,a,B,c)}function h(){l&&g("over")}function y(){B&&g("out")}}function oe(e){i.rm(e,"gu-hide")}function ie(e){$.dragging&&i.add(e,"gu-hide")}function ae(){if(!n){var e=d.getBoundingClientRect();n=d.cloneNode(!0),n.style.width=g(e)+"px",n.style.height=h(e)+"px",i.rm(n,"gu-transit"),i.add(n,"gu-mirror"),X.mirrorContainer.appendChild(n),s(u,"add","mousemove",re),i.add(X.mirrorContainer,"gu-unselectable"),$.emit("cloned",n,d,"mirror")}}function ue(){n&&(i.rm(X.mirrorContainer,"gu-unselectable"),s(u,"remove","mousemove",re),b(n).removeChild(n),n=null)}function ce(e,t){var n=t;while(n!==e&&b(n)!==e)n=b(n);return n===u?null:n}function se(e,t,n,r){var o="horizontal"===X.direction,i=t!==e?u():a();return i;function a(){var t,i,a,u=e.children.length;for(t=0;t<u;t++){if(i=e.children[t],a=i.getBoundingClientRect(),o&&a.left+a.width/2>n)return i;if(!o&&a.top+a.height/2>r)return i}return null}function u(){var e=t.getBoundingClientRect();return c(o?n>e.left+g(e)/2:r>e.top+h(e)/2)}function c(e){return e?w(t):t}}function le(e,t){return"boolean"===typeof X.copy?X.copy:X.copy(e,t)}}function s(e,n,r,i){var a={mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"},u={mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"},c={mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"};t.navigator.pointerEnabled?o[n](e,u[r],i):t.navigator.msPointerEnabled?o[n](e,c[r],i):(o[n](e,a[r],i),o[n](e,r,i))}function l(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function f(e){var t=e.getBoundingClientRect();return{left:t.left+d("scrollLeft","pageXOffset"),top:t.top+d("scrollTop","pageYOffset")}}function d(e,n){return"undefined"!==typeof t[n]?t[n]:u.clientHeight?u[e]:a.body[e]}function v(e,t,n){var r,o=e||{},i=o.className;return o.className+=" gu-hide",r=a.elementFromPoint(t,n),o.className=i,r}function p(){return!1}function m(){return!0}function g(e){return e.width||e.right-e.left}function h(e){return e.height||e.bottom-e.top}function b(e){return e.parentNode===a?null:e.parentNode}function y(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||C(e)}function C(e){return!!e&&("false"!==e.contentEditable&&("true"===e.contentEditable||C(b(e))))}function w(e){return e.nextElementSibling||t();function t(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}}function S(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}function x(e,t){var n=S(t),r={pageX:"clientX",pageY:"clientY"};return e in r&&!(e in n)&&r[e]in n&&(e=r[e]),n[e]}e.exports=c}).call(this,n("c8ba"))},"62cf":function(e,t,n){"use strict";(function(t){var n=[],r="",o=/^on/;for(r in t)o.test(r)&&n.push(r.slice(2));e.exports=n}).call(this,n("c8ba"))},"6c1b":function(e,t,n){(function(t){var n=t.CustomEvent;function r(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}e.exports=r()?n:"function"===typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(this,n("c8ba"))},"8bbf":function(t,n){t.exports=e},"9fac":function(e,t,n){"use strict";var r={},o="(?:^|\\s)",i="(?:\\s|$)";function a(e){var t=r[e];return t?t.lastIndex=0:r[e]=t=new RegExp(o+e+i,"g"),t}function u(e,t){var n=e.className;n.length?a(t).test(n)||(e.className+=" "+t):e.className=t}function c(e,t){e.className=e.className.replace(a(t)," ").trim()}e.exports={add:u,rm:c}},a1fc:function(e,t,n){"use strict";var r=n("0702"),o=n.n(r);o.a},b851:function(e,t,n){"use strict";var r=n("f4ae"),o=n.n(r);o.a},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"===typeof window&&(n=window)}e.exports=n},f13f:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},f3f2:function(e,t,n){"use strict";var r=n("f13f"),o=n("21b7");e.exports=function(e,t){var n=t||{},i={};return void 0===e&&(e={}),e.on=function(t,n){return i[t]?i[t].push(n):i[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var r=arguments.length;if(1===r)delete i[t];else if(0===r)i={};else{var o=i[t];if(!o)return e;o.splice(o.indexOf(n),1)}return e},e.emit=function(){var t=r(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var a=(i[t]||[]).slice(0);return function(){var i=r(arguments),u=this||e;if("error"===t&&!1!==n.throws&&!a.length)throw 1===i.length?i[0]:i;return a.forEach(function(r){n.async?o(r,i,u):r.apply(u,i),r._once&&e.off(t,r)}),e}},e}},f4ae:function(e,t,n){},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]));var o=n("8bbf"),i=n.n(o),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"board-container"},[n("ul",{staticClass:"drag-list"},e._l(e.stages,function(t,r){return n("li",{key:r,staticClass:"drag-column",class:(o={},o["drag-column-"+r]=!0,o)},[n("div",{staticClass:"board-header"},[n("p",{staticClass:"stage-title"},[e._v(e._s(t))]),n("div",{staticClass:"add-task-container"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.taskSummary[r],expression:"taskSummary[stage]"}],staticClass:"stage-input",attrs:{type:"text",placeholder:"Add a new task ..."},domProps:{value:e.taskSummary[r]},on:{keyup:function(t){if(!("button"in t)&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.createNewTask(r)},input:function(t){t.target.composing||e.$set(e.taskSummary,r,t.target.value)}}}),n("div",{staticClass:"add-cta"},[e._v("+")])])]),n("ul",{ref:"list",refInFor:!0,staticClass:"drag-inner-list",attrs:{"data-status":r}},e._l(e.getBlocks(r),function(t){return n("card",{key:t.id,staticClass:"drag-item",attrs:{"data-block-id":t.id,task:t}},[[e._t("default",null,{data:t})]],2)}))]);var o}))])},u=[],c=n("612e"),s=n.n(c),l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"kb-card"},[n("div",{staticClass:"d-flex flex-wrap"},[e._t("default")],2)])},f=[],d={props:{task:{required:!0}}},v=d;n("a1fc");function p(e,t,n,r,o,i,a,u){var c,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},s._ssrRegister=c):o&&(c=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(e,t){return c.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}var m=p(v,l,f,!1,null,null,null);m.options.__file="kanban-card.vue";var g=m.exports,h={name:"kanban-board",props:{stages:{required:!1,default:function(){return{todo:"Todo","in-progress":"In progress",done:"Done"}}},blocks:{required:!1,default:function(){return[]}}},components:{Card:g},data:function(){return{taskSummary:{}}},mounted:function(){var e=this;s()(this.$refs.list).on("drag",function(e){e.classList.add("is-moving")}).on("drop",function(t,n){var r=0;for(r=0;r<n.children.length;r+=1)if(n.children[r].classList.contains("is-moving"))break;e.$emit("update-block",t.dataset.blockId,n.dataset.status,r)}).on("dragend",function(e){e.classList.remove("is-moving"),window.setTimeout(function(){e.classList.add("is-moved"),window.setTimeout(function(){e.classList.remove("is-moved")},600)},100)})},methods:{getBlocks:function(e){return this.localBlocks.filter(function(t){return t.status===e})}},computed:{localBlocks:function(){return this.blocks}}},b=h,y=(n("b851"),p(b,a,u,!1,null,null,null));y.options.__file="kanban-board.vue";var C=y.exports;i.a.component("KanbanBoard",C);var w=C;t["default"]=w}})}); | ||
//# sourceMappingURL=vue-kanban-board.umd.min.js.map |
{ | ||
"name": "@salamander.be/vue-kanban-board", | ||
"version": "0.1.2", | ||
"name": "@salamander.be/vue-kanban-board", | ||
"description": "A VueJs kanban board.", | ||
"author": "Frederiek <frederiek@salamander.be>", | ||
"license": "MIT", | ||
"version": "0.1.3", | ||
"main": "./dist/vue-kanban-board.common.js", | ||
"keywords": [ | ||
"vue", | ||
"kanban" | ||
], | ||
"scripts": { | ||
@@ -6,0 +13,0 @@ "serve": "vue-cli-service serve", |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
0
2
329442
2870