@opentiny/tiny-engine-setting-events 2.4.0 → 2.4.1

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,14 +1,14 @@
1
1
  import "./style.css";
2
- import { ref as F, reactive as K, provide as Ce, resolveComponent as k, createBlock as w, openBlock as h, 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 be, computed as $, watchEffect as Ve, watch as he, inject as Ne } from "vue";
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
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, useProperties as T } from "@opentiny/tiny-engine-meta-register";
5
- import qe from "@opentiny/tiny-engine-common/js/i18n";
6
- import { SvgButton as Ge, BlockLinkEvent as Ye, PluginPanel as Ze, VueMonaco as We } from "@opentiny/tiny-engine-common";
7
- import { iconChevronDown as Qe } from "@opentiny/vue-icon";
8
- import { string2Ast as xe, ast2String as en } from "@opentiny/tiny-engine-common/js/ast";
9
- import { CodeConfigurator as nn, InputConfigurator as on, VariableConfigurator as tn, SwitchConfigurator as sn } from "@opentiny/tiny-engine-configurator";
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";
6
+ import { SvgButton as Ye, BlockLinkEvent as Ze, PluginPanel as We, VueMonaco as Qe } from "@opentiny/tiny-engine-common";
7
+ import { iconChevronDown as en } from "@opentiny/vue-icon";
8
+ import { string2Ast as xe, ast2String as nn } from "@opentiny/tiny-engine-common/js/ast";
9
+ import { CodeConfigurator as on, InputConfigurator as tn, VariableConfigurator as sn, SwitchConfigurator as an } from "@opentiny/tiny-engine-configurator";
10
10
  import { PROP_DATA_TYPE as X } from "@opentiny/tiny-engine-common/js/constants";
