x-prop-tree 0.6.29 → 0.6.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,1023 +1,316 @@
|
|
|
1
|
-
import { provide as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { useViewStack as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
e
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
var l = Qn.call(e);
|
|
17
|
-
return r && (t ? e[Pe] = n : delete e[Pe]), l;
|
|
18
|
-
}
|
|
19
|
-
var tr = Object.prototype, nr = tr.toString;
|
|
20
|
-
function rr(e) {
|
|
21
|
-
return nr.call(e);
|
|
22
|
-
}
|
|
23
|
-
var or = "[object Null]", lr = "[object Undefined]", bt = ue ? ue.toStringTag : void 0;
|
|
24
|
-
function De(e) {
|
|
25
|
-
return e == null ? e === void 0 ? lr : or : bt && bt in Object(e) ? er(e) : rr(e);
|
|
26
|
-
}
|
|
27
|
-
function pe(e) {
|
|
28
|
-
return e != null && typeof e == "object";
|
|
29
|
-
}
|
|
30
|
-
var Ue = Array.isArray;
|
|
31
|
-
function Ie(e) {
|
|
32
|
-
var t = typeof e;
|
|
33
|
-
return e != null && (t == "object" || t == "function");
|
|
34
|
-
}
|
|
35
|
-
var ir = "[object AsyncFunction]", sr = "[object Function]", ar = "[object GeneratorFunction]", ur = "[object Proxy]";
|
|
36
|
-
function Qt(e) {
|
|
37
|
-
if (!Ie(e))
|
|
38
|
-
return !1;
|
|
39
|
-
var t = De(e);
|
|
40
|
-
return t == sr || t == ar || t == ir || t == ur;
|
|
41
|
-
}
|
|
42
|
-
var tt = ee["__core-js_shared__"], $t = function() {
|
|
43
|
-
var e = /[^.]+$/.exec(tt && tt.keys && tt.keys.IE_PROTO || "");
|
|
44
|
-
return e ? "Symbol(src)_1." + e : "";
|
|
45
|
-
}();
|
|
46
|
-
function cr(e) {
|
|
47
|
-
return !!$t && $t in e;
|
|
48
|
-
}
|
|
49
|
-
var fr = Function.prototype, dr = fr.toString;
|
|
50
|
-
function ge(e) {
|
|
51
|
-
if (e != null) {
|
|
52
|
-
try {
|
|
53
|
-
return dr.call(e);
|
|
54
|
-
} catch {
|
|
55
|
-
}
|
|
56
|
-
try {
|
|
57
|
-
return e + "";
|
|
58
|
-
} catch {
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return "";
|
|
62
|
-
}
|
|
63
|
-
var pr = /[\\^$.*+?()[\]{}|]/g, vr = /^\[object .+?Constructor\]$/, mr = Function.prototype, gr = Object.prototype, yr = mr.toString, hr = gr.hasOwnProperty, _r = RegExp(
|
|
64
|
-
"^" + yr.call(hr).replace(pr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
65
|
-
);
|
|
66
|
-
function br(e) {
|
|
67
|
-
if (!Ie(e) || cr(e))
|
|
68
|
-
return !1;
|
|
69
|
-
var t = Qt(e) ? _r : vr;
|
|
70
|
-
return t.test(ge(e));
|
|
71
|
-
}
|
|
72
|
-
function $r(e, t) {
|
|
73
|
-
return e == null ? void 0 : e[t];
|
|
74
|
-
}
|
|
75
|
-
function ye(e, t) {
|
|
76
|
-
var n = $r(e, t);
|
|
77
|
-
return br(n) ? n : void 0;
|
|
78
|
-
}
|
|
79
|
-
var lt = ye(ee, "WeakMap"), Tt = Object.create, Tr = /* @__PURE__ */ function() {
|
|
80
|
-
function e() {
|
|
81
|
-
}
|
|
82
|
-
return function(t) {
|
|
83
|
-
if (!Ie(t))
|
|
84
|
-
return {};
|
|
85
|
-
if (Tt)
|
|
86
|
-
return Tt(t);
|
|
87
|
-
e.prototype = t;
|
|
88
|
-
var n = new e();
|
|
89
|
-
return e.prototype = void 0, n;
|
|
90
|
-
};
|
|
91
|
-
}(), St = function() {
|
|
92
|
-
try {
|
|
93
|
-
var e = ye(Object, "defineProperty");
|
|
94
|
-
return e({}, "", {}), e;
|
|
95
|
-
} catch {
|
|
96
|
-
}
|
|
97
|
-
}();
|
|
98
|
-
function Sr(e, t) {
|
|
99
|
-
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
100
|
-
;
|
|
101
|
-
return e;
|
|
102
|
-
}
|
|
103
|
-
var wr = 9007199254740991, Ar = /^(?:0|[1-9]\d*)$/;
|
|
104
|
-
function Cr(e, t) {
|
|
105
|
-
var n = typeof e;
|
|
106
|
-
return t = t ?? wr, !!t && (n == "number" || n != "symbol" && Ar.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
107
|
-
}
|
|
108
|
-
function Pr(e, t, n) {
|
|
109
|
-
t == "__proto__" && St ? St(e, t, {
|
|
110
|
-
configurable: !0,
|
|
111
|
-
enumerable: !0,
|
|
112
|
-
value: n,
|
|
113
|
-
writable: !0
|
|
114
|
-
}) : e[t] = n;
|
|
115
|
-
}
|
|
116
|
-
function pt(e, t) {
|
|
117
|
-
return e === t || e !== e && t !== t;
|
|
118
|
-
}
|
|
119
|
-
var xr = Object.prototype, Or = xr.hasOwnProperty;
|
|
120
|
-
function Vr(e, t, n) {
|
|
121
|
-
var r = e[t];
|
|
122
|
-
(!(Or.call(e, t) && pt(r, n)) || n === void 0 && !(t in e)) && Pr(e, t, n);
|
|
123
|
-
}
|
|
124
|
-
var Ur = 9007199254740991;
|
|
125
|
-
function en(e) {
|
|
126
|
-
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ur;
|
|
127
|
-
}
|
|
128
|
-
function Mr(e) {
|
|
129
|
-
return e != null && en(e.length) && !Qt(e);
|
|
130
|
-
}
|
|
131
|
-
var Lr = Object.prototype;
|
|
132
|
-
function tn(e) {
|
|
133
|
-
var t = e && e.constructor, n = typeof t == "function" && t.prototype || Lr;
|
|
134
|
-
return e === n;
|
|
135
|
-
}
|
|
136
|
-
function Dr(e, t) {
|
|
137
|
-
for (var n = -1, r = Array(e); ++n < e; )
|
|
138
|
-
r[n] = t(n);
|
|
139
|
-
return r;
|
|
140
|
-
}
|
|
141
|
-
var jr = "[object Arguments]";
|
|
142
|
-
function wt(e) {
|
|
143
|
-
return pe(e) && De(e) == jr;
|
|
144
|
-
}
|
|
145
|
-
var nn = Object.prototype, kr = nn.hasOwnProperty, Er = nn.propertyIsEnumerable, Nr = wt(/* @__PURE__ */ function() {
|
|
146
|
-
return arguments;
|
|
147
|
-
}()) ? wt : function(e) {
|
|
148
|
-
return pe(e) && kr.call(e, "callee") && !Er.call(e, "callee");
|
|
149
|
-
};
|
|
150
|
-
function Rr() {
|
|
151
|
-
return !1;
|
|
152
|
-
}
|
|
153
|
-
var rn = typeof exports == "object" && exports && !exports.nodeType && exports, At = rn && typeof module == "object" && module && !module.nodeType && module, Br = At && At.exports === rn, Ct = Br ? ee.Buffer : void 0, Fr = Ct ? Ct.isBuffer : void 0, Ge = Fr || Rr, Hr = "[object Arguments]", Gr = "[object Array]", Kr = "[object Boolean]", qr = "[object Date]", zr = "[object Error]", Jr = "[object Function]", Ir = "[object Map]", Xr = "[object Number]", Zr = "[object Object]", Wr = "[object RegExp]", Yr = "[object Set]", Qr = "[object String]", eo = "[object WeakMap]", to = "[object ArrayBuffer]", no = "[object DataView]", ro = "[object Float32Array]", oo = "[object Float64Array]", lo = "[object Int8Array]", io = "[object Int16Array]", so = "[object Int32Array]", ao = "[object Uint8Array]", uo = "[object Uint8ClampedArray]", co = "[object Uint16Array]", fo = "[object Uint32Array]", L = {};
|
|
154
|
-
L[ro] = L[oo] = L[lo] = L[io] = L[so] = L[ao] = L[uo] = L[co] = L[fo] = !0;
|
|
155
|
-
L[Hr] = L[Gr] = L[to] = L[Kr] = L[no] = L[qr] = L[zr] = L[Jr] = L[Ir] = L[Xr] = L[Zr] = L[Wr] = L[Yr] = L[Qr] = L[eo] = !1;
|
|
156
|
-
function po(e) {
|
|
157
|
-
return pe(e) && en(e.length) && !!L[De(e)];
|
|
158
|
-
}
|
|
159
|
-
function vt(e) {
|
|
160
|
-
return function(t) {
|
|
161
|
-
return e(t);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
var on = typeof exports == "object" && exports && !exports.nodeType && exports, Oe = on && typeof module == "object" && module && !module.nodeType && module, vo = Oe && Oe.exports === on, nt = vo && Wt.process, Se = function() {
|
|
165
|
-
try {
|
|
166
|
-
var e = Oe && Oe.require && Oe.require("util").types;
|
|
167
|
-
return e || nt && nt.binding && nt.binding("util");
|
|
168
|
-
} catch {
|
|
169
|
-
}
|
|
170
|
-
}(), Pt = Se && Se.isTypedArray, ln = Pt ? vt(Pt) : po, mo = Object.prototype, go = mo.hasOwnProperty;
|
|
171
|
-
function yo(e, t) {
|
|
172
|
-
var n = Ue(e), r = !n && Nr(e), l = !n && !r && Ge(e), o = !n && !r && !l && ln(e), i = n || r || l || o, a = i ? Dr(e.length, String) : [], u = a.length;
|
|
173
|
-
for (var s in e)
|
|
174
|
-
go.call(e, s) && !(i && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
175
|
-
(s == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
176
|
-
l && (s == "offset" || s == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
177
|
-
o && (s == "buffer" || s == "byteLength" || s == "byteOffset") || // Skip index properties.
|
|
178
|
-
Cr(s, u))) && a.push(s);
|
|
179
|
-
return a;
|
|
180
|
-
}
|
|
181
|
-
function sn(e, t) {
|
|
182
|
-
return function(n) {
|
|
183
|
-
return e(t(n));
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
var ho = sn(Object.keys, Object), _o = Object.prototype, bo = _o.hasOwnProperty;
|
|
187
|
-
function $o(e) {
|
|
188
|
-
if (!tn(e))
|
|
189
|
-
return ho(e);
|
|
190
|
-
var t = [];
|
|
191
|
-
for (var n in Object(e))
|
|
192
|
-
bo.call(e, n) && n != "constructor" && t.push(n);
|
|
193
|
-
return t;
|
|
194
|
-
}
|
|
195
|
-
function To(e) {
|
|
196
|
-
return Mr(e) ? yo(e) : $o(e);
|
|
197
|
-
}
|
|
198
|
-
var Me = ye(Object, "create");
|
|
199
|
-
function So() {
|
|
200
|
-
this.__data__ = Me ? Me(null) : {}, this.size = 0;
|
|
201
|
-
}
|
|
202
|
-
function wo(e) {
|
|
203
|
-
var t = this.has(e) && delete this.__data__[e];
|
|
204
|
-
return this.size -= t ? 1 : 0, t;
|
|
205
|
-
}
|
|
206
|
-
var Ao = "__lodash_hash_undefined__", Co = Object.prototype, Po = Co.hasOwnProperty;
|
|
207
|
-
function xo(e) {
|
|
208
|
-
var t = this.__data__;
|
|
209
|
-
if (Me) {
|
|
210
|
-
var n = t[e];
|
|
211
|
-
return n === Ao ? void 0 : n;
|
|
212
|
-
}
|
|
213
|
-
return Po.call(t, e) ? t[e] : void 0;
|
|
214
|
-
}
|
|
215
|
-
var Oo = Object.prototype, Vo = Oo.hasOwnProperty;
|
|
216
|
-
function Uo(e) {
|
|
217
|
-
var t = this.__data__;
|
|
218
|
-
return Me ? t[e] !== void 0 : Vo.call(t, e);
|
|
219
|
-
}
|
|
220
|
-
var Mo = "__lodash_hash_undefined__";
|
|
221
|
-
function Lo(e, t) {
|
|
222
|
-
var n = this.__data__;
|
|
223
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = Me && t === void 0 ? Mo : t, this;
|
|
224
|
-
}
|
|
225
|
-
function ve(e) {
|
|
226
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
227
|
-
for (this.clear(); ++t < n; ) {
|
|
228
|
-
var r = e[t];
|
|
229
|
-
this.set(r[0], r[1]);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
ve.prototype.clear = So;
|
|
233
|
-
ve.prototype.delete = wo;
|
|
234
|
-
ve.prototype.get = xo;
|
|
235
|
-
ve.prototype.has = Uo;
|
|
236
|
-
ve.prototype.set = Lo;
|
|
237
|
-
function Do() {
|
|
238
|
-
this.__data__ = [], this.size = 0;
|
|
239
|
-
}
|
|
240
|
-
function Xe(e, t) {
|
|
241
|
-
for (var n = e.length; n--; )
|
|
242
|
-
if (pt(e[n][0], t))
|
|
243
|
-
return n;
|
|
244
|
-
return -1;
|
|
245
|
-
}
|
|
246
|
-
var jo = Array.prototype, ko = jo.splice;
|
|
247
|
-
function Eo(e) {
|
|
248
|
-
var t = this.__data__, n = Xe(t, e);
|
|
249
|
-
if (n < 0)
|
|
250
|
-
return !1;
|
|
251
|
-
var r = t.length - 1;
|
|
252
|
-
return n == r ? t.pop() : ko.call(t, n, 1), --this.size, !0;
|
|
253
|
-
}
|
|
254
|
-
function No(e) {
|
|
255
|
-
var t = this.__data__, n = Xe(t, e);
|
|
256
|
-
return n < 0 ? void 0 : t[n][1];
|
|
257
|
-
}
|
|
258
|
-
function Ro(e) {
|
|
259
|
-
return Xe(this.__data__, e) > -1;
|
|
260
|
-
}
|
|
261
|
-
function Bo(e, t) {
|
|
262
|
-
var n = this.__data__, r = Xe(n, e);
|
|
263
|
-
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
264
|
-
}
|
|
265
|
-
function se(e) {
|
|
266
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
267
|
-
for (this.clear(); ++t < n; ) {
|
|
268
|
-
var r = e[t];
|
|
269
|
-
this.set(r[0], r[1]);
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
se.prototype.clear = Do;
|
|
273
|
-
se.prototype.delete = Eo;
|
|
274
|
-
se.prototype.get = No;
|
|
275
|
-
se.prototype.has = Ro;
|
|
276
|
-
se.prototype.set = Bo;
|
|
277
|
-
var Le = ye(ee, "Map");
|
|
278
|
-
function Fo() {
|
|
279
|
-
this.size = 0, this.__data__ = {
|
|
280
|
-
hash: new ve(),
|
|
281
|
-
map: new (Le || se)(),
|
|
282
|
-
string: new ve()
|
|
283
|
-
};
|
|
284
|
-
}
|
|
285
|
-
function Ho(e) {
|
|
286
|
-
var t = typeof e;
|
|
287
|
-
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
288
|
-
}
|
|
289
|
-
function Ze(e, t) {
|
|
290
|
-
var n = e.__data__;
|
|
291
|
-
return Ho(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
292
|
-
}
|
|
293
|
-
function Go(e) {
|
|
294
|
-
var t = Ze(this, e).delete(e);
|
|
295
|
-
return this.size -= t ? 1 : 0, t;
|
|
296
|
-
}
|
|
297
|
-
function Ko(e) {
|
|
298
|
-
return Ze(this, e).get(e);
|
|
299
|
-
}
|
|
300
|
-
function qo(e) {
|
|
301
|
-
return Ze(this, e).has(e);
|
|
302
|
-
}
|
|
303
|
-
function zo(e, t) {
|
|
304
|
-
var n = Ze(this, e), r = n.size;
|
|
305
|
-
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
306
|
-
}
|
|
307
|
-
function he(e) {
|
|
308
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
309
|
-
for (this.clear(); ++t < n; ) {
|
|
310
|
-
var r = e[t];
|
|
311
|
-
this.set(r[0], r[1]);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
he.prototype.clear = Fo;
|
|
315
|
-
he.prototype.delete = Go;
|
|
316
|
-
he.prototype.get = Ko;
|
|
317
|
-
he.prototype.has = qo;
|
|
318
|
-
he.prototype.set = zo;
|
|
319
|
-
function Jo(e, t) {
|
|
320
|
-
for (var n = -1, r = t.length, l = e.length; ++n < r; )
|
|
321
|
-
e[l + n] = t[n];
|
|
322
|
-
return e;
|
|
323
|
-
}
|
|
324
|
-
var Io = sn(Object.getPrototypeOf, Object);
|
|
325
|
-
function Xo() {
|
|
326
|
-
this.__data__ = new se(), this.size = 0;
|
|
327
|
-
}
|
|
328
|
-
function Zo(e) {
|
|
329
|
-
var t = this.__data__, n = t.delete(e);
|
|
330
|
-
return this.size = t.size, n;
|
|
331
|
-
}
|
|
332
|
-
function Wo(e) {
|
|
333
|
-
return this.__data__.get(e);
|
|
334
|
-
}
|
|
335
|
-
function Yo(e) {
|
|
336
|
-
return this.__data__.has(e);
|
|
337
|
-
}
|
|
338
|
-
var Qo = 200;
|
|
339
|
-
function el(e, t) {
|
|
340
|
-
var n = this.__data__;
|
|
341
|
-
if (n instanceof se) {
|
|
342
|
-
var r = n.__data__;
|
|
343
|
-
if (!Le || r.length < Qo - 1)
|
|
344
|
-
return r.push([e, t]), this.size = ++n.size, this;
|
|
345
|
-
n = this.__data__ = new he(r);
|
|
346
|
-
}
|
|
347
|
-
return n.set(e, t), this.size = n.size, this;
|
|
348
|
-
}
|
|
349
|
-
function oe(e) {
|
|
350
|
-
var t = this.__data__ = new se(e);
|
|
351
|
-
this.size = t.size;
|
|
352
|
-
}
|
|
353
|
-
oe.prototype.clear = Xo;
|
|
354
|
-
oe.prototype.delete = Zo;
|
|
355
|
-
oe.prototype.get = Wo;
|
|
356
|
-
oe.prototype.has = Yo;
|
|
357
|
-
oe.prototype.set = el;
|
|
358
|
-
var an = typeof exports == "object" && exports && !exports.nodeType && exports, xt = an && typeof module == "object" && module && !module.nodeType && module, tl = xt && xt.exports === an, Ot = tl ? ee.Buffer : void 0;
|
|
359
|
-
Ot && Ot.allocUnsafe;
|
|
360
|
-
function nl(e, t) {
|
|
361
|
-
return e.slice();
|
|
362
|
-
}
|
|
363
|
-
function rl(e, t) {
|
|
364
|
-
for (var n = -1, r = e == null ? 0 : e.length, l = 0, o = []; ++n < r; ) {
|
|
365
|
-
var i = e[n];
|
|
366
|
-
t(i, n, e) && (o[l++] = i);
|
|
367
|
-
}
|
|
368
|
-
return o;
|
|
369
|
-
}
|
|
370
|
-
function ol() {
|
|
371
|
-
return [];
|
|
372
|
-
}
|
|
373
|
-
var ll = Object.prototype, il = ll.propertyIsEnumerable, Vt = Object.getOwnPropertySymbols, sl = Vt ? function(e) {
|
|
374
|
-
return e == null ? [] : (e = Object(e), rl(Vt(e), function(t) {
|
|
375
|
-
return il.call(e, t);
|
|
376
|
-
}));
|
|
377
|
-
} : ol;
|
|
378
|
-
function al(e, t, n) {
|
|
379
|
-
var r = t(e);
|
|
380
|
-
return Ue(e) ? r : Jo(r, n(e));
|
|
381
|
-
}
|
|
382
|
-
function it(e) {
|
|
383
|
-
return al(e, To, sl);
|
|
384
|
-
}
|
|
385
|
-
var st = ye(ee, "DataView"), at = ye(ee, "Promise"), ut = ye(ee, "Set"), Ut = "[object Map]", ul = "[object Object]", Mt = "[object Promise]", Lt = "[object Set]", Dt = "[object WeakMap]", jt = "[object DataView]", cl = ge(st), fl = ge(Le), dl = ge(at), pl = ge(ut), vl = ge(lt), W = De;
|
|
386
|
-
(st && W(new st(new ArrayBuffer(1))) != jt || Le && W(new Le()) != Ut || at && W(at.resolve()) != Mt || ut && W(new ut()) != Lt || lt && W(new lt()) != Dt) && (W = function(e) {
|
|
387
|
-
var t = De(e), n = t == ul ? e.constructor : void 0, r = n ? ge(n) : "";
|
|
388
|
-
if (r)
|
|
389
|
-
switch (r) {
|
|
390
|
-
case cl:
|
|
391
|
-
return jt;
|
|
392
|
-
case fl:
|
|
393
|
-
return Ut;
|
|
394
|
-
case dl:
|
|
395
|
-
return Mt;
|
|
396
|
-
case pl:
|
|
397
|
-
return Lt;
|
|
398
|
-
case vl:
|
|
399
|
-
return Dt;
|
|
400
|
-
}
|
|
401
|
-
return t;
|
|
402
|
-
});
|
|
403
|
-
var ml = Object.prototype, gl = ml.hasOwnProperty;
|
|
404
|
-
function yl(e) {
|
|
405
|
-
var t = e.length, n = new e.constructor(t);
|
|
406
|
-
return t && typeof e[0] == "string" && gl.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
407
|
-
}
|
|
408
|
-
var Ke = ee.Uint8Array;
|
|
409
|
-
function mt(e) {
|
|
410
|
-
var t = new e.constructor(e.byteLength);
|
|
411
|
-
return new Ke(t).set(new Ke(e)), t;
|
|
412
|
-
}
|
|
413
|
-
function hl(e, t) {
|
|
414
|
-
var n = mt(e.buffer);
|
|
415
|
-
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
416
|
-
}
|
|
417
|
-
var _l = /\w*$/;
|
|
418
|
-
function bl(e) {
|
|
419
|
-
var t = new e.constructor(e.source, _l.exec(e));
|
|
420
|
-
return t.lastIndex = e.lastIndex, t;
|
|
421
|
-
}
|
|
422
|
-
var kt = ue ? ue.prototype : void 0, Et = kt ? kt.valueOf : void 0;
|
|
423
|
-
function $l(e) {
|
|
424
|
-
return Et ? Object(Et.call(e)) : {};
|
|
425
|
-
}
|
|
426
|
-
function Tl(e, t) {
|
|
427
|
-
var n = mt(e.buffer);
|
|
428
|
-
return new e.constructor(n, e.byteOffset, e.length);
|
|
429
|
-
}
|
|
430
|
-
var Sl = "[object Boolean]", wl = "[object Date]", Al = "[object Map]", Cl = "[object Number]", Pl = "[object RegExp]", xl = "[object Set]", Ol = "[object String]", Vl = "[object Symbol]", Ul = "[object ArrayBuffer]", Ml = "[object DataView]", Ll = "[object Float32Array]", Dl = "[object Float64Array]", jl = "[object Int8Array]", kl = "[object Int16Array]", El = "[object Int32Array]", Nl = "[object Uint8Array]", Rl = "[object Uint8ClampedArray]", Bl = "[object Uint16Array]", Fl = "[object Uint32Array]";
|
|
431
|
-
function Hl(e, t, n) {
|
|
432
|
-
var r = e.constructor;
|
|
433
|
-
switch (t) {
|
|
434
|
-
case Ul:
|
|
435
|
-
return mt(e);
|
|
436
|
-
case Sl:
|
|
437
|
-
case wl:
|
|
438
|
-
return new r(+e);
|
|
439
|
-
case Ml:
|
|
440
|
-
return hl(e);
|
|
441
|
-
case Ll:
|
|
442
|
-
case Dl:
|
|
443
|
-
case jl:
|
|
444
|
-
case kl:
|
|
445
|
-
case El:
|
|
446
|
-
case Nl:
|
|
447
|
-
case Rl:
|
|
448
|
-
case Bl:
|
|
449
|
-
case Fl:
|
|
450
|
-
return Tl(e);
|
|
451
|
-
case Al:
|
|
452
|
-
return new r();
|
|
453
|
-
case Cl:
|
|
454
|
-
case Ol:
|
|
455
|
-
return new r(e);
|
|
456
|
-
case Pl:
|
|
457
|
-
return bl(e);
|
|
458
|
-
case xl:
|
|
459
|
-
return new r();
|
|
460
|
-
case Vl:
|
|
461
|
-
return $l(e);
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
function Gl(e) {
|
|
465
|
-
return typeof e.constructor == "function" && !tn(e) ? Tr(Io(e)) : {};
|
|
466
|
-
}
|
|
467
|
-
var Kl = "[object Map]";
|
|
468
|
-
function ql(e) {
|
|
469
|
-
return pe(e) && W(e) == Kl;
|
|
470
|
-
}
|
|
471
|
-
var Nt = Se && Se.isMap, zl = Nt ? vt(Nt) : ql, Jl = "[object Set]";
|
|
472
|
-
function Il(e) {
|
|
473
|
-
return pe(e) && W(e) == Jl;
|
|
474
|
-
}
|
|
475
|
-
var Rt = Se && Se.isSet, Xl = Rt ? vt(Rt) : Il, un = "[object Arguments]", Zl = "[object Array]", Wl = "[object Boolean]", Yl = "[object Date]", Ql = "[object Error]", cn = "[object Function]", ei = "[object GeneratorFunction]", ti = "[object Map]", ni = "[object Number]", fn = "[object Object]", ri = "[object RegExp]", oi = "[object Set]", li = "[object String]", ii = "[object Symbol]", si = "[object WeakMap]", ai = "[object ArrayBuffer]", ui = "[object DataView]", ci = "[object Float32Array]", fi = "[object Float64Array]", di = "[object Int8Array]", pi = "[object Int16Array]", vi = "[object Int32Array]", mi = "[object Uint8Array]", gi = "[object Uint8ClampedArray]", yi = "[object Uint16Array]", hi = "[object Uint32Array]", M = {};
|
|
476
|
-
M[un] = M[Zl] = M[ai] = M[ui] = M[Wl] = M[Yl] = M[ci] = M[fi] = M[di] = M[pi] = M[vi] = M[ti] = M[ni] = M[fn] = M[ri] = M[oi] = M[li] = M[ii] = M[mi] = M[gi] = M[yi] = M[hi] = !0;
|
|
477
|
-
M[Ql] = M[cn] = M[si] = !1;
|
|
478
|
-
function Fe(e, t, n, r, l, o) {
|
|
479
|
-
var i;
|
|
480
|
-
if (i !== void 0)
|
|
481
|
-
return i;
|
|
482
|
-
if (!Ie(e))
|
|
483
|
-
return e;
|
|
484
|
-
var a = Ue(e);
|
|
485
|
-
if (a)
|
|
486
|
-
i = yl(e);
|
|
487
|
-
else {
|
|
488
|
-
var u = W(e), s = u == cn || u == ei;
|
|
489
|
-
if (Ge(e))
|
|
490
|
-
return nl(e);
|
|
491
|
-
if (u == fn || u == un || s && !l)
|
|
492
|
-
i = s ? {} : Gl(e);
|
|
493
|
-
else {
|
|
494
|
-
if (!M[u])
|
|
495
|
-
return l ? e : {};
|
|
496
|
-
i = Hl(e, u);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
o || (o = new oe());
|
|
500
|
-
var v = o.get(e);
|
|
501
|
-
if (v)
|
|
502
|
-
return v;
|
|
503
|
-
o.set(e, i), Xl(e) ? e.forEach(function(d) {
|
|
504
|
-
i.add(Fe(d, t, n, d, e, o));
|
|
505
|
-
}) : zl(e) && e.forEach(function(d, m) {
|
|
506
|
-
i.set(m, Fe(d, t, n, m, e, o));
|
|
507
|
-
});
|
|
508
|
-
var c = it, f = a ? void 0 : c(e);
|
|
509
|
-
return Sr(f || e, function(d, m) {
|
|
510
|
-
f && (m = d, d = e[m]), Vr(i, m, Fe(d, t, n, m, e, o));
|
|
511
|
-
}), i;
|
|
512
|
-
}
|
|
513
|
-
var _i = 1, bi = 4;
|
|
514
|
-
function dn(e) {
|
|
515
|
-
return Fe(e, _i | bi);
|
|
516
|
-
}
|
|
517
|
-
var $i = "__lodash_hash_undefined__";
|
|
518
|
-
function Ti(e) {
|
|
519
|
-
return this.__data__.set(e, $i), this;
|
|
520
|
-
}
|
|
521
|
-
function Si(e) {
|
|
522
|
-
return this.__data__.has(e);
|
|
523
|
-
}
|
|
524
|
-
function qe(e) {
|
|
525
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
526
|
-
for (this.__data__ = new he(); ++t < n; )
|
|
527
|
-
this.add(e[t]);
|
|
528
|
-
}
|
|
529
|
-
qe.prototype.add = qe.prototype.push = Ti;
|
|
530
|
-
qe.prototype.has = Si;
|
|
531
|
-
function wi(e, t) {
|
|
532
|
-
for (var n = -1, r = e == null ? 0 : e.length; ++n < r; )
|
|
533
|
-
if (t(e[n], n, e))
|
|
534
|
-
return !0;
|
|
535
|
-
return !1;
|
|
536
|
-
}
|
|
537
|
-
function Ai(e, t) {
|
|
538
|
-
return e.has(t);
|
|
539
|
-
}
|
|
540
|
-
var Ci = 1, Pi = 2;
|
|
541
|
-
function pn(e, t, n, r, l, o) {
|
|
542
|
-
var i = n & Ci, a = e.length, u = t.length;
|
|
543
|
-
if (a != u && !(i && u > a))
|
|
544
|
-
return !1;
|
|
545
|
-
var s = o.get(e), v = o.get(t);
|
|
546
|
-
if (s && v)
|
|
547
|
-
return s == t && v == e;
|
|
548
|
-
var c = -1, f = !0, d = n & Pi ? new qe() : void 0;
|
|
549
|
-
for (o.set(e, t), o.set(t, e); ++c < a; ) {
|
|
550
|
-
var m = e[c], C = t[c];
|
|
551
|
-
if (r)
|
|
552
|
-
var S = i ? r(C, m, c, t, e, o) : r(m, C, c, e, t, o);
|
|
553
|
-
if (S !== void 0) {
|
|
554
|
-
if (S)
|
|
555
|
-
continue;
|
|
556
|
-
f = !1;
|
|
557
|
-
break;
|
|
558
|
-
}
|
|
559
|
-
if (d) {
|
|
560
|
-
if (!wi(t, function(x, $) {
|
|
561
|
-
if (!Ai(d, $) && (m === x || l(m, x, n, r, o)))
|
|
562
|
-
return d.push($);
|
|
563
|
-
})) {
|
|
564
|
-
f = !1;
|
|
565
|
-
break;
|
|
566
|
-
}
|
|
567
|
-
} else if (!(m === C || l(m, C, n, r, o))) {
|
|
568
|
-
f = !1;
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
return o.delete(e), o.delete(t), f;
|
|
573
|
-
}
|
|
574
|
-
function xi(e) {
|
|
575
|
-
var t = -1, n = Array(e.size);
|
|
576
|
-
return e.forEach(function(r, l) {
|
|
577
|
-
n[++t] = [l, r];
|
|
578
|
-
}), n;
|
|
579
|
-
}
|
|
580
|
-
function Oi(e) {
|
|
581
|
-
var t = -1, n = Array(e.size);
|
|
582
|
-
return e.forEach(function(r) {
|
|
583
|
-
n[++t] = r;
|
|
584
|
-
}), n;
|
|
585
|
-
}
|
|
586
|
-
var Vi = 1, Ui = 2, Mi = "[object Boolean]", Li = "[object Date]", Di = "[object Error]", ji = "[object Map]", ki = "[object Number]", Ei = "[object RegExp]", Ni = "[object Set]", Ri = "[object String]", Bi = "[object Symbol]", Fi = "[object ArrayBuffer]", Hi = "[object DataView]", Bt = ue ? ue.prototype : void 0, rt = Bt ? Bt.valueOf : void 0;
|
|
587
|
-
function Gi(e, t, n, r, l, o, i) {
|
|
588
|
-
switch (n) {
|
|
589
|
-
case Hi:
|
|
590
|
-
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
591
|
-
return !1;
|
|
592
|
-
e = e.buffer, t = t.buffer;
|
|
593
|
-
case Fi:
|
|
594
|
-
return !(e.byteLength != t.byteLength || !o(new Ke(e), new Ke(t)));
|
|
595
|
-
case Mi:
|
|
596
|
-
case Li:
|
|
597
|
-
case ki:
|
|
598
|
-
return pt(+e, +t);
|
|
599
|
-
case Di:
|
|
600
|
-
return e.name == t.name && e.message == t.message;
|
|
601
|
-
case Ei:
|
|
602
|
-
case Ri:
|
|
603
|
-
return e == t + "";
|
|
604
|
-
case ji:
|
|
605
|
-
var a = xi;
|
|
606
|
-
case Ni:
|
|
607
|
-
var u = r & Vi;
|
|
608
|
-
if (a || (a = Oi), e.size != t.size && !u)
|
|
609
|
-
return !1;
|
|
610
|
-
var s = i.get(e);
|
|
611
|
-
if (s)
|
|
612
|
-
return s == t;
|
|
613
|
-
r |= Ui, i.set(e, t);
|
|
614
|
-
var v = pn(a(e), a(t), r, l, o, i);
|
|
615
|
-
return i.delete(e), v;
|
|
616
|
-
case Bi:
|
|
617
|
-
if (rt)
|
|
618
|
-
return rt.call(e) == rt.call(t);
|
|
619
|
-
}
|
|
620
|
-
return !1;
|
|
621
|
-
}
|
|
622
|
-
var Ki = 1, qi = Object.prototype, zi = qi.hasOwnProperty;
|
|
623
|
-
function Ji(e, t, n, r, l, o) {
|
|
624
|
-
var i = n & Ki, a = it(e), u = a.length, s = it(t), v = s.length;
|
|
625
|
-
if (u != v && !i)
|
|
626
|
-
return !1;
|
|
627
|
-
for (var c = u; c--; ) {
|
|
628
|
-
var f = a[c];
|
|
629
|
-
if (!(i ? f in t : zi.call(t, f)))
|
|
630
|
-
return !1;
|
|
631
|
-
}
|
|
632
|
-
var d = o.get(e), m = o.get(t);
|
|
633
|
-
if (d && m)
|
|
634
|
-
return d == t && m == e;
|
|
635
|
-
var C = !0;
|
|
636
|
-
o.set(e, t), o.set(t, e);
|
|
637
|
-
for (var S = i; ++c < u; ) {
|
|
638
|
-
f = a[c];
|
|
639
|
-
var x = e[f], $ = t[f];
|
|
640
|
-
if (r)
|
|
641
|
-
var b = i ? r($, x, f, t, e, o) : r(x, $, f, e, t, o);
|
|
642
|
-
if (!(b === void 0 ? x === $ || l(x, $, n, r, o) : b)) {
|
|
643
|
-
C = !1;
|
|
644
|
-
break;
|
|
645
|
-
}
|
|
646
|
-
S || (S = f == "constructor");
|
|
647
|
-
}
|
|
648
|
-
if (C && !S) {
|
|
649
|
-
var P = e.constructor, D = t.constructor;
|
|
650
|
-
P != D && "constructor" in e && "constructor" in t && !(typeof P == "function" && P instanceof P && typeof D == "function" && D instanceof D) && (C = !1);
|
|
651
|
-
}
|
|
652
|
-
return o.delete(e), o.delete(t), C;
|
|
653
|
-
}
|
|
654
|
-
var Ii = 1, Ft = "[object Arguments]", Ht = "[object Array]", Ne = "[object Object]", Xi = Object.prototype, Gt = Xi.hasOwnProperty;
|
|
655
|
-
function Zi(e, t, n, r, l, o) {
|
|
656
|
-
var i = Ue(e), a = Ue(t), u = i ? Ht : W(e), s = a ? Ht : W(t);
|
|
657
|
-
u = u == Ft ? Ne : u, s = s == Ft ? Ne : s;
|
|
658
|
-
var v = u == Ne, c = s == Ne, f = u == s;
|
|
659
|
-
if (f && Ge(e)) {
|
|
660
|
-
if (!Ge(t))
|
|
661
|
-
return !1;
|
|
662
|
-
i = !0, v = !1;
|
|
663
|
-
}
|
|
664
|
-
if (f && !v)
|
|
665
|
-
return o || (o = new oe()), i || ln(e) ? pn(e, t, n, r, l, o) : Gi(e, t, u, n, r, l, o);
|
|
666
|
-
if (!(n & Ii)) {
|
|
667
|
-
var d = v && Gt.call(e, "__wrapped__"), m = c && Gt.call(t, "__wrapped__");
|
|
668
|
-
if (d || m) {
|
|
669
|
-
var C = d ? e.value() : e, S = m ? t.value() : t;
|
|
670
|
-
return o || (o = new oe()), l(C, S, n, r, o);
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
return f ? (o || (o = new oe()), Ji(e, t, n, r, l, o)) : !1;
|
|
674
|
-
}
|
|
675
|
-
function vn(e, t, n, r, l) {
|
|
676
|
-
return e === t ? !0 : e == null || t == null || !pe(e) && !pe(t) ? e !== e && t !== t : Zi(e, t, n, r, vn, l);
|
|
677
|
-
}
|
|
678
|
-
function We(e, t) {
|
|
679
|
-
return vn(e, t);
|
|
680
|
-
}
|
|
681
|
-
function Wi(e, t) {
|
|
682
|
-
const n = [];
|
|
683
|
-
let r = [];
|
|
684
|
-
e.forEach((i) => {
|
|
685
|
-
i.type === 0 ? n.push(i) : i.type === 1 ? r.push(i) : console.assert(!1);
|
|
686
|
-
}), n.sort((i, a) => i.position - a.position), r.sort((i, a) => i.position - a.position);
|
|
687
|
-
const l = [];
|
|
688
|
-
r.forEach((i) => {
|
|
689
|
-
n.find((a) => a.id === i.group) || l.push(i.id);
|
|
690
|
-
}), r = r.filter((i) => !l.find((a) => a === i.id));
|
|
691
|
-
const o = [];
|
|
692
|
-
return n.forEach((i) => {
|
|
693
|
-
const a = [];
|
|
694
|
-
r.forEach((u) => {
|
|
695
|
-
u.group === i.id && (u.show = !i.collapse, a.push(u));
|
|
696
|
-
}), i.count = a.length, i.count > 0 && (o.push(i), o.push(...a));
|
|
697
|
-
}), o;
|
|
698
|
-
}
|
|
699
|
-
function mn(e, t) {
|
|
700
|
-
return e.value.find((n) => n.id === t);
|
|
701
|
-
}
|
|
702
|
-
function Yi(e, t, n) {
|
|
703
|
-
for (let r = 0; r < e.value.length; r++) {
|
|
704
|
-
let l = e.value[r];
|
|
705
|
-
if (l.id === t) {
|
|
706
|
-
if (l.type !== 0) {
|
|
707
|
-
console.assert(!1, "type must be 0");
|
|
708
|
-
break;
|
|
709
|
-
}
|
|
710
|
-
for (l.collapse = n, r++; r < e.value.length && (l = e.value[r], l.type !== 0); r++)
|
|
711
|
-
l.show = !n;
|
|
712
|
-
break;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
const Re = (e, t) => {
|
|
717
|
-
let n = { key: "", name: "", children: e };
|
|
718
|
-
return t.forEach((r) => {
|
|
719
|
-
if (typeof r != "number") {
|
|
720
|
-
if (!n) {
|
|
721
|
-
console.assert(!1, `unpkgProp invalid prop keys=${t}`);
|
|
1
|
+
import { provide as de, inject as fe, defineComponent as J, ref as O, computed as K, resolveComponent as $, createBlock as B, openBlock as S, unref as C, isRef as pe, withCtx as R, createVNode as A, createElementBlock as H, Fragment as Ve, renderList as Be, createTextVNode as Ce, toDisplayString as Q, resolveDirective as le, withDirectives as ee, withModifiers as z, normalizeStyle as I, createElementVNode as F, createCommentVNode as Y, renderSlot as pt, h as _, mergeModels as W, useModel as G, useId as we, onUnmounted as De, withKeys as Ke, mergeProps as Ae, watchEffect as Ne, watch as ue, useTemplateRef as Re, reactive as yt, onMounted as gt, onBeforeUnmount as _t } from "vue";
|
|
2
|
+
import { useI18n as te } from "vue-i18n";
|
|
3
|
+
import { useViewStack as Se, useColor as ie, eventBus as ae, useSystem as Je, injectDark as ht, injectLocale as kt } from "x-essential-lib";
|
|
4
|
+
import { c as He, i as Ue, m as Xe, a as Fe, b as Vt, d as re, r as ze, v as Ct, e as Ge, f as St } from "./vendor.h3srogcv.js";
|
|
5
|
+
import { getPropDefault as q, pkgs as Ye, parsePixelStr as Ut, parsePercentStr as $t } from "x-runtime-lib";
|
|
6
|
+
import { globalState as xt } from "x-state-lib";
|
|
7
|
+
import { useDisplay as Pt } from "vuetify";
|
|
8
|
+
import { XBlockly as Mt } from "x-block-lib";
|
|
9
|
+
const he = (o, s) => {
|
|
10
|
+
let t = { key: "", name: "", children: o };
|
|
11
|
+
return s.forEach((e) => {
|
|
12
|
+
if (typeof e != "number") {
|
|
13
|
+
if (!t) {
|
|
14
|
+
console.assert(!1, `unpkgProp invalid prop keys=${s}`);
|
|
722
15
|
return;
|
|
723
16
|
}
|
|
724
|
-
if (
|
|
725
|
-
console.assert(!1, `unpkgProp prop ui must be invalid keys=${
|
|
17
|
+
if (t.ui) {
|
|
18
|
+
console.assert(!1, `unpkgProp prop ui must be invalid keys=${s}`);
|
|
726
19
|
return;
|
|
727
20
|
}
|
|
728
|
-
|
|
21
|
+
t = t.children.find((n) => n.key === e);
|
|
729
22
|
}
|
|
730
|
-
}),
|
|
731
|
-
},
|
|
732
|
-
let
|
|
733
|
-
return
|
|
734
|
-
if (!
|
|
735
|
-
console.assert(!1, `unpkgObject object must be valid keys=${
|
|
23
|
+
}), t;
|
|
24
|
+
}, ve = (o, s) => {
|
|
25
|
+
let t = o;
|
|
26
|
+
return s.forEach((e) => {
|
|
27
|
+
if (!t) {
|
|
28
|
+
console.assert(!1, `unpkgObject object must be valid keys=${s}`);
|
|
736
29
|
return;
|
|
737
30
|
}
|
|
738
|
-
|
|
739
|
-
}),
|
|
740
|
-
},
|
|
741
|
-
const
|
|
742
|
-
if (
|
|
31
|
+
t = t[e];
|
|
32
|
+
}), t;
|
|
33
|
+
}, Oe = (o) => !(o instanceof Array), Me = (o) => o instanceof Array, wt = (o, s) => {
|
|
34
|
+
const t = (e, n) => {
|
|
35
|
+
if (e.ui !== n.ui || e.array !== n.array)
|
|
743
36
|
return !1;
|
|
744
|
-
if (
|
|
37
|
+
if (e.ui || n.ui)
|
|
745
38
|
return !0;
|
|
746
|
-
if (
|
|
39
|
+
if (e.children.length !== n.children.length)
|
|
747
40
|
return !1;
|
|
748
|
-
for (let
|
|
749
|
-
if (!
|
|
41
|
+
for (let l = 0; l < e.children.length; l++)
|
|
42
|
+
if (!t(e.children[l], n.children[l]))
|
|
750
43
|
return !1;
|
|
751
44
|
return !0;
|
|
752
45
|
};
|
|
753
|
-
return
|
|
754
|
-
},
|
|
46
|
+
return t(o, s);
|
|
47
|
+
}, be = (o) => !(o instanceof Array), $e = (o) => o instanceof Array, Dt = [
|
|
755
48
|
["basic", "id"],
|
|
756
49
|
["basic", "name"]
|
|
757
|
-
],
|
|
758
|
-
|
|
50
|
+
], At = (o) => Dt.find((s) => Ue(o, s)), xe = (o, s, t, e, n, l, i) => (o = He(o), l !== void 0 ? (o.push(l), i && o.push(s.key)) : o.push(s.key), At(o) ? (e.change = !1, e.change) : s.ui ? s.array && e.children && $e(e.children) ? Lt(
|
|
51
|
+
o,
|
|
52
|
+
s,
|
|
759
53
|
t,
|
|
54
|
+
e,
|
|
760
55
|
n,
|
|
761
|
-
r,
|
|
762
56
|
l,
|
|
763
|
-
o,
|
|
764
57
|
i
|
|
765
|
-
) :
|
|
766
|
-
|
|
58
|
+
) : Nt(s, t, e, l, i) : s.array ? bt(
|
|
59
|
+
o,
|
|
60
|
+
s,
|
|
767
61
|
t,
|
|
62
|
+
e,
|
|
768
63
|
n,
|
|
769
|
-
r,
|
|
770
64
|
l,
|
|
771
|
-
o,
|
|
772
65
|
i
|
|
773
|
-
) :
|
|
774
|
-
|
|
66
|
+
) : Tt(
|
|
67
|
+
o,
|
|
68
|
+
s,
|
|
775
69
|
t,
|
|
70
|
+
e,
|
|
776
71
|
n,
|
|
777
|
-
r,
|
|
778
72
|
l,
|
|
779
|
-
o,
|
|
780
73
|
i
|
|
781
|
-
)),
|
|
782
|
-
if (
|
|
74
|
+
)), bt = (o, s, t, e, n, l, i) => {
|
|
75
|
+
if (s.ui)
|
|
783
76
|
return console.assert(!1, "execPropBranchArray prop ui must be invalid"), !1;
|
|
784
|
-
if (!
|
|
77
|
+
if (!s.array)
|
|
785
78
|
return console.assert(!1, "execPropBranchArray prop array must be valid"), !1;
|
|
786
|
-
if (!
|
|
79
|
+
if (!e.children || !$e(e.children))
|
|
787
80
|
return console.assert(!1, "execPropBranchArray state children must be array"), !1;
|
|
788
81
|
let a;
|
|
789
|
-
|
|
82
|
+
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n == null || n(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n == null || n(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
790
83
|
for (let u = 0; u < a.length; u++) {
|
|
791
|
-
|
|
84
|
+
e.children.push({
|
|
792
85
|
change: !1,
|
|
793
86
|
children: {}
|
|
794
87
|
});
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
if (!
|
|
88
|
+
const r = e.children[u];
|
|
89
|
+
s.children.forEach((g) => {
|
|
90
|
+
if (!r.children || !be(r.children)) {
|
|
798
91
|
console.assert(!1);
|
|
799
92
|
return;
|
|
800
93
|
}
|
|
801
|
-
|
|
94
|
+
r.children[g.key] = {
|
|
802
95
|
change: !1,
|
|
803
|
-
children:
|
|
804
|
-
},
|
|
805
|
-
|
|
806
|
-
|
|
96
|
+
children: g.array ? [] : {}
|
|
97
|
+
}, xe(
|
|
98
|
+
o,
|
|
99
|
+
g,
|
|
807
100
|
a[u],
|
|
808
|
-
|
|
809
|
-
|
|
101
|
+
r.children[g.key],
|
|
102
|
+
n,
|
|
810
103
|
u,
|
|
811
104
|
!0
|
|
812
|
-
) && (
|
|
105
|
+
) && (r.change = !0), r.change && (e.change = !0);
|
|
813
106
|
});
|
|
814
107
|
}
|
|
815
|
-
return
|
|
816
|
-
},
|
|
817
|
-
if (
|
|
108
|
+
return e.change || (e.change = !Ue(a, q(s))), e.change;
|
|
109
|
+
}, Tt = (o, s, t, e, n, l, i) => {
|
|
110
|
+
if (s.ui)
|
|
818
111
|
return console.assert(!1, "execPropBranchScalar prop ui must be invalid"), !1;
|
|
819
|
-
if (
|
|
112
|
+
if (s.array)
|
|
820
113
|
return console.assert(!1, "execPropBranchScalar prop array must be invalid"), !1;
|
|
821
|
-
if (!
|
|
114
|
+
if (!e.children || !be(e.children))
|
|
822
115
|
return console.assert(!1, "execPropBranchScalar state children must be map"), !1;
|
|
823
116
|
let a;
|
|
824
|
-
|
|
825
|
-
for (let u = 0; u <
|
|
826
|
-
const
|
|
827
|
-
|
|
117
|
+
l !== void 0 && !i ? (t[l] || (t[l] = {}), a = t[l]) : (t[s.key] || (t[s.key] = {}), a = t[s.key]), e.change = !1;
|
|
118
|
+
for (let u = 0; u < s.children.length; u++) {
|
|
119
|
+
const r = s.children[u];
|
|
120
|
+
e.children[r.key] = {
|
|
828
121
|
change: !1,
|
|
829
|
-
children:
|
|
830
|
-
},
|
|
122
|
+
children: r.array ? [] : {}
|
|
123
|
+
}, xe(o, r, a, e.children[r.key], n) && (e.change = !0);
|
|
831
124
|
}
|
|
832
|
-
return
|
|
833
|
-
},
|
|
834
|
-
if (!
|
|
125
|
+
return e.change;
|
|
126
|
+
}, Lt = (o, s, t, e, n, l, i) => {
|
|
127
|
+
if (!s.ui)
|
|
835
128
|
return console.assert(!1, "execPropLeafArray prop ui must be valid"), !1;
|
|
836
|
-
if (!
|
|
129
|
+
if (!s.array)
|
|
837
130
|
return console.assert(!1, "execPropLeafArray prop aray must be valid"), !1;
|
|
838
|
-
if (!
|
|
131
|
+
if (!e.children || !$e(e.children))
|
|
839
132
|
return console.assert(!1, "execPropLeafArray state children must be array"), !1;
|
|
840
133
|
let a;
|
|
841
|
-
|
|
134
|
+
l !== void 0 && !i ? (t[l] instanceof Array || (t[l] = q(s), n == null || n(o, t[l])), a = t[l]) : (t[s.key] instanceof Array || (t[s.key] = q(s), n == null || n(o, t[s.key])), a = t[s.key]), e.change = !1;
|
|
842
135
|
for (let u = 0; u < a.length; u++)
|
|
843
|
-
|
|
136
|
+
e.children[u] = {
|
|
844
137
|
change: !1,
|
|
845
138
|
children: {}
|
|
846
|
-
},
|
|
847
|
-
return
|
|
848
|
-
},
|
|
849
|
-
if (!
|
|
139
|
+
}, xe(o, s, a, e.children[u], n, u, !1) && (e.change = !0);
|
|
140
|
+
return e.change || (e.change = !Ue(a, q(s))), e.change;
|
|
141
|
+
}, Nt = (o, s, t, e, n) => {
|
|
142
|
+
if (!o.ui)
|
|
850
143
|
return console.assert(!1, "execPropLeafScalar prop ui must be valid"), !1;
|
|
851
|
-
let
|
|
852
|
-
return
|
|
853
|
-
},
|
|
854
|
-
if (
|
|
855
|
-
|
|
144
|
+
let l;
|
|
145
|
+
return e !== void 0 && !n ? l = s[e] : l = s[o.key], t.change = !Ue(l, q(o, !0)), t.change;
|
|
146
|
+
}, qe = (o, s, t, e) => {
|
|
147
|
+
if (s.length <= 0 || !t) {
|
|
148
|
+
o.value = {};
|
|
856
149
|
return;
|
|
857
150
|
}
|
|
858
|
-
const
|
|
859
|
-
|
|
860
|
-
l
|
|
151
|
+
const n = {};
|
|
152
|
+
s.forEach((l) => {
|
|
153
|
+
n[l.key] = {
|
|
861
154
|
change: !1,
|
|
862
|
-
children:
|
|
863
|
-
},
|
|
864
|
-
}),
|
|
865
|
-
},
|
|
866
|
-
let
|
|
867
|
-
return
|
|
868
|
-
if (!
|
|
869
|
-
return console.assert(!1, `isPropChanged state must be valid keys=${
|
|
870
|
-
if (!
|
|
871
|
-
return console.assert(!1, `isPropChanged state must be valid keys=${
|
|
872
|
-
typeof
|
|
873
|
-
}), (
|
|
874
|
-
},
|
|
875
|
-
function
|
|
876
|
-
|
|
155
|
+
children: l.array ? [] : {}
|
|
156
|
+
}, xe([], l, t, n[l.key], e);
|
|
157
|
+
}), o.value = n;
|
|
158
|
+
}, ce = (o, s) => {
|
|
159
|
+
let t = { change: !1, children: o };
|
|
160
|
+
return s.forEach((e) => {
|
|
161
|
+
if (!t)
|
|
162
|
+
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
163
|
+
if (!t.children)
|
|
164
|
+
return console.assert(!1, `isPropChanged state must be valid keys=${s}`), !1;
|
|
165
|
+
typeof e == "string" ? be(t.children) && (t = t.children[e]) : $e(t.children) && (t = t.children[e]);
|
|
166
|
+
}), (t == null ? void 0 : t.change) ?? !1;
|
|
167
|
+
}, We = Symbol(), Qe = Symbol(), Ze = Symbol(), Ee = Symbol(), je = Symbol(), Ie = Symbol();
|
|
168
|
+
function Ot(o) {
|
|
169
|
+
de(We, o);
|
|
877
170
|
}
|
|
878
|
-
function
|
|
879
|
-
return
|
|
171
|
+
function Te() {
|
|
172
|
+
return fe(We);
|
|
880
173
|
}
|
|
881
|
-
function
|
|
882
|
-
|
|
174
|
+
function qt(o) {
|
|
175
|
+
de(Qe, o);
|
|
883
176
|
}
|
|
884
|
-
function
|
|
885
|
-
return
|
|
177
|
+
function Bt() {
|
|
178
|
+
return fe(Qe);
|
|
886
179
|
}
|
|
887
|
-
function
|
|
888
|
-
|
|
180
|
+
function Kt(o) {
|
|
181
|
+
de(Ze, o);
|
|
889
182
|
}
|
|
890
|
-
function
|
|
891
|
-
return
|
|
183
|
+
function Rt() {
|
|
184
|
+
return fe(Ze);
|
|
892
185
|
}
|
|
893
|
-
function
|
|
894
|
-
|
|
186
|
+
function Jt(o) {
|
|
187
|
+
de(Ee, o);
|
|
895
188
|
}
|
|
896
|
-
function
|
|
897
|
-
return
|
|
189
|
+
function Ht() {
|
|
190
|
+
return fe(Ee);
|
|
898
191
|
}
|
|
899
|
-
function
|
|
900
|
-
|
|
192
|
+
function Xt(o) {
|
|
193
|
+
de(je, o);
|
|
901
194
|
}
|
|
902
|
-
function
|
|
903
|
-
return
|
|
195
|
+
function Ft() {
|
|
196
|
+
return fe(je);
|
|
904
197
|
}
|
|
905
|
-
function
|
|
906
|
-
|
|
198
|
+
function zt(o) {
|
|
199
|
+
de(Ie, o);
|
|
907
200
|
}
|
|
908
|
-
function
|
|
909
|
-
return
|
|
201
|
+
function et() {
|
|
202
|
+
return fe(Ie);
|
|
910
203
|
}
|
|
911
|
-
const
|
|
204
|
+
const Gt = /* @__PURE__ */ J({
|
|
912
205
|
__name: "menu",
|
|
913
|
-
setup(
|
|
914
|
-
const { t } =
|
|
915
|
-
const
|
|
916
|
-
if (!
|
|
206
|
+
setup(o) {
|
|
207
|
+
const { t: s } = te(), t = Bt(), e = Rt(), n = Ht(), l = Ft(), i = O(0), a = O(0), u = O([]), r = K(() => [i.value, a.value]), g = (w) => {
|
|
208
|
+
const b = () => !(u.value.length <= 0 || !ce(n.value, u.value)), P = () => {
|
|
209
|
+
if (!b())
|
|
917
210
|
return;
|
|
918
|
-
const
|
|
919
|
-
if (
|
|
920
|
-
if (
|
|
921
|
-
const
|
|
922
|
-
if (!
|
|
211
|
+
const h = he(t.value, u.value);
|
|
212
|
+
if (h)
|
|
213
|
+
if (h.ui) {
|
|
214
|
+
const M = ve(e.value, u.value.slice(0, -1));
|
|
215
|
+
if (!M)
|
|
923
216
|
return;
|
|
924
|
-
|
|
925
|
-
} else if (
|
|
926
|
-
const
|
|
927
|
-
if (
|
|
217
|
+
M[u.value.at(-1)] = q(h), l(u.value, M[u.value.at(-1)]);
|
|
218
|
+
} else if (h.array) {
|
|
219
|
+
const M = u.value.at(-1);
|
|
220
|
+
if (M === void 0) {
|
|
928
221
|
console.assert(!1, "invalid last key");
|
|
929
222
|
return;
|
|
930
223
|
}
|
|
931
|
-
if (typeof
|
|
932
|
-
const
|
|
933
|
-
if (!
|
|
224
|
+
if (typeof M == "string") {
|
|
225
|
+
const N = ve(e.value, u.value.slice(0, -1));
|
|
226
|
+
if (!N)
|
|
934
227
|
return;
|
|
935
|
-
|
|
228
|
+
N[u.value.at(-1)] = q(h), l(u.value, N[u.value.at(-1)]);
|
|
936
229
|
} else {
|
|
937
|
-
const
|
|
938
|
-
if (!
|
|
230
|
+
const N = ve(e.value, u.value);
|
|
231
|
+
if (!N)
|
|
939
232
|
return;
|
|
940
|
-
|
|
941
|
-
|
|
233
|
+
h.children.forEach((Z) => {
|
|
234
|
+
N[Z.key] = q(h), l([...u.value, Z.key], N[Z.key]);
|
|
942
235
|
});
|
|
943
236
|
}
|
|
944
237
|
} else {
|
|
945
|
-
const
|
|
946
|
-
if (!
|
|
238
|
+
const M = ve(e.value, u.value);
|
|
239
|
+
if (!M)
|
|
947
240
|
return;
|
|
948
|
-
|
|
949
|
-
|
|
241
|
+
h.children.forEach((N) => {
|
|
242
|
+
M[N.key] = q(h), l([...u.value, N.key], M[N.key]);
|
|
950
243
|
});
|
|
951
244
|
}
|
|
952
245
|
};
|
|
953
|
-
|
|
954
|
-
title:
|
|
955
|
-
func:
|
|
246
|
+
b() && w.push({
|
|
247
|
+
title: s("x-prop-tree.reset"),
|
|
248
|
+
func: P
|
|
956
249
|
});
|
|
957
|
-
},
|
|
958
|
-
const
|
|
959
|
-
const
|
|
960
|
-
localStorage.setItem("propTreeCopy", JSON.stringify({ prop:
|
|
250
|
+
}, d = (w) => {
|
|
251
|
+
const b = () => {
|
|
252
|
+
const P = he(t.value, u.value), h = ve(e.value, u.value);
|
|
253
|
+
localStorage.setItem("propTreeCopy", JSON.stringify({ prop: P, object: h }));
|
|
961
254
|
};
|
|
962
|
-
|
|
963
|
-
title:
|
|
964
|
-
func:
|
|
255
|
+
w.push({
|
|
256
|
+
title: s("x-prop-tree.copy"),
|
|
257
|
+
func: b
|
|
965
258
|
});
|
|
966
|
-
}, f = (
|
|
967
|
-
const
|
|
968
|
-
const
|
|
969
|
-
if (!
|
|
259
|
+
}, f = (w) => {
|
|
260
|
+
const b = () => {
|
|
261
|
+
const h = localStorage.getItem("propTreeCopy");
|
|
262
|
+
if (!h)
|
|
970
263
|
return !1;
|
|
971
264
|
try {
|
|
972
|
-
const { prop:
|
|
973
|
-
return
|
|
974
|
-
} catch (
|
|
975
|
-
console.error(
|
|
265
|
+
const { prop: M } = JSON.parse(h), N = he(t.value, u.value);
|
|
266
|
+
return wt(M, N);
|
|
267
|
+
} catch (M) {
|
|
268
|
+
console.error(M);
|
|
976
269
|
}
|
|
977
270
|
return !1;
|
|
978
|
-
},
|
|
979
|
-
if (!
|
|
271
|
+
}, P = () => {
|
|
272
|
+
if (!b())
|
|
980
273
|
return;
|
|
981
|
-
const
|
|
982
|
-
if (
|
|
274
|
+
const h = localStorage.getItem("propTreeCopy");
|
|
275
|
+
if (h)
|
|
983
276
|
try {
|
|
984
|
-
const { object:
|
|
985
|
-
console.log(
|
|
986
|
-
} catch (
|
|
987
|
-
console.error(
|
|
277
|
+
const { object: M } = JSON.parse(h), N = he(t.value, u.value);
|
|
278
|
+
console.log(M, N);
|
|
279
|
+
} catch (M) {
|
|
280
|
+
console.error(M);
|
|
988
281
|
}
|
|
989
282
|
};
|
|
990
|
-
|
|
991
|
-
title:
|
|
992
|
-
func:
|
|
283
|
+
b() && w.push({
|
|
284
|
+
title: s("x-prop-tree.paste"),
|
|
285
|
+
func: P
|
|
993
286
|
});
|
|
994
|
-
},
|
|
995
|
-
const
|
|
996
|
-
return
|
|
997
|
-
}),
|
|
998
|
-
i.value =
|
|
999
|
-
}, { open:
|
|
1000
|
-
return (
|
|
1001
|
-
const
|
|
1002
|
-
return
|
|
1003
|
-
modelValue:
|
|
1004
|
-
"onUpdate:modelValue":
|
|
287
|
+
}, m = K(() => {
|
|
288
|
+
const w = [];
|
|
289
|
+
return g(w), d(w), f(w), w;
|
|
290
|
+
}), k = (w) => {
|
|
291
|
+
i.value = w.x, a.value = w.y, u.value = w.keys;
|
|
292
|
+
}, { open: L } = Se("propTreeMenu", k);
|
|
293
|
+
return (w, b) => {
|
|
294
|
+
const P = $("v-list-item-title"), h = $("v-list-item"), M = $("v-list"), N = $("v-menu");
|
|
295
|
+
return S(), B(N, {
|
|
296
|
+
modelValue: C(L),
|
|
297
|
+
"onUpdate:modelValue": b[0] || (b[0] = (Z) => pe(L) ? L.value = Z : null),
|
|
1005
298
|
"location-strategy": "connected",
|
|
1006
|
-
target:
|
|
299
|
+
target: r.value,
|
|
1007
300
|
scrim: "transparent"
|
|
1008
301
|
}, {
|
|
1009
|
-
default:
|
|
1010
|
-
|
|
1011
|
-
default:
|
|
1012
|
-
(
|
|
1013
|
-
key:
|
|
302
|
+
default: R(() => [
|
|
303
|
+
A(M, null, {
|
|
304
|
+
default: R(() => [
|
|
305
|
+
(S(!0), H(Ve, null, Be(m.value, (Z, Pe) => (S(), B(h, {
|
|
306
|
+
key: Pe,
|
|
1014
307
|
link: "",
|
|
1015
|
-
onClick:
|
|
308
|
+
onClick: Z.func
|
|
1016
309
|
}, {
|
|
1017
|
-
default:
|
|
1018
|
-
|
|
1019
|
-
default:
|
|
1020
|
-
|
|
310
|
+
default: R(() => [
|
|
311
|
+
A(P, null, {
|
|
312
|
+
default: R(() => [
|
|
313
|
+
Ce(Q(Z.title), 1)
|
|
1021
314
|
]),
|
|
1022
315
|
_: 2
|
|
1023
316
|
}, 1024)
|
|
@@ -1032,9 +325,7 @@ const gs = /* @__PURE__ */ G({
|
|
|
1032
325
|
}, 8, ["modelValue", "target"]);
|
|
1033
326
|
};
|
|
1034
327
|
}
|
|
1035
|
-
})
|
|
1036
|
-
var Sn = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z", wn = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z", An = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", _e = "M19,13H5V11H19V13Z", ys = "M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z";
|
|
1037
|
-
const Be = /* @__PURE__ */ G({
|
|
328
|
+
}), ke = /* @__PURE__ */ J({
|
|
1038
329
|
__name: "title",
|
|
1039
330
|
props: {
|
|
1040
331
|
title: {},
|
|
@@ -1044,167 +335,167 @@ const Be = /* @__PURE__ */ G({
|
|
|
1044
335
|
index: { default: 0 }
|
|
1045
336
|
},
|
|
1046
337
|
emits: ["collapse", "menu", "create", "delete"],
|
|
1047
|
-
setup(
|
|
1048
|
-
const { backgroundColor2:
|
|
1049
|
-
background:
|
|
338
|
+
setup(o, { emit: s }) {
|
|
339
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = s, l = O(!1), i = K(() => ({
|
|
340
|
+
background: l.value ? e.value : t.value,
|
|
1050
341
|
height: "36px",
|
|
1051
342
|
marginBottom: "1px",
|
|
1052
343
|
userSelect: "none"
|
|
1053
344
|
})), a = () => {
|
|
1054
|
-
|
|
1055
|
-
}, u = (
|
|
1056
|
-
|
|
345
|
+
n("collapse", !o.collapse);
|
|
346
|
+
}, u = (r) => {
|
|
347
|
+
n("menu", r.clientX, r.clientY);
|
|
1057
348
|
};
|
|
1058
|
-
return (
|
|
1059
|
-
const
|
|
1060
|
-
return
|
|
349
|
+
return (r, g) => {
|
|
350
|
+
const d = $("v-icon"), f = $("v-spacer"), m = $("v-btn"), k = le("ripple");
|
|
351
|
+
return ee((S(), H("div", {
|
|
1061
352
|
class: "d-flex align-center cursor-pointer",
|
|
1062
|
-
style:
|
|
353
|
+
style: I(i.value),
|
|
1063
354
|
onClick: a,
|
|
1064
|
-
onContextmenu:
|
|
1065
|
-
onMouseover:
|
|
1066
|
-
onMouseout:
|
|
355
|
+
onContextmenu: z(u, ["self", "prevent"]),
|
|
356
|
+
onMouseover: g[2] || (g[2] = (L) => l.value = !0),
|
|
357
|
+
onMouseout: g[3] || (g[3] = (L) => l.value = !1)
|
|
1067
358
|
}, [
|
|
1068
|
-
|
|
359
|
+
A(d, {
|
|
1069
360
|
class: "mr-1",
|
|
1070
|
-
icon:
|
|
361
|
+
icon: r.collapse ? C(Xe) : C(Fe)
|
|
1071
362
|
}, null, 8, ["icon"]),
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
363
|
+
F("span", null, Q(r.title), 1),
|
|
364
|
+
A(f),
|
|
365
|
+
r.hasCreate ? (S(), B(m, {
|
|
1075
366
|
key: 0,
|
|
1076
367
|
class: "mx-3",
|
|
1077
368
|
variant: "text",
|
|
1078
369
|
density: "compact",
|
|
1079
|
-
icon:
|
|
1080
|
-
onClick:
|
|
1081
|
-
}, null, 8, ["icon"])) :
|
|
1082
|
-
|
|
370
|
+
icon: C(Vt),
|
|
371
|
+
onClick: g[0] || (g[0] = z((L) => n("create"), ["stop"]))
|
|
372
|
+
}, null, 8, ["icon"])) : Y("", !0),
|
|
373
|
+
r.hasDelete ? (S(), B(m, {
|
|
1083
374
|
key: 1,
|
|
1084
375
|
class: "mx-3",
|
|
1085
376
|
variant: "text",
|
|
1086
377
|
density: "compact",
|
|
1087
|
-
icon:
|
|
1088
|
-
onClick:
|
|
1089
|
-
}, null, 8, ["icon"])) :
|
|
378
|
+
icon: C(re),
|
|
379
|
+
onClick: g[1] || (g[1] = z((L) => n("delete", r.index), ["stop"]))
|
|
380
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1090
381
|
], 36)), [
|
|
1091
|
-
[
|
|
382
|
+
[k]
|
|
1092
383
|
]);
|
|
1093
384
|
};
|
|
1094
385
|
}
|
|
1095
|
-
}),
|
|
386
|
+
}), Yt = /* @__PURE__ */ J({
|
|
1096
387
|
__name: "entry",
|
|
1097
388
|
props: {
|
|
1098
389
|
minHeight: {}
|
|
1099
390
|
},
|
|
1100
391
|
emits: ["menu"],
|
|
1101
|
-
setup(
|
|
1102
|
-
const { backgroundColor2:
|
|
1103
|
-
background:
|
|
1104
|
-
minHeight:
|
|
392
|
+
setup(o, { emit: s }) {
|
|
393
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = s, l = O(!1), i = K(() => ({
|
|
394
|
+
background: l.value ? e.value : t.value,
|
|
395
|
+
minHeight: o.minHeight,
|
|
1105
396
|
paddingRight: "4px",
|
|
1106
397
|
marginBottom: "1px",
|
|
1107
398
|
userSelect: "none"
|
|
1108
399
|
})), a = (u) => {
|
|
1109
|
-
|
|
400
|
+
n("menu", u.clientX, u.clientY);
|
|
1110
401
|
};
|
|
1111
|
-
return (u,
|
|
1112
|
-
const
|
|
1113
|
-
return
|
|
402
|
+
return (u, r) => {
|
|
403
|
+
const g = le("ripple");
|
|
404
|
+
return ee((S(), H("div", {
|
|
1114
405
|
class: "d-flex justify-space-between align-center cursor-pointer",
|
|
1115
|
-
style:
|
|
1116
|
-
onContextmenu:
|
|
1117
|
-
onMouseover:
|
|
1118
|
-
onMouseout:
|
|
406
|
+
style: I(i.value),
|
|
407
|
+
onContextmenu: z(a, ["self", "prevent"]),
|
|
408
|
+
onMouseover: r[0] || (r[0] = (d) => l.value = !0),
|
|
409
|
+
onMouseout: r[1] || (r[1] = (d) => l.value = !1)
|
|
1119
410
|
}, [
|
|
1120
|
-
|
|
411
|
+
pt(u.$slots, "default")
|
|
1121
412
|
], 36)), [
|
|
1122
|
-
[
|
|
413
|
+
[g]
|
|
1123
414
|
]);
|
|
1124
415
|
};
|
|
1125
416
|
}
|
|
1126
417
|
});
|
|
1127
|
-
function
|
|
1128
|
-
const { t:
|
|
1129
|
-
return { renderProp: (
|
|
1130
|
-
const u =
|
|
1131
|
-
let
|
|
1132
|
-
return
|
|
1133
|
-
|
|
418
|
+
function Wt(o, s, t) {
|
|
419
|
+
const { t: e } = te();
|
|
420
|
+
return { renderProp: (l, i, a) => {
|
|
421
|
+
const u = l.at(-1);
|
|
422
|
+
let g = typeof u == "number" ? `[${u + 1}]` : e(i.name);
|
|
423
|
+
return ce(o.value, l) && (g += " *"), _(
|
|
424
|
+
Yt,
|
|
1134
425
|
{
|
|
1135
|
-
minHeight:
|
|
1136
|
-
onMenu: (
|
|
1137
|
-
|
|
426
|
+
minHeight: s.value,
|
|
427
|
+
onMenu: (d, f) => {
|
|
428
|
+
ae.emit("propTreeMenu", { x: d, y: f, keys: l });
|
|
1138
429
|
}
|
|
1139
430
|
},
|
|
1140
431
|
() => [
|
|
1141
|
-
_("span", { class: "ml-1", innerHTML:
|
|
1142
|
-
_("div", { style: { width:
|
|
432
|
+
_("span", { class: "ml-1", innerHTML: g }),
|
|
433
|
+
_("div", { style: { width: t.value } }, a)
|
|
1143
434
|
]
|
|
1144
435
|
);
|
|
1145
436
|
} };
|
|
1146
437
|
}
|
|
1147
|
-
const
|
|
1148
|
-
if (
|
|
1149
|
-
if (
|
|
1150
|
-
if (
|
|
1151
|
-
const i =
|
|
1152
|
-
i !== void 0 && (
|
|
438
|
+
const ne = (o, s, t, e, n, l) => {
|
|
439
|
+
if (n !== void 0)
|
|
440
|
+
if (l) {
|
|
441
|
+
if (t[s.key] === void 0) {
|
|
442
|
+
const i = q(s);
|
|
443
|
+
i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
|
|
1153
444
|
}
|
|
1154
|
-
return
|
|
445
|
+
return t[s.key];
|
|
1155
446
|
} else {
|
|
1156
|
-
if (n
|
|
1157
|
-
const i =
|
|
1158
|
-
i !== void 0 && (n
|
|
447
|
+
if (t[n] === void 0) {
|
|
448
|
+
const i = q(s, !0);
|
|
449
|
+
i !== void 0 && (t[n] = i, e(o, t[n]));
|
|
1159
450
|
}
|
|
1160
|
-
return n
|
|
451
|
+
return t[n];
|
|
1161
452
|
}
|
|
1162
453
|
else {
|
|
1163
|
-
if (
|
|
1164
|
-
const i =
|
|
1165
|
-
i !== void 0 && (
|
|
454
|
+
if (t[s.key] === void 0) {
|
|
455
|
+
const i = q(s);
|
|
456
|
+
i !== void 0 && (t[s.key] = i, e(o, t[s.key]));
|
|
1166
457
|
}
|
|
1167
|
-
return
|
|
458
|
+
return t[s.key];
|
|
1168
459
|
}
|
|
1169
|
-
},
|
|
1170
|
-
if (
|
|
1171
|
-
i ?
|
|
460
|
+
}, oe = (o, s, t, e, n, l, i) => {
|
|
461
|
+
if (l !== void 0)
|
|
462
|
+
i ? e !== t[s.key] && (t[s.key] = e, n(o, t[s.key])) : e !== t[l] && (t[l] = e, n(o, t[l]));
|
|
1172
463
|
else {
|
|
1173
|
-
let a =
|
|
1174
|
-
(
|
|
464
|
+
let a = e;
|
|
465
|
+
(s.ui === "switch" || s.ui === "select" || s.ui === "colorPicker" || s.ui === "multiTypes" || s.ui === "compSelect") && (e || (a = void 0)), a !== t[s.key] && (t[s.key] = a, n(o, t[s.key]));
|
|
1175
466
|
}
|
|
1176
467
|
};
|
|
1177
|
-
function
|
|
1178
|
-
return { renderUiDummy: (
|
|
1179
|
-
if (
|
|
468
|
+
function Qt(o) {
|
|
469
|
+
return { renderUiDummy: (t, e, n, l, i) => {
|
|
470
|
+
if (e.ui !== "dummy") {
|
|
1180
471
|
console.assert(!1, "renderUiDummy prop ui must be dummy");
|
|
1181
472
|
return;
|
|
1182
473
|
}
|
|
1183
|
-
|
|
474
|
+
ne(t, e, n, o, l, i);
|
|
1184
475
|
} };
|
|
1185
476
|
}
|
|
1186
|
-
const
|
|
477
|
+
const Zt = { class: "d-flex justify-space-between align-center" }, Et = /* @__PURE__ */ J({
|
|
1187
478
|
__name: "strInput",
|
|
1188
|
-
props: /* @__PURE__ */
|
|
479
|
+
props: /* @__PURE__ */ W({
|
|
1189
480
|
hasDelete: { type: Boolean, default: !1 },
|
|
1190
481
|
readonly: { type: Boolean, default: !1 }
|
|
1191
482
|
}, {
|
|
1192
483
|
modelValue: { required: !0 },
|
|
1193
484
|
modelModifiers: {}
|
|
1194
485
|
}),
|
|
1195
|
-
emits: /* @__PURE__ */
|
|
1196
|
-
setup(
|
|
1197
|
-
const
|
|
1198
|
-
return (
|
|
1199
|
-
const i =
|
|
1200
|
-
return
|
|
1201
|
-
|
|
1202
|
-
modelValue:
|
|
1203
|
-
"onUpdate:modelValue":
|
|
486
|
+
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
487
|
+
setup(o, { emit: s }) {
|
|
488
|
+
const t = G(o, "modelValue"), e = s;
|
|
489
|
+
return (n, l) => {
|
|
490
|
+
const i = $("v-text-field"), a = $("v-btn"), u = le("ripple");
|
|
491
|
+
return S(), H("div", Zt, [
|
|
492
|
+
ee(A(i, {
|
|
493
|
+
modelValue: t.value,
|
|
494
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
1204
495
|
density: "compact",
|
|
1205
496
|
"hide-details": "",
|
|
1206
497
|
"single-line": "",
|
|
1207
|
-
readonly:
|
|
498
|
+
readonly: n.readonly
|
|
1208
499
|
}, null, 8, ["modelValue", "readonly"]), [
|
|
1209
500
|
[
|
|
1210
501
|
u,
|
|
@@ -1213,49 +504,49 @@ const $s = { class: "d-flex justify-space-between align-center" }, Ts = /* @__PU
|
|
|
1213
504
|
{ stop: !0 }
|
|
1214
505
|
]
|
|
1215
506
|
]),
|
|
1216
|
-
|
|
507
|
+
n.hasDelete ? (S(), B(a, {
|
|
1217
508
|
key: 0,
|
|
1218
509
|
class: "mx-2",
|
|
1219
510
|
variant: "text",
|
|
1220
511
|
density: "compact",
|
|
1221
|
-
icon:
|
|
1222
|
-
onClick:
|
|
1223
|
-
}, null, 8, ["icon"])) :
|
|
512
|
+
icon: C(re),
|
|
513
|
+
onClick: l[1] || (l[1] = z((r) => e("delete"), ["stop"]))
|
|
514
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1224
515
|
]);
|
|
1225
516
|
};
|
|
1226
517
|
}
|
|
1227
518
|
});
|
|
1228
|
-
function
|
|
1229
|
-
return { renderUiStrInput: (
|
|
1230
|
-
modelValue:
|
|
1231
|
-
|
|
1232
|
-
r,
|
|
1233
|
-
l,
|
|
519
|
+
function jt(o) {
|
|
520
|
+
return { renderUiStrInput: (t, e, n, l, i) => e.ui !== "strInput" ? (console.assert(!1), _("div", "renderUiStrInput prop ui must be strInput")) : _(Et, {
|
|
521
|
+
modelValue: e.static ? e.value : ne(
|
|
522
|
+
t,
|
|
1234
523
|
e,
|
|
524
|
+
n,
|
|
1235
525
|
o,
|
|
526
|
+
l,
|
|
1236
527
|
i
|
|
1237
528
|
),
|
|
1238
529
|
"onUpdate:modelValue": (a) => {
|
|
1239
|
-
|
|
530
|
+
e.static || oe(
|
|
531
|
+
t,
|
|
532
|
+
e,
|
|
1240
533
|
n,
|
|
1241
|
-
r,
|
|
1242
|
-
l,
|
|
1243
534
|
a,
|
|
1244
|
-
e,
|
|
1245
535
|
o,
|
|
536
|
+
l,
|
|
1246
537
|
i
|
|
1247
538
|
);
|
|
1248
539
|
},
|
|
1249
|
-
hasDelete:
|
|
540
|
+
hasDelete: l !== void 0 && !i,
|
|
1250
541
|
onDelete: () => {
|
|
1251
|
-
|
|
542
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1252
543
|
},
|
|
1253
|
-
readonly:
|
|
544
|
+
readonly: e.static || e.readonly
|
|
1254
545
|
}) };
|
|
1255
546
|
}
|
|
1256
|
-
const
|
|
547
|
+
const It = { class: "d-flex justify-space-between align-center" }, en = /* @__PURE__ */ J({
|
|
1257
548
|
__name: "numInput",
|
|
1258
|
-
props: /* @__PURE__ */
|
|
549
|
+
props: /* @__PURE__ */ W({
|
|
1259
550
|
hasDelete: { type: Boolean, default: !1 },
|
|
1260
551
|
precision: { default: () => {
|
|
1261
552
|
} },
|
|
@@ -1267,24 +558,24 @@ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PU
|
|
|
1267
558
|
modelValue: { required: !0 },
|
|
1268
559
|
modelModifiers: {}
|
|
1269
560
|
}),
|
|
1270
|
-
emits: /* @__PURE__ */
|
|
1271
|
-
setup(
|
|
1272
|
-
const
|
|
1273
|
-
return (
|
|
1274
|
-
const i =
|
|
1275
|
-
return
|
|
1276
|
-
|
|
1277
|
-
modelValue:
|
|
1278
|
-
"onUpdate:modelValue":
|
|
561
|
+
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
562
|
+
setup(o, { emit: s }) {
|
|
563
|
+
const t = G(o, "modelValue"), e = s;
|
|
564
|
+
return (n, l) => {
|
|
565
|
+
const i = $("v-number-input"), a = $("v-btn"), u = le("ripple");
|
|
566
|
+
return S(), H("div", It, [
|
|
567
|
+
ee(A(i, {
|
|
568
|
+
modelValue: t.value,
|
|
569
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t.value = r),
|
|
1279
570
|
density: "compact",
|
|
1280
571
|
"control-variant": "stacked",
|
|
1281
|
-
precision:
|
|
1282
|
-
min:
|
|
1283
|
-
max:
|
|
1284
|
-
step:
|
|
572
|
+
precision: n.precision,
|
|
573
|
+
min: n.min,
|
|
574
|
+
max: n.max,
|
|
575
|
+
step: n.step,
|
|
1285
576
|
"hide-details": "",
|
|
1286
577
|
"single-line": "",
|
|
1287
|
-
readonly:
|
|
578
|
+
readonly: n.readonly
|
|
1288
579
|
}, null, 8, ["modelValue", "precision", "min", "max", "step", "readonly"]), [
|
|
1289
580
|
[
|
|
1290
581
|
u,
|
|
@@ -1293,117 +584,117 @@ const ws = { class: "d-flex justify-space-between align-center" }, As = /* @__PU
|
|
|
1293
584
|
{ stop: !0 }
|
|
1294
585
|
]
|
|
1295
586
|
]),
|
|
1296
|
-
|
|
587
|
+
n.hasDelete ? (S(), B(a, {
|
|
1297
588
|
key: 0,
|
|
1298
589
|
class: "mx-2",
|
|
1299
590
|
variant: "text",
|
|
1300
591
|
density: "compact",
|
|
1301
|
-
icon:
|
|
1302
|
-
onClick:
|
|
1303
|
-
}, null, 8, ["icon"])) :
|
|
592
|
+
icon: C(re),
|
|
593
|
+
onClick: l[1] || (l[1] = z((r) => e("delete"), ["stop"]))
|
|
594
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1304
595
|
]);
|
|
1305
596
|
};
|
|
1306
597
|
}
|
|
1307
598
|
});
|
|
1308
|
-
function
|
|
1309
|
-
return { renderUiNumInput: (
|
|
1310
|
-
modelValue:
|
|
1311
|
-
|
|
1312
|
-
r,
|
|
1313
|
-
l,
|
|
599
|
+
function tn(o) {
|
|
600
|
+
return { renderUiNumInput: (t, e, n, l, i) => e.ui !== "numInput" ? (console.assert(!1), _("div", "renderUiNumInput prop ui must be numInput")) : _(en, {
|
|
601
|
+
modelValue: ne(
|
|
602
|
+
t,
|
|
1314
603
|
e,
|
|
604
|
+
n,
|
|
1315
605
|
o,
|
|
606
|
+
l,
|
|
1316
607
|
i
|
|
1317
608
|
),
|
|
1318
609
|
"onUpdate:modelValue": (a) => {
|
|
1319
|
-
|
|
610
|
+
oe(
|
|
611
|
+
t,
|
|
612
|
+
e,
|
|
1320
613
|
n,
|
|
1321
|
-
r,
|
|
1322
|
-
l,
|
|
1323
614
|
a,
|
|
1324
|
-
e,
|
|
1325
615
|
o,
|
|
616
|
+
l,
|
|
1326
617
|
i
|
|
1327
618
|
);
|
|
1328
619
|
},
|
|
1329
|
-
hasDelete:
|
|
620
|
+
hasDelete: l !== void 0 && !i,
|
|
1330
621
|
onDelete: () => {
|
|
1331
|
-
|
|
622
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1332
623
|
},
|
|
1333
|
-
precision:
|
|
1334
|
-
min:
|
|
1335
|
-
max:
|
|
1336
|
-
step:
|
|
1337
|
-
readonly:
|
|
624
|
+
precision: e.precision,
|
|
625
|
+
min: e.min,
|
|
626
|
+
max: e.max,
|
|
627
|
+
step: e.step,
|
|
628
|
+
readonly: e.readonly
|
|
1338
629
|
}) };
|
|
1339
630
|
}
|
|
1340
|
-
const
|
|
631
|
+
const nn = { class: "d-flex justify-space-between align-center" }, ln = /* @__PURE__ */ J({
|
|
1341
632
|
__name: "switch",
|
|
1342
|
-
props: /* @__PURE__ */
|
|
633
|
+
props: /* @__PURE__ */ W({
|
|
1343
634
|
hasDelete: { type: Boolean, default: !1 },
|
|
1344
635
|
readonly: { type: Boolean, default: !1 }
|
|
1345
636
|
}, {
|
|
1346
637
|
modelValue: { type: Boolean },
|
|
1347
638
|
modelModifiers: {}
|
|
1348
639
|
}),
|
|
1349
|
-
emits: /* @__PURE__ */
|
|
1350
|
-
setup(
|
|
1351
|
-
const
|
|
1352
|
-
return (
|
|
1353
|
-
const i =
|
|
1354
|
-
return
|
|
1355
|
-
|
|
1356
|
-
modelValue:
|
|
1357
|
-
"onUpdate:modelValue":
|
|
640
|
+
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
641
|
+
setup(o, { emit: s }) {
|
|
642
|
+
const t = G(o, "modelValue"), e = s;
|
|
643
|
+
return (n, l) => {
|
|
644
|
+
const i = $("v-switch"), a = $("v-btn");
|
|
645
|
+
return S(), H("div", nn, [
|
|
646
|
+
A(i, {
|
|
647
|
+
modelValue: t.value,
|
|
648
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u),
|
|
1358
649
|
class: "ml-1",
|
|
1359
650
|
density: "compact",
|
|
1360
651
|
color: "primary",
|
|
1361
652
|
"hide-details": "",
|
|
1362
|
-
readonly:
|
|
653
|
+
readonly: n.readonly
|
|
1363
654
|
}, null, 8, ["modelValue", "readonly"]),
|
|
1364
|
-
|
|
655
|
+
n.hasDelete ? (S(), B(a, {
|
|
1365
656
|
key: 0,
|
|
1366
657
|
class: "mx-2",
|
|
1367
658
|
variant: "text",
|
|
1368
659
|
density: "compact",
|
|
1369
|
-
icon:
|
|
1370
|
-
onClick:
|
|
1371
|
-
}, null, 8, ["icon"])) :
|
|
660
|
+
icon: C(re),
|
|
661
|
+
onClick: l[1] || (l[1] = z((u) => e("delete"), ["stop"]))
|
|
662
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1372
663
|
]);
|
|
1373
664
|
};
|
|
1374
665
|
}
|
|
1375
666
|
});
|
|
1376
|
-
function
|
|
1377
|
-
return { renderUiSwitch: (
|
|
1378
|
-
modelValue:
|
|
1379
|
-
|
|
1380
|
-
r,
|
|
1381
|
-
l,
|
|
667
|
+
function on(o) {
|
|
668
|
+
return { renderUiSwitch: (t, e, n, l, i) => e.ui !== "switch" ? (console.assert(!1), _("div", "renderUiSwitch prop ui must be switch")) : _(ln, {
|
|
669
|
+
modelValue: ne(
|
|
670
|
+
t,
|
|
1382
671
|
e,
|
|
672
|
+
n,
|
|
1383
673
|
o,
|
|
674
|
+
l,
|
|
1384
675
|
i
|
|
1385
676
|
) ?? !1,
|
|
1386
677
|
"onUpdate:modelValue": (a) => {
|
|
1387
|
-
|
|
678
|
+
oe(
|
|
679
|
+
t,
|
|
680
|
+
e,
|
|
1388
681
|
n,
|
|
1389
|
-
r,
|
|
1390
|
-
l,
|
|
1391
682
|
a,
|
|
1392
|
-
e,
|
|
1393
683
|
o,
|
|
684
|
+
l,
|
|
1394
685
|
i
|
|
1395
686
|
);
|
|
1396
687
|
},
|
|
1397
|
-
hasDelete:
|
|
688
|
+
hasDelete: l !== void 0 && !i,
|
|
1398
689
|
onDelete: () => {
|
|
1399
|
-
|
|
690
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, 1), n));
|
|
1400
691
|
},
|
|
1401
|
-
readonly:
|
|
692
|
+
readonly: e.readonly
|
|
1402
693
|
}) };
|
|
1403
694
|
}
|
|
1404
|
-
const
|
|
695
|
+
const sn = { class: "d-flex justify-space-between align-center" }, rn = /* @__PURE__ */ J({
|
|
1405
696
|
__name: "select",
|
|
1406
|
-
props: /* @__PURE__ */
|
|
697
|
+
props: /* @__PURE__ */ W({
|
|
1407
698
|
hasDelete: { type: Boolean, default: !1 },
|
|
1408
699
|
readonly: { type: Boolean, default: !1 },
|
|
1409
700
|
items: {}
|
|
@@ -1411,21 +702,21 @@ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PU
|
|
|
1411
702
|
modelValue: {},
|
|
1412
703
|
modelModifiers: {}
|
|
1413
704
|
}),
|
|
1414
|
-
emits: /* @__PURE__ */
|
|
1415
|
-
setup(
|
|
1416
|
-
const { t
|
|
705
|
+
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
706
|
+
setup(o, { emit: s }) {
|
|
707
|
+
const { t } = te(), e = G(o, "modelValue"), n = s, l = Te(), i = K(() => {
|
|
1417
708
|
var u;
|
|
1418
709
|
const a = [];
|
|
1419
|
-
return (u =
|
|
1420
|
-
a.push({ title:
|
|
710
|
+
return (u = Ye[l.value]) == null || u.items[o.items].forEach(({ title: r, value: g }) => {
|
|
711
|
+
a.push({ title: t(r), value: g });
|
|
1421
712
|
}), a;
|
|
1422
713
|
});
|
|
1423
714
|
return (a, u) => {
|
|
1424
|
-
const
|
|
1425
|
-
return
|
|
1426
|
-
|
|
1427
|
-
modelValue:
|
|
1428
|
-
"onUpdate:modelValue": u[0] || (u[0] = (f) =>
|
|
715
|
+
const r = $("v-select"), g = $("v-btn"), d = le("ripple");
|
|
716
|
+
return S(), H("div", sn, [
|
|
717
|
+
ee(A(r, {
|
|
718
|
+
modelValue: e.value,
|
|
719
|
+
"onUpdate:modelValue": u[0] || (u[0] = (f) => e.value = f),
|
|
1429
720
|
density: "compact",
|
|
1430
721
|
items: i.value,
|
|
1431
722
|
"hide-details": "",
|
|
@@ -1433,54 +724,54 @@ const Vs = { class: "d-flex justify-space-between align-center" }, Us = /* @__PU
|
|
|
1433
724
|
readonly: a.readonly
|
|
1434
725
|
}, null, 8, ["modelValue", "items", "readonly"]), [
|
|
1435
726
|
[
|
|
1436
|
-
|
|
727
|
+
d,
|
|
1437
728
|
void 0,
|
|
1438
729
|
void 0,
|
|
1439
730
|
{ stop: !0 }
|
|
1440
731
|
]
|
|
1441
732
|
]),
|
|
1442
|
-
a.hasDelete ? (
|
|
733
|
+
a.hasDelete ? (S(), B(g, {
|
|
1443
734
|
key: 0,
|
|
1444
735
|
class: "mx-2",
|
|
1445
736
|
variant: "text",
|
|
1446
737
|
density: "compact",
|
|
1447
|
-
icon:
|
|
1448
|
-
onClick: u[1] || (u[1] =
|
|
1449
|
-
}, null, 8, ["icon"])) :
|
|
738
|
+
icon: C(re),
|
|
739
|
+
onClick: u[1] || (u[1] = z((f) => n("delete"), ["stop"]))
|
|
740
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1450
741
|
]);
|
|
1451
742
|
};
|
|
1452
743
|
}
|
|
1453
744
|
});
|
|
1454
|
-
function
|
|
1455
|
-
return { renderUiSelect: (
|
|
1456
|
-
modelValue:
|
|
1457
|
-
|
|
1458
|
-
r,
|
|
1459
|
-
l,
|
|
745
|
+
function un(o) {
|
|
746
|
+
return { renderUiSelect: (t, e, n, l, i) => e.ui !== "select" ? (console.assert(!1), _("div", "renderUiSelect prop ui must be select")) : _(rn, {
|
|
747
|
+
modelValue: ne(
|
|
748
|
+
t,
|
|
1460
749
|
e,
|
|
750
|
+
n,
|
|
1461
751
|
o,
|
|
752
|
+
l,
|
|
1462
753
|
i
|
|
1463
754
|
) ?? "",
|
|
1464
755
|
"onUpdate:modelValue": (a) => {
|
|
1465
|
-
|
|
756
|
+
oe(
|
|
757
|
+
t,
|
|
758
|
+
e,
|
|
1466
759
|
n,
|
|
1467
|
-
r,
|
|
1468
|
-
l,
|
|
1469
760
|
a,
|
|
1470
|
-
e,
|
|
1471
761
|
o,
|
|
762
|
+
l,
|
|
1472
763
|
i
|
|
1473
764
|
);
|
|
1474
765
|
},
|
|
1475
|
-
hasDelete:
|
|
766
|
+
hasDelete: l !== void 0 && !i,
|
|
1476
767
|
onDelete: () => {
|
|
1477
|
-
|
|
768
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1478
769
|
},
|
|
1479
|
-
items:
|
|
1480
|
-
readonly:
|
|
770
|
+
items: e.items,
|
|
771
|
+
readonly: e.readonly
|
|
1481
772
|
}) };
|
|
1482
773
|
}
|
|
1483
|
-
const
|
|
774
|
+
const an = { class: "text-subtitle-2 ml-1" }, cn = { class: "text-caption text-grey ml-1" }, dn = /* @__PURE__ */ J({
|
|
1484
775
|
__name: "group",
|
|
1485
776
|
props: {
|
|
1486
777
|
id: {},
|
|
@@ -1489,66 +780,66 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
|
|
|
1489
780
|
count: {}
|
|
1490
781
|
},
|
|
1491
782
|
emits: ["x-click"],
|
|
1492
|
-
setup(
|
|
1493
|
-
const { backgroundColor2:
|
|
1494
|
-
background: i.value ?
|
|
783
|
+
setup(o, { emit: s }) {
|
|
784
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = o, l = s, i = O(!1), a = K(() => ({
|
|
785
|
+
background: i.value ? e.value : t.value,
|
|
1495
786
|
height: "30px",
|
|
1496
787
|
marginBottom: "1px",
|
|
1497
788
|
userSelect: "none"
|
|
1498
789
|
}));
|
|
1499
|
-
return (u,
|
|
1500
|
-
const
|
|
1501
|
-
return
|
|
790
|
+
return (u, r) => {
|
|
791
|
+
const g = $("v-icon"), d = le("ripple");
|
|
792
|
+
return ee((S(), H("div", {
|
|
1502
793
|
class: "d-flex align-center cursor-pointer",
|
|
1503
|
-
style:
|
|
1504
|
-
onClick:
|
|
1505
|
-
onMouseover:
|
|
1506
|
-
onMouseout:
|
|
794
|
+
style: I(a.value),
|
|
795
|
+
onClick: r[0] || (r[0] = (f) => l("x-click", n.id)),
|
|
796
|
+
onMouseover: r[1] || (r[1] = (f) => i.value = !0),
|
|
797
|
+
onMouseout: r[2] || (r[2] = (f) => i.value = !1)
|
|
1507
798
|
}, [
|
|
1508
|
-
|
|
1509
|
-
icon:
|
|
799
|
+
A(g, {
|
|
800
|
+
icon: n.collapse ? C(Xe) : C(Fe),
|
|
1510
801
|
size: "small"
|
|
1511
802
|
}, null, 8, ["icon"]),
|
|
1512
|
-
|
|
1513
|
-
|
|
803
|
+
F("span", an, Q(n.title), 1),
|
|
804
|
+
F("span", cn, Q(n.count), 1)
|
|
1514
805
|
], 36)), [
|
|
1515
|
-
[
|
|
806
|
+
[d]
|
|
1516
807
|
]);
|
|
1517
808
|
};
|
|
1518
809
|
}
|
|
1519
|
-
}),
|
|
810
|
+
}), fn = { class: "text-subtitle-1 ml-6" }, mn = /* @__PURE__ */ J({
|
|
1520
811
|
__name: "item",
|
|
1521
812
|
props: {
|
|
1522
813
|
id: {},
|
|
1523
814
|
title: {}
|
|
1524
815
|
},
|
|
1525
816
|
emits: ["x-click"],
|
|
1526
|
-
setup(
|
|
1527
|
-
const { backgroundColor2:
|
|
1528
|
-
background: i.value ?
|
|
817
|
+
setup(o, { emit: s }) {
|
|
818
|
+
const { backgroundColor2: t, highlightColor: e } = ie(), n = o, l = s, i = O(!1), a = K(() => ({
|
|
819
|
+
background: i.value ? e.value : t.value,
|
|
1529
820
|
height: "48px",
|
|
1530
821
|
marginBottom: "1px",
|
|
1531
822
|
userSelect: "none"
|
|
1532
823
|
}));
|
|
1533
|
-
return (u,
|
|
1534
|
-
const
|
|
1535
|
-
return
|
|
824
|
+
return (u, r) => {
|
|
825
|
+
const g = le("ripple");
|
|
826
|
+
return ee((S(), H("div", {
|
|
1536
827
|
class: "d-flex align-center cursor-pointer",
|
|
1537
|
-
style:
|
|
1538
|
-
onClick:
|
|
1539
|
-
onMouseover:
|
|
1540
|
-
onMouseout:
|
|
828
|
+
style: I(a.value),
|
|
829
|
+
onClick: r[0] || (r[0] = (d) => l("x-click", n.id)),
|
|
830
|
+
onMouseover: r[1] || (r[1] = (d) => i.value = !0),
|
|
831
|
+
onMouseout: r[2] || (r[2] = (d) => i.value = !1)
|
|
1541
832
|
}, [
|
|
1542
|
-
|
|
833
|
+
F("span", fn, Q(n.title), 1)
|
|
1543
834
|
], 36)), [
|
|
1544
|
-
[
|
|
835
|
+
[g]
|
|
1545
836
|
]);
|
|
1546
837
|
};
|
|
1547
838
|
}
|
|
1548
|
-
}),
|
|
839
|
+
}), vn = { key: 0 }, pn = {
|
|
1549
840
|
key: 1,
|
|
1550
841
|
class: "text-body-2 text-grey ml-3"
|
|
1551
|
-
},
|
|
842
|
+
}, yn = /* @__PURE__ */ J({
|
|
1552
843
|
__name: "index",
|
|
1553
844
|
props: {
|
|
1554
845
|
modelValue: {},
|
|
@@ -1557,128 +848,128 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
|
|
|
1557
848
|
openModifiers: {}
|
|
1558
849
|
},
|
|
1559
850
|
emits: ["update:modelValue", "update:open"],
|
|
1560
|
-
setup(
|
|
1561
|
-
const { t } =
|
|
1562
|
-
const u =
|
|
1563
|
-
u &&
|
|
851
|
+
setup(o) {
|
|
852
|
+
const { t: s } = te(), t = G(o, "modelValue"), e = G(o, "open"), n = et(), l = (a) => {
|
|
853
|
+
const u = ze(n, a);
|
|
854
|
+
u && Ct(n, a, !u.collapse);
|
|
1564
855
|
}, i = (a) => {
|
|
1565
|
-
|
|
856
|
+
t.value = a, e.value = !1, ae.emit("refreshDepends");
|
|
1566
857
|
};
|
|
1567
|
-
return (a, u) =>
|
|
1568
|
-
(
|
|
1569
|
-
key:
|
|
858
|
+
return (a, u) => C(n).length > 0 ? (S(), H("div", vn, [
|
|
859
|
+
(S(!0), H(Ve, null, Be(C(n), (r) => (S(), H(Ve, {
|
|
860
|
+
key: r.id
|
|
1570
861
|
}, [
|
|
1571
|
-
|
|
862
|
+
r.type === 0 ? (S(), B(dn, {
|
|
1572
863
|
key: 0,
|
|
1573
|
-
id:
|
|
1574
|
-
title:
|
|
1575
|
-
collapse:
|
|
1576
|
-
count:
|
|
1577
|
-
onXClick:
|
|
1578
|
-
}, null, 8, ["id", "title", "collapse", "count"])) :
|
|
1579
|
-
|
|
864
|
+
id: r.id,
|
|
865
|
+
title: r.name,
|
|
866
|
+
collapse: r.collapse,
|
|
867
|
+
count: r.count ?? 0,
|
|
868
|
+
onXClick: l
|
|
869
|
+
}, null, 8, ["id", "title", "collapse", "count"])) : Y("", !0),
|
|
870
|
+
r.type === 1 && r.show ? (S(), B(mn, {
|
|
1580
871
|
key: 1,
|
|
1581
|
-
id:
|
|
1582
|
-
title:
|
|
872
|
+
id: r.id,
|
|
873
|
+
title: r.name,
|
|
1583
874
|
onXClick: i
|
|
1584
|
-
}, null, 8, ["id", "title"])) :
|
|
875
|
+
}, null, 8, ["id", "title"])) : Y("", !0)
|
|
1585
876
|
], 64))), 128))
|
|
1586
|
-
])) : (
|
|
877
|
+
])) : (S(), H("div", pn, Q(C(s)("x-prop-tree.noComp")), 1));
|
|
1587
878
|
}
|
|
1588
|
-
}),
|
|
879
|
+
}), gn = { class: "text-subtitle-1 ml-3" }, _n = /* @__PURE__ */ J({
|
|
1589
880
|
__name: "index",
|
|
1590
881
|
props: {
|
|
1591
882
|
modelValue: {},
|
|
1592
883
|
modelModifiers: {}
|
|
1593
884
|
},
|
|
1594
885
|
emits: ["update:modelValue"],
|
|
1595
|
-
setup(
|
|
1596
|
-
const { t } =
|
|
886
|
+
setup(o) {
|
|
887
|
+
const { t: s } = te(), t = Pt(), { sysBarAvail: e } = Je(), { backgroundColor1: n } = ie(), l = G(o, "modelValue"), i = et(), a = K(() => {
|
|
1597
888
|
let f = "100%";
|
|
1598
|
-
return
|
|
1599
|
-
background:
|
|
889
|
+
return t.mdAndUp.value && (f = "400px"), {
|
|
890
|
+
background: n.value,
|
|
1600
891
|
width: f,
|
|
1601
892
|
height: "100%"
|
|
1602
893
|
};
|
|
1603
|
-
}), u =
|
|
894
|
+
}), u = K(() => {
|
|
1604
895
|
let f = 48;
|
|
1605
|
-
return
|
|
896
|
+
return e.value && (f += 24), {
|
|
1606
897
|
position: "relative",
|
|
1607
898
|
height: `calc(100% - ${f}px)`
|
|
1608
899
|
};
|
|
1609
|
-
}),
|
|
900
|
+
}), r = K(() => ({
|
|
1610
901
|
height: "60px"
|
|
1611
|
-
})),
|
|
1612
|
-
if (!
|
|
1613
|
-
return
|
|
1614
|
-
const f =
|
|
1615
|
-
return f ? f.name :
|
|
1616
|
-
}), { open:
|
|
1617
|
-
return
|
|
1618
|
-
|
|
1619
|
-
}), (f,
|
|
1620
|
-
const
|
|
1621
|
-
return
|
|
1622
|
-
modelValue:
|
|
1623
|
-
"onUpdate:modelValue":
|
|
902
|
+
})), g = K(() => {
|
|
903
|
+
if (!l.value)
|
|
904
|
+
return s("x-runtime-lib.notSet");
|
|
905
|
+
const f = ze(i, l.value);
|
|
906
|
+
return f ? f.name : s("x-runtime-lib.compNotAvail");
|
|
907
|
+
}), { open: d } = Se(`propTreeCompSelectDlg${we()}`);
|
|
908
|
+
return De(() => {
|
|
909
|
+
d.value = !1;
|
|
910
|
+
}), (f, m) => {
|
|
911
|
+
const k = $("v-btn"), L = $("v-sheet"), w = $("v-icon"), b = $("v-dialog");
|
|
912
|
+
return S(), B(b, {
|
|
913
|
+
modelValue: C(d),
|
|
914
|
+
"onUpdate:modelValue": m[5] || (m[5] = (P) => pe(d) ? d.value = P : null),
|
|
1624
915
|
transition: "scroll-x-reverse-transition",
|
|
1625
916
|
persistent: "",
|
|
1626
917
|
"no-click-animation": "",
|
|
1627
918
|
fullscreen: "",
|
|
1628
|
-
onKeydown:
|
|
919
|
+
onKeydown: m[6] || (m[6] = Ke(z((P) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
1629
920
|
}, {
|
|
1630
|
-
activator:
|
|
1631
|
-
k
|
|
921
|
+
activator: R(({ props: P }) => [
|
|
922
|
+
A(k, Ae(P, {
|
|
1632
923
|
density: "comfortable",
|
|
1633
924
|
block: ""
|
|
1634
925
|
}), {
|
|
1635
|
-
default:
|
|
1636
|
-
|
|
926
|
+
default: R(() => [
|
|
927
|
+
Ce(Q(g.value), 1)
|
|
1637
928
|
]),
|
|
1638
929
|
_: 2
|
|
1639
930
|
}, 1040)
|
|
1640
931
|
]),
|
|
1641
|
-
default:
|
|
1642
|
-
|
|
932
|
+
default: R(() => [
|
|
933
|
+
F("div", {
|
|
1643
934
|
class: "w-100 h-100 d-flex flex-row-reverse",
|
|
1644
|
-
onClick:
|
|
1645
|
-
onContextmenu:
|
|
935
|
+
onClick: m[3] || (m[3] = z((P) => d.value = !1, ["self"])),
|
|
936
|
+
onContextmenu: m[4] || (m[4] = z((P) => d.value = !1, ["self", "prevent"]))
|
|
1646
937
|
}, [
|
|
1647
|
-
|
|
938
|
+
F("div", {
|
|
1648
939
|
class: "elevation-2",
|
|
1649
|
-
style:
|
|
940
|
+
style: I(a.value)
|
|
1650
941
|
}, [
|
|
1651
|
-
|
|
942
|
+
C(e) ? (S(), B(L, {
|
|
1652
943
|
key: 0,
|
|
1653
944
|
color: "transparent",
|
|
1654
945
|
height: 24
|
|
1655
|
-
})) :
|
|
1656
|
-
|
|
946
|
+
})) : Y("", !0),
|
|
947
|
+
A(L, {
|
|
1657
948
|
class: "d-flex align-center px-3",
|
|
1658
949
|
color: "transparent",
|
|
1659
950
|
height: 48
|
|
1660
951
|
}, {
|
|
1661
|
-
default:
|
|
1662
|
-
|
|
1663
|
-
icon:
|
|
1664
|
-
onClick:
|
|
952
|
+
default: R(() => [
|
|
953
|
+
A(w, {
|
|
954
|
+
icon: C(Ge),
|
|
955
|
+
onClick: m[0] || (m[0] = (P) => d.value = !1)
|
|
1665
956
|
}, null, 8, ["icon"]),
|
|
1666
|
-
|
|
957
|
+
F("span", gn, Q(C(s)("x-prop-tree.dlg.compSelect.title")), 1)
|
|
1667
958
|
]),
|
|
1668
959
|
_: 1
|
|
1669
960
|
}),
|
|
1670
|
-
|
|
961
|
+
F("div", {
|
|
1671
962
|
class: "overflow-y-auto",
|
|
1672
|
-
style:
|
|
963
|
+
style: I(u.value)
|
|
1673
964
|
}, [
|
|
1674
|
-
|
|
1675
|
-
modelValue:
|
|
1676
|
-
"onUpdate:modelValue":
|
|
1677
|
-
open:
|
|
1678
|
-
"onUpdate:open":
|
|
965
|
+
A(yn, {
|
|
966
|
+
modelValue: l.value,
|
|
967
|
+
"onUpdate:modelValue": m[1] || (m[1] = (P) => l.value = P),
|
|
968
|
+
open: C(d),
|
|
969
|
+
"onUpdate:open": m[2] || (m[2] = (P) => pe(d) ? d.value = P : null)
|
|
1679
970
|
}, null, 8, ["modelValue", "open"]),
|
|
1680
|
-
|
|
1681
|
-
style:
|
|
971
|
+
F("div", {
|
|
972
|
+
style: I(r.value)
|
|
1682
973
|
}, null, 4)
|
|
1683
974
|
], 4)
|
|
1684
975
|
], 4)
|
|
@@ -1689,88 +980,88 @@ const Ls = { class: "text-subtitle-2 ml-1" }, Ds = { class: "text-caption text-g
|
|
|
1689
980
|
};
|
|
1690
981
|
}
|
|
1691
982
|
});
|
|
1692
|
-
function
|
|
1693
|
-
return { renderUiCompSelect: (
|
|
1694
|
-
modelValue:
|
|
1695
|
-
|
|
1696
|
-
r,
|
|
1697
|
-
l,
|
|
983
|
+
function hn(o) {
|
|
984
|
+
return { renderUiCompSelect: (t, e, n, l, i) => e.ui !== "compSelect" ? (console.assert(!1), _("div", "renderUiCompSelect prop ui must be compSelect")) : _(_n, {
|
|
985
|
+
modelValue: ne(
|
|
986
|
+
t,
|
|
1698
987
|
e,
|
|
988
|
+
n,
|
|
1699
989
|
o,
|
|
990
|
+
l,
|
|
1700
991
|
i
|
|
1701
992
|
),
|
|
1702
993
|
"onUpdate:modelValue": (a) => {
|
|
1703
|
-
|
|
994
|
+
oe(
|
|
995
|
+
t,
|
|
996
|
+
e,
|
|
1704
997
|
n,
|
|
1705
|
-
r,
|
|
1706
|
-
l,
|
|
1707
998
|
a,
|
|
1708
|
-
e,
|
|
1709
999
|
o,
|
|
1000
|
+
l,
|
|
1710
1001
|
i
|
|
1711
1002
|
);
|
|
1712
1003
|
}
|
|
1713
1004
|
}) };
|
|
1714
1005
|
}
|
|
1715
|
-
const
|
|
1006
|
+
const kn = { class: "d-flex justify-space-between align-center" }, Vn = /* @__PURE__ */ J({
|
|
1716
1007
|
__name: "colorPicker",
|
|
1717
|
-
props: /* @__PURE__ */
|
|
1008
|
+
props: /* @__PURE__ */ W({
|
|
1718
1009
|
hasDelete: { type: Boolean, default: !1 },
|
|
1719
1010
|
readonly: { type: Boolean, default: !1 }
|
|
1720
1011
|
}, {
|
|
1721
1012
|
modelValue: {},
|
|
1722
1013
|
modelModifiers: {}
|
|
1723
1014
|
}),
|
|
1724
|
-
emits: /* @__PURE__ */
|
|
1725
|
-
setup(
|
|
1726
|
-
const { t
|
|
1015
|
+
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
1016
|
+
setup(o, { emit: s }) {
|
|
1017
|
+
const { t } = te(), e = G(o, "modelValue"), n = s, l = K(() => {
|
|
1727
1018
|
let u = "100%";
|
|
1728
|
-
return
|
|
1019
|
+
return o.hasDelete && (u = "calc(100% - 37px)"), {
|
|
1729
1020
|
width: u
|
|
1730
1021
|
};
|
|
1731
|
-
}), i =
|
|
1732
|
-
return
|
|
1022
|
+
}), i = K(() => o.readonly), { open: a } = Se(`propTreeColorPickerMenu${we()}`);
|
|
1023
|
+
return De(() => {
|
|
1733
1024
|
a.value = !1;
|
|
1734
|
-
}), (u,
|
|
1735
|
-
const
|
|
1736
|
-
return
|
|
1737
|
-
modelValue:
|
|
1738
|
-
"onUpdate:modelValue":
|
|
1025
|
+
}), (u, r) => {
|
|
1026
|
+
const g = $("v-btn"), d = $("v-color-picker"), f = $("v-menu");
|
|
1027
|
+
return S(), B(f, {
|
|
1028
|
+
modelValue: C(a),
|
|
1029
|
+
"onUpdate:modelValue": r[2] || (r[2] = (m) => pe(a) ? a.value = m : null),
|
|
1739
1030
|
"close-on-content-click": !1,
|
|
1740
1031
|
scrim: "transparent"
|
|
1741
1032
|
}, {
|
|
1742
|
-
activator:
|
|
1743
|
-
|
|
1744
|
-
|
|
1033
|
+
activator: R(({ props: m }) => [
|
|
1034
|
+
F("div", kn, [
|
|
1035
|
+
F("div", {
|
|
1745
1036
|
class: "flex-grow-1",
|
|
1746
|
-
style:
|
|
1037
|
+
style: I(l.value)
|
|
1747
1038
|
}, [
|
|
1748
|
-
|
|
1039
|
+
A(g, Ae(m, {
|
|
1749
1040
|
density: "comfortable",
|
|
1750
|
-
color:
|
|
1041
|
+
color: e.value,
|
|
1751
1042
|
block: "",
|
|
1752
1043
|
disabled: i.value
|
|
1753
1044
|
}), {
|
|
1754
|
-
default:
|
|
1755
|
-
|
|
1045
|
+
default: R(() => [
|
|
1046
|
+
Ce(Q(e.value ? e.value : C(t)("x-runtime-lib.notSet")), 1)
|
|
1756
1047
|
]),
|
|
1757
1048
|
_: 2
|
|
1758
1049
|
}, 1040, ["color", "disabled"])
|
|
1759
1050
|
], 4),
|
|
1760
|
-
u.hasDelete ? (
|
|
1051
|
+
u.hasDelete ? (S(), B(g, {
|
|
1761
1052
|
key: 0,
|
|
1762
1053
|
class: "mx-2",
|
|
1763
1054
|
variant: "text",
|
|
1764
1055
|
density: "compact",
|
|
1765
|
-
icon:
|
|
1766
|
-
onClick:
|
|
1767
|
-
}, null, 8, ["icon"])) :
|
|
1056
|
+
icon: C(re),
|
|
1057
|
+
onClick: r[0] || (r[0] = z((k) => n("delete"), ["stop"]))
|
|
1058
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1768
1059
|
])
|
|
1769
1060
|
]),
|
|
1770
|
-
default:
|
|
1771
|
-
|
|
1772
|
-
modelValue:
|
|
1773
|
-
"onUpdate:modelValue":
|
|
1061
|
+
default: R(() => [
|
|
1062
|
+
A(d, {
|
|
1063
|
+
modelValue: e.value,
|
|
1064
|
+
"onUpdate:modelValue": r[1] || (r[1] = (m) => e.value = m),
|
|
1774
1065
|
mode: "hexa",
|
|
1775
1066
|
"show-swatches": "",
|
|
1776
1067
|
"swatches-max-height": "150px"
|
|
@@ -1781,85 +1072,85 @@ const Ks = { class: "d-flex justify-space-between align-center" }, qs = /* @__PU
|
|
|
1781
1072
|
};
|
|
1782
1073
|
}
|
|
1783
1074
|
});
|
|
1784
|
-
function
|
|
1785
|
-
return { renderUiColorPicker: (
|
|
1786
|
-
modelValue:
|
|
1787
|
-
|
|
1788
|
-
r,
|
|
1789
|
-
l,
|
|
1075
|
+
function Cn(o) {
|
|
1076
|
+
return { renderUiColorPicker: (t, e, n, l, i) => e.ui !== "colorPicker" ? (console.assert(!1), _("div", "renderUiColorPicker prop ui must be colorPicker")) : _(Vn, {
|
|
1077
|
+
modelValue: ne(
|
|
1078
|
+
t,
|
|
1790
1079
|
e,
|
|
1080
|
+
n,
|
|
1791
1081
|
o,
|
|
1082
|
+
l,
|
|
1792
1083
|
i
|
|
1793
1084
|
),
|
|
1794
1085
|
"onUpdate:modelValue": (a) => {
|
|
1795
|
-
|
|
1086
|
+
oe(
|
|
1087
|
+
t,
|
|
1088
|
+
e,
|
|
1796
1089
|
n,
|
|
1797
|
-
r,
|
|
1798
|
-
l,
|
|
1799
1090
|
a,
|
|
1800
|
-
e,
|
|
1801
1091
|
o,
|
|
1092
|
+
l,
|
|
1802
1093
|
i
|
|
1803
1094
|
);
|
|
1804
1095
|
},
|
|
1805
|
-
hasDelete:
|
|
1096
|
+
hasDelete: l !== void 0 && !i,
|
|
1806
1097
|
onDelete: () => {
|
|
1807
|
-
|
|
1098
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1808
1099
|
},
|
|
1809
|
-
readonly:
|
|
1100
|
+
readonly: e.readonly
|
|
1810
1101
|
}) };
|
|
1811
1102
|
}
|
|
1812
|
-
const
|
|
1103
|
+
const Sn = { class: "d-flex justify-space-between align-center my-2" }, Un = { class: "flex-grow-1" }, $n = /* @__PURE__ */ J({
|
|
1813
1104
|
__name: "multiTypes",
|
|
1814
|
-
props: /* @__PURE__ */
|
|
1105
|
+
props: /* @__PURE__ */ W({
|
|
1815
1106
|
hasDelete: { type: Boolean, default: !1 },
|
|
1816
1107
|
types: {}
|
|
1817
1108
|
}, {
|
|
1818
1109
|
modelValue: {},
|
|
1819
1110
|
modelModifiers: {}
|
|
1820
1111
|
}),
|
|
1821
|
-
emits: /* @__PURE__ */
|
|
1822
|
-
setup(
|
|
1823
|
-
const { t
|
|
1112
|
+
emits: /* @__PURE__ */ W(["delete"], ["update:modelValue"]),
|
|
1113
|
+
setup(o, { emit: s }) {
|
|
1114
|
+
const { t } = te(), e = G(o, "modelValue"), n = s, l = Te(), i = K(() => {
|
|
1824
1115
|
var f;
|
|
1825
|
-
return (f =
|
|
1826
|
-
}), a =
|
|
1827
|
-
var
|
|
1116
|
+
return (f = Ye[l.value]) == null ? void 0 : f.types[o.types];
|
|
1117
|
+
}), a = O(0), u = K(() => {
|
|
1118
|
+
var m;
|
|
1828
1119
|
const f = [];
|
|
1829
|
-
return (
|
|
1120
|
+
return (m = i.value) == null || m.forEach(({ title: k }, L) => {
|
|
1830
1121
|
f.push({
|
|
1831
|
-
title:
|
|
1832
|
-
value:
|
|
1122
|
+
title: t(k),
|
|
1123
|
+
value: L
|
|
1833
1124
|
});
|
|
1834
1125
|
}), f;
|
|
1835
1126
|
});
|
|
1836
|
-
|
|
1127
|
+
Ne(() => {
|
|
1837
1128
|
var f;
|
|
1838
|
-
(f = i.value) == null || f.some((
|
|
1129
|
+
(f = i.value) == null || f.some((m, k) => m.validator(e.value) ? (a.value = k, !0) : !1);
|
|
1839
1130
|
});
|
|
1840
|
-
const
|
|
1131
|
+
const r = K(() => {
|
|
1841
1132
|
var f;
|
|
1842
1133
|
return (f = i.value) == null ? void 0 : f[a.value];
|
|
1843
|
-
}),
|
|
1134
|
+
}), g = () => {
|
|
1844
1135
|
var f;
|
|
1845
|
-
|
|
1846
|
-
},
|
|
1847
|
-
return
|
|
1848
|
-
var f,
|
|
1849
|
-
((f =
|
|
1850
|
-
}),
|
|
1851
|
-
var
|
|
1852
|
-
((
|
|
1853
|
-
}), (f,
|
|
1854
|
-
var
|
|
1855
|
-
const
|
|
1856
|
-
return
|
|
1857
|
-
|
|
1858
|
-
|
|
1136
|
+
e.value = (f = r.value) == null ? void 0 : f.default;
|
|
1137
|
+
}, d = O(0);
|
|
1138
|
+
return Ne(() => {
|
|
1139
|
+
var f, m;
|
|
1140
|
+
((f = r.value) == null ? void 0 : f.ui) === "pixelInput" ? d.value = Ut(e.value) : ((m = r.value) == null ? void 0 : m.ui) === "percentInput" && (d.value = $t(e.value));
|
|
1141
|
+
}), ue(d, (f) => {
|
|
1142
|
+
var m, k;
|
|
1143
|
+
((m = r.value) == null ? void 0 : m.ui) === "pixelInput" ? e.value = f + "px" : ((k = r.value) == null ? void 0 : k.ui) === "percentInput" && (e.value = f + "%");
|
|
1144
|
+
}), (f, m) => {
|
|
1145
|
+
var P, h;
|
|
1146
|
+
const k = $("v-select"), L = $("v-number-input"), w = $("v-btn"), b = le("ripple");
|
|
1147
|
+
return S(), H("div", Sn, [
|
|
1148
|
+
F("div", Un, [
|
|
1149
|
+
ee(A(k, {
|
|
1859
1150
|
modelValue: a.value,
|
|
1860
1151
|
"onUpdate:modelValue": [
|
|
1861
|
-
|
|
1862
|
-
|
|
1152
|
+
m[0] || (m[0] = (M) => a.value = M),
|
|
1153
|
+
g
|
|
1863
1154
|
],
|
|
1864
1155
|
density: "compact",
|
|
1865
1156
|
items: u.value,
|
|
@@ -1867,74 +1158,74 @@ const Js = { class: "d-flex justify-space-between align-center my-2" }, Is = { c
|
|
|
1867
1158
|
"single-line": ""
|
|
1868
1159
|
}, null, 8, ["modelValue", "items"]), [
|
|
1869
1160
|
[
|
|
1870
|
-
|
|
1161
|
+
b,
|
|
1871
1162
|
void 0,
|
|
1872
1163
|
void 0,
|
|
1873
1164
|
{ stop: !0 }
|
|
1874
1165
|
]
|
|
1875
1166
|
]),
|
|
1876
|
-
((
|
|
1167
|
+
((P = r.value) == null ? void 0 : P.ui) === "pixelInput" || ((h = r.value) == null ? void 0 : h.ui) === "percentInput" ? ee((S(), B(L, {
|
|
1877
1168
|
key: 0,
|
|
1878
|
-
modelValue:
|
|
1879
|
-
"onUpdate:modelValue":
|
|
1169
|
+
modelValue: d.value,
|
|
1170
|
+
"onUpdate:modelValue": m[1] || (m[1] = (M) => d.value = M),
|
|
1880
1171
|
density: "compact",
|
|
1881
1172
|
"control-variant": "stacked",
|
|
1882
|
-
precision:
|
|
1883
|
-
min:
|
|
1884
|
-
max:
|
|
1885
|
-
step:
|
|
1173
|
+
precision: r.value.precision,
|
|
1174
|
+
min: r.value.min,
|
|
1175
|
+
max: r.value.max,
|
|
1176
|
+
step: r.value.step,
|
|
1886
1177
|
"hide-details": "",
|
|
1887
1178
|
"single-line": ""
|
|
1888
1179
|
}, null, 8, ["modelValue", "precision", "min", "max", "step"])), [
|
|
1889
1180
|
[
|
|
1890
|
-
|
|
1181
|
+
b,
|
|
1891
1182
|
void 0,
|
|
1892
1183
|
void 0,
|
|
1893
1184
|
{ stop: !0 }
|
|
1894
1185
|
]
|
|
1895
|
-
]) :
|
|
1186
|
+
]) : Y("", !0)
|
|
1896
1187
|
]),
|
|
1897
|
-
f.hasDelete ? (
|
|
1188
|
+
f.hasDelete ? (S(), B(w, {
|
|
1898
1189
|
key: 0,
|
|
1899
1190
|
class: "mx-2",
|
|
1900
1191
|
variant: "text",
|
|
1901
1192
|
density: "compact",
|
|
1902
|
-
icon:
|
|
1903
|
-
onClick:
|
|
1904
|
-
}, null, 8, ["icon"])) :
|
|
1193
|
+
icon: C(re),
|
|
1194
|
+
onClick: m[2] || (m[2] = z((M) => n("delete"), ["stop"]))
|
|
1195
|
+
}, null, 8, ["icon"])) : Y("", !0)
|
|
1905
1196
|
]);
|
|
1906
1197
|
};
|
|
1907
1198
|
}
|
|
1908
1199
|
});
|
|
1909
|
-
function
|
|
1910
|
-
return { renderUiMultiTypes: (
|
|
1911
|
-
modelValue:
|
|
1912
|
-
|
|
1913
|
-
r,
|
|
1914
|
-
l,
|
|
1200
|
+
function xn(o) {
|
|
1201
|
+
return { renderUiMultiTypes: (t, e, n, l, i) => e.ui !== "multiTypes" ? (console.assert(!1), _("div", "renderUiMultiTypes prop ui must be multiTypes")) : _($n, {
|
|
1202
|
+
modelValue: ne(
|
|
1203
|
+
t,
|
|
1915
1204
|
e,
|
|
1205
|
+
n,
|
|
1916
1206
|
o,
|
|
1207
|
+
l,
|
|
1917
1208
|
i
|
|
1918
1209
|
) ?? "",
|
|
1919
1210
|
"onUpdate:modelValue": (a) => {
|
|
1920
|
-
|
|
1211
|
+
oe(
|
|
1212
|
+
t,
|
|
1213
|
+
e,
|
|
1921
1214
|
n,
|
|
1922
|
-
r,
|
|
1923
|
-
l,
|
|
1924
1215
|
a,
|
|
1925
|
-
e,
|
|
1926
1216
|
o,
|
|
1217
|
+
l,
|
|
1927
1218
|
i
|
|
1928
1219
|
);
|
|
1929
1220
|
},
|
|
1930
|
-
hasDelete:
|
|
1221
|
+
hasDelete: l !== void 0 && !i,
|
|
1931
1222
|
onDelete: () => {
|
|
1932
|
-
|
|
1223
|
+
l === void 0 || i || (n.splice(l, 1), o(t.slice(0, -1), n));
|
|
1933
1224
|
},
|
|
1934
|
-
types:
|
|
1225
|
+
types: e.types
|
|
1935
1226
|
}) };
|
|
1936
1227
|
}
|
|
1937
|
-
const
|
|
1228
|
+
const Pn = /* @__PURE__ */ J({
|
|
1938
1229
|
__name: "editor",
|
|
1939
1230
|
props: {
|
|
1940
1231
|
modelValue: { required: !0 },
|
|
@@ -1945,116 +1236,116 @@ const Ws = /* @__PURE__ */ G({
|
|
|
1945
1236
|
scaleModifiers: {}
|
|
1946
1237
|
},
|
|
1947
1238
|
emits: ["update:modelValue", "update:lock", "update:scale"],
|
|
1948
|
-
setup(
|
|
1949
|
-
const
|
|
1239
|
+
setup(o, { expose: s }) {
|
|
1240
|
+
const t = G(o, "modelValue"), e = G(o, "lock"), n = G(o, "scale"), l = ht(), i = kt(), a = Te(), u = Re("target"), r = () => {
|
|
1950
1241
|
var f;
|
|
1951
|
-
const
|
|
1952
|
-
(f = u.value) == null || f.load(
|
|
1242
|
+
const d = JSON.parse(t.value);
|
|
1243
|
+
(f = u.value) == null || f.load(d);
|
|
1953
1244
|
};
|
|
1954
|
-
return
|
|
1955
|
-
const
|
|
1956
|
-
|
|
1957
|
-
} }), (
|
|
1245
|
+
return s({ save: () => {
|
|
1246
|
+
const d = u.value.save();
|
|
1247
|
+
t.value = JSON.stringify(d, null, 2);
|
|
1248
|
+
} }), (d, f) => (S(), B(C(Mt), {
|
|
1958
1249
|
ref_key: "target",
|
|
1959
1250
|
ref: u,
|
|
1960
|
-
lock:
|
|
1961
|
-
"onUpdate:lock": f[0] || (f[0] = (
|
|
1962
|
-
scale:
|
|
1963
|
-
"onUpdate:scale": f[1] || (f[1] = (
|
|
1251
|
+
lock: e.value,
|
|
1252
|
+
"onUpdate:lock": f[0] || (f[0] = (m) => e.value = m),
|
|
1253
|
+
scale: n.value,
|
|
1254
|
+
"onUpdate:scale": f[1] || (f[1] = (m) => n.value = m),
|
|
1964
1255
|
type: "json",
|
|
1965
|
-
version:
|
|
1966
|
-
locale:
|
|
1967
|
-
dark:
|
|
1968
|
-
onReady:
|
|
1256
|
+
version: C(a),
|
|
1257
|
+
locale: C(i),
|
|
1258
|
+
dark: C(l),
|
|
1259
|
+
onReady: r
|
|
1969
1260
|
}, null, 8, ["lock", "scale", "version", "locale", "dark"]));
|
|
1970
1261
|
}
|
|
1971
|
-
}),
|
|
1262
|
+
}), Mn = { class: "text-subtitle-1" }, wn = /* @__PURE__ */ J({
|
|
1972
1263
|
__name: "index",
|
|
1973
1264
|
props: {
|
|
1974
1265
|
modelValue: { required: !0 },
|
|
1975
1266
|
modelModifiers: {}
|
|
1976
1267
|
},
|
|
1977
1268
|
emits: ["update:modelValue"],
|
|
1978
|
-
setup(
|
|
1979
|
-
const { t } =
|
|
1980
|
-
let
|
|
1981
|
-
return
|
|
1269
|
+
setup(o) {
|
|
1270
|
+
const { t: s } = te(), { sysBarAvail: t } = Je(), { backgroundColor0: e, backgroundColor1: n, backgroundColor2: l } = ie(), i = G(o, "modelValue"), a = O(!1), u = O(1), r = K(() => {
|
|
1271
|
+
let m = 48;
|
|
1272
|
+
return t.value && (m += 24), {
|
|
1982
1273
|
position: "relative",
|
|
1983
|
-
background:
|
|
1984
|
-
height: `calc(100% - ${
|
|
1274
|
+
background: n.value,
|
|
1275
|
+
height: `calc(100% - ${m}px)`
|
|
1985
1276
|
};
|
|
1986
|
-
}),
|
|
1987
|
-
|
|
1988
|
-
|
|
1277
|
+
}), g = K(() => s("x-prop-tree.dlg.jsonObject.title")), { open: d } = Se(`propTreeJsonObjectDlg${we()}`);
|
|
1278
|
+
De(() => {
|
|
1279
|
+
d.value = !1;
|
|
1989
1280
|
});
|
|
1990
|
-
const f =
|
|
1991
|
-
return
|
|
1992
|
-
var
|
|
1993
|
-
|
|
1994
|
-
}), (
|
|
1995
|
-
const
|
|
1996
|
-
return
|
|
1997
|
-
modelValue:
|
|
1998
|
-
"onUpdate:modelValue":
|
|
1281
|
+
const f = Re("editor");
|
|
1282
|
+
return ue(d, (m) => {
|
|
1283
|
+
var k;
|
|
1284
|
+
m || (k = f.value) == null || k.save();
|
|
1285
|
+
}), (m, k) => {
|
|
1286
|
+
const L = $("v-btn"), w = $("v-sheet"), b = $("v-spacer"), P = $("v-dialog");
|
|
1287
|
+
return S(), B(P, {
|
|
1288
|
+
modelValue: C(d),
|
|
1289
|
+
"onUpdate:modelValue": k[4] || (k[4] = (h) => pe(d) ? d.value = h : null),
|
|
1999
1290
|
transition: "dialog-bottom-transition",
|
|
2000
1291
|
persistent: "",
|
|
2001
1292
|
"no-click-animation": "",
|
|
2002
1293
|
fullscreen: "",
|
|
2003
1294
|
attach: "",
|
|
2004
|
-
onKeydown:
|
|
1295
|
+
onKeydown: k[5] || (k[5] = Ke(z((h) => d.value = !1, ["stop", "prevent"]), ["esc"]))
|
|
2005
1296
|
}, {
|
|
2006
|
-
activator:
|
|
2007
|
-
|
|
1297
|
+
activator: R(({ props: h }) => [
|
|
1298
|
+
A(L, Ae(h, {
|
|
2008
1299
|
density: "comfortable",
|
|
2009
1300
|
block: ""
|
|
2010
1301
|
}), {
|
|
2011
|
-
default:
|
|
2012
|
-
|
|
1302
|
+
default: R(() => [
|
|
1303
|
+
Ce(Q(g.value), 1)
|
|
2013
1304
|
]),
|
|
2014
1305
|
_: 2
|
|
2015
1306
|
}, 1040)
|
|
2016
1307
|
]),
|
|
2017
|
-
default:
|
|
2018
|
-
|
|
2019
|
-
color:
|
|
1308
|
+
default: R(() => [
|
|
1309
|
+
A(w, {
|
|
1310
|
+
color: C(e),
|
|
2020
1311
|
width: "100%",
|
|
2021
1312
|
height: "100%"
|
|
2022
1313
|
}, {
|
|
2023
|
-
default:
|
|
2024
|
-
|
|
1314
|
+
default: R(() => [
|
|
1315
|
+
C(t) ? (S(), B(w, {
|
|
2025
1316
|
key: 0,
|
|
2026
|
-
color:
|
|
1317
|
+
color: C(l),
|
|
2027
1318
|
height: 24
|
|
2028
|
-
}, null, 8, ["color"])) :
|
|
2029
|
-
|
|
1319
|
+
}, null, 8, ["color"])) : Y("", !0),
|
|
1320
|
+
A(w, {
|
|
2030
1321
|
class: "d-flex align-center px-2",
|
|
2031
|
-
color:
|
|
1322
|
+
color: C(l),
|
|
2032
1323
|
height: 48
|
|
2033
1324
|
}, {
|
|
2034
|
-
default:
|
|
2035
|
-
|
|
1325
|
+
default: R(() => [
|
|
1326
|
+
A(L, {
|
|
2036
1327
|
variant: "text",
|
|
2037
1328
|
density: "comfortable",
|
|
2038
|
-
icon:
|
|
2039
|
-
onClick:
|
|
1329
|
+
icon: C(Ge),
|
|
1330
|
+
onClick: k[0] || (k[0] = (h) => d.value = !1)
|
|
2040
1331
|
}, null, 8, ["icon"]),
|
|
2041
|
-
|
|
2042
|
-
|
|
1332
|
+
F("span", Mn, Q(C(s)("x-prop-tree.dlg.jsonObject.title")), 1),
|
|
1333
|
+
A(b)
|
|
2043
1334
|
]),
|
|
2044
1335
|
_: 1
|
|
2045
1336
|
}, 8, ["color"]),
|
|
2046
|
-
|
|
2047
|
-
style:
|
|
1337
|
+
F("div", {
|
|
1338
|
+
style: I(r.value)
|
|
2048
1339
|
}, [
|
|
2049
|
-
|
|
1340
|
+
A(Pn, {
|
|
2050
1341
|
ref_key: "editor",
|
|
2051
1342
|
ref: f,
|
|
2052
1343
|
modelValue: i.value,
|
|
2053
|
-
"onUpdate:modelValue":
|
|
1344
|
+
"onUpdate:modelValue": k[1] || (k[1] = (h) => i.value = h),
|
|
2054
1345
|
lock: a.value,
|
|
2055
|
-
"onUpdate:lock":
|
|
1346
|
+
"onUpdate:lock": k[2] || (k[2] = (h) => a.value = h),
|
|
2056
1347
|
scale: u.value,
|
|
2057
|
-
"onUpdate:scale":
|
|
1348
|
+
"onUpdate:scale": k[3] || (k[3] = (h) => u.value = h)
|
|
2058
1349
|
}, null, 8, ["modelValue", "lock", "scale"])
|
|
2059
1350
|
], 4)
|
|
2060
1351
|
]),
|
|
@@ -2066,30 +1357,30 @@ const Ws = /* @__PURE__ */ G({
|
|
|
2066
1357
|
};
|
|
2067
1358
|
}
|
|
2068
1359
|
});
|
|
2069
|
-
function
|
|
2070
|
-
return { renderUiJsonEditor: (
|
|
2071
|
-
modelValue:
|
|
2072
|
-
|
|
2073
|
-
r,
|
|
2074
|
-
l,
|
|
1360
|
+
function Dn(o) {
|
|
1361
|
+
return { renderUiJsonEditor: (t, e, n, l, i) => e.ui !== "jsonEditor" ? _("div", "renderUiJsonObject prop ui must be jsonEditor") : _(wn, {
|
|
1362
|
+
modelValue: ne(
|
|
1363
|
+
t,
|
|
2075
1364
|
e,
|
|
1365
|
+
n,
|
|
2076
1366
|
o,
|
|
1367
|
+
l,
|
|
2077
1368
|
i
|
|
2078
1369
|
) ?? "{}",
|
|
2079
1370
|
"onUpdate:modelValue": (a) => {
|
|
2080
|
-
|
|
1371
|
+
oe(
|
|
1372
|
+
t,
|
|
1373
|
+
e,
|
|
2081
1374
|
n,
|
|
2082
|
-
r,
|
|
2083
|
-
l,
|
|
2084
1375
|
a,
|
|
2085
|
-
e,
|
|
2086
1376
|
o,
|
|
1377
|
+
l,
|
|
2087
1378
|
i
|
|
2088
1379
|
);
|
|
2089
1380
|
}
|
|
2090
1381
|
}) };
|
|
2091
1382
|
}
|
|
2092
|
-
const
|
|
1383
|
+
const An = /* @__PURE__ */ J({
|
|
2093
1384
|
__name: "index",
|
|
2094
1385
|
props: {
|
|
2095
1386
|
unique: {},
|
|
@@ -2098,102 +1389,102 @@ const ta = /* @__PURE__ */ G({
|
|
|
2098
1389
|
version: {}
|
|
2099
1390
|
},
|
|
2100
1391
|
emits: ["change"],
|
|
2101
|
-
setup(
|
|
2102
|
-
const { t
|
|
2103
|
-
|
|
1392
|
+
setup(o, { emit: s }) {
|
|
1393
|
+
const { t } = te(), { backgroundColor1: e } = ie(), n = o, l = s, i = O("20px"), a = O("56px"), u = O("200px"), r = yt({}), g = O({}), d = (p, c) => {
|
|
1394
|
+
qe(g, n.config, n.object), l("change", p, c);
|
|
2104
1395
|
};
|
|
2105
|
-
|
|
2106
|
-
[() =>
|
|
1396
|
+
ue(
|
|
1397
|
+
[() => n.config, () => n.object],
|
|
2107
1398
|
() => {
|
|
2108
|
-
|
|
2109
|
-
|
|
1399
|
+
qe(g, n.config, n.object, (p, c) => {
|
|
1400
|
+
l("change", p, c);
|
|
2110
1401
|
});
|
|
2111
1402
|
},
|
|
2112
1403
|
{ immediate: !0 }
|
|
2113
1404
|
);
|
|
2114
|
-
const f =
|
|
2115
|
-
|
|
2116
|
-
() =>
|
|
1405
|
+
const f = O(n.version);
|
|
1406
|
+
Ot(f), ue(
|
|
1407
|
+
() => n.version,
|
|
2117
1408
|
() => {
|
|
2118
|
-
f.value =
|
|
1409
|
+
f.value = n.version;
|
|
2119
1410
|
}
|
|
2120
1411
|
);
|
|
2121
|
-
const
|
|
2122
|
-
|
|
2123
|
-
() =>
|
|
1412
|
+
const m = O(n.config);
|
|
1413
|
+
qt(m), ue(
|
|
1414
|
+
() => n.config,
|
|
2124
1415
|
() => {
|
|
2125
|
-
|
|
1416
|
+
m.value = n.config;
|
|
2126
1417
|
}
|
|
2127
1418
|
);
|
|
2128
|
-
const
|
|
2129
|
-
|
|
2130
|
-
() =>
|
|
1419
|
+
const k = O(n.object);
|
|
1420
|
+
Kt(k), ue(
|
|
1421
|
+
() => n.object,
|
|
2131
1422
|
() => {
|
|
2132
|
-
|
|
1423
|
+
k.value = n.object;
|
|
2133
1424
|
}
|
|
2134
|
-
),
|
|
2135
|
-
const
|
|
2136
|
-
|
|
2137
|
-
const
|
|
2138
|
-
const { compGroups:
|
|
2139
|
-
|
|
2140
|
-
const
|
|
2141
|
-
|
|
2142
|
-
id:
|
|
1425
|
+
), Jt(g), Xt(d);
|
|
1426
|
+
const L = O([]);
|
|
1427
|
+
zt(L);
|
|
1428
|
+
const w = () => {
|
|
1429
|
+
const { compGroups: p, comps: c } = xt.app.activeApp, y = [];
|
|
1430
|
+
p.forEach(({ id: v, name: V, position: x }) => {
|
|
1431
|
+
const D = L.value.find((E) => E.id === v);
|
|
1432
|
+
y.push({
|
|
1433
|
+
id: v,
|
|
2143
1434
|
type: 0,
|
|
2144
|
-
name:
|
|
2145
|
-
position:
|
|
2146
|
-
collapse: (
|
|
1435
|
+
name: V,
|
|
1436
|
+
position: x,
|
|
1437
|
+
collapse: (D == null ? void 0 : D.collapse) ?? !0
|
|
2147
1438
|
});
|
|
2148
|
-
}),
|
|
2149
|
-
|
|
2150
|
-
}),
|
|
1439
|
+
}), c.forEach(({ id: v, groupid: V, name: x, position: D }) => {
|
|
1440
|
+
y.push({ id: v, type: 1, name: x, position: D, group: V });
|
|
1441
|
+
}), St(y, !0), L.value = y;
|
|
2151
1442
|
};
|
|
2152
|
-
let
|
|
2153
|
-
const
|
|
2154
|
-
clearTimeout(
|
|
2155
|
-
|
|
1443
|
+
let b;
|
|
1444
|
+
const P = () => {
|
|
1445
|
+
clearTimeout(b), b = window.setTimeout(() => {
|
|
1446
|
+
w(), b && P();
|
|
2156
1447
|
}, 1e3);
|
|
2157
|
-
},
|
|
2158
|
-
clearTimeout(
|
|
1448
|
+
}, h = () => {
|
|
1449
|
+
clearTimeout(b), b = void 0;
|
|
2159
1450
|
};
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
}),
|
|
2163
|
-
|
|
1451
|
+
gt(() => {
|
|
1452
|
+
P();
|
|
1453
|
+
}), _t(() => {
|
|
1454
|
+
h();
|
|
2164
1455
|
});
|
|
2165
|
-
const { renderProp:
|
|
2166
|
-
y,
|
|
1456
|
+
const { renderProp: M } = Wt(g, a, u), { renderUiDummy: N } = Qt(d), { renderUiStrInput: Z } = jt(d), { renderUiNumInput: Pe } = tn(d), { renderUiSwitch: tt } = on(d), { renderUiSelect: nt } = un(d), { renderUiColorPicker: lt } = Cn(d), { renderUiJsonEditor: ot } = Dn(d), { renderUiMultiTypes: st } = xn(d), { renderUiCompSelect: it } = hn(d), ye = (p, c, y, v, V, x) => (p = He(p), V !== void 0 ? (p.push(V), x && p.push(c.key)) : p.push(c.key), c.ui ? c.array && v ? at(p, c, y, v, V, x) : ct(p, c, y, V, x) : c.array ? rt(p, c, y, v, V, x) : ut(
|
|
2167
1457
|
p,
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
1458
|
+
c,
|
|
1459
|
+
y,
|
|
1460
|
+
v,
|
|
1461
|
+
V,
|
|
1462
|
+
x
|
|
1463
|
+
)), rt = (p, c, y, v, V, x) => {
|
|
1464
|
+
if (c.ui)
|
|
2174
1465
|
return console.assert(!1), _("div", "renderBranchArray prop ui must be invalid");
|
|
2175
|
-
if (!
|
|
1466
|
+
if (!c.array)
|
|
2176
1467
|
return console.assert(!1), _("div", "renderBranchArray prop array must be valid");
|
|
2177
|
-
if (!
|
|
1468
|
+
if (!v)
|
|
2178
1469
|
return console.assert(!1), _("div", "renderBranchArray branch must be valid");
|
|
2179
|
-
let
|
|
2180
|
-
|
|
2181
|
-
let
|
|
2182
|
-
|
|
2183
|
-
const
|
|
2184
|
-
title:
|
|
2185
|
-
collapse:
|
|
1470
|
+
let D;
|
|
1471
|
+
V !== void 0 && !x ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[c.key])), D = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), D = y[c.key]);
|
|
1472
|
+
let E = t(c.name);
|
|
1473
|
+
v.collapse && ce(g.value, p) && (E += " *");
|
|
1474
|
+
const me = _(ke, {
|
|
1475
|
+
title: E,
|
|
1476
|
+
collapse: v.collapse,
|
|
2186
1477
|
hasCreate: !0,
|
|
2187
|
-
onCollapse: (
|
|
2188
|
-
|
|
1478
|
+
onCollapse: (U) => {
|
|
1479
|
+
v.collapse = U;
|
|
2189
1480
|
},
|
|
2190
|
-
onMenu: (
|
|
2191
|
-
|
|
1481
|
+
onMenu: (U, T) => {
|
|
1482
|
+
ae.emit("propTreeMenu", { x: U, y: T, keys: p });
|
|
2192
1483
|
},
|
|
2193
1484
|
onCreate: () => {
|
|
2194
|
-
|
|
1485
|
+
D.push({}), d(p, D);
|
|
2195
1486
|
}
|
|
2196
|
-
}),
|
|
1487
|
+
}), X = _(
|
|
2197
1488
|
"div",
|
|
2198
1489
|
{
|
|
2199
1490
|
style: {
|
|
@@ -2201,44 +1492,44 @@ const ta = /* @__PURE__ */ G({
|
|
|
2201
1492
|
}
|
|
2202
1493
|
},
|
|
2203
1494
|
(() => {
|
|
2204
|
-
const
|
|
2205
|
-
for (let
|
|
2206
|
-
if (!
|
|
1495
|
+
const U = [];
|
|
1496
|
+
for (let T = 0; T < D.length; T++) {
|
|
1497
|
+
if (!Me(v.children)) {
|
|
2207
1498
|
console.assert(!1);
|
|
2208
1499
|
break;
|
|
2209
1500
|
}
|
|
2210
|
-
|
|
1501
|
+
v.children[T] || v.children.push({
|
|
2211
1502
|
collapse: !0,
|
|
2212
1503
|
children: {}
|
|
2213
1504
|
});
|
|
2214
|
-
const
|
|
2215
|
-
let
|
|
2216
|
-
|
|
2217
|
-
const
|
|
2218
|
-
title:
|
|
2219
|
-
collapse:
|
|
1505
|
+
const ge = [...p, T], _e = v.children[T];
|
|
1506
|
+
let Le = `[${T + 1}]`;
|
|
1507
|
+
v.children[T].collapse && ce(g.value, ge) && (Le += " *");
|
|
1508
|
+
const ft = _(ke, {
|
|
1509
|
+
title: Le,
|
|
1510
|
+
collapse: v.children[T].collapse,
|
|
2220
1511
|
hasDelete: !0,
|
|
2221
|
-
index:
|
|
2222
|
-
onCollapse: (
|
|
2223
|
-
if (!
|
|
1512
|
+
index: T,
|
|
1513
|
+
onCollapse: (j) => {
|
|
1514
|
+
if (!Me(v.children)) {
|
|
2224
1515
|
console.assert(!1);
|
|
2225
1516
|
return;
|
|
2226
1517
|
}
|
|
2227
|
-
|
|
1518
|
+
v.children[T].collapse = j;
|
|
2228
1519
|
},
|
|
2229
|
-
onMenu: (
|
|
2230
|
-
|
|
1520
|
+
onMenu: (j, se) => {
|
|
1521
|
+
ae.emit("propTreeMenu", { x: j, y: se, keys: ge });
|
|
2231
1522
|
},
|
|
2232
|
-
onDelete: (
|
|
2233
|
-
if (!
|
|
1523
|
+
onDelete: (j) => {
|
|
1524
|
+
if (!Me(v.children)) {
|
|
2234
1525
|
console.assert(!1);
|
|
2235
1526
|
return;
|
|
2236
1527
|
}
|
|
2237
|
-
|
|
1528
|
+
v.children.splice(j, 1), D.splice(j, 1), d(p, D);
|
|
2238
1529
|
}
|
|
2239
1530
|
});
|
|
2240
|
-
|
|
2241
|
-
const
|
|
1531
|
+
U.push(ft);
|
|
1532
|
+
const mt = _(
|
|
2242
1533
|
"div",
|
|
2243
1534
|
{
|
|
2244
1535
|
style: {
|
|
@@ -2246,31 +1537,31 @@ const ta = /* @__PURE__ */ G({
|
|
|
2246
1537
|
}
|
|
2247
1538
|
},
|
|
2248
1539
|
(() => {
|
|
2249
|
-
const
|
|
2250
|
-
return
|
|
2251
|
-
if (!
|
|
1540
|
+
const j = [];
|
|
1541
|
+
return c.children.forEach((se) => {
|
|
1542
|
+
if (!Oe(_e.children)) {
|
|
2252
1543
|
console.assert(!1);
|
|
2253
1544
|
return;
|
|
2254
1545
|
}
|
|
2255
|
-
|
|
1546
|
+
_e.children[se.key] || (_e.children[se.key] = {
|
|
2256
1547
|
collapse: !0,
|
|
2257
|
-
children:
|
|
1548
|
+
children: se.array ? [] : {}
|
|
2258
1549
|
});
|
|
2259
|
-
const
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
1550
|
+
const vt = ye(
|
|
1551
|
+
p,
|
|
1552
|
+
se,
|
|
1553
|
+
D[T],
|
|
1554
|
+
_e.children[se.key],
|
|
1555
|
+
T,
|
|
2265
1556
|
!0
|
|
2266
1557
|
);
|
|
2267
|
-
|
|
2268
|
-
}),
|
|
1558
|
+
j.push(vt);
|
|
1559
|
+
}), j;
|
|
2269
1560
|
})()
|
|
2270
1561
|
);
|
|
2271
|
-
|
|
1562
|
+
v.children[T].collapse || U.push(mt);
|
|
2272
1563
|
}
|
|
2273
|
-
return
|
|
1564
|
+
return U;
|
|
2274
1565
|
})()
|
|
2275
1566
|
);
|
|
2276
1567
|
return _(
|
|
@@ -2281,33 +1572,33 @@ const ta = /* @__PURE__ */ G({
|
|
|
2281
1572
|
}
|
|
2282
1573
|
},
|
|
2283
1574
|
(() => {
|
|
2284
|
-
const
|
|
2285
|
-
return
|
|
1575
|
+
const U = [];
|
|
1576
|
+
return U.push(me), v.collapse || U.push(X), U;
|
|
2286
1577
|
})()
|
|
2287
1578
|
);
|
|
2288
|
-
},
|
|
2289
|
-
if (
|
|
1579
|
+
}, ut = (p, c, y, v, V, x) => {
|
|
1580
|
+
if (c.ui)
|
|
2290
1581
|
return console.assert(!1), _("div", "renderBranchScalar prop ui must be invalid");
|
|
2291
|
-
if (
|
|
1582
|
+
if (c.array)
|
|
2292
1583
|
return console.assert(!1), _("div", "renderBranchScalar prop array must be invalid");
|
|
2293
|
-
if (!
|
|
1584
|
+
if (!v)
|
|
2294
1585
|
return console.assert(!1), _("div", "renderBranchScalar branch must be valid");
|
|
2295
|
-
let
|
|
2296
|
-
|
|
2297
|
-
const
|
|
2298
|
-
title:
|
|
2299
|
-
collapse:
|
|
2300
|
-
hasDelete:
|
|
2301
|
-
onCollapse: (
|
|
2302
|
-
|
|
1586
|
+
let D = t(c.name);
|
|
1587
|
+
v.collapse && ce(g.value, p) && (D += " *");
|
|
1588
|
+
const E = _(ke, {
|
|
1589
|
+
title: D,
|
|
1590
|
+
collapse: v.collapse,
|
|
1591
|
+
hasDelete: V !== void 0 && !x,
|
|
1592
|
+
onCollapse: (X) => {
|
|
1593
|
+
v.collapse = X;
|
|
2303
1594
|
},
|
|
2304
|
-
onMenu: (
|
|
2305
|
-
|
|
1595
|
+
onMenu: (X, U) => {
|
|
1596
|
+
ae.emit("propTreeMenu", { x: X, y: U, keys: p });
|
|
2306
1597
|
},
|
|
2307
1598
|
onDelete: () => {
|
|
2308
|
-
|
|
1599
|
+
V === void 0 || x || (y.splice(V, 1), d(p.slice(0, -1), y));
|
|
2309
1600
|
}
|
|
2310
|
-
}),
|
|
1601
|
+
}), me = _(
|
|
2311
1602
|
"div",
|
|
2312
1603
|
{
|
|
2313
1604
|
style: {
|
|
@@ -2315,24 +1606,24 @@ const ta = /* @__PURE__ */ G({
|
|
|
2315
1606
|
}
|
|
2316
1607
|
},
|
|
2317
1608
|
(() => {
|
|
2318
|
-
const
|
|
2319
|
-
return
|
|
2320
|
-
if (!
|
|
1609
|
+
const X = [];
|
|
1610
|
+
return c.children.forEach((U) => {
|
|
1611
|
+
if (!Oe(v.children)) {
|
|
2321
1612
|
console.assert(!1);
|
|
2322
1613
|
return;
|
|
2323
1614
|
}
|
|
2324
|
-
|
|
1615
|
+
v.children[U.key] || (v.children[U.key] = {
|
|
2325
1616
|
collapse: !0,
|
|
2326
|
-
children: !
|
|
1617
|
+
children: !U.ui && U.array ? [] : {}
|
|
2327
1618
|
});
|
|
2328
|
-
const
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
(typeof
|
|
2332
|
-
|
|
1619
|
+
const T = ye(
|
|
1620
|
+
p,
|
|
1621
|
+
U,
|
|
1622
|
+
(typeof y[c.key] != "object" && (y[c.key] = {}, d(p, y[c.key])), y[c.key]),
|
|
1623
|
+
v.children[U.key]
|
|
2333
1624
|
);
|
|
2334
|
-
|
|
2335
|
-
}),
|
|
1625
|
+
X.push(T);
|
|
1626
|
+
}), X;
|
|
2336
1627
|
})()
|
|
2337
1628
|
);
|
|
2338
1629
|
return _(
|
|
@@ -2343,35 +1634,35 @@ const ta = /* @__PURE__ */ G({
|
|
|
2343
1634
|
}
|
|
2344
1635
|
},
|
|
2345
1636
|
(() => {
|
|
2346
|
-
const
|
|
2347
|
-
return
|
|
1637
|
+
const X = [];
|
|
1638
|
+
return X.push(E), v.collapse || X.push(me), X;
|
|
2348
1639
|
})()
|
|
2349
1640
|
);
|
|
2350
|
-
},
|
|
2351
|
-
if (!
|
|
1641
|
+
}, at = (p, c, y, v, V, x) => {
|
|
1642
|
+
if (!c.ui)
|
|
2352
1643
|
return console.assert(!1), _("div", "renderLeafArray prop ui must be valid");
|
|
2353
|
-
if (!
|
|
1644
|
+
if (!c.array)
|
|
2354
1645
|
return console.assert(!1), _("div", "renderLeafArray prop array must be valid");
|
|
2355
|
-
if (!
|
|
1646
|
+
if (!v)
|
|
2356
1647
|
return console.assert(!1), _("div", "renderLeafArray branch must be valid");
|
|
2357
|
-
let
|
|
2358
|
-
|
|
2359
|
-
let
|
|
2360
|
-
|
|
2361
|
-
const
|
|
2362
|
-
title:
|
|
2363
|
-
collapse:
|
|
1648
|
+
let D;
|
|
1649
|
+
V !== void 0 && !x ? (y[V] instanceof Array || (y[V] = q(c), d(p, y[V])), D = y[V]) : (y[c.key] instanceof Array || (y[c.key] = q(c), d(p, y[c.key])), D = y[c.key]);
|
|
1650
|
+
let E = t(c.name);
|
|
1651
|
+
v.collapse && ce(g.value, p) && (E += " *");
|
|
1652
|
+
const me = _(ke, {
|
|
1653
|
+
title: E,
|
|
1654
|
+
collapse: v.collapse,
|
|
2364
1655
|
hasCreate: !0,
|
|
2365
|
-
onCollapse: (
|
|
2366
|
-
|
|
1656
|
+
onCollapse: (U) => {
|
|
1657
|
+
v.collapse = U;
|
|
2367
1658
|
},
|
|
2368
|
-
onMenu: (
|
|
2369
|
-
|
|
1659
|
+
onMenu: (U, T) => {
|
|
1660
|
+
ae.emit("propTreeMenu", { x: U, y: T, keys: p });
|
|
2370
1661
|
},
|
|
2371
1662
|
onCreate: () => {
|
|
2372
|
-
|
|
1663
|
+
D.push(q(c, !0)), d(p, D);
|
|
2373
1664
|
}
|
|
2374
|
-
}),
|
|
1665
|
+
}), X = _(
|
|
2375
1666
|
"div",
|
|
2376
1667
|
{
|
|
2377
1668
|
style: {
|
|
@@ -2379,12 +1670,12 @@ const ta = /* @__PURE__ */ G({
|
|
|
2379
1670
|
}
|
|
2380
1671
|
},
|
|
2381
1672
|
(() => {
|
|
2382
|
-
const
|
|
2383
|
-
for (let
|
|
2384
|
-
const
|
|
2385
|
-
|
|
1673
|
+
const U = [];
|
|
1674
|
+
for (let T = 0; T < D.length; T++) {
|
|
1675
|
+
const ge = ye(p, c, D, void 0, T, !1);
|
|
1676
|
+
U.push(ge);
|
|
2386
1677
|
}
|
|
2387
|
-
return
|
|
1678
|
+
return U;
|
|
2388
1679
|
})()
|
|
2389
1680
|
);
|
|
2390
1681
|
return _(
|
|
@@ -2395,69 +1686,69 @@ const ta = /* @__PURE__ */ G({
|
|
|
2395
1686
|
}
|
|
2396
1687
|
},
|
|
2397
1688
|
(() => {
|
|
2398
|
-
const
|
|
2399
|
-
return
|
|
1689
|
+
const U = [];
|
|
1690
|
+
return U.push(me), v.collapse || U.push(X), U;
|
|
2400
1691
|
})()
|
|
2401
1692
|
);
|
|
2402
|
-
},
|
|
2403
|
-
if (!
|
|
1693
|
+
}, ct = (p, c, y, v, V) => {
|
|
1694
|
+
if (!c.ui)
|
|
2404
1695
|
return console.assert(!1), _("div", "renderLeafScalar prop ui must be valid");
|
|
2405
|
-
let
|
|
2406
|
-
return
|
|
2407
|
-
},
|
|
1696
|
+
let x;
|
|
1697
|
+
return c.ui === "dummy" ? x = N(p, c, y, v, V) : c.ui === "strInput" ? x = Z(p, c, y, v, V) : c.ui === "numInput" ? x = Pe(p, c, y, v, V) : c.ui === "switch" ? x = tt(p, c, y, v, V) : c.ui === "select" ? x = nt(p, c, y, v, V) : c.ui === "colorPicker" ? x = lt(p, c, y, v, V) : c.ui === "jsonEditor" ? x = ot(p, c, y, v, V) : c.ui === "multiTypes" ? x = st(p, c, y, v, V) : c.ui === "compSelect" ? x = it(p, c, y, v, V) : console.assert(!1, "renderLeafScalar not implemented"), x ? M(p, c, x) : _("div");
|
|
1698
|
+
}, dt = () => _(
|
|
2408
1699
|
"div",
|
|
2409
1700
|
{
|
|
2410
1701
|
class: "text-body-2",
|
|
2411
1702
|
style: {
|
|
2412
|
-
background:
|
|
1703
|
+
background: e.value
|
|
2413
1704
|
}
|
|
2414
1705
|
},
|
|
2415
1706
|
(() => {
|
|
2416
|
-
const
|
|
2417
|
-
if (
|
|
2418
|
-
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2421
|
-
|
|
1707
|
+
const p = [];
|
|
1708
|
+
if (n.unique && n.config.length > 0 && n.object) {
|
|
1709
|
+
r[n.unique] || (r[n.unique] = {});
|
|
1710
|
+
const c = r[n.unique];
|
|
1711
|
+
n.config.forEach((y) => {
|
|
1712
|
+
c[y.key] || (c[y.key] = {
|
|
2422
1713
|
collapse: !0,
|
|
2423
|
-
children: !
|
|
1714
|
+
children: !y.ui && y.array ? [] : {}
|
|
2424
1715
|
});
|
|
2425
|
-
const
|
|
2426
|
-
|
|
1716
|
+
const v = ye([], y, n.object, c[y.key]);
|
|
1717
|
+
p.push(v);
|
|
2427
1718
|
});
|
|
2428
1719
|
}
|
|
2429
|
-
return
|
|
1720
|
+
return p;
|
|
2430
1721
|
})()
|
|
2431
1722
|
);
|
|
2432
|
-
return (
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
config:
|
|
2436
|
-
object:
|
|
2437
|
-
"prop-states":
|
|
1723
|
+
return (p, c) => (S(), H(Ve, null, [
|
|
1724
|
+
A(dt),
|
|
1725
|
+
A(Gt, {
|
|
1726
|
+
config: n.config,
|
|
1727
|
+
object: n.object,
|
|
1728
|
+
"prop-states": g.value
|
|
2438
1729
|
}, null, 8, ["config", "object", "prop-states"])
|
|
2439
1730
|
], 64));
|
|
2440
1731
|
}
|
|
2441
|
-
}),
|
|
2442
|
-
|
|
2443
|
-
},
|
|
2444
|
-
const
|
|
2445
|
-
return
|
|
1732
|
+
}), bn = (o) => {
|
|
1733
|
+
o.component("XPropTree", An);
|
|
1734
|
+
}, Tn = (o, s, t) => {
|
|
1735
|
+
const e = o[s];
|
|
1736
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((n, l) => {
|
|
2446
1737
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
2447
|
-
|
|
1738
|
+
l.bind(
|
|
2448
1739
|
null,
|
|
2449
1740
|
new Error(
|
|
2450
|
-
"Unknown variable dynamic import: " +
|
|
1741
|
+
"Unknown variable dynamic import: " + s + (s.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
|
|
2451
1742
|
)
|
|
2452
1743
|
)
|
|
2453
1744
|
);
|
|
2454
1745
|
});
|
|
2455
1746
|
};
|
|
2456
|
-
async function
|
|
2457
|
-
return (await
|
|
1747
|
+
async function Hn(o) {
|
|
1748
|
+
return (await Tn(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./i18n-en.n11iysmh.js"), "./locales/zhHans/index.ts": () => import("./i18n-zhHans.hr18mfah.js") }), `./locales/${o}/index.ts`, 4)).default;
|
|
2458
1749
|
}
|
|
2459
|
-
const
|
|
1750
|
+
const Xn = { install: bn };
|
|
2460
1751
|
export {
|
|
2461
|
-
|
|
2462
|
-
|
|
1752
|
+
Xn as default,
|
|
1753
|
+
Hn as loadLocaleMessagePropTree
|
|
2463
1754
|
};
|