vxe-gantt 3.6.7 → 3.6.8

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.
package/lib/ui/index.js CHANGED
@@ -13,7 +13,7 @@ exports.default = void 0;
13
13
  var _core = require("@vxe-ui/core");
14
14
  var setConfig = _core.VxeUI.setConfig,
15
15
  setIcon = _core.VxeUI.setIcon;
16
- _core.VxeUI.ganttVersion = "3.6.7";
16
+ _core.VxeUI.ganttVersion = "3.6.8";
17
17
  var ymdFormat = 'yyyy-MM-dd';
18
18
  var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
19
19
  setConfig({
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.6.7","yyyy-MM-dd"),ymdhmsFormat="yyyy-MM-dd HH:mm:ss",iconPrefix=(setConfig({gantt:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:null,result:"result",total:"page.total",message:"message"}},taskBarTooltipConfig:{enterable:!0},taskLinkConfig:{enabled:!0,isHover:!0,showArrow:!0},taskViewScaleConfig:{year:{valueFormat:ymdFormat},quarter:{valueFormat:ymdFormat},month:{valueFormat:ymdFormat},week:{startDay:1,valueFormat:ymdFormat},day:{valueFormat:ymdFormat},date:{valueFormat:ymdFormat},hour:{valueFormat:ymdhmsFormat},minute:{valueFormat:ymdhmsFormat},second:{valueFormat:ymdhmsFormat}},taskViewConfig:{showNowLine:!0,gridding:{leftSpacing:1,rightSpacing:1}},taskSplitConfig:{enabled:!0,resize:!0,autoHideCollapseButton:!0,showCollapseTableButton:!0,showCollapseTaskButton:!0},taskBarSubviewConfig:{}}}),"vxe-icon-"),_default=(setIcon({GANTT_VIEW_LEFT_OPEN:iconPrefix+"arrow-left",GANTT_VIEW_LEFT_CLOSE:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_OPEN:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_CLOSE:iconPrefix+"arrow-left",GANTT_VIEW_TASK_MILESTONE:iconPrefix+"square-fill rotate45"}),exports.default=_core.VxeUI);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.6.8","yyyy-MM-dd"),ymdhmsFormat="yyyy-MM-dd HH:mm:ss",iconPrefix=(setConfig({gantt:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:null,result:"result",total:"page.total",message:"message"}},taskBarTooltipConfig:{enterable:!0},taskLinkConfig:{enabled:!0,isHover:!0,showArrow:!0},taskViewScaleConfig:{year:{valueFormat:ymdFormat},quarter:{valueFormat:ymdFormat},month:{valueFormat:ymdFormat},week:{startDay:1,valueFormat:ymdFormat},day:{valueFormat:ymdFormat},date:{valueFormat:ymdFormat},hour:{valueFormat:ymdhmsFormat},minute:{valueFormat:ymdhmsFormat},second:{valueFormat:ymdhmsFormat}},taskViewConfig:{showNowLine:!0,gridding:{leftSpacing:1,rightSpacing:1}},taskSplitConfig:{enabled:!0,resize:!0,autoHideCollapseButton:!0,showCollapseTableButton:!0,showCollapseTaskButton:!0},taskBarSubviewConfig:{}}}),"vxe-icon-"),_default=(setIcon({GANTT_VIEW_LEFT_OPEN:iconPrefix+"arrow-left",GANTT_VIEW_LEFT_CLOSE:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_OPEN:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_CLOSE:iconPrefix+"arrow-left",GANTT_VIEW_TASK_MILESTONE:iconPrefix+"square-fill rotate45"}),exports.default=_core.VxeUI);
package/lib/ui/src/log.js CHANGED
@@ -7,7 +7,7 @@ exports.createComponentLog = createComponentLog;
7
7
  exports.warnLog = exports.errLog = void 0;
8
8
  var _core = require("@vxe-ui/core");
9
9
  var log = _core.VxeUI.log;
