hldesigner 0.0.206 → 0.0.208

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 (30) hide show
  1. package/{common-editor-657c3090.js → common-editor-a3950be5.js} +2 -2
  2. package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-c8c38249.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-d97c08f0.js} +1 -1
  3. package/{configItem-a0d95ca0.js → configItem-400fef83.js} +3 -3
  4. package/{css-editor-139388bc.js → css-editor-66483b35.js} +1 -1
  5. package/{customClass-editor-642e4e79.js → customClass-editor-5d9f1494.js} +2 -2
  6. package/designer.es.js +2 -2
  7. package/designer.style.css +1 -1
  8. package/designer.umd.js +195 -195
  9. package/{editor-wrapper-03d1eff4.js → editor-wrapper-e2b24d40.js} +122 -122
  10. package/{field-editor-83446442.js → field-editor-74415afc.js} +1 -1
  11. package/{image-editor-b33c5e79.js → image-editor-53a8c882.js} +1 -1
  12. package/{index-232158fd.js → index-1ffa82ff.js} +6 -6
  13. package/{index-c1e53ff5.js → index-27244ef5.js} +4 -4
  14. package/{index-4b8af239.js → index-49de859b.js} +3 -3
  15. package/{index-0655cde2.js → index-4ba6e438.js} +2 -2
  16. package/{index-59773fdf.js → index-7f9bb2a3.js} +4 -4
  17. package/{index-18f808c6.js → index-90687fe1.js} +134 -135
  18. package/index-b4a81ba1.js +203 -0
  19. package/{index-a4be29e2.js → index-b95767a3.js} +4 -4
  20. package/{install-designer-62adb68a.js → install-designer-55005e62.js} +2 -2
  21. package/{name-editor-1bb1abac.js → name-editor-0d8ef60d.js} +1 -1
  22. package/package.json +1 -1
  23. package/{reg-editor.vue_vue_type_script_setup_true_lang-0de7bfe8.js → reg-editor.vue_vue_type_script_setup_true_lang-07239b68.js} +1 -1
  24. package/{size-editor-93449666.js → size-editor-8533d6a8.js} +1 -1
  25. package/{target-code-925c97f0.js → target-code-61f53913.js} +1 -1
  26. package/{target-datasource-627acfb7.js → target-datasource-ce6d0770.js} +4 -4
  27. package/{target-link-d8f2687d.js → target-link-87148a2c.js} +4 -4
  28. package/{target-saveForm-f22397de.js → target-saveForm-ecdcc6d1.js} +4 -4
  29. package/{value-editor-c9ddc9d7.js → value-editor-279bfd92.js} +1 -1
  30. package/index-62d5fc3f.js +0 -200
