vxe-gantt 3.6.7 → 3.6.9
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/es/gantt/src/gantt-view.js +34 -17
- package/es/gantt/src/util.js +0 -11
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt-view.js +34 -15
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/util.js +0 -12
- package/lib/gantt/src/util.min.js +1 -1
- package/lib/index.umd.js +36 -28
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/gantt/src/gantt-view.ts +34 -17
- package/packages/gantt/src/util.ts +0 -12
package/lib/index.umd.js
CHANGED
|
@@ -8468,7 +8468,7 @@ var core_ = __webpack_require__(4345);
|
|
|
8468
8468
|
|
|
8469
8469
|
var setConfig = core_.VxeUI.setConfig,
|
|
8470
8470
|
setIcon = core_.VxeUI.setIcon;
|
|
8471
|
-
core_.VxeUI.ganttVersion = "3.6.
|
|
8471
|
+
core_.VxeUI.ganttVersion = "3.6.9";
|
|
8472
8472
|
var ymdFormat = 'yyyy-MM-dd';
|
|
8473
8473
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
8474
8474
|
setConfig({
|
|
@@ -8593,7 +8593,7 @@ var es_array_join = __webpack_require__(8598);
|
|
|
8593
8593
|
|
|
8594
8594
|
|
|
8595
8595
|
var log = core_.VxeUI.log;
|
|
8596
|
-
var ganttVersion = "gantt v".concat("3.6.
|
|
8596
|
+
var ganttVersion = "gantt v".concat("3.6.9");
|
|
8597
8597
|
function createComponentLog(name) {
|
|
8598
8598
|
var uiVersion = core_.VxeUI.uiVersion ? "ui v".concat(core_.VxeUI.uiVersion) : '';
|
|
8599
8599
|
var tableVersion = core_.VxeUI.tableVersion ? "table v".concat(core_.VxeUI.tableVersion) : '';
|
|
@@ -9307,17 +9307,6 @@ function getRefElem(refEl) {
|
|
|
9307
9307
|
function getCellRestHeight(rowRest, cellOpts, rowOpts, defaultRowHeight) {
|
|
9308
9308
|
return rowRest.resizeHeight || cellOpts.height || rowOpts.height || rowRest.height || defaultRowHeight;
|
|
9309
9309
|
}
|
|
9310
|
-
function getStandardGapTime(type) {
|
|
9311
|
-
switch (type) {
|
|
9312
|
-
case 'hour':
|
|
9313
|
-
return 1000 * 60 * 60;
|
|
9314
|
-
case 'minute':
|
|
9315
|
-
return 1000 * 60;
|
|
9316
|
-
case 'second':
|
|
9317
|
-
return 1000;
|
|
9318
|
-
}
|
|
9319
|
-
return 1000 * 60 * 60 * 24;
|
|
9320
|
-
}
|
|
9321
9310
|
function getTaskBarLeft(chartRest, viewCellWidth) {
|
|
9322
9311
|
return chartRest ? viewCellWidth * chartRest.oLeftSize : 0;
|
|
9323
9312
|
}
|
|
@@ -10858,7 +10847,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10858
10847
|
var currStep = scaleStep - 1;
|
|
10859
10848
|
while (currStep) {
|
|
10860
10849
|
var _currStr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatYear(dateObj.date, scaleStep - currStep), renderFormat);
|
|
10861
|
-
indexMaps[_currStr] = i + currRatio;
|
|
10850
|
+
indexMaps[_currStr] = i + (scaleStep - currStep) * currRatio;
|
|
10862
10851
|
currStep--;
|
|
10863
10852
|
}
|
|
10864
10853
|
}
|
|
@@ -10906,7 +10895,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10906
10895
|
var currStep = scaleStep - 1;
|
|
10907
10896
|
while (currStep) {
|
|
10908
10897
|
var _currStr2 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatQuarter(dateObj.date, scaleStep - currStep), _renderFormat);
|
|
10909
|
-
_indexMaps[_currStr2] = i + currRatio;
|
|
10898
|
+
_indexMaps[_currStr2] = i + (scaleStep - currStep) * currRatio;
|
|
10910
10899
|
currStep--;
|
|
10911
10900
|
}
|
|
10912
10901
|
}
|
|
@@ -10954,7 +10943,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10954
10943
|
var currStep = scaleStep - 1;
|
|
10955
10944
|
while (currStep) {
|
|
10956
10945
|
var _currStr3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(dateObj.date, scaleStep - currStep), _renderFormat2);
|
|
10957
|
-
_indexMaps2[_currStr3] = i + currRatio;
|
|
10946
|
+
_indexMaps2[_currStr3] = i + (scaleStep - currStep) * currRatio;
|
|
10958
10947
|
currStep--;
|
|
10959
10948
|
}
|
|
10960
10949
|
}
|
|
@@ -11011,7 +11000,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
11011
11000
|
yyyy = "".concat(Number(yyyy) + 1);
|
|
11012
11001
|
}
|
|
11013
11002
|
var _currStr4 = "".concat(yyyy, "-").concat(W);
|
|
11014
|
-
_indexMaps3[_currStr4] = i + currRatio;
|
|
11003
|
+
_indexMaps3[_currStr4] = i + (scaleStep - currStep) * currRatio;
|
|
11015
11004
|
currStep--;
|
|
11016
11005
|
}
|
|
11017
11006
|
}
|
|
@@ -11060,7 +11049,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
11060
11049
|
var currStep = scaleStep - 1;
|
|
11061
11050
|
while (currStep) {
|
|
11062
11051
|
var _currStr5 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(dateObj.date, scaleStep - currStep), _renderFormat3);
|
|
11063
|
-
_indexMaps4[_currStr5] = i + currRatio;
|
|
11052
|
+
_indexMaps4[_currStr5] = i + (scaleStep - currStep) * currRatio;
|
|
11064
11053
|
currStep--;
|
|
11065
11054
|
}
|
|
11066
11055
|
}
|
|
@@ -11105,7 +11094,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
11105
11094
|
var currStep = scaleStep - 1;
|
|
11106
11095
|
while (currStep) {
|
|
11107
11096
|
var _currStr6 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatHours(dateObj.date, scaleStep - currStep), _renderFormat4);
|
|
11108
|
-
_indexMaps5[_currStr6] = i + currRatio;
|
|
11097
|
+
_indexMaps5[_currStr6] = i + (scaleStep - currStep) * currRatio;
|
|
11109
11098
|
currStep--;
|
|
11110
11099
|
}
|
|
11111
11100
|
}
|
|
@@ -11150,7 +11139,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
11150
11139
|
var currStep = scaleStep - 1;
|
|
11151
11140
|
while (currStep) {
|
|
11152
11141
|
var _currStr7 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMinutes(dateObj.date, scaleStep - currStep), _renderFormat5);
|
|
11153
|
-
_indexMaps6[_currStr7] = i + currRatio;
|
|
11142
|
+
_indexMaps6[_currStr7] = i + (scaleStep - currStep) * currRatio;
|
|
11154
11143
|
currStep--;
|
|
11155
11144
|
}
|
|
11156
11145
|
}
|
|
@@ -11195,7 +11184,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
11195
11184
|
var currStep = scaleStep - 1;
|
|
11196
11185
|
while (currStep) {
|
|
11197
11186
|
var _yyyyMM = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatSeconds(dateObj.date, scaleStep - currStep), _renderFormat6);
|
|
11198
|
-
_indexMaps7[_yyyyMM] = i + currRatio;
|
|
11187
|
+
_indexMaps7[_yyyyMM] = i + (scaleStep - currStep) * currRatio;
|
|
11199
11188
|
currStep--;
|
|
11200
11189
|
}
|
|
11201
11190
|
}
|
|
@@ -12165,16 +12154,35 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
12165
12154
|
break;
|
|
12166
12155
|
}
|
|
12167
12156
|
case 'hour':
|
|
12157
|
+
{
|
|
12158
|
+
var _currDate5 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatHours(minViewDate, leftSize, 'first');
|
|
12159
|
+
var _endDate5 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatHours(maxViewDate, rightSize, 'first');
|
|
12160
|
+
while (_currDate5 <= _endDate5) {
|
|
12161
|
+
var _itemDate5 = _currDate5;
|
|
12162
|
+
dateList.push(_itemDate5);
|
|
12163
|
+
_currDate5 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatHours(_currDate5, scaleStep);
|
|
12164
|
+
}
|
|
12165
|
+
break;
|
|
12166
|
+
}
|
|
12168
12167
|
case 'minute':
|
|
12168
|
+
{
|
|
12169
|
+
var _currDate6 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMinutes(minViewDate, leftSize, 'first');
|
|
12170
|
+
var _endDate6 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMinutes(maxViewDate, rightSize, 'first');
|
|
12171
|
+
while (_currDate6 <= _endDate6) {
|
|
12172
|
+
var _itemDate6 = _currDate6;
|
|
12173
|
+
dateList.push(_itemDate6);
|
|
12174
|
+
_currDate6 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMinutes(_currDate6, scaleStep);
|
|
12175
|
+
}
|
|
12176
|
+
break;
|
|
12177
|
+
}
|
|
12169
12178
|
case 'second':
|
|
12170
12179
|
{
|
|
12171
|
-
var
|
|
12172
|
-
var
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
currTime += gapTime;
|
|
12180
|
+
var _currDate7 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatSeconds(minViewDate, leftSize, 'first');
|
|
12181
|
+
var _endDate7 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatSeconds(maxViewDate, rightSize, 'first');
|
|
12182
|
+
while (_currDate7 <= _endDate7) {
|
|
12183
|
+
var _itemDate7 = _currDate7;
|
|
12184
|
+
dateList.push(_itemDate7);
|
|
12185
|
+
_currDate7 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatSeconds(_currDate7, scaleStep);
|
|
12178
12186
|
}
|
|
12179
12187
|
break;
|
|
12180
12188
|
}
|