service-flow-designer 2.0.90 → 2.0.94

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.
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./desginer-index.vue2.js";
2
2
  import "./desginer-index.vue3.js";
3
3
  import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
4
- const ServiceFlowDesginer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-1ad0c7c5"]]);
4
+ const ServiceFlowDesginer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-7117ba9e"]]);
5
5
  export {
6
6
  ServiceFlowDesginer as default
7
7
  };
@@ -95,10 +95,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
95
  logicFlowInstance: logicFlowInstance.value,
96
96
  "onUpdate:logicFlowInstance": _cache[1] || (_cache[1] = ($event) => logicFlowInstance.value = $event),
97
97
  serviceTreeData: serviceTreeData.value,
98
+ pageContext: __props.pageContext,
98
99
  onLoadTreeData: loadTreeData,
99
100
  ref_key: "serviceFlowViewRef",
100
101
  ref: serviceFlowViewRef
101
- }, null, 8, ["logicFlowInstance", "serviceTreeData"])
102
+ }, null, 8, ["logicFlowInstance", "serviceTreeData", "pageContext"])
102
103
  ]),
103
104
  _: 1
104
105
  }, 8, ["style"])
@@ -9,6 +9,10 @@ declare const _default: import('vue').DefineComponent<{
9
9
  type: typeof LogicFlow;
10
10
  default: () => void;
11
11
  };
12
+ pageContext: {
13
+ type: ObjectConstructor;
14
+ default: () => {};
15
+ };
12
16
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
17
  "show-service-log": (...args: any[]) => void;
14
18
  "save-sevice": (...args: any[]) => void;
@@ -22,11 +26,16 @@ declare const _default: import('vue').DefineComponent<{
22
26
  type: typeof LogicFlow;
23
27
  default: () => void;
24
28
  };
29
+ pageContext: {
30
+ type: ObjectConstructor;
31
+ default: () => {};
32
+ };
25
33
  }>> & {
26
34
  "onShow-service-log"?: (...args: any[]) => any;
27
35
  "onSave-sevice"?: (...args: any[]) => any;
28
36
  "onShow-json"?: (...args: any[]) => any;
29
37
  }, {
38
+ pageContext: Record<string, any>;
30
39
  lf: LogicFlow;
31
40
  cloneService: Record<string, any>;
32
41
  }, {}>;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./service-flow-tool.vue2.js";
2
2
  import "./service-flow-tool.vue3.js";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const serviceFlowTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c1076ee"]]);
4
+ const serviceFlowTool = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-a2bd7452"]]);
5
5
  export {
6
6
  serviceFlowTool as default
7
7
  };
@@ -15,7 +15,7 @@ import "@codemirror/state";
15
15
  import "@uiw/codemirror-themes-all";
16
16
  import _sfc_main$1 from "../common/components/json-view/json-view-dialog.vue.js";
17
17
  import _sfc_main$2 from "./service-test/service-test.vue.js";
18
- const _withScopeId = (n) => (pushScopeId("data-v-5c1076ee"), n = n(), popScopeId(), n);
18
+ const _withScopeId = (n) => (pushScopeId("data-v-a2bd7452"), n = n(), popScopeId(), n);
19
19
  const _hoisted_1 = { class: "serviceflow-design-tool" };
20
20
  const _hoisted_2 = { style: { "top": "-5px", "margin-left": "10px", "position": "relative" } };
21
21
  const _hoisted_3 = { style: { "float": "right" } };
@@ -36,6 +36,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  type: LogicFlow,
37
37
  default: () => {
38
38
  }
39
+ },
40
+ pageContext: {
41
+ type: Object,
42
+ default: () => ({})
39
43
  }
40
44
  },
41
45
  emits: ["show-service-log", "save-sevice", "show-json"],
@@ -181,10 +185,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
185
  createVNode(_sfc_main$2, {
182
186
  modelValue: testDialogVisble.value,
183
187
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => testDialogVisble.value = $event),
188
+ pageContext: __props.pageContext,
184
189
  "append-to-body": true,
185
190
  cloneService: __props.cloneService,
186
191
  lf: __props.lf
187
- }, null, 8, ["modelValue", "cloneService", "lf"])
192
+ }, null, 8, ["modelValue", "pageContext", "cloneService", "lf"])
188
193
  ]);
189
194
  };
190
195
  }
@@ -17,6 +17,10 @@ declare const _default: import('vue').DefineComponent<{
17
17
  type: typeof LogicFlow;
18
18
  default: () => void;
19
19
  };
20
+ pageContext: {
21
+ type: ObjectConstructor;
22
+ default: () => {};
23
+ };
20
24
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
25
  "update:modelValue": (...args: any[]) => void;
22
26
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -36,9 +40,14 @@ declare const _default: import('vue').DefineComponent<{
36
40
  type: typeof LogicFlow;
37
41
  default: () => void;
38
42
  };
