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