china-mobile-international-custom-components 0.0.40 → 0.0.42

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 (68) hide show
  1. package/es/ApplicationTypeTag.mjs +1 -1
  2. package/es/AutoShowTooltip.mjs +92 -0
  3. package/es/AvailableRangePreview.mjs +1 -1
  4. package/es/AvailableRangeSetting.mjs +266 -11
  5. package/es/CommonTagsList.mjs +200 -0
  6. package/es/DialogContainer.mjs +130 -0
  7. package/es/FileUploader.mjs +255 -0
  8. package/es/ParameterTable.mjs +2303 -0
  9. package/es/SourcePublish.mjs +471 -820
  10. package/es/Table.mjs +6 -6
  11. package/es/assets/AutoShowTooltip.css +1 -0
  12. package/es/assets/AvailableRangeSetting.css +1 -0
  13. package/es/assets/BackBar.css +1 -1
  14. package/es/assets/CommonTagsList.css +1 -0
  15. package/es/assets/DialogContainer.css +1 -0
  16. package/es/assets/FileUploader.css +1 -0
  17. package/es/assets/ParameterTable.css +1 -0
  18. package/es/assets/SourcePublish.css +1 -1
  19. package/es/assets/index2.css +1 -1
  20. package/es/chunks/BackBar.DY42HcZy.js +601 -0
  21. package/es/chunks/{BackBar.DwhmSL-a.js → BackBar.zjPh_z_w.js} +96 -96
  22. package/es/chunks/config.JrGX09T5.js +435 -0
  23. package/es/chunks/{i18n.DUrvNBQz.js → i18n.CfMhDOdX.js} +8 -8
  24. package/es/chunks/index.D1cu8OUn.js +260 -0
  25. package/es/chunks/index.DENagLDS.js +313 -0
  26. package/es/chunks/index.DjDvyGXt.js +313 -0
  27. package/es/chunks/request.24c3shPx.js +5 -0
  28. package/es/index.mjs +184 -130
  29. package/lib/ApplicationTypeTag.js +1 -1
  30. package/lib/AutoShowTooltip.js +1 -0
  31. package/lib/AvailableRangePreview.js +1 -1
  32. package/lib/AvailableRangeSetting.js +1 -1
  33. package/lib/CommonTagsList.js +1 -0
  34. package/lib/DialogContainer.js +1 -0
  35. package/lib/FileUploader.js +1 -0
  36. package/lib/ParameterTable.js +1 -0
  37. package/lib/SourcePublish.js +1 -1
  38. package/lib/Table.js +1 -1
  39. package/lib/assets/AutoShowTooltip.css +1 -0
  40. package/lib/assets/AvailableRangeSetting.css +1 -0
  41. package/lib/assets/BackBar.css +1 -1
  42. package/lib/assets/CommonTagsList.css +1 -0
  43. package/lib/assets/DialogContainer.css +1 -0
  44. package/lib/assets/FileUploader.css +1 -0
  45. package/lib/assets/ParameterTable.css +1 -0
  46. package/lib/assets/SourcePublish.css +1 -1
  47. package/lib/assets/index2.css +1 -1
  48. package/lib/chunks/BackBar.BL8repFN.js +1 -0
  49. package/lib/chunks/BackBar.By7ouDgL.js +1 -0
  50. package/lib/chunks/config.CL0cmPQ6.js +1 -0
  51. package/lib/chunks/index.5Su4CrC-.js +1 -0
  52. package/lib/chunks/index.B_esKpWv.js +1 -0
  53. package/lib/chunks/index.zQ1SfvBa.js +1 -0
  54. package/lib/chunks/request.D8T4MgGX.js +1 -0
  55. package/lib/index.js +1 -1
  56. package/package.json +4 -4
  57. package/es/chunks/index.BcLVH95_.js +0 -4058
  58. package/es/chunks/index.CSPp4g5C.js +0 -303
  59. package/es/chunks/index.ClqvUq64.js +0 -302
  60. package/es/chunks/index.Dh5IGfxO.js +0 -290
  61. package/es/chunks/index.Doax01RQ.js +0 -254
  62. package/lib/chunks/BackBar.CYThcqhK.js +0 -1
  63. package/lib/chunks/i18n.D-d0yyXi.js +0 -6
  64. package/lib/chunks/index.6X8xsqRJ.js +0 -1
  65. package/lib/chunks/index.Bk55us0s.js +0 -1
  66. package/lib/chunks/index.CP9rhXZ5.js +0 -1
  67. package/lib/chunks/index.CSLWrMRE.js +0 -1
  68. package/lib/chunks/index.CV29Us4A.js +0 -6
