service-flow-designer 2.2.14 → 2.2.28

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.
Files changed (77) hide show
  1. package/dist/es/designer/common/components/sql-view/sql-view.vue.d.ts +1 -1
  2. package/dist/es/designer/service-components/base/loop-node/index.js +4 -64
  3. package/dist/es/designer/service-components/components-icons.js +8 -16
  4. package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +1 -1
  5. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +62 -57
  6. package/dist/es/designer/service-components/index.js +37 -30
  7. package/dist/es/designer/service-components/util/common-options.js +3 -4
  8. package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +1 -1
  9. package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +1 -1
  10. package/dist/es/designer/service-flow-view/service-node-config.vue.js +1 -1
  11. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +13 -13
  12. package/dist/es/designer/service-flow-view/view-index.vue.js +1 -1
  13. package/dist/es/designer/service-flow-view/view-index.vue2.js +3 -3
  14. package/dist/es/style.css +45 -97
  15. package/package.json +2 -2
  16. package/dist/es/assets/icon/clean.svg.js +0 -4
  17. package/dist/es/assets/icon/condition.png.js +0 -4
  18. package/dist/es/assets/icon/connect.svg.js +0 -4
  19. package/dist/es/assets/icon/function.png.js +0 -4
  20. package/dist/es/assets/icon/loop.svg.js +0 -4
  21. package/dist/es/assets/icon/notification.svg.js +0 -4
  22. package/dist/es/assets/icon/split-joint.svg.js +0 -4
  23. package/dist/es/assets/icon/statistics.svg.js +0 -4
  24. package/dist/es/designer/common/components/database-select.vue.js +0 -7
  25. package/dist/es/designer/common/components/database-select.vue2.js +0 -42
  26. package/dist/es/designer/service-components/base/custom-function/config.vue.d.ts +0 -18
  27. package/dist/es/designer/service-components/base/custom-function/config.vue.js +0 -7
  28. package/dist/es/designer/service-components/base/custom-function/config.vue2.js +0 -74
  29. package/dist/es/designer/service-components/base/custom-function/index.js +0 -17
  30. package/dist/es/designer/service-components/base/custom-function/index.vue.js +0 -7
  31. package/dist/es/designer/service-components/base/custom-function/index.vue2.js +0 -12
  32. package/dist/es/designer/service-components/base/judge-condition/config.vue.d.ts +0 -40
  33. package/dist/es/designer/service-components/base/judge-condition/config.vue.js +0 -4
  34. package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +0 -78
  35. package/dist/es/designer/service-components/base/judge-condition/index.js +0 -24
  36. package/dist/es/designer/service-components/base/judge-condition/index.vue.js +0 -7
  37. package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +0 -16
  38. package/dist/es/designer/service-components/base/loop-node/config.vue.d.ts +0 -14
  39. package/dist/es/designer/service-components/base/loop-node/config.vue.js +0 -7
  40. package/dist/es/designer/service-components/base/loop-node/config.vue2.js +0 -16
  41. package/dist/es/designer/service-components/base/notification/config.vue.d.ts +0 -18
  42. package/dist/es/designer/service-components/base/notification/config.vue.js +0 -4
  43. package/dist/es/designer/service-components/base/notification/config.vue2.js +0 -54
  44. package/dist/es/designer/service-components/base/notification/index.js +0 -17
  45. package/dist/es/designer/service-components/base/notification/index.vue.js +0 -7
  46. package/dist/es/designer/service-components/base/notification/index.vue2.js +0 -12
  47. package/dist/es/designer/service-components/base/notification/quill-example.vue.d.ts +0 -19
  48. package/dist/es/designer/service-components/base/notification/recipients-select.vue.d.ts +0 -47
  49. package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +0 -7
  50. package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +0 -30
  51. package/dist/es/designer/service-components/base/notification/select-mail-template.vue.d.ts +0 -18
  52. package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +0 -24
  53. package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +0 -4
  54. package/dist/es/designer/service-components/computation/clean/config.vue.d.ts +0 -25
  55. package/dist/es/designer/service-components/computation/clean/config.vue.js +0 -7
  56. package/dist/es/designer/service-components/computation/clean/config.vue2.js +0 -55
  57. package/dist/es/designer/service-components/computation/clean/index.js +0 -17
  58. package/dist/es/designer/service-components/computation/clean/index.vue.js +0 -7
  59. package/dist/es/designer/service-components/computation/clean/index.vue2.js +0 -12
  60. package/dist/es/designer/service-components/computation/connect/config.vue.d.ts +0 -23
  61. package/dist/es/designer/service-components/computation/connect/config.vue.js +0 -7
  62. package/dist/es/designer/service-components/computation/connect/config.vue2.js +0 -54
  63. package/dist/es/designer/service-components/computation/connect/index.js +0 -17
  64. package/dist/es/designer/service-components/computation/connect/index.vue.js +0 -7
  65. package/dist/es/designer/service-components/computation/connect/index.vue2.js +0 -12
  66. package/dist/es/designer/service-components/computation/split-joint/config.vue.d.ts +0 -23
  67. package/dist/es/designer/service-components/computation/split-joint/config.vue.js +0 -7
  68. package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +0 -43
  69. package/dist/es/designer/service-components/computation/split-joint/index.js +0 -17
  70. package/dist/es/designer/service-components/computation/split-joint/index.vue.js +0 -7
  71. package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +0 -12
  72. package/dist/es/designer/service-components/computation/statistics/config.vue.d.ts +0 -23
  73. package/dist/es/designer/service-components/computation/statistics/config.vue.js +0 -7
  74. package/dist/es/designer/service-components/computation/statistics/config.vue2.js +0 -57
  75. package/dist/es/designer/service-components/computation/statistics/index.js +0 -17
  76. package/dist/es/designer/service-components/computation/statistics/index.vue.js +0 -7
  77. package/dist/es/designer/service-components/computation/statistics/index.vue2.js +0 -12
@@ -26,7 +26,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
26
26
  };
