@opentiny/tiny-engine-setting-events 2.5.0-rc.5 → 2.5.0

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.
package/dist/index.js CHANGED
@@ -1,34 +1,34 @@
1
1
  import "./style.css";
2
- import { ref as F, reactive as K, provide as Ce, resolveComponent as k, createBlock as w, openBlock as b, withCtx as y, createElementVNode as t, resolveDynamicComponent as ge, createVNode as u, createTextVNode as j, nextTick as Se, unref as D, createElementBlock as A, Fragment as H, withDirectives as _e, renderList as ne, normalizeClass as R, toDisplayString as M, createCommentVNode as q, vShow as he, computed as $, watchEffect as Ve, watch as be, inject as Ne } from "vue";
3
- import { DialogBox as Ae, Button as G, Form as Te, FormItem as Ee, Input as oe, Popover as Ue, Tooltip as je, Collapse as ze, CollapseItem as ye, Checkbox as Re, Search as Fe } from "@opentiny/vue";
4
- import { getMergeMeta as De, useLayout as ie, useCanvas as L, getMetaApi as Y, META_APP as Z, getOptions as Je, useHistory as Xe, useBlock as $e, useMaterial as Ke, useModal as He, useMessage as qe, useProperties as T } from "@opentiny/tiny-engine-meta-register";
5
- import Ge from "@opentiny/tiny-engine-common/js/i18n";
2
+ import { ref as K, reactive as Y, provide as Ve, resolveComponent as k, createBlock as O, openBlock as h, withCtx as E, createElementVNode as t, resolveDynamicComponent as _e, createVNode as u, createTextVNode as J, nextTick as Se, unref as D, createElementBlock as A, Fragment as W, withDirectives as be, renderList as ae, normalizeClass as X, toDisplayString as B, createCommentVNode as Q, vShow as he, computed as q, watchEffect as Ne, watch as ye, inject as Ae } from "vue";
3
+ import { DialogBox as De, Button as ee, Form as Te, FormItem as Ee, Input as le, Popover as Ue, Tooltip as je, Collapse as ze, CollapseItem as xe, Checkbox as Re, Search as $e } from "@opentiny/vue";
4
+ import { getMergeMeta as Ie, useLayout as re, useCanvas as j, getMetaApi as ne, META_APP as oe, getOptions as Fe, useHistory as Je, useBlock as Xe, useMaterial as Ke, useModal as He, useMessage as Ge, useProperties as $ } from "@opentiny/tiny-engine-meta-register";
5
+ import qe from "@opentiny/tiny-engine-common/js/i18n";
6
6
  import { SvgButton as Ye, BlockLinkEvent as Ze, PluginPanel as We, VueMonaco as Qe } from "@opentiny/tiny-engine-common";
7
7
  import { iconChevronDown as en } from "@opentiny/vue-icon";
8
- import { string2Ast as xe, ast2String as nn } from "@opentiny/tiny-engine-common/js/ast";
8
+ import { string2Ast as ke, ast2String as nn } from "@opentiny/tiny-engine-common/js/ast";
9
9
  import { CodeConfigurator as on, InputConfigurator as tn, VariableConfigurator as sn, SwitchConfigurator as an } from "@opentiny/tiny-engine-configurator";
10
- import { PROP_DATA_TYPE as X } from "@opentiny/tiny-engine-common/js/constants";
10
+ import { PROP_DATA_TYPE as G } from "@opentiny/tiny-engine-common/js/constants";
11
11
  import { constants as ln, utils as dn } from "@opentiny/tiny-engine-utils";
