workflow-editor 0.0.81-up-tmp16 → 0.0.81-up-tmp18
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/index.full.min.js +655 -1149
- package/dist/style.css +5 -5
- package/es/index.mjs +19 -0
- package/es/plugins/{formValidatorUtil.js → formValidatorUtil.mjs} +61 -61
- package/es/plugins/{index.js → index.mjs} +1 -1
- package/es/src/i18n/i18n.mjs +7 -0
- package/es/style.css +95 -95
- package/es/workflow-editor/index.mjs +8 -0
- package/es/workflow-editor/src/json-object-templates/{auto-task.js → auto-task.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{copy-task.js → copy-task.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{decision.js → decision.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{end.js → end.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{fork.js → fork.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{human-decision.js → human-decision.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{human-task.js → human-task.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{join.js → join.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{process.js → process.mjs} +2 -2
- package/es/workflow-editor/src/json-object-templates/{start.js → start.mjs} +1 -1
- package/es/workflow-editor/src/json-object-templates/{subprocess.js → subprocess.mjs} +1 -1
- package/es/workflow-editor/src/main/{admin-save-dialog.vue.js → admin-save-dialog.vue.mjs} +1 -1
- package/es/workflow-editor/src/main/{canvas.vue.js → canvas.vue.mjs} +29 -29
- package/es/workflow-editor/src/main/{context-menu.vue.js → context-menu.vue.mjs} +3 -3
- package/es/workflow-editor/src/main/{icon-svg.vue.js → icon-svg.vue.mjs} +4 -4
- package/es/workflow-editor/src/main/{selection-region.vue.js → selection-region.vue.mjs} +3 -3
- package/es/workflow-editor/src/main/{tache-history-tooltip.vue.js → tache-history-tooltip.vue.mjs} +2 -2
- package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue.js → tache-subprocess-history-dialog.vue.mjs} +2 -2
- package/es/workflow-editor/src/main/{toolbox.vue.js → toolbox.vue.mjs} +6 -6
- package/es/workflow-editor/src/main/{wf-history-canvas.vue.js → wf-history-canvas.vue.mjs} +17 -17
- package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue.js → basic-properties.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/{auto-task.vue.js → auto-task.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{additional-condition-utils.js → additional-condition-utils.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{additional-condition.vue.js → additional-condition.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields-utils.js → auto-filled-fields-utils.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/common/{auto-filled-fields.vue.js → auto-filled-fields.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/common/{common-notice-tool.vue.js → common-notice-tool.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{common-user-condition.vue.js → common-user-condition.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{form-fields.vue.js → form-fields.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{i18n-input.vue.js → i18n-input.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/common/{i18n-set-dialog.vue.js → i18n-set-dialog.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue.js → notice-reminder.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/common/{notice.vue.js → notice.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{reminder.vue.js → reminder.vue.mjs} +5 -5
- package/es/workflow-editor/src/properties-editors/common/{select-mail-template.vue.js → select-mail-template.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue.js → system-role-tree-inline.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue.js → system-role-tree.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/common/{task-title.vue.js → task-title.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{transactor-settings.vue.js → transactor-settings.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{user-selection.vue.js → user-selection.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue.js → value-selection-dialog.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/common/{variables.vue.js → variables.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue.js → basic-properties.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue.js → permission-settings.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/{copy-task.vue.js → copy-task.vue.mjs} +11 -11
- package/es/workflow-editor/src/properties-editors/{decision.vue.js → decision.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/{fork.vue.js → fork.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/{human-decision.vue.js → human-decision.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/human-task/{additional-condition-dialog.vue.js → additional-condition-dialog.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue.js → basic-properties.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/human-task/{componentsConfigUtil.js → componentsConfigUtil.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/human-task/{custom-actions.vue.js → custom-actions.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/human-task/{editable-child-field-setting.vue.js → editable-child-field-setting.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/human-task/{editable-child-fields.vue.js → editable-child-fields.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue.js → editable-field-selection.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/human-task/{editable-fields.vue.js → editable-fields.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/human-task/{events.vue.js → events.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue.js → permission-settings.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/human-task/{selection-conditions.vue.js → selection-conditions.vue.mjs} +4 -4
- package/es/workflow-editor/src/properties-editors/{human-task.vue.js → human-task.vue.mjs} +9 -9
- package/es/workflow-editor/src/properties-editors/{join.vue.js → join.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/process/{basic-properties.vue.js → basic-properties.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/process/{events.vue.js → events.vue.mjs} +6 -6
- package/es/workflow-editor/src/properties-editors/process/{notice-settings.vue.js → notice-settings.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/process/{parameter-settings.vue.js → parameter-settings.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/process/{permission-settings.vue.js → permission-settings.vue.mjs} +2 -2
- package/es/workflow-editor/src/properties-editors/process/{selectPage.vue.js → selectPage.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/{process.vue.js → process.vue.mjs} +8 -8
- package/es/workflow-editor/src/properties-editors/subprocess/{basic-properties.vue.js → basic-properties.vue.mjs} +8 -8
- package/es/workflow-editor/src/properties-editors/subprocess/{events.vue.js → events.vue.mjs} +1 -1
- package/es/workflow-editor/src/properties-editors/subprocess/{field-mappings.vue.js → field-mappings.vue.mjs} +5 -5
- package/es/workflow-editor/src/properties-editors/subprocess/{transactor-settings.vue.js → transactor-settings.vue.mjs} +7 -7
- package/es/workflow-editor/src/properties-editors/{subprocess.vue.js → subprocess.vue.mjs} +5 -5
- package/es/workflow-editor/src/properties-editors/transition/{basic-properties.vue.js → basic-properties.vue.mjs} +3 -3
- package/es/workflow-editor/src/properties-editors/{transition.vue.js → transition.vue.mjs} +9 -9
- package/es/workflow-editor/src/properties-editors/{user-condition.js → user-condition.mjs} +1 -1
- package/es/workflow-editor/src/store/{workflow-editor.js → workflow-editor.mjs} +1 -1
- package/es/workflow-editor/src/taches/{auto-task.vue.js → auto-task.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{common-methods.js → common-methods.mjs} +1 -1
- package/es/workflow-editor/src/taches/{copy-task.vue.js → copy-task.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{custom-task.vue.js → custom-task.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{decision.vue.js → decision.vue.mjs} +5 -5
- package/es/workflow-editor/src/taches/{end.vue.js → end.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{fork.vue.js → fork.vue.mjs} +5 -5
- package/es/workflow-editor/src/taches/{human-decision.vue.js → human-decision.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{human-task.vue.js → human-task.vue.mjs} +5 -5
- package/es/workflow-editor/src/taches/{join.vue.js → join.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{joint.vue.js → joint.vue.mjs} +3 -3
- package/es/workflow-editor/src/taches/{start.vue.js → start.vue.mjs} +4 -4
- package/es/workflow-editor/src/taches/{subprocess.vue.js → subprocess.vue.mjs} +7 -7
- package/es/workflow-editor/src/taches/{tache-resizer.vue.js → tache-resizer.vue.mjs} +2 -2
- package/es/workflow-editor/src/transitions/{broken-line.vue.js → broken-line.vue.mjs} +3 -3
- package/es/workflow-editor/src/transitions/{curve-line.vue.js → curve-line.vue.mjs} +3 -3
- package/es/workflow-editor/src/transitions/{straight-line.vue.js → straight-line.vue.mjs} +2 -2
- package/es/workflow-editor/src/transitions/{transition.vue.js → transition.vue.mjs} +8 -8
- package/es/workflow-editor/src/transitions/{virtual-transition.vue.js → virtual-transition.vue.mjs} +3 -3
- package/es/workflow-editor/src/{util.js → util.mjs} +13 -13
- package/es/workflow-editor/src/{workflow-editor.vue.js → workflow-editor.vue.mjs} +16 -16
- package/es/workflow-history/index.mjs +8 -0
- package/es/{workflow-editor/src/workflow-history.vue.js → workflow-history/src/workflow-history.vue.mjs} +13 -13
- package/lib/index.cjs +4 -4
- package/lib/plugins/formValidatorUtil.cjs +8 -8
- package/lib/style.css +94 -94
- package/lib/workflow-editor/index.cjs +4 -4
- package/lib/workflow-history/index.cjs +7 -0
- package/lib/{workflow-editor → workflow-history}/src/workflow-history.vue.cjs +3 -3
- package/package.json +2 -1
- package/es/index.js +0 -17
- package/es/src/i18n/i18n.js +0 -7
- package/es/workflow-editor/index.js +0 -10
- /package/es/_virtual/{_plugin-vue_export-helper.js → _plugin-vue_export-helper.mjs} +0 -0
- /package/es/src/i18n/langs/{cn.js → cn.mjs} +0 -0
- /package/es/src/i18n/langs/{en.js → en.mjs} +0 -0
- /package/es/workflow-editor/src/{api.js → api.mjs} +0 -0
- /package/es/workflow-editor/src/assets/{wf-editor-icons.js → wf-editor-icons.mjs} +0 -0
- /package/es/workflow-editor/src/json-object-templates/{transition.js → transition.mjs} +0 -0
- /package/es/workflow-editor/src/main/{canvas.vue2.js → canvas.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{context-menu.vue2.js → context-menu.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{icon-svg.vue2.js → icon-svg.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{selection-region.vue2.js → selection-region.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{tache-history-tooltip.vue2.js → tache-history-tooltip.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{tache-subprocess-history-dialog.vue2.js → tache-subprocess-history-dialog.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{toolbox.vue2.js → toolbox.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/main/{wf-history-canvas.vue2.js → wf-history-canvas.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/{process-service.js → process-service.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/auto-task/{basic-properties.vue2.js → basic-properties.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{auto-task.vue2.js → auto-task.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{form-fields-utils.js → form-fields-utils.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{form-fields.vue2.js → form-fields.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{notice-reminder.vue2.js → notice-reminder.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{reminder.vue2.js → reminder.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{system-role-tree-inline.vue2.js → system-role-tree-inline.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{system-role-tree.vue2.js → system-role-tree.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{task-title.vue2.js → task-title.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/common/{value-selection-dialog.vue2.js → value-selection-dialog.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/copy-task/{basic-properties.vue2.js → basic-properties.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/copy-task/{permission-settings.vue2.js → permission-settings.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{copy-task.vue2.js → copy-task.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/human-task/{basic-properties.vue2.js → basic-properties.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/human-task/{editable-field-selection.vue2.js → editable-field-selection.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/human-task/{permission-settings.vue2.js → permission-settings.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{human-task.vue2.js → human-task.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{subprocess.vue2.js → subprocess.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/properties-editors/{transition.vue2.js → transition.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/store/{getters.js → getters.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{decision.vue2.js → decision.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{end.vue2.js → end.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{fork.vue2.js → fork.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{human-decision.vue2.js → human-decision.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{join.vue2.js → join.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{joint.vue2.js → joint.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{start.vue2.js → start.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/taches/{tache-resizer.vue2.js → tache-resizer.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{broken-line.vue2.js → broken-line.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{curve-line.vue2.js → curve-line.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{transition.vue2.js → transition.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/transitions/{virtual-transition.vue2.js → virtual-transition.vue2.mjs} +0 -0
- /package/es/workflow-editor/src/{workflow-editor.vue2.js → workflow-editor.vue2.mjs} +0 -0
- /package/es/{workflow-editor/src/workflow-history.vue2.js → workflow-history/src/workflow-history.vue2.mjs} +0 -0
- /package/lib/{workflow-editor → workflow-history}/src/workflow-history.vue2.cjs +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { getLanguageWithLocale as t } from "agilebuilder-ui";
|
|
2
|
-
import o from "../../src/i18n/i18n.
|
|
3
|
-
import e from "./json-object-templates/auto-task.
|
|
4
|
-
import n from "./json-object-templates/copy-task.
|
|
5
|
-
import i from "./json-object-templates/decision.
|
|
6
|
-
import r from "./json-object-templates/end.
|
|
7
|
-
import s from "./json-object-templates/fork.
|
|
8
|
-
import a from "./json-object-templates/human-decision.
|
|
9
|
-
import c from "./json-object-templates/human-task.
|
|
10
|
-
import l from "./json-object-templates/join.
|
|
11
|
-
import d from "./json-object-templates/process.
|
|
12
|
-
import f from "./json-object-templates/start.
|
|
13
|
-
import m from "./json-object-templates/subprocess.
|
|
14
|
-
import u from "./json-object-templates/transition.
|
|
2
|
+
import o from "../../src/i18n/i18n.mjs";
|
|
3
|
+
import e from "./json-object-templates/auto-task.mjs";
|
|
4
|
+
import n from "./json-object-templates/copy-task.mjs";
|
|
5
|
+
import i from "./json-object-templates/decision.mjs";
|
|
6
|
+
import r from "./json-object-templates/end.mjs";
|
|
7
|
+
import s from "./json-object-templates/fork.mjs";
|
|
8
|
+
import a from "./json-object-templates/human-decision.mjs";
|
|
9
|
+
import c from "./json-object-templates/human-task.mjs";
|
|
10
|
+
import l from "./json-object-templates/join.mjs";
|
|
11
|
+
import d from "./json-object-templates/process.mjs";
|
|
12
|
+
import f from "./json-object-templates/start.mjs";
|
|
13
|
+
import m from "./json-object-templates/subprocess.mjs";
|
|
14
|
+
import u from "./json-object-templates/transition.mjs";
|
|
15
15
|
function p() {
|
|
16
16
|
return window.$store;
|
|
17
17
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import "./assets/wf-editor-icons.
|
|
1
|
+
import "./assets/wf-editor-icons.mjs";
|
|
2
2
|
import { mapGetters as e, mapMutations as t } from "vuex";
|
|
3
|
-
import { getComponentInfo as s, processTemplate as o, initializeProcessData as i, removeTextProperty as n, getMousePosition as r } from "./util.
|
|
4
|
-
import a from "./main/toolbox.vue.
|
|
5
|
-
import l from "./main/canvas.vue.
|
|
6
|
-
import d from "./main/icon-svg.vue.
|
|
7
|
-
import c from "./main/context-menu.vue.
|
|
3
|
+
import { getComponentInfo as s, processTemplate as o, initializeProcessData as i, removeTextProperty as n, getMousePosition as r } from "./util.mjs";
|
|
4
|
+
import a from "./main/toolbox.vue.mjs";
|
|
5
|
+
import l from "./main/canvas.vue.mjs";
|
|
6
|
+
import d from "./main/icon-svg.vue.mjs";
|
|
7
|
+
import c from "./main/context-menu.vue.mjs";
|
|
8
8
|
import h from "xml-js";
|
|
9
|
-
import f from "./process-service.
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import u from "./main/admin-save-dialog.vue.
|
|
9
|
+
import f from "./process-service.mjs";
|
|
10
|
+
import m from "file-saver";
|
|
11
|
+
import p from "prismjs";
|
|
12
|
+
import u from "./main/admin-save-dialog.vue.mjs";
|
|
13
13
|
import { authApi as w, http as b } from "agilebuilder-ui";
|
|
14
14
|
import { resolveComponent as y, resolveDirective as g, openBlock as C, createElementBlock as v, createVNode as x, withCtx as P, createBlock as k, createTextVNode as S, toDisplayString as V, createCommentVNode as I, withDirectives as $, createElementVNode as D, Fragment as E, renderList as T, withModifiers as M, normalizeStyle as A } from "vue";
|
|
15
|
-
import "./workflow-editor.vue2.
|
|
16
|
-
import F from "../../_virtual/_plugin-vue_export-helper.
|
|
15
|
+
import "./workflow-editor.vue2.mjs";
|
|
16
|
+
import F from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
17
17
|
const X = { name: "WorkflowEditor", components: { WorkflowCanvas: l, Toolbox: a, IconSvg: d, ContextMenu: c, AdminSaveDialog: u }, props: { code: { type: String, default: null }, version: { type: Number, default: null }, id: { type: Number, default: null }, readonly: { type: Boolean, default: false }, systemCode: { type: String, default: null }, systemPublishVersion: { type: Number, default: null }, pageCode: { type: String, default: null } }, data: function() {
|
|
18
18
|
return { activeTab: "canvas", count: 1, currentPosition: { x: 0, y: 0 }, process: null, definitionId: null, xml: "", contextMenuPosition: null, isAdminSave: false, isShowEnable: false, defVersion: 0, workflowDefVersionList: [], isShowDefVersionList: false, canvasKey: 0 };
|
|
19
19
|
}, computed: { ...e("wfEditor", ["componentToDraw", "taches", "selectedTaches", "transitions", "contextMenuVisible", "systemVersion", "tableCode", "pageCode", "sourceComponentType"]), ...e(["sidebar"]), componentInfo() {
|
|
20
20
|
return s(this.componentToDraw);
|
|
21
21
|
} }, watch: { activeTab(e2) {
|
|
22
22
|
"xml" === e2 && (this.xml = this.getProcessXml(), this.$nextTick(function() {
|
|
23
|
-
|
|
23
|
+
p.highlightElement(this.$refs.xml);
|
|
24
24
|
}));
|
|
25
25
|
}, sourceComponentType(e2) {
|
|
26
26
|
e2 && this.copyTache();
|
|
@@ -134,7 +134,7 @@ const X = { name: "WorkflowEditor", components: { WorkflowCanvas: l, Toolbox: a,
|
|
|
134
134
|
});
|
|
135
135
|
}, exportProcessFromClient() {
|
|
136
136
|
const e2 = new Blob([this.getProcessXml()], { type: "text/xml;charset=utf-8" });
|
|
137
|
-
|
|
137
|
+
m.saveAs(e2, this.process.attr.name + ".xml");
|
|
138
138
|
}, exportProcess() {
|
|
139
139
|
const e2 = this.getProcessXml();
|
|
140
140
|
this.$http({ method: "post", url: this.baseAPI + "/wf-editor/save-as-xmls", data: { xmlContent: e2 } }).then((e3) => {
|
|
@@ -197,8 +197,8 @@ const X = { name: "WorkflowEditor", components: { WorkflowCanvas: l, Toolbox: a,
|
|
|
197
197
|
});
|
|
198
198
|
} } }, _ = { style: { width: "100%", height: "100%", background: "#fff" } }, L = { key: 0, class: "xml line-numbers" };
|
|
199
199
|
const W = F(X, [["render", function(e2, t2, s2, o2, i2, n2) {
|
|
200
|
-
const r2 = y("el-button"), a2 = y("el-option"), l2 = y("el-select"), d2 = y("el-row"), c2 = y("toolbox"), h2 = y("workflow-canvas"), f2 = y("el-tab-pane"),
|
|
201
|
-
return C(), v("div", { ref: "wfEditor", style: { position: "relative", height: "100%" }, onMousedown: t2[9] || (t2[9] = (t3) => e2.setContextMenuVisible(false)), onMousewheel: t2[10] || (t2[10] = (t3) => e2.setContextMenuVisible(false)) }, [x(d2, { class: "button-area" }, { default: P(() => [s2.readonly ? I("", true) : (C(), k(r2, { key: 0, type: "primary", onClick: n2.saveXml }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), s2.readonly ? I("", true) : $((C(), k(r2, { key: 1, class: "button--default", onClick: n2.adminSave }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[b2, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (C(), k(r2, { key: 2, class: "button--default", onClick: n2.enableWf }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : I("", true), x(r2, { class: "button--default", onClick: n2.exportProcessFromClient }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), s2.readonly ? I("", true) : (C(), k(r2, { key: 3, class: "button--default", onClick: n2.selectProcessFile }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.open")) + " ", 1), D("input", { ref: "processFile", type: "file", name: "processFile", accept: ".xml", style: { display: "none" }, onChange: t2[0] || (t2[0] = (...e3) => n2.openXmlFromClient && n2.openXmlFromClient(...e3)) }, null, 544)]), _: 1 }, 8, ["onClick"])), x(r2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (C(), k(l2, { key: 4, modelValue: e2.defVersion, "onUpdate:modelValue": t2[2] || (t2[2] = (t3) => e2.defVersion = t3), style: { "padding-left": "10px", width: "200px" }, onChange: n2.changeDefVersion }, { default: P(() => [(C(true), v(E, null, T(e2.workflowDefVersionList, (e3) => (C(), k(a2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : I("", true)]), _: 1 }), D("div", { class: "main", onMousedown: t2[4] || (t2[4] = (...e3) => n2.startDrag && n2.startDrag(...e3)), onMousemove: t2[5] || (t2[5] = (...e3) => n2.drag && n2.drag(...e3)), onMouseup: t2[6] || (t2[6] = (...e3) => n2.endDrag && n2.endDrag(...e3)), onMouseleave: t2[7] || (t2[7] = (...e3) => n2.clearStatus && n2.clearStatus(...e3)) }, [s2.readonly ? I("", true) : (C(), k(c2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (C(), v("section", { class: "tabBox", key: e2.canvasKey }, [x(
|
|
200
|
+
const r2 = y("el-button"), a2 = y("el-option"), l2 = y("el-select"), d2 = y("el-row"), c2 = y("toolbox"), h2 = y("workflow-canvas"), f2 = y("el-tab-pane"), m2 = y("el-tabs"), p2 = y("icon-svg"), u2 = y("context-menu"), w2 = y("admin-save-dialog"), b2 = g("permission");
|
|
201
|
+
return C(), v("div", { ref: "wfEditor", style: { position: "relative", height: "100%" }, onMousedown: t2[9] || (t2[9] = (t3) => e2.setContextMenuVisible(false)), onMousewheel: t2[10] || (t2[10] = (t3) => e2.setContextMenuVisible(false)) }, [x(d2, { class: "button-area" }, { default: P(() => [s2.readonly ? I("", true) : (C(), k(r2, { key: 0, type: "primary", onClick: n2.saveXml }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), s2.readonly ? I("", true) : $((C(), k(r2, { key: 1, class: "button--default", onClick: n2.adminSave }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[b2, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (C(), k(r2, { key: 2, class: "button--default", onClick: n2.enableWf }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : I("", true), x(r2, { class: "button--default", onClick: n2.exportProcessFromClient }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), s2.readonly ? I("", true) : (C(), k(r2, { key: 3, class: "button--default", onClick: n2.selectProcessFile }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.open")) + " ", 1), D("input", { ref: "processFile", type: "file", name: "processFile", accept: ".xml", style: { display: "none" }, onChange: t2[0] || (t2[0] = (...e3) => n2.openXmlFromClient && n2.openXmlFromClient(...e3)) }, null, 544)]), _: 1 }, 8, ["onClick"])), x(r2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: P(() => [S(V(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (C(), k(l2, { key: 4, modelValue: e2.defVersion, "onUpdate:modelValue": t2[2] || (t2[2] = (t3) => e2.defVersion = t3), style: { "padding-left": "10px", width: "200px" }, onChange: n2.changeDefVersion }, { default: P(() => [(C(true), v(E, null, T(e2.workflowDefVersionList, (e3) => (C(), k(a2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : I("", true)]), _: 1 }), D("div", { class: "main", onMousedown: t2[4] || (t2[4] = (...e3) => n2.startDrag && n2.startDrag(...e3)), onMousemove: t2[5] || (t2[5] = (...e3) => n2.drag && n2.drag(...e3)), onMouseup: t2[6] || (t2[6] = (...e3) => n2.endDrag && n2.endDrag(...e3)), onMouseleave: t2[7] || (t2[7] = (...e3) => n2.clearStatus && n2.clearStatus(...e3)) }, [s2.readonly ? I("", true) : (C(), k(c2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (C(), v("section", { class: "tabBox", key: e2.canvasKey }, [x(m2, { modelValue: e2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (t3) => e2.activeTab = t3), class: "tabs" }, { default: P(() => [x(f2, { label: e2.$t("workflowEditorPublicModel.flowChart"), name: "canvas", class: "tab-pane" }, { default: P(() => [x(h2, { onselectstart: "return false", process: e2.process, class: "canvas", onMouseup: n2.addTache, onContextmenu: M(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "onMouseup", "onContextmenu"])]), _: 1 }, 8, ["label"]), x(f2, { label: "XML", name: "xml", class: "tab-pane" }, { default: P(() => [D("div", _, ["xml" === e2.activeTab ? (C(), v("pre", L, [D("code", { ref: "xml", class: "language-xml" }, V(e2.xml), 513)])) : I("", true)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]))], 32), e2.componentToDraw ? (C(), k(p2, { key: 0, style: A({ height: n2.componentInfo.height, width: n2.componentInfo.width, color: n2.componentInfo.color, left: e2.currentPosition.x + "px", top: e2.currentPosition.y + "px" }), icon: n2.componentInfo.icon, class: "component-icon" }, null, 8, ["style", "icon"])) : I("", true), e2.contextMenuVisible ? (C(), k(u2, { key: 1, style: A({ position: "absolute", left: e2.contextMenuPosition.x + "px", top: e2.contextMenuPosition.y + "px" }) }, null, 8, ["style"])) : I("", true), e2.isAdminSave ? (C(), k(w2, { key: 2, onClose: t2[8] || (t2[8] = (t3) => e2.isAdminSave = false), onUpdate: n2.updateWfVersion, onAdd: n2.addWfVersion }, null, 8, ["onUpdate", "onAdd"])) : I("", true)], 544);
|
|
202
202
|
}], ["__scopeId", "data-v-865cb4ee"]]);
|
|
203
203
|
export {
|
|
204
204
|
W as default
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import "../../workflow-editor/src/assets/wf-editor-icons.mjs";
|
|
2
2
|
import { mapGetters as s, mapMutations as t } from "vuex";
|
|
3
|
-
import { processTemplate as e, initializeProcessData as o, removeTextProperty as r } from "
|
|
4
|
-
import i from "
|
|
3
|
+
import { processTemplate as e, initializeProcessData as o, removeTextProperty as r } from "../../workflow-editor/src/util.mjs";
|
|
4
|
+
import i from "../../workflow-editor/src/main/wf-history-canvas.vue.mjs";
|
|
5
5
|
import n from "xml-js";
|
|
6
|
-
import
|
|
7
|
-
import { resolveComponent as
|
|
8
|
-
import "./workflow-history.vue2.
|
|
9
|
-
import d from "../../_virtual/_plugin-vue_export-helper.
|
|
6
|
+
import c from "../../workflow-editor/src/api.mjs";
|
|
7
|
+
import { resolveComponent as a, openBlock as l, createElementBlock as h, createElementVNode as u, createVNode as m, withModifiers as p } from "vue";
|
|
8
|
+
import "./workflow-history.vue2.mjs";
|
|
9
|
+
import d from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
10
10
|
const f = { name: "WorkflowHistory", components: { WfHistoryCanvas: i }, props: { id: { type: Number, default: null } }, data: function() {
|
|
11
11
|
return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
|
|
12
12
|
}, computed: { ...s("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...s(["sidebar"]) }, watch: {}, created: function() {
|
|
13
13
|
this.showHistory();
|
|
14
14
|
}, mounted: function() {
|
|
15
|
-
}, methods: { ...
|
|
15
|
+
}, methods: { ...c, ...t("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
|
|
16
16
|
this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((s2) => {
|
|
17
17
|
this.allProcessI18n = s2;
|
|
18
18
|
const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
|
|
@@ -26,10 +26,10 @@ const f = { name: "WorkflowHistory", components: { WfHistoryCanvas: i }, props:
|
|
|
26
26
|
const t2 = n.xml2js(s2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
27
27
|
r(t2.process), this.process = t2.process, o(this.process);
|
|
28
28
|
} } }, w = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, v = { class: "main" };
|
|
29
|
-
const
|
|
30
|
-
const n2 =
|
|
31
|
-
return l(), h("div", w, [u("div", v, [u("section", null, [
|
|
32
|
-
}], ["__scopeId", "data-v-
|
|
29
|
+
const k = d(f, [["render", function(s2, t2, e2, o2, r2, i2) {
|
|
30
|
+
const n2 = a("wf-history-canvas");
|
|
31
|
+
return l(), h("div", w, [u("div", v, [u("section", null, [m(n2, { onselectstart: "return false", process: s2.process, histories: s2.histories, "current-tasks": s2.currentTasks, "all-process-i18n": s2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: p(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
|
|
32
|
+
}], ["__scopeId", "data-v-14c5e870"]]);
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
k as default
|
|
35
35
|
};
|
package/lib/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const r = require("./workflow-editor/index.cjs"), o = require("./
|
|
4
|
-
c.installed || (
|
|
3
|
+
const r = require("./workflow-editor/index.cjs"), o = require("./workflow-history/index.cjs"), e = require("./workflow-editor/src/store/workflow-editor.cjs"), t = require("./plugins/index.cjs"), s = require("./src/i18n/langs/cn.cjs"), i = require("./src/i18n/langs/en.cjs"), n = [r, o], c = function(r2) {
|
|
4
|
+
c.installed || (n.forEach((o2) => {
|
|
5
5
|
r2.component(o2.name, o2);
|
|
6
|
-
}), r2.use(
|
|
6
|
+
}), r2.use(t));
|
|
7
7
|
};
|
|
8
|
-
exports.
|
|
8
|
+
exports.WorkflowEditor = r, exports.WorkflowHistory = o, exports.wfEditorStore = e, exports.wfEditorCn = s, exports.wfEditorEn = i, exports.wfEditorInstall = c;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const e = require("
|
|
2
|
+
const e = require("async-validator"), t = require("../workflow-editor/src/util.cjs"), n = require("agilebuilder-ui");
|
|
3
3
|
function i(e2, n2) {
|
|
4
4
|
const i2 = {}, s2 = e2.dataType;
|
|
5
5
|
return "DATE" === s2 || "TIME" === s2 ? (i2.type = "date", o(i2), i2.message = e2.label + " " + t.getI18n().t("workflowEditorMessage.requiredAndMustBeADate")) : "INTEGER" === s2 || "LONG" === s2 ? (i2.pattern = /^-?\d+$/, i2.message = e2.label + " " + t.getI18n().t("workflowEditorMessage.requiredAndMustBeAnInteger")) : "FLOAT" === s2 || "DOUBLE" === s2 ? (i2.pattern = new RegExp("^(-?\\d+)(\\.\\d+)?$"), i2.message = e2.label + " " + t.getI18n().t("workflowEditorMessage.requiredAndMustBeDecimal")) : "BOOLEAN" === s2 ? (i2.type = "boolean", i2.message = e2.label + " " + t.getI18n().t("workflowEditorMessage.mustFill"), o(i2)) : i2.message = e2.label + " " + t.getI18n().t("workflowEditorMessage.mustFill"), e2.canEdit && (i2.required = true, i2.trigger = "blur"), e2.rowIndexes && (i2.rowIndexes = e2.rowIndexes), e2.condition && (i2.condition = e2.condition), n2[e2.name] = e2.dataType, i2;
|
|
@@ -103,8 +103,8 @@ function f(e2, t2, i2, o2, s2, r2, l2, u2, d2) {
|
|
|
103
103
|
const g = e2[c2];
|
|
104
104
|
if (d2.indexOf(g) < 0)
|
|
105
105
|
continue;
|
|
106
|
-
const b = t2[g], p = b.condition,
|
|
107
|
-
if (null !=
|
|
106
|
+
const b = t2[g], p = b.condition, O = n.parseSubTablePermissionCondition(p, o2, s2, i2, r2, l2, u2);
|
|
107
|
+
if (null != O && true === O)
|
|
108
108
|
if (void 0 === f2)
|
|
109
109
|
a2[g] = b;
|
|
110
110
|
else {
|
|
@@ -128,7 +128,7 @@ const c = { formValidator: function(e2, t2, n2, i2, o2, s2, r2, l2) {
|
|
|
128
128
|
if (n3 && (g2 = JSON.parse(JSON.stringify(n3))), t3) {
|
|
129
129
|
const n4 = Object.keys(t3);
|
|
130
130
|
for (let b2 = 0; b2 < n4.length; b2++) {
|
|
131
|
-
const p2 = n4[b2],
|
|
131
|
+
const p2 = n4[b2], O = t3[p2], w = Object.keys(O);
|
|
132
132
|
let m = e3[p2];
|
|
133
133
|
m || (m = []);
|
|
134
134
|
const x = a(g2, e3, p2);
|
|
@@ -137,7 +137,7 @@ const c = { formValidator: function(e2, t2, n2, i2, o2, s2, r2, l2) {
|
|
|
137
137
|
let y, I = [];
|
|
138
138
|
d4 && d4[p2] && (y = d4[p2].pageSize, I = d4[p2].fields || []);
|
|
139
139
|
for (let t4 = 0; t4 < m.length; t4++) {
|
|
140
|
-
const n5 = m[t4], d5 = f(
|
|
140
|
+
const n5 = m[t4], d5 = f(w, O, m[t4], o3, e3, s3, r3, l3, I);
|
|
141
141
|
let a2, g3;
|
|
142
142
|
void 0 !== y && y > 0 && (a2 = Math.ceil((t4 + 1) / y), g3 = t4 + 1 - (a2 - 1) * y), Object.keys(d5).forEach((i4) => {
|
|
143
143
|
const o4 = d5[i4];
|
|
@@ -169,9 +169,9 @@ const c = { formValidator: function(e2, t2, n2, i2, o2, s2, r2, l2) {
|
|
|
169
169
|
if (void 0 !== b && true === b) {
|
|
170
170
|
let b2 = e3.name;
|
|
171
171
|
if (b2) {
|
|
172
|
-
const p = e3.condition,
|
|
173
|
-
let
|
|
174
|
-
if (
|
|
172
|
+
const p = e3.condition, O = null;
|
|
173
|
+
let w = null;
|
|
174
|
+
if (w = b2.indexOf(".") > 0 && 0 === b2.indexOf("$") || n.parseSubTablePermissionCondition(p, a2, O, o2, r2, u2, d2), null != w && true === w) {
|
|
175
175
|
let n2 = {};
|
|
176
176
|
if (b2.indexOf(".") > 0)
|
|
177
177
|
0 === b2.indexOf("$") ? function(e4, t2, n3, o3, s3) {
|
package/lib/style.css
CHANGED
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
@charset "UTF-8"
|
|
1
|
+
@charset "UTF-8";.main[data-v-14c5e870] {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
.canvas-container[data-v-14c5e870] {
|
|
8
|
+
position: relative;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
section[data-v-14c5e870] {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
.canvas[data-v-14c5e870] {
|
|
19
|
+
overflow: auto;
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 0;
|
|
22
|
+
min-height: 500px;
|
|
23
|
+
}
|
|
24
|
+
.canvas[data-v-14c5e870] .draggable {
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
2
27
|
.button-area[data-v-865cb4ee] {
|
|
3
28
|
padding: 5px 0 5px 5px;
|
|
4
29
|
height: 50px;
|
|
@@ -100,31 +125,6 @@ pre[data-v-865cb4ee] {
|
|
|
100
125
|
/* 去掉卡片和tab表头的距离 */
|
|
101
126
|
[data-v-865cb4ee] .el-tabs__header {
|
|
102
127
|
margin: 0;
|
|
103
|
-
}.main[data-v-6658e14b] {
|
|
104
|
-
position: relative;
|
|
105
|
-
display: flex;
|
|
106
|
-
height: 100%;
|
|
107
|
-
width: 100%;
|
|
108
|
-
}
|
|
109
|
-
.canvas-container[data-v-6658e14b] {
|
|
110
|
-
position: relative;
|
|
111
|
-
height: 100%;
|
|
112
|
-
width: 100%;
|
|
113
|
-
}
|
|
114
|
-
section[data-v-6658e14b] {
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: 100%;
|
|
118
|
-
padding: 0;
|
|
119
|
-
}
|
|
120
|
-
.canvas[data-v-6658e14b] {
|
|
121
|
-
overflow: auto;
|
|
122
|
-
height: 100%;
|
|
123
|
-
padding: 0;
|
|
124
|
-
min-height: 500px;
|
|
125
|
-
}
|
|
126
|
-
.canvas[data-v-6658e14b] .draggable {
|
|
127
|
-
cursor: default;
|
|
128
128
|
}
|
|
129
129
|
#svg{
|
|
130
130
|
/* border:1px solid red; */
|
|
@@ -172,7 +172,21 @@ g text{
|
|
|
172
172
|
.current-tache text{
|
|
173
173
|
fill: white
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
h3[data-v-0d941719] {
|
|
176
|
+
color: #999999;
|
|
177
|
+
margin: 0;
|
|
178
|
+
padding: 0;
|
|
179
|
+
font-weight: bold;
|
|
180
|
+
font-size: 18px;
|
|
181
|
+
}
|
|
182
|
+
.el-button[data-v-0d941719] {
|
|
183
|
+
margin: 6px 0;
|
|
184
|
+
min-width: 110px;
|
|
185
|
+
padding: 9px 15px;
|
|
186
|
+
}
|
|
187
|
+
.el-button i[data-v-0d941719] {
|
|
188
|
+
padding-right: 4px;
|
|
189
|
+
}
|
|
176
190
|
#svg{
|
|
177
191
|
/* border:1px solid red; */
|
|
178
192
|
background: white;
|
|
@@ -203,29 +217,7 @@ g text{
|
|
|
203
217
|
stroke: #666;
|
|
204
218
|
stroke-width: 2;
|
|
205
219
|
}
|
|
206
|
-
|
|
207
|
-
.svg-icon {
|
|
208
|
-
width: 1em;
|
|
209
|
-
height: 1em;
|
|
210
|
-
vertical-align: -0.15em;
|
|
211
|
-
fill: currentColor;
|
|
212
|
-
overflow: hidden;
|
|
213
|
-
}
|
|
214
|
-
h3[data-v-0d941719] {
|
|
215
|
-
color: #999999;
|
|
216
|
-
margin: 0;
|
|
217
|
-
padding: 0;
|
|
218
|
-
font-weight: bold;
|
|
219
|
-
font-size: 18px;
|
|
220
|
-
}
|
|
221
|
-
.el-button[data-v-0d941719] {
|
|
222
|
-
margin: 6px 0;
|
|
223
|
-
min-width: 110px;
|
|
224
|
-
padding: 9px 15px;
|
|
225
|
-
}
|
|
226
|
-
.el-button i[data-v-0d941719] {
|
|
227
|
-
padding-right: 4px;
|
|
228
|
-
}li[data-v-7e8a1cf6] {
|
|
220
|
+
li[data-v-7e8a1cf6] {
|
|
229
221
|
color: #333;
|
|
230
222
|
}
|
|
231
223
|
.context-menu[data-v-7e8a1cf6] {
|
|
@@ -254,12 +246,20 @@ h3[data-v-0d941719] {
|
|
|
254
246
|
li[data-v-7e8a1cf6] {
|
|
255
247
|
list-style-type: none;
|
|
256
248
|
}
|
|
257
|
-
.
|
|
249
|
+
.svg-icon {
|
|
250
|
+
width: 1em;
|
|
251
|
+
height: 1em;
|
|
252
|
+
vertical-align: -0.15em;
|
|
253
|
+
fill: currentColor;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.end{
|
|
258
258
|
stroke-width: 0;
|
|
259
259
|
fill:#fff;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
|
-
.
|
|
262
|
+
.decision{
|
|
263
263
|
stroke-width: 0;
|
|
264
264
|
fill:#fff;
|
|
265
265
|
}
|
|
@@ -269,6 +269,28 @@ li[data-v-7e8a1cf6] {
|
|
|
269
269
|
fill:#fff;
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
+
.start{
|
|
273
|
+
stroke-width: 0;
|
|
274
|
+
fill:#fff;
|
|
275
|
+
}
|
|
276
|
+
.tooltip[data-v-ac799913] {
|
|
277
|
+
position: absolute;
|
|
278
|
+
background: #fff;
|
|
279
|
+
min-width: 150px;
|
|
280
|
+
border-radius: 4px;
|
|
281
|
+
border: 1px solid #ebeef5;
|
|
282
|
+
padding: 12px;
|
|
283
|
+
z-index: 2000;
|
|
284
|
+
color: #606266;
|
|
285
|
+
line-height: 1.4;
|
|
286
|
+
text-align: justify;
|
|
287
|
+
font-size: 14px;
|
|
288
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
289
|
+
word-break: break-all;
|
|
290
|
+
}#_subprocess-content[data-v-2b195c05] {
|
|
291
|
+
width: 100%;
|
|
292
|
+
height: calc(100vh - 200px);
|
|
293
|
+
}
|
|
272
294
|
.decision{
|
|
273
295
|
stroke-width: 0;
|
|
274
296
|
fill:#fff;
|
|
@@ -298,34 +320,17 @@ li[data-v-7e8a1cf6] {
|
|
|
298
320
|
fill:#fff;
|
|
299
321
|
}
|
|
300
322
|
|
|
301
|
-
.decision{
|
|
302
|
-
stroke-width: 0;
|
|
303
|
-
fill:#fff;
|
|
304
|
-
}
|
|
305
|
-
#_subprocess-content[data-v-2b195c05] {
|
|
306
|
-
width: 100%;
|
|
307
|
-
height: calc(100vh - 200px);
|
|
308
|
-
}.tooltip[data-v-ac799913] {
|
|
309
|
-
position: absolute;
|
|
310
|
-
background: #fff;
|
|
311
|
-
min-width: 150px;
|
|
312
|
-
border-radius: 4px;
|
|
313
|
-
border: 1px solid #ebeef5;
|
|
314
|
-
padding: 12px;
|
|
315
|
-
z-index: 2000;
|
|
316
|
-
color: #606266;
|
|
317
|
-
line-height: 1.4;
|
|
318
|
-
text-align: justify;
|
|
319
|
-
font-size: 14px;
|
|
320
|
-
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
321
|
-
word-break: break-all;
|
|
322
|
-
}
|
|
323
323
|
.virtual-transition{
|
|
324
324
|
stroke-width: 2;
|
|
325
325
|
stroke:#000;
|
|
326
326
|
stroke-dasharray: 2 2;
|
|
327
327
|
fill: none;
|
|
328
328
|
}
|
|
329
|
+
|
|
330
|
+
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
331
|
+
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
332
|
+
padding-top: 0;
|
|
333
|
+
}
|
|
329
334
|
|
|
330
335
|
.selection-region{
|
|
331
336
|
stroke: blue;
|
|
@@ -341,28 +346,23 @@ li[data-v-7e8a1cf6] {
|
|
|
341
346
|
pointer-events:none;
|
|
342
347
|
}
|
|
343
348
|
|
|
344
|
-
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
345
|
-
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
346
|
-
padding-top: 0;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
349
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
350
350
|
.properties-editor[data-v-0e44fe8c] .el-dialog__body{
|
|
351
351
|
padding-top: 0
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
355
|
-
.properties-editor[data-v-
|
|
355
|
+
.properties-editor[data-v-af76d417] .el-dialog__body{
|
|
356
356
|
padding-top: 0
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
360
|
-
.properties-editor[data-v-
|
|
360
|
+
.properties-editor[data-v-adb7c2ff] .el-dialog__body{
|
|
361
361
|
padding-top: 0
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
365
|
-
.properties-editor[data-v-
|
|
365
|
+
.properties-editor[data-v-bd66d235] .el-dialog__body{
|
|
366
366
|
padding-top: 0
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -381,19 +381,25 @@ li[data-v-7e8a1cf6] {
|
|
|
381
381
|
fill-opacity: 1;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.control-point[data-v-
|
|
384
|
+
.control-point[data-v-788fb0ae]{
|
|
385
385
|
fill: #fff;
|
|
386
386
|
cursor: move;
|
|
387
387
|
}
|
|
388
|
-
.control-line[data-v-
|
|
388
|
+
.control-line[data-v-788fb0ae] {
|
|
389
389
|
stroke-dasharray: 2 2
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
.
|
|
392
|
+
.resizer{
|
|
393
|
+
stroke: blue;
|
|
394
|
+
stroke-width: 1;
|
|
395
|
+
fill: white;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.control-point[data-v-0ff53a0a]{
|
|
393
399
|
fill: #fff;
|
|
394
400
|
cursor: move;
|
|
395
401
|
}
|
|
396
|
-
.control-line[data-v-
|
|
402
|
+
.control-line[data-v-0ff53a0a] {
|
|
397
403
|
stroke-dasharray: 2 2
|
|
398
404
|
}
|
|
399
405
|
|
|
@@ -406,12 +412,6 @@ li[data-v-7e8a1cf6] {
|
|
|
406
412
|
color: red;
|
|
407
413
|
font-size: 1.2em;
|
|
408
414
|
}
|
|
409
|
-
|
|
410
|
-
.resizer{
|
|
411
|
-
stroke: blue;
|
|
412
|
-
stroke-width: 1;
|
|
413
|
-
fill: white;
|
|
414
|
-
}
|
|
415
415
|
ul[data-v-39fac73c] {
|
|
416
416
|
margin: 0;
|
|
417
417
|
padding: 0;
|
|
@@ -422,7 +422,7 @@ ul li[data-v-39fac73c] {
|
|
|
422
422
|
.sub-li[data-v-39fac73c] {
|
|
423
423
|
padding-left: 10px;
|
|
424
424
|
}
|
|
425
|
-
.percent[data-v-
|
|
425
|
+
.percent[data-v-c1c7385b]{
|
|
426
426
|
margin-left: 10px;
|
|
427
427
|
color:red;
|
|
428
428
|
font-size:1.2em;
|
|
@@ -432,7 +432,7 @@ ul li[data-v-39fac73c] {
|
|
|
432
432
|
margin-left: 20px;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
.percent[data-v-
|
|
435
|
+
.percent[data-v-6aef99ff]{
|
|
436
436
|
margin-left: 10px;
|
|
437
437
|
color:red;
|
|
438
438
|
font-size:1.2em;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const o = require("./src/workflow-editor.vue.cjs")
|
|
3
|
-
o.install = function(
|
|
4
|
-
|
|
2
|
+
const o = require("./src/workflow-editor.vue.cjs");
|
|
3
|
+
o.install = function(t2) {
|
|
4
|
+
t2.component(o.name, o);
|
|
5
5
|
};
|
|
6
|
-
const t = { WorkflowEditor: o
|
|
6
|
+
const t = { WorkflowEditor: o };
|
|
7
7
|
module.exports = t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
require("
|
|
3
|
-
const e = require("vuex"), s = require("
|
|
2
|
+
require("../../workflow-editor/src/assets/wf-editor-icons.cjs");
|
|
3
|
+
const e = require("vuex"), s = require("../../workflow-editor/src/util.cjs"), t = require("../../workflow-editor/src/main/wf-history-canvas.vue.cjs"), r = require("xml-js"), o = require("../../workflow-editor/src/api.cjs"), i = require("vue");
|
|
4
4
|
require("./workflow-history.vue2.cjs");
|
|
5
5
|
const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { name: "WorkflowHistory", components: { WfHistoryCanvas: t }, props: { id: { type: Number, default: null } }, data: function() {
|
|
6
6
|
return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
|
|
@@ -24,5 +24,5 @@ const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { name: "
|
|
|
24
24
|
const u = n(c, [["render", function(e2, s2, t2, r2, o2, n2) {
|
|
25
25
|
const c2 = i.resolveComponent("wf-history-canvas");
|
|
26
26
|
return i.openBlock(), i.createElementBlock("div", a, [i.createElementVNode("div", l, [i.createElementVNode("section", null, [i.createVNode(c2, { onselectstart: "return false", process: e2.process, histories: e2.histories, "current-tasks": e2.currentTasks, "all-process-i18n": e2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: i.withModifiers(n2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
|
|
27
|
-
}], ["__scopeId", "data-v-
|
|
27
|
+
}], ["__scopeId", "data-v-14c5e870"]]);
|
|
28
28
|
module.exports = u;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "workflow-editor",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.81-up-
|
|
4
|
+
"version": "0.0.81-up-tmp18",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.cjs",
|
|
7
7
|
"module": "./es/index.mjs",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@vitejs/plugin-vue": "^4.2.3",
|
|
26
26
|
"agilebuilder-ui": "1.1.65-tmp22",
|
|
27
|
+
"async-validator": "^4.2.5",
|
|
27
28
|
"axios": "^1.5.1",
|
|
28
29
|
"element-plus": "^2.4.1",
|
|
29
30
|
"font-awesome": "^4.7.0",
|
package/es/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import o from "./workflow-editor/index.js";
|
|
2
|
-
import r from "./plugins/index.js";
|
|
3
|
-
import { default as default2 } from "./src/i18n/langs/cn.js";
|
|
4
|
-
import { default as default3 } from "./src/i18n/langs/en.js";
|
|
5
|
-
const n = o.WorkflowEditor, t = o.WorkflowHistory, i = o.wfEditorStore, s = [n, t], e = function(o2) {
|
|
6
|
-
e.installed || (s.forEach((r2) => {
|
|
7
|
-
o2.component(r2.name, r2);
|
|
8
|
-
}), o2.use(r));
|
|
9
|
-
};
|
|
10
|
-
export {
|
|
11
|
-
n as WorkflowEditor,
|
|
12
|
-
t as WorkflowHistory,
|
|
13
|
-
default2 as wfEditorCn,
|
|
14
|
-
default3 as wfEditorEn,
|
|
15
|
-
e as wfEditorInstall,
|
|
16
|
-
i as wfEditorStore
|
|
17
|
-
};
|
package/es/src/i18n/i18n.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import o from "./src/workflow-editor.vue.js";
|
|
2
|
-
import r from "./src/store/workflow-editor.js";
|
|
3
|
-
import t from "./src/workflow-history.vue.js";
|
|
4
|
-
o.install = function(r2) {
|
|
5
|
-
r2.component(o.name, o), r2.component(t.name, t);
|
|
6
|
-
};
|
|
7
|
-
const e = { WorkflowEditor: o, WorkflowHistory: t, wfEditorStore: r };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|