gant-board 1.0.9 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -876,20 +876,6 @@ defineIterator(String, 'String', function (iterated) {
876
876
  module.exports = {};
877
877
 
878
878
 
879
- /***/ }),
880
-
881
- /***/ "41c3":
882
- /***/ (function(module, exports, __webpack_require__) {
883
-
884
- // Imports
885
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
886
- exports = ___CSS_LOADER_API_IMPORT___(false);
887
- // Module
888
- exports.push([module.i, ".events-container[data-v-7cbeb09a]{background:#f7f7f7;height:200px;height:100%;position:relative}.event.ghost[data-v-7cbeb09a]{background-color:#b5a0d8}.event[data-v-7cbeb09a]{z-index:1;display:inline-block;background-color:#673ab7;color:#fff;position:absolute;border-radius:3px;padding:10px 3px;overflow:hidden;box-sizing:border-box;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}", ""]);
889
- // Exports
890
- module.exports = exports;
891
-
892
-
893
879
  /***/ }),
894
880
 
895
881
  /***/ "428f":
@@ -1654,19 +1640,17 @@ module.exports = {
1654
1640
 
1655
1641
  /***/ }),
1656
1642
 
1657
- /***/ "6194":
1643
+ /***/ "602d":
1658
1644
  /***/ (function(module, exports, __webpack_require__) {
1659
1645
 
1660
- // style-loader: Adds some css to the DOM by adding a <style> tag
1646
+ // Imports
1647
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
1648
+ exports = ___CSS_LOADER_API_IMPORT___(false);
1649
+ // Module
1650
+ exports.push([module.i, ".events-container[data-v-4072adea]{height:200px;height:100%;position:relative}.event[data-v-4072adea]{z-index:1;display:inline-block;background-color:#673ab7;color:#fff;position:absolute;border-radius:3px;padding:4px 4px;overflow:hidden;box-sizing:border-box;white-space:nowrap;display:flex;align-items:center;height:34px;cursor:pointer;border:.5px solid #fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.event .event_drag[data-v-4072adea]{min-width:10px}.event_title[data-v-4072adea]{flex-grow:1;text-align:start;min-width:0;font-size:12px}.event[data-v-4072adea]:hover{box-shadow:0 1px 4px rgba(0,0,0,.16)}.hide[data-v-4072adea]{right:-320px!important}.noselect[data-v-4072adea]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.by-scroll-container[data-v-4072adea]::-webkit-scrollbar-track{background-color:#fff}.by-scroll-container[data-v-4072adea]::-webkit-scrollbar{width:10px;height:10px;background-color:#f5f5f5}.by-scroll-container[data-v-4072adea]::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#999}", ""]);
1651
+ // Exports
1652
+ module.exports = exports;
1661
1653
 
1662
- // load the styles
1663
- var content = __webpack_require__("41c3");
1664
- if(content.__esModule) content = content.default;
1665
- if(typeof content === 'string') content = [[module.i, content, '']];
1666
- if(content.locals) module.exports = content.locals;
1667
- // add the styles to the DOM
1668
- var add = __webpack_require__("499e").default
1669
- var update = add("3ef5ea14", content, true, {"sourceMap":false,"shadowMode":false});
1670
1654
 
1671
1655
  /***/ }),
1672
1656
 
@@ -1913,6 +1897,22 @@ var TEMPLATE = String(String).split('String');
1913
1897
  exports.f = Object.getOwnPropertySymbols;
1914
1898
 
1915
1899
 
1900
+ /***/ }),
1901
+
1902
+ /***/ "742c":
1903
+ /***/ (function(module, exports, __webpack_require__) {
1904
+
1905
+ // style-loader: Adds some css to the DOM by adding a <style> tag
1906
+
1907
+ // load the styles
1908
+ var content = __webpack_require__("8a2b");
1909
+ if(content.__esModule) content = content.default;
1910
+ if(typeof content === 'string') content = [[module.i, content, '']];
1911
+ if(content.locals) module.exports = content.locals;
1912
+ // add the styles to the DOM
1913
+ var add = __webpack_require__("499e").default
1914
+ var update = add("b9fea82e", content, true, {"sourceMap":false,"shadowMode":false});
1915
+
1916
1916
  /***/ }),
1917
1917
 
1918
1918
  /***/ "746f":
@@ -2068,6 +2068,35 @@ module.exports = Object.create || function create(O, Properties) {
2068
2068
  };
2069
2069
 
2070
2070
 
2071
+ /***/ }),
2072
+
2073
+ /***/ "7db0":
2074
+ /***/ (function(module, exports, __webpack_require__) {
2075
+
2076
+ "use strict";
2077
+
2078
+ var $ = __webpack_require__("23e7");
2079
+ var $find = __webpack_require__("b727").find;
2080
+ var addToUnscopables = __webpack_require__("44d2");
2081
+
2082
+ var FIND = 'find';
2083
+ var SKIPS_HOLES = true;
2084
+
2085
+ // Shouldn't skip holes
2086
+ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2087
+
2088
+ // `Array.prototype.find` method
2089
+ // https://tc39.es/ecma262/#sec-array.prototype.find
2090
+ $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2091
+ find: function find(callbackfn /* , that = undefined */) {
2092
+ return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2093
+ }
2094
+ });
2095
+
2096
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2097
+ addToUnscopables(FIND);
2098
+
2099
+
2071
2100
  /***/ }),
2072
2101
 
2073
2102
  /***/ "7dd0":
@@ -2357,6 +2386,20 @@ if (!isCallable(store.inspectSource)) {
2357
2386
  module.exports = store.inspectSource;
2358
2387
 
2359
2388
 
2389
+ /***/ }),
2390
+
2391
+ /***/ "8a2b":
2392
+ /***/ (function(module, exports, __webpack_require__) {
2393
+
2394
+ // Imports
2395
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
2396
+ exports = ___CSS_LOADER_API_IMPORT___(false);
2397
+ // Module
2398
+ exports.push([module.i, ".events-container[data-v-460e347c]{background:#f7f7f7;height:200px;height:100%;position:relative}.event[data-v-460e347c]{z-index:1;display:inline-block;background-color:#673ab7;color:#fff;position:absolute;border-radius:3px;padding:4px 4px;overflow:hidden;box-sizing:border-box;white-space:nowrap;display:flex;align-items:center;gap:5px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.event .event_drag[data-v-460e347c]{min-width:10px}.event_title[data-v-460e347c]{flex-grow:1;text-align:start;min-width:0}.hide[data-v-460e347c]{right:-320px!important}.noselect[data-v-460e347c]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}", ""]);
2399
+ // Exports
2400
+ module.exports = exports;
2401
+
2402
+
2360
2403
  /***/ }),
2361
2404
 
2362
2405
  /***/ "90e3":
@@ -2679,6 +2722,84 @@ module.exports = function (argument) {
2679
2722
  };
2680
2723
 
2681
2724
 
