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,4 +1,4 @@
1
- import { ElDivider, ElCheckbox, ElInput, ElButton, ElFormItem, ElOption, ElSelect, ElTooltip, ElIcon, ElTableColumn, ElTable, ElTabPane, ElTabs, ElAlert, ElRadio, ElRadioGroup, ElForm } from "element-plus/es";
1
+ import { ElDivider as e, ElCheckbox as t, ElInput as l, ElButton as a, ElFormItem as o, ElOption as s, ElSelect as n, ElTooltip as r, ElIcon as u, ElTableColumn as p, ElTable as i, ElTabPane as m, ElTabs as c, ElAlert as d, ElRadio as f, ElRadioGroup as v, ElForm as b } 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";
@@ -17,489 +17,81 @@ import "element-plus/es/components/button/style/css";
17
17
  import "element-plus/es/components/input/style/css";
18
18
  import "element-plus/es/components/checkbox/style/css";
19
19
  import "element-plus/es/components/divider/style/css";
20
- import { defineComponent, ref, onMounted, openBlock, createElementBlock, createVNode, withCtx, unref, createElementVNode, withDirectives, Fragment, renderList, createBlock, vShow, createTextVNode, pushScopeId, popScopeId } from "vue";
21
- import { useLocalStorage } from "@vueuse/core";
22
- import _sfc_main$1 from "../../../common/components/node-base-config.vue.js";
23
- import { Search, FullScreen, CaretRight } from "@element-plus/icons-vue";
24
- import { EditorView, basicSetup } from "codemirror";
25
- import { StandardSQL, keywordCompletionSource, sql } from "@codemirror/lang-sql";
26
- import { EditorState } from "@codemirror/state";
27
- import { openSearchPanel } from "@codemirror/search";
28
- import ValueSetInput from "../../../common/components/value-set-input/value-set-input.vue.js";
29
- import DatabaseSelect from "../../../common/components/database-select.vue.js";
30
- import { useServiceFlowStore } from "../../../../stores/page-store.js";
31
- import { eclipse, githubDark, githubLight, dracula, vscodeDark, xcodeDark, xcodeLight } from "@uiw/codemirror-themes-all";
32
- const _withScopeId = (n) => (pushScopeId("data-v-684c1f08"), n = n(), popScopeId(), n);
33
- const _hoisted_1 = { style: {} };
34
- const _hoisted_2 = {
35
- style: { "padding": "8px 16px", "margin": "10px 0px", "background-color": "#f4f4f5" },
36
- class: "pppp"
37
- };
38
- const _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "color": "#909399", "font-size": "14px" } }, "SQL窗口", -1));
39
- const _hoisted_4 = { class: "editorTool" };
40
- const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
41
- style: {
42
- minHeight: "400px",
43
- maxHeight: "400px",
44
- backgroundColor: "#fff",
45
- color: "#333",
46
- outline: "1px dotted #212121"
47
- },
48
- id: "cf-codemirror"
49
- }, null, -1));
50
- const _sfc_main = /* @__PURE__ */ defineComponent({
51
- __name: "config",
52
- props: {
53
- properties: {
54
- type: Object,
55
- default: () => {
56
- return {};
57
- }
58
- }
59
- },
60
- emits: ["fullScreen"],
61
- setup(__props, { expose: __expose, emit: __emit }) {
62
- useServiceFlowStore();
63
- const emits = __emit;
64
- const props = __props;
65
- const sqlResult = ref([]);
66
- const activeName = ref("index0");
67
- const showSelectDatabase = ref(false);
68
- const fullScreenDrawer = ref(false);
69
- const editorStyle = ref({ theme: "default", fontSize: 14, searchOpen: false });
70
- if (!props.properties.result) {
71
- props.properties.result = {};
72
- }
73
- const editor = ref({});
74
- onMounted(() => {
75
- let cacheEditorStyleStr = useLocalStorage("editorStyle", "").value;
76
- if (cacheEditorStyleStr) {
77
- const cacheEditorStyle = JSON.parse(cacheEditorStyleStr);
78
- editorStyle.value.theme = cacheEditorStyle.theme || "default";
79
- editorStyle.value.fontSize = cacheEditorStyle.fontSize || 14;
80
- }
81
- loadEditor();
82
- });
83
- function showFullScreen() {
84
- if (fullScreenDrawer.value === true) {
85
- fullScreenDrawer.value = false;
86
- emits("fullScreen", { withHeader: true, drawerWidth: "50%" });
87
- } else {
88
- fullScreenDrawer.value = true;
89
- emits("fullScreen", { withHeader: false, drawerWidth: "100%" });
90
- }
91
- }
92
- const sqlDocCompletions = StandardSQL.language.data.of({
93
- autocomplete: keywordCompletionSource
94
- });
95
- function changeEditorState() {
96
- useLocalStorage("editorStyle", editorStyle.value).value = editorStyle.value;
97
- if (editor.value) {
98
- if (editor.value) {
99
- editor.value.destroy();
100
- }
101
- loadEditor();
102
- }
103
- }
104
- function getEditorState() {
105
- const mytheme = getTheme();
106
- const baseTheme = EditorView.theme({
107
- ".cm-content, .cm-gutter": { minHeight: "200px" },
108
- "&": {
109
- height: "400px",
110
- maxHeight: "400px",
111
- fontSize: editorStyle.value.fontSize + "px"
112
- }
113
- });
114
- return EditorState.create({
115
- doc: props.properties.function,
116
- extensions: [
117
- EditorState.tabSize.of(16),
118
- basicSetup,
119
- sql(),
120
- sqlDocCompletions,
121
- mytheme,
122
- baseTheme,
123
- EditorView.updateListener.of(function(value) {
124
- props.properties.function = value.state.doc.toString();
125
- })
126
- ]
127
- });
20
+ import { defineComponent as h, ref as y, onMounted as g, openBlock as x, createElementBlock as V, createVNode as S, withCtx as _, unref as k, createElementVNode as w, withDirectives as z, Fragment as D, renderList as U, createBlock as L, vShow as C, createTextVNode as H, pushScopeId as O, popScopeId as T } from "vue";
21
+ import { useLocalStorage as j } from "@vueuse/core";
22
+ import E from "../../../common/components/node-base-config.vue.js";
23
+ import { Search as G, FullScreen as W, CaretRight as X } from "@element-plus/icons-vue";
24
+ import { EditorView as q, basicSetup as B } from "codemirror";
25
+ import { StandardSQL as I, keywordCompletionSource as J, sql as N } from "@codemirror/lang-sql";
26
+ import { EditorState as Q } from "@codemirror/state";
27
+ import { openSearchPanel as A } from "@codemirror/search";
28
+ import F from "../../../common/components/value-set-input/value-set-input.vue.js";
29
+ import K from "../../../common/components/database-select.vue.js";
30
+ import { useServiceFlowStore as M } from "../../../../stores/page-store.js";
31
+ import { eclipse as P, githubDark as R, githubLight as Y, dracula as Z, vscodeDark as $, xcodeDark as ee, xcodeLight as te } from "@uiw/codemirror-themes-all";
32
+ const le = (e2) => (O("data-v-684c1f08"), e2 = e2(), T(), e2), ae = { style: {} }, oe = { style: { padding: "8px 16px", margin: "10px 0px", "background-color": "#f4f4f5" }, class: "pppp" }, se = le(() => w("span", { style: { color: "#909399", "font-size": "14px" } }, "SQL窗口", -1)), ne = { class: "editorTool" }, re = le(() => w("div", { style: { minHeight: "400px", maxHeight: "400px", backgroundColor: "#fff", color: "#333", outline: "1px dotted #212121" }, id: "cf-codemirror" }, null, -1)), ue = h({ __name: "config", props: { properties: { type: Object, default: () => ({}) } }, emits: ["fullScreen"], setup(h2, { expose: O2, emit: T2 }) {
33
+ M();
34
+ const le2 = T2, ue2 = h2, pe = y([]), ie = y("index0"), me = y(false), ce = y(false), de = y({ theme: "default", fontSize: 14, searchOpen: false });
35
+ ue2.properties.result || (ue2.properties.result = {});
36
+ const fe = y({});
37
+ function ve() {
38
+ true === ce.value ? (ce.value = false, le2("fullScreen", { withHeader: true, drawerWidth: "50%" })) : (ce.value = true, le2("fullScreen", { withHeader: false, drawerWidth: "100%" }));
39
+ }
40
+ g(() => {
41
+ let e2 = j("editorStyle", "").value;
42
+ if (e2) {
43
+ const t2 = JSON.parse(e2);
44
+ de.value.theme = t2.theme || "default", de.value.fontSize = t2.fontSize || 14;
128
45
  }
129
- function getTheme() {
130
- switch (editorStyle.value.theme) {
46
+ ge();
47
+ });
48
+ const be = I.language.data.of({ autocomplete: J });
49
+ function he() {
50
+ j("editorStyle", de.value).value = de.value, fe.value && (fe.value && fe.value.destroy(), ge());
51
+ }
52
+ function ye() {
53
+ const e2 = function() {
54
+ switch (de.value.theme) {
131
55
  case "xcodeLight":
132
- return xcodeLight;
56
+ return te;
133
57
  case "xcodeDark":
134
- return xcodeDark;
58
+ return ee;
135
59
  case "vscodeDark":
136
- return vscodeDark;
60
+ return $;
137
61
  case "dracula":
138
- return dracula;
62
+ return Z;
139
63
  case "githubLight":
140
- return githubLight;
64
+ return Y;
141
65
  case "githubDark":
142
- return githubDark;
66
+ return R;
143
67
  case "eclipse":
144
- return eclipse;
145
- }
146
- return EditorView.theme({});
147
- }
148
- function loadEditor() {
149
- const state = getEditorState();
150
- editor.value = new EditorView({
151
- state,
152
- parent: document.getElementById("cf-codemirror")
153
- });
154
- }
155
- function openSearch() {
156
- if (editor.value) {
157
- editor.value.focus();
158
- let newState = openSearchPanel(editor.value);
159
- if (newState) {
160
- editor.value.update([]);
161
- }
68
+ return P;
162
69
  }
70
+ return q.theme({});
71
+ }(), t2 = q.theme({ ".cm-content, .cm-gutter": { minHeight: "200px" }, "&": { height: "400px", maxHeight: "400px", fontSize: de.value.fontSize + "px" } });
72
+ return Q.create({ doc: ue2.properties.function, extensions: [Q.tabSize.of(16), B, N(), be, e2, t2, q.updateListener.of(function(e3) {
73
+ ue2.properties.function = e3.state.doc.toString();
74
+ })] });
75
+ }
76
+ function ge() {
77
+ const e2 = ye();
78
+ fe.value = new q({ state: e2, parent: document.getElementById("cf-codemirror") });
79
+ }
80
+ function xe() {
81
+ if (fe.value) {
82
+ fe.value.focus(), A(fe.value) && fe.value.update([]);
163
83
  }
164
- const executeSql = () => {
165
- editor.value.state.doc.toString();
166
- sqlResult.value = [
167
- [
168
- { id: "1", name: "name1" },
169
- { id: "2", name: "name2" }
170
- ],
171
- [
172
- { id: "结果2-1", name: "name1" },
173
- { id: "结果2-2", name: "name2" }
174
- ],
175
- [
176
- { id: "结果3-1", name: "name1" },
177
- { id: "结果3-2", name: "name2" }
178
- ]
179
- ];
180
- };
181
- const selectChange = (result) => {
182
- props.properties.database = result.database.name;
183
- };
184
- __expose({});
185
- return (_ctx, _cache) => {
186
- const _component_el_divider = ElDivider;
187
- const _component_el_checkbox = ElCheckbox;
188
- const _component_el_input = ElInput;
189
- const _component_el_button = ElButton;
190
- const _component_el_form_item = ElFormItem;
191
- const _component_el_option = ElOption;
192
- const _component_el_select = ElSelect;
193
- const _component_el_tooltip = ElTooltip;
194
- const _component_el_icon = ElIcon;
195
- const _component_el_table_column = ElTableColumn;
196
- const _component_el_table = ElTable;
197
- const _component_el_tab_pane = ElTabPane;
198
- const _component_el_tabs = ElTabs;
199
- const _component_el_alert = ElAlert;
200
- const _component_el_radio = ElRadio;
201
- const _component_el_radio_group = ElRadioGroup;
202
- const _component_el_form = ElForm;
203
- return openBlock(), createElementBlock("div", _hoisted_1, [
204
- createVNode(_component_el_form, {
205
- "label-width": "auto",
206
- "label-position": "left"
207
- }, {
208
- default: withCtx(() => [
209
- createVNode(_sfc_main$1, { properties: __props.properties }, null, 8, ["properties"]),
210
- createVNode(_component_el_divider),
211
- createVNode(_component_el_form_item, null, {
212
- label: withCtx((scope) => [
213
- createVNode(_component_el_checkbox, {
214
- modelValue: __props.properties.specifyDatabase,
215
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.properties.specifyDatabase = $event),
216
- label: "指定数据库"
217
- }, null, 8, ["modelValue"])
218
- ]),
219
- default: withCtx(() => [
220
- createVNode(_component_el_input, {
221
- modelValue: __props.properties.database,
222
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.properties.database = $event),
223
- readonly: "",
224
- style: { "width": "85%" }
225
- }, null, 8, ["modelValue"]),
226
- createVNode(_component_el_button, {
227
- type: "primary",
228
- icon: unref(Search),
229
- onClick: _cache[2] || (_cache[2] = ($event) => showSelectDatabase.value = !showSelectDatabase.value),
230
- circle: "",
231
- disabled: !__props.properties.specifyDatabase,
232
- style: { "position": "absolute", "right": "0" }
233
- }, null, 8, ["icon", "disabled"]),
234
- createVNode(DatabaseSelect, {
235
- visible: showSelectDatabase.value,
236
- "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => showSelectDatabase.value = $event),
237
- modelValue: __props.properties.dataTable,
238
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.properties.dataTable = $event),
239
- onSelect: selectChange
240
- }, null, 8, ["visible", "modelValue"])
241
- ]),
242
- _: 1
243
- }),
244
- createElementVNode("div", _hoisted_2, [
245
- _hoisted_3,
246
- createElementVNode("span", _hoisted_4, [
247
- createVNode(_component_el_tooltip, {
248
- effect: "dark",
249
- content: "切换主题",
250
- placement: "top"
251
- }, {
252
- default: withCtx(() => [
253
- createVNode(_component_el_select, {
254
- class: "editorOption",
255
- onChange: changeEditorState,
256
- modelValue: editorStyle.value.theme,
257
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => editorStyle.value.theme = $event),
258
- placeholder: "",
259
- size: "small",
260
- style: { "width": "120px" }
261
- }, {
262
- default: withCtx(() => [
263
- createVNode(_component_el_option, {
264
- label: "默认",
265
- value: "default"
266
- }),
267
- createVNode(_component_el_option, {
268
- label: "VScodeDark",
269
- value: "vscodeDark"
270
- }),
271
- createVNode(_component_el_option, {
272
- label: "Dracula",
273
- value: "dracula"
274
- }),
275
- createVNode(_component_el_option, {
276
- label: "GithubLight",
277
- value: "githubLight"
278
- }),
279
- createVNode(_component_el_option, {
280
- label: "GithubDark",
281
- value: "githubDark"
282
- }),
283
- createVNode(_component_el_option, {
284
- label: "Eclipse",
285
- value: "eclipse"
286
- }),
287
- createVNode(_component_el_option, {
288
- label: "XcodeLight",
289
- value: "xcodeLight"
290
- }),
291
- createVNode(_component_el_option, {
292
- label: "XcodeDark",
293
- value: "xcodeDark"
294
- })
295
- ]),
296
- _: 1
297
- }, 8, ["modelValue"])
298
- ]),
299
- _: 1
300
- }),
301
- createVNode(_component_el_tooltip, {
302
- effect: "dark",
303
- content: "切换字体大小",
304
- placement: "top"
305
- }, {
306
- default: withCtx(() => [
307
- createVNode(_component_el_select, {
308
- class: "editorOption",
309
- modelValue: editorStyle.value.fontSize,
310
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => editorStyle.value.fontSize = $event),
311
- placeholder: "",
312
- onChange: changeEditorState,
313
- size: "small",
314
- style: { "width": "80px" }
315
- }, {
316
- default: withCtx(() => [
317
- createVNode(_component_el_option, {
318
- label: "12",
319
- value: 12
320
- }),
321
- createVNode(_component_el_option, {
322
- label: "14",
323
- value: 14
324
- }),
325
- createVNode(_component_el_option, {
326
- label: "16",
327
- value: 16
328
- }),
329
- createVNode(_component_el_option, {
330
- label: "18",
331
- value: 18
332
- }),
333
- createVNode(_component_el_option, {
334
- label: "20",
335
- value: 20
336
- }),
337
- createVNode(_component_el_option, {
338
- label: "22",
339
- value: 22
340
- }),
341
- createVNode(_component_el_option, {
342
- label: "24",
343
- value: 24
344
- }),
345
- createVNode(_component_el_option, {
346
- label: "26",
347
- value: 26
348
- }),
349
- createVNode(_component_el_option, {
350
- label: "28",
351
- value: 28
352
- })
353
- ]),
354
- _: 1
355
- }, 8, ["modelValue"])
356
- ]),
357
- _: 1
358
- })
359
- ]),
360
- createVNode(_component_el_tooltip, {
361
- effect: "dark",
362
- content: "打开搜索",
363
- placement: "top"
364
- }, {
365
- default: withCtx(() => [
366
- createVNode(_component_el_icon, {
367
- class: "editorOption",
368
- onClick: openSearch
369
- }, {
370
- default: withCtx(() => [
371
- createVNode(unref(Search))
372
- ]),
373
- _: 1
374
- })
375
- ]),
376
- _: 1
377
- }),
378
- createVNode(_component_el_tooltip, {
379
- effect: "dark",
380
- content: fullScreenDrawer.value ? "退出全屏" : "全屏",
381
- placement: "top"
382
- }, {
383
- default: withCtx(() => [
384
- createVNode(_component_el_icon, {
385
- style: { "cursor": "pointer" },
386
- onClick: showFullScreen
387
- }, {
388
- default: withCtx(() => [
389
- createVNode(unref(FullScreen))
390
- ]),
391
- _: 1
392
- })
393
- ]),
394
- _: 1
395
- }, 8, ["content"]),
396
- createVNode(_component_el_icon, {
397
- style: { "cursor": "pointer" },
398
- onClick: executeSql,
399
- size: 25
400
- }, {
401
- default: withCtx(() => [
402
- createVNode(unref(CaretRight))
403
- ]),
404
- _: 1
405
- })
406
- ]),
407
- _hoisted_5,
408
- withDirectives(createVNode(_component_el_tabs, {
409
- modelValue: activeName.value,
410
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => activeName.value = $event),
411
- type: "border-card",
412
- style: { "margin-top": "10px" }
413
- }, {
414
- default: withCtx(() => [
415
- (openBlock(true), createElementBlock(Fragment, null, renderList(sqlResult.value, (item, index) => {
416
- return openBlock(), createBlock(_component_el_tab_pane, {
417
- label: "结果" + (index + 1),
418
- name: "index" + index
419
- }, {
420
- default: withCtx(() => [
421
- createVNode(_component_el_table, {
422
- data: item,
423
- style: { "width": "100%" }
424
- }, {
425
- default: withCtx(() => [
426
- (openBlock(true), createElementBlock(Fragment, null, renderList(item[0], (value, key) => {
427
- return openBlock(), createBlock(_component_el_table_column, {
428
- prop: key + "",
429
- label: key
430
- }, null, 8, ["prop", "label"]);
431
- }), 256))
432
- ]),
433
- _: 2
434
- }, 1032, ["data"])
435
- ]),
436
- _: 2
437
- }, 1032, ["label", "name"]);
438
- }), 256))
439
- ]),
440
- _: 1
441
- }, 8, ["modelValue"]), [
442
- [vShow, sqlResult.value && sqlResult.value.lenght > 0]
443
- ]),
444
- createVNode(_component_el_alert, {
445
- title: "结果设置",
446
- type: "info",
447
- size: "small",
448
- closable: false,
449
- style: { "margin": "20px 0" }
450
- }),
451
- createVNode(_component_el_form_item, {
452
- label: "",
453
- "label-width": "0",
454
- style: { "width": "100%" }
455
- }, {
456
- default: withCtx(() => [
457
- createVNode(_component_el_radio_group, {
458
- modelValue: __props.properties.result.valueSetScope,
459
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => __props.properties.result.valueSetScope = $event),
460
- class: "ml-4"
461
- }, {
462
- default: withCtx(() => [
463
- createVNode(_component_el_radio, { value: "first" }, {
464
- default: withCtx(() => [
465
- createTextVNode("仅第一条")
466
- ]),
467
- _: 1
468
- }),
469
- createVNode(_component_el_radio, { value: "all" }, {
470
- default: withCtx(() => [
471
- createTextVNode(" 全部 ")
472
- ]),
473
- _: 1
474
- })
475
- ]),
476
- _: 1
477
- }, 8, ["modelValue"])
478
- ]),
479
- _: 1
480
- }),
481
- createVNode(_component_el_form_item, {
482
- label: "设置到:",
483
- style: { "width": "100%" }
484
- }, {
485
- default: withCtx(() => [
486
- createVNode(unref(ValueSetInput), {
487
- inputSize: "default",
488
- paramTypes: ["service"],
489
- size: "small",
490
- modelValue: __props.properties.result.setTo,
491
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => __props.properties.result.setTo = $event)
492
- }, null, 8, ["modelValue"])
493
- ]),
494
- _: 1
495
- })
496
- ]),
497
- _: 1
498
- })
499
- ]);
500
- };
501
84
  }
502
- });
85
+ const Ve = () => {
86
+ fe.value.state.doc.toString(), pe.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
+ }, Se = (e2) => {
88
+ ue2.properties.database = e2.database.name;
89
+ };
90
+ return O2({}), (y2, g2) => {
91
+ const O3 = e, T3 = t, j2 = l, q2 = a, B2 = o, I2 = s, J2 = n, N2 = r, Q2 = u, A2 = p, M2 = i, P2 = m, R2 = c, Y2 = d, Z2 = f, $2 = v, ee2 = b;
92
+ return x(), V("div", ae, [S(ee2, { "label-width": "auto", "label-position": "left" }, { default: _(() => [S(E, { properties: h2.properties }, null, 8, ["properties"]), S(O3), S(B2, null, { label: _((e2) => [S(T3, { modelValue: h2.properties.specifyDatabase, "onUpdate:modelValue": g2[0] || (g2[0] = (e3) => h2.properties.specifyDatabase = e3), label: "指定数据库" }, null, 8, ["modelValue"])]), default: _(() => [S(j2, { 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: k(G), onClick: g2[2] || (g2[2] = (e2) => me.value = !me.value), circle: "", disabled: !h2.properties.specifyDatabase, style: { position: "absolute", right: "0" } }, null, 8, ["icon", "disabled"]), S(K, { visible: me.value, "onUpdate:visible": g2[3] || (g2[3] = (e2) => me.value = e2), modelValue: h2.properties.dataTable, "onUpdate:modelValue": g2[4] || (g2[4] = (e2) => h2.properties.dataTable = e2), onSelect: Se }, null, 8, ["visible", "modelValue"])]), _: 1 }), w("div", oe, [se, w("span", ne, [S(N2, { effect: "dark", content: "切换主题", placement: "top" }, { default: _(() => [S(J2, { class: "editorOption", onChange: he, modelValue: de.value.theme, "onUpdate:modelValue": g2[5] || (g2[5] = (e2) => de.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: de.value.fontSize, "onUpdate:modelValue": g2[6] || (g2[6] = (e2) => de.value.fontSize = e2), placeholder: "", onChange: he, 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(Q2, { class: "editorOption", onClick: xe }, { default: _(() => [S(k(G))]), _: 1 })]), _: 1 }), S(N2, { effect: "dark", content: ce.value ? "退出全屏" : "全屏", placement: "top" }, { default: _(() => [S(Q2, { style: { cursor: "pointer" }, onClick: ve }, { default: _(() => [S(k(W))]), _: 1 })]), _: 1 }, 8, ["content"]), S(Q2, { style: { cursor: "pointer" }, onClick: Ve, size: 25 }, { default: _(() => [S(k(X))]), _: 1 })]), re, z(S(R2, { modelValue: ie.value, "onUpdate:modelValue": g2[7] || (g2[7] = (e2) => ie.value = e2), type: "border-card", style: { "margin-top": "10px" } }, { default: _(() => [(x(true), V(D, null, U(pe.value, (e2, t2) => (x(), L(P2, { label: "结果" + (t2 + 1), name: "index" + t2 }, { default: _(() => [S(M2, { data: e2, style: { width: "100%" } }, { default: _(() => [(x(true), V(D, null, U(e2[0], (e3, t3) => (x(), L(A2, { prop: t3 + "", label: t3 }, null, 8, ["prop", "label"]))), 256))]), _: 2 }, 1032, ["data"])]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue"]), [[C, pe.value && pe.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: _(() => [H("仅第一条")]), _: 1 }), S(Z2, { value: "all" }, { default: _(() => [H(" 全部 ")]), _: 1 })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), S(B2, { label: "设置到:", style: { width: "100%" } }, { default: _(() => [S(k(F), { 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 })]);
93
+ };
94
+ } });
503
95
  export {
504
- _sfc_main as default
96
+ ue as default
505
97
  };
@@ -1,39 +1,17 @@
1
- import AbLogicNode from "../../../flow/base/AbLogicNode.js";
2
- import AbLogicNodeModel from "../../../flow/base/AbLogicNodeModel.js";
1
+ import e from "../../../flow/base/AbLogicNode.js";
2
+ import o from "../../../flow/base/AbLogicNodeModel.js";
3
3
  import "../../../flow/base/AbLogicResizeNodeModel.js";
4
4
  import "../../../flow/base/AbLogicResizeNode.js";
5
- import { h, createApp } from "vue";
6
- import DynamicSql from "./index.vue.js";
7
- class DynamicSqlNode extends AbLogicNode {
8
- constructor(props) {
9
- super(props);
10
- this.isMounted = false;
11
- this.r = h(DynamicSql, {
12
- model: props.model,
13
- graphModel: props.graphModel,
14
- disabled: props.graphModel.editConfigModel.isSilentMode,
15
- isSelected: props.model.isSelected,
16
- isHovered: props.model.isHovered,
17
- properties: props.model.getProperties(),
18
- onBtnClick: (i) => {
19
- this.props.graphModel.eventCenter.emit(`node:select-click`, {
20
- props
21
- });
22
- }
23
- });
24
- this.app = createApp({
25
- render: () => this.r
26
- });
5
+ import { h as s, createApp as i } from "vue";
6
+ import d from "./index.vue.js";
7
+ const t = { type: "dynamicSql", view: class extends e {
8
+ constructor(e2) {
9
+ super(e2), this.isMounted = false, this.r = s(d, { model: e2.model, graphModel: e2.graphModel, disabled: e2.graphModel.editConfigModel.isSilentMode, isSelected: e2.model.isSelected, isHovered: e2.model.isHovered, properties: e2.model.getProperties(), onBtnClick: (o2) => {
10
+ this.props.graphModel.eventCenter.emit("node:select-click", { props: e2 });
11
+ } }), this.app = i({ render: () => this.r });
27
12
  }
28
- }
29
- class DynamicSqlNodeModel extends AbLogicNodeModel {
30
- }
31
- const dynamicSql = {
32
- type: "dynamicSql",
33
- view: DynamicSqlNode,
34
- model: DynamicSqlNodeModel,
35
- options: {}
36
- };
13
+ }, model: class extends o {
14
+ }, options: {} };
37
15
  export {
38
- dynamicSql as default
16
+ t as default
39
17
  };
@@ -1,7 +1,7 @@
1
- import _sfc_main from "./index.vue2.js";
1
+ import e from "./index.vue2.js";
2
2
  import "./index.vue3.js";
3
- import _export_sfc from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const DynamicSql = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9770119b"]]);
3
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = o(e, [["__scopeId", "data-v-9770119b"]]);
5
5
  export {
6
- DynamicSql as default
6
+ r as default
7
7
  };