@@ -0,0 +1,2303 @@
1
+ import { w as Ye } from "./chunks/index.bCzIhWFw.js";
2
+ import { ref as ae, onMounted as Je, resolveComponent as j, createBlock as H, openBlock as g, unref as l, withCtx as p, createVNode as E, createCommentVNode as Y, createTextVNode as $, toDisplayString as x, createElementVNode as W, computed as h, provide as Xe, inject as ze, watch as pe, createElementBlock as G, Fragment as oe, renderList as Pe, mergeModels as ie, useModel as me, normalizeClass as le, nextTick as fe, createSlots as Qe } from "vue";
3
+ import { IconUpload2 as Me, Error as Te, IconScene as Ke, IconAdd2 as Ze, IconZuoCopyCopy as De, IconZuoCopy as Ie, IconDelete2 as et, IconAdd as tt, IconTip as he } from "color-message-aibox-vue";
4
+ import { useDialog as lt, DialogContainer as at } from "./DialogContainer.mjs";
5
+ import { AiboxTable as Se } from "./Table.mjs";
6
+ import { u as re, g as K } from "./chunks/i18n.CfMhDOdX.js";
7
+ import { _ as ue } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import { FileUploader as ge, getWarnTips as be, getAcceptType as Le, UploadTypesEnum as Ne } from "./FileUploader.mjs";
9
+ import { AutoShowTooltip as Ce } from "./AutoShowTooltip.mjs";
10
+ import { ElMessage as nt } from "element-plus";
11
+ import './assets/ParameterTable.css';const ot = { class: "action-header" }, rt = { class: "dialog-footer" }, it = {
12
+ __name: "OptionValue",
13
+ emits: ["createOption"],
14
+ setup(i, { expose: o, emit: a }) {
15
+ const { t: e } = re(), { dialogRef: D, showDialog: A, hideDialog: d } = lt(), f = ae(1), R = ae([
16
+ {
17
+ label: "",
18
+ value: ""
19
+ }
20
+ ]), v = ae([
21
+ {
22
+ label: e("COMMON_OPTIONVALUE.LABEL_INDEX"),
23
+ //序号
24
+ slot: "serialNumber"
25
+ },
26
+ {
27
+ label: e("COMMON_OPTIONVALUE.LABEL_API_VALUE"),
28
+ // api接口原值
29
+ slot: "value",
30
+ minWidth: 150
31
+ },
32
+ {
33
+ label: e("COMMON_OPTIONVALUE.LABEL_OPTION_DISPLAY_VALUE"),
34
+ //选项对应显示值
35
+ slot: "label",
36
+ minWidth: 200,
37
+ headerSlot: "nowValue"
38
+ },
39
+ {
40
+ label: e("COMMON_OPTIONVALUE.LABEL_OPERATION"),
41
+ slot: "action",
42
+ fixed: "right",
43
+ minWidth: 100,
44
+ headerSlot: "actionHeader"
45
+ }
46
+ ]), c = ae({}), w = () => {
47
+ R.value.push({
48
+ label: "",
49
+ value: ""
50
+ }), f.value = R.value.length;
51
+ }, I = (_) => {
52
+ console.log("option数据", _), c.value = _, _["extend-widget-item"] && _["extend-widget-item"] != "" ? R.value = JSON.parse(_["extend-widget-item"]) : R.value = [
53
+ {
54
+ label: "",
55
+ value: ""
56
+ }
57
+ ], A();
58
+ }, M = () => {
59
+ d();
60
+ }, O = (_) => {
61
+ R.value.splice(_, 1);
62
+ }, b = a, L = () => {
63
+ const _ = R.value.filter(
64
+ (n) => n.label.trim() !== "" || n.value.trim() !== ""
65
+ );
66
+ for (let n of _)
67
+ if (n.label.trim() === "" || n.value.trim() === "") {
68
+ ElMessage.error(e("COMMON_OPTIONVALUE.LABEL_OPTION_VALUE_REQUIRED"));
69
+ return;
70
+ }
71
+ if (_.length === 0) {
72
+ ElMessage.error(e("COMMON_OPTIONVALUE.LABEL_OPTION_VALUE_REQUIRED_TIP"));
73
+ return;
74
+ }
75
+ let u = {
76
+ uiid: c.value.uiid,
77
+ data: JSON.stringify(_)
78
+ };
79
+ b("createOption", u), d();
80
+ };
81
+ return o({ showOption: I, hideOption: M }), Je(() => {
82
+ }), (_, u) => {
83
+ const n = j("IconQuery"), s = j("el-icon"), N = j("el-tooltip"), P = j("el-button"), C = j("el-input"), m = j("Error");
84
+ return g(), H(l(at), {
85
+ title: l(e)("COMMON_OPTIONVALUE.LABEL_OPTION_VALUE_SETTING"),
86
+ width: "820px",
87
+ ref_key: "dialogRef",
88
+ ref: D
89
+ }, {
90
+ footer: p(() => [
91
+ W("div", rt, [
92
+ E(P, { onClick: l(d) }, {
93
+ default: p(() => [
94
+ $(x(l(e)("COMMON_BUTTON.CANCEL_TEXT")), 1)
95
+ ]),
96
+ _: 1
97
+ }, 8, ["onClick"]),
98
+ E(P, {
99
+ type: "primary",
100
+ onClick: L
101
+ }, {
102
+ default: p(() => [
103
+ $(x(l(e)("COMMON_BUTTON.CONFIRM_AFFIRM")), 1)
104
+ ]),
105
+ _: 1
106
+ })
107
+ ])
108
+ ]),
109
+ default: p(() => [
110
+ E(l(Se), {
111
+ columns: v.value,
112
+ data: R.value,
113
+ hasPage: !1,
114
+ total: f.value
115
+ }, {
116
+ nowValue: p(() => [
117
+ $(x(l(e)("COMMON_OPTIONVALUE.LABEL_OPTION_VALUE")) + " ", 1),
118
+ E(N, {
119
+ placement: "top",
120
+ "max-width": 50
121
+ }, {
122
+ content: p(() => [
123
+ $(x(l(e)("COMMON_OPTIONVALUE.LABEL_OPTION_VALUE_TIP")), 1),
124
+ u[0] || (u[0] = W("br", null, null, -1)),
125
+ $(" " + x(l(e)("COMMON_OPTIONVALUE.LABEL_OPTION_VALUE_EXAMPLE")), 1),
126
+ u[1] || (u[1] = W("br", null, null, -1)),
127
+ $(" " + x(l(e)("COMMON_OPTIONVALUE.LABEL_OPTION_EXAMPLE")), 1),
128
+ u[2] || (u[2] = W("br", null, null, -1)),
129
+ $(" " + x(l(e)("COMMON_OPTIONVALUE.LABEL_OPTION_EXAMPLE_2")), 1),
130
+ u[3] || (u[3] = W("br", null, null, -1))
131
+ ]),
132
+ default: p(() => [
133
+ E(s, { style: { "margin-left": "5px", cursor: "pointer" } }, {
134
+ default: p(() => [
135
+ E(n)
136
+ ]),
137
+ _: 1
138
+ })
139
+ ]),
140
+ _: 1
141
+ })
142
+ ]),
143
+ actionHeader: p(() => [
144
+ W("div", ot, [
145
+ W("span", null, x(l(e)("COMMON_OPTIONVALUE.LABEL_OPERATION")), 1),
146
+ E(P, {
147
+ type: "primary",
148
+ size: "small",
149
+ onClick: w,
150
+ icon: "IconAdd"
151
+ }, {
152
+ default: p(() => [
153
+ $(x(l(e)("COMMON_BUTTON.ADD_NEW_TEXT")), 1)
154
+ ]),
155
+ _: 1
156
+ })
157
+ ])
158
+ ]),
159
+ serialNumber: p((r) => [
160
+ $(x(r.index + 1), 1)
161
+ ]),
162
+ label: p((r) => [
163
+ E(C, {
164
+ modelValue: r.row.label,
165
+ "onUpdate:modelValue": (y) => r.row.label = y,
166
+ style: { width: "100%" },
167
+ placeholder: l(e)("COMMON_DATA.PLACEHOLDER_INPUT")
168
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
169
+ ]),
170
+ value: p((r) => [
171
+ E(C, {
172
+ modelValue: r.row.value,
173
+ "onUpdate:modelValue": (y) => r.row.value = y,
174
+ style: { width: "100%" },
175
+ placeholder: l(e)("COMMON_DATA.PLACEHOLDER_INPUT")
176
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
177
+ ]),
178
+ action: p((r) => [
179
+ R.value.length > 1 ? (g(), H(s, {
180
+ key: 0,
181
+ style: { cursor: "pointer", color: "red" },
182
+ onClick: (y) => O(r.index)
183
+ }, {
184
+ default: p(() => [
185
+ E(m)
186
+ ]),
187
+ _: 1
188
+ }, 8, ["onClick"])) : Y("", !0)
189
+ ]),
190
+ _: 1
191
+ }, 8, ["columns", "data", "total"])
192
+ ]),
193
+ _: 1
194
+ }, 8, ["title"]);
195
+ };
196
+ }
197
+ }, st = /* @__PURE__ */ ue(it, [["__scopeId", "data-v-1c4cdd79"]]);
198
+ function ut(i) {
199
+ const o = h(() => i.isPluginMode), a = h(() => i.isDataType), e = h(() => i.justString), D = h(() => i.forceRequired), A = h(() => i.showMoreColumns), d = h(() => i.setType && i.setType.length === 1), f = h(() => o.value && a.value), R = h(() => o.value && e.value), v = h(() => !o.value && a.value), c = h(() => !o.value && e.value), w = h(() => {
200
+ const M = o.value, O = a.value, b = i.customFieldName;
201
+ return b || (M && O ? {
202
+ name: "name",
203
+ type: "type",
204
+ value: "debugValue"
205
+ } : M ? {
206
+ name: "name",
207
+ type: "type",
208
+ value: "debugValue"
209
+ } : {
210
+ name: "dataName",
211
+ type: "dataType",
212
+ value: "debugValue"
213
+ });
214
+ });
215
+ return {
216
+ // 基础模式
217
+ isPluginMode: o,
218
+ isDataType: a,
219
+ isJustString: e,
220
+ isForceRequired: D,
221
+ showMoreColumns: A,
222
+ isSingleType: d,
223
+ // 组合模式
224
+ isPluginDataTypeMode: f,
225
+ isPluginJustStringMode: R,
226
+ isNormalDataTypeMode: v,
227
+ isNormalJustStringMode: c,
228
+ // 字段名策略
229
+ getFieldName: (M) => w.value[M] || M
230
+ };
231
+ }
232
+ const Be = /* @__PURE__ */ Symbol("ParameterTableContext");
233
+ function dt(i) {
234
+ const {
235
+ props: o,
236
+ tableData: a,
237
+ emit: e,
238
+ getSnowFlakeId: D,
239
+ typeList: A,
240
+ isSingleType: d,
241
+ validationErrors: f,
242
+ focusFields: R,
243
+ tableRef: v
244
+ } = i, { t: c } = re(), w = ut(o), I = w.getFieldName, b = {
245
+ // 基础配置
246
+ props: o,
247
+ tableData: a,
248
+ emit: e,
249
+ getSnowFlakeId: D,
250
+ typeList: A,
251
+ isSingleType: d,
252
+ // 状态管理
253
+ validationErrors: f,
254
+ focusFields: R,
255
+ tableRef: v,
256
+ // 模式策略管理器(统一模式判断逻辑)
257
+ modeStrategy: w,
258
+ // 字段映射(从 modeStrategy 获取)
259
+ getFieldName: I,
260
+ getFieldValue: (L, _) => {
261
+ const u = I(_);
262
+ return L[u];
263
+ },
264
+ setFieldValue: (L, _, u) => {
265
+ const n = I(_);
266
+ L[n] = u;
267
+ },
268
+ // 模式判断(从 modeStrategy 导出,保持向后兼容)
269
+ isPluginMode: w.isPluginMode,
270
+ isDataType: w.isDataType,
271
+ isJustString: w.isJustString,
272
+ isForceRequired: w.isForceRequired,
273
+ showMoreColumns: w.showMoreColumns,
274
+ // 组合模式判断
275
+ isPluginDataTypeMode: w.isPluginDataTypeMode,
276
+ isPluginJustStringMode: w.isPluginJustStringMode,
277
+ isNormalDataTypeMode: w.isNormalDataTypeMode,
278
+ isNormalJustStringMode: w.isNormalJustStringMode,
279
+ // 其他 props 相关的计算属性
280
+ disabled: h(() => o.disabled),
281
+ forceRequired: h(() => o.forceRequired),
282
+ location: h(() => o.location),
283
+ setType: h(() => o.setType),
284
+ disabledFields: h(() => o.disabledFields),
285
+ inputItemNamesArr: h(() => o.inputItemNamesArr),
286
+ // 工具方法
287
+ /**
288
+ * 触发表格数据响应式更新
289
+ */
290
+ triggerTableUpdate: () => {
291
+ a.value = [...a.value];
292
+ },
293
+ /**
294
+ * 判断字段是否被禁用
295
+ * @param {String} fieldName - 字段名
296
+ * @returns {Boolean} 是否禁用
297
+ */
298
+ isFieldDisabled: (L) => {
299
+ const _ = o.disabledFields;
300
+ return !_ || !Array.isArray(_) ? !1 : _.includes(L);
301
+ },
302
+ /**
303
+ * 判断是否可以新增行
304
+ * @returns {Boolean} 是否可以新增
305
+ */
306
+ canAddRow: () => {
307
+ if (o.disabled) return !1;
308
+ const L = o.disabledFields;
309
+ return !L || !Array.isArray(L) ? !0 : !L.includes("add");
310
+ },
311
+ /**
312
+ * 判断是否可以删除行
313
+ * @returns {Boolean} 是否可以删除
314
+ */
315
+ canDeleteRow: () => {
316
+ if (o.disabled) return !1;
317
+ const L = o.disabledFields;
318
+ return !L || !Array.isArray(L) ? !0 : !L.includes("delete");
319
+ }
320
+ };
321
+ return Xe(Be, b), b;
322
+ }
323
+ function Ae() {
324
+ const i = ze(Be);
325
+ if (!i)
326
+ throw new Error(
327
+ t("COMMON_PARAMETERTABLE.ERROR_USE_PARAMETER_TABLE_CONTEXT") + t("COMMON_PARAMETERTABLE.ERROR_USE_PARAMETER_TEXT")
328
+ );
329
+ return i;
330
+ }
331
+ const ct = { class: "parameter-format-selector" }, pt = {
332
+ __name: "ParameterFormatSelector",
333
+ props: {
334
+ modelValue: {
335
+ type: String,
336
+ default: ""
337
+ },
338
+ disabled: {
339
+ type: Boolean,
340
+ default: !1
341
+ },
342
+ // 传入完整的行数据,用于编辑选项值
343
+ rowData: {
344
+ type: Object,
345
+ required: !0
346
+ }
347
+ },
348
+ emits: ["update:modelValue", "change", "optionCreated"],
349
+ setup(i, { emit: o }) {
350
+ const { t: a } = re(), e = i, D = o, { getFieldName: A } = Ae(), d = [
351
+ {
352
+ label: a("COMMON_DATA.PLACEHOLDER_SINGLE_LINE_TEXT"),
353
+ //单行文本框
354
+ value: "input",
355
+ supportTypes: ["string", "integer", "number", "boolean"]
356
+ // 通用类型都支持
357
+ },
358
+ {
359
+ label: a("COMMON_DATA.PLACEHOLDER_MULTI_LINE_TEXT"),
360
+ //多行文本框
361
+ value: "multi-input",
362
+ supportTypes: ["string", "integer", "number", "boolean"]
363
+ // 只有 string 支持多行文本
364
+ },
365
+ {
366
+ label: a("COMMON_DATA.PLACEHOLDER_CHECKBOX"),
367
+ //多选框
368
+ value: "checkbox",
369
+ supportTypes: ["string"]
370
+ // 字符串和字符串数组
371
+ },
372
+ {
373
+ label: a("COMMON_DATA.PLACEHOLDER_RADIO_BUTTON"),
374
+ //单选框
375
+ value: "radio-button",
376
+ supportTypes: ["string", "integer", "number", "boolean"]
377
+ // 只有 string 支持单选
378
+ },
379
+ {
380
+ label: a("COMMON_DATA.PLACEHOLDER_TIME_DATETIME"),
381
+ //时间日期选择器
382
+ value: "datetime",
383
+ supportTypes: ["string"]
384
+ // 时间类型
385
+ },
386
+ {
387
+ label: a("COMMON_DATA.PLACEHOLDER_IMAGE"),
388
+ //图片
389
+ value: "image",
390
+ supportTypes: ["file"]
391
+ // 图片类型
392
+ },
393
+ {
394
+ label: a("COMMON_DATA.PLACEHOLDER_FILE"),
395
+ //文件
396
+ value: "file",
397
+ supportTypes: ["file"]
398
+ // 文件类型
399
+ }
400
+ ], f = ae(e.modelValue), R = ae(null), v = h(() => {
401
+ const O = e.rowData[A("type")];
402
+ return O ? d.filter((b) => b.supportTypes.includes(O)) : d;
403
+ }), c = h(() => f.value === "checkbox" || f.value === "radio-button");
404
+ pe(
405
+ () => e.modelValue,
406
+ (O) => {
407
+ f.value = O;
408
+ }
409
+ ), pe(
410
+ () => e.rowData[A("type")],
411
+ (O) => {
412
+ if (O && f.value) {
413
+ const b = d.find(
414
+ (L) => L.value === f.value
415
+ );
416
+ b && !b.supportTypes.includes(O) && (f.value = "input", D("update:modelValue", "input"), D("change", "input", e.rowData));
417
+ }
418
+ }
419
+ );
420
+ const w = () => {
421
+ D("update:modelValue", f.value), D("change", f.value, e.rowData);
422
+ }, I = () => {
423
+ R.value && R.value.showOption(e.rowData);
424
+ }, M = (O) => {
425
+ D("optionCreated", O);
426
+ };
427
+ return (O, b) => {
428
+ const L = j("el-option"), _ = j("el-select"), u = j("IconEdit2"), n = j("el-icon");
429
+ return g(), G("div", ct, [
430
+ E(_, {
431
+ modelValue: f.value,
432
+ "onUpdate:modelValue": b[0] || (b[0] = (s) => f.value = s),
433
+ disabled: i.disabled,
434
+ placeholder: l(a)("COMMON_DATA.PLACEHOLDER_SELECT"),
435
+ style: { width: "100%" },
436
+ onChange: w
437
+ }, {
438
+ default: p(() => [
439
+ (g(!0), G(oe, null, Pe(v.value, (s) => (g(), H(L, {
440
+ key: s.value,
441
+ label: s.label,
442
+ value: s.value
443
+ }, null, 8, ["label", "value"]))), 128))
444
+ ]),
445
+ _: 1
446
+ }, 8, ["modelValue", "disabled", "placeholder"]),
447
+ c.value ? (g(), H(n, {
448
+ key: 0,
449
+ class: "edit-icon",
450
+ onClick: I
451
+ }, {
452
+ default: p(() => [
453
+ E(u)
454
+ ]),
455
+ _: 1
456
+ })) : Y("", !0),
457
+ E(st, {
458
+ ref_key: "optionValueDialog",
459
+ ref: R,
460
+ onCreateOption: M
461
+ }, null, 512)
462
+ ]);
463
+ };
464
+ }
465
+ }, _t = /* @__PURE__ */ ue(pt, [["__scopeId", "data-v-beddfd55"]]), _e = [
466
+ {
467
+ label: "String",
468
+ value: "string",
469
+ example: ""
470
+ },
471
+ {
472
+ label: "Number",
473
+ value: "number",
474
+ example: 0
475
+ },
476
+ {
477
+ label: "Integer",
478
+ value: "integer",
479
+ example: 0
480
+ },
481
+ {
482
+ label: "Boolean",
483
+ value: "boolean",
484
+ example: !1
485
+ },
486
+ {
487
+ label: "File",
488
+ value: "file",
489
+ example: ""
490
+ },
491
+ {
492
+ label: "Object",
493
+ value: "object",
494
+ example: {}
495
+ },
496
+ {
497
+ label: "Array<String>",
498
+ value: "arrayString",
499
+ example: []
500
+ },
501
+ {
502
+ label: "Array<Number>",
503
+ value: "arrayNumber",
504
+ example: []
505
+ },
506
+ {
507
+ label: "Array<Integer>",
508
+ value: "arrayInteger",
509
+ example: []
510
+ },
511
+ {
512
+ label: "Array<Boolean>",
513
+ value: "arrayBoolean",
514
+ example: []
515
+ },
516
+ {
517
+ label: "Array<File>",
518
+ value: "arrayFile",
519
+ example: []
520
+ },
521
+ {
522
+ label: "Array<Object>",
523
+ value: "arrayObject",
524
+ example: []
525
+ }
526
+ ], Re = (() => {
527
+ const i = {};
528
+ return _e.forEach((o) => {
529
+ i[o.value] = o.label;
530
+ }), i;
531
+ })(), mt = [
532
+ "arrayString",
533
+ "arrayFile",
534
+ "arrayInteger",
535
+ "arrayNumber",
536
+ "arrayObject",
537
+ "arrayBoolean",
538
+ "arrayImage"
539
+ ], yl = ["GET", "HEAD", "DELETE"], fl = [
540
+ {
541
+ value: "POST",
542
+ label: "POST"
543
+ },
544
+ {
545
+ value: "GET",
546
+ label: "GET"
547
+ },
548
+ {
549
+ value: "PUT",
550
+ label: "PUT"
551
+ },
552
+ {
553
+ value: "DELETE",
554
+ label: "DELETE"
555
+ },
556
+ {
557
+ value: "PATCH",
558
+ label: "PATCH"
559
+ },
560
+ {
561
+ value: "HEAD",
562
+ label: "HEAD"
563
+ }
564
+ ], se = (i) => mt.includes(i) || i === "array", ce = (i, o) => {
565
+ const { nameField: a, typeField: e, valueField: D } = o;
566
+ if (!i.children || i.children.length === 0)
567
+ return;
568
+ const A = i[e];
569
+ if (se(A)) {
570
+ const d = [];
571
+ return i.children.forEach((f) => {
572
+ if (f.children && f.children.length > 0)
573
+ d.push(ce(f, o));
574
+ else {
575
+ const R = f[D];
576
+ let v = R !== void 0 && R !== "" ? R : "";
577
+ const c = f[e];
578
+ c === "number" || c === "integer" ? v = v === "" ? 0 : Number(v) : c === "boolean" ? v = v === "" ? !1 : !!v : c === "object" && (v = ce(f, o) || {}), d.push(v);
579
+ }
580
+ }), d;
581
+ }
582
+ if (A === "object") {
583
+ const d = {};
584
+ return i.children.forEach((f) => {
585
+ const R = f[a];
586
+ if (!(!R || R === "[Array Item]"))
587
+ if (f.children && f.children.length > 0)
588
+ d[R] = ce(f, o);
589
+ else {
590
+ const v = f[D];
591
+ let c = v !== void 0 && v !== "" ? v : "";
592
+ const w = f[e];
593
+ w === "number" || w === "integer" ? c = c === "" ? 0 : Number(c) : w === "boolean" ? c = c === "" ? !1 : !!c : w === "object" ? c = ce(f, o) || {} : se(w) && (c = ce(f, o) || []), d[R] = c;
594
+ }
595
+ }), d;
596
+ }
597
+ }, At = { class: "value-cell" }, yt = {
598
+ key: 2,
599
+ class: "filename-box"
600
+ }, ft = {
601
+ key: 4,
602
+ class: "filename-box"
603
+ }, Et = {
604
+ key: 1,
605
+ class: "filename-box"
606
+ }, vt = {
607
+ key: 1,
608
+ class: "error-message"
609
+ }, Ot = {
610
+ __name: "ValueCell",
611
+ props: /* @__PURE__ */ ie({
612
+ row: {
613
+ type: Object,
614
+ required: !0
615
+ }
616
+ }, {
617
+ value: {
618
+ type: [String, Number, Boolean, Object, Array],
619
+ default: ""
620
+ },
621
+ valueModifiers: {},
622
+ type: {
623
+ type: String,
624
+ default: "string"
625
+ },
626
+ typeModifiers: {}
627
+ }),
628
+ emits: ["update:value", "update:type"],
629
+ setup(i) {
630
+ const { t: o } = re(), a = i, e = me(i, "value"), D = me(i, "type"), A = Ae(), {
631
+ isFieldDisabled: d,
632
+ props: f,
633
+ emit: R,
634
+ getFieldName: v,
635
+ validationErrors: c
636
+ } = A, w = h(() => f.isPluginMode), I = h(() => f.disabled), M = h(() => {
637
+ if (!w.value || !a.row.required) return null;
638
+ const C = a.row.uiid, m = v("value");
639
+ return c.value[C]?.[m];
640
+ }), O = h(() => !!M.value), b = h(() => I.value || a.row.disabled || d("value")), L = h(() => a.row.extendWidgetType === "file" || D.value === "file"), _ = h(() => a.row[v("type")] === "image" || a.row[v("type")] === "file"), u = h(() => {
641
+ const C = a.row["extend-widget-item"];
642
+ if (!C) return [];
643
+ if (Array.isArray(C)) return C;
644
+ try {
645
+ return typeof C == "string" ? JSON.parse(C) : [];
646
+ } catch {
647
+ return [];
648
+ }
649
+ }), n = () => {
650
+ if (w.value && a.row.required) {
651
+ const C = a.row.uiid, m = v("value"), r = a.row[m];
652
+ r == null || r === "" || Array.isArray(r) && r.length === 0 || typeof r == "string" && !r.trim() ? c.value[C] = {
653
+ ...c.value[C],
654
+ [m]: o("COMMON_DATA.REQUIRED_NULL")
655
+ } : c.value[C]?.[m] && (delete c.value[C][m], Object.keys(c.value[C]).length === 0 && delete c.value[C]);
656
+ }
657
+ }, s = () => {
658
+ n(), R("debugger-data-change");
659
+ }, N = (C) => {
660
+ e.value = C, s();
661
+ }, P = () => {
662
+ e.value = "", s();
663
+ };
664
+ return (C, m) => {
665
+ const r = j("el-date-picker"), y = j("el-button"), V = j("el-icon"), U = j("el-option"), k = j("el-select"), X = j("el-input");
666
+ return g(), G("div", At, [
667
+ !l(se)(D.value) && D.value !== "object" && D.value !== "arrayObject" ? (g(), G(oe, { key: 0 }, [
668
+ w.value ? (g(), G(oe, { key: 0 }, [
669
+ i.row.extendWidgetType === "datetime" ? (g(), H(r, {
670
+ key: 0,
671
+ modelValue: e.value,
672
+ "onUpdate:modelValue": m[0] || (m[0] = (F) => e.value = F),
673
+ type: "datetime",
674
+ disabled: b.value,
675
+ style: { width: "100%" },
676
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_DATETIME"),
677
+ format: "YYYY-MM-DD HH:mm:ss",
678
+ "value-format": "YYYY-MM-DD HH:mm:ss",
679
+ class: le({ "error-input": O.value }),
680
+ onChange: s
681
+ }, null, 8, ["modelValue", "disabled", "placeholder", "class"])) : i.row.extendWidgetType === "image" && !e.value ? (g(), H(l(ge), {
682
+ key: 1,
683
+ uploadType: l(Ne).自定义,
684
+ acceptType: l(Le)("image"),
685
+ multiple: !1,
686
+ limitSize: 1,
687
+ limitCount: 1,
688
+ warnTips: l(be)("image"),
689
+ onOnSuccess: N
690
+ }, {
691
+ "upload-box": p(() => [
692
+ E(y, {
693
+ icon: l(Me),
694
+ type: "primary"
695
+ }, {
696
+ default: p(() => [
697
+ $(x(l(o)("COMMON_BUTTON.UPLOAD_IMAGE_TEXT")), 1)
698
+ ]),
699
+ _: 1
700
+ }, 8, ["icon"])
701
+ ]),
702
+ _: 1
703
+ }, 8, ["uploadType", "acceptType", "warnTips"])) : i.row.extendWidgetType === "image" && e.value ? (g(), G("div", yt, [
704
+ W("div", null, [
705
+ E(l(Ce), { content: e.value }, {
706
+ default: p(() => [
707
+ $(x(e.value.effectiveUrl), 1)
708
+ ]),
709
+ _: 1
710
+ }, 8, ["content"])
711
+ ]),
712
+ E(V, {
713
+ class: "filename-icon",
714
+ onClick: P
715
+ }, {
716
+ default: p(() => [
717
+ E(l(Te))
718
+ ]),
719
+ _: 1
720
+ })
721
+ ])) : L.value && !e.value ? (g(), H(l(ge), {
722
+ key: 3,
723
+ uploadType: l(Ne).自定义,
724
+ acceptType: l(Le)("file"),
725
+ multiple: !1,
726
+ limitSize: 1,
727
+ limitCount: 1,
728
+ warnTips: l(be)("file"),
729
+ onOnSuccess: N
730
+ }, {
731
+ "upload-box": p(() => [
732
+ E(y, {
733
+ icon: l(Me),
734
+ type: "primary"
735
+ }, {
736
+ default: p(() => [
737
+ $(x(l(o)("COMMON_BUTTON.UPLOAD_FILE_TEXT")), 1)
738
+ ]),
739
+ _: 1
740
+ }, 8, ["icon"])
741
+ ]),
742
+ _: 1
743
+ }, 8, ["uploadType", "acceptType", "warnTips"])) : L.value && e.value ? (g(), G("div", ft, [
744
+ W("div", null, [
745
+ E(l(Ce), { content: e.value }, {
746
+ default: p(() => [
747
+ $(x(e.value.effectiveUrl), 1)
748
+ ]),
749
+ _: 1
750
+ }, 8, ["content"])
751
+ ]),
752
+ E(V, {
753
+ class: "filename-icon",
754
+ onClick: P
755
+ }, {
756
+ default: p(() => [
757
+ E(l(Te))
758
+ ]),
759
+ _: 1
760
+ })
761
+ ])) : i.row.extendWidgetType === "checkbox" || i.row.extendWidgetType === "radio-button" ? (g(), H(k, {
762
+ key: 5,
763
+ modelValue: e.value,
764
+ "onUpdate:modelValue": m[1] || (m[1] = (F) => e.value = F),
765
+ multiple: i.row.extendWidgetType === "checkbox",
766
+ style: { width: "100%" },
767
+ disabled: b.value,
768
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_SELECT"),
769
+ class: le({ "error-select": O.value }),
770
+ onChange: s
771
+ }, {
772
+ default: p(() => [
773
+ (g(!0), G(oe, null, Pe(u.value, (F) => (g(), H(U, {
774
+ key: F.value,
775
+ label: F.label,
776
+ value: F.value
777
+ }, null, 8, ["label", "value"]))), 128))
778
+ ]),
779
+ _: 1
780
+ }, 8, ["modelValue", "multiple", "disabled", "placeholder", "class"])) : i.row.extendWidgetType === "multi-input" ? (g(), H(X, {
781
+ key: 6,
782
+ modelValue: e.value,
783
+ "onUpdate:modelValue": m[2] || (m[2] = (F) => e.value = F),
784
+ type: "textarea",
785
+ rows: 3,
786
+ onBlur: s,
787
+ disabled: b.value,
788
+ style: { width: "100%" },
789
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_INPUT"),
790
+ class: le({ "error-input": O.value })
791
+ }, null, 8, ["modelValue", "disabled", "placeholder", "class"])) : i.row[l(v)("type")] === "boolean" ? (g(), H(k, {
792
+ key: 7,
793
+ modelValue: e.value,
794
+ "onUpdate:modelValue": m[3] || (m[3] = (F) => e.value = F),
795
+ onChange: s,
796
+ disabled: b.value,
797
+ style: { width: "100%" },
798
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_SELECT")
799
+ }, {
800
+ default: p(() => [
801
+ E(U, {
802
+ value: !0,
803
+ label: "true"
804
+ }),
805
+ E(U, {
806
+ value: !1,
807
+ label: "false"
808
+ })
809
+ ]),
810
+ _: 1
811
+ }, 8, ["modelValue", "disabled", "placeholder"])) : i.row[l(v)("type")] === "number" || i.row[l(v)("type")] === "integer" ? (g(), H(X, {
812
+ key: 8,
813
+ modelValue: e.value,
814
+ "onUpdate:modelValue": m[4] || (m[4] = (F) => e.value = F),
815
+ modelModifiers: { number: !0 },
816
+ type: "number",
817
+ class: "number-input-no-spinner",
818
+ onBlur: s,
819
+ disabled: b.value,
820
+ style: { width: "100%" },
821
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_NUMBER")
822
+ }, null, 8, ["modelValue", "disabled", "placeholder"])) : (g(), H(X, {
823
+ key: 9,
824
+ modelValue: e.value,
825
+ "onUpdate:modelValue": m[5] || (m[5] = (F) => e.value = F),
826
+ onBlur: s,
827
+ disabled: b.value,
828
+ style: { width: "100%" },
829
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_INPUT"),
830
+ class: le({ "error-input": O.value })
831
+ }, null, 8, ["modelValue", "disabled", "placeholder", "class"]))
832
+ ], 64)) : (g(), G(oe, { key: 1 }, [
833
+ !e.value && _.value ? (g(), H(l(ge), {
834
+ key: 0,
835
+ uploadType: l(Ne).自定义,
836
+ acceptType: l(Le)(i.row[l(v)("type")]),
837
+ multiple: !1,
838
+ limitSize: 1,
839
+ limitCount: 1,
840
+ warnTips: l(be)(i.row[l(v)("type")]),
841
+ onOnSuccess: N
842
+ }, {
843
+ "upload-box": p(() => [
844
+ E(y, {
845
+ icon: l(Me),
846
+ type: "primary"
847
+ }, {
848
+ default: p(() => [
849
+ $(x(l(o)("COMMON_BUTTON.UPLOADING_TEXT")), 1)
850
+ ]),
851
+ _: 1
852
+ }, 8, ["icon"])
853
+ ]),
854
+ _: 1
855
+ }, 8, ["uploadType", "acceptType", "warnTips"])) : e.value && _.value ? (g(), G("div", Et, [
856
+ W("div", null, [
857
+ E(l(Ce), { content: e.value }, {
858
+ default: p(() => [
859
+ $(x(e.value.effectiveUrl), 1)
860
+ ]),
861
+ _: 1
862
+ }, 8, ["content"])
863
+ ]),
864
+ E(V, {
865
+ class: "filename-icon",
866
+ onClick: P
867
+ }, {
868
+ default: p(() => [
869
+ E(l(Te))
870
+ ]),
871
+ _: 1
872
+ })
873
+ ])) : i.row[l(v)("type")] === "boolean" ? (g(), H(k, {
874
+ key: 2,
875
+ modelValue: e.value,
876
+ "onUpdate:modelValue": m[6] || (m[6] = (F) => e.value = F),
877
+ onChange: s,
878
+ disabled: b.value,
879
+ style: { width: "100%" },
880
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_SELECT"),
881
+ class: le({ "error-select": O.value })
882
+ }, {
883
+ default: p(() => [
884
+ E(U, {
885
+ value: !0,
886
+ label: "true"
887
+ }),
888
+ E(U, {
889
+ value: !1,
890
+ label: "false"
891
+ })
892
+ ]),
893
+ _: 1
894
+ }, 8, ["modelValue", "disabled", "placeholder", "class"])) : i.row[l(v)("type")] === "number" || i.row[l(v)("type")] === "integer" ? (g(), H(X, {
895
+ key: 3,
896
+ modelValue: e.value,
897
+ "onUpdate:modelValue": m[7] || (m[7] = (F) => e.value = F),
898
+ modelModifiers: { number: !0 },
899
+ type: "number",
900
+ class: le(["number-input-no-spinner", { "error-input": O.value }]),
901
+ onBlur: s,
902
+ disabled: b.value,
903
+ style: { width: "100%" },
904
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_NUMBER")
905
+ }, null, 8, ["modelValue", "class", "disabled", "placeholder"])) : (g(), H(X, {
906
+ key: 4,
907
+ modelValue: e.value,
908
+ "onUpdate:modelValue": m[8] || (m[8] = (F) => e.value = F),
909
+ onBlur: s,
910
+ disabled: b.value,
911
+ style: { width: "100%" },
912
+ placeholder: l(o)("COMMON_DATA.PLACEHOLDER_INPUT"),
913
+ class: le({ "error-input": O.value })
914
+ }, null, 8, ["modelValue", "disabled", "placeholder", "class"]))
915
+ ], 64))
916
+ ], 64)) : Y("", !0),
917
+ M.value ? (g(), G("div", vt, x(M.value), 1)) : Y("", !0)
918
+ ]);
919
+ };
920
+ }
921
+ }, Mt = /* @__PURE__ */ ue(Ot, [["__scopeId", "data-v-0679b0d7"]]), Tt = { class: "name-input-container" }, ht = {
922
+ key: 0,
923
+ class: "array-item-display"
924
+ }, gt = {
925
+ key: 2,
926
+ class: "error-message"
927
+ }, bt = {
928
+ __name: "NameCell",
929
+ props: /* @__PURE__ */ ie({
930
+ row: {
931
+ type: Object,
932
+ required: !0
933
+ },
934
+ arrayItemIndex: {
935
+ type: Number,
936
+ default: 1
937
+ }
938
+ }, {
939
+ name: {
940
+ type: String,
941
+ default: ""
942
+ },
943
+ nameModifiers: {}
944
+ }),
945
+ emits: /* @__PURE__ */ ie(["focus", "blur"], ["update:name"]),
946
+ setup(i, { emit: o }) {
947
+ const a = i, e = me(i, "name"), D = Ae(), {
948
+ getFieldName: A,
949
+ getFieldValue: d,
950
+ isFieldDisabled: f,
951
+ props: R,
952
+ validationErrors: v,
953
+ focusFields: c
954
+ } = D, w = o, I = A("name"), M = h(() => d(a.row, "name") === "[Array Item]" && (!R.isDataType || R.isPluginMode)), O = h(() => R.disabled || a.row.disabled || f("name")), b = h(() => a.arrayItemIndex), L = h(() => v.value[a.row.uiid]?.[I]), _ = h(() => c.value[a.row.uiid]?.[I]), u = h(() => L.value && !_.value), n = () => {
955
+ c.value[a.row.uiid] || (c.value[a.row.uiid] = {}), c.value[a.row.uiid][I] = !0, w("focus", a.row.uiid, I);
956
+ }, s = () => {
957
+ c.value[a.row.uiid] && (c.value[a.row.uiid][I] = !1), w("blur", a.row, I);
958
+ };
959
+ return (N, P) => {
960
+ const C = j("el-icon"), m = j("el-tag"), r = j("el-input");
961
+ return g(), G("div", Tt, [
962
+ M.value ? (g(), G("div", ht, [
963
+ E(m, {
964
+ type: "info",
965
+ size: "small",
966
+ class: "array-tag"
967
+ }, {
968
+ default: p(() => [
969
+ E(C, null, {
970
+ default: p(() => [
971
+ E(l(Ke))
972
+ ]),
973
+ _: 1
974
+ }),
975
+ $(" " + x(N.t("COMMON_PLUGIN_TOOL.LABEL_PARAM_ARRAY_ITEM")) + " " + x(b.value), 1)
976
+ ]),
977
+ _: 1
978
+ })
979
+ ])) : (g(), H(r, {
980
+ key: 1,
981
+ modelValue: e.value,
982
+ "onUpdate:modelValue": P[0] || (P[0] = (y) => e.value = y),
983
+ disabled: O.value,
984
+ onFocus: n,
985
+ onBlur: s,
986
+ style: { width: "100%" },
987
+ placeholder: N.t("COMMON_PLUGIN_TOOL.LABEL_PARAM_NAME_PLACEHOLDER"),
988
+ class: le({ "error-input": u.value })
989
+ }, null, 8, ["modelValue", "disabled", "placeholder", "class"])),
990
+ u.value ? (g(), G("div", gt, x(L.value), 1)) : Y("", !0)
991
+ ]);
992
+ };
993
+ }
994
+ }, Lt = /* @__PURE__ */ ue(bt, [["__scopeId", "data-v-a9f9dd5a"]]), Nt = { class: "type-select-container" }, Ct = { key: 1 }, Rt = {
995
+ key: 2,
996
+ class: "error-message"
997
+ }, Pt = {
998
+ __name: "TypeCell",
999
+ props: /* @__PURE__ */ ie({
1000
+ row: {
1001
+ type: Object,
1002
+ required: !0
1003
+ }
1004
+ }, {
1005
+ type: {
1006
+ type: String,
1007
+ default: "string"
1008
+ },
1009
+ typeModifiers: {}
1010
+ }),
1011
+ emits: /* @__PURE__ */ ie(["change"], ["update:type"]),
1012
+ setup(i, { emit: o }) {
1013
+ const a = i, e = me(i, "type"), D = o, A = Ae(), {
1014
+ getFieldName: d,
1015
+ getFieldValue: f,
1016
+ isFieldDisabled: R,
1017
+ props: v,
1018
+ validationErrors: c,
1019
+ focusFields: w,
1020
+ typeList: I,
1021
+ isSingleType: M
1022
+ } = A, O = d("type");
1023
+ d("name");
1024
+ const b = h(() => !(v.justString || f(a.row, "name") === "[Array Item]" && !v.isDataType || M.value)), L = h(() => v.disabled || a.row.disabled || R("type") || a.row["extend-widget-type"] === "input" || a.row["extend-widget-type"] === "multi-input"), _ = h(() => {
1025
+ const P = f(a.row, "name"), C = a.row[O];
1026
+ return P === "[Array Item]" ? Re[C] || "String" : M.value && I.value.length > 0 ? I.value[0].label : v.isDataType && Re[C] || "String";
1027
+ }), u = h(() => c.value[a.row.uiid]?.[O]), n = h(() => w.value[a.row.uiid]?.[O]), s = h(() => u.value && !n.value), N = () => {
1028
+ D("change", a.row);
1029
+ };
1030
+ return (P, C) => {
1031
+ const m = j("el-option"), r = j("el-select");
1032
+ return g(), G("div", Nt, [
1033
+ b.value ? (g(), H(r, {
1034
+ key: 0,
1035
+ modelValue: e.value,
1036
+ "onUpdate:modelValue": C[0] || (C[0] = (y) => e.value = y),
1037
+ "data-uiid": i.row.uiid,
1038
+ disabled: L.value,
1039
+ placeholder: "Select",
1040
+ style: { width: "100%" },
1041
+ class: le({ "error-select": s.value }),
1042
+ onChange: N
1043
+ }, {
1044
+ default: p(() => [
1045
+ (g(!0), G(oe, null, Pe(l(I), (y) => (g(), H(m, {
1046
+ key: y.value,
1047
+ label: y.label,
1048
+ value: y.value
1049
+ }, null, 8, ["label", "value"]))), 128))
1050
+ ]),
1051
+ _: 1
1052
+ }, 8, ["modelValue", "data-uiid", "disabled", "class"])) : (g(), G("span", Ct, x(_.value), 1)),
1053
+ s.value ? (g(), G("div", Rt, x(u.value), 1)) : Y("", !0)
1054
+ ]);
1055
+ };
1056
+ }
1057
+ }, wt = /* @__PURE__ */ ue(Pt, [["__scopeId", "data-v-cd059cc1"]]), Dt = {
1058
+ key: 0,
1059
+ class: "action-buttons"
1060
+ }, It = {
1061
+ __name: "ActionCell",
1062
+ props: {
1063
+ row: {
1064
+ type: Object,
1065
+ required: !0
1066
+ },
1067
+ scope: {
1068
+ type: Object,
1069
+ required: !0
1070
+ }
1071
+ },
1072
+ emits: ["add-child", "move-up", "move-down", "delete"],
1073
+ setup(i, { emit: o }) {
1074
+ const { t: a } = re(), e = i, D = o, A = Ae(), {
1075
+ getFieldName: d,
1076
+ getFieldValue: f,
1077
+ canAddRow: R,
1078
+ canDeleteRow: v,
1079
+ props: c
1080
+ } = A, w = h(() => c.disabled), I = h(() => e.row[d("type")]), M = h(() => f(e.row, "name")), O = h(() => c.isDataType ? I.value === "object" || I.value === "arrayObject" : se(I.value) || I.value === "object"), b = h(() => c.isDataType ? I.value === "object" || I.value === "arrayObject" ? a("COMMON_ACTIONCELL.LABEL_ADD_OBJECT_PROPERTY") : a("COMMON_ACTIONCELL.LABEL_ADD_CHILD") : se(I.value) ? I.value === "arrayObject" ? a("COMMON_ACTIONCELL.LABEL_ADD_OBJECT_TO_ARRAY") : a("COMMON_ACTIONCELL.LABEL_ADD_ARRAY_ITEM") : I.value === "object" ? a("COMMON_ACTIONCELL.LABEL_ADD_PROPERTY") : a("COMMON_ACTIONCELL.LABEL_ADD_CHILD")), L = h(() => O.value && R()), _ = h(() => M.value === "[Array Item]" && !c.isDataType), u = h(() => c.isDataType && M.value !== "[Array Item]"), n = h(() => e.scope._canMoveUp || !1), s = h(() => e.scope._canMoveDown || !1), N = h(() => w.value || e.row.disabled ? !1 : e.scope._showDelete && v()), P = () => {
1081
+ D("add-child", e.scope);
1082
+ }, C = () => {
1083
+ D("move-up", e.row, "up");
1084
+ }, m = () => {
1085
+ D("move-down", e.row, "down");
1086
+ }, r = () => {
1087
+ D("delete", e.scope);
1088
+ };
1089
+ return (y, V) => {
1090
+ const U = j("el-icon");
1091
+ return w.value ? Y("", !0) : (g(), G("div", Dt, [
1092
+ L.value ? (g(), H(U, {
1093
+ key: 0,
1094
+ class: "table-form__add",
1095
+ onClick: P,
1096
+ title: b.value
1097
+ }, {
1098
+ default: p(() => [
1099
+ E(l(Ze))
1100
+ ]),
1101
+ _: 1
1102
+ }, 8, ["title"])) : Y("", !0),
1103
+ _.value ? (g(), G(oe, { key: 1 }, [
1104
+ n.value ? (g(), H(U, {
1105
+ key: 0,
1106
+ class: "table-form__action array-action",
1107
+ onClick: C,
1108
+ title: l(a)("COMMON_ACTIONCELL.LABEL_MOVE_UP")
1109
+ }, {
1110
+ default: p(() => [
1111
+ E(l(De))
1112
+ ]),
1113
+ _: 1
1114
+ }, 8, ["title"])) : Y("", !0),
1115
+ s.value ? (g(), H(U, {
1116
+ key: 1,
1117
+ class: "table-form__action array-action",
1118
+ onClick: m,
1119
+ title: l(a)("COMMON_ACTIONCELL.LABEL_MOVE_DOWN")
1120
+ }, {
1121
+ default: p(() => [
1122
+ E(l(Ie))
1123
+ ]),
1124
+ _: 1
1125
+ }, 8, ["title"])) : Y("", !0)
1126
+ ], 64)) : Y("", !0),
1127
+ u.value ? (g(), G(oe, { key: 2 }, [
1128
+ n.value ? (g(), H(U, {
1129
+ key: 0,
1130
+ class: "table-form__action array-action",
1131
+ onClick: C,
1132
+ title: l(a)("COMMON_ACTIONCELL.LABEL_MOVE_UP")
1133
+ }, {
1134
+ default: p(() => [
1135
+ E(l(De))
1136
+ ]),
1137
+ _: 1
1138
+ }, 8, ["title"])) : Y("", !0),
1139
+ s.value ? (g(), H(U, {
1140
+ key: 1,
1141
+ class: "table-form__action array-action",
1142
+ onClick: m,
1143
+ title: l(a)("COMMON_ACTIONCELL.LABEL_MOVE_DOWN")
1144
+ }, {
1145
+ default: p(() => [
1146
+ E(l(Ie))
1147
+ ]),
1148
+ _: 1
1149
+ }, 8, ["title"])) : Y("", !0)
1150
+ ], 64)) : Y("", !0),
1151
+ N.value ? (g(), H(U, {
1152
+ key: 3,
1153
+ class: "table-form__action",
1154
+ onClick: r,
1155
+ title: l(a)("COMMON_ACTIONCELL.LABEL_DELETE")
1156
+ }, {
1157
+ default: p(() => [
1158
+ E(l(et))
1159
+ ]),
1160
+ _: 1
1161
+ }, 8, ["title"])) : Y("", !0)
1162
+ ]));
1163
+ };
1164
+ }
1165
+ }, Vt = /* @__PURE__ */ ue(It, [["__scopeId", "data-v-6662c4ee"]]), Ut = {
1166
+ // 参数名称列
1167
+ name: {
1168
+ get label() {
1169
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_NAME");
1170
+ },
1171
+ slot: "name",
1172
+ minWidth: 200,
1173
+ headerSlot: "keyHeader",
1174
+ required: !0
1175
+ },
1176
+ // 参数类型列
1177
+ type: {
1178
+ get label() {
1179
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_TYPE");
1180
+ },
1181
+ slot: "type",
1182
+ minWidth: 150,
1183
+ headerSlot: "typeHeader",
1184
+ required: !0
1185
+ },
1186
+ // 参数类型列(较窄,用于普通模式)
1187
+ typeNarrow: {
1188
+ get label() {
1189
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_TYPE");
1190
+ },
1191
+ slot: "type",
1192
+ minWidth: 100,
1193
+ headerSlot: "typeHeader"
1194
+ },
1195
+ // 参数描述列(必填)
1196
+ descriptionRequired: {
1197
+ get label() {
1198
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_DESC");
1199
+ },
1200
+ slot: "description",
1201
+ minWidth: 250,
1202
+ headerSlot: "descHeader",
1203
+ required: !0
1204
+ },
1205
+ // 参数描述列(非必填)
1206
+ description: {
1207
+ get label() {
1208
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_DESC");
1209
+ },
1210
+ slot: "description",
1211
+ minWidth: 150,
1212
+ headerSlot: "descHeader",
1213
+ required: !1
1214
+ },
1215
+ // 参数描述列(普通模式,较窄)
1216
+ descriptionNarrow: {
1217
+ get label() {
1218
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_DESC");
1219
+ },
1220
+ slot: "description",
1221
+ minWidth: 150
1222
+ },
1223
+ // 是否必填列
1224
+ required: {
1225
+ get label() {
1226
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_REQUIRED");
1227
+ },
1228
+ slot: "required",
1229
+ minWidth: 100
1230
+ },
1231
+ // 参数显示名列
1232
+ showName: {
1233
+ get label() {
1234
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_SHOW_NAME");
1235
+ },
1236
+ slot: "showName",
1237
+ minWidth: 200,
1238
+ headerSlot: "showNameHeader"
1239
+ },
1240
+ // 参数格式列(已注释,保留以备后用)
1241
+ // format: {
1242
+ // label: '参数格式',
1243
+ // slot: 'format',
1244
+ // minWidth: 200,
1245
+ // headerSlot: 'formatHeader'
1246
+ // },
1247
+ // 默认值列
1248
+ default: {
1249
+ get label() {
1250
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_DEFAULT_VALUE");
1251
+ },
1252
+ slot: "default",
1253
+ minWidth: 180
1254
+ },
1255
+ // 是否可见列
1256
+ isShow: {
1257
+ get label() {
1258
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_IS_SHOW");
1259
+ },
1260
+ slot: "isShow",
1261
+ minWidth: 150,
1262
+ headerSlot: "isShowHeader"
1263
+ },
1264
+ // 调试值列
1265
+ test: {
1266
+ get label() {
1267
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_TEST_VALUE");
1268
+ },
1269
+ slot: "test",
1270
+ minWidth: 180
1271
+ },
1272
+ // Mock值列(用于普通模式)
1273
+ mock: {
1274
+ get label() {
1275
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_MOCK_VALUE");
1276
+ },
1277
+ slot: "test",
1278
+ minWidth: 100
1279
+ },
1280
+ // Mock值列(较宽,用于 justString 模式)
1281
+ mockWide: {
1282
+ get label() {
1283
+ return K("COMMON_PARAMETERTABLE.ARGUMENT_PARAM_MOCK_VALUE");
1284
+ },
1285
+ slot: "test",
1286
+ minWidth: 180
1287
+ },
1288
+ // 操作列
1289
+ action: {
1290
+ get label() {
1291
+ return K("COMMON_PARAMETERTABLE.LABEL_OPERATION");
1292
+ },
1293
+ slot: "action",
1294
+ fixed: "right",
1295
+ width: 140,
1296
+ headerSlot: "actionHeader"
1297
+ }
1298
+ }, Ve = {
1299
+ // 插件模式 - 基础列
1300
+ plugin: ["name", "type", "descriptionRequired", "required", "test", "action"],
1301
+ // 插件模式 - 更多列
1302
+ pluginMore: [
1303
+ "name",
1304
+ "type",
1305
+ "descriptionRequired",
1306
+ "required",
1307
+ "showName",
1308
+ "default",
1309
+ "isShow",
1310
+ "test",
1311
+ "action"
1312
+ ],
1313
+ // 插件模式 + 数据类型模式
1314
+ pluginDataType: ["name", "type", "description", "action"],
1315
+ // 插件模式 + justString - 基础列
1316
+ pluginJustString: [
1317
+ "name",
1318
+ "descriptionRequired",
1319
+ "required",
1320
+ "test",
1321
+ "action"
1322
+ ],
1323
+ // 插件模式 + justString - 更多列
1324
+ pluginJustStringMore: [
1325
+ "name",
1326
+ "descriptionRequired",
1327
+ "required",
1328
+ "showName",
1329
+ "default",
1330
+ "isShow",
1331
+ "test",
1332
+ "action"
1333
+ ],
1334
+ // 普通模式
1335
+ normal: ["name", "typeNarrow", "mock", "action"],
1336
+ // 普通模式 + 数据类型模式
1337
+ normalDataType: ["name", "typeNarrow", "descriptionNarrow", "action"],
1338
+ // 普通模式 + justString
1339
+ normalJustString: ["name", "mockWide", "action"]
1340
+ };
1341
+ function Ue(i) {
1342
+ return i.map((o) => {
1343
+ const a = Ut[o];
1344
+ if (!a)
1345
+ return console.warn(`列配置 "${o}" 不存在`), null;
1346
+ const e = Object.create(Object.getPrototypeOf(a));
1347
+ return Object.defineProperties(
1348
+ e,
1349
+ Object.getOwnPropertyDescriptors(a)
1350
+ ), e;
1351
+ }).filter(Boolean);
1352
+ }
1353
+ function St(i) {
1354
+ return i.isPluginMode && i.isDataType ? "pluginDataType" : i.justString ? i.isPluginMode ? i.showMoreColumns ? "pluginJustStringMore" : "pluginJustString" : "normalJustString" : i.isPluginMode ? i.showMoreColumns ? "pluginMore" : "plugin" : i.isDataType ? "normalDataType" : "normal";
1355
+ }
1356
+ function Bt(i) {
1357
+ return {
1358
+ columns: h(() => {
1359
+ const a = St(i), e = Ve[a];
1360
+ return e ? Ue(e) : (console.warn(`列预设 "${a}" 不存在,使用默认配置`), Ue(Ve.normal));
1361
+ })
1362
+ };
1363
+ }
1364
+ function Ft(i, o = null) {
1365
+ const { t: a } = re(), {
1366
+ getFieldName: e,
1367
+ tableData: D,
1368
+ validationErrors: A,
1369
+ focusFields: d,
1370
+ isDataType: f,
1371
+ inputItemNamesArr: R
1372
+ } = i, v = (u, n, s = null) => {
1373
+ for (const N of u) {
1374
+ if (N.uiid === n)
1375
+ return s;
1376
+ if (N.children) {
1377
+ const P = v(N.children, n, N);
1378
+ if (P) return P;
1379
+ }
1380
+ }
1381
+ return null;
1382
+ }, c = (u, n) => {
1383
+ for (const s of u) {
1384
+ if (s.uiid === n)
1385
+ return u;
1386
+ if (s.children && s.children.length > 0) {
1387
+ const N = c(s.children, n);
1388
+ if (N) return N;
1389
+ }
1390
+ }
1391
+ return null;
1392
+ }, w = (u, n, s = null, N = {}) => {
1393
+ const { checkEmpty: P = !1 } = N, C = /^[a-zA-Z][a-zA-Z0-9_-]*$/, m = s || e("name");
1394
+ if (P && !u)
1395
+ return A.value[n] = {
1396
+ ...A.value[n],
1397
+ [m]: a("COMMON_PARAMETERTABLE.ERROR_PARAM_NAME_REQUIRED")
1398
+ }, !1;
1399
+ if (!u || !C.test(u))
1400
+ return A.value[n] = {
1401
+ ...A.value[n],
1402
+ [m]: a("COMMON_PARAMETERTABLE.ERROR_PARAM_NAME_INVALID")
1403
+ }, !1;
1404
+ const r = c(D.value, n);
1405
+ return r && r.find(
1406
+ (U) => U[m] === u && U.uiid !== n && U[m] !== "[Array Item]"
1407
+ ) ? (A.value[n] = {
1408
+ [m]: a(
1409
+ "COMMON_PARAMETERTABLE.ERROR_PARAM_NAME_DUPLICATE"
1410
+ )
1411
+ }, !1) : !v(D.value, n) && R.value && R.value.length > 0 && R.value.filter((k) => (k[m] || k.dataName || k.name) === u).find((k) => k.uiid !== n) ? (A.value[n] = {
1412
+ [m]: a(
1413
+ "COMMON_PARAMETERTABLE.ERROR_PARAM_NAME_DUPLICATE"
1414
+ )
1415
+ }, !1) : (A.value[n] && (delete A.value[n][m], Object.keys(A.value[n]).length === 0 && delete A.value[n]), !0);
1416
+ }, I = (u, n, s = null, N = {}) => {
1417
+ const { checkEmpty: P = !1, checkTypesMap: C = !1 } = N, m = s || e("type");
1418
+ return P && !u ? (A.value[n] = {
1419
+ ...A.value[n],
1420
+ [m]: a("COMMON_PARAMETERTABLE.ERROR_PARAM_TYPE_REQUIRED")
1421
+ // '参数类型不能为空'
1422
+ }, !1) : u === "array" ? (A.value[n] = {
1423
+ ...A.value[n],
1424
+ [m]: a("COMMON_PARAMETERTABLE.ERROR_ARRAY_TYPE_REQUIRED")
1425
+ //'请选择数组类型'
1426
+ }, !1) : C && u && !Re[u] ? (A.value[n] = {
1427
+ ...A.value[n],
1428
+ [m]: a("COMMON_PARAMETERTABLE.ERROR_PARAM_TYPE_INVALID")
1429
+ // '参数类型无效'
1430
+ }, !1) : (A.value[n] && (delete A.value[n][m], Object.keys(A.value[n]).length === 0 && delete A.value[n]), !0);
1431
+ }, M = (u) => {
1432
+ if (!Array.isArray(u))
1433
+ return;
1434
+ const n = e("type");
1435
+ u.forEach((s) => {
1436
+ const N = s[n];
1437
+ N === "array" && I(N, s.uiid, n), s.children && Array.isArray(s.children) && s.children.length > 0 && M(s.children);
1438
+ });
1439
+ };
1440
+ return {
1441
+ // 方法
1442
+ validateDataName: w,
1443
+ validateDataType: I,
1444
+ validateAllDataTypes: M,
1445
+ validateAllRows: (u = !1) => {
1446
+ let n = !1;
1447
+ const s = e("name"), N = e("type"), P = e("value"), C = [];
1448
+ o && o.value && o.value.forEach((r) => {
1449
+ r.required && r.slot && C.push(r.slot);
1450
+ });
1451
+ const m = (r) => {
1452
+ Array.isArray(r) && r.forEach((y) => {
1453
+ const V = y.uiid, U = y[s], k = y[N], X = U === "[Array Item]";
1454
+ if (X || C.forEach((F) => {
1455
+ let Z = F;
1456
+ F === "name" ? Z = s : F === "type" && (Z = N);
1457
+ const ee = y[Z];
1458
+ if (!ee || typeof ee == "string" && !ee.trim()) {
1459
+ let de = a("COMMON_PARAMETERTABLE.ERROR_PARAM_REQUIRED");
1460
+ Z === s ? de = a("COMMON_PARAMETERTABLE.ERROR_PARAM_NAME_REQUIRED") : Z === N ? de = a("COMMON_PARAMETERTABLE.ERROR_PARAM_TYPE_REQUIRED") : Z === "description" && (de = a("COMMON_PARAMETERTABLE.ERROR_PARAM_DESC_REQUIRED")), A.value[V] = {
1461
+ ...A.value[V],
1462
+ [Z]: de
1463
+ }, n = !0;
1464
+ }
1465
+ }), X || w(U, V, s, {
1466
+ checkEmpty: !0
1467
+ }) || (n = !0), X || I(k, V, N, {
1468
+ checkEmpty: !0,
1469
+ checkTypesMap: f.value
1470
+ }) || (n = !0), u && !X && y.required) {
1471
+ const F = y[P];
1472
+ (!F || typeof F == "string" && !F.trim()) && (A.value[V] = {
1473
+ ...A.value[V],
1474
+ [P]: a(
1475
+ "COMMON_PARAMETERTABLE.ERROR_PARAM_TEST_VALUE_REQUIRED"
1476
+ )
1477
+ // '调试值不能为空'
1478
+ }, n = !0);
1479
+ }
1480
+ if ((k === "object" || k === "arrayObject") && y.children && Array.isArray(y.children) && y.children.length > 0) {
1481
+ const F = [];
1482
+ y.children.forEach((Z) => {
1483
+ const ee = Z[s];
1484
+ ee && ee !== "[Array Item]" && F.includes(ee) ? (A.value[Z.uiid] = {
1485
+ ...A.value[Z.uiid],
1486
+ [s]: a(
1487
+ "COMMON_PARAMETERTABLE.ERROR_PARAM_NAME_DUPLICATE"
1488
+ )
1489
+ // '参数名不能重复'
1490
+ }, n = !0) : ee && ee !== "[Array Item]" && F.push(ee);
1491
+ }), m(y.children);
1492
+ }
1493
+ });
1494
+ };
1495
+ return m(D.value), !n;
1496
+ },
1497
+ handleFocus: (u, n) => {
1498
+ d.value[u] || (d.value[u] = {}), d.value[u][n] = !0;
1499
+ },
1500
+ handleBlur: (u, n, s, N) => {
1501
+ const P = u.uiid;
1502
+ d.value[P] && (d.value[P][n] = !1);
1503
+ const C = u[n];
1504
+ w(C, P, n), s("data-name-validate"), N();
1505
+ },
1506
+ findParentNode: v,
1507
+ getSiblings: c,
1508
+ validateDescription: (u, n) => {
1509
+ const s = u.uiid;
1510
+ n && !u.description ? A.value[s] = {
1511
+ ...A.value[s],
1512
+ description: a("COMMON_PARAMETERTABLE.ERROR_PARAM_DESC_REQUIRED")
1513
+ // '参数描述不能为空'
1514
+ } : A.value[s]?.description && delete A.value[s].description;
1515
+ }
1516
+ };
1517
+ }
1518
+ function xt(i, o, a, e, D, A) {
1519
+ const {
1520
+ tableData: d,
1521
+ getFieldName: f,
1522
+ emit: R,
1523
+ validationErrors: v,
1524
+ tableRef: c,
1525
+ props: w,
1526
+ isJustString: I,
1527
+ disabled: M
1528
+ } = i, O = ae(1), b = () => {
1529
+ d.value = [...d.value];
1530
+ }, L = () => {
1531
+ const r = o(), y = f("name"), V = f("type");
1532
+ I.value && (r[V] = "string"), d.value = [...d.value, r], O.value = d.value.length, fe(() => {
1533
+ m(), d.value.forEach((U) => {
1534
+ const k = U[y];
1535
+ k && (D(k, U.uiid, y), R("data-name-validate"));
1536
+ }), A();
1537
+ });
1538
+ }, _ = (r) => {
1539
+ u(d.value, r.row.uiid), v.value[r.row.uiid] && delete v.value[r.row.uiid], b(), O.value = d.value.length, A(), R("data-name-validate");
1540
+ }, u = (r, y) => {
1541
+ for (let V = 0; V < r.length; V++) {
1542
+ if (r[V].uiid === y)
1543
+ return r.splice(V, 1), !0;
1544
+ if (r[V].children && r[V].children.length > 0 && u(r[V].children, y))
1545
+ return !0;
1546
+ }
1547
+ return !1;
1548
+ }, n = (r) => {
1549
+ const y = f("type"), U = (r.row.deep || 1) + 1, k = a(r.row[y], U);
1550
+ r.row.children ? r.row.children.push(k) : r.row.children = [k], b(), fe(() => {
1551
+ m();
1552
+ });
1553
+ }, s = (r) => {
1554
+ const y = e(d.value, r.uiid);
1555
+ return y && y.children ? y.children.findIndex((U) => U.uiid === r.uiid) > 0 : !1;
1556
+ }, N = (r) => {
1557
+ const y = e(d.value, r.uiid);
1558
+ return y && y.children ? y.children.findIndex((U) => U.uiid === r.uiid) < y.children.length - 1 : !1;
1559
+ }, P = (r, y) => {
1560
+ const V = e(d.value, r.uiid);
1561
+ if (!V || !V.children) return;
1562
+ const U = V.children.findIndex((X) => X.uiid === r.uiid);
1563
+ if (U === -1) return;
1564
+ const k = y === "up" ? U - 1 : U + 1;
1565
+ if (k >= 0 && k < V.children.length) {
1566
+ const X = V.children.splice(U, 1)[0];
1567
+ V.children.splice(k, 0, X), b();
1568
+ }
1569
+ }, C = (r) => !(M.value || r.disabled);
1570
+ function m() {
1571
+ fe(() => {
1572
+ setTimeout(() => {
1573
+ if (!c.value) return;
1574
+ let r = null;
1575
+ if (c.value.$el) {
1576
+ const y = [
1577
+ ".el-table__body-wrapper",
1578
+ ".el-scrollbar__wrap",
1579
+ ".aibox-table__body",
1580
+ ".el-table__body",
1581
+ ".table-body-wrapper",
1582
+ ".el-scrollbar__view",
1583
+ '[class*="body-wrapper"]',
1584
+ '[class*="scrollbar"]',
1585
+ '[class*="table__body"]'
1586
+ ];
1587
+ for (const V of y) {
1588
+ const U = c.value.$el.querySelectorAll(V);
1589
+ for (const k of U)
1590
+ if (k.scrollHeight > k.clientHeight) {
1591
+ r = k;
1592
+ break;
1593
+ }
1594
+ if (r) break;
1595
+ }
1596
+ }
1597
+ if (!r && c.value.$el) {
1598
+ const y = (V) => {
1599
+ if (V.scrollHeight > V.clientHeight && V.scrollHeight > 0)
1600
+ return V;
1601
+ for (const U of V.children || []) {
1602
+ const k = y(U);
1603
+ if (k) return k;
1604
+ }
1605
+ return null;
1606
+ };
1607
+ r = y(c.value.$el);
1608
+ }
1609
+ if (!r && c.value.$el && c.value.$el.scrollHeight > c.value.$el.clientHeight && (r = c.value.$el), r)
1610
+ try {
1611
+ r.scrollTo({
1612
+ top: r.scrollHeight,
1613
+ behavior: "smooth"
1614
+ });
1615
+ } catch {
1616
+ r.scrollTop = r.scrollHeight;
1617
+ }
1618
+ }, 50);
1619
+ }), R("scroll-to-bottom");
1620
+ }
1621
+ return {
1622
+ // 状态
1623
+ total: O,
1624
+ // 方法
1625
+ addNewRow: L,
1626
+ deleteLists: _,
1627
+ addLists: n,
1628
+ moveArrayItem: P,
1629
+ canMoveUp: s,
1630
+ canMoveDown: N,
1631
+ showDeleteButton: C,
1632
+ triggerTableUpdate: b
1633
+ };
1634
+ }
1635
+ function kt(i) {
1636
+ const {
1637
+ getFieldName: o,
1638
+ getSnowFlakeId: a,
1639
+ props: e,
1640
+ typeList: D,
1641
+ isSingleType: A,
1642
+ isPluginMode: d,
1643
+ isDataType: f,
1644
+ isJustString: R,
1645
+ forceRequired: v,
1646
+ location: c
1647
+ } = i, w = (_ = 1) => {
1648
+ const u = A.value ? D.value[0].value : "string", n = o("name"), s = o("type"), N = o("value"), P = {
1649
+ uiid: a(),
1650
+ [n]: "",
1651
+ [s]: u,
1652
+ [N]: "",
1653
+ description: ""
1654
+ };
1655
+ if (d.value) {
1656
+ const C = {
1657
+ required: !!v.value,
1658
+ extendName: "",
1659
+ extendWidgetType: "",
1660
+ extendDisplay: !0,
1661
+ defaultValue: ""
1662
+ };
1663
+ return f.value ? {
1664
+ ...P,
1665
+ ...C,
1666
+ deep: _
1667
+ } : {
1668
+ ...P,
1669
+ ...C
1670
+ };
1671
+ } else
1672
+ return {
1673
+ source: null,
1674
+ dataValue: "",
1675
+ ...P,
1676
+ featAttr: {
1677
+ location: c.value,
1678
+ debugValue: "",
1679
+ description: ""
1680
+ }
1681
+ };
1682
+ }, I = (_, u = 1) => {
1683
+ const n = o("name"), s = o("type"), N = {
1684
+ debugValue: "",
1685
+ description: "",
1686
+ uiid: a(),
1687
+ disabled: !1
1688
+ }, P = d.value ? {
1689
+ required: !!v.value,
1690
+ extendName: "",
1691
+ extendWidgetType: "",
1692
+ extendDisplay: !0,
1693
+ defaultValue: ""
1694
+ } : {};
1695
+ d.value && f.value && (P.deep = u);
1696
+ const C = (m) => {
1697
+ switch (m) {
1698
+ case "arrayString":
1699
+ return "string";
1700
+ case "arrayInteger":
1701
+ return "integer";
1702
+ case "arrayNumber":
1703
+ return "number";
1704
+ case "arrayBoolean":
1705
+ return "boolean";
1706
+ case "arrayImage":
1707
+ return "image";
1708
+ case "arrayFile":
1709
+ return "file";
1710
+ case "arrayObject":
1711
+ return "object";
1712
+ default:
1713
+ return e.justString, "string";
1714
+ }
1715
+ };
1716
+ if (_ === "object")
1717
+ return {
1718
+ ...N,
1719
+ ...P,
1720
+ [n]: "",
1721
+ [s]: (R.value, "string")
1722
+ };
1723
+ if (_ === "arrayObject")
1724
+ return f.value ? {
1725
+ ...N,
1726
+ ...P,
1727
+ [n]: "",
1728
+ [s]: "string",
1729
+ hasChildren: !1
1730
+ } : {
1731
+ ...N,
1732
+ ...P,
1733
+ [n]: "[Array Item]",
1734
+ [s]: "object",
1735
+ hasChildren: !1
1736
+ // 新创建时没有 children,后续会根据实际情况更新
1737
+ };
1738
+ {
1739
+ const m = C(_);
1740
+ return {
1741
+ ...N,
1742
+ ...P,
1743
+ [n]: "[Array Item]",
1744
+ [s]: m,
1745
+ hasChildren: !1
1746
+ // 非 object 类型的数组子项,不显示展开收起符号
1747
+ };
1748
+ }
1749
+ }, M = (_) => {
1750
+ const u = o("name"), n = o("type"), s = o("value");
1751
+ return ce(_, {
1752
+ nameField: u,
1753
+ typeField: n,
1754
+ valueField: s
1755
+ });
1756
+ }, O = (_) => {
1757
+ const u = o("type"), n = o("value");
1758
+ _.forEach((s) => {
1759
+ if (s.children && s.children.length > 0) {
1760
+ O(s.children);
1761
+ const N = s[u];
1762
+ if (se(N) || N === "object") {
1763
+ const P = M(s);
1764
+ P !== void 0 && (s[n] = P);
1765
+ }
1766
+ }
1767
+ });
1768
+ };
1769
+ return {
1770
+ createEmptyInputParam: w,
1771
+ createArrayItem: I,
1772
+ convertChildrenToDebugValue: M,
1773
+ updateParentDebugValues: O,
1774
+ debuggerChangeValue: (_, u) => {
1775
+ O(_.value), u("debugger-data-change");
1776
+ },
1777
+ changeType: (_, u, n, s, N) => {
1778
+ const P = o("type"), C = o("value"), m = _[P];
1779
+ u(m, _.uiid, P), _.children && Array.isArray(_.children) && _.children.length > 0 && n(_.children);
1780
+ const r = _e.find((V) => V.value === m), y = r ? r.example : "";
1781
+ _[C] = y, _.children && delete _.children, s(), N();
1782
+ },
1783
+ isArrayType: se
1784
+ };
1785
+ }
1786
+ function Ht(i, o, a) {
1787
+ const { t: e } = re(), { getFieldName: D, tableData: A } = i, d = (M) => {
1788
+ M.required && (M.extendDisplay = !0), o(), a();
1789
+ }, f = (M, O) => {
1790
+ const b = D("type");
1791
+ O["extend-widget-item"] && delete O["extend-widget-item"], (M === "checkbox" || M === "radio-button") && (O[b] = "string", O.children && delete O.children), o(), a();
1792
+ }, R = (M, O, b, L) => {
1793
+ for (const _ of M) {
1794
+ if (_.uiid === O)
1795
+ return _[b] = L, !0;
1796
+ if (_.children && _.children.length > 0 && R(_.children, O, b, L))
1797
+ return !0;
1798
+ }
1799
+ return !1;
1800
+ };
1801
+ return {
1802
+ handleRequiredChange: d,
1803
+ handleFormatChange: f,
1804
+ handleOptionCreated: (M) => {
1805
+ R(
1806
+ A.value,
1807
+ M.uiid,
1808
+ "extend-widget-item",
1809
+ M.data
1810
+ ), o(), a();
1811
+ },
1812
+ parseWidgetItems: (M) => {
1813
+ if (!M) return [];
1814
+ if (Array.isArray(M)) return M;
1815
+ try {
1816
+ return typeof M == "string" ? JSON.parse(M) : [];
1817
+ } catch {
1818
+ return [];
1819
+ }
1820
+ },
1821
+ clearFiles: (M) => {
1822
+ const O = D("value");
1823
+ M[O] = "", o();
1824
+ },
1825
+ uploadSuccess: (M, O, b) => {
1826
+ nt.success(e("COMMON_PARAMETERTABLE.LABEL_UPLOAD_SUCCESS")), O[b] = M, o();
1827
+ }
1828
+ };
1829
+ }
1830
+ const jt = {
1831
+ key: 0,
1832
+ style: { color: "red", "margin-right": "2px" }
1833
+ }, qt = {
1834
+ key: 0,
1835
+ style: { color: "red", "margin-right": "2px" }
1836
+ }, Wt = {
1837
+ key: 0,
1838
+ style: { color: "red", "margin-right": "2px" }
1839
+ }, $t = { class: "table-header" }, Gt = { class: "header-text" }, Yt = { class: "tool-tip-column" }, Jt = { class: "table-header" }, Xt = { class: "header-text" }, zt = { class: "tool-tip-column" }, Qt = { class: "table-header" }, Kt = { class: "header-text" }, Zt = { class: "tool-tip-column" }, el = { class: "action-header" }, tl = {
1840
+ key: 0,
1841
+ class: "error-message"
1842
+ }, ll = { class: "table-form__isshow" }, al = { class: "table-form__isshow" }, nl = {
1843
+ __name: "ParameterTable",
1844
+ props: /* @__PURE__ */ ie({
1845
+ justString: {
1846
+ type: Boolean,
1847
+ default: !1
1848
+ },
1849
+ loadingTable: {
1850
+ type: Boolean,
1851
+ default: !1
1852
+ },
1853
+ maxHeight: {
1854
+ type: Number,
1855
+ default: 300
1856
+ },
1857
+ location: {
1858
+ type: String,
1859
+ default: "params"
1860
+ },
1861
+ setType: {
1862
+ type: Array,
1863
+ default: () => []
1864
+ },
1865
+ // 区分是设置数据类型还是具体值
1866
+ isDataType: {
1867
+ type: Boolean,
1868
+ default: !1
1869
+ },
1870
+ inputItemNamesArr: {
1871
+ type: Array,
1872
+ default: () => []
1873
+ },
1874
+ // 外部控制是否可编辑
1875
+ disabled: {
1876
+ type: Boolean,
1877
+ default: !1
1878
+ },
1879
+ // 插件模式标识
1880
+ isPluginMode: {
1881
+ type: Boolean,
1882
+ default: !1
1883
+ },
1884
+ // 是否显示更多列(插件模式专用)
1885
+ showMoreColumns: {
1886
+ type: Boolean,
1887
+ default: !1
1888
+ },
1889
+ // 强制必填(默认为true且不可修改)
1890
+ forceRequired: {
1891
+ type: Boolean,
1892
+ default: !1
1893
+ },
1894
+ // 禁用字段控制,格式:['字段名', 'add', 'delete']
1895
+ // 例如:['name', 'type', 'add', 'delete'] 表示 name 和 type 字段不可编辑,且不能新增和删除
1896
+ disabledFields: {
1897
+ type: Array,
1898
+ default: () => []
1899
+ },
1900
+ customFieldName: {
1901
+ type: Object,
1902
+ default: null
1903
+ },
1904
+ getSnowFlakeId: {
1905
+ type: Function,
1906
+ default: () => () => Date.now()
1907
+ }
1908
+ }, {
1909
+ tableData: {
1910
+ default: () => []
1911
+ },
1912
+ tableDataModifiers: {}
1913
+ }),
1914
+ emits: /* @__PURE__ */ ie([
1915
+ "debugger-data-change",
1916
+ "show-option",
1917
+ "scroll-to-bottom",
1918
+ "data-name-validate",
1919
+ "name-or-type-change-value"
1920
+ ], ["update:tableData"]),
1921
+ setup(i, { expose: o, emit: a }) {
1922
+ const e = i, D = me(i, "tableData"), A = a, { t: d } = re(), f = h(() => e.setType && e.setType.length ? _e.filter((B) => e.setType.includes(B.value)) : _e), R = h(() => e.setType && e.setType.length === 1), v = ae(null), c = ae({}), w = ae({}), I = dt({
1923
+ props: e,
1924
+ tableData: D,
1925
+ emit: A,
1926
+ getSnowFlakeId: e.getSnowFlakeId,
1927
+ typeList: f,
1928
+ isSingleType: R,
1929
+ validationErrors: c,
1930
+ focusFields: w,
1931
+ tableRef: v
1932
+ }), { canAddRow: M, canDeleteRow: O, isFieldDisabled: b, getFieldName: L } = I, { columns: _ } = Bt(e), { createEmptyInputParam: u, createArrayItem: n, isArrayType: s } = kt(I), {
1933
+ validateDataName: N,
1934
+ validateDataType: P,
1935
+ validateDescription: C,
1936
+ validateAllDataTypes: m,
1937
+ validateAllRows: r,
1938
+ handleFocus: y,
1939
+ findParentNode: V
1940
+ } = Ft(I, _), U = () => {
1941
+ A("name-or-type-change-value");
1942
+ }, {
1943
+ total: k,
1944
+ addNewRow: X,
1945
+ deleteLists: F,
1946
+ addLists: Z,
1947
+ moveArrayItem: ee,
1948
+ canMoveUp: de,
1949
+ canMoveDown: Fe,
1950
+ showDeleteButton: xe,
1951
+ triggerTableUpdate: we
1952
+ } = xt(
1953
+ I,
1954
+ u,
1955
+ n,
1956
+ V,
1957
+ N,
1958
+ U
1959
+ ), {
1960
+ handleRequiredChange: ke,
1961
+ handleFormatChange: He,
1962
+ handleOptionCreated: je
1963
+ // parseWidgetItems, clearFiles, uploadSuccess 已移至 ValueCell 组件
1964
+ } = Ht(I, we, U), Ee = h(() => M() || O() ? _.value : _.value.filter((S) => S.slot !== "action")), qe = (B) => B.uiid, We = (B) => {
1965
+ const S = V(D.value, B.uiid);
1966
+ return S && S.children ? S.children.findIndex((z) => z.uiid === B.uiid) + 1 : 1;
1967
+ }, ye = (B) => Ee.value && Ee.value.find((J) => J.slot === B)?.required || !1, $e = (B, S) => {
1968
+ const J = B.uiid;
1969
+ w.value[J] && (w.value[J][S] = !1);
1970
+ const z = B[S];
1971
+ N(z, J, S), A("data-name-validate"), U();
1972
+ }, Ge = (B) => {
1973
+ const S = L("type"), J = L("value"), z = B[S];
1974
+ P(z, B.uiid, S), B.children && Array.isArray(B.children) && B.children.length > 0 && m(B.children);
1975
+ const Q = _e.find((te) => te.value === z), ne = Q ? Q.example : "";
1976
+ B[J] = ne, B.children && delete B.children, B.hasChildren = !1, we(), U();
1977
+ }, ve = (B) => {
1978
+ Array.isArray(B) && B.forEach((S) => {
1979
+ const J = L("name"), z = L("type"), Q = S[z], ne = S[J], te = S.children && S.children.length > 0;
1980
+ ne === "[Array Item]" ? (Q === "object" || Q === "arrayObject") && te ? (S.hasChildren = !0, ve(S.children)) : S.hasChildren = !1 : (s(Q) || Q === "object") && te ? (S.hasChildren = !0, ve(S.children)) : S.hasChildren = !1;
1981
+ });
1982
+ };
1983
+ return pe(
1984
+ () => D.value,
1985
+ (B) => {
1986
+ k.value = B.length, m(B), ve(B);
1987
+ },
1988
+ { immediate: !0, deep: !0 }
1989
+ ), pe(
1990
+ () => e.justString,
1991
+ (B) => {
1992
+ if (B) {
1993
+ const S = L("type"), J = (z) => {
1994
+ z.forEach((Q) => {
1995
+ Q[S] = "string", Q.children && J(Q.children);
1996
+ });
1997
+ };
1998
+ J(D.value);
1999
+ }
2000
+ },
2001
+ { immediate: !0 }
2002
+ ), pe(
2003
+ () => e.setType,
2004
+ (B) => {
2005
+ if (B && B.length === 1) {
2006
+ const S = f.value[0];
2007
+ if (S) {
2008
+ const J = L("name"), z = L("type"), Q = (ne) => {
2009
+ ne.forEach((te) => {
2010
+ te[J] !== "[Array Item]" && (te[z] = S.value), te.children && Q(te.children);
2011
+ });
2012
+ };
2013
+ Q(D.value);
2014
+ }
2015
+ }
2016
+ },
2017
+ { immediate: !0 }
2018
+ ), pe(
2019
+ () => e.inputItemNamesArr,
2020
+ () => {
2021
+ Object.keys(c.value).length > 0 && fe(() => {
2022
+ r();
2023
+ });
2024
+ },
2025
+ { deep: !0 }
2026
+ ), o({
2027
+ validationErrors: c,
2028
+ validateAllRows: r
2029
+ }), (B, S) => {
2030
+ const J = j("el-icon"), z = j("el-tooltip"), Q = j("el-button"), ne = j("el-input"), te = j("el-checkbox");
2031
+ return g(), H(l(Se), {
2032
+ ref_key: "tableRef",
2033
+ ref: v,
2034
+ columns: Ee.value,
2035
+ data: D.value,
2036
+ onRowKey: qe,
2037
+ hasPage: !1,
2038
+ total: l(k),
2039
+ "on-row-key": (T) => T.uiid,
2040
+ pages: {
2041
+ page: 1,
2042
+ size: 999
2043
+ },
2044
+ isLoading: i.loadingTable,
2045
+ "max-height": i.maxHeight,
2046
+ isSecondaryHeader: ""
2047
+ }, Qe({
2048
+ keyHeader: p(() => [
2049
+ ye("name") ? (g(), G("span", jt, "*")) : Y("", !0),
2050
+ $(x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_NAME")), 1)
2051
+ ]),
2052
+ typeHeader: p(() => [
2053
+ ye("type") ? (g(), G("span", qt, "*")) : Y("", !0),
2054
+ $(x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_TYPE")), 1)
2055
+ ]),
2056
+ descHeader: p(() => [
2057
+ ye("description") ? (g(), G("span", Wt, "*")) : Y("", !0),
2058
+ $(x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_DESC")), 1)
2059
+ ]),
2060
+ showNameHeader: p(() => [
2061
+ W("div", $t, [
2062
+ W("div", Gt, x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_SHOW_NAME")), 1),
2063
+ E(z, { placement: "top" }, {
2064
+ content: p(() => [
2065
+ $(x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_SHOW_NAME_TIP")), 1)
2066
+ ]),
2067
+ default: p(() => [
2068
+ W("span", Yt, [
2069
+ E(J, {
2070
+ class: "tool-tip-column__icon",
2071
+ size: "14px",
2072
+ color: "#999"
2073
+ }, {
2074
+ default: p(() => [
2075
+ E(l(he))
2076
+ ]),
2077
+ _: 1
2078
+ })
2079
+ ])
2080
+ ]),
2081
+ _: 1
2082
+ })
2083
+ ])
2084
+ ]),
2085
+ formatHeader: p(() => [
2086
+ W("div", Jt, [
2087
+ W("div", Xt, x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_FORMAT")), 1),
2088
+ E(z, { placement: "top" }, {
2089
+ content: p(() => [
2090
+ $(x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_FORMAT_TIP")), 1)
2091
+ ]),
2092
+ default: p(() => [
2093
+ W("div", zt, [
2094
+ E(J, {
2095
+ class: "tool-tip-column__icon",
2096
+ size: "14px",
2097
+ color: "#999"
2098
+ }, {
2099
+ default: p(() => [
2100
+ E(l(he))
2101
+ ]),
2102
+ _: 1
2103
+ })
2104
+ ])
2105
+ ]),
2106
+ _: 1
2107
+ })
2108
+ ])
2109
+ ]),
2110
+ isShowHeader: p(() => [
2111
+ W("div", Qt, [
2112
+ W("div", Kt, x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_VISIBLE")), 1),
2113
+ E(z, {
2114
+ placement: "top",
2115
+ "popper-style": { width: "350px" }
2116
+ }, {
2117
+ content: p(() => [
2118
+ $(x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_VISIBLE_TIP")), 1),
2119
+ S[2] || (S[2] = W("br", null, null, -1)),
2120
+ $("- " + x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_VISIBLE_INVISIBLE")), 1),
2121
+ S[3] || (S[3] = W("br", null, null, -1)),
2122
+ $("- " + x(l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_VISIBLE_INVISIBLE_DEFAULT")), 1)
2123
+ ]),
2124
+ default: p(() => [
2125
+ W("div", Zt, [
2126
+ E(J, {
2127
+ class: "tool-tip-column__icon",
2128
+ size: "14px",
2129
+ color: "#999"
2130
+ }, {
2131
+ default: p(() => [
2132
+ E(l(he))
2133
+ ]),
2134
+ _: 1
2135
+ })
2136
+ ])
2137
+ ]),
2138
+ _: 1
2139
+ })
2140
+ ])
2141
+ ]),
2142
+ actionHeader: p(() => [
2143
+ W("div", el, [
2144
+ W("span", null, x(l(d)("COMMON_BUTTON.OPERATION_TEXT")), 1),
2145
+ l(M)() ? (g(), H(Q, {
2146
+ key: 0,
2147
+ type: "primary",
2148
+ size: "small",
2149
+ onClick: l(X),
2150
+ icon: l(tt)
2151
+ }, {
2152
+ default: p(() => [
2153
+ $(x(l(d)("COMMON_BUTTON.ADD_NEW_TEXT")), 1)
2154
+ ]),
2155
+ _: 1
2156
+ }, 8, ["onClick", "icon"])) : Y("", !0)
2157
+ ])
2158
+ ]),
2159
+ name: p((T) => [
2160
+ E(Lt, {
2161
+ name: T.row[l(L)("name")],
2162
+ "onUpdate:name": (q) => T.row[l(L)("name")] = q,
2163
+ row: T.row,
2164
+ "array-item-index": We(T.row),
2165
+ onFocus: l(y),
2166
+ onBlur: $e
2167
+ }, null, 8, ["name", "onUpdate:name", "row", "array-item-index", "onFocus"])
2168
+ ]),
2169
+ type: p((T) => [
2170
+ E(wt, {
2171
+ type: T.row[l(L)("type")],
2172
+ "onUpdate:type": (q) => T.row[l(L)("type")] = q,
2173
+ row: T.row,
2174
+ onChange: Ge
2175
+ }, null, 8, ["type", "onUpdate:type", "row"])
2176
+ ]),
2177
+ description: p((T) => [
2178
+ E(ne, {
2179
+ modelValue: T.row.description,
2180
+ "onUpdate:modelValue": (q) => T.row.description = q,
2181
+ disabled: e.disabled || T.row.disabled || l(b)("description"),
2182
+ style: { width: "100%" },
2183
+ placeholder: l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_DESC_PLACEHOLDER"),
2184
+ class: le({
2185
+ "error-input": c.value[T.row.uiid]?.description
2186
+ }),
2187
+ onChange: (q) => l(C)(T.row, ye("description"))
2188
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder", "class", "onChange"]),
2189
+ c.value[T.row.uiid]?.description ? (g(), G("div", tl, x(c.value[T.row.uiid]?.description), 1)) : Y("", !0)
2190
+ ]),
2191
+ test: p((T) => [
2192
+ E(Mt, {
2193
+ value: T.row[l(L)("value")],
2194
+ "onUpdate:value": (q) => T.row[l(L)("value")] = q,
2195
+ type: T.row[l(L)("type")],
2196
+ "onUpdate:type": (q) => T.row[l(L)("type")] = q,
2197
+ row: T.row
2198
+ }, null, 8, ["value", "onUpdate:value", "type", "onUpdate:type", "row"])
2199
+ ]),
2200
+ action: p((T) => [
2201
+ E(Vt, {
2202
+ row: T.row,
2203
+ scope: {
2204
+ ...T,
2205
+ _canMoveUp: l(de)(T.row),
2206
+ _canMoveDown: l(Fe)(T.row),
2207
+ _showDelete: l(xe)(T.row)
2208
+ },
2209
+ onAddChild: l(Z),
2210
+ onMoveUp: S[0] || (S[0] = (q, Oe) => l(ee)(q, Oe)),
2211
+ onMoveDown: S[1] || (S[1] = (q, Oe) => l(ee)(q, Oe)),
2212
+ onDelete: l(F)
2213
+ }, null, 8, ["row", "scope", "onAddChild", "onDelete"])
2214
+ ]),
2215
+ _: 2
2216
+ }, [
2217
+ e.isPluginMode ? {
2218
+ name: "required",
2219
+ fn: p((T) => [
2220
+ W("div", ll, [
2221
+ E(te, {
2222
+ modelValue: T.row.required,
2223
+ "onUpdate:modelValue": (q) => T.row.required = q,
2224
+ disabled: e.disabled || T.row.disabled || e.forceRequired || l(b)("required"),
2225
+ label: "",
2226
+ size: "large",
2227
+ onChange: (q) => l(ke)(T.row)
2228
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "onChange"])
2229
+ ])
2230
+ ]),
2231
+ key: "0"
2232
+ } : void 0,
2233
+ e.isPluginMode ? {
2234
+ name: "showName",
2235
+ fn: p((T) => [
2236
+ E(ne, {
2237
+ modelValue: T.row.extendName,
2238
+ "onUpdate:modelValue": (q) => T.row.extendName = q,
2239
+ disabled: e.disabled || T.row.disabled || l(b)("extendName"),
2240
+ style: { width: "100%" },
2241
+ placeholder: l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_SHOW_NAME_PLACEHOLDER")
2242
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])
2243
+ ]),
2244
+ key: "1"
2245
+ } : void 0,
2246
+ e.isPluginMode ? {
2247
+ name: "format",
2248
+ fn: p((T) => [
2249
+ E(_t, {
2250
+ modelValue: T.row.extendWidgetType,
2251
+ "onUpdate:modelValue": (q) => T.row.extendWidgetType = q,
2252
+ disabled: e.disabled || T.row.disabled || l(b)("extendWidgetType"),
2253
+ "row-data": T.row,
2254
+ onChange: l(He),
2255
+ onOptionCreated: l(je)
2256
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "row-data", "onChange", "onOptionCreated"])
2257
+ ]),
2258
+ key: "2"
2259
+ } : void 0,
2260
+ e.isPluginMode ? {
2261
+ name: "default",
2262
+ fn: p((T) => [
2263
+ E(ne, {
2264
+ modelValue: T.row.defaultValue,
2265
+ "onUpdate:modelValue": (q) => T.row.defaultValue = q,
2266
+ disabled: e.disabled || T.row.disabled || l(b)("defaultValue"),
2267
+ style: { width: "100%" },
2268
+ placeholder: l(d)("COMMON_PLUGIN_TOOL.LABEL_PARAM_DEFAULT_VALUE_PLACEHOLDER")
2269
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])
2270
+ ]),
2271
+ key: "3"
2272
+ } : void 0,
2273
+ e.isPluginMode ? {
2274
+ name: "isShow",
2275
+ fn: p((T) => [
2276
+ W("div", al, [
2277
+ E(te, {
2278
+ modelValue: T.row.extendDisplay,
2279
+ "onUpdate:modelValue": (q) => T.row.extendDisplay = q,
2280
+ disabled: e.disabled || T.row.disabled || T.row.required || l(b)("extendDisplay"),
2281
+ checked: T.row.required,
2282
+ label: "",
2283
+ size: "large"
2284
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled", "checked"])
2285
+ ])
2286
+ ]),
2287
+ key: "4"
2288
+ } : void 0
2289
+ ]), 1032, ["columns", "data", "total", "on-row-key", "isLoading", "max-height"]);
2290
+ };
2291
+ }
2292
+ }, ol = /* @__PURE__ */ ue(nl, [["__scopeId", "data-v-3e7d27c2"]]), El = Ye(ol);
2293
+ export {
2294
+ mt as ARRAYTYPES,
2295
+ fl as METHODSOPTIONS,
2296
+ yl as NOBODYMETHOD,
2297
+ El as ParameterTable,
2298
+ Re as TYPESMAP,
2299
+ _e as TYPESOPTIONS,
2300
+ ce as convertChildrenToDebugValue,
2301
+ El as default,
2302
+ se as isArrayType
2303
+ };