act-plus 1.1.23 → 1.1.25

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 (106) hide show
  1. package/act-plus.js +6 -5
  2. package/act-plus.umd.cjs +87 -1733
  3. package/lib/configBtns-63d416ef.js +152 -0
  4. package/lib/{configFileds-4633be91.js → configFileds-105ca288.js} +13 -11
  5. package/lib/{configTable-160a99e8.js → configTable-5bf09aac.js} +33 -31
  6. package/lib/{dialogAddField-a8db1c57.js → dialogAddField-bb493c88.js} +6 -4
  7. package/lib/{dialogConfigBtn-e5c41ad9.js → dialogConfigBtn-1fcd1496.js} +57 -55
  8. package/lib/{dialogSiteComponentsParams-05a400cc.js → dialogSiteComponentsParams-708737d2.js} +1 -1
  9. package/lib/{index-28cfa770.js → index-6b7ddc83.js} +74 -65
  10. package/lib/{index-44e2732a.js → index-740fe217.js} +10 -8
  11. package/lib/{index-7a1700c3.js → index-9071c381.js} +12 -10
  12. package/lib/{index-421ea84f.js → index-9bd009b2.js} +32 -30
  13. package/lib/index-ba8fa827.js +61597 -0
  14. package/lib/{index-cceb15dd.js → index-f8e81c41.js} +126 -148
  15. package/package.json +2 -6
  16. package/style.css +1 -1
  17. package/assets/css.worker-1af1972f.js +0 -84
  18. package/assets/editor.worker-df55e1ff.js +0 -8
  19. package/assets/html.worker-38c267f1.js +0 -456
  20. package/assets/json.worker-bf861c27.js +0 -39
  21. package/assets/ts.worker-e151483b.js +0 -33972
  22. package/lib/abap-1354785f.js +0 -1314
  23. package/lib/apex-279d4f27.js +0 -315
  24. package/lib/azcli-ba812c55.js +0 -74
  25. package/lib/bat-4d77495d.js +0 -95
  26. package/lib/bicep-7b240724.js +0 -108
  27. package/lib/cameligo-5d2daeb8.js +0 -168
  28. package/lib/clojure-b7ea12a3.js +0 -754
  29. package/lib/coffee-1a8cfbf4.js +0 -228
  30. package/lib/configBtns-c51c642b.js +0 -150
  31. package/lib/cpp-642b10c4.js +0 -387
  32. package/lib/csharp-d987ddad.js +0 -320
  33. package/lib/csp-96407af0.js +0 -57
  34. package/lib/css-5dd354ac.js +0 -186
  35. package/lib/cssMode-55e3e2b9.js +0 -1448
  36. package/lib/cypher-11e5a4b6.js +0 -262
  37. package/lib/dart-5d209f63.js +0 -270
  38. package/lib/dockerfile-8739cff7.js +0 -132
  39. package/lib/ecl-a20c5155.js +0 -454
  40. package/lib/elixir-8b028584.js +0 -467
  41. package/lib/flow9-0dea2e73.js +0 -141
  42. package/lib/freemarker2-86429a9d.js +0 -646
  43. package/lib/fsharp-49a70fad.js +0 -210
  44. package/lib/go-46e3b371.js +0 -208
  45. package/lib/graphql-51a577e5.js +0 -141
  46. package/lib/handlebars-dcad112f.js +0 -394
  47. package/lib/hcl-56b85754.js +0 -177
  48. package/lib/html-95cf87e3.js +0 -284
  49. package/lib/htmlMode-93d4ea14.js +0 -1458
  50. package/lib/index-22ab90dc.js +0 -162522
  51. package/lib/index-e2f2023d.js +0 -35
  52. package/lib/ini-1d58d82f.js +0 -68
  53. package/lib/java-cd017f60.js +0 -221
  54. package/lib/javascript-55252557.js +0 -78
  55. package/lib/jsonMode-b73c28d1.js +0 -1869
  56. package/lib/julia-a0caf483.js +0 -496
  57. package/lib/kotlin-c6e52a56.js +0 -245
  58. package/lib/less-718543b4.js +0 -168
  59. package/lib/lexon-5e6e7a44.js +0 -151
  60. package/lib/liquid-c923578c.js +0 -241
  61. package/lib/lua-f159160b.js +0 -157
  62. package/lib/m3-aadaf771.js +0 -210
  63. package/lib/markdown-9b448c46.js +0 -202
  64. package/lib/mips-161e49ce.js +0 -194
  65. package/lib/msdax-f65cb1e6.js +0 -377
  66. package/lib/mysql-24549dd1.js +0 -875
  67. package/lib/objective-c-e129a5ca.js +0 -188
  68. package/lib/pascal-4ccdf5ce.js +0 -245
  69. package/lib/pascaligo-a9603dcd.js +0 -158
  70. package/lib/perl-ba1fb97a.js +0 -599
  71. package/lib/pgsql-89978310.js +0 -843
  72. package/lib/php-987b9d87.js +0 -471
  73. package/lib/pla-96c2695d.js +0 -131
  74. package/lib/postiats-7b52ebac.js +0 -544
  75. package/lib/powerquery-8954ec26.js +0 -890
  76. package/lib/powershell-f00d0274.js +0 -233
  77. package/lib/protobuf-3eb85f80.js +0 -422
  78. package/lib/pug-6fab415a.js +0 -393
  79. package/lib/python-319c4cbb.js +0 -262
  80. package/lib/qsharp-4792f872.js +0 -282
  81. package/lib/r-630f5d6b.js +0 -245
  82. package/lib/razor-9a8bae51.js +0 -515
  83. package/lib/redis-276b8288.js +0 -298
  84. package/lib/redshift-520a7359.js +0 -806
  85. package/lib/restructuredtext-4676a3fc.js +0 -162
  86. package/lib/ruby-764137cd.js +0 -444
  87. package/lib/rust-97f8f6e1.js +0 -337
  88. package/lib/sb-8c22f14c.js +0 -110
  89. package/lib/scala-c68c650c.js +0 -353
  90. package/lib/scheme-e6a52cb0.js +0 -114
  91. package/lib/scss-45104c77.js +0 -244
  92. package/lib/shell-09452d42.js +0 -224
  93. package/lib/solidity-d4979008.js +0 -1351
  94. package/lib/sophia-21995caf.js +0 -190
  95. package/lib/sparql-5088743c.js +0 -193
  96. package/lib/sql-63ec8e76.js +0 -818
  97. package/lib/st-fa9ab362.js +0 -414
  98. package/lib/swift-abdf1835.js +0 -315
  99. package/lib/systemverilog-a4f858ed.js +0 -556
  100. package/lib/tcl-8adf937f.js +0 -232
  101. package/lib/tsMode-7111578e.js +0 -792
  102. package/lib/twig-404eb73e.js +0 -323
  103. package/lib/typescript-0c5e909b.js +0 -330
  104. package/lib/vb-e21e8153.js +0 -364
  105. package/lib/xml-acd745c7.js +0 -98
  106. package/lib/yaml-c114fa81.js +0 -187