11
- import { constants as an, utils as ln } from "@opentiny/tiny-engine-utils";
11
+ import { constants as ln, utils as dn } from "@opentiny/tiny-engine-utils";
12
12
  const te = {
13
13
  id: "engine.setting.event",
14
14
  title: "高级",
@@ -17,15 +17,15 @@ const te = {
17
17
  name: "event",
18
18
  icon: "target"
19
19
  }, J = (v, o) => {
20
- const d = v.__vccOpts || v;
20
+ const a = v.__vccOpts || v;
21
21
  for (const [e, r] of o)
22
- d[e] = r;
23
- return d;
24
- }, se = F(!1), dn = () => {
22
+ a[e] = r;
23
+ return a;
24
+ }, se = F(!1), rn = () => {
25
25
  se.value = !0;
26
26
  }, ke = () => {
27
27
  se.value = !1;
28
- }, rn = {
28
+ }, cn = {
29
29
  components: {
30
30
  TinyButton: G,
31
31
  TinyDialogBox: Ae
@@ -38,7 +38,7 @@ const te = {
38
38
  }
39
39
  },
40
40
  setup(v) {
41
- const { BindEventsDialogSidebar: o, BindEventsDialogContent: d } = De(te.id).components, { PLUGIN_NAME: e, activePlugin: r } = ie(), { pageState: _ } = L(), { getMethods: b, saveMethod: c, highlightMethod: p } = Y(Z.Page), s = K({
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({
42
42
  editorContent: "",
43
43
  bindMethodInfo: {},
44
44
  tip: "",
@@ -64,7 +64,7 @@ const te = {
64
64
  type: "JSExpression",
65
65
  value: ""
66
66
  }), P && s.enableExtraParams && (f[m].params = P), f[m].value = `this.${C}`, Xe().addHistory();
67
- }, a = () => {
67
+ }, l = () => {
68
68
  s.tipError = !1, s.tip = "", s.isValidParams = !0;
69
69
  }, i = () => {
70
70
  let g = "";
@@ -75,9 +75,9 @@ const te = {
75
75
  s.isValidParams = !1;
76
76
  }
77
77
  return g;
78
- }, l = (g) => Array.from({ length: g.length }, (m, f) => `args${f}`).join(","), E = () => {
78
+ }, d = (g) => Array.from({ length: g.length }, (m, f) => `args${f}`).join(","), E = () => {
79
79
  var f, C, P, B;
80
- let g = (C = (f = b()) == null ? void 0 : f[s.bindMethodInfo.name]) == null ? void 0 : C.value, m = "{}";
80
+ let g = (C = (f = h()) == null ? void 0 : f[s.bindMethodInfo.name]) == null ? void 0 : C.value, m = "{}";
81
81
  if (g) {
82
82
  let N = {};
83
83
  try {
@@ -85,7 +85,7 @@ const te = {
85
85
  } catch {
86
86
  g = g.replace("function", `function ${s.bindMethodInfo.name}`), N = xe(g);
87
87
  }
88
- (B = (P = N == null ? void 0 : N.program) == null ? void 0 : P.body[0]) != null && B.body && (m = en(N.program.body[0].body));
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));
89
89
  }
90
90
  return m || `{
91
91
  }`;
@@ -99,7 +99,7 @@ const te = {
99
99
  };
100
100
  return {
101
101
  BindEventsDialogSidebar: o,
102
- BindEventsDialogContent: d,
102
+ BindEventsDialogContent: a,
103
103
  state: s,
104
104
  dialogVisible: se,
105
105
  confirm: async () => {
@@ -110,7 +110,7 @@ const te = {
110
110
  let f = g;
111
111
  if (!s.isValidParams)
112
112
  return;
113
- m && (g = m.join(","), f = l(m)), n({ ...s.bindMethodInfo, extra: m });
113
+ m && (g = m.join(","), f = d(m)), n({ ...s.bindMethodInfo, extra: m });
114
114
  const C = E(), { name: P } = s.bindMethodInfo, B = {
115
115
  name: P,
116
116
  content: s.enableExtraParams ? `function ${P}(eventArgs,${f}) ${C}` : `function ${P}(${f}) ${C}`
@@ -118,19 +118,19 @@ const te = {
118
118
  typeof N == "function" && await N(B, s.bindMethodInfo), c == null || c(B), V(), ke();
119
119
  },
120
120
  closeDialog: () => {
121
- a(), ke();
121
+ l(), ke();
122
122
  },
123
123
  openedDialog: () => {
124
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), a();
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();
126
126
  },
127
127
  selectMethod: x
128
128
  };
129
129
  }
130
- }, cn = { class: "bind-event-dialog-content" }, mn = { class: "bind-dialog-footer" };
131
- function pn(v, o, d, e, r, _) {
132
- const b = k("tiny-button"), c = k("tiny-dialog-box");
133
- return h(), w(c, {
130
+ }, 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, {
134
134
  visible: e.dialogVisible,
135
135
  title: "事件绑定",
136
136
  width: "50%",
@@ -141,14 +141,14 @@ function pn(v, o, d, e, r, _) {
141
141
  onOpened: e.openedDialog
142
142
  }, {
143
143
  footer: y(() => [
144
- t("div", mn, [
145
- u(b, { onClick: e.closeDialog }, {
144
+ t("div", pn, [
145
+ u(h, { onClick: e.closeDialog }, {
146
146
  default: y(() => o[0] || (o[0] = [
147
147
  j("取 消")
148
148
  ])),
149
149
  _: 1
150
150
  }, 8, ["onClick"]),
151
- u(b, {
151
+ u(h, {
152
152
  type: "info",
153
153
  onClick: e.confirm
154
154
  }, {
@@ -161,18 +161,18 @@ function pn(v, o, d, e, r, _) {
161
161
  ]),
162
162
  default: y(() => [
163
163
  o[2] || (o[2] = t("div", { class: "bind-event-dialog-tip" }, " 选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。 ", -1)),
164
- t("div", cn, [
165
- (h(), w(ge(e.BindEventsDialogSidebar), {
164
+ t("div", mn, [
165
+ (b(), w(ge(e.BindEventsDialogSidebar), {
166
166
  dialogVisible: e.dialogVisible,
167
- eventBinding: d.eventBinding
167
+ eventBinding: a.eventBinding
168
168
  }, null, 8, ["dialogVisible", "eventBinding"])),
169
- (h(), w(ge(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
169
+ (b(), w(ge(e.BindEventsDialogContent), { dialogVisible: e.dialogVisible }, null, 8, ["dialogVisible"]))
170
170
  ])
171
171
  ]),
172
172
  _: 1
173
173
  }, 8, ["visible", "onClose", "onOpened"]);
174
174
  }
175
- const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9"]]), vn = {
175
+ const vn = /* @__PURE__ */ J(cn, [["render", un], ["__scopeId", "data-v-6b711ca9"]]), fn = {
176
176
  onClick: {
177
177
  label: {
178
178
  zh_CN: "点击事件"
@@ -229,7 +229,7 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
229
229
  },
230
230
  defaultValue: ""
231
231
  }
232
- }, fn = [
232
+ }, gn = [
233
233
  "onabort",
234
234
  "onafterprint",
235
235
  "onanimationend",
@@ -339,10 +339,10 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
339
339
  "onwebkitanimationstart",
340
340
  "onwebkittransitionend",
341
341
  "onwheel"
342
- ], gn = (v) => !!fn.map((d) => {
343
- const e = d[2].toUpperCase();
344
- return `${d.substring(0, 2)}${e}${d.substring(3)}`;
345
- }).includes(v), _n = { class: "footer" }, bn = {
342
+ ], _n = (v) => !!gn.map((a) => {
343
+ const e = a[2].toUpperCase();
344
+ return `${a.substring(0, 2)}${e}${a.substring(3)}`;
345
+ }).includes(v), hn = { class: "footer" }, bn = {
346
346
  __name: "AddEventsDialog",
347
347
  props: {
348
348
  visible: {
@@ -356,7 +356,7 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
356
356
  },
357
357
  emits: ["closeDialog", "addEvent"],
358
358
  setup(v, { emit: o }) {
359
- const d = v, e = o, r = K({
359
+ const a = v, e = o, r = K({
360
360
  eventDescription: "",
361
361
  eventName: ""
362
362
  }), _ = F(null), c = {
@@ -369,16 +369,16 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
369
369
  eventName: [
370
370
  { required: !0, message: "必填" },
371
371
  {
372
- validator: (x, n, a) => {
373
- if (d.componentEvents[r.eventName]) {
374
- a(new Error("事件名已存在"));
372
+ validator: (x, n, l) => {
373
+ if (a.componentEvents[r.eventName]) {
374
+ l(new Error("事件名已存在"));
375
375
  return;
376
376
  }
377
- if (!gn(r.eventName)) {
378
- a(new Error("请输入正确的浏览器事件名"));
377
+ if (!_n(r.eventName)) {
378
+ l(new Error("请输入正确的浏览器事件名"));
379
379
  return;
380
380
  }
381
- a();
381
+ l();
382
382
  }
383
383
  }
384
384
  ]
@@ -388,11 +388,11 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
388
388
  _.value && _.value.validate((x) => {
389
389
  if (!x)
390
390
  return;
391
- const { eventName: n, eventDescription: a } = r;
392
- e("addEvent", { eventName: n, eventDescription: a });
391
+ const { eventName: n, eventDescription: l } = r;
392
+ e("addEvent", { eventName: n, eventDescription: l });
393
393
  });
394
394
  };
395
- return (x, n) => (h(), w(D(Ae), {
395
+ return (x, n) => (b(), w(D(Ae), {
396
396
  visible: v.visible,
397
397
  title: "添加新事件",
398
398
  width: "400px",
@@ -401,7 +401,7 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
401
401
  onClose: p
402
402
  }, {
403
403
  footer: y(() => [
404
- t("div", _n, [
404
+ t("div", hn, [
405
405
  u(D(G), { onClick: p }, {
406
406
  default: y(() => n[2] || (n[2] = [
407
407
  j(" 取消")
@@ -440,7 +440,7 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
440
440
  default: y(() => [
441
441
  u(D(oe), {
442
442
  modelValue: r.eventName,
443
- "onUpdate:modelValue": n[0] || (n[0] = (a) => r.eventName = a),
443
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => r.eventName = l),
444
444
  placeholder: "小驼峰格式,如:onDrag"
445
445
  }, null, 8, ["modelValue"])
446
446
  ]),
@@ -454,7 +454,7 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
454
454
  default: y(() => [
455
455
  u(D(oe), {
456
456
  modelValue: r.eventDescription,
457
- "onUpdate:modelValue": n[1] || (n[1] = (a) => r.eventDescription = a)
457
+ "onUpdate:modelValue": n[1] || (n[1] = (l) => r.eventDescription = l)
458
458
  }, null, 8, ["modelValue"])
459
459
  ]),
460
460
  _: 1
@@ -466,19 +466,19 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
466
466
  _: 1
467
467
  }, 8, ["visible"]));
468
468
  }
469
- }, hn = /* @__PURE__ */ J(bn, [["__scopeId", "data-v-5033228a"]]), En = {
469
+ }, En = /* @__PURE__ */ J(bn, [["__scopeId", "data-v-5033228a"]]), yn = {
470
470
  components: {
471
- BlockLinkEvent: Ye,
472
- BindEventsDialog: un,
471
+ BlockLinkEvent: Ze,
472
+ BindEventsDialog: vn,
473
473
  TinyPopover: Ue,
474
474
  TinyButton: G,
475
- IconChevronDown: Qe(),
476
- SvgButton: Ge,
477
- AddEventsDialog: hn
475
+ IconChevronDown: en(),
476
+ SvgButton: Ye,
477
+ AddEventsDialog: En
478
478
  },
479
479
  inheritAttrs: !1,
480
480
  setup() {
481
- const { PLUGIN_NAME: v, activePlugin: o } = ie(), { pageState: d } = L(), { getBlockEvents: e, getCurrentBlock: r, removeEventLink: _ } = $e(), { getMaterial: b } = Ke(), { confirm: c } = He(), p = qe.global.locale.value, { highlightMethod: s } = Y(Z.Page), { commonEvents: x = {} } = De("engine.setting.event").options, n = K({
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({
482
482
  eventName: "",
483
483
  // 事件名称
484
484
  eventBinding: null,
@@ -487,13 +487,13 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
487
487
  customEvents: x,
488
488
  bindActions: {},
489
489
  showBindEventDialog: !1
490
- }), a = $(() => !!d.isBlock), i = $(() => Object.keys(n.bindActions).length === 0), l = $(() => ({ ...n.componentEvent, ...n.customEvents }));
490
+ }), l = $(() => !!a.isBlock), i = $(() => Object.keys(n.bindActions).length === 0), d = $(() => ({ ...n.componentEvent, ...n.customEvents }));
491
491
  Ve(() => {
492
492
  var B, N, Q, ae, le;
493
- const m = (B = d == null ? void 0 : d.currentSchema) == null ? void 0 : B.componentName, f = b(m);
493
+ const m = (B = a == null ? void 0 : a.currentSchema) == null ? void 0 : B.componentName, f = h(m);
494
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 = d == null ? void 0 : d.currentSchema) == null ? void 0 : le.props) || {}, P = Object.keys(C);
496
- n.bindActions = {}, Object.entries(l.value).forEach(([z, Be]) => {
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
497
  var de, re, ce;
498
498
  if (P.indexOf(z) > -1) {
499
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 = {
@@ -502,9 +502,9 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
502
502
  event: C[z],
503
503
  params: Le
504
504
  };
505
- if (O.event.type === "JSExpression" && (O.ref = O.event.value.replace("this.", "").replace(/\(.*\)$/, "")), d.isBlock) {
505
+ if (O.event.type === "JSExpression" && (O.ref = O.event.value.replace("this.", "").replace(/\(.*\)$/, "")), a.isBlock) {
506
506
  O.metaEvent = Be;
507
- const pe = e(r()), ue = (ce = d == null ? void 0 : d.currentSchema) == null ? void 0 : ce.id;
507
+ const pe = e(r()), ue = (ce = a == null ? void 0 : a.currentSchema) == null ? void 0 : ce.id;
508
508
  ue && pe && Object.entries(pe).forEach(([Oe, S]) => {
509
509
  var ve, fe;
510
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);
@@ -515,21 +515,21 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
515
515
  });
516
516
  });
517
517
  const E = (m, f) => {
518
- f && n.bindActions[m.eventName] || (n.eventBinding = m, dn());
518
+ f && n.bindActions[m.eventName] || (n.eventBinding = m, rn());
519
519
  }, V = (m) => {
520
520
  var C;
521
- Object.keys(((C = d == null ? void 0 : d.currentSchema) == null ? void 0 : C.props) || {}).indexOf(m.eventName) > -1 && delete d.currentSchema.props[m.eventName];
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 } }));
522
522
  };
523
523
  return {
524
524
  state: n,
525
- isBlock: a,
525
+ isBlock: l,
526
526
  isEmpty: i,
527
527
  delEvent: (m) => {
528
528
  c({
529
529
  title: "提示",
530
530
  message: `您确定要删除事件 ${m.eventName} 吗?`,
531
531
  exec() {
532
- d.isBlock && _({ linked: m.linked }), V(m);
532
+ a.isBlock && _({ linked: m.linked }), V(m);
533
533
  }
534
534
  });
535
535
  },
@@ -561,16 +561,16 @@ const un = /* @__PURE__ */ J(rn, [["render", pn], ["__scopeId", "data-v-6b711ca9
561
561
  handleToggleAddEventDialog: (m) => {
562
562
  n.showBindEventDialog = m;
563
563
  },
564
- renderEventList: l,
564
+ renderEventList: d,
565
565
  locale: p
566
566
  };
567
567
  }
568
- }, yn = { class: "bind-action-list" }, xn = { class: "popover-head" }, kn = { class: "bind-event-list" }, Cn = ["onClick"], Vn = { class: "bind-actions" }, Nn = { class: "action-item bind-action-item" }, An = ["onClick"], Dn = { class: "event-bind" }, In = { class: "action-buttons" }, Pn = { class: "empty-action" }, Bn = { class: "icon" };
569
- function Mn(v, o, d, e, r, _) {
570
- 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"), a = k("bind-events-dialog"), i = k("add-events-dialog");
571
- return h(), A(H, null, [
572
- t("div", yn, [
573
- t("div", xn, [
568
+ }, 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, [
572
+ t("div", xn, [
573
+ t("div", kn, [
574
574
  u(p, {
575
575
  popperClass: "option-popper setting-advanced-bind-event-list",
576
576
  placement: "bottom-start",
@@ -583,22 +583,22 @@ function Mn(v, o, d, e, r, _) {
583
583
  u(c, { class: "bind-event-btn" }, {
584
584
  default: y(() => [
585
585
  o[2] || (o[2] = t("span", null, "绑定事件", -1)),
586
- u(b, { class: "icon-chevron-down bind-event-btn-icon" })
586
+ u(h, { class: "icon-chevron-down bind-event-btn-icon" })
587
587
  ]),
588
588
  _: 1
589
589
  })
590
590
  ]),
591
591
  default: y(() => [
592
- t("ul", kn, [
593
- (h(!0), A(H, null, ne(e.renderEventList, (l, E) => {
592
+ t("ul", Cn, [
593
+ (b(!0), A(H, null, ne(e.renderEventList, (d, E) => {
594
594
  var V;
595
- return h(), A("li", {
595
+ return b(), A("li", {
596
596
  key: E,
597
597
  class: R(["bind-event-list-item", { "bind-event-list-item-notallow": e.state.bindActions[E] }]),
598
598
  onClick: (I) => e.openActionDialog({ eventName: E }, !0)
599
599
  }, [
600
- t("div", null, M(E) + "  |  " + M(((V = l == null ? void 0 : l.label) == null ? void 0 : V[e.locale]) || E), 1)
601
- ], 10, Cn);
600
+ t("div", null, M(E) + "  |  " + M(((V = d == null ? void 0 : d.label) == null ? void 0 : V[e.locale]) || E), 1)
601
+ ], 10, Vn);
602
602
  }), 128))
603
603
  ])
604
604
  ]),
@@ -606,7 +606,7 @@ function Mn(v, o, d, e, r, _) {
606
606
  }),
607
607
  u(c, {
608
608
  class: "title add-custom-event-button bind-action-button-item",
609
- onClick: o[0] || (o[0] = (l) => e.handleToggleAddEventDialog(!0))
609
+ onClick: o[0] || (o[0] = (d) => e.handleToggleAddEventDialog(!0))
610
610
  }, {
611
611
  default: y(() => [
612
612
  u(s, {
@@ -618,57 +618,57 @@ function Mn(v, o, d, e, r, _) {
618
618
  _: 1
619
619
  })
620
620
  ]),
621
- _e(t("ul", Vn, [
622
- (h(!0), A(H, null, ne(e.state.bindActions, (l) => {
621
+ _e(t("ul", Nn, [
622
+ (b(!0), A(H, null, ne(e.state.bindActions, (d) => {
623
623
  var E, V;
624
- return h(), A("li", {
625
- key: l.eventName
624
+ return b(), A("li", {
625
+ key: d.eventName
626
626
  }, [
627
- t("div", Nn, [
627
+ t("div", An, [
628
628
  t("div", {
629
629
  class: "binding-name",
630
- onClick: (I) => e.openActionDialog(l)
630
+ onClick: (I) => e.openActionDialog(d)
631
631
  }, [
632
632
  t("div", null, [
633
- j(M(l.eventName), 1),
634
- t("span", null, M((V = (E = e.renderEventList[l.eventName]) == null ? void 0 : E.label) == null ? void 0 : V[e.locale]), 1)
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)
635
635
  ]),
636
636
  t("div", {
637
- class: R({ linked: l.linked })
638
- }, M(l.linkedEventName), 3),
639
- t("span", Dn, M(l.ref), 1)
640
- ], 8, An),
641
- t("div", In, [
642
- e.isBlock ? (h(), w(x, {
637
+ class: R({ linked: d.linked })
638
+ }, M(d.linkedEventName), 3),
639
+ t("span", In, M(d.ref), 1)
640
+ ], 8, Dn),
641
+ t("div", Pn, [
642
+ e.isBlock ? (b(), w(x, {
643
643
  key: 0,
644
- data: l
644
+ data: d
645
645
  }, null, 8, ["data"])) : q("", !0),
646
646
  u(n, {
647
647
  name: "plugin-icon-page-schema",
648
648
  tips: "定位到代码",
649
649
  placement: "top",
650
650
  hoverBgColor: !1,
651
- onClick: (I) => e.openCodePanel(l)
651
+ onClick: (I) => e.openCodePanel(d)
652
652
  }, null, 8, ["onClick"]),
653
653
  u(n, {
654
654
  name: "setting",
655
655
  hoverBgColor: !1,
656
- onClick: (I) => e.openActionDialog(l, !1)
656
+ onClick: (I) => e.openActionDialog(d, !1)
657
657
  }, null, 8, ["onClick"]),
658
658
  u(n, {
659
659
  name: "delete",
660
660
  hoverBgColor: !1,
661
- onClick: (I) => e.delEvent(l)
661
+ onClick: (I) => e.delEvent(d)
662
662
  }, null, 8, ["onClick"])
663
663
  ])
664
664
  ])
665
665
  ]);
666
666
  }), 128))
667
667
  ], 512), [
668
- [be, !e.isEmpty]
668
+ [he, !e.isEmpty]
669
669
  ]),
670
- _e(t("div", Pn, [
671
- t("div", Bn, [
670
+ _e(t("div", Bn, [
671
+ t("div", Mn, [
672
672
  u(s, {
673
673
  name: "empty-action",
674
674
  class: "empty-action-icon"
@@ -676,36 +676,36 @@ function Mn(v, o, d, e, r, _) {
676
676
  ]),
677
677
  o[4] || (o[4] = t("div", { class: "center" }, "支持添加原生DOM事件,然后点击 绑定事件 为画布所选元素增加事件", -1))
678
678
  ], 512), [
679
- [be, e.isEmpty]
679
+ [he, e.isEmpty]
680
680
  ])
681
681
  ]),
682
- u(a, {
682
+ u(l, {
683
683
  eventBinding: e.state.eventBinding
684
684
  }, null, 8, ["eventBinding"]),
685
685
  u(i, {
686
686
  visible: e.state.showBindEventDialog,
687
687
  componentEvents: e.renderEventList,
688
- onCloseDialog: o[1] || (o[1] = (l) => e.handleToggleAddEventDialog(!1)),
688
+ onCloseDialog: o[1] || (o[1] = (d) => e.handleToggleAddEventDialog(!1)),
689
689
  onAddEvent: e.handleAddEvent
690
690
  }, null, 8, ["visible", "componentEvents", "onAddEvent"])
691
691
  ], 64);
692
692
  }
693
- const wn = /* @__PURE__ */ J(En, [["render", Mn], ["__scopeId", "data-v-6bf20fbd"]]), { DEFAULT_LOOP_NAME: U } = an, { string2Obj: Ln } = ln, On = {
693
+ const Ln = /* @__PURE__ */ J(yn, [["render", wn], ["__scopeId", "data-v-3bfab6f4"]]), { DEFAULT_LOOP_NAME: U } = ln, { string2Obj: On } = dn, Sn = {
694
694
  components: {
695
- SwitchConfigurator: sn,
695
+ SwitchConfigurator: an,
696
696
  TinyTooltip: je,
697
- VariableConfigurator: tn,
698
- InputConfigurator: on,
699
- CodeConfigurator: nn
697
+ VariableConfigurator: sn,
698
+ InputConfigurator: tn,
699
+ CodeConfigurator: on
700
700
  },
701
701
  inheritAttrs: !1,
702
702
  setup() {
703
- const { pageState: v } = L(), o = F(!1), d = $(() => {
703
+ const { pageState: v } = L(), o = F(!1), a = $(() => {
704
704
  var n;
705
705
  return ((n = o.value) == null ? void 0 : n.type) === X.JSEXPRESSION;
706
706
  }), e = () => {
707
- var n, a;
708
- return ((a = (n = T().getSchema()) == null ? void 0 : n.loopArgs) == null ? void 0 : a[1]) || U.INDEX;
707
+ var n, l;
708
+ return ((l = (n = T().getSchema()) == null ? void 0 : n.loopArgs) == null ? void 0 : l[1]) || U.INDEX;
709
709
  }, r = K({
710
710
  loopData: {
711
711
  type: X.JSEXPRESSION,
@@ -720,21 +720,21 @@ const wn = /* @__PURE__ */ J(En, [["render", Mn], ["__scopeId", "data-v-6bf20fbd
720
720
  loopKey: "",
721
721
  shouldUpdate: !1
722
722
  });
723
- he(
723
+ be(
724
724
  () => [v == null ? void 0 : v.currentSchema, r.shouldUpdate],
725
725
  ([n]) => {
726
- var a, i, l, 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 = ((a = n == null ? void 0 : n.loopArgs) == null ? void 0 : a[0]) || "", r.loopIndex = ((i = n == null ? void 0 : n.loopArgs) == null ? void 0 : i[1]) || "", r.loopKey = ((E = (l = n == null ? void 0 : n.props) == null ? void 0 : l.key) == null ? void 0 : E.value) || "";
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) || "";
728
728
  }
729
729
  );
730
730
  const _ = (n = "") => {
731
731
  var I;
732
732
  n = n.replace(/\s*/g, "");
733
- const { getSchema: a, setProp: i } = T(), l = a();
734
- if (!l)
733
+ const { getSchema: l, setProp: i } = T(), d = l();
734
+ if (!d)
735
735
  return;
736
736
  const E = Number(n).toString() !== "NaN";
737
- let V = (I = l.props) == null ? void 0 : I.key;
737
+ let V = (I = d.props) == null ? void 0 : I.key;
738
738
  n && !E && (V = {
739
739
  type: X.JSEXPRESSION,
740
740
  value: n
@@ -743,73 +743,73 @@ const wn = /* @__PURE__ */ J(En, [["render", Mn], ["__scopeId", "data-v-6bf20fbd
743
743
  value: e()
744
744
  } : V = ""), i("key", V);
745
745
  };
746
- he([() => r.isLoop, () => r.loopIndex], () => {
746
+ be([() => r.isLoop, () => r.loopIndex], () => {
747
747
  !r.loopKey && r.isLoop && _(e()), r.isLoop || _("");
748
748
  });
749
- const b = () => {
749
+ const h = () => {
750
750
  var n;
751
751
  r.loopData = (n = T().getSchema()) == null ? void 0 : n.loop;
752
752
  }, c = (n) => {
753
- const { getSchema: a } = T(), i = a();
753
+ const { getSchema: l } = T(), i = l();
754
754
  if (!i)
755
755
  return;
756
- const { operateNode: l } = L();
756
+ const { operateNode: d } = L();
757
757
  if (n === !1 || n != null && n.type)
758
- l({ type: "updateAttributes", id: i.id, value: { condition: n } });
758
+ d({ type: "updateAttributes", id: i.id, value: { condition: n } });
759
759
  else {
760
760
  const { condition: E, children: V, ...I } = i;
761
- l({ type: "updateAttributes", id: i.id, value: { ...I }, overwrite: !0 });
761
+ d({ type: "updateAttributes", id: i.id, value: { ...I }, overwrite: !0 });
762
762
  }
763
763
  L().canvasApi.value.updateRect(), o.value = n;
764
764
  }, p = (n) => {
765
- const a = T().getSchema();
766
- let i = a.loopArgs;
767
- const { operateNode: l } = L();
768
- i ? i[1] = n || U.INDEX : i = [U.ITEM, n], l({ type: "updateAttributes", id: a.id, value: { loopArgs: i } });
765
+ const l = T().getSchema();
766
+ 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 } });
769
769
  };
770
770
  return {
771
771
  condition: o,
772
772
  setConfig: c,
773
- isBind: d,
773
+ isBind: a,
774
774
  state: r,
775
775
  setLoop: (n) => {
776
- const { operateNode: a } = L(), { getSchema: i } = T(), l = i();
776
+ const { operateNode: l } = L(), { getSchema: i } = T(), d = i();
777
777
  if (n) {
778
- const E = n != null && n.type ? n : Ln(n);
779
- a({ type: "updateAttributes", id: l.id, value: { loop: E } }), p(U.INDEX);
778
+ const E = n != null && n.type ? n : On(n);
779
+ l({ type: "updateAttributes", id: d.id, value: { loop: E } }), p(U.INDEX);
780
780
  } else {
781
781
  _();
782
- const { loop: E, loopArgs: V, children: I, ...W } = l;
783
- a({ type: "updateAttributes", id: l.id, value: W, overwrite: !0 });
782
+ const { loop: E, loopArgs: V, children: I, ...W } = d;
783
+ l({ type: "updateAttributes", id: d.id, value: W, overwrite: !0 });
784
784
  }
785
785
  r.shouldUpdate = !r.shouldUpdate;
786
786
  },
787
787
  setLoopItem: (n) => {
788
- const a = T().getSchema();
789
- let i = a.loopArgs;
790
- const { operateNode: l } = L();
791
- i ? i[0] = n || U.ITEM : i = [n, U.INDEX], l({ type: "updateAttributes", id: a.id, value: { loopArgs: i } });
788
+ const l = T().getSchema();
789
+ 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 } });
792
792
  },
793
793
  DEFAULT_LOOP_NAME: U,
794
- openEditor: b,
794
+ openEditor: h,
795
795
  setLoopIndex: p,
796
796
  setLoopKey: _,
797
797
  getIndexName: e
798
798
  };
799
799
  }
800
- }, Sn = { class: "advanced-config-container" }, Tn = { class: "advnce-config" }, Un = { class: "advanced-config-form-item" }, jn = ["title"], zn = { class: "advnce-config loop-data-item" }, Rn = { class: "advanced-config-form-item" }, Fn = ["title"], Jn = { class: "advnce-config" }, Xn = { class: "advanced-config-form-item" }, $n = { class: "advnce-config" }, Kn = { class: "advanced-config-form-item" }, Hn = { class: "advnce-config" }, qn = { class: "advanced-config-form-item" };
801
- function Gn(v, o, d, e, r, _) {
802
- var n, a;
803
- const b = k("switch-configurator"), c = k("variable-configurator"), p = k("code-configurator"), s = k("input-configurator"), x = k("tiny-tooltip");
804
- return h(), A("div", Sn, [
805
- t("div", Tn, [
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, _) {
802
+ 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, [
805
+ t("div", Un, [
806
806
  o[6] || (o[6] = t("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
807
- t("div", Un, [
808
- e.isBind ? (h(), A("div", {
807
+ t("div", jn, [
808
+ e.isBind ? (b(), A("div", {
809
809
  key: 1,
810
810
  class: "binding-state text-ellipsis-multiple",
811
811
  title: e.condition.value
812
- }, " 已绑定:" + M(e.condition.value), 9, jn)) : (h(), w(b, {
812
+ }, " 已绑定:" + M(e.condition.value), 9, zn)) : (b(), w(h, {
813
813
  key: 0,
814
814
  modelValue: e.condition,
815
815
  "onUpdate:modelValue": e.setConfig
@@ -824,14 +824,14 @@ function Gn(v, o, d, e, r, _) {
824
824
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
825
825
  ])
826
826
  ]),
827
- t("div", zn, [
827
+ t("div", Rn, [
828
828
  o[7] || (o[7] = t("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
829
- t("div", Rn, [
830
- e.state.isLoop ? (h(), A("div", {
829
+ t("div", Fn, [
830
+ e.state.isLoop ? (b(), A("div", {
831
831
  key: 1,
832
832
  class: "binding-state text-ellipsis-multiple",
833
833
  title: (n = e.state.loopData) == null ? void 0 : n.value
834
- }, " 已绑定:" + M((a = e.state.loopData) == null ? void 0 : a.value), 9, Fn)) : (h(), w(p, {
834
+ }, " 已绑定:" + M((l = e.state.loopData) == null ? void 0 : l.value), 9, Jn)) : (b(), w(p, {
835
835
  key: 0,
836
836
  modelValue: e.state.loopData,
837
837
  "onUpdate:modelValue": [
@@ -851,9 +851,9 @@ function Gn(v, o, d, e, r, _) {
851
851
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
852
852
  ])
853
853
  ]),
854
- t("div", Jn, [
854
+ t("div", Xn, [
855
855
  o[8] || (o[8] = t("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
856
- t("div", Xn, [
856
+ t("div", $n, [
857
857
  u(s, {
858
858
  modelValue: e.state.loopItem,
859
859
  "onUpdate:modelValue": [
@@ -864,9 +864,9 @@ function Gn(v, o, d, e, r, _) {
864
864
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
865
865
  ])
866
866
  ]),
867
- t("div", $n, [
867
+ t("div", Kn, [
868
868
  o[9] || (o[9] = t("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)),
869
- t("div", Kn, [
869
+ t("div", Hn, [
870
870
  u(s, {
871
871
  modelValue: e.state.loopIndex,
872
872
  "onUpdate:modelValue": [
@@ -877,9 +877,9 @@ function Gn(v, o, d, e, r, _) {
877
877
  }, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
878
878
  ])
879
879
  ]),
880
- t("div", Hn, [
880
+ t("div", qn, [
881
881
  o[10] || (o[10] = t("label", { class: "text-ellipsis-multiple" }, "key", -1)),
882
- t("div", qn, [
882
+ t("div", Gn, [
883
883
  u(x, {
884
884
  content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
885
885
  effect: "light"
@@ -900,27 +900,27 @@ function Gn(v, o, d, e, r, _) {
900
900
  ])
901
901
  ]);
902
902
  }
903
- const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006"]]), Zn = {
903
+ const Zn = /* @__PURE__ */ J(Sn, [["render", Yn], ["__scopeId", "data-v-2254f006"]]), Wn = {
904
904
  __name: "Main",
905
905
  props: {
906
906
  fixedPanels: Array
907
907
  },
908
908
  emits: [],
909
909
  setup(v, { emit: o }) {
910
- const d = F(["bindEvent", "advancedConfig"]), { PLUGIN_NAME: e } = ie(), _ = K({
910
+ const a = F(["bindEvent", "advancedConfig"]), { PLUGIN_NAME: e } = ie(), _ = K({
911
911
  emitEvent: o
912
912
  });
913
- return Ce("panelState", _), (b, c) => (h(), w(D(Ze), {
913
+ return Ce("panelState", _), (h, c) => (b(), w(D(We), {
914
914
  title: "高级",
915
915
  "fixed-panels": v.fixedPanels,
916
916
  "fixed-name": D(e).Event,
917
917
  "header-margin-bottom": 0,
918
- onClose: c[1] || (c[1] = (p) => b.$emit("close"))
918
+ onClose: c[1] || (c[1] = (p) => h.$emit("close"))
919
919
  }, {
920
920
  content: y(() => [
921
921
  u(D(ze), {
922
- modelValue: d.value,
923
- "onUpdate:modelValue": c[0] || (c[0] = (p) => d.value = p)
922
+ modelValue: a.value,
923
+ "onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p)
924
924
  }, {
925
925
  default: y(() => [
926
926
  u(D(ye), {
@@ -928,7 +928,7 @@ const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006
928
928
  name: "bindEvent"
929
929
  }, {
930
930
  default: y(() => [
931
- u(wn)
931
+ u(Ln)
932
932
  ]),
933
933
  _: 1
934
934
  }),
@@ -937,7 +937,7 @@ const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006
937
937
  name: "advancedConfig"
938
938
  }, {
939
939
  default: y(() => [
940
- u(Yn)
940
+ u(Zn)
941
941
  ]),
942
942
  _: 1
943
943
  })
@@ -948,13 +948,13 @@ const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006
948
948
  _: 1
949
949
  }, 8, ["fixed-panels", "fixed-name"]));
950
950
  }
951
- }, Ie = "newMethod", Wn = /[^0-9a-zA-Z_$]/, Qn = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, ee = {
951
+ }, Ie = "newMethod", Qn = /[^0-9a-zA-Z_$]/, eo = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, ee = {
952
952
  exist: "方法名称已存在",
953
953
  ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
954
954
  empty: "方法名称不能为空"
955
- }, eo = {
955
+ }, no = {
956
956
  components: {
957
- MonacoEditor: We,
957
+ MonacoEditor: Qe,
958
958
  TinyInput: oe,
959
959
  TinyCheckbox: Re
960
960
  },
@@ -962,7 +962,7 @@ const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006
962
962
  dialogVisible: Boolean
963
963
  },
964
964
  setup() {
965
- const { getMethodNameList: v } = Y(Z.Page), o = Ne("context"), d = {
965
+ const { getMethodNameList: v } = Y(Z.Page), o = Ne("context"), a = {
966
966
  language: "json",
967
967
  lineNumbers: !1,
968
968
  minimap: {
@@ -970,16 +970,16 @@ const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006
970
970
  }
971
971
  }, e = (p) => {
972
972
  o.editorContent = p;
973
- }, r = (p) => !p, _ = (p) => v == null ? void 0 : v().includes(p), b = (p) => !Qn.test(p);
973
+ }, r = (p) => !p, _ = (p) => v == null ? void 0 : v().includes(p), h = (p) => !eo.test(p);
974
974
  return {
975
975
  NEW_METHOD_TYPE: Ie,
976
976
  context: o,
977
- editorOptions: d,
977
+ editorOptions: a,
978
978
  change: (p) => {
979
979
  const s = [
980
980
  { validator: r, tip: ee.empty },
981
981
  { validator: _, tip: ee.exist },
982
- { validator: b, tip: ee.ruleInvalid }
982
+ { validator: h, tip: ee.ruleInvalid }
983
983
  ];
984
984
  for (let x = 0; x < s.length; x++) {
985
985
  const n = s[x];
@@ -993,21 +993,21 @@ const Yn = /* @__PURE__ */ J(On, [["render", Gn], ["__scopeId", "data-v-2254f006
993
993
  editorContentChange: e
994
994
  };
995
995
  }
996
- }, no = { class: "content-right" }, oo = { class: "new-action-tip" }, to = { class: "content-right-title" }, io = { class: "set-params-tip" }, so = { class: "content-right-monaco" }, ao = {
996
+ }, oo = { class: "content-right" }, to = { class: "new-action-tip" }, io = { class: "content-right-title" }, so = { class: "set-params-tip" }, ao = { class: "content-right-monaco" }, lo = {
997
997
  key: 1,
998
998
  class: "mark"
999
- }, lo = {
999
+ }, ro = {
1000
1000
  key: 0,
1001
1001
  class: "params-tip"
1002
1002
  };
1003
- function ro(v, o, d, e, r, _) {
1004
- const b = k("tiny-input"), c = k("tiny-checkbox"), p = k("monaco-editor");
1005
- return h(), A("div", no, [
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, [
1006
1006
  t("div", {
1007
1007
  class: R(["content-right-top", { "tip-error": e.context.tipError }])
1008
1008
  }, [
1009
1009
  o[2] || (o[2] = t("div", { class: "content-right-title" }, "方法名称", -1)),
1010
- u(b, {
1010
+ u(h, {
1011
1011
  modelValue: e.context.bindMethodInfo.name,
1012
1012
  "onUpdate:modelValue": [
1013
1013
  o[0] || (o[0] = (s) => e.context.bindMethodInfo.name = s),
@@ -1017,12 +1017,12 @@ function ro(v, o, d, e, r, _) {
1017
1017
  class: R([{ "status-error": e.context.tipError }]),
1018
1018
  placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
1019
1019
  }, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
1020
- t("div", oo, M(e.context.tip), 1)
1020
+ t("div", to, M(e.context.tip), 1)
1021
1021
  ], 2),
1022
1022
  t("div", {
1023
1023
  class: R(["content-right-bottom", { "tip-error": !e.context.isValidParams }])
1024
1024
  }, [
1025
- t("div", to, [
1025
+ t("div", io, [
1026
1026
  u(c, {
1027
1027
  modelValue: e.context.enableExtraParams,
1028
1028
  "onUpdate:modelValue": o[1] || (o[1] = (s) => e.context.enableExtraParams = s),
@@ -1033,26 +1033,26 @@ function ro(v, o, d, e, r, _) {
1033
1033
  ])),
1034
1034
  _: 1
1035
1035
  }, 8, ["modelValue"]),
1036
- t("div", io, [
1036
+ t("div", so, [
1037
1037
  o[4] || (o[4] = t("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
1038
1038
  j(" 如: " + M(e.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
1039
1039
  ])
1040
1040
  ]),
1041
- t("div", so, [
1042
- d.dialogVisible ? (h(), w(p, {
1041
+ t("div", ao, [
1042
+ a.dialogVisible ? (b(), w(p, {
1043
1043
  key: 0,
1044
1044
  value: e.context.editorContent,
1045
1045
  options: e.editorOptions,
1046
1046
  onChange: e.editorContentChange,
1047
1047
  class: "monaco-editor"
1048
1048
  }, null, 8, ["value", "options", "onChange"])) : q("", !0),
1049
- e.context.enableExtraParams ? q("", !0) : (h(), A("div", ao))
1049
+ e.context.enableExtraParams ? q("", !0) : (b(), A("div", lo))
1050
1050
  ]),
1051
- !e.context.isValidParams && e.context.enableExtraParams ? (h(), A("div", lo, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : q("", !0)
1051
+ !e.context.isValidParams && e.context.enableExtraParams ? (b(), A("div", ro, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : q("", !0)
1052
1052
  ], 2)
1053
1053
  ]);
1054
1054
  }
1055
- const co = /* @__PURE__ */ J(eo, [["render", ro], ["__scopeId", "data-v-f2c9b5af"]]), mo = {
1055
+ const mo = /* @__PURE__ */ J(no, [["render", co], ["__scopeId", "data-v-f2c9b5af"]]), po = {
1056
1056
  components: {
1057
1057
  TinySearch: Fe
1058
1058
  },
@@ -1063,68 +1063,68 @@ const co = /* @__PURE__ */ J(eo, [["render", ro], ["__scopeId", "data-v-f2c9b5af
1063
1063
  }
1064
1064
  },
1065
1065
  setup(v) {
1066
- const { getMethodNameList: o } = Y(Z.Page), d = F(""), e = F([]), r = Ne("context"), _ = (c, p) => {
1067
- const s = c.map((a) => {
1066
+ const { getMethodNameList: o } = Y(Z.Page), a = F(""), e = F([]), r = Ne("context"), _ = (c, p) => {
1067
+ const s = c.map((l) => {
1068
1068
  var i;
1069
- return Number.parseInt((i = a.match(/\d+$/)) == null ? void 0 : i[0]) || 0;
1070
- }).sort((a, i) => a - i).pop();
1071
- let n = `${(p == null ? void 0 : p.replace(Wn, "_")) || ""}New`;
1069
+ return Number.parseInt((i = l.match(/\d+$/)) == null ? void 0 : i[0]) || 0;
1070
+ }).sort((l, i) => l - i).pop();
1071
+ let n = `${(p == null ? void 0 : p.replace(Qn, "_")) || ""}New`;
1072
1072
  return s > -1 && (n += `${s + 1}`), n;
1073
- }, b = (c) => {
1073
+ }, h = (c) => {
1074
1074
  r.bindMethodInfo = c;
1075
1075
  };
1076
1076
  return Ve(() => {
1077
- var a, i;
1078
- const c = (a = v.eventBinding) == null ? void 0 : a.eventName, p = (o == null ? void 0 : o().filter((l) => l.includes(c))) || [], x = {
1077
+ 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 = {
1079
1079
  title: "添加新方法",
1080
1080
  name: _(p, c),
1081
1081
  type: Ie
1082
1082
  };
1083
- (i = v.eventBinding) != null && i.ref ? b({ name: v.eventBinding.ref }) : b(x);
1084
- const n = (o == null ? void 0 : o().filter((l) => l.includes(d.value)).map((l) => ({ name: l }))) || [];
1083
+ (i = v.eventBinding) != null && i.ref ? h({ name: v.eventBinding.ref }) : h(x);
1084
+ const n = (o == null ? void 0 : o().filter((d) => d.includes(a.value)).map((d) => ({ name: d }))) || [];
1085
1085
  e.value = [x, ...n];
1086
1086
  }), {
1087
1087
  context: r,
1088
- searchValue: d,
1088
+ searchValue: a,
1089
1089
  filteredMethodList: e,
1090
- selectMethod: b
1090
+ selectMethod: h
1091
1091
  };
1092
1092
  }
1093
- }, po = { class: "dialog-content-left" }, uo = { class: "left-list-wrap" }, vo = { class: "left-action-list" }, fo = { class: "action-list-wrap" }, go = ["onClick"];
1094
- function _o(v, o, d, e, r, _) {
1095
- const b = k("tiny-search");
1096
- return h(), A("div", po, [
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
1097
  o[1] || (o[1] = t("div", { class: "left-title" }, "响应方法", -1)),
1098
- t("div", uo, [
1099
- t("div", vo, [
1100
- u(b, {
1098
+ t("div", vo, [
1099
+ t("div", fo, [
1100
+ u(h, {
1101
1101
  modelValue: e.searchValue,
1102
1102
  "onUpdate:modelValue": o[0] || (o[0] = (c) => e.searchValue = c),
1103
1103
  placeholder: "搜索"
1104
1104
  }, null, 8, ["modelValue"]),
1105
- t("ul", fo, [
1106
- (h(!0), A(H, null, ne(e.filteredMethodList, (c) => (h(), A("li", {
1105
+ t("ul", go, [
1106
+ (b(!0), A(H, null, ne(e.filteredMethodList, (c) => (b(), A("li", {
1107
1107
  key: c.name,
1108
1108
  onClick: (p) => e.selectMethod(c)
1109
1109
  }, [
1110
1110
  t("div", {
1111
1111
  class: R(["action-name", { active: c.name === e.context.bindMethodInfo.name }])
1112
1112
  }, M(c.title || c.name), 3)
1113
- ], 8, go))), 128))
1113
+ ], 8, _o))), 128))
1114
1114
  ])
1115
1115
  ])
1116
1116
  ])
1117
1117
  ]);
1118
1118
  }
1119
- const bo = /* @__PURE__ */ J(mo, [["render", _o], ["__scopeId", "data-v-0859add1"]]), Po = {
1119
+ const bo = /* @__PURE__ */ J(po, [["render", ho], ["__scopeId", "data-v-0859add1"]]), Bo = {
1120
1120
  ...te,
1121
- entry: Zn,
1122
- options: { commonEvents: vn },
1121
+ entry: Wn,
1122
+ options: { commonEvents: fn },
1123
1123
  components: {
1124
1124
  BindEventsDialogSidebar: bo,
1125
- BindEventsDialogContent: co
1125
+ BindEventsDialogContent: mo
1126
1126
  }
1127
1127
  };
1128
1128
  export {
1129
- Po as default
1129
+ Bo as default
1130
1130
  };
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-6bf20fbd]{padding:10px 20px 10px 10px}.custom-event footer[data-v-6bf20fbd]{text-align:center}.bind-action-list .bind-actions[data-v-6bf20fbd]{margin-top:20px}.bind-action-list .bind-actions .binding-name[data-v-6bf20fbd]{word-break:break-all}.bind-action-list .bind-actions .action-buttons[data-v-6bf20fbd]{display:flex;align-items:center;justify-content:center}.bind-action-list .bind-actions .action-buttons .item[data-v-6bf20fbd]{margin-right:10px}.bind-action-list .bind-actions .event-bind[data-v-6bf20fbd]{color:var(--te-events-event-bind-text-color)}.bind-action-list .bind-actions .bind-action-item[data-v-6bf20fbd]{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-6bf20fbd]:first-child{border-top:1px solid var(--te-events-bind-action-item-border-color)}.bind-action-list .bind-actions .bind-action-item[data-v-6bf20fbd]:hover{background:var(--te-events-bind-action-item-bg-color-hover)}.bind-action-list .bind-actions .bind-action-item .linked[data-v-6bf20fbd]{color:var(--te-events-bind-action-item-text-color-link)}.bind-action-list .popover-head[data-v-6bf20fbd]{display:flex;justify-content:space-between;margin-top:12px}.bind-action-list .popover-head .bind-action-button-item[data-v-6bf20fbd]{width:50%}.bind-action-list .popover-head .bind-action-button-item[data-v-6bf20fbd]:not(:last-child){margin-right:12px}.bind-action-list .popover-head .add-custom-event-button[data-v-6bf20fbd]{margin-right:0}.bind-action-list .popover-head .bind-event-btn[data-v-6bf20fbd]{padding:0 16px;width:100%}.bind-action-list .popover-head .bind-event-btn .bind-event-btn-icon[data-v-6bf20fbd]{margin-right:0;margin-left:4px}.bind-action-list .empty-action[data-v-6bf20fbd]{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-6bf20fbd]{font-size:48px}.bind-action-list .empty-action .icon[data-v-6bf20fbd]{text-align:center;opacity:.4}.bind-action-list .empty-action .center[data-v-6bf20fbd]{margin-top:4px}.bind-action-list .empty-action .text[data-v-6bf20fbd]{margin-top:12px}.bind-event-list[data-v-6bf20fbd]{color:var(--te-events-bind-event-list-text-color)}.bind-event-list-item-notallow[data-v-6bf20fbd]{cursor:not-allowed;pointer-events:none;color:var(--te-events-bind-event-list-item-text-color-disabled)}.bind-event-list-item[data-v-6bf20fbd]{padding:0 16px;margin:0 -16px;line-height:24px}.bind-event-list-item[data-v-6bf20fbd]: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-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)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentiny/tiny-engine-setting-events",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
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.4.0",
29
- "@opentiny/tiny-engine-configurator": "2.4.0",
30
- "@opentiny/tiny-engine-meta-register": "2.4.0",
31
- "@opentiny/tiny-engine-utils": "2.4.0"
28
+ "@opentiny/tiny-engine-common": "2.4.1",
29
+ "@opentiny/tiny-engine-configurator": "2.4.1",
30
+ "@opentiny/tiny-engine-meta-register": "2.4.1",
31
+ "@opentiny/tiny-engine-utils": "2.4.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.0",
34
+ "@opentiny/tiny-engine-vite-plugin-meta-comments": "2.4.1",
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": "477aa411da11a4f95712e3e5c251d97cae23f4ad"
44
+ "gitHead": "5a3c6f536a46e25338800e9fe4c72c12e0c32bc5"
45
45
  }