workflow-editor 0.0.81-up-tmp7 → 0.0.81-up-tmp9

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.
@@ -2635,10 +2635,78 @@
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 = ["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) {
2638
+ }], ["__scopeId", "data-v-865cb4ee"]]), pr = { 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) {
2639
+ e2.taches = t2;
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) {
2640
2708
  const a2 = r.resolveComponent("el-dialog");
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"]);
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, hr)]), _: 1 }, 8, ["title"]);
2642
2710
  }], ["__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() {
2643
2711
  return { showHistory: false, tooltipPosition: null, tacheHistoryInfo: null, showSubprocessDialog: false, subWorkflowId: null };
2644
2712
  }, computed: { ...t.mapGetters("wfEditor", ["taches", "transitions", "processI18n"]) }, mounted: function() {
@@ -2697,18 +2765,18 @@
2697
2765
  t2 && void 0 !== t2.hasChildren && true === t2.hasChildren && (t2.children && t2.children.length > 0 && (this.subWorkflowId = t2.children[0].workflowId), this.showSubprocessDialog = true);
2698
2766
  }, closeSubprocessHistory() {
2699
2767
  this.showSubprocessDialog = false;
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) {
2768
+ } } }, wr = { ref: "svgContainer", style: { position: "relative" } }, gr = 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);
2769
+ const Cr = M(fr, [["render", function(e2, t2, o2, l2, n2, i2) {
2702
2770
  const a2 = r.resolveComponent("tache-history-tooltip"), s2 = r.resolveComponent("tache-subprocess-history-dialog");
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() {
2771
+ return r.openBlock(), r.createElementBlock("div", wr, [(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)) }, [gr, (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);
2772
+ }]]), br = { refresh() {
2705
2773
  this.showHistory();
2706
- } }, br = { name: "WorkflowHistory", components: { WfHistoryCanvas: gr }, props: { id: { type: Number, default: null } }, data: function() {
2774
+ } }, kr = { name: "WorkflowHistory", components: { WfHistoryCanvas: Cr }, props: { id: { type: Number, default: null } }, data: function() {
2707
2775
  return { process: null, histories: [], currentTasks: [], allProcessI18n: null };
2708
2776
  }, computed: { ...t.mapGetters("wfEditor", ["componentToDraw", "taches", "transitions", "contextMenuVisible"]), ...t.mapGetters(["sidebar"]) }, watch: {}, created: function() {
2709
2777
  this.showHistory();
2710
2778
  }, mounted: function() {
2711
- }, methods: { ...Cr, ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
2779
+ }, methods: { ...br, ...t.mapMutations("wfEditor", ["setComponentToDraw", "clearCanvas", "setContextMenuVisible", "setProcessI18n"]), showHistory() {
2712
2780
  this.clearCanvas(), this.id ? this.$http.get(this.baseAPI + "/wf-editor/i18n-settings/get-bundle-info?workflowId=" + this.id).then((e2) => {
2713
2781
  this.allProcessI18n = e2;
2714
2782
  const t2 = this.baseAPI + "/wf-editor/instance-histories/" + this.id;
@@ -2721,83 +2789,15 @@
2721
2789
  }, initProcessByXml(e2) {
2722
2790
  const t2 = n.xml2js(e2, { nativeType: true, attributesKey: "attr", compact: true, ignoreComment: true, spaces: 4 });
2723
2791
  b(t2.process), this.process = t2.process, V(this.process);
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) {
2792
+ } } }, Vr = { ref: "wfEditor", style: { position: "relative", height: "100%" } }, yr = { class: "main" };
2793
+ const vr = M(kr, [["render", function(e2, t2, o2, l2, n2, i2) {
2726
2794
  const a2 = r.resolveComponent("wf-history-canvas");
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);
2795
+ return r.openBlock(), r.createElementBlock("div", Vr, [r.createElementVNode("div", yr, [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);
2728
2796
  }], ["__scopeId", "data-v-6658e14b"]]);
2729
2797
  ur.install = function(e2) {
2730
- e2.component(ur.name, ur), e2.component(yr.name, yr);
2798
+ e2.component(ur.name, ur), e2.component(vr.name, vr);
2731
2799
  };
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
- } } };
2800
+ const Tr = { WorkflowEditor: ur, WorkflowHistory: vr, wfEditorStore: pr };
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 = vr.WorkflowEditor, un = vr.WorkflowHistory, pn = [mn, un], hn = function(e2) {
3499
- hn.installed || (pn.forEach((t2) => {
3498
+ } }, mn = Tr.WorkflowEditor, un = Tr.WorkflowHistory, pn = Tr.wfEditorStore, hn = [mn, un], fn = function(e2) {
3499
+ fn.installed || (hn.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 = hn, e.wfEditorStore = Tr, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
3503
+ e.WorkflowEditor = mn, e.WorkflowHistory = un, e.wfEditorCn = d, e.wfEditorEn = s, e.wfEditorInstall = fn, e.wfEditorStore = pn, Object.defineProperty(e, Symbol.toStringTag, { value: "Module" });
3504
3504
  });
package/es/index.mjs CHANGED
@@ -1,18 +1,17 @@
1
1
  import o from "./workflow-editor/index.mjs";
2
- import { default as default2 } from "./workflow-editor/src/store/workflow-editor.mjs";
3
2
  import r from "./plugins/index.mjs";
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) => {
3
+ import { default as default2 } from "./src/i18n/langs/cn.mjs";
4
+ import { default as default3 } from "./src/i18n/langs/en.mjs";
5
+ const n = o.WorkflowEditor, t = o.WorkflowHistory, i = o.wfEditorStore, s = [n, t], e = function(o2) {
6
+ e.installed || (s.forEach((r2) => {
8
7
  o2.component(r2.name, r2);
9
8
  }), o2.use(r));
10
9
  };
11
10
  export {
12
- t as WorkflowEditor,
13
- e as WorkflowHistory,
14
- default3 as wfEditorCn,
15
- default4 as wfEditorEn,
16
- f as wfEditorInstall,
17
- default2 as wfEditorStore
11
+ n as WorkflowEditor,
12
+ t as WorkflowHistory,
13
+ default2 as wfEditorCn,
14
+ default3 as wfEditorEn,
15
+ e as wfEditorInstall,
16
+ i as wfEditorStore
18
17
  };
package/es/style.css CHANGED
@@ -125,6 +125,20 @@ section[data-v-6658e14b] {
125
125
  }
126
126
  .canvas[data-v-6658e14b] .draggable {
127
127
  cursor: default;
128
+ }h3[data-v-0d941719] {
129
+ color: #999999;
130
+ margin: 0;
131
+ padding: 0;
132
+ font-weight: bold;
133
+ font-size: 18px;
134
+ }
135
+ .el-button[data-v-0d941719] {
136
+ margin: 6px 0;
137
+ min-width: 110px;
138
+ padding: 9px 15px;
139
+ }
140
+ .el-button i[data-v-0d941719] {
141
+ padding-right: 4px;
128
142
  }
129
143
  #svg{
130
144
  /* border:1px solid red; */
@@ -173,6 +187,37 @@ g text{
173
187
  fill: white
174
188
  }
175
189
 
190
+ #svg{
191
+ /* border:1px solid red; */
192
+ background: white;
193
+ background-image:
194
+ linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
195
+ linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
196
+ linear-gradient(#e5e5e5 1px, transparent 0),
197
+ linear-gradient(90deg,#e5e5e5 1px, transparent 0);
198
+ background-size:
199
+ 15px 15px,
200
+ 15px 15px,
201
+ 75px 75px,
202
+ 75px 75px;
203
+ }
204
+ g{
205
+ font-size: 16px;
206
+ }
207
+ g text{
208
+ dominant-baseline: middle;
209
+ }
210
+ .selected{
211
+ fill: #fff;
212
+ stroke: #f00;
213
+ stroke-width: 2;
214
+ }
215
+ .task-tache{
216
+ fill: #fff;
217
+ stroke: #666;
218
+ stroke-width: 2;
219
+ }
220
+
176
221
  .svg-icon {
177
222
  width: 1em;
178
223
  height: 1em;
@@ -180,21 +225,7 @@ g text{
180
225
  fill: currentColor;
181
226
  overflow: hidden;
182
227
  }
183
- h3[data-v-0d941719] {
184
- color: #999999;
185
- margin: 0;
186
- padding: 0;
187
- font-weight: bold;
188
- font-size: 18px;
189
- }
190
- .el-button[data-v-0d941719] {
191
- margin: 6px 0;
192
- min-width: 110px;
193
- padding: 9px 15px;
194
- }
195
- .el-button i[data-v-0d941719] {
196
- padding-right: 4px;
197
- }li[data-v-7e8a1cf6] {
228
+ li[data-v-7e8a1cf6] {
198
229
  color: #333;
199
230
  }
200
231
  .context-menu[data-v-7e8a1cf6] {
@@ -223,37 +254,6 @@ h3[data-v-0d941719] {
223
254
  li[data-v-7e8a1cf6] {
224
255
  list-style-type: none;
225
256
  }
226
- #svg{
227
- /* border:1px solid red; */
228
- background: white;
229
- background-image:
230
- linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
231
- linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
232
- linear-gradient(#e5e5e5 1px, transparent 0),
233
- linear-gradient(90deg,#e5e5e5 1px, transparent 0);
234
- background-size:
235
- 15px 15px,
236
- 15px 15px,
237
- 75px 75px,
238
- 75px 75px;
239
- }
240
- g{
241
- font-size: 16px;
242
- }
243
- g text{
244
- dominant-baseline: middle;
245
- }
246
- .selected{
247
- fill: #fff;
248
- stroke: #f00;
249
- stroke-width: 2;
250
- }
251
- .task-tache{
252
- fill: #fff;
253
- stroke: #666;
254
- stroke-width: 2;
255
- }
256
-
257
257
  .start{
258
258
  stroke-width: 0;
259
259
  fill:#fff;
@@ -274,6 +274,16 @@ g text{
274
274
  fill:#fff;
275
275
  }
276
276
 
277
+ .human-decision{
278
+ stroke-width: 0;
279
+ fill:#fff;
280
+ }
281
+
282
+ .end{
283
+ stroke-width: 0;
284
+ fill:#fff;
285
+ }
286
+
277
287
  .transition[data-v-a1576cad] {
278
288
  stroke-width: 2;
279
289
  stroke: #666;
@@ -292,15 +302,7 @@ g text{
292
302
  .no-events[data-v-a1576cad] {
293
303
  pointer-events: none;
294
304
  }
295
-
296
- .human-decision{
297
- stroke-width: 0;
298
- fill:#fff;
299
- }
300
- #_subprocess-content[data-v-2b195c05] {
301
- width: 100%;
302
- height: calc(100vh - 200px);
303
- }.tooltip[data-v-ac799913] {
305
+ .tooltip[data-v-ac799913] {
304
306
  position: absolute;
305
307
  background: #fff;
306
308
  min-width: 150px;
@@ -315,18 +317,6 @@ g text{
315
317
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
316
318
  word-break: break-all;
317
319
  }
318
- .end{
319
- stroke-width: 0;
320
- fill:#fff;
321
- }
322
-
323
- .virtual-transition{
324
- stroke-width: 2;
325
- stroke:#000;
326
- stroke-dasharray: 2 2;
327
- fill: none;
328
- }
329
-
330
320
  .selection-region{
331
321
  stroke: blue;
332
322
  stroke-width: 1;
@@ -340,7 +330,17 @@ g text{
340
330
  /* 控制region在画的过程中不响应任何事件,只有画完后才能响应 */
341
331
  pointer-events:none;
342
332
  }
343
-
333
+
334
+ .virtual-transition{
335
+ stroke-width: 2;
336
+ stroke:#000;
337
+ stroke-dasharray: 2 2;
338
+ fill: none;
339
+ }
340
+ #_subprocess-content[data-v-2b195c05] {
341
+ width: 100%;
342
+ height: calc(100vh - 200px);
343
+ }
344
344
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
345
345
  .properties-editor[data-v-1651d82a] .el-dialog__body {
346
346
  padding-top: 0;
@@ -387,31 +387,21 @@ g text{
387
387
  fill: white;
388
388
  }
389
389
 
390
- .control-point[data-v-788fb0ae]{
390
+ .control-point[data-v-0ff53a0a]{
391
391
  fill: #fff;
392
392
  cursor: move;
393
393
  }
394
- .control-line[data-v-788fb0ae] {
394
+ .control-line[data-v-0ff53a0a] {
395
395
  stroke-dasharray: 2 2
396
396
  }
397
397
 
398
- .control-point[data-v-0ff53a0a]{
398
+ .control-point[data-v-788fb0ae]{
399
399
  fill: #fff;
400
400
  cursor: move;
401
401
  }
402
- .control-line[data-v-0ff53a0a] {
402
+ .control-line[data-v-788fb0ae] {
403
403
  stroke-dasharray: 2 2
404
404
  }
405
-
406
- .percent[data-v-a219b06d] {
407
- margin-left: 10px;
408
- color: red;
409
- font-size: 1.2em;
410
- }
411
-
412
- .el-checkbox[data-v-c019538f]{
413
- margin-left: 20px;
414
- }
415
405
  ul[data-v-39fac73c] {
416
406
  margin: 0;
417
407
  padding: 0;
@@ -422,20 +412,34 @@ ul li[data-v-39fac73c] {
422
412
  .sub-li[data-v-39fac73c] {
423
413
  padding-left: 10px;
424
414
  }
425
- .percent[data-v-6aef99ff]{
415
+ .percent[data-v-a219b06d] {
416
+ margin-left: 10px;
417
+ color: red;
418
+ font-size: 1.2em;
419
+ }
420
+
421
+ .el-checkbox[data-v-c019538f]{
422
+ margin-left: 20px;
423
+ }
424
+
425
+ .el-checkbox[data-v-5fb29fef]{
426
+ margin-left: 20px;
427
+ }
428
+
429
+ .percent[data-v-c1c7385b]{
426
430
  margin-left: 10px;
427
431
  color:red;
428
432
  font-size:1.2em;
429
433
  }
430
434
 
431
- .percent[data-v-c1c7385b]{
435
+ .percent[data-v-6aef99ff]{
432
436
  margin-left: 10px;
433
437
  color:red;
434
438
  font-size:1.2em;
435
439
  }
436
440
 
437
- .el-checkbox[data-v-5fb29fef]{
438
- margin-left: 20px;
441
+ span[data-v-4e29ea06] {
442
+ margin: 0 10px;
439
443
  }
440
444
  .group[data-v-98300543] {
441
445
  font-size: 14px;
@@ -474,29 +478,6 @@ select[data-v-aaf48aff]{
474
478
  line-height: 32px;
475
479
  }
476
480
 
477
- span[data-v-4e29ea06] {
478
- margin: 0 10px;
479
- }
480
-
481
- #custTabOne[data-v-7feaa2da] .el-tabs__content {
482
- height: 500px;
483
- }
484
- .group[data-v-7feaa2da] {
485
- font-size: 14px;
486
- width: 100%;
487
- }
488
- .item[data-v-7feaa2da] {
489
- float: left;
490
- list-style-type: none;
491
- width: 33.33%;
492
- margin-bottom: 18px;
493
- }
494
- .item-content[data-v-7feaa2da] {
495
- height: calc(100vh - 300px);
496
- padding-left: 20px;
497
- overflow: auto;
498
- }
499
-
500
481
  .searchResult {
501
482
  color:red
502
483
  }
@@ -517,6 +498,25 @@ span[data-v-4e29ea06] {
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,9 +1,10 @@
1
1
  import o from "./src/workflow-editor.vue.mjs";
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);
2
+ import r from "./src/store/workflow-editor.mjs";
3
+ import t from "./src/workflow-history.vue.mjs";
4
+ o.install = function(r2) {
5
+ r2.component(o.name, o), r2.component(t.name, t);
5
6
  };
6
- const t = { WorkflowEditor: o, WorkflowHistory: r };
7
+ const m = { WorkflowEditor: o, WorkflowHistory: t, wfEditorStore: r };
7
8
  export {
8
- t as default
9
+ m as default
9
10
  };
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("./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) {
3
+ const r = require("./workflow-editor/index.cjs"), o = require("./plugins/index.cjs"), e = require("./src/i18n/langs/cn.cjs"), t = require("./src/i18n/langs/en.cjs"), i = r.WorkflowEditor, s = r.WorkflowHistory, n = r.wfEditorStore, l = [i, s], c = function(r2) {
4
4
  c.installed || (l.forEach((o2) => {
5
5
  r2.component(o2.name, o2);
6
- }), r2.use(e));
6
+ }), r2.use(o));
7
7
  };
8
- exports.wfEditorStore = o, exports.wfEditorCn = t, exports.wfEditorEn = s, exports.WorkflowEditor = i, exports.WorkflowHistory = n, exports.wfEditorInstall = c;
8
+ exports.wfEditorCn = e, exports.wfEditorEn = t, exports.WorkflowEditor = i, exports.WorkflowHistory = s, exports.wfEditorInstall = c, exports.wfEditorStore = n;
package/lib/style.css CHANGED
@@ -125,6 +125,20 @@ section[data-v-6658e14b] {
125
125
  }
126
126
  .canvas[data-v-6658e14b] .draggable {
127
127
  cursor: default;
128
+ }h3[data-v-0d941719] {
129
+ color: #999999;
130
+ margin: 0;
131
+ padding: 0;
132
+ font-weight: bold;
133
+ font-size: 18px;
134
+ }
135
+ .el-button[data-v-0d941719] {
136
+ margin: 6px 0;
137
+ min-width: 110px;
138
+ padding: 9px 15px;
139
+ }
140
+ .el-button i[data-v-0d941719] {
141
+ padding-right: 4px;
128
142
  }
129
143
  #svg{
130
144
  /* border:1px solid red; */
@@ -173,6 +187,37 @@ g text{
173
187
  fill: white
174
188
  }
175
189
 
190
+ #svg{
191
+ /* border:1px solid red; */
192
+ background: white;
193
+ background-image:
194
+ linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
195
+ linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
196
+ linear-gradient(#e5e5e5 1px, transparent 0),
197
+ linear-gradient(90deg,#e5e5e5 1px, transparent 0);
198
+ background-size:
199
+ 15px 15px,
200
+ 15px 15px,
201
+ 75px 75px,
202
+ 75px 75px;
203
+ }
204
+ g{
205
+ font-size: 16px;
206
+ }
207
+ g text{
208
+ dominant-baseline: middle;
209
+ }
210
+ .selected{
211
+ fill: #fff;
212
+ stroke: #f00;
213
+ stroke-width: 2;
214
+ }
215
+ .task-tache{
216
+ fill: #fff;
217
+ stroke: #666;
218
+ stroke-width: 2;
219
+ }
220
+
176
221
  .svg-icon {
177
222
  width: 1em;
178
223
  height: 1em;
@@ -180,21 +225,7 @@ g text{
180
225
  fill: currentColor;
181
226
  overflow: hidden;
182
227
  }
183
- h3[data-v-0d941719] {
184
- color: #999999;
185
- margin: 0;
186
- padding: 0;
187
- font-weight: bold;
188
- font-size: 18px;
189
- }
190
- .el-button[data-v-0d941719] {
191
- margin: 6px 0;
192
- min-width: 110px;
193
- padding: 9px 15px;
194
- }
195
- .el-button i[data-v-0d941719] {
196
- padding-right: 4px;
197
- }li[data-v-7e8a1cf6] {
228
+ li[data-v-7e8a1cf6] {
198
229
  color: #333;
199
230
  }
200
231
  .context-menu[data-v-7e8a1cf6] {
@@ -223,37 +254,6 @@ h3[data-v-0d941719] {
223
254
  li[data-v-7e8a1cf6] {
224
255
  list-style-type: none;
225
256
  }
226
- #svg{
227
- /* border:1px solid red; */
228
- background: white;
229
- background-image:
230
- linear-gradient(rgba(242,242,242,.7) 1px, transparent 0),
231
- linear-gradient(90deg, rgba(242,242,242,.7) 1px, transparent 0),
232
- linear-gradient(#e5e5e5 1px, transparent 0),
233
- linear-gradient(90deg,#e5e5e5 1px, transparent 0);
234
- background-size:
235
- 15px 15px,
236
- 15px 15px,
237
- 75px 75px,
238
- 75px 75px;
239
- }
240
- g{
241
- font-size: 16px;
242
- }
243
- g text{
244
- dominant-baseline: middle;
245
- }
246
- .selected{
247
- fill: #fff;
248
- stroke: #f00;
249
- stroke-width: 2;
250
- }
251
- .task-tache{
252
- fill: #fff;
253
- stroke: #666;
254
- stroke-width: 2;
255
- }
256
-
257
257
  .start{
258
258
  stroke-width: 0;
259
259
  fill:#fff;
@@ -264,6 +264,11 @@ g text{
264
264
  fill:#fff;
265
265
  }
266
266
 
267
+ .end{
268
+ stroke-width: 0;
269
+ fill:#fff;
270
+ }
271
+
267
272
  .decision{
268
273
  stroke-width: 0;
269
274
  fill:#fff;
@@ -274,6 +279,11 @@ g text{
274
279
  fill:#fff;
275
280
  }
276
281
 
282
+ .human-decision{
283
+ stroke-width: 0;
284
+ fill:#fff;
285
+ }
286
+
277
287
  .transition[data-v-a1576cad] {
278
288
  stroke-width: 2;
279
289
  stroke: #666;
@@ -292,16 +302,6 @@ g text{
292
302
  .no-events[data-v-a1576cad] {
293
303
  pointer-events: none;
294
304
  }
295
-
296
- .human-decision{
297
- stroke-width: 0;
298
- fill:#fff;
299
- }
300
-
301
- .end{
302
- stroke-width: 0;
303
- fill:#fff;
304
- }
305
305
  .tooltip[data-v-ac799913] {
306
306
  position: absolute;
307
307
  background: #fff;
@@ -316,17 +316,7 @@ g text{
316
316
  font-size: 14px;
317
317
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
318
318
  word-break: break-all;
319
- }#_subprocess-content[data-v-2b195c05] {
320
- width: 100%;
321
- height: calc(100vh - 200px);
322
319
  }
323
- .virtual-transition{
324
- stroke-width: 2;
325
- stroke:#000;
326
- stroke-dasharray: 2 2;
327
- fill: none;
328
- }
329
-
330
320
  .selection-region{
331
321
  stroke: blue;
332
322
  stroke-width: 1;
@@ -340,7 +330,17 @@ g text{
340
330
  /* 控制region在画的过程中不响应任何事件,只有画完后才能响应 */
341
331
  pointer-events:none;
342
332
  }
343
-
333
+
334
+ .virtual-transition{
335
+ stroke-width: 2;
336
+ stroke:#000;
337
+ stroke-dasharray: 2 2;
338
+ fill: none;
339
+ }
340
+ #_subprocess-content[data-v-2b195c05] {
341
+ width: 100%;
342
+ height: calc(100vh - 200px);
343
+ }
344
344
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
345
345
  .properties-editor[data-v-1651d82a] .el-dialog__body {
346
346
  padding-top: 0;
@@ -352,12 +352,12 @@ g text{
352
352
  }
353
353
 
354
354
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
355
- .properties-editor[data-v-af76d417] .el-dialog__body{
355
+ .properties-editor[data-v-adb7c2ff] .el-dialog__body{
356
356
  padding-top: 0
357
357
  }
358
358
 
359
359
  /* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
360
- .properties-editor[data-v-adb7c2ff] .el-dialog__body{
360
+ .properties-editor[data-v-af76d417] .el-dialog__body{
361
361
  padding-top: 0
362
362
  }
363
363
 
@@ -402,16 +402,6 @@ g text{
402
402
  .control-line[data-v-788fb0ae] {
403
403
  stroke-dasharray: 2 2
404
404
  }
405
-
406
- .percent[data-v-a219b06d] {
407
- margin-left: 10px;
408
- color: red;
409
- font-size: 1.2em;
410
- }
411
-
412
- .el-checkbox[data-v-c019538f]{
413
- margin-left: 20px;
414
- }
415
405
  ul[data-v-39fac73c] {
416
406
  margin: 0;
417
407
  padding: 0;
@@ -422,10 +412,18 @@ ul li[data-v-39fac73c] {
422
412
  .sub-li[data-v-39fac73c] {
423
413
  padding-left: 10px;
424
414
  }
425
- .percent[data-v-6aef99ff]{
415
+ .percent[data-v-a219b06d] {
426
416
  margin-left: 10px;
427
- color:red;
428
- font-size:1.2em;
417
+ color: red;
418
+ font-size: 1.2em;
419
+ }
420
+
421
+ .el-checkbox[data-v-c019538f]{
422
+ margin-left: 20px;
423
+ }
424
+
425
+ .el-checkbox[data-v-5fb29fef]{
426
+ margin-left: 20px;
429
427
  }
430
428
 
431
429
  .percent[data-v-c1c7385b]{
@@ -434,24 +432,10 @@ ul li[data-v-39fac73c] {
434
432
  font-size:1.2em;
435
433
  }
436
434
 
437
- .el-checkbox[data-v-5fb29fef]{
438
- margin-left: 20px;
435
+ span[data-v-4e29ea06] {
436
+ margin: 0 10px;
439
437
  }
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
- }
438
+
455
439
  .el-tag + .el-tag[data-v-aaf48aff] {
456
440
  margin-left: 10px;
457
441
  }
@@ -473,28 +457,25 @@ select[data-v-aaf48aff]{
473
457
  height: 32px;
474
458
  line-height: 32px;
475
459
  }
476
-
477
- span[data-v-4e29ea06] {
478
- margin: 0 10px;
479
- }
480
-
481
- #custTabOne[data-v-7feaa2da] .el-tabs__content {
482
- height: 500px;
483
- }
484
- .group[data-v-7feaa2da] {
485
- font-size: 14px;
460
+ .group[data-v-98300543] {
461
+ font-size: 14px;
486
462
  width: 100%;
487
463
  }
488
- .item[data-v-7feaa2da] {
489
- float: left;
490
- list-style-type: none;
491
- width: 33.33%;
464
+ .item[data-v-98300543] {
465
+ float: left;
466
+ list-style-type: none;
467
+ width: 33.33%;
492
468
  margin-bottom: 18px;
493
469
  }
494
- .item-content[data-v-7feaa2da] {
495
- height: calc(100vh - 300px);
496
- padding-left: 20px;
470
+ .item-content[data-v-98300543] {
471
+ height: calc(100vh - 300px);
472
+ padding-left: 20px;
497
473
  overflow: auto;
474
+ }
475
+ .percent[data-v-6aef99ff]{
476
+ margin-left: 10px;
477
+ color:red;
478
+ font-size:1.2em;
498
479
  }
499
480
 
500
481
  .searchResult {
@@ -517,6 +498,25 @@ span[data-v-4e29ea06] {
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/workflow-history.vue.cjs");
3
- o.install = function(e2) {
4
- e2.component(o.name, o), e2.component(r.name, r);
2
+ const o = require("./src/workflow-editor.vue.cjs"), r = require("./src/store/workflow-editor.cjs"), e = require("./src/workflow-history.vue.cjs");
3
+ o.install = function(r2) {
4
+ r2.component(o.name, o), r2.component(e.name, e);
5
5
  };
6
- const e = { WorkflowEditor: o, WorkflowHistory: r };
7
- module.exports = e;
6
+ const t = { WorkflowEditor: o, WorkflowHistory: e, wfEditorStore: r };
7
+ module.exports = t;
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-tmp7",
4
+ "version": "0.0.81-up-tmp9",
5
5
  "type": "module",
6
6
  "main": "./lib/index.cjs",
7
7
  "module": "./es/index.mjs",