@web-utils/form-ui 1.0.0-beta78 → 1.0.0-beta79

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,13 +1,14 @@
1
1
  import { t as e } from "./B1MSrc6f.mjs";
2
2
  import { t } from "./V-Js6hNd.mjs";
3
- import { r as n, t as r } from "./BAG_R87k2.mjs";
4
- import { a as i, i as a, n as o, r as s } from "./BwL9Xz1F.mjs";
5
- import { ElButton as c, ElDivider as l, ElDrawer as u, ElForm as d, ElFormItem as f, ElInput as p, ElOption as m, ElSelect as h, ElTable as g, ElTableColumn as _ } from "element-plus/es";
3
+ import { t as n } from "./mnqSaATq.mjs";
4
+ import { r, t as i } from "./BAG_R87k2.mjs";
5
+ import { a, i as o, n as s, r as c } from "./BwL9Xz1F.mjs";
6
+ import { ElDivider as l, ElDrawer as u, ElForm as d, ElFormItem as f, ElInput as p, ElMessageBox as m, ElOption as h, ElSelect as g, ElTable as _, ElTableColumn as v } from "element-plus/es";
6
7
  import "element-plus/es/components/base/style/css";
7
8
  import "element-plus/es/components/input/style/css";
8
- import { Fragment as v, createBlock as y, createCommentVNode as b, createElementBlock as x, createElementVNode as S, createTextVNode as C, createVNode as w, openBlock as T, renderList as E, withCtx as D, withModifiers as O } from "vue";
9
- import { capitalize as k, fastClone as A } from "@web-utils/core";
10
- import "element-plus/es/components/button/style/css";
9
+ import { Fragment as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createTextVNode as w, createVNode as T, openBlock as E, renderList as D, withCtx as O, withModifiers as k } from "vue";
10
+ import { capitalize as A, fastClone as j } from "@web-utils/core";
11
+ import "element-plus/es/components/message-box/style/css";
11
12
  import "element-plus/es/components/drawer/style/css";
12
13
  import "element-plus/es/components/table/style/css";
13
14
  import "element-plus/es/components/table-column/style/css";
@@ -17,13 +18,13 @@ import "element-plus/es/components/select/style/css";
17
18
  import "element-plus/es/components/option/style/css";
18
19
  import "element-plus/es/components/divider/style/css";
19
20
  //#region src/components/bpmn-process-designer/components/penal/listeners/ElementListeners.vue
