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.
@@ -867,20 +867,6 @@ defineIterator(String, 'String', function (iterated) {
867
867
  module.exports = {};
868
868
 
869
869
 
870
- /***/ }),
871
-
872
- /***/ "41c3":
873
- /***/ (function(module, exports, __webpack_require__) {
874
-
875
- // Imports
876
- var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
877
- exports = ___CSS_LOADER_API_IMPORT___(false);
878
- // Module
879
- 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}", ""]);
880
- // Exports
881
- module.exports = exports;
882
-
883
-
884
870
  /***/ }),
885
871
 
886
872
  /***/ "428f":
@@ -1645,19 +1631,17 @@ module.exports = {
1645
1631
 
1646
1632
  /***/ }),
1647
1633
 
1648
- /***/ "6194":
1634
+ /***/ "602d":
1649
1635
  /***/ (function(module, exports, __webpack_require__) {
1650
1636
 
1651
- // style-loader: Adds some css to the DOM by adding a <style> tag
1637
+ // Imports
1638
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
1639
+ exports = ___CSS_LOADER_API_IMPORT___(false);
1640
+ // Module
1641
+ 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}", ""]);
1642
+ // Exports
1643
+ module.exports = exports;
1652
1644
 
1653
- // load the styles
1654
- var content = __webpack_require__("41c3");
1655
- if(content.__esModule) content = content.default;
1656
- if(typeof content === 'string') content = [[module.i, content, '']];
1657
- if(content.locals) module.exports = content.locals;
1658
- // add the styles to the DOM
1659
- var add = __webpack_require__("499e").default
1660
- var update = add("3ef5ea14", content, true, {"sourceMap":false,"shadowMode":false});
1661
1645
 
1662
1646
  /***/ }),
1663
1647
 
@@ -1904,6 +1888,22 @@ var TEMPLATE = String(String).split('String');
1904
1888
  exports.f = Object.getOwnPropertySymbols;
1905
1889
 
1906
1890
 
1891
+ /***/ }),
1892
+
1893
+ /***/ "742c":
1894
+ /***/ (function(module, exports, __webpack_require__) {
1895
+
1896
+ // style-loader: Adds some css to the DOM by adding a <style> tag
1897
+
1898
+ // load the styles
1899
+ var content = __webpack_require__("8a2b");
1900
+ if(content.__esModule) content = content.default;
1901
+ if(typeof content === 'string') content = [[module.i, content, '']];
1902
+ if(content.locals) module.exports = content.locals;
1903
+ // add the styles to the DOM
1904
+ var add = __webpack_require__("499e").default
1905
+ var update = add("b9fea82e", content, true, {"sourceMap":false,"shadowMode":false});
1906
+
1907
1907
  /***/ }),
1908
1908
 
1909
1909
  /***/ "746f":
@@ -2059,6 +2059,35 @@ module.exports = Object.create || function create(O, Properties) {
2059
2059
  };
2060
2060
 
2061
2061
 
2062
+ /***/ }),
2063
+
2064
+ /***/ "7db0":
2065
+ /***/ (function(module, exports, __webpack_require__) {
2066
+
2067
+ "use strict";
2068
+
2069
+ var $ = __webpack_require__("23e7");
2070
+ var $find = __webpack_require__("b727").find;
2071
+ var addToUnscopables = __webpack_require__("44d2");
2072
+
2073
+ var FIND = 'find';
2074
+ var SKIPS_HOLES = true;
2075
+
2076
+ // Shouldn't skip holes
2077
+ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2078
+
2079
+ // `Array.prototype.find` method
2080
+ // https://tc39.es/ecma262/#sec-array.prototype.find
2081
+ $({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2082
+ find: function find(callbackfn /* , that = undefined */) {
2083
+ return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2084
+ }
2085
+ });
2086
+
2087
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2088
+ addToUnscopables(FIND);
2089
+
2090
+
2062
2091
  /***/ }),
2063
2092
 
2064
2093
  /***/ "7dd0":
@@ -2348,6 +2377,20 @@ if (!isCallable(store.inspectSource)) {
2348
2377
  module.exports = store.inspectSource;
2349
2378
 
2350
2379
 
2380
+ /***/ }),
2381
+
2382
+ /***/ "8a2b":
2383
+ /***/ (function(module, exports, __webpack_require__) {
2384
+
2385
+ // Imports
2386
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
2387
+ exports = ___CSS_LOADER_API_IMPORT___(false);
2388
+ // Module
2389
+ 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}", ""]);
2390
+ // Exports
2391
+ module.exports = exports;
2392
+
2393
+
2351
2394
  /***/ }),
2352
2395
 
2353
2396
  /***/ "90e3":
@@ -2670,6 +2713,84 @@ module.exports = function (argument) {
2670
2713
  };
2671
2714
 
2672
2715
 
2716
+ /***/ }),
2717
+
2718
+ /***/ "a434":
2719
+ /***/ (function(module, exports, __webpack_require__) {
2720
+
2721
+ "use strict";
2722
+
2723
+ var $ = __webpack_require__("23e7");
2724
+ var global = __webpack_require__("da84");
2725
+ var toAbsoluteIndex = __webpack_require__("23cb");
2726
+ var toIntegerOrInfinity = __webpack_require__("5926");
2727
+ var lengthOfArrayLike = __webpack_require__("07fa");
2728
+ var toObject = __webpack_require__("7b0b");
2729
+ var arraySpeciesCreate = __webpack_require__("65f0");
2730
+ var createProperty = __webpack_require__("8418");
2731
+ var arrayMethodHasSpeciesSupport = __webpack_require__("1dde");
2732
+
2733
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
2734
+
2735
+ var TypeError = global.TypeError;
2736
+ var max = Math.max;
2737
+ var min = Math.min;
2738
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
2739
+ var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
2740
+
2741
+ // `Array.prototype.splice` method
2742
+ // https://tc39.es/ecma262/#sec-array.prototype.splice
2743
+ // with adding support of @@species
2744
+ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2745
+ splice: function splice(start, deleteCount /* , ...items */) {
2746
+ var O = toObject(this);
2747
+ var len = lengthOfArrayLike(O);
2748
+ var actualStart = toAbsoluteIndex(start, len);
2749
+ var argumentsLength = arguments.length;
2750
+ var insertCount, actualDeleteCount, A, k, from, to;
2751
+ if (argumentsLength === 0) {
2752
+ insertCount = actualDeleteCount = 0;
2753
+ } else if (argumentsLength === 1) {
2754
+ insertCount = 0;
2755
+ actualDeleteCount = len - actualStart;
2756
+ } else {
2757
+ insertCount = argumentsLength - 2;
2758
+ actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
2759
+ }
2760
+ if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
2761
+ throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
2762
+ }
2763
+ A = arraySpeciesCreate(O, actualDeleteCount);
2764
+ for (k = 0; k < actualDeleteCount; k++) {
2765
+ from = actualStart + k;
2766
+ if (from in O) createProperty(A, k, O[from]);
2767
+ }
2768
+ A.length = actualDeleteCount;
2769
+ if (insertCount < actualDeleteCount) {
2770
+ for (k = actualStart; k < len - actualDeleteCount; k++) {
2771
+ from = k + actualDeleteCount;
2772
+ to = k + insertCount;
2773
+ if (from in O) O[to] = O[from];
2774
+ else delete O[to];
2775
+ }
2776
+ for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
2777
+ } else if (insertCount > actualDeleteCount) {
2778
+ for (k = len - actualDeleteCount; k > actualStart; k--) {
2779
+ from = k + actualDeleteCount - 1;
2780
+ to = k + insertCount - 1;
2781
+ if (from in O) O[to] = O[from];
2782
+ else delete O[to];
2783
+ }
2784
+ }
2785
+ for (k = 0; k < insertCount; k++) {
2786
+ O[k + actualStart] = arguments[k + 2];
2787
+ }
2788
+ O.length = len - actualDeleteCount + insertCount;
2789
+ return A;
2790
+ }
2791
+ });
2792
+
2793
+
2673
2794
  /***/ }),