2725
+ /***/ }),
2726
+
2727
+ /***/ "a434":
2728
+ /***/ (function(module, exports, __webpack_require__) {
2729
+
2730
+ "use strict";
2731
+
2732
+ var $ = __webpack_require__("23e7");
2733
+ var global = __webpack_require__("da84");
2734
+ var toAbsoluteIndex = __webpack_require__("23cb");
2735
+ var toIntegerOrInfinity = __webpack_require__("5926");
2736
+ var lengthOfArrayLike = __webpack_require__("07fa");
2737
+ var toObject = __webpack_require__("7b0b");
2738
+ var arraySpeciesCreate = __webpack_require__("65f0");
2739
+ var createProperty = __webpack_require__("8418");
2740
+ var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
2741
+
2742
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
2743
+
2744
+ var TypeError = global.TypeError;
2745
+ var max = Math.max;
2746
+ var min = Math.min;
2747
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2748
+ var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
2749
+
2750
+ // `Array.prototype.splice` method
2751
+ // https://tc39.es/ecma262/#sec-array.prototype.splice
2752
+ // with adding support of @@species
2753
+ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2754
+ splice: function splice(start, deleteCount /* , ...items */) {
2755
+ var O = toObject(this);
2756
+ var len = lengthOfArrayLike(O);
2757
+ var actualStart = toAbsoluteIndex(start, len);
2758
+ var argumentsLength = arguments.length;
2759
+ var insertCount, actualDeleteCount, A, k, from, to;
2760
+ if (argumentsLength === 0) {
2761
+ insertCount = actualDeleteCount = 0;
2762
+ } else if (argumentsLength === 1) {
2763
+ insertCount = 0;
2764
+ actualDeleteCount = len - actualStart;
2765
+ } else {
2766
+ insertCount = argumentsLength - 2;
2767
+ actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
2768
+ }
2769
+ if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
2770
+ throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
2771
+ }
2772
+ A = arraySpeciesCreate(O, actualDeleteCount);
2773
+ for (k = 0; k < actualDeleteCount; k++) {
2774
+ from = actualStart + k;
2775
+ if (from in O) createProperty(A, k, O[from]);
2776
+ }
2777
+ A.length = actualDeleteCount;
2778
+ if (insertCount < actualDeleteCount) {
2779
+ for (k = actualStart; k < len - actualDeleteCount; k++) {
2780
+ from = k + actualDeleteCount;
2781
+ to = k + insertCount;
2782
+ if (from in O) O[to] = O[from];
2783
+ else delete O[to];
2784
+ }
2785
+ for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
2786
+ } else if (insertCount > actualDeleteCount) {
2787
+ for (k = len - actualDeleteCount; k > actualStart; k--) {
2788
+ from = k + actualDeleteCount - 1;
2789
+ to = k + insertCount - 1;
2790
+ if (from in O) O[to] = O[from];
2791
+ else delete O[to];
2792
+ }
2793
+ }
2794
+ for (k = 0; k < insertCount; k++) {
2795
+ O[k + actualStart] = arguments[k + 2];
2796
+ }
2797
+ O.length = len - actualDeleteCount + insertCount;
2798
+ return A;
2799
+ }
2800
+ });
2801
+
2802
+
2682
2803
  /***/ }),
2683
2804
 
2684
2805
  /***/ "a4d3":
@@ -3357,6 +3478,17 @@ module.exports = {
3357
3478
  };
3358
3479
 
3359
3480
 
3481
+ /***/ }),
3482
+
3483
+ /***/ "be78":
3484
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3485
+
3486
+ "use strict";
3487
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_view_vue_vue_type_style_index_0_id_460e347c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("742c");
3488
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_view_vue_vue_type_style_index_0_id_460e347c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_grid_view_vue_vue_type_style_index_0_id_460e347c_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
3489
+ /* unused harmony reexport * */
3490
+
3491
+
3360
3492
  /***/ }),
3361
3493
 
3362
3494
  /***/ "c04e":
@@ -3531,12 +3663,12 @@ module.exports = function (key, value) {
3531
3663
 
3532
3664
  /***/ }),
3533
3665
 
3534
- /***/ "cecf":
3666
+ /***/ "cf63":
3535
3667
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3536
3668
 
3537
3669
  "use strict";
3538
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_gant_board_vue_vue_type_style_index_0_id_7cbeb09a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6194");
3539
- /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_gant_board_vue_vue_type_style_index_0_id_7cbeb09a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_gant_board_vue_vue_type_style_index_0_id_7cbeb09a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
3670
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_gant_board_vue_vue_type_style_index_0_id_4072adea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d93a");
3671
+ /* harmony import */ var _node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_gant_board_vue_vue_type_style_index_0_id_4072adea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_gant_board_vue_vue_type_style_index_0_id_4072adea_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
3540
3672
  /* unused harmony reexport * */
3541
3673
 
3542
3674
 
@@ -3704,6 +3836,22 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3704
3836
  });
3705
3837
 
3706
3838
 
3839
+ /***/ }),
3840
+
3841
+ /***/ "d93a":
3842
+ /***/ (function(module, exports, __webpack_require__) {
3843
+
3844
+ // style-loader: Adds some css to the DOM by adding a <style> tag
3845
+
3846
+ // load the styles
3847
+ var content = __webpack_require__("602d");
3848
+ if(content.__esModule) content = content.default;
3849
+ if(typeof content === 'string') content = [[module.i, content, '']];
3850
+ if(content.locals) module.exports = content.locals;
3851
+ // add the styles to the DOM
3852
+ var add = __webpack_require__("499e").default
3853
+ var update = add("17ac8905", content, true, {"sourceMap":false,"shadowMode":false});
3854
+
3707
3855
  /***/ }),
3708
3856
 
3709
3857
  /***/ "d998":
