vxe-gantt 3.1.3 → 3.1.4
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 +41 -24
- package/es/gantt/src/gantt.js +2 -1
- package/es/ui/index.js +6 -2
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt-view.js +67 -36
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +2 -1
- package/lib/index.umd.js +180 -40
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.js +6 -2
- 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 +3 -3
- package/packages/gantt/src/gantt-view.ts +41 -24
- package/packages/gantt/src/gantt.ts +2 -1
- package/packages/ui/index.ts +5 -1
package/lib/index.umd.js
CHANGED
|
@@ -625,6 +625,49 @@ module.exports = function (NAME) {
|
|
|
625
625
|
};
|
|
626
626
|
|
|
627
627
|
|
|
628
|
+
/***/ }),
|
|
629
|
+
|
|
630
|
+
/***/ 533:
|
|
631
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
632
|
+
|
|
633
|
+
"use strict";
|
|
634
|
+
|
|
635
|
+
var uncurryThis = __webpack_require__(9504);
|
|
636
|
+
var toLength = __webpack_require__(8014);
|
|
637
|
+
var toString = __webpack_require__(655);
|
|
638
|
+
var $repeat = __webpack_require__(2333);
|
|
639
|
+
var requireObjectCoercible = __webpack_require__(7750);
|
|
640
|
+
|
|
641
|
+
var repeat = uncurryThis($repeat);
|
|
642
|
+
var stringSlice = uncurryThis(''.slice);
|
|
643
|
+
var ceil = Math.ceil;
|
|
644
|
+
|
|
645
|
+
// `String.prototype.{ padStart, padEnd }` methods implementation
|
|
646
|
+
var createMethod = function (IS_END) {
|
|
647
|
+
return function ($this, maxLength, fillString) {
|
|
648
|
+
var S = toString(requireObjectCoercible($this));
|
|
649
|
+
var intMaxLength = toLength(maxLength);
|
|
650
|
+
var stringLength = S.length;
|
|
651
|
+
var fillStr = fillString === undefined ? ' ' : toString(fillString);
|
|
652
|
+
var fillLen, stringFiller;
|
|
653
|
+
if (intMaxLength <= stringLength || fillStr === '') return S;
|
|
654
|
+
fillLen = intMaxLength - stringLength;
|
|
655
|
+
stringFiller = repeat(fillStr, ceil(fillLen / fillStr.length));
|
|
656
|
+
if (stringFiller.length > fillLen) stringFiller = stringSlice(stringFiller, 0, fillLen);
|
|
657
|
+
return IS_END ? S + stringFiller : stringFiller + S;
|
|
658
|
+
};
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
module.exports = {
|
|
662
|
+
// `String.prototype.padStart` method
|
|
663
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
664
|
+
start: createMethod(false),
|
|
665
|
+
// `String.prototype.padEnd` method
|
|
666
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padend
|
|
667
|
+
end: createMethod(true)
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
|
|
628
671
|
/***/ }),
|
|
629
672
|
|
|
630
673
|
/***/ 537:
|
|
@@ -2045,6 +2088,31 @@ module.exports = function (O, defaultConstructor) {
|
|
|
2045
2088
|
};
|
|
2046
2089
|
|
|
2047
2090
|
|
|
2091
|
+
/***/ }),
|
|
2092
|
+
|
|
2093
|
+
/***/ 2333:
|
|
2094
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2095
|
+
|
|
2096
|
+
"use strict";
|
|
2097
|
+
|
|
2098
|
+
var toIntegerOrInfinity = __webpack_require__(1291);
|
|
2099
|
+
var toString = __webpack_require__(655);
|
|
2100
|
+
var requireObjectCoercible = __webpack_require__(7750);
|
|
2101
|
+
|
|
2102
|
+
var $RangeError = RangeError;
|
|
2103
|
+
|
|
2104
|
+
// `String.prototype.repeat` method implementation
|
|
2105
|
+
// https://tc39.es/ecma262/#sec-string.prototype.repeat
|
|
2106
|
+
module.exports = function repeat(count) {
|
|
2107
|
+
var str = toString(requireObjectCoercible(this));
|
|
2108
|
+
var result = '';
|
|
2109
|
+
var n = toIntegerOrInfinity(count);
|
|
2110
|
+
if (n < 0 || n === Infinity) throw new $RangeError('Wrong number of repetitions');
|
|
2111
|
+
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
|
|
2112
|
+
return result;
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2115
|
+
|
|
2048
2116
|
/***/ }),
|
|
2049
2117
|
|
|
2050
2118
|
/***/ 2360:
|
|
@@ -2721,6 +2789,19 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
2721
2789
|
}() : undefined);
|
|
2722
2790
|
|
|
2723
2791
|
|
|
2792
|
+
/***/ }),
|
|
2793
|
+
|
|
2794
|
+
/***/ 3063:
|
|
2795
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2796
|
+
|
|
2797
|
+
"use strict";
|
|
2798
|
+
|
|
2799
|
+
// https://github.com/zloirock/core-js/issues/280
|
|
2800
|
+
var userAgent = __webpack_require__(2839);
|
|
2801
|
+
|
|
2802
|
+
module.exports = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
|
|
2803
|
+
|
|
2804
|
+
|
|
2724
2805
|
/***/ }),
|
|
2725
2806
|
|
|
2726
2807
|
/***/ 3110:
|
|
@@ -6712,6 +6793,26 @@ $({ global: true, constructor: true, forced: FORCED }, {
|
|
|
6712
6793
|
});
|
|
6713
6794
|
|
|
6714
6795
|
|
|
6796
|
+
/***/ }),
|
|
6797
|
+
|
|
6798
|
+
/***/ 8156:
|
|
6799
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
6800
|
+
|
|
6801
|
+
"use strict";
|
|
6802
|
+
|
|
6803
|
+
var $ = __webpack_require__(6518);
|
|
6804
|
+
var $padStart = (__webpack_require__(533).start);
|
|
6805
|
+
var WEBKIT_BUG = __webpack_require__(3063);
|
|
6806
|
+
|
|
6807
|
+
// `String.prototype.padStart` method
|
|
6808
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padstart
|
|
6809
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
6810
|
+
padStart: function padStart(maxLength /* , fillString = ' ' */) {
|
|
6811
|
+
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
6812
|
+
}
|
|
6813
|
+
});
|
|
6814
|
+
|
|
6815
|
+
|
|
6715
6816
|
/***/ }),
|
|
6716
6817
|
|
|
6717
6818
|
/***/ 8183:
|
|
@@ -8182,7 +8283,7 @@ var core_ = __webpack_require__(4345);
|
|
|
8182
8283
|
;// ./packages/ui/src/log.ts
|
|
8183
8284
|
|
|
8184
8285
|
var log = core_.VxeUI.log;
|
|
8185
|
-
var version = "gantt v".concat("3.1.
|
|
8286
|
+
var version = "gantt v".concat("3.1.4");
|
|
8186
8287
|
var warnLog = log.create('warn', version);
|
|
8187
8288
|
var errLog = log.create('error', version);
|
|
8188
8289
|
;// ./packages/ui/index.ts
|
|
@@ -8192,7 +8293,7 @@ var errLog = log.create('error', version);
|
|
|
8192
8293
|
var setConfig = core_.VxeUI.setConfig,
|
|
8193
8294
|
setIcon = core_.VxeUI.setIcon,
|
|
8194
8295
|
checkVersion = core_.VxeUI.checkVersion;
|
|
8195
|
-
core_.VxeUI.ganttVersion = "3.1.
|
|
8296
|
+
core_.VxeUI.ganttVersion = "3.1.4";
|
|
8196
8297
|
var ymdFormat = 'yyyy-MM-dd';
|
|
8197
8298
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
8198
8299
|
setConfig({
|
|
@@ -8267,7 +8368,11 @@ setConfig({
|
|
|
8267
8368
|
}
|
|
8268
8369
|
},
|
|
8269
8370
|
taskViewConfig: {
|
|
8270
|
-
showNowLine: true
|
|
8371
|
+
showNowLine: true,
|
|
8372
|
+
gridding: {
|
|
8373
|
+
// leftSpacing: 0,
|
|
8374
|
+
// rightSpacing: 0
|
|
8375
|
+
}
|
|
8271
8376
|
},
|
|
8272
8377
|
taskSplitConfig: {
|
|
8273
8378
|
enabled: true,
|
|
@@ -9006,6 +9111,8 @@ function getSlotVNs(vns) {
|
|
|
9006
9111
|
}
|
|
9007
9112
|
return [vns];
|
|
9008
9113
|
}
|
|
9114
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-start.js
|
|
9115
|
+
var es_string_pad_start = __webpack_require__(8156);
|
|
9009
9116
|
;// ./packages/gantt/src/util.ts
|
|
9010
9117
|
function getRefElem(refEl) {
|
|
9011
9118
|
if (refEl) {
|
|
@@ -9836,6 +9943,7 @@ var gantt_footer_viewType = 'footer';
|
|
|
9836
9943
|
|
|
9837
9944
|
|
|
9838
9945
|
|
|
9946
|
+
|
|
9839
9947
|
|
|
9840
9948
|
var globalEvents = core_.VxeUI.globalEvents;
|
|
9841
9949
|
var gantt_view_sourceType = 'gantt';
|
|
@@ -9960,28 +10068,42 @@ function handleColumnHeader($xeGanttView) {
|
|
|
9960
10068
|
};
|
|
9961
10069
|
for (var i = 0; i < scaleDateList.length; i++) {
|
|
9962
10070
|
var itemDate = scaleDateList[i];
|
|
9963
|
-
var _XEUtils$toDateString3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(itemDate, 'yyyy-M-d-H-m-s').split('-'),
|
|
9964
|
-
_XEUtils$toDateString4 = _slicedToArray(_XEUtils$toDateString3,
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
10071
|
+
var _XEUtils$toDateString3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(itemDate, 'yy-yyyy-M-MM-d-dd-H-HH-m-mm-s-ss').split('-'),
|
|
10072
|
+
_XEUtils$toDateString4 = _slicedToArray(_XEUtils$toDateString3, 12),
|
|
10073
|
+
yy = _XEUtils$toDateString4[0],
|
|
10074
|
+
yyyy = _XEUtils$toDateString4[1],
|
|
10075
|
+
M = _XEUtils$toDateString4[2],
|
|
10076
|
+
MM = _XEUtils$toDateString4[3],
|
|
10077
|
+
d = _XEUtils$toDateString4[4],
|
|
10078
|
+
dd = _XEUtils$toDateString4[5],
|
|
10079
|
+
H = _XEUtils$toDateString4[6],
|
|
10080
|
+
HH = _XEUtils$toDateString4[7],
|
|
10081
|
+
m = _XEUtils$toDateString4[8],
|
|
10082
|
+
mm = _XEUtils$toDateString4[9],
|
|
10083
|
+
s = _XEUtils$toDateString4[10],
|
|
10084
|
+
ss = _XEUtils$toDateString4[11];
|
|
9971
10085
|
var e = itemDate.getDay();
|
|
9972
10086
|
var E = e + 1;
|
|
9973
10087
|
var q = Math.ceil((itemDate.getMonth() + 1) / 3);
|
|
9974
|
-
var W = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(itemDate, weekScale ? weekScale.startDay : undefined);
|
|
10088
|
+
var W = "".concat(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getYearWeek(itemDate, weekScale ? weekScale.startDay : undefined));
|
|
10089
|
+
var WW = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().padStart(W, 2, '0');
|
|
9975
10090
|
var dateObj = {
|
|
9976
10091
|
date: itemDate,
|
|
9977
|
-
yy:
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
10092
|
+
yy: yy,
|
|
10093
|
+
yyyy: yyyy,
|
|
10094
|
+
M: M,
|
|
10095
|
+
MM: MM,
|
|
10096
|
+
d: d,
|
|
10097
|
+
dd: dd,
|
|
10098
|
+
H: H,
|
|
10099
|
+
HH: HH,
|
|
10100
|
+
m: m,
|
|
10101
|
+
mm: mm,
|
|
10102
|
+
s: s,
|
|
10103
|
+
ss: ss,
|
|
9983
10104
|
q: q,
|
|
9984
10105
|
W: W,
|
|
10106
|
+
WW: WW,
|
|
9985
10107
|
E: E,
|
|
9986
10108
|
e: e
|
|
9987
10109
|
};
|
|
@@ -10117,7 +10239,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10117
10239
|
var offsetLeftSize = (indexMaps[startStr] || 0) + subtract;
|
|
10118
10240
|
return {
|
|
10119
10241
|
offsetLeftSize: offsetLeftSize,
|
|
10120
|
-
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
10242
|
+
offsetWidthSize: (indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10121
10243
|
};
|
|
10122
10244
|
};
|
|
10123
10245
|
}
|
|
@@ -10142,7 +10264,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10142
10264
|
var offsetLeftSize = (_indexMaps[startStr] || 0) + subtract;
|
|
10143
10265
|
return {
|
|
10144
10266
|
offsetLeftSize: offsetLeftSize,
|
|
10145
|
-
offsetWidthSize: (_indexMaps[endStr] || 0) - offsetLeftSize + addSize
|
|
10267
|
+
offsetWidthSize: (_indexMaps[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10146
10268
|
};
|
|
10147
10269
|
};
|
|
10148
10270
|
}
|
|
@@ -10167,7 +10289,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10167
10289
|
var offsetLeftSize = (_indexMaps2[startStr] || 0) + subtract;
|
|
10168
10290
|
return {
|
|
10169
10291
|
offsetLeftSize: offsetLeftSize,
|
|
10170
|
-
offsetWidthSize: (_indexMaps2[endStr] || 0) - offsetLeftSize + addSize
|
|
10292
|
+
offsetWidthSize: (_indexMaps2[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10171
10293
|
};
|
|
10172
10294
|
};
|
|
10173
10295
|
}
|
|
@@ -10198,7 +10320,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10198
10320
|
var offsetLeftSize = (_indexMaps3[startStr] || 0) + subtract;
|
|
10199
10321
|
return {
|
|
10200
10322
|
offsetLeftSize: offsetLeftSize,
|
|
10201
|
-
offsetWidthSize: (_indexMaps3[endStr] || 0) - offsetLeftSize + addSize
|
|
10323
|
+
offsetWidthSize: (_indexMaps3[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10202
10324
|
};
|
|
10203
10325
|
};
|
|
10204
10326
|
}
|
|
@@ -10224,7 +10346,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10224
10346
|
var offsetLeftSize = (_indexMaps4[startStr] || 0) + subtract;
|
|
10225
10347
|
return {
|
|
10226
10348
|
offsetLeftSize: offsetLeftSize,
|
|
10227
|
-
offsetWidthSize: (_indexMaps4[endStr] || 0) - offsetLeftSize + addSize
|
|
10349
|
+
offsetWidthSize: (_indexMaps4[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10228
10350
|
};
|
|
10229
10351
|
};
|
|
10230
10352
|
}
|
|
@@ -10249,7 +10371,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10249
10371
|
var offsetLeftSize = (_indexMaps5[startStr] || 0) + subtract;
|
|
10250
10372
|
return {
|
|
10251
10373
|
offsetLeftSize: offsetLeftSize,
|
|
10252
|
-
offsetWidthSize: (_indexMaps5[endStr] || 0) - offsetLeftSize + addSize
|
|
10374
|
+
offsetWidthSize: (_indexMaps5[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10253
10375
|
};
|
|
10254
10376
|
};
|
|
10255
10377
|
}
|
|
@@ -10274,7 +10396,7 @@ function createChartRender($xeGanttView, fullCols) {
|
|
|
10274
10396
|
var offsetLeftSize = (_indexMaps6[startStr] || 0) + subtract;
|
|
10275
10397
|
return {
|
|
10276
10398
|
offsetLeftSize: offsetLeftSize,
|
|
10277
|
-
offsetWidthSize: (_indexMaps6[endStr] || 0) - offsetLeftSize + addSize
|
|
10399
|
+
offsetWidthSize: (_indexMaps6[endStr] || 0) - offsetLeftSize + addSize + 1
|
|
10278
10400
|
};
|
|
10279
10401
|
};
|
|
10280
10402
|
}
|
|
@@ -10473,7 +10595,7 @@ function updateChart($xeGanttView) {
|
|
|
10473
10595
|
if (chartWrapper) {
|
|
10474
10596
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().arrayEach(chartWrapper.children, function (rowEl) {
|
|
10475
10597
|
var barEl = rowEl.children[0];
|
|
10476
|
-
if (!barEl) {
|
|
10598
|
+
if (!barEl || hasClass(barEl, 'is--drag')) {
|
|
10477
10599
|
return;
|
|
10478
10600
|
}
|
|
10479
10601
|
var rowid = rowEl.getAttribute('rowid');
|
|
@@ -11030,18 +11152,21 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
11030
11152
|
var reactData = $xeGanttView.reactData;
|
|
11031
11153
|
var minViewDate = reactData.minViewDate,
|
|
11032
11154
|
maxViewDate = reactData.maxViewDate;
|
|
11155
|
+
var taskViewOpts = $xeGantt.computeTaskViewOpts;
|
|
11033
11156
|
var minScale = $xeGantt.computeMinScale;
|
|
11157
|
+
var gridding = taskViewOpts.gridding;
|
|
11034
11158
|
var dateList = [];
|
|
11035
11159
|
if (!minViewDate || !maxViewDate) {
|
|
11036
11160
|
return dateList;
|
|
11037
11161
|
}
|
|
11038
|
-
var
|
|
11039
|
-
var
|
|
11162
|
+
var leftSize = -external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(gridding ? gridding.leftSpacing || 0 : 0);
|
|
11163
|
+
var rightSize = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(gridding ? gridding.rightSpacing || 0 : 0);
|
|
11040
11164
|
switch (minScale.type) {
|
|
11041
11165
|
case 'year':
|
|
11042
11166
|
{
|
|
11043
|
-
var currDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatYear(minViewDate,
|
|
11044
|
-
|
|
11167
|
+
var currDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatYear(minViewDate, leftSize, 'first');
|
|
11168
|
+
var endDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatYear(maxViewDate, rightSize, 'first');
|
|
11169
|
+
while (currDate <= endDate) {
|
|
11045
11170
|
var itemDate = currDate;
|
|
11046
11171
|
dateList.push(itemDate);
|
|
11047
11172
|
currDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatYear(currDate, 1);
|
|
@@ -11050,8 +11175,9 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
11050
11175
|
}
|
|
11051
11176
|
case 'quarter':
|
|
11052
11177
|
{
|
|
11053
|
-
var _currDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatQuarter(minViewDate,
|
|
11054
|
-
|
|
11178
|
+
var _currDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatQuarter(minViewDate, leftSize, 'first');
|
|
11179
|
+
var _endDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatQuarter(maxViewDate, rightSize, 'first');
|
|
11180
|
+
while (_currDate <= _endDate) {
|
|
11055
11181
|
var _itemDate = _currDate;
|
|
11056
11182
|
dateList.push(_itemDate);
|
|
11057
11183
|
_currDate = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatQuarter(_currDate, 1);
|
|
@@ -11060,8 +11186,9 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
11060
11186
|
}
|
|
11061
11187
|
case 'month':
|
|
11062
11188
|
{
|
|
11063
|
-
var _currDate2 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(minViewDate,
|
|
11064
|
-
|
|
11189
|
+
var _currDate2 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(minViewDate, leftSize, 'first');
|
|
11190
|
+
var _endDate2 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(maxViewDate, rightSize, 'first');
|
|
11191
|
+
while (_currDate2 <= _endDate2) {
|
|
11065
11192
|
var _itemDate2 = _currDate2;
|
|
11066
11193
|
dateList.push(_itemDate2);
|
|
11067
11194
|
_currDate2 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatMonth(_currDate2, 1);
|
|
@@ -11070,8 +11197,9 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
11070
11197
|
}
|
|
11071
11198
|
case 'week':
|
|
11072
11199
|
{
|
|
11073
|
-
var _currDate3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(minViewDate,
|
|
11074
|
-
|
|
11200
|
+
var _currDate3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(minViewDate, leftSize, minScale.startDay, minScale.startDay);
|
|
11201
|
+
var _endDate3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(maxViewDate, rightSize, minScale.startDay, minScale.startDay);
|
|
11202
|
+
while (_currDate3 <= _endDate3) {
|
|
11075
11203
|
var _itemDate3 = _currDate3;
|
|
11076
11204
|
dateList.push(_itemDate3);
|
|
11077
11205
|
_currDate3 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(_currDate3, 1);
|
|
@@ -11080,15 +11208,26 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
11080
11208
|
}
|
|
11081
11209
|
case 'day':
|
|
11082
11210
|
case 'date':
|
|
11211
|
+
{
|
|
11212
|
+
var _currDate4 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(minViewDate, leftSize, 'first');
|
|
11213
|
+
var _endDate4 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(maxViewDate, rightSize, 'first');
|
|
11214
|
+
while (_currDate4 <= _endDate4) {
|
|
11215
|
+
var _itemDate4 = _currDate4;
|
|
11216
|
+
dateList.push(_itemDate4);
|
|
11217
|
+
_currDate4 = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatDay(_currDate4, 1);
|
|
11218
|
+
}
|
|
11219
|
+
break;
|
|
11220
|
+
}
|
|
11083
11221
|
case 'hour':
|
|
11084
11222
|
case 'minute':
|
|
11085
11223
|
case 'second':
|
|
11086
11224
|
{
|
|
11087
11225
|
var gapTime = getStandardGapTime(minScale.type);
|
|
11088
|
-
var currTime =
|
|
11226
|
+
var currTime = minViewDate.getTime() + leftSize * gapTime;
|
|
11227
|
+
var endTime = maxViewDate.getTime() + rightSize * gapTime;
|
|
11089
11228
|
while (currTime <= endTime) {
|
|
11090
|
-
var
|
|
11091
|
-
dateList.push(
|
|
11229
|
+
var _itemDate5 = new Date(currTime);
|
|
11230
|
+
dateList.push(_itemDate5);
|
|
11092
11231
|
currTime += gapTime;
|
|
11093
11232
|
}
|
|
11094
11233
|
break;
|
|
@@ -11551,7 +11690,8 @@ function gantt_createInternalData() {
|
|
|
11551
11690
|
return {
|
|
11552
11691
|
uFoot: false,
|
|
11553
11692
|
resizeTableWidth: 0
|
|
11554
|
-
// barTipTimeout:
|
|
11693
|
+
// barTipTimeout: null
|
|
11694
|
+
// dragBarRow: null
|
|
11555
11695
|
};
|
|
11556
11696
|
}
|
|
11557
11697
|
/* harmony default export */ var gantt = (/* define-vxe-component start */defineVxeComponent({
|