vxe-gantt 4.9.9 → 4.9.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.
- package/dist/all.esm.js +27 -45
- package/dist/all.esm.min.js +1 -1
- package/dist/style.css +4 -4
- package/dist/style.mini.css +1 -1
- package/es/gantt/src/gantt.js +25 -43
- package/es/gantt/style.css +4 -4
- package/es/gantt/style.mini.css +1 -1
- package/es/style.css +4 -4
- package/es/style.mini.css +1 -1
- package/es/ui/index.d.ts +1 -0
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-gantt/style.css +4 -4
- package/es/vxe-gantt/style.mini.css +1 -1
- package/lib/gantt/src/gantt.js +25 -43
- package/lib/gantt/style/style.css +4 -4
- package/lib/gantt/style/style.mini.css +1 -1
- package/lib/index.umd.js +27 -45
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +4 -4
- package/lib/style.mini.css +1 -1
- package/lib/ui/index.d.ts +1 -0
- package/lib/ui/index.js +2 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/vxe-gantt/style/style.css +4 -4
- package/lib/vxe-gantt/style/style.mini.css +1 -1
- package/package.json +8 -8
- package/packages/gantt/src/gantt.ts +50 -66
- package/packages/ui/index.ts +4 -0
- package/styles/components/gantt.scss +9 -7
package/dist/all.esm.js
CHANGED
|
@@ -49,7 +49,7 @@ import { VxeUI as VxeUI2 } from "@vxe-ui/core";
|
|
|
49
49
|
// packages_temp/ui/src/log.ts
|
|
50
50
|
import { VxeUI } from "@vxe-ui/core";
|
|
51
51
|
var { log } = VxeUI;
|
|
52
|
-
var ganttVersion = `gantt v${"4.9.
|
|
52
|
+
var ganttVersion = `gantt v${"4.9.11"}`;
|
|
53
53
|
function createComponentLog(name) {
|
|
54
54
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
55
55
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : "";
|
|
@@ -4073,7 +4073,6 @@ var tableComponentMethodKeys = [
|
|
|
4073
4073
|
"isRowExpandLoaded",
|
|
4074
4074
|
"clearRowExpandLoaded",
|
|
4075
4075
|
"reloadRowExpand",
|
|
4076
|
-
"reloadRowExpand",
|
|
4077
4076
|
"toggleRowExpand",
|
|
4078
4077
|
"setAllRowExpand",
|
|
4079
4078
|
"setRowExpand",
|
|
@@ -4306,14 +4305,6 @@ var gantt_default = (
|
|
|
4306
4305
|
return funcs;
|
|
4307
4306
|
};
|
|
4308
4307
|
const ganttExtendTableMethods = extendTableMethods(tableComponentMethodKeys);
|
|
4309
|
-
tableComponentMethodKeys.forEach((name) => {
|
|
4310
|
-
ganttExtendTableMethods[name] = (...args) => {
|
|
4311
|
-
const $xeTable = refTable.value;
|
|
4312
|
-
if ($xeTable && $xeTable[name]) {
|
|
4313
|
-
return $xeTable && $xeTable[name](...args);
|
|
4314
|
-
}
|
|
4315
|
-
};
|
|
4316
|
-
});
|
|
4317
4308
|
const computeProxyOpts = computed2(() => {
|
|
4318
4309
|
return XEUtils8.merge({}, XEUtils8.clone(getConfig2().gantt.proxyConfig, true), props.proxyConfig);
|
|
4319
4310
|
});
|
|
@@ -5758,14 +5749,14 @@ var gantt_default = (
|
|
|
5758
5749
|
if ($form) {
|
|
5759
5750
|
return $form.validate();
|
|
5760
5751
|
}
|
|
5761
|
-
return
|
|
5752
|
+
return Promise.resolve();
|
|
5762
5753
|
},
|
|
5763
5754
|
validateFormField(field) {
|
|
5764
5755
|
const $form = refForm.value;
|
|
5765
5756
|
if ($form) {
|
|
5766
5757
|
return $form.validateField(field);
|
|
5767
5758
|
}
|
|
5768
|
-
return
|
|
5759
|
+
return Promise.resolve();
|
|
5769
5760
|
},
|
|
5770
5761
|
clearFormValidate(field) {
|
|
5771
5762
|
const $form = refForm.value;
|
|
@@ -6551,12 +6542,9 @@ var gantt_default = (
|
|
|
6551
6542
|
return h6(
|
|
6552
6543
|
"div",
|
|
6553
6544
|
{
|
|
6554
|
-
class: [
|
|
6555
|
-
"
|
|
6556
|
-
|
|
6557
|
-
"is--resize": isResize
|
|
6558
|
-
}
|
|
6559
|
-
]
|
|
6545
|
+
class: ["vxe-gantt--view-split-bar", {
|
|
6546
|
+
"is--resize": isResize
|
|
6547
|
+
}]
|
|
6560
6548
|
},
|
|
6561
6549
|
[
|
|
6562
6550
|
h6("div", {
|
|
@@ -6569,37 +6557,29 @@ var gantt_default = (
|
|
|
6569
6557
|
class: "vxe-gantt--view-split-bar-btn-wrapper"
|
|
6570
6558
|
},
|
|
6571
6559
|
[
|
|
6572
|
-
showCollapseTableButton && showRightView ? h6(
|
|
6573
|
-
"
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
onClick: handleSplitRightViewEvent
|
|
6589
|
-
},
|
|
6590
|
-
[
|
|
6591
|
-
h6("i", {
|
|
6592
|
-
class: showRightView ? getIcon2().GANTT_VIEW_RIGHT_OPEN : getIcon2().GANTT_VIEW_RIGHT_CLOSE
|
|
6593
|
-
})
|
|
6594
|
-
]
|
|
6595
|
-
) : renderEmptyElement3($xeGantt)
|
|
6560
|
+
showCollapseTableButton && showRightView ? h6("div", {
|
|
6561
|
+
class: ["vxe-gantt--view-split-bar-action-btn", showLeftView ? "is--prev" : "is--next"],
|
|
6562
|
+
onClick: handleSplitLeftViewEvent
|
|
6563
|
+
}, [
|
|
6564
|
+
h6("i", {
|
|
6565
|
+
class: showLeftView ? getIcon2().GANTT_VIEW_LEFT_OPEN : getIcon2().GANTT_VIEW_LEFT_CLOSE
|
|
6566
|
+
})
|
|
6567
|
+
]) : renderEmptyElement3($xeGantt),
|
|
6568
|
+
showCollapseTaskButton && showLeftView ? h6("div", {
|
|
6569
|
+
class: ["vxe-gantt--view-split-bar-action-btn", showRightView ? "is--next" : "is--prev"],
|
|
6570
|
+
onClick: handleSplitRightViewEvent
|
|
6571
|
+
}, [
|
|
6572
|
+
h6("i", {
|
|
6573
|
+
class: showRightView ? getIcon2().GANTT_VIEW_RIGHT_OPEN : getIcon2().GANTT_VIEW_RIGHT_CLOSE
|
|
6574
|
+
})
|
|
6575
|
+
]) : renderEmptyElement3($xeGantt)
|
|
6596
6576
|
]
|
|
6597
6577
|
) : renderEmptyElement3($xeGantt)
|
|
6598
6578
|
]
|
|
6599
6579
|
);
|
|
6600
6580
|
};
|
|
6601
6581
|
const renderChildLayout = (layoutKeys) => {
|
|
6602
|
-
const { showLeftView, showRightView } = reactData;
|
|
6582
|
+
const { showLeftView, showRightView, overflowY, overflowX } = reactData;
|
|
6603
6583
|
const isVScrollbar = computeIsVScrollbar.value;
|
|
6604
6584
|
const taskSplitOpts = computeTaskSplitOpts.value;
|
|
6605
6585
|
const scrollbarXToTop = computeScrollbarXToTop.value;
|
|
@@ -6638,7 +6618,9 @@ var gantt_default = (
|
|
|
6638
6618
|
"hide--left": !showLeftView,
|
|
6639
6619
|
"show--right": showRightView,
|
|
6640
6620
|
"hide--right": !showRightView,
|
|
6641
|
-
"is--ah-split-btn": autoHideCollapseButton
|
|
6621
|
+
"is--ah-split-btn": autoHideCollapseButton,
|
|
6622
|
+
"is--scroll-y": overflowY,
|
|
6623
|
+
"is--scroll-x": overflowX
|
|
6642
6624
|
}
|
|
6643
6625
|
]
|
|
6644
6626
|
},
|
|
@@ -6985,7 +6967,7 @@ var gantt_default2 = VxeGantt;
|
|
|
6985
6967
|
// packages_temp/ui/index.ts
|
|
6986
6968
|
import { VxeUI as VxeUI9 } from "@vxe-ui/core";
|
|
6987
6969
|
var { setConfig, setIcon } = VxeUI9;
|
|
6988
|
-
VxeUI9.ganttVersion = "4.9.
|
|
6970
|
+
VxeUI9.ganttVersion = "4.9.11";
|
|
6989
6971
|
var ymdFormat = "yyyy-MM-dd";
|
|
6990
6972
|
var ymdhmsFormat = "yyyy-MM-dd HH:mm:ss";
|
|
6991
6973
|
setConfig({
|