vxe-gantt 3.4.2 → 3.4.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/LICENSE +21 -21
- package/README.md +53 -53
- package/es/gantt/src/gantt.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/gantt/src/gantt.js +1 -1
- package/lib/gantt/src/gantt.min.js +1 -1
- package/lib/index.umd.js +50 -50
- 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 +88 -88
- package/packages/components.ts +22 -22
- package/packages/gantt/index.ts +32 -32
- package/packages/gantt/src/gantt-body.ts +323 -323
- package/packages/gantt/src/gantt-chart.ts +542 -542
- package/packages/gantt/src/gantt-footer.ts +73 -73
- package/packages/gantt/src/gantt-header.ts +162 -162
- package/packages/gantt/src/gantt-view.ts +1954 -1954
- package/packages/gantt/src/gantt.ts +2827 -2827
- package/packages/gantt/src/static.ts +35 -35
- package/packages/gantt/src/util.ts +47 -47
- package/packages/index.ts +8 -8
- package/packages/ui/index.ts +119 -119
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/depend.ts +14 -14
- package/packages/ui/src/dom.ts +196 -196
- package/packages/ui/src/log.ts +8 -8
- package/packages/ui/src/utils.ts +67 -67
- package/packages/ui/src/vn.ts +13 -13
- package/styles/all.scss +3 -3
- package/styles/base.scss +2 -2
- package/styles/components/gantt-module/gantt-chart.scss +261 -261
- package/styles/components/gantt.scss +707 -707
- package/styles/helpers/baseMixin.scss +95 -95
- package/styles/helpers/baseVar.scss +3 -3
- package/styles/helpers/placement.scss +38 -38
- package/styles/theme/base.scss +14 -14
- package/styles/theme/dark.scss +8 -8
- package/styles/theme/light.scss +8 -8
- package/types/all.d.ts +16 -16
- package/types/index.d.ts +4 -4
package/lib/ui/index.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.default = void 0;
|
|
|
13
13
|
var _core = require("@vxe-ui/core");
|
|
14
14
|
var setConfig = _core.VxeUI.setConfig,
|
|
15
15
|
setIcon = _core.VxeUI.setIcon;
|
|
16
|
-
_core.VxeUI.ganttVersion = "3.4.
|
|
16
|
+
_core.VxeUI.ganttVersion = "3.4.4";
|
|
17
17
|
var ymdFormat = 'yyyy-MM-dd';
|
|
18
18
|
var ymdhmsFormat = 'yyyy-MM-dd HH:mm:ss';
|
|
19
19
|
setConfig({
|
package/lib/ui/index.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.4.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"VxeUI",{enumerable:!0,get:function(){return _core.VxeUI}}),exports.default=void 0;var _core=require("@vxe-ui/core"),setConfig=_core.VxeUI.setConfig,setIcon=_core.VxeUI.setIcon,ymdFormat=(_core.VxeUI.ganttVersion="3.4.4","yyyy-MM-dd"),ymdhmsFormat="yyyy-MM-dd HH:mm:ss",iconPrefix=(setConfig({gantt:{formConfig:{enabled:!0},pagerConfig:{enabled:!0},toolbarConfig:{enabled:!0},proxyConfig:{enabled:!0,autoLoad:!0,showLoading:!0,showResponseMsg:!0,showActionMsg:!0,response:{list:null,result:"result",total:"page.total",message:"message"}},taskBarTooltipConfig:{enterable:!0},taskLinkConfig:{enabled:!0,isHover:!0,showArrow:!0},taskViewScaleConfig:{year:{valueFormat:ymdFormat},quarter:{valueFormat:ymdFormat},month:{valueFormat:ymdFormat},week:{startDay:1,valueFormat:ymdFormat},day:{valueFormat:ymdFormat},date:{valueFormat:ymdFormat},hour:{valueFormat:ymdhmsFormat},minute:{valueFormat:ymdhmsFormat},second:{valueFormat:ymdhmsFormat}},taskViewConfig:{showNowLine:!0,gridding:{leftSpacing:1,rightSpacing:1}},taskSplitConfig:{enabled:!0,resize:!0,showCollapseTableButton:!0,showCollapseTaskButton:!0},taskBarSubviewConfig:{}}}),"vxe-icon-"),_default=(setIcon({GANTT_VIEW_LEFT_OPEN:iconPrefix+"arrow-left",GANTT_VIEW_LEFT_CLOSE:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_OPEN:iconPrefix+"arrow-right",GANTT_VIEW_RIGHT_CLOSE:iconPrefix+"arrow-left",GANTT_VIEW_TASK_MILESTONE:iconPrefix+"square-fill rotate45"}),exports.default=_core.VxeUI);
|
package/lib/ui/src/log.js
CHANGED
|
@@ -6,6 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.warnLog = exports.errLog = void 0;
|
|
7
7
|
var _core = require("@vxe-ui/core");
|
|
8
8
|
var log = _core.VxeUI.log;
|
|
9
|
-
var version = "gantt v".concat("3.4.
|
|
9
|
+
var version = "gantt v".concat("3.4.4");
|
|
10
10
|
var warnLog = exports.warnLog = log.create('warn', version);
|
|
11
11
|
var errLog = exports.errLog = log.create('error', version);
|
package/lib/ui/src/log.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,version="gantt v".concat("3.4.
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.warnLog=exports.errLog=void 0;var _core=require("@vxe-ui/core"),log=_core.VxeUI.log,version="gantt v".concat("3.4.4"),warnLog=exports.warnLog=log.create("warn",version),errLog=exports.errLog=log.create("error",version);
|
package/package.json
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vxe-gantt",
|
|
3
|
-
"version": "3.4.
|
|
4
|
-
"description": "A vue based gantt component",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"update": "npm install --legacy-peer-deps",
|
|
7
|
-
"serve": "vue-cli-service serve",
|
|
8
|
-
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
9
|
-
"lib:modules": "gulp build",
|
|
10
|
-
"lib": "npm run lib:pack && npm run lib:modules"
|
|
11
|
-
},
|
|
12
|
-
"files": [
|
|
13
|
-
"lib",
|
|
14
|
-
"es",
|
|
15
|
-
"src",
|
|
16
|
-
"helper",
|
|
17
|
-
"types",
|
|
18
|
-
"styles",
|
|
19
|
-
"packages"
|
|
20
|
-
],
|
|
21
|
-
"main": "lib/index.common.js",
|
|
22
|
-
"module": "es/index.esm.js",
|
|
23
|
-
"unpkg": "lib/index.umd.js",
|
|
24
|
-
"jsdelivr": "lib/index.umd.js",
|
|
25
|
-
"style": "lib/style.css",
|
|
26
|
-
"typings": "types/index.d.ts",
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
29
|
-
"@typescript-eslint/parser": "^6.21.0",
|
|
30
|
-
"@vue/cli-plugin-babel": "~5.0.0",
|
|
31
|
-
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
32
|
-
"@vue/cli-plugin-router": "~5.0.0",
|
|
33
|
-
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
34
|
-
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
35
|
-
"@vue/cli-service": "~5.0.0",
|
|
36
|
-
"@vue/eslint-config-standard": "^6.1.0",
|
|
37
|
-
"@vue/eslint-config-typescript": "^9.1.0",
|
|
38
|
-
"core-js": "^3.8.3",
|
|
39
|
-
"del": "^6.1.1",
|
|
40
|
-
"eslint": "^7.32.0",
|
|
41
|
-
"eslint-plugin-import": "^2.29.1",
|
|
42
|
-
"eslint-plugin-node": "^11.1.0",
|
|
43
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
44
|
-
"eslint-plugin-vue": "^8.0.3",
|
|
45
|
-
"gulp": "^4.0.2",
|
|
46
|
-
"gulp-autoprefixer": "^8.0.0",
|
|
47
|
-
"gulp-babel": "^8.0.0",
|
|
48
|
-
"gulp-clean-css": "^4.3.0",
|
|
49
|
-
"gulp-concat": "^2.6.1",
|
|
50
|
-
"gulp-rename": "^2.0.0",
|
|
51
|
-
"gulp-replace": "^1.1.4",
|
|
52
|
-
"gulp-sass": "^5.1.0",
|
|
53
|
-
"gulp-sourcemaps": "^3.0.0",
|
|
54
|
-
"gulp-typescript": "^5.0.1",
|
|
55
|
-
"gulp-uglify": "^3.0.2",
|
|
56
|
-
"sass": "^1.80.4",
|
|
57
|
-
"sass-loader": "^14.2.1",
|
|
58
|
-
"typescript": "~4.5.5",
|
|
59
|
-
"vue-template-compiler": "2.6.14",
|
|
60
|
-
"vue": "~2.6.14",
|
|
61
|
-
"vue-i18n": "^8.15.1",
|
|
62
|
-
"vue-router": "^3.5.1",
|
|
63
|
-
"vxe-pc-ui": "^3.14.
|
|
64
|
-
"vxe-table": "^3.20.13"
|
|
65
|
-
},
|
|
66
|
-
"vetur": {
|
|
67
|
-
"tags": "helper/vetur/tags.json",
|
|
68
|
-
"attributes": "helper/vetur/attributes.json"
|
|
69
|
-
},
|
|
70
|
-
"repository": {
|
|
71
|
-
"type": "git",
|
|
72
|
-
"url": "git+https://github.com/x-extends/vxe-gantt.git"
|
|
73
|
-
},
|
|
74
|
-
"keywords": [
|
|
75
|
-
"gantt",
|
|
76
|
-
"table",
|
|
77
|
-
"vxe-ui",
|
|
78
|
-
"vxe-gantt"
|
|
79
|
-
],
|
|
80
|
-
"author": {
|
|
81
|
-
"name": "Xu Liangzhan",
|
|
82
|
-
"email": "xu_liangzhan@163.com"
|
|
83
|
-
},
|
|
84
|
-
"license": "MIT",
|
|
85
|
-
"bugs": {
|
|
86
|
-
"url": "https://github.com/x-extends/vxe-gantt/issues"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vxe-gantt",
|
|
3
|
+
"version": "3.4.4",
|
|
4
|
+
"description": "A vue based gantt component",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"update": "npm install --legacy-peer-deps",
|
|
7
|
+
"serve": "vue-cli-service serve",
|
|
8
|
+
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
9
|
+
"lib:modules": "gulp build",
|
|
10
|
+
"lib": "npm run lib:pack && npm run lib:modules"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"lib",
|
|
14
|
+
"es",
|
|
15
|
+
"src",
|
|
16
|
+
"helper",
|
|
17
|
+
"types",
|
|
18
|
+
"styles",
|
|
19
|
+
"packages"
|
|
20
|
+
],
|
|
21
|
+
"main": "lib/index.common.js",
|
|
22
|
+
"module": "es/index.esm.js",
|
|
23
|
+
"unpkg": "lib/index.umd.js",
|
|
24
|
+
"jsdelivr": "lib/index.umd.js",
|
|
25
|
+
"style": "lib/style.css",
|
|
26
|
+
"typings": "types/index.d.ts",
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
29
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
30
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
31
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
32
|
+
"@vue/cli-plugin-router": "~5.0.0",
|
|
33
|
+
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
34
|
+
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
35
|
+
"@vue/cli-service": "~5.0.0",
|
|
36
|
+
"@vue/eslint-config-standard": "^6.1.0",
|
|
37
|
+
"@vue/eslint-config-typescript": "^9.1.0",
|
|
38
|
+
"core-js": "^3.8.3",
|
|
39
|
+
"del": "^6.1.1",
|
|
40
|
+
"eslint": "^7.32.0",
|
|
41
|
+
"eslint-plugin-import": "^2.29.1",
|
|
42
|
+
"eslint-plugin-node": "^11.1.0",
|
|
43
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
44
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
45
|
+
"gulp": "^4.0.2",
|
|
46
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
47
|
+
"gulp-babel": "^8.0.0",
|
|
48
|
+
"gulp-clean-css": "^4.3.0",
|
|
49
|
+
"gulp-concat": "^2.6.1",
|
|
50
|
+
"gulp-rename": "^2.0.0",
|
|
51
|
+
"gulp-replace": "^1.1.4",
|
|
52
|
+
"gulp-sass": "^5.1.0",
|
|
53
|
+
"gulp-sourcemaps": "^3.0.0",
|
|
54
|
+
"gulp-typescript": "^5.0.1",
|
|
55
|
+
"gulp-uglify": "^3.0.2",
|
|
56
|
+
"sass": "^1.80.4",
|
|
57
|
+
"sass-loader": "^14.2.1",
|
|
58
|
+
"typescript": "~4.5.5",
|
|
59
|
+
"vue-template-compiler": "2.6.14",
|
|
60
|
+
"vue": "~2.6.14",
|
|
61
|
+
"vue-i18n": "^8.15.1",
|
|
62
|
+
"vue-router": "^3.5.1",
|
|
63
|
+
"vxe-pc-ui": "^3.14.13",
|
|
64
|
+
"vxe-table": "^3.20.13"
|
|
65
|
+
},
|
|
66
|
+
"vetur": {
|
|
67
|
+
"tags": "helper/vetur/tags.json",
|
|
68
|
+
"attributes": "helper/vetur/attributes.json"
|
|
69
|
+
},
|
|
70
|
+
"repository": {
|
|
71
|
+
"type": "git",
|
|
72
|
+
"url": "git+https://github.com/x-extends/vxe-gantt.git"
|
|
73
|
+
},
|
|
74
|
+
"keywords": [
|
|
75
|
+
"gantt",
|
|
76
|
+
"table",
|
|
77
|
+
"vxe-ui",
|
|
78
|
+
"vxe-gantt"
|
|
79
|
+
],
|
|
80
|
+
"author": {
|
|
81
|
+
"name": "Xu Liangzhan",
|
|
82
|
+
"email": "xu_liangzhan@163.com"
|
|
83
|
+
},
|
|
84
|
+
"license": "MIT",
|
|
85
|
+
"bugs": {
|
|
86
|
+
"url": "https://github.com/x-extends/vxe-gantt/issues"
|
|
87
|
+
}
|
|
88
|
+
}
|
package/packages/components.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { VueConstructor } from 'vue'
|
|
2
|
-
import VxeUI from './ui'
|
|
3
|
-
import VxeGantt from './gantt'
|
|
4
|
-
|
|
5
|
-
import type { VxeGlobalConfig } from 'vxe-pc-ui'
|
|
6
|
-
|
|
7
|
-
const { setConfig } = VxeUI
|
|
8
|
-
|
|
9
|
-
const components = [
|
|
10
|
-
VxeGantt
|
|
11
|
-
]
|
|
12
|
-
|
|
13
|
-
export function install (app: VueConstructor, options?: VxeGlobalConfig) {
|
|
14
|
-
setConfig(options)
|
|
15
|
-
|
|
16
|
-
components.forEach(component => app.use(component))
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export { VxeUI }
|
|
20
|
-
|
|
21
|
-
// Components
|
|
22
|
-
export * from './gantt'
|
|
1
|
+
import { VueConstructor } from 'vue'
|
|
2
|
+
import VxeUI from './ui'
|
|
3
|
+
import VxeGantt from './gantt'
|
|
4
|
+
|
|
5
|
+
import type { VxeGlobalConfig } from 'vxe-pc-ui'
|
|
6
|
+
|
|
7
|
+
const { setConfig } = VxeUI
|
|
8
|
+
|
|
9
|
+
const components = [
|
|
10
|
+
VxeGantt
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
export function install (app: VueConstructor, options?: VxeGlobalConfig) {
|
|
14
|
+
setConfig(options)
|
|
15
|
+
|
|
16
|
+
components.forEach(component => app.use(component))
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { VxeUI }
|
|
20
|
+
|
|
21
|
+
// Components
|
|
22
|
+
export * from './gantt'
|
package/packages/gantt/index.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { VueConstructor } from 'vue'
|
|
2
|
-
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
-
import { checkDependVersion } from '../ui/src/depend'
|
|
4
|
-
import VxeGanttComponent from './src/gantt'
|
|
5
|
-
|
|
6
|
-
let isReg = false
|
|
7
|
-
|
|
8
|
-
export const VxeGantt = Object.assign({}, VxeGanttComponent, {
|
|
9
|
-
install (app: VueConstructor) {
|
|
10
|
-
if (typeof window !== 'undefined') {
|
|
11
|
-
const VxeGanttExtendGanttChart = (window as any).VxeGanttExtendGanttChart
|
|
12
|
-
if (VxeGanttExtendGanttChart && VxeGanttExtendGanttChart.use) {
|
|
13
|
-
VxeGanttExtendGanttChart.use(VxeUI)
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
if (!isReg) {
|
|
17
|
-
isReg = true
|
|
18
|
-
if (VxeUI.dynamicApp) {
|
|
19
|
-
VxeUI.dynamicApp.use(VxeGantt)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
checkDependVersion()
|
|
23
|
-
app.component(VxeGanttComponent.name as string, VxeGanttComponent)
|
|
24
|
-
}
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
VxeUI.component(VxeGanttComponent)
|
|
28
|
-
|
|
29
|
-
export * from './src/static'
|
|
30
|
-
|
|
31
|
-
export const Gantt = VxeGantt
|
|
32
|
-
export default VxeGantt
|
|
1
|
+
import { VueConstructor } from 'vue'
|
|
2
|
+
import { VxeUI } from '@vxe-ui/core'
|
|
3
|
+
import { checkDependVersion } from '../ui/src/depend'
|
|
4
|
+
import VxeGanttComponent from './src/gantt'
|
|
5
|
+
|
|
6
|
+
let isReg = false
|
|
7
|
+
|
|
8
|
+
export const VxeGantt = Object.assign({}, VxeGanttComponent, {
|
|
9
|
+
install (app: VueConstructor) {
|
|
10
|
+
if (typeof window !== 'undefined') {
|
|
11
|
+
const VxeGanttExtendGanttChart = (window as any).VxeGanttExtendGanttChart
|
|
12
|
+
if (VxeGanttExtendGanttChart && VxeGanttExtendGanttChart.use) {
|
|
13
|
+
VxeGanttExtendGanttChart.use(VxeUI)
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
if (!isReg) {
|
|
17
|
+
isReg = true
|
|
18
|
+
if (VxeUI.dynamicApp) {
|
|
19
|
+
VxeUI.dynamicApp.use(VxeGantt)
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
checkDependVersion()
|
|
23
|
+
app.component(VxeGanttComponent.name as string, VxeGanttComponent)
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
VxeUI.component(VxeGanttComponent)
|
|
28
|
+
|
|
29
|
+
export * from './src/static'
|
|
30
|
+
|
|
31
|
+
export const Gantt = VxeGantt
|
|
32
|
+
export default VxeGantt
|