vxe-gantt 3.9.7 → 3.9.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/components.d.ts +2 -0
- package/es/components.js +1 -0
- package/es/gantt/index.d.ts +2 -2
- package/es/gantt/src/gantt-view.d.ts +2 -2
- package/es/gantt/src/gantt.d.ts +1 -1
- package/es/gantt/src/gantt.js +19 -16
- package/es/gantt/src/util.d.ts +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/components.d.ts +8 -0
- package/lib/components.js +1 -0
- package/lib/gantt/index.d.ts +1421 -0
- package/lib/gantt/src/gantt-body.d.ts +19 -0
- package/lib/gantt/src/gantt-chart.d.ts +19 -0
- package/lib/gantt/src/gantt-footer.d.ts +16 -0
- package/lib/gantt/src/gantt-header.d.ts +16 -0
- package/lib/gantt/src/gantt-view.d.ts +76 -0
- package/lib/gantt/src/gantt.d.ts +729 -0
- package/lib/gantt/src/gantt.js +19 -16
- package/lib/gantt/src/static.d.ts +34 -0
- package/lib/gantt/src/util.d.ts +9 -0
- package/lib/index.d.ts +6 -0
- package/lib/index.umd.js +29 -24
- package/lib/index.umd.min.js +1 -1
- package/lib/ui/index.d.ts +2 -0
- package/lib/ui/index.js +1 -1
- package/lib/ui/src/comp.d.ts +2 -0
- package/lib/ui/src/depend.d.ts +1 -0
- package/lib/ui/src/dom.d.ts +49 -0
- package/lib/ui/src/log.d.ts +6 -0
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/utils.d.ts +21 -0
- package/lib/ui/src/vn.d.ts +2 -0
- package/lib/vxe-gantt/index.d.ts +3 -0
- package/lib/vxe-ui/index.d.ts +3 -0
- package/package.json +10 -3
- package/packages/components.ts +4 -0
- package/packages/gantt/src/gantt.ts +7 -4
package/es/components.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { VueConstructor } from 'vue';
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core';
|
|
2
3
|
import './ui';
|
|
3
4
|
import type { VxeGlobalConfig } from 'vxe-pc-ui';
|
|
4
5
|
export declare function install(app: VueConstructor, options?: VxeGlobalConfig): void;
|
|
6
|
+
export { VxeUI };
|
|
5
7
|
export * from '@vxe-ui/core';
|
|
6
8
|
export * from './gantt';
|
package/es/components.js
CHANGED
package/es/gantt/index.d.ts
CHANGED
|
@@ -657,7 +657,7 @@ export declare const VxeGantt: import("vue/types/vue").ExtendedVue<import("vue")
|
|
|
657
657
|
computeCustomTotalFlag: number | undefined;
|
|
658
658
|
computePageCount: number;
|
|
659
659
|
computeIsLoading: any;
|
|
660
|
-
computeTableBorder: "
|
|
660
|
+
computeTableBorder: "default" | "full" | "outer" | "inner" | "none";
|
|
661
661
|
computeSize: import("vxe-pc-ui").VxeComponentSizeType;
|
|
662
662
|
computeIsVScrollbar: import("vxe-pc-ui").VxeComponentIsVScrollbar;
|
|
663
663
|
}, {
|
|
@@ -1367,7 +1367,7 @@ export declare const Gantt: import("vue/types/vue").ExtendedVue<import("vue").de
|
|
|
1367
1367
|
computeCustomTotalFlag: number | undefined;
|
|
1368
1368
|
computePageCount: number;
|
|
1369
1369
|
computeIsLoading: any;
|
|
1370
|
-
computeTableBorder: "
|
|
1370
|
+
computeTableBorder: "default" | "full" | "outer" | "inner" | "none";
|
|
1371
1371
|
computeSize: import("vxe-pc-ui").VxeComponentSizeType;
|
|
1372
1372
|
computeIsVScrollbar: import("vxe-pc-ui").VxeComponentIsVScrollbar;
|
|
1373
1373
|
}, {
|
|
@@ -49,8 +49,8 @@ declare const _default: import("vue/types/vue").ExtendedVue<import("vue").defaul
|
|
|
49
49
|
computeScrollbarYOpts: VxeTablePropTypes.ScrollbarYConfig;
|
|
50
50
|
computeScrollXHeight: number;
|
|
51
51
|
computeScrollYWidth: number;
|
|
52
|
-
computeScrollXVisible: boolean | "auto" | "
|
|
53
|
-
computeScrollYVisible: boolean | "auto" | "
|
|
52
|
+
computeScrollXVisible: boolean | "auto" | "visible" | "hidden" | undefined;
|
|
53
|
+
computeScrollYVisible: boolean | "auto" | "visible" | "hidden" | undefined;
|
|
54
54
|
computeScrollXAutoHide: boolean | undefined;
|
|
55
55
|
computeScrollYAutoHide: boolean | undefined;
|
|
56
56
|
computeScrollbarXToTop: boolean;
|
package/es/gantt/src/gantt.d.ts
CHANGED
|
@@ -677,7 +677,7 @@ declare const _default: import("vue/types/vue").ExtendedVue<import("vue").defaul
|
|
|
677
677
|
computeCustomTotalFlag: number | undefined;
|
|
678
678
|
computePageCount: number;
|
|
679
679
|
computeIsLoading: any;
|
|
680
|
-
computeTableBorder: "
|
|
680
|
+
computeTableBorder: "default" | "full" | "outer" | "inner" | "none";
|
|
681
681
|
computeSize: VxeComponentSizeType;
|
|
682
682
|
computeIsVScrollbar: VxeComponentIsVScrollbar;
|
|
683
683
|
}, {
|
package/es/gantt/src/gantt.js
CHANGED
|
@@ -9,9 +9,9 @@ import GanttViewComponent from "./gantt-view";
|
|
|
9
9
|
import { VxeTable as VxeTableComponent } from "vxe-table";
|
|
10
10
|
const { warnLog, errLog } = createComponentLog("gantt");
|
|
11
11
|
const { getConfig, getIcon, getI18n, commands, globalMixins, createEvent, globalEvents, GLOBAL_EVENT_KEYS, renderEmptyElement } = VxeUI;
|
|
12
|
-
const
|
|
12
|
+
const tableComponeProps = VxeTableComponent.props;
|
|
13
13
|
const tableMethods = {};
|
|
14
|
-
const propKeys = Object.keys(
|
|
14
|
+
const propKeys = Object.keys(tableComponeProps);
|
|
15
15
|
const defaultLayouts = [["Form"], ["Toolbar", "Top", "Gantt", "Bottom", "Pager"]];
|
|
16
16
|
const viewTypeLevelMaps = {
|
|
17
17
|
year: 19,
|
|
@@ -134,9 +134,12 @@ function createReactData() {
|
|
|
134
134
|
}
|
|
135
135
|
var gantt_default = {
|
|
136
136
|
name: "VxeGantt",
|
|
137
|
-
mixins: [
|
|
137
|
+
mixins: [
|
|
138
|
+
globalMixins.sizeMixin,
|
|
139
|
+
globalMixins.vScrollbarMixin
|
|
140
|
+
],
|
|
138
141
|
props: {
|
|
139
|
-
...
|
|
142
|
+
...tableComponeProps,
|
|
140
143
|
columns: Array,
|
|
141
144
|
pagerConfig: Object,
|
|
142
145
|
proxyConfig: Object,
|
|
@@ -2068,8 +2071,8 @@ var gantt_default = {
|
|
|
2068
2071
|
const reactData = $xeGantt.reactData;
|
|
2069
2072
|
const $xeTable = $xeGantt.$refs.refTable;
|
|
2070
2073
|
if ($xeTable) {
|
|
2071
|
-
const
|
|
2072
|
-
const { highlightCurrentRow } =
|
|
2074
|
+
const tableProps = $xeTable;
|
|
2075
|
+
const { highlightCurrentRow } = tableProps;
|
|
2073
2076
|
const tableReactData = $xeTable.getReactData();
|
|
2074
2077
|
const { radioColumn, checkboxColumn } = tableReactData;
|
|
2075
2078
|
const radioOpts = $xeTable.computeRadioOpts;
|
|
@@ -2205,8 +2208,8 @@ var gantt_default = {
|
|
|
2205
2208
|
const $xeGantt = this;
|
|
2206
2209
|
const $xeTable = $xeGantt.$refs.refTable;
|
|
2207
2210
|
if ($xeTable) {
|
|
2208
|
-
const
|
|
2209
|
-
const { menuConfig } =
|
|
2211
|
+
const tableProps = $xeTable;
|
|
2212
|
+
const { menuConfig } = tableProps;
|
|
2210
2213
|
if (isEnableConf(menuConfig)) {
|
|
2211
2214
|
evnt.stopPropagation();
|
|
2212
2215
|
$xeTable.handleOpenMenuEvent(evnt, "header", params);
|
|
@@ -2218,8 +2221,8 @@ var gantt_default = {
|
|
|
2218
2221
|
const $xeGantt = this;
|
|
2219
2222
|
const $xeTable = $xeGantt.$refs.refTable;
|
|
2220
2223
|
if ($xeTable) {
|
|
2221
|
-
const
|
|
2222
|
-
const { menuConfig } =
|
|
2224
|
+
const tableProps = $xeTable;
|
|
2225
|
+
const { menuConfig } = tableProps;
|
|
2223
2226
|
if (isEnableConf(menuConfig)) {
|
|
2224
2227
|
evnt.stopPropagation();
|
|
2225
2228
|
$xeTable.handleOpenMenuEvent(evnt, "body", params);
|
|
@@ -2231,8 +2234,8 @@ var gantt_default = {
|
|
|
2231
2234
|
const $xeGantt = this;
|
|
2232
2235
|
const $xeTable = $xeGantt.$refs.refTable;
|
|
2233
2236
|
if ($xeTable) {
|
|
2234
|
-
const
|
|
2235
|
-
const { menuConfig } =
|
|
2237
|
+
const tableProps = $xeTable;
|
|
2238
|
+
const { menuConfig } = tableProps;
|
|
2236
2239
|
if (isEnableConf(menuConfig)) {
|
|
2237
2240
|
evnt.stopPropagation();
|
|
2238
2241
|
$xeTable.handleOpenMenuEvent(evnt, "footer", params);
|
|
@@ -2244,8 +2247,8 @@ var gantt_default = {
|
|
|
2244
2247
|
const $xeGantt = this;
|
|
2245
2248
|
const $xeTable = $xeGantt.$refs.refTable;
|
|
2246
2249
|
if ($xeTable) {
|
|
2247
|
-
const
|
|
2248
|
-
const { menuConfig } =
|
|
2250
|
+
const tableProps = $xeTable;
|
|
2251
|
+
const { menuConfig } = tableProps;
|
|
2249
2252
|
if (isEnableConf(menuConfig)) {
|
|
2250
2253
|
evnt.stopPropagation();
|
|
2251
2254
|
$xeTable.handleOpenMenuEvent(evnt, "body", params);
|
|
@@ -2503,7 +2506,7 @@ var gantt_default = {
|
|
|
2503
2506
|
renderTable(h) {
|
|
2504
2507
|
const $xeGantt = this;
|
|
2505
2508
|
const slots = $xeGantt.$scopedSlots;
|
|
2506
|
-
const
|
|
2509
|
+
const tableProps = $xeGantt.computeTableProps;
|
|
2507
2510
|
return h(
|
|
2508
2511
|
"div",
|
|
2509
2512
|
{
|
|
@@ -2513,7 +2516,7 @@ var gantt_default = {
|
|
|
2513
2516
|
[
|
|
2514
2517
|
h(VxeTableComponent, {
|
|
2515
2518
|
key: "table",
|
|
2516
|
-
props:
|
|
2519
|
+
props: tableProps,
|
|
2517
2520
|
on: getTableOns($xeGantt),
|
|
2518
2521
|
scopedSlots: slots,
|
|
2519
2522
|
ref: "refTable"
|
package/es/gantt/src/util.d.ts
CHANGED
|
@@ -6,4 +6,4 @@ export declare function getTaskBarLeft(chartRest: VxeGanttDefines.RowCacheItem |
|
|
|
6
6
|
export declare function getTaskBarWidth(chartRest: VxeGanttDefines.RowCacheItem | null, viewCellWidth: number): number;
|
|
7
7
|
export declare function hasMilestoneTask(type: string): type is "milestone";
|
|
8
8
|
export declare function hasSubviewTask(type: string): type is "subview";
|
|
9
|
-
export declare function getTaskType(type: string): "default"
|
|
9
|
+
export declare function getTaskType(type: string): VxeGanttTaskType | "default";
|
package/es/ui/index.js
CHANGED
package/es/ui/src/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeUI } from "@vxe-ui/core";
|
|
2
2
|
const { log } = VxeUI;
|
|
3
|
-
const ganttVersion = `gantt v${"3.9.
|
|
3
|
+
const ganttVersion = `gantt v${"3.9.9"}`;
|
|
4
4
|
function createComponentLog(name) {
|
|
5
5
|
const uiVersion = VxeUI.uiVersion ? `ui v${VxeUI.uiVersion}` : "";
|
|
6
6
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : "";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VueConstructor } from 'vue';
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core';
|
|
3
|
+
import './ui';
|
|
4
|
+
import type { VxeGlobalConfig } from 'vxe-pc-ui';
|
|
5
|
+
export declare function install(app: VueConstructor, options?: VxeGlobalConfig): void;
|
|
6
|
+
export { VxeUI };
|
|
7
|
+
export * from '@vxe-ui/core';
|
|
8
|
+
export * from './gantt';
|
package/lib/components.js
CHANGED
|
@@ -29,6 +29,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
30
|
var components_exports = {};
|
|
31
31
|
__export(components_exports, {
|
|
32
|
+
VxeUI: () => import_core.VxeUI,
|
|
32
33
|
install: () => install
|
|
33
34
|
});
|
|
34
35
|
module.exports = __toCommonJS(components_exports);
|