service-flow-designer 2.1.58 → 2.1.96

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 (185) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
  2. package/dist/es/assets/icon/aggregateQuery.svg.js +2 -2
  3. package/dist/es/assets/icon/base.png.js +2 -2
  4. package/dist/es/assets/icon/clean.svg.js +2 -2
  5. package/dist/es/assets/icon/condition.png.js +2 -2
  6. package/dist/es/assets/icon/connect.svg.js +2 -2
  7. package/dist/es/assets/icon/dynamicSql.svg.js +2 -2
  8. package/dist/es/assets/icon/end.png.js +2 -2
  9. package/dist/es/assets/icon/end.svg.js +2 -2
  10. package/dist/es/assets/icon/function.png.js +2 -2
  11. package/dist/es/assets/icon/http-service.svg.js +2 -2
  12. package/dist/es/assets/icon/loop.svg.js +2 -2
  13. package/dist/es/assets/icon/notification.svg.js +2 -2
  14. package/dist/es/assets/icon/regularQuery.svg.js +2 -2
  15. package/dist/es/assets/icon/sort.svg.js +2 -2
  16. package/dist/es/assets/icon/split-joint.svg.js +2 -2
  17. package/dist/es/assets/icon/start.png.js +2 -2
  18. package/dist/es/assets/icon/statistics.svg.js +2 -2
  19. package/dist/es/assets/icon/vardef-v.png.js +2 -2
  20. package/dist/es/designer/common/components/database-select.vue.js +4 -4
  21. package/dist/es/designer/common/components/database-select.vue2.js +29 -205
  22. package/dist/es/designer/common/components/datatable-select.vue.js +4 -4
  23. package/dist/es/designer/common/components/datatable-select.vue2.js +52 -299
  24. package/dist/es/designer/common/components/file-upload.vue.js +4 -4
  25. package/dist/es/designer/common/components/file-upload.vue2.js +27 -98
  26. package/dist/es/designer/common/components/json-view/json-view-dialog.vue.js +18 -60
  27. package/dist/es/designer/common/components/json-view/json-view-dialog.vue2.js +2 -2
  28. package/dist/es/designer/common/components/json-view/json-view.vue.js +51 -137
  29. package/dist/es/designer/common/components/json-view/json-view.vue2.js +2 -2
  30. package/dist/es/designer/common/components/node-base-config.vue.js +7 -63
  31. package/dist/es/designer/common/components/node-base-config.vue2.js +2 -2
  32. package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue.js +17 -62
  33. package/dist/es/designer/common/components/sql-view/sql-view-dialog.vue2.js +2 -2
  34. package/dist/es/designer/common/components/sql-view/sql-view.vue.js +2 -2
  35. package/dist/es/designer/common/components/sql-view/sql-view.vue2.js +30 -100
  36. package/dist/es/designer/common/components/value-set-input/index.js +2 -2
  37. package/dist/es/designer/common/components/value-set-input/option.js +6 -59
  38. package/dist/es/designer/common/components/value-set-input/value-set-input.vue.js +4 -4
  39. package/dist/es/designer/common/components/value-set-input/value-set-input.vue2.js +122 -557
  40. package/dist/es/designer/common/util/node-util.js +32 -42
  41. package/dist/es/designer/desginer-index.vue.js +4 -4
  42. package/dist/es/designer/desginer-index.vue2.js +31 -106
  43. package/dist/es/designer/flow/base/AbLogicNode.js +9 -10
  44. package/dist/es/designer/flow/base/AbLogicNodeModel.js +21 -49
  45. package/dist/es/designer/flow/base/AbLogicResizeNode.js +9 -10
  46. package/dist/es/designer/flow/base/AbLogicResizeNodeModel.js +10 -26
  47. package/dist/es/designer/flow/edge/CustomLine.js +15 -42
  48. package/dist/es/designer/service-components/base/custom-function/config.vue.js +4 -4
  49. package/dist/es/designer/service-components/base/custom-function/config.vue2.js +55 -302
  50. package/dist/es/designer/service-components/base/custom-function/index.js +12 -34
  51. package/dist/es/designer/service-components/base/custom-function/index.vue.js +4 -4
  52. package/dist/es/designer/service-components/base/custom-function/index.vue2.js +8 -40
  53. package/dist/es/designer/service-components/base/end-node/index.js +25 -64
  54. package/dist/es/designer/service-components/base/end-node/index.vue.js +4 -4
  55. package/dist/es/designer/service-components/base/end-node/index.vue2.js +4 -29
  56. package/dist/es/designer/service-components/base/judge-condition/config.vue.js +2 -2
  57. package/dist/es/designer/service-components/base/judge-condition/config.vue2.js +61 -570
  58. package/dist/es/designer/service-components/base/judge-condition/index.js +13 -35
  59. package/dist/es/designer/service-components/base/judge-condition/index.vue.js +4 -4
  60. package/dist/es/designer/service-components/base/judge-condition/index.vue2.js +12 -63
  61. package/dist/es/designer/service-components/base/loop-node/config.vue.js +4 -4
  62. package/dist/es/designer/service-components/base/loop-node/config.vue2.js +9 -73
  63. package/dist/es/designer/service-components/base/loop-node/index.js +37 -145
  64. package/dist/es/designer/service-components/base/notification/config.vue.js +2 -2
  65. package/dist/es/designer/service-components/base/notification/config.vue2.js +35 -320
  66. package/dist/es/designer/service-components/base/notification/index.js +12 -34
  67. package/dist/es/designer/service-components/base/notification/index.vue.js +4 -4
  68. package/dist/es/designer/service-components/base/notification/index.vue2.js +8 -40
  69. package/dist/es/designer/service-components/base/notification/recipients-select.vue.js +4 -4
  70. package/dist/es/designer/service-components/base/notification/recipients-select.vue2.js +23 -146
  71. package/dist/es/designer/service-components/base/notification/select-mail-template.vue.js +17 -103
  72. package/dist/es/designer/service-components/base/notification/select-mail-template.vue2.js +2 -2
  73. package/dist/es/designer/service-components/base/start-node/index.js +25 -65
  74. package/dist/es/designer/service-components/base/start-node/index.vue.js +4 -4
  75. package/dist/es/designer/service-components/base/start-node/index.vue2.js +4 -29
  76. package/dist/es/designer/service-components/components-icons.js +17 -33
  77. package/dist/es/designer/service-components/computation/clean/config.vue.js +4 -4
  78. package/dist/es/designer/service-components/computation/clean/config.vue2.js +40 -419
  79. package/dist/es/designer/service-components/computation/clean/index.js +12 -34
  80. package/dist/es/designer/service-components/computation/clean/index.vue.js +4 -4
  81. package/dist/es/designer/service-components/computation/clean/index.vue2.js +8 -40
  82. package/dist/es/designer/service-components/computation/connect/config.vue.js +4 -4
  83. package/dist/es/designer/service-components/computation/connect/config.vue2.js +38 -506
  84. package/dist/es/designer/service-components/computation/connect/index.js +12 -34
  85. package/dist/es/designer/service-components/computation/connect/index.vue.js +4 -4
  86. package/dist/es/designer/service-components/computation/connect/index.vue2.js +8 -40
  87. package/dist/es/designer/service-components/computation/sort/config.vue.js +4 -4
  88. package/dist/es/designer/service-components/computation/sort/config.vue2.js +41 -297
  89. package/dist/es/designer/service-components/computation/sort/index.js +12 -34
  90. package/dist/es/designer/service-components/computation/sort/index.vue.js +4 -4
  91. package/dist/es/designer/service-components/computation/sort/index.vue2.js +8 -40
  92. package/dist/es/designer/service-components/computation/split-joint/config.vue.js +4 -4
  93. package/dist/es/designer/service-components/computation/split-joint/config.vue2.js +27 -327
  94. package/dist/es/designer/service-components/computation/split-joint/index.js +12 -34
  95. package/dist/es/designer/service-components/computation/split-joint/index.vue.js +4 -4
  96. package/dist/es/designer/service-components/computation/split-joint/index.vue2.js +8 -40
  97. package/dist/es/designer/service-components/computation/statistics/config.vue.js +4 -4
  98. package/dist/es/designer/service-components/computation/statistics/config.vue2.js +41 -436
  99. package/dist/es/designer/service-components/computation/statistics/index.js +12 -34
  100. package/dist/es/designer/service-components/computation/statistics/index.vue.js +4 -4
  101. package/dist/es/designer/service-components/computation/statistics/index.vue2.js +8 -40
  102. package/dist/es/designer/service-components/database/aggregate-query/config.vue.js +4 -4
  103. package/dist/es/designer/service-components/database/aggregate-query/config.vue2.js +75 -375
  104. package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue.js +22 -217
  105. package/dist/es/designer/service-components/database/aggregate-query/dimension-statistical.vue2.js +2 -2
  106. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue.js +30 -439
  107. package/dist/es/designer/service-components/database/aggregate-query/filter-conditions.vue2.js +2 -2
  108. package/dist/es/designer/service-components/database/aggregate-query/index.js +13 -35
  109. package/dist/es/designer/service-components/database/aggregate-query/index.vue.js +4 -4
  110. package/dist/es/designer/service-components/database/aggregate-query/index.vue2.js +22 -90
  111. package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue.js +15 -177
  112. package/dist/es/designer/service-components/database/aggregate-query/sort-conditions.vue2.js +2 -2
  113. package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue.js +16 -185
  114. package/dist/es/designer/service-components/database/aggregate-query/statistical-formula.vue2.js +2 -2
  115. package/dist/es/designer/service-components/database/dynamic-sql/config.vue.js +4 -4
  116. package/dist/es/designer/service-components/database/dynamic-sql/config.vue2.js +66 -474
  117. package/dist/es/designer/service-components/database/dynamic-sql/index.js +12 -34
  118. package/dist/es/designer/service-components/database/dynamic-sql/index.vue.js +4 -4
  119. package/dist/es/designer/service-components/database/dynamic-sql/index.vue2.js +8 -40
  120. package/dist/es/designer/service-components/database/regular-query/config.vue.js +4 -4
  121. package/dist/es/designer/service-components/database/regular-query/config.vue2.js +52 -749
  122. package/dist/es/designer/service-components/database/regular-query/index.js +13 -35
  123. package/dist/es/designer/service-components/database/regular-query/index.vue.js +4 -4
  124. package/dist/es/designer/service-components/database/regular-query/index.vue2.js +22 -85
  125. package/dist/es/designer/service-components/index.js +33 -224
  126. package/dist/es/designer/service-components/service/common/cookie-data.vue.js +18 -125
  127. package/dist/es/designer/service-components/service/common/cookie-data.vue2.js +2 -2
  128. package/dist/es/designer/service-components/service/common/form-data.vue.js +18 -153
  129. package/dist/es/designer/service-components/service/common/form-data.vue2.js +2 -2
  130. package/dist/es/designer/service-components/service/common/header-data.vue.js +18 -126
  131. package/dist/es/designer/service-components/service/common/header-data.vue2.js +2 -2
  132. package/dist/es/designer/service-components/service/common/json-data.vue.js +4 -4
  133. package/dist/es/designer/service-components/service/common/json-data.vue2.js +18 -127
  134. package/dist/es/designer/service-components/service/common/param-config.vue.js +4 -4
  135. package/dist/es/designer/service-components/service/common/param-config.vue2.js +19 -211
  136. package/dist/es/designer/service-components/service/common/query-params.vue.js +18 -126
  137. package/dist/es/designer/service-components/service/common/query-params.vue2.js +2 -2
  138. package/dist/es/designer/service-components/service/common/raw-data.vue.js +27 -93
  139. package/dist/es/designer/service-components/service/common/raw-data.vue2.js +2 -2
  140. package/dist/es/designer/service-components/service/custom-bean/config.vue.js +2 -2
  141. package/dist/es/designer/service-components/service/custom-bean/config.vue2.js +9 -74
  142. package/dist/es/designer/service-components/service/custom-bean/index.js +12 -34
  143. package/dist/es/designer/service-components/service/custom-bean/index.vue.js +4 -4
  144. package/dist/es/designer/service-components/service/custom-bean/index.vue2.js +8 -40
  145. package/dist/es/designer/service-components/service/http-service/config.vue.js +4 -4
  146. package/dist/es/designer/service-components/service/http-service/config.vue2.js +23 -296
  147. package/dist/es/designer/service-components/service/http-service/index.js +12 -34
  148. package/dist/es/designer/service-components/service/http-service/index.vue.js +4 -4
  149. package/dist/es/designer/service-components/service/http-service/index.vue2.js +8 -40
  150. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue.js +44 -262
  151. package/dist/es/designer/service-components/service/http-service/response-json-setting.vue2.js +2 -2
  152. package/dist/es/designer/service-components/service/http-service/response-text-setting.vue.js +15 -63
  153. package/dist/es/designer/service-components/service/http-service/response-text-setting.vue2.js +2 -2
  154. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue.js +44 -262
  155. package/dist/es/designer/service-components/service/http-service/response-xml-setting.vue2.js +2 -2
  156. package/dist/es/designer/service-components/util/common-options.js +15 -129
  157. package/dist/es/designer/service-flow-view/flow-tool-util.js +14 -24
  158. package/dist/es/designer/service-flow-view/flow-util.js +52 -129
  159. package/dist/es/designer/service-flow-view/service-flow-tool.vue.js +4 -4
  160. package/dist/es/designer/service-flow-view/service-flow-tool.vue2.js +29 -188
  161. package/dist/es/designer/service-flow-view/service-node-config.vue.js +4 -4
  162. package/dist/es/designer/service-flow-view/service-node-config.vue2.js +28 -153
  163. package/dist/es/designer/service-flow-view/service-params.vue.js +53 -421
  164. package/dist/es/designer/service-flow-view/service-params.vue2.js +2 -2
  165. package/dist/es/designer/service-flow-view/service-result.vue.js +56 -310
  166. package/dist/es/designer/service-flow-view/service-result.vue2.js +2 -2
  167. package/dist/es/designer/service-flow-view/service-test/request-params.vue.js +40 -307
  168. package/dist/es/designer/service-flow-view/service-test/request-params.vue2.js +2 -2
  169. package/dist/es/designer/service-flow-view/service-test/service-test.vue.js +65 -326
  170. package/dist/es/designer/service-flow-view/service-test/service-test.vue2.js +2 -2
  171. package/dist/es/designer/service-flow-view/service-update-log.vue.js +4 -4
  172. package/dist/es/designer/service-flow-view/service-update-log.vue2.js +35 -234
  173. package/dist/es/designer/service-flow-view/view-index.vue.js +4 -4
  174. package/dist/es/designer/service-flow-view/view-index.vue2.js +92 -353
  175. package/dist/es/designer/service-panel/component-panel.vue.js +4 -4
  176. package/dist/es/designer/service-panel/component-panel.vue2.js +13 -81
  177. package/dist/es/designer/service-panel/service-list.vue.js +4 -4
  178. package/dist/es/designer/service-panel/service-list.vue2.js +76 -497
  179. package/dist/es/designer/service-panel/service-panel.vue.js +4 -4
  180. package/dist/es/designer/service-panel/service-panel.vue2.js +18 -78
  181. package/dist/es/index.js +2 -2
  182. package/dist/es/stores/page-store.js +26 -73
  183. package/dist/es/style.css +288 -288
  184. package/dist/es/utils/common-util.js +103 -211
  185. package/package.json +3 -2