@@ -4191,44 +4339,25 @@ if (typeof window !== 'undefined') {
4191
4339
  // Indicate to webpack that this file can be concatenated
4192
4340
  /* harmony default export */ var setPublicPath = (null);
4193
4341
 
4194
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"57c38c0a-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gant-board.vue?vue&type=template&id=7cbeb09a&scoped=true&
4195
- var gant_boardvue_type_template_id_7cbeb09a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.options.from_start != null)?_c('div',{staticStyle:{"width":"100vw","overflow-x":"scroll","height":"100%"}},[_c('div',{ref:"container_wrapper",staticClass:"events-container",style:({ width: _vm.options.day_width * _vm.days_number + 'px' }),on:{"mousemove":function($event){return _vm.moveEvent($event)},"mouseup":function($event){return _vm.endDrag($event)}}},[_c('div',{staticStyle:{"width":"100%","display":"flex","flex-direction":"column","height":"100%"}},[_c('div',{staticStyle:{"display":"flex","width":"100%","height":"20px","background-color":"#fff"}},_vm._l((_vm.months),function(m){return _c('div',{key:m.index,staticStyle:{"display":"inline-block","box-sizing":"border-box","font-size":"10px","font-weight":"bold"},style:({
4196
- width: (_vm.options.day_width * m.length) + 'px',
4197
- })},[_vm._v(" "+_vm._s(m.name.toUpperCase())+" ")])}),0),_c('div',{staticStyle:{"display":"flex","width":"100%","height":"20px","background-color":"#fff"}},_vm._l((_vm.days_number),function(day){return _c('div',{key:day,staticStyle:{"display":"inline-block","box-sizing":"border-box","font-size":"13px","text-align":"center","font-weight":"normal"},style:({
4198
- 'border-left':
4199
- _vm.options.from_start.add(day, 'days').day() == 1
4200
- ? '1px solid #d1d1d1'
4201
- : 'none',
4202
- width: _vm.options.day_width + 'px',
4203
- left: day * _vm.options.day_width,
4204
- 'color': _vm.options.gray_days.includes(
4205
- _vm.options.from_start.add(day, 'days').day()
4206
- )
4207
- ? '#e1e1e1'
4208
- : 'inherit',
4209
- })},[_vm._v(" "+_vm._s(_vm.getDay(day).format("ddd")[0].toUpperCase())+" "+_vm._s(_vm.getDay(day).format("D"))+" ")])}),0),_c('div',{staticStyle:{"display":"flex","width":"100%","flex-grow":"1","heigth":"100%"}},_vm._l((_vm.days_number),function(day){return _c('div',{key:day,staticStyle:{"display":"inline-block","border-left":"1px solid #d1d1d1","box-sizing":"border-box"},style:({
4210
- width: _vm.options.day_width + 'px',
4211
- left: day * _vm.options.day_width,
4212
- 'background-color': _vm.options.gray_days.includes(
4213
- _vm.options.from_start.add(day, 'days').day()
4214
- )
4215
- ? 'rgb(238 238 238)'
4216
- : 'transparent',
4217
- })})}),0)]),_vm._l((_vm.render_elements),function(event){return _c('div',{key:event.id,staticClass:"event",class:{
4218
- ghost: _vm.drag_element != null && event.id == _vm.drag_element.id,
4219
- },staticStyle:{"padding-left":"10px"},style:({
4220
- width: event.width + 'px',
4221
- left: event.left + 'px',
4222
- top: event.top + 50 + 'px',
4223
- }),on:{"mousedown":function($event){return _vm.startDrag($event, event)}}},[_vm._v(" "+_vm._s(event.name)+" ")])}),(_vm.drag_element != null)?_c('div',{staticClass:"event",staticStyle:{"z-index":"99","transition":"0s all"},style:({
4224
- width: _vm.drag_element.width + 'px',
4225
- top: _vm.drag_element.top + 'px',
4226
- left: _vm.drag_element.left + 'px',
4227
- })},[_vm._v(" "+_vm._s(_vm.drag_element.name)+" ")]):_vm._e()],2)]):_vm._e()}
4342
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"72bfeb4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gant-board.vue?vue&type=template&id=4072adea&scoped=true&
4343
+ var gant_boardvue_type_template_id_4072adea_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.options.from_start != null)?_c('div',{staticStyle:{"width":"100%","height":"100%","position":"relative","overflow":"hidden"}},[(_vm.options.from_start != null)?_c('div',{ref:"scroll_container_wrapper",staticClass:"by-scroll-container",staticStyle:{"width":"100%","position":"relative","overflow-x":"scroll","overflow-y":"scroll","height":"100%"}},[_c('grid-view',{ref:"grid_view",staticStyle:{"top":"0px","position":"sticky"},style:({ width: _vm.options.day_width * _vm.days_number + 'px' }),attrs:{"put_top":true,"days_number":_vm.days_number,"options":_vm.options,"months":_vm.months}}),_c('div',{ref:"container_wrapper",staticClass:"events-container",staticStyle:{"position":"absolute","top":"0px"},style:({ width: _vm.options.day_width * _vm.days_number + 'px', 'height': _vm.container_height + 'px' }),on:{"mousemove":function($event){return _vm.moveEvent($event)},"mouseup":function($event){return _vm.endDrag($event)},"mousedown":function($event){$event.stopPropagation();return _vm.startDrag(null, $event, null)}}},[_c('grid-view',{ref:"grid_view",staticStyle:{"height":"100%","top":"0px","position":"absolute"},style:({ width: _vm.options.day_width * _vm.days_number + 'px' }),attrs:{"show_lines":true,"days_number":_vm.days_number,"options":_vm.options,"months":_vm.months}}),_c('div',{staticStyle:{"--tw-rotate":"-90deg","position":"absolute","top":"0px"},on:{"click":function($event){_vm.segment_view = !_vm.segment_view}}},[(_vm.segment_view)?_c('div',[_vm._v("Nascondi i segmenti")]):_vm._e(),(!_vm.segment_view)?_c('div',[_vm._v("Mostra i segmenti")]):_vm._e()]),_c('div',{class:{ hide: !_vm.segment_view },staticStyle:{"position":"sticky","z-index":"2","background-color":"#f1f1f1ad","height":"100%","width":"300px","left":"0px","box-shadow":"rgb(0 0 0 / 43%) 0px -2px 6px","border":"1px solid ligthgray"},style:({ 'height': _vm.container_height + 'px' })},_vm._l((_vm.render_segments),function(segment){return _c('div',{key:segment.key.team_id + segment.key.team_type,staticStyle:{"width":"100%","position":"absolute","display":"flex","align-items":"center"},style:({ 'background-color': '#dddddd', 'top': segment.top + 'px', 'height': segment.height + 'px' })},[_c('div',{staticStyle:{"padding-left":"10px","font-size":"20px","display":"flex","align-items":"center","gap":"5px","white-space":"nowrap"}},[_c('img',{staticStyle:{"width":"28px","height":"28px","border-radius":"50%","border":"1.5px solid white","min-width":"0px"},style:({
4344
+ 'background-image': 'url(' +segment.key.image + ')',
4345
+ })}),_vm._v(" "+_vm._s(segment.key.name)+" ")])])}),0),_vm._l((_vm.render_segments),function(segment){return _c('div',{key:segment.key.team_id + segment.key.team_type,staticStyle:{"width":"100%","position":"absolute"},style:({ 'background-color': segment.key.color, 'top': segment.top + 'px', 'height': segment.height + 'px' })},_vm._l((segment.values),function(event){return _c('div',{key:event.id,staticClass:"event",style:({
4346
+ width: event.width + 'px',
4347
+ left: event.left + 'px',
4348
+ top: (event.top) + 'px',
4349
+ 'background-color': event.color,
4350
+ opacity: event.oncreation || event.ondrag ? '0.2' : 'inherit',
4351
+ }),on:{"mousedown":function($event){$event.stopPropagation();return _vm.startDrag(segment,$event, event)}}},[_c('div',{staticClass:"event_title",on:{"mouseenter":function($event){event.hover = true},"mouseleave":function($event){event.hover = false}}},[_c('div',{staticStyle:{"font-weigth":"bold","font-size":"10px"}},[_vm._v(_vm._s(event.contact))]),_vm._v(" "+_vm._s(event.name)+" - "+_vm._s(event.start.format("DD/MM"))+" - "+_vm._s(event.end.format("DD/MM"))+" ")]),(event.hover)?_c('div',{staticClass:"event_drag",on:{"mouseenter":function($event){event.hover = true},"mouseleave":function($event){event.hover = false},"mousedown":function($event){$event.stopPropagation();return _vm.startResize($event, event,segment)}}},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","height":"15","viewBox":"0 96 960 960","width":"15","fill":"#fff"}},[_c('path',{attrs:{"d":"M340.442 919q-32.876 0-57.659-24.292t-24.783-57Q258 803 282.624 779.5t57.5-23.5Q373 756 396.5 778.925t23.5 58.217q0 33.292-23.341 57.575Q373.319 919 340.442 919Zm281.355 0q-32.877 0-57.337-24.292t-24.46-57Q540 803 564.455 779.5t57.094-23.5q33.051 0 56.751 22.925Q702 801.85 702 837.142q0 33.292-23.664 57.575Q654.673 919 621.797 919ZM340.442 657q-32.876 0-57.659-24.455T258 574.951Q258 541 282.624 518t57.5-23Q373 495 396.5 518.089q23.5 23.088 23.5 56.539 0 33.452-23.341 57.912Q373.319 657 340.442 657Zm281.355 0q-32.877 0-57.337-24.455T540 574.951Q540 541 564.455 518t57.094-23q33.051 0 56.751 23.089 23.7 23.088 23.7 56.539 0 33.452-23.664 57.912Q654.673 657 621.797 657ZM340.442 396q-32.876 0-57.659-24.455T258 313.951q0-33.551 24.624-57.251 24.624-23.7 57.5-23.7Q373 233 396.5 256.664q23.5 23.663 23.5 57.039 0 33.377-23.341 57.837Q373.319 396 340.442 396Zm281.355 0q-32.877 0-57.337-24.455T540 313.951q0-33.551 24.455-57.251Q588.91 233 621.549 233q33.051 0 56.751 23.664 23.7 23.663 23.7 57.039 0 33.377-23.664 57.837Q654.673 396 621.797 396Z"}})])]):_vm._e()])}),0)}),(_vm.drag_element != null)?_c('div',{staticClass:"event",staticStyle:{"z-index":"99","transition":"0s all","display":"flex"},style:({
4352
+ width: _vm.drag_element.width + 'px',
4353
+ top: _vm.drag_element.top + 'px',
4354
+ left: _vm.drag_element.left + 'px',
4355
+ 'background-color': _vm.drag_element.color,
4356
+ })},[_c('div',{staticClass:"event_title"},[_c('div',{staticStyle:{"font-weigth":"bold","font-size":"10px"}},[_vm._v(_vm._s(_vm.drag_element.contact))]),_vm._v(" "+_vm._s(_vm.drag_element.name)+" ")])]):_vm._e()],2)],1):_vm._e()]):_vm._e()}
4228
4357
  var staticRenderFns = []
4229
4358
 
4230
4359
 
4231
- // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=7cbeb09a&scoped=true&
4360
+ // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=4072adea&scoped=true&
4232
4361
 
4233
4362
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
4234
4363
  var es_symbol = __webpack_require__("a4d3");
@@ -4387,15 +4516,21 @@ function _nonIterableSpread() {
4387
4516
  function _toConsumableArray(arr) {
4388
4517
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
4389
4518
  }
4519
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
4520
+ var es_array_map = __webpack_require__("d81d");
4521
+
4390
4522
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
4391
4523
  var es_array_sort = __webpack_require__("4e82");
4392
4524
 
4393
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
4394
- var es_array_map = __webpack_require__("d81d");
4525
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
4526
+ var es_array_find = __webpack_require__("7db0");
4395
4527
 
4396
4528
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
4397
4529
  var es_array_filter = __webpack_require__("4de4");
4398
4530
 
4531
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
4532
+ var es_array_splice = __webpack_require__("a434");
4533
+
4399
4534
  // EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
4400
4535
  var dayjs_min = __webpack_require__("5a0c");
4401
4536
  var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
@@ -4403,25 +4538,43 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
4403
4538
  // EXTERNAL MODULE: ./node_modules/dayjs/locale/it.js
4404
4539
  var locale_it = __webpack_require__("e4cc");
4405
4540
 
4406
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gant-board.vue?vue&type=script&lang=js&
4407
-
4408
-
4409
-
4410
-
4541
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"72bfeb4c-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid-view.vue?vue&type=template&id=460e347c&scoped=true&
4542
+ var grid_viewvue_type_template_id_460e347c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"width":"100%","display":"flex","flex-direction":"column"},style:({'z-index' : _vm.put_top ? '9999' : '0'})},[_c('div',{staticStyle:{"display":"flex","width":"100%","height":"20px","z-index":"99999","background-color":"#fff"}},_vm._l((_vm.months),function(m){return _c('div',{key:m.index,staticStyle:{"display":"inline-block","box-sizing":"border-box","font-size":"12px","font-weight":"bold","color":"#FF5722"},style:({
4543
+ width: _vm.options.day_width * m.length + 'px',
4544
+ })},[_vm._v(" "+_vm._s(m.name.toUpperCase())+" "+_vm._s(m.length)+" ")])}),0),_c('div',{staticStyle:{"display":"flex","width":"100%","z-index":"99999","height":"20px","background-color":"#fff"}},_vm._l((_vm.days_number),function(d,day){return _c('div',{key:day,staticStyle:{"display":"inline-block","box-sizing":"border-box","font-size":"13px","text-align":"center","font-weight":"normal","margin-bottom":"2px"},style:({
4545
+
4546
+ 'background-color' : _vm.getDay_FF(day) == _vm.ttoday() ? '#ff9573' : '',
4547
+ 'border-radius':
4548
+ _vm.options.from_start.add(day, 'days').day() == 1
4549
+ ? 'none'
4550
+ : '3px',
4551
+ 'border-left':
4552
+ _vm.options.from_start.add(day, 'days').day() == 1
4553
+ ? '1px solid #d1d1d1'
4554
+ : 'none',
4555
+ width: _vm.options.day_width + 'px',
4556
+ left: day * _vm.options.day_width,
4557
+ color: _vm.getDay_FF(day) == _vm.ttoday() ? '#fff!important' : (_vm.options.gray_days.includes(
4558
+ _vm.options.from_start.add(day, 'days').day()
4559
+ )
4560
+ ? '#e1e1e1'
4561
+ : 'inherit'),
4562
+ })},[_vm._v(" "+_vm._s(_vm.getDay(day).format("ddd")[0].toUpperCase())+" "+_vm._s(_vm.getDay(day).format("D"))+" ")])}),0),(_vm.show_lines)?_c('div',{staticStyle:{"display":"flex","border-top":"1px solid #a2a2a2","width":"100%","flex-grow":"1","heigth":"100%"}},_vm._l((_vm.days_number),function(day){return _c('div',{key:day,ref:_vm.getDay_FF(day) == _vm.ttoday() ? 'today' : '',refInFor:true,staticStyle:{"display":"inline-block","border-left":"1px solid #d1d1d1","box-sizing":"border-box"},style:({
4563
+
4564
+ width: _vm.options.day_width + 'px',
4565
+ left: day * _vm.options.day_width,
4566
+ 'background-color': _vm.getDay_FF(day) == _vm.ttoday() ? '#ffd8cc' : (_vm.options.gray_days.includes(
4567
+ _vm.options.from_start.add(day, 'days').day()
4568
+ )
4569
+ ? 'rgb(238 238 238)'
4570
+ : 'transparent'),
4571
+ })})}),0):_vm._e()])}
4572
+ var grid_viewvue_type_template_id_460e347c_scoped_true_staticRenderFns = []
4411
4573
 
