gant-board 1.0.10 → 1.0.11

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.
@@ -1638,20 +1638,6 @@ module.exports = {
1638
1638
  };
1639
1639
 
1640
1640
 
1641
- /***/ }),
1642
-
1643
- /***/ "602d":
1644
- /***/ (function(module, exports, __webpack_require__) {
1645
-
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;
1653
-
1654
-
1655
1641
  /***/ }),
1656
1642
 
1657
1643
  /***/ "6547":
@@ -1931,6 +1917,17 @@ module.exports = function (NAME) {
1931
1917
  };
1932
1918
 
1933
1919
 
1920
+ /***/ }),
1921
+
1922
+ /***/ "755d":
1923
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1924
+
1925
+ "use strict";
1926
+ /* 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_a1c49f34_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("aa48");
1927
+ /* 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_a1c49f34_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_a1c49f34_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
1928
+ /* unused harmony reexport * */
1929
+
1930
+
1934
1931
  /***/ }),
1935
1932
 
1936
1933
  /***/ "7839":
@@ -3170,6 +3167,36 @@ module.exports = function (METHOD_NAME, argument) {
3170
3167
  };
3171
3168
 
3172
3169
 
3170
+ /***/ }),
3171
+
3172
+ /***/ "aa48":
3173
+ /***/ (function(module, exports, __webpack_require__) {
3174
+
3175
+ // style-loader: Adds some css to the DOM by adding a <style> tag
3176
+
3177
+ // load the styles
3178
+ var content = __webpack_require__("ac12");
3179
+ if(content.__esModule) content = content.default;
3180
+ if(typeof content === 'string') content = [[module.i, content, '']];
3181
+ if(content.locals) module.exports = content.locals;
3182
+ // add the styles to the DOM
3183
+ var add = __webpack_require__("499e").default
3184
+ var update = add("43ec8a04", content, true, {"sourceMap":false,"shadowMode":false});
3185
+
3186
+ /***/ }),
3187
+
3188
+ /***/ "ac12":
3189
+ /***/ (function(module, exports, __webpack_require__) {
3190
+
3191
+ // Imports
3192
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
3193
+ exports = ___CSS_LOADER_API_IMPORT___(false);
3194
+ // Module
3195
+ exports.push([module.i, ".events-container[data-v-a1c49f34]{height:200px;height:100%;position:relative}.event[data-v-a1c49f34]{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-a1c49f34]{min-width:10px}.event_title[data-v-a1c49f34]{flex-grow:1;text-align:start;min-width:0;font-size:12px}.event[data-v-a1c49f34]:hover{box-shadow:0 1px 4px rgba(0,0,0,.16)}.hide[data-v-a1c49f34]{right:-320px!important}.noselect[data-v-a1c49f34]{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.by-scroll-container[data-v-a1c49f34]::-webkit-scrollbar-track{background-color:#fff}.by-scroll-container[data-v-a1c49f34]::-webkit-scrollbar{width:10px;height:10px;background-color:#f5f5f5}.by-scroll-container[data-v-a1c49f34]::-webkit-scrollbar-thumb{border-radius:10px;-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#999}", ""]);
3196
+ // Exports
3197
+ module.exports = exports;
3198
+
3199
+
3173
3200
  /***/ }),
3174
3201
 
3175
3202
  /***/ "ac1f":
@@ -3661,17 +3688,6 @@ module.exports = function (key, value) {
3661
3688
  };
3662
3689
 
3663
3690
 
3664
- /***/ }),
3665
-
3666
- /***/ "cf63":
3667
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3668
-
3669
- "use strict";
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__);
3672
- /* unused harmony reexport * */
3673
-
3674
-
3675
3691
  /***/ }),
3676
3692
 
3677
3693
  /***/ "d012":
@@ -3836,22 +3852,6 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3836
3852
  });
3837
3853
 
3838
3854
 
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
-
3855
3855
  /***/ }),