2674
2795
 
2675
2796
  /***/ "a4d3":
@@ -3348,6 +3469,17 @@ module.exports = {
3348
3469
  };
3349
3470
 
3350
3471
 
3472
+ /***/ }),
3473
+
3474
+ /***/ "be78":
3475
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
3476
+
3477
+ "use strict";
3478
+ /* 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");
3479
+ /* 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__);
3480
+ /* unused harmony reexport * */
3481
+
3482
+
3351
3483
  /***/ }),
3352
3484
 
3353
3485
  /***/ "c04e":
@@ -3522,12 +3654,12 @@ module.exports = function (key, value) {
3522
3654
 
3523
3655
  /***/ }),
3524
3656
 
3525
- /***/ "cecf":
3657
+ /***/ "cf63":
3526
3658
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3527
3659
 
3528
3660
  "use strict";
3529
- /* 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");
3530
- /* 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__);
3661
+ /* 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");
3662
+ /* 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__);
3531
3663
  /* unused harmony reexport * */
3532
3664
 
3533
3665
 
@@ -3695,6 +3827,22 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3695
3827
  });
3696
3828
 
3697
3829
 
3830
+ /***/ }),
3831
+
3832
+ /***/ "d93a":
3833
+ /***/ (function(module, exports, __webpack_require__) {
3834
+
3835
+ // style-loader: Adds some css to the DOM by adding a <style> tag
3836
+
3837
+ // load the styles
3838
+ var content = __webpack_require__("602d");
3839
+ if(content.__esModule) content = content.default;
3840
+ if(typeof content === 'string') content = [[module.i, content, '']];
3841
+ if(content.locals) module.exports = content.locals;
3842
+ // add the styles to the DOM
3843
+ var add = __webpack_require__("499e").default
3844
+ var update = add("17ac8905", content, true, {"sourceMap":false,"shadowMode":false});
3845
+
3698
3846
  /***/ }),
3699
3847
 
3700
3848
  /***/ "d998":
@@ -4182,44 +4330,25 @@ if (typeof window !== 'undefined') {
4182
4330
  // Indicate to webpack that this file can be concatenated
4183
4331
  /* harmony default export */ var setPublicPath = (null);
4184
4332
 
4185
- // 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&
4186
- 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:({
4187
- width: (_vm.options.day_width * m.length) + 'px',
4188
- })},[_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:({
4189
- 'border-left':
4190
- _vm.options.from_start.add(day, 'days').day() == 1
4191
- ? '1px solid #d1d1d1'
4192
- : 'none',
4193
- width: _vm.options.day_width + 'px',
4194
- left: day * _vm.options.day_width,
4195
- 'color': _vm.options.gray_days.includes(
4196
- _vm.options.from_start.add(day, 'days').day()
4197
- )
4198
- ? '#e1e1e1'
4199
- : 'inherit',
4200
- })},[_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:({
4201
- width: _vm.options.day_width + 'px',
4202
- left: day * _vm.options.day_width,
4203
- 'background-color': _vm.options.gray_days.includes(
4204
- _vm.options.from_start.add(day, 'days').day()
4205
- )
4206
- ? 'rgb(238 238 238)'
4207
- : 'transparent',
4208
- })})}),0)]),_vm._l((_vm.render_elements),function(event){return _c('div',{key:event.id,staticClass:"event",class:{
4209
- ghost: _vm.drag_element != null && event.id == _vm.drag_element.id,
4210
- },staticStyle:{"padding-left":"10px"},style:({
4211
- width: event.width + 'px',
4212
- left: event.left + 'px',
4213
- top: event.top + 50 + 'px',
4214
- }),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:({
4215
- width: _vm.drag_element.width + 'px',
4216
- top: _vm.drag_element.top + 'px',
4217
- left: _vm.drag_element.left + 'px',
4218
- })},[_vm._v(" "+_vm._s(_vm.drag_element.name)+" ")]):_vm._e()],2)]):_vm._e()}
4333
+ // 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&
4334
+ 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:({
4335
+ 'background-image': 'url(' +segment.key.image + ')',
4336
+ })}),_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:({
4337
+ width: event.width + 'px',
4338
+ left: event.left + 'px',
4339
+ top: (event.top) + 'px',
4340
+ 'background-color': event.color,
4341
+ opacity: event.oncreation || event.ondrag ? '0.2' : 'inherit',
4342
+ }),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:({
4343
+ width: _vm.drag_element.width + 'px',
4344
+ top: _vm.drag_element.top + 'px',
4345
+ left: _vm.drag_element.left + 'px',
4346
+ 'background-color': _vm.drag_element.color,
4347
+ })},[_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()}
4219
4348
  var staticRenderFns = []
4220
4349
 
4221
4350
 
4222
- // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=7cbeb09a&scoped=true&
4351
+ // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=4072adea&scoped=true&
4223
4352
 
4224
4353
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
4225
4354
  var es_symbol = __webpack_require__("a4d3");