@@ -2,7 +2,7 @@ import { defineComponent as a, openBlock as f, createBlock as u, normalizeProps
2
2
  import { I as E } from "./property-base-8500525a.js";
3
3
  import { w as V } from "./expression-c46c99ff.js";
4
4
  import { u as C } from "./share-editor-2bf96a2e.js";
5
- import { E as w, O as y } from "./editor-wrapper-03d1eff4.js";
5
+ import { E as w, O as y } from "./editor-wrapper-e2b24d40.js";
6
6
  import { d as B, e as I } from "./obj-469b8636.js";
7
7
  import { aj as h } from "./enum-type-16a903a9.js";
8
8
  import { h as k } from "./_share_image-6a1e63ba.js";
@@ -16,10 +16,10 @@ import { A as u, p as Vt, P as ae, B as ri, e as pi, h as di } from "./baseImp-8
16
16
  import { g as mi } from "./icon-6342f929.js";
17
17
  import { u as ci } from "./slot-b7415d6b.js";
18
18
  import { e as ui } from "./index-9bf39185.js";
19
- import { u as wi } from "./install-designer-62adb68a.js";
19
+ import { u as wi } from "./install-designer-55005e62.js";
20
20
  function vi() {
21
21
  let v = /* @__PURE__ */ new Map();
22
- const m = (y) => J(() => Qa(/* @__PURE__ */ Object.assign({ "../common-editor.vue": () => import("./common-editor-657c3090.js"), "../css-editor.vue": () => import("./css-editor-139388bc.js"), "../customClass-editor.vue": () => import("./customClass-editor-642e4e79.js"), "../field-editor.vue": () => import("./field-editor-83446442.js"), "../image-editor.vue": () => import("./image-editor-b33c5e79.js"), "../name-editor.vue": () => import("./name-editor-1bb1abac.js"), "../size-editor.vue": () => import("./size-editor-93449666.js"), "../value-editor.vue": () => import("./value-editor-c9ddc9d7.js") }), `../${y}.vue`));
22
+ const m = (y) => J(() => Qa(/* @__PURE__ */ Object.assign({ "../common-editor.vue": () => import("./common-editor-a3950be5.js"), "../css-editor.vue": () => import("./css-editor-66483b35.js"), "../customClass-editor.vue": () => import("./customClass-editor-5d9f1494.js"), "../field-editor.vue": () => import("./field-editor-74415afc.js"), "../image-editor.vue": () => import("./image-editor-53a8c882.js"), "../name-editor.vue": () => import("./name-editor-0d8ef60d.js"), "../size-editor.vue": () => import("./size-editor-8533d6a8.js"), "../value-editor.vue": () => import("./value-editor-279bfd92.js") }), `../${y}.vue`));
23
23
  return { components: (y) => {
24
24
  if (!v.has(y)) {
25
25
  var L = m(y);
@@ -3379,7 +3379,7 @@ const fi = { key: 0 }, hi = Ht({ componentName: oi.SettingPanel }), gi = /* @__P
3379
3379
  const p = new c();
3380
3380
  return p.optionModel = B.value, p.pageConfig = E.value, p.selectedWidget = w.value, x(M.value, B.value, E.value, p);
3381
3381
  }), D = ye(), H = () => {
3382
- D.value || (D.value = J(() => import("./configItem-a0d95ca0.js")));
3382
+ D.value || (D.value = J(() => import("./configItem-400fef83.js")));
3383
3383
  }, G = $(_e.formSetting), X = (p) => {
3384
3384
  var I;
3385
3385
  let P = !1;
@@ -3407,7 +3407,7 @@ const fi = { key: 0 }, hi = Ht({ componentName: oi.SettingPanel }), gi = /* @__P
3407
3407
  y(We.popOverHandler, (p) => {
3408
3408
  var _;
3409
3409
  var P = (_ = p == null ? void 0 : p.attrs) == null ? void 0 : _.visible;
3410
- !ie.value && P ? ie.value = J(() => import("./index-c1e53ff5.js")) : ie.value = null;
3410
+ !ie.value && P ? ie.value = J(() => import("./index-27244ef5.js")) : ie.value = null;
3411
3411
  var I = { ...p == null ? void 0 : p.attrs };
3412
3412
  I = fe(I), P && (A = "popOver", j = {
3413
3413
  attrs: I,
@@ -3420,7 +3420,7 @@ const fi = { key: 0 }, hi = Ht({ componentName: oi.SettingPanel }), gi = /* @__P
3420
3420
  y(We.drawerHandler, (p) => {
3421
3421
  var z;
3422
3422
  var P = (z = p == null ? void 0 : p.attrs) == null ? void 0 : z.visible;
3423
- if (!le.value && P ? le.value = J(() => import("./index-59773fdf.js")) : le.value = null, P) {
3423
+ if (!le.value && P ? le.value = J(() => import("./index-7f9bb2a3.js")) : le.value = null, P) {
3424
3424
  var I = document.querySelector(".right-panel"), _ = At(I) ? "" : getComputedStyle(I).width, k = { ...p == null ? void 0 : p.attrs, position: { right: _ } };
3425
3425
  k = fe(k), A = "drawer", j = {
3426
3426
  attrs: k,
@@ -3434,7 +3434,7 @@ const fi = { key: 0 }, hi = Ht({ componentName: oi.SettingPanel }), gi = /* @__P
3434
3434
  y(We.editHandler, (p) => {
3435
3435
  var k;
3436
3436
  var P = (k = p == null ? void 0 : p.attrs) == null ? void 0 : k.visible;
3437
- if (!oe.value && P ? oe.value = J(() => import("./index-0655cde2.js")) : oe.value = null, P) {
3437
+ if (!oe.value && P ? oe.value = J(() => import("./index-4ba6e438.js")) : oe.value = null, P) {
3438
3438
  var I = { ...p.attrs, width: "80%" };
3439
3439
  I = fe(I);
3440
3440
  var _ = Oe(p.events);
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as T, computed as r, ref as f, resolveComponent as g, openBlock as p, createElementBlock as u, createVNode as n, withCtx as m, withDirectives as j, createElementVNode as y, createBlock as B, unref as o, createCommentVNode as E, createTextVNode as v, toDisplayString as _ } from "vue";
2
2
  import { a as k } from "./enum-type-1cc19db1.js";
3
- import { _ as N } from "./reg-editor.vue_vue_type_script_setup_true_lang-0de7bfe8.js";
3
+ import { _ as N } from "./reg-editor.vue_vue_type_script_setup_true_lang-07239b68.js";
4
4
  import { ClickOutside as S } from "element-plus";
5
5
  import "./obj-469b8636.js";
6
6
  import "./enum-type-16a903a9.js";
7
- import "./index-232158fd.js";
7
+ import "./index-1ffa82ff.js";
8
8
  import "./emitter-22bcad26.js";
9
9
  import "./index-32dd4589.js";
10
10
  import "./uuid-d9f857bf.js";
@@ -23,7 +23,7 @@ import "./slot-b7415d6b.js";
23
23
  import "./index-9bf39185.js";
24
24
  import "./_plugin-vue_export-helper-dad06003.js";
25
25
  import "./property-base-8500525a.js";
26
- import "./install-designer-62adb68a.js";
26
+ import "./install-designer-55005e62.js";
27
27
  import "./cont-cell-widget-9111bee6.js";
28
28
  import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d4c8e753.js";
29
29
  import "./share-field-83ac1b16.js";
@@ -44,7 +44,7 @@ import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_la
44
44
  import "./tabs-widget-6c2bfc93.js";
45
45
  import "./wrapper-widget-55f62fac.js";
46
46
  import "./index-4e2d4cf8.js";
47
- import "./index-62d5fc3f.js";
47
+ import "./index-b4a81ba1.js";
48
48
  import "./setView-de8aaf40.js";
49
49
  const V = { class: "popover-body" }, W = { class: "popover-footer" }, Be = /* @__PURE__ */ T({
50
50
  __name: "index",
@@ -2,7 +2,7 @@ import { defineComponent as ut, computed as Q, ref as u, shallowRef as de, resol
2
2
  import { a as t, f as yt, j as pe, d as me } from "./enum-type-1cc19db1.js";
3
3
  import { P as Ct, f as oe, C as Vt, z as _t } from "./baseImp-8af53e7f.js";
4
4
  import { u as bt } from "./index-32dd4589.js";
5
- import { F as ht } from "./install-designer-62adb68a.js";
5
+ import { F as ht } from "./install-designer-55005e62.js";
6
6
  import { S as P } from "./index-6d72c605.js";
7
7
  import { e as ce } from "./obj-469b8636.js";
8
8
  import { g as I } from "./uuid-d9f857bf.js";
@@ -39,7 +39,7 @@ import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_la
39
39
  import "./tabs-widget-6c2bfc93.js";
40
40
  import "./wrapper-widget-55f62fac.js";
41
41
  import "./index-4e2d4cf8.js";
42
- import "./index-62d5fc3f.js";
42
+ import "./index-b4a81ba1.js";
43
43
  import "./esprima-e8d15055.js";
44
44
  import "./setView-de8aaf40.js";
45
45
  import "./source-map-b04aec4a.js";
@@ -68,7 +68,7 @@ const wt = ($) => (vt("data-v-305bf733"), $ = $(), ft(), $), Ft = { class: "full
68
68
  widgetList: ce(c.designer.widgetList),
69
69
  pageConfig: ce(c.designer.pageConfig)
70
70
  })), Je = c.renderConfig, f = de(), M = () => {
71
- f.value || (f.value = ue(() => import("./index-62d5fc3f.js").then((l) => l._)));
71
+ f.value || (f.value = ue(() => import("./index-b4a81ba1.js").then((l) => l._)));
72
72
  }, J = (l, e) => {
73
73
  Vt.do(t.i18nt("designer.hint.fileNameForSave"), t.i18nt("designer.hint.saveFileTitle"), {
74
74
  inputValue: e,
@@ -41,7 +41,7 @@ const G = { class: "flexJustify" }, le = /* @__PURE__ */ z({
41
41
  case r.formula:
42
42
  return n(() => import("./index-68625ee8.js"));
43
43
  case r.targetEvent:
44
- return n(() => import("./index-a4be29e2.js"));
44
+ return n(() => import("./index-b95767a3.js"));
45
45
  case r.schema:
46
46
  return n(() => import("./index-866641bf.js"));
47
47
  case r.relateWithWidget:
@@ -50,7 +50,7 @@ const G = { class: "flexJustify" }, le = /* @__PURE__ */ z({
50
50
  return n(() => import("./index-2c0bffe3.js"));
51
51
  case r.code:
52
52
  default:
53
- return n(() => import("./index-18f808c6.js"));
53
+ return n(() => import("./index-90687fe1.js"));
54
54
  }
55
55
  }, R = () => {
56
56
  m.value.clear(), V();
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as R, computed as m, ref as p, resolveComponent as u, openBlock as y, createElementBlock as S, createVNode as a, normalizeStyle as T, withCtx as n, createElementVNode as b, createTextVNode as k, toDisplayString as v, unref as o, createBlock as B, createCommentVNode as E } from "vue";
2
2
  import { a as w } from "./enum-type-1cc19db1.js";
3
- import { _ as N } from "./reg-editor.vue_vue_type_script_setup_true_lang-0de7bfe8.js";
3
+ import { _ as N } from "./reg-editor.vue_vue_type_script_setup_true_lang-07239b68.js";
4
4
  import "./obj-469b8636.js";
5
5
  import "./enum-type-16a903a9.js";
6
- import "./index-232158fd.js";
6
+ import "./index-1ffa82ff.js";
7
7
  import "./emitter-22bcad26.js";
8
8
  import "./index-32dd4589.js";
9
9
  import "./uuid-d9f857bf.js";
@@ -23,7 +23,7 @@ import "./slot-b7415d6b.js";
23
23
  import "./index-9bf39185.js";
24
24
  import "./_plugin-vue_export-helper-dad06003.js";
25
25
  import "./property-base-8500525a.js";
26
- import "./install-designer-62adb68a.js";
26
+ import "./install-designer-55005e62.js";
27
27
  import "./cont-cell-widget-9111bee6.js";
28
28
  import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d4c8e753.js";
29
29
  import "./share-field-83ac1b16.js";
@@ -44,7 +44,7 @@ import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_la
44
44
  import "./tabs-widget-6c2bfc93.js";
45
45
  import "./wrapper-widget-55f62fac.js";
46
46
  import "./index-4e2d4cf8.js";
47
- import "./index-62d5fc3f.js";
47
+ import "./index-b4a81ba1.js";
48
48
  import "./setView-de8aaf40.js";
49
49
  const Re = /* @__PURE__ */ R({
50
50
  __name: "index",
@@ -1,10 +1,10 @@
1
- import { defineComponent as K, shallowRef as A, ref as g, onMounted as q, resolveComponent as D, openBlock as w, createElementBlock as J, Fragment as j, createBlock as P, withCtx as v, createVNode as E, createTextVNode as _, toDisplayString as M, createElementVNode as H, unref as U, createCommentVNode as x, resolveDynamicComponent as G, inject as $, defineAsyncComponent as z } from "vue";
1
+ import { defineComponent as O, shallowRef as Q, ref as B, onMounted as K, resolveComponent as P, openBlock as S, createElementBlock as A, Fragment as q, createBlock as D, withCtx as b, createVNode as F, createTextVNode as E, toDisplayString as _, createElementVNode as j, unref as M, createCommentVNode as U, resolveDynamicComponent as J, inject as H, defineAsyncComponent as G } from "vue";
2
2
  import { a as e } from "./enum-type-1cc19db1.js";
3
- import { I as X } from "./property-base-8500525a.js";
4
- import { u as L } from "./share-editor-2bf96a2e.js";
5
- import { f as Y } from "./baseImp-8af53e7f.js";
6
- import { A as t } from "./index-62d5fc3f.js";
7
- import { H as Z, d as ee } from "./expression-c46c99ff.js";
3
+ import { I as $ } from "./property-base-8500525a.js";
4
+ import { u as W } from "./share-editor-2bf96a2e.js";
5
+ import { f as z } from "./baseImp-8af53e7f.js";
6
+ import { A as t } from "./index-b4a81ba1.js";
7
+ import { H as X, d as Y } from "./expression-c46c99ff.js";
8
8
  import "./obj-469b8636.js";
9
9
  import "./enum-type-16a903a9.js";
10
10
  import "./icon-6342f929.js";
@@ -15,23 +15,23 @@ import "element-plus";
15
15
  import "./_plugin-vue_export-helper-dad06003.js";
16
16
  import "./source-map-b04aec4a.js";
17
17
  import "./esprima-e8d15055.js";
18
- class W {
18
+ class R {
19
19
  static getDesignerBind() {
20
20
  return [];
21
21
  }
22
22
  /**
23
- * todo
23
+ * 构建系统自带提示
24
24
  * @returns
25
25
  */
26
- static getSystemAPI(f) {
27
- var C;
28
- const m = {};
29
- return (C = Z) == null || C.forEach((B) => {
30
- var S;
31
- (S = B.children) == null || S.forEach((p) => {
32
- var b, k;
33
- m[p.label] = new t("snippet", p.label, p.caller || "", `${p.comment}
34
- @returns ${(b = p == null ? void 0 : p.returnType) == null ? void 0 : b.dataType} ${(k = p == null ? void 0 : p.returnType) == null ? void 0 : k.comment}`);
26
+ static getSystemAPI(s) {
27
+ var r;
28
+ const i = {};
29
+ return (r = X) == null || r.forEach((c) => {
30
+ var o;
31
+ (o = c.children) == null || o.forEach((n) => {
32
+ var a, y;
33
+ i[n.label] = new t("snippet", n.label, n.caller || "", `${n.comment}
34
+ @returns ${(a = n == null ? void 0 : n.returnType) == null ? void 0 : a.dataType} ${(y = n == null ? void 0 : n.returnType) == null ? void 0 : y.comment}`);
35
35
  });
36
36
  }), {
37
37
  ctx: {
@@ -66,7 +66,7 @@ class W {
66
66
  setReadonly: new t("snippet", "setReadonly", "setReadonly(flag)", e.i18nt("ace.hint.setReadonly"))
67
67
  }
68
68
  },
69
- compParams: f == null ? void 0 : f.compParams,
69
+ compParams: s == null ? void 0 : s.compParams,
70
70
  util: {
71
71
  url: {
72
72
  buildUrl: new t("snippet", "buildUrl", "buildUrl(url,params,options)", e.i18nt("ace.hint.buildUrl")),
@@ -101,7 +101,7 @@ class W {
101
101
  exportExcel: new t("snippet", "exportExcel", "exportExcel", e.i18nt("ace.hint.exportExcel"))
102
102
  },
103
103
  sysFunc: {
104
- ...m,
104
+ ...i,
105
105
  idCardInfo: {
106
106
  isValid: new t("snippet", "isValid", "isValid(idcard)", e.i18nt("ace.hint.isIdcardValid")),
107
107
  convertTo18: new t("snippet", "convertTo18", "convertTo18(idcard)", e.i18nt("ace.hint.convertToIdcard18")),
@@ -179,140 +179,140 @@ class W {
179
179
  };
180
180
  }
181
181
  }
182
- const we = /* @__PURE__ */ K({
182
+ function Z(d) {
183
+ const s = {};
184
+ if (!d || d.length <= 0)
185
+ return s;
186
+ for (const i of d) {
187
+ const r = i.indexOf(":");
188
+ if (r === -1)
189
+ continue;
190
+ const c = i.substring(0, r).trim(), o = i.substring(r + 1).trim();
191
+ if (o.startsWith("{") && o.endsWith("}")) {
192
+ const n = o.slice(1, -1);
193
+ s[c] = T(n);
194
+ } else
195
+ s[c] = o;
196
+ }
197
+ return s;
198
+ }
199
+ function T(d) {
200
+ const s = {};
201
+ let i = "", r = "", c = 0, o = !0;
202
+ for (let n = 0; n < d.length; n++) {
203
+ const a = d[n];
204
+ if (a === "{")
205
+ c++, r += a;
206
+ else if (a === "}")
207
+ c--, r += a;
208
+ else if (a === ":" && c === 0) {
209
+ o = !1;
210
+ continue;
211
+ } else if (a === "," && c === 0) {
212
+ const y = i.trim(), w = r.trim();
213
+ w.startsWith("{") && w.endsWith("}") ? s[y] = T(w.slice(1, -1)) : s[y] = w, i = "", r = "", o = !0;
214
+ continue;
215
+ }
216
+ o ? i += a : r += a;
217
+ }
218
+ if (i.trim() || r.trim()) {
219
+ const n = i.trim(), a = r.trim();
220
+ a.startsWith("{") && a.endsWith("}") ? s[n] = T(a.slice(1, -1)) : s[n] = a;
221
+ }
222
+ return s;
223
+ }
224
+ const he = /* @__PURE__ */ O({
183
225
  __name: "index",
184
226
  props: {
185
- ...X,
227
+ ...$,
186
228
  getFunc: { type: Function, default: void 0 },
187
229
  setFunc: { type: Function, default: void 0 }
188
230
  },
189
- setup(T, { expose: f }) {
190
- const m = T, { saveCode: C } = L(m), B = A(), S = () => {
191
- B.value = z(() => import("./index-62d5fc3f.js").then((a) => a._));
231
+ setup(d, { expose: s }) {
232
+ const i = d, { saveCode: r } = W(i), c = Q(), o = () => {
233
+ c.value = G(() => import("./index-b4a81ba1.js").then((l) => l._));
192
234
  };
193
- g();
194
- const p = g(), b = () => {
195
- var n;
196
- const a = (n = p.value) == null ? void 0 : n.getEditorAnnotations();
197
- let i = !1;
198
- a && a.length > 0 && (a.forEach((c) => {
199
- c.type === "error" && (i = !0);
200
- }), i && Y.error(e.i18nt("designer.setting.syntaxCheckWarning")));
201
- const r = C(I.value);
202
- return m.setFunc ? m.setFunc(r) : r;
203
- }, k = () => {
204
- var a;
205
- p.value.setValue((a = d == null ? void 0 : d.value) == null ? void 0 : a.exampleCode);
206
- }, R = () => {
207
- p.value.formatCode();
208
- }, d = g({}), V = g({}), N = g({}), I = g(), O = () => {
209
- var n, c, l;
210
- const { initCode: a } = L(m);
211
- d.value = a(m == null ? void 0 : m.getFunc);
212
- var i = {};
213
- (n = W.getDesignerBind()) == null || n.forEach((o) => {
214
- var s = (o == null ? void 0 : o.caption) || "";
215
- i[s] = o;
235
+ B();
236
+ const n = B(), a = () => {
237
+ var u;
238
+ const l = (u = n.value) == null ? void 0 : u.getEditorAnnotations();
239
+ let m = !1;
240
+ l && l.length > 0 && (l.forEach((v) => {
241
+ v.type === "error" && (m = !0);
242
+ }), m && z.error(e.i18nt("designer.setting.syntaxCheckWarning")));
243
+ const g = r(k.value);
244
+ return i.setFunc ? i.setFunc(g) : g;
245
+ }, y = () => {
246
+ var l;
247
+ n.value.setValue((l = p == null ? void 0 : p.value) == null ? void 0 : l.exampleCode);
248
+ }, w = () => {
249
+ n.value.formatCode();
250
+ }, p = B({}), x = B({}), k = B(), N = () => {
251
+ var u, v, C;
252
+ const { initCode: l } = W(i);
253
+ p.value = l(i == null ? void 0 : i.getFunc);
254
+ var m = {};
255
+ (u = R.getDesignerBind()) == null || u.forEach((f) => {
256
+ var I = (f == null ? void 0 : f.caption) || "";
257
+ m[I] = f;
216
258
  });
217
- const r = $(ee.globalConfig, {});
218
- V.value = {
219
- ...Q((c = d.value) == null ? void 0 : c.params),
220
- ...W.getSystemAPI({ compParams: r }),
221
- compParams: r,
222
- ...i
223
- }, I.value = (l = d == null ? void 0 : d.value) == null ? void 0 : l.curValue, S();
259
+ const g = H(Y.globalConfig, {});
260
+ x.value = {
261
+ ...Z((v = p.value) == null ? void 0 : v.params),
262
+ ...R.getSystemAPI({ compParams: g }),
263
+ compParams: g,
264
+ ...m
265
+ }, k.value = (C = p == null ? void 0 : p.value) == null ? void 0 : C.curValue, o();
224
266
  };
225
- function Q(a) {
226
- const i = {};
227
- if (!a || a.length <= 0)
228
- return i;
229
- for (const r of a) {
230
- const n = r.indexOf(":");
231
- if (n === -1)
232
- continue;
233
- const c = r.substring(0, n).trim(), l = r.substring(n + 1).trim();
234
- if (l.startsWith("{") && l.endsWith("}")) {
235
- const o = l.slice(1, -1);
236
- i[c] = F(o);
237
- } else
238
- i[c] = l;
239
- }
240
- return i;
241
- }
242
- function F(a) {
243
- const i = {};
244
- let r = "", n = "", c = 0, l = !0;
245
- for (let o = 0; o < a.length; o++) {
246
- const s = a[o];
247
- if (s === "{")
248
- c++, n += s;
249
- else if (s === "}")
250
- c--, n += s;
251
- else if (s === ":" && c === 0) {
252
- l = !1;
253
- continue;
254
- } else if (s === "," && c === 0) {
255
- const h = r.trim(), u = n.trim();
256
- u.startsWith("{") && u.endsWith("}") ? i[h] = F(u.slice(1, -1)) : i[h] = u, r = "", n = "", l = !0;
257
- continue;
258
- }
259
- l ? r += s : n += s;
260
- }
261
- if (r.trim() || n.trim()) {
262
- const o = r.trim(), s = n.trim();
263
- s.startsWith("{") && s.endsWith("}") ? i[o] = F(s.slice(1, -1)) : i[o] = s;
264
- }
265
- return i;
266
- }
267
- return q(() => {
268
- O();
269
- }), f({
270
- save: b
271
- }), (a, i) => {
272
- var o, s, h, u;
273
- const r = D("el-text"), n = D("el-button"), c = D("el-button-group"), l = D("el-alert");
274
- return w(), J(j, null, [
275
- (o = d.value) != null && o.alertTitle ? (w(), P(l, {
267
+ return K(() => {
268
+ N();
269
+ }), s({
270
+ save: a
271
+ }), (l, m) => {
272
+ var f, I, V, L;
273
+ const g = P("el-text"), u = P("el-button"), v = P("el-button-group"), C = P("el-alert");
274
+ return S(), A(q, null, [
275
+ (f = p.value) != null && f.alertTitle ? (S(), D(C, {
276
276
  key: 0,
277
277
  type: "info",
278
278
  closable: !1,
279
279
  class: "dialog-alert"
280
280
  }, {
281
- default: v(() => [
282
- E(r, null, {
283
- default: v(() => {
284
- var y;
281
+ default: b(() => [
282
+ F(g, null, {
283
+ default: b(() => {
284
+ var h;
285
285
  return [
286
- _(M((y = d.value) == null ? void 0 : y.alertTitle), 1)
286
+ E(_((h = p.value) == null ? void 0 : h.alertTitle), 1)
287
287
  ];
288
288
  }),
289
289
  _: 1
290
290
  }),
291
- H("span", null, [
292
- E(c, null, {
293
- default: v(() => {
294
- var y;
291
+ j("span", null, [
292
+ F(v, null, {
293
+ default: b(() => {
294
+ var h;
295
295
  return [
296
- (y = d.value) != null && y.exampleCode ? (w(), P(n, {
296
+ (h = p.value) != null && h.exampleCode ? (S(), D(u, {
297
297
  key: 0,
298
298
  link: "",
299
299
  icon: "Help",
300
- onClick: k,
300
+ onClick: y,
301
301
  type: "primary"
302
302
  }, {
303
- default: v(() => [
304
- _(M(U(e).i18nt("designer.hint.importExampleCode")), 1)
303
+ default: b(() => [
304
+ E(_(M(e).i18nt("designer.hint.importExampleCode")), 1)
305
305
  ]),
306
306
  _: 1
307
- })) : x("", !0),
308
- E(n, {
307
+ })) : U("", !0),
308
+ F(u, {
309
309
  link: "",
310
310
  icon: "Brush",
311
- onClick: R,
311
+ onClick: w,
312
312
  type: "primary"
313
313
  }, {
314
- default: v(() => [
315
- _(M(U(e).i18nt("designer.hint.beautifyCode")), 1)
314
+ default: b(() => [
315
+ E(_(M(e).i18nt("designer.hint.beautifyCode")), 1)
316
316
  ]),
317
317
  _: 1
318
318
  })
@@ -323,26 +323,25 @@ const we = /* @__PURE__ */ K({
323
323
  ])
324
324
  ]),
325
325
  _: 1
326
- })) : x("", !0),
327
- (w(), P(G(U(B)), {
328
- mode: (s = d.value) == null ? void 0 : s.mode,
329
- modelValue: I.value,
330
- "onUpdate:modelValue": i[0] || (i[0] = (y) => I.value = y),
326
+ })) : U("", !0),
327
+ (S(), D(J(M(c)), {
328
+ mode: (I = p.value) == null ? void 0 : I.mode,
329
+ modelValue: k.value,
330
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => k.value = h),
331
331
  ref_key: "editorRef",
332
- ref: p,
333
- tipAPI: V.value,
334
- acData: N.value
335
- }, null, 8, ["mode", "modelValue", "tipAPI", "acData"])),
336
- (u = (h = d.value) == null ? void 0 : h.alertTitle) != null && u.trim().endsWith("{") ? (w(), P(l, {
332
+ ref: n,
333
+ tipAPI: x.value
334
+ }, null, 8, ["mode", "modelValue", "tipAPI"])),
335
+ (L = (V = p.value) == null ? void 0 : V.alertTitle) != null && L.trim().endsWith("{") ? (S(), D(C, {
337
336
  key: 1,
338
337
  type: "info",
339
338
  closable: !1,
340
339
  title: "}"
341
- })) : x("", !0)
340
+ })) : U("", !0)
342
341
  ], 64);
343
342
  };
344
343
  }
345
344
  });
346
345
  export {
347
- we as default
346
+ he as default
348
347
  };