@opentiny/tiny-engine-setting-events 2.7.0-alpha.4 → 2.7.0-rc.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 +2042 -1844
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,342 +1,540 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { ref as
|
|
3
|
-
import { callEntry as
|
|
4
|
-
import { TinyAlert as
|
|
5
|
-
import
|
|
6
|
-
import { SvgButton as
|
|
7
|
-
import { iconChevronDown as
|
|
8
|
-
import { string2Ast as
|
|
9
|
-
import { CodeConfigurator as
|
|
10
|
-
import { PROP_DATA_TYPE as
|
|
11
|
-
import { constants as
|
|
12
|
-
const
|
|
2
|
+
import { ref as Xe, reactive as Ze, provide as vt, nextTick as wt, resolveComponent as H, createBlock as ve, openBlock as j, withCtx as X, createElementVNode as _, createVNode as S, resolveDynamicComponent as dt, createTextVNode as Ue, unref as W, createElementBlock as se, Fragment as Qe, withDirectives as ct, renderList as st, normalizeClass as Je, toDisplayString as ge, createCommentVNode as et, vShow as ht, computed as Ye, watchEffect as bt, watch as ut, inject as _t } from "vue";
|
|
3
|
+
import { callEntry as k, META_APP as V, getMetaApi as M, getOptions as re, useLayout as J, useHistory as le, useCanvas as N, getMergeMeta as K, useBlock as Ne, useMaterial as Ie, useModal as Le, useMessage as Be, useProperties as ne } from "@opentiny/tiny-engine-meta-register";
|
|
4
|
+
import { TinyAlert as kt, DialogBox as Et, Button as tt, Form as Dt, FormItem as ft, Input as rt, Popover as St, Tooltip as At, Collapse as Nt, CollapseItem as gt, Checkbox as It, Search as Lt } from "@opentiny/vue";
|
|
5
|
+
import Pe from "@opentiny/tiny-engine-common/js/i18n";
|
|
6
|
+
import { SvgButton as Ve, BlockLinkEvent as Me, PluginPanel as Bt, VueMonaco as $e } from "@opentiny/tiny-engine-common";
|
|
7
|
+
import { iconChevronDown as Oe } from "@opentiny/vue-icon";
|
|
8
|
+
import { string2Ast as ae } from "@opentiny/tiny-engine-common/js/ast";
|
|
9
|
+
import { CodeConfigurator as Ee, InputConfigurator as Ce, VariableConfigurator as ye, SwitchConfigurator as xe } from "@opentiny/tiny-engine-configurator";
|
|
10
|
+
import { PROP_DATA_TYPE as fe } from "@opentiny/tiny-engine-common/js/constants";
|
|
11
|
+
import { constants as De, utils as Se } from "@opentiny/tiny-engine-utils";
|
|
12
|
+
const Z = {
|
|
13
13
|
id: "engine.setting.event",
|
|
14
14
|
title: "高级",
|
|
15
15
|
type: "plugins",
|
|
16
16
|
name: "event",
|
|
17
17
|
icon: "target"
|
|
18
18
|
};
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let i = e & 31;
|
|
29
|
-
e >>>= 5, e > 0 && (i |= 32), c.write(me[i]);
|
|
30
|
-
} while (e > 0);
|
|
31
|
-
return t;
|
|
32
|
-
}
|
|
33
|
-
var ae = 1024 * 16, le = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
34
|
-
decode(c) {
|
|
35
|
-
return Buffer.from(c.buffer, c.byteOffset, c.byteLength).toString();
|
|
36
|
-
}
|
|
37
|
-
} : {
|
|
38
|
-
decode(c) {
|
|
39
|
-
let t = "";
|
|
40
|
-
for (let n = 0; n < c.length; n++)
|
|
41
|
-
t += String.fromCharCode(c[n]);
|
|
42
|
-
return t;
|
|
43
|
-
}
|
|
44
|
-
}, Be = class {
|
|
45
|
-
constructor() {
|
|
46
|
-
this.pos = 0, this.out = "", this.buffer = new Uint8Array(ae);
|
|
47
|
-
}
|
|
48
|
-
write(c) {
|
|
49
|
-
const { buffer: t } = this;
|
|
50
|
-
t[this.pos++] = c, this.pos === ae && (this.out += le.decode(t), this.pos = 0);
|
|
51
|
-
}
|
|
52
|
-
flush() {
|
|
53
|
-
const { buffer: c, out: t, pos: n } = this;
|
|
54
|
-
return n > 0 ? t + le.decode(c.subarray(0, n)) : t;
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
function Pe(c) {
|
|
58
|
-
const t = new Be();
|
|
59
|
-
let n = 0, e = 0, i = 0, o = 0;
|
|
60
|
-
for (let s = 0; s < c.length; s++) {
|
|
61
|
-
const r = c[s];
|
|
62
|
-
if (s > 0 && t.write(Ie), r.length === 0) continue;
|
|
63
|
-
let a = 0;
|
|
64
|
-
for (let d = 0; d < r.length; d++) {
|
|
65
|
-
const f = r[d];
|
|
66
|
-
d > 0 && t.write(Ne), a = Vt(t, f[0], a), f.length !== 1 && (n = Vt(t, f[1], n), e = Vt(t, f[2], e), i = Vt(t, f[3], i), f.length !== 4 && (o = Vt(t, f[4], o)));
|
|
19
|
+
var Pt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, lt = { exports: {} };
|
|
20
|
+
(function(h, e) {
|
|
21
|
+
(function(n, t) {
|
|
22
|
+
t(e);
|
|
23
|
+
})(Pt, function(n) {
|
|
24
|
+
const i = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", a = new Uint8Array(64), c = new Uint8Array(128);
|
|
25
|
+
for (let p = 0; p < i.length; p++) {
|
|
26
|
+
const u = i.charCodeAt(p);
|
|
27
|
+
a[p] = u, c[u] = p;
|
|
67
28
|
}
|
|
29
|
+
function s(p, u) {
|
|
30
|
+
let d = 0, f = 0, E = 0;
|
|
31
|
+
do {
|
|
32
|
+
const x = p.next();
|
|
33
|
+
E = c[x], d |= (E & 31) << f, f += 5;
|
|
34
|
+
} while (E & 32);
|
|
35
|
+
const w = d & 1;
|
|
36
|
+
return d >>>= 1, w && (d = -2147483648 | -d), u + d;
|
|
37
|
+
}
|
|
38
|
+
function r(p, u, d) {
|
|
39
|
+
let f = u - d;
|
|
40
|
+
f = f < 0 ? -f << 1 | 1 : f << 1;
|
|
41
|
+
do {
|
|
42
|
+
let E = f & 31;
|
|
43
|
+
f >>>= 5, f > 0 && (E |= 32), p.write(a[E]);
|
|
44
|
+
} while (f > 0);
|
|
45
|
+
return u;
|
|
46
|
+
}
|
|
47
|
+
function b(p, u) {
|
|
48
|
+
return p.pos >= u ? !1 : p.peek() !== 44;
|
|
49
|
+
}
|
|
50
|
+
const l = 1024 * 16, v = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
51
|
+
decode(p) {
|
|
52
|
+
return Buffer.from(p.buffer, p.byteOffset, p.byteLength).toString();
|
|
53
|
+
}
|
|
54
|
+
} : {
|
|
55
|
+
decode(p) {
|
|
56
|
+
let u = "";
|
|
57
|
+
for (let d = 0; d < p.length; d++)
|
|
58
|
+
u += String.fromCharCode(p[d]);
|
|
59
|
+
return u;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
class g {
|
|
63
|
+
constructor() {
|
|
64
|
+
this.pos = 0, this.out = "", this.buffer = new Uint8Array(l);
|
|
65
|
+
}
|
|
66
|
+
write(u) {
|
|
67
|
+
const { buffer: d } = this;
|
|
68
|
+
d[this.pos++] = u, this.pos === l && (this.out += v.decode(d), this.pos = 0);
|
|
69
|
+
}
|
|
70
|
+
flush() {
|
|
71
|
+
const { buffer: u, out: d, pos: f } = this;
|
|
72
|
+
return f > 0 ? d + v.decode(u.subarray(0, f)) : d;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
class m {
|
|
76
|
+
constructor(u) {
|
|
77
|
+
this.pos = 0, this.buffer = u;
|
|
78
|
+
}
|
|
79
|
+
next() {
|
|
80
|
+
return this.buffer.charCodeAt(this.pos++);
|
|
81
|
+
}
|
|
82
|
+
peek() {
|
|
83
|
+
return this.buffer.charCodeAt(this.pos);
|
|
84
|
+
}
|
|
85
|
+
indexOf(u) {
|
|
86
|
+
const { buffer: d, pos: f } = this, E = d.indexOf(u, f);
|
|
87
|
+
return E === -1 ? d.length : E;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
const C = [];
|
|
91
|
+
function A(p) {
|
|
92
|
+
const { length: u } = p, d = new m(p), f = [], E = [];
|
|
93
|
+
let w = 0;
|
|
94
|
+
for (; d.pos < u; d.pos++) {
|
|
95
|
+
w = s(d, w);
|
|
96
|
+
const x = s(d, 0);
|
|
97
|
+
if (!b(d, u)) {
|
|
98
|
+
const R = E.pop();
|
|
99
|
+
R[2] = w, R[3] = x;
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
const L = s(d, 0), O = s(d, 0) & 1 ? [w, x, 0, 0, L, s(d, 0)] : [w, x, 0, 0, L];
|
|
103
|
+
let G = C;
|
|
104
|
+
if (b(d, u)) {
|
|
105
|
+
G = [];
|
|
106
|
+
do {
|
|
107
|
+
const R = s(d, 0);
|
|
108
|
+
G.push(R);
|
|
109
|
+
} while (b(d, u));
|
|
110
|
+
}
|
|
111
|
+
O.vars = G, f.push(O), E.push(O);
|
|
112
|
+
}
|
|
113
|
+
return f;
|
|
114
|
+
}
|
|
115
|
+
function I(p) {
|
|
116
|
+
const u = new g();
|
|
117
|
+
for (let d = 0; d < p.length; )
|
|
118
|
+
d = T(p, d, u, [0]);
|
|
119
|
+
return u.flush();
|
|
120
|
+
}
|
|
121
|
+
function T(p, u, d, f) {
|
|
122
|
+
const E = p[u], { 0: w, 1: x, 2: L, 3: U, 4: $, vars: O } = E;
|
|
123
|
+
u > 0 && d.write(44), f[0] = r(d, w, f[0]), r(d, x, 0), r(d, $, 0);
|
|
124
|
+
const G = E.length === 6 ? 1 : 0;
|
|
125
|
+
r(d, G, 0), E.length === 6 && r(d, E[5], 0);
|
|
126
|
+
for (const R of O)
|
|
127
|
+
r(d, R, 0);
|
|
128
|
+
for (u++; u < p.length; ) {
|
|
129
|
+
const R = p[u], { 0: P, 1: F } = R;
|
|
130
|
+
if (P > L || P === L && F >= U)
|
|
131
|
+
break;
|
|
132
|
+
u = T(p, u, d, f);
|
|
133
|
+
}
|
|
134
|
+
return d.write(44), f[0] = r(d, L, f[0]), r(d, U, 0), u;
|
|
135
|
+
}
|
|
136
|
+
function z(p) {
|
|
137
|
+
const { length: u } = p, d = new m(p), f = [], E = [];
|
|
138
|
+
let w = 0, x = 0, L = 0, U = 0, $ = 0, O = 0, G = 0, R = 0;
|
|
139
|
+
do {
|
|
140
|
+
const P = d.indexOf(";");
|
|
141
|
+
let F = 0;
|
|
142
|
+
for (; d.pos < P; d.pos++) {
|
|
143
|
+
if (F = s(d, F), !b(d, P)) {
|
|
144
|
+
const ue = E.pop();
|
|
145
|
+
ue[2] = w, ue[3] = F;
|
|
146
|
+
continue;
|
|
147
|
+
}
|
|
148
|
+
const ce = s(d, 0), he = ce & 1, be = ce & 2, _e = ce & 4;
|
|
149
|
+
let at = null, ot = C, Ae;
|
|
150
|
+
if (he) {
|
|
151
|
+
const ue = s(d, x);
|
|
152
|
+
L = s(d, x === ue ? L : 0), x = ue, Ae = [w, F, 0, 0, ue, L];
|
|
153
|
+
} else
|
|
154
|
+
Ae = [w, F, 0, 0];
|
|
155
|
+
if (Ae.isScope = !!_e, be) {
|
|
156
|
+
const ue = U, je = $;
|
|
157
|
+
U = s(d, U);
|
|
158
|
+
const Ke = ue === U;
|
|
159
|
+
$ = s(d, Ke ? $ : 0), O = s(d, Ke && je === $ ? O : 0), at = [U, $, O];
|
|
160
|
+
}
|
|
161
|
+
if (Ae.callsite = at, b(d, P)) {
|
|
162
|
+
ot = [];
|
|
163
|
+
do {
|
|
164
|
+
G = w, R = F;
|
|
165
|
+
const ue = s(d, 0);
|
|
166
|
+
let je;
|
|
167
|
+
if (ue < -1) {
|
|
168
|
+
je = [[s(d, 0)]];
|
|
169
|
+
for (let Ke = -1; Ke > ue; Ke--) {
|
|
170
|
+
const yt = G;
|
|
171
|
+
G = s(d, G), R = s(d, G === yt ? R : 0);
|
|
172
|
+
const xt = s(d, 0);
|
|
173
|
+
je.push([xt, G, R]);
|
|
174
|
+
}
|
|
175
|
+
} else
|
|
176
|
+
je = [[ue]];
|
|
177
|
+
ot.push(je);
|
|
178
|
+
} while (b(d, P));
|
|
179
|
+
}
|
|
180
|
+
Ae.bindings = ot, f.push(Ae), E.push(Ae);
|
|
181
|
+
}
|
|
182
|
+
w++, d.pos = P + 1;
|
|
183
|
+
} while (d.pos < u);
|
|
184
|
+
return f;
|
|
185
|
+
}
|
|
186
|
+
function D(p) {
|
|
187
|
+
if (p.length === 0)
|
|
188
|
+
return "";
|
|
189
|
+
const u = new g();
|
|
190
|
+
for (let d = 0; d < p.length; )
|
|
191
|
+
d = y(p, d, u, [0, 0, 0, 0, 0, 0, 0]);
|
|
192
|
+
return u.flush();
|
|
193
|
+
}
|
|
194
|
+
function y(p, u, d, f) {
|
|
195
|
+
const E = p[u], { 0: w, 1: x, 2: L, 3: U, isScope: $, callsite: O, bindings: G } = E;
|
|
196
|
+
f[0] < w ? (B(d, f[0], w), f[0] = w, f[1] = 0) : u > 0 && d.write(44), f[1] = r(d, E[1], f[1]);
|
|
197
|
+
const R = (E.length === 6 ? 1 : 0) | (O ? 2 : 0) | ($ ? 4 : 0);
|
|
198
|
+
if (r(d, R, 0), E.length === 6) {
|
|
199
|
+
const { 4: P, 5: F } = E;
|
|
200
|
+
P !== f[2] && (f[3] = 0), f[2] = r(d, P, f[2]), f[3] = r(d, F, f[3]);
|
|
201
|
+
}
|
|
202
|
+
if (O) {
|
|
203
|
+
const { 0: P, 1: F, 2: ce } = E.callsite;
|
|
204
|
+
P !== f[4] ? (f[5] = 0, f[6] = 0) : F !== f[5] && (f[6] = 0), f[4] = r(d, P, f[4]), f[5] = r(d, F, f[5]), f[6] = r(d, ce, f[6]);
|
|
205
|
+
}
|
|
206
|
+
if (G)
|
|
207
|
+
for (const P of G) {
|
|
208
|
+
P.length > 1 && r(d, -P.length, 0);
|
|
209
|
+
const F = P[0][0];
|
|
210
|
+
r(d, F, 0);
|
|
211
|
+
let ce = w, he = x;
|
|
212
|
+
for (let be = 1; be < P.length; be++) {
|
|
213
|
+
const _e = P[be];
|
|
214
|
+
ce = r(d, _e[1], ce), he = r(d, _e[2], he), r(d, _e[0], 0);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
for (u++; u < p.length; ) {
|
|
218
|
+
const P = p[u], { 0: F, 1: ce } = P;
|
|
219
|
+
if (F > L || F === L && ce >= U)
|
|
220
|
+
break;
|
|
221
|
+
u = y(p, u, d, f);
|
|
222
|
+
}
|
|
223
|
+
return f[0] < L ? (B(d, f[0], L), f[0] = L, f[1] = 0) : d.write(44), f[1] = r(d, U, f[1]), u;
|
|
224
|
+
}
|
|
225
|
+
function B(p, u, d) {
|
|
226
|
+
do
|
|
227
|
+
p.write(59);
|
|
228
|
+
while (++u < d);
|
|
229
|
+
}
|
|
230
|
+
function q(p) {
|
|
231
|
+
const { length: u } = p, d = new m(p), f = [];
|
|
232
|
+
let E = 0, w = 0, x = 0, L = 0, U = 0;
|
|
233
|
+
do {
|
|
234
|
+
const $ = d.indexOf(";"), O = [];
|
|
235
|
+
let G = !0, R = 0;
|
|
236
|
+
for (E = 0; d.pos < $; ) {
|
|
237
|
+
let P;
|
|
238
|
+
E = s(d, E), E < R && (G = !1), R = E, b(d, $) ? (w = s(d, w), x = s(d, x), L = s(d, L), b(d, $) ? (U = s(d, U), P = [E, w, x, L, U]) : P = [E, w, x, L]) : P = [E], O.push(P), d.pos++;
|
|
239
|
+
}
|
|
240
|
+
G || me(O), f.push(O), d.pos = $ + 1;
|
|
241
|
+
} while (d.pos <= u);
|
|
242
|
+
return f;
|
|
243
|
+
}
|
|
244
|
+
function me(p) {
|
|
245
|
+
p.sort(de);
|
|
246
|
+
}
|
|
247
|
+
function de(p, u) {
|
|
248
|
+
return p[0] - u[0];
|
|
249
|
+
}
|
|
250
|
+
function te(p) {
|
|
251
|
+
const u = new g();
|
|
252
|
+
let d = 0, f = 0, E = 0, w = 0;
|
|
253
|
+
for (let x = 0; x < p.length; x++) {
|
|
254
|
+
const L = p[x];
|
|
255
|
+
if (x > 0 && u.write(59), L.length === 0)
|
|
256
|
+
continue;
|
|
257
|
+
let U = 0;
|
|
258
|
+
for (let $ = 0; $ < L.length; $++) {
|
|
259
|
+
const O = L[$];
|
|
260
|
+
$ > 0 && u.write(44), U = r(u, O[0], U), O.length !== 1 && (d = r(u, O[1], d), f = r(u, O[2], f), E = r(u, O[3], E), O.length !== 4 && (w = r(u, O[4], w)));
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return u.flush();
|
|
264
|
+
}
|
|
265
|
+
n.decode = q, n.decodeGeneratedRanges = z, n.decodeOriginalScopes = A, n.encode = te, n.encodeGeneratedRanges = D, n.encodeOriginalScopes = I, Object.defineProperty(n, "__esModule", { value: !0 });
|
|
266
|
+
});
|
|
267
|
+
})(lt, lt.exports);
|
|
268
|
+
var Vt = lt.exports;
|
|
269
|
+
class nt {
|
|
270
|
+
constructor(e) {
|
|
271
|
+
this.bits = e instanceof nt ? e.bits.slice() : [];
|
|
68
272
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
class Jt {
|
|
72
|
-
constructor(t) {
|
|
73
|
-
this.bits = t instanceof Jt ? t.bits.slice() : [];
|
|
74
|
-
}
|
|
75
|
-
add(t) {
|
|
76
|
-
this.bits[t >> 5] |= 1 << (t & 31);
|
|
273
|
+
add(e) {
|
|
274
|
+
this.bits[e >> 5] |= 1 << (e & 31);
|
|
77
275
|
}
|
|
78
|
-
has(
|
|
79
|
-
return !!(this.bits[
|
|
276
|
+
has(e) {
|
|
277
|
+
return !!(this.bits[e >> 5] & 1 << (e & 31));
|
|
80
278
|
}
|
|
81
279
|
}
|
|
82
|
-
class
|
|
83
|
-
constructor(
|
|
84
|
-
this.start =
|
|
280
|
+
class We {
|
|
281
|
+
constructor(e, n, t) {
|
|
282
|
+
this.start = e, this.end = n, this.original = t, this.intro = "", this.outro = "", this.content = t, this.storeName = !1, this.edited = !1, this.previous = null, this.next = null;
|
|
85
283
|
}
|
|
86
|
-
appendLeft(
|
|
87
|
-
this.outro +=
|
|
284
|
+
appendLeft(e) {
|
|
285
|
+
this.outro += e;
|
|
88
286
|
}
|
|
89
|
-
appendRight(
|
|
90
|
-
this.intro = this.intro +
|
|
287
|
+
appendRight(e) {
|
|
288
|
+
this.intro = this.intro + e;
|
|
91
289
|
}
|
|
92
290
|
clone() {
|
|
93
|
-
const
|
|
94
|
-
return
|
|
291
|
+
const e = new We(this.start, this.end, this.original);
|
|
292
|
+
return e.intro = this.intro, e.outro = this.outro, e.content = this.content, e.storeName = this.storeName, e.edited = this.edited, e;
|
|
95
293
|
}
|
|
96
|
-
contains(
|
|
97
|
-
return this.start <
|
|
294
|
+
contains(e) {
|
|
295
|
+
return this.start < e && e < this.end;
|
|
98
296
|
}
|
|
99
|
-
eachNext(
|
|
297
|
+
eachNext(e) {
|
|
100
298
|
let n = this;
|
|
101
299
|
for (; n; )
|
|
102
|
-
|
|
300
|
+
e(n), n = n.next;
|
|
103
301
|
}
|
|
104
|
-
eachPrevious(
|
|
302
|
+
eachPrevious(e) {
|
|
105
303
|
let n = this;
|
|
106
304
|
for (; n; )
|
|
107
|
-
|
|
305
|
+
e(n), n = n.previous;
|
|
108
306
|
}
|
|
109
|
-
edit(
|
|
110
|
-
return this.content =
|
|
307
|
+
edit(e, n, t) {
|
|
308
|
+
return this.content = e, t || (this.intro = "", this.outro = ""), this.storeName = n, this.edited = !0, this;
|
|
111
309
|
}
|
|
112
|
-
prependLeft(
|
|
113
|
-
this.outro =
|
|
310
|
+
prependLeft(e) {
|
|
311
|
+
this.outro = e + this.outro;
|
|
114
312
|
}
|
|
115
|
-
prependRight(
|
|
116
|
-
this.intro =
|
|
313
|
+
prependRight(e) {
|
|
314
|
+
this.intro = e + this.intro;
|
|
117
315
|
}
|
|
118
316
|
reset() {
|
|
119
317
|
this.intro = "", this.outro = "", this.edited && (this.content = this.original, this.storeName = !1, this.edited = !1);
|
|
120
318
|
}
|
|
121
|
-
split(
|
|
122
|
-
const n =
|
|
123
|
-
this.original =
|
|
124
|
-
const
|
|
125
|
-
return
|
|
319
|
+
split(e) {
|
|
320
|
+
const n = e - this.start, t = this.original.slice(0, n), o = this.original.slice(n);
|
|
321
|
+
this.original = t;
|
|
322
|
+
const i = new We(e, this.end, o);
|
|
323
|
+
return i.outro = this.outro, this.outro = "", this.end = e, this.edited ? (i.edit("", !1), this.content = "") : this.content = t, i.next = this.next, i.next && (i.next.previous = i), i.previous = this, this.next = i, i;
|
|
126
324
|
}
|
|
127
325
|
toString() {
|
|
128
326
|
return this.intro + this.content + this.outro;
|
|
129
327
|
}
|
|
130
|
-
trimEnd(
|
|
131
|
-
if (this.outro = this.outro.replace(
|
|
132
|
-
const n = this.content.replace(
|
|
328
|
+
trimEnd(e) {
|
|
329
|
+
if (this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
|
|
330
|
+
const n = this.content.replace(e, "");
|
|
133
331
|
if (n.length)
|
|
134
332
|
return n !== this.content && (this.split(this.start + n.length).edit("", void 0, !0), this.edited && this.edit(n, this.storeName, !0)), !0;
|
|
135
|
-
if (this.edit("", void 0, !0), this.intro = this.intro.replace(
|
|
333
|
+
if (this.edit("", void 0, !0), this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
|
|
136
334
|
}
|
|
137
|
-
trimStart(
|
|
138
|
-
if (this.intro = this.intro.replace(
|
|
139
|
-
const n = this.content.replace(
|
|
335
|
+
trimStart(e) {
|
|
336
|
+
if (this.intro = this.intro.replace(e, ""), this.intro.length) return !0;
|
|
337
|
+
const n = this.content.replace(e, "");
|
|
140
338
|
if (n.length) {
|
|
141
339
|
if (n !== this.content) {
|
|
142
|
-
const
|
|
143
|
-
this.edited &&
|
|
340
|
+
const t = this.split(this.end - n.length);
|
|
341
|
+
this.edited && t.edit(n, this.storeName, !0), this.edit("", void 0, !0);
|
|
144
342
|
}
|
|
145
343
|
return !0;
|
|
146
|
-
} else if (this.edit("", void 0, !0), this.outro = this.outro.replace(
|
|
344
|
+
} else if (this.edit("", void 0, !0), this.outro = this.outro.replace(e, ""), this.outro.length) return !0;
|
|
147
345
|
}
|
|
148
346
|
}
|
|
149
|
-
function
|
|
150
|
-
return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (
|
|
347
|
+
function Mt() {
|
|
348
|
+
return typeof globalThis < "u" && typeof globalThis.btoa == "function" ? (h) => globalThis.btoa(unescape(encodeURIComponent(h))) : typeof Buffer == "function" ? (h) => Buffer.from(h, "utf-8").toString("base64") : () => {
|
|
151
349
|
throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.");
|
|
152
350
|
};
|
|
153
351
|
}
|
|
154
|
-
const
|
|
155
|
-
class
|
|
156
|
-
constructor(
|
|
157
|
-
this.version = 3, this.file =
|
|
352
|
+
const Ot = /* @__PURE__ */ Mt();
|
|
353
|
+
class Rt {
|
|
354
|
+
constructor(e) {
|
|
355
|
+
this.version = 3, this.file = e.file, this.sources = e.sources, this.sourcesContent = e.sourcesContent, this.names = e.names, this.mappings = Vt.encode(e.mappings), typeof e.x_google_ignoreList < "u" && (this.x_google_ignoreList = e.x_google_ignoreList), typeof e.debugId < "u" && (this.debugId = e.debugId);
|
|
158
356
|
}
|
|
159
357
|
toString() {
|
|
160
358
|
return JSON.stringify(this);
|
|
161
359
|
}
|
|
162
360
|
toUrl() {
|
|
163
|
-
return "data:application/json;charset=utf-8;base64," +
|
|
361
|
+
return "data:application/json;charset=utf-8;base64," + Ot(this.toString());
|
|
164
362
|
}
|
|
165
363
|
}
|
|
166
|
-
function
|
|
167
|
-
const
|
|
168
|
-
`), n =
|
|
169
|
-
if (n.length === 0 &&
|
|
364
|
+
function Tt(h) {
|
|
365
|
+
const e = h.split(`
|
|
366
|
+
`), n = e.filter((i) => /^\t+/.test(i)), t = e.filter((i) => /^ {2,}/.test(i));
|
|
367
|
+
if (n.length === 0 && t.length === 0)
|
|
170
368
|
return null;
|
|
171
|
-
if (n.length >=
|
|
369
|
+
if (n.length >= t.length)
|
|
172
370
|
return " ";
|
|
173
|
-
const
|
|
174
|
-
const
|
|
175
|
-
return Math.min(
|
|
371
|
+
const o = t.reduce((i, a) => {
|
|
372
|
+
const c = /^ +/.exec(a)[0].length;
|
|
373
|
+
return Math.min(c, i);
|
|
176
374
|
}, 1 / 0);
|
|
177
|
-
return new Array(
|
|
375
|
+
return new Array(o + 1).join(" ");
|
|
178
376
|
}
|
|
179
|
-
function
|
|
180
|
-
const n =
|
|
181
|
-
for (n.pop(); n[0] ===
|
|
182
|
-
n.shift(),
|
|
377
|
+
function Ut(h, e) {
|
|
378
|
+
const n = h.split(/[/\\]/), t = e.split(/[/\\]/);
|
|
379
|
+
for (n.pop(); n[0] === t[0]; )
|
|
380
|
+
n.shift(), t.shift();
|
|
183
381
|
if (n.length) {
|
|
184
|
-
let
|
|
185
|
-
for (;
|
|
382
|
+
let o = n.length;
|
|
383
|
+
for (; o--; ) n[o] = "..";
|
|
186
384
|
}
|
|
187
|
-
return n.concat(
|
|
385
|
+
return n.concat(t).join("/");
|
|
188
386
|
}
|
|
189
|
-
const
|
|
190
|
-
function
|
|
191
|
-
return
|
|
387
|
+
const jt = Object.prototype.toString;
|
|
388
|
+
function $t(h) {
|
|
389
|
+
return jt.call(h) === "[object Object]";
|
|
192
390
|
}
|
|
193
|
-
function
|
|
194
|
-
const
|
|
391
|
+
function mt(h) {
|
|
392
|
+
const e = h.split(`
|
|
195
393
|
`), n = [];
|
|
196
|
-
for (let
|
|
197
|
-
n.push(
|
|
198
|
-
return function(
|
|
199
|
-
let
|
|
200
|
-
for (;
|
|
201
|
-
const
|
|
202
|
-
|
|
394
|
+
for (let t = 0, o = 0; t < e.length; t++)
|
|
395
|
+
n.push(o), o += e[t].length + 1;
|
|
396
|
+
return function(o) {
|
|
397
|
+
let i = 0, a = n.length;
|
|
398
|
+
for (; i < a; ) {
|
|
399
|
+
const r = i + a >> 1;
|
|
400
|
+
o < n[r] ? a = r : i = r + 1;
|
|
203
401
|
}
|
|
204
|
-
const
|
|
205
|
-
return { line:
|
|
402
|
+
const c = i - 1, s = o - n[c];
|
|
403
|
+
return { line: c, column: s };
|
|
206
404
|
};
|
|
207
405
|
}
|
|
208
|
-
const
|
|
209
|
-
class
|
|
210
|
-
constructor(
|
|
211
|
-
this.hires =
|
|
406
|
+
const zt = /\w/;
|
|
407
|
+
class Ft {
|
|
408
|
+
constructor(e) {
|
|
409
|
+
this.hires = e, this.generatedCodeLine = 0, this.generatedCodeColumn = 0, this.raw = [], this.rawSegments = this.raw[this.generatedCodeLine] = [], this.pending = null;
|
|
212
410
|
}
|
|
213
|
-
addEdit(
|
|
411
|
+
addEdit(e, n, t, o) {
|
|
214
412
|
if (n.length) {
|
|
215
|
-
const
|
|
216
|
-
let
|
|
217
|
-
`, 0),
|
|
218
|
-
for (;
|
|
219
|
-
const
|
|
220
|
-
|
|
221
|
-
`,
|
|
413
|
+
const i = n.length - 1;
|
|
414
|
+
let a = n.indexOf(`
|
|
415
|
+
`, 0), c = -1;
|
|
416
|
+
for (; a >= 0 && i > a; ) {
|
|
417
|
+
const r = [this.generatedCodeColumn, e, t.line, t.column];
|
|
418
|
+
o >= 0 && r.push(o), this.rawSegments.push(r), this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, c = a, a = n.indexOf(`
|
|
419
|
+
`, a + 1);
|
|
222
420
|
}
|
|
223
|
-
const
|
|
224
|
-
|
|
421
|
+
const s = [this.generatedCodeColumn, e, t.line, t.column];
|
|
422
|
+
o >= 0 && s.push(o), this.rawSegments.push(s), this.advance(n.slice(c + 1));
|
|
225
423
|
} else this.pending && (this.rawSegments.push(this.pending), this.advance(n));
|
|
226
424
|
this.pending = null;
|
|
227
425
|
}
|
|
228
|
-
addUneditedChunk(
|
|
229
|
-
let
|
|
230
|
-
for (;
|
|
231
|
-
if (
|
|
426
|
+
addUneditedChunk(e, n, t, o, i) {
|
|
427
|
+
let a = n.start, c = !0, s = !1;
|
|
428
|
+
for (; a < n.end; ) {
|
|
429
|
+
if (t[a] === `
|
|
232
430
|
`)
|
|
233
|
-
|
|
431
|
+
o.line += 1, o.column = 0, this.generatedCodeLine += 1, this.raw[this.generatedCodeLine] = this.rawSegments = [], this.generatedCodeColumn = 0, c = !0, s = !1;
|
|
234
432
|
else {
|
|
235
|
-
if (this.hires ||
|
|
236
|
-
const
|
|
237
|
-
this.hires === "boundary" ?
|
|
433
|
+
if (this.hires || c || i.has(a)) {
|
|
434
|
+
const r = [this.generatedCodeColumn, e, o.line, o.column];
|
|
435
|
+
this.hires === "boundary" ? zt.test(t[a]) ? s || (this.rawSegments.push(r), s = !0) : (this.rawSegments.push(r), s = !1) : this.rawSegments.push(r);
|
|
238
436
|
}
|
|
239
|
-
|
|
437
|
+
o.column += 1, this.generatedCodeColumn += 1, c = !1;
|
|
240
438
|
}
|
|
241
|
-
|
|
439
|
+
a += 1;
|
|
242
440
|
}
|
|
243
441
|
this.pending = null;
|
|
244
442
|
}
|
|
245
|
-
advance(
|
|
246
|
-
if (!
|
|
247
|
-
const n =
|
|
443
|
+
advance(e) {
|
|
444
|
+
if (!e) return;
|
|
445
|
+
const n = e.split(`
|
|
248
446
|
`);
|
|
249
447
|
if (n.length > 1) {
|
|
250
|
-
for (let
|
|
448
|
+
for (let t = 0; t < n.length - 1; t++)
|
|
251
449
|
this.generatedCodeLine++, this.raw[this.generatedCodeLine] = this.rawSegments = [];
|
|
252
450
|
this.generatedCodeColumn = 0;
|
|
253
451
|
}
|
|
254
452
|
this.generatedCodeColumn += n[n.length - 1].length;
|
|
255
453
|
}
|
|
256
454
|
}
|
|
257
|
-
const
|
|
258
|
-
`,
|
|
455
|
+
const He = `
|
|
456
|
+
`, ze = {
|
|
259
457
|
insertLeft: !1,
|
|
260
458
|
insertRight: !1,
|
|
261
459
|
storeName: !1
|
|
262
460
|
};
|
|
263
|
-
class
|
|
264
|
-
constructor(
|
|
265
|
-
const
|
|
461
|
+
class Q {
|
|
462
|
+
constructor(e, n = {}) {
|
|
463
|
+
const t = new We(0, e.length, e);
|
|
266
464
|
Object.defineProperties(this, {
|
|
267
|
-
original: { writable: !0, value:
|
|
465
|
+
original: { writable: !0, value: e },
|
|
268
466
|
outro: { writable: !0, value: "" },
|
|
269
467
|
intro: { writable: !0, value: "" },
|
|
270
|
-
firstChunk: { writable: !0, value:
|
|
271
|
-
lastChunk: { writable: !0, value:
|
|
272
|
-
lastSearchedChunk: { writable: !0, value:
|
|
468
|
+
firstChunk: { writable: !0, value: t },
|
|
469
|
+
lastChunk: { writable: !0, value: t },
|
|
470
|
+
lastSearchedChunk: { writable: !0, value: t },
|
|
273
471
|
byStart: { writable: !0, value: {} },
|
|
274
472
|
byEnd: { writable: !0, value: {} },
|
|
275
473
|
filename: { writable: !0, value: n.filename },
|
|
276
474
|
indentExclusionRanges: { writable: !0, value: n.indentExclusionRanges },
|
|
277
|
-
sourcemapLocations: { writable: !0, value: new
|
|
475
|
+
sourcemapLocations: { writable: !0, value: new nt() },
|
|
278
476
|
storedNames: { writable: !0, value: {} },
|
|
279
477
|
indentStr: { writable: !0, value: void 0 },
|
|
280
478
|
ignoreList: { writable: !0, value: n.ignoreList },
|
|
281
479
|
offset: { writable: !0, value: n.offset || 0 }
|
|
282
|
-
}), this.byStart[0] =
|
|
480
|
+
}), this.byStart[0] = t, this.byEnd[e.length] = t;
|
|
283
481
|
}
|
|
284
|
-
addSourcemapLocation(
|
|
285
|
-
this.sourcemapLocations.add(
|
|
482
|
+
addSourcemapLocation(e) {
|
|
483
|
+
this.sourcemapLocations.add(e);
|
|
286
484
|
}
|
|
287
|
-
append(
|
|
288
|
-
if (typeof
|
|
289
|
-
return this.outro +=
|
|
485
|
+
append(e) {
|
|
486
|
+
if (typeof e != "string") throw new TypeError("outro content must be a string");
|
|
487
|
+
return this.outro += e, this;
|
|
290
488
|
}
|
|
291
|
-
appendLeft(
|
|
292
|
-
if (
|
|
293
|
-
this._split(
|
|
294
|
-
const
|
|
295
|
-
return
|
|
489
|
+
appendLeft(e, n) {
|
|
490
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
491
|
+
this._split(e);
|
|
492
|
+
const t = this.byEnd[e];
|
|
493
|
+
return t ? t.appendLeft(n) : this.intro += n, this;
|
|
296
494
|
}
|
|
297
|
-
appendRight(
|
|
298
|
-
if (
|
|
299
|
-
this._split(
|
|
300
|
-
const
|
|
301
|
-
return
|
|
495
|
+
appendRight(e, n) {
|
|
496
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
497
|
+
this._split(e);
|
|
498
|
+
const t = this.byStart[e];
|
|
499
|
+
return t ? t.appendRight(n) : this.outro += n, this;
|
|
302
500
|
}
|
|
303
501
|
clone() {
|
|
304
|
-
const
|
|
305
|
-
let n = this.firstChunk,
|
|
502
|
+
const e = new Q(this.original, { filename: this.filename, offset: this.offset });
|
|
503
|
+
let n = this.firstChunk, t = e.firstChunk = e.lastSearchedChunk = n.clone();
|
|
306
504
|
for (; n; ) {
|
|
307
|
-
|
|
308
|
-
const
|
|
309
|
-
|
|
505
|
+
e.byStart[t.start] = t, e.byEnd[t.end] = t;
|
|
506
|
+
const o = n.next, i = o && o.clone();
|
|
507
|
+
i && (t.next = i, i.previous = t, t = i), n = o;
|
|
310
508
|
}
|
|
311
|
-
return
|
|
312
|
-
}
|
|
313
|
-
generateDecodedMap(
|
|
314
|
-
|
|
315
|
-
const n = 0,
|
|
316
|
-
return this.intro &&
|
|
317
|
-
const
|
|
318
|
-
|
|
509
|
+
return e.lastChunk = t, this.indentExclusionRanges && (e.indentExclusionRanges = this.indentExclusionRanges.slice()), e.sourcemapLocations = new nt(this.sourcemapLocations), e.intro = this.intro, e.outro = this.outro, e;
|
|
510
|
+
}
|
|
511
|
+
generateDecodedMap(e) {
|
|
512
|
+
e = e || {};
|
|
513
|
+
const n = 0, t = Object.keys(this.storedNames), o = new Ft(e.hires), i = mt(this.original);
|
|
514
|
+
return this.intro && o.advance(this.intro), this.firstChunk.eachNext((a) => {
|
|
515
|
+
const c = i(a.start);
|
|
516
|
+
a.intro.length && o.advance(a.intro), a.edited ? o.addEdit(
|
|
319
517
|
n,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
) :
|
|
518
|
+
a.content,
|
|
519
|
+
c,
|
|
520
|
+
a.storeName ? t.indexOf(a.original) : -1
|
|
521
|
+
) : o.addUneditedChunk(n, a, this.original, c, this.sourcemapLocations), a.outro.length && o.advance(a.outro);
|
|
324
522
|
}), {
|
|
325
|
-
file:
|
|
523
|
+
file: e.file ? e.file.split(/[/\\]/).pop() : void 0,
|
|
326
524
|
sources: [
|
|
327
|
-
|
|
525
|
+
e.source ? Ut(e.file || "", e.source) : e.file || ""
|
|
328
526
|
],
|
|
329
|
-
sourcesContent:
|
|
330
|
-
names:
|
|
331
|
-
mappings:
|
|
527
|
+
sourcesContent: e.includeContent ? [this.original] : void 0,
|
|
528
|
+
names: t,
|
|
529
|
+
mappings: o.raw,
|
|
332
530
|
x_google_ignoreList: this.ignoreList ? [n] : void 0
|
|
333
531
|
};
|
|
334
532
|
}
|
|
335
|
-
generateMap(
|
|
336
|
-
return new
|
|
533
|
+
generateMap(e) {
|
|
534
|
+
return new Rt(this.generateDecodedMap(e));
|
|
337
535
|
}
|
|
338
536
|
_ensureindentStr() {
|
|
339
|
-
this.indentStr === void 0 && (this.indentStr =
|
|
537
|
+
this.indentStr === void 0 && (this.indentStr = Tt(this.original));
|
|
340
538
|
}
|
|
341
539
|
_getRawIndentString() {
|
|
342
540
|
return this._ensureindentStr(), this.indentStr;
|
|
@@ -344,385 +542,385 @@ class U {
|
|
|
344
542
|
getIndentString() {
|
|
345
543
|
return this._ensureindentStr(), this.indentStr === null ? " " : this.indentStr;
|
|
346
544
|
}
|
|
347
|
-
indent(
|
|
348
|
-
const
|
|
349
|
-
if (
|
|
545
|
+
indent(e, n) {
|
|
546
|
+
const t = /^[^\r\n]/gm;
|
|
547
|
+
if ($t(e) && (n = e, e = void 0), e === void 0 && (this._ensureindentStr(), e = this.indentStr || " "), e === "") return this;
|
|
350
548
|
n = n || {};
|
|
351
|
-
const
|
|
352
|
-
n.exclude && (typeof n.exclude[0] == "number" ? [n.exclude] : n.exclude).forEach((
|
|
353
|
-
for (let l =
|
|
354
|
-
|
|
549
|
+
const o = {};
|
|
550
|
+
n.exclude && (typeof n.exclude[0] == "number" ? [n.exclude] : n.exclude).forEach((b) => {
|
|
551
|
+
for (let l = b[0]; l < b[1]; l += 1)
|
|
552
|
+
o[l] = !0;
|
|
355
553
|
});
|
|
356
|
-
let
|
|
357
|
-
const
|
|
358
|
-
this.intro = this.intro.replace(
|
|
359
|
-
let
|
|
360
|
-
for (;
|
|
361
|
-
const
|
|
362
|
-
if (
|
|
363
|
-
|
|
554
|
+
let i = n.indentStart !== !1;
|
|
555
|
+
const a = (r) => i ? `${e}${r}` : (i = !0, r);
|
|
556
|
+
this.intro = this.intro.replace(t, a);
|
|
557
|
+
let c = 0, s = this.firstChunk;
|
|
558
|
+
for (; s; ) {
|
|
559
|
+
const r = s.end;
|
|
560
|
+
if (s.edited)
|
|
561
|
+
o[c] || (s.content = s.content.replace(t, a), s.content.length && (i = s.content[s.content.length - 1] === `
|
|
364
562
|
`));
|
|
365
563
|
else
|
|
366
|
-
for (
|
|
367
|
-
if (!
|
|
368
|
-
const
|
|
369
|
-
|
|
370
|
-
` ?
|
|
564
|
+
for (c = s.start; c < r; ) {
|
|
565
|
+
if (!o[c]) {
|
|
566
|
+
const b = this.original[c];
|
|
567
|
+
b === `
|
|
568
|
+
` ? i = !0 : b !== "\r" && i && (i = !1, c === s.start || (this._splitChunk(s, c), s = s.next), s.prependRight(e));
|
|
371
569
|
}
|
|
372
|
-
|
|
570
|
+
c += 1;
|
|
373
571
|
}
|
|
374
|
-
|
|
572
|
+
c = s.end, s = s.next;
|
|
375
573
|
}
|
|
376
|
-
return this.outro = this.outro.replace(
|
|
574
|
+
return this.outro = this.outro.replace(t, a), this;
|
|
377
575
|
}
|
|
378
576
|
insert() {
|
|
379
577
|
throw new Error(
|
|
380
578
|
"magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)"
|
|
381
579
|
);
|
|
382
580
|
}
|
|
383
|
-
insertLeft(
|
|
384
|
-
return
|
|
581
|
+
insertLeft(e, n) {
|
|
582
|
+
return ze.insertLeft || (console.warn(
|
|
385
583
|
"magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"
|
|
386
|
-
),
|
|
584
|
+
), ze.insertLeft = !0), this.appendLeft(e, n);
|
|
387
585
|
}
|
|
388
|
-
insertRight(
|
|
389
|
-
return
|
|
586
|
+
insertRight(e, n) {
|
|
587
|
+
return ze.insertRight || (console.warn(
|
|
390
588
|
"magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"
|
|
391
|
-
),
|
|
589
|
+
), ze.insertRight = !0), this.prependRight(e, n);
|
|
392
590
|
}
|
|
393
|
-
move(
|
|
394
|
-
if (
|
|
395
|
-
this._split(
|
|
396
|
-
const
|
|
397
|
-
if (!
|
|
398
|
-
const
|
|
399
|
-
return
|
|
591
|
+
move(e, n, t) {
|
|
592
|
+
if (e = e + this.offset, n = n + this.offset, t = t + this.offset, t >= e && t <= n) throw new Error("Cannot move a selection inside itself");
|
|
593
|
+
this._split(e), this._split(n), this._split(t);
|
|
594
|
+
const o = this.byStart[e], i = this.byEnd[n], a = o.previous, c = i.next, s = this.byStart[t];
|
|
595
|
+
if (!s && i === this.lastChunk) return this;
|
|
596
|
+
const r = s ? s.previous : this.lastChunk;
|
|
597
|
+
return a && (a.next = c), c && (c.previous = a), r && (r.next = o), s && (s.previous = i), o.previous || (this.firstChunk = i.next), i.next || (this.lastChunk = o.previous, this.lastChunk.next = null), o.previous = r, i.next = s || null, r || (this.firstChunk = o), s || (this.lastChunk = i), this;
|
|
400
598
|
}
|
|
401
|
-
overwrite(
|
|
402
|
-
return
|
|
599
|
+
overwrite(e, n, t, o) {
|
|
600
|
+
return o = o || {}, this.update(e, n, t, { ...o, overwrite: !o.contentOnly });
|
|
403
601
|
}
|
|
404
|
-
update(
|
|
405
|
-
if (
|
|
602
|
+
update(e, n, t, o) {
|
|
603
|
+
if (e = e + this.offset, n = n + this.offset, typeof t != "string") throw new TypeError("replacement content must be a string");
|
|
406
604
|
if (this.original.length !== 0) {
|
|
407
|
-
for (;
|
|
605
|
+
for (; e < 0; ) e += this.original.length;
|
|
408
606
|
for (; n < 0; ) n += this.original.length;
|
|
409
607
|
}
|
|
410
608
|
if (n > this.original.length) throw new Error("end is out of bounds");
|
|
411
|
-
if (
|
|
609
|
+
if (e === n)
|
|
412
610
|
throw new Error(
|
|
413
611
|
"Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
|
|
414
612
|
);
|
|
415
|
-
this._split(
|
|
613
|
+
this._split(e), this._split(n), o === !0 && (ze.storeName || (console.warn(
|
|
416
614
|
"The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"
|
|
417
|
-
),
|
|
418
|
-
const
|
|
419
|
-
if (
|
|
420
|
-
const
|
|
421
|
-
Object.defineProperty(this.storedNames,
|
|
615
|
+
), ze.storeName = !0), o = { storeName: !0 });
|
|
616
|
+
const i = o !== void 0 ? o.storeName : !1, a = o !== void 0 ? o.overwrite : !1;
|
|
617
|
+
if (i) {
|
|
618
|
+
const r = this.original.slice(e, n);
|
|
619
|
+
Object.defineProperty(this.storedNames, r, {
|
|
422
620
|
writable: !0,
|
|
423
621
|
value: !0,
|
|
424
622
|
enumerable: !0
|
|
425
623
|
});
|
|
426
624
|
}
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
429
|
-
let
|
|
430
|
-
for (;
|
|
431
|
-
if (
|
|
625
|
+
const c = this.byStart[e], s = this.byEnd[n];
|
|
626
|
+
if (c) {
|
|
627
|
+
let r = c;
|
|
628
|
+
for (; r !== s; ) {
|
|
629
|
+
if (r.next !== this.byStart[r.end])
|
|
432
630
|
throw new Error("Cannot overwrite across a split point");
|
|
433
|
-
|
|
631
|
+
r = r.next, r.edit("", !1);
|
|
434
632
|
}
|
|
435
|
-
|
|
633
|
+
c.edit(t, i, !a);
|
|
436
634
|
} else {
|
|
437
|
-
const
|
|
438
|
-
|
|
635
|
+
const r = new We(e, n, "").edit(t, i);
|
|
636
|
+
s.next = r, r.previous = s;
|
|
439
637
|
}
|
|
440
638
|
return this;
|
|
441
639
|
}
|
|
442
|
-
prepend(
|
|
443
|
-
if (typeof
|
|
444
|
-
return this.intro =
|
|
445
|
-
}
|
|
446
|
-
prependLeft(
|
|
447
|
-
if (
|
|
448
|
-
this._split(
|
|
449
|
-
const
|
|
450
|
-
return
|
|
451
|
-
}
|
|
452
|
-
prependRight(
|
|
453
|
-
if (
|
|
454
|
-
this._split(
|
|
455
|
-
const
|
|
456
|
-
return
|
|
457
|
-
}
|
|
458
|
-
remove(
|
|
459
|
-
if (
|
|
460
|
-
for (;
|
|
640
|
+
prepend(e) {
|
|
641
|
+
if (typeof e != "string") throw new TypeError("outro content must be a string");
|
|
642
|
+
return this.intro = e + this.intro, this;
|
|
643
|
+
}
|
|
644
|
+
prependLeft(e, n) {
|
|
645
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
646
|
+
this._split(e);
|
|
647
|
+
const t = this.byEnd[e];
|
|
648
|
+
return t ? t.prependLeft(n) : this.intro = n + this.intro, this;
|
|
649
|
+
}
|
|
650
|
+
prependRight(e, n) {
|
|
651
|
+
if (e = e + this.offset, typeof n != "string") throw new TypeError("inserted content must be a string");
|
|
652
|
+
this._split(e);
|
|
653
|
+
const t = this.byStart[e];
|
|
654
|
+
return t ? t.prependRight(n) : this.outro = n + this.outro, this;
|
|
655
|
+
}
|
|
656
|
+
remove(e, n) {
|
|
657
|
+
if (e = e + this.offset, n = n + this.offset, this.original.length !== 0) {
|
|
658
|
+
for (; e < 0; ) e += this.original.length;
|
|
461
659
|
for (; n < 0; ) n += this.original.length;
|
|
462
660
|
}
|
|
463
|
-
if (
|
|
464
|
-
if (
|
|
465
|
-
if (
|
|
466
|
-
this._split(
|
|
467
|
-
let
|
|
468
|
-
for (;
|
|
469
|
-
|
|
661
|
+
if (e === n) return this;
|
|
662
|
+
if (e < 0 || n > this.original.length) throw new Error("Character is out of bounds");
|
|
663
|
+
if (e > n) throw new Error("end must be greater than start");
|
|
664
|
+
this._split(e), this._split(n);
|
|
665
|
+
let t = this.byStart[e];
|
|
666
|
+
for (; t; )
|
|
667
|
+
t.intro = "", t.outro = "", t.edit(""), t = n > t.end ? this.byStart[t.end] : null;
|
|
470
668
|
return this;
|
|
471
669
|
}
|
|
472
|
-
reset(
|
|
473
|
-
if (
|
|
474
|
-
for (;
|
|
670
|
+
reset(e, n) {
|
|
671
|
+
if (e = e + this.offset, n = n + this.offset, this.original.length !== 0) {
|
|
672
|
+
for (; e < 0; ) e += this.original.length;
|
|
475
673
|
for (; n < 0; ) n += this.original.length;
|
|
476
674
|
}
|
|
477
|
-
if (
|
|
478
|
-
if (
|
|
479
|
-
if (
|
|
480
|
-
this._split(
|
|
481
|
-
let
|
|
482
|
-
for (;
|
|
483
|
-
|
|
675
|
+
if (e === n) return this;
|
|
676
|
+
if (e < 0 || n > this.original.length) throw new Error("Character is out of bounds");
|
|
677
|
+
if (e > n) throw new Error("end must be greater than start");
|
|
678
|
+
this._split(e), this._split(n);
|
|
679
|
+
let t = this.byStart[e];
|
|
680
|
+
for (; t; )
|
|
681
|
+
t.reset(), t = n > t.end ? this.byStart[t.end] : null;
|
|
484
682
|
return this;
|
|
485
683
|
}
|
|
486
684
|
lastChar() {
|
|
487
685
|
if (this.outro.length) return this.outro[this.outro.length - 1];
|
|
488
|
-
let
|
|
686
|
+
let e = this.lastChunk;
|
|
489
687
|
do {
|
|
490
|
-
if (
|
|
491
|
-
if (
|
|
492
|
-
if (
|
|
493
|
-
} while (
|
|
688
|
+
if (e.outro.length) return e.outro[e.outro.length - 1];
|
|
689
|
+
if (e.content.length) return e.content[e.content.length - 1];
|
|
690
|
+
if (e.intro.length) return e.intro[e.intro.length - 1];
|
|
691
|
+
} while (e = e.previous);
|
|
494
692
|
return this.intro.length ? this.intro[this.intro.length - 1] : "";
|
|
495
693
|
}
|
|
496
694
|
lastLine() {
|
|
497
|
-
let
|
|
498
|
-
if (
|
|
499
|
-
let n = this.outro,
|
|
695
|
+
let e = this.outro.lastIndexOf(He);
|
|
696
|
+
if (e !== -1) return this.outro.substr(e + 1);
|
|
697
|
+
let n = this.outro, t = this.lastChunk;
|
|
500
698
|
do {
|
|
501
|
-
if (
|
|
502
|
-
if (
|
|
503
|
-
n =
|
|
699
|
+
if (t.outro.length > 0) {
|
|
700
|
+
if (e = t.outro.lastIndexOf(He), e !== -1) return t.outro.substr(e + 1) + n;
|
|
701
|
+
n = t.outro + n;
|
|
504
702
|
}
|
|
505
|
-
if (
|
|
506
|
-
if (
|
|
507
|
-
n =
|
|
703
|
+
if (t.content.length > 0) {
|
|
704
|
+
if (e = t.content.lastIndexOf(He), e !== -1) return t.content.substr(e + 1) + n;
|
|
705
|
+
n = t.content + n;
|
|
508
706
|
}
|
|
509
|
-
if (
|
|
510
|
-
if (
|
|
511
|
-
n =
|
|
707
|
+
if (t.intro.length > 0) {
|
|
708
|
+
if (e = t.intro.lastIndexOf(He), e !== -1) return t.intro.substr(e + 1) + n;
|
|
709
|
+
n = t.intro + n;
|
|
512
710
|
}
|
|
513
|
-
} while (
|
|
514
|
-
return
|
|
711
|
+
} while (t = t.previous);
|
|
712
|
+
return e = this.intro.lastIndexOf(He), e !== -1 ? this.intro.substr(e + 1) + n : this.intro + n;
|
|
515
713
|
}
|
|
516
|
-
slice(
|
|
517
|
-
if (
|
|
518
|
-
for (;
|
|
714
|
+
slice(e = 0, n = this.original.length - this.offset) {
|
|
715
|
+
if (e = e + this.offset, n = n + this.offset, this.original.length !== 0) {
|
|
716
|
+
for (; e < 0; ) e += this.original.length;
|
|
519
717
|
for (; n < 0; ) n += this.original.length;
|
|
520
718
|
}
|
|
521
|
-
let
|
|
522
|
-
for (;
|
|
523
|
-
if (
|
|
524
|
-
return
|
|
525
|
-
|
|
719
|
+
let t = "", o = this.firstChunk;
|
|
720
|
+
for (; o && (o.start > e || o.end <= e); ) {
|
|
721
|
+
if (o.start < n && o.end >= n)
|
|
722
|
+
return t;
|
|
723
|
+
o = o.next;
|
|
526
724
|
}
|
|
527
|
-
if (
|
|
528
|
-
throw new Error(`Cannot use replaced character ${
|
|
529
|
-
const
|
|
530
|
-
for (;
|
|
531
|
-
|
|
532
|
-
const
|
|
533
|
-
if (
|
|
725
|
+
if (o && o.edited && o.start !== e)
|
|
726
|
+
throw new Error(`Cannot use replaced character ${e} as slice start anchor.`);
|
|
727
|
+
const i = o;
|
|
728
|
+
for (; o; ) {
|
|
729
|
+
o.intro && (i !== o || o.start === e) && (t += o.intro);
|
|
730
|
+
const a = o.start < n && o.end >= n;
|
|
731
|
+
if (a && o.edited && o.end !== n)
|
|
534
732
|
throw new Error(`Cannot use replaced character ${n} as slice end anchor.`);
|
|
535
|
-
const
|
|
536
|
-
if (
|
|
733
|
+
const c = i === o ? e - o.start : 0, s = a ? o.content.length + n - o.end : o.content.length;
|
|
734
|
+
if (t += o.content.slice(c, s), o.outro && (!a || o.end === n) && (t += o.outro), a)
|
|
537
735
|
break;
|
|
538
|
-
|
|
736
|
+
o = o.next;
|
|
539
737
|
}
|
|
540
|
-
return
|
|
738
|
+
return t;
|
|
541
739
|
}
|
|
542
740
|
// TODO deprecate this? not really very useful
|
|
543
|
-
snip(
|
|
544
|
-
const
|
|
545
|
-
return
|
|
741
|
+
snip(e, n) {
|
|
742
|
+
const t = this.clone();
|
|
743
|
+
return t.remove(0, e), t.remove(n, t.original.length), t;
|
|
546
744
|
}
|
|
547
|
-
_split(
|
|
548
|
-
if (this.byStart[
|
|
745
|
+
_split(e) {
|
|
746
|
+
if (this.byStart[e] || this.byEnd[e]) return;
|
|
549
747
|
let n = this.lastSearchedChunk;
|
|
550
|
-
const
|
|
748
|
+
const t = e > n.end;
|
|
551
749
|
for (; n; ) {
|
|
552
|
-
if (n.contains(
|
|
553
|
-
n =
|
|
750
|
+
if (n.contains(e)) return this._splitChunk(n, e);
|
|
751
|
+
n = t ? this.byStart[n.end] : this.byEnd[n.start];
|
|
554
752
|
}
|
|
555
753
|
}
|
|
556
|
-
_splitChunk(
|
|
557
|
-
if (
|
|
558
|
-
const
|
|
754
|
+
_splitChunk(e, n) {
|
|
755
|
+
if (e.edited && e.content.length) {
|
|
756
|
+
const o = mt(this.original)(n);
|
|
559
757
|
throw new Error(
|
|
560
|
-
`Cannot split a chunk that has already been edited (${
|
|
758
|
+
`Cannot split a chunk that has already been edited (${o.line}:${o.column} – "${e.original}")`
|
|
561
759
|
);
|
|
562
760
|
}
|
|
563
|
-
const
|
|
564
|
-
return this.byEnd[n] =
|
|
761
|
+
const t = e.split(n);
|
|
762
|
+
return this.byEnd[n] = e, this.byStart[n] = t, this.byEnd[t.end] = t, e === this.lastChunk && (this.lastChunk = t), this.lastSearchedChunk = e, !0;
|
|
565
763
|
}
|
|
566
764
|
toString() {
|
|
567
|
-
let
|
|
765
|
+
let e = this.intro, n = this.firstChunk;
|
|
568
766
|
for (; n; )
|
|
569
|
-
|
|
570
|
-
return
|
|
767
|
+
e += n.toString(), n = n.next;
|
|
768
|
+
return e + this.outro;
|
|
571
769
|
}
|
|
572
770
|
isEmpty() {
|
|
573
|
-
let
|
|
771
|
+
let e = this.firstChunk;
|
|
574
772
|
do
|
|
575
|
-
if (
|
|
773
|
+
if (e.intro.length && e.intro.trim() || e.content.length && e.content.trim() || e.outro.length && e.outro.trim())
|
|
576
774
|
return !1;
|
|
577
|
-
while (
|
|
775
|
+
while (e = e.next);
|
|
578
776
|
return !0;
|
|
579
777
|
}
|
|
580
778
|
length() {
|
|
581
|
-
let
|
|
779
|
+
let e = this.firstChunk, n = 0;
|
|
582
780
|
do
|
|
583
|
-
n +=
|
|
584
|
-
while (
|
|
781
|
+
n += e.intro.length + e.content.length + e.outro.length;
|
|
782
|
+
while (e = e.next);
|
|
585
783
|
return n;
|
|
586
784
|
}
|
|
587
785
|
trimLines() {
|
|
588
786
|
return this.trim("[\\r\\n]");
|
|
589
787
|
}
|
|
590
|
-
trim(
|
|
591
|
-
return this.trimStart(
|
|
788
|
+
trim(e) {
|
|
789
|
+
return this.trimStart(e).trimEnd(e);
|
|
592
790
|
}
|
|
593
|
-
trimEndAborted(
|
|
594
|
-
const n = new RegExp((
|
|
791
|
+
trimEndAborted(e) {
|
|
792
|
+
const n = new RegExp((e || "\\s") + "+$");
|
|
595
793
|
if (this.outro = this.outro.replace(n, ""), this.outro.length) return !0;
|
|
596
|
-
let
|
|
794
|
+
let t = this.lastChunk;
|
|
597
795
|
do {
|
|
598
|
-
const
|
|
599
|
-
if (
|
|
600
|
-
|
|
601
|
-
} while (
|
|
796
|
+
const o = t.end, i = t.trimEnd(n);
|
|
797
|
+
if (t.end !== o && (this.lastChunk === t && (this.lastChunk = t.next), this.byEnd[t.end] = t, this.byStart[t.next.start] = t.next, this.byEnd[t.next.end] = t.next), i) return !0;
|
|
798
|
+
t = t.previous;
|
|
799
|
+
} while (t);
|
|
602
800
|
return !1;
|
|
603
801
|
}
|
|
604
|
-
trimEnd(
|
|
605
|
-
return this.trimEndAborted(
|
|
802
|
+
trimEnd(e) {
|
|
803
|
+
return this.trimEndAborted(e), this;
|
|
606
804
|
}
|
|
607
|
-
trimStartAborted(
|
|
608
|
-
const n = new RegExp("^" + (
|
|
805
|
+
trimStartAborted(e) {
|
|
806
|
+
const n = new RegExp("^" + (e || "\\s") + "+");
|
|
609
807
|
if (this.intro = this.intro.replace(n, ""), this.intro.length) return !0;
|
|
610
|
-
let
|
|
808
|
+
let t = this.firstChunk;
|
|
611
809
|
do {
|
|
612
|
-
const
|
|
613
|
-
if (
|
|
614
|
-
|
|
615
|
-
} while (
|
|
810
|
+
const o = t.end, i = t.trimStart(n);
|
|
811
|
+
if (t.end !== o && (t === this.lastChunk && (this.lastChunk = t.next), this.byEnd[t.end] = t, this.byStart[t.next.start] = t.next, this.byEnd[t.next.end] = t.next), i) return !0;
|
|
812
|
+
t = t.next;
|
|
813
|
+
} while (t);
|
|
616
814
|
return !1;
|
|
617
815
|
}
|
|
618
|
-
trimStart(
|
|
619
|
-
return this.trimStartAborted(
|
|
816
|
+
trimStart(e) {
|
|
817
|
+
return this.trimStartAborted(e), this;
|
|
620
818
|
}
|
|
621
819
|
hasChanged() {
|
|
622
820
|
return this.original !== this.toString();
|
|
623
821
|
}
|
|
624
|
-
_replaceRegexp(
|
|
625
|
-
function
|
|
626
|
-
return typeof n == "string" ? n.replace(/\$(\$|&|\d+)/g, (
|
|
822
|
+
_replaceRegexp(e, n) {
|
|
823
|
+
function t(i, a) {
|
|
824
|
+
return typeof n == "string" ? n.replace(/\$(\$|&|\d+)/g, (c, s) => s === "$" ? "$" : s === "&" ? i[0] : +s < i.length ? i[+s] : `$${s}`) : n(...i, i.index, a, i.groups);
|
|
627
825
|
}
|
|
628
|
-
function i
|
|
629
|
-
let
|
|
630
|
-
const
|
|
631
|
-
for (;
|
|
632
|
-
|
|
633
|
-
return
|
|
826
|
+
function o(i, a) {
|
|
827
|
+
let c;
|
|
828
|
+
const s = [];
|
|
829
|
+
for (; c = i.exec(a); )
|
|
830
|
+
s.push(c);
|
|
831
|
+
return s;
|
|
634
832
|
}
|
|
635
|
-
if (
|
|
636
|
-
|
|
637
|
-
if (
|
|
638
|
-
const
|
|
639
|
-
|
|
833
|
+
if (e.global)
|
|
834
|
+
o(e, this.original).forEach((a) => {
|
|
835
|
+
if (a.index != null) {
|
|
836
|
+
const c = t(a, this.original);
|
|
837
|
+
c !== a[0] && this.overwrite(a.index, a.index + a[0].length, c);
|
|
640
838
|
}
|
|
641
839
|
});
|
|
642
840
|
else {
|
|
643
|
-
const
|
|
644
|
-
if (
|
|
645
|
-
const
|
|
646
|
-
|
|
841
|
+
const i = this.original.match(e);
|
|
842
|
+
if (i && i.index != null) {
|
|
843
|
+
const a = t(i, this.original);
|
|
844
|
+
a !== i[0] && this.overwrite(i.index, i.index + i[0].length, a);
|
|
647
845
|
}
|
|
648
846
|
}
|
|
649
847
|
return this;
|
|
650
848
|
}
|
|
651
|
-
_replaceString(
|
|
652
|
-
const { original:
|
|
653
|
-
return
|
|
849
|
+
_replaceString(e, n) {
|
|
850
|
+
const { original: t } = this, o = t.indexOf(e);
|
|
851
|
+
return o !== -1 && this.overwrite(o, o + e.length, n), this;
|
|
654
852
|
}
|
|
655
|
-
replace(
|
|
656
|
-
return typeof
|
|
853
|
+
replace(e, n) {
|
|
854
|
+
return typeof e == "string" ? this._replaceString(e, n) : this._replaceRegexp(e, n);
|
|
657
855
|
}
|
|
658
|
-
_replaceAllString(
|
|
659
|
-
const { original:
|
|
660
|
-
for (let
|
|
661
|
-
|
|
856
|
+
_replaceAllString(e, n) {
|
|
857
|
+
const { original: t } = this, o = e.length;
|
|
858
|
+
for (let i = t.indexOf(e); i !== -1; i = t.indexOf(e, i + o))
|
|
859
|
+
t.slice(i, i + o) !== n && this.overwrite(i, i + o, n);
|
|
662
860
|
return this;
|
|
663
861
|
}
|
|
664
|
-
replaceAll(
|
|
665
|
-
if (typeof
|
|
666
|
-
return this._replaceAllString(
|
|
667
|
-
if (!
|
|
862
|
+
replaceAll(e, n) {
|
|
863
|
+
if (typeof e == "string")
|
|
864
|
+
return this._replaceAllString(e, n);
|
|
865
|
+
if (!e.global)
|
|
668
866
|
throw new TypeError(
|
|
669
867
|
"MagicString.prototype.replaceAll called with a non-global RegExp argument"
|
|
670
868
|
);
|
|
671
|
-
return this._replaceRegexp(
|
|
869
|
+
return this._replaceRegexp(e, n);
|
|
672
870
|
}
|
|
673
871
|
}
|
|
674
|
-
const
|
|
675
|
-
const n =
|
|
676
|
-
for (const [
|
|
677
|
-
n[
|
|
872
|
+
const Ge = (h, e) => {
|
|
873
|
+
const n = h.__vccOpts || h;
|
|
874
|
+
for (const [t, o] of e)
|
|
875
|
+
n[t] = o;
|
|
678
876
|
return n;
|
|
679
|
-
},
|
|
680
|
-
|
|
877
|
+
}, ee = Xe(!1), Y = k(() => {
|
|
878
|
+
ee.value = !0;
|
|
681
879
|
}, {
|
|
682
880
|
metaData: {
|
|
683
881
|
id: "engine.setting.event.BindEventsDialog.open"
|
|
684
882
|
},
|
|
685
883
|
ctx: () => ({
|
|
686
|
-
string2Ast:
|
|
687
|
-
getMergeMeta:
|
|
688
|
-
useCanvas:
|
|
689
|
-
useHistory:
|
|
690
|
-
useLayout:
|
|
691
|
-
getOptions:
|
|
692
|
-
getMetaApi:
|
|
693
|
-
META_APP:
|
|
694
|
-
MagicString:
|
|
695
|
-
meta:
|
|
696
|
-
dialogVisible:
|
|
697
|
-
open:
|
|
698
|
-
close:
|
|
884
|
+
string2Ast: ae,
|
|
885
|
+
getMergeMeta: K,
|
|
886
|
+
useCanvas: N,
|
|
887
|
+
useHistory: le,
|
|
888
|
+
useLayout: J,
|
|
889
|
+
getOptions: re,
|
|
890
|
+
getMetaApi: M,
|
|
891
|
+
META_APP: V,
|
|
892
|
+
MagicString: Q,
|
|
893
|
+
meta: Z,
|
|
894
|
+
dialogVisible: ee,
|
|
895
|
+
open: Y,
|
|
896
|
+
close: ie
|
|
699
897
|
})
|
|
700
|
-
}),
|
|
701
|
-
|
|
898
|
+
}), ie = k(() => {
|
|
899
|
+
ee.value = !1;
|
|
702
900
|
}, {
|
|
703
901
|
metaData: {
|
|
704
902
|
id: "engine.setting.event.BindEventsDialog.close"
|
|
705
903
|
},
|
|
706
904
|
ctx: () => ({
|
|
707
|
-
string2Ast:
|
|
708
|
-
getMergeMeta:
|
|
709
|
-
useCanvas:
|
|
710
|
-
useHistory:
|
|
711
|
-
useLayout:
|
|
712
|
-
getOptions:
|
|
713
|
-
getMetaApi:
|
|
714
|
-
META_APP:
|
|
715
|
-
MagicString:
|
|
716
|
-
meta:
|
|
717
|
-
dialogVisible:
|
|
718
|
-
open:
|
|
719
|
-
close:
|
|
905
|
+
string2Ast: ae,
|
|
906
|
+
getMergeMeta: K,
|
|
907
|
+
useCanvas: N,
|
|
908
|
+
useHistory: le,
|
|
909
|
+
useLayout: J,
|
|
910
|
+
getOptions: re,
|
|
911
|
+
getMetaApi: M,
|
|
912
|
+
META_APP: V,
|
|
913
|
+
MagicString: Q,
|
|
914
|
+
meta: Z,
|
|
915
|
+
dialogVisible: ee,
|
|
916
|
+
open: Y,
|
|
917
|
+
close: ie
|
|
720
918
|
})
|
|
721
|
-
}),
|
|
919
|
+
}), Jt = {
|
|
722
920
|
components: {
|
|
723
|
-
TinyButton:
|
|
724
|
-
TinyDialogBox:
|
|
725
|
-
TinyAlert:
|
|
921
|
+
TinyButton: tt,
|
|
922
|
+
TinyDialogBox: Et,
|
|
923
|
+
TinyAlert: kt
|
|
726
924
|
},
|
|
727
925
|
inheritAttrs: !1,
|
|
728
926
|
props: {
|
|
@@ -731,20 +929,20 @@ const Bt = (c, t) => {
|
|
|
731
929
|
default: () => ({})
|
|
732
930
|
}
|
|
733
931
|
},
|
|
734
|
-
setup(
|
|
932
|
+
setup(h) {
|
|
735
933
|
const {
|
|
736
|
-
BindEventsDialogSidebar:
|
|
934
|
+
BindEventsDialogSidebar: e,
|
|
737
935
|
BindEventsDialogContent: n
|
|
738
|
-
} =
|
|
739
|
-
PLUGIN_NAME:
|
|
740
|
-
activePlugin:
|
|
936
|
+
} = K(Z.id).components, {
|
|
937
|
+
PLUGIN_NAME: t,
|
|
938
|
+
activePlugin: o
|
|
939
|
+
} = J(), {
|
|
940
|
+
pageState: i
|
|
741
941
|
} = N(), {
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
highlightMethod: a
|
|
747
|
-
} = k(C.Page), d = Ut({
|
|
942
|
+
getMethods: a,
|
|
943
|
+
saveMethod: c,
|
|
944
|
+
highlightMethod: s
|
|
945
|
+
} = M(V.Page), r = Ze({
|
|
748
946
|
editorContent: "",
|
|
749
947
|
bindMethodInfo: {},
|
|
750
948
|
tip: "",
|
|
@@ -752,297 +950,297 @@ const Bt = (c, t) => {
|
|
|
752
950
|
enableExtraParams: !1,
|
|
753
951
|
isValidParams: !0
|
|
754
952
|
});
|
|
755
|
-
|
|
756
|
-
const
|
|
757
|
-
|
|
953
|
+
vt("context", r);
|
|
954
|
+
const b = k((D) => {
|
|
955
|
+
r.bindMethodInfo = D;
|
|
758
956
|
}, {
|
|
759
957
|
metaData: {
|
|
760
958
|
id: "engine.setting.event.BindEventsDialog.selectMethod"
|
|
761
959
|
},
|
|
762
960
|
ctx: () => ({
|
|
763
|
-
props:
|
|
764
|
-
BindEventsDialogSidebar:
|
|
961
|
+
props: h,
|
|
962
|
+
BindEventsDialogSidebar: e,
|
|
765
963
|
BindEventsDialogContent: n,
|
|
766
|
-
PLUGIN_NAME:
|
|
767
|
-
activePlugin:
|
|
768
|
-
pageState:
|
|
769
|
-
getMethods:
|
|
770
|
-
saveMethod:
|
|
771
|
-
highlightMethod:
|
|
772
|
-
state:
|
|
773
|
-
selectMethod:
|
|
964
|
+
PLUGIN_NAME: t,
|
|
965
|
+
activePlugin: o,
|
|
966
|
+
pageState: i,
|
|
967
|
+
getMethods: a,
|
|
968
|
+
saveMethod: c,
|
|
969
|
+
highlightMethod: s,
|
|
970
|
+
state: r,
|
|
971
|
+
selectMethod: b,
|
|
774
972
|
bindMethod: l,
|
|
775
|
-
resetTipError:
|
|
776
|
-
getExtraParams:
|
|
777
|
-
getFormatParams:
|
|
778
|
-
rewriteMethodParams:
|
|
779
|
-
activePagePlugin:
|
|
780
|
-
confirm:
|
|
781
|
-
openedDialog:
|
|
782
|
-
closeDialog:
|
|
783
|
-
string2Ast:
|
|
784
|
-
getMergeMeta:
|
|
785
|
-
useCanvas:
|
|
786
|
-
useHistory:
|
|
787
|
-
useLayout:
|
|
788
|
-
getOptions:
|
|
789
|
-
getMetaApi:
|
|
790
|
-
META_APP:
|
|
791
|
-
MagicString:
|
|
792
|
-
meta:
|
|
793
|
-
dialogVisible:
|
|
794
|
-
open:
|
|
795
|
-
close:
|
|
973
|
+
resetTipError: v,
|
|
974
|
+
getExtraParams: g,
|
|
975
|
+
getFormatParams: m,
|
|
976
|
+
rewriteMethodParams: C,
|
|
977
|
+
activePagePlugin: A,
|
|
978
|
+
confirm: I,
|
|
979
|
+
openedDialog: T,
|
|
980
|
+
closeDialog: z,
|
|
981
|
+
string2Ast: ae,
|
|
982
|
+
getMergeMeta: K,
|
|
983
|
+
useCanvas: N,
|
|
984
|
+
useHistory: le,
|
|
985
|
+
useLayout: J,
|
|
986
|
+
getOptions: re,
|
|
987
|
+
getMetaApi: M,
|
|
988
|
+
META_APP: V,
|
|
989
|
+
MagicString: Q,
|
|
990
|
+
meta: Z,
|
|
991
|
+
dialogVisible: ee,
|
|
992
|
+
open: Y,
|
|
993
|
+
close: ie
|
|
796
994
|
})
|
|
797
|
-
}), l =
|
|
798
|
-
var
|
|
799
|
-
if (!
|
|
995
|
+
}), l = k((D) => {
|
|
996
|
+
var de, te;
|
|
997
|
+
if (!D)
|
|
800
998
|
return;
|
|
801
|
-
const
|
|
802
|
-
if (!
|
|
999
|
+
const y = (de = h.eventBinding) == null ? void 0 : de.eventName;
|
|
1000
|
+
if (!y)
|
|
803
1001
|
return;
|
|
804
|
-
const
|
|
805
|
-
if (!
|
|
1002
|
+
const B = (te = i == null ? void 0 : i.currentSchema) == null ? void 0 : te.props;
|
|
1003
|
+
if (!B)
|
|
806
1004
|
return;
|
|
807
1005
|
const {
|
|
808
|
-
name:
|
|
809
|
-
extra:
|
|
810
|
-
} =
|
|
811
|
-
|
|
1006
|
+
name: q,
|
|
1007
|
+
extra: me
|
|
1008
|
+
} = D;
|
|
1009
|
+
h[y] || (B[y] = {
|
|
812
1010
|
type: "JSExpression",
|
|
813
1011
|
value: ""
|
|
814
|
-
}),
|
|
1012
|
+
}), me && r.enableExtraParams && (B[y].params = me), B[y].value = `this.${q}`, le().addHistory();
|
|
815
1013
|
}, {
|
|
816
1014
|
metaData: {
|
|
817
1015
|
id: "engine.setting.event.BindEventsDialog.bindMethod"
|
|
818
1016
|
},
|
|
819
1017
|
ctx: () => ({
|
|
820
|
-
props:
|
|
821
|
-
BindEventsDialogSidebar:
|
|
1018
|
+
props: h,
|
|
1019
|
+
BindEventsDialogSidebar: e,
|
|
822
1020
|
BindEventsDialogContent: n,
|
|
823
|
-
PLUGIN_NAME:
|
|
824
|
-
activePlugin:
|
|
825
|
-
pageState:
|
|
826
|
-
getMethods:
|
|
827
|
-
saveMethod:
|
|
828
|
-
highlightMethod:
|
|
829
|
-
state:
|
|
830
|
-
selectMethod:
|
|
1021
|
+
PLUGIN_NAME: t,
|
|
1022
|
+
activePlugin: o,
|
|
1023
|
+
pageState: i,
|
|
1024
|
+
getMethods: a,
|
|
1025
|
+
saveMethod: c,
|
|
1026
|
+
highlightMethod: s,
|
|
1027
|
+
state: r,
|
|
1028
|
+
selectMethod: b,
|
|
831
1029
|
bindMethod: l,
|
|
832
|
-
resetTipError:
|
|
833
|
-
getExtraParams:
|
|
834
|
-
getFormatParams:
|
|
835
|
-
rewriteMethodParams:
|
|
836
|
-
activePagePlugin:
|
|
837
|
-
confirm:
|
|
838
|
-
openedDialog:
|
|
839
|
-
closeDialog:
|
|
840
|
-
string2Ast:
|
|
841
|
-
getMergeMeta:
|
|
842
|
-
useCanvas:
|
|
843
|
-
useHistory:
|
|
844
|
-
useLayout:
|
|
845
|
-
getOptions:
|
|
846
|
-
getMetaApi:
|
|
847
|
-
META_APP:
|
|
848
|
-
MagicString:
|
|
849
|
-
meta:
|
|
850
|
-
dialogVisible:
|
|
851
|
-
open:
|
|
852
|
-
close:
|
|
1030
|
+
resetTipError: v,
|
|
1031
|
+
getExtraParams: g,
|
|
1032
|
+
getFormatParams: m,
|
|
1033
|
+
rewriteMethodParams: C,
|
|
1034
|
+
activePagePlugin: A,
|
|
1035
|
+
confirm: I,
|
|
1036
|
+
openedDialog: T,
|
|
1037
|
+
closeDialog: z,
|
|
1038
|
+
string2Ast: ae,
|
|
1039
|
+
getMergeMeta: K,
|
|
1040
|
+
useCanvas: N,
|
|
1041
|
+
useHistory: le,
|
|
1042
|
+
useLayout: J,
|
|
1043
|
+
getOptions: re,
|
|
1044
|
+
getMetaApi: M,
|
|
1045
|
+
META_APP: V,
|
|
1046
|
+
MagicString: Q,
|
|
1047
|
+
meta: Z,
|
|
1048
|
+
dialogVisible: ee,
|
|
1049
|
+
open: Y,
|
|
1050
|
+
close: ie
|
|
853
1051
|
})
|
|
854
|
-
}),
|
|
855
|
-
|
|
1052
|
+
}), v = k(() => {
|
|
1053
|
+
r.tipError = !1, r.tip = "", r.isValidParams = !0;
|
|
856
1054
|
}, {
|
|
857
1055
|
metaData: {
|
|
858
1056
|
id: "engine.setting.event.BindEventsDialog.resetTipError"
|
|
859
1057
|
},
|
|
860
1058
|
ctx: () => ({
|
|
861
|
-
props:
|
|
862
|
-
BindEventsDialogSidebar:
|
|
1059
|
+
props: h,
|
|
1060
|
+
BindEventsDialogSidebar: e,
|
|
863
1061
|
BindEventsDialogContent: n,
|
|
864
|
-
PLUGIN_NAME:
|
|
865
|
-
activePlugin:
|
|
866
|
-
pageState:
|
|
867
|
-
getMethods:
|
|
868
|
-
saveMethod:
|
|
869
|
-
highlightMethod:
|
|
870
|
-
state:
|
|
871
|
-
selectMethod:
|
|
1062
|
+
PLUGIN_NAME: t,
|
|
1063
|
+
activePlugin: o,
|
|
1064
|
+
pageState: i,
|
|
1065
|
+
getMethods: a,
|
|
1066
|
+
saveMethod: c,
|
|
1067
|
+
highlightMethod: s,
|
|
1068
|
+
state: r,
|
|
1069
|
+
selectMethod: b,
|
|
872
1070
|
bindMethod: l,
|
|
873
|
-
resetTipError:
|
|
874
|
-
getExtraParams:
|
|
875
|
-
getFormatParams:
|
|
876
|
-
rewriteMethodParams:
|
|
877
|
-
activePagePlugin:
|
|
878
|
-
confirm:
|
|
879
|
-
openedDialog:
|
|
880
|
-
closeDialog:
|
|
881
|
-
string2Ast:
|
|
882
|
-
getMergeMeta:
|
|
883
|
-
useCanvas:
|
|
884
|
-
useHistory:
|
|
885
|
-
useLayout:
|
|
886
|
-
getOptions:
|
|
887
|
-
getMetaApi:
|
|
888
|
-
META_APP:
|
|
889
|
-
MagicString:
|
|
890
|
-
meta:
|
|
891
|
-
dialogVisible:
|
|
892
|
-
open:
|
|
893
|
-
close:
|
|
1071
|
+
resetTipError: v,
|
|
1072
|
+
getExtraParams: g,
|
|
1073
|
+
getFormatParams: m,
|
|
1074
|
+
rewriteMethodParams: C,
|
|
1075
|
+
activePagePlugin: A,
|
|
1076
|
+
confirm: I,
|
|
1077
|
+
openedDialog: T,
|
|
1078
|
+
closeDialog: z,
|
|
1079
|
+
string2Ast: ae,
|
|
1080
|
+
getMergeMeta: K,
|
|
1081
|
+
useCanvas: N,
|
|
1082
|
+
useHistory: le,
|
|
1083
|
+
useLayout: J,
|
|
1084
|
+
getOptions: re,
|
|
1085
|
+
getMetaApi: M,
|
|
1086
|
+
META_APP: V,
|
|
1087
|
+
MagicString: Q,
|
|
1088
|
+
meta: Z,
|
|
1089
|
+
dialogVisible: ee,
|
|
1090
|
+
open: Y,
|
|
1091
|
+
close: ie
|
|
894
1092
|
})
|
|
895
|
-
}),
|
|
896
|
-
let
|
|
897
|
-
if (
|
|
1093
|
+
}), g = k(() => {
|
|
1094
|
+
let D = "";
|
|
1095
|
+
if (r.enableExtraParams)
|
|
898
1096
|
try {
|
|
899
|
-
|
|
1097
|
+
D = JSON.parse(r.editorContent), r.isValidParams = Array.isArray(D);
|
|
900
1098
|
} catch {
|
|
901
|
-
|
|
1099
|
+
r.isValidParams = !1;
|
|
902
1100
|
}
|
|
903
|
-
return
|
|
1101
|
+
return D;
|
|
904
1102
|
}, {
|
|
905
1103
|
metaData: {
|
|
906
1104
|
id: "engine.setting.event.BindEventsDialog.getExtraParams"
|
|
907
1105
|
},
|
|
908
1106
|
ctx: () => ({
|
|
909
|
-
props:
|
|
910
|
-
BindEventsDialogSidebar:
|
|
1107
|
+
props: h,
|
|
1108
|
+
BindEventsDialogSidebar: e,
|
|
911
1109
|
BindEventsDialogContent: n,
|
|
912
|
-
PLUGIN_NAME:
|
|
913
|
-
activePlugin:
|
|
914
|
-
pageState:
|
|
915
|
-
getMethods:
|
|
916
|
-
saveMethod:
|
|
917
|
-
highlightMethod:
|
|
918
|
-
state:
|
|
919
|
-
selectMethod:
|
|
1110
|
+
PLUGIN_NAME: t,
|
|
1111
|
+
activePlugin: o,
|
|
1112
|
+
pageState: i,
|
|
1113
|
+
getMethods: a,
|
|
1114
|
+
saveMethod: c,
|
|
1115
|
+
highlightMethod: s,
|
|
1116
|
+
state: r,
|
|
1117
|
+
selectMethod: b,
|
|
920
1118
|
bindMethod: l,
|
|
921
|
-
resetTipError:
|
|
922
|
-
getExtraParams:
|
|
923
|
-
getFormatParams:
|
|
924
|
-
rewriteMethodParams:
|
|
925
|
-
activePagePlugin:
|
|
926
|
-
confirm:
|
|
927
|
-
openedDialog:
|
|
928
|
-
closeDialog:
|
|
929
|
-
string2Ast:
|
|
930
|
-
getMergeMeta:
|
|
931
|
-
useCanvas:
|
|
932
|
-
useHistory:
|
|
933
|
-
useLayout:
|
|
934
|
-
getOptions:
|
|
935
|
-
getMetaApi:
|
|
936
|
-
META_APP:
|
|
937
|
-
MagicString:
|
|
938
|
-
meta:
|
|
939
|
-
dialogVisible:
|
|
940
|
-
open:
|
|
941
|
-
close:
|
|
1119
|
+
resetTipError: v,
|
|
1120
|
+
getExtraParams: g,
|
|
1121
|
+
getFormatParams: m,
|
|
1122
|
+
rewriteMethodParams: C,
|
|
1123
|
+
activePagePlugin: A,
|
|
1124
|
+
confirm: I,
|
|
1125
|
+
openedDialog: T,
|
|
1126
|
+
closeDialog: z,
|
|
1127
|
+
string2Ast: ae,
|
|
1128
|
+
getMergeMeta: K,
|
|
1129
|
+
useCanvas: N,
|
|
1130
|
+
useHistory: le,
|
|
1131
|
+
useLayout: J,
|
|
1132
|
+
getOptions: re,
|
|
1133
|
+
getMetaApi: M,
|
|
1134
|
+
META_APP: V,
|
|
1135
|
+
MagicString: Q,
|
|
1136
|
+
meta: Z,
|
|
1137
|
+
dialogVisible: ee,
|
|
1138
|
+
open: Y,
|
|
1139
|
+
close: ie
|
|
942
1140
|
})
|
|
943
|
-
}),
|
|
944
|
-
length:
|
|
945
|
-
}, (
|
|
1141
|
+
}), m = k((D) => Array.from({
|
|
1142
|
+
length: D.length
|
|
1143
|
+
}, (y, B) => `args${B}`).join(","), {
|
|
946
1144
|
metaData: {
|
|
947
1145
|
id: "engine.setting.event.BindEventsDialog.getFormatParams"
|
|
948
1146
|
},
|
|
949
1147
|
ctx: () => ({
|
|
950
|
-
props:
|
|
951
|
-
BindEventsDialogSidebar:
|
|
1148
|
+
props: h,
|
|
1149
|
+
BindEventsDialogSidebar: e,
|
|
952
1150
|
BindEventsDialogContent: n,
|
|
953
|
-
PLUGIN_NAME:
|
|
954
|
-
activePlugin:
|
|
955
|
-
pageState:
|
|
956
|
-
getMethods:
|
|
957
|
-
saveMethod:
|
|
958
|
-
highlightMethod:
|
|
959
|
-
state:
|
|
960
|
-
selectMethod:
|
|
1151
|
+
PLUGIN_NAME: t,
|
|
1152
|
+
activePlugin: o,
|
|
1153
|
+
pageState: i,
|
|
1154
|
+
getMethods: a,
|
|
1155
|
+
saveMethod: c,
|
|
1156
|
+
highlightMethod: s,
|
|
1157
|
+
state: r,
|
|
1158
|
+
selectMethod: b,
|
|
961
1159
|
bindMethod: l,
|
|
962
|
-
resetTipError:
|
|
963
|
-
getExtraParams:
|
|
964
|
-
getFormatParams:
|
|
965
|
-
rewriteMethodParams:
|
|
966
|
-
activePagePlugin:
|
|
967
|
-
confirm:
|
|
968
|
-
openedDialog:
|
|
969
|
-
closeDialog:
|
|
970
|
-
string2Ast:
|
|
971
|
-
getMergeMeta:
|
|
972
|
-
useCanvas:
|
|
973
|
-
useHistory:
|
|
974
|
-
useLayout:
|
|
975
|
-
getOptions:
|
|
976
|
-
getMetaApi:
|
|
977
|
-
META_APP:
|
|
978
|
-
MagicString:
|
|
979
|
-
meta:
|
|
980
|
-
dialogVisible:
|
|
981
|
-
open:
|
|
982
|
-
close:
|
|
1160
|
+
resetTipError: v,
|
|
1161
|
+
getExtraParams: g,
|
|
1162
|
+
getFormatParams: m,
|
|
1163
|
+
rewriteMethodParams: C,
|
|
1164
|
+
activePagePlugin: A,
|
|
1165
|
+
confirm: I,
|
|
1166
|
+
openedDialog: T,
|
|
1167
|
+
closeDialog: z,
|
|
1168
|
+
string2Ast: ae,
|
|
1169
|
+
getMergeMeta: K,
|
|
1170
|
+
useCanvas: N,
|
|
1171
|
+
useHistory: le,
|
|
1172
|
+
useLayout: J,
|
|
1173
|
+
getOptions: re,
|
|
1174
|
+
getMetaApi: M,
|
|
1175
|
+
META_APP: V,
|
|
1176
|
+
MagicString: Q,
|
|
1177
|
+
meta: Z,
|
|
1178
|
+
dialogVisible: ee,
|
|
1179
|
+
open: Y,
|
|
1180
|
+
close: ie
|
|
983
1181
|
})
|
|
984
|
-
}),
|
|
985
|
-
var
|
|
986
|
-
const
|
|
1182
|
+
}), C = k((D, y, B, q, me) => {
|
|
1183
|
+
var p, u, d, f, E;
|
|
1184
|
+
const de = me && q.length ? `event,${B}` : B, te = `function ${y} (${de}) {
|
|
987
1185
|
}
|
|
988
1186
|
`;
|
|
989
|
-
if (!
|
|
990
|
-
return
|
|
1187
|
+
if (!D)
|
|
1188
|
+
return te;
|
|
991
1189
|
try {
|
|
992
|
-
const
|
|
993
|
-
if (((
|
|
994
|
-
return
|
|
995
|
-
if (((
|
|
996
|
-
return
|
|
997
|
-
const
|
|
998
|
-
return
|
|
1190
|
+
const w = new Q(D), x = ae(D);
|
|
1191
|
+
if (((u = (p = x == null ? void 0 : x.program) == null ? void 0 : p.body[0]) == null ? void 0 : u.type) !== "FunctionDeclaration")
|
|
1192
|
+
return te;
|
|
1193
|
+
if (((d = x == null ? void 0 : x.program) == null ? void 0 : d.body[0].params.length) === q.length + 1)
|
|
1194
|
+
return D;
|
|
1195
|
+
const L = (f = x == null ? void 0 : x.program) == null ? void 0 : f.body[0].id.end, U = (E = x == null ? void 0 : x.program) == null ? void 0 : E.body[0].body.start;
|
|
1196
|
+
return w.remove(L, U), w.appendLeft(L, `(${de})`), w.toString();
|
|
999
1197
|
} catch {
|
|
1000
|
-
return
|
|
1198
|
+
return te;
|
|
1001
1199
|
}
|
|
1002
1200
|
}, {
|
|
1003
1201
|
metaData: {
|
|
1004
1202
|
id: "engine.setting.event.BindEventsDialog.rewriteMethodParams"
|
|
1005
1203
|
},
|
|
1006
1204
|
ctx: () => ({
|
|
1007
|
-
props:
|
|
1008
|
-
BindEventsDialogSidebar:
|
|
1205
|
+
props: h,
|
|
1206
|
+
BindEventsDialogSidebar: e,
|
|
1009
1207
|
BindEventsDialogContent: n,
|
|
1010
|
-
PLUGIN_NAME:
|
|
1011
|
-
activePlugin:
|
|
1012
|
-
pageState:
|
|
1013
|
-
getMethods:
|
|
1014
|
-
saveMethod:
|
|
1015
|
-
highlightMethod:
|
|
1016
|
-
state:
|
|
1017
|
-
selectMethod:
|
|
1208
|
+
PLUGIN_NAME: t,
|
|
1209
|
+
activePlugin: o,
|
|
1210
|
+
pageState: i,
|
|
1211
|
+
getMethods: a,
|
|
1212
|
+
saveMethod: c,
|
|
1213
|
+
highlightMethod: s,
|
|
1214
|
+
state: r,
|
|
1215
|
+
selectMethod: b,
|
|
1018
1216
|
bindMethod: l,
|
|
1019
|
-
resetTipError:
|
|
1020
|
-
getExtraParams:
|
|
1021
|
-
getFormatParams:
|
|
1022
|
-
rewriteMethodParams:
|
|
1023
|
-
activePagePlugin:
|
|
1024
|
-
confirm:
|
|
1025
|
-
openedDialog:
|
|
1026
|
-
closeDialog:
|
|
1027
|
-
string2Ast:
|
|
1028
|
-
getMergeMeta:
|
|
1029
|
-
useCanvas:
|
|
1030
|
-
useHistory:
|
|
1031
|
-
useLayout:
|
|
1032
|
-
getOptions:
|
|
1033
|
-
getMetaApi:
|
|
1034
|
-
META_APP:
|
|
1035
|
-
MagicString:
|
|
1036
|
-
meta:
|
|
1037
|
-
dialogVisible:
|
|
1038
|
-
open:
|
|
1039
|
-
close:
|
|
1217
|
+
resetTipError: v,
|
|
1218
|
+
getExtraParams: g,
|
|
1219
|
+
getFormatParams: m,
|
|
1220
|
+
rewriteMethodParams: C,
|
|
1221
|
+
activePagePlugin: A,
|
|
1222
|
+
confirm: I,
|
|
1223
|
+
openedDialog: T,
|
|
1224
|
+
closeDialog: z,
|
|
1225
|
+
string2Ast: ae,
|
|
1226
|
+
getMergeMeta: K,
|
|
1227
|
+
useCanvas: N,
|
|
1228
|
+
useHistory: le,
|
|
1229
|
+
useLayout: J,
|
|
1230
|
+
getOptions: re,
|
|
1231
|
+
getMetaApi: M,
|
|
1232
|
+
META_APP: V,
|
|
1233
|
+
MagicString: Q,
|
|
1234
|
+
meta: Z,
|
|
1235
|
+
dialogVisible: ee,
|
|
1236
|
+
open: Y,
|
|
1237
|
+
close: ie
|
|
1040
1238
|
})
|
|
1041
|
-
}),
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1239
|
+
}), A = k(() => {
|
|
1240
|
+
o(t.Page).then(() => {
|
|
1241
|
+
wt(() => {
|
|
1242
|
+
var D;
|
|
1243
|
+
s && s((D = r.bindMethodInfo) == null ? void 0 : D.name);
|
|
1046
1244
|
});
|
|
1047
1245
|
});
|
|
1048
1246
|
}, {
|
|
@@ -1050,252 +1248,252 @@ const Bt = (c, t) => {
|
|
|
1050
1248
|
id: "engine.setting.event.BindEventsDialog.activePagePlugin"
|
|
1051
1249
|
},
|
|
1052
1250
|
ctx: () => ({
|
|
1053
|
-
props:
|
|
1054
|
-
BindEventsDialogSidebar:
|
|
1251
|
+
props: h,
|
|
1252
|
+
BindEventsDialogSidebar: e,
|
|
1055
1253
|
BindEventsDialogContent: n,
|
|
1056
|
-
PLUGIN_NAME:
|
|
1057
|
-
activePlugin:
|
|
1058
|
-
pageState:
|
|
1059
|
-
getMethods:
|
|
1060
|
-
saveMethod:
|
|
1061
|
-
highlightMethod:
|
|
1062
|
-
state:
|
|
1063
|
-
selectMethod:
|
|
1254
|
+
PLUGIN_NAME: t,
|
|
1255
|
+
activePlugin: o,
|
|
1256
|
+
pageState: i,
|
|
1257
|
+
getMethods: a,
|
|
1258
|
+
saveMethod: c,
|
|
1259
|
+
highlightMethod: s,
|
|
1260
|
+
state: r,
|
|
1261
|
+
selectMethod: b,
|
|
1064
1262
|
bindMethod: l,
|
|
1065
|
-
resetTipError:
|
|
1066
|
-
getExtraParams:
|
|
1067
|
-
getFormatParams:
|
|
1068
|
-
rewriteMethodParams:
|
|
1069
|
-
activePagePlugin:
|
|
1070
|
-
confirm:
|
|
1071
|
-
openedDialog:
|
|
1072
|
-
closeDialog:
|
|
1073
|
-
string2Ast:
|
|
1074
|
-
getMergeMeta:
|
|
1075
|
-
useCanvas:
|
|
1076
|
-
useHistory:
|
|
1077
|
-
useLayout:
|
|
1078
|
-
getOptions:
|
|
1079
|
-
getMetaApi:
|
|
1080
|
-
META_APP:
|
|
1081
|
-
MagicString:
|
|
1082
|
-
meta:
|
|
1083
|
-
dialogVisible:
|
|
1084
|
-
open:
|
|
1085
|
-
close:
|
|
1263
|
+
resetTipError: v,
|
|
1264
|
+
getExtraParams: g,
|
|
1265
|
+
getFormatParams: m,
|
|
1266
|
+
rewriteMethodParams: C,
|
|
1267
|
+
activePagePlugin: A,
|
|
1268
|
+
confirm: I,
|
|
1269
|
+
openedDialog: T,
|
|
1270
|
+
closeDialog: z,
|
|
1271
|
+
string2Ast: ae,
|
|
1272
|
+
getMergeMeta: K,
|
|
1273
|
+
useCanvas: N,
|
|
1274
|
+
useHistory: le,
|
|
1275
|
+
useLayout: J,
|
|
1276
|
+
getOptions: re,
|
|
1277
|
+
getMetaApi: M,
|
|
1278
|
+
META_APP: V,
|
|
1279
|
+
MagicString: Q,
|
|
1280
|
+
meta: Z,
|
|
1281
|
+
dialogVisible: ee,
|
|
1282
|
+
open: Y,
|
|
1283
|
+
close: ie
|
|
1086
1284
|
})
|
|
1087
|
-
}),
|
|
1088
|
-
var
|
|
1089
|
-
if (
|
|
1285
|
+
}), I = k(async () => {
|
|
1286
|
+
var u, d;
|
|
1287
|
+
if (r.tipError)
|
|
1090
1288
|
return;
|
|
1091
|
-
let
|
|
1092
|
-
const
|
|
1093
|
-
let
|
|
1094
|
-
if (!
|
|
1289
|
+
let D = "event";
|
|
1290
|
+
const y = g();
|
|
1291
|
+
let B = D;
|
|
1292
|
+
if (!r.isValidParams)
|
|
1095
1293
|
return;
|
|
1096
|
-
|
|
1097
|
-
...
|
|
1098
|
-
params:
|
|
1099
|
-
extra:
|
|
1294
|
+
y && (D = y.join(","), B = m(y)), l({
|
|
1295
|
+
...r.bindMethodInfo,
|
|
1296
|
+
params: D,
|
|
1297
|
+
extra: y
|
|
1100
1298
|
});
|
|
1101
1299
|
const {
|
|
1102
|
-
name:
|
|
1103
|
-
} =
|
|
1104
|
-
name:
|
|
1105
|
-
content:
|
|
1300
|
+
name: q
|
|
1301
|
+
} = r.bindMethodInfo, me = (d = (u = a()) == null ? void 0 : u[r.bindMethodInfo.name]) == null ? void 0 : d.value, de = C(me, q, B, y, r.enableExtraParams), te = {
|
|
1302
|
+
name: q,
|
|
1303
|
+
content: de
|
|
1106
1304
|
}, {
|
|
1107
|
-
beforeSaveMethod:
|
|
1108
|
-
} =
|
|
1109
|
-
typeof
|
|
1305
|
+
beforeSaveMethod: p
|
|
1306
|
+
} = re(Z.id);
|
|
1307
|
+
typeof p == "function" && await p(te, r.bindMethodInfo), c == null || c(te), A(), ie();
|
|
1110
1308
|
}, {
|
|
1111
1309
|
metaData: {
|
|
1112
1310
|
id: "engine.setting.event.BindEventsDialog.confirm"
|
|
1113
1311
|
},
|
|
1114
1312
|
ctx: () => ({
|
|
1115
|
-
props:
|
|
1116
|
-
BindEventsDialogSidebar:
|
|
1313
|
+
props: h,
|
|
1314
|
+
BindEventsDialogSidebar: e,
|
|
1117
1315
|
BindEventsDialogContent: n,
|
|
1118
|
-
PLUGIN_NAME:
|
|
1119
|
-
activePlugin:
|
|
1120
|
-
pageState:
|
|
1121
|
-
getMethods:
|
|
1122
|
-
saveMethod:
|
|
1123
|
-
highlightMethod:
|
|
1124
|
-
state:
|
|
1125
|
-
selectMethod:
|
|
1316
|
+
PLUGIN_NAME: t,
|
|
1317
|
+
activePlugin: o,
|
|
1318
|
+
pageState: i,
|
|
1319
|
+
getMethods: a,
|
|
1320
|
+
saveMethod: c,
|
|
1321
|
+
highlightMethod: s,
|
|
1322
|
+
state: r,
|
|
1323
|
+
selectMethod: b,
|
|
1126
1324
|
bindMethod: l,
|
|
1127
|
-
resetTipError:
|
|
1128
|
-
getExtraParams:
|
|
1129
|
-
getFormatParams:
|
|
1130
|
-
rewriteMethodParams:
|
|
1131
|
-
activePagePlugin:
|
|
1132
|
-
confirm:
|
|
1133
|
-
openedDialog:
|
|
1134
|
-
closeDialog:
|
|
1135
|
-
string2Ast:
|
|
1136
|
-
getMergeMeta:
|
|
1137
|
-
useCanvas:
|
|
1138
|
-
useHistory:
|
|
1139
|
-
useLayout:
|
|
1140
|
-
getOptions:
|
|
1141
|
-
getMetaApi:
|
|
1142
|
-
META_APP:
|
|
1143
|
-
MagicString:
|
|
1144
|
-
meta:
|
|
1145
|
-
dialogVisible:
|
|
1146
|
-
open:
|
|
1147
|
-
close:
|
|
1325
|
+
resetTipError: v,
|
|
1326
|
+
getExtraParams: g,
|
|
1327
|
+
getFormatParams: m,
|
|
1328
|
+
rewriteMethodParams: C,
|
|
1329
|
+
activePagePlugin: A,
|
|
1330
|
+
confirm: I,
|
|
1331
|
+
openedDialog: T,
|
|
1332
|
+
closeDialog: z,
|
|
1333
|
+
string2Ast: ae,
|
|
1334
|
+
getMergeMeta: K,
|
|
1335
|
+
useCanvas: N,
|
|
1336
|
+
useHistory: le,
|
|
1337
|
+
useLayout: J,
|
|
1338
|
+
getOptions: re,
|
|
1339
|
+
getMetaApi: M,
|
|
1340
|
+
META_APP: V,
|
|
1341
|
+
MagicString: Q,
|
|
1342
|
+
meta: Z,
|
|
1343
|
+
dialogVisible: ee,
|
|
1344
|
+
open: Y,
|
|
1345
|
+
close: ie
|
|
1148
1346
|
})
|
|
1149
|
-
}),
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1347
|
+
}), T = k(() => {
|
|
1348
|
+
var D, y, B;
|
|
1349
|
+
r.enableExtraParams = !!((y = (D = h.eventBinding) == null ? void 0 : D.params) != null && y.length), r.editorContent = JSON.stringify(((B = h.eventBinding) == null ? void 0 : B.params) || [], null, 2), v();
|
|
1152
1350
|
}, {
|
|
1153
1351
|
metaData: {
|
|
1154
1352
|
id: "engine.setting.event.BindEventsDialog.openedDialog"
|
|
1155
1353
|
},
|
|
1156
1354
|
ctx: () => ({
|
|
1157
|
-
props:
|
|
1158
|
-
BindEventsDialogSidebar:
|
|
1355
|
+
props: h,
|
|
1356
|
+
BindEventsDialogSidebar: e,
|
|
1159
1357
|
BindEventsDialogContent: n,
|
|
1160
|
-
PLUGIN_NAME:
|
|
1161
|
-
activePlugin:
|
|
1162
|
-
pageState:
|
|
1163
|
-
getMethods:
|
|
1164
|
-
saveMethod:
|
|
1165
|
-
highlightMethod:
|
|
1166
|
-
state:
|
|
1167
|
-
selectMethod:
|
|
1358
|
+
PLUGIN_NAME: t,
|
|
1359
|
+
activePlugin: o,
|
|
1360
|
+
pageState: i,
|
|
1361
|
+
getMethods: a,
|
|
1362
|
+
saveMethod: c,
|
|
1363
|
+
highlightMethod: s,
|
|
1364
|
+
state: r,
|
|
1365
|
+
selectMethod: b,
|
|
1168
1366
|
bindMethod: l,
|
|
1169
|
-
resetTipError:
|
|
1170
|
-
getExtraParams:
|
|
1171
|
-
getFormatParams:
|
|
1172
|
-
rewriteMethodParams:
|
|
1173
|
-
activePagePlugin:
|
|
1174
|
-
confirm:
|
|
1175
|
-
openedDialog:
|
|
1176
|
-
closeDialog:
|
|
1177
|
-
string2Ast:
|
|
1178
|
-
getMergeMeta:
|
|
1179
|
-
useCanvas:
|
|
1180
|
-
useHistory:
|
|
1181
|
-
useLayout:
|
|
1182
|
-
getOptions:
|
|
1183
|
-
getMetaApi:
|
|
1184
|
-
META_APP:
|
|
1185
|
-
MagicString:
|
|
1186
|
-
meta:
|
|
1187
|
-
dialogVisible:
|
|
1188
|
-
open:
|
|
1189
|
-
close:
|
|
1367
|
+
resetTipError: v,
|
|
1368
|
+
getExtraParams: g,
|
|
1369
|
+
getFormatParams: m,
|
|
1370
|
+
rewriteMethodParams: C,
|
|
1371
|
+
activePagePlugin: A,
|
|
1372
|
+
confirm: I,
|
|
1373
|
+
openedDialog: T,
|
|
1374
|
+
closeDialog: z,
|
|
1375
|
+
string2Ast: ae,
|
|
1376
|
+
getMergeMeta: K,
|
|
1377
|
+
useCanvas: N,
|
|
1378
|
+
useHistory: le,
|
|
1379
|
+
useLayout: J,
|
|
1380
|
+
getOptions: re,
|
|
1381
|
+
getMetaApi: M,
|
|
1382
|
+
META_APP: V,
|
|
1383
|
+
MagicString: Q,
|
|
1384
|
+
meta: Z,
|
|
1385
|
+
dialogVisible: ee,
|
|
1386
|
+
open: Y,
|
|
1387
|
+
close: ie
|
|
1190
1388
|
})
|
|
1191
|
-
}),
|
|
1192
|
-
|
|
1389
|
+
}), z = k(() => {
|
|
1390
|
+
v(), ie();
|
|
1193
1391
|
}, {
|
|
1194
1392
|
metaData: {
|
|
1195
1393
|
id: "engine.setting.event.BindEventsDialog.closeDialog"
|
|
1196
1394
|
},
|
|
1197
1395
|
ctx: () => ({
|
|
1198
|
-
props:
|
|
1199
|
-
BindEventsDialogSidebar:
|
|
1396
|
+
props: h,
|
|
1397
|
+
BindEventsDialogSidebar: e,
|
|
1200
1398
|
BindEventsDialogContent: n,
|
|
1201
|
-
PLUGIN_NAME:
|
|
1202
|
-
activePlugin:
|
|
1203
|
-
pageState:
|
|
1204
|
-
getMethods:
|
|
1205
|
-
saveMethod:
|
|
1206
|
-
highlightMethod:
|
|
1207
|
-
state:
|
|
1208
|
-
selectMethod:
|
|
1399
|
+
PLUGIN_NAME: t,
|
|
1400
|
+
activePlugin: o,
|
|
1401
|
+
pageState: i,
|
|
1402
|
+
getMethods: a,
|
|
1403
|
+
saveMethod: c,
|
|
1404
|
+
highlightMethod: s,
|
|
1405
|
+
state: r,
|
|
1406
|
+
selectMethod: b,
|
|
1209
1407
|
bindMethod: l,
|
|
1210
|
-
resetTipError:
|
|
1211
|
-
getExtraParams:
|
|
1212
|
-
getFormatParams:
|
|
1213
|
-
rewriteMethodParams:
|
|
1214
|
-
activePagePlugin:
|
|
1215
|
-
confirm:
|
|
1216
|
-
openedDialog:
|
|
1217
|
-
closeDialog:
|
|
1218
|
-
string2Ast:
|
|
1219
|
-
getMergeMeta:
|
|
1220
|
-
useCanvas:
|
|
1221
|
-
useHistory:
|
|
1222
|
-
useLayout:
|
|
1223
|
-
getOptions:
|
|
1224
|
-
getMetaApi:
|
|
1225
|
-
META_APP:
|
|
1226
|
-
MagicString:
|
|
1227
|
-
meta:
|
|
1228
|
-
dialogVisible:
|
|
1229
|
-
open:
|
|
1230
|
-
close:
|
|
1408
|
+
resetTipError: v,
|
|
1409
|
+
getExtraParams: g,
|
|
1410
|
+
getFormatParams: m,
|
|
1411
|
+
rewriteMethodParams: C,
|
|
1412
|
+
activePagePlugin: A,
|
|
1413
|
+
confirm: I,
|
|
1414
|
+
openedDialog: T,
|
|
1415
|
+
closeDialog: z,
|
|
1416
|
+
string2Ast: ae,
|
|
1417
|
+
getMergeMeta: K,
|
|
1418
|
+
useCanvas: N,
|
|
1419
|
+
useHistory: le,
|
|
1420
|
+
useLayout: J,
|
|
1421
|
+
getOptions: re,
|
|
1422
|
+
getMetaApi: M,
|
|
1423
|
+
META_APP: V,
|
|
1424
|
+
MagicString: Q,
|
|
1425
|
+
meta: Z,
|
|
1426
|
+
dialogVisible: ee,
|
|
1427
|
+
open: Y,
|
|
1428
|
+
close: ie
|
|
1231
1429
|
})
|
|
1232
1430
|
});
|
|
1233
1431
|
return {
|
|
1234
|
-
BindEventsDialogSidebar:
|
|
1432
|
+
BindEventsDialogSidebar: e,
|
|
1235
1433
|
BindEventsDialogContent: n,
|
|
1236
|
-
state:
|
|
1237
|
-
dialogVisible:
|
|
1238
|
-
confirm:
|
|
1239
|
-
closeDialog:
|
|
1240
|
-
openedDialog:
|
|
1241
|
-
selectMethod:
|
|
1434
|
+
state: r,
|
|
1435
|
+
dialogVisible: ee,
|
|
1436
|
+
confirm: I,
|
|
1437
|
+
closeDialog: z,
|
|
1438
|
+
openedDialog: T,
|
|
1439
|
+
selectMethod: b
|
|
1242
1440
|
};
|
|
1243
1441
|
}
|
|
1244
|
-
},
|
|
1245
|
-
function
|
|
1246
|
-
const
|
|
1247
|
-
return
|
|
1248
|
-
visible:
|
|
1442
|
+
}, Xt = { class: "bind-event-dialog-tip" }, Gt = { class: "bind-event-dialog-content" }, Kt = { class: "bind-dialog-footer" };
|
|
1443
|
+
function Ht(h, e, n, t, o, i) {
|
|
1444
|
+
const a = H("tiny-alert"), c = H("tiny-button"), s = H("tiny-dialog-box");
|
|
1445
|
+
return j(), ve(s, {
|
|
1446
|
+
visible: t.dialogVisible,
|
|
1249
1447
|
title: "事件绑定",
|
|
1250
1448
|
width: "50%",
|
|
1251
1449
|
"dialog-class": "bind-event-dialog",
|
|
1252
1450
|
draggable: "",
|
|
1253
1451
|
"append-to-body": !0,
|
|
1254
|
-
onClose:
|
|
1255
|
-
onOpened:
|
|
1452
|
+
onClose: t.closeDialog,
|
|
1453
|
+
onOpened: t.openedDialog
|
|
1256
1454
|
}, {
|
|
1257
|
-
footer:
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
default:
|
|
1261
|
-
|
|
1455
|
+
footer: X(() => [
|
|
1456
|
+
_("div", Kt, [
|
|
1457
|
+
S(c, { onClick: t.closeDialog }, {
|
|
1458
|
+
default: X(() => e[0] || (e[0] = [
|
|
1459
|
+
Ue("取 消")
|
|
1262
1460
|
])),
|
|
1263
1461
|
_: 1,
|
|
1264
1462
|
__: [0]
|
|
1265
1463
|
}, 8, ["onClick"]),
|
|
1266
|
-
|
|
1464
|
+
S(c, {
|
|
1267
1465
|
type: "info",
|
|
1268
|
-
onClick:
|
|
1466
|
+
onClick: t.confirm
|
|
1269
1467
|
}, {
|
|
1270
|
-
default:
|
|
1271
|
-
|
|
1468
|
+
default: X(() => e[1] || (e[1] = [
|
|
1469
|
+
Ue("确 定")
|
|
1272
1470
|
])),
|
|
1273
1471
|
_: 1,
|
|
1274
1472
|
__: [1]
|
|
1275
1473
|
}, 8, ["onClick"])
|
|
1276
1474
|
])
|
|
1277
1475
|
]),
|
|
1278
|
-
default:
|
|
1279
|
-
|
|
1280
|
-
|
|
1476
|
+
default: X(() => [
|
|
1477
|
+
_("div", Xt, [
|
|
1478
|
+
S(a, {
|
|
1281
1479
|
type: "info",
|
|
1282
1480
|
description: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)。",
|
|
1283
1481
|
class: "header-alert",
|
|
1284
1482
|
closable: !1
|
|
1285
1483
|
})
|
|
1286
1484
|
]),
|
|
1287
|
-
|
|
1288
|
-
(
|
|
1289
|
-
dialogVisible:
|
|
1485
|
+
_("div", Gt, [
|
|
1486
|
+
(j(), ve(dt(t.BindEventsDialogSidebar), {
|
|
1487
|
+
dialogVisible: t.dialogVisible,
|
|
1290
1488
|
eventBinding: n.eventBinding
|
|
1291
1489
|
}, null, 8, ["dialogVisible", "eventBinding"])),
|
|
1292
|
-
(
|
|
1490
|
+
(j(), ve(dt(t.BindEventsDialogContent), { dialogVisible: t.dialogVisible }, null, 8, ["dialogVisible"]))
|
|
1293
1491
|
])
|
|
1294
1492
|
]),
|
|
1295
1493
|
_: 1
|
|
1296
1494
|
}, 8, ["visible", "onClose", "onOpened"]);
|
|
1297
1495
|
}
|
|
1298
|
-
const
|
|
1496
|
+
const Re = /* @__PURE__ */ Ge(Jt, [["render", Ht], ["__scopeId", "data-v-84897b97"]]), Ct = {
|
|
1299
1497
|
onClick: {
|
|
1300
1498
|
label: {
|
|
1301
1499
|
zh_CN: "点击事件"
|
|
@@ -1352,19 +1550,19 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1352
1550
|
},
|
|
1353
1551
|
defaultValue: ""
|
|
1354
1552
|
}
|
|
1355
|
-
},
|
|
1356
|
-
const
|
|
1357
|
-
return `${n.substring(0, 2)}${
|
|
1358
|
-
}).includes(
|
|
1553
|
+
}, pt = ["onabort", "onafterprint", "onanimationend", "onanimationiteration", "onanimationstart", "onappinstalled", "onauxclick", "onbeforeinstallprompt", "onbeforeprint", "onbeforeunload", "onbeforexrselect", "onblur", "oncancel", "oncanplay", "oncanplaythrough", "onchange", "onclick", "onclose", "oncontextlost", "oncontextmenu", "oncontextrestored", "oncuechange", "ondblclick", "ondrag", "ondragend", "ondragenter", "ondragleave", "ondragover", "ondragstart", "ondrop", "ondurationchange", "onemptied", "onended", "onerror", "onfocus", "onformdata", "ongotpointercapture", "onhashchange", "oninput", "oninvalid", "onkeydown", "onkeypress", "onkeyup", "onlanguagechange", "onload", "onloadeddata", "onloadedmetadata", "onloadstart", "onlostpointercapture", "onmessage", "onmessageerror", "onmousedown", "onmouseenter", "onmouseleave", "onmousemove", "onmouseout", "onmouseover", "onmouseup", "onmousewheel", "onoffline", "ononline", "onpagehide", "onpageshow", "onpause", "onplay", "onplaying", "onpointercancel", "onpointerdown", "onpointerenter", "onpointerleave", "onpointermove", "onpointerout", "onpointerover", "onpointerrawupdate", "onpointerup", "onpopstate", "onprogress", "onratechange", "onrejectionhandled", "onreset", "onresize", "onscroll", "onsearch", "onsecuritypolicyviolation", "onseeked", "onseeking", "onselect", "onselectionchange", "onselectstart", "onslotchange", "onstalled", "onstorage", "onsubmit", "onsuspend", "ontimeupdate", "ontoggle", "ontransitioncancel", "ontransitionend", "ontransitionrun", "ontransitionstart", "onunhandledrejection", "onunload", "onvolumechange", "onwaiting", "onwebkitanimationend", "onwebkitanimationiteration", "onwebkitanimationstart", "onwebkittransitionend", "onwheel"], qe = k((h) => !!pt.map((n) => {
|
|
1554
|
+
const t = n[2].toUpperCase();
|
|
1555
|
+
return `${n.substring(0, 2)}${t}${n.substring(3)}`;
|
|
1556
|
+
}).includes(h), {
|
|
1359
1557
|
metaData: {
|
|
1360
1558
|
id: "engine.setting.event.commonjs-events.checkEvent"
|
|
1361
1559
|
},
|
|
1362
1560
|
ctx: () => ({
|
|
1363
|
-
commonEvents:
|
|
1364
|
-
allEvents:
|
|
1365
|
-
checkEvent:
|
|
1561
|
+
commonEvents: Ct,
|
|
1562
|
+
allEvents: pt,
|
|
1563
|
+
checkEvent: qe
|
|
1366
1564
|
})
|
|
1367
|
-
}),
|
|
1565
|
+
}), qt = { class: "footer" }, Yt = {
|
|
1368
1566
|
__name: "AddEventsDialog",
|
|
1369
1567
|
props: {
|
|
1370
1568
|
visible: {
|
|
@@ -1377,36 +1575,36 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1377
1575
|
}
|
|
1378
1576
|
},
|
|
1379
1577
|
emits: ["closeDialog", "addEvent"],
|
|
1380
|
-
setup(
|
|
1381
|
-
const n =
|
|
1578
|
+
setup(h, { emit: e }) {
|
|
1579
|
+
const n = h, t = e, o = Ze({
|
|
1382
1580
|
eventDescription: "",
|
|
1383
1581
|
eventName: ""
|
|
1384
|
-
}),
|
|
1385
|
-
if (n.componentEvents[
|
|
1386
|
-
|
|
1582
|
+
}), i = Xe(null), a = k((b, l, v) => {
|
|
1583
|
+
if (n.componentEvents[o.eventName]) {
|
|
1584
|
+
v(new Error("事件名已存在"));
|
|
1387
1585
|
return;
|
|
1388
1586
|
}
|
|
1389
|
-
if (!
|
|
1390
|
-
|
|
1587
|
+
if (!qe(o.eventName)) {
|
|
1588
|
+
v(new Error("请输入正确的浏览器事件名"));
|
|
1391
1589
|
return;
|
|
1392
1590
|
}
|
|
1393
|
-
|
|
1591
|
+
v();
|
|
1394
1592
|
}, {
|
|
1395
1593
|
metaData: {
|
|
1396
1594
|
id: "engine.setting.event.AddEventsDialog.eventNameValidator"
|
|
1397
1595
|
},
|
|
1398
1596
|
ctx: () => ({
|
|
1399
|
-
checkEvent:
|
|
1597
|
+
checkEvent: qe,
|
|
1400
1598
|
props: n,
|
|
1401
|
-
emits:
|
|
1402
|
-
formData:
|
|
1403
|
-
ruleForm:
|
|
1404
|
-
eventNameValidator:
|
|
1405
|
-
rules:
|
|
1406
|
-
closeDialog:
|
|
1407
|
-
addMethod:
|
|
1599
|
+
emits: t,
|
|
1600
|
+
formData: o,
|
|
1601
|
+
ruleForm: i,
|
|
1602
|
+
eventNameValidator: a,
|
|
1603
|
+
rules: c,
|
|
1604
|
+
closeDialog: s,
|
|
1605
|
+
addMethod: r
|
|
1408
1606
|
})
|
|
1409
|
-
}),
|
|
1607
|
+
}), c = {
|
|
1410
1608
|
eventDescription: [{
|
|
1411
1609
|
required: !0,
|
|
1412
1610
|
message: "必填"
|
|
@@ -1415,36 +1613,36 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1415
1613
|
required: !0,
|
|
1416
1614
|
message: "必填"
|
|
1417
1615
|
}, {
|
|
1418
|
-
validator:
|
|
1616
|
+
validator: a
|
|
1419
1617
|
}]
|
|
1420
|
-
},
|
|
1421
|
-
|
|
1618
|
+
}, s = k(() => {
|
|
1619
|
+
t("closeDialog");
|
|
1422
1620
|
}, {
|
|
1423
1621
|
metaData: {
|
|
1424
1622
|
id: "engine.setting.event.AddEventsDialog.closeDialog"
|
|
1425
1623
|
},
|
|
1426
1624
|
ctx: () => ({
|
|
1427
|
-
checkEvent:
|
|
1625
|
+
checkEvent: qe,
|
|
1428
1626
|
props: n,
|
|
1429
|
-
emits:
|
|
1430
|
-
formData:
|
|
1431
|
-
ruleForm:
|
|
1432
|
-
eventNameValidator:
|
|
1433
|
-
rules:
|
|
1434
|
-
closeDialog:
|
|
1435
|
-
addMethod:
|
|
1627
|
+
emits: t,
|
|
1628
|
+
formData: o,
|
|
1629
|
+
ruleForm: i,
|
|
1630
|
+
eventNameValidator: a,
|
|
1631
|
+
rules: c,
|
|
1632
|
+
closeDialog: s,
|
|
1633
|
+
addMethod: r
|
|
1436
1634
|
})
|
|
1437
|
-
}),
|
|
1438
|
-
|
|
1439
|
-
if (!
|
|
1635
|
+
}), r = k(() => {
|
|
1636
|
+
i.value && i.value.validate((b) => {
|
|
1637
|
+
if (!b)
|
|
1440
1638
|
return;
|
|
1441
1639
|
const {
|
|
1442
1640
|
eventName: l,
|
|
1443
|
-
eventDescription:
|
|
1444
|
-
} =
|
|
1445
|
-
|
|
1641
|
+
eventDescription: v
|
|
1642
|
+
} = o;
|
|
1643
|
+
t("addEvent", {
|
|
1446
1644
|
eventName: l,
|
|
1447
|
-
eventDescription:
|
|
1645
|
+
eventDescription: v
|
|
1448
1646
|
});
|
|
1449
1647
|
});
|
|
1450
1648
|
}, {
|
|
@@ -1452,82 +1650,82 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1452
1650
|
id: "engine.setting.event.AddEventsDialog.addMethod"
|
|
1453
1651
|
},
|
|
1454
1652
|
ctx: () => ({
|
|
1455
|
-
checkEvent:
|
|
1653
|
+
checkEvent: qe,
|
|
1456
1654
|
props: n,
|
|
1457
|
-
emits:
|
|
1458
|
-
formData:
|
|
1459
|
-
ruleForm:
|
|
1460
|
-
eventNameValidator:
|
|
1461
|
-
rules:
|
|
1462
|
-
closeDialog:
|
|
1463
|
-
addMethod:
|
|
1655
|
+
emits: t,
|
|
1656
|
+
formData: o,
|
|
1657
|
+
ruleForm: i,
|
|
1658
|
+
eventNameValidator: a,
|
|
1659
|
+
rules: c,
|
|
1660
|
+
closeDialog: s,
|
|
1661
|
+
addMethod: r
|
|
1464
1662
|
})
|
|
1465
1663
|
});
|
|
1466
|
-
return (
|
|
1467
|
-
visible:
|
|
1664
|
+
return (b, l) => (j(), ve(W(Et), {
|
|
1665
|
+
visible: h.visible,
|
|
1468
1666
|
title: "添加新事件",
|
|
1469
1667
|
width: "400px",
|
|
1470
1668
|
"append-to-body": !0,
|
|
1471
1669
|
"close-on-click-modal": !1,
|
|
1472
|
-
onClose:
|
|
1670
|
+
onClose: W(s)
|
|
1473
1671
|
}, {
|
|
1474
|
-
footer:
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
default:
|
|
1478
|
-
|
|
1672
|
+
footer: X(() => [
|
|
1673
|
+
_("div", qt, [
|
|
1674
|
+
S(W(tt), { onClick: W(s) }, {
|
|
1675
|
+
default: X(() => l[2] || (l[2] = [
|
|
1676
|
+
Ue(" 取消")
|
|
1479
1677
|
])),
|
|
1480
1678
|
_: 1,
|
|
1481
1679
|
__: [2]
|
|
1482
1680
|
}, 8, ["onClick"]),
|
|
1483
|
-
|
|
1681
|
+
S(W(tt), {
|
|
1484
1682
|
type: "primary",
|
|
1485
|
-
onClick:
|
|
1683
|
+
onClick: W(r)
|
|
1486
1684
|
}, {
|
|
1487
|
-
default:
|
|
1488
|
-
|
|
1685
|
+
default: X(() => l[3] || (l[3] = [
|
|
1686
|
+
Ue(" 确定")
|
|
1489
1687
|
])),
|
|
1490
1688
|
_: 1,
|
|
1491
1689
|
__: [3]
|
|
1492
1690
|
}, 8, ["onClick"])
|
|
1493
1691
|
])
|
|
1494
1692
|
]),
|
|
1495
|
-
default:
|
|
1496
|
-
|
|
1693
|
+
default: X(() => [
|
|
1694
|
+
S(W(Dt), {
|
|
1497
1695
|
ref_key: "ruleForm",
|
|
1498
|
-
ref:
|
|
1499
|
-
model:
|
|
1500
|
-
rules:
|
|
1696
|
+
ref: i,
|
|
1697
|
+
model: o,
|
|
1698
|
+
rules: c,
|
|
1501
1699
|
"label-width": "80px",
|
|
1502
1700
|
"inline-message": !0,
|
|
1503
1701
|
"validate-type": "text",
|
|
1504
1702
|
"label-position": "left",
|
|
1505
1703
|
class: "add-custom-event-form"
|
|
1506
1704
|
}, {
|
|
1507
|
-
default:
|
|
1508
|
-
|
|
1705
|
+
default: X(() => [
|
|
1706
|
+
S(W(ft), {
|
|
1509
1707
|
label: "事件函数名",
|
|
1510
1708
|
prop: "eventName",
|
|
1511
1709
|
required: ""
|
|
1512
1710
|
}, {
|
|
1513
|
-
default:
|
|
1514
|
-
|
|
1515
|
-
modelValue:
|
|
1516
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
1711
|
+
default: X(() => [
|
|
1712
|
+
S(W(rt), {
|
|
1713
|
+
modelValue: o.eventName,
|
|
1714
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => o.eventName = v),
|
|
1517
1715
|
placeholder: "小驼峰格式,如:onDrag"
|
|
1518
1716
|
}, null, 8, ["modelValue"])
|
|
1519
1717
|
]),
|
|
1520
1718
|
_: 1
|
|
1521
1719
|
}),
|
|
1522
|
-
|
|
1720
|
+
S(W(ft), {
|
|
1523
1721
|
label: "事件描述",
|
|
1524
1722
|
prop: "eventDescription",
|
|
1525
1723
|
required: ""
|
|
1526
1724
|
}, {
|
|
1527
|
-
default:
|
|
1528
|
-
|
|
1529
|
-
modelValue:
|
|
1530
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
1725
|
+
default: X(() => [
|
|
1726
|
+
S(W(rt), {
|
|
1727
|
+
modelValue: o.eventDescription,
|
|
1728
|
+
"onUpdate:modelValue": l[1] || (l[1] = (v) => o.eventDescription = v)
|
|
1531
1729
|
}, null, 8, ["modelValue"])
|
|
1532
1730
|
]),
|
|
1533
1731
|
_: 1
|
|
@@ -1539,125 +1737,125 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1539
1737
|
_: 1
|
|
1540
1738
|
}, 8, ["visible", "onClose"]));
|
|
1541
1739
|
}
|
|
1542
|
-
},
|
|
1740
|
+
}, Te = /* @__PURE__ */ Ge(Yt, [["__scopeId", "data-v-2ed7fac6"]]), Wt = {
|
|
1543
1741
|
components: {
|
|
1544
|
-
BlockLinkEvent:
|
|
1545
|
-
BindEventsDialog:
|
|
1546
|
-
TinyPopover:
|
|
1547
|
-
TinyButton:
|
|
1548
|
-
IconChevronDown:
|
|
1549
|
-
SvgButton:
|
|
1550
|
-
AddEventsDialog:
|
|
1742
|
+
BlockLinkEvent: Me,
|
|
1743
|
+
BindEventsDialog: Re,
|
|
1744
|
+
TinyPopover: St,
|
|
1745
|
+
TinyButton: tt,
|
|
1746
|
+
IconChevronDown: Oe(),
|
|
1747
|
+
SvgButton: Ve,
|
|
1748
|
+
AddEventsDialog: Te
|
|
1551
1749
|
},
|
|
1552
1750
|
inheritAttrs: !1,
|
|
1553
1751
|
setup() {
|
|
1554
1752
|
const {
|
|
1555
|
-
PLUGIN_NAME:
|
|
1556
|
-
activePlugin:
|
|
1557
|
-
} =
|
|
1753
|
+
PLUGIN_NAME: h,
|
|
1754
|
+
activePlugin: e
|
|
1755
|
+
} = J(), {
|
|
1558
1756
|
pageState: n
|
|
1559
|
-
} =
|
|
1560
|
-
getBlockEvents:
|
|
1561
|
-
getCurrentBlock:
|
|
1562
|
-
removeEventLink:
|
|
1563
|
-
} =
|
|
1564
|
-
getMaterial:
|
|
1565
|
-
} =
|
|
1566
|
-
confirm:
|
|
1567
|
-
} =
|
|
1568
|
-
highlightMethod:
|
|
1569
|
-
} =
|
|
1570
|
-
commonEvents:
|
|
1571
|
-
} =
|
|
1757
|
+
} = N(), {
|
|
1758
|
+
getBlockEvents: t,
|
|
1759
|
+
getCurrentBlock: o,
|
|
1760
|
+
removeEventLink: i
|
|
1761
|
+
} = Ne(), {
|
|
1762
|
+
getMaterial: a
|
|
1763
|
+
} = Ie(), {
|
|
1764
|
+
confirm: c
|
|
1765
|
+
} = Le(), s = Pe.global.locale.value, {
|
|
1766
|
+
highlightMethod: r
|
|
1767
|
+
} = M(V.Page), {
|
|
1768
|
+
commonEvents: b = {}
|
|
1769
|
+
} = K("engine.setting.event").options, l = Ze({
|
|
1572
1770
|
eventName: "",
|
|
1573
1771
|
// 事件名称
|
|
1574
1772
|
eventBinding: null,
|
|
1575
1773
|
// 事件绑定的处理方法对象
|
|
1576
1774
|
componentEvent: {},
|
|
1577
|
-
customEvents:
|
|
1775
|
+
customEvents: b,
|
|
1578
1776
|
bindActions: {},
|
|
1579
1777
|
showBindEventDialog: !1
|
|
1580
|
-
}),
|
|
1778
|
+
}), v = Ye(() => !!n.isBlock), g = Ye(() => Object.keys(l.bindActions).length === 0), m = Ye(() => ({
|
|
1581
1779
|
...l.componentEvent,
|
|
1582
1780
|
...l.customEvents
|
|
1583
1781
|
}));
|
|
1584
|
-
|
|
1585
|
-
var
|
|
1586
|
-
const
|
|
1587
|
-
l.componentEvent = ((
|
|
1588
|
-
const
|
|
1589
|
-
l.bindActions = {}, Object.entries(
|
|
1590
|
-
var
|
|
1591
|
-
if (
|
|
1592
|
-
const
|
|
1593
|
-
value:
|
|
1594
|
-
params:
|
|
1595
|
-
} =
|
|
1596
|
-
eventName:
|
|
1782
|
+
bt(() => {
|
|
1783
|
+
var de, te, p, u, d;
|
|
1784
|
+
const y = (de = n == null ? void 0 : n.currentSchema) == null ? void 0 : de.componentName, B = a(y);
|
|
1785
|
+
l.componentEvent = ((p = (te = B == null ? void 0 : B.content) == null ? void 0 : te.schema) == null ? void 0 : p.events) || ((u = B == null ? void 0 : B.schema) == null ? void 0 : u.events) || {};
|
|
1786
|
+
const q = ((d = n == null ? void 0 : n.currentSchema) == null ? void 0 : d.props) || {}, me = Object.keys(q);
|
|
1787
|
+
l.bindActions = {}, Object.entries(m.value).forEach(([f, E]) => {
|
|
1788
|
+
var w, x, L;
|
|
1789
|
+
if (me.indexOf(f) > -1) {
|
|
1790
|
+
const U = q[f], {
|
|
1791
|
+
value: $,
|
|
1792
|
+
params: O
|
|
1793
|
+
} = U, G = !O && ((x = (w = $.match(/\((.+)\)$/)) == null ? void 0 : w[1]) == null ? void 0 : x.split(",")) || O, R = {
|
|
1794
|
+
eventName: f,
|
|
1597
1795
|
ref: "",
|
|
1598
|
-
event:
|
|
1599
|
-
params:
|
|
1796
|
+
event: q[f],
|
|
1797
|
+
params: G
|
|
1600
1798
|
};
|
|
1601
|
-
if (
|
|
1602
|
-
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1605
|
-
var
|
|
1606
|
-
|
|
1799
|
+
if (R.event.type === "JSExpression" && (R.ref = R.event.value.replace("this.", "").replace(/\(.*\)$/, "")), n.isBlock) {
|
|
1800
|
+
R.metaEvent = E;
|
|
1801
|
+
const P = t(o()), F = (L = n == null ? void 0 : n.currentSchema) == null ? void 0 : L.id;
|
|
1802
|
+
F && P && Object.entries(P).forEach(([ce, he]) => {
|
|
1803
|
+
var be, _e;
|
|
1804
|
+
F === ((be = he == null ? void 0 : he.linked) == null ? void 0 : be.id) && f === ((_e = he == null ? void 0 : he.linked) == null ? void 0 : _e.event) && (R.linked = he.linked, R.linkedEventName = ce);
|
|
1607
1805
|
});
|
|
1608
1806
|
}
|
|
1609
|
-
l.bindActions[
|
|
1807
|
+
l.bindActions[f] = R;
|
|
1610
1808
|
}
|
|
1611
1809
|
});
|
|
1612
1810
|
});
|
|
1613
|
-
const
|
|
1614
|
-
|
|
1811
|
+
const C = k((y, B) => {
|
|
1812
|
+
B && l.bindActions[y.eventName] || (l.eventBinding = y, Y());
|
|
1615
1813
|
}, {
|
|
1616
1814
|
metaData: {
|
|
1617
1815
|
id: "engine.setting.event.BindEvents.openActionDialog"
|
|
1618
1816
|
},
|
|
1619
1817
|
ctx: () => ({
|
|
1620
|
-
PLUGIN_NAME:
|
|
1621
|
-
activePlugin:
|
|
1818
|
+
PLUGIN_NAME: h,
|
|
1819
|
+
activePlugin: e,
|
|
1622
1820
|
pageState: n,
|
|
1623
|
-
getBlockEvents:
|
|
1624
|
-
getCurrentBlock:
|
|
1625
|
-
removeEventLink:
|
|
1626
|
-
getMaterial:
|
|
1627
|
-
confirm:
|
|
1628
|
-
locale:
|
|
1629
|
-
highlightMethod:
|
|
1630
|
-
commonEvents:
|
|
1821
|
+
getBlockEvents: t,
|
|
1822
|
+
getCurrentBlock: o,
|
|
1823
|
+
removeEventLink: i,
|
|
1824
|
+
getMaterial: a,
|
|
1825
|
+
confirm: c,
|
|
1826
|
+
locale: s,
|
|
1827
|
+
highlightMethod: r,
|
|
1828
|
+
commonEvents: b,
|
|
1631
1829
|
state: l,
|
|
1632
|
-
isBlock:
|
|
1633
|
-
isEmpty:
|
|
1634
|
-
renderEventList:
|
|
1635
|
-
openActionDialog:
|
|
1636
|
-
deleteAction:
|
|
1637
|
-
delEvent:
|
|
1638
|
-
openCodePanel:
|
|
1639
|
-
handleToggleAddEventDialog:
|
|
1640
|
-
handleAddEvent:
|
|
1641
|
-
useModal:
|
|
1642
|
-
getMergeMeta:
|
|
1643
|
-
useCanvas:
|
|
1644
|
-
useLayout:
|
|
1645
|
-
useBlock:
|
|
1646
|
-
useMaterial:
|
|
1647
|
-
getMetaApi:
|
|
1648
|
-
META_APP:
|
|
1649
|
-
useMessage:
|
|
1650
|
-
i18n:
|
|
1651
|
-
BlockLinkEvent:
|
|
1652
|
-
SvgButton:
|
|
1653
|
-
iconChevronDown:
|
|
1654
|
-
BindEventsDialog:
|
|
1655
|
-
openDialog:
|
|
1656
|
-
AddEventsDialog:
|
|
1830
|
+
isBlock: v,
|
|
1831
|
+
isEmpty: g,
|
|
1832
|
+
renderEventList: m,
|
|
1833
|
+
openActionDialog: C,
|
|
1834
|
+
deleteAction: A,
|
|
1835
|
+
delEvent: I,
|
|
1836
|
+
openCodePanel: T,
|
|
1837
|
+
handleToggleAddEventDialog: z,
|
|
1838
|
+
handleAddEvent: D,
|
|
1839
|
+
useModal: Le,
|
|
1840
|
+
getMergeMeta: K,
|
|
1841
|
+
useCanvas: N,
|
|
1842
|
+
useLayout: J,
|
|
1843
|
+
useBlock: Ne,
|
|
1844
|
+
useMaterial: Ie,
|
|
1845
|
+
getMetaApi: M,
|
|
1846
|
+
META_APP: V,
|
|
1847
|
+
useMessage: Be,
|
|
1848
|
+
i18n: Pe,
|
|
1849
|
+
BlockLinkEvent: Me,
|
|
1850
|
+
SvgButton: Ve,
|
|
1851
|
+
iconChevronDown: Oe,
|
|
1852
|
+
BindEventsDialog: Re,
|
|
1853
|
+
openDialog: Y,
|
|
1854
|
+
AddEventsDialog: Te
|
|
1657
1855
|
})
|
|
1658
|
-
}),
|
|
1659
|
-
var
|
|
1660
|
-
Object.keys(((
|
|
1856
|
+
}), A = k((y) => {
|
|
1857
|
+
var q;
|
|
1858
|
+
Object.keys(((q = n == null ? void 0 : n.currentSchema) == null ? void 0 : q.props) || {}).indexOf(y.eventName) > -1 && (delete n.currentSchema.props[y.eventName], Be().publish({
|
|
1661
1859
|
topic: "schemaChange",
|
|
1662
1860
|
data: {
|
|
1663
1861
|
props: n.currentSchema.props
|
|
@@ -1668,52 +1866,52 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1668
1866
|
id: "engine.setting.event.BindEvents.deleteAction"
|
|
1669
1867
|
},
|
|
1670
1868
|
ctx: () => ({
|
|
1671
|
-
PLUGIN_NAME:
|
|
1672
|
-
activePlugin:
|
|
1869
|
+
PLUGIN_NAME: h,
|
|
1870
|
+
activePlugin: e,
|
|
1673
1871
|
pageState: n,
|
|
1674
|
-
getBlockEvents:
|
|
1675
|
-
getCurrentBlock:
|
|
1676
|
-
removeEventLink:
|
|
1677
|
-
getMaterial:
|
|
1678
|
-
confirm:
|
|
1679
|
-
locale:
|
|
1680
|
-
highlightMethod:
|
|
1681
|
-
commonEvents:
|
|
1872
|
+
getBlockEvents: t,
|
|
1873
|
+
getCurrentBlock: o,
|
|
1874
|
+
removeEventLink: i,
|
|
1875
|
+
getMaterial: a,
|
|
1876
|
+
confirm: c,
|
|
1877
|
+
locale: s,
|
|
1878
|
+
highlightMethod: r,
|
|
1879
|
+
commonEvents: b,
|
|
1682
1880
|
state: l,
|
|
1683
|
-
isBlock:
|
|
1684
|
-
isEmpty:
|
|
1685
|
-
renderEventList:
|
|
1686
|
-
openActionDialog:
|
|
1687
|
-
deleteAction:
|
|
1688
|
-
delEvent:
|
|
1689
|
-
openCodePanel:
|
|
1690
|
-
handleToggleAddEventDialog:
|
|
1691
|
-
handleAddEvent:
|
|
1692
|
-
useModal:
|
|
1693
|
-
getMergeMeta:
|
|
1694
|
-
useCanvas:
|
|
1695
|
-
useLayout:
|
|
1696
|
-
useBlock:
|
|
1697
|
-
useMaterial:
|
|
1698
|
-
getMetaApi:
|
|
1699
|
-
META_APP:
|
|
1700
|
-
useMessage:
|
|
1701
|
-
i18n:
|
|
1702
|
-
BlockLinkEvent:
|
|
1703
|
-
SvgButton:
|
|
1704
|
-
iconChevronDown:
|
|
1705
|
-
BindEventsDialog:
|
|
1706
|
-
openDialog:
|
|
1707
|
-
AddEventsDialog:
|
|
1881
|
+
isBlock: v,
|
|
1882
|
+
isEmpty: g,
|
|
1883
|
+
renderEventList: m,
|
|
1884
|
+
openActionDialog: C,
|
|
1885
|
+
deleteAction: A,
|
|
1886
|
+
delEvent: I,
|
|
1887
|
+
openCodePanel: T,
|
|
1888
|
+
handleToggleAddEventDialog: z,
|
|
1889
|
+
handleAddEvent: D,
|
|
1890
|
+
useModal: Le,
|
|
1891
|
+
getMergeMeta: K,
|
|
1892
|
+
useCanvas: N,
|
|
1893
|
+
useLayout: J,
|
|
1894
|
+
useBlock: Ne,
|
|
1895
|
+
useMaterial: Ie,
|
|
1896
|
+
getMetaApi: M,
|
|
1897
|
+
META_APP: V,
|
|
1898
|
+
useMessage: Be,
|
|
1899
|
+
i18n: Pe,
|
|
1900
|
+
BlockLinkEvent: Me,
|
|
1901
|
+
SvgButton: Ve,
|
|
1902
|
+
iconChevronDown: Oe,
|
|
1903
|
+
BindEventsDialog: Re,
|
|
1904
|
+
openDialog: Y,
|
|
1905
|
+
AddEventsDialog: Te
|
|
1708
1906
|
})
|
|
1709
|
-
}),
|
|
1710
|
-
|
|
1907
|
+
}), I = k((y) => {
|
|
1908
|
+
c({
|
|
1711
1909
|
title: "提示",
|
|
1712
|
-
message: `您确定要删除事件 ${
|
|
1910
|
+
message: `您确定要删除事件 ${y.eventName} 吗?`,
|
|
1713
1911
|
exec() {
|
|
1714
|
-
n.isBlock &&
|
|
1715
|
-
linked:
|
|
1716
|
-
}),
|
|
1912
|
+
n.isBlock && i({
|
|
1913
|
+
linked: y.linked
|
|
1914
|
+
}), A(y);
|
|
1717
1915
|
}
|
|
1718
1916
|
});
|
|
1719
1917
|
}, {
|
|
@@ -1721,148 +1919,148 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1721
1919
|
id: "engine.setting.event.BindEvents.delEvent"
|
|
1722
1920
|
},
|
|
1723
1921
|
ctx: () => ({
|
|
1724
|
-
PLUGIN_NAME:
|
|
1725
|
-
activePlugin:
|
|
1922
|
+
PLUGIN_NAME: h,
|
|
1923
|
+
activePlugin: e,
|
|
1726
1924
|
pageState: n,
|
|
1727
|
-
getBlockEvents:
|
|
1728
|
-
getCurrentBlock:
|
|
1729
|
-
removeEventLink:
|
|
1730
|
-
getMaterial:
|
|
1731
|
-
confirm:
|
|
1732
|
-
locale:
|
|
1733
|
-
highlightMethod:
|
|
1734
|
-
commonEvents:
|
|
1925
|
+
getBlockEvents: t,
|
|
1926
|
+
getCurrentBlock: o,
|
|
1927
|
+
removeEventLink: i,
|
|
1928
|
+
getMaterial: a,
|
|
1929
|
+
confirm: c,
|
|
1930
|
+
locale: s,
|
|
1931
|
+
highlightMethod: r,
|
|
1932
|
+
commonEvents: b,
|
|
1735
1933
|
state: l,
|
|
1736
|
-
isBlock:
|
|
1737
|
-
isEmpty:
|
|
1738
|
-
renderEventList:
|
|
1739
|
-
openActionDialog:
|
|
1740
|
-
deleteAction:
|
|
1741
|
-
delEvent:
|
|
1742
|
-
openCodePanel:
|
|
1743
|
-
handleToggleAddEventDialog:
|
|
1744
|
-
handleAddEvent:
|
|
1745
|
-
useModal:
|
|
1746
|
-
getMergeMeta:
|
|
1747
|
-
useCanvas:
|
|
1748
|
-
useLayout:
|
|
1749
|
-
useBlock:
|
|
1750
|
-
useMaterial:
|
|
1751
|
-
getMetaApi:
|
|
1752
|
-
META_APP:
|
|
1753
|
-
useMessage:
|
|
1754
|
-
i18n:
|
|
1755
|
-
BlockLinkEvent:
|
|
1756
|
-
SvgButton:
|
|
1757
|
-
iconChevronDown:
|
|
1758
|
-
BindEventsDialog:
|
|
1759
|
-
openDialog:
|
|
1760
|
-
AddEventsDialog:
|
|
1934
|
+
isBlock: v,
|
|
1935
|
+
isEmpty: g,
|
|
1936
|
+
renderEventList: m,
|
|
1937
|
+
openActionDialog: C,
|
|
1938
|
+
deleteAction: A,
|
|
1939
|
+
delEvent: I,
|
|
1940
|
+
openCodePanel: T,
|
|
1941
|
+
handleToggleAddEventDialog: z,
|
|
1942
|
+
handleAddEvent: D,
|
|
1943
|
+
useModal: Le,
|
|
1944
|
+
getMergeMeta: K,
|
|
1945
|
+
useCanvas: N,
|
|
1946
|
+
useLayout: J,
|
|
1947
|
+
useBlock: Ne,
|
|
1948
|
+
useMaterial: Ie,
|
|
1949
|
+
getMetaApi: M,
|
|
1950
|
+
META_APP: V,
|
|
1951
|
+
useMessage: Be,
|
|
1952
|
+
i18n: Pe,
|
|
1953
|
+
BlockLinkEvent: Me,
|
|
1954
|
+
SvgButton: Ve,
|
|
1955
|
+
iconChevronDown: Oe,
|
|
1956
|
+
BindEventsDialog: Re,
|
|
1957
|
+
openDialog: Y,
|
|
1958
|
+
AddEventsDialog: Te
|
|
1761
1959
|
})
|
|
1762
|
-
}),
|
|
1763
|
-
|
|
1764
|
-
|
|
1960
|
+
}), T = k((y) => {
|
|
1961
|
+
y && e(h.Page).then(() => {
|
|
1962
|
+
r && r(y.ref);
|
|
1765
1963
|
});
|
|
1766
1964
|
}, {
|
|
1767
1965
|
metaData: {
|
|
1768
1966
|
id: "engine.setting.event.BindEvents.openCodePanel"
|
|
1769
1967
|
},
|
|
1770
1968
|
ctx: () => ({
|
|
1771
|
-
PLUGIN_NAME:
|
|
1772
|
-
activePlugin:
|
|
1969
|
+
PLUGIN_NAME: h,
|
|
1970
|
+
activePlugin: e,
|
|
1773
1971
|
pageState: n,
|
|
1774
|
-
getBlockEvents:
|
|
1775
|
-
getCurrentBlock:
|
|
1776
|
-
removeEventLink:
|
|
1777
|
-
getMaterial:
|
|
1778
|
-
confirm:
|
|
1779
|
-
locale:
|
|
1780
|
-
highlightMethod:
|
|
1781
|
-
commonEvents:
|
|
1972
|
+
getBlockEvents: t,
|
|
1973
|
+
getCurrentBlock: o,
|
|
1974
|
+
removeEventLink: i,
|
|
1975
|
+
getMaterial: a,
|
|
1976
|
+
confirm: c,
|
|
1977
|
+
locale: s,
|
|
1978
|
+
highlightMethod: r,
|
|
1979
|
+
commonEvents: b,
|
|
1782
1980
|
state: l,
|
|
1783
|
-
isBlock:
|
|
1784
|
-
isEmpty:
|
|
1785
|
-
renderEventList:
|
|
1786
|
-
openActionDialog:
|
|
1787
|
-
deleteAction:
|
|
1788
|
-
delEvent:
|
|
1789
|
-
openCodePanel:
|
|
1790
|
-
handleToggleAddEventDialog:
|
|
1791
|
-
handleAddEvent:
|
|
1792
|
-
useModal:
|
|
1793
|
-
getMergeMeta:
|
|
1794
|
-
useCanvas:
|
|
1795
|
-
useLayout:
|
|
1796
|
-
useBlock:
|
|
1797
|
-
useMaterial:
|
|
1798
|
-
getMetaApi:
|
|
1799
|
-
META_APP:
|
|
1800
|
-
useMessage:
|
|
1801
|
-
i18n:
|
|
1802
|
-
BlockLinkEvent:
|
|
1803
|
-
SvgButton:
|
|
1804
|
-
iconChevronDown:
|
|
1805
|
-
BindEventsDialog:
|
|
1806
|
-
openDialog:
|
|
1807
|
-
AddEventsDialog:
|
|
1981
|
+
isBlock: v,
|
|
1982
|
+
isEmpty: g,
|
|
1983
|
+
renderEventList: m,
|
|
1984
|
+
openActionDialog: C,
|
|
1985
|
+
deleteAction: A,
|
|
1986
|
+
delEvent: I,
|
|
1987
|
+
openCodePanel: T,
|
|
1988
|
+
handleToggleAddEventDialog: z,
|
|
1989
|
+
handleAddEvent: D,
|
|
1990
|
+
useModal: Le,
|
|
1991
|
+
getMergeMeta: K,
|
|
1992
|
+
useCanvas: N,
|
|
1993
|
+
useLayout: J,
|
|
1994
|
+
useBlock: Ne,
|
|
1995
|
+
useMaterial: Ie,
|
|
1996
|
+
getMetaApi: M,
|
|
1997
|
+
META_APP: V,
|
|
1998
|
+
useMessage: Be,
|
|
1999
|
+
i18n: Pe,
|
|
2000
|
+
BlockLinkEvent: Me,
|
|
2001
|
+
SvgButton: Ve,
|
|
2002
|
+
iconChevronDown: Oe,
|
|
2003
|
+
BindEventsDialog: Re,
|
|
2004
|
+
openDialog: Y,
|
|
2005
|
+
AddEventsDialog: Te
|
|
1808
2006
|
})
|
|
1809
|
-
}),
|
|
1810
|
-
l.showBindEventDialog =
|
|
2007
|
+
}), z = k((y) => {
|
|
2008
|
+
l.showBindEventDialog = y;
|
|
1811
2009
|
}, {
|
|
1812
2010
|
metaData: {
|
|
1813
2011
|
id: "engine.setting.event.BindEvents.handleToggleAddEventDialog"
|
|
1814
2012
|
},
|
|
1815
2013
|
ctx: () => ({
|
|
1816
|
-
PLUGIN_NAME:
|
|
1817
|
-
activePlugin:
|
|
2014
|
+
PLUGIN_NAME: h,
|
|
2015
|
+
activePlugin: e,
|
|
1818
2016
|
pageState: n,
|
|
1819
|
-
getBlockEvents:
|
|
1820
|
-
getCurrentBlock:
|
|
1821
|
-
removeEventLink:
|
|
1822
|
-
getMaterial:
|
|
1823
|
-
confirm:
|
|
1824
|
-
locale:
|
|
1825
|
-
highlightMethod:
|
|
1826
|
-
commonEvents:
|
|
2017
|
+
getBlockEvents: t,
|
|
2018
|
+
getCurrentBlock: o,
|
|
2019
|
+
removeEventLink: i,
|
|
2020
|
+
getMaterial: a,
|
|
2021
|
+
confirm: c,
|
|
2022
|
+
locale: s,
|
|
2023
|
+
highlightMethod: r,
|
|
2024
|
+
commonEvents: b,
|
|
1827
2025
|
state: l,
|
|
1828
|
-
isBlock:
|
|
1829
|
-
isEmpty:
|
|
1830
|
-
renderEventList:
|
|
1831
|
-
openActionDialog:
|
|
1832
|
-
deleteAction:
|
|
1833
|
-
delEvent:
|
|
1834
|
-
openCodePanel:
|
|
1835
|
-
handleToggleAddEventDialog:
|
|
1836
|
-
handleAddEvent:
|
|
1837
|
-
useModal:
|
|
1838
|
-
getMergeMeta:
|
|
1839
|
-
useCanvas:
|
|
1840
|
-
useLayout:
|
|
1841
|
-
useBlock:
|
|
1842
|
-
useMaterial:
|
|
1843
|
-
getMetaApi:
|
|
1844
|
-
META_APP:
|
|
1845
|
-
useMessage:
|
|
1846
|
-
i18n:
|
|
1847
|
-
BlockLinkEvent:
|
|
1848
|
-
SvgButton:
|
|
1849
|
-
iconChevronDown:
|
|
1850
|
-
BindEventsDialog:
|
|
1851
|
-
openDialog:
|
|
1852
|
-
AddEventsDialog:
|
|
2026
|
+
isBlock: v,
|
|
2027
|
+
isEmpty: g,
|
|
2028
|
+
renderEventList: m,
|
|
2029
|
+
openActionDialog: C,
|
|
2030
|
+
deleteAction: A,
|
|
2031
|
+
delEvent: I,
|
|
2032
|
+
openCodePanel: T,
|
|
2033
|
+
handleToggleAddEventDialog: z,
|
|
2034
|
+
handleAddEvent: D,
|
|
2035
|
+
useModal: Le,
|
|
2036
|
+
getMergeMeta: K,
|
|
2037
|
+
useCanvas: N,
|
|
2038
|
+
useLayout: J,
|
|
2039
|
+
useBlock: Ne,
|
|
2040
|
+
useMaterial: Ie,
|
|
2041
|
+
getMetaApi: M,
|
|
2042
|
+
META_APP: V,
|
|
2043
|
+
useMessage: Be,
|
|
2044
|
+
i18n: Pe,
|
|
2045
|
+
BlockLinkEvent: Me,
|
|
2046
|
+
SvgButton: Ve,
|
|
2047
|
+
iconChevronDown: Oe,
|
|
2048
|
+
BindEventsDialog: Re,
|
|
2049
|
+
openDialog: Y,
|
|
2050
|
+
AddEventsDialog: Te
|
|
1853
2051
|
})
|
|
1854
|
-
}),
|
|
2052
|
+
}), D = k((y) => {
|
|
1855
2053
|
const {
|
|
1856
|
-
eventName:
|
|
1857
|
-
eventDescription:
|
|
1858
|
-
} =
|
|
2054
|
+
eventName: B,
|
|
2055
|
+
eventDescription: q
|
|
2056
|
+
} = y;
|
|
1859
2057
|
Object.assign(l.customEvents, {
|
|
1860
|
-
[
|
|
2058
|
+
[B]: {
|
|
1861
2059
|
label: {
|
|
1862
|
-
zh_CN:
|
|
2060
|
+
zh_CN: q
|
|
1863
2061
|
},
|
|
1864
2062
|
description: {
|
|
1865
|
-
zh_CN: `${
|
|
2063
|
+
zh_CN: `${q}的回调函数`
|
|
1866
2064
|
},
|
|
1867
2065
|
type: "event",
|
|
1868
2066
|
functionInfo: {
|
|
@@ -1877,65 +2075,65 @@ const Ct = /* @__PURE__ */ Bt(Fe, [["render", He], ["__scopeId", "data-v-84897b9
|
|
|
1877
2075
|
id: "engine.setting.event.BindEvents.handleAddEvent"
|
|
1878
2076
|
},
|
|
1879
2077
|
ctx: () => ({
|
|
1880
|
-
PLUGIN_NAME:
|
|
1881
|
-
activePlugin:
|
|
2078
|
+
PLUGIN_NAME: h,
|
|
2079
|
+
activePlugin: e,
|
|
1882
2080
|
pageState: n,
|
|
1883
|
-
getBlockEvents:
|
|
1884
|
-
getCurrentBlock:
|
|
1885
|
-
removeEventLink:
|
|
1886
|
-
getMaterial:
|
|
1887
|
-
confirm:
|
|
1888
|
-
locale:
|
|
1889
|
-
highlightMethod:
|
|
1890
|
-
commonEvents:
|
|
2081
|
+
getBlockEvents: t,
|
|
2082
|
+
getCurrentBlock: o,
|
|
2083
|
+
removeEventLink: i,
|
|
2084
|
+
getMaterial: a,
|
|
2085
|
+
confirm: c,
|
|
2086
|
+
locale: s,
|
|
2087
|
+
highlightMethod: r,
|
|
2088
|
+
commonEvents: b,
|
|
1891
2089
|
state: l,
|
|
1892
|
-
isBlock:
|
|
1893
|
-
isEmpty:
|
|
1894
|
-
renderEventList:
|
|
1895
|
-
openActionDialog:
|
|
1896
|
-
deleteAction:
|
|
1897
|
-
delEvent:
|
|
1898
|
-
openCodePanel:
|
|
1899
|
-
handleToggleAddEventDialog:
|
|
1900
|
-
handleAddEvent:
|
|
1901
|
-
useModal:
|
|
1902
|
-
getMergeMeta:
|
|
1903
|
-
useCanvas:
|
|
1904
|
-
useLayout:
|
|
1905
|
-
useBlock:
|
|
1906
|
-
useMaterial:
|
|
1907
|
-
getMetaApi:
|
|
1908
|
-
META_APP:
|
|
1909
|
-
useMessage:
|
|
1910
|
-
i18n:
|
|
1911
|
-
BlockLinkEvent:
|
|
1912
|
-
SvgButton:
|
|
1913
|
-
iconChevronDown:
|
|
1914
|
-
BindEventsDialog:
|
|
1915
|
-
openDialog:
|
|
1916
|
-
AddEventsDialog:
|
|
2090
|
+
isBlock: v,
|
|
2091
|
+
isEmpty: g,
|
|
2092
|
+
renderEventList: m,
|
|
2093
|
+
openActionDialog: C,
|
|
2094
|
+
deleteAction: A,
|
|
2095
|
+
delEvent: I,
|
|
2096
|
+
openCodePanel: T,
|
|
2097
|
+
handleToggleAddEventDialog: z,
|
|
2098
|
+
handleAddEvent: D,
|
|
2099
|
+
useModal: Le,
|
|
2100
|
+
getMergeMeta: K,
|
|
2101
|
+
useCanvas: N,
|
|
2102
|
+
useLayout: J,
|
|
2103
|
+
useBlock: Ne,
|
|
2104
|
+
useMaterial: Ie,
|
|
2105
|
+
getMetaApi: M,
|
|
2106
|
+
META_APP: V,
|
|
2107
|
+
useMessage: Be,
|
|
2108
|
+
i18n: Pe,
|
|
2109
|
+
BlockLinkEvent: Me,
|
|
2110
|
+
SvgButton: Ve,
|
|
2111
|
+
iconChevronDown: Oe,
|
|
2112
|
+
BindEventsDialog: Re,
|
|
2113
|
+
openDialog: Y,
|
|
2114
|
+
AddEventsDialog: Te
|
|
1917
2115
|
})
|
|
1918
2116
|
});
|
|
1919
2117
|
return {
|
|
1920
2118
|
state: l,
|
|
1921
|
-
isBlock:
|
|
1922
|
-
isEmpty:
|
|
1923
|
-
delEvent:
|
|
1924
|
-
openCodePanel:
|
|
1925
|
-
openActionDialog:
|
|
1926
|
-
handleAddEvent:
|
|
1927
|
-
handleToggleAddEventDialog:
|
|
1928
|
-
renderEventList:
|
|
1929
|
-
locale:
|
|
2119
|
+
isBlock: v,
|
|
2120
|
+
isEmpty: g,
|
|
2121
|
+
delEvent: I,
|
|
2122
|
+
openCodePanel: T,
|
|
2123
|
+
openActionDialog: C,
|
|
2124
|
+
handleAddEvent: D,
|
|
2125
|
+
handleToggleAddEventDialog: z,
|
|
2126
|
+
renderEventList: m,
|
|
2127
|
+
locale: s
|
|
1930
2128
|
};
|
|
1931
2129
|
}
|
|
1932
|
-
},
|
|
1933
|
-
function
|
|
1934
|
-
const
|
|
1935
|
-
return
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
2130
|
+
}, Zt = { class: "bind-action-list" }, Qt = { class: "popover-head" }, en = { class: "bind-event-list" }, tn = ["onClick"], nn = { class: "bind-actions" }, on = { class: "action-item bind-action-item" }, sn = ["onClick"], rn = { class: "event-bind" }, ln = { class: "action-buttons" }, an = { class: "empty-action" }, dn = { class: "icon" };
|
|
2131
|
+
function cn(h, e, n, t, o, i) {
|
|
2132
|
+
const a = H("icon-chevron-down"), c = H("tiny-button"), s = H("tiny-popover"), r = H("svg-icon"), b = H("block-link-event"), l = H("svg-button"), v = H("bind-events-dialog"), g = H("add-events-dialog");
|
|
2133
|
+
return j(), se(Qe, null, [
|
|
2134
|
+
_("div", Zt, [
|
|
2135
|
+
_("div", Qt, [
|
|
2136
|
+
S(s, {
|
|
1939
2137
|
popperClass: "option-popper setting-advanced-bind-event-list",
|
|
1940
2138
|
placement: "bottom-start",
|
|
1941
2139
|
trigger: "hover",
|
|
@@ -1943,340 +2141,340 @@ function dn(c, t, n, e, i, o) {
|
|
|
1943
2141
|
width: "256",
|
|
1944
2142
|
"visible-arrow": !1
|
|
1945
2143
|
}, {
|
|
1946
|
-
reference:
|
|
1947
|
-
|
|
1948
|
-
default:
|
|
1949
|
-
|
|
1950
|
-
|
|
2144
|
+
reference: X(() => [
|
|
2145
|
+
S(c, { class: "bind-event-btn" }, {
|
|
2146
|
+
default: X(() => [
|
|
2147
|
+
e[2] || (e[2] = _("span", null, "绑定事件", -1)),
|
|
2148
|
+
S(a, { class: "icon-chevron-down bind-event-btn-icon" })
|
|
1951
2149
|
]),
|
|
1952
2150
|
_: 1,
|
|
1953
2151
|
__: [2]
|
|
1954
2152
|
})
|
|
1955
2153
|
]),
|
|
1956
|
-
default:
|
|
1957
|
-
|
|
1958
|
-
(
|
|
1959
|
-
var
|
|
1960
|
-
return
|
|
1961
|
-
key:
|
|
1962
|
-
class:
|
|
1963
|
-
onClick: (
|
|
2154
|
+
default: X(() => [
|
|
2155
|
+
_("ul", en, [
|
|
2156
|
+
(j(!0), se(Qe, null, st(t.renderEventList, (m, C) => {
|
|
2157
|
+
var A;
|
|
2158
|
+
return j(), se("li", {
|
|
2159
|
+
key: C,
|
|
2160
|
+
class: Je(["bind-event-list-item", { "bind-event-list-item-notallow": t.state.bindActions[C] }]),
|
|
2161
|
+
onClick: (I) => t.openActionDialog({ eventName: C }, !0)
|
|
1964
2162
|
}, [
|
|
1965
|
-
|
|
2163
|
+
_("div", null, ge(C) + " | " + ge(((A = m == null ? void 0 : m.label) == null ? void 0 : A[t.locale]) || C), 1)
|
|
1966
2164
|
], 10, tn);
|
|
1967
2165
|
}), 128))
|
|
1968
2166
|
])
|
|
1969
2167
|
]),
|
|
1970
2168
|
_: 1
|
|
1971
2169
|
}),
|
|
1972
|
-
|
|
2170
|
+
S(c, {
|
|
1973
2171
|
class: "title add-custom-event-button bind-action-button-item",
|
|
1974
|
-
onClick:
|
|
2172
|
+
onClick: e[0] || (e[0] = (m) => t.handleToggleAddEventDialog(!0))
|
|
1975
2173
|
}, {
|
|
1976
|
-
default:
|
|
1977
|
-
|
|
2174
|
+
default: X(() => [
|
|
2175
|
+
S(r, {
|
|
1978
2176
|
name: "add",
|
|
1979
2177
|
class: "custom-event-button-icon"
|
|
1980
2178
|
}),
|
|
1981
|
-
|
|
2179
|
+
e[3] || (e[3] = _("span", { class: "custom-event-button-text" }, "添加新事件", -1))
|
|
1982
2180
|
]),
|
|
1983
2181
|
_: 1,
|
|
1984
2182
|
__: [3]
|
|
1985
2183
|
})
|
|
1986
2184
|
]),
|
|
1987
|
-
|
|
1988
|
-
(
|
|
1989
|
-
var
|
|
1990
|
-
return
|
|
1991
|
-
key:
|
|
2185
|
+
ct(_("ul", nn, [
|
|
2186
|
+
(j(!0), se(Qe, null, st(t.state.bindActions, (m) => {
|
|
2187
|
+
var C, A;
|
|
2188
|
+
return j(), se("li", {
|
|
2189
|
+
key: m.eventName
|
|
1992
2190
|
}, [
|
|
1993
|
-
|
|
1994
|
-
|
|
2191
|
+
_("div", on, [
|
|
2192
|
+
_("div", {
|
|
1995
2193
|
class: "binding-name",
|
|
1996
|
-
onClick: (
|
|
2194
|
+
onClick: (I) => t.openActionDialog(m)
|
|
1997
2195
|
}, [
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2196
|
+
_("div", null, [
|
|
2197
|
+
Ue(ge(m.eventName), 1),
|
|
2198
|
+
_("span", null, ge((A = (C = t.renderEventList[m.eventName]) == null ? void 0 : C.label) == null ? void 0 : A[t.locale]), 1)
|
|
2001
2199
|
]),
|
|
2002
|
-
|
|
2003
|
-
class:
|
|
2004
|
-
},
|
|
2005
|
-
|
|
2006
|
-
], 8,
|
|
2007
|
-
|
|
2008
|
-
|
|
2200
|
+
_("div", {
|
|
2201
|
+
class: Je({ linked: m.linked })
|
|
2202
|
+
}, ge(m.linkedEventName), 3),
|
|
2203
|
+
_("span", rn, ge(m.ref), 1)
|
|
2204
|
+
], 8, sn),
|
|
2205
|
+
_("div", ln, [
|
|
2206
|
+
t.isBlock ? (j(), ve(b, {
|
|
2009
2207
|
key: 0,
|
|
2010
|
-
data:
|
|
2011
|
-
}, null, 8, ["data"])) :
|
|
2012
|
-
|
|
2208
|
+
data: m
|
|
2209
|
+
}, null, 8, ["data"])) : et("", !0),
|
|
2210
|
+
S(l, {
|
|
2013
2211
|
name: "plugin-icon-page-schema",
|
|
2014
2212
|
tips: "定位到代码",
|
|
2015
2213
|
placement: "top",
|
|
2016
2214
|
hoverBgColor: !1,
|
|
2017
|
-
onClick: (
|
|
2215
|
+
onClick: (I) => t.openCodePanel(m)
|
|
2018
2216
|
}, null, 8, ["onClick"]),
|
|
2019
|
-
|
|
2217
|
+
S(l, {
|
|
2020
2218
|
name: "setting",
|
|
2021
2219
|
hoverBgColor: !1,
|
|
2022
|
-
onClick: (
|
|
2220
|
+
onClick: (I) => t.openActionDialog(m, !1)
|
|
2023
2221
|
}, null, 8, ["onClick"]),
|
|
2024
|
-
|
|
2222
|
+
S(l, {
|
|
2025
2223
|
name: "delete",
|
|
2026
2224
|
hoverBgColor: !1,
|
|
2027
|
-
onClick: (
|
|
2225
|
+
onClick: (I) => t.delEvent(m)
|
|
2028
2226
|
}, null, 8, ["onClick"])
|
|
2029
2227
|
])
|
|
2030
2228
|
])
|
|
2031
2229
|
]);
|
|
2032
2230
|
}), 128))
|
|
2033
2231
|
], 512), [
|
|
2034
|
-
[
|
|
2232
|
+
[ht, !t.isEmpty]
|
|
2035
2233
|
]),
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2234
|
+
ct(_("div", an, [
|
|
2235
|
+
_("div", dn, [
|
|
2236
|
+
S(r, {
|
|
2039
2237
|
name: "empty-action",
|
|
2040
2238
|
class: "empty-action-icon"
|
|
2041
2239
|
})
|
|
2042
2240
|
]),
|
|
2043
|
-
|
|
2241
|
+
e[4] || (e[4] = _("div", { class: "center" }, "支持添加原生DOM事件,然后点击 绑定事件 为画布所选元素增加事件", -1))
|
|
2044
2242
|
], 512), [
|
|
2045
|
-
[
|
|
2243
|
+
[ht, t.isEmpty]
|
|
2046
2244
|
])
|
|
2047
2245
|
]),
|
|
2048
|
-
|
|
2049
|
-
eventBinding:
|
|
2246
|
+
S(v, {
|
|
2247
|
+
eventBinding: t.state.eventBinding
|
|
2050
2248
|
}, null, 8, ["eventBinding"]),
|
|
2051
|
-
|
|
2052
|
-
visible:
|
|
2053
|
-
componentEvents:
|
|
2054
|
-
onCloseDialog:
|
|
2055
|
-
onAddEvent:
|
|
2249
|
+
S(g, {
|
|
2250
|
+
visible: t.state.showBindEventDialog,
|
|
2251
|
+
componentEvents: t.renderEventList,
|
|
2252
|
+
onCloseDialog: e[1] || (e[1] = (m) => t.handleToggleAddEventDialog(!1)),
|
|
2253
|
+
onAddEvent: t.handleAddEvent
|
|
2056
2254
|
}, null, 8, ["visible", "componentEvents", "onAddEvent"])
|
|
2057
2255
|
], 64);
|
|
2058
2256
|
}
|
|
2059
|
-
const
|
|
2060
|
-
DEFAULT_LOOP_NAME:
|
|
2061
|
-
} =
|
|
2062
|
-
string2Obj:
|
|
2063
|
-
} =
|
|
2257
|
+
const hn = /* @__PURE__ */ Ge(Wt, [["render", cn], ["__scopeId", "data-v-64f96b67"]]), {
|
|
2258
|
+
DEFAULT_LOOP_NAME: oe
|
|
2259
|
+
} = De, {
|
|
2260
|
+
string2Obj: we
|
|
2261
|
+
} = Se, un = {
|
|
2064
2262
|
components: {
|
|
2065
|
-
SwitchConfigurator:
|
|
2066
|
-
TinyTooltip:
|
|
2067
|
-
VariableConfigurator:
|
|
2068
|
-
InputConfigurator:
|
|
2069
|
-
CodeConfigurator:
|
|
2263
|
+
SwitchConfigurator: xe,
|
|
2264
|
+
TinyTooltip: At,
|
|
2265
|
+
VariableConfigurator: ye,
|
|
2266
|
+
InputConfigurator: Ce,
|
|
2267
|
+
CodeConfigurator: Ee
|
|
2070
2268
|
},
|
|
2071
2269
|
inheritAttrs: !1,
|
|
2072
2270
|
setup() {
|
|
2073
2271
|
const {
|
|
2074
|
-
pageState:
|
|
2075
|
-
} =
|
|
2272
|
+
pageState: h
|
|
2273
|
+
} = N(), e = Xe(!1), n = Ye(() => {
|
|
2076
2274
|
var l;
|
|
2077
|
-
return ((l =
|
|
2078
|
-
}),
|
|
2079
|
-
var l,
|
|
2080
|
-
return ((
|
|
2275
|
+
return ((l = e.value) == null ? void 0 : l.type) === fe.JSEXPRESSION;
|
|
2276
|
+
}), t = k(() => {
|
|
2277
|
+
var l, v;
|
|
2278
|
+
return ((v = (l = ne().getSchema()) == null ? void 0 : l.loopArgs) == null ? void 0 : v[1]) || oe.INDEX;
|
|
2081
2279
|
}, {
|
|
2082
2280
|
metaData: {
|
|
2083
2281
|
id: "engine.setting.event.AdvanceConfig.getIndexName"
|
|
2084
2282
|
},
|
|
2085
2283
|
ctx: () => ({
|
|
2086
|
-
pageState:
|
|
2087
|
-
condition:
|
|
2284
|
+
pageState: h,
|
|
2285
|
+
condition: e,
|
|
2088
2286
|
isBind: n,
|
|
2089
|
-
getIndexName:
|
|
2090
|
-
state:
|
|
2091
|
-
setLoopKey:
|
|
2092
|
-
openEditor:
|
|
2093
|
-
setConfig:
|
|
2094
|
-
setLoopIndex:
|
|
2095
|
-
setLoop:
|
|
2096
|
-
setLoopItem:
|
|
2097
|
-
CodeConfigurator:
|
|
2098
|
-
InputConfigurator:
|
|
2099
|
-
SwitchConfigurator:
|
|
2100
|
-
VariableConfigurator:
|
|
2101
|
-
useProperties:
|
|
2102
|
-
useCanvas:
|
|
2103
|
-
PROP_DATA_TYPE:
|
|
2104
|
-
constants:
|
|
2105
|
-
utils:
|
|
2106
|
-
DEFAULT_LOOP_NAME:
|
|
2107
|
-
string2Obj:
|
|
2287
|
+
getIndexName: t,
|
|
2288
|
+
state: o,
|
|
2289
|
+
setLoopKey: i,
|
|
2290
|
+
openEditor: a,
|
|
2291
|
+
setConfig: c,
|
|
2292
|
+
setLoopIndex: s,
|
|
2293
|
+
setLoop: r,
|
|
2294
|
+
setLoopItem: b,
|
|
2295
|
+
CodeConfigurator: Ee,
|
|
2296
|
+
InputConfigurator: Ce,
|
|
2297
|
+
SwitchConfigurator: xe,
|
|
2298
|
+
VariableConfigurator: ye,
|
|
2299
|
+
useProperties: ne,
|
|
2300
|
+
useCanvas: N,
|
|
2301
|
+
PROP_DATA_TYPE: fe,
|
|
2302
|
+
constants: De,
|
|
2303
|
+
utils: Se,
|
|
2304
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2305
|
+
string2Obj: we
|
|
2108
2306
|
})
|
|
2109
|
-
}),
|
|
2307
|
+
}), o = Ze({
|
|
2110
2308
|
loopData: {
|
|
2111
|
-
type:
|
|
2309
|
+
type: fe.JSEXPRESSION,
|
|
2112
2310
|
value: "[]"
|
|
2113
2311
|
},
|
|
2114
2312
|
loopItem: "item",
|
|
2115
2313
|
loopIndex: "index",
|
|
2116
|
-
isLoop:
|
|
2314
|
+
isLoop: Ye(() => {
|
|
2117
2315
|
var l;
|
|
2118
|
-
return ((l =
|
|
2316
|
+
return ((l = o.loopData) == null ? void 0 : l.type) === fe.JSEXPRESSION;
|
|
2119
2317
|
}),
|
|
2120
2318
|
loopKey: "",
|
|
2121
2319
|
shouldUpdate: !1
|
|
2122
2320
|
});
|
|
2123
|
-
|
|
2124
|
-
var
|
|
2125
|
-
|
|
2321
|
+
ut(() => [h == null ? void 0 : h.currentSchema, o.shouldUpdate], ([l]) => {
|
|
2322
|
+
var v, g, m, C;
|
|
2323
|
+
e.value = (l == null ? void 0 : l.condition) === void 0 ? !0 : l == null ? void 0 : l.condition, o.loopData = l == null ? void 0 : l.loop, o.loopItem = ((v = l == null ? void 0 : l.loopArgs) == null ? void 0 : v[0]) || "", o.loopIndex = ((g = l == null ? void 0 : l.loopArgs) == null ? void 0 : g[1]) || "", o.loopKey = ((C = (m = l == null ? void 0 : l.props) == null ? void 0 : m.key) == null ? void 0 : C.value) || "";
|
|
2126
2324
|
});
|
|
2127
|
-
const
|
|
2128
|
-
var
|
|
2325
|
+
const i = k((l = "") => {
|
|
2326
|
+
var I;
|
|
2129
2327
|
l = l.replace(/\s*/g, "");
|
|
2130
2328
|
const {
|
|
2131
|
-
getSchema:
|
|
2132
|
-
setProp:
|
|
2133
|
-
} =
|
|
2134
|
-
if (!
|
|
2329
|
+
getSchema: v,
|
|
2330
|
+
setProp: g
|
|
2331
|
+
} = ne(), m = v();
|
|
2332
|
+
if (!m)
|
|
2135
2333
|
return;
|
|
2136
|
-
const
|
|
2137
|
-
let
|
|
2138
|
-
l && !
|
|
2139
|
-
type:
|
|
2334
|
+
const C = Number(l).toString() !== "NaN";
|
|
2335
|
+
let A = (I = m.props) == null ? void 0 : I.key;
|
|
2336
|
+
l && !C && (A = {
|
|
2337
|
+
type: fe.JSEXPRESSION,
|
|
2140
2338
|
value: l
|
|
2141
|
-
}), l || (
|
|
2142
|
-
type:
|
|
2143
|
-
value:
|
|
2144
|
-
} :
|
|
2339
|
+
}), l || (o.isLoop ? A = {
|
|
2340
|
+
type: fe.JSEXPRESSION,
|
|
2341
|
+
value: t()
|
|
2342
|
+
} : A = ""), g("key", A);
|
|
2145
2343
|
}, {
|
|
2146
2344
|
metaData: {
|
|
2147
2345
|
id: "engine.setting.event.AdvanceConfig.setLoopKey"
|
|
2148
2346
|
},
|
|
2149
2347
|
ctx: () => ({
|
|
2150
|
-
pageState:
|
|
2151
|
-
condition:
|
|
2348
|
+
pageState: h,
|
|
2349
|
+
condition: e,
|
|
2152
2350
|
isBind: n,
|
|
2153
|
-
getIndexName:
|
|
2154
|
-
state:
|
|
2155
|
-
setLoopKey:
|
|
2156
|
-
openEditor:
|
|
2157
|
-
setConfig:
|
|
2158
|
-
setLoopIndex:
|
|
2159
|
-
setLoop:
|
|
2160
|
-
setLoopItem:
|
|
2161
|
-
CodeConfigurator:
|
|
2162
|
-
InputConfigurator:
|
|
2163
|
-
SwitchConfigurator:
|
|
2164
|
-
VariableConfigurator:
|
|
2165
|
-
useProperties:
|
|
2166
|
-
useCanvas:
|
|
2167
|
-
PROP_DATA_TYPE:
|
|
2168
|
-
constants:
|
|
2169
|
-
utils:
|
|
2170
|
-
DEFAULT_LOOP_NAME:
|
|
2171
|
-
string2Obj:
|
|
2351
|
+
getIndexName: t,
|
|
2352
|
+
state: o,
|
|
2353
|
+
setLoopKey: i,
|
|
2354
|
+
openEditor: a,
|
|
2355
|
+
setConfig: c,
|
|
2356
|
+
setLoopIndex: s,
|
|
2357
|
+
setLoop: r,
|
|
2358
|
+
setLoopItem: b,
|
|
2359
|
+
CodeConfigurator: Ee,
|
|
2360
|
+
InputConfigurator: Ce,
|
|
2361
|
+
SwitchConfigurator: xe,
|
|
2362
|
+
VariableConfigurator: ye,
|
|
2363
|
+
useProperties: ne,
|
|
2364
|
+
useCanvas: N,
|
|
2365
|
+
PROP_DATA_TYPE: fe,
|
|
2366
|
+
constants: De,
|
|
2367
|
+
utils: Se,
|
|
2368
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2369
|
+
string2Obj: we
|
|
2172
2370
|
})
|
|
2173
2371
|
});
|
|
2174
|
-
|
|
2175
|
-
!
|
|
2372
|
+
ut([() => o.isLoop, () => o.loopIndex], () => {
|
|
2373
|
+
!o.loopKey && o.isLoop && i(t()), o.isLoop || i("");
|
|
2176
2374
|
});
|
|
2177
|
-
const
|
|
2375
|
+
const a = k(() => {
|
|
2178
2376
|
var l;
|
|
2179
|
-
|
|
2377
|
+
o.loopData = (l = ne().getSchema()) == null ? void 0 : l.loop;
|
|
2180
2378
|
}, {
|
|
2181
2379
|
metaData: {
|
|
2182
2380
|
id: "engine.setting.event.AdvanceConfig.openEditor"
|
|
2183
2381
|
},
|
|
2184
2382
|
ctx: () => ({
|
|
2185
|
-
pageState:
|
|
2186
|
-
condition:
|
|
2383
|
+
pageState: h,
|
|
2384
|
+
condition: e,
|
|
2187
2385
|
isBind: n,
|
|
2188
|
-
getIndexName:
|
|
2189
|
-
state:
|
|
2190
|
-
setLoopKey:
|
|
2191
|
-
openEditor:
|
|
2192
|
-
setConfig:
|
|
2193
|
-
setLoopIndex:
|
|
2194
|
-
setLoop:
|
|
2195
|
-
setLoopItem:
|
|
2196
|
-
CodeConfigurator:
|
|
2197
|
-
InputConfigurator:
|
|
2198
|
-
SwitchConfigurator:
|
|
2199
|
-
VariableConfigurator:
|
|
2200
|
-
useProperties:
|
|
2201
|
-
useCanvas:
|
|
2202
|
-
PROP_DATA_TYPE:
|
|
2203
|
-
constants:
|
|
2204
|
-
utils:
|
|
2205
|
-
DEFAULT_LOOP_NAME:
|
|
2206
|
-
string2Obj:
|
|
2386
|
+
getIndexName: t,
|
|
2387
|
+
state: o,
|
|
2388
|
+
setLoopKey: i,
|
|
2389
|
+
openEditor: a,
|
|
2390
|
+
setConfig: c,
|
|
2391
|
+
setLoopIndex: s,
|
|
2392
|
+
setLoop: r,
|
|
2393
|
+
setLoopItem: b,
|
|
2394
|
+
CodeConfigurator: Ee,
|
|
2395
|
+
InputConfigurator: Ce,
|
|
2396
|
+
SwitchConfigurator: xe,
|
|
2397
|
+
VariableConfigurator: ye,
|
|
2398
|
+
useProperties: ne,
|
|
2399
|
+
useCanvas: N,
|
|
2400
|
+
PROP_DATA_TYPE: fe,
|
|
2401
|
+
constants: De,
|
|
2402
|
+
utils: Se,
|
|
2403
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2404
|
+
string2Obj: we
|
|
2207
2405
|
})
|
|
2208
|
-
}),
|
|
2406
|
+
}), c = k((l) => {
|
|
2209
2407
|
const {
|
|
2210
|
-
getSchema:
|
|
2211
|
-
} =
|
|
2212
|
-
if (!
|
|
2408
|
+
getSchema: v
|
|
2409
|
+
} = ne(), g = v();
|
|
2410
|
+
if (!g)
|
|
2213
2411
|
return;
|
|
2214
2412
|
const {
|
|
2215
|
-
operateNode:
|
|
2216
|
-
} =
|
|
2413
|
+
operateNode: m
|
|
2414
|
+
} = N();
|
|
2217
2415
|
if (l === !1 || l != null && l.type)
|
|
2218
|
-
|
|
2416
|
+
m({
|
|
2219
2417
|
type: "updateAttributes",
|
|
2220
|
-
id:
|
|
2418
|
+
id: g.id,
|
|
2221
2419
|
value: {
|
|
2222
2420
|
condition: l
|
|
2223
2421
|
}
|
|
2224
2422
|
});
|
|
2225
2423
|
else {
|
|
2226
2424
|
const {
|
|
2227
|
-
condition:
|
|
2228
|
-
children:
|
|
2229
|
-
...
|
|
2230
|
-
} =
|
|
2231
|
-
|
|
2425
|
+
condition: C,
|
|
2426
|
+
children: A,
|
|
2427
|
+
...I
|
|
2428
|
+
} = g;
|
|
2429
|
+
m({
|
|
2232
2430
|
type: "updateAttributes",
|
|
2233
|
-
id:
|
|
2431
|
+
id: g.id,
|
|
2234
2432
|
value: {
|
|
2235
|
-
...
|
|
2433
|
+
...I
|
|
2236
2434
|
},
|
|
2237
2435
|
overwrite: !0
|
|
2238
2436
|
});
|
|
2239
2437
|
}
|
|
2240
|
-
|
|
2438
|
+
N().canvasApi.value.updateRect(), e.value = l;
|
|
2241
2439
|
}, {
|
|
2242
2440
|
metaData: {
|
|
2243
2441
|
id: "engine.setting.event.AdvanceConfig.setConfig"
|
|
2244
2442
|
},
|
|
2245
2443
|
ctx: () => ({
|
|
2246
|
-
pageState:
|
|
2247
|
-
condition:
|
|
2444
|
+
pageState: h,
|
|
2445
|
+
condition: e,
|
|
2248
2446
|
isBind: n,
|
|
2249
|
-
getIndexName:
|
|
2250
|
-
state:
|
|
2251
|
-
setLoopKey:
|
|
2252
|
-
openEditor:
|
|
2253
|
-
setConfig:
|
|
2254
|
-
setLoopIndex:
|
|
2255
|
-
setLoop:
|
|
2256
|
-
setLoopItem:
|
|
2257
|
-
CodeConfigurator:
|
|
2258
|
-
InputConfigurator:
|
|
2259
|
-
SwitchConfigurator:
|
|
2260
|
-
VariableConfigurator:
|
|
2261
|
-
useProperties:
|
|
2262
|
-
useCanvas:
|
|
2263
|
-
PROP_DATA_TYPE:
|
|
2264
|
-
constants:
|
|
2265
|
-
utils:
|
|
2266
|
-
DEFAULT_LOOP_NAME:
|
|
2267
|
-
string2Obj:
|
|
2447
|
+
getIndexName: t,
|
|
2448
|
+
state: o,
|
|
2449
|
+
setLoopKey: i,
|
|
2450
|
+
openEditor: a,
|
|
2451
|
+
setConfig: c,
|
|
2452
|
+
setLoopIndex: s,
|
|
2453
|
+
setLoop: r,
|
|
2454
|
+
setLoopItem: b,
|
|
2455
|
+
CodeConfigurator: Ee,
|
|
2456
|
+
InputConfigurator: Ce,
|
|
2457
|
+
SwitchConfigurator: xe,
|
|
2458
|
+
VariableConfigurator: ye,
|
|
2459
|
+
useProperties: ne,
|
|
2460
|
+
useCanvas: N,
|
|
2461
|
+
PROP_DATA_TYPE: fe,
|
|
2462
|
+
constants: De,
|
|
2463
|
+
utils: Se,
|
|
2464
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2465
|
+
string2Obj: we
|
|
2268
2466
|
})
|
|
2269
|
-
}),
|
|
2270
|
-
const
|
|
2271
|
-
let
|
|
2467
|
+
}), s = k((l) => {
|
|
2468
|
+
const v = ne().getSchema();
|
|
2469
|
+
let g = v.loopArgs;
|
|
2272
2470
|
const {
|
|
2273
|
-
operateNode:
|
|
2274
|
-
} =
|
|
2275
|
-
|
|
2471
|
+
operateNode: m
|
|
2472
|
+
} = N();
|
|
2473
|
+
g ? g[1] = l || oe.INDEX : g = [oe.ITEM, l], m({
|
|
2276
2474
|
type: "updateAttributes",
|
|
2277
|
-
id:
|
|
2475
|
+
id: v.id,
|
|
2278
2476
|
value: {
|
|
2279
|
-
loopArgs:
|
|
2477
|
+
loopArgs: g
|
|
2280
2478
|
}
|
|
2281
2479
|
});
|
|
2282
2480
|
}, {
|
|
@@ -2284,99 +2482,99 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2284
2482
|
id: "engine.setting.event.AdvanceConfig.setLoopIndex"
|
|
2285
2483
|
},
|
|
2286
2484
|
ctx: () => ({
|
|
2287
|
-
pageState:
|
|
2288
|
-
condition:
|
|
2485
|
+
pageState: h,
|
|
2486
|
+
condition: e,
|
|
2289
2487
|
isBind: n,
|
|
2290
|
-
getIndexName:
|
|
2291
|
-
state:
|
|
2292
|
-
setLoopKey:
|
|
2293
|
-
openEditor:
|
|
2294
|
-
setConfig:
|
|
2295
|
-
setLoopIndex:
|
|
2296
|
-
setLoop:
|
|
2297
|
-
setLoopItem:
|
|
2298
|
-
CodeConfigurator:
|
|
2299
|
-
InputConfigurator:
|
|
2300
|
-
SwitchConfigurator:
|
|
2301
|
-
VariableConfigurator:
|
|
2302
|
-
useProperties:
|
|
2303
|
-
useCanvas:
|
|
2304
|
-
PROP_DATA_TYPE:
|
|
2305
|
-
constants:
|
|
2306
|
-
utils:
|
|
2307
|
-
DEFAULT_LOOP_NAME:
|
|
2308
|
-
string2Obj:
|
|
2488
|
+
getIndexName: t,
|
|
2489
|
+
state: o,
|
|
2490
|
+
setLoopKey: i,
|
|
2491
|
+
openEditor: a,
|
|
2492
|
+
setConfig: c,
|
|
2493
|
+
setLoopIndex: s,
|
|
2494
|
+
setLoop: r,
|
|
2495
|
+
setLoopItem: b,
|
|
2496
|
+
CodeConfigurator: Ee,
|
|
2497
|
+
InputConfigurator: Ce,
|
|
2498
|
+
SwitchConfigurator: xe,
|
|
2499
|
+
VariableConfigurator: ye,
|
|
2500
|
+
useProperties: ne,
|
|
2501
|
+
useCanvas: N,
|
|
2502
|
+
PROP_DATA_TYPE: fe,
|
|
2503
|
+
constants: De,
|
|
2504
|
+
utils: Se,
|
|
2505
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2506
|
+
string2Obj: we
|
|
2309
2507
|
})
|
|
2310
|
-
}),
|
|
2508
|
+
}), r = k((l) => {
|
|
2311
2509
|
const {
|
|
2312
|
-
operateNode:
|
|
2313
|
-
} =
|
|
2314
|
-
getSchema:
|
|
2315
|
-
} =
|
|
2510
|
+
operateNode: v
|
|
2511
|
+
} = N(), {
|
|
2512
|
+
getSchema: g
|
|
2513
|
+
} = ne(), m = g();
|
|
2316
2514
|
if (l) {
|
|
2317
|
-
const
|
|
2318
|
-
|
|
2515
|
+
const C = l != null && l.type ? l : we(l);
|
|
2516
|
+
v({
|
|
2319
2517
|
type: "updateAttributes",
|
|
2320
|
-
id:
|
|
2518
|
+
id: m.id,
|
|
2321
2519
|
value: {
|
|
2322
|
-
loop:
|
|
2520
|
+
loop: C
|
|
2323
2521
|
}
|
|
2324
|
-
}),
|
|
2522
|
+
}), s(oe.INDEX);
|
|
2325
2523
|
} else {
|
|
2326
|
-
|
|
2524
|
+
i();
|
|
2327
2525
|
const {
|
|
2328
|
-
loop:
|
|
2329
|
-
loopArgs:
|
|
2330
|
-
children:
|
|
2331
|
-
...
|
|
2332
|
-
} =
|
|
2333
|
-
|
|
2526
|
+
loop: C,
|
|
2527
|
+
loopArgs: A,
|
|
2528
|
+
children: I,
|
|
2529
|
+
...T
|
|
2530
|
+
} = m;
|
|
2531
|
+
v({
|
|
2334
2532
|
type: "updateAttributes",
|
|
2335
|
-
id:
|
|
2336
|
-
value:
|
|
2533
|
+
id: m.id,
|
|
2534
|
+
value: T,
|
|
2337
2535
|
overwrite: !0
|
|
2338
2536
|
});
|
|
2339
2537
|
}
|
|
2340
|
-
|
|
2538
|
+
o.shouldUpdate = !o.shouldUpdate;
|
|
2341
2539
|
}, {
|
|
2342
2540
|
metaData: {
|
|
2343
2541
|
id: "engine.setting.event.AdvanceConfig.setLoop"
|
|
2344
2542
|
},
|
|
2345
2543
|
ctx: () => ({
|
|
2346
|
-
pageState:
|
|
2347
|
-
condition:
|
|
2544
|
+
pageState: h,
|
|
2545
|
+
condition: e,
|
|
2348
2546
|
isBind: n,
|
|
2349
|
-
getIndexName:
|
|
2350
|
-
state:
|
|
2351
|
-
setLoopKey:
|
|
2352
|
-
openEditor:
|
|
2353
|
-
setConfig:
|
|
2354
|
-
setLoopIndex:
|
|
2355
|
-
setLoop:
|
|
2356
|
-
setLoopItem:
|
|
2357
|
-
CodeConfigurator:
|
|
2358
|
-
InputConfigurator:
|
|
2359
|
-
SwitchConfigurator:
|
|
2360
|
-
VariableConfigurator:
|
|
2361
|
-
useProperties:
|
|
2362
|
-
useCanvas:
|
|
2363
|
-
PROP_DATA_TYPE:
|
|
2364
|
-
constants:
|
|
2365
|
-
utils:
|
|
2366
|
-
DEFAULT_LOOP_NAME:
|
|
2367
|
-
string2Obj:
|
|
2547
|
+
getIndexName: t,
|
|
2548
|
+
state: o,
|
|
2549
|
+
setLoopKey: i,
|
|
2550
|
+
openEditor: a,
|
|
2551
|
+
setConfig: c,
|
|
2552
|
+
setLoopIndex: s,
|
|
2553
|
+
setLoop: r,
|
|
2554
|
+
setLoopItem: b,
|
|
2555
|
+
CodeConfigurator: Ee,
|
|
2556
|
+
InputConfigurator: Ce,
|
|
2557
|
+
SwitchConfigurator: xe,
|
|
2558
|
+
VariableConfigurator: ye,
|
|
2559
|
+
useProperties: ne,
|
|
2560
|
+
useCanvas: N,
|
|
2561
|
+
PROP_DATA_TYPE: fe,
|
|
2562
|
+
constants: De,
|
|
2563
|
+
utils: Se,
|
|
2564
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2565
|
+
string2Obj: we
|
|
2368
2566
|
})
|
|
2369
|
-
}),
|
|
2370
|
-
const
|
|
2371
|
-
let
|
|
2567
|
+
}), b = k((l) => {
|
|
2568
|
+
const v = ne().getSchema();
|
|
2569
|
+
let g = v.loopArgs;
|
|
2372
2570
|
const {
|
|
2373
|
-
operateNode:
|
|
2374
|
-
} =
|
|
2375
|
-
|
|
2571
|
+
operateNode: m
|
|
2572
|
+
} = N();
|
|
2573
|
+
g ? g[0] = l || oe.ITEM : g = [l, oe.INDEX], m({
|
|
2376
2574
|
type: "updateAttributes",
|
|
2377
|
-
id:
|
|
2575
|
+
id: v.id,
|
|
2378
2576
|
value: {
|
|
2379
|
-
loopArgs:
|
|
2577
|
+
loopArgs: g
|
|
2380
2578
|
}
|
|
2381
2579
|
});
|
|
2382
2580
|
}, {
|
|
@@ -2384,139 +2582,139 @@ const cn = /* @__PURE__ */ Bt(We, [["render", dn], ["__scopeId", "data-v-64f96b6
|
|
|
2384
2582
|
id: "engine.setting.event.AdvanceConfig.setLoopItem"
|
|
2385
2583
|
},
|
|
2386
2584
|
ctx: () => ({
|
|
2387
|
-
pageState:
|
|
2388
|
-
condition:
|
|
2585
|
+
pageState: h,
|
|
2586
|
+
condition: e,
|
|
2389
2587
|
isBind: n,
|
|
2390
|
-
getIndexName:
|
|
2391
|
-
state:
|
|
2392
|
-
setLoopKey:
|
|
2393
|
-
openEditor:
|
|
2394
|
-
setConfig:
|
|
2395
|
-
setLoopIndex:
|
|
2396
|
-
setLoop:
|
|
2397
|
-
setLoopItem:
|
|
2398
|
-
CodeConfigurator:
|
|
2399
|
-
InputConfigurator:
|
|
2400
|
-
SwitchConfigurator:
|
|
2401
|
-
VariableConfigurator:
|
|
2402
|
-
useProperties:
|
|
2403
|
-
useCanvas:
|
|
2404
|
-
PROP_DATA_TYPE:
|
|
2405
|
-
constants:
|
|
2406
|
-
utils:
|
|
2407
|
-
DEFAULT_LOOP_NAME:
|
|
2408
|
-
string2Obj:
|
|
2588
|
+
getIndexName: t,
|
|
2589
|
+
state: o,
|
|
2590
|
+
setLoopKey: i,
|
|
2591
|
+
openEditor: a,
|
|
2592
|
+
setConfig: c,
|
|
2593
|
+
setLoopIndex: s,
|
|
2594
|
+
setLoop: r,
|
|
2595
|
+
setLoopItem: b,
|
|
2596
|
+
CodeConfigurator: Ee,
|
|
2597
|
+
InputConfigurator: Ce,
|
|
2598
|
+
SwitchConfigurator: xe,
|
|
2599
|
+
VariableConfigurator: ye,
|
|
2600
|
+
useProperties: ne,
|
|
2601
|
+
useCanvas: N,
|
|
2602
|
+
PROP_DATA_TYPE: fe,
|
|
2603
|
+
constants: De,
|
|
2604
|
+
utils: Se,
|
|
2605
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2606
|
+
string2Obj: we
|
|
2409
2607
|
})
|
|
2410
2608
|
});
|
|
2411
2609
|
return {
|
|
2412
|
-
condition:
|
|
2413
|
-
setConfig:
|
|
2610
|
+
condition: e,
|
|
2611
|
+
setConfig: c,
|
|
2414
2612
|
isBind: n,
|
|
2415
|
-
state:
|
|
2416
|
-
setLoop:
|
|
2417
|
-
setLoopItem:
|
|
2418
|
-
DEFAULT_LOOP_NAME:
|
|
2419
|
-
openEditor:
|
|
2420
|
-
setLoopIndex:
|
|
2421
|
-
setLoopKey:
|
|
2422
|
-
getIndexName:
|
|
2613
|
+
state: o,
|
|
2614
|
+
setLoop: r,
|
|
2615
|
+
setLoopItem: b,
|
|
2616
|
+
DEFAULT_LOOP_NAME: oe,
|
|
2617
|
+
openEditor: a,
|
|
2618
|
+
setLoopIndex: s,
|
|
2619
|
+
setLoopKey: i,
|
|
2620
|
+
getIndexName: t
|
|
2423
2621
|
};
|
|
2424
2622
|
}
|
|
2425
|
-
},
|
|
2426
|
-
function
|
|
2427
|
-
var l,
|
|
2428
|
-
const
|
|
2429
|
-
return
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2623
|
+
}, fn = { class: "advanced-config-container" }, gn = { class: "advnce-config" }, mn = { class: "advanced-config-form-item" }, pn = ["title"], vn = { class: "advnce-config loop-data-item" }, bn = { class: "advanced-config-form-item" }, _n = ["title"], En = { class: "advnce-config" }, Cn = { class: "advanced-config-form-item" }, yn = { class: "advnce-config" }, xn = { class: "advanced-config-form-item" }, wn = { class: "advnce-config" }, kn = { class: "advanced-config-form-item" };
|
|
2624
|
+
function Dn(h, e, n, t, o, i) {
|
|
2625
|
+
var l, v;
|
|
2626
|
+
const a = H("switch-configurator"), c = H("variable-configurator"), s = H("code-configurator"), r = H("input-configurator"), b = H("tiny-tooltip");
|
|
2627
|
+
return j(), se("div", fn, [
|
|
2628
|
+
_("div", gn, [
|
|
2629
|
+
e[6] || (e[6] = _("label", { class: "text-ellipsis-multiple" }, "是否渲染", -1)),
|
|
2630
|
+
_("div", mn, [
|
|
2631
|
+
t.isBind ? (j(), se("div", {
|
|
2434
2632
|
key: 1,
|
|
2435
2633
|
class: "binding-state text-ellipsis-multiple",
|
|
2436
|
-
title:
|
|
2437
|
-
}, " 已绑定:" +
|
|
2634
|
+
title: t.condition.value
|
|
2635
|
+
}, " 已绑定:" + ge(t.condition.value), 9, pn)) : (j(), ve(a, {
|
|
2438
2636
|
key: 0,
|
|
2439
|
-
modelValue:
|
|
2440
|
-
"onUpdate:modelValue":
|
|
2637
|
+
modelValue: t.condition,
|
|
2638
|
+
"onUpdate:modelValue": t.setConfig
|
|
2441
2639
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])),
|
|
2442
|
-
|
|
2443
|
-
modelValue:
|
|
2640
|
+
S(c, {
|
|
2641
|
+
modelValue: t.condition,
|
|
2444
2642
|
"onUpdate:modelValue": [
|
|
2445
|
-
|
|
2446
|
-
|
|
2643
|
+
e[0] || (e[0] = (g) => t.condition = g),
|
|
2644
|
+
t.setConfig
|
|
2447
2645
|
],
|
|
2448
2646
|
name: "advance"
|
|
2449
2647
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
2450
2648
|
])
|
|
2451
2649
|
]),
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2650
|
+
_("div", vn, [
|
|
2651
|
+
e[7] || (e[7] = _("label", { class: "text-ellipsis-multiple" }, "循环数据", -1)),
|
|
2652
|
+
_("div", bn, [
|
|
2653
|
+
t.state.isLoop ? (j(), se("div", {
|
|
2456
2654
|
key: 1,
|
|
2457
2655
|
class: "binding-state text-ellipsis-multiple",
|
|
2458
|
-
title: (l =
|
|
2459
|
-
}, " 已绑定:" +
|
|
2656
|
+
title: (l = t.state.loopData) == null ? void 0 : l.value
|
|
2657
|
+
}, " 已绑定:" + ge((v = t.state.loopData) == null ? void 0 : v.value), 9, _n)) : (j(), ve(s, {
|
|
2460
2658
|
key: 0,
|
|
2461
|
-
modelValue:
|
|
2659
|
+
modelValue: t.state.loopData,
|
|
2462
2660
|
"onUpdate:modelValue": [
|
|
2463
|
-
|
|
2464
|
-
|
|
2661
|
+
e[1] || (e[1] = (g) => t.state.loopData = g),
|
|
2662
|
+
t.setLoop
|
|
2465
2663
|
],
|
|
2466
2664
|
"data-type": "JSExpression",
|
|
2467
|
-
onOpen:
|
|
2665
|
+
onOpen: t.openEditor
|
|
2468
2666
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onOpen"])),
|
|
2469
|
-
|
|
2470
|
-
modelValue:
|
|
2667
|
+
S(c, {
|
|
2668
|
+
modelValue: t.state.loopData,
|
|
2471
2669
|
"onUpdate:modelValue": [
|
|
2472
|
-
|
|
2473
|
-
|
|
2670
|
+
e[2] || (e[2] = (g) => t.state.loopData = g),
|
|
2671
|
+
t.setLoop
|
|
2474
2672
|
],
|
|
2475
2673
|
name: "advance"
|
|
2476
2674
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
2477
2675
|
])
|
|
2478
2676
|
]),
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
modelValue:
|
|
2677
|
+
_("div", En, [
|
|
2678
|
+
e[8] || (e[8] = _("label", { class: "text-ellipsis-multiple" }, "迭代变量名", -1)),
|
|
2679
|
+
_("div", Cn, [
|
|
2680
|
+
S(r, {
|
|
2681
|
+
modelValue: t.state.loopItem,
|
|
2484
2682
|
"onUpdate:modelValue": [
|
|
2485
|
-
|
|
2486
|
-
|
|
2683
|
+
e[3] || (e[3] = (g) => t.state.loopItem = g),
|
|
2684
|
+
t.setLoopItem
|
|
2487
2685
|
],
|
|
2488
|
-
placeholder: `默认值为:${
|
|
2686
|
+
placeholder: `默认值为:${t.DEFAULT_LOOP_NAME.ITEM}`
|
|
2489
2687
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
2490
2688
|
])
|
|
2491
2689
|
]),
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
modelValue:
|
|
2690
|
+
_("div", yn, [
|
|
2691
|
+
e[9] || (e[9] = _("label", { class: "text-ellipsis-multiple" }, "索引变量名", -1)),
|
|
2692
|
+
_("div", xn, [
|
|
2693
|
+
S(r, {
|
|
2694
|
+
modelValue: t.state.loopIndex,
|
|
2497
2695
|
"onUpdate:modelValue": [
|
|
2498
|
-
|
|
2499
|
-
|
|
2696
|
+
e[4] || (e[4] = (g) => t.state.loopIndex = g),
|
|
2697
|
+
t.setLoopIndex
|
|
2500
2698
|
],
|
|
2501
|
-
placeholder: `默认值为:${
|
|
2699
|
+
placeholder: `默认值为:${t.DEFAULT_LOOP_NAME.INDEX}`
|
|
2502
2700
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
2503
2701
|
])
|
|
2504
2702
|
]),
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2703
|
+
_("div", wn, [
|
|
2704
|
+
e[10] || (e[10] = _("label", { class: "text-ellipsis-multiple" }, "key", -1)),
|
|
2705
|
+
_("div", kn, [
|
|
2706
|
+
S(b, {
|
|
2509
2707
|
content: "建议填写循环项中的唯一值(如item.id),如果填写为数字将不保存",
|
|
2510
2708
|
effect: "light"
|
|
2511
2709
|
}, {
|
|
2512
|
-
default:
|
|
2513
|
-
|
|
2514
|
-
modelValue:
|
|
2710
|
+
default: X(() => [
|
|
2711
|
+
S(r, {
|
|
2712
|
+
modelValue: t.state.loopKey,
|
|
2515
2713
|
"onUpdate:modelValue": [
|
|
2516
|
-
|
|
2517
|
-
|
|
2714
|
+
e[5] || (e[5] = (g) => t.state.loopKey = g),
|
|
2715
|
+
t.setLoopKey
|
|
2518
2716
|
],
|
|
2519
|
-
placeholder: `默认为索引名:${
|
|
2717
|
+
placeholder: `默认为索引名:${t.getIndexName()}`
|
|
2520
2718
|
}, null, 8, ["modelValue", "placeholder", "onUpdate:modelValue"])
|
|
2521
2719
|
]),
|
|
2522
2720
|
_: 1
|
|
@@ -2525,46 +2723,46 @@ function kn(c, t, n, e, i, o) {
|
|
|
2525
2723
|
])
|
|
2526
2724
|
]);
|
|
2527
2725
|
}
|
|
2528
|
-
const
|
|
2726
|
+
const Sn = /* @__PURE__ */ Ge(un, [["render", Dn], ["__scopeId", "data-v-275ffc6c"]]), An = {
|
|
2529
2727
|
__name: "Main",
|
|
2530
2728
|
props: {
|
|
2531
2729
|
fixedPanels: Array
|
|
2532
2730
|
},
|
|
2533
2731
|
emits: [],
|
|
2534
|
-
setup(
|
|
2535
|
-
const n =
|
|
2536
|
-
PLUGIN_NAME:
|
|
2537
|
-
} =
|
|
2538
|
-
emitEvent:
|
|
2732
|
+
setup(h, { emit: e }) {
|
|
2733
|
+
const n = Xe(["bindEvent", "advancedConfig"]), {
|
|
2734
|
+
PLUGIN_NAME: t
|
|
2735
|
+
} = J(), i = Ze({
|
|
2736
|
+
emitEvent: e
|
|
2539
2737
|
});
|
|
2540
|
-
return
|
|
2738
|
+
return vt("panelState", i), (a, c) => (j(), ve(W(Bt), {
|
|
2541
2739
|
title: "高级",
|
|
2542
|
-
"fixed-panels":
|
|
2543
|
-
"fixed-name":
|
|
2740
|
+
"fixed-panels": h.fixedPanels,
|
|
2741
|
+
"fixed-name": W(t).Event,
|
|
2544
2742
|
"header-margin-bottom": 0,
|
|
2545
|
-
onClose:
|
|
2743
|
+
onClose: c[1] || (c[1] = (s) => a.$emit("close"))
|
|
2546
2744
|
}, {
|
|
2547
|
-
content:
|
|
2548
|
-
|
|
2745
|
+
content: X(() => [
|
|
2746
|
+
S(W(Nt), {
|
|
2549
2747
|
modelValue: n.value,
|
|
2550
|
-
"onUpdate:modelValue":
|
|
2748
|
+
"onUpdate:modelValue": c[0] || (c[0] = (s) => n.value = s)
|
|
2551
2749
|
}, {
|
|
2552
|
-
default:
|
|
2553
|
-
|
|
2750
|
+
default: X(() => [
|
|
2751
|
+
S(W(gt), {
|
|
2554
2752
|
title: "事件绑定",
|
|
2555
2753
|
name: "bindEvent"
|
|
2556
2754
|
}, {
|
|
2557
|
-
default:
|
|
2558
|
-
|
|
2755
|
+
default: X(() => [
|
|
2756
|
+
S(hn)
|
|
2559
2757
|
]),
|
|
2560
2758
|
_: 1
|
|
2561
2759
|
}),
|
|
2562
|
-
|
|
2760
|
+
S(W(gt), {
|
|
2563
2761
|
title: "高级配置",
|
|
2564
2762
|
name: "advancedConfig"
|
|
2565
2763
|
}, {
|
|
2566
|
-
default:
|
|
2567
|
-
|
|
2764
|
+
default: X(() => [
|
|
2765
|
+
S(Sn)
|
|
2568
2766
|
]),
|
|
2569
2767
|
_: 1
|
|
2570
2768
|
})
|
|
@@ -2575,222 +2773,222 @@ const Dn = /* @__PURE__ */ Bt(hn, [["render", kn], ["__scopeId", "data-v-275ffc6
|
|
|
2575
2773
|
_: 1
|
|
2576
2774
|
}, 8, ["fixed-panels", "fixed-name"]));
|
|
2577
2775
|
}
|
|
2578
|
-
},
|
|
2776
|
+
}, pe = "newMethod", it = /[^0-9a-zA-Z_$]/, Fe = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/, ke = {
|
|
2579
2777
|
default: "选择已有方法或者添加新方法(点击 确定 之后将在JS面板中创建一个该名称的新方法)",
|
|
2580
2778
|
exist: "方法名称已存在",
|
|
2581
2779
|
ruleInvalid: "请输入有效的方法名,可以由字母、数字、下划线、$ 符号组成,不能以数字开头",
|
|
2582
2780
|
empty: "方法名称不能为空"
|
|
2583
|
-
},
|
|
2781
|
+
}, Nn = {
|
|
2584
2782
|
components: {
|
|
2585
|
-
MonacoEditor:
|
|
2586
|
-
TinyInput:
|
|
2587
|
-
TinyCheckbox:
|
|
2783
|
+
MonacoEditor: $e,
|
|
2784
|
+
TinyInput: rt,
|
|
2785
|
+
TinyCheckbox: It
|
|
2588
2786
|
},
|
|
2589
2787
|
props: {
|
|
2590
2788
|
dialogVisible: Boolean
|
|
2591
2789
|
},
|
|
2592
2790
|
setup() {
|
|
2593
2791
|
const {
|
|
2594
|
-
getMethodNameList:
|
|
2595
|
-
} =
|
|
2792
|
+
getMethodNameList: h
|
|
2793
|
+
} = M(V.Page), e = _t("context"), n = {
|
|
2596
2794
|
language: "json",
|
|
2597
2795
|
lineNumbers: !1,
|
|
2598
2796
|
minimap: {
|
|
2599
2797
|
enabled: !1
|
|
2600
2798
|
}
|
|
2601
|
-
},
|
|
2602
|
-
|
|
2799
|
+
}, t = k((s) => {
|
|
2800
|
+
e.editorContent = s;
|
|
2603
2801
|
}, {
|
|
2604
2802
|
metaData: {
|
|
2605
2803
|
id: "engine.setting.event.BindEventsDialogContent.editorContentChange"
|
|
2606
2804
|
},
|
|
2607
2805
|
ctx: () => ({
|
|
2608
|
-
getMethodNameList:
|
|
2609
|
-
context:
|
|
2806
|
+
getMethodNameList: h,
|
|
2807
|
+
context: e,
|
|
2610
2808
|
editorOptions: n,
|
|
2611
|
-
editorContentChange:
|
|
2612
|
-
validMethodNameEmpty:
|
|
2613
|
-
validMethodNameExist:
|
|
2614
|
-
invalidMethodName:
|
|
2615
|
-
change:
|
|
2616
|
-
VueMonaco:
|
|
2617
|
-
getMetaApi:
|
|
2618
|
-
META_APP:
|
|
2619
|
-
METHOD_TIPS_MAP:
|
|
2620
|
-
NEW_METHOD_TYPE:
|
|
2621
|
-
VALID_VARNAME_RE:
|
|
2809
|
+
editorContentChange: t,
|
|
2810
|
+
validMethodNameEmpty: o,
|
|
2811
|
+
validMethodNameExist: i,
|
|
2812
|
+
invalidMethodName: a,
|
|
2813
|
+
change: c,
|
|
2814
|
+
VueMonaco: $e,
|
|
2815
|
+
getMetaApi: M,
|
|
2816
|
+
META_APP: V,
|
|
2817
|
+
METHOD_TIPS_MAP: ke,
|
|
2818
|
+
NEW_METHOD_TYPE: pe,
|
|
2819
|
+
VALID_VARNAME_RE: Fe
|
|
2622
2820
|
})
|
|
2623
|
-
}),
|
|
2821
|
+
}), o = k((s) => !s, {
|
|
2624
2822
|
metaData: {
|
|
2625
2823
|
id: "engine.setting.event.BindEventsDialogContent.validMethodNameEmpty"
|
|
2626
2824
|
},
|
|
2627
2825
|
ctx: () => ({
|
|
2628
|
-
getMethodNameList:
|
|
2629
|
-
context:
|
|
2826
|
+
getMethodNameList: h,
|
|
2827
|
+
context: e,
|
|
2630
2828
|
editorOptions: n,
|
|
2631
|
-
editorContentChange:
|
|
2632
|
-
validMethodNameEmpty:
|
|
2633
|
-
validMethodNameExist:
|
|
2634
|
-
invalidMethodName:
|
|
2635
|
-
change:
|
|
2636
|
-
VueMonaco:
|
|
2637
|
-
getMetaApi:
|
|
2638
|
-
META_APP:
|
|
2639
|
-
METHOD_TIPS_MAP:
|
|
2640
|
-
NEW_METHOD_TYPE:
|
|
2641
|
-
VALID_VARNAME_RE:
|
|
2829
|
+
editorContentChange: t,
|
|
2830
|
+
validMethodNameEmpty: o,
|
|
2831
|
+
validMethodNameExist: i,
|
|
2832
|
+
invalidMethodName: a,
|
|
2833
|
+
change: c,
|
|
2834
|
+
VueMonaco: $e,
|
|
2835
|
+
getMetaApi: M,
|
|
2836
|
+
META_APP: V,
|
|
2837
|
+
METHOD_TIPS_MAP: ke,
|
|
2838
|
+
NEW_METHOD_TYPE: pe,
|
|
2839
|
+
VALID_VARNAME_RE: Fe
|
|
2642
2840
|
})
|
|
2643
|
-
}),
|
|
2841
|
+
}), i = k((s) => h == null ? void 0 : h().includes(s), {
|
|
2644
2842
|
metaData: {
|
|
2645
2843
|
id: "engine.setting.event.BindEventsDialogContent.validMethodNameExist"
|
|
2646
2844
|
},
|
|
2647
2845
|
ctx: () => ({
|
|
2648
|
-
getMethodNameList:
|
|
2649
|
-
context:
|
|
2846
|
+
getMethodNameList: h,
|
|
2847
|
+
context: e,
|
|
2650
2848
|
editorOptions: n,
|
|
2651
|
-
editorContentChange:
|
|
2652
|
-
validMethodNameEmpty:
|
|
2653
|
-
validMethodNameExist:
|
|
2654
|
-
invalidMethodName:
|
|
2655
|
-
change:
|
|
2656
|
-
VueMonaco:
|
|
2657
|
-
getMetaApi:
|
|
2658
|
-
META_APP:
|
|
2659
|
-
METHOD_TIPS_MAP:
|
|
2660
|
-
NEW_METHOD_TYPE:
|
|
2661
|
-
VALID_VARNAME_RE:
|
|
2849
|
+
editorContentChange: t,
|
|
2850
|
+
validMethodNameEmpty: o,
|
|
2851
|
+
validMethodNameExist: i,
|
|
2852
|
+
invalidMethodName: a,
|
|
2853
|
+
change: c,
|
|
2854
|
+
VueMonaco: $e,
|
|
2855
|
+
getMetaApi: M,
|
|
2856
|
+
META_APP: V,
|
|
2857
|
+
METHOD_TIPS_MAP: ke,
|
|
2858
|
+
NEW_METHOD_TYPE: pe,
|
|
2859
|
+
VALID_VARNAME_RE: Fe
|
|
2662
2860
|
})
|
|
2663
|
-
}),
|
|
2861
|
+
}), a = k((s) => !Fe.test(s), {
|
|
2664
2862
|
metaData: {
|
|
2665
2863
|
id: "engine.setting.event.BindEventsDialogContent.invalidMethodName"
|
|
2666
2864
|
},
|
|
2667
2865
|
ctx: () => ({
|
|
2668
|
-
getMethodNameList:
|
|
2669
|
-
context:
|
|
2866
|
+
getMethodNameList: h,
|
|
2867
|
+
context: e,
|
|
2670
2868
|
editorOptions: n,
|
|
2671
|
-
editorContentChange:
|
|
2672
|
-
validMethodNameEmpty:
|
|
2673
|
-
validMethodNameExist:
|
|
2674
|
-
invalidMethodName:
|
|
2675
|
-
change:
|
|
2676
|
-
VueMonaco:
|
|
2677
|
-
getMetaApi:
|
|
2678
|
-
META_APP:
|
|
2679
|
-
METHOD_TIPS_MAP:
|
|
2680
|
-
NEW_METHOD_TYPE:
|
|
2681
|
-
VALID_VARNAME_RE:
|
|
2869
|
+
editorContentChange: t,
|
|
2870
|
+
validMethodNameEmpty: o,
|
|
2871
|
+
validMethodNameExist: i,
|
|
2872
|
+
invalidMethodName: a,
|
|
2873
|
+
change: c,
|
|
2874
|
+
VueMonaco: $e,
|
|
2875
|
+
getMetaApi: M,
|
|
2876
|
+
META_APP: V,
|
|
2877
|
+
METHOD_TIPS_MAP: ke,
|
|
2878
|
+
NEW_METHOD_TYPE: pe,
|
|
2879
|
+
VALID_VARNAME_RE: Fe
|
|
2682
2880
|
})
|
|
2683
|
-
}),
|
|
2684
|
-
const
|
|
2685
|
-
validator: i,
|
|
2686
|
-
tip: ct.empty
|
|
2687
|
-
}, {
|
|
2881
|
+
}), c = k((s) => {
|
|
2882
|
+
const r = [{
|
|
2688
2883
|
validator: o,
|
|
2689
|
-
tip:
|
|
2884
|
+
tip: ke.empty
|
|
2885
|
+
}, {
|
|
2886
|
+
validator: i,
|
|
2887
|
+
tip: ke.exist
|
|
2690
2888
|
}, {
|
|
2691
|
-
validator:
|
|
2692
|
-
tip:
|
|
2889
|
+
validator: a,
|
|
2890
|
+
tip: ke.ruleInvalid
|
|
2693
2891
|
}];
|
|
2694
|
-
for (let
|
|
2695
|
-
const l =
|
|
2696
|
-
if (l.validator(
|
|
2697
|
-
|
|
2892
|
+
for (let b = 0; b < r.length; b++) {
|
|
2893
|
+
const l = r[b];
|
|
2894
|
+
if (l.validator(s)) {
|
|
2895
|
+
e.tipError = !0, e.tip = l.tip;
|
|
2698
2896
|
return;
|
|
2699
2897
|
}
|
|
2700
2898
|
}
|
|
2701
|
-
|
|
2899
|
+
e.tipError = !1, e.tip = "";
|
|
2702
2900
|
}, {
|
|
2703
2901
|
metaData: {
|
|
2704
2902
|
id: "engine.setting.event.BindEventsDialogContent.change"
|
|
2705
2903
|
},
|
|
2706
2904
|
ctx: () => ({
|
|
2707
|
-
getMethodNameList:
|
|
2708
|
-
context:
|
|
2905
|
+
getMethodNameList: h,
|
|
2906
|
+
context: e,
|
|
2709
2907
|
editorOptions: n,
|
|
2710
|
-
editorContentChange:
|
|
2711
|
-
validMethodNameEmpty:
|
|
2712
|
-
validMethodNameExist:
|
|
2713
|
-
invalidMethodName:
|
|
2714
|
-
change:
|
|
2715
|
-
VueMonaco:
|
|
2716
|
-
getMetaApi:
|
|
2717
|
-
META_APP:
|
|
2718
|
-
METHOD_TIPS_MAP:
|
|
2719
|
-
NEW_METHOD_TYPE:
|
|
2720
|
-
VALID_VARNAME_RE:
|
|
2908
|
+
editorContentChange: t,
|
|
2909
|
+
validMethodNameEmpty: o,
|
|
2910
|
+
validMethodNameExist: i,
|
|
2911
|
+
invalidMethodName: a,
|
|
2912
|
+
change: c,
|
|
2913
|
+
VueMonaco: $e,
|
|
2914
|
+
getMetaApi: M,
|
|
2915
|
+
META_APP: V,
|
|
2916
|
+
METHOD_TIPS_MAP: ke,
|
|
2917
|
+
NEW_METHOD_TYPE: pe,
|
|
2918
|
+
VALID_VARNAME_RE: Fe
|
|
2721
2919
|
})
|
|
2722
2920
|
});
|
|
2723
2921
|
return {
|
|
2724
|
-
NEW_METHOD_TYPE:
|
|
2725
|
-
context:
|
|
2922
|
+
NEW_METHOD_TYPE: pe,
|
|
2923
|
+
context: e,
|
|
2726
2924
|
editorOptions: n,
|
|
2727
|
-
change:
|
|
2728
|
-
editorContentChange:
|
|
2925
|
+
change: c,
|
|
2926
|
+
editorContentChange: t
|
|
2729
2927
|
};
|
|
2730
2928
|
}
|
|
2731
|
-
},
|
|
2929
|
+
}, In = { class: "content-right" }, Ln = { class: "new-action-tip" }, Bn = { class: "content-right-title" }, Pn = { class: "set-params-tip" }, Vn = { class: "content-right-monaco" }, Mn = {
|
|
2732
2930
|
key: 1,
|
|
2733
2931
|
class: "mark"
|
|
2734
|
-
},
|
|
2932
|
+
}, On = {
|
|
2735
2933
|
key: 0,
|
|
2736
2934
|
class: "params-tip"
|
|
2737
2935
|
};
|
|
2738
|
-
function
|
|
2739
|
-
const
|
|
2740
|
-
return
|
|
2741
|
-
|
|
2742
|
-
class:
|
|
2936
|
+
function Rn(h, e, n, t, o, i) {
|
|
2937
|
+
const a = H("tiny-input"), c = H("tiny-checkbox"), s = H("monaco-editor");
|
|
2938
|
+
return j(), se("div", In, [
|
|
2939
|
+
_("div", {
|
|
2940
|
+
class: Je(["content-right-top", { "tip-error": t.context.tipError }])
|
|
2743
2941
|
}, [
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
modelValue:
|
|
2942
|
+
e[2] || (e[2] = _("div", { class: "content-right-title" }, "方法名称", -1)),
|
|
2943
|
+
S(a, {
|
|
2944
|
+
modelValue: t.context.bindMethodInfo.name,
|
|
2747
2945
|
"onUpdate:modelValue": [
|
|
2748
|
-
|
|
2749
|
-
|
|
2946
|
+
e[0] || (e[0] = (r) => t.context.bindMethodInfo.name = r),
|
|
2947
|
+
t.change
|
|
2750
2948
|
],
|
|
2751
|
-
disabled:
|
|
2752
|
-
class:
|
|
2949
|
+
disabled: t.context.bindMethodInfo.type !== t.NEW_METHOD_TYPE,
|
|
2950
|
+
class: Je([{ "status-error": t.context.tipError }]),
|
|
2753
2951
|
placeholder: "请从左侧选择一个方法进行绑定,或者选择添加新方法,输入自定义方法名称。"
|
|
2754
2952
|
}, null, 8, ["modelValue", "disabled", "class", "onUpdate:modelValue"]),
|
|
2755
|
-
|
|
2953
|
+
_("div", Ln, ge(t.context.tip), 1)
|
|
2756
2954
|
], 2),
|
|
2757
|
-
|
|
2758
|
-
class:
|
|
2955
|
+
_("div", {
|
|
2956
|
+
class: Je(["content-right-bottom", { "tip-error": !t.context.isValidParams }])
|
|
2759
2957
|
}, [
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
modelValue:
|
|
2763
|
-
"onUpdate:modelValue":
|
|
2958
|
+
_("div", Bn, [
|
|
2959
|
+
S(c, {
|
|
2960
|
+
modelValue: t.context.enableExtraParams,
|
|
2961
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => t.context.enableExtraParams = r),
|
|
2764
2962
|
name: "tiny-checkbox"
|
|
2765
2963
|
}, {
|
|
2766
|
-
default:
|
|
2767
|
-
|
|
2964
|
+
default: X(() => e[3] || (e[3] = [
|
|
2965
|
+
Ue("扩展参数设置")
|
|
2768
2966
|
])),
|
|
2769
2967
|
_: 1,
|
|
2770
2968
|
__: [3]
|
|
2771
2969
|
}, 8, ["modelValue"]),
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2970
|
+
_("div", Pn, [
|
|
2971
|
+
e[4] || (e[4] = _("div", null, "扩展参数:调用当前事件传入的真实参数,数组格式,追加在原有事件参数之后", -1)),
|
|
2972
|
+
Ue(" 如: " + ge(t.context.bindMethodInfo.name) + "(eventArgs, extParam1, extParam2, ...) ", 1)
|
|
2775
2973
|
])
|
|
2776
2974
|
]),
|
|
2777
|
-
|
|
2778
|
-
n.dialogVisible ? (
|
|
2975
|
+
_("div", Vn, [
|
|
2976
|
+
n.dialogVisible ? (j(), ve(s, {
|
|
2779
2977
|
key: 0,
|
|
2780
|
-
value:
|
|
2781
|
-
options:
|
|
2782
|
-
onChange:
|
|
2978
|
+
value: t.context.editorContent,
|
|
2979
|
+
options: t.editorOptions,
|
|
2980
|
+
onChange: t.editorContentChange,
|
|
2783
2981
|
class: "monaco-editor"
|
|
2784
|
-
}, null, 8, ["value", "options", "onChange"])) :
|
|
2785
|
-
|
|
2982
|
+
}, null, 8, ["value", "options", "onChange"])) : et("", !0),
|
|
2983
|
+
t.context.enableExtraParams ? et("", !0) : (j(), se("div", Mn))
|
|
2786
2984
|
]),
|
|
2787
|
-
!
|
|
2985
|
+
!t.context.isValidParams && t.context.enableExtraParams ? (j(), se("div", On, ' 请输入数组格式的参数,参数可以为表达式。例如:["extParam1", "item.status", 1, "getNames()"] ')) : et("", !0)
|
|
2788
2986
|
], 2)
|
|
2789
2987
|
]);
|
|
2790
2988
|
}
|
|
2791
|
-
const Tn = /* @__PURE__ */
|
|
2989
|
+
const Tn = /* @__PURE__ */ Ge(Nn, [["render", Rn], ["__scopeId", "data-v-fc0b367d"]]), Un = {
|
|
2792
2990
|
components: {
|
|
2793
|
-
TinySearch:
|
|
2991
|
+
TinySearch: Lt
|
|
2794
2992
|
},
|
|
2795
2993
|
props: {
|
|
2796
2994
|
eventBinding: {
|
|
@@ -2798,110 +2996,110 @@ const Tn = /* @__PURE__ */ Bt(An, [["render", On], ["__scopeId", "data-v-fc0b367
|
|
|
2798
2996
|
default: () => ({})
|
|
2799
2997
|
}
|
|
2800
2998
|
},
|
|
2801
|
-
setup(
|
|
2999
|
+
setup(h) {
|
|
2802
3000
|
const {
|
|
2803
|
-
getMethodNameList:
|
|
2804
|
-
} =
|
|
2805
|
-
const
|
|
2806
|
-
var
|
|
2807
|
-
return Number.parseInt((
|
|
2808
|
-
}).sort((
|
|
2809
|
-
let l = `${(
|
|
2810
|
-
return
|
|
3001
|
+
getMethodNameList: e
|
|
3002
|
+
} = M(V.Page), n = Xe(""), t = Xe([]), o = _t("context"), i = k((c, s) => {
|
|
3003
|
+
const r = c.map((v) => {
|
|
3004
|
+
var g;
|
|
3005
|
+
return Number.parseInt((g = v.match(/\d+$/)) == null ? void 0 : g[0]) || 0;
|
|
3006
|
+
}).sort((v, g) => v - g).pop();
|
|
3007
|
+
let l = `${(s == null ? void 0 : s.replace(it, "_")) || ""}New`;
|
|
3008
|
+
return r > -1 && (l += `${r + 1}`), l;
|
|
2811
3009
|
}, {
|
|
2812
3010
|
metaData: {
|
|
2813
3011
|
id: "engine.setting.event.BindEventsDialogSidebar.generateMethodName"
|
|
2814
3012
|
},
|
|
2815
3013
|
ctx: () => ({
|
|
2816
|
-
props:
|
|
2817
|
-
getMethodNameList:
|
|
3014
|
+
props: h,
|
|
3015
|
+
getMethodNameList: e,
|
|
2818
3016
|
searchValue: n,
|
|
2819
|
-
filteredMethodList:
|
|
2820
|
-
context:
|
|
2821
|
-
generateMethodName:
|
|
2822
|
-
selectMethod:
|
|
2823
|
-
getMetaApi:
|
|
2824
|
-
META_APP:
|
|
2825
|
-
INVALID_VARNAME_CHAR_RE:
|
|
2826
|
-
NEW_METHOD_TYPE:
|
|
3017
|
+
filteredMethodList: t,
|
|
3018
|
+
context: o,
|
|
3019
|
+
generateMethodName: i,
|
|
3020
|
+
selectMethod: a,
|
|
3021
|
+
getMetaApi: M,
|
|
3022
|
+
META_APP: V,
|
|
3023
|
+
INVALID_VARNAME_CHAR_RE: it,
|
|
3024
|
+
NEW_METHOD_TYPE: pe
|
|
2827
3025
|
})
|
|
2828
|
-
}),
|
|
2829
|
-
|
|
3026
|
+
}), a = k((c) => {
|
|
3027
|
+
o.bindMethodInfo = c;
|
|
2830
3028
|
}, {
|
|
2831
3029
|
metaData: {
|
|
2832
3030
|
id: "engine.setting.event.BindEventsDialogSidebar.selectMethod"
|
|
2833
3031
|
},
|
|
2834
3032
|
ctx: () => ({
|
|
2835
|
-
props:
|
|
2836
|
-
getMethodNameList:
|
|
3033
|
+
props: h,
|
|
3034
|
+
getMethodNameList: e,
|
|
2837
3035
|
searchValue: n,
|
|
2838
|
-
filteredMethodList:
|
|
2839
|
-
context:
|
|
2840
|
-
generateMethodName:
|
|
2841
|
-
selectMethod:
|
|
2842
|
-
getMetaApi:
|
|
2843
|
-
META_APP:
|
|
2844
|
-
INVALID_VARNAME_CHAR_RE:
|
|
2845
|
-
NEW_METHOD_TYPE:
|
|
3036
|
+
filteredMethodList: t,
|
|
3037
|
+
context: o,
|
|
3038
|
+
generateMethodName: i,
|
|
3039
|
+
selectMethod: a,
|
|
3040
|
+
getMetaApi: M,
|
|
3041
|
+
META_APP: V,
|
|
3042
|
+
INVALID_VARNAME_CHAR_RE: it,
|
|
3043
|
+
NEW_METHOD_TYPE: pe
|
|
2846
3044
|
})
|
|
2847
3045
|
});
|
|
2848
|
-
return
|
|
2849
|
-
var
|
|
2850
|
-
const
|
|
3046
|
+
return bt(() => {
|
|
3047
|
+
var v, g;
|
|
3048
|
+
const c = (v = h.eventBinding) == null ? void 0 : v.eventName, s = (e == null ? void 0 : e().filter((m) => m.includes(c))) || [], b = {
|
|
2851
3049
|
title: "添加新方法",
|
|
2852
|
-
name:
|
|
2853
|
-
type:
|
|
3050
|
+
name: i(s, c),
|
|
3051
|
+
type: pe
|
|
2854
3052
|
};
|
|
2855
|
-
(
|
|
2856
|
-
name:
|
|
2857
|
-
}) :
|
|
2858
|
-
const l = (
|
|
2859
|
-
name:
|
|
3053
|
+
(g = h.eventBinding) != null && g.ref ? a({
|
|
3054
|
+
name: h.eventBinding.ref
|
|
3055
|
+
}) : a(b);
|
|
3056
|
+
const l = (e == null ? void 0 : e().filter((m) => m.includes(n.value)).map((m) => ({
|
|
3057
|
+
name: m
|
|
2860
3058
|
}))) || [];
|
|
2861
|
-
|
|
3059
|
+
t.value = [b, ...l];
|
|
2862
3060
|
}), {
|
|
2863
|
-
context:
|
|
3061
|
+
context: o,
|
|
2864
3062
|
searchValue: n,
|
|
2865
|
-
filteredMethodList:
|
|
2866
|
-
selectMethod:
|
|
3063
|
+
filteredMethodList: t,
|
|
3064
|
+
selectMethod: a
|
|
2867
3065
|
};
|
|
2868
3066
|
}
|
|
2869
|
-
},
|
|
2870
|
-
function
|
|
2871
|
-
const
|
|
2872
|
-
return
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
modelValue:
|
|
2878
|
-
"onUpdate:modelValue":
|
|
3067
|
+
}, jn = { class: "dialog-content-left" }, $n = { class: "left-list-wrap" }, zn = { class: "left-action-list" }, Fn = { class: "action-list-wrap" }, Jn = ["onClick"];
|
|
3068
|
+
function Xn(h, e, n, t, o, i) {
|
|
3069
|
+
const a = H("tiny-search");
|
|
3070
|
+
return j(), se("div", jn, [
|
|
3071
|
+
e[1] || (e[1] = _("div", { class: "left-title" }, "响应方法", -1)),
|
|
3072
|
+
_("div", $n, [
|
|
3073
|
+
_("div", zn, [
|
|
3074
|
+
S(a, {
|
|
3075
|
+
modelValue: t.searchValue,
|
|
3076
|
+
"onUpdate:modelValue": e[0] || (e[0] = (c) => t.searchValue = c),
|
|
2879
3077
|
placeholder: "搜索"
|
|
2880
3078
|
}, null, 8, ["modelValue"]),
|
|
2881
|
-
|
|
2882
|
-
(
|
|
2883
|
-
key:
|
|
2884
|
-
onClick: (
|
|
3079
|
+
_("ul", Fn, [
|
|
3080
|
+
(j(!0), se(Qe, null, st(t.filteredMethodList, (c) => (j(), se("li", {
|
|
3081
|
+
key: c.name,
|
|
3082
|
+
onClick: (s) => t.selectMethod(c)
|
|
2885
3083
|
}, [
|
|
2886
|
-
|
|
2887
|
-
class:
|
|
2888
|
-
},
|
|
2889
|
-
], 8,
|
|
3084
|
+
_("div", {
|
|
3085
|
+
class: Je(["action-name", { active: c.name === t.context.bindMethodInfo.name }])
|
|
3086
|
+
}, ge(c.title || c.name), 3)
|
|
3087
|
+
], 8, Jn))), 128))
|
|
2890
3088
|
])
|
|
2891
3089
|
])
|
|
2892
3090
|
])
|
|
2893
3091
|
]);
|
|
2894
3092
|
}
|
|
2895
|
-
const
|
|
2896
|
-
...
|
|
2897
|
-
entry:
|
|
2898
|
-
options: { commonEvents:
|
|
3093
|
+
const Gn = /* @__PURE__ */ Ge(Un, [["render", Xn], ["__scopeId", "data-v-9bcc2645"]]), io = {
|
|
3094
|
+
...Z,
|
|
3095
|
+
entry: An,
|
|
3096
|
+
options: { commonEvents: Ct },
|
|
2899
3097
|
components: {
|
|
2900
|
-
BindEventsDialogSidebar:
|
|
3098
|
+
BindEventsDialogSidebar: Gn,
|
|
2901
3099
|
BindEventsDialogContent: Tn
|
|
2902
3100
|
}
|
|
2903
3101
|
};
|
|
2904
3102
|
export {
|
|
2905
|
-
|
|
3103
|
+
io as default
|
|
2906
3104
|
};
|
|
2907
3105
|
//# sourceMappingURL=index.js.map
|