4412
4574
 
4575
+ // CONCATENATED MODULE: ./src/components/grid-view.vue?vue&type=template&id=460e347c&scoped=true&
4413
4576
 
4414
- //
4415
- //
4416
- //
4417
- //
4418
- //
4419
- //
4420
- //
4421
- //
4422
- //
4423
- //
4424
- //
4577
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/grid-view.vue?vue&type=script&lang=js&
4425
4578
  //
4426
4579
  //
4427
4580
  //
@@ -4535,122 +4688,499 @@ var locale_it = __webpack_require__("e4cc");
4535
4688
  //
4536
4689
 
4537
4690
 
4538
- /* harmony default export */ var gant_boardvue_type_script_lang_js_ = ({
4691
+ /* harmony default export */ var grid_viewvue_type_script_lang_js_ = ({
4539
4692
  name: "gant-board",
4540
- props: ["elements"],
4541
- data: function data() {
4542
- return {
4543
- end_calc: true,
4544
- render_elements: [],
4545
- drag_element: null,
4546
- options: {
4547
- gray_days: [0, 6],
4548
- day_width: 40,
4549
- from_start: null,
4550
- to_start: null
4551
- }
4552
- };
4553
- },
4554
- computed: {
4555
- days_number: function days_number() {
4556
- return this.options.to_start.diff(this.options.from_start, "days");
4557
- },
4558
- months: function months() {
4559
- var months = [];
4560
- var start = this.options.from_start;
4561
- var end = false;
4562
- var index = 0;
4563
-
4564
- while (!end) {
4565
- var length = start.daysInMonth();
4566
-
4567
- if (months.length == 0) {
4568
- length = start.startOf("month").add(1, "months").diff(start, "days");
4569
- }
4570
-
4571
- months.push({
4572
- index: index,
4573
- name: start.format("MMMM"),
4574
- length: length
4575
- });
4576
- start = start.add(1, "months");
4577
- index++;
4578
-
4579
- if (start > this.options.to_start) {
4580
- end = true;
4581
- }
4582
- }
4583
-
4584
- return months;
4585
- }
4693
+ props: ["months", "days_number", "options", "show_lines", "put_top"],
4694
+ watch: {
4695
+ 'options': function options() {}
4586
4696
  },
4587
4697
  methods: {
4588
4698
  getDay: function getDay(index) {
4589
4699
  return this.options.from_start.add(index, "days");
4590
4700
  },
4591
- refresh_render: function refresh_render() {
4592
- var ordered = _toConsumableArray(this.render_elements).sort(function (a, b) {
4593
- return a.weigth - b.weigth;
4594
- });
4701
+ getDay_FF: function getDay_FF(index) {
4702
+ return this.options.from_start.add(index, "days").format("YYYY-MM-DD");
4703
+ },
4704
+ ttoday: function ttoday() {
4705
+ return dayjs_min_default()().format("YYYY-MM-DD");
4706
+ },
4707
+ scrollToDay: function scrollToDay(container) {
4708
+ container.scrollTo(this.$refs.today[0].getBoundingClientRect().left - 200, 0);
4709
+ }
4710
+ }
4711
+ });
4712
+ // CONCATENATED MODULE: ./src/components/grid-view.vue?vue&type=script&lang=js&
4713
+ /* harmony default export */ var components_grid_viewvue_type_script_lang_js_ = (grid_viewvue_type_script_lang_js_);
4714
+ // EXTERNAL MODULE: ./src/components/grid-view.vue?vue&type=style&index=0&id=460e347c&scoped=true&lang=css&
4715
+ var grid_viewvue_type_style_index_0_id_460e347c_scoped_true_lang_css_ = __webpack_require__("be78");
4595
4716
 
4596
- var _iterator = _createForOfIteratorHelper(ordered),
4597
- _step;
4717
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4718
+ /* globals __VUE_SSR_CONTEXT__ */
4598
4719
 
4599
- try {
4600
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
4601
- var event = _step.value;
4602
- this.refresh_event(event);
4603
- }
4604
- } catch (err) {
4605
- _iterator.e(err);
4606
- } finally {
4607
- _iterator.f();
4608
- }
4609
- },
4610
- refresh_event: function refresh_event(event) {
4611
- var near_element = _toConsumableArray(this.render_elements).sort(function (a, b) {
4612
- return b.weigth - a.weigth;
4613
- }).filter(function (x) {
4614
- return x.weigth <= event.weigth && x.start < event.end && x.id != event.id && event.start < x.end;
4615
- }).map(function (x) {
4616
- return x.row;
4617
- });
4720
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
4721
+ // This module is a runtime utility for cleaner component module output and will
4722
+ // be included in the final webpack user bundle.
4618
4723
 
4619
- var row = 0;
4724
+ function normalizeComponent (
4725
+ scriptExports,
4726
+ render,
4727
+ staticRenderFns,
4728
+ functionalTemplate,
4729
+ injectStyles,
4730
+ scopeId,
4731
+ moduleIdentifier, /* server only */
4732
+ shadowMode /* vue-cli only */
4733
+ ) {
4734
+ // Vue.extend constructor export interop
4735
+ var options = typeof scriptExports === 'function'
4736
+ ? scriptExports.options
4737
+ : scriptExports
4620
4738
 
4621
- if (near_element.length > 0) {
4622
- row = Math.max.apply(Math, _toConsumableArray(near_element)) + 1;
4623
- }
4739
+ // render functions
4740
+ if (render) {
4741
+ options.render = render
4742
+ options.staticRenderFns = staticRenderFns
4743
+ options._compiled = true
4744
+ }
4624
4745
 
4625
- event.row = row;
4626
- event.top = 40 * row;
4627
- event.left = event.start.diff(this.options.from_start, "days") * this.options.day_width;
4628
- event.width = event.end.diff(event.start, "days") * this.options.day_width;
4629
- },
4630
- render: function render() {
4631
- this.render_elements = [];
4632
- var ordered = this.elements.sort(function (a, b) {
4633
- return a.weigth - b.weigth;
4634
- });
4746
+ // functional template
4747
+ if (functionalTemplate) {
4748
+ options.functional = true
4749
+ }
4635
4750
 
4636
- var _iterator2 = _createForOfIteratorHelper(ordered),
4637
- _step2;
4751
+ // scopedId
4752
+ if (scopeId) {
4753
+ options._scopeId = 'data-v-' + scopeId
4754
+ }
4755
+
4756
+ var hook
4757
+ if (moduleIdentifier) { // server build
4758
+ hook = function (context) {
4759
+ // 2.3 injection
4760
+ context =
4761
+ context || // cached call
4762
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
4763
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
4764
+ // 2.2 with runInNewContext: true
4765
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4766
+ context = __VUE_SSR_CONTEXT__
4767
+ }
4768
+ // inject component styles
4769
+ if (injectStyles) {
4770
+ injectStyles.call(this, context)
4771
+ }
4772
+ // register component module identifier for async chunk inferrence
4773
+ if (context && context._registeredComponents) {
4774
+ context._registeredComponents.add(moduleIdentifier)
4775
+ }
4776
+ }
4777
+ // used by ssr in case component is cached and beforeCreate
4778
+ // never gets called
4779
+ options._ssrRegister = hook
4780
+ } else if (injectStyles) {
4781
+ hook = shadowMode
4782
+ ? function () {
4783
+ injectStyles.call(
4784
+ this,
4785
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
4786
+ )
4787
+ }
4788
+ : injectStyles
4789
+ }
4790
+
4791
+ if (hook) {
4792
+ if (options.functional) {
4793
+ // for template-only hot-reload because in that case the render fn doesn't
4794
+ // go through the normalizer
4795
+ options._injectStyles = hook
4796
+ // register for functional component in vue file
4797
+ var originalRender = options.render
4798
+ options.render = function renderWithStyleInjection (h, context) {
4799
+ hook.call(context)
4800
+ return originalRender(h, context)
4801
+ }
4802
+ } else {
4803
+ // inject component registration as beforeCreate hook
4804
+ var existing = options.beforeCreate
4805
+ options.beforeCreate = existing
4806
+ ? [].concat(existing, hook)
4807
+ : [hook]
4808
+ }
4809
+ }
4810
+
4811
+ return {
4812
+ exports: scriptExports,
4813
+ options: options
4814
+ }
4815
+ }
4816
+
4817
+ // CONCATENATED MODULE: ./src/components/grid-view.vue
4818
+
4819
+
4820
+
4821
+
4822
+
4823
+
4824
+ /* normalize component */
4825
+
4826
+ var component = normalizeComponent(
4827
+ components_grid_viewvue_type_script_lang_js_,
4828
+ grid_viewvue_type_template_id_460e347c_scoped_true_render,
4829
+ grid_viewvue_type_template_id_460e347c_scoped_true_staticRenderFns,
4830
+ false,
4831
+ null,
4832
+ "460e347c",
4833
+ null
4834
+
4835
+ )
4836
+
4837
+ /* harmony default export */ var grid_view = (component.exports);
4838
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/gant-board.vue?vue&type=script&lang=js&
4839
+
4840
+
4841
+
4842
+
4843
+
4844
+
4845
+
4846
+
4847
+
4848
+
4849
+
4850
+ //
4851
+ //
4852
+ //
4853
+ //
4854
+ //
4855
+ //
4856
+ //
4857
+ //
4858
+ //
4859
+ //
4860
+ //
4861
+ //
4862
+ //
4863
+ //
4864
+ //
4865
+ //
4866
+ //
4867
+ //
4868
+ //
4869
+ //
4870
+ //
4871
+ //
4872
+ //
4873
+ //
4874
+ //
4875
+ //
4876
+ //
4877
+ //
4878
+ //
4879
+ //
4880
+ //
4881
+ //
4882
+ //
4883
+ //
4884
+ //
4885
+ //
4886
+ //
4887
+ //
4888
+ //
4889
+ //
4890
+ //
4891
+ //
4892
+ //
4893
+ //
4894
+ //
4895
+ //
4896
+ //
4897
+ //
4898
+ //
4899
+ //
4900
+ //
4901
+ //
4902
+ //
4903
+ //
4904
+ //
4905
+ //
4906
+ //
4907
+ //
4908
+ //
4909
+ //
4910
+ //
4911
+ //
4912
+ //
4913
+ //
4914
+ //
4915
+ //
4916
+ //
4917
+ //
4918
+ //
4919
+ //
4920
+ //
4921
+ //
4922
+ //
4923
+ //
4924
+ //
4925
+ //
4926
+ //
4927
+ //
4928
+ //
4929
+ //
4930
+ //
4931
+ //
4932
+ //
4933
+ //
4934
+ //
4935
+ //
4936
+ //
4937
+ //
4938
+ //
4939
+ //
4940
+ //
4941
+ //
4942
+ //
4943
+ //
4944
+ //
4945
+ //
4946
+ //
4947
+ //
4948
+ //
4949
+ //
4950
+ //
4951
+ //
4952
+ //
4953
+ //
4954
+ //
4955
+ //
4956
+ //
4957
+ //
4958
+ //
4959
+ //
4960
+ //
4961
+ //
4962
+ //
4963
+ //
4964
+ //
4965
+ //
4966
+ //
4967
+ //
4968
+ //
4969
+ //
4970
+ //
4971
+
4972
+
4973
+
4974
+ /* harmony default export */ var gant_boardvue_type_script_lang_js_ = ({
4975
+ components: {
4976
+ gridView: grid_view
4977
+ },
4978
+ name: "gant-board",
4979
+ props: ["elements", "team_members"],
4980
+ data: function data() {
4981
+ return {
4982
+ segment_view: true,
4983
+ group_by: "u",
4984
+ render_segments: [],
4985
+ end_calc: true,
4986
+ drag_element: null,
4987
+ range: {
4988
+ start: new Date(2020, 0, 6),
4989
+ end: new Date(2020, 0, 23)
4990
+ },
4991
+ options: {
4992
+ gray_days: [0, 6],
4993
+ day_width: 45,
4994
+ from_start: null,
4995
+ to_start: null
4996
+ },
4997
+ resize_event: null,
4998
+ color: ["#f44336", "#e81e63", "#9c27b0", "#673ab7", "#3f51b5", "#2196f3", "#03a9f4", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b"]
4999
+ };
5000
+ },
5001
+ computed: {
5002
+ container_height: function container_height() {
5003
+ if (this.render_segments.length == 0) {
5004
+ return 800;
5005
+ }
5006
+
5007
+ return Math.max.apply(Math, _toConsumableArray(this.render_segments.map(function (x) {
5008
+ return x.top + x.height + 50;
5009
+ })));
5010
+ },
5011
+ days_number: function days_number() {
5012
+ return this.options.to_start.diff(this.options.from_start, "days") + 1;
5013
+ },
5014
+ months: function months() {
5015
+ var months = [];
5016
+ var start = this.options.from_start;
5017
+ var end = false;
5018
+ var index = 0;
5019
+
5020
+ while (!end) {
5021
+ var length = start.daysInMonth();
5022
+
5023
+ if (months.length == 0) {
5024
+ console.log(start.startOf("month").add(1, "months").diff(start, "days"));
5025
+ length = start.startOf("month").add(1, "months").diff(start, "days");
5026
+ }
5027
+
5028
+ months.push({
5029
+ index: index,
5030
+ name: start.format("MMMM"),
5031
+ length: length
5032
+ });
5033
+ start = start.add(1, "months");
5034
+ index++;
5035
+
5036
+ if (start > this.options.to_start) {
5037
+ end = true;
5038
+ }
5039
+ }
5040
+
5041
+ return months;
5042
+ }
5043
+ },
5044
+ methods: {
5045
+ getDay: function getDay(index) {
5046
+ return this.options.from_start.add(index, "days");
5047
+ },
5048
+ refresh_render: function refresh_render(segment) {
5049
+ var _this = this;
5050
+
5051
+ var ordered = _toConsumableArray(segment.values).sort(function (a, b) {
5052
+ return a.weigth - b.weigth;
5053
+ });
5054
+
5055
+ var _iterator = _createForOfIteratorHelper(ordered),
5056
+ _step;
4638
5057
 
4639
5058
  try {
4640
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
4641
- var event = _step2.value;
4642
- this.build_event(event);
5059
+ var _loop = function _loop() {
5060
+ var event = _step.value;
5061
+ var e = segment.values.find(function (x) {
5062
+ return x.id == event.id;
5063
+ });
5064
+
5065
+ _this.refresh_event(segment, e);
5066
+ };
5067
+
5068
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
5069
+ _loop();
4643
5070
  }
4644
5071
  } catch (err) {
4645
- _iterator2.e(err);
5072
+ _iterator.e(err);
4646
5073
  } finally {
4647
- _iterator2.f();
5074
+ _iterator.f();
5075
+ }
5076
+ },
5077
+ refresh_event: function refresh_event(segment, event) {
5078
+ var near_element = _toConsumableArray(segment.values).sort(function (a, b) {
5079
+ return b.weigth - a.weigth;
5080
+ }).filter(function (x) {
5081
+ return x.weigth <= event.weigth && x.start < event.end && event.start < x.end && x.id != event.id;
5082
+ }).map(function (x) {
5083
+ return x.row;
5084
+ });
5085
+
5086
+ var row = 0;
5087
+
5088
+ if (near_element.length > 0) {
5089
+ row = Math.max.apply(Math, _toConsumableArray(near_element)) + 1;
5090
+ }
5091
+
5092
+ event.row = row;
5093
+ event.top = 35 * row + 5;
5094
+ event.left = event.start.diff(this.options.from_start, "days") * this.options.day_width + 2;
5095
+ event.width = event.end.diff(event.start, "days") * this.options.day_width - 3;
5096
+ },
5097
+ render: function render() {
5098
+ var _this2 = this;
5099
+
5100
+ var ordered = this.elements.filter(function (x) {
5101
+ return x.start != null && x.end != null;
5102
+ }).sort(function (a, b) {
5103
+ return a.weigth - b.weigth;
5104
+ });
5105
+
5106
+ if (this.group_by != null && this.group_by == "u") {
5107
+ this.render_segments = [];
5108
+
5109
+ var _iterator2 = _createForOfIteratorHelper(ordered),
5110
+ _step2;
5111
+
5112
+ try {
5113
+ var _loop2 = function _loop2() {
5114
+ t = _step2.value;
5115
+
5116
+ var groupKey = _this2.team_members.find(function (x) {
5117
+ return x.team_id == t.team_id && x.team_type == t.team_type;
5118
+ });
5119
+
5120
+ group = _this2.render_segments.find(function (x) {
5121
+ return x.key == groupKey;
5122
+ });
5123
+
5124
+ if (group == null) {
5125
+ group = {
5126
+ key: groupKey,
5127
+ index: _this2.render_segments.length,
5128
+ top: 0,
5129
+ height: 0,
5130
+ values: [],
5131
+ raw: []
5132
+ };
5133
+
5134
+ _this2.render_segments.push(group);
5135
+ }
5136
+
5137
+ group.raw.push(t);
5138
+ };
5139
+
5140
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
5141
+ var t;
5142
+ var group;
5143
+
5144
+ _loop2();
5145
+ }
5146
+ } catch (err) {
5147
+ _iterator2.e(err);
5148
+ } finally {
5149
+ _iterator2.f();
5150
+ }
5151
+
5152
+ var _iterator3 = _createForOfIteratorHelper(this.render_segments),
5153
+ _step3;
5154
+
5155
+ try {
5156
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
5157
+ var seg = _step3.value;
5158
+
5159
+ var _iterator4 = _createForOfIteratorHelper(seg.raw),
5160
+ _step4;
5161
+
5162
+ try {
5163
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
5164
+ var el = _step4.value;
5165
+ seg.values.push(this.build_event(seg, el));
5166
+ }
5167
+ } catch (err) {
5168
+ _iterator4.e(err);
5169
+ } finally {
5170
+ _iterator4.f();
5171
+ }
5172
+ }
5173
+ } catch (err) {
5174
+ _iterator3.e(err);
5175
+ } finally {
5176
+ _iterator3.f();
5177
+ }
4648
5178
  }
4649
5179
  },
4650
- build_event: function build_event(event) {
5180
+ build_event: function build_event(group, event) {
4651
5181
  var event_start = dayjs_min_default()(event.start, "YYYY-MM-DD", true);
4652
5182
  var event_end = dayjs_min_default()(event.end, "YYYY-MM-DD", true);
4653
- var near_element = this.render_elements.sort(function (a, b) {
5183
+ var near_element = group.values.sort(function (a, b) {
4654
5184
  return b.weigth - a.weigth;
4655
5185
  }).filter(function (x) {
4656
5186
  return x.start < event_end && event_start < x.end;
@@ -4663,58 +5193,178 @@ var locale_it = __webpack_require__("e4cc");
4663
5193
  row = Math.max.apply(Math, _toConsumableArray(near_element)) + 1;
4664
5194
  }
4665
5195
 
4666
- this.render_elements.push({
5196
+ var prec_group = null;
5197
+ group.top = 50;
5198
+
5199
+ if (group.index > 0) {
5200
+ prec_group = this.render_segments[group.index - 1];
5201
+ }
5202
+
5203
+ if (prec_group != null) {
5204
+ group.top = prec_group.height + prec_group.top + 10;
5205
+ }
5206
+
5207
+ var now_h = (row + 1) * 35 + 10;
5208
+ group.height = now_h > group.height ? now_h : group.height;
5209
+ var ev = {
4667
5210
  id: event.id,
4668
5211
  name: event.name,
5212
+ team_type: event.team_type,
5213
+ team_id: event.team_id,
5214
+ contact: event.contact,
4669
5215
  start: event_start,
4670
5216
  end: event_end,
4671
5217
  weigth: event.weigth,
4672
5218
  row: row,
4673
- top: 40 * row,
4674
- left: event_start.diff(this.options.from_start, "days") * this.options.day_width,
4675
- width: event_end.diff(event_start, "days") * this.options.day_width
4676
- });
5219
+ top: 35 * row + 5,
5220
+ color: event.color,
5221
+ left: event_start.diff(this.options.from_start, "days") * this.options.day_width + 2,
5222
+ width: event_end.diff(event_start, "days") * this.options.day_width - 3,
5223
+ hover: false,
5224
+ oncreation: event.oncreation,
5225
+ ondrag: false,
5226
+ image: event.image
5227
+ };
5228
+ return ev;
4677
5229
  },
4678
- startDrag: function startDrag(mouseevent, event) {
5230
+ startResize: function startResize(mouseevent, event, segment) {
5231
+ this.resize_event = event;
5232
+ this.resize_event.segment = segment;
5233
+ },
5234
+ startDrag: function startDrag(segment, mouseevent, event) {
5235
+ var bounds = this.$refs.container_wrapper.getBoundingClientRect();
5236
+
5237
+ if (event == null) {
5238
+ //creazione nuovo elemento da zero
5239
+ var day = Math.round((mouseevent.clientX - bounds.left) / this.options.day_width);
5240
+ var id = this.elements.length + 1;
5241
+ var cur_y = Math.floor(mouseevent.clientY - bounds.top - 10);
5242
+ var current_segment = this.render_segments.find(function (x) {
5243
+ return x.top < cur_y && x.top + x.height > cur_y;
5244
+ });
5245
+ var n_event = {
5246
+ id: id,
5247
+ team_type: current_segment.key.team_type,
5248
+ team_id: current_segment.key.team_id,
5249
+ name: "Incarico " + id,
5250
+ contact: "Contatto " + this.getRandomInt(0, 12),
5251
+ start: this.options.from_start.add(day, "days").format("YYYY-MM-DD"),
5252
+ end: this.options.from_start.add(day + 2, "days").format("YYYY-MM-DD"),
5253
+ weigth: id,
5254
+ oncreation: true,
5255
+ color: this.color[this.getRandomInt(0, 12)],
5256
+ image: "https://i.pravatar.cc/50?id=" + this.getRandomInt(1, 69)
5257
+ };
5258
+ this.elements.push(n_event);
5259
+ var new_event = this.build_event(current_segment, n_event);
5260
+ current_segment.values.push(new_event);
5261
+ this.resize_event = new_event;
5262
+ this.resize_event.segment = current_segment;
5263
+ this.resize_event.end = this.options.from_start.add(day + 20, "days");
5264
+ return;
5265
+ }
5266
+
4679
5267
  var event_start = dayjs_min_default()(event.start, "YYYY-MM-DD", true);
4680
5268
  var event_end = dayjs_min_default()(event.end, "YYYY-MM-DD", true);
4681
- var bounds = this.$refs.container_wrapper.getBoundingClientRect();
5269
+ event.ondrag = true;
4682
5270
  this.drag_element = {
4683
5271
  id: event.id,
5272
+ event: event,
5273
+ segment: segment,
4684
5274
  name: event.name,
5275
+ contact: event.contact,
4685
5276
  start: event_start,
4686
5277
  end: event_end,
4687
5278
  top: mouseevent.clientY - mouseevent.offsetY - bounds.top,
4688
5279
  offset_position_x: mouseevent.offsetX,
4689
5280
  offset_position_y: mouseevent.offsetY,
4690
5281
  left: event_start.diff(this.options.from_start, "days") * this.options.day_width,
4691
- width: event_end.diff(event_start, "days") * this.options.day_width
5282
+ width: event_end.diff(event_start, "days") * this.options.day_width,
5283
+ color: event.color,
5284
+ image: event.image
4692
5285
  };
4693
5286
  },
4694
5287
  moveEvent: function moveEvent(mouseevent) {
4695
- var _this = this;
5288
+ var _this$drag_element$of,
5289
+ _this$drag_element,
5290
+ _this3 = this;
5291
+
5292
+ var bounds = this.$refs.container_wrapper.getBoundingClientRect();
5293
+ var day = Math.round((mouseevent.clientX - bounds.left - ((_this$drag_element$of = (_this$drag_element = this.drag_element) === null || _this$drag_element === void 0 ? void 0 : _this$drag_element.offset_position_x) !== null && _this$drag_element$of !== void 0 ? _this$drag_element$of : 0)) / this.options.day_width);
5294
+
5295
+ if (this.resize_event != null) {
5296
+ day = Math.round((mouseevent.clientX - bounds.left) / this.options.day_width);
5297
+ this.resize_event.end = this.options.from_start.add(day, "days");
5298
+ this.refresh_render(this.resize_event.segment);
5299
+ return;
5300
+ }
4696
5301
 
4697
5302
  if (this.drag_element != null) {
4698
- var bounds = this.$refs.container_wrapper.getBoundingClientRect();
4699
5303
  this.drag_element.left = mouseevent.clientX - bounds.left - this.drag_element.offset_position_x;
4700
5304
  this.drag_element.top = mouseevent.clientY - this.drag_element.offset_position_y - bounds.top;
4701
- var day = Math.round((mouseevent.clientX - bounds.left - this.drag_element.offset_position_x) / this.options.day_width);
4702
- var original_event = this.render_elements.filter(function (x) {
4703
- return x.id == _this.drag_element.id;
4704
- })[0];
5305
+
5306
+ if (this.drag_element.segment == null) {
5307
+ //spostamento su nuovo segmento
5308
+ var drag_to_cur_y = Math.floor(mouseevent.clientY - bounds.top - 10);
5309
+ var drag_to_current_segment = this.render_segments.find(function (x) {
5310
+ return x.top < drag_to_cur_y && x.top + x.height > drag_to_cur_y;
5311
+ });
5312
+
5313
+ if (drag_to_current_segment != null) {
5314
+ this.drag_element.event.start = "1900-01-01";
5315
+ this.drag_element.event.end = "1900-01-06";
5316
+ var new_event = this.build_event(drag_to_current_segment, this.drag_element.event);
5317
+ new_event.ondrag = true;
5318
+ this.drag_element.segment = drag_to_current_segment;
5319
+ this.drag_element.segment.values.push(new_event);
5320
+ }
5321
+ }
5322
+
5323
+ var original_event = this.drag_element.segment.values.find(function (x) {
5324
+ return x.id == _this3.drag_element.id;
5325
+ });
5326
+
5327
+ if (original_event == null) {
5328
+ //sto trascinando un nuovo elemento
5329
+ var _original_event = this.elements.find(function (x) {
5330
+ return x.id == _this3.drag_element.id;
5331
+ });
5332
+
5333
+ _original_event.start = "1900-01-01";
5334
+ _original_event.end = "1900-01-06";
5335
+ this.build_event(_original_event);
5336
+ original_event = this.render_elements.find(function (x) {
5337
+ return x.id == _this3.drag_element.id;
5338
+ });
5339
+ this.drag_element.width = (original_event.end.diff(original_event.start, "days") - 1) * this.options.day_width;
5340
+ } //determino nuovo inizio e nuova fine
5341
+
5342
+
4705
5343
  var duration = original_event.end.diff(original_event.start, "days");
4706
5344
  original_event.start = this.options.from_start.add(day, "days");
4707
5345
  original_event.end = original_event.start.add(duration, "days");
4708
5346
  this.drag_element.start = original_event.start;
4709
- this.drag_element.end = original_event.end;
5347
+ this.drag_element.end = original_event.end; //spostamento su nuovo segmento
5348
+
5349
+ var cur_y = Math.floor(mouseevent.clientY - bounds.top - 10);
5350
+ var current_segment = this.render_segments.find(function (x) {
5351
+ return x.top < cur_y && x.top + x.height > cur_y;
5352
+ });
5353
+
5354
+ if (current_segment != null) {
5355
+ this.drag_element.segment.values.splice(this.drag_element.segment.values.indexOf(original_event), 1);
5356
+ this.drag_element.segment = current_segment;
5357
+ this.drag_element.segment.values.push(original_event);
5358
+ }
5359
+
4710
5360
  var start = original_event.start;
4711
5361
  var end = original_event.end;
4712
- var row_position = Math.floor((mouseevent.clientY - bounds.top) / 40);
5362
+ var row_position = Math.floor((mouseevent.clientY - bounds.top - this.drag_element.segment.top - 10) / 35);
4713
5363
  var down_weigth = null;
4714
5364
  var down_element = null;
4715
5365
  var element_to_move = null;
4716
5366
  var element_to_move_weigth = null;
4717
- down_element = this.render_elements.sort(function (a, b) {
5367
+ down_element = this.drag_element.segment.values.sort(function (a, b) {
4718
5368
  return b.weigth - a.weigth;
4719
5369
  }).filter(function (x) {
4720
5370
  return x.start < end && start < x.end && original_event.id != x.id && x.row < row_position;
@@ -4724,7 +5374,7 @@ var locale_it = __webpack_require__("e4cc");
4724
5374
  down_weigth = down_element[0].weigth;
4725
5375
  }
4726
5376
 
4727
- element_to_move = this.render_elements.sort(function (a, b) {
5377
+ element_to_move = this.drag_element.segment.values.sort(function (a, b) {
4728
5378
  return a.weigth - b.weigth;
4729
5379
  }).filter(function (x) {
4730
5380
  return x.start < end && start < x.end && original_event.id != x.id && x.row >= row_position;
@@ -4744,125 +5394,95 @@ var locale_it = __webpack_require__("e4cc");
4744
5394
  original_event.weigth = ((_down_weigth2 = down_weigth) !== null && _down_weigth2 !== void 0 ? _down_weigth2 : 0) + (element_to_move_weigth - ((_down_weigth3 = down_weigth) !== null && _down_weigth3 !== void 0 ? _down_weigth3 : 0)) / 2;
4745
5395
  }
4746
5396
 
4747
- this.refresh_render();
5397
+ this.refresh_render(this.drag_element.segment); //ricalcolo altezza segmento
5398
+
5399
+ var index = 0;
5400
+
5401
+ var _iterator5 = _createForOfIteratorHelper(this.render_segments),
5402
+ _step5;
5403
+
5404
+ try {
5405
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5406
+ var segment = _step5.value;
5407
+ var prec_group = null;
5408
+
5409
+ if (index > 0) {
5410
+ prec_group = this.render_segments[index - 1];
5411
+ }
5412
+
5413
+ if (prec_group != null) {
5414
+ segment.top = prec_group.height + prec_group.top + 10;
5415
+ }
5416
+
5417
+ segment.height = (Math.max.apply(Math, _toConsumableArray(segment.values.map(function (x) {
5418
+ return x.row;
5419
+ }))) + 1) * 35 + 10;
5420
+ index++;
5421
+ }
5422
+ } catch (err) {
5423
+ _iterator5.e(err);
5424
+ } finally {
5425
+ _iterator5.f();
5426
+ }
4748
5427
  }
4749
5428
  },
4750
5429
  endDrag: function endDrag() {
4751
- console.log(this.drag_element);
5430
+ var _this4 = this;
5431
+
5432
+ if (this.resize_event != null && this.resize_event.oncreation == true) {
5433
+ this.resize_event.oncreation = false;
5434
+ }
5435
+
5436
+ this.resize_event = null;
4752
5437
  this.$emit("change-event", this.drag_element);
5438
+
5439
+ if (this.drag_element != null) {
5440
+ var original_event = this.drag_element.segment.values.find(function (x) {
5441
+ return x.id == _this4.drag_element.id;
5442
+ });
5443
+ original_event.ondrag = false;
5444
+ }
5445
+
4753
5446
  this.drag_element = null;
5447
+ },
5448
+ getRandomInt: function getRandomInt(min, max) {
5449
+ min = Math.ceil(min);
5450
+ max = Math.floor(max);
5451
+ return Math.floor(Math.random() * (max - min) + min); // The maximum is exclusive and the minimum is inclusive
4754
5452
  }
4755
5453
  },
4756
5454
  created: function created() {},
4757
5455
  mounted: function mounted() {
5456
+ var _this5 = this;
5457
+
4758
5458
  dayjs_min_default.a.locale("it");
4759
- this.options.from_start = dayjs_min_default()().add(-90, "days"), this.options.to_start = dayjs_min_default()().add(90, "days"), this.render();
5459
+ this.options.from_start = dayjs_min_default()().startOf('month').add(-6, "months");
5460
+ this.options.to_start = dayjs_min_default()().startOf('month').add(6, "months").add(-1, "seconds");
5461
+ this.render();
5462
+ this.$nextTick(function () {
5463
+ _this5.$refs.grid_view.scrollToDay(_this5.$refs.scroll_container_wrapper); // this.$refs.scroll_container_wrapper.onscroll = () => {
5464
+ // if (this.$refs.scroll_container_wrapper.scrollLeft == 0) {
5465
+ // var cur_scroll = this.$refs.scroll_container_wrapper.scrollWidth;
5466
+ // this.options.from_start = this.options.from_start.add(-1, "months");
5467
+ // this.$nextTick(() => {
5468
+ // var diff = this.$refs.scroll_container_wrapper.scrollWidth - cur_scroll;
5469
+ // this.$refs.scroll_container_wrapper.scrollLeft = diff;
5470
+ // this.render();
5471
+ // });
5472
+ // }
5473
+ // if (this.$refs.scroll_container_wrapper.scrollLeft + this.$refs.scroll_container_wrapper.offsetWidth > (this.$refs.scroll_container_wrapper.scrollWidth - 2)) {
5474
+ // this.options.to_start = this.options.to_start.add(1, "months");
5475
+ // this.render();
5476
+ // }
5477
+ // };
5478
+
5479
+ });
4760
5480
  }
4761
5481
  });
4762
5482
  // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=script&lang=js&
4763
5483
  /* harmony default export */ var components_gant_boardvue_type_script_lang_js_ = (gant_boardvue_type_script_lang_js_);
4764
- // EXTERNAL MODULE: ./src/components/gant-board.vue?vue&type=style&index=0&id=7cbeb09a&scoped=true&lang=css&
4765
- var gant_boardvue_type_style_index_0_id_7cbeb09a_scoped_true_lang_css_ = __webpack_require__("cecf");
4766
-
4767
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4768
- /* globals __VUE_SSR_CONTEXT__ */
4769
-
4770
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
4771
- // This module is a runtime utility for cleaner component module output and will
4772
- // be included in the final webpack user bundle.
4773
-
4774
- function normalizeComponent (
4775
- scriptExports,
4776
- render,
4777
- staticRenderFns,
4778
- functionalTemplate,
4779
- injectStyles,
4780
- scopeId,
4781
- moduleIdentifier, /* server only */
4782
- shadowMode /* vue-cli only */
4783
- ) {
4784
- // Vue.extend constructor export interop
4785
- var options = typeof scriptExports === 'function'
4786
- ? scriptExports.options
4787
- : scriptExports
4788
-
4789
- // render functions
4790
- if (render) {
4791
- options.render = render
4792
- options.staticRenderFns = staticRenderFns
4793
- options._compiled = true
4794
- }
4795
-
4796
- // functional template
4797
- if (functionalTemplate) {
4798
- options.functional = true
4799
- }
4800
-
4801
- // scopedId
4802
- if (scopeId) {
4803
- options._scopeId = 'data-v-' + scopeId
4804
- }
4805
-
4806
- var hook
4807
- if (moduleIdentifier) { // server build
4808
- hook = function (context) {
4809
- // 2.3 injection
4810
- context =
4811
- context || // cached call
4812
- (this.$vnode && this.$vnode.ssrContext) || // stateful
4813
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
4814
- // 2.2 with runInNewContext: true
4815
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4816
- context = __VUE_SSR_CONTEXT__
4817
- }
4818
- // inject component styles
4819
- if (injectStyles) {
4820
- injectStyles.call(this, context)
4821
- }
4822
- // register component module identifier for async chunk inferrence
4823
- if (context && context._registeredComponents) {
4824
- context._registeredComponents.add(moduleIdentifier)
4825
- }
4826
- }
4827
- // used by ssr in case component is cached and beforeCreate
4828
- // never gets called
4829
- options._ssrRegister = hook
4830
- } else if (injectStyles) {
4831
- hook = shadowMode
4832
- ? function () {
4833
- injectStyles.call(
4834
- this,
4835
- (options.functional ? this.parent : this).$root.$options.shadowRoot
4836
- )
4837
- }
4838
- : injectStyles
4839
- }
4840
-
4841
- if (hook) {
4842
- if (options.functional) {
4843
- // for template-only hot-reload because in that case the render fn doesn't
4844
- // go through the normalizer
4845
- options._injectStyles = hook
4846
- // register for functional component in vue file
4847
- var originalRender = options.render
4848
- options.render = function renderWithStyleInjection (h, context) {
4849
- hook.call(context)
4850
- return originalRender(h, context)
4851
- }
4852
- } else {
4853
- // inject component registration as beforeCreate hook
4854
- var existing = options.beforeCreate
4855
- options.beforeCreate = existing
4856
- ? [].concat(existing, hook)
4857
- : [hook]
4858
- }
4859
- }
4860
-
4861
- return {
4862
- exports: scriptExports,
4863
- options: options
4864
- }
4865
- }
5484
+ // EXTERNAL MODULE: ./src/components/gant-board.vue?vue&type=style&index=0&id=4072adea&scoped=true&lang=css&
5485
+ var gant_boardvue_type_style_index_0_id_4072adea_scoped_true_lang_css_ = __webpack_require__("cf63");
4866
5486
 
4867
5487
  // CONCATENATED MODULE: ./src/components/gant-board.vue
4868
5488
 
@@ -4873,18 +5493,18 @@ function normalizeComponent (
4873
5493
 
4874
5494
  /* normalize component */
4875
5495
 
4876
- var component = normalizeComponent(
5496
+ var gant_board_component = normalizeComponent(
4877
5497
  components_gant_boardvue_type_script_lang_js_,
4878
- gant_boardvue_type_template_id_7cbeb09a_scoped_true_render,
5498
+ gant_boardvue_type_template_id_4072adea_scoped_true_render,
4879
5499
  staticRenderFns,
4880
5500
  false,
4881
5501
  null,
4882
- "7cbeb09a",
5502
+ "4072adea",
4883
5503
  null
4884
5504
 
4885
5505
  )
4886
5506
 
4887
- /* harmony default export */ var gant_board = (component.exports);
5507
+ /* harmony default export */ var gant_board = (gant_board_component.exports);
4888
5508
  // CONCATENATED MODULE: ./src/lib.js
4889
5509
 
4890
5510
  function install(Vue) {