27
27
  }>> & Readonly<{}>, {
28
28
  height: number;
29
- theme: string;
30
29
  sql: string;
30
+ theme: string;
31
31
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
32
  export default _default;
@@ -1,68 +1,8 @@
1
- import { h as e } from "@logicflow/core";
2
- import { GroupNode as t } from "@logicflow/extension";
1
+ import { h as o } from "@logicflow/core";
2
+ import { GroupNode as e } from "@logicflow/extension";
3
3
  import "vue";
4
4
  import "../../../flow/base/AbLogicResizeNodeModel.js";
5
5
  import "../../../flow/base/AbLogicResizeNode.js";
6
6
  /* empty css */
7
- class i extends t.view {
8
- getResizeShape() {
9
- const { model: t2 } = this.props, { x: i2, y: s2, width: r2, height: o, radius: h, properties: n } = t2, d = t2.getNodeStyle();
10
- return e("g", {}, [e("rect", { ...d, x: i2 - r2 / 2, y: s2 - o / 2, rx: h, ry: h, width: r2, height: o, opacity: 0.95 }), this.getLabelShape(), e("g", { transform: `matrix(1 0 0 1 ${i2 - r2 / 2} ${s2 - o / 2})` }, e("path", { fill: "white", strokeLinecap: "round", strokeLinejoin: "round", stroke: "rgb(34, 36, 42)", strokeWidth: "2", d: "" }), e("span", {}))]);
11
- }
12
- getLabelShape() {
13
- const { model: t2 } = this.props, { x: i2, y: s2, width: r2, height: o } = t2, h = t2.getNodeStyle(), n = e("path", { fill: h.stroke, d: "M594.048 937.472c33.6 35.072-21.504 88.896-59.456 55.04-38.528-34.56-77.184-69.056-115.776-103.616-16.192-14.464-15.744-42.688-0.384-57.344 38.08-36.608 76.096-73.216 114.176-109.76 36.608-35.008 91.648 17.216 60.864 53.504 189.824-22.016 258.112-230.336 155.008-379.968-59.648-86.144 78.08-163.136 137.088-77.696C1065.216 577.856 895.808 904.384 594.048 937.472L594.048 937.472zM157.44 706.112C-22.272 445.952 147.072 119.68 448.64 86.464 415.104 51.456 470.208-2.432 508.096 31.488c38.592 34.432 77.12 68.928 115.84 103.552C640 149.376 639.68 177.6 624.32 192.384 586.24 228.928 548.288 265.408 510.144 301.952c-36.48 35.072-91.584-17.216-60.8-53.376-189.76 21.888-258.112 230.272-154.88 379.84C353.984 714.432 216.384 791.488 157.44 706.112L157.44 706.112z" });
14
- return e("svg", { x: i2 - r2 / 2 + 5, y: s2 - o / 2 + 5, width: 20, height: 20, viewBox: "0 0 1274 1024" }, n);
15
- }
16
- }
17
- class s extends t.model {
18
- setAttributes() {
19
- this.menu = [{ className: "lf-menu-delete", icon: true, text: "删除", callback: (e2) => {
20
- this.graphModel.deleteNode(e2.id);
21
- } }];
22
- }
23
- initNodeData(e2) {
24
- super.initNodeData(e2), this.foldable = false, this.resizable = true, this.text.editable = true, this.text.draggable = true, this.width = 400, this.height = 200, e2.virtual || (this.text.value = "循环节点"), this.resetWidthHeight(), this.isGroupNode = true, this.boundaryEvents = [];
25
- }
26
- getTextStyle() {
27
- const e2 = super.getTextStyle();
28
- return e2.fontSize = 14, e2.color = "#409EFF", e2;
29
- }
30
- resetWidthHeight() {
31
- var _a, _b;
32
- const e2 = (_a = this.properties.iniProp) == null ? void 0 : _a.width, t2 = (_b = this.properties.iniProp) == null ? void 0 : _b.height;
33
- e2 && (this.width = e2), t2 && (this.height = t2);
34
- }
35
- getNodeStyle() {
36
- const e2 = super.getNodeStyle();
37
- return e2.stroke = "#409EFF", e2.strokeWidth = 1, this.isSelected && (e2.strokeDasharray = "3 3"), e2;
38
- }
39
- addChild(e2) {
40
- this.graphModel.getElement(e2).setProperties({ parent: this.id }), super.addChild(e2);
41
- }
42
- getAnchorStyle() {
43
- const e2 = super.getAnchorStyle({});
44
- return e2.stroke = "#000", e2.fill = "#fff", e2.hover.stroke = "transparent", e2;
45
- }
46
- getOutlineStyle() {
47
- const e2 = super.getOutlineStyle();
48
- return e2.stroke = "transparent", !e2.hover && (e2.hover = {}), e2.hover.stroke = "transparent", e2;
49
- }
50
- setTouching(e2) {
51
- this.setProperty("isBoundaryEventTouchingTask", e2);
52
- }
53
- addBoundaryEvent(e2) {
54
- if (this.setTouching(false), this.boundaryEvents.find((t3) => t3 === e2)) return false;
55
- const t2 = this.graphModel.getNodeModelById(e2);
56
- return t2 == null ? void 0 : t2.setProperties({ attachedToRef: this.id }), this.boundaryEvents.push(e2), true;
57
- }
58
- deleteBoundaryEvent(e2) {
59
- this.boundaryEvents = this.boundaryEvents.filter((t2) => t2 !== e2);
60
- }
61
- isAllowAppendIn(e2) {
62
- return "start" !== e2.type;
63
- }
64
- }
65
- const r = { type: "loop", view: i, model: s, options: {} };
66
- export {
67
- r as default
68
- };
7
+ e.view;
8
+ e.model;
@@ -1,19 +1,11 @@
1
1
  import s from "../../assets/icon/base.png.js";
2
- import o from "../../assets/icon/condition.png.js";
3
- import t from "../../assets/icon/loop.svg.js";
4
- import n from "../../assets/icon/function.png.js";
5
- import i from "../../assets/icon/end.png.js";
6
- import c from "../../assets/icon/regularQuery.svg.js";
7
- import r from "../../assets/icon/aggregateQuery.svg.js";
8
- import e from "../../assets/icon/dynamicSql.svg.js";
9
- import a from "../../assets/icon/connect.svg.js";
10
- import m from "../../assets/icon/split-joint.svg.js";
11
- import p from "../../assets/icon/clean.svg.js";
12
- import g from "../../assets/icon/statistics.svg.js";
13
- import f from "../../assets/icon/sort.svg.js";
14
- import j from "../../assets/icon/notification.svg.js";
15
- import I from "../../assets/icon/http-service.svg.js";
16
- const v = { baseIcon: s, judgeConditionIcon: o, loopIcon: t, customFunctionIcon: n, endIcon: i, regularQueryIcon: c, aggregateQueryIcon: r, dynamicSqlIcon: e, connectIcon: a, splitJointIcon: m, cleanIcon: p, statisticsIcon: g, computationSortIcon: f, notificationIcon: j, httpServiceIcon: I };
2
+ import o from "../../assets/icon/end.png.js";
3
+ import r from "../../assets/icon/regularQuery.svg.js";
4
+ import e from "../../assets/icon/aggregateQuery.svg.js";
5
+ import t from "../../assets/icon/dynamicSql.svg.js";
6
+ import n from "../../assets/icon/sort.svg.js";
7
+ import a from "../../assets/icon/http-service.svg.js";
8
+ const c = { baseIcon: s, endIcon: o, regularQueryIcon: r, aggregateQueryIcon: e, dynamicSqlIcon: t, computationSortIcon: n, httpServiceIcon: a };
17
9
  export {
18
- v as default
10
+ c as default
19
11
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./config.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(o, [["__scopeId", "data-v-684c1f08"]]);
4
+ const r = e(o, [["__scopeId", "data-v-7ffc1986"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { ElForm as e, ElDivider as l, ElFormItem as t, ElInput as o, ElButton as a, ElCheckbox as s, ElTooltip as n, ElSelect as r, ElOption as u, ElIcon as p, ElTabs as i, ElTabPane as m, ElTable as c, ElTableColumn as d, ElAlert as f, ElRadioGroup as v, ElRadio as b } from "element-plus/es";
1
+ import { ElForm as e, ElDivider as t, ElFormItem as l, ElTooltip as o, ElSelect as s, ElOption as a, ElIcon as n, ElTabs as r, ElTabPane as u, ElTable as p, ElTableColumn as i, ElAlert as m, ElRadioGroup as c, ElRadio as d } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/form/style/css";
4
4
  import "element-plus/es/components/radio-group/style/css";
@@ -13,85 +13,90 @@ import "element-plus/es/components/tooltip/style/css";
13
13
  import "element-plus/es/components/select/style/css";
14
14
  import "element-plus/es/components/option/style/css";
15
15
  import "element-plus/es/components/form-item/style/css";
16
+ import "element-plus/es/components/divider/style/css";
17
+ import { defineComponent as f, ref as v, onMounted as b, createElementBlock as h, openBlock as y, createVNode as g, withCtx as x, createElementVNode as S, withDirectives as _, unref as k, Fragment as V, renderList as z, createBlock as w, vShow as D, createTextVNode as L } from "vue";
18
+ import { useLocalStorage as C } from "@vueuse/core";
19
+ import H from "../../../common/components/node-base-config.vue.js";
20
+ import { Search as O, FullScreen as j, CaretRight as U } from "@element-plus/icons-vue";
21
+ import { EditorView as T, basicSetup as q } from "codemirror";
22
+ import { StandardSQL as E, keywordCompletionSource as G, sql as W } from "@codemirror/lang-sql";
23
+ import { EditorState as X } from "@codemirror/state";
24
+ import { openSearchPanel as B } from "@codemirror/search";
25
+ import I from "../../../common/components/value-set-input/value-set-input.vue.js";
26
+ import "element-plus/es/components/dialog/style/css";
27
+ import "element-plus/es/components/container/style/css";
28
+ import "element-plus/es/components/pagination/style/css";
29
+ import "element-plus/es/components/header/style/css";
16
30
  import "element-plus/es/components/button/style/css";
17
31
  import "element-plus/es/components/input/style/css";
18
- import "element-plus/es/components/checkbox/style/css";
19
- import "element-plus/es/components/divider/style/css";
20
- import { defineComponent as h, ref as y, onMounted as g, createElementBlock as x, openBlock as V, createVNode as S, withCtx as _, createElementVNode as k, withDirectives as w, unref as z, Fragment as D, renderList as U, createBlock as L, vShow as C, createTextVNode as H } from "vue";
21
- import { useLocalStorage as O } from "@vueuse/core";
22
- import T from "../../../common/components/node-base-config.vue.js";
23
- import { Search as j, FullScreen as E, CaretRight as G } from "@element-plus/icons-vue";
24
- import { EditorView as W, basicSetup as X } from "codemirror";
25
- import { StandardSQL as q, keywordCompletionSource as B, sql as I } from "@codemirror/lang-sql";
26
- import { EditorState as J } from "@codemirror/state";
27
- import { openSearchPanel as N } from "@codemirror/search";
28
- import Q from "../../../common/components/value-set-input/value-set-input.vue.js";
29
- import A from "../../../common/components/database-select.vue.js";
30
- import { useServiceFlowStore as F } from "../../../../stores/page-store.js";
31
- import { eclipse as K, githubDark as M, githubLight as P, dracula as R, vscodeDark as Y, xcodeDark as Z, xcodeLight as $ } from "@uiw/codemirror-themes-all";
32
- const ee = { style: {} }, le = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, te = { class: "editorTool" }, oe = h({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(h2, { expose: oe2, emit: ae }) {
33
- F();
34
- const se = ae, ne = h2, re = y([]), ue = y("index0"), pe = y(false), ie = y(false), me = y({ theme: "default", fontSize: 14, searchOpen: false });
35
- ne.properties.result || (ne.properties.result = {});
36
- const ce = y({});
37
- function de() {
38
- true === ie.value ? (ie.value = false, se("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (ie.value = true, se("fullScreen", { withHeader: false, drawerWidth: "100%" }));
32
+ import "agilebuilder-ui/src/utils/request";
33
+ import "element-plus";
34
+ /* empty css */
35
+ import { useServiceFlowStore as J } from "../../../../stores/page-store.js";
36
+ import { eclipse as N, githubDark as Q, githubLight as A, dracula as F, vscodeDark as K, xcodeDark as M, xcodeLight as P } from "@uiw/codemirror-themes-all";
37
+ const R = { style: {} }, Y = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, Z = { class: "editorTool" }, $ = f({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(f2, { expose: $2, emit: ee }) {
38
+ J();
39
+ const te = ee, le = f2, oe = v([]), se = v("index0");
40
+ v(false);
41
+ const ae = v(false), ne = v({ theme: "default", fontSize: 14, searchOpen: false });
42
+ le.properties.result || (le.properties.result = {});
43
+ const re = v({});
44
+ function ue() {
45
+ true === ae.value ? (ae.value = false, te("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (ae.value = true, te("fullScreen", { withHeader: false, drawerWidth: "100%" }));
39
46
  }
40
- g(() => {
41
- let e2 = O("editorStyle", "").value;
47
+ b(() => {
48
+ let e2 = C("editorStyle", "").value;
42
49
  if (e2) {
43
- const l2 = JSON.parse(e2);
44
- me.value.theme = l2.theme || "default", me.value.fontSize = l2.fontSize || 14;
50
+ const t2 = JSON.parse(e2);
51
+ ne.value.theme = t2.theme || "default", ne.value.fontSize = t2.fontSize || 14;
45
52
  }
46
- he();
53
+ ce();
47
54
  });
48
- const fe = q.language.data.of({ autocomplete: B });
49
- function ve() {
50
- O("editorStyle", me.value).value = me.value, ce.value && (ce.value && ce.value.destroy(), he());
55
+ const pe = E.language.data.of({ autocomplete: G });
56
+ function ie() {
57
+ C("editorStyle", ne.value).value = ne.value, re.value && (re.value && re.value.destroy(), ce());
51
58
  }
52
- function be() {
59
+ function me() {
53
60
  const e2 = function() {
54
- switch (me.value.theme) {
61
+ switch (ne.value.theme) {
55
62
  case "xcodeLight":
56
- return $;
63
+ return P;
57
64
  case "xcodeDark":
58
- return Z;
65
+ return M;
59
66
  case "vscodeDark":
60
- return Y;
67
+ return K;
61
68
  case "dracula":
62
- return R;
69
+ return F;
63
70
  case "githubLight":
64
- return P;
71
+ return A;
65
72
  case "githubDark":
66
- return M;
73
+ return Q;
67
74
  case "eclipse":
68
- return K;
75
+ return N;
69
76
  }
70
- return W.theme({});
71
- }(), l2 = W.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", fontSize: me.value.fontSize + "px" } });
72
- return J.create({ doc: ne.properties.function, extensions: [J.tabSize.of(16), X, I(), fe, e2, l2, W.updateListener.of(function(e3) {
73
- ne.properties.function = e3.state.doc.toString();
77
+ return T.theme({});
78
+ }(), t2 = T.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", fontSize: ne.value.fontSize + "px" } });
79
+ return X.create({ doc: le.properties.function, extensions: [X.tabSize.of(16), q, W(), pe, e2, t2, T.updateListener.of(function(e3) {
80
+ le.properties.function = e3.state.doc.toString();
74
81
  })] });
75
82
  }
76
- function he() {
77
- const e2 = be();
78
- ce.value = new W({ state: e2, parent: document.getElementById("cf-codemirror") });
83
+ function ce() {
84
+ const e2 = me();
85
+ re.value = new T({ state: e2, parent: document.getElementById("cf-codemirror") });
79
86
  }
80
- function ye() {
81
- if (ce.value) {
82
- ce.value.focus(), N(ce.value) && ce.value.update([]);
87
+ function de() {
88
+ if (re.value) {
89
+ re.value.focus(), B(re.value) && re.value.update([]);
83
90
  }
84
91
  }
85
- const ge = () => {
86
- ce.value.state.doc.toString(), re.value = [[{ id: "1", name: "name1" }, { id: "2", name: "name2" }], [{ id: "结果2-1", name: "name1" }, { id: "结果2-2", name: "name2" }], [{ id: "结果3-1", name: "name1" }, { id: "结果3-2", name: "name2" }]];
87
- }, xe = (e2) => {
88
- ne.properties.database = e2.database.name;
92
+ const fe = () => {
93
+ re.value.state.doc.toString(), oe.value = [[{ id: "1", name: "name1" }, { id: "2", name: "name2" }], [{ id: "结果2-1", name: "name1" }, { id: "结果2-2", name: "name2" }], [{ id: "结果3-1", name: "name1" }, { id: "结果3-2", name: "name2" }]];
89
94
  };
90
- return oe2({}), (y2, g2) => {
91
- const O2 = l, W2 = s, X2 = o, q2 = a, B2 = t, I2 = u, J2 = r, N2 = n, F2 = p, K2 = d, M2 = c, P2 = m, R2 = i, Y2 = f, Z2 = b, $2 = v, oe3 = e;
92
- return V(), x("div", ee, [S(oe3, { "label-width": "auto", "label-position": "left" }, { default: _(() => [S(T, { properties: h2.properties }, null, 8, ["properties"]), S(O2), S(B2, null, { label: _((e2) => [S(W2, { modelValue: h2.properties.specifyDatabase, "onUpdate:modelValue": g2[0] || (g2[0] = (e3) => h2.properties.specifyDatabase = e3), label: "指定数据库" }, null, 8, ["modelValue"])]), default: _(() => [S(X2, { modelValue: h2.properties.database, "onUpdate:modelValue": g2[1] || (g2[1] = (e2) => h2.properties.database = e2), readonly: "", style: { width: "85%" } }, null, 8, ["modelValue"]), S(q2, { type: "primary", icon: z(j), onClick: g2[2] || (g2[2] = (e2) => pe.value = !pe.value), circle: "", disabled: !h2.properties.specifyDatabase, style: { position: "absolute", right: "0" } }, null, 8, ["icon", "disabled"]), S(A, { visible: pe.value, "onUpdate:visible": g2[3] || (g2[3] = (e2) => pe.value = e2), modelValue: h2.properties.dataTable, "onUpdate:modelValue": g2[4] || (g2[4] = (e2) => h2.properties.dataTable = e2), onSelect: xe }, null, 8, ["visible", "modelValue"])]), _: 1 }), k("div", le, [g2[10] || (g2[10] = k("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), k("span", te, [S(N2, { effect: "dark", content: "切换主题", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", onChange: ve, modelValue: me.value.theme, "onUpdate:modelValue": g2[5] || (g2[5] = (e2) => me.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: _(() => [S(I2, { label: "默认", value: "default" }), S(I2, { label: "VScodeDark", value: "vscodeDark" }), S(I2, { label: "Dracula", value: "dracula" }), S(I2, { label: "GithubLight", value: "githubLight" }), S(I2, { label: "GithubDark", value: "githubDark" }), S(I2, { label: "Eclipse", value: "eclipse" }), S(I2, { label: "XcodeLight", value: "xcodeLight" }), S(I2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(N2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", modelValue: me.value.fontSize, "onUpdate:modelValue": g2[6] || (g2[6] = (e2) => me.value.fontSize = e2), placeholder: "", onChange: ve, size: "small", style: { width: "80px" } }, { default: _(() => [S(I2, { label: "12", value: 12 }), S(I2, { label: "14", value: 14 }), S(I2, { label: "16", value: 16 }), S(I2, { label: "18", value: 18 }), S(I2, { label: "20", value: 20 }), S(I2, { label: "22", value: 22 }), S(I2, { label: "24", value: 24 }), S(I2, { label: "26", value: 26 }), S(I2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), S(N2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: _(() => [S(F2, { class: "editorOption", onClick: ye }, { default: _(() => [S(z(j))]), _: 1 })]), _: 1 }), S(N2, { effect: "dark", content: ie.value ? "退出全屏" : "全屏", placement: "top" }, { default: _(() => [S(F2, { style: { cursor: "pointer" }, onClick: de }, { default: _(() => [S(z(E))]), _: 1 })]), _: 1 }, 8, ["content"]), S(F2, { style: { cursor: "pointer" }, onClick: ge, size: 25 }, { default: _(() => [S(z(G))]), _: 1 })]), g2[13] || (g2[13] = k("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), w(S(R2, { modelValue: ue.value, "onUpdate:modelValue": g2[7] || (g2[7] = (e2) => ue.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: _(() => [(V(true), x(D, null, U(re.value, (e2, l2) => (V(), L(P2, { label: "结果" + (l2 + 1), name: "index" + l2 }, { default: _(() => [S(M2, { data: e2, style: { width: "100%" } }, { default: _(() => [(V(true), x(D, null, U(e2[0], (e3, l3) => (V(), L(K2, { prop: l3 + "", label: l3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[C, re.value && re.value.lenght > 0]]), S(Y2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), S(B2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: _(() => [S($2, { modelValue: h2.properties.result.valueSetScope, "onUpdate:modelValue": g2[8] || (g2[8] = (e2) => h2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: _(() => [S(Z2, { value: "first" }, { default: _(() => g2[11] || (g2[11] = [H("仅第一条")])), _: 1 }), S(Z2, { value: "all" }, { default: _(() => g2[12] || (g2[12] = [H(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(B2, { label: "设置到:", style: { width: "100%" } }, { default: _(() => [S(z(Q), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: h2.properties.result.setTo, "onUpdate:modelValue": g2[9] || (g2[9] = (e2) => h2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
95
+ return $2({}), (v2, b2) => {
96
+ const C2 = t, T2 = l, q2 = a, E2 = s, G2 = o, W2 = n, X2 = i, B2 = p, J2 = u, N2 = r, Q2 = m, A2 = d, F2 = c, K2 = e;
97
+ return y(), h("div", R, [g(K2, { "label-width": "auto", "label-position": "left" }, { default: x(() => [g(H, { properties: f2.properties }, null, 8, ["properties"]), g(C2), g(T2), S("div", Y, [b2[5] || (b2[5] = S("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), S("span", Z, [g(G2, { effect: "dark", content: "切换主题", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", onChange: ie, modelValue: ne.value.theme, "onUpdate:modelValue": b2[0] || (b2[0] = (e2) => ne.value.theme = e2), placeholder: "", size: "small", style: { width: "120px" } }, { default: x(() => [g(q2, { label: "默认", value: "default" }), g(q2, { label: "VScodeDark", value: "vscodeDark" }), g(q2, { label: "Dracula", value: "dracula" }), g(q2, { label: "GithubLight", value: "githubLight" }), g(q2, { label: "GithubDark", value: "githubDark" }), g(q2, { label: "Eclipse", value: "eclipse" }), g(q2, { label: "XcodeLight", value: "xcodeLight" }), g(q2, { label: "XcodeDark", value: "xcodeDark" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(G2, { effect: "dark", content: "切换字体大小", placement: "top" }, { default: x(() => [g(E2, { class: "editorOption", modelValue: ne.value.fontSize, "onUpdate:modelValue": b2[1] || (b2[1] = (e2) => ne.value.fontSize = e2), placeholder: "", onChange: ie, size: "small", style: { width: "80px" } }, { default: x(() => [g(q2, { label: "12", value: 12 }), g(q2, { label: "14", value: 14 }), g(q2, { label: "16", value: 16 }), g(q2, { label: "18", value: 18 }), g(q2, { label: "20", value: 20 }), g(q2, { label: "22", value: 22 }), g(q2, { label: "24", value: 24 }), g(q2, { label: "26", value: 26 }), g(q2, { label: "28", value: 28 })]), _: 1 }, 8, ["modelValue"])]), _: 1 })]), g(G2, { effect: "dark", content: "打开搜索", placement: "top" }, { default: x(() => [g(W2, { class: "editorOption", onClick: de }, { default: x(() => [g(k(O))]), _: 1 })]), _: 1 }), g(G2, { effect: "dark", content: ae.value ? "退出全屏" : "全屏", placement: "top" }, { default: x(() => [g(W2, { style: { cursor: "pointer" }, onClick: ue }, { default: x(() => [g(k(j))]), _: 1 })]), _: 1 }, 8, ["content"]), g(W2, { style: { cursor: "pointer" }, onClick: fe, size: 25 }, { default: x(() => [g(k(U))]), _: 1 })]), b2[8] || (b2[8] = S("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), _(g(N2, { modelValue: se.value, "onUpdate:modelValue": b2[2] || (b2[2] = (e2) => se.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: x(() => [(y(true), h(V, null, z(oe.value, (e2, t2) => (y(), w(J2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: x(() => [g(B2, { data: e2, style: { width: "100%" } }, { default: x(() => [(y(true), h(V, null, z(e2[0], (e3, t3) => (y(), w(X2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[D, oe.value && oe.value.lenght > 0]]), g(Q2, { title: "结果设置", type: "info", size: "small", closable: false, style: { margin: "20px 0" } }), g(T2, { label: "", "label-width": "0", style: { width: "100%" } }, { default: x(() => [g(F2, { modelValue: f2.properties.result.valueSetScope, "onUpdate:modelValue": b2[3] || (b2[3] = (e2) => f2.properties.result.valueSetScope = e2), class: "ml-4" }, { default: x(() => [g(A2, { value: "first" }, { default: x(() => b2[6] || (b2[6] = [L("仅第一条")])), _: 1 }), g(A2, { value: "all" }, { default: x(() => b2[7] || (b2[7] = [L(" 全部 ")])), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), g(T2, { label: "设置到:", style: { width: "100%" } }, { default: x(() => [g(k(I), { inputSize: "default", paramTypes: ["service"], size: "small", modelValue: f2.properties.result.setTo, "onUpdate:modelValue": b2[4] || (b2[4] = (e2) => f2.properties.result.setTo = e2) }, null, 8, ["modelValue"])]), _: 1 })]), _: 1 })]);
93
98
  };
94
99
  } });
95
100
  export {
96
- oe as default
101
+ $ as default
97
102
  };
@@ -1,37 +1,44 @@
1
- import o from "./base/start-node/index.js";
2
- import n from "./base/end-node/index.js";
3
- import e from "./base/loop-node/index.js";
4
- import i from "./base/custom-function/index.js";
5
- import t from "./base/judge-condition/index.js";
6
- import c from "./database/regular-query/index.js";
7
- import a from "./database/aggregate-query/index.js";
1
+ import e from "./base/start-node/index.js";
2
+ import o from "./base/end-node/index.js";
3
+ import "./base/loop-node/index.js";
4
+ import "@logicflow/core";
5
+ import "@logicflow/extension";
6
+ import { defineAsyncComponent as n } from "vue";
7
+ import "../flow/base/AbLogicResizeNodeModel.js";
8
+ import "../flow/base/AbLogicResizeNode.js";
9
+ import "element-plus/es";
10
+ import "element-plus/es/components/base/style/css";
11
+ import "element-plus/es/components/divider/style/css";
12
+ /* empty css */
13
+ /* empty css */
14
+ import i from "./database/regular-query/index.js";
15
+ import t from "./database/aggregate-query/index.js";
8
16
  import r from "./database/dynamic-sql/index.js";
9
- import m from "./base/notification/index.js";
10
- import s from "./computation/connect/index.js";
11
- import d from "./computation/split-joint/index.js";
12
- import p from "./computation/clean/index.js";
13
- import l from "./computation/statistics/index.js";
14
- import f from "./computation/sort/index.js";
15
- import u from "./service/http-service/index.js";
16
- import g from "./service/custom-bean/index.js";
17
- import b from "./components-icons.js";
18
- import { defineAsyncComponent as j } from "vue";
19
- const y = [{ type: "start", label: "开始", nodeAndView: o, configComponent: null, icon: void 0 }], w = [{ name: "base", label: "基本", icon: b.baseIcon, items: [{ type: "judgeCondition", label: "条件判断", icon: b.judgeConditionIcon, nodeAndView: t, drawerWidth: "60%", configComponent: j(() => import("./base/judge-condition/config.vue.js")) }, { type: "loop", label: "循环", icon: b.loopIcon, nodeAndView: e, drawerWidth: "30%", configComponent: j(() => import("./base/loop-node/config.vue.js")) }, { type: "customFunction", label: "自定义函数", icon: b.customFunctionIcon, nodeAndView: i, configComponent: j(() => import("./base/custom-function/config.vue.js")) }, { type: "end", label: "结束", icon: b.endIcon, nodeAndView: n, configComponent: null }] }, { name: "database", label: "数据库", icon: b.baseIcon, items: [{ type: "regularQuery", label: "普通查询", icon: b.regularQueryIcon, nodeAndView: c, configComponent: j(() => import("./database/regular-query/config.vue.js")) }, { type: "aggregateQuery", label: "汇总查询", drawerWidth: "60%", icon: b.aggregateQueryIcon, nodeAndView: a, configComponent: j(() => import("./database/aggregate-query/config.vue.js")) }, { type: "dynamicSql", label: "动态SQL", drawerWidth: "60%", icon: b.dynamicSqlIcon, nodeAndView: r, configComponent: j(() => import("./database/dynamic-sql/config.vue.js")) }] }, { name: "computation", label: "计算", icon: b.baseIcon, items: [{ type: "connect", label: "连接", icon: b.connectIcon, nodeAndView: s, configComponent: j(() => import("./computation/connect/config.vue.js")) }, { type: "splitJoint", label: "拼接", icon: b.splitJointIcon, nodeAndView: d, drawerWidth: "50%", configComponent: j(() => import("./computation/split-joint/config.vue.js")) }, { type: "computationClean", label: "清理", icon: b.cleanIcon, nodeAndView: p, drawerWidth: "60%", configComponent: j(() => import("./computation/clean/config.vue.js")) }, { type: "statistics", label: "统计", icon: b.statisticsIcon, nodeAndView: l, drawerWidth: "50%", configComponent: j(() => import("./computation/statistics/config.vue.js")) }, { type: "computationSort", label: "排序", icon: b.computationSortIcon, nodeAndView: f, drawerWidth: "50%", configComponent: j(() => import("./computation/sort/config.vue.js")) }] }, { name: "notification", label: "通知", icon: b.baseIcon, items: [{ type: "notification", label: "通知", drawerWidth: "50%", icon: b.notificationIcon, nodeAndView: m, configComponent: j(() => import("./base/notification/config.vue.js")) }] }, { name: "service", label: "服务", icon: b.baseIcon, items: [{ type: "httpService", label: "http服务", drawerWidth: "60%", icon: b.httpServiceIcon, nodeAndView: u, configComponent: j(() => import("./service/http-service/config.vue.js")) }, { type: "customBean", label: "自定义bean", drawerWidth: "50%", icon: b.httpServiceIcon, nodeAndView: g, configComponent: j(() => import("./service/custom-bean/config.vue.js")) }] }];
20
- function v(o2) {
21
- for (let n2 of w) {
22
- let e2 = n2.items.find((n3) => n3.type === o2);
23
- if (e2) return e2;
17
+ /* empty css */
18
+ /* empty css */
19
+ /* empty css */
20
+ /* empty css */
21
+ /* empty css */
22
+ import s from "./computation/sort/index.js";
23
+ import a from "./service/http-service/index.js";
24
+ import c from "./service/custom-bean/index.js";
25
+ import m from "./components-icons.js";
26
+ const p = [{ type: "start", label: "开始", nodeAndView: e, configComponent: null, icon: void 0 }], d = [{ name: "base", label: "基本", icon: m.baseIcon, items: [{ type: "end", label: "结束", icon: m.endIcon, nodeAndView: o, configComponent: null }] }, { name: "database", label: "数据库", icon: m.baseIcon, items: [{ type: "regularQuery", label: "普通查询", icon: m.regularQueryIcon, nodeAndView: i, configComponent: n(() => import("./database/regular-query/config.vue.js")) }, { type: "aggregateQuery", label: "汇总查询", drawerWidth: "60%", icon: m.aggregateQueryIcon, nodeAndView: t, configComponent: n(() => import("./database/aggregate-query/config.vue.js")) }, { type: "dynamicSql", label: "动态SQL", drawerWidth: "60%", icon: m.dynamicSqlIcon, nodeAndView: r, configComponent: n(() => import("./database/dynamic-sql/config.vue.js")) }] }, { name: "computation", label: "计算", icon: m.baseIcon, items: [{ type: "computationSort", label: "排序", icon: m.computationSortIcon, nodeAndView: s, drawerWidth: "50%", configComponent: n(() => import("./computation/sort/config.vue.js")) }] }, { name: "service", label: "服务", icon: m.baseIcon, items: [{ type: "httpService", label: "http服务", drawerWidth: "60%", icon: m.httpServiceIcon, nodeAndView: a, configComponent: n(() => import("./service/http-service/config.vue.js")) }, { type: "customBean", label: "自定义bean", drawerWidth: "50%", icon: m.httpServiceIcon, nodeAndView: c, configComponent: n(() => import("./service/custom-bean/config.vue.js")) }] }];
27
+ function l(e2) {
28
+ for (let o2 of d) {
29
+ let n2 = o2.items.find((o3) => o3.type === e2);
30
+ if (n2) return n2;
24
31
  }
25
32
  }
26
- function I(o2) {
27
- for (let n2 of w) {
28
- let e2 = n2.items.find((n3) => n3.type === o2);
29
- if (e2) return e2;
33
+ function u(e2) {
34
+ for (let o2 of d) {
35
+ let n2 = o2.items.find((o3) => o3.type === e2);
36
+ if (n2) return n2;
30
37
  }
31
38
  }
32
39
  export {
33
- I as getConfigByType,
34
- v as getServiceNodeByType,
35
- y as initNodes,
36
- w as serviceComponentGroups
40
+ u as getConfigByType,
41
+ l as getServiceNodeByType,
42
+ p as initNodes,
43
+ d as serviceComponentGroups
37
44
  };
@@ -4,15 +4,14 @@ function u(l2, e2) {
4
4
  const a2 = e2.filter((e3) => e3.value === l2);
5
5
  return a2.length > 0 ? a2[0].label : "";
6
6
  }
7
- const v = [{ value: "yyyy", label: "年(yyyy)" }, { value: "yyyyMM", label: "年月(yyyyMM)" }, { value: "yyyy-MM", label: "年-月(yyyy-MM)" }, { value: "yyyyMMdd", label: "年月日(yyyyMMdd)" }, { value: "yyyy-MM-dd", label: "年-月-日(yyyy-MM-dd)" }, { value: "quarter", label: "季度" }, { value: "week", label: "周" }], b = [{ value: "count", label: "总数(count)" }, { value: "sum", label: "求和(sum)" }, { value: "max", label: "最大(max)" }, { value: "min", label: "最小(min)" }, { value: "avg", label: "均值(avg)" }], y = [{ value: "gt", label: "大于" }, { value: "lt", label: "小于" }, { value: "eq", label: "等于" }, { value: "le", label: "不小于" }, { value: "ge", label: "不大于" }, { value: "ne", label: "不等于" }, { value: "contain", label: "包含" }, { value: "contain.not", label: "不包含" }, { value: "is.null", label: "等于NULL" }, { value: "not.null", label: "不等于NULL" }], n = [{ value: "EQ", label: "等于" }, { value: "GT", label: "大于" }, { value: "GET", label: "大于等于" }, { value: "LT", label: "小于" }, { value: "LET", label: "小于等于" }, { value: "NET", label: "不等于" }, { value: "CONTAIN", label: "包含" }, { value: "NOT_CONTAIN", label: "不包含" }, { value: "RANGE_QUERY", label: "IN" }, { value: "LEFT_LIKE", label: "左匹配" }, { value: "RIGHT_LIKE", label: "右匹配" }], t = [{ value: "GET", label: "GET" }, { value: "POST", label: "POST" }, { value: "PUT", label: "PUT" }, { value: "PATCH", label: "PATCH" }, { value: "DELETE", label: "DELETE" }];
7
+ const v = [{ value: "yyyy", label: "年(yyyy)" }, { value: "yyyyMM", label: "年月(yyyyMM)" }, { value: "yyyy-MM", label: "年-月(yyyy-MM)" }, { value: "yyyyMMdd", label: "年月日(yyyyMMdd)" }, { value: "yyyy-MM-dd", label: "年-月-日(yyyy-MM-dd)" }, { value: "quarter", label: "季度" }, { value: "week", label: "周" }], b = [{ value: "count", label: "总数(count)" }, { value: "sum", label: "求和(sum)" }, { value: "max", label: "最大(max)" }, { value: "min", label: "最小(min)" }, { value: "avg", label: "均值(avg)" }], y = [{ value: "EQ", label: "等于" }, { value: "GT", label: "大于" }, { value: "GET", label: "大于等于" }, { value: "LT", label: "小于" }, { value: "LET", label: "小于等于" }, { value: "NET", label: "不等于" }, { value: "CONTAIN", label: "包含" }, { value: "NOT_CONTAIN", label: "不包含" }, { value: "RANGE_QUERY", label: "IN" }, { value: "LEFT_LIKE", label: "左匹配" }, { value: "RIGHT_LIKE", label: "右匹配" }], n = [{ value: "GET", label: "GET" }, { value: "POST", label: "POST" }, { value: "PUT", label: "PUT" }, { value: "PATCH", label: "PATCH" }, { value: "DELETE", label: "DELETE" }];
8
8
  export {
9
9
  v as dateFormats,
10
10
  b as formulas,
11
11
  u as getLabel,
12
- t as httpMethods,
12
+ n as httpMethods,
13
13
  a as logicOperators,
14
- y as operators,
15
14
  l as operatorsForNumber,
16
15
  e as operatorsForString,
17
- n as sqlOperators
16
+ y as sqlOperators
18
17
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./service-flow-tool.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(o, [["__scopeId", "data-v-1270412d"]]);
4
+ const r = e(o, [["__scopeId", "data-v-82d0912d"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -30,7 +30,7 @@ const x = { class: "serviceflow-design-tool" }, _ = { style: { top: "-5px", "mar
30
30
  };
31
31
  return (i2, h3) => {
32
32
  const J3 = e, H = l, I = o, K = t;
33
- return n(), c("div", x, [a(p("span", _, [r(J3, { placeholder: "", modelValue: s2.cloneService.name, "onUpdate:modelValue": h3[0] || (h3[0] = (e2) => s2.cloneService.name = e2), style: { width: "40%" } }, null, 8, ["modelValue"])], 512), [[m, s2.cloneService.code]]), a(p("span", O, [r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), (n(true), c(u, null, v(d(S), (e2) => (n(), f(I, { class: "box-item", effect: "dark", content: e2.desc, placement: "top" }, { default: w(() => [p("label", { class: g(["serviceflow-control-item", e2.type === U.value ? "serviceflow-control-item-click" : ""]), onClick: (l2) => ((e3) => {
33
+ return n(), c("div", x, [a(p("span", _, [r(J3, { placeholder: "", modelValue: s2.cloneService.name, "onUpdate:modelValue": h3[0] || (h3[0] = (e2) => s2.cloneService.name = e2), style: { width: "15%" } }, null, 8, ["modelValue"])], 512), [[m, s2.cloneService.code]]), a(p("span", O, [r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), (n(true), c(u, null, v(d(S), (e2) => (n(), f(I, { class: "box-item", effect: "dark", content: e2.desc, placement: "top" }, { default: w(() => [p("label", { class: g(["serviceflow-control-item", e2.type === U.value ? "serviceflow-control-item-click" : ""]), onClick: (l2) => ((e3) => {
34
34
  N.lf && C(N.lf, e3);
35
35
  })(e2) }, [p("i", { class: g(e2.class) }, null, 2)], 10, z)]), _: 2 }, 1032, ["content"]))), 256)), r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: A }, [r(K, { size: 18 }, { default: w(() => [r(d(y))]), _: 1 }), h3[3] || (h3[3] = p("label", null, "查看JSON", -1))]), p("label", { class: "serviceflow-page-type", onClick: E }, [r(K, { size: 18 }, { default: w(() => [r(d(y))]), _: 1 }), h3[4] || (h3[4] = p("label", null, "日志", -1))]), r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: B }, [r(K, { size: 18 }, { default: w(() => [r(d(b))]), _: 1 }), h3[5] || (h3[5] = p("label", null, "测试", -1))]), r(H, { direction: "vertical", class: "serviceflow-design-tool-split" }), p("label", { class: "serviceflow-page-type", onClick: F }, [r(K, { size: 18 }, { default: w(() => [r(d(j))]), _: 1 }), h3[6] || (h3[6] = p("label", null, "保存", -1))])], 512), [[m, s2.cloneService.code]]), r(d(V), { modelValue: D.value, "onUpdate:modelValue": h3[1] || (h3[1] = (e2) => D.value = e2), "json-object": q.value, "append-to-body": true }, null, 8, ["modelValue", "json-object"]), r(k, { modelValue: G.value, "onUpdate:modelValue": h3[2] || (h3[2] = (e2) => G.value = e2), pageContext: s2.pageContext, "append-to-body": true, cloneService: s2.cloneService, lf: s2.lf }, null, 8, ["modelValue", "pageContext", "cloneService", "lf"])]);
36
36
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./service-node-config.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-016f2775"]]);
4
+ const r = o(e, [["__scopeId", "data-v-32028b1e"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -4,31 +4,31 @@ import "element-plus/es/components/drawer/style/css";
4
4
  import { defineComponent as t, ref as o, createBlock as a, openBlock as l, unref as n, withCtx as r, resolveDynamicComponent as d, createElementVNode as i, normalizeClass as u, toDisplayString as c } from "vue";
5
5
  import { getServiceNodeByType as s, getConfigByType as p } from "../service-components/index.js";
6
6
  const v = ["id"], w = t({ __name: "service-node-config", props: { service: { type: Object, default: () => ({}) }, currentNode: { type: Object, default: () => ({}) }, logicFlowInstance: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, emits: ["onConfigChange", "update:currentNode"], setup(t2, { expose: w2, emit: f }) {
7
- const g = t2, h = o({}), m = o(false), y = o({}), C = o(), N = o({ withHeader: true, drawerWidth: "" }), I = f;
8
- let W = { configComponent: null, drawerWidth: "50%" };
9
- function F() {
10
- m.value = false, I("update:currentNode", null);
11
- }
7
+ const g = t2, h = o({}), m = o(false), y = o({}), C = o(), N = o({ withHeader: true, drawerWidth: "" }), I = o(false), W = f;
8
+ let F = { configComponent: null, drawerWidth: "50%" };
12
9
  function b() {
13
- x(), I("update:currentNode", null);
10
+ m.value = false;
14
11
  }
15
12
  function x() {
13
+ I.value || O(), I.value = false, W("update:currentNode", null);
14
+ }
15
+ function O() {
16
16
  C.value && C.value.hasOwnProperty("onClose") && "function" == typeof C.value.onClose && C.value.onClose(), g.currentNode && (["start", "end"].includes(g.currentNode.type) || (C.value && C.value.hasOwnProperty("getData") && "function" == typeof C.value.getData ? g.logicFlowInstance && g.logicFlowInstance.getNodeModelById(g.currentNode.data.id) && g.logicFlowInstance.getNodeModelById(g.currentNode.data.id).setProperties(C.value.getData()) : g.logicFlowInstance.getNodeModelById(g.currentNode.data.id).setProperties(h.value)));
17
17
  }
18
- function O(e2) {
18
+ function j(e2) {
19
19
  e2 ? (false === e2.withHeader ? N.value.withHeader = false : N.value.withHeader = true, e2.drawerWidth ? N.value.drawerWidth = e2.drawerWidth : N.value.drawerWidth = "100%") : N.value.drawerWidth = "100%";
20
20
  }
21
21
  return w2({ onBlankClick: function() {
22
- m.value && (x(), F());
22
+ m.value && b();
23
23
  }, onNodeClick: function(e2) {
24
- ["start", "end"].includes(e2.data.type) ? (x(), F()) : (1 == m.value ? (x(), y.value = s(e2.data.type)) : (m.value = true, y.value = s(e2.data.type)), W = p(e2.data.type)), h.value = e2.data.properties;
24
+ ["start", "end"].includes(e2.data.type) ? (O(), b()) : (1 == m.value ? (O(), y.value = s(e2.data.type)) : (m.value = true, y.value = s(e2.data.type)), F = p(e2.data.type)), h.value = e2.data.properties;
25
25
  }, onLogicChange: function() {
26
- F();
26
+ b();
27
27
  }, onDeleteNode: function() {
28
- F();
29
- }, closeDrawer: F }), (o2, s2) => {
28
+ I.value = true, b();
29
+ }, closeDrawer: b }), (o2, s2) => {
30
30
  const p2 = e;
31
- return l(), a(p2, { modelValue: m.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => m.value = e2), "append-to-body": false, "close-on-press-escape": false, "destroy-on-close": "", "with-header": N.value.withHeader, "modal-class": "el-overlay", modal: true, title: y.value.label, direction: "rtl", size: N.value.drawerWidth ? N.value.drawerWidth : n(W).drawerWidth ? n(W).drawerWidth : "50%", onClose: b }, { header: r(({ close: e2, titleId: t3, titleClass: o3 }) => [i("h4", { id: t3, class: u(o3) }, c(y.value.label), 11, v)]), default: r(() => [(l(), a(d(n(W).configComponent), { ref_key: "configComponentRef", ref: C, logicFlowInstance: t2.logicFlowInstance, currentNode: t2.currentNode, properties: h.value, service: t2.service, pageContext: t2.pageContext, onFullScreen: O }, null, 40, ["logicFlowInstance", "currentNode", "properties", "service", "pageContext"]))]), _: 1 }, 8, ["modelValue", "with-header", "title", "size"]);
31
+ return l(), a(p2, { modelValue: m.value, "onUpdate:modelValue": s2[0] || (s2[0] = (e2) => m.value = e2), "append-to-body": false, "close-on-press-escape": false, "destroy-on-close": "", "with-header": N.value.withHeader, "modal-class": "el-overlay", modal: true, title: y.value.label, direction: "rtl", size: N.value.drawerWidth ? N.value.drawerWidth : n(F).drawerWidth ? n(F).drawerWidth : "50%", onClose: x }, { header: r(({ close: e2, titleId: t3, titleClass: o3 }) => [i("h4", { id: t3, class: u(o3) }, c(y.value.label), 11, v)]), default: r(() => [(l(), a(d(n(F).configComponent), { ref_key: "configComponentRef", ref: C, logicFlowInstance: t2.logicFlowInstance, currentNode: t2.currentNode, properties: h.value, service: t2.service, pageContext: t2.pageContext, onFullScreen: j }, null, 40, ["logicFlowInstance", "currentNode", "properties", "service", "pageContext"]))]), _: 1 }, 8, ["modelValue", "with-header", "title", "size"]);
32
32
  };
33
33
  } });
34
34
  export {
@@ -1,7 +1,7 @@
1
1
  import e from "./view-index.vue2.js";
2
2
  /* empty css */
3
3
  import i from "../../_virtual/_plugin-vue_export-helper.js";
4
- const o = i(e, [["__scopeId", "data-v-04746c34"]]);
4
+ const o = i(e, [["__scopeId", "data-v-0e8afd53"]]);
5
5
  export {
6
6
  o as default
7
7
  };
@@ -4,7 +4,7 @@ import "element-plus/es/components/drawer/style/css";
4
4
  import "element-plus/es/components/timeline/style/css";
5
5
  import "element-plus/es/components/skeleton/style/css";
6
6
  import "element-plus/es/components/skeleton-item/style/css";
7
- import { defineComponent as t, ref as n, computed as i, onMounted as r, createElementBlock as s, openBlock as u, Fragment as c, createElementVNode as v, createVNode as p, withDirectives as d, normalizeStyle as f, vShow as g, withCtx as m, nextTick as w } from "vue";
7
+ import { defineComponent as t, ref as n, computed as i, onMounted as r, createElementBlock as s, openBlock as u, Fragment as v, createElementVNode as c, createVNode as p, withDirectives as d, normalizeStyle as f, vShow as g, withCtx as m, nextTick as w } from "vue";
8
8
  import y from "./service-node-config.vue.js";
9
9
  import S from "./service-update-log.vue.js";
10
10
  import x from "./service-flow-tool.vue.js";
@@ -46,7 +46,7 @@ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" },
46
46
  }), K.value.on("history:change", (e2) => {
47
47
  e2.data.undos;
48
48
  }), K.value.on("custom:deleteNode", (e2) => {
49
- A("onDeleteNode");
49
+ X.value && L.value.onDeleteNode(), A("onDeleteNode");
50
50
  }));
51
51
  }, oe = (e2) => {
52
52
  if (K.value) {
@@ -98,7 +98,7 @@ const _ = { class: "serviceflow-design-content", ref: "ambServiceFlowContent" },
98
98
  K.value && (K.value.clearData(), K.value = null, Q.value = null, W.value = { code: "", name: "" }, q.value = false, X.value = {});
99
99
  } }), (n2, i2) => {
100
100
  const r2 = l, w2 = e, b3 = o, h2 = a;
101
- return u(), s(c, null, [v("div", _, [d(v("div", B, [p(x, { cloneService: W.value, lf: K.value, pageContext: t2.pageContext, onShowJson: se, onShowServiceLog: re, onSaveSevice: ne }, null, 8, ["cloneService", "lf", "pageContext"]), v("div", I, [v("div", { style: f($.value), ref_key: "logicFlowContainer", ref: E, class: "container" }, null, 4)], 512)], 512), [[g, K.value]]), d(v("div", { style: f([{ "padding-top": "10px", "box-sizing": "border-box" }, $.value]), ref_key: "emptyContainer", ref: H }, [v("div", z, [p(w2, { style: { "--el-skeleton-circle-size": "100px" } }, { template: m(() => [p(r2, { variant: "circle" }), p(r2, { variant: "rect", style: { width: "100px", height: "100px", margin: "0 50px" } }), i2[2] || (i2[2] = v("div", { class: "triangle" }, null, -1))]), _: 1 }), p(b3, { style: { "max-width": "600px" } })])], 4), [[g, !K.value]]), p(h2, { modelValue: q.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e2) => q.value = e2), "append-to-body": true, "destroy-on-close": "", "modal-class": "el-overlay", modal: true, title: "服务参数", onClose: Z, "before-close": Y, direction: "rtl", size: "50%" }, { default: m(() => [p(N, { service: W.value }, null, 8, ["service"])]), _: 1 }, 8, ["modelValue"])], 512), p(S, { ref_key: "serviceUpdateLogRef", ref: P, onSave: ie, lf: K.value, cloneService: W.value }, null, 8, ["lf", "cloneService"]), p(y, { logicFlowInstance: t2.logicFlowInstance, currentNode: X.value, "onUpdate:currentNode": i2[1] || (i2[1] = (e2) => X.value = e2), sourceService: Q.value, service: W.value, pageContext: t2.pageContext, ref_key: "serviceNodeConfigRef", ref: L }, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service", "pageContext"])], 64);
101
+ return u(), s(v, null, [c("div", _, [d(c("div", B, [p(x, { cloneService: W.value, lf: K.value, pageContext: t2.pageContext, onShowJson: se, onShowServiceLog: re, onSaveSevice: ne }, null, 8, ["cloneService", "lf", "pageContext"]), c("div", I, [c("div", { style: f($.value), ref_key: "logicFlowContainer", ref: E, class: "container" }, null, 4)], 512)], 512), [[g, K.value]]), d(c("div", { style: f([{ "padding-top": "10px", "box-sizing": "border-box" }, $.value]), ref_key: "emptyContainer", ref: H }, [c("div", z, [p(w2, { style: { "--el-skeleton-circle-size": "100px" } }, { template: m(() => [p(r2, { variant: "circle" }), p(r2, { variant: "rect", style: { width: "100px", height: "100px", margin: "0 50px" } }), i2[2] || (i2[2] = c("div", { class: "triangle" }, null, -1))]), _: 1 }), p(b3, { style: { "max-width": "600px" } })])], 4), [[g, !K.value]]), p(h2, { modelValue: q.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e2) => q.value = e2), "append-to-body": true, "destroy-on-close": "", "modal-class": "el-overlay", modal: true, title: "服务参数", onClose: Z, "before-close": Y, direction: "rtl", size: "50%" }, { default: m(() => [p(N, { service: W.value }, null, 8, ["service"])]), _: 1 }, 8, ["modelValue"])], 512), p(S, { ref_key: "serviceUpdateLogRef", ref: P, onSave: ie, lf: K.value, cloneService: W.value }, null, 8, ["lf", "cloneService"]), p(y, { logicFlowInstance: t2.logicFlowInstance, currentNode: X.value, "onUpdate:currentNode": i2[1] || (i2[1] = (e2) => X.value = e2), sourceService: Q.value, service: W.value, pageContext: t2.pageContext, ref_key: "serviceNodeConfigRef", ref: L }, null, 8, ["logicFlowInstance", "currentNode", "sourceService", "service", "pageContext"])], 64);
102
102
  };
103
103
  } });
104
104
  export {