@@ -4378,15 +4507,21 @@ function _nonIterableSpread() {
4378
4507
  function _toConsumableArray(arr) {
4379
4508
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
4380
4509
  }
4510
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
4511
+ var es_array_map = __webpack_require__("d81d");
4512
+
4381
4513
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.sort.js
4382
4514
  var es_array_sort = __webpack_require__("4e82");
4383
4515
 
4384
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
4385
- var es_array_map = __webpack_require__("d81d");
4516
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
4517
+ var es_array_find = __webpack_require__("7db0");
4386
4518
 
4387
4519
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
4388
4520
  var es_array_filter = __webpack_require__("4de4");
4389
4521
 
4522
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
4523
+ var es_array_splice = __webpack_require__("a434");
4524
+
4390
4525
  // EXTERNAL MODULE: ./node_modules/dayjs/dayjs.min.js
4391
4526
  var dayjs_min = __webpack_require__("5a0c");
4392
4527
  var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
@@ -4394,25 +4529,43 @@ var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
4394
4529
  // EXTERNAL MODULE: ./node_modules/dayjs/locale/it.js
4395
4530
  var locale_it = __webpack_require__("e4cc");
4396
4531
 
4397
- // 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&
4398
-
4399
-
4400
-
4401
-
4532
+ // 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&
4533
+ 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:({
4534
+ width: _vm.options.day_width * m.length + 'px',
4535
+ })},[_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:({
4536
+
4537
+ 'background-color' : _vm.getDay_FF(day) == _vm.ttoday() ? '#ff9573' : '',
4538
+ 'border-radius':
4539
+ _vm.options.from_start.add(day, 'days').day() == 1
4540
+ ? 'none'
4541
+ : '3px',
4542
+ 'border-left':
4543
+ _vm.options.from_start.add(day, 'days').day() == 1
4544
+ ? '1px solid #d1d1d1'
4545
+ : 'none',
4546
+ width: _vm.options.day_width + 'px',
4547
+ left: day * _vm.options.day_width,
4548
+ color: _vm.getDay_FF(day) == _vm.ttoday() ? '#fff!important' : (_vm.options.gray_days.includes(
4549
+ _vm.options.from_start.add(day, 'days').day()
4550
+ )
4551
+ ? '#e1e1e1'
4552
+ : 'inherit'),
4553
+ })},[_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:({
4554
+
4555
+ width: _vm.options.day_width + 'px',
4556
+ left: day * _vm.options.day_width,
4557
+ 'background-color': _vm.getDay_FF(day) == _vm.ttoday() ? '#ffd8cc' : (_vm.options.gray_days.includes(
4558
+ _vm.options.from_start.add(day, 'days').day()
4559
+ )
4560
+ ? 'rgb(238 238 238)'
4561
+ : 'transparent'),
4562
+ })})}),0):_vm._e()])}
4563
+ var grid_viewvue_type_template_id_460e347c_scoped_true_staticRenderFns = []
4402
4564
 
4403
4565
 
4566
+ // CONCATENATED MODULE: ./src/components/grid-view.vue?vue&type=template&id=460e347c&scoped=true&
4404
4567
 
4405
- //
4406
- //
4407
- //
4408
- //
4409
- //
4410
- //
4411
- //
4412
- //
4413
- //
4414
- //
4415
- //
4568
+ // 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&
4416
4569
  //
4417
4570
  //
4418
4571
  //
@@ -4526,122 +4679,499 @@ var locale_it = __webpack_require__("e4cc");
4526
4679
  //
4527
4680
 
4528
4681
 
