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.
@@ -1629,20 +1629,6 @@ module.exports = {
1629
1629
  };
1630
1630
 
1631
1631
 
1632
- /***/ }),
1633
-
1634
- /***/ "602d":
1635
- /***/ (function(module, exports, __webpack_require__) {
1636
-
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;
1644
-
1645
-
1646
1632
  /***/ }),
1647
1633
 
1648
1634
  /***/ "6547":
@@ -1922,6 +1908,17 @@ module.exports = function (NAME) {
1922
1908
  };
1923
1909
 
1924
1910
 
1911
+ /***/ }),
1912
+
1913
+ /***/ "755d":
1914
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1915
+
1916
+ "use strict";
1917
+ /* 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");
1918
+ /* 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__);
1919
+ /* unused harmony reexport * */
1920
+
1921
+
1925
1922
  /***/ }),
1926
1923
 
1927
1924
  /***/ "7839":
@@ -3161,6 +3158,36 @@ module.exports = function (METHOD_NAME, argument) {
3161
3158
  };
3162
3159
 
3163
3160
 
3161
+ /***/ }),
3162
+
3163
+ /***/ "aa48":
3164
+ /***/ (function(module, exports, __webpack_require__) {
3165
+
3166
+ // style-loader: Adds some css to the DOM by adding a <style> tag
3167
+
3168
+ // load the styles
3169
+ var content = __webpack_require__("ac12");
3170
+ if(content.__esModule) content = content.default;
3171
+ if(typeof content === 'string') content = [[module.i, content, '']];
3172
+ if(content.locals) module.exports = content.locals;
3173
+ // add the styles to the DOM
3174
+ var add = __webpack_require__("499e").default
3175
+ var update = add("43ec8a04", content, true, {"sourceMap":false,"shadowMode":false});
3176
+
3177
+ /***/ }),
3178
+
3179
+ /***/ "ac12":
3180
+ /***/ (function(module, exports, __webpack_require__) {
3181
+
3182
+ // Imports
3183
+ var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
3184
+ exports = ___CSS_LOADER_API_IMPORT___(false);
3185
+ // Module
3186
+ 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}", ""]);
3187
+ // Exports
3188
+ module.exports = exports;
3189
+
3190
+
3164
3191
  /***/ }),
3165
3192
 
3166
3193
  /***/ "ac1f":
@@ -3652,17 +3679,6 @@ module.exports = function (key, value) {
3652
3679
  };
3653
3680
 
3654
3681
 
3655
- /***/ }),
3656
-
3657
- /***/ "cf63":
3658
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3659
-
3660
- "use strict";
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__);
3663
- /* unused harmony reexport * */
3664
-
3665
-
3666
3682
  /***/ }),
3667
3683
 
3668
3684
  /***/ "d012":
@@ -3827,22 +3843,6 @@ $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
3827
3843
  });
3828
3844
 
3829
3845
 
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
-
3846
3846
  /***/ }),
3847
3847
 
3848
3848
  /***/ "d998":
@@ -4330,8 +4330,8 @@ if (typeof window !== 'undefined') {
4330
4330
  // Indicate to webpack that this file can be concatenated
4331
4331
  /* harmony default export */ var setPublicPath = (null);
4332
4332
 
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:({
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=a1c49f34&scoped=true&
4334
+ 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:({
4335
4335
  'background-image': 'url(' +segment.key.image + ')',
4336
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
4337
  width: event.width + 'px',
@@ -4348,7 +4348,7 @@ var gant_boardvue_type_template_id_4072adea_scoped_true_render = function () {va
4348
4348
  var staticRenderFns = []
4349
4349
 
4350
4350
 
4351
- // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=4072adea&scoped=true&
4351
+ // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=template&id=a1c49f34&scoped=true&
4352
4352
 
4353
4353
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
4354
4354
  var es_symbol = __webpack_require__("a4d3");
@@ -5451,29 +5451,34 @@ var component = normalizeComponent(
5451
5451
  this.options.to_start = dayjs_min_default()().startOf('month').add(6, "months").add(-1, "seconds");
5452
5452
  this.render();
5453
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
- // };
5454
+ _this5.$refs.grid_view.scrollToDay(_this5.$refs.scroll_container_wrapper);
5455
+
5456
+ _this5.$refs.scroll_container_wrapper.onscroll = function () {
5457
+ if (_this5.$refs.scroll_container_wrapper.scrollLeft == 0) {
5458
+ var cur_scroll = _this5.$refs.scroll_container_wrapper.scrollWidth;
5459
+ _this5.options.from_start = _this5.options.from_start.add(-1, "months");
5460
+
5461
+ _this5.$nextTick(function () {
5462
+ var diff = _this5.$refs.scroll_container_wrapper.scrollWidth - cur_scroll;
5463
+ _this5.$refs.scroll_container_wrapper.scrollLeft = diff;
5469
5464
 
5465
+ _this5.render();
5466
+ });
5467
+ }
5468
+
5469
+ if (_this5.$refs.scroll_container_wrapper.scrollLeft + _this5.$refs.scroll_container_wrapper.offsetWidth > _this5.$refs.scroll_container_wrapper.scrollWidth - 2) {
5470
+ _this5.options.to_start = _this5.options.to_start.add(1, "months");
5471
+
5472
+ _this5.render();
5473
+ }
5474
+ };
5470
5475
  });
5471
5476
  }
5472
5477
  });
5473
5478
  // CONCATENATED MODULE: ./src/components/gant-board.vue?vue&type=script&lang=js&
5474
5479
  /* harmony default export */ var components_gant_boardvue_type_script_lang_js_ = (gant_boardvue_type_script_lang_js_);
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");
5480
+ // EXTERNAL MODULE: ./src/components/gant-board.vue?vue&type=style&index=0&id=a1c49f34&scoped=true&lang=css&
5481
+ var gant_boardvue_type_style_index_0_id_a1c49f34_scoped_true_lang_css_ = __webpack_require__("755d");
5477
5482
 
5478
5483
  // CONCATENATED MODULE: ./src/components/gant-board.vue
5479
5484
 
@@ -5486,11 +5491,11 @@ var gant_boardvue_type_style_index_0_id_4072adea_scoped_true_lang_css_ = __webpa
5486
5491
 
5487
5492
  var gant_board_component = normalizeComponent(
5488
5493
  components_gant_boardvue_type_script_lang_js_,
5489
- gant_boardvue_type_template_id_4072adea_scoped_true_render,
5494
+ gant_boardvue_type_template_id_a1c49f34_scoped_true_render,
5490
5495
  staticRenderFns,
5491
5496
  false,
5492
5497
  null,
5493
- "4072adea",
5498
+ "a1c49f34",
5494
5499
  null
5495
5500
 
5496
5501
  )