43
+ pageContext: {
44
+ type: ObjectConstructor;
45
+ default: () => {};
46
+ };
39
47
  }>> & {
40
48
  "onUpdate:modelValue"?: (...args: any[]) => any;
41
49
  }, {
50
+ pageContext: Record<string, any>;
42
51
  modelValue: boolean;
43
52
  appendToBody: boolean;
44
53
  lf: LogicFlow;
@@ -17,6 +17,7 @@ import LogicFlow from "@logicflow/core";
17
17
  import _sfc_main$2 from "../../common/components/json-view/json-view.vue.js";
18
18
  import { vscodeDark } from "@uiw/codemirror-themes-all";
19
19
  import _sfc_main$1 from "./request-params.vue.js";
20
+ import { getSystemBackendUrl } from "agilebuilder-ui/src/utils/common-util";
20
21
  const _hoisted_1 = { class: "dialog-footer" };
21
22
  const _sfc_main = /* @__PURE__ */ defineComponent({
22
23
  __name: "service-test",
@@ -38,6 +39,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
38
39
  type: LogicFlow,
39
40
  default: () => {
40
41
  }
42
+ },
43
+ pageContext: {
44
+ type: Object,
45
+ default: () => ({})
41
46
  }
42
47
  },
43
48
  emits: ["update:modelValue"],
@@ -49,139 +54,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
54
  const activeName = ref("entity");
50
55
  const inputType = ref("json");
51
56
  const returnValueType = ref("returnValue");
52
- const entityData = ref([
53
- {
54
- code: "8ed5163f-5e92-4510-b93d-324a873f7f61",
55
- name: "name",
56
- type: "string",
57
- value: "a"
58
- },
59
- {
60
- code: "527e5f5e-69f2-40cc-bcff-d82d181f73b9",
61
- name: "height",
62
- type: "int",
63
- value: 12
64
- },
65
- {
66
- code: "744e73c4-31a4-401f-9684-04e22f13afe5",
67
- name: "weight",
68
- type: "int",
69
- value: 123
70
- }
71
- ]);
72
- const requestData = ref([
73
- {
74
- code: "4dadbac5-6fab-4010-8b95-8a093bed3286",
75
- name: "height",
76
- type: "int",
77
- value: 12
78
- },
79
- {
80
- code: "f9eb7085-a8de-41ba-80d6-42bfca245e48",
81
- name: "weight",
82
- type: "int",
83
- value: 123
84
- },
85
- {
86
- code: "4926d447-a1cb-4097-a7d0-f6ca4da3c580",
87
- name: "v1",
88
- type: "string",
89
- value: "http"
90
- },
91
- {
92
- code: "5c491ff8-5204-446a-a684-ca90263d4c84",
93
- name: "v2",
94
- type: "array",
95
- value: "",
96
- items: [
97
- {
98
- isArrayElement: true,
99
- code: "5baf0a42-ddb3-4dd5-a80d-c2d8c299c07f",
100
- name: "items",
101
- type: "string",
102
- value: "",
103
- items: [
104
- {
105
- code: "e10177c3-4ccb-4483-b12e-7c1eccd6e45f",
106
- name: "",
107
- type: "string",
108
- value: "sss",
109
- lockedName: true,
110
- lockedType: true
111
- },
112
- {
113
- code: "46fdb05a-d5e3-40d0-9105-197880659751",
114
- name: "",
115
- type: "string",
116
- value: "sss"
117
- },
118
- {
119
- code: "a0bf495d-f493-49d0-a35a-d98d89a8479f",
120
- name: "",
121
- type: "string",
122
- value: "sss",
123
- lockedName: true,
124
- lockedType: true
125
- }
126
- ]
127
- }
128
- ]
129
- },
130
- {
131
- code: "ed64fe94-e19d-4bab-9b47-9836899ac2d2",
132
- name: "v3",
133
- type: "object",
134
- value: "",
135
- items: [
136
- {
137
- code: "72d87f04-d58e-470e-82e0-184d4d814f42",
138
- name: "v31",
139
- type: "int",
140
- value: 1
141
- }
142
- ]
143
- },
144
- {
145
- code: "4fa68c62-0f35-45ed-a44b-8677b2c642e3",
146
- name: "v4",
147
- type: "boolean",
148
- value: false
149
- },
150
- {
151
- code: "69e3d96b-30c5-4b91-b7e7-d3f79659c091",
152
- name: "v6",
153
- type: "object",
154
- value: "",
155
- items: [
156
- {
157
- code: "91352f2c-39f7-4424-a058-050412b4b1c0",
158
- name: "v66",
159
- type: "string",
160
- value: "a"
161
- }
162
- ]
163
- },
164
- {
165
- code: "63157b30-0ed3-4e7f-81de-73758d0652bc",
166
- name: "v7a",
167
- type: "object",
168
- value: "",
169
- items: [
170
- {
171
- code: "23bc3a92-c233-4262-afd9-58669d17bc7e",
172
- name: "v71",
173
- type: "string",
174
- value: "sss"
175
- },
176
- {
177
- code: "07357f81-f2b4-4c2e-aefa-a5511cec8e94",
178
- name: "v72",
179
- type: "int",
180
- value: 2
181
- }
182
- ]
183
- }
184
- ]);
57
+ const entityData = ref([]);
58
+ const requestData = ref([]);
185
59
  const editor = ref(null);
186
60
  const jsonValue = ref("");
187
61
  const eitorHeight = ref();
@@ -250,7 +124,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
250
124
  }