12
- const te = {
12
+ const de = {
13
13
  id: "engine.setting.event",
14
14
  title: "高级",
15
15
  type: "setting",
16
16
  align: "rightTop",
17
17
  name: "event",
18
18
  icon: "target"
19
- }, J = (v, o) => {
20
- const a = v.__vccOpts || v;
19
+ }, H = (f, o) => {
20
+ const a = f.__vccOpts || f;
21
21
  for (const [e, r] of o)
22
22
  a[e] = r;
23
23
  return a;
24
- }, se = F(!1), rn = () => {
25
- se.value = !0;
26
- }, ke = () => {
27
- se.value = !1;
24
+ }, ce = K(!1), rn = () => {
25
+ ce.value = !0;
26
+ }, Ce = () => {
27
+ ce.value = !1;
28
28
  }, cn = {
29
29
  components: {
30
- TinyButton: G,
31
- TinyDialogBox: Ae
30
+ TinyButton: ee,
31
+ TinyDialogBox: De
32
32
  },
33
33
  inheritAttrs: !1,
34
34
  props: {
@@ -37,8 +37,8 @@ const te = {
37
37
  default: () => ({})
38
38
  }
39
39
  },
40
- setup(v) {
41
- const { BindEventsDialogSidebar: o, BindEventsDialogContent: a } = De(te.id).components, { PLUGIN_NAME: e, activePlugin: r } = ie(), { pageState: _ } = L(), { getMethods: h, saveMethod: c, highlightMethod: p } = Y(Z.Page), s = K({
40
+ setup(f) {
41
+ const { BindEventsDialogSidebar: o, BindEventsDialogContent: a } = Ie(de.id).components, { PLUGIN_NAME: e, activePlugin: r } = re(), { pageState: _ } = j(), { getMethods: b, saveMethod: c, highlightMethod: p } = ne(oe.Page), s = Y({
42
42
  editorContent: "",
43
43
  bindMethodInfo: {},
44
44
  tip: "",
@@ -46,24 +46,24 @@ const te = {
46
46
  enableExtraParams: !1,
47
47
  isValidParams: !0
48
48
  });
49
- Ce("context", s);
49
+ Ve("context", s);
50
50
  const x = (g) => {
51
51
  s.bindMethodInfo = g;
52
52
  }, n = (g) => {
53
- var B, N;
53
+ var M, P;
54
54
  if (!g)
55
55
  return;
56
- const m = (B = v.eventBinding) == null ? void 0 : B.eventName;
56
+ const m = (M = f.eventBinding) == null ? void 0 : M.eventName;
57
57
  if (!m)
58
58
  return;
59
- const f = (N = _ == null ? void 0 : _.currentSchema) == null ? void 0 : N.props;
60
- if (!f)
59
+ const v = (P = _ == null ? void 0 : _.currentSchema) == null ? void 0 : P.props;
60
+ if (!v)
61
61
  return;
62
- const { name: C, extra: P } = g;
63
- v[m] || (f[m] = {
62
+ const { name: C, extra: w } = g;
63
+ f[m] || (v[m] = {
64
64
  type: "JSExpression",
65
65
  value: ""
66
- }), P && s.enableExtraParams && (f[m].params = P), f[m].value = `this.${C}`, Xe().addHistory();
66
+ }), w && s.enableExtraParams && (v[m].params = w), v[m].value = `this.${C}`, Je().addHistory();
67
67
  }, l = () => {
68
68
  s.tipError = !1, s.tip = "", s.isValidParams = !0;
69
69
  }, i = () => {
@@ -75,20 +75,24 @@ const te = {
75
75
  s.isValidParams = !1;
76
76
  }
77
77
  return g;
78
- }, d = (g) => Array.from({ length: g.length }, (m, f) => `args${f}`).join(","), E = () => {
79
- var f, C, P, B;
80
- let g = (C = (f = h()) == null ? void 0 : f[s.bindMethodInfo.name]) == null ? void 0 : C.value, m = "{}";
78
+ }, d = (g) => Array.from({ length: g.length }, (m, v) => `args${v}`).join(","), y = () => {
79
+ var w, M, P, S, T, U, L, Z;
80
+ let g = (M = (w = b()) == null ? void 0 : w[s.bindMethodInfo.name]) == null ? void 0 : M.value, m = "{}", v = !1, C = !1;
81
81
  if (g) {
82
82
  let N = {};
83
83
  try {
84
- N = xe(g);
84
+ N = ke(g);
85
85
  } catch {
86
- g = g.replace("function", `function ${s.bindMethodInfo.name}`), N = xe(g);
86
+ g = g.replace("function", `function ${s.bindMethodInfo.name}`), N = ke(g);
87
87
  }
88
- (B = (P = N == null ? void 0 : N.program) == null ? void 0 : P.body[0]) != null && B.body && (m = nn(N.program.body[0].body));
88
+ (S = (P = N == null ? void 0 : N.program) == null ? void 0 : P.body[0]) != null && S.body && (m = nn(N.program.body[0].body)), (U = (T = N == null ? void 0 : N.program) == null ? void 0 : T.body[0]) != null && U.async && (v = !0), (Z = (L = N == null ? void 0 : N.program) == null ? void 0 : L.body[0]) != null && Z.generator && (C = !0);
89
89
  }
90
- return m || `{
91
- }`;
90
+ return {
91
+ preBody: m || `{
92
+ }`,
93
+ isAsync: v,
94
+ isGenerator: C
95
+ };
92
96
  }, V = () => {
93
97
  r(e.Page).then(() => {
94
98
  Se(() => {
@@ -101,36 +105,36 @@ const te = {
101
105
  BindEventsDialogSidebar: o,
102
106
  BindEventsDialogContent: a,
103
107
  state: s,
104
- dialogVisible: se,
108
+ dialogVisible: ce,
105
109
  confirm: async () => {
106
110
  if (s.tipError)
107
111
  return;
108
112
  let g = "event";
109
113
  const m = i();
110
- let f = g;
114
+ let v = g;
111
115
  if (!s.isValidParams)
112
116
  return;
113
- m && (g = m.join(","), f = d(m)), n({ ...s.bindMethodInfo, extra: m });
114
- const C = E(), { name: P } = s.bindMethodInfo, B = {
117
+ m && (g = m.join(","), v = d(m)), n({ ...s.bindMethodInfo, extra: m });
118
+ const { preBody: C, isAsync: w, isGenerator: M } = y(), { name: P } = s.bindMethodInfo, S = `${w ? "async" : ""} function${M ? "*" : ""} ${P}`, T = {
115
119
  name: P,
116
- content: s.enableExtraParams ? `function ${P}(eventArgs,${f}) ${C}` : `function ${P}(${f}) ${C}`
117
- }, { beforeSaveMethod: N } = Je(te.id);
118
- typeof N == "function" && await N(B, s.bindMethodInfo), c == null || c(B), V(), ke();
120
+ content: s.enableExtraParams ? `${S}(eventArgs,${v}) ${C}` : `${S}(${v}) ${C}`
121
+ }, { beforeSaveMethod: U } = Fe(de.id);
122
+ typeof U == "function" && await U(T, s.bindMethodInfo), c == null || c(T), V(), Ce();
119
123
  },
120
124
  closeDialog: () => {
121
- l(), ke();
125
+ l(), Ce();
122
126
  },
123
127
  openedDialog: () => {
124
- var g, m, f;
125
- s.enableExtraParams = !!((m = (g = v.eventBinding) == null ? void 0 : g.params) != null && m.length), s.editorContent = JSON.stringify(((f = v.eventBinding) == null ? void 0 : f.params) || [], null, 2), l();
128
+ var g, m, v;
129
+ s.enableExtraParams = !!((m = (g = f.eventBinding) == null ? void 0 : g.params) != null && m.length), s.editorContent = JSON.stringify(((v = f.eventBinding) == null ? void 0 : v.params) || [], null, 2), l();
126
130
  },
127
131
  selectMethod: x
128
132
  };
129
133
  }
130
134
  }, mn = { class: "bind-event-dialog-content" }, pn = { class: "bind-dialog-footer" };
131
- function un(v, o, a, e, r, _) {
132
- const h = k("tiny-button"), c = k("tiny-dialog-box");
133
- return b(), w(c, {
135
+ function un(f, o, a, e, r, _) {
136
+ const b = k("tiny-button"), c = k("tiny-dialog-box");
137
+ return h(), O(c, {
134
138
  visible: e.dialogVisible,
135
139
  title: "事件绑定",
136
140
  width: "50%",
@@ -140,39 +144,39 @@ function un(v, o, a, e, r, _) {
140
144
  onClose: e.closeDialog,
141
145
  onOpened: e.openedDialog
142
146
  }, {
143
- footer: y(() => [
147
+ footer: E(() => [
144
148
  t("div", pn, [
145
- u(h, { onClick: e.closeDialog }, {
146
- default: y(() => o[0] || (o[0] = [
147
- j("取 消")
149
+ u(b, { onClick: e.closeDialog }, {
150
+ default: E(() => o[0] || (o[0] = [
151
+ J("取 消")
148
152
  ])),
149
153
  _: 1
150
154
  }, 8, ["onClick"]),
151
- u(h, {
155
+ u(b, {
152
156
  type: "info",
153
157
  onClick: e.confirm
154
158
  }, {
155
- default: y(() => o[1] || (o[1] = [
156
- j("确 定")
159
+ default: E(() => o[1] || (o[1] = [
160
+ J("确 定")
157
161
  ])),
158
162
  _: 1
159
163
  }, 8, ["onClick"])
160
164
  ])
161
165
  ]),
162
- default: y(() => [
166
+ default: E(() => [
163
167
  o[2] || (o[2] = t("div", { class: "bind-event-dialog-tip" }, " 选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。 ", -1)),
164
168
  t("div", mn, [
165
- (b(), w(ge(e.BindEventsDialogSidebar), {
169
+ (h(), O(_e(e.BindEventsDialogSidebar), {
166
170
  dialogVisible: e.dialogVisible,
167
171
  eventBinding: a.eventBinding
168
172
  }, null, 8, ["dialogVisible", "eventBinding"])),
169
- (b(), w(ge(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
173
+ (h(), O(_e(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
170
174
  ])
171
175
  ]),
172
176
  _: 1
173
177
  }, 8, ["visible", "onClose", "onOpened"]);
174
178
  }
175
- const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9"]]), fn = {
179
+ const fn = /* @__PURE__ */ H(cn, [["render", un], ["__scopeId", "data-v-db4b4d71"]]), vn = {
176
180
  onClick: {
177
181
  label: {
178
182
  zh_CN: "点击事件"
@@ -339,10 +343,10 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
339
343
  "onwebkitanimationstart",
340
344
  "onwebkittransitionend",
341
345
  "onwheel"
342
- ], _n = (v) => !!gn.map((a) => {
346
+ ], _n = (f) => !!gn.map((a) => {
343
347
  const e = a[2].toUpperCase();
344
348
  return `${a.substring(0, 2)}${e}${a.substring(3)}`;
345
- }).includes(v), hn = { class: "footer" }, bn = {
349
+ }).includes(f), bn = { class: "footer" }, hn = {
346
350
  __name: "AddEventsDialog",
347
351
  props: {
348
352
  visible: {
@@ -355,11 +359,11 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
355
359
  }
356
360
  },
357
361
  emits: ["closeDialog", "addEvent"],
358
- setup(v, { emit: o }) {
359
- const a = v, e = o, r = K({
362
+ setup(f, { emit: o }) {
363
+ const a = f, e = o, r = Y({
360
364
  eventDescription: "",
361
365
  eventName: ""
362
- }), _ = F(null), c = {
366
+ }), _ = K(null), c = {
363
367
  eventDescription: [
364
368
  {
365
369
  required: !0,
@@ -392,34 +396,34 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
392
396
  e("addEvent", { eventName: n, eventDescription: l });
393
397
  });
394
398
  };
395
- return (x, n) => (b(), w(D(Ae), {
396
- visible: v.visible,
399
+ return (x, n) => (h(), O(D(De), {
400
+ visible: f.visible,
397
401
  title: "添加新事件",
398
402
  width: "400px",
399
403
  "append-to-body": !0,
400
404
  "close-on-click-modal": !1,
401
405
  onClose: p
402
406
  }, {
403
- footer: y(() => [
404
- t("div", hn, [
405
- u(D(G), { onClick: p }, {
406
- default: y(() => n[2] || (n[2] = [
407
- j(" 取消")
407
+ footer: E(() => [
408
+ t("div", bn, [
409
+ u(D(ee), { onClick: p }, {
410
+ default: E(() => n[2] || (n[2] = [
411
+ J(" 取消")
408
412
  ])),
409
413
  _: 1
410
414
  }),
411
- u(D(G), {
415
+ u(D(ee), {
412
416
  type: "primary",
413
417
  onClick: s
414
418
  }, {
415
- default: y(() => n[3] || (n[3] = [
416
- j(" 确定")
419
+ default: E(() => n[3] || (n[3] = [
420
+ J(" 确定")
417
421
  ])),
418
422
  _: 1
419
423
  })
420
424
  ])
421
425
  ]),
422
- default: y(() => [
426
+ default: E(() => [
423
427
  u(D(Te), {
424
428
  ref_key: "ruleForm",
425
429
  ref: _,
@@ -431,14 +435,14 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
431
435
  "label-position": "left",
432
436
  class: "add-custom-event-form"
433
437
  }, {
434
- default: y(() => [
438
+ default: E(() => [
435
439
  u(D(Ee), {
436
440
  label: "事件函数名",
437
441
  prop: "eventName",
438
442
  required: ""
439
443
  }, {
440
- default: y(() => [
441
- u(D(oe), {
444
+ default: E(() => [
445
+ u(D(le), {
442
446
  modelValue: r.eventName,
443
447
  "onUpdate:modelValue": n[0] || (n[0] = (l) => r.eventName = l),
444
448
  placeholder: "小驼峰格式,如:onDrag"
@@ -451,8 +455,8 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
451
455
  prop: "eventDescription",
452
456
  required: ""
453
457
  }, {
454
- default: y(() => [
455
- u(D(oe), {
458
+ default: E(() => [
459
+ u(D(le), {
456
460
  modelValue: r.eventDescription,
457
461
  "onUpdate:modelValue": n[1] || (n[1] = (l) => r.eventDescription = l)
458
462
  }, null, 8, ["modelValue"])
@@ -466,19 +470,19 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
466
470
  _: 1
467
471
  }, 8, ["visible"]));
468
472
  }
469
- }, En = /* @__PURE__ */ J(bn, [["__scopeId", "data-v-5033228a"]]), yn = {
473
+ }, yn = /* @__PURE__ */ H(hn, [["__scopeId", "data-v-5033228a"]]), En = {
470
474
  components: {
471
475
  BlockLinkEvent: Ze,
472
- BindEventsDialog: vn,
476
+ BindEventsDialog: fn,
473
477
  TinyPopover: Ue,
474
- TinyButton: G,
478
+ TinyButton: ee,
475
479
  IconChevronDown: en(),
476
480
  SvgButton: Ye,
477
- AddEventsDialog: En
481
+ AddEventsDialog: yn
478
482
  },
479
483
  inheritAttrs: !1,
480
484
  setup() {
481
- const { PLUGIN_NAME: v, activePlugin: o } = ie(), { pageState: a } = L(), { getBlockEvents: e, getCurrentBlock: r, removeEventLink: _ } = $e(), { getMaterial: h } = Ke(), { confirm: c } = He(), p = Ge.global.locale.value, { highlightMethod: s } = Y(Z.Page), { commonEvents: x = {} } = De("engine.setting.event").options, n = K({
485
+ const { PLUGIN_NAME: f, activePlugin: o } = re(), { pageState: a } = j(), { getBlockEvents: e, getCurrentBlock: r, removeEventLink: _ } = Xe(), { getMaterial: b } = Ke(), { confirm: c } = He(), p = qe.global.locale.value, { highlightMethod: s } = ne(oe.Page), { commonEvents: x = {} } = Ie("engine.setting.event").options, n = Y({
482
486
  eventName: "",
483
487
  // 事件名称
484
488
  eventBinding: null,
@@ -487,38 +491,38 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
487
491
  customEvents: x,
488
492
  bindActions: {},
489
493
  showBindEventDialog: !1
490
- }), l = $(() => !!a.isBlock), i = $(() => Object.keys(n.bindActions).length === 0), d = $(() => ({ ...n.componentEvent, ...n.customEvents }));
491
- Ve(() => {
492
- var B, N, Q, ae, le;
493
- const m = (B = a == null ? void 0 : a.currentSchema) == null ? void 0 : B.componentName, f = h(m);
494
- n.componentEvent = ((Q = (N = f == null ? void 0 : f.content) == null ? void 0 : N.schema) == null ? void 0 : Q.events) || ((ae = f == null ? void 0 : f.schema) == null ? void 0 : ae.events) || {};
495
- const C = ((le = a == null ? void 0 : a.currentSchema) == null ? void 0 : le.props) || {}, P = Object.keys(C);
496
- n.bindActions = {}, Object.entries(d.value).forEach(([z, Be]) => {
497
- var de, re, ce;
498
- if (P.indexOf(z) > -1) {
499
- const Me = C[z], { value: we, params: me } = Me, Le = !me && ((re = (de = we.match(/\((.+)\)$/)) == null ? void 0 : de[1]) == null ? void 0 : re.split(",")) || me, O = {
500
- eventName: z,
494
+ }), l = q(() => !!a.isBlock), i = q(() => Object.keys(n.bindActions).length === 0), d = q(() => ({ ...n.componentEvent, ...n.customEvents }));
495
+ Ne(() => {
496
+ var M, P, S, T, U;
497
+ const m = (M = a == null ? void 0 : a.currentSchema) == null ? void 0 : M.componentName, v = b(m);
498
+ n.componentEvent = ((S = (P = v == null ? void 0 : v.content) == null ? void 0 : P.schema) == null ? void 0 : S.events) || ((T = v == null ? void 0 : v.schema) == null ? void 0 : T.events) || {};
499
+ const C = ((U = a == null ? void 0 : a.currentSchema) == null ? void 0 : U.props) || {}, w = Object.keys(C);
500
+ n.bindActions = {}, Object.entries(d.value).forEach(([L, Z]) => {
501
+ var N, ie, me;
502
+ if (w.indexOf(L) > -1) {
503
+ const Me = C[L], { value: we, params: pe } = Me, Le = !pe && ((ie = (N = we.match(/\((.+)\)$/)) == null ? void 0 : N[1]) == null ? void 0 : ie.split(",")) || pe, z = {
504
+ eventName: L,
501
505
  ref: "",
502
- event: C[z],
506
+ event: C[L],
503
507
  params: Le
504
508
  };
505
- if (O.event.type === "JSExpression" && (O.ref = O.event.value.replace("this.", "").replace(/\(.*\)$/, "")), a.isBlock) {
506
- O.metaEvent = Be;
507
- const pe = e(r()), ue = (ce = a == null ? void 0 : a.currentSchema) == null ? void 0 : ce.id;
508
- ue && pe && Object.entries(pe).forEach(([Oe, S]) => {
509
- var ve, fe;
510
- ue === ((ve = S == null ? void 0 : S.linked) == null ? void 0 : ve.id) && z === ((fe = S == null ? void 0 : S.linked) == null ? void 0 : fe.event) && (O.linked = S.linked, O.linkedEventName = Oe);
509
+ if (z.event.type === "JSExpression" && (z.ref = z.event.value.replace("this.", "").replace(/\(.*\)$/, "")), a.isBlock) {
510
+ z.metaEvent = Z;
511
+ const ue = e(r()), fe = (me = a == null ? void 0 : a.currentSchema) == null ? void 0 : me.id;
512
+ fe && ue && Object.entries(ue).forEach(([Oe, R]) => {
513
+ var ve, ge;
514
+ fe === ((ve = R == null ? void 0 : R.linked) == null ? void 0 : ve.id) && L === ((ge = R == null ? void 0 : R.linked) == null ? void 0 : ge.event) && (z.linked = R.linked, z.linkedEventName = Oe);
511
515
  });
512
516
  }
513
- n.bindActions[z] = O;
517
+ n.bindActions[L] = z;
514
518
  }
515
519
  });
516
520
  });
517
- const E = (m, f) => {
518
- f && n.bindActions[m.eventName] || (n.eventBinding = m, rn());
521
+ const y = (m, v) => {
522
+ v && n.bindActions[m.eventName] || (n.eventBinding = m, rn());
519
523
  }, V = (m) => {
520
524
  var C;
521
- Object.keys(((C = a == null ? void 0 : a.currentSchema) == null ? void 0 : C.props) || {}).indexOf(m.eventName) > -1 && (delete a.currentSchema.props[m.eventName], qe().publish({ topic: "schemaChange", data: { props: a.currentSchema.props } }));
525
+ Object.keys(((C = a == null ? void 0 : a.currentSchema) == null ? void 0 : C.props) || {}).indexOf(m.eventName) > -1 && (delete a.currentSchema.props[m.eventName], Ge().publish({ topic: "schemaChange", data: { props: a.currentSchema.props } }));
522
526
  };
523
527
  return {
524
528
  state: n,
@@ -534,15 +538,15 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
534
538
  });
535
539
  },
536
540
  openCodePanel: (m) => {
537
- m && o(v.Page).then(() => {
541
+ m && o(f.Page).then(() => {
538
542
  s && s(m.ref);
539
543
  });
540
544
  },
541
- openActionDialog: E,
545
+ openActionDialog: y,
542
546
  handleAddEvent: (m) => {
543
- const { eventName: f, eventDescription: C } = m;
547
+ const { eventName: v, eventDescription: C } = m;
544
548
  Object.assign(n.customEvents, {
545
- [f]: {
549
+ [v]: {
546
550
  label: {
547
551
  zh_CN: C
548
552
  },
@@ -566,9 +570,9 @@ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9
566
570
  };
567
571
  }
568
572
  }, xn = { class: "bind-action-list" }, kn = { class: "popover-head" }, Cn = { class: "bind-event-list" }, Vn = ["onClick"], Nn = { class: "bind-actions" }, An = { class: "action-item bind-action-item" }, Dn = ["onClick"], In = { class: "event-bind" }, Pn = { class: "action-buttons" }, Bn = { class: "empty-action" }, Mn = { class: "icon" };
569
- function wn(v, o, a, e, r, _) {
570
- const h = k("icon-chevron-down"), c = k("tiny-button"), p = k("tiny-popover"), s = k("svg-icon"), x = k("block-link-event"), n = k("svg-button"), l = k("bind-events-dialog"), i = k("add-events-dialog");
571
- return b(), A(H, null, [
573
+ function wn(f, o, a, e, r, _) {
574
+ const b = k("icon-chevron-down"), c = k("tiny-button"), p = k("tiny-popover"), s = k("svg-icon"), x = k("block-link-event"), n = k("svg-button"), l = k("bind-events-dialog"), i = k("add-events-dialog");
575
+ return h(), A(W, null, [
572
576
  t("div", xn, [
573
577
  t("div", kn, [
574
578
  u(p, {
@@ -579,25 +583,25 @@ function wn(v, o, a, e, r, _) {
579
583
  width: "256",
580
584
  "visible-arrow": !1
581
585
  }, {
582
- reference: y(() => [
586
+ reference: E(() => [
583
587
  u(c, { class: "bind-event-btn" }, {
584
- default: y(() => [
588
+ default: E(() => [
585
589
  o[2] || (o[2] = t("span", null, "绑定事件", -1)),
586
- u(h, { class: "icon-chevron-down bind-event-btn-icon" })
590
+ u(b, { class: "icon-chevron-down bind-event-btn-icon" })
587
591
  ]),
588
592
  _: 1
589
593
  })
590
594
  ]),
591
- default: y(() => [
595
+ default: E(() => [
592
596
  t("ul", Cn, [
593
- (b(!0), A(H, null, ne(e.renderEventList, (d, E) => {
597
+ (h(!0), A(W, null, ae(e.renderEventList, (d, y) => {
594
598
  var V;
595
- return b(), A("li", {
596
- key: E,
597
- class: R(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[E] }]),
598
- onClick: (I) => e.openActionDialog({ eventName: E }, !0)
599
+ return h(), A("li", {
600
+ key: y,
601
+ class: X(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[y] }]),
602
+ onClick: (I) => e.openActionDialog({ eventName: y }, !0)
599
603
  }, [
600
- t("div", null, M(E) + "  |  " + M(((V = d == null ? void 0 : d.label) == null ? void 0 : V[e.locale]) || E), 1)
604
+ t("div", null, B(y) + "  |  " + B(((V = d == null ? void 0 : d.label) == null ? void 0 : V[e.locale]) || y), 1)
601
605
  ], 10, Vn);
602
606
  }), 128))
603
607
  ])
@@ -608,7 +612,7 @@ function wn(v, o, a, e, r, _) {
608
612
  class: "title add-custom-event-button bind-action-button-item",
609
613
  onClick: o[0] || (o[0] = (d) => e.handleToggleAddEventDialog(!0))
610
614
  }, {
611
- default: y(() => [
615
+ default: E(() => [
612
616
  u(s, {
613
617
  name: "add",
614
618
  class: "custom-event-button-icon"
@@ -618,10 +622,10 @@ function wn(v, o, a, e, r, _) {
618
622
  _: 1
619
623
  })
620
624
  ]),
621
- _e(t("ul", Nn, [
622
- (b(!0), A(H, null, ne(e.state.bindActions, (d) => {
623
- var E, V;
624
- return b(), A("li", {
625
+ be(t("ul", Nn, [
626
+ (h(!0), A(W, null, ae(e.state.bindActions, (d) => {
627
+ var y, V;
628
+ return h(), A("li", {
625
629
  key: d.eventName
626
630
  }, [
627
631
  t("div", An, [
@@ -630,19 +634,19 @@ function wn(v, o, a, e, r, _) {
630
634
  onClick: (I) => e.openActionDialog(d)
631
635
  }, [
632
636
  t("div", null, [
633
- j(M(d.eventName), 1),
634
- t("span", null, M((V = (E = e.renderEventList[d.eventName]) == null ? void 0 : E.label) == null ? void 0 : V[e.locale]), 1)
637
+ J(B(d.eventName), 1),
638
+ t("span", null, B((V = (y = e.renderEventList[d.eventName]) == null ? void 0 : y.label) == null ? void 0 : V[e.locale]), 1)
635
639
  ]),
636
640
  t("div", {
637
- class: R({ linked: d.linked })
638
- }, M(d.linkedEventName), 3),
639
- t("span", In, M(d.ref), 1)
641
+ class: X({ linked: d.linked })
642
+ }, B(d.linkedEventName), 3),
643
+ t("span", In, B(d.ref), 1)
640
644
  ], 8, Dn),
641
645
  t("div", Pn, [
642
- e.isBlock ? (b(), w(x, {
646
+ e.isBlock ? (h(), O(x, {
643
647
  key: 0,
644
648
  data: d
645
- }, null, 8, ["data"])) : q("", !0),
649
+ }, null, 8, ["data"])) : Q("", !0),
646
650
  u(n, {
647
651
  name: "plugin-icon-page-schema",
648
652
  tips: "定位到代码",
@@ -667,7 +671,7 @@ function wn(v, o, a, e, r, _) {
667
671
  ], 512), [
668
672
  [he, !e.isEmpty]
669
673
  ]),
670
- _e(t("div", Bn, [
674
+ be(t("div", Bn, [
671
675
  t("div", Mn, [
672
676
  u(s, {
673
677
  name: "empty-action",
@@ -690,7 +694,7 @@ function wn(v, o, a, e, r, _) {
690
694
  }, null, 8, ["visible", "componentEvents", "onAddEvent"])
691
695
  ], 64);
692
696
  }
693
- const Ln = /* @__PURE__ */ J(yn, [["render", wn], ["__scopeId", "data-v-3bfab6f4"]]), { DEFAULT_LOOP_NAME: U } = ln, { string2Obj: On } = dn, Sn = {
697
+ const Ln = /* @__PURE__ */ H(En, [["render", wn], ["__scopeId", "data-v-3bfab6f4"]]), { DEFAULT_LOOP_NAME: F } = ln, { string2Obj: On } = dn, Sn = {
694
698
  components: {
695
699
  SwitchConfigurator: an,
696
700
  TinyTooltip: je,
@@ -700,72 +704,72 @@ const Ln = /* @__PURE__ */ J(yn, [["render", wn], ["__scopeId", "data-v-3bfab6f4
700
704
  },
701
705
  inheritAttrs: !1,
702
706
  setup() {
703
- const { pageState: v } = L(), o = F(!1), a = $(() => {
707
+ const { pageState: f } = j(), o = K(!1), a = q(() => {
704
708
  var n;
705
- return ((n = o.value) == null ? void 0 : n.type) === X.JSEXPRESSION;
709
+ return ((n = o.value) == null ? void 0 : n.type) === G.JSEXPRESSION;
706
710
  }), e = () => {
707
711
  var n, l;
708
- return ((l = (n = T().getSchema()) == null ? void 0 : n.loopArgs) == null ? void 0 : l[1]) || U.INDEX;
709
- }, r = K({
712
+ return ((l = (n = $().getSchema()) == null ? void 0 : n.loopArgs) == null ? void 0 : l[1]) || F.INDEX;
713
+ }, r = Y({
710
714
  loopData: {
711
- type: X.JSEXPRESSION,
715
+ type: G.JSEXPRESSION,
712
716
  value: "[]"
713
717
  },
714
718
  loopItem: "item",
715
719
  loopIndex: "index",
716
- isLoop: $(() => {
720
+ isLoop: q(() => {
717
721
  var n;
718
- return ((n = r.loopData) == null ? void 0 : n.type) === X.JSEXPRESSION;
722
+ return ((n = r.loopData) == null ? void 0 : n.type) === G.JSEXPRESSION;
719
723
  }),
720
724
  loopKey: "",
721
725
  shouldUpdate: !1
722
726
  });
723
- be(
724
- () => [v == null ? void 0 : v.currentSchema, r.shouldUpdate],
727
+ ye(
728
+ () => [f == null ? void 0 : f.currentSchema, r.shouldUpdate],
725
729
  ([n]) => {
726
- var l, i, d, E;
727
- o.value = (n == null ? void 0 : n.condition) === void 0 ? !0 : n == null ? void 0 : n.condition, r.loopData = n == null ? void 0 : n.loop, r.loopItem = ((l = n == null ? void 0 : n.loopArgs) == null ? void 0 : l[0]) || "", r.loopIndex = ((i = n == null ? void 0 : n.loopArgs) == null ? void 0 : i[1]) || "", r.loopKey = ((E = (d = n == null ? void 0 : n.props) == null ? void 0 : d.key) == null ? void 0 : E.value) || "";
730
+ var l, i, d, y;
731
+ o.value = (n == null ? void 0 : n.condition) === void 0 ? !0 : n == null ? void 0 : n.condition, r.loopData = n == null ? void 0 : n.loop, r.loopItem = ((l = n == null ? void 0 : n.loopArgs) == null ? void 0 : l[0]) || "", r.loopIndex = ((i = n == null ? void 0 : n.loopArgs) == null ? void 0 : i[1]) || "", r.loopKey = ((y = (d = n == null ? void 0 : n.props) == null ? void 0 : d.key) == null ? void 0 : y.value) || "";
728
732
  }
729
733
  );
730
734
  const _ = (n = "") => {
731
735
  var I;
732
736
  n = n.replace(/\s*/g, "");
733
- const { getSchema: l, setProp: i } = T(), d = l();
737
+ const { getSchema: l, setProp: i } = $(), d = l();
734
738
  if (!d)
735
739
  return;
736
- const E = Number(n).toString() !== "NaN";
740
+ const y = Number(n).toString() !== "NaN";
737
741
  let V = (I = d.props) == null ? void 0 : I.key;
738
- n && !E && (V = {
739
- type: X.JSEXPRESSION,
742
+ n && !y && (V = {
743
+ type: G.JSEXPRESSION,
740
744
  value: n
741
745
  }), n || (r.isLoop ? V = {
742
- type: X.JSEXPRESSION,
746
+ type: G.JSEXPRESSION,
743
747
  value: e()
744
748
  } : V = ""), i("key", V);
745
749
  };
746
- be([() => r.isLoop, () => r.loopIndex], () => {
750
+ ye([() => r.isLoop, () => r.loopIndex], () => {
747
751
  !r.loopKey && r.isLoop && _(e()), r.isLoop || _("");
748
752
  });
749
- const h = () => {
753
+ const b = () => {
750
754
  var n;
751
- r.loopData = (n = T().getSchema()) == null ? void 0 : n.loop;
755
+ r.loopData = (n = $().getSchema()) == null ? void 0 : n.loop;
752
756
  }, c = (n) => {
753
- const { getSchema: l } = T(), i = l();
757
+ const { getSchema: l } = $(), i = l();
754
758
  if (!i)
755
759
  return;
756
- const { operateNode: d } = L();
760
+ const { operateNode: d } = j();
757
761
  if (n === !1 || n != null && n.type)
758
762
  d({ type: "updateAttributes", id: i.id, value: { condition: n } });
759
763
  else {
760
- const { condition: E, children: V, ...I } = i;
764
+ const { condition: y, children: V, ...I } = i;
761
765
  d({ type: "updateAttributes", id: i.id, value: { ...I }, overwrite: !0 });
762
766
  }
763
- L().canvasApi.value.updateRect(), o.value = n;
767
+ j().canvasApi.value.updateRect(), o.value = n;
764
768
  }, p = (n) => {
765
- const l = T().getSchema();
769
+ const l = $().getSchema();
766
770
  let i = l.loopArgs;
767
- const { operateNode: d } = L();
768
- i ? i[1] = n || U.INDEX : i = [U.ITEM, n], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
771
+ const { operateNode: d } = j();
772
+ i ? i[1] = n || F.INDEX : i = [F.ITEM, n], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
769
773
  };
770
774
  return {
771
775
  condition: o,
@@ -773,43 +777,43 @@ const Ln = /* @__PURE__ */ J(yn, [["render", wn], ["__scopeId", "data-v-3bfab6f4
773
777
  isBind: a,
774
778
  state: r,
775
779
  setLoop: (n) => {
776
- const { operateNode: l } = L(), { getSchema: i } = T(), d = i();
780
+ const { operateNode: l } = j(), { getSchema: i } = $(), d = i();
777
781
  if (n) {
778
- const E = n != null && n.type ? n : On(n);
779
- l({ type: "updateAttributes", id: d.id, value: { loop: E } }), p(U.INDEX);
782
+ const y = n != null && n.type ? n : On(n);
783
+ l({ type: "updateAttributes", id: d.id, value: { loop: y } }), p(F.INDEX);
780
784
  } else {
781
785
  _();
782
- const { loop: E, loopArgs: V, children: I, ...W } = d;
783
- l({ type: "updateAttributes", id: d.id, value: W, overwrite: !0 });
786
+ const { loop: y, loopArgs: V, children: I, ...te } = d;
787
+ l({ type: "updateAttributes", id: d.id, value: te, overwrite: !0 });
784
788
  }
785
789
  r.shouldUpdate = !r.shouldUpdate;
786
790
  },
787
791
  setLoopItem: (n) => {
788
- const l = T().getSchema();
792
+ const l = $().getSchema();
789
793
  let i = l.loopArgs;
790
- const { operateNode: d } = L();
791
- i ? i[0] = n || U.ITEM : i = [n, U.INDEX], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
794
+ const { operateNode: d } = j();
795
+ i ? i[0] = n || F.ITEM : i = [n, F.INDEX], d({ type: "updateAttributes", id: l.id, value: { loopArgs: i } });
792
796
  },
793
- DEFAULT_LOOP_NAME: U,
794
- openEditor: h,
797
+ DEFAULT_LOOP_NAME: F,
798
+ openEditor: b,
795
799
  setLoopIndex: p,
796
800
  setLoopKey: _,
797
801
  getIndexName: e
798
802
  };
799
803
  }
800
- }, Tn = { class: "advanced-config-container" }, Un = { class: "advnce-config" }, jn = { class: "advanced-config-form-item" }, zn = ["title"], Rn = { class: "advnce-config loop-data-item" }, Fn = { class: "advanced-config-form-item" }, Jn = ["title"], Xn = { class: "advnce-config" }, $n = { class: "advanced-config-form-item" }, Kn = { class: "advnce-config" }, Hn = { class: "advanced-config-form-item" }, qn = { class: "advnce-config" }, Gn = { class: "advanced-config-form-item" };
801
- function Yn(v, o, a, e, r, _) {
804
+ }, Tn = { class: "advanced-config-container" }, Un = { class: "advnce-config" }, jn = { class: "advanced-config-form-item" }, zn = ["title"], Rn = { class: "advnce-config loop-data-item" }, $n = { class: "advanced-config-form-item" }, Fn = ["title"], Jn = { class: "advnce-config" }, Xn = { class: "advanced-config-form-item" }, Kn = { class: "advnce-config" }, Hn = { class: "advanced-config-form-item" }, Gn = { class: "advnce-config" }, qn = { class: "advanced-config-form-item" };
805
+ function Yn(f, o, a, e, r, _) {
802
806
  var n, l;
803
- const h = k("switch-configurator"), c = k("variable-configurator"), p = k("code-configurator"), s = k("input-configurator"), x = k("tiny-tooltip");
804
- return b(), A("div", Tn, [
807
+ const b = k("switch-configurator"), c = k("variable-configurator"), p = k("code-configurator"), s = k("input-configurator"), x = k("tiny-tooltip");
808
+ return h(), A("div", Tn, [
805
809
  t("div", Un, [
806
810
  o[6] || (o[6] = t("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
807
811
  t("div", jn, [
808
- e.isBind ? (b(), A("div", {
812
+ e.isBind ? (h(), A("div", {
809
813
  key: 1,
810
814
  class: "binding-state text-ellipsis-multiple",
811
815
  title: e.condition.value
812
- }, " 已绑定:" + M(e.condition.value), 9, zn)) : (b(), w(h, {
816
+ }, " 已绑定:" + B(e.condition.value), 9, zn)) : (h(), O(b, {
813
817
  key: 0,
814
818
  modelValue: e.condition,
815
819
  "onUpdate:modelValue": e.setConfig
@@ -826,12 +830,12 @@ function Yn(v, o, a, e, r, _) {
826
830
  ]),
827
831
  t("div", Rn, [
828
832
  o[7] || (o[7] = t("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
829
- t("div", Fn, [
830
- e.state.isLoop ? (b(), A("div", {
833
+ t("div", $n, [
834
+ e.state.isLoop ? (h(), A("div", {
831
835
  key: 1,
832
836
  class: "binding-state text-ellipsis-multiple",
833
837
  title: (n = e.state.loopData) == null ? void 0 : n.value
834
- }, " 已绑定:" + M((l = e.state.loopData) == null ? void 0 : l.value), 9, Jn)) : (b(), w(p, {
838
+ }, " 已绑定:" + B((l = e.state.loopData) == null ? void 0 : l.value), 9, Fn)) : (h(), O(p, {
835
839
  key: 0,
836
840
  modelValue: e.state.loopData,
837
841
  "onUpdate:modelValue": [
@@ -851,9 +855,9 @@ function Yn(v, o, a, e, r, _) {
851
855
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
852
856
  ])
853
857
  ]),
854
- t("div", Xn, [
858
+ t("div", Jn, [
855
859
  o[8] || (o[8] = t("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
856
- t("div", $n, [
860
+ t("div", Xn, [
857
861
  u(s, {
858
862
  modelValue: e.state.loopItem,
859
863
  "onUpdate:modelValue": [
@@ -877,14 +881,14 @@ function Yn(v, o, a, e, r, _) {
877
881
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
878
882
  ])
879
883
  ]),
880
- t("div", qn, [
884
+ t("div", Gn, [
881
885
  o[10] || (o[10] = t("label", { class: "text-ellipsis-multiple" }, "key", -1)),
882
- t("div", Gn, [
886
+ t("div", qn, [
883
887
  u(x, {
884
888
  content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
885
889
  effect: "light"
886
890
  }, {
887
- default: y(() => [
891
+ default: E(() => [
888
892
  u(s, {
889
893
  modelValue: e.state.loopKey,
890
894
  "onUpdate:modelValue": [
@@ -900,43 +904,43 @@ function Yn(v, o, a, e, r, _) {
900
904
  ])
901
905
  ]);
902
906
  }
903
- const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006"]]), Wn = {
907
+ const Zn = /* @__PURE__ */ H(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006"]]), Wn = {
904
908
  __name: "Main",
905
909
  props: {
906
910
  fixedPanels: Array
907
911
  },
908
912
  emits: [],
909
- setup(v, { emit: o }) {
910
- const a = F(["bindEvent", "advancedConfig"]), { PLUGIN_NAME: e } = ie(), _ = K({
913
+ setup(f, { emit: o }) {
914
+ const a = K(["bindEvent", "advancedConfig"]), { PLUGIN_NAME: e } = re(), _ = Y({
911
915
  emitEvent: o
912
916
  });
913
- return Ce("panelState", _), (h, c) => (b(), w(D(We), {
917
+ return Ve("panelState", _), (b, c) => (h(), O(D(We), {
914
918
  title: "高级",
915
- "fixed-panels": v.fixedPanels,
919
+ "fixed-panels": f.fixedPanels,
916
920
  "fixed-name": D(e).Event,
917
921
  "header-margin-bottom": 0,
918
- onClose: c[1] || (c[1] = (p) => h.$emit("close"))
922
+ onClose: c[1] || (c[1] = (p) => b.$emit("close"))
919
923
  }, {
920
- content: y(() => [
924
+ content: E(() => [
921
925
  u(D(ze), {
922
926
  modelValue: a.value,
923
927
  "onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p)
924
928
  }, {
925
- default: y(() => [
926
- u(D(ye), {
929
+ default: E(() => [
930
+ u(D(xe), {
927
931
  title: "事件绑定",
928
932
  name: "bindEvent"
929
933
  }, {
930
- default: y(() => [
934
+ default: E(() => [
931
935
  u(Ln)
932
936
  ]),
933
937
  _: 1
934
938
  }),
935
- u(D(ye), {
939
+ u(D(xe), {
936
940
  title: "高级配置",
937
941
  name: "advancedConfig"
938
942
  }, {
939
- default: y(() => [
943
+ default: E(() => [
940
944
  u(Zn)
941
945
  ]),
942
946
  _: 1
@@ -948,21 +952,21 @@ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
948
952
  _: 1
949
953
  }, 8, ["fixed-panels", "fixed-name"]));
950
954
  }
951
- }, Ie = "newMethod", Qn = /[^0-9a-zA-Z_$]/, eo = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, ee = {
955
+ }, Pe = "newMethod", Qn = /[^0-9a-zA-Z_$]/, eo = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, se = {
952
956
  exist: "方法名称已存在",
953
957
  ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
954
958
  empty: "方法名称不能为空"
955
959
  }, no = {
956
960
  components: {
957
961
  MonacoEditor: Qe,
958
- TinyInput: oe,
962
+ TinyInput: le,
959
963
  TinyCheckbox: Re
960
964
  },
961
965
  props: {
962
966
  dialogVisible: Boolean
963
967
  },
964
968
  setup() {
965
- const { getMethodNameList: v } = Y(Z.Page), o = Ne("context"), a = {
969
+ const { getMethodNameList: f } = ne(oe.Page), o = Ae("context"), a = {
966
970
  language: "json",
967
971
  lineNumbers: !1,
968
972
  minimap: {
@@ -970,16 +974,16 @@ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
970
974
  }
971
975
  }, e = (p) => {
972
976
  o.editorContent = p;
973
- }, r = (p) => !p, _ = (p) => v == null ? void 0 : v().includes(p), h = (p) => !eo.test(p);
977
+ }, r = (p) => !p, _ = (p) => f == null ? void 0 : f().includes(p), b = (p) => !eo.test(p);
974
978
  return {
975
- NEW_METHOD_TYPE: Ie,
979
+ NEW_METHOD_TYPE: Pe,
976
980
  context: o,
977
981
  editorOptions: a,
978
982
  change: (p) => {
979
983
  const s = [
980
- { validator: r, tip: ee.empty },
981
- { validator: _, tip: ee.exist },
982
- { validator: h, tip: ee.ruleInvalid }
984
+ { validator: r, tip: se.empty },
985
+ { validator: _, tip: se.exist },
986
+ { validator: b, tip: se.ruleInvalid }
983
987
  ];
984
988
  for (let x = 0; x < s.length; x++) {
985
989
  const n = s[x];
@@ -1000,27 +1004,27 @@ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006
1000
1004
  key: 0,
1001
1005
  class: "params-tip"
1002
1006
  };
1003
- function co(v, o, a, e, r, _) {
1004
- const h = k("tiny-input"), c = k("tiny-checkbox"), p = k("monaco-editor");
1005
- return b(), A("div", oo, [
1007
+ function co(f, o, a, e, r, _) {
1008
+ const b = k("tiny-input"), c = k("tiny-checkbox"), p = k("monaco-editor");
1009
+ return h(), A("div", oo, [
1006
1010
  t("div", {
1007
- class: R(["content-right-top", { "tip-error": e.context.tipError }])
1011
+ class: X(["content-right-top", { "tip-error": e.context.tipError }])
1008
1012
  }, [
1009
1013
  o[2] || (o[2] = t("div", { class: "content-right-title" }, "方法名称", -1)),
1010
- u(h, {
1014
+ u(b, {
1011
1015
  modelValue: e.context.bindMethodInfo.name,
1012
1016
  "onUpdate:modelValue": [
1013
1017
  o[0] || (o[0] = (s) => e.context.bindMethodInfo.name = s),
1014
1018
  e.change
1015
1019
  ],
1016
1020
  disabled: e.context.bindMethodInfo.type !== e.NEW_METHOD_TYPE,
1017
- class: R([{ "status-error": e.context.tipError }]),
1021
+ class: X([{ "status-error": e.context.tipError }]),
1018
1022
  placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
1019
1023
  }, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
1020
- t("div", to, M(e.context.tip), 1)
1024
+ t("div", to, B(e.context.tip), 1)
1021
1025
  ], 2),
1022
1026
  t("div", {
1023
- class: R(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
1027
+ class: X(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
1024
1028
  }, [
1025
1029
  t("div", io, [
1026
1030
  u(c, {
@@ -1028,33 +1032,33 @@ function co(v, o, a, e, r, _) {
1028
1032
  "onUpdate:modelValue": o[1] || (o[1] = (s) => e.context.enableExtraParams = s),
1029
1033
  name: "tiny-checkbox"
1030
1034
  }, {
1031
- default: y(() => o[3] || (o[3] = [
1032
- j("扩展参数设置")
1035
+ default: E(() => o[3] || (o[3] = [
1036
+ J("扩展参数设置")
1033
1037
  ])),
1034
1038
  _: 1
1035
1039
  }, 8, ["modelValue"]),
1036
1040
  t("div", so, [
1037
1041
  o[4] || (o[4] = t("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
1038
- j(" 如: " + M(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
1042
+ J(" 如: " + B(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
1039
1043
  ])
1040
1044
  ]),
1041
1045
  t("div", ao, [
1042
- a.dialogVisible ? (b(), w(p, {
1046
+ a.dialogVisible ? (h(), O(p, {
1043
1047
  key: 0,
1044
1048
  value: e.context.editorContent,
1045
1049
  options: e.editorOptions,
1046
1050
  onChange: e.editorContentChange,
1047
1051
  class: "monaco-editor"
1048
- }, null, 8, ["value", "options", "onChange"])) : q("", !0),
1049
- e.context.enableExtraParams ? q("", !0) : (b(), A("div", lo))
1052
+ }, null, 8, ["value", "options", "onChange"])) : Q("", !0),
1053
+ e.context.enableExtraParams ? Q("", !0) : (h(), A("div", lo))
1050
1054
  ]),
1051
- !e.context.isValidParams && e.context.enableExtraParams ? (b(), A("div", ro, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : q("", !0)
1055
+ !e.context.isValidParams && e.context.enableExtraParams ? (h(), A("div", ro, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : Q("", !0)
1052
1056
  ], 2)
1053
1057
  ]);
1054
1058
  }
1055
- const mo = /* @__PURE__ */ J(no, [["render", co], ["__scopeId", "data-v-f2c9b5af"]]), po = {
1059
+ const mo = /* @__PURE__ */ H(no, [["render", co], ["__scopeId", "data-v-f2c9b5af"]]), po = {
1056
1060
  components: {
1057
- TinySearch: Fe
1061
+ TinySearch: $e
1058
1062
  },
1059
1063
  props: {
1060
1064
  eventBinding: {
@@ -1062,66 +1066,66 @@ const mo = /* @__PURE__ */ J(no, [["render", co], ["__scopeId", "data-v-f2c9b5af
1062
1066
  default: () => ({})
1063
1067
  }
1064
1068
  },
1065
- setup(v) {
1066
- const { getMethodNameList: o } = Y(Z.Page), a = F(""), e = F([]), r = Ne("context"), _ = (c, p) => {
1069
+ setup(f) {
1070
+ const { getMethodNameList: o } = ne(oe.Page), a = K(""), e = K([]), r = Ae("context"), _ = (c, p) => {
1067
1071
  const s = c.map((l) => {
1068
1072
  var i;
1069
1073
  return Number.parseInt((i = l.match(/\d+$/)) == null ? void 0 : i[0]) || 0;
1070
1074
  }).sort((l, i) => l - i).pop();
1071
1075
  let n = `${(p == null ? void 0 : p.replace(Qn, "_")) || ""}New`;
1072
1076
  return s > -1 && (n += `${s + 1}`), n;
1073
- }, h = (c) => {
1077
+ }, b = (c) => {
1074
1078
  r.bindMethodInfo = c;
1075
1079
  };
1076
- return Ve(() => {
1080
+ return Ne(() => {
1077
1081
  var l, i;
1078
- const c = (l = v.eventBinding) == null ? void 0 : l.eventName, p = (o == null ? void 0 : o().filter((d) => d.includes(c))) || [], x = {
1082
+ const c = (l = f.eventBinding) == null ? void 0 : l.eventName, p = (o == null ? void 0 : o().filter((d) => d.includes(c))) || [], x = {
1079
1083
  title: "添加新方法",
1080
1084
  name: _(p, c),
1081
- type: Ie
1085
+ type: Pe
1082
1086
  };
1083
- (i = v.eventBinding) != null && i.ref ? h({ name: v.eventBinding.ref }) : h(x);
1087
+ (i = f.eventBinding) != null && i.ref ? b({ name: f.eventBinding.ref }) : b(x);
1084
1088
  const n = (o == null ? void 0 : o().filter((d) => d.includes(a.value)).map((d) => ({ name: d }))) || [];
1085
1089
  e.value = [x, ...n];
1086
1090
  }), {
1087
1091
  context: r,
1088
1092
  searchValue: a,
1089
1093
  filteredMethodList: e,
1090
- selectMethod: h
1094
+ selectMethod: b
1091
1095
  };
1092
1096
  }
1093
- }, uo = { class: "dialog-content-left" }, vo = { class: "left-list-wrap" }, fo = { class: "left-action-list" }, go = { class: "action-list-wrap" }, _o = ["onClick"];
1094
- function ho(v, o, a, e, r, _) {
1095
- const h = k("tiny-search");
1096
- return b(), A("div", uo, [
1097
+ }, uo = { class: "dialog-content-left" }, fo = { class: "left-list-wrap" }, vo = { class: "left-action-list" }, go = { class: "action-list-wrap" }, _o = ["onClick"];
1098
+ function bo(f, o, a, e, r, _) {
1099
+ const b = k("tiny-search");
1100
+ return h(), A("div", uo, [
1097
1101
  o[1] || (o[1] = t("div", { class: "left-title" }, "响应方法", -1)),
1098
- t("div", vo, [
1099
- t("div", fo, [
1100
- u(h, {
1102
+ t("div", fo, [
1103
+ t("div", vo, [
1104
+ u(b, {
1101
1105
  modelValue: e.searchValue,
1102
1106
  "onUpdate:modelValue": o[0] || (o[0] = (c) => e.searchValue = c),
1103
1107
  placeholder: "搜索"
1104
1108
  }, null, 8, ["modelValue"]),
1105
1109
  t("ul", go, [
1106
- (b(!0), A(H, null, ne(e.filteredMethodList, (c) => (b(), A("li", {
1110
+ (h(!0), A(W, null, ae(e.filteredMethodList, (c) => (h(), A("li", {
1107
1111
  key: c.name,
1108
1112
  onClick: (p) => e.selectMethod(c)
1109
1113
  }, [
1110
1114
  t("div", {
1111
- class: R(["action-name", { active: c.name === e.context.bindMethodInfo.name }])
1112
- }, M(c.title || c.name), 3)
1115
+ class: X(["action-name", { active: c.name === e.context.bindMethodInfo.name }])
1116
+ }, B(c.title || c.name), 3)
1113
1117
  ], 8, _o))), 128))
1114
1118
  ])
1115
1119
  ])
1116
1120
  ])
1117
1121
  ]);
1118
1122
  }
1119
- const bo = /* @__PURE__ */ J(po, [["render", ho], ["__scopeId", "data-v-0859add1"]]), Bo = {
1120
- ...te,
1123
+ const ho = /* @__PURE__ */ H(po, [["render", bo], ["__scopeId", "data-v-0859add1"]]), Bo = {
1124
+ ...de,
1121
1125
  entry: Wn,
1122
- options: { commonEvents: fn },
1126
+ options: { commonEvents: vn },
1123
1127
  components: {
1124
- BindEventsDialogSidebar: bo,
1128
+ BindEventsDialogSidebar: ho,
1125
1129
  BindEventsDialogContent: mo
1126
1130
  }
1127
1131
  };
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .bind-event-dialog[data-v-6b711ca9]{z-index:99}.bind-event-dialog[data-v-6b711ca9] .tiny-dialog-box{min-width:760px}.bind-event-dialog-tip[data-v-6b711ca9]{padding:var(--te-common-vertical-item-spacing-normal) 14px;margin-bottom:var(--te-common-vertical-item-spacing-normal);background-color:var(--te-bind-event-dialog-tip-bg-color);color:var(--te-bind-event-dialog-tip-text-color)}.bind-event-dialog-content[data-v-6b711ca9]{display:flex;min-width:700px}.add-custom-event-form.add-custom-event-form[data-v-5033228a] .tiny-form-item__label{padding-left:0}.footer[data-v-5033228a]{display:flex;justify-content:flex-end}.custom-event[data-v-3bfab6f4]{padding:10px 20px 10px 10px}.custom-event footer[data-v-3bfab6f4]{text-align:center}.bind-action-list .bind-actions[data-v-3bfab6f4]{margin-top:20px}.bind-action-list .bind-actions .binding-name[data-v-3bfab6f4]{word-break:break-all}.bind-action-list .bind-actions .action-buttons[data-v-3bfab6f4]{display:flex;align-items:center;justify-content:center}.bind-action-list .bind-actions .action-buttons .item[data-v-3bfab6f4]{margin-right:10px}.bind-action-list .bind-actions .event-bind[data-v-3bfab6f4]{color:var(--te-events-event-bind-text-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--te-events-bind-action-item-text-color);border-bottom:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]:first-child{border-top:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]:hover{background:var(--te-events-bind-action-item-bg-color-hover)}.bind-action-list .bind-actions .bind-action-item .linked[data-v-3bfab6f4]{color:var(--te-events-bind-action-item-text-color-link)}.bind-action-list .popover-head[data-v-3bfab6f4]{display:flex;justify-content:space-between;margin-top:12px}.bind-action-list .popover-head .bind-action-button-item[data-v-3bfab6f4]{width:50%}.bind-action-list .popover-head .bind-action-button-item[data-v-3bfab6f4]:not(:last-child){margin-right:12px}.bind-action-list .popover-head .add-custom-event-button[data-v-3bfab6f4]{margin-right:0}.bind-action-list .popover-head .bind-event-btn[data-v-3bfab6f4]{padding:0 16px;width:100%}.bind-action-list .popover-head .bind-event-btn .bind-event-btn-icon[data-v-3bfab6f4]{margin-right:0;margin-left:4px}.bind-action-list .empty-action[data-v-3bfab6f4]{display:flex;flex-direction:column;align-items:center;background-color:var(--te-events-empty-action-bg-color);color:var(--te-events-empty-action-text-color);padding:24px 18px;margin-top:var(--te-common-vertical-item-spacing-normal)}.bind-action-list .empty-action .empty-action-icon[data-v-3bfab6f4]{font-size:48px}.bind-action-list .empty-action .icon[data-v-3bfab6f4]{text-align:center;opacity:.4}.bind-action-list .empty-action .center[data-v-3bfab6f4]{margin-top:4px}.bind-action-list .empty-action .text[data-v-3bfab6f4]{margin-top:12px}.bind-event-list[data-v-3bfab6f4]{color:var(--te-events-bind-event-list-text-color)}.bind-event-list-item-notallow[data-v-3bfab6f4]{cursor:not-allowed;pointer-events:none;color:var(--te-events-bind-event-list-item-text-color-disabled)}.bind-event-list-item[data-v-3bfab6f4]{padding:0 16px;margin:0 -16px;line-height:24px}.bind-event-list-item[data-v-3bfab6f4]:hover{cursor:pointer;background:var(--te-events-bind-event-list-item-bg-color-hover)}.advanced-config-container .advnce-config[data-v-2254f006]{align-items:center;display:flex;column-gap:12px;color:var(--te-events-advanced-config-text-color)}.advanced-config-container .advnce-config[data-v-2254f006]:not(:last-child){margin-bottom:var(--te-common-vertical-item-spacing-normal)}.advanced-config-container .advnce-config label[data-v-2254f006]{width:80px;word-break:keep-all;color:var(--te-events-advanced-label-text-color);flex-shrink:0}.advanced-config-container .advnce-config .advanced-config-form-item[data-v-2254f006]{display:grid;grid-template-columns:1fr auto;flex:1}.advanced-config-container .advnce-config .binding-state[data-v-2254f006]{box-sizing:border-box;background:var(--te-events-advanced-binding-state-bg-color);color:var(--te-events-advanced-binding-state-text-color);border:1px solid var(--te-events-advanced-binding-state-border-color);font-size:12px;height:30px;line-height:22px;padding:4px 8px;--ellipsis-line: 1;border-radius:6px}.advanced-config-container .advnce-config .advance-config-loop-wrap .advance-item[data-v-2254f006]{width:100%}.advanced-config-container .loop-data-item[data-v-2254f006]{display:block}.advanced-config-container .loop-data-item label[data-v-2254f006]{margin-bottom:5px}.content-right[data-v-f2c9b5af]{width:68%}.content-right .content-right-top .new-action-tip[data-v-f2c9b5af]{margin:8px 0;color:var(--te-bind-event-dialog-tip-text-color)}.content-right .content-right-bottom .content-right-monaco[data-v-f2c9b5af]{border:1px solid var(--te-bind-event-dialog-content-right-monaco-border-color);overflow:hidden;position:relative}.content-right .content-right-bottom .content-right-monaco .monaco-editor[data-v-f2c9b5af]{width:100%;height:216px;color:var(--te-bind-event-dialog-content-right-monaco-text-color)}.content-right .content-right-bottom .content-right-monaco .mark[data-v-f2c9b5af]{width:100%;height:216px;position:absolute;z-index:1;top:0}.content-right .content-right-bottom .params-tip[data-v-f2c9b5af]{margin:8px 0;color:var(--te-bind-event-dialog-danger-tip-text-color)}.content-right .content-right-top .content-right-title[data-v-f2c9b5af],.content-right .content-right-bottom .content-right-title[data-v-f2c9b5af]{margin-bottom:var(--te-common-vertical-item-spacing-normal)}.content-right .content-right-top .content-right-title .set-params-tip[data-v-f2c9b5af],.content-right .content-right-bottom .content-right-title .set-params-tip[data-v-f2c9b5af]{margin-top:6px;font-weight:400;color:var(--te-bind-event-dialog-tip-text-color)}.content-right .tip-error .content-right-monaco[data-v-f2c9b5af]{border:1px solid var(--te-bind-event-dialog-danger-border-color)}.content-right .tip-error .params-tip[data-v-f2c9b5af],.content-right .tip-error .new-action-tip[data-v-f2c9b5af]{color:var(--te-bind-event-dialog-danger-tip-text-color)}.dialog-content-left[data-v-0859add1]{margin-right:30px;width:30%;display:flex;flex-direction:column}.dialog-content-left .left-title[data-v-0859add1]{font-weight:400}.dialog-content-left .left-list-wrap[data-v-0859add1]{border:1px solid var(--te-bind-event-dialog-content-left-border-color);border-radius:4px;height:300px;margin-top:var(--te-common-vertical-item-spacing-normal);display:flex;flex:1}.dialog-content-left .left-list-wrap .left-action-list[data-v-0859add1]{flex:1;padding:12px}.dialog-content-left .left-list-wrap .left-action-list .action-list-wrap[data-v-0859add1]{height:250px;margin-top:8px;overflow:auto}.dialog-content-left .left-list-wrap .left-action-list .action-name[data-v-0859add1]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--te-bind-event-dialog-text-color)}.dialog-content-left .left-list-wrap .left-action-list .action-name.active[data-v-0859add1]{background:var(--te-bind-event-dialog-content-left-list-item-bg-color-active)}:root{--te-events-advanced-config-text-color: var(--te-common-text-secondary);--te-events-advanced-label-text-color: var(--te-common-text-secondary);--te-events-advanced-binding-state-bg-color: var(--te-common-bg-info);--te-events-advanced-binding-state-border-color: var(--te-common-border-info);--te-events-advanced-binding-state-text-color: var(--te-common-text-emphasize);--te-bind-event-dialog-text-color: var(--te-common-text-secondary);--te-bind-event-dialog-content-left-border-color: var(--te-common-border-divider);--te-bind-event-dialog-content-right-monaco-text-color: var(--te-common-text-secondary);--te-bind-event-dialog-content-right-monaco-border-color: var(--te-common-border-divider);--te-bind-event-dialog-content-left-list-item-bg-color-active: var(--te-common-bg-container);--te-bind-event-dialog-tip-text-color: var(--te-common-text-weaken);--te-bind-event-dialog-tip-bg-color: var(--te-common-bg-container);--te-bind-event-dialog-danger-tip-text-color: var(--te-common-color-error);--te-bind-event-dialog-danger-border-color: var(--te-common-color-error);--te-events-bind-action-item-border-color: var(--te-common-border-divider);--te-events-event-bind-text-color: var(--te-common-text-weaken);--te-events-bind-action-item-text-color: var(--te-common-text-primary);--te-events-bind-action-item-bg-color-hover: var(--te-common-bg-container);--te-events-bind-action-item-text-color-link: var(--te-common-text-emphasize);--te-events-empty-action-bg-color: var(--te-common-bg-container);--te-events-empty-action-text-color: var(--te-common-text-weaken);--te-events-bind-event-list-text-color: var(--te-common-text-primary);--te-events-bind-event-list-item-text-color-disabled: var(--te-common-text-disabled);--te-events-bind-event-list-item-bg-color-hover: var(--te-common-bg-container)}
1
+ .bind-event-dialog[data-v-db4b4d71]{z-index:99}.bind-event-dialog[data-v-db4b4d71] .tiny-dialog-box{min-width:760px}.bind-event-dialog-tip[data-v-db4b4d71]{padding:var(--te-common-vertical-item-spacing-normal) 14px;margin-bottom:var(--te-common-vertical-item-spacing-normal);background-color:var(--te-bind-event-dialog-tip-bg-color);color:var(--te-bind-event-dialog-tip-text-color)}.bind-event-dialog-content[data-v-db4b4d71]{display:flex;min-width:700px}.add-custom-event-form.add-custom-event-form[data-v-5033228a] .tiny-form-item__label{padding-left:0}.footer[data-v-5033228a]{display:flex;justify-content:flex-end}.custom-event[data-v-3bfab6f4]{padding:10px 20px 10px 10px}.custom-event footer[data-v-3bfab6f4]{text-align:center}.bind-action-list .bind-actions[data-v-3bfab6f4]{margin-top:20px}.bind-action-list .bind-actions .binding-name[data-v-3bfab6f4]{word-break:break-all}.bind-action-list .bind-actions .action-buttons[data-v-3bfab6f4]{display:flex;align-items:center;justify-content:center}.bind-action-list .bind-actions .action-buttons .item[data-v-3bfab6f4]{margin-right:10px}.bind-action-list .bind-actions .event-bind[data-v-3bfab6f4]{color:var(--te-events-event-bind-text-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--te-events-bind-action-item-text-color);border-bottom:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]:first-child{border-top:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-3bfab6f4]:hover{background:var(--te-events-bind-action-item-bg-color-hover)}.bind-action-list .bind-actions .bind-action-item .linked[data-v-3bfab6f4]{color:var(--te-events-bind-action-item-text-color-link)}.bind-action-list .popover-head[data-v-3bfab6f4]{display:flex;justify-content:space-between;margin-top:12px}.bind-action-list .popover-head .bind-action-button-item[data-v-3bfab6f4]{width:50%}.bind-action-list .popover-head .bind-action-button-item[data-v-3bfab6f4]:not(:last-child){margin-right:12px}.bind-action-list .popover-head .add-custom-event-button[data-v-3bfab6f4]{margin-right:0}.bind-action-list .popover-head .bind-event-btn[data-v-3bfab6f4]{padding:0 16px;width:100%}.bind-action-list .popover-head .bind-event-btn .bind-event-btn-icon[data-v-3bfab6f4]{margin-right:0;margin-left:4px}.bind-action-list .empty-action[data-v-3bfab6f4]{display:flex;flex-direction:column;align-items:center;background-color:var(--te-events-empty-action-bg-color);color:var(--te-events-empty-action-text-color);padding:24px 18px;margin-top:var(--te-common-vertical-item-spacing-normal)}.bind-action-list .empty-action .empty-action-icon[data-v-3bfab6f4]{font-size:48px}.bind-action-list .empty-action .icon[data-v-3bfab6f4]{text-align:center;opacity:.4}.bind-action-list .empty-action .center[data-v-3bfab6f4]{margin-top:4px}.bind-action-list .empty-action .text[data-v-3bfab6f4]{margin-top:12px}.bind-event-list[data-v-3bfab6f4]{color:var(--te-events-bind-event-list-text-color)}.bind-event-list-item-notallow[data-v-3bfab6f4]{cursor:not-allowed;pointer-events:none;color:var(--te-events-bind-event-list-item-text-color-disabled)}.bind-event-list-item[data-v-3bfab6f4]{padding:0 16px;margin:0 -16px;line-height:24px}.bind-event-list-item[data-v-3bfab6f4]:hover{cursor:pointer;background:var(--te-events-bind-event-list-item-bg-color-hover)}.advanced-config-container .advnce-config[data-v-2254f006]{align-items:center;display:flex;column-gap:12px;color:var(--te-events-advanced-config-text-color)}.advanced-config-container .advnce-config[data-v-2254f006]:not(:last-child){margin-bottom:var(--te-common-vertical-item-spacing-normal)}.advanced-config-container .advnce-config label[data-v-2254f006]{width:80px;word-break:keep-all;color:var(--te-events-advanced-label-text-color);flex-shrink:0}.advanced-config-container .advnce-config .advanced-config-form-item[data-v-2254f006]{display:grid;grid-template-columns:1fr auto;flex:1}.advanced-config-container .advnce-config .binding-state[data-v-2254f006]{box-sizing:border-box;background:var(--te-events-advanced-binding-state-bg-color);color:var(--te-events-advanced-binding-state-text-color);border:1px solid var(--te-events-advanced-binding-state-border-color);font-size:12px;height:30px;line-height:22px;padding:4px 8px;--ellipsis-line: 1;border-radius:6px}.advanced-config-container .advnce-config .advance-config-loop-wrap .advance-item[data-v-2254f006]{width:100%}.advanced-config-container .loop-data-item[data-v-2254f006]{display:block}.advanced-config-container .loop-data-item label[data-v-2254f006]{margin-bottom:5px}.content-right[data-v-f2c9b5af]{width:68%}.content-right .content-right-top .new-action-tip[data-v-f2c9b5af]{margin:8px 0;color:var(--te-bind-event-dialog-tip-text-color)}.content-right .content-right-bottom .content-right-monaco[data-v-f2c9b5af]{border:1px solid var(--te-bind-event-dialog-content-right-monaco-border-color);overflow:hidden;position:relative}.content-right .content-right-bottom .content-right-monaco .monaco-editor[data-v-f2c9b5af]{width:100%;height:216px;color:var(--te-bind-event-dialog-content-right-monaco-text-color)}.content-right .content-right-bottom .content-right-monaco .mark[data-v-f2c9b5af]{width:100%;height:216px;position:absolute;z-index:1;top:0}.content-right .content-right-bottom .params-tip[data-v-f2c9b5af]{margin:8px 0;color:var(--te-bind-event-dialog-danger-tip-text-color)}.content-right .content-right-top .content-right-title[data-v-f2c9b5af],.content-right .content-right-bottom .content-right-title[data-v-f2c9b5af]{margin-bottom:var(--te-common-vertical-item-spacing-normal)}.content-right .content-right-top .content-right-title .set-params-tip[data-v-f2c9b5af],.content-right .content-right-bottom .content-right-title .set-params-tip[data-v-f2c9b5af]{margin-top:6px;font-weight:400;color:var(--te-bind-event-dialog-tip-text-color)}.content-right .tip-error .content-right-monaco[data-v-f2c9b5af]{border:1px solid var(--te-bind-event-dialog-danger-border-color)}.content-right .tip-error .params-tip[data-v-f2c9b5af],.content-right .tip-error .new-action-tip[data-v-f2c9b5af]{color:var(--te-bind-event-dialog-danger-tip-text-color)}.dialog-content-left[data-v-0859add1]{margin-right:30px;width:30%;display:flex;flex-direction:column}.dialog-content-left .left-title[data-v-0859add1]{font-weight:400}.dialog-content-left .left-list-wrap[data-v-0859add1]{border:1px solid var(--te-bind-event-dialog-content-left-border-color);border-radius:4px;height:300px;margin-top:var(--te-common-vertical-item-spacing-normal);display:flex;flex:1}.dialog-content-left .left-list-wrap .left-action-list[data-v-0859add1]{flex:1;padding:12px}.dialog-content-left .left-list-wrap .left-action-list .action-list-wrap[data-v-0859add1]{height:250px;margin-top:8px;overflow:auto}.dialog-content-left .left-list-wrap .left-action-list .action-name[data-v-0859add1]{display:flex;justify-content:space-between;padding:8px 12px;cursor:pointer;color:var(--te-bind-event-dialog-text-color)}.dialog-content-left .left-list-wrap .left-action-list .action-name.active[data-v-0859add1]{background:var(--te-bind-event-dialog-content-left-list-item-bg-color-active)}:root{--te-events-advanced-config-text-color: var(--te-common-text-secondary);--te-events-advanced-label-text-color: var(--te-common-text-secondary);--te-events-advanced-binding-state-bg-color: var(--te-common-bg-info);--te-events-advanced-binding-state-border-color: var(--te-common-border-info);--te-events-advanced-binding-state-text-color: var(--te-common-text-emphasize);--te-bind-event-dialog-text-color: var(--te-common-text-secondary);--te-bind-event-dialog-content-left-border-color: var(--te-common-border-divider);--te-bind-event-dialog-content-right-monaco-text-color: var(--te-common-text-secondary);--te-bind-event-dialog-content-right-monaco-border-color: var(--te-common-border-divider);--te-bind-event-dialog-content-left-list-item-bg-color-active: var(--te-common-bg-container);--te-bind-event-dialog-tip-text-color: var(--te-common-text-weaken);--te-bind-event-dialog-tip-bg-color: var(--te-common-bg-container);--te-bind-event-dialog-danger-tip-text-color: var(--te-common-color-error);--te-bind-event-dialog-danger-border-color: var(--te-common-color-error);--te-events-bind-action-item-border-color: var(--te-common-border-divider);--te-events-event-bind-text-color: var(--te-common-text-weaken);--te-events-bind-action-item-text-color: var(--te-common-text-primary);--te-events-bind-action-item-bg-color-hover: var(--te-common-bg-container);--te-events-bind-action-item-text-color-link: var(--te-common-text-emphasize);--te-events-empty-action-bg-color: var(--te-common-bg-container);--te-events-empty-action-text-color: var(--te-common-text-weaken);--te-events-bind-event-list-text-color: var(--te-common-text-primary);--te-events-bind-event-list-item-text-color-disabled: var(--te-common-text-disabled);--te-events-bind-event-list-item-bg-color-hover: var(--te-common-bg-container)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-setting-events",
3
- "version": "2.5.0-rc.5",
3
+ "version": "2.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,13 +25,13 @@
25
25
  "license": "MIT",
26
26
  "homepage": "https://opentiny.design/tiny-engine",
27
27
  "dependencies": {
28
- "@opentiny/tiny-engine-common": "2.5.0-rc.5",
29
- "@opentiny/tiny-engine-configurator": "2.5.0-rc.5",
30
- "@opentiny/tiny-engine-meta-register": "2.5.0-rc.5",
31
- "@opentiny/tiny-engine-utils": "2.5.0-rc.5"
28
+ "@opentiny/tiny-engine-common": "2.5.0",
29
+ "@opentiny/tiny-engine-configurator": "2.5.0",
30
+ "@opentiny/tiny-engine-meta-register": "2.5.0",
31
+ "@opentiny/tiny-engine-utils": "2.5.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0-rc.5",
34
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.5.0",
35
35
  "@vitejs/plugin-vue": "^5.1.2",
36
36
  "@vitejs/plugin-vue-jsx": "^4.0.1",
37
37
  "vite": "^5.4.2"
@@ -41,5 +41,5 @@
41
41
  "@opentiny/vue-icon": "^3.20.0",
42
42
  "vue": "^3.4.15"
43
43
  },
44
- "gitHead": "700103ccd438a1973ed2ac85639a13b91d3a9981"
44
+ "gitHead": "db1033835ed51b30398716070cc73e7ac985b3f3"
45
45
  }