workflow-editor 0.0.81-up-tmp3 → 0.0.81-up-tmp5
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 +85 -85
- package/es/index.mjs +11 -10
- package/es/style.css +120 -120
- package/es/workflow-editor/index.mjs +5 -6
- package/lib/index.cjs +3 -3
- package/lib/style.css +100 -100
- package/lib/workflow-editor/index.cjs +5 -5
- package/package.json +1 -1
package/dist/index.full.min.js
CHANGED
|
@@ -2635,78 +2635,10 @@
|
|
|
2635
2635
|
const ur = M(dr, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2636
2636
|
const a2 = r.resolveComponent("el-button"), s2 = r.resolveComponent("el-option"), d2 = r.resolveComponent("el-select"), c2 = r.resolveComponent("el-row"), m2 = r.resolveComponent("toolbox"), u2 = r.resolveComponent("workflow-canvas"), p2 = r.resolveComponent("el-tab-pane"), h2 = r.resolveComponent("el-tabs"), f2 = r.resolveComponent("icon-svg"), w2 = r.resolveComponent("context-menu"), g2 = r.resolveComponent("admin-save-dialog"), C2 = r.resolveDirective("permission");
|
|
2637
2637
|
return r.openBlock(), r.createElementBlock("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)) }, [r.createVNode(c2, { class: "button-area" }, { default: r.withCtx(() => [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 0, type: "primary", onClick: i2.saveXml }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.save")), 1)]), _: 1 }, 8, ["onClick"])), o2.readonly ? r.createCommentVNode("", true) : r.withDirectives((r.openBlock(), r.createBlock(a2, { key: 1, class: "button--default", onClick: i2.adminSave }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.adminSave")), 1)]), _: 1 }, 8, ["onClick"])), [[C2, "wf.workflowDefinition.adminSave"]]), e2.isShowEnable ? (r.openBlock(), r.createBlock(a2, { key: 2, class: "button--default", onClick: i2.enableWf }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.enable")), 1)]), _: 1 }, 8, ["onClick"])) : r.createCommentVNode("", true), r.createVNode(a2, { class: "button--default", onClick: i2.exportProcessFromClient }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.export")), 1)]), _: 1 }, 8, ["onClick"]), o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(a2, { key: 3, class: "button--default", onClick: i2.selectProcessFile }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.open")) + " ", 1), r.createElementVNode("input", { ref: "processFile", type: "file", name: "processFile", accept: ".xml", style: { display: "none" }, onChange: t2[0] || (t2[0] = (...e3) => i2.openXmlFromClient && i2.openXmlFromClient(...e3)) }, null, 544)]), _: 1 }, 8, ["onClick"])), r.createVNode(a2, { type: "primary", class: "button--return", onClick: t2[1] || (t2[1] = (t3) => e2.$emit("back")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("workflowEditorPublicModel.return")), 1)]), _: 1 }), e2.isShowDefVersionList ? (r.openBlock(), r.createBlock(d2, { key: 4, modelValue: e2.defVersion, "onUpdate:modelValue": t2[2] || (t2[2] = (t3) => e2.defVersion = t3), style: { "padding-left": "10px", width: "200px" }, onChange: i2.changeDefVersion }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.workflowDefVersionList, (e3) => (r.openBlock(), r.createBlock(s2, { key: e3.definitionVersion, label: e3.definitionVersion, value: e3.definitionVersion }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }), r.createElementVNode("div", { class: "main", onMousedown: t2[4] || (t2[4] = (...e3) => i2.startDrag && i2.startDrag(...e3)), onMousemove: t2[5] || (t2[5] = (...e3) => i2.drag && i2.drag(...e3)), onMouseup: t2[6] || (t2[6] = (...e3) => i2.endDrag && i2.endDrag(...e3)), onMouseleave: t2[7] || (t2[7] = (...e3) => i2.clearStatus && i2.clearStatus(...e3)) }, [o2.readonly ? r.createCommentVNode("", true) : (r.openBlock(), r.createBlock(m2, { key: 0, class: "toolbox", onselectstart: "return false", oncontextmenu: "return false" })), (r.openBlock(), r.createElementBlock("section", { class: "tabBox", key: e2.canvasKey }, [r.createVNode(h2, { modelValue: e2.activeTab, "onUpdate:modelValue": t2[3] || (t2[3] = (t3) => e2.activeTab = t3), class: "tabs" }, { default: r.withCtx(() => [r.createVNode(p2, { label: e2.$t("workflowEditorPublicModel.flowChart"), name: "canvas", class: "tab-pane" }, { default: r.withCtx(() => [r.createVNode(u2, { onselectstart: "return false", process: e2.process, class: "canvas", onMouseup: i2.addTache, onContextmenu: r.withModifiers(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "onMouseup", "onContextmenu"])]), _: 1 }, 8, ["label"]), r.createVNode(p2, { label: "XML", name: "xml", class: "tab-pane" }, { default: r.withCtx(() => [r.createElementVNode("div", cr, ["xml" === e2.activeTab ? (r.openBlock(), r.createElementBlock("pre", mr, [r.createElementVNode("code", { ref: "xml", class: "language-xml" }, r.toDisplayString(e2.xml), 513)])) : r.createCommentVNode("", true)])]), _: 1 })]), _: 1 }, 8, ["modelValue"])]))], 32), e2.componentToDraw ? (r.openBlock(), r.createBlock(f2, { key: 0, style: r.normalizeStyle({ height: i2.componentInfo.height, width: i2.componentInfo.width, color: i2.componentInfo.color, left: e2.currentPosition.x + "px", top: e2.currentPosition.y + "px" }), icon: i2.componentInfo.icon, class: "component-icon" }, null, 8, ["style", "icon"])) : r.createCommentVNode("", true), e2.contextMenuVisible ? (r.openBlock(), r.createBlock(w2, { key: 1, style: r.normalizeStyle({ position: "absolute", left: e2.contextMenuPosition.x + "px", top: e2.contextMenuPosition.y + "px" }) }, null, 8, ["style"])) : r.createCommentVNode("", true), e2.isAdminSave ? (r.openBlock(), r.createBlock(g2, { key: 2, onClose: t2[8] || (t2[8] = (t3) => e2.isAdminSave = false), onUpdate: i2.updateWfVersion, onAdd: i2.addWfVersion }, null, 8, ["onUpdate", "onAdd"])) : r.createCommentVNode("", true)], 544);
|
|
2638
|
-
}], ["__scopeId", "data-v-865cb4ee"]]), pr =
|
|
2639
|
-
|
|
2640
|
-
}, setTransitions(e2, t2) {
|
|
2641
|
-
e2.transitions = t2;
|
|
2642
|
-
}, clearCanvas(e2) {
|
|
2643
|
-
e2.taches = [], e2.transitions = [];
|
|
2644
|
-
}, resetState(e2) {
|
|
2645
|
-
e2.isMovingTache = false, e2.startJoint = null, e2.endJoint = null, e2.isDrawingRegion = false, e2.isMovingRegion = false, e2.resizerToMove = null, e2.draggerToMove = null, e2.controlPointToMove = null;
|
|
2646
|
-
}, stopDrawingLine(e2) {
|
|
2647
|
-
e2.startJoint = null, e2.endJoint = null;
|
|
2648
|
-
}, setStartJoint(e2, t2) {
|
|
2649
|
-
e2.startJoint = t2;
|
|
2650
|
-
}, setEndJoint(e2, t2) {
|
|
2651
|
-
e2.endJoint = t2;
|
|
2652
|
-
}, setMovingTache(e2, t2) {
|
|
2653
|
-
e2.isMovingTache = t2;
|
|
2654
|
-
}, setMouseDownPosition(e2, t2) {
|
|
2655
|
-
e2.mouseDownPosition = t2;
|
|
2656
|
-
}, setDrawingRegion(e2, t2) {
|
|
2657
|
-
e2.isDrawingRegion = t2;
|
|
2658
|
-
}, setMovingRegion(e2, t2) {
|
|
2659
|
-
e2.isMovingRegion = t2;
|
|
2660
|
-
}, setSelectedTaches(e2, t2) {
|
|
2661
|
-
e2.selectedTaches = t2;
|
|
2662
|
-
}, setSelectedTransition(e2, t2) {
|
|
2663
|
-
e2.selectedTransition = t2;
|
|
2664
|
-
}, setResizerToMove(e2, t2) {
|
|
2665
|
-
e2.resizerToMove = t2;
|
|
2666
|
-
}, setDraggerToMove(e2, t2) {
|
|
2667
|
-
e2.draggerToMove = t2;
|
|
2668
|
-
}, setPropertiesEditorFor(e2, t2) {
|
|
2669
|
-
e2.propertiesEditorFor = t2;
|
|
2670
|
-
}, setComponentToDraw(e2, t2) {
|
|
2671
|
-
e2.componentToDraw = t2;
|
|
2672
|
-
}, setControlPointToMove(e2, t2) {
|
|
2673
|
-
e2.controlPointToMove = t2;
|
|
2674
|
-
}, setFormFields(e2, t2) {
|
|
2675
|
-
e2.formFields = t2;
|
|
2676
|
-
}, setFormCode(e2, t2) {
|
|
2677
|
-
e2.formCode = t2;
|
|
2678
|
-
}, setFormFieldsWithSub(e2, t2) {
|
|
2679
|
-
e2.formFieldsWithSub = t2;
|
|
2680
|
-
}, setContextMenuVisible(e2, t2) {
|
|
2681
|
-
e2.contextMenuVisible = t2;
|
|
2682
|
-
}, setSystemCode(e2, t2) {
|
|
2683
|
-
e2.systemCode = t2;
|
|
2684
|
-
}, setProcessCode(e2, t2) {
|
|
2685
|
-
e2.processCode = t2;
|
|
2686
|
-
}, setProcessI18n(e2, t2) {
|
|
2687
|
-
e2.processI18n = t2;
|
|
2688
|
-
}, setSubtableConditionMap(e2, t2) {
|
|
2689
|
-
e2.subtableConditionMap = t2;
|
|
2690
|
-
}, setPropSettingKeyList(e2, t2) {
|
|
2691
|
-
e2.propSettingKeyList = t2;
|
|
2692
|
-
}, setSystemVersion(e2, t2) {
|
|
2693
|
-
e2.systemVersion = t2;
|
|
2694
|
-
}, setTableCode(e2, t2) {
|
|
2695
|
-
e2.tableCode = t2;
|
|
2696
|
-
}, setTableCode(e2, t2) {
|
|
2697
|
-
e2.tableCode = t2;
|
|
2698
|
-
}, setIsCreateDefinition(e2, t2) {
|
|
2699
|
-
e2.isCreateDefinition = t2;
|
|
2700
|
-
}, setIsHandleCreate(e2, t2) {
|
|
2701
|
-
e2.isHandleCreate = t2;
|
|
2702
|
-
}, setPageCode(e2, t2) {
|
|
2703
|
-
e2.pageCode = t2;
|
|
2704
|
-
}, setSourceComponentForCopy(e2, t2) {
|
|
2705
|
-
e2.sourceComponentType = t2;
|
|
2706
|
-
} } }, hr = ["src"];
|
|
2707
|
-
const fr = { name: "WfHistoryCanvas", components: { Start: z, End: G, HumanTask: te, Decision: ie, Subprocess: ce, CustomTask: he, Fork: be, Join: Te, HumanDecision: Me, CopyTask: Pe, Transition: Ze, TacheHistoryTooltip: tr, TacheSubprocessHistoryDialog: M({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2638
|
+
}], ["__scopeId", "data-v-865cb4ee"]]), pr = ["src"];
|
|
2639
|
+
const hr = { name: "WfHistoryCanvas", components: { Start: z, End: G, HumanTask: te, Decision: ie, Subprocess: ce, CustomTask: he, Fork: be, Join: Te, HumanDecision: Me, CopyTask: Pe, Transition: Ze, TacheHistoryTooltip: tr, TacheSubprocessHistoryDialog: M({ name: "TacheSubprocessHistoryDialog", props: { workflowId: { type: Number, default: null } }, data: () => ({ dialogVisible: true }) }, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2708
2640
|
const a2 = r.resolveComponent("el-dialog");
|
|
2709
|
-
return r.openBlock(), r.createBlock(a2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: t2[0] || (t2[0] = (t3) => e2.$emit("open")), onOpend: t2[1] || (t2[1] = (t3) => e2.$emit("opend")), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")), onClosed: t2[3] || (t2[3] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + o2.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8,
|
|
2641
|
+
return r.openBlock(), r.createBlock(a2, { "model-value": "", title: e2.$t("workflowEditorPublicModel.subprocessTitle"), "close-on-click-modal": false, "append-to-body": "", width: "90%", top: "5vh", onOpen: t2[0] || (t2[0] = (t3) => e2.$emit("open")), onOpend: t2[1] || (t2[1] = (t3) => e2.$emit("opend")), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")), onClosed: t2[3] || (t2[3] = (t3) => e2.$emit("closed")) }, { default: r.withCtx(() => [r.createElementVNode("iframe", { id: "_subprocess-content", src: "#/show-sub-wf-history?workflowId=" + o2.workflowId, name: "_subprocess-content", title: "Subprocess Content", frameborder: "0" }, null, 8, pr)]), _: 1 }, 8, ["title"]);
|
|
2710
2642
|
}], ["__scopeId", "data-v-2b195c05"]]), AutoTask: _e }, props: { process: { type: Object, default: null }, histories: { type: Array, default: null }, currentTasks: { type: Array, default: null }, allProcessI18n: { type: Object, default: null } }, data: function() {
|
|
2711
2643
|
return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
|
|
2712
2644
|
}, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
|
|
@@ -2765,18 +2697,18 @@
|
|
|
2765
2697
|
t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
|
|
2766
2698
|
}, closeSubprocessHistory() {
|
|
2767
2699
|
this.showSubprocessDialog = false;
|
|
2768
|
-
} } },
|
|
2769
|
-
const
|
|
2700
|
+
} } }, fr = { ref: "svgContainer", style: { position: "relative" } }, wr = r.createElementVNode("defs", null, [r.createElementVNode("marker", { id: "arrow", markerWidth: "10", markerHeight: "10", refX: "6", refY: "2", orient: "auto", markerUnits: "strokeWidth" }, [r.createElementVNode("path", { d: "M0,0 L0,4 L6,2 z", fill: "#666" })])], -1);
|
|
2701
|
+
const gr = M(hr, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2770
2702
|
const a2 = r.resolveComponent("tache-history-tooltip"), s2 = r.resolveComponent("tache-subprocess-history-dialog");
|
|
2771
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
2772
|
-
}]]),
|
|
2703
|
+
return r.openBlock(), r.createElementBlock("div", fr, [(r.openBlock(), r.createElementBlock("svg", { id: "svg", width: "2000", height: "2000", onMousedown: t2[0] || (t2[0] = (...e3) => i2.mousedown && i2.mousedown(...e3)), onMousemove: t2[1] || (t2[1] = (...e3) => i2.mousemove && i2.mousemove(...e3)), onMouseup: t2[2] || (t2[2] = (...e3) => i2.mouseup && i2.mouseup(...e3)), onMouseleave: t2[3] || (t2[3] = (...e3) => i2.mouseleave && i2.mouseleave(...e3)) }, [wr, (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.taches, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent(e3.type), { key: e3.id, model: e3, class: r.normalizeClass([i2.getTacheClass(e3)]), "display-mode": e3.displayMode, onMouseenter: (t3) => i2.showTacheHistoryTooltip(e3, t3), onMouseleave: (t3) => i2.hideTacheHistoryTooltip(e3), onMousemove: i2.updateTacheHistoryTooltipPosition, onClick: (t3) => i2.showSubprocessHistory(e3) }, null, 40, ["model", "class", "display-mode", "onMouseenter", "onMouseleave", "onMousemove", "onClick"]))), 128)), (r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(e2.transitions, (e3) => (r.openBlock(), r.createBlock(r.resolveDynamicComponent("transition"), { key: e3.id, model: e3 }, null, 8, ["model"]))), 128))], 32)), e2.showHistory && e2.tacheHistoryInfo ? (r.openBlock(), r.createBlock(a2, { key: 0, style: r.normalizeStyle(e2.tooltipPosition), content: e2.tacheHistoryInfo }, null, 8, ["style", "content"])) : r.createCommentVNode("", true), e2.showSubprocessDialog ? (r.openBlock(), r.createBlock(s2, { key: 1, "workflow-id": e2.subWorkflowId, onClose: i2.closeSubprocessHistory }, null, 8, ["workflow-id", "onClose"])) : r.createCommentVNode("", true)], 512);
|
|
2704
|
+
}]]), Cr = { refresh() {
|
|
2773
2705
|
this.showHistory();
|
|
2774
|
-
} },
|
|
2706
|
+
} }, br = { name: "WorkflowHistory", components: { WfHistoryCanvas: gr }, props: { id: { type: Number, default: null } }, data: function() {
|
|
2775
2707
|
return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
|
|
2776
2708
|
}, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...t.mapGetters(["sidebar"]) }, watch: {}, created: function() {
|
|
2777
2709
|
this.showHistory();
|
|
2778
2710
|
}, mounted: function() {
|
|
2779
|
-
}, methods: { ...
|
|
2711
|
+
}, methods: { ...Cr, ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
|
|
2780
2712
|
this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((e2) => {
|
|
2781
2713
|
this.allProcessI18n = e2;
|
|
2782
2714
|
const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
|
|
@@ -2789,15 +2721,83 @@
|
|
|
2789
2721
|
}, initProcessByXml(e2) {
|
|
2790
2722
|
const t2 = n.xml2js(e2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
|
|
2791
2723
|
b(t2.process), this.process = t2.process, V(this.process);
|
|
2792
|
-
} } },
|
|
2793
|
-
const
|
|
2724
|
+
} } }, kr = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, Vr = { class: "main" };
|
|
2725
|
+
const yr = M(br, [["render", function(e2, t2, o2, l2, n2, i2) {
|
|
2794
2726
|
const a2 = r.resolveComponent("wf-history-canvas");
|
|
2795
|
-
return r.openBlock(), r.createElementBlock("div",
|
|
2727
|
+
return r.openBlock(), r.createElementBlock("div", kr, [r.createElementVNode("div", Vr, [r.createElementVNode("section", null, [r.createVNode(a2, { onselectstart: "return false", process: e2.process, histories: e2.histories, "current-tasks": e2.currentTasks, "all-process-i18n": e2.allProcessI18n, "show-history": true, class: "canvas", onContextmenu: r.withModifiers(i2.showContextMenu, ["prevent"]) }, null, 8, ["process", "histories", "current-tasks", "all-process-i18n", "onContextmenu"])])])], 512);
|
|
2796
2728
|
}], ["__scopeId", "data-v-6658e14b"]]);
|
|
2797
2729
|
ur.install = function(e2) {
|
|
2798
|
-
e2.component(ur.name, ur), e2.component(
|
|
2730
|
+
e2.component(ur.name, ur), e2.component(yr.name, yr);
|
|
2799
2731
|
};
|
|
2800
|
-
const
|
|
2732
|
+
const vr = { WorkflowEditor: ur, WorkflowHistory: yr }, Tr = { namespaced: true, state: { taches: [], transitions: [], startJoint: null, endJoint: null, isMovingTache: false, mouseDownPosition: null, isDrawingRegion: false, isMovingRegion: false, selectedTaches: [], selectedTransition: null, resizerToMove: null, draggerToMove: null, propertiesEditorFor: "", componentToDraw: "", controlPointToMove: null, formFields: [], formFieldsWithSub: [], contextMenuVisible: false, formCode: null, systemCode: null, systemVersion: null, processCode: null, processI18n: null, subtableConditionMap: null, propSettingKeyList: null, tableCode: null, isCreateDefinition: "", isHandleCreate: "", pageCode: null, sourceComponentType: "" }, getters: { taches: (e2) => e2.taches, transitions: (e2) => e2.transitions, startJoint: (e2) => e2.startJoint, endJoint: (e2) => e2.endJoint, isMovingTache: (e2) => e2.isMovingTache, mouseDownPosition: (e2) => e2.mouseDownPosition, isDrawingRegion: (e2) => e2.isDrawingRegion, isMovingRegion: (e2) => e2.isMovingRegion, selectedTaches: (e2) => e2.selectedTaches, selectedTransition: (e2) => e2.selectedTransition, resizerToMove: (e2) => e2.resizerToMove, draggerToMove: (e2) => e2.draggerToMove, propertiesEditorFor: (e2) => e2.propertiesEditorFor, componentToDraw: (e2) => e2.componentToDraw, controlPointToMove: (e2) => e2.controlPointToMove, formFields: (e2) => e2.formFields, formCode: (e2) => e2.formCode, formFieldsWithSub: (e2) => e2.formFieldsWithSub, contextMenuVisible: (e2) => e2.contextMenuVisible, systemCode: (e2) => e2.systemCode, processCode: (e2) => e2.processCode, processI18n: (e2) => e2.processI18n, subtableConditionMap: (e2) => e2.subtableConditionMap, propSettingKeyList: (e2) => e2.propSettingKeyList, systemVersion: (e2) => e2.systemVersion, tableCode: (e2) => e2.tableCode, isHandleCreate: (e2) => e2.isHandleCreate, isCreateDefinition: (e2) => e2.isCreateDefinition, pageCode: (e2) => e2.pageCode, sourceComponentType: (e2) => e2.sourceComponentType }, mutations: { setTaches(e2, t2) {
|
|
2733
|
+
e2.taches = t2;
|
|
2734
|
+
}, setTransitions(e2, t2) {
|
|
2735
|
+
e2.transitions = t2;
|
|
2736
|
+
}, clearCanvas(e2) {
|
|
2737
|
+
e2.taches = [], e2.transitions = [];
|
|
2738
|
+
}, resetState(e2) {
|
|
2739
|
+
e2.isMovingTache = false, e2.startJoint = null, e2.endJoint = null, e2.isDrawingRegion = false, e2.isMovingRegion = false, e2.resizerToMove = null, e2.draggerToMove = null, e2.controlPointToMove = null;
|
|
2740
|
+
}, stopDrawingLine(e2) {
|
|
2741
|
+
e2.startJoint = null, e2.endJoint = null;
|
|
2742
|
+
}, setStartJoint(e2, t2) {
|
|
2743
|
+
e2.startJoint = t2;
|
|
2744
|
+
}, setEndJoint(e2, t2) {
|
|
2745
|
+
e2.endJoint = t2;
|
|
2746
|
+
}, setMovingTache(e2, t2) {
|
|
2747
|
+
e2.isMovingTache = t2;
|
|
2748
|
+
}, setMouseDownPosition(e2, t2) {
|
|
2749
|
+
e2.mouseDownPosition = t2;
|
|
2750
|
+
}, setDrawingRegion(e2, t2) {
|
|
2751
|
+
e2.isDrawingRegion = t2;
|
|
2752
|
+
}, setMovingRegion(e2, t2) {
|
|
2753
|
+
e2.isMovingRegion = t2;
|
|
2754
|
+
}, setSelectedTaches(e2, t2) {
|
|
2755
|
+
e2.selectedTaches = t2;
|
|
2756
|
+
}, setSelectedTransition(e2, t2) {
|
|
2757
|
+
e2.selectedTransition = t2;
|
|
2758
|
+
}, setResizerToMove(e2, t2) {
|
|
2759
|
+
e2.resizerToMove = t2;
|
|
2760
|
+
}, setDraggerToMove(e2, t2) {
|
|
2761
|
+
e2.draggerToMove = t2;
|
|
2762
|
+
}, setPropertiesEditorFor(e2, t2) {
|
|
2763
|
+
e2.propertiesEditorFor = t2;
|
|
2764
|
+
}, setComponentToDraw(e2, t2) {
|
|
2765
|
+
e2.componentToDraw = t2;
|
|
2766
|
+
}, setControlPointToMove(e2, t2) {
|
|
2767
|
+
e2.controlPointToMove = t2;
|
|
2768
|
+
}, setFormFields(e2, t2) {
|
|
2769
|
+
e2.formFields = t2;
|
|
2770
|
+
}, setFormCode(e2, t2) {
|
|
2771
|
+
e2.formCode = t2;
|
|
2772
|
+
}, setFormFieldsWithSub(e2, t2) {
|
|
2773
|
+
e2.formFieldsWithSub = t2;
|
|
2774
|
+
}, setContextMenuVisible(e2, t2) {
|
|
2775
|
+
e2.contextMenuVisible = t2;
|
|
2776
|
+
}, setSystemCode(e2, t2) {
|
|
2777
|
+
e2.systemCode = t2;
|
|
2778
|
+
}, setProcessCode(e2, t2) {
|
|
2779
|
+
e2.processCode = t2;
|
|
2780
|
+
}, setProcessI18n(e2, t2) {
|
|
2781
|
+
e2.processI18n = t2;
|
|
2782
|
+
}, setSubtableConditionMap(e2, t2) {
|
|
2783
|
+
e2.subtableConditionMap = t2;
|
|
2784
|
+
}, setPropSettingKeyList(e2, t2) {
|
|
2785
|
+
e2.propSettingKeyList = t2;
|
|
2786
|
+
}, setSystemVersion(e2, t2) {
|
|
2787
|
+
e2.systemVersion = t2;
|
|
2788
|
+
}, setTableCode(e2, t2) {
|
|
2789
|
+
e2.tableCode = t2;
|
|
2790
|
+
}, setTableCode(e2, t2) {
|
|
2791
|
+
e2.tableCode = t2;
|
|
2792
|
+
}, setIsCreateDefinition(e2, t2) {
|
|
2793
|
+
e2.isCreateDefinition = t2;
|
|
2794
|
+
}, setIsHandleCreate(e2, t2) {
|
|
2795
|
+
e2.isHandleCreate = t2;
|
|
2796
|
+
}, setPageCode(e2, t2) {
|
|
2797
|
+
e2.pageCode = t2;
|
|
2798
|
+
}, setSourceComponentForCopy(e2, t2) {
|
|
2799
|
+
e2.sourceComponentType = t2;
|
|
2800
|
+
} } };
|
|
2801
2801
|
function Nr() {
|
|
2802
2802
|
return Nr = Object.assign ? Object.assign.bind() : function(e2) {
|
|
2803
2803
|
for (var t2 = 1; t2 < arguments.length; t2++) {
|
|
@@ -3495,10 +3495,10 @@
|
|
|
3495
3495
|
}), Object.keys(c2).length > 0 || Object.keys(d2).length > 0 ? { rules: a2, subRules: c2, totalSubRules: d2, dataTypeMap: s2 } : a2;
|
|
3496
3496
|
}, cn = { install: function(e2, t2) {
|
|
3497
3497
|
e2.config.globalProperties.$formValidator = sn, e2.config.globalProperties.$getValidator = dn;
|
|
3498
|
-
} }, mn =
|
|
3499
|
-
|
|
3498
|
+
} }, mn = vr.WorkflowEditor, un = vr.WorkflowHistory, pn = [mn, un], hn = function(e2) {
|
|
3499
|
+
hn.installed || (pn.forEach((t2) => {
|
|
3500
3500
|
e2.component(t2.name, t2);
|
|
3501
3501
|
}), e2.use(cn));
|
|
3502
3502
|
};
|
|
3503
|
-
e.WorkflowEditor = mn, e.WorkflowHistory = un, e.wfEditorCn = d, e.wfEditorEn = s, e.wfEditorInstall =
|
|
3503
|
+
e.WorkflowEditor = mn, e.WorkflowHistory = un, e.wfEditorCn = d, e.wfEditorEn = s, e.wfEditorInstall = hn, e.wfEditorStore = Tr, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
|
|
3504
3504
|
});
|
package/es/index.mjs
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import o from "./workflow-editor/index.mjs";
|
|
2
|
+
import { default as default2 } from "./workflow-editor/src/store/workflow-editor.mjs";
|
|
2
3
|
import r from "./plugins/index.mjs";
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
import { default as default3 } from "./src/i18n/langs/cn.mjs";
|
|
5
|
+
import { default as default4 } from "./src/i18n/langs/en.mjs";
|
|
6
|
+
const t = o.WorkflowEditor, e = o.WorkflowHistory, s = [t, e], f = function(o2) {
|
|
7
|
+
f.installed || (s.forEach((r2) => {
|
|
7
8
|
o2.component(r2.name, r2);
|
|
8
9
|
}), o2.use(r));
|
|
9
10
|
};
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
t as WorkflowEditor,
|
|
13
|
+
e as WorkflowHistory,
|
|
14
|
+
default3 as wfEditorCn,
|
|
15
|
+
default4 as wfEditorEn,
|
|
16
|
+
f as wfEditorInstall,
|
|
17
|
+
default2 as wfEditorStore
|
|
17
18
|
};
|
package/es/style.css
CHANGED
|
@@ -1,4 +1,65 @@
|
|
|
1
|
-
@charset "UTF-8"
|
|
1
|
+
@charset "UTF-8";.main[data-v-6658e14b] {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
.canvas-container[data-v-6658e14b] {
|
|
8
|
+
position: relative;
|
|
9
|
+
height: 100%;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
section[data-v-6658e14b] {
|
|
13
|
+
overflow: hidden;
|
|
14
|
+
width: 100%;
|
|
15
|
+
height: 100%;
|
|
16
|
+
padding: 0;
|
|
17
|
+
}
|
|
18
|
+
.canvas[data-v-6658e14b] {
|
|
19
|
+
overflow: auto;
|
|
20
|
+
height: 100%;
|
|
21
|
+
padding: 0;
|
|
22
|
+
min-height: 500px;
|
|
23
|
+
}
|
|
24
|
+
.canvas[data-v-6658e14b] .draggable {
|
|
25
|
+
cursor: default;
|
|
26
|
+
}li[data-v-7e8a1cf6] {
|
|
27
|
+
color: #333;
|
|
28
|
+
}
|
|
29
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
30
|
+
position: fixed;
|
|
31
|
+
background: #fff;
|
|
32
|
+
z-index: 999;
|
|
33
|
+
padding: 5px;
|
|
34
|
+
margin: 0;
|
|
35
|
+
}
|
|
36
|
+
.context-menu li[data-v-7e8a1cf6] {
|
|
37
|
+
min-width: 75px;
|
|
38
|
+
height: 28px;
|
|
39
|
+
line-height: 28px;
|
|
40
|
+
text-align: left;
|
|
41
|
+
color: #1a1a1a;
|
|
42
|
+
}
|
|
43
|
+
.context-menu li[data-v-7e8a1cf6]:hover {
|
|
44
|
+
background: #42b983;
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
48
|
+
border: 1px solid #eee;
|
|
49
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
}
|
|
52
|
+
li[data-v-7e8a1cf6] {
|
|
53
|
+
list-style-type: none;
|
|
54
|
+
}
|
|
55
|
+
.svg-icon {
|
|
56
|
+
width: 1em;
|
|
57
|
+
height: 1em;
|
|
58
|
+
vertical-align: -0.15em;
|
|
59
|
+
fill: currentColor;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
2
63
|
.button-area[data-v-865cb4ee] {
|
|
3
64
|
padding: 5px 0 5px 5px;
|
|
4
65
|
height: 50px;
|
|
@@ -100,59 +161,6 @@ pre[data-v-865cb4ee] {
|
|
|
100
161
|
/* 去掉卡片和tab表头的距离 */
|
|
101
162
|
[data-v-865cb4ee] .el-tabs__header {
|
|
102
163
|
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
|
-
}li[data-v-7e8a1cf6] {
|
|
129
|
-
color: #333;
|
|
130
|
-
}
|
|
131
|
-
.context-menu[data-v-7e8a1cf6] {
|
|
132
|
-
position: fixed;
|
|
133
|
-
background: #fff;
|
|
134
|
-
z-index: 999;
|
|
135
|
-
padding: 5px;
|
|
136
|
-
margin: 0;
|
|
137
|
-
}
|
|
138
|
-
.context-menu li[data-v-7e8a1cf6] {
|
|
139
|
-
min-width: 75px;
|
|
140
|
-
height: 28px;
|
|
141
|
-
line-height: 28px;
|
|
142
|
-
text-align: left;
|
|
143
|
-
color: #1a1a1a;
|
|
144
|
-
}
|
|
145
|
-
.context-menu li[data-v-7e8a1cf6]:hover {
|
|
146
|
-
background: #42b983;
|
|
147
|
-
color: #fff;
|
|
148
|
-
}
|
|
149
|
-
.context-menu[data-v-7e8a1cf6] {
|
|
150
|
-
border: 1px solid #eee;
|
|
151
|
-
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
152
|
-
border-radius: 5px;
|
|
153
|
-
}
|
|
154
|
-
li[data-v-7e8a1cf6] {
|
|
155
|
-
list-style-type: none;
|
|
156
164
|
}h3[data-v-0d941719] {
|
|
157
165
|
color: #999999;
|
|
158
166
|
margin: 0;
|
|
@@ -168,14 +176,6 @@ li[data-v-7e8a1cf6] {
|
|
|
168
176
|
.el-button i[data-v-0d941719] {
|
|
169
177
|
padding-right: 4px;
|
|
170
178
|
}
|
|
171
|
-
.svg-icon {
|
|
172
|
-
width: 1em;
|
|
173
|
-
height: 1em;
|
|
174
|
-
vertical-align: -0.15em;
|
|
175
|
-
fill: currentColor;
|
|
176
|
-
overflow: hidden;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
179
|
#svg{
|
|
180
180
|
/* border:1px solid red; */
|
|
181
181
|
background: white;
|
|
@@ -254,6 +254,11 @@ g text{
|
|
|
254
254
|
fill: white
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
.end{
|
|
258
|
+
stroke-width: 0;
|
|
259
|
+
fill:#fff;
|
|
260
|
+
}
|
|
261
|
+
|
|
257
262
|
.start{
|
|
258
263
|
stroke-width: 0;
|
|
259
264
|
fill:#fff;
|
|
@@ -264,7 +269,7 @@ g text{
|
|
|
264
269
|
fill:#fff;
|
|
265
270
|
}
|
|
266
271
|
|
|
267
|
-
.
|
|
272
|
+
.decision{
|
|
268
273
|
stroke-width: 0;
|
|
269
274
|
fill:#fff;
|
|
270
275
|
}
|
|
@@ -293,6 +298,13 @@ g text{
|
|
|
293
298
|
pointer-events: none;
|
|
294
299
|
}
|
|
295
300
|
|
|
301
|
+
.virtual-transition{
|
|
302
|
+
stroke-width: 2;
|
|
303
|
+
stroke:#000;
|
|
304
|
+
stroke-dasharray: 2 2;
|
|
305
|
+
fill: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
296
308
|
.human-decision{
|
|
297
309
|
stroke-width: 0;
|
|
298
310
|
fill:#fff;
|
|
@@ -311,27 +323,15 @@ g text{
|
|
|
311
323
|
/* 控制region在画的过程中不响应任何事件,只有画完后才能响应 */
|
|
312
324
|
pointer-events:none;
|
|
313
325
|
}
|
|
314
|
-
|
|
315
|
-
.decision{
|
|
316
|
-
stroke-width: 0;
|
|
317
|
-
fill:#fff;
|
|
318
|
-
}
|
|
319
326
|
|
|
320
327
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
321
|
-
.properties-editor[data-v-
|
|
322
|
-
padding-top: 0
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.virtual-transition{
|
|
326
|
-
stroke-width: 2;
|
|
327
|
-
stroke:#000;
|
|
328
|
-
stroke-dasharray: 2 2;
|
|
329
|
-
fill: none;
|
|
328
|
+
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
329
|
+
padding-top: 0;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
333
|
-
.properties-editor[data-v-
|
|
334
|
-
padding-top: 0
|
|
333
|
+
.properties-editor[data-v-0e44fe8c] .el-dialog__body{
|
|
334
|
+
padding-top: 0
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
@@ -381,14 +381,6 @@ g text{
|
|
|
381
381
|
fill-opacity: 1;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.control-point[data-v-788fb0ae]{
|
|
385
|
-
fill: #fff;
|
|
386
|
-
cursor: move;
|
|
387
|
-
}
|
|
388
|
-
.control-line[data-v-788fb0ae] {
|
|
389
|
-
stroke-dasharray: 2 2
|
|
390
|
-
}
|
|
391
|
-
|
|
392
384
|
.control-point[data-v-0ff53a0a]{
|
|
393
385
|
fill: #fff;
|
|
394
386
|
cursor: move;
|
|
@@ -402,6 +394,14 @@ g text{
|
|
|
402
394
|
stroke-width: 1;
|
|
403
395
|
fill: white;
|
|
404
396
|
}
|
|
397
|
+
|
|
398
|
+
.control-point[data-v-788fb0ae]{
|
|
399
|
+
fill: #fff;
|
|
400
|
+
cursor: move;
|
|
401
|
+
}
|
|
402
|
+
.control-line[data-v-788fb0ae] {
|
|
403
|
+
stroke-dasharray: 2 2
|
|
404
|
+
}
|
|
405
405
|
ul[data-v-39fac73c] {
|
|
406
406
|
margin: 0;
|
|
407
407
|
padding: 0;
|
|
@@ -422,38 +422,14 @@ ul li[data-v-39fac73c] {
|
|
|
422
422
|
margin-left: 20px;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
.el-checkbox[data-v-5fb29fef]{
|
|
426
|
-
margin-left: 20px;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
425
|
.percent[data-v-c1c7385b]{
|
|
430
426
|
margin-left: 10px;
|
|
431
427
|
color:red;
|
|
432
428
|
font-size:1.2em;
|
|
433
429
|
}
|
|
434
430
|
|
|
435
|
-
.
|
|
436
|
-
|
|
437
|
-
color:red;
|
|
438
|
-
font-size:1.2em;
|
|
439
|
-
}
|
|
440
|
-
.group[data-v-98300543] {
|
|
441
|
-
font-size: 14px;
|
|
442
|
-
width: 100%;
|
|
443
|
-
}
|
|
444
|
-
.item[data-v-98300543] {
|
|
445
|
-
float: left;
|
|
446
|
-
list-style-type: none;
|
|
447
|
-
width: 33.33%;
|
|
448
|
-
margin-bottom: 18px;
|
|
449
|
-
}
|
|
450
|
-
.item-content[data-v-98300543] {
|
|
451
|
-
height: calc(100vh - 300px);
|
|
452
|
-
padding-left: 20px;
|
|
453
|
-
overflow: auto;
|
|
454
|
-
}
|
|
455
|
-
span[data-v-4e29ea06] {
|
|
456
|
-
margin: 0 10px;
|
|
431
|
+
.el-checkbox[data-v-5fb29fef]{
|
|
432
|
+
margin-left: 20px;
|
|
457
433
|
}
|
|
458
434
|
|
|
459
435
|
.el-tag + .el-tag[data-v-aaf48aff] {
|
|
@@ -478,6 +454,30 @@ select[data-v-aaf48aff]{
|
|
|
478
454
|
line-height: 32px;
|
|
479
455
|
}
|
|
480
456
|
|
|
457
|
+
.percent[data-v-6aef99ff]{
|
|
458
|
+
margin-left: 10px;
|
|
459
|
+
color:red;
|
|
460
|
+
font-size:1.2em;
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
span[data-v-4e29ea06] {
|
|
464
|
+
margin: 0 10px;
|
|
465
|
+
}
|
|
466
|
+
.group[data-v-98300543] {
|
|
467
|
+
font-size: 14px;
|
|
468
|
+
width: 100%;
|
|
469
|
+
}
|
|
470
|
+
.item[data-v-98300543] {
|
|
471
|
+
float: left;
|
|
472
|
+
list-style-type: none;
|
|
473
|
+
width: 33.33%;
|
|
474
|
+
margin-bottom: 18px;
|
|
475
|
+
}
|
|
476
|
+
.item-content[data-v-98300543] {
|
|
477
|
+
height: calc(100vh - 300px);
|
|
478
|
+
padding-left: 20px;
|
|
479
|
+
overflow: auto;
|
|
480
|
+
}
|
|
481
481
|
.searchResult {
|
|
482
482
|
color:red
|
|
483
483
|
}
|
|
@@ -498,13 +498,6 @@ select[data-v-aaf48aff]{
|
|
|
498
498
|
word-break: keep-all;
|
|
499
499
|
width: 55%;
|
|
500
500
|
}
|
|
501
|
-
.searchResult {
|
|
502
|
-
color:red
|
|
503
|
-
}
|
|
504
|
-
.inline-input-custom {
|
|
505
|
-
width : 90%
|
|
506
|
-
}
|
|
507
|
-
|
|
508
501
|
#custTabOne[data-v-7feaa2da] .el-tabs__content {
|
|
509
502
|
height: 500px;
|
|
510
503
|
}
|
|
@@ -523,3 +516,10 @@ select[data-v-aaf48aff]{
|
|
|
523
516
|
padding-left: 20px;
|
|
524
517
|
overflow: auto;
|
|
525
518
|
}
|
|
519
|
+
|
|
520
|
+
.searchResult {
|
|
521
|
+
color:red
|
|
522
|
+
}
|
|
523
|
+
.inline-input-custom {
|
|
524
|
+
width : 90%
|
|
525
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import o from "./src/workflow-editor.vue.mjs";
|
|
2
|
-
import r from "./src/
|
|
3
|
-
|
|
4
|
-
o.
|
|
5
|
-
r2.component(o.name, o), r2.component(t.name, t);
|
|
2
|
+
import r from "./src/workflow-history.vue.mjs";
|
|
3
|
+
o.install = function(t2) {
|
|
4
|
+
t2.component(o.name, o), t2.component(r.name, r);
|
|
6
5
|
};
|
|
7
|
-
const
|
|
6
|
+
const t = { WorkflowEditor: o, WorkflowHistory: r };
|
|
8
7
|
export {
|
|
9
|
-
|
|
8
|
+
t as default
|
|
10
9
|
};
|
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("./plugins/index.cjs"),
|
|
3
|
+
const r = require("./workflow-editor/index.cjs"), o = require("./workflow-editor/src/store/workflow-editor.cjs"), e = require("./plugins/index.cjs"), t = require("./src/i18n/langs/cn.cjs"), s = require("./src/i18n/langs/en.cjs"), i = r.WorkflowEditor, n = r.WorkflowHistory, l = [i, n], c = function(r2) {
|
|
4
4
|
c.installed || (l.forEach((o2) => {
|
|
5
5
|
r2.component(o2.name, o2);
|
|
6
|
-
}), r2.use(
|
|
6
|
+
}), r2.use(e));
|
|
7
7
|
};
|
|
8
|
-
exports.
|
|
8
|
+
exports.wfEditorStore = o, exports.wfEditorCn = t, exports.wfEditorEn = s, exports.WorkflowEditor = i, exports.WorkflowHistory = n, exports.wfEditorInstall = c;
|
package/lib/style.css
CHANGED
|
@@ -23,6 +23,34 @@ section[data-v-6658e14b] {
|
|
|
23
23
|
}
|
|
24
24
|
.canvas[data-v-6658e14b] .draggable {
|
|
25
25
|
cursor: default;
|
|
26
|
+
}li[data-v-7e8a1cf6] {
|
|
27
|
+
color: #333;
|
|
28
|
+
}
|
|
29
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
30
|
+
position: fixed;
|
|
31
|
+
background: #fff;
|
|
32
|
+
z-index: 999;
|
|
33
|
+
padding: 5px;
|
|
34
|
+
margin: 0;
|
|
35
|
+
}
|
|
36
|
+
.context-menu li[data-v-7e8a1cf6] {
|
|
37
|
+
min-width: 75px;
|
|
38
|
+
height: 28px;
|
|
39
|
+
line-height: 28px;
|
|
40
|
+
text-align: left;
|
|
41
|
+
color: #1a1a1a;
|
|
42
|
+
}
|
|
43
|
+
.context-menu li[data-v-7e8a1cf6]:hover {
|
|
44
|
+
background: #42b983;
|
|
45
|
+
color: #fff;
|
|
46
|
+
}
|
|
47
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
48
|
+
border: 1px solid #eee;
|
|
49
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
50
|
+
border-radius: 5px;
|
|
51
|
+
}
|
|
52
|
+
li[data-v-7e8a1cf6] {
|
|
53
|
+
list-style-type: none;
|
|
26
54
|
}
|
|
27
55
|
.button-area[data-v-865cb4ee] {
|
|
28
56
|
padding: 5px 0 5px 5px;
|
|
@@ -125,34 +153,6 @@ pre[data-v-865cb4ee] {
|
|
|
125
153
|
/* 去掉卡片和tab表头的距离 */
|
|
126
154
|
[data-v-865cb4ee] .el-tabs__header {
|
|
127
155
|
margin: 0;
|
|
128
|
-
}li[data-v-7e8a1cf6] {
|
|
129
|
-
color: #333;
|
|
130
|
-
}
|
|
131
|
-
.context-menu[data-v-7e8a1cf6] {
|
|
132
|
-
position: fixed;
|
|
133
|
-
background: #fff;
|
|
134
|
-
z-index: 999;
|
|
135
|
-
padding: 5px;
|
|
136
|
-
margin: 0;
|
|
137
|
-
}
|
|
138
|
-
.context-menu li[data-v-7e8a1cf6] {
|
|
139
|
-
min-width: 75px;
|
|
140
|
-
height: 28px;
|
|
141
|
-
line-height: 28px;
|
|
142
|
-
text-align: left;
|
|
143
|
-
color: #1a1a1a;
|
|
144
|
-
}
|
|
145
|
-
.context-menu li[data-v-7e8a1cf6]:hover {
|
|
146
|
-
background: #42b983;
|
|
147
|
-
color: #fff;
|
|
148
|
-
}
|
|
149
|
-
.context-menu[data-v-7e8a1cf6] {
|
|
150
|
-
border: 1px solid #eee;
|
|
151
|
-
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
152
|
-
border-radius: 5px;
|
|
153
|
-
}
|
|
154
|
-
li[data-v-7e8a1cf6] {
|
|
155
|
-
list-style-type: none;
|
|
156
156
|
}
|
|
157
157
|
.svg-icon {
|
|
158
158
|
width: 1em;
|
|
@@ -205,9 +205,25 @@ g text{
|
|
|
205
205
|
fill: #fff;
|
|
206
206
|
stroke: #666;
|
|
207
207
|
stroke-width: 2;
|
|
208
|
+
}
|
|
209
|
+
.passed-tache .task-tache{
|
|
210
|
+
fill: green;
|
|
211
|
+
stroke: green;
|
|
212
|
+
stroke-width: 2;
|
|
213
|
+
}
|
|
214
|
+
.current-tache .task-tache{
|
|
215
|
+
fill: red;
|
|
216
|
+
stroke: red;
|
|
217
|
+
stroke-width: 2;
|
|
218
|
+
}
|
|
219
|
+
.passed-tache text{
|
|
220
|
+
fill:white;
|
|
221
|
+
}
|
|
222
|
+
.current-tache text{
|
|
223
|
+
fill: white
|
|
208
224
|
}
|
|
209
225
|
|
|
210
|
-
.
|
|
226
|
+
.end{
|
|
211
227
|
stroke-width: 0;
|
|
212
228
|
fill:#fff;
|
|
213
229
|
}
|
|
@@ -241,22 +257,6 @@ g text{
|
|
|
241
257
|
fill: #fff;
|
|
242
258
|
stroke: #666;
|
|
243
259
|
stroke-width: 2;
|
|
244
|
-
}
|
|
245
|
-
.passed-tache .task-tache{
|
|
246
|
-
fill: green;
|
|
247
|
-
stroke: green;
|
|
248
|
-
stroke-width: 2;
|
|
249
|
-
}
|
|
250
|
-
.current-tache .task-tache{
|
|
251
|
-
fill: red;
|
|
252
|
-
stroke: red;
|
|
253
|
-
stroke-width: 2;
|
|
254
|
-
}
|
|
255
|
-
.passed-tache text{
|
|
256
|
-
fill:white;
|
|
257
|
-
}
|
|
258
|
-
.current-tache text{
|
|
259
|
-
fill: white
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
.decision{
|
|
@@ -264,7 +264,7 @@ g text{
|
|
|
264
264
|
fill:#fff;
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
.
|
|
267
|
+
.decision{
|
|
268
268
|
stroke-width: 0;
|
|
269
269
|
fill:#fff;
|
|
270
270
|
}
|
|
@@ -274,6 +274,11 @@ g text{
|
|
|
274
274
|
fill:#fff;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
.start{
|
|
278
|
+
stroke-width: 0;
|
|
279
|
+
fill:#fff;
|
|
280
|
+
}
|
|
281
|
+
|
|
277
282
|
.transition[data-v-a1576cad] {
|
|
278
283
|
stroke-width: 2;
|
|
279
284
|
stroke: #666;
|
|
@@ -298,9 +303,11 @@ g text{
|
|
|
298
303
|
fill:#fff;
|
|
299
304
|
}
|
|
300
305
|
|
|
301
|
-
.
|
|
302
|
-
stroke-width:
|
|
303
|
-
|
|
306
|
+
.virtual-transition{
|
|
307
|
+
stroke-width: 2;
|
|
308
|
+
stroke:#000;
|
|
309
|
+
stroke-dasharray: 2 2;
|
|
310
|
+
fill: none;
|
|
304
311
|
}
|
|
305
312
|
|
|
306
313
|
.selection-region{
|
|
@@ -318,20 +325,13 @@ g text{
|
|
|
318
325
|
}
|
|
319
326
|
|
|
320
327
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
321
|
-
.properties-editor[data-v-
|
|
322
|
-
padding-top: 0
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
.virtual-transition{
|
|
326
|
-
stroke-width: 2;
|
|
327
|
-
stroke:#000;
|
|
328
|
-
stroke-dasharray: 2 2;
|
|
329
|
-
fill: none;
|
|
328
|
+
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
329
|
+
padding-top: 0;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
333
|
-
.properties-editor[data-v-
|
|
334
|
-
padding-top: 0
|
|
333
|
+
.properties-editor[data-v-0e44fe8c] .el-dialog__body{
|
|
334
|
+
padding-top: 0
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
@@ -381,14 +381,6 @@ g text{
|
|
|
381
381
|
fill-opacity: 1;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.control-point[data-v-788fb0ae]{
|
|
385
|
-
fill: #fff;
|
|
386
|
-
cursor: move;
|
|
387
|
-
}
|
|
388
|
-
.control-line[data-v-788fb0ae] {
|
|
389
|
-
stroke-dasharray: 2 2
|
|
390
|
-
}
|
|
391
|
-
|
|
392
384
|
.control-point[data-v-0ff53a0a]{
|
|
393
385
|
fill: #fff;
|
|
394
386
|
cursor: move;
|
|
@@ -402,6 +394,14 @@ g text{
|
|
|
402
394
|
stroke-width: 1;
|
|
403
395
|
fill: white;
|
|
404
396
|
}
|
|
397
|
+
|
|
398
|
+
.control-point[data-v-788fb0ae]{
|
|
399
|
+
fill: #fff;
|
|
400
|
+
cursor: move;
|
|
401
|
+
}
|
|
402
|
+
.control-line[data-v-788fb0ae] {
|
|
403
|
+
stroke-dasharray: 2 2
|
|
404
|
+
}
|
|
405
405
|
ul[data-v-39fac73c] {
|
|
406
406
|
margin: 0;
|
|
407
407
|
padding: 0;
|
|
@@ -437,24 +437,6 @@ ul li[data-v-39fac73c] {
|
|
|
437
437
|
color:red;
|
|
438
438
|
font-size:1.2em;
|
|
439
439
|
}
|
|
440
|
-
.group[data-v-98300543] {
|
|
441
|
-
font-size: 14px;
|
|
442
|
-
width: 100%;
|
|
443
|
-
}
|
|
444
|
-
.item[data-v-98300543] {
|
|
445
|
-
float: left;
|
|
446
|
-
list-style-type: none;
|
|
447
|
-
width: 33.33%;
|
|
448
|
-
margin-bottom: 18px;
|
|
449
|
-
}
|
|
450
|
-
.item-content[data-v-98300543] {
|
|
451
|
-
height: calc(100vh - 300px);
|
|
452
|
-
padding-left: 20px;
|
|
453
|
-
overflow: auto;
|
|
454
|
-
}
|
|
455
|
-
span[data-v-4e29ea06] {
|
|
456
|
-
margin: 0 10px;
|
|
457
|
-
}
|
|
458
440
|
|
|
459
441
|
.el-tag + .el-tag[data-v-aaf48aff] {
|
|
460
442
|
margin-left: 10px;
|
|
@@ -478,25 +460,24 @@ select[data-v-aaf48aff]{
|
|
|
478
460
|
line-height: 32px;
|
|
479
461
|
}
|
|
480
462
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
.group[data-v-
|
|
485
|
-
font-size: 14px;
|
|
463
|
+
span[data-v-4e29ea06] {
|
|
464
|
+
margin: 0 10px;
|
|
465
|
+
}
|
|
466
|
+
.group[data-v-98300543] {
|
|
467
|
+
font-size: 14px;
|
|
486
468
|
width: 100%;
|
|
487
469
|
}
|
|
488
|
-
.item[data-v-
|
|
489
|
-
float: left;
|
|
490
|
-
list-style-type: none;
|
|
491
|
-
width: 33.33%;
|
|
470
|
+
.item[data-v-98300543] {
|
|
471
|
+
float: left;
|
|
472
|
+
list-style-type: none;
|
|
473
|
+
width: 33.33%;
|
|
492
474
|
margin-bottom: 18px;
|
|
493
475
|
}
|
|
494
|
-
.item-content[data-v-
|
|
495
|
-
height: calc(100vh - 300px);
|
|
496
|
-
padding-left: 20px;
|
|
476
|
+
.item-content[data-v-98300543] {
|
|
477
|
+
height: calc(100vh - 300px);
|
|
478
|
+
padding-left: 20px;
|
|
497
479
|
overflow: auto;
|
|
498
|
-
}
|
|
499
|
-
|
|
480
|
+
}
|
|
500
481
|
.searchResult {
|
|
501
482
|
color:red
|
|
502
483
|
}
|
|
@@ -517,6 +498,25 @@ select[data-v-aaf48aff]{
|
|
|
517
498
|
word-break: keep-all;
|
|
518
499
|
width: 55%;
|
|
519
500
|
}
|
|
501
|
+
#custTabOne[data-v-7feaa2da] .el-tabs__content {
|
|
502
|
+
height: 500px;
|
|
503
|
+
}
|
|
504
|
+
.group[data-v-7feaa2da] {
|
|
505
|
+
font-size: 14px;
|
|
506
|
+
width: 100%;
|
|
507
|
+
}
|
|
508
|
+
.item[data-v-7feaa2da] {
|
|
509
|
+
float: left;
|
|
510
|
+
list-style-type: none;
|
|
511
|
+
width: 33.33%;
|
|
512
|
+
margin-bottom: 18px;
|
|
513
|
+
}
|
|
514
|
+
.item-content[data-v-7feaa2da] {
|
|
515
|
+
height: calc(100vh - 300px);
|
|
516
|
+
padding-left: 20px;
|
|
517
|
+
overflow: auto;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
520
|
.searchResult {
|
|
521
521
|
color:red
|
|
522
522
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const o = require("./src/workflow-editor.vue.cjs"), r = require("./src/
|
|
3
|
-
o.install = function(
|
|
4
|
-
|
|
2
|
+
const o = require("./src/workflow-editor.vue.cjs"), r = require("./src/workflow-history.vue.cjs");
|
|
3
|
+
o.install = function(e2) {
|
|
4
|
+
e2.component(o.name, o), e2.component(r.name, r);
|
|
5
5
|
};
|
|
6
|
-
const
|
|
7
|
-
module.exports =
|
|
6
|
+
const e = { WorkflowEditor: o, WorkflowHistory: r };
|
|
7
|
+
module.exports = e;
|