20
- var j = (e) => ({
21
+ var M = (e) => ({
21
22
  $type: "flowable:ExecutionListener",
22
23
  event: e === "draft" ? "start" : e,
23
24
  delegateExpression: "${httpInvokeExecutionListener}",
24
25
  fields: [],
25
26
  listenerType: "delegateExpressionListener"
26
- }), M = (e, t) => [{
27
+ }), N = (e, t) => [{
27
28
  $type: "flowable:Field",
28
29
  name: "serviceId",
29
30
  string: t.serviceId,
@@ -31,9 +32,9 @@ var j = (e) => ({
31
32
  }, {
32
33
  $type: "flowable:Field",
33
34
  name: "url",
34
- string: `${t != null && t.url ? `/${t.url}` : ""}/flow${k(e)}`,
35
+ string: `${t != null && t.url ? `/${t.url}` : ""}/flow${A(e)}`,
35
36
  fieldType: "string"
36
- }], N = {
37
+ }], P = {
37
38
  name: "ElementListeners",
38
39
  inject: {
39
40
  prefix: "prefix",
@@ -55,8 +56,8 @@ var j = (e) => ({
55
56
  listenerFieldFormModelVisible: !1,
56
57
  editingListenerIndex: -1,
57
58
  editingListenerFieldIndex: -1,
58
- listenerTypeObject: i,
59
- fieldTypeObject: o
59
+ listenerTypeObject: a,
60
+ fieldTypeObject: s
60
61
  };
61
62
  },
62
63
  computed: { apis() {
@@ -79,24 +80,24 @@ var j = (e) => ({
79
80
  methods: {
80
81
  resetListenersList() {
81
82
  var e;
82
- this.otherExtensionList = [], this.bpmnElementListeners = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type === `${this.prefix}:ExecutionListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((e) => a(e));
83
+ this.otherExtensionList = [], this.bpmnElementListeners = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type === `${this.prefix}:ExecutionListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((e) => o(e));
83
84
  },
84
85
  changeFiledType(e) {
85
86
  e === "string" ? (delete this.listenerFieldForm.expression, this.listenerFieldForm.string = "") : (delete this.listenerFieldForm.string, this.listenerFieldForm.expression = "");
86
87
  },
87
88
  assignListener(e) {
88
- let t = j(e, this.context);
89
- t.fields = M(e, this.context), this.listenerForm = t, this.fieldsListOfListener = t.fields;
89
+ let t = M(e, this.context);
90
+ t.fields = N(e, this.context), this.listenerForm = t, this.fieldsListOfListener = t.fields;
90
91
  },
91
92
  setDefaultFieldValue(e) {
92
93
  e === "url" ? this.listenerFieldForm.string = "" : this.listenerFieldForm.string = this.context[e] || "";
93
94
  },
94
95
  async openListenerForm(e, t) {
95
96
  var n;
96
- e ? (this.listenerForm = s(e), this.fieldsListOfListener = e.fields ? e.fields.map((e) => ({ ...e })) : [], this.editingListenerIndex = t) : (this.listenerForm = { fields: [] }, this.fieldsListOfListener = [], this.editingListenerIndex = -1), this.listenerFormModelVisible = !0, await this.$nextTick(), (n = this.$refs.listenerFormRef) == null || n.clearValidate();
97
+ e ? (this.listenerForm = c(e), this.fieldsListOfListener = e.fields ? e.fields.map((e) => ({ ...e })) : [], this.editingListenerIndex = t) : (this.listenerForm = { fields: [] }, this.fieldsListOfListener = [], this.editingListenerIndex = -1), this.listenerFormModelVisible = !0, await this.$nextTick(), (n = this.$refs.listenerFormRef) == null || n.clearValidate();
97
98
  },
98
99
  openListenerFieldForm(e, t) {
99
- this.listenerFieldForm = e ? A(e) : { fieldType: "string" }, this.editingListenerFieldIndex = e ? t : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
100
+ this.listenerFieldForm = e ? j(e) : { fieldType: "string" }, this.editingListenerFieldIndex = e ? t : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
100
101
  this.$refs.listenerFieldFormRef && this.$refs.listenerFieldFormRef.clearValidate();
101
102
  });
102
103
  },
@@ -105,65 +106,65 @@ var j = (e) => ({
105
106
  },
106
107
  async removeListenerField(e, t) {
107
108
  try {
108
- await this.$confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(t, 1), this.listenerForm.fields.splice(t, 1);
109
+ await m.confirm("确认移除该字段吗?", "提示"), this.fieldsListOfListener.splice(t, 1), this.listenerForm.fields.splice(t, 1);
109
110
  } catch {}
110
111
  },
111
112
  async removeListener(e, t) {
112
113
  try {
113
- await this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(t, 1), this.elementListenersList.splice(t, 1), n(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
114
+ await m.confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(t, 1), this.elementListenersList.splice(t, 1), r(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
114
115
  } catch {}
115
116
  },
116
117
  async saveListenerConfig() {
117
118
  var e;
118
119
  if (!await this.$refs.listenerFormRef.validate()) return;
119
- let t = r(this.bpmnInstances, this.listenerForm, !1, this.prefix);
120
- this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(t), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, t), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type !== `${this.prefix}:ExecutionListener`)) ?? [], n(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
120
+ let t = i(this.bpmnInstances, this.listenerForm, !1, this.prefix);
121
+ this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(t), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, t), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type !== `${this.prefix}:ExecutionListener`)) ?? [], r(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
121
122
  }
122
123
  }
123
- }, P = { class: "panel-tab__content element-listeners" }, F = { class: "element-drawer__button" }, I = { class: "listener-filed__title" }, L = { class: "listener-filed__title" }, R = { class: "element-drawer__button" };
124
- function z(e, n, r, i, a, o) {
125
- let s = _, k = c, A = l, j = g, M = m, N = h, z = f, B = p, V = d, H = u, U = t;
126
- return T(), x("div", P, [
127
- w(j, {
128
- data: a.elementListenersList,
124
+ }, F = { class: "panel-tab__content element-listeners" }, I = { class: "element-drawer__button" }, L = { class: "listener-filed__title" }, R = { class: "listener-filed__title" }, z = { class: "element-drawer__button" };
125
+ function B(e, r, i, a, o, s) {
126
+ let c = v, m = n, A = l, j = _, M = h, N = g, P = f, B = p, V = d, H = u, U = t;
127
+ return E(), S("div", F, [
128
+ T(j, {
129
+ data: o.elementListenersList,
129
130
  border: ""
130
131
  }, {
131
- default: D(() => [
132
- w(s, {
132
+ default: O(() => [
133
+ T(c, {
133
134
  label: "序号",
134
135
  width: "50px",
135
136
  type: "index"
136
137
  }),
137
- w(s, {
138
+ T(c, {
138
139
  label: "事件类型",
139
140
  "min-width": "100px",
140
141
  prop: "event"
141
142
  }),
142
- w(s, {
143
+ T(c, {
143
144
  label: "监听器类型",
144
145
  "min-width": "100px",
145
146
  "show-overflow-tooltip": "",
146
- formatter: (e) => a.listenerTypeObject[e.listenerType]
147
+ formatter: (e) => o.listenerTypeObject[e.listenerType]
147
148
  }, null, 8, ["formatter"]),
148
- w(s, {
149
+ T(c, {
149
150
  label: "操作",
150
151
  width: "90px"
151
152
  }, {
152
- default: D(({ row: e, $index: t }) => [
153
- w(k, {
153
+ default: O(({ row: e, $index: t }) => [
154
+ T(m, {
154
155
  text: "",
155
- onClick: (n) => o.openListenerForm(e, t)
156
+ onClick: (n) => s.openListenerForm(e, t)
156
157
  }, {
157
- default: D(() => [...n[26] || (n[26] = [C("编辑", -1)])]),
158
+ default: O(() => [...r[26] || (r[26] = [w("编辑", -1)])]),
158
159
  _: 1
159
160
  }, 8, ["onClick"]),
160
- w(A, { direction: "vertical" }),
161
- w(k, {
161
+ T(A, { direction: "vertical" }),
162
+ T(m, {
162
163
  text: "",
163
164
  style: { color: "#ff4d4f" },
164
- onClick: (n) => o.removeListener(e, t)
165
+ onClick: (n) => s.removeListener(e, t)
165
166
  }, {
166
- default: D(() => [...n[27] || (n[27] = [C("移除", -1)])]),
167
+ default: O(() => [...r[27] || (r[27] = [w("移除", -1)])]),
167
168
  _: 1
168
169
  }, 8, ["onClick"])
169
170
  ]),
@@ -172,60 +173,60 @@ function z(e, n, r, i, a, o) {
172
173
  ]),
173
174
  _: 1
174
175
  }, 8, ["data"]),
175
- S("div", F, [w(k, {
176
+ C("div", I, [T(m, {
176
177
  type: "primary",
177
178
  icon: "el-icon-plus",
178
- onClick: n[0] || (n[0] = (e) => o.openListenerForm(null))
179
+ onClick: r[0] || (r[0] = (e) => s.openListenerForm(null))
179
180
  }, {
180
- default: D(() => [...n[28] || (n[28] = [C("添加监听器", -1)])]),
181
+ default: O(() => [...r[28] || (r[28] = [w("添加监听器", -1)])]),
181
182
  _: 1
182
183
  })]),
183
- b(" 监听器 编辑/创建 部分 "),
184
- w(H, {
185
- visible: a.listenerFormModelVisible,
186
- "onUpdate:visible": n[16] || (n[16] = (e) => a.listenerFormModelVisible = e),
184
+ x(" 监听器 编辑/创建 部分 "),
185
+ T(H, {
186
+ modelValue: o.listenerFormModelVisible,
187
+ "onUpdate:modelValue": r[16] || (r[16] = (e) => o.listenerFormModelVisible = e),
187
188
  class: "flow-drawer element-listeners-drawer",
188
189
  title: "执行监听器",
189
- size: `${o.width}px`,
190
+ size: `${s.width}px`,
190
191
  "wrapper-closable": !1,
191
192
  "append-to-body": "",
192
193
  "destroy-on-close": ""
193
194
  }, {
194
- default: D(() => [
195
- w(A),
196
- S("p", I, [
197
- n[32] || (n[32] = S("span", null, [S("i", { class: "el-icon-menu" }), C(" 监听器类型: ")], -1)),
198
- w(k, {
195
+ default: O(() => [
196
+ T(A),
197
+ C("p", L, [
198
+ r[32] || (r[32] = C("span", null, [C("i", { class: "el-icon-menu" }), w(" 监听器类型: ")], -1)),
199
+ T(m, {
199
200
  type: "primary",
200
201
  style: { "margin-left": "auto" },
201
- onClick: n[1] || (n[1] = (e) => o.assignListener("start"))
202
+ onClick: r[1] || (r[1] = (e) => s.assignListener("start"))
202
203
  }, {
203
- default: D(() => [...n[29] || (n[29] = [C("开始", -1)])]),
204
+ default: O(() => [...r[29] || (r[29] = [w("开始", -1)])]),
204
205
  _: 1
205
206
  }),
206
- w(k, {
207
+ T(m, {
207
208
  type: "primary",
208
- onClick: n[2] || (n[2] = (e) => o.assignListener("end"))
209
+ onClick: r[2] || (r[2] = (e) => s.assignListener("end"))
209
210
  }, {
210
- default: D(() => [...n[30] || (n[30] = [C("结束", -1)])]),
211
+ default: O(() => [...r[30] || (r[30] = [w("结束", -1)])]),
211
212
  _: 1
212
213
  }),
213
- w(k, {
214
+ T(m, {
214
215
  type: "primary",
215
- onClick: n[3] || (n[3] = (e) => o.assignListener("draft"))
216
+ onClick: r[3] || (r[3] = (e) => s.assignListener("draft"))
216
217
  }, {
217
- default: D(() => [...n[31] || (n[31] = [C("草稿", -1)])]),
218
+ default: O(() => [...r[31] || (r[31] = [w("草稿", -1)])]),
218
219
  _: 1
219
220
  })
220
221
  ]),
221
- w(V, {
222
+ T(V, {
222
223
  ref: "listenerFormRef",
223
- model: a.listenerForm,
224
+ model: o.listenerForm,
224
225
  "label-width": "96px",
225
- onSubmit: n[13] || (n[13] = O(() => {}, ["prevent"]))
226
+ onSubmit: r[13] || (r[13] = k(() => {}, ["prevent"]))
226
227
  }, {
227
- default: D(() => [
228
- w(z, {
228
+ default: O(() => [
229
+ T(P, {
229
230
  label: "事件类型",
230
231
  prop: "event",
231
232
  rules: {
@@ -233,14 +234,14 @@ function z(e, n, r, i, a, o) {
233
234
  trigger: ["blur", "change"]
234
235
  }
235
236
  }, {
236
- default: D(() => [w(N, {
237
- modelValue: a.listenerForm.event,
238
- "onUpdate:modelValue": n[4] || (n[4] = (e) => a.listenerForm.event = e)
237
+ default: O(() => [T(N, {
238
+ modelValue: o.listenerForm.event,
239
+ "onUpdate:modelValue": r[4] || (r[4] = (e) => o.listenerForm.event = e)
239
240
  }, {
240
- default: D(() => [w(M, {
241
+ default: O(() => [T(M, {
241
242
  label: "开始",
242
243
  value: "start"
243
- }), w(M, {
244
+ }), T(M, {
244
245
  label: "结束",
245
246
  value: "end"
246
247
  })]),
@@ -248,7 +249,7 @@ function z(e, n, r, i, a, o) {
248
249
  }, 8, ["modelValue"])]),
249
250
  _: 1
250
251
  }),
251
- w(z, {
252
+ T(P, {
252
253
  label: "监听器类型",
253
254
  prop: "listenerType",
254
255
  rules: {
@@ -256,20 +257,20 @@ function z(e, n, r, i, a, o) {
256
257
  trigger: ["blur", "change"]
257
258
  }
258
259
  }, {
259
- default: D(() => [w(N, {
260
- modelValue: a.listenerForm.listenerType,
261
- "onUpdate:modelValue": n[5] || (n[5] = (e) => a.listenerForm.listenerType = e)
260
+ default: O(() => [T(N, {
261
+ modelValue: o.listenerForm.listenerType,
262
+ "onUpdate:modelValue": r[5] || (r[5] = (e) => o.listenerForm.listenerType = e)
262
263
  }, {
263
- default: D(() => [(T(!0), x(v, null, E(Object.keys(a.listenerTypeObject), (e) => (T(), y(M, {
264
+ default: O(() => [(E(!0), S(y, null, D(Object.keys(o.listenerTypeObject), (e) => (E(), b(M, {
264
265
  key: e,
265
- label: a.listenerTypeObject[e],
266
+ label: o.listenerTypeObject[e],
266
267
  value: e
267
268
  }, null, 8, ["label", "value"]))), 128))]),
268
269
  _: 1
269
270
  }, 8, ["modelValue"])]),
270
271
  _: 1
271
272
  }),
272
- a.listenerForm.listenerType === "classListener" ? (T(), y(z, {
273
+ o.listenerForm.listenerType === "classListener" ? (E(), b(P, {
273
274
  key: "listener-class",
274
275
  label: "Java类",
275
276
  prop: "class",
@@ -278,14 +279,14 @@ function z(e, n, r, i, a, o) {
278
279
  trigger: ["blur", "change"]
279
280
  }
280
281
  }, {
281
- default: D(() => [w(B, {
282
- modelValue: a.listenerForm.class,
283
- "onUpdate:modelValue": n[6] || (n[6] = (e) => a.listenerForm.class = e),
282
+ default: O(() => [T(B, {
283
+ modelValue: o.listenerForm.class,
284
+ "onUpdate:modelValue": r[6] || (r[6] = (e) => o.listenerForm.class = e),
284
285
  clearable: ""
285
286
  }, null, 8, ["modelValue"])]),
286
287
  _: 1
287
- })) : b("v-if", !0),
288
- a.listenerForm.listenerType === "expressionListener" ? (T(), y(z, {
288
+ })) : x("v-if", !0),
289
+ o.listenerForm.listenerType === "expressionListener" ? (E(), b(P, {
289
290
  key: "listener-expression",
290
291
  label: "表达式",
291
292
  prop: "expression",
@@ -294,14 +295,14 @@ function z(e, n, r, i, a, o) {
294
295
  trigger: ["blur", "change"]
295
296
  }
296
297
  }, {
297
- default: D(() => [w(B, {
298
- modelValue: a.listenerForm.expression,
299
- "onUpdate:modelValue": n[7] || (n[7] = (e) => a.listenerForm.expression = e),
298
+ default: O(() => [T(B, {
299
+ modelValue: o.listenerForm.expression,
300
+ "onUpdate:modelValue": r[7] || (r[7] = (e) => o.listenerForm.expression = e),
300
301
  clearable: ""
301
302
  }, null, 8, ["modelValue"])]),
302
303
  _: 1
303
- })) : b("v-if", !0),
304
- a.listenerForm.listenerType === "delegateExpressionListener" ? (T(), y(z, {
304
+ })) : x("v-if", !0),
305
+ o.listenerForm.listenerType === "delegateExpressionListener" ? (E(), b(P, {
305
306
  key: "listener-delegate",
306
307
  label: "代理表达式",
307
308
  prop: "delegateExpression",
@@ -310,17 +311,17 @@ function z(e, n, r, i, a, o) {
310
311
  trigger: ["blur", "change"]
311
312
  }
312
313
  }, {
313
- default: D(() => [w(N, {
314
- modelValue: a.listenerForm.delegateExpression,
315
- "onUpdate:modelValue": n[8] || (n[8] = (e) => a.listenerForm.delegateExpression = e),
314
+ default: O(() => [T(N, {
315
+ modelValue: o.listenerForm.delegateExpression,
316
+ "onUpdate:modelValue": r[8] || (r[8] = (e) => o.listenerForm.delegateExpression = e),
316
317
  "default-first-option": "",
317
318
  "allow-create": "",
318
319
  filterable: "",
319
320
  clearable: ""
320
321
  }, {
321
- default: D(() => {
322
+ default: O(() => {
322
323
  var e;
323
- return [(T(!0), x(v, null, E(((e = o.context) == null ? void 0 : e.delegateExpressions) || [], (e) => (T(), y(M, {
324
+ return [(E(!0), S(y, null, D(((e = s.context) == null ? void 0 : e.delegateExpressions) || [], (e) => (E(), b(M, {
324
325
  key: e,
325
326
  value: e,
326
327
  label: e
@@ -329,9 +330,9 @@ function z(e, n, r, i, a, o) {
329
330
  _: 1
330
331
  }, 8, ["modelValue"])]),
331
332
  _: 1
332
- })) : b("v-if", !0),
333
- a.listenerForm.listenerType === "scriptListener" ? (T(), x(v, { key: 3 }, [
334
- w(z, {
333
+ })) : x("v-if", !0),
334
+ o.listenerForm.listenerType === "scriptListener" ? (E(), S(y, { key: 3 }, [
335
+ T(P, {
335
336
  key: "listener-script-format",
336
337
  label: "脚本格式",
337
338
  prop: "scriptFormat",
@@ -341,14 +342,14 @@ function z(e, n, r, i, a, o) {
341
342
  message: "请填写脚本格式"
342
343
  }
343
344
  }, {
344
- default: D(() => [w(B, {
345
- modelValue: a.listenerForm.scriptFormat,
346
- "onUpdate:modelValue": n[9] || (n[9] = (e) => a.listenerForm.scriptFormat = e),
345
+ default: O(() => [T(B, {
346
+ modelValue: o.listenerForm.scriptFormat,
347
+ "onUpdate:modelValue": r[9] || (r[9] = (e) => o.listenerForm.scriptFormat = e),
347
348
  clearable: ""
348
349
  }, null, 8, ["modelValue"])]),
349
350
  _: 1
350
351
  }),
351
- w(z, {
352
+ T(P, {
352
353
  key: "listener-script-type",
353
354
  label: "脚本类型",
354
355
  prop: "scriptType",
@@ -358,14 +359,14 @@ function z(e, n, r, i, a, o) {
358
359
  message: "请选择脚本类型"
359
360
  }
360
361
  }, {
361
- default: D(() => [w(N, {
362
- modelValue: a.listenerForm.scriptType,
363
- "onUpdate:modelValue": n[10] || (n[10] = (e) => a.listenerForm.scriptType = e)
362
+ default: O(() => [T(N, {
363
+ modelValue: o.listenerForm.scriptType,
364
+ "onUpdate:modelValue": r[10] || (r[10] = (e) => o.listenerForm.scriptType = e)
364
365
  }, {
365
- default: D(() => [w(M, {
366
+ default: O(() => [T(M, {
366
367
  label: "内联脚本",
367
368
  value: "inlineScript"
368
- }), w(M, {
369
+ }), T(M, {
369
370
  label: "外部脚本",
370
371
  value: "externalScript"
371
372
  })]),
@@ -373,7 +374,7 @@ function z(e, n, r, i, a, o) {
373
374
  }, 8, ["modelValue"])]),
374
375
  _: 1
375
376
  }),
376
- a.listenerForm.scriptType === "inlineScript" ? (T(), y(z, {
377
+ o.listenerForm.scriptType === "inlineScript" ? (E(), b(P, {
377
378
  key: "listener-script",
378
379
  label: "脚本内容",
379
380
  prop: "value",
@@ -383,14 +384,14 @@ function z(e, n, r, i, a, o) {
383
384
  message: "请填写脚本内容"
384
385
  }
385
386
  }, {
386
- default: D(() => [w(B, {
387
- modelValue: a.listenerForm.value,
388
- "onUpdate:modelValue": n[11] || (n[11] = (e) => a.listenerForm.value = e),
387
+ default: O(() => [T(B, {
388
+ modelValue: o.listenerForm.value,
389
+ "onUpdate:modelValue": r[11] || (r[11] = (e) => o.listenerForm.value = e),
389
390
  clearable: ""
390
391
  }, null, 8, ["modelValue"])]),
391
392
  _: 1
392
- })) : b("v-if", !0),
393
- a.listenerForm.scriptType === "externalScript" ? (T(), y(z, {
393
+ })) : x("v-if", !0),
394
+ o.listenerForm.scriptType === "externalScript" ? (E(), b(P, {
394
395
  key: "listener-resource",
395
396
  label: "资源地址",
396
397
  prop: "resource",
@@ -400,75 +401,75 @@ function z(e, n, r, i, a, o) {
400
401
  message: "请填写资源地址"
401
402
  }
402
403
  }, {
403
- default: D(() => [w(B, {
404
- modelValue: a.listenerForm.resource,
405
- "onUpdate:modelValue": n[12] || (n[12] = (e) => a.listenerForm.resource = e),
404
+ default: O(() => [T(B, {
405
+ modelValue: o.listenerForm.resource,
406
+ "onUpdate:modelValue": r[12] || (r[12] = (e) => o.listenerForm.resource = e),
406
407
  clearable: ""
407
408
  }, null, 8, ["modelValue"])]),
408
409
  _: 1
409
- })) : b("v-if", !0)
410
- ], 64)) : b("v-if", !0)
410
+ })) : x("v-if", !0)
411
+ ], 64)) : x("v-if", !0)
411
412
  ]),
412
413
  _: 1
413
414
  }, 8, ["model"]),
414
- w(A),
415
- S("p", L, [n[34] || (n[34] = S("span", null, [S("i", { class: "el-icon-menu" }), C(" 注入字段: ")], -1)), w(k, {
415
+ T(A),
416
+ C("p", R, [r[34] || (r[34] = C("span", null, [C("i", { class: "el-icon-menu" }), w(" 注入字段: ")], -1)), T(m, {
416
417
  type: "primary",
417
418
  style: { "margin-left": "auto" },
418
- onClick: n[14] || (n[14] = (e) => o.openListenerFieldForm(null))
419
+ onClick: r[14] || (r[14] = (e) => s.openListenerFieldForm(null))
419
420
  }, {
420
- default: D(() => [...n[33] || (n[33] = [C("添加字段", -1)])]),
421
+ default: O(() => [...r[33] || (r[33] = [w("添加字段", -1)])]),
421
422
  _: 1
422
423
  })]),
423
- w(j, {
424
- data: a.fieldsListOfListener,
424
+ T(j, {
425
+ data: o.fieldsListOfListener,
425
426
  "max-height": "240",
426
427
  border: "",
427
428
  fit: "",
428
429
  style: { flex: "none" }
429
430
  }, {
430
- default: D(() => [
431
- w(s, {
431
+ default: O(() => [
432
+ T(c, {
432
433
  label: "序号",
433
434
  width: "50px",
434
435
  type: "index"
435
436
  }),
436
- w(s, {
437
+ T(c, {
437
438
  label: "字段名称",
438
439
  "min-width": "100px",
439
440
  prop: "name"
440
441
  }),
441
- w(s, {
442
+ T(c, {
442
443
  label: "字段类型",
443
444
  "min-width": "80px",
444
445
  "show-overflow-tooltip": "",
445
- formatter: (e) => a.fieldTypeObject[e.fieldType]
446
+ formatter: (e) => o.fieldTypeObject[e.fieldType]
446
447
  }, null, 8, ["formatter"]),
447
- w(s, {
448
+ T(c, {
448
449
  label: "字段值/表达式",
449
450
  "min-width": "100px",
450
451
  "show-overflow-tooltip": "",
451
452
  formatter: (e) => e.string || e.expression
452
453
  }, null, 8, ["formatter"]),
453
- w(s, {
454
+ T(c, {
454
455
  label: "操作",
455
456
  width: "100px"
456
457
  }, {
457
- default: D(({ row: e, $index: t }) => [
458
- w(k, {
458
+ default: O(({ row: e, $index: t }) => [
459
+ T(m, {
459
460
  text: "",
460
- onClick: (n) => o.openListenerFieldForm(e, t)
461
+ onClick: (n) => s.openListenerFieldForm(e, t)
461
462
  }, {
462
- default: D(() => [...n[35] || (n[35] = [C("编辑", -1)])]),
463
+ default: O(() => [...r[35] || (r[35] = [w("编辑", -1)])]),
463
464
  _: 1
464
465
  }, 8, ["onClick"]),
465
- w(A, { direction: "vertical" }),
466
- w(k, {
466
+ T(A, { direction: "vertical" }),
467
+ T(m, {
467
468
  text: "",
468
469
  style: { color: "#ff4d4f" },
469
- onClick: (n) => o.removeListenerField(e, t)
470
+ onClick: (n) => s.removeListenerField(e, t)
470
471
  }, {
471
- default: D(() => [...n[36] || (n[36] = [C("移除", -1)])]),
472
+ default: O(() => [...r[36] || (r[36] = [w("移除", -1)])]),
472
473
  _: 1
473
474
  }, 8, ["onClick"])
474
475
  ]),
@@ -477,48 +478,48 @@ function z(e, n, r, i, a, o) {
477
478
  ]),
478
479
  _: 1
479
480
  }, 8, ["data"]),
480
- S("div", R, [w(k, { onClick: n[15] || (n[15] = (e) => a.listenerFormModelVisible = !1) }, {
481
- default: D(() => [...n[37] || (n[37] = [C("取 消", -1)])]),
481
+ C("div", z, [T(m, { onClick: r[15] || (r[15] = (e) => o.listenerFormModelVisible = !1) }, {
482
+ default: O(() => [...r[37] || (r[37] = [w("取 消", -1)])]),
482
483
  _: 1
483
- }), w(k, {
484
+ }), T(m, {
484
485
  type: "primary",
485
- onClick: o.saveListenerConfig
486
+ onClick: s.saveListenerConfig
486
487
  }, {
487
- default: D(() => [...n[38] || (n[38] = [C("保 存", -1)])]),
488
+ default: O(() => [...r[38] || (r[38] = [w("保 存", -1)])]),
488
489
  _: 1
489
490
  }, 8, ["onClick"])])
490
491
  ]),
491
492
  _: 1
492
- }, 8, ["visible", "size"]),
493
- b(" 注入字段 编辑/创建 部分 "),
494
- w(U, {
495
- visible: a.listenerFieldFormModelVisible,
496
- "onUpdate:visible": n[25] || (n[25] = (e) => a.listenerFieldFormModelVisible = e),
493
+ }, 8, ["modelValue", "size"]),
494
+ x(" 注入字段 编辑/创建 部分 "),
495
+ T(U, {
496
+ modelValue: o.listenerFieldFormModelVisible,
497
+ "onUpdate:modelValue": r[25] || (r[25] = (e) => o.listenerFieldFormModelVisible = e),
497
498
  title: "字段配置",
498
499
  class: "flow-dialog",
499
500
  width: "600px",
500
501
  "append-to-body": "",
501
502
  "destroy-on-close": ""
502
503
  }, {
503
- footer: D(() => [w(k, { onClick: n[24] || (n[24] = (e) => a.listenerFieldFormModelVisible = !1) }, {
504
- default: D(() => [...n[39] || (n[39] = [C("取 消", -1)])]),
504
+ footer: O(() => [T(m, { onClick: r[24] || (r[24] = (e) => o.listenerFieldFormModelVisible = !1) }, {
505
+ default: O(() => [...r[39] || (r[39] = [w("取 消", -1)])]),
505
506
  _: 1
506
- }), w(k, {
507
+ }), T(m, {
507
508
  type: "primary",
508
- onClick: o.saveListenerFiled
509
+ onClick: s.saveListenerFiled
509
510
  }, {
510
- default: D(() => [...n[40] || (n[40] = [C("确 定", -1)])]),
511
+ default: O(() => [...r[40] || (r[40] = [w("确 定", -1)])]),
511
512
  _: 1
512
513
  }, 8, ["onClick"])]),
513
- default: D(() => [w(V, {
514
+ default: O(() => [T(V, {
514
515
  ref: "listenerFieldFormRef",
515
- model: a.listenerFieldForm,
516
+ model: o.listenerFieldForm,
516
517
  "label-width": "96px",
517
518
  style: { height: "136px" },
518
- onSubmit: n[23] || (n[23] = O(() => {}, ["prevent"]))
519
+ onSubmit: r[23] || (r[23] = k(() => {}, ["prevent"]))
519
520
  }, {
520
- default: D(() => [
521
- w(z, {
521
+ default: O(() => [
522
+ T(P, {
522
523
  label: "字段名称:",
523
524
  prop: "name",
524
525
  rules: {
@@ -526,18 +527,18 @@ function z(e, n, r, i, a, o) {
526
527
  trigger: ["blur", "change"]
527
528
  }
528
529
  }, {
529
- default: D(() => [w(N, {
530
- modelValue: a.listenerFieldForm.name,
531
- "onUpdate:modelValue": n[17] || (n[17] = (e) => a.listenerFieldForm.name = e),
530
+ default: O(() => [T(N, {
531
+ modelValue: o.listenerFieldForm.name,
532
+ "onUpdate:modelValue": r[17] || (r[17] = (e) => o.listenerFieldForm.name = e),
532
533
  "default-first-option": "",
533
534
  "allow-create": "",
534
535
  filterable: "",
535
536
  clearable: "",
536
- onInput: o.setDefaultFieldValue
537
+ onInput: s.setDefaultFieldValue
537
538
  }, {
538
- default: D(() => {
539
+ default: O(() => {
539
540
  var e;
540
- return [(T(!0), x(v, null, E(((e = o.context) == null ? void 0 : e.fields) || [], (e) => (T(), y(M, {
541
+ return [(E(!0), S(y, null, D(((e = s.context) == null ? void 0 : e.fields) || [], (e) => (E(), b(M, {
541
542
  key: e,
542
543
  value: e,
543
544
  label: e
@@ -547,7 +548,7 @@ function z(e, n, r, i, a, o) {
547
548
  }, 8, ["modelValue", "onInput"])]),
548
549
  _: 1
549
550
  }),
550
- w(z, {
551
+ T(P, {
551
552
  label: "字段类型:",
552
553
  prop: "fieldType",
553
554
  rules: {
@@ -555,21 +556,21 @@ function z(e, n, r, i, a, o) {
555
556
  trigger: ["blur", "change"]
556
557
  }
557
558
  }, {
558
- default: D(() => [w(N, {
559
- modelValue: a.listenerFieldForm.fieldType,
560
- "onUpdate:modelValue": n[18] || (n[18] = (e) => a.listenerFieldForm.fieldType = e),
561
- onInput: o.changeFiledType
559
+ default: O(() => [T(N, {
560
+ modelValue: o.listenerFieldForm.fieldType,
561
+ "onUpdate:modelValue": r[18] || (r[18] = (e) => o.listenerFieldForm.fieldType = e),
562
+ onInput: s.changeFiledType
562
563
  }, {
563
- default: D(() => [(T(!0), x(v, null, E(Object.keys(a.fieldTypeObject), (e) => (T(), y(M, {
564
+ default: O(() => [(E(!0), S(y, null, D(Object.keys(o.fieldTypeObject), (e) => (E(), b(M, {
564
565
  key: e,
565
- label: a.fieldTypeObject[e],
566
+ label: o.fieldTypeObject[e],
566
567
  value: e
567
568
  }, null, 8, ["label", "value"]))), 128))]),
568
569
  _: 1
569
570
  }, 8, ["modelValue", "onInput"])]),
570
571
  _: 1
571
572
  }),
572
- a.listenerFieldForm.fieldType === "string" ? (T(), y(z, {
573
+ o.listenerFieldForm.fieldType === "string" ? (E(), b(P, {
573
574
  key: "field-string",
574
575
  class: "element-listeners-field-name",
575
576
  label: "字段值:",
@@ -579,48 +580,48 @@ function z(e, n, r, i, a, o) {
579
580
  trigger: ["blur", "change"]
580
581
  }
581
582
  }, {
582
- default: D(() => [a.listenerFieldForm.name === "url" ? (T(), y(N, {
583
+ default: O(() => [o.listenerFieldForm.name === "url" ? (E(), b(N, {
583
584
  key: 0,
584
- modelValue: a.listenerFieldForm.string,
585
- "onUpdate:modelValue": n[19] || (n[19] = (e) => a.listenerFieldForm.string = e),
585
+ modelValue: o.listenerFieldForm.string,
586
+ "onUpdate:modelValue": r[19] || (r[19] = (e) => o.listenerFieldForm.string = e),
586
587
  "default-first-option": "",
587
588
  "allow-create": "",
588
589
  filterable: "",
589
590
  clearable: ""
590
591
  }, {
591
- default: D(() => [(T(!0), x(v, null, E(o.apis, (e) => (T(), y(M, {
592
+ default: O(() => [(E(!0), S(y, null, D(s.apis, (e) => (E(), b(M, {
592
593
  key: e,
593
594
  value: e,
594
595
  label: e
595
596
  }, null, 8, ["value", "label"]))), 128))]),
596
597
  _: 1
597
- }, 8, ["modelValue"])) : a.listenerFieldForm.name === "serviceId" ? (T(), y(N, {
598
+ }, 8, ["modelValue"])) : o.listenerFieldForm.name === "serviceId" ? (E(), b(N, {
598
599
  key: 1,
599
- modelValue: a.listenerFieldForm.string,
600
- "onUpdate:modelValue": n[20] || (n[20] = (e) => a.listenerFieldForm.string = e),
600
+ modelValue: o.listenerFieldForm.string,
601
+ "onUpdate:modelValue": r[20] || (r[20] = (e) => o.listenerFieldForm.string = e),
601
602
  "default-first-option": "",
602
603
  "allow-create": "",
603
604
  filterable: "",
604
605
  clearable: ""
605
606
  }, {
606
- default: D(() => {
607
+ default: O(() => {
607
608
  var e;
608
- return [(T(!0), x(v, null, E(((e = o.context) == null ? void 0 : e.services) || [], (e) => (T(), y(M, {
609
+ return [(E(!0), S(y, null, D(((e = s.context) == null ? void 0 : e.services) || [], (e) => (E(), b(M, {
609
610
  key: e,
610
611
  value: e,
611
612
  label: e
612
613
  }, null, 8, ["value", "label"]))), 128))];
613
614
  }),
614
615
  _: 1
615
- }, 8, ["modelValue"])) : (T(), y(B, {
616
+ }, 8, ["modelValue"])) : (E(), b(B, {
616
617
  key: 2,
617
- modelValue: a.listenerFieldForm.string,
618
- "onUpdate:modelValue": n[21] || (n[21] = (e) => a.listenerFieldForm.string = e),
618
+ modelValue: o.listenerFieldForm.string,
619
+ "onUpdate:modelValue": r[21] || (r[21] = (e) => o.listenerFieldForm.string = e),
619
620
  clearable: ""
620
621
  }, null, 8, ["modelValue"]))]),
621
622
  _: 1
622
- })) : b("v-if", !0),
623
- a.listenerFieldForm.fieldType === "expression" ? (T(), y(z, {
623
+ })) : x("v-if", !0),
624
+ o.listenerFieldForm.fieldType === "expression" ? (E(), b(P, {
624
625
  key: "field-expression",
625
626
  label: "表达式:",
626
627
  prop: "expression",
@@ -629,20 +630,20 @@ function z(e, n, r, i, a, o) {
629
630
  trigger: ["blur", "change"]
630
631
  }
631
632
  }, {
632
- default: D(() => [w(B, {
633
- modelValue: a.listenerFieldForm.expression,
634
- "onUpdate:modelValue": n[22] || (n[22] = (e) => a.listenerFieldForm.expression = e),
633
+ default: O(() => [T(B, {
634
+ modelValue: o.listenerFieldForm.expression,
635
+ "onUpdate:modelValue": r[22] || (r[22] = (e) => o.listenerFieldForm.expression = e),
635
636
  clearable: ""
636
637
  }, null, 8, ["modelValue"])]),
637
638
  _: 1
638
- })) : b("v-if", !0)
639
+ })) : x("v-if", !0)
639
640
  ]),
640
641
  _: 1
641
642
  }, 8, ["model"])]),
642
643
  _: 1
643
- }, 8, ["visible"])
644
+ }, 8, ["modelValue"])
644
645
  ]);
645
646
  }
646
- var B = /* @__PURE__ */ e(N, [["render", z]]);
647
+ var V = /* @__PURE__ */ e(P, [["render", B]]);
647
648
  //#endregion
648
- export { B as default };
649
+ export { V as default };