@@ -1,142 +1,56 @@
1
- import { defineComponent, ref, watch, onMounted, nextTick, openBlock, createElementBlock } from "vue";
2
- import { EditorView, basicSetup } from "codemirror";
3
- import { jsonLanguage } from "@codemirror/lang-json";
4
- import { EditorState, Facet } from "@codemirror/state";
5
- import { eclipse, githubDark, githubLight, dracula, vscodeDark, xcodeDark, xcodeLight } from "@uiw/codemirror-themes-all";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- ...{
8
- name: "JsonView",
9
- inheritAttrs: false
10
- },
11
- __name: "json-view",
12
- props: {
13
- jsonObject: {
14
- type: Object,
15
- default: () => {
16
- }
17
- },
18
- height: {
19
- type: Number,
20
- default: 0
21
- },
22
- theme: {
23
- type: String,
24
- default: null
1
+ import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as o, openBlock as i, createElementBlock as c } from "vue";
2
+ import { EditorView as s, basicSetup as a } from "codemirror";
3
+ import { jsonLanguage as u } from "@codemirror/lang-json";
4
+ import { EditorState as m, Facet as l } from "@codemirror/state";
5
+ import { eclipse as f, githubDark as h, githubLight as d, dracula as g, vscodeDark as p, xcodeDark as v, xcodeLight as j } from "@uiw/codemirror-themes-all";
6
+ const w = e({ name: "JsonView", inheritAttrs: false, __name: "json-view", props: { jsonObject: { type: Object, default: () => {
7
+ } }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
8
+ const w2 = e2, y = t(null), b = t(), x = t("400px");
9
+ function O() {
10
+ y.value && y.value.destroy();
11
+ const e3 = w2.jsonObject ? JSON.stringify(w2.jsonObject, null, 2) : "";
12
+ if (w2.height)
13
+ x.value = w2.height + "px";
14
+ else if (b.value) {
15
+ const e4 = b.value.getBoundingClientRect();
16
+ (e4.y || 0 === e4.y) && (x.value = window.innerHeight - e4.y - 100 + "px");
25
17
  }
26
- },
27
- setup(__props) {
28
- const props = __props;
29
- const editor = ref(null);
30
- const cfCodemirrorJsonViewRef = ref();
31
- const codemirrorHeight = ref("400px");
32
- watch(
33
- () => props.jsonObject,
34
- (newVal) => {
35
- if (editor.value) {
36
- loadEditor();
37
- }
38
- },
39
- { deep: true }
40
- );
41
- onMounted(() => {
42
- nextTick(() => {
43
- loadEditor();
44
- });
45
- });
46
- function loadEditor() {
47
- if (editor.value) {
48
- editor.value.destroy();
49
- }
50
- const jsonStr = props.jsonObject ? JSON.stringify(props.jsonObject, null, 2) : "";
51
- if (props.height) {
52
- codemirrorHeight.value = props.height + "px";
53
- } else {
54
- if (cfCodemirrorJsonViewRef.value) {
55
- const rect = cfCodemirrorJsonViewRef.value.getBoundingClientRect();
56
- if (rect.y || rect.y === 0) {
57
- console.log("window.innerHeight - rect.y", window.innerHeight, rect.y);
58
- codemirrorHeight.value = window.innerHeight - rect.y - 100 + "px";
59
- }
60
- }
61
- }
62
- const state = getEditorState(jsonStr);
63
- let element = document.getElementById("cf-codemirror-view-json");
64
- if (element) {
65
- editor.value = new EditorView({
66
- state,
67
- parent: element
68
- });
69
- }
70
- }
71
- function getEditorState(jsonStr) {
72
- const mytheme = getTheme();
73
- const baseTheme = EditorView.theme({
74
- ".cm-content, .cm-gutter": { minHeight: codemirrorHeight.value },
75
- "&": {
76
- height: codemirrorHeight.value,
77
- maxHeight: codemirrorHeight.value,
78
- fontSize: "12px"
79
- }
80
- });
81
- return EditorState.create({
82
- doc: jsonStr,
83
- extensions: [
84
- EditorState.tabSize.of(16),
85
- basicSetup,
86
- jsonLanguage,
87
- mytheme,
88
- baseTheme,
89
- readOnlyFacet.of(true),
90
- preventChanges
91
- ]
92
- });
93
- }
94
- const readOnlyFacet = Facet.define({ combine: (values) => values.some((a) => a) });
95
- const preventChanges = EditorState.transactionFilter.of((tr) => {
96
- if (tr.isUserEvent && tr.docChanged && tr.state.facet(readOnlyFacet)) {
97
- return {
98
- changes: {
99
- from: tr.changes.from,
100
- to: tr.changes.to,
101
- insert: tr.startState.doc.sliceString(tr.changes.from, tr.changes.to)
18
+ const t2 = function(e4) {
19
+ const t3 = function() {
20
+ if (w2.theme)
21
+ switch (w2.theme) {
22
+ case "xcodeLight":
23
+ return j;
24
+ case "xcodeDark":
25
+ return v;
26
+ case "vscodeDark":
27
+ return p;
28
+ case "dracula":
29
+ return g;
30
+ case "githubLight":
31
+ return d;
32
+ case "githubDark":
33
+ return h;
34
+ case "eclipse":
35
+ return f;
102
36
  }
103
- };
104
- }
105
- return tr;
106
- });
107
- function getTheme() {
108
- if (props.theme) {
109
- switch (props.theme) {
110
- case "xcodeLight":
111
- return xcodeLight;
112
- case "xcodeDark":
113
- return xcodeDark;
114
- case "vscodeDark":
115
- return vscodeDark;
116
- case "dracula":
117
- return dracula;
118
- case "githubLight":
119
- return githubLight;
120
- case "githubDark":
121
- return githubDark;
122
- case "eclipse":
123
- return eclipse;
124
- }
125
- }
126
- return EditorView.theme({});
127
- }
128
- return (_ctx, _cache) => {
129
- return openBlock(), createElementBlock("div", {
130
- style: {
131
- width: "100%"
132
- },
133
- ref_key: "cfCodemirrorJsonViewRef",
134
- ref: cfCodemirrorJsonViewRef,
135
- id: "cf-codemirror-view-json"
136
- }, null, 512);
137
- };
37
+ return s.theme({});
38
+ }(), r3 = s.theme({ ".cm-content, .cm-gutter": { minHeight: x.value }, "&": { height: x.value, maxHeight: x.value, fontSize: "12px" } });
39
+ return m.create({ doc: e4, extensions: [m.tabSize.of(16), a, u, t3, r3, S.of(true), k] });
40
+ }(e3);
41
+ let r2 = document.getElementById("cf-codemirror-view-json");
42
+ r2 && (y.value = new s({ state: t2, parent: r2 }));
138
43
  }
139
- });
44
+ r(() => w2.jsonObject, (e3) => {
45
+ y.value && O();
46
+ }, { deep: true }), n(() => {
47
+ o(() => {
48
+ O();
49
+ });
50
+ });
51
+ const S = l.define({ combine: (e3) => e3.some((e4) => e4) }), k = m.transactionFilter.of((e3) => e3.isUserEvent && e3.docChanged && e3.state.facet(S) ? { changes: { from: e3.changes.from, to: e3.changes.to, insert: e3.startState.doc.sliceString(e3.changes.from, e3.changes.to) } } : e3);
52
+ return (e3, t2) => (i(), c("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: b, id: "cf-codemirror-view-json" }, null, 512));
53
+ } });
140
54
  export {
141
- _sfc_main as default
55
+ w as default
142
56
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./json-view.vue.js";
1
+ import e from "./json-view.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,70 +1,14 @@
1
- import { ElInput, ElColorPicker, ElTooltip, ElFormItem } from "element-plus/es";
1
+ import { ElInput as e, ElColorPicker as l, ElTooltip as o, ElFormItem as t } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/form-item/style/css";
4
4
  import "element-plus/es/components/tooltip/style/css";
5
5
  import "element-plus/es/components/color-picker/style/css";
6
6
  import "element-plus/es/components/input/style/css";
7
- import { defineComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createElementVNode } from "vue";
8
- const _hoisted_1 = { style: { "position": "absolute", "right": "0" } };
9
- const _sfc_main = /* @__PURE__ */ defineComponent({
10
- __name: "node-base-config",
11
- props: {
12
- properties: {
13
- type: Object,
14
- default: () => {
15
- return {};
16
- }
17
- }
18
- },
19
- setup(__props, { expose: __expose }) {
20
- __expose({});
21
- return (_ctx, _cache) => {
22
- const _component_el_input = ElInput;
23
- const _component_el_color_picker = ElColorPicker;
24
- const _component_el_tooltip = ElTooltip;
25
- const _component_el_form_item = ElFormItem;
26
- return openBlock(), createElementBlock(Fragment, null, [
27
- createVNode(_component_el_form_item, { label: "别名:" }, {
28
- default: withCtx(() => [
29
- createVNode(_component_el_input, {
30
- modelValue: __props.properties.name,
31
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.properties.name = $event),
32
- placeholder: "",
33
- style: { "width": "85%" }
34
- }, null, 8, ["modelValue"]),
35
- createVNode(_component_el_tooltip, {
36
- effect: "dark",
37
- content: "主题颜色",
38
- placement: "top"
39
- }, {
40
- default: withCtx(() => [
41
- createElementVNode("span", _hoisted_1, [
42
- createVNode(_component_el_color_picker, {
43
- modelValue: __props.properties.backgroundColor,
44
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.properties.backgroundColor = $event)
45
- }, null, 8, ["modelValue"])
46
- ])
47
- ]),
48
- _: 1
49
- })
50
- ]),
51
- _: 1
52
- }),
53
- createVNode(_component_el_form_item, { label: "功能描述:" }, {
54
- default: withCtx(() => [
55
- createVNode(_component_el_input, {
56
- modelValue: __props.properties.description,
57
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.properties.description = $event),
58
- placeholder: "",
59
- style: { "width": "85%" }
60
- }, null, 8, ["modelValue"])
61
- ]),
62
- _: 1
63
- })
64
- ], 64);
65
- };
66
- }
67
- });
7
+ import { defineComponent as s, openBlock as p, createElementBlock as n, Fragment as r, createVNode as m, withCtx as a, createElementVNode as u } from "vue";
8
+ const i = { style: { position: "absolute", right: "0" } }, d = s({ __name: "node-base-config", props: { properties: { type: Object, default: () => ({}) } }, setup: (s2, { expose: d2 }) => (d2({}), (d3, c) => {
9
+ const f = e, y = l, V = o, b = t;
10
+ return p(), n(r, null, [m(b, { label: "别名:" }, { default: a(() => [m(f, { modelValue: s2.properties.name, "onUpdate:modelValue": c[0] || (c[0] = (e2) => s2.properties.name = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"]), m(V, { effect: "dark", content: "主题颜色", placement: "top" }, { default: a(() => [u("span", i, [m(y, { modelValue: s2.properties.backgroundColor, "onUpdate:modelValue": c[1] || (c[1] = (e2) => s2.properties.backgroundColor = e2) }, null, 8, ["modelValue"])])]), _: 1 })]), _: 1 }), m(b, { label: "功能描述:" }, { default: a(() => [m(f, { modelValue: s2.properties.description, "onUpdate:modelValue": c[2] || (c[2] = (e2) => s2.properties.description = e2), placeholder: "", style: { width: "85%" } }, null, 8, ["modelValue"])]), _: 1 })], 64);
11
+ }) });
68
12
  export {
69
- _sfc_main as default
13
+ d as default
70
14
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./node-base-config.vue.js";
1
+ import e from "./node-base-config.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,66 +1,21 @@
1
- import { ElDialog } from "element-plus/es";
1
+ import { ElDialog as e } from "element-plus/es";
2
2
  import "element-plus/es/components/base/style/css";
3
3
  import "element-plus/es/components/dialog/style/css";
4
- import { defineComponent, ref, watch, openBlock, createBlock, withCtx, createVNode } from "vue";
5
- import _sfc_main$1 from "./sql-view.vue2.js";
6
- const _sfc_main = /* @__PURE__ */ defineComponent({
7
- ...{
8
- name: "SqlViewDialog",
9
- inheritAttrs: false
10
- },
11
- __name: "sql-view-dialog",
12
- props: {
13
- sql: {
14
- type: String,
15
- default: null
16
- },
17
- appendToBody: {
18
- type: Boolean,
19
- default: true
20
- },
21
- modelValue: {
22
- type: Boolean,
23
- default: false
24
- }
25
- },
26
- emits: ["update:modelValue"],
27
- setup(__props, { emit: __emit }) {
28
- const props = __props;
29
- const emits = __emit;
30
- const showJsonVisible = ref(false);
31
- watch(
32
- () => props.modelValue,
33
- (newVal) => {
34
- if (newVal) {
35
- showJsonVisible.value = true;
36
- }
37
- }
38
- );
39
- const close = () => {
40
- showJsonVisible.value = false;
41
- emits("update:modelValue", false);
42
- };
43
- return (_ctx, _cache) => {
44
- const _component_el_dialog = ElDialog;
45
- return openBlock(), createBlock(_component_el_dialog, {
46
- modelValue: showJsonVisible.value,
47
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showJsonVisible.value = $event),
48
- "append-to-body": __props.appendToBody,
49
- title: "SQL预览",
50
- width: "600",
51
- onClose: close
52
- }, {
53
- default: withCtx(() => [
54
- createVNode(_sfc_main$1, {
55
- sql: __props.sql,
56
- height: 400
57
- }, null, 8, ["sql"])
58
- ]),
59
- _: 1
60
- }, 8, ["modelValue", "append-to-body"]);
61
- };
62
- }
63
- });
4
+ import { defineComponent as l, ref as o, watch as t, openBlock as a, createBlock as s, withCtx as p, createVNode as u } from "vue";
5
+ import n from "./sql-view.vue2.js";
6
+ const d = l({ name: "SqlViewDialog", inheritAttrs: false, __name: "sql-view-dialog", props: { sql: { type: String, default: null }, appendToBody: { type: Boolean, default: true }, modelValue: { type: Boolean, default: false } }, emits: ["update:modelValue"], setup(l2, { emit: d2 }) {
7
+ const m = l2, i = d2, r = o(false);
8
+ t(() => m.modelValue, (e2) => {
9
+ e2 && (r.value = true);
10
+ });
11
+ const y = () => {
12
+ r.value = false, i("update:modelValue", false);
13
+ };
14
+ return (o2, t2) => {
15
+ const d3 = e;
16
+ return a(), s(d3, { modelValue: r.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e2) => r.value = e2), "append-to-body": l2.appendToBody, title: "SQL预览", width: "600", onClose: y }, { default: p(() => [u(n, { sql: l2.sql, height: 400 }, null, 8, ["sql"])]), _: 1 }, 8, ["modelValue", "append-to-body"]);
17
+ };
18
+ } });
64
19
  export {
65
- _sfc_main as default
20
+ d as default
66
21
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./sql-view-dialog.vue.js";
1
+ import e from "./sql-view-dialog.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./sql-view.vue2.js";
1
+ import e from "./sql-view.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,104 +1,34 @@
1
- import { defineComponent, ref, onMounted, nextTick, watch, openBlock, createElementBlock } from "vue";
2
- import { EditorView, basicSetup } from "codemirror";
3
- import { sql } from "@codemirror/lang-sql";
4
- import { Facet, EditorState } from "@codemirror/state";
5
- const _sfc_main = /* @__PURE__ */ defineComponent({
6
- ...{
7
- name: "SqlView",
8
- inheritAttrs: false
9
- },
10
- __name: "sql-view",
11
- props: {
12
- sql: {
13
- type: String,
14
- default: null
15
- },
16
- height: {
17
- type: Number,
18
- default: 0
19
- },
20
- theme: {
21
- type: String,
22
- default: null
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as n, watch as i, openBlock as r, createElementBlock as l } from "vue";
2
+ import { EditorView as u, basicSetup as m } from "codemirror";
3
+ import { sql as s } from "@codemirror/lang-sql";
4
+ import { Facet as a, EditorState as c } from "@codemirror/state";
5
+ const f = e({ name: "SqlView", inheritAttrs: false, __name: "sql-view", props: { sql: { type: String, default: null }, height: { type: Number, default: 0 }, theme: { type: String, default: null } }, setup(e2) {
6
+ const f2 = e2, d = t(null), p = t(), h = t("400px");
7
+ function v() {
8
+ if (d.value && d.value.destroy(), f2.height)
9
+ h.value = f2.height + "px";
10
+ else if (p.value) {
11
+ const e4 = p.value.getBoundingClientRect();
12
+ (e4.y || 0 === e4.y) && (h.value = window.innerHeight - e4.y - 100 + "px");
23
13
  }
24
- },
25
- setup(__props) {
26
- const props = __props;
27
- const editor = ref(null);
28
- const cfCodemirrorJsonViewRef = ref();
29
- const codemirrorHeight = ref("400px");
30
- onMounted(() => {
31
- nextTick(() => {
32
- loadEditor();
33
- });
34
- });
35
- watch(
36
- () => props.sql,
37
- () => {
38
- loadEditor();
39
- }
40
- );
41
- function loadEditor() {
42
- if (editor.value) {
43
- editor.value.destroy();
44
- }
45
- if (props.height) {
46
- codemirrorHeight.value = props.height + "px";
47
- } else {
48
- if (cfCodemirrorJsonViewRef.value) {
49
- const rect = cfCodemirrorJsonViewRef.value.getBoundingClientRect();
50
- if (rect.y || rect.y === 0) {
51
- console.log("window.innerHeight - rect.y", window.innerHeight, rect.y);
52
- codemirrorHeight.value = window.innerHeight - rect.y - 100 + "px";
53
- }
54
- }
55
- }
56
- const state = getEditorState();
57
- let element = document.getElementById("cf-codemirror-view-json");
58
- if (element) {
59
- editor.value = new EditorView({
60
- state,
61
- parent: element
62
- });
63
- }
64
- }
65
- const readOnlyFacet = Facet.define({ combine: (values) => values.some((a) => a) });
66
- function getEditorState() {
67
- const mytheme = EditorView.theme({});
68
- const baseTheme = EditorView.theme({
69
- ".cm-content, .cm-gutter": { minHeight: codemirrorHeight.value },
70
- "&": {
71
- height: codemirrorHeight.value,
72
- maxHeight: codemirrorHeight.value,
73
- fontSize: "12px"
74
- }
75
- });
76
- return EditorState.create({
77
- doc: props.sql,
78
- extensions: [
79
- EditorState.tabSize.of(16),
80
- basicSetup,
81
- sql(),
82
- mytheme,
83
- baseTheme,
84
- readOnlyFacet.of(true),
85
- EditorView.updateListener.of(function(value) {
86
- })
87
- ]
88
- });
89
- }
90
- return (_ctx, _cache) => {
91
- return openBlock(), createElementBlock("div", {
92
- style: {
93
- width: "100%"
94
- },
95
- ref_key: "cfCodemirrorJsonViewRef",
96
- ref: cfCodemirrorJsonViewRef,
97
- id: "cf-codemirror-view-json"
98
- }, null, 512);
99
- };
14
+ const e3 = function() {
15
+ const e4 = u.theme({}), t3 = u.theme({ ".cm-content, .cm-gutter": { minHeight: h.value }, "&": { height: h.value, maxHeight: h.value, fontSize: "12px" } });
16
+ return c.create({ doc: f2.sql, extensions: [c.tabSize.of(16), m, s(), e4, t3, g.of(true), u.updateListener.of(function(e5) {
17
+ })] });
18
+ }();
19
+ let t2 = document.getElementById("cf-codemirror-view-json");
20
+ t2 && (d.value = new u({ state: e3, parent: t2 }));
100
21
  }
101
- });
22
+ o(() => {
23
+ n(() => {
24
+ v();
25
+ });
26
+ }), i(() => f2.sql, () => {
27
+ v();
28
+ });
29
+ const g = a.define({ combine: (e3) => e3.some((e4) => e4) });
30
+ return (e3, t2) => (r(), l("div", { style: { width: "100%" }, ref_key: "cfCodemirrorJsonViewRef", ref: p, id: "cf-codemirror-view-json" }, null, 512));
31
+ } });
102
32
  export {
103
- _sfc_main as default
33
+ f as default
104
34
  };
@@ -1,4 +1,4 @@
1
- import ValueSetInput from "./value-set-input.vue.js";
1
+ import e from "./value-set-input.vue.js";
2
2
  export {
3
- ValueSetInput as default
3
+ e as default
4
4
  };
@@ -1,62 +1,9 @@
1
- const typeOptions = [
2
- {
3
- value: "request",
4
- label: "请求参数"
5
- },
6
- {
7
- value: "data",
8
- label: "数据模型"
9
- },
10
- {
11
- value: "task",
12
- label: "流程变量"
13
- },
14
- {
15
- value: "service",
16
- label: "服务变量"
17
- },
18
- // {
19
- // value: 'page',
20
- // label: '页面变量'
21
- // },
22
- {
23
- value: "system",
24
- label: "系统变量"
25
- },
26
- {
27
- value: "context",
28
- label: "环境变量"
29
- },
30
- {
31
- value: "fixed",
32
- label: "固定值"
33
- }
34
- ];
35
- const contextVarOptions = [
36
- { value: "currentTime", label: "当前时间" },
37
- { value: "currentDate", label: "当前日期" },
38
- { value: "currentTransactorId", label: "当前用户id" },
39
- { value: "currentTransactor", label: "当前用户登录名" },
40
- { value: "currentTransactorName", label: "当前用户姓名" },
41
- { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" },
42
- { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" },
43
- { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }
44
- ];
45
- const taskVarOptions = [
46
- { value: "transactor", label: "当前办理人" },
47
- { value: "nodeId", label: "环节名称" },
48
- { value: "nodeCode", label: "环节编码" },
49
- { value: "assigner", label: "当前指派人" },
50
- { value: "trustor", label: "当前委托人" }
51
- ];
52
- function getTypeOptions(types) {
53
- if (types && types.length > 0) {
54
- return typeOptions.filter((item) => types.includes(item.value));
55
- }
56
- return typeOptions;
1
+ const e = [{ value: "request", label: "请求参数" }, { value: "data", label: "数据模型" }, { value: "task", label: "流程变量" }, { value: "service", label: "服务变量" }, { value: "system", label: "系统变量" }, { value: "context", label: "环境变量" }, { value: "fixed", label: "固定值" }], a = [{ value: "currentTime", label: "当前时间" }, { value: "currentDate", label: "当前日期" }, { value: "currentTransactorId", label: "当前用户id" }, { value: "currentTransactor", label: "当前用户登录名" }, { value: "currentTransactorName", label: "当前用户姓名" }, { value: "currentTransactorMainDepartmentId", label: "当前用户部门id" }, { value: "currentTransactorMainDepartmentCode", label: "当前用户部门编码" }, { value: "currentTransactorMainDepartment", label: "当前用户部门名称" }], l = [{ value: "transactor", label: "当前办理人" }, { value: "nodeId", label: "环节名称" }, { value: "nodeCode", label: "环节编码" }, { value: "assigner", label: "当前指派人" }, { value: "trustor", label: "当前委托人" }];
2
+ function r(a2) {
3
+ return a2 && a2.length > 0 ? e.filter((e2) => a2.includes(e2.value)) : e;
57
4
  }
58
5
  export {
59
- contextVarOptions,
60
- getTypeOptions,
61
- taskVarOptions
6
+ a as contextVarOptions,
7
+ r as getTypeOptions,
8
+ l as taskVarOptions
62
9
  };
@@ -1,7 +1,7 @@
1
- import _sfc_main from "./value-set-input.vue2.js";
1
+ import e from "./value-set-input.vue2.js";
2
2
  import "./value-set-input.vue3.js";
3
- import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const ValueSetInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-21f429a9"]]);
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = t(e, [["__scopeId", "data-v-21f429a9"]]);
5
5
  export {
6
- ValueSetInput as default
6
+ p as default
7
7
  };