3856
3856
 
3857
3857
  /***/ "d998":
@@ -4339,8 +4339,8 @@ if (typeof window !== 'undefined') {
4339
4339
  // Indicate to webpack that this file can be concatenated
4340
4340
  /* harmony default export */ var setPublicPath = (null);
4341
4341
 
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:({
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=a1c49f34&scoped=true&
4343
+ var gant_boardvue_type_template_id_a1c49f34_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
4344
  'background-image': 'url(' +segment.key.image + ')',
4345
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
4346
  width: event.width + 'px',
@@ -4357,7 +4357,7 @@ var gant_boardvue_type_template_id_4072adea_scoped_true_render = function () {va
4357
4357
  var staticRenderFns = []
4358
4358
 
4359
4359
 
4360
- // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=4072adea&scoped=true&
4360
+ // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=a1c49f34&scoped=true&
4361
4361
 
4362
4362
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
4363
4363
  var es_symbol = __webpack_require__("a4d3");
@@ -5460,29 +5460,34 @@ var component = normalizeComponent(
5460
5460
  this.options.to_start = dayjs_min_default()().startOf('month').add(6, "months").add(-1, "seconds");
5461
5461
  this.render();
5462
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
- // };
5463
+ _this5.$refs.grid_view.scrollToDay(_this5.$refs.scroll_container_wrapper);
5464
+
5465
+ _this5.$refs.scroll_container_wrapper.onscroll = function () {
5466
+ if (_this5.$refs.scroll_container_wrapper.scrollLeft == 0) {
5467
+ var cur_scroll = _this5.$refs.scroll_container_wrapper.scrollWidth;
5468
+ _this5.options.from_start = _this5.options.from_start.add(-1, "months");
5469
+
5470
+ _this5.$nextTick(function () {
5471
+ var diff = _this5.$refs.scroll_container_wrapper.scrollWidth - cur_scroll;
5472
+ _this5.$refs.scroll_container_wrapper.scrollLeft = diff;
5478
5473
 
5474
+ _this5.render();
5475
+ });
5476
+ }
5477
+
5478
+ if (_this5.$refs.scroll_container_wrapper.scrollLeft + _this5.$refs.scroll_container_wrapper.offsetWidth > _this5.$refs.scroll_container_wrapper.scrollWidth - 2) {
5479
+ _this5.options.to_start = _this5.options.to_start.add(1, "months");
5480
+
5481
+ _this5.render();
5482
+ }
5483
+ };
5479
5484
  });
5480
5485
  }
5481
5486
  });
5482
5487
  // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=script&lang=js&
5483
5488
  /* harmony default export */ var components_gant_boardvue_type_script_lang_js_ = (gant_boardvue_type_script_lang_js_);
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");
5489
+ // EXTERNAL MODULE: ./src/components/gant-board.vue?vue&type=style&index=0&id=a1c49f34&scoped=true&lang=css&
5490
+ var gant_boardvue_type_style_index_0_id_a1c49f34_scoped_true_lang_css_ = __webpack_require__("755d");
5486
5491
 
5487
5492
  // CONCATENATED MODULE: ./src/components/gant-board.vue
5488
5493
 
@@ -5495,11 +5500,11 @@ var gant_boardvue_type_style_index_0_id_4072adea_scoped_true_lang_css_ = __webpa
5495
5500
 
5496
5501
  var gant_board_component = normalizeComponent(
5497
5502
  components_gant_boardvue_type_script_lang_js_,
5498
- gant_boardvue_type_template_id_4072adea_scoped_true_render,
5503
+ gant_boardvue_type_template_id_a1c49f34_scoped_true_render,
5499
5504
  staticRenderFns,
5500
5505
  false,
5501
5506
  null,
5502
- "4072adea",
5507
+ "a1c49f34",
5503
5508
  null
5504
5509
 
5505
5510
  )