vxe-gantt 3.1.5 → 3.1.6
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/index.js +2 -0
- package/es/gantt/src/gantt-chart.js +30 -17
- package/es/gantt/src/gantt-view.js +2 -2
- package/es/gantt/src/gantt.js +3 -3
- package/es/gantt/style.css +1 -1
- package/es/gantt/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +2 -13
- package/es/ui/src/depend.js +14 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-gantt/style.css +1 -1
- package/es/vxe-gantt/style.min.css +1 -1
- package/lib/gantt/index.js +2 -0
- package/lib/gantt/index.min.js +1 -1
- package/lib/gantt/src/gantt-chart.js +12 -3
- package/lib/gantt/src/gantt-chart.min.js +1 -1
- package/lib/gantt/src/gantt-view.js +2 -2
- package/lib/gantt/src/gantt-view.min.js +1 -1
- package/lib/gantt/src/gantt.js +3 -3
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/gantt/style/style.css +1 -1
- package/lib/gantt/style/style.min.css +1 -1
- package/lib/index.umd.js +44 -30
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +2 -13
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/depend.js +19 -0
- package/lib/ui/src/depend.min.js +1 -0
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-gantt/style/style.css +1 -1
- package/lib/vxe-gantt/style/style.min.css +1 -1
- package/package.json +3 -7
- package/packages/gantt/index.ts +2 -0
- package/packages/gantt/src/gantt-chart.ts +30 -17
- package/packages/gantt/src/gantt-view.ts +2 -2
- package/packages/gantt/src/gantt.ts +3 -3
- package/packages/ui/index.ts +1 -12
- package/packages/ui/src/depend.ts +14 -0
- package/styles/components/gantt-module/gantt-chart.scss +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -8276,24 +8276,13 @@ if (typeof window !== 'undefined') {
|
|
|
8276
8276
|
|
|
8277
8277
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
8278
8278
|
var es_object_to_string = __webpack_require__(6099);
|
|
8279
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
8280
|
-
var es_array_concat = __webpack_require__(8706);
|
|
8281
8279
|
// EXTERNAL MODULE: external {"root":"VxeUI","commonjs":"@vxe-ui/core","commonjs2":"@vxe-ui/core","amd":"@vxe-ui/core"}
|
|
8282
8280
|
var core_ = __webpack_require__(4345);
|
|
8283
|
-
;// ./packages/ui/src/log.ts
|
|
8284
|
-
|
|
8285
|
-
var log = core_.VxeUI.log;
|
|
8286
|
-
var version = "gantt v".concat("3.1.5");
|
|
8287
|
-
var warnLog = log.create('warn', version);
|
|
8288
|
-
var errLog = log.create('error', version);
|
|
8289
8281
|
;// ./packages/ui/index.ts
|
|
8290
8282
|
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
8283
|
var setConfig = core_.VxeUI.setConfig,
|
|
8294
|
-
setIcon = core_.VxeUI.setIcon
|
|
8295
|
-
|
|
8296
|
-
core_.VxeUI.ganttVersion = "3.1.5";
|
|
8284
|
+
setIcon = core_.VxeUI.setIcon;
|
|
8285
|
+
core_.VxeUI.ganttVersion = "3.1.6";
|
|
8297
8286
|
var ymdFormat = 'yyyy-MM-dd';
|
|
8298
8287
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
8299
8288
|
setConfig({
|
|
@@ -8390,21 +8379,35 @@ setIcon({
|
|
|
8390
8379
|
GANTT_VIEW_RIGHT_OPEN: iconPrefix + 'arrow-right',
|
|
8391
8380
|
GANTT_VIEW_RIGHT_CLOSE: iconPrefix + 'arrow-left'
|
|
8392
8381
|
});
|
|
8393
|
-
var pVersion = 3;
|
|
8394
|
-
var sVersion = 18;
|
|
8395
|
-
if (checkVersion) {
|
|
8396
|
-
if (!checkVersion(core_.VxeUI.tableVersion, pVersion, sVersion)) {
|
|
8397
|
-
errLog('vxe.error.errorVersion', ["vxe-table@".concat(core_.VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")]);
|
|
8398
|
-
}
|
|
8399
|
-
} else {
|
|
8400
|
-
errLog("Requires vxe-table v".concat(pVersion, ".").concat(sVersion, "+"));
|
|
8401
|
-
}
|
|
8402
8382
|
|
|
8403
8383
|
/* harmony default export */ var ui = (core_.VxeUI);
|
|
8404
8384
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
8405
8385
|
var es_function_name = __webpack_require__(2010);
|
|
8406
8386
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
8407
8387
|
var es_object_assign = __webpack_require__(9085);
|
|
8388
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
8389
|
+
var es_array_concat = __webpack_require__(8706);
|
|
8390
|
+
;// ./packages/ui/src/log.ts
|
|
8391
|
+
|
|
8392
|
+
var log = core_.VxeUI.log;
|
|
8393
|
+
var version = "gantt v".concat("3.1.6");
|
|
8394
|
+
var warnLog = log.create('warn', version);
|
|
8395
|
+
var errLog = log.create('error', version);
|
|
8396
|
+
;// ./packages/ui/src/depend.ts
|
|
8397
|
+
|
|
8398
|
+
|
|
8399
|
+
|
|
8400
|
+
function checkDependVersion() {
|
|
8401
|
+
var pVersion = 3;
|
|
8402
|
+
var sVersion = 19;
|
|
8403
|
+
if (core_.VxeUI.checkVersion) {
|
|
8404
|
+
if (!core_.VxeUI.checkVersion(core_.VxeUI.tableVersion, pVersion, sVersion)) {
|
|
8405
|
+
errLog('vxe.error.errorVersion', ["vxe-table@".concat(core_.VxeUI.tableVersion || '?'), "vxe-table v".concat(pVersion, ".").concat(sVersion, "+")]);
|
|
8406
|
+
}
|
|
8407
|
+
} else {
|
|
8408
|
+
errLog("Requires vxe-table v".concat(pVersion, ".").concat(sVersion, "+"));
|
|
8409
|
+
}
|
|
8410
|
+
}
|
|
8408
8411
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.js
|
|
8409
8412
|
var es_symbol = __webpack_require__(2675);
|
|
8410
8413
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.symbol.description.js
|
|
@@ -9360,7 +9363,7 @@ var gantt_chart_viewType = 'chart';
|
|
|
9360
9363
|
showContent = taskBarOpts.showContent,
|
|
9361
9364
|
contentMethod = taskBarOpts.contentMethod,
|
|
9362
9365
|
barStyle = taskBarOpts.barStyle,
|
|
9363
|
-
|
|
9366
|
+
move = taskBarOpts.move,
|
|
9364
9367
|
showTooltip = taskBarOpts.showTooltip;
|
|
9365
9368
|
var isBarRowStyle = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(barStyle);
|
|
9366
9369
|
var barStyObj = (barStyle ? isBarRowStyle ? barStyle(barParams) : barStyle : {}) || {};
|
|
@@ -9434,7 +9437,7 @@ var gantt_chart_viewType = 'chart';
|
|
|
9434
9437
|
},
|
|
9435
9438
|
class: ['vxe-gantt-view--chart-row', {
|
|
9436
9439
|
'is--round': round,
|
|
9437
|
-
'is--
|
|
9440
|
+
'is--move': move,
|
|
9438
9441
|
'col--rs-height': isRsHeight
|
|
9439
9442
|
}],
|
|
9440
9443
|
style: {
|
|
@@ -9452,10 +9455,19 @@ var gantt_chart_viewType = 'chart';
|
|
|
9452
9455
|
rowid: rowid
|
|
9453
9456
|
},
|
|
9454
9457
|
on: ons
|
|
9455
|
-
},
|
|
9458
|
+
}, $xeGantt.renderGanttTaskBarContent ? $xeGantt.renderGanttTaskBarContent(h, ctParams, {
|
|
9459
|
+
title: title,
|
|
9460
|
+
vbStyle: vbStyle,
|
|
9461
|
+
vpStyle: vpStyle
|
|
9462
|
+
}) : taskBarSlot ? [h('div', {
|
|
9463
|
+
key: 'cbc',
|
|
9464
|
+
class: 'vxe-gantt-view--chart-custom-bar-content'
|
|
9465
|
+
}, $xeGantt.callSlot(taskBarSlot, barParams, h))] : [showProgress ? h('div', {
|
|
9466
|
+
key: 'vcp',
|
|
9456
9467
|
class: 'vxe-gantt-view--chart-progress',
|
|
9457
9468
|
style: vpStyle
|
|
9458
9469
|
}) : renderEmptyElement($xeGantt), showContent ? h('div', {
|
|
9470
|
+
key: 'vcc',
|
|
9459
9471
|
class: 'vxe-gantt-view--chart-content'
|
|
9460
9472
|
}, title) : renderEmptyElement($xeGantt)])]);
|
|
9461
9473
|
},
|
|
@@ -10601,7 +10613,7 @@ function updateChart($xeGanttView) {
|
|
|
10601
10613
|
var rowid = rowEl.getAttribute('rowid');
|
|
10602
10614
|
var rowRest = rowid ? chartMaps[rowid] : null;
|
|
10603
10615
|
barEl.style.left = "".concat(rowRest ? viewCellWidth * rowRest.oLeftSize : 0, "px");
|
|
10604
|
-
barEl.style.width = "".concat(rowRest ? viewCellWidth * rowRest.oWidthSize : 0, "px");
|
|
10616
|
+
barEl.style.width = "".concat(Math.max(1, rowRest ? Math.floor(viewCellWidth * rowRest.oWidthSize) - 1 : 0), "px");
|
|
10605
10617
|
});
|
|
10606
10618
|
}
|
|
10607
10619
|
return $xeGanttView.$nextTick();
|
|
@@ -11136,7 +11148,7 @@ function syncTableScrollTop($xeGanttView, scrollTop) {
|
|
|
11136
11148
|
tableData: [],
|
|
11137
11149
|
tableColumn: [],
|
|
11138
11150
|
headerGroups: [],
|
|
11139
|
-
viewCellWidth:
|
|
11151
|
+
viewCellWidth: 40
|
|
11140
11152
|
};
|
|
11141
11153
|
var internalData = createInternalData();
|
|
11142
11154
|
return {
|
|
@@ -11712,7 +11724,7 @@ function gantt_createInternalData() {
|
|
|
11712
11724
|
taskBarTooltipConfig: Object,
|
|
11713
11725
|
taskSplitConfig: Object,
|
|
11714
11726
|
taskBarResizeConfig: Object,
|
|
11715
|
-
|
|
11727
|
+
taskBarMoveConfig: Object,
|
|
11716
11728
|
size: {
|
|
11717
11729
|
type: String,
|
|
11718
11730
|
default: function _default() {
|
|
@@ -11819,10 +11831,10 @@ function gantt_createInternalData() {
|
|
|
11819
11831
|
var props = $xeGantt;
|
|
11820
11832
|
return Object.assign({}, gantt_getConfig().gantt.taskBarConfig, props.taskBarConfig);
|
|
11821
11833
|
},
|
|
11822
|
-
|
|
11834
|
+
computeTaskBarMoveOpts: function computeTaskBarMoveOpts() {
|
|
11823
11835
|
var $xeGantt = this;
|
|
11824
11836
|
var props = $xeGantt;
|
|
11825
|
-
return Object.assign({}, gantt_getConfig().gantt.
|
|
11837
|
+
return Object.assign({}, gantt_getConfig().gantt.taskBarMoveConfig, props.taskBarMoveConfig);
|
|
11826
11838
|
},
|
|
11827
11839
|
computeTaskBarResizeOpts: function computeTaskBarResizeOpts() {
|
|
11828
11840
|
var $xeGantt = this;
|
|
@@ -14188,6 +14200,7 @@ function gantt_createInternalData() {
|
|
|
14188
14200
|
|
|
14189
14201
|
|
|
14190
14202
|
|
|
14203
|
+
|
|
14191
14204
|
var isReg = false;
|
|
14192
14205
|
var VxeGantt = Object.assign({}, gantt, {
|
|
14193
14206
|
install: function install(app) {
|
|
@@ -14203,6 +14216,7 @@ var VxeGantt = Object.assign({}, gantt, {
|
|
|
14203
14216
|
core_.VxeUI.dynamicApp.use(VxeGantt);
|
|
14204
14217
|
}
|
|
14205
14218
|
}
|
|
14219
|
+
checkDependVersion();
|
|
14206
14220
|
app.component(gantt.name, gantt);
|
|
14207
14221
|
}
|
|
14208
14222
|
});
|