4529
- /* harmony default export */ var gant_boardvue_type_script_lang_js_ = ({
4682
+ /* harmony default export */ var grid_viewvue_type_script_lang_js_ = ({
4530
4683
  name: "gant-board",
4531
- props: ["elements"],
4532
- data: function data() {
4533
- return {
4534
- end_calc: true,
4535
- render_elements: [],
4536
- drag_element: null,
4537
- options: {
4538
- gray_days: [0, 6],
4539
- day_width: 40,
4540
- from_start: null,
4541
- to_start: null
4542
- }
4543
- };
4544
- },
4545
- computed: {
4546
- days_number: function days_number() {
4547
- return this.options.to_start.diff(this.options.from_start, "days");
4548
- },
4549
- months: function months() {
4550
- var months = [];
4551
- var start = this.options.from_start;
4552
- var end = false;
4553
- var index = 0;
4554
-
4555
- while (!end) {
4556
- var length = start.daysInMonth();
4557
-
4558
- if (months.length == 0) {
4559
- length = start.startOf("month").add(1, "months").diff(start, "days");
4560
- }
4561
-
4562
- months.push({
4563
- index: index,
4564
- name: start.format("MMMM"),
4565
- length: length
4566
- });
4567
- start = start.add(1, "months");
4568
- index++;
4569
-
4570
- if (start > this.options.to_start) {
4571
- end = true;
4572
- }
4573
- }
4574
-
4575
- return months;
4576
- }
4684
+ props: ["months", "days_number", "options", "show_lines", "put_top"],
4685
+ watch: {
4686
+ 'options': function options() {}
4577
4687
  },
4578
4688
  methods: {
4579
4689
  getDay: function getDay(index) {
4580
4690
  return this.options.from_start.add(index, "days");
4581
4691
  },
4582
- refresh_render: function refresh_render() {
4583
- var ordered = _toConsumableArray(this.render_elements).sort(function (a, b) {
4584
- return a.weigth - b.weigth;
4585
- });
4692
+ getDay_FF: function getDay_FF(index) {
4693
+ return this.options.from_start.add(index, "days").format("YYYY-MM-DD");
4694
+ },
4695
+ ttoday: function ttoday() {
4696
+ return dayjs_min_default()().format("YYYY-MM-DD");
4697
+ },
4698
+ scrollToDay: function scrollToDay(container) {
4699
+ container.scrollTo(this.$refs.today[0].getBoundingClientRect().left - 200, 0);
4700
+ }
4701
+ }
4702
+ });
4703
+ // CONCATENATED MODULE: ./src/components/grid-view.vue?vue&type=script&lang=js&
4704
+ /* harmony default export */ var components_grid_viewvue_type_script_lang_js_ = (grid_viewvue_type_script_lang_js_);
4705
+ // EXTERNAL MODULE: ./src/components/grid-view.vue?vue&type=style&index=0&id=460e347c&scoped=true&lang=css&
4706
+ var grid_viewvue_type_style_index_0_id_460e347c_scoped_true_lang_css_ = __webpack_require__("be78");
4586
4707
 
4587
- var _iterator = _createForOfIteratorHelper(ordered),
4588
- _step;
4708
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4709
+ /* globals __VUE_SSR_CONTEXT__ */
4589
4710
 
4590
- try {
4591
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
4592
- var event = _step.value;
4593
- this.refresh_event(event);
4594
- }
4595
- } catch (err) {
4596
- _iterator.e(err);
4597
- } finally {
4598
- _iterator.f();
4599
- }
4600
- },
4601
- refresh_event: function refresh_event(event) {
4602
- var near_element = _toConsumableArray(this.render_elements).sort(function (a, b) {
4603
- return b.weigth - a.weigth;
4604
- }).filter(function (x) {
4605
- return x.weigth <= event.weigth && x.start < event.end && x.id != event.id && event.start < x.end;
4606
- }).map(function (x) {
4607
- return x.row;
4608
- });
4711
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
4712
+ // This module is a runtime utility for cleaner component module output and will
4713
+ // be included in the final webpack user bundle.
4609
4714
 
4610
- var row = 0;
4715
+ function normalizeComponent (
4716
+ scriptExports,
4717
+ render,
4718
+ staticRenderFns,
4719
+ functionalTemplate,
4720
+ injectStyles,
4721
+ scopeId,
4722
+ moduleIdentifier, /* server only */
4723
+ shadowMode /* vue-cli only */
4724
+ ) {
4725
+ // Vue.extend constructor export interop
4726
+ var options = typeof scriptExports === 'function'
4727
+ ? scriptExports.options
4728
+ : scriptExports
4611
4729
 
4612
- if (near_element.length > 0) {
4613
- row = Math.max.apply(Math, _toConsumableArray(near_element)) + 1;
4614
- }
4730
+ // render functions
4731
+ if (render) {
4732
+ options.render = render
4733
+ options.staticRenderFns = staticRenderFns
4734
+ options._compiled = true
4735
+ }
4615
4736
 
4616
- event.row = row;
4617
- event.top = 40 * row;
4618
- event.left = event.start.diff(this.options.from_start, "days") * this.options.day_width;
4619
- event.width = event.end.diff(event.start, "days") * this.options.day_width;
4620
- },
4621
- render: function render() {
4622
- this.render_elements = [];
4623
- var ordered = this.elements.sort(function (a, b) {
4624
- return a.weigth - b.weigth;
4625
- });
4737
+ // functional template
4738
+ if (functionalTemplate) {
4739
+ options.functional = true
4740
+ }
4626
4741
 
4627
- var _iterator2 = _createForOfIteratorHelper(ordered),
4628
- _step2;
4742
+ // scopedId
4743
+ if (scopeId) {
4744
+ options._scopeId = 'data-v-' + scopeId
4745
+ }
4746
+
4747
+ var hook
4748
+ if (moduleIdentifier) { // server build
4749
+ hook = function (context) {
4750
+ // 2.3 injection
4751
+ context =
4752
+ context || // cached call
4753
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
4754
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
4755
+ // 2.2 with runInNewContext: true
4756
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4757
+ context = __VUE_SSR_CONTEXT__
4758
+ }
4759
+ // inject component styles
4760
+ if (injectStyles) {
4761
+ injectStyles.call(this, context)
4762
+ }
4763
+ // register component module identifier for async chunk inferrence
4764
+ if (context && context._registeredComponents) {
4765
+ context._registeredComponents.add(moduleIdentifier)
4766
+ }
4767
+ }
4768
+ // used by ssr in case component is cached and beforeCreate
4769
+ // never gets called
4770
+ options._ssrRegister = hook
4771
+ } else if (injectStyles) {
4772
+ hook = shadowMode
4773
+ ? function () {
4774
+ injectStyles.call(
4775
+ this,
4776
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
4777
+ )
4778
+ }
4779
+ : injectStyles
4780
+ }
4781
+
4782
+ if (hook) {
4783
+ if (options.functional) {
4784
+ // for template-only hot-reload because in that case the render fn doesn't
4785
+ // go through the normalizer
4786
+ options._injectStyles = hook
4787
+ // register for functional component in vue file
4788
+ var originalRender = options.render
4789
+ options.render = function renderWithStyleInjection (h, context) {
4790
+ hook.call(context)
4791
+ return originalRender(h, context)
4792
+ }
4793
+ } else {
4794
+ // inject component registration as beforeCreate hook
4795
+ var existing = options.beforeCreate
4796
+ options.beforeCreate = existing
4797
+ ? [].concat(existing, hook)
4798
+ : [hook]
4799
+ }
4800
+ }
4801
+
4802
+ return {
4803
+ exports: scriptExports,
4804
+ options: options
4805
+ }
4806
+ }
4807
+
4808
+ // CONCATENATED MODULE: ./src/components/grid-view.vue
4809
+
4810
+
4811
+
4812
+
4813
+
4814
+
4815
+ /* normalize component */
4816
+
4817
+ var component = normalizeComponent(
4818
+ components_grid_viewvue_type_script_lang_js_,
4819
+ grid_viewvue_type_template_id_460e347c_scoped_true_render,
4820
+ grid_viewvue_type_template_id_460e347c_scoped_true_staticRenderFns,
4821
+ false,
4822
+ null,
4823
+ "460e347c",
4824
+ null
4825
+
4826
+ )
4827
+
4828
+ /* harmony default export */ var grid_view = (component.exports);
4829
+ // 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&
4830
+
4831
+
4832
+
4833
+
4834
+
4835
+
4836
+
4837
+
4838
+
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
+ /* harmony default export */ var gant_boardvue_type_script_lang_js_ = ({
4966
+ components: {
4967
+ gridView: grid_view
4968
+ },
4969
+ name: "gant-board",
4970
+ props: ["elements", "team_members"],
4971
+ data: function data() {
4972
+ return {
4973
+ segment_view: true,
4974
+ group_by: "u",
4975
+ render_segments: [],
4976
+ end_calc: true,
4977
+ drag_element: null,
4978
+ range: {
4979
+ start: new Date(2020, 0, 6),
4980
+ end: new Date(2020, 0, 23)
4981
+ },
4982
+ options: {
4983
+ gray_days: [0, 6],
4984
+ day_width: 45,
4985
+ from_start: null,
4986
+ to_start: null
4987
+ },
4988
+ resize_event: null,
4989
+ color: ["#f44336", "#e81e63", "#9c27b0", "#673ab7", "#3f51b5", "#2196f3", "#03a9f4", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b"]
4990
+ };
4991
+ },
4992
+ computed: {
4993
+ container_height: function container_height() {
4994
+ if (this.render_segments.length == 0) {
4995
+ return 800;
4996
+ }
4997
+
4998
+ return Math.max.apply(Math, _toConsumableArray(this.render_segments.map(function (x) {
4999
+ return x.top + x.height + 50;
5000
+ })));
5001
+ },
5002
+ days_number: function days_number() {
5003
+ return this.options.to_start.diff(this.options.from_start, "days") + 1;
5004
+ },
5005
+ months: function months() {
5006
+ var months = [];
5007
+ var start = this.options.from_start;
5008
+ var end = false;
5009
+ var index = 0;
5010
+
5011
+ while (!end) {
5012
+ var length = start.daysInMonth();
5013
+
5014
+ if (months.length == 0) {
5015
+ console.log(start.startOf("month").add(1, "months").diff(start, "days"));
5016
+ length = start.startOf("month").add(1, "months").diff(start, "days");
5017
+ }
5018
+
5019
+ months.push({
5020
+ index: index,
5021
+ name: start.format("MMMM"),
5022
+ length: length
5023
+ });
5024
+ start = start.add(1, "months");
5025
+ index++;
5026
+
5027
+ if (start > this.options.to_start) {
5028
+ end = true;
5029
+ }
5030
+ }
5031
+
5032
+ return months;
5033
+ }
5034
+ },
5035
+ methods: {
5036
+ getDay: function getDay(index) {
5037
+ return this.options.from_start.add(index, "days");
5038
+ },
5039
+ refresh_render: function refresh_render(segment) {
5040
+ var _this = this;
5041
+
5042
+ var ordered = _toConsumableArray(segment.values).sort(function (a, b) {
5043
+ return a.weigth - b.weigth;
5044
+ });
5045
+
5046
+ var _iterator = _createForOfIteratorHelper(ordered),
5047
+ _step;
4629
5048
 
4630
5049
  try {
4631
- for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
4632
- var event = _step2.value;
4633
- this.build_event(event);
5050
+ var _loop = function _loop() {
5051
+ var event = _step.value;
5052
+ var e = segment.values.find(function (x) {
5053
+ return x.id == event.id;
5054
+ });
5055
+
5056
+ _this.refresh_event(segment, e);
5057
+ };
5058
+
5059
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
5060
+ _loop();
4634
5061
  }
4635
5062
  } catch (err) {
4636
- _iterator2.e(err);
5063
+ _iterator.e(err);
4637
5064
  } finally {
4638
- _iterator2.f();
5065
+ _iterator.f();
5066
+ }
5067
+ },
5068
+ refresh_event: function refresh_event(segment, event) {
5069
+ var near_element = _toConsumableArray(segment.values).sort(function (a, b) {
5070
+ return b.weigth - a.weigth;
5071
+ }).filter(function (x) {
5072
+ return x.weigth <= event.weigth && x.start < event.end && event.start < x.end && x.id != event.id;
5073
+ }).map(function (x) {
5074
+ return x.row;
5075
+ });
5076
+
5077
+ var row = 0;
5078
+
5079
+ if (near_element.length > 0) {
5080
+ row = Math.max.apply(Math, _toConsumableArray(near_element)) + 1;
5081
+ }
5082
+
5083
+ event.row = row;
5084
+ event.top = 35 * row + 5;
5085
+ event.left = event.start.diff(this.options.from_start, "days") * this.options.day_width + 2;
5086
+ event.width = event.end.diff(event.start, "days") * this.options.day_width - 3;
5087
+ },
5088
+ render: function render() {
5089
+ var _this2 = this;
5090
+
5091
+ var ordered = this.elements.filter(function (x) {
5092
+ return x.start != null && x.end != null;
5093
+ }).sort(function (a, b) {
5094
+ return a.weigth - b.weigth;
5095
+ });
5096
+
5097
+ if (this.group_by != null && this.group_by == "u") {
5098
+ this.render_segments = [];
5099
+
5100
+ var _iterator2 = _createForOfIteratorHelper(ordered),
5101
+ _step2;
5102
+
5103
+ try {
5104
+ var _loop2 = function _loop2() {
5105
+ t = _step2.value;
5106
+
5107
+ var groupKey = _this2.team_members.find(function (x) {
5108
+ return x.team_id == t.team_id && x.team_type == t.team_type;
5109
+ });
5110
+
5111
+ group = _this2.render_segments.find(function (x) {
5112
+ return x.key == groupKey;
5113
+ });
5114
+
5115
+ if (group == null) {
5116
+ group = {
5117
+ key: groupKey,
5118
+ index: _this2.render_segments.length,
5119
+ top: 0,
5120
+ height: 0,
5121
+ values: [],
5122
+ raw: []
5123
+ };
5124
+
5125
+ _this2.render_segments.push(group);
5126
+ }
5127
+
5128
+ group.raw.push(t);
5129
+ };
5130
+
5131
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
5132
+ var t;
5133
+ var group;
5134
+
5135
+ _loop2();
5136
+ }
5137
+ } catch (err) {
5138
+ _iterator2.e(err);
5139
+ } finally {
5140
+ _iterator2.f();
5141
+ }
5142
+
5143
+ var _iterator3 = _createForOfIteratorHelper(this.render_segments),
5144
+ _step3;
5145
+
5146
+ try {
5147
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
5148
+ var seg = _step3.value;
5149
+
5150
+ var _iterator4 = _createForOfIteratorHelper(seg.raw),
5151
+ _step4;
5152
+
5153
+ try {
5154
+ for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
5155
+ var el = _step4.value;
5156
+ seg.values.push(this.build_event(seg, el));
5157
+ }
5158
+ } catch (err) {
5159
+ _iterator4.e(err);
5160
+ } finally {
5161
+ _iterator4.f();
5162
+ }
5163
+ }
5164
+ } catch (err) {
5165
+ _iterator3.e(err);
5166
+ } finally {
5167
+ _iterator3.f();
5168
+ }
4639
5169
  }
4640
5170
  },
4641
- build_event: function build_event(event) {
5171
+ build_event: function build_event(group, event) {
4642
5172
  var event_start = dayjs_min_default()(event.start, "YYYY-MM-DD", true);
4643
5173
  var event_end = dayjs_min_default()(event.end, "YYYY-MM-DD", true);
4644
- var near_element = this.render_elements.sort(function (a, b) {
5174
+ var near_element = group.values.sort(function (a, b) {
4645
5175
  return b.weigth - a.weigth;
4646
5176
  }).filter(function (x) {
4647
5177
  return x.start < event_end && event_start < x.end;
@@ -4654,58 +5184,178 @@ var locale_it = __webpack_require__("e4cc");
4654
5184
  row = Math.max.apply(Math, _toConsumableArray(near_element)) + 1;
4655
5185
  }
4656
5186
 
4657
- this.render_elements.push({
5187
+ var prec_group = null;
5188
+ group.top = 50;
5189
+
5190
+ if (group.index > 0) {
5191
+ prec_group = this.render_segments[group.index - 1];
5192
+ }
5193
+
5194
+ if (prec_group != null) {
5195
+ group.top = prec_group.height + prec_group.top + 10;
5196
+ }
5197
+
5198
+ var now_h = (row + 1) * 35 + 10;
5199
+ group.height = now_h > group.height ? now_h : group.height;
5200
+ var ev = {
4658
5201
  id: event.id,
4659
5202
  name: event.name,
5203
+ team_type: event.team_type,
5204
+ team_id: event.team_id,
5205
+ contact: event.contact,
4660
5206
  start: event_start,
4661
5207
  end: event_end,
4662
5208
  weigth: event.weigth,
4663
5209
  row: row,
4664
- top: 40 * row,
4665
- left: event_start.diff(this.options.from_start, "days") * this.options.day_width,
4666
- width: event_end.diff(event_start, "days") * this.options.day_width
4667
- });
5210
+ top: 35 * row + 5,
5211
+ color: event.color,
5212
+ left: event_start.diff(this.options.from_start, "days") * this.options.day_width + 2,
5213
+ width: event_end.diff(event_start, "days") * this.options.day_width - 3,
5214
+ hover: false,
5215
+ oncreation: event.oncreation,
5216
+ ondrag: false,
5217
+ image: event.image
5218
+ };
5219
+ return ev;
4668
5220
  },
4669
- startDrag: function startDrag(mouseevent, event) {
5221
+ startResize: function startResize(mouseevent, event, segment) {
5222
+ this.resize_event = event;
5223
+ this.resize_event.segment = segment;
5224
+ },
5225
+ startDrag: function startDrag(segment, mouseevent, event) {
5226
+ var bounds = this.$refs.container_wrapper.getBoundingClientRect();
5227
+
5228
+ if (event == null) {
5229
+ //creazione nuovo elemento da zero
5230
+ var day = Math.round((mouseevent.clientX - bounds.left) / this.options.day_width);
5231
+ var id = this.elements.length + 1;
5232
+ var cur_y = Math.floor(mouseevent.clientY - bounds.top - 10);
5233
+ var current_segment = this.render_segments.find(function (x) {
5234
+ return x.top < cur_y && x.top + x.height > cur_y;
5235
+ });
5236
+ var n_event = {
5237
+ id: id,
5238
+ team_type: current_segment.key.team_type,
5239
+ team_id: current_segment.key.team_id,
5240
+ name: "Incarico " + id,
5241
+ contact: "Contatto " + this.getRandomInt(0, 12),
5242
+ start: this.options.from_start.add(day, "days").format("YYYY-MM-DD"),
5243
+ end: this.options.from_start.add(day + 2, "days").format("YYYY-MM-DD"),
5244
+ weigth: id,
5245
+ oncreation: true,
5246
+ color: this.color[this.getRandomInt(0, 12)],
5247
+ image: "https://i.pravatar.cc/50?id=" + this.getRandomInt(1, 69)
5248
+ };
5249
+ this.elements.push(n_event);
5250
+ var new_event = this.build_event(current_segment, n_event);
5251
+ current_segment.values.push(new_event);
5252
+ this.resize_event = new_event;
5253
+ this.resize_event.segment = current_segment;
5254
+ this.resize_event.end = this.options.from_start.add(day + 20, "days");
5255
+ return;
5256
+ }
5257
+
4670
5258
  var event_start = dayjs_min_default()(event.start, "YYYY-MM-DD", true);
4671
5259
  var event_end = dayjs_min_default()(event.end, "YYYY-MM-DD", true);
4672
- var bounds = this.$refs.container_wrapper.getBoundingClientRect();
5260
+ event.ondrag = true;
4673
5261
  this.drag_element = {
4674
5262
  id: event.id,
5263
+ event: event,
5264
+ segment: segment,
4675
5265
  name: event.name,
5266
+ contact: event.contact,
4676
5267
  start: event_start,
4677
5268
  end: event_end,
4678
5269
  top: mouseevent.clientY - mouseevent.offsetY - bounds.top,
4679
5270
  offset_position_x: mouseevent.offsetX,
4680
5271
  offset_position_y: mouseevent.offsetY,
4681
5272
  left: event_start.diff(this.options.from_start, "days") * this.options.day_width,
4682
- width: event_end.diff(event_start, "days") * this.options.day_width
5273
+ width: event_end.diff(event_start, "days") * this.options.day_width,
5274
+ color: event.color,
5275
+ image: event.image
4683
5276
  };
4684
5277
  },
4685
5278
  moveEvent: function moveEvent(mouseevent) {
4686
- var _this = this;
5279
+ var _this$drag_element$of,
5280
+ _this$drag_element,
5281
+ _this3 = this;
5282
+
5283
+ var bounds = this.$refs.container_wrapper.getBoundingClientRect();
5284
+ 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);
5285
+
5286
+ if (this.resize_event != null) {
5287
+ day = Math.round((mouseevent.clientX - bounds.left) / this.options.day_width);
5288
+ this.resize_event.end = this.options.from_start.add(day, "days");
5289
+ this.refresh_render(this.resize_event.segment);
5290
+ return;
5291
+ }
4687
5292
 
4688
5293
  if (this.drag_element != null) {
4689
- var bounds = this.$refs.container_wrapper.getBoundingClientRect();
4690
5294
  this.drag_element.left = mouseevent.clientX - bounds.left - this.drag_element.offset_position_x;
4691
5295
  this.drag_element.top = mouseevent.clientY - this.drag_element.offset_position_y - bounds.top;
4692
- var day = Math.round((mouseevent.clientX - bounds.left - this.drag_element.offset_position_x) / this.options.day_width);
4693
- var original_event = this.render_elements.filter(function (x) {
4694
- return x.id == _this.drag_element.id;
4695
- })[0];
5296
+
5297
+ if (this.drag_element.segment == null) {
5298
+ //spostamento su nuovo segmento
5299
+ var drag_to_cur_y = Math.floor(mouseevent.clientY - bounds.top - 10);
5300
+ var drag_to_current_segment = this.render_segments.find(function (x) {
5301
+ return x.top < drag_to_cur_y && x.top + x.height > drag_to_cur_y;
5302
+ });
5303
+
5304
+ if (drag_to_current_segment != null) {
5305
+ this.drag_element.event.start = "1900-01-01";
5306
+ this.drag_element.event.end = "1900-01-06";
5307
+ var new_event = this.build_event(drag_to_current_segment, this.drag_element.event);
5308
+ new_event.ondrag = true;
5309
+ this.drag_element.segment = drag_to_current_segment;
5310
+ this.drag_element.segment.values.push(new_event);
5311
+ }
5312
+ }
5313
+
5314
+ var original_event = this.drag_element.segment.values.find(function (x) {
5315
+ return x.id == _this3.drag_element.id;
5316
+ });
5317
+
5318
+ if (original_event == null) {
5319
+ //sto trascinando un nuovo elemento
5320
+ var _original_event = this.elements.find(function (x) {
5321
+ return x.id == _this3.drag_element.id;
5322
+ });
5323
+
5324
+ _original_event.start = "1900-01-01";
5325
+ _original_event.end = "1900-01-06";
5326
+ this.build_event(_original_event);
5327
+ original_event = this.render_elements.find(function (x) {
5328
+ return x.id == _this3.drag_element.id;
5329
+ });
5330
+ this.drag_element.width = (original_event.end.diff(original_event.start, "days") - 1) * this.options.day_width;
5331
+ } //determino nuovo inizio e nuova fine
5332
+
5333
+
4696
5334
  var duration = original_event.end.diff(original_event.start, "days");
4697
5335
  original_event.start = this.options.from_start.add(day, "days");
4698
5336
  original_event.end = original_event.start.add(duration, "days");
4699
5337
  this.drag_element.start = original_event.start;
4700
- this.drag_element.end = original_event.end;
5338
+ this.drag_element.end = original_event.end; //spostamento su nuovo segmento
5339
+
5340
+ var cur_y = Math.floor(mouseevent.clientY - bounds.top - 10);
5341
+ var current_segment = this.render_segments.find(function (x) {
5342
+ return x.top < cur_y && x.top + x.height > cur_y;
5343
+ });
5344
+
5345
+ if (current_segment != null) {
5346
+ this.drag_element.segment.values.splice(this.drag_element.segment.values.indexOf(original_event), 1);
5347
+ this.drag_element.segment = current_segment;
5348
+ this.drag_element.segment.values.push(original_event);
5349
+ }
5350
+
4701
5351
  var start = original_event.start;
4702
5352
  var end = original_event.end;
4703
- var row_position = Math.floor((mouseevent.clientY - bounds.top) / 40);
5353
+ var row_position = Math.floor((mouseevent.clientY - bounds.top - this.drag_element.segment.top - 10) / 35);
4704
5354
  var down_weigth = null;
4705
5355
  var down_element = null;
4706
5356
  var element_to_move = null;
4707
5357
  var element_to_move_weigth = null;
4708
- down_element = this.render_elements.sort(function (a, b) {
5358
+ down_element = this.drag_element.segment.values.sort(function (a, b) {
4709
5359
  return b.weigth - a.weigth;
4710
5360
  }).filter(function (x) {
4711
5361
  return x.start < end && start < x.end && original_event.id != x.id && x.row < row_position;
@@ -4715,7 +5365,7 @@ var locale_it = __webpack_require__("e4cc");
4715
5365
  down_weigth = down_element[0].weigth;
4716
5366
  }
4717
5367
 
4718
- element_to_move = this.render_elements.sort(function (a, b) {
5368
+ element_to_move = this.drag_element.segment.values.sort(function (a, b) {
4719
5369
  return a.weigth - b.weigth;
4720
5370
  }).filter(function (x) {
4721
5371
  return x.start < end && start < x.end && original_event.id != x.id && x.row >= row_position;
@@ -4735,125 +5385,95 @@ var locale_it = __webpack_require__("e4cc");
4735
5385
  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;
4736
5386
  }
4737
5387
 
4738
- this.refresh_render();
5388
+ this.refresh_render(this.drag_element.segment); //ricalcolo altezza segmento
5389
+
5390
+ var index = 0;
5391
+
5392
+ var _iterator5 = _createForOfIteratorHelper(this.render_segments),
5393
+ _step5;
5394
+
5395
+ try {
5396
+ for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) {
5397
+ var segment = _step5.value;
5398
+ var prec_group = null;
5399
+
5400
+ if (index > 0) {
5401
+ prec_group = this.render_segments[index - 1];
5402
+ }
5403
+
5404
+ if (prec_group != null) {
5405
+ segment.top = prec_group.height + prec_group.top + 10;
5406
+ }
5407
+
5408
+ segment.height = (Math.max.apply(Math, _toConsumableArray(segment.values.map(function (x) {
5409
+ return x.row;
5410
+ }))) + 1) * 35 + 10;
5411
+ index++;
5412
+ }
5413
+ } catch (err) {
5414
+ _iterator5.e(err);
5415
+ } finally {
5416
+ _iterator5.f();
5417
+ }
4739
5418
  }
4740
5419
  },
4741
5420
  endDrag: function endDrag() {
4742
- console.log(this.drag_element);
5421
+ var _this4 = this;
5422
+
5423
+ if (this.resize_event != null && this.resize_event.oncreation == true) {
5424
+ this.resize_event.oncreation = false;
5425
+ }
5426
+
5427
+ this.resize_event = null;
4743
5428
  this.$emit("change-event", this.drag_element);
5429
+
5430
+ if (this.drag_element != null) {
5431
+ var original_event = this.drag_element.segment.values.find(function (x) {
5432
+ return x.id == _this4.drag_element.id;
5433
+ });
5434
+ original_event.ondrag = false;
5435
+ }
5436
+
4744
5437
  this.drag_element = null;
5438
+ },
5439
+ getRandomInt: function getRandomInt(min, max) {
5440
+ min = Math.ceil(min);
5441
+ max = Math.floor(max);
5442
+ return Math.floor(Math.random() * (max - min) + min); // The maximum is exclusive and the minimum is inclusive
4745
5443
  }
4746
5444
  },
4747
5445
  created: function created() {},
4748
5446
  mounted: function mounted() {
5447
+ var _this5 = this;
5448
+
4749
5449
  dayjs_min_default.a.locale("it");
4750
- this.options.from_start = dayjs_min_default()().add(-90, "days"), this.options.to_start = dayjs_min_default()().add(90, "days"), this.render();
5450
+ this.options.from_start = dayjs_min_default()().startOf('month').add(-6, "months");
5451
+ this.options.to_start = dayjs_min_default()().startOf('month').add(6, "months").add(-1, "seconds");
5452
+ this.render();
5453
+ this.$nextTick(function () {
5454
+ _this5.$refs.grid_view.scrollToDay(_this5.$refs.scroll_container_wrapper); // this.$refs.scroll_container_wrapper.onscroll = () => {
5455
+ // if (this.$refs.scroll_container_wrapper.scrollLeft == 0) {
5456
+ // var cur_scroll = this.$refs.scroll_container_wrapper.scrollWidth;
5457
+ // this.options.from_start = this.options.from_start.add(-1, "months");
5458
+ // this.$nextTick(() => {
5459
+ // var diff = this.$refs.scroll_container_wrapper.scrollWidth - cur_scroll;
5460
+ // this.$refs.scroll_container_wrapper.scrollLeft = diff;
5461
+ // this.render();
5462
+ // });
5463
+ // }
5464
+ // if (this.$refs.scroll_container_wrapper.scrollLeft + this.$refs.scroll_container_wrapper.offsetWidth > (this.$refs.scroll_container_wrapper.scrollWidth - 2)) {
5465
+ // this.options.to_start = this.options.to_start.add(1, "months");
5466
+ // this.render();
5467
+ // }
5468
+ // };
5469
+
5470
+ });
4751
5471
  }
4752
5472
  });
4753
5473
  // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=script&lang=js&
4754
5474
  /* harmony default export */ var components_gant_boardvue_type_script_lang_js_ = (gant_boardvue_type_script_lang_js_);
4755
- // EXTERNAL MODULE: ./src/components/gant-board.vue?vue&type=style&index=0&id=7cbeb09a&scoped=true&lang=css&
4756
- var gant_boardvue_type_style_index_0_id_7cbeb09a_scoped_true_lang_css_ = __webpack_require__("cecf");
4757
-
4758
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
4759
- /* globals __VUE_SSR_CONTEXT__ */
4760
-
4761
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
4762
- // This module is a runtime utility for cleaner component module output and will
4763
- // be included in the final webpack user bundle.
4764
-
4765
- function normalizeComponent (
4766
- scriptExports,
4767
- render,
4768
- staticRenderFns,
4769
- functionalTemplate,
4770
- injectStyles,
4771
- scopeId,
4772
- moduleIdentifier, /* server only */
4773
- shadowMode /* vue-cli only */
4774
- ) {
4775
- // Vue.extend constructor export interop
4776
- var options = typeof scriptExports === 'function'
4777
- ? scriptExports.options
4778
- : scriptExports
4779
-
4780
- // render functions
4781
- if (render) {
4782
- options.render = render
4783
- options.staticRenderFns = staticRenderFns
4784
- options._compiled = true
4785
- }
4786
-
4787
- // functional template
4788
- if (functionalTemplate) {
4789
- options.functional = true
4790
- }
4791
-
4792
- // scopedId
4793
- if (scopeId) {
4794
- options._scopeId = 'data-v-' + scopeId
4795
- }
4796
-
4797
- var hook
4798
- if (moduleIdentifier) { // server build
4799
- hook = function (context) {
4800
- // 2.3 injection
4801
- context =
4802
- context || // cached call
4803
- (this.$vnode && this.$vnode.ssrContext) || // stateful
4804
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
4805
- // 2.2 with runInNewContext: true
4806
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
4807
- context = __VUE_SSR_CONTEXT__
4808
- }
4809
- // inject component styles
4810
- if (injectStyles) {
4811
- injectStyles.call(this, context)
4812
- }
4813
- // register component module identifier for async chunk inferrence
4814
- if (context && context._registeredComponents) {
4815
- context._registeredComponents.add(moduleIdentifier)
4816
- }
4817
- }
4818
- // used by ssr in case component is cached and beforeCreate
4819
- // never gets called
4820
- options._ssrRegister = hook
4821
- } else if (injectStyles) {
4822
- hook = shadowMode
4823
- ? function () {
4824
- injectStyles.call(
4825
- this,
4826
- (options.functional ? this.parent : this).$root.$options.shadowRoot
4827
- )
4828
- }
4829
- : injectStyles
4830
- }
4831
-
4832
- if (hook) {
4833
- if (options.functional) {
4834
- // for template-only hot-reload because in that case the render fn doesn't
4835
- // go through the normalizer
4836
- options._injectStyles = hook
4837
- // register for functional component in vue file
4838
- var originalRender = options.render
4839
- options.render = function renderWithStyleInjection (h, context) {
4840
- hook.call(context)
4841
- return originalRender(h, context)
4842
- }
4843
- } else {
4844
- // inject component registration as beforeCreate hook
4845
- var existing = options.beforeCreate
4846
- options.beforeCreate = existing
4847
- ? [].concat(existing, hook)
4848
- : [hook]
4849
- }
4850
- }
4851
-
4852
- return {
4853
- exports: scriptExports,
4854
- options: options
4855
- }
4856
- }
5475
+ // EXTERNAL MODULE: ./src/components/gant-board.vue?vue&type=style&index=0&id=4072adea&scoped=true&lang=css&
5476
+ var gant_boardvue_type_style_index_0_id_4072adea_scoped_true_lang_css_ = __webpack_require__("cf63");
4857
5477
 
4858
5478
  // CONCATENATED MODULE: ./src/components/gant-board.vue
4859
5479
 
@@ -4864,18 +5484,18 @@ function normalizeComponent (
4864
5484
 
4865
5485
  /* normalize component */
4866
5486
 
4867
- var component = normalizeComponent(
5487
+ var gant_board_component = normalizeComponent(
4868
5488
  components_gant_boardvue_type_script_lang_js_,
4869
- gant_boardvue_type_template_id_7cbeb09a_scoped_true_render,
5489
+ gant_boardvue_type_template_id_4072adea_scoped_true_render,
4870
5490
  staticRenderFns,
4871
5491
  false,
4872
5492
  null,
4873
- "7cbeb09a",
5493
+ "4072adea",
4874
5494
  null
4875
5495
 
4876
5496
  )
4877
5497
 
4878
- /* harmony default export */ var gant_board = (component.exports);
5498
+ /* harmony default export */ var gant_board = (gant_board_component.exports);
4879
5499
  // CONCATENATED MODULE: ./src/lib.js
4880
5500
 
4881
5501
  function install(Vue) {