251
125
  const testRun = () => {
252
126
  const testRunDTO = packageTestRunDTO();
253
- http.post("/dsc/service-flow/test", testRunDTO).then((res) => {
127
+ debugger;
128
+ const baseUrl = getBaseUrl(props.pageContext.backendUrl, props.pageContext.isTest);
129
+ http.post(baseUrl + "/dsc/service-flow/test", testRunDTO).then((res) => {
254
130
  console.log(res);
255
131
  jsonObject.value = res;
256
132
  }).catch((err) => {
@@ -297,6 +173,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
297
173
  };
298
174
  return JSON.stringify(data);
299
175
  };
176
+ function getBaseUrl(backendUrl, isTest) {
177
+ if (isTest) {
178
+ return backendUrl;
179
+ } else {
180
+ let baseUrl = window["$vueApp"].config.globalProperties.baseURL;
181
+ if (backendUrl) {
182
+ baseUrl = getSystemBackendUrl(backendUrl);
183
+ }
184
+ return baseUrl;
185
+ }
186
+ }
300
187
  return (_ctx, _cache) => {
301
188
  const _component_el_radio_button = ElRadioButton;
302
189
  const _component_el_radio_group = ElRadioGroup;
@@ -11,6 +11,10 @@ declare const _default: import('vue').DefineComponent<{
11
11
  type: ArrayConstructor;
12
12
  default: () => any[];
13
13
  };
14
+ pageContext: {
15
+ type: ObjectConstructor;
16
+ default: () => {};
17
+ };
14
18
  }, {
15
19
  onDragNode: (serviceComponent: NodeType<any>) => void;
16
20
  onServiceClick: (clickService: Service) => void;
@@ -29,12 +33,17 @@ declare const _default: import('vue').DefineComponent<{
29
33
  type: ArrayConstructor;
30
34
  default: () => any[];
31
35
  };
36
+ pageContext: {
37
+ type: ObjectConstructor;
38
+ default: () => {};
39
+ };
32
40
  }>> & {
33
41
  "onLoad-tree-data"?: (...args: any[]) => any;
34
42
  onOnBlankClick?: (...args: any[]) => any;
35
43
  onOnDeleteNode?: (...args: any[]) => any;
36
44
  "onUpdate:logicFlowInstance"?: (...args: any[]) => any;
37
45
  }, {
46
+ pageContext: Record<string, any>;
38
47
  serviceTreeData: unknown[];
39
48
  logicFlowInstance: LogicFlow;
40
49
  }, {}>;
@@ -1,7 +1,7 @@
1
1
  import _sfc_main from "./view-index.vue2.js";
2
2
  import "./view-index.vue3.js";
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
- const ServiceFlowView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d89ee0ea"]]);
4
+ const ServiceFlowView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-0ca3e4c5"]]);
5
5
  export {
6
6
  ServiceFlowView as default
7
7
  };
@@ -18,7 +18,7 @@ import "../service-components/index.js";
18
18
  import { findServcieByCode, isDeepEqual } from "../common/util/node-util.js";
19
19
  import { useServiceFlowStore } from "../../stores/page-store.js";
20
20
  import { ElMessageBox, ElMessage } from "element-plus";
21
- const _withScopeId = (n) => (pushScopeId("data-v-d89ee0ea"), n = n(), popScopeId(), n);
21
+ const _withScopeId = (n) => (pushScopeId("data-v-0ca3e4c5"), n = n(), popScopeId(), n);
22
22
  const _hoisted_1 = {
23
23
  class: "serviceflow-design-content",
24
24
  ref: "ambServiceFlowContent"
@@ -41,6 +41,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
41
  serviceTreeData: {
42
42
  type: Array,
43
43
  default: () => []
44
+ },
45
+ pageContext: {
46
+ type: Object,
47
+ default: () => ({})
44
48
  }
45
49
  },
46
50
  emits: ["onBlankClick", "onDeleteNode", "update:logicFlowInstance", "load-tree-data"],
@@ -284,10 +288,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
284
288
  createVNode(serviceFlowTool, {
285
289
  cloneService: cloneService.value,
286
290
  lf: lf.value,
291
+ pageContext: __props.pageContext,
287
292
  onShowJson: showJson,
288
293
  onShowServiceLog: showServiceLog,
289
294
  onSaveSevice: saveService
290
- }, null, 8, ["cloneService", "lf"]),
295
+ }, null, 8, ["cloneService", "lf", "pageContext"]),
291
296
  createElementVNode("div", _hoisted_3, [
292
297
  createElementVNode("div", {
293
298
  style: normalizeStyle(logicFlowContainerStyle.value),