@@ -1,9 +1,11 @@
1
- import { defineAsyncComponent as O, computed as ae, reactive as te, inject as q, ref as N, watch as oe, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as ue, createVNode as e, unref as o, createTextVNode as U, toDisplayString as x, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
- import { B as ne, b as de, c as re, d as se, e as ie, f as me, g as pe, h as ce, i as be } from "./enum-ab7125f9.js";
3
- import { _ as fe, f as _e } from "./index-22ab90dc.js";
1
+ import { defineAsyncComponent as O, inject as N, computed as oe, reactive as ue, ref as B, watch as ne, resolveComponent as y, openBlock as d, createBlock as m, withCtx as l, createElementVNode as de, createVNode as e, unref as o, createTextVNode as U, toDisplayString as A, createCommentVNode as C, createElementBlock as b, Fragment as f, renderList as _ } from "vue";
2
+ import { B as re, b as se, c as ie, d as me, e as pe, f as ce, g as be, h as fe, i as _e } from "./enum-ab7125f9.js";
4
3
  import { useRoute as ge } from "vue-router";
4
+ import { _ as Ve } from "./index-ba8fa827.js";
5
+ import "js-base64";
5
6
  import "element-plus";
6
- const Ve = { class: "dialog-footer" }, ye = {
7
+ import "monaco-editor";
8
+ const ye = { class: "dialog-footer" }, he = {
7
9
  __name: "dialogConfigBtn",
8
10
  props: {
9
11
  visible: { type: Boolean, default: !1 },
@@ -11,28 +13,28 @@ const Ve = { class: "dialog-footer" }, ye = {
11
13
  data: { type: Object, default: () => ({}) }
12
14
  },
13
15
  emits: ["update:visible", "refresh"],
14
- setup(A, { emit: P }) {
15
- const E = O(() => import("./index-7a1700c3.js")), D = O(() => import("./index-22ab90dc.js").then((p) => p.k)), W = ge(), I = P, T = A, R = ae(() => W.params.key);
16
- let k = te((() => ({
16
+ setup(x, { emit: P }) {
17
+ const E = O(() => import("./index-9071c381.js")), D = O(() => import("./index-ba8fa827.js").then((p) => p.i)), W = ge(), R = N("request"), I = P, T = x, Y = oe(() => W.params.key);
18
+ let k = ue((() => ({
17
19
  btnLoading: !1
18
20
  }))());
19
- const M = q("createDefaultButtonItem"), Y = q("associationMenuList"), $ = q("conditionList")();
20
- let w = N([]);
21
- N([]);
22
- let B = N(null), t = N(M());
23
- const j = async () => {
21
+ const M = N("createDefaultButtonItem"), $ = N("associationMenuList"), j = N("conditionList")();
22
+ let w = B([]);
23
+ B([]);
24
+ let S = B(null), t = B(M());
25
+ const z = (p) => R({ url: "/api/v1/icons/getAllList", method: "post", data: p }), H = async () => {
24
26
  try {
25
- const { data: p } = await _e({ dynamicFilters: [{ field: "type", operate: "Equal", value: "2" }] });
27
+ const { data: p } = await z({ dynamicFilters: [{ field: "type", operate: "Equal", value: "2" }] });
26
28
  w.value = (p || []).map((n) => `btn-${n.name}`);
27
29
  } catch (p) {
28
30
  console.error(p);
29
31
  }
30
32
  };
31
- oe(
33
+ ne(
32
34
  () => T.visible,
33
35
  async (p, n) => {
34
36
  if (p) {
35
- await j();
37
+ await H();
36
38
  const c = { ...T.data };
37
39
  Object.keys(t.value).forEach((r) => {
38
40
  r == "submitFields" || r == "matchFields" ? t.value[r] = [...c[r] || []] : t.value[r] = c[r];
@@ -40,26 +42,26 @@ const Ve = { class: "dialog-footer" }, ye = {
40
42
  }
41
43
  }
42
44
  );
43
- const z = () => {
45
+ const K = () => {
44
46
  t.value.submitWay = [], t.value.requestUrl = void 0, t.value.submitWay = void 0, t.value.customType = void 0, t.value.codeStr = void 0, t.value.customComponentName = void 0, t.value.customComponentUrl = void 0;
45
- }, H = () => {
47
+ }, G = () => {
46
48
  t.value.submitFields.push({ matchType: "match", submitFieldMatchOrigin: "rowData", submitFieldName: "", matchFieldName: "", submitFieldType: "" });
47
- }, K = (p) => {
49
+ }, J = (p) => {
48
50
  t.value.submitFields.splice(p, 1);
49
- }, G = () => {
51
+ }, Q = () => {
50
52
  t.value.matchFields.push({ matchType: "default", matchFieldName: "", matchCondition: "", fieldValue: "", spliceCondition: "" });
51
- }, J = (p) => {
52
- t.value.matchFields.splice(p, 1), t.value.matchFields.length === 1 && (t.value.matchFields[0].spliceCondition = "");
53
- }, Q = (p) => {
54
- S(), p();
55
- }, S = () => {
56
- t.value = Object.assign(t.value, M()), B.value.resetFields(), I("update:visible", !1);
57
53
  }, X = (p) => {
54
+ t.value.matchFields.splice(p, 1), t.value.matchFields.length === 1 && (t.value.matchFields[0].spliceCondition = "");
55
+ }, Z = (p) => {
56
+ q(), p();
57
+ }, q = () => {
58
+ t.value = Object.assign(t.value, M()), S.value.resetFields(), I("update:visible", !1);
59
+ }, ee = (p) => {
58
60
  p && p.validate((n) => {
59
61
  if (n)
60
62
  try {
61
63
  k.btnLoading = !0, I("refresh", { ...t.value, submitFields: [...t.value.submitFields], matchFields: [...t.value.matchFields] }, () => {
62
- S();
64
+ q();
63
65
  }), k.btnLoading = !1;
64
66
  } catch (c) {
65
67
  console.error(c), k.btnLoading = !1;
@@ -67,8 +69,8 @@ const Ve = { class: "dialog-footer" }, ye = {
67
69
  });
68
70
  };
69
71
  return (p, n) => {
70
- const c = y("el-input"), r = y("el-form-item"), i = y("el-col"), g = y("el-option"), V = y("el-select"), F = y("el-row"), v = y("el-button"), L = y("el-divider"), Z = y("el-switch"), ee = y("el-form"), le = y("el-dialog");
71
- return d(), m(le, {
72
+ const c = y("el-input"), r = y("el-form-item"), i = y("el-col"), g = y("el-option"), V = y("el-select"), F = y("el-row"), v = y("el-button"), L = y("el-divider"), le = y("el-switch"), ae = y("el-form"), te = y("el-dialog");
73
+ return d(), m(te, {
72
74
  "model-value": T.visible,
73
75
  title: T.title,
74
76
  top: "5vh",
@@ -76,13 +78,13 @@ const Ve = { class: "dialog-footer" }, ye = {
76
78
  draggable: "",
77
79
  overflow: "",
78
80
  "close-on-click-modal": !1,
79
- "before-close": Q
81
+ "before-close": Z
80
82
  }, {
81
83
  footer: l(() => [
82
- ue("span", Ve, [
84
+ de("span", ye, [
83
85
  e(v, {
84
86
  loading: o(k).btnLoading,
85
- onClick: S
87
+ onClick: q
86
88
  }, {
87
89
  default: l(() => [
88
90
  U("取消")
@@ -92,7 +94,7 @@ const Ve = { class: "dialog-footer" }, ye = {
92
94
  e(v, {
93
95
  type: "primary",
94
96
  loading: o(k).btnLoading,
95
- onClick: n[14] || (n[14] = (a) => X(o(B)))
97
+ onClick: n[14] || (n[14] = (a) => ee(o(S)))
96
98
  }, {
97
99
  default: l(() => [
98
100
  U("保存")
@@ -102,9 +104,9 @@ const Ve = { class: "dialog-footer" }, ye = {
102
104
  ])
103
105
  ]),
104
106
  default: l(() => [
105
- e(ee, {
107
+ e(ae, {
106
108
  ref_key: "formRef",
107
- ref: B,
109
+ ref: S,
108
110
  model: o(t),
109
111
  "label-suffix": ":",
110
112
  "label-position": "top"
@@ -126,7 +128,7 @@ const Ve = { class: "dialog-footer" }, ye = {
126
128
  placeholder: "请输入按钮名称"
127
129
  }, {
128
130
  prepend: l(() => [
129
- U(x(o(t).permissionCode), 1)
131
+ U(A(o(t).permissionCode), 1)
130
132
  ]),
131
133
  _: 1
132
134
  }, 8, ["modelValue"])
@@ -193,7 +195,7 @@ const Ve = { class: "dialog-footer" }, ye = {
193
195
  clearable: ""
194
196
  }, {
195
197
  default: l(() => [
196
- (d(!0), b(f, null, _(o(ne), (a, s) => (d(), m(g, {
198
+ (d(!0), b(f, null, _(o(re), (a, s) => (d(), m(g, {
197
199
  key: s,
198
200
  label: a.key,
199
201
  value: a.value
@@ -223,7 +225,7 @@ const Ve = { class: "dialog-footer" }, ye = {
223
225
  clearable: ""
224
226
  }, {
225
227
  default: l(() => [
226
- (d(!0), b(f, null, _(o(de), (a, s) => (d(), m(g, {
228
+ (d(!0), b(f, null, _(o(se), (a, s) => (d(), m(g, {
227
229
  key: s,
228
230
  label: a.key,
229
231
  value: a.value
@@ -272,7 +274,7 @@ const Ve = { class: "dialog-footer" }, ye = {
272
274
  clearable: ""
273
275
  }, {
274
276
  default: l(() => [
275
- (d(!0), b(f, null, _(o(re), (a, s) => (d(), m(g, {
277
+ (d(!0), b(f, null, _(o(ie), (a, s) => (d(), m(g, {
276
278
  key: s,
277
279
  label: a.key,
278
280
  value: a.value
@@ -306,7 +308,7 @@ const Ve = { class: "dialog-footer" }, ye = {
306
308
  clearable: ""
307
309
  }, {
308
310
  default: l(() => [
309
- (d(!0), b(f, null, _(o(se), (a, s) => (d(), m(g, {
311
+ (d(!0), b(f, null, _(o(me), (a, s) => (d(), m(g, {
310
312
  key: s,
311
313
  label: a.key,
312
314
  value: a.value
@@ -331,7 +333,7 @@ const Ve = { class: "dialog-footer" }, ye = {
331
333
  type: "primary",
332
334
  icon: "Plus",
333
335
  circle: "",
334
- onClick: H
336
+ onClick: G
335
337
  })
336
338
  ]),
337
339
  _: 1
@@ -385,7 +387,7 @@ const Ve = { class: "dialog-footer" }, ye = {
385
387
  onChange: (u) => a.submitFieldMatchOrigin = "rowData"
386
388
  }, {
387
389
  default: l(() => [
388
- (d(!0), b(f, null, _(o(ie), (u, h) => (d(), m(g, {
390
+ (d(!0), b(f, null, _(o(pe), (u, h) => (d(), m(g, {
389
391
  key: h,
390
392
  label: u.key,
391
393
  value: u.value
@@ -441,7 +443,7 @@ const Ve = { class: "dialog-footer" }, ye = {
441
443
  clearable: ""
442
444
  }, {
443
445
  default: l(() => [
444
- (d(!0), b(f, null, _(o(me), (u, h) => (d(), m(g, {
446
+ (d(!0), b(f, null, _(o(ce), (u, h) => (d(), m(g, {
445
447
  key: h,
446
448
  label: u.key,
447
449
  value: u.value
@@ -465,7 +467,7 @@ const Ve = { class: "dialog-footer" }, ye = {
465
467
  type: "danger",
466
468
  icon: "Minus",
467
469
  circle: "",
468
- onClick: (u) => K(s)
470
+ onClick: (u) => J(s)
469
471
  }, null, 8, ["onClick"])
470
472
  ]),
471
473
  _: 2
@@ -481,7 +483,7 @@ const Ve = { class: "dialog-footer" }, ye = {
481
483
  type: "primary",
482
484
  icon: "Plus",
483
485
  circle: "",
484
- onClick: G
486
+ onClick: Q
485
487
  })
486
488
  ]),
487
489
  _: 1
@@ -513,7 +515,7 @@ const Ve = { class: "dialog-footer" }, ye = {
513
515
  style: { width: "180px" }
514
516
  }, {
515
517
  default: l(() => [
516
- (d(!0), b(f, null, _(o(pe), (u, h) => (d(), m(g, {
518
+ (d(!0), b(f, null, _(o(be), (u, h) => (d(), m(g, {
517
519
  key: h,
518
520
  label: u.key,
519
521
  value: u.value
@@ -546,7 +548,7 @@ const Ve = { class: "dialog-footer" }, ye = {
546
548
  filterable: ""
547
549
  }, {
548
550
  default: l(() => [
549
- (d(!0), b(f, null, _(o($), (u, h) => (d(), m(g, {
551
+ (d(!0), b(f, null, _(o(j), (u, h) => (d(), m(g, {
550
552
  key: h,
551
553
  label: u.key,
552
554
  value: u.value
@@ -589,7 +591,7 @@ const Ve = { class: "dialog-footer" }, ye = {
589
591
  type: "danger",
590
592
  icon: "Minus",
591
593
  circle: "",
592
- onClick: (u) => J(s)
594
+ onClick: (u) => X(s)
593
595
  }, null, 8, ["onClick"])
594
596
  ]),
595
597
  _: 2
@@ -614,7 +616,7 @@ const Ve = { class: "dialog-footer" }, ye = {
614
616
  filterable: ""
615
617
  }, {
616
618
  default: l(() => [
617
- (d(!0), b(f, null, _(o(ce), (u, h) => (d(), m(g, {
619
+ (d(!0), b(f, null, _(o(fe), (u, h) => (d(), m(g, {
618
620
  key: h,
619
621
  label: u.key,
620
622
  value: u.value
@@ -640,10 +642,10 @@ const Ve = { class: "dialog-footer" }, ye = {
640
642
  prop: "isCustomBtn"
641
643
  }, {
642
644
  default: l(() => [
643
- e(Z, {
645
+ e(le, {
644
646
  modelValue: o(t).isCustomBtn,
645
647
  "onUpdate:modelValue": n[8] || (n[8] = (a) => o(t).isCustomBtn = a),
646
- onChange: z
648
+ onChange: K
647
649
  }, null, 8, ["modelValue"])
648
650
  ]),
649
651
  _: 1
@@ -670,7 +672,7 @@ const Ve = { class: "dialog-footer" }, ye = {
670
672
  clearable: ""
671
673
  }, {
672
674
  default: l(() => [
673
- (d(!0), b(f, null, _(o(be), (a, s) => (d(), m(g, {
675
+ (d(!0), b(f, null, _(o(_e), (a, s) => (d(), m(g, {
674
676
  key: s,
675
677
  label: a.key,
676
678
  value: a.value
@@ -733,7 +735,7 @@ const Ve = { class: "dialog-footer" }, ye = {
733
735
  clearable: ""
734
736
  }, {
735
737
  prepend: l(() => [
736
- U(x(R.value), 1)
738
+ U(A(Y.value), 1)
737
739
  ]),
738
740
  _: 1
739
741
  }, 8, ["modelValue"])
@@ -775,7 +777,7 @@ const Ve = { class: "dialog-footer" }, ye = {
775
777
  clearable: ""
776
778
  }, {
777
779
  default: l(() => [
778
- (d(!0), b(f, null, _(o(Y), (a, s) => (d(), m(g, {
780
+ (d(!0), b(f, null, _(o($), (a, s) => (d(), m(g, {
779
781
  key: s,
780
782
  label: a.name,
781
783
  value: a.id
@@ -800,7 +802,7 @@ const Ve = { class: "dialog-footer" }, ye = {
800
802
  }, 8, ["model-value", "title"]);
801
803
  };
802
804
  }
803
- }, Te = /* @__PURE__ */ fe(ye, [["__scopeId", "data-v-26dcca01"]]);
805
+ }, Se = /* @__PURE__ */ Ve(he, [["__scopeId", "data-v-4b2dee6d"]]);
804
806
  export {
805
- Te as default
807
+ Se as default
806
808
  };
@@ -8,7 +8,7 @@ const S = { class: "dialog-footer" }, N = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(m, { emit: f }) {
11
- const v = g(() => import("./index-22ab90dc.js").then((t) => t.k)), n = f, o = m;
11
+ const v = g(() => import("./index-ba8fa827.js").then((t) => t.i)), n = f, o = m;
12
12
  let e = y();
13
13
  C(
14
14
  () => o.visible,
@@ -1,89 +1,95 @@
1
- import { defineAsyncComponent as W, ref as v, watch as K, resolveComponent as d, unref as o, openBlock as a, createElementBlock as h, createVNode as j, normalizeStyle as G, withCtx as m, Fragment as C, renderList as g, withDirectives as J, createBlock as n, mergeProps as y, withKeys as U, withModifiers as x, createCommentVNode as _, vShow as X, createTextVNode as N, toDisplayString as P } from "vue";
2
- import { _ as Z, u as ee, P as le, a as te } from "./index-22ab90dc.js";
1
+ import { defineAsyncComponent as j, ref as g, watch as G, resolveComponent as s, resolveDirective as J, unref as o, openBlock as r, createElementBlock as h, createVNode as X, normalizeStyle as Z, withCtx as m, Fragment as v, renderList as C, withDirectives as U, createBlock as u, mergeProps as y, withKeys as x, withModifiers as N, createCommentVNode as _, vShow as ee, createTextVNode as P, toDisplayString as E } from "vue";
2
+ import { _ as le, u as te, P as oe, a as ae } from "./index-ba8fa827.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
- const oe = {
6
+ import "monaco-editor";
7
+ const re = {
6
8
  key: 0,
7
9
  class: "search-module-container"
8
- }, ae = {
10
+ }, ne = {
9
11
  __name: "index",
10
12
  props: {
11
13
  data: { type: Object, default: () => ({}) }
12
14
  },
13
15
  emits: ["reset", "search"],
14
- setup(E, { emit: I }) {
15
- const M = W(() => import("./index-e2f2023d.js")), { t: u } = ee(), k = I, c = E;
16
- let p = v([]), q = v([]), V = v(!0);
17
- const Q = (r) => c.data.tableConfig.isExpandQuery && V.value ? c.data.tableConfig.tableQueryRowWidth > r + 1 : !0, i = (r) => new Function("", r.fieldUiProps)() || {}, D = (r) => {
18
- p.value = (r || []).filter((t) => t.useScenes.includes("tableSearch"));
19
- }, R = (r) => {
20
- const t = (r || []).filter((s) => s.permissionCode === 1001);
21
- q.value = [...t, { btnName: u("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset" }];
16
+ setup(D, { emit: M }) {
17
+ const Q = j(() => import("./index-ba8fa827.js").then((a) => a.f)), { t: d } = te(), k = M, c = D;
18
+ let p = g([]), q = g([]), b = g(!0);
19
+ const A = (a) => c.data.tableConfig.isExpandQuery && b.value ? c.data.tableConfig.tableQueryRowWidth > a + 1 : !0, i = (a) => new Function("", a.fieldUiProps)() || {}, R = (a) => {
20
+ p.value = (a || []).filter((t) => t.useScenes.includes("tableSearch"));
21
+ }, Y = (a) => {
22
+ const t = (a || []).filter((n) => n.permissionCode === 1001).map((n) => ({ ...n, loading: !1 }));
23
+ q.value = [...t, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
22
24
  };
23
- K(
25
+ G(
24
26
  () => c.data,
25
- (r, t) => {
26
- D(r.fields), R(r.buttons);
27
+ (a, t) => {
28
+ R(a.fields), Y(a.buttons);
27
29
  },
28
30
  { immediate: !0 }
29
31
  );
30
- const f = (r) => {
31
- switch (r.permissionCode) {
32
+ const f = (a) => {
33
+ switch (a.loading = !0, a.permissionCode) {
32
34
  case "9999":
33
- p.value.forEach((s) => {
34
- s.fieldType.includes("&") ? s.queryValue = [] : s.queryValue = void 0;
35
- }), k("reset", []);
35
+ p.value.forEach((n) => {
36
+ n.fieldType.includes("&") ? n.queryValue = [] : n.queryValue = void 0;
37
+ }), k("reset", [], () => {
38
+ a.loading = !1;
39
+ });
36
40
  break;
37
41
  default:
38
- const t = p.value.filter((s) => !!s.queryValue);
39
- k("search", t);
42
+ const t = p.value.filter((n) => Array.isArray(n.queryValue) ? n.queryValue.length : !!n.queryValue);
43
+ k("search", t, () => {
44
+ a.loading = !1;
45
+ });
40
46
  break;
41
47
  }
42
- }, Y = () => {
43
- V.value = !V.value;
48
+ }, z = () => {
49
+ b.value = !b.value;
44
50
  };
45
- return (r, t) => {
51
+ return (a, t) => {
46
52
  var S;
47
- const s = d("el-input"), z = d("el-option"), A = d("el-select"), F = d("el-select-v2"), L = d("el-cascader"), w = d("el-date-picker"), T = d("el-form-item"), O = d("a-svg-icon"), $ = d("el-button"), B = d("el-form");
48
- return o(p) && o(p).length ? (a(), h("div", oe, [
49
- j(B, {
50
- style: G({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
53
+ const n = s("el-input"), F = s("el-option"), I = s("el-select"), L = s("el-select-v2"), O = s("el-cascader"), w = s("el-date-picker"), T = s("el-form-item"), B = s("a-svg-icon"), $ = s("el-button"), H = s("el-form"), W = J("debounce");
54
+ return o(p) && o(p).length ? (r(), h("div", re, [
55
+ X(H, {
56
+ style: Z({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
51
57
  class: "form-content",
52
58
  ref: "elForm",
53
59
  "label-suffix": ":",
54
60
  "label-position": "right"
55
61
  }, {
56
62
  default: m(() => [
57
- (a(!0), h(C, null, g(o(p), (e, b) => J((a(), n(T, {
58
- key: b,
63
+ (r(!0), h(v, null, C(o(p), (e, V) => U((r(), u(T, {
64
+ key: V,
59
65
  class: "search-form-item",
60
66
  "label-width": c.data.tableConfig.tableQueryLabelWidth,
61
67
  label: e.fieldName
62
68
  }, {
63
69
  default: m(() => [
64
- e.fieldType === "input" || e.fieldType === "editor" ? (a(), n(s, y({
70
+ e.fieldType === "input" || e.fieldType === "editor" ? (r(), u(n, y({
65
71
  key: 0,
66
72
  modelValue: e.queryValue,
67
73
  "onUpdate:modelValue": (l) => e.queryValue = l,
68
- placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
74
+ placeholder: `${o(d)("act.inputPlaceholder")}${e.fieldName}`,
69
75
  clearable: "",
70
76
  ref_for: !0
71
77
  }, i(e), {
72
- onKeyup: t[0] || (t[0] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
78
+ onKeyup: t[0] || (t[0] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
73
79
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
74
- e.fieldType === "inputNumber" ? (a(), n(o(M), y({
80
+ e.fieldType === "inputNumber" ? (r(), u(o(Q), y({
75
81
  key: 1,
76
82
  modelValue: e.queryValue,
77
83
  "onUpdate:modelValue": (l) => e.queryValue = l,
78
- placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
84
+ placeholder: `${o(d)("act.inputPlaceholder")}${e.fieldName}`,
79
85
  clearable: "",
80
- onKeyup: t[1] || (t[1] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
86
+ onKeyup: t[1] || (t[1] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
81
87
  ref_for: !0
82
- }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), n(A, y({
88
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), u(I, y({
83
89
  key: 2,
84
90
  modelValue: e.queryValue,
85
91
  "onUpdate:modelValue": (l) => e.queryValue = l,
86
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
92
+ placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
87
93
  clearable: "",
88
94
  filterable: "",
89
95
  ref_for: !0
@@ -94,20 +100,20 @@ const oe = {
94
100
  onChange: t[2] || (t[2] = (l) => f({ permissionCode: 1001 }))
95
101
  }), {
96
102
  default: m(() => [
97
- (a(!0), h(C, null, g(e.dataList, (l, H) => (a(), n(z, {
98
- key: H,
103
+ (r(!0), h(v, null, C(e.dataList, (l, K) => (r(), u(F, {
104
+ key: K,
99
105
  label: l.key,
100
106
  value: l.value
101
107
  }, null, 8, ["label", "value"]))), 128))
102
108
  ]),
103
109
  _: 2
104
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), n(F, y({
110
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), u(L, y({
105
111
  key: 3,
106
112
  modelValue: e.queryValue,
107
113
  "onUpdate:modelValue": (l) => e.queryValue = l,
108
114
  options: e.dataList,
109
- props: { ...o(le) },
110
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
115
+ props: { ...o(oe) },
116
+ placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
111
117
  clearable: "",
112
118
  filterable: "",
113
119
  ref_for: !0
@@ -116,33 +122,33 @@ const oe = {
116
122
  "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
117
123
  multiple: e.fieldType === "virtualizedMultipleSelect",
118
124
  onChange: t[3] || (t[3] = (l) => f({ permissionCode: 1001 }))
119
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), n(L, y({
125
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (r(), u(O, y({
120
126
  key: 4,
121
127
  modelValue: e.queryValue,
122
128
  "onUpdate:modelValue": (l) => e.queryValue = l,
123
129
  options: e.dataList,
124
- props: { ...o(te), [e.fieldUiType]: !0 },
130
+ props: { ...o(ae), [e.fieldUiType]: !0 },
125
131
  clearable: "",
126
132
  filterable: "",
127
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
133
+ placeholder: `${o(d)("act.selectPlaceholder")}${e.fieldName}`,
128
134
  ref_for: !0
129
- }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), n(w, y({
135
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (r(), u(w, y({
130
136
  key: 5,
131
137
  modelValue: e.queryValue,
132
138
  "onUpdate:modelValue": (l) => e.queryValue = l,
133
139
  type: "date",
134
- placeholder: `${o(u)("act.selectPlaceholder")}${o(u)("act.time")}`,
140
+ placeholder: `${o(d)("act.selectPlaceholder")}${o(d)("act.time")}`,
135
141
  "value-format": "YYYY-MM-DD HH:mm:ss",
136
142
  ref_for: !0
137
143
  }, i(e), {
138
144
  onChange: t[4] || (t[4] = (l) => f({ permissionCode: 1001 }))
139
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), n(w, y({
145
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), u(w, y({
140
146
  key: 6,
141
147
  modelValue: e.queryValue,
142
148
  "onUpdate:modelValue": (l) => e.queryValue = l,
143
149
  type: "daterange",
144
- "start-placeholder": o(u)("act.startTime"),
145
- "end-placeholder": o(u)("act.endTime"),
150
+ "start-placeholder": o(d)("act.startTime"),
151
+ "end-placeholder": o(d)("act.endTime"),
146
152
  "value-format": "YYYY-MM-DD HH:mm:ss",
147
153
  ref_for: !0
148
154
  }, i(e), {
@@ -151,21 +157,22 @@ const oe = {
151
157
  ]),
152
158
  _: 2
153
159
  }, 1032, ["label-width", "label"])), [
154
- [X, Q(b)]
160
+ [ee, A(V)]
155
161
  ])), 128)),
156
- o(p).length ? (a(), n(T, {
162
+ o(p).length ? (r(), u(T, {
157
163
  key: 0,
158
164
  class: "search-form-btn",
159
165
  "label-width": "0"
160
166
  }, {
161
167
  default: m(() => [
162
- (a(!0), h(C, null, g(o(q), (e, b) => (a(), n($, {
163
- key: b,
168
+ (r(!0), h(v, null, C(o(q), (e, V) => U((r(), u($, {
169
+ key: V,
164
170
  type: e.btnColor,
171
+ loading: e.loading,
165
172
  onClick: (l) => f(e)
166
173
  }, {
167
174
  default: m(() => [
168
- e.btnIcon ? (a(), n(O, {
175
+ e.btnIcon ? (r(), u(B, {
169
176
  key: 0,
170
177
  class: "mr6",
171
178
  name: e.btnIcon,
@@ -173,33 +180,35 @@ const oe = {
173
180
  height: "12",
174
181
  color: "#fff"
175
182
  }, null, 8, ["name"])) : _("", !0),
176
- N(" " + P(e.btnName), 1)
183
+ P(" " + E(e.btnName), 1)
177
184
  ]),
178
185
  _: 2
179
- }, 1032, ["type", "onClick"]))), 128))
186
+ }, 1032, ["type", "loading", "onClick"])), [
187
+ [W]
188
+ ])), 128))
180
189
  ]),
181
190
  _: 1
182
191
  })) : _("", !0)
183
192
  ]),
184
193
  _: 1
185
194
  }, 8, ["style"]),
186
- c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (a(), n($, {
195
+ c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (r(), u($, {
187
196
  key: 0,
188
197
  class: "expand",
189
198
  text: "",
190
199
  size: "small",
191
- icon: o(V) ? "ArrowDown" : "ArrowUp",
192
- onClick: Y
200
+ icon: o(b) ? "ArrowDown" : "ArrowUp",
201
+ onClick: z
193
202
  }, {
194
203
  default: m(() => [
195
- N(P(o(V) ? "展开" : "收起"), 1)
204
+ P(E(o(b) ? "展开" : "收起"), 1)
196
205
  ]),
197
206
  _: 1
198
207
  }, 8, ["icon"])) : _("", !0)
199
208
  ])) : _("", !0);
200
209
  };
201
210
  }
202
- }, se = /* @__PURE__ */ Z(ae, [["__scopeId", "data-v-851e4602"]]);
211
+ }, fe = /* @__PURE__ */ le(ne, [["__scopeId", "data-v-cb281b8b"]]);
203
212
  export {
204
- se as default
213
+ fe as default
205
214
  };
@@ -1,7 +1,9 @@
1
1
  import { reactive as m, watch as v, resolveComponent as s, openBlock as b, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
2
- import { _ as k, u as V } from "./index-22ab90dc.js";
2
+ import { _ as k, u as V } from "./index-ba8fa827.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
6
+ import "monaco-editor";
5
7
  const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
6
8
  __name: "index",
7
9
  props: {
@@ -10,15 +12,15 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
10
12
  data: { type: Object, default: () => ({}) }
11
13
  },
12
14
  emits: ["update:visible", "refresh"],
13
- setup(a, { emit: c }) {
14
- const { t: d } = V(), r = c, t = a;
15
- let l = m((() => ({
15
+ setup(l, { emit: c }) {
16
+ const { t: d } = V(), r = c, t = l;
17
+ let a = m((() => ({
16
18
  loading: !1
17
19
  }))());
18
20
  v(
19
21
  () => t.visible,
20
22
  async (e, p) => {
21
- e && (l.loading = !0, l.loading = !1);
23
+ e && (a.loading = !0, a.loading = !1);
22
24
  }
23
25
  );
24
26
  const _ = (e) => {
@@ -50,14 +52,14 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
50
52
  ]),
51
53
  default: o(() => [
52
54
  i("div", {
53
- innerHTML: a.data.editorContent
55
+ innerHTML: l.data.editorContent
54
56
  }, null, 8, w)
55
57
  ]),
56
58
  _: 1
57
59
  }, 8, ["model-value", "title"]);
58
60
  };
59
61
  }
60
- }, M = /* @__PURE__ */ k(D, [["__scopeId", "data-v-a8dbe98a"]]);
62
+ }, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-3484c709"]]);
61
63
  export {
62
- M as default
64
+ j as default
63
65
  };