10
- var ganttVersion = "gantt v".concat("3.6.7");
10
+ var ganttVersion = "gantt v".concat("3.6.8");
11
11
  function createComponentLog(name) {
12
12
  var uiVersion = _core.VxeUI.uiVersion ? "ui v".concat(_core.VxeUI.uiVersion) : '';
13
13
  var tableVersion = _core.VxeUI.tableVersion ? "table v".concat(_core.VxeUI.tableVersion) : '';
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,ganttVersion="gantt v".concat("3.6.7");function createComponentLog(e){var r=_core.VxeUI.uiVersion?"ui v".concat(_core.VxeUI.uiVersion):"",o=_core.VxeUI.tableVersion?"table v".concat(_core.VxeUI.tableVersion):"",n=_core.VxeUI.designVersion?"design v".concat(_core.VxeUI.designVersion):"",r=[r,o,ganttVersion,n].filter(function(e){return e}).join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}var warnLog=exports.warnLog=log.create("warn",ganttVersion),errLog=exports.errLog=log.create("error",ganttVersion);
1
+ Object.defineProperty(exports,"__esModule",{value:!0}),exports.createComponentLog=createComponentLog,exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,ganttVersion="gantt v".concat("3.6.8");function createComponentLog(e){var r=_core.VxeUI.uiVersion?"ui v".concat(_core.VxeUI.uiVersion):"",o=_core.VxeUI.tableVersion?"table v".concat(_core.VxeUI.tableVersion):"",n=_core.VxeUI.designVersion?"design v".concat(_core.VxeUI.designVersion):"",r=[r,o,ganttVersion,n].filter(function(e){return e}).join(" ");return{warnLog:log.create("warn",r+"] ["+e),errLog:log.create("error",r+"] ["+e)}}var warnLog=exports.warnLog=log.create("warn",ganttVersion),errLog=exports.errLog=log.create("error",ganttVersion);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-gantt",
3
- "version": "3.6.7",
3
+ "version": "3.6.8",
4
4
  "description": "A vue based gantt component",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -380,7 +380,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
380
380
  let currStep = scaleStep - 1
381
381
  while (currStep) {
382
382
  const currStr = XEUtils.toDateString(XEUtils.getWhatYear(dateObj.date, scaleStep - currStep), renderFormat)
383
- indexMaps[currStr] = i + currRatio
383
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
384
384
  currStep--
385
385
  }
386
386
  }
@@ -426,7 +426,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
426
426
  let currStep = scaleStep - 1
427
427
  while (currStep) {
428
428
  const currStr = XEUtils.toDateString(XEUtils.getWhatQuarter(dateObj.date, scaleStep - currStep), renderFormat)
429
- indexMaps[currStr] = i + currRatio
429
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
430
430
  currStep--
431
431
  }
432
432
  }
@@ -472,7 +472,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
472
472
  let currStep = scaleStep - 1
473
473
  while (currStep) {
474
474
  const currStr = XEUtils.toDateString(XEUtils.getWhatMonth(dateObj.date, scaleStep - currStep), renderFormat)
475
- indexMaps[currStr] = i + currRatio
475
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
476
476
  currStep--
477
477
  }
478
478
  }
@@ -524,7 +524,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
524
524
  yyyy = `${Number(yyyy) + 1}`
525
525
  }
526
526
  const currStr = `${yyyy}-${W}`
527
- indexMaps[currStr] = i + currRatio
527
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
528
528
  currStep--
529
529
  }
530
530
  }
@@ -571,7 +571,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
571
571
  let currStep = scaleStep - 1
572
572
  while (currStep) {
573
573
  const currStr = XEUtils.toDateString(XEUtils.getWhatDay(dateObj.date, scaleStep - currStep), renderFormat)
574
- indexMaps[currStr] = i + currRatio
574
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
575
575
  currStep--
576
576
  }
577
577
  }
@@ -614,7 +614,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
614
614
  let currStep = scaleStep - 1
615
615
  while (currStep) {
616
616
  const currStr = XEUtils.toDateString(XEUtils.getWhatHours(dateObj.date, scaleStep - currStep), renderFormat)
617
- indexMaps[currStr] = i + currRatio
617
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
618
618
  currStep--
619
619
  }
620
620
  }
@@ -657,7 +657,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
657
657
  let currStep = scaleStep - 1
658
658
  while (currStep) {
659
659
  const currStr = XEUtils.toDateString(XEUtils.getWhatMinutes(dateObj.date, scaleStep - currStep), renderFormat)
660
- indexMaps[currStr] = i + currRatio
660
+ indexMaps[currStr] = i + ((scaleStep - currStep) * currRatio)
661
661
  currStep--
662
662
  }
663
663
  }
@@ -700,7 +700,7 @@ function createChartRender ($xeGanttView: VxeGanttViewConstructor & VxeGanttView
700
700
  let currStep = scaleStep - 1
701
701
  while (currStep) {
702
702
  const yyyyMM = XEUtils.toDateString(XEUtils.getWhatSeconds(dateObj.date, scaleStep - currStep), renderFormat)
703
- indexMaps[yyyyMM] = i + currRatio
703
+ indexMaps[yyyyMM] = i + ((scaleStep - currStep) * currRatio)
704
704
  currStep--
705
705
  }
706
706
  }