workflow-editor 0.0.81-up-tmp3 → 0.0.81-up-tmp6
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 +86 -86
- package/es/index.mjs +11 -10
- package/es/style.css +148 -148
- package/es/workflow-editor/index.mjs +5 -6
- package/lib/index.cjs +3 -3
- package/lib/style.css +159 -159
- package/lib/workflow-editor/index.cjs +5 -5
- package/package.json +1 -1
- package/vite.config.js +28 -46
package/dist/index.full.min.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
!function(e, t) {
|
|
2
|
-
"object" == typeof exports && "undefined" != typeof module ? t(exports, require("vuex"), require("agilebuilder-ui"), require("vue-i18n"), require("vue"), require("xml-js"), require("file-saver"), require("prismjs")) : "function" == typeof define && define.amd ? define(["exports", "vuex", "agilebuilder-ui", "vue-i18n", "vue", "xml-js", "file-saver", "prismjs"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).
|
|
2
|
+
"object" == typeof exports && "undefined" != typeof module ? t(exports, require("vuex"), require("agilebuilder-ui"), require("vue-i18n"), require("vue"), require("xml-js"), require("file-saver"), require("prismjs")) : "function" == typeof define && define.amd ? define(["exports", "vuex", "agilebuilder-ui", "vue-i18n", "vue", "xml-js", "file-saver", "prismjs"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).AgilebuilderUi = {}, e.vuex, e.agilebuilderUi, e.vueI18n, e.vue, e.convert, e.FileSaver, e.Prism);
|
|
3
3
|
}(this, function(e, t, o, l, r, n, i, a) {
|
|
4
4
|
"use strict";
|
|
5
5
|
!function(e2) {
|
|
@@ -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
|
@@ -125,57 +125,7 @@ section[data-v-6658e14b] {
|
|
|
125
125
|
}
|
|
126
126
|
.canvas[data-v-6658e14b] .draggable {
|
|
127
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
|
-
}h3[data-v-0d941719] {
|
|
157
|
-
color: #999999;
|
|
158
|
-
margin: 0;
|
|
159
|
-
padding: 0;
|
|
160
|
-
font-weight: bold;
|
|
161
|
-
font-size: 18px;
|
|
162
|
-
}
|
|
163
|
-
.el-button[data-v-0d941719] {
|
|
164
|
-
margin: 6px 0;
|
|
165
|
-
min-width: 110px;
|
|
166
|
-
padding: 9px 15px;
|
|
167
128
|
}
|
|
168
|
-
.el-button i[data-v-0d941719] {
|
|
169
|
-
padding-right: 4px;
|
|
170
|
-
}
|
|
171
|
-
.svg-icon {
|
|
172
|
-
width: 1em;
|
|
173
|
-
height: 1em;
|
|
174
|
-
vertical-align: -0.15em;
|
|
175
|
-
fill: currentColor;
|
|
176
|
-
overflow: hidden;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
129
|
#svg{
|
|
180
130
|
/* border:1px solid red; */
|
|
181
131
|
background: white;
|
|
@@ -205,8 +155,38 @@ g text{
|
|
|
205
155
|
fill: #fff;
|
|
206
156
|
stroke: #666;
|
|
207
157
|
stroke-width: 2;
|
|
158
|
+
}
|
|
159
|
+
.passed-tache .task-tache{
|
|
160
|
+
fill: green;
|
|
161
|
+
stroke: green;
|
|
162
|
+
stroke-width: 2;
|
|
163
|
+
}
|
|
164
|
+
.current-tache .task-tache{
|
|
165
|
+
fill: red;
|
|
166
|
+
stroke: red;
|
|
167
|
+
stroke-width: 2;
|
|
168
|
+
}
|
|
169
|
+
.passed-tache text{
|
|
170
|
+
fill:white;
|
|
171
|
+
}
|
|
172
|
+
.current-tache text{
|
|
173
|
+
fill: white
|
|
208
174
|
}
|
|
209
|
-
|
|
175
|
+
h3[data-v-0d941719] {
|
|
176
|
+
color: #999999;
|
|
177
|
+
margin: 0;
|
|
178
|
+
padding: 0;
|
|
179
|
+
font-weight: bold;
|
|
180
|
+
font-size: 18px;
|
|
181
|
+
}
|
|
182
|
+
.el-button[data-v-0d941719] {
|
|
183
|
+
margin: 6px 0;
|
|
184
|
+
min-width: 110px;
|
|
185
|
+
padding: 9px 15px;
|
|
186
|
+
}
|
|
187
|
+
.el-button i[data-v-0d941719] {
|
|
188
|
+
padding-right: 4px;
|
|
189
|
+
}
|
|
210
190
|
#svg{
|
|
211
191
|
/* border:1px solid red; */
|
|
212
192
|
background: white;
|
|
@@ -236,25 +216,50 @@ g text{
|
|
|
236
216
|
fill: #fff;
|
|
237
217
|
stroke: #666;
|
|
238
218
|
stroke-width: 2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.svg-icon {
|
|
222
|
+
width: 1em;
|
|
223
|
+
height: 1em;
|
|
224
|
+
vertical-align: -0.15em;
|
|
225
|
+
fill: currentColor;
|
|
226
|
+
overflow: hidden;
|
|
227
|
+
}
|
|
228
|
+
li[data-v-7e8a1cf6] {
|
|
229
|
+
color: #333;
|
|
239
230
|
}
|
|
240
|
-
.
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
231
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
232
|
+
position: fixed;
|
|
233
|
+
background: #fff;
|
|
234
|
+
z-index: 999;
|
|
235
|
+
padding: 5px;
|
|
236
|
+
margin: 0;
|
|
244
237
|
}
|
|
245
|
-
.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
238
|
+
.context-menu li[data-v-7e8a1cf6] {
|
|
239
|
+
min-width: 75px;
|
|
240
|
+
height: 28px;
|
|
241
|
+
line-height: 28px;
|
|
242
|
+
text-align: left;
|
|
243
|
+
color: #1a1a1a;
|
|
249
244
|
}
|
|
250
|
-
.
|
|
251
|
-
|
|
245
|
+
.context-menu li[data-v-7e8a1cf6]:hover {
|
|
246
|
+
background: #42b983;
|
|
247
|
+
color: #fff;
|
|
252
248
|
}
|
|
253
|
-
.
|
|
254
|
-
|
|
249
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
250
|
+
border: 1px solid #eee;
|
|
251
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
252
|
+
border-radius: 5px;
|
|
253
|
+
}
|
|
254
|
+
li[data-v-7e8a1cf6] {
|
|
255
|
+
list-style-type: none;
|
|
256
|
+
}
|
|
257
|
+
.start{
|
|
258
|
+
stroke-width: 0;
|
|
259
|
+
fill:#fff;
|
|
255
260
|
}
|
|
256
261
|
|
|
257
|
-
.
|
|
262
|
+
.end{
|
|
258
263
|
stroke-width: 0;
|
|
259
264
|
fill:#fff;
|
|
260
265
|
}
|
|
@@ -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
|
}
|
|
@@ -273,6 +278,28 @@ g text{
|
|
|
273
278
|
stroke-width: 0;
|
|
274
279
|
fill:#fff;
|
|
275
280
|
}
|
|
281
|
+
.tooltip[data-v-ac799913] {
|
|
282
|
+
position: absolute;
|
|
283
|
+
background: #fff;
|
|
284
|
+
min-width: 150px;
|
|
285
|
+
border-radius: 4px;
|
|
286
|
+
border: 1px solid #ebeef5;
|
|
287
|
+
padding: 12px;
|
|
288
|
+
z-index: 2000;
|
|
289
|
+
color: #606266;
|
|
290
|
+
line-height: 1.4;
|
|
291
|
+
text-align: justify;
|
|
292
|
+
font-size: 14px;
|
|
293
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
294
|
+
word-break: break-all;
|
|
295
|
+
}#_subprocess-content[data-v-2b195c05] {
|
|
296
|
+
width: 100%;
|
|
297
|
+
height: calc(100vh - 200px);
|
|
298
|
+
}
|
|
299
|
+
.human-decision{
|
|
300
|
+
stroke-width: 0;
|
|
301
|
+
fill:#fff;
|
|
302
|
+
}
|
|
276
303
|
|
|
277
304
|
.transition[data-v-a1576cad] {
|
|
278
305
|
stroke-width: 2;
|
|
@@ -292,10 +319,17 @@ g text{
|
|
|
292
319
|
.no-events[data-v-a1576cad] {
|
|
293
320
|
pointer-events: none;
|
|
294
321
|
}
|
|
322
|
+
|
|
323
|
+
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
324
|
+
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
325
|
+
padding-top: 0;
|
|
326
|
+
}
|
|
295
327
|
|
|
296
|
-
.
|
|
297
|
-
stroke-width:
|
|
298
|
-
|
|
328
|
+
.virtual-transition{
|
|
329
|
+
stroke-width: 2;
|
|
330
|
+
stroke:#000;
|
|
331
|
+
stroke-dasharray: 2 2;
|
|
332
|
+
fill: none;
|
|
299
333
|
}
|
|
300
334
|
|
|
301
335
|
.selection-region{
|
|
@@ -311,28 +345,11 @@ g text{
|
|
|
311
345
|
/* 控制region在画的过程中不响应任何事件,只有画完后才能响应 */
|
|
312
346
|
pointer-events:none;
|
|
313
347
|
}
|
|
314
|
-
|
|
315
|
-
.decision{
|
|
316
|
-
stroke-width: 0;
|
|
317
|
-
fill:#fff;
|
|
318
|
-
}
|
|
319
348
|
|
|
320
349
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
321
350
|
.properties-editor[data-v-0e44fe8c] .el-dialog__body{
|
|
322
351
|
padding-top: 0
|
|
323
352
|
}
|
|
324
|
-
|
|
325
|
-
.virtual-transition{
|
|
326
|
-
stroke-width: 2;
|
|
327
|
-
stroke:#000;
|
|
328
|
-
stroke-dasharray: 2 2;
|
|
329
|
-
fill: none;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
333
|
-
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
334
|
-
padding-top: 0;
|
|
335
|
-
}
|
|
336
353
|
|
|
337
354
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
338
355
|
.properties-editor[data-v-af76d417] .el-dialog__body{
|
|
@@ -348,24 +365,7 @@ g text{
|
|
|
348
365
|
.properties-editor[data-v-adb7c2ff] .el-dialog__body{
|
|
349
366
|
padding-top: 0
|
|
350
367
|
}
|
|
351
|
-
|
|
352
|
-
position: absolute;
|
|
353
|
-
background: #fff;
|
|
354
|
-
min-width: 150px;
|
|
355
|
-
border-radius: 4px;
|
|
356
|
-
border: 1px solid #ebeef5;
|
|
357
|
-
padding: 12px;
|
|
358
|
-
z-index: 2000;
|
|
359
|
-
color: #606266;
|
|
360
|
-
line-height: 1.4;
|
|
361
|
-
text-align: justify;
|
|
362
|
-
font-size: 14px;
|
|
363
|
-
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
364
|
-
word-break: break-all;
|
|
365
|
-
}#_subprocess-content[data-v-2b195c05] {
|
|
366
|
-
width: 100%;
|
|
367
|
-
height: calc(100vh - 200px);
|
|
368
|
-
}
|
|
368
|
+
|
|
369
369
|
.joint-container{
|
|
370
370
|
stroke-width: 0;
|
|
371
371
|
fill: #fff;
|
|
@@ -381,27 +381,29 @@ g text{
|
|
|
381
381
|
fill-opacity: 1;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
.control-line[data-v-788fb0ae] {
|
|
389
|
-
stroke-dasharray: 2 2
|
|
384
|
+
.resizer{
|
|
385
|
+
stroke: blue;
|
|
386
|
+
stroke-width: 1;
|
|
387
|
+
fill: white;
|
|
390
388
|
}
|
|
391
389
|
|
|
392
|
-
.
|
|
390
|
+
.el-checkbox[data-v-c019538f]{
|
|
391
|
+
margin-left: 20px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.percent[data-v-a219b06d] {
|
|
395
|
+
margin-left: 10px;
|
|
396
|
+
color: red;
|
|
397
|
+
font-size: 1.2em;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.control-point[data-v-788fb0ae]{
|
|
393
401
|
fill: #fff;
|
|
394
402
|
cursor: move;
|
|
395
403
|
}
|
|
396
|
-
.control-line[data-v-
|
|
404
|
+
.control-line[data-v-788fb0ae] {
|
|
397
405
|
stroke-dasharray: 2 2
|
|
398
406
|
}
|
|
399
|
-
|
|
400
|
-
.resizer{
|
|
401
|
-
stroke: blue;
|
|
402
|
-
stroke-width: 1;
|
|
403
|
-
fill: white;
|
|
404
|
-
}
|
|
405
407
|
ul[data-v-39fac73c] {
|
|
406
408
|
margin: 0;
|
|
407
409
|
padding: 0;
|
|
@@ -412,14 +414,12 @@ ul li[data-v-39fac73c] {
|
|
|
412
414
|
.sub-li[data-v-39fac73c] {
|
|
413
415
|
padding-left: 10px;
|
|
414
416
|
}
|
|
415
|
-
.
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
.el-checkbox[data-v-c019538f]{
|
|
422
|
-
margin-left: 20px;
|
|
417
|
+
.control-point[data-v-0ff53a0a]{
|
|
418
|
+
fill: #fff;
|
|
419
|
+
cursor: move;
|
|
420
|
+
}
|
|
421
|
+
.control-line[data-v-0ff53a0a] {
|
|
422
|
+
stroke-dasharray: 2 2
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.el-checkbox[data-v-5fb29fef]{
|
|
@@ -452,10 +452,6 @@ ul li[data-v-39fac73c] {
|
|
|
452
452
|
padding-left: 20px;
|
|
453
453
|
overflow: auto;
|
|
454
454
|
}
|
|
455
|
-
span[data-v-4e29ea06] {
|
|
456
|
-
margin: 0 10px;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
455
|
.el-tag + .el-tag[data-v-aaf48aff] {
|
|
460
456
|
margin-left: 10px;
|
|
461
457
|
}
|
|
@@ -478,26 +474,10 @@ select[data-v-aaf48aff]{
|
|
|
478
474
|
line-height: 32px;
|
|
479
475
|
}
|
|
480
476
|
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
}
|
|
484
|
-
.inline-input-custom {
|
|
485
|
-
width : 90%
|
|
477
|
+
span[data-v-4e29ea06] {
|
|
478
|
+
margin: 0 10px;
|
|
486
479
|
}
|
|
487
|
-
|
|
488
|
-
display: block;
|
|
489
|
-
}
|
|
490
|
-
#appContainer[data-v-9458f3bf] .el-transfer-panel {
|
|
491
|
-
width: 400px;
|
|
492
|
-
}
|
|
493
|
-
#appContainer[data-v-9458f3bf] .ellipsis {
|
|
494
|
-
display: inline-block;
|
|
495
|
-
overflow: hidden;
|
|
496
|
-
text-overflow: ellipsis;
|
|
497
|
-
white-space: nowrap;
|
|
498
|
-
word-break: keep-all;
|
|
499
|
-
width: 55%;
|
|
500
|
-
}
|
|
480
|
+
|
|
501
481
|
.searchResult {
|
|
502
482
|
color:red
|
|
503
483
|
}
|
|
@@ -523,3 +503,23 @@ select[data-v-aaf48aff]{
|
|
|
523
503
|
padding-left: 20px;
|
|
524
504
|
overflow: auto;
|
|
525
505
|
}
|
|
506
|
+
#appContainer[data-v-9458f3bf] .el-checkbox {
|
|
507
|
+
display: block;
|
|
508
|
+
}
|
|
509
|
+
#appContainer[data-v-9458f3bf] .el-transfer-panel {
|
|
510
|
+
width: 400px;
|
|
511
|
+
}
|
|
512
|
+
#appContainer[data-v-9458f3bf] .ellipsis {
|
|
513
|
+
display: inline-block;
|
|
514
|
+
overflow: hidden;
|
|
515
|
+
text-overflow: ellipsis;
|
|
516
|
+
white-space: nowrap;
|
|
517
|
+
word-break: keep-all;
|
|
518
|
+
width: 55%;
|
|
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
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
@charset "UTF-8"
|
|
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
|
-
}
|
|
1
|
+
@charset "UTF-8";
|
|
27
2
|
.button-area[data-v-865cb4ee] {
|
|
28
3
|
padding: 5px 0 5px 5px;
|
|
29
4
|
height: 50px;
|
|
@@ -125,56 +100,31 @@ pre[data-v-865cb4ee] {
|
|
|
125
100
|
/* 去掉卡片和tab表头的距离 */
|
|
126
101
|
[data-v-865cb4ee] .el-tabs__header {
|
|
127
102
|
margin: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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;
|
|
103
|
+
}.main[data-v-6658e14b] {
|
|
104
|
+
position: relative;
|
|
105
|
+
display: flex;
|
|
106
|
+
height: 100%;
|
|
107
|
+
width: 100%;
|
|
153
108
|
}
|
|
154
|
-
|
|
155
|
-
|
|
109
|
+
.canvas-container[data-v-6658e14b] {
|
|
110
|
+
position: relative;
|
|
111
|
+
height: 100%;
|
|
112
|
+
width: 100%;
|
|
156
113
|
}
|
|
157
|
-
|
|
158
|
-
width: 1em;
|
|
159
|
-
height: 1em;
|
|
160
|
-
vertical-align: -0.15em;
|
|
161
|
-
fill: currentColor;
|
|
114
|
+
section[data-v-6658e14b] {
|
|
162
115
|
overflow: hidden;
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
color: #999999;
|
|
166
|
-
margin: 0;
|
|
116
|
+
width: 100%;
|
|
117
|
+
height: 100%;
|
|
167
118
|
padding: 0;
|
|
168
|
-
font-weight: bold;
|
|
169
|
-
font-size: 18px;
|
|
170
119
|
}
|
|
171
|
-
.
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
padding:
|
|
120
|
+
.canvas[data-v-6658e14b] {
|
|
121
|
+
overflow: auto;
|
|
122
|
+
height: 100%;
|
|
123
|
+
padding: 0;
|
|
124
|
+
min-height: 500px;
|
|
175
125
|
}
|
|
176
|
-
.
|
|
177
|
-
|
|
126
|
+
.canvas[data-v-6658e14b] .draggable {
|
|
127
|
+
cursor: default;
|
|
178
128
|
}
|
|
179
129
|
#svg{
|
|
180
130
|
/* border:1px solid red; */
|
|
@@ -205,13 +155,38 @@ g text{
|
|
|
205
155
|
fill: #fff;
|
|
206
156
|
stroke: #666;
|
|
207
157
|
stroke-width: 2;
|
|
158
|
+
}
|
|
159
|
+
.passed-tache .task-tache{
|
|
160
|
+
fill: green;
|
|
161
|
+
stroke: green;
|
|
162
|
+
stroke-width: 2;
|
|
163
|
+
}
|
|
164
|
+
.current-tache .task-tache{
|
|
165
|
+
fill: red;
|
|
166
|
+
stroke: red;
|
|
167
|
+
stroke-width: 2;
|
|
168
|
+
}
|
|
169
|
+
.passed-tache text{
|
|
170
|
+
fill:white;
|
|
171
|
+
}
|
|
172
|
+
.current-tache text{
|
|
173
|
+
fill: white
|
|
208
174
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
175
|
+
h3[data-v-0d941719] {
|
|
176
|
+
color: #999999;
|
|
177
|
+
margin: 0;
|
|
178
|
+
padding: 0;
|
|
179
|
+
font-weight: bold;
|
|
180
|
+
font-size: 18px;
|
|
181
|
+
}
|
|
182
|
+
.el-button[data-v-0d941719] {
|
|
183
|
+
margin: 6px 0;
|
|
184
|
+
min-width: 110px;
|
|
185
|
+
padding: 9px 15px;
|
|
186
|
+
}
|
|
187
|
+
.el-button i[data-v-0d941719] {
|
|
188
|
+
padding-right: 4px;
|
|
189
|
+
}
|
|
215
190
|
#svg{
|
|
216
191
|
/* border:1px solid red; */
|
|
217
192
|
background: white;
|
|
@@ -241,22 +216,52 @@ g text{
|
|
|
241
216
|
fill: #fff;
|
|
242
217
|
stroke: #666;
|
|
243
218
|
stroke-width: 2;
|
|
219
|
+
}
|
|
220
|
+
li[data-v-7e8a1cf6] {
|
|
221
|
+
color: #333;
|
|
244
222
|
}
|
|
245
|
-
.
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
223
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
224
|
+
position: fixed;
|
|
225
|
+
background: #fff;
|
|
226
|
+
z-index: 999;
|
|
227
|
+
padding: 5px;
|
|
228
|
+
margin: 0;
|
|
249
229
|
}
|
|
250
|
-
.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
230
|
+
.context-menu li[data-v-7e8a1cf6] {
|
|
231
|
+
min-width: 75px;
|
|
232
|
+
height: 28px;
|
|
233
|
+
line-height: 28px;
|
|
234
|
+
text-align: left;
|
|
235
|
+
color: #1a1a1a;
|
|
254
236
|
}
|
|
255
|
-
.
|
|
256
|
-
|
|
237
|
+
.context-menu li[data-v-7e8a1cf6]:hover {
|
|
238
|
+
background: #42b983;
|
|
239
|
+
color: #fff;
|
|
257
240
|
}
|
|
258
|
-
.
|
|
259
|
-
|
|
241
|
+
.context-menu[data-v-7e8a1cf6] {
|
|
242
|
+
border: 1px solid #eee;
|
|
243
|
+
box-shadow: 0 0.5em 1em 0 rgba(0, 0, 0, 0.1);
|
|
244
|
+
border-radius: 5px;
|
|
245
|
+
}
|
|
246
|
+
li[data-v-7e8a1cf6] {
|
|
247
|
+
list-style-type: none;
|
|
248
|
+
}
|
|
249
|
+
.svg-icon {
|
|
250
|
+
width: 1em;
|
|
251
|
+
height: 1em;
|
|
252
|
+
vertical-align: -0.15em;
|
|
253
|
+
fill: currentColor;
|
|
254
|
+
overflow: hidden;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.start{
|
|
258
|
+
stroke-width: 0;
|
|
259
|
+
fill:#fff;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.decision{
|
|
263
|
+
stroke-width: 0;
|
|
264
|
+
fill:#fff;
|
|
260
265
|
}
|
|
261
266
|
|
|
262
267
|
.decision{
|
|
@@ -269,11 +274,33 @@ g text{
|
|
|
269
274
|
fill:#fff;
|
|
270
275
|
}
|
|
271
276
|
|
|
272
|
-
.decision{
|
|
277
|
+
.human-decision{
|
|
273
278
|
stroke-width: 0;
|
|
274
279
|
fill:#fff;
|
|
275
280
|
}
|
|
276
281
|
|
|
282
|
+
.decision{
|
|
283
|
+
stroke-width: 0;
|
|
284
|
+
fill:#fff;
|
|
285
|
+
}
|
|
286
|
+
.tooltip[data-v-ac799913] {
|
|
287
|
+
position: absolute;
|
|
288
|
+
background: #fff;
|
|
289
|
+
min-width: 150px;
|
|
290
|
+
border-radius: 4px;
|
|
291
|
+
border: 1px solid #ebeef5;
|
|
292
|
+
padding: 12px;
|
|
293
|
+
z-index: 2000;
|
|
294
|
+
color: #606266;
|
|
295
|
+
line-height: 1.4;
|
|
296
|
+
text-align: justify;
|
|
297
|
+
font-size: 14px;
|
|
298
|
+
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
299
|
+
word-break: break-all;
|
|
300
|
+
}#_subprocess-content[data-v-2b195c05] {
|
|
301
|
+
width: 100%;
|
|
302
|
+
height: calc(100vh - 200px);
|
|
303
|
+
}
|
|
277
304
|
.transition[data-v-a1576cad] {
|
|
278
305
|
stroke-width: 2;
|
|
279
306
|
stroke: #666;
|
|
@@ -293,14 +320,11 @@ g text{
|
|
|
293
320
|
pointer-events: none;
|
|
294
321
|
}
|
|
295
322
|
|
|
296
|
-
.
|
|
297
|
-
stroke-width:
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
.decision{
|
|
302
|
-
stroke-width: 0;
|
|
303
|
-
fill:#fff;
|
|
323
|
+
.virtual-transition{
|
|
324
|
+
stroke-width: 2;
|
|
325
|
+
stroke:#000;
|
|
326
|
+
stroke-dasharray: 2 2;
|
|
327
|
+
fill: none;
|
|
304
328
|
}
|
|
305
329
|
|
|
306
330
|
.selection-region{
|
|
@@ -318,20 +342,13 @@ g text{
|
|
|
318
342
|
}
|
|
319
343
|
|
|
320
344
|
/* 使用深度作用选择器(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;
|
|
345
|
+
.properties-editor[data-v-1651d82a] .el-dialog__body {
|
|
346
|
+
padding-top: 0;
|
|
330
347
|
}
|
|
331
348
|
|
|
332
349
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
333
|
-
.properties-editor[data-v-
|
|
334
|
-
padding-top: 0
|
|
350
|
+
.properties-editor[data-v-0e44fe8c] .el-dialog__body{
|
|
351
|
+
padding-top: 0
|
|
335
352
|
}
|
|
336
353
|
|
|
337
354
|
/* 使用深度作用选择器(vue-loader的功能)">>>"符号重新定义了.el-dialog__body,不影响其他页面的同名样式*/
|
|
@@ -348,24 +365,7 @@ g text{
|
|
|
348
365
|
.properties-editor[data-v-adb7c2ff] .el-dialog__body{
|
|
349
366
|
padding-top: 0
|
|
350
367
|
}
|
|
351
|
-
|
|
352
|
-
position: absolute;
|
|
353
|
-
background: #fff;
|
|
354
|
-
min-width: 150px;
|
|
355
|
-
border-radius: 4px;
|
|
356
|
-
border: 1px solid #ebeef5;
|
|
357
|
-
padding: 12px;
|
|
358
|
-
z-index: 2000;
|
|
359
|
-
color: #606266;
|
|
360
|
-
line-height: 1.4;
|
|
361
|
-
text-align: justify;
|
|
362
|
-
font-size: 14px;
|
|
363
|
-
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
|
364
|
-
word-break: break-all;
|
|
365
|
-
}#_subprocess-content[data-v-2b195c05] {
|
|
366
|
-
width: 100%;
|
|
367
|
-
height: calc(100vh - 200px);
|
|
368
|
-
}
|
|
368
|
+
|
|
369
369
|
.joint-container{
|
|
370
370
|
stroke-width: 0;
|
|
371
371
|
fill: #fff;
|
|
@@ -381,27 +381,29 @@ g text{
|
|
|
381
381
|
fill-opacity: 1;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
-
.
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
.control-line[data-v-788fb0ae] {
|
|
389
|
-
stroke-dasharray: 2 2
|
|
384
|
+
.resizer{
|
|
385
|
+
stroke: blue;
|
|
386
|
+
stroke-width: 1;
|
|
387
|
+
fill: white;
|
|
390
388
|
}
|
|
391
389
|
|
|
392
|
-
.
|
|
390
|
+
.el-checkbox[data-v-c019538f]{
|
|
391
|
+
margin-left: 20px;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.percent[data-v-a219b06d] {
|
|
395
|
+
margin-left: 10px;
|
|
396
|
+
color: red;
|
|
397
|
+
font-size: 1.2em;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.control-point[data-v-788fb0ae]{
|
|
393
401
|
fill: #fff;
|
|
394
402
|
cursor: move;
|
|
395
403
|
}
|
|
396
|
-
.control-line[data-v-
|
|
404
|
+
.control-line[data-v-788fb0ae] {
|
|
397
405
|
stroke-dasharray: 2 2
|
|
398
406
|
}
|
|
399
|
-
|
|
400
|
-
.resizer{
|
|
401
|
-
stroke: blue;
|
|
402
|
-
stroke-width: 1;
|
|
403
|
-
fill: white;
|
|
404
|
-
}
|
|
405
407
|
ul[data-v-39fac73c] {
|
|
406
408
|
margin: 0;
|
|
407
409
|
padding: 0;
|
|
@@ -412,14 +414,12 @@ ul li[data-v-39fac73c] {
|
|
|
412
414
|
.sub-li[data-v-39fac73c] {
|
|
413
415
|
padding-left: 10px;
|
|
414
416
|
}
|
|
415
|
-
.
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
.el-checkbox[data-v-c019538f]{
|
|
422
|
-
margin-left: 20px;
|
|
417
|
+
.control-point[data-v-0ff53a0a]{
|
|
418
|
+
fill: #fff;
|
|
419
|
+
cursor: move;
|
|
420
|
+
}
|
|
421
|
+
.control-line[data-v-0ff53a0a] {
|
|
422
|
+
stroke-dasharray: 2 2
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.el-checkbox[data-v-5fb29fef]{
|
|
@@ -452,10 +452,6 @@ ul li[data-v-39fac73c] {
|
|
|
452
452
|
padding-left: 20px;
|
|
453
453
|
overflow: auto;
|
|
454
454
|
}
|
|
455
|
-
span[data-v-4e29ea06] {
|
|
456
|
-
margin: 0 10px;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
455
|
.el-tag + .el-tag[data-v-aaf48aff] {
|
|
460
456
|
margin-left: 10px;
|
|
461
457
|
}
|
|
@@ -478,6 +474,17 @@ select[data-v-aaf48aff]{
|
|
|
478
474
|
line-height: 32px;
|
|
479
475
|
}
|
|
480
476
|
|
|
477
|
+
span[data-v-4e29ea06] {
|
|
478
|
+
margin: 0 10px;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.searchResult {
|
|
482
|
+
color:red
|
|
483
|
+
}
|
|
484
|
+
.inline-input-custom {
|
|
485
|
+
width : 90%
|
|
486
|
+
}
|
|
487
|
+
|
|
481
488
|
#custTabOne[data-v-7feaa2da] .el-tabs__content {
|
|
482
489
|
height: 500px;
|
|
483
490
|
}
|
|
@@ -496,13 +503,6 @@ select[data-v-aaf48aff]{
|
|
|
496
503
|
padding-left: 20px;
|
|
497
504
|
overflow: auto;
|
|
498
505
|
}
|
|
499
|
-
|
|
500
|
-
.searchResult {
|
|
501
|
-
color:red
|
|
502
|
-
}
|
|
503
|
-
.inline-input-custom {
|
|
504
|
-
width : 90%
|
|
505
|
-
}
|
|
506
506
|
#appContainer[data-v-9458f3bf] .el-checkbox {
|
|
507
507
|
display: block;
|
|
508
508
|
}
|
|
@@ -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;
|
package/package.json
CHANGED
package/vite.config.js
CHANGED
|
@@ -17,21 +17,8 @@ const devDependencies = Object.keys(packageJson.devDependencies)
|
|
|
17
17
|
|
|
18
18
|
const arr = [...dependencies, ...devDependencies]
|
|
19
19
|
|
|
20
|
-
//https://vitejs.dev/config/
|
|
20
|
+
// https://vitejs.dev/config/
|
|
21
21
|
export default defineConfig(({ mode }) => ({
|
|
22
|
-
plugins: [
|
|
23
|
-
vue(),
|
|
24
|
-
vueJsx(),
|
|
25
|
-
terser({
|
|
26
|
-
compress: {
|
|
27
|
-
drop_debugger: ['production'].includes(mode),
|
|
28
|
-
pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
29
|
-
},
|
|
30
|
-
output: {
|
|
31
|
-
// 对于console.error,不做任何处理
|
|
32
|
-
comments: (node, comment) => comment.type === 'error'
|
|
33
|
-
}
|
|
34
|
-
})],
|
|
35
22
|
build: {
|
|
36
23
|
target: 'modules',
|
|
37
24
|
// //打包文件目录
|
|
@@ -40,20 +27,10 @@ export default defineConfig(({ mode }) => ({
|
|
|
40
27
|
minify: false,
|
|
41
28
|
//css分离
|
|
42
29
|
cssCodeSplit: false,
|
|
43
|
-
outDir: 'lib',
|
|
44
|
-
// 开启vite打包的库模式
|
|
45
|
-
lib: {
|
|
46
|
-
entry: './packages/index.js'
|
|
47
|
-
},
|
|
48
|
-
// outDir: "lib",//输出文件名称
|
|
49
|
-
// lib: {
|
|
50
|
-
// entry: path.resolve(__dirname, "./packages/index.js"),//指定组件编译入口文件
|
|
51
|
-
// name: "workflow-editor",//打包js名称
|
|
52
|
-
// fileName: "workflow-editor",
|
|
53
|
-
// },//库编译模式配置
|
|
54
30
|
rollupOptions: {
|
|
55
|
-
|
|
56
|
-
|
|
31
|
+
//忽略打包vue文件
|
|
32
|
+
// external: ['vue', 'jsx', 'tsx'],
|
|
33
|
+
external: (id) => {
|
|
57
34
|
for (let i = 0; i < arr.length; i++) {
|
|
58
35
|
if (id.startsWith(arr[i])) {
|
|
59
36
|
// console.log('id===', id)
|
|
@@ -62,11 +39,10 @@ export default defineConfig(({ mode }) => ({
|
|
|
62
39
|
}
|
|
63
40
|
},
|
|
64
41
|
input: ['./packages/index.js'],
|
|
65
|
-
output:
|
|
66
|
-
[
|
|
42
|
+
output:[
|
|
67
43
|
{
|
|
68
44
|
format: 'umd',
|
|
69
|
-
name: '
|
|
45
|
+
name: 'AgilebuilderUi',
|
|
70
46
|
//不用打包成.es.js,这里我们想把它打包成.js
|
|
71
47
|
entryFileNames: 'index.full.min.js',
|
|
72
48
|
//让打包目录和源码目录对应,如果为false就会只生成一个js文件包含所有内容
|
|
@@ -96,26 +72,32 @@ export default defineConfig(({ mode }) => ({
|
|
|
96
72
|
preserveModulesRoot: 'packages'
|
|
97
73
|
}
|
|
98
74
|
]
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
// assetFileNames: (assetInfo) => {
|
|
106
|
-
// if (assetInfo.name == 'style.css')
|
|
107
|
-
// return 'workflow-editor.css';//打包的css名称
|
|
108
|
-
// return assetInfo.name;
|
|
109
|
-
// },
|
|
110
|
-
// },
|
|
111
|
-
},//rollup打包配置
|
|
75
|
+
},
|
|
76
|
+
outDir: 'lib',
|
|
77
|
+
// 开启vite打包的库模式
|
|
78
|
+
lib: {
|
|
79
|
+
entry: './packages/index.js'
|
|
80
|
+
}
|
|
112
81
|
},
|
|
113
|
-
|
|
82
|
+
plugins: [
|
|
83
|
+
vue(),
|
|
84
|
+
vueJsx(),
|
|
85
|
+
terser({
|
|
86
|
+
compress: {
|
|
87
|
+
drop_debugger: ['production'].includes(mode),
|
|
88
|
+
pure_funcs: ['production'].includes(mode) ? ['console.log', 'console.info', 'console.warn', 'console.debug'] : [],
|
|
89
|
+
},
|
|
90
|
+
output: {
|
|
91
|
+
// 对于console.error,不做任何处理
|
|
92
|
+
comments: (node, comment) => comment.type === 'error'
|
|
93
|
+
}
|
|
94
|
+
})
|
|
95
|
+
],
|
|
114
96
|
resolve: {
|
|
115
|
-
//忽略后缀名的配置选项,添加.vue选项时要记得原本默认忽略的选项也要手动写入
|
|
116
97
|
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue'],
|
|
117
98
|
alias: {
|
|
118
99
|
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
119
100
|
}
|
|
120
101
|
}
|
|
121
|
-
}));
|
|
102
|
+
}));
|
|
103
|
+
|