workflow-editor 0.9.85-dw → 0.9.85-dw-tmp2
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/.babelrc +40 -0
- package/build/components.json +3 -0
- package/build/gen-style.js +32 -0
- package/build/webpack.base.js +173 -0
- package/build/webpack.component.js +46 -0
- package/build/webpack.prod.js +31 -0
- package/lib/css/workflow-editor.css +16 -0
- package/lib/workflow-editor.js +27 -0
- package/lib/workflow-editor.min.js +27 -0
- package/package.json +50 -23
- package/src/index.js +36 -0
- package/lib/workflow-editor.css +0 -1
- package/lib/workflow-editor.umd.min.js +0 -39
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-editor",
|
|
3
|
-
"version": "0.9.85-dw",
|
|
3
|
+
"version": "0.9.85-dw-tmp2",
|
|
4
4
|
"description": "流程编辑器",
|
|
5
|
-
"main": "lib/workflow-editor.
|
|
5
|
+
"main": "lib/workflow-editor.min.js",
|
|
6
6
|
"private": false,
|
|
7
7
|
"scripts": {
|
|
8
8
|
"serve": "vue-cli-service serve",
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"lib": "vue-cli-service build --modern --target lib --name workflow-editor --dest lib packages/index.js",
|
|
11
11
|
"lint": "vue-cli-service lint",
|
|
12
12
|
"test:e2e": "vue-cli-service test:e2e",
|
|
13
|
-
"test:unit": "vue-cli-service test:unit"
|
|
13
|
+
"test:unit": "vue-cli-service test:unit",
|
|
14
|
+
"build:style": "gulp --gulpfile build/gen-style.js",
|
|
15
|
+
"build:prod": "webpack --config build/webpack.prod.js",
|
|
16
|
+
"build:components": "webpack --config build/webpack.component.js",
|
|
17
|
+
"dist": "npm run build:prod && npm run build:components"
|
|
14
18
|
},
|
|
15
19
|
"dependencies": {
|
|
16
20
|
"babel-plugin-prismjs": "^1.0.2",
|
|
@@ -20,29 +24,52 @@
|
|
|
20
24
|
"xml-js": "^1.6.11"
|
|
21
25
|
},
|
|
22
26
|
"devDependencies": {
|
|
27
|
+
"@babel/core": "^7.5.5",
|
|
28
|
+
"@babel/plugin-transform-runtime": "^7.5.5",
|
|
29
|
+
"@babel/preset-env": "^7.5.5",
|
|
30
|
+
"@gcommon/gcommon-ui": "1.8.0",
|
|
23
31
|
"@vue/cli-plugin-babel": "3.8.0",
|
|
24
|
-
"@vue/
|
|
25
|
-
"@vue/cli-plugin-eslint": "3.8.0",
|
|
26
|
-
"@vue/cli-plugin-unit-mocha": "3.8.0",
|
|
27
|
-
"@vue/cli-service": "3.8.0",
|
|
28
|
-
"@vue/eslint-config-standard": "^4.0.0",
|
|
29
|
-
"@vue/test-utils": "^1.0.0-beta.29",
|
|
32
|
+
"@vue/test-utils": "^1.3.6",
|
|
30
33
|
"axios": "0.19.0",
|
|
31
|
-
"babel-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
34
|
+
"babel-loader": "^8.0.6",
|
|
35
|
+
"babel-plugin-component": "^1.1.1",
|
|
36
|
+
"chai": "^4.2.0",
|
|
37
|
+
"cross-env": "^5.2.0",
|
|
38
|
+
"css-loader": "2.1.1",
|
|
39
|
+
"file-loader": "^4.2.0",
|
|
40
|
+
"gh-pages": "^2.1.1",
|
|
41
|
+
"gulp": "^4.0.2",
|
|
42
|
+
"gulp-autoprefixer": "^7.0.0",
|
|
43
|
+
"gulp-clean-css": "^4.2.0",
|
|
44
|
+
"gulp-rename": "^1.4.0",
|
|
45
|
+
"gulp-sass": "^4.0.2",
|
|
46
|
+
"imatrix-ui": "2.9.0-dw-tmp13",
|
|
47
|
+
"karma": "^4.2.0",
|
|
48
|
+
"karma-chai": "^0.1.0",
|
|
49
|
+
"karma-chrome-launcher": "^3.1.0",
|
|
50
|
+
"karma-coverage": "^2.0.1",
|
|
51
|
+
"karma-mocha": "^1.3.0",
|
|
52
|
+
"karma-sinon-chai": "^2.0.2",
|
|
53
|
+
"karma-sourcemap-loader": "^0.3.7",
|
|
54
|
+
"karma-spec-reporter": "^0.0.32",
|
|
55
|
+
"karma-webpack": "^4.0.2",
|
|
56
|
+
"less": "^3.10.2",
|
|
57
|
+
"less-loader": "^5.0.0",
|
|
58
|
+
"mocha": "^6.2.0",
|
|
59
|
+
"node-sass": "^4.12.0",
|
|
60
|
+
"rimraf": "^3.0.0",
|
|
61
|
+
"sass-loader": "^7.3.1",
|
|
40
62
|
"sessionstorage": "^0.1.0",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
63
|
+
"sinon": "^7.4.1",
|
|
64
|
+
"sinon-chai": "^3.3.0",
|
|
65
|
+
"style-loader": "^0.23.1",
|
|
66
|
+
"url-loader": "^2.1.0",
|
|
43
67
|
"vue-i18n": "^8.17.4",
|
|
44
|
-
"vue-
|
|
45
|
-
"vue-
|
|
46
|
-
"
|
|
68
|
+
"vue-loader": "^15.7.1",
|
|
69
|
+
"vue-style-loader": "^4.1.2",
|
|
70
|
+
"vuepress": "^1.0.3",
|
|
71
|
+
"vuex": "^3.1.1",
|
|
72
|
+
"webpack": "^4.39.2",
|
|
73
|
+
"webpack-cli": "^3.3.7"
|
|
47
74
|
}
|
|
48
75
|
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// 依次导入组件库的各个组件
|
|
2
|
+
import workflow from '../packages/workflow-editor'
|
|
3
|
+
import formValidator from './../packages/plugins/index'
|
|
4
|
+
const WorkflowEditor = workflow.WorkflowEditor
|
|
5
|
+
// const WorkflowHistory = workflow.WorkflowHistory
|
|
6
|
+
// const wfEditorStore = workflow.wfEditorStore
|
|
7
|
+
|
|
8
|
+
// 将所有组件都存储起来,方便后续统一注册
|
|
9
|
+
// const components = [
|
|
10
|
+
// WorkflowEditor,
|
|
11
|
+
// WorkflowHistory
|
|
12
|
+
// ]
|
|
13
|
+
|
|
14
|
+
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
15
|
+
const install = function(Vue) {
|
|
16
|
+
if (install.installed) return
|
|
17
|
+
// components.forEach(component => {
|
|
18
|
+
// Vue.component(component.name, component)
|
|
19
|
+
// })
|
|
20
|
+
// components.map(component => Vue.component(component.name, component))
|
|
21
|
+
Vue.use(formValidator)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
|
|
25
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
26
|
+
install(window.Vue)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
WorkflowEditor
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default {
|
|
34
|
+
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
35
|
+
install
|
|
36
|
+
}
|
package/lib/workflow-editor.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.svg-icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}h3[data-v-9c5970fe]{color:#999;margin:0;padding:0;font-weight:700;font-size:18px}.el-button[data-v-9c5970fe]{margin:6px 0;min-width:110px;padding:9px 15px}.el-button i[data-v-9c5970fe]{padding-right:4px}.joint-container{stroke-width:0;fill:#fff;fill-opacity:0}.joint{fill:#00f;stroke-width:1px}.joint-activated{fill:red;stroke-width:1px;fill-opacity:1}.end,.start{stroke-width:0;fill:#fff}.resizer{stroke:#00f;stroke-width:1;fill:#fff}.decision,.human-decision{stroke-width:0;fill:#fff}.control-point[data-v-41f44015]{fill:#fff;cursor:move}.control-line[data-v-41f44015]{stroke-dasharray:2 2}.control-point[data-v-58d8ad5f]{fill:#fff;cursor:move}.control-line[data-v-58d8ad5f]{stroke-dasharray:2 2}.transition[data-v-e5a42fd4]{stroke-width:2;stroke:#666;fill:none;cursor:pointer}.selected[data-v-e5a42fd4]{stroke:red}.transition-dragger[data-v-e5a42fd4]{stroke:red;stroke-width:1;fill:#fff;cursor:move}.no-events[data-v-e5a42fd4]{pointer-events:none}.virtual-transition{stroke-width:2;stroke:#000;stroke-dasharray:2 2;fill:none}.selection-region{stroke:#00f;stroke-width:1;fill:#fff;fill-opacity:0;opacity:1;cursor:move}.dashed{stroke-dasharray:10 2;pointer-events:none}.group[data-v-70c39db1]{font-size:14px;width:100%}.item[data-v-70c39db1]{float:left;list-style-type:none;width:33.33%;margin-bottom:18px}.item-content[data-v-70c39db1]{height:calc(100vh - 300px);padding-left:20px;overflow:auto}.el-tag+.el-tag[data-v-f88237fa]{margin-left:10px}.button-new-tag[data-v-f88237fa]{margin-left:10px;height:32px;line-height:30px;padding-top:0;padding-bottom:0}.input-new-tag[data-v-f88237fa]{width:150px;margin-left:10px;vertical-align:bottom}select[data-v-f88237fa]{width:150px;margin-left:10px;height:32px;line-height:32px}#custTabOne[data-v-903790ea] .el-tabs__content{height:500px}.percent[data-v-4d6a43bf]{margin-left:10px;color:red;font-size:1.2em}#appContainer[data-v-016e1d5a] .el-checkbox{display:block}#appContainer[data-v-016e1d5a] .el-transfer-panel{width:400px}#appContainer[data-v-016e1d5a] .ellipsis{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;width:55%}.searchResult{color:red}.inline-input-custom{width:90%}.el-checkbox[data-v-b65ebf7a]{margin-left:20px}span[data-v-7e8353be]{margin:0 10px}.properties-editor[data-v-31f14dc3] .el-dialog__body,.properties-editor[data-v-ede7bae2] .el-dialog__body{padding-top:0}.percent[data-v-0d4db702]{margin-left:10px;color:red;font-size:1.2em}.el-checkbox[data-v-3d943ddb]{margin-left:20px}.properties-editor[data-v-1ea26573] .el-dialog__body,.properties-editor[data-v-1974a482] .el-dialog__body{padding-top:0}.tooltip[data-v-dd12406c]{position:absolute;background:#fff;min-width:150px;border-radius:4px;border:1px solid #ebeef5;padding:12px;z-index:2000;color:#606266;line-height:1.4;text-align:justify;font-size:14px;-webkit-box-shadow:0 2px 12px 0 rgba(0,0,0,.1);box-shadow:0 2px 12px 0 rgba(0,0,0,.1);word-break:break-all}li[data-v-2554d9c6]{color:#333}.context-menu[data-v-2554d9c6]{position:fixed;background:#fff;z-index:999;padding:5px;margin:0}.context-menu li[data-v-2554d9c6]{min-width:75px;height:28px;line-height:28px;text-align:left;color:#1a1a1a}.context-menu li[data-v-2554d9c6]:hover{background:#42b983;color:#fff}.context-menu[data-v-2554d9c6]{border:1px solid #eee;-webkit-box-shadow:0 .5em 1em 0 rgba(0,0,0,.1);box-shadow:0 .5em 1em 0 rgba(0,0,0,.1);border-radius:5px}li[data-v-2554d9c6]{list-style-type:none}pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}code[class*=language-],pre[class*=language-]{color:#000;background:none;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{position:relative;margin:.5em 0;overflow:visible;padding:1px}pre[class*=language-]>code{position:relative;z-index:1;border-left:10px solid #358ccb;-webkit-box-shadow:-1px 0 0 0 #358ccb,0 0 0 1px #dfdfdf;box-shadow:-1px 0 0 0 #358ccb,0 0 0 1px #dfdfdf;background-color:#fdfdfd;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(50%,transparent),color-stop(50%,rgba(69,142,209,.04)));background-image:linear-gradient(transparent 50%,rgba(69,142,209,.04) 0);background-size:3em 3em;background-origin:content-box;background-attachment:local}code[class*=language-]{max-height:inherit;height:inherit;padding:0 1em;display:block;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdfdfd;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}:not(pre)>code[class*=language-]{position:relative;padding:.2em;border-radius:.3em;color:#c92c2c;border:1px solid rgba(0,0,0,.1);display:inline;white-space:normal}pre[class*=language-]:after,pre[class*=language-]:before{content:"";display:block;position:absolute;bottom:.75em;left:.18em;width:40%;height:20%;max-height:13em;-webkit-box-shadow:0 13px 8px #979797;box-shadow:0 13px 8px #979797;-webkit-transform:rotate(-2deg);transform:rotate(-2deg)}pre[class*=language-]:after{right:.75em;left:auto;-webkit-transform:rotate(2deg);transform:rotate(2deg)}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#7d8b99}.token.punctuation{color:#5f6364}.token.boolean,.token.constant,.token.deleted,.token.function-name,.token.number,.token.property,.token.symbol,.token.tag{color:#c92c2c}.token.attr-name,.token.builtin,.token.char,.token.function,.token.inserted,.token.selector,.token.string{color:#2f9c0a}.token.entity,.token.operator,.token.url,.token.variable{color:#a67f59;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.class-name,.token.keyword{color:#1990b8}.token.important,.token.regex{color:#e90}.language-css .token.string,.style .token.string{color:#a67f59;background:hsla(0,0%,100%,.5)}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.7}@media screen and (max-width:767px){pre[class*=language-]:after,pre[class*=language-]:before{bottom:14px;-webkit-box-shadow:none;box-shadow:none}}pre[class*=language-].line-numbers.line-numbers{padding-left:0}pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}pre[class*=language-][data-line]{padding-top:0;padding-bottom:0;padding-left:0}pre[data-line] code{position:relative;padding-left:4em}pre .line-highlight{margin-top:0}.button-area[data-v-37937af4]{padding:5px 0 5px 5px;height:50px}.el-row[data-v-37937af4]{border:1px solid #f1f1f1;border-radius:5px}.el-col[data-v-37937af4]{padding-left:5px}.main[data-v-37937af4]{display:-webkit-box;display:-ms-flexbox;display:flex}.canvas-container[data-v-37937af4],.main[data-v-37937af4]{position:relative;height:calc(100% - 50px);width:100%}.toolbox[data-v-37937af4]{width:150px;overflow-y:auto;height:100%;background:#f7f7f7;padding:10px;text-align:center;-webkit-box-flex:0;-ms-flex:none;flex:none}section[data-v-37937af4]{overflow:hidden;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;height:100%;padding:0}.tab-pane[data-v-37937af4],.tabs[data-v-37937af4]{height:100%;width:100%}.tabs[data-v-37937af4] .el-tabs__content{height:calc(100% - 41px);padding:10px;width:100%}.canvas[data-v-37937af4],.xml[data-v-37937af4]{overflow:auto;height:100%;width:100%;padding:0;min-height:500px}pre[data-v-37937af4]{margin:0;font-size:16px}.component-icon[data-v-37937af4]{position:absolute;pointer-events:none}.canvas[data-v-37937af4] .draggable{cursor:move}#_subprocess-content[data-v-d95c25fc]{width:100%;height:calc(100vh - 200px)}#svg{background:#fff;background-image:linear-gradient(hsla(0,0%,94.9%,.7) 1px,transparent 0),linear-gradient(90deg,hsla(0,0%,94.9%,.7) 1px,transparent 0),linear-gradient(#e5e5e5 1px,transparent 0),linear-gradient(90deg,#e5e5e5 1px,transparent 0);background-size:15px 15px,15px 15px,75px 75px,75px 75px}g{font-size:16px}g text{dominant-baseline:middle}.selected{fill:#fff;stroke:red;stroke-width:2}.task-tache{fill:#fff;stroke:#666;stroke-width:2}.passed-tache .task-tache{fill:green;stroke:green;stroke-width:2}.current-tache .task-tache{fill:red;stroke:red;stroke-width:2}.current-tache text,.passed-tache text{fill:#fff}.main[data-v-422096c3]{display:-webkit-box;display:-ms-flexbox;display:flex}.canvas-container[data-v-422096c3],.main[data-v-422096c3]{position:relative;height:100%;width:100%}section[data-v-422096c3]{overflow:hidden;width:100%;height:100%;padding:0}.canvas[data-v-422096c3]{overflow:auto;height:100%;padding:0;min-height:500px}.canvas[data-v-422096c3] .